diff --git a/package.json b/package.json index 11004d87..2b8c4793 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ice/stark", - "version": "1.5.6", + "version": "1.6.0", "description": "Icestark is a JavaScript library for multiple projects, Ice workbench solution.", "scripts": { "build": "rm -rf lib && tsc", diff --git a/src/AppRoute.tsx b/src/AppRoute.tsx index 19db0cd9..2083c11e 100644 --- a/src/AppRoute.tsx +++ b/src/AppRoute.tsx @@ -6,6 +6,7 @@ import { appendAssets, emptyAssets, cacheAssets, getEntryAssets, getUrlAssets } import { setCache, getCache } from './util/cache'; import { callAppEnter, callAppLeave, cacheApp, isCached, AppLifeCycleEnum } from './util/appLifeCycle'; import { callCapturedEventListeners } from './util/capturedListeners'; +import ModuleLoader from './util/umdLoader'; import isEqual = require('lodash.isequal'); @@ -62,6 +63,9 @@ export interface AppConfig { component?: React.ReactElement; render?: (props?: AppRouteComponentProps) => React.ReactElement; cache?: boolean; + umd?: boolean; // mark if sub-application is an umd module + name?: string; // used to mark a umd module, recommaded config it as same as webpack.output.library + customProps?: object; // custom props passed from framework app to sub app } // from AppRouter @@ -76,6 +80,7 @@ export interface AppRouteProps extends AppConfig { ) => boolean; componentProps?: AppRouteComponentProps; clearCacheRoot?: () => void; + moduleLoader?: ModuleLoader; } export function converArray2String(list: string | (string | PathData)[]) { @@ -121,6 +126,8 @@ export default class AppRoute extends React.Component process -> append - const rootElement = getCache('root'); appAssets = await getEntryAssets({ - root: rootElement, + root: this.rootElement, entry, href: location.href, entryContent, @@ -298,7 +312,7 @@ export default class AppRoute extends React.Component { - const { onAppLeave, triggerLoading } = this.props; + const { onAppLeave, triggerLoading, customProps } = this.props; if (this.appSandbox) { this.appSandbox.clear(); this.appSandbox = null; @@ -356,7 +370,7 @@ export default class AppRoute extends React.Component { const lifeCycleCacheKey = `cache_${cacheKey}_${lifeCycle}`; @@ -28,17 +33,17 @@ export function isCached(cacheKey: string) { return !!getCache(`cache_${cacheKey}_${AppLifeCycleEnum.AppEnter}`); } -export function callAppEnter() { +export function callAppEnter(props?: AppLifecycleProps) { const appEnterKey = AppLifeCycleEnum.AppEnter; const registerAppEnterCallback = getCache(appEnterKey); if (registerAppEnterCallback) { - registerAppEnterCallback(); + registerAppEnterCallback(props); setCache(appEnterKey, null); } } -export function callAppLeave() { +export function callAppLeave(props?: AppLifecycleProps) { // resetCapturedEventListeners when app change, remove react-router/vue-router listeners resetCapturedEventListeners(); @@ -46,7 +51,7 @@ export function callAppLeave() { const registerAppLeaveCallback = getCache(appLeaveKey); if (registerAppLeaveCallback) { - registerAppLeaveCallback(); + registerAppLeaveCallback(props); setCache(appLeaveKey, null); } } diff --git a/src/util/global.ts b/src/util/global.ts new file mode 100644 index 00000000..437907ce --- /dev/null +++ b/src/util/global.ts @@ -0,0 +1,64 @@ +// fork: https://github.com/systemjs/systemjs/blob/master/src/extras/global.js + +// safari unpredictably lists some new globals first or second in object order +let firstGlobalProp; +let secondGlobalProp; +let lastGlobalProp; +let noteGlobalKeys = []; +const isIE11 = typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Trident') !== -1; + +function shouldSkipProperty(p, globalWindow) { + // eslint-disable-next-line no-prototype-builtins + return !globalWindow.hasOwnProperty(p) + || !isNaN(p) && p < (globalWindow as any).length + || isIE11 && globalWindow[p] && typeof window !== 'undefined' && globalWindow[p].parent === window; +} + +export function getGlobalProp (globalWindow) { + let cnt = 0; + let lastProp; + // eslint-disable-next-line no-restricted-syntax + for (const p in globalWindow) { + // do not check frames cause it could be removed during import + if (shouldSkipProperty(p, globalWindow)) + // eslint-disable-next-line no-continue + continue; + if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp) + return p; + cnt++; + lastProp = p; + } + if (lastProp !== lastGlobalProp) { + return lastProp; + } else { + // polyfill for UC browser which lastprops will alway be window + // eslint-disable-next-line no-restricted-syntax + for (const p in globalWindow) { + if (!noteGlobalKeys.includes(p)) { + lastProp = p; + } + } + return lastProp; + } +} + +export function noteGlobalProps (globalWindow) { + // alternatively Object.keys(global).pop() + // but this may be faster (pending benchmarks) + firstGlobalProp = undefined; + secondGlobalProp = undefined; + noteGlobalKeys = Object.keys(globalWindow); + // eslint-disable-next-line no-restricted-syntax + for (const p in globalWindow) { + // do not check frames cause it could be removed during import + if (shouldSkipProperty(p, globalWindow)) + // eslint-disable-next-line no-continue + continue; + if (!firstGlobalProp) + firstGlobalProp = p; + else if (!secondGlobalProp) + secondGlobalProp = p; + lastGlobalProp = p; + } + return lastGlobalProp; +} diff --git a/src/util/handleAssets.ts b/src/util/handleAssets.ts index a276f14b..1f4a3fb8 100644 --- a/src/util/handleAssets.ts +++ b/src/util/handleAssets.ts @@ -1,6 +1,10 @@ import Sandbox from '@ice/sandbox'; +import * as urlParse from 'url-parse'; +import { AppLifeCycleEnum } from './appLifeCycle'; +import { setCache } from './cache'; import { PREFIX, DYNAMIC, STATIC, IS_CSS_REGEX } from './constant'; import { warn, error } from './message'; +import ModuleLoader from './umdLoader'; const winFetch = window.fetch; const COMMENT_REGEX = //g; @@ -10,6 +14,7 @@ const STYLE_REGEX = /]*>([^<]*)<\/style>/gi; const LINK_HREF_REGEX = /]*href=['"]?([^'"]*)['"]?\b[^>]*>/gi; const CSS_REGEX = new RegExp([STYLE_REGEX, LINK_HREF_REGEX].map((reg) => reg.source).join('|'), 'gi'); const STYLE_SHEET_REGEX = /rel=['"]stylesheet['"]/gi; +const moduleLoader = new ModuleLoader(); export enum AssetTypeEnum { INLINE = 'inline', @@ -146,7 +151,7 @@ export function getUrlAssets(urls: string[]) { } const cachedScriptsContent: object = {}; -function fetchScripts(jsList: Asset[], fetch: Fetch = winFetch) { +export function fetchScripts(jsList: Asset[], fetch: Fetch = winFetch) { return Promise.all(jsList.map((asset) => { const { type, content } = asset; if (type === AssetTypeEnum.INLINE) { @@ -157,7 +162,7 @@ function fetchScripts(jsList: Asset[], fetch: Fetch = winFetch) { } })); } -export async function appendAssets(assets: Assets, sandbox?: Sandbox) { +export async function appendAssets(assets: Assets, cacheKey: string, umd: boolean, sandbox?: Sandbox) { const jsRoot: HTMLElement = document.getElementsByTagName('head')[0]; const cssRoot: HTMLElement = document.getElementsByTagName('head')[0]; @@ -167,8 +172,13 @@ export async function appendAssets(assets: Assets, sandbox?: Sandbox) { await Promise.all( cssList.map((asset, index) => appendCSS(cssRoot, asset, `${PREFIX}-css-${index}`)), ); - - if (sandbox && !sandbox.sandboxDisabled) { + + if (umd) { + const moduleInfo = await moduleLoader.execModule({ jsList, cacheKey }, sandbox); + // set app lifecycle after exec umd module + setCache(AppLifeCycleEnum.AppEnter, moduleInfo?.mount); + setCache(AppLifeCycleEnum.AppLeave, moduleInfo?.unmount); + } else if (sandbox && !sandbox.sandboxDisabled) { const jsContents = await fetchScripts(jsList); // excute code by order jsContents.forEach(script => { @@ -190,12 +200,11 @@ export async function appendAssets(assets: Assets, sandbox?: Sandbox) { } export function parseUrl(entry: string): ParsedConfig { - const a = document.createElement('a'); - a.href = entry; + const { origin, pathname } = urlParse(entry); return { - origin: a.origin, - pathname: a.pathname, + origin, + pathname, }; } diff --git a/src/util/umdLoader.ts b/src/util/umdLoader.ts new file mode 100644 index 00000000..c7662bfd --- /dev/null +++ b/src/util/umdLoader.ts @@ -0,0 +1,91 @@ +import Sandbox from '@ice/sandbox'; +import { getGlobalProp, noteGlobalProps } from './global'; +import { Asset, fetchScripts } from './handleAssets'; + +export interface StarkModule { + cacheKey: string; + jsList: Asset[]; + mount?: (Component: any, targetNode: HTMLElement, props?: any) => void; + unmount?: (targetNode: HTMLElement) => void; +}; + +export interface ImportTask { + [cacheKey: string]: Promise; +}; + +export type PromiseModule = Promise; + +export interface Fetch { + (input: RequestInfo, init?: RequestInit): Promise; +} + +export default class ModuleLoader { + private importTask: ImportTask = {}; + + load(starkModule: StarkModule): Promise { + const { jsList, cacheKey } = starkModule; + if (this.importTask[cacheKey]) { + // return promise if current module is pending or resolved + return this.importTask[cacheKey]; + } + const task = fetchScripts(jsList); + this.importTask[cacheKey] = task; + return task; + } + + clearTask() { + this.importTask = {}; + } + + execModule(starkModule: StarkModule, sandbox?: Sandbox) { + return this.load(starkModule).then((sources) => { + const globalWindow = getGobalWindow(sandbox); + const { cacheKey } = starkModule; + let libraryExport = ''; + // excute script in order + try { + sources.forEach((source, index) => { + const lastScript = index === sources.length - 1; + if (lastScript) { + noteGlobalProps(globalWindow); + } + // check sandbox + if (sandbox?.execScriptInSandbox) { + sandbox.execScriptInSandbox(source); + } else { + // https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/eval + // eslint-disable-next-line no-eval + (0, eval)(source); + } + if (lastScript) { + libraryExport = getGlobalProp(globalWindow); + } + }); + } catch (err) { + console.error(err); + } + const moduleInfo = libraryExport ? (globalWindow as any)[libraryExport] : ((globalWindow as any)[cacheKey] || {}); + // remove moduleInfo from globalWindow in case of excute multi module in globalWindow + if ((globalWindow as any)[libraryExport]) { + delete globalWindow[libraryExport]; + } + return moduleInfo; + }); + } +}; + +/** + * Get globalwindow + * + * @export + * @param {Sandbox} [sandbox] + * @returns + */ +export function getGobalWindow(sandbox?: Sandbox) { + if (sandbox?.getSandbox) { + sandbox.createProxySandbox(); + return sandbox.getSandbox(); + } + // FIXME: If run in Node environment + return window; +} \ No newline at end of file diff --git a/tests/handleAssets.spec.tsx b/tests/handleAssets.spec.tsx index 54b6e42a..e37e1db1 100644 --- a/tests/handleAssets.spec.tsx +++ b/tests/handleAssets.spec.tsx @@ -370,6 +370,8 @@ describe('appendAssets', () => { ]); appendAssets( assets, + 'test-append', + false, ).then(() => { const jsElement0 = document.getElementById('icestark-js-0'); const jsElement1 = document.getElementById('icestark-js-1'); @@ -399,6 +401,8 @@ describe('appendAssets', () => { ]); appendAssets( assets, + 'test-root', + false, ); }); diff --git a/tests/umd-sample.js b/tests/umd-sample.js new file mode 100644 index 00000000..e138f3e9 --- /dev/null +++ b/tests/umd-sample.js @@ -0,0 +1 @@ +!function webpackUniversalModuleDefinition(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.selfComponent=r(require("react")):t.selfComponent=r(t.react)}(window,(function(t){return function(t){var r={};function __webpack_require__(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=t,__webpack_require__.c=r,__webpack_require__.d=function(t,r,e){__webpack_require__.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.t=function(t,r){if(1&r&&(t=__webpack_require__(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(__webpack_require__.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var n in t)__webpack_require__.d(e,n,function(r){return t[r]}.bind(null,n));return e},__webpack_require__.n=function(t){var r=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},__webpack_require__.p="/",__webpack_require__(__webpack_require__.s=149)}([function(t,r,e){var n=e(2),o=e(13).f,i=e(16),a=e(14),u=e(79),c=e(108),f=e(52);t.exports=function(t,r){var e=t.target,s=t.global,l=t.stat,h,p,v,d,g,y;if(p=s?n:l?n[e]||u(e,{}):(n[e]||{}).prototype)for(v in r){if(g=r[v],d=t.noTargetGet?(y=o(p,v))&&y.value:p[v],!(h=f(s?v:e+(l?".":"#")+v,t.forced))&&void 0!==d){if(typeof g==typeof d)continue;c(g,d)}(t.sham||d&&d.sham)&&i(g,"sham",!0),a(p,v,g,t)}}},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,e){(function(r){var check=function(t){return t&&t.Math==Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r&&r)||Function("return this")()}).call(this,e(151))},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r,e){var n=e(3);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,e){var n=e(2),o=e(81),i=e(11),a=e(49),u=e(85),c=e(111),f=o("wks"),s=n.Symbol,l=c?s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,r,e){"use strict";var n=e(92),o=e(7),i=e(2),a=e(3),u=e(11),c=e(58),f=e(16),s=e(14),l=e(9).f,h=e(28),p=e(42),v=e(5),d=e(49),g=i.Int8Array,y=g&&g.prototype,m=i.Uint8ClampedArray,x=m&&m.prototype,b=g&&h(g),w=y&&h(y),S=Object.prototype,A=S.isPrototypeOf,E=v("toStringTag"),O=d("TYPED_ARRAY_TAG"),_=n&&!!p&&"Opera"!==c(i.opera),I=!1,R,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},M=function isView(t){var r=c(t);return"DataView"===r||u(T,r)},isTypedArray=function(t){return a(t)&&u(T,c(t))},aTypedArray=function(t){if(isTypedArray(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor=function(t){if(p){if(A.call(b,t))return t}else for(var r in T)if(u(T,R)){var e=i[r];if(e&&(t===e||A.call(e,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod=function(t,r,e){if(o){if(e)for(var n in T){var a=i[n];a&&u(a.prototype,t)&&delete a.prototype[t]}w[t]&&!e||s(w,t,e?r:_&&y[t]||r)}},exportTypedArrayStaticMethod=function(t,r,e){var n,a;if(o){if(p){if(e)for(n in T)(a=i[n])&&u(a,t)&&delete a[t];if(b[t]&&!e)return;try{return s(b,t,e?r:_&&g[t]||r)}catch(t){}}for(n in T)!(a=i[n])||a[t]&&!e||s(a,t,r)}};for(R in T)i[R]||(_=!1);if((!_||"function"!=typeof b||b===Function.prototype)&&(b=function TypedArray(){throw TypeError("Incorrect invocation")},_))for(R in T)i[R]&&p(i[R],b);if((!_||!w||w===S)&&(w=b.prototype,_))for(R in T)i[R]&&p(i[R].prototype,w);if(_&&h(x)!==w&&p(x,w),o&&!u(w,E))for(R in I=!0,l(w,E,{get:function(){return a(this)?this[O]:void 0}}),T)i[R]&&f(i[R],O,R);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:_,TYPED_ARRAY_TAG:I&&O,aTypedArray:aTypedArray,aTypedArrayConstructor:aTypedArrayConstructor,exportTypedArrayMethod:exportTypedArrayMethod,exportTypedArrayStaticMethod:exportTypedArrayStaticMethod,isView:M,isTypedArray:isTypedArray,TypedArray:b,TypedArrayPrototype:w}},function(t,r,e){var n=e(1);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,r,e){var n=e(23),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,r,e){var n=e(7),o=e(105),i=e(4),a=e(26),u=Object.defineProperty;r.f=n?u:function defineProperty(t,r,e){if(i(t),r=a(r,!0),i(e),o)try{return u(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},function(t,r,e){var n=e(15);t.exports=function(t){return Object(n(t))}},function(t,r){var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},function(t,r,e){var n=e(36),o=e(48),i=e(10),a=e(8),u=e(54),c=[].push,createMethod=function(t){var r=1==t,e=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l;return function(p,v,d,g){for(var y=i(p),m=o(y),x=n(v,d,3),b=a(m.length),w=0,S=g||u,A=r?S(p,b):e?S(p,0):void 0,E,O;b>w;w++)if((h||w in m)&&(O=x(E=m[w],w,y),t))if(r)A[w]=O;else if(O)switch(t){case 3:return!0;case 5:return E;case 6:return w;case 2:c.call(A,E)}else if(s)return!1;return l?-1:f||s?s:A}};t.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)}},function(t,r,e){var n=e(7),o=e(61),i=e(33),a=e(18),u=e(26),c=e(11),f=e(105),s=Object.getOwnPropertyDescriptor;r.f=n?s:function getOwnPropertyDescriptor(t,r){if(t=a(t),r=u(r,!0),f)try{return s(t,r)}catch(t){}if(c(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,e){var n=e(2),o=e(16),i=e(11),a=e(79),u=e(80),c=e(19),f=c.get,s=c.enforce,l=String(String).split("String");(t.exports=function(t,r,e,u){var c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,h=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof r||i(e,"name")||o(e,"name",r),s(e).source=l.join("string"==typeof r?r:"")),t!==n?(c?!h&&t[r]&&(f=!0):delete t[r],f?t[r]=e:o(t,r,e)):f?t[r]=e:a(r,e)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,r){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,e){var n=e(7),o=e(9),i=e(33);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},function(t,r,e){var n=e(7),o=e(1),i=e(11),a=Object.defineProperty,u={},thrower=function(t){throw t};t.exports=function(t,r){if(i(u,t))return u[t];r||(r={});var e=[][t],c=!!i(r,"ACCESSORS")&&r.ACCESSORS,f=i(r,0)?r[0]:thrower,s=i(r,1)?r[1]:void 0;return u[t]=!!e&&!o((function(){if(c&&!n)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:thrower}):t[1]=1,e.call(t,f,s)}))}},function(t,r,e){var n=e(48),o=e(15);t.exports=function(t){return n(o(t))}},function(t,r,e){var n=e(107),o=e(2),i=e(3),a=e(16),u=e(11),c=e(62),f=e(50),s=o.WeakMap,l,h,p,enforce=function(t){return p(t)?h(t):l(t,{})},getterFor=function(t){return function(r){var e;if(!i(r)||(e=h(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}};if(n){var v=new s,d=v.get,g=v.has,y=v.set;l=function(t,r){return y.call(v,t,r),r},h=function(t){return d.call(v,t)||{}},p=function(t){return g.call(v,t)}}else{var m=c("state");f[m]=!0,l=function(t,r){return a(t,m,r),r},h=function(t){return u(t,m)?t[m]:{}},p=function(t){return u(t,m)}}t.exports={set:l,get:h,has:p,enforce:enforce,getterFor:getterFor}},function(t,r,e){var n=e(109),o=e(11),i=e(115),a=e(9).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||a(r,t,{value:i.f(t)})}},function(t,r,e){var n=e(15),o=/"/g;t.exports=function(t,r,e,i){var a=String(n(t)),u="<"+r;return""!==e&&(u+=" "+e+'="'+String(i).replace(o,""")+'"'),u+">"+a+""}},function(t,r,e){var n=e(1);t.exports=function(t){return n((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))}},function(t,r){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,r){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,r,e){var n=e(3);t.exports=function(t,r){if(!n(t))return t;var e,o;if(r&&"function"==typeof(e=t.toString)&&!n(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!n(o=e.call(t)))return o;if(!r&&"function"==typeof(e=t.toString)&&!n(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r,e){var n=e(109),o=e(2),aFunction=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(n[t])||aFunction(o[t]):n[t]&&n[t][r]||o[t]&&o[t][r]}},function(t,r,e){var n=e(11),o=e(10),i=e(62),a=e(91),u=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,r){t.exports=!1},function(t,r,e){var n=e(9).f,o=e(11),i,a=e(5)("toStringTag");t.exports=function(t,r,e){t&&!o(t=e?t:t.prototype,a)&&n(t,a,{configurable:!0,value:r})}},function(t,r,e){"use strict";var n=e(1);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){throw 1},1)}))}},function(t,r,e){"use strict";var n=e(0),o=e(2),i=e(7),a=e(103),u=e(6),c=e(67),f=e(38),s=e(33),l=e(16),h=e(8),p=e(125),v=e(143),d=e(26),g=e(11),y=e(58),m=e(3),x=e(35),b=e(42),w=e(40).f,S=e(144),A=e(12).forEach,E=e(45),O=e(9),_=e(13),I=e(19),R=e(69),T=I.get,M=I.set,j=O.f,k=_.f,P=Math.round,L=o.RangeError,U=c.ArrayBuffer,N=c.DataView,C=u.NATIVE_ARRAY_BUFFER_VIEWS,D=u.TYPED_ARRAY_TAG,q=u.TypedArray,G=u.TypedArrayPrototype,B=u.aTypedArrayConstructor,z=u.isTypedArray,W="BYTES_PER_ELEMENT",V="Wrong length",fromList=function(t,r){for(var e=0,n=r.length,o=new(B(t))(n);n>e;)o[e]=r[e++];return o},addGetter=function(t,r){j(t,r,{get:function(){return T(this)[r]}})},isArrayBuffer=function(t){var r;return t instanceof U||"ArrayBuffer"==(r=y(t))||"SharedArrayBuffer"==r},isTypedArrayIndex=function(t,r){return z(t)&&"symbol"!=typeof r&&r in t&&String(+r)==String(r)},Y=function getOwnPropertyDescriptor(t,r){return isTypedArrayIndex(t,r=d(r,!0))?s(2,t[r]):k(t,r)},$=function defineProperty(t,r,e){return!(isTypedArrayIndex(t,r=d(r,!0))&&m(e)&&g(e,"value"))||g(e,"get")||g(e,"set")||e.configurable||g(e,"writable")&&!e.writable||g(e,"enumerable")&&!e.enumerable?j(t,r,e):(t[r]=e.value,t)};i?(C||(_.f=Y,O.f=$,addGetter(G,"buffer"),addGetter(G,"byteOffset"),addGetter(G,"byteLength"),addGetter(G,"length")),n({target:"Object",stat:!0,forced:!C},{getOwnPropertyDescriptor:Y,defineProperty:$}),t.exports=function(t,r,e){var i=t.match(/\d+$/)[0]/8,u=t+(e?"Clamped":"")+"Array",c="get"+t,s="set"+t,d=o[u],g=d,y=g&&g.prototype,O={},getter=function(t,r){var e=T(t);return e.view[c](r*i+e.byteOffset,!0)},setter=function(t,r,n){var o=T(t);e&&(n=(n=P(n))<0?0:n>255?255:255&n),o.view[s](r*i+o.byteOffset,n,!0)},addElement=function(t,r){j(t,r,{get:function(){return getter(this,r)},set:function(t){return setter(this,r,t)},enumerable:!0})};C?a&&(g=r((function(t,r,e,n){return f(t,g,u),R(m(r)?isArrayBuffer(r)?void 0!==n?new d(r,v(e,i),n):void 0!==e?new d(r,v(e,i)):new d(r):z(r)?fromList(g,r):S.call(g,r):new d(p(r)),t,g)})),b&&b(g,q),A(w(d),(function(t){t in g||l(g,t,d[t])})),g.prototype=y):(g=r((function(t,r,e,n){f(t,g,u);var o=0,a=0,c,s,l;if(m(r)){if(!isArrayBuffer(r))return z(r)?fromList(g,r):S.call(g,r);c=r,a=v(e,i);var d=r.byteLength;if(void 0===n){if(d%i)throw L(V);if((s=d-a)<0)throw L(V)}else if((s=h(n)*i)+a>d)throw L(V);l=s/i}else l=p(r),c=new U(s=l*i);for(M(t,{buffer:c,byteOffset:a,byteLength:s,length:l,view:new N(c)});o",l="<",h="prototype",p="script",v=f("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return l+p+s+t+l+"/"+p+s},NullProtoObjectViaActiveX=function(t){t.write(scriptTag("")),t.close();var r=t.parentWindow.Object;return t=null,r},NullProtoObjectViaIFrame=function(){var t=c("iframe"),r="javascript:",e;return t.style.display="none",u.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},d,NullProtoObject=function(){try{d=document.domain&&new ActiveXObject("htmlfile")}catch(t){}NullProtoObject=d?NullProtoObjectViaActiveX(d):NullProtoObjectViaIFrame();for(var t=i.length;t--;)delete NullProtoObject[h][i[t]];return NullProtoObject()};a[v]=!0,t.exports=Object.create||function create(t,r){var e;return null!==t?(EmptyConstructor[h]=n(t),e=new EmptyConstructor,EmptyConstructor[h]=null,e[v]=t):e=NullProtoObject(),void 0===r?e:o(e,r)}},function(t,r,e){var n=e(24);t.exports=function(t,r,e){if(n(t),void 0===r)return t;switch(e){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}}},function(t,r,e){var n=e(5),o=e(35),i=e(9),a=n("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},function(t,r){t.exports=function(t,r,e){if(!(t instanceof r))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t}},function(t,r,e){var n=e(4),o=e(24),i,a=e(5)("species");t.exports=function(t,r){var e=n(t).constructor,i;return void 0===e||null==(i=n(e)[a])?r:o(i)}},function(t,r,e){var n=e(110),o,i=e(83).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return n(t,i)}},function(t,r,e){"use strict";var n=e(26),o=e(9),i=e(33);t.exports=function(t,r,e){var a=n(r);a in t?o.f(t,a,i(0,e)):t[a]=e}},function(t,r,e){var n=e(4),o=e(123);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,r={},e;try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(t){}return function setPrototypeOf(r,i){return n(r),o(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(t,r,e){var n=e(50),o=e(3),i=e(11),a=e(9).f,u=e(49),c=e(59),f=u("meta"),s=0,l=Object.isExtensible||function(){return!0},setMetadata=function(t){a(t,f,{value:{objectID:"O"+ ++s,weakData:{}}})},fastKey=function(t,r){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,f)){if(!l(t))return"F";if(!r)return"E";setMetadata(t)}return t[f].objectID},getWeakData=function(t,r){if(!i(t,f)){if(!l(t))return!0;if(!r)return!1;setMetadata(t)}return t[f].weakData},onFreeze=function(t){return c&&h.REQUIRED&&l(t)&&!i(t,f)&&setMetadata(t),t},h=t.exports={REQUIRED:!1,fastKey:fastKey,getWeakData:getWeakData,onFreeze:onFreeze};n[f]=!0},function(t,r,e){var n=e(25);t.exports=Array.isArray||function isArray(t){return"Array"==n(t)}},function(t,r,e){"use strict";var n=e(27),o=e(9),i=e(5),a=e(7),u=i("species");t.exports=function(t){var r=n(t),e=o.f;a&&r&&!r[u]&&e(r,u,{configurable:!0,get:function(){return this}})}},function(t,r,e){var n=e(14);t.exports=function(t,r,e){for(var o in r)n(t,o,r[o],e);return t}},function(t,r,e){var n=e(15),o,i="["+e(71)+"]",a=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),createMethod=function(t){return function(r){var e=String(n(r));return 1&t&&(e=e.replace(a,"")),2&t&&(e=e.replace(u,"")),e}};t.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)}},function(t,r,e){var n=e(1),o=e(25),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},function(t,r){t.exports={}},function(t,r,e){var n=e(18),o=e(8),i=e(34),createMethod=function(t){return function(r,e,a){var u=n(r),c=o(u.length),f=i(a,c),s;if(t&&e!=e){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},function(t,r,e){var n=e(1),o=/#|\.prototype\./,isForced=function(t,r){var e=a[i(t)];return e==c||e!=u&&("function"==typeof r?n(r):!!r)},i=isForced.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=isForced.data={},u=isForced.NATIVE="N",c=isForced.POLYFILL="P";t.exports=isForced},function(t,r,e){var n=e(110),o=e(83);t.exports=Object.keys||function keys(t){return n(t,o)}},function(t,r,e){var n=e(3),o=e(44),i,a=e(5)("species");t.exports=function(t,r){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?n(e)&&null===(e=e[a])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===r?0:r)}},function(t,r,e){var n=e(1),o=e(5),i=e(86),a=o("species");t.exports=function(t){return i>=51||!n((function(){var r=[],e;return(r.constructor={})[a]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},function(t,r){t.exports={}},function(t,r,e){var n=e(58),o=e(56),i,a=e(5)("iterator");t.exports=function(t){if(null!=t)return t[a]||t["@@iterator"]||o[n(t)]}},function(t,r,e){var n=e(89),o=e(25),i,a=e(5)("toStringTag"),u="Arguments"==o(function(){return arguments}()),tryGet=function(t,r){try{return t[r]}catch(t){}};t.exports=n?o:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=tryGet(r=Object(t),a))?e:u?o(r):"Object"==(n=o(r))&&"function"==typeof r.callee?"Arguments":n}},function(t,r,e){var n=e(1);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,r,e){var n=e(4),o=e(88),i=e(8),a=e(36),u=e(57),c=e(120),Result=function(t,r){this.stopped=t,this.result=r},f;(t.exports=function(t,r,e,f,s){var l=a(r,e,f?2:1),h,p,v,d,g,y,m;if(s)h=t;else{if("function"!=typeof(p=u(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,d=i(t.length);d>v;v++)if((g=f?l(n(m=t[v])[0],m[1]):l(t[v]))&&g instanceof Result)return g;return new Result(!1)}h=p.call(t)}for(y=h.next;!(m=y.call(h)).done;)if("object"==typeof(g=c(h,l,m.value,f))&&g&&g instanceof Result)return g;return new Result(!1)}).stop=function(t){return new Result(!0,t)}},function(t,r,e){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);r.f=i?function propertyIsEnumerable(t){var r=o(this,t);return!!r&&r.enumerable}:n},function(t,r,e){var n=e(81),o=e(49),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,r,e){var n=e(27);t.exports=n("navigator","userAgent")||""},function(t,r,e){var n,o=e(5)("iterator"),i=!1;try{var a=0,u={next:function(){return{done:!!a++}},return:function(){i=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!i)return!1;var e=!1;try{var n={};n[o]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e}},function(t,r,e){"use strict";var n=e(18),o=e(37),i=e(56),a=e(19),u=e(90),c="Array Iterator",f=a.set,s=a.getterFor(c);t.exports=u(Array,"Array",(function(t,r){f(this,{type:c,target:n(t),index:0,kind:r})}),(function(){var t=s(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,r,e){var n=e(24),o=e(10),i=e(48),a=e(8),createMethod=function(t){return function(r,e,u,c){n(e);var f=o(r),s=i(f),l=a(f.length),h=t?l-1:0,p=t?-1:1;if(u<2)for(;;){if(h in s){c=s[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in s&&(c=e(c,s[h],h,f));return c}};t.exports={left:createMethod(!1),right:createMethod(!0)}},function(t,r,e){"use strict";var n=e(2),o=e(7),i=e(92),a=e(16),u=e(46),c=e(1),f=e(38),s=e(23),l=e(8),h=e(125),p=e(193),v=e(28),d=e(42),g=e(40).f,y=e(9).f,m=e(87),x=e(30),b=e(19),w=b.get,S=b.set,A="ArrayBuffer",E="DataView",O="prototype",_="Wrong length",I="Wrong index",R=n[A],T=R,M=n[E],j=M&&M[O],k=Object.prototype,P=n.RangeError,L=p.pack,U=p.unpack,packInt8=function(t){return[255&t]},packInt16=function(t){return[255&t,t>>8&255]},packInt32=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},unpackInt32=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},packFloat32=function(t){return L(t,23,4)},packFloat64=function(t){return L(t,52,8)},addGetter=function(t,r){y(t[O],r,{get:function(){return w(this)[r]}})},get=function(t,r,e,n){var o=h(e),i=w(t);if(o+r>i.byteLength)throw P(I);var a=w(i.buffer).bytes,u=o+i.byteOffset,c=a.slice(u,u+r);return n?c:c.reverse()},set=function(t,r,e,n,o,i){var a=h(e),u=w(t);if(a+r>u.byteLength)throw P(I);for(var c=w(u.buffer).bytes,f=a+u.byteOffset,s=n(+o),l=0;lD;)(q=C[D++])in T||a(T,q,R[q]);N.constructor=T}d&&v(j)!==k&&d(j,k);var G=new M(new T(2)),B=j.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||u(j,{setInt8:function setInt8(t,r){B.call(this,t,r<<24>>24)},setUint8:function setUint8(t,r){B.call(this,t,r<<24>>24)}},{unsafe:!0})}else T=function ArrayBuffer(t){f(this,T,A);var r=h(t);S(this,{bytes:m.call(new Array(r),0),byteLength:r}),o||(this.byteLength=r)},M=function DataView(t,r,e){f(this,M,E),f(t,T,E);var n=w(t).byteLength,i=s(r);if(i<0||i>n)throw P("Wrong offset");if(i+(e=void 0===e?n-i:l(e))>n)throw P(_);S(this,{buffer:t,byteLength:e,byteOffset:i}),o||(this.buffer=t,this.byteLength=e,this.byteOffset=i)},o&&(addGetter(T,"byteLength"),addGetter(M,"buffer"),addGetter(M,"byteLength"),addGetter(M,"byteOffset")),u(M[O],{getInt8:function getInt8(t){return get(this,1,t)[0]<<24>>24},getUint8:function getUint8(t){return get(this,1,t)[0]},getInt16:function getInt16(t){var r=get(this,2,t,arguments.length>1?arguments[1]:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function getUint16(t){var r=get(this,2,t,arguments.length>1?arguments[1]:void 0);return r[1]<<8|r[0]},getInt32:function getInt32(t){return unpackInt32(get(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(t){return unpackInt32(get(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(t){return U(get(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(t){return U(get(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(t,r){set(this,1,t,packInt8,r)},setUint8:function setUint8(t,r){set(this,1,t,packInt8,r)},setInt16:function setInt16(t,r){set(this,2,t,packInt16,r,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(t,r){set(this,2,t,packInt16,r,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(t,r){set(this,4,t,packInt32,r,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(t,r){set(this,4,t,packInt32,r,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(t,r){set(this,4,t,packFloat32,r,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(t,r){set(this,8,t,packFloat64,r,arguments.length>2?arguments[2]:void 0)}});x(T,A),x(M,E),t.exports={ArrayBuffer:T,DataView:M}},function(t,r,e){"use strict";var n=e(0),o=e(2),i=e(52),a=e(14),u=e(43),c=e(60),f=e(38),s=e(3),l=e(1),h=e(64),p=e(30),v=e(69);t.exports=function(t,r,e){var d=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),y=d?"set":"add",m=o[t],x=m&&m.prototype,b=m,w={},fixMethod=function(t){var r=x[t];a(x,t,"add"==t?function add(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!s(t))&&r.call(this,0===t?0:t)}:"get"==t?function get(t){return g&&!s(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function has(t){return!(g&&!s(t))&&r.call(this,0===t?0:t)}:function set(t,e){return r.call(this,0===t?0:t,e),this})};if(i(t,"function"!=typeof m||!(g||x.forEach&&!l((function(){(new m).entries().next()})))))b=e.getConstructor(r,t,d,y),u.REQUIRED=!0;else if(i(t,!0)){var S=new b,A=S[y](g?{}:-0,1)!=S,E=l((function(){S.has(1)})),O=h((function(t){new m(t)})),_=!g&&l((function(){for(var t=new m,r=5;r--;)t[y](r,r);return!t.has(-0)}));O||((b=r((function(r,e){f(r,b,t);var n=v(new m,r,b);return null!=e&&c(e,n[y],n,d),n}))).prototype=x,x.constructor=b),(E||_)&&(fixMethod("delete"),fixMethod("has"),d&&fixMethod("get")),(_||A)&&fixMethod(y),g&&x.clear&&delete x.clear}return w[t]=b,n({global:!0,forced:b!=m},w),p(b,t),g||e.setStrong(b,t,d),b}},function(t,r,e){var n=e(3),o=e(42);t.exports=function(t,r,e){var i,a;return o&&"function"==typeof(i=r.constructor)&&i!==e&&n(a=i.prototype)&&a!==e.prototype&&o(t,a),t}},function(t,r){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function expm1(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:e},function(t,r){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(t,r,e){"use strict";var n=e(29),o=e(2),i=e(1);t.exports=n||!i((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete o[t]}))},function(t,r,e){"use strict";var n=e(4);t.exports=function(){var t=n(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r}},function(t,r,e){"use strict";var n=e(73),o=e(98),i=RegExp.prototype.exec,a=String.prototype.replace,u=i,c=(f=/a/,s=/b*/g,i.call(f,"a"),i.call(s,"a"),0!==f.lastIndex||0!==s.lastIndex),f,s,l=o.UNSUPPORTED_Y||o.BROKEN_CARET,h=void 0!==/()??/.exec("")[1],p;(c||h||l)&&(u=function exec(t){var r=this,e,o,u,f,s=l&&r.sticky,p=n.call(r),v=r.source,d=0,g=t;return s&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(t).slice(r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&"\n"!==t[r.lastIndex-1])&&(v="(?: "+v+")",g=" "+g,d++),o=new RegExp("^(?:"+v+")",p)),h&&(o=new RegExp("^"+v+"$(?!\\s)",p)),c&&(e=r.lastIndex),u=i.call(s?o:r,g),s?u?(u.input=u.input.slice(d),u[0]=u[0].slice(d),u.index=r.lastIndex,r.lastIndex+=u[0].length):r.lastIndex=0:c&&u&&(r.lastIndex=r.global?u.index+u[0].length:e),h&&u&&u.length>1&&a.call(u[0],o,(function(){for(f=1;f=u?t?"":void 0:(c=i.charCodeAt(a))<55296||c>56319||a+1===u||(f=i.charCodeAt(a+1))<56320||f>57343?t?i.charAt(a):c:t?i.slice(a,a+2):f-56320+(c-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},function(t,r,e){"use strict";e(140);var n=e(14),o=e(1),i=e(5),a=e(74),u=e(16),c=i("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),s="$0"==="a".replace(/./,"$0"),l=i("replace"),h=!!/./[l]&&""===/./[l]("a","$0"),p=!o((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}));t.exports=function(t,r,e,l){var v=i(t),d=!o((function(){var r={};return r[v]=function(){return 7},7!=""[t](r)})),g=d&&!o((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[c]=function(){return e},e.flags="",e[v]=/./[v]),e.exec=function(){return r=!0,null},e[v](""),!r}));if(!d||!g||"replace"===t&&(!f||!s||h)||"split"===t&&!p){var y=/./[v],m=e(v,""[t],(function(t,r,e,n,o){return r.exec===a?d&&!o?{done:!0,value:y.call(r,e,n)}:{done:!0,value:t.call(e,r,n)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),x=m[0],b=m[1];n(String.prototype,t,x),n(RegExp.prototype,v,2==r?function(t,r){return b.call(t,this,r)}:function(t){return b.call(t,this)})}l&&u(RegExp.prototype[v],"sham",!0)}},function(t,r,e){var n=e(25),o=e(74);t.exports=function(t,r){var e=t.exec;if("function"==typeof e){var i=e.call(t,r);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,r)}},function(t,r,e){var n=e(2),o=e(3),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,r,e){var n=e(2),o=e(16);t.exports=function(t,r){try{o(n,t,r)}catch(e){n[t]=r}return r}},function(t,r,e){var n=e(106),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},function(t,r,e){var n=e(29),o=e(106);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(t,r,e){var n=e(27),o=e(40),i=e(84),a=e(4);t.exports=n("Reflect","ownKeys")||function ownKeys(t){var r=o.f(a(t)),e=i.f;return e?r.concat(e(t)):r}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,e){var n=e(1);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,r,e){var n=e(2),o=e(63),i=n.process,a=i&&i.versions,u=a&&a.v8,c,f;u?f=(c=u.split("."))[0]+c[1]:o&&(!(c=o.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=o.match(/Chrome\/(\d+)/))&&(f=c[1]),t.exports=f&&+f},function(t,r,e){"use strict";var n=e(10),o=e(34),i=e(8);t.exports=function fill(t){for(var r=n(this),e=i(r.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,e),c=a>2?arguments[2]:void 0,f=void 0===c?e:o(c,e);f>u;)r[u++]=t;return r}},function(t,r,e){var n=e(5),o=e(56),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,r,e){var n,o,i={};i[e(5)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,r,e){"use strict";var n=e(0),o=e(121),i=e(28),a=e(42),u=e(30),c=e(16),f=e(14),s=e(5),l=e(29),h=e(56),p=e(122),v=p.IteratorPrototype,d=p.BUGGY_SAFARI_ITERATORS,g=s("iterator"),y="keys",m="values",x="entries",returnThis=function(){return this};t.exports=function(t,r,e,s,p,b,w){o(e,r,s);var getIterationMethod=function(t){if(t===p&&_)return _;if(!d&&t in E)return E[t];switch(t){case y:return function keys(){return new e(this,t)};case m:return function values(){return new e(this,t)};case x:return function entries(){return new e(this,t)}}return function(){return new e(this)}},S=r+" Iterator",A=!1,E=t.prototype,O=E[g]||E["@@iterator"]||p&&E[p],_=!d&&O||getIterationMethod(p),I="Array"==r&&E.entries||O,R,T,M;if(I&&(R=i(I.call(new t)),v!==Object.prototype&&R.next&&(l||i(R)===v||(a?a(R,v):"function"!=typeof R[g]&&c(R,g,returnThis)),u(R,S,!0,!0),l&&(h[S]=returnThis))),p==m&&O&&O.name!==m&&(A=!0,_=function values(){return O.call(this)}),l&&!w||E[g]===_||c(E,g,_),h[r]=_,p)if(T={values:getIterationMethod(m),keys:b?_:getIterationMethod(y),entries:getIterationMethod(x)},w)for(M in T)(d||A||!(M in E))&&f(E,M,T[M]);else n({target:r,proto:!0,forced:d||A},T);return T}},function(t,r,e){var n=e(1);t.exports=!n((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},function(t,r){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,r,e){var n=e(8),o=e(94),i=e(15),a=Math.ceil,createMethod=function(t){return function(r,e,u){var c=String(i(r)),f=c.length,s=void 0===u?" ":String(u),l=n(e),h,p;return l<=f||""==s?c:(h=l-f,(p=o.call(s,a(h/s.length))).length>h&&(p=p.slice(0,h)),t?c+p:p+c)}};t.exports={start:createMethod(!1),end:createMethod(!0)}},function(t,r,e){"use strict";var n=e(23),o=e(15);t.exports="".repeat||function repeat(t){var r=String(o(this)),e="",i=n(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(r+=r))1&i&&(e+=r);return e}},function(t,r){t.exports=Math.sign||function sign(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,r,e){var n=e(2),o=e(1),i=e(25),a=e(36),u=e(113),c=e(78),f=e(136),s=n.location,l=n.setImmediate,h=n.clearImmediate,p=n.process,v=n.MessageChannel,d=n.Dispatch,g=0,y={},m="onreadystatechange",x,b,w,run=function(t){if(y.hasOwnProperty(t)){var r=y[t];delete y[t],r()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){n.postMessage(t+"",s.protocol+"//"+s.host)};l&&h||(l=function setImmediate(t){for(var r=[],e=1;arguments.length>e;)r.push(arguments[e++]);return y[++g]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)},x(g),g},h=function clearImmediate(t){delete y[t]},"process"==i(p)?x=function(t){p.nextTick(runner(t))}:d&&d.now?x=function(t){d.now(runner(t))}:v&&!f?(w=(b=new v).port2,b.port1.onmessage=listener,x=a(w.postMessage,w,1)):!n.addEventListener||"function"!=typeof postMessage||n.importScripts||o(post)||"file:"===s.protocol?x=m in c("script")?function(t){u.appendChild(c("script"))[m]=function(){u.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(x=post,n.addEventListener("message",listener,!1))),t.exports={set:l,clear:h}},function(t,r,e){var n=e(3),o=e(25),i,a=e(5)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[a])?!!r:"RegExp"==o(t))}},function(t,r,e){"use strict";var n=e(1);function RE(t,r){return RegExp(t,r)}r.UNSUPPORTED_Y=n((function(){var t=RE("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),r.BROKEN_CARET=n((function(){var t=RE("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,r,e){var n=e(97);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,r,e){var n,o=e(5)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[o]=!1,"/./"[t](r)}catch(t){}}return!1}},function(t,r,e){"use strict";var n=e(75).charAt;t.exports=function(t,r,e){return r+(e?n(t,r).length:1)}},function(t,r,e){var n=e(1),o=e(71),i="\u200b\x85\u180e";t.exports=function(t){return n((function(){return!!o[t]()||i[t]()!=i||o[t].name!==t}))}},function(t,r,e){var n=e(2),o=e(1),i=e(64),a=e(6).NATIVE_ARRAY_BUFFER_VIEWS,u=n.ArrayBuffer,c=n.Int8Array;t.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||o((function(){return 1!==new c(new u(2),1,void 0).length}))},function(r,e){r.exports=t},function(t,r,e){var n=e(7),o=e(1),i=e(78);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,r,e){var n=e(2),o=e(79),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},function(t,r,e){var n=e(2),o=e(80),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,r,e){var n=e(11),o=e(82),i=e(13),a=e(9);t.exports=function(t,r){for(var e=o(r),u=a.f,c=i.f,f=0;fu;)n(e,f=r[u++])&&(~i(c,f)||c.push(f));return c}},function(t,r,e){var n=e(85);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,r,e){var n=e(7),o=e(9),i=e(4),a=e(53);t.exports=n?Object.defineProperties:function defineProperties(t,r){i(t);for(var e=a(r),n=e.length,u=0,c;n>u;)o.f(t,c=e[u++],r[c]);return t}},function(t,r,e){var n=e(27);t.exports=n("document","documentElement")},function(t,r,e){var n=e(18),o=e(40).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function getOwnPropertyNames(t){return a&&"[object Window]"==i.call(t)?getWindowNames(t):o(n(t))}},function(t,r,e){var n=e(5);r.f=n},function(t,r,e){"use strict";var n=e(10),o=e(34),i=e(8),a=Math.min;t.exports=[].copyWithin||function copyWithin(t,r){var e=n(this),u=i(e.length),c=o(t,u),f=o(r,u),s=arguments.length>2?arguments[2]:void 0,l=a((void 0===s?u:o(s,u))-f,u-c),h=1;for(f0;)f in e?e[c]=e[f]:delete e[c],c+=h,f+=h;return e}},function(t,r,e){"use strict";var n=e(44),o=e(8),i=e(36),flattenIntoArray=function(t,r,e,a,u,c,f,s){for(var l=u,h=0,p=!!f&&i(f,s,3),v;h0&&n(v))l=flattenIntoArray(t,r,v,o(v.length),l,c-1)-1;else{if(l>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[l]=v}l++}h++}return l};t.exports=flattenIntoArray},function(t,r,e){"use strict";var n=e(12).forEach,o=e(31),i=e(17),a=o("forEach"),u=i("forEach");t.exports=a&&u?[].forEach:function forEach(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,r,e){"use strict";var n=e(36),o=e(10),i=e(120),a=e(88),u=e(8),c=e(41),f=e(57);t.exports=function from(t){var r=o(t),e="function"==typeof this?this:Array,s=arguments.length,l=s>1?arguments[1]:void 0,h=void 0!==l,p=f(r),v=0,d,g,y,m,x,b;if(h&&(l=n(l,s>2?arguments[2]:void 0,2)),null==p||e==Array&&a(p))for(g=new e(d=u(r.length));d>v;v++)b=h?l(r[v],v):r[v],c(g,v,b);else for(x=(m=p.call(r)).next,g=new e;!(y=x.call(m)).done;v++)b=h?i(m,l,[y.value,v],!0):y.value,c(g,v,b);return g.length=v,g}},function(t,r,e){var n=e(4);t.exports=function(t,r,e,o){try{return o?r(n(e)[0],e[1]):r(e)}catch(r){var i=t.return;throw void 0!==i&&n(i.call(t)),r}}},function(t,r,e){"use strict";var n=e(122).IteratorPrototype,o=e(35),i=e(33),a=e(30),u=e(56),returnThis=function(){return this};t.exports=function(t,r,e){var c=r+" Iterator";return t.prototype=o(n,{next:i(1,e)}),a(t,c,!1,!0),u[c]=returnThis,t}},function(t,r,e){"use strict";var n=e(28),o=e(16),i=e(11),a=e(5),u=e(29),c=a("iterator"),f=!1,returnThis=function(){return this},s,l,h;[].keys&&("next"in(h=[].keys())?(l=n(n(h)))!==Object.prototype&&(s=l):f=!0),null==s&&(s={}),u||i(s,c)||o(s,c,returnThis),t.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:f}},function(t,r,e){var n=e(3);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,r,e){"use strict";var n=e(18),o=e(23),i=e(8),a=e(31),u=e(17),c=Math.min,f=[].lastIndexOf,s=!!f&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),h=u("indexOf",{ACCESSORS:!0,1:0}),p=s||!l||!h;t.exports=p?function lastIndexOf(t){if(s)return f.apply(this,arguments)||0;var r=n(this),e=i(r.length),a=e-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=e+a);a>=0;a--)if(a in r&&r[a]===t)return a||0;return-1}:f},function(t,r,e){var n=e(23),o=e(8);t.exports=function(t){if(void 0===t)return 0;var r=n(t),e=o(r);if(r!==e)throw RangeError("Wrong length or index");return e}},function(t,r,e){"use strict";var n=e(9).f,o=e(35),i=e(46),a=e(36),u=e(38),c=e(60),f=e(90),s=e(45),l=e(7),h=e(43).fastKey,p=e(19),v=p.set,d=p.getterFor;t.exports={getConstructor:function(t,r,e,f){var s=t((function(t,n){u(t,s,r),v(t,{type:r,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=n&&c(n,t[f],t,e)})),p=d(r),define=function(t,r,e){var n=p(t),o=getEntry(t,r),i,a;return o?o.value=e:(n.last=o={index:a=h(r,!0),key:r,value:e,previous:i=n.last,next:void 0,removed:!1},n.first||(n.first=o),i&&(i.next=o),l?n.size++:t.size++,"F"!==a&&(n.index[a]=o)),t},getEntry=function(t,r){var e=p(t),n=h(r),o;if("F"!==n)return e.index[n];for(o=e.first;o;o=o.next)if(o.key==r)return o};return i(s.prototype,{clear:function clear(){for(var t=this,r=p(this),e=r.index,n=r.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;r.first=r.last=void 0,l?r.size=0:this.size=0},delete:function(t){var r=this,e=p(this),n=getEntry(this,t);if(n){var o=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),e.first==n&&(e.first=o),e.last==n&&(e.last=i),l?e.size--:this.size--}return!!n},forEach:function forEach(t){for(var r=p(this),e=a(t,arguments.length>1?arguments[1]:void 0,3),n;n=n?n.next:r.first;)for(e(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function has(t){return!!getEntry(this,t)}}),i(s.prototype,e?{get:function get(t){var r=getEntry(this,t);return r&&r.value},set:function set(t,r){return define(this,0===t?0:t,r)}}:{add:function add(t){return define(this,t=0===t?0:t,t)}}),l&&n(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(t,r,e){var n=r+" Iterator",o=d(r),i=d(n);f(t,r,(function(t,r){v(this,{type:n,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==r?{value:e.key,done:!1}:"values"==r?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),e?"entries":"values",!e,!0),s(r)}}},function(t,r){var e=Math.log;t.exports=Math.log1p||function log1p(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:e(1+t)}},function(t,r,e){var n=e(3),o=Math.floor;t.exports=function isInteger(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,r,e){var n=e(2),o=e(47).trim,i=e(71),a=n.parseFloat,u=1/a(i+"-0")!=-1/0;t.exports=u?function parseFloat(t){var r=o(String(t)),e=a(r);return 0===e&&"-"==r.charAt(0)?-0:e}:a},function(t,r,e){var n=e(2),o=e(47).trim,i=e(71),a=n.parseInt,u=/^[+-]?0[Xx]/,c=8!==a(i+"08")||22!==a(i+"0x16");t.exports=c?function parseInt(t,r){var e=o(String(t));return a(e,r>>>0||(u.test(e)?16:10))}:a},function(t,r,e){var n=e(25);t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+t}},function(t,r,e){"use strict";var n=e(7),o=e(1),i=e(53),a=e(84),u=e(61),c=e(10),f=e(48),s=Object.assign,l=Object.defineProperty;t.exports=!s||o((function(){if(n&&1!==s({b:1},s(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol(),o="abcdefghijklmnopqrst";return t[e]=7,o.split("").forEach((function(t){r[t]=t})),7!=s({},t)[e]||i(s({},r)).join("")!=o}))?function assign(t,r){for(var e=c(t),o=arguments.length,s=1,l=a.f,h=u.f;o>s;)for(var p=f(arguments[s++]),v=l?i(p).concat(l(p)):i(p),d=v.length,g=0,y;d>g;)y=v[g++],n&&!h.call(p,y)||(e[y]=p[y]);return e}:s},function(t,r,e){var n=e(7),o=e(53),i=e(18),a=e(61).f,createMethod=function(t){return function(r){for(var e=i(r),u=o(e),c=u.length,f=0,s=[],l;c>f;)l=u[f++],n&&!a.call(e,l)||s.push(t?[l,e[l]]:e[l]);return s}};t.exports={entries:createMethod(!0),values:createMethod(!1)}},function(t,r){t.exports=Object.is||function is(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}},function(t,r,e){var n=e(2);t.exports=n.Promise},function(t,r,e){var n=e(63);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,r,e){var n=e(2),o=e(13).f,i=e(25),a=e(96).set,u=e(136),c=n.MutationObserver||n.WebKitMutationObserver,f=n.process,s=n.Promise,l="process"==i(f),h=o(n,"queueMicrotask"),p=h&&h.value,v,d,g,y,m,x,b,w;p||(v=function(){var t,r;for(l&&(t=f.domain)&&t.exit();d;){r=d.fn,d=d.next;try{r()}catch(t){throw d?y():g=void 0,t}}g=void 0,t&&t.enter()},l?y=function(){f.nextTick(v)}:c&&!u?(m=!0,x=document.createTextNode(""),new c(v).observe(x,{characterData:!0}),y=function(){x.data=m=!m}):s&&s.resolve?(b=s.resolve(void 0),w=b.then,y=function(){w.call(b,v)}):y=function(){a.call(n,v)}),t.exports=p||function(t){var r={fn:t,next:void 0};g&&(g.next=r),d||(d=r,y()),g=r}},function(t,r,e){var n=e(4),o=e(3),i=e(139);t.exports=function(t,r){if(n(t),o(r)&&r.constructor===t)return r;var e=i.f(t),a;return(0,e.resolve)(r),e.promise}},function(t,r,e){"use strict";var n=e(24),PromiseCapability=function(t){var r,e;this.promise=new t((function(t,n){if(void 0!==r||void 0!==e)throw TypeError("Bad Promise constructor");r=t,e=n})),this.resolve=n(r),this.reject=n(e)};t.exports.f=function(t){return new PromiseCapability(t)}},function(t,r,e){"use strict";var n=e(0),o=e(74);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,r,e){"use strict";var n=e(75).charAt,o=e(19),i=e(90),a="String Iterator",u=o.set,c=o.getterFor(a);i(String,"String",(function(t){u(this,{type:a,string:String(t),index:0})}),(function next(){var t=c(this),r=t.string,e=t.index,o;return e>=r.length?{value:void 0,done:!0}:(o=n(r,e),t.index+=o.length,{value:o,done:!1})}))},function(t,r,e){var n=e(63);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(t,r,e){var n=e(315);t.exports=function(t,r){var e=n(t);if(e%r)throw RangeError("Wrong offset");return e}},function(t,r,e){var n=e(10),o=e(8),i=e(57),a=e(88),u=e(36),c=e(6).aTypedArrayConstructor;t.exports=function from(t){var r=n(t),e=arguments.length,f=e>1?arguments[1]:void 0,s=void 0!==f,l=i(r),h,p,v,d,g,y;if(null!=l&&!a(l))for(y=(g=l.call(r)).next,r=[];!(d=y.call(g)).done;)r.push(d.value);for(s&&e>2&&(f=u(f,arguments[2],2)),p=o(r.length),v=new(c(this))(p),h=0;p>h;h++)v[h]=s?f(r[h],h):r[h];return v}},function(t,r,e){"use strict";var n=e(46),o=e(43).getWeakData,i=e(4),a=e(3),u=e(38),c=e(60),f=e(12),s=e(11),l=e(19),h=l.set,p=l.getterFor,v=f.find,d=f.findIndex,g=0,uncaughtFrozenStore=function(t){return t.frozen||(t.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(t,r){return v(t.entries,(function(t){return t[0]===r}))};UncaughtFrozenStore.prototype={get:function(t){var r=findUncaughtFrozen(this,t);if(r)return r[1]},has:function(t){return!!findUncaughtFrozen(this,t)},set:function(t,r){var e=findUncaughtFrozen(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=d(this.entries,(function(r){return r[0]===t}));return~r&&this.entries.splice(r,1),!!~r}},t.exports={getConstructor:function(t,r,e,f){var l=t((function(t,n){u(t,l,r),h(t,{type:r,id:g++,frozen:void 0}),null!=n&&c(n,t[f],t,e)})),v=p(r),define=function(t,r,e){var n=v(t),a=o(i(r),!0);return!0===a?uncaughtFrozenStore(n).set(r,e):a[n.id]=e,t};return n(l.prototype,{delete:function(t){var r=v(this);if(!a(t))return!1;var e=o(t);return!0===e?uncaughtFrozenStore(r).delete(t):e&&s(e,r.id)&&delete e[r.id]},has:function has(t){var r=v(this);if(!a(t))return!1;var e=o(t);return!0===e?uncaughtFrozenStore(r).has(t):e&&s(e,r.id)}}),n(l.prototype,e?{get:function get(t){var r=v(this);if(a(t)){var e=o(t);return!0===e?uncaughtFrozenStore(r).get(t):e?e[r.id]:void 0}},set:function set(t,r){return define(this,t,r)}}:{add:function add(t){return define(this,t,!0)}}),l}}},function(t,r){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,r,e){var n=e(1),o=e(5),i=e(29),a=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),r=t.searchParams,e="";return t.pathname="c%20d",r.forEach((function(t,n){r.delete("b"),e+=n+t})),i&&!t.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==e||"x"!==new URL("http://x",void 0).host}))},function(t,r,e){"use strict";e(65);var n=e(0),o=e(27),i=e(147),a=e(14),u=e(46),c=e(30),f=e(121),s=e(19),l=e(38),h=e(11),p=e(36),v=e(58),d=e(4),g=e(3),y=e(35),m=e(33),x=e(358),b=e(57),w=e(5),S=o("fetch"),A=o("Headers"),E=w("iterator"),O="URLSearchParams",_="URLSearchParamsIterator",I=s.set,R=s.getterFor("URLSearchParams"),T=s.getterFor("URLSearchParamsIterator"),M=/\+/g,j=Array(4),percentSequence=function(t){return j[t-1]||(j[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},percentDecode=function(t){try{return decodeURIComponent(t)}catch(r){return t}},deserialize=function(t){var r=t.replace(M," "),e=4;try{return decodeURIComponent(r)}catch(t){for(;e;)r=r.replace(percentSequence(e--),percentDecode);return r}},k=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(t){return P[t]},serialize=function(t){return encodeURIComponent(t).replace(k,replacer)},parseSearchParams=function(t,r){if(r)for(var e=r.split("&"),n=0,o,i;n0?arguments[0]:void 0,r=this,e=[],n,o,i,a,u,c,f,s,p;if(I(r,{type:"URLSearchParams",entries:e,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==t)if(g(t))if("function"==typeof(n=b(t)))for(i=(o=n.call(t)).next;!(a=i.call(o)).done;){if((f=(c=(u=x(d(a.value))).next).call(u)).done||(s=c.call(u)).done||!c.call(u).done)throw TypeError("Expected sequence with length 2");e.push({key:f.value+"",value:s.value+""})}else for(p in t)h(t,p)&&e.push({key:p,value:t[p]+""});else parseSearchParams(e,"string"==typeof t?"?"===t.charAt(0)?t.slice(1):t:t+"")},N=U.prototype;u(N,{append:function append(t,r){validateArgumentsLength(arguments.length,2);var e=R(this);e.entries.push({key:t+"",value:r+""}),e.updateURL()},delete:function(t){validateArgumentsLength(arguments.length,1);for(var r=R(this),e=r.entries,n=t+"",o=0;on.key){r.splice(o,0,n);break}o===i&&r.push(n)}t.updateURL()},forEach:function forEach(t){for(var r=R(this).entries,e=p(t,arguments.length>1?arguments[1]:void 0,3),n=0,o;n1&&(e=arguments[1],g(e)&&(n=e.body,"URLSearchParams"===v(n)&&((o=e.headers?new A(e.headers):new A).has("content-type")||o.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=y(e,{body:m(0,String(n)),headers:m(0,o)}))),r.push(e)),S.apply(this,r)}}),t.exports={URLSearchParams:U,getState:R}},function(t,r,e){t.exports=e(361)},function(t,r,e){"use strict";var n=e(0),o=e(2),i=e(27),a=e(29),u=e(7),c=e(85),f=e(111),s=e(1),l=e(11),h=e(44),p=e(3),v=e(4),d=e(10),g=e(18),y=e(26),m=e(33),x=e(35),b=e(53),w=e(40),S=e(114),A=e(84),E=e(13),O=e(9),_=e(61),I=e(16),R=e(14),T=e(81),M=e(62),j=e(50),k=e(49),P=e(5),L=e(115),U=e(20),N=e(30),C=e(19),D=e(12).forEach,q=M("hidden"),G="Symbol",B="prototype",z=P("toPrimitive"),W=C.set,V=C.getterFor(G),Y=Object[B],$=o.Symbol,J=i("JSON","stringify"),X=E.f,K=O.f,H=S.f,Q=_.f,Z=T("symbols"),tt=T("op-symbols"),rt=T("string-to-symbol-registry"),et=T("symbol-to-string-registry"),nt=T("wks"),ot=o.QObject,it=!ot||!ot[B]||!ot[B].findChild,at=u&&s((function(){return 7!=x(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=X(Y,r);n&&delete Y[r],K(t,r,e),n&&t!==Y&&K(Y,r,n)}:K,wrap=function(t,r){var e=Z[t]=x($[B]);return W(e,{type:G,tag:t,description:r}),u||(e.description=r),e},ut=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof $},ct=function defineProperty(t,r,e){t===Y&&ct(tt,r,e),v(t);var n=y(r,!0);return v(e),l(Z,n)?(e.enumerable?(l(t,q)&&t[q][n]&&(t[q][n]=!1),e=x(e,{enumerable:m(0,!1)})):(l(t,q)||K(t,q,m(1,{})),t[q][n]=!0),at(t,n,e)):K(t,n,e)},ft=function defineProperties(t,r){v(t);var e=g(r),n=b(e).concat(vt(e));return D(n,(function(r){u&&!lt.call(e,r)||ct(t,r,e[r])})),t},st=function create(t,r){return void 0===r?x(t):ft(x(t),r)},lt=function propertyIsEnumerable(t){var r=y(t,!0),e=Q.call(this,r);return!(this===Y&&l(Z,r)&&!l(tt,r))&&(!(e||!l(this,r)||!l(Z,r)||l(this,q)&&this[q][r])||e)},ht=function getOwnPropertyDescriptor(t,r){var e=g(t),n=y(r,!0);if(e!==Y||!l(Z,n)||l(tt,n)){var o=X(e,n);return!o||!l(Z,n)||l(e,q)&&e[q][n]||(o.enumerable=!0),o}},pt=function getOwnPropertyNames(t){var r=H(g(t)),e=[];return D(r,(function(t){l(Z,t)||l(j,t)||e.push(t)})),e},vt=function getOwnPropertySymbols(t){var r=t===Y,e=H(r?tt:g(t)),n=[];return D(e,(function(t){!l(Z,t)||r&&!l(Y,t)||n.push(Z[t])})),n},dt;(c||(R(($=function Symbol(){if(this instanceof $)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=k(t),setter=function(t){this===Y&&setter.call(tt,t),l(this,q)&&l(this[q],r)&&(this[q][r]=!1),at(this,r,m(1,t))};return u&&it&&at(Y,r,{configurable:!0,set:setter}),wrap(r,t)})[B],"toString",(function toString(){return V(this).tag})),R($,"withoutSetter",(function(t){return wrap(k(t),t)})),_.f=lt,O.f=ct,E.f=ht,w.f=S.f=pt,A.f=vt,L.f=function(t){return wrap(P(t),t)},u&&(K($[B],"description",{configurable:!0,get:function description(){return V(this).description}}),a||R(Y,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:$}),D(b(nt),(function(t){U(t)})),n({target:G,stat:!0,forced:!c},{for:function(t){var r=String(t);if(l(rt,r))return rt[r];var e=$(r);return rt[r]=e,et[e]=r,e},keyFor:function keyFor(t){if(!ut(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:st,defineProperty:ct,defineProperties:ft,getOwnPropertyDescriptor:ht}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt,getOwnPropertySymbols:vt}),n({target:"Object",stat:!0,forced:s((function(){A.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return A.f(d(t))}}),J)&&n({target:"JSON",stat:!0,forced:!c||s((function(){var t=$();return"[null]"!=J([t])||"{}"!=J({a:t})||"{}"!=J(Object(t))}))},{stringify:function stringify(t,r,e){for(var n=[t],o=1,i;arguments.length>o;)n.push(arguments[o++]);if(i=r,(p(r)||void 0!==t)&&!ut(t))return h(r)||(r=function(t,r){if("function"==typeof i&&(r=i.call(this,t,r)),!ut(r))return r}),n[1]=r,J.apply(null,n)}});$[B][z]||I($[B],z,$[B].valueOf),N($,G),j[q]=!0},function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";var n=e(0),o=e(7),i=e(2),a=e(11),u=e(3),c=e(9).f,f=e(108),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},h=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),r=this instanceof h?new s(t):void 0===t?s():s(t);return""===t&&(l[r]=!0),r};f(h,s);var p=h.prototype=s.prototype;p.constructor=h;var v=p.toString,d="Symbol(test)"==String(s("test")),g=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function description(){var t=u(this)?this.valueOf():this,r=v.call(t);if(a(l,t))return"";var e=d?r.slice(7,-1):r.replace(g,"$1");return""===e?void 0:e}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,r,e){var n;e(20)("asyncIterator")},function(t,r,e){var n;e(20)("hasInstance")},function(t,r,e){var n;e(20)("isConcatSpreadable")},function(t,r,e){var n;e(20)("iterator")},function(t,r,e){var n;e(20)("match")},function(t,r,e){var n;e(20)("replace")},function(t,r,e){var n;e(20)("search")},function(t,r,e){var n;e(20)("species")},function(t,r,e){var n;e(20)("split")},function(t,r,e){var n;e(20)("toPrimitive")},function(t,r,e){var n;e(20)("toStringTag")},function(t,r,e){var n;e(20)("unscopables")},function(t,r,e){"use strict";var n=e(0),o=e(1),i=e(44),a=e(3),u=e(10),c=e(8),f=e(41),s=e(54),l=e(55),h=e(5),p=e(86),v=h("isConcatSpreadable"),d=9007199254740991,g="Maximum allowed index exceeded",y=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=l("concat"),isConcatSpreadable=function(t){if(!a(t))return!1;var r=t[v];return void 0!==r?!!r:i(t)},x;n({target:"Array",proto:!0,forced:!y||!m},{concat:function concat(t){var r=u(this),e=s(r,0),n=0,o,i,a,l,h;for(o=-1,a=arguments.length;o9007199254740991)throw TypeError(g);for(i=0;i=9007199254740991)throw TypeError(g);f(e,n++,h)}return e.length=n,e}})},function(t,r,e){var n=e(0),o=e(116),i=e(37);n({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(t,r,e){"use strict";var n=e(0),o=e(12).every,i=e(31),a=e(17),u=i("every"),c=a("every");n({target:"Array",proto:!0,forced:!u||!c},{every:function every(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){var n=e(0),o=e(87),i=e(37);n({target:"Array",proto:!0},{fill:o}),i("fill")},function(t,r,e){"use strict";var n=e(0),o=e(12).filter,i=e(55),a=e(17),u=i("filter"),c=a("filter");n({target:"Array",proto:!0,forced:!u||!c},{filter:function filter(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(0),o=e(12).find,i=e(37),a=e(17),u="find",c=!0,f=a(u);u in[]&&Array(1)[u]((function(){c=!1})),n({target:"Array",proto:!0,forced:c||!f},{find:function find(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(u)},function(t,r,e){"use strict";var n=e(0),o=e(12).findIndex,i=e(37),a=e(17),u="findIndex",c=!0,f=a(u);u in[]&&Array(1)[u]((function(){c=!1})),n({target:"Array",proto:!0,forced:c||!f},{findIndex:function findIndex(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(u)},function(t,r,e){"use strict";var n=e(0),o=e(117),i=e(10),a=e(8),u=e(23),c=e(54);n({target:"Array",proto:!0},{flat:function flat(){var t=arguments.length?arguments[0]:void 0,r=i(this),e=a(r.length),n=c(r,0);return n.length=o(n,r,r,e,0,void 0===t?1:u(t)),n}})},function(t,r,e){"use strict";var n=e(0),o=e(117),i=e(10),a=e(8),u=e(24),c=e(54);n({target:"Array",proto:!0},{flatMap:function flatMap(t){var r=i(this),e=a(r.length),n;return u(t),(n=c(r,0)).length=o(n,r,r,e,0,1,t,arguments.length>1?arguments[1]:void 0),n}})},function(t,r,e){"use strict";var n=e(0),o=e(118);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,r,e){var n=e(0),o=e(119),i,a;n({target:"Array",stat:!0,forced:!e(64)((function(t){Array.from(t)}))},{from:o})},function(t,r,e){"use strict";var n=e(0),o=e(51).includes,i=e(37),a,u;n({target:"Array",proto:!0,forced:!e(17)("indexOf",{ACCESSORS:!0,1:0})},{includes:function includes(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,r,e){"use strict";var n=e(0),o=e(51).indexOf,i=e(31),a=e(17),u=[].indexOf,c=!!u&&1/[1].indexOf(1,-0)<0,f=i("indexOf"),s=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:c||!f||!s},{indexOf:function indexOf(t){return c?u.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(0),o=e(48),i=e(18),a=e(31),u=[].join,c=o!=Object,f=a("join",",");n({target:"Array",proto:!0,forced:c||!f},{join:function join(t){return u.call(i(this),void 0===t?",":t)}})},function(t,r,e){var n=e(0),o=e(124);n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(t,r,e){"use strict";var n=e(0),o=e(12).map,i=e(55),a=e(17),u=i("map"),c=a("map");n({target:"Array",proto:!0,forced:!u||!c},{map:function map(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(0),o=e(1),i=e(41),a;n({target:"Array",stat:!0,forced:o((function(){function F(){}return!(Array.of.call(F)instanceof F)}))},{of:function of(){for(var t=0,r=arguments.length,e=new("function"==typeof this?this:Array)(r);r>t;)i(e,t,arguments[t++]);return e.length=r,e}})},function(t,r,e){"use strict";var n=e(0),o=e(66).left,i=e(31),a=e(17),u=i("reduce"),c=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!u||!c},{reduce:function reduce(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(0),o=e(66).right,i=e(31),a=e(17),u=i("reduceRight"),c=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!u||!c},{reduceRight:function reduceRight(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(0),o=e(44),i=[].reverse,a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function reverse(){return o(this)&&(this.length=this.length),i.call(this)}})},function(t,r,e){"use strict";var n=e(0),o=e(3),i=e(44),a=e(34),u=e(8),c=e(18),f=e(41),s=e(5),l=e(55),h=e(17),p=l("slice"),v=h("slice",{ACCESSORS:!0,0:0,1:2}),d=s("species"),g=[].slice,y=Math.max;n({target:"Array",proto:!0,forced:!p||!v},{slice:function slice(t,r){var e=c(this),n=u(e.length),s=a(t,n),l=a(void 0===r?n:r,n),h,p,v;if(i(e)&&("function"!=typeof(h=e.constructor)||h!==Array&&!i(h.prototype)?o(h)&&null===(h=h[d])&&(h=void 0):h=void 0,h===Array||void 0===h))return g.call(e,s,l);for(p=new(void 0===h?Array:h)(y(l-s,0)),v=0;s1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(0),o=e(24),i=e(10),a=e(1),u=e(31),c=[],f=c.sort,s=a((function(){c.sort(void 0)})),l=a((function(){c.sort(null)})),h=u("sort"),p;n({target:"Array",proto:!0,forced:s||!l||!h},{sort:function sort(t){return void 0===t?f.call(i(this)):f.call(i(this),o(t))}})},function(t,r,e){var n;e(45)("Array")},function(t,r,e){"use strict";var n=e(0),o=e(34),i=e(23),a=e(8),u=e(10),c=e(54),f=e(41),s=e(55),l=e(17),h=s("splice"),p=l("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,d=Math.min,g=9007199254740991,y="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!h||!p},{splice:function splice(t,r){var e=u(this),n=a(e.length),s=o(t,n),l=arguments.length,h,p,g,m,x,b;if(0===l?h=p=0:1===l?(h=0,p=n-s):(h=l-2,p=d(v(i(r),0),n-s)),n+h-p>9007199254740991)throw TypeError(y);for(g=c(e,p),m=0;mn-p+h;m--)delete e[m-1]}else if(h>p)for(m=n-p;m>s;m--)b=m+h-1,(x=m+p-1)in e?e[b]=e[x]:delete e[b];for(m=0;m>1,h=23===r?o(2,-24)-o(2,-77):0,p=t<0||0===t&&1/t<0?1:0,v=0,d,g,y;for((t=n(t))!=t||t===1/0?(g=t!=t?1:0,d=s):(d=i(a(t)/u),t*(y=o(2,-d))<1&&(d--,y*=2),(t+=d+l>=1?h/y:h*o(2,1-l))*y>=2&&(d++,y/=2),d+l>=s?(g=0,d=s):d+l>=1?(g=(t*y-1)*o(2,r),d+=l):(g=t*o(2,l-1)*o(2,r),d=0));r>=8;c[v++]=255&g,g/=256,r-=8);for(d=d<0;c[v++]=255&d,d/=256,f-=8);return c[--v]|=128*p,c},unpack=function(t,r){var e=t.length,n=8*e-r-1,i=(1<>1,u=n-7,c=e-1,f=t[c--],s=127&f,l;for(f>>=7;u>0;s=256*s+t[c],c--,u-=8);for(l=s&(1<<-u)-1,s>>=-u,u+=r;u>0;l=256*l+t[c],c--,u-=8);if(0===s)s=1-a;else{if(s===i)return l?NaN:f?-1/0:1/0;l+=o(2,r),s-=a}return(f?-1:1)*l*o(2,s-r)};t.exports={pack:pack,unpack:unpack}},function(t,r,e){var n=e(0),o=e(6),i;n({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},function(t,r,e){"use strict";var n=e(0),o=e(1),i=e(67),a=e(4),u=e(34),c=e(8),f=e(39),s=i.ArrayBuffer,l=i.DataView,h=s.prototype.slice,p;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new s(2).slice(1,void 0).byteLength}))},{slice:function slice(t,r){if(void 0!==h&&void 0===r)return h.call(a(this),t);for(var e=a(this).byteLength,n=u(t,e),o=u(void 0===r?e:r,e),i=new(f(this,s))(c(o-n)),p=new l(this),v=new l(i),d=0;n9999?"+":"";return n+o(i(r),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:c},function(t,r,e){"use strict";var n=e(0),o=e(1),i=e(10),a=e(26),u;n({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function toJSON(t){var r=i(this),e=a(r);return"number"!=typeof e||isFinite(e)?r.toISOString():null}})},function(t,r,e){var n=e(16),o=e(201),i,a=e(5)("toPrimitive"),u=Date.prototype;a in u||n(u,a,o)},function(t,r,e){"use strict";var n=e(4),o=e(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),"number"!==t)}},function(t,r,e){"use strict";var n=e(3),o=e(9),i=e(28),a,u=e(5)("hasInstance"),c=Function.prototype;u in c||o.f(c,u,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,r,e){var n=e(7),o=e(9).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/,c="name";n&&!(c in i)&&o(i,c,{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(t){return""}}})},function(t,r,e){var n=e(2),o;e(30)(n.JSON,"JSON",!0)},function(t,r,e){"use strict";var n=e(68),o=e(126);t.exports=n("Map",(function(t){return function Map(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,r,e){var n=e(0),o=e(127),i=Math.acosh,a=Math.log,u=Math.sqrt,c=Math.LN2,f;n({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function acosh(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+c:o(t-1+u(t-1)*u(t+1))}})},function(t,r,e){var n=e(0),o=Math.asinh,i=Math.log,a=Math.sqrt;function asinh(t){return isFinite(t=+t)&&0!=t?t<0?-asinh(-t):i(t+a(t*t+1)):t}n({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:asinh})},function(t,r,e){var n=e(0),o=Math.atanh,i=Math.log;n({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function atanh(t){return 0==(t=+t)?t:i((1+t)/(1-t))/2}})},function(t,r,e){var n=e(0),o=e(95),i=Math.abs,a=Math.pow;n({target:"Math",stat:!0},{cbrt:function cbrt(t){return o(t=+t)*a(i(t),1/3)}})},function(t,r,e){var n=e(0),o=Math.floor,i=Math.log,a=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function clz32(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},function(t,r,e){var n=e(0),o=e(70),i=Math.cosh,a=Math.abs,u=Math.E;n({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function cosh(t){var r=o(a(t)-1)+1;return(r+1/(r*u*u))*(u/2)}})},function(t,r,e){var n=e(0),o=e(70);n({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},function(t,r,e){var n,o;e(0)({target:"Math",stat:!0},{fround:e(214)})},function(t,r,e){var n=e(95),o=Math.abs,i=Math.pow,a=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),f=i(2,-126),roundTiesToEven=function(t){return t+1/a-1/a};t.exports=Math.fround||function fround(t){var r=o(t),e=n(t),i,s;return rc||s!=s?e*(1/0):e*s}},function(t,r,e){var n=e(0),o=Math.hypot,i=Math.abs,a=Math.sqrt,u;n({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function hypot(t,r){for(var e=0,n=0,o=arguments.length,u=0,c,f;n0?(f=c/u)*f:c;return u===1/0?1/0:u*a(e)}})},function(t,r,e){var n=e(0),o=e(1),i=Math.imul,a;n({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function imul(t,r){var e=65535,n=+t,o=+r,i=65535&n,a=65535&o;return 0|i*a+((65535&n>>>16)*a+i*(65535&o>>>16)<<16>>>0)}})},function(t,r,e){var n=e(0),o=Math.log,i=Math.LOG10E;n({target:"Math",stat:!0},{log10:function log10(t){return o(t)*i}})},function(t,r,e){var n,o;e(0)({target:"Math",stat:!0},{log1p:e(127)})},function(t,r,e){var n=e(0),o=Math.log,i=Math.LN2;n({target:"Math",stat:!0},{log2:function log2(t){return o(t)/i}})},function(t,r,e){var n,o;e(0)({target:"Math",stat:!0},{sign:e(95)})},function(t,r,e){var n=e(0),o=e(1),i=e(70),a=Math.abs,u=Math.exp,c=Math.E,f;n({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function sinh(t){return a(t=+t)<1?(i(t)-i(-t))/2:(u(t-1)-u(-t-1))*(c/2)}})},function(t,r,e){var n=e(0),o=e(70),i=Math.exp;n({target:"Math",stat:!0},{tanh:function tanh(t){var r=o(t=+t),e=o(-t);return r==1/0?1:e==1/0?-1:(r-e)/(i(t)+i(-t))}})},function(t,r,e){var n;e(30)(Math,"Math",!0)},function(t,r,e){var n=e(0),o=Math.ceil,i=Math.floor;n({target:"Math",stat:!0},{trunc:function trunc(t){return(t>0?i:o)(t)}})},function(t,r,e){"use strict";var n=e(7),o=e(2),i=e(52),a=e(14),u=e(11),c=e(25),f=e(69),s=e(26),l=e(1),h=e(35),p=e(40).f,v=e(13).f,d=e(9).f,g=e(47).trim,y="Number",m=o[y],x=m.prototype,b=c(h(x))==y,toNumber=function(t){var r=s(t,!1),e,n,o,i,a,u,c,f;if("string"==typeof r&&r.length>2)if(43===(e=(r=g(r)).charCodeAt(0))||45===e){if(88===(n=r.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(r.charCodeAt(1)){case 66:case 98:o=2,i=49;break;case 79:case 111:o=8,i=55;break;default:return+r}for(u=(a=r.slice(2)).length,c=0;ci)return NaN;return parseInt(a,o)}return+r};if(i(y,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w=function Number(t){var r=arguments.length<1?0:t,e=this;return e instanceof w&&(b?l((function(){x.valueOf.call(e)})):c(e)!=y)?f(new m(toNumber(r)),e,w):toNumber(r)},S=n?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0,E;S.length>A;A++)u(m,E=S[A])&&!u(w,E)&&d(w,E,v(m,E));w.prototype=x,x.constructor=w,a(o,y,w)}},function(t,r,e){var n;e(0)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,r,e){var n,o;e(0)({target:"Number",stat:!0},{isFinite:e(228)})},function(t,r,e){var n,o=e(2).isFinite;t.exports=Number.isFinite||function isFinite(t){return"number"==typeof t&&o(t)}},function(t,r,e){var n,o;e(0)({target:"Number",stat:!0},{isInteger:e(128)})},function(t,r,e){var n;e(0)({target:"Number",stat:!0},{isNaN:function isNaN(t){return t!=t}})},function(t,r,e){var n=e(0),o=e(128),i=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function isSafeInteger(t){return o(t)&&i(t)<=9007199254740991}})},function(t,r,e){var n;e(0)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,r,e){var n;e(0)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,r,e){var n=e(0),o=e(129);n({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(t,r,e){var n=e(0),o=e(130);n({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(t,r,e){"use strict";var n=e(0),o=e(23),i=e(131),a=e(94),u=e(1),c=1..toFixed,f=Math.floor,pow=function(t,r,e){return 0===r?e:r%2==1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log=function(t){for(var r=0,e=t;e>=4096;)r+=12,e/=4096;for(;e>=2;)r+=1,e/=2;return r},s;n({target:"Number",proto:!0,forced:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u((function(){c.call({})}))},{toFixed:function toFixed(t){var r=i(this),e=o(t),n=[0,0,0,0,0,0],u="",c="0",s,l,h,p,multiply=function(t,r){for(var e=-1,o=r;++e<6;)o+=t*n[e],n[e]=o%1e7,o=f(o/1e7)},divide=function(t){for(var r=6,e=0;--r>=0;)e+=n[r],n[r]=f(e/t),e=e%t*1e7},dataToString=function(){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==n[t]){var e=String(n[t]);r=""===r?e:r+a.call("0",7-e.length)+e}return r};if(e<0||e>20)throw RangeError("Incorrect fraction digits");if(r!=r)return"NaN";if(r<=-1e21||r>=1e21)return String(r);if(r<0&&(u="-",r=-r),r>1e-21)if(l=(s=log(r*pow(2,69,1))-69)<0?r*pow(2,-s,1):r/pow(2,s,1),l*=4503599627370496,(s=52-s)>0){for(multiply(0,l),h=e;h>=7;)multiply(1e7,0),h-=7;for(multiply(pow(10,h,1),0),h=s-1;h>=23;)divide(1<<23),h-=23;divide(1<0?u+((p=c.length)<=e?"0."+a.call("0",e-p)+c:c.slice(0,p-e)+"."+c.slice(p-e)):u+c}})},function(t,r,e){"use strict";var n=e(0),o=e(1),i=e(131),a=1..toPrecision,u;n({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function toPrecision(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},function(t,r,e){var n=e(0),o=e(132);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,r,e){"use strict";var n=e(0),o=e(7),i=e(72),a=e(10),u=e(24),c=e(9);o&&n({target:"Object",proto:!0,forced:i},{__defineGetter__:function __defineGetter__(t,r){c.f(a(this),t,{get:u(r),enumerable:!0,configurable:!0})}})},function(t,r,e){"use strict";var n=e(0),o=e(7),i=e(72),a=e(10),u=e(24),c=e(9);o&&n({target:"Object",proto:!0,forced:i},{__defineSetter__:function __defineSetter__(t,r){c.f(a(this),t,{set:u(r),enumerable:!0,configurable:!0})}})},function(t,r,e){var n=e(0),o=e(133).entries;n({target:"Object",stat:!0},{entries:function entries(t){return o(t)}})},function(t,r,e){var n=e(0),o=e(59),i=e(1),a=e(3),u=e(43).onFreeze,c=Object.freeze,f;n({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function freeze(t){return c&&a(t)?c(u(t)):t}})},function(t,r,e){var n=e(0),o=e(60),i=e(41);n({target:"Object",stat:!0},{fromEntries:function fromEntries(t){var r={};return o(t,(function(t,e){i(r,t,e)}),void 0,!0),r}})},function(t,r,e){var n=e(0),o=e(1),i=e(18),a=e(13).f,u=e(7),c=o((function(){a(1)})),f;n({target:"Object",stat:!0,forced:!u||c,sham:!u},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(t,r){return a(i(t),r)}})},function(t,r,e){var n=e(0),o=e(7),i=e(82),a=e(18),u=e(13),c=e(41);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(t){for(var r=a(t),e=u.f,n=i(r),o={},f=0,s,l;n.length>f;)void 0!==(l=e(r,s=n[f++]))&&c(o,s,l);return o}})},function(t,r,e){var n=e(0),o=e(1),i=e(114).f,a;n({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(t,r,e){var n=e(0),o=e(1),i=e(10),a=e(28),u=e(91),c;n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function getPrototypeOf(t){return a(i(t))}})},function(t,r,e){var n,o;e(0)({target:"Object",stat:!0},{is:e(134)})},function(t,r,e){var n=e(0),o=e(1),i=e(3),a=Object.isExtensible,u;n({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function isExtensible(t){return!!i(t)&&(!a||a(t))}})},function(t,r,e){var n=e(0),o=e(1),i=e(3),a=Object.isFrozen,u;n({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function isFrozen(t){return!i(t)||!!a&&a(t)}})},function(t,r,e){var n=e(0),o=e(1),i=e(3),a=Object.isSealed,u;n({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function isSealed(t){return!i(t)||!!a&&a(t)}})},function(t,r,e){var n=e(0),o=e(10),i=e(53),a,u;n({target:"Object",stat:!0,forced:e(1)((function(){i(1)}))},{keys:function keys(t){return i(o(t))}})},function(t,r,e){"use strict";var n=e(0),o=e(7),i=e(72),a=e(10),u=e(26),c=e(28),f=e(13).f;o&&n({target:"Object",proto:!0,forced:i},{__lookupGetter__:function __lookupGetter__(t){var r=a(this),e=u(t,!0),n;do{if(n=f(r,e))return n.get}while(r=c(r))}})},function(t,r,e){"use strict";var n=e(0),o=e(7),i=e(72),a=e(10),u=e(26),c=e(28),f=e(13).f;o&&n({target:"Object",proto:!0,forced:i},{__lookupSetter__:function __lookupSetter__(t){var r=a(this),e=u(t,!0),n;do{if(n=f(r,e))return n.set}while(r=c(r))}})},function(t,r,e){var n=e(0),o=e(3),i=e(43).onFreeze,a=e(59),u=e(1),c=Object.preventExtensions,f;n({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!a},{preventExtensions:function preventExtensions(t){return c&&o(t)?c(i(t)):t}})},function(t,r,e){var n=e(0),o=e(3),i=e(43).onFreeze,a=e(59),u=e(1),c=Object.seal,f;n({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!a},{seal:function seal(t){return c&&o(t)?c(i(t)):t}})},function(t,r,e){var n,o;e(0)({target:"Object",stat:!0},{setPrototypeOf:e(42)})},function(t,r,e){var n=e(89),o=e(14),i=e(259);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,r,e){"use strict";var n=e(89),o=e(58);t.exports=n?{}.toString:function toString(){return"[object "+o(this)+"]"}},function(t,r,e){var n=e(0),o=e(133).values;n({target:"Object",stat:!0},{values:function values(t){return o(t)}})},function(t,r,e){var n=e(0),o=e(129);n({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(t,r,e){var n=e(0),o=e(130);n({global:!0,forced:parseInt!=o},{parseInt:o})},function(t,r,e){"use strict";var n=e(0),o=e(29),i=e(2),a=e(27),u=e(135),c=e(14),f=e(46),s=e(30),l=e(45),h=e(3),p=e(24),v=e(38),d=e(25),g=e(80),y=e(60),m=e(64),x=e(39),b=e(96).set,w=e(137),S=e(138),A=e(264),E=e(139),O=e(265),_=e(19),I=e(52),R=e(5),T=e(86),M=R("species"),j="Promise",k=_.get,P=_.set,L=_.getterFor(j),U=u,N=i.TypeError,C=i.document,D=i.process,q=a("fetch"),G=E.f,B=G,z="process"==d(D),W=!!(C&&C.createEvent&&i.dispatchEvent),V="unhandledrejection",Y="rejectionhandled",$=0,J=1,X=2,K=1,H=2,Q,Z,tt,rt,et=I(j,(function(){var t;if(!(g(U)!==String(U))){if(66===T)return!0;if(!z&&"function"!=typeof PromiseRejectionEvent)return!0}if(o&&!U.prototype.finally)return!0;if(T>=51&&/native code/.test(U))return!1;var r=U.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))},e;return(r.constructor={})[M]=FakePromise,!(r.then((function(){}))instanceof FakePromise)})),nt=et||!m((function(t){U.all(t).catch((function(){}))})),isThenable=function(t){var r;return!(!h(t)||"function"!=typeof(r=t.then))&&r},notify=function(t,r,e){if(!r.notified){r.notified=!0;var n=r.reactions;w((function(){for(var o=r.value,i=1==r.state,a=0;n.length>a;){var u=n[a++],c=i?u.ok:u.fail,f=u.resolve,s=u.reject,l=u.domain,h,p,v;try{c?(i||(2===r.rejection&&onHandleUnhandled(t,r),r.rejection=1),!0===c?h=o:(l&&l.enter(),h=c(o),l&&(l.exit(),v=!0)),h===u.promise?s(N("Promise-chain cycle")):(p=isThenable(h))?p.call(h,f,s):f(h)):s(o)}catch(t){l&&!v&&l.exit(),s(t)}}r.reactions=[],r.notified=!1,e&&!r.rejection&&onUnhandled(t,r)}))}},dispatchEvent=function(t,r,e){var n,o;W?((n=C.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),i.dispatchEvent(n)):n={promise:r,reason:e},(o=i["on"+t])?o(n):t===V&&A("Unhandled promise rejection",e)},onUnhandled=function(t,r){b.call(i,(function(){var e=r.value,n,o;if(isUnhandled(r)&&(o=O((function(){z?D.emit("unhandledRejection",e,t):dispatchEvent(V,t,e)})),r.rejection=z||isUnhandled(r)?2:1,o.error))throw o.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,r){b.call(i,(function(){z?D.emit("rejectionHandled",t):dispatchEvent(Y,t,r.value)}))},bind=function(t,r,e,n){return function(o){t(r,e,o,n)}},internalReject=function(t,r,e,n){r.done||(r.done=!0,n&&(r=n),r.value=e,r.state=2,notify(t,r,!0))},internalResolve=function(t,r,e,n){if(!r.done){r.done=!0,n&&(r=n);try{if(t===e)throw N("Promise can't be resolved itself");var o=isThenable(e);o?w((function(){var n={done:!1};try{o.call(e,bind(internalResolve,t,n,r),bind(internalReject,t,n,r))}catch(e){internalReject(t,n,e,r)}})):(r.value=e,r.state=1,notify(t,r,!1))}catch(e){internalReject(t,{done:!1},e,r)}}};et&&(U=function Promise(t){v(this,U,j),p(t),Q.call(this);var r=k(this);try{t(bind(internalResolve,this,r),bind(internalReject,this,r))}catch(t){internalReject(this,r,t)}},(Q=function Promise(t){P(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(U.prototype,{then:function then(t,r){var e=L(this),n=G(x(this,U));return n.ok="function"!=typeof t||t,n.fail="function"==typeof r&&r,n.domain=z?D.domain:void 0,e.parent=!0,e.reactions.push(n),0!=e.state&¬ify(this,e,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Z=function(){var t=new Q,r=k(t);this.promise=t,this.resolve=bind(internalResolve,t,r),this.reject=bind(internalReject,t,r)},E.f=G=function(t){return t===U||t===tt?new Z(t):B(t)},o||"function"!=typeof u||(rt=u.prototype.then,c(u.prototype,"then",(function then(t,r){var e=this;return new U((function(t,r){rt.call(e,t,r)})).then(t,r)}),{unsafe:!0}),"function"==typeof q&&n({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return S(U,q.apply(i,arguments))}}))),n({global:!0,wrap:!0,forced:et},{Promise:U}),s(U,j,!1,!0),l(j),tt=a(j),n({target:j,stat:!0,forced:et},{reject:function reject(t){var r=G(this);return r.reject.call(void 0,t),r.promise}}),n({target:j,stat:!0,forced:o||et},{resolve:function resolve(t){return S(o&&this===tt?U:this,t)}}),n({target:j,stat:!0,forced:nt},{all:function all(t){var r=this,e=G(r),n=e.resolve,o=e.reject,i=O((function(){var e=p(r.resolve),i=[],a=0,u=1;y(t,(function(t){var c=a++,f=!1;i.push(void 0),u++,e.call(r,t).then((function(t){f||(f=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),e.promise},race:function race(t){var r=this,e=G(r),n=e.reject,o=O((function(){var o=p(r.resolve);y(t,(function(t){o.call(r,t).then(e.resolve,n)}))}));return o.error&&n(o.value),e.promise}})},function(t,r,e){var n=e(2);t.exports=function(t,r){var e=n.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,r))}},function(t,r){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,r,e){"use strict";var n=e(0),o=e(29),i=e(135),a=e(1),u=e(27),c=e(39),f=e(138),s=e(14),l;n({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var r=c(this,u("Promise")),e="function"==typeof t;return this.then(e?function(e){return f(r,t()).then((function(){return e}))}:t,e?function(e){return f(r,t()).then((function(){throw e}))}:t)}}),o||"function"!=typeof i||i.prototype.finally||s(i.prototype,"finally",u("Promise").prototype.finally)},function(t,r,e){var n=e(0),o=e(27),i=e(24),a=e(4),u=e(1),c=o("Reflect","apply"),f=Function.apply,s;n({target:"Reflect",stat:!0,forced:!u((function(){c((function(){}))}))},{apply:function apply(t,r,e){return i(t),a(e),c?c(t,r,e):f.call(t,r,e)}})},function(t,r,e){var n=e(0),o=e(27),i=e(24),a=e(4),u=e(3),c=e(35),f=e(269),s=e(1),l=o("Reflect","construct"),h=s((function(){function F(){}return!(l((function(){}),[],F)instanceof F)})),p=!s((function(){l((function(){}))})),v=h||p;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function construct(t,r){i(t),a(r);var e=arguments.length<3?t:i(arguments[2]);if(p&&!h)return l(t,r,e);if(t==e){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var n=[null];return n.push.apply(n,r),new(f.apply(t,n))}var o=e.prototype,s=c(u(o)?o:Object.prototype),v=Function.apply.call(t,s,r);return u(v)?v:s}})},function(t,r,e){"use strict";var n=e(24),o=e(3),i=[].slice,a={},construct=function(t,r,e){if(!(r in a)){for(var n=[],o=0;o-1)&&(r=r.replace(/y/g,""));var u=a(S?new m(t,r):m(t,r),e?this:x,O);return A&&i&&v(u,{sticky:i}),u},proxy=function(t){t in O||u(O,t,{configurable:!0,get:function(){return m[t]},set:function(r){m[t]=r}})},_=c(m),I=0;_.length>I;)proxy(_[I++]);x.constructor=O,O.prototype=x,h(o,"RegExp",O)}d("RegExp")},function(t,r,e){var n=e(7),o=e(9),i=e(73),a=e(98).UNSUPPORTED_Y;n&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(t,r,e){"use strict";var n=e(14),o=e(4),i=e(1),a=e(73),u="toString",c=RegExp.prototype,f=c[u],s=i((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),l=f.name!=u;(s||l)&&n(RegExp.prototype,u,(function toString(){var t=o(this),r=String(t.source),e=t.flags,n;return"/"+r+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in c)?a.call(t):e)}),{unsafe:!0})},function(t,r,e){"use strict";var n=e(68),o=e(126);t.exports=n("Set",(function(t){return function Set(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,r,e){"use strict";var n=e(0),o=e(75).codeAt;n({target:"String",proto:!0},{codePointAt:function codePointAt(t){return o(this,t)}})},function(t,r,e){"use strict";var n=e(0),o=e(13).f,i=e(8),a=e(99),u=e(15),c=e(100),f=e(29),s="".endsWith,l=Math.min,h=c("endsWith"),p,v;n({target:"String",proto:!0,forced:!!(f||h||(v=o(String.prototype,"endsWith"),!v||v.writable))&&!h},{endsWith:function endsWith(t){var r=String(u(this));a(t);var e=arguments.length>1?arguments[1]:void 0,n=i(r.length),o=void 0===e?n:l(i(e),n),c=String(t);return s?s.call(r,c,o):r.slice(o-c.length,o)===c}})},function(t,r,e){var n=e(0),o=e(34),i=String.fromCharCode,a=String.fromCodePoint,u;n({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function fromCodePoint(t){for(var r=[],e=arguments.length,n=0,a;e>n;){if(a=+arguments[n++],o(a,1114111)!==a)throw RangeError(a+" is not a valid code point");r.push(a<65536?i(a):i(55296+((a-=65536)>>10),a%1024+56320))}return r.join("")}})},function(t,r,e){"use strict";var n=e(0),o=e(99),i=e(15),a;n({target:"String",proto:!0,forced:!e(100)("includes")},{includes:function includes(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(76),o=e(4),i=e(8),a=e(15),u=e(101),c=e(77);n("match",1,(function(t,r,e){return[function match(r){var e=a(this),n=null==r?void 0:r[t];return void 0!==n?n.call(r,e):new RegExp(r)[t](String(e))},function(t){var n=e(r,t,this);if(n.done)return n.value;var a=o(t),f=String(this);if(!a.global)return c(a,f);var s=a.unicode;a.lastIndex=0;for(var l=[],h=0,p;null!==(p=c(a,f));){var v=String(p[0]);l[h]=v,""===v&&(a.lastIndex=u(f,i(a.lastIndex),s)),h++}return 0===h?null:l}]}))},function(t,r,e){"use strict";var n=e(0),o=e(93).end,i;n({target:"String",proto:!0,forced:e(142)},{padEnd:function padEnd(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(0),o=e(93).start,i;n({target:"String",proto:!0,forced:e(142)},{padStart:function padStart(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){var n=e(0),o=e(18),i=e(8);n({target:"String",stat:!0},{raw:function raw(t){for(var r=o(t.raw),e=i(r.length),n=arguments.length,a=[],u=0;e>u;)a.push(String(r[u++])),u]*>)/g,d=/\$([$&'`]|\d\d?)/g,maybeToString=function(t){return void 0===t?t:String(t)};n("replace",2,(function(t,r,e,n){var g=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=n.REPLACE_KEEPS_$0,m=g?"$":"$0";return[function replace(e,n){var o=c(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,n){if(!g&&y||"string"==typeof n&&-1===n.indexOf(m)){var i=e(r,t,this,n);if(i.done)return i.value}var c=o(t),p=String(this),v="function"==typeof n;v||(n=String(n));var d=c.global;if(d){var x=c.unicode;c.lastIndex=0}for(var b=[];;){var w=s(c,p),S;if(null===w)break;if(b.push(w),!d)break;""===String(w[0])&&(c.lastIndex=f(p,a(c.lastIndex),x))}for(var A="",E=0,O=0;O=E&&(A+=p.slice(E,I)+k,E=I+_.length)}return A+p.slice(E)}];function getSubstitution(t,e,n,o,a,u){var c=n+t.length,f=o.length,s=d;return void 0!==a&&(a=i(a),s=v),r.call(u,s,(function(r,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":u=a[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>f){var l=p(s/10);return 0===l?r:l<=f?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):r}u=o[s-1]}return void 0===u?"":u}))}}))},function(t,r,e){"use strict";var n=e(76),o=e(4),i=e(15),a=e(134),u=e(77);n("search",1,(function(t,r,e){return[function search(r){var e=i(this),n=null==r?void 0:r[t];return void 0!==n?n.call(r,e):new RegExp(r)[t](String(e))},function(t){var n=e(r,t,this);if(n.done)return n.value;var i=o(t),c=String(this),f=i.lastIndex;a(f,0)||(i.lastIndex=0);var s=u(i,c);return a(i.lastIndex,f)||(i.lastIndex=f),null===s?-1:s.index}]}))},function(t,r,e){"use strict";var n=e(76),o=e(97),i=e(4),a=e(15),u=e(39),c=e(101),f=e(8),s=e(77),l=e(74),h=e(1),p=[].push,v=Math.min,d=4294967295,g=!h((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(t,r,e){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var n=String(a(this)),i=void 0===e?4294967295:e>>>0;if(0===i)return[];if(void 0===t)return[n];if(!o(t))return r.call(n,t,i);for(var u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,s=new RegExp(t.source,c+"g"),h,v,d;(h=l.call(s,n))&&!((v=s.lastIndex)>f&&(u.push(n.slice(f,h.index)),h.length>1&&h.index=i));)s.lastIndex===h.index&&s.lastIndex++;return f===n.length?!d&&s.test("")||u.push(""):u.push(n.slice(f)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function split(r,e){var o=a(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,e):n.call(String(o),r,e)},function(t,o){var a=e(n,t,this,o,n!==r);if(a.done)return a.value;var l=i(t),h=String(this),p=u(l,RegExp),d=l.unicode,y=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),m=new p(g?l:"^(?:"+l.source+")",y),x=void 0===o?4294967295:o>>>0;if(0===x)return[];if(0===h.length)return null===s(m,h)?[h]:[];for(var b=0,w=0,S=[];w1?arguments[1]:void 0,r.length)),n=String(t);return s?s.call(r,n,e):r.slice(e,e+n.length)===n}})},function(t,r,e){"use strict";var n=e(0),o=e(47).trim,i;n({target:"String",proto:!0,forced:e(102)("trim")},{trim:function trim(){return o(this)}})},function(t,r,e){"use strict";var n=e(0),o=e(47).end,i,a=e(102)("trimEnd"),u=a?function trimEnd(){return o(this)}:"".trimEnd;n({target:"String",proto:!0,forced:a},{trimEnd:u,trimRight:u})},function(t,r,e){"use strict";var n=e(0),o=e(47).start,i,a=e(102)("trimStart"),u=a?function trimStart(){return o(this)}:"".trimStart;n({target:"String",proto:!0,forced:a},{trimStart:u,trimLeft:u})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("anchor")},{anchor:function anchor(t){return o(this,"a","name",t)}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("big")},{big:function big(){return o(this,"big","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("blink")},{blink:function blink(){return o(this,"blink","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("bold")},{bold:function bold(){return o(this,"b","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("fixed")},{fixed:function fixed(){return o(this,"tt","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("fontcolor")},{fontcolor:function fontcolor(t){return o(this,"font","color",t)}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("fontsize")},{fontsize:function fontsize(t){return o(this,"font","size",t)}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("italics")},{italics:function italics(){return o(this,"i","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("link")},{link:function link(t){return o(this,"a","href",t)}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("small")},{small:function small(){return o(this,"small","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("strike")},{strike:function strike(){return o(this,"strike","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("sub")},{sub:function sub(){return o(this,"sub","","")}})},function(t,r,e){"use strict";var n=e(0),o=e(21),i;n({target:"String",proto:!0,forced:e(22)("sup")},{sup:function sup(){return o(this,"sup","","")}})},function(t,r,e){var n;e(32)("Float32",(function(t){return function Float32Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n=e(23);t.exports=function(t){var r=n(t);if(r<0)throw RangeError("The argument can't be less than 0");return r}},function(t,r,e){var n;e(32)("Float64",(function(t){return function Float64Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n;e(32)("Int8",(function(t){return function Int8Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n;e(32)("Int16",(function(t){return function Int16Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n;e(32)("Int32",(function(t){return function Int32Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n;e(32)("Uint8",(function(t){return function Uint8Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n;e(32)("Uint8",(function(t){return function Uint8ClampedArray(r,e,n){return t(this,r,e,n)}}),!0)},function(t,r,e){var n;e(32)("Uint16",(function(t){return function Uint16Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n;e(32)("Uint32",(function(t){return function Uint32Array(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){"use strict";var n=e(6),o=e(116),i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("copyWithin",(function copyWithin(t,r){return o.call(i(this),t,r,arguments.length>2?arguments[2]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=e(12).every,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("every",(function every(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=e(87),i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("fill",(function fill(t){return o.apply(i(this),arguments)}))},function(t,r,e){"use strict";var n=e(6),o=e(12).filter,i=e(39),a=n.aTypedArray,u=n.aTypedArrayConstructor,c;(0,n.exportTypedArrayMethod)("filter",(function filter(t){for(var r=o(a(this),t,arguments.length>1?arguments[1]:void 0),e=i(this,this.constructor),n=0,c=r.length,f=new(u(e))(c);c>n;)f[n]=r[n++];return f}))},function(t,r,e){"use strict";var n=e(6),o=e(12).find,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("find",(function find(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=e(12).findIndex,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("findIndex",(function findIndex(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=e(12).forEach,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("forEach",(function forEach(t){o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(103),o,i;(0,e(6).exportTypedArrayStaticMethod)("from",e(144),n)},function(t,r,e){"use strict";var n=e(6),o=e(51).includes,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("includes",(function includes(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=e(51).indexOf,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("indexOf",(function indexOf(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(2),o=e(6),i=e(65),a,u=e(5)("iterator"),c=n.Uint8Array,f=i.values,s=i.keys,l=i.entries,h=o.aTypedArray,p=o.exportTypedArrayMethod,v=c&&c.prototype[u],d=!!v&&("values"==v.name||null==v.name),g=function values(){return f.call(h(this))};p("entries",(function entries(){return l.call(h(this))})),p("keys",(function keys(){return s.call(h(this))})),p("values",g,!d),p(u,g,!d)},function(t,r,e){"use strict";var n=e(6),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=[].join;i("join",(function join(t){return a.apply(o(this),arguments)}))},function(t,r,e){"use strict";var n=e(6),o=e(124),i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(t){return o.apply(i(this),arguments)}))},function(t,r,e){"use strict";var n=e(6),o=e(12).map,i=e(39),a=n.aTypedArray,u=n.aTypedArrayConstructor,c;(0,n.exportTypedArrayMethod)("map",(function map(t){return o(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,r){return new(u(i(t,t.constructor)))(r)}))}))},function(t,r,e){"use strict";var n=e(6),o=e(103),i=n.aTypedArrayConstructor,a;(0,n.exportTypedArrayStaticMethod)("of",(function of(){for(var t=0,r=arguments.length,e=new(i(this))(r);r>t;)e[t]=arguments[t++];return e}),o)},function(t,r,e){"use strict";var n=e(6),o=e(66).left,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("reduce",(function reduce(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=e(66).right,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("reduceRight",(function reduceRight(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function reverse(){for(var t=this,r=o(this).length,e=a(r/2),n=0,i;n1?arguments[1]:void 0,1),e=this.length,n=a(t),u=o(n.length),f=0;if(u+r>e)throw RangeError("Wrong length");for(;fi;)s[i]=e[i++];return s}),i((function(){new Int8Array(1).slice()})))},function(t,r,e){"use strict";var n=e(6),o=e(12).some,i=n.aTypedArray,a;(0,n.exportTypedArrayMethod)("some",(function some(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(6),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=[].sort;i("sort",(function sort(t){return a.call(o(this),t)}))},function(t,r,e){"use strict";var n=e(6),o=e(8),i=e(34),a=e(39),u=n.aTypedArray,c;(0,n.exportTypedArrayMethod)("subarray",(function subarray(t,r){var e=u(this),n=e.length,c=i(t,n);return new(a(e,e.constructor))(e.buffer,e.byteOffset+c*e.BYTES_PER_ELEMENT,o((void 0===r?n:i(r,n))-c))}))},function(t,r,e){"use strict";var n=e(2),o=e(6),i=e(1),a=n.Int8Array,u=o.aTypedArray,c=o.exportTypedArrayMethod,f=[].toLocaleString,s=[].slice,l=!!a&&i((function(){f.call(new a(1))})),h;c("toLocaleString",(function toLocaleString(){return f.apply(l?s.call(u(this)):u(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(t,r,e){"use strict";var n=e(6).exportTypedArrayMethod,o=e(1),i,a=e(2).Uint8Array,u=a&&a.prototype||{},c=[].toString,f=[].join;o((function(){c.call({})}))&&(c=function toString(){return f.call(this)});var s=u.toString!=c;n("toString",c,s)},function(t,r,e){"use strict";var n=e(2),o=e(46),i=e(43),a=e(68),u=e(145),c=e(3),f=e(19).enforce,s=e(107),l=!n.ActiveXObject&&"ActiveXObject"in n,h=Object.isExtensible,p,wrapper=function(t){return function WeakMap(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=a("WeakMap",wrapper,u);if(s&&l){p=u.getConstructor(wrapper,"WeakMap",!0),i.REQUIRED=!0;var d=v.prototype,g=d.delete,y=d.has,m=d.get,x=d.set;o(d,{delete:function(t){if(c(t)&&!h(t)){var r=f(this);return r.frozen||(r.frozen=new p),g.call(this,t)||r.frozen.delete(t)}return g.call(this,t)},has:function has(t){if(c(t)&&!h(t)){var r=f(this);return r.frozen||(r.frozen=new p),y.call(this,t)||r.frozen.has(t)}return y.call(this,t)},get:function get(t){if(c(t)&&!h(t)){var r=f(this);return r.frozen||(r.frozen=new p),y.call(this,t)?m.call(this,t):r.frozen.get(t)}return m.call(this,t)},set:function set(t,r){if(c(t)&&!h(t)){var e=f(this);e.frozen||(e.frozen=new p),y.call(this,t)?x.call(this,t,r):e.frozen.set(t,r)}else x.call(this,t,r);return this}})}},function(t,r,e){"use strict";var n,o;e(68)("WeakSet",(function(t){return function WeakSet(){return t(this,arguments.length?arguments[0]:void 0)}}),e(145))},function(t,r,e){var n=e(2),o=e(146),i=e(118),a=e(16);for(var u in o){var c=n[u],f=c&&c.prototype;if(f&&f.forEach!==i)try{a(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,r,e){var n=e(2),o=e(146),i=e(65),a=e(16),u=e(5),c=u("iterator"),f=u("toStringTag"),s=i.values;for(var l in o){var h=n[l],p=h&&h.prototype;if(p){if(p[c]!==s)try{a(p,c,s)}catch(t){p[c]=s}if(p[f]||a(p,f,l),o[l])for(var v in i)if(p[v]!==i[v])try{a(p,v,i[v])}catch(t){p[v]=i[v]}}}},function(t,r,e){var n=e(0),o=e(2),i=e(96),a;n({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(t,r,e){var n=e(0),o=e(2),i=e(137),a=e(25),u=o.process,c="process"==a(u);n({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function queueMicrotask(t){var r=c&&u.domain;i(r?r.bind(t):t)}})},function(t,r,e){var n=e(0),o=e(2),i=e(63),a=[].slice,u,wrap=function(t){return function(r,e){var n=arguments.length>2,o=n?a.call(arguments,2):void 0;return t(n?function(){("function"==typeof r?r:Function(r)).apply(this,o)}:r,e)}};n({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:wrap(o.setTimeout),setInterval:wrap(o.setInterval)})},function(t,r,e){"use strict";e(141);var n=e(0),o=e(7),i=e(147),a=e(2),u=e(112),c=e(14),f=e(38),s=e(11),l=e(132),h=e(119),p=e(75).codeAt,v=e(357),d=e(30),g=e(148),y=e(19),m=a.URL,x=g.URLSearchParams,b=g.getState,w=y.set,S=y.getterFor("URL"),A=Math.floor,E=Math.pow,O="Invalid authority",_="Invalid scheme",I="Invalid host",R="Invalid port",T=/[A-Za-z]/,M=/[\d+-.A-Za-z]/,j=/\d/,k=/^(0x|0X)/,P=/^[0-7]+$/,L=/^\d+$/,U=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,C=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,D=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,q=/[\u0009\u000A\u000D]/g,G,parseHost=function(t,r){var e,n,o;if("["==r.charAt(0)){if("]"!=r.charAt(r.length-1))return I;if(!(e=parseIPv6(r.slice(1,-1))))return I;t.host=e}else if(isSpecial(t)){if(r=v(r),N.test(r))return I;if(null===(e=parseIPv4(r)))return I;t.host=e}else{if(C.test(r))return I;for(e="",n=h(r),o=0;o4)return t;for(n=[],o=0;o1&&"0"==i.charAt(0)&&(a=k.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)u=0;else{if(!(10==a?L:8==a?P:U).test(i))return t;u=parseInt(i,a)}n.push(u)}for(o=0;o=E(256,5-e))return null}else if(u>255)return null;for(c=n.pop(),o=0;o6)return;for(u=0;char();){if(c=null,u>0){if(!("."==char()&&u<4))return;o++}if(!j.test(char()))return;for(;j.test(char());){if(f=parseInt(char(),10),null===c)c=f;else{if(0==c)return;c=10*c+f}if(c>255)return;o++}r[e]=256*r[e]+c,2!=++u&&4!=u||e++}if(4!=u)return;break}if(":"==char()){if(o++,!char())return}else if(char())return;r[e++]=i}else{if(null!==n)return;o++,n=++e}}if(null!==n)for(s=e-n,e=7;0!=e&&s>0;)l=r[e],r[e--]=r[n+s-1],r[n+--s]=l;else if(8!=e)return;return r},findLongestZeroSequence=function(t){for(var r=null,e=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>e&&(r=n,e=o),n=null,o=0):(null===n&&(n=i),++o);return o>e&&(r=n,e=o),r},serializeHost=function(t){var r,e,n,o;if("number"==typeof t){for(r=[],e=0;e<4;e++)r.unshift(t%256),t=A(t/256);return r.join(".")}if("object"==typeof t){for(r="",n=findLongestZeroSequence(t),e=0;e<8;e++)o&&0===t[e]||(o&&(o=!1),n===e?(r+=e?":":"::",o=!0):(r+=t[e].toString(16),e<7&&(r+=":")));return"["+r+"]"}return t},B={},z=l({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),W=l({},z,{"#":1,"?":1,"{":1,"}":1}),V=l({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(t,r){var e=p(t,0);return e>32&&e<127&&!s(r,t)?t:encodeURIComponent(t)},Y={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(t){return s(Y,t.scheme)},includesCredentials=function(t){return""!=t.username||""!=t.password},cannotHaveUsernamePasswordPort=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},isWindowsDriveLetter=function(t,r){var e;return 2==t.length&&T.test(t.charAt(0))&&(":"==(e=t.charAt(1))||!r&&"|"==e)},startsWithWindowsDriveLetter=function(t){var r;return t.length>1&&isWindowsDriveLetter(t.slice(0,2))&&(2==t.length||"/"===(r=t.charAt(2))||"\\"===r||"?"===r||"#"===r)},shortenURLsPath=function(t){var r=t.path,e=r.length;!e||"file"==t.scheme&&1==e&&isWindowsDriveLetter(r[0],!0)||r.pop()},isSingleDot=function(t){return"."===t||"%2e"===t.toLowerCase()},isDoubleDot=function(t){return".."===(t=t.toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t},$={},J={},X={},K={},H={},Q={},Z={},tt={},rt={},et={},nt={},ot={},it={},at={},ut={},ct={},ft={},st={},lt={},ht={},pt={},parseURL=function(t,r,e,n){var o=e||$,i=0,a="",u=!1,c=!1,f=!1,l,p,v,d;for(e||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,r=r.replace(D,"")),r=r.replace(q,""),l=h(r);i<=l.length;){switch(p=l[i],o){case $:if(!p||!T.test(p)){if(e)return _;o=X;continue}a+=p.toLowerCase(),o=J;break;case J:if(p&&(M.test(p)||"+"==p||"-"==p||"."==p))a+=p.toLowerCase();else{if(":"!=p){if(e)return _;a="",o=X,i=0;continue}if(e&&(isSpecial(t)!=s(Y,a)||"file"==a&&(includesCredentials(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=a,e)return void(isSpecial(t)&&Y[t.scheme]==t.port&&(t.port=null));a="","file"==t.scheme?o=at:isSpecial(t)&&n&&n.scheme==t.scheme?o=K:isSpecial(t)?o=tt:"/"==l[i+1]?(o=H,i++):(t.cannotBeABaseURL=!0,t.path.push(""),o=lt)}break;case X:if(!n||n.cannotBeABaseURL&&"#"!=p)return _;if(n.cannotBeABaseURL&&"#"==p){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,o=pt;break}o="file"==n.scheme?at:Q;continue;case K:if("/"!=p||"/"!=l[i+1]){o=Q;continue}o=rt,i++;break;case H:if("/"==p){o=et;break}o=st;continue;case Q:if(t.scheme=n.scheme,p==G)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==p||"\\"==p&&isSpecial(t))o=Z;else if("?"==p)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",o=ht;else{if("#"!=p){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),o=st;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",o=pt}break;case Z:if(!isSpecial(t)||"/"!=p&&"\\"!=p){if("/"!=p){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,o=st;continue}o=et}else o=rt;break;case tt:if(o=rt,"/"!=p||"/"!=a.charAt(i+1))continue;i++;break;case rt:if("/"!=p&&"\\"!=p){o=et;continue}break;case et:if("@"==p){u&&(a="%40"+a),u=!0,v=h(a);for(var g=0;g65535)return R;t.port=isSpecial(t)&&x===Y[t.scheme]?null:x,a=""}if(e)return;o=ft;continue}return R}a+=p;break;case at:if(t.scheme="file","/"==p||"\\"==p)o=ut;else{if(!n||"file"!=n.scheme){o=st;continue}if(p==G)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==p)t.host=n.host,t.path=n.path.slice(),t.query="",o=ht;else{if("#"!=p){startsWithWindowsDriveLetter(l.slice(i).join(""))||(t.host=n.host,t.path=n.path.slice(),shortenURLsPath(t)),o=st;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",o=pt}}break;case ut:if("/"==p||"\\"==p){o=ct;break}n&&"file"==n.scheme&&!startsWithWindowsDriveLetter(l.slice(i).join(""))&&(isWindowsDriveLetter(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),o=st;continue;case ct:if(p==G||"/"==p||"\\"==p||"?"==p||"#"==p){if(!e&&isWindowsDriveLetter(a))o=st;else if(""==a){if(t.host="",e)return;o=ft}else{if(d=parseHost(t,a))return d;if("localhost"==t.host&&(t.host=""),e)return;a="",o=ft}continue}a+=p;break;case ft:if(isSpecial(t)){if(o=st,"/"!=p&&"\\"!=p)continue}else if(e||"?"!=p)if(e||"#"!=p){if(p!=G&&(o=st,"/"!=p))continue}else t.fragment="",o=pt;else t.query="",o=ht;break;case st:if(p==G||"/"==p||"\\"==p&&isSpecial(t)||!e&&("?"==p||"#"==p)){if(isDoubleDot(a)?(shortenURLsPath(t),"/"==p||"\\"==p&&isSpecial(t)||t.path.push("")):isSingleDot(a)?"/"==p||"\\"==p&&isSpecial(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&isWindowsDriveLetter(a)&&(t.host&&(t.host=""),a=a.charAt(0)+":"),t.path.push(a)),a="","file"==t.scheme&&(p==G||"?"==p||"#"==p))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==p?(t.query="",o=ht):"#"==p&&(t.fragment="",o=pt)}else a+=percentEncode(p,W);break;case lt:"?"==p?(t.query="",o=ht):"#"==p?(t.fragment="",o=pt):p!=G&&(t.path[0]+=percentEncode(p,B));break;case ht:e||"#"!=p?p!=G&&("'"==p&&isSpecial(t)?t.query+="%27":t.query+="#"==p?"%23":percentEncode(p,B)):(t.fragment="",o=pt);break;case pt:p!=G&&(t.fragment+=percentEncode(p,z))}i++}},vt=function URL(t){var r=f(this,vt,"URL"),e=arguments.length>1?arguments[1]:void 0,n=String(t),i=w(r,{type:"URL"}),a,u;if(void 0!==e)if(e instanceof vt)a=S(e);else if(u=parseURL(a={},String(e)))throw TypeError(u);if(u=parseURL(i,n,null,a))throw TypeError(u);var c=i.searchParams=new x,s=b(c);s.updateSearchParams(i.query),s.updateURL=function(){i.query=String(c)||null},o||(r.href=serializeURL.call(r),r.origin=getOrigin.call(r),r.protocol=getProtocol.call(r),r.username=getUsername.call(r),r.password=getPassword.call(r),r.host=getHost.call(r),r.hostname=getHostname.call(r),r.port=getPort.call(r),r.pathname=getPathname.call(r),r.search=getSearch.call(r),r.searchParams=getSearchParams.call(r),r.hash=getHash.call(r))},dt=vt.prototype,serializeURL=function(){var t=S(this),r=t.scheme,e=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,f=r+":";return null!==o?(f+="//",includesCredentials(t)&&(f+=e+(n?":"+n:"")+"@"),f+=serializeHost(o),null!==i&&(f+=":"+i)):"file"==r&&(f+="//"),f+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(f+="?"+u),null!==c&&(f+="#"+c),f},getOrigin=function(){var t=S(this),r=t.scheme,e=t.port;if("blob"==r)try{return new URL(r.path[0]).origin}catch(t){return"null"}return"file"!=r&&isSpecial(t)?r+"://"+serializeHost(t.host)+(null!==e?":"+e:""):"null"},getProtocol=function(){return S(this).scheme+":"},getUsername=function(){return S(this).username},getPassword=function(){return S(this).password},getHost=function(){var t=S(this),r=t.host,e=t.port;return null===r?"":null===e?serializeHost(r):serializeHost(r)+":"+e},getHostname=function(){var t=S(this).host;return null===t?"":serializeHost(t)},getPort=function(){var t=S(this).port;return null===t?"":String(t)},getPathname=function(){var t=S(this),r=t.path;return t.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):""},getSearch=function(){var t=S(this).query;return t?"?"+t:""},getSearchParams=function(){return S(this).searchParams},getHash=function(){var t=S(this).fragment;return t?"#"+t:""},accessorDescriptor=function(t,r){return{get:t,set:r,configurable:!0,enumerable:!0}};if(o&&u(dt,{href:accessorDescriptor(serializeURL,(function(t){var r=S(this),e=String(t),n=parseURL(r,e);if(n)throw TypeError(n);b(r.searchParams).updateSearchParams(r.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(t){var r=S(this);parseURL(r,String(t)+":",$)})),username:accessorDescriptor(getUsername,(function(t){var r=S(this),e=h(String(t));if(!cannotHaveUsernamePasswordPort(r)){r.username="";for(var n=0;n=55296&&o<=56319&&e>1,t+=g(t/r);t>455;n+=36)t=g(t/35);return g(n+36*t/(t+38))},encode=function(t){var r=[],e=(t=ucs2decode(t)).length,o=128,i=0,a=72,u,c;for(u=0;u=o&&cg((n-i)/h))throw RangeError(v);for(i+=(l-o)*h,o=l,u=0;un)throw RangeError(v);if(c==o){for(var p=i,d=36;;d+=36){var m=d<=a?1:d>=a+26?26:d-a;if(p=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var a=e.call(o,"catchLoc"),u=e.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),resetTryEntry(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:values(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,r,e){"use strict";e.r(r);var n=e(150),o=e(152),i=e(153),a=e(154),u=e(155),c=e(156),f=e(157),s=e(158),l=e(159),h=e(160),p=e(161),v=e(162),d=e(163),g=e(164),y=e(165),m=e(166),x=e(167),b=e(168),w=e(169),S=e(170),A=e(171),E=e(172),O=e(173),_=e(174),I=e(175),R=e(176),T=e(177),M=e(65),j=e(178),k=e(179),P=e(180),L=e(181),U=e(182),N=e(183),C=e(184),D=e(185),q=e(186),G=e(187),B=e(188),z=e(189),W=e(190),V=e(191),Y=e(192),$=e(194),J=e(195),X=e(196),K=e(197),H=e(199),Q=e(200),Z=e(202),tt=e(203),rt=e(204),et=e(205),nt=e(206),ot=e(207),it=e(208),at=e(209),ut=e(210),ct=e(211),ft=e(212),st=e(213),lt=e(215),ht=e(216),pt=e(217),vt=e(218),dt=e(219),gt=e(220),yt=e(221),mt=e(222),xt=e(223),bt=e(224),wt=e(225),St=e(226),At=e(227),Et=e(229),Ot=e(230),_t=e(231),It=e(232),Rt=e(233),Tt=e(234),Mt=e(235),jt=e(236),kt=e(237),Pt=e(238),Lt=e(239),Ft=e(240),Ut=e(241),Nt=e(242),Ct=e(243),Dt=e(244),qt=e(245),Gt=e(246),Bt=e(247),zt=e(248),Wt=e(249),Vt=e(250),Yt=e(251),$t=e(252),Jt=e(253),Xt=e(254),Kt=e(255),Ht=e(256),Qt=e(257),Zt=e(258),tr=e(260),rr=e(261),er=e(262),nr=e(263),or=e(266),ir=e(267),ar=e(268),ur=e(270),cr=e(271),fr=e(272),sr=e(273),lr=e(274),hr=e(275),pr=e(276),vr=e(277),dr=e(278),gr=e(279),yr=e(280),mr=e(281),xr=e(140),br=e(282),wr=e(283),Sr=e(284),Ar=e(285),Er=e(286),Or=e(287),_r=e(288),Ir=e(141),Rr=e(289),Tr=e(290),Mr=e(291),jr=e(292),kr=e(293),Pr=e(294),Lr=e(295),Fr=e(296),Ur=e(297),Nr=e(298),Cr=e(299),Dr=e(300),qr=e(301),Gr=e(302),Br=e(303),zr=e(304),Wr=e(305),Vr=e(306),Yr=e(307),$r=e(308),Jr=e(309),Xr=e(310),Kr=e(311),Hr=e(312),Qr=e(313),Zr=e(314),te=e(316),re=e(317),ee=e(318),ne=e(319),oe=e(320),ie=e(321),ae=e(322),ue=e(323),ce=e(324),fe=e(325),se=e(326),le=e(327),he=e(328),pe=e(329),ve=e(330),de=e(331),ge=e(332),ye=e(333),me=e(334),xe=e(335),be=e(336),we=e(337),Se=e(338),Ae=e(339),Ee=e(340),Oe=e(341),_e=e(342),Ie=e(343),Re=e(344),Te=e(345),Me=e(346),je=e(347),ke=e(348),Pe=e(349),Le=e(350),Fe=e(351),Ue=e(352),Ne=e(353),Ce=e(354),De=e(355),qe=e(356),Ge=e(359),Be=e(148),ze=e(360),We=e(104),Ve=e.n(We),Ye,$e=function Greeting(t){var r=t.name;return Ve.a.createElement("div",null,Ve.a.createElement("h2",null,"404"))},Je=r.default=$e}])})); \ No newline at end of file diff --git a/tests/umdLoader.spec.tsx b/tests/umdLoader.spec.tsx new file mode 100644 index 00000000..1819976f --- /dev/null +++ b/tests/umdLoader.spec.tsx @@ -0,0 +1,38 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { FetchMock } from 'jest-fetch-mock'; +import Sandbox from '@ice/sandbox'; +import { AssetTypeEnum } from '../src/util/handleAssets'; +import ModuleLoader from '../src/util/umdLoader'; + +describe('umd loader', () => { + const moduleLoader = new ModuleLoader(); + const umdSource = fs.readFileSync(path.resolve(__dirname, './umd-sample.js')); + beforeEach(() => { + (fetch as FetchMock).resetMocks(); + }); + + test('load umd module', async () => { + (fetch as FetchMock).mockResponseOnce(umdSource.toString()); + const umdModule: any = await moduleLoader.execModule({ + jsList: [{ + content: '//icestark.com/index.js', + type: AssetTypeEnum.EXTERNAL, + }], + cacheKey: 'test', + }); + expect(!!umdModule.default).toBe(true); + }); + + test('load umd module with sandbox', async () => { + (fetch as FetchMock).mockResponseOnce(umdSource.toString()); + const umdModule: any = await moduleLoader.execModule({ + jsList: [{ + content: '//icestark.com/index.js', + type: AssetTypeEnum.EXTERNAL, + }], + cacheKey: 'test', + }, new Sandbox()); + expect(!!umdModule.default).toBe(true); + }); +}) \ No newline at end of file