diff --git a/CHANGELOG.md b/CHANGELOG.md index ccf633c8..3bd76e67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # es6-shim x.x.x (not yet released) +# es6-shim 0.33.8 (23 Oct 2015) +* [Fix] IE 8: `Promise.resolve(2)` was throwing. More named function expression madness. +* [Tests] Reflect: Don't attempt to define properties on this test object unless we're in true ES5. + # es6-shim 0.33.7 (23 Oct 2015) * [Fix] Ensure `preserveToString` does not throw when the original does not exist (#359) * [Fix] `Promise`: properly handle named function expressions in IE 8. diff --git a/component.json b/component.json index 6fe14b06..fd52e0b9 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.33.7", + "version": "0.33.8", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/es6-sham.js b/es6-sham.js index 0f1a3dc6..851b8304 100644 --- a/es6-sham.js +++ b/es6-sham.js @@ -2,8 +2,8 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-sham: v0.33.7 - * see https://github.com/paulmillr/es6-shim/blob/0.33.7/LICENSE + * es6-sham: v0.33.8 + * see https://github.com/paulmillr/es6-shim/blob/0.33.8/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/es6-sham.min.js b/es6-sham.min.js index cfa29b4e..f8372331 100644 --- a/es6-sham.min.js +++ b/es6-sham.min.js @@ -2,8 +2,8 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-sham: v0.33.7 - * see https://github.com/paulmillr/es6-shim/blob/0.33.7/LICENSE + * es6-sham: v0.33.8 + * see https://github.com/paulmillr/es6-shim/blob/0.33.8/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/es6-shim.js b/es6-shim.js index 0866b6d5..feb43890 100644 --- a/es6-shim.js +++ b/es6-shim.js @@ -2,8 +2,8 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-shim: v0.33.7 - * see https://github.com/paulmillr/es6-shim/blob/0.33.7/LICENSE + * es6-shim: v0.33.8 + * see https://github.com/paulmillr/es6-shim/blob/0.33.8/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/es6-shim.map b/es6-shim.map index d1a6727f..180c582c 100644 --- a/es6-shim.map +++ b/es6-shim.map @@ -1 +1 @@ -{"version":3,"sources":["es6-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","_apply","Function","call","bind","apply","_call","isArray","Array","not","notThunker","func","notThunk","arguments","throwsError","e","valueOrFalseIfThrows","isCallableWithoutNew","arePropertyDescriptorsSupported","Object","defineProperty","get","supportsDescriptors","functionsHaveNames","foo","name","_forEach","prototype","forEach","_reduce","reduce","_filter","filter","_every","every","createDataProperty","object","value","configurable","enumerable","writable","createDataPropertyOrThrow","ES","SameValue","TypeError","force","defineProperties","map","keys","method","create","properties","Prototype","key","Value","defineByDescriptor","supportsSubclassing","C","f","setPrototypeOf","Sub","Subclass","arg","o","constructor","getGlobal","self","window","global","Error","globals","globalIsFinite","isFinite","hasStrictMode","_indexOf","String","indexOf","_toString","toString","_concat","concat","_strSlice","slice","_push","push","_pushApply","_shift","shift","_max","Math","max","_min","min","_floor","floor","_abs","abs","_log","log","_sqrt","sqrt","_hasOwnProperty","hasOwnProperty","ArrayIterator","noop","Symbol","symbolSpecies","species","getter","proxy","originalObject","targetObject","originalDescriptor","getOwnPropertyDescriptor","getKey","set","setKey","redefine","property","newValue","descriptor","preserveToString","target","source","IsCallable","wrapConstructor","original","replacement","keysToSkip","getOwnPropertyNames","defaultSpeciesGetter","addDefaultSpecies","Type","primitive","x","string","regex","symbol","numberIsNaN","Number","isNaN","numberIsFinite","overrideNative","$iterator$","iterator","Set","addIterator","impl","implementation","isStandardArguments","isArguments","isLegacyArguments","length","callee","Call","F","V","args","RequireObjectCoercible","optMessage","TypeIsObject","ToObject","IsConstructor","ToInt32","ToNumber","ToUint32","ToInteger","number","ToLength","len","MAX_SAFE_INTEGER","a","b","SameValueZero","IsIterable","GetIterator","itFn","GetMethod","it","p","IteratorComplete","iterResult","IteratorClose","completionIsThrow","returnMethod","innerResult","innerException","IteratorNext","result","next","IteratorStep","done","Construct","newTarget","isES6internal","Reflect","construct","proto","obj","SpeciesConstructor","O","defaultConstructor","S","CreateHTML","tag","attribute","p1","escapedV","replace","p2","p3","emulateES6construct","defaultNewTarget","defaultProto","slots","fromCodePoint","originalFromCodePoint","codePoints","StringShims","i","RangeError","fromCharCode","join","raw","callSite","cooked","rawString","literalsegments","stringElements","nextIndex","nextKey","nextSeg","nextSub",0,1,"stringRepeat","repeat","s","times","half","stringMaxLength","Infinity","StringPrototypeShims","thisStr","numTimes","startsWith","searchString","searchStr","startArg","start","endsWith","thisLen","posArg","pos","end","includes","position","codePointAt","first","charCodeAt","isEnd","second","startsWithRejectsRegex","startsWithHandlesInfinity","hasStringTrimBug","trim","ws","trimRegexp","RegExp","StringIterator","_s","_i","substr","ArrayShims","from","items","mapFn","mapping","T","usingIterator","nextValue","undefined","arrayLike","of","A","k","iteratorResult","array","kind","retval","ObjectIterator","getAllKeys","arrayOfSupportsSubclassing","Foo","fooArr","ArrayPrototypeShims","copyWithin","relativeTarget","relativeStart","to","fin","count","direction","fill","relativeEnd","find","predicate","list","thisArg","findIndex","values","entries","unscopables","originalArrayPrototypeValues","getPrototypeOf","arrayFromSwallowsNegativeLengths","arrayFromHandlesIterables","arr","arrayFromHandlesUndefinedMapFunction","origArrayFrom","toLengthsCorrectly","reversed","originalForEach","callbackFn","originalMap","originalFilter","some","originalSome","originalEvery","originalReduce","reduceRight","originalReduceRight","OrigNumber","binaryRegex","octalRegex","isBinary","test","isOctal","toPrimitive","valueOf","NumberShim","primValue","parseInt","receiver","valueOfSucceeds","maxSafeInteger","pow","MIN_SAFE_INTEGER","EPSILON","parseFloat","isInteger","isSafeInteger","item","idx","isEnumerableOn","propertyIsEnumerable","sliceArgs","initial","desiredArgCount","assignTo","assignToSource","assignReducer","symbols","getOwnPropertySymbols","ObjectShims","assign","is","assignHasPendingExceptions","preventExtensions","thrower","ES5ObjectShims","magic","checkArgs","polyfill","FAKENULL","gpo","spo","objectKeysAcceptsPrimitives","originalObjectKeys","objectGOPNAcceptsPrimitives","cachedWindowNames","originalObjectGetOwnPropertyNames","val","objectGOPDAcceptsPrimitives","originalObjectGetOwnPropertyDescriptor","seal","objectSealAcceptsPrimitives","originalObjectSeal","isSealed","objectIsSealedAcceptsPrimitives","originalObjectIsSealed","freeze","objectFreezeAcceptsPrimitives","originalObjectFreeze","isFrozen","objectIsFrozenAcceptsPrimitives","originalObjectIsFrozen","objectPreventExtensionsAcceptsPrimitives","originalObjectPreventExtensions","isExtensible","objectIsExtensibleAcceptsPrimitives","originalObjectIsExtensible","objectGetProtoAcceptsPrimitives","originalGetProto","flags","regExpFlagsGetter","ignoreCase","multiline","unicode","sticky","regExpSupportsFlagsWithRegex","OrigRegExp","RegExpShim","pattern","calledWithNew","$input","regexGlobals","input","lastMatch","lastParen","leftContext","rightContext","prop","inverseEpsilon","roundTiesToEven","n","BINARY_32_EPSILON","BINARY_32_MAX_VALUE","BINARY_32_MIN_VALUE","numberCLZ","clz","MathShims","acosh","NaN","E","asinh","atanh","cbrt","negate","exp","clz32","LOG2E","cosh","expm1","t","sum","hypot","y","largest","log2","log10","LOG10E","log1p","sign","sinh","tanh","trunc","imul","ah","al","bh","bl","fround","v","MAX_VALUE","expm1OfTen","origMathRound","round","roundHandlesBoundaryConditions","smallestPositiveNumberWhereRoundBreaks","largestPositiveNumberWhereRoundBreaks","roundDoesNotIncreaseIntegers","num","ceil","origImul","PromiseShim","setTimeout","IsPromise","promise","_promise","PromiseCapability","capability","resolver","resolve","reject","makeZeroTimeout","postMessage","timeouts","messageName","setZeroTimeout","fn","handleMessage","event","data","stopPropagation","addEventListener","makePromiseAsap","P","Promise","task","then","enqueue","setImmediate","process","nextTick","PROMISE_IDENTITY","PROMISE_THROWER","PROMISE_PENDING","PROMISE_FULFILLED","PROMISE_REJECTED","promiseReactionJob","reaction","argument","promiseCapability","capabilities","handler","handlerResult","handlerException","triggerPromiseReactions","reactions","fulfillPromise","fulfillReactions","rejectReactions","state","rejectPromise","reason","createResolvingFunctions","alreadyResolved","resolution","promiseResolveThenableJob","thenable","resolvingFunctions","getPromiseSpecies","Promise$prototype","_promiseAllResolver","index","remaining","alreadyCalled","performPromiseAll","iteratorRecord","resultCapability","nextPromise","resolveElement","performPromiseRace","all","iterable","ee","race","rejectFunc","resolveFunc","catch","onRejected","onFulfilled","fulfillReaction","rejectReaction","accept","defer","chain","promiseSupportsSubclassing","promiseIgnoresNonFunctionThenCallbacks","promiseRequiresObjectContext","promiseResolveBroken","testOrder","preservesInsertionOrder","preservesNumericInsertionOrder","fastkey","type","emptyObject","addIterableToMap","MapConstructor","entry","iter","adder","nextItem","addIterableToSet","SetConstructor","add","collectionShims","Map","empty","MapEntry","prev","isRemoved","isMap","_es6map","requireMapSlot","MapIterator","head","_head","MapShim","Map$prototype","_storage","_size","fkey","has","delete","clear","callback","context","isSet","_es6set","requireSetSlot","SetShim","Set$prototype","[[SetData]]","ensureMap","m","charAt","size","hasFKey","entireSet","mapAcceptsArguments","OrigMapNoArgs","testMap","mapUsesSameValueZero","mapSupportsChaining","origMapSet","origMapGet","origMapHas","testSet","setUsesSameValueZero","setSupportsChaining","origSetAdd","origSetHas","origSetDel","SetDelete","mapSupportsSubclassing","M","mapFailsToSupportSubclassing","mapRequiresNew","OrigMap","setSupportsSubclassing","setFailsToSupportSubclassing","setRequiresNew","OrigSet","mapIterationThrowsStopIterator","anonymousSetHas","throwUnlessTargetIsObject","ReflectShims","deleteProperty","desc","enumerate","ownKeys","callAndCatchException","ConvertExceptionToBoolean","internalGet","parent","internalSet","existingDesc","propertyKey","attributes","objectDotGetPrototypeOf","willCreateCircularPrototype","defineOrOverrideReflectProperty","shim","acceptsPrimitives","originalReflectGetProto","basic","extensible","Date","dateToString","shimmedDateToString","stringHTMLshims","anchor","big","blink","bold","fixed","fontcolor","color","fontsize","italics","link","url","small","strike","sub","sup","shouldOverwrite","output","quotesCount","match","toLowerCase","JSONstringifiesSymbols","stringify","JSON","JSONstringifyAcceptsObjectSymbol","origStringify","replacer","replaceFn","wrappedReplacer","parsedValue"],"mappings":";;;;;;;;;CAYC,SAAUA,EAAMC,GAEf,SAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE9CD,OAAOD,OACF,UAAWG,WAAY,SAAU,CAItCC,OAAOD,QAAUH,QACZ,CAELD,EAAKM,cAAgBL,OAEvBM,KAAM,WACN,YAEA,IAAIC,GAASC,SAASC,KAAKC,KAAKF,SAASG,MACzC,IAAIC,GAAQJ,SAASC,KAAKC,KAAKF,SAASC,KACxC,IAAII,GAAUC,MAAMD,OAEpB,IAAIE,GAAM,QAASC,YAAWC,GAC5B,MAAO,SAASC,YAAa,OAAQX,EAAOU,EAAMX,KAAMa,YAE1D,IAAIC,GAAc,SAAUH,GAC1B,IACEA,GACA,OAAO,OACP,MAAOI,GACP,MAAO,OAGX,IAAIC,GAAuB,QAASA,sBAAqBL,GACvD,IACE,MAAOA,KACP,MAAOI,GACP,MAAO,QAIX,IAAIE,GAAuBR,EAAIK,EAC/B,IAAII,GAAkC,WAEpC,OAAQJ,EAAY,WAAcK,OAAOC,kBAAmB,KAAOC,IAAK,iBAE1E,IAAIC,KAAwBH,OAAOC,gBAAkBF,GACrD,IAAIK,GAAqB,QAAUC,SAAUC,OAAS,KAEtD,IAAIC,GAAWxB,SAASC,KAAKC,KAAKI,MAAMmB,UAAUC,QAClD,IAAIC,GAAU3B,SAASC,KAAKC,KAAKI,MAAMmB,UAAUG,OACjD,IAAIC,GAAU7B,SAASC,KAAKC,KAAKI,MAAMmB,UAAUK,OACjD,IAAIC,G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ACjC,GAAI2oB,EACJ,IAAInqB,UAAU2I,OAAS,EAAG,CACxBwhB,EAAWnqB,UAAU,GAEvB,GAAIgJ,IAAQxH,EACZ,KAAK9B,EAAQyqB,GAAW,CACtB,GAAIC,GAAYvoB,GAAGkF,WAAWojB,GAAYA,EAAW,IACrD,IAAIE,GAAkB,SAAU7nB,EAAKyU,GACnC,GAAIqT,GAAcH,EAAW1qB,EAAM0qB,EAAUhrB,KAAMqD,EAAKyU,GAAOA,CAC/D,UAAWqT,KAAgB,SAAU,CACnC,GAAI/iB,EAAKK,OAAO0iB,GAAc,CAC5B,MAAO5U,QAAa4U,OACf,CACL,MAAOA,KAIbthB,GAAKzE,KAAK8lB,OACL,CAELrhB,EAAKzE,KAAK4lB,GAEZ,GAAInqB,UAAU2I,OAAS,EAAG,CACxBK,EAAKzE,KAAKvE,UAAU,IAEtB,MAAOkqB,IAAc1qB,MAAML,KAAM6J,KAIrC,MAAOvF"} \ No newline at end of file +{"version":3,"sources":["es6-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","_apply","Function","call","bind","apply","_call","isArray","Array","not","notThunker","func","notThunk","arguments","throwsError","e","valueOrFalseIfThrows","isCallableWithoutNew","arePropertyDescriptorsSupported","Object","defineProperty","get","supportsDescriptors","functionsHaveNames","foo","name","_forEach","prototype","forEach","_reduce","reduce","_filter","filter","_every","every","createDataProperty","object","value","configurable","enumerable","writable","createDataPropertyOrThrow","ES","SameValue","TypeError","force","defineProperties","map","keys","method","create","properties","Prototype","key","Value","defineByDescriptor","supportsSubclassing","C","f","setPrototypeOf","Sub","Subclass","arg","o","constructor","getGlobal","self","window","global","Error","globals","globalIsFinite","isFinite","hasStrictMode","_indexOf","String","indexOf","_toString","toString","_concat","concat","_strSlice","slice","_push","push","_pushApply","_shift","shift","_max","Math","max","_min","min","_floor","floor","_abs","abs","_log","log","_sqrt","sqrt","_hasOwnProperty","hasOwnProperty","ArrayIterator","noop","Symbol","symbolSpecies","species","getter","proxy","originalObject","targetObject","originalDescriptor","getOwnPropertyDescriptor","getKey","set","setKey","redefine","property","newValue","descriptor","preserveToString","target","source","IsCallable","wrapConstructor","original","replacement","keysToSkip","getOwnPropertyNames","defaultSpeciesGetter","addDefaultSpecies","Type","primitive","x","string","regex","symbol","numberIsNaN","Number","isNaN","numberIsFinite","overrideNative","$iterator$","iterator","Set","addIterator","impl","implementation","isStandardArguments","isArguments","isLegacyArguments","length","callee","Call","F","V","args","RequireObjectCoercible","optMessage","TypeIsObject","ToObject","IsConstructor","ToInt32","ToNumber","ToUint32","ToInteger","number","ToLength","len","MAX_SAFE_INTEGER","a","b","SameValueZero","IsIterable","GetIterator","itFn","GetMethod","it","p","IteratorComplete","iterResult","IteratorClose","completionIsThrow","returnMethod","innerResult","innerException","IteratorNext","result","next","IteratorStep","done","Construct","newTarget","isES6internal","Reflect","construct","proto","obj","SpeciesConstructor","O","defaultConstructor","S","CreateHTML","tag","attribute","p1","escapedV","replace","p2","p3","emulateES6construct","defaultNewTarget","defaultProto","slots","fromCodePoint","originalFromCodePoint","codePoints","StringShims","i","RangeError","fromCharCode","join","raw","callSite","cooked","rawString","literalsegments","stringElements","nextIndex","nextKey","nextSeg","nextSub",0,1,"stringRepeat","repeat","s","times","half","stringMaxLength","Infinity","StringPrototypeShims","thisStr","numTimes","startsWith","searchString","searchStr","startArg","start","endsWith","thisLen","posArg","pos","end","includes","position","codePointAt","first","charCodeAt","isEnd","second","startsWithRejectsRegex","startsWithHandlesInfinity","hasStringTrimBug","trim","ws","trimRegexp","RegExp","StringIterator","_s","_i","substr","ArrayShims","from","items","mapFn","mapping","T","usingIterator","nextValue","undefined","arrayLike","of","A","k","iteratorResult","array","kind","retval","ObjectIterator","getAllKeys","arrayOfSupportsSubclassing","Foo","fooArr","ArrayPrototypeShims","copyWithin","relativeTarget","relativeStart","to","fin","count","direction","fill","relativeEnd","find","predicate","list","thisArg","findIndex","values","entries","unscopables","originalArrayPrototypeValues","getPrototypeOf","arrayFromSwallowsNegativeLengths","arrayFromHandlesIterables","arr","arrayFromHandlesUndefinedMapFunction","origArrayFrom","toLengthsCorrectly","reversed","originalForEach","callbackFn","originalMap","originalFilter","some","originalSome","originalEvery","originalReduce","reduceRight","originalReduceRight","OrigNumber","binaryRegex","octalRegex","isBinary","test","isOctal","toPrimitive","valueOf","NumberShim","primValue","parseInt","receiver","valueOfSucceeds","maxSafeInteger","pow","MIN_SAFE_INTEGER","EPSILON","parseFloat","isInteger","isSafeInteger","item","idx","isEnumerableOn","propertyIsEnumerable","sliceArgs","initial","desiredArgCount","assignTo","assignToSource","assignReducer","symbols","getOwnPropertySymbols","ObjectShims","assign","is","assignHasPendingExceptions","preventExtensions","thrower","ES5ObjectShims","magic","checkArgs","polyfill","FAKENULL","gpo","spo","objectKeysAcceptsPrimitives","originalObjectKeys","objectGOPNAcceptsPrimitives","cachedWindowNames","originalObjectGetOwnPropertyNames","val","objectGOPDAcceptsPrimitives","originalObjectGetOwnPropertyDescriptor","seal","objectSealAcceptsPrimitives","originalObjectSeal","isSealed","objectIsSealedAcceptsPrimitives","originalObjectIsSealed","freeze","objectFreezeAcceptsPrimitives","originalObjectFreeze","isFrozen","objectIsFrozenAcceptsPrimitives","originalObjectIsFrozen","objectPreventExtensionsAcceptsPrimitives","originalObjectPreventExtensions","isExtensible","objectIsExtensibleAcceptsPrimitives","originalObjectIsExtensible","objectGetProtoAcceptsPrimitives","originalGetProto","flags","regExpFlagsGetter","ignoreCase","multiline","unicode","sticky","regExpSupportsFlagsWithRegex","OrigRegExp","RegExpShim","pattern","calledWithNew","$input","regexGlobals","input","lastMatch","lastParen","leftContext","rightContext","prop","inverseEpsilon","roundTiesToEven","n","BINARY_32_EPSILON","BINARY_32_MAX_VALUE","BINARY_32_MIN_VALUE","numberCLZ","clz","MathShims","acosh","NaN","E","asinh","atanh","cbrt","negate","exp","clz32","LOG2E","cosh","expm1","t","sum","hypot","y","largest","log2","log10","LOG10E","log1p","sign","sinh","tanh","trunc","imul","ah","al","bh","bl","fround","v","MAX_VALUE","expm1OfTen","origMathRound","round","roundHandlesBoundaryConditions","smallestPositiveNumberWhereRoundBreaks","largestPositiveNumberWhereRoundBreaks","roundDoesNotIncreaseIntegers","num","ceil","origImul","PromiseShim","setTimeout","IsPromise","promise","_promise","PromiseCapability","capability","resolver","resolve","reject","makeZeroTimeout","postMessage","timeouts","messageName","setZeroTimeout","fn","handleMessage","event","data","stopPropagation","addEventListener","makePromiseAsap","P","Promise","task","then","enqueue","setImmediate","process","nextTick","PROMISE_IDENTITY","PROMISE_THROWER","PROMISE_PENDING","PROMISE_FULFILLED","PROMISE_REJECTED","promiseReactionJob","reaction","argument","promiseCapability","capabilities","handler","handlerResult","handlerException","triggerPromiseReactions","reactions","fulfillPromise","fulfillReactions","rejectReactions","state","rejectPromise","reason","createResolvingFunctions","alreadyResolved","resolution","promiseResolveThenableJob","thenable","resolvingFunctions","getPromiseSpecies","Promise$prototype","_promiseAllResolver","index","remaining","alreadyCalled","performPromiseAll","iteratorRecord","resultCapability","nextPromise","resolveElement","performPromiseRace","all","iterable","ee","race","rejectFunc","resolveFunc","catch","onRejected","onFulfilled","fulfillReaction","rejectReaction","accept","defer","chain","promiseSupportsSubclassing","promiseIgnoresNonFunctionThenCallbacks","promiseRequiresObjectContext","promiseResolveBroken","testOrder","preservesInsertionOrder","preservesNumericInsertionOrder","fastkey","type","emptyObject","addIterableToMap","MapConstructor","entry","iter","adder","nextItem","addIterableToSet","SetConstructor","add","collectionShims","Map","empty","MapEntry","prev","isRemoved","isMap","_es6map","requireMapSlot","MapIterator","head","_head","MapShim","Map$prototype","_storage","_size","fkey","has","delete","clear","callback","context","isSet","_es6set","requireSetSlot","SetShim","Set$prototype","[[SetData]]","ensureMap","m","charAt","size","hasFKey","entireSet","mapAcceptsArguments","OrigMapNoArgs","testMap","mapUsesSameValueZero","mapSupportsChaining","origMapSet","origMapGet","origMapHas","testSet","setUsesSameValueZero","setSupportsChaining","origSetAdd","origSetHas","origSetDel","SetDelete","mapSupportsSubclassing","M","mapFailsToSupportSubclassing","mapRequiresNew","OrigMap","setSupportsSubclassing","setFailsToSupportSubclassing","setRequiresNew","OrigSet","mapIterationThrowsStopIterator","anonymousSetHas","throwUnlessTargetIsObject","ReflectShims","deleteProperty","desc","enumerate","ownKeys","callAndCatchException","ConvertExceptionToBoolean","internalGet","parent","internalSet","existingDesc","propertyKey","attributes","objectDotGetPrototypeOf","willCreateCircularPrototype","defineOrOverrideReflectProperty","shim","acceptsPrimitives","originalReflectGetProto","basic","extensible","Date","dateToString","shimmedDateToString","stringHTMLshims","anchor","big","blink","bold","fixed","fontcolor","color","fontsize","italics","link","url","small","strike","sub","sup","shouldOverwrite","output","quotesCount","match","toLowerCase","JSONstringifiesSymbols","stringify","JSON","JSONstringifyAcceptsObjectSymbol","origStringify","replacer","replaceFn","wrappedReplacer","parsedValue"],"mappings":";;;;;;;;;CAYC,SAAUA,EAAMC,GAEf,SAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE9CD,OAAOD,OACF,UAAWG,WAAY,SAAU,CAItCC,OAAOD,QAAUH,QACZ,CAELD,EAAKM,cAAgBL,OAEvBM,KAAM,WACN,YAEA,IAAIC,GAASC,SAASC,KAAKC,KAAKF,SAASG,MACzC,IAAIC,GAAQJ,SAASC,KAAKC,KAAKF,SAASC,KACxC,IAAII,GAAUC,MAAMD,OAEpB,IAAIE,GAAM,QAASC,YAAWC,GAC5B,MAAO,SAASC,YAAa,OAAQX,EAAOU,EAAMX,KAAMa,YAE1D,IAAIC,GAAc,SAAUH,GAC1B,IACEA,GACA,OAAO,OACP,MAAOI,GACP,MAAO,OAGX,IAAIC,GAAuB,QAASA,sBAAqBL,GACvD,IACE,MAAOA,KACP,MAAOI,GACP,MAAO,QAIX,IAAIE,GAAuBR,EAAIK,EAC/B,IAAII,GAAkC,WAEpC,OAAQJ,EAAY,WAAcK,OAAOC,kBAAmB,KAAOC,IAAK,iBAE1E,IAAIC,KAAwBH,OAAOC,gBAAkBF,GACrD,IAAIK,GAAqB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MAC5C,MAAO6hB,MAAKD,UAAUzpB,OAAOsF,QAAe,MAAQokB,KAAKD,WAAWzpB,OAAOsF,SAAgB,QAE7F,IAAIkkB,KAA2BG,GAAkC,CAC/D,GAAIC,IAAgBF,KAAKD,SACzB9hB,GAAe+hB,KAAM,YAAa,QAASD,WAAUvoB,GACnD,SAAWA,KAAU,SAAU,CAAE,OACjC,GAAI2oB,EACJ,IAAInqB,UAAU2I,OAAS,EAAG,CACxBwhB,EAAWnqB,UAAU,GAEvB,GAAIgJ,IAAQxH,EACZ,KAAK9B,EAAQyqB,GAAW,CACtB,GAAIC,GAAYvoB,GAAGkF,WAAWojB,GAAYA,EAAW,IACrD,IAAIE,GAAkB,SAAU7nB,EAAKyU,GACnC,GAAIqT,GAAcH,EAAW1qB,EAAM0qB,EAAUhrB,KAAMqD,EAAKyU,GAAOA,CAC/D,UAAWqT,KAAgB,SAAU,CACnC,GAAI/iB,EAAKK,OAAO0iB,GAAc,CAC5B,MAAO5U,QAAa4U,OACf,CACL,MAAOA,KAIbthB,GAAKzE,KAAK8lB,OACL,CAELrhB,EAAKzE,KAAK4lB,GAEZ,GAAInqB,UAAU2I,OAAS,EAAG,CACxBK,EAAKzE,KAAKvE,UAAU,IAEtB,MAAOkqB,IAAc1qB,MAAML,KAAM6J,KAIrC,MAAOvF"} \ No newline at end of file diff --git a/es6-shim.min.js b/es6-shim.min.js index a8ad2773..77cded1a 100644 --- a/es6-shim.min.js +++ b/es6-shim.min.js @@ -2,11 +2,11 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-shim: v0.33.7 - * see https://github.com/paulmillr/es6-shim/blob/0.33.7/LICENSE + * es6-shim: v0.33.8 + * see https://github.com/paulmillr/es6-shim/blob/0.33.8/LICENSE * 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.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var o=function(e){try{e();return false}catch(t){return true}};var i=function valueOrFalseIfThrows(e){try{return e()}catch(t){return false}};var a=n(o);var u=function(){return!o(function(){Object.defineProperty({},"x",{get:function(){}})})};var s=!!Object.defineProperty&&u();var f=function foo(){}.name==="foo";var c=Function.call.bind(Array.prototype.forEach);var l=Function.call.bind(Array.prototype.reduce);var p=Function.call.bind(Array.prototype.filter);var v=Function.call.bind(Array.prototype.every);var y=function createDataProperty(e,t,r){if(s){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var h=function createDataPropertyOrThrow(e,t,r){y(e,t,r);if(!te.SameValue(e[t],r)){throw new TypeError("property is nonconfigurable")}};var b=function(e,t,r,n){if(!n&&t in e){return}if(s){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var g=function(e,t){c(Object.keys(t),function(r){var n=t[r];b(e,r,n,false)})};var d=Object.create||function(e,t){var r=function Prototype(){};r.prototype=e;var n=new r;if(typeof t!=="undefined"){Object.keys(t).forEach(function(e){W.defineByDescriptor(n,e,t[e])})}return n};var m=function(e,t){if(!Object.setPrototypeOf){return false}return i(function(){var r=function Subclass(t){var r=new e(t);Object.setPrototypeOf(r,Subclass.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=d(e.prototype,{constructor:{value:r}});return t(r)})};var O=function(){if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}throw new Error("unable to locate global object")};var w=O();var j=w.isFinite;var S=function(){return this===null}.call(null);var T=Function.call.bind(String.prototype.indexOf);var I=Function.call.bind(Object.prototype.toString);var E=Function.call.bind(Array.prototype.concat);var M=Function.call.bind(String.prototype.slice);var P=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var N=Function.call.bind(Array.prototype.shift);var C=Math.max;var A=Math.min;var k=Math.floor;var _=Math.abs;var R=Math.log;var F=Math.sqrt;var D=Function.call.bind(Object.prototype.hasOwnProperty);var z;var L=function(){};var q=w.Symbol||{};var G=q.species||"@@species";var W={getter:function(e,t,r){if(!s){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!s){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 getKey(){return e[t]},set:function setKey(r){e[t]=r}})},redefine:function(e,t,r){if(s){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(s){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){if(t&&te.IsCallable(t.toString)){b(e,"toString",t.toString.bind(t),true)}}};var H=function wrapConstructor(e,t,r){W.preserveToString(t,e);if(Object.setPrototypeOf){Object.setPrototypeOf(e,t)}if(s){c(Object.getOwnPropertyNames(e),function(n){if(n in L||r[n]){return}W.proxy(e,n,t)})}else{c(Object.keys(e),function(n){if(n in L||r[n]){return}t[n]=e[n]})}t.prototype=e.prototype;W.redefine(e.prototype,"constructor",t)};var B=function(){return this};var V=function(e){if(s&&!D(e,G)){W.getter(e,G,B)}};var $={primitive:function(e){return e===null||typeof e!=="function"&&typeof e!=="object"},object:function(e){return e!==null&&typeof e==="object"},string:function(e){return I(e)==="[object String]"},regex:function(e){return I(e)==="[object RegExp]"},symbol:function(e){return typeof w.Symbol==="function"&&typeof e==="symbol"}};var J=Number.isNaN||function isNaN(e){return e!==e};var U=Number.isFinite||function isFinite(e){return typeof e==="number"&&j(e)};var K=function overrideNative(e,t,r){var n=e[t];b(e,t,r,true);W.preserveToString(e[t],n)};var X=$.symbol(q.iterator)?q.iterator:"_es6-shim iterator_";if(w.Set&&typeof(new w.Set)["@@iterator"]==="function"){X="@@iterator"}var Z=function(e,t){var r=t||function iterator(){return this};b(e,X,r);if(!e[X]&&$.symbol(X)){e[X]=r}};var Q=function isArguments(e){return I(e)==="[object Arguments]"};var Y=function isArguments(e){return e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&I(e)!=="[object Array]"&&I(e.callee)==="[object Function]"};var ee=Q(arguments)?Q:Y;var te={Call:function Call(t,r){var n=arguments.length>2?arguments[2]:[];if(!te.IsCallable(t)){throw new TypeError(t+" is not a function")}return e(t,r,n)},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){te.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&I(e)==="[object Function]"},IsConstructor:function(e){return te.IsCallable(e)},ToInt32:function(e){return te.ToNumber(e)>>0},ToUint32:function(e){return te.ToNumber(e)>>>0},ToNumber:function(e){if(I(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=te.ToNumber(e);if(J(t)){return 0}if(t===0||!U(t)){return t}return(t>0?1:-1)*k(_(t))},ToLength:function(e){var t=te.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 te.TypeIsObject(e)&&(typeof e[X]!=="undefined"||ee(e))},GetIterator:function(e){if(ee(e)){return new z(e,"value")}var r=te.GetMethod(e,X);if(!te.IsCallable(r)){throw new TypeError("value is not an iterable")}var n=t(r,e);if(!te.TypeIsObject(n)){throw new TypeError("bad iterator")}return n},GetMethod:function(e,t){var r=te.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!te.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,r){var n=te.GetMethod(e,"return");if(n===void 0){return}var o,i;try{o=t(n,e)}catch(a){i=a}if(r){return}if(i){throw i}if(!te.TypeIsObject(o)){throw new TypeError("Iterator's return method returned a non-object.")}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!te.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=te.IteratorNext(e);var r=te.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){if(r===void 0){r=e}if(!n){return gr.construct(e,t,r)}var o=r.prototype;if(!te.TypeIsObject(o)){o=Object.prototype}var i=d(o);var a=te.Call(e,i,t);return te.TypeIsObject(a)?a:i},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!te.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[G];if(n===void 0||n===null){return t}if(!te.IsConstructor(n)){throw new TypeError("Bad @@species")}return n},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+""}};var re=function(e,t,r,n){if(!te.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!te.TypeIsObject(o)){o=r}e=d(o);for(var i in n){if(D(n,i)){var a=n[i];b(e,i,a,true)}}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var ne=String.fromCodePoint;K(String,"fromCodePoint",function fromCodePoint(t){return e(ne,this,arguments)})}var oe={fromCodePoint:function fromCodePoint(e){var t=[];var r;for(var n=0,o=arguments.length;n1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){P(t,String.fromCharCode(r))}else{r-=65536;P(t,String.fromCharCode((r>>10)+55296));P(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function raw(e){var t=te.ToObject(e,"bad callSite");var r=te.ToObject(t.raw,"bad raw value");var n=r.length;var o=te.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,s,f,c;while(a=o){break}s=a+1=ae){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return ie(t,r)},startsWith:function startsWith(e){te.RequireObjectCoercible(this);var t=String(this);if($.regex(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}var r=String(e);var n=arguments.length>1?arguments[1]:void 0;var o=C(te.ToInteger(n),0);return M(t,o,o+r.length)===r},endsWith:function endsWith(e){te.RequireObjectCoercible(this);var t=String(this);if($.regex(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}var r=String(e);var n=t.length;var o=arguments.length>1?arguments[1]:void 0;var i=typeof o==="undefined"?n:te.ToInteger(o);var a=A(C(i,0),n);return M(t,a-r.length,a)===r},includes:function includes(e){if($.regex(e)){throw new TypeError('"includes" does not accept a RegExp')}var t;if(arguments.length>1){t=arguments[1]}return T(this,e,t)!==-1},codePointAt:function codePointAt(e){te.RequireObjectCoercible(this);var t=String(this);var r=te.ToInteger(e);var n=t.length;if(r>=0&&r56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",Infinity)!==false){K(String.prototype,"includes",ue.includes)}if(String.prototype.startsWith&&String.prototype.endsWith){var se=o(function(){"/a/".startsWith(/a/)});var fe="abc".startsWith("a",Infinity)===false;if(!se||!fe){K(String.prototype,"startsWith",ue.startsWith);K(String.prototype,"endsWith",ue.endsWith)}}g(String.prototype,ue);var ce="\x85".trim().length!==1;if(ce){delete String.prototype.trim;var le=[" \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 pe=new RegExp("(^["+le+"]+)|(["+le+"]+$)","g");g(String.prototype,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(pe,"")}})}var ve=function(e){te.RequireObjectCoercible(e);this._s=String(e);this._i=0};ve.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}};Z(ve.prototype);Z(String.prototype,function(){return new ve(this)});var ye={from:function from(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!te.IsCallable(n)){throw new TypeError("Array.from: when provided, the second argument must be a function")}i=arguments.length>2?arguments[2]:void 0;o=true}var a=ee(e)||te.GetMethod(e,X);var u,s,f;if(a!==void 0){s=te.IsConstructor(r)?Object(new r):[];var c=te.GetIterator(e);var l,p;f=0;while(true){l=te.IteratorStep(c);if(l===false){break}p=l.value;try{if(o){p=i!==undefined?t(n,i,p,f):n(p,f)}s[f]=p}catch(v){te.IteratorClose(c,true);throw v}f+=1}u=f}else{var y=te.ToObject(e);u=te.ToLength(y.length);s=te.IsConstructor(r)?Object(new r(u)):new Array(u);var h;for(f=0;f0){e=N(t);if(!(e in this.object)){continue}if(this.kind==="key"){return he(e)}else if(this.kind==="value"){return he(this.object[e])}else{return he([e,this.object[e]])}}return he()}});Z(be.prototype);var de=Array.of===ye.of||function(){var e=function Foo(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!de){K(Array,"of",ye.of)}var me={copyWithin:function copyWithin(e,t){var r=arguments[2];var n=te.ToObject(this);var o=te.ToLength(n.length);var i=te.ToInteger(e);var a=te.ToInteger(t);var u=i<0?C(o+i,0):A(i,o);var s=a<0?C(o+a,0):A(a,o);r=typeof r==="undefined"?o:te.ToInteger(r);var f=r<0?C(o+r,0):A(r,o);var c=A(f-s,o-u);var l=1;if(s0){if(D(n,s)){n[u]=n[s]}else{delete n[s]}s+=l;u+=l;c-=1}return n},fill:function fill(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=te.ToObject(this);var o=te.ToLength(n.length);t=te.ToInteger(typeof t==="undefined"?0:t);r=te.ToInteger(typeof r==="undefined"?o:r);var i=t<0?C(o+t,0):A(t,o);var a=r<0?o+r:r;for(var u=i;u1?arguments[1]:null;for(var i=0,a;i1?arguments[1]:null;for(var i=0;i0&&typeof arguments[1]!=="undefined"){return e(Te,this,arguments)}else{return t(Te,this,r)}})}var Ie=function(e,r){var n={length:-1};n[r?(-1>>>0)-1:0]=true;return i(function(){t(e,n,function(){throw new RangeError("should not reach here")},[])})};if(!Ie(Array.prototype.forEach)){var Ee=Array.prototype.forEach;K(Array.prototype,"forEach",function forEach(t){return e(Ee,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.map)){var Me=Array.prototype.map;K(Array.prototype,"map",function map(t){return e(Me,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.filter)){var Pe=Array.prototype.filter;K(Array.prototype,"filter",function filter(t){return e(Pe,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.some)){var xe=Array.prototype.some;K(Array.prototype,"some",function some(t){return e(xe,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.every)){var Ne=Array.prototype.every;K(Array.prototype,"every",function every(t){return e(Ne,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.reduce)){var Ce=Array.prototype.reduce;K(Array.prototype,"reduce",function reduce(t){return e(Ce,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.reduceRight,true)){var Ae=Array.prototype.reduceRight;K(Array.prototype,"reduceRight",function reduceRight(t){return e(Ae,this.length>=0?this:[],arguments)},true)}if(Number("0o10")!==8||Number("0b10")!==2){var ke=Number;var _e=/^0b/i;var Re=/^0o/i;var Fe=_e.test.bind(_e);var De=Re.test.bind(Re);var ze=function(e){var t;if(typeof e.valueOf==="function"){t=e.valueOf();if($.primitive(t)){return t}}if(typeof e.toString==="function"){t=e.toString();if($.primitive(t)){return t}}throw new TypeError("No default value")};var Le=function(){return function Number(e){var t=$.primitive(e)?e:ze(e,"number");if(typeof t==="string"){if(Fe(t)){t=parseInt(M(t,2),2)}else if(De(t)){t=parseInt(M(t,2),8)}}var r=this;var n=i(function(){Number.prototype.valueOf.call(r);return true});if(r instanceof Number&&!n){return new ke(t)}return ke(t)}}();H(ke,Le,{});Number=Le;W.redefine(w,"Number",Le)}var qe=Math.pow(2,53)-1;g(Number,{MAX_SAFE_INTEGER:qe,MIN_SAFE_INTEGER:-qe,EPSILON:2.220446049250313e-16,parseInt:w.parseInt,parseFloat:w.parseFloat,isFinite:U,isInteger:function isInteger(e){return U(e)&&te.ToInteger(e)===e},isSafeInteger:function isSafeInteger(e){return Number.isInteger(e)&&_(e)<=Number.MAX_SAFE_INTEGER},isNaN:J});b(Number,"parseInt",w.parseInt,Number.parseInt!==w.parseInt);if(![,1].find(function(e,t){return t===0})){K(Array.prototype,"find",me.find)}if([,1].findIndex(function(e,t){return t===0})!==0){K(Array.prototype,"findIndex",me.findIndex)}var Ge=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var We=function sliceArgs(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*R((1+t)/(1-t))},cbrt:function cbrt(e){var t=Number(e);if(t===0){return t}var r=t<0,n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=Math.exp(R(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function clz32(e){var r=Number(e);var n=te.ToUint32(r);if(n===0){return 32}return It?t(It,n):31-k(R(n+.5)*Math.LOG2E)},cosh:function cosh(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!j(t)){return Infinity}if(t<0){t=-t}if(t>21){return Math.exp(t)/2}return(Math.exp(t)+Math.exp(-t))/2},expm1:function expm1(e){var t=Number(e);if(t===-Infinity){return-1}if(!j(t)||t===0){return t}if(_(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function hypot(e,t){var r=0;var n=0;for(var o=0;o0?i/n*(i/n):i}}return n===Infinity?Infinity:n*F(r)},log2:function log2(e){return R(e)*Math.LOG2E},log10:function log10(e){return R(e)*Math.LOG10E},log1p:function log1p(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*(R(1+t)/(1+t-1))},sign:function sign(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function sinh(e){var t=Number(e);if(!j(t)||t===0){return t}if(_(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function tanh(e){var t=Number(e);if(Number.isNaN(t)||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 trunc(e){var t=Number(e);return t<0?-k(-t):k(t)},imul:function imul(e,t){var r=te.ToUint32(e);var n=te.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function fround(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||J(t)){return t}var r=Math.sign(t);var n=_(t);if(nSt||J(i)){return r*Infinity}return r*i}};g(Math,Et);b(Math,"log1p",Et.log1p,Math.log1p(-1e-17)!==-1e-17);b(Math,"asinh",Et.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));b(Math,"tanh",Et.tanh,Math.tanh(-2e-17)!==-2e-17);b(Math,"acosh",Et.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);b(Math,"cbrt",Et.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);b(Math,"sinh",Et.sinh,Math.sinh(-2e-17)!==-2e-17);var Mt=Math.expm1(10);b(Math,"expm1",Et.expm1,Mt>22025.465794806718||Mt<22025.465794806718);var Pt=Math.round;var xt=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var Nt=Ot+1;var Ct=2*Ot-1;var At=[Nt,Ct].every(function(e){return Math.round(e)===e});b(Math,"round",function round(e){var t=k(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!xt||!At);W.preserveToString(Math.round,Pt);var kt=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=Et.imul;W.preserveToString(Math.imul,kt)}if(Math.imul.length!==2){K(Math,"imul",function imul(t,r){return e(kt,Math,arguments)})}var _t=function(){var e=w.setTimeout;if(typeof e!=="function"&&typeof e!=="object"){return}te.IsPromise=function(e){if(!te.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var r=function(e){if(!te.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.promise=new e(r);if(!(te.IsCallable(t.resolve)&&te.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var n;if(typeof window!=="undefined"&&te.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){P(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=N(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=w.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=te.IsCallable(w.setImmediate)?w.setImmediate.bind(w):typeof process==="object"&&process.nextTick?process.nextTick:o()||(te.IsCallable(n)?n():function(t){e(t,0)});var a=1;var u=2;var s=3;var f=4;var l=5;var p=function(e,t){var r=e.capabilities;var n=e.handler;var o,i=false,s;if(n===a){o=t}else if(n===u){o=t;i=true}else{try{o=n(t)}catch(f){o=f;i=true}}s=i?r.reject:r.resolve;s(o)};var v=function(e,t){c(e,function(e){i(function(){p(e,t)})})};var y=function(e,t){var r=e._promise;var n=r.fulfillReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=f;v(n,t)};var h=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=l;v(n,t)};var b=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return h(e,new TypeError("Self resolution"))}if(!te.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return h(e,o)}if(!te.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return h(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=b(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var m=function(e){if(!te.TypeIsObject(e)){throw new TypeError("Promise is not object")}var t=e[G];if(t!==void 0&&t!==null){return t}return e};var O=function(){return function Promise(e){if(!(this instanceof Promise)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!te.IsCallable(e)){throw new TypeError("not a valid resolver")}var t=re(this,Promise,j,{_promise:{result:void 0,state:s,fulfillReactions:[],rejectReactions:[]}});var r=b(t);var n=r.reject;try{e(r.resolve,n)}catch(o){n(o)}return t}}();var j=O.prototype;var S=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var T=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;var s=0;while(true){try{a=te.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(f){e.done=true;throw f}o[s]=void 0;var c=t.resolve(u);var l=S(s,o,r,i);i.count++;c.then(l,r.reject);s+=1}if(--i.count===0){var p=r.resolve;p(o)}return r.promise};var I=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=te.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);a.then(r.resolve,r.reject)}return r.promise};g(O,{all:function all(e){var t=m(this);var n=new r(t);var o,i;try{o=te.GetIterator(e);i={iterator:o,done:false};return T(i,t,n)}catch(a){if(i&&!i.done){try{te.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},race:function race(e){var t=m(this);var n=new r(t);var o,i;try{o=te.GetIterator(e);i={iterator:o,done:false};return I(i,t,n)}catch(a){if(i&&!i.done){try{te.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},reject:function reject(e){var t=this;var n=new r(t);var o=n.reject;o(e);return n.promise},resolve:function resolve(e){var t=this;if(te.IsPromise(e)){var n=e.constructor;if(n===t){return e}}var o=new r(t);var i=o.resolve;i(e);return o.promise}});g(j,{"catch":function(e){return this.then(void 0,e)},then:function then(e,t){var n=this;if(!te.IsPromise(n)){throw new TypeError("not a promise"); -}var o=te.SpeciesConstructor(n,O);var c=new r(o);if(!te.IsCallable(e)){e=a}if(!te.IsCallable(t)){t=u}var v={capabilities:c,handler:e};var y={capabilities:c,handler:t};var h=n._promise,b;if(h.state===s){P(h.fulfillReactions,v);P(h.rejectReactions,y)}else if(h.state===f){b=h.result;i(function(){p(v,b)})}else if(h.state===l){b=h.result;i(function(){p(y,b)})}else{throw new TypeError("unexpected Promise state")}return c.promise}});return O}();if(w.Promise){delete w.Promise.accept;delete w.Promise.defer;delete w.Promise.prototype.chain}if(typeof _t==="function"){g(w,{Promise:_t});var Rt=m(w.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Ft=!o(function(){w.Promise.reject(42).then(null,5).then(null,L)});var Dt=o(function(){w.Promise.call(3,L)});var zt=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(w.Promise);if(!Rt||!Ft||!Dt||zt){Promise=_t;K(w,"Promise",_t)}V(Promise)}var Lt=function(e){var t=Object.keys(l(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var qt=Lt(["z","a","bb"]);var Gt=Lt(["z",1,"a","3",2]);if(s){var Wt=function fastkey(e){if(!qt){return null}var t=typeof e;if(t==="undefined"||e===null){return"^"+String(e)}else if(t==="string"){return"$"+e}else if(t==="number"){if(!Gt){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var Ht=function emptyObject(){return Object.create?Object.create(null):{}};var Bt=function addIterableToMap(e,n,o){if(r(o)||$.string(o)){c(o,function(e){n.set(e[0],e[1])})}else if(o instanceof e){t(e.prototype.forEach,o,function(e,t){n.set(t,e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.set;if(!te.IsCallable(a)){throw new TypeError("bad map")}i=te.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=te.IteratorStep(i);if(u===false){break}var s=u.value;try{if(!te.TypeIsObject(s)){throw new TypeError("expected iterable of pairs")}t(a,n,s[0],s[1])}catch(f){te.IteratorClose(i,true);throw f}}}}};var Vt=function addIterableToSet(e,n,o){if(r(o)||$.string(o)){c(o,function(e){n.add(e)})}else if(o instanceof e){t(e.prototype.forEach,o,function(e){n.add(e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.add;if(!te.IsCallable(a)){throw new TypeError("bad set")}i=te.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=te.IteratorStep(i);if(u===false){break}var s=u.value;try{t(a,n,s)}catch(f){te.IteratorClose(i,true);throw f}}}}};var $t={Map:function(){var e={};var r=function MapEntry(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function isRemoved(){return this.key===e};var n=function isMap(e){return!!e._es6map};var o=function requireMapSlot(e,t){if(!te.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+String(e))}};var i=function MapIterator(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function next(){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}}};Z(i.prototype);var a=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=re(this,Map,u,{_es6map:true,_head:null,_storage:Ht(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Bt(Map,e,arguments[0])}return e};var u=a.prototype;W.getter(u,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});g(u,{get:function get(e){o(this,"get");var t=Wt(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(te.SameValueZero(i.key,e)){return i.value}}},has:function has(e){o(this,"has");var t=Wt(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(te.SameValueZero(n.key,e)){return true}}return false},set:function set(e,t){o(this,"set");var n=this._head,i=n,a;var u=Wt(e);if(u!==null){if(typeof this._storage[u]!=="undefined"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(te.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(te.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},"delete":function(t){o(this,"delete");var r=this._head,n=r;var i=Wt(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(te.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 clear(){o(this,"clear");this._size=0;this._storage=Ht();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 keys(){o(this,"keys");return new i(this,"key")},values:function values(){o(this,"values");return new i(this,"value")},entries:function entries(){o(this,"entries");return new i(this,"key+value")},forEach:function forEach(e){o(this,"forEach");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});Z(u,u.entries);return a}(),Set:function(){var e=function isSet(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function requireSetSlot(t,r){if(!te.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+String(t))}};var n=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=re(this,Set,o,{_es6set:true,"[[SetData]]":null,_storage:Ht()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){Vt(Set,e,arguments[0])}return e};var o=n.prototype;var i=function ensureMap(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new $t.Map;c(Object.keys(e._storage),function(e){if(e==="^null"){e=null}else if(e==="^undefined"){e=void 0}else{var r=e.charAt(0);if(r==="$"){e=M(e,1)}else if(r==="n"){e=+M(e,1)}else if(r==="b"){e=e==="btrue"}else{e=+e}}t.set(e,e)});e._storage=null}};W.getter(n.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});g(n.prototype,{has:function has(e){r(this,"has");var t;if(this._storage&&(t=Wt(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function add(e){r(this,"add");var t;if(this._storage&&(t=Wt(e))!==null){this._storage[t]=true;return this}i(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){r(this,"delete");var t;if(this._storage&&(t=Wt(e))!==null){var n=D(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function clear(){r(this,"clear");if(this._storage){this._storage=Ht()}else{this["[[SetData]]"].clear()}},values:function values(){r(this,"values");i(this);return this["[[SetData]]"].values()},entries:function entries(){r(this,"entries");i(this);return this["[[SetData]]"].entries()},forEach:function forEach(e){r(this,"forEach");var n=arguments.length>1?arguments[1]:null;var o=this;i(o);this["[[SetData]]"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});b(n.prototype,"keys",n.prototype.values,true);Z(n.prototype,n.prototype.values);return n}()};if(w.Map||w.Set){var Jt=i(function(){return new Map([[1,2]]).get(1)===2});if(!Jt){var Ut=w.Map;w.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new Ut;if(arguments.length>0){Bt(Map,e,arguments[0])}Object.setPrototypeOf(e,w.Map.prototype);b(e,"constructor",Map,true);return e};w.Map.prototype=d(Ut.prototype);W.preserveToString(w.Map,Ut)}var Kt=new Map;var Xt=function(e){e["delete"](0);e["delete"](-0);e.set(0,3);e.get(-0,4);return e.get(0)===3&&e.get(-0)===4}(Kt);var Zt=Kt.set(1,2)===Kt;if(!Xt||!Zt){var Qt=Map.prototype.set;K(Map.prototype,"set",function set(e,r){t(Qt,this,e===0?0:e,r);return this})}if(!Xt){var Yt=Map.prototype.get;var er=Map.prototype.has;g(Map.prototype,{get:function get(e){return t(Yt,this,e===0?0:e)},has:function has(e){return t(er,this,e===0?0:e)}},true);W.preserveToString(Map.prototype.get,Yt);W.preserveToString(Map.prototype.has,er)}var tr=new Set;var rr=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(tr);var nr=tr.add(1)===tr;if(!rr||!nr){var or=Set.prototype.add;Set.prototype.add=function add(e){t(or,this,e===0?0:e);return this};W.preserveToString(Set.prototype.add,or)}if(!rr){var ir=Set.prototype.has;Set.prototype.has=function has(e){return t(ir,this,e===0?0:e)};W.preserveToString(Set.prototype.has,ir);var ar=Set.prototype["delete"];Set.prototype["delete"]=function SetDelete(e){return t(ar,this,e===0?0:e)};W.preserveToString(Set.prototype["delete"],ar)}var ur=m(w.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var sr=Object.setPrototypeOf&&!ur;var fr=function(){try{return!(w.Map()instanceof w.Map)}catch(e){return e instanceof TypeError}}();if(w.Map.length!==0||sr||!fr){var cr=w.Map;w.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new cr;if(arguments.length>0){Bt(Map,e,arguments[0])}Object.setPrototypeOf(e,Map.prototype);b(e,"constructor",Map,true);return e};w.Map.prototype=cr.prototype;W.preserveToString(w.Map,cr)}var lr=m(w.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var pr=Object.setPrototypeOf&&!lr;var vr=function(){try{return!(w.Set()instanceof w.Set)}catch(e){return e instanceof TypeError}}();if(w.Set.length!==0||pr||!vr){var yr=w.Set;w.Set=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}var e=new yr;if(arguments.length>0){Vt(Set,e,arguments[0])}Object.setPrototypeOf(e,Set.prototype);b(e,"constructor",Set,true);return e};w.Set.prototype=yr.prototype;W.preserveToString(w.Set,yr)}var hr=!i(function(){return(new Map).keys().next().done});if(typeof w.Map.prototype.clear!=="function"||(new w.Set).size!==0||(new w.Map).size!==0||typeof w.Map.prototype.keys!=="function"||typeof w.Set.prototype.keys!=="function"||typeof w.Map.prototype.forEach!=="function"||typeof w.Set.prototype.forEach!=="function"||a(w.Map)||a(w.Set)||typeof(new w.Map).keys().next!=="function"||hr||!ur){delete w.Map;delete w.Set;g(w,{Map:$t.Map,Set:$t.Set},true)}if(w.Set.prototype.keys!==w.Set.prototype.values){b(w.Set.prototype,"keys",w.Set.prototype.values,true)}Z(Object.getPrototypeOf((new w.Map).keys()));Z(Object.getPrototypeOf((new w.Set).keys()));if(f&&w.Set.prototype.has.name!=="has"){var br=w.Set.prototype.has;K(w.Set.prototype,"has",function has(e){return t(br,this,e)})}}g(w,$t);V(w.Map);V(w.Set)}if(!w.Reflect){b(w,"Reflect",{})}var gr=w.Reflect;var dr=function throwUnlessTargetIsObject(e){if(!te.TypeIsObject(e)){throw new TypeError("target must be an object")}};var mr={apply:function apply(){return e(te.Call,null,arguments)},construct:function construct(e,t){if(!te.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!te.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return te.Construct(e,t,r,"internal")},deleteProperty:function deleteProperty(e,t){dr(e);if(s){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function enumerate(e){dr(e);return new be(e,"key")},has:function has(e,t){dr(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(mr,{ownKeys:function ownKeys(e){dr(e);var t=Object.getOwnPropertyNames(e);if(te.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var Or=function ConvertExceptionToBoolean(e){return!o(e)};if(Object.preventExtensions){Object.assign(mr,{isExtensible:function isExtensible(e){dr(e);return Object.isExtensible(e)},preventExtensions:function preventExtensions(e){dr(e);return Or(function(){Object.preventExtensions(e)})}})}if(s){var wr=function get(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(!o){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return wr(i,r,n)}if("value"in o){return o.value}if(o.get){return t(o.get,n)}return undefined};var jr=function set(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return jr(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!te.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return gr.defineProperty(o,r,{value:n})}else{return gr.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};Object.assign(mr,{defineProperty:function defineProperty(e,t,r){dr(e);return Or(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){dr(e);return Object.getOwnPropertyDescriptor(e,t)},get:function get(e,t){dr(e);var r=arguments.length>2?arguments[2]:e;return wr(e,t,r)},set:function set(e,t,r){dr(e);var n=arguments.length>3?arguments[3]:e;return jr(e,t,r,n)}})}if(Object.getPrototypeOf){var Sr=Object.getPrototypeOf;mr.getPrototypeOf=function getPrototypeOf(e){dr(e);return Sr(e)}}if(Object.setPrototypeOf&&mr.getPrototypeOf){var Tr=function(e,t){while(t){if(e===t){return true}t=mr.getPrototypeOf(t)}return false};Object.assign(mr,{setPrototypeOf:function setPrototypeOf(e,t){dr(e);if(t!==null&&!te.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===gr.getPrototypeOf(e)){return true}if(gr.isExtensible&&!gr.isExtensible(e)){return false}if(Tr(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var Ir=function(e,t){if(!te.IsCallable(w.Reflect[e])){b(w.Reflect,e,t)}else{var r=i(function(){w.Reflect[e](1);w.Reflect[e](NaN);w.Reflect[e](true);return true});if(r){K(w.Reflect,e,t)}}};Object.keys(mr).forEach(function(e){Ir(e,mr[e])});if(f&&w.Reflect.getPrototypeOf.name!=="getPrototypeOf"){var Er=w.Reflect.getPrototypeOf;K(w.Reflect,"getPrototypeOf",function getPrototypeOf(e){return t(Er,w.Reflect,e)})}if(w.Reflect.setPrototypeOf){if(i(function(){w.Reflect.setPrototypeOf(1,{});return true})){K(w.Reflect,"setPrototypeOf",mr.setPrototypeOf)}}if(w.Reflect.defineProperty){if(!i(function(){var e=!w.Reflect.defineProperty(1,"test",{value:1});var t=typeof Object.preventExtensions!=="function"||!w.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t})){K(w.Reflect,"defineProperty",mr.defineProperty)}}if(w.Reflect.construct){if(!i(function(){var e=function F(){};return w.Reflect.construct(function(){},[],e)instanceof e})){K(w.Reflect,"construct",mr.construct)}}if(String(new Date(NaN))!=="Invalid Date"){var Mr=Date.prototype.toString;var Pr=function toString(){var e=+this;if(e!==e){return"Invalid Date"}return t(Mr,this)};K(Date.prototype,"toString",Pr)}var xr={anchor:function anchor(e){return te.CreateHTML(this,"a","name",e)},big:function big(){return te.CreateHTML(this,"big","","")},blink:function blink(){return te.CreateHTML(this,"blink","","")},bold:function bold(){return te.CreateHTML(this,"b","","")},fixed:function fixed(){return te.CreateHTML(this,"tt","","")},fontcolor:function fontcolor(e){return te.CreateHTML(this,"font","color",e)},fontsize:function fontsize(e){return te.CreateHTML(this,"font","size",e)},italics:function italics(){return te.CreateHTML(this,"i","","")},link:function link(e){return te.CreateHTML(this,"a","href",e)},small:function small(){return te.CreateHTML(this,"small","","")},strike:function strike(){return te.CreateHTML(this,"strike","","")},sub:function sub(){return te.CreateHTML(this,"sub","","")},sup:function sub(){return te.CreateHTML(this,"sup","","")}};c(Object.keys(xr),function(e){var r=String.prototype[e];var n=false;if(te.IsCallable(r)){var o=t(r,"",' " ');var i=E([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){K(String.prototype,e,xr[e])}});var Nr=function(){if(!$.symbol(q.iterator)){return false}var e=typeof JSON==="object"&&typeof JSON.stringify==="function"?JSON.stringify:null;if(!e){return false}if(typeof e(q())!=="undefined"){return true}if(e([q()])!=="[null]"){return true}var t={a:q()};t[q()]=true;if(e(t)!=="{}"){return true}return false}();var Cr=i(function(){if(!$.symbol(q.iterator)){return true}return JSON.stringify(Object(q()))==="{}"&&JSON.stringify([Object(q())])==="[{}]"});if(Nr||!Cr){var Ar=JSON.stringify;K(JSON,"stringify",function stringify(e){if(typeof e==="symbol"){return}var n;if(arguments.length>1){n=arguments[1]}var o=[e];if(!r(n)){var i=te.IsCallable(n)?n:null;var a=function(e,r){var o=n?t(n,this,e,r):r;if(typeof o!=="symbol"){if($.symbol(o)){return He({})(o)}else{return o}}};o.push(a)}else{o.push(n)}if(arguments.length>2){o.push(arguments[2])}return Ar.apply(this,o)})}return w}); +(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.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var o=function(e){try{e();return false}catch(t){return true}};var i=function valueOrFalseIfThrows(e){try{return e()}catch(t){return false}};var a=n(o);var u=function(){return!o(function(){Object.defineProperty({},"x",{get:function(){}})})};var f=!!Object.defineProperty&&u();var s=function foo(){}.name==="foo";var c=Function.call.bind(Array.prototype.forEach);var l=Function.call.bind(Array.prototype.reduce);var p=Function.call.bind(Array.prototype.filter);var v=Function.call.bind(Array.prototype.every);var y=function createDataProperty(e,t,r){if(f){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var h=function createDataPropertyOrThrow(e,t,r){y(e,t,r);if(!te.SameValue(e[t],r)){throw new TypeError("property is nonconfigurable")}};var b=function(e,t,r,n){if(!n&&t in e){return}if(f){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var g=function(e,t){c(Object.keys(t),function(r){var n=t[r];b(e,r,n,false)})};var d=Object.create||function(e,t){var r=function Prototype(){};r.prototype=e;var n=new r;if(typeof t!=="undefined"){Object.keys(t).forEach(function(e){W.defineByDescriptor(n,e,t[e])})}return n};var m=function(e,t){if(!Object.setPrototypeOf){return false}return i(function(){var r=function Subclass(t){var r=new e(t);Object.setPrototypeOf(r,Subclass.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=d(e.prototype,{constructor:{value:r}});return t(r)})};var O=function(){if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}throw new Error("unable to locate global object")};var w=O();var j=w.isFinite;var S=function(){return this===null}.call(null);var T=Function.call.bind(String.prototype.indexOf);var I=Function.call.bind(Object.prototype.toString);var E=Function.call.bind(Array.prototype.concat);var M=Function.call.bind(String.prototype.slice);var P=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var N=Function.call.bind(Array.prototype.shift);var C=Math.max;var A=Math.min;var k=Math.floor;var _=Math.abs;var R=Math.log;var F=Math.sqrt;var D=Function.call.bind(Object.prototype.hasOwnProperty);var z;var L=function(){};var q=w.Symbol||{};var G=q.species||"@@species";var W={getter:function(e,t,r){if(!f){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!f){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 getKey(){return e[t]},set:function setKey(r){e[t]=r}})},redefine:function(e,t,r){if(f){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(f){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){if(t&&te.IsCallable(t.toString)){b(e,"toString",t.toString.bind(t),true)}}};var H=function wrapConstructor(e,t,r){W.preserveToString(t,e);if(Object.setPrototypeOf){Object.setPrototypeOf(e,t)}if(f){c(Object.getOwnPropertyNames(e),function(n){if(n in L||r[n]){return}W.proxy(e,n,t)})}else{c(Object.keys(e),function(n){if(n in L||r[n]){return}t[n]=e[n]})}t.prototype=e.prototype;W.redefine(e.prototype,"constructor",t)};var B=function(){return this};var V=function(e){if(f&&!D(e,G)){W.getter(e,G,B)}};var $={primitive:function(e){return e===null||typeof e!=="function"&&typeof e!=="object"},object:function(e){return e!==null&&typeof e==="object"},string:function(e){return I(e)==="[object String]"},regex:function(e){return I(e)==="[object RegExp]"},symbol:function(e){return typeof w.Symbol==="function"&&typeof e==="symbol"}};var J=Number.isNaN||function isNaN(e){return e!==e};var U=Number.isFinite||function isFinite(e){return typeof e==="number"&&j(e)};var K=function overrideNative(e,t,r){var n=e[t];b(e,t,r,true);W.preserveToString(e[t],n)};var X=$.symbol(q.iterator)?q.iterator:"_es6-shim iterator_";if(w.Set&&typeof(new w.Set)["@@iterator"]==="function"){X="@@iterator"}var Z=function(e,t){var r=t||function iterator(){return this};b(e,X,r);if(!e[X]&&$.symbol(X)){e[X]=r}};var Q=function isArguments(e){return I(e)==="[object Arguments]"};var Y=function isArguments(e){return e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&I(e)!=="[object Array]"&&I(e.callee)==="[object Function]"};var ee=Q(arguments)?Q:Y;var te={Call:function Call(t,r){var n=arguments.length>2?arguments[2]:[];if(!te.IsCallable(t)){throw new TypeError(t+" is not a function")}return e(t,r,n)},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){te.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&I(e)==="[object Function]"},IsConstructor:function(e){return te.IsCallable(e)},ToInt32:function(e){return te.ToNumber(e)>>0},ToUint32:function(e){return te.ToNumber(e)>>>0},ToNumber:function(e){if(I(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=te.ToNumber(e);if(J(t)){return 0}if(t===0||!U(t)){return t}return(t>0?1:-1)*k(_(t))},ToLength:function(e){var t=te.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 te.TypeIsObject(e)&&(typeof e[X]!=="undefined"||ee(e))},GetIterator:function(e){if(ee(e)){return new z(e,"value")}var r=te.GetMethod(e,X);if(!te.IsCallable(r)){throw new TypeError("value is not an iterable")}var n=t(r,e);if(!te.TypeIsObject(n)){throw new TypeError("bad iterator")}return n},GetMethod:function(e,t){var r=te.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!te.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,r){var n=te.GetMethod(e,"return");if(n===void 0){return}var o,i;try{o=t(n,e)}catch(a){i=a}if(r){return}if(i){throw i}if(!te.TypeIsObject(o)){throw new TypeError("Iterator's return method returned a non-object.")}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!te.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=te.IteratorNext(e);var r=te.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){if(r===void 0){r=e}if(!n){return gr.construct(e,t,r)}var o=r.prototype;if(!te.TypeIsObject(o)){o=Object.prototype}var i=d(o);var a=te.Call(e,i,t);return te.TypeIsObject(a)?a:i},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!te.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[G];if(n===void 0||n===null){return t}if(!te.IsConstructor(n)){throw new TypeError("Bad @@species")}return n},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 f=i+">";var s=f+o;return s+""}};var re=function(e,t,r,n){if(!te.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!te.TypeIsObject(o)){o=r}e=d(o);for(var i in n){if(D(n,i)){var a=n[i];b(e,i,a,true)}}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var ne=String.fromCodePoint;K(String,"fromCodePoint",function fromCodePoint(t){return e(ne,this,arguments)})}var oe={fromCodePoint:function fromCodePoint(e){var t=[];var r;for(var n=0,o=arguments.length;n1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){P(t,String.fromCharCode(r))}else{r-=65536;P(t,String.fromCharCode((r>>10)+55296));P(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function raw(e){var t=te.ToObject(e,"bad callSite");var r=te.ToObject(t.raw,"bad raw value");var n=r.length;var o=te.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,f,s,c;while(a=o){break}f=a+1=ae){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return ie(t,r)},startsWith:function startsWith(e){te.RequireObjectCoercible(this);var t=String(this);if($.regex(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}var r=String(e);var n=arguments.length>1?arguments[1]:void 0;var o=C(te.ToInteger(n),0);return M(t,o,o+r.length)===r},endsWith:function endsWith(e){te.RequireObjectCoercible(this);var t=String(this);if($.regex(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}var r=String(e);var n=t.length;var o=arguments.length>1?arguments[1]:void 0;var i=typeof o==="undefined"?n:te.ToInteger(o);var a=A(C(i,0),n);return M(t,a-r.length,a)===r},includes:function includes(e){if($.regex(e)){throw new TypeError('"includes" does not accept a RegExp')}var t;if(arguments.length>1){t=arguments[1]}return T(this,e,t)!==-1},codePointAt:function codePointAt(e){te.RequireObjectCoercible(this);var t=String(this);var r=te.ToInteger(e);var n=t.length;if(r>=0&&r56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",Infinity)!==false){K(String.prototype,"includes",ue.includes)}if(String.prototype.startsWith&&String.prototype.endsWith){var fe=o(function(){"/a/".startsWith(/a/)});var se="abc".startsWith("a",Infinity)===false;if(!fe||!se){K(String.prototype,"startsWith",ue.startsWith);K(String.prototype,"endsWith",ue.endsWith)}}g(String.prototype,ue);var ce="\x85".trim().length!==1;if(ce){delete String.prototype.trim;var le=[" \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 pe=new RegExp("(^["+le+"]+)|(["+le+"]+$)","g");g(String.prototype,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(pe,"")}})}var ve=function(e){te.RequireObjectCoercible(e);this._s=String(e);this._i=0};ve.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}};Z(ve.prototype);Z(String.prototype,function(){return new ve(this)});var ye={from:function from(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!te.IsCallable(n)){throw new TypeError("Array.from: when provided, the second argument must be a function")}i=arguments.length>2?arguments[2]:void 0;o=true}var a=ee(e)||te.GetMethod(e,X);var u,f,s;if(a!==void 0){f=te.IsConstructor(r)?Object(new r):[];var c=te.GetIterator(e);var l,p;s=0;while(true){l=te.IteratorStep(c);if(l===false){break}p=l.value;try{if(o){p=i!==undefined?t(n,i,p,s):n(p,s)}f[s]=p}catch(v){te.IteratorClose(c,true);throw v}s+=1}u=s}else{var y=te.ToObject(e);u=te.ToLength(y.length);f=te.IsConstructor(r)?Object(new r(u)):new Array(u);var h;for(s=0;s0){e=N(t);if(!(e in this.object)){continue}if(this.kind==="key"){return he(e)}else if(this.kind==="value"){return he(this.object[e])}else{return he([e,this.object[e]])}}return he()}});Z(be.prototype);var de=Array.of===ye.of||function(){var e=function Foo(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!de){K(Array,"of",ye.of)}var me={copyWithin:function copyWithin(e,t){var r=arguments[2];var n=te.ToObject(this);var o=te.ToLength(n.length);var i=te.ToInteger(e);var a=te.ToInteger(t);var u=i<0?C(o+i,0):A(i,o);var f=a<0?C(o+a,0):A(a,o);r=typeof r==="undefined"?o:te.ToInteger(r);var s=r<0?C(o+r,0):A(r,o);var c=A(s-f,o-u);var l=1;if(f0){if(D(n,f)){n[u]=n[f]}else{delete n[f]}f+=l;u+=l;c-=1}return n},fill:function fill(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=te.ToObject(this);var o=te.ToLength(n.length);t=te.ToInteger(typeof t==="undefined"?0:t);r=te.ToInteger(typeof r==="undefined"?o:r);var i=t<0?C(o+t,0):A(t,o);var a=r<0?o+r:r;for(var u=i;u1?arguments[1]:null;for(var i=0,a;i1?arguments[1]:null;for(var i=0;i0&&typeof arguments[1]!=="undefined"){return e(Te,this,arguments)}else{return t(Te,this,r)}})}var Ie=function(e,r){var n={length:-1};n[r?(-1>>>0)-1:0]=true;return i(function(){t(e,n,function(){throw new RangeError("should not reach here")},[])})};if(!Ie(Array.prototype.forEach)){var Ee=Array.prototype.forEach;K(Array.prototype,"forEach",function forEach(t){return e(Ee,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.map)){var Me=Array.prototype.map;K(Array.prototype,"map",function map(t){return e(Me,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.filter)){var Pe=Array.prototype.filter;K(Array.prototype,"filter",function filter(t){return e(Pe,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.some)){var xe=Array.prototype.some;K(Array.prototype,"some",function some(t){return e(xe,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.every)){var Ne=Array.prototype.every;K(Array.prototype,"every",function every(t){return e(Ne,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.reduce)){var Ce=Array.prototype.reduce;K(Array.prototype,"reduce",function reduce(t){return e(Ce,this.length>=0?this:[],arguments)},true)}if(!Ie(Array.prototype.reduceRight,true)){var Ae=Array.prototype.reduceRight;K(Array.prototype,"reduceRight",function reduceRight(t){return e(Ae,this.length>=0?this:[],arguments)},true)}if(Number("0o10")!==8||Number("0b10")!==2){var ke=Number;var _e=/^0b/i;var Re=/^0o/i;var Fe=_e.test.bind(_e);var De=Re.test.bind(Re);var ze=function(e){var t;if(typeof e.valueOf==="function"){t=e.valueOf();if($.primitive(t)){return t}}if(typeof e.toString==="function"){t=e.toString();if($.primitive(t)){return t}}throw new TypeError("No default value")};var Le=function(){return function Number(e){var t=$.primitive(e)?e:ze(e,"number");if(typeof t==="string"){if(Fe(t)){t=parseInt(M(t,2),2)}else if(De(t)){t=parseInt(M(t,2),8)}}var r=this;var n=i(function(){Number.prototype.valueOf.call(r);return true});if(r instanceof Number&&!n){return new ke(t)}return ke(t)}}();H(ke,Le,{});Number=Le;W.redefine(w,"Number",Le)}var qe=Math.pow(2,53)-1;g(Number,{MAX_SAFE_INTEGER:qe,MIN_SAFE_INTEGER:-qe,EPSILON:2.220446049250313e-16,parseInt:w.parseInt,parseFloat:w.parseFloat,isFinite:U,isInteger:function isInteger(e){return U(e)&&te.ToInteger(e)===e},isSafeInteger:function isSafeInteger(e){return Number.isInteger(e)&&_(e)<=Number.MAX_SAFE_INTEGER},isNaN:J});b(Number,"parseInt",w.parseInt,Number.parseInt!==w.parseInt);if(![,1].find(function(e,t){return t===0})){K(Array.prototype,"find",me.find)}if([,1].findIndex(function(e,t){return t===0})!==0){K(Array.prototype,"findIndex",me.findIndex)}var Ge=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var We=function sliceArgs(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*R((1+t)/(1-t))},cbrt:function cbrt(e){var t=Number(e);if(t===0){return t}var r=t<0,n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=Math.exp(R(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function clz32(e){var r=Number(e);var n=te.ToUint32(r);if(n===0){return 32}return It?t(It,n):31-k(R(n+.5)*Math.LOG2E)},cosh:function cosh(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!j(t)){return Infinity}if(t<0){t=-t}if(t>21){return Math.exp(t)/2}return(Math.exp(t)+Math.exp(-t))/2},expm1:function expm1(e){var t=Number(e);if(t===-Infinity){return-1}if(!j(t)||t===0){return t}if(_(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function hypot(e,t){var r=0;var n=0;for(var o=0;o0?i/n*(i/n):i}}return n===Infinity?Infinity:n*F(r)},log2:function log2(e){return R(e)*Math.LOG2E},log10:function log10(e){return R(e)*Math.LOG10E},log1p:function log1p(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*(R(1+t)/(1+t-1))},sign:function sign(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function sinh(e){var t=Number(e);if(!j(t)||t===0){return t}if(_(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function tanh(e){var t=Number(e);if(Number.isNaN(t)||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 trunc(e){var t=Number(e);return t<0?-k(-t):k(t)},imul:function imul(e,t){var r=te.ToUint32(e);var n=te.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function fround(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||J(t)){return t}var r=Math.sign(t);var n=_(t);if(nSt||J(i)){return r*Infinity}return r*i}};g(Math,Et);b(Math,"log1p",Et.log1p,Math.log1p(-1e-17)!==-1e-17);b(Math,"asinh",Et.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));b(Math,"tanh",Et.tanh,Math.tanh(-2e-17)!==-2e-17);b(Math,"acosh",Et.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);b(Math,"cbrt",Et.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);b(Math,"sinh",Et.sinh,Math.sinh(-2e-17)!==-2e-17);var Mt=Math.expm1(10);b(Math,"expm1",Et.expm1,Mt>22025.465794806718||Mt<22025.465794806718);var Pt=Math.round;var xt=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var Nt=Ot+1;var Ct=2*Ot-1;var At=[Nt,Ct].every(function(e){return Math.round(e)===e});b(Math,"round",function round(e){var t=k(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!xt||!At);W.preserveToString(Math.round,Pt);var kt=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=Et.imul;W.preserveToString(Math.imul,kt)}if(Math.imul.length!==2){K(Math,"imul",function imul(t,r){return e(kt,Math,arguments)})}var _t=function(){var e=w.setTimeout;if(typeof e!=="function"&&typeof e!=="object"){return}te.IsPromise=function(e){if(!te.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var r=function(e){if(!te.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.promise=new e(r);if(!(te.IsCallable(t.resolve)&&te.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var n;if(typeof window!=="undefined"&&te.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){P(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=N(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=w.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=te.IsCallable(w.setImmediate)?w.setImmediate.bind(w):typeof process==="object"&&process.nextTick?process.nextTick:o()||(te.IsCallable(n)?n():function(t){e(t,0)});var a=1;var u=2;var f=3;var s=4;var l=5;var p=function(e,t){var r=e.capabilities;var n=e.handler;var o,i=false,f;if(n===a){o=t}else if(n===u){o=t;i=true}else{try{o=n(t)}catch(s){o=s;i=true}}f=i?r.reject:r.resolve;f(o)};var v=function(e,t){c(e,function(e){i(function(){p(e,t)})})};var y=function(e,t){var r=e._promise;var n=r.fulfillReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=s;v(n,t)};var h=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=l;v(n,t)};var b=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return h(e,new TypeError("Self resolution"))}if(!te.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return h(e,o)}if(!te.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return h(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=b(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var m=function(e){if(!te.TypeIsObject(e)){throw new TypeError("Promise is not object")}var t=e[G];if(t!==void 0&&t!==null){return t}return e};var O=function(){var e=function Promise(t){if(!(this instanceof e)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!te.IsCallable(t)){throw new TypeError("not a valid resolver")}var r=re(this,e,j,{_promise:{result:void 0,state:f,fulfillReactions:[],rejectReactions:[]}});var n=b(r);var o=n.reject;try{t(n.resolve,o)}catch(i){o(i)}return r};return e}();var j=O.prototype;var S=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var T=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;var f=0;while(true){try{a=te.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(s){e.done=true;throw s}o[f]=void 0;var c=t.resolve(u);var l=S(f,o,r,i);i.count++;c.then(l,r.reject);f+=1}if(--i.count===0){var p=r.resolve;p(o)}return r.promise};var I=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=te.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);a.then(r.resolve,r.reject)}return r.promise};g(O,{all:function all(e){var t=m(this);var n=new r(t);var o,i;try{o=te.GetIterator(e);i={iterator:o,done:false};return T(i,t,n)}catch(a){if(i&&!i.done){try{te.IteratorClose(o,true)}catch(u){a=u}}var f=n.reject;f(a);return n.promise}},race:function race(e){var t=m(this);var n=new r(t);var o,i;try{o=te.GetIterator(e);i={iterator:o,done:false};return I(i,t,n)}catch(a){if(i&&!i.done){try{te.IteratorClose(o,true)}catch(u){a=u}}var f=n.reject;f(a);return n.promise}},reject:function reject(e){var t=this;var n=new r(t);var o=n.reject;o(e);return n.promise},resolve:function resolve(e){var t=this;if(te.IsPromise(e)){var n=e.constructor;if(n===t){return e}}var o=new r(t);var i=o.resolve;i(e);return o.promise}});g(j,{"catch":function(e){return this.then(void 0,e)},then:function then(e,t){var n=this;if(!te.IsPromise(n)){throw new TypeError("not a promise"); +}var o=te.SpeciesConstructor(n,O);var c=new r(o);if(!te.IsCallable(e)){e=a}if(!te.IsCallable(t)){t=u}var v={capabilities:c,handler:e};var y={capabilities:c,handler:t};var h=n._promise,b;if(h.state===f){P(h.fulfillReactions,v);P(h.rejectReactions,y)}else if(h.state===s){b=h.result;i(function(){p(v,b)})}else if(h.state===l){b=h.result;i(function(){p(y,b)})}else{throw new TypeError("unexpected Promise state")}return c.promise}});return O}();if(w.Promise){delete w.Promise.accept;delete w.Promise.defer;delete w.Promise.prototype.chain}if(typeof _t==="function"){g(w,{Promise:_t});var Rt=m(w.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Ft=!o(function(){w.Promise.reject(42).then(null,5).then(null,L)});var Dt=o(function(){w.Promise.call(3,L)});var zt=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(w.Promise);if(!Rt||!Ft||!Dt||zt){Promise=_t;K(w,"Promise",_t)}V(Promise)}var Lt=function(e){var t=Object.keys(l(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var qt=Lt(["z","a","bb"]);var Gt=Lt(["z",1,"a","3",2]);if(f){var Wt=function fastkey(e){if(!qt){return null}var t=typeof e;if(t==="undefined"||e===null){return"^"+String(e)}else if(t==="string"){return"$"+e}else if(t==="number"){if(!Gt){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var Ht=function emptyObject(){return Object.create?Object.create(null):{}};var Bt=function addIterableToMap(e,n,o){if(r(o)||$.string(o)){c(o,function(e){n.set(e[0],e[1])})}else if(o instanceof e){t(e.prototype.forEach,o,function(e,t){n.set(t,e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.set;if(!te.IsCallable(a)){throw new TypeError("bad map")}i=te.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=te.IteratorStep(i);if(u===false){break}var f=u.value;try{if(!te.TypeIsObject(f)){throw new TypeError("expected iterable of pairs")}t(a,n,f[0],f[1])}catch(s){te.IteratorClose(i,true);throw s}}}}};var Vt=function addIterableToSet(e,n,o){if(r(o)||$.string(o)){c(o,function(e){n.add(e)})}else if(o instanceof e){t(e.prototype.forEach,o,function(e){n.add(e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.add;if(!te.IsCallable(a)){throw new TypeError("bad set")}i=te.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=te.IteratorStep(i);if(u===false){break}var f=u.value;try{t(a,n,f)}catch(s){te.IteratorClose(i,true);throw s}}}}};var $t={Map:function(){var e={};var r=function MapEntry(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function isRemoved(){return this.key===e};var n=function isMap(e){return!!e._es6map};var o=function requireMapSlot(e,t){if(!te.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+String(e))}};var i=function MapIterator(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function next(){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}}};Z(i.prototype);var a=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=re(this,Map,u,{_es6map:true,_head:null,_storage:Ht(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Bt(Map,e,arguments[0])}return e};var u=a.prototype;W.getter(u,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});g(u,{get:function get(e){o(this,"get");var t=Wt(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(te.SameValueZero(i.key,e)){return i.value}}},has:function has(e){o(this,"has");var t=Wt(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(te.SameValueZero(n.key,e)){return true}}return false},set:function set(e,t){o(this,"set");var n=this._head,i=n,a;var u=Wt(e);if(u!==null){if(typeof this._storage[u]!=="undefined"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(te.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(te.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},"delete":function(t){o(this,"delete");var r=this._head,n=r;var i=Wt(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(te.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 clear(){o(this,"clear");this._size=0;this._storage=Ht();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 keys(){o(this,"keys");return new i(this,"key")},values:function values(){o(this,"values");return new i(this,"value")},entries:function entries(){o(this,"entries");return new i(this,"key+value")},forEach:function forEach(e){o(this,"forEach");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});Z(u,u.entries);return a}(),Set:function(){var e=function isSet(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function requireSetSlot(t,r){if(!te.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+String(t))}};var n=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=re(this,Set,o,{_es6set:true,"[[SetData]]":null,_storage:Ht()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){Vt(Set,e,arguments[0])}return e};var o=n.prototype;var i=function ensureMap(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new $t.Map;c(Object.keys(e._storage),function(e){if(e==="^null"){e=null}else if(e==="^undefined"){e=void 0}else{var r=e.charAt(0);if(r==="$"){e=M(e,1)}else if(r==="n"){e=+M(e,1)}else if(r==="b"){e=e==="btrue"}else{e=+e}}t.set(e,e)});e._storage=null}};W.getter(n.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});g(n.prototype,{has:function has(e){r(this,"has");var t;if(this._storage&&(t=Wt(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function add(e){r(this,"add");var t;if(this._storage&&(t=Wt(e))!==null){this._storage[t]=true;return this}i(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){r(this,"delete");var t;if(this._storage&&(t=Wt(e))!==null){var n=D(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function clear(){r(this,"clear");if(this._storage){this._storage=Ht()}else{this["[[SetData]]"].clear()}},values:function values(){r(this,"values");i(this);return this["[[SetData]]"].values()},entries:function entries(){r(this,"entries");i(this);return this["[[SetData]]"].entries()},forEach:function forEach(e){r(this,"forEach");var n=arguments.length>1?arguments[1]:null;var o=this;i(o);this["[[SetData]]"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});b(n.prototype,"keys",n.prototype.values,true);Z(n.prototype,n.prototype.values);return n}()};if(w.Map||w.Set){var Jt=i(function(){return new Map([[1,2]]).get(1)===2});if(!Jt){var Ut=w.Map;w.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new Ut;if(arguments.length>0){Bt(Map,e,arguments[0])}Object.setPrototypeOf(e,w.Map.prototype);b(e,"constructor",Map,true);return e};w.Map.prototype=d(Ut.prototype);W.preserveToString(w.Map,Ut)}var Kt=new Map;var Xt=function(e){e["delete"](0);e["delete"](-0);e.set(0,3);e.get(-0,4);return e.get(0)===3&&e.get(-0)===4}(Kt);var Zt=Kt.set(1,2)===Kt;if(!Xt||!Zt){var Qt=Map.prototype.set;K(Map.prototype,"set",function set(e,r){t(Qt,this,e===0?0:e,r);return this})}if(!Xt){var Yt=Map.prototype.get;var er=Map.prototype.has;g(Map.prototype,{get:function get(e){return t(Yt,this,e===0?0:e)},has:function has(e){return t(er,this,e===0?0:e)}},true);W.preserveToString(Map.prototype.get,Yt);W.preserveToString(Map.prototype.has,er)}var tr=new Set;var rr=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(tr);var nr=tr.add(1)===tr;if(!rr||!nr){var or=Set.prototype.add;Set.prototype.add=function add(e){t(or,this,e===0?0:e);return this};W.preserveToString(Set.prototype.add,or)}if(!rr){var ir=Set.prototype.has;Set.prototype.has=function has(e){return t(ir,this,e===0?0:e)};W.preserveToString(Set.prototype.has,ir);var ar=Set.prototype["delete"];Set.prototype["delete"]=function SetDelete(e){return t(ar,this,e===0?0:e)};W.preserveToString(Set.prototype["delete"],ar)}var ur=m(w.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var fr=Object.setPrototypeOf&&!ur;var sr=function(){try{return!(w.Map()instanceof w.Map)}catch(e){return e instanceof TypeError}}();if(w.Map.length!==0||fr||!sr){var cr=w.Map;w.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new cr;if(arguments.length>0){Bt(Map,e,arguments[0])}Object.setPrototypeOf(e,Map.prototype);b(e,"constructor",Map,true);return e};w.Map.prototype=cr.prototype;W.preserveToString(w.Map,cr)}var lr=m(w.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var pr=Object.setPrototypeOf&&!lr;var vr=function(){try{return!(w.Set()instanceof w.Set)}catch(e){return e instanceof TypeError}}();if(w.Set.length!==0||pr||!vr){var yr=w.Set;w.Set=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}var e=new yr;if(arguments.length>0){Vt(Set,e,arguments[0])}Object.setPrototypeOf(e,Set.prototype);b(e,"constructor",Set,true);return e};w.Set.prototype=yr.prototype;W.preserveToString(w.Set,yr)}var hr=!i(function(){return(new Map).keys().next().done});if(typeof w.Map.prototype.clear!=="function"||(new w.Set).size!==0||(new w.Map).size!==0||typeof w.Map.prototype.keys!=="function"||typeof w.Set.prototype.keys!=="function"||typeof w.Map.prototype.forEach!=="function"||typeof w.Set.prototype.forEach!=="function"||a(w.Map)||a(w.Set)||typeof(new w.Map).keys().next!=="function"||hr||!ur){delete w.Map;delete w.Set;g(w,{Map:$t.Map,Set:$t.Set},true)}if(w.Set.prototype.keys!==w.Set.prototype.values){b(w.Set.prototype,"keys",w.Set.prototype.values,true)}Z(Object.getPrototypeOf((new w.Map).keys()));Z(Object.getPrototypeOf((new w.Set).keys()));if(s&&w.Set.prototype.has.name!=="has"){var br=w.Set.prototype.has;K(w.Set.prototype,"has",function has(e){return t(br,this,e)})}}g(w,$t);V(w.Map);V(w.Set)}if(!w.Reflect){b(w,"Reflect",{})}var gr=w.Reflect;var dr=function throwUnlessTargetIsObject(e){if(!te.TypeIsObject(e)){throw new TypeError("target must be an object")}};var mr={apply:function apply(){return e(te.Call,null,arguments)},construct:function construct(e,t){if(!te.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!te.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return te.Construct(e,t,r,"internal")},deleteProperty:function deleteProperty(e,t){dr(e);if(f){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function enumerate(e){dr(e);return new be(e,"key")},has:function has(e,t){dr(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(mr,{ownKeys:function ownKeys(e){dr(e);var t=Object.getOwnPropertyNames(e);if(te.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var Or=function ConvertExceptionToBoolean(e){return!o(e)};if(Object.preventExtensions){Object.assign(mr,{isExtensible:function isExtensible(e){dr(e);return Object.isExtensible(e)},preventExtensions:function preventExtensions(e){dr(e);return Or(function(){Object.preventExtensions(e)})}})}if(f){var wr=function get(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(!o){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return wr(i,r,n)}if("value"in o){return o.value}if(o.get){return t(o.get,n)}return undefined};var jr=function set(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return jr(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!te.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return gr.defineProperty(o,r,{value:n})}else{return gr.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};Object.assign(mr,{defineProperty:function defineProperty(e,t,r){dr(e);return Or(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){dr(e);return Object.getOwnPropertyDescriptor(e,t)},get:function get(e,t){dr(e);var r=arguments.length>2?arguments[2]:e;return wr(e,t,r)},set:function set(e,t,r){dr(e);var n=arguments.length>3?arguments[3]:e;return jr(e,t,r,n)}})}if(Object.getPrototypeOf){var Sr=Object.getPrototypeOf;mr.getPrototypeOf=function getPrototypeOf(e){dr(e);return Sr(e)}}if(Object.setPrototypeOf&&mr.getPrototypeOf){var Tr=function(e,t){while(t){if(e===t){return true}t=mr.getPrototypeOf(t)}return false};Object.assign(mr,{setPrototypeOf:function setPrototypeOf(e,t){dr(e);if(t!==null&&!te.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===gr.getPrototypeOf(e)){return true}if(gr.isExtensible&&!gr.isExtensible(e)){return false}if(Tr(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var Ir=function(e,t){if(!te.IsCallable(w.Reflect[e])){b(w.Reflect,e,t)}else{var r=i(function(){w.Reflect[e](1);w.Reflect[e](NaN);w.Reflect[e](true);return true});if(r){K(w.Reflect,e,t)}}};Object.keys(mr).forEach(function(e){Ir(e,mr[e])});if(s&&w.Reflect.getPrototypeOf.name!=="getPrototypeOf"){var Er=w.Reflect.getPrototypeOf;K(w.Reflect,"getPrototypeOf",function getPrototypeOf(e){return t(Er,w.Reflect,e)})}if(w.Reflect.setPrototypeOf){if(i(function(){w.Reflect.setPrototypeOf(1,{});return true})){K(w.Reflect,"setPrototypeOf",mr.setPrototypeOf)}}if(w.Reflect.defineProperty){if(!i(function(){var e=!w.Reflect.defineProperty(1,"test",{value:1});var t=typeof Object.preventExtensions!=="function"||!w.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t})){K(w.Reflect,"defineProperty",mr.defineProperty)}}if(w.Reflect.construct){if(!i(function(){var e=function F(){};return w.Reflect.construct(function(){},[],e)instanceof e})){K(w.Reflect,"construct",mr.construct)}}if(String(new Date(NaN))!=="Invalid Date"){var Mr=Date.prototype.toString;var Pr=function toString(){var e=+this;if(e!==e){return"Invalid Date"}return t(Mr,this)};K(Date.prototype,"toString",Pr)}var xr={anchor:function anchor(e){return te.CreateHTML(this,"a","name",e)},big:function big(){return te.CreateHTML(this,"big","","")},blink:function blink(){return te.CreateHTML(this,"blink","","")},bold:function bold(){return te.CreateHTML(this,"b","","")},fixed:function fixed(){return te.CreateHTML(this,"tt","","")},fontcolor:function fontcolor(e){return te.CreateHTML(this,"font","color",e)},fontsize:function fontsize(e){return te.CreateHTML(this,"font","size",e)},italics:function italics(){return te.CreateHTML(this,"i","","")},link:function link(e){return te.CreateHTML(this,"a","href",e)},small:function small(){return te.CreateHTML(this,"small","","")},strike:function strike(){return te.CreateHTML(this,"strike","","")},sub:function sub(){return te.CreateHTML(this,"sub","","")},sup:function sub(){return te.CreateHTML(this,"sup","","")}};c(Object.keys(xr),function(e){var r=String.prototype[e];var n=false;if(te.IsCallable(r)){var o=t(r,"",' " ');var i=E([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){K(String.prototype,e,xr[e])}});var Nr=function(){if(!$.symbol(q.iterator)){return false}var e=typeof JSON==="object"&&typeof JSON.stringify==="function"?JSON.stringify:null;if(!e){return false}if(typeof e(q())!=="undefined"){return true}if(e([q()])!=="[null]"){return true}var t={a:q()};t[q()]=true;if(e(t)!=="{}"){return true}return false}();var Cr=i(function(){if(!$.symbol(q.iterator)){return true}return JSON.stringify(Object(q()))==="{}"&&JSON.stringify([Object(q())])==="[{}]"});if(Nr||!Cr){var Ar=JSON.stringify;K(JSON,"stringify",function stringify(e){if(typeof e==="symbol"){return}var n;if(arguments.length>1){n=arguments[1]}var o=[e];if(!r(n)){var i=te.IsCallable(n)?n:null;var a=function(e,r){var o=n?t(n,this,e,r):r;if(typeof o!=="symbol"){if($.symbol(o)){return He({})(o)}else{return o}}};o.push(a)}else{o.push(n)}if(arguments.length>2){o.push(arguments[2])}return Ar.apply(this,o)})}return w}); //# sourceMappingURL=es6-shim.map diff --git a/package.json b/package.json index cf4cfa1d..135c0e75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.33.7", + "version": "0.33.8", "author": "Paul Miller (http://paulmillr.com)", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [