/
tupper.web.min.js
1 lines (1 loc) · 18.7 KB
/
tupper.web.min.js
1
var tupper=function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var e={};return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="",r(r.s=0)}([function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(1),o=function(t,r){return Array.prototype.concat.apply([],Array(r)).map(function(){return Array.prototype.concat.apply([],Array(t)).map(function(t){return 0})})},i={toGraph:function(t){if(t.length<1)throw new Error("No number to convert");var r=n(t).divide(17).toString(2),e=o(106,17);r.length<1802&&(r="0".repeat(1802-r.length)+r);for(var i=105;i>=0;i--)for(var u=0;u<17;u++)e[u][i]=parseInt(r[17*(105-i)+u]);return e},toNumber:function(t){for(var r="",e=105;e>=0;--e)for(var o=0;o<17;++o)r+=String(t[o][e]);return n(r,2).multiply(17).toString()}};r.default=i},function(t,r,e){(function(t){var e,n,o=function(t){"use strict";function r(t,e){return void 0===t?r[0]:void 0!==e?10==+e?T(t):tt(t,e):T(t)}function e(t,r){this.value=t,this.sign=r,this.isSmall=!1}function n(t){this.value=t,this.sign=t<0,this.isSmall=!0}function i(t){return-F<t&&t<F}function u(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function a(t){s(t);var r=t.length;if(r<4&&A(t,H)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*G;default:return t[0]+(t[1]+t[2]*G)*G}return t}function s(t){for(var r=t.length;0===t[--r];);t.length=r+1}function p(t){for(var r=new Array(t),e=-1;++e<t;)r[e]=0;return r}function l(t){return t>0?Math.floor(t):Math.ceil(t)}function f(t,r){var e,n,o=t.length,i=r.length,u=new Array(o),a=0,s=G;for(n=0;n<i;n++)e=t[n]+r[n]+a,a=e>=s?1:0,u[n]=e-a*s;for(;n<o;)e=t[n]+a,a=e===s?1:0,u[n++]=e-a*s;return a>0&&u.push(a),u}function h(t,r){return t.length>=r.length?f(t,r):f(r,t)}function v(t,r){var e,n,o=t.length,i=new Array(o),u=G;for(n=0;n<o;n++)e=t[n]-u+r,r=Math.floor(e/u),i[n]=e-r*u,r+=1;for(;r>0;)i[n++]=r%u,r=Math.floor(r/u);return i}function c(t,r){var e,n,o=t.length,i=r.length,u=new Array(o),a=0,p=G;for(e=0;e<i;e++)n=t[e]-a-r[e],n<0?(n+=p,a=1):a=0,u[e]=n;for(e=i;e<o;e++){if(!((n=t[e]-a)<0)){u[e++]=n;break}n+=p,u[e]=n}for(;e<o;e++)u[e]=t[e];return s(u),u}function y(t,r,o){var i;return A(t,r)>=0?i=c(t,r):(i=c(r,t),o=!o),i=a(i),"number"==typeof i?(o&&(i=-i),new n(i)):new e(i,o)}function g(t,r,o){var i,u,s=t.length,p=new Array(s),l=-r,f=G;for(i=0;i<s;i++)u=t[i]+l,l=Math.floor(u/f),u%=f,p[i]=u<0?u+f:u;return p=a(p),"number"==typeof p?(o&&(p=-p),new n(p)):new e(p,o)}function d(t,r){var e,n,o,i,u,a=t.length,l=r.length,f=a+l,h=p(f),v=G;for(o=0;o<a;++o){i=t[o];for(var c=0;c<l;++c)u=r[c],e=i*u+h[o+c],n=Math.floor(e/v),h[o+c]=e-n*v,h[o+c+1]+=n}return s(h),h}function m(t,r){var e,n,o=t.length,i=new Array(o),u=G,a=0;for(n=0;n<o;n++)e=t[n]*r+a,a=Math.floor(e/u),i[n]=e-a*u;for(;a>0;)i[n++]=a%u,a=Math.floor(a/u);return i}function w(t,r){for(var e=[];r-- >0;)e.push(0);return e.concat(t)}function b(t,r){var e=Math.max(t.length,r.length);if(e<=30)return d(t,r);e=Math.ceil(e/2);var n=t.slice(e),o=t.slice(0,e),i=r.slice(e),u=r.slice(0,e),a=b(o,u),p=b(n,i),l=b(h(o,n),h(u,i)),f=h(h(a,w(c(c(l,a),p),e)),w(p,2*e));return s(f),f}function M(t,r){return-.012*t-.012*r+15e-6*t*r>0}function S(t,r,n){return t<G?new e(m(r,t),n):new e(d(r,u(t)),n)}function q(t){var r,e,n,o,i,u=t.length,a=p(u+u),l=G;for(n=0;n<u;n++){o=t[n];for(var f=0;f<u;f++)i=t[f],r=o*i+a[n+f],e=Math.floor(r/l),a[n+f]=r-e*l,a[n+f+1]+=e}return s(a),a}function E(t,r){var e,n,o,i,u,s,l,f=t.length,h=r.length,v=G,c=p(r.length),y=r[h-1],g=Math.ceil(v/(2*y)),d=m(t,g),w=m(r,g);for(d.length<=f&&d.push(0),w.push(0),y=w[h-1],n=f-h;n>=0;n--){for(e=v-1,d[n+h]!==y&&(e=Math.floor((d[n+h]*v+d[n+h-1])/y)),o=0,i=0,s=w.length,u=0;u<s;u++)o+=e*w[u],l=Math.floor(o/v),i+=d[n+u]-(o-l*v),o=l,i<0?(d[n+u]=i+v,i=-1):(d[n+u]=i,i=0);for(;0!==i;){for(e-=1,o=0,u=0;u<s;u++)o+=d[n+u]-v+w[u],o<0?(d[n+u]=o+v,o=0):(d[n+u]=o,o=1);i+=o}c[n]=e}return d=O(d,g)[0],[a(c),a(d)]}function P(t,r){for(var e,n,o,i,u,p=t.length,l=r.length,f=[],h=[],v=G;p;)if(h.unshift(t[--p]),s(h),A(h,r)<0)f.push(0);else{n=h.length,o=h[n-1]*v+h[n-2],i=r[l-1]*v+r[l-2],n>l&&(o=(o+1)*v),e=Math.ceil(o/i);do{if(u=m(r,e),A(u,h)<=0)break;e--}while(e);f.push(e),h=c(h,u)}return f.reverse(),[a(f),a(h)]}function O(t,r){var e,n,o,i,u=t.length,a=p(u),s=G;for(o=0,e=u-1;e>=0;--e)i=o*s+t[e],n=l(i/r),o=i-n*r,a[e]=0|n;return[a,0|o]}function x(t,o){var i,s,p=T(o),f=t.value,h=p.value;if(0===h)throw new Error("Cannot divide by zero");if(t.isSmall)return p.isSmall?[new n(l(f/h)),new n(f%h)]:[r[0],t];if(p.isSmall){if(1===h)return[t,r[0]];if(-1==h)return[t.negate(),r[0]];var v=Math.abs(h);if(v<G){i=O(f,v),s=a(i[0]);var c=i[1];return t.sign&&(c=-c),"number"==typeof s?(t.sign!==p.sign&&(s=-s),[new n(s),new n(c)]):[new e(s,t.sign!==p.sign),new n(c)]}h=u(v)}var y=A(f,h);if(-1===y)return[r[0],t];if(0===y)return[r[t.sign===p.sign?1:-1],r[0]];i=f.length+h.length<=200?E(f,h):P(f,h),s=i[0];var g=t.sign!==p.sign,d=i[1],m=t.sign;return"number"==typeof s?(g&&(s=-s),s=new n(s)):s=new e(s,g),"number"==typeof d?(m&&(d=-d),d=new n(d)):d=new e(d,m),[s,d]}function A(t,r){if(t.length!==r.length)return t.length>r.length?1:-1;for(var e=t.length-1;e>=0;e--)if(t[e]!==r[e])return t[e]>r[e]?1:-1;return 0}function N(t){var r=t.abs();return!r.isUnit()&&(!!(r.equals(2)||r.equals(3)||r.equals(5))||!(r.isEven()||r.isDivisibleBy(3)||r.isDivisibleBy(5))&&(!!r.lesser(25)||void 0))}function j(t){return("number"==typeof t||"string"==typeof t)&&+Math.abs(t)<=G||t instanceof e&&t.value.length<=1}function Z(t,r,e){r=T(r);for(var n=t.isNegative(),i=r.isNegative(),u=n?t.not():t,a=i?r.not():r,s=0,p=0,l=null,f=null,h=[];!u.isZero()||!a.isZero();)l=x(u,W),s=l[1].toJSNumber(),n&&(s=W-1-s),f=x(a,W),p=f[1].toJSNumber(),i&&(p=W-1-p),u=l[0],a=f[0],h.push(e(s,p));for(var v=o(0!==e(n?1:0,i?1:0)?-1:0),c=h.length-1;c>=0;c-=1)v=v.multiply(W).add(o(h[c]));return v}function I(t){var r=t.value,e="number"==typeof r?r|X:r[0]+r[1]*G|Y;return e&-e}function B(t,r){return t=T(t),r=T(r),t.greater(r)?t:r}function C(t,r){return t=T(t),r=T(r),t.lesser(r)?t:r}function k(t,e){if(t=T(t).abs(),e=T(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var n,o,i=r[1];t.isEven()&&e.isEven();)n=Math.min(I(t),I(e)),t=t.divide(n),e=e.divide(n),i=i.multiply(n);for(;t.isEven();)t=t.divide(I(t));do{for(;e.isEven();)e=e.divide(I(e));t.greater(e)&&(o=e,e=t,t=o),e=e.subtract(t)}while(!e.isZero());return i.isUnit()?t:t.multiply(i)}function z(t,r){return t=T(t).abs(),r=T(r).abs(),t.divide(k(t,r)).multiply(r)}function _(t,r){t=T(t),r=T(r);var o=C(t,r),i=B(t,r),u=i.subtract(o).add(1);if(u.isSmall)return o.add(Math.floor(Math.random()*u));for(var s=u.value.length-1,p=[],f=!0,h=s;h>=0;h--){var v=f?u.value[h]:G,c=l(Math.random()*v);p.unshift(c),c<v&&(f=!1)}return p=a(p),o.add("number"==typeof p?new n(p):new e(p,!1))}function J(t,e,n){var o,i=r[0],u=r[1];for(o=t.length-1;o>=0;o--)i=i.add(t[o].times(u)),u=u.times(e);return n?i.negate():i}function L(t){var r=t.value;return"number"==typeof r&&(r=[r]),1===r.length&&r[0]<=35?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(r[0]):"<"+r+">"}function D(t,r){if(r=o(r),r.isZero()){if(t.isZero())return"0";throw new Error("Cannot convert nonzero numbers to base 0.")}if(r.equals(-1))return t.isZero()?"0":t.isNegative()?new Array(1-t).join("10"):"1"+new Array(+t).join("01");var e="";if(t.isNegative()&&r.isPositive()&&(e="-",t=t.abs()),r.equals(1))return t.isZero()?"0":e+new Array(+t+1).join(1);for(var n,i=[],u=t;u.isNegative()||u.compareAbs(r)>=0;){n=u.divmod(r),u=n.quotient;var a=n.remainder;a.isNegative()&&(a=r.minus(a).abs(),u=u.next()),i.push(L(a))}return i.push(L(u)),e+i.reverse().join("")}function U(t){if(i(+t)){var r=+t;if(r===l(r))return new n(r);throw"Invalid integer: "+t}var o="-"===t[0];o&&(t=t.slice(1));var u=t.split(/e/i);if(u.length>2)throw new Error("Invalid integer: "+u.join("e"));if(2===u.length){var a=u[1];if("+"===a[0]&&(a=a.slice(1)),(a=+a)!==l(a)||!i(a))throw new Error("Invalid integer: "+a+" is not a valid exponent.");var p=u[0],f=p.indexOf(".");if(f>=0&&(a-=p.length-f-1,p=p.slice(0,f)+p.slice(f+1)),a<0)throw new Error("Cannot include negative exponent part for integers");p+=new Array(a+1).join("0"),t=p}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);for(var h=[],v=t.length,c=$,y=v-c;v>0;)h.push(+t.slice(y,v)),y-=c,y<0&&(y=0),v-=c;return s(h),new e(h,o)}function R(t){if(i(t)){if(t!==l(t))throw new Error(t+" is not an integer.");return new n(t)}return U(t.toString())}function T(t){return"number"==typeof t?R(t):"string"==typeof t?U(t):t}var G=1e7,$=7,F=9007199254740992,H=u(F),K=Math.log(F);e.prototype=Object.create(r.prototype),n.prototype=Object.create(r.prototype),e.prototype.add=function(t){var r=T(t);if(this.sign!==r.sign)return this.subtract(r.negate());var n=this.value,o=r.value;return r.isSmall?new e(v(n,Math.abs(o)),this.sign):new e(h(n,o),this.sign)},e.prototype.plus=e.prototype.add,n.prototype.add=function(t){var r=T(t),o=this.value;if(o<0!==r.sign)return this.subtract(r.negate());var a=r.value;if(r.isSmall){if(i(o+a))return new n(o+a);a=u(Math.abs(a))}return new e(v(a,Math.abs(o)),o<0)},n.prototype.plus=n.prototype.add,e.prototype.subtract=function(t){var r=T(t);if(this.sign!==r.sign)return this.add(r.negate());var e=this.value,n=r.value;return r.isSmall?g(e,Math.abs(n),this.sign):y(e,n,this.sign)},e.prototype.minus=e.prototype.subtract,n.prototype.subtract=function(t){var r=T(t),e=this.value;if(e<0!==r.sign)return this.add(r.negate());var o=r.value;return r.isSmall?new n(e-o):g(o,Math.abs(e),e>=0)},n.prototype.minus=n.prototype.subtract,e.prototype.negate=function(){return new e(this.value,!this.sign)},n.prototype.negate=function(){var t=this.sign,r=new n(-this.value);return r.sign=!t,r},e.prototype.abs=function(){return new e(this.value,!1)},n.prototype.abs=function(){return new n(Math.abs(this.value))},e.prototype.multiply=function(t){var n,o=T(t),i=this.value,a=o.value,s=this.sign!==o.sign;if(o.isSmall){if(0===a)return r[0];if(1===a)return this;if(-1===a)return this.negate();if((n=Math.abs(a))<G)return new e(m(i,n),s);a=u(n)}return M(i.length,a.length)?new e(b(i,a),s):new e(d(i,a),s)},e.prototype.times=e.prototype.multiply,n.prototype._multiplyBySmall=function(t){return i(t.value*this.value)?new n(t.value*this.value):S(Math.abs(t.value),u(Math.abs(this.value)),this.sign!==t.sign)},e.prototype._multiplyBySmall=function(t){return 0===t.value?r[0]:1===t.value?this:-1===t.value?this.negate():S(Math.abs(t.value),this.value,this.sign!==t.sign)},n.prototype.multiply=function(t){return T(t)._multiplyBySmall(this)},n.prototype.times=n.prototype.multiply,e.prototype.square=function(){return new e(q(this.value),!1)},n.prototype.square=function(){var t=this.value*this.value;return i(t)?new n(t):new e(q(u(Math.abs(this.value))),!1)},e.prototype.divmod=function(t){var r=x(this,t);return{quotient:r[0],remainder:r[1]}},n.prototype.divmod=e.prototype.divmod,e.prototype.divide=function(t){return x(this,t)[0]},n.prototype.over=n.prototype.divide=e.prototype.over=e.prototype.divide,e.prototype.mod=function(t){return x(this,t)[1]},n.prototype.remainder=n.prototype.mod=e.prototype.remainder=e.prototype.mod,e.prototype.pow=function(t){var e,o,u,a=T(t),s=this.value,p=a.value;if(0===p)return r[1];if(0===s)return r[0];if(1===s)return r[1];if(-1===s)return a.isEven()?r[1]:r[-1];if(a.sign)return r[0];if(!a.isSmall)throw new Error("The exponent "+a.toString()+" is too large.");if(this.isSmall&&i(e=Math.pow(s,p)))return new n(l(e));for(o=this,u=r[1];;){if(!0&p&&(u=u.times(o),--p),0===p)break;p/=2,o=o.square()}return u},n.prototype.pow=e.prototype.pow,e.prototype.modPow=function(t,e){if(t=T(t),e=T(e),e.isZero())throw new Error("Cannot take modPow with modulus 0");for(var n=r[1],o=this.mod(e);t.isPositive();){if(o.isZero())return r[0];t.isOdd()&&(n=n.multiply(o).mod(e)),t=t.divide(2),o=o.square().mod(e)}return n},n.prototype.modPow=e.prototype.modPow,e.prototype.compareAbs=function(t){var r=T(t),e=this.value,n=r.value;return r.isSmall?1:A(e,n)},n.prototype.compareAbs=function(t){var r=T(t),e=Math.abs(this.value),n=r.value;return r.isSmall?(n=Math.abs(n),e===n?0:e>n?1:-1):-1},e.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var r=T(t),e=this.value,n=r.value;return this.sign!==r.sign?r.sign?1:-1:r.isSmall?this.sign?-1:1:A(e,n)*(this.sign?-1:1)},e.prototype.compareTo=e.prototype.compare,n.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var r=T(t),e=this.value,n=r.value;return r.isSmall?e==n?0:e>n?1:-1:e<0!==r.sign?e<0?-1:1:e<0?1:-1},n.prototype.compareTo=n.prototype.compare,e.prototype.equals=function(t){return 0===this.compare(t)},n.prototype.eq=n.prototype.equals=e.prototype.eq=e.prototype.equals,e.prototype.notEquals=function(t){return 0!==this.compare(t)},n.prototype.neq=n.prototype.notEquals=e.prototype.neq=e.prototype.notEquals,e.prototype.greater=function(t){return this.compare(t)>0},n.prototype.gt=n.prototype.greater=e.prototype.gt=e.prototype.greater,e.prototype.lesser=function(t){return this.compare(t)<0},n.prototype.lt=n.prototype.lesser=e.prototype.lt=e.prototype.lesser,e.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},n.prototype.geq=n.prototype.greaterOrEquals=e.prototype.geq=e.prototype.greaterOrEquals,e.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},n.prototype.leq=n.prototype.lesserOrEquals=e.prototype.leq=e.prototype.lesserOrEquals,e.prototype.isEven=function(){return 0==(1&this.value[0])},n.prototype.isEven=function(){return 0==(1&this.value)},e.prototype.isOdd=function(){return 1==(1&this.value[0])},n.prototype.isOdd=function(){return 1==(1&this.value)},e.prototype.isPositive=function(){return!this.sign},n.prototype.isPositive=function(){return this.value>0},e.prototype.isNegative=function(){return this.sign},n.prototype.isNegative=function(){return this.value<0},e.prototype.isUnit=function(){return!1},n.prototype.isUnit=function(){return 1===Math.abs(this.value)},e.prototype.isZero=function(){return!1},n.prototype.isZero=function(){return 0===this.value},e.prototype.isDivisibleBy=function(t){var e=T(t),n=e.value;return 0!==n&&(1===n||(2===n?this.isEven():this.mod(e).equals(r[0])))},n.prototype.isDivisibleBy=e.prototype.isDivisibleBy,e.prototype.isPrime=function(){var t=N(this);if(void 0!==t)return t;for(var e,n,i,u,a=this.abs(),s=a.prev(),p=[2,3,5,7,11,13,17,19],l=s;l.isEven();)l=l.divide(2);for(i=0;i<p.length;i++)if(u=o(p[i]).modPow(l,a),!u.equals(r[1])&&!u.equals(s)){for(n=!0,e=l;n&&e.lesser(s);e=e.multiply(2))u=u.square().mod(a),u.equals(s)&&(n=!1);if(n)return!1}return!0},n.prototype.isPrime=e.prototype.isPrime,e.prototype.isProbablePrime=function(t){var r=N(this);if(void 0!==r)return r;for(var e=this.abs(),n=void 0===t?5:t,i=0;i<n;i++){if(!o.randBetween(2,e.minus(2)).modPow(e.prev(),e).isUnit())return!1}return!0},n.prototype.isProbablePrime=e.prototype.isProbablePrime,e.prototype.modInv=function(t){for(var r,e,n,i=o.zero,u=o.one,a=T(t),s=this.abs();!s.equals(o.zero);)r=a.divide(s),e=i,n=a,i=u,a=s,u=e.subtract(r.multiply(u)),s=n.subtract(r.multiply(s));if(!a.equals(1))throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");return-1===i.compare(0)&&(i=i.add(t)),this.isNegative()?i.negate():i},n.prototype.modInv=e.prototype.modInv,e.prototype.next=function(){var t=this.value;return this.sign?g(t,1,this.sign):new e(v(t,1),this.sign)},n.prototype.next=function(){var t=this.value;return t+1<F?new n(t+1):new e(H,!1)},e.prototype.prev=function(){var t=this.value;return this.sign?new e(v(t,1),!0):g(t,1,this.sign)},n.prototype.prev=function(){var t=this.value;return t-1>-F?new n(t-1):new e(H,!0)};for(var Q=[1];2*Q[Q.length-1]<=G;)Q.push(2*Q[Q.length-1]);var V=Q.length,W=Q[V-1];e.prototype.shiftLeft=function(t){if(!j(t))throw new Error(String(t)+" is too large for shifting.");if((t=+t)<0)return this.shiftRight(-t);for(var r=this;t>=V;)r=r.multiply(W),t-=V-1;return r.multiply(Q[t])},n.prototype.shiftLeft=e.prototype.shiftLeft,e.prototype.shiftRight=function(t){var r;if(!j(t))throw new Error(String(t)+" is too large for shifting.");if((t=+t)<0)return this.shiftLeft(-t);for(var e=this;t>=V;){if(e.isZero())return e;r=x(e,W),e=r[1].isNegative()?r[0].prev():r[0],t-=V-1}return r=x(e,Q[t]),r[1].isNegative()?r[0].prev():r[0]},n.prototype.shiftRight=e.prototype.shiftRight,e.prototype.not=function(){return this.negate().prev()},n.prototype.not=e.prototype.not,e.prototype.and=function(t){return Z(this,t,function(t,r){return t&r})},n.prototype.and=e.prototype.and,e.prototype.or=function(t){return Z(this,t,function(t,r){return t|r})},n.prototype.or=e.prototype.or,e.prototype.xor=function(t){return Z(this,t,function(t,r){return t^r})},n.prototype.xor=e.prototype.xor;var X=1<<30,Y=(G&-G)*(G&-G)|X,tt=function(t,r){for(var e,o=t.length,i=Math.abs(r),e=0;e<o;e++){var u=t[e].toLowerCase();if("-"!==u&&/[a-z0-9]/.test(u)){if(/[0-9]/.test(u)&&+u>=i){if("1"===u&&1===i)continue;throw new Error(u+" is not a valid digit in base "+r+".")}if(u.charCodeAt(0)-87>=i)throw new Error(u+" is not a valid digit in base "+r+".")}}if(2<=r&&r<=36&&o<=K/Math.log(r)){var a=parseInt(t,r);if(isNaN(a))throw new Error(u+" is not a valid digit in base "+r+".");return new n(parseInt(t,r))}r=T(r);var s=[],p="-"===t[0];for(e=p?1:0;e<t.length;e++){var u=t[e].toLowerCase(),l=u.charCodeAt(0);if(48<=l&&l<=57)s.push(T(u));else if(97<=l&&l<=122)s.push(T(u.charCodeAt(0)-87));else{if("<"!==u)throw new Error(u+" is not a valid character");var f=e;do{e++}while(">"!==t[e]);s.push(T(t.slice(f+1,e)))}}return J(s,r,p)};e.prototype.toString=function(t){if(void 0===t&&(t=10),10!==t)return D(this,t);for(var r,e=this.value,n=e.length,o=String(e[--n]),i="0000000";--n>=0;)r=String(e[n]),o+=i.slice(r.length)+r;return(this.sign?"-":"")+o},n.prototype.toString=function(t){return void 0===t&&(t=10),10!=t?D(this,t):String(this.value)},e.prototype.toJSON=n.prototype.toJSON=function(){return this.toString()},e.prototype.valueOf=function(){return+this.toString()},e.prototype.toJSNumber=e.prototype.valueOf,n.prototype.valueOf=function(){return this.value},n.prototype.toJSNumber=n.prototype.valueOf;for(var rt=0;rt<1e3;rt++)r[rt]=new n(rt),rt>0&&(r[-rt]=new n(-rt));return r.one=r[1],r.zero=r[0],r.minusOne=r[-1],r.max=B,r.min=C,r.gcd=k,r.lcm=z,r.isInstance=function(t){return t instanceof e||t instanceof n},r.randBetween=_,r.fromArray=function(t,r,e){return J(t.map(T),T(r||10),e)},r}();void 0!==t&&t.hasOwnProperty("exports")&&(t.exports=o),e=[],void 0!==(n=function(){return o}.apply(r,e))&&(t.exports=n)}).call(r,e(2)(t))},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}}]).default;