From 89b5546f952598eded03a7d603caab025cc4ebc8 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 13 Feb 2016 16:29:24 -0800 Subject: [PATCH] v4.5.3 --- CHANGES | 8 ++++++++ README.md | 4 ++-- es5-sham.min.js | 2 +- es5-shim.map | 2 +- es5-shim.min.js | 4 ++-- package.json | 2 +- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index f46d22af..a1663621 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,11 @@ +4.5.3 + - [Fix] Saturday is a day in the week (#386) + - [Robustness] improve Function#bind (#381) + - [Tests] on `node` `v5.6`, `v4.3` + - [Tests] use json3 (#382) + - [Dev Deps] update `eslint`, `@ljharb/eslint-config` + - [Docs] add note about script order (#379) + 4.5.2 - [shim: fix] use `Array#slice`, not `String#slice`, on `String#split` output (#380) diff --git a/README.md b/README.md index dac88dd7..ca2c4f61 100644 --- a/README.md +++ b/README.md @@ -171,8 +171,8 @@ simply `npm install` and `npm test`. ### Example of applying ES compatability shims in a browser project ```html - - + + diff --git a/es5-sham.min.js b/es5-sham.min.js index 2bac8ebe..14a27b3d 100644 --- a/es5-sham.min.js +++ b/es5-sham.min.js @@ -1,7 +1,7 @@ /*! * https://github.com/es-shims/es5-shim * @license es5-shim Copyright 2009-2015 by contributors, MIT License - * see https://github.com/es-shims/es5-shim/blob/v4.5.1/LICENSE + * see https://github.com/es-shims/es5-shim/blob/v4.5.3/LICENSE */ (function(e,t){"use strict";if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){var e=Function.call;var t=Object.prototype;var r=e.bind(t.hasOwnProperty);var n=e.bind(t.propertyIsEnumerable);var o=e.bind(t.toString);var i;var c;var f;var a;var l=r(t,"__defineGetter__");if(l){i=e.bind(t.__defineGetter__);c=e.bind(t.__defineSetter__);f=e.bind(t.__lookupGetter__);a=e.bind(t.__lookupSetter__)}if(!Object.getPrototypeOf){Object.getPrototypeOf=function getPrototypeOf(e){var r=e.__proto__;if(r||r===null){return r}else if(o(e.constructor)==="[object Function]"){return e.constructor.prototype}else if(e instanceof Object){return t}else{return null}}}var u=function doesGetOwnPropertyDescriptorWork(e){try{e.sentinel=0;return Object.getOwnPropertyDescriptor(e,"sentinel").value===0}catch(t){return false}};if(Object.defineProperty){var p=u({});var s=typeof document==="undefined"||u(document.createElement("div"));if(!s||!p){var b=Object.getOwnPropertyDescriptor}}if(!Object.getOwnPropertyDescriptor||b){var O="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function getOwnPropertyDescriptor(e,o){if(typeof e!=="object"&&typeof e!=="function"||e===null){throw new TypeError(O+e)}if(b){try{return b.call(Object,e,o)}catch(i){}}var c;if(!r(e,o)){return c}c={enumerable:n(e,o),configurable:true};if(l){var u=e.__proto__;var p=e!==t;if(p){e.__proto__=t}var s=f(e,o);var y=a(e,o);if(p){e.__proto__=u}if(s||y){if(s){c.get=s}if(y){c.set=y}return c}}c.value=e[o];c.writable=true;return c}}if(!Object.getOwnPropertyNames){Object.getOwnPropertyNames=function getOwnPropertyNames(e){return Object.keys(e)}}if(!Object.create){var y;var d=!({__proto__:null}instanceof Object);var j=function shouldUseActiveX(){if(!document.domain){return false}try{return!!new ActiveXObject("htmlfile")}catch(e){return false}};var v=function getEmptyViaActiveX(){var e;var t;t=new ActiveXObject("htmlfile");t.write("");t.close();e=t.parentWindow.Object.prototype;t=null;return e};var _=function getEmptyViaIFrame(){var e=document.createElement("iframe");var t=document.body||document.documentElement;var r;e.style.display="none";t.appendChild(e);e.src="javascript:";r=e.contentWindow.Object.prototype;t.removeChild(e);e=null;return r};if(d||typeof document==="undefined"){y=function(){return{__proto__:null}}}else{y=function(){var e=j()?v():_();delete e.constructor;delete e.hasOwnProperty;delete e.propertyIsEnumerable;delete e.isPrototypeOf;delete e.toLocaleString;delete e.toString;delete e.valueOf;var t=function Empty(){};t.prototype=e;y=function(){return new t};return new t}}Object.create=function create(e,t){var r;var n=function Type(){};if(e===null){r=y()}else{if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("Object prototype may only be an Object or null")}n.prototype=e;r=new n;r.__proto__=e}if(t!==void 0){Object.defineProperties(r,t)}return r}}var w=function doesDefinePropertyWork(e){try{Object.defineProperty(e,"sentinel",{});return"sentinel"in e}catch(t){return false}};if(Object.defineProperty){var m=w({});var P=typeof document==="undefined"||w(document.createElement("div"));if(!m||!P){var E=Object.defineProperty,h=Object.defineProperties}}if(!Object.defineProperty||E){var g="Property description must be an object: ";var z="Object.defineProperty called on non-object: ";var T="getters & setters can not be defined on this javascript engine";Object.defineProperty=function defineProperty(e,r,n){if(typeof e!=="object"&&typeof e!=="function"||e===null){throw new TypeError(z+e)}if(typeof n!=="object"&&typeof n!=="function"||n===null){throw new TypeError(g+n)}if(E){try{return E.call(Object,e,r,n)}catch(o){}}if("value"in n){if(l&&(f(e,r)||a(e,r))){var u=e.__proto__;e.__proto__=t;delete e[r];e[r]=n.value;e.__proto__=u}else{e[r]=n.value}}else{if(!l&&("get"in n||"set"in n)){throw new TypeError(T)}if("get"in n){i(e,r,n.get)}if("set"in n){c(e,r,n.set)}}return e}}if(!Object.defineProperties||h){Object.defineProperties=function defineProperties(e,t){if(h){try{return h.call(Object,e,t)}catch(r){}}Object.keys(t).forEach(function(r){if(r!=="__proto__"){Object.defineProperty(e,r,t[r])}});return e}}if(!Object.seal){Object.seal=function seal(e){if(Object(e)!==e){throw new TypeError("Object.seal can only be called on Objects.")}return e}}if(!Object.freeze){Object.freeze=function freeze(e){if(Object(e)!==e){throw new TypeError("Object.freeze can only be called on Objects.")}return e}}try{Object.freeze(function(){})}catch(x){Object.freeze=function(e){return function freeze(t){if(typeof t==="function"){return t}else{return e(t)}}}(Object.freeze)}if(!Object.preventExtensions){Object.preventExtensions=function preventExtensions(e){if(Object(e)!==e){throw new TypeError("Object.preventExtensions can only be called on Objects.")}return e}}if(!Object.isSealed){Object.isSealed=function isSealed(e){if(Object(e)!==e){throw new TypeError("Object.isSealed can only be called on Objects.")}return false}}if(!Object.isFrozen){Object.isFrozen=function isFrozen(e){if(Object(e)!==e){throw new TypeError("Object.isFrozen can only be called on Objects.")}return false}}if(!Object.isExtensible){Object.isExtensible=function isExtensible(e){if(Object(e)!==e){throw new TypeError("Object.isExtensible can only be called on Objects.")}var t="";while(r(e,t)){t+="?"}e[t]=true;var n=r(e,t);delete e[t];return n}}}); //# sourceMappingURL=es5-sham.map diff --git a/es5-shim.map b/es5-shim.map index c4fe9b2e..8f4dd4c8 100644 --- a/es5-shim.map +++ b/es5-shim.map @@ -1 +1 @@ -{"version":3,"sources":["es5-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","$Array","Array","ArrayPrototype","prototype","$Object","Object","ObjectPrototype","FunctionPrototype","Function","$String","String","StringPrototype","$Number","Number","NumberPrototype","array_slice","slice","array_splice","splice","array_push","push","array_unshift","unshift","array_concat","concat","call","apply","max","Math","min","to_string","toString","hasToStringTag","Symbol","toStringTag","isCallable","fnToStr","tryFunctionObject","value","e","fnClass","genClass","strClass","isRegex","regexExec","RegExp","exec","tryRegexExec","regexClass","isString","strValue","valueOf","tryStringObject","stringClass","supportsDescriptors","defineProperty","obj","enumerable","_","x","defineProperties","has","object","name","method","forceAssign","configurable","writable","map","hasOwnProperty","isPrimitive","input","type","isActualNaN","isNaN","ES","ToInteger","num","n","floor","abs","ToPrimitive","val","toStr","TypeError","ToObject","o","ToUint32","Empty","bind","that","target","args","arguments","bound","binder","result","boundLength","length","boundArgs","i","join","owns","arraySlice","arraySliceApply","strSlice","strSplit","split","strIndexOf","indexOf","pushCall","isEnum","propertyIsEnumerable","arraySort","sort","isArray","hasUnshiftReturnValueBug","boxedString","splitString","properlyBoxesContext","properlyBoxed","properlyBoxesNonStrict","properlyBoxesStrict","threwException","__","context","forEach","callbackfn","self","T","filter","every","some","reduceCoercesToObject","reduce","___","list","reduceRightCoercesToObject","reduceRight","hasFirefox2IndexOfBug","searchElement","hasFirefox2LastIndexOfBug","lastIndexOf","spliceNoopReturnsEmptyArray","a","start","deleteCount","spliceWorksWithEmptyObject","spliceWorksWithLargeSparseArrays","arr","spliceWorksWithSmallSparseArrays","O","A","len","relativeStart","actualStart","actualDeleteCount","k","from","items","itemCount","to","originalJoin","hasStringJoinBug","separator","sep","hasJoinUndefinedBug","undefined","pushShim","item","pushIsNotGeneric","pushUndefinedIsWeird","end","sortIgnoresNonFunctions","sortThrowsOnRegex","sortIgnoresUndefined","compareFn","hasDontEnumBug","hasProtoEnumBug","hasStringEnumBug","equalsConstructorPrototype","ctor","constructor","blacklistedKeys","$window","$console","$parent","$self","$frame","$frames","$frameElement","$webkitIndexedDB","$webkitStorageInfo","$external","hasAutomationEqualityBug","window","equalsConstructorPrototypeIfNotBuggy","dontEnums","dontEnumsLength","isStandardArguments","isArguments","isLegacyArguments","callee","keys","isFn","isArgs","isObject","isStr","theKeys","skipProto","skipConstructor","j","dontEnum","keysWorksWithArguments","keysHasArgumentsLengthBug","argKeys","originalKeys","hasNegativeMonthYearBug","Date","getUTCMonth","aNegativeTestDate","aPositiveTestDate","hasToUTCStringFormatBug","toUTCString","hasToDateStringFormatBug","hasToStringFormatBug","timeZoneOffset","getTimezoneOffset","toDateString","test","originalGetFullYear","getFullYear","originalGetMonth","getMonth","originalGetDate","getDate","originalGetUTCFullYear","getUTCFullYear","originalGetUTCMonth","originalGetUTCDate","getUTCDate","originalGetUTCDay","getUTCDay","originalGetUTCHours","getUTCHours","originalGetUTCMinutes","getUTCMinutes","originalGetUTCSeconds","getUTCSeconds","originalGetUTCMilliseconds","getUTCMilliseconds","dayName","monthName","daysInMonth","month","year","date","days","day","hour","minute","second","getDay","getHours","getMinutes","getSeconds","timezoneOffset","hoursOffset","minutesOffset","negativeDate","negativeYearString","hasNegativeDateBug","toISOString","hasSafari51DateBug","isFinite","RangeError","dateToJSONIsSupported","toJSON","NaN","key","tv","toISO","supportsExtendedYears","parse","acceptsInvalidDates","doesNotParseY2KNewYear","maxSafeUnsigned32Bit","pow","hasSafariSignedIntBug","getTime","NativeDate","DateShim","Y","M","D","h","m","s","ms","seconds","millis","msToShift","sToShift","isoDateExpression","months","dayFromMonth","t","toUTC","now","UTC","parseShim","string","match","millisecond","isLocalTime","Boolean","signOffset","hourOffset","minuteOffset","hasMinutesOrSecondsOrMilliseconds","hasToFixedBugs","toFixed","toFixedHelpers","base","size","data","multiply","c","c2","divide","numToString","acc","log","x2","toFixedShim","fractionDigits","f","z","hasToPrecisionUndefinedBug","toPrecision","originalToPrecision","precision","compliantExecNpcg","maxSafe32BitInt","limit","output","flags","ignoreCase","multiline","unicode","sticky","lastLastIndex","separator2","lastIndex","lastLength","separatorCopy","source","splitLimit","index","replace","str_replace","replaceReportsGroupsCorrectly","groups","group","searchValue","replaceValue","hasCapturingGroups","wrappedReplaceValue","originalLastIndex","string_substr","substr","hasNegativeSubstrBug","normalizedStart","ws","zeroWidth","wsRegexChars","trimBeginRegexp","trimEndRegexp","hasTrimWhitespaceBug","trim","hasLastIndexBug","searchString","S","searchStr","numPos","pos","Infinity","searchLen","originalLastIndexOf","parseInt","origParseInt","hexRegex","str","radix","defaultedRadix","parseFloat","origParseFloat","inputString","errorToStringShim","msg","message","Error","ensureNonEnumerable","prop","desc","getOwnPropertyDescriptor","regexToString","global"],"mappings":";;;;;CAaC,SAAUA,EAAMC,GACb,YAGA,UAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE5CD,OAAOD,OACJ,UAAWG,WAAY,SAAU,CAIpCC,OAAOD,QAAUH,QACd,CAEHD,EAAKM,cAAgBL,OAE3BM,KAAM,WAcR,GAAIC,GAASC,KACb,IAAIC,GAAiBF,EAAOG,SAC5B,IAAIC,GAAUC,MACd,IAAIC,GAAkBF,EAAQD,SAC9B,IAAII,GAAoBC,SAASL,SACjC,IAAIM,GAAUC,MACd,IAAIC,GAAkBF,EAAQN,SAC9B,IAAIS,GAAUC,MACd,IAAIC,GAAkBF,EAAQT,SAC9B,IAAIY,GAA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O,IAEX,MAAOA,GAGX3V,QAAO1C,UAAU4B,SAAWuX"} \ No newline at end of file +{"version":3,"sources":["es5-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","$Array","Array","ArrayPrototype","prototype","$Object","Object","ObjectPrototype","$Function","Function","FunctionPrototype","$String","String","StringPrototype","$Number","Number","NumberPrototype","array_slice","slice","array_splice","splice","array_push","push","array_unshift","unshift","array_concat","concat","array_join","join","call","apply","max","Math","min","to_string","toString","hasToStringTag","Symbol","toStringTag","isCallable","fnToStr","tryFunctionObject","value","e","fnClass","genClass","strClass","isRegex","regexExec","RegExp","exec","tryRegexExec","regexClass","isString","strValue","valueOf","tryStringObject","stringClass","supportsDescriptors","defineProperty","obj","enumerable","_","x","defineProperties","has","object","name","method","forceAssign","configurable","writable","map","hasOwnProperty","isPrimitive","input","type","isActualNaN","isNaN","ES","ToInteger","num","n","floor","abs","ToPrimitive","val","toStr","TypeError","ToObject","o","ToUint32","Empty","bind","that","target","args","arguments","bound","binder","result","boundLength","length","boundArgs","i","owns","arraySlice","arraySliceApply","strSlice","strSplit","split","strIndexOf","indexOf","pushCall","isEnum","propertyIsEnumerable","arraySort","sort","isArray","hasUnshiftReturnValueBug","boxedString","splitString","properlyBoxesContext","properlyBoxed","properlyBoxesNonStrict","properlyBoxesStrict","threwException","__","context","forEach","callbackfn","self","T","filter","every","some","reduceCoercesToObject","reduce","___","list","reduceRightCoercesToObject","reduceRight","hasFirefox2IndexOfBug","searchElement","hasFirefox2LastIndexOfBug","lastIndexOf","spliceNoopReturnsEmptyArray","a","start","deleteCount","spliceWorksWithEmptyObject","spliceWorksWithLargeSparseArrays","arr","spliceWorksWithSmallSparseArrays","O","A","len","relativeStart","actualStart","actualDeleteCount","k","from","items","itemCount","to","maxK","minK","originalJoin","hasStringJoinBug","separator","sep","hasJoinUndefinedBug","undefined","pushShim","item","pushIsNotGeneric","pushUndefinedIsWeird","end","sortIgnoresNonFunctions","sortThrowsOnRegex","sortIgnoresUndefined","compareFn","hasDontEnumBug","hasProtoEnumBug","hasStringEnumBug","equalsConstructorPrototype","ctor","constructor","blacklistedKeys","$window","$console","$parent","$self","$frame","$frames","$frameElement","$webkitIndexedDB","$webkitStorageInfo","$external","hasAutomationEqualityBug","window","equalsConstructorPrototypeIfNotBuggy","dontEnums","dontEnumsLength","isStandardArguments","isArguments","isLegacyArguments","callee","keys","isFn","isArgs","isObject","isStr","theKeys","skipProto","skipConstructor","j","dontEnum","keysWorksWithArguments","keysHasArgumentsLengthBug","argKeys","originalKeys","hasNegativeMonthYearBug","Date","getUTCMonth","aNegativeTestDate","aPositiveTestDate","hasToUTCStringFormatBug","toUTCString","hasToDateStringFormatBug","hasToStringFormatBug","timeZoneOffset","getTimezoneOffset","toDateString","test","originalGetFullYear","getFullYear","originalGetMonth","getMonth","originalGetDate","getDate","originalGetUTCFullYear","getUTCFullYear","originalGetUTCMonth","originalGetUTCDate","getUTCDate","originalGetUTCDay","getUTCDay","originalGetUTCHours","getUTCHours","originalGetUTCMinutes","getUTCMinutes","originalGetUTCSeconds","getUTCSeconds","originalGetUTCMilliseconds","getUTCMilliseconds","dayName","monthName","daysInMonth","month","year","date","days","day","hour","minute","second","getDay","getHours","getMinutes","getSeconds","timezoneOffset","hoursOffset","minutesOffset","negativeDate","negativeYearString","hasNegativeDateBug","toISOString","hasSafari51DateBug","isFinite","RangeError","dateToJSONIsSupported","toJSON","NaN","key","tv","toISO","supportsExtendedYears","parse","acceptsInvalidDates","doesNotParseY2KNewYear","maxSafeUnsigned32Bit","pow","hasSafariSignedIntBug","getTime","global","NativeDate","DateShim","Y","M","D","h","m","s","ms","seconds","millis","msToShift","sToShift","isoDateExpression","months","dayFromMonth","t","toUTC","now","UTC","parseShim","string","match","millisecond","isLocalTime","Boolean","signOffset","hourOffset","minuteOffset","hasMinutesOrSecondsOrMilliseconds","hasToFixedBugs","toFixed","toFixedHelpers","base","size","data","multiply","c","c2","divide","numToString","acc","log","x2","toFixedShim","fractionDigits","f","z","hasToPrecisionUndefinedBug","toPrecision","originalToPrecision","precision","compliantExecNpcg","maxSafe32BitInt","limit","output","flags","ignoreCase","multiline","unicode","sticky","lastLastIndex","separator2","lastIndex","lastLength","separatorCopy","source","splitLimit","index","replace","str_replace","replaceReportsGroupsCorrectly","groups","group","searchValue","replaceValue","hasCapturingGroups","wrappedReplaceValue","originalLastIndex","string_substr","substr","hasNegativeSubstrBug","normalizedStart","ws","zeroWidth","wsRegexChars","trimBeginRegexp","trimEndRegexp","hasTrimWhitespaceBug","trim","hasLastIndexBug","searchString","S","searchStr","numPos","pos","Infinity","searchLen","originalLastIndexOf","parseInt","origParseInt","hexRegex","str","radix","defaultedRadix","parseFloat","origParseFloat","inputString","errorToStringShim","msg","message","Error","ensureNonEnumerable","prop","desc","getOwnPropertyDescriptor","regexToString"],"mappings":";;;;;CAaC,SAAUA,EAAMC,GACb,YAGA,UAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE5CD,OAAOD,OACJ,UAAWG,WAAY,SAAU,CAIpCC,OAAOD,QAAUH,QACd,CAEHD,EAAKM,cAAgBL,OAE3BM,KAAM,WAcR,GAAIC,GAASC,KACb,IAAIC,GAAiBF,EAAOG,SAC5B,IAAIC,GAAUC,MACd,IAAIC,GAAkBF,EAAQD,SAC9B,IAAII,GAAYC,QAChB,IAAIC,GAAoBF,EAAUJ,SAClC,IAAIO,GAAUC,MACd,IAAIC,GAAkBF,EAAQP,SAC9B,IAAIU,GAAUC,MACd,IAAIC,GAAkBF,EAAQV,SAC9B,IAAIa,GAAcd,EAAee,KACjC,IAAIC,GAAehB,EAAeiB,MAClC,IAAIC,GAAalB,EAAemB,IAChC,IAAIC,GAAgBpB,EAAeqB,OACnC,IAAIC,GAAetB,EAAeuB,MAClC,IAAIC,GAAaxB,EAAeyB,IAChC,IAAIC,GAAOnB,EAAkBmB,IAC7B,IAAIC,GAAQpB,EAAkBoB,KAC9B,IAAIC,GAAMC,KAAKD,GACf,IAAIE,GAAMD,KAAKC,GAGf,IAAIC,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@@ -1,7 +1,7 @@ /*! * https://github.com/es-shims/es5-shim * @license es5-shim Copyright 2009-2015 by contributors, MIT License - * see https://github.com/es-shims/es5-shim/blob/v4.5.1/LICENSE + * see https://github.com/es-shims/es5-shim/blob/v4.5.3/LICENSE */ -(function(t,r){"use strict";if(typeof define==="function"&&define.amd){define(r)}else if(typeof exports==="object"){module.exports=r()}else{t.returnExports=r()}})(this,function(){var t=Array;var r=t.prototype;var e=Object;var n=e.prototype;var i=Function.prototype;var a=String;var o=a.prototype;var u=Number;var f=u.prototype;var s=r.slice;var l=r.splice;var v=r.push;var c=r.unshift;var h=r.concat;var p=i.call;var g=i.apply;var y=Math.max;var d=Math.min;var w=n.toString;var b=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var m;var T=Function.prototype.toString,D=function tryFunctionObject(t){try{T.call(t);return true}catch(r){return false}},x="[object Function]",S="[object GeneratorFunction]";m=function isCallable(t){if(typeof t!=="function"){return false}if(b){return D(t)}var r=w.call(t);return r===x||r===S};var O;var E=RegExp.prototype.exec,j=function tryRegexExec(t){try{E.call(t);return true}catch(r){return false}},I="[object RegExp]";O=function isRegex(t){if(typeof t!=="object"){return false}return b?j(t):w.call(t)===I};var M;var U=String.prototype.valueOf,F=function tryStringObject(t){try{U.call(t);return true}catch(r){return false}},N="[object String]";M=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return b?F(t):w.call(t)===N};var k=e.defineProperty&&function(){try{var t={};e.defineProperty(t,"x",{enumerable:false,value:t});for(var r in t){return false}return t.x===t}catch(n){return false}}();var C=function(t){var r;if(k){r=function(t,r,n,i){if(!i&&r in t){return}e.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:n})}}else{r=function(t,r,e,n){if(!n&&r in t){return}t[r]=e}}return function defineProperties(e,n,i){for(var a in n){if(t.call(n,a)){r(e,a,n[a],i)}}}}(n.hasOwnProperty);var R=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var A=u.isNaN||function(t){return t!==t};var P={ToInteger:function ToInteger(t){var r=+t;if(A(r)){r=0}else if(r!==0&&r!==1/0&&r!==-(1/0)){r=(r>0||-1)*Math.floor(Math.abs(r))}return r},ToPrimitive:function ToPrimitive(t){var r,e,n;if(R(t)){return t}e=t.valueOf;if(m(e)){r=e.call(t);if(R(r)){return r}}n=t.toString;if(m(n)){r=n.call(t);if(R(r)){return r}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return e(t)},ToUint32:function ToUint32(t){return t>>>0}};var $=function Empty(){};C(i,{bind:function bind(t){var r=this;if(!m(r)){throw new TypeError("Function.prototype.bind called on incompatible "+r)}var n=s.call(arguments,1);var i;var a=function(){if(this instanceof i){var a=r.apply(this,h.call(n,s.call(arguments)));if(e(a)===a){return a}return this}else{return r.apply(t,h.call(n,s.call(arguments)))}};var o=y(0,r.length-n.length);var u=[];for(var f=0;f1){a=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n1){o=arguments[1]}if(!m(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u1){o=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i=2){i=arguments[1]}else{do{if(a in e){i=e[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 e){i=t(i,e[a],a,r)}}while(a--);return i}},!rt);var et=r.indexOf&&[0,1].indexOf(1,2)!==-1;C(r,{indexOf:function indexOf(t){var r=V&&M(this)?B(this,""):P.ToObject(this);var e=P.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=P.ToInteger(arguments[1])}n=n>=0?n:y(0,e+n);for(;n1){n=d(n,P.ToInteger(arguments[1]))}n=n>=0?n:e-Math.abs(n);for(;n>=0;n--){if(n in r&&t===r[n]){return n}}return-1}},nt);var it=function(){var t=[1,2];var r=t.splice();return t.length===2&&q(r)&&r.length===0}();C(r,{splice:function splice(t,r){if(arguments.length===0){return[]}else{return l.apply(this,arguments)}}},!it);var at=function(){var t={};r.splice.call(t,0,0,1);return t.length===1}();C(r,{splice:function splice(t,r){if(arguments.length===0){return[]}var e=arguments;this.length=y(P.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=Z(arguments);if(e.length<2){W(e,this.length-t)}else{e[1]=P.ToInteger(r)}}return l.apply(this,e)}},!at);var ot=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var ut=function(){var t=256;var r=[];r[t]="a";r.splice(t+1,0,"b");return r[t]==="a"}();C(r,{splice:function splice(t,r){var e=P.ToObject(this);var n=[];var i=P.ToUint32(e.length);var o=P.ToInteger(t);var u=o<0?y(i+o,0):d(o,i);var f=d(y(P.ToInteger(r),0),i-u);var s=0;var l;while(si-f+c){delete e[s-1];s-=1}}else if(c>f){s=i-f;while(s>u){l=a(s+f-1);h=a(s+c-1);if(J(e,l)){e[h]=e[l]}else{delete e[h]}s-=1}}s=u;for(var p=0;p=0&&!q(t)&&m(t.callee)};var Mt=jt(arguments)?jt:It;C(e,{keys:function keys(t){var r=m(t);var e=Mt(t);var n=t!==null&&typeof t==="object";var i=n&&M(t);if(!n&&!r&&!e){throw new TypeError("Object.keys called on a non-object")}var o=[];var u=bt&&r;if(i&&mt||e){for(var f=0;f11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Yt(this);var r=Zt(this);if(t<0&&r>11){return 0}return r},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Yt(this);var r=Zt(this);var e=zt(this);if(t<0&&r>11){if(r===12){return e}var n=_t(0,t+1);return n-e+1}return e},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Gt(this);if(t<0&&Bt(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=Gt(this);var r=Bt(this);if(t<0&&r>11){return 0}return r},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Gt(this);var r=Bt(this);var e=Ht(this);if(t<0&&r>11){if(r===12){return e}var n=_t(0,t+1);return n-e+1}return e}},kt);C(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Wt(this);var r=Ht(this);var e=Bt(this);var n=Gt(this);var i=Lt(this);var a=Xt(this);var o=qt(this);return Qt[t]+", "+(r<10?"0"+r:r)+" "+Vt[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},kt||At);C(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();return Qt[t]+" "+Vt[e]+" "+(r<10?"0"+r:r)+" "+n}},kt||Pt);if(kt||$t){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var u=this.getTimezoneOffset();var f=Math.floor(Math.abs(u)/60);var s=Math.floor(Math.abs(u)%60);return Qt[t]+" "+Vt[e]+" "+(r<10?"0"+r:r)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(s<10?"0"+s:s)};if(k){e.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var tr=-621987552e5;var rr="-000001";var er=Date.prototype.toISOString&&new Date(tr).toISOString().indexOf(rr)===-1;var nr=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";C(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=Gt(this);var r=Bt(this);t+=Math.floor(r/12);r=(r%12+12)%12;var e=[r+1,Ht(this),Lt(this),Xt(this),qt(this)];t=(t<0?"-":t>9999?"+":"")+G("00000"+Math.abs(t),0<=t&&t<=9999?-4:-6);for(var n=0;n=7&&s>fr){var p=Math.floor(s/fr)*fr;var g=Math.floor(p/1e3);c+=g;h-=g*1e3}v=l===1&&a(e)===e?new t(r.parse(e)):l>=7?new t(e,n,i,o,u,c,h):l>=6?new t(e,n,i,o,u,c):l>=5?new t(e,n,i,o,u):l>=4?new t(e,n,i,o):l>=3?new t(e,n,i):l>=2?new t(e,n):l>=1?new t(e):new t}else{v=t.apply(this,arguments)}if(!R(v)){C(v,{constructor:r},true)}return v};var e=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,r){var e=r>1?1:0;return n[r]+Math.floor((t-1969+e)/4)-Math.floor((t-1901+e)/100)+Math.floor((t-1601+e)/400)+365*(t-1970)};var o=function toUTC(r){var e=0;var n=r;if(sr&&n>fr){var i=Math.floor(n/fr)*fr;var a=Math.floor(i/1e3);e+=a;n-=a*1e3}return u(new t(1970,0,1,0,0,e,n))};for(var f in t){if(J(t,f)){r[f]=t[f]}}C(r,{now:t.now,UTC:t.UTC},true);r.prototype=t.prototype;C(r.prototype,{constructor:r},true);var s=function parse(r){var n=e.exec(r);if(n){var a=u(n[1]),f=u(n[2]||1)-1,s=u(n[3]||1)-1,l=u(n[4]||0),v=u(n[5]||0),c=u(n[6]||0),h=Math.floor(u(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),g=n[9]==="-"?1:-1,y=u(n[10]||0),d=u(n[11]||0),w;var b=v>0||c>0||h>0;if(l<(b?24:25)&&v<60&&c<60&&h<1e3&&f>-1&&f<12&&y<24&&d<60&&s>-1&&s=0){e+=vr.data[r];vr.data[r]=Math.floor(e/t);e=e%t*vr.base}},numToString:function numToString(){var t=vr.size;var r="";while(--t>=0){if(r!==""||t===0||vr.data[t]!==0){var e=a(vr.data[t]);if(r===""){r=e}else{r+=G("0000000",0,7-e.length)+e}}}return r},pow:function pow(t,r,e){return r===0?e:r%2===1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log:function log(t){var r=0;var e=t;while(e>=4096){r+=12;e/=4096}while(e>=2){r+=1;e/=2}return r}};var cr=function toFixed(t){var r,e,n,i,o,f,s,l;r=u(t);r=A(r)?0:Math.floor(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=u(this);if(A(e)){return"NaN"}if(e<=-1e21||e>=1e21){return a(e)}n="";if(e<0){n="-";e=-e}i="0";if(e>1e-21){o=vr.log(e*vr.pow(2,69,1))-69;f=o<0?e*vr.pow(2,-o,1):e/vr.pow(2,o,1);f*=4503599627370496;o=52-o;if(o>0){vr.multiply(0,f);s=r;while(s>=7){vr.multiply(1e7,0);s-=7}vr.multiply(vr.pow(10,s,1),0);s=o-1;while(s>=23){vr.divide(1<<23);s-=23}vr.divide(1<0){l=i.length;if(l<=r){i=n+G("0.0000000000000000000",0,r-l+2)+i}else{i=n+G(i,0,l-r)+"."+G(i,l-r)}}else{i=n+i}return i};C(f,{toFixed:cr},lr);var hr=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var pr=f.toPrecision;C(f,{toPrecision:function toPrecision(t){return typeof t==="undefined"?pr.call(this):pr.call(this,t)}},hr);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 r=Math.pow(2,32)-1;o.split=function(e,n){var i=String(this);if(typeof e==="undefined"&&n===0){return[]}if(!O(e)){return B(this,e,n)}var a=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f,s,l,c;var h=new RegExp(e.source,o+"g");if(!t){f=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?r:P.ToUint32(n);s=h.exec(i);while(s){l=s.index+s[0].length;if(l>u){W(a,G(i,u,s.index));if(!t&&s.length>1){s[0].replace(f,function(){for(var t=1;t1&&s.index=p){break}}if(h.lastIndex===s.index){h.lastIndex++}s=h.exec(i)}if(u===i.length){if(c||!h.test("")){W(a,"")}}else{W(a,G(i,u))}return a.length>p?G(a,0,p):a}})()}else if("0".split(void 0,0).length){o.split=function split(t,r){if(typeof t==="undefined"&&r===0){return[]}return B(this,t,r)}}var gr=o.replace;var yr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){W(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!yr){o.replace=function replace(t,r){var e=m(r);var n=O(t)&&/\)[*?]/.test(t.source);if(!e||!n){return gr.call(this,t,r)}else{var i=function(e){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(e)||[];t.lastIndex=i;W(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return gr.call(this,t,i)}}}var dr=o.substr;var wr="".substr&&"0b".substr(-1)!=="b";C(o,{substr:function substr(t,r){var e=t;if(t<0){e=y(this.length+t,0)}return dr.call(this,e,r)}},wr);var br=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003"+"\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028"+"\u2029\ufeff";var mr="\u200b";var Tr="["+br+"]";var Dr=new RegExp("^"+Tr+Tr+"*");var xr=new RegExp(Tr+Tr+"*$");var Sr=o.trim&&(br.trim()||!mr.trim());C(o,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return a(this).replace(Dr,"").replace(xr,"")}},Sr);var Or=p.bind(String.prototype.trim);var Er=o.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;C(o,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var r=a(this);var e=a(t);var n=arguments.length>1?u(arguments[1]):NaN;var i=A(n)?Infinity:P.ToInteger(n);var o=d(y(i,0),r.length);var f=e.length;var s=o+f;while(s>0){s=y(0,s-f);var l=H(G(r,s,o+f),e);if(l!==-1){return s+l}}return-1}},Er);var jr=o.lastIndexOf;C(o,{lastIndexOf:function lastIndexOf(t){return jr.apply(this,arguments)}},o.lastIndexOf.length!==1);if(parseInt(br+"08")!==8||parseInt(br+"0x16")!==22){parseInt=function(t){var r=/^[\-+]?0[xX]/;return function parseInt(e,n){var i=Or(e);var a=u(n)||(r.test(i)?16:10);return t(i,a)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=Or(r);var n=t(e);return n===0&&G(e,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=a(t)}var r=this.message;if(typeof r==="undefined"){r=""}else if(typeof r!=="string"){r=a(r)}if(!t){return r}if(!r){return t}return t+": "+r};Error.prototype.toString=Ir}if(k){var Mr=function(t,r){if(L(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);e.enumerable=false;Object.defineProperty(t,r,e)}};Mr(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Mr(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Ur=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=Ur}}); +(function(t,r){"use strict";if(typeof define==="function"&&define.amd){define(r)}else if(typeof exports==="object"){module.exports=r()}else{t.returnExports=r()}})(this,function(){var t=Array;var r=t.prototype;var e=Object;var n=e.prototype;var i=Function;var a=i.prototype;var o=String;var u=o.prototype;var f=Number;var s=f.prototype;var l=r.slice;var v=r.splice;var c=r.push;var h=r.unshift;var p=r.concat;var g=r.join;var y=a.call;var d=a.apply;var w=Math.max;var b=Math.min;var m=n.toString;var T=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var D;var x=Function.prototype.toString,S=function tryFunctionObject(t){try{x.call(t);return true}catch(r){return false}},O="[object Function]",E="[object GeneratorFunction]";D=function isCallable(t){if(typeof t!=="function"){return false}if(T){return S(t)}var r=m.call(t);return r===O||r===E};var j;var I=RegExp.prototype.exec,M=function tryRegexExec(t){try{I.call(t);return true}catch(r){return false}},U="[object RegExp]";j=function isRegex(t){if(typeof t!=="object"){return false}return T?M(t):m.call(t)===U};var F;var N=String.prototype.valueOf,k=function tryStringObject(t){try{N.call(t);return true}catch(r){return false}},C="[object String]";F=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return T?k(t):m.call(t)===C};var R=e.defineProperty&&function(){try{var t={};e.defineProperty(t,"x",{enumerable:false,value:t});for(var r in t){return false}return t.x===t}catch(n){return false}}();var A=function(t){var r;if(R){r=function(t,r,n,i){if(!i&&r in t){return}e.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:n})}}else{r=function(t,r,e,n){if(!n&&r in t){return}t[r]=e}}return function defineProperties(e,n,i){for(var a in n){if(t.call(n,a)){r(e,a,n[a],i)}}}}(n.hasOwnProperty);var P=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var $=f.isNaN||function(t){return t!==t};var J={ToInteger:function ToInteger(t){var r=+t;if($(r)){r=0}else if(r!==0&&r!==1/0&&r!==-(1/0)){r=(r>0||-1)*Math.floor(Math.abs(r))}return r},ToPrimitive:function ToPrimitive(t){var r,e,n;if(P(t)){return t}e=t.valueOf;if(D(e)){r=e.call(t);if(P(r)){return r}}n=t.toString;if(D(n)){r=n.call(t);if(P(r)){return r}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return e(t)},ToUint32:function ToUint32(t){return t>>>0}};var Y=function Empty(){};A(a,{bind:function bind(t){var r=this;if(!D(r)){throw new TypeError("Function.prototype.bind called on incompatible "+r)}var n=l.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=d.call(r,this,p.call(n,l.call(arguments)));if(e(i)===i){return i}return this}else{return d.call(r,t,p.call(n,l.call(arguments)))}};var u=w(0,r.length-n.length);var f=[];for(var s=0;s1){a=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n1){o=arguments[1]}if(!D(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u1){o=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u1){i=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a1){i=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i=2){i=arguments[1]}else{do{if(a in e){i=e[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 e){i=t(i,e[a],a,r)}}while(a--);return i}},!nt);var it=r.indexOf&&[0,1].indexOf(1,2)!==-1;A(r,{indexOf:function indexOf(t){var r=tt&&F(this)?W(this,""):J.ToObject(this);var e=J.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=J.ToInteger(arguments[1])}n=n>=0?n:w(0,e+n);for(;n1){n=b(n,J.ToInteger(arguments[1]))}n=n>=0?n:e-Math.abs(n);for(;n>=0;n--){if(n in r&&t===r[n]){return n}}return-1}},at);var ot=function(){var t=[1,2];var r=t.splice();return t.length===2&&Q(r)&&r.length===0}();A(r,{splice:function splice(t,r){if(arguments.length===0){return[]}else{return v.apply(this,arguments)}}},!ot);var ut=function(){var t={};r.splice.call(t,0,0,1);return t.length===1}();A(r,{splice:function splice(t,r){if(arguments.length===0){return[]}var e=arguments;this.length=w(J.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=G(arguments);if(e.length<2){X(e,this.length-t)}else{e[1]=J.ToInteger(r)}}return v.apply(this,e)}},!ut);var ft=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var st=function(){var t=256;var r=[];r[t]="a";r.splice(t+1,0,"b");return r[t]==="a"}();A(r,{splice:function splice(t,r){var e=J.ToObject(this);var n=[];var i=J.ToUint32(e.length);var a=J.ToInteger(t);var u=a<0?w(i+a,0):b(a,i);var f=b(w(J.ToInteger(r),0),i-u);var s=0;var l;while(sg){delete e[s-1];s-=1}}else if(c>f){s=i-f;while(s>u){l=o(s+f-1);h=o(s+c-1);if(Z(e,l)){e[h]=e[l]}else{delete e[h]}s-=1}}s=u;for(var y=0;y=0&&!Q(t)&&D(t.callee)};var Ft=Mt(arguments)?Mt:Ut;A(e,{keys:function keys(t){var r=D(t);var e=Ft(t);var n=t!==null&&typeof t==="object";var i=n&&F(t);if(!n&&!r&&!e){throw new TypeError("Object.keys called on a non-object")}var a=[];var u=Tt&&r;if(i&&Dt||e){for(var f=0;f11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=zt(this);var r=Gt(this);if(t<0&&r>11){return 0}return r},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=zt(this);var r=Gt(this);var e=Bt(this);if(t<0&&r>11){if(r===12){return e}var n=rr(0,t+1);return n-e+1}return e},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Ht(this);if(t<0&&Wt(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=Ht(this);var r=Wt(this);if(t<0&&r>11){return 0}return r},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Ht(this);var r=Wt(this);var e=Lt(this);if(t<0&&r>11){if(r===12){return e}var n=rr(0,t+1);return n-e+1}return e}},Rt);A(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Xt(this);var r=Lt(this);var e=Wt(this);var n=Ht(this);var i=qt(this);var a=Kt(this);var o=Qt(this);return _t[t]+", "+(r<10?"0"+r:r)+" "+tr[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Rt||$t);A(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();return _t[t]+" "+tr[e]+" "+(r<10?"0"+r:r)+" "+n}},Rt||Jt);if(Rt||Yt){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var u=this.getTimezoneOffset();var f=Math.floor(Math.abs(u)/60);var s=Math.floor(Math.abs(u)%60);return _t[t]+" "+tr[e]+" "+(r<10?"0"+r:r)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(s<10?"0"+s:s)};if(R){e.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var er=-621987552e5;var nr="-000001";var ir=Date.prototype.toISOString&&new Date(er).toISOString().indexOf(nr)===-1;var ar=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";A(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=Ht(this);var r=Wt(this);t+=Math.floor(r/12);r=(r%12+12)%12;var e=[r+1,Lt(this),qt(this),Kt(this),Qt(this)];t=(t<0?"-":t>9999?"+":"")+H("00000"+Math.abs(t),0<=t&&t<=9999?-4:-6);for(var n=0;n=7&&s>lr){var p=Math.floor(s/lr)*lr;var g=Math.floor(p/1e3);c+=g;h-=g*1e3}v=l===1&&o(e)===e?new t(r.parse(e)):l>=7?new t(e,n,i,a,u,c,h):l>=6?new t(e,n,i,a,u,c):l>=5?new t(e,n,i,a,u):l>=4?new t(e,n,i,a):l>=3?new t(e,n,i):l>=2?new t(e,n):l>=1?new t(e):new t}else{v=t.apply(this,arguments)}if(!P(v)){A(v,{constructor:r},true)}return v};var e=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,r){var e=r>1?1:0;return n[r]+Math.floor((t-1969+e)/4)-Math.floor((t-1901+e)/100)+Math.floor((t-1601+e)/400)+365*(t-1970)};var a=function toUTC(r){var e=0;var n=r;if(vr&&n>lr){var i=Math.floor(n/lr)*lr;var a=Math.floor(i/1e3);e+=a;n-=a*1e3}return f(new t(1970,0,1,0,0,e,n))};for(var u in t){if(Z(t,u)){r[u]=t[u]}}A(r,{now:t.now,UTC:t.UTC},true);r.prototype=t.prototype;A(r.prototype,{constructor:r},true);var s=function parse(r){var n=e.exec(r);if(n){var o=f(n[1]),u=f(n[2]||1)-1,s=f(n[3]||1)-1,l=f(n[4]||0),v=f(n[5]||0),c=f(n[6]||0),h=Math.floor(f(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),g=n[9]==="-"?1:-1,y=f(n[10]||0),d=f(n[11]||0),w;var b=v>0||c>0||h>0;if(l<(b?24:25)&&v<60&&c<60&&h<1e3&&u>-1&&u<12&&y<24&&d<60&&s>-1&&s=0){e+=hr.data[r];hr.data[r]=Math.floor(e/t);e=e%t*hr.base}},numToString:function numToString(){var t=hr.size;var r="";while(--t>=0){if(r!==""||t===0||hr.data[t]!==0){var e=o(hr.data[t]);if(r===""){r=e}else{r+=H("0000000",0,7-e.length)+e}}}return r},pow:function pow(t,r,e){return r===0?e:r%2===1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log:function log(t){var r=0;var e=t;while(e>=4096){r+=12;e/=4096}while(e>=2){r+=1;e/=2}return r}};var pr=function toFixed(t){var r,e,n,i,a,u,s,l;r=f(t);r=$(r)?0:Math.floor(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=f(this);if($(e)){return"NaN"}if(e<=-1e21||e>=1e21){return o(e)}n="";if(e<0){n="-";e=-e}i="0";if(e>1e-21){a=hr.log(e*hr.pow(2,69,1))-69;u=a<0?e*hr.pow(2,-a,1):e/hr.pow(2,a,1);u*=4503599627370496;a=52-a;if(a>0){hr.multiply(0,u);s=r;while(s>=7){hr.multiply(1e7,0);s-=7}hr.multiply(hr.pow(10,s,1),0);s=a-1;while(s>=23){hr.divide(1<<23);s-=23}hr.divide(1<0){l=i.length;if(l<=r){i=n+H("0.0000000000000000000",0,r-l+2)+i}else{i=n+H(i,0,l-r)+"."+H(i,l-r)}}else{i=n+i}return i};A(s,{toFixed:pr},cr);var gr=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var yr=s.toPrecision;A(s,{toPrecision:function toPrecision(t){return typeof t==="undefined"?yr.call(this):yr.call(this,t)}},gr);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 r=Math.pow(2,32)-1;u.split=function(e,n){var i=String(this);if(typeof e==="undefined"&&n===0){return[]}if(!j(e)){return W(this,e,n)}var a=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f,s,l,v;var h=new RegExp(e.source,o+"g");if(!t){f=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?r:J.ToUint32(n);s=h.exec(i);while(s){l=s.index+s[0].length;if(l>u){X(a,H(i,u,s.index));if(!t&&s.length>1){s[0].replace(f,function(){for(var t=1;t1&&s.index=p){break}}if(h.lastIndex===s.index){h.lastIndex++}s=h.exec(i)}if(u===i.length){if(v||!h.test("")){X(a,"")}}else{X(a,H(i,u))}return a.length>p?G(a,0,p):a}})()}else if("0".split(void 0,0).length){u.split=function split(t,r){if(typeof t==="undefined"&&r===0){return[]}return W(this,t,r)}}var dr=u.replace;var wr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){X(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!wr){u.replace=function replace(t,r){var e=D(r);var n=j(t)&&/\)[*?]/.test(t.source);if(!e||!n){return dr.call(this,t,r)}else{var i=function(e){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(e)||[];t.lastIndex=i;X(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return dr.call(this,t,i)}}}var br=u.substr;var mr="".substr&&"0b".substr(-1)!=="b";A(u,{substr:function substr(t,r){var e=t;if(t<0){e=w(this.length+t,0)}return br.call(this,e,r)}},mr);var Tr=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003"+"\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028"+"\u2029\ufeff";var Dr="\u200b";var xr="["+Tr+"]";var Sr=new RegExp("^"+xr+xr+"*");var Or=new RegExp(xr+xr+"*$");var Er=u.trim&&(Tr.trim()||!Dr.trim());A(u,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Sr,"").replace(Or,"")}},Er);var jr=y.bind(String.prototype.trim);var Ir=u.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;A(u,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var r=o(this);var e=o(t);var n=arguments.length>1?f(arguments[1]):NaN;var i=$(n)?Infinity:J.ToInteger(n);var a=b(w(i,0),r.length);var u=e.length;var s=a+u;while(s>0){s=w(0,s-u);var l=L(H(r,s,a+u),e);if(l!==-1){return s+l}}return-1}},Ir);var Mr=u.lastIndexOf;A(u,{lastIndexOf:function lastIndexOf(t){return Mr.apply(this,arguments)}},u.lastIndexOf.length!==1);if(parseInt(Tr+"08")!==8||parseInt(Tr+"0x16")!==22){parseInt=function(t){var r=/^[\-+]?0[xX]/;return function parseInt(e,n){var i=jr(e);var a=f(n)||(r.test(i)?16:10);return t(i,a)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=jr(r);var n=t(e);return n===0&&H(e,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var Ur=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 r=this.message;if(typeof r==="undefined"){r=""}else if(typeof r!=="string"){r=o(r)}if(!t){return r}if(!r){return t}return t+": "+r};Error.prototype.toString=Ur}if(R){var Fr=function(t,r){if(q(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);e.enumerable=false;Object.defineProperty(t,r,e)}};Fr(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Fr(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Nr=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=Nr}}); //# sourceMappingURL=es5-shim.map diff --git a/package.json b/package.json index 712a4e89..f835bbe2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "es5-shim", - "version": "4.5.2", + "version": "4.5.3", "description": "ECMAScript 5 compatibility shims for legacy JavaScript engines", "homepage": "http://github.com/es-shims/es5-shim/", "contributors": [