-
-
Notifications
You must be signed in to change notification settings - Fork 893
/
es5-shim.min.js
7 lines (7 loc) · 28 KB
/
es5-shim.min.js
1
2
3
4
5
6
7
/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2020 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
*/
(function(t,e){"use strict";if(typeof define==="function"&&define.amd){define(e)}else if(typeof exports==="object"){module.exports=e()}else{t.returnExports=e()}})(this,function(){var t=Array;var e=t.prototype;var r=Object;var n=r.prototype;var i=Function;var a=i.prototype;var o=String;var f=o.prototype;var u=Number;var l=u.prototype;var s=e.slice;var c=e.splice;var v=e.push;var p=e.unshift;var h=e.concat;var y=e.join;var d=a.call;var g=a.apply;var b=Math.max;var w=Math.min;var T=Math.floor;var m=Math.abs;var S=Math.pow;var D=Math.round;var x=Math.log;var E=Math.LOG10E;var O=Math.log10||function log10(t){return x(t)*E};var I=n.toString;var j=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var N;var F=Function.prototype.toString,U=/^\s*class /,$=function isES6ClassFn(t){try{var e=F.call(t);var r=e.replace(/\/\/.*\n/g,"");var n=r.replace(/\/\*[.\s\S]*\*\//g,"");var i=n.replace(/\n/gm," ").replace(/ {2}/g," ");return U.test(i)}catch(a){return false}},M=function tryFunctionObject(t){try{if($(t)){return false}F.call(t);return true}catch(e){return false}},C="[object Function]",P="[object GeneratorFunction]",N=function isCallable(t){if(!t){return false}if(typeof t!=="function"&&typeof t!=="object"){return false}if(j){return M(t)}if($(t)){return false}var e=I.call(t);return e===C||e===P};var k;var R=RegExp.prototype.exec,A=function tryRegexExec(t){try{R.call(t);return true}catch(e){return false}},J="[object RegExp]";k=function isRegex(t){if(typeof t!=="object"){return false}return j?A(t):I.call(t)===J};var Y;var z=String.prototype.valueOf,Z=function tryStringObject(t){try{z.call(t);return true}catch(e){return false}},G="[object String]";Y=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return j?Z(t):I.call(t)===G};var H=r.defineProperty&&function(){try{var t={};r.defineProperty(t,"x",{enumerable:false,value:t});for(var e in t){return false}return t.x===t}catch(n){return false}}();var W=function(t){var e;if(H){e=function(t,e,n,i){if(!i&&e in t){return}r.defineProperty(t,e,{configurable:true,enumerable:false,writable:true,value:n})}}else{e=function(t,e,r,n){if(!n&&e in t){return}t[e]=r}}return function defineProperties(r,n,i){for(var a in n){if(t.call(n,a)){e(r,a,n[a],i)}}}}(n.hasOwnProperty);if(r.defineProperty&&H){var B=function(){};var L={};var X={toString:L};r.defineProperty(B,"prototype",{value:X,writable:false});if((new B).toString!==L){var q=r.defineProperty;var K=r.getOwnPropertyDescriptor;W(r,{defineProperty:function defineProperty(t,e,r){var n=o(e);if(typeof t==="function"&&n==="prototype"){var i=K(t,n);if(i.writable&&!r.writable&&"value"in r){try{t[n]=r.value}catch(a){}}return q(t,n,{configurable:"configurable"in r?r.configurable:i.configurable,enumerable:"enumerable"in r?r.enumerable:i.enumerable,writable:r.writable})}return q(t,n,r)}},true)}}var Q=function isPrimitive(t){var e=typeof t;return t===null||e!=="object"&&e!=="function"};var V=u.isNaN||function isActualNaN(t){return t!==t};var _={ToInteger:function ToInteger(t){var e=+t;if(V(e)){e=0}else if(e!==0&&e!==1/0&&e!==-(1/0)){e=(e>0||-1)*T(m(e))}return e},ToPrimitive:function ToPrimitive(t){var e,r,n;if(Q(t)){return t}r=t.valueOf;if(N(r)){e=r.call(t);if(Q(e)){return e}}n=t.toString;if(N(n)){e=n.call(t);if(Q(e)){return e}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return r(t)},ToUint32:function ToUint32(t){return t>>>0}};var tt=function Empty(){};W(a,{bind:function bind(t){var e=this;if(!N(e)){throw new TypeError("Function.prototype.bind called on incompatible "+e)}var n=s.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=g.call(e,this,h.call(n,s.call(arguments)));if(r(i)===i){return i}return this}return g.call(e,t,h.call(n,s.call(arguments)))};var f=b(0,e.length-n.length);var u=[];for(var l=0;l<f;l++){v.call(u,"$"+l)}a=i("binder","return function ("+y.call(u,",")+"){ return binder.apply(this, arguments); }")(o);if(e.prototype){tt.prototype=e.prototype;a.prototype=new tt;tt.prototype=null}return a}});var et=d.bind(n.hasOwnProperty);var rt=d.bind(n.toString);var nt=d.bind(s);var it=g.bind(s);if(typeof document==="object"&&document&&document.documentElement){try{nt(document.documentElement.childNodes)}catch(at){var ot=nt;var ft=it;nt=function arraySliceIE(t){var e=[];var r=t.length;while(r-- >0){e[r]=t[r]}return ft(e,ot(arguments,1))};it=function arraySliceApplyIE(t,e){return ft(nt(t),e)}}}var ut=d.bind(f.slice);var lt=d.bind(f.split);var st=d.bind(f.indexOf);var ct=d.bind(v);var vt=d.bind(n.propertyIsEnumerable);var pt=d.bind(e.sort);var ht=t.isArray||function isArray(t){return rt(t)==="[object Array]"};var yt=[].unshift(0)!==1;W(e,{unshift:function(){p.apply(this,arguments);return this.length}},yt);W(t,{isArray:ht});var dt=r("a");var gt=dt[0]!=="a"||!(0 in dt);var bt=function properlyBoxed(t){var e=true;var r=true;var n=false;if(t){try{t.call("foo",function(t,r,n){if(typeof n!=="object"){e=false}});t.call([1],function(){"use strict";r=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&e&&r};W(e,{forEach:function forEach(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=-1;var i=_.ToUint32(r.length);var a;if(arguments.length>1){a=arguments[1]}if(!N(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n<i){if(n in r){if(typeof a==="undefined"){t(r[n],n,e)}else{t.call(a,r[n],n,e)}}}}},!bt(e.forEach));W(e,{map:function map(e){var r=_.ToObject(this);var n=gt&&Y(this)?lt(this,""):r;var i=_.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!N(e)){throw new TypeError("Array.prototype.map callback must be a function")}for(var f=0;f<i;f++){if(f in n){if(typeof o==="undefined"){a[f]=e(n[f],f,r)}else{a[f]=e.call(o,n[f],f,r)}}}return a}},!bt(e.map));W(e,{filter:function filter(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!N(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var f=0;f<n;f++){if(f in r){a=r[f];if(typeof o==="undefined"?t(a,f,e):t.call(o,a,f,e)){ct(i,a)}}}return i}},!bt(e.filter));W(e,{every:function every(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);var i;if(arguments.length>1){i=arguments[1]}if(!N(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a<n;a++){if(a in r&&!(typeof i==="undefined"?t(r[a],a,e):t.call(i,r[a],a,e))){return false}}return true}},!bt(e.every));W(e,{some:function some(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);var i;if(arguments.length>1){i=arguments[1]}if(!N(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a<n;a++){if(a in r&&(typeof i==="undefined"?t(r[a],a,e):t.call(i,r[a],a,e))){return true}}return false}},!bt(e.some));var wt=false;if(e.reduce){wt=typeof e.reduce.call("es5",function(t,e,r,n){return n})==="object"}W(e,{reduce:function reduce(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);if(!N(t)){throw new TypeError("Array.prototype.reduce callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduce of empty array with no initial value")}var i=0;var a;if(arguments.length>=2){a=arguments[1]}else{do{if(i in r){a=r[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i<n;i++){if(i in r){a=t(a,r[i],i,e)}}return a}},!wt);var Tt=false;if(e.reduceRight){Tt=typeof e.reduceRight.call("es5",function(t,e,r,n){return n})==="object"}W(e,{reduceRight:function reduceRight(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);if(!N(t)){throw new TypeError("Array.prototype.reduceRight callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduceRight of empty array with no initial value")}var i;var a=n-1;if(arguments.length>=2){i=arguments[1]}else{do{if(a in r){i=r[a--];break}if(--a<0){throw new TypeError("reduceRight of empty array with no initial value")}}while(true)}if(a<0){return i}do{if(a in r){i=t(i,r[a],a,e)}}while(a--);return i}},!Tt);var mt=e.indexOf&&[0,1].indexOf(1,2)!==-1;W(e,{indexOf:function indexOf(t){var e=gt&&Y(this)?lt(this,""):_.ToObject(this);var r=_.ToUint32(e.length);if(r===0){return-1}var n=0;if(arguments.length>1){n=_.ToInteger(arguments[1])}n=n>=0?n:b(0,r+n);for(;n<r;n++){if(n in e&&e[n]===t){return n}}return-1}},mt);var St=e.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;W(e,{lastIndexOf:function lastIndexOf(t){var e=gt&&Y(this)?lt(this,""):_.ToObject(this);var r=_.ToUint32(e.length);if(r===0){return-1}var n=r-1;if(arguments.length>1){n=w(n,_.ToInteger(arguments[1]))}n=n>=0?n:r-m(n);for(;n>=0;n--){if(n in e&&t===e[n]){return n}}return-1}},St);var Dt=function(){var t=[1,2];var e=t.splice();return t.length===2&&ht(e)&&e.length===0}();W(e,{splice:function splice(t,e){if(arguments.length===0){return[]}return c.apply(this,arguments)}},!Dt);var xt=function(){var t={};e.splice.call(t,0,0,1);return t.length===1}();var Et=[0,1,2].splice(0).length===3;W(e,{splice:function splice(t,e){if(arguments.length===0){return[]}var r=arguments;this.length=b(_.ToInteger(this.length),0);if(arguments.length>0&&typeof e!=="number"){r=nt(arguments);if(r.length<2){ct(r,this.length-t)}else{r[1]=_.ToInteger(e)}}return c.apply(this,r)}},!xt||!Et);var Ot=function(){var e=new t(1e5);e[8]="x";e.splice(1,1);return e.indexOf("x")===7}();var It=function(){var t=256;var e=[];e[t]="a";e.splice(t+1,0,"b");return e[t]==="a"}();W(e,{splice:function splice(t,e){var r=_.ToObject(this);var n=[];var i=_.ToUint32(r.length);var a=_.ToInteger(t);var f=a<0?b(i+a,0):w(a,i);var u=arguments.length===0?0:arguments.length===1?i-f:w(b(_.ToInteger(e),0),i-f);var l=0;var s;while(l<u){s=o(f+l);if(et(r,s)){n[l]=r[s]}l+=1}var c=nt(arguments,2);var v=c.length;var p;if(v<u){l=f;var h=i-u;while(l<h){s=o(l+u);p=o(l+v);if(et(r,s)){r[p]=r[s]}else{delete r[p]}l+=1}l=i;var y=i-u+v;while(l>y){delete r[l-1];l-=1}}else if(v>u){l=i-u;while(l>f){s=o(l+u-1);p=o(l+v-1);if(et(r,s)){r[p]=r[s]}else{delete r[p]}l-=1}}l=f;for(var d=0;d<c.length;++d){r[l]=c[d];l+=1}r.length=i-u+v;return n}},!Ot||!It);var jt=e.join;var Nt;try{Nt=Array.prototype.join.call("123",",")!=="1,2,3"}catch(at){Nt=true}if(Nt){W(e,{join:function join(t){var e=typeof t==="undefined"?",":t;return jt.call(Y(this)?lt(this,""):this,e)}},Nt)}var Ft=[1,2].join(undefined)!=="1,2";if(Ft){W(e,{join:function join(t){var e=typeof t==="undefined"?",":t;return jt.call(this,e)}},Ft)}var Ut=function push(t){var e=_.ToObject(this);var r=_.ToUint32(e.length);var n=0;while(n<arguments.length){e[r+n]=arguments[n];n+=1}e.length=r+n;return r+n};var $t=function(){var t={};var e=Array.prototype.push.call(t,undefined);return e!==1||t.length!==1||typeof t[0]!=="undefined"||!et(t,0)}();W(e,{push:function push(t){if(ht(this)){return v.apply(this,arguments)}return Ut.apply(this,arguments)}},$t);var Mt=function(){var t=[];var e=t.push(undefined);return e!==1||t.length!==1||typeof t[0]!=="undefined"||!et(t,0)}();W(e,{push:Ut},Mt);W(e,{slice:function(t,e){var r=Y(this)?lt(this,""):this;return it(r,arguments)}},gt);var Ct=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(e){return false}}return true}();var Pt=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var kt=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();W(e,{sort:function sort(t){if(typeof t==="undefined"){return pt(this)}if(!N(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return pt(this,t)}},Ct||!kt||!Pt);var Rt=!vt({toString:null},"toString");var At=vt(function(){},"prototype");var Jt=!et("x","0");var Yt=function(t){var e=t.constructor;return e&&e.prototype===t};var zt={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true,$width:true,$height:true,$top:true,$localStorage:true};var Zt=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!zt["$"+t]&&et(window,t)&&window[t]!==null&&typeof window[t]==="object"){Yt(window[t])}}catch(e){return true}}return false}();var Gt=function(t){if(typeof window==="undefined"||!Zt){return Yt(t)}try{return Yt(t)}catch(e){return false}};var Ht=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Wt=Ht.length;var Bt=function isArguments(t){return rt(t)==="[object Arguments]"};var Lt=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!ht(t)&&N(t.callee)};var Xt=Bt(arguments)?Bt:Lt;W(r,{keys:function keys(t){var e=N(t);var r=Xt(t);var n=t!==null&&typeof t==="object";var i=n&&Y(t);if(!n&&!e&&!r){throw new TypeError("Object.keys called on a non-object")}var a=[];var f=At&&e;if(i&&Jt||r){for(var u=0;u<t.length;++u){ct(a,o(u))}}if(!r){for(var l in t){if(!(f&&l==="prototype")&&et(t,l)){ct(a,o(l))}}}if(Rt){var s=Gt(t);for(var c=0;c<Wt;c++){var v=Ht[c];if(!(s&&v==="constructor")&&et(t,v)){ct(a,v)}}}return a}});var qt=r.keys&&function(){return r.keys(arguments).length===2}(1,2);var Kt=r.keys&&function(){var t=r.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var Qt=r.keys;W(r,{keys:function keys(t){if(Xt(t)){return Qt(nt(t))}return Qt(t)}},!qt||Kt);var Vt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var _t=new Date(-0x55d318d56a724);var te=new Date(14496624e5);var ee=_t.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var re;var ne;var ie=_t.getTimezoneOffset();if(ie<-720){re=_t.toDateString()!=="Tue Jan 02 -45875";ne=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(te))}else{re=_t.toDateString()!=="Mon Jan 01 -45875";ne=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(te))}var ae=d.bind(Date.prototype.getFullYear);var oe=d.bind(Date.prototype.getMonth);var fe=d.bind(Date.prototype.getDate);var ue=d.bind(Date.prototype.getUTCFullYear);var le=d.bind(Date.prototype.getUTCMonth);var se=d.bind(Date.prototype.getUTCDate);var ce=d.bind(Date.prototype.getUTCDay);var ve=d.bind(Date.prototype.getUTCHours);var pe=d.bind(Date.prototype.getUTCMinutes);var he=d.bind(Date.prototype.getUTCSeconds);var ye=d.bind(Date.prototype.getUTCMilliseconds);var de=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var be=function daysInMonth(t,e){return fe(new Date(e,t,0))};W(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ae(this);if(t<0&&oe(this)>11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ae(this);var e=oe(this);if(t<0&&e>11){return 0}return e},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ae(this);var e=oe(this);var r=fe(this);if(t<0&&e>11){if(e===12){return r}var n=be(0,t+1);return n-r+1}return r},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ue(this);if(t<0&&le(this)>11){return t+1}return t},getUTCMonth:function getUTCMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ue(this);var e=le(this);if(t<0&&e>11){return 0}return e},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ue(this);var e=le(this);var r=se(this);if(t<0&&e>11){if(e===12){return r}var n=be(0,t+1);return n-r+1}return r}},Vt);W(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ce(this);var e=se(this);var r=le(this);var n=ue(this);var i=ve(this);var a=pe(this);var o=he(this);return de[t]+", "+(e<10?"0"+e:e)+" "+ge[r]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Vt||ee);W(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var e=this.getDate();var r=this.getMonth();var n=this.getFullYear();return de[t]+" "+ge[r]+" "+(e<10?"0"+e:e)+" "+n}},Vt||re);if(Vt||ne){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var e=this.getDate();var r=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var f=this.getTimezoneOffset();var u=T(m(f)/60);var l=T(m(f)%60);return de[t]+" "+ge[r]+" "+(e<10?"0"+e:e)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(f>0?"-":"+")+(u<10?"0"+u:u)+(l<10?"0"+l:l)};if(H){r.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var we=-621987552e5;var Te="-000001";var me=Date.prototype.toISOString&&new Date(we).toISOString().indexOf(Te)===-1;var Se=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var De=d.bind(Date.prototype.getTime);W(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(De(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=ue(this);var e=le(this);t+=T(e/12);e=(e%12+12)%12;var r=[e+1,se(this),ve(this),pe(this),he(this)];t=(t<0?"-":t>9999?"+":"")+ut("00000"+m(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<r.length;++n){r[n]=ut("00"+r[n],-2)}return t+"-"+nt(r,0,2).join("-")+"T"+nt(r,2).join(":")+"."+ut("000"+ye(this),-3)+"Z"}},me||Se);var xe=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(we).toJSON().indexOf(Te)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!xe){Date.prototype.toJSON=function toJSON(t){var e=r(this);var n=_.ToPrimitive(e);if(typeof n==="number"&&!isFinite(n)){return null}var i=e.toISOString;if(!N(i)){throw new TypeError("toISOString property is not callable")}return i.call(e)}}var Ee=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var Oe=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));var Ie=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(Ie||Oe||!Ee){var je=S(2,31)-1;var Ne=V(new Date(1970,0,1,0,0,0,je+1).getTime());Date=function(t){var e=function Date(r,n,i,a,f,u,l){var s=arguments.length;var c;if(this instanceof t){var v=u;var p=l;if(Ne&&s>=7&&l>je){var h=T(l/je)*je;var y=T(h/1e3);v+=y;p-=y*1e3}var d=e.parse(r);var g=isNaN(d);c=s===1&&o(r)===r&&!g?new t(d):s>=7?new t(r,n,i,a,f,v,p):s>=6?new t(r,n,i,a,f,v):s>=5?new t(r,n,i,a,f):s>=4?new t(r,n,i,a):s>=3?new t(r,n,i):s>=2?new t(r,n):s>=1?new t(r instanceof t?+r:r):new t}else{c=t.apply(this,arguments)}if(!Q(c)){W(c,{constructor:e},true)}return c};var r=new RegExp("^"+"(\\d{4}|[+-]\\d{6})"+"(?:-(\\d{2})"+"(?:-(\\d{2})"+"(?:"+"T(\\d{2})"+":(\\d{2})"+"(?:"+":(\\d{2})"+"(?:(\\.\\d{1,}))?"+")?"+"("+"Z|"+"(?:"+"([-+])"+"(\\d{2})"+":(\\d{2})"+")"+")?)?)?)?"+"$");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function dayFromMonth(t,e){var r=e>1?1:0;return n[e]+T((t-1969+r)/4)-T((t-1901+r)/100)+T((t-1601+r)/400)+365*(t-1970)};var a=function toUTC(e){var r=0;var n=e;if(Ne&&n>je){var i=T(n/je)*je;var a=T(i/1e3);r+=a;n-=a*1e3}return u(new t(1970,0,1,0,0,r,n))};for(var f in t){if(et(t,f)){e[f]=t[f]}}W(e,{now:t.now,UTC:t.UTC},true);e.prototype=t.prototype;W(e.prototype,{constructor:e},true);var l=function parse(e){var n=r.exec(e);if(n){var o=u(n[1]),f=u(n[2]||1)-1,l=u(n[3]||1)-1,s=u(n[4]||0),c=u(n[5]||0),v=u(n[6]||0),p=T(u(n[7]||0)*1e3),h=Boolean(n[4]&&!n[8]),y=n[9]==="-"?1:-1,d=u(n[10]||0),g=u(n[11]||0),b;var w=c>0||v>0||p>0;if(s<(w?24:25)&&c<60&&v<60&&p<1e3&&f>-1&&f<12&&d<24&&g<60&&l>-1&&l<i(o,f+1)-i(o,f)){b=((i(o,f)+l)*24+s+d*y)*60;b=((b+c+g*y)*60+v)*1e3+p;if(h){b=a(b)}if(-864e13<=b&&b<=864e13){return b}}return NaN}return t.parse.apply(this,arguments)};W(e,{parse:l});return e}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var Fe=l.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(1000000000000000128).toFixed(0)!=="1000000000000000128");var Ue={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,e){var r=-1;var n=e;while(++r<Ue.size){n+=t*Ue.data[r];Ue.data[r]=n%Ue.base;n=T(n/Ue.base)}},divide:function divide(t){var e=Ue.size;var r=0;while(--e>=0){r+=Ue.data[e];Ue.data[e]=T(r/t);r=r%t*Ue.base}},numToString:function numToString(){var t=Ue.size;var e="";while(--t>=0){if(e!==""||t===0||Ue.data[t]!==0){var r=o(Ue.data[t]);if(e===""){e=r}else{e+=ut("0000000",0,7-r.length)+r}}}return e},pow:function pow(t,e,r){return e===0?r:e%2===1?pow(t,e-1,r*t):pow(t*t,e/2,r)},log:function log(t){var e=0;var r=t;while(r>=4096){e+=12;r/=4096}while(r>=2){e+=1;r/=2}return e}};var $e=function toFixed(t){var e,r,n,i,a,f,l,s;e=u(t);e=V(e)?0:T(e);if(e<0||e>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}r=u(this);if(V(r)){return"NaN"}if(r<=-1e21||r>=1e21){return o(r)}n="";if(r<0){n="-";r=-r}i="0";if(r>1e-21){a=Ue.log(r*Ue.pow(2,69,1))-69;f=a<0?r*Ue.pow(2,-a,1):r/Ue.pow(2,a,1);f*=4503599627370496;a=52-a;if(a>0){Ue.multiply(0,f);l=e;while(l>=7){Ue.multiply(1e7,0);l-=7}Ue.multiply(Ue.pow(10,l,1),0);l=a-1;while(l>=23){Ue.divide(1<<23);l-=23}Ue.divide(1<<l);Ue.multiply(1,1);Ue.divide(2);i=Ue.numToString()}else{Ue.multiply(0,f);Ue.multiply(1<<-a,0);i=Ue.numToString()+ut("0.00000000000000000000",2,2+e)}}if(e>0){s=i.length;if(s<=e){i=n+ut("0.0000000000000000000",0,e-s+2)+i}else{i=n+ut(i,0,s-e)+"."+ut(i,s-e)}}else{i=n+i}return i};W(l,{toFixed:$e},Fe);var Me=function(){try{return(-6.9e-11).toExponential(4)!=="-6.9000e-11"}catch(t){return false}}();var Ce=function(){try{1..toExponential(Infinity);1..toExponential(-Infinity);return true}catch(t){return false}}();var Pe=d.bind(l.toExponential);var ke=d.bind(l.toString);var Re=d.bind(l.valueOf);W(l,{toExponential:function toExponential(t){var e=Re(this);if(typeof t==="undefined"){return Pe(e)}var r=_.ToInteger(t);if(V(e)){return"NaN"}if(r<0||r>20){if(!isFinite(r)){throw new RangeError("toExponential() argument must be between 0 and 20")}return Pe(e,r)}var n="";if(e<0){n="-";e=-e}if(e===Infinity){return n+"Infinity"}if(typeof t!=="undefined"&&(r<0||r>20)){throw new RangeError("Fraction digits "+t+" out of range")}var i="";var a=0;var o="";var f="";if(e===0){a=0;r=0;i="0"}else{var u=O(e);a=T(u);var l=0;if(typeof t!=="undefined"){var s=S(10,a-r);l=D(e/s);if(2*e>=(2*l+1)*s){l+=1}if(l>=S(10,r+1)){l/=10;a+=1}}else{r=16;var c=D(S(10,u-a+r));var v=r;while(r-- >0){c=D(S(10,u-a+r));if(m(c*S(10,a-r)-e)<=m(l*S(10,a-v)-e)){v=r;l=c}}}i=ke(l,10);if(typeof t==="undefined"){while(ut(i,-1)==="0"){i=ut(i,0,-1);f+=1}}}if(r!==0){i=ut(i,0,1)+"."+ut(i,1)}if(a===0){o="+";f="0"}else{o=a>0?"+":"-";f=ke(m(a),10)}i+="e"+o+f;return n+i}},Me||Ce);var Ae=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var Je=d.bind(l.toPrecision);W(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?Je(this):Je(this,t)}},Ae);if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var t=typeof/()??/.exec("")[1]==="undefined";var e=S(2,32)-1;f.split=function split(r,n){var i=String(this);if(typeof r==="undefined"&&n===0){return[]}if(!k(r)){return lt(this,r,n)}var a=[];var o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),f=0,u,l,s,c;var p=new RegExp(r.source,o+"g");if(!t){u=new RegExp("^"+p.source+"$(?!\\s)",o)}var h=typeof n==="undefined"?e:_.ToUint32(n);l=p.exec(i);while(l){s=l.index+l[0].length;if(s>f){ct(a,ut(i,f,l.index));if(!t&&l.length>1){l[0].replace(u,function(){for(var t=1;t<arguments.length-2;t++){if(typeof arguments[t]==="undefined"){l[t]=void 0}}})}if(l.length>1&&l.index<i.length){v.apply(a,nt(l,1))}c=l[0].length;f=s;if(a.length>=h){break}}if(p.lastIndex===l.index){p.lastIndex++}l=p.exec(i)}if(f===i.length){if(c||!p.test("")){ct(a,"")}}else{ct(a,ut(i,f))}return a.length>h?nt(a,0,h):a}})()}else if("0".split(void 0,0).length){f.split=function split(t,e){if(typeof t==="undefined"&&e===0){return[]}return lt(this,t,e)}}var Ye=f.replace;var ze=function(){var t=[];"x".replace(/x(.)?/g,function(e,r){ct(t,r)});return t.length===1&&typeof t[0]==="undefined"}();if(!ze){f.replace=function replace(t,e){var r=N(e);var n=k(t)&&/\)[*?]/.test(t.source);if(!r||!n){return Ye.call(this,t,e)}var i=function(r){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(r)||[];t.lastIndex=i;ct(a,arguments[n-2],arguments[n-1]);return e.apply(this,a)};return Ye.call(this,t,i)}}var Ze="".substr&&"0b".substr(-1)!=="b";var Ge=Ze&&d.bind(f.substr);W(f,{substr:function substr(t,e){var r=t;if(t<0){r=b(this.length+t,0)}return Ge(this,r,e)}},Ze);var He="\u180e";var We=/\s/.test(He);var Be="\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff".replace(/\S/g,"");var Le="\u200b";var Xe="["+Be+"]";var qe=new RegExp("^"+Xe+Xe+"*");var Ke=new RegExp(Xe+Xe+"*$");var Qe=f.trim&&(Be.trim()!==""||Le.trim()===""||He.trim()!==(We?"":He));W(f,{trim:function trim(){"use strict";if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(qe,"").replace(Ke,"")}},Qe);var Ve=d.bind(String.prototype.trim);var _e=f.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;W(f,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var e=o(this);var r=o(t);var n=arguments.length>1?u(arguments[1]):NaN;var i=V(n)?Infinity:_.ToInteger(n);var a=w(b(i,0),e.length);var f=r.length;var l=a+f;while(l>0){l=b(0,l-f);var s=st(ut(e,l,a+f),r);if(s!==-1){return l+s}}return-1}},_e);var tr=f.lastIndexOf;W(f,{lastIndexOf:function lastIndexOf(t){return tr.apply(this,arguments)}},f.lastIndexOf.length!==1);var er=/^[-+]?0[xX]/;if(parseInt(Be+"08")!==8||parseInt(Be+"0x16")!==22||(We?parseInt(He+1)!==1:!isNaN(parseInt(He+1)))){parseInt=function(t){return function parseInt(e,r){if(this instanceof parseInt){new t}var n=Ve(String(e));var i=u(r)||(er.test(n)?16:10);return t(n,i)}}(parseInt)}var rr=function(){if(typeof Symbol!=="function"){return false}try{parseInt(Object(Symbol.iterator));return true}catch(t){}try{parseInt(Symbol.iterator);return true}catch(t){}return false}();if(rr){var nr=Symbol.prototype.valueOf;parseInt=function(t){return function parseInt(e,r){if(this instanceof parseInt){new t}var n=typeof e==="symbol";if(!n&&e&&typeof e==="object"){try{nr.call(e);n=true}catch(i){}}if(n){""+e}var a=Ve(String(e));var o=u(r)||(er.test(a)?16:10);return t(a,o)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(e){var r=Ve(String(e));var n=t(r);return n===0&&ut(r,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var ir=function toString(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var t=this.name;if(typeof t==="undefined"){t="Error"}else if(typeof t!=="string"){t=o(t)}var e=this.message;if(typeof e==="undefined"){e=""}else if(typeof e!=="string"){e=o(e)}if(!t){return e}if(!e){return t}return t+": "+e};Error.prototype.toString=ir}if(H){var ar=function(t,e){if(vt(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);if(r.configurable){r.enumerable=false;Object.defineProperty(t,e,r)}}};ar(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}ar(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var or=function toString(){var t="/"+this.source+"/";if(this.global){t+="g"}if(this.ignoreCase){t+="i"}if(this.multiline){t+="m"}return t};RegExp.prototype.toString=or}});
//# sourceMappingURL=es5-shim.map