@volcengine/veplayer 2.1.0-rc.0 → 2.1.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var check=function(e){return e&&e.Math==Math&&e},global$q=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||commonjsGlobal||Function("return this")(),fails$z=function(e){try{return!!e()}catch(e){return!0}},fails$y=fails$z,functionBindNative=!fails$y((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$4=functionBindNative,FunctionPrototype$3=Function.prototype,apply$7=FunctionPrototype$3.apply,call$l=FunctionPrototype$3.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$4?call$l.bind(apply$7):function(){return call$l.apply(apply$7,arguments)}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$2=Function.prototype,call$k=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$2.bind.bind(call$k,call$k),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$k.apply(e,arguments)}},uncurryThis$z=functionUncurryThis,toString$e=uncurryThis$z({}.toString),stringSlice$4=uncurryThis$z("".slice),classofRaw$2=function(e){return stringSlice$4(toString$e(e),8,-1)},classofRaw$1=classofRaw$2,uncurryThis$y=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw$1(e))return uncurryThis$y(e)},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$m=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor={},fails$x=fails$z,descriptors=!fails$x((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$2=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$2?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$b=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$b&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$b(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$1;var match,version,createPropertyDescriptor$8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$x=functionUncurryThis,fails$w=fails$z,classof$e=classofRaw$2,$Object$4=Object,split$3=uncurryThis$x("".split),indexedObject=fails$w((function(){return!$Object$4("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$e(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$g=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$3(e))throw $TypeError$g("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$b=function(e){return IndexedObject$2(requireObjectCoercible$5(e))},isCallable$l=isCallable$m,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$k=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$l(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$l(e)},path$u={},path$t=path$u,global$p=global$q,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$g=function(e,t){return arguments.length<2?aFunction(path$t[e])||aFunction(global$p[e]):path$t[e]&&path$t[e][t]||global$p[e]&&global$p[e][t]},uncurryThis$w=functionUncurryThis,objectIsPrototypeOf=uncurryThis$w({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$o=global$q,userAgent$3=engineUserAgent,process$4=global$o.process,Deno$1=global$o.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$3.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$v=fails$z,global$n=global$q,$String$5=global$n.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$v((function(){var e=Symbol();return!$String$5(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41})),NATIVE_SYMBOL$5=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$f=getBuiltIn$g,isCallable$j=isCallable$m,isPrototypeOf$i=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$6=USE_SYMBOL_AS_UID$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$f("Symbol");return isCallable$j(t)&&isPrototypeOf$i(t.prototype,$Object$3(e))},$String$4=String,tryToString$6=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$5=tryToString$6,$TypeError$f=TypeError,aCallable$b=function(e){if(isCallable$i(e))return e;throw $TypeError$f(tryToString$5(e)+" is not a function")},aCallable$a=aCallable$b,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){var r=e[t];return isNullOrUndefined$2(r)?void 0:aCallable$a(r)},call$i=functionCall,isCallable$h=isCallable$m,isObject$j=isObject$k,$TypeError$e=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;if(isCallable$h(r=e.valueOf)&&!isObject$j(n=call$i(r,e)))return n;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;throw $TypeError$e("Can't convert object to primitive value")},shared$7={exports:{}},isPure=!0,global$m=global$q,defineProperty$d=Object.defineProperty,defineGlobalProperty$1=function(e,t){try{defineProperty$d(global$m,e,{value:t,configurable:!0,writable:!0})}catch(r){global$m[e]=t}return t},global$l=global$q,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$3=global$l[SHARED]||defineGlobalProperty(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$7.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedExports=shared$7.exports,requireObjectCoercible$4=requireObjectCoercible$6,$Object$2=Object,toObject$b=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$v=functionUncurryThis,toObject$a=toObject$b,hasOwnProperty=uncurryThis$v({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$a(e),t)},uncurryThis$u=functionUncurryThis,id$1=0,postfix=Math.random(),toString$d=uncurryThis$u(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$d(++id$1+postfix,36)},global$k=global$q,shared$6=sharedExports,hasOwn$i=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL$4=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$5=global$k.Symbol,WellKnownSymbolsStore$2=shared$6("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$5.for||Symbol$5:Symbol$5&&Symbol$5.withoutSetter||uid$3,wellKnownSymbol$q=function(e){return hasOwn$i(WellKnownSymbolsStore$2,e)||(WellKnownSymbolsStore$2[e]=NATIVE_SYMBOL$4&&hasOwn$i(Symbol$5,e)?Symbol$5[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore$2[e]},call$h=functionCall,isObject$i=isObject$k,isSymbol$5=isSymbol$6,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$p=wellKnownSymbol$q,$TypeError$d=TypeError,TO_PRIMITIVE=wellKnownSymbol$p("toPrimitive"),toPrimitive$6=function(e,t){if(!isObject$i(e)||isSymbol$5(e))return e;var r,n=getMethod$2(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$h(n,e,t),!isObject$i(r)||isSymbol$5(r))return r;throw $TypeError$d("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$5=toPrimitive$6,isSymbol$4=isSymbol$6,toPropertyKey$4=function(e){var t=toPrimitive$5(e,"string");return isSymbol$4(t)?t:t+""},global$j=global$q,isObject$h=isObject$k,document$3=global$j.document,EXISTS$1=isObject$h(document$3)&&isObject$h(document$3.createElement),documentCreateElement$1=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$i=descriptors,fails$u=fails$z,createElement$1=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$i&&!fails$u((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$h=descriptors,call$g=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$7=createPropertyDescriptor$8,toIndexedObject$a=toIndexedObject$b,toPropertyKey$3=toPropertyKey$4,hasOwn$h=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$h?$getOwnPropertyDescriptor$2:function(e,t){if(e=toIndexedObject$a(e),t=toPropertyKey$3(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(e,t)}catch(e){}if(hasOwn$h(e,t))return createPropertyDescriptor$7(!call$g(propertyIsEnumerableModule$2.f,e,t),e[t])};var fails$t=fails$z,isCallable$g=isCallable$m,replacement=/#|\.prototype\./,isForced$2=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$g(t)?fails$t(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,uncurryThis$t=functionUncurryThisClause,aCallable$9=aCallable$b,NATIVE_BIND$1=functionBindNative,bind$i=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$9(e),void 0===t?e:NATIVE_BIND$1?bind$i(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty={},DESCRIPTORS$g=descriptors,fails$s=fails$z,v8PrototypeDefineBug=DESCRIPTORS$g&&fails$s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$g=isObject$k,$String$3=String,$TypeError$c=TypeError,anObject$e=function(e){if(isObject$g(e))return e;throw $TypeError$c($String$3(e)+" is not an object")},DESCRIPTORS$f=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$2=toPropertyKey$4,$TypeError$b=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$f?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){if(anObject$d(e),t=toPropertyKey$2(t),anObject$d(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]){var n=$getOwnPropertyDescriptor$1(e,t);n&&n[WRITABLE]&&(e[t]=r.value,r={configurable:CONFIGURABLE$1 in r?r[CONFIGURABLE$1]:n[CONFIGURABLE$1],enumerable:ENUMERABLE in r?r[ENUMERABLE]:n[ENUMERABLE],writable:!1})}return $defineProperty$1(e,t,r)}:$defineProperty$1:function(e,t,r){if(anObject$d(e),t=toPropertyKey$2(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty$1(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$b("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$e=descriptors,definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$8,createNonEnumerableProperty$8=DESCRIPTORS$e?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$6(1,r))}:function(e,t,r){return e[t]=r,e},global$i=global$q,apply$6=functionApply,uncurryThis$s=functionUncurryThisClause,isCallable$f=isCallable$m,getOwnPropertyDescriptor$a=objectGetOwnPropertyDescriptor.f,isForced$1=isForced_1,path$s=path$u,bind$h=functionBindContext,createNonEnumerableProperty$7=createNonEnumerableProperty$8,hasOwn$g=hasOwnProperty_1,wrapConstructor=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return apply$6(e,this,arguments)};return t.prototype=e.prototype,t},_export=function(e,t){var r,n,o,a,i,s,l,c,u,p=e.target,$=e.global,f=e.stat,y=e.proto,d=$?global$i:f?global$i[p]:(global$i[p]||{}).prototype,h=$?path$s:path$s[p]||createNonEnumerableProperty$7(path$s,p,{})[p],g=h.prototype;for(a in t)n=!(r=isForced$1($?a:p+(f?".":"#")+a,e.forced))&&d&&hasOwn$g(d,a),s=h[a],n&&(l=e.dontCallGetSet?(u=getOwnPropertyDescriptor$a(d,a))&&u.value:d[a]),i=n&&l?l:t[a],n&&typeof s==typeof i||(c=e.bind&&n?bind$h(i,global$i):e.wrap&&n?wrapConstructor(i):y&&isCallable$f(i)?uncurryThis$s(i):i,(e.sham||i&&i.sham||s&&s.sham)&&createNonEnumerableProperty$7(c,"sham",!0),createNonEnumerableProperty$7(h,a,c),y&&(hasOwn$g(path$s,o=p+"Prototype")||createNonEnumerableProperty$7(path$s,o,{}),createNonEnumerableProperty$7(path$s[o],a,i),e.real&&g&&(r||!g[a])&&createNonEnumerableProperty$7(g,a,i)))},classof$d=classofRaw$2,isArray$d=Array.isArray||function(e){return"Array"==classof$d(e)},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor$3:ceil)(t)},trunc2=mathTrunc,toIntegerOrInfinity$5=function(e){var t=+e;return t!=t||0===t?0:trunc2(t)},toIntegerOrInfinity$4=toIntegerOrInfinity$5,min$4=Math.min,toLength$2=function(e){return e>0?min$4(toIntegerOrInfinity$4(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$a=function(e){return toLength$1(e.length)},$TypeError$a=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$3=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$a("Maximum allowed index exceeded");return e},toPropertyKey$1=toPropertyKey$4,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$5=createPropertyDescriptor$8,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$3.f(e,n,createPropertyDescriptor$5(0,r)):e[n]=r},wellKnownSymbol$o=wellKnownSymbol$q,TO_STRING_TAG$4=wellKnownSymbol$o("toStringTag"),test$1={};test$1[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$e=isCallable$m,classofRaw=classofRaw$2,wellKnownSymbol$n=wellKnownSymbol$q,TO_STRING_TAG$3=wellKnownSymbol$n("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$c=TO_STRING_TAG_SUPPORT$2?classofRaw:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=$Object$1(e),TO_STRING_TAG$3))?r:CORRECT_ARGUMENTS?classofRaw(t):"Object"==(n=classofRaw(t))&&isCallable$e(t.callee)?"Arguments":n},uncurryThis$r=functionUncurryThis,isCallable$d=isCallable$m,store$1=sharedStore,functionToString=uncurryThis$r(Function.toString);isCallable$d(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)});var inspectSource$2=store$1.inspectSource,uncurryThis$q=functionUncurryThis,fails$r=fails$z,isCallable$c=isCallable$m,classof$b=classof$c,getBuiltIn$e=getBuiltIn$g,inspectSource$1=inspectSource$2,noop=function(){},empty=[],construct$6=getBuiltIn$e("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$4=uncurryThis$q(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$c(e))return!1;try{return construct$6(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$c(e))return!1;switch(classof$b(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$4(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct$6||fails$r((function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){e=!0}))||e}))?isConstructorLegacy:isConstructorModern,isArray$c=isArray$d,isConstructor$3=isConstructor$4,isObject$f=isObject$k,wellKnownSymbol$m=wellKnownSymbol$q,SPECIES$5=wellKnownSymbol$m("species"),$Array$3=Array,arraySpeciesConstructor$1=function(e){var t;return isArray$c(e)&&(t=e.constructor,(isConstructor$3(t)&&(t===$Array$3||isArray$c(t.prototype))||isObject$f(t)&&null===(t=t[SPECIES$5]))&&(t=void 0)),void 0===t?$Array$3:t},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$3=function(e,t){return new(arraySpeciesConstructor(e))(0===t?0:t)},fails$q=fails$z,wellKnownSymbol$l=wellKnownSymbol$q,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$l("species"),arrayMethodHasSpeciesSupport$5=function(e){return V8_VERSION$2>=51||!fails$q((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$V=_export,fails$p=fails$z,isArray$b=isArray$d,isObject$e=isObject$k,toObject$9=toObject$b,lengthOfArrayLike$9=lengthOfArrayLike$a,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$5=createProperty$6,arraySpeciesCreate$2=arraySpeciesCreate$3,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,wellKnownSymbol$k=wellKnownSymbol$q,V8_VERSION$1=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$k("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$p((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),isConcatSpreadable=function(e){if(!isObject$e(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$b(e)},FORCED$8=!IS_CONCAT_SPREADABLE_SUPPORT||!arrayMethodHasSpeciesSupport$4("concat");$$V({target:"Array",proto:!0,arity:1,forced:FORCED$8},{concat:function(e){var t,r,n,o,a,i=toObject$9(this),s=arraySpeciesCreate$2(i,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(a=-1===t?i:arguments[t]))for(o=lengthOfArrayLike$9(a),doesNotExceedSafeInteger$2(l+o),r=0;r<o;r++,l++)r in a&&createProperty$5(s,l,a[r]);else doesNotExceedSafeInteger$2(l+1),createProperty$5(s,l++,a);return s.length=l,s}});var classof$a=classof$c,$String$2=String,toString$c=function(e){if("Symbol"===classof$a(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$2(e)},objectDefineProperties={},toIntegerOrInfinity$3=toIntegerOrInfinity$5,max$3=Math.max,min$3=Math.min,toAbsoluteIndex$4=function(e,t){var r=toIntegerOrInfinity$3(e);return r<0?max$3(r+t,0):min$3(r,t)},toIndexedObject$9=toIndexedObject$b,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$8=lengthOfArrayLike$a,createMethod$3=function(e){return function(t,r,n){var o,a=toIndexedObject$9(t),i=lengthOfArrayLike$8(a),s=toAbsoluteIndex$3(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},hiddenKeys$6={},uncurryThis$p=functionUncurryThis,hasOwn$f=hasOwnProperty_1,toIndexedObject$8=toIndexedObject$b,indexOf$7=arrayIncludes.indexOf,hiddenKeys$5=hiddenKeys$6,push$e=uncurryThis$p([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$8(e),o=0,a=[];for(r in n)!hasOwn$f(hiddenKeys$5,r)&&hasOwn$f(n,r)&&push$e(a,r);for(;t.length>o;)hasOwn$f(n,r=t[o++])&&(~indexOf$7(a,r)||push$e(a,r));return a},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,objectKeys$3=Object.keys||function(e){return internalObjectKeys$1(e,enumBugKeys$2)},DESCRIPTORS$d=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$c=anObject$e,toIndexedObject$7=toIndexedObject$b,objectKeys$2=objectKeys$3;objectDefineProperties.f=DESCRIPTORS$d&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$c(e);for(var r,n=toIndexedObject$7(t),o=objectKeys$2(t),a=o.length,i=0;a>i;)definePropertyModule$2.f(e,r=o[i++],n[r]);return e};var activeXDocument,getBuiltIn$d=getBuiltIn$g,html$2=getBuiltIn$d("document","documentElement"),shared$5=sharedExports,uid$2=uid$4,keys$6=shared$5("keys"),sharedKey$4=function(e){return keys$6[e]||(keys$6[e]=uid$2(e))},anObject$b=anObject$e,definePropertiesModule$1=objectDefineProperties,enumBugKeys$1=enumBugKeys$3,hiddenKeys$4=hiddenKeys$6,html$1=html$2,documentCreateElement=documentCreateElement$1,sharedKey$3=sharedKey$4,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html$1.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var e=enumBugKeys$1.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[e]];return NullProtoObject()};hiddenKeys$4[IE_PROTO$1]=!0;var objectCreate=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE$1]=anObject$b(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule$1.f(r,t)},objectGetOwnPropertyNames={},internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$3,hiddenKeys$3=enumBugKeys.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys(e,hiddenKeys$3)};var objectGetOwnPropertyNamesExternal={},toAbsoluteIndex$2=toAbsoluteIndex$4,lengthOfArrayLike$7=lengthOfArrayLike$a,createProperty$4=createProperty$6,$Array$2=Array,max$2=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$7(e),o=toAbsoluteIndex$2(t,n),a=toAbsoluteIndex$2(void 0===r?n:r,n),i=$Array$2(max$2(a-o,0)),s=0;o<a;o++,s++)createProperty$4(i,s,e[o]);return i.length=s,i},classof$9=classofRaw$2,toIndexedObject$6=toIndexedObject$b,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$7=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames$1(e)}catch(e){return arraySlice$7(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$9(e)?getWindowNames(e):$getOwnPropertyNames$1(toIndexedObject$6(e))};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$6=createNonEnumerableProperty$8,defineBuiltIn$8=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$6(e,t,r),e},defineProperty$c=objectDefineProperty,defineBuiltInAccessor$4=function(e,t,r){return defineProperty$c.f(e,t,r)},wellKnownSymbolWrapped={},wellKnownSymbol$j=wellKnownSymbol$q;wellKnownSymbolWrapped.f=wellKnownSymbol$j;var set$1,get,has,path$r=path$u,hasOwn$e=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$b=objectDefineProperty.f,wellKnownSymbolDefine=function(e){var t=path$r.Symbol||(path$r.Symbol={});hasOwn$e(t,e)||defineProperty$b(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$f=functionCall,getBuiltIn$c=getBuiltIn$g,wellKnownSymbol$i=wellKnownSymbol$q,defineBuiltIn$7=defineBuiltIn$8,symbolDefineToPrimitive=function(){var e=getBuiltIn$c("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$i("toPrimitive");t&&!t[n]&&defineBuiltIn$7(t,n,(function(e){return call$f(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$8=classof$c,objectToString$1=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$8(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineProperty$a=objectDefineProperty.f,createNonEnumerableProperty$5=createNonEnumerableProperty$8,hasOwn$d=hasOwnProperty_1,toString$b=objectToString$1,wellKnownSymbol$h=wellKnownSymbol$q,TO_STRING_TAG$2=wellKnownSymbol$h("toStringTag"),setToStringTag$8=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$d(o,TO_STRING_TAG$2)||defineProperty$a(o,TO_STRING_TAG$2,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT&&createNonEnumerableProperty$5(o,"toString",toString$b)}},global$h=global$q,isCallable$b=isCallable$m,WeakMap$1=global$h.WeakMap,weakMapBasicDetection=isCallable$b(WeakMap$1)&&/native code/.test(String(WeakMap$1)),NATIVE_WEAK_MAP=weakMapBasicDetection,global$g=global$q,isObject$d=isObject$k,createNonEnumerableProperty$4=createNonEnumerableProperty$8,hasOwn$c=hasOwnProperty_1,shared$4=sharedStore,sharedKey$2=sharedKey$4,hiddenKeys$2=hiddenKeys$6,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$5=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$d(t)||(r=get(t)).type!==e)throw TypeError$5("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$4.state){var store=shared$4.state||(shared$4.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$5(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},has=function(e){return store.has(e)}}else{var STATE=sharedKey$2("state");hiddenKeys$2[STATE]=!0,set$1=function(e,t){if(hasOwn$c(e,STATE))throw TypeError$5(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$c(e,STATE)?e[STATE]:{}},has=function(e){return hasOwn$c(e,STATE)}}var internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},bind$g=functionBindContext,uncurryThis$o=functionUncurryThis,IndexedObject$1=indexedObject,toObject$8=toObject$b,lengthOfArrayLike$6=lengthOfArrayLike$a,arraySpeciesCreate$1=arraySpeciesCreate$3,push$d=uncurryThis$o([].push),createMethod$2=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(l,c,u,p){for(var $,f,y=toObject$8(l),d=IndexedObject$1(y),h=bind$g(c,u),g=lengthOfArrayLike$6(d),m=0,_=p||arraySpeciesCreate$1,b=t?_(l,g):r||i?_(l,0):void 0;g>m;m++)if((s||m in d)&&(f=h($=d[m],m,y),e))if(t)b[m]=f;else if(f)switch(e){case 3:return!0;case 5:return $;case 6:return m;case 2:push$d(b,$)}else switch(e){case 4:return!1;case 7:push$d(b,$)}return a?-1:n||o?o:b}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},$$U=_export,global$f=global$q,call$e=functionCall,uncurryThis$n=functionUncurryThis,DESCRIPTORS$c=descriptors,NATIVE_SYMBOL$3=symbolConstructorDetection,fails$o=fails$z,hasOwn$b=hasOwnProperty_1,isPrototypeOf$h=objectIsPrototypeOf,anObject$a=anObject$e,toIndexedObject$5=toIndexedObject$b,toPropertyKey=toPropertyKey$4,$toString$2=toString$c,createPropertyDescriptor$4=createPropertyDescriptor$8,nativeObjectCreate=objectCreate,objectKeys$1=objectKeys$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$6=defineBuiltIn$8,defineBuiltInAccessor$3=defineBuiltInAccessor$4,shared$3=sharedExports,sharedKey$1=sharedKey$4,hiddenKeys$1=hiddenKeys$6,uid$1=uid$4,wellKnownSymbol$g=wellKnownSymbol$q,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$7=setToStringTag$8,InternalStateModule$5=internalState,$forEach$1=arrayIteration.forEach,HIDDEN=sharedKey$1("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",setInternalState$5=InternalStateModule$5.set,getInternalState$2=InternalStateModule$5.getterFor(SYMBOL),ObjectPrototype$2=Object[PROTOTYPE],$Symbol=global$f.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE],TypeError$4=global$f.TypeError,QObject=global$f.QObject,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$2.f,nativeDefineProperty=definePropertyModule$1.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$c=uncurryThis$n([].push),AllSymbols=shared$3("symbols"),ObjectPrototypeSymbols=shared$3("op-symbols"),WellKnownSymbolsStore$1=shared$3("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDescriptor=DESCRIPTORS$c&&fails$o((function(){return 7!=nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=nativeGetOwnPropertyDescriptor$1(ObjectPrototype$2,t);n&&delete ObjectPrototype$2[t],nativeDefineProperty(e,t,r),n&&e!==ObjectPrototype$2&&nativeDefineProperty(ObjectPrototype$2,t,n)}:nativeDefineProperty,wrap=function(e,t){var r=AllSymbols[e]=nativeObjectCreate(SymbolPrototype);return setInternalState$5(r,{type:SYMBOL,tag:e,description:t}),DESCRIPTORS$c||(r.description=t),r},$defineProperty=function(e,t,r){e===ObjectPrototype$2&&$defineProperty(ObjectPrototypeSymbols,t,r),anObject$a(e);var n=toPropertyKey(t);return anObject$a(r),hasOwn$b(AllSymbols,n)?(r.enumerable?(hasOwn$b(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$4(0,!1)})):(hasOwn$b(e,HIDDEN)||nativeDefineProperty(e,HIDDEN,createPropertyDescriptor$4(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty(e,n,r)},$defineProperties=function(e,t){anObject$a(e);var r=toIndexedObject$5(t),n=objectKeys$1(r).concat($getOwnPropertySymbols(r));return $forEach$1(n,(function(t){DESCRIPTORS$c&&!call$e($propertyIsEnumerable,r,t)||$defineProperty(e,t,r[t])})),e},$create=function(e,t){return void 0===t?nativeObjectCreate(e):$defineProperties(nativeObjectCreate(e),t)},$propertyIsEnumerable=function(e){var t=toPropertyKey(e),r=call$e(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$2&&hasOwn$b(AllSymbols,t)&&!hasOwn$b(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$b(this,t)||!hasOwn$b(AllSymbols,t)||hasOwn$b(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor=function(e,t){var r=toIndexedObject$5(e),n=toPropertyKey(t);if(r!==ObjectPrototype$2||!hasOwn$b(AllSymbols,n)||hasOwn$b(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$1(r,n);return!o||!hasOwn$b(AllSymbols,n)||hasOwn$b(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$5(e)),r=[];return $forEach$1(t,(function(e){hasOwn$b(AllSymbols,e)||hasOwn$b(hiddenKeys$1,e)||push$c(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$2,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$5(e)),n=[];return $forEach$1(r,(function(e){!hasOwn$b(AllSymbols,e)||t&&!hasOwn$b(ObjectPrototype$2,e)||push$c(n,AllSymbols[e])})),n};NATIVE_SYMBOL$3||(defineBuiltIn$6(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$h(SymbolPrototype,this))throw TypeError$4("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString$2(arguments[0]):void 0,t=uid$1(e),r=function(e){this===ObjectPrototype$2&&call$e(r,ObjectPrototypeSymbols,e),hasOwn$b(this,HIDDEN)&&hasOwn$b(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$4(1,e))};return DESCRIPTORS$c&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$2,t,{configurable:!0,set:r}),wrap(t,e)})[PROTOTYPE],"toString",(function(){return getInternalState$2(this).tag})),defineBuiltIn$6($Symbol,"withoutSetter",(function(e){return wrap(uid$1(e),e)})),propertyIsEnumerableModule$1.f=$propertyIsEnumerable,definePropertyModule$1.f=$defineProperty,definePropertiesModule.f=$defineProperties,getOwnPropertyDescriptorModule$2.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule$2.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule$3.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(e){return wrap(wellKnownSymbol$g(e),e)},DESCRIPTORS$c&&defineBuiltInAccessor$3(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$2(this).description}})),$$U({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$3,sham:!NATIVE_SYMBOL$3},{Symbol:$Symbol}),$forEach$1(objectKeys$1(WellKnownSymbolsStore$1),(function(e){defineWellKnownSymbol$l(e)})),$$U({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$3},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$U({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3,sham:!DESCRIPTORS$c},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$U({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3},{getOwnPropertyNames:$getOwnPropertyNames}),defineSymbolToPrimitive$1(),setToStringTag$7($Symbol,SYMBOL),hiddenKeys$1[HIDDEN]=!0;var NATIVE_SYMBOL$2=symbolConstructorDetection,symbolRegistryDetection=NATIVE_SYMBOL$2&&!!Symbol.for&&!!Symbol.keyFor,$$T=_export,getBuiltIn$b=getBuiltIn$g,hasOwn$a=hasOwnProperty_1,toString$a=toString$c,shared$2=sharedExports,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$2("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$2("symbol-to-string-registry");$$T({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$a(e);if(hasOwn$a(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$b("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$S=_export,hasOwn$9=hasOwnProperty_1,isSymbol$3=isSymbol$6,tryToString$4=tryToString$6,shared$1=sharedExports,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$1("symbol-to-string-registry");$$S({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$3(e))throw TypeError(tryToString$4(e)+" is not a symbol");if(hasOwn$9(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$m=functionUncurryThis,arraySlice$6=uncurryThis$m([].slice),uncurryThis$l=functionUncurryThis,isArray$a=isArray$d,isCallable$a=isCallable$m,classof$7=classofRaw$2,toString$9=toString$c,push$b=uncurryThis$l([].push),getJsonReplacerFunction=function(e){if(isCallable$a(e))return e;if(isArray$a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?push$b(r,o):"number"!=typeof o&&"Number"!=classof$7(o)&&"String"!=classof$7(o)||push$b(r,toString$9(o))}var a=r.length,i=!0;return function(e,t){if(i)return i=!1,t;if(isArray$a(this))return t;for(var n=0;n<a;n++)if(r[n]===e)return t}}},$$R=_export,getBuiltIn$a=getBuiltIn$g,apply$5=functionApply,call$d=functionCall,uncurryThis$k=functionUncurryThis,fails$n=fails$z,isCallable$9=isCallable$m,isSymbol$2=isSymbol$6,arraySlice$5=arraySlice$6,getReplacerFunction=getJsonReplacerFunction,NATIVE_SYMBOL$1=symbolConstructorDetection,$String$1=String,$stringify=getBuiltIn$a("JSON","stringify"),exec$3=uncurryThis$k(/./.exec),charAt$5=uncurryThis$k("".charAt),charCodeAt$2=uncurryThis$k("".charCodeAt),replace$5=uncurryThis$k("".replace),numberToString$1=uncurryThis$k(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$1||fails$n((function(){var e=getBuiltIn$a("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$n((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$5(arguments),n=getReplacerFunction(t);if(isCallable$9(n)||void 0!==e&&!isSymbol$2(e))return r[1]=function(e,t){if(isCallable$9(n)&&(t=call$d(n,this,$String$1(e),t)),!isSymbol$2(t))return t},apply$5($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$5(r,t-1),o=charAt$5(r,t+1);return exec$3(low,e)&&!exec$3(hi,o)||exec$3(hi,e)&&!exec$3(low,n)?"\\u"+numberToString$1(charCodeAt$2(e,0),16):e};$stringify&&$$R({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$5(arguments),o=apply$5(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$5(o,tester,fixIllFormed):o}});var $$Q=_export,NATIVE_SYMBOL=symbolConstructorDetection,fails$m=fails$z,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,toObject$7=toObject$b,FORCED$7=!NATIVE_SYMBOL||fails$m((function(){getOwnPropertySymbolsModule$2.f(1)}));$$Q({target:"Object",stat:!0,forced:FORCED$7},{getOwnPropertySymbols:function(e){var t=getOwnPropertySymbolsModule$2.f;return t?t(toObject$7(e)):[]}});var defineWellKnownSymbol$k=wellKnownSymbolDefine;defineWellKnownSymbol$k("asyncIterator");var defineWellKnownSymbol$j=wellKnownSymbolDefine;defineWellKnownSymbol$j("hasInstance");var defineWellKnownSymbol$i=wellKnownSymbolDefine;defineWellKnownSymbol$i("isConcatSpreadable");var defineWellKnownSymbol$h=wellKnownSymbolDefine;defineWellKnownSymbol$h("iterator");var defineWellKnownSymbol$g=wellKnownSymbolDefine;defineWellKnownSymbol$g("match");var defineWellKnownSymbol$f=wellKnownSymbolDefine;defineWellKnownSymbol$f("matchAll");var defineWellKnownSymbol$e=wellKnownSymbolDefine;defineWellKnownSymbol$e("replace");var defineWellKnownSymbol$d=wellKnownSymbolDefine;defineWellKnownSymbol$d("search");var defineWellKnownSymbol$c=wellKnownSymbolDefine;defineWellKnownSymbol$c("species");var defineWellKnownSymbol$b=wellKnownSymbolDefine;defineWellKnownSymbol$b("split");var defineWellKnownSymbol$a=wellKnownSymbolDefine,defineSymbolToPrimitive=symbolDefineToPrimitive;defineWellKnownSymbol$a("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$9=getBuiltIn$g,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$6=setToStringTag$8;defineWellKnownSymbol$9("toStringTag"),setToStringTag$6(getBuiltIn$9("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$e=global$q,setToStringTag$5=setToStringTag$8;setToStringTag$5(global$e.JSON,"JSON",!0);var IteratorPrototype$1,PrototypeOfArrayIteratorPrototype,arrayIterator,path$q=path$u,symbol$5=path$q.Symbol,iterators={},DESCRIPTORS$b=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$b&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$b||DESCRIPTORS$b&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},fails$l=fails$z,correctPrototypeGetter=!fails$l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$7=hasOwnProperty_1,isCallable$8=isCallable$m,toObject$6=toObject$b,sharedKey=sharedKey$4,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$1=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER$1?$Object.getPrototypeOf:function(e){var t=toObject$6(e);if(hasOwn$7(t,IE_PROTO))return t[IE_PROTO];var r=t.constructor;return isCallable$8(r)&&t instanceof r?r.prototype:t instanceof $Object?ObjectPrototype$1:null},fails$k=fails$z,isCallable$7=isCallable$m,isObject$c=isObject$k,create$c=objectCreate,getPrototypeOf$7=objectGetPrototypeOf,defineBuiltIn$5=defineBuiltIn$8,wellKnownSymbol$f=wellKnownSymbol$q,ITERATOR$8=wellKnownSymbol$f("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$7(getPrototypeOf$7(arrayIterator)))!==Object.prototype&&(IteratorPrototype$1=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$c(IteratorPrototype$1)||fails$k((function(){var e={};return IteratorPrototype$1[ITERATOR$8].call(e)!==e}));isCallable$7((IteratorPrototype$1=NEW_ITERATOR_PROTOTYPE?{}:create$c(IteratorPrototype$1))[ITERATOR$8])||defineBuiltIn$5(IteratorPrototype$1,ITERATOR$8,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$1,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype=iteratorsCore.IteratorPrototype,create$b=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$8,setToStringTag$4=setToStringTag$8,Iterators$5=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$b(IteratorPrototype,{next:createPropertyDescriptor$3(+!n,r)}),setToStringTag$4(e,o,!1,!0),Iterators$5[o]=returnThis$1,e},uncurryThis$j=functionUncurryThis,aCallable$8=aCallable$b,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$j(aCallable$8(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$6=isCallable$m,$String=String,$TypeError$9=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$9("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThisAccessor(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$9(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$P=_export,call$c=functionCall,FunctionName=functionName,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf$6=objectGetPrototypeOf,setToStringTag$3=setToStringTag$8,defineBuiltIn$4=defineBuiltIn$8,wellKnownSymbol$e=wellKnownSymbol$q,Iterators$4=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER;FunctionName.CONFIGURABLE,IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$7=wellKnownSymbol$e("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,a,i){createIteratorConstructor$1(r,t,n);var s,l,c,u=function(e){if(e===o&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in f)return f[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},p=t+" Iterator",$=!1,f=e.prototype,y=f[ITERATOR$7]||f["@@iterator"]||o&&f[o],d=!BUGGY_SAFARI_ITERATORS&&y||u(o),h="Array"==t&&f.entries||y;if(h&&(s=getPrototypeOf$6(h.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$3(s,p,!0,!0),Iterators$4[p]=returnThis),PROPER_FUNCTION_NAME$1&&o==VALUES&&y&&y.name!==VALUES&&($=!0,d=function(){return call$c(y,this)}),o)if(l={values:u(VALUES),keys:a?d:u(KEYS),entries:u(ENTRIES)},i)for(c in l)(BUGGY_SAFARI_ITERATORS||$||!(c in f))&&defineBuiltIn$4(f,c,l[c]);else $$P({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||$},l);return i&&f[ITERATOR$7]!==d&&defineBuiltIn$4(f,ITERATOR$7,d,{name:o}),Iterators$4[t]=d,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject$4=toIndexedObject$b,Iterators$3=iterators,InternalStateModule$4=internalState;objectDefineProperty.f;var defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR);defineIterator$1(Array,"Array",(function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject$4(e),index:0,kind:t})}),(function(){var e=getInternalState$1(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$1(void 0,!0)):createIterResultObject$1("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Iterators$3.Arguments=Iterators$3.Array;var domIterables={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},DOMIterables$1=domIterables,global$d=global$q,classof$6=classof$c,createNonEnumerableProperty$3=createNonEnumerableProperty$8,Iterators$2=iterators,wellKnownSymbol$d=wellKnownSymbol$q,TO_STRING_TAG$1=wellKnownSymbol$d("toStringTag");for(var COLLECTION_NAME in DOMIterables$1){var Collection=global$d[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$6(CollectionPrototype)!==TO_STRING_TAG$1&&createNonEnumerableProperty$3(CollectionPrototype,TO_STRING_TAG$1,COLLECTION_NAME),Iterators$2[COLLECTION_NAME]=Iterators$2.Array}var parent$1_=symbol$5,symbol$4=parent$1_,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("dispose");var parent$1Z=symbol$4,symbol$3=parent$1Z,defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("asyncDispose");var $$O=_export,getBuiltIn$8=getBuiltIn$g,uncurryThis$i=functionUncurryThis,Symbol$4=getBuiltIn$8("Symbol"),keyFor2=Symbol$4.keyFor,thisSymbolValue$1=uncurryThis$i(Symbol$4.prototype.valueOf);$$O({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==keyFor2(thisSymbolValue$1(e))}catch(e){return!1}}});for(var $$N=_export,shared=sharedExports,getBuiltIn$7=getBuiltIn$g,uncurryThis$h=functionUncurryThis,isSymbol$1=isSymbol$6,wellKnownSymbol$c=wellKnownSymbol$q,Symbol$3=getBuiltIn$7("Symbol"),$isWellKnown=Symbol$3.isWellKnown,getOwnPropertyNames4=getBuiltIn$7("Object","getOwnPropertyNames"),thisSymbolValue=uncurryThis$h(Symbol$3.prototype.valueOf),WellKnownSymbolsStore=shared("wks"),i$2=0,symbolKeys=getOwnPropertyNames4(Symbol$3),symbolKeysLength=symbolKeys.length;i$2<symbolKeysLength;i$2++)try{var symbolKey=symbolKeys[i$2];isSymbol$1(Symbol$3[symbolKey])&&wellKnownSymbol$c(symbolKey)}catch(e){}$$N({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if($isWellKnown&&$isWellKnown(e))return!0;try{for(var t=thisSymbolValue(e),r=0,n=getOwnPropertyNames4(WellKnownSymbolsStore),o=n.length;r<o;r++)if(WellKnownSymbolsStore[n[r]]==t)return!0}catch(e){}return!1}});var defineWellKnownSymbol$5=wellKnownSymbolDefine;defineWellKnownSymbol$5("matcher");var defineWellKnownSymbol$4=wellKnownSymbolDefine;defineWellKnownSymbol$4("metadataKey");var defineWellKnownSymbol$3=wellKnownSymbolDefine;defineWellKnownSymbol$3("observable");var defineWellKnownSymbol$2=wellKnownSymbolDefine;defineWellKnownSymbol$2("metadata");var defineWellKnownSymbol$1=wellKnownSymbolDefine;defineWellKnownSymbol$1("patternMatch");var defineWellKnownSymbol=wellKnownSymbolDefine;defineWellKnownSymbol("replaceAll");var parent$1Y=symbol$3,symbol$2=parent$1Y,symbol$1=symbol$2,_Symbol$1=getDefaultExportFromCjs(symbol$1),uncurryThis$g=functionUncurryThis,toIntegerOrInfinity$2=toIntegerOrInfinity$5,toString$8=toString$c,requireObjectCoercible$3=requireObjectCoercible$6,charAt$4=uncurryThis$g("".charAt),charCodeAt$1=uncurryThis$g("".charCodeAt),stringSlice$3=uncurryThis$g("".slice),createMethod$1=function(e){return function(t,r){var n,o,a=toString$8(requireObjectCoercible$3(t)),i=toIntegerOrInfinity$2(r),s=a.length;return i<0||i>=s?e?"":void 0:(n=charCodeAt$1(a,i))<55296||n>56319||i+1===s||(o=charCodeAt$1(a,i+1))<56320||o>57343?e?charAt$4(a,i):n:e?stringSlice$3(a,i,i+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$3=stringMultibyte.charAt,toString$7=toString$c,InternalStateModule$3=internalState,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$2,STRING_ITERATOR="String Iterator",setInternalState$3=InternalStateModule$3.set,getInternalState=InternalStateModule$3.getterFor(STRING_ITERATOR);defineIterator(String,"String",(function(e){setInternalState$3(this,{type:STRING_ITERATOR,string:toString$7(e),index:0})}),(function(){var e,t=getInternalState(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject(void 0,!0):(e=charAt$3(r,n),t.index+=e.length,createIterResultObject(e,!1))}));var WrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,iterator$4=WrappedWellKnownSymbolModule$1.f("iterator"),parent$1X=iterator$4,iterator$3=parent$1X,parent$1W=iterator$3,iterator$2=parent$1W,parent$1V=iterator$2,iterator$1=parent$1V,iterator=iterator$1,_Symbol$iterator=getDefaultExportFromCjs(iterator);function _typeof(e){return(_typeof="function"==typeof _Symbol$1&&"symbol"==typeof _Symbol$iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof _Symbol$1&&e.constructor===_Symbol$1&&e!==_Symbol$1.prototype?"symbol":typeof e})(e)}var defineProperty$9={exports:{}},$$M=_export,DESCRIPTORS$a=descriptors,defineProperty$8=objectDefineProperty.f;$$M({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$8,sham:!DESCRIPTORS$a},{defineProperty:defineProperty$8});var path$p=path$u,Object$4=path$p.Object,defineProperty$7=defineProperty$9.exports=function(e,t,r){return Object$4.defineProperty(e,t,r)};Object$4.defineProperty.sham&&(defineProperty$7.sham=!0);var definePropertyExports=defineProperty$9.exports,parent$1U=definePropertyExports,defineProperty$6=parent$1U,parent$1T=defineProperty$6,defineProperty$5=parent$1T,parent$1S=defineProperty$5,defineProperty$4=parent$1S,defineProperty$3=defineProperty$4,_Object$defineProperty$1=getDefaultExportFromCjs(defineProperty$3),$$L=_export,DESCRIPTORS$9=descriptors,create$a=objectCreate;$$L({target:"Object",stat:!0,sham:!DESCRIPTORS$9},{create:create$a});var path$o=path$u,Object$3=path$o.Object,create$9=function(e,t){return Object$3.create(e,t)},parent$1R=create$9,create$8=parent$1R,parent$1Q=create$8,create$7=parent$1Q,parent$1P=create$7,create$6=parent$1P,create$5=create$6,_Object$create$1=getDefaultExportFromCjs(create$5),$$K=_export,fails$j=fails$z,toObject$5=toObject$b,nativeGetPrototypeOf=objectGetPrototypeOf,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,FAILS_ON_PRIMITIVES$3=fails$j((function(){nativeGetPrototypeOf(1)}));$$K({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$5(e))}});var path$n=path$u,getPrototypeOf$5=path$n.Object.getPrototypeOf,parent$1O=getPrototypeOf$5,getPrototypeOf$4=parent$1O,parent$1N=getPrototypeOf$4,getPrototypeOf$3=parent$1N,parent$1M=getPrototypeOf$3,getPrototypeOf$2=parent$1M,getPrototypeOf$1=getPrototypeOf$2,_Object$getPrototypeOf=getDefaultExportFromCjs(getPrototypeOf$1),fails$i=fails$z,arrayMethodIsStrict$3=function(e,t){var r=[][e];return!!r&&fails$i((function(){r.call(null,t||function(){return 1},1)}))},$forEach=arrayIteration.forEach,arrayMethodIsStrict$2=arrayMethodIsStrict$3,STRICT_METHOD$1=arrayMethodIsStrict$2("forEach"),arrayForEach=STRICT_METHOD$1?[].forEach:function(e){return $forEach(this,e,arguments.length>1?arguments[1]:void 0)},$$J=_export,forEach$7=arrayForEach;$$J({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var path$m=path$u,entryVirtual$f=function(e){return path$m[e+"Prototype"]},entryVirtual$e=entryVirtual$f,forEach$6=entryVirtual$e("Array").forEach,parent$1L=forEach$6,forEach$5=parent$1L,classof$5=classof$c,hasOwn$6=hasOwnProperty_1,isPrototypeOf$g=objectIsPrototypeOf,method$c=forEach$5,ArrayPrototype$b=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},forEach$4=function(e){var t=e.forEach;return e===ArrayPrototype$b||isPrototypeOf$g(ArrayPrototype$b,e)&&t===ArrayPrototype$b.forEach||hasOwn$6(DOMIterables,classof$5(e))?method$c:t},parent$1K=forEach$4,forEach$3=parent$1K,parent$1J=forEach$3,forEach$2=parent$1J,forEach$1=forEach$2,_forEachInstanceProperty$1=getDefaultExportFromCjs(forEach$1),DESCRIPTORS$8=descriptors,isArray$9=isArray$d,$TypeError$8=TypeError,getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$8&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(e,t){if(isArray$9(e)&&!getOwnPropertyDescriptor$9(e,"length").writable)throw $TypeError$8("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$I=_export,toObject$4=toObject$b,lengthOfArrayLike$5=lengthOfArrayLike$a,setArrayLength$1=arraySetLength,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$3,fails$h=fails$z,INCORRECT_TO_LENGTH=fails$h((function(){return 4294967297!==[].push.call({length:4294967296},1)})),properErrorOnNonWritableLength=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},FORCED$6=INCORRECT_TO_LENGTH||!properErrorOnNonWritableLength();$$I({target:"Array",proto:!0,arity:1,forced:FORCED$6},{push:function(e){var t=toObject$4(this),r=lengthOfArrayLike$5(t),n=arguments.length;doesNotExceedSafeInteger$1(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return setArrayLength$1(t,r),r}});var entryVirtual$d=entryVirtual$f,push$a=entryVirtual$d("Array").push,isPrototypeOf$f=objectIsPrototypeOf,method$b=push$a,ArrayPrototype$a=Array.prototype,push$9=function(e){var t=e.push;return e===ArrayPrototype$a||isPrototypeOf$f(ArrayPrototype$a,e)&&t===ArrayPrototype$a.push?method$b:t},parent$1I=push$9,push$8=parent$1I,parent$1H=push$8,push$7=parent$1H,parent$1G=push$7,push$6=parent$1G,push$5=push$6,_pushInstanceProperty=getDefaultExportFromCjs(push$5),$$H=_export,setPrototypeOf$6=objectSetPrototypeOf;$$H({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$6});var path$l=path$u,setPrototypeOf$5=path$l.Object.setPrototypeOf,parent$1F=setPrototypeOf$5,setPrototypeOf$4=parent$1F,parent$1E=setPrototypeOf$4,setPrototypeOf$3=parent$1E,parent$1D=setPrototypeOf$3,setPrototypeOf$2=parent$1D,setPrototypeOf$1=setPrototypeOf$2,_Object$setPrototypeOf=getDefaultExportFromCjs(setPrototypeOf$1),getBuiltIn$6=getBuiltIn$g,uncurryThis$f=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$e,concat$9=uncurryThis$f([].concat),ownKeys$4=getBuiltIn$6("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$9(t,r(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys$3=ownKeys$4,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys$3(t),o=definePropertyModule.f,a=getOwnPropertyDescriptorModule$1.f,i=0;i<n.length;i++){var s=n[i];hasOwn$5(e,s)||r&&hasOwn$5(r,s)||o(e,s,a(t,s))}},isObject$b=isObject$k,createNonEnumerableProperty$2=createNonEnumerableProperty$8,installErrorCause$1=function(e,t){isObject$b(t)&&"cause"in t&&createNonEnumerableProperty$2(e,"cause",t.cause)},uncurryThis$e=functionUncurryThis,$Error$1=Error,replace$4=uncurryThis$e("".replace),TEST=String($Error$1("zxcasd").stack),V8_OR_CHAKRA_STACK_ENTRY=/\n\s*at [^:]*:[^\n]*/,IS_V8_OR_CHAKRA_STACK=V8_OR_CHAKRA_STACK_ENTRY.test(TEST),errorStackClear=function(e,t){if(IS_V8_OR_CHAKRA_STACK&&"string"==typeof e&&!$Error$1.prepareStackTrace)for(;t--;)e=replace$4(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},fails$g=fails$z,createPropertyDescriptor$2=createPropertyDescriptor$8,errorStackInstallable=!fails$g((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$2(1,7)),7!==e.stack)})),createNonEnumerableProperty$1=createNonEnumerableProperty$8,clearErrorStack=errorStackClear,ERROR_STACK_INSTALLABLE=errorStackInstallable,captureStackTrace=Error.captureStackTrace,errorStackInstall=function(e,t,r,n){ERROR_STACK_INSTALLABLE&&(captureStackTrace?captureStackTrace(e,t):createNonEnumerableProperty$1(e,"stack",clearErrorStack(r,n)))},wellKnownSymbol$b=wellKnownSymbol$q,Iterators$1=iterators,ITERATOR$6=wellKnownSymbol$b("iterator"),ArrayPrototype$9=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype$9[ITERATOR$6]===e)},classof$4=classof$c,getMethod$1=getMethod$3,isNullOrUndefined$1=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$a=wellKnownSymbol$q,ITERATOR$5=wellKnownSymbol$a("iterator"),getIteratorMethod$a=function(e){if(!isNullOrUndefined$1(e))return getMethod$1(e,ITERATOR$5)||getMethod$1(e,"@@iterator")||Iterators[classof$4(e)]},call$b=functionCall,aCallable$7=aCallable$b,anObject$7=anObject$e,tryToString$3=tryToString$6,getIteratorMethod$9=getIteratorMethod$a,$TypeError$7=TypeError,getIterator$3=function(e,t){var r=arguments.length<2?getIteratorMethod$9(e):t;if(aCallable$7(r))return anObject$7(call$b(r,e));throw $TypeError$7(tryToString$3(e)+" is not iterable")},call$a=functionCall,anObject$6=anObject$e,getMethod=getMethod$3,iteratorClose$2=function(e,t,r){var n,o;anObject$6(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$a(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$6(n),r},bind$f=functionBindContext,call$9=functionCall,anObject$5=anObject$e,tryToString$2=tryToString$6,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$4=lengthOfArrayLike$a,isPrototypeOf$e=objectIsPrototypeOf,getIterator$2=getIterator$3,getIteratorMethod$8=getIteratorMethod$a,iteratorClose$1=iteratorClose$2,$TypeError$6=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$5=function(e,t,r){var n,o,a,i,s,l,c,u=r&&r.that,p=!(!r||!r.AS_ENTRIES),$=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),d=bind$f(t,u),h=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},g=function(e){return p?(anObject$5(e),y?d(e[0],e[1],h):d(e[0],e[1])):y?d(e,h):d(e)};if($)n=e.iterator;else if(f)n=e;else{if(!(o=getIteratorMethod$8(e)))throw $TypeError$6(tryToString$2(e)+" is not iterable");if(isArrayIteratorMethod$1(o)){for(a=0,i=lengthOfArrayLike$4(e);i>a;a++)if((s=g(e[a]))&&isPrototypeOf$e(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$2(e,o)}for(l=$?e.next:n.next;!(c=call$9(l,n)).done;){try{s=g(c.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$e(ResultPrototype,s))return s}return new Result(!1)},toString$6=toString$c,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$6(e)},$$G=_export,isPrototypeOf$d=objectIsPrototypeOf,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,copyConstructorProperties=copyConstructorProperties$1,create$4=objectCreate,createNonEnumerableProperty=createNonEnumerableProperty$8,createPropertyDescriptor$1=createPropertyDescriptor$8,installErrorCause=installErrorCause$1,installErrorStack=errorStackInstall,iterate$4=iterate$5,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$9=wellKnownSymbol$q,TO_STRING_TAG=wellKnownSymbol$9("toStringTag"),$Error=Error,push$4=[].push,$AggregateError=function(e,t){var r,n=isPrototypeOf$d(AggregateErrorPrototype,this);setPrototypeOf?r=setPrototypeOf($Error(),n?getPrototypeOf2(this):AggregateErrorPrototype):(r=n?this:create$4(AggregateErrorPrototype),createNonEnumerableProperty(r,TO_STRING_TAG,"Error")),void 0!==t&&createNonEnumerableProperty(r,"message",normalizeStringArgument(t)),installErrorStack(r,$AggregateError,r.stack,1),arguments.length>2&&installErrorCause(r,arguments[2]);var o=[];return iterate$4(e,push$4,{that:o}),createNonEnumerableProperty(r,"errors",o),r};setPrototypeOf?setPrototypeOf($AggregateError,$Error):copyConstructorProperties($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$4($Error.prototype,{constructor:createPropertyDescriptor$1(1,$AggregateError),message:createPropertyDescriptor$1(1,""),name:createPropertyDescriptor$1(1,"AggregateError")});$$G({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location,defer,channel,port,classof$3=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classof$3(process),getBuiltIn$5=getBuiltIn$g,defineBuiltInAccessor$2=defineBuiltInAccessor$4,wellKnownSymbol$8=wellKnownSymbol$q,DESCRIPTORS$7=descriptors,SPECIES$3=wellKnownSymbol$8("species"),setSpecies$1=function(e){var t=getBuiltIn$5(e);DESCRIPTORS$7&&t&&!t[SPECIES$3]&&defineBuiltInAccessor$2(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$c=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$3=function(e,t){if(isPrototypeOf$c(t,e))return e;throw $TypeError$5("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$1=tryToString$6,$TypeError$4=TypeError,aConstructor$2=function(e){if(isConstructor$2(e))return e;throw $TypeError$4(tryToString$1(e)+" is not a constructor")},anObject$4=anObject$e,aConstructor$1=aConstructor$2,isNullOrUndefined=isNullOrUndefined$4,wellKnownSymbol$7=wellKnownSymbol$q,SPECIES$2=wellKnownSymbol$7("species"),speciesConstructor$2=function(e,t){var r,n=anObject$4(e).constructor;return void 0===n||isNullOrUndefined(r=anObject$4(n)[SPECIES$2])?t:aConstructor$1(r)},$TypeError$3=TypeError,validateArgumentsLength$5=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$c=global$q,apply$4=functionApply,bind$e=functionBindContext,isCallable$5=isCallable$m,hasOwn$4=hasOwnProperty_1,fails$f=fails$z,html=html$2,arraySlice$4=arraySlice$6,createElement=documentCreateElement$1,validateArgumentsLength$4=validateArgumentsLength$5,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$c.setImmediate,clear=global$c.clearImmediate,process$3=global$c.process,Dispatch=global$c.Dispatch,Function$2=global$c.Function,MessageChannel=global$c.MessageChannel,String$1=global$c.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange";fails$f((function(){$location=global$c.location}));var run=function(e){if(hasOwn$4(queue$2,e)){var t=queue$2[e];delete queue$2[e],t()}},runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$c.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set&&clear||(set=function(e){validateArgumentsLength$4(arguments.length,1);var t=isCallable$5(e)?e:Function$2(e),r=arraySlice$4(arguments,1);return queue$2[++counter]=function(){apply$4(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$e(port.postMessage,port)):global$c.addEventListener&&isCallable$5(global$c.postMessage)&&!global$c.importScripts&&$location&&"file:"!==$location.protocol&&!fails$f(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$c.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var task$1={set:set,clear:clear},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var notify$1,toggle,node,promise$6,then,queue$1=Queue$2,userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$b=global$q,bind$d=functionBindContext,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$b.MutationObserver||global$b.WebKitMutationObserver,document$2=global$b.document,process$2=global$b.process,Promise$1=global$b.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$8(global$b,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;if(!microtask$1){var queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&&notify$1(),e}e&&e.enter()};IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise$6=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$d(promise$6.then,promise$6),notify$1=function(){then(flush)}):IS_NODE$2?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$d(macrotask,global$b),notify$1=function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}}var microtask_1=microtask$1,hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$6=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$a=global$q,promiseNativeConstructor=global$a.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!IS_DENO$1&&!IS_NODE$1&&"object"==typeof window&&"object"==typeof document,global$9=global$q,NativePromiseConstructor$5=promiseNativeConstructor,isCallable$4=isCallable$m,isForced=isForced_1,inspectSource=inspectSource$2,wellKnownSymbol$6=wellKnownSymbol$q,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,NativePromisePrototype$2=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,SPECIES$1=wellKnownSymbol$6("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$9.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",(function(){var e=inspectSource(NativePromiseConstructor$5),t=e!==String(NativePromiseConstructor$5);if(!t&&66===V8_VERSION)return!0;if(!NativePromisePrototype$2.catch||!NativePromisePrototype$2.finally)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){var r=new NativePromiseConstructor$5((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$1]=n,!(SUBCLASSING=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1})),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$6=aCallable$b,$TypeError$2=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$2("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$6(t),this.reject=aCallable$6(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var $$F=_export,IS_NODE=engineIsNode,global$8=global$q,call$8=functionCall,defineBuiltIn$3=defineBuiltIn$8,setToStringTag$2=setToStringTag$8,setSpecies=setSpecies$1,aCallable$5=aCallable$b,isCallable$3=isCallable$m,isObject$a=isObject$k,anInstance$2=anInstance$3,speciesConstructor$1=speciesConstructor$2,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$5=perform$6,Queue=queue$1,InternalStateModule$2=internalState,NativePromiseConstructor$4=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$6=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT;PromiseConstructorDetection.SUBCLASSING;var Internal,OwnPromiseCapability,PromiseWrapper,getInternalPromiseState=InternalStateModule$2.getterFor(PROMISE),setInternalState$2=InternalStateModule$2.set,NativePromisePrototype$1=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,PromiseConstructor=NativePromiseConstructor$4,PromisePrototype=NativePromisePrototype$1,TypeError$3=global$8.TypeError,document$1=global$8.document,process$1=global$8.process,newPromiseCapability$1=newPromiseCapabilityModule$6.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$8.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$a(e)||!isCallable$3(t=e.then))&&t},callReaction=function(e,t){var r,n,o,a=t.value,i=t.state==FULFILLED,s=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),o=!0)),r===e.promise?c(TypeError$3("Promise-chain cycle")):(n=isThenable(r))?call$8(n,r,l,c):l(r)):c(a)}catch(e){u&&!o&&u.exit(),c(e)}},notify=function(e,t){e.notified||(e.notified=!0,microtask((function(){for(var r,n=e.reactions;r=n.get();)callReaction(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled(e)})))},dispatchEvent=function(e,t,r){var n,o;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$8.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$8["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$8(task,global$8,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$5((function(){IS_NODE?process$1.emit("unhandledRejection",n,r):dispatchEvent(UNHANDLED_REJECTION,r,n)})),e.rejection=IS_NODE||isUnhandled(e)?UNHANDLED:HANDLED,t.error))throw t.value}))},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e){call$8(task,global$8,(function(){var t=e.facade;IS_NODE?process$1.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$c=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$3("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$8(n,t,bind$c(internalResolve,r,e),bind$c(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=FULFILLED,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$2(this,PromisePrototype),aCallable$5(e),call$8(Internal,this);var t=getInternalPromiseState(this);try{e(bind$c(internalResolve,t),bind$c(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$2(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$3(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$1(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process$1.domain:void 0,r.state==PENDING?r.reactions.add(n):microtask((function(){callReaction(n,r)})),n.promise})),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$c(internalResolve,t),this.reject=bind$c(internalReject,t)},newPromiseCapabilityModule$6.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),$$F({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$2(PromiseConstructor,PROMISE,!1,!0),setSpecies(PROMISE);var wellKnownSymbol$5=wellKnownSymbol$q,ITERATOR$4=wellKnownSymbol$5("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$4]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$2=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n={};n[ITERATOR$4]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$3=promiseNativeConstructor,checkCorrectnessOfIteration$1=checkCorrectnessOfIteration$2,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$1((function(e){NativePromiseConstructor$3.all(e).then(void 0,(function(){}))})),$$E=_export,call$7=functionCall,aCallable$4=aCallable$b,newPromiseCapabilityModule$5=newPromiseCapability$2,perform$4=perform$6,iterate$3=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration;$$E({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{all:function(e){var t=this,r=newPromiseCapabilityModule$5.f(t),n=r.resolve,o=r.reject,a=perform$4((function(){var r=aCallable$4(t.resolve),a=[],i=0,s=1;iterate$3(e,(function(e){var l=i++,c=!1;s++,call$7(r,t,e).then((function(e){c||(c=!0,a[l]=e,--s||n(a))}),o)})),--s||n(a)}));return a.error&&o(a.value),r.promise}});var $$D=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$2=promiseNativeConstructor;promiseNativeConstructor&&promiseNativeConstructor.prototype,$$D({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$C=_export,call$6=functionCall,aCallable$3=aCallable$b,newPromiseCapabilityModule$4=newPromiseCapability$2,perform$3=perform$6,iterate$2=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration;$$C({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{race:function(e){var t=this,r=newPromiseCapabilityModule$4.f(t),n=r.reject,o=perform$3((function(){var o=aCallable$3(t.resolve);iterate$2(e,(function(e){call$6(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$B=_export,call$5=functionCall,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$B({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule$3.f(this);return call$5(t.reject,void 0,e),t.promise}});var anObject$3=anObject$e,isObject$9=isObject$k,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$3(e),isObject$9(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$A=_export,getBuiltIn$4=getBuiltIn$g,IS_PURE$1=isPure,NativePromiseConstructor$1=promiseNativeConstructor,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2,PromiseConstructorWrapper=getBuiltIn$4("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR;$$A({target:"Promise",stat:!0,forced:IS_PURE$1},{resolve:function(e){return promiseResolve$1(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$1:this,e)}});var $$z=_export,call$4=functionCall,aCallable$2=aCallable$b,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$2=perform$6,iterate$1=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$z({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,a=perform$2((function(){var r=aCallable$2(t.resolve),o=[],a=0,i=1;iterate$1(e,(function(e){var s=a++,l=!1;i++,call$4(r,t,e).then((function(e){l||(l=!0,o[s]={status:"fulfilled",value:e},--i||n(o))}),(function(e){l||(l=!0,o[s]={status:"rejected",reason:e},--i||n(o))}))})),--i||n(o)}));return a.error&&o(a.value),r.promise}});var $$y=_export,call$3=functionCall,aCallable$1=aCallable$b,getBuiltIn$3=getBuiltIn$g,newPromiseCapabilityModule$1=newPromiseCapability$2,perform$1=perform$6,iterate=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,PROMISE_ANY_ERROR="No one promise resolved";$$y({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{any:function(e){var t=this,r=getBuiltIn$3("AggregateError"),n=newPromiseCapabilityModule$1.f(t),o=n.resolve,a=n.reject,i=perform$1((function(){var n=aCallable$1(t.resolve),i=[],s=0,l=1,c=!1;iterate(e,(function(e){var u=s++,p=!1;l++,call$3(n,t,e).then((function(e){p||c||(c=!0,o(e))}),(function(e){p||c||(p=!0,i[u]=e,--l||a(new r(i,PROMISE_ANY_ERROR)))}))})),--l||a(new r(i,PROMISE_ANY_ERROR))}));return i.error&&a(i.value),n.promise}});var $$x=_export,NativePromiseConstructor=promiseNativeConstructor,fails$e=fails$z,getBuiltIn$2=getBuiltIn$g,isCallable$2=isCallable$m,speciesConstructor=speciesConstructor$2,promiseResolve=promiseResolve$2,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$e((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));$$x({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor(this,getBuiltIn$2("Promise")),r=isCallable$2(e);return this.then(r?function(r){return promiseResolve(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve(t,e()).then((function(){throw r}))}:e)}});var path$k=path$u,promise$5=path$k.Promise,parent$1C=promise$5,promise$4=parent$1C,parent$1B=promise$4,promise$3=parent$1B,$$w=_export,newPromiseCapabilityModule=newPromiseCapability$2,perform=perform$6;$$w({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=newPromiseCapabilityModule.f(this),r=perform(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var parent$1A=promise$3,promise$2=parent$1A,promise$1=promise$2,_Promise$1=getDefaultExportFromCjs(promise$1),$$v=_export,uncurryThis$d=functionUncurryThis,isArray$8=isArray$d,nativeReverse=uncurryThis$d([].reverse),test=[1,2];$$v({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function(){return isArray$8(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$c=entryVirtual$f,reverse$5=entryVirtual$c("Array").reverse,isPrototypeOf$b=objectIsPrototypeOf,method$a=reverse$5,ArrayPrototype$8=Array.prototype,reverse$4=function(e){var t=e.reverse;return e===ArrayPrototype$8||isPrototypeOf$b(ArrayPrototype$8,e)&&t===ArrayPrototype$8.reverse?method$a:t},parent$1z=reverse$4,reverse$3=parent$1z,parent$1y=reverse$3,reverse$2=parent$1y,parent$1x=reverse$2,reverse$1=parent$1x,reverse2=reverse$1,_reverseInstanceProperty=getDefaultExportFromCjs(reverse2),$$u=_export,isArray$7=isArray$d,isConstructor$1=isConstructor$4,isObject$8=isObject$k,toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$3=lengthOfArrayLike$a,toIndexedObject$3=toIndexedObject$b,createProperty$3=createProperty$6,wellKnownSymbol$4=wellKnownSymbol$q,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$5,nativeSlice=arraySlice$6,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("slice"),SPECIES=wellKnownSymbol$4("species"),$Array$1=Array,max$1=Math.max;$$u({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{slice:function(e,t){var r,n,o,a=toIndexedObject$3(this),i=lengthOfArrayLike$3(a),s=toAbsoluteIndex$1(e,i),l=toAbsoluteIndex$1(void 0===t?i:t,i);if(isArray$7(a)&&(r=a.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$7(r.prototype))||isObject$8(r)&&null===(r=r[SPECIES]))&&(r=void 0),r===$Array$1||void 0===r))return nativeSlice(a,s,l);for(n=new(void 0===r?$Array$1:r)(max$1(l-s,0)),o=0;s<l;s++,o++)s in a&&createProperty$3(n,o,a[s]);return n.length=o,n}});var entryVirtual$b=entryVirtual$f,slice$6=entryVirtual$b("Array").slice,isPrototypeOf$a=objectIsPrototypeOf,method$9=slice$6,ArrayPrototype$7=Array.prototype,slice$5=function(e){var t=e.slice;return e===ArrayPrototype$7||isPrototypeOf$a(ArrayPrototype$7,e)&&t===ArrayPrototype$7.slice?method$9:t},parent$1w=slice$5,slice$4=parent$1w,parent$1v=slice$4,slice$3=parent$1v,parent$1u=slice$3,slice$2=parent$1u,slice$1=slice$2,_sliceInstanceProperty$1=getDefaultExportFromCjs(slice$1);function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty$1||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol$1?_Symbol$1:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return _Object$defineProperty$1(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a=t&&t.prototype instanceof $?t:$,i=_Object$create$1(a.prototype),s=new P(o||[]);return n(i,"_invoke",{value:b(e,r,s)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function $(){}function f(){}function y(){}var d={};l(d,a,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(I([])));h&&h!==t&&r.call(h,a)&&(d=h);var g=y.prototype=$.prototype=_Object$create$1(d);function m(e){var t;_forEachInstanceProperty$1(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,a,i,s){var l=u(e[n],e,a);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==_typeof(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,i,s)}),(function(e){o("throw",e,i,s)})):t.resolve(p).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,s)}))}s(l.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=S(i,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),_pushInstanceProperty(t=this.tryEntries).call(t,r)}function v(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty$1(e).call(e,O,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=y,n(g,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:f,configurable:!0}),f.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=_Object$create$1(g),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,i,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=_Promise$1);var i=new _(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},m(g),l(g,s,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)_pushInstanceProperty(r).call(r,n);return _reverseInstanceProperty(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=I,P.prototype={constructor:P,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,_forEachInstanceProperty$1(t=this.tryEntries).call(t,v),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty$1(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),v(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;v(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}var $$t=_export,toObject$3=toObject$b,nativeKeys=objectKeys$3,fails$d=fails$z,FAILS_ON_PRIMITIVES$2=fails$d((function(){nativeKeys(1)}));$$t({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{keys:function(e){return nativeKeys(toObject$3(e))}});var path$j=path$u,keys$5=path$j.Object.keys,parent$1t=keys$5,keys$4=parent$1t,parent$1s=keys$4,keys$3=parent$1s,parent$1r=keys$3,keys$2=parent$1r,keys$1=keys$2,_Object$keys$1=getDefaultExportFromCjs(keys$1),path$i=path$u,getOwnPropertySymbols$5=path$i.Object.getOwnPropertySymbols,parent$1q=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$1q,parent$1p=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$1p,parent$1o=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$1o,getOwnPropertySymbols$1=getOwnPropertySymbols$2,_Object$getOwnPropertySymbols$1=getDefaultExportFromCjs(getOwnPropertySymbols$1),$$s=_export,$filter=arrayIteration.filter,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("filter");$$s({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$2},{filter:function(e){return $filter(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$a=entryVirtual$f,filter$6=entryVirtual$a("Array").filter,isPrototypeOf$9=objectIsPrototypeOf,method$8=filter$6,ArrayPrototype$6=Array.prototype,filter$5=function(e){var t=e.filter;return e===ArrayPrototype$6||isPrototypeOf$9(ArrayPrototype$6,e)&&t===ArrayPrototype$6.filter?method$8:t},parent$1n=filter$5,filter$4=parent$1n,parent$1m=filter$4,filter$3=parent$1m,parent$1l=filter$3,filter$2=parent$1l,filter$1=filter$2,_filterInstanceProperty$1=getDefaultExportFromCjs(filter$1),getOwnPropertyDescriptor$7={exports:{}},$$r=_export,fails$c=fails$z,toIndexedObject$2=toIndexedObject$b,nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$6=descriptors,FORCED$5=!DESCRIPTORS$6||fails$c((function(){nativeGetOwnPropertyDescriptor(1)}));$$r({target:"Object",stat:!0,forced:FORCED$5,sham:!DESCRIPTORS$6},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor(toIndexedObject$2(e),t)}});var path$h=path$u,Object$2=path$h.Object,getOwnPropertyDescriptor$6=getOwnPropertyDescriptor$7.exports=function(e,t){return Object$2.getOwnPropertyDescriptor(e,t)};Object$2.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$6.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$7.exports,parent$1k=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor$5=parent$1k,parent$1j=getOwnPropertyDescriptor$5,getOwnPropertyDescriptor$4=parent$1j,parent$1i=getOwnPropertyDescriptor$4,getOwnPropertyDescriptor$3=parent$1i,getOwnPropertyDescriptor$2=getOwnPropertyDescriptor$3,_Object$getOwnPropertyDescriptor$1=getDefaultExportFromCjs(getOwnPropertyDescriptor$2),$$q=_export,DESCRIPTORS$5=descriptors,ownKeys$2=ownKeys$4,toIndexedObject$1=toIndexedObject$b,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,createProperty$2=createProperty$6;$$q({target:"Object",stat:!0,sham:!DESCRIPTORS$5},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject$1(e),o=getOwnPropertyDescriptorModule.f,a=ownKeys$2(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&createProperty$2(i,t,r);return i}});var path$g=path$u,getOwnPropertyDescriptors$5=path$g.Object.getOwnPropertyDescriptors,parent$1h=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$1h,parent$1g=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$1g,parent$1f=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$1f,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,_Object$getOwnPropertyDescriptors$1=getDefaultExportFromCjs(getOwnPropertyDescriptors$1),defineProperties$7={exports:{}},$$p=_export,DESCRIPTORS$4=descriptors,defineProperties$6=objectDefineProperties.f;$$p({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$4},{defineProperties:defineProperties$6});var path$f=path$u,Object$1=path$f.Object,defineProperties$5=defineProperties$7.exports=function(e,t){return Object$1.defineProperties(e,t)};Object$1.defineProperties.sham&&(defineProperties$5.sham=!0);var definePropertiesExports=defineProperties$7.exports,parent$1e=definePropertiesExports,defineProperties$4=parent$1e,parent$1d=defineProperties$4,defineProperties$3=parent$1d,parent$1c=defineProperties$3,defineProperties$2=parent$1c,defineProperties$1=defineProperties$2,_Object$defineProperties$1=getDefaultExportFromCjs(defineProperties$1),WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,toPrimitive$4=WrappedWellKnownSymbolModule.f("toPrimitive"),parent$1b=toPrimitive$4,toPrimitive$3=parent$1b,parent$1a=toPrimitive$3,toPrimitive$2=parent$1a,parent$19=toPrimitive$2,toPrimitive$1=parent$19,toPrimitive=toPrimitive$1,_Symbol$toPrimitive=getDefaultExportFromCjs(toPrimitive);function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[_Symbol$toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _defineProperty$1(e,t,r){return(t=_toPropertyKey(t))in e?_Object$defineProperty$1(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys$1(e,t){var r=_Object$keys$1(e);if(_Object$getOwnPropertySymbols$1){var n=_Object$getOwnPropertySymbols$1(e);t&&(n=_filterInstanceProperty$1(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor$1(e,t).enumerable}))),_pushInstanceProperty(r).apply(r,n)}return r}function _objectSpread2$1(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?_forEachInstanceProperty$1(r=ownKeys$1(Object(o),!0)).call(r,(function(t){_defineProperty$1(e,t,o[t])})):_Object$getOwnPropertyDescriptors$1?_Object$defineProperties$1(e,_Object$getOwnPropertyDescriptors$1(o)):_forEachInstanceProperty$1(n=ownKeys$1(Object(o))).call(n,(function(t){_Object$defineProperty$1(e,t,_Object$getOwnPropertyDescriptor$1(o,t))}))}return e}function asyncGeneratorStep(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):_Promise$1.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new _Promise$1((function(n,o){var a=e.apply(t,r);function i(e){asyncGeneratorStep(a,n,o,i,s,"next",e)}function s(e){asyncGeneratorStep(a,n,o,i,s,"throw",e)}i(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty$1(e,_toPropertyKey(n.key),n)}}function _createClass$1(e,t,r){return t&&_defineProperties$1(e.prototype,t),r&&_defineProperties$1(e,r),_Object$defineProperty$1(e,"prototype",{writable:!1}),e}var uncurryThis$c=functionUncurryThis,aCallable=aCallable$b,isObject$7=isObject$k,hasOwn$3=hasOwnProperty_1,arraySlice$3=arraySlice$6,NATIVE_BIND=functionBindNative,$Function=Function,concat$8=uncurryThis$c([].concat),join$3=uncurryThis$c([].join),factories={},construct$5=function(e,t,r){if(!hasOwn$3(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join$3(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND?$Function.bind:function(e){var t=aCallable(this),r=t.prototype,n=arraySlice$3(arguments,1),o=function(){var r=concat$8(n,arraySlice$3(arguments));return this instanceof o?construct$5(t,r.length,r):t.apply(e,r)};return isObject$7(r)&&(o.prototype=r),o},$$o=_export,bind$b=functionBind;$$o({target:"Function",proto:!0,forced:Function.bind!==bind$b},{bind:bind$b});var entryVirtual$9=entryVirtual$f,bind$a=entryVirtual$9("Function").bind,isPrototypeOf$8=objectIsPrototypeOf,method$7=bind$a,FunctionPrototype=Function.prototype,bind$9=function(e){var t=e.bind;return e===FunctionPrototype||isPrototypeOf$8(FunctionPrototype,e)&&t===FunctionPrototype.bind?method$7:t},parent$18=bind$9,bind$8=parent$18,parent$17=bind$8,bind$7=parent$17,parent$16=bind$7,bind$6=parent$16,bind$5=bind$6,_bindInstanceProperty$1=getDefaultExportFromCjs(bind$5);function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(r=_Object$setPrototypeOf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=_Object$create$1(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty$1(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}var $$n=_export,getBuiltIn$1=getBuiltIn$g,apply$3=functionApply,bind$4=functionBind,aConstructor=aConstructor$2,anObject$2=anObject$e,isObject$6=isObject$k,create$3=objectCreate,fails$b=fails$z,nativeConstruct=getBuiltIn$1("Reflect","construct"),ObjectPrototype=Object.prototype,push$3=[].push,NEW_TARGET_BUG=fails$b((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$b((function(){nativeConstruct((function(){}))})),FORCED$4=NEW_TARGET_BUG||ARGS_BUG;$$n({target:"Reflect",stat:!0,forced:FORCED$4,sham:FORCED$4},{construct:function(e,t){aConstructor(e),anObject$2(t);var r=arguments.length<3?e:aConstructor(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return apply$3(push$3,n,t),new(apply$3(bind$4,e,n))}var o=r.prototype,a=create$3(isObject$6(o)?o:ObjectPrototype),i=apply$3(e,a,t);return isObject$6(i)?i:a}});var path$e=path$u,construct$4=path$e.Reflect.construct,parent$15=construct$4,construct$3=parent$15,parent$14=construct$3,construct$2=parent$14,parent$13=construct$2,construct$1=parent$13,construct2=construct$1,_Reflect$construct=getDefaultExportFromCjs(construct2);function _getPrototypeOf(e){var t;return(_getPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(t=_Object$getPrototypeOf).call(t):function(e){return e.__proto__||_Object$getPrototypeOf(e)})(e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!_Reflect$construct)return!1;if(_Reflect$construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=_Reflect$construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}var $$m=_export,isArray$6=isArray$d;$$m({target:"Array",stat:!0},{isArray:isArray$6});var path$d=path$u,isArray$5=path$d.Array.isArray,parent$12=isArray$5,isArray$4=parent$12,parent$11=isArray$4,isArray$3=parent$11,parent$10=isArray$3,isArray$2=parent$10,isArray$1=isArray$2,_Array$isArray$1=getDefaultExportFromCjs(isArray$1);function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _arrayWithoutHoles(e){if(_Array$isArray$1(e))return _arrayLikeToArray(e)}var getIteratorMethod$7=getIteratorMethod$a,getIteratorMethod_1=getIteratorMethod$7,parent$$=getIteratorMethod_1,getIteratorMethod$6=parent$$,parent$_=getIteratorMethod$6,getIteratorMethod$5=parent$_,parent$Z=getIteratorMethod$5,getIteratorMethod$4=parent$Z,getIteratorMethod$3=getIteratorMethod$4,_getIteratorMethod$1=getDefaultExportFromCjs(getIteratorMethod$3),anObject$1=anObject$e,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$1(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$3=functionBindContext,call$2=functionCall,toObject$2=toObject$b,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$2,isConstructor3=isConstructor$4,lengthOfArrayLike$2=lengthOfArrayLike$a,createProperty$1=createProperty$6,getIterator$1=getIterator$3,getIteratorMethod$2=getIteratorMethod$a,$Array=Array,arrayFrom$1=function(e){var t=toObject$2(e),r=isConstructor3(this),n=arguments.length,o=n>1?arguments[1]:void 0,a=void 0!==o;a&&(o=bind$3(o,n>2?arguments[2]:void 0));var i,s,l,c,u,p,$=getIteratorMethod$2(t),f=0;if(!$||this===$Array&&isArrayIteratorMethod($))for(i=lengthOfArrayLike$2(t),s=r?new this(i):$Array(i);i>f;f++)p=a?o(t[f],f):t[f],createProperty$1(s,f,p);else for(u=(c=getIterator$1(t,$)).next,s=r?new this:[];!(l=call$2(u,c)).done;f++)p=a?callWithSafeIterationClosing(c,o,[l.value,f],!0):l.value,createProperty$1(s,f,p);return s.length=f,s},$$l=_export,from$5=arrayFrom$1,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,INCORRECT_ITERATION=!checkCorrectnessOfIteration((function(e){Array.from(e)}));$$l({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$5});var path$c=path$u,from$4=path$c.Array.from,parent$Y=from$4,from$3=parent$Y,parent$X=from$3,from$2=parent$X,parent$W=from$2,from$1=parent$W,from2=from$1,_Array$from=getDefaultExportFromCjs(from2);function _iterableToArray(e){if(void 0!==_Symbol$1&&null!=_getIteratorMethod$1(e)||null!=e["@@iterator"])return _Array$from(e)}function _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=_sliceInstanceProperty$1(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?_Array$from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var entryVirtual$8=entryVirtual$f,concat$7=entryVirtual$8("Array").concat,isPrototypeOf$7=objectIsPrototypeOf,method$6=concat$7,ArrayPrototype$5=Array.prototype,concat$6=function(e){var t=e.concat;return e===ArrayPrototype$5||isPrototypeOf$7(ArrayPrototype$5,e)&&t===ArrayPrototype$5.concat?method$6:t},parent$V=concat$6,concat$5=parent$V,parent$U=concat$5,concat$4=parent$U,parent$T=concat$4,concat$3=parent$T,concat$2=concat$3,concat$1=concat$2,_concatInstanceProperty=getDefaultExportFromCjs(concat$1),error=window.VePlayer.error,VeError=error.VeError,LiveErrorCode=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(LiveErrorCode||{});error.Level;var ErrorCode=_objectSpread2$1(_objectSpread2$1({},LiveErrorCode),error.ErrorCode),ERRORS=_objectSpread2$1(_objectSpread2$1({},error.ERROR_INFO),{},_defineProperty$1({},210,{messageTextKey:"INVALID_PARAMETER",level:error.Level.Fatal}));function create$2(e,t){return new VeError(ERRORS[e],t)}function _arrayWithHoles(e){if(_Array$isArray$1(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:void 0!==_Symbol$1&&_getIteratorMethod$1(e)||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(_pushInstanceProperty(s).call(s,n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}var $$k=_export,uncurryThis$b=functionUncurryThisClause,$indexOf=arrayIncludes.indexOf,arrayMethodIsStrict$1=arrayMethodIsStrict$3,nativeIndexOf=uncurryThis$b([].indexOf),NEGATIVE_ZERO$1=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED$3=NEGATIVE_ZERO$1||!arrayMethodIsStrict$1("indexOf");$$k({target:"Array",proto:!0,forced:FORCED$3},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO$1?nativeIndexOf(this,e,t)||0:$indexOf(this,e,t)}});var entryVirtual$7=entryVirtual$f,indexOf$6=entryVirtual$7("Array").indexOf,isPrototypeOf$6=objectIsPrototypeOf,method$5=indexOf$6,ArrayPrototype$4=Array.prototype,indexOf$5=function(e){var t=e.indexOf;return e===ArrayPrototype$4||isPrototypeOf$6(ArrayPrototype$4,e)&&t===ArrayPrototype$4.indexOf?method$5:t},parent$S=indexOf$5,indexOf$4=parent$S,parent$R=indexOf$4,indexOf$3=parent$R,parent$Q=indexOf$3,indexOf$2=parent$Q,indexOf$1=indexOf$2,_indexOfInstanceProperty$1=getDefaultExportFromCjs(indexOf$1);function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=_Object$keys$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||(o[r]=e[r]);return o}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(_Object$getOwnPropertySymbols$1){var a=_Object$getOwnPropertySymbols$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var promise=promise$1,_Promise=getDefaultExportFromCjs(promise),DynamicModule$2=window.VePlayer.DynamicModule,load$2=window.VePlayer.load;function isRTMSupported(){return _isRTMSupported.apply(this,arguments)}function _isRTMSupported(){return(_isRTMSupported=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,load$2(DynamicModule$2.PluginRtm);case 2:return t=e.sent,e.abrupt("return",t.isSupported());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function isRTMSupportCodec(){return _isRTMSupportCodec.apply(this,arguments)}function _isRTMSupportCodec(){return _isRTMSupportCodec=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:RTMCodec.H264,e.next=3,load$2(DynamicModule$2.PluginRtm);case 3:if(r=e.sent,t!==RTMCodec.H264){e.next=6;break}return e.abrupt("return",r.isSupportedH264());case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)}))),_isRTMSupportCodec.apply(this,arguments)}var _excluded=["fallbackUrl","enableFallback"],strategy$1=window.VePlayer.strategy,util$3=window.VePlayer.util,DynamicModule$1=window.VePlayer.DynamicModule,load$1=window.VePlayer.load,Codec$1=window.VePlayer.Codec,Sniffer$2=window.VePlayer.Sniffer,rtmStrategy={options:{},module:DynamicModule$1.PluginRtm},generateFallbackUrl=function(e){return"pc"===Sniffer$2.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},getRtmStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,o,a,i,s,l,c,u,p,$,f,y,d,h,g,m,_,b,S,O;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.url,s=t.rtm||{},l=s.fallbackUrl,c=s.enableFallback,u=void 0===c||c,p=_objectWithoutProperties(s,_excluded),$=u?!l&&i?generateFallbackUrl(i):l:"","flv"===(f=$&&util$3.getStreamType($))&&util$3.isMseSupported(Codec$1.H264)?a=strategy$1.createFlvMseStrategy(t):"hls"===f&&("mobile"!==Sniffer$2.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&util$3.isMseSupported(Codec$1.H264)&&(a=strategy$1.createHlsMseStrategy(t)),e.next=7,_Promise.all([load$1(rtmStrategy.module).catch((function(){})),a&&load$1(a.module).catch((function(){}))]);case 7:return y=e.sent,d=_slicedToArray(y,2),h=d[0],g=d[1],e.next=13,_Promise.all([isRTMSupported(),isRTMSupportCodec()]);case 13:if(m=e.sent,_=_slicedToArray(m,2),b=_[0],S=_[1],b&&S){e.next=20;break}return r&&r.emit("degrade",{url:$,originRtmUrl:i,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:b,isRTMSupportCodec:S}),e.abrupt("return",{options:_objectSpread2$1(_objectSpread2$1({},(null===(O=a)||void 0===O?void 0:O.options)||{}),{},{url:$,_RTMdegrade:{_originRtmUrl:i,_isRTMSupported:b,_isRTMSupportCodec:S}}),plugins:g?[g]:[]});case 20:return e.abrupt("return",{options:_objectSpread2$1(_objectSpread2$1({},(null===(o=a)||void 0===o?void 0:o.options)||{}),{},{_RTMdegrade:void 0,rts:_objectSpread2$1(_objectSpread2$1({retryCount:0},p),{},{backupURL:$,backupConstruct:g})}),plugins:h?[h]:[]});case 21:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),util$2=window.VePlayer.util,strategy=window.VePlayer.strategy,getTypeStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.url?util$2.getStreamType(t.url):"")&&"unknown"!==n){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==n){e.next=7;break}return e.next=6,getRtmStrategy(t,r);case 6:case 10:case 14:return e.abrupt("return",e.sent);case 7:if("flv"!==n){e.next=11;break}return e.next=10,strategy.getFlvStrategy(t);case 11:if("hls"!==n){e.next=15;break}return e.next=14,strategy.getHlsStrategy(t);case 15:return e.abrupt("return",{options:{},plugins:[]});case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),bind$2=bind$5,_bindInstanceProperty=getDefaultExportFromCjs(bind$2),whitespaces$4="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$a=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$6,toString$5=toString$c,whitespaces$3=whitespaces$4,replace$3=uncurryThis$a("".replace),ltrim=RegExp("^["+whitespaces$3+"]+"),rtrim=RegExp("(^|[^"+whitespaces$3+"])["+whitespaces$3+"]+$"),createMethod=function(e){return function(t){var r=toString$5(requireObjectCoercible$2(t));return 1&e&&(r=replace$3(r,ltrim,"")),2&e&&(r=replace$3(r,rtrim,"$1")),r}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$7=global$q,fails$a=fails$z,uncurryThis$9=functionUncurryThis,toString$4=toString$c,trim$8=stringTrim.trim,whitespaces$2=whitespaces$4,$parseInt$1=global$7.parseInt,Symbol$2=global$7.Symbol,ITERATOR$3=Symbol$2&&Symbol$2.iterator,hex=/^[+-]?0x/i,exec$2=uncurryThis$9(hex.exec),FORCED$2=8!==$parseInt$1(whitespaces$2+"08")||22!==$parseInt$1(whitespaces$2+"0x16")||ITERATOR$3&&!fails$a((function(){$parseInt$1(Object(ITERATOR$3))})),numberParseInt=FORCED$2?function(e,t){var r=trim$8(toString$4(e));return $parseInt$1(r,t>>>0||(exec$2(hex,r)?16:10))}:$parseInt$1,$$j=_export,$parseInt=numberParseInt;$$j({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});var path$b=path$u,_parseInt$c=path$b.parseInt,parent$P=_parseInt$c,_parseInt$b=parent$P,parent$O=_parseInt$b,_parseInt$a=parent$O,parent$N=_parseInt$a,_parseInt$9=parent$N,_parseInt$8=_parseInt$9,_parseInt$6=_parseInt$8,_parseInt$7=getDefaultExportFromCjs(_parseInt$6),engineIsBun="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,global$6=global$q,apply$2=functionApply,isCallable$1=isCallable$m,ENGINE_IS_BUN=engineIsBun,USER_AGENT=engineUserAgent,arraySlice$2=arraySlice$6,validateArgumentsLength$3=validateArgumentsLength$5,Function$1=global$6.Function,WRAP=/MSIE .\./.test(USER_AGENT)||ENGINE_IS_BUN&&function(){var e=global$6.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}(),schedulersFix$2=function(e,t){var r=t?2:1;return WRAP?function(n,o){var a=validateArgumentsLength$3(arguments.length,1)>r,i=isCallable$1(n)?n:Function$1(n),s=a?arraySlice$2(arguments,r):[],l=a?function(){apply$2(i,this,s)}:i;return t?e(l,o):e(l)}:e},$$i=_export,global$5=global$q,schedulersFix$1=schedulersFix$2,setInterval$5=schedulersFix$1(global$5.setInterval,!0);$$i({global:!0,bind:!0,forced:global$5.setInterval!==setInterval$5},{setInterval:setInterval$5});var $$h=_export,global$4=global$q,schedulersFix=schedulersFix$2,setTimeout$6=schedulersFix(global$4.setTimeout,!0);$$h({global:!0,bind:!0,forced:global$4.setTimeout!==setTimeout$6},{setTimeout:setTimeout$6});var path$a=path$u,setTimeout$5=path$a.setTimeout,parent$M=setTimeout$5,setTimeout$4=parent$M,parent$L=setTimeout$4,setTimeout$3=parent$L,setTimeout$2=setTimeout$3,setTimeout$1=setTimeout$2,_setTimeout=getDefaultExportFromCjs(setTimeout$1),slice2=slice$1,_sliceInstanceProperty=getDefaultExportFromCjs(slice2),FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=_parseInt$7,freeGlobal="object"==_typeof(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now$6=function(){return root.Date.now()};function debounce(e,t,r){var n,o,a,i,s,l,c=0,u=!1,p=!1,$=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function f(t){var r=n,a=o;return n=o=void 0,c=t,i=e.apply(a,r)}function y(e){var r=e-l;return void 0===l||r>=t||r<0||p&&e-c>=a}function d(){var e=now$6();if(y(e))return h(e);s=_setTimeout(d,function(e){var r=t-(e-l);return p?nativeMin(r,a-(e-c)):r}(e))}function h(e){return s=void 0,$&&n?f(e):(n=o=void 0,i)}function g(){var e=now$6(),r=y(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=_setTimeout(d,t),u?f(e):i}(l);if(p)return s=_setTimeout(d,t),f(l)}return void 0===s&&(s=_setTimeout(d,t)),i}return t=toNumber(t)||0,isObject$5(r)&&(u=!!r.leading,a=(p="maxWait"in r)?nativeMax(toNumber(r.maxWait)||0,t):a,$="trailing"in r?!!r.trailing:$),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},g.flush=function(){return void 0===s?i:h(now$6())},g}function isObject$5(e){var t=_typeof(e);return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==_typeof(e)}function isSymbol(e){return"symbol"==_typeof(e)||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$5(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$5(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(_sliceInstanceProperty(e).call(e,2),r?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_debounce=debounce,debounce$1=getDefaultExportFromCjs(lodash_debounce),event=window.VePlayer.event,Events=_objectSpread2$1(_objectSpread2$1({},event.Events),{},{TIME_SHIFT_CHANGE:"time_shift_change",REFRESH_CLICK:"refresh_click"});function RefreshIcon(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var refresh="",Plugin$3=window.VePlayer.Plugin,Sniffer$1=window.VePlayer.Sniffer,XGEvents=window.VePlayer.XGEvents,POSITIONS$1=Plugin$3.POSITIONS,Refresh=function(e){_inherits(r,Plugin$3);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass$1(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:RefreshIcon,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(Events.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry();t.once(XGEvents.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=debounce$1(_bindInstanceProperty(e=this._handleRefresh).call(e,this),200);var t="mobile"===Sniffer$1.device?"touchend":"click";_bindInstanceProperty(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:POSITIONS$1.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(),defineProperty$2=defineProperty$3,_Object$defineProperty=getDefaultExportFromCjs(defineProperty$2),keys3=keys$1,_Object$keys=getDefaultExportFromCjs(keys3),getOwnPropertySymbols2=getOwnPropertySymbols$1,_Object$getOwnPropertySymbols=getDefaultExportFromCjs(getOwnPropertySymbols2),filter2=filter$1,_filterInstanceProperty=getDefaultExportFromCjs(filter2),getOwnPropertyDescriptor$1=getOwnPropertyDescriptor$2,_Object$getOwnPropertyDescriptor=getDefaultExportFromCjs(getOwnPropertyDescriptor$1),forEach2=forEach$1,_forEachInstanceProperty=getDefaultExportFromCjs(forEach2),getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,_Object$getOwnPropertyDescriptors=getDefaultExportFromCjs(getOwnPropertyDescriptors2),defineProperties4=defineProperties$1,_Object$defineProperties=getDefaultExportFromCjs(defineProperties4),indexOf2=indexOf$1,_indexOfInstanceProperty=getDefaultExportFromCjs(indexOf2),$$g=_export,uncurryThis$8=functionUncurryThis,$Date=Date,thisTimeValue=uncurryThis$8($Date.prototype.getTime);$$g({target:"Date",stat:!0},{now:function(){return thisTimeValue(new $Date)}});var path$9=path$u,now$5=path$9.Date.now,parent$K=now$5,now$4=parent$K,parent$J=now$4,now$3=parent$J,parent$I=now$3,now$2=parent$I,now$1=now$2,now3=now$1,_Date$now=getDefaultExportFromCjs(now3),fails$9=fails$z,wellKnownSymbol$3=wellKnownSymbol$q,DESCRIPTORS$3=descriptors,IS_PURE=isPure,ITERATOR$2=wellKnownSymbol$3("iterator"),urlConstructorDetection=!fails$9((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE&&!e.toJSON||!t.size&&(IS_PURE||!DESCRIPTORS$3)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$2]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),defineBuiltIn$2=defineBuiltIn$8,defineBuiltIns$1=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn$2(e,n,t[n],r);return e},arraySlice$1=arraySliceSimple,floor$2=Math.floor,mergeSort=function(e,t){var r=e.length,n=floor$2(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$1(e,0,n),t),mergeSort(arraySlice$1(e,n),t),t)},insertionSort=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},merge=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},arraySort$1=mergeSort,$$f=_export,global$3=global$q,call$1=functionCall,uncurryThis$7=functionUncurryThis,DESCRIPTORS$2=descriptors,USE_NATIVE_URL$2=urlConstructorDetection,defineBuiltIn$1=defineBuiltIn$8,defineBuiltInAccessor$1=defineBuiltInAccessor$4,defineBuiltIns=defineBuiltIns$1,setToStringTag$1=setToStringTag$8,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule$1=internalState,anInstance$1=anInstance$3,isCallable=isCallable$m,hasOwn$2=hasOwnProperty_1,bind$1=functionBindContext,classof$2=classof$c,anObject=anObject$e,isObject$4=isObject$k,$toString$1=toString$c,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$8,getIterator=getIterator$3,getIteratorMethod$1=getIteratorMethod$a,validateArgumentsLength$2=validateArgumentsLength$5,wellKnownSymbol$2=wellKnownSymbol$q,arraySort=arraySort$1,ITERATOR$1=wellKnownSymbol$2("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor5=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){if(!DESCRIPTORS$2)return global$3[e];var t=getOwnPropertyDescriptor5(global$3,e);return t&&t.value},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$3.RegExp,TypeError$2=global$3.TypeError,decodeURIComponent$1=global$3.decodeURIComponent,encodeURIComponent$1=global$3.encodeURIComponent,charAt$2=uncurryThis$7("".charAt),join$2=uncurryThis$7([].join),push$2=uncurryThis$7([].push),replace$2=uncurryThis$7("".replace),shift$1=uncurryThis$7([].shift),splice$7=uncurryThis$7([].splice),split$2=uncurryThis$7("".split),stringSlice$2=uncurryThis$7("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent$1(e)}catch(t){return e}},deserialize=function(e){var t=replace$2(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace$2(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace$2(encodeURIComponent$1(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor((function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$4(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$2(e,0)?stringSlice$2(e,1):e:$toString$1(e)))};URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,i,s,l=getIteratorMethod$1(e);if(l)for(r=(t=getIterator(e,l)).next;!(n=call$1(r,t)).done;){if(a=(o=getIterator(anObject(n.value))).next,(i=call$1(a,o)).done||(s=call$1(a,o)).done||!call$1(a,o).done)throw TypeError$2("Expected sequence with length 2");push$2(this.entries,{key:$toString$1(i.value),value:$toString$1(s.value)})}else for(var c in e)hasOwn$2(e,c)&&push$2(this.entries,{key:c,value:$toString$1(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=split$2(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split$2(t,"="),push$2(this.entries,{key:deserialize(shift$1(r)),value:deserialize(join$2(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push$2(r,serialize(e.key)+"="+serialize(e.value));return join$2(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function(){anInstance$1(this,URLSearchParamsPrototype);var e=setInternalState$1(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$2||(this.length=e.entries.length)},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$2(arguments.length,2);var r=getInternalParamsState(this);push$2(r.entries,{key:$toString$1(e),value:$toString$1(t)}),DESCRIPTORS$2||this.length++,r.updateURL()},delete:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,n=$toString$1(e),o=0;o<r.length;)r[o].key===n?splice$7(r,o,1):o++;DESCRIPTORS$2||(this.length=r.length),t.updateURL()},get:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push$2(n,t[o].value);return n},has:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$2(arguments.length,1);for(var r,n=getInternalParamsState(this),o=n.entries,a=!1,i=$toString$1(e),s=$toString$1(t),l=0;l<o.length;l++)(r=o[l]).key===i&&(a?splice$7(o,l--,1):(a=!0,r.value=s));a||push$2(o,{key:i,value:s}),DESCRIPTORS$2||(this.length=o.length),n.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,n=bind$1(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$1(URLSearchParamsPrototype,ITERATOR$1,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$1(URLSearchParamsPrototype,"toString",(function(){return getInternalParamsState(this).serialize()}),{enumerable:!0}),DESCRIPTORS$2&&defineBuiltInAccessor$1(URLSearchParamsPrototype,"size",{get:function(){return getInternalParamsState(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$f({global:!0,constructor:!0,forced:!USE_NATIVE_URL$2},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL$2&&isCallable(Headers)){var headersHas=uncurryThis$7(HeadersPrototype.has),headersSet=uncurryThis$7(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$4(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$1(e,{body:createPropertyDescriptor(0,$toString$1(r)),headers:createPropertyDescriptor(0,t)})}return e};if(isCallable(nativeFetch)&&$$f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$f({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var web_urlSearchParams_constructor={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},path$8=path$u,urlSearchParams$5=path$8.URLSearchParams,parent$H=urlSearchParams$5,urlSearchParams$4=parent$H,parent$G=urlSearchParams$4,urlSearchParams$3=parent$G,parent$F=urlSearchParams$3,urlSearchParams$2=parent$F,urlSearchParams$1=urlSearchParams$2,urlSearchParams=urlSearchParams$1,_URLSearchParams=getDefaultExportFromCjs(urlSearchParams),isObject$3=isObject$k,classof$1=classofRaw$2,wellKnownSymbol$1=wellKnownSymbol$q,MATCH$1=wellKnownSymbol$1("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1(e))},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$1("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$q,MATCH=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH]=!1,"/./"[e](t)}catch(e){}}return!1},$$e=_export,uncurryThis$6=functionUncurryThisClause,toLength=toLength$2,toString$3=toString$c,notARegExp$1=notARegexp,requireObjectCoercible$1=requireObjectCoercible$6,correctIsRegExpLogic$1=correctIsRegexpLogic,nativeStartsWith=uncurryThis$6("".startsWith),stringSlice$1=uncurryThis$6("".slice),min$2=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic$1("startsWith");$$e({target:"String",proto:!0,forced:!CORRECT_IS_REGEXP_LOGIC},{startsWith:function(e){var t=toString$3(requireObjectCoercible$1(this));notARegExp$1(e);var r=toLength(min$2(arguments.length>1?arguments[1]:void 0,t.length)),n=toString$3(e);return nativeStartsWith?nativeStartsWith(t,n,r):stringSlice$1(t,r,r+n.length)===n}});var entryVirtual$6=entryVirtual$f,startsWith$6=entryVirtual$6("String").startsWith,isPrototypeOf$5=objectIsPrototypeOf,method$4=startsWith$6,StringPrototype$2=String.prototype,startsWith$5=function(e){var t=e.startsWith;return"string"==typeof e||e===StringPrototype$2||isPrototypeOf$5(StringPrototype$2,e)&&t===StringPrototype$2.startsWith?method$4:t},parent$E=startsWith$5,startsWith$4=parent$E,parent$D=startsWith$4,startsWith$3=parent$D,parent$C=startsWith$3,startsWith$2=parent$C,startsWith$1=startsWith$2,startsWith2=startsWith$1,_startsWithInstanceProperty=getDefaultExportFromCjs(startsWith2),$$d=_export,parseInt$2=numberParseInt;$$d({target:"Number",stat:!0,forced:Number.parseInt!=parseInt$2},{parseInt:parseInt$2});var path$7=path$u,_parseInt$5=path$7.Number.parseInt,parent$B=_parseInt$5,_parseInt$4=parent$B,parent$A=_parseInt$4,_parseInt$3=parent$A,parent$z=_parseInt$3,_parseInt$2=parent$z,_parseInt$1=_parseInt$2,_parseInt=_parseInt$1,_Number$parseInt=getDefaultExportFromCjs(_parseInt),DESCRIPTORS$1=descriptors,uncurryThis$5=functionUncurryThis,call=functionCall,fails$8=fails$z,objectKeys=objectKeys$3,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$b,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$1=Object.defineProperty,concat2=uncurryThis$5([].concat),objectAssign=!$assign||fails$8((function(){if(DESCRIPTORS$1&&1!==$assign({b:1},$assign(defineProperty$1({},"a",{enumerable:!0,get:function(){defineProperty$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign({},e)[r]||objectKeys($assign({},t)).join("")!=n}))?function(e,t){for(var r=toObject$1(e),n=arguments.length,o=1,a=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n>o;)for(var s,l=IndexedObject(arguments[o++]),c=a?concat2(objectKeys(l),a(l)):objectKeys(l),u=c.length,p=0;u>p;)s=c[p++],DESCRIPTORS$1&&!call(i,l,s)||(r[s]=l[s]);return r}:$assign,$$c=_export,assign$7=objectAssign;$$c({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$7},{assign:assign$7});var path$6=path$u,assign$6=path$6.Object.assign,parent$y=assign$6,assign$5=parent$y,parent$x=assign$5,assign$4=parent$x,parent$w=assign$4,assign$3=parent$w,assign$2=assign$3,assign$1=assign$2,_Object$assign=getDefaultExportFromCjs(assign$1),$$b=_export,$includes=arrayIncludes.includes,fails$7=fails$z,BROKEN_ON_SPARSE=fails$7((function(){return!Array(1).includes()}));$$b({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$5=entryVirtual$f,includes$7=entryVirtual$5("Array").includes,$$a=_export,uncurryThis$4=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$6,toString$2=toString$c,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$4("".indexOf);$$a({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$2(requireObjectCoercible(this)),toString$2(notARegExp(e)),arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$f,includes$6=entryVirtual$4("String").includes,isPrototypeOf$4=objectIsPrototypeOf,arrayMethod=includes$7,stringMethod=includes$6,ArrayPrototype$3=Array.prototype,StringPrototype$1=String.prototype,includes$5=function(e){var t=e.includes;return e===ArrayPrototype$3||isPrototypeOf$4(ArrayPrototype$3,e)&&t===ArrayPrototype$3.includes?arrayMethod:"string"==typeof e||e===StringPrototype$1||isPrototypeOf$4(StringPrototype$1,e)&&t===StringPrototype$1.includes?stringMethod:t},parent$v=includes$5,includes$4=parent$v,parent$u=includes$4,includes$3=parent$u,parent$t=includes$3,includes$2=parent$t,includes$1=includes$2,includes3=includes$1,_includesInstanceProperty=getDefaultExportFromCjs(includes3),path$5=path$u,apply$1=functionApply;path$5.JSON||(path$5.JSON={stringify:JSON.stringify});var stringify$5=function(e,t,r){return apply$1(path$5.JSON.stringify,null,arguments)},parent$s=stringify$5,stringify$4=parent$s,parent$r=stringify$4,stringify$3=parent$r,parent$q=stringify$3,stringify$2=parent$q,stringify$1=stringify$2,stringify2=stringify$1,_JSON$stringify=getDefaultExportFromCjs(stringify2),apply=functionApply,toIndexedObject=toIndexedObject$b,toIntegerOrInfinity$1=toIntegerOrInfinity$5,lengthOfArrayLike$1=lengthOfArrayLike$a,arrayMethodIsStrict=arrayMethodIsStrict$3,min$1=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("lastIndexOf"),FORCED$1=NEGATIVE_ZERO||!STRICT_METHOD,arrayLastIndexOf=FORCED$1?function(e){if(NEGATIVE_ZERO)return apply($lastIndexOf,this,arguments)||0;var t=toIndexedObject(this),r=lengthOfArrayLike$1(t),n=r-1;for(arguments.length>1&&(n=min$1(n,toIntegerOrInfinity$1(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:$lastIndexOf,$$9=_export,lastIndexOf$7=arrayLastIndexOf;$$9({target:"Array",proto:!0,forced:arrayLastIndexOf!==[].lastIndexOf},{lastIndexOf:arrayLastIndexOf});var entryVirtual$3=entryVirtual$f,lastIndexOf$6=entryVirtual$3("Array").lastIndexOf,isPrototypeOf$3=objectIsPrototypeOf,method$3=lastIndexOf$6,ArrayPrototype$2=Array.prototype,lastIndexOf$5=function(e){var t=e.lastIndexOf;return e===ArrayPrototype$2||isPrototypeOf$3(ArrayPrototype$2,e)&&t===ArrayPrototype$2.lastIndexOf?method$3:t},parent$p=lastIndexOf$5,lastIndexOf$4=parent$p,parent$o=lastIndexOf$4,lastIndexOf$3=parent$o,parent$n=lastIndexOf$3,lastIndexOf$2=parent$n,lastIndexOf$1=lastIndexOf$2,lastIndexOf2=lastIndexOf$1,_lastIndexOfInstanceProperty=getDefaultExportFromCjs(lastIndexOf2),global$2=global$q,fails$6=fails$z,uncurryThis$3=functionUncurryThis,toString$1=toString$c,trim$7=stringTrim.trim,whitespaces$1=whitespaces$4,charAt$1=uncurryThis$3("".charAt),$parseFloat$1=global$2.parseFloat,Symbol$1=global$2.Symbol,ITERATOR=Symbol$1&&Symbol$1.iterator,FORCED=1/$parseFloat$1(whitespaces$1+"-0")!=-1/0||ITERATOR&&!fails$6((function(){$parseFloat$1(Object(ITERATOR))})),numberParseFloat=FORCED?function(e){var t=trim$7(toString$1(e)),r=$parseFloat$1(t);return 0===r&&"-"==charAt$1(t,0)?-0:r}:$parseFloat$1,$$8=_export,parseFloat$1=numberParseFloat;$$8({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$1},{parseFloat:parseFloat$1});var path$4=path$u,_parseFloat$c=path$4.Number.parseFloat,parent$m=_parseFloat$c,_parseFloat$b=parent$m,parent$l=_parseFloat$b,_parseFloat$a=parent$l,parent$k=_parseFloat$a,_parseFloat$9=parent$k,_parseFloat$8=_parseFloat$9,_parseFloat$7=_parseFloat$8,_Number$parseFloat=getDefaultExportFromCjs(_parseFloat$7),path$3=path$u,setInterval$4=path$3.setInterval,parent$j=setInterval$4,setInterval$3=parent$j,parent$i=setInterval$3,setInterval$2=parent$i,setInterval$1=setInterval$2,setInterval=setInterval$1,_setInterval=getDefaultExportFromCjs(setInterval);function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys2(e,t){var r=_Object$keys(e);if(_Object$getOwnPropertySymbols){var n=_Object$getOwnPropertySymbols(e);t&&(n=_filterInstanceProperty(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)_forEachInstanceProperty(r=ownKeys2(Object(n),!0)).call(r,(function(t){_defineProperty(e,t,n[t])}));else if(_Object$getOwnPropertyDescriptors)_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(n));else{var o;_forEachInstanceProperty(o=ownKeys2(Object(n))).call(o,(function(t){_Object$defineProperty(e,t,_Object$getOwnPropertyDescriptor(n,t))}))}}return e}var device_id_key="xgplayer_device_id",user_id_key="xgplayer_user_id",getCookie=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var o,a=t[r];if(_indexOfInstanceProperty(o=t[r]).call(o,e)>=0)return a.split("=")[1]||null}},genRandomID$1=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},getDeviceID$1=function(){var e=getCookie(device_id_key);if(e)return e;var t=genRandomID$1(11);return document.cookie=device_id_key+"="+t+";max-age=31536000;path=/",t},getUserId$1=function(){var e=getCookie(user_id_key);if(e)return e;var t=genRandomID$1(12);return document.cookie=user_id_key+"="+t+";max-age=31536000;path=/",t},getLogId=function(){return genRandomID$1(12)};function getBrowser(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:_indexOfInstanceProperty(e).call(e,"chrome")>-1&&_indexOfInstanceProperty(e).call(e,"safari")>-1,Firefox:_indexOfInstanceProperty(e).call(e,"firefox")>-1,Opera:_indexOfInstanceProperty(e).call(e,"opera")>-1,Safari:_indexOfInstanceProperty(e).call(e,"safari")>-1&&-1==_indexOfInstanceProperty(e).call(e,"chrome"),Edge:_indexOfInstanceProperty(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var o="";if("IE"===n)o=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var a in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[a].type&&(n="360");var i=e.match(/chrome\/([\d.]+)/);o=i?i[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);o=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);o=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);o=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);o=u?u[1]:"-1"}else if("QQBrowser"===n){var p=e.match(/qqbrowser\/([\d.]+)/);o=p?p[1]:"-1"}t.type=n,t.versions=_parseInt$7(o)}return t}var sniffer={get device(){return sniffer.os.isPc?"pc":"mobile"},get browser(){var e=getBrowser();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),o=/(?:Firefox)/.test(e),a=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),i=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:i,isAndroid:n,isPc:!(i||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:o}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function getCurrentTime(){return _Date$now()}function getPlayFormat(e){var t="unknown";return"string"!=typeof e?t:_indexOfInstanceProperty(e).call(e,".flv")>-1?"flv":_indexOfInstanceProperty(e).call(e,".m3u8")>-1?"m3u8":_indexOfInstanceProperty(e).call(e,".mp4")>-1?"mp4":_indexOfInstanceProperty(e).call(e,".sdp")>-1?"rts":t}function isCodecSupport(e){return"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+e):0}function getUrlQuery(e,t,r){var n=new _URLSearchParams(e.split("?")[1]);return n.get(t)||n.get(r)}function getDeviceInfo(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(e){}return e}function getPlayerCore(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.rtm)return e.plugins.rtm}return null}function getDefaultOptions(e){return{device_id:e.device_id||getDeviceID$1(),user_id:e.user_id||getUserId$1(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}function getDefaultLog(){return{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}}}function getCommonLog(e){var t,r=e.player,n=r.config.mediaType;return _objectSpread2({project_key:e.project_key,live_sdk_version:getPlayerCore(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.7",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:getLogId(),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+_Date$now(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:sniffer.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:_Date$now(),play_current_time:0,cdn_play_url:r.config.url&&_startsWithInstanceProperty(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:getPlayFormat(r.config.url),codec_support:-1},e.ext)}function Utf8ArrayToStr(e){var t,r,n,o,a,i;for(t="",n=e.length,r=0;r<n;)switch((o=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(o);break;case 12:case 13:a=e[r++],t+=String.fromCharCode((31&o)<<6|63&a);break;case 14:a=e[r++],i=e[r++],t+=String.fromCharCode((15&o)<<12|(63&a)<<6|(63&i)<<0)}return t}var getResourceTiming=function(e){var t,r=_filterInstanceProperty(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],o=r[r.length-1];return{dns_parse_time:_Number$parseInt(n.domainLookupEnd-n.domainLookupStart),redirect:_Number$parseInt(n.redirectEnd-n.redirectStart),ttfb:_Number$parseInt(o.responseStart-o.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}},video_error={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Manage=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=_bindInstanceProperty(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}_createClass(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),this.core&&this.core.loader&&this.core.loader.finnalUrl?e.cdn_play_url=this.core.loader.finnalUrl:e.cdn_play_url=t&&_startsWithInstanceProperty(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=getUrlQuery(e.cdn_play_url,"_session_id","session_id"),e.play_format=getPlayFormat(e.cdn_play_url),e.timestamp=getCurrentTime();var r=getDeviceInfo(),n=r.cpu_core_number,o=r.memory_usage,a=r.network_downlink;e.cpu_core_number=n,e.memory_usage=o,e.network_downlink=a,_Object$assign(e,_objectSpread2({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,_objectSpread2({},e)))},e}(),navgatorOnlineSupported=function(){return void 0!==navigator.onLine},navigatorConnectionType=function(){var e=navigator.connection;return e&&(e.effectiveType||e.type)},getNetStat=function(){return navgatorOnlineSupported()?navigator.onLine?navigatorConnectionType()||sniffer.device:"none":"unknown"},videoEvts=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],LoggerControl=function(){function e(e){var t,r;this.options=e,this.logger=new XgLiveLogger(e),this.restart=_bindInstanceProperty(t=this.restart).call(t,this),this.bindUrlChange(),_includesInstanceProperty(r=sniffer.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new XgLiveLogger(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=_Object$assign(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),XgLiveLogger=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=_Object$assign({},e,getDefaultOptions(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?_Date$now()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Manage(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}_createClass(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return _Date$now()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=_Date$now()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,o,a,i,s,l,c,u,p,$,f,y,d;this.handlePlayerComlete=_bindInstanceProperty(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=_bindInstanceProperty(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=_bindInstanceProperty(r=this.destroyFunc).call(r,this),this.handleUserLeave=_bindInstanceProperty(n=this.handleUserLeave).call(n,this),this.handlePlayerError=_bindInstanceProperty(o=this.handlePlayerError).call(o,this),this.handlePlayerReady=_bindInstanceProperty(a=this.handlePlayerReady).call(a,this),this.handlePlayerWaiting=_bindInstanceProperty(i=this.handlePlayerWaiting).call(i,this),this.handleAVUnsync=_bindInstanceProperty(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=_bindInstanceProperty(l=this.handlePlayerPause).call(l,this),this.handleTTFB=_bindInstanceProperty(c=this.handleTTFB).call(c,this),this.handleUrlChange=_bindInstanceProperty(u=this.handleUrlChange).call(u,this),this.handleKeyframe=_bindInstanceProperty(p=this.handleKeyframe).call(p,this),this.handleSourceOpen=_bindInstanceProperty($=this.handleSourceOpen).call($,this),this.handleBufferAppend=_bindInstanceProperty(f=this.handleBufferAppend).call(f,this),this.handleCoreEvent=_bindInstanceProperty(y=this.handleCoreEvent).call(y,this),this.handleDegrade=_bindInstanceProperty(d=this.handleDegrade).call(d,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=_objectSpread2({os:sniffer.operation_os},getCommonLog(t)),this.log=_Object$assign({},getDefaultLog());var o=this;for(var a in this.log){var i=function(t){_Object$defineProperty(e.log[a],t,{get:function(){return null==this["_"+t]?o.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)i(s);n&&_Object$defineProperty(this.log[a],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?_sliceInstanceProperty(e).call(e,0,25e4):""}return""},enumerable:!0}),_Object$defineProperty(this.log[a],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),_Object$defineProperty(this.log[a],"access",{get:function(){return getNetStat()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=getPlayerCore(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=getCurrentTime(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===sniffer.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;_forEachInstanceProperty(videoEvts).call(videoEvts,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,o=e.type,a=e.meta,i=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(o,a);break;case"core.sei":this.handleSEIParsed(i);break;case"core.lowdecode":this.commonParams.is_wasm&&(_Object$assign(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(_Object$assign({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,_sliceInstanceProperty(Array.prototype).call(e,0))}catch(e){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(_Object$assign(this.log.play_url_change,{url:e,timestamp:getCurrentTime()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=getCurrentTime(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;_Object$assign(this.log.play_error,_objectSpread2({timestamp:getCurrentTime(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:_JSON$stringify(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(_Object$assign(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=getCurrentTime()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var o=this.log.play_loadstream;o.timestamp=getCurrentTime(),o.loadstream_url=t,o.offersdp=r,o.sessionId=n,this.logmanager.push(o)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=getCurrentTime(),_Object$assign(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var o=Utf8ArrayToStr(e.content);o=_sliceInstanceProperty(o).call(o,_indexOfInstanceProperty(o).call(o,"{"),_lastIndexOfInstanceProperty(o).call(o,"}")+1);try{var a=JSON.parse(o),i=this.getPlayerBuffer()+this.ntpTime-a.ts;r.sei_delay=i,r.sei_source=a.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=i,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(e){}}},t.handleMetaDataLoaded=function(e,t){this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=getCurrentTime(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=isCodecSupport(t.codec))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){_Object$assign(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(_Object$assign({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=getPlayerCore(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=_Number$parseInt(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(e){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=_Number$parseFloat(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=_Number$parseFloat(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,o=n&&n.pc,a={};return o?_Promise.resolve(o.getStats()).then((function(t){return _forEachInstanceProperty(t).call(t,(function(t){var n=t.type,o=t.mediaType,i=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,p=t.timestamp,$=t.framesDropped,f=t.keyFramesDecoded,y=t.totalDecodeTime,d=t.framesDecoded,h=t.frameHeight,g=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,b=t.jitterBufferEmittedCount,S=t.jitter,O=t.nackCount,v=t.packetsLost,P=t.pliCount,I=t.totalSamplesReceived,E=t.concealedSamples,T=t.currentRoundTripTime,w=t.decoderImplementation,R=t.mimeType,C=t.freezeCount,A=t.totalFreezesDuration,j=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===o?(a.audio_bytes_received=i-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=i,a.audio_packets_lost=v-(r.cacheRtcStats.audioPacketsLost||0),a.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=v,r.cacheRtcStats.audioPacketsReceived=s,a.audio_level=l,a.concealment_event=c,a.audio_fraction_lost=a.audio_packets_lost/a.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(a.audio_rec_sample_rate=(I-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=I,a.concealed_samples=E,a.total_samples_received=I):(a.frames_dropped=$,a.iframes_decoded=f,a.video_bytes_received=i-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=i,a.video_dec_time=y,a.video_decoded_delay_ms=a.video_dec_elapse/d,a.video_frame_height=h,a.video_frame_width=g,void 0!==r.cacheRtcStats.framesDecoded&&(a.video_decode_framerate=(d-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=d,void 0!==r.cacheRtcStats.framesReceived&&(a.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(a.freeze_count=C-r.cacheRtcStats.freezeCount,a.freeze_duration=A-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=C,r.cacheRtcStats.totalFreezesDuration=A,r.cacheRtcStats.framesReceived=m,a.total_pauses_duration=j,a.video_jb_delay=_/b*1e3,a.video_jitter=1e3*S,a.video_nack_count=O,a.video_packets_lost=v-(r.cacheRtcStats.videoPacketsLost||0),a.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),a.video_fraction_lost=a.video_packets_lost/a.video_packets_received,r.cacheRtcStats.videoPacketsLost=v,r.cacheRtcStats.videoPacketsReceived=s,a.video_pli_count=P,a.decoder_name=w);break;case"remote-outbound-rtp":a.e2e_delay_ms=p-u;break;case"track":void 0!==g&&(a.video_frame_width=g,a.video_frame_height=h);break;case"candidate-pair":a.rtt=1e3*T;break;case"codec":_includesInstanceProperty(R).call(R,"video")?a.video_codec=R:a.audio_codec=o}a.total_delay=a.e2e_delay_ms+(a.video_decoded_delay_ms||0)+(a.video_jb_delay||0)})),_Object$assign(r.log.playing,{video_download_size:a.video_bytes_received,decode_fps:a.video_decode_framerate,sei_delay:a.total_delay,sei_network_delay:a.e2e_delay_ms,width:a.video_frame_width,height:a.video_frame_height,current_speed:(a.audio_bytes_received+a.video_bytes_received)/e}),a})):_Promise.resolve(a)}catch(e){return _Promise.reject(e)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<getCurrentTime()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,getCurrentTime()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var o=getCurrentTime(),a=o-n,i=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),_Object$assign(t.log.playing,_objectSpread2({timestamp:o,stop_time:o,duration:e?0:a/1e3,stall_time_per_100sec:i/a*100,stall_count_per_100sec:1e3*s/a*100,stall_count:s,stall_time:i,play_current_time:t.player.currentTime},t.videoSize)),_Promise.resolve(t.getRtcStats(a,e)).then((function(r){t.logmanager.push(_Object$assign({},t.log.playing,_objectSpread2({play_time:e?0:a},r)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(e){return _Promise.reject(e)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return _Promise.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return _Promise.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=_setInterval((function(){try{var r=function(){if(Math.abs(_Date$now()-e.log.playing.timestamp-t)<100||_Date$now()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return _Promise.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return _Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return _Promise.reject(e)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(e){return _Promise.reject(e)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=getCurrentTime(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=getCurrentTime(),this.playResultTimer=_setTimeout((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=getCurrentTime(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=getCurrentTime(),this.log.stall_start.stall_start_time=getCurrentTime(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),_Object$assign(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=_setTimeout((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=getCurrentTime();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=getCurrentTime();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=getCurrentTime(),this.log.playing.stall_count++,_Object$assign(this.log.stall,_objectSpread2({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;_Object$assign(this.log.play_error,_objectSpread2(_objectSpread2({timestamp:getCurrentTime()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=video_error[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=getCurrentTime()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=video_error[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&window.removeEventListener("pagehide",this.handleUserLeave),_forEachInstanceProperty(videoEvts).call(videoEvts,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null))},t.handleUserLeave=function(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(e){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(e){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=getCurrentTime();_Object$assign(this.log.first_frame,_objectSpread2({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=getResourceTiming(this._url),t=getCurrentTime();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;_Object$assign(r,_objectSpread2({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,_Object$assign(r,_objectSpread2({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=getCurrentTime(),_Object$assign(r,_objectSpread2({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),symbol=symbol$1,_Symbol=getDefaultExportFromCjs(symbol),getIteratorMethod=getIteratorMethod$3,_getIteratorMethod=getDefaultExportFromCjs(getIteratorMethod),tryToString=tryToString$6,$TypeError=TypeError,deletePropertyOrThrow$1=function(e,t){if(!delete e[t])throw $TypeError("Cannot delete property "+tryToString(t)+" of "+tryToString(e))},$$7=_export,toObject=toObject$b,toAbsoluteIndex=toAbsoluteIndex$4,toIntegerOrInfinity=toIntegerOrInfinity$5,lengthOfArrayLike=lengthOfArrayLike$a,setArrayLength=arraySetLength,doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$3,createProperty=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$1,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("splice"),max=Math.max,min=Math.min;$$7({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{splice:function(e,t){var r,n,o,a,i,s,l=toObject(this),c=lengthOfArrayLike(l),u=toAbsoluteIndex(e,c),p=arguments.length;for(0===p?r=n=0:1===p?(r=0,n=c-u):(r=p-2,n=min(max(toIntegerOrInfinity(t),0),c-u)),doesNotExceedSafeInteger(c+r-n),o=arraySpeciesCreate(l,n),a=0;a<n;a++)(i=u+a)in l&&createProperty(o,a,l[i]);if(o.length=n,r<n){for(a=u;a<c-n;a++)s=a+r,(i=a+n)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=c;a>c-n+r;a--)deletePropertyOrThrow(l,a-1)}else if(r>n)for(a=c-n;a>u;a--)s=a+r-1,(i=a+n-1)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=0;a<r;a++)l[a+u]=arguments[a+2];return setArrayLength(l,c-n+r),o}});var entryVirtual$2=entryVirtual$f,splice$6=entryVirtual$2("Array").splice,isPrototypeOf$2=objectIsPrototypeOf,method$2=splice$6,ArrayPrototype$1=Array.prototype,splice$5=function(e){var t=e.splice;return e===ArrayPrototype$1||isPrototypeOf$2(ArrayPrototype$1,e)&&t===ArrayPrototype$1.splice?method$2:t},parent$h=splice$5,splice$4=parent$h,parent$g=splice$4,splice$3=parent$g,parent$f=splice$3,splice$2=parent$f,splice$1=splice$2,splice2=splice$1,_spliceInstanceProperty=getDefaultExportFromCjs(splice2),$$6=_export,$parseFloat=numberParseFloat;$$6({global:!0,forced:parseFloat!=numberParseFloat},{parseFloat:numberParseFloat});var path$2=path$u,_parseFloat$6=path$2.parseFloat,parent$e=_parseFloat$6,_parseFloat$5=parent$e,parent$d=_parseFloat$5,_parseFloat$4=parent$d,parent$c=_parseFloat$4,_parseFloat$3=parent$c,_parseFloat$2=_parseFloat$3,_parseFloat=_parseFloat$2,_parseFloat$1=getDefaultExportFromCjs(_parseFloat),PROPER_FUNCTION_NAME=functionName.PROPER,fails$5=fails$z,whitespaces=whitespaces$4,non="​…᠎",stringTrimForced=function(e){return fails$5((function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e}))},$$5=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$5({target:"String",proto:!0,forced:forcedStringTrimMethod("trim")},{trim:function(){return $trim(this)}});var entryVirtual$1=entryVirtual$f,trim$6=entryVirtual$1("String").trim,isPrototypeOf$1=objectIsPrototypeOf,method$1=trim$6,StringPrototype=String.prototype,trim$5=function(e){var t=e.trim;return"string"==typeof e||e===StringPrototype||isPrototypeOf$1(StringPrototype,e)&&t===StringPrototype.trim?method$1:t},parent$b=trim$5,trim$4=parent$b,parent$a=trim$4,trim$3=parent$a,parent$9=trim$3,trim$2=parent$9,trim$1=trim$2,trim2=trim$1,_trimInstanceProperty=getDefaultExportFromCjs(trim2),create4=create$5,_Object$create=getDefaultExportFromCjs(create4),fails$4=fails$z,freezing=!fails$4((function(){return Object.isExtensible(Object.preventExtensions({}))})),internalMetadata={exports:{}},fails$3=fails$z,arrayBufferNonExtensible=fails$3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$2=fails$z,isObject$2=isObject$k,classof=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES$1=fails$2((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES$1||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$2(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,$$4=_export,uncurryThis$2=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$1=isObject$k,hasOwn$1=hasOwnProperty_1,defineProperty5=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible2=objectIsExtensible,uid=uid$4,FREEZING$1=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty5(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey=function(e,t){if(!isObject$1(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn$1(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn$1(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze$1=function(e){return FREEZING$1&&REQUIRED&&isExtensible2(e)&&!hasOwn$1(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis$2([].splice),r={};r[METADATA]=1,e(r).length&&(getOwnPropertyNamesModule.f=function(r){for(var n=e(r),o=0,a=n.length;o<a;o++)if(n[o]===METADATA){t(n,o,1);break}return n},$$4({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey,getWeakData:getWeakData,onFreeze:onFreeze$1};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,$$3=_export,FREEZING=freezing,fails$1=fails$z,isObject=isObject$k,onFreeze=internalMetadataExports.onFreeze,$freeze=Object.freeze,FAILS_ON_PRIMITIVES=fails$1((function(){$freeze(1)}));$$3({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES,sham:!FREEZING},{freeze:function(e){return $freeze&&isObject(e)?$freeze(onFreeze(e)):e}});var path$1=path$u,freeze$5=path$1.Object.freeze,parent$8=freeze$5,freeze$4=parent$8,parent$7=freeze$4,freeze$3=parent$7,parent$6=freeze$3,freeze$2=parent$6,freeze$1=freeze$2,freeze2=freeze$1,_Object$freeze=getDefaultExportFromCjs(freeze2),$$2=_export,$map=arrayIteration.map,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("map");$$2({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{map:function(e){return $map(this,e,arguments.length>1?arguments[1]:void 0)}});var _context6,entryVirtual=entryVirtual$f,map$6=entryVirtual("Array").map,isPrototypeOf=objectIsPrototypeOf,method=map$6,ArrayPrototype=Array.prototype,map$5=function(e){var t=e.map;return e===ArrayPrototype||isPrototypeOf(ArrayPrototype,e)&&t===ArrayPrototype.map?method:t},parent$5=map$5,map$4=parent$5,parent$4=map$4,map$3=parent$4,parent$3=map$3,map$2=parent$3,map$1=map$2,map2=map$1,_mapInstanceProperty=getDefaultExportFromCjs(map2),isArray2=isArray$1,_Array$isArray=getDefaultExportFromCjs(isArray2),_e=function(){return _e=_Object$assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_e.apply(this,arguments)};function t(e,t){var r="function"==typeof _Symbol&&_getIteratorMethod(e);if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function i$1(){for(var e=[],r=0;r<arguments.length;r++)e=_concatInstanceProperty(e).call(e,t(arguments[r]));return e}var n,u,p,l,o=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(o){t(o),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,o=_indexOfInstanceProperty(r=this._hooks[e]).call(r,t);-1!==o&&_spliceInstanceProperty(n=this._hooks[e]).call(n,o,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==_indexOfInstanceProperty(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&_forEachInstanceProperty(r=i$1(this._hooks[e])).call(r,(function(e){try{e(t)}catch(e){}}))},e.prototype.set=function(e){var t;e&&-1===_indexOfInstanceProperty(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),r=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},s=(n=+_Date$now()+Number(_sliceInstanceProperty(_context6=""+Math.random()).call(_context6,2,8)),function(){return n+=1}),a=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,o=[];r=r<=25?r:r%25;var a=String.fromCharCode(r+97);n=e.split(a);for(var i=0;i<n.length;i++){var s=_parseInt$7(n[i],r);s=1*s^64;var l=String.fromCharCode(s);o.push(l)}return o.join("")}}(e,0,25)},c=function(e){var t=document.createElement("a");return t.href=e,t},h=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?c(r).hostname:"";!function(e){var t={};try{var r,n=c(e).search;_forEachInstanceProperty(r=(n=_sliceInstanceProperty(n).call(n,1)).split("&")).call(r,(function(e){var r,n,o=e.split("=");o.length&&(r=o[0],n=o[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(e){t[r]=n}}))}catch(e){}}(window.location.href);var o=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",a=this.browser(),i=this.os();return{browser:a.browser,browser_version:a.browser_version,platform:o,os_name:i.os_name,os_version:i.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(i.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+_parseFloat$1(this.appVersion),o=this.userAgent;return-1!==_indexOfInstanceProperty(o).call(o,"Edge")||-1!==_indexOfInstanceProperty(o).call(o,"Edg")?(r="Microsoft Edge",-1!==_indexOfInstanceProperty(o).call(o,"Edge")?(e=_indexOfInstanceProperty(o).call(o,"Edge"),n=o.substring(e+5)):(e=_indexOfInstanceProperty(o).call(o,"Edg"),n=o.substring(e+4))):-1!==(e=_indexOfInstanceProperty(o).call(o,"MSIE"))?(r="Microsoft Internet Explorer",n=o.substring(e+5)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Lark"))?(r="Lark",n=o.substring(e+5,e+11)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MetaSr"))?(r="sougoubrowser",n=o.substring(e+7,e+10)):-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")||-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")?(r="qqbrowser",-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")?(e=_indexOfInstanceProperty(o).call(o,"MQQBrowser"),n=o.substring(e+11,e+15)):-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"QQBrowser"),n=o.substring(e+10,e+17))):-1!==_indexOfInstanceProperty(o).call(o,"Chrome")?-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"360"))?(r="360browser",n=o.substring(_indexOfInstanceProperty(o).call(o,"Chrome")+7)):-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")||-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")?(-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")?(e=_indexOfInstanceProperty(o).call(o,"baidubrowser"),n=o.substring(e+13,e+16)):-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"BIDUBrowser"),n=o.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=_indexOfInstanceProperty(o).call(o,"xiaomi"))?-1!==_indexOfInstanceProperty(o).call(o,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=o.substring(e+7,e+13)):(r="xiaomi",n=o.substring(e-7,e-1)):-1!==(e=_indexOfInstanceProperty(o).call(o,"TTWebView"))?(r="TTWebView",n=o.substring(e+10,e+23)):(-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome"))||-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome")))&&(r="Chrome",n=o.substring(e+7)):-1!==_indexOfInstanceProperty(o).call(o,"Safari")?-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+10,e+16)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Safari"))&&(r="Safari",n=o.substring(e+7),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))):-1!==(e=_indexOfInstanceProperty(o).call(o,"Firefox"))?(r="Firefox",n=o.substring(e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+3,e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Opera"))&&(r="Opera",n=o.substring(e+6),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))),-1!==(t=_indexOfInstanceProperty(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var o=r[n];if(o.r.test(this.userAgent)){"Mac OS X"===(e=o.s)&&this.isNewIpad()&&(e="iOS");break}}var a,i,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?_sliceInstanceProperty(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(i=s(/Android ([\.\_\d]+)/,a=this.userAgent))||(i=s(/Android\/([\.\_\d]+)/,a)),t=i,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)_forEachInstanceProperty(r=navigator.userAgent.split(";")).call(r,(function(e){_indexOfInstanceProperty(e).call(e,"Build/")>-1&&(t=_sliceInstanceProperty(e).call(e,0,_indexOfInstanceProperty(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),o=_indexOfInstanceProperty(n).call(n,";");t=_sliceInstanceProperty(n).call(n,0,o)}}catch(e){return _trimInstanceProperty(t).call(t)}return _trimInstanceProperty(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),f=(u=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function o(t,o,a){if("undefined"!=typeof document){"number"==typeof(a=e({},n,a)).expires&&(a.expires=new Date(_Date$now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in a)a[s]&&(i+="; "+s,!0!==a[s]&&(i+="="+a[s].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+i}}return _Object$create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var a=t[o].split("="),i=_sliceInstanceProperty(a).call(a,1).join("=");try{var s=decodeURIComponent(a[0]);if(n[s]=r.read(i,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:_Object$freeze(n)},converter:{value:_Object$freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=_sliceInstanceProperty(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},u(p={exports:{}},p.exports),p.exports),d=f,g=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),m={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);localStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(e){}},getCookie:function(e,t){try{return d.get(e,{domain:t||document.domain})}catch(e){return""}},setCookie:function(e,t,r,n){try{var o=n||document.domain,a=+new Date+r;d.set(e,t,{expires:new Date(a),path:"/",domain:o})}catch(e){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},_={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);sessionStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(e){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},v=function(){function e(e,t){this._storage=t&&"session"===t?_:!e&&m.isSupportLS?m:new g}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),y={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},w=void 0,b=(new Date).getTimezoneOffset(),k=_parseInt$7(""+-b/60,10),x=60*b,O=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new h(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new v(!1,"session"),this.localStorage=new v(!1,"local");var o=this.localStorage.getItem(n);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:w,user_type:w,user_id:w,user_is_auth:w,user_is_login:w,device_id:w,web_id:w,user_unique_id_type:w},header:{app_id:w,app_name:w,app_install_id:w,install_id:w,app_package:w,app_channel:w,app_version:w,ab_version:w,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:w,traffic_type:w,client_ip:w,device_brand:w,os_api:w,access:w,language:r.language,region:w,app_language:w,app_region:w,creative_id:w,ad_id:w,campaign_id:w,log_type:w,rnd:w,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:w,city:w,timezone:k,tz_offset:x,tz_name:w,sim_region:w,carrier:w,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:w,utm_content:w,utm_source:w,utm_medium:w,utm_campaign:w,custom:{},wechat_unionid:w,wechat_openid:w}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=a(y[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;_forEachInstanceProperty(t=_Object$keys(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=_e({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=_e({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?_indexOfInstanceProperty(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(_JSON$stringify(this.envInfo[e])):JSON.parse(_JSON$stringify(this.envInfo))}catch(e){console.log("get config stringify error ")}},e}();!function(e){e.Init="init",e.Config="config",e.Start="start",e.Ready="ready",e.TokenComplete="token-complete",e.TokenStorage="token-storage",e.TokenFetch="token-fetch",e.TokenError="token-error",e.ConfigUuid="config-uuid",e.TokenChange="token-change",e.TokenReset="token-reset",e.SessionReset="session-reset",e.SessionResetTime="session-reset-time",e.Event="event",e.Events="events",e.EventNow="event-now",e.CleanEvents="clean-events",e.BeconEvent="becon-event"}(l||(l={}));var I=l,S=500,z=5005;function M(e,t,r,n,o,a,i,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){a&&a(t,z)}),c.onload=function(){if(o){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(t){e={}}o(e,t)}}},c.onerror=function(){c.abort(),a&&a(t,S)},l?c.send(t):c.send(_JSON$stringify(t))}catch(e){}}var EOF,T=4003,C=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new v(!0),this.localStorage=new v(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(I.Ready,(function(){r.reportAll(!1)})),this.collect.on(I.Event,(function(e){r.event(e)})),this.collect.on(I.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=i$1(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=_setTimeout((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(e){}},e.prototype.beconEvent=function(e){var t=i$1(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=_sliceInstanceProperty(e).call(e,r,r+this.eventLimit);var o=this.split(this.merge(n));this.send(o,t)}else o=this.split(this.merge(e)),this.send(o,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,o=r.user;n.custom=_JSON$stringify(n.custom);var a=this.configManager.get("evtParams"),i=_mapInstanceProperty(e).call(e,(function(e){try{return _Object$keys(a).length&&(e.params=_e({},a,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=_JSON$stringify(e.params),e}catch(t){return e}})),s=[];if(!_Object$keys(o).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(_JSON$stringify({events:i,user:o,header:n}));return l.local_time=Math.floor(_Date$now()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return _mapInstanceProperty(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&_forEachInstanceProperty(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,o=e,a=r.timeout,i=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,_JSON$stringify(o))||s(n,o):M(n,o,a,0,i,s,0,"",false)}catch(e){console.warn("something error, "+_JSON$stringify(e.stack))}var n,o,a,i,s}))},e}(),E=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},P=function(){var e;return _sliceInstanceProperty(e=E().replace(/-/g,"")).call(e,0,19)},A=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new v(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(I.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=P();M(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=_Date$now(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(I.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===_indexOfInstanceProperty(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),o=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===o)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)),this.collect.emit(I.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),D=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},N=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new v(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(I.SessionReset,(function(){r.resetSessionId()})),this.collect.on(I.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;_Date$now()-t>this.expireTime?e={sessionId:D(),timestamp:_Date$now()}:e.timestamp=_Date$now(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=_Date$now():t={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,t),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:D(),timestamp:_Date$now()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&_Date$now()-e.timestamp+30>=this.expireTime&&(e={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,e))},e}(),R=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new o,this.Types=I,this.adapters.fetch=M,this.adapters.storage=v}return e.prototype.init=function(e){var t,n,o=this;this.inited?console.log("init can be call only one time"):e&&r(e)?e.app_id&&"number"==typeof(n=e.app_id)&&!isNaN(n)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==_indexOfInstanceProperty(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new O(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new C,this.tokenManager=new A,this.sessionManager=new N,_Promise.all([new _Promise((function(e){o.once(I.TokenComplete,(function(){e(!0)}))})),new _Promise((function(e){o.once(I.Start,(function(){e(!0)}))}))]).then((function(){o.sdkReady=!0,o.emit(I.Ready),console.info("appid: "+e.app_id+", userInfo:"+_JSON$stringify(o.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),o.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(I.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&r(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=_e({},e);t.user_unique_id;var n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&_indexOfInstanceProperty(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof _Object$getOwnPropertySymbols){var o=0;for(n=_Object$getOwnPropertySymbols(e);o<n.length;o++)_indexOfInstanceProperty(t).call(t,n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(I.ConfigUuid,t.user_unique_id),this.configManager.set(n)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(I.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];_Array$isArray(e)?_forEachInstanceProperty(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(I.Event,n),this.emit(I.SessionResetTime))}catch(e){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(_Array$isArray(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(I.BeconEvent,r),this.emit(I.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=_sliceInstanceProperty(e).call(e,6));var n=t;"object"!=_typeof(n)&&(n={}),n.event_index=s();var o=void 0;return n.local_ms?(o=n.local_ms,delete n.local_ms):o=+new Date,{event:r,params:n,local_time_ms:o}}catch(r){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:_Date$now(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=_e({},t,e);this.event("predefine_pageview",r)},e}(),q=new R("default"),uncurryThis$1=functionUncurryThis,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,$RangeError=RangeError,exec$1=uncurryThis$1(regexSeparators.exec),floor$1=Math.floor,fromCharCode=String.fromCharCode,charCodeAt=uncurryThis$1("".charCodeAt),join$1=uncurryThis$1([].join),push$1=uncurryThis$1([].push),replace$1=uncurryThis$1("".replace),split$1=uncurryThis$1("".split),toLowerCase$1=uncurryThis$1("".toLowerCase),ucs2decode=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=charCodeAt(e,r++);if(o>=55296&&o<=56319&&r<n){var a=charCodeAt(e,r++);56320==(64512&a)?push$1(t,((1023&o)<<10)+(1023&a)+65536):(push$1(t,o),r--)}else push$1(t,o)}return t},digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?floor$1(e/damp):e>>1,e+=floor$1(e/t);e>baseMinusTMin*tMax>>1;)e=floor$1(e/baseMinusTMin),n+=base;return floor$1(n+(baseMinusTMin+1)*e/(e+skew))},encode=function(e){var t,r,n=[],o=(e=ucs2decode(e)).length,a=initialN,i=0,s=initialBias;for(t=0;t<e.length;t++)(r=e[t])<128&&push$1(n,fromCharCode(r));var l=n.length,c=l;for(l&&push$1(n,delimiter);c<o;){var u=maxInt;for(t=0;t<e.length;t++)(r=e[t])>=a&&r<u&&(u=r);var p=c+1;if(u-a>floor$1((maxInt-i)/p))throw $RangeError(OVERFLOW_ERROR);for(i+=(u-a)*p,a=u,t=0;t<e.length;t++){if((r=e[t])<a&&++i>maxInt)throw $RangeError(OVERFLOW_ERROR);if(r==a){for(var $=i,f=base;;){var y=f<=s?tMin:f>=s+tMax?tMax:f-s;if($<y)break;var d=$-y,h=base-y;push$1(n,fromCharCode(digitToBasic(y+d%h))),$=floor$1(d/h),f+=base}push$1(n,fromCharCode(digitToBasic($))),s=adapt(i,p,c==l),i=0,c++}}i++,a++}return join$1(n,"")},stringPunycodeToAscii=function(e){var t,r,n=[],o=split$1(replace$1(toLowerCase$1(e),regexSeparators,"."),".");for(t=0;t<o.length;t++)r=o[t],push$1(n,exec$1(regexNonASCII,r)?"xn--"+encode(r):r);return join$1(n,".")},$$1=_export,DESCRIPTORS=descriptors,USE_NATIVE_URL$1=urlConstructorDetection,global$1=global$q,bind2=functionBindContext,uncurryThis=functionUncurryThis,defineBuiltIn=defineBuiltIn$8,defineBuiltInAccessor=defineBuiltInAccessor$4,anInstance=anInstance$3,hasOwn2=hasOwnProperty_1,assign2=objectAssign,arrayFrom=arrayFrom$1,arraySlice=arraySliceSimple,codeAt=stringMultibyte.codeAt,toASCII=stringPunycodeToAscii,$toString=toString$c,setToStringTag=setToStringTag$8,validateArgumentsLength$1=validateArgumentsLength$5,URLSearchParamsModule=web_urlSearchParams_constructor,InternalStateModule=internalState,setInternalState=InternalStateModule.set,getInternalURLState=InternalStateModule.getterFor("URL"),URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,NativeURL=global$1.URL,TypeError$1=global$1.TypeError,parseInt$1=global$1.parseInt,floor=Math.floor,pow=Math.pow,charAt=uncurryThis("".charAt),exec=uncurryThis(/./.exec),join=uncurryThis([].join),numberToString=uncurryThis(1..toString),pop=uncurryThis([].pop),push2=uncurryThis([].push),replace=uncurryThis("".replace),shift=uncurryThis([].shift),split=uncurryThis("".split),stringSlice=uncurryThis("".slice),toLowerCase=uncurryThis("".toLowerCase),unshift=uncurryThis([].unshift),INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[a-z]/i,ALPHANUMERIC=/[\d+-.a-z]/i,DIGIT=/\d/,HEX_START=/^0x/i,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\da-f]+$/i,FORBIDDEN_HOST_CODE_POINT=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+/,TRAILING_C0_CONTROL_OR_SPACE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,TAB_AND_NEW_LINE=/[\t\n\r]/g,parseIPv4=function(e){var t,r,n,o,a,i,s,l=split(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=l[n]))return e;if(a=10,o.length>1&&"0"==charAt(o,0)&&(a=exec(HEX_START,o)?16:8,o=stringSlice(o,8==a?1:2)),""===o)i=0;else{if(!exec(10==a?DEC:8==a?OCT:HEX,o))return e;i=parseInt$1(o,a)}push2(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=pow(256,5-t))return null}else if(i>255)return null;for(s=pop(r),n=0;n<r.length;n++)s+=r[n]*pow(256,3-n);return s},parseIPv6=function(e){var t,r,n,o,a,i,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,p=0,$=function(){return charAt(e,p)};if(":"==$()){if(":"!=charAt(e,1))return;p+=2,u=++c}for(;$();){if(8==c)return;if(":"!=$()){for(t=r=0;r<4&&exec(HEX,$());)t=16*t+parseInt$1($(),16),p++,r++;if("."==$()){if(0==r)return;if(p-=r,c>6)return;for(n=0;$();){if(o=null,n>0){if(!("."==$()&&n<4))return;p++}if(!exec(DIGIT,$()))return;for(;exec(DIGIT,$());){if(a=parseInt$1($(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;p++}l[c]=256*l[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==$()){if(p++,!$())return}else if($())return;l[c++]=t}else{if(null!==u)return;p++,u=++c}}if(null!==u)for(i=c-u,c=7;0!=c&&i>0;)s=l[c],l[c--]=l[u+i-1],l[u+--i]=s;else if(8!=c)return;return l},findLongestZeroSequence=function(e){for(var t=null,r=1,n=null,o=0,a=0;a<8;a++)0!==e[a]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=a),++o);return o>r&&(t=n,r=o),t},serializeHost=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)unshift(t,e%256),e=floor(e/256);return join(t,".")}if("object"==typeof e){for(t="",n=findLongestZeroSequence(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=numberToString(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign2({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign2({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign2({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=codeAt(e,0);return r>32&&r<127&&!hasOwn2(t,e)?e:encodeURIComponent(e)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(e,t){var r;return 2==e.length&&exec(ALPHA,charAt(e,0))&&(":"==(r=charAt(e,1))||!t&&"|"==r)},startsWithWindowsDriveLetter=function(e){var t;return e.length>1&&isWindowsDriveLetter(stringSlice(e,0,2))&&(2==e.length||"/"===(t=charAt(e,2))||"\\"===t||"?"===t||"#"===t)},isSingleDot=function(e){return"."===e||"%2e"===toLowerCase(e)},isDoubleDot=function(e){return".."===(e=toLowerCase(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},URLState=function(e,t,r){var n,o,a,i=$toString(e);if(t){if(o=this.parse(i))throw TypeError$1(o);this.searchParams=null}else{if(void 0!==r&&(n=new URLState(r,!0)),o=this.parse(i,null,n))throw TypeError$1(o);(a=getInternalSearchParamsState(new URLSearchParams$1)).bindURL(this),this.searchParams=a}};URLState.prototype={type:"URL",parse:function(e,t,r){var n,o,a,i,s=this,l=t||SCHEME_START,c=0,u="",p=!1,$=!1,f=!1;for(e=$toString(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=replace(e,LEADING_C0_CONTROL_OR_SPACE,""),e=replace(e,TRAILING_C0_CONTROL_OR_SPACE,"$1")),e=replace(e,TAB_AND_NEW_LINE,""),n=arrayFrom(e);c<=n.length;){switch(o=n[c],l){case SCHEME_START:if(!o||!exec(ALPHA,o)){if(t)return INVALID_SCHEME;l=NO_SCHEME;continue}u+=toLowerCase(o),l=SCHEME;break;case SCHEME:if(o&&(exec(ALPHANUMERIC,o)||"+"==o||"-"==o||"."==o))u+=toLowerCase(o);else{if(":"!=o){if(t)return INVALID_SCHEME;u="",l=NO_SCHEME,c=0;continue}if(t&&(s.isSpecial()!=hasOwn2(specialSchemes,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&specialSchemes[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?l=FILE:s.isSpecial()&&r&&r.scheme==s.scheme?l=SPECIAL_RELATIVE_OR_AUTHORITY:s.isSpecial()?l=SPECIAL_AUTHORITY_SLASHES:"/"==n[c+1]?(l=PATH_OR_AUTHORITY,c++):(s.cannotBeABaseURL=!0,push2(s.path,""),l=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!r||r.cannotBeABaseURL&&"#"!=o)return INVALID_SCHEME;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,l=FRAGMENT;break}l="file"==r.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!=o||"/"!=n[c+1]){l=RELATIVE;continue}l=SPECIAL_AUTHORITY_IGNORE_SLASHES,c++;break;case PATH_OR_AUTHORITY:if("/"==o){l=AUTHORITY;break}l=PATH;continue;case RELATIVE:if(s.scheme=r.scheme,o==EOF)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())l=RELATIVE_SLASH;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query="",l=QUERY;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.path.length--,l=PATH;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",l=FRAGMENT}break;case RELATIVE_SLASH:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,l=PATH;continue}l=AUTHORITY}else l=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(l=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!=o||"/"!=charAt(u,c+1))continue;c++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=o&&"\\"!=o){l=AUTHORITY;continue}break;case AUTHORITY:if("@"==o){p&&(u="%40"+u),p=!0,a=arrayFrom(u);for(var y=0;y<a.length;y++){var d=a[y];if(":"!=d||f){var h=percentEncode(d,userinfoPercentEncodeSet);f?s.password+=h:s.username+=h}else f=!0}u=""}else if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(p&&""==u)return INVALID_AUTHORITY;c-=arrayFrom(u).length+1,u="",l=HOST}else u+=o;break;case HOST:case HOSTNAME:if(t&&"file"==s.scheme){l=FILE_HOST;continue}if(":"!=o||$){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==u)return INVALID_HOST;if(t&&""==u&&(s.includesCredentials()||null!==s.port))return;if(i=s.parseHost(u))return i;if(u="",l=PATH_START,t)return;continue}"["==o?$=!0:"]"==o&&($=!1),u+=o}else{if(""==u)return INVALID_HOST;if(i=s.parseHost(u))return i;if(u="",l=PORT,t==HOSTNAME)return}break;case PORT:if(!exec(DIGIT,o)){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=u){var g=parseInt$1(u,10);if(g>65535)return INVALID_PORT;s.port=s.isSpecial()&&g===specialSchemes[s.scheme]?null:g,u=""}if(t)return;l=PATH_START;continue}return INVALID_PORT}u+=o;break;case FILE:if(s.scheme="file","/"==o||"\\"==o)l=FILE_SLASH;else{if(!r||"file"!=r.scheme){l=PATH;continue}if(o==EOF)s.host=r.host,s.path=arraySlice(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=arraySlice(r.path),s.query="",l=QUERY;else{if("#"!=o){startsWithWindowsDriveLetter(join(arraySlice(n,c),""))||(s.host=r.host,s.path=arraySlice(r.path),s.shortenPath()),l=PATH;continue}s.host=r.host,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",l=FRAGMENT}}break;case FILE_SLASH:if("/"==o||"\\"==o){l=FILE_HOST;break}r&&"file"==r.scheme&&!startsWithWindowsDriveLetter(join(arraySlice(n,c),""))&&(isWindowsDriveLetter(r.path[0],!0)?push2(s.path,r.path[0]):s.host=r.host),l=PATH;continue;case FILE_HOST:if(o==EOF||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&isWindowsDriveLetter(u))l=PATH;else if(""==u){if(s.host="",t)return;l=PATH_START}else{if(i=s.parseHost(u))return i;if("localhost"==s.host&&(s.host=""),t)return;u="",l=PATH_START}continue}u+=o;break;case PATH_START:if(s.isSpecial()){if(l=PATH,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=EOF&&(l=PATH,"/"!=o))continue}else s.fragment="",l=FRAGMENT;else s.query="",l=QUERY;break;case PATH:if(o==EOF||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(isDoubleDot(u)?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||push2(s.path,"")):isSingleDot(u)?"/"==o||"\\"==o&&s.isSpecial()||push2(s.path,""):("file"==s.scheme&&!s.path.length&&isWindowsDriveLetter(u)&&(s.host&&(s.host=""),u=charAt(u,0)+":"),push2(s.path,u)),u="","file"==s.scheme&&(o==EOF||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)shift(s.path);"?"==o?(s.query="",l=QUERY):"#"==o&&(s.fragment="",l=FRAGMENT)}else u+=percentEncode(o,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==o?(s.query="",l=QUERY):"#"==o?(s.fragment="",l=FRAGMENT):o!=EOF&&(s.path[0]+=percentEncode(o,C0ControlPercentEncodeSet));break;case QUERY:t||"#"!=o?o!=EOF&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":percentEncode(o,C0ControlPercentEncodeSet)):(s.fragment="",l=FRAGMENT);break;case FRAGMENT:o!=EOF&&(s.fragment+=percentEncode(o,fragmentPercentEncodeSet))}c++}},parseHost:function(e){var t,r,n;if("["==charAt(e,0)){if("]"!=charAt(e,e.length-1))return INVALID_HOST;if(!(t=parseIPv6(stringSlice(e,1,-1))))return INVALID_HOST;this.host=t}else if(this.isSpecial()){if(e=toASCII(e),exec(FORBIDDEN_HOST_CODE_POINT,e))return INVALID_HOST;if(null===(t=parseIPv4(e)))return INVALID_HOST;this.host=t}else{if(exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT,e))return INVALID_HOST;for(t="",r=arrayFrom(e),n=0;n<r.length;n++)t+=percentEncode(r[n],C0ControlPercentEncodeSet);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return hasOwn2(specialSchemes,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&isWindowsDriveLetter(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,a=e.port,i=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=serializeHost(o),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+join(i,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw TypeError$1(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new URLConstructor(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+serializeHost(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse($toString(e)+":",SCHEME_START)},getUsername:function(){return this.username},setUsername:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=percentEncode(t[r],userinfoPercentEncodeSet)}},getPassword:function(){return this.password},setPassword:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=percentEncode(t[r],userinfoPercentEncodeSet)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?serializeHost(e):serializeHost(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,HOST)},getHostname:function(){var e=this.host;return null===e?"":serializeHost(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,HOSTNAME)},getPort:function(){var e=this.port;return null===e?"":$toString(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=$toString(e))?this.port=null:this.parse(e,PORT))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+join(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,PATH_START))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=$toString(e))?this.query=null:("?"==charAt(e,0)&&(e=stringSlice(e,1)),this.query="",this.parse(e,QUERY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=$toString(e))?("#"==charAt(e,0)&&(e=stringSlice(e,1)),this.fragment="",this.parse(e,FRAGMENT)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor=function(e){var t=anInstance(this,URLPrototype),r=validateArgumentsLength$1(arguments.length,1)>1?arguments[1]:void 0,n=setInternalState(t,new URLState(e,!1,r));DESCRIPTORS||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},URLPrototype=URLConstructor.prototype,accessorDescriptor=function(e,t){return{get:function(){return getInternalURLState(this)[e]()},set:t&&function(e){return getInternalURLState(this)[t](e)},configurable:!0,enumerable:!0}};if(DESCRIPTORS&&(defineBuiltInAccessor(URLPrototype,"href",accessorDescriptor("serialize","setHref")),defineBuiltInAccessor(URLPrototype,"origin",accessorDescriptor("getOrigin")),defineBuiltInAccessor(URLPrototype,"protocol",accessorDescriptor("getProtocol","setProtocol")),defineBuiltInAccessor(URLPrototype,"username",accessorDescriptor("getUsername","setUsername")),defineBuiltInAccessor(URLPrototype,"password",accessorDescriptor("getPassword","setPassword")),defineBuiltInAccessor(URLPrototype,"host",accessorDescriptor("getHost","setHost")),defineBuiltInAccessor(URLPrototype,"hostname",accessorDescriptor("getHostname","setHostname")),defineBuiltInAccessor(URLPrototype,"port",accessorDescriptor("getPort","setPort")),defineBuiltInAccessor(URLPrototype,"pathname",accessorDescriptor("getPathname","setPathname")),defineBuiltInAccessor(URLPrototype,"search",accessorDescriptor("getSearch","setSearch")),defineBuiltInAccessor(URLPrototype,"searchParams",accessorDescriptor("getSearchParams")),defineBuiltInAccessor(URLPrototype,"hash",accessorDescriptor("getHash","setHash"))),defineBuiltIn(URLPrototype,"toJSON",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),defineBuiltIn(URLPrototype,"toString",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&defineBuiltIn(URLConstructor,"createObjectURL",bind2(nativeCreateObjectURL,NativeURL)),nativeRevokeObjectURL&&defineBuiltIn(URLConstructor,"revokeObjectURL",bind2(nativeRevokeObjectURL,NativeURL))}setToStringTag(URLConstructor,"URL"),$$1({global:!0,constructor:!0,forced:!USE_NATIVE_URL$1,sham:!DESCRIPTORS},{URL:URLConstructor});var $=_export,getBuiltIn=getBuiltIn$g,fails=fails$z,validateArgumentsLength=validateArgumentsLength$5,toString4=toString$c,USE_NATIVE_URL=urlConstructorDetection,URL$1=getBuiltIn("URL"),THROWS_WITHOUT_ARGUMENTS=USE_NATIVE_URL&&fails((function(){URL$1.canParse()}));$({target:"URL",stat:!0,forced:!THROWS_WITHOUT_ARGUMENTS},{canParse:function(e){var t=validateArgumentsLength(arguments.length,1),r=toString4(e),n=t<2||void 0===arguments[1]?void 0:toString4(arguments[1]);try{return!!new URL$1(r,n)}catch(e){return!1}}});var getRandomValues,path=path$u,url$5=path.URL,parent$2=url$5,url$4=parent$2,parent$1=url$4,url$3=parent$1,parent=url$3,url$2=parent,url$1=url$2,url=url$1,_URL=getDefaultExportFromCjs(url),rnds8=new Uint8Array(16);function rng(){var e;if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&_bindInstanceProperty(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var _context$1,byteToHex=[],i=0;i<256;++i){var _context$2;byteToHex.push(_sliceInstanceProperty(_context$2=(i+256).toString(16)).call(_context$2,1))}function unsafeStringify(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]}var randomUUID="undefined"!=typeof crypto&&crypto.randomUUID&&_bindInstanceProperty(_context$1=crypto.randomUUID).call(_context$1,crypto),_native={randomUUID:randomUUID};function v4(e,t,r){if(_native.randomUUID&&!t&&!e)return _native.randomUUID();var n=(e=e||{}).random||(e.rng||rng)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return unsafeStringify(n)}var DEVICE_ID_KEY="veplayer_live_device_id",USER_ID_Key="veplayer_live_user_id",genRandomID2=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},getDeviceID2=function(){var e=localStorage.getItem(DEVICE_ID_KEY);return e||(e=genRandomID2(11),localStorage.setItem(DEVICE_ID_KEY,e),e)},getUserId2=function(){var e=localStorage.getItem(USER_ID_Key);return e||(e=genRandomID2(12),localStorage.setItem(USER_ID_Key,e),e)},generateUrlWithSessionId=function(e){if(!e)return"";_startsWithInstanceProperty(e).call(e,"//")&&(e=location.protocol+e);try{var t,r,n=new _URL(e);return null!=n&&null!==(t=n.searchParams)&&void 0!==t&&t.get("_session_id")?e:(null==n||null===(r=n.searchParams)||void 0===r||r.append("_session_id",generateSessionId()),n.toString())}catch(t){return e}},hashCode=function(e){for(var t=0,r=0,n=(e+="").length,o=0;o<n;o++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t},generateSessionId=function(){return v4().replace(/-/g,"")+"."+_Date$now()+"."+hashCode(v4().replace(/-/g,""))},Plugin$2=window.VePlayer.Plugin,CN_APPID=468759,CHANNEL="cn",CHANNEL_DOMAIN="//mcs.volceapplog.com",Logger=function(e){_inherits(r,Plugin$2);var t=_createSuper(r);function r(){var e,n;_classCallCheck(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_userId",void 0),_defineProperty$1(_assertThisInitialized(n),"_deviceId",void 0),_defineProperty$1(_assertThisInitialized(n),"_liveLogger",void 0),n}return _createClass$1(r,[{key:"afterCreate",value:function(){var e,t;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||getUserId2(),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||getDeviceID2(),this.open()):console.info("not found appId, please generate an appId"))}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==q?void 0:q.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){q.init({app_id:CN_APPID,channel:CHANNEL,channel_domain:CHANNEL_DOMAIN}),q.start(),q.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new LoggerControl({Tea:q,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.1.0-rc.0",flv_version:"3.0.10-alpha.4",hls_version:"3.0.10-alpha.4",rts_version:"0.2.0-alpha.5"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}();function normalizeNumber(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}function getDefaultRow(e){var t,r,n;return{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:normalizeNumber(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:normalizeNumber(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:normalizeNumber(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:_concatInstanceProperty(r="".concat(normalizeNumber(e.height)," * ")).call(r,normalizeNumber(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:normalizeNumber(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:normalizeNumber(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]}}function getSoftDecodeRow(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:normalizeNumber(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:normalizeNumber(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}var _context,infoPanel="",util$1=window.VePlayer.util,Plugin$1=window.VePlayer.Plugin,XGUtil=window.VePlayer.XGUtil,InfoPanel=function(e){_inherits(r,Plugin$1);var t=_createSuper(r);function r(){var e,n;_classCallCheck(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_pollTimer",void 0),_defineProperty$1(_assertThisInitialized(n),"_visible",void 0),_defineProperty$1(_assertThisInitialized(n),"_playPlugin",void 0),n}return _createClass$1(r,[{key:"_streamType",get:function(){return util$1.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Events.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Events.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(_includesInstanceProperty(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(Events.LOADED_DATA,(function(){return e.open()})),this.player.off(Events.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=_setTimeout((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e=this._getStats()||{},t="".concat(this._streamType,"_live"),r=this._playPlugin.softDecode,n=[getDefaultRow(_objectSpread2$1(_objectSpread2$1({},e),{},{format:t}))];return r&&n.push(getSoftDecodeRow(e)),n}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",_forEachInstanceProperty(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,o=t.titleTextKey,a=t.rows,i=this.player.config.i18nManager;if(n||o){var s,l=this._genTitleDom(null!==(s=i.getText(o))&&void 0!==s?s:n);e.appendChild(l)}_forEachInstanceProperty(a).call(a,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=XGUtil.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=XGUtil.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=XGUtil.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=XGUtil.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var o=XGUtil.createDom("xg-live-panel",e.value);return r.appendChild(o),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(),BaseEN=window.VePlayer.EN,EN$1=_objectSpread2$1(_objectSpread2$1({},BaseEN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),BaseZH_CN=window.VePlayer.ZH_CN,ZH_CN$1=_objectSpread2$1(_objectSpread2$1({},BaseZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),DEFAULT_PLUGINS=window.VePlayer.DEFAULT_PLUGINS,VePlayerBase=window.VePlayer.VePlayerBase,VeI18n=window.VePlayer.VeI18n;VeI18n.extend([{LANG:"zh-cn",TEXT:ZH_CN$1},{LANG:"en",TEXT:EN$1}]);var LIVE_DEFAULT_OPTIONS={autoplay:{muted:!0}},LIVE_DEFAULT_PLUGINS=_concatInstanceProperty(_context=[]).call(_context,_toConsumableArray(DEFAULT_PLUGINS),[Refresh,Logger,InfoPanel]),RTMCodec=function(e){return e.H264="h264",e}(RTMCodec||{}),VePlayerLive=function(e){_inherits(r,VePlayerBase);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e)}return _createClass$1(r,[{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}}]),r}();function createLivePlayer(e){return _createLivePlayer.apply(this,arguments)}function _createLivePlayer(){return(_createLivePlayer=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i,s,l;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=void 0,t&&(t.url||t.playlist)){e.next=3;break}throw create$2(ErrorCode.INVALID_PARAMETER,new VeI18n);case 3:return a=new VeI18n({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),i=_objectSpread2$1(_objectSpread2$1({},t),{},{plugins:_concatInstanceProperty(r=[]).call(r,_toConsumableArray(LIVE_DEFAULT_PLUGINS),_toConsumableArray(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,VePlayerBase.create(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},LIVE_DEFAULT_OPTIONS),i),{},{isLive:!0,i18nManager:a,preProcessUrl:function(e){return{url:generateUrlWithSessionId(e)}},preparePlugins:function(e){return _asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",getTypeStrategy(_objectSpread2$1(_objectSpread2$1({},i),{},{url:e}),o));case 1:case"end":return t.stop()}}),t)})))()}}),VePlayerLive);case 7:return(o=e.sent)&&(l=null===(s=o)||void 0===s||null===(s=s._player)||void 0===s||null===(s=s.config)||void 0===s?void 0:s._RTMdegrade)&&o.emit("degrade",{originRtmUrl:l._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:l._isRTMSupported,isRTMSupportCodec:l._isRTMSupportCodec}),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var live=Object.freeze({__proto__:null,ErrorCode:ErrorCode,Events:Events}),setModuleSystem=window.VePlayer.setModuleSystem,Codec=window.VePlayer.Codec,DecodeType=window.VePlayer.DecodeType,Degradation=window.VePlayer.Degradation,POSITIONS=window.VePlayer.POSITIONS,register=window.VePlayer.register,EN=window.VePlayer.EN,ZH_CN=window.VePlayer.ZH_CN,Plugin=window.VePlayer.Plugin,Sniffer=window.VePlayer.Sniffer,DynamicModule=window.VePlayer.DynamicModule,util=window.VePlayer.util,load=window.VePlayer.load;setModuleSystem("esm");var isMseSupported=util.isMseSupported,isSoftDecodeSupported=util.isSoftDecodeSupported;export{Codec,DecodeType,Degradation,DynamicModule,EN,POSITIONS,Plugin,RTMCodec,Sniffer,ZH_CN,createLivePlayer,isMseSupported,isRTMSupportCodec,isRTMSupported,isSoftDecodeSupported,live,load,register,util};
1
+ var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var check=function(e){return e&&e.Math==Math&&e},global$q=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||commonjsGlobal||Function("return this")(),fails$z=function(e){try{return!!e()}catch(e){return!0}},fails$y=fails$z,functionBindNative=!fails$y((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$4=functionBindNative,FunctionPrototype$3=Function.prototype,apply$7=FunctionPrototype$3.apply,call$l=FunctionPrototype$3.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$4?call$l.bind(apply$7):function(){return call$l.apply(apply$7,arguments)}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$2=Function.prototype,call$k=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$2.bind.bind(call$k,call$k),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$k.apply(e,arguments)}},uncurryThis$z=functionUncurryThis,toString$e=uncurryThis$z({}.toString),stringSlice$4=uncurryThis$z("".slice),classofRaw$2=function(e){return stringSlice$4(toString$e(e),8,-1)},classofRaw$1=classofRaw$2,uncurryThis$y=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw$1(e))return uncurryThis$y(e)},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$m=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor={},fails$x=fails$z,descriptors=!fails$x((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$2=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$2?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$b=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$b&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$b(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$1;var match,version,createPropertyDescriptor$8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$x=functionUncurryThis,fails$w=fails$z,classof$e=classofRaw$2,$Object$4=Object,split$3=uncurryThis$x("".split),indexedObject=fails$w((function(){return!$Object$4("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$e(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$g=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$3(e))throw $TypeError$g("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$b=function(e){return IndexedObject$2(requireObjectCoercible$5(e))},isCallable$l=isCallable$m,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$k=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$l(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$l(e)},path$u={},path$t=path$u,global$p=global$q,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$g=function(e,t){return arguments.length<2?aFunction(path$t[e])||aFunction(global$p[e]):path$t[e]&&path$t[e][t]||global$p[e]&&global$p[e][t]},uncurryThis$w=functionUncurryThis,objectIsPrototypeOf=uncurryThis$w({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$o=global$q,userAgent$3=engineUserAgent,process$4=global$o.process,Deno$1=global$o.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$3.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$v=fails$z,global$n=global$q,$String$5=global$n.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$v((function(){var e=Symbol();return!$String$5(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41})),NATIVE_SYMBOL$5=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$f=getBuiltIn$g,isCallable$j=isCallable$m,isPrototypeOf$i=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$6=USE_SYMBOL_AS_UID$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$f("Symbol");return isCallable$j(t)&&isPrototypeOf$i(t.prototype,$Object$3(e))},$String$4=String,tryToString$6=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$5=tryToString$6,$TypeError$f=TypeError,aCallable$b=function(e){if(isCallable$i(e))return e;throw $TypeError$f(tryToString$5(e)+" is not a function")},aCallable$a=aCallable$b,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){var r=e[t];return isNullOrUndefined$2(r)?void 0:aCallable$a(r)},call$i=functionCall,isCallable$h=isCallable$m,isObject$j=isObject$k,$TypeError$e=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;if(isCallable$h(r=e.valueOf)&&!isObject$j(n=call$i(r,e)))return n;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;throw $TypeError$e("Can't convert object to primitive value")},shared$7={exports:{}},isPure=!0,global$m=global$q,defineProperty$d=Object.defineProperty,defineGlobalProperty$1=function(e,t){try{defineProperty$d(global$m,e,{value:t,configurable:!0,writable:!0})}catch(r){global$m[e]=t}return t},global$l=global$q,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$3=global$l[SHARED]||defineGlobalProperty(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$7.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedExports=shared$7.exports,requireObjectCoercible$4=requireObjectCoercible$6,$Object$2=Object,toObject$b=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$v=functionUncurryThis,toObject$a=toObject$b,hasOwnProperty=uncurryThis$v({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$a(e),t)},uncurryThis$u=functionUncurryThis,id$1=0,postfix=Math.random(),toString$d=uncurryThis$u(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$d(++id$1+postfix,36)},global$k=global$q,shared$6=sharedExports,hasOwn$i=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL$4=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$5=global$k.Symbol,WellKnownSymbolsStore$2=shared$6("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$5.for||Symbol$5:Symbol$5&&Symbol$5.withoutSetter||uid$3,wellKnownSymbol$q=function(e){return hasOwn$i(WellKnownSymbolsStore$2,e)||(WellKnownSymbolsStore$2[e]=NATIVE_SYMBOL$4&&hasOwn$i(Symbol$5,e)?Symbol$5[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore$2[e]},call$h=functionCall,isObject$i=isObject$k,isSymbol$5=isSymbol$6,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$p=wellKnownSymbol$q,$TypeError$d=TypeError,TO_PRIMITIVE=wellKnownSymbol$p("toPrimitive"),toPrimitive$6=function(e,t){if(!isObject$i(e)||isSymbol$5(e))return e;var r,n=getMethod$2(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$h(n,e,t),!isObject$i(r)||isSymbol$5(r))return r;throw $TypeError$d("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$5=toPrimitive$6,isSymbol$4=isSymbol$6,toPropertyKey$4=function(e){var t=toPrimitive$5(e,"string");return isSymbol$4(t)?t:t+""},global$j=global$q,isObject$h=isObject$k,document$3=global$j.document,EXISTS$1=isObject$h(document$3)&&isObject$h(document$3.createElement),documentCreateElement$1=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$i=descriptors,fails$u=fails$z,createElement$1=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$i&&!fails$u((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$h=descriptors,call$g=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$7=createPropertyDescriptor$8,toIndexedObject$a=toIndexedObject$b,toPropertyKey$3=toPropertyKey$4,hasOwn$h=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$h?$getOwnPropertyDescriptor$2:function(e,t){if(e=toIndexedObject$a(e),t=toPropertyKey$3(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(e,t)}catch(e){}if(hasOwn$h(e,t))return createPropertyDescriptor$7(!call$g(propertyIsEnumerableModule$2.f,e,t),e[t])};var fails$t=fails$z,isCallable$g=isCallable$m,replacement=/#|\.prototype\./,isForced$2=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$g(t)?fails$t(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,uncurryThis$t=functionUncurryThisClause,aCallable$9=aCallable$b,NATIVE_BIND$1=functionBindNative,bind$i=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$9(e),void 0===t?e:NATIVE_BIND$1?bind$i(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty={},DESCRIPTORS$g=descriptors,fails$s=fails$z,v8PrototypeDefineBug=DESCRIPTORS$g&&fails$s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$g=isObject$k,$String$3=String,$TypeError$c=TypeError,anObject$e=function(e){if(isObject$g(e))return e;throw $TypeError$c($String$3(e)+" is not an object")},DESCRIPTORS$f=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$2=toPropertyKey$4,$TypeError$b=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$f?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){if(anObject$d(e),t=toPropertyKey$2(t),anObject$d(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]){var n=$getOwnPropertyDescriptor$1(e,t);n&&n[WRITABLE]&&(e[t]=r.value,r={configurable:CONFIGURABLE$1 in r?r[CONFIGURABLE$1]:n[CONFIGURABLE$1],enumerable:ENUMERABLE in r?r[ENUMERABLE]:n[ENUMERABLE],writable:!1})}return $defineProperty$1(e,t,r)}:$defineProperty$1:function(e,t,r){if(anObject$d(e),t=toPropertyKey$2(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty$1(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$b("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$e=descriptors,definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$8,createNonEnumerableProperty$8=DESCRIPTORS$e?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$6(1,r))}:function(e,t,r){return e[t]=r,e},global$i=global$q,apply$6=functionApply,uncurryThis$s=functionUncurryThisClause,isCallable$f=isCallable$m,getOwnPropertyDescriptor$a=objectGetOwnPropertyDescriptor.f,isForced$1=isForced_1,path$s=path$u,bind$h=functionBindContext,createNonEnumerableProperty$7=createNonEnumerableProperty$8,hasOwn$g=hasOwnProperty_1,wrapConstructor=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return apply$6(e,this,arguments)};return t.prototype=e.prototype,t},_export=function(e,t){var r,n,o,a,i,s,l,c,u,p=e.target,$=e.global,f=e.stat,y=e.proto,d=$?global$i:f?global$i[p]:(global$i[p]||{}).prototype,h=$?path$s:path$s[p]||createNonEnumerableProperty$7(path$s,p,{})[p],g=h.prototype;for(a in t)n=!(r=isForced$1($?a:p+(f?".":"#")+a,e.forced))&&d&&hasOwn$g(d,a),s=h[a],n&&(l=e.dontCallGetSet?(u=getOwnPropertyDescriptor$a(d,a))&&u.value:d[a]),i=n&&l?l:t[a],n&&typeof s==typeof i||(c=e.bind&&n?bind$h(i,global$i):e.wrap&&n?wrapConstructor(i):y&&isCallable$f(i)?uncurryThis$s(i):i,(e.sham||i&&i.sham||s&&s.sham)&&createNonEnumerableProperty$7(c,"sham",!0),createNonEnumerableProperty$7(h,a,c),y&&(hasOwn$g(path$s,o=p+"Prototype")||createNonEnumerableProperty$7(path$s,o,{}),createNonEnumerableProperty$7(path$s[o],a,i),e.real&&g&&(r||!g[a])&&createNonEnumerableProperty$7(g,a,i)))},classof$d=classofRaw$2,isArray$d=Array.isArray||function(e){return"Array"==classof$d(e)},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor$3:ceil)(t)},trunc2=mathTrunc,toIntegerOrInfinity$5=function(e){var t=+e;return t!=t||0===t?0:trunc2(t)},toIntegerOrInfinity$4=toIntegerOrInfinity$5,min$4=Math.min,toLength$2=function(e){return e>0?min$4(toIntegerOrInfinity$4(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$a=function(e){return toLength$1(e.length)},$TypeError$a=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$3=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$a("Maximum allowed index exceeded");return e},toPropertyKey$1=toPropertyKey$4,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$5=createPropertyDescriptor$8,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$3.f(e,n,createPropertyDescriptor$5(0,r)):e[n]=r},wellKnownSymbol$o=wellKnownSymbol$q,TO_STRING_TAG$4=wellKnownSymbol$o("toStringTag"),test$1={};test$1[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$e=isCallable$m,classofRaw=classofRaw$2,wellKnownSymbol$n=wellKnownSymbol$q,TO_STRING_TAG$3=wellKnownSymbol$n("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$c=TO_STRING_TAG_SUPPORT$2?classofRaw:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=$Object$1(e),TO_STRING_TAG$3))?r:CORRECT_ARGUMENTS?classofRaw(t):"Object"==(n=classofRaw(t))&&isCallable$e(t.callee)?"Arguments":n},uncurryThis$r=functionUncurryThis,isCallable$d=isCallable$m,store$1=sharedStore,functionToString=uncurryThis$r(Function.toString);isCallable$d(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)});var inspectSource$2=store$1.inspectSource,uncurryThis$q=functionUncurryThis,fails$r=fails$z,isCallable$c=isCallable$m,classof$b=classof$c,getBuiltIn$e=getBuiltIn$g,inspectSource$1=inspectSource$2,noop=function(){},empty=[],construct$6=getBuiltIn$e("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$4=uncurryThis$q(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$c(e))return!1;try{return construct$6(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$c(e))return!1;switch(classof$b(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$4(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct$6||fails$r((function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){e=!0}))||e}))?isConstructorLegacy:isConstructorModern,isArray$c=isArray$d,isConstructor$3=isConstructor$4,isObject$f=isObject$k,wellKnownSymbol$m=wellKnownSymbol$q,SPECIES$5=wellKnownSymbol$m("species"),$Array$3=Array,arraySpeciesConstructor$1=function(e){var t;return isArray$c(e)&&(t=e.constructor,(isConstructor$3(t)&&(t===$Array$3||isArray$c(t.prototype))||isObject$f(t)&&null===(t=t[SPECIES$5]))&&(t=void 0)),void 0===t?$Array$3:t},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$3=function(e,t){return new(arraySpeciesConstructor(e))(0===t?0:t)},fails$q=fails$z,wellKnownSymbol$l=wellKnownSymbol$q,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$l("species"),arrayMethodHasSpeciesSupport$5=function(e){return V8_VERSION$2>=51||!fails$q((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$V=_export,fails$p=fails$z,isArray$b=isArray$d,isObject$e=isObject$k,toObject$9=toObject$b,lengthOfArrayLike$9=lengthOfArrayLike$a,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$5=createProperty$6,arraySpeciesCreate$2=arraySpeciesCreate$3,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,wellKnownSymbol$k=wellKnownSymbol$q,V8_VERSION$1=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$k("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$p((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),isConcatSpreadable=function(e){if(!isObject$e(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$b(e)},FORCED$8=!IS_CONCAT_SPREADABLE_SUPPORT||!arrayMethodHasSpeciesSupport$4("concat");$$V({target:"Array",proto:!0,arity:1,forced:FORCED$8},{concat:function(e){var t,r,n,o,a,i=toObject$9(this),s=arraySpeciesCreate$2(i,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(a=-1===t?i:arguments[t]))for(o=lengthOfArrayLike$9(a),doesNotExceedSafeInteger$2(l+o),r=0;r<o;r++,l++)r in a&&createProperty$5(s,l,a[r]);else doesNotExceedSafeInteger$2(l+1),createProperty$5(s,l++,a);return s.length=l,s}});var classof$a=classof$c,$String$2=String,toString$c=function(e){if("Symbol"===classof$a(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$2(e)},objectDefineProperties={},toIntegerOrInfinity$3=toIntegerOrInfinity$5,max$3=Math.max,min$3=Math.min,toAbsoluteIndex$4=function(e,t){var r=toIntegerOrInfinity$3(e);return r<0?max$3(r+t,0):min$3(r,t)},toIndexedObject$9=toIndexedObject$b,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$8=lengthOfArrayLike$a,createMethod$3=function(e){return function(t,r,n){var o,a=toIndexedObject$9(t),i=lengthOfArrayLike$8(a),s=toAbsoluteIndex$3(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},hiddenKeys$6={},uncurryThis$p=functionUncurryThis,hasOwn$f=hasOwnProperty_1,toIndexedObject$8=toIndexedObject$b,indexOf$7=arrayIncludes.indexOf,hiddenKeys$5=hiddenKeys$6,push$e=uncurryThis$p([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$8(e),o=0,a=[];for(r in n)!hasOwn$f(hiddenKeys$5,r)&&hasOwn$f(n,r)&&push$e(a,r);for(;t.length>o;)hasOwn$f(n,r=t[o++])&&(~indexOf$7(a,r)||push$e(a,r));return a},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,objectKeys$3=Object.keys||function(e){return internalObjectKeys$1(e,enumBugKeys$2)},DESCRIPTORS$d=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$c=anObject$e,toIndexedObject$7=toIndexedObject$b,objectKeys$2=objectKeys$3;objectDefineProperties.f=DESCRIPTORS$d&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$c(e);for(var r,n=toIndexedObject$7(t),o=objectKeys$2(t),a=o.length,i=0;a>i;)definePropertyModule$2.f(e,r=o[i++],n[r]);return e};var activeXDocument,getBuiltIn$d=getBuiltIn$g,html$2=getBuiltIn$d("document","documentElement"),shared$5=sharedExports,uid$2=uid$4,keys$6=shared$5("keys"),sharedKey$4=function(e){return keys$6[e]||(keys$6[e]=uid$2(e))},anObject$b=anObject$e,definePropertiesModule$1=objectDefineProperties,enumBugKeys$1=enumBugKeys$3,hiddenKeys$4=hiddenKeys$6,html$1=html$2,documentCreateElement=documentCreateElement$1,sharedKey$3=sharedKey$4,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html$1.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var e=enumBugKeys$1.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[e]];return NullProtoObject()};hiddenKeys$4[IE_PROTO$1]=!0;var objectCreate=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE$1]=anObject$b(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule$1.f(r,t)},objectGetOwnPropertyNames={},internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$3,hiddenKeys$3=enumBugKeys.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys(e,hiddenKeys$3)};var objectGetOwnPropertyNamesExternal={},toAbsoluteIndex$2=toAbsoluteIndex$4,lengthOfArrayLike$7=lengthOfArrayLike$a,createProperty$4=createProperty$6,$Array$2=Array,max$2=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$7(e),o=toAbsoluteIndex$2(t,n),a=toAbsoluteIndex$2(void 0===r?n:r,n),i=$Array$2(max$2(a-o,0)),s=0;o<a;o++,s++)createProperty$4(i,s,e[o]);return i.length=s,i},classof$9=classofRaw$2,toIndexedObject$6=toIndexedObject$b,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$7=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames$1(e)}catch(e){return arraySlice$7(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$9(e)?getWindowNames(e):$getOwnPropertyNames$1(toIndexedObject$6(e))};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$6=createNonEnumerableProperty$8,defineBuiltIn$8=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$6(e,t,r),e},defineProperty$c=objectDefineProperty,defineBuiltInAccessor$4=function(e,t,r){return defineProperty$c.f(e,t,r)},wellKnownSymbolWrapped={},wellKnownSymbol$j=wellKnownSymbol$q;wellKnownSymbolWrapped.f=wellKnownSymbol$j;var set$1,get,has,path$r=path$u,hasOwn$e=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$b=objectDefineProperty.f,wellKnownSymbolDefine=function(e){var t=path$r.Symbol||(path$r.Symbol={});hasOwn$e(t,e)||defineProperty$b(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$f=functionCall,getBuiltIn$c=getBuiltIn$g,wellKnownSymbol$i=wellKnownSymbol$q,defineBuiltIn$7=defineBuiltIn$8,symbolDefineToPrimitive=function(){var e=getBuiltIn$c("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$i("toPrimitive");t&&!t[n]&&defineBuiltIn$7(t,n,(function(e){return call$f(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$8=classof$c,objectToString$1=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$8(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineProperty$a=objectDefineProperty.f,createNonEnumerableProperty$5=createNonEnumerableProperty$8,hasOwn$d=hasOwnProperty_1,toString$b=objectToString$1,wellKnownSymbol$h=wellKnownSymbol$q,TO_STRING_TAG$2=wellKnownSymbol$h("toStringTag"),setToStringTag$8=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$d(o,TO_STRING_TAG$2)||defineProperty$a(o,TO_STRING_TAG$2,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT&&createNonEnumerableProperty$5(o,"toString",toString$b)}},global$h=global$q,isCallable$b=isCallable$m,WeakMap$1=global$h.WeakMap,weakMapBasicDetection=isCallable$b(WeakMap$1)&&/native code/.test(String(WeakMap$1)),NATIVE_WEAK_MAP=weakMapBasicDetection,global$g=global$q,isObject$d=isObject$k,createNonEnumerableProperty$4=createNonEnumerableProperty$8,hasOwn$c=hasOwnProperty_1,shared$4=sharedStore,sharedKey$2=sharedKey$4,hiddenKeys$2=hiddenKeys$6,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$5=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$d(t)||(r=get(t)).type!==e)throw TypeError$5("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$4.state){var store=shared$4.state||(shared$4.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$5(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},has=function(e){return store.has(e)}}else{var STATE=sharedKey$2("state");hiddenKeys$2[STATE]=!0,set$1=function(e,t){if(hasOwn$c(e,STATE))throw TypeError$5(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$c(e,STATE)?e[STATE]:{}},has=function(e){return hasOwn$c(e,STATE)}}var internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},bind$g=functionBindContext,uncurryThis$o=functionUncurryThis,IndexedObject$1=indexedObject,toObject$8=toObject$b,lengthOfArrayLike$6=lengthOfArrayLike$a,arraySpeciesCreate$1=arraySpeciesCreate$3,push$d=uncurryThis$o([].push),createMethod$2=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(l,c,u,p){for(var $,f,y=toObject$8(l),d=IndexedObject$1(y),h=bind$g(c,u),g=lengthOfArrayLike$6(d),m=0,_=p||arraySpeciesCreate$1,b=t?_(l,g):r||i?_(l,0):void 0;g>m;m++)if((s||m in d)&&(f=h($=d[m],m,y),e))if(t)b[m]=f;else if(f)switch(e){case 3:return!0;case 5:return $;case 6:return m;case 2:push$d(b,$)}else switch(e){case 4:return!1;case 7:push$d(b,$)}return a?-1:n||o?o:b}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},$$U=_export,global$f=global$q,call$e=functionCall,uncurryThis$n=functionUncurryThis,DESCRIPTORS$c=descriptors,NATIVE_SYMBOL$3=symbolConstructorDetection,fails$o=fails$z,hasOwn$b=hasOwnProperty_1,isPrototypeOf$h=objectIsPrototypeOf,anObject$a=anObject$e,toIndexedObject$5=toIndexedObject$b,toPropertyKey=toPropertyKey$4,$toString$2=toString$c,createPropertyDescriptor$4=createPropertyDescriptor$8,nativeObjectCreate=objectCreate,objectKeys$1=objectKeys$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$6=defineBuiltIn$8,defineBuiltInAccessor$3=defineBuiltInAccessor$4,shared$3=sharedExports,sharedKey$1=sharedKey$4,hiddenKeys$1=hiddenKeys$6,uid$1=uid$4,wellKnownSymbol$g=wellKnownSymbol$q,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$7=setToStringTag$8,InternalStateModule$5=internalState,$forEach$1=arrayIteration.forEach,HIDDEN=sharedKey$1("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",setInternalState$5=InternalStateModule$5.set,getInternalState$2=InternalStateModule$5.getterFor(SYMBOL),ObjectPrototype$2=Object[PROTOTYPE],$Symbol=global$f.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE],TypeError$4=global$f.TypeError,QObject=global$f.QObject,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$2.f,nativeDefineProperty=definePropertyModule$1.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$c=uncurryThis$n([].push),AllSymbols=shared$3("symbols"),ObjectPrototypeSymbols=shared$3("op-symbols"),WellKnownSymbolsStore$1=shared$3("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDescriptor=DESCRIPTORS$c&&fails$o((function(){return 7!=nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=nativeGetOwnPropertyDescriptor$1(ObjectPrototype$2,t);n&&delete ObjectPrototype$2[t],nativeDefineProperty(e,t,r),n&&e!==ObjectPrototype$2&&nativeDefineProperty(ObjectPrototype$2,t,n)}:nativeDefineProperty,wrap=function(e,t){var r=AllSymbols[e]=nativeObjectCreate(SymbolPrototype);return setInternalState$5(r,{type:SYMBOL,tag:e,description:t}),DESCRIPTORS$c||(r.description=t),r},$defineProperty=function(e,t,r){e===ObjectPrototype$2&&$defineProperty(ObjectPrototypeSymbols,t,r),anObject$a(e);var n=toPropertyKey(t);return anObject$a(r),hasOwn$b(AllSymbols,n)?(r.enumerable?(hasOwn$b(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$4(0,!1)})):(hasOwn$b(e,HIDDEN)||nativeDefineProperty(e,HIDDEN,createPropertyDescriptor$4(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty(e,n,r)},$defineProperties=function(e,t){anObject$a(e);var r=toIndexedObject$5(t),n=objectKeys$1(r).concat($getOwnPropertySymbols(r));return $forEach$1(n,(function(t){DESCRIPTORS$c&&!call$e($propertyIsEnumerable,r,t)||$defineProperty(e,t,r[t])})),e},$create=function(e,t){return void 0===t?nativeObjectCreate(e):$defineProperties(nativeObjectCreate(e),t)},$propertyIsEnumerable=function(e){var t=toPropertyKey(e),r=call$e(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$2&&hasOwn$b(AllSymbols,t)&&!hasOwn$b(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$b(this,t)||!hasOwn$b(AllSymbols,t)||hasOwn$b(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor=function(e,t){var r=toIndexedObject$5(e),n=toPropertyKey(t);if(r!==ObjectPrototype$2||!hasOwn$b(AllSymbols,n)||hasOwn$b(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$1(r,n);return!o||!hasOwn$b(AllSymbols,n)||hasOwn$b(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$5(e)),r=[];return $forEach$1(t,(function(e){hasOwn$b(AllSymbols,e)||hasOwn$b(hiddenKeys$1,e)||push$c(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$2,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$5(e)),n=[];return $forEach$1(r,(function(e){!hasOwn$b(AllSymbols,e)||t&&!hasOwn$b(ObjectPrototype$2,e)||push$c(n,AllSymbols[e])})),n};NATIVE_SYMBOL$3||(defineBuiltIn$6(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$h(SymbolPrototype,this))throw TypeError$4("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString$2(arguments[0]):void 0,t=uid$1(e),r=function(e){this===ObjectPrototype$2&&call$e(r,ObjectPrototypeSymbols,e),hasOwn$b(this,HIDDEN)&&hasOwn$b(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$4(1,e))};return DESCRIPTORS$c&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$2,t,{configurable:!0,set:r}),wrap(t,e)})[PROTOTYPE],"toString",(function(){return getInternalState$2(this).tag})),defineBuiltIn$6($Symbol,"withoutSetter",(function(e){return wrap(uid$1(e),e)})),propertyIsEnumerableModule$1.f=$propertyIsEnumerable,definePropertyModule$1.f=$defineProperty,definePropertiesModule.f=$defineProperties,getOwnPropertyDescriptorModule$2.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule$2.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule$3.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(e){return wrap(wellKnownSymbol$g(e),e)},DESCRIPTORS$c&&defineBuiltInAccessor$3(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$2(this).description}})),$$U({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$3,sham:!NATIVE_SYMBOL$3},{Symbol:$Symbol}),$forEach$1(objectKeys$1(WellKnownSymbolsStore$1),(function(e){defineWellKnownSymbol$l(e)})),$$U({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$3},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$U({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3,sham:!DESCRIPTORS$c},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$U({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3},{getOwnPropertyNames:$getOwnPropertyNames}),defineSymbolToPrimitive$1(),setToStringTag$7($Symbol,SYMBOL),hiddenKeys$1[HIDDEN]=!0;var NATIVE_SYMBOL$2=symbolConstructorDetection,symbolRegistryDetection=NATIVE_SYMBOL$2&&!!Symbol.for&&!!Symbol.keyFor,$$T=_export,getBuiltIn$b=getBuiltIn$g,hasOwn$a=hasOwnProperty_1,toString$a=toString$c,shared$2=sharedExports,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$2("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$2("symbol-to-string-registry");$$T({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$a(e);if(hasOwn$a(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$b("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$S=_export,hasOwn$9=hasOwnProperty_1,isSymbol$3=isSymbol$6,tryToString$4=tryToString$6,shared$1=sharedExports,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$1("symbol-to-string-registry");$$S({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$3(e))throw TypeError(tryToString$4(e)+" is not a symbol");if(hasOwn$9(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$m=functionUncurryThis,arraySlice$6=uncurryThis$m([].slice),uncurryThis$l=functionUncurryThis,isArray$a=isArray$d,isCallable$a=isCallable$m,classof$7=classofRaw$2,toString$9=toString$c,push$b=uncurryThis$l([].push),getJsonReplacerFunction=function(e){if(isCallable$a(e))return e;if(isArray$a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?push$b(r,o):"number"!=typeof o&&"Number"!=classof$7(o)&&"String"!=classof$7(o)||push$b(r,toString$9(o))}var a=r.length,i=!0;return function(e,t){if(i)return i=!1,t;if(isArray$a(this))return t;for(var n=0;n<a;n++)if(r[n]===e)return t}}},$$R=_export,getBuiltIn$a=getBuiltIn$g,apply$5=functionApply,call$d=functionCall,uncurryThis$k=functionUncurryThis,fails$n=fails$z,isCallable$9=isCallable$m,isSymbol$2=isSymbol$6,arraySlice$5=arraySlice$6,getReplacerFunction=getJsonReplacerFunction,NATIVE_SYMBOL$1=symbolConstructorDetection,$String$1=String,$stringify=getBuiltIn$a("JSON","stringify"),exec$3=uncurryThis$k(/./.exec),charAt$5=uncurryThis$k("".charAt),charCodeAt$2=uncurryThis$k("".charCodeAt),replace$5=uncurryThis$k("".replace),numberToString$1=uncurryThis$k(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$1||fails$n((function(){var e=getBuiltIn$a("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$n((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$5(arguments),n=getReplacerFunction(t);if(isCallable$9(n)||void 0!==e&&!isSymbol$2(e))return r[1]=function(e,t){if(isCallable$9(n)&&(t=call$d(n,this,$String$1(e),t)),!isSymbol$2(t))return t},apply$5($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$5(r,t-1),o=charAt$5(r,t+1);return exec$3(low,e)&&!exec$3(hi,o)||exec$3(hi,e)&&!exec$3(low,n)?"\\u"+numberToString$1(charCodeAt$2(e,0),16):e};$stringify&&$$R({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$5(arguments),o=apply$5(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$5(o,tester,fixIllFormed):o}});var $$Q=_export,NATIVE_SYMBOL=symbolConstructorDetection,fails$m=fails$z,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,toObject$7=toObject$b,FORCED$7=!NATIVE_SYMBOL||fails$m((function(){getOwnPropertySymbolsModule$2.f(1)}));$$Q({target:"Object",stat:!0,forced:FORCED$7},{getOwnPropertySymbols:function(e){var t=getOwnPropertySymbolsModule$2.f;return t?t(toObject$7(e)):[]}});var defineWellKnownSymbol$k=wellKnownSymbolDefine;defineWellKnownSymbol$k("asyncIterator");var defineWellKnownSymbol$j=wellKnownSymbolDefine;defineWellKnownSymbol$j("hasInstance");var defineWellKnownSymbol$i=wellKnownSymbolDefine;defineWellKnownSymbol$i("isConcatSpreadable");var defineWellKnownSymbol$h=wellKnownSymbolDefine;defineWellKnownSymbol$h("iterator");var defineWellKnownSymbol$g=wellKnownSymbolDefine;defineWellKnownSymbol$g("match");var defineWellKnownSymbol$f=wellKnownSymbolDefine;defineWellKnownSymbol$f("matchAll");var defineWellKnownSymbol$e=wellKnownSymbolDefine;defineWellKnownSymbol$e("replace");var defineWellKnownSymbol$d=wellKnownSymbolDefine;defineWellKnownSymbol$d("search");var defineWellKnownSymbol$c=wellKnownSymbolDefine;defineWellKnownSymbol$c("species");var defineWellKnownSymbol$b=wellKnownSymbolDefine;defineWellKnownSymbol$b("split");var defineWellKnownSymbol$a=wellKnownSymbolDefine,defineSymbolToPrimitive=symbolDefineToPrimitive;defineWellKnownSymbol$a("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$9=getBuiltIn$g,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$6=setToStringTag$8;defineWellKnownSymbol$9("toStringTag"),setToStringTag$6(getBuiltIn$9("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$e=global$q,setToStringTag$5=setToStringTag$8;setToStringTag$5(global$e.JSON,"JSON",!0);var IteratorPrototype$1,PrototypeOfArrayIteratorPrototype,arrayIterator,path$q=path$u,symbol$5=path$q.Symbol,iterators={},DESCRIPTORS$b=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$b&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$b||DESCRIPTORS$b&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},fails$l=fails$z,correctPrototypeGetter=!fails$l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$7=hasOwnProperty_1,isCallable$8=isCallable$m,toObject$6=toObject$b,sharedKey=sharedKey$4,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$1=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER$1?$Object.getPrototypeOf:function(e){var t=toObject$6(e);if(hasOwn$7(t,IE_PROTO))return t[IE_PROTO];var r=t.constructor;return isCallable$8(r)&&t instanceof r?r.prototype:t instanceof $Object?ObjectPrototype$1:null},fails$k=fails$z,isCallable$7=isCallable$m,isObject$c=isObject$k,create$c=objectCreate,getPrototypeOf$7=objectGetPrototypeOf,defineBuiltIn$5=defineBuiltIn$8,wellKnownSymbol$f=wellKnownSymbol$q,ITERATOR$8=wellKnownSymbol$f("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$7(getPrototypeOf$7(arrayIterator)))!==Object.prototype&&(IteratorPrototype$1=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$c(IteratorPrototype$1)||fails$k((function(){var e={};return IteratorPrototype$1[ITERATOR$8].call(e)!==e}));isCallable$7((IteratorPrototype$1=NEW_ITERATOR_PROTOTYPE?{}:create$c(IteratorPrototype$1))[ITERATOR$8])||defineBuiltIn$5(IteratorPrototype$1,ITERATOR$8,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$1,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype=iteratorsCore.IteratorPrototype,create$b=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$8,setToStringTag$4=setToStringTag$8,Iterators$5=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$b(IteratorPrototype,{next:createPropertyDescriptor$3(+!n,r)}),setToStringTag$4(e,o,!1,!0),Iterators$5[o]=returnThis$1,e},uncurryThis$j=functionUncurryThis,aCallable$8=aCallable$b,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$j(aCallable$8(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$6=isCallable$m,$String=String,$TypeError$9=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$9("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThisAccessor(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$9(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$P=_export,call$c=functionCall,FunctionName=functionName,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf$6=objectGetPrototypeOf,setToStringTag$3=setToStringTag$8,defineBuiltIn$4=defineBuiltIn$8,wellKnownSymbol$e=wellKnownSymbol$q,Iterators$4=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER;FunctionName.CONFIGURABLE,IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$7=wellKnownSymbol$e("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,a,i){createIteratorConstructor$1(r,t,n);var s,l,c,u=function(e){if(e===o&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in f)return f[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},p=t+" Iterator",$=!1,f=e.prototype,y=f[ITERATOR$7]||f["@@iterator"]||o&&f[o],d=!BUGGY_SAFARI_ITERATORS&&y||u(o),h="Array"==t&&f.entries||y;if(h&&(s=getPrototypeOf$6(h.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$3(s,p,!0,!0),Iterators$4[p]=returnThis),PROPER_FUNCTION_NAME$1&&o==VALUES&&y&&y.name!==VALUES&&($=!0,d=function(){return call$c(y,this)}),o)if(l={values:u(VALUES),keys:a?d:u(KEYS),entries:u(ENTRIES)},i)for(c in l)(BUGGY_SAFARI_ITERATORS||$||!(c in f))&&defineBuiltIn$4(f,c,l[c]);else $$P({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||$},l);return i&&f[ITERATOR$7]!==d&&defineBuiltIn$4(f,ITERATOR$7,d,{name:o}),Iterators$4[t]=d,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject$4=toIndexedObject$b,Iterators$3=iterators,InternalStateModule$4=internalState;objectDefineProperty.f;var defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR);defineIterator$1(Array,"Array",(function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject$4(e),index:0,kind:t})}),(function(){var e=getInternalState$1(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$1(void 0,!0)):createIterResultObject$1("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Iterators$3.Arguments=Iterators$3.Array;var domIterables={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},DOMIterables$1=domIterables,global$d=global$q,classof$6=classof$c,createNonEnumerableProperty$3=createNonEnumerableProperty$8,Iterators$2=iterators,wellKnownSymbol$d=wellKnownSymbol$q,TO_STRING_TAG$1=wellKnownSymbol$d("toStringTag");for(var COLLECTION_NAME in DOMIterables$1){var Collection=global$d[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$6(CollectionPrototype)!==TO_STRING_TAG$1&&createNonEnumerableProperty$3(CollectionPrototype,TO_STRING_TAG$1,COLLECTION_NAME),Iterators$2[COLLECTION_NAME]=Iterators$2.Array}var parent$1_=symbol$5,symbol$4=parent$1_,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("dispose");var parent$1Z=symbol$4,symbol$3=parent$1Z,defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("asyncDispose");var $$O=_export,getBuiltIn$8=getBuiltIn$g,uncurryThis$i=functionUncurryThis,Symbol$4=getBuiltIn$8("Symbol"),keyFor2=Symbol$4.keyFor,thisSymbolValue$1=uncurryThis$i(Symbol$4.prototype.valueOf);$$O({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==keyFor2(thisSymbolValue$1(e))}catch(e){return!1}}});for(var $$N=_export,shared=sharedExports,getBuiltIn$7=getBuiltIn$g,uncurryThis$h=functionUncurryThis,isSymbol$1=isSymbol$6,wellKnownSymbol$c=wellKnownSymbol$q,Symbol$3=getBuiltIn$7("Symbol"),$isWellKnown=Symbol$3.isWellKnown,getOwnPropertyNames4=getBuiltIn$7("Object","getOwnPropertyNames"),thisSymbolValue=uncurryThis$h(Symbol$3.prototype.valueOf),WellKnownSymbolsStore=shared("wks"),i$2=0,symbolKeys=getOwnPropertyNames4(Symbol$3),symbolKeysLength=symbolKeys.length;i$2<symbolKeysLength;i$2++)try{var symbolKey=symbolKeys[i$2];isSymbol$1(Symbol$3[symbolKey])&&wellKnownSymbol$c(symbolKey)}catch(e){}$$N({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if($isWellKnown&&$isWellKnown(e))return!0;try{for(var t=thisSymbolValue(e),r=0,n=getOwnPropertyNames4(WellKnownSymbolsStore),o=n.length;r<o;r++)if(WellKnownSymbolsStore[n[r]]==t)return!0}catch(e){}return!1}});var defineWellKnownSymbol$5=wellKnownSymbolDefine;defineWellKnownSymbol$5("matcher");var defineWellKnownSymbol$4=wellKnownSymbolDefine;defineWellKnownSymbol$4("metadataKey");var defineWellKnownSymbol$3=wellKnownSymbolDefine;defineWellKnownSymbol$3("observable");var defineWellKnownSymbol$2=wellKnownSymbolDefine;defineWellKnownSymbol$2("metadata");var defineWellKnownSymbol$1=wellKnownSymbolDefine;defineWellKnownSymbol$1("patternMatch");var defineWellKnownSymbol=wellKnownSymbolDefine;defineWellKnownSymbol("replaceAll");var parent$1Y=symbol$3,symbol$2=parent$1Y,symbol$1=symbol$2,_Symbol$1=getDefaultExportFromCjs(symbol$1),uncurryThis$g=functionUncurryThis,toIntegerOrInfinity$2=toIntegerOrInfinity$5,toString$8=toString$c,requireObjectCoercible$3=requireObjectCoercible$6,charAt$4=uncurryThis$g("".charAt),charCodeAt$1=uncurryThis$g("".charCodeAt),stringSlice$3=uncurryThis$g("".slice),createMethod$1=function(e){return function(t,r){var n,o,a=toString$8(requireObjectCoercible$3(t)),i=toIntegerOrInfinity$2(r),s=a.length;return i<0||i>=s?e?"":void 0:(n=charCodeAt$1(a,i))<55296||n>56319||i+1===s||(o=charCodeAt$1(a,i+1))<56320||o>57343?e?charAt$4(a,i):n:e?stringSlice$3(a,i,i+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$3=stringMultibyte.charAt,toString$7=toString$c,InternalStateModule$3=internalState,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$2,STRING_ITERATOR="String Iterator",setInternalState$3=InternalStateModule$3.set,getInternalState=InternalStateModule$3.getterFor(STRING_ITERATOR);defineIterator(String,"String",(function(e){setInternalState$3(this,{type:STRING_ITERATOR,string:toString$7(e),index:0})}),(function(){var e,t=getInternalState(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject(void 0,!0):(e=charAt$3(r,n),t.index+=e.length,createIterResultObject(e,!1))}));var WrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,iterator$4=WrappedWellKnownSymbolModule$1.f("iterator"),parent$1X=iterator$4,iterator$3=parent$1X,parent$1W=iterator$3,iterator$2=parent$1W,parent$1V=iterator$2,iterator$1=parent$1V,iterator=iterator$1,_Symbol$iterator=getDefaultExportFromCjs(iterator);function _typeof(e){return(_typeof="function"==typeof _Symbol$1&&"symbol"==typeof _Symbol$iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof _Symbol$1&&e.constructor===_Symbol$1&&e!==_Symbol$1.prototype?"symbol":typeof e})(e)}var defineProperty$9={exports:{}},$$M=_export,DESCRIPTORS$a=descriptors,defineProperty$8=objectDefineProperty.f;$$M({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$8,sham:!DESCRIPTORS$a},{defineProperty:defineProperty$8});var path$p=path$u,Object$4=path$p.Object,defineProperty$7=defineProperty$9.exports=function(e,t,r){return Object$4.defineProperty(e,t,r)};Object$4.defineProperty.sham&&(defineProperty$7.sham=!0);var definePropertyExports=defineProperty$9.exports,parent$1U=definePropertyExports,defineProperty$6=parent$1U,parent$1T=defineProperty$6,defineProperty$5=parent$1T,parent$1S=defineProperty$5,defineProperty$4=parent$1S,defineProperty$3=defineProperty$4,_Object$defineProperty$1=getDefaultExportFromCjs(defineProperty$3),$$L=_export,DESCRIPTORS$9=descriptors,create$a=objectCreate;$$L({target:"Object",stat:!0,sham:!DESCRIPTORS$9},{create:create$a});var path$o=path$u,Object$3=path$o.Object,create$9=function(e,t){return Object$3.create(e,t)},parent$1R=create$9,create$8=parent$1R,parent$1Q=create$8,create$7=parent$1Q,parent$1P=create$7,create$6=parent$1P,create$5=create$6,_Object$create$1=getDefaultExportFromCjs(create$5),$$K=_export,fails$j=fails$z,toObject$5=toObject$b,nativeGetPrototypeOf=objectGetPrototypeOf,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,FAILS_ON_PRIMITIVES$3=fails$j((function(){nativeGetPrototypeOf(1)}));$$K({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$5(e))}});var path$n=path$u,getPrototypeOf$5=path$n.Object.getPrototypeOf,parent$1O=getPrototypeOf$5,getPrototypeOf$4=parent$1O,parent$1N=getPrototypeOf$4,getPrototypeOf$3=parent$1N,parent$1M=getPrototypeOf$3,getPrototypeOf$2=parent$1M,getPrototypeOf$1=getPrototypeOf$2,_Object$getPrototypeOf=getDefaultExportFromCjs(getPrototypeOf$1),fails$i=fails$z,arrayMethodIsStrict$3=function(e,t){var r=[][e];return!!r&&fails$i((function(){r.call(null,t||function(){return 1},1)}))},$forEach=arrayIteration.forEach,arrayMethodIsStrict$2=arrayMethodIsStrict$3,STRICT_METHOD$1=arrayMethodIsStrict$2("forEach"),arrayForEach=STRICT_METHOD$1?[].forEach:function(e){return $forEach(this,e,arguments.length>1?arguments[1]:void 0)},$$J=_export,forEach$7=arrayForEach;$$J({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var path$m=path$u,entryVirtual$f=function(e){return path$m[e+"Prototype"]},entryVirtual$e=entryVirtual$f,forEach$6=entryVirtual$e("Array").forEach,parent$1L=forEach$6,forEach$5=parent$1L,classof$5=classof$c,hasOwn$6=hasOwnProperty_1,isPrototypeOf$g=objectIsPrototypeOf,method$c=forEach$5,ArrayPrototype$b=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},forEach$4=function(e){var t=e.forEach;return e===ArrayPrototype$b||isPrototypeOf$g(ArrayPrototype$b,e)&&t===ArrayPrototype$b.forEach||hasOwn$6(DOMIterables,classof$5(e))?method$c:t},parent$1K=forEach$4,forEach$3=parent$1K,parent$1J=forEach$3,forEach$2=parent$1J,forEach$1=forEach$2,_forEachInstanceProperty$1=getDefaultExportFromCjs(forEach$1),DESCRIPTORS$8=descriptors,isArray$9=isArray$d,$TypeError$8=TypeError,getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$8&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(e,t){if(isArray$9(e)&&!getOwnPropertyDescriptor$9(e,"length").writable)throw $TypeError$8("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$I=_export,toObject$4=toObject$b,lengthOfArrayLike$5=lengthOfArrayLike$a,setArrayLength$1=arraySetLength,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$3,fails$h=fails$z,INCORRECT_TO_LENGTH=fails$h((function(){return 4294967297!==[].push.call({length:4294967296},1)})),properErrorOnNonWritableLength=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},FORCED$6=INCORRECT_TO_LENGTH||!properErrorOnNonWritableLength();$$I({target:"Array",proto:!0,arity:1,forced:FORCED$6},{push:function(e){var t=toObject$4(this),r=lengthOfArrayLike$5(t),n=arguments.length;doesNotExceedSafeInteger$1(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return setArrayLength$1(t,r),r}});var entryVirtual$d=entryVirtual$f,push$a=entryVirtual$d("Array").push,isPrototypeOf$f=objectIsPrototypeOf,method$b=push$a,ArrayPrototype$a=Array.prototype,push$9=function(e){var t=e.push;return e===ArrayPrototype$a||isPrototypeOf$f(ArrayPrototype$a,e)&&t===ArrayPrototype$a.push?method$b:t},parent$1I=push$9,push$8=parent$1I,parent$1H=push$8,push$7=parent$1H,parent$1G=push$7,push$6=parent$1G,push$5=push$6,_pushInstanceProperty=getDefaultExportFromCjs(push$5),$$H=_export,setPrototypeOf$6=objectSetPrototypeOf;$$H({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$6});var path$l=path$u,setPrototypeOf$5=path$l.Object.setPrototypeOf,parent$1F=setPrototypeOf$5,setPrototypeOf$4=parent$1F,parent$1E=setPrototypeOf$4,setPrototypeOf$3=parent$1E,parent$1D=setPrototypeOf$3,setPrototypeOf$2=parent$1D,setPrototypeOf$1=setPrototypeOf$2,_Object$setPrototypeOf=getDefaultExportFromCjs(setPrototypeOf$1),getBuiltIn$6=getBuiltIn$g,uncurryThis$f=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$e,concat$9=uncurryThis$f([].concat),ownKeys$4=getBuiltIn$6("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$9(t,r(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys$3=ownKeys$4,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys$3(t),o=definePropertyModule.f,a=getOwnPropertyDescriptorModule$1.f,i=0;i<n.length;i++){var s=n[i];hasOwn$5(e,s)||r&&hasOwn$5(r,s)||o(e,s,a(t,s))}},isObject$b=isObject$k,createNonEnumerableProperty$2=createNonEnumerableProperty$8,installErrorCause$1=function(e,t){isObject$b(t)&&"cause"in t&&createNonEnumerableProperty$2(e,"cause",t.cause)},uncurryThis$e=functionUncurryThis,$Error$1=Error,replace$4=uncurryThis$e("".replace),TEST=String($Error$1("zxcasd").stack),V8_OR_CHAKRA_STACK_ENTRY=/\n\s*at [^:]*:[^\n]*/,IS_V8_OR_CHAKRA_STACK=V8_OR_CHAKRA_STACK_ENTRY.test(TEST),errorStackClear=function(e,t){if(IS_V8_OR_CHAKRA_STACK&&"string"==typeof e&&!$Error$1.prepareStackTrace)for(;t--;)e=replace$4(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},fails$g=fails$z,createPropertyDescriptor$2=createPropertyDescriptor$8,errorStackInstallable=!fails$g((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$2(1,7)),7!==e.stack)})),createNonEnumerableProperty$1=createNonEnumerableProperty$8,clearErrorStack=errorStackClear,ERROR_STACK_INSTALLABLE=errorStackInstallable,captureStackTrace=Error.captureStackTrace,errorStackInstall=function(e,t,r,n){ERROR_STACK_INSTALLABLE&&(captureStackTrace?captureStackTrace(e,t):createNonEnumerableProperty$1(e,"stack",clearErrorStack(r,n)))},wellKnownSymbol$b=wellKnownSymbol$q,Iterators$1=iterators,ITERATOR$6=wellKnownSymbol$b("iterator"),ArrayPrototype$9=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype$9[ITERATOR$6]===e)},classof$4=classof$c,getMethod$1=getMethod$3,isNullOrUndefined$1=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$a=wellKnownSymbol$q,ITERATOR$5=wellKnownSymbol$a("iterator"),getIteratorMethod$a=function(e){if(!isNullOrUndefined$1(e))return getMethod$1(e,ITERATOR$5)||getMethod$1(e,"@@iterator")||Iterators[classof$4(e)]},call$b=functionCall,aCallable$7=aCallable$b,anObject$7=anObject$e,tryToString$3=tryToString$6,getIteratorMethod$9=getIteratorMethod$a,$TypeError$7=TypeError,getIterator$3=function(e,t){var r=arguments.length<2?getIteratorMethod$9(e):t;if(aCallable$7(r))return anObject$7(call$b(r,e));throw $TypeError$7(tryToString$3(e)+" is not iterable")},call$a=functionCall,anObject$6=anObject$e,getMethod=getMethod$3,iteratorClose$2=function(e,t,r){var n,o;anObject$6(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$a(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$6(n),r},bind$f=functionBindContext,call$9=functionCall,anObject$5=anObject$e,tryToString$2=tryToString$6,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$4=lengthOfArrayLike$a,isPrototypeOf$e=objectIsPrototypeOf,getIterator$2=getIterator$3,getIteratorMethod$8=getIteratorMethod$a,iteratorClose$1=iteratorClose$2,$TypeError$6=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$5=function(e,t,r){var n,o,a,i,s,l,c,u=r&&r.that,p=!(!r||!r.AS_ENTRIES),$=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),d=bind$f(t,u),h=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},g=function(e){return p?(anObject$5(e),y?d(e[0],e[1],h):d(e[0],e[1])):y?d(e,h):d(e)};if($)n=e.iterator;else if(f)n=e;else{if(!(o=getIteratorMethod$8(e)))throw $TypeError$6(tryToString$2(e)+" is not iterable");if(isArrayIteratorMethod$1(o)){for(a=0,i=lengthOfArrayLike$4(e);i>a;a++)if((s=g(e[a]))&&isPrototypeOf$e(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$2(e,o)}for(l=$?e.next:n.next;!(c=call$9(l,n)).done;){try{s=g(c.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$e(ResultPrototype,s))return s}return new Result(!1)},toString$6=toString$c,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$6(e)},$$G=_export,isPrototypeOf$d=objectIsPrototypeOf,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,copyConstructorProperties=copyConstructorProperties$1,create$4=objectCreate,createNonEnumerableProperty=createNonEnumerableProperty$8,createPropertyDescriptor$1=createPropertyDescriptor$8,installErrorCause=installErrorCause$1,installErrorStack=errorStackInstall,iterate$4=iterate$5,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$9=wellKnownSymbol$q,TO_STRING_TAG=wellKnownSymbol$9("toStringTag"),$Error=Error,push$4=[].push,$AggregateError=function(e,t){var r,n=isPrototypeOf$d(AggregateErrorPrototype,this);setPrototypeOf?r=setPrototypeOf($Error(),n?getPrototypeOf2(this):AggregateErrorPrototype):(r=n?this:create$4(AggregateErrorPrototype),createNonEnumerableProperty(r,TO_STRING_TAG,"Error")),void 0!==t&&createNonEnumerableProperty(r,"message",normalizeStringArgument(t)),installErrorStack(r,$AggregateError,r.stack,1),arguments.length>2&&installErrorCause(r,arguments[2]);var o=[];return iterate$4(e,push$4,{that:o}),createNonEnumerableProperty(r,"errors",o),r};setPrototypeOf?setPrototypeOf($AggregateError,$Error):copyConstructorProperties($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$4($Error.prototype,{constructor:createPropertyDescriptor$1(1,$AggregateError),message:createPropertyDescriptor$1(1,""),name:createPropertyDescriptor$1(1,"AggregateError")});$$G({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location,defer,channel,port,classof$3=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classof$3(process),getBuiltIn$5=getBuiltIn$g,defineBuiltInAccessor$2=defineBuiltInAccessor$4,wellKnownSymbol$8=wellKnownSymbol$q,DESCRIPTORS$7=descriptors,SPECIES$3=wellKnownSymbol$8("species"),setSpecies$1=function(e){var t=getBuiltIn$5(e);DESCRIPTORS$7&&t&&!t[SPECIES$3]&&defineBuiltInAccessor$2(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$c=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$3=function(e,t){if(isPrototypeOf$c(t,e))return e;throw $TypeError$5("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$1=tryToString$6,$TypeError$4=TypeError,aConstructor$2=function(e){if(isConstructor$2(e))return e;throw $TypeError$4(tryToString$1(e)+" is not a constructor")},anObject$4=anObject$e,aConstructor$1=aConstructor$2,isNullOrUndefined=isNullOrUndefined$4,wellKnownSymbol$7=wellKnownSymbol$q,SPECIES$2=wellKnownSymbol$7("species"),speciesConstructor$2=function(e,t){var r,n=anObject$4(e).constructor;return void 0===n||isNullOrUndefined(r=anObject$4(n)[SPECIES$2])?t:aConstructor$1(r)},$TypeError$3=TypeError,validateArgumentsLength$5=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$c=global$q,apply$4=functionApply,bind$e=functionBindContext,isCallable$5=isCallable$m,hasOwn$4=hasOwnProperty_1,fails$f=fails$z,html=html$2,arraySlice$4=arraySlice$6,createElement=documentCreateElement$1,validateArgumentsLength$4=validateArgumentsLength$5,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$c.setImmediate,clear=global$c.clearImmediate,process$3=global$c.process,Dispatch=global$c.Dispatch,Function$2=global$c.Function,MessageChannel=global$c.MessageChannel,String$1=global$c.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange";fails$f((function(){$location=global$c.location}));var run=function(e){if(hasOwn$4(queue$2,e)){var t=queue$2[e];delete queue$2[e],t()}},runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$c.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set&&clear||(set=function(e){validateArgumentsLength$4(arguments.length,1);var t=isCallable$5(e)?e:Function$2(e),r=arraySlice$4(arguments,1);return queue$2[++counter]=function(){apply$4(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$e(port.postMessage,port)):global$c.addEventListener&&isCallable$5(global$c.postMessage)&&!global$c.importScripts&&$location&&"file:"!==$location.protocol&&!fails$f(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$c.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var task$1={set:set,clear:clear},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var notify$1,toggle,node,promise$6,then,queue$1=Queue$2,userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$b=global$q,bind$d=functionBindContext,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$b.MutationObserver||global$b.WebKitMutationObserver,document$2=global$b.document,process$2=global$b.process,Promise$1=global$b.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$8(global$b,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;if(!microtask$1){var queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&&notify$1(),e}e&&e.enter()};IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise$6=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$d(promise$6.then,promise$6),notify$1=function(){then(flush)}):IS_NODE$2?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$d(macrotask,global$b),notify$1=function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}}var microtask_1=microtask$1,hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$6=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$a=global$q,promiseNativeConstructor=global$a.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!IS_DENO$1&&!IS_NODE$1&&"object"==typeof window&&"object"==typeof document,global$9=global$q,NativePromiseConstructor$5=promiseNativeConstructor,isCallable$4=isCallable$m,isForced=isForced_1,inspectSource=inspectSource$2,wellKnownSymbol$6=wellKnownSymbol$q,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,NativePromisePrototype$2=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,SPECIES$1=wellKnownSymbol$6("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$9.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",(function(){var e=inspectSource(NativePromiseConstructor$5),t=e!==String(NativePromiseConstructor$5);if(!t&&66===V8_VERSION)return!0;if(!NativePromisePrototype$2.catch||!NativePromisePrototype$2.finally)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){var r=new NativePromiseConstructor$5((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$1]=n,!(SUBCLASSING=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1})),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$6=aCallable$b,$TypeError$2=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$2("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$6(t),this.reject=aCallable$6(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var $$F=_export,IS_NODE=engineIsNode,global$8=global$q,call$8=functionCall,defineBuiltIn$3=defineBuiltIn$8,setToStringTag$2=setToStringTag$8,setSpecies=setSpecies$1,aCallable$5=aCallable$b,isCallable$3=isCallable$m,isObject$a=isObject$k,anInstance$2=anInstance$3,speciesConstructor$1=speciesConstructor$2,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$5=perform$6,Queue=queue$1,InternalStateModule$2=internalState,NativePromiseConstructor$4=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$6=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT;PromiseConstructorDetection.SUBCLASSING;var Internal,OwnPromiseCapability,PromiseWrapper,getInternalPromiseState=InternalStateModule$2.getterFor(PROMISE),setInternalState$2=InternalStateModule$2.set,NativePromisePrototype$1=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,PromiseConstructor=NativePromiseConstructor$4,PromisePrototype=NativePromisePrototype$1,TypeError$3=global$8.TypeError,document$1=global$8.document,process$1=global$8.process,newPromiseCapability$1=newPromiseCapabilityModule$6.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$8.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$a(e)||!isCallable$3(t=e.then))&&t},callReaction=function(e,t){var r,n,o,a=t.value,i=t.state==FULFILLED,s=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),o=!0)),r===e.promise?c(TypeError$3("Promise-chain cycle")):(n=isThenable(r))?call$8(n,r,l,c):l(r)):c(a)}catch(e){u&&!o&&u.exit(),c(e)}},notify=function(e,t){e.notified||(e.notified=!0,microtask((function(){for(var r,n=e.reactions;r=n.get();)callReaction(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled(e)})))},dispatchEvent=function(e,t,r){var n,o;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$8.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$8["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$8(task,global$8,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$5((function(){IS_NODE?process$1.emit("unhandledRejection",n,r):dispatchEvent(UNHANDLED_REJECTION,r,n)})),e.rejection=IS_NODE||isUnhandled(e)?UNHANDLED:HANDLED,t.error))throw t.value}))},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e){call$8(task,global$8,(function(){var t=e.facade;IS_NODE?process$1.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$c=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$3("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$8(n,t,bind$c(internalResolve,r,e),bind$c(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=FULFILLED,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$2(this,PromisePrototype),aCallable$5(e),call$8(Internal,this);var t=getInternalPromiseState(this);try{e(bind$c(internalResolve,t),bind$c(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$2(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$3(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$1(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process$1.domain:void 0,r.state==PENDING?r.reactions.add(n):microtask((function(){callReaction(n,r)})),n.promise})),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$c(internalResolve,t),this.reject=bind$c(internalReject,t)},newPromiseCapabilityModule$6.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),$$F({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$2(PromiseConstructor,PROMISE,!1,!0),setSpecies(PROMISE);var wellKnownSymbol$5=wellKnownSymbol$q,ITERATOR$4=wellKnownSymbol$5("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$4]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$2=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n={};n[ITERATOR$4]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$3=promiseNativeConstructor,checkCorrectnessOfIteration$1=checkCorrectnessOfIteration$2,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$1((function(e){NativePromiseConstructor$3.all(e).then(void 0,(function(){}))})),$$E=_export,call$7=functionCall,aCallable$4=aCallable$b,newPromiseCapabilityModule$5=newPromiseCapability$2,perform$4=perform$6,iterate$3=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration;$$E({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{all:function(e){var t=this,r=newPromiseCapabilityModule$5.f(t),n=r.resolve,o=r.reject,a=perform$4((function(){var r=aCallable$4(t.resolve),a=[],i=0,s=1;iterate$3(e,(function(e){var l=i++,c=!1;s++,call$7(r,t,e).then((function(e){c||(c=!0,a[l]=e,--s||n(a))}),o)})),--s||n(a)}));return a.error&&o(a.value),r.promise}});var $$D=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$2=promiseNativeConstructor;promiseNativeConstructor&&promiseNativeConstructor.prototype,$$D({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$C=_export,call$6=functionCall,aCallable$3=aCallable$b,newPromiseCapabilityModule$4=newPromiseCapability$2,perform$3=perform$6,iterate$2=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration;$$C({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{race:function(e){var t=this,r=newPromiseCapabilityModule$4.f(t),n=r.reject,o=perform$3((function(){var o=aCallable$3(t.resolve);iterate$2(e,(function(e){call$6(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$B=_export,call$5=functionCall,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$B({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule$3.f(this);return call$5(t.reject,void 0,e),t.promise}});var anObject$3=anObject$e,isObject$9=isObject$k,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$3(e),isObject$9(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$A=_export,getBuiltIn$4=getBuiltIn$g,IS_PURE$1=isPure,NativePromiseConstructor$1=promiseNativeConstructor,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2,PromiseConstructorWrapper=getBuiltIn$4("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR;$$A({target:"Promise",stat:!0,forced:IS_PURE$1},{resolve:function(e){return promiseResolve$1(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$1:this,e)}});var $$z=_export,call$4=functionCall,aCallable$2=aCallable$b,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$2=perform$6,iterate$1=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$z({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,a=perform$2((function(){var r=aCallable$2(t.resolve),o=[],a=0,i=1;iterate$1(e,(function(e){var s=a++,l=!1;i++,call$4(r,t,e).then((function(e){l||(l=!0,o[s]={status:"fulfilled",value:e},--i||n(o))}),(function(e){l||(l=!0,o[s]={status:"rejected",reason:e},--i||n(o))}))})),--i||n(o)}));return a.error&&o(a.value),r.promise}});var $$y=_export,call$3=functionCall,aCallable$1=aCallable$b,getBuiltIn$3=getBuiltIn$g,newPromiseCapabilityModule$1=newPromiseCapability$2,perform$1=perform$6,iterate=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,PROMISE_ANY_ERROR="No one promise resolved";$$y({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{any:function(e){var t=this,r=getBuiltIn$3("AggregateError"),n=newPromiseCapabilityModule$1.f(t),o=n.resolve,a=n.reject,i=perform$1((function(){var n=aCallable$1(t.resolve),i=[],s=0,l=1,c=!1;iterate(e,(function(e){var u=s++,p=!1;l++,call$3(n,t,e).then((function(e){p||c||(c=!0,o(e))}),(function(e){p||c||(p=!0,i[u]=e,--l||a(new r(i,PROMISE_ANY_ERROR)))}))})),--l||a(new r(i,PROMISE_ANY_ERROR))}));return i.error&&a(i.value),n.promise}});var $$x=_export,NativePromiseConstructor=promiseNativeConstructor,fails$e=fails$z,getBuiltIn$2=getBuiltIn$g,isCallable$2=isCallable$m,speciesConstructor=speciesConstructor$2,promiseResolve=promiseResolve$2,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$e((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));$$x({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor(this,getBuiltIn$2("Promise")),r=isCallable$2(e);return this.then(r?function(r){return promiseResolve(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve(t,e()).then((function(){throw r}))}:e)}});var path$k=path$u,promise$5=path$k.Promise,parent$1C=promise$5,promise$4=parent$1C,parent$1B=promise$4,promise$3=parent$1B,$$w=_export,newPromiseCapabilityModule=newPromiseCapability$2,perform=perform$6;$$w({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=newPromiseCapabilityModule.f(this),r=perform(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var parent$1A=promise$3,promise$2=parent$1A,promise$1=promise$2,_Promise$1=getDefaultExportFromCjs(promise$1),$$v=_export,uncurryThis$d=functionUncurryThis,isArray$8=isArray$d,nativeReverse=uncurryThis$d([].reverse),test=[1,2];$$v({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function(){return isArray$8(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$c=entryVirtual$f,reverse$5=entryVirtual$c("Array").reverse,isPrototypeOf$b=objectIsPrototypeOf,method$a=reverse$5,ArrayPrototype$8=Array.prototype,reverse$4=function(e){var t=e.reverse;return e===ArrayPrototype$8||isPrototypeOf$b(ArrayPrototype$8,e)&&t===ArrayPrototype$8.reverse?method$a:t},parent$1z=reverse$4,reverse$3=parent$1z,parent$1y=reverse$3,reverse$2=parent$1y,parent$1x=reverse$2,reverse$1=parent$1x,reverse2=reverse$1,_reverseInstanceProperty=getDefaultExportFromCjs(reverse2),$$u=_export,isArray$7=isArray$d,isConstructor$1=isConstructor$4,isObject$8=isObject$k,toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$3=lengthOfArrayLike$a,toIndexedObject$3=toIndexedObject$b,createProperty$3=createProperty$6,wellKnownSymbol$4=wellKnownSymbol$q,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$5,nativeSlice=arraySlice$6,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("slice"),SPECIES=wellKnownSymbol$4("species"),$Array$1=Array,max$1=Math.max;$$u({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{slice:function(e,t){var r,n,o,a=toIndexedObject$3(this),i=lengthOfArrayLike$3(a),s=toAbsoluteIndex$1(e,i),l=toAbsoluteIndex$1(void 0===t?i:t,i);if(isArray$7(a)&&(r=a.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$7(r.prototype))||isObject$8(r)&&null===(r=r[SPECIES]))&&(r=void 0),r===$Array$1||void 0===r))return nativeSlice(a,s,l);for(n=new(void 0===r?$Array$1:r)(max$1(l-s,0)),o=0;s<l;s++,o++)s in a&&createProperty$3(n,o,a[s]);return n.length=o,n}});var entryVirtual$b=entryVirtual$f,slice$6=entryVirtual$b("Array").slice,isPrototypeOf$a=objectIsPrototypeOf,method$9=slice$6,ArrayPrototype$7=Array.prototype,slice$5=function(e){var t=e.slice;return e===ArrayPrototype$7||isPrototypeOf$a(ArrayPrototype$7,e)&&t===ArrayPrototype$7.slice?method$9:t},parent$1w=slice$5,slice$4=parent$1w,parent$1v=slice$4,slice$3=parent$1v,parent$1u=slice$3,slice$2=parent$1u,slice$1=slice$2,_sliceInstanceProperty$1=getDefaultExportFromCjs(slice$1);function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty$1||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol$1?_Symbol$1:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return _Object$defineProperty$1(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a=t&&t.prototype instanceof $?t:$,i=_Object$create$1(a.prototype),s=new P(o||[]);return n(i,"_invoke",{value:b(e,r,s)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function $(){}function f(){}function y(){}var d={};l(d,a,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(I([])));h&&h!==t&&r.call(h,a)&&(d=h);var g=y.prototype=$.prototype=_Object$create$1(d);function m(e){var t;_forEachInstanceProperty$1(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,a,i,s){var l=u(e[n],e,a);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==_typeof(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,i,s)}),(function(e){o("throw",e,i,s)})):t.resolve(p).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,s)}))}s(l.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=S(i,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function v(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),_pushInstanceProperty(t=this.tryEntries).call(t,r)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty$1(e).call(e,v,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=y,n(g,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:f,configurable:!0}),f.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=_Object$create$1(g),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,i,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=_Promise$1);var i=new _(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},m(g),l(g,s,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)_pushInstanceProperty(r).call(r,n);return _reverseInstanceProperty(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=I,P.prototype={constructor:P,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,_forEachInstanceProperty$1(t=this.tryEntries).call(t,O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty$1(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}var $$t=_export,toObject$3=toObject$b,nativeKeys=objectKeys$3,fails$d=fails$z,FAILS_ON_PRIMITIVES$2=fails$d((function(){nativeKeys(1)}));$$t({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{keys:function(e){return nativeKeys(toObject$3(e))}});var path$j=path$u,keys$5=path$j.Object.keys,parent$1t=keys$5,keys$4=parent$1t,parent$1s=keys$4,keys$3=parent$1s,parent$1r=keys$3,keys$2=parent$1r,keys$1=keys$2,_Object$keys$1=getDefaultExportFromCjs(keys$1),path$i=path$u,getOwnPropertySymbols$5=path$i.Object.getOwnPropertySymbols,parent$1q=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$1q,parent$1p=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$1p,parent$1o=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$1o,getOwnPropertySymbols$1=getOwnPropertySymbols$2,_Object$getOwnPropertySymbols$1=getDefaultExportFromCjs(getOwnPropertySymbols$1),$$s=_export,$filter=arrayIteration.filter,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("filter");$$s({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$2},{filter:function(e){return $filter(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$a=entryVirtual$f,filter$6=entryVirtual$a("Array").filter,isPrototypeOf$9=objectIsPrototypeOf,method$8=filter$6,ArrayPrototype$6=Array.prototype,filter$5=function(e){var t=e.filter;return e===ArrayPrototype$6||isPrototypeOf$9(ArrayPrototype$6,e)&&t===ArrayPrototype$6.filter?method$8:t},parent$1n=filter$5,filter$4=parent$1n,parent$1m=filter$4,filter$3=parent$1m,parent$1l=filter$3,filter$2=parent$1l,filter$1=filter$2,_filterInstanceProperty$1=getDefaultExportFromCjs(filter$1),getOwnPropertyDescriptor$7={exports:{}},$$r=_export,fails$c=fails$z,toIndexedObject$2=toIndexedObject$b,nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$6=descriptors,FORCED$5=!DESCRIPTORS$6||fails$c((function(){nativeGetOwnPropertyDescriptor(1)}));$$r({target:"Object",stat:!0,forced:FORCED$5,sham:!DESCRIPTORS$6},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor(toIndexedObject$2(e),t)}});var path$h=path$u,Object$2=path$h.Object,getOwnPropertyDescriptor$6=getOwnPropertyDescriptor$7.exports=function(e,t){return Object$2.getOwnPropertyDescriptor(e,t)};Object$2.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$6.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$7.exports,parent$1k=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor$5=parent$1k,parent$1j=getOwnPropertyDescriptor$5,getOwnPropertyDescriptor$4=parent$1j,parent$1i=getOwnPropertyDescriptor$4,getOwnPropertyDescriptor$3=parent$1i,getOwnPropertyDescriptor$2=getOwnPropertyDescriptor$3,_Object$getOwnPropertyDescriptor$1=getDefaultExportFromCjs(getOwnPropertyDescriptor$2),$$q=_export,DESCRIPTORS$5=descriptors,ownKeys$2=ownKeys$4,toIndexedObject$1=toIndexedObject$b,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,createProperty$2=createProperty$6;$$q({target:"Object",stat:!0,sham:!DESCRIPTORS$5},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject$1(e),o=getOwnPropertyDescriptorModule.f,a=ownKeys$2(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&createProperty$2(i,t,r);return i}});var path$g=path$u,getOwnPropertyDescriptors$5=path$g.Object.getOwnPropertyDescriptors,parent$1h=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$1h,parent$1g=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$1g,parent$1f=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$1f,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,_Object$getOwnPropertyDescriptors$1=getDefaultExportFromCjs(getOwnPropertyDescriptors$1),defineProperties$7={exports:{}},$$p=_export,DESCRIPTORS$4=descriptors,defineProperties$6=objectDefineProperties.f;$$p({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$4},{defineProperties:defineProperties$6});var path$f=path$u,Object$1=path$f.Object,defineProperties$5=defineProperties$7.exports=function(e,t){return Object$1.defineProperties(e,t)};Object$1.defineProperties.sham&&(defineProperties$5.sham=!0);var definePropertiesExports=defineProperties$7.exports,parent$1e=definePropertiesExports,defineProperties$4=parent$1e,parent$1d=defineProperties$4,defineProperties$3=parent$1d,parent$1c=defineProperties$3,defineProperties$2=parent$1c,defineProperties$1=defineProperties$2,_Object$defineProperties$1=getDefaultExportFromCjs(defineProperties$1),WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,toPrimitive$4=WrappedWellKnownSymbolModule.f("toPrimitive"),parent$1b=toPrimitive$4,toPrimitive$3=parent$1b,parent$1a=toPrimitive$3,toPrimitive$2=parent$1a,parent$19=toPrimitive$2,toPrimitive$1=parent$19,toPrimitive=toPrimitive$1,_Symbol$toPrimitive=getDefaultExportFromCjs(toPrimitive);function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[_Symbol$toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _defineProperty$1(e,t,r){return(t=_toPropertyKey(t))in e?_Object$defineProperty$1(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys$1(e,t){var r=_Object$keys$1(e);if(_Object$getOwnPropertySymbols$1){var n=_Object$getOwnPropertySymbols$1(e);t&&(n=_filterInstanceProperty$1(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor$1(e,t).enumerable}))),_pushInstanceProperty(r).apply(r,n)}return r}function _objectSpread2$1(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?_forEachInstanceProperty$1(r=ownKeys$1(Object(o),!0)).call(r,(function(t){_defineProperty$1(e,t,o[t])})):_Object$getOwnPropertyDescriptors$1?_Object$defineProperties$1(e,_Object$getOwnPropertyDescriptors$1(o)):_forEachInstanceProperty$1(n=ownKeys$1(Object(o))).call(n,(function(t){_Object$defineProperty$1(e,t,_Object$getOwnPropertyDescriptor$1(o,t))}))}return e}function asyncGeneratorStep(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):_Promise$1.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new _Promise$1((function(n,o){var a=e.apply(t,r);function i(e){asyncGeneratorStep(a,n,o,i,s,"next",e)}function s(e){asyncGeneratorStep(a,n,o,i,s,"throw",e)}i(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty$1(e,_toPropertyKey(n.key),n)}}function _createClass$1(e,t,r){return t&&_defineProperties$1(e.prototype,t),r&&_defineProperties$1(e,r),_Object$defineProperty$1(e,"prototype",{writable:!1}),e}var uncurryThis$c=functionUncurryThis,aCallable=aCallable$b,isObject$7=isObject$k,hasOwn$3=hasOwnProperty_1,arraySlice$3=arraySlice$6,NATIVE_BIND=functionBindNative,$Function=Function,concat$8=uncurryThis$c([].concat),join$3=uncurryThis$c([].join),factories={},construct$5=function(e,t,r){if(!hasOwn$3(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join$3(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND?$Function.bind:function(e){var t=aCallable(this),r=t.prototype,n=arraySlice$3(arguments,1),o=function(){var r=concat$8(n,arraySlice$3(arguments));return this instanceof o?construct$5(t,r.length,r):t.apply(e,r)};return isObject$7(r)&&(o.prototype=r),o},$$o=_export,bind$b=functionBind;$$o({target:"Function",proto:!0,forced:Function.bind!==bind$b},{bind:bind$b});var entryVirtual$9=entryVirtual$f,bind$a=entryVirtual$9("Function").bind,isPrototypeOf$8=objectIsPrototypeOf,method$7=bind$a,FunctionPrototype=Function.prototype,bind$9=function(e){var t=e.bind;return e===FunctionPrototype||isPrototypeOf$8(FunctionPrototype,e)&&t===FunctionPrototype.bind?method$7:t},parent$18=bind$9,bind$8=parent$18,parent$17=bind$8,bind$7=parent$17,parent$16=bind$7,bind$6=parent$16,bind$5=bind$6,_bindInstanceProperty$1=getDefaultExportFromCjs(bind$5);function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(r=_Object$setPrototypeOf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=_Object$create$1(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty$1(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}var $$n=_export,getBuiltIn$1=getBuiltIn$g,apply$3=functionApply,bind$4=functionBind,aConstructor=aConstructor$2,anObject$2=anObject$e,isObject$6=isObject$k,create$3=objectCreate,fails$b=fails$z,nativeConstruct=getBuiltIn$1("Reflect","construct"),ObjectPrototype=Object.prototype,push$3=[].push,NEW_TARGET_BUG=fails$b((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$b((function(){nativeConstruct((function(){}))})),FORCED$4=NEW_TARGET_BUG||ARGS_BUG;$$n({target:"Reflect",stat:!0,forced:FORCED$4,sham:FORCED$4},{construct:function(e,t){aConstructor(e),anObject$2(t);var r=arguments.length<3?e:aConstructor(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return apply$3(push$3,n,t),new(apply$3(bind$4,e,n))}var o=r.prototype,a=create$3(isObject$6(o)?o:ObjectPrototype),i=apply$3(e,a,t);return isObject$6(i)?i:a}});var path$e=path$u,construct$4=path$e.Reflect.construct,parent$15=construct$4,construct$3=parent$15,parent$14=construct$3,construct$2=parent$14,parent$13=construct$2,construct$1=parent$13,construct2=construct$1,_Reflect$construct=getDefaultExportFromCjs(construct2);function _getPrototypeOf(e){var t;return(_getPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(t=_Object$getPrototypeOf).call(t):function(e){return e.__proto__||_Object$getPrototypeOf(e)})(e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!_Reflect$construct)return!1;if(_Reflect$construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=_Reflect$construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}var $$m=_export,isArray$6=isArray$d;$$m({target:"Array",stat:!0},{isArray:isArray$6});var path$d=path$u,isArray$5=path$d.Array.isArray,parent$12=isArray$5,isArray$4=parent$12,parent$11=isArray$4,isArray$3=parent$11,parent$10=isArray$3,isArray$2=parent$10,isArray$1=isArray$2,_Array$isArray$1=getDefaultExportFromCjs(isArray$1);function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _arrayWithoutHoles(e){if(_Array$isArray$1(e))return _arrayLikeToArray(e)}var getIteratorMethod$7=getIteratorMethod$a,getIteratorMethod_1=getIteratorMethod$7,parent$$=getIteratorMethod_1,getIteratorMethod$6=parent$$,parent$_=getIteratorMethod$6,getIteratorMethod$5=parent$_,parent$Z=getIteratorMethod$5,getIteratorMethod$4=parent$Z,getIteratorMethod$3=getIteratorMethod$4,_getIteratorMethod$1=getDefaultExportFromCjs(getIteratorMethod$3),anObject$1=anObject$e,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$1(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$3=functionBindContext,call$2=functionCall,toObject$2=toObject$b,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$2,isConstructor3=isConstructor$4,lengthOfArrayLike$2=lengthOfArrayLike$a,createProperty$1=createProperty$6,getIterator$1=getIterator$3,getIteratorMethod$2=getIteratorMethod$a,$Array=Array,arrayFrom$1=function(e){var t=toObject$2(e),r=isConstructor3(this),n=arguments.length,o=n>1?arguments[1]:void 0,a=void 0!==o;a&&(o=bind$3(o,n>2?arguments[2]:void 0));var i,s,l,c,u,p,$=getIteratorMethod$2(t),f=0;if(!$||this===$Array&&isArrayIteratorMethod($))for(i=lengthOfArrayLike$2(t),s=r?new this(i):$Array(i);i>f;f++)p=a?o(t[f],f):t[f],createProperty$1(s,f,p);else for(u=(c=getIterator$1(t,$)).next,s=r?new this:[];!(l=call$2(u,c)).done;f++)p=a?callWithSafeIterationClosing(c,o,[l.value,f],!0):l.value,createProperty$1(s,f,p);return s.length=f,s},$$l=_export,from$5=arrayFrom$1,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,INCORRECT_ITERATION=!checkCorrectnessOfIteration((function(e){Array.from(e)}));$$l({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$5});var path$c=path$u,from$4=path$c.Array.from,parent$Y=from$4,from$3=parent$Y,parent$X=from$3,from$2=parent$X,parent$W=from$2,from$1=parent$W,from2=from$1,_Array$from=getDefaultExportFromCjs(from2);function _iterableToArray(e){if(void 0!==_Symbol$1&&null!=_getIteratorMethod$1(e)||null!=e["@@iterator"])return _Array$from(e)}function _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=_sliceInstanceProperty$1(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?_Array$from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var entryVirtual$8=entryVirtual$f,concat$7=entryVirtual$8("Array").concat,isPrototypeOf$7=objectIsPrototypeOf,method$6=concat$7,ArrayPrototype$5=Array.prototype,concat$6=function(e){var t=e.concat;return e===ArrayPrototype$5||isPrototypeOf$7(ArrayPrototype$5,e)&&t===ArrayPrototype$5.concat?method$6:t},parent$V=concat$6,concat$5=parent$V,parent$U=concat$5,concat$4=parent$U,parent$T=concat$4,concat$3=parent$T,concat$2=concat$3,concat$1=concat$2,_concatInstanceProperty=getDefaultExportFromCjs(concat$1),error=window.VePlayer.error,VeError=error.VeError,LiveErrorCode=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(LiveErrorCode||{});error.Level;var ErrorCode=_objectSpread2$1(_objectSpread2$1({},LiveErrorCode),error.ErrorCode),ERRORS=_objectSpread2$1(_objectSpread2$1({},error.ERROR_INFO),{},_defineProperty$1({},210,{messageTextKey:"INVALID_PARAMETER",level:error.Level.Fatal}));function create$2(e,t){return new VeError(ERRORS[e],t)}function _arrayWithHoles(e){if(_Array$isArray$1(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:void 0!==_Symbol$1&&_getIteratorMethod$1(e)||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(_pushInstanceProperty(s).call(s,n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}var $$k=_export,uncurryThis$b=functionUncurryThisClause,$indexOf=arrayIncludes.indexOf,arrayMethodIsStrict$1=arrayMethodIsStrict$3,nativeIndexOf=uncurryThis$b([].indexOf),NEGATIVE_ZERO$1=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED$3=NEGATIVE_ZERO$1||!arrayMethodIsStrict$1("indexOf");$$k({target:"Array",proto:!0,forced:FORCED$3},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO$1?nativeIndexOf(this,e,t)||0:$indexOf(this,e,t)}});var entryVirtual$7=entryVirtual$f,indexOf$6=entryVirtual$7("Array").indexOf,isPrototypeOf$6=objectIsPrototypeOf,method$5=indexOf$6,ArrayPrototype$4=Array.prototype,indexOf$5=function(e){var t=e.indexOf;return e===ArrayPrototype$4||isPrototypeOf$6(ArrayPrototype$4,e)&&t===ArrayPrototype$4.indexOf?method$5:t},parent$S=indexOf$5,indexOf$4=parent$S,parent$R=indexOf$4,indexOf$3=parent$R,parent$Q=indexOf$3,indexOf$2=parent$Q,indexOf$1=indexOf$2,_indexOfInstanceProperty$1=getDefaultExportFromCjs(indexOf$1);function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=_Object$keys$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||(o[r]=e[r]);return o}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(_Object$getOwnPropertySymbols$1){var a=_Object$getOwnPropertySymbols$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var promise=promise$1,_Promise=getDefaultExportFromCjs(promise),DynamicModule$2=window.VePlayer.DynamicModule,load$2=window.VePlayer.load;function isRTMSupported(){return _isRTMSupported.apply(this,arguments)}function _isRTMSupported(){return(_isRTMSupported=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,load$2(DynamicModule$2.PluginRtm);case 2:return t=e.sent,e.abrupt("return",t.isSupported());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function isRTMSupportCodec(){return _isRTMSupportCodec.apply(this,arguments)}function _isRTMSupportCodec(){return _isRTMSupportCodec=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:RTMCodec.H264,e.next=3,load$2(DynamicModule$2.PluginRtm);case 3:if(r=e.sent,t!==RTMCodec.H264){e.next=6;break}return e.abrupt("return",r.isSupportedH264());case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)}))),_isRTMSupportCodec.apply(this,arguments)}var _excluded=["fallbackUrl","enableFallback"],strategy$1=window.VePlayer.strategy,util$3=window.VePlayer.util,DynamicModule$1=window.VePlayer.DynamicModule,load$1=window.VePlayer.load,Codec$1=window.VePlayer.Codec,Sniffer$2=window.VePlayer.Sniffer,rtmStrategy={options:{},module:DynamicModule$1.PluginRtm},generateFallbackUrl=function(e){return"pc"===Sniffer$2.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},getRtmStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,o,a,i,s,l,c,u,p,$,f,y,d,h,g,m,_,b,S,v;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.url,s=t.rtm||{},l=s.fallbackUrl,c=s.enableFallback,u=void 0===c||c,p=_objectWithoutProperties(s,_excluded),$=u?!l&&i?generateFallbackUrl(i):l:"","flv"===(f=$&&util$3.getStreamType($))&&util$3.isMseSupported(Codec$1.H264)?a=strategy$1.createFlvMseStrategy(t):"hls"===f&&("mobile"!==Sniffer$2.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&util$3.isMseSupported(Codec$1.H264)&&(a=strategy$1.createHlsMseStrategy(t)),e.next=7,_Promise.all([load$1(rtmStrategy.module).catch((function(){})),a&&load$1(a.module).catch((function(){}))]);case 7:return y=e.sent,d=_slicedToArray(y,2),h=d[0],g=d[1],e.next=13,_Promise.all([isRTMSupported(),isRTMSupportCodec()]);case 13:if(m=e.sent,_=_slicedToArray(m,2),b=_[0],S=_[1],b&&S){e.next=20;break}return r&&r.emit("degrade",{url:$,originRtmUrl:i,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:b,isRTMSupportCodec:S}),e.abrupt("return",{options:_objectSpread2$1(_objectSpread2$1({},(null===(v=a)||void 0===v?void 0:v.options)||{}),{},{url:$,_RTMdegrade:{_originRtmUrl:i,_isRTMSupported:b,_isRTMSupportCodec:S}}),plugins:g?[g]:[]});case 20:return e.abrupt("return",{options:_objectSpread2$1(_objectSpread2$1({},(null===(o=a)||void 0===o?void 0:o.options)||{}),{},{_RTMdegrade:void 0,rts:_objectSpread2$1(_objectSpread2$1({retryCount:0},p),{},{backupURL:$,backupConstruct:g})}),plugins:h?[h]:[]});case 21:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),util$2=window.VePlayer.util,strategy=window.VePlayer.strategy,getTypeStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.url?util$2.getStreamType(t.url):"")&&"unknown"!==n){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==n){e.next=7;break}return e.next=6,getRtmStrategy(t,r);case 6:case 10:case 14:return e.abrupt("return",e.sent);case 7:if("flv"!==n){e.next=11;break}return e.next=10,strategy.getFlvStrategy(t);case 11:if("hls"!==n){e.next=15;break}return e.next=14,strategy.getHlsStrategy(t);case 15:return e.abrupt("return",{options:{},plugins:[]});case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),bind$2=bind$5,_bindInstanceProperty=getDefaultExportFromCjs(bind$2),whitespaces$4="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$a=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$6,toString$5=toString$c,whitespaces$3=whitespaces$4,replace$3=uncurryThis$a("".replace),ltrim=RegExp("^["+whitespaces$3+"]+"),rtrim=RegExp("(^|[^"+whitespaces$3+"])["+whitespaces$3+"]+$"),createMethod=function(e){return function(t){var r=toString$5(requireObjectCoercible$2(t));return 1&e&&(r=replace$3(r,ltrim,"")),2&e&&(r=replace$3(r,rtrim,"$1")),r}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$7=global$q,fails$a=fails$z,uncurryThis$9=functionUncurryThis,toString$4=toString$c,trim$8=stringTrim.trim,whitespaces$2=whitespaces$4,$parseInt$1=global$7.parseInt,Symbol$2=global$7.Symbol,ITERATOR$3=Symbol$2&&Symbol$2.iterator,hex=/^[+-]?0x/i,exec$2=uncurryThis$9(hex.exec),FORCED$2=8!==$parseInt$1(whitespaces$2+"08")||22!==$parseInt$1(whitespaces$2+"0x16")||ITERATOR$3&&!fails$a((function(){$parseInt$1(Object(ITERATOR$3))})),numberParseInt=FORCED$2?function(e,t){var r=trim$8(toString$4(e));return $parseInt$1(r,t>>>0||(exec$2(hex,r)?16:10))}:$parseInt$1,$$j=_export,$parseInt=numberParseInt;$$j({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});var path$b=path$u,_parseInt$c=path$b.parseInt,parent$P=_parseInt$c,_parseInt$b=parent$P,parent$O=_parseInt$b,_parseInt$a=parent$O,parent$N=_parseInt$a,_parseInt$9=parent$N,_parseInt$8=_parseInt$9,_parseInt$6=_parseInt$8,_parseInt$7=getDefaultExportFromCjs(_parseInt$6),engineIsBun="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,global$6=global$q,apply$2=functionApply,isCallable$1=isCallable$m,ENGINE_IS_BUN=engineIsBun,USER_AGENT=engineUserAgent,arraySlice$2=arraySlice$6,validateArgumentsLength$3=validateArgumentsLength$5,Function$1=global$6.Function,WRAP=/MSIE .\./.test(USER_AGENT)||ENGINE_IS_BUN&&function(){var e=global$6.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}(),schedulersFix$2=function(e,t){var r=t?2:1;return WRAP?function(n,o){var a=validateArgumentsLength$3(arguments.length,1)>r,i=isCallable$1(n)?n:Function$1(n),s=a?arraySlice$2(arguments,r):[],l=a?function(){apply$2(i,this,s)}:i;return t?e(l,o):e(l)}:e},$$i=_export,global$5=global$q,schedulersFix$1=schedulersFix$2,setInterval$5=schedulersFix$1(global$5.setInterval,!0);$$i({global:!0,bind:!0,forced:global$5.setInterval!==setInterval$5},{setInterval:setInterval$5});var $$h=_export,global$4=global$q,schedulersFix=schedulersFix$2,setTimeout$6=schedulersFix(global$4.setTimeout,!0);$$h({global:!0,bind:!0,forced:global$4.setTimeout!==setTimeout$6},{setTimeout:setTimeout$6});var path$a=path$u,setTimeout$5=path$a.setTimeout,parent$M=setTimeout$5,setTimeout$4=parent$M,parent$L=setTimeout$4,setTimeout$3=parent$L,setTimeout$2=setTimeout$3,setTimeout$1=setTimeout$2,_setTimeout=getDefaultExportFromCjs(setTimeout$1),slice2=slice$1,_sliceInstanceProperty=getDefaultExportFromCjs(slice2),FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=_parseInt$7,freeGlobal="object"==_typeof(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now$6=function(){return root.Date.now()};function debounce(e,t,r){var n,o,a,i,s,l,c=0,u=!1,p=!1,$=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function f(t){var r=n,a=o;return n=o=void 0,c=t,i=e.apply(a,r)}function y(e){var r=e-l;return void 0===l||r>=t||r<0||p&&e-c>=a}function d(){var e=now$6();if(y(e))return h(e);s=_setTimeout(d,function(e){var r=t-(e-l);return p?nativeMin(r,a-(e-c)):r}(e))}function h(e){return s=void 0,$&&n?f(e):(n=o=void 0,i)}function g(){var e=now$6(),r=y(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=_setTimeout(d,t),u?f(e):i}(l);if(p)return s=_setTimeout(d,t),f(l)}return void 0===s&&(s=_setTimeout(d,t)),i}return t=toNumber(t)||0,isObject$5(r)&&(u=!!r.leading,a=(p="maxWait"in r)?nativeMax(toNumber(r.maxWait)||0,t):a,$="trailing"in r?!!r.trailing:$),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},g.flush=function(){return void 0===s?i:h(now$6())},g}function isObject$5(e){var t=_typeof(e);return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==_typeof(e)}function isSymbol(e){return"symbol"==_typeof(e)||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$5(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$5(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(_sliceInstanceProperty(e).call(e,2),r?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_debounce=debounce,debounce$1=getDefaultExportFromCjs(lodash_debounce),event=window.VePlayer.event,Events=_objectSpread2$1(_objectSpread2$1({},event.Events),{},{TIME_SHIFT_CHANGE:"time_shift_change",REFRESH_CLICK:"refresh_click"});function RefreshIcon(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var refresh="",Plugin$3=window.VePlayer.Plugin,Sniffer$1=window.VePlayer.Sniffer,XGEvents=window.VePlayer.XGEvents,POSITIONS$1=Plugin$3.POSITIONS,Refresh=function(e){_inherits(r,Plugin$3);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass$1(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:RefreshIcon,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(Events.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry();t.once(XGEvents.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=debounce$1(_bindInstanceProperty(e=this._handleRefresh).call(e,this),200);var t="mobile"===Sniffer$1.device?"touchend":"click";_bindInstanceProperty(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:POSITIONS$1.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(),defineProperty$2=defineProperty$3,_Object$defineProperty=getDefaultExportFromCjs(defineProperty$2),keys3=keys$1,_Object$keys=getDefaultExportFromCjs(keys3),getOwnPropertySymbols2=getOwnPropertySymbols$1,_Object$getOwnPropertySymbols=getDefaultExportFromCjs(getOwnPropertySymbols2),filter2=filter$1,_filterInstanceProperty=getDefaultExportFromCjs(filter2),getOwnPropertyDescriptor$1=getOwnPropertyDescriptor$2,_Object$getOwnPropertyDescriptor=getDefaultExportFromCjs(getOwnPropertyDescriptor$1),forEach2=forEach$1,_forEachInstanceProperty=getDefaultExportFromCjs(forEach2),getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,_Object$getOwnPropertyDescriptors=getDefaultExportFromCjs(getOwnPropertyDescriptors2),defineProperties4=defineProperties$1,_Object$defineProperties=getDefaultExportFromCjs(defineProperties4),indexOf2=indexOf$1,_indexOfInstanceProperty=getDefaultExportFromCjs(indexOf2),$$g=_export,uncurryThis$8=functionUncurryThis,$Date=Date,thisTimeValue=uncurryThis$8($Date.prototype.getTime);$$g({target:"Date",stat:!0},{now:function(){return thisTimeValue(new $Date)}});var path$9=path$u,now$5=path$9.Date.now,parent$K=now$5,now$4=parent$K,parent$J=now$4,now$3=parent$J,parent$I=now$3,now$2=parent$I,now$1=now$2,now3=now$1,_Date$now=getDefaultExportFromCjs(now3),fails$9=fails$z,wellKnownSymbol$3=wellKnownSymbol$q,DESCRIPTORS$3=descriptors,IS_PURE=isPure,ITERATOR$2=wellKnownSymbol$3("iterator"),urlConstructorDetection=!fails$9((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE&&!e.toJSON||!t.size&&(IS_PURE||!DESCRIPTORS$3)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$2]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),defineBuiltIn$2=defineBuiltIn$8,defineBuiltIns$1=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn$2(e,n,t[n],r);return e},arraySlice$1=arraySliceSimple,floor$2=Math.floor,mergeSort=function(e,t){var r=e.length,n=floor$2(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$1(e,0,n),t),mergeSort(arraySlice$1(e,n),t),t)},insertionSort=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},merge=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},arraySort$1=mergeSort,$$f=_export,global$3=global$q,call$1=functionCall,uncurryThis$7=functionUncurryThis,DESCRIPTORS$2=descriptors,USE_NATIVE_URL$2=urlConstructorDetection,defineBuiltIn$1=defineBuiltIn$8,defineBuiltInAccessor$1=defineBuiltInAccessor$4,defineBuiltIns=defineBuiltIns$1,setToStringTag$1=setToStringTag$8,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule$1=internalState,anInstance$1=anInstance$3,isCallable=isCallable$m,hasOwn$2=hasOwnProperty_1,bind$1=functionBindContext,classof$2=classof$c,anObject=anObject$e,isObject$4=isObject$k,$toString$1=toString$c,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$8,getIterator=getIterator$3,getIteratorMethod$1=getIteratorMethod$a,validateArgumentsLength$2=validateArgumentsLength$5,wellKnownSymbol$2=wellKnownSymbol$q,arraySort=arraySort$1,ITERATOR$1=wellKnownSymbol$2("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor5=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){if(!DESCRIPTORS$2)return global$3[e];var t=getOwnPropertyDescriptor5(global$3,e);return t&&t.value},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$3.RegExp,TypeError$2=global$3.TypeError,decodeURIComponent$1=global$3.decodeURIComponent,encodeURIComponent$1=global$3.encodeURIComponent,charAt$2=uncurryThis$7("".charAt),join$2=uncurryThis$7([].join),push$2=uncurryThis$7([].push),replace$2=uncurryThis$7("".replace),shift$1=uncurryThis$7([].shift),splice$7=uncurryThis$7([].splice),split$2=uncurryThis$7("".split),stringSlice$2=uncurryThis$7("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent$1(e)}catch(t){return e}},deserialize=function(e){var t=replace$2(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace$2(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace$2(encodeURIComponent$1(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor((function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$4(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$2(e,0)?stringSlice$2(e,1):e:$toString$1(e)))};URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,i,s,l=getIteratorMethod$1(e);if(l)for(r=(t=getIterator(e,l)).next;!(n=call$1(r,t)).done;){if(a=(o=getIterator(anObject(n.value))).next,(i=call$1(a,o)).done||(s=call$1(a,o)).done||!call$1(a,o).done)throw TypeError$2("Expected sequence with length 2");push$2(this.entries,{key:$toString$1(i.value),value:$toString$1(s.value)})}else for(var c in e)hasOwn$2(e,c)&&push$2(this.entries,{key:c,value:$toString$1(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=split$2(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split$2(t,"="),push$2(this.entries,{key:deserialize(shift$1(r)),value:deserialize(join$2(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push$2(r,serialize(e.key)+"="+serialize(e.value));return join$2(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function(){anInstance$1(this,URLSearchParamsPrototype);var e=setInternalState$1(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$2||(this.length=e.entries.length)},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$2(arguments.length,2);var r=getInternalParamsState(this);push$2(r.entries,{key:$toString$1(e),value:$toString$1(t)}),DESCRIPTORS$2||this.length++,r.updateURL()},delete:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,n=$toString$1(e),o=0;o<r.length;)r[o].key===n?splice$7(r,o,1):o++;DESCRIPTORS$2||(this.length=r.length),t.updateURL()},get:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push$2(n,t[o].value);return n},has:function(e){validateArgumentsLength$2(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$2(arguments.length,1);for(var r,n=getInternalParamsState(this),o=n.entries,a=!1,i=$toString$1(e),s=$toString$1(t),l=0;l<o.length;l++)(r=o[l]).key===i&&(a?splice$7(o,l--,1):(a=!0,r.value=s));a||push$2(o,{key:i,value:s}),DESCRIPTORS$2||(this.length=o.length),n.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,n=bind$1(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$1(URLSearchParamsPrototype,ITERATOR$1,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$1(URLSearchParamsPrototype,"toString",(function(){return getInternalParamsState(this).serialize()}),{enumerable:!0}),DESCRIPTORS$2&&defineBuiltInAccessor$1(URLSearchParamsPrototype,"size",{get:function(){return getInternalParamsState(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$f({global:!0,constructor:!0,forced:!USE_NATIVE_URL$2},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL$2&&isCallable(Headers)){var headersHas=uncurryThis$7(HeadersPrototype.has),headersSet=uncurryThis$7(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$4(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$1(e,{body:createPropertyDescriptor(0,$toString$1(r)),headers:createPropertyDescriptor(0,t)})}return e};if(isCallable(nativeFetch)&&$$f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$f({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var web_urlSearchParams_constructor={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},path$8=path$u,urlSearchParams$5=path$8.URLSearchParams,parent$H=urlSearchParams$5,urlSearchParams$4=parent$H,parent$G=urlSearchParams$4,urlSearchParams$3=parent$G,parent$F=urlSearchParams$3,urlSearchParams$2=parent$F,urlSearchParams$1=urlSearchParams$2,urlSearchParams=urlSearchParams$1,_URLSearchParams=getDefaultExportFromCjs(urlSearchParams),isObject$3=isObject$k,classof$1=classofRaw$2,wellKnownSymbol$1=wellKnownSymbol$q,MATCH$1=wellKnownSymbol$1("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1(e))},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$1("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$q,MATCH=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH]=!1,"/./"[e](t)}catch(e){}}return!1},$$e=_export,uncurryThis$6=functionUncurryThisClause,toLength=toLength$2,toString$3=toString$c,notARegExp$1=notARegexp,requireObjectCoercible$1=requireObjectCoercible$6,correctIsRegExpLogic$1=correctIsRegexpLogic,nativeStartsWith=uncurryThis$6("".startsWith),stringSlice$1=uncurryThis$6("".slice),min$2=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic$1("startsWith");$$e({target:"String",proto:!0,forced:!CORRECT_IS_REGEXP_LOGIC},{startsWith:function(e){var t=toString$3(requireObjectCoercible$1(this));notARegExp$1(e);var r=toLength(min$2(arguments.length>1?arguments[1]:void 0,t.length)),n=toString$3(e);return nativeStartsWith?nativeStartsWith(t,n,r):stringSlice$1(t,r,r+n.length)===n}});var entryVirtual$6=entryVirtual$f,startsWith$6=entryVirtual$6("String").startsWith,isPrototypeOf$5=objectIsPrototypeOf,method$4=startsWith$6,StringPrototype$2=String.prototype,startsWith$5=function(e){var t=e.startsWith;return"string"==typeof e||e===StringPrototype$2||isPrototypeOf$5(StringPrototype$2,e)&&t===StringPrototype$2.startsWith?method$4:t},parent$E=startsWith$5,startsWith$4=parent$E,parent$D=startsWith$4,startsWith$3=parent$D,parent$C=startsWith$3,startsWith$2=parent$C,startsWith$1=startsWith$2,startsWith2=startsWith$1,_startsWithInstanceProperty=getDefaultExportFromCjs(startsWith2),$$d=_export,parseInt$2=numberParseInt;$$d({target:"Number",stat:!0,forced:Number.parseInt!=parseInt$2},{parseInt:parseInt$2});var path$7=path$u,_parseInt$5=path$7.Number.parseInt,parent$B=_parseInt$5,_parseInt$4=parent$B,parent$A=_parseInt$4,_parseInt$3=parent$A,parent$z=_parseInt$3,_parseInt$2=parent$z,_parseInt$1=_parseInt$2,_parseInt=_parseInt$1,_Number$parseInt=getDefaultExportFromCjs(_parseInt),DESCRIPTORS$1=descriptors,uncurryThis$5=functionUncurryThis,call=functionCall,fails$8=fails$z,objectKeys=objectKeys$3,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$b,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$1=Object.defineProperty,concat2=uncurryThis$5([].concat),objectAssign=!$assign||fails$8((function(){if(DESCRIPTORS$1&&1!==$assign({b:1},$assign(defineProperty$1({},"a",{enumerable:!0,get:function(){defineProperty$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign({},e)[r]||objectKeys($assign({},t)).join("")!=n}))?function(e,t){for(var r=toObject$1(e),n=arguments.length,o=1,a=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n>o;)for(var s,l=IndexedObject(arguments[o++]),c=a?concat2(objectKeys(l),a(l)):objectKeys(l),u=c.length,p=0;u>p;)s=c[p++],DESCRIPTORS$1&&!call(i,l,s)||(r[s]=l[s]);return r}:$assign,$$c=_export,assign$7=objectAssign;$$c({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$7},{assign:assign$7});var path$6=path$u,assign$6=path$6.Object.assign,parent$y=assign$6,assign$5=parent$y,parent$x=assign$5,assign$4=parent$x,parent$w=assign$4,assign$3=parent$w,assign$2=assign$3,assign$1=assign$2,_Object$assign=getDefaultExportFromCjs(assign$1),$$b=_export,$includes=arrayIncludes.includes,fails$7=fails$z,BROKEN_ON_SPARSE=fails$7((function(){return!Array(1).includes()}));$$b({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$5=entryVirtual$f,includes$7=entryVirtual$5("Array").includes,$$a=_export,uncurryThis$4=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$6,toString$2=toString$c,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$4("".indexOf);$$a({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$2(requireObjectCoercible(this)),toString$2(notARegExp(e)),arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$f,includes$6=entryVirtual$4("String").includes,isPrototypeOf$4=objectIsPrototypeOf,arrayMethod=includes$7,stringMethod=includes$6,ArrayPrototype$3=Array.prototype,StringPrototype$1=String.prototype,includes$5=function(e){var t=e.includes;return e===ArrayPrototype$3||isPrototypeOf$4(ArrayPrototype$3,e)&&t===ArrayPrototype$3.includes?arrayMethod:"string"==typeof e||e===StringPrototype$1||isPrototypeOf$4(StringPrototype$1,e)&&t===StringPrototype$1.includes?stringMethod:t},parent$v=includes$5,includes$4=parent$v,parent$u=includes$4,includes$3=parent$u,parent$t=includes$3,includes$2=parent$t,includes$1=includes$2,includes3=includes$1,_includesInstanceProperty=getDefaultExportFromCjs(includes3),path$5=path$u,apply$1=functionApply;path$5.JSON||(path$5.JSON={stringify:JSON.stringify});var stringify$5=function(e,t,r){return apply$1(path$5.JSON.stringify,null,arguments)},parent$s=stringify$5,stringify$4=parent$s,parent$r=stringify$4,stringify$3=parent$r,parent$q=stringify$3,stringify$2=parent$q,stringify$1=stringify$2,stringify2=stringify$1,_JSON$stringify=getDefaultExportFromCjs(stringify2),apply=functionApply,toIndexedObject=toIndexedObject$b,toIntegerOrInfinity$1=toIntegerOrInfinity$5,lengthOfArrayLike$1=lengthOfArrayLike$a,arrayMethodIsStrict=arrayMethodIsStrict$3,min$1=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("lastIndexOf"),FORCED$1=NEGATIVE_ZERO||!STRICT_METHOD,arrayLastIndexOf=FORCED$1?function(e){if(NEGATIVE_ZERO)return apply($lastIndexOf,this,arguments)||0;var t=toIndexedObject(this),r=lengthOfArrayLike$1(t),n=r-1;for(arguments.length>1&&(n=min$1(n,toIntegerOrInfinity$1(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:$lastIndexOf,$$9=_export,lastIndexOf$7=arrayLastIndexOf;$$9({target:"Array",proto:!0,forced:arrayLastIndexOf!==[].lastIndexOf},{lastIndexOf:arrayLastIndexOf});var entryVirtual$3=entryVirtual$f,lastIndexOf$6=entryVirtual$3("Array").lastIndexOf,isPrototypeOf$3=objectIsPrototypeOf,method$3=lastIndexOf$6,ArrayPrototype$2=Array.prototype,lastIndexOf$5=function(e){var t=e.lastIndexOf;return e===ArrayPrototype$2||isPrototypeOf$3(ArrayPrototype$2,e)&&t===ArrayPrototype$2.lastIndexOf?method$3:t},parent$p=lastIndexOf$5,lastIndexOf$4=parent$p,parent$o=lastIndexOf$4,lastIndexOf$3=parent$o,parent$n=lastIndexOf$3,lastIndexOf$2=parent$n,lastIndexOf$1=lastIndexOf$2,lastIndexOf2=lastIndexOf$1,_lastIndexOfInstanceProperty=getDefaultExportFromCjs(lastIndexOf2),global$2=global$q,fails$6=fails$z,uncurryThis$3=functionUncurryThis,toString$1=toString$c,trim$7=stringTrim.trim,whitespaces$1=whitespaces$4,charAt$1=uncurryThis$3("".charAt),$parseFloat$1=global$2.parseFloat,Symbol$1=global$2.Symbol,ITERATOR=Symbol$1&&Symbol$1.iterator,FORCED=1/$parseFloat$1(whitespaces$1+"-0")!=-1/0||ITERATOR&&!fails$6((function(){$parseFloat$1(Object(ITERATOR))})),numberParseFloat=FORCED?function(e){var t=trim$7(toString$1(e)),r=$parseFloat$1(t);return 0===r&&"-"==charAt$1(t,0)?-0:r}:$parseFloat$1,$$8=_export,parseFloat$1=numberParseFloat;$$8({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$1},{parseFloat:parseFloat$1});var path$4=path$u,_parseFloat$c=path$4.Number.parseFloat,parent$m=_parseFloat$c,_parseFloat$b=parent$m,parent$l=_parseFloat$b,_parseFloat$a=parent$l,parent$k=_parseFloat$a,_parseFloat$9=parent$k,_parseFloat$8=_parseFloat$9,_parseFloat$7=_parseFloat$8,_Number$parseFloat=getDefaultExportFromCjs(_parseFloat$7),path$3=path$u,setInterval$4=path$3.setInterval,parent$j=setInterval$4,setInterval$3=parent$j,parent$i=setInterval$3,setInterval$2=parent$i,setInterval$1=setInterval$2,setInterval=setInterval$1,_setInterval=getDefaultExportFromCjs(setInterval);function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys2(e,t){var r=_Object$keys(e);if(_Object$getOwnPropertySymbols){var n=_Object$getOwnPropertySymbols(e);t&&(n=_filterInstanceProperty(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)_forEachInstanceProperty(r=ownKeys2(Object(n),!0)).call(r,(function(t){_defineProperty(e,t,n[t])}));else if(_Object$getOwnPropertyDescriptors)_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(n));else{var o;_forEachInstanceProperty(o=ownKeys2(Object(n))).call(o,(function(t){_Object$defineProperty(e,t,_Object$getOwnPropertyDescriptor(n,t))}))}}return e}var device_id_key="xgplayer_device_id",user_id_key="xgplayer_user_id",getCookie=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var o,a=t[r];if(_indexOfInstanceProperty(o=t[r]).call(o,e)>=0)return a.split("=")[1]||null}},genRandomID$1=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},getDeviceID$1=function(){var e=getCookie(device_id_key);if(e)return e;var t=genRandomID$1(11);return document.cookie=device_id_key+"="+t+";max-age=31536000;path=/",t},getUserId$1=function(){var e=getCookie(user_id_key);if(e)return e;var t=genRandomID$1(12);return document.cookie=user_id_key+"="+t+";max-age=31536000;path=/",t},getLogId=function(){return genRandomID$1(12)};function getBrowser(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:_indexOfInstanceProperty(e).call(e,"chrome")>-1&&_indexOfInstanceProperty(e).call(e,"safari")>-1,Firefox:_indexOfInstanceProperty(e).call(e,"firefox")>-1,Opera:_indexOfInstanceProperty(e).call(e,"opera")>-1,Safari:_indexOfInstanceProperty(e).call(e,"safari")>-1&&-1==_indexOfInstanceProperty(e).call(e,"chrome"),Edge:_indexOfInstanceProperty(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var o="";if("IE"===n)o=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var a in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[a].type&&(n="360");var i=e.match(/chrome\/([\d.]+)/);o=i?i[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);o=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);o=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);o=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);o=u?u[1]:"-1"}else if("QQBrowser"===n){var p=e.match(/qqbrowser\/([\d.]+)/);o=p?p[1]:"-1"}t.type=n,t.versions=_parseInt$7(o)}return t}var sniffer={get device(){return sniffer.os.isPc?"pc":"mobile"},get browser(){var e=getBrowser();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),o=/(?:Firefox)/.test(e),a=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),i=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:i,isAndroid:n,isPc:!(i||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:o}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function getCurrentTime(){return _Date$now()}function getPlayFormat(e){var t="unknown";return"string"!=typeof e?t:_indexOfInstanceProperty(e).call(e,".flv")>-1?"flv":_indexOfInstanceProperty(e).call(e,".m3u8")>-1?"m3u8":_indexOfInstanceProperty(e).call(e,".mp4")>-1?"mp4":_indexOfInstanceProperty(e).call(e,".sdp")>-1?"rts":t}function isCodecSupport(e){return"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+e):0}function getUrlQuery(e,t,r){var n=new _URLSearchParams(e.split("?")[1]);return n.get(t)||n.get(r)}function getDeviceInfo(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(e){}return e}function getPlayerCore(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.rtm)return e.plugins.rtm}return null}function getDefaultOptions(e){return{device_id:e.device_id||getDeviceID$1(),user_id:e.user_id||getUserId$1(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}function getDefaultLog(){return{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}}}function getCommonLog(e){var t,r=e.player,n=r.config.mediaType;return _objectSpread2({project_key:e.project_key,live_sdk_version:getPlayerCore(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.7",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:getLogId(),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+_Date$now(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:sniffer.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:_Date$now(),play_current_time:0,cdn_play_url:r.config.url&&_startsWithInstanceProperty(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:getPlayFormat(r.config.url),codec_support:-1},e.ext)}function Utf8ArrayToStr(e){var t,r,n,o,a,i;for(t="",n=e.length,r=0;r<n;)switch((o=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(o);break;case 12:case 13:a=e[r++],t+=String.fromCharCode((31&o)<<6|63&a);break;case 14:a=e[r++],i=e[r++],t+=String.fromCharCode((15&o)<<12|(63&a)<<6|(63&i)<<0)}return t}var getResourceTiming=function(e){var t,r=_filterInstanceProperty(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],o=r[r.length-1];return{dns_parse_time:_Number$parseInt(n.domainLookupEnd-n.domainLookupStart),redirect:_Number$parseInt(n.redirectEnd-n.redirectStart),ttfb:_Number$parseInt(o.responseStart-o.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}},video_error={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Manage=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=_bindInstanceProperty(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}_createClass(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),this.core&&this.core.loader&&this.core.loader.finnalUrl?e.cdn_play_url=this.core.loader.finnalUrl:e.cdn_play_url=t&&_startsWithInstanceProperty(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=getUrlQuery(e.cdn_play_url,"_session_id","session_id"),e.play_format=getPlayFormat(e.cdn_play_url),e.timestamp=getCurrentTime();var r=getDeviceInfo(),n=r.cpu_core_number,o=r.memory_usage,a=r.network_downlink;e.cpu_core_number=n,e.memory_usage=o,e.network_downlink=a,_Object$assign(e,_objectSpread2({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,_objectSpread2({},e)))},e}(),navgatorOnlineSupported=function(){return void 0!==navigator.onLine},navigatorConnectionType=function(){var e=navigator.connection;return e&&(e.effectiveType||e.type)},getNetStat=function(){return navgatorOnlineSupported()?navigator.onLine?navigatorConnectionType()||sniffer.device:"none":"unknown"},videoEvts=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],LoggerControl=function(){function e(e){var t,r;this.options=e,this.logger=new XgLiveLogger(e),this.restart=_bindInstanceProperty(t=this.restart).call(t,this),this.bindUrlChange(),_includesInstanceProperty(r=sniffer.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new XgLiveLogger(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=_Object$assign(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),XgLiveLogger=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=_Object$assign({},e,getDefaultOptions(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?_Date$now()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Manage(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}_createClass(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return _Date$now()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=_Date$now()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,o,a,i,s,l,c,u,p,$,f,y,d;this.handlePlayerComlete=_bindInstanceProperty(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=_bindInstanceProperty(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=_bindInstanceProperty(r=this.destroyFunc).call(r,this),this.handleUserLeave=_bindInstanceProperty(n=this.handleUserLeave).call(n,this),this.handlePlayerError=_bindInstanceProperty(o=this.handlePlayerError).call(o,this),this.handlePlayerReady=_bindInstanceProperty(a=this.handlePlayerReady).call(a,this),this.handlePlayerWaiting=_bindInstanceProperty(i=this.handlePlayerWaiting).call(i,this),this.handleAVUnsync=_bindInstanceProperty(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=_bindInstanceProperty(l=this.handlePlayerPause).call(l,this),this.handleTTFB=_bindInstanceProperty(c=this.handleTTFB).call(c,this),this.handleUrlChange=_bindInstanceProperty(u=this.handleUrlChange).call(u,this),this.handleKeyframe=_bindInstanceProperty(p=this.handleKeyframe).call(p,this),this.handleSourceOpen=_bindInstanceProperty($=this.handleSourceOpen).call($,this),this.handleBufferAppend=_bindInstanceProperty(f=this.handleBufferAppend).call(f,this),this.handleCoreEvent=_bindInstanceProperty(y=this.handleCoreEvent).call(y,this),this.handleDegrade=_bindInstanceProperty(d=this.handleDegrade).call(d,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=_objectSpread2({os:sniffer.operation_os},getCommonLog(t)),this.log=_Object$assign({},getDefaultLog());var o=this;for(var a in this.log){var i=function(t){_Object$defineProperty(e.log[a],t,{get:function(){return null==this["_"+t]?o.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)i(s);n&&_Object$defineProperty(this.log[a],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?_sliceInstanceProperty(e).call(e,0,25e4):""}return""},enumerable:!0}),_Object$defineProperty(this.log[a],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),_Object$defineProperty(this.log[a],"access",{get:function(){return getNetStat()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=getPlayerCore(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=getCurrentTime(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===sniffer.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;_forEachInstanceProperty(videoEvts).call(videoEvts,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,o=e.type,a=e.meta,i=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(o,a);break;case"core.sei":this.handleSEIParsed(i);break;case"core.lowdecode":this.commonParams.is_wasm&&(_Object$assign(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(_Object$assign({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,_sliceInstanceProperty(Array.prototype).call(e,0))}catch(e){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(_Object$assign(this.log.play_url_change,{url:e,timestamp:getCurrentTime()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=getCurrentTime(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;_Object$assign(this.log.play_error,_objectSpread2({timestamp:getCurrentTime(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:_JSON$stringify(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(_Object$assign(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=getCurrentTime()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var o=this.log.play_loadstream;o.timestamp=getCurrentTime(),o.loadstream_url=t,o.offersdp=r,o.sessionId=n,this.logmanager.push(o)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=getCurrentTime(),_Object$assign(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var o=Utf8ArrayToStr(e.content);o=_sliceInstanceProperty(o).call(o,_indexOfInstanceProperty(o).call(o,"{"),_lastIndexOfInstanceProperty(o).call(o,"}")+1);try{var a=JSON.parse(o),i=this.getPlayerBuffer()+this.ntpTime-a.ts;r.sei_delay=i,r.sei_source=a.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=i,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(e){}}},t.handleMetaDataLoaded=function(e,t){this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=getCurrentTime(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=isCodecSupport(t.codec))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){_Object$assign(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(_Object$assign({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=getPlayerCore(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=_Number$parseInt(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(e){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=_Number$parseFloat(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=_Number$parseFloat(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,o=n&&n.pc,a={};return o?_Promise.resolve(o.getStats()).then((function(t){return _forEachInstanceProperty(t).call(t,(function(t){var n=t.type,o=t.mediaType,i=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,p=t.timestamp,$=t.framesDropped,f=t.keyFramesDecoded,y=t.totalDecodeTime,d=t.framesDecoded,h=t.frameHeight,g=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,b=t.jitterBufferEmittedCount,S=t.jitter,v=t.nackCount,O=t.packetsLost,P=t.pliCount,I=t.totalSamplesReceived,E=t.concealedSamples,T=t.currentRoundTripTime,w=t.decoderImplementation,R=t.mimeType,C=t.freezeCount,A=t.totalFreezesDuration,j=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===o?(a.audio_bytes_received=i-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=i,a.audio_packets_lost=O-(r.cacheRtcStats.audioPacketsLost||0),a.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=O,r.cacheRtcStats.audioPacketsReceived=s,a.audio_level=l,a.concealment_event=c,a.audio_fraction_lost=a.audio_packets_lost/a.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(a.audio_rec_sample_rate=(I-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=I,a.concealed_samples=E,a.total_samples_received=I):(a.frames_dropped=$,a.iframes_decoded=f,a.video_bytes_received=i-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=i,a.video_dec_time=y,a.video_decoded_delay_ms=a.video_dec_elapse/d,a.video_frame_height=h,a.video_frame_width=g,void 0!==r.cacheRtcStats.framesDecoded&&(a.video_decode_framerate=(d-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=d,void 0!==r.cacheRtcStats.framesReceived&&(a.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(a.freeze_count=C-r.cacheRtcStats.freezeCount,a.freeze_duration=A-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=C,r.cacheRtcStats.totalFreezesDuration=A,r.cacheRtcStats.framesReceived=m,a.total_pauses_duration=j,a.video_jb_delay=_/b*1e3,a.video_jitter=1e3*S,a.video_nack_count=v,a.video_packets_lost=O-(r.cacheRtcStats.videoPacketsLost||0),a.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),a.video_fraction_lost=a.video_packets_lost/a.video_packets_received,r.cacheRtcStats.videoPacketsLost=O,r.cacheRtcStats.videoPacketsReceived=s,a.video_pli_count=P,a.decoder_name=w);break;case"remote-outbound-rtp":a.e2e_delay_ms=p-u;break;case"track":void 0!==g&&(a.video_frame_width=g,a.video_frame_height=h);break;case"candidate-pair":a.rtt=1e3*T;break;case"codec":_includesInstanceProperty(R).call(R,"video")?a.video_codec=R:a.audio_codec=o}a.total_delay=a.e2e_delay_ms+(a.video_decoded_delay_ms||0)+(a.video_jb_delay||0)})),_Object$assign(r.log.playing,{video_download_size:a.video_bytes_received,decode_fps:a.video_decode_framerate,sei_delay:a.total_delay,sei_network_delay:a.e2e_delay_ms,width:a.video_frame_width,height:a.video_frame_height,current_speed:(a.audio_bytes_received+a.video_bytes_received)/e}),a})):_Promise.resolve(a)}catch(e){return _Promise.reject(e)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<getCurrentTime()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,getCurrentTime()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var o=getCurrentTime(),a=o-n,i=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),_Object$assign(t.log.playing,_objectSpread2({timestamp:o,stop_time:o,duration:e?0:a/1e3,stall_time_per_100sec:i/a*100,stall_count_per_100sec:1e3*s/a*100,stall_count:s,stall_time:i,play_current_time:t.player.currentTime},t.videoSize)),_Promise.resolve(t.getRtcStats(a,e)).then((function(r){t.logmanager.push(_Object$assign({},t.log.playing,_objectSpread2({play_time:e?0:a},r)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(e){return _Promise.reject(e)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return _Promise.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return _Promise.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=_setInterval((function(){try{var r=function(){if(Math.abs(_Date$now()-e.log.playing.timestamp-t)<100||_Date$now()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return _Promise.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return _Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return _Promise.reject(e)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(e){return _Promise.reject(e)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=getCurrentTime(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=getCurrentTime(),this.playResultTimer=_setTimeout((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=getCurrentTime(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=getCurrentTime(),this.log.stall_start.stall_start_time=getCurrentTime(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),_Object$assign(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=_setTimeout((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=getCurrentTime();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=getCurrentTime();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=getCurrentTime(),this.log.playing.stall_count++,_Object$assign(this.log.stall,_objectSpread2({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;_Object$assign(this.log.play_error,_objectSpread2(_objectSpread2({timestamp:getCurrentTime()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=video_error[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=getCurrentTime()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=video_error[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&window.removeEventListener("pagehide",this.handleUserLeave),_forEachInstanceProperty(videoEvts).call(videoEvts,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null))},t.handleUserLeave=function(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(e){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(e){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=getCurrentTime();_Object$assign(this.log.first_frame,_objectSpread2({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=getResourceTiming(this._url),t=getCurrentTime();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;_Object$assign(r,_objectSpread2({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,_Object$assign(r,_objectSpread2({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=getCurrentTime(),_Object$assign(r,_objectSpread2({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),symbol=symbol$1,_Symbol=getDefaultExportFromCjs(symbol),getIteratorMethod=getIteratorMethod$3,_getIteratorMethod=getDefaultExportFromCjs(getIteratorMethod),tryToString=tryToString$6,$TypeError=TypeError,deletePropertyOrThrow$1=function(e,t){if(!delete e[t])throw $TypeError("Cannot delete property "+tryToString(t)+" of "+tryToString(e))},$$7=_export,toObject=toObject$b,toAbsoluteIndex=toAbsoluteIndex$4,toIntegerOrInfinity=toIntegerOrInfinity$5,lengthOfArrayLike=lengthOfArrayLike$a,setArrayLength=arraySetLength,doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$3,createProperty=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$1,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("splice"),max=Math.max,min=Math.min;$$7({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{splice:function(e,t){var r,n,o,a,i,s,l=toObject(this),c=lengthOfArrayLike(l),u=toAbsoluteIndex(e,c),p=arguments.length;for(0===p?r=n=0:1===p?(r=0,n=c-u):(r=p-2,n=min(max(toIntegerOrInfinity(t),0),c-u)),doesNotExceedSafeInteger(c+r-n),o=arraySpeciesCreate(l,n),a=0;a<n;a++)(i=u+a)in l&&createProperty(o,a,l[i]);if(o.length=n,r<n){for(a=u;a<c-n;a++)s=a+r,(i=a+n)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=c;a>c-n+r;a--)deletePropertyOrThrow(l,a-1)}else if(r>n)for(a=c-n;a>u;a--)s=a+r-1,(i=a+n-1)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=0;a<r;a++)l[a+u]=arguments[a+2];return setArrayLength(l,c-n+r),o}});var entryVirtual$2=entryVirtual$f,splice$6=entryVirtual$2("Array").splice,isPrototypeOf$2=objectIsPrototypeOf,method$2=splice$6,ArrayPrototype$1=Array.prototype,splice$5=function(e){var t=e.splice;return e===ArrayPrototype$1||isPrototypeOf$2(ArrayPrototype$1,e)&&t===ArrayPrototype$1.splice?method$2:t},parent$h=splice$5,splice$4=parent$h,parent$g=splice$4,splice$3=parent$g,parent$f=splice$3,splice$2=parent$f,splice$1=splice$2,splice2=splice$1,_spliceInstanceProperty=getDefaultExportFromCjs(splice2),$$6=_export,$parseFloat=numberParseFloat;$$6({global:!0,forced:parseFloat!=numberParseFloat},{parseFloat:numberParseFloat});var path$2=path$u,_parseFloat$6=path$2.parseFloat,parent$e=_parseFloat$6,_parseFloat$5=parent$e,parent$d=_parseFloat$5,_parseFloat$4=parent$d,parent$c=_parseFloat$4,_parseFloat$3=parent$c,_parseFloat$2=_parseFloat$3,_parseFloat=_parseFloat$2,_parseFloat$1=getDefaultExportFromCjs(_parseFloat),PROPER_FUNCTION_NAME=functionName.PROPER,fails$5=fails$z,whitespaces=whitespaces$4,non="​…᠎",stringTrimForced=function(e){return fails$5((function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e}))},$$5=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$5({target:"String",proto:!0,forced:forcedStringTrimMethod("trim")},{trim:function(){return $trim(this)}});var entryVirtual$1=entryVirtual$f,trim$6=entryVirtual$1("String").trim,isPrototypeOf$1=objectIsPrototypeOf,method$1=trim$6,StringPrototype=String.prototype,trim$5=function(e){var t=e.trim;return"string"==typeof e||e===StringPrototype||isPrototypeOf$1(StringPrototype,e)&&t===StringPrototype.trim?method$1:t},parent$b=trim$5,trim$4=parent$b,parent$a=trim$4,trim$3=parent$a,parent$9=trim$3,trim$2=parent$9,trim$1=trim$2,trim2=trim$1,_trimInstanceProperty=getDefaultExportFromCjs(trim2),create4=create$5,_Object$create=getDefaultExportFromCjs(create4),fails$4=fails$z,freezing=!fails$4((function(){return Object.isExtensible(Object.preventExtensions({}))})),internalMetadata={exports:{}},fails$3=fails$z,arrayBufferNonExtensible=fails$3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$2=fails$z,isObject$2=isObject$k,classof=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES$1=fails$2((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES$1||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$2(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,$$4=_export,uncurryThis$2=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$1=isObject$k,hasOwn$1=hasOwnProperty_1,defineProperty5=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible2=objectIsExtensible,uid=uid$4,FREEZING$1=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty5(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey=function(e,t){if(!isObject$1(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn$1(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn$1(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze$1=function(e){return FREEZING$1&&REQUIRED&&isExtensible2(e)&&!hasOwn$1(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis$2([].splice),r={};r[METADATA]=1,e(r).length&&(getOwnPropertyNamesModule.f=function(r){for(var n=e(r),o=0,a=n.length;o<a;o++)if(n[o]===METADATA){t(n,o,1);break}return n},$$4({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey,getWeakData:getWeakData,onFreeze:onFreeze$1};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,$$3=_export,FREEZING=freezing,fails$1=fails$z,isObject=isObject$k,onFreeze=internalMetadataExports.onFreeze,$freeze=Object.freeze,FAILS_ON_PRIMITIVES=fails$1((function(){$freeze(1)}));$$3({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES,sham:!FREEZING},{freeze:function(e){return $freeze&&isObject(e)?$freeze(onFreeze(e)):e}});var path$1=path$u,freeze$5=path$1.Object.freeze,parent$8=freeze$5,freeze$4=parent$8,parent$7=freeze$4,freeze$3=parent$7,parent$6=freeze$3,freeze$2=parent$6,freeze$1=freeze$2,freeze2=freeze$1,_Object$freeze=getDefaultExportFromCjs(freeze2),$$2=_export,$map=arrayIteration.map,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("map");$$2({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{map:function(e){return $map(this,e,arguments.length>1?arguments[1]:void 0)}});var _context6,entryVirtual=entryVirtual$f,map$6=entryVirtual("Array").map,isPrototypeOf=objectIsPrototypeOf,method=map$6,ArrayPrototype=Array.prototype,map$5=function(e){var t=e.map;return e===ArrayPrototype||isPrototypeOf(ArrayPrototype,e)&&t===ArrayPrototype.map?method:t},parent$5=map$5,map$4=parent$5,parent$4=map$4,map$3=parent$4,parent$3=map$3,map$2=parent$3,map$1=map$2,map2=map$1,_mapInstanceProperty=getDefaultExportFromCjs(map2),isArray2=isArray$1,_Array$isArray=getDefaultExportFromCjs(isArray2),_e=function(){return _e=_Object$assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_e.apply(this,arguments)};function t(e,t){var r="function"==typeof _Symbol&&_getIteratorMethod(e);if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function i$1(){for(var e=[],r=0;r<arguments.length;r++)e=_concatInstanceProperty(e).call(e,t(arguments[r]));return e}var n,u,p,l,o=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(o){t(o),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,o=_indexOfInstanceProperty(r=this._hooks[e]).call(r,t);-1!==o&&_spliceInstanceProperty(n=this._hooks[e]).call(n,o,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==_indexOfInstanceProperty(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&_forEachInstanceProperty(r=i$1(this._hooks[e])).call(r,(function(e){try{e(t)}catch(e){}}))},e.prototype.set=function(e){var t;e&&-1===_indexOfInstanceProperty(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),r=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},s=(n=+_Date$now()+Number(_sliceInstanceProperty(_context6=""+Math.random()).call(_context6,2,8)),function(){return n+=1}),a=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,o=[];r=r<=25?r:r%25;var a=String.fromCharCode(r+97);n=e.split(a);for(var i=0;i<n.length;i++){var s=_parseInt$7(n[i],r);s=1*s^64;var l=String.fromCharCode(s);o.push(l)}return o.join("")}}(e,0,25)},c=function(e){var t=document.createElement("a");return t.href=e,t},h=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?c(r).hostname:"";!function(e){var t={};try{var r,n=c(e).search;_forEachInstanceProperty(r=(n=_sliceInstanceProperty(n).call(n,1)).split("&")).call(r,(function(e){var r,n,o=e.split("=");o.length&&(r=o[0],n=o[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(e){t[r]=n}}))}catch(e){}}(window.location.href);var o=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",a=this.browser(),i=this.os();return{browser:a.browser,browser_version:a.browser_version,platform:o,os_name:i.os_name,os_version:i.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(i.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+_parseFloat$1(this.appVersion),o=this.userAgent;return-1!==_indexOfInstanceProperty(o).call(o,"Edge")||-1!==_indexOfInstanceProperty(o).call(o,"Edg")?(r="Microsoft Edge",-1!==_indexOfInstanceProperty(o).call(o,"Edge")?(e=_indexOfInstanceProperty(o).call(o,"Edge"),n=o.substring(e+5)):(e=_indexOfInstanceProperty(o).call(o,"Edg"),n=o.substring(e+4))):-1!==(e=_indexOfInstanceProperty(o).call(o,"MSIE"))?(r="Microsoft Internet Explorer",n=o.substring(e+5)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Lark"))?(r="Lark",n=o.substring(e+5,e+11)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MetaSr"))?(r="sougoubrowser",n=o.substring(e+7,e+10)):-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")||-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")?(r="qqbrowser",-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")?(e=_indexOfInstanceProperty(o).call(o,"MQQBrowser"),n=o.substring(e+11,e+15)):-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"QQBrowser"),n=o.substring(e+10,e+17))):-1!==_indexOfInstanceProperty(o).call(o,"Chrome")?-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"360"))?(r="360browser",n=o.substring(_indexOfInstanceProperty(o).call(o,"Chrome")+7)):-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")||-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")?(-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")?(e=_indexOfInstanceProperty(o).call(o,"baidubrowser"),n=o.substring(e+13,e+16)):-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"BIDUBrowser"),n=o.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=_indexOfInstanceProperty(o).call(o,"xiaomi"))?-1!==_indexOfInstanceProperty(o).call(o,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=o.substring(e+7,e+13)):(r="xiaomi",n=o.substring(e-7,e-1)):-1!==(e=_indexOfInstanceProperty(o).call(o,"TTWebView"))?(r="TTWebView",n=o.substring(e+10,e+23)):(-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome"))||-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome")))&&(r="Chrome",n=o.substring(e+7)):-1!==_indexOfInstanceProperty(o).call(o,"Safari")?-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+10,e+16)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Safari"))&&(r="Safari",n=o.substring(e+7),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))):-1!==(e=_indexOfInstanceProperty(o).call(o,"Firefox"))?(r="Firefox",n=o.substring(e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+3,e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Opera"))&&(r="Opera",n=o.substring(e+6),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))),-1!==(t=_indexOfInstanceProperty(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var o=r[n];if(o.r.test(this.userAgent)){"Mac OS X"===(e=o.s)&&this.isNewIpad()&&(e="iOS");break}}var a,i,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?_sliceInstanceProperty(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(i=s(/Android ([\.\_\d]+)/,a=this.userAgent))||(i=s(/Android\/([\.\_\d]+)/,a)),t=i,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)_forEachInstanceProperty(r=navigator.userAgent.split(";")).call(r,(function(e){_indexOfInstanceProperty(e).call(e,"Build/")>-1&&(t=_sliceInstanceProperty(e).call(e,0,_indexOfInstanceProperty(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),o=_indexOfInstanceProperty(n).call(n,";");t=_sliceInstanceProperty(n).call(n,0,o)}}catch(e){return _trimInstanceProperty(t).call(t)}return _trimInstanceProperty(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),f=(u=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function o(t,o,a){if("undefined"!=typeof document){"number"==typeof(a=e({},n,a)).expires&&(a.expires=new Date(_Date$now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in a)a[s]&&(i+="; "+s,!0!==a[s]&&(i+="="+a[s].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+i}}return _Object$create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var a=t[o].split("="),i=_sliceInstanceProperty(a).call(a,1).join("=");try{var s=decodeURIComponent(a[0]);if(n[s]=r.read(i,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:_Object$freeze(n)},converter:{value:_Object$freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=_sliceInstanceProperty(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},u(p={exports:{}},p.exports),p.exports),d=f,g=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),m={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);localStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(e){}},getCookie:function(e,t){try{return d.get(e,{domain:t||document.domain})}catch(e){return""}},setCookie:function(e,t,r,n){try{var o=n||document.domain,a=+new Date+r;d.set(e,t,{expires:new Date(a),path:"/",domain:o})}catch(e){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},_={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);sessionStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(e){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},v=function(){function e(e,t){this._storage=t&&"session"===t?_:!e&&m.isSupportLS?m:new g}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),y={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},w=void 0,b=(new Date).getTimezoneOffset(),k=_parseInt$7(""+-b/60,10),x=60*b,O=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new h(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new v(!1,"session"),this.localStorage=new v(!1,"local");var o=this.localStorage.getItem(n);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:w,user_type:w,user_id:w,user_is_auth:w,user_is_login:w,device_id:w,web_id:w,user_unique_id_type:w},header:{app_id:w,app_name:w,app_install_id:w,install_id:w,app_package:w,app_channel:w,app_version:w,ab_version:w,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:w,traffic_type:w,client_ip:w,device_brand:w,os_api:w,access:w,language:r.language,region:w,app_language:w,app_region:w,creative_id:w,ad_id:w,campaign_id:w,log_type:w,rnd:w,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:w,city:w,timezone:k,tz_offset:x,tz_name:w,sim_region:w,carrier:w,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:w,utm_content:w,utm_source:w,utm_medium:w,utm_campaign:w,custom:{},wechat_unionid:w,wechat_openid:w}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=a(y[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;_forEachInstanceProperty(t=_Object$keys(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=_e({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=_e({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?_indexOfInstanceProperty(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(_JSON$stringify(this.envInfo[e])):JSON.parse(_JSON$stringify(this.envInfo))}catch(e){console.log("get config stringify error ")}},e}();!function(e){e.Init="init",e.Config="config",e.Start="start",e.Ready="ready",e.TokenComplete="token-complete",e.TokenStorage="token-storage",e.TokenFetch="token-fetch",e.TokenError="token-error",e.ConfigUuid="config-uuid",e.TokenChange="token-change",e.TokenReset="token-reset",e.SessionReset="session-reset",e.SessionResetTime="session-reset-time",e.Event="event",e.Events="events",e.EventNow="event-now",e.CleanEvents="clean-events",e.BeconEvent="becon-event"}(l||(l={}));var I=l,S=500,z=5005;function M(e,t,r,n,o,a,i,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){a&&a(t,z)}),c.onload=function(){if(o){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(t){e={}}o(e,t)}}},c.onerror=function(){c.abort(),a&&a(t,S)},l?c.send(t):c.send(_JSON$stringify(t))}catch(e){}}var EOF,T=4003,C=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new v(!0),this.localStorage=new v(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(I.Ready,(function(){r.reportAll(!1)})),this.collect.on(I.Event,(function(e){r.event(e)})),this.collect.on(I.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=i$1(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=_setTimeout((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(e){}},e.prototype.beconEvent=function(e){var t=i$1(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=_sliceInstanceProperty(e).call(e,r,r+this.eventLimit);var o=this.split(this.merge(n));this.send(o,t)}else o=this.split(this.merge(e)),this.send(o,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,o=r.user;n.custom=_JSON$stringify(n.custom);var a=this.configManager.get("evtParams"),i=_mapInstanceProperty(e).call(e,(function(e){try{return _Object$keys(a).length&&(e.params=_e({},a,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=_JSON$stringify(e.params),e}catch(t){return e}})),s=[];if(!_Object$keys(o).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(_JSON$stringify({events:i,user:o,header:n}));return l.local_time=Math.floor(_Date$now()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return _mapInstanceProperty(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&_forEachInstanceProperty(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,o=e,a=r.timeout,i=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,_JSON$stringify(o))||s(n,o):M(n,o,a,0,i,s,0,"",false)}catch(e){console.warn("something error, "+_JSON$stringify(e.stack))}var n,o,a,i,s}))},e}(),E=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},P=function(){var e;return _sliceInstanceProperty(e=E().replace(/-/g,"")).call(e,0,19)},A=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new v(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(I.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=P();M(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=_Date$now(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(I.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===_indexOfInstanceProperty(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),o=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===o)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)),this.collect.emit(I.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),D=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},N=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new v(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(I.SessionReset,(function(){r.resetSessionId()})),this.collect.on(I.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;_Date$now()-t>this.expireTime?e={sessionId:D(),timestamp:_Date$now()}:e.timestamp=_Date$now(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=_Date$now():t={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,t),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:D(),timestamp:_Date$now()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&_Date$now()-e.timestamp+30>=this.expireTime&&(e={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,e))},e}(),R=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new o,this.Types=I,this.adapters.fetch=M,this.adapters.storage=v}return e.prototype.init=function(e){var t,n,o=this;this.inited?console.log("init can be call only one time"):e&&r(e)?e.app_id&&"number"==typeof(n=e.app_id)&&!isNaN(n)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==_indexOfInstanceProperty(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new O(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new C,this.tokenManager=new A,this.sessionManager=new N,_Promise.all([new _Promise((function(e){o.once(I.TokenComplete,(function(){e(!0)}))})),new _Promise((function(e){o.once(I.Start,(function(){e(!0)}))}))]).then((function(){o.sdkReady=!0,o.emit(I.Ready),console.info("appid: "+e.app_id+", userInfo:"+_JSON$stringify(o.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),o.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(I.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&r(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=_e({},e);t.user_unique_id;var n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&_indexOfInstanceProperty(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof _Object$getOwnPropertySymbols){var o=0;for(n=_Object$getOwnPropertySymbols(e);o<n.length;o++)_indexOfInstanceProperty(t).call(t,n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(I.ConfigUuid,t.user_unique_id),this.configManager.set(n)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(I.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];_Array$isArray(e)?_forEachInstanceProperty(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(I.Event,n),this.emit(I.SessionResetTime))}catch(e){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(_Array$isArray(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(I.BeconEvent,r),this.emit(I.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=_sliceInstanceProperty(e).call(e,6));var n=t;"object"!=_typeof(n)&&(n={}),n.event_index=s();var o=void 0;return n.local_ms?(o=n.local_ms,delete n.local_ms):o=+new Date,{event:r,params:n,local_time_ms:o}}catch(r){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:_Date$now(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=_e({},t,e);this.event("predefine_pageview",r)},e}(),q=new R("default"),uncurryThis$1=functionUncurryThis,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,$RangeError=RangeError,exec$1=uncurryThis$1(regexSeparators.exec),floor$1=Math.floor,fromCharCode=String.fromCharCode,charCodeAt=uncurryThis$1("".charCodeAt),join$1=uncurryThis$1([].join),push$1=uncurryThis$1([].push),replace$1=uncurryThis$1("".replace),split$1=uncurryThis$1("".split),toLowerCase$1=uncurryThis$1("".toLowerCase),ucs2decode=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=charCodeAt(e,r++);if(o>=55296&&o<=56319&&r<n){var a=charCodeAt(e,r++);56320==(64512&a)?push$1(t,((1023&o)<<10)+(1023&a)+65536):(push$1(t,o),r--)}else push$1(t,o)}return t},digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?floor$1(e/damp):e>>1,e+=floor$1(e/t);e>baseMinusTMin*tMax>>1;)e=floor$1(e/baseMinusTMin),n+=base;return floor$1(n+(baseMinusTMin+1)*e/(e+skew))},encode=function(e){var t,r,n=[],o=(e=ucs2decode(e)).length,a=initialN,i=0,s=initialBias;for(t=0;t<e.length;t++)(r=e[t])<128&&push$1(n,fromCharCode(r));var l=n.length,c=l;for(l&&push$1(n,delimiter);c<o;){var u=maxInt;for(t=0;t<e.length;t++)(r=e[t])>=a&&r<u&&(u=r);var p=c+1;if(u-a>floor$1((maxInt-i)/p))throw $RangeError(OVERFLOW_ERROR);for(i+=(u-a)*p,a=u,t=0;t<e.length;t++){if((r=e[t])<a&&++i>maxInt)throw $RangeError(OVERFLOW_ERROR);if(r==a){for(var $=i,f=base;;){var y=f<=s?tMin:f>=s+tMax?tMax:f-s;if($<y)break;var d=$-y,h=base-y;push$1(n,fromCharCode(digitToBasic(y+d%h))),$=floor$1(d/h),f+=base}push$1(n,fromCharCode(digitToBasic($))),s=adapt(i,p,c==l),i=0,c++}}i++,a++}return join$1(n,"")},stringPunycodeToAscii=function(e){var t,r,n=[],o=split$1(replace$1(toLowerCase$1(e),regexSeparators,"."),".");for(t=0;t<o.length;t++)r=o[t],push$1(n,exec$1(regexNonASCII,r)?"xn--"+encode(r):r);return join$1(n,".")},$$1=_export,DESCRIPTORS=descriptors,USE_NATIVE_URL$1=urlConstructorDetection,global$1=global$q,bind2=functionBindContext,uncurryThis=functionUncurryThis,defineBuiltIn=defineBuiltIn$8,defineBuiltInAccessor=defineBuiltInAccessor$4,anInstance=anInstance$3,hasOwn2=hasOwnProperty_1,assign2=objectAssign,arrayFrom=arrayFrom$1,arraySlice=arraySliceSimple,codeAt=stringMultibyte.codeAt,toASCII=stringPunycodeToAscii,$toString=toString$c,setToStringTag=setToStringTag$8,validateArgumentsLength$1=validateArgumentsLength$5,URLSearchParamsModule=web_urlSearchParams_constructor,InternalStateModule=internalState,setInternalState=InternalStateModule.set,getInternalURLState=InternalStateModule.getterFor("URL"),URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,NativeURL=global$1.URL,TypeError$1=global$1.TypeError,parseInt$1=global$1.parseInt,floor=Math.floor,pow=Math.pow,charAt=uncurryThis("".charAt),exec=uncurryThis(/./.exec),join=uncurryThis([].join),numberToString=uncurryThis(1..toString),pop=uncurryThis([].pop),push2=uncurryThis([].push),replace=uncurryThis("".replace),shift=uncurryThis([].shift),split=uncurryThis("".split),stringSlice=uncurryThis("".slice),toLowerCase=uncurryThis("".toLowerCase),unshift=uncurryThis([].unshift),INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[a-z]/i,ALPHANUMERIC=/[\d+-.a-z]/i,DIGIT=/\d/,HEX_START=/^0x/i,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\da-f]+$/i,FORBIDDEN_HOST_CODE_POINT=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+/,TRAILING_C0_CONTROL_OR_SPACE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,TAB_AND_NEW_LINE=/[\t\n\r]/g,parseIPv4=function(e){var t,r,n,o,a,i,s,l=split(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=l[n]))return e;if(a=10,o.length>1&&"0"==charAt(o,0)&&(a=exec(HEX_START,o)?16:8,o=stringSlice(o,8==a?1:2)),""===o)i=0;else{if(!exec(10==a?DEC:8==a?OCT:HEX,o))return e;i=parseInt$1(o,a)}push2(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=pow(256,5-t))return null}else if(i>255)return null;for(s=pop(r),n=0;n<r.length;n++)s+=r[n]*pow(256,3-n);return s},parseIPv6=function(e){var t,r,n,o,a,i,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,p=0,$=function(){return charAt(e,p)};if(":"==$()){if(":"!=charAt(e,1))return;p+=2,u=++c}for(;$();){if(8==c)return;if(":"!=$()){for(t=r=0;r<4&&exec(HEX,$());)t=16*t+parseInt$1($(),16),p++,r++;if("."==$()){if(0==r)return;if(p-=r,c>6)return;for(n=0;$();){if(o=null,n>0){if(!("."==$()&&n<4))return;p++}if(!exec(DIGIT,$()))return;for(;exec(DIGIT,$());){if(a=parseInt$1($(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;p++}l[c]=256*l[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==$()){if(p++,!$())return}else if($())return;l[c++]=t}else{if(null!==u)return;p++,u=++c}}if(null!==u)for(i=c-u,c=7;0!=c&&i>0;)s=l[c],l[c--]=l[u+i-1],l[u+--i]=s;else if(8!=c)return;return l},findLongestZeroSequence=function(e){for(var t=null,r=1,n=null,o=0,a=0;a<8;a++)0!==e[a]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=a),++o);return o>r&&(t=n,r=o),t},serializeHost=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)unshift(t,e%256),e=floor(e/256);return join(t,".")}if("object"==typeof e){for(t="",n=findLongestZeroSequence(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=numberToString(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign2({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign2({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign2({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=codeAt(e,0);return r>32&&r<127&&!hasOwn2(t,e)?e:encodeURIComponent(e)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(e,t){var r;return 2==e.length&&exec(ALPHA,charAt(e,0))&&(":"==(r=charAt(e,1))||!t&&"|"==r)},startsWithWindowsDriveLetter=function(e){var t;return e.length>1&&isWindowsDriveLetter(stringSlice(e,0,2))&&(2==e.length||"/"===(t=charAt(e,2))||"\\"===t||"?"===t||"#"===t)},isSingleDot=function(e){return"."===e||"%2e"===toLowerCase(e)},isDoubleDot=function(e){return".."===(e=toLowerCase(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},URLState=function(e,t,r){var n,o,a,i=$toString(e);if(t){if(o=this.parse(i))throw TypeError$1(o);this.searchParams=null}else{if(void 0!==r&&(n=new URLState(r,!0)),o=this.parse(i,null,n))throw TypeError$1(o);(a=getInternalSearchParamsState(new URLSearchParams$1)).bindURL(this),this.searchParams=a}};URLState.prototype={type:"URL",parse:function(e,t,r){var n,o,a,i,s=this,l=t||SCHEME_START,c=0,u="",p=!1,$=!1,f=!1;for(e=$toString(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=replace(e,LEADING_C0_CONTROL_OR_SPACE,""),e=replace(e,TRAILING_C0_CONTROL_OR_SPACE,"$1")),e=replace(e,TAB_AND_NEW_LINE,""),n=arrayFrom(e);c<=n.length;){switch(o=n[c],l){case SCHEME_START:if(!o||!exec(ALPHA,o)){if(t)return INVALID_SCHEME;l=NO_SCHEME;continue}u+=toLowerCase(o),l=SCHEME;break;case SCHEME:if(o&&(exec(ALPHANUMERIC,o)||"+"==o||"-"==o||"."==o))u+=toLowerCase(o);else{if(":"!=o){if(t)return INVALID_SCHEME;u="",l=NO_SCHEME,c=0;continue}if(t&&(s.isSpecial()!=hasOwn2(specialSchemes,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&specialSchemes[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?l=FILE:s.isSpecial()&&r&&r.scheme==s.scheme?l=SPECIAL_RELATIVE_OR_AUTHORITY:s.isSpecial()?l=SPECIAL_AUTHORITY_SLASHES:"/"==n[c+1]?(l=PATH_OR_AUTHORITY,c++):(s.cannotBeABaseURL=!0,push2(s.path,""),l=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!r||r.cannotBeABaseURL&&"#"!=o)return INVALID_SCHEME;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,l=FRAGMENT;break}l="file"==r.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!=o||"/"!=n[c+1]){l=RELATIVE;continue}l=SPECIAL_AUTHORITY_IGNORE_SLASHES,c++;break;case PATH_OR_AUTHORITY:if("/"==o){l=AUTHORITY;break}l=PATH;continue;case RELATIVE:if(s.scheme=r.scheme,o==EOF)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())l=RELATIVE_SLASH;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query="",l=QUERY;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.path.length--,l=PATH;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",l=FRAGMENT}break;case RELATIVE_SLASH:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,l=PATH;continue}l=AUTHORITY}else l=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(l=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!=o||"/"!=charAt(u,c+1))continue;c++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=o&&"\\"!=o){l=AUTHORITY;continue}break;case AUTHORITY:if("@"==o){p&&(u="%40"+u),p=!0,a=arrayFrom(u);for(var y=0;y<a.length;y++){var d=a[y];if(":"!=d||f){var h=percentEncode(d,userinfoPercentEncodeSet);f?s.password+=h:s.username+=h}else f=!0}u=""}else if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(p&&""==u)return INVALID_AUTHORITY;c-=arrayFrom(u).length+1,u="",l=HOST}else u+=o;break;case HOST:case HOSTNAME:if(t&&"file"==s.scheme){l=FILE_HOST;continue}if(":"!=o||$){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==u)return INVALID_HOST;if(t&&""==u&&(s.includesCredentials()||null!==s.port))return;if(i=s.parseHost(u))return i;if(u="",l=PATH_START,t)return;continue}"["==o?$=!0:"]"==o&&($=!1),u+=o}else{if(""==u)return INVALID_HOST;if(i=s.parseHost(u))return i;if(u="",l=PORT,t==HOSTNAME)return}break;case PORT:if(!exec(DIGIT,o)){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=u){var g=parseInt$1(u,10);if(g>65535)return INVALID_PORT;s.port=s.isSpecial()&&g===specialSchemes[s.scheme]?null:g,u=""}if(t)return;l=PATH_START;continue}return INVALID_PORT}u+=o;break;case FILE:if(s.scheme="file","/"==o||"\\"==o)l=FILE_SLASH;else{if(!r||"file"!=r.scheme){l=PATH;continue}if(o==EOF)s.host=r.host,s.path=arraySlice(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=arraySlice(r.path),s.query="",l=QUERY;else{if("#"!=o){startsWithWindowsDriveLetter(join(arraySlice(n,c),""))||(s.host=r.host,s.path=arraySlice(r.path),s.shortenPath()),l=PATH;continue}s.host=r.host,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",l=FRAGMENT}}break;case FILE_SLASH:if("/"==o||"\\"==o){l=FILE_HOST;break}r&&"file"==r.scheme&&!startsWithWindowsDriveLetter(join(arraySlice(n,c),""))&&(isWindowsDriveLetter(r.path[0],!0)?push2(s.path,r.path[0]):s.host=r.host),l=PATH;continue;case FILE_HOST:if(o==EOF||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&isWindowsDriveLetter(u))l=PATH;else if(""==u){if(s.host="",t)return;l=PATH_START}else{if(i=s.parseHost(u))return i;if("localhost"==s.host&&(s.host=""),t)return;u="",l=PATH_START}continue}u+=o;break;case PATH_START:if(s.isSpecial()){if(l=PATH,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=EOF&&(l=PATH,"/"!=o))continue}else s.fragment="",l=FRAGMENT;else s.query="",l=QUERY;break;case PATH:if(o==EOF||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(isDoubleDot(u)?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||push2(s.path,"")):isSingleDot(u)?"/"==o||"\\"==o&&s.isSpecial()||push2(s.path,""):("file"==s.scheme&&!s.path.length&&isWindowsDriveLetter(u)&&(s.host&&(s.host=""),u=charAt(u,0)+":"),push2(s.path,u)),u="","file"==s.scheme&&(o==EOF||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)shift(s.path);"?"==o?(s.query="",l=QUERY):"#"==o&&(s.fragment="",l=FRAGMENT)}else u+=percentEncode(o,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==o?(s.query="",l=QUERY):"#"==o?(s.fragment="",l=FRAGMENT):o!=EOF&&(s.path[0]+=percentEncode(o,C0ControlPercentEncodeSet));break;case QUERY:t||"#"!=o?o!=EOF&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":percentEncode(o,C0ControlPercentEncodeSet)):(s.fragment="",l=FRAGMENT);break;case FRAGMENT:o!=EOF&&(s.fragment+=percentEncode(o,fragmentPercentEncodeSet))}c++}},parseHost:function(e){var t,r,n;if("["==charAt(e,0)){if("]"!=charAt(e,e.length-1))return INVALID_HOST;if(!(t=parseIPv6(stringSlice(e,1,-1))))return INVALID_HOST;this.host=t}else if(this.isSpecial()){if(e=toASCII(e),exec(FORBIDDEN_HOST_CODE_POINT,e))return INVALID_HOST;if(null===(t=parseIPv4(e)))return INVALID_HOST;this.host=t}else{if(exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT,e))return INVALID_HOST;for(t="",r=arrayFrom(e),n=0;n<r.length;n++)t+=percentEncode(r[n],C0ControlPercentEncodeSet);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return hasOwn2(specialSchemes,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&isWindowsDriveLetter(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,a=e.port,i=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=serializeHost(o),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+join(i,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw TypeError$1(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new URLConstructor(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+serializeHost(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse($toString(e)+":",SCHEME_START)},getUsername:function(){return this.username},setUsername:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=percentEncode(t[r],userinfoPercentEncodeSet)}},getPassword:function(){return this.password},setPassword:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=percentEncode(t[r],userinfoPercentEncodeSet)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?serializeHost(e):serializeHost(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,HOST)},getHostname:function(){var e=this.host;return null===e?"":serializeHost(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,HOSTNAME)},getPort:function(){var e=this.port;return null===e?"":$toString(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=$toString(e))?this.port=null:this.parse(e,PORT))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+join(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,PATH_START))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=$toString(e))?this.query=null:("?"==charAt(e,0)&&(e=stringSlice(e,1)),this.query="",this.parse(e,QUERY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=$toString(e))?("#"==charAt(e,0)&&(e=stringSlice(e,1)),this.fragment="",this.parse(e,FRAGMENT)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor=function(e){var t=anInstance(this,URLPrototype),r=validateArgumentsLength$1(arguments.length,1)>1?arguments[1]:void 0,n=setInternalState(t,new URLState(e,!1,r));DESCRIPTORS||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},URLPrototype=URLConstructor.prototype,accessorDescriptor=function(e,t){return{get:function(){return getInternalURLState(this)[e]()},set:t&&function(e){return getInternalURLState(this)[t](e)},configurable:!0,enumerable:!0}};if(DESCRIPTORS&&(defineBuiltInAccessor(URLPrototype,"href",accessorDescriptor("serialize","setHref")),defineBuiltInAccessor(URLPrototype,"origin",accessorDescriptor("getOrigin")),defineBuiltInAccessor(URLPrototype,"protocol",accessorDescriptor("getProtocol","setProtocol")),defineBuiltInAccessor(URLPrototype,"username",accessorDescriptor("getUsername","setUsername")),defineBuiltInAccessor(URLPrototype,"password",accessorDescriptor("getPassword","setPassword")),defineBuiltInAccessor(URLPrototype,"host",accessorDescriptor("getHost","setHost")),defineBuiltInAccessor(URLPrototype,"hostname",accessorDescriptor("getHostname","setHostname")),defineBuiltInAccessor(URLPrototype,"port",accessorDescriptor("getPort","setPort")),defineBuiltInAccessor(URLPrototype,"pathname",accessorDescriptor("getPathname","setPathname")),defineBuiltInAccessor(URLPrototype,"search",accessorDescriptor("getSearch","setSearch")),defineBuiltInAccessor(URLPrototype,"searchParams",accessorDescriptor("getSearchParams")),defineBuiltInAccessor(URLPrototype,"hash",accessorDescriptor("getHash","setHash"))),defineBuiltIn(URLPrototype,"toJSON",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),defineBuiltIn(URLPrototype,"toString",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&defineBuiltIn(URLConstructor,"createObjectURL",bind2(nativeCreateObjectURL,NativeURL)),nativeRevokeObjectURL&&defineBuiltIn(URLConstructor,"revokeObjectURL",bind2(nativeRevokeObjectURL,NativeURL))}setToStringTag(URLConstructor,"URL"),$$1({global:!0,constructor:!0,forced:!USE_NATIVE_URL$1,sham:!DESCRIPTORS},{URL:URLConstructor});var $=_export,getBuiltIn=getBuiltIn$g,fails=fails$z,validateArgumentsLength=validateArgumentsLength$5,toString4=toString$c,USE_NATIVE_URL=urlConstructorDetection,URL$1=getBuiltIn("URL"),THROWS_WITHOUT_ARGUMENTS=USE_NATIVE_URL&&fails((function(){URL$1.canParse()}));$({target:"URL",stat:!0,forced:!THROWS_WITHOUT_ARGUMENTS},{canParse:function(e){var t=validateArgumentsLength(arguments.length,1),r=toString4(e),n=t<2||void 0===arguments[1]?void 0:toString4(arguments[1]);try{return!!new URL$1(r,n)}catch(e){return!1}}});var getRandomValues,path=path$u,url$5=path.URL,parent$2=url$5,url$4=parent$2,parent$1=url$4,url$3=parent$1,parent=url$3,url$2=parent,url$1=url$2,url=url$1,_URL=getDefaultExportFromCjs(url),rnds8=new Uint8Array(16);function rng(){var e;if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&_bindInstanceProperty(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var _context$1,byteToHex=[],i=0;i<256;++i){var _context$2;byteToHex.push(_sliceInstanceProperty(_context$2=(i+256).toString(16)).call(_context$2,1))}function unsafeStringify(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]}var randomUUID="undefined"!=typeof crypto&&crypto.randomUUID&&_bindInstanceProperty(_context$1=crypto.randomUUID).call(_context$1,crypto),_native={randomUUID:randomUUID};function v4(e,t,r){if(_native.randomUUID&&!t&&!e)return _native.randomUUID();var n=(e=e||{}).random||(e.rng||rng)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return unsafeStringify(n)}var DEVICE_ID_KEY="veplayer_live_device_id",USER_ID_Key="veplayer_live_user_id",genRandomID2=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},getDeviceID2=function(){var e=localStorage.getItem(DEVICE_ID_KEY);return e||(e=genRandomID2(11),localStorage.setItem(DEVICE_ID_KEY,e),e)},getUserId2=function(){var e=localStorage.getItem(USER_ID_Key);return e||(e=genRandomID2(12),localStorage.setItem(USER_ID_Key,e),e)},generateUrlWithSessionId=function(e){if(!e)return"";var t,r=_startsWithInstanceProperty(e).call(e,"//");r&&(e=location.protocol+e);try{var n,o,a=new _URL(e);if(null==a||null===(n=a.searchParams)||void 0===n||!n.get("_session_id"))null==a||null===(o=a.searchParams)||void 0===o||o.append("_session_id",generateSessionId());e=a.toString()}catch(e){}return r?null===(t=e)||void 0===t?void 0:t.replace(location.protocol,""):e},hashCode=function(e){for(var t=0,r=0,n=(e+="").length,o=0;o<n;o++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t},generateSessionId=function(){return v4().replace(/-/g,"")+"."+_Date$now()+"."+hashCode(v4().replace(/-/g,""))},Plugin$2=window.VePlayer.Plugin,CN_APPID=468759,CHANNEL="cn",CHANNEL_DOMAIN="//mcs.volceapplog.com",Logger=function(e){_inherits(r,Plugin$2);var t=_createSuper(r);function r(){var e,n;_classCallCheck(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_userId",void 0),_defineProperty$1(_assertThisInitialized(n),"_deviceId",void 0),_defineProperty$1(_assertThisInitialized(n),"_liveLogger",void 0),n}return _createClass$1(r,[{key:"afterCreate",value:function(){var e,t;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||getUserId2(),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||getDeviceID2(),this.open()):console.info("not found appId, please generate an appId"))}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==q?void 0:q.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){q.init({app_id:CN_APPID,channel:CHANNEL,channel_domain:CHANNEL_DOMAIN}),q.start(),q.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new LoggerControl({Tea:q,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.1.0-rc.0",flv_version:"3.0.10-alpha.4",hls_version:"3.0.10-alpha.4",rts_version:"0.2.0-alpha.5"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}();function normalizeNumber(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}function getDefaultRow(e){var t,r,n;return{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:normalizeNumber(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:normalizeNumber(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:normalizeNumber(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:_concatInstanceProperty(r="".concat(normalizeNumber(e.height)," * ")).call(r,normalizeNumber(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:normalizeNumber(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:normalizeNumber(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]}}function getSoftDecodeRow(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:normalizeNumber(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:normalizeNumber(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}var _context,infoPanel="",util$1=window.VePlayer.util,Plugin$1=window.VePlayer.Plugin,XGUtil=window.VePlayer.XGUtil,InfoPanel=function(e){_inherits(r,Plugin$1);var t=_createSuper(r);function r(){var e,n;_classCallCheck(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_pollTimer",void 0),_defineProperty$1(_assertThisInitialized(n),"_visible",void 0),_defineProperty$1(_assertThisInitialized(n),"_playPlugin",void 0),n}return _createClass$1(r,[{key:"_streamType",get:function(){return util$1.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Events.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Events.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(_includesInstanceProperty(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(Events.LOADED_DATA,(function(){return e.open()})),this.player.off(Events.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=_setTimeout((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e=this._getStats()||{},t="".concat(this._streamType,"_live"),r=this._playPlugin.softDecode,n=[getDefaultRow(_objectSpread2$1(_objectSpread2$1({},e),{},{format:t}))];return r&&n.push(getSoftDecodeRow(e)),n}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",_forEachInstanceProperty(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,o=t.titleTextKey,a=t.rows,i=this.player.config.i18nManager;if(n||o){var s,l=this._genTitleDom(null!==(s=i.getText(o))&&void 0!==s?s:n);e.appendChild(l)}_forEachInstanceProperty(a).call(a,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=XGUtil.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=XGUtil.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=XGUtil.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=XGUtil.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var o=XGUtil.createDom("xg-live-panel",e.value);return r.appendChild(o),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(),BaseEN=window.VePlayer.EN,EN$1=_objectSpread2$1(_objectSpread2$1({},BaseEN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),BaseZH_CN=window.VePlayer.ZH_CN,ZH_CN$1=_objectSpread2$1(_objectSpread2$1({},BaseZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),DEFAULT_PLUGINS=window.VePlayer.DEFAULT_PLUGINS,VePlayerBase=window.VePlayer.VePlayerBase,VeI18n=window.VePlayer.VeI18n;VeI18n.extend([{LANG:"zh-cn",TEXT:ZH_CN$1},{LANG:"en",TEXT:EN$1}]);var LIVE_DEFAULT_OPTIONS={autoplay:{muted:!0}},LIVE_DEFAULT_PLUGINS=_concatInstanceProperty(_context=[]).call(_context,_toConsumableArray(DEFAULT_PLUGINS),[Refresh,Logger,InfoPanel]),RTMCodec=function(e){return e.H264="h264",e}(RTMCodec||{}),VePlayerLive=function(e){_inherits(r,VePlayerBase);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e)}return _createClass$1(r,[{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}}]),r}();function createLivePlayer(e){return _createLivePlayer.apply(this,arguments)}function _createLivePlayer(){return(_createLivePlayer=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i,s,l;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=void 0,t&&(t.url||t.playlist)){e.next=3;break}throw create$2(ErrorCode.INVALID_PARAMETER,new VeI18n);case 3:return a=new VeI18n({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),i=_objectSpread2$1(_objectSpread2$1({},t),{},{plugins:_concatInstanceProperty(r=[]).call(r,_toConsumableArray(LIVE_DEFAULT_PLUGINS),_toConsumableArray(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,VePlayerBase.create(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},LIVE_DEFAULT_OPTIONS),i),{},{isLive:!0,i18nManager:a,preProcessUrl:function(e){return{url:generateUrlWithSessionId(e)}},preparePlugins:function(e){return _asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",getTypeStrategy(_objectSpread2$1(_objectSpread2$1({},i),{},{url:e}),o));case 1:case"end":return t.stop()}}),t)})))()}}),VePlayerLive);case 7:return(o=e.sent)&&(l=null===(s=o)||void 0===s||null===(s=s._player)||void 0===s||null===(s=s.config)||void 0===s?void 0:s._RTMdegrade)&&o.emit("degrade",{originRtmUrl:l._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:l._isRTMSupported,isRTMSupportCodec:l._isRTMSupportCodec}),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var live=Object.freeze({__proto__:null,ErrorCode:ErrorCode,Events:Events}),setModuleSystem=window.VePlayer.setModuleSystem,Codec=window.VePlayer.Codec,DecodeType=window.VePlayer.DecodeType,Degradation=window.VePlayer.Degradation,POSITIONS=window.VePlayer.POSITIONS,register=window.VePlayer.register,EN=window.VePlayer.EN,ZH_CN=window.VePlayer.ZH_CN,Plugin=window.VePlayer.Plugin,Sniffer=window.VePlayer.Sniffer,DynamicModule=window.VePlayer.DynamicModule,util=window.VePlayer.util,load=window.VePlayer.load;setModuleSystem("esm");var isMseSupported=util.isMseSupported,isSoftDecodeSupported=util.isSoftDecodeSupported;export{Codec,DecodeType,Degradation,DynamicModule,EN,POSITIONS,Plugin,RTMCodec,Sniffer,ZH_CN,createLivePlayer,isMseSupported,isRTMSupportCodec,isRTMSupported,isSoftDecodeSupported,live,load,register,util};
2
2
  //# sourceMappingURL=esm/veplayer.biz.live.production.js.map