diff options
Diffstat (limited to 'js/vendor/es6-shim/es6-shim.min.js')
-rw-r--r-- | js/vendor/es6-shim/es6-shim.min.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/vendor/es6-shim/es6-shim.min.js b/js/vendor/es6-shim/es6-shim.min.js index 501822b2a..c4ec2ab24 100644 --- a/js/vendor/es6-shim/es6-shim.min.js +++ b/js/vendor/es6-shim/es6-shim.min.js @@ -7,6 +7,7 @@ * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ -(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=function(e){try{e()}catch(t){return false}return true};var t=function(e,t){try{var r=function(){e.apply(this,arguments)};if(!r.__proto__){return false}Object.setPrototypeOf(r,e);r.prototype=Object.create(e.prototype,{constructor:{value:e}});return t(r)}catch(n){return false}};var r=function(){try{Object.defineProperty({},"x",{});return true}catch(e){return false}};var n=function(){var e=false;if(String.prototype.startsWith){try{"/a/".startsWith(/a/)}catch(t){e=true}}return e};var i=new Function("return this;");var o=i();var a=o.isFinite;var u=!!Object.defineProperty&&r();var s=n();var f=Function.call.bind(String.prototype.indexOf);var c=Function.call.bind(Object.prototype.toString);var l=Function.call.bind(Object.prototype.hasOwnProperty);var p;var v=function(){};var h=o.Symbol||{};var y=h.species||"@@species";var b={object:function(e){return e!==null&&typeof e==="object"},string:function(e){return c(e)==="[object String]"},regex:function(e){return c(e)==="[object RegExp]"},symbol:function(e){return typeof o.Symbol==="function"&&typeof e==="symbol"}};var g=function(e,t,r,n){if(!n&&t in e){return}if(u){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var d={getter:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function i(){return e[t]},set:function o(r){e[t]=r}})},redefine:function(e,t,r){if(u){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},preserveToString:function(e,t){g(e,"toString",t.toString.bind(t),true)}};var m=function(e,t){Object.keys(t).forEach(function(r){var n=t[r];g(e,r,n,false)})};var O=Object.create||function(e,t){function r(){}r.prototype=e;var n=new r;if(typeof t!=="undefined"){m(n,t)}return n};var w=b.symbol(h.iterator)?h.iterator:"_es6-shim iterator_";if(o.Set&&typeof(new o.Set)["@@iterator"]==="function"){w="@@iterator"}var j=function(e,t){if(!t){t=function n(){return this}}var r={};r[w]=t;m(e,r);if(!e[w]&&b.symbol(w)){e[w]=t}};var T=function Ft(e){var t=c(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&c(e.callee)==="[object Function]"}return r};var I=Function.call.bind(Function.apply);var M={Call:function Dt(e,t){var r=arguments.length>2?arguments[2]:[];if(!M.IsCallable(e)){throw new TypeError(e+" is not a function")}return I(e,t,r)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){M.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&c(e)==="[object Function]"},ToInt32:function(e){return M.ToNumber(e)>>0},ToUint32:function(e){return M.ToNumber(e)>>>0},ToNumber:function(e){if(c(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=M.ToNumber(e);if(Number.isNaN(t)){return 0}if(t===0||!Number.isFinite(t)){return t}return(t>0?1:-1)*Math.floor(Math.abs(t))},ToLength:function(e){var t=M.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return Number.isNaN(e)&&Number.isNaN(t)},SameValueZero:function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)},IsIterable:function(e){return M.TypeIsObject(e)&&(typeof e[w]!=="undefined"||T(e))},GetIterator:function(e){if(T(e)){return new p(e,"value")}var t=e[w];if(!M.IsCallable(t)){throw new TypeError("value is not an iterable")}var r=t.call(e);if(!M.TypeIsObject(r)){throw new TypeError("bad iterator")}return r},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!M.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},Construct:function(e,t){var r;if(M.IsCallable(e[y])){r=e[y]()}else{r=O(e.prototype||null)}m(r,{_es6construct:true});var n=M.Call(e,r,t);return M.TypeIsObject(n)?n:r},CreateHTML:function(e,t,r,n){var i=String(e);var o="<"+t;if(r!==""){var a=String(n);var u=a.replace(/"/g,""");o+=" "+r+'="'+u+'"'}var s=o+">";var f=s+i;return f+"</"+t+">"}};var S=function(e){if(!M.TypeIsObject(e)){throw new TypeError("bad object")}if(!e._es6construct){if(e.constructor&&M.IsCallable(e.constructor[y])){e=e.constructor[y](e)}m(e,{_es6construct:true})}return e};var E=function(){function e(e){var t=Math.floor(e),r=e-t;if(r<.5){return t}if(r>.5){return t+1}return t%2?t+1:t}function t(t,r,n){var i=(1<<r-1)-1,o,a,u,s,f,c,l;if(t!==t){a=(1<<r)-1;u=Math.pow(2,n-1);o=0}else if(t===Infinity||t===-Infinity){a=(1<<r)-1;u=0;o=t<0?1:0}else if(t===0){a=0;u=0;o=1/t===-Infinity?1:0}else{o=t<0;t=Math.abs(t);if(t>=Math.pow(2,1-i)){a=Math.min(Math.floor(Math.log(t)/Math.LN2),1023);u=e(t/Math.pow(2,a)*Math.pow(2,n));if(u/Math.pow(2,n)>=2){a=a+1;u=1}if(a>i){a=(1<<r)-1;u=0}else{a=a+i;u=u-Math.pow(2,n)}}else{a=0;u=e(t/Math.pow(2,1-i-n))}}f=[];for(s=n;s;s-=1){f.push(u%2?1:0);u=Math.floor(u/2)}for(s=r;s;s-=1){f.push(a%2?1:0);a=Math.floor(a/2)}f.push(o?1:0);f.reverse();c=f.join("");l=[];while(c.length){l.push(parseInt(c.slice(0,8),2));c=c.slice(8)}return l}function r(e,t,r){var n=[],i,o,a,u,s,f,c,l;for(i=e.length;i;i-=1){a=e[i-1];for(o=8;o;o-=1){n.push(a%2?1:0);a=a>>1}}n.reverse();u=n.join("");s=(1<<t-1)-1;f=parseInt(u.slice(0,1),2)?-1:1;c=parseInt(u.slice(1,1+t),2);l=parseInt(u.slice(1+t),2);if(c===(1<<t)-1){return l!==0?NaN:f*Infinity}else if(c>0){return f*Math.pow(2,c-s)*(1+l/Math.pow(2,r))}else if(l!==0){return f*Math.pow(2,-(s-1))*(l/Math.pow(2,r))}else{return f<0?-0:0}}function n(e){return r(e,11,52)}function i(e){return t(e,11,52)}function o(e){return r(e,8,23)}function a(e){return t(e,8,23)}var u={toFloat32:function(e){return o(a(e))}};if(typeof Float32Array!=="undefined"){var s=new Float32Array(1);u.toFloat32=function(e){s[0]=e;return s[0]}}return u}();m(String,{fromCodePoint:function qt(e){var t=[];var r;for(var n=0,i=arguments.length;n<i;n++){r=Number(arguments[n]);if(!M.SameValue(r,M.ToInteger(r))||r<0||r>1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){t.push(String.fromCharCode(r))}else{r-=65536;t.push(String.fromCharCode((r>>10)+55296));t.push(String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function Ht(e){var t=M.ToObject(e,"bad callSite");var r=t.raw;var n=M.ToObject(r,"bad raw value");var i=n.length;var o=M.ToLength(i);if(o<=0){return""}var a=[];var u=0;var s,f,c,l;while(u<o){s=String(u);f=n[s];c=String(f);a.push(c);if(u+1>=o){break}f=u+1<arguments.length?arguments[u+1]:"";l=String(f);a.push(l);u++}return a.join("")}});if(String.fromCodePoint.length!==1){var N=Function.apply.bind(String.fromCodePoint);g(String,"fromCodePoint",function Gt(e){return N(this,arguments)},true)}var x=function Wt(e,t){if(t<1){return""}if(t%2){return Wt(e,t-1)+e}var r=Wt(e,t/2);return r+r};var _=Infinity;var P={repeat:function Vt(e){M.RequireObjectCoercible(this);var t=String(this);e=M.ToInteger(e);if(e<0||e>=_){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return x(t,e)},startsWith:function(e){M.RequireObjectCoercible(this);var t=String(this);if(b.regex(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}e=String(e);var r=arguments.length>1?arguments[1]:void 0;var n=Math.max(M.ToInteger(r),0);return t.slice(n,n+e.length)===e},endsWith:function(e){M.RequireObjectCoercible(this);var t=String(this);if(b.regex(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}e=String(e);var r=t.length;var n=arguments.length>1?arguments[1]:void 0;var i=typeof n==="undefined"?r:M.ToInteger(n);var o=Math.min(Math.max(i,0),r);return t.slice(o-e.length,o)===e},includes:function Ut(e){var t=arguments.length>1?arguments[1]:void 0;return f(this,e,t)!==-1},codePointAt:function(e){M.RequireObjectCoercible(this);var t=String(this);var r=M.ToInteger(e);var n=t.length;if(r>=0&&r<n){var i=t.charCodeAt(r);var o=r+1===n;if(i<55296||i>56319||o){return i}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return i}return(i-55296)*1024+(a-56320)+65536}}};m(String.prototype,P);var C="\x85".trim().length!==1;if(C){delete String.prototype.trim;var k=[" \n\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join("");var A=new RegExp("(^["+k+"]+)|(["+k+"]+$)","g");m(String.prototype,{trim:function(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(A,"")}})}var R=function(e){M.RequireObjectCoercible(e);this._s=String(e);this._i=0};R.prototype.next=function(){var e=this._s,t=this._i;if(typeof e==="undefined"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,i;if(r<55296||r>56319||t+1===e.length){i=1}else{n=e.charCodeAt(t+1);i=n<56320||n>57343?1:2}this._i=t+i;return{value:e.substr(t,i),done:false}};j(R.prototype);j(String.prototype,function(){return new R(this)});if(!s){g(String.prototype,"startsWith",P.startsWith,true);g(String.prototype,"endsWith",P.endsWith,true)}var L={from:function Xt(e){var t=arguments.length>1?arguments[1]:void 0;var r=M.ToObject(e,"bad iterable");if(typeof t!=="undefined"&&!M.IsCallable(t)){throw new TypeError("Array.from: when provided, the second argument must be a function")}var n=arguments.length>2;var i=n?arguments[2]:void 0;var o=M.IsIterable(r);var a;var u,s,f;if(o){s=0;u=M.IsCallable(this)?Object(new this):[];var c=o?M.GetIterator(r):null;var l;do{l=M.IteratorNext(c);if(!l.done){f=l.value;if(t){u[s]=n?t.call(i,f,s):t(f,s)}else{u[s]=f}s+=1}}while(!l.done);a=s}else{a=M.ToLength(r.length);u=M.IsCallable(this)?Object(new this(a)):new Array(a);for(s=0;s<a;++s){f=r[s];if(t){u[s]=n?t.call(i,f,s):t(f,s)}else{u[s]=f}}}u.length=a;return u},of:function Zt(){return Array.from.call(this,arguments)}};m(Array,L);var z=function(){try{return Array.from({length:-1}).length===0}catch(e){return false}};if(!z()){g(Array,"from",L.from,true)}var F=function(e){return{value:e,done:arguments.length===0}};p=function(e,t){this.i=0;this.array=e;this.kind=t};m(p.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof p)){throw new TypeError("Not an ArrayIterator")}if(typeof t!=="undefined"){var r=M.ToLength(t.length);for(;e<r;e++){var n=this.kind;var i;if(n==="key"){i=e}else if(n==="value"){i=t[e]}else if(n==="entry"){i=[e,t[e]]}this.i=e+1;return{value:i,done:false}}}this.array=void 0;return{value:void 0,done:true}}});j(p.prototype);var D=function(e,t){this.object=e;this.array=null;this.kind=t};function q(e){var t=[];for(var r in e){t.push(r)}return t}m(D.prototype,{next:function(){var e,t=this.array;if(!(this instanceof D)){throw new TypeError("Not an ObjectIterator")}if(t===null){t=this.array=q(this.object)}while(M.ToLength(t.length)>0){e=t.shift();if(!(e in this.object)){continue}if(this.kind==="key"){return F(e)}else if(this.kind==="value"){return F(this.object[e])}else{return F([e,this.object[e]])}}return F()}});j(D.prototype);var H={copyWithin:function $t(e,t){var r=arguments[2];var n=M.ToObject(this);var i=M.ToLength(n.length);e=M.ToInteger(e);t=M.ToInteger(t);var o=e<0?Math.max(i+e,0):Math.min(e,i);var a=t<0?Math.max(i+t,0):Math.min(t,i);r=typeof r==="undefined"?i:M.ToInteger(r);var u=r<0?Math.max(i+r,0):Math.min(r,i);var s=Math.min(u-a,i-o);var f=1;if(a<o&&o<a+s){f=-1;a+=s-1;o+=s-1}while(s>0){if(l(n,a)){n[o]=n[a]}else{delete n[a]}a+=f;o+=f;s-=1}return n},fill:function Kt(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=M.ToObject(this);var i=M.ToLength(n.length);t=M.ToInteger(typeof t==="undefined"?0:t);r=M.ToInteger(typeof r==="undefined"?i:r);var o=t<0?Math.max(i+t,0):Math.min(t,i);var a=r<0?i+r:r;for(var u=o;u<i&&u<a;++u){n[u]=e}return n},find:function Bt(e){var t=M.ToObject(this);var r=M.ToLength(t.length);if(!M.IsCallable(e)){throw new TypeError("Array#find: predicate must be a function")}var n=arguments.length>1?arguments[1]:null;for(var i=0,o;i<r;i++){o=t[i];if(n){if(e.call(n,o,i,t)){return o}}else if(e(o,i,t)){return o}}},findIndex:function Jt(e){var t=M.ToObject(this);var r=M.ToLength(t.length);if(!M.IsCallable(e)){throw new TypeError("Array#findIndex: predicate must be a function")}var n=arguments.length>1?arguments[1]:null;for(var i=0;i<r;i++){if(n){if(e.call(n,t[i],i,t)){return i}}else if(e(t[i],i,t)){return i}}return-1},keys:function Qt(){return new p(this,"key")},values:function Yt(){return new p(this,"value")},entries:function er(){return new p(this,"entry")}};if(Array.prototype.keys&&!M.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!M.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[w]){m(Array.prototype,{values:Array.prototype[w]});if(b.symbol(h.unscopables)){Array.prototype[h.unscopables].values=true}}if(Array.prototype.values&&Array.prototype.values.name!=="values"){var G=Array.prototype.values;g(Array.prototype,"values",function tr(){return G.call(this)},true);g(Array.prototype,w,Array.prototype.values,true);d.preserveToString(Array.prototype.values,G)}m(Array.prototype,H);j(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){j(Object.getPrototypeOf([].values()))}var W=Math.pow(2,53)-1;m(Number,{MAX_SAFE_INTEGER:W,MIN_SAFE_INTEGER:-W,EPSILON:2.220446049250313e-16,parseInt:o.parseInt,parseFloat:o.parseFloat,isFinite:function(e){return typeof e==="number"&&a(e)},isInteger:function(e){return Number.isFinite(e)&&M.ToInteger(e)===e},isSafeInteger:function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER},isNaN:function(e){return e!==e}});if(![,1].find(function(e,t){return t===0})){g(Array.prototype,"find",H.find,true)}if([,1].findIndex(function(e,t){return t===0})!==0){g(Array.prototype,"findIndex",H.findIndex,true)}if(u){m(Object,{assign:function(e,t){if(!M.TypeIsObject(e)){throw new TypeError("target must be an object")}return Array.prototype.reduce.call(arguments,function(e,t){return Object.keys(Object(t)).reduce(function(e,r){e[r]=t[r];return e},e)})},is:function(e,t){return M.SameValue(e,t)},setPrototypeOf:function(e,t){var r;var n=function(e,t){if(!M.TypeIsObject(e)){throw new TypeError("cannot set prototype on a non-object")}if(!(t===null||M.TypeIsObject(t))){throw new TypeError("can only set prototype to an object or null"+t)}};var i=function(e,t){n(e,t);r.call(e,t);return e};try{r=e.getOwnPropertyDescriptor(e.prototype,t).set;r.call({},null)}catch(o){if(e.prototype!=={}[t]){return}r=function(e){this[t]=e};i.polyfill=i(i({},null),e.prototype)instanceof e}return i}(Object,"__proto__")})}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var e=Object.create(null);var t=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=t(r);return n===e?null:n};Object.setPrototypeOf=function(t,n){if(n===null){n=e}return r(t,n)};Object.setPrototypeOf.polyfill=false})()}var V=function(){try{Object.keys("foo");return true}catch(e){return false}}();if(!V){var U=Object.keys;g(Object,"keys",function rr(e){return U(M.ToObject(e))},true);d.preserveToString(Object.keys,U)}if(Object.getOwnPropertyNames){var X=function(){try{Object.getOwnPropertyNames("foo");return true}catch(e){return false}}();if(!X){var Z=Object.getOwnPropertyNames;g(Object,"getOwnPropertyNames",function nr(e){return Z(M.ToObject(e))},true);d.preserveToString(Object.getOwnPropertyNames,Z)}}if(Object.getOwnPropertyDescriptor){var $=function(){try{Object.getOwnPropertyDescriptor("foo","bar");return true}catch(e){return false}}();if(!$){var K=Object.getOwnPropertyDescriptor;g(Object,"getOwnPropertyDescriptor",function ir(e,t){return K(M.ToObject(e),t)},true);d.preserveToString(Object.getOwnPropertyDescriptor,K)}}if(Object.seal){var B=function(){try{Object.seal("foo");return true}catch(e){return false}}();if(!B){var J=Object.seal;g(Object,"seal",function or(e){if(!b.object(e)){return e}return J(e)},true);d.preserveToString(Object.seal,J)}}if(Object.isSealed){var Q=function(){try{Object.isSealed("foo");return true}catch(e){return false}}();if(!Q){var Y=Object.isSealed;g(Object,"isSealed",function ar(e){if(!b.object(e)){return true}return Y(e)},true);d.preserveToString(Object.isSealed,Y)}}if(Object.freeze){var et=function(){try{Object.freeze("foo");return true}catch(e){return false}}();if(!et){var tt=Object.freeze;g(Object,"freeze",function ur(e){if(!b.object(e)){return e}return tt(e)},true);d.preserveToString(Object.freeze,tt)}}if(Object.isFrozen){var rt=function(){try{Object.isFrozen("foo");return true}catch(e){return false}}();if(!rt){var nt=Object.isFrozen;g(Object,"isFrozen",function sr(e){if(!b.object(e)){return true}return nt(e)},true);d.preserveToString(Object.isFrozen,nt)}}if(Object.preventExtensions){var it=function(){try{Object.preventExtensions("foo");return true}catch(e){return false}}();if(!it){var ot=Object.preventExtensions;g(Object,"preventExtensions",function fr(e){if(!b.object(e)){return e}return ot(e)},true);d.preserveToString(Object.preventExtensions,ot)}}if(Object.isExtensible){var at=function(){try{Object.isExtensible("foo");return true}catch(e){return false}}();if(!at){var ut=Object.isExtensible;g(Object,"isExtensible",function cr(e){if(!b.object(e)){return false}return ut(e)},true);d.preserveToString(Object.isExtensible,ut)}}if(Object.getPrototypeOf){var st=function(){try{Object.getPrototypeOf("foo");return true}catch(e){return false}}();if(!st){var ft=Object.getPrototypeOf;g(Object,"getPrototypeOf",function lr(e){return ft(M.ToObject(e))},true);d.preserveToString(Object.getPrototypeOf,ft)}}if(!RegExp.prototype.flags&&u){var ct=function pr(){if(!M.TypeIsObject(this)){throw new TypeError("Method called on incompatible type: must be an object.")}var e="";if(this.global){e+="g"}if(this.ignoreCase){e+="i"}if(this.multiline){e+="m"}if(this.unicode){e+="u"}if(this.sticky){e+="y"}return e};d.getter(RegExp.prototype,"flags",ct)}var lt=function(){try{return String(new RegExp(/a/g,"i"))==="/a/i"}catch(e){return false}}();if(!lt&&u){var pt=RegExp;var vt=function vr(e,t){if(b.regex(e)&&b.string(t)){return new vr(e.source,t)}return new pt(e,t)};d.preserveToString(vt,pt);if(Object.setPrototypeOf){Object.setPrototypeOf(pt,vt)}Object.getOwnPropertyNames(pt).forEach(function(e){if(e==="$input"){return}if(e in v){return}d.proxy(pt,e,vt)});vt.prototype=pt.prototype;d.redefine(pt.prototype,"constructor",vt);RegExp=vt;d.redefine(o,"RegExp",vt)}var ht={acosh:function(e){var t=Number(e);if(Number.isNaN(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}return Math.log(t/Math.E+Math.sqrt(t+1)*Math.sqrt(t-1)/Math.E)+1},asinh:function(e){e=Number(e);if(e===0||!a(e)){return e}return e<0?-Math.asinh(-e):Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){e=Number(e);if(Number.isNaN(e)||e<-1||e>1){return NaN}if(e===-1){return-Infinity}if(e===1){return Infinity}if(e===0){return e}return.5*Math.log((1+e)/(1-e))},cbrt:function(e){e=Number(e);if(e===0){return e}var t=e<0,r;if(t){e=-e}r=Math.pow(e,1/3);return t?-r:r},clz32:function(e){e=Number(e);var t=M.ToUint32(e);if(t===0){return 32}return 32-t.toString(2).length},cosh:function(e){e=Number(e);if(e===0){return 1}if(Number.isNaN(e)){return NaN}if(!a(e)){return Infinity}if(e<0){e=-e}if(e>21){return Math.exp(e)/2}return(Math.exp(e)+Math.exp(-e))/2},expm1:function(e){var t=Number(e);if(t===-Infinity){return-1}if(!a(t)||e===0){return t}if(Math.abs(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var i=1;while(n+r!==n){n+=r;i+=1;r*=t/i}return n},hypot:function(e,t){var r=false;var n=true;var i=false;var o=[];Array.prototype.every.call(arguments,function(e){var t=Number(e);if(Number.isNaN(t)){r=true}else if(t===Infinity||t===-Infinity){i=true}else if(t!==0){n=false}if(i){return false}else if(!r){o.push(Math.abs(t))}return true});if(i){return Infinity}if(r){return NaN}if(n){return 0}o.sort(function(e,t){return t-e});var a=o[0];var u=o.map(function(e){return e/a});var s=u.reduce(function(e,t){return e+t*t},0);return a*Math.sqrt(s)},log2:function(e){return Math.log(e)*Math.LOG2E},log10:function(e){return Math.log(e)*Math.LOG10E},log1p:function(e){var t=Number(e);if(t<-1||Number.isNaN(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(Math.log(1+t)/(1+t-1))},sign:function(e){var t=+e;if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function(e){var t=Number(e);if(!a(e)||e===0){return e}if(Math.abs(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function(e){var t=Number(e);if(Number.isNaN(e)||t===0){return t}if(t===Infinity){return 1}if(t===-Infinity){return-1}var r=Math.expm1(t);var n=Math.expm1(-t);if(r===Infinity){return 1}if(n===Infinity){return-1}return(r-n)/(Math.exp(t)+Math.exp(-t))},trunc:function(e){var t=Number(e);return t<0?-Math.floor(-t):Math.floor(t)},imul:function(e,t){e=M.ToUint32(e);t=M.ToUint32(t);var r=e>>>16&65535;var n=e&65535;var i=t>>>16&65535;var o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0},fround:function(e){if(e===0||e===Infinity||e===-Infinity||Number.isNaN(e)){return e}var t=Number(e);return E.toFloat32(t)}};m(Math,ht);g(Math,"tanh",ht.tanh,Math.tanh(-2e-17)!==-2e-17);g(Math,"acosh",ht.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);g(Math,"sinh",ht.sinh,Math.sinh(-2e-17)!==-2e-17);var yt=Math.expm1(10);g(Math,"expm1",ht.expm1,yt>22025.465794806718||yt<22025.465794806718);var bt=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var gt=Math.round;g(Math,"round",function hr(e){if(-.5<=e&&e<.5&&e!==0){return Math.sign(e*0)}return gt(e)},!bt);if(Math.imul(4294967295,5)!==-5){Math.imul=ht.imul}var dt=function(){var e,t;M.IsPromise=function(e){if(!M.TypeIsObject(e)){return false}if(!e._promiseConstructor){return false}if(typeof e._status==="undefined"){return false}return true};var r=function(e){if(!M.IsCallable(e)){throw new TypeError("bad promise constructor")}var t=this;var r=function(e,r){t.resolve=e;t.reject=r};t.promise=M.Construct(e,[r]);if(!t.promise._es6construct){throw new TypeError("bad promise constructor")}if(!(M.IsCallable(t.resolve)&&M.IsCallable(t.reject))){throw new TypeError("bad promise constructor")}};var n=o.setTimeout;var i;if(typeof window!=="undefined"&&M.IsCallable(window.postMessage)){i=function(){var e=[];var t="zero-timeout-message";var r=function(r){e.push(r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=e.shift();n()}};window.addEventListener("message",n,true);return r}}var a=function(){var e=o.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var u=M.IsCallable(o.setImmediate)?o.setImmediate.bind(o):typeof process==="object"&&process.nextTick?process.nextTick:a()||(M.IsCallable(i)?i():function(e){n(e,0)});var s=function(e,t){if(!M.TypeIsObject(e)){return false}var r=t.resolve;var n=t.reject;try{var i=e.then;if(!M.IsCallable(i)){return false}i.call(e,r,n)}catch(o){n(o)}return true};var f=function(e,t){e.forEach(function(e){u(function(){var r=e.handler;var n=e.capability;var i=n.resolve;var o=n.reject;try{var a=r(t);if(a===n.promise){throw new TypeError("self resolution")}var u=s(a,n);if(!u){i(a)}}catch(f){o(f)}})})};var c=function(e,t,n){return function(i){if(i===e){return n(new TypeError("self resolution"))}var o=e._promiseConstructor;var a=new r(o);var u=s(i,a);if(u){return a.promise.then(t,n)}else{return t(i)}}};e=function(e){var t=this;t=S(t);if(!t._promiseConstructor){throw new TypeError("bad promise")}if(typeof t._status!=="undefined"){throw new TypeError("promise already initialized")}if(!M.IsCallable(e)){throw new TypeError("not a valid resolver")}t._status="unresolved";t._resolveReactions=[];t._rejectReactions=[];var r=function(e){if(t._status!=="unresolved"){return}var r=t._resolveReactions;t._result=e;t._resolveReactions=void 0;t._rejectReactions=void 0;t._status="has-resolution";f(r,e)};var n=function(e){if(t._status!=="unresolved"){return}var r=t._rejectReactions;t._result=e;t._resolveReactions=void 0;t._rejectReactions=void 0;t._status="has-rejection";f(r,e)};try{e(r,n)}catch(i){n(i)}return t};t=e.prototype;var l=function(e,t,r,n){var i=false;return function(o){if(i){return}i=true;t[e]=o;if(--n.count===0){var a=r.resolve;a(t)}}};g(e,y,function(e){var r=this;var n=r.prototype||t;e=e||O(n);m(e,{_status:void 0,_result:void 0,_resolveReactions:void 0,_rejectReactions:void 0,_promiseConstructor:void 0});e._promiseConstructor=r;return e});m(e,{all:function p(e){var t=this;var n=new r(t);var i=n.resolve;var o=n.reject;try{if(!M.IsIterable(e)){throw new TypeError("bad iterable")}var a=M.GetIterator(e);var u=[],s={count:1};for(var f=0;;f++){var c=M.IteratorNext(a);if(c.done){break}var p=t.resolve(c.value);var v=l(f,u,n,s);s.count++;p.then(v,n.reject)}if(--s.count===0){i(u)}}catch(h){o(h)}return n.promise},race:function v(e){var t=this;var n=new r(t);var i=n.resolve;var o=n.reject;try{if(!M.IsIterable(e)){throw new TypeError("bad iterable")}var a=M.GetIterator(e);while(true){var u=M.IteratorNext(a);if(u.done){break}var s=t.resolve(u.value);s.then(i,o)}}catch(f){o(f)}return n.promise},reject:function h(e){var t=this;var n=new r(t);var i=n.reject;i(e);return n.promise},resolve:function b(e){var t=this;if(M.IsPromise(e)){var n=e._promiseConstructor;if(n===t){return e}}var i=new r(t);var o=i.resolve;o(e);return i.promise}});m(t,{"catch":function(e){return this.then(void 0,e)},then:function d(e,t){var n=this;if(!M.IsPromise(n)){throw new TypeError("not a promise")}var i=this.constructor;var o=new r(i);if(!M.IsCallable(t)){t=function(e){throw e}}if(!M.IsCallable(e)){e=function(e){return e}}var a=c(n,e,t);var u={capability:o,handler:a};var s={capability:o,handler:t};switch(n._status){case"unresolved":n._resolveReactions.push(u);n._rejectReactions.push(s);break;case"has-resolution":f([u],n._result);break;case"has-rejection":f([s],n._result);break;default:throw new TypeError("unexpected")}return o.promise}});return e}();if(o.Promise){delete o.Promise.accept;delete o.Promise.defer;delete o.Promise.prototype.chain}m(o,{Promise:dt});var mt=t(o.Promise,function(e){return e.resolve(42)instanceof e});var Ot=function(){try{o.Promise.reject(42).then(null,5).then(null,v);return true}catch(e){return false}}();var wt=function(){try{Promise.call(3,v)}catch(e){return true}return false}();if(!mt||!Ot||!wt){Promise=dt;g(o,"Promise",dt,true)}var jt=function(e){var t=Object.keys(e.reduce(function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var Tt=jt(["z","a","bb"]);var It=jt(["z",1,"a","3",2]);if(u){var Mt=function yr(e){if(!Tt){return null}var t=typeof e;if(t==="string"){return"$"+e}else if(t==="number"){if(!It){return"n"+e}return e}return null};var St=function br(){return Object.create?Object.create(null):{}};var Et={Map:function(){var e={};function t(e,t){this.key=e;this.value=t;this.next=null;this.prev=null}t.prototype.isRemoved=function(){return this.key===e};function r(e,t){this.head=e._head;this.i=this.head;this.kind=t}r.prototype={next:function(){var e=this.i,t=this.kind,r=this.head,n;if(typeof this.i==="undefined"){return{value:void 0,done:true}}while(e.isRemoved()&&e!==r){e=e.prev}while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t==="key"){n=e.key}else if(t==="value"){n=e.value}else{n=[e.key,e.value]}this.i=e;return{value:n,done:false}}}this.i=void 0;return{value:void 0,done:true}}};j(r.prototype);function n(e){var r=this;if(!M.TypeIsObject(r)){throw new TypeError("Constructor Map requires 'new'")}r=S(r);if(!r._es6map){throw new TypeError("bad map")}var n=new t(null,null);n.next=n.prev=n;m(r,{_head:n,_storage:St(),_size:0});if(typeof e!=="undefined"&&e!==null){var i=M.GetIterator(e);var o=r.set;if(!M.IsCallable(o)){throw new TypeError("bad map")}while(true){var a=M.IteratorNext(i);if(a.done){break}var u=a.value;if(!M.TypeIsObject(u)){throw new TypeError("expected iterable of pairs")}o.call(r,u[0],u[1])}}return r}var i=n.prototype;g(n,y,function(e){var t=this;var r=t.prototype||i;e=e||O(r);m(e,{_es6map:true});return e});d.getter(n.prototype,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});m(n.prototype,{get:function(e){var t=Mt(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(M.SameValueZero(i.key,e)){return i.value}}},has:function(e){var t=Mt(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(M.SameValueZero(n.key,e)){return true}}return false},set:function(e,r){var n=this._head,i=n,o;var a=Mt(e);if(a!==null){if(typeof this._storage[a]!=="undefined"){this._storage[a].value=r;return this}else{o=this._storage[a]=new t(e,r);i=n.prev}}while((i=i.next)!==n){if(M.SameValueZero(i.key,e)){i.value=r;return this}}o=o||new t(e,r);if(M.SameValue(-0,e)){o.key=+0}o.next=this._head;o.prev=this._head.prev;o.prev.next=o;o.next.prev=o;this._size+=1;return this},"delete":function(t){var r=this._head,n=r;var i=Mt(t);if(i!==null){if(typeof this._storage[i]==="undefined"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(M.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function(){this._size=0;this._storage=St();var t=this._head,r=t,n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function(){return new r(this,"key")},values:function(){return new r(this,"value")},entries:function(){return new r(this,"key+value")},forEach:function(e){var t=arguments.length>1?arguments[1]:null;var r=this.entries();for(var n=r.next();!n.done;n=r.next()){if(t){e.call(t,n.value[1],n.value[0],this)}else{e(n.value[1],n.value[0],this)}}}});j(n.prototype,function(){return this.entries()});return n}(),Set:function(){var e=function n(e){var t=this;if(!M.TypeIsObject(t)){throw new TypeError("Constructor Set requires 'new'")}t=S(t);if(!t._es6set){throw new TypeError("bad set")}m(t,{"[[SetData]]":null,_storage:St()});if(typeof e!=="undefined"&&e!==null){var r=M.GetIterator(e);var n=t.add;if(!M.IsCallable(n)){throw new TypeError("bad set")}while(true){var i=M.IteratorNext(r);if(i.done){break}var o=i.value;n.call(t,o)}}return t};var t=e.prototype;g(e,y,function(e){var r=this;var n=r.prototype||t;e=e||O(n);m(e,{_es6set:true});return e});var r=function i(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new Et.Map;Object.keys(e._storage).forEach(function(e){if(e.charCodeAt(0)===36){e=e.slice(1)}else if(e.charAt(0)==="n"){e=+e.slice(1)}else{e=+e}t.set(e,e)});e._storage=null}};d.getter(e.prototype,"size",function(){if(typeof this._storage==="undefined"){throw new TypeError("size method called on incompatible Set")}r(this);return this["[[SetData]]"].size});m(e.prototype,{has:function(e){var t;if(this._storage&&(t=Mt(e))!==null){return!!this._storage[t]}r(this);return this["[[SetData]]"].has(e)},add:function(e){var t;if(this._storage&&(t=Mt(e))!==null){this._storage[t]=true;return this}r(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){var t;if(this._storage&&(t=Mt(e))!==null){var n=l(this._storage,t);return delete this._storage[t]&&n}r(this);return this["[[SetData]]"]["delete"](e)},clear:function(){if(this._storage){this._storage=St() -}else{this["[[SetData]]"].clear()}},values:function(){r(this);return this["[[SetData]]"].values()},entries:function(){r(this);return this["[[SetData]]"].entries()},forEach:function(e){var t=arguments.length>1?arguments[1]:null;var n=this;r(n);this["[[SetData]]"].forEach(function(r,i){if(t){e.call(t,i,i,n)}else{e(i,i,n)}})}});g(e,"keys",e.values,true);j(e.prototype,function(){return this.values()});return e}()};m(o,Et);if(o.Map||o.Set){if(typeof o.Map.prototype.clear!=="function"||(new o.Set).size!==0||(new o.Map).size!==0||typeof o.Map.prototype.keys!=="function"||typeof o.Set.prototype.keys!=="function"||typeof o.Map.prototype.forEach!=="function"||typeof o.Set.prototype.forEach!=="function"||e(o.Map)||e(o.Set)||!t(o.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e})){o.Map=Et.Map;o.Set=Et.Set}}if(o.Set.prototype.keys!==o.Set.prototype.values){g(o.Set.prototype,"keys",o.Set.prototype.values,true)}j(Object.getPrototypeOf((new o.Map).keys()));j(Object.getPrototypeOf((new o.Set).keys()))}if(!o.Reflect){g(o,"Reflect",{})}var Nt=o.Reflect;var xt=function gr(e){if(!M.TypeIsObject(e)){throw new TypeError("target must be an object")}};m(o.Reflect,{apply:function dr(){return M.Call.apply(null,arguments)},construct:function mr(e,t){if(!M.IsCallable(e)){throw new TypeError("First argument must be callable.")}return M.Construct(e,t)},deleteProperty:function Or(e,t){xt(e);if(u){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function wr(e){xt(e);return new D(e,"key")},has:function jr(e,t){xt(e);return t in e}});if(Object.getOwnPropertyNames){m(o.Reflect,{ownKeys:function Tr(e){xt(e);var t=Object.getOwnPropertyNames(e);if(M.IsCallable(Object.getOwnPropertySymbols)){t.push.apply(t,Object.getOwnPropertySymbols(e))}return t}})}if(Object.preventExtensions){m(o.Reflect,{isExtensible:function Ir(e){xt(e);return Object.isExtensible(e)},preventExtensions:function Mr(e){xt(e);return Ct(function(){Object.preventExtensions(e)})}})}if(u){var _t=function Sr(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return _t(i,t,r)}if("value"in n){return n.value}if(n.get){return n.get.call(r)}return undefined};var Pt=function Er(e,t,r,n){var i=Object.getOwnPropertyDescriptor(e,t);if(!i){var o=Object.getPrototypeOf(e);if(o!==null){return Pt(o,t,r,n)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!M.TypeIsObject(n)){return false}var a=Object.getOwnPropertyDescriptor(n,t);if(a){return Nt.defineProperty(n,t,{value:r})}else{return Nt.defineProperty(n,t,{value:r,writable:true,enumerable:true,configurable:true})}}if(i.set){i.set.call(n,r);return true}return false};var Ct=function Nr(e){try{e()}catch(t){return false}return true};m(o.Reflect,{defineProperty:function xr(e,t,r){xt(e);return Ct(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function _r(e,t){xt(e);return Object.getOwnPropertyDescriptor(e,t)},get:function Pr(e,t){xt(e);var r=arguments.length>2?arguments[2]:e;return _t(e,t,r)},set:function Cr(e,t,r){xt(e);var n=arguments.length>3?arguments[3]:e;return Pt(e,t,r,n)}})}if(Object.getPrototypeOf){var kt=Object.getPrototypeOf;m(o.Reflect,{getPrototypeOf:function kr(e){xt(e);return kt(e)}})}if(Object.setPrototypeOf){var At=function(e,t){while(t){if(e===t){return true}t=Nt.getPrototypeOf(t)}return false};m(o.Reflect,{setPrototypeOf:function Ar(e,t){xt(e);if(t!==null&&!M.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===Nt.getPrototypeOf(e)){return true}if(Nt.isExtensible&&!Nt.isExtensible(e)){return false}if(At(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}if(String(new Date(NaN))!=="Invalid Date"){var Rt=Date.prototype.toString;var Lt=function Rr(){var e=+this;if(e!==e){return"Invalid Date"}return Rt.call(this)};g(Lt,"toString",Rt.toString,true);g(Date.prototype,"toString",Lt,true)}var zt={anchor:function Lr(e){return M.CreateHTML(this,"a","name",e)},big:function zr(){return M.CreateHTML(this,"big","","")},blink:function Fr(){return M.CreateHTML(this,"blink","","")},bold:function Dr(){return M.CreateHTML(this,"b","","")},fixed:function qr(){return M.CreateHTML(this,"tt","","")},fontcolor:function Hr(e){return M.CreateHTML(this,"font","color",e)},fontsize:function Gr(e){return M.CreateHTML(this,"font","size",e)},italics:function Wr(){return M.CreateHTML(this,"i","","")},link:function Vr(e){return M.CreateHTML(this,"a","href",e)},small:function Ur(){return M.CreateHTML(this,"small","","")},strike:function Xr(){return M.CreateHTML(this,"strike","","")},sub:function Zr(){return M.CreateHTML(this,"sub","","")},sup:function $r(){return M.CreateHTML(this,"sup","","")}};m(String.prototype,zt);Object.keys(zt).forEach(function(e){var t=String.prototype[e];var r=false;if(M.IsCallable(t)){var n=t.call("",' " ');var i=[].concat(n.match(/"/g)).length;r=n!==n.toLowerCase()||i>2}else{r=true}if(r){g(String.prototype,e,zt[e],true)}});return o}); +(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=function zt(e){return function t(){return!e.apply(this,arguments)}};var t=function(e){try{e();return false}catch(t){return true}};var r=function Dt(e){try{return e()}catch(t){return false}};var n=e(t);var o=function(e,t){if(!Object.setPrototypeOf){return false}return r(function(){var r=function n(t){var r=new e(t);Object.setPrototypeOf(r,n.prototype);return r};r.prototype=E(e.prototype,{constructor:{value:e}});return t(r)})};var i=function(){return!t(function(){Object.defineProperty({},"x",{})})};var a=function(){return String.prototype.startsWith&&t(function(){"/a/".startsWith(/a/)})};var u=function(){return String.prototype.startsWith&&"abc".startsWith("a",Infinity)===false}();var s=new Function("return this;");var f=s();var c=f.isFinite;var l=!!Object.defineProperty&&i();var p=function(){return this===null}.call(null);var v=a()&&u;var h=Function.call.bind(String.prototype.indexOf);var y=Function.call.bind(Object.prototype.toString);var b=Function.call.bind(Object.prototype.hasOwnProperty);var g;var d=function(){};var m=f.Symbol||{};var O=m.species||"@@species";var w={object:function(e){return e!==null&&typeof e==="object"},string:function(e){return y(e)==="[object String]"},regex:function(e){return y(e)==="[object RegExp]"},symbol:function(e){return typeof f.Symbol==="function"&&typeof e==="symbol"}};var j=Number.isNaN||function Ft(e){return e!==e};var S=Number.isFinite||function qt(e){return typeof e==="number"&&c(e)};var T=function(e,t,r,n){if(!n&&t in e){return}if(l){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var M={getter:function(e,t,r){if(!l){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!l){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function o(){return e[t]},set:function i(r){e[t]=r}})},redefine:function(e,t,r){if(l){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},preserveToString:function(e,t){T(e,"toString",t.toString.bind(t),true)}};var I=function(e,t){Object.keys(t).forEach(function(r){var n=t[r];T(e,r,n,false)})};var E=Object.create||function(e,t){function r(){}r.prototype=e;var n=new r;if(typeof t!=="undefined"){I(n,t)}return n};var x=w.symbol(m.iterator)?m.iterator:"_es6-shim iterator_";if(f.Set&&typeof(new f.Set)["@@iterator"]==="function"){x="@@iterator"}var P=function(e,t){if(!t){t=function n(){return this}}var r={};r[x]=t;I(e,r);if(!e[x]&&w.symbol(x)){e[x]=t}};var _=function Gt(e){var t=y(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&y(e.callee)==="[object Function]"}return r};var N=Function.call.bind(Function.apply);var C={Call:function Ht(e,t){var r=arguments.length>2?arguments[2]:[];if(!C.IsCallable(e)){throw new TypeError(e+" is not a function")}return N(e,t,r)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){C.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&y(e)==="[object Function]"},ToInt32:function(e){return C.ToNumber(e)>>0},ToUint32:function(e){return C.ToNumber(e)>>>0},ToNumber:function(e){if(y(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=C.ToNumber(e);if(j(t)){return 0}if(t===0||!S(t)){return t}return(t>0?1:-1)*Math.floor(Math.abs(t))},ToLength:function(e){var t=C.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return j(e)&&j(t)},SameValueZero:function(e,t){return e===t||j(e)&&j(t)},IsIterable:function(e){return C.TypeIsObject(e)&&(typeof e[x]!=="undefined"||_(e))},GetIterator:function(e){if(_(e)){return new g(e,"value")}var t=e[x];if(!C.IsCallable(t)){throw new TypeError("value is not an iterable")}var r=t.call(e);if(!C.TypeIsObject(r)){throw new TypeError("bad iterator")}return r},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!C.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},Construct:function(e,t){var r;if(C.IsCallable(e[O])){r=e[O]()}else{r=E(e.prototype||null)}I(r,{_es6construct:true});var n=C.Call(e,r,t);return C.TypeIsObject(n)?n:r},CreateHTML:function(e,t,r,n){var o=String(e);var i="<"+t;if(r!==""){var a=String(n);var u=a.replace(/"/g,""");i+=" "+r+'="'+u+'"'}var s=i+">";var f=s+o;return f+"</"+t+">"}};var k=function(e){if(!C.TypeIsObject(e)){throw new TypeError("bad object")}if(!e._es6construct){if(e.constructor&&C.IsCallable(e.constructor[O])){e=e.constructor[O](e)}I(e,{_es6construct:true})}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var A=Function.apply.bind(String.fromCodePoint);T(String,"fromCodePoint",function Wt(e){return A(this,arguments)},true)}var R={fromCodePoint:function Vt(e){var t=[];var r;for(var n=0,o=arguments.length;n<o;n++){r=Number(arguments[n]);if(!C.SameValue(r,C.ToInteger(r))||r<0||r>1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){t.push(String.fromCharCode(r))}else{r-=65536;t.push(String.fromCharCode((r>>10)+55296));t.push(String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function $t(e){var t=C.ToObject(e,"bad callSite");var r=C.ToObject(t.raw,"bad raw value");var n=r.length;var o=C.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,s,f,c;while(a<o){u=String(a);f=String(r[u]);i.push(f);if(a+1>=o){break}s=a+1<arguments.length?arguments[a+1]:"";c=String(s);i.push(c);a++}return i.join("")}};I(String,R);if(String.raw({raw:{0:"x",1:"y",length:2}})!=="xy"){var L=String.raw;T(String,"raw",R.raw,true);M.preserveToString(String.raw,L)}var z=function Ut(e,t){if(t<1){return""}if(t%2){return Ut(e,t-1)+e}var r=Ut(e,t/2);return r+r};var D=Infinity;var F={repeat:function Xt(e){C.RequireObjectCoercible(this);var t=String(this);e=C.ToInteger(e);if(e<0||e>=D){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return z(t,e)},startsWith:function Zt(e){C.RequireObjectCoercible(this);var t=String(this);if(w.regex(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}e=String(e);var r=arguments.length>1?arguments[1]:void 0;var n=Math.max(C.ToInteger(r),0);return t.slice(n,n+e.length)===e},endsWith:function Kt(e){C.RequireObjectCoercible(this);var t=String(this);if(w.regex(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}e=String(e);var r=t.length;var n=arguments.length>1?arguments[1]:void 0;var o=typeof n==="undefined"?r:C.ToInteger(n);var i=Math.min(Math.max(o,0),r);return t.slice(i-e.length,i)===e},includes:function Bt(e){var t=arguments.length>1?arguments[1]:void 0;return h(this,e,t)!==-1},codePointAt:function Jt(e){C.RequireObjectCoercible(this);var t=String(this);var r=C.ToInteger(e);var n=t.length;if(r>=0&&r<n){var o=t.charCodeAt(r);var i=r+1===n;if(o<55296||o>56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};I(String.prototype,F);if("a".includes("a",Infinity)!==false){var q=String.prototype.includes;T(String.prototype,"includes",F.includes,true);M.preserveToString(String.prototype.includes,q)}var G="\x85".trim().length!==1;if(G){delete String.prototype.trim;var H=[" \n\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join("");var W=new RegExp("(^["+H+"]+)|(["+H+"]+$)","g");I(String.prototype,{trim:function Qt(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(W,"")}})}var V=function(e){C.RequireObjectCoercible(e);this._s=String(e);this._i=0};V.prototype.next=function(){var e=this._s,t=this._i;if(typeof e==="undefined"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,o;if(r<55296||r>56319||t+1===e.length){o=1}else{n=e.charCodeAt(t+1);o=n<56320||n>57343?1:2}this._i=t+o;return{value:e.substr(t,o),done:false}};P(V.prototype);P(String.prototype,function(){return new V(this)});if(!v){T(String.prototype,"startsWith",F.startsWith,true);T(String.prototype,"endsWith",F.endsWith,true)}var $={from:function Yt(e){var t=arguments.length>1?arguments[1]:void 0;var r=C.ToObject(e,"bad iterable");if(typeof t!=="undefined"&&!C.IsCallable(t)){throw new TypeError("Array.from: when provided, the second argument must be a function")}var n=arguments.length>2;var o=n?arguments[2]:void 0;var i=C.IsIterable(r);var a;var u,s,f;if(i){s=0;u=C.IsCallable(this)?Object(new this):[];var c=i?C.GetIterator(r):null;var l;do{l=C.IteratorNext(c);if(!l.done){f=l.value;if(t){u[s]=n?t.call(o,f,s):t(f,s)}else{u[s]=f}s+=1}}while(!l.done);a=s}else{a=C.ToLength(r.length);u=C.IsCallable(this)?Object(new this(a)):new Array(a);for(s=0;s<a;++s){f=r[s];if(t){u[s]=n?t.call(o,f,s):t(f,s)}else{u[s]=f}}}u.length=a;return u},of:function er(){return Array.from.call(this,arguments)}};I(Array,$);var U=function(e){return{value:e,done:arguments.length===0}};g=function(e,t){this.i=0;this.array=e;this.kind=t};I(g.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof g)){throw new TypeError("Not an ArrayIterator")}if(typeof t!=="undefined"){var r=C.ToLength(t.length);for(;e<r;e++){var n=this.kind;var o;if(n==="key"){o=e}else if(n==="value"){o=t[e]}else if(n==="entry"){o=[e,t[e]]}this.i=e+1;return{value:o,done:false}}}this.array=void 0;return{value:void 0,done:true}}});P(g.prototype);var X=function(e,t){this.object=e;this.array=null;this.kind=t};function Z(e){var t=[];for(var r in e){t.push(r)}return t}I(X.prototype,{next:function(){var e,t=this.array;if(!(this instanceof X)){throw new TypeError("Not an ObjectIterator")}if(t===null){t=this.array=Z(this.object)}while(C.ToLength(t.length)>0){e=t.shift();if(!(e in this.object)){continue}if(this.kind==="key"){return U(e)}else if(this.kind==="value"){return U(this.object[e])}else{return U([e,this.object[e]])}}return U()}});P(X.prototype);var K=function(){var e=function r(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!K){var B=Array.of;T(Array,"of",$.of,true);M.preserveToString(Array.of,B)}var J={copyWithin:function tr(e,t){var r=arguments[2];var n=C.ToObject(this);var o=C.ToLength(n.length);e=C.ToInteger(e);t=C.ToInteger(t);var i=e<0?Math.max(o+e,0):Math.min(e,o);var a=t<0?Math.max(o+t,0):Math.min(t,o);r=typeof r==="undefined"?o:C.ToInteger(r);var u=r<0?Math.max(o+r,0):Math.min(r,o);var s=Math.min(u-a,o-i);var f=1;if(a<i&&i<a+s){f=-1;a+=s-1;i+=s-1}while(s>0){if(b(n,a)){n[i]=n[a]}else{delete n[a]}a+=f;i+=f;s-=1}return n},fill:function rr(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=C.ToObject(this);var o=C.ToLength(n.length);t=C.ToInteger(typeof t==="undefined"?0:t);r=C.ToInteger(typeof r==="undefined"?o:r);var i=t<0?Math.max(o+t,0):Math.min(t,o);var a=r<0?o+r:r;for(var u=i;u<o&&u<a;++u){n[u]=e}return n},find:function nr(e){var t=C.ToObject(this);var r=C.ToLength(t.length);if(!C.IsCallable(e)){throw new TypeError("Array#find: predicate must be a function")}var n=arguments.length>1?arguments[1]:null;for(var o=0,i;o<r;o++){i=t[o];if(n){if(e.call(n,i,o,t)){return i}}else if(e(i,o,t)){return i}}},findIndex:function or(e){var t=C.ToObject(this);var r=C.ToLength(t.length);if(!C.IsCallable(e)){throw new TypeError("Array#findIndex: predicate must be a function")}var n=arguments.length>1?arguments[1]:null;for(var o=0;o<r;o++){if(n){if(e.call(n,t[o],o,t)){return o}}else if(e(t[o],o,t)){return o}}return-1},keys:function ir(){return new g(this,"key")},values:function ar(){return new g(this,"value")},entries:function ur(){return new g(this,"entry")}};if(Array.prototype.keys&&!C.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!C.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[x]){I(Array.prototype,{values:Array.prototype[x]});if(w.symbol(m.unscopables)){Array.prototype[m.unscopables].values=true}}if(Array.prototype.values&&Array.prototype.values.name!=="values"){var Q=Array.prototype.values;T(Array.prototype,"values",function sr(){return Q.call(this)},true);T(Array.prototype,x,Array.prototype.values,true);M.preserveToString(Array.prototype.values,Q)}I(Array.prototype,J);P(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){P(Object.getPrototypeOf([].values()))}var Y=function(){return r(function(){return Array.from({length:-1}).length===0})};var ee=function(){var e=Array.from([0].entries());return e.length===1&&e[0][0]===0&&e[0][1]===1}();if(!Y()||!ee){var te=Array.from;T(Array,"from",$.from,true);M.preserveToString(Array.from,te)}var re=Math.pow(2,53)-1;I(Number,{MAX_SAFE_INTEGER:re,MIN_SAFE_INTEGER:-re,EPSILON:2.220446049250313e-16,parseInt:f.parseInt,parseFloat:f.parseFloat,isFinite:S,isInteger:function fr(e){return S(e)&&C.ToInteger(e)===e},isSafeInteger:function cr(e){return Number |