From 92ff7dcb1454851d1a3a32255c0abcf8e8345f6e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 30 Jul 2015 16:58:24 -0700 Subject: [PATCH] v0.33.0 --- CHANGELOG.md | 9 +++++++++ bower.json | 2 +- component.json | 2 +- es6-shim.map | 2 +- es6-shim.min.js | 4 ++-- package.json | 2 +- 6 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbcefb10..f4411998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # es6-shim x.x.x (not yet released) +# es6-shim 0.33.0 (30 Jul 2015) +* [Breaking] Avoid CSP errors in Chrome apps by using global var detection (#301) +* [Performance] Rearranging some of the Map/Set runtime shim clobberings to be more efficient. +* [Refactor] Implement `Array.of` directly, rather than in terms of `Array.from` +* [Dev Deps] Update `chai`, `es5-shim`, `promises-aplus-tests`, `uglify-js` +* [Tests] Add test for `Object.getPrototypeOf` accepting primitives. +* [Tests] Bail out of individual `Reflect` tests when the methods don’t exist +* [Tests] Test on latest `io.js` + # 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 diff --git a/bower.json b/bower.json index 42292f0f..ffd76cb4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.32.3", + "version": "0.33.0", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/component.json b/component.json index fa20fe37..9e21760a 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.32.3", + "version": "0.33.0", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/es6-shim.map b/es6-shim.map index bd57108f..2dc57681 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","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,IA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AAS,GAAI,KAClE6oB,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 +{"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","createDataProperty","object","value","configurable","enumerable","writable","createDataPropertyOrThrow","ES","SameValue","TypeError","force","defineProperties","map","keys","method","create","properties","Prototype","key","Value","defineByDescriptor","supportsSubclassing","C","f","setPrototypeOf","Sub","Subclass","arg","o","constructor","startsWithRejectsRegex","String","startsWith","startsWithHandlesInfinity","Infinity","getGlobal","self","window","global","Error","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","getter","get","proxy","originalObject","targetObject","originalDescriptor","getOwnPropertyDescriptor","getKey","set","setKey","redefine","property","newValue","descriptor","preserveToString","target","source","defaultSpeciesGetter","addDefaultSpecies","Type","x","string","regex","symbol","numberIsNaN","Number","isNaN","numberIsFinite","overrideNative","replacement","original","$iterator$","iterator","Set","addIterator","impl","implementation","isArguments","str","result","length","callee","Call","F","V","args","IsCallable","RequireObjectCoercible","optMessage","TypeIsObject","ToObject","IsConstructor","ToInt32","ToNumber","ToUint32","ToInteger","number","ToLength","len","MAX_SAFE_INTEGER","a","b","SameValueZero","IsIterable","GetIterator","itFn","GetMethod","it","p","IteratorComplete","iterResult","IteratorClose","completionIsThrow","returnMethod","innerResult","innerException","IteratorNext","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","A","isArray","k","iteratorResult","array","kind","retval","ObjectIterator","getAllKeys","arrayOfSupportsSubclassing","Foo","fooArr","ArrayPrototypeShims","copyWithin","relativeTarget","relativeStart","to","fin","count","direction","fill","relativeEnd","find","predicate","list","thisArg","findIndex","values","entries","unscopables","originalArrayPrototypeValues","getPrototypeOf","arrayFromSwallowsNegativeLengths","arrayFromHandlesIterables","arr","arrayFromHandlesUndefinedMapFunction","origArrayFrom","toLengthsCorrectly","reversed","originalForEach","callbackFn","originalMap","originalFilter","some","originalSome","originalEvery","originalReduce","reduceRight","originalReduceRight","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","originalObjectGetOwnPropertyNames","val","objectGOPDAcceptsPrimitives","originalObjectGetOwnPropertyDescriptor","seal","objectSealAcceptsPrimitives","originalObjectSeal","isSealed","objectIsSealedAcceptsPrimitives","originalObjectIsSealed","freeze","objectFreezeAcceptsPrimitives","originalObjectFreeze","isFrozen","objectIsFrozenAcceptsPrimitives","originalObjectIsFrozen","objectPreventExtensionsAcceptsPrimitives","originalObjectPreventExtensions","isExtensible","objectIsExtensibleAcceptsPrimitives","originalObjectIsExtensible","objectGetProtoAcceptsPrimitives","originalGetProto","flags","regExpFlagsGetter","ignoreCase","multiline","unicode","sticky","regExpSupportsFlagsWithRegex","OrigRegExp","RegExpShim","pattern","calledWithNew","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","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,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,EAAIK,EAC/B,IAAII,GAAkC,WAEpC,OAAQJ,EAAY,WAAcK,OAAOC,kBAAmB,UAE9D,IAAIC,KAAwBF,OAAOC,gBAAkBF,GACrD,IAAII,GAAqB,QAAUC,QAAUC,OAAS,KAEtD,IAAIC,GAAWrB,SAASC,KAAKC,KAAKoB,MAAMC,UAAUC,QAClD,IAAIC,GAAUzB,SAASC,KAAKC,KAAKoB,MAAMC,UAAUG,OACjD,IAAIC,GAAU3B,SAASC,KAAKC,KAAKoB,MAA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AAW1M,KAAM,KAAM,GAAI,KAC/D2oB,UAAW,QAASA,IAAUC,GAAS,MAAOpmB,IAAGkK,WAAW1M,KAAM,OAAQ,QAAS4oB,IACnFC,SAAU,QAASA,IAAS9D,GAAQ,MAAOviB,IAAGkK,WAAW1M,KAAM,OAAQ,OAAQ+kB,IAC/E+D,QAAS,QAASA,MAAY,MAAOtmB,IAAGkK,WAAW1M,KAAM,IAAK,GAAI,KAClE+oB,KAAM,QAASA,IAAKC,GAAO,MAAOxmB,IAAGkK,WAAW1M,KAAM,IAAK,OAAQgpB,IACnEC,MAAO,QAASA,MAAU,MAAOzmB,IAAGkK,WAAW1M,KAAM,QAAS,GAAI,KAClEkpB,OAAQ,QAASA,MAAW,MAAO1mB,IAAGkK,WAAW1M,KAAM,SAAU,GAAI,KACrEmpB,IAAK,QAASA,MAAQ,MAAO3mB,IAAGkK,WAAW1M,KAAM,MAAO,GAAI,KAC5DopB,IAAK,QAASD,MAAQ,MAAO3mB,IAAGkK,WAAW1M,KAAM,MAAO,GAAI,KAE9DuB,GAASN,OAAO6B,KAAKulB,IAAkB,SAAUllB,GAC/C,GAAIJ,GAASiB,OAAOvC,UAAU0B,EAC9B,IAAIkmB,GAAkB,KACtB,IAAI7mB,GAAGqH,WAAW9G,GAAS,CACzB,GAAIumB,GAAShpB,EAAMyC,EAAQ,GAAI,MAC/B,IAAIwmB,GAAcrkB,KAAYokB,EAAOE,MAAM,OAAOjgB,MAClD8f,GAAkBC,IAAWA,EAAOG,eAAiBF,EAAc,MAC9D,CACLF,EAAkB,KAEpB,GAAIA,EAAiB,CACnBnoB,EAAe8C,OAAOvC,UAAW0B,EAAKklB,GAAgBllB,GAAM,QAIhE,OAAOsB"} \ No newline at end of file diff --git a/es6-shim.min.js b/es6-shim.min.js index 2258983c..dc0e1747 100644 --- a/es6-shim.min.js +++ b/es6-shim.min.js @@ -7,6 +7,6 @@ * 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 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}); +(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 Or(t){return function r(){return!e(t,this,arguments)}};var n=function(e){try{e();return false}catch(t){return true}};var o=function wr(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 jr(){}.name==="foo";var s=Function.call.bind(Array.prototype.forEach);var c=Function.call.bind(Array.prototype.reduce);var l=Function.call.bind(Array.prototype.filter);var p=Function.call.bind(Array.prototype.every);var v=function Sr(e,t,r){if(u){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var h=function Tr(e,t,r){v(e,t,r);if(!ee.SameValue(e[t],r)){throw new TypeError("property is nonconfigurable")}};var y=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 b=function(e,t){s(Object.keys(t),function(r){var n=t[r];y(e,r,n,false)})};var g=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){V.defineByDescriptor(n,e,t[e])})}return n};var d=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=g(e.prototype,{constructor:{value:r}});return t(r)})};var m=function(){return String.prototype.startsWith&&n(function(){"/a/".startsWith(/a/)})};var O=function(){return String.prototype.startsWith&&"abc".startsWith("a",Infinity)===false}();var w=function(){if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}throw new Error("unable to locate global object")};var j=w();var S=j.isFinite;var T=function(){return this===null}.call(null);var I=m()&&O;var E=Function.call.bind(String.prototype.indexOf);var M=Function.call.bind(Object.prototype.toString);var P=Function.call.bind(Array.prototype.concat);var x=Function.call.bind(String.prototype.slice);var C=Function.call.bind(Array.prototype.push);var A=Function.apply.bind(Array.prototype.push);var N=Function.call.bind(Array.prototype.shift);var _=Math.max;var k=Math.min;var R=Math.floor;var F=Math.abs;var L=Math.log;var D=Math.sqrt;var z=Function.call.bind(Object.prototype.hasOwnProperty);var q;var G=function(){};var H=j.Symbol||{};var W=H.species||"@@species";var V={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){y(e,"toString",t.toString.bind(t),true)}};var B=function(){return this};var $=function(e){if(u&&!z(e,W)){V.getter(e,W,B)}};var U={object:function(e){return e!==null&&typeof e==="object"},string:function(e){return M(e)==="[object String]"},regex:function(e){return M(e)==="[object RegExp]"},symbol:function(e){return typeof j.Symbol==="function"&&typeof e==="symbol"}};var X=Number.isNaN||function Ir(e){return e!==e};var Z=Number.isFinite||function Er(e){return typeof e==="number"&&S(e)};var K=function Mr(e,t,r){var n=e[t];y(e,t,r,true);V.preserveToString(e[t],n)};var J=U.symbol(H.iterator)?H.iterator:"_es6-shim iterator_";if(j.Set&&typeof(new j.Set)["@@iterator"]==="function"){J="@@iterator"}var Q=function(e,t){var r=t||function n(){return this};y(e,J,r);if(!e[J]&&U.symbol(J)){e[J]=r}};var Y=function Pr(e){var t=M(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&M(e.callee)==="[object Function]"}return r};var ee={Call:function xr(t,r){var n=arguments.length>2?arguments[2]:[];if(!ee.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){ee.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&M(e)==="[object Function]"},IsConstructor:function(e){return ee.IsCallable(e)},ToInt32:function(e){return ee.ToNumber(e)>>0},ToUint32:function(e){return ee.ToNumber(e)>>>0},ToNumber:function(e){if(M(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=ee.ToNumber(e);if(X(t)){return 0}if(t===0||!Z(t)){return t}return(t>0?1:-1)*R(F(t))},ToLength:function(e){var t=ee.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 X(e)&&X(t)},SameValueZero:function(e,t){return e===t||X(e)&&X(t)},IsIterable:function(e){return ee.TypeIsObject(e)&&(typeof e[J]!=="undefined"||Y(e))},GetIterator:function(e){if(Y(e)){return new q(e,"value")}var r=ee.GetMethod(e,J);if(!ee.IsCallable(r)){throw new TypeError("value is not an iterable")}var n=t(r,e);if(!ee.TypeIsObject(n)){throw new TypeError("bad iterator")}return n},GetMethod:function(e,t){var r=ee.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!ee.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,r){var n=ee.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(!ee.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(!ee.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=ee.IteratorNext(e);var r=ee.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){if(r===void 0){r=e}if(!n){return ur.construct(e,t,r)}var o=r.prototype;if(!ee.TypeIsObject(o)){o=Object.prototype}var i=g(o);var a=ee.Call(e,i,t);return ee.TypeIsObject(a)?a:i},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!ee.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[W];if(n===void 0||n===null){return t}if(!ee.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 te=function(e,t,r,n){if(!ee.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!ee.TypeIsObject(o)){o=r}e=g(o);for(var i in n){if(z(n,i)){var a=n[i];y(e,i,a,true)}}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var re=String.fromCodePoint;K(String,"fromCodePoint",function Cr(t){return e(re,this,arguments)})}var ne={fromCodePoint:function Ar(e){var t=[];var r;for(var n=0,o=arguments.length;n1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){C(t,String.fromCharCode(r))}else{r-=65536;C(t,String.fromCharCode((r>>10)+55296));C(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function Nr(e){var t=ee.ToObject(e,"bad callSite");var r=ee.ToObject(t.raw,"bad raw value");var n=r.length;var o=ee.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,f,s,c;while(a=o){break}f=a+1=ie){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return oe(t,r)},startsWith:function Rr(e){ee.RequireObjectCoercible(this);var t=String(this);if(U.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=_(ee.ToInteger(n),0);return x(t,o,o+r.length)===r},endsWith:function Fr(e){ee.RequireObjectCoercible(this);var t=String(this);if(U.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:ee.ToInteger(o);var a=k(_(i,0),n);return x(t,a-r.length,a)===r},includes:function Lr(e){if(U.regex(e)){throw new TypeError('"includes" does not accept a RegExp')}var t;if(arguments.length>1){t=arguments[1]}return E(this,e,t)!==-1},codePointAt:function Dr(e){ee.RequireObjectCoercible(this);var t=String(this);var r=ee.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}}};b(String.prototype,ae);if("a".includes("a",Infinity)!==false){K(String.prototype,"includes",ae.includes)}var ue="\x85".trim().length!==1;if(ue){delete String.prototype.trim;var fe=[" \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 se=new RegExp("(^["+fe+"]+)|(["+fe+"]+$)","g");b(String.prototype,{trim:function zr(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(se,"")}})}var ce=function(e){ee.RequireObjectCoercible(e);this._s=String(e);this._i=0};ce.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}};Q(ce.prototype);Q(String.prototype,function(){return new ce(this)});if(!I){K(String.prototype,"startsWith",ae.startsWith);K(String.prototype,"endsWith",ae.endsWith)}var le={from:function qr(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!ee.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=Y(e)||ee.GetMethod(e,J);var u,f,s;if(a!==void 0){f=ee.IsConstructor(r)?Object(new r):[];var c=ee.GetIterator(e);var l,p;for(s=0;;++s){l=ee.IteratorStep(c);if(l===false){break}p=l.value;try{if(o){p=i!==undefined?t(n,i,p,s):n(p,s)}f[s]=p}catch(v){ee.IteratorClose(c,true);throw v}}u=s}else{var h=ee.ToObject(e);u=ee.ToLength(h.length);f=ee.IsConstructor(r)?Object(new r(u)):new Array(u);var y;for(s=0;s0){e=N(t);if(!(e in this.object)){continue}if(this.kind==="key"){return pe(e)}else if(this.kind==="value"){return pe(this.object[e])}else{return pe([e,this.object[e]])}}return pe()}});Q(ve.prototype);var ye=Array.of===le.of||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(!ye){K(Array,"of",le.of)}var be={copyWithin:function Wr(e,t){var r=arguments[2];var n=ee.ToObject(this);var o=ee.ToLength(n.length);var i=ee.ToInteger(e);var a=ee.ToInteger(t);var u=i<0?_(o+i,0):k(i,o);var f=a<0?_(o+a,0):k(a,o);r=typeof r==="undefined"?o:ee.ToInteger(r);var s=r<0?_(o+r,0):k(r,o);var c=k(s-f,o-u);var l=1;if(f0){if(z(n,f)){n[u]=n[f]}else{delete n[f]}f+=l;u+=l;c-=1}return n},fill:function Vr(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=ee.ToObject(this);var o=ee.ToLength(n.length);t=ee.ToInteger(typeof t==="undefined"?0:t);r=ee.ToInteger(typeof r==="undefined"?o:r);var i=t<0?_(o+t,0):k(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(we,this,arguments)}else{return t(we,this,r)}})}var je=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(!je(Array.prototype.forEach)){var Se=Array.prototype.forEach;K(Array.prototype,"forEach",function Qr(t){return e(Se,this.length>=0?this:[],arguments)},true)}if(!je(Array.prototype.map)){var Te=Array.prototype.map;K(Array.prototype,"map",function Yr(t){return e(Te,this.length>=0?this:[],arguments)},true)}if(!je(Array.prototype.filter)){var Ie=Array.prototype.filter;K(Array.prototype,"filter",function en(t){return e(Ie,this.length>=0?this:[],arguments)},true)}if(!je(Array.prototype.some)){var Ee=Array.prototype.some;K(Array.prototype,"some",function tn(t){return e(Ee,this.length>=0?this:[],arguments)},true)}if(!je(Array.prototype.every)){var Me=Array.prototype.every;K(Array.prototype,"every",function rn(t){return e(Me,this.length>=0?this:[],arguments)},true)}if(!je(Array.prototype.reduce)){var Pe=Array.prototype.reduce;K(Array.prototype,"reduce",function nn(t){return e(Pe,this.length>=0?this:[],arguments)},true)}if(!je(Array.prototype.reduceRight,true)){var xe=Array.prototype.reduceRight;K(Array.prototype,"reduceRight",function on(t){return e(xe,this.length>=0?this:[],arguments)},true)}var Ce=Math.pow(2,53)-1;b(Number,{MAX_SAFE_INTEGER:Ce,MIN_SAFE_INTEGER:-Ce,EPSILON:2.220446049250313e-16,parseInt:j.parseInt,parseFloat:j.parseFloat,isFinite:Z,isInteger:function an(e){return Z(e)&&ee.ToInteger(e)===e},isSafeInteger:function un(e){return Number.isInteger(e)&&F(e)<=Number.MAX_SAFE_INTEGER},isNaN:X});y(Number,"parseInt",j.parseInt,Number.parseInt!==j.parseInt);if(![,1].find(function(e,t){return t===0})){K(Array.prototype,"find",be.find)}if([,1].findIndex(function(e,t){return t===0})!==0){K(Array.prototype,"findIndex",be.findIndex)}var Ae=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var Ne=function fn(){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*L((1+t)/(1-t))},cbrt:function Mn(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(L(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function Pn(e){var r=Number(e);var n=ee.ToUint32(r);if(n===0){return 32}return yt?t(yt,n):31-R(L(n+.5)*Math.LOG2E)},cosh:function xn(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!S(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 Cn(e){var t=Number(e);if(t===-Infinity){return-1}if(!S(t)||t===0){return t}if(F(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 An(e,t){var r=0;var n=0;for(var o=0;o0?i/n*(i/n):i}}return n===Infinity?Infinity:n*D(r)},log2:function Nn(e){return L(e)*Math.LOG2E},log10:function _n(e){return L(e)*Math.LOG10E},log1p:function kn(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*(L(1+t)/(1+t-1))},sign:function Rn(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function Fn(e){var t=Number(e);if(!S(t)||t===0){return t}if(F(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function Ln(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 Dn(e){var t=Number(e);return t<0?-R(-t):R(t)},imul:function zn(e,t){var r=ee.ToUint32(e);var n=ee.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 qn(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||X(t)){return t}var r=Math.sign(t);var n=F(t);if(nvt||X(i)){return r*Infinity}return r*i}};b(Math,bt);y(Math,"log1p",bt.log1p,Math.log1p(-1e-17)!==-1e-17);y(Math,"asinh",bt.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));y(Math,"tanh",bt.tanh,Math.tanh(-2e-17)!==-2e-17);y(Math,"acosh",bt.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);y(Math,"cbrt",bt.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);y(Math,"sinh",bt.sinh,Math.sinh(-2e-17)!==-2e-17);var gt=Math.expm1(10);y(Math,"expm1",bt.expm1,gt>22025.465794806718||gt<22025.465794806718);var dt=Math.round;var mt=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var Ot=ct+1;var wt=2*ct-1;var jt=[Ot,wt].every(function(e){return Math.round(e)===e});y(Math,"round",function Gn(e){var t=R(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!mt||!jt);V.preserveToString(Math.round,dt);var St=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=bt.imul;V.preserveToString(Math.imul,St)}if(Math.imul.length!==2){K(Math,"imul",function Hn(t,r){return e(St,Math,arguments)})}var Tt=function(){ee.IsPromise=function(e){if(!ee.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var e=function(e){if(!ee.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(!(ee.IsCallable(t.resolve)&&ee.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var r=j.setTimeout;var n;if(typeof window!=="undefined"&&ee.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){C(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=N(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=j.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=ee.IsCallable(j.setImmediate)?j.setImmediate.bind(j):typeof process==="object"&&process.nextTick?process.nextTick:o()||(ee.IsCallable(n)?n():function(e){r(e,0)});var a=1;var u=2;var f=3;var c=4;var l=5;var p=function(e,t){var r=e.capabilities;var n=e.handler;var o,i=false,f;if(n===a){o=t}else if(n===u){o=t;i=true}else{try{o=n(t)}catch(s){o=s;i=true}}f=i?r.reject:r.resolve;f(o)};var v=function(e,t){s(e,function(e){i(function(){p(e,t)})})};var h=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 y=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=l;v(n,t)};var g=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return y(e,new TypeError("Self resolution"))}if(!ee.TypeIsObject(r)){return h(e,r)}try{n=r.then}catch(o){return y(e,o)}if(!ee.IsCallable(n)){return h(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return y(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(!ee.TypeIsObject(e)){throw new TypeError("Promise is not object")}var t=e[W];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(!ee.IsCallable(e)){throw new TypeError("not a valid resolver")}var t=te(this,E,w,{_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 w=O.prototype;var S=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var T=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;for(var f=0;;f++){try{a=ee.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(s){e.done=true;throw s}o[f]=void 0;var c=t.resolve(u);var l=S(f,o,r,i);i.count++;c.then(l,r.reject)}if(--i.count===0){var p=r.resolve;p(o)}return r.promise};var I=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=ee.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};b(O,{all:function M(t){var r=m(this);var n=new e(r);var o,i;try{o=ee.GetIterator(t);i={iterator:o,done:false};return T(i,r,n)}catch(a){if(i&&!i.done){try{ee.IteratorClose(o,true)}catch(u){a=u}}var f=n.reject;f(a);return n.promise}},race:function P(t){var r=m(this);var n=new e(r);var o,i;try{o=ee.GetIterator(t);i={iterator:o,done:false};return I(i,r,n)}catch(a){if(i&&!i.done){try{ee.IteratorClose(o,true)}catch(u){a=u}}var f=n.reject;f(a);return n.promise}},reject:function x(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(ee.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}});b(w,{"catch":function(e){return this.then(void 0,e)},then:function _(t,r){var n=this;if(!ee.IsPromise(n)){throw new TypeError("not a promise")}var o=ee.SpeciesConstructor(n,O);var s=new e(o);if(!ee.IsCallable(t)){t=a}if(!ee.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:C(y.fulfillReactions,v);C(y.rejectReactions,h);break;case c:b=y.result;i(function(){p(v,b)});break;case l:b=y.result;i(function(){p(h,b)});break;default:throw new TypeError("unexpected")}return s.promise}});return O}();if(j.Promise){delete j.Promise.accept;delete j.Promise.defer;delete j.Promise.prototype.chain}b(j,{Promise:Tt});var It=d(j.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Et=!n(function(){j.Promise.reject(42).then(null,5).then(null,G)});var Mt=n(function(){j.Promise.call(3,G)});var Pt=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(j.Promise);if(!It||!Et||!Mt||Pt){Promise=Tt;K(j,"Promise",Tt)}$(Promise);var xt=function(e){var t=Object.keys(c(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var Ct=xt(["z","a","bb"]);var At=xt(["z",1,"a","3",2]);if(u){var Nt=function Wn(e){if(!Ct){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(!At){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var _t=function Vn(){return Object.create?Object.create(null):{}};var kt=function Bn(e,r,n){if(Array.isArray(n)||U.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(!ee.IsCallable(i)){throw new TypeError("bad map")}o=ee.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=ee.IteratorStep(o);if(a===false){break}var u=a.value;try{if(!ee.TypeIsObject(u)){throw new TypeError("expected iterable of pairs")}t(i,r,u[0],u[1])}catch(f){ee.IteratorClose(o,true);throw f}}}}};var Rt=function $n(e,r,n){if(Array.isArray(n)||U.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(!ee.IsCallable(i)){throw new TypeError("bad set")}o=ee.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=ee.IteratorStep(o);if(a===false){break}var u=a.value;try{t(i,r,u)}catch(f){ee.IteratorClose(o,true);throw f}}}}};var Ft={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 l(e,t){if(!ee.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+String(e))}};var i=function p(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}}};Q(i.prototype);var a=function h(){if(!(this instanceof h)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=te(this,h,u,{_es6map:true,_head:null,_storage:_t(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){kt(h,e,arguments[0])}return e};var u=a.prototype;V.getter(u,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});b(u,{get:function y(e){o(this,"get");var t=Nt(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(ee.SameValueZero(i.key,e)){return i.value}}},has:function g(e){o(this,"has");var t=Nt(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(ee.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=Nt(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(ee.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(ee.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=Nt(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(ee.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=_t();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)}}}});Q(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(!ee.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=te(this,f,o,{_es6set:true,"[[SetData]]":null,_storage:_t()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){Rt(f,e,arguments[0])}return e};var o=n.prototype;var i=function c(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new Ft.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=x(e,1)}else if(r==="n"){e=+x(e,1)}else if(r==="b"){e=e==="btrue"}else{e=+e}}t.set(e,e)});e._storage=null}};V.getter(n.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});b(n.prototype,{has:function l(e){r(this,"has");var t;if(this._storage&&(t=Nt(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function p(e){r(this,"add");var t;if(this._storage&&(t=Nt(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=Nt(e))!==null){var n=z(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function v(){r(this,"clear");if(this._storage){this._storage=_t()}else{this["[[SetData]]"].clear()}},values:function h(){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)}})}});y(n.prototype,"keys",n.prototype.values,true);Q(n.prototype,n.prototype.values);return n}()};if(j.Map||j.Set){var Lt=o(function(){return new Map([[1,2]]).get(1)===2});if(!Lt){var Dt=j.Map;j.Map=function Un(){if(!(this instanceof Un)){throw new TypeError('Constructor Map requires "new"')}var e=new Dt;if(arguments.length>0){kt(Un,e,arguments[0])}Object.setPrototypeOf(e,j.Map.prototype);y(e,"constructor",Un,true);return e};j.Map.prototype=g(Dt.prototype);V.preserveToString(j.Map,Dt)}var zt=new Map;var qt=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}(zt);var Gt=zt.set(1,2)===zt;if(!qt||!Gt){var Ht=Map.prototype.set;K(Map.prototype,"set",function Xn(e,r){t(Ht,this,e===0?0:e,r);return this})}if(!qt){var Wt=Map.prototype.get;var Vt=Map.prototype.has;b(Map.prototype,{get:function Zn(e){return t(Wt,this,e===0?0:e)},has:function Kn(e){return t(Vt,this,e===0?0:e)}},true);V.preserveToString(Map.prototype.get,Wt);V.preserveToString(Map.prototype.has,Vt)}var Bt=new Set;var $t=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(Bt);var Ut=Bt.add(1)===Bt;if(!$t||!Ut){var Xt=Set.prototype.add;Set.prototype.add=function Jn(e){t(Xt,this,e===0?0:e);return this};V.preserveToString(Set.prototype.add,Xt)}if(!$t){var Zt=Set.prototype.has;Set.prototype.has=function Qn(e){return t(Zt,this,e===0?0:e)};V.preserveToString(Set.prototype.has,Zt);var Kt=Set.prototype["delete"];Set.prototype["delete"]=function Yn(e){return t(Kt,this,e===0?0:e)};V.preserveToString(Set.prototype["delete"],Kt)}var Jt=d(j.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var Qt=Object.setPrototypeOf&&!Jt;var Yt=function(){try{return!(j.Map()instanceof j.Map)}catch(e){return e instanceof TypeError}}();if(j.Map.length!==0||Qt||!Yt){var er=j.Map;j.Map=function eo(){if(!(this instanceof eo)){throw new TypeError('Constructor Map requires "new"')}var e=new er;if(arguments.length>0){kt(eo,e,arguments[0])}Object.setPrototypeOf(e,eo.prototype);y(e,"constructor",eo,true);return e};j.Map.prototype=er.prototype;V.preserveToString(j.Map,er)}var tr=d(j.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var rr=Object.setPrototypeOf&&!tr;var nr=function(){try{return!(j.Set()instanceof j.Set)}catch(e){return e instanceof TypeError}}();if(j.Set.length!==0||rr||!nr){var or=j.Set;j.Set=function to(){if(!(this instanceof to)){throw new TypeError('Constructor Set requires "new"')}var e=new or;if(arguments.length>0){Rt(to,e,arguments[0])}Object.setPrototypeOf(e,to.prototype);y(e,"constructor",to,true);return e};j.Set.prototype=or.prototype;V.preserveToString(j.Set,or)}var ir=!o(function(){return(new Map).keys().next().done});if(typeof j.Map.prototype.clear!=="function"||(new j.Set).size!==0||(new j.Map).size!==0||typeof j.Map.prototype.keys!=="function"||typeof j.Set.prototype.keys!=="function"||typeof j.Map.prototype.forEach!=="function"||typeof j.Set.prototype.forEach!=="function"||i(j.Map)||i(j.Set)||typeof(new j.Map).keys().next!=="function"||ir||!Jt){delete j.Map;delete j.Set;b(j,{Map:Ft.Map,Set:Ft.Set},true)}if(j.Set.prototype.keys!==j.Set.prototype.values){y(j.Set.prototype,"keys",j.Set.prototype.values,true)}Q(Object.getPrototypeOf((new j.Map).keys()));Q(Object.getPrototypeOf((new j.Set).keys()));if(f&&j.Set.prototype.has.name!=="has"){var ar=j.Set.prototype.has;K(j.Set.prototype,"has",function ro(e){return t(ar,this,e)})}}b(j,Ft);$(j.Map);$(j.Set)}if(!j.Reflect){y(j,"Reflect",{})}var ur=j.Reflect;var fr=function no(e){if(!ee.TypeIsObject(e)){throw new TypeError("target must be an object")}};var sr={apply:function oo(){return e(ee.Call,null,arguments)},construct:function io(e,t){if(!ee.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!ee.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return ee.Construct(e,t,r,"internal")},deleteProperty:function ao(e,t){fr(e);if(u){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function uo(e){fr(e);return new ve(e,"key")},has:function fo(e,t){fr(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(sr,{ownKeys:function so(e){fr(e);var t=Object.getOwnPropertyNames(e);if(ee.IsCallable(Object.getOwnPropertySymbols)){A(t,Object.getOwnPropertySymbols(e))}return t}})}var cr=function co(e){return!n(e)};if(Object.preventExtensions){Object.assign(sr,{isExtensible:function lo(e){fr(e);return Object.isExtensible(e)},preventExtensions:function po(e){fr(e);return cr(function(){Object.preventExtensions(e)})}})}if(u){var lr=function vo(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(!o){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return lr(i,r,n)}if("value"in o){return o.value}if(o.get){return t(o.get,n)}return undefined};var pr=function ho(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return pr(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!ee.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return ur.defineProperty(o,r,{value:n})}else{return ur.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(sr,{defineProperty:function yo(e,t,r){fr(e);return cr(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function bo(e,t){fr(e);return Object.getOwnPropertyDescriptor(e,t)},get:function go(e,t){fr(e);var r=arguments.length>2?arguments[2]:e;return lr(e,t,r)},set:function mo(e,t,r){fr(e);var n=arguments.length>3?arguments[3]:e;return pr(e,t,r,n)}})}if(Object.getPrototypeOf){var vr=Object.getPrototypeOf;sr.getPrototypeOf=function Oo(e){fr(e);return vr(e)}}if(Object.setPrototypeOf&&sr.getPrototypeOf){var hr=function(e,t){while(t){if(e===t){return true}t=sr.getPrototypeOf(t)}return false};Object.assign(sr,{setPrototypeOf:function wo(e,t){fr(e);if(t!==null&&!ee.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===ur.getPrototypeOf(e)){return true}if(ur.isExtensible&&!ur.isExtensible(e)){return false}if(hr(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var yr=function(e,t){if(!ee.IsCallable(j.Reflect[e])){y(j.Reflect,e,t)}else{var r=o(function(){j.Reflect[e](1);j.Reflect[e](NaN);j.Reflect[e](true);return true});if(r){K(j.Reflect,e,t)}}};Object.keys(sr).forEach(function(e){yr(e,sr[e])});if(f&&j.Reflect.getPrototypeOf.name!=="getPrototypeOf"){var br=j.Reflect.getPrototypeOf;K(j.Reflect,"getPrototypeOf",function jo(e){return t(br,j.Reflect,e)})}if(j.Reflect.setPrototypeOf){if(o(function(){j.Reflect.setPrototypeOf(1,{});return true})){K(j.Reflect,"setPrototypeOf",sr.setPrototypeOf)}}if(j.Reflect.defineProperty){if(o(function(){j.Reflect.defineProperty(1,"test",{value:1});return true})){K(j.Reflect,"defineProperty",sr.defineProperty)}}if(String(new Date(NaN))!=="Invalid Date"){var gr=Date.prototype.toString;var dr=function So(){var e=+this;if(e!==e){return"Invalid Date"}return t(gr,this)};K(Date.prototype,"toString",dr)}var mr={anchor:function To(e){return ee.CreateHTML(this,"a","name",e)},big:function Io(){return ee.CreateHTML(this,"big","","")},blink:function Eo(){return ee.CreateHTML(this,"blink","","")},bold:function Mo(){return ee.CreateHTML(this,"b","","")},fixed:function Po(){return ee.CreateHTML(this,"tt","","")},fontcolor:function xo(e){return ee.CreateHTML(this,"font","color",e)},fontsize:function Co(e){return ee.CreateHTML(this,"font","size",e)},italics:function Ao(){return ee.CreateHTML(this,"i","","")},link:function No(e){return ee.CreateHTML(this,"a","href",e)},small:function _o(){return ee.CreateHTML(this,"small","","")},strike:function ko(){return ee.CreateHTML(this,"strike","","")},sub:function Ro(){return ee.CreateHTML(this,"sub","","")},sup:function Fo(){return ee.CreateHTML(this,"sup","","")}};s(Object.keys(mr),function(e){var r=String.prototype[e];var n=false;if(ee.IsCallable(r)){var o=t(r,"",' " ');var i=P([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){y(String.prototype,e,mr[e],true)}});return j}); //# sourceMappingURL=es6-shim.map diff --git a/package.json b/package.json index 9716e439..9f9a9013 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.32.3", + "version": "0.33.0", "author": "Paul Miller (http://paulmillr.com)", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [