From a515321d5f0fb60ac3f77f89ed7792dad09243bf Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 21 Jun 2015 10:30:27 -0700 Subject: [PATCH] v0.32.3 --- CHANGELOG.md | 11 +++++++++++ bower.json | 2 +- component.json | 2 +- es6-sham.js | 4 ++-- es6-sham.min.js | 4 ++-- es6-shim.js | 4 ++-- es6-shim.map | 2 +- es6-shim.min.js | 8 ++++---- package.json | 2 +- 9 files changed, 25 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index deb29d3c..dbcefb10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # es6-shim x.x.x (not yet released) +# es6-shim 0.32.3 (21 Jun 2015) +* [Fix] Override or wrap native `Reflect` methods in Microsoft Edge v0.11 as required. +* [Fix] Edge v0.11: `Array.from([], undefined)` should not throw +* [Fix] Fix a bug in `Array.from handles iterables` runtime clobbering, which would always replace the native function +* [Fix] Ensure that `Set#has` has the correct name in Edge v0.11 +* [Tests] Add `Map`/`Set` error messages for Edge v0.11 +* [Tests] Fix `Math.fround` test value for Edge v0.11 +* [Tests] Bail out of `Map`/`Set` test blocks if they don't exist +* [Docs] Update ES5 subclassing instructions in the README. +* [Dev Deps] Update `es5-shim` + # es6-shim 0.32.2 (17 Jun 2015) * [Fix] `Object.assign` with no sources should coerce to an object (#348) * [Fix] `String#includes` should throw when given a `RegExp` (#349) diff --git a/bower.json b/bower.json index 0cad7883..42292f0f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.32.2", + "version": "0.32.3", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/component.json b/component.json index b4283de6..fa20fe37 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.32.2", + "version": "0.32.3", "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 559a3f88..1c4d658a 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.32.2 - * see https://github.com/paulmillr/es6-shim/blob/0.32.2/LICENSE + * es6-sham: v0.32.3 + * see https://github.com/paulmillr/es6-shim/blob/0.32.3/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/es6-sham.min.js b/es6-sham.min.js index 469544a5..33d6024e 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.32.2 - * see https://github.com/paulmillr/es6-shim/blob/0.32.2/LICENSE + * es6-sham: v0.32.3 + * see https://github.com/paulmillr/es6-shim/blob/0.32.3/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/es6-shim.js b/es6-shim.js index f3dcf0a9..87e31beb 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.32.2 - * see https://github.com/paulmillr/es6-shim/blob/0.32.2/LICENSE + * es6-shim: v0.32.3 + * see https://github.com/paulmillr/es6-shim/blob/0.32.3/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ diff --git a/es6-shim.map b/es6-shim.map index a226caab..bd57108f 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","not","notThunker","func","notThunk","arguments","throwsError","e","valueOrFalseIfThrows","isCallableWithoutNew","arePropertyDescriptorsSupported","Object","defineProperty","supportsDescriptors","_forEach","Array","prototype","forEach","_reduce","reduce","_filter","filter","_every","every","object","name","value","force","configurable","enumerable","writable","defineProperties","map","keys","method","create","properties","Prototype","key","Value","defineByDescriptor","supportsSubclassing","C","f","setPrototypeOf","Sub","Subclass","arg","o","constructor","startsWithRejectsRegex","String","startsWith","startsWithHandlesInfinity","Infinity","getGlobal","globals","globalIsFinite","isFinite","hasStrictMode","startsWithIsCompliant","_indexOf","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","defaultSpeciesGetter","addDefaultSpecies","getter","Type","x","string","regex","symbol","numberIsNaN","Number","isNaN","numberIsFinite","TypeError","get","proxy","originalObject","targetObject","originalDescriptor","getOwnPropertyDescriptor","getKey","set","setKey","redefine","property","newValue","descriptor","preserveToString","target","source","overrideNative","replacement","original","$iterator$","iterator","Set","addIterator","impl","implementation","isArguments","str","result","length","callee","ES","Call","F","V","args","IsCallable","RequireObjectCoercible","optMessage","TypeIsObject","ToObject","IsConstructor","ToInt32","ToNumber","ToUint32","ToInteger","number","ToLength","len","MAX_SAFE_INTEGER","SameValue","a","b","SameValueZero","IsIterable","GetIterator","itFn","GetMethod","it","p","IteratorComplete","iterResult","IteratorClose","completionIsThrow","returnMethod","innerResult","innerException","IteratorNext","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",1,"stringRepeat","repeat","s","times","half","stringMaxLength","StringPrototypeShims","thisStr","numTimes","searchString","searchStr","startArg","start","endsWith","thisLen","posArg","pos","end","includes","position","codePointAt","first","charCodeAt","isEnd","second","hasStringTrimBug","trim","ws","trimRegexp","RegExp","StringIterator","_s","_i","substr","ArrayShims","from","items","mapFn","mapping","T","usingIterator","nextValue","undefined","arrayLike","of","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","toLengthsCorrectly","reversed","originalForEach","callbackFn","originalMap","originalFilter","some","originalSome","originalEvery","originalReduce","reduceRight","originalReduceRight","maxSafeInteger","pow","MIN_SAFE_INTEGER","EPSILON","parseInt","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","getOwnPropertyNames","objectGOPNAcceptsPrimitives","cachedWindowNames","window","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","global","ignoreCase","multiline","unicode","sticky","regExpSupportsFlagsWithRegex","OrigRegExp","RegExpShim","pattern","calledWithNew","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","IsPromise","promise","_promise","PromiseCapability","capability","resolver","resolve","reject","setTimeout","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","k","preservesInsertionOrder","preservesNumericInsertionOrder","fastkey","type","emptyObject","addIterableToMap","MapConstructor","isArray","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","throwUnlessTargetIsObject","deleteProperty","desc","enumerate","ownKeys","callAndCatchException","ConvertExceptionToBoolean","internalGet","receiver","parent","internalSet","existingDesc","propertyKey","attributes","objectDotGetPrototypeOf","willCreateCircularPrototype","Date","dateToString","shimmedDateToString","valueOf","stringHTMLshims","anchor","big","blink","bold","fixed","fontcolor","color","fontsize","italics","link","url","small","strike","sub","sup","shouldOverwrite","output","quotesCount","match","toLowerCase"],"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,KAExC,IAAII,GAAM,QAASC,IAAWC,GAC5B,MAAO,SAASC,KAAa,OAAQT,EAAOQ,EAAMT,KAAMW,YAE1D,IAAIC,GAAc,SAAUH,GAC1B,IACEA,GACA,OAAO,OACP,MAAOI,GACP,MAAO,OAGX,IAAIC,GAAuB,QAASA,IAAqBL,GACvD,IACE,MAAOA,KACP,MAAOI,GACP,MAAO,QAIX,IAAIE,GAAuBR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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","not","notThunker","func","notThunk","arguments","throwsError","e","valueOrFalseIfThrows","isCallableWithoutNew","arePropertyDescriptorsSupported","Object","defineProperty","supportsDescriptors","functionsHaveNames","foo","name","_forEach","Array","prototype","forEach","_reduce","reduce","_filter","filter","_every","every","object","value","force","configurable","enumerable","writable","defineProperties","map","keys","method","create","properties","Prototype","key","Value","defineByDescriptor","supportsSubclassing","C","f","setPrototypeOf","Sub","Subclass","arg","o","constructor","startsWithRejectsRegex","String","startsWith","startsWithHandlesInfinity","Infinity","getGlobal","globals","globalIsFinite","isFinite","hasStrictMode","startsWithIsCompliant","_indexOf","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","defaultSpeciesGetter","addDefaultSpecies","getter","Type","x","string","regex","symbol","numberIsNaN","Number","isNaN","numberIsFinite","TypeError","get","proxy","originalObject","targetObject","originalDescriptor","getOwnPropertyDescriptor","getKey","set","setKey","redefine","property","newValue","descriptor","preserveToString","target","source","overrideNative","replacement","original","$iterator$","iterator","Set","addIterator","impl","implementation","isArguments","str","result","length","callee","ES","Call","F","V","args","IsCallable","RequireObjectCoercible","optMessage","TypeIsObject","ToObject","IsConstructor","ToInt32","ToNumber","ToUint32","ToInteger","number","ToLength","len","MAX_SAFE_INTEGER","SameValue","a","b","SameValueZero","IsIterable","GetIterator","itFn","GetMethod","it","p","IteratorComplete","iterResult","IteratorClose","completionIsThrow","returnMethod","innerResult","innerException","IteratorNext","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",1,"stringRepeat","repeat","s","times","half","stringMaxLength","StringPrototypeShims","thisStr","numTimes","searchString","searchStr","startArg","start","endsWith","thisLen","posArg","pos","end","includes","position","codePointAt","first","charCodeAt","isEnd","second","hasStringTrimBug","trim","ws","trimRegexp","RegExp","StringIterator","_s","_i","substr","ArrayShims","from","items","mapFn","mapping","T","usingIterator","nextValue","undefined","arrayLike","of","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","isArray","arrayFromHandlesUndefinedMapFunction","origArrayFrom","toLengthsCorrectly","reversed","originalForEach","callbackFn","originalMap","originalFilter","some","originalSome","originalEvery","originalReduce","reduceRight","originalReduceRight","maxSafeInteger","pow","MIN_SAFE_INTEGER","EPSILON","parseInt","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","getOwnPropertyNames","objectGOPNAcceptsPrimitives","cachedWindowNames","window","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","global","ignoreCase","multiline","unicode","sticky","regExpSupportsFlagsWithRegex","OrigRegExp","RegExpShim","pattern","calledWithNew","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","IsPromise","promise","_promise","PromiseCapability","capability","resolver","resolve","reject","setTimeout","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","k","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","receiver","parent","internalSet","existingDesc","propertyKey","attributes","objectDotGetPrototypeOf","willCreateCircularPrototype","defineOrOverrideReflectProperty","shim","acceptsPrimitives","originalReflectGetProto","Date","dateToString","shimmedDateToString","valueOf","stringHTMLshims","anchor","big","blink","bold","fixed","fontcolor","color","fontsize","italics","link","url","small","strike","sub","sup","shouldOverwrite","output","quotesCount","match","toLowerCase"],"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,KAExC,IAAII,GAAM,QAAS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ClE6oB,OAAQ,QAASA,MAAW,MAAO5f,GAAGmD,WAAWpM,KAAM,SAAU,GAAI,KACrE8oB,IAAK,QAASA,MAAQ,MAAO7f,GAAGmD,WAAWpM,KAAM,MAAO,GAAI,KAC5D+oB,IAAK,QAASD,MAAQ,MAAO7f,GAAGmD,WAAWpM,KAAM,MAAO,GAAI,KAE9DuB,GAASN,OAAOwB,KAAKulB,IAAkB,SAAUllB,GAC/C,GAAIJ,GAASiB,OAAOlC,UAAUqB,EAC9B,IAAIkmB,GAAkB,KACtB,IAAI/f,EAAGK,WAAW5G,GAAS,CACzB,GAAIumB,GAAS3oB,EAAMoC,EAAQ,GAAI,MAC/B,IAAIwmB,GAAczkB,KAAYwkB,EAAOE,MAAM,OAAOpgB,MAClDigB,GAAkBC,IAAWA,EAAOG,eAAiBF,EAAc,MAC9D,CACLF,EAAkB,KAEpB,GAAIA,EAAiB,CACnB9nB,EAAeyC,OAAOlC,UAAWqB,EAAKklB,GAAgBllB,GAAM,QAIhE,OAAOkB"} \ No newline at end of file diff --git a/es6-shim.min.js b/es6-shim.min.js index 3447878c..2258983c 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.32.2 - * see https://github.com/paulmillr/es6-shim/blob/0.32.2/LICENSE + * es6-shim: v0.32.3 + * see https://github.com/paulmillr/es6-shim/blob/0.32.3/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=function pr(t){return function r(){return!e(t,this,arguments)}};var n=function(e){try{e();return false}catch(t){return true}};var o=function lr(e){try{return e()}catch(t){return false}};var i=r(n);var a=function(){return!n(function(){Object.defineProperty({},"x",{})})};var u=!!Object.defineProperty&&a();var s=Function.call.bind(Array.prototype.forEach);var f=Function.call.bind(Array.prototype.reduce);var c=Function.call.bind(Array.prototype.filter);var p=Function.call.bind(Array.prototype.every);var l=function(e,t,r,n){if(!n&&t in e){return}if(u){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var v=function(e,t){s(Object.keys(t),function(r){var n=t[r];l(e,r,n,false)})};var h=Object.create||function(e,t){var r=function o(){};r.prototype=e;var n=new r;if(typeof t!=="undefined"){Object.keys(t).forEach(function(e){$.defineByDescriptor(n,e,t[e])})}return n};var y=function(e,t){if(!Object.setPrototypeOf){return false}return o(function(){var r=function n(t){var r=new e(t);Object.setPrototypeOf(r,n.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=h(e.prototype,{constructor:{value:r}});return t(r)})};var b=function(){return String.prototype.startsWith&&n(function(){"/a/".startsWith(/a/)})};var g=function(){return String.prototype.startsWith&&"abc".startsWith("a",Infinity)===false}();var d=new Function("return this;");var m=d();var w=m.isFinite;var O=function(){return this===null}.call(null);var j=b()&&g;var T=Function.call.bind(String.prototype.indexOf);var S=Function.call.bind(Object.prototype.toString);var I=Function.call.bind(Array.prototype.concat);var E=Function.call.bind(String.prototype.slice);var M=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var P=Function.call.bind(Array.prototype.shift);var C=Math.max;var N=Math.min;var A=Math.floor;var _=Math.abs;var k=Math.log;var R=Math.sqrt;var F=Function.call.bind(Object.prototype.hasOwnProperty);var L;var D=function(){};var z=m.Symbol||{};var q=z.species||"@@species";var G=function(){return this};var H=function(e){if(u&&!F(e,q)){$.getter(e,q,G)}};var W={object:function(e){return e!==null&&typeof e==="object"},string:function(e){return S(e)==="[object String]"},regex:function(e){return S(e)==="[object RegExp]"},symbol:function(e){return typeof m.Symbol==="function"&&typeof e==="symbol"}};var B=Number.isNaN||function vr(e){return e!==e};var V=Number.isFinite||function hr(e){return typeof e==="number"&&w(e)};var $={getter:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function o(){return e[t]},set:function i(r){e[t]=r}})},redefine:function(e,t,r){if(u){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(u){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){l(e,"toString",t.toString.bind(t),true)}};var U=function yr(e,t,r){var n=e[t];l(e,t,r,true);$.preserveToString(e[t],n)};var X=W.symbol(z.iterator)?z.iterator:"_es6-shim iterator_";if(m.Set&&typeof(new m.Set)["@@iterator"]==="function"){X="@@iterator"}var Z=function(e,t){var r=t||function o(){return this};var n={};n[X]=r;v(e,n);if(!e[X]&&W.symbol(X)){e[X]=r}};var K=function br(e){var t=S(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&S(e.callee)==="[object Function]"}return r};var J={Call:function gr(t,r){var n=arguments.length>2?arguments[2]:[];if(!J.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){J.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&S(e)==="[object Function]"},IsConstructor:function(e){return J.IsCallable(e)},ToInt32:function(e){return J.ToNumber(e)>>0},ToUint32:function(e){return J.ToNumber(e)>>>0},ToNumber:function(e){if(S(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=J.ToNumber(e);if(B(t)){return 0}if(t===0||!V(t)){return t}return(t>0?1:-1)*A(_(t))},ToLength:function(e){var t=J.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 B(e)&&B(t)},SameValueZero:function(e,t){return e===t||B(e)&&B(t)},IsIterable:function(e){return J.TypeIsObject(e)&&(typeof e[X]!=="undefined"||K(e))},GetIterator:function(e){if(K(e)){return new L(e,"value")}var r=J.GetMethod(e,X);if(!J.IsCallable(r)){throw new TypeError("value is not an iterable")}var n=t(r,e);if(!J.TypeIsObject(n)){throw new TypeError("bad iterator")}return n},GetMethod:function(e,t){var r=J.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!J.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,r){var n=J.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(!J.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(!J.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=J.IteratorNext(e);var r=J.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){if(r===void 0){r=e}if(!n){return tr.construct(e,t,r)}var o=r.prototype;if(!J.TypeIsObject(o)){o=Object.prototype}var i=h(o);var a=J.Call(e,i,t);return J.TypeIsObject(a)?a:i},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!J.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[q];if(n===void 0||n===null){return t}if(!J.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 Q=function(e,t,r,n){if(!J.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!J.TypeIsObject(o)){o=r}e=h(o);for(var i in n){if(F(n,i)){var a=n[i];l(e,i,a,true)}}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var Y=String.fromCodePoint;U(String,"fromCodePoint",function dr(t){return e(Y,this,arguments)})}var ee={fromCodePoint:function mr(e){var t=[];var r;for(var n=0,o=arguments.length;n1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){M(t,String.fromCharCode(r))}else{r-=65536;M(t,String.fromCharCode((r>>10)+55296));M(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function wr(e){var t=J.ToObject(e,"bad callSite");var r=J.ToObject(t.raw,"bad raw value");var n=r.length;var o=J.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,s,f,c;while(a=o){break}s=a+1=re){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return te(t,r)},startsWith:function Tr(e){J.RequireObjectCoercible(this);var t=String(this);if(W.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(J.ToInteger(n),0);return E(t,o,o+r.length)===r},endsWith:function Sr(e){J.RequireObjectCoercible(this);var t=String(this);if(W.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:J.ToInteger(o);var a=N(C(i,0),n);return E(t,a-r.length,a)===r},includes:function Ir(e){if(W.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 Er(e){J.RequireObjectCoercible(this);var t=String(this);var r=J.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}}};v(String.prototype,ne);if("a".includes("a",Infinity)!==false){U(String.prototype,"includes",ne.includes)}var oe="\x85".trim().length!==1;if(oe){delete String.prototype.trim;var ie=[" \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 ae=new RegExp("(^["+ie+"]+)|(["+ie+"]+$)","g");v(String.prototype,{trim:function Mr(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(ae,"")}})}var ue=function(e){J.RequireObjectCoercible(e);this._s=String(e);this._i=0};ue.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(ue.prototype);Z(String.prototype,function(){return new ue(this)});if(!j){U(String.prototype,"startsWith",ne.startsWith);U(String.prototype,"endsWith",ne.endsWith)}var se={from:function xr(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!J.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=K(e)||J.GetMethod(e,X);var u,s,f;if(a!==void 0){s=J.IsConstructor(r)?Object(new r):[];var c=J.GetIterator(e);var p,l;for(f=0;;++f){p=J.IteratorStep(c);if(p===false){break}l=p.value;try{if(o){l=i!==undefined?t(n,i,l,f):n(l,f)}s[f]=l}catch(v){J.IteratorClose(c,true);throw v}}u=f}else{var h=J.ToObject(e);u=J.ToLength(h.length);s=J.IsConstructor(r)?Object(new r(u)):new Array(u);var y;for(f=0;f0){e=P(t);if(!(e in this.object)){continue}if(this.kind==="key"){return fe(e)}else if(this.kind==="value"){return fe(this.object[e])}else{return fe([e,this.object[e]])}}return fe()}});Z(ce.prototype);var le=function(){var e=function r(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!le){U(Array,"of",se.of)}var ve={copyWithin:function Nr(e,t){var r=arguments[2];var n=J.ToObject(this);var o=J.ToLength(n.length);var i=J.ToInteger(e);var a=J.ToInteger(t);var u=i<0?C(o+i,0):N(i,o);var s=a<0?C(o+a,0):N(a,o);r=typeof r==="undefined"?o:J.ToInteger(r);var f=r<0?C(o+r,0):N(r,o);var c=N(f-s,o-u);var p=1;if(s0){if(F(n,s)){n[u]=n[s]}else{delete n[s]}s+=p;u+=p;c-=1}return n},fill:function Ar(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=J.ToObject(this);var o=J.ToLength(n.length);t=J.ToInteger(typeof t==="undefined"?0:t);r=J.ToInteger(typeof r==="undefined"?o:r);var i=t<0?C(o+t,0):N(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;i>>0)-1:0]=true;return o(function(){t(e,n,function(){throw new RangeError("should not reach here")},[])})};if(!ge(Array.prototype.forEach)){var de=Array.prototype.forEach;U(Array.prototype,"forEach",function zr(t){return e(de,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.map)){var me=Array.prototype.map;U(Array.prototype,"map",function qr(t){return e(me,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.filter)){var we=Array.prototype.filter;U(Array.prototype,"filter",function Gr(t){return e(we,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.some)){var Oe=Array.prototype.some;U(Array.prototype,"some",function Hr(t){return e(Oe,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.every)){var je=Array.prototype.every;U(Array.prototype,"every",function Wr(t){return e(je,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.reduce)){var Te=Array.prototype.reduce;U(Array.prototype,"reduce",function Br(t){return e(Te,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.reduceRight,true)){var Se=Array.prototype.reduceRight;U(Array.prototype,"reduceRight",function Vr(t){return e(Se,this.length>=0?this:[],arguments)},true)}var Ie=Math.pow(2,53)-1;v(Number,{MAX_SAFE_INTEGER:Ie,MIN_SAFE_INTEGER:-Ie,EPSILON:2.220446049250313e-16,parseInt:m.parseInt,parseFloat:m.parseFloat,isFinite:V,isInteger:function $r(e){return V(e)&&J.ToInteger(e)===e},isSafeInteger:function Ur(e){return Number.isInteger(e)&&_(e)<=Number.MAX_SAFE_INTEGER},isNaN:B});l(Number,"parseInt",m.parseInt,Number.parseInt!==m.parseInt);if(![,1].find(function(e,t){return t===0})){U(Array.prototype,"find",ve.find)}if([,1].findIndex(function(e,t){return t===0})!==0){U(Array.prototype,"findIndex",ve.findIndex)}var Ee=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var Me=function Xr(){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*k((1+t)/(1-t))},cbrt:function hn(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(k(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function yn(e){var r=Number(e);var n=J.ToUint32(r);if(n===0){return 32}return ct?t(ct,n):31-A(k(n+.5)*Math.LOG2E)},cosh:function bn(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!w(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 gn(e){var t=Number(e);if(t===-Infinity){return-1}if(!w(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 dn(e,t){var r=0;var n=0;for(var o=0;o0?i/n*(i/n):i}}return n===Infinity?Infinity:n*R(r)},log2:function mn(e){return k(e)*Math.LOG2E},log10:function wn(e){return k(e)*Math.LOG10E},log1p:function On(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*(k(1+t)/(1+t-1))},sign:function jn(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function Tn(e){var t=Number(e);if(!w(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 Sn(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 In(e){var t=Number(e);return t<0?-A(-t):A(t)},imul:function En(e,t){var r=J.ToUint32(e);var n=J.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 Mn(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||B(t)){return t}var r=Math.sign(t);var n=_(t);if(nst||B(i)){return r*Infinity}return r*i}};v(Math,pt);l(Math,"log1p",pt.log1p,Math.log1p(-1e-17)!==-1e-17);l(Math,"asinh",pt.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));l(Math,"tanh",pt.tanh,Math.tanh(-2e-17)!==-2e-17);l(Math,"acosh",pt.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);l(Math,"cbrt",pt.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);l(Math,"sinh",pt.sinh,Math.sinh(-2e-17)!==-2e-17);var lt=Math.expm1(10);l(Math,"expm1",pt.expm1,lt>22025.465794806718||lt<22025.465794806718);var vt=Math.round;var ht=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var yt=it+1;var bt=2*it-1;var gt=[yt,bt].every(function(e){return Math.round(e)===e});l(Math,"round",function xn(e){var t=A(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!ht||!gt);$.preserveToString(Math.round,vt);var dt=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=pt.imul;$.preserveToString(Math.imul,dt)}if(Math.imul.length!==2){U(Math,"imul",function Pn(t,r){return e(dt,Math,arguments)})}var mt=function(){J.IsPromise=function(e){if(!J.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var e=function(e){if(!J.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(!(J.IsCallable(t.resolve)&&J.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var r=m.setTimeout;var n;if(typeof window!=="undefined"&&J.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){M(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=P(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=m.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=J.IsCallable(m.setImmediate)?m.setImmediate.bind(m):typeof process==="object"&&process.nextTick?process.nextTick:o()||(J.IsCallable(n)?n():function(e){r(e,0)});var a=1;var u=2;var f=3;var c=4;var p=5;var l=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 h=function(e,t){s(e,function(e){i(function(){l(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=c;h(n,t)};var b=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=p;h(n,t)};var g=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return b(e,new TypeError("Self resolution"))}if(!J.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return b(e,o)}if(!J.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return b(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=g(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var w=function(e){if(!J.TypeIsObject(e)){throw new TypeError("Promise is not object")}var t=e[q];if(t!==void 0&&t!==null){return t}return e};var O=function E(e){if(!(this instanceof E)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!J.IsCallable(e)){throw new TypeError("not a valid resolver")}var t=Q(this,E,j,{_promise:{result:void 0,state:f,fulfillReactions:[],rejectReactions:[]}});var r=g(t);var n=r.reject;try{e(r.resolve,n)}catch(o){n(o)}return t};var j=O.prototype;var T=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 S=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;for(var s=0;;s++){try{a=J.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 p=T(s,o,r,i);i.count++;c.then(p,r.reject)}if(--i.count===0){var l=r.resolve;l(o)}return r.promise};var I=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=J.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};v(O,{all:function x(t){var r=w(this);var n=new e(r);var o,i;try{o=J.GetIterator(t);i={iterator:o,done:false};return S(i,r,n)}catch(a){if(i&&!i.done){try{J.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},race:function C(t){var r=w(this);var n=new e(r);var o,i;try{o=J.GetIterator(t);i={iterator:o,done:false};return I(i,r,n)}catch(a){if(i&&!i.done){try{J.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},reject:function N(t){var r=this;var n=new e(r);var o=n.reject;o(t);return n.promise},resolve:function A(t){var r=this;if(J.IsPromise(t)){var n=t.constructor;if(n===r){return t}}var o=new e(r);var i=o.resolve;i(t);return o.promise}});v(j,{"catch":function(e){return this.then(void 0,e)},then:function _(t,r){var n=this;if(!J.IsPromise(n)){throw new TypeError("not a promise")}var o=J.SpeciesConstructor(n,O);var s=new e(o);if(!J.IsCallable(t)){t=a}if(!J.IsCallable(r)){r=u}var v={capabilities:s,handler:t};var h={capabilities:s,handler:r};var y=n._promise,b;switch(y.state){case f:M(y.fulfillReactions,v);M(y.rejectReactions,h);break;case c:b=y.result;i(function(){l(v,b)});break;case p:b=y.result;i(function(){l(h,b)});break;default:throw new TypeError("unexpected")}return s.promise}});return O}();if(m.Promise){delete m.Promise.accept;delete m.Promise.defer;delete m.Promise.prototype.chain}v(m,{Promise:mt});var wt=y(m.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Ot=!n(function(){m.Promise.reject(42).then(null,5).then(null,D)});var jt=n(function(){m.Promise.call(3,D)});var Tt=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(m.Promise);if(!wt||!Ot||!jt||Tt){Promise=mt;U(m,"Promise",mt)}H(Promise);var St=function(e){var t=Object.keys(f(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var It=St(["z","a","bb"]);var Et=St(["z",1,"a","3",2]);if(u){var Mt=function Cn(e){if(!It){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(!Et){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var xt=function Nn(){return Object.create?Object.create(null):{}};var Pt=function An(e,r,n){if(Array.isArray(n)||W.string(n)){s(n,function(e){r.set(e[0],e[1])})}else if(n instanceof e){t(e.prototype.forEach,n,function(e,t){r.set(t,e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.set;if(!J.IsCallable(i)){throw new TypeError("bad map")}o=J.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=J.IteratorStep(o);if(a===false){break}var u=a.value;try{if(!J.TypeIsObject(u)){throw new TypeError("expected iterable of pairs")}t(i,r,u[0],u[1])}catch(f){J.IteratorClose(o,true);throw f}}}}};var Ct=function _n(e,r,n){if(Array.isArray(n)||W.string(n)){s(n,function(e){r.add(e)})}else if(n instanceof e){t(e.prototype.forEach,n,function(e){r.add(e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.add;if(!J.IsCallable(i)){throw new TypeError("bad set")}o=J.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=J.IteratorStep(o);if(a===false){break}var u=a.value;try{t(i,r,u)}catch(f){J.IteratorClose(o,true);throw f}}}}};var Nt={Map:function(){var e={};var r=function s(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function f(){return this.key===e; -};var n=function c(e){return!!e._es6map};var o=function p(e,t){if(!J.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+String(e))}};var i=function l(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function h(){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 y(){if(!(this instanceof y)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=Q(this,y,u,{_es6map:true,_head:null,_storage:xt(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Pt(y,e,arguments[0])}return e};var u=a.prototype;$.getter(u,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});v(u,{get:function b(e){o(this,"get");var t=Mt(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(J.SameValueZero(i.key,e)){return i.value}}},has:function g(e){o(this,"has");var t=Mt(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(J.SameValueZero(n.key,e)){return true}}return false},set:function d(e,t){o(this,"set");var n=this._head,i=n,a;var u=Mt(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(J.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(J.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=Mt(t);if(i!==null){if(typeof this._storage[i]==="undefined"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(J.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 m(){o(this,"clear");this._size=0;this._storage=xt();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 w(){o(this,"keys");return new i(this,"key")},values:function O(){o(this,"values");return new i(this,"value")},entries:function j(){o(this,"entries");return new i(this,"key+value")},forEach:function T(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 a(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function u(t,r){if(!J.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+String(t))}};var n=function f(){if(!(this instanceof f)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=Q(this,f,o,{_es6set:true,"[[SetData]]":null,_storage:xt()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){Ct(f,e,arguments[0])}return e};var o=n.prototype;var i=function c(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new Nt.Map;s(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=E(e,1)}else if(r==="n"){e=+E(e,1)}else if(r==="b"){e=e==="btrue"}else{e=+e}}t.set(e,e)});e._storage=null}};$.getter(n.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});v(n.prototype,{has:function p(e){r(this,"has");var t;if(this._storage&&(t=Mt(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function h(e){r(this,"add");var t;if(this._storage&&(t=Mt(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=Mt(e))!==null){var n=F(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function y(){r(this,"clear");if(this._storage){this._storage=xt()}else{this["[[SetData]]"].clear()}},values:function b(){r(this,"values");i(this);return this["[[SetData]]"].values()},entries:function g(){r(this,"entries");i(this);return this["[[SetData]]"].entries()},forEach:function d(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)}})}});l(n.prototype,"keys",n.prototype.values,true);Z(n.prototype,n.prototype.values);return n}()};v(m,Nt);if(m.Map||m.Set){var At=o(function(){return new Map([[1,2]]).get(1)===2});if(!At){var _t=m.Map;m.Map=function kn(){if(!(this instanceof kn)){throw new TypeError('Constructor Map requires "new"')}var e=new _t;if(arguments.length>0){Pt(kn,e,arguments[0])}Object.setPrototypeOf(e,m.Map.prototype);l(e,"constructor",kn,true);return e};m.Map.prototype=h(_t.prototype);$.preserveToString(m.Map,_t)}var kt=new Map;var Rt=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 Ft=kt.set(1,2)===kt;if(!Rt||!Ft){var Lt=Map.prototype.set;U(Map.prototype,"set",function Rn(e,r){t(Lt,this,e===0?0:e,r);return this})}if(!Rt){var Dt=Map.prototype.get;var zt=Map.prototype.has;v(Map.prototype,{get:function Fn(e){return t(Dt,this,e===0?0:e)},has:function Ln(e){return t(zt,this,e===0?0:e)}},true);$.preserveToString(Map.prototype.get,Dt);$.preserveToString(Map.prototype.has,zt)}var qt=new Set;var Gt=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(qt);var Ht=qt.add(1)===qt;if(!Gt||!Ht){var Wt=Set.prototype.add;Set.prototype.add=function Dn(e){t(Wt,this,e===0?0:e);return this};$.preserveToString(Set.prototype.add,Wt)}if(!Gt){var Bt=Set.prototype.has;Set.prototype.has=function zn(e){return t(Bt,this,e===0?0:e)};$.preserveToString(Set.prototype.has,Bt);var Vt=Set.prototype["delete"];Set.prototype["delete"]=function qn(e){return t(Vt,this,e===0?0:e)};$.preserveToString(Set.prototype["delete"],Vt)}var $t=y(m.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var Ut=Object.setPrototypeOf&&!$t;var Xt=function(){try{return!(m.Map()instanceof m.Map)}catch(e){return e instanceof TypeError}}();if(m.Map.length!==0||Ut||!Xt){var Zt=m.Map;m.Map=function Gn(){if(!(this instanceof Gn)){throw new TypeError('Constructor Map requires "new"')}var e=new Zt;if(arguments.length>0){Pt(Gn,e,arguments[0])}Object.setPrototypeOf(e,Gn.prototype);l(e,"constructor",Gn,true);return e};m.Map.prototype=Zt.prototype;$.preserveToString(m.Map,Zt)}var Kt=y(m.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var Jt=Object.setPrototypeOf&&!Kt;var Qt=function(){try{return!(m.Set()instanceof m.Set)}catch(e){return e instanceof TypeError}}();if(m.Set.length!==0||Jt||!Qt){var Yt=m.Set;m.Set=function Hn(){if(!(this instanceof Hn)){throw new TypeError('Constructor Set requires "new"')}var e=new Yt;if(arguments.length>0){Ct(Hn,e,arguments[0])}Object.setPrototypeOf(e,Hn.prototype);l(e,"constructor",Hn,true);return e};m.Set.prototype=Yt.prototype;$.preserveToString(m.Set,Yt)}var er=!o(function(){return(new Map).keys().next().done});if(typeof m.Map.prototype.clear!=="function"||(new m.Set).size!==0||(new m.Map).size!==0||typeof m.Map.prototype.keys!=="function"||typeof m.Set.prototype.keys!=="function"||typeof m.Map.prototype.forEach!=="function"||typeof m.Set.prototype.forEach!=="function"||i(m.Map)||i(m.Set)||typeof(new m.Map).keys().next!=="function"||er||!$t){delete m.Map;delete m.Set;v(m,{Map:Nt.Map,Set:Nt.Set},true)}}if(m.Set.prototype.keys!==m.Set.prototype.values){l(m.Set.prototype,"keys",m.Set.prototype.values,true)}Z(Object.getPrototypeOf((new m.Map).keys()));Z(Object.getPrototypeOf((new m.Set).keys()))}H(Map);H(Set);if(!m.Reflect){l(m,"Reflect",{})}var tr=m.Reflect;var rr=function Wn(e){if(!J.TypeIsObject(e)){throw new TypeError("target must be an object")}};v(m.Reflect,{apply:function Bn(){return e(J.Call,null,arguments)},construct:function Vn(e,t){if(!J.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!J.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return J.Construct(e,t,r,"internal")},deleteProperty:function $n(e,t){rr(e);if(u){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function Un(e){rr(e);return new ce(e,"key")},has:function Xn(e,t){rr(e);return t in e}});if(Object.getOwnPropertyNames){v(m.Reflect,{ownKeys:function Zn(e){rr(e);var t=Object.getOwnPropertyNames(e);if(J.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var nr=function Kn(e){return!n(e)};if(Object.preventExtensions){v(m.Reflect,{isExtensible:function Jn(e){rr(e);return Object.isExtensible(e)},preventExtensions:function Qn(e){rr(e);return nr(function(){Object.preventExtensions(e)})}})}if(u){var or=function Yn(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(!o){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return or(i,r,n)}if("value"in o){return o.value}if(o.get){return t(o.get,n)}return undefined};var ir=function eo(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return ir(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!J.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return tr.defineProperty(o,r,{value:n})}else{return tr.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};v(m.Reflect,{defineProperty:function to(e,t,r){rr(e);return nr(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function ro(e,t){rr(e);return Object.getOwnPropertyDescriptor(e,t)},get:function no(e,t){rr(e);var r=arguments.length>2?arguments[2]:e;return or(e,t,r)},set:function oo(e,t,r){rr(e);var n=arguments.length>3?arguments[3]:e;return ir(e,t,r,n)}})}if(Object.getPrototypeOf){var ar=Object.getPrototypeOf;v(m.Reflect,{getPrototypeOf:function io(e){rr(e);return ar(e)}})}if(Object.setPrototypeOf){var ur=function(e,t){while(t){if(e===t){return true}t=tr.getPrototypeOf(t)}return false};v(m.Reflect,{setPrototypeOf:function ao(e,t){rr(e);if(t!==null&&!J.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===tr.getPrototypeOf(e)){return true}if(tr.isExtensible&&!tr.isExtensible(e)){return false}if(ur(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}if(String(new Date(NaN))!=="Invalid Date"){var sr=Date.prototype.toString;var fr=function uo(){var e=+this;if(e!==e){return"Invalid Date"}return t(sr,this)};U(Date.prototype,"toString",fr)}var cr={anchor:function so(e){return J.CreateHTML(this,"a","name",e)},big:function fo(){return J.CreateHTML(this,"big","","")},blink:function co(){return J.CreateHTML(this,"blink","","")},bold:function po(){return J.CreateHTML(this,"b","","")},fixed:function lo(){return J.CreateHTML(this,"tt","","")},fontcolor:function vo(e){return J.CreateHTML(this,"font","color",e)},fontsize:function ho(e){return J.CreateHTML(this,"font","size",e)},italics:function yo(){return J.CreateHTML(this,"i","","")},link:function bo(e){return J.CreateHTML(this,"a","href",e)},small:function go(){return J.CreateHTML(this,"small","","")},strike:function mo(){return J.CreateHTML(this,"strike","","")},sub:function wo(){return J.CreateHTML(this,"sub","","")},sup:function Oo(){return J.CreateHTML(this,"sup","","")}};s(Object.keys(cr),function(e){var r=String.prototype[e];var n=false;if(J.IsCallable(r)){var o=t(r,"",' " ');var i=I([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){l(String.prototype,e,cr[e],true)}});return m}); +(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=function dr(t){return function r(){return!e(t,this,arguments)}};var n=function(e){try{e();return false}catch(t){return true}};var o=function mr(e){try{return e()}catch(t){return false}};var i=r(n);var a=function(){return!n(function(){Object.defineProperty({},"x",{})})};var u=!!Object.defineProperty&&a();var f=function Or(){}.name==="foo";var s=Function.call.bind(Array.prototype.forEach);var c=Function.call.bind(Array.prototype.reduce);var p=Function.call.bind(Array.prototype.filter);var l=Function.call.bind(Array.prototype.every);var v=function(e,t,r,n){if(!n&&t in e){return}if(u){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var h=function(e,t){s(Object.keys(t),function(r){var n=t[r];v(e,r,n,false)})};var y=Object.create||function(e,t){var r=function o(){};r.prototype=e;var n=new r;if(typeof t!=="undefined"){Object.keys(t).forEach(function(e){U.defineByDescriptor(n,e,t[e])})}return n};var b=function(e,t){if(!Object.setPrototypeOf){return false}return o(function(){var r=function n(t){var r=new e(t);Object.setPrototypeOf(r,n.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=y(e.prototype,{constructor:{value:r}});return t(r)})};var g=function(){return String.prototype.startsWith&&n(function(){"/a/".startsWith(/a/)})};var d=function(){return String.prototype.startsWith&&"abc".startsWith("a",Infinity)===false}();var m=new Function("return this;");var O=m();var w=O.isFinite;var j=function(){return this===null}.call(null);var S=g()&&d;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 C=Function.call.bind(Array.prototype.shift);var N=Math.max;var A=Math.min;var _=Math.floor;var k=Math.abs;var R=Math.log;var F=Math.sqrt;var L=Function.call.bind(Object.prototype.hasOwnProperty);var D;var z=function(){};var q=O.Symbol||{};var G=q.species||"@@species";var H=function(){return this};var W=function(e){if(u&&!L(e,G)){U.getter(e,G,H)}};var B={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 O.Symbol==="function"&&typeof e==="symbol"}};var V=Number.isNaN||function wr(e){return e!==e};var $=Number.isFinite||function jr(e){return typeof e==="number"&&w(e)};var U={getter:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function o(){return e[t]},set:function i(r){e[t]=r}})},redefine:function(e,t,r){if(u){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(u){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){v(e,"toString",t.toString.bind(t),true)}};var X=function Sr(e,t,r){var n=e[t];v(e,t,r,true);U.preserveToString(e[t],n)};var Z=B.symbol(q.iterator)?q.iterator:"_es6-shim iterator_";if(O.Set&&typeof(new O.Set)["@@iterator"]==="function"){Z="@@iterator"}var K=function(e,t){var r=t||function o(){return this};var n={};n[Z]=r;h(e,n);if(!e[Z]&&B.symbol(Z)){e[Z]=r}};var J=function Tr(e){var t=I(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&I(e.callee)==="[object Function]"}return r};var Q={Call:function Ir(t,r){var n=arguments.length>2?arguments[2]:[];if(!Q.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){Q.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&I(e)==="[object Function]"},IsConstructor:function(e){return Q.IsCallable(e)},ToInt32:function(e){return Q.ToNumber(e)>>0},ToUint32:function(e){return Q.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=Q.ToNumber(e);if(V(t)){return 0}if(t===0||!$(t)){return t}return(t>0?1:-1)*_(k(t))},ToLength:function(e){var t=Q.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 V(e)&&V(t)},SameValueZero:function(e,t){return e===t||V(e)&&V(t)},IsIterable:function(e){return Q.TypeIsObject(e)&&(typeof e[Z]!=="undefined"||J(e))},GetIterator:function(e){if(J(e)){return new D(e,"value")}var r=Q.GetMethod(e,Z);if(!Q.IsCallable(r)){throw new TypeError("value is not an iterable")}var n=t(r,e);if(!Q.TypeIsObject(n)){throw new TypeError("bad iterator")}return n},GetMethod:function(e,t){var r=Q.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!Q.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,r){var n=Q.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(!Q.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(!Q.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=Q.IteratorNext(e);var r=Q.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){if(r===void 0){r=e}if(!n){return ir.construct(e,t,r)}var o=r.prototype;if(!Q.TypeIsObject(o)){o=Object.prototype}var i=y(o);var a=Q.Call(e,i,t);return Q.TypeIsObject(a)?a:i},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!Q.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[G];if(n===void 0||n===null){return t}if(!Q.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 Y=function(e,t,r,n){if(!Q.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!Q.TypeIsObject(o)){o=r}e=y(o);for(var i in n){if(L(n,i)){var a=n[i];v(e,i,a,true)}}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var ee=String.fromCodePoint;X(String,"fromCodePoint",function Er(t){return e(ee,this,arguments)})}var te={fromCodePoint:function Mr(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 Pr(e){var t=Q.ToObject(e,"bad callSite");var r=Q.ToObject(t.raw,"bad raw value");var n=r.length;var o=Q.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,f,s,c;while(a=o){break}f=a+1=ne){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return re(t,r)},startsWith:function Nr(e){Q.RequireObjectCoercible(this);var t=String(this);if(B.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=N(Q.ToInteger(n),0);return M(t,o,o+r.length)===r},endsWith:function Ar(e){Q.RequireObjectCoercible(this);var t=String(this);if(B.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:Q.ToInteger(o);var a=A(N(i,0),n);return M(t,a-r.length,a)===r},includes:function _r(e){if(B.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 kr(e){Q.RequireObjectCoercible(this);var t=String(this);var r=Q.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}}};h(String.prototype,oe);if("a".includes("a",Infinity)!==false){X(String.prototype,"includes",oe.includes)}var ie="\x85".trim().length!==1;if(ie){delete String.prototype.trim;var ae=[" \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 ue=new RegExp("(^["+ae+"]+)|(["+ae+"]+$)","g");h(String.prototype,{trim:function Rr(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(ue,"")}})}var fe=function(e){Q.RequireObjectCoercible(e);this._s=String(e);this._i=0};fe.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}};K(fe.prototype);K(String.prototype,function(){return new fe(this)});if(!S){X(String.prototype,"startsWith",oe.startsWith);X(String.prototype,"endsWith",oe.endsWith)}var se={from:function Fr(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!Q.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=J(e)||Q.GetMethod(e,Z);var u,f,s;if(a!==void 0){f=Q.IsConstructor(r)?Object(new r):[];var c=Q.GetIterator(e);var p,l;for(s=0;;++s){p=Q.IteratorStep(c);if(p===false){break}l=p.value;try{if(o){l=i!==undefined?t(n,i,l,s):n(l,s)}f[s]=l}catch(v){Q.IteratorClose(c,true);throw v}}u=s}else{var h=Q.ToObject(e);u=Q.ToLength(h.length);f=Q.IsConstructor(r)?Object(new r(u)):new Array(u);var y;for(s=0;s0){e=C(t);if(!(e in this.object)){continue}if(this.kind==="key"){return ce(e)}else if(this.kind==="value"){return ce(this.object[e])}else{return ce([e,this.object[e]])}}return ce()}});K(pe.prototype);var ve=function(){var e=function r(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!ve){X(Array,"of",se.of)}var he={copyWithin:function zr(e,t){var r=arguments[2];var n=Q.ToObject(this);var o=Q.ToLength(n.length);var i=Q.ToInteger(e);var a=Q.ToInteger(t);var u=i<0?N(o+i,0):A(i,o);var f=a<0?N(o+a,0):A(a,o);r=typeof r==="undefined"?o:Q.ToInteger(r);var s=r<0?N(o+r,0):A(r,o);var c=A(s-f,o-u);var p=1;if(f0){if(L(n,f)){n[u]=n[f]}else{delete n[f]}f+=p;u+=p;c-=1}return n},fill:function qr(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=Q.ToObject(this);var o=Q.ToLength(n.length);t=Q.ToInteger(typeof t==="undefined"?0:t);r=Q.ToInteger(typeof r==="undefined"?o:r);var i=t<0?N(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(me,this,arguments)}else{return t(me,this,r)}})}var Oe=function(e,r){var n={length:-1};n[r?(-1>>>0)-1:0]=true;return o(function(){t(e,n,function(){throw new RangeError("should not reach here")},[])})};if(!Oe(Array.prototype.forEach)){var we=Array.prototype.forEach;X(Array.prototype,"forEach",function Xr(t){return e(we,this.length>=0?this:[],arguments)},true)}if(!Oe(Array.prototype.map)){var je=Array.prototype.map;X(Array.prototype,"map",function Zr(t){return e(je,this.length>=0?this:[],arguments)},true)}if(!Oe(Array.prototype.filter)){var Se=Array.prototype.filter;X(Array.prototype,"filter",function Kr(t){return e(Se,this.length>=0?this:[],arguments)},true)}if(!Oe(Array.prototype.some)){var Te=Array.prototype.some;X(Array.prototype,"some",function Jr(t){return e(Te,this.length>=0?this:[],arguments)},true)}if(!Oe(Array.prototype.every)){var Ie=Array.prototype.every;X(Array.prototype,"every",function Qr(t){return e(Ie,this.length>=0?this:[],arguments)},true)}if(!Oe(Array.prototype.reduce)){var Ee=Array.prototype.reduce;X(Array.prototype,"reduce",function Yr(t){return e(Ee,this.length>=0?this:[],arguments)},true)}if(!Oe(Array.prototype.reduceRight,true)){var Me=Array.prototype.reduceRight;X(Array.prototype,"reduceRight",function en(t){return e(Me,this.length>=0?this:[],arguments)},true)}var Pe=Math.pow(2,53)-1;h(Number,{MAX_SAFE_INTEGER:Pe,MIN_SAFE_INTEGER:-Pe,EPSILON:2.220446049250313e-16,parseInt:O.parseInt,parseFloat:O.parseFloat,isFinite:$,isInteger:function tn(e){return $(e)&&Q.ToInteger(e)===e},isSafeInteger:function rn(e){return Number.isInteger(e)&&k(e)<=Number.MAX_SAFE_INTEGER},isNaN:V});v(Number,"parseInt",O.parseInt,Number.parseInt!==O.parseInt);if(![,1].find(function(e,t){return t===0})){X(Array.prototype,"find",he.find)}if([,1].findIndex(function(e,t){return t===0})!==0){X(Array.prototype,"findIndex",he.findIndex)}var xe=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var Ce=function nn(){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 Sn(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 Tn(e){var r=Number(e);var n=Q.ToUint32(r);if(n===0){return 32}return vt?t(vt,n):31-_(R(n+.5)*Math.LOG2E)},cosh:function In(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!w(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 En(e){var t=Number(e);if(t===-Infinity){return-1}if(!w(t)||t===0){return t}if(k(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 Mn(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 Pn(e){return R(e)*Math.LOG2E},log10:function xn(e){return R(e)*Math.LOG10E},log1p:function Cn(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 Nn(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function An(e){var t=Number(e);if(!w(t)||t===0){return t}if(k(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function _n(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 kn(e){var t=Number(e);return t<0?-_(-t):_(t)},imul:function Rn(e,t){var r=Q.ToUint32(e);var n=Q.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 Fn(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||V(t)){return t}var r=Math.sign(t);var n=k(t);if(npt||V(i)){return r*Infinity}return r*i}};h(Math,ht);v(Math,"log1p",ht.log1p,Math.log1p(-1e-17)!==-1e-17);v(Math,"asinh",ht.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));v(Math,"tanh",ht.tanh,Math.tanh(-2e-17)!==-2e-17);v(Math,"acosh",ht.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);v(Math,"cbrt",ht.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);v(Math,"sinh",ht.sinh,Math.sinh(-2e-17)!==-2e-17);var yt=Math.expm1(10);v(Math,"expm1",ht.expm1,yt>22025.465794806718||yt<22025.465794806718);var bt=Math.round;var gt=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var dt=ft+1;var mt=2*ft-1;var Ot=[dt,mt].every(function(e){return Math.round(e)===e});v(Math,"round",function Ln(e){var t=_(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!gt||!Ot);U.preserveToString(Math.round,bt);var wt=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=ht.imul;U.preserveToString(Math.imul,wt)}if(Math.imul.length!==2){X(Math,"imul",function Dn(t,r){return e(wt,Math,arguments)})}var jt=function(){Q.IsPromise=function(e){if(!Q.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var e=function(e){if(!Q.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(!(Q.IsCallable(t.resolve)&&Q.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var r=O.setTimeout;var n;if(typeof window!=="undefined"&&Q.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=C(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=O.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=Q.IsCallable(O.setImmediate)?O.setImmediate.bind(O):typeof process==="object"&&process.nextTick?process.nextTick:o()||(Q.IsCallable(n)?n():function(e){r(e,0)});var a=1;var u=2;var f=3;var c=4;var p=5;var l=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){s(e,function(e){i(function(){l(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=c;v(n,t)};var b=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=p;v(n,t)};var g=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return b(e,new TypeError("Self resolution"))}if(!Q.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return b(e,o)}if(!Q.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return b(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=g(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var m=function(e){if(!Q.TypeIsObject(e)){throw new TypeError("Promise is not object")}var t=e[G];if(t!==void 0&&t!==null){return t}return e};var w=function E(e){if(!(this instanceof E)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!Q.IsCallable(e)){throw new TypeError("not a valid resolver")}var t=Y(this,E,j,{_promise:{result:void 0,state:f,fulfillReactions:[],rejectReactions:[]}});var r=g(t);var n=r.reject;try{e(r.resolve,n)}catch(o){n(o)}return t};var j=w.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;for(var f=0;;f++){try{a=Q.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 p=S(f,o,r,i);i.count++;c.then(p,r.reject)}if(--i.count===0){var l=r.resolve;l(o)}return r.promise};var I=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=Q.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};h(w,{all:function M(t){var r=m(this);var n=new e(r);var o,i;try{o=Q.GetIterator(t);i={iterator:o,done:false};return T(i,r,n)}catch(a){if(i&&!i.done){try{Q.IteratorClose(o,true)}catch(u){a=u}}var f=n.reject;f(a);return n.promise}},race:function x(t){var r=m(this);var n=new e(r);var o,i;try{o=Q.GetIterator(t);i={iterator:o,done:false};return I(i,r,n)}catch(a){if(i&&!i.done){try{Q.IteratorClose(o,true)}catch(u){a=u}}var f=n.reject;f(a);return n.promise}},reject:function N(t){var r=this;var n=new e(r);var o=n.reject;o(t);return n.promise},resolve:function A(t){var r=this;if(Q.IsPromise(t)){var n=t.constructor;if(n===r){return t}}var o=new e(r);var i=o.resolve;i(t);return o.promise}});h(j,{"catch":function(e){return this.then(void 0,e)},then:function _(t,r){var n=this;if(!Q.IsPromise(n)){throw new TypeError("not a promise")}var o=Q.SpeciesConstructor(n,w);var s=new e(o);if(!Q.IsCallable(t)){t=a}if(!Q.IsCallable(r)){r=u}var v={capabilities:s,handler:t};var h={capabilities:s,handler:r};var y=n._promise,b;switch(y.state){case f:P(y.fulfillReactions,v);P(y.rejectReactions,h);break;case c:b=y.result;i(function(){l(v,b)});break;case p:b=y.result;i(function(){l(h,b)});break;default:throw new TypeError("unexpected")}return s.promise}});return w}();if(O.Promise){delete O.Promise.accept;delete O.Promise.defer;delete O.Promise.prototype.chain}h(O,{Promise:jt});var St=b(O.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Tt=!n(function(){O.Promise.reject(42).then(null,5).then(null,z)});var It=n(function(){O.Promise.call(3,z)});var Et=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(O.Promise);if(!St||!Tt||!It||Et){Promise=jt;X(O,"Promise",jt)}W(Promise);var Mt=function(e){var t=Object.keys(c(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var Pt=Mt(["z","a","bb"]);var xt=Mt(["z",1,"a","3",2]);if(u){var Ct=function zn(e){if(!Pt){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(!xt){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var Nt=function qn(){return Object.create?Object.create(null):{}};var At=function Gn(e,r,n){if(Array.isArray(n)||B.string(n)){s(n,function(e){r.set(e[0],e[1])})}else if(n instanceof e){t(e.prototype.forEach,n,function(e,t){r.set(t,e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.set;if(!Q.IsCallable(i)){throw new TypeError("bad map")}o=Q.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=Q.IteratorStep(o);if(a===false){break}var u=a.value;try{if(!Q.TypeIsObject(u)){throw new TypeError("expected iterable of pairs")}t(i,r,u[0],u[1])}catch(f){Q.IteratorClose(o,true);throw f}}}}};var _t=function Hn(e,r,n){if(Array.isArray(n)||B.string(n)){s(n,function(e){r.add(e)})}else if(n instanceof e){t(e.prototype.forEach,n,function(e){r.add(e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.add;if(!Q.IsCallable(i)){throw new TypeError("bad set")}o=Q.GetIterator(n)}if(typeof o!=="undefined"){ +while(true){var a=Q.IteratorStep(o);if(a===false){break}var u=a.value;try{t(i,r,u)}catch(f){Q.IteratorClose(o,true);throw f}}}}};var kt={Map:function(){var e={};var r=function f(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function s(){return this.key===e};var n=function c(e){return!!e._es6map};var o=function p(e,t){if(!Q.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+String(e))}};var i=function l(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function v(){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}}};K(i.prototype);var a=function y(){if(!(this instanceof y)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=Y(this,y,u,{_es6map:true,_head:null,_storage:Nt(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){At(y,e,arguments[0])}return e};var u=a.prototype;U.getter(u,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});h(u,{get:function b(e){o(this,"get");var t=Ct(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(Q.SameValueZero(i.key,e)){return i.value}}},has:function g(e){o(this,"has");var t=Ct(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(Q.SameValueZero(n.key,e)){return true}}return false},set:function d(e,t){o(this,"set");var n=this._head,i=n,a;var u=Ct(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(Q.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(Q.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=Ct(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(Q.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 m(){o(this,"clear");this._size=0;this._storage=Nt();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 O(){o(this,"keys");return new i(this,"key")},values:function w(){o(this,"values");return new i(this,"value")},entries:function j(){o(this,"entries");return new i(this,"key+value")},forEach:function S(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)}}}});K(u,u.entries);return a}(),Set:function(){var e=function a(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function u(t,r){if(!Q.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+String(t))}};var n=function f(){if(!(this instanceof f)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=Y(this,f,o,{_es6set:true,"[[SetData]]":null,_storage:Nt()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){_t(f,e,arguments[0])}return e};var o=n.prototype;var i=function c(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new kt.Map;s(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}};U.getter(n.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});h(n.prototype,{has:function p(e){r(this,"has");var t;if(this._storage&&(t=Ct(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function l(e){r(this,"add");var t;if(this._storage&&(t=Ct(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=Ct(e))!==null){var n=L(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function y(){r(this,"clear");if(this._storage){this._storage=Nt()}else{this["[[SetData]]"].clear()}},values:function b(){r(this,"values");i(this);return this["[[SetData]]"].values()},entries:function g(){r(this,"entries");i(this);return this["[[SetData]]"].entries()},forEach:function d(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)}})}});v(n.prototype,"keys",n.prototype.values,true);K(n.prototype,n.prototype.values);return n}()};h(O,kt);if(O.Map||O.Set){var Rt=o(function(){return new Map([[1,2]]).get(1)===2});if(!Rt){var Ft=O.Map;O.Map=function Wn(){if(!(this instanceof Wn)){throw new TypeError('Constructor Map requires "new"')}var e=new Ft;if(arguments.length>0){At(Wn,e,arguments[0])}Object.setPrototypeOf(e,O.Map.prototype);v(e,"constructor",Wn,true);return e};O.Map.prototype=y(Ft.prototype);U.preserveToString(O.Map,Ft)}var Lt=new Map;var Dt=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}(Lt);var zt=Lt.set(1,2)===Lt;if(!Dt||!zt){var qt=Map.prototype.set;X(Map.prototype,"set",function Bn(e,r){t(qt,this,e===0?0:e,r);return this})}if(!Dt){var Gt=Map.prototype.get;var Ht=Map.prototype.has;h(Map.prototype,{get:function Vn(e){return t(Gt,this,e===0?0:e)},has:function $n(e){return t(Ht,this,e===0?0:e)}},true);U.preserveToString(Map.prototype.get,Gt);U.preserveToString(Map.prototype.has,Ht)}var Wt=new Set;var Bt=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(Wt);var Vt=Wt.add(1)===Wt;if(!Bt||!Vt){var $t=Set.prototype.add;Set.prototype.add=function Un(e){t($t,this,e===0?0:e);return this};U.preserveToString(Set.prototype.add,$t)}if(!Bt){var Ut=Set.prototype.has;Set.prototype.has=function Xn(e){return t(Ut,this,e===0?0:e)};U.preserveToString(Set.prototype.has,Ut);var Xt=Set.prototype["delete"];Set.prototype["delete"]=function Zn(e){return t(Xt,this,e===0?0:e)};U.preserveToString(Set.prototype["delete"],Xt)}var Zt=b(O.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var Kt=Object.setPrototypeOf&&!Zt;var Jt=function(){try{return!(O.Map()instanceof O.Map)}catch(e){return e instanceof TypeError}}();if(O.Map.length!==0||Kt||!Jt){var Qt=O.Map;O.Map=function Kn(){if(!(this instanceof Kn)){throw new TypeError('Constructor Map requires "new"')}var e=new Qt;if(arguments.length>0){At(Kn,e,arguments[0])}Object.setPrototypeOf(e,Kn.prototype);v(e,"constructor",Kn,true);return e};O.Map.prototype=Qt.prototype;U.preserveToString(O.Map,Qt)}var Yt=b(O.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var er=Object.setPrototypeOf&&!Yt;var tr=function(){try{return!(O.Set()instanceof O.Set)}catch(e){return e instanceof TypeError}}();if(O.Set.length!==0||er||!tr){var rr=O.Set;O.Set=function Jn(){if(!(this instanceof Jn)){throw new TypeError('Constructor Set requires "new"')}var e=new rr;if(arguments.length>0){_t(Jn,e,arguments[0])}Object.setPrototypeOf(e,Jn.prototype);v(e,"constructor",Jn,true);return e};O.Set.prototype=rr.prototype;U.preserveToString(O.Set,rr)}var nr=!o(function(){return(new Map).keys().next().done});if(typeof O.Map.prototype.clear!=="function"||(new O.Set).size!==0||(new O.Map).size!==0||typeof O.Map.prototype.keys!=="function"||typeof O.Set.prototype.keys!=="function"||typeof O.Map.prototype.forEach!=="function"||typeof O.Set.prototype.forEach!=="function"||i(O.Map)||i(O.Set)||typeof(new O.Map).keys().next!=="function"||nr||!Zt){delete O.Map;delete O.Set;h(O,{Map:kt.Map,Set:kt.Set},true)}}if(O.Set.prototype.keys!==O.Set.prototype.values){v(O.Set.prototype,"keys",O.Set.prototype.values,true)}K(Object.getPrototypeOf((new O.Map).keys()));K(Object.getPrototypeOf((new O.Set).keys()));if(f&&O.Set.prototype.has.name!=="has"){var or=O.Set.prototype.has;X(O.Set.prototype,"has",function Qn(e){return t(or,this,e)})}}W(Map);W(Set);if(!O.Reflect){v(O,"Reflect",{})}var ir=O.Reflect;var ar=function Yn(e){if(!Q.TypeIsObject(e)){throw new TypeError("target must be an object")}};var ur={apply:function eo(){return e(Q.Call,null,arguments)},construct:function to(e,t){if(!Q.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!Q.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return Q.Construct(e,t,r,"internal")},deleteProperty:function ro(e,t){ar(e);if(u){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function no(e){ar(e);return new pe(e,"key")},has:function oo(e,t){ar(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(ur,{ownKeys:function io(e){ar(e);var t=Object.getOwnPropertyNames(e);if(Q.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var fr=function ao(e){return!n(e)};if(Object.preventExtensions){Object.assign(ur,{isExtensible:function uo(e){ar(e);return Object.isExtensible(e)},preventExtensions:function fo(e){ar(e);return fr(function(){Object.preventExtensions(e)})}})}if(u){var sr=function so(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(!o){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return sr(i,r,n)}if("value"in o){return o.value}if(o.get){return t(o.get,n)}return undefined};var cr=function co(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return cr(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!Q.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return ir.defineProperty(o,r,{value:n})}else{return ir.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(ur,{defineProperty:function po(e,t,r){ar(e);return fr(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function lo(e,t){ar(e);return Object.getOwnPropertyDescriptor(e,t)},get:function vo(e,t){ar(e);var r=arguments.length>2?arguments[2]:e;return sr(e,t,r)},set:function ho(e,t,r){ar(e);var n=arguments.length>3?arguments[3]:e;return cr(e,t,r,n)}})}if(Object.getPrototypeOf){var pr=Object.getPrototypeOf;ur.getPrototypeOf=function yo(e){ar(e);return pr(e)}}if(Object.setPrototypeOf&&ur.getPrototypeOf){var lr=function(e,t){while(t){if(e===t){return true}t=ur.getPrototypeOf(t)}return false};Object.assign(ur,{setPrototypeOf:function bo(e,t){ar(e);if(t!==null&&!Q.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===ir.getPrototypeOf(e)){return true}if(ir.isExtensible&&!ir.isExtensible(e)){return false}if(lr(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var vr=function(e,t){if(!Q.IsCallable(O.Reflect[e])){v(O.Reflect,e,t)}else{var r=o(function(){O.Reflect[e](1);O.Reflect[e](NaN);O.Reflect[e](true);return true});if(r){X(O.Reflect,e,t)}}};Object.keys(ur).forEach(function(e){vr(e,ur[e])});if(f&&O.Reflect.getPrototypeOf.name!=="getPrototypeOf"){var hr=O.Reflect.getPrototypeOf;X(O.Reflect,"getPrototypeOf",function go(e){return t(hr,O.Reflect,e)})}if(O.Reflect.setPrototypeOf){if(o(function(){O.Reflect.setPrototypeOf(1,{});return true})){X(O.Reflect,"setPrototypeOf",ur.setPrototypeOf)}}if(O.Reflect.defineProperty){if(o(function(){O.Reflect.defineProperty(1,"test",{value:1});return true})){X(O.Reflect,"defineProperty",ur.defineProperty)}}if(String(new Date(NaN))!=="Invalid Date"){var yr=Date.prototype.toString;var br=function mo(){var e=+this;if(e!==e){return"Invalid Date"}return t(yr,this)};X(Date.prototype,"toString",br)}var gr={anchor:function Oo(e){return Q.CreateHTML(this,"a","name",e)},big:function wo(){return Q.CreateHTML(this,"big","","")},blink:function jo(){return Q.CreateHTML(this,"blink","","")},bold:function So(){return Q.CreateHTML(this,"b","","")},fixed:function To(){return Q.CreateHTML(this,"tt","","")},fontcolor:function Io(e){return Q.CreateHTML(this,"font","color",e)},fontsize:function Eo(e){return Q.CreateHTML(this,"font","size",e)},italics:function Mo(){return Q.CreateHTML(this,"i","","")},link:function Po(e){return Q.CreateHTML(this,"a","href",e)},small:function xo(){return Q.CreateHTML(this,"small","","")},strike:function Co(){return Q.CreateHTML(this,"strike","","")},sub:function No(){return Q.CreateHTML(this,"sub","","")},sup:function Ao(){return Q.CreateHTML(this,"sup","","")}};s(Object.keys(gr),function(e){var r=String.prototype[e];var n=false;if(Q.IsCallable(r)){var o=t(r,"",' " ');var i=E([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){v(String.prototype,e,gr[e],true)}});return O}); //# sourceMappingURL=es6-shim.map diff --git a/package.json b/package.json index 94e2a5b0..04b2ca06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.32.2", + "version": "0.32.3", "author": "Paul Miller (http://paulmillr.com)", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [