@burstjs/contracts
Advanced tools
Comparing version 0.5.1 to 0.6.0-alpha.1
@@ -1,2 +0,2 @@ | ||
var b$contracts=function(exports){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var internal=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.GenesisBlockTime=Date.UTC(2014,7,11,2,0,0,0)/1e3,t.initialCodeword=[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t.gexp=[1,2,4,8,16,5,10,20,13,26,17,7,14,28,29,31,27,19,3,6,12,24,21,15,30,25,23,11,22,9,18,1],t.glog=[0,0,1,18,2,5,19,11,3,29,6,27,20,8,12,23,4,10,30,17,7,22,28,26,21,25,9,16,13,14,24,15],t.cwmap=[3,2,1,0,7,6,5,4,13,14,15,16,12,8,9,10,11],t.alphabet="23456789ABCDEFGHJKLMNPQRSTUVWXYZ".split(""),t.base32Length=13,t.ginv=(e=>t.gexp[31-t.glog[e]]),t.gmult=((e,r)=>{if(0===e||0===r)return 0;const n=(t.glog[e]+t.glog[r])%31;return t.gexp[n]})});unwrapExports(internal);var internal_1=internal.GenesisBlockTime,internal_2=internal.initialCodeword,internal_3=internal.gexp,internal_4=internal.glog,internal_5=internal.cwmap,internal_6=internal.alphabet,internal_7=internal.base32Length,internal_8=internal.ginv,internal_9=internal.gmult,isBurstAddress=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=(e=>{0===e.indexOf("BURST-")&&(e=e.substr(6));const t=internal.initialCodeword.slice();let r=0;for(let n=0;n<e.length;n++){const o=internal.alphabet.indexOf(e.charAt(n));if(!(o<=-1||o>internal.alphabet.length)){if(r>16)return!1;t[internal.cwmap[r]]=o,r++}}if(17!==r)return!1;let n=0;for(let e=1;e<5;e++){let r=0;for(let n=0;n<31;n++){if(n>12&&n<27)continue;let o=n;n>26&&(o-=14),r^=internal.gmult(t[o],internal.gexp[e*n%31])}n|=r}return 0===n}),t.isBurstAddress=(e=>/^BURST\-[A-Z0-9]{4}\-[A-Z0-9]{4}\-[A-Z0-9]{4}\-[A-Z0-9]{5}/i.test(e)&&t.isValid(e))});unwrapExports(isBurstAddress);var isBurstAddress_1=isBurstAddress.isValid,isBurstAddress_2=isBurstAddress.isBurstAddress,convertAddressToNumericId=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertAddressToNumericId=(e=>{if(null==e||0===e.trim().length)return;if(0!==e.indexOf("BURST-"))return;e=e.substr(6);const t=internal.initialCodeword.slice();let r=0;for(let n=0;n<e.length;n++){const o=internal.alphabet.indexOf(e.charAt(n));if(!(o<=-1||o>internal.alphabet.length)){if(r>16)return;t[internal.cwmap[r]]=o,r++}}if(!isBurstAddress.isValid(e))return;let n=internal.base32Length;const o=[];for(let e=0;e<n;e++)o[e]=t[n-e-1];let i,a="",c=0;do{i=0,c=0;for(let e=0;e<n;e++)(c=32*c+o[e])>=10?(o[i]=Math.floor(c/10),c%=10,i+=1):i>0&&(o[i]=0,i+=1);n=i,a+=c}while(n>0);return a.split("").reverse().join("")})});unwrapExports(convertAddressToNumericId);var convertAddressToNumericId_1=convertAddressToNumericId.convertAddressToNumericId,convertBurstTimeToEpochTime=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertBurstTimeToEpochTime=(e=>1e3*(internal.GenesisBlockTime+e))});unwrapExports(convertBurstTimeToEpochTime);var convertBurstTimeToEpochTime_1=convertBurstTimeToEpochTime.convertBurstTimeToEpochTime,convertBurstTimeToDate=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertBurstTimeToDate=(e=>new Date(convertBurstTimeToEpochTime.convertBurstTimeToEpochTime(e)))});unwrapExports(convertBurstTimeToDate);var convertBurstTimeToDate_1=convertBurstTimeToDate.convertBurstTimeToDate,convertByteArrayToHexString=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertByteArrayToHexString=((e,t=!1)=>{const r=[];for(let t=0;t<e.length;t++)r.push((e[t]>>>4).toString(16)),r.push((15&e[t]).toString(16));return t?r.join("").toUpperCase():r.join("")})});unwrapExports(convertByteArrayToHexString);var convertByteArrayToHexString_1=convertByteArrayToHexString.convertByteArrayToHexString,convertByteArrayToString=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertByteArrayToString=((e,t=0,r=null)=>{if(0===r)return"";let n=e;if(0!==t){const o=null===r?e.length-t:r;!function(e,t,r=0){if(r<0)throw new Error("Start index should not be negative");if(e.length<r+t)throw new Error("Need at least "+t+" bytes to convert to an integer")}(n,o,t),n=e.slice(t,t+o)}return decodeURIComponent(escape(String.fromCharCode.apply(null,Array.from(n))))})});unwrapExports(convertByteArrayToString);var convertByteArrayToString_1=convertByteArrayToString.convertByteArrayToString,convertDateToBurstTime=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertDateToBurstTime=(e=>Math.round(e.getTime()/1e3)-internal.GenesisBlockTime)});unwrapExports(convertDateToBurstTime);var convertDateToBurstTime_1=convertDateToBurstTime.convertDateToBurstTime,convertHexEndianess=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexEndianess=(e=>{let t="";const r=e;for(let e=r.length-1;e>=0;e-=2)t+=r[e-1]+r[e];return t})});unwrapExports(convertHexEndianess);var convertHexEndianess_1=convertHexEndianess.convertHexEndianess,convertHexStringToByteArray=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexStringToByteArray=(e=>{if(e.length%2)throw new Error(`Invalid Hex String: ${e}`);const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=parseInt(e.substr(r,2),16);if(Number.isNaN(n))throw new Error(`Invalid Hex String: ${e}`);t[r/2]=n}return t})});unwrapExports(convertHexStringToByteArray);var convertHexStringToByteArray_1=convertHexStringToByteArray.convertHexStringToByteArray,convertHexStringToDecString=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexStringToDecString=(e=>{const t=[0];let r,n,o;for(r=0;r<e.length;r+=1){for(o=parseInt(e.charAt(r),16),n=0;n<t.length;n+=1)t[n]=16*t[n]+o,o=t[n]/10|0,t[n]%=10;for(;o>0;)t.push(o%10),o=o/10|0}return t.reverse().join("")})});unwrapExports(convertHexStringToDecString);var convertHexStringToDecString_1=convertHexStringToDecString.convertHexStringToDecString;String.prototype.padStart||(String.prototype.padStart=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>=e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+String(this))});var padStartPolyfill=Object.freeze({__proto__:null}),bignumber=createCommonjsModule(function(e){!function(t){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,i=Math.floor,a="[BigNumber Error] ",c=a+"Number primitive has more than 15 significant digits: ",u=1e14,s=14,l=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,d=1e9;function p(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,r,n=1,o=e.length,i=e[0]+"";n<o;){for(t=e[n++]+"",r=s-t.length;r--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function m(e,t){var r,n,o=e.c,i=t.c,a=e.s,c=t.s,u=e.e,s=t.e;if(!a||!c)return null;if(r=o&&!o[0],n=i&&!i[0],r||n)return r?n?0:-c:a;if(a!=c)return a;if(r=a<0,n=u==s,!o||!i)return n?0:!o^r?1:-1;if(!n)return u>s^r?1:-1;for(c=(u=o.length)<(s=i.length)?u:s,a=0;a<c;a++)if(o[a]!=i[a])return o[a]>i[a]^r?1:-1;return u==s?0:u>s^r?1:-1}function v(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(a+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function b(e){var t=e.c.length-1;return p(e.e/s)==t&&e.c[t]%2!=0}function T(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(r=function e(t){var r,S,_,w,A,B,x,C,E,N=L.prototype={constructor:L,toString:null,valueOf:null},O=new L(1),D=20,k=4,P=-7,j=21,M=-1e7,H=1e7,I=!1,U=1,R=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},V="0123456789abcdefghijklmnopqrstuvwxyz";function L(e,t){var r,o,a,u,f,g,d,p,h=this;if(!(h instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber)return h.s=e.s,void(!e.c||e.e>H?h.c=h.e=null:e.e<M?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice()));if((g="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;f>=10;f/=10,u++);return void(u>H?h.c=h.e=null:(h.e=u,h.c=[e]))}p=String(e)}else{if(!n.test(p=String(e)))return _(h,p,g);h.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(u=p.indexOf("."))>-1&&(p=p.replace(".","")),(f=p.search(/e/i))>0?(u<0&&(u=f),u+=+p.slice(f+1),p=p.substring(0,f)):u<0&&(u=p.length)}else{if(v(t,2,V.length,"Base"),10==t)return q(h=new L(e),D+h.e+1,k);if(p=String(e),g="number"==typeof e){if(0*e!=0)return _(h,p,g,t);if(h.s=1/e<0?(p=p.slice(1),-1):1,L.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(r=V.slice(0,t),u=f=0,d=p.length;f<d;f++)if(r.indexOf(o=p.charAt(f))<0){if("."==o){if(f>u){u=d;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,f=-1,u=0;continue}return _(h,String(e),g,t)}g=!1,(u=(p=S(p,t,10,h.s)).indexOf("."))>-1?p=p.replace(".",""):u=p.length}for(f=0;48===p.charCodeAt(f);f++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(f,++d)){if(d-=f,g&&L.DEBUG&&d>15&&(e>l||e!==i(e)))throw Error(c+h.s*e);if((u=u-f-1)>H)h.c=h.e=null;else if(u<M)h.c=[h.e=0];else{if(h.e=u,h.c=[],f=(u+1)%s,u<0&&(f+=s),f<d){for(f&&h.c.push(+p.slice(0,f)),d-=s;f<d;)h.c.push(+p.slice(f,f+=s));f=s-(p=p.slice(f)).length}else f-=d;for(;f--;p+="0");h.c.push(+p)}}else h.c=[h.e=0]}function Q(e,t,r,n){var o,i,a,c,u;if(null==r?r=k:v(r,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)u=h(e.c),u=1==n||2==n&&(a<=P||a>=j)?T(u,a):y(u,a,"0");else if(i=(e=q(new L(e),t,r)).e,c=(u=h(e.c)).length,1==n||2==n&&(t<=i||i<=P)){for(;c<t;u+="0",c++);u=T(u,i)}else if(t-=a,u=y(u,i,"0"),i+1>c){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=i-c)>0)for(i+1==c&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}function G(e,t){for(var r,n=1,o=new L(e[0]);n<e.length;n++){if(!(r=new L(e[n])).s){o=r;break}t.call(o,r)&&(o=r)}return o}function $(e,t,r){for(var n=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,n++);return(r=n+r*s-1)>H?e.c=e.e=null:r<M?e.c=[e.e=0]:(e.e=r,e.c=t),e}function q(e,t,r,n){var a,c,l,g,d,p,h,m=e.c,v=f;if(m){e:{for(a=1,g=m[0];g>=10;g/=10,a++);if((c=t-a)<0)c+=s,l=t,h=(d=m[p=0])/v[a-l-1]%10|0;else if((p=o((c+1)/s))>=m.length){if(!n)break e;for(;m.length<=p;m.push(0));d=h=0,a=1,l=(c%=s)-s+1}else{for(d=g=m[p],a=1;g>=10;g/=10,a++);h=(l=(c%=s)-s+a)<0?0:d/v[a-l-1]%10|0}if(n=n||t<0||null!=m[p+1]||(l<0?d:d%v[a-l-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(c>0?l>0?d/v[a-l]:0:m[p-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,n?(t-=e.e+1,m[0]=v[(s-t%s)%s],e.e=-t||0):m[0]=e.e=0,e;if(0==c?(m.length=p,g=1,p--):(m.length=p+1,g=v[s-c],m[p]=l>0?i(d/v[a-l]%v[l])*g:0),n)for(;;){if(0==p){for(c=1,l=m[0];l>=10;l/=10,c++);for(l=m[0]+=g,g=1;l>=10;l/=10,g++);c!=g&&(e.e++,m[0]==u&&(m[0]=1));break}if(m[p]+=g,m[p]!=u)break;m[p--]=0,g=1}for(c=m.length;0===m[--c];m.pop());}e.e>H?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function z(e){var t,r=e.e;return null===r?e.toString():(t=h(e.c),t=r<=P||r>=j?T(t,r):y(t,r,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(a+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(r=e[t],0,d,t),D=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(r=e[t],0,8,t),k=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(v(r[0],-d,0,t),v(r[1],0,d,t),P=r[0],j=r[1]):(v(r,-d,d,t),P=-(j=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)v(r[0],-d,-1,t),v(r[1],1,d,t),M=r[0],H=r[1];else{if(v(r,-d,d,t),!r)throw Error(a+t+" cannot be zero: "+r);M=-(H=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(a+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw I=!r,Error(a+"crypto unavailable");I=r}else I=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(r=e[t],0,9,t),U=r),e.hasOwnProperty(t="POW_PRECISION")&&(v(r=e[t],0,d,t),R=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(a+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(a+t+" invalid: "+r);V=r}}return{DECIMAL_PLACES:D,ROUNDING_MODE:k,EXPONENTIAL_AT:[P,j],RANGE:[M,H],CRYPTO:I,MODULO_MODE:U,POW_PRECISION:R,FORMAT:F,ALPHABET:V}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,r,n=e.c,o=e.e,c=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===c||-1===c)&&o>=-d&&o<=d&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%s)<1&&(t+=s),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=u||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===c||1===c||-1===c))return!0;throw Error(a+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return G(arguments,N.lt)},L.minimum=L.min=function(){return G(arguments,N.gt)},L.random=(w=9007199254740992*Math.random()&2097151?function(){return i(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,c,u,l=0,g=[],p=new L(O);if(null==e?e=D:v(e,0,d),c=o(e/s),I)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(c*=2));l<c;)(u=131072*t[l]+(t[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(g.push(u%1e14),l+=2);l=c/2}else{if(!crypto.randomBytes)throw I=!1,Error(a+"crypto unavailable");for(t=crypto.randomBytes(c*=7);l<c;)(u=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(g.push(u%1e14),l+=7);l=c/7}if(!I)for(;l<c;)(u=w())<9e15&&(g[l++]=u%1e14);for(c=g[--l],e%=s,c&&e&&(u=f[s-e],g[l]=i(c/u)*u);0===g[l];g.pop(),l--);if(l<0)g=[n=0];else{for(n=-1;0===g[0];g.splice(0,1),n-=s);for(l=1,u=g[0];u>=10;u/=10,l++);l<s&&(n-=s-l)}return p.e=n,p.c=g,p}),L.sum=function(){for(var e=1,t=arguments,r=new L(t[0]);e<t.length;)r=r.plus(t[e++]);return r},S=function(){function e(e,t,r,n){for(var o,i,a=[0],c=0,u=e.length;c<u;){for(i=a.length;i--;a[i]*=t);for(a[0]+=n.indexOf(e.charAt(c++)),o=0;o<a.length;o++)a[o]>r-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/r|0,a[o]%=r)}return a.reverse()}return function(t,n,o,i,a){var c,u,s,l,f,g,d,p,m=t.indexOf("."),v=D,b=k;for(m>=0&&(l=R,R=0,t=t.replace(".",""),g=(p=new L(n)).pow(t.length-m),R=l,p.c=e(y(h(g.c),g.e,"0"),10,o,"0123456789"),p.e=p.c.length),s=l=(d=e(t,n,o,a?(c=V,"0123456789"):(c="0123456789",V))).length;0==d[--l];d.pop());if(!d[0])return c.charAt(0);if(m<0?--s:(g.c=d,g.e=s,g.s=i,d=(g=r(g,p,v,b,o)).c,f=g.r,s=g.e),m=d[u=s+v+1],l=o/2,f=f||u<0||null!=d[u+1],f=b<4?(null!=m||f)&&(0==b||b==(g.s<0?3:2)):m>l||m==l&&(4==b||f||6==b&&1&d[u-1]||b==(g.s<0?8:7)),u<1||!d[0])t=f?y(c.charAt(1),-v,c.charAt(0)):c.charAt(0);else{if(d.length=u,f)for(--o;++d[--u]>o;)d[u]=0,u||(++s,d=[1].concat(d));for(l=d.length;!d[--l];);for(m=0,t="";m<=l;t+=c.charAt(d[m++]));t=y(t,s,c.charAt(0))}return t}}(),r=function(){function e(e,t,r){var n,o,i,a,c=0,u=e.length,s=t%g,l=t/g|0;for(e=e.slice();u--;)c=((o=s*(i=e[u]%g)+(n=l*i+(a=e[u]/g|0)*s)%g*g+c)/r|0)+(n/g|0)+l*a,e[u]=o%r;return c&&(e=[c].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]<t[r]?1:0,e[r]=o*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,o,a,c,l){var f,g,d,h,m,v,b,T,y,S,_,w,A,B,x,C,E,N=n.s==o.s?1:-1,O=n.c,D=o.c;if(!(O&&O[0]&&D&&D[0]))return new L(n.s&&o.s&&(O?!D||O[0]!=D[0]:D)?O&&0==O[0]||!D?0*N:N/0:NaN);for(y=(T=new L(N)).c=[],N=a+(g=n.e-o.e)+1,l||(l=u,g=p(n.e/s)-p(o.e/s),N=N/s|0),d=0;D[d]==(O[d]||0);d++);if(D[d]>(O[d]||0)&&g--,N<0)y.push(1),h=!0;else{for(B=O.length,C=D.length,d=0,N+=2,(m=i(l/(D[0]+1)))>1&&(D=e(D,m,l),O=e(O,m,l),C=D.length,B=O.length),A=C,_=(S=O.slice(0,C)).length;_<C;S[_++]=0);E=D.slice(),E=[0].concat(E),x=D[0],D[1]>=l/2&&x++;do{if(m=0,(f=t(D,S,C,_))<0){if(w=S[0],C!=_&&(w=w*l+(S[1]||0)),(m=i(w/x))>1)for(m>=l&&(m=l-1),b=(v=e(D,m,l)).length,_=S.length;1==t(v,S,b,_);)m--,r(v,C<b?E:D,b,l),b=v.length,f=1;else 0==m&&(f=m=1),b=(v=D.slice()).length;if(b<_&&(v=[0].concat(v)),r(S,v,_,l),_=S.length,-1==f)for(;t(D,S,C,_)<1;)m++,r(S,C<_?E:D,_,l),_=S.length}else 0===f&&(m++,S=[0]);y[d++]=m,S[0]?S[_++]=O[A]||0:(S=[O[A]],_=1)}while((A++<B||null!=S[0])&&N--);h=null!=S[0],y[0]||y.splice(0,1)}if(l==u){for(d=1,N=y[0];N>=10;N/=10,d++);q(T,a+(T.e=d+g*s-1)+1,c,h)}else T.e=g,T.r=+h;return T}}(),A=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,x=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,E=/^\s*\+(?=[\w.])|^\s+|\s+$/g,_=function(e,t,r,n){var o,i=r?t:t.replace(E,"");if(C.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!r&&(i=i.replace(A,function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t}),n&&(o=n,i=i.replace(B,"$1").replace(x,"0.$1")),t!=i))return new L(i,o);if(L.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},N.absoluteValue=N.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},N.comparedTo=function(e,t){return m(this,new L(e,t))},N.decimalPlaces=N.dp=function(e,t){var r,n,o,i=this;if(null!=e)return v(e,0,d),null==t?t=k:v(t,0,8),q(new L(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-p(this.e/s))*s,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},N.dividedBy=N.div=function(e,t){return r(this,new L(e,t),D,k)},N.dividedToIntegerBy=N.idiv=function(e,t){return r(this,new L(e,t),0,1)},N.exponentiatedBy=N.pow=function(e,t){var r,n,c,u,l,f,g,d,p=this;if((e=new L(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+z(e));if(null!=t&&(t=new L(t)),l=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return d=new L(Math.pow(+z(p),l?2-b(e):+z(e))),t?d.mod(t):d;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(n=!f&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return u=p.s<0&&b(e)?-0:0,p.e>-1&&(u=1/u),new L(f?1/u:u);R&&(u=o(R/s+2))}for(l?(r=new L(.5),f&&(e.s=1),g=b(e)):g=(c=Math.abs(+z(e)))%2,d=new L(O);;){if(g){if(!(d=d.times(p)).c)break;u?d.c.length>u&&(d.c.length=u):n&&(d=d.mod(t))}if(c){if(0===(c=i(c/2)))break;g=c%2}else if(q(e=e.times(r),e.e+1,1),e.e>14)g=b(e);else{if(0==(c=+z(e)))break;g=c%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):n&&(p=p.mod(t))}return n?d:(f&&(d=O.div(d)),t?d.mod(t):u?q(d,R,k,void 0):d)},N.integerValue=function(e){var t=new L(this);return null==e?e=k:v(e,0,8),q(t,t.e+1,e)},N.isEqualTo=N.eq=function(e,t){return 0===m(this,new L(e,t))},N.isFinite=function(){return!!this.c},N.isGreaterThan=N.gt=function(e,t){return m(this,new L(e,t))>0},N.isGreaterThanOrEqualTo=N.gte=function(e,t){return 1===(t=m(this,new L(e,t)))||0===t},N.isInteger=function(){return!!this.c&&p(this.e/s)>this.c.length-2},N.isLessThan=N.lt=function(e,t){return m(this,new L(e,t))<0},N.isLessThanOrEqualTo=N.lte=function(e,t){return-1===(t=m(this,new L(e,t)))||0===t},N.isNaN=function(){return!this.s},N.isNegative=function(){return this.s<0},N.isPositive=function(){return this.s>0},N.isZero=function(){return!!this.c&&0==this.c[0]},N.minus=function(e,t){var r,n,o,i,a=this,c=a.s;if(t=(e=new L(e,t)).s,!c||!t)return new L(NaN);if(c!=t)return e.s=-t,a.plus(e);var l=a.e/s,f=e.e/s,g=a.c,d=e.c;if(!l||!f){if(!g||!d)return g?(e.s=-t,e):new L(d?a:NaN);if(!g[0]||!d[0])return d[0]?(e.s=-t,e):new L(g[0]?a:3==k?-0:0)}if(l=p(l),f=p(f),g=g.slice(),c=l-f){for((i=c<0)?(c=-c,o=g):(f=l,o=d),o.reverse(),t=c;t--;o.push(0));o.reverse()}else for(n=(i=(c=g.length)<(t=d.length))?c:t,c=t=0;t<n;t++)if(g[t]!=d[t]){i=g[t]<d[t];break}if(i&&(o=g,g=d,d=o,e.s=-e.s),(t=(n=d.length)-(r=g.length))>0)for(;t--;g[r++]=0);for(t=u-1;n>c;){if(g[--n]<d[n]){for(r=n;r&&!g[--r];g[r]=t);--g[r],g[n]+=u}g[n]-=d[n]}for(;0==g[0];g.splice(0,1),--f);return g[0]?$(e,g,f):(e.s=3==k?-1:1,e.c=[e.e=0],e)},N.modulo=N.mod=function(e,t){var n,o,i=this;return e=new L(e,t),!i.c||!e.s||e.c&&!e.c[0]?new L(NaN):!e.c||i.c&&!i.c[0]?new L(i):(9==U?(o=e.s,e.s=1,n=r(i,e,0,3),e.s=o,n.s*=o):n=r(i,e,0,U),(e=i.minus(n.times(e))).c[0]||1!=U||(e.s=i.s),e)},N.multipliedBy=N.times=function(e,t){var r,n,o,i,a,c,l,f,d,h,m,v,b,T,y,S=this,_=S.c,w=(e=new L(e,t)).c;if(!(_&&w&&_[0]&&w[0]))return!S.s||!e.s||_&&!_[0]&&!w||w&&!w[0]&&!_?e.c=e.e=e.s=null:(e.s*=S.s,_&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=p(S.e/s)+p(e.e/s),e.s*=S.s,(l=_.length)<(h=w.length)&&(b=_,_=w,w=b,o=l,l=h,h=o),o=l+h,b=[];o--;b.push(0));for(T=u,y=g,o=h;--o>=0;){for(r=0,m=w[o]%y,v=w[o]/y|0,i=o+(a=l);i>o;)r=((f=m*(f=_[--a]%y)+(c=v*f+(d=_[a]/y|0)*m)%y*y+b[i]+r)/T|0)+(c/y|0)+v*d,b[i--]=f%T;b[i]=r}return r?++n:b.splice(0,1),$(e,b,n)},N.negated=function(){var e=new L(this);return e.s=-e.s||null,e},N.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new L(e,t)).s,!o||!t)return new L(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/s,a=e.e/s,c=n.c,l=e.c;if(!i||!a){if(!c||!l)return new L(o/0);if(!c[0]||!l[0])return l[0]?e:new L(c[0]?n:0*o)}if(i=p(i),a=p(a),c=c.slice(),o=i-a){for(o>0?(a=i,r=l):(o=-o,r=c),r.reverse();o--;r.push(0));r.reverse()}for((o=c.length)-(t=l.length)<0&&(r=l,l=c,c=r,t=o),o=0;t;)o=(c[--t]=c[t]+l[t]+o)/u|0,c[t]=u===c[t]?0:c[t]%u;return o&&(c=[o].concat(c),++a),$(e,c,a)},N.precision=N.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return v(e,1,d),null==t?t=k:v(t,0,8),q(new L(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*s+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},N.shiftedBy=function(e){return v(e,-l,l),this.times("1e"+e)},N.squareRoot=N.sqrt=function(){var e,t,n,o,i,a=this,c=a.c,u=a.s,s=a.e,l=D+4,f=new L("0.5");if(1!==u||!c||!c[0])return new L(!u||u<0&&(!c||c[0])?NaN:c?a:1/0);if(0==(u=Math.sqrt(+z(a)))||u==1/0?(((t=h(c)).length+s)%2==0&&(t+="0"),u=Math.sqrt(+t),s=p((s+1)/2)-(s<0||s%2),n=new L(t=u==1/0?"1e"+s:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new L(u+""),n.c[0])for((u=(s=n.e)+l)<3&&(u=0);;)if(i=n,n=f.times(i.plus(r(a,i,l,1))),h(i.c).slice(0,u)===(t=h(n.c)).slice(0,u)){if(n.e<s&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(q(n,n.e+D+2,1),e=!n.times(n).eq(a));break}if(!o&&(q(i,i.e+D+2,0),i.times(i).eq(a))){n=i;break}l+=4,u+=4,o=1}return q(n,n.e+D+1,k,e)},N.toExponential=function(e,t){return null!=e&&(v(e,0,d),e++),Q(this,e,t,1)},N.toFixed=function(e,t){return null!=e&&(v(e,0,d),e=e+this.e+1),Q(this,e,t)},N.toFormat=function(e,t,r){var n,o=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=F;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=o.toFixed(e,t),o.c){var i,c=n.split("."),u=+r.groupSize,s=+r.secondaryGroupSize,l=r.groupSeparator||"",f=c[0],g=c[1],d=o.s<0,p=d?f.slice(1):f,h=p.length;if(s&&(i=u,u=s,s=i,h-=i),u>0&&h>0){for(i=h%u||u,f=p.substr(0,i);i<h;i+=u)f+=l+p.substr(i,u);s>0&&(f+=l+p.slice(i)),d&&(f="-"+f)}n=g?f+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?g.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):g):f}return(r.prefix||"")+n+(r.suffix||"")},N.toFraction=function(e){var t,n,o,i,c,u,l,g,d,p,m,v,b=this,T=b.c;if(null!=e&&(!(l=new L(e)).isInteger()&&(l.c||1!==l.s)||l.lt(O)))throw Error(a+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+z(l));if(!T)return new L(b);for(t=new L(O),d=n=new L(O),o=g=new L(O),v=h(T),c=t.e=v.length-b.e-1,t.c[0]=f[(u=c%s)<0?s+u:u],e=!e||l.comparedTo(t)>0?c>0?t:d:l,u=H,H=1/0,l=new L(v),g.c[0]=0;p=r(l,t,0,1),1!=(i=n.plus(p.times(o))).comparedTo(e);)n=o,o=i,d=g.plus(p.times(i=d)),g=i,t=l.minus(p.times(i=t)),l=i;return i=r(e.minus(n),o,0,1),g=g.plus(i.times(d)),n=n.plus(i.times(o)),g.s=d.s=b.s,m=r(d,o,c*=2,k).minus(b).abs().comparedTo(r(g,n,c,k).minus(b).abs())<1?[d,o]:[g,n],H=u,m},N.toNumber=function(){return+z(this)},N.toPrecision=function(e,t){return null!=e&&v(e,1,d),Q(this,e,t,2)},N.toString=function(e){var t,r=this,n=r.s,o=r.e;return null===o?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=o<=P||o>=j?T(h(r.c),o):y(h(r.c),o,"0"):10===e?t=y(h((r=q(new L(r),D+o+1,k)).c),r.e,"0"):(v(e,2,V.length,"Base"),t=S(y(h(r.c),o,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},N.valueOf=N.toJSON=function(){return z(this)},N._isBigNumber=!0,null!=t&&L.set(t),L}()).default=r.BigNumber=r,e.exports?e.exports=r:(t||(t="undefined"!=typeof self&&self?self:window),t.BigNumber=r)}(commonjsGlobal)});getCjsExportFromNamespace(padStartPolyfill);var convertDecStringToHexString=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.convertDecStringToHexString=((e,t=2)=>{let r="string"==typeof e?new bignumber.default(e):e;if(r.isNaN())throw new Error(`Invalid decimal argument: [${e}] - Expected a valid decimal value`);if(t<0)throw new Error(`Invalid padding argument: [${t}] - Expected a positive value`);const n=r.lt(0);n&&(r=(e=>{let t=e.multipliedBy(-1).toString(2);for(;t.length%8;)t="0"+t;const r="1"===t[0]&&-1!==t.slice(1).indexOf("1")?"11111111":"";return t=t.split("").map(e=>"0"===e?"1":"0").join(""),new bignumber.default(r+t,2).plus(1)})(r));const o=r.toString(16),i=Math.ceil(o.length/t);return o.padStart(i*t,n?"f":"0")})});unwrapExports(convertDecStringToHexString);var convertDecStringToHexString_1=convertDecStringToHexString.convertDecStringToHexString,convertHexStringToString=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexStringToString=(e=>convertByteArrayToString.convertByteArrayToString(convertHexStringToByteArray.convertHexStringToByteArray(e)))});unwrapExports(convertHexStringToString);var convertHexStringToString_1=convertHexStringToString.convertHexStringToString,convertNQTStringToNumber=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertNQTStringToNumber=(e=>{if(null==e||""===e)throw new Error("Invalid argument");return parseFloat(e)/1e8})});unwrapExports(convertNQTStringToNumber);var convertNQTStringToNumber_1=convertNQTStringToNumber.convertNQTStringToNumber,convertNumberToNQTString=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertNumberToNQTString=(e=>{if(null==e)throw new Error("Invalid argument");return parseFloat(e.toString()).toFixed(8).replace(".","")})});unwrapExports(convertNumberToNQTString);var convertNumberToNQTString_1=convertNumberToNQTString.convertNumberToNQTString,convertNumericIdToAddress=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertNumericIdToAddress=(e=>{if(null==e||0===e.trim().length)return;const t=[],r=internal.initialCodeword.slice();let n=0,o=e.length;for(let r=0;r<o;r++)t[r]=e.charCodeAt(r)-"0".charCodeAt(0);let i=0,a=0;do{i=0,a=0;for(let e=0;e<o;e++)(i=10*i+t[e])>=32?(t[a]=i>>5,i&=31,a++):a>0&&(t[a]=0,a++);o=a,r[n]=i,n++}while(o>0);const c=[0,0,0,0];for(let e=internal.base32Length-1;e>=0;e--){const t=r[e]^c[3];c[3]=c[2]^internal.gmult(30,t),c[2]=c[1]^internal.gmult(6,t),c[1]=c[0]^internal.gmult(9,t),c[0]=internal.gmult(17,t)}r[13]=c[0],r[14]=c[1],r[15]=c[2],r[16]=c[3];let u="BURST-";for(let e=0;e<17;e++)u+=internal.alphabet[r[internal.cwmap[e]]],3==(3&e)&&e<13&&(u+="-");return u})});unwrapExports(convertNumericIdToAddress);var convertNumericIdToAddress_1=convertNumericIdToAddress.convertNumericIdToAddress,convertStringToByteArray=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertStringToByteArray=(e=>{const t=unescape(encodeURIComponent(e)),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r})});unwrapExports(convertStringToByteArray);var convertStringToByteArray_1=convertStringToByteArray.convertStringToByteArray,convertStringToHexString=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertStringToHexString=(e=>convertByteArrayToHexString.convertByteArrayToHexString(convertStringToByteArray.convertStringToByteArray(e)))});unwrapExports(convertStringToHexString);var convertStringToHexString_1=convertStringToHexString.convertStringToHexString,createDeeplinkArgs=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Text=0]="Text",e[e.Hexadecimal=1]="Hexadecimal",e[e.Base64=2]="Base64"}(t.EncoderFormat||(t.EncoderFormat={}))});unwrapExports(createDeeplinkArgs);var createDeeplinkArgs_1=createDeeplinkArgs.EncoderFormat,base64=createCommonjsModule(function(module,exports){var global,factory;global="undefined"!=typeof self?self:"undefined"!=typeof window?window:commonjsGlobal,factory=function(global){global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(r>>>18),b64chars.charAt(r>>>12&63),t>=2?"=":b64chars.charAt(r>>>6&63),t>=1?"=":b64chars.charAt(63&r)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e)).toString("base64")}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e)).toString("base64")}:function(e){return btoa(utob(e))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):_encode(String(e))},encodeURI=function(e){return encode(e,!0)},re_btou=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),cb_btou=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,r=t%4,n=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(255&n)];return o.length-=[0,0,2,1][r],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),module.exports&&(module.exports.Base64=global.Base64),{Base64:global.Base64}},module.exports=factory(global)}),base64_1=base64.Base64,convertStringToBase64String=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertStringToBase64String=((e,t=!0)=>t?base64.Base64.encodeURI(e):base64.Base64.encode(e))});unwrapExports(convertStringToBase64String);var convertStringToBase64String_1=convertStringToBase64String.convertStringToBase64String,createDeeplink=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createDeeplink=(e=>{const{encoderFormat:t=createDeeplinkArgs.EncoderFormat.Base64,domain:r,action:n,payload:o}=e;let i=`burst.${r}://v1`;return n&&(i+=`?action=${n}`),o&&(i+=`&payload=${function(e,t){let r=e;switch("string"!=typeof e&&(r=JSON.stringify(e)),t){case createDeeplinkArgs.EncoderFormat.Hexadecimal:return convertStringToHexString.convertStringToHexString(r);case createDeeplinkArgs.EncoderFormat.Base64:return convertStringToBase64String.convertStringToBase64String(r);case createDeeplinkArgs.EncoderFormat.Text:default:return r}}(o,t)}`),i})});unwrapExports(createDeeplink);var createDeeplink_1=createDeeplink.createDeeplink,parseDeeplink=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=/^burst.(.+):\/\/(v.+?)\??/i;t.parseDeeplink=(e=>{const t=()=>{throw new Error("Invalid deeplink: "+e)},n=(e,r)=>(e.startsWith(r+"=")||t(),e.split("=")[1]),o=e.match(r);o&&3===o.length||t();const i={domain:o[1],version:o[2],action:void 0,payload:void 0,decodedPayload:void 0};try{const r=e.indexOf("?");if(-1!==r){const o=e.substring(r+1).split("&");o.length>=1&&(o.length>2&&t(),i.action=n(o[0],"action"),2===o.length&&(i.payload=n(o[1],"payload")))}}catch(e){t()}return i})});unwrapExports(parseDeeplink);var parseDeeplink_1=parseDeeplink.parseDeeplink,sumNQTStringToNumber_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.sumNQTStringToNumber=function(...e){return e.reduce((e,t)=>e+convertNQTStringToNumber.convertNQTStringToNumber(t),0)}});unwrapExports(sumNQTStringToNumber_1);var sumNQTStringToNumber_2=sumNQTStringToNumber_1.sumNQTStringToNumber,typings=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(createDeeplinkArgs)});unwrapExports(typings);var constants=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BurstSymbol="Ƀ",t.BurstPlanckSymbol="ƀ",t.FeeQuantPlanck=735e3,t.OneBurstPlanck=1e8});unwrapExports(constants);var constants_1=constants.BurstSymbol,constants_2=constants.BurstPlanckSymbol,constants_3=constants.FeeQuantPlanck,constants_4=constants.OneBurstPlanck,burstTime=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this._burstTimestamp=e}static fromBurstTimestamp(e){return new r(e)}static fromDate(e){const t=new r(0);return t.setDate(e),t}getBurstTimestamp(){return this._burstTimestamp}setBurstTimestamp(e){this._burstTimestamp=e}getEpoch(){return 1e3*(internal.GenesisBlockTime+this._burstTimestamp)}getDate(){return new Date(this.getEpoch())}setDate(e){this._burstTimestamp=Math.round(e.getTime()/1e3)-internal.GenesisBlockTime}equals(e){return this._burstTimestamp===e._burstTimestamp}before(e){return this._burstTimestamp<e._burstTimestamp}after(e){return this._burstTimestamp>e._burstTimestamp}}t.BurstTime=r});unwrapExports(burstTime);var burstTime_1=burstTime.BurstTime,burstValue=createCommonjsModule(function(e,t){var r;function n(e){if(!e||!/^-?\d*(\.\d+)?$/.test(e))throw new Error(`Invalid value: ${e}`)}Object.defineProperty(t,"__esModule",{value:!0}),bignumber.default.config({EXPONENTIAL_AT:[-9,20]}),function(e){e[e.PLANCK=0]="PLANCK",e[e.BURST=1]="BURST"}(r=t.BurstValueFormat||(t.BurstValueFormat={}));class o{constructor(e){n(e),this._planck=new bignumber.default(e)}static fromPlanck(e){return new o(e)}static fromBurst(e){const t=new o("0");return t.setBurst("number"==typeof e?e.toString(10):e),t}getRaw(){return this._planck}getPlanck(){return this._planck.toString()}setPlanck(e){n(e),this._planck=new bignumber.default(e)}getBurst(){return this._planck.dividedBy(1e8).toString()}setBurst(e){n(e),this._planck=new bignumber.default(e).multipliedBy(1e8)}equals(e){return this._planck.eq(e._planck)}lessOrEqual(e){return this._planck.lte(e._planck)}less(e){return this._planck.lt(e._planck)}greaterOrEqual(e){return this._planck.gte(e._planck)}greater(e){return this._planck.gt(e._planck)}add(e){return this._planck=this._planck.plus(e._planck),this}subtract(e){return this._planck=this._planck.minus(e._planck),this}multiply(e){return this._planck=this._planck.multipliedBy(e),this}divide(e){if(0===e)throw new Error("Division by zero");return this._planck=this._planck.div(e),this}toString(e=r.BURST){return e===r.BURST?`${constants.BurstSymbol} ${this.getBurst()}`:`${constants.BurstPlanckSymbol} ${this._planck}`}}t.BurstValue=o});unwrapExports(burstValue);var burstValue_1=burstValue.BurstValueFormat,burstValue_2=burstValue.BurstValue,out=createCommonjsModule(function(e,t){function r(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),r(convertAddressToNumericId),r(convertBurstTimeToDate),r(convertBurstTimeToEpochTime),r(convertByteArrayToHexString),r(convertByteArrayToString),r(convertDateToBurstTime),r(convertHexEndianess),r(convertHexStringToByteArray),r(convertHexStringToDecString),r(convertDecStringToHexString),r(convertHexStringToString),r(convertNQTStringToNumber),r(convertNumberToNQTString),r(convertNumericIdToAddress),r(convertStringToByteArray),r(convertStringToHexString),r(createDeeplink),r(isBurstAddress),r(parseDeeplink),r(sumNQTStringToNumber_1),r(typings),r(constants),r(burstTime),r(burstValue)});unwrapExports(out);var out_1=out.BurstValue,out_2=out.FeeQuantPlanck,out_3=out.OneBurstPlanck,out_4=out.convertHexStringToDecString,out_5=out.convertDecStringToHexString,out_6=out.convertHexStringToString,out_7=out.convertHexEndianess,out_8=out.convertHexStringToByteArray,out_9=out.convertByteArrayToHexString;function getContractDatablock(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,n=16*t,o=n+r;if(o>e.machineData.length)throw new Error("Insufficient length for variable at position: ".concat(n," (and given length: ").concat(r,")"));if(o%2!=0)throw new Error("Invalid position: ".concat(n," (or given length: ").concat(r,") - must be at least multiple of 2"));return out_7(e.machineData.substr(n,r))}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var CodePageSize=256;function countCodePages(e){return Math.ceil(e.length/2/CodePageSize)}var ContractDataView=function(){function e(t){_classCallCheck(this,e),this._contract=t}return _createClass(e,[{key:"getContract",value:function(){return this._contract}},{key:"countCodePages",value:function(){return countCodePages(this._contract.machineCode)}},{key:"getVariableAsString",value:function(t){var r=this.getHexDataAt(t,e.VariableLength);return out_6(r.replace(/00/g,""))}},{key:"getDataBlocksAsString",value:function(t,r){var n=this.getHexDataAt(t,r*e.VariableLength);return out_6(n.replace(/00/g,""))}},{key:"getVariableAsDecimal",value:function(e){return out_4(this.getVariable(e))}},{key:"getVariable",value:function(t){return this.getHexDataAt(t,e.VariableLength)}},{key:"getHexDataAt",value:function(t,r){var n=r||this._contract.machineData.length-e.VariableLength*t;return getContractDatablock(this._contract,t,n)}}]),e}();function calculateMinimumCreationFee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return out_1.fromPlanck((t?10*out_2:out_3).toString(10)).multiply(2+countCodePages(e)+1)}ContractDataView.VariableLength=16;var convertArgument=function(e){return"boolean"==typeof e?e?"1":"0":"number"==typeof e?"".concat(e):e},generateMethodCall=function(e){var t=e.methodArgs?[e.methodHash].concat(_toConsumableArray(e.methodArgs)):[e.methodHash];if(t.length>4)throw new Error("At maximum ".concat(3," are supported"));return t.map(convertArgument).map(function(e){return out_5(e,16)}).map(out_7).join("")};return exports.CodePageSize=CodePageSize,exports.ContractDataView=ContractDataView,exports.calculateMinimumCreationFee=calculateMinimumCreationFee,exports.countCodePages=countCodePages,exports.generateMethodCall=generateMethodCall,exports.getContractDatablock=getContractDatablock,exports}({}); | ||
var b$contracts=function(exports){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,r){return e(r={exports:{}},r.exports),r.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var internal=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.gmult=r.ginv=r.base32Length=r.alphabet=r.cwmap=r.glog=r.gexp=r.initialCodeword=r.GenesisBlockTime=void 0,r.GenesisBlockTime=Date.UTC(2014,7,11,2,0,0,0)/1e3,r.initialCodeword=[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r.gexp=[1,2,4,8,16,5,10,20,13,26,17,7,14,28,29,31,27,19,3,6,12,24,21,15,30,25,23,11,22,9,18,1],r.glog=[0,0,1,18,2,5,19,11,3,29,6,27,20,8,12,23,4,10,30,17,7,22,28,26,21,25,9,16,13,14,24,15],r.cwmap=[3,2,1,0,7,6,5,4,13,14,15,16,12,8,9,10,11],r.alphabet="23456789ABCDEFGHJKLMNPQRSTUVWXYZ".split(""),r.base32Length=13,r.ginv=(e=>r.gexp[31-r.glog[e]]),r.gmult=((e,t)=>{if(0===e||0===t)return 0;const n=(r.glog[e]+r.glog[t])%31;return r.gexp[n]})});unwrapExports(internal);var internal_1=internal.gmult,internal_2=internal.ginv,internal_3=internal.base32Length,internal_4=internal.alphabet,internal_5=internal.cwmap,internal_6=internal.glog,internal_7=internal.gexp,internal_8=internal.initialCodeword,internal_9=internal.GenesisBlockTime,isBurstAddress=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isBurstAddress=r.isValid=void 0,r.isValid=(e=>{0===e.indexOf("BURST-")&&(e=e.substr(6));const r=internal.initialCodeword.slice();let t=0;for(let n=0;n<e.length;n++){const o=internal.alphabet.indexOf(e.charAt(n));if(!(o<=-1||o>internal.alphabet.length)){if(t>16)return!1;r[internal.cwmap[t]]=o,t++}}if(17!==t)return!1;let n=0;for(let e=1;e<5;e++){let t=0;for(let n=0;n<31;n++){if(n>12&&n<27)continue;let o=n;n>26&&(o-=14),t^=internal.gmult(r[o],internal.gexp[e*n%31])}n|=t}return 0===n}),r.isBurstAddress=(e=>/^BURST\-[A-Z0-9]{4}\-[A-Z0-9]{4}\-[A-Z0-9]{4}\-[A-Z0-9]{5}/i.test(e)&&r.isValid(e))});unwrapExports(isBurstAddress);var isBurstAddress_1=isBurstAddress.isBurstAddress,isBurstAddress_2=isBurstAddress.isValid,convertAddressToNumericId=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertAddressToNumericId=void 0,r.convertAddressToNumericId=(e=>{if(null==e||0===e.trim().length)return;if(0!==e.indexOf("BURST-"))return;e=e.substr(6);const r=internal.initialCodeword.slice();let t=0;for(let n=0;n<e.length;n++){const o=internal.alphabet.indexOf(e.charAt(n));if(!(o<=-1||o>internal.alphabet.length)){if(t>16)return;r[internal.cwmap[t]]=o,t++}}if(!isBurstAddress.isValid(e))return;let n=internal.base32Length;const o=[];for(let e=0;e<n;e++)o[e]=r[n-e-1];let i,a="",c=0;do{i=0,c=0;for(let e=0;e<n;e++)(c=32*c+o[e])>=10?(o[i]=Math.floor(c/10),c%=10,i+=1):i>0&&(o[i]=0,i+=1);n=i,a+=c}while(n>0);return a.split("").reverse().join("")})});unwrapExports(convertAddressToNumericId);var convertAddressToNumericId_1=convertAddressToNumericId.convertAddressToNumericId,convertBurstTimeToEpochTime=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertBurstTimeToEpochTime=void 0,r.convertBurstTimeToEpochTime=(e=>1e3*(internal.GenesisBlockTime+e))});unwrapExports(convertBurstTimeToEpochTime);var convertBurstTimeToEpochTime_1=convertBurstTimeToEpochTime.convertBurstTimeToEpochTime,convertBurstTimeToDate=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertBurstTimeToDate=void 0,r.convertBurstTimeToDate=(e=>new Date(convertBurstTimeToEpochTime.convertBurstTimeToEpochTime(e)))});unwrapExports(convertBurstTimeToDate);var convertBurstTimeToDate_1=convertBurstTimeToDate.convertBurstTimeToDate,convertByteArrayToHexString=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertByteArrayToHexString=void 0,r.convertByteArrayToHexString=((e,r=!1)=>{const t=[];for(let r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return r?t.join("").toUpperCase():t.join("")})});unwrapExports(convertByteArrayToHexString);var convertByteArrayToHexString_1=convertByteArrayToHexString.convertByteArrayToHexString,convertByteArrayToString=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertByteArrayToString=void 0,r.convertByteArrayToString=((e,r=0,t=null)=>{if(0===t)return"";let n=e;if(0!==r){const o=null===t?e.length-r:t;!function(e,r,t=0){if(t<0)throw new Error("Start index should not be negative");if(e.length<t+r)throw new Error("Need at least "+r+" bytes to convert to an integer")}(n,o,r),n=e.slice(r,r+o)}return decodeURIComponent(escape(String.fromCharCode.apply(null,Array.from(n))))})});unwrapExports(convertByteArrayToString);var convertByteArrayToString_1=convertByteArrayToString.convertByteArrayToString,convertDateToBurstTime=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertDateToBurstTime=void 0,r.convertDateToBurstTime=(e=>Math.round(e.getTime()/1e3)-internal.GenesisBlockTime)});unwrapExports(convertDateToBurstTime);var convertDateToBurstTime_1=convertDateToBurstTime.convertDateToBurstTime,convertHexEndianess=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertHexEndianess=void 0,r.convertHexEndianess=(e=>{let r="";const t=e;for(let e=t.length-1;e>=0;e-=2)r+=t[e-1]+t[e];return r})});unwrapExports(convertHexEndianess);var convertHexEndianess_1=convertHexEndianess.convertHexEndianess,convertHexStringToByteArray=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertHexStringToByteArray=void 0,r.convertHexStringToByteArray=(e=>{if(e.length%2)throw new Error(`Invalid Hex String: ${e}`);const r=new Uint8Array(e.length/2);for(let t=0;t<e.length;t+=2){const n=parseInt(e.substr(t,2),16);if(Number.isNaN(n))throw new Error(`Invalid Hex String: ${e}`);r[t/2]=n}return r})});unwrapExports(convertHexStringToByteArray);var convertHexStringToByteArray_1=convertHexStringToByteArray.convertHexStringToByteArray,convertHexStringToDecString=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertHexStringToDecString=void 0,r.convertHexStringToDecString=(e=>{const r=[0];let t,n,o;for(t=0;t<e.length;t+=1){for(o=parseInt(e.charAt(t),16),n=0;n<r.length;n+=1)r[n]=16*r[n]+o,o=r[n]/10|0,r[n]%=10;for(;o>0;)r.push(o%10),o=o/10|0}return r.reverse().join("")})});unwrapExports(convertHexStringToDecString);var convertHexStringToDecString_1=convertHexStringToDecString.convertHexStringToDecString;String.prototype.padStart||(String.prototype.padStart=function(e,r){return e>>=0,r=String(void 0!==r?r:" "),this.length>=e?String(this):((e-=this.length)>r.length&&(r+=r.repeat(e/r.length)),r.slice(0,e)+String(this))});var padStartPolyfill=Object.freeze({__proto__:null}),bignumber=createCommonjsModule(function(e){!function(r){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,i=Math.floor,a="[BigNumber Error] ",c=a+"Number primitive has more than 15 significant digits: ",u=1e14,s=14,l=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,d=1e9;function p(e){var r=0|e;return e>0||e===r?r:r-1}function m(e){for(var r,t,n=1,o=e.length,i=e[0]+"";n<o;){for(r=e[n++]+"",t=s-r.length;t--;r="0"+r);i+=r}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function h(e,r){var t,n,o=e.c,i=r.c,a=e.s,c=r.s,u=e.e,s=r.e;if(!a||!c)return null;if(t=o&&!o[0],n=i&&!i[0],t||n)return t?n?0:-c:a;if(a!=c)return a;if(t=a<0,n=u==s,!o||!i)return n?0:!o^t?1:-1;if(!n)return u>s^t?1:-1;for(c=(u=o.length)<(s=i.length)?u:s,a=0;a<c;a++)if(o[a]!=i[a])return o[a]>i[a]^t?1:-1;return u==s?0:u>s^t?1:-1}function v(e,r,t,n){if(e<r||e>t||e!==i(e))throw Error(a+(n||"Argument")+("number"==typeof e?e<r||e>t?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function b(e){var r=e.c.length-1;return p(e.e/s)==r&&e.c[r]%2!=0}function T(e,r){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(r<0?"e":"e+")+r}function S(e,r,t){var n,o;if(r<0){for(o=t+".";++r;o+=t);e=o+e}else if(++r>(n=e.length)){for(o=t,r-=n;--r;o+=t);e+=o}else r<n&&(e=e.slice(0,r)+"."+e.slice(r));return e}(t=function e(r){var t,y,_,w,B,A,x,C,N,E=L.prototype={constructor:L,toString:null,valueOf:null},D=new L(1),O=20,k=4,j=-7,P=21,M=-1e7,H=1e7,I=!1,U=1,F=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},V="0123456789abcdefghijklmnopqrstuvwxyz";function L(e,r){var t,o,a,u,f,g,d,p,m=this;if(!(m instanceof L))return new L(e,r);if(null==r){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>H?m.c=m.e=null:e.e<M?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((g="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;f>=10;f/=10,u++);return void(u>H?m.c=m.e=null:(m.e=u,m.c=[e]))}p=String(e)}else{if(!n.test(p=String(e)))return _(m,p,g);m.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(u=p.indexOf("."))>-1&&(p=p.replace(".","")),(f=p.search(/e/i))>0?(u<0&&(u=f),u+=+p.slice(f+1),p=p.substring(0,f)):u<0&&(u=p.length)}else{if(v(r,2,V.length,"Base"),10==r)return q(m=new L(e),O+m.e+1,k);if(p=String(e),g="number"==typeof e){if(0*e!=0)return _(m,p,g,r);if(m.s=1/e<0?(p=p.slice(1),-1):1,L.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(t=V.slice(0,r),u=f=0,d=p.length;f<d;f++)if(t.indexOf(o=p.charAt(f))<0){if("."==o){if(f>u){u=d;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,f=-1,u=0;continue}return _(m,String(e),g,r)}g=!1,(u=(p=y(p,r,10,m.s)).indexOf("."))>-1?p=p.replace(".",""):u=p.length}for(f=0;48===p.charCodeAt(f);f++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(f,++d)){if(d-=f,g&&L.DEBUG&&d>15&&(e>l||e!==i(e)))throw Error(c+m.s*e);if((u=u-f-1)>H)m.c=m.e=null;else if(u<M)m.c=[m.e=0];else{if(m.e=u,m.c=[],f=(u+1)%s,u<0&&(f+=s),f<d){for(f&&m.c.push(+p.slice(0,f)),d-=s;f<d;)m.c.push(+p.slice(f,f+=s));f=s-(p=p.slice(f)).length}else f-=d;for(;f--;p+="0");m.c.push(+p)}}else m.c=[m.e=0]}function G(e,r,t,n){var o,i,a,c,u;if(null==t?t=k:v(t,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==r)u=m(e.c),u=1==n||2==n&&(a<=j||a>=P)?T(u,a):S(u,a,"0");else if(i=(e=q(new L(e),r,t)).e,c=(u=m(e.c)).length,1==n||2==n&&(r<=i||i<=j)){for(;c<r;u+="0",c++);u=T(u,i)}else if(r-=a,u=S(u,i,"0"),i+1>c){if(--r>0)for(u+=".";r--;u+="0");}else if((r+=i-c)>0)for(i+1==c&&(u+=".");r--;u+="0");return e.s<0&&o?"-"+u:u}function Q(e,r){for(var t,n=1,o=new L(e[0]);n<e.length;n++){if(!(t=new L(e[n])).s){o=t;break}r.call(o,t)&&(o=t)}return o}function $(e,r,t){for(var n=1,o=r.length;!r[--o];r.pop());for(o=r[0];o>=10;o/=10,n++);return(t=n+t*s-1)>H?e.c=e.e=null:t<M?e.c=[e.e=0]:(e.e=t,e.c=r),e}function q(e,r,t,n){var a,c,l,g,d,p,m,h=e.c,v=f;if(h){e:{for(a=1,g=h[0];g>=10;g/=10,a++);if((c=r-a)<0)c+=s,l=r,m=(d=h[p=0])/v[a-l-1]%10|0;else if((p=o((c+1)/s))>=h.length){if(!n)break e;for(;h.length<=p;h.push(0));d=m=0,a=1,l=(c%=s)-s+1}else{for(d=g=h[p],a=1;g>=10;g/=10,a++);m=(l=(c%=s)-s+a)<0?0:d/v[a-l-1]%10|0}if(n=n||r<0||null!=h[p+1]||(l<0?d:d%v[a-l-1]),n=t<4?(m||n)&&(0==t||t==(e.s<0?3:2)):m>5||5==m&&(4==t||n||6==t&&(c>0?l>0?d/v[a-l]:0:h[p-1])%10&1||t==(e.s<0?8:7)),r<1||!h[0])return h.length=0,n?(r-=e.e+1,h[0]=v[(s-r%s)%s],e.e=-r||0):h[0]=e.e=0,e;if(0==c?(h.length=p,g=1,p--):(h.length=p+1,g=v[s-c],h[p]=l>0?i(d/v[a-l]%v[l])*g:0),n)for(;;){if(0==p){for(c=1,l=h[0];l>=10;l/=10,c++);for(l=h[0]+=g,g=1;l>=10;l/=10,g++);c!=g&&(e.e++,h[0]==u&&(h[0]=1));break}if(h[p]+=g,h[p]!=u)break;h[p--]=0,g=1}for(c=h.length;0===h[--c];h.pop());}e.e>H?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function z(e){var r,t=e.e;return null===t?e.toString():(r=m(e.c),r=t<=j||t>=P?T(r,t):S(r,t,"0"),e.s<0?"-"+r:r)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var r,t;if(null!=e){if("object"!=typeof e)throw Error(a+"Object expected: "+e);if(e.hasOwnProperty(r="DECIMAL_PLACES")&&(v(t=e[r],0,d,r),O=t),e.hasOwnProperty(r="ROUNDING_MODE")&&(v(t=e[r],0,8,r),k=t),e.hasOwnProperty(r="EXPONENTIAL_AT")&&((t=e[r])&&t.pop?(v(t[0],-d,0,r),v(t[1],0,d,r),j=t[0],P=t[1]):(v(t,-d,d,r),j=-(P=t<0?-t:t))),e.hasOwnProperty(r="RANGE"))if((t=e[r])&&t.pop)v(t[0],-d,-1,r),v(t[1],1,d,r),M=t[0],H=t[1];else{if(v(t,-d,d,r),!t)throw Error(a+r+" cannot be zero: "+t);M=-(H=t<0?-t:t)}if(e.hasOwnProperty(r="CRYPTO")){if((t=e[r])!==!!t)throw Error(a+r+" not true or false: "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw I=!t,Error(a+"crypto unavailable");I=t}else I=t}if(e.hasOwnProperty(r="MODULO_MODE")&&(v(t=e[r],0,9,r),U=t),e.hasOwnProperty(r="POW_PRECISION")&&(v(t=e[r],0,d,r),F=t),e.hasOwnProperty(r="FORMAT")){if("object"!=typeof(t=e[r]))throw Error(a+r+" not an object: "+t);R=t}if(e.hasOwnProperty(r="ALPHABET")){if("string"!=typeof(t=e[r])||/^.$|[+-.\s]|(.).*\1/.test(t))throw Error(a+r+" invalid: "+t);V=t}}return{DECIMAL_PLACES:O,ROUNDING_MODE:k,EXPONENTIAL_AT:[j,P],RANGE:[M,H],CRYPTO:I,MODULO_MODE:U,POW_PRECISION:F,FORMAT:R,ALPHABET:V}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var r,t,n=e.c,o=e.e,c=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===c||-1===c)&&o>=-d&&o<=d&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((r=(o+1)%s)<1&&(r+=s),String(n[0]).length==r){for(r=0;r<n.length;r++)if((t=n[r])<0||t>=u||t!==i(t))break e;if(0!==t)return!0}}}else if(null===n&&null===o&&(null===c||1===c||-1===c))return!0;throw Error(a+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return Q(arguments,E.lt)},L.minimum=L.min=function(){return Q(arguments,E.gt)},L.random=(w=9007199254740992*Math.random()&2097151?function(){return i(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var r,t,n,c,u,l=0,g=[],p=new L(D);if(null==e?e=O:v(e,0,d),c=o(e/s),I)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(c*=2));l<c;)(u=131072*r[l]+(r[l+1]>>>11))>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),r[l]=t[0],r[l+1]=t[1]):(g.push(u%1e14),l+=2);l=c/2}else{if(!crypto.randomBytes)throw I=!1,Error(a+"crypto unavailable");for(r=crypto.randomBytes(c*=7);l<c;)(u=281474976710656*(31&r[l])+1099511627776*r[l+1]+4294967296*r[l+2]+16777216*r[l+3]+(r[l+4]<<16)+(r[l+5]<<8)+r[l+6])>=9e15?crypto.randomBytes(7).copy(r,l):(g.push(u%1e14),l+=7);l=c/7}if(!I)for(;l<c;)(u=w())<9e15&&(g[l++]=u%1e14);for(c=g[--l],e%=s,c&&e&&(u=f[s-e],g[l]=i(c/u)*u);0===g[l];g.pop(),l--);if(l<0)g=[n=0];else{for(n=-1;0===g[0];g.splice(0,1),n-=s);for(l=1,u=g[0];u>=10;u/=10,l++);l<s&&(n-=s-l)}return p.e=n,p.c=g,p}),L.sum=function(){for(var e=1,r=arguments,t=new L(r[0]);e<r.length;)t=t.plus(r[e++]);return t},y=function(){function e(e,r,t,n){for(var o,i,a=[0],c=0,u=e.length;c<u;){for(i=a.length;i--;a[i]*=r);for(a[0]+=n.indexOf(e.charAt(c++)),o=0;o<a.length;o++)a[o]>t-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/t|0,a[o]%=t)}return a.reverse()}return function(r,n,o,i,a){var c,u,s,l,f,g,d,p,h=r.indexOf("."),v=O,b=k;for(h>=0&&(l=F,F=0,r=r.replace(".",""),g=(p=new L(n)).pow(r.length-h),F=l,p.c=e(S(m(g.c),g.e,"0"),10,o,"0123456789"),p.e=p.c.length),s=l=(d=e(r,n,o,a?(c=V,"0123456789"):(c="0123456789",V))).length;0==d[--l];d.pop());if(!d[0])return c.charAt(0);if(h<0?--s:(g.c=d,g.e=s,g.s=i,d=(g=t(g,p,v,b,o)).c,f=g.r,s=g.e),h=d[u=s+v+1],l=o/2,f=f||u<0||null!=d[u+1],f=b<4?(null!=h||f)&&(0==b||b==(g.s<0?3:2)):h>l||h==l&&(4==b||f||6==b&&1&d[u-1]||b==(g.s<0?8:7)),u<1||!d[0])r=f?S(c.charAt(1),-v,c.charAt(0)):c.charAt(0);else{if(d.length=u,f)for(--o;++d[--u]>o;)d[u]=0,u||(++s,d=[1].concat(d));for(l=d.length;!d[--l];);for(h=0,r="";h<=l;r+=c.charAt(d[h++]));r=S(r,s,c.charAt(0))}return r}}(),t=function(){function e(e,r,t){var n,o,i,a,c=0,u=e.length,s=r%g,l=r/g|0;for(e=e.slice();u--;)c=((o=s*(i=e[u]%g)+(n=l*i+(a=e[u]/g|0)*s)%g*g+c)/t|0)+(n/g|0)+l*a,e[u]=o%t;return c&&(e=[c].concat(e)),e}function r(e,r,t,n){var o,i;if(t!=n)i=t>n?1:-1;else for(o=i=0;o<t;o++)if(e[o]!=r[o]){i=e[o]>r[o]?1:-1;break}return i}function t(e,r,t,n){for(var o=0;t--;)e[t]-=o,o=e[t]<r[t]?1:0,e[t]=o*n+e[t]-r[t];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,o,a,c,l){var f,g,d,m,h,v,b,T,S,y,_,w,B,A,x,C,N,E=n.s==o.s?1:-1,D=n.c,O=o.c;if(!(D&&D[0]&&O&&O[0]))return new L(n.s&&o.s&&(D?!O||D[0]!=O[0]:O)?D&&0==D[0]||!O?0*E:E/0:NaN);for(S=(T=new L(E)).c=[],E=a+(g=n.e-o.e)+1,l||(l=u,g=p(n.e/s)-p(o.e/s),E=E/s|0),d=0;O[d]==(D[d]||0);d++);if(O[d]>(D[d]||0)&&g--,E<0)S.push(1),m=!0;else{for(A=D.length,C=O.length,d=0,E+=2,(h=i(l/(O[0]+1)))>1&&(O=e(O,h,l),D=e(D,h,l),C=O.length,A=D.length),B=C,_=(y=D.slice(0,C)).length;_<C;y[_++]=0);N=O.slice(),N=[0].concat(N),x=O[0],O[1]>=l/2&&x++;do{if(h=0,(f=r(O,y,C,_))<0){if(w=y[0],C!=_&&(w=w*l+(y[1]||0)),(h=i(w/x))>1)for(h>=l&&(h=l-1),b=(v=e(O,h,l)).length,_=y.length;1==r(v,y,b,_);)h--,t(v,C<b?N:O,b,l),b=v.length,f=1;else 0==h&&(f=h=1),b=(v=O.slice()).length;if(b<_&&(v=[0].concat(v)),t(y,v,_,l),_=y.length,-1==f)for(;r(O,y,C,_)<1;)h++,t(y,C<_?N:O,_,l),_=y.length}else 0===f&&(h++,y=[0]);S[d++]=h,y[0]?y[_++]=D[B]||0:(y=[D[B]],_=1)}while((B++<A||null!=y[0])&&E--);m=null!=y[0],S[0]||S.splice(0,1)}if(l==u){for(d=1,E=S[0];E>=10;E/=10,d++);q(T,a+(T.e=d+g*s-1)+1,c,m)}else T.e=g,T.r=+m;return T}}(),B=/^(-?)0([xbo])(?=\w[\w.]*$)/i,A=/^([^.]+)\.$/,x=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,N=/^\s*\+(?=[\w.])|^\s+|\s+$/g,_=function(e,r,t,n){var o,i=t?r:r.replace(N,"");if(C.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!t&&(i=i.replace(B,function(e,r,t){return o="x"==(t=t.toLowerCase())?16:"b"==t?2:8,n&&n!=o?e:r}),n&&(o=n,i=i.replace(A,"$1").replace(x,"0.$1")),r!=i))return new L(i,o);if(L.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+r);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,r){return h(this,new L(e,r))},E.decimalPlaces=E.dp=function(e,r){var t,n,o,i=this;if(null!=e)return v(e,0,d),null==r?r=k:v(r,0,8),q(new L(i),e+i.e+1,r);if(!(t=i.c))return null;if(n=((o=t.length-1)-p(this.e/s))*s,o=t[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},E.dividedBy=E.div=function(e,r){return t(this,new L(e,r),O,k)},E.dividedToIntegerBy=E.idiv=function(e,r){return t(this,new L(e,r),0,1)},E.exponentiatedBy=E.pow=function(e,r){var t,n,c,u,l,f,g,d,p=this;if((e=new L(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+z(e));if(null!=r&&(r=new L(r)),l=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return d=new L(Math.pow(+z(p),l?2-b(e):+z(e))),r?d.mod(r):d;if(f=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new L(NaN);(n=!f&&p.isInteger()&&r.isInteger())&&(p=p.mod(r))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return u=p.s<0&&b(e)?-0:0,p.e>-1&&(u=1/u),new L(f?1/u:u);F&&(u=o(F/s+2))}for(l?(t=new L(.5),f&&(e.s=1),g=b(e)):g=(c=Math.abs(+z(e)))%2,d=new L(D);;){if(g){if(!(d=d.times(p)).c)break;u?d.c.length>u&&(d.c.length=u):n&&(d=d.mod(r))}if(c){if(0===(c=i(c/2)))break;g=c%2}else if(q(e=e.times(t),e.e+1,1),e.e>14)g=b(e);else{if(0==(c=+z(e)))break;g=c%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):n&&(p=p.mod(r))}return n?d:(f&&(d=D.div(d)),r?d.mod(r):u?q(d,F,k,void 0):d)},E.integerValue=function(e){var r=new L(this);return null==e?e=k:v(e,0,8),q(r,r.e+1,e)},E.isEqualTo=E.eq=function(e,r){return 0===h(this,new L(e,r))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,r){return h(this,new L(e,r))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,r){return 1===(r=h(this,new L(e,r)))||0===r},E.isInteger=function(){return!!this.c&&p(this.e/s)>this.c.length-2},E.isLessThan=E.lt=function(e,r){return h(this,new L(e,r))<0},E.isLessThanOrEqualTo=E.lte=function(e,r){return-1===(r=h(this,new L(e,r)))||0===r},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,r){var t,n,o,i,a=this,c=a.s;if(r=(e=new L(e,r)).s,!c||!r)return new L(NaN);if(c!=r)return e.s=-r,a.plus(e);var l=a.e/s,f=e.e/s,g=a.c,d=e.c;if(!l||!f){if(!g||!d)return g?(e.s=-r,e):new L(d?a:NaN);if(!g[0]||!d[0])return d[0]?(e.s=-r,e):new L(g[0]?a:3==k?-0:0)}if(l=p(l),f=p(f),g=g.slice(),c=l-f){for((i=c<0)?(c=-c,o=g):(f=l,o=d),o.reverse(),r=c;r--;o.push(0));o.reverse()}else for(n=(i=(c=g.length)<(r=d.length))?c:r,c=r=0;r<n;r++)if(g[r]!=d[r]){i=g[r]<d[r];break}if(i&&(o=g,g=d,d=o,e.s=-e.s),(r=(n=d.length)-(t=g.length))>0)for(;r--;g[t++]=0);for(r=u-1;n>c;){if(g[--n]<d[n]){for(t=n;t&&!g[--t];g[t]=r);--g[t],g[n]+=u}g[n]-=d[n]}for(;0==g[0];g.splice(0,1),--f);return g[0]?$(e,g,f):(e.s=3==k?-1:1,e.c=[e.e=0],e)},E.modulo=E.mod=function(e,r){var n,o,i=this;return e=new L(e,r),!i.c||!e.s||e.c&&!e.c[0]?new L(NaN):!e.c||i.c&&!i.c[0]?new L(i):(9==U?(o=e.s,e.s=1,n=t(i,e,0,3),e.s=o,n.s*=o):n=t(i,e,0,U),(e=i.minus(n.times(e))).c[0]||1!=U||(e.s=i.s),e)},E.multipliedBy=E.times=function(e,r){var t,n,o,i,a,c,l,f,d,m,h,v,b,T,S,y=this,_=y.c,w=(e=new L(e,r)).c;if(!(_&&w&&_[0]&&w[0]))return!y.s||!e.s||_&&!_[0]&&!w||w&&!w[0]&&!_?e.c=e.e=e.s=null:(e.s*=y.s,_&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=p(y.e/s)+p(e.e/s),e.s*=y.s,(l=_.length)<(m=w.length)&&(b=_,_=w,w=b,o=l,l=m,m=o),o=l+m,b=[];o--;b.push(0));for(T=u,S=g,o=m;--o>=0;){for(t=0,h=w[o]%S,v=w[o]/S|0,i=o+(a=l);i>o;)t=((f=h*(f=_[--a]%S)+(c=v*f+(d=_[a]/S|0)*h)%S*S+b[i]+t)/T|0)+(c/S|0)+v*d,b[i--]=f%T;b[i]=t}return t?++n:b.splice(0,1),$(e,b,n)},E.negated=function(){var e=new L(this);return e.s=-e.s||null,e},E.plus=function(e,r){var t,n=this,o=n.s;if(r=(e=new L(e,r)).s,!o||!r)return new L(NaN);if(o!=r)return e.s=-r,n.minus(e);var i=n.e/s,a=e.e/s,c=n.c,l=e.c;if(!i||!a){if(!c||!l)return new L(o/0);if(!c[0]||!l[0])return l[0]?e:new L(c[0]?n:0*o)}if(i=p(i),a=p(a),c=c.slice(),o=i-a){for(o>0?(a=i,t=l):(o=-o,t=c),t.reverse();o--;t.push(0));t.reverse()}for((o=c.length)-(r=l.length)<0&&(t=l,l=c,c=t,r=o),o=0;r;)o=(c[--r]=c[r]+l[r]+o)/u|0,c[r]=u===c[r]?0:c[r]%u;return o&&(c=[o].concat(c),++a),$(e,c,a)},E.precision=E.sd=function(e,r){var t,n,o,i=this;if(null!=e&&e!==!!e)return v(e,1,d),null==r?r=k:v(r,0,8),q(new L(i),e,r);if(!(t=i.c))return null;if(n=(o=t.length-1)*s+1,o=t[o]){for(;o%10==0;o/=10,n--);for(o=t[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},E.shiftedBy=function(e){return v(e,-l,l),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,r,n,o,i,a=this,c=a.c,u=a.s,s=a.e,l=O+4,f=new L("0.5");if(1!==u||!c||!c[0])return new L(!u||u<0&&(!c||c[0])?NaN:c?a:1/0);if(0==(u=Math.sqrt(+z(a)))||u==1/0?(((r=m(c)).length+s)%2==0&&(r+="0"),u=Math.sqrt(+r),s=p((s+1)/2)-(s<0||s%2),n=new L(r=u==1/0?"1e"+s:(r=u.toExponential()).slice(0,r.indexOf("e")+1)+s)):n=new L(u+""),n.c[0])for((u=(s=n.e)+l)<3&&(u=0);;)if(i=n,n=f.times(i.plus(t(a,i,l,1))),m(i.c).slice(0,u)===(r=m(n.c)).slice(0,u)){if(n.e<s&&--u,"9999"!=(r=r.slice(u-3,u+1))&&(o||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(q(n,n.e+O+2,1),e=!n.times(n).eq(a));break}if(!o&&(q(i,i.e+O+2,0),i.times(i).eq(a))){n=i;break}l+=4,u+=4,o=1}return q(n,n.e+O+1,k,e)},E.toExponential=function(e,r){return null!=e&&(v(e,0,d),e++),G(this,e,r,1)},E.toFixed=function(e,r){return null!=e&&(v(e,0,d),e=e+this.e+1),G(this,e,r)},E.toFormat=function(e,r,t){var n,o=this;if(null==t)null!=e&&r&&"object"==typeof r?(t=r,r=null):e&&"object"==typeof e?(t=e,e=r=null):t=R;else if("object"!=typeof t)throw Error(a+"Argument not an object: "+t);if(n=o.toFixed(e,r),o.c){var i,c=n.split("."),u=+t.groupSize,s=+t.secondaryGroupSize,l=t.groupSeparator||"",f=c[0],g=c[1],d=o.s<0,p=d?f.slice(1):f,m=p.length;if(s&&(i=u,u=s,s=i,m-=i),u>0&&m>0){for(i=m%u||u,f=p.substr(0,i);i<m;i+=u)f+=l+p.substr(i,u);s>0&&(f+=l+p.slice(i)),d&&(f="-"+f)}n=g?f+(t.decimalSeparator||"")+((s=+t.fractionGroupSize)?g.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+(t.fractionGroupSeparator||"")):g):f}return(t.prefix||"")+n+(t.suffix||"")},E.toFraction=function(e){var r,n,o,i,c,u,l,g,d,p,h,v,b=this,T=b.c;if(null!=e&&(!(l=new L(e)).isInteger()&&(l.c||1!==l.s)||l.lt(D)))throw Error(a+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+z(l));if(!T)return new L(b);for(r=new L(D),d=n=new L(D),o=g=new L(D),v=m(T),c=r.e=v.length-b.e-1,r.c[0]=f[(u=c%s)<0?s+u:u],e=!e||l.comparedTo(r)>0?c>0?r:d:l,u=H,H=1/0,l=new L(v),g.c[0]=0;p=t(l,r,0,1),1!=(i=n.plus(p.times(o))).comparedTo(e);)n=o,o=i,d=g.plus(p.times(i=d)),g=i,r=l.minus(p.times(i=r)),l=i;return i=t(e.minus(n),o,0,1),g=g.plus(i.times(d)),n=n.plus(i.times(o)),g.s=d.s=b.s,h=t(d,o,c*=2,k).minus(b).abs().comparedTo(t(g,n,c,k).minus(b).abs())<1?[d,o]:[g,n],H=u,h},E.toNumber=function(){return+z(this)},E.toPrecision=function(e,r){return null!=e&&v(e,1,d),G(this,e,r,2)},E.toString=function(e){var r,t=this,n=t.s,o=t.e;return null===o?n?(r="Infinity",n<0&&(r="-"+r)):r="NaN":(null==e?r=o<=j||o>=P?T(m(t.c),o):S(m(t.c),o,"0"):10===e?r=S(m((t=q(new L(t),O+o+1,k)).c),t.e,"0"):(v(e,2,V.length,"Base"),r=y(S(m(t.c),o,"0"),10,e,n,!0)),n<0&&t.c[0]&&(r="-"+r)),r},E.valueOf=E.toJSON=function(){return z(this)},E._isBigNumber=!0,null!=r&&L.set(r),L}()).default=t.BigNumber=t,e.exports?e.exports=t:(r||(r="undefined"!=typeof self&&self?self:window),r.BigNumber=t)}(commonjsGlobal)});getCjsExportFromNamespace(padStartPolyfill);var convertDecStringToHexString=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertDecStringToHexString=void 0;r.convertDecStringToHexString=((e,r=2)=>{let t="string"==typeof e?new bignumber.default(e):e;if(t.isNaN())throw new Error(`Invalid decimal argument: [${e}] - Expected a valid decimal value`);if(r<0)throw new Error(`Invalid padding argument: [${r}] - Expected a positive value`);const n=t.lt(0);n&&(t=(e=>{let r=e.multipliedBy(-1).toString(2);for(;r.length%8;)r="0"+r;const t="1"===r[0]&&-1!==r.slice(1).indexOf("1")?"11111111":"";return r=r.split("").map(e=>"0"===e?"1":"0").join(""),new bignumber.default(t+r,2).plus(1)})(t));const o=t.toString(16),i=Math.ceil(o.length/r);return o.padStart(i*r,n?"f":"0")})});unwrapExports(convertDecStringToHexString);var convertDecStringToHexString_1=convertDecStringToHexString.convertDecStringToHexString,convertHexStringToString=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertHexStringToString=void 0,r.convertHexStringToString=(e=>convertByteArrayToString.convertByteArrayToString(convertHexStringToByteArray.convertHexStringToByteArray(e)))});unwrapExports(convertHexStringToString);var convertHexStringToString_1=convertHexStringToString.convertHexStringToString,convertNQTStringToNumber=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertNQTStringToNumber=void 0,r.convertNQTStringToNumber=(e=>{if(null==e||""===e)throw new Error("Invalid argument");return parseFloat(e)/1e8})});unwrapExports(convertNQTStringToNumber);var convertNQTStringToNumber_1=convertNQTStringToNumber.convertNQTStringToNumber,convertNumberToNQTString=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertNumberToNQTString=void 0,r.convertNumberToNQTString=(e=>{if(null==e)throw new Error("Invalid argument");return parseFloat(e.toString()).toFixed(8).replace(".","")})});unwrapExports(convertNumberToNQTString);var convertNumberToNQTString_1=convertNumberToNQTString.convertNumberToNQTString,convertNumericIdToAddress=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertNumericIdToAddress=void 0,r.convertNumericIdToAddress=(e=>{if(null==e||0===e.trim().length)return;const r=[],t=internal.initialCodeword.slice();let n=0,o=e.length;for(let t=0;t<o;t++)r[t]=e.charCodeAt(t)-"0".charCodeAt(0);let i=0,a=0;do{i=0,a=0;for(let e=0;e<o;e++)(i=10*i+r[e])>=32?(r[a]=i>>5,i&=31,a++):a>0&&(r[a]=0,a++);o=a,t[n]=i,n++}while(o>0);const c=[0,0,0,0];for(let e=internal.base32Length-1;e>=0;e--){const r=t[e]^c[3];c[3]=c[2]^internal.gmult(30,r),c[2]=c[1]^internal.gmult(6,r),c[1]=c[0]^internal.gmult(9,r),c[0]=internal.gmult(17,r)}t[13]=c[0],t[14]=c[1],t[15]=c[2],t[16]=c[3];let u="BURST-";for(let e=0;e<17;e++)u+=internal.alphabet[t[internal.cwmap[e]]],3==(3&e)&&e<13&&(u+="-");return u})});unwrapExports(convertNumericIdToAddress);var convertNumericIdToAddress_1=convertNumericIdToAddress.convertNumericIdToAddress,convertStringToByteArray=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertStringToByteArray=void 0,r.convertStringToByteArray=(e=>{const r=unescape(encodeURIComponent(e)),t=new Uint8Array(r.length);for(let e=0;e<r.length;++e)t[e]=r.charCodeAt(e);return t})});unwrapExports(convertStringToByteArray);var convertStringToByteArray_1=convertStringToByteArray.convertStringToByteArray,convertStringToHexString=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertStringToHexString=void 0,r.convertStringToHexString=(e=>convertByteArrayToHexString.convertByteArrayToHexString(convertStringToByteArray.convertStringToByteArray(e)))});unwrapExports(convertStringToHexString);var convertStringToHexString_1=convertStringToHexString.convertStringToHexString,createDeeplinkArgs=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EncoderFormat=void 0,function(e){e[e.Text=0]="Text",e[e.Hexadecimal=1]="Hexadecimal",e[e.Base64=2]="Base64"}(r.EncoderFormat||(r.EncoderFormat={}))});unwrapExports(createDeeplinkArgs);var createDeeplinkArgs_1=createDeeplinkArgs.EncoderFormat,base64=createCommonjsModule(function(module,exports){var global,factory;global="undefined"!=typeof self?self:"undefined"!=typeof window?window:commonjsGlobal,factory=function(global){global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var r={},t=0,n=e.length;t<n;t++)r[e.charAt(t)]=t;return r}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2)return(r=e.charCodeAt(0))<128?e:r<2048?fromCharCode(192|r>>>6)+fromCharCode(128|63&r):fromCharCode(224|r>>>12&15)+fromCharCode(128|r>>>6&63)+fromCharCode(128|63&r);var r=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|r>>>18&7)+fromCharCode(128|r>>>12&63)+fromCharCode(128|r>>>6&63)+fromCharCode(128|63&r)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var r=[0,2,1][e.length%3],t=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(t>>>18),b64chars.charAt(t>>>12&63),r>=2?"=":b64chars.charAt(t>>>6&63),r>=1?"=":b64chars.charAt(63&t)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e)).toString("base64")}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e)).toString("base64")}:function(e){return btoa(utob(e))},encode=function(e,r){return r?_encode(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):_encode(String(e))},encodeURI=function(e){return encode(e,!0)},re_btou=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),cb_btou=function(e){switch(e.length){case 4:var r=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(r>>>10))+fromCharCode(56320+(1023&r));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var r=e.length,t=r%4,n=(r>0?b64tab[e.charAt(0)]<<18:0)|(r>1?b64tab[e.charAt(1)]<<12:0)|(r>2?b64tab[e.charAt(2)]<<6:0)|(r>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(255&n)];return o.length-=[0,0,2,1][t],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),module.exports&&(module.exports.Base64=global.Base64),{Base64:global.Base64}},module.exports=factory(global)}),base64_1=base64.Base64,convertStringToBase64String=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertStringToBase64String=void 0,r.convertStringToBase64String=((e,r=!0)=>r?base64.Base64.encodeURI(e):base64.Base64.encode(e))});unwrapExports(convertStringToBase64String);var convertStringToBase64String_1=convertStringToBase64String.convertStringToBase64String,createDeeplink=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeeplink=void 0,r.createDeeplink=(e=>{const{encoderFormat:r=createDeeplinkArgs.EncoderFormat.Base64,domain:t,action:n,payload:o}=e;let i=`burst.${t}://v1`;return n&&(i+=`?action=${n}`),o&&(i+=`&payload=${function(e,r){let t=e;switch("string"!=typeof e&&(t=JSON.stringify(e)),r){case createDeeplinkArgs.EncoderFormat.Hexadecimal:return convertStringToHexString.convertStringToHexString(t);case createDeeplinkArgs.EncoderFormat.Base64:return convertStringToBase64String.convertStringToBase64String(t);case createDeeplinkArgs.EncoderFormat.Text:default:return t}}(o,r)}`),i})});unwrapExports(createDeeplink);var createDeeplink_1=createDeeplink.createDeeplink,parseDeeplink=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseDeeplink=void 0;const t=/^burst.(.+):\/\/(v.+?)\??/i;r.parseDeeplink=(e=>{const r=()=>{throw new Error("Invalid deeplink: "+e)},n=(e,t)=>(e.startsWith(t+"=")||r(),e.split("=")[1]),o=e.match(t);o&&3===o.length||r();const i={domain:o[1],version:o[2],action:void 0,payload:void 0,decodedPayload:void 0};try{const t=e.indexOf("?");if(-1!==t){const o=e.substring(t+1).split("&");o.length>=1&&(o.length>2&&r(),i.action=n(o[0],"action"),2===o.length&&(i.payload=n(o[1],"payload")))}}catch(e){r()}return i})});unwrapExports(parseDeeplink);var parseDeeplink_1=parseDeeplink.parseDeeplink,sumNQTStringToNumber_1=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sumNQTStringToNumber=void 0,r.sumNQTStringToNumber=function(...e){return e.reduce((e,r)=>e+convertNQTStringToNumber.convertNQTStringToNumber(r),0)}});unwrapExports(sumNQTStringToNumber_1);var sumNQTStringToNumber_2=sumNQTStringToNumber_1.sumNQTStringToNumber,DeeplinkParts=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0})});unwrapExports(DeeplinkParts);var typings=createCommonjsModule(function(e,r){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]}),n=commonjsGlobal&&commonjsGlobal.__exportStar||function(e,r){for(var n in e)"default"===n||r.hasOwnProperty(n)||t(r,e,n)};Object.defineProperty(r,"__esModule",{value:!0}),n(createDeeplinkArgs,r),n(DeeplinkParts,r)});unwrapExports(typings);var constants=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OneBurstPlanck=r.FeeQuantPlanck=r.BurstPlanckSymbol=r.BurstSymbol=void 0,r.BurstSymbol="Ƀ",r.BurstPlanckSymbol="ƀ",r.FeeQuantPlanck=735e3,r.OneBurstPlanck=1e8});unwrapExports(constants);var constants_1=constants.OneBurstPlanck,constants_2=constants.FeeQuantPlanck,constants_3=constants.BurstPlanckSymbol,constants_4=constants.BurstSymbol,burstTime=createCommonjsModule(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BurstTime=void 0;class t{constructor(e){this._burstTimestamp=e}static fromBurstTimestamp(e){return new t(e)}static fromDate(e){const r=new t(0);return r.setDate(e),r}getBurstTimestamp(){return this._burstTimestamp}setBurstTimestamp(e){this._burstTimestamp=e}getEpoch(){return 1e3*(internal.GenesisBlockTime+this._burstTimestamp)}getDate(){return new Date(this.getEpoch())}setDate(e){this._burstTimestamp=Math.round(e.getTime()/1e3)-internal.GenesisBlockTime}equals(e){return this._burstTimestamp===e._burstTimestamp}before(e){return this._burstTimestamp<e._burstTimestamp}after(e){return this._burstTimestamp>e._burstTimestamp}}r.BurstTime=t});unwrapExports(burstTime);var burstTime_1=burstTime.BurstTime,burstValue=createCommonjsModule(function(e,r){var t;function n(e){if(!e||!/^-?\d*(\.\d+)?$/.test(e))throw new Error(`Invalid value: ${e}`)}Object.defineProperty(r,"__esModule",{value:!0}),r.BurstValue=r.BurstValueFormat=void 0,bignumber.default.config({EXPONENTIAL_AT:[-9,20]}),function(e){e[e.PLANCK=0]="PLANCK",e[e.BURST=1]="BURST"}(t=r.BurstValueFormat||(r.BurstValueFormat={}));class o{constructor(e){n(e),this._planck=new bignumber.default(e)}static fromPlanck(e){return new o(e)}static fromBurst(e){const r=new o("0");return r.setBurst("number"==typeof e?e.toString(10):e),r}getRaw(){return this._planck}getPlanck(){return this._planck.toString()}setPlanck(e){n(e),this._planck=new bignumber.default(e)}getBurst(){return this._planck.dividedBy(1e8).toString()}setBurst(e){n(e),this._planck=new bignumber.default(e).multipliedBy(1e8)}equals(e){return this._planck.eq(e._planck)}lessOrEqual(e){return this._planck.lte(e._planck)}less(e){return this._planck.lt(e._planck)}greaterOrEqual(e){return this._planck.gte(e._planck)}greater(e){return this._planck.gt(e._planck)}add(e){return this._planck=this._planck.plus(e._planck),this}subtract(e){return this._planck=this._planck.minus(e._planck),this}multiply(e){return this._planck=this._planck.multipliedBy(e),this}divide(e){if(0===e)throw new Error("Division by zero");return this._planck=this._planck.div(e),this}toString(e=t.BURST){return e===t.BURST?`${constants.BurstSymbol} ${this.getBurst()}`:`${constants.BurstPlanckSymbol} ${this._planck}`}}r.BurstValue=o});unwrapExports(burstValue);var burstValue_1=burstValue.BurstValue,burstValue_2=burstValue.BurstValueFormat,out=createCommonjsModule(function(e,r){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]}),n=commonjsGlobal&&commonjsGlobal.__exportStar||function(e,r){for(var n in e)"default"===n||r.hasOwnProperty(n)||t(r,e,n)};Object.defineProperty(r,"__esModule",{value:!0}),n(convertAddressToNumericId,r),n(convertBurstTimeToDate,r),n(convertBurstTimeToEpochTime,r),n(convertByteArrayToHexString,r),n(convertByteArrayToString,r),n(convertDateToBurstTime,r),n(convertHexEndianess,r),n(convertHexStringToByteArray,r),n(convertHexStringToDecString,r),n(convertDecStringToHexString,r),n(convertHexStringToString,r),n(convertNQTStringToNumber,r),n(convertNumberToNQTString,r),n(convertNumericIdToAddress,r),n(convertStringToByteArray,r),n(convertStringToHexString,r),n(createDeeplink,r),n(isBurstAddress,r),n(parseDeeplink,r),n(sumNQTStringToNumber_1,r),n(typings,r),n(constants,r),n(burstTime,r),n(burstValue,r)});unwrapExports(out);var out_1=out.BurstValue,out_2=out.FeeQuantPlanck,out_3=out.OneBurstPlanck,out_4=out.convertHexStringToDecString,out_5=out.convertDecStringToHexString,out_6=out.convertHexStringToString,out_7=out.convertHexEndianess,out_8=out.convertHexStringToByteArray,out_9=out.convertByteArrayToHexString;function getContractDatablock(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,n=16*r,o=n+t;if(o>e.machineData.length)throw new Error("Insufficient length for variable at position: ".concat(n," (and given length: ").concat(t,")"));if(o%2!=0)throw new Error("Invalid position: ".concat(n," (or given length: ").concat(t,") - must be at least multiple of 2"));return out_7(e.machineData.substr(n,t))}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var CodePageSize=256;function countCodePages(e){return Math.ceil(e.length/2/CodePageSize)}var ContractDataView=function(){function e(r){_classCallCheck(this,e),this._contract=r}return _createClass(e,[{key:"getContract",value:function(){return this._contract}},{key:"countCodePages",value:function(){return countCodePages(this._contract.machineCode)}},{key:"getVariableAsString",value:function(r){var t=this.getHexDataAt(r,e.VariableLength);return out_6(t.replace(/00/g,""))}},{key:"getDataBlocksAsString",value:function(r,t){var n=this.getHexDataAt(r,t*e.VariableLength);return out_6(n.replace(/00/g,""))}},{key:"getVariableAsDecimal",value:function(e){return out_4(this.getVariable(e))}},{key:"getVariable",value:function(r){return this.getHexDataAt(r,e.VariableLength)}},{key:"getHexDataAt",value:function(r,t){var n=t||this._contract.machineData.length-e.VariableLength*r;return getContractDatablock(this._contract,r,n)}}]),e}();function calculateMinimumCreationFee(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return out_1.fromPlanck((r?10*out_2:out_3).toString(10)).multiply(2+countCodePages(e)+1)}ContractDataView.VariableLength=16;var convertArgument=function(e){return"boolean"==typeof e?e?"1":"0":"number"==typeof e?"".concat(e):e},generateMethodCall=function(e){var r=e.methodArgs?[e.methodHash].concat(_toConsumableArray(e.methodArgs)):[e.methodHash];if(r.length>4)throw new Error("At maximum ".concat(3," are supported"));return r.map(convertArgument).map(function(e){return out_5(e,16)}).map(out_7).join("")};return exports.CodePageSize=CodePageSize,exports.ContractDataView=ContractDataView,exports.calculateMinimumCreationFee=calculateMinimumCreationFee,exports.countCodePages=countCodePages,exports.generateMethodCall=generateMethodCall,exports.getContractDatablock=getContractDatablock,exports}({}); | ||
//# sourceMappingURL=burstjs.contracts.min.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.calculateMinimumCreationFee = void 0; | ||
const util_1 = require("@burstjs/util"); | ||
@@ -4,0 +5,0 @@ const countCodePages_1 = require("./countCodePages"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CodePageSize = void 0; | ||
exports.CodePageSize = 256; | ||
//# sourceMappingURL=constants.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ContractDataView = void 0; | ||
const util_1 = require("@burstjs/util"); | ||
@@ -4,0 +5,0 @@ const getContractDatablock_1 = require("./getContractDatablock"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.countCodePages = void 0; | ||
const constants_1 = require("./constants"); | ||
@@ -4,0 +5,0 @@ function countCodePages(hexCode) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateMethodCall = void 0; | ||
const util_1 = require("@burstjs/util"); | ||
@@ -4,0 +5,0 @@ const convertArgument = (value) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getContractDatablock = void 0; | ||
const util_1 = require("@burstjs/util"); | ||
@@ -4,0 +5,0 @@ function getContractDatablock(contract, position, length = 16) { |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./getContractDatablock")); | ||
__export(require("./ContractDataView")); | ||
__export(require("./constants")); | ||
__export(require("./countCodePages")); | ||
__export(require("./calculateMinimumCreationFee")); | ||
__export(require("./generateMethodCall")); | ||
__exportStar(require("./getContractDatablock"), exports); | ||
__exportStar(require("./ContractDataView"), exports); | ||
__exportStar(require("./constants"), exports); | ||
__exportStar(require("./countCodePages"), exports); | ||
__exportStar(require("./calculateMinimumCreationFee"), exports); | ||
__exportStar(require("./generateMethodCall"), exports); | ||
__exportStar(require("./typings"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./generateMethodCallArgs"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./args"), exports); | ||
__exportStar(require("./contract"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@burstjs/contracts", | ||
"version": "0.5.1", | ||
"version": "0.6.0-alpha.1", | ||
"description": "Smart Contracts package for BURST", | ||
@@ -47,3 +47,3 @@ "contributors": [ | ||
"dependencies": { | ||
"@burstjs/util": "^0.5.1" | ||
"@burstjs/util": "^0.6.0-alpha.1" | ||
}, | ||
@@ -55,3 +55,3 @@ "husky": { | ||
}, | ||
"gitHead": "27a7a2409c626bdb996f0085497cc4e8707144a1", | ||
"gitHead": "505c2211b2089675129915bdd4e909f5bdc33fab", | ||
"publishConfig": { | ||
@@ -58,0 +58,0 @@ "access": "public" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
521360
4600
89
+ Added@burstjs/util@0.6.0-beta.6(transitive)
+ Addedjs-base64@3.7.7(transitive)
- Removed@burstjs/util@0.5.1(transitive)
- Removedjs-base64@2.6.4(transitive)
Updated@burstjs/util@^0.6.0-alpha.1