@zeewain/3d-avatar-sdk 2.2.1 → 2.2.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.
- package/dist/assets/Build/webgl.data.unityweb +0 -0
- package/dist/assets/Build/webgl.framework.js.unityweb +0 -0
- package/dist/assets/Build/webgl.wasm.unityweb +0 -0
- package/dist/examples/test-vue2/package.json +1 -1
- package/dist/examples/test-vue3/package.json +1 -1
- package/dist/examples/test-vue3/src/App.vue +2 -2
- package/dist/examples/test-vue3/src/components/UnityPreview.vue +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es5.umd.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.es5.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory((global="undefined"!=typeof globalThis?globalThis:global||self).ZEEAvatarSDKLib={})}(this,function(exports){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(it){return it&&it.Math===Math&&it},globalThis_1=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$18=function(exec){try{return!!exec()}catch(error){return!0}},descriptors=!fails$18(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative=!fails$18(function(){var test=function(){}.bind();return"function"!=typeof test||test.hasOwnProperty("prototype")}),NATIVE_BIND$4=functionBindNative,call$x=Function.prototype.call,functionCall=NATIVE_BIND$4?call$x.bind(call$x):function(){return call$x.apply(call$x,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$2={}.propertyIsEnumerable,getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$9&&!$propertyIsEnumerable$2.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor$9(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable$2;var match,version,createPropertyDescriptor$8=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}},NATIVE_BIND$3=functionBindNative,FunctionPrototype$4=Function.prototype,call$w=FunctionPrototype$4.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$4.bind.bind(call$w,call$w),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(fn){return function(){return call$w.apply(fn,arguments)}},uncurryThis$X=functionUncurryThis,toString$p=uncurryThis$X({}.toString),stringSlice$e=uncurryThis$X("".slice),classofRaw$2=function(it){return stringSlice$e(toString$p(it),8,-1)},fails$15=fails$18,classof$j=classofRaw$2,$Object$5=Object,split$3=functionUncurryThis("".split),indexedObject=fails$15(function(){return!$Object$5("z").propertyIsEnumerable(0)})?function(it){return"String"===classof$j(it)?split$3(it,""):$Object$5(it)}:$Object$5,isNullOrUndefined$7=function(it){return null==it},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$k=TypeError,requireObjectCoercible$f=function(it){if(isNullOrUndefined$6(it))throw new $TypeError$k("Can't call method on "+it);return it},IndexedObject$4=indexedObject,requireObjectCoercible$e=requireObjectCoercible$f,toIndexedObject$f=function(it){return IndexedObject$4(requireObjectCoercible$e(it))},documentAll="object"==typeof document&&document.all,isCallable$v=void 0===documentAll&&void 0!==documentAll?function(argument){return"function"==typeof argument||argument===documentAll}:function(argument){return"function"==typeof argument},isCallable$u=isCallable$v,isObject$C=function(it){return"object"==typeof it?null!==it:isCallable$u(it)},globalThis$Q=globalThis_1,isCallable$t=isCallable$v,getBuiltIn$f=function(namespace,method){return arguments.length<2?(argument=globalThis$Q[namespace],isCallable$t(argument)?argument:void 0):globalThis$Q[namespace]&&globalThis$Q[namespace][method];var argument},objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),navigator$1=globalThis_1.navigator,userAgent$8=navigator$1&&navigator$1.userAgent,environmentUserAgent=userAgent$8?String(userAgent$8):"",globalThis$O=globalThis_1,userAgent$7=environmentUserAgent,process$3=globalThis$O.process,Deno$1=globalThis$O.Deno,versions=process$3&&process$3.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$7&&(!(match=userAgent$7.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$7.match(/Chrome\/(\d+)/))&&(version=+match[1]);var environmentV8Version=version,V8_VERSION$3=environmentV8Version,fails$14=fails$18,$String$7=globalThis_1.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$14(function(){var symbol=Symbol("symbol detection");return!$String$7(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41}),useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$e=getBuiltIn$f,isCallable$s=isCallable$v,isPrototypeOf$a=objectIsPrototypeOf,$Object$4=Object,isSymbol$6=useSymbolAsUid?function(it){return"symbol"==typeof it}:function(it){var $Symbol=getBuiltIn$e("Symbol");return isCallable$s($Symbol)&&isPrototypeOf$a($Symbol.prototype,$Object$4(it))},$String$6=String,tryToString$7=function(argument){try{return $String$6(argument)}catch(error){return"Object"}},isCallable$r=isCallable$v,tryToString$6=tryToString$7,$TypeError$j=TypeError,aCallable$h=function(argument){if(isCallable$r(argument))return argument;throw new $TypeError$j(tryToString$6(argument)+" is not a function")},aCallable$g=aCallable$h,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$7=function(V,P){var func=V[P];return isNullOrUndefined$5(func)?void 0:aCallable$g(func)},call$v=functionCall,isCallable$q=isCallable$v,isObject$B=isObject$C,$TypeError$i=TypeError,ordinaryToPrimitive$2=function(input,pref){var fn,val;if("string"===pref&&isCallable$q(fn=input.toString)&&!isObject$B(val=call$v(fn,input)))return val;if(isCallable$q(fn=input.valueOf)&&!isObject$B(val=call$v(fn,input)))return val;if("string"!==pref&&isCallable$q(fn=input.toString)&&!isObject$B(val=call$v(fn,input)))return val;throw new $TypeError$i("Can't convert object to primitive value")},sharedStore={exports:{}},globalThis$M=globalThis_1,defineProperty$a=Object.defineProperty,defineGlobalProperty$3=function(key,value){try{defineProperty$a(globalThis$M,key,{value:value,configurable:!0,writable:!0})}catch(error){globalThis$M[key]=value}return value},globalThis$L=globalThis_1,defineGlobalProperty$2=defineGlobalProperty$3,store$3=sharedStore.exports=globalThis$L["__core-js_shared__"]||defineGlobalProperty$2("__core-js_shared__",{});(store$3.versions||(store$3.versions=[])).push({version:"3.44.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedStoreExports=sharedStore.exports,store$2=sharedStoreExports,shared$7=function(key,value){return store$2[key]||(store$2[key]=value||{})},requireObjectCoercible$d=requireObjectCoercible$f,$Object$3=Object,toObject$n=function(argument){return $Object$3(requireObjectCoercible$d(argument))},toObject$m=toObject$n,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject$m(it),key)},uncurryThis$T=functionUncurryThis,id$2=0,postfix=Math.random(),toString$o=uncurryThis$T(1.1.toString),uid$5=function(key){return"Symbol("+(void 0===key?"":key)+")_"+toString$o(++id$2+postfix,36)},shared$6=shared$7,hasOwn$q=hasOwnProperty_1,uid$4=uid$5,NATIVE_SYMBOL$5=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$3=globalThis_1.Symbol,WellKnownSymbolsStore$1=shared$6("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$3.for||Symbol$3:Symbol$3&&Symbol$3.withoutSetter||uid$4,wellKnownSymbol$w=function(name){return hasOwn$q(WellKnownSymbolsStore$1,name)||(WellKnownSymbolsStore$1[name]=NATIVE_SYMBOL$5&&hasOwn$q(Symbol$3,name)?Symbol$3[name]:createWellKnownSymbol("Symbol."+name)),WellKnownSymbolsStore$1[name]},call$u=functionCall,isObject$A=isObject$C,isSymbol$5=isSymbol$6,getMethod$6=getMethod$7,ordinaryToPrimitive$1=ordinaryToPrimitive$2,$TypeError$h=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$w("toPrimitive"),toPrimitive$3=function(input,pref){if(!isObject$A(input)||isSymbol$5(input))return input;var result,exoticToPrim=getMethod$6(input,TO_PRIMITIVE$1);if(exoticToPrim){if(void 0===pref&&(pref="default"),result=call$u(exoticToPrim,input,pref),!isObject$A(result)||isSymbol$5(result))return result;throw new $TypeError$h("Can't convert object to primitive value")}return void 0===pref&&(pref="number"),ordinaryToPrimitive$1(input,pref)},toPrimitive$2=toPrimitive$3,isSymbol$4=isSymbol$6,toPropertyKey$7=function(argument){var key=toPrimitive$2(argument,"string");return isSymbol$4(key)?key:key+""},isObject$z=isObject$C,document$3=globalThis_1.document,EXISTS$1=isObject$z(document$3)&&isObject$z(document$3.createElement),documentCreateElement$2=function(it){return EXISTS$1?document$3.createElement(it):{}},createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$18(function(){return 7!==Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$z=descriptors,call$t=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$7=createPropertyDescriptor$8,toIndexedObject$e=toIndexedObject$f,toPropertyKey$6=toPropertyKey$7,hasOwn$p=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$z?$getOwnPropertyDescriptor$2:function getOwnPropertyDescriptor(O,P){if(O=toIndexedObject$e(O),P=toPropertyKey$6(P),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(O,P)}catch(error){}if(hasOwn$p(O,P))return createPropertyDescriptor$7(!call$t(propertyIsEnumerableModule$2.f,O,P),O[P])};var objectDefineProperty={},v8PrototypeDefineBug=descriptors&&fails$18(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$y=isObject$C,$String$5=String,$TypeError$g=TypeError,anObject$x=function(argument){if(isObject$y(argument))return argument;throw new $TypeError$g($String$5(argument)+" is not an object")},DESCRIPTORS$x=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$w=anObject$x,toPropertyKey$5=toPropertyKey$7,$TypeError$f=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectDefineProperty.f=DESCRIPTORS$x?V8_PROTOTYPE_DEFINE_BUG$1?function defineProperty(O,P,Attributes){if(anObject$w(O),P=toPropertyKey$5(P),anObject$w(Attributes),"function"==typeof O&&"prototype"===P&&"value"in Attributes&&"writable"in Attributes&&!Attributes.writable){var current=$getOwnPropertyDescriptor$1(O,P);current&¤t.writable&&(O[P]=Attributes.value,Attributes={configurable:"configurable"in Attributes?Attributes.configurable:current.configurable,enumerable:"enumerable"in Attributes?Attributes.enumerable:current.enumerable,writable:!1})}return $defineProperty$1(O,P,Attributes)}:$defineProperty$1:function defineProperty(O,P,Attributes){if(anObject$w(O),P=toPropertyKey$5(P),anObject$w(Attributes),IE8_DOM_DEFINE)try{return $defineProperty$1(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw new $TypeError$f("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O};var definePropertyModule$b=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$8,createNonEnumerableProperty$a=descriptors?function(object,key,value){return definePropertyModule$b.f(object,key,createPropertyDescriptor$6(1,value))}:function(object,key,value){return object[key]=value,object},makeBuiltIn$4={exports:{}},DESCRIPTORS$v=descriptors,hasOwn$o=hasOwnProperty_1,FunctionPrototype$3=Function.prototype,getDescriptor=DESCRIPTORS$v&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$o(FunctionPrototype$3,"name"),functionName={EXISTS:EXISTS,PROPER:EXISTS&&"something"===function something(){}.name,CONFIGURABLE:EXISTS&&(!DESCRIPTORS$v||DESCRIPTORS$v&&getDescriptor(FunctionPrototype$3,"name").configurable)},isCallable$p=isCallable$v,store$1=sharedStoreExports,functionToString$1=functionUncurryThis(Function.toString);isCallable$p(store$1.inspectSource)||(store$1.inspectSource=function(it){return functionToString$1(it)});var set$3,get$2,has,inspectSource$3=store$1.inspectSource,isCallable$o=isCallable$v,WeakMap$1=globalThis_1.WeakMap,weakMapBasicDetection=isCallable$o(WeakMap$1)&&/native code/.test(String(WeakMap$1)),uid$3=uid$5,keys$1=shared$7("keys"),sharedKey$4=function(key){return keys$1[key]||(keys$1[key]=uid$3(key))},hiddenKeys$6={},NATIVE_WEAK_MAP$1=weakMapBasicDetection,globalThis$H=globalThis_1,isObject$x=isObject$C,createNonEnumerableProperty$9=createNonEnumerableProperty$a,hasOwn$n=hasOwnProperty_1,shared$4=sharedStoreExports,sharedKey$3=sharedKey$4,hiddenKeys$5=hiddenKeys$6,TypeError$7=globalThis$H.TypeError,WeakMap=globalThis$H.WeakMap;if(NATIVE_WEAK_MAP$1||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$3=function(it,metadata){if(store.has(it))throw new TypeError$7("Object already initialized");return metadata.facade=it,store.set(it,metadata),metadata},get$2=function(it){return store.get(it)||{}},has=function(it){return store.has(it)}}else{var STATE=sharedKey$3("state");hiddenKeys$5[STATE]=!0,set$3=function(it,metadata){if(hasOwn$n(it,STATE))throw new TypeError$7("Object already initialized");return metadata.facade=it,createNonEnumerableProperty$9(it,STATE,metadata),metadata},get$2=function(it){return hasOwn$n(it,STATE)?it[STATE]:{}},has=function(it){return hasOwn$n(it,STATE)}}var internalState={set:set$3,get:get$2,has:has,enforce:function(it){return has(it)?get$2(it):set$3(it,{})},getterFor:function(TYPE){return function(it){var state;if(!isObject$x(it)||(state=get$2(it)).type!==TYPE)throw new TypeError$7("Incompatible receiver, "+TYPE+" required");return state}}},uncurryThis$R=functionUncurryThis,fails$11=fails$18,isCallable$n=isCallable$v,hasOwn$m=hasOwnProperty_1,DESCRIPTORS$u=descriptors,CONFIGURABLE_FUNCTION_NAME$2=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,enforceInternalState$4=internalState.enforce,getInternalState$6=internalState.get,$String$4=String,defineProperty$9=Object.defineProperty,stringSlice$d=uncurryThis$R("".slice),replace$a=uncurryThis$R("".replace),join$7=uncurryThis$R([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$u&&!fails$11(function(){return 8!==defineProperty$9(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$3=makeBuiltIn$4.exports=function(value,name,options){"Symbol("===stringSlice$d($String$4(name),0,7)&&(name="["+replace$a($String$4(name),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn$m(value,"name")||CONFIGURABLE_FUNCTION_NAME$2&&value.name!==name)&&(DESCRIPTORS$u?defineProperty$9(value,"name",{value:name,configurable:!0}):value.name=name),CONFIGURABLE_LENGTH&&options&&hasOwn$m(options,"arity")&&value.length!==options.arity&&defineProperty$9(value,"length",{value:options.arity});try{options&&hasOwn$m(options,"constructor")&&options.constructor?DESCRIPTORS$u&&defineProperty$9(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch(error){}var state=enforceInternalState$4(value);return hasOwn$m(state,"source")||(state.source=join$7(TEMPLATE,"string"==typeof name?name:"")),value};Function.prototype.toString=makeBuiltIn$3(function toString(){return isCallable$n(this)&&getInternalState$6(this).source||inspectSource$2(this)},"toString");var makeBuiltInExports=makeBuiltIn$4.exports,isCallable$m=isCallable$v,definePropertyModule$a=objectDefineProperty,makeBuiltIn$2=makeBuiltInExports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$i=function(O,key,value,options){options||(options={});var simple=options.enumerable,name=void 0!==options.name?options.name:key;if(isCallable$m(value)&&makeBuiltIn$2(value,name,options),options.global)simple?O[key]=value:defineGlobalProperty$1(key,value);else{try{options.unsafe?O[key]&&(simple=!0):delete O[key]}catch(error){}simple?O[key]=value:definePropertyModule$a.f(O,key,{value:value,enumerable:!1,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O},objectGetOwnPropertyNames={},ceil$1=Math.ceil,floor$9=Math.floor,mathTrunc=Math.trunc||function trunc(x){var n=+x;return(n>0?floor$9:ceil$1)(n)},trunc$1=mathTrunc,toIntegerOrInfinity$c=function(argument){var number=+argument;return number!=number||0===number?0:trunc$1(number)},toIntegerOrInfinity$b=toIntegerOrInfinity$c,max$3=Math.max,min$8=Math.min,toAbsoluteIndex$8=function(index,length){var integer=toIntegerOrInfinity$b(index);return integer<0?max$3(integer+length,0):min$8(integer,length)},toIntegerOrInfinity$a=toIntegerOrInfinity$c,min$7=Math.min,toLength$c=function(argument){var len=toIntegerOrInfinity$a(argument);return len>0?min$7(len,9007199254740991):0},toLength$b=toLength$c,lengthOfArrayLike$j=function(obj){return toLength$b(obj.length)},toIndexedObject$d=toIndexedObject$f,toAbsoluteIndex$7=toAbsoluteIndex$8,lengthOfArrayLike$i=lengthOfArrayLike$j,createMethod$6=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject$d($this),length=lengthOfArrayLike$i(O);if(0===length)return!IS_INCLUDES&&-1;var value,index=toAbsoluteIndex$7(fromIndex,length);if(IS_INCLUDES&&el!=el){for(;length>index;)if((value=O[index++])!=value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}},arrayIncludes={includes:createMethod$6(!0),indexOf:createMethod$6(!1)},hasOwn$l=hasOwnProperty_1,toIndexedObject$c=toIndexedObject$f,indexOf$1=arrayIncludes.indexOf,hiddenKeys$4=hiddenKeys$6,push$c=functionUncurryThis([].push),objectKeysInternal=function(object,names){var key,O=toIndexedObject$c(object),i=0,result=[];for(key in O)!hasOwn$l(hiddenKeys$4,key)&&hasOwn$l(O,key)&&push$c(result,key);for(;names.length>i;)hasOwn$l(O,key=names[i++])&&(~indexOf$1(result,key)||push$c(result,key));return result},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,hiddenKeys$3=enumBugKeys$3.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys$1(O,hiddenKeys$3)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$d=getBuiltIn$f,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,anObject$v=anObject$x,concat$4=functionUncurryThis([].concat),ownKeys$3=getBuiltIn$d("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule$2.f(anObject$v(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule$3.f;return getOwnPropertySymbols?concat$4(keys,getOwnPropertySymbols(it)):keys},hasOwn$k=hasOwnProperty_1,ownKeys$2=ownKeys$3,getOwnPropertyDescriptorModule$6=objectGetOwnPropertyDescriptor,definePropertyModule$9=objectDefineProperty,copyConstructorProperties$4=function(target,source,exceptions){for(var keys=ownKeys$2(source),defineProperty=definePropertyModule$9.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule$6.f,i=0;i<keys.length;i++){var key=keys[i];hasOwn$k(target,key)||exceptions&&hasOwn$k(exceptions,key)||defineProperty(target,key,getOwnPropertyDescriptor(source,key))}},fails$10=fails$18,isCallable$l=isCallable$v,replacement=/#|\.prototype\./,isForced$5=function(feature,detection){var value=data[normalize(feature)];return value===POLYFILL||value!==NATIVE&&(isCallable$l(detection)?fails$10(detection):!!detection)},normalize=isForced$5.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=isForced$5.data={},NATIVE=isForced$5.NATIVE="N",POLYFILL=isForced$5.POLYFILL="P",isForced_1=isForced$5,globalThis$G=globalThis_1,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$8=createNonEnumerableProperty$a,defineBuiltIn$h=defineBuiltIn$i,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$3=copyConstructorProperties$4,isForced$4=isForced_1,_export=function(options,source){var target,key,targetProperty,sourceProperty,descriptor,TARGET=options.target,GLOBAL=options.global,STATIC=options.stat;if(target=GLOBAL?globalThis$G:STATIC?globalThis$G[TARGET]||defineGlobalProperty(TARGET,{}):globalThis$G[TARGET]&&globalThis$G[TARGET].prototype)for(key in source){if(sourceProperty=source[key],targetProperty=options.dontCallGetSet?(descriptor=getOwnPropertyDescriptor$8(target,key))&&descriptor.value:target[key],!isForced$4(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced)&&void 0!==targetProperty){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties$3(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty$8(sourceProperty,"sham",!0),defineBuiltIn$h(target,key,sourceProperty,options)}},test$1={};test$1[wellKnownSymbol$w("toStringTag")]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$k=isCallable$v,classofRaw$1=classofRaw$2,TO_STRING_TAG$2=wellKnownSymbol$w("toStringTag"),$Object$2=Object,CORRECT_ARGUMENTS="Arguments"===classofRaw$1(function(){return arguments}()),classof$i=TO_STRING_TAG_SUPPORT$2?classofRaw$1:function(it){var O,tag,result;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(tag=function(it,key){try{return it[key]}catch(error){}}(O=$Object$2(it),TO_STRING_TAG$2))?tag:CORRECT_ARGUMENTS?classofRaw$1(O):"Object"===(result=classofRaw$1(O))&&isCallable$k(O.callee)?"Arguments":result},classof$h=classof$i,$String$3=String,toString$n=function(argument){if("Symbol"===classof$h(argument))throw new TypeError("Cannot convert a Symbol value to a string");return $String$3(argument)},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$4=Object.keys||function keys(O){return internalObjectKeys(O,enumBugKeys$1)},DESCRIPTORS$t=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$8=objectDefineProperty,anObject$u=anObject$x,toIndexedObject$b=toIndexedObject$f,objectKeys$3=objectKeys$4;objectDefineProperties.f=DESCRIPTORS$t&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function defineProperties(O,Properties){anObject$u(O);for(var key,props=toIndexedObject$b(Properties),keys=objectKeys$3(Properties),length=keys.length,index=0;length>index;)definePropertyModule$8.f(O,key=keys[index++],props[key]);return O};var activeXDocument,html$2=getBuiltIn$f("document","documentElement"),anObject$t=anObject$x,definePropertiesModule$1=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys$2=hiddenKeys$6,html$1=html$2,documentCreateElement$1=documentCreateElement$2,IE_PROTO$1=sharedKey$4("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return"<script>"+content+"<\/script>"},NullProtoObjectViaActiveX=function(activeXDocument){activeXDocument.write(scriptTag("")),activeXDocument.close();var temp=activeXDocument.parentWindow.Object;return activeXDocument=null,temp},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(error){}var iframeDocument,iframe;NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):((iframe=documentCreateElement$1("iframe")).style.display="none",html$1.appendChild(iframe),iframe.src=String("javascript:"),(iframeDocument=iframe.contentWindow.document).open(),iframeDocument.write(scriptTag("document.F=Object")),iframeDocument.close(),iframeDocument.F):NullProtoObjectViaActiveX(activeXDocument);for(var length=enumBugKeys.length;length--;)delete NullProtoObject.prototype[enumBugKeys[length]];return NullProtoObject()};hiddenKeys$2[IE_PROTO$1]=!0;var objectCreate=Object.create||function create(O,Properties){var result;return null!==O?(EmptyConstructor.prototype=anObject$t(O),result=new EmptyConstructor,EmptyConstructor.prototype=null,result[IE_PROTO$1]=O):result=NullProtoObject(),void 0===Properties?result:definePropertiesModule$1.f(result,Properties)},objectGetOwnPropertyNamesExternal={},arraySlice$a=functionUncurryThis([].slice),classof$g=classofRaw$2,toIndexedObject$a=toIndexedObject$f,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$9=arraySlice$a,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];objectGetOwnPropertyNamesExternal.f=function getOwnPropertyNames(it){return windowNames&&"Window"===classof$g(it)?function(it){try{return $getOwnPropertyNames$1(it)}catch(error){return arraySlice$9(windowNames)}}(it):$getOwnPropertyNames$1(toIndexedObject$a(it))};var makeBuiltIn$1=makeBuiltInExports,defineProperty$8=objectDefineProperty,defineBuiltInAccessor$b=function(target,name,descriptor){return descriptor.get&&makeBuiltIn$1(descriptor.get,name,{getter:!0}),descriptor.set&&makeBuiltIn$1(descriptor.set,name,{setter:!0}),defineProperty$8.f(target,name,descriptor)},wellKnownSymbolWrapped={},wellKnownSymbol$s=wellKnownSymbol$w;wellKnownSymbolWrapped.f=wellKnownSymbol$s;var path$3=globalThis_1,path$2=path$3,hasOwn$j=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$7=objectDefineProperty.f,wellKnownSymbolDefine=function(NAME){var Symbol=path$2.Symbol||(path$2.Symbol={});hasOwn$j(Symbol,NAME)||defineProperty$7(Symbol,NAME,{value:wrappedWellKnownSymbolModule$1.f(NAME)})},call$s=functionCall,getBuiltIn$b=getBuiltIn$f,wellKnownSymbol$r=wellKnownSymbol$w,defineBuiltIn$g=defineBuiltIn$i,symbolDefineToPrimitive=function(){var Symbol=getBuiltIn$b("Symbol"),SymbolPrototype=Symbol&&Symbol.prototype,valueOf=SymbolPrototype&&SymbolPrototype.valueOf,TO_PRIMITIVE=wellKnownSymbol$r("toPrimitive");SymbolPrototype&&!SymbolPrototype[TO_PRIMITIVE]&&defineBuiltIn$g(SymbolPrototype,TO_PRIMITIVE,function(hint){return call$s(valueOf,this)},{arity:1})},defineProperty$6=objectDefineProperty.f,hasOwn$i=hasOwnProperty_1,TO_STRING_TAG$1=wellKnownSymbol$w("toStringTag"),setToStringTag$c=function(target,TAG,STATIC){target&&!STATIC&&(target=target.prototype),target&&!hasOwn$i(target,TO_STRING_TAG$1)&&defineProperty$6(target,TO_STRING_TAG$1,{configurable:!0,value:TAG})},classofRaw=classofRaw$2,uncurryThis$N=functionUncurryThis,functionUncurryThisClause=function(fn){if("Function"===classofRaw(fn))return uncurryThis$N(fn)},aCallable$f=aCallable$h,NATIVE_BIND$2=functionBindNative,bind$c=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(fn,that){return aCallable$f(fn),void 0===that?fn:NATIVE_BIND$2?bind$c(fn,that):function(){return fn.apply(that,arguments)}},classof$f=classofRaw$2,isArray$7=Array.isArray||function isArray(argument){return"Array"===classof$f(argument)},uncurryThis$L=functionUncurryThis,fails$$=fails$18,isCallable$j=isCallable$v,classof$e=classof$i,inspectSource$1=inspectSource$3,noop=function(){},construct$1=getBuiltIn$f("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$7=uncurryThis$L(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function isConstructor(argument){if(!isCallable$j(argument))return!1;try{return construct$1(noop,[],argument),!0}catch(error){return!1}},isConstructorLegacy=function isConstructor(argument){if(!isCallable$j(argument))return!1;switch(classof$e(argument)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$7(constructorRegExp,inspectSource$1(argument))}catch(error){return!0}};isConstructorLegacy.sham=!0;var isConstructor$5=!construct$1||fails$$(function(){var called;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){called=!0})||called})?isConstructorLegacy:isConstructorModern,isArray$6=isArray$7,isConstructor$4=isConstructor$5,isObject$w=isObject$C,SPECIES$6=wellKnownSymbol$w("species"),$Array$4=Array,arraySpeciesConstructor=function(originalArray){var C;return isArray$6(originalArray)&&(C=originalArray.constructor,(isConstructor$4(C)&&(C===$Array$4||isArray$6(C.prototype))||isObject$w(C)&&null===(C=C[SPECIES$6]))&&(C=void 0)),void 0===C?$Array$4:C},arraySpeciesCreate$5=function(originalArray,length){return new(arraySpeciesConstructor(originalArray))(0===length?0:length)},bind$b=functionBindContext,IndexedObject$3=indexedObject,toObject$l=toObject$n,lengthOfArrayLike$h=lengthOfArrayLike$j,arraySpeciesCreate$4=arraySpeciesCreate$5,push$b=functionUncurryThis([].push),createMethod$5=function(TYPE){var IS_MAP=1===TYPE,IS_FILTER=2===TYPE,IS_SOME=3===TYPE,IS_EVERY=4===TYPE,IS_FIND_INDEX=6===TYPE,IS_FILTER_REJECT=7===TYPE,NO_HOLES=5===TYPE||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){for(var value,result,O=toObject$l($this),self=IndexedObject$3(O),length=lengthOfArrayLike$h(self),boundFunction=bind$b(callbackfn,that),index=0,create=specificCreate||arraySpeciesCreate$4,target=IS_MAP?create($this,length):IS_FILTER||IS_FILTER_REJECT?create($this,0):void 0;length>index;index++)if((NO_HOLES||index in self)&&(result=boundFunction(value=self[index],index,O),TYPE))if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return value;case 6:return index;case 2:push$b(target,value)}else switch(TYPE){case 4:return!1;case 7:push$b(target,value)}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}},arrayIteration={forEach:createMethod$5(0),map:createMethod$5(1),filter:createMethod$5(2),some:createMethod$5(3),every:createMethod$5(4),find:createMethod$5(5),findIndex:createMethod$5(6)},$$23=_export,globalThis$E=globalThis_1,call$r=functionCall,uncurryThis$J=functionUncurryThis,DESCRIPTORS$s=descriptors,NATIVE_SYMBOL$4=symbolConstructorDetection,fails$_=fails$18,hasOwn$h=hasOwnProperty_1,isPrototypeOf$9=objectIsPrototypeOf,anObject$s=anObject$x,toIndexedObject$9=toIndexedObject$f,toPropertyKey$4=toPropertyKey$7,$toString$3=toString$n,createPropertyDescriptor$5=createPropertyDescriptor$8,nativeObjectCreate=objectCreate,objectKeys$2=objectKeys$4,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$5=objectGetOwnPropertyDescriptor,definePropertyModule$7=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$f=defineBuiltIn$i,defineBuiltInAccessor$a=defineBuiltInAccessor$b,shared$3=shared$7,hiddenKeys$1=hiddenKeys$6,uid$2=uid$5,wellKnownSymbol$o=wellKnownSymbol$w,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$c=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$b=setToStringTag$c,InternalStateModule$a=internalState,$forEach$2=arrayIteration.forEach,HIDDEN=sharedKey$4("hidden"),setInternalState$9=InternalStateModule$a.set,getInternalState$5=InternalStateModule$a.getterFor("Symbol"),ObjectPrototype$4=Object.prototype,$Symbol=globalThis$E.Symbol,SymbolPrototype$1=$Symbol&&$Symbol.prototype,RangeError$4=globalThis$E.RangeError,TypeError$6=globalThis$E.TypeError,QObject=globalThis$E.QObject,nativeGetOwnPropertyDescriptor$2=getOwnPropertyDescriptorModule$5.f,nativeDefineProperty$1=definePropertyModule$7.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$a=uncurryThis$J([].push),AllSymbols=shared$3("symbols"),ObjectPrototypeSymbols=shared$3("op-symbols"),WellKnownSymbolsStore=shared$3("wks"),USE_SETTER=!QObject||!QObject.prototype||!QObject.prototype.findChild,fallbackDefineProperty=function(O,P,Attributes){var ObjectPrototypeDescriptor=nativeGetOwnPropertyDescriptor$2(ObjectPrototype$4,P);ObjectPrototypeDescriptor&&delete ObjectPrototype$4[P],nativeDefineProperty$1(O,P,Attributes),ObjectPrototypeDescriptor&&O!==ObjectPrototype$4&&nativeDefineProperty$1(ObjectPrototype$4,P,ObjectPrototypeDescriptor)},setSymbolDescriptor=DESCRIPTORS$s&&fails$_(function(){return 7!==nativeObjectCreate(nativeDefineProperty$1({},"a",{get:function(){return nativeDefineProperty$1(this,"a",{value:7}).a}})).a})?fallbackDefineProperty:nativeDefineProperty$1,wrap=function(tag,description){var symbol=AllSymbols[tag]=nativeObjectCreate(SymbolPrototype$1);return setInternalState$9(symbol,{type:"Symbol",tag:tag,description:description}),DESCRIPTORS$s||(symbol.description=description),symbol},$defineProperty=function defineProperty(O,P,Attributes){O===ObjectPrototype$4&&$defineProperty(ObjectPrototypeSymbols,P,Attributes),anObject$s(O);var key=toPropertyKey$4(P);return anObject$s(Attributes),hasOwn$h(AllSymbols,key)?(Attributes.enumerable?(hasOwn$h(O,HIDDEN)&&O[HIDDEN][key]&&(O[HIDDEN][key]=!1),Attributes=nativeObjectCreate(Attributes,{enumerable:createPropertyDescriptor$5(0,!1)})):(hasOwn$h(O,HIDDEN)||nativeDefineProperty$1(O,HIDDEN,createPropertyDescriptor$5(1,nativeObjectCreate(null))),O[HIDDEN][key]=!0),setSymbolDescriptor(O,key,Attributes)):nativeDefineProperty$1(O,key,Attributes)},$defineProperties=function defineProperties(O,Properties){anObject$s(O);var properties=toIndexedObject$9(Properties),keys=objectKeys$2(properties).concat($getOwnPropertySymbols(properties));return $forEach$2(keys,function(key){DESCRIPTORS$s&&!call$r($propertyIsEnumerable$1,properties,key)||$defineProperty(O,key,properties[key])}),O},$propertyIsEnumerable$1=function propertyIsEnumerable(V){var P=toPropertyKey$4(V),enumerable=call$r(nativePropertyIsEnumerable,this,P);return!(this===ObjectPrototype$4&&hasOwn$h(AllSymbols,P)&&!hasOwn$h(ObjectPrototypeSymbols,P))&&(!(enumerable||!hasOwn$h(this,P)||!hasOwn$h(AllSymbols,P)||hasOwn$h(this,HIDDEN)&&this[HIDDEN][P])||enumerable)},$getOwnPropertyDescriptor=function getOwnPropertyDescriptor(O,P){var it=toIndexedObject$9(O),key=toPropertyKey$4(P);if(it!==ObjectPrototype$4||!hasOwn$h(AllSymbols,key)||hasOwn$h(ObjectPrototypeSymbols,key)){var descriptor=nativeGetOwnPropertyDescriptor$2(it,key);return!descriptor||!hasOwn$h(AllSymbols,key)||hasOwn$h(it,HIDDEN)&&it[HIDDEN][key]||(descriptor.enumerable=!0),descriptor}},$getOwnPropertyNames=function getOwnPropertyNames(O){var names=nativeGetOwnPropertyNames(toIndexedObject$9(O)),result=[];return $forEach$2(names,function(key){hasOwn$h(AllSymbols,key)||hasOwn$h(hiddenKeys$1,key)||push$a(result,key)}),result},$getOwnPropertySymbols=function(O){var IS_OBJECT_PROTOTYPE=O===ObjectPrototype$4,names=nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE?ObjectPrototypeSymbols:toIndexedObject$9(O)),result=[];return $forEach$2(names,function(key){!hasOwn$h(AllSymbols,key)||IS_OBJECT_PROTOTYPE&&!hasOwn$h(ObjectPrototype$4,key)||push$a(result,AllSymbols[key])}),result};NATIVE_SYMBOL$4||($Symbol=function Symbol(){if(isPrototypeOf$9(SymbolPrototype$1,this))throw new TypeError$6("Symbol is not a constructor");var description=arguments.length&&void 0!==arguments[0]?$toString$3(arguments[0]):void 0,tag=uid$2(description),setter=function(value){var $this=void 0===this?globalThis$E:this;$this===ObjectPrototype$4&&call$r(setter,ObjectPrototypeSymbols,value),hasOwn$h($this,HIDDEN)&&hasOwn$h($this[HIDDEN],tag)&&($this[HIDDEN][tag]=!1);var descriptor=createPropertyDescriptor$5(1,value);try{setSymbolDescriptor($this,tag,descriptor)}catch(error){if(!(error instanceof RangeError$4))throw error;fallbackDefineProperty($this,tag,descriptor)}};return DESCRIPTORS$s&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$4,tag,{configurable:!0,set:setter}),wrap(tag,description)},defineBuiltIn$f(SymbolPrototype$1=$Symbol.prototype,"toString",function toString(){return getInternalState$5(this).tag}),defineBuiltIn$f($Symbol,"withoutSetter",function(description){return wrap(uid$2(description),description)}),propertyIsEnumerableModule$1.f=$propertyIsEnumerable$1,definePropertyModule$7.f=$defineProperty,definePropertiesModule.f=$defineProperties,getOwnPropertyDescriptorModule$5.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule$1.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule$2.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(name){return wrap(wellKnownSymbol$o(name),name)},DESCRIPTORS$s&&(defineBuiltInAccessor$a(SymbolPrototype$1,"description",{configurable:!0,get:function description(){return getInternalState$5(this).description}}),defineBuiltIn$f(ObjectPrototype$4,"propertyIsEnumerable",$propertyIsEnumerable$1,{unsafe:!0}))),$$23({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$4,sham:!NATIVE_SYMBOL$4},{Symbol:$Symbol}),$forEach$2(objectKeys$2(WellKnownSymbolsStore),function(name){defineWellKnownSymbol$c(name)}),$$23({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL$4},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$23({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$4,sham:!DESCRIPTORS$s},{create:function create(O,Properties){return void 0===Properties?nativeObjectCreate(O):$defineProperties(nativeObjectCreate(O),Properties)},defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$23({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$4},{getOwnPropertyNames:$getOwnPropertyNames}),defineSymbolToPrimitive$1(),setToStringTag$b($Symbol,"Symbol"),hiddenKeys$1[HIDDEN]=!0;var symbolRegistryDetection=symbolConstructorDetection&&!!Symbol.for&&!!Symbol.keyFor,$$22=_export,getBuiltIn$9=getBuiltIn$f,hasOwn$g=hasOwnProperty_1,toString$m=toString$n,shared$2=shared$7,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$2("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$2("symbol-to-string-registry");$$22({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(key){var string=toString$m(key);if(hasOwn$g(StringToSymbolRegistry,string))return StringToSymbolRegistry[string];var symbol=getBuiltIn$9("Symbol")(string);return StringToSymbolRegistry[string]=symbol,SymbolToStringRegistry$1[symbol]=string,symbol}});var $$21=_export,hasOwn$f=hasOwnProperty_1,isSymbol$3=isSymbol$6,tryToString$5=tryToString$7,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$7("symbol-to-string-registry");$$21({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function keyFor(sym){if(!isSymbol$3(sym))throw new TypeError(tryToString$5(sym)+" is not a symbol");if(hasOwn$f(SymbolToStringRegistry,sym))return SymbolToStringRegistry[sym]}});var NATIVE_BIND$1=functionBindNative,FunctionPrototype$2=Function.prototype,apply$8=FunctionPrototype$2.apply,call$q=FunctionPrototype$2.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$q.bind(apply$8):function(){return call$q.apply(apply$8,arguments)}),isArray$5=isArray$7,isCallable$i=isCallable$v,classof$d=classofRaw$2,toString$l=toString$n,push$9=functionUncurryThis([].push),$$20=_export,getBuiltIn$8=getBuiltIn$f,apply$7=functionApply$1,call$p=functionCall,uncurryThis$H=functionUncurryThis,fails$Z=fails$18,isCallable$h=isCallable$v,isSymbol$2=isSymbol$6,arraySlice$8=arraySlice$a,getReplacerFunction=function(replacer){if(isCallable$i(replacer))return replacer;if(isArray$5(replacer)){for(var rawLength=replacer.length,keys=[],i=0;i<rawLength;i++){var element=replacer[i];"string"==typeof element?push$9(keys,element):"number"!=typeof element&&"Number"!==classof$d(element)&&"String"!==classof$d(element)||push$9(keys,toString$l(element))}var keysLength=keys.length,root=!0;return function(key,value){if(root)return root=!1,value;if(isArray$5(this))return value;for(var j=0;j<keysLength;j++)if(keys[j]===key)return value}}},NATIVE_SYMBOL$2=symbolConstructorDetection,$String$2=String,$stringify=getBuiltIn$8("JSON","stringify"),exec$6=uncurryThis$H(/./.exec),charAt$9=uncurryThis$H("".charAt),charCodeAt$3=uncurryThis$H("".charCodeAt),replace$9=uncurryThis$H("".replace),numberToString$1=uncurryThis$H(1.1.toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$2||fails$Z(function(){var symbol=getBuiltIn$8("Symbol")("stringify detection");return"[null]"!==$stringify([symbol])||"{}"!==$stringify({a:symbol})||"{}"!==$stringify(Object(symbol))}),ILL_FORMED_UNICODE=fails$Z(function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")}),stringifyWithSymbolsFix=function(it,replacer){var args=arraySlice$8(arguments),$replacer=getReplacerFunction(replacer);if(isCallable$h($replacer)||void 0!==it&&!isSymbol$2(it))return args[1]=function(key,value){if(isCallable$h($replacer)&&(value=call$p($replacer,this,$String$2(key),value)),!isSymbol$2(value))return value},apply$7($stringify,null,args)},fixIllFormed=function(match,offset,string){var prev=charAt$9(string,offset-1),next=charAt$9(string,offset+1);return exec$6(low,match)&&!exec$6(hi,next)||exec$6(hi,match)&&!exec$6(low,prev)?"\\u"+numberToString$1(charCodeAt$3(match,0),16):match};$stringify&&$$20({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function stringify(it,replacer,space){var args=arraySlice$8(arguments),result=apply$7(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,args);return ILL_FORMED_UNICODE&&"string"==typeof result?replace$9(result,tester,fixIllFormed):result}});var getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,toObject$k=toObject$n;_export({target:"Object",stat:!0,forced:!symbolConstructorDetection||fails$18(function(){getOwnPropertySymbolsModule$1.f(1)})},{getOwnPropertySymbols:function getOwnPropertySymbols(it){var $getOwnPropertySymbols=getOwnPropertySymbolsModule$1.f;return $getOwnPropertySymbols?$getOwnPropertySymbols(toObject$k(it)):[]}});var $$1_=_export,DESCRIPTORS$r=descriptors,uncurryThis$G=functionUncurryThis,hasOwn$e=hasOwnProperty_1,isCallable$g=isCallable$v,isPrototypeOf$8=objectIsPrototypeOf,toString$k=toString$n,defineBuiltInAccessor$9=defineBuiltInAccessor$b,copyConstructorProperties$2=copyConstructorProperties$4,NativeSymbol=globalThis_1.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;if(DESCRIPTORS$r&&isCallable$g(NativeSymbol)&&(!("description"in SymbolPrototype)||void 0!==NativeSymbol().description)){var EmptyStringDescriptionStore={},SymbolWrapper=function Symbol(){var description=arguments.length<1||void 0===arguments[0]?void 0:toString$k(arguments[0]),result=isPrototypeOf$8(SymbolPrototype,this)?new NativeSymbol(description):void 0===description?NativeSymbol():NativeSymbol(description);return""===description&&(EmptyStringDescriptionStore[result]=!0),result};copyConstructorProperties$2(SymbolWrapper,NativeSymbol),SymbolWrapper.prototype=SymbolPrototype,SymbolPrototype.constructor=SymbolWrapper;var NATIVE_SYMBOL="Symbol(description detection)"===String(NativeSymbol("description detection")),thisSymbolValue=uncurryThis$G(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis$G(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace$8=uncurryThis$G("".replace),stringSlice$c=uncurryThis$G("".slice);defineBuiltInAccessor$9(SymbolPrototype,"description",{configurable:!0,get:function description(){var symbol=thisSymbolValue(this);if(hasOwn$e(EmptyStringDescriptionStore,symbol))return"";var string=symbolDescriptiveString(symbol),desc=NATIVE_SYMBOL?stringSlice$c(string,7,-1):replace$8(string,regexp,"$1");return""===desc?void 0:desc}}),$$1_({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})}wellKnownSymbolDefine("asyncIterator"),wellKnownSymbolDefine("hasInstance"),wellKnownSymbolDefine("isConcatSpreadable"),wellKnownSymbolDefine("iterator"),wellKnownSymbolDefine("match"),wellKnownSymbolDefine("replace"),wellKnownSymbolDefine("search"),wellKnownSymbolDefine("species"),wellKnownSymbolDefine("split");var defineSymbolToPrimitive=symbolDefineToPrimitive;wellKnownSymbolDefine("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$7=getBuiltIn$f,setToStringTag$a=setToStringTag$c;wellKnownSymbolDefine("toStringTag"),setToStringTag$a(getBuiltIn$7("Symbol"),"Symbol"),wellKnownSymbolDefine("unscopables");var $TypeError$e=TypeError,doesNotExceedSafeInteger$3=function(it){if(it>9007199254740991)throw $TypeError$e("Maximum allowed index exceeded");return it},DESCRIPTORS$q=descriptors,definePropertyModule$6=objectDefineProperty,createPropertyDescriptor$4=createPropertyDescriptor$8,createProperty$7=function(object,key,value){DESCRIPTORS$q?definePropertyModule$6.f(object,key,createPropertyDescriptor$4(0,value)):object[key]=value},fails$X=fails$18,V8_VERSION$2=environmentV8Version,SPECIES$5=wellKnownSymbol$w("species"),arrayMethodHasSpeciesSupport$5=function(METHOD_NAME){return V8_VERSION$2>=51||!fails$X(function(){var array=[];return(array.constructor={})[SPECIES$5]=function(){return{foo:1}},1!==array[METHOD_NAME](Boolean).foo})},$$1Z=_export,fails$W=fails$18,isArray$4=isArray$7,isObject$v=isObject$C,toObject$j=toObject$n,lengthOfArrayLike$g=lengthOfArrayLike$j,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$6=createProperty$7,arraySpeciesCreate$3=arraySpeciesCreate$5,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,V8_VERSION$1=environmentV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$w("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$W(function(){var array=[];return array[IS_CONCAT_SPREADABLE]=!1,array.concat()[0]!==array}),isConcatSpreadable=function(O){if(!isObject$v(O))return!1;var spreadable=O[IS_CONCAT_SPREADABLE];return void 0!==spreadable?!!spreadable:isArray$4(O)};$$1Z({target:"Array",proto:!0,arity:1,forced:!IS_CONCAT_SPREADABLE_SUPPORT||!arrayMethodHasSpeciesSupport$4("concat")},{concat:function concat(arg){var i,k,length,len,E,O=toObject$j(this),A=arraySpeciesCreate$3(O,0),n=0;for(i=-1,length=arguments.length;i<length;i++)if(isConcatSpreadable(E=-1===i?O:arguments[i]))for(len=lengthOfArrayLike$g(E),doesNotExceedSafeInteger$2(n+len),k=0;k<len;k++,n++)k in E&&createProperty$6(A,n,E[k]);else doesNotExceedSafeInteger$2(n+1),createProperty$6(A,n++,E);return A.length=n,A}});var tryToString$4=tryToString$7,$TypeError$d=TypeError,deletePropertyOrThrow$3=function(O,P){if(!delete O[P])throw new $TypeError$d("Cannot delete property "+tryToString$4(P)+" of "+tryToString$4(O))},toObject$i=toObject$n,toAbsoluteIndex$6=toAbsoluteIndex$8,lengthOfArrayLike$f=lengthOfArrayLike$j,deletePropertyOrThrow$2=deletePropertyOrThrow$3,min$6=Math.min,arrayCopyWithin=[].copyWithin||function copyWithin(target,start){var O=toObject$i(this),len=lengthOfArrayLike$f(O),to=toAbsoluteIndex$6(target,len),from=toAbsoluteIndex$6(start,len),end=arguments.length>2?arguments[2]:void 0,count=min$6((void 0===end?len:toAbsoluteIndex$6(end,len))-from,len-to),inc=1;for(from<to&&to<from+count&&(inc=-1,from+=count-1,to+=count-1);count-- >0;)from in O?O[to]=O[from]:deletePropertyOrThrow$2(O,to),to+=inc,from+=inc;return O},wellKnownSymbol$l=wellKnownSymbol$w,create$7=objectCreate,defineProperty$5=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$l("unscopables"),ArrayPrototype$1=Array.prototype;void 0===ArrayPrototype$1[UNSCOPABLES]&&defineProperty$5(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$7(null)});var addToUnscopables$8=function(key){ArrayPrototype$1[UNSCOPABLES][key]=!0},addToUnscopables$7=addToUnscopables$8;_export({target:"Array",proto:!0},{copyWithin:arrayCopyWithin}),addToUnscopables$7("copyWithin");var toObject$h=toObject$n,toAbsoluteIndex$5=toAbsoluteIndex$8,lengthOfArrayLike$e=lengthOfArrayLike$j,arrayFill$1=function fill(value){for(var O=toObject$h(this),length=lengthOfArrayLike$e(O),argumentsLength=arguments.length,index=toAbsoluteIndex$5(argumentsLength>1?arguments[1]:void 0,length),end=argumentsLength>2?arguments[2]:void 0,endPos=void 0===end?length:toAbsoluteIndex$5(end,length);endPos>index;)O[index++]=value;return O},addToUnscopables$6=addToUnscopables$8;_export({target:"Array",proto:!0},{fill:arrayFill$1}),addToUnscopables$6("fill");var $filter$1=arrayIteration.filter;_export({target:"Array",proto:!0,forced:!arrayMethodHasSpeciesSupport$5("filter")},{filter:function filter(callbackfn){return $filter$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}});var $$1V=_export,$find$1=arrayIteration.find,addToUnscopables$5=addToUnscopables$8,SKIPS_HOLES$1=!0;"find"in[]&&Array(1).find(function(){SKIPS_HOLES$1=!1}),$$1V({target:"Array",proto:!0,forced:SKIPS_HOLES$1},{find:function find(callbackfn){return $find$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$5("find");var $$1U=_export,$findIndex$1=arrayIteration.findIndex,addToUnscopables$4=addToUnscopables$8,SKIPS_HOLES=!0;"findIndex"in[]&&Array(1).findIndex(function(){SKIPS_HOLES=!1}),$$1U({target:"Array",proto:!0,forced:SKIPS_HOLES},{findIndex:function findIndex(callbackfn){return $findIndex$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$4("findIndex");var isArray$3=isArray$7,lengthOfArrayLike$d=lengthOfArrayLike$j,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$3,bind$a=functionBindContext,flattenIntoArray$2=function(target,original,source,sourceLen,start,depth,mapper,thisArg){for(var element,elementLen,targetIndex=start,sourceIndex=0,mapFn=!!mapper&&bind$a(mapper,thisArg);sourceIndex<sourceLen;)sourceIndex in source&&(element=mapFn?mapFn(source[sourceIndex],sourceIndex,original):source[sourceIndex],depth>0&&isArray$3(element)?(elementLen=lengthOfArrayLike$d(element),targetIndex=flattenIntoArray$2(target,original,element,elementLen,targetIndex,depth-1)-1):(doesNotExceedSafeInteger$1(targetIndex+1),target[targetIndex]=element),targetIndex++),sourceIndex++;return targetIndex},flattenIntoArray_1=flattenIntoArray$2,flattenIntoArray$1=flattenIntoArray_1,toObject$g=toObject$n,lengthOfArrayLike$c=lengthOfArrayLike$j,toIntegerOrInfinity$9=toIntegerOrInfinity$c,arraySpeciesCreate$2=arraySpeciesCreate$5;_export({target:"Array",proto:!0},{flat:function flat(){var depthArg=arguments.length?arguments[0]:void 0,O=toObject$g(this),sourceLen=lengthOfArrayLike$c(O),A=arraySpeciesCreate$2(O,0);return A.length=flattenIntoArray$1(A,O,O,sourceLen,0,void 0===depthArg?1:toIntegerOrInfinity$9(depthArg)),A}});var flattenIntoArray=flattenIntoArray_1,aCallable$e=aCallable$h,toObject$f=toObject$n,lengthOfArrayLike$b=lengthOfArrayLike$j,arraySpeciesCreate$1=arraySpeciesCreate$5;_export({target:"Array",proto:!0},{flatMap:function flatMap(callbackfn){var A,O=toObject$f(this),sourceLen=lengthOfArrayLike$b(O);return aCallable$e(callbackfn),(A=arraySpeciesCreate$1(O,0)).length=flattenIntoArray(A,O,O,sourceLen,0,1,callbackfn,arguments.length>1?arguments[1]:void 0),A}});var call$o=functionCall,anObject$r=anObject$x,getMethod$5=getMethod$7,iteratorClose$2=function(iterator,kind,value){var innerResult,innerError;anObject$r(iterator);try{if(!(innerResult=getMethod$5(iterator,"return"))){if("throw"===kind)throw value;return value}innerResult=call$o(innerResult,iterator)}catch(error){innerError=!0,innerResult=error}if("throw"===kind)throw value;if(innerError)throw innerResult;return anObject$r(innerResult),value},anObject$q=anObject$x,iteratorClose$1=iteratorClose$2,iterators={},Iterators$4=iterators,ITERATOR$a=wellKnownSymbol$w("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$3=function(it){return void 0!==it&&(Iterators$4.Array===it||ArrayPrototype[ITERATOR$a]===it)},classof$c=classof$i,getMethod$4=getMethod$7,isNullOrUndefined$4=isNullOrUndefined$7,Iterators$3=iterators,ITERATOR$9=wellKnownSymbol$w("iterator"),getIteratorMethod$5=function(it){if(!isNullOrUndefined$4(it))return getMethod$4(it,ITERATOR$9)||getMethod$4(it,"@@iterator")||Iterators$3[classof$c(it)]},call$n=functionCall,aCallable$d=aCallable$h,anObject$p=anObject$x,tryToString$3=tryToString$7,getIteratorMethod$4=getIteratorMethod$5,$TypeError$c=TypeError,getIterator$4=function(argument,usingIterator){var iteratorMethod=arguments.length<2?getIteratorMethod$4(argument):usingIterator;if(aCallable$d(iteratorMethod))return anObject$p(call$n(iteratorMethod,argument));throw new $TypeError$c(tryToString$3(argument)+" is not iterable")},bind$9=functionBindContext,call$m=functionCall,toObject$e=toObject$n,callWithSafeIterationClosing=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject$q(value)[0],value[1]):fn(value)}catch(error){iteratorClose$1(iterator,"throw",error)}},isArrayIteratorMethod$2=isArrayIteratorMethod$3,isConstructor$3=isConstructor$5,lengthOfArrayLike$a=lengthOfArrayLike$j,createProperty$5=createProperty$7,getIterator$3=getIterator$4,getIteratorMethod$3=getIteratorMethod$5,$Array$3=Array,arrayFrom$1=function from(arrayLike){var O=toObject$e(arrayLike),IS_CONSTRUCTOR=isConstructor$3(this),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn;mapping&&(mapfn=bind$9(mapfn,argumentsLength>2?arguments[2]:void 0));var length,result,step,iterator,next,value,iteratorMethod=getIteratorMethod$3(O),index=0;if(!iteratorMethod||this===$Array$3&&isArrayIteratorMethod$2(iteratorMethod))for(length=lengthOfArrayLike$a(O),result=IS_CONSTRUCTOR?new this(length):$Array$3(length);length>index;index++)value=mapping?mapfn(O[index],index):O[index],createProperty$5(result,index,value);else for(result=IS_CONSTRUCTOR?new this:[],next=(iterator=getIterator$3(O,iteratorMethod)).next;!(step=call$m(next,iterator)).done;index++)value=mapping?callWithSafeIterationClosing(iterator,mapfn,[step.value,index],!0):step.value,createProperty$5(result,index,value);return result.length=index,result},ITERATOR$8=wellKnownSymbol$w("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$8]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(error){}var checkCorrectnessOfIteration$4=function(exec,SKIP_CLOSING){try{if(!SKIP_CLOSING&&!SAFE_CLOSING)return!1}catch(error){return!1}var ITERATION_SUPPORT=!1;try{var object={};object[ITERATOR$8]=function(){return{next:function(){return{done:ITERATION_SUPPORT=!0}}}},exec(object)}catch(error){}return ITERATION_SUPPORT},from=arrayFrom$1;_export({target:"Array",stat:!0,forced:!checkCorrectnessOfIteration$4(function(iterable){Array.from(iterable)})},{from:from});var $includes$1=arrayIncludes.includes,addToUnscopables$3=addToUnscopables$8;_export({target:"Array",proto:!0,forced:fails$18(function(){return!Array(1).includes()})},{includes:function includes(el){return $includes$1(this,el,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$3("includes");var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,correctPrototypeGetter=!fails$18(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}),hasOwn$d=hasOwnProperty_1,isCallable$f=isCallable$v,toObject$d=toObject$n,CORRECT_PROTOTYPE_GETTER$2=correctPrototypeGetter,IE_PROTO=sharedKey$4("IE_PROTO"),$Object$1=Object,ObjectPrototype$3=$Object$1.prototype,objectGetPrototypeOf$2=CORRECT_PROTOTYPE_GETTER$2?$Object$1.getPrototypeOf:function(O){var object=toObject$d(O);if(hasOwn$d(object,IE_PROTO))return object[IE_PROTO];var constructor=object.constructor;return isCallable$f(constructor)&&object instanceof constructor?constructor.prototype:object instanceof $Object$1?ObjectPrototype$3:null},fails$T=fails$18,isCallable$e=isCallable$v,isObject$u=isObject$C,getPrototypeOf$7=objectGetPrototypeOf$2,defineBuiltIn$e=defineBuiltIn$i,ITERATOR$7=wellKnownSymbol$w("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$7(getPrototypeOf$7(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$u(IteratorPrototype$2)||fails$T(function(){var test={};return IteratorPrototype$2[ITERATOR$7].call(test)!==test});NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable$e(IteratorPrototype$2[ITERATOR$7])||defineBuiltIn$e(IteratorPrototype$2,ITERATOR$7,function(){return this});var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$6=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$8,setToStringTag$9=setToStringTag$c,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(IteratorConstructor,NAME,next,ENUMERABLE_NEXT){var TO_STRING_TAG=NAME+" Iterator";return IteratorConstructor.prototype=create$6(IteratorPrototype$1,{next:createPropertyDescriptor$3(+!ENUMERABLE_NEXT,next)}),setToStringTag$9(IteratorConstructor,TO_STRING_TAG,!1),Iterators$2[TO_STRING_TAG]=returnThis$1,IteratorConstructor},uncurryThis$F=functionUncurryThis,aCallable$c=aCallable$h,isObject$t=isObject$C,isPossiblePrototype=function(argument){return isObject$t(argument)||null===argument},$String$1=String,$TypeError$b=TypeError,aPossiblePrototype$2=function(argument){if(isPossiblePrototype(argument))return argument;throw new $TypeError$b("Can't set "+$String$1(argument)+" as a prototype")},uncurryThisAccessor=function(object,key,method){try{return uncurryThis$F(aCallable$c(Object.getOwnPropertyDescriptor(object,key)[method]))}catch(error){}},isObject$s=isObject$C,requireObjectCoercible$c=requireObjectCoercible$f,aPossiblePrototype$1=aPossiblePrototype$2,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var setter,CORRECT_SETTER=!1,test={};try{(setter=uncurryThisAccessor(Object.prototype,"__proto__","set"))(test,[]),CORRECT_SETTER=test instanceof Array}catch(error){}return function setPrototypeOf(O,proto){return requireObjectCoercible$c(O),aPossiblePrototype$1(proto),isObject$s(O)?(CORRECT_SETTER?setter(O,proto):O.__proto__=proto,O):O}}():void 0),$$1P=_export,call$l=functionCall,isCallable$d=isCallable$v,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf$6=objectGetPrototypeOf$2,setPrototypeOf$6=objectSetPrototypeOf$1,setToStringTag$8=setToStringTag$c,createNonEnumerableProperty$7=createNonEnumerableProperty$a,defineBuiltIn$d=defineBuiltIn$i,Iterators$1=iterators,PROPER_FUNCTION_NAME$3=functionName.PROPER,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,IteratorPrototype=iteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=iteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$w("iterator"),returnThis=function(){return this},iteratorDefine=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor$1(IteratorConstructor,NAME,next);var CurrentIteratorPrototype,methods,KEY,getIterationMethod=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case"keys":return function keys(){return new IteratorConstructor(this,KIND)};case"values":return function values(){return new IteratorConstructor(this,KIND)};case"entries":return function entries(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}},TO_STRING_TAG=NAME+" Iterator",INCORRECT_VALUES_NAME=!1,IterablePrototype=Iterable.prototype,nativeIterator=IterablePrototype[ITERATOR$6]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT],defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||getIterationMethod(DEFAULT),anyNativeIterator="Array"===NAME&&IterablePrototype.entries||nativeIterator;if(anyNativeIterator&&(CurrentIteratorPrototype=getPrototypeOf$6(anyNativeIterator.call(new Iterable)))!==Object.prototype&&CurrentIteratorPrototype.next&&(getPrototypeOf$6(CurrentIteratorPrototype)!==IteratorPrototype&&(setPrototypeOf$6?setPrototypeOf$6(CurrentIteratorPrototype,IteratorPrototype):isCallable$d(CurrentIteratorPrototype[ITERATOR$6])||defineBuiltIn$d(CurrentIteratorPrototype,ITERATOR$6,returnThis)),setToStringTag$8(CurrentIteratorPrototype,TO_STRING_TAG,!0)),PROPER_FUNCTION_NAME$3&&"values"===DEFAULT&&nativeIterator&&"values"!==nativeIterator.name&&(CONFIGURABLE_FUNCTION_NAME$1?createNonEnumerableProperty$7(IterablePrototype,"name","values"):(INCORRECT_VALUES_NAME=!0,defaultIterator=function values(){return call$l(nativeIterator,this)})),DEFAULT)if(methods={values:getIterationMethod("values"),keys:IS_SET?defaultIterator:getIterationMethod("keys"),entries:getIterationMethod("entries")},FORCED)for(KEY in methods)(BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME||!(KEY in IterablePrototype))&&defineBuiltIn$d(IterablePrototype,KEY,methods[KEY]);else $$1P({target:NAME,proto:!0,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods);return IterablePrototype[ITERATOR$6]!==defaultIterator&&defineBuiltIn$d(IterablePrototype,ITERATOR$6,defaultIterator,{name:DEFAULT}),Iterators$1[NAME]=defaultIterator,methods},createIterResultObject$4=function(value,done){return{value:value,done:done}},toIndexedObject$8=toIndexedObject$f,addToUnscopables$2=addToUnscopables$8,Iterators=iterators,InternalStateModule$9=internalState,defineProperty$4=objectDefineProperty.f,defineIterator$2=iteratorDefine,createIterResultObject$3=createIterResultObject$4,DESCRIPTORS$p=descriptors,setInternalState$8=InternalStateModule$9.set,getInternalState$4=InternalStateModule$9.getterFor("Array Iterator"),es_array_iterator=defineIterator$2(Array,"Array",function(iterated,kind){setInternalState$8(this,{type:"Array Iterator",target:toIndexedObject$8(iterated),index:0,kind:kind})},function(){var state=getInternalState$4(this),target=state.target,index=state.index++;if(!target||index>=target.length)return state.target=null,createIterResultObject$3(void 0,!0);switch(state.kind){case"keys":return createIterResultObject$3(index,!1);case"values":return createIterResultObject$3(target[index],!1)}return createIterResultObject$3([index,target[index]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables$2("keys"),addToUnscopables$2("values"),addToUnscopables$2("entries"),DESCRIPTORS$p&&"values"!==values.name)try{defineProperty$4(values,"name",{value:"values"})}catch(error){}var fails$S=fails$18,arrayMethodIsStrict$4=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails$S(function(){method.call(null,argument||function(){return 1},1)})},$$1O=_export,IndexedObject$2=indexedObject,toIndexedObject$7=toIndexedObject$f,arrayMethodIsStrict$3=arrayMethodIsStrict$4,nativeJoin=functionUncurryThis([].join);$$1O({target:"Array",proto:!0,forced:IndexedObject$2!==Object||!arrayMethodIsStrict$3("join",",")},{join:function join(separator){return nativeJoin(toIndexedObject$7(this),void 0===separator?",":separator)}});var $map$1=arrayIteration.map;_export({target:"Array",proto:!0,forced:!arrayMethodHasSpeciesSupport$5("map")},{map:function map(callbackfn){return $map$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}});var isConstructor$2=isConstructor$5,createProperty$4=createProperty$7,$Array$2=Array;_export({target:"Array",stat:!0,forced:fails$18(function(){function F(){}return!($Array$2.of.call(F)instanceof F)})},{of:function of(){for(var index=0,argumentsLength=arguments.length,result=new(isConstructor$2(this)?this:$Array$2)(argumentsLength);argumentsLength>index;)createProperty$4(result,index,arguments[index++]);return result.length=argumentsLength,result}});var $$1L=_export,isArray$2=isArray$7,isConstructor$1=isConstructor$5,isObject$r=isObject$C,toAbsoluteIndex$4=toAbsoluteIndex$8,lengthOfArrayLike$9=lengthOfArrayLike$j,toIndexedObject$6=toIndexedObject$f,createProperty$3=createProperty$7,wellKnownSymbol$f=wellKnownSymbol$w,nativeSlice=arraySlice$a,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$5("slice"),SPECIES$4=wellKnownSymbol$f("species"),$Array$1=Array,max$2=Math.max;$$1L({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{slice:function slice(start,end){var Constructor,result,n,O=toIndexedObject$6(this),length=lengthOfArrayLike$9(O),k=toAbsoluteIndex$4(start,length),fin=toAbsoluteIndex$4(void 0===end?length:end,length);if(isArray$2(O)&&(Constructor=O.constructor,(isConstructor$1(Constructor)&&(Constructor===$Array$1||isArray$2(Constructor.prototype))||isObject$r(Constructor)&&null===(Constructor=Constructor[SPECIES$4]))&&(Constructor=void 0),Constructor===$Array$1||void 0===Constructor))return nativeSlice(O,k,fin);for(result=new(void 0===Constructor?$Array$1:Constructor)(max$2(fin-k,0)),n=0;k<fin;k++,n++)k in O&&createProperty$3(result,n,O[k]);return result.length=n,result}});var arraySlice$7=arraySlice$a,floor$8=Math.floor,sort=function(array,comparefn){var length=array.length;if(length<8)for(var element,j,i=1;i<length;){for(j=i,element=array[i];j&&comparefn(array[j-1],element)>0;)array[j]=array[--j];j!==i++&&(array[j]=element)}else for(var middle=floor$8(length/2),left=sort(arraySlice$7(array,0,middle),comparefn),right=sort(arraySlice$7(array,middle),comparefn),llength=left.length,rlength=right.length,lindex=0,rindex=0;lindex<llength||rindex<rlength;)array[lindex+rindex]=lindex<llength&&rindex<rlength?comparefn(left[lindex],right[rindex])<=0?left[lindex++]:right[rindex++]:lindex<llength?left[lindex++]:right[rindex++];return array},arraySort$1=sort,firefox=environmentUserAgent.match(/firefox\/(\d+)/i),environmentFfVersion=!!firefox&&+firefox[1],environmentIsIeOrEdge=/MSIE|Trident/.test(environmentUserAgent),webkit=environmentUserAgent.match(/AppleWebKit\/(\d+)\./),environmentWebkitVersion=!!webkit&&+webkit[1],$$1K=_export,uncurryThis$D=functionUncurryThis,aCallable$b=aCallable$h,toObject$c=toObject$n,lengthOfArrayLike$8=lengthOfArrayLike$j,deletePropertyOrThrow$1=deletePropertyOrThrow$3,toString$j=toString$n,fails$Q=fails$18,internalSort$1=arraySort$1,arrayMethodIsStrict$2=arrayMethodIsStrict$4,FF$1=environmentFfVersion,IE_OR_EDGE$1=environmentIsIeOrEdge,V8$1=environmentV8Version,WEBKIT$2=environmentWebkitVersion,test=[],nativeSort$1=uncurryThis$D(test.sort),push$8=uncurryThis$D(test.push),FAILS_ON_UNDEFINED=fails$Q(function(){test.sort(void 0)}),FAILS_ON_NULL=fails$Q(function(){test.sort(null)}),STRICT_METHOD$2=arrayMethodIsStrict$2("sort"),STABLE_SORT$1=!fails$Q(function(){if(V8$1)return V8$1<70;if(!(FF$1&&FF$1>3)){if(IE_OR_EDGE$1)return!0;if(WEBKIT$2)return WEBKIT$2<603;var code,chr,value,index,result="";for(code=65;code<76;code++){switch(chr=String.fromCharCode(code),code){case 66:case 69:case 70:case 72:value=3;break;case 68:case 71:value=4;break;default:value=2}for(index=0;index<47;index++)test.push({k:chr+index,v:value})}for(test.sort(function(a,b){return b.v-a.v}),index=0;index<test.length;index++)chr=test[index].k.charAt(0),result.charAt(result.length-1)!==chr&&(result+=chr);return"DGBEFHACIJK"!==result}});$$1K({target:"Array",proto:!0,forced:FAILS_ON_UNDEFINED||!FAILS_ON_NULL||!STRICT_METHOD$2||!STABLE_SORT$1},{sort:function sort(comparefn){void 0!==comparefn&&aCallable$b(comparefn);var array=toObject$c(this);if(STABLE_SORT$1)return void 0===comparefn?nativeSort$1(array):nativeSort$1(array,comparefn);var itemsLength,index,items=[],arrayLength=lengthOfArrayLike$8(array);for(index=0;index<arrayLength;index++)index in array&&push$8(items,array[index]);for(internalSort$1(items,function(comparefn){return function(x,y){return void 0===y?-1:void 0===x?1:void 0!==comparefn?+comparefn(x,y)||0:toString$j(x)>toString$j(y)?1:-1}}(comparefn)),itemsLength=lengthOfArrayLike$8(items),index=0;index<itemsLength;)array[index]=items[index++];for(;index<arrayLength;)deletePropertyOrThrow$1(array,index++);return array}});var getBuiltIn$6=getBuiltIn$f,defineBuiltInAccessor$8=defineBuiltInAccessor$b,DESCRIPTORS$o=descriptors,SPECIES$3=wellKnownSymbol$w("species"),setSpecies$6=function(CONSTRUCTOR_NAME){var Constructor=getBuiltIn$6(CONSTRUCTOR_NAME);DESCRIPTORS$o&&Constructor&&!Constructor[SPECIES$3]&&defineBuiltInAccessor$8(Constructor,SPECIES$3,{configurable:!0,get:function(){return this}})};setSpecies$6("Array");var DESCRIPTORS$n=descriptors,isArray$1=isArray$7,$TypeError$a=TypeError,getOwnPropertyDescriptor$7=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(error){return error instanceof TypeError}}(),$$1J=_export,toObject$b=toObject$n,toAbsoluteIndex$3=toAbsoluteIndex$8,toIntegerOrInfinity$8=toIntegerOrInfinity$c,lengthOfArrayLike$7=lengthOfArrayLike$j,setArrayLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(O,length){if(isArray$1(O)&&!getOwnPropertyDescriptor$7(O,"length").writable)throw new $TypeError$a("Cannot set read only .length");return O.length=length}:function(O,length){return O.length=length},doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$5,createProperty$2=createProperty$7,deletePropertyOrThrow=deletePropertyOrThrow$3,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport$5("splice"),max$1=Math.max,min$5=Math.min;$$1J({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{splice:function splice(start,deleteCount){var insertCount,actualDeleteCount,A,k,from,to,O=toObject$b(this),len=lengthOfArrayLike$7(O),actualStart=toAbsoluteIndex$3(start,len),argumentsLength=arguments.length;for(0===argumentsLength?insertCount=actualDeleteCount=0:1===argumentsLength?(insertCount=0,actualDeleteCount=len-actualStart):(insertCount=argumentsLength-2,actualDeleteCount=min$5(max$1(toIntegerOrInfinity$8(deleteCount),0),len-actualStart)),doesNotExceedSafeInteger(len+insertCount-actualDeleteCount),A=arraySpeciesCreate(O,actualDeleteCount),k=0;k<actualDeleteCount;k++)(from=actualStart+k)in O&&createProperty$2(A,k,O[from]);if(A.length=actualDeleteCount,insertCount<actualDeleteCount){for(k=actualStart;k<len-actualDeleteCount;k++)to=k+insertCount,(from=k+actualDeleteCount)in O?O[to]=O[from]:deletePropertyOrThrow(O,to);for(k=len;k>len-actualDeleteCount+insertCount;k--)deletePropertyOrThrow(O,k-1)}else if(insertCount>actualDeleteCount)for(k=len-actualDeleteCount;k>actualStart;k--)to=k+insertCount-1,(from=k+actualDeleteCount-1)in O?O[to]=O[from]:deletePropertyOrThrow(O,to);for(k=0;k<insertCount;k++)O[k+actualStart]=arguments[k+2];return setArrayLength(O,len-actualDeleteCount+insertCount),A}}),addToUnscopables$8("flat"),addToUnscopables$8("flatMap");var arrayBufferBasicDetection="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,defineBuiltIn$c=defineBuiltIn$i,defineBuiltIns$5=function(target,src,options){for(var key in src)defineBuiltIn$c(target,key,src[key],options);return target},isPrototypeOf$7=objectIsPrototypeOf,$TypeError$9=TypeError,anInstance$8=function(it,Prototype){if(isPrototypeOf$7(Prototype,it))return it;throw new $TypeError$9("Incorrect invocation")},toIntegerOrInfinity$7=toIntegerOrInfinity$c,toLength$a=toLength$c,$RangeError$6=RangeError,toIndex$2=function(it){if(void 0===it)return 0;var number=toIntegerOrInfinity$7(it),length=toLength$a(number);if(number!==length)throw new $RangeError$6("Wrong length or index");return length},mathSign=Math.sign||function sign(x){var n=+x;return 0===n||n!=n?n:n<0?-1:1},sign$2=mathSign,roundTiesToEven=function(n){return n+4503599627370496-4503599627370496},abs$6=Math.abs,floatRound=function(x,FLOAT_EPSILON,FLOAT_MAX_VALUE,FLOAT_MIN_VALUE){var n=+x,absolute=abs$6(n),s=sign$2(n);if(absolute<FLOAT_MIN_VALUE)return s*roundTiesToEven(absolute/FLOAT_MIN_VALUE/FLOAT_EPSILON)*FLOAT_MIN_VALUE*FLOAT_EPSILON;var a=(1+FLOAT_EPSILON/2220446049250313e-31)*absolute,result=a-(a-absolute);return result>FLOAT_MAX_VALUE||result!=result?s*(1/0):s*result},mathFround=Math.fround||function fround(x){return floatRound(x,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},$Array=Array,abs$5=Math.abs,pow$3=Math.pow,floor$7=Math.floor,log$8=Math.log,LN2$2=Math.LN2,ieee754={pack:function(number,mantissaLength,bytes){var exponent,mantissa,c,buffer=$Array(bytes),exponentLength=8*bytes-mantissaLength-1,eMax=(1<<exponentLength)-1,eBias=eMax>>1,rt=23===mantissaLength?pow$3(2,-24)-pow$3(2,-77):0,sign=number<0||0===number&&1/number<0?1:0,index=0;for((number=abs$5(number))!=number||number===1/0?(mantissa=number!=number?1:0,exponent=eMax):(exponent=floor$7(log$8(number)/LN2$2),number*(c=pow$3(2,-exponent))<1&&(exponent--,c*=2),(number+=exponent+eBias>=1?rt/c:rt*pow$3(2,1-eBias))*c>=2&&(exponent++,c/=2),exponent+eBias>=eMax?(mantissa=0,exponent=eMax):exponent+eBias>=1?(mantissa=(number*c-1)*pow$3(2,mantissaLength),exponent+=eBias):(mantissa=number*pow$3(2,eBias-1)*pow$3(2,mantissaLength),exponent=0));mantissaLength>=8;)buffer[index++]=255&mantissa,mantissa/=256,mantissaLength-=8;for(exponent=exponent<<mantissaLength|mantissa,exponentLength+=mantissaLength;exponentLength>0;)buffer[index++]=255&exponent,exponent/=256,exponentLength-=8;return buffer[index-1]|=128*sign,buffer},unpack:function(buffer,mantissaLength){var mantissa,bytes=buffer.length,exponentLength=8*bytes-mantissaLength-1,eMax=(1<<exponentLength)-1,eBias=eMax>>1,nBits=exponentLength-7,index=bytes-1,sign=buffer[index--],exponent=127&sign;for(sign>>=7;nBits>0;)exponent=256*exponent+buffer[index--],nBits-=8;for(mantissa=exponent&(1<<-nBits)-1,exponent>>=-nBits,nBits+=mantissaLength;nBits>0;)mantissa=256*mantissa+buffer[index--],nBits-=8;if(0===exponent)exponent=1-eBias;else{if(exponent===eMax)return mantissa?NaN:sign?-1/0:1/0;mantissa+=pow$3(2,mantissaLength),exponent-=eBias}return(sign?-1:1)*mantissa*pow$3(2,exponent-mantissaLength)}},isCallable$c=isCallable$v,isObject$q=isObject$C,setPrototypeOf$5=objectSetPrototypeOf$1,inheritIfRequired$5=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;return setPrototypeOf$5&&isCallable$c(NewTarget=dummy.constructor)&&NewTarget!==Wrapper&&isObject$q(NewTargetPrototype=NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype&&setPrototypeOf$5($this,NewTargetPrototype),$this},globalThis$C=globalThis_1,uncurryThis$C=functionUncurryThis,DESCRIPTORS$m=descriptors,NATIVE_ARRAY_BUFFER$1=arrayBufferBasicDetection,createNonEnumerableProperty$6=createNonEnumerableProperty$a,defineBuiltInAccessor$7=defineBuiltInAccessor$b,defineBuiltIns$4=defineBuiltIns$5,fails$P=fails$18,anInstance$7=anInstance$8,toIntegerOrInfinity$6=toIntegerOrInfinity$c,toLength$9=toLength$c,toIndex$1=toIndex$2,fround$1=mathFround,IEEE754=ieee754,getPrototypeOf$5=objectGetPrototypeOf$2,setPrototypeOf$4=objectSetPrototypeOf$1,arrayFill=arrayFill$1,arraySlice$6=arraySlice$a,inheritIfRequired$4=inheritIfRequired$5,copyConstructorProperties$1=copyConstructorProperties$4,setToStringTag$7=setToStringTag$c,InternalStateModule$8=internalState,PROPER_FUNCTION_NAME$2=functionName.PROPER,CONFIGURABLE_FUNCTION_NAME=functionName.CONFIGURABLE,getInternalArrayBufferState=InternalStateModule$8.getterFor("ArrayBuffer"),getInternalDataViewState=InternalStateModule$8.getterFor("DataView"),setInternalState$7=InternalStateModule$8.set,NativeArrayBuffer$1=globalThis$C.ArrayBuffer,$ArrayBuffer=NativeArrayBuffer$1,ArrayBufferPrototype$1=$ArrayBuffer&&$ArrayBuffer.prototype,$DataView=globalThis$C.DataView,DataViewPrototype$1=$DataView&&$DataView.prototype,ObjectPrototype$2=Object.prototype,Array$1=globalThis$C.Array,RangeError$3=globalThis$C.RangeError,fill=uncurryThis$C(arrayFill),reverse=uncurryThis$C([].reverse),packIEEE754=IEEE754.pack,unpackIEEE754=IEEE754.unpack,packInt8=function(number){return[255&number]},packInt16=function(number){return[255&number,number>>8&255]},packInt32=function(number){return[255&number,number>>8&255,number>>16&255,number>>24&255]},unpackInt32=function(buffer){return buffer[3]<<24|buffer[2]<<16|buffer[1]<<8|buffer[0]},packFloat32=function(number){return packIEEE754(fround$1(number),23,4)},packFloat64=function(number){return packIEEE754(number,52,8)},addGetter$1=function(Constructor,key,getInternalState){defineBuiltInAccessor$7(Constructor.prototype,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},get$1=function(view,count,index,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex$1(index),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError$3("Wrong index");var bytes=store.bytes,start=intIndex+store.byteOffset,pack=arraySlice$6(bytes,start,start+count);return boolIsLittleEndian?pack:reverse(pack)},set$2=function(view,count,index,conversion,value,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex$1(index),pack=conversion(+value),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError$3("Wrong index");for(var bytes=store.bytes,start=intIndex+store.byteOffset,i=0;i<count;i++)bytes[start+i]=pack[boolIsLittleEndian?i:count-i-1]};if(NATIVE_ARRAY_BUFFER$1){var INCORRECT_ARRAY_BUFFER_NAME=PROPER_FUNCTION_NAME$2&&"ArrayBuffer"!==NativeArrayBuffer$1.name;fails$P(function(){NativeArrayBuffer$1(1)})&&fails$P(function(){new NativeArrayBuffer$1(-1)})&&!fails$P(function(){return new NativeArrayBuffer$1,new NativeArrayBuffer$1(1.5),new NativeArrayBuffer$1(NaN),1!==NativeArrayBuffer$1.length||INCORRECT_ARRAY_BUFFER_NAME&&!CONFIGURABLE_FUNCTION_NAME})?INCORRECT_ARRAY_BUFFER_NAME&&CONFIGURABLE_FUNCTION_NAME&&createNonEnumerableProperty$6(NativeArrayBuffer$1,"name","ArrayBuffer"):(($ArrayBuffer=function ArrayBuffer(length){return anInstance$7(this,ArrayBufferPrototype$1),inheritIfRequired$4(new NativeArrayBuffer$1(toIndex$1(length)),this,$ArrayBuffer)}).prototype=ArrayBufferPrototype$1,ArrayBufferPrototype$1.constructor=$ArrayBuffer,copyConstructorProperties$1($ArrayBuffer,NativeArrayBuffer$1)),setPrototypeOf$4&&getPrototypeOf$5(DataViewPrototype$1)!==ObjectPrototype$2&&setPrototypeOf$4(DataViewPrototype$1,ObjectPrototype$2);var testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis$C(DataViewPrototype$1.setInt8);testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),!testView.getInt8(0)&&testView.getInt8(1)||defineBuiltIns$4(DataViewPrototype$1,{setInt8:function setInt8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)},setUint8:function setUint8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype$1=($ArrayBuffer=function ArrayBuffer(length){anInstance$7(this,ArrayBufferPrototype$1);var byteLength=toIndex$1(length);setInternalState$7(this,{type:"ArrayBuffer",bytes:fill(Array$1(byteLength),0),byteLength:byteLength}),DESCRIPTORS$m||(this.byteLength=byteLength,this.detached=!1)}).prototype,DataViewPrototype$1=($DataView=function DataView(buffer,byteOffset,byteLength){anInstance$7(this,DataViewPrototype$1),anInstance$7(buffer,ArrayBufferPrototype$1);var bufferState=getInternalArrayBufferState(buffer),bufferLength=bufferState.byteLength,offset=toIntegerOrInfinity$6(byteOffset);if(offset<0||offset>bufferLength)throw new RangeError$3("Wrong offset");if(offset+(byteLength=void 0===byteLength?bufferLength-offset:toLength$9(byteLength))>bufferLength)throw new RangeError$3("Wrong length");setInternalState$7(this,{type:"DataView",buffer:buffer,byteLength:byteLength,byteOffset:offset,bytes:bufferState.bytes}),DESCRIPTORS$m||(this.buffer=buffer,this.byteLength=byteLength,this.byteOffset=offset)}).prototype,DESCRIPTORS$m&&(addGetter$1($ArrayBuffer,"byteLength",getInternalArrayBufferState),addGetter$1($DataView,"buffer",getInternalDataViewState),addGetter$1($DataView,"byteLength",getInternalDataViewState),addGetter$1($DataView,"byteOffset",getInternalDataViewState)),defineBuiltIns$4(DataViewPrototype$1,{getInt8:function getInt8(byteOffset){return get$1(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get$1(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get$1(this,2,byteOffset,arguments.length>1&&arguments[1]);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get$1(this,2,byteOffset,arguments.length>1&&arguments[1]);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackInt32(get$1(this,4,byteOffset,arguments.length>1&&arguments[1]))},getUint32:function getUint32(byteOffset){return unpackInt32(get$1(this,4,byteOffset,arguments.length>1&&arguments[1]))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get$1(this,4,byteOffset,arguments.length>1&&arguments[1]),23)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get$1(this,8,byteOffset,arguments.length>1&&arguments[1]),52)},setInt8:function setInt8(byteOffset,value){set$2(this,1,byteOffset,packInt8,value)},setUint8:function setUint8(byteOffset,value){set$2(this,1,byteOffset,packInt8,value)},setInt16:function setInt16(byteOffset,value){set$2(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setUint16:function setUint16(byteOffset,value){set$2(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setInt32:function setInt32(byteOffset,value){set$2(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setUint32:function setUint32(byteOffset,value){set$2(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setFloat32:function setFloat32(byteOffset,value){set$2(this,4,byteOffset,packFloat32,value,arguments.length>2&&arguments[2])},setFloat64:function setFloat64(byteOffset,value){set$2(this,8,byteOffset,packFloat64,value,arguments.length>2&&arguments[2])}});setToStringTag$7($ArrayBuffer,"ArrayBuffer"),setToStringTag$7($DataView,"DataView");var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},setSpecies$4=setSpecies$6,ArrayBuffer$4=arrayBuffer.ArrayBuffer;_export({global:!0,constructor:!0,forced:globalThis_1.ArrayBuffer!==ArrayBuffer$4},{ArrayBuffer:ArrayBuffer$4}),setSpecies$4("ArrayBuffer");var NAME$1,Constructor,Prototype,NATIVE_ARRAY_BUFFER=arrayBufferBasicDetection,DESCRIPTORS$l=descriptors,globalThis$A=globalThis_1,isCallable$b=isCallable$v,isObject$p=isObject$C,hasOwn$c=hasOwnProperty_1,classof$b=classof$i,tryToString$2=tryToString$7,createNonEnumerableProperty$5=createNonEnumerableProperty$a,defineBuiltIn$b=defineBuiltIn$i,defineBuiltInAccessor$6=defineBuiltInAccessor$b,isPrototypeOf$6=objectIsPrototypeOf,getPrototypeOf$4=objectGetPrototypeOf$2,setPrototypeOf$3=objectSetPrototypeOf$1,wellKnownSymbol$d=wellKnownSymbol$w,uid$1=uid$5,enforceInternalState$3=internalState.enforce,getInternalState$3=internalState.get,Int8Array$4=globalThis$A.Int8Array,Int8ArrayPrototype$1=Int8Array$4&&Int8Array$4.prototype,Uint8ClampedArray$1=globalThis$A.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray$1&&Uint8ClampedArray$1.prototype,TypedArray$1=Int8Array$4&&getPrototypeOf$4(Int8Array$4),TypedArrayPrototype$2=Int8ArrayPrototype$1&&getPrototypeOf$4(Int8ArrayPrototype$1),ObjectPrototype$1=Object.prototype,TypeError$5=globalThis$A.TypeError,TO_STRING_TAG=wellKnownSymbol$d("toStringTag"),TYPED_ARRAY_TAG$1=uid$1("TYPED_ARRAY_TAG"),NATIVE_ARRAY_BUFFER_VIEWS$3=NATIVE_ARRAY_BUFFER&&!!setPrototypeOf$3&&"Opera"!==classof$b(globalThis$A.opera),TYPED_ARRAY_TAG_REQUIRED=!1,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor$4=function(it){var proto=getPrototypeOf$4(it);if(isObject$p(proto)){var state=getInternalState$3(proto);return state&&hasOwn$c(state,"TypedArrayConstructor")?state.TypedArrayConstructor:getTypedArrayConstructor$4(proto)}},isTypedArray$1=function(it){if(!isObject$p(it))return!1;var klass=classof$b(it);return hasOwn$c(TypedArrayConstructorsList,klass)||hasOwn$c(BigIntArrayConstructorsList,klass)};for(NAME$1 in TypedArrayConstructorsList)(Prototype=(Constructor=globalThis$A[NAME$1])&&Constructor.prototype)?enforceInternalState$3(Prototype).TypedArrayConstructor=Constructor:NATIVE_ARRAY_BUFFER_VIEWS$3=!1;for(NAME$1 in BigIntArrayConstructorsList)(Prototype=(Constructor=globalThis$A[NAME$1])&&Constructor.prototype)&&(enforceInternalState$3(Prototype).TypedArrayConstructor=Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS$3||!isCallable$b(TypedArray$1)||TypedArray$1===Function.prototype)&&(TypedArray$1=function TypedArray(){throw new TypeError$5("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$3))for(NAME$1 in TypedArrayConstructorsList)globalThis$A[NAME$1]&&setPrototypeOf$3(globalThis$A[NAME$1],TypedArray$1);if((!NATIVE_ARRAY_BUFFER_VIEWS$3||!TypedArrayPrototype$2||TypedArrayPrototype$2===ObjectPrototype$1)&&(TypedArrayPrototype$2=TypedArray$1.prototype,NATIVE_ARRAY_BUFFER_VIEWS$3))for(NAME$1 in TypedArrayConstructorsList)globalThis$A[NAME$1]&&setPrototypeOf$3(globalThis$A[NAME$1].prototype,TypedArrayPrototype$2);if(NATIVE_ARRAY_BUFFER_VIEWS$3&&getPrototypeOf$4(Uint8ClampedArrayPrototype)!==TypedArrayPrototype$2&&setPrototypeOf$3(Uint8ClampedArrayPrototype,TypedArrayPrototype$2),DESCRIPTORS$l&&!hasOwn$c(TypedArrayPrototype$2,TO_STRING_TAG))for(NAME$1 in TYPED_ARRAY_TAG_REQUIRED=!0,defineBuiltInAccessor$6(TypedArrayPrototype$2,TO_STRING_TAG,{configurable:!0,get:function(){return isObject$p(this)?this[TYPED_ARRAY_TAG$1]:void 0}}),TypedArrayConstructorsList)globalThis$A[NAME$1]&&createNonEnumerableProperty$5(globalThis$A[NAME$1],TYPED_ARRAY_TAG$1,NAME$1);var arrayBufferViewCore={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$3,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG$1,aTypedArray:function(it){if(isTypedArray$1(it))return it;throw new TypeError$5("Target is not a typed array")},aTypedArrayConstructor:function(C){if(isCallable$b(C)&&(!setPrototypeOf$3||isPrototypeOf$6(TypedArray$1,C)))return C;throw new TypeError$5(tryToString$2(C)+" is not a typed array constructor")},exportTypedArrayMethod:function(KEY,property,forced,options){if(DESCRIPTORS$l){if(forced)for(var ARRAY in TypedArrayConstructorsList){var TypedArrayConstructor=globalThis$A[ARRAY];if(TypedArrayConstructor&&hasOwn$c(TypedArrayConstructor.prototype,KEY))try{delete TypedArrayConstructor.prototype[KEY]}catch(error){try{TypedArrayConstructor.prototype[KEY]=property}catch(error2){}}}TypedArrayPrototype$2[KEY]&&!forced||defineBuiltIn$b(TypedArrayPrototype$2,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS$3&&Int8ArrayPrototype$1[KEY]||property,options)}},exportTypedArrayStaticMethod:function(KEY,property,forced){var ARRAY,TypedArrayConstructor;if(DESCRIPTORS$l){if(setPrototypeOf$3){if(forced)for(ARRAY in TypedArrayConstructorsList)if((TypedArrayConstructor=globalThis$A[ARRAY])&&hasOwn$c(TypedArrayConstructor,KEY))try{delete TypedArrayConstructor[KEY]}catch(error){}if(TypedArray$1[KEY]&&!forced)return;try{return defineBuiltIn$b(TypedArray$1,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS$3&&TypedArray$1[KEY]||property)}catch(error){}}for(ARRAY in TypedArrayConstructorsList)!(TypedArrayConstructor=globalThis$A[ARRAY])||TypedArrayConstructor[KEY]&&!forced||defineBuiltIn$b(TypedArrayConstructor,KEY,property)}},getTypedArrayConstructor:getTypedArrayConstructor$4,isView:function isView(it){if(!isObject$p(it))return!1;var klass=classof$b(it);return"DataView"===klass||hasOwn$c(TypedArrayConstructorsList,klass)||hasOwn$c(BigIntArrayConstructorsList,klass)},isTypedArray:isTypedArray$1,TypedArray:TypedArray$1,TypedArrayPrototype:TypedArrayPrototype$2};_export({target:"ArrayBuffer",stat:!0,forced:!arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS},{isView:arrayBufferViewCore.isView});var $$1G=_export,uncurryThis$B=functionUncurryThisClause,fails$O=fails$18,anObject$o=anObject$x,toAbsoluteIndex$2=toAbsoluteIndex$8,toLength$8=toLength$c,ArrayBuffer$3=arrayBuffer.ArrayBuffer,DataView$2=arrayBuffer.DataView,DataViewPrototype=DataView$2.prototype,nativeArrayBufferSlice=uncurryThis$B(ArrayBuffer$3.prototype.slice),getUint8=uncurryThis$B(DataViewPrototype.getUint8),setUint8=uncurryThis$B(DataViewPrototype.setUint8);$$1G({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:fails$O(function(){return!new ArrayBuffer$3(2).slice(1,void 0).byteLength})},{slice:function slice(start,end){if(nativeArrayBufferSlice&&void 0===end)return nativeArrayBufferSlice(anObject$o(this),start);for(var length=anObject$o(this).byteLength,first=toAbsoluteIndex$2(start,length),fin=toAbsoluteIndex$2(void 0===end?length:end,length),result=new ArrayBuffer$3(toLength$8(fin-first)),viewSource=new DataView$2(this),viewTarget=new DataView$2(result),index=0;first<fin;)setUint8(viewTarget,index++,getUint8(viewSource,first++));return result}});var anObject$n=anObject$x,ordinaryToPrimitive=ordinaryToPrimitive$2,$TypeError$8=TypeError,hasOwn$b=hasOwnProperty_1,defineBuiltIn$a=defineBuiltIn$i,dateToPrimitive=function(hint){if(anObject$n(this),"string"===hint||"default"===hint)hint="string";else if("number"!==hint)throw new $TypeError$8("Incorrect hint");return ordinaryToPrimitive(this,hint)},TO_PRIMITIVE=wellKnownSymbol$w("toPrimitive"),DatePrototype=Date.prototype;hasOwn$b(DatePrototype,TO_PRIMITIVE)||defineBuiltIn$a(DatePrototype,TO_PRIMITIVE,dateToPrimitive);var isCallable$a=isCallable$v,isObject$o=isObject$C,definePropertyModule$5=objectDefineProperty,isPrototypeOf$5=objectIsPrototypeOf,makeBuiltIn=makeBuiltInExports,HAS_INSTANCE=wellKnownSymbol$w("hasInstance"),FunctionPrototype$1=Function.prototype;HAS_INSTANCE in FunctionPrototype$1||definePropertyModule$5.f(FunctionPrototype$1,HAS_INSTANCE,{value:makeBuiltIn(function(O){if(!isCallable$a(this)||!isObject$o(O))return!1;var P=this.prototype;return isObject$o(P)?isPrototypeOf$5(P,O):O instanceof this},HAS_INSTANCE)});var DESCRIPTORS$k=descriptors,FUNCTION_NAME_EXISTS=functionName.EXISTS,uncurryThis$A=functionUncurryThis,defineBuiltInAccessor$5=defineBuiltInAccessor$b,FunctionPrototype=Function.prototype,functionToString=uncurryThis$A(FunctionPrototype.toString),nameRE=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,regExpExec$4=uncurryThis$A(nameRE.exec);DESCRIPTORS$k&&!FUNCTION_NAME_EXISTS&&defineBuiltInAccessor$5(FunctionPrototype,"name",{configurable:!0,get:function(){try{return regExpExec$4(nameRE,functionToString(this))[1]}catch(error){return""}}}),setToStringTag$c(globalThis_1.JSON,"JSON",!0);var internalMetadata={exports:{}},arrayBufferNonExtensible=fails$18(function(){if("function"==typeof ArrayBuffer){var buffer=new ArrayBuffer(8);Object.isExtensible(buffer)&&Object.defineProperty(buffer,"a",{value:8})}}),fails$M=fails$18,isObject$n=isObject$C,classof$a=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE$2=arrayBufferNonExtensible,$isExtensible$2=Object.isExtensible,objectIsExtensible=fails$M(function(){$isExtensible$2(1)})||ARRAY_BUFFER_NON_EXTENSIBLE$2?function isExtensible(it){return!!isObject$n(it)&&((!ARRAY_BUFFER_NON_EXTENSIBLE$2||"ArrayBuffer"!==classof$a(it))&&(!$isExtensible$2||$isExtensible$2(it)))}:$isExtensible$2,freezing=!fails$18(function(){return Object.isExtensible(Object.preventExtensions({}))}),$$1F=_export,uncurryThis$z=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$m=isObject$C,hasOwn$a=hasOwnProperty_1,defineProperty$3=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible$1=objectIsExtensible,FREEZING$5=freezing,REQUIRED=!1,METADATA=uid$5("meta"),id$1=0,setMetadata=function(it){defineProperty$3(it,METADATA,{value:{objectID:"O"+id$1++,weakData:{}}})},meta=internalMetadata.exports={enable:function(){meta.enable=function(){},REQUIRED=!0;var getOwnPropertyNames=getOwnPropertyNamesModule.f,splice=uncurryThis$z([].splice),test={};test[METADATA]=1,getOwnPropertyNames(test).length&&(getOwnPropertyNamesModule.f=function(it){for(var result=getOwnPropertyNames(it),i=0,length=result.length;i<length;i++)if(result[i]===METADATA){splice(result,i,1);break}return result},$$1F({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},fastKey:function(it,create){if(!isObject$m(it))return"symbol"==typeof it?it:("string"==typeof it?"S":"P")+it;if(!hasOwn$a(it,METADATA)){if(!isExtensible$1(it))return"F";if(!create)return"E";setMetadata(it)}return it[METADATA].objectID},getWeakData:function(it,create){if(!hasOwn$a(it,METADATA)){if(!isExtensible$1(it))return!0;if(!create)return!1;setMetadata(it)}return it[METADATA].weakData},onFreeze:function(it){return FREEZING$5&&REQUIRED&&isExtensible$1(it)&&!hasOwn$a(it,METADATA)&&setMetadata(it),it}};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,bind$8=functionBindContext,call$k=functionCall,anObject$m=anObject$x,tryToString$1=tryToString$7,isArrayIteratorMethod$1=isArrayIteratorMethod$3,lengthOfArrayLike$6=lengthOfArrayLike$j,isPrototypeOf$4=objectIsPrototypeOf,getIterator$2=getIterator$4,getIteratorMethod$2=getIteratorMethod$5,iteratorClose=iteratorClose$2,$TypeError$7=TypeError,Result=function(stopped,result){this.stopped=stopped,this.result=result},ResultPrototype=Result.prototype,iterate$6=function(iterable,unboundFunction,options){var iterator,iterFn,index,length,result,next,step,that=options&&options.that,AS_ENTRIES=!(!options||!options.AS_ENTRIES),IS_RECORD=!(!options||!options.IS_RECORD),IS_ITERATOR=!(!options||!options.IS_ITERATOR),INTERRUPTED=!(!options||!options.INTERRUPTED),fn=bind$8(unboundFunction,that),stop=function(condition){return iterator&&iteratorClose(iterator,"normal"),new Result(!0,condition)},callFn=function(value){return AS_ENTRIES?(anObject$m(value),INTERRUPTED?fn(value[0],value[1],stop):fn(value[0],value[1])):INTERRUPTED?fn(value,stop):fn(value)};if(IS_RECORD)iterator=iterable.iterator;else if(IS_ITERATOR)iterator=iterable;else{if(!(iterFn=getIteratorMethod$2(iterable)))throw new $TypeError$7(tryToString$1(iterable)+" is not iterable");if(isArrayIteratorMethod$1(iterFn)){for(index=0,length=lengthOfArrayLike$6(iterable);length>index;index++)if((result=callFn(iterable[index]))&&isPrototypeOf$4(ResultPrototype,result))return result;return new Result(!1)}iterator=getIterator$2(iterable,iterFn)}for(next=IS_RECORD?iterable.next:iterator.next;!(step=call$k(next,iterator)).done;){try{result=callFn(step.value)}catch(error){iteratorClose(iterator,"throw",error)}if("object"==typeof result&&result&&isPrototypeOf$4(ResultPrototype,result))return result}return new Result(!1)},$$1E=_export,globalThis$y=globalThis_1,uncurryThis$y=functionUncurryThis,isForced$3=isForced_1,defineBuiltIn$9=defineBuiltIn$i,InternalMetadataModule$1=internalMetadataExports,iterate$5=iterate$6,anInstance$6=anInstance$8,isCallable$9=isCallable$v,isNullOrUndefined$3=isNullOrUndefined$7,isObject$l=isObject$C,fails$K=fails$18,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$4,setToStringTag$5=setToStringTag$c,inheritIfRequired$3=inheritIfRequired$5,collection$4=function(CONSTRUCTOR_NAME,wrapper,common){var IS_MAP=-1!==CONSTRUCTOR_NAME.indexOf("Map"),IS_WEAK=-1!==CONSTRUCTOR_NAME.indexOf("Weak"),ADDER=IS_MAP?"set":"add",NativeConstructor=globalThis$y[CONSTRUCTOR_NAME],NativePrototype=NativeConstructor&&NativeConstructor.prototype,Constructor=NativeConstructor,exported={},fixMethod=function(KEY){var uncurriedNativeMethod=uncurryThis$y(NativePrototype[KEY]);defineBuiltIn$9(NativePrototype,KEY,"add"===KEY?function add(value){return uncurriedNativeMethod(this,0===value?0:value),this}:"delete"===KEY?function(key){return!(IS_WEAK&&!isObject$l(key))&&uncurriedNativeMethod(this,0===key?0:key)}:"get"===KEY?function get(key){return IS_WEAK&&!isObject$l(key)?void 0:uncurriedNativeMethod(this,0===key?0:key)}:"has"===KEY?function has(key){return!(IS_WEAK&&!isObject$l(key))&&uncurriedNativeMethod(this,0===key?0:key)}:function set(key,value){return uncurriedNativeMethod(this,0===key?0:key,value),this})};if(isForced$3(CONSTRUCTOR_NAME,!isCallable$9(NativeConstructor)||!(IS_WEAK||NativePrototype.forEach&&!fails$K(function(){(new NativeConstructor).entries().next()}))))Constructor=common.getConstructor(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER),InternalMetadataModule$1.enable();else if(isForced$3(CONSTRUCTOR_NAME,!0)){var instance=new Constructor,HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!==instance,THROWS_ON_PRIMITIVES=fails$K(function(){instance.has(1)}),ACCEPT_ITERABLES=checkCorrectnessOfIteration$2(function(iterable){new NativeConstructor(iterable)}),BUGGY_ZERO=!IS_WEAK&&fails$K(function(){for(var $instance=new NativeConstructor,index=5;index--;)$instance[ADDER](index,index);return!$instance.has(-0)});ACCEPT_ITERABLES||((Constructor=wrapper(function(dummy,iterable){anInstance$6(dummy,NativePrototype);var that=inheritIfRequired$3(new NativeConstructor,dummy,Constructor);return isNullOrUndefined$3(iterable)||iterate$5(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP}),that})).prototype=NativePrototype,NativePrototype.constructor=Constructor),(THROWS_ON_PRIMITIVES||BUGGY_ZERO)&&(fixMethod("delete"),fixMethod("has"),IS_MAP&&fixMethod("get")),(BUGGY_ZERO||HASNT_CHAINING)&&fixMethod(ADDER),IS_WEAK&&NativePrototype.clear&&delete NativePrototype.clear}return exported[CONSTRUCTOR_NAME]=Constructor,$$1E({global:!0,constructor:!0,forced:Constructor!==NativeConstructor},exported),setToStringTag$5(Constructor,CONSTRUCTOR_NAME),IS_WEAK||common.setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP),Constructor},create$5=objectCreate,defineBuiltInAccessor$4=defineBuiltInAccessor$b,defineBuiltIns$3=defineBuiltIns$5,bind$7=functionBindContext,anInstance$5=anInstance$8,isNullOrUndefined$2=isNullOrUndefined$7,iterate$4=iterate$6,defineIterator$1=iteratorDefine,createIterResultObject$2=createIterResultObject$4,setSpecies$3=setSpecies$6,DESCRIPTORS$j=descriptors,fastKey=internalMetadataExports.fastKey,setInternalState$6=internalState.set,internalStateGetterFor$1=internalState.getterFor,collectionStrong$2={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper(function(that,iterable){anInstance$5(that,Prototype),setInternalState$6(that,{type:CONSTRUCTOR_NAME,index:create$5(null),first:null,last:null,size:0}),DESCRIPTORS$j||(that.size=0),isNullOrUndefined$2(iterable)||iterate$4(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP})}),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor$1(CONSTRUCTOR_NAME),define=function(that,key,value){var previous,index,state=getInternalState(that),entry=getEntry(that,key);return entry?entry.value=value:(state.last=entry={index:index=fastKey(key,!0),key:key,value:value,previous:previous=state.last,next:null,removed:!1},state.first||(state.first=entry),previous&&(previous.next=entry),DESCRIPTORS$j?state.size++:that.size++,"F"!==index&&(state.index[index]=entry)),that},getEntry=function(that,key){var entry,state=getInternalState(that),index=fastKey(key);if("F"!==index)return state.index[index];for(entry=state.first;entry;entry=entry.next)if(entry.key===key)return entry};return defineBuiltIns$3(Prototype,{clear:function clear(){for(var state=getInternalState(this),entry=state.first;entry;)entry.removed=!0,entry.previous&&(entry.previous=entry.previous.next=null),entry=entry.next;state.first=state.last=null,state.index=create$5(null),DESCRIPTORS$j?state.size=0:this.size=0},delete:function(key){var state=getInternalState(this),entry=getEntry(this,key);if(entry){var next=entry.next,prev=entry.previous;delete state.index[entry.index],entry.removed=!0,prev&&(prev.next=next),next&&(next.previous=prev),state.first===entry&&(state.first=next),state.last===entry&&(state.last=prev),DESCRIPTORS$j?state.size--:this.size--}return!!entry},forEach:function forEach(callbackfn){for(var entry,state=getInternalState(this),boundFunction=bind$7(callbackfn,arguments.length>1?arguments[1]:void 0);entry=entry?entry.next:state.first;)for(boundFunction(entry.value,entry.key,this);entry&&entry.removed;)entry=entry.previous},has:function has(key){return!!getEntry(this,key)}}),defineBuiltIns$3(Prototype,IS_MAP?{get:function get(key){var entry=getEntry(this,key);return entry&&entry.value},set:function set(key,value){return define(this,0===key?0:key,value)}}:{add:function add(value){return define(this,value=0===value?0:value,value)}}),DESCRIPTORS$j&&defineBuiltInAccessor$4(Prototype,"size",{configurable:!0,get:function(){return getInternalState(this).size}}),Constructor},setStrong:function(Constructor,CONSTRUCTOR_NAME,IS_MAP){var ITERATOR_NAME=CONSTRUCTOR_NAME+" Iterator",getInternalCollectionState=internalStateGetterFor$1(CONSTRUCTOR_NAME),getInternalIteratorState=internalStateGetterFor$1(ITERATOR_NAME);defineIterator$1(Constructor,CONSTRUCTOR_NAME,function(iterated,kind){setInternalState$6(this,{type:ITERATOR_NAME,target:iterated,state:getInternalCollectionState(iterated),kind:kind,last:null})},function(){for(var state=getInternalIteratorState(this),kind=state.kind,entry=state.last;entry&&entry.removed;)entry=entry.previous;return state.target&&(state.last=entry=entry?entry.next:state.state.first)?createIterResultObject$2("keys"===kind?entry.key:"values"===kind?entry.value:[entry.key,entry.value],!1):(state.target=null,createIterResultObject$2(void 0,!0))},IS_MAP?"entries":"values",!IS_MAP,!0),setSpecies$3(CONSTRUCTOR_NAME)}};collection$4("Map",function(init){return function Map(){return init(this,arguments.length?arguments[0]:void 0)}},collectionStrong$2);var log$7=Math.log,mathLog1p=Math.log1p||function log1p(x){var n=+x;return n>-1e-8&&n<1e-8?n-n*n/2:log$7(1+n)},$$1D=_export,log1p$1=mathLog1p,$acosh=Math.acosh,log$6=Math.log,sqrt$2=Math.sqrt,LN2$1=Math.LN2;$$1D({target:"Math",stat:!0,forced:!$acosh||710!==Math.floor($acosh(Number.MAX_VALUE))||$acosh(1/0)!==1/0},{acosh:function acosh(x){var n=+x;return n<1?NaN:n>94906265.62425156?log$6(n)+LN2$1:log1p$1(n-1+sqrt$2(n-1)*sqrt$2(n+1))}});var $$1C=_export,$asinh=Math.asinh,log$5=Math.log,sqrt$1=Math.sqrt;$$1C({target:"Math",stat:!0,forced:!($asinh&&1/$asinh(0)>0)},{asinh:function asinh(x){var n=+x;return isFinite(n)&&0!==n?n<0?-asinh(-n):log$5(n+sqrt$1(n*n+1)):n}});var $$1B=_export,$atanh=Math.atanh,log$4=Math.log;$$1B({target:"Math",stat:!0,forced:!($atanh&&1/$atanh(-0)<0)},{atanh:function atanh(x){var n=+x;return 0===n?n:log$4((1+n)/(1-n))/2}});var $$1A=_export,sign$1=mathSign,abs$4=Math.abs,pow$2=Math.pow;$$1A({target:"Math",stat:!0},{cbrt:function cbrt(x){var n=+x;return sign$1(n)*pow$2(abs$4(n),1/3)}});var $$1z=_export,floor$6=Math.floor,log$3=Math.log,LOG2E=Math.LOG2E;$$1z({target:"Math",stat:!0},{clz32:function clz32(x){var n=x>>>0;return n?31-floor$6(log$3(n+.5)*LOG2E):32}});var $expm1=Math.expm1,exp$2=Math.exp,mathExpm1=!$expm1||$expm1(10)>22025.465794806718||$expm1(10)<22025.465794806718||-2e-17!==$expm1(-2e-17)?function expm1(x){var n=+x;return 0===n?n:n>-1e-6&&n<1e-6?n+n*n/2:exp$2(n)-1}:$expm1,$$1y=_export,expm1$3=mathExpm1,$cosh=Math.cosh,abs$3=Math.abs,E$1=Math.E;$$1y({target:"Math",stat:!0,forced:!$cosh||$cosh(710)===1/0},{cosh:function cosh(x){var t=expm1$3(abs$3(x)-1)+1;return(t+1/(t*E$1*E$1))*(E$1/2)}});var expm1$2=mathExpm1;_export({target:"Math",stat:!0,forced:expm1$2!==Math.expm1},{expm1:expm1$2}),_export({target:"Math",stat:!0},{fround:mathFround});var $$1v=_export,$hypot=Math.hypot,abs$2=Math.abs,sqrt=Math.sqrt;$$1v({target:"Math",stat:!0,arity:2,forced:!!$hypot&&$hypot(1/0,NaN)!==1/0},{hypot:function hypot(value1,value2){for(var arg,div,sum=0,i=0,aLen=arguments.length,larg=0;i<aLen;)larg<(arg=abs$2(arguments[i++]))?(sum=sum*(div=larg/arg)*div+1,larg=arg):sum+=arg>0?(div=arg/larg)*div:arg;return larg===1/0?1/0:larg*sqrt(sum)}});var $$1u=_export,fails$J=fails$18,$imul=Math.imul;$$1u({target:"Math",stat:!0,forced:fails$J(function(){return-5!==$imul(4294967295,5)||2!==$imul.length})},{imul:function imul(x,y){var xn=+x,yn=+y,xl=65535&xn,yl=65535&yn;return 0|xl*yl+((65535&xn>>>16)*yl+xl*(65535&yn>>>16)<<16>>>0)}});var log$2=Math.log,LOG10E=Math.LOG10E;_export({target:"Math",stat:!0},{log10:Math.log10||function log10(x){return log$2(x)*LOG10E}}),_export({target:"Math",stat:!0},{log1p:mathLog1p});var log$1=Math.log,LN2=Math.LN2;_export({target:"Math",stat:!0},{log2:Math.log2||function log2(x){return log$1(x)/LN2}}),_export({target:"Math",stat:!0},{sign:mathSign});var $$1p=_export,fails$I=fails$18,expm1$1=mathExpm1,abs$1=Math.abs,exp$1=Math.exp,E=Math.E;$$1p({target:"Math",stat:!0,forced:fails$I(function(){return-2e-17!==Math.sinh(-2e-17)})},{sinh:function sinh(x){var n=+x;return abs$1(n)<1?(expm1$1(n)-expm1$1(-n))/2:(exp$1(n-1)-exp$1(-n-1))*(E/2)}});var $$1o=_export,expm1=mathExpm1,exp=Math.exp;$$1o({target:"Math",stat:!0},{tanh:function tanh(x){var n=+x,a=expm1(n),b=expm1(-n);return a===1/0?1:b===1/0?-1:(a-b)/(exp(n)+exp(-n))}}),setToStringTag$c(Math,"Math",!0),_export({target:"Math",stat:!0},{trunc:mathTrunc});var thisNumberValue$2=functionUncurryThis(1.1.valueOf),whitespaces$4="\t\n\v\f\r \u2028\u2029\ufeff",requireObjectCoercible$b=requireObjectCoercible$f,toString$i=toString$n,whitespaces$3=whitespaces$4,replace$7=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$3+"]+"),rtrim=RegExp("(^|[^"+whitespaces$3+"])["+whitespaces$3+"]+$"),createMethod$4=function(TYPE){return function($this){var string=toString$i(requireObjectCoercible$b($this));return 1&TYPE&&(string=replace$7(string,ltrim,"")),2&TYPE&&(string=replace$7(string,rtrim,"$1")),string}},stringTrim={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},$$1m=_export,DESCRIPTORS$i=descriptors,globalThis$x=globalThis_1,path$1=path$3,uncurryThis$v=functionUncurryThis,isForced$2=isForced_1,hasOwn$9=hasOwnProperty_1,inheritIfRequired$2=inheritIfRequired$5,isPrototypeOf$3=objectIsPrototypeOf,isSymbol$1=isSymbol$6,toPrimitive$1=toPrimitive$3,fails$H=fails$18,getOwnPropertyNames$3=objectGetOwnPropertyNames.f,getOwnPropertyDescriptor$6=objectGetOwnPropertyDescriptor.f,defineProperty$2=objectDefineProperty.f,thisNumberValue$1=thisNumberValue$2,trim$2=stringTrim.trim,NativeNumber=globalThis$x.Number;path$1.Number;var NumberPrototype=NativeNumber.prototype,TypeError$4=globalThis$x.TypeError,stringSlice$b=uncurryThis$v("".slice),charCodeAt$2=uncurryThis$v("".charCodeAt),toNumber=function(argument){var first,third,radix,maxCode,digits,length,index,code,it=toPrimitive$1(argument,"number");if(isSymbol$1(it))throw new TypeError$4("Cannot convert a Symbol value to a number");if("string"==typeof it&&it.length>2)if(it=trim$2(it),43===(first=charCodeAt$2(it,0))||45===first){if(88===(third=charCodeAt$2(it,2))||120===third)return NaN}else if(48===first){switch(charCodeAt$2(it,1)){case 66:case 98:radix=2,maxCode=49;break;case 79:case 111:radix=8,maxCode=55;break;default:return+it}for(length=(digits=stringSlice$b(it,2)).length,index=0;index<length;index++)if((code=charCodeAt$2(digits,index))<48||code>maxCode)return NaN;return parseInt(digits,radix)}return+it},FORCED$e=isForced$2("Number",!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1")),NumberWrapper=function Number(value){var dummy,n=arguments.length<1?0:NativeNumber(function(value){var primValue=toPrimitive$1(value,"number");return"bigint"==typeof primValue?primValue:toNumber(primValue)}(value));return isPrototypeOf$3(NumberPrototype,dummy=this)&&fails$H(function(){thisNumberValue$1(dummy)})?inheritIfRequired$2(Object(n),this,NumberWrapper):n};NumberWrapper.prototype=NumberPrototype,FORCED$e&&(NumberPrototype.constructor=NumberWrapper),$$1m({global:!0,constructor:!0,wrap:!0,forced:FORCED$e},{Number:NumberWrapper});FORCED$e&&function(target,source){for(var key,keys=DESCRIPTORS$i?getOwnPropertyNames$3(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j=0;keys.length>j;j++)hasOwn$9(source,key=keys[j])&&!hasOwn$9(target,key)&&defineProperty$2(target,key,getOwnPropertyDescriptor$6(source,key))}(path$1.Number,NativeNumber),_export({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var globalIsFinite=globalThis_1.isFinite;_export({target:"Number",stat:!0},{isFinite:Number.isFinite||function isFinite(it){return"number"==typeof it&&globalIsFinite(it)}});var isObject$k=isObject$C,floor$5=Math.floor,isIntegralNumber$3=Number.isInteger||function isInteger(it){return!isObject$k(it)&&isFinite(it)&&floor$5(it)===it};_export({target:"Number",stat:!0},{isInteger:isIntegralNumber$3}),_export({target:"Number",stat:!0},{isNaN:function isNaN(number){return number!=number}});var $$1h=_export,isIntegralNumber$1=isIntegralNumber$3,abs=Math.abs;$$1h({target:"Number",stat:!0},{isSafeInteger:function isSafeInteger(number){return isIntegralNumber$1(number)&&abs(number)<=9007199254740991}}),_export({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),_export({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var globalThis$v=globalThis_1,fails$G=fails$18,toString$h=toString$n,trim$1=stringTrim.trim,whitespaces$2=whitespaces$4,charAt$8=functionUncurryThis("".charAt),$parseFloat=globalThis$v.parseFloat,Symbol$2=globalThis$v.Symbol,ITERATOR$5=Symbol$2&&Symbol$2.iterator,parseFloat=1/$parseFloat(whitespaces$2+"-0")!=-1/0||ITERATOR$5&&!fails$G(function(){$parseFloat(Object(ITERATOR$5))})?function parseFloat(string){var trimmedString=trim$1(toString$h(string)),result=$parseFloat(trimmedString);return 0===result&&"-"===charAt$8(trimmedString,0)?-0:result}:$parseFloat;_export({target:"Number",stat:!0,forced:Number.parseFloat!==parseFloat},{parseFloat:parseFloat});var globalThis$u=globalThis_1,fails$F=fails$18,uncurryThis$t=functionUncurryThis,toString$g=toString$n,trim=stringTrim.trim,whitespaces$1=whitespaces$4,$parseInt$1=globalThis$u.parseInt,Symbol$1=globalThis$u.Symbol,ITERATOR$4=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$5=uncurryThis$t(hex.exec),parseInt$2=8!==$parseInt$1(whitespaces$1+"08")||22!==$parseInt$1(whitespaces$1+"0x16")||ITERATOR$4&&!fails$F(function(){$parseInt$1(Object(ITERATOR$4))})?function parseInt(string,radix){var S=trim(toString$g(string));return $parseInt$1(S,radix>>>0||(exec$5(hex,S)?16:10))}:$parseInt$1;_export({target:"Number",stat:!0,forced:Number.parseInt!==parseInt$2},{parseInt:parseInt$2});var toIntegerOrInfinity$5=toIntegerOrInfinity$c,toString$f=toString$n,requireObjectCoercible$a=requireObjectCoercible$f,$RangeError$5=RangeError,stringRepeat=function repeat(count){var str=toString$f(requireObjectCoercible$a(this)),result="",n=toIntegerOrInfinity$5(count);if(n<0||n===1/0)throw new $RangeError$5("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(str+=str))1&n&&(result+=str);return result},$$1c=_export,uncurryThis$s=functionUncurryThis,toIntegerOrInfinity$4=toIntegerOrInfinity$c,thisNumberValue=thisNumberValue$2,$repeat$1=stringRepeat,fails$E=fails$18,$RangeError$4=RangeError,$String=String,floor$4=Math.floor,repeat$2=uncurryThis$s($repeat$1),stringSlice$a=uncurryThis$s("".slice),nativeToFixed=uncurryThis$s(1.1.toFixed),pow$1=function(x,n,acc){return 0===n?acc:n%2==1?pow$1(x,n-1,acc*x):pow$1(x*x,n/2,acc)},multiply=function(data,n,c){for(var index=-1,c2=c;++index<6;)c2+=n*data[index],data[index]=c2%1e7,c2=floor$4(c2/1e7)},divide=function(data,n){for(var index=6,c=0;--index>=0;)c+=data[index],data[index]=floor$4(c/n),c=c%n*1e7},dataToString=function(data){for(var index=6,s="";--index>=0;)if(""!==s||0===index||0!==data[index]){var t=$String(data[index]);s=""===s?t:s+repeat$2("0",7-t.length)+t}return s};$$1c({target:"Number",proto:!0,forced:fails$E(function(){return"0.000"!==nativeToFixed(8e-5,3)||"1"!==nativeToFixed(.9,0)||"1.25"!==nativeToFixed(1.255,2)||"1000000000000000128"!==nativeToFixed(0xde0b6b3a7640080,0)})||!fails$E(function(){nativeToFixed({})})},{toFixed:function toFixed(fractionDigits){var e,z,j,k,number=thisNumberValue(this),fractDigits=toIntegerOrInfinity$4(fractionDigits),data=[0,0,0,0,0,0],sign="",result="0";if(fractDigits<0||fractDigits>20)throw new $RangeError$4("Incorrect fraction digits");if(number!=number)return"NaN";if(number<=-1e21||number>=1e21)return $String(number);if(number<0&&(sign="-",number=-number),number>1e-21)if(z=(e=function(x){for(var n=0,x2=x;x2>=4096;)n+=12,x2/=4096;for(;x2>=2;)n+=1,x2/=2;return n}(number*pow$1(2,69,1))-69)<0?number*pow$1(2,-e,1):number/pow$1(2,e,1),z*=4503599627370496,(e=52-e)>0){for(multiply(data,0,z),j=fractDigits;j>=7;)multiply(data,1e7,0),j-=7;for(multiply(data,pow$1(10,j,1),0),j=e-1;j>=23;)divide(data,1<<23),j-=23;divide(data,1<<j),multiply(data,1,1),divide(data,2),result=dataToString(data)}else multiply(data,0,z),multiply(data,1<<-e,0),result=dataToString(data)+repeat$2("0",fractDigits);return result=fractDigits>0?sign+((k=result.length)<=fractDigits?"0."+repeat$2("0",fractDigits-k)+result:stringSlice$a(result,0,k-fractDigits)+"."+stringSlice$a(result,k-fractDigits)):sign+result}});var DESCRIPTORS$h=descriptors,uncurryThis$r=functionUncurryThis,call$j=functionCall,fails$D=fails$18,objectKeys$1=objectKeys$4,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$a=toObject$n,IndexedObject$1=indexedObject,$assign=Object.assign,defineProperty$1=Object.defineProperty,concat$3=uncurryThis$r([].concat),objectAssign=!$assign||fails$D(function(){if(DESCRIPTORS$h&&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 A={},B={},symbol=Symbol("assign detection");return A[symbol]=7,"abcdefghijklmnopqrst".split("").forEach(function(chr){B[chr]=chr}),7!==$assign({},A)[symbol]||"abcdefghijklmnopqrst"!==objectKeys$1($assign({},B)).join("")})?function assign(target,source){for(var T=toObject$a(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var key,S=IndexedObject$1(arguments[index++]),keys=getOwnPropertySymbols?concat$3(objectKeys$1(S),getOwnPropertySymbols(S)):objectKeys$1(S),length=keys.length,j=0;length>j;)key=keys[j++],DESCRIPTORS$h&&!call$j(propertyIsEnumerable,S,key)||(T[key]=S[key]);return T}:$assign,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});var globalThis$t=globalThis_1,WEBKIT$1=environmentWebkitVersion,objectPrototypeAccessorsForced=!fails$18(function(){if(!(WEBKIT$1&&WEBKIT$1<535)){var key=Math.random();__defineSetter__.call(null,key,function(){}),delete globalThis$t[key]}}),aCallable$a=aCallable$h,toObject$9=toObject$n,definePropertyModule$4=objectDefineProperty;descriptors&&_export({target:"Object",proto:!0,forced:objectPrototypeAccessorsForced},{__defineGetter__:function __defineGetter__(P,getter){definePropertyModule$4.f(toObject$9(this),P,{get:aCallable$a(getter),enumerable:!0,configurable:!0})}});var aCallable$9=aCallable$h,toObject$8=toObject$n,definePropertyModule$3=objectDefineProperty;descriptors&&_export({target:"Object",proto:!0,forced:objectPrototypeAccessorsForced},{__defineSetter__:function __defineSetter__(P,setter){definePropertyModule$3.f(toObject$8(this),P,{set:aCallable$9(setter),enumerable:!0,configurable:!0})}});var DESCRIPTORS$e=descriptors,fails$B=fails$18,uncurryThis$q=functionUncurryThis,objectGetPrototypeOf$1=objectGetPrototypeOf$2,objectKeys=objectKeys$4,toIndexedObject$5=toIndexedObject$f,propertyIsEnumerable=uncurryThis$q(objectPropertyIsEnumerable.f),push$7=uncurryThis$q([].push),IE_BUG=DESCRIPTORS$e&&fails$B(function(){var O=Object.create(null);return O[2]=2,!propertyIsEnumerable(O,2)}),createMethod$3=function(TO_ENTRIES){return function(it){for(var key,O=toIndexedObject$5(it),keys=objectKeys(O),IE_WORKAROUND=IE_BUG&&null===objectGetPrototypeOf$1(O),length=keys.length,i=0,result=[];length>i;)key=keys[i++],DESCRIPTORS$e&&!(IE_WORKAROUND?key in O:propertyIsEnumerable(O,key))||push$7(result,TO_ENTRIES?[key,O[key]]:O[key]);return result}},objectToArray={entries:createMethod$3(!0),values:createMethod$3(!1)},$entries=objectToArray.entries;_export({target:"Object",stat:!0},{entries:function entries(O){return $entries(O)}});var $$17=_export,FREEZING$4=freezing,fails$A=fails$18,isObject$j=isObject$C,onFreeze$2=internalMetadataExports.onFreeze,$freeze=Object.freeze;$$17({target:"Object",stat:!0,forced:fails$A(function(){$freeze(1)}),sham:!FREEZING$4},{freeze:function freeze(it){return $freeze&&isObject$j(it)?$freeze(onFreeze$2(it)):it}});var iterate$3=iterate$6,createProperty$1=createProperty$7;_export({target:"Object",stat:!0},{fromEntries:function fromEntries(iterable){var obj={};return iterate$3(iterable,function(k,v){createProperty$1(obj,k,v)},{AS_ENTRIES:!0}),obj}});var $$15=_export,fails$z=fails$18,toIndexedObject$4=toIndexedObject$f,nativeGetOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$d=descriptors;$$15({target:"Object",stat:!0,forced:!DESCRIPTORS$d||fails$z(function(){nativeGetOwnPropertyDescriptor$1(1)}),sham:!DESCRIPTORS$d},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(it,key){return nativeGetOwnPropertyDescriptor$1(toIndexedObject$4(it),key)}});var ownKeys$1=ownKeys$3,toIndexedObject$3=toIndexedObject$f,getOwnPropertyDescriptorModule$4=objectGetOwnPropertyDescriptor,createProperty=createProperty$7;_export({target:"Object",stat:!0,sham:!descriptors},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(object){for(var key,descriptor,O=toIndexedObject$3(object),getOwnPropertyDescriptor=getOwnPropertyDescriptorModule$4.f,keys=ownKeys$1(O),result={},index=0;keys.length>index;)void 0!==(descriptor=getOwnPropertyDescriptor(O,key=keys[index++]))&&createProperty(result,key,descriptor);return result}});var $$13=_export,fails$y=fails$18,getOwnPropertyNames$2=objectGetOwnPropertyNamesExternal.f;$$13({target:"Object",stat:!0,forced:fails$y(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:getOwnPropertyNames$2});var toObject$7=toObject$n,nativeGetPrototypeOf=objectGetPrototypeOf$2,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter;_export({target:"Object",stat:!0,forced:fails$18(function(){nativeGetPrototypeOf(1)}),sham:!CORRECT_PROTOTYPE_GETTER$1},{getPrototypeOf:function getPrototypeOf(it){return nativeGetPrototypeOf(toObject$7(it))}});var sameValue$1=Object.is||function is(x,y){return x===y?0!==x||1/x==1/y:x!=x&&y!=y};_export({target:"Object",stat:!0},{is:sameValue$1});var $isExtensible$1=objectIsExtensible;_export({target:"Object",stat:!0,forced:Object.isExtensible!==$isExtensible$1},{isExtensible:$isExtensible$1});var $$$=_export,fails$w=fails$18,isObject$i=isObject$C,classof$9=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE$1=arrayBufferNonExtensible,$isFrozen=Object.isFrozen;$$$({target:"Object",stat:!0,forced:ARRAY_BUFFER_NON_EXTENSIBLE$1||fails$w(function(){$isFrozen(1)})},{isFrozen:function isFrozen(it){return!isObject$i(it)||(!(!ARRAY_BUFFER_NON_EXTENSIBLE$1||"ArrayBuffer"!==classof$9(it))||!!$isFrozen&&$isFrozen(it))}});var $$_=_export,fails$v=fails$18,isObject$h=isObject$C,classof$8=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isSealed=Object.isSealed;$$_({target:"Object",stat:!0,forced:ARRAY_BUFFER_NON_EXTENSIBLE||fails$v(function(){$isSealed(1)})},{isSealed:function isSealed(it){return!isObject$h(it)||(!(!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!==classof$8(it))||!!$isSealed&&$isSealed(it))}});var toObject$6=toObject$n,nativeKeys=objectKeys$4;_export({target:"Object",stat:!0,forced:fails$18(function(){nativeKeys(1)})},{keys:function keys(it){return nativeKeys(toObject$6(it))}});var $$Y=_export,DESCRIPTORS$b=descriptors,FORCED$5=objectPrototypeAccessorsForced,toObject$5=toObject$n,toPropertyKey$3=toPropertyKey$7,getPrototypeOf$3=objectGetPrototypeOf$2,getOwnPropertyDescriptor$5=objectGetOwnPropertyDescriptor.f;DESCRIPTORS$b&&$$Y({target:"Object",proto:!0,forced:FORCED$5},{__lookupGetter__:function __lookupGetter__(P){var desc,O=toObject$5(this),key=toPropertyKey$3(P);do{if(desc=getOwnPropertyDescriptor$5(O,key))return desc.get}while(O=getPrototypeOf$3(O))}});var $$X=_export,DESCRIPTORS$a=descriptors,FORCED$4=objectPrototypeAccessorsForced,toObject$4=toObject$n,toPropertyKey$2=toPropertyKey$7,getPrototypeOf$2=objectGetPrototypeOf$2,getOwnPropertyDescriptor$4=objectGetOwnPropertyDescriptor.f;DESCRIPTORS$a&&$$X({target:"Object",proto:!0,forced:FORCED$4},{__lookupSetter__:function __lookupSetter__(P){var desc,O=toObject$4(this),key=toPropertyKey$2(P);do{if(desc=getOwnPropertyDescriptor$4(O,key))return desc.set}while(O=getPrototypeOf$2(O))}});var $$W=_export,isObject$g=isObject$C,onFreeze$1=internalMetadataExports.onFreeze,FREEZING$3=freezing,fails$t=fails$18,$preventExtensions=Object.preventExtensions;$$W({target:"Object",stat:!0,forced:fails$t(function(){$preventExtensions(1)}),sham:!FREEZING$3},{preventExtensions:function preventExtensions(it){return $preventExtensions&&isObject$g(it)?$preventExtensions(onFreeze$1(it)):it}});var $$V=_export,isObject$f=isObject$C,onFreeze=internalMetadataExports.onFreeze,FREEZING$2=freezing,fails$s=fails$18,$seal=Object.seal;$$V({target:"Object",stat:!0,forced:fails$s(function(){$seal(1)}),sham:!FREEZING$2},{seal:function seal(it){return $seal&&isObject$f(it)?$seal(onFreeze(it)):it}}),_export({target:"Object",stat:!0},{setPrototypeOf:objectSetPrototypeOf$1});var classof$7=classof$i,toString$e=toStringTagSupport?{}.toString:function toString(){return"[object "+classof$7(this)+"]"};toStringTagSupport||defineBuiltIn$i(Object.prototype,"toString",toString$e,{unsafe:!0});var $values=objectToArray.values;_export({target:"Object",stat:!0},{values:function values(O){return $values(O)}});var $location,defer,channel,port,globalThis$s=globalThis_1,userAgent$4=environmentUserAgent,classof$6=classofRaw$2,userAgentStartsWith=function(string){return userAgent$4.slice(0,string.length)===string},environment=userAgentStartsWith("Bun/")?"BUN":userAgentStartsWith("Cloudflare-Workers")?"CLOUDFLARE":userAgentStartsWith("Deno/")?"DENO":userAgentStartsWith("Node.js/")?"NODE":globalThis$s.Bun&&"string"==typeof Bun.version?"BUN":globalThis$s.Deno&&"object"==typeof Deno.version?"DENO":"process"===classof$6(globalThis$s.process)?"NODE":globalThis$s.window&&globalThis$s.document?"BROWSER":"REST",environmentIsNode="NODE"===environment,isConstructor=isConstructor$5,tryToString=tryToString$7,$TypeError$6=TypeError,aConstructor$3=function(argument){if(isConstructor(argument))return argument;throw new $TypeError$6(tryToString(argument)+" is not a constructor")},anObject$l=anObject$x,aConstructor$2=aConstructor$3,isNullOrUndefined$1=isNullOrUndefined$7,SPECIES$2=wellKnownSymbol$w("species"),speciesConstructor$3=function(O,defaultConstructor){var S,C=anObject$l(O).constructor;return void 0===C||isNullOrUndefined$1(S=anObject$l(C)[SPECIES$2])?defaultConstructor:aConstructor$2(S)},$TypeError$5=TypeError,validateArgumentsLength$5=function(passed,required){if(passed<required)throw new $TypeError$5("Not enough arguments");return passed},environmentIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(environmentUserAgent),globalThis$r=globalThis_1,apply$6=functionApply$1,bind$6=functionBindContext,isCallable$8=isCallable$v,hasOwn$8=hasOwnProperty_1,fails$r=fails$18,html=html$2,arraySlice$5=arraySlice$a,createElement=documentCreateElement$2,validateArgumentsLength$4=validateArgumentsLength$5,IS_IOS$1=environmentIsIos,IS_NODE$2=environmentIsNode,set$1=globalThis$r.setImmediate,clear=globalThis$r.clearImmediate,process$2=globalThis$r.process,Dispatch=globalThis$r.Dispatch,Function$2=globalThis$r.Function,MessageChannel=globalThis$r.MessageChannel,String$1=globalThis$r.String,counter=0,queue$2={};fails$r(function(){$location=globalThis$r.location});var run=function(id){if(hasOwn$8(queue$2,id)){var fn=queue$2[id];delete queue$2[id],fn()}},runner=function(id){return function(){run(id)}},eventListener=function(event){run(event.data)},globalPostMessageDefer=function(id){globalThis$r.postMessage(String$1(id),$location.protocol+"//"+$location.host)};set$1&&clear||(set$1=function setImmediate(handler){validateArgumentsLength$4(arguments.length,1);var fn=isCallable$8(handler)?handler:Function$2(handler),args=arraySlice$5(arguments,1);return queue$2[++counter]=function(){apply$6(fn,void 0,args)},defer(counter),counter},clear=function clearImmediate(id){delete queue$2[id]},IS_NODE$2?defer=function(id){process$2.nextTick(runner(id))}:Dispatch&&Dispatch.now?defer=function(id){Dispatch.now(runner(id))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$6(port.postMessage,port)):globalThis$r.addEventListener&&isCallable$8(globalThis$r.postMessage)&&!globalThis$r.importScripts&&$location&&"file:"!==$location.protocol&&!fails$r(globalPostMessageDefer)?(defer=globalPostMessageDefer,globalThis$r.addEventListener("message",eventListener,!1)):defer="onreadystatechange"in createElement("script")?function(id){html.appendChild(createElement("script")).onreadystatechange=function(){html.removeChild(this),run(id)}}:function(id){setTimeout(runner(id),0)});var task$1={set:set$1,clear:clear},globalThis$q=globalThis_1,DESCRIPTORS$9=descriptors,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,safeGetBuiltIn$2=function(name){if(!DESCRIPTORS$9)return globalThis$q[name];var descriptor=getOwnPropertyDescriptor$3(globalThis$q,name);return descriptor&&descriptor.value},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(item){var entry={item:item,next:null},tail=this.tail;tail?tail.next=entry:this.head=entry,this.tail=entry},get:function(){var entry=this.head;if(entry)return null===(this.head=entry.next)&&(this.tail=null),entry.item}};var notify$1,toggle,node,promise,then,queue$1=Queue$2,environmentIsIosPebble=/ipad|iphone|ipod/i.test(environmentUserAgent)&&"undefined"!=typeof Pebble,environmentIsWebosWebkit=/web0s(?!.*chrome)/i.test(environmentUserAgent),globalThis$p=globalThis_1,safeGetBuiltIn$1=safeGetBuiltIn$2,bind$5=functionBindContext,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=environmentIsIos,IS_IOS_PEBBLE=environmentIsIosPebble,IS_WEBOS_WEBKIT=environmentIsWebosWebkit,IS_NODE$1=environmentIsNode,MutationObserver=globalThis$p.MutationObserver||globalThis$p.WebKitMutationObserver,document$2=globalThis$p.document,process$1=globalThis$p.process,Promise$1=globalThis$p.Promise,microtask$2=safeGetBuiltIn$1("queueMicrotask");if(!microtask$2){var queue=new Queue$1,flush=function(){var parent,fn;for(IS_NODE$1&&(parent=process$1.domain)&&parent.exit();fn=queue.get();)try{fn()}catch(error){throw queue.head&¬ify$1(),error}parent&&parent.enter()};IS_IOS||IS_NODE$1||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$5(promise.then,promise),notify$1=function(){then(flush)}):IS_NODE$1?notify$1=function(){process$1.nextTick(flush)}:(macrotask=bind$5(macrotask,globalThis$p),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$2=function(fn){queue.head||notify$1(),queue.add(fn)}}var microtask_1=microtask$2,perform$3=function(exec){try{return{error:!1,value:exec()}}catch(error){return{error:!0,value:error}}},promiseNativeConstructor=globalThis_1.Promise,globalThis$n=globalThis_1,NativePromiseConstructor$4=promiseNativeConstructor,isCallable$7=isCallable$v,isForced$1=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$9=wellKnownSymbol$w,ENVIRONMENT$1=environment,V8_VERSION=environmentV8Version;NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype;var SPECIES$1=wellKnownSymbol$9("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$7(globalThis$n.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced$1("Promise",function(){var PROMISE_CONSTRUCTOR_SOURCE=inspectSource(NativePromiseConstructor$4),GLOBAL_CORE_JS_PROMISE=PROMISE_CONSTRUCTOR_SOURCE!==String(NativePromiseConstructor$4);if(!GLOBAL_CORE_JS_PROMISE&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)){var promise=new NativePromiseConstructor$4(function(resolve){resolve(1)}),FakePromise=function(exec){exec(function(){},function(){})};if((promise.constructor={})[SPECIES$1]=FakePromise,!(SUBCLASSING=promise.then(function(){})instanceof FakePromise))return!0}return!(GLOBAL_CORE_JS_PROMISE||"BROWSER"!==ENVIRONMENT$1&&"DENO"!==ENVIRONMENT$1||NATIVE_PROMISE_REJECTION_EVENT$1)}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$8=aCallable$h,$TypeError$4=TypeError,PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw new $TypeError$4("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aCallable$8(resolve),this.reject=aCallable$8(reject)};newPromiseCapability$2.f=function(C){return new PromiseCapability(C)};var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,$$S=_export,IS_NODE=environmentIsNode,globalThis$m=globalThis_1,path=path$3,call$i=functionCall,defineBuiltIn$7=defineBuiltIn$i,setPrototypeOf$1=objectSetPrototypeOf$1,setToStringTag$3=setToStringTag$c,setSpecies$2=setSpecies$6,aCallable$7=aCallable$h,isCallable$6=isCallable$v,isObject$e=isObject$C,anInstance$4=anInstance$8,speciesConstructor$2=speciesConstructor$3,task=task$1.set,microtask$1=microtask_1,hostReportErrors=function(a,b){try{1===arguments.length?console.error(a):console.error(a,b)}catch(error){}},perform$2=perform$3,Queue=queue$1,InternalStateModule$5=internalState,NativePromiseConstructor$3=promiseNativeConstructor,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$4=promiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=promiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=promiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$5.getterFor("Promise"),setInternalState$5=InternalStateModule$5.set,NativePromisePrototype$2=NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,PromiseConstructor=NativePromiseConstructor$3,PromisePrototype=NativePromisePrototype$2,TypeError$3=globalThis$m.TypeError,document$1=globalThis$m.document,process=globalThis$m.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&globalThis$m.dispatchEvent),isThenable=function(it){var then;return!(!isObject$e(it)||!isCallable$6(then=it.then))&&then},callReaction=function(reaction,state){var result,then,exited,value=state.value,ok=1===state.state,handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject,domain=reaction.domain;try{handler?(ok||(2===state.rejection&&onHandleUnhandled(state),state.rejection=1),!0===handler?result=value:(domain&&domain.enter(),result=handler(value),domain&&(domain.exit(),exited=!0)),result===reaction.promise?reject(new TypeError$3("Promise-chain cycle")):(then=isThenable(result))?call$i(then,result,resolve,reject):resolve(result)):reject(value)}catch(error){domain&&!exited&&domain.exit(),reject(error)}},notify=function(state,isReject){state.notified||(state.notified=!0,microtask$1(function(){for(var reaction,reactions=state.reactions;reaction=reactions.get();)callReaction(reaction,state);state.notified=!1,isReject&&!state.rejection&&onUnhandled(state)}))},dispatchEvent=function(name,promise,reason){var event,handler;DISPATCH_EVENT?((event=document$1.createEvent("Event")).promise=promise,event.reason=reason,event.initEvent(name,!1,!0),globalThis$m.dispatchEvent(event)):event={promise:promise,reason:reason},!NATIVE_PROMISE_REJECTION_EVENT&&(handler=globalThis$m["on"+name])?handler(event):"unhandledrejection"===name&&hostReportErrors("Unhandled promise rejection",reason)},onUnhandled=function(state){call$i(task,globalThis$m,function(){var result,promise=state.facade,value=state.value;if(isUnhandled(state)&&(result=perform$2(function(){IS_NODE?process.emit("unhandledRejection",value,promise):dispatchEvent("unhandledrejection",promise,value)}),state.rejection=IS_NODE||isUnhandled(state)?2:1,result.error))throw result.value})},isUnhandled=function(state){return 1!==state.rejection&&!state.parent},onHandleUnhandled=function(state){call$i(task,globalThis$m,function(){var promise=state.facade;IS_NODE?process.emit("rejectionHandled",promise):dispatchEvent("rejectionhandled",promise,state.value)})},bind$4=function(fn,state,unwrap){return function(value){fn(state,value,unwrap)}},internalReject=function(state,value,unwrap){state.done||(state.done=!0,unwrap&&(state=unwrap),state.value=value,state.state=2,notify(state,!0))},internalResolve=function(state,value,unwrap){if(!state.done){state.done=!0,unwrap&&(state=unwrap);try{if(state.facade===value)throw new TypeError$3("Promise can't be resolved itself");var then=isThenable(value);then?microtask$1(function(){var wrapper={done:!1};try{call$i(then,value,bind$4(internalResolve,wrapper,state),bind$4(internalReject,wrapper,state))}catch(error){internalReject(wrapper,error,state)}}):(state.value=value,state.state=1,notify(state,!1))}catch(error){internalReject({done:!1},error,state)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function Promise(executor){anInstance$4(this,PromisePrototype),aCallable$7(executor),call$i(Internal,this);var state=getInternalPromiseState(this);try{executor(bind$4(internalResolve,state),bind$4(internalReject,state))}catch(error){internalReject(state,error)}}).prototype,(Internal=function Promise(executor){setInternalState$5(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:0,value:null})}).prototype=defineBuiltIn$7(PromisePrototype,"then",function then(onFulfilled,onRejected){var state=getInternalPromiseState(this),reaction=newPromiseCapability$1(speciesConstructor$2(this,PromiseConstructor));return state.parent=!0,reaction.ok=!isCallable$6(onFulfilled)||onFulfilled,reaction.fail=isCallable$6(onRejected)&&onRejected,reaction.domain=IS_NODE?process.domain:void 0,0===state.state?state.reactions.add(reaction):microtask$1(function(){callReaction(reaction,state)}),reaction.promise}),OwnPromiseCapability=function(){var promise=new Internal,state=getInternalPromiseState(promise);this.promise=promise,this.resolve=bind$4(internalResolve,state),this.reject=bind$4(internalReject,state)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(C){return C===PromiseConstructor||C===PromiseWrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)},isCallable$6(NativePromiseConstructor$3)&&NativePromisePrototype$2!==Object.prototype)){nativeThen=NativePromisePrototype$2.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$7(NativePromisePrototype$2,"then",function then(onFulfilled,onRejected){var that=this;return new PromiseConstructor(function(resolve,reject){call$i(nativeThen,that,resolve,reject)}).then(onFulfilled,onRejected)},{unsafe:!0});try{delete NativePromisePrototype$2.constructor}catch(error){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$2,PromisePrototype)}$$S({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),PromiseWrapper=path.Promise,setToStringTag$3(PromiseConstructor,"Promise",!1),setSpecies$2("Promise");var NativePromiseConstructor$2=promiseNativeConstructor,promiseStaticsIncorrectIteration=promiseConstructorDetection.CONSTRUCTOR||!checkCorrectnessOfIteration$4(function(iterable){NativePromiseConstructor$2.all(iterable).then(void 0,function(){})}),call$h=functionCall,aCallable$6=aCallable$h,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$2=iterate$6;_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function all(iterable){var C=this,capability=newPromiseCapabilityModule$2.f(C),resolve=capability.resolve,reject=capability.reject,result=perform$1(function(){var $promiseResolve=aCallable$6(C.resolve),values=[],counter=0,remaining=1;iterate$2(iterable,function(promise){var index=counter++,alreadyCalled=!1;remaining++,call$h($promiseResolve,C,promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[index]=value,--remaining||resolve(values))},reject)}),--remaining||resolve(values)});return result.error&&reject(result.value),capability.promise}});var $$Q=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$1=promiseNativeConstructor,getBuiltIn$5=getBuiltIn$f,isCallable$5=isCallable$v,defineBuiltIn$6=defineBuiltIn$i,NativePromisePrototype$1=NativePromiseConstructor$1&&NativePromiseConstructor$1.prototype;if($$Q({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(onRejected){return this.then(void 0,onRejected)}}),isCallable$5(NativePromiseConstructor$1)){var method$1=getBuiltIn$5("Promise").prototype.catch;NativePromisePrototype$1.catch!==method$1&&defineBuiltIn$6(NativePromisePrototype$1,"catch",method$1,{unsafe:!0})}var call$g=functionCall,aCallable$5=aCallable$h,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate$1=iterate$6;_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function race(iterable){var C=this,capability=newPromiseCapabilityModule$1.f(C),reject=capability.reject,result=perform(function(){var $promiseResolve=aCallable$5(C.resolve);iterate$1(iterable,function(promise){call$g($promiseResolve,C,promise).then(capability.resolve,reject)})});return result.error&&reject(result.value),capability.promise}});var newPromiseCapabilityModule=newPromiseCapability$2;_export({target:"Promise",stat:!0,forced:promiseConstructorDetection.CONSTRUCTOR},{reject:function reject(r){var capability=newPromiseCapabilityModule.f(this);return(0,capability.reject)(r),capability.promise}});var anObject$k=anObject$x,isObject$d=isObject$C,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(C,x){if(anObject$k(C),isObject$d(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);return(0,promiseCapability.resolve)(x),promiseCapability.promise},$$N=_export,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2;getBuiltIn$f("Promise"),$$N({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function resolve(x){return promiseResolve$1(this,x)}});var $$M=_export,NativePromiseConstructor=promiseNativeConstructor,fails$q=fails$18,getBuiltIn$3=getBuiltIn$f,isCallable$4=isCallable$v,speciesConstructor$1=speciesConstructor$3,promiseResolve=promiseResolve$2,defineBuiltIn$5=defineBuiltIn$i,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype;if($$M({target:"Promise",proto:!0,real:!0,forced:!!NativePromiseConstructor&&fails$q(function(){NativePromisePrototype.finally.call({then:function(){}},function(){})})},{finally:function(onFinally){var C=speciesConstructor$1(this,getBuiltIn$3("Promise")),isFunction=isCallable$4(onFinally);return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e})}:onFinally)}}),isCallable$4(NativePromiseConstructor)){var method=getBuiltIn$3("Promise").prototype.finally;NativePromisePrototype.finally!==method&&defineBuiltIn$5(NativePromisePrototype,"finally",method,{unsafe:!0})}var functionApply=functionApply$1,aCallable$4=aCallable$h,anObject$j=anObject$x;_export({target:"Reflect",stat:!0,forced:!fails$18(function(){Reflect.apply(function(){})})},{apply:function apply(target,thisArgument,argumentsList){return functionApply(aCallable$4(target),thisArgument,anObject$j(argumentsList))}});var uncurryThis$p=functionUncurryThis,aCallable$3=aCallable$h,isObject$c=isObject$C,hasOwn$7=hasOwnProperty_1,arraySlice$4=arraySlice$a,NATIVE_BIND=functionBindNative,$Function=Function,concat$2=uncurryThis$p([].concat),join$6=uncurryThis$p([].join),factories={},functionBind=NATIVE_BIND?$Function.bind:function bind(that){var F=aCallable$3(this),Prototype=F.prototype,partArgs=arraySlice$4(arguments,1),boundFunction=function bound(){var args=concat$2(partArgs,arraySlice$4(arguments));return this instanceof boundFunction?function(C,argsLength,args){if(!hasOwn$7(factories,argsLength)){for(var list=[],i=0;i<argsLength;i++)list[i]="a["+i+"]";factories[argsLength]=$Function("C,a","return new C("+join$6(list,",")+")")}return factories[argsLength](C,args)}(F,args.length,args):F.apply(that,args)};return isObject$c(Prototype)&&(boundFunction.prototype=Prototype),boundFunction},$$K=_export,apply$5=functionApply$1,bind$3=functionBind,aConstructor$1=aConstructor$3,anObject$i=anObject$x,isObject$b=isObject$C,create$4=objectCreate,fails$o=fails$18,nativeConstruct=getBuiltIn$f("Reflect","construct"),ObjectPrototype=Object.prototype,push$6=[].push,NEW_TARGET_BUG=fails$o(function(){function F(){}return!(nativeConstruct(function(){},[],F)instanceof F)}),ARGS_BUG=!fails$o(function(){nativeConstruct(function(){})}),FORCED$3=NEW_TARGET_BUG||ARGS_BUG;$$K({target:"Reflect",stat:!0,forced:FORCED$3,sham:FORCED$3},{construct:function construct(Target,args){aConstructor$1(Target),anObject$i(args);var newTarget=arguments.length<3?Target:aConstructor$1(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(Target,args,newTarget);if(Target===newTarget){switch(args.length){case 0:return new Target;case 1:return new Target(args[0]);case 2:return new Target(args[0],args[1]);case 3:return new Target(args[0],args[1],args[2]);case 4:return new Target(args[0],args[1],args[2],args[3])}var $args=[null];return apply$5(push$6,$args,args),new(apply$5(bind$3,Target,$args))}var proto=newTarget.prototype,instance=create$4(isObject$b(proto)?proto:ObjectPrototype),result=apply$5(Target,instance,args);return isObject$b(result)?result:instance}});var DESCRIPTORS$8=descriptors,anObject$h=anObject$x,toPropertyKey$1=toPropertyKey$7,definePropertyModule$2=objectDefineProperty;_export({target:"Reflect",stat:!0,forced:fails$18(function(){Reflect.defineProperty(definePropertyModule$2.f({},1,{value:1}),1,{value:2})}),sham:!DESCRIPTORS$8},{defineProperty:function defineProperty(target,propertyKey,attributes){anObject$h(target);var key=toPropertyKey$1(propertyKey);anObject$h(attributes);try{return definePropertyModule$2.f(target,key,attributes),!0}catch(error){return!1}}});var $$I=_export,anObject$g=anObject$x,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f;$$I({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(target,propertyKey){var descriptor=getOwnPropertyDescriptor$2(anObject$g(target),propertyKey);return!(descriptor&&!descriptor.configurable)&&delete target[propertyKey]}});var hasOwn$6=hasOwnProperty_1,isDataDescriptor$2=function(descriptor){return void 0!==descriptor&&(hasOwn$6(descriptor,"value")||hasOwn$6(descriptor,"writable"))},call$f=functionCall,isObject$a=isObject$C,anObject$f=anObject$x,isDataDescriptor$1=isDataDescriptor$2,getOwnPropertyDescriptorModule$3=objectGetOwnPropertyDescriptor,getPrototypeOf$1=objectGetPrototypeOf$2;_export({target:"Reflect",stat:!0},{get:function get(target,propertyKey){var descriptor,prototype,receiver=arguments.length<3?target:arguments[2];return anObject$f(target)===receiver?target[propertyKey]:(descriptor=getOwnPropertyDescriptorModule$3.f(target,propertyKey))?isDataDescriptor$1(descriptor)?descriptor.value:void 0===descriptor.get?void 0:call$f(descriptor.get,receiver):isObject$a(prototype=getPrototypeOf$1(target))?get(prototype,propertyKey,receiver):void 0}});var anObject$e=anObject$x,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor;_export({target:"Reflect",stat:!0,sham:!descriptors},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(target,propertyKey){return getOwnPropertyDescriptorModule$2.f(anObject$e(target),propertyKey)}});var anObject$d=anObject$x,objectGetPrototypeOf=objectGetPrototypeOf$2;_export({target:"Reflect",stat:!0,sham:!correctPrototypeGetter},{getPrototypeOf:function getPrototypeOf(target){return objectGetPrototypeOf(anObject$d(target))}}),_export({target:"Reflect",stat:!0},{has:function has(target,propertyKey){return propertyKey in target}});var anObject$c=anObject$x,$isExtensible=objectIsExtensible;_export({target:"Reflect",stat:!0},{isExtensible:function isExtensible(target){return anObject$c(target),$isExtensible(target)}}),_export({target:"Reflect",stat:!0},{ownKeys:ownKeys$3});var getBuiltIn$1=getBuiltIn$f,anObject$b=anObject$x;_export({target:"Reflect",stat:!0,sham:!freezing},{preventExtensions:function preventExtensions(target){anObject$b(target);try{var objectPreventExtensions=getBuiltIn$1("Object","preventExtensions");return objectPreventExtensions&&objectPreventExtensions(target),!0}catch(error){return!1}}});var $$A=_export,call$e=functionCall,anObject$a=anObject$x,isObject$9=isObject$C,isDataDescriptor=isDataDescriptor$2,definePropertyModule$1=objectDefineProperty,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,getPrototypeOf=objectGetPrototypeOf$2,createPropertyDescriptor$2=createPropertyDescriptor$8;var MS_EDGE_BUG=fails$18(function(){var Constructor=function(){},object=definePropertyModule$1.f(new Constructor,"a",{configurable:!0});return!1!==Reflect.set(Constructor.prototype,"a",1,object)});$$A({target:"Reflect",stat:!0,forced:MS_EDGE_BUG},{set:function set(target,propertyKey,V){var existingDescriptor,prototype,setter,receiver=arguments.length<4?target:arguments[3],ownDescriptor=getOwnPropertyDescriptorModule$1.f(anObject$a(target),propertyKey);if(!ownDescriptor){if(isObject$9(prototype=getPrototypeOf(target)))return set(prototype,propertyKey,V,receiver);ownDescriptor=createPropertyDescriptor$2(0)}if(isDataDescriptor(ownDescriptor)){if(!1===ownDescriptor.writable||!isObject$9(receiver))return!1;if(existingDescriptor=getOwnPropertyDescriptorModule$1.f(receiver,propertyKey)){if(existingDescriptor.get||existingDescriptor.set||!1===existingDescriptor.writable)return!1;existingDescriptor.value=V,definePropertyModule$1.f(receiver,propertyKey,existingDescriptor)}else definePropertyModule$1.f(receiver,propertyKey,createPropertyDescriptor$2(0,V))}else{if(void 0===(setter=ownDescriptor.set))return!1;call$e(setter,receiver,V)}return!0}});var anObject$9=anObject$x,aPossiblePrototype=aPossiblePrototype$2,objectSetPrototypeOf=objectSetPrototypeOf$1;objectSetPrototypeOf&&_export({target:"Reflect",stat:!0},{setPrototypeOf:function setPrototypeOf(target,proto){anObject$9(target),aPossiblePrototype(proto);try{return objectSetPrototypeOf(target,proto),!0}catch(error){return!1}}});var isObject$8=isObject$C,classof$5=classofRaw$2,MATCH$2=wellKnownSymbol$w("match"),isRegexp=function(it){var isRegExp;return isObject$8(it)&&(void 0!==(isRegExp=it[MATCH$2])?!!isRegExp:"RegExp"===classof$5(it))},fails$l=fails$18,RegExp$1=globalThis_1.RegExp,FLAGS_GETTER_IS_CORRECT=!fails$l(function(){var INDICES_SUPPORT=!0;try{RegExp$1(".","d")}catch(error){INDICES_SUPPORT=!1}var O={},calls="",expected=INDICES_SUPPORT?"dgimsy":"gimsy",addGetter=function(key,chr){Object.defineProperty(O,key,{get:function(){return calls+=chr,!0}})},pairs={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var key in INDICES_SUPPORT&&(pairs.hasIndices="d"),pairs)addGetter(key,pairs[key]);return Object.getOwnPropertyDescriptor(RegExp$1.prototype,"flags").get.call(O)!==expected||calls!==expected}),regexpFlagsDetection={correct:FLAGS_GETTER_IS_CORRECT},anObject$8=anObject$x,regexpFlags$1=function(){var that=anObject$8(this),result="";return that.hasIndices&&(result+="d"),that.global&&(result+="g"),that.ignoreCase&&(result+="i"),that.multiline&&(result+="m"),that.dotAll&&(result+="s"),that.unicode&&(result+="u"),that.unicodeSets&&(result+="v"),that.sticky&&(result+="y"),result},call$d=functionCall,hasOwn$5=hasOwnProperty_1,isPrototypeOf$2=objectIsPrototypeOf,regExpFlagsDetection$1=regexpFlagsDetection,regExpFlagsGetterImplementation$1=regexpFlags$1,RegExpPrototype$3=RegExp.prototype,regexpGetFlags=regExpFlagsDetection$1.correct?function(it){return it.flags}:function(it){return regExpFlagsDetection$1.correct||!isPrototypeOf$2(RegExpPrototype$3,it)||hasOwn$5(it,"flags")?it.flags:call$d(regExpFlagsGetterImplementation$1,it)},fails$k=fails$18,$RegExp$2=globalThis_1.RegExp,UNSUPPORTED_Y$3=fails$k(function(){var re=$RegExp$2("a","y");return re.lastIndex=2,null!==re.exec("abcd")}),MISSED_STICKY$1=UNSUPPORTED_Y$3||fails$k(function(){return!$RegExp$2("a","y").sticky}),regexpStickyHelpers={BROKEN_CARET:UNSUPPORTED_Y$3||fails$k(function(){var re=$RegExp$2("^r","gy");return re.lastIndex=2,null!==re.exec("str")}),MISSED_STICKY:MISSED_STICKY$1,UNSUPPORTED_Y:UNSUPPORTED_Y$3},defineProperty=objectDefineProperty.f,fails$j=fails$18,$RegExp$1=globalThis_1.RegExp,regexpUnsupportedDotAll=fails$j(function(){var re=$RegExp$1(".","s");return!(re.dotAll&&re.test("\n")&&"s"===re.flags)}),fails$i=fails$18,$RegExp=globalThis_1.RegExp,regexpUnsupportedNcg=fails$i(function(){var re=$RegExp("(?<a>b)","g");return"b"!==re.exec("b").groups.a||"bc"!=="b".replace(re,"$<a>c")}),DESCRIPTORS$6=descriptors,globalThis$h=globalThis_1,uncurryThis$o=functionUncurryThis,isForced=isForced_1,inheritIfRequired$1=inheritIfRequired$5,createNonEnumerableProperty$4=createNonEnumerableProperty$a,create$3=objectCreate,getOwnPropertyNames$1=objectGetOwnPropertyNames.f,isPrototypeOf$1=objectIsPrototypeOf,isRegExp$1=isRegexp,toString$d=toString$n,getRegExpFlags$3=regexpGetFlags,stickyHelpers$2=regexpStickyHelpers,proxyAccessor=function(Target,Source,key){key in Target||defineProperty(Target,key,{configurable:!0,get:function(){return Source[key]},set:function(it){Source[key]=it}})},defineBuiltIn$4=defineBuiltIn$i,fails$h=fails$18,hasOwn$4=hasOwnProperty_1,enforceInternalState$2=internalState.enforce,setSpecies$1=setSpecies$6,UNSUPPORTED_DOT_ALL$1=regexpUnsupportedDotAll,UNSUPPORTED_NCG$1=regexpUnsupportedNcg,MATCH$1=wellKnownSymbol$w("match"),NativeRegExp=globalThis$h.RegExp,RegExpPrototype$2=NativeRegExp.prototype,SyntaxError=globalThis$h.SyntaxError,exec$4=uncurryThis$o(RegExpPrototype$2.exec),charAt$7=uncurryThis$o("".charAt),replace$6=uncurryThis$o("".replace),stringIndexOf$3=uncurryThis$o("".indexOf),stringSlice$9=uncurryThis$o("".slice),IS_NCG=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,re1=/a/g,re2=/a/g,CORRECT_NEW=new NativeRegExp(re1)!==re1,MISSED_STICKY=stickyHelpers$2.MISSED_STICKY,UNSUPPORTED_Y$2=stickyHelpers$2.UNSUPPORTED_Y,BASE_FORCED=DESCRIPTORS$6&&(!CORRECT_NEW||MISSED_STICKY||UNSUPPORTED_DOT_ALL$1||UNSUPPORTED_NCG$1||fails$h(function(){return re2[MATCH$1]=!1,NativeRegExp(re1)!==re1||NativeRegExp(re2)===re2||"/a/i"!==String(NativeRegExp(re1,"i"))}));if(isForced("RegExp",BASE_FORCED)){for(var RegExpWrapper=function RegExp(pattern,flags){var rawFlags,dotAll,sticky,handled,result,state,thisIsRegExp=isPrototypeOf$1(RegExpPrototype$2,this),patternIsRegExp=isRegExp$1(pattern),flagsAreUndefined=void 0===flags,groups=[],rawPattern=pattern;if(!thisIsRegExp&&patternIsRegExp&&flagsAreUndefined&&pattern.constructor===RegExpWrapper)return pattern;if((patternIsRegExp||isPrototypeOf$1(RegExpPrototype$2,pattern))&&(pattern=pattern.source,flagsAreUndefined&&(flags=getRegExpFlags$3(rawPattern))),pattern=void 0===pattern?"":toString$d(pattern),flags=void 0===flags?"":toString$d(flags),rawPattern=pattern,UNSUPPORTED_DOT_ALL$1&&"dotAll"in re1&&(dotAll=!!flags&&stringIndexOf$3(flags,"s")>-1)&&(flags=replace$6(flags,/s/g,"")),rawFlags=flags,MISSED_STICKY&&"sticky"in re1&&(sticky=!!flags&&stringIndexOf$3(flags,"y")>-1)&&UNSUPPORTED_Y$2&&(flags=replace$6(flags,/y/g,"")),UNSUPPORTED_NCG$1&&(handled=function(string){for(var chr,length=string.length,index=0,result="",named=[],names=create$3(null),brackets=!1,ncg=!1,groupid=0,groupname="";index<=length;index++){if("\\"===(chr=charAt$7(string,index)))chr+=charAt$7(string,++index);else if("]"===chr)brackets=!1;else if(!brackets)switch(!0){case"["===chr:brackets=!0;break;case"("===chr:if(result+=chr,"?:"===stringSlice$9(string,index+1,index+3))continue;exec$4(IS_NCG,stringSlice$9(string,index+1))&&(index+=2,ncg=!0),groupid++;continue;case">"===chr&&ncg:if(""===groupname||hasOwn$4(names,groupname))throw new SyntaxError("Invalid capture group name");names[groupname]=!0,named[named.length]=[groupname,groupid],ncg=!1,groupname="";continue}ncg?groupname+=chr:result+=chr}return[result,named]}(pattern),pattern=handled[0],groups=handled[1]),result=inheritIfRequired$1(NativeRegExp(pattern,flags),thisIsRegExp?this:RegExpPrototype$2,RegExpWrapper),(dotAll||sticky||groups.length)&&(state=enforceInternalState$2(result),dotAll&&(state.dotAll=!0,state.raw=RegExpWrapper(function(string){for(var chr,length=string.length,index=0,result="",brackets=!1;index<=length;index++)"\\"!==(chr=charAt$7(string,index))?brackets||"."!==chr?("["===chr?brackets=!0:"]"===chr&&(brackets=!1),result+=chr):result+="[\\s\\S]":result+=chr+charAt$7(string,++index);return result}(pattern),rawFlags)),sticky&&(state.sticky=!0),groups.length&&(state.groups=groups)),pattern!==rawPattern)try{createNonEnumerableProperty$4(result,"source",""===rawPattern?"(?:)":rawPattern)}catch(error){}return result},keys=getOwnPropertyNames$1(NativeRegExp),index=0;keys.length>index;)proxyAccessor(RegExpWrapper,NativeRegExp,keys[index++]);RegExpPrototype$2.constructor=RegExpWrapper,RegExpWrapper.prototype=RegExpPrototype$2,defineBuiltIn$4(globalThis$h,"RegExp",RegExpWrapper,{constructor:!0})}setSpecies$1("RegExp");var call$c=functionCall,uncurryThis$n=functionUncurryThis,toString$c=toString$n,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,create$2=objectCreate,getInternalState$2=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared$7("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$6=uncurryThis$n("".charAt),indexOf=uncurryThis$n("".indexOf),replace$5=uncurryThis$n("".replace),stringSlice$8=uncurryThis$n("".slice),UPDATES_LAST_INDEX_WRONG=function(){var re1=/a/,re2=/b*/g;return call$c(nativeExec,re1,"a"),call$c(nativeExec,re2,"a"),0!==re1.lastIndex||0!==re2.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1];(UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG)&&(patchedExec=function exec(string){var result,reCopy,lastIndex,match,i,object,group,re=this,state=getInternalState$2(re),str=toString$c(string),raw=state.raw;if(raw)return raw.lastIndex=re.lastIndex,result=call$c(patchedExec,raw,str),re.lastIndex=raw.lastIndex,result;var groups=state.groups,sticky=UNSUPPORTED_Y$1&&re.sticky,flags=call$c(regexpFlags,re),source=re.source,charsAdded=0,strCopy=str;if(sticky&&(flags=replace$5(flags,"y",""),-1===indexOf(flags,"g")&&(flags+="g"),strCopy=stringSlice$8(str,re.lastIndex),re.lastIndex>0&&(!re.multiline||re.multiline&&"\n"!==charAt$6(str,re.lastIndex-1))&&(source="(?: "+source+")",strCopy=" "+strCopy,charsAdded++),reCopy=new RegExp("^(?:"+source+")",flags)),NPCG_INCLUDED&&(reCopy=new RegExp("^"+source+"$(?!\\s)",flags)),UPDATES_LAST_INDEX_WRONG&&(lastIndex=re.lastIndex),match=call$c(nativeExec,sticky?reCopy:re,strCopy),sticky?match?(match.input=stringSlice$8(match.input,charsAdded),match[0]=stringSlice$8(match[0],charsAdded),match.index=re.lastIndex,re.lastIndex+=match[0].length):re.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&match&&(re.lastIndex=re.global?match.index+match[0].length:lastIndex),NPCG_INCLUDED&&match&&match.length>1&&call$c(nativeReplace,match[0],reCopy,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(match[i]=void 0)}),match&&groups)for(match.groups=object=create$2(null),i=0;i<groups.length;i++)object[(group=groups[i])[0]]=match[group[1]];return match});var regexpExec$2=patchedExec;_export({target:"RegExp",proto:!0,forced:/./.exec!==regexpExec$2},{exec:regexpExec$2});var defineBuiltInAccessor$3=defineBuiltInAccessor$b,regExpFlagsDetection=regexpFlagsDetection,regExpFlagsGetterImplementation=regexpFlags$1;descriptors&&!regExpFlagsDetection.correct&&(defineBuiltInAccessor$3(RegExp.prototype,"flags",{configurable:!0,get:regExpFlagsGetterImplementation}),regExpFlagsDetection.correct=!0);var PROPER_FUNCTION_NAME$1=functionName.PROPER,defineBuiltIn$3=defineBuiltIn$i,anObject$7=anObject$x,$toString$2=toString$n,fails$g=fails$18,getRegExpFlags$2=regexpGetFlags,RegExpPrototype$1=RegExp.prototype,nativeToString=RegExpPrototype$1.toString,NOT_GENERIC=fails$g(function(){return"/a/b"!==nativeToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$1&&"toString"!==nativeToString.name;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$3(RegExpPrototype$1,"toString",function toString(){var R=anObject$7(this);return"/"+$toString$2(R.source)+"/"+$toString$2(getRegExpFlags$2(R))},{unsafe:!0}),collection$4("Set",function(init){return function Set(){return init(this,arguments.length?arguments[0]:void 0)}},collectionStrong$2);var uncurryThis$m=functionUncurryThis,toIntegerOrInfinity$3=toIntegerOrInfinity$c,toString$b=toString$n,requireObjectCoercible$9=requireObjectCoercible$f,charAt$5=uncurryThis$m("".charAt),charCodeAt$1=uncurryThis$m("".charCodeAt),stringSlice$7=uncurryThis$m("".slice),createMethod$2=function(CONVERT_TO_STRING){return function($this,pos){var first,second,S=toString$b(requireObjectCoercible$9($this)),position=toIntegerOrInfinity$3(pos),size=S.length;return position<0||position>=size?CONVERT_TO_STRING?"":void 0:(first=charCodeAt$1(S,position))<55296||first>56319||position+1===size||(second=charCodeAt$1(S,position+1))<56320||second>57343?CONVERT_TO_STRING?charAt$5(S,position):first:CONVERT_TO_STRING?stringSlice$7(S,position,position+2):second-56320+(first-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},codeAt$1=stringMultibyte.codeAt;_export({target:"String",proto:!0},{codePointAt:function codePointAt(pos){return codeAt$1(this,pos)}});var descriptor,isRegExp=isRegexp,$TypeError$3=TypeError,notARegexp=function(it){if(isRegExp(it))throw new $TypeError$3("The method doesn't accept regular expressions");return it},MATCH=wellKnownSymbol$w("match"),correctIsRegexpLogic=function(METHOD_NAME){var regexp=/./;try{"/./"[METHOD_NAME](regexp)}catch(error1){try{return regexp[MATCH]=!1,"/./"[METHOD_NAME](regexp)}catch(error2){}}return!1},$$w=_export,uncurryThis$l=functionUncurryThisClause,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,toLength$7=toLength$c,toString$a=toString$n,notARegExp$2=notARegexp,requireObjectCoercible$8=requireObjectCoercible$f,correctIsRegExpLogic$2=correctIsRegexpLogic,slice$1=uncurryThis$l("".slice),min$4=Math.min,CORRECT_IS_REGEXP_LOGIC$1=correctIsRegExpLogic$2("endsWith");$$w({target:"String",proto:!0,forced:!!(CORRECT_IS_REGEXP_LOGIC$1||(descriptor=getOwnPropertyDescriptor$1(String.prototype,"endsWith"),!descriptor||descriptor.writable))&&!CORRECT_IS_REGEXP_LOGIC$1},{endsWith:function endsWith(searchString){var that=toString$a(requireObjectCoercible$8(this));notARegExp$2(searchString);var endPosition=arguments.length>1?arguments[1]:void 0,len=that.length,end=void 0===endPosition?len:min$4(toLength$7(endPosition),len),search=toString$a(searchString);return slice$1(that,end-search.length,end)===search}});var $$v=_export,uncurryThis$k=functionUncurryThis,toAbsoluteIndex$1=toAbsoluteIndex$8,$RangeError$3=RangeError,fromCharCode$2=String.fromCharCode,$fromCodePoint=String.fromCodePoint,join$5=uncurryThis$k([].join);$$v({target:"String",stat:!0,arity:1,forced:!!$fromCodePoint&&1!==$fromCodePoint.length},{fromCodePoint:function fromCodePoint(x){for(var code,elements=[],length=arguments.length,i=0;length>i;){if(code=+arguments[i++],toAbsoluteIndex$1(code,1114111)!==code)throw new $RangeError$3(code+" is not a valid code point");elements[i]=code<65536?fromCharCode$2(code):fromCharCode$2(55296+((code-=65536)>>10),code%1024+56320)}return join$5(elements,"")}});var $$u=_export,notARegExp$1=notARegexp,requireObjectCoercible$7=requireObjectCoercible$f,toString$9=toString$n,correctIsRegExpLogic$1=correctIsRegexpLogic,stringIndexOf$2=functionUncurryThis("".indexOf);$$u({target:"String",proto:!0,forced:!correctIsRegExpLogic$1("includes")},{includes:function includes(searchString){return!!~stringIndexOf$2(toString$9(requireObjectCoercible$7(this)),toString$9(notARegExp$1(searchString)),arguments.length>1?arguments[1]:void 0)}});var charAt$4=stringMultibyte.charAt,toString$8=toString$n,InternalStateModule$4=internalState,defineIterator=iteratorDefine,createIterResultObject$1=createIterResultObject$4,setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor("String Iterator");defineIterator(String,"String",function(iterated){setInternalState$4(this,{type:"String Iterator",string:toString$8(iterated),index:0})},function next(){var point,state=getInternalState$1(this),string=state.string,index=state.index;return index>=string.length?createIterResultObject$1(void 0,!0):(point=charAt$4(string,index),state.index+=point.length,createIterResultObject$1(point,!1))});var call$b=functionCall,defineBuiltIn$2=defineBuiltIn$i,regexpExec$1=regexpExec$2,fails$f=fails$18,wellKnownSymbol$5=wellKnownSymbol$w,createNonEnumerableProperty$3=createNonEnumerableProperty$a,SPECIES=wellKnownSymbol$5("species"),RegExpPrototype=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(KEY,exec,FORCED,SHAM){var SYMBOL=wellKnownSymbol$5(KEY),DELEGATES_TO_SYMBOL=!fails$f(function(){var O={};return O[SYMBOL]=function(){return 7},7!==""[KEY](O)}),DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL&&!fails$f(function(){var execCalled=!1,re=/a/;return"split"===KEY&&((re={}).constructor={},re.constructor[SPECIES]=function(){return re},re.flags="",re[SYMBOL]=/./[SYMBOL]),re.exec=function(){return execCalled=!0,null},re[SYMBOL](""),!execCalled});if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||FORCED){var nativeRegExpMethod=/./[SYMBOL],methods=exec(SYMBOL,""[KEY],function(nativeMethod,regexp,str,arg2,forceStringMethod){var $exec=regexp.exec;return $exec===regexpExec$1||$exec===RegExpPrototype.exec?DELEGATES_TO_SYMBOL&&!forceStringMethod?{done:!0,value:call$b(nativeRegExpMethod,regexp,str,arg2)}:{done:!0,value:call$b(nativeMethod,str,regexp,arg2)}:{done:!1}});defineBuiltIn$2(String.prototype,KEY,methods[0]),defineBuiltIn$2(RegExpPrototype,SYMBOL,methods[1])}SHAM&&createNonEnumerableProperty$3(RegExpPrototype[SYMBOL],"sham",!0)},charAt$3=stringMultibyte.charAt,advanceStringIndex$3=function(S,index,unicode){return index+(unicode?charAt$3(S,index).length:1)},call$a=functionCall,anObject$6=anObject$x,isCallable$3=isCallable$v,classof$4=classofRaw$2,regexpExec=regexpExec$2,$TypeError$2=TypeError,regexpExecAbstract=function(R,S){var exec=R.exec;if(isCallable$3(exec)){var result=call$a(exec,R,S);return null!==result&&anObject$6(result),result}if("RegExp"===classof$4(R))return call$a(regexpExec,R,S);throw new $TypeError$2("RegExp#exec called on incompatible receiver")},call$9=functionCall,fixRegExpWellKnownSymbolLogic$3=fixRegexpWellKnownSymbolLogic,anObject$5=anObject$x,isObject$7=isObject$C,toLength$6=toLength$c,toString$7=toString$n,requireObjectCoercible$6=requireObjectCoercible$f,getMethod$3=getMethod$7,advanceStringIndex$2=advanceStringIndex$3,getRegExpFlags$1=regexpGetFlags,regExpExec$3=regexpExecAbstract,stringIndexOf$1=functionUncurryThis("".indexOf);fixRegExpWellKnownSymbolLogic$3("match",function(MATCH,nativeMatch,maybeCallNative){return[function match(regexp){var O=requireObjectCoercible$6(this),matcher=isObject$7(regexp)?getMethod$3(regexp,MATCH):void 0;return matcher?call$9(matcher,regexp,O):new RegExp(regexp)[MATCH](toString$7(O))},function(string){var rx=anObject$5(this),S=toString$7(string),res=maybeCallNative(nativeMatch,rx,S);if(res.done)return res.value;var flags=toString$7(getRegExpFlags$1(rx));if(-1===stringIndexOf$1(flags,"g"))return regExpExec$3(rx,S);var fullUnicode=-1!==stringIndexOf$1(flags,"u");rx.lastIndex=0;for(var result,A=[],n=0;null!==(result=regExpExec$3(rx,S));){var matchStr=toString$7(result[0]);A[n]=matchStr,""===matchStr&&(rx.lastIndex=advanceStringIndex$2(S,toLength$6(rx.lastIndex),fullUnicode)),n++}return 0===n?null:A}]});var uncurryThis$h=functionUncurryThis,toLength$5=toLength$c,toString$6=toString$n,requireObjectCoercible$5=requireObjectCoercible$f,repeat$1=uncurryThis$h(stringRepeat),stringSlice$6=uncurryThis$h("".slice),ceil=Math.ceil,createMethod$1=function(IS_END){return function($this,maxLength,fillString){var fillLen,stringFiller,S=toString$6(requireObjectCoercible$5($this)),intMaxLength=toLength$5(maxLength),stringLength=S.length,fillStr=void 0===fillString?" ":toString$6(fillString);return intMaxLength<=stringLength||""===fillStr?S:((stringFiller=repeat$1(fillStr,ceil((fillLen=intMaxLength-stringLength)/fillStr.length))).length>fillLen&&(stringFiller=stringSlice$6(stringFiller,0,fillLen)),IS_END?S+stringFiller:stringFiller+S)}},stringPad={start:createMethod$1(!1),end:createMethod$1(!0)},stringPadWebkitBug=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(environmentUserAgent),$padEnd=stringPad.end;_export({target:"String",proto:!0,forced:stringPadWebkitBug},{padEnd:function padEnd(maxLength){return $padEnd(this,maxLength,arguments.length>1?arguments[1]:void 0)}});var $padStart=stringPad.start;_export({target:"String",proto:!0,forced:stringPadWebkitBug},{padStart:function padStart(maxLength){return $padStart(this,maxLength,arguments.length>1?arguments[1]:void 0)}});var $$r=_export,uncurryThis$g=functionUncurryThis,toIndexedObject$2=toIndexedObject$f,toObject$3=toObject$n,toString$5=toString$n,lengthOfArrayLike$5=lengthOfArrayLike$j,push$5=uncurryThis$g([].push),join$4=uncurryThis$g([].join);$$r({target:"String",stat:!0},{raw:function raw(template){var rawTemplate=toIndexedObject$2(toObject$3(template).raw),literalSegments=lengthOfArrayLike$5(rawTemplate);if(!literalSegments)return"";for(var argumentsLength=arguments.length,elements=[],i=0;;){if(push$5(elements,toString$5(rawTemplate[i++])),i===literalSegments)return join$4(elements,"");i<argumentsLength&&push$5(elements,toString$5(arguments[i]))}}}),_export({target:"String",proto:!0},{repeat:stringRepeat});var uncurryThis$f=functionUncurryThis,toObject$2=toObject$n,floor$3=Math.floor,charAt$2=uncurryThis$f("".charAt),replace$4=uncurryThis$f("".replace),stringSlice$5=uncurryThis$f("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,apply$4=functionApply$1,call$8=functionCall,uncurryThis$e=functionUncurryThis,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,fails$e=fails$18,anObject$4=anObject$x,isCallable$2=isCallable$v,isObject$6=isObject$C,toIntegerOrInfinity$2=toIntegerOrInfinity$c,toLength$4=toLength$c,toString$4=toString$n,requireObjectCoercible$4=requireObjectCoercible$f,advanceStringIndex$1=advanceStringIndex$3,getMethod$2=getMethod$7,getSubstitution=function(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject$2(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),replace$4(replacement,symbols,function(match,ch){var capture;switch(charAt$2(ch,0)){case"$":return"$";case"&":return matched;case"`":return stringSlice$5(str,0,position);case"'":return stringSlice$5(str,tailPos);case"<":capture=namedCaptures[stringSlice$5(ch,1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor$3(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?charAt$2(ch,1):captures[f-1]+charAt$2(ch,1):match}capture=captures[n-1]}return void 0===capture?"":capture})},getRegExpFlags=regexpGetFlags,regExpExec$2=regexpExecAbstract,REPLACE=wellKnownSymbol$w("replace"),max=Math.max,min$3=Math.min,concat$1=uncurryThis$e([].concat),push$4=uncurryThis$e([].push),stringIndexOf=uncurryThis$e("".indexOf),stringSlice$4=uncurryThis$e("".slice),maybeToString=function(it){return void 0===it?it:String(it)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0");fixRegExpWellKnownSymbolLogic$2("replace",function(_,nativeReplace,maybeCallNative){var UNSAFE_SUBSTITUTE=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function replace(searchValue,replaceValue){var O=requireObjectCoercible$4(this),replacer=isObject$6(searchValue)?getMethod$2(searchValue,REPLACE):void 0;return replacer?call$8(replacer,searchValue,O,replaceValue):call$8(nativeReplace,toString$4(O),searchValue,replaceValue)},function(string,replaceValue){var rx=anObject$4(this),S=toString$4(string);if("string"==typeof replaceValue&&-1===stringIndexOf(replaceValue,UNSAFE_SUBSTITUTE)&&-1===stringIndexOf(replaceValue,"$<")){var res=maybeCallNative(nativeReplace,rx,S,replaceValue);if(res.done)return res.value}var functionalReplace=isCallable$2(replaceValue);functionalReplace||(replaceValue=toString$4(replaceValue));var fullUnicode,flags=toString$4(getRegExpFlags(rx)),global=-1!==stringIndexOf(flags,"g");global&&(fullUnicode=-1!==stringIndexOf(flags,"u"),rx.lastIndex=0);for(var result,results=[];null!==(result=regExpExec$2(rx,S))&&(push$4(results,result),global);){""===toString$4(result[0])&&(rx.lastIndex=advanceStringIndex$1(S,toLength$4(rx.lastIndex),fullUnicode))}for(var accumulatedResult="",nextSourcePosition=0,i=0;i<results.length;i++){for(var replacement,matched=toString$4((result=results[i])[0]),position=max(min$3(toIntegerOrInfinity$2(result.index),S.length),0),captures=[],j=1;j<result.length;j++)push$4(captures,maybeToString(result[j]));var namedCaptures=result.groups;if(functionalReplace){var replacerArgs=concat$1([matched],captures,position,S);void 0!==namedCaptures&&push$4(replacerArgs,namedCaptures),replacement=toString$4(apply$4(replaceValue,void 0,replacerArgs))}else replacement=getSubstitution(matched,S,position,captures,namedCaptures,replaceValue);position>=nextSourcePosition&&(accumulatedResult+=stringSlice$4(S,nextSourcePosition,position)+replacement,nextSourcePosition=position+matched.length)}return accumulatedResult+stringSlice$4(S,nextSourcePosition)}]},!!fails$e(function(){var re=/./;return re.exec=function(){var result=[];return result.groups={a:"7"},result},"7"!=="".replace(re,"$<a>")})||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);var call$7=functionCall,anObject$3=anObject$x,isObject$5=isObject$C,requireObjectCoercible$3=requireObjectCoercible$f,sameValue=sameValue$1,toString$3=toString$n,getMethod$1=getMethod$7,regExpExec$1=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("search",function(SEARCH,nativeSearch,maybeCallNative){return[function search(regexp){var O=requireObjectCoercible$3(this),searcher=isObject$5(regexp)?getMethod$1(regexp,SEARCH):void 0;return searcher?call$7(searcher,regexp,O):new RegExp(regexp)[SEARCH](toString$3(O))},function(string){var rx=anObject$3(this),S=toString$3(string),res=maybeCallNative(nativeSearch,rx,S);if(res.done)return res.value;var previousLastIndex=rx.lastIndex;sameValue(previousLastIndex,0)||(rx.lastIndex=0);var result=regExpExec$1(rx,S);return sameValue(rx.lastIndex,previousLastIndex)||(rx.lastIndex=previousLastIndex),null===result?-1:result.index}]});var call$6=functionCall,uncurryThis$d=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$2=anObject$x,isObject$4=isObject$C,requireObjectCoercible$2=requireObjectCoercible$f,speciesConstructor=speciesConstructor$3,advanceStringIndex=advanceStringIndex$3,toLength$3=toLength$c,toString$2=toString$n,getMethod=getMethod$7,regExpExec=regexpExecAbstract,fails$d=fails$18,UNSUPPORTED_Y=regexpStickyHelpers.UNSUPPORTED_Y,min$2=Math.min,push$3=uncurryThis$d([].push),stringSlice$3=uncurryThis$d("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$d(function(){var re=/(?:)/,originalExec=re.exec;re.exec=function(){return originalExec.apply(this,arguments)};var result="ab".split(re);return 2!==result.length||"a"!==result[0]||"b"!==result[1]}),BUGGY="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;fixRegExpWellKnownSymbolLogic("split",function(SPLIT,nativeSplit,maybeCallNative){var internalSplit="0".split(void 0,0).length?function(separator,limit){return void 0===separator&&0===limit?[]:call$6(nativeSplit,this,separator,limit)}:nativeSplit;return[function split(separator,limit){var O=requireObjectCoercible$2(this),splitter=isObject$4(separator)?getMethod(separator,SPLIT):void 0;return splitter?call$6(splitter,separator,O,limit):call$6(internalSplit,toString$2(O),separator,limit)},function(string,limit){var rx=anObject$2(this),S=toString$2(string);if(!BUGGY){var res=maybeCallNative(internalSplit,rx,S,limit,internalSplit!==nativeSplit);if(res.done)return res.value}var C=speciesConstructor(rx,RegExp),unicodeMatching=rx.unicode,flags=(rx.ignoreCase?"i":"")+(rx.multiline?"m":"")+(rx.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),splitter=new C(UNSUPPORTED_Y?"^(?:"+rx.source+")":rx,flags),lim=void 0===limit?4294967295:limit>>>0;if(0===lim)return[];if(0===S.length)return null===regExpExec(splitter,S)?[S]:[];for(var p=0,q=0,A=[];q<S.length;){splitter.lastIndex=UNSUPPORTED_Y?0:q;var e,z=regExpExec(splitter,UNSUPPORTED_Y?stringSlice$3(S,q):S);if(null===z||(e=min$2(toLength$3(splitter.lastIndex+(UNSUPPORTED_Y?q:0)),S.length))===p)q=advanceStringIndex(S,q,unicodeMatching);else{if(push$3(A,stringSlice$3(S,p,q)),A.length===lim)return A;for(var i=1;i<=z.length-1;i++)if(push$3(A,z[i]),A.length===lim)return A;q=p=e}}return push$3(A,stringSlice$3(S,p)),A}]},BUGGY||!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y);var $$p=_export,uncurryThis$c=functionUncurryThisClause,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,toLength$2=toLength$c,toString$1=toString$n,notARegExp=notARegexp,requireObjectCoercible$1=requireObjectCoercible$f,correctIsRegExpLogic=correctIsRegexpLogic,stringSlice$2=uncurryThis$c("".slice),min$1=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic("startsWith"),MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"startsWith");return descriptor&&!descriptor.writable}();$$p({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{startsWith:function startsWith(searchString){var that=toString$1(requireObjectCoercible$1(this));notARegExp(searchString);var index=toLength$2(min$1(arguments.length>1?arguments[1]:void 0,that.length)),search=toString$1(searchString);return stringSlice$2(that,index,index+search.length)===search}});var PROPER_FUNCTION_NAME=functionName.PROPER,fails$c=fails$18,whitespaces=whitespaces$4,stringTrimForced=function(METHOD_NAME){return fails$c(function(){return!!whitespaces[METHOD_NAME]()||"
"!=="
"[METHOD_NAME]()||PROPER_FUNCTION_NAME&&whitespaces[METHOD_NAME].name!==METHOD_NAME})},$trim=stringTrim.trim;_export({target:"String",proto:!0,forced:stringTrimForced("trim")},{trim:function trim(){return $trim(this)}});var $trimEnd=stringTrim.end,stringTrimEnd=stringTrimForced("trimEnd")?function trimEnd(){return $trimEnd(this)}:"".trimEnd;_export({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==stringTrimEnd},{trimRight:stringTrimEnd});_export({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==stringTrimEnd},{trimEnd:stringTrimEnd});var $trimStart=stringTrim.start,stringTrimStart=stringTrimForced("trimStart")?function trimStart(){return $trimStart(this)}:"".trimStart;_export({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==stringTrimStart},{trimLeft:stringTrimStart});_export({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==stringTrimStart},{trimStart:stringTrimStart});var requireObjectCoercible=requireObjectCoercible$f,toString=toString$n,quot=/"/g,replace$3=functionUncurryThis("".replace),createHtml=function(string,tag,attribute,value){var S=toString(requireObjectCoercible(string)),p1="<"+tag;return""!==attribute&&(p1+=" "+attribute+'="'+replace$3(toString(value),quot,""")+'"'),p1+">"+S+"</"+tag+">"},fails$b=fails$18,stringHtmlForced=function(METHOD_NAME){return fails$b(function(){var test=""[METHOD_NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3})},createHTML$c=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(name){return createHTML$c(this,"a","name",name)}});var createHTML$b=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("big")},{big:function big(){return createHTML$b(this,"big","","")}});var createHTML$a=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("blink")},{blink:function blink(){return createHTML$a(this,"blink","","")}});var createHTML$9=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHTML$9(this,"b","","")}});var createHTML$8=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("fixed")},{fixed:function fixed(){return createHTML$8(this,"tt","","")}});var createHTML$7=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("fontcolor")},{fontcolor:function fontcolor(color){return createHTML$7(this,"font","color",color)}});var createHTML$6=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("fontsize")},{fontsize:function fontsize(size){return createHTML$6(this,"font","size",size)}});var createHTML$5=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("italics")},{italics:function italics(){return createHTML$5(this,"i","","")}});var createHTML$4=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(url){return createHTML$4(this,"a","href",url)}});var createHTML$3=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("small")},{small:function small(){return createHTML$3(this,"small","","")}});var createHTML$2=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("strike")},{strike:function strike(){return createHTML$2(this,"strike","","")}});var createHTML$1=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHTML$1(this,"sub","","")}});var createHTML=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("sup")},{sup:function sup(){return createHTML(this,"sup","","")}});var typedArrayConstructor={exports:{}},globalThis$g=globalThis_1,fails$a=fails$18,checkCorrectnessOfIteration=checkCorrectnessOfIteration$4,NATIVE_ARRAY_BUFFER_VIEWS$1=arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$2=globalThis$g.ArrayBuffer,Int8Array$3=globalThis$g.Int8Array,typedArrayConstructorsRequireWrappers=!NATIVE_ARRAY_BUFFER_VIEWS$1||!fails$a(function(){Int8Array$3(1)})||!fails$a(function(){new Int8Array$3(-1)})||!checkCorrectnessOfIteration(function(iterable){new Int8Array$3,new Int8Array$3(null),new Int8Array$3(1.5),new Int8Array$3(iterable)},!0)||fails$a(function(){return 1!==new Int8Array$3(new ArrayBuffer$2(2),1,void 0).length}),toIntegerOrInfinity$1=toIntegerOrInfinity$c,$RangeError$2=RangeError,toPositiveInteger=function(it){var result=toIntegerOrInfinity$1(it);if(result<0)throw new $RangeError$2("The argument can't be less than 0");return result},$RangeError$1=RangeError,toOffset$2=function(it,BYTES){var offset=toPositiveInteger(it);if(offset%BYTES)throw new $RangeError$1("Wrong offset");return offset},round=Math.round,classof$3=classof$i,toPrimitive=toPrimitive$3,$TypeError$1=TypeError,toBigInt$2=function(argument){var prim=toPrimitive(argument,"number");if("number"==typeof prim)throw new $TypeError$1("Can't convert number to bigint");return BigInt(prim)},bind$2=functionBindContext,call$5=functionCall,aConstructor=aConstructor$3,toObject$1=toObject$n,lengthOfArrayLike$4=lengthOfArrayLike$j,getIterator$1=getIterator$4,getIteratorMethod$1=getIteratorMethod$5,isArrayIteratorMethod=isArrayIteratorMethod$3,isBigIntArray=function(it){var klass=classof$3(it);return"BigInt64Array"===klass||"BigUint64Array"===klass},aTypedArrayConstructor$1=arrayBufferViewCore.aTypedArrayConstructor,toBigInt$1=toBigInt$2,typedArrayFrom$2=function from(source){var i,length,result,thisIsBigIntArray,value,step,iterator,next,C=aConstructor(this),O=toObject$1(source),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn,iteratorMethod=getIteratorMethod$1(O);if(iteratorMethod&&!isArrayIteratorMethod(iteratorMethod))for(next=(iterator=getIterator$1(O,iteratorMethod)).next,O=[];!(step=call$5(next,iterator)).done;)O.push(step.value);for(mapping&&argumentsLength>2&&(mapfn=bind$2(mapfn,arguments[2])),length=lengthOfArrayLike$4(O),result=new(aTypedArrayConstructor$1(C))(length),thisIsBigIntArray=isBigIntArray(result),i=0;length>i;i++)value=mapping?mapfn(O[i],i):O[i],result[i]=thisIsBigIntArray?toBigInt$1(value):+value;return result},lengthOfArrayLike$3=lengthOfArrayLike$j,arrayFromConstructorAndList$2=function(Constructor,list,$length){for(var index=0,length=arguments.length>2?$length:lengthOfArrayLike$3(list),result=new Constructor(length);length>index;)result[index]=list[index++];return result},$$6=_export,globalThis$f=globalThis_1,call$4=functionCall,DESCRIPTORS$4=descriptors,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2=typedArrayConstructorsRequireWrappers,ArrayBufferViewCore$n=arrayBufferViewCore,ArrayBufferModule=arrayBuffer,anInstance$3=anInstance$8,createPropertyDescriptor$1=createPropertyDescriptor$8,createNonEnumerableProperty$2=createNonEnumerableProperty$a,isIntegralNumber=isIntegralNumber$3,toLength$1=toLength$c,toIndex=toIndex$2,toOffset$1=toOffset$2,toUint8Clamped=function(it){var value=round(it);return value<0?0:value>255?255:255&value},toPropertyKey=toPropertyKey$7,hasOwn$3=hasOwnProperty_1,classof$2=classof$i,isObject$3=isObject$C,isSymbol=isSymbol$6,create$1=objectCreate,isPrototypeOf=objectIsPrototypeOf,setPrototypeOf=objectSetPrototypeOf$1,getOwnPropertyNames=objectGetOwnPropertyNames.f,typedArrayFrom$1=typedArrayFrom$2,forEach$1=arrayIteration.forEach,setSpecies=setSpecies$6,defineBuiltInAccessor$2=defineBuiltInAccessor$b,definePropertyModule=objectDefineProperty,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,arrayFromConstructorAndList$1=arrayFromConstructorAndList$2,inheritIfRequired=inheritIfRequired$5,getInternalState=internalState.get,setInternalState$3=internalState.set,enforceInternalState$1=internalState.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,RangeError$2=globalThis$f.RangeError,ArrayBuffer$1=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer$1.prototype,DataView$1=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore$n.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore$n.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore$n.TypedArray,TypedArrayPrototype$1=ArrayBufferViewCore$n.TypedArrayPrototype,isTypedArray=ArrayBufferViewCore$n.isTypedArray,addGetter=function(it,key){defineBuiltInAccessor$2(it,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},isArrayBuffer=function(it){var klass;return isPrototypeOf(ArrayBufferPrototype,it)||"ArrayBuffer"===(klass=classof$2(it))||"SharedArrayBuffer"===klass},isTypedArrayIndex=function(target,key){return isTypedArray(target)&&!isSymbol(key)&&key in target&&isIntegralNumber(+key)&&key>=0},wrappedGetOwnPropertyDescriptor=function getOwnPropertyDescriptor(target,key){return key=toPropertyKey(key),isTypedArrayIndex(target,key)?createPropertyDescriptor$1(2,target[key]):nativeGetOwnPropertyDescriptor(target,key)},wrappedDefineProperty=function defineProperty(target,key,descriptor){return key=toPropertyKey(key),!(isTypedArrayIndex(target,key)&&isObject$3(descriptor)&&hasOwn$3(descriptor,"value"))||hasOwn$3(descriptor,"get")||hasOwn$3(descriptor,"set")||descriptor.configurable||hasOwn$3(descriptor,"writable")&&!descriptor.writable||hasOwn$3(descriptor,"enumerable")&&!descriptor.enumerable?nativeDefineProperty(target,key,descriptor):(target[key]=descriptor.value,target)};DESCRIPTORS$4?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype$1,"buffer"),addGetter(TypedArrayPrototype$1,"byteOffset"),addGetter(TypedArrayPrototype$1,"byteLength"),addGetter(TypedArrayPrototype$1,"length")),$$6({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),typedArrayConstructor.exports=function(TYPE,wrapper,CLAMPED){var BYTES=TYPE.match(/\d+/)[0]/8,CONSTRUCTOR_NAME=TYPE+(CLAMPED?"Clamped":"")+"Array",GETTER="get"+TYPE,SETTER="set"+TYPE,NativeTypedArrayConstructor=globalThis$f[CONSTRUCTOR_NAME],TypedArrayConstructor=NativeTypedArrayConstructor,TypedArrayConstructorPrototype=TypedArrayConstructor&&TypedArrayConstructor.prototype,exported={},addElement=function(that,index){nativeDefineProperty(that,index,{get:function(){return function(that,index){var data=getInternalState(that);return data.view[GETTER](index*BYTES+data.byteOffset,!0)}(this,index)},set:function(value){return function(that,index,value){var data=getInternalState(that);data.view[SETTER](index*BYTES+data.byteOffset,CLAMPED?toUint8Clamped(value):value,!0)}(this,index,value)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2&&(TypedArrayConstructor=wrapper(function(dummy,data,typedArrayOffset,$length){return anInstance$3(dummy,TypedArrayConstructorPrototype),inheritIfRequired(isObject$3(data)?isArrayBuffer(data)?void 0!==$length?new NativeTypedArrayConstructor(data,toOffset$1(typedArrayOffset,BYTES),$length):void 0!==typedArrayOffset?new NativeTypedArrayConstructor(data,toOffset$1(typedArrayOffset,BYTES)):new NativeTypedArrayConstructor(data):isTypedArray(data)?arrayFromConstructorAndList$1(TypedArrayConstructor,data):call$4(typedArrayFrom$1,TypedArrayConstructor,data):new NativeTypedArrayConstructor(toIndex(data)),dummy,TypedArrayConstructor)}),setPrototypeOf&&setPrototypeOf(TypedArrayConstructor,TypedArray),forEach$1(getOwnPropertyNames(NativeTypedArrayConstructor),function(key){key in TypedArrayConstructor||createNonEnumerableProperty$2(TypedArrayConstructor,key,NativeTypedArrayConstructor[key])}),TypedArrayConstructor.prototype=TypedArrayConstructorPrototype):(TypedArrayConstructor=wrapper(function(that,data,offset,$length){anInstance$3(that,TypedArrayConstructorPrototype);var buffer,byteLength,length,index=0,byteOffset=0;if(isObject$3(data)){if(!isArrayBuffer(data))return isTypedArray(data)?arrayFromConstructorAndList$1(TypedArrayConstructor,data):call$4(typedArrayFrom$1,TypedArrayConstructor,data);buffer=data,byteOffset=toOffset$1(offset,BYTES);var $len=data.byteLength;if(void 0===$length){if($len%BYTES)throw new RangeError$2("Wrong length");if((byteLength=$len-byteOffset)<0)throw new RangeError$2("Wrong length")}else if((byteLength=toLength$1($length)*BYTES)+byteOffset>$len)throw new RangeError$2("Wrong length");length=byteLength/BYTES}else length=toIndex(data),buffer=new ArrayBuffer$1(byteLength=length*BYTES);for(setInternalState$3(that,{buffer:buffer,byteOffset:byteOffset,byteLength:byteLength,length:length,view:new DataView$1(buffer)});index<length;)addElement(that,index++)}),setPrototypeOf&&setPrototypeOf(TypedArrayConstructor,TypedArray),TypedArrayConstructorPrototype=TypedArrayConstructor.prototype=create$1(TypedArrayPrototype$1)),TypedArrayConstructorPrototype.constructor!==TypedArrayConstructor&&createNonEnumerableProperty$2(TypedArrayConstructorPrototype,"constructor",TypedArrayConstructor),enforceInternalState$1(TypedArrayConstructorPrototype).TypedArrayConstructor=TypedArrayConstructor,TYPED_ARRAY_TAG&&createNonEnumerableProperty$2(TypedArrayConstructorPrototype,TYPED_ARRAY_TAG,CONSTRUCTOR_NAME);var FORCED=TypedArrayConstructor!==NativeTypedArrayConstructor;exported[CONSTRUCTOR_NAME]=TypedArrayConstructor,$$6({global:!0,constructor:!0,forced:FORCED,sham:!NATIVE_ARRAY_BUFFER_VIEWS},exported),"BYTES_PER_ELEMENT"in TypedArrayConstructor||createNonEnumerableProperty$2(TypedArrayConstructor,"BYTES_PER_ELEMENT",BYTES),"BYTES_PER_ELEMENT"in TypedArrayConstructorPrototype||createNonEnumerableProperty$2(TypedArrayConstructorPrototype,"BYTES_PER_ELEMENT",BYTES),setSpecies(CONSTRUCTOR_NAME)}):typedArrayConstructor.exports=function(){};var typedArrayConstructorExports=typedArrayConstructor.exports;typedArrayConstructorExports("Float32",function(init){return function Float32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Float64",function(init){return function Float64Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Int8",function(init){return function Int8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Int16",function(init){return function Int16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Int32",function(init){return function Int32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Uint8",function(init){return function Uint8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Uint8",function(init){return function Uint8ClampedArray(data,byteOffset,length){return init(this,data,byteOffset,length)}},!0),typedArrayConstructorExports("Uint16",function(init){return function Uint16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Uint32",function(init){return function Uint32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}});var ArrayBufferViewCore$m=arrayBufferViewCore,u$ArrayCopyWithin=functionUncurryThis(arrayCopyWithin),aTypedArray$l=ArrayBufferViewCore$m.aTypedArray;(0,ArrayBufferViewCore$m.exportTypedArrayMethod)("copyWithin",function copyWithin(target,start){return u$ArrayCopyWithin(aTypedArray$l(this),target,start,arguments.length>2?arguments[2]:void 0)});var $every=arrayIteration.every,aTypedArray$k=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("every",function every(callbackfn){return $every(aTypedArray$k(this),callbackfn,arguments.length>1?arguments[1]:void 0)});var $fill=arrayFill$1,toBigInt=toBigInt$2,classof$1=classof$i,call$3=functionCall,fails$9=fails$18,aTypedArray$j=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$k=arrayBufferViewCore.exportTypedArrayMethod,slice=functionUncurryThis("".slice);exportTypedArrayMethod$k("fill",function fill(value){var length=arguments.length;aTypedArray$j(this);var actualValue="Big"===slice(classof$1(this),0,3)?toBigInt(value):+value;return call$3($fill,this,actualValue,length>1?arguments[1]:void 0,length>2?arguments[2]:void 0)},fails$9(function(){var count=0;return new Int8Array(2).fill({valueOf:function(){return count++}}),1!==count}));var arrayFromConstructorAndList=arrayFromConstructorAndList$2,getTypedArrayConstructor$3=arrayBufferViewCore.getTypedArrayConstructor,$filter=arrayIteration.filter,fromSameTypeAndList=function(instance,list){return arrayFromConstructorAndList(getTypedArrayConstructor$3(instance),list)},aTypedArray$i=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("filter",function filter(callbackfn){var list=$filter(aTypedArray$i(this),callbackfn,arguments.length>1?arguments[1]:void 0);return fromSameTypeAndList(this,list)});var $find=arrayIteration.find,aTypedArray$h=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("find",function find(predicate){return $find(aTypedArray$h(this),predicate,arguments.length>1?arguments[1]:void 0)});var $findIndex=arrayIteration.findIndex,aTypedArray$g=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("findIndex",function findIndex(predicate){return $findIndex(aTypedArray$g(this),predicate,arguments.length>1?arguments[1]:void 0)});var $forEach$1=arrayIteration.forEach,aTypedArray$f=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("forEach",function forEach(callbackfn){$forEach$1(aTypedArray$f(this),callbackfn,arguments.length>1?arguments[1]:void 0)}),(0,arrayBufferViewCore.exportTypedArrayStaticMethod)("from",typedArrayFrom$2,typedArrayConstructorsRequireWrappers);var $includes=arrayIncludes.includes,aTypedArray$e=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("includes",function includes(searchElement){return $includes(aTypedArray$e(this),searchElement,arguments.length>1?arguments[1]:void 0)});var $indexOf=arrayIncludes.indexOf,aTypedArray$d=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("indexOf",function indexOf(searchElement){return $indexOf(aTypedArray$d(this),searchElement,arguments.length>1?arguments[1]:void 0)});var globalThis$e=globalThis_1,fails$8=fails$18,uncurryThis$8=functionUncurryThis,ArrayBufferViewCore$d=arrayBufferViewCore,ArrayIterators=es_array_iterator,ITERATOR$3=wellKnownSymbol$w("iterator"),Uint8Array$2=globalThis$e.Uint8Array,arrayValues=uncurryThis$8(ArrayIterators.values),arrayKeys=uncurryThis$8(ArrayIterators.keys),arrayEntries=uncurryThis$8(ArrayIterators.entries),aTypedArray$c=ArrayBufferViewCore$d.aTypedArray,exportTypedArrayMethod$d=ArrayBufferViewCore$d.exportTypedArrayMethod,TypedArrayPrototype=Uint8Array$2&&Uint8Array$2.prototype,GENERIC=!fails$8(function(){TypedArrayPrototype[ITERATOR$3].call([1])}),ITERATOR_IS_VALUES=!!TypedArrayPrototype&&TypedArrayPrototype.values&&TypedArrayPrototype[ITERATOR$3]===TypedArrayPrototype.values&&"values"===TypedArrayPrototype.values.name,typedArrayValues=function values(){return arrayValues(aTypedArray$c(this))};exportTypedArrayMethod$d("entries",function entries(){return arrayEntries(aTypedArray$c(this))},GENERIC),exportTypedArrayMethod$d("keys",function keys(){return arrayKeys(aTypedArray$c(this))},GENERIC),exportTypedArrayMethod$d("values",typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"}),exportTypedArrayMethod$d(ITERATOR$3,typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"});var aTypedArray$b=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$c=arrayBufferViewCore.exportTypedArrayMethod,$join=functionUncurryThis([].join);exportTypedArrayMethod$c("join",function join(separator){return $join(aTypedArray$b(this),separator)});var apply$3=functionApply$1,toIndexedObject$1=toIndexedObject$f,toIntegerOrInfinity=toIntegerOrInfinity$c,lengthOfArrayLike$2=lengthOfArrayLike$j,arrayMethodIsStrict$1=arrayMethodIsStrict$4,min=Math.min,$lastIndexOf$1=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf$1&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD$1=arrayMethodIsStrict$1("lastIndexOf"),arrayLastIndexOf=NEGATIVE_ZERO||!STRICT_METHOD$1?function lastIndexOf(searchElement){if(NEGATIVE_ZERO)return apply$3($lastIndexOf$1,this,arguments)||0;var O=toIndexedObject$1(this),length=lengthOfArrayLike$2(O);if(0===length)return-1;var index=length-1;for(arguments.length>1&&(index=min(index,toIntegerOrInfinity(arguments[1]))),index<0&&(index=length+index);index>=0;index--)if(index in O&&O[index]===searchElement)return index||0;return-1}:$lastIndexOf$1,apply$2=functionApply$1,$lastIndexOf=arrayLastIndexOf,aTypedArray$a=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("lastIndexOf",function lastIndexOf(searchElement){var length=arguments.length;return apply$2($lastIndexOf,aTypedArray$a(this),length>1?[searchElement,arguments[1]]:[searchElement])});var $map=arrayIteration.map,aTypedArray$9=arrayBufferViewCore.aTypedArray,getTypedArrayConstructor$2=arrayBufferViewCore.getTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayMethod)("map",function map(mapfn){return $map(aTypedArray$9(this),mapfn,arguments.length>1?arguments[1]:void 0,function(O,length){return new(getTypedArrayConstructor$2(O))(length)})});var aTypedArrayConstructor=arrayBufferViewCore.aTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayStaticMethod)("of",function of(){for(var index=0,length=arguments.length,result=new(aTypedArrayConstructor(this))(length);length>index;)result[index]=arguments[index++];return result},typedArrayConstructorsRequireWrappers);var aCallable$2=aCallable$h,toObject=toObject$n,IndexedObject=indexedObject,lengthOfArrayLike$1=lengthOfArrayLike$j,$TypeError=TypeError,REDUCE_EMPTY="Reduce of empty array with no initial value",createMethod=function(IS_RIGHT){return function(that,callbackfn,argumentsLength,memo){var O=toObject(that),self=IndexedObject(O),length=lengthOfArrayLike$1(O);if(aCallable$2(callbackfn),0===length&&argumentsLength<2)throw new $TypeError(REDUCE_EMPTY);var index=IS_RIGHT?length-1:0,i=IS_RIGHT?-1:1;if(argumentsLength<2)for(;;){if(index in self){memo=self[index],index+=i;break}if(index+=i,IS_RIGHT?index<0:length<=index)throw new $TypeError(REDUCE_EMPTY)}for(;IS_RIGHT?index>=0:length>index;index+=i)index in self&&(memo=callbackfn(memo,self[index],index,O));return memo}},arrayReduce={left:createMethod(!1),right:createMethod(!0)},$reduce=arrayReduce.left,aTypedArray$8=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("reduce",function reduce(callbackfn){var length=arguments.length;return $reduce(aTypedArray$8(this),callbackfn,length,length>1?arguments[1]:void 0)});var $reduceRight=arrayReduce.right,aTypedArray$7=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("reduceRight",function reduceRight(callbackfn){var length=arguments.length;return $reduceRight(aTypedArray$7(this),callbackfn,length,length>1?arguments[1]:void 0)});var aTypedArray$6=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$7=arrayBufferViewCore.exportTypedArrayMethod,floor$2=Math.floor;exportTypedArrayMethod$7("reverse",function reverse(){for(var value,length=aTypedArray$6(this).length,middle=floor$2(length/2),index=0;index<middle;)value=this[index],this[index++]=this[--length],this[length]=value;return this});var globalThis$d=globalThis_1,call$2=functionCall,ArrayBufferViewCore$5=arrayBufferViewCore,lengthOfArrayLike=lengthOfArrayLike$j,toOffset=toOffset$2,toIndexedObject=toObject$n,fails$7=fails$18,RangeError$1=globalThis$d.RangeError,Int8Array$2=globalThis$d.Int8Array,Int8ArrayPrototype=Int8Array$2&&Int8Array$2.prototype,$set=Int8ArrayPrototype&&Int8ArrayPrototype.set,aTypedArray$5=ArrayBufferViewCore$5.aTypedArray,exportTypedArrayMethod$6=ArrayBufferViewCore$5.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS=!fails$7(function(){var array=new Uint8ClampedArray(2);return call$2($set,array,{length:1,0:3},1),3!==array[1]}),TO_OBJECT_BUG=WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS&&ArrayBufferViewCore$5.NATIVE_ARRAY_BUFFER_VIEWS&&fails$7(function(){var array=new Int8Array$2(2);return array.set(1),array.set("2",1),0!==array[0]||2!==array[1]});exportTypedArrayMethod$6("set",function set(arrayLike){aTypedArray$5(this);var offset=toOffset(arguments.length>1?arguments[1]:void 0,1),src=toIndexedObject(arrayLike);if(WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS)return call$2($set,this,src,offset);var length=this.length,len=lengthOfArrayLike(src),index=0;if(len+offset>length)throw new RangeError$1("Wrong length");for(;index<len;)this[offset+index]=src[index++]},!WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS||TO_OBJECT_BUG);var arraySlice$3=arraySlice$a,aTypedArray$4=arrayBufferViewCore.aTypedArray,getTypedArrayConstructor$1=arrayBufferViewCore.getTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayMethod)("slice",function slice(start,end){for(var list=arraySlice$3(aTypedArray$4(this),start,end),C=getTypedArrayConstructor$1(this),index=0,length=list.length,result=new C(length);length>index;)result[index]=list[index++];return result},fails$18(function(){new Int8Array(1).slice()}));var $some=arrayIteration.some,aTypedArray$3=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("some",function some(callbackfn){return $some(aTypedArray$3(this),callbackfn,arguments.length>1?arguments[1]:void 0)});var uncurryThis$6=functionUncurryThisClause,fails$5=fails$18,aCallable$1=aCallable$h,internalSort=arraySort$1,FF=environmentFfVersion,IE_OR_EDGE=environmentIsIeOrEdge,V8=environmentV8Version,WEBKIT=environmentWebkitVersion,aTypedArray$2=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$3=arrayBufferViewCore.exportTypedArrayMethod,Uint16Array=globalThis_1.Uint16Array,nativeSort=Uint16Array&&uncurryThis$6(Uint16Array.prototype.sort),ACCEPT_INCORRECT_ARGUMENTS=!(!nativeSort||fails$5(function(){nativeSort(new Uint16Array(2),null)})&&fails$5(function(){nativeSort(new Uint16Array(2),{})})),STABLE_SORT=!!nativeSort&&!fails$5(function(){if(V8)return V8<74;if(FF)return FF<67;if(IE_OR_EDGE)return!0;if(WEBKIT)return WEBKIT<602;var index,mod,array=new Uint16Array(516),expected=Array(516);for(index=0;index<516;index++)mod=index%4,array[index]=515-index,expected[index]=index-2*mod+3;for(nativeSort(array,function(a,b){return(a/4|0)-(b/4|0)}),index=0;index<516;index++)if(array[index]!==expected[index])return!0});exportTypedArrayMethod$3("sort",function sort(comparefn){return void 0!==comparefn&&aCallable$1(comparefn),STABLE_SORT?nativeSort(this,comparefn):internalSort(aTypedArray$2(this),function(comparefn){return function(x,y){return void 0!==comparefn?+comparefn(x,y)||0:y!=y?-1:x!=x?1:0===x&&0===y?1/x>0&&1/y<0?1:-1:x>y}}(comparefn))},!STABLE_SORT||ACCEPT_INCORRECT_ARGUMENTS);var toLength=toLength$c,toAbsoluteIndex=toAbsoluteIndex$8,aTypedArray$1=arrayBufferViewCore.aTypedArray,getTypedArrayConstructor=arrayBufferViewCore.getTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayMethod)("subarray",function subarray(begin,end){var O=aTypedArray$1(this),length=O.length,beginIndex=toAbsoluteIndex(begin,length);return new(getTypedArrayConstructor(O))(O.buffer,O.byteOffset+beginIndex*O.BYTES_PER_ELEMENT,toLength((void 0===end?length:toAbsoluteIndex(end,length))-beginIndex))});var apply$1=functionApply$1,ArrayBufferViewCore=arrayBufferViewCore,fails$4=fails$18,arraySlice$2=arraySlice$a,Int8Array$1=globalThis_1.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod$1=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails$4(function(){$toLocaleString.call(new Int8Array$1(1))});exportTypedArrayMethod$1("toLocaleString",function toLocaleString(){return apply$1($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice$2(aTypedArray(this)):aTypedArray(this),arraySlice$2(arguments))},fails$4(function(){return[1,2].toLocaleString()!==new Int8Array$1([1,2]).toLocaleString()})||!fails$4(function(){Int8Array$1.prototype.toLocaleString.call([1,2])}));var exportTypedArrayMethod=arrayBufferViewCore.exportTypedArrayMethod,fails$3=fails$18,uncurryThis$5=functionUncurryThis,Uint8Array$1=globalThis_1.Uint8Array,Uint8ArrayPrototype=Uint8Array$1&&Uint8Array$1.prototype||{},arrayToString=[].toString,join$3=uncurryThis$5([].join);fails$3(function(){arrayToString.call({})})&&(arrayToString=function toString(){return join$3(this)});var IS_NOT_ARRAY_METHOD=Uint8ArrayPrototype.toString!==arrayToString;exportTypedArrayMethod("toString",arrayToString,IS_NOT_ARRAY_METHOD);var uncurryThis$4=functionUncurryThis,defineBuiltIns$2=defineBuiltIns$5,getWeakData=internalMetadataExports.getWeakData,anInstance$2=anInstance$8,anObject$1=anObject$x,isNullOrUndefined=isNullOrUndefined$7,isObject$2=isObject$C,iterate=iterate$6,hasOwn$2=hasOwnProperty_1,setInternalState$2=internalState.set,internalStateGetterFor=internalState.getterFor,find$1=arrayIteration.find,findIndex=arrayIteration.findIndex,splice$1=uncurryThis$4([].splice),id=0,uncaughtFrozenStore=function(state){return state.frozen||(state.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(store,key){return find$1(store.entries,function(it){return it[0]===key})};UncaughtFrozenStore.prototype={get:function(key){var entry=findUncaughtFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findUncaughtFrozen(this,key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);entry?entry[1]=value:this.entries.push([key,value])},delete:function(key){var index=findIndex(this.entries,function(it){return it[0]===key});return~index&&splice$1(this.entries,index,1),!!~index}};var InternalWeakMap,collectionWeak$2={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper(function(that,iterable){anInstance$2(that,Prototype),setInternalState$2(that,{type:CONSTRUCTOR_NAME,id:id++,frozen:null}),isNullOrUndefined(iterable)||iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP})}),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME),define=function(that,key,value){var state=getInternalState(that),data=getWeakData(anObject$1(key),!0);return!0===data?uncaughtFrozenStore(state).set(key,value):data[state.id]=value,that};return defineBuiltIns$2(Prototype,{delete:function(key){var state=getInternalState(this);if(!isObject$2(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).delete(key):data&&hasOwn$2(data,state.id)&&delete data[state.id]},has:function has(key){var state=getInternalState(this);if(!isObject$2(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).has(key):data&&hasOwn$2(data,state.id)}}),defineBuiltIns$2(Prototype,IS_MAP?{get:function get(key){var state=getInternalState(this);if(isObject$2(key)){var data=getWeakData(key);if(!0===data)return uncaughtFrozenStore(state).get(key);if(data)return data[state.id]}},set:function set(key,value){return define(this,key,value)}}:{add:function add(value){return define(this,value,!0)}}),Constructor}},FREEZING=freezing,globalThis$9=globalThis_1,uncurryThis$3=functionUncurryThis,defineBuiltIns$1=defineBuiltIns$5,InternalMetadataModule=internalMetadataExports,collection$1=collection$4,collectionWeak$1=collectionWeak$2,isObject$1=isObject$C,enforceInternalState=internalState.enforce,fails$2=fails$18,NATIVE_WEAK_MAP=weakMapBasicDetection,$Object=Object,isArray=Array.isArray,isExtensible=$Object.isExtensible,isFrozen=$Object.isFrozen,isSealed=$Object.isSealed,freeze=$Object.freeze,seal=$Object.seal,IS_IE11=!globalThis$9.ActiveXObject&&"ActiveXObject"in globalThis$9,wrapper=function(init){return function WeakMap(){return init(this,arguments.length?arguments[0]:void 0)}},$WeakMap=collection$1("WeakMap",wrapper,collectionWeak$1),WeakMapPrototype=$WeakMap.prototype,nativeSet=uncurryThis$3(WeakMapPrototype.set);if(NATIVE_WEAK_MAP)if(IS_IE11){InternalWeakMap=collectionWeak$1.getConstructor(wrapper,"WeakMap",!0),InternalMetadataModule.enable();var nativeDelete=uncurryThis$3(WeakMapPrototype.delete),nativeHas=uncurryThis$3(WeakMapPrototype.has),nativeGet=uncurryThis$3(WeakMapPrototype.get);defineBuiltIns$1(WeakMapPrototype,{delete:function(key){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);return state.frozen||(state.frozen=new InternalWeakMap),nativeDelete(this,key)||state.frozen.delete(key)}return nativeDelete(this,key)},has:function has(key){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);return state.frozen||(state.frozen=new InternalWeakMap),nativeHas(this,key)||state.frozen.has(key)}return nativeHas(this,key)},get:function get(key){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);return state.frozen||(state.frozen=new InternalWeakMap),nativeHas(this,key)?nativeGet(this,key):state.frozen.get(key)}return nativeGet(this,key)},set:function set(key,value){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);state.frozen||(state.frozen=new InternalWeakMap),nativeHas(this,key)?nativeSet(this,key,value):state.frozen.set(key,value)}else nativeSet(this,key,value);return this}})}else FREEZING&&fails$2(function(){var frozenArray=freeze([]);return nativeSet(new $WeakMap,frozenArray,1),!isFrozen(frozenArray)})&&defineBuiltIns$1(WeakMapPrototype,{set:function set(key,value){var arrayIntegrityLevel;return isArray(key)&&(isFrozen(key)?arrayIntegrityLevel=freeze:isSealed(key)&&(arrayIntegrityLevel=seal)),nativeSet(this,key,value),arrayIntegrityLevel&&arrayIntegrityLevel(key),this}});collection$4("WeakSet",function(init){return function WeakSet(){return init(this,arguments.length?arguments[0]:void 0)}},collectionWeak$2);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},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$2=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$2===Object.prototype?void 0:DOMTokenListPrototype$2,$forEach=arrayIteration.forEach,arrayForEach=arrayMethodIsStrict$4("forEach")?[].forEach:function forEach(callbackfn){return $forEach(this,callbackfn,arguments.length>1?arguments[1]:void 0)},globalThis$8=globalThis_1,DOMIterables$1=domIterables,DOMTokenListPrototype$1=domTokenListPrototype,forEach=arrayForEach,createNonEnumerableProperty$1=createNonEnumerableProperty$a,handlePrototype$1=function(CollectionPrototype){if(CollectionPrototype&&CollectionPrototype.forEach!==forEach)try{createNonEnumerableProperty$1(CollectionPrototype,"forEach",forEach)}catch(error){CollectionPrototype.forEach=forEach}};for(var COLLECTION_NAME$1 in DOMIterables$1)DOMIterables$1[COLLECTION_NAME$1]&&handlePrototype$1(globalThis$8[COLLECTION_NAME$1]&&globalThis$8[COLLECTION_NAME$1].prototype);handlePrototype$1(DOMTokenListPrototype$1);var globalThis$7=globalThis_1,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$a,setToStringTag$2=setToStringTag$c,ITERATOR$2=wellKnownSymbol$w("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(CollectionPrototype,COLLECTION_NAME){if(CollectionPrototype){if(CollectionPrototype[ITERATOR$2]!==ArrayValues)try{createNonEnumerableProperty(CollectionPrototype,ITERATOR$2,ArrayValues)}catch(error){CollectionPrototype[ITERATOR$2]=ArrayValues}if(setToStringTag$2(CollectionPrototype,COLLECTION_NAME,!0),DOMIterables[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error){CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}};for(var COLLECTION_NAME in DOMIterables)handlePrototype(globalThis$7[COLLECTION_NAME]&&globalThis$7[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var clearImmediate=task$1.clear;_export({global:!0,bind:!0,enumerable:!0,forced:globalThis_1.clearImmediate!==clearImmediate},{clearImmediate:clearImmediate});var globalThis$5=globalThis_1,apply=functionApply$1,isCallable$1=isCallable$v,ENVIRONMENT=environment,USER_AGENT=environmentUserAgent,arraySlice$1=arraySlice$a,validateArgumentsLength$3=validateArgumentsLength$5,Function$1=globalThis$5.Function,WRAP=/MSIE .\./.test(USER_AGENT)||"BUN"===ENVIRONMENT&&function(){var version=globalThis$5.Bun.version.split(".");return version.length<3||"0"===version[0]&&(version[1]<3||"3"===version[1]&&"0"===version[2])}(),$$4=_export,globalThis$4=globalThis_1,setTask=task$1.set,schedulersFix=function(scheduler,hasTimeArg){var firstParamIndex=hasTimeArg?2:1;return WRAP?function(handler,timeout){var boundArgs=validateArgumentsLength$3(arguments.length,1)>firstParamIndex,fn=isCallable$1(handler)?handler:Function$1(handler),params=boundArgs?arraySlice$1(arguments,firstParamIndex):[],callback=boundArgs?function(){apply(fn,this,params)}:fn;return hasTimeArg?scheduler(callback,timeout):scheduler(callback)}:scheduler},setImmediate=globalThis$4.setImmediate?schedulersFix(setTask,!1):setTask;$$4({global:!0,bind:!0,enumerable:!0,forced:globalThis$4.setImmediate!==setImmediate},{setImmediate:setImmediate});var globalThis$3=globalThis_1,microtask=microtask_1,aCallable=aCallable$h,validateArgumentsLength$2=validateArgumentsLength$5,DESCRIPTORS$3=descriptors;_export({global:!0,enumerable:!0,dontCallGetSet:!0,forced:fails$18(function(){return DESCRIPTORS$3&&1!==Object.getOwnPropertyDescriptor(globalThis$3,"queueMicrotask").value.length})},{queueMicrotask:function queueMicrotask(fn){validateArgumentsLength$2(arguments.length,1),microtask(aCallable(fn))}});var fails=fails$18,DESCRIPTORS$2=descriptors,ITERATOR$1=wellKnownSymbol$w("iterator"),urlConstructorDetection=!fails(function(){var url=new URL("b?a=1&b=2&c=3","https://a"),params=url.searchParams,params2=new URLSearchParams("a=1&a=2&b=3"),result="";return url.pathname="c%20d",params.forEach(function(value,key){params.delete("b"),result+=key+value}),params2.delete("a",2),params2.delete("b",void 0),!params.size&&!DESCRIPTORS$2||!params.sort||"https://a/c%20d?a=1&c=3"!==url.href||"3"!==params.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!params[ITERATOR$1]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==result||"x"!==new URL("https://x",void 0).host}),uncurryThis$2=functionUncurryThis,regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",$RangeError=RangeError,exec$2=uncurryThis$2(regexSeparators.exec),floor$1=Math.floor,fromCharCode$1=String.fromCharCode,charCodeAt=uncurryThis$2("".charCodeAt),join$2=uncurryThis$2([].join),push$2=uncurryThis$2([].push),replace$2=uncurryThis$2("".replace),split$2=uncurryThis$2("".split),toLowerCase$1=uncurryThis$2("".toLowerCase),digitToBasic=function(digit){return digit+22+75*(digit<26)},adapt=function(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor$1(delta/700):delta>>1,delta+=floor$1(delta/numPoints);delta>455;)delta=floor$1(delta/35),k+=36;return floor$1(k+36*delta/(delta+38))},encode=function(input){var output=[];input=function(string){for(var output=[],counter=0,length=string.length;counter<length;){var value=charCodeAt(string,counter++);if(value>=55296&&value<=56319&&counter<length){var extra=charCodeAt(string,counter++);56320==(64512&extra)?push$2(output,((1023&value)<<10)+(1023&extra)+65536):(push$2(output,value),counter--)}else push$2(output,value)}return output}(input);var i,currentValue,inputLength=input.length,n=128,delta=0,bias=72;for(i=0;i<input.length;i++)(currentValue=input[i])<128&&push$2(output,fromCharCode$1(currentValue));var basicLength=output.length,handledCPCount=basicLength;for(basicLength&&push$2(output,"-");handledCPCount<inputLength;){var m=2147483647;for(i=0;i<input.length;i++)(currentValue=input[i])>=n&¤tValue<m&&(m=currentValue);var handledCPCountPlusOne=handledCPCount+1;if(m-n>floor$1((2147483647-delta)/handledCPCountPlusOne))throw new $RangeError(OVERFLOW_ERROR);for(delta+=(m-n)*handledCPCountPlusOne,n=m,i=0;i<input.length;i++){if((currentValue=input[i])<n&&++delta>2147483647)throw new $RangeError(OVERFLOW_ERROR);if(currentValue===n){for(var q=delta,k=36;;){var t=k<=bias?1:k>=bias+26?26:k-bias;if(q<t)break;var qMinusT=q-t,baseMinusT=36-t;push$2(output,fromCharCode$1(digitToBasic(t+qMinusT%baseMinusT))),q=floor$1(qMinusT/baseMinusT),k+=36}push$2(output,fromCharCode$1(digitToBasic(q))),bias=adapt(delta,handledCPCountPlusOne,handledCPCount===basicLength),delta=0,handledCPCount++}}delta++,n++}return join$2(output,"")},$$2=_export,globalThis$2=globalThis_1,safeGetBuiltIn=safeGetBuiltIn$2,getBuiltIn=getBuiltIn$f,call$1=functionCall,uncurryThis$1=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL$1=urlConstructorDetection,defineBuiltIn$1=defineBuiltIn$i,defineBuiltInAccessor$1=defineBuiltInAccessor$b,defineBuiltIns=defineBuiltIns$5,setToStringTag$1=setToStringTag$c,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule$1=internalState,anInstance$1=anInstance$8,isCallable=isCallable$v,hasOwn$1=hasOwnProperty_1,bind$1=functionBindContext,classof=classof$i,anObject=anObject$x,isObject=isObject$C,$toString$1=toString$n,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$8,getIterator=getIterator$4,getIteratorMethod=getIteratorMethod$5,createIterResultObject=createIterResultObject$4,validateArgumentsLength$1=validateArgumentsLength$5,arraySort=arraySort$1,ITERATOR=wellKnownSymbol$w("iterator"),setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor("URLSearchParams"),getInternalIteratorState=InternalStateModule$1.getterFor("URLSearchParamsIterator"),nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,TypeError$2=globalThis$2.TypeError,encodeURIComponent$1=globalThis$2.encodeURIComponent,fromCharCode=String.fromCharCode,fromCodePoint=getBuiltIn("String","fromCodePoint"),$parseInt=parseInt,charAt$1=uncurryThis$1("".charAt),join$1=uncurryThis$1([].join),push$1=uncurryThis$1([].push),replace$1=uncurryThis$1("".replace),shift$1=uncurryThis$1([].shift),splice=uncurryThis$1([].splice),split$1=uncurryThis$1("".split),stringSlice$1=uncurryThis$1("".slice),exec$1=uncurryThis$1(/./.exec),plus=/\+/g,VALID_HEX=/^[0-9a-f]+$/i,parseHexOctet=function(string,start){var substr=stringSlice$1(string,start,start+2);return exec$1(VALID_HEX,substr)?$parseInt(substr,16):NaN},getLeadingOnes=function(octet){for(var count=0,mask=128;mask>0&&0!==(octet&mask);mask>>=1)count++;return count},utf8Decode=function(octets){var codePoint=null;switch(octets.length){case 1:codePoint=octets[0];break;case 2:codePoint=(31&octets[0])<<6|63&octets[1];break;case 3:codePoint=(15&octets[0])<<12|(63&octets[1])<<6|63&octets[2];break;case 4:codePoint=(7&octets[0])<<18|(63&octets[1])<<12|(63&octets[2])<<6|63&octets[3]}return codePoint>1114111?null:codePoint},decode=function(input){for(var length=(input=replace$1(input,plus," ")).length,result="",i=0;i<length;){var decodedChar=charAt$1(input,i);if("%"===decodedChar){if("%"===charAt$1(input,i+1)||i+3>length){result+="%",i++;continue}var octet=parseHexOctet(input,i+1);if(octet!=octet){result+=decodedChar,i++;continue}i+=2;var byteSequenceLength=getLeadingOnes(octet);if(0===byteSequenceLength)decodedChar=fromCharCode(octet);else{if(1===byteSequenceLength||byteSequenceLength>4){result+="�",i++;continue}for(var octets=[octet],sequenceIndex=1;sequenceIndex<byteSequenceLength&&!(++i+3>length||"%"!==charAt$1(input,i));){var nextByte=parseHexOctet(input,i+1);if(nextByte!=nextByte){i+=3;break}if(nextByte>191||nextByte<128)break;push$1(octets,nextByte),i+=2,sequenceIndex++}if(octets.length!==byteSequenceLength){result+="�";continue}var codePoint=utf8Decode(octets);null===codePoint?result+="�":decodedChar=fromCodePoint(codePoint)}}result+=decodedChar,i++}return result},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(match){return replacements[match]},serialize=function(it){return replace$1(encodeURIComponent$1(it),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function Iterator(params,kind){setInternalState$1(this,{type:"URLSearchParamsIterator",target:getInternalParamsState(params).entries,index:0,kind:kind})},"URLSearchParams",function next(){var state=getInternalIteratorState(this),target=state.target,index=state.index++;if(!target||index>=target.length)return state.target=null,createIterResultObject(void 0,!0);var entry=target[index];switch(state.kind){case"keys":return createIterResultObject(entry.key,!1);case"values":return createIterResultObject(entry.value,!1)}return createIterResultObject([entry.key,entry.value],!1)},!0),URLSearchParamsState=function(init){this.entries=[],this.url=null,void 0!==init&&(isObject(init)?this.parseObject(init):this.parseQuery("string"==typeof init?"?"===charAt$1(init,0)?stringSlice$1(init,1):init:$toString$1(init)))};URLSearchParamsState.prototype={type:"URLSearchParams",bindURL:function(url){this.url=url,this.update()},parseObject:function(object){var iterator,next,step,entryIterator,entryNext,first,second,entries=this.entries,iteratorMethod=getIteratorMethod(object);if(iteratorMethod)for(next=(iterator=getIterator(object,iteratorMethod)).next;!(step=call$1(next,iterator)).done;){if(entryNext=(entryIterator=getIterator(anObject(step.value))).next,(first=call$1(entryNext,entryIterator)).done||(second=call$1(entryNext,entryIterator)).done||!call$1(entryNext,entryIterator).done)throw new TypeError$2("Expected sequence with length 2");push$1(entries,{key:$toString$1(first.value),value:$toString$1(second.value)})}else for(var key in object)hasOwn$1(object,key)&&push$1(entries,{key:key,value:$toString$1(object[key])})},parseQuery:function(query){if(query)for(var attribute,entry,entries=this.entries,attributes=split$1(query,"&"),index=0;index<attributes.length;)(attribute=attributes[index++]).length&&(entry=split$1(attribute,"="),push$1(entries,{key:decode(shift$1(entry)),value:decode(join$1(entry,"="))}))},serialize:function(){for(var entry,entries=this.entries,result=[],index=0;index<entries.length;)entry=entries[index++],push$1(result,serialize(entry.key)+"="+serialize(entry.value));return join$1(result,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function URLSearchParams(){anInstance$1(this,URLSearchParamsPrototype);var state=setInternalState$1(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$1||(this.size=state.entries.length)},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function append(name,value){var state=getInternalParamsState(this);validateArgumentsLength$1(arguments.length,2),push$1(state.entries,{key:$toString$1(name),value:$toString$1(value)}),DESCRIPTORS$1||this.length++,state.updateURL()},delete:function(name){for(var state=getInternalParamsState(this),length=validateArgumentsLength$1(arguments.length,1),entries=state.entries,key=$toString$1(name),$value=length<2?void 0:arguments[1],value=void 0===$value?$value:$toString$1($value),index=0;index<entries.length;){var entry=entries[index];if(entry.key!==key||void 0!==value&&entry.value!==value)index++;else if(splice(entries,index,1),void 0!==value)break}DESCRIPTORS$1||(this.size=entries.length),state.updateURL()},get:function get(name){var entries=getInternalParamsState(this).entries;validateArgumentsLength$1(arguments.length,1);for(var key=$toString$1(name),index=0;index<entries.length;index++)if(entries[index].key===key)return entries[index].value;return null},getAll:function getAll(name){var entries=getInternalParamsState(this).entries;validateArgumentsLength$1(arguments.length,1);for(var key=$toString$1(name),result=[],index=0;index<entries.length;index++)entries[index].key===key&&push$1(result,entries[index].value);return result},has:function has(name){for(var entries=getInternalParamsState(this).entries,length=validateArgumentsLength$1(arguments.length,1),key=$toString$1(name),$value=length<2?void 0:arguments[1],value=void 0===$value?$value:$toString$1($value),index=0;index<entries.length;){var entry=entries[index++];if(entry.key===key&&(void 0===value||entry.value===value))return!0}return!1},set:function set(name,value){var state=getInternalParamsState(this);validateArgumentsLength$1(arguments.length,1);for(var entry,entries=state.entries,found=!1,key=$toString$1(name),val=$toString$1(value),index=0;index<entries.length;index++)(entry=entries[index]).key===key&&(found?splice(entries,index--,1):(found=!0,entry.value=val));found||push$1(entries,{key:key,value:val}),DESCRIPTORS$1||(this.size=entries.length),state.updateURL()},sort:function sort(){var state=getInternalParamsState(this);arraySort(state.entries,function(a,b){return a.key>b.key?1:-1}),state.updateURL()},forEach:function forEach(callback){for(var entry,entries=getInternalParamsState(this).entries,boundFunction=bind$1(callback,arguments.length>1?arguments[1]:void 0),index=0;index<entries.length;)boundFunction((entry=entries[index++]).value,entry.key,this)},keys:function keys(){return new URLSearchParamsIterator(this,"keys")},values:function values(){return new URLSearchParamsIterator(this,"values")},entries:function entries(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$1(URLSearchParamsPrototype,ITERATOR,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$1(URLSearchParamsPrototype,"toString",function toString(){return getInternalParamsState(this).serialize()},{enumerable:!0}),DESCRIPTORS$1&&defineBuiltInAccessor$1(URLSearchParamsPrototype,"size",{get:function size(){return getInternalParamsState(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,"URLSearchParams"),$$2({global:!0,constructor:!0,forced:!USE_NATIVE_URL$1},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL$1&&isCallable(Headers)){var headersHas=uncurryThis$1(HeadersPrototype.has),headersSet=uncurryThis$1(HeadersPrototype.set),wrapRequestOptions=function(init){if(isObject(init)){var headers,body=init.body;if("URLSearchParams"===classof(body))return headers=init.headers?new Headers(init.headers):new Headers,headersHas(headers,"content-type")||headersSet(headers,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create(init,{body:createPropertyDescriptor(0,$toString$1(body)),headers:createPropertyDescriptor(0,headers)})}return init};if(isCallable(nativeFetch)&&$$2({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function fetch(input){return nativeFetch(input,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function Request(input){return anInstance$1(this,RequestPrototype),new NativeRequest(input,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$2({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var EOF,$$1=_export,DESCRIPTORS=descriptors,USE_NATIVE_URL=urlConstructorDetection,globalThis$1=globalThis_1,bind=functionBindContext,uncurryThis=functionUncurryThis,defineBuiltIn=defineBuiltIn$i,defineBuiltInAccessor=defineBuiltInAccessor$b,anInstance=anInstance$8,hasOwn=hasOwnProperty_1,assign=objectAssign,arrayFrom=arrayFrom$1,arraySlice=arraySlice$a,codeAt=stringMultibyte.codeAt,toASCII=function(input){var i,label,encoded=[],labels=split$2(replace$2(toLowerCase$1(input),regexSeparators,"."),".");for(i=0;i<labels.length;i++)label=labels[i],push$2(encoded,exec$2(regexNonASCII,label)?"xn--"+encode(label):label);return join$2(encoded,".")},$toString=toString$n,setToStringTag=setToStringTag$c,validateArgumentsLength=validateArgumentsLength$5,URLSearchParamsModule={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},InternalStateModule=internalState,setInternalState=InternalStateModule.set,getInternalURLState=InternalStateModule.getterFor("URL"),URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,NativeURL=globalThis$1.URL,TypeError$1=globalThis$1.TypeError,parseInt$1=globalThis$1.parseInt,floor=Math.floor,pow=Math.pow,charAt=uncurryThis("".charAt),exec=uncurryThis(/./.exec),join=uncurryThis([].join),numberToString=uncurryThis(1.1.toString),pop=uncurryThis([].pop),push=uncurryThis([].push),replace=uncurryThis("".replace),shift=uncurryThis([].shift),split=uncurryThis("".split),stringSlice=uncurryThis("".slice),toLowerCase=uncurryThis("".toLowerCase),unshift=uncurryThis([].unshift),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,serializeHost=function(host){var result,index,compress,ignore0;if("number"==typeof host){for(result=[],index=0;index<4;index++)unshift(result,host%256),host=floor(host/256);return join(result,".")}if("object"==typeof host){for(result="",compress=function(ipv6){for(var maxIndex=null,maxLength=1,currStart=null,currLength=0,index=0;index<8;index++)0!==ipv6[index]?(currLength>maxLength&&(maxIndex=currStart,maxLength=currLength),currStart=null,currLength=0):(null===currStart&&(currStart=index),++currLength);return currLength>maxLength?currStart:maxIndex}(host),index=0;index<8;index++)ignore0&&0===host[index]||(ignore0&&(ignore0=!1),compress===index?(result+=index?":":"::",ignore0=!0):(result+=numberToString(host[index],16),index<7&&(result+=":")));return"["+result+"]"}return host},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(chr,set){var code=codeAt(chr,0);return code>32&&code<127&&!hasOwn(set,chr)?chr:encodeURIComponent(chr)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(string,normalized){var second;return 2===string.length&&exec(ALPHA,charAt(string,0))&&(":"===(second=charAt(string,1))||!normalized&&"|"===second)},startsWithWindowsDriveLetter=function(string){var third;return string.length>1&&isWindowsDriveLetter(stringSlice(string,0,2))&&(2===string.length||"/"===(third=charAt(string,2))||"\\"===third||"?"===third||"#"===third)},isSingleDot=function(segment){return"."===segment||"%2e"===toLowerCase(segment)},isDoubleDot=function(segment){return".."===(segment=toLowerCase(segment))||"%2e."===segment||".%2e"===segment||"%2e%2e"===segment},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(url,isBase,base){var baseState,failure,searchParams,urlString=$toString(url);if(isBase){if(failure=this.parse(urlString))throw new TypeError$1(failure);this.searchParams=null}else{if(void 0!==base&&(baseState=new URLState(base,!0)),failure=this.parse(urlString,null,baseState))throw new TypeError$1(failure);(searchParams=getInternalSearchParamsState(new URLSearchParams$1)).bindURL(this),this.searchParams=searchParams}};URLState.prototype={type:"URL",parse:function(input,stateOverride,base){var codePoints,chr,bufferCodePoints,failure,url=this,state=stateOverride||SCHEME_START,pointer=0,buffer="",seenAt=!1,seenBracket=!1,seenPasswordToken=!1;for(input=$toString(input),stateOverride||(url.scheme="",url.username="",url.password="",url.host=null,url.port=null,url.path=[],url.query=null,url.fragment=null,url.cannotBeABaseURL=!1,input=replace(input,LEADING_C0_CONTROL_OR_SPACE,""),input=replace(input,TRAILING_C0_CONTROL_OR_SPACE,"$1")),input=replace(input,TAB_AND_NEW_LINE,""),codePoints=arrayFrom(input);pointer<=codePoints.length;){switch(chr=codePoints[pointer],state){case SCHEME_START:if(!chr||!exec(ALPHA,chr)){if(stateOverride)return"Invalid scheme";state=NO_SCHEME;continue}buffer+=toLowerCase(chr),state=SCHEME;break;case SCHEME:if(chr&&(exec(ALPHANUMERIC,chr)||"+"===chr||"-"===chr||"."===chr))buffer+=toLowerCase(chr);else{if(":"!==chr){if(stateOverride)return"Invalid scheme";buffer="",state=NO_SCHEME,pointer=0;continue}if(stateOverride&&(url.isSpecial()!==hasOwn(specialSchemes,buffer)||"file"===buffer&&(url.includesCredentials()||null!==url.port)||"file"===url.scheme&&!url.host))return;if(url.scheme=buffer,stateOverride)return void(url.isSpecial()&&specialSchemes[url.scheme]===url.port&&(url.port=null));buffer="","file"===url.scheme?state=FILE:url.isSpecial()&&base&&base.scheme===url.scheme?state=SPECIAL_RELATIVE_OR_AUTHORITY:url.isSpecial()?state=SPECIAL_AUTHORITY_SLASHES:"/"===codePoints[pointer+1]?(state=PATH_OR_AUTHORITY,pointer++):(url.cannotBeABaseURL=!0,push(url.path,""),state=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!==chr)return"Invalid scheme";if(base.cannotBeABaseURL&&"#"===chr){url.scheme=base.scheme,url.path=arraySlice(base.path),url.query=base.query,url.fragment="",url.cannotBeABaseURL=!0,state=FRAGMENT;break}state="file"===base.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!==chr||"/"!==codePoints[pointer+1]){state=RELATIVE;continue}state=SPECIAL_AUTHORITY_IGNORE_SLASHES,pointer++;break;case PATH_OR_AUTHORITY:if("/"===chr){state=AUTHORITY;break}state=PATH;continue;case RELATIVE:if(url.scheme=base.scheme,chr===EOF)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.query=base.query;else if("/"===chr||"\\"===chr&&url.isSpecial())state=RELATIVE_SLASH;else if("?"===chr)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.query="",state=QUERY;else{if("#"!==chr){url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.path.length--,state=PATH;continue}url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.query=base.query,url.fragment="",state=FRAGMENT}break;case RELATIVE_SLASH:if(!url.isSpecial()||"/"!==chr&&"\\"!==chr){if("/"!==chr){url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,state=PATH;continue}state=AUTHORITY}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(state=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!==chr||"/"!==charAt(buffer,pointer+1))continue;pointer++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!==chr&&"\\"!==chr){state=AUTHORITY;continue}break;case AUTHORITY:if("@"===chr){seenAt&&(buffer="%40"+buffer),seenAt=!0,bufferCodePoints=arrayFrom(buffer);for(var i=0;i<bufferCodePoints.length;i++){var codePoint=bufferCodePoints[i];if(":"!==codePoint||seenPasswordToken){var encodedCodePoints=percentEncode(codePoint,userinfoPercentEncodeSet);seenPasswordToken?url.password+=encodedCodePoints:url.username+=encodedCodePoints}else seenPasswordToken=!0}buffer=""}else if(chr===EOF||"/"===chr||"?"===chr||"#"===chr||"\\"===chr&&url.isSpecial()){if(seenAt&&""===buffer)return"Invalid authority";pointer-=arrayFrom(buffer).length+1,buffer="",state=HOST}else buffer+=chr;break;case HOST:case HOSTNAME:if(stateOverride&&"file"===url.scheme){state=FILE_HOST;continue}if(":"!==chr||seenBracket){if(chr===EOF||"/"===chr||"?"===chr||"#"===chr||"\\"===chr&&url.isSpecial()){if(url.isSpecial()&&""===buffer)return"Invalid host";if(stateOverride&&""===buffer&&(url.includesCredentials()||null!==url.port))return;if(failure=url.parseHost(buffer))return failure;if(buffer="",state=PATH_START,stateOverride)return;continue}"["===chr?seenBracket=!0:"]"===chr&&(seenBracket=!1),buffer+=chr}else{if(""===buffer)return"Invalid host";if(failure=url.parseHost(buffer))return failure;if(buffer="",state=PORT,stateOverride===HOSTNAME)return}break;case PORT:if(!exec(DIGIT,chr)){if(chr===EOF||"/"===chr||"?"===chr||"#"===chr||"\\"===chr&&url.isSpecial()||stateOverride){if(""!==buffer){var port=parseInt$1(buffer,10);if(port>65535)return"Invalid port";url.port=url.isSpecial()&&port===specialSchemes[url.scheme]?null:port,buffer=""}if(stateOverride)return;state=PATH_START;continue}return"Invalid port"}buffer+=chr;break;case FILE:if(url.scheme="file","/"===chr||"\\"===chr)state=FILE_SLASH;else{if(!base||"file"!==base.scheme){state=PATH;continue}switch(chr){case EOF:url.host=base.host,url.path=arraySlice(base.path),url.query=base.query;break;case"?":url.host=base.host,url.path=arraySlice(base.path),url.query="",state=QUERY;break;case"#":url.host=base.host,url.path=arraySlice(base.path),url.query=base.query,url.fragment="",state=FRAGMENT;break;default:startsWithWindowsDriveLetter(join(arraySlice(codePoints,pointer),""))||(url.host=base.host,url.path=arraySlice(base.path),url.shortenPath()),state=PATH;continue}}break;case FILE_SLASH:if("/"===chr||"\\"===chr){state=FILE_HOST;break}base&&"file"===base.scheme&&!startsWithWindowsDriveLetter(join(arraySlice(codePoints,pointer),""))&&(isWindowsDriveLetter(base.path[0],!0)?push(url.path,base.path[0]):url.host=base.host),state=PATH;continue;case FILE_HOST:if(chr===EOF||"/"===chr||"\\"===chr||"?"===chr||"#"===chr){if(!stateOverride&&isWindowsDriveLetter(buffer))state=PATH;else if(""===buffer){if(url.host="",stateOverride)return;state=PATH_START}else{if(failure=url.parseHost(buffer))return failure;if("localhost"===url.host&&(url.host=""),stateOverride)return;buffer="",state=PATH_START}continue}buffer+=chr;break;case PATH_START:if(url.isSpecial()){if(state=PATH,"/"!==chr&&"\\"!==chr)continue}else if(stateOverride||"?"!==chr)if(stateOverride||"#"!==chr){if(chr!==EOF&&(state=PATH,"/"!==chr))continue}else url.fragment="",state=FRAGMENT;else url.query="",state=QUERY;break;case PATH:if(chr===EOF||"/"===chr||"\\"===chr&&url.isSpecial()||!stateOverride&&("?"===chr||"#"===chr)){if(isDoubleDot(buffer)?(url.shortenPath(),"/"===chr||"\\"===chr&&url.isSpecial()||push(url.path,"")):isSingleDot(buffer)?"/"===chr||"\\"===chr&&url.isSpecial()||push(url.path,""):("file"===url.scheme&&!url.path.length&&isWindowsDriveLetter(buffer)&&(url.host&&(url.host=""),buffer=charAt(buffer,0)+":"),push(url.path,buffer)),buffer="","file"===url.scheme&&(chr===EOF||"?"===chr||"#"===chr))for(;url.path.length>1&&""===url.path[0];)shift(url.path);"?"===chr?(url.query="",state=QUERY):"#"===chr&&(url.fragment="",state=FRAGMENT)}else buffer+=percentEncode(chr,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"===chr?(url.query="",state=QUERY):"#"===chr?(url.fragment="",state=FRAGMENT):chr!==EOF&&(url.path[0]+=percentEncode(chr,C0ControlPercentEncodeSet));break;case QUERY:stateOverride||"#"!==chr?chr!==EOF&&("'"===chr&&url.isSpecial()?url.query+="%27":url.query+="#"===chr?"%23":percentEncode(chr,C0ControlPercentEncodeSet)):(url.fragment="",state=FRAGMENT);break;case FRAGMENT:chr!==EOF&&(url.fragment+=percentEncode(chr,fragmentPercentEncodeSet))}pointer++}},parseHost:function(input){var result,codePoints,index;if("["===charAt(input,0)){if("]"!==charAt(input,input.length-1))return"Invalid host";if(result=function(input){var value,length,numbersSeen,ipv4Piece,number,swaps,swap,address=[0,0,0,0,0,0,0,0],pieceIndex=0,compress=null,pointer=0,chr=function(){return charAt(input,pointer)};if(":"===chr()){if(":"!==charAt(input,1))return;pointer+=2,compress=++pieceIndex}for(;chr();){if(8===pieceIndex)return;if(":"!==chr()){for(value=length=0;length<4&&exec(HEX,chr());)value=16*value+parseInt$1(chr(),16),pointer++,length++;if("."===chr()){if(0===length)return;if(pointer-=length,pieceIndex>6)return;for(numbersSeen=0;chr();){if(ipv4Piece=null,numbersSeen>0){if(!("."===chr()&&numbersSeen<4))return;pointer++}if(!exec(DIGIT,chr()))return;for(;exec(DIGIT,chr());){if(number=parseInt$1(chr(),10),null===ipv4Piece)ipv4Piece=number;else{if(0===ipv4Piece)return;ipv4Piece=10*ipv4Piece+number}if(ipv4Piece>255)return;pointer++}address[pieceIndex]=256*address[pieceIndex]+ipv4Piece,2!==++numbersSeen&&4!==numbersSeen||pieceIndex++}if(4!==numbersSeen)return;break}if(":"===chr()){if(pointer++,!chr())return}else if(chr())return;address[pieceIndex++]=value}else{if(null!==compress)return;pointer++,compress=++pieceIndex}}if(null!==compress)for(swaps=pieceIndex-compress,pieceIndex=7;0!==pieceIndex&&swaps>0;)swap=address[pieceIndex],address[pieceIndex--]=address[compress+swaps-1],address[compress+--swaps]=swap;else if(8!==pieceIndex)return;return address}(stringSlice(input,1,-1)),!result)return"Invalid host";this.host=result}else if(this.isSpecial()){if(input=toASCII(input),exec(FORBIDDEN_HOST_CODE_POINT,input))return"Invalid host";if(result=function(input){var partsLength,numbers,index,part,radix,number,ipv4,parts=split(input,".");if(parts.length&&""===parts[parts.length-1]&&parts.length--,(partsLength=parts.length)>4)return input;for(numbers=[],index=0;index<partsLength;index++){if(""===(part=parts[index]))return input;if(radix=10,part.length>1&&"0"===charAt(part,0)&&(radix=exec(HEX_START,part)?16:8,part=stringSlice(part,8===radix?1:2)),""===part)number=0;else{if(!exec(10===radix?DEC:8===radix?OCT:HEX,part))return input;number=parseInt$1(part,radix)}push(numbers,number)}for(index=0;index<partsLength;index++)if(number=numbers[index],index===partsLength-1){if(number>=pow(256,5-partsLength))return null}else if(number>255)return null;for(ipv4=pop(numbers),index=0;index<numbers.length;index++)ipv4+=numbers[index]*pow(256,3-index);return ipv4}(input),null===result)return"Invalid host";this.host=result}else{if(exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT,input))return"Invalid host";for(result="",codePoints=arrayFrom(input),index=0;index<codePoints.length;index++)result+=percentEncode(codePoints[index],C0ControlPercentEncodeSet);this.host=result}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return hasOwn(specialSchemes,this.scheme)},shortenPath:function(){var path=this.path,pathSize=path.length;!pathSize||"file"===this.scheme&&1===pathSize&&isWindowsDriveLetter(path[0],!0)||path.length--},serialize:function(){var url=this,scheme=url.scheme,username=url.username,password=url.password,host=url.host,port=url.port,path=url.path,query=url.query,fragment=url.fragment,output=scheme+":";return null!==host?(output+="//",url.includesCredentials()&&(output+=username+(password?":"+password:"")+"@"),output+=serializeHost(host),null!==port&&(output+=":"+port)):"file"===scheme&&(output+="//"),output+=url.cannotBeABaseURL?path[0]:path.length?"/"+join(path,"/"):"",null!==query&&(output+="?"+query),null!==fragment&&(output+="#"+fragment),output},setHref:function(href){var failure=this.parse(href);if(failure)throw new TypeError$1(failure);this.searchParams.update()},getOrigin:function(){var scheme=this.scheme,port=this.port;if("blob"===scheme)try{return new URLConstructor(scheme.path[0]).origin}catch(error){return"null"}return"file"!==scheme&&this.isSpecial()?scheme+"://"+serializeHost(this.host)+(null!==port?":"+port:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(protocol){this.parse($toString(protocol)+":",SCHEME_START)},getUsername:function(){return this.username},setUsername:function(username){var codePoints=arrayFrom($toString(username));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<codePoints.length;i++)this.username+=percentEncode(codePoints[i],userinfoPercentEncodeSet)}},getPassword:function(){return this.password},setPassword:function(password){var codePoints=arrayFrom($toString(password));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<codePoints.length;i++)this.password+=percentEncode(codePoints[i],userinfoPercentEncodeSet)}},getHost:function(){var host=this.host,port=this.port;return null===host?"":null===port?serializeHost(host):serializeHost(host)+":"+port},setHost:function(host){this.cannotBeABaseURL||this.parse(host,HOST)},getHostname:function(){var host=this.host;return null===host?"":serializeHost(host)},setHostname:function(hostname){this.cannotBeABaseURL||this.parse(hostname,HOSTNAME)},getPort:function(){var port=this.port;return null===port?"":$toString(port)},setPort:function(port){this.cannotHaveUsernamePasswordPort()||(""===(port=$toString(port))?this.port=null:this.parse(port,PORT))},getPathname:function(){var path=this.path;return this.cannotBeABaseURL?path[0]:path.length?"/"+join(path,"/"):""},setPathname:function(pathname){this.cannotBeABaseURL||(this.path=[],this.parse(pathname,PATH_START))},getSearch:function(){var query=this.query;return query?"?"+query:""},setSearch:function(search){""===(search=$toString(search))?this.query=null:("?"===charAt(search,0)&&(search=stringSlice(search,1)),this.query="",this.parse(search,QUERY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var fragment=this.fragment;return fragment?"#"+fragment:""},setHash:function(hash){""!==(hash=$toString(hash))?("#"===charAt(hash,0)&&(hash=stringSlice(hash,1)),this.fragment="",this.parse(hash,FRAGMENT)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor=function URL(url){var that=anInstance(this,URLPrototype),base=validateArgumentsLength(arguments.length,1)>1?arguments[1]:void 0,state=setInternalState(that,new URLState(url,!1,base));DESCRIPTORS||(that.href=state.serialize(),that.origin=state.getOrigin(),that.protocol=state.getProtocol(),that.username=state.getUsername(),that.password=state.getPassword(),that.host=state.getHost(),that.hostname=state.getHostname(),that.port=state.getPort(),that.pathname=state.getPathname(),that.search=state.getSearch(),that.searchParams=state.getSearchParams(),that.hash=state.getHash())},URLPrototype=URLConstructor.prototype,accessorDescriptor=function(getter,setter){return{get:function(){return getInternalURLState(this)[getter]()},set:setter&&function(value){return getInternalURLState(this)[setter](value)},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 toJSON(){return getInternalURLState(this).serialize()},{enumerable:!0}),defineBuiltIn(URLPrototype,"toString",function toString(){return getInternalURLState(this).serialize()},{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&defineBuiltIn(URLConstructor,"createObjectURL",bind(nativeCreateObjectURL,NativeURL)),nativeRevokeObjectURL&&defineBuiltIn(URLConstructor,"revokeObjectURL",bind(nativeRevokeObjectURL,NativeURL))}setToStringTag(URLConstructor,"URL"),$$1({global:!0,constructor:!0,forced:!USE_NATIVE_URL,sham:!DESCRIPTORS},{URL:URLConstructor});var call=functionCall;_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return call(URL.prototype.toString,this)}});var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};function __extends(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}var _a,ErrorCategory,NetworkErrorCode,OperationErrorCode,ResourceErrorCode,SystemErrorCode,ConfigErrorCode,__assign=function(){return __assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},__assign.apply(this,arguments)};function __awaiter(thisArg,_arguments,P,generator){return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}function __generator(thisArg,body){var f,y,t,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=verb(0),g.throw=verb(1),g.return=verb(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return function step(op){if(f)throw new TypeError("Generator is already executing.");for(;g&&(g=0,op[0]&&(_=0)),_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=_.trys,(t=t.length>0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}([n,v])}}}function __values(o){var s="function"==typeof Symbol&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}"function"==typeof SuppressedError&&SuppressedError,exports.ErrorCategory=void 0,(ErrorCategory=exports.ErrorCategory||(exports.ErrorCategory={})).NETWORK="NETWORK",ErrorCategory.OPERATION="OPERATION",ErrorCategory.RESOURCE="RESOURCE",ErrorCategory.SYSTEM="SYSTEM",ErrorCategory.CONFIG="CONFIG",exports.NetworkErrorCode=void 0,(NetworkErrorCode=exports.NetworkErrorCode||(exports.NetworkErrorCode={}))[NetworkErrorCode.CONNECTION_FAILED=1001]="CONNECTION_FAILED",NetworkErrorCode[NetworkErrorCode.REQUEST_TIMEOUT=1002]="REQUEST_TIMEOUT",NetworkErrorCode[NetworkErrorCode.SERVER_ERROR=1003]="SERVER_ERROR",NetworkErrorCode[NetworkErrorCode.UNAUTHORIZED=1004]="UNAUTHORIZED",exports.OperationErrorCode=void 0,(OperationErrorCode=exports.OperationErrorCode||(exports.OperationErrorCode={}))[OperationErrorCode.UNITY_NOT_INITIALIZED=2001]="UNITY_NOT_INITIALIZED",OperationErrorCode[OperationErrorCode.AVATAR_NOT_LOADED=2002]="AVATAR_NOT_LOADED",OperationErrorCode[OperationErrorCode.OPERATION_FAILED=2003]="OPERATION_FAILED",OperationErrorCode[OperationErrorCode.OPERATION_TIMEOUT=2004]="OPERATION_TIMEOUT",OperationErrorCode[OperationErrorCode.OPERATION_CANCELLED=2005]="OPERATION_CANCELLED",OperationErrorCode[OperationErrorCode.BROADCAST_EQUITY_NOT_EXIST=2006]="BROADCAST_EQUITY_NOT_EXIST",OperationErrorCode[OperationErrorCode.BROADCAST_EQUITY_NOT_ENOUGH=2007]="BROADCAST_EQUITY_NOT_ENOUGH",OperationErrorCode[OperationErrorCode.BROADCAST_EQUITY_FREEZE_FAILED=2008]="BROADCAST_EQUITY_FREEZE_FAILED",exports.ResourceErrorCode=void 0,(ResourceErrorCode=exports.ResourceErrorCode||(exports.ResourceErrorCode={}))[ResourceErrorCode.LOAD_FAILED=3001]="LOAD_FAILED",ResourceErrorCode[ResourceErrorCode.FILE_CORRUPTED=3002]="FILE_CORRUPTED",ResourceErrorCode[ResourceErrorCode.NOT_FOUND=3003]="NOT_FOUND",ResourceErrorCode[ResourceErrorCode.UNSUPPORTED_FORMAT=3004]="UNSUPPORTED_FORMAT",ResourceErrorCode[ResourceErrorCode.VERSION_INCOMPATIBLE=3005]="VERSION_INCOMPATIBLE",exports.SystemErrorCode=void 0,(SystemErrorCode=exports.SystemErrorCode||(exports.SystemErrorCode={}))[SystemErrorCode.OUT_OF_MEMORY=4001]="OUT_OF_MEMORY",SystemErrorCode[SystemErrorCode.GPU_NOT_SUPPORTED=4002]="GPU_NOT_SUPPORTED",SystemErrorCode[SystemErrorCode.WEBGL_NOT_SUPPORTED=4003]="WEBGL_NOT_SUPPORTED",SystemErrorCode[SystemErrorCode.BROWSER_NOT_COMPATIBLE=4004]="BROWSER_NOT_COMPATIBLE",exports.ConfigErrorCode=void 0,(ConfigErrorCode=exports.ConfigErrorCode||(exports.ConfigErrorCode={}))[ConfigErrorCode.INVALID_CONFIG=5001]="INVALID_CONFIG",ConfigErrorCode[ConfigErrorCode.MISSING_REQUIRED_PARAM=5002]="MISSING_REQUIRED_PARAM",ConfigErrorCode[ConfigErrorCode.PARAM_OUT_OF_RANGE=5003]="PARAM_OUT_OF_RANGE",ConfigErrorCode[ConfigErrorCode.INVALID_JSON_FORMAT=5004]="INVALID_JSON_FORMAT";var ERROR_CODE_MAP=((_a={})[exports.NetworkErrorCode.CONNECTION_FAILED]={category:exports.ErrorCategory.NETWORK,message:"网络连接失败"},_a[exports.NetworkErrorCode.REQUEST_TIMEOUT]={category:exports.ErrorCategory.NETWORK,message:"请求超时"},_a[exports.NetworkErrorCode.SERVER_ERROR]={category:exports.ErrorCategory.NETWORK,message:"服务器错误"},_a[exports.NetworkErrorCode.UNAUTHORIZED]={category:exports.ErrorCategory.NETWORK,message:"未授权访问"},_a[exports.OperationErrorCode.UNITY_NOT_INITIALIZED]={category:exports.ErrorCategory.OPERATION,message:"Unity实例未初始化"},_a[exports.OperationErrorCode.AVATAR_NOT_LOADED]={category:exports.ErrorCategory.OPERATION,message:"数字人未加载"},_a[exports.OperationErrorCode.OPERATION_FAILED]={category:exports.ErrorCategory.OPERATION,message:"操作执行失败"},_a[exports.OperationErrorCode.OPERATION_TIMEOUT]={category:exports.ErrorCategory.OPERATION,message:"操作超时"},_a[exports.OperationErrorCode.OPERATION_CANCELLED]={category:exports.ErrorCategory.OPERATION,message:"操作被取消"},_a[exports.OperationErrorCode.BROADCAST_EQUITY_NOT_EXIST]={category:exports.ErrorCategory.OPERATION,message:"用户权益额度不存在"},_a[exports.OperationErrorCode.BROADCAST_EQUITY_NOT_ENOUGH]={category:exports.ErrorCategory.OPERATION,message:"用户权益额度不足"},_a[exports.OperationErrorCode.BROADCAST_EQUITY_FREEZE_FAILED]={category:exports.ErrorCategory.OPERATION,message:"用户权益额度冻结失败"},_a[exports.ResourceErrorCode.LOAD_FAILED]={category:exports.ErrorCategory.RESOURCE,message:"资源加载失败"},_a[exports.ResourceErrorCode.FILE_CORRUPTED]={category:exports.ErrorCategory.RESOURCE,message:"资源文件损坏"},_a[exports.ResourceErrorCode.NOT_FOUND]={category:exports.ErrorCategory.RESOURCE,message:"资源不存在"},_a[exports.ResourceErrorCode.UNSUPPORTED_FORMAT]={category:exports.ErrorCategory.RESOURCE,message:"资源格式不支持"},_a[exports.ResourceErrorCode.VERSION_INCOMPATIBLE]={category:exports.ErrorCategory.RESOURCE,message:"资源版本不兼容"},_a[exports.SystemErrorCode.OUT_OF_MEMORY]={category:exports.ErrorCategory.SYSTEM,message:"内存不足"},_a[exports.SystemErrorCode.GPU_NOT_SUPPORTED]={category:exports.ErrorCategory.SYSTEM,message:"GPU不支持"},_a[exports.SystemErrorCode.WEBGL_NOT_SUPPORTED]={category:exports.ErrorCategory.SYSTEM,message:"WebGL不支持"},_a[exports.SystemErrorCode.BROWSER_NOT_COMPATIBLE]={category:exports.ErrorCategory.SYSTEM,message:"浏览器不兼容"},_a[exports.ConfigErrorCode.INVALID_CONFIG]={category:exports.ErrorCategory.CONFIG,message:"配置参数无效"},_a[exports.ConfigErrorCode.MISSING_REQUIRED_PARAM]={category:exports.ErrorCategory.CONFIG,message:"必需参数缺失"},_a[exports.ConfigErrorCode.PARAM_OUT_OF_RANGE]={category:exports.ErrorCategory.CONFIG,message:"参数值超出范围"},_a[exports.ConfigErrorCode.INVALID_JSON_FORMAT]={category:exports.ErrorCategory.CONFIG,message:"JSON格式错误"},_a);function getErrorInfo(code){return ERROR_CODE_MAP[code]||{category:exports.ErrorCategory.SYSTEM,message:"未知错误"}}var LogLevel,SDKError=function(_super){function SDKError(code,message,originalError){var _this=this,errorInfo=getErrorInfo(code),finalMessage=message||errorInfo.message;return(_this=_super.call(this,finalMessage)||this).name="SDKError",_this.code=code,_this.category=errorInfo.category,_this.message=finalMessage,_this.timestamp=Date.now(),originalError&&originalError.stack?_this.stack=originalError.stack:Error.captureStackTrace&&Error.captureStackTrace(_this,SDKError),_this}return __extends(SDKError,_super),SDKError.prototype.toJSON=function(){return{name:this.name,code:this.code,category:this.category,message:this.message,timestamp:this.timestamp}},SDKError.createNetworkError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createOperationError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createResourceError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createSystemError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createConfigError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createFromUnityError=function(unityCode,message){switch(unityCode){case 100:return new SDKError(exports.ResourceErrorCode.LOAD_FAILED,message);case 200:return new SDKError(exports.NetworkErrorCode.CONNECTION_FAILED,message);case 300:case 700:return new SDKError(exports.ConfigErrorCode.INVALID_CONFIG,message);case 400:return new SDKError(exports.OperationErrorCode.OPERATION_FAILED,message);case 500:return new SDKError(exports.SystemErrorCode.OUT_OF_MEMORY,message);case 600:return new SDKError(exports.OperationErrorCode.OPERATION_CANCELLED,message);default:return new SDKError(3001,message||"Unity错误 (错误码: ".concat(unityCode,")"))}},SDKError}(Error);!function(LogLevel){LogLevel.DEBUG="debug",LogLevel.INFO="info",LogLevel.WARN="warn",LogLevel.ERROR="error"}(LogLevel||(LogLevel={}));var UnityOperationStatus,SimpleLogger=function(){function SimpleLogger(enableDebug){void 0===enableDebug&&(enableDebug=!1),this.enableDebug=enableDebug}return SimpleLogger.prototype.pad=function(num,len){for(var s=String(num);s.length<len;)s="0".concat(s);return s},SimpleLogger.prototype.getTimestamp=function(){var now=new Date,hours=this.pad(now.getHours(),2),minutes=this.pad(now.getMinutes(),2),seconds=this.pad(now.getSeconds(),2),milliseconds=this.pad(now.getMilliseconds(),3).slice(0,2);return"[".concat(hours,":").concat(minutes,":").concat(seconds,".").concat(milliseconds,"]")},SimpleLogger.prototype.debug=function(message,data){this.enableDebug&&console.debug("[SDK DEBUG]".concat(this.getTimestamp()," ").concat(message),data)},SimpleLogger.prototype.info=function(message,data){console.info("[SDK INFO]".concat(this.getTimestamp()," ").concat(message),data)},SimpleLogger.prototype.warn=function(message,data){console.warn("[SDK WARN]".concat(this.getTimestamp()," ").concat(message),data)},SimpleLogger.prototype.error=function(message,error,data){console.error("[SDK ERROR]".concat(this.getTimestamp()," ").concat(message),error,error instanceof SDKError?error.code:null,data)},SimpleLogger}();exports.UnityOperationStatus=void 0,(UnityOperationStatus=exports.UnityOperationStatus||(exports.UnityOperationStatus={}))[UnityOperationStatus.SUCCESS=0]="SUCCESS",UnityOperationStatus[UnityOperationStatus.FAILURE=1]="FAILURE",UnityOperationStatus[UnityOperationStatus.TIMEOUT=2]="TIMEOUT",UnityOperationStatus[UnityOperationStatus.CANCELLED=3]="CANCELLED";var AvatarOperationType,AvatarCameraType,DEFAULT_CONFIG={targetObjectName:"AvatarSDK",timeout:3e4,enableDebugLog:!1,maxRetries:0},UnityBaseService=function(){function UnityBaseService(config){this.pendingCallbacks=new Map;var finalConfig=__assign(__assign({},DEFAULT_CONFIG),config);this.unityInstance=finalConfig.unityInstance,this.targetObjectName=finalConfig.targetObjectName,this.timeout=finalConfig.timeout||DEFAULT_CONFIG.timeout,this.maxRetries=finalConfig.maxRetries,this.instanceId=finalConfig.instanceId||"default",this.logger=new SimpleLogger(finalConfig.enableDebugLog),this.initializeGlobalCallback(),this.logger.debug("Unity service initialized",{config:finalConfig})}return Object.defineProperty(UnityBaseService.prototype,"uniqueCallbackName",{get:function get(){return"".concat(this.callbackFunctionName,"_").concat(this.instanceId)},enumerable:!1,configurable:!0}),UnityBaseService.prototype.handleCallback=function(operation,code,message,data){var dataObj=data?JSON.parse(data):void 0;this.logger.warn("[ Received Unity callback ]",{operation:operation,code:code,message:message,data:dataObj,originalData:data});var callback=this.pendingCallbacks.get(operation);if(callback){callback.timer&&clearTimeout(callback.timer);var response={success:code===exports.UnityOperationStatus.SUCCESS,message:message,errorCode:code,data:dataObj};try{if(code===exports.UnityOperationStatus.SUCCESS)callback.resolve(response),this.logger.debug("Operation '".concat(operation,"' completed successfully"));else{var error=SDKError.createFromUnityError(code,"Unity operation '".concat(operation,"' failed: ").concat(message));callback.reject(error),this.logger.error("Operation '".concat(operation,"' failed"),error)}}catch(error){this.logger.error("Error handling callback for operation '".concat(operation,"'"),error)}finally{this.pendingCallbacks.delete(operation)}}else this.logger.warn("No pending callback for operation: ".concat(operation))},UnityBaseService.prototype.setupCallback=function(operation){var _this=this;return this.clearCallback(operation),new Promise(function(resolve,reject){var timer=setTimeout(function(){_this.pendingCallbacks.delete(operation);var timeoutError=new SDKError(exports.OperationErrorCode.OPERATION_TIMEOUT,"Unity operation '".concat(operation,"' timed out after ").concat(_this.timeout,"ms"));_this.logger.error("Operation '".concat(operation,"' timed out"),timeoutError),reject(timeoutError)},_this.timeout);_this.pendingCallbacks.set(operation,{resolve:resolve,reject:reject,timer:timer,retries:0}),_this.logger.debug("Callback setup for operation '".concat(operation,"' with timeout ").concat(_this.timeout,"ms"))})},UnityBaseService.prototype.clearCallback=function(operation){var callback=this.pendingCallbacks.get(operation);callback&&(callback.timer&&clearTimeout(callback.timer),this.pendingCallbacks.delete(operation),this.logger.debug("Cleared callback for operation '".concat(operation,"'")))},UnityBaseService.prototype.clearAllCallbacks=function(){this.pendingCallbacks.forEach(function(callback){callback.timer&&clearTimeout(callback.timer)}),this.pendingCallbacks.clear(),this.logger.debug("Cleared all pending callbacks")},UnityBaseService.prototype.sendMessage=function(methodName,parameter){if(!this.isUnityAvailable())throw new SDKError(exports.OperationErrorCode.UNITY_NOT_INITIALIZED,"Unity实例未初始化");try{this.logger.warn("[ Sending message ]: ".concat(this.targetObjectName,".").concat(methodName),parameter);var paramString=parameter?JSON.stringify(parameter):"";this.unityInstance.SendMessage(this.targetObjectName,methodName,paramString)}catch(error){var serviceError=new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"Failed to send Unity message: ".concat(methodName),error);throw this.logger.error("Failed to send Unity message: ".concat(methodName),serviceError),serviceError}},UnityBaseService.prototype.sendAsyncMessage=function(methodName,operation,parameter){return __awaiter(this,void 0,void 0,function(){var callbackPromise,fullParameter,error_1;return __generator(this,function(_a){switch(_a.label){case 0:if(!this.isUnityAvailable())throw new SDKError(exports.OperationErrorCode.UNITY_NOT_INITIALIZED,"Unity实例未初始化");_a.label=1;case 1:return _a.trys.push([1,3,,6]),callbackPromise=this.setupCallback(operation),fullParameter=__assign(__assign({},parameter),{callbackFun:this.uniqueCallbackName,operationType:operation}),this.sendMessage(methodName,fullParameter),[4,callbackPromise];case 2:return[2,_a.sent()];case 3:return error_1=_a.sent(),this.clearCallback(operation),this.maxRetries>0&&error_1 instanceof SDKError&&error_1.code===exports.OperationErrorCode.OPERATION_TIMEOUT?[4,this.retryOperation(operation,methodName,parameter)]:[3,5];case 4:return[2,_a.sent()];case 5:throw error_1;case 6:return[2]}})})},UnityBaseService.prototype.destroy=function(){this.clearAllCallbacks(),window[this.uniqueCallbackName]&&(delete window[this.uniqueCallbackName],this.logger.debug("Global callback unregistered: ".concat(this.uniqueCallbackName))),this.logger.info("Unity service destroyed")},UnityBaseService.prototype.isUnityAvailable=function(){return null!==this.unityInstance&&"function"==typeof this.unityInstance.SendMessage},UnityBaseService.prototype.getPendingCallbackCount=function(){return this.pendingCallbacks.size},UnityBaseService.prototype.initializeGlobalCallback=function(){var _this=this;window[this.uniqueCallbackName]=function(operation,code,message,data){_this.handleCallback(operation,code,message,data)},this.logger.warn("Global callback registered: ".concat(this.uniqueCallbackName))},UnityBaseService.prototype.retryOperation=function(operation,methodName,parameter){return __awaiter(this,void 0,void 0,function(){var lastError,_loop_1,this_1,attempt,state_1;return __generator(this,function(_a){switch(_a.label){case 0:lastError=null,_loop_1=function _loop_1(attempt){var _b,error_2;return __generator(this,function(_c){switch(_c.label){case 0:return _c.trys.push([0,4,,5]),attempt>0?(this_1.logger.debug("Retrying operation '".concat(operation,"', attempt ").concat(attempt,"/").concat(this_1.maxRetries)),[4,new Promise(function(resolve){return setTimeout(resolve,1e3*Math.pow(2,attempt))})]):[3,2];case 1:_c.sent(),_c.label=2;case 2:return _b={},[4,this_1.sendAsyncMessage(methodName,operation,parameter)];case 3:return[2,(_b.value=_c.sent(),_b)];case 4:if(error_2=_c.sent(),lastError=error_2,this_1.logger.warn("Operation '".concat(operation,"' failed, attempt ").concat(attempt+1,"/").concat(this_1.maxRetries+1),error_2),error_2 instanceof SDKError&&error_2.code===exports.OperationErrorCode.OPERATION_TIMEOUT&&attempt<this_1.maxRetries)return[2,"continue"];if(!(error_2 instanceof SDKError&&error_2.code===exports.OperationErrorCode.OPERATION_TIMEOUT)||attempt>=this_1.maxRetries)throw error_2;return[3,5];case 5:return[2]}})},this_1=this,attempt=0,_a.label=1;case 1:return attempt<=this.maxRetries?[5,_loop_1(attempt)]:[3,4];case 2:if("object"===_typeof(state_1=_a.sent()))return[2,state_1.value];_a.label=3;case 3:return attempt++,[3,1];case 4:throw lastError||new SDKError(exports.OperationErrorCode.OPERATION_TIMEOUT,"All retry attempts failed for operation: ".concat(operation))}})})},UnityBaseService}();exports.AvatarOperationType=void 0,(AvatarOperationType=exports.AvatarOperationType||(exports.AvatarOperationType={})).INITIALIZE_AVATAR="initializeAvatar",AvatarOperationType.PLAY_MOTION="playMotion",AvatarOperationType.GET_CURRENT_MOTION="getCurrentMotion",AvatarOperationType.UNLOAD_AVATAR="unloadAvatar",AvatarOperationType.SET_CAMERA="setCamera",exports.AvatarCameraType=void 0,(AvatarCameraType=exports.AvatarCameraType||(exports.AvatarCameraType={})).WHOLE="whole",AvatarCameraType.HALF="half",AvatarCameraType.FACE="face";var AvatarService=function(_super){function AvatarService(config){var _this=_super.call(this,config)||this;return _this.logger.info("Avatar API service initialized"),_this}return __extends(AvatarService,_super),Object.defineProperty(AvatarService.prototype,"callbackFunctionName",{get:function get(){return"uniAvatarCallback"},enumerable:!1,configurable:!0}),AvatarService.prototype.initializeAvatar=function(avatarCode_1){return __awaiter(this,arguments,void 0,function(avatarCode,cameraType){var result,error_1;return void 0===cameraType&&(cameraType=exports.AvatarCameraType.WHOLE),__generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Initializing avatar: ".concat(avatarCode," with camera type: ").concat(cameraType)),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("InitializeAvatar",exports.AvatarOperationType.INITIALIZE_AVATAR,{avatarCode:avatarCode,cameraType:cameraType})];case 2:return result=_a.sent(),this.logger.info("Avatar initialization ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_1=_a.sent(),this.logger.error("Failed to initialize avatar",error_1),error_1;case 4:return[2]}})})},AvatarService.prototype.handleCallback=function(operation,code,message,data){_super.prototype.handleCallback.call(this,operation,code,message,data)},AvatarService.prototype.playMotion=function(clipCode){return __awaiter(this,void 0,void 0,function(){var result,error_2;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Playing motion: ".concat(clipCode)),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("PlayMotion",exports.AvatarOperationType.PLAY_MOTION,{clipCode:clipCode})];case 2:return result=_a.sent(),this.logger.info("Motion play ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_2=_a.sent(),this.logger.error("Failed to play motion",error_2),error_2;case 4:return[2]}})})},AvatarService.prototype.getCurrentMotion=function(getRemainingTime){return __awaiter(this,void 0,void 0,function(){var result,error_3,_a,_b;return __generator(this,function(_c){switch(_c.label){case 0:this.logger.info("Getting current motion info, includeRemainingTime: ".concat(getRemainingTime)),_c.label=1;case 1:return _c.trys.push([1,3,,4]),[4,this.sendAsyncMessage("GetCurrentMotion",exports.AvatarOperationType.GET_CURRENT_MOTION,{getRemainingTime:getRemainingTime})];case 2:return result=_c.sent(),this.logger.info("Current motion info retrieved",{motionId:null===(_a=result.data)||void 0===_a?void 0:_a.motionId,remainingTime:null===(_b=result.data)||void 0===_b?void 0:_b.motionRemainingTime}),[2,result];case 3:throw error_3=_c.sent(),this.logger.error("Failed to get current motion info",error_3),error_3;case 4:return[2]}})})},AvatarService.prototype.unloadAvatar=function(){return __awaiter(this,void 0,void 0,function(){var result,error_4;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Unloading avatar"),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("UnloadAvatar",exports.AvatarOperationType.UNLOAD_AVATAR)];case 2:return result=_a.sent(),this.logger.info("Avatar unload ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_4=_a.sent(),this.logger.error("Failed to unload avatar",error_4),error_4;case 4:return[2]}})})},AvatarService.prototype.setCamera=function(cameraType){return __awaiter(this,void 0,void 0,function(){var result,error_5;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Setting camera type: ".concat(cameraType)),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("SetCamera",exports.AvatarOperationType.SET_CAMERA,{cameraType:cameraType})];case 2:return result=_a.sent(),this.logger.info("Camera type setting ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_5=_a.sent(),this.logger.error("Failed to set camera type",error_5),error_5;case 4:return[2]}})})},AvatarService.prototype.batchExecute=function(operations){return __awaiter(this,void 0,void 0,function(){var results,operations_1,operations_1_1,operation,result,error_6,e_1_1,e_1,_a;return __generator(this,function(_b){switch(_b.label){case 0:this.logger.info("Executing batch operations: ".concat(operations.length," items")),results=[],_b.label=1;case 1:_b.trys.push([1,8,9,10]),operations_1=__values(operations),operations_1_1=operations_1.next(),_b.label=2;case 2:if(operations_1_1.done)return[3,7];operation=operations_1_1.value,_b.label=3;case 3:return _b.trys.push([3,5,,6]),[4,this[operation.method].apply(this,operation.params)];case 4:return result=_b.sent(),results.push(result),[3,6];case 5:return error_6=_b.sent(),this.logger.error("Batch operation failed: ".concat(operation.method),error_6),results.push({success:!1,message:"Batch operation failed: ".concat(error_6.message),errorCode:1}),[3,6];case 6:return operations_1_1=operations_1.next(),[3,2];case 7:return[3,10];case 8:return e_1_1=_b.sent(),e_1={error:e_1_1},[3,10];case 9:try{operations_1_1&&!operations_1_1.done&&(_a=operations_1.return)&&_a.call(operations_1)}finally{if(e_1)throw e_1.error}return[7];case 10:return this.logger.info("Batch operations completed: ".concat(results.filter(function(r){return r.success}).length,"/").concat(results.length," successful")),[2,results]}})})},AvatarService}(UnityBaseService),ENV_MAP={dev:{apiBaseUrl:"https://dev.local.zeewain.com"},test:{apiBaseUrl:"https://test.local.zeewain.com"},prod:{apiBaseUrl:"https://ai.zeewain3d.com"}};var ConfigManager=function(){function ConfigManager(){this.config=null}return ConfigManager.getInstance=function(){return ConfigManager.instance||(ConfigManager.instance=new ConfigManager),ConfigManager.instance},ConfigManager.prototype.setConfig=function(config){this.config=__assign(__assign({},config),{env:config.env||"prod",containerId:config.containerId||"unity-container"})},ConfigManager.prototype.updateConfig=function(config){this.config&&(this.config=__assign(__assign({},this.config),config))},ConfigManager.prototype.getConfig=function(){return this.config},ConfigManager.prototype.getApiBaseUrl=function(withApiModule){var _a,_b,_c,_d;return void 0===withApiModule&&(withApiModule=!0),"custom"===(null===(_a=this.config)||void 0===_a?void 0:_a.env)&&(null===(_b=this.config)||void 0===_b?void 0:_b.apiUrl)?"".concat(this.config.apiUrl).concat(withApiModule?"/api":""):(null===(_d=function getEnvConfig(env,withApiModule){void 0===env&&(env="dev"),void 0===withApiModule&&(withApiModule=!0);var baseUrl=ENV_MAP[env];return baseUrl?{apiBaseUrl:"".concat(baseUrl.apiBaseUrl).concat(withApiModule?"/api":"")}:null}((null===(_c=this.config)||void 0===_c?void 0:_c.env)||"prod",withApiModule))||void 0===_d?void 0:_d.apiBaseUrl)||""},ConfigManager.prototype.reset=function(){this.config=null},ConfigManager.instance=null,ConfigManager}(),UnityLoader=function(){function UnityLoader(){this.config=ConfigManager.getInstance().getConfig()}return UnityLoader.prototype.init=function(){return __awaiter(this,void 0,void 0,function(){var container;return __generator(this,function(_a){switch(_a.label){case 0:return container=this.createContainer(),[4,this.loadUnityLoader()];case 1:return _a.sent(),[4,this.createUnityInstance(container)];case 2:return[2,_a.sent()]}})})},UnityLoader.prototype.createContainer=function(){var container=document.getElementById(this.config.containerId);if(!container)throw new TypeError('Avatar container element with ID "'.concat(this.config.containerId,'" not found'));if(!(container instanceof HTMLDivElement))throw new TypeError("Avatar container element must be a div element");return container.style.position="relative",container},UnityLoader.prototype.loadUnityLoader=function(){var _this=this;return new Promise(function(resolve,reject){if(window.createUnityInstance)return resolve();var script=document.createElement("script");script.src=_this.config.loaderUrl,script.async=!0,script.crossOrigin="anonymous",script.onload=function(){"function"==typeof window.createUnityInstance?resolve():reject(new Error("createUnityInstance function not found"))},script.onerror=function(error){reject(new Error("Failed to load UnityLoader: ".concat(error)))},document.head.appendChild(script)})},UnityLoader.prototype.createUnityInstance=function(container){return __awaiter(this,void 0,void 0,function(){var canvas,meta,_this=this;return __generator(this,function(_a){switch(_a.label){case 0:return(canvas=container.querySelector("#unity-canvas"))||((canvas=document.createElement("canvas")).id="unity-canvas",canvas.style.width="100%",canvas.style.height="100%",container.appendChild(canvas)),/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&((meta=document.createElement("meta")).name="viewport",meta.content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes",document.head.appendChild(meta),canvas.style.width="100%",canvas.style.height="100%",canvas.style.position="fixed"),"function"!=typeof window.createUnityInstance?[3,2]:[4,window.createUnityInstance(canvas,{dataUrl:this.config.dataUrl,frameworkUrl:this.config.frameworkUrl,codeUrl:this.config.codeUrl,companyName:"广州紫为云科技有限公司",productName:"数字人SDK",productVersion:"1.0"},function(progress){_this.config.onProgress&&_this.config.onProgress(progress)})];case 1:return[2,_a.sent()];case 2:throw new TypeError("createUnityInstance is not defined on window.")}})})},UnityLoader}();function getLines(onLine){let buffer,position,fieldLength,discardTrailingNewline=!1;return function onChunk(arr){void 0===buffer?(buffer=arr,position=0,fieldLength=-1):buffer=function concat(a,b){const res=new Uint8Array(a.length+b.length);return res.set(a),res.set(b,a.length),res}(buffer,arr);const bufLength=buffer.length;let lineStart=0;for(;position<bufLength;){discardTrailingNewline&&(10===buffer[position]&&(lineStart=++position),discardTrailingNewline=!1);let lineEnd=-1;for(;position<bufLength&&-1===lineEnd;++position)switch(buffer[position]){case 58:-1===fieldLength&&(fieldLength=position-lineStart);break;case 13:discardTrailingNewline=!0;case 10:lineEnd=position}if(-1===lineEnd)break;onLine(buffer.subarray(lineStart,lineEnd),fieldLength),lineStart=position,fieldLength=-1}lineStart===bufLength?buffer=void 0:0!==lineStart&&(buffer=buffer.subarray(lineStart),position-=lineStart)}}var __rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t};function fetchEventSource(input,_a){var{signal:inputSignal,headers:inputHeaders,onopen:inputOnOpen,onmessage:onmessage,onclose:onclose,onerror:onerror,openWhenHidden:openWhenHidden,fetch:inputFetch}=_a,rest=__rest(_a,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((resolve,reject)=>{const headers=Object.assign({},inputHeaders);let curRequestController;function onVisibilityChange(){curRequestController.abort(),document.hidden||create()}headers.accept||(headers.accept="text/event-stream"),openWhenHidden||document.addEventListener("visibilitychange",onVisibilityChange);let retryInterval=1e3,retryTimer=0;function dispose(){document.removeEventListener("visibilitychange",onVisibilityChange),window.clearTimeout(retryTimer),curRequestController.abort()}null==inputSignal||inputSignal.addEventListener("abort",()=>{dispose(),resolve()});const fetch=null!=inputFetch?inputFetch:window.fetch,onopen=null!=inputOnOpen?inputOnOpen:defaultOnOpen;async function create(){var _a;curRequestController=new AbortController;try{const response=await fetch(input,Object.assign(Object.assign({},rest),{headers:headers,signal:curRequestController.signal}));await onopen(response),await async function getBytes(stream,onChunk){const reader=stream.getReader();let result;for(;!(result=await reader.read()).done;)onChunk(result.value)}(response.body,getLines(function getMessages(onId,onRetry,onMessage){let message={data:"",event:"",id:"",retry:void 0};const decoder=new TextDecoder;return function onLine(line,fieldLength){if(0===line.length)null==onMessage||onMessage(message),message={data:"",event:"",id:"",retry:void 0};else if(fieldLength>0){const field=decoder.decode(line.subarray(0,fieldLength)),valueOffset=fieldLength+(32===line[fieldLength+1]?2:1),value=decoder.decode(line.subarray(valueOffset));switch(field){case"data":message.data=message.data?message.data+"\n"+value:value;break;case"event":message.event=value;break;case"id":onId(message.id=value);break;case"retry":const retry=parseInt(value,10);isNaN(retry)||onRetry(message.retry=retry)}}}}(id=>{id?headers["last-event-id"]=id:delete headers["last-event-id"]},retry=>{retryInterval=retry},onmessage))),null==onclose||onclose(),dispose(),resolve()}catch(err){if(!curRequestController.signal.aborted)try{const interval=null!==(_a=null==onerror?void 0:onerror(err))&&void 0!==_a?_a:retryInterval;window.clearTimeout(retryTimer),retryTimer=window.setTimeout(create,interval)}catch(innerErr){dispose(),reject(innerErr)}}}create()})}function defaultOnOpen(response){const contentType=response.headers.get("content-type");if(!(null==contentType?void 0:contentType.startsWith("text/event-stream")))throw new Error(`Expected content-type to be text/event-stream, Actual: ${contentType}`)}var BroadcastOperationType,BroadcastType,BroadcastTaskStatus;exports.BroadcastOperationType=void 0,(BroadcastOperationType=exports.BroadcastOperationType||(exports.BroadcastOperationType={})).START_BROADCAST="startBroadcast",BroadcastOperationType.PAUSE_BROADCAST="pauseBroadcast",BroadcastOperationType.RESUME_BROADCAST="resumeBroadcast",BroadcastOperationType.STOP_BROADCAST="stopBroadcast",BroadcastOperationType.APPEND_BROADCAST="appendBroadcast",exports.BroadcastType=void 0,(BroadcastType=exports.BroadcastType||(exports.BroadcastType={})).TEXT="text",BroadcastType.AUDIO="audio",function(BroadcastTaskStatus){BroadcastTaskStatus.PENDING="pending",BroadcastTaskStatus.REQUESTING="requesting",BroadcastTaskStatus.COMPLETED="completed",BroadcastTaskStatus.FAILED="failed",BroadcastTaskStatus.CANCELLED="cancelled"}(BroadcastTaskStatus||(BroadcastTaskStatus={}));var BroadcastService=function(_super){function BroadcastService(config){var _this=_super.call(this,config)||this;return _this.callbacks={},_this.taskQueue=[],_this.taskSequence=0,_this.currentSendingSequence=0,_this.isBroadcastingAudio=!1,_this.hasReceivedAudio=!1,_this.queueProcessTimer=null,_this.broadcastCompletedCount=0,_this.callbacks=config.callbacks||{},_this.logger.info("Broadcast service initialized",{config:config}),_this}return __extends(BroadcastService,_super),BroadcastService.prototype.handleCallback=function(operation,code,message,data){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,isBroadcastCompleted=JSON.parse(data||"{}").isBroadcastCompleted;if(_super.prototype.handleCallback.call(this,operation,code,message,data),0===code)switch(operation){case exports.BroadcastOperationType.START_BROADCAST:if(isBroadcastCompleted){this.broadcastCompletedCount++;var status_1=this.getStatus();0===(null===(_a=status_1.queueInfo)||void 0===_a?void 0:_a.pendingTasks)&&0===(null===(_b=status_1.queueInfo)||void 0===_b?void 0:_b.requestingTasks)&&(null===(_c=status_1.queueInfo)||void 0===_c?void 0:_c.completedTasks)===this.broadcastCompletedCount&&(this.isBroadcastingAudio=!1,this.hasReceivedAudio=!1,this.currentSendingSequence=0,this.cleanupCompletedTasks(),this.logger.warn("Broadcast all completed")),null===(_e=(_d=this.callbacks).onFinish)||void 0===_e||_e.call(_d)}break;case exports.BroadcastOperationType.PAUSE_BROADCAST:null===(_g=(_f=this.callbacks).onPause)||void 0===_g||_g.call(_f),this.logger.debug("Broadcast paused callback triggered");break;case exports.BroadcastOperationType.RESUME_BROADCAST:null===(_j=(_h=this.callbacks).onResume)||void 0===_j||_j.call(_h),this.logger.debug("Broadcast resumed callback triggered");break;case exports.BroadcastOperationType.STOP_BROADCAST:null===(_l=(_k=this.callbacks).onStop)||void 0===_l||_l.call(_k),this.logger.debug("Broadcast stopped callback triggered")}else{var error=SDKError.createFromUnityError(code,"Unity operation '".concat(operation,"' failed: ").concat(message));this.handleError(error)}},BroadcastService.prototype.startBroadcast=function(params,isAppend){return __awaiter(this,void 0,void 0,function(){var task,_a,_b;return __generator(this,function(_c){switch(_c.label){case 0:return this.logger.info("Starting broadcast: ".concat(params.type),{humanCode:params.humanCode,text:params.text,audioUrl:params.audioUrl,isAppend:isAppend,queueLength:this.taskQueue.length}),this.validateBroadcastParams(params),isAppend?[3,2]:[4,this.stopBroadcast()];case 1:_c.sent(),this.taskSequence=0,this.currentSendingSequence=0,this.sendMessage("StartBroadcast",{callbackFun:this.uniqueCallbackName,operationType:exports.BroadcastOperationType.START_BROADCAST,motionList:params.motionList,motionPlayMode:params.motionPlayMode}),null===(_b=(_a=this.callbacks).onStart)||void 0===_b||_b.call(_a),this.isBroadcastingAudio=!0,_c.label=2;case 2:return task=this.createBroadcastTask(params),this.addTaskToQueue(task),this.logger.debug("Broadcast task created and queued",{taskId:task.id,sequence:task.sequence,isAppend:isAppend}),[2]}})})},BroadcastService.prototype.pauseBroadcast=function(resetIdle){return __awaiter(this,void 0,void 0,function(){var error_1;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Pausing broadcast"),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("PauseBroadcast",exports.BroadcastOperationType.PAUSE_BROADCAST,{resetIdle:resetIdle})];case 2:return _a.sent(),this.logger.info("Broadcast paused successfully"),[3,4];case 3:throw error_1=_a.sent(),this.logger.error("Failed to pause broadcast",error_1),error_1;case 4:return[2]}})})},BroadcastService.prototype.resumeBroadcast=function(){return __awaiter(this,void 0,void 0,function(){var error_2;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Resuming broadcast"),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("ResumeBroadcast",exports.BroadcastOperationType.RESUME_BROADCAST,{})];case 2:return _a.sent(),this.logger.info("Broadcast resumed successfully"),[3,4];case 3:throw error_2=_a.sent(),this.logger.error("Failed to resume broadcast",error_2),error_2;case 4:return[2]}})})},BroadcastService.prototype.stopBroadcast=function(){return __awaiter(this,void 0,void 0,function(){var error_3;return __generator(this,function(_a){switch(_a.label){case 0:return this.logger.info("Stopping broadcast and clearing queue",{queueLength:this.taskQueue.length}),this.cancelAllTasks(),[4,new Promise(function(resolve){return setTimeout(resolve,100)})];case 1:_a.sent(),this.isBroadcastingAudio=!1,this.hasReceivedAudio=!1,this.broadcastCompletedCount=0,_a.label=2;case 2:return _a.trys.push([2,4,,5]),[4,this.sendAsyncMessage("StopBroadcast",exports.BroadcastOperationType.STOP_BROADCAST,{})];case 3:return _a.sent(),this.logger.info("Broadcast stopped successfully"),[3,5];case 4:throw error_3=_a.sent(),this.logger.error("Failed to stop broadcast",error_3),error_3;case 5:return[2]}})})},BroadcastService.prototype.updateCallbacks=function(callbacks){this.callbacks=__assign(__assign({},this.callbacks),callbacks),this.logger.debug("Broadcast callbacks updated")},BroadcastService.prototype.getStatus=function(){var pendingTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.PENDING}).length,requestingTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.REQUESTING}).length,completedTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.COMPLETED}).length,failedTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.FAILED}).length,totalPendingResponses=this.taskQueue.reduce(function(sum,t){return sum+t.pendingResponses.length},0),currentSendingSequence=this.currentSendingSequence,isGeneratingAudio=pendingTasks+requestingTasks>0;return{isActive:this.isBroadcastingAudio||isGeneratingAudio,isGeneratingAudio:isGeneratingAudio,hasReceivedAudio:this.hasReceivedAudio,queueInfo:{totalTasks:this.taskQueue.length,pendingTasks:pendingTasks,requestingTasks:requestingTasks,completedTasks:completedTasks,failedTasks:failedTasks,totalPendingResponses:totalPendingResponses,currentSendingSequence:currentSendingSequence}}},BroadcastService.prototype.destroy=function(){this.clearQueueProcessTimer(),this.cancelAllTasks(),_super.prototype.destroy.call(this),this.logger.info("Broadcast service destroyed")},BroadcastService.prototype.createBroadcastTask=function(params){var typeText=params.type===exports.BroadcastType.TEXT?"TEXT":"AUDIO",typeInfo=params.type===exports.BroadcastType.TEXT?params.text:params.audioUrl,task={id:"[".concat(typeText,"]-(").concat(typeInfo,")_").concat(Math.random().toString(36).substring(2,9)),sequence:++this.taskSequence,params:params,status:BroadcastTaskStatus.PENDING,controller:new AbortController,pendingResponses:[],isGenerationComplete:!1,createdAt:new Date};return this.logger.debug("Created broadcast task",{taskId:task.id,sequence:task.sequence}),task},BroadcastService.prototype.addTaskToQueue=function(task){this.taskQueue.push(task),this.logger.debug("Task added to queue",{taskId:task.id,params:task.params,queueLength:this.taskQueue.length}),this.taskQueue.some(function(t){return t.status===BroadcastTaskStatus.REQUESTING})?this.logger.debug("Task queued, waiting for previous task to complete",{taskId:task.id,pendingTasks:this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.PENDING}).length}):this.startTaskRequest(task),this.processTaskQueue()},BroadcastService.prototype.processTaskQueue=function(){var _this=this;this.queueProcessTimer||(this.queueProcessTimer=setInterval(function(){_this.processTaskQueueStep()},100)),this.processTaskQueueStep()},BroadcastService.prototype.processTaskQueueStep=function(){var _this=this,nextTask=this.taskQueue.find(function(task){return task.sequence===_this.currentSendingSequence+1&&task.status!==BroadcastTaskStatus.PENDING&&task.pendingResponses.length>0});nextTask?this.sendNextResponse(nextTask):this.logger.debug("No next task to process",{currentSendingSequence:this.currentSendingSequence,taskQueue:this.taskQueue});var activeTasks=this.taskQueue.filter(function(task){return task.status===BroadcastTaskStatus.PENDING||task.status===BroadcastTaskStatus.REQUESTING});0===activeTasks.length&&this.clearQueueProcessTimer()},BroadcastService.prototype.startTaskRequest=function(task){return __awaiter(this,void 0,void 0,function(){var apiUrl,requestBody,sdkError,_a,_this=this;return __generator(this,function(_b){task.status=BroadcastTaskStatus.REQUESTING,this.logger.debug("Starting task request",{taskId:task.id});try{apiUrl="".concat(ConfigManager.getInstance().getApiBaseUrl(!0)).concat(this.getBroadcastApiPath(task.params.type)),requestBody={humanCode:task.params.humanCode,speed:task.params.speed,volume:task.params.volume>=0?100*task.params.volume:void 0,isSubtitle:task.params.isSubtitle,audioDrivenVersion:ConfigManager.getInstance().getConfig().audioDrivenVersion},task.params.type===exports.BroadcastType.TEXT?(requestBody.text=task.params.text,requestBody.voiceCode=task.params.voiceCode):task.params.type===exports.BroadcastType.AUDIO&&(requestBody.text=task.params.text,requestBody.audioUrl=task.params.audioUrl),fetchEventSource(apiUrl,{method:"POST",headers:{"Content-Type":"application/json",x_auth_token:(null===(_a=ConfigManager.getInstance().getConfig())||void 0===_a?void 0:_a.token)||""},body:JSON.stringify(requestBody),signal:task.controller.signal,openWhenHidden:!0,onopen:function onopen(response){return __awaiter(_this,void 0,void 0,function(){var error;return __generator(this,function(_a){if(!response.ok)throw error=this.createHttpError(response.status,response.statusText,task.id),this.handleTaskError(task,error),error;return[2]})})},onmessage:function onmessage(event){_this.handleTaskResponse(task,event.data)},onclose:function onclose(){_this.handleTaskClose(task)},onerror:function onerror(error){if(error instanceof SDKError)throw error;_this.logger.error("broadcast onerror",error);var sdkError=_this.convertToSDKError(error,task.id);throw _this.handleTaskError(task,sdkError),sdkError}})}catch(error){sdkError=this.convertToSDKError(error,task.id),this.handleTaskError(task,sdkError)}return[2]})})},BroadcastService.prototype.handleTaskResponse=function(task,data){try{var response=JSON.parse(data);if(0!==response.code){var error=this.createBroadcastError(response.code,response.message);return void this.handleTaskError(task,error)}if(response.data){this.hasReceivedAudio=!0,task.params.type===exports.BroadcastType.AUDIO&&task.params.audioUrl&&!response.data.voiceUrl&&(response.data.voiceUrl=task.params.audioUrl);var _a=response.data,voiceUrl=_a.voiceUrl,mouthShapeUrl=_a.mouthShapeUrl;voiceUrl&&!voiceUrl.startsWith("http")&&(response.data.voiceUrl="".concat(ConfigManager.getInstance().getApiBaseUrl(!1)).concat(voiceUrl)),mouthShapeUrl&&!mouthShapeUrl.startsWith("http")&&(response.data.mouthShapeUrl="".concat(ConfigManager.getInstance().getApiBaseUrl(!1)).concat(mouthShapeUrl)),task.pendingResponses.push(response),this.logger.debug("Response added to task",{taskId:task.id,response:response,pendingCount:task.pendingResponses.length}),response.data.done&&(task.isGenerationComplete=!0,this.logger.debug("Task generation completed",{taskId:task.id,totalResponses:task.pendingResponses.length}))}}catch(error){this.handleTaskError(task,new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"string"==typeof error?error:error.message||"播报服务错误"))}},BroadcastService.prototype.sendNextResponse=function(task){var _a;if(0!==task.pendingResponses.length){var response=task.pendingResponses.shift();this.logger.debug("Sending response to Unity",{taskId:task.id,remainingResponses:task.pendingResponses.length,voiceUrl:null===(_a=response.data)||void 0===_a?void 0:_a.voiceUrl}),this.sendMessage("AppendBroadcast",{response:response,callbackFun:this.uniqueCallbackName,operationType:exports.BroadcastOperationType.APPEND_BROADCAST}),task.isGenerationComplete&&0===task.pendingResponses.length&&(task.status=BroadcastTaskStatus.COMPLETED,this.currentSendingSequence=task.sequence,this.logger.debug("Task completed",{taskId:task.id}))}},BroadcastService.prototype.handleTaskClose=function(task){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){return this.logger.debug("Task stream closed",{taskId:task.id}),task.status===BroadcastTaskStatus.FAILED||task.status===BroadcastTaskStatus.CANCELLED||(task.isGenerationComplete||task.status!==BroadcastTaskStatus.REQUESTING||(task.isGenerationComplete=!0),this.startNextPendingTask()),[2]})})},BroadcastService.prototype.handleTaskError=function(task,error){var _a,_b;task.status!==BroadcastTaskStatus.FAILED&&task.status!==BroadcastTaskStatus.CANCELLED&&(task.status=BroadcastTaskStatus.FAILED,task.error=error,this.logger.error("Task failed - ".concat(task.id),error),null===(_b=(_a=this.callbacks).onError)||void 0===_b||_b.call(_a,error),this.cancelAllTasks(),this.isBroadcastingAudio=!1,this.hasReceivedAudio=!1,this.currentSendingSequence=0,this.clearQueueProcessTimer(),this.logger.debug("Task failed, all tasks cancelled and broadcast state reset"))},BroadcastService.prototype.cleanupCompletedTasks=function(){var beforeLength=this.taskQueue.length;this.taskQueue=this.taskQueue.filter(function(task){return task.status!==BroadcastTaskStatus.COMPLETED&&task.status!==BroadcastTaskStatus.FAILED&&task.status!==BroadcastTaskStatus.CANCELLED});var removedCount=beforeLength-this.taskQueue.length;removedCount>0&&this.logger.debug("Cleaned up completed tasks",{removedCount:removedCount,remainingTasks:this.taskQueue.length})},BroadcastService.prototype.cancelAllTasks=function(){var e_1,_a;try{for(var _b=__values(this.taskQueue),_c=_b.next();!_c.done;_c=_b.next()){var task=_c.value;task.status===BroadcastTaskStatus.REQUESTING?(task.controller.abort(),task.status=BroadcastTaskStatus.CANCELLED,this.logger.debug("Task aborted",{taskId:task.id,previousStatus:"requesting"})):task.status===BroadcastTaskStatus.PENDING&&(task.status=BroadcastTaskStatus.CANCELLED,this.logger.debug("Task cancelled",{taskId:task.id,previousStatus:"pending"}))}}catch(e_1_1){e_1={error:e_1_1}}finally{try{_c&&!_c.done&&(_a=_b.return)&&_a.call(_b)}finally{if(e_1)throw e_1.error}}this.taskQueue=[],this.taskSequence=0,this.currentSendingSequence=0,this.logger.debug("All tasks cancelled and queue cleared")},Object.defineProperty(BroadcastService.prototype,"callbackFunctionName",{get:function get(){return"uniBroadcastCallback"},enumerable:!1,configurable:!0}),BroadcastService.prototype.getBroadcastApiPath=function(type){switch(type){case exports.BroadcastType.TEXT:return"/aiep-openapi/avatar-interaction/v1/broadcast/text";case exports.BroadcastType.AUDIO:return"/aiep-openapi/avatar-interaction/v1/broadcast/audio";default:throw new SDKError(exports.ConfigErrorCode.INVALID_CONFIG,"未知的播报类型: ".concat(type))}},BroadcastService.prototype.validateBroadcastParams=function(params){if(params.type===exports.BroadcastType.TEXT){if(!params.text||!params.voiceCode)throw new SDKError(exports.ConfigErrorCode.MISSING_REQUIRED_PARAM,"文本播报需要提供text和voiceCode参数")}else if(params.type===exports.BroadcastType.AUDIO&&!params.audioUrl)throw new SDKError(exports.ConfigErrorCode.MISSING_REQUIRED_PARAM,"自定义音频播报需要提供audioUrl参数")},BroadcastService.prototype.handleError=function(error){var _a,_b;this.logger.error("Broadcast error occurred",error),null===(_b=(_a=this.callbacks).onError)||void 0===_b||_b.call(_a,error)},BroadcastService.prototype.createBroadcastError=function(errorCode,errorMessage){switch(errorCode){case 14001:return new SDKError(exports.OperationErrorCode.BROADCAST_EQUITY_NOT_EXIST,"用户权益额度不存在");case 14002:return new SDKError(exports.OperationErrorCode.BROADCAST_EQUITY_NOT_ENOUGH,"用户权益额度不足");case 14003:return new SDKError(exports.OperationErrorCode.BROADCAST_EQUITY_FREEZE_FAILED,"用户权益额度冻结失败");default:return new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"".concat(errorMessage,"(").concat(errorCode,")")||"播报服务错误(".concat(errorCode,")"))}},BroadcastService.prototype.startNextPendingTask=function(){var nextPendingTask=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.PENDING}).sort(function(a,b){return a.sequence-b.sequence})[0];nextPendingTask?(this.logger.debug("Starting next pending task",{taskId:nextPendingTask.id,sequence:nextPendingTask.sequence}),this.startTaskRequest(nextPendingTask)):this.logger.debug("No pending tasks to start")},BroadcastService.prototype.clearQueueProcessTimer=function(){this.queueProcessTimer&&(clearInterval(this.queueProcessTimer),this.queueProcessTimer=null,this.logger.debug("Queue process timer cleared"))},BroadcastService.prototype.createHttpError=function(status,statusText,taskId){switch(this.logger.warn("HTTP error occurred - Task: ".concat(taskId,", Status: ").concat(status),{status:status,statusText:statusText}),status){case 401:return new SDKError(exports.NetworkErrorCode.UNAUTHORIZED,"Token 已过期或无效,请重新授权 (HTTP ".concat(status,")"));case 403:return new SDKError(exports.NetworkErrorCode.UNAUTHORIZED,"无权限访问该资源 (HTTP ".concat(status,")"));case 404:return new SDKError(exports.NetworkErrorCode.SERVER_ERROR,"请求的资源不存在 (HTTP ".concat(status,")"));case 500:case 502:case 503:case 504:return new SDKError(exports.NetworkErrorCode.SERVER_ERROR,"服务器错误,请稍后重试 (HTTP ".concat(status,")"));default:return new SDKError(exports.NetworkErrorCode.CONNECTION_FAILED,"网络请求失败: ".concat(statusText||"Unknown Error"," (HTTP ").concat(status,")"))}},BroadcastService.prototype.convertToSDKError=function(error,taskId){if(error instanceof SDKError)return error;if(error instanceof Error){var errorMessage_1=error.message.toLowerCase();if(errorMessage_1.includes("timeout")||errorMessage_1.includes("timed out"))return new SDKError(exports.NetworkErrorCode.REQUEST_TIMEOUT,"请求超时 - Task: ".concat(taskId),error);if(errorMessage_1.includes("network")||errorMessage_1.includes("fetch")||errorMessage_1.includes("connection")){var hint=errorMessage_1.includes("failed to fetch")?"(可能是 Token 过期或 CORS 跨域问题,请检查 Token 是否有效)":"";return new SDKError(exports.NetworkErrorCode.CONNECTION_FAILED,"网络请求失败 - Task: ".concat(taskId,": ").concat(error.message).concat(hint),error)}return errorMessage_1.includes("abort")||errorMessage_1.includes("cancel")?new SDKError(exports.OperationErrorCode.OPERATION_CANCELLED,"操作已取消 - Task: ".concat(taskId),error):new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"播报任务执行失败 - Task: ".concat(taskId,": ").concat(error.message),error)}var errorMessage=String(error);return new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"播报任务执行失败 - Task: ".concat(taskId,": ").concat(errorMessage))},BroadcastService}(UnityBaseService),ZEEAvatarLoader=function(){function ZEEAvatarLoader(){this.apiService=null,this.unityInstance=null,this.loader=new UnityLoader}return ZEEAvatarLoader.prototype.init=function(){return __awaiter(this,void 0,void 0,function(){var _a;return __generator(this,function(_b){switch(_b.label){case 0:return _a=this,[4,this.loader.init()];case 1:return _a.unityInstance=_b.sent(),this.initGlobalConfig(),this.apiService=new AvatarService({unityInstance:this.unityInstance}),[2,this.apiService]}})})},ZEEAvatarLoader.prototype.updateToken=function(token){var currentConfig=ConfigManager.getInstance().getConfig();currentConfig&&(ConfigManager.getInstance().setConfig(__assign(__assign({},currentConfig),{token:token})),this.initGlobalConfig())},ZEEAvatarLoader.prototype.getAPI=function(){return this.apiService},ZEEAvatarLoader.prototype.getInstance=function(){return this.unityInstance},ZEEAvatarLoader.prototype.getContainerId=function(){return ConfigManager.getInstance().getConfig().containerId},ZEEAvatarLoader.prototype.destroy=function(){if(this.unityInstance){var container=document.getElementById(this.getContainerId());if(container){var canvas=container.querySelector("#unity-canvas");canvas&&canvas.remove()}"function"==typeof this.unityInstance.Quit&&this.unityInstance.Quit(),this.unityInstance=null,this.apiService=null}ConfigManager.getInstance().reset()},ZEEAvatarLoader.prototype.initGlobalConfig=function(){var config=ConfigManager.getInstance().getConfig(),assetsFrom=config.assetsFrom,globalParams={token:null==config?void 0:config.token,apiBaseUrl:ConfigManager.getInstance().getApiBaseUrl(!1),idleMotionList:null==config?void 0:config.idleMotionList};if(this.unityInstance.SendMessage("AvatarSDK","InitializeConfig",JSON.stringify(globalParams)),console.warn("[ Send Unity message ]: AvatarSDK.InitializeConfig",globalParams),"cloud"!==assetsFrom){var assetModuleParams={isZip:!0,assetBundlePath:null==config?void 0:config.assetsUrl};this.unityInstance.SendMessage("AvatarSDK","InitAssetBundleModule",JSON.stringify(assetModuleParams)),console.warn("[ Send Unity message ]: AvatarSDK.InitAssetBundleModule",assetModuleParams)}},ZEEAvatarLoader}();exports.AvatarService=AvatarService,exports.BroadcastService=BroadcastService,exports.ERROR_CODE_MAP=ERROR_CODE_MAP,exports.SDKError=SDKError,exports.ZEEAvatarLoader=ZEEAvatarLoader,exports.getErrorInfo=getErrorInfo});
|
|
1
|
+
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory((global="undefined"!=typeof globalThis?globalThis:global||self).ZEEAvatarSDKLib={})}(this,function(exports){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(it){return it&&it.Math===Math&&it},globalThis_1=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$18=function(exec){try{return!!exec()}catch(error){return!0}},descriptors=!fails$18(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative=!fails$18(function(){var test=function(){}.bind();return"function"!=typeof test||test.hasOwnProperty("prototype")}),NATIVE_BIND$4=functionBindNative,call$x=Function.prototype.call,functionCall=NATIVE_BIND$4?call$x.bind(call$x):function(){return call$x.apply(call$x,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$2={}.propertyIsEnumerable,getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$9&&!$propertyIsEnumerable$2.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor$9(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable$2;var match,version,createPropertyDescriptor$8=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}},NATIVE_BIND$3=functionBindNative,FunctionPrototype$4=Function.prototype,call$w=FunctionPrototype$4.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$4.bind.bind(call$w,call$w),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(fn){return function(){return call$w.apply(fn,arguments)}},uncurryThis$X=functionUncurryThis,toString$p=uncurryThis$X({}.toString),stringSlice$e=uncurryThis$X("".slice),classofRaw$2=function(it){return stringSlice$e(toString$p(it),8,-1)},fails$15=fails$18,classof$j=classofRaw$2,$Object$5=Object,split$3=functionUncurryThis("".split),indexedObject=fails$15(function(){return!$Object$5("z").propertyIsEnumerable(0)})?function(it){return"String"===classof$j(it)?split$3(it,""):$Object$5(it)}:$Object$5,isNullOrUndefined$7=function(it){return null==it},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$k=TypeError,requireObjectCoercible$f=function(it){if(isNullOrUndefined$6(it))throw new $TypeError$k("Can't call method on "+it);return it},IndexedObject$4=indexedObject,requireObjectCoercible$e=requireObjectCoercible$f,toIndexedObject$f=function(it){return IndexedObject$4(requireObjectCoercible$e(it))},documentAll="object"==typeof document&&document.all,isCallable$v=void 0===documentAll&&void 0!==documentAll?function(argument){return"function"==typeof argument||argument===documentAll}:function(argument){return"function"==typeof argument},isCallable$u=isCallable$v,isObject$C=function(it){return"object"==typeof it?null!==it:isCallable$u(it)},globalThis$Q=globalThis_1,isCallable$t=isCallable$v,getBuiltIn$f=function(namespace,method){return arguments.length<2?(argument=globalThis$Q[namespace],isCallable$t(argument)?argument:void 0):globalThis$Q[namespace]&&globalThis$Q[namespace][method];var argument},objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),navigator$1=globalThis_1.navigator,userAgent$8=navigator$1&&navigator$1.userAgent,environmentUserAgent=userAgent$8?String(userAgent$8):"",globalThis$O=globalThis_1,userAgent$7=environmentUserAgent,process$3=globalThis$O.process,Deno$1=globalThis$O.Deno,versions=process$3&&process$3.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$7&&(!(match=userAgent$7.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$7.match(/Chrome\/(\d+)/))&&(version=+match[1]);var environmentV8Version=version,V8_VERSION$3=environmentV8Version,fails$14=fails$18,$String$7=globalThis_1.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$14(function(){var symbol=Symbol("symbol detection");return!$String$7(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41}),useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$e=getBuiltIn$f,isCallable$s=isCallable$v,isPrototypeOf$a=objectIsPrototypeOf,$Object$4=Object,isSymbol$6=useSymbolAsUid?function(it){return"symbol"==typeof it}:function(it){var $Symbol=getBuiltIn$e("Symbol");return isCallable$s($Symbol)&&isPrototypeOf$a($Symbol.prototype,$Object$4(it))},$String$6=String,tryToString$7=function(argument){try{return $String$6(argument)}catch(error){return"Object"}},isCallable$r=isCallable$v,tryToString$6=tryToString$7,$TypeError$j=TypeError,aCallable$h=function(argument){if(isCallable$r(argument))return argument;throw new $TypeError$j(tryToString$6(argument)+" is not a function")},aCallable$g=aCallable$h,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$7=function(V,P){var func=V[P];return isNullOrUndefined$5(func)?void 0:aCallable$g(func)},call$v=functionCall,isCallable$q=isCallable$v,isObject$B=isObject$C,$TypeError$i=TypeError,ordinaryToPrimitive$2=function(input,pref){var fn,val;if("string"===pref&&isCallable$q(fn=input.toString)&&!isObject$B(val=call$v(fn,input)))return val;if(isCallable$q(fn=input.valueOf)&&!isObject$B(val=call$v(fn,input)))return val;if("string"!==pref&&isCallable$q(fn=input.toString)&&!isObject$B(val=call$v(fn,input)))return val;throw new $TypeError$i("Can't convert object to primitive value")},sharedStore={exports:{}},globalThis$M=globalThis_1,defineProperty$a=Object.defineProperty,defineGlobalProperty$3=function(key,value){try{defineProperty$a(globalThis$M,key,{value:value,configurable:!0,writable:!0})}catch(error){globalThis$M[key]=value}return value},globalThis$L=globalThis_1,defineGlobalProperty$2=defineGlobalProperty$3,store$3=sharedStore.exports=globalThis$L["__core-js_shared__"]||defineGlobalProperty$2("__core-js_shared__",{});(store$3.versions||(store$3.versions=[])).push({version:"3.44.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedStoreExports=sharedStore.exports,store$2=sharedStoreExports,shared$7=function(key,value){return store$2[key]||(store$2[key]=value||{})},requireObjectCoercible$d=requireObjectCoercible$f,$Object$3=Object,toObject$n=function(argument){return $Object$3(requireObjectCoercible$d(argument))},toObject$m=toObject$n,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject$m(it),key)},uncurryThis$T=functionUncurryThis,id$2=0,postfix=Math.random(),toString$o=uncurryThis$T(1.1.toString),uid$5=function(key){return"Symbol("+(void 0===key?"":key)+")_"+toString$o(++id$2+postfix,36)},shared$6=shared$7,hasOwn$q=hasOwnProperty_1,uid$4=uid$5,NATIVE_SYMBOL$5=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$3=globalThis_1.Symbol,WellKnownSymbolsStore$1=shared$6("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$3.for||Symbol$3:Symbol$3&&Symbol$3.withoutSetter||uid$4,wellKnownSymbol$w=function(name){return hasOwn$q(WellKnownSymbolsStore$1,name)||(WellKnownSymbolsStore$1[name]=NATIVE_SYMBOL$5&&hasOwn$q(Symbol$3,name)?Symbol$3[name]:createWellKnownSymbol("Symbol."+name)),WellKnownSymbolsStore$1[name]},call$u=functionCall,isObject$A=isObject$C,isSymbol$5=isSymbol$6,getMethod$6=getMethod$7,ordinaryToPrimitive$1=ordinaryToPrimitive$2,$TypeError$h=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$w("toPrimitive"),toPrimitive$3=function(input,pref){if(!isObject$A(input)||isSymbol$5(input))return input;var result,exoticToPrim=getMethod$6(input,TO_PRIMITIVE$1);if(exoticToPrim){if(void 0===pref&&(pref="default"),result=call$u(exoticToPrim,input,pref),!isObject$A(result)||isSymbol$5(result))return result;throw new $TypeError$h("Can't convert object to primitive value")}return void 0===pref&&(pref="number"),ordinaryToPrimitive$1(input,pref)},toPrimitive$2=toPrimitive$3,isSymbol$4=isSymbol$6,toPropertyKey$7=function(argument){var key=toPrimitive$2(argument,"string");return isSymbol$4(key)?key:key+""},isObject$z=isObject$C,document$3=globalThis_1.document,EXISTS$1=isObject$z(document$3)&&isObject$z(document$3.createElement),documentCreateElement$2=function(it){return EXISTS$1?document$3.createElement(it):{}},createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$18(function(){return 7!==Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$z=descriptors,call$t=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$7=createPropertyDescriptor$8,toIndexedObject$e=toIndexedObject$f,toPropertyKey$6=toPropertyKey$7,hasOwn$p=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$z?$getOwnPropertyDescriptor$2:function getOwnPropertyDescriptor(O,P){if(O=toIndexedObject$e(O),P=toPropertyKey$6(P),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(O,P)}catch(error){}if(hasOwn$p(O,P))return createPropertyDescriptor$7(!call$t(propertyIsEnumerableModule$2.f,O,P),O[P])};var objectDefineProperty={},v8PrototypeDefineBug=descriptors&&fails$18(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$y=isObject$C,$String$5=String,$TypeError$g=TypeError,anObject$x=function(argument){if(isObject$y(argument))return argument;throw new $TypeError$g($String$5(argument)+" is not an object")},DESCRIPTORS$x=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$w=anObject$x,toPropertyKey$5=toPropertyKey$7,$TypeError$f=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectDefineProperty.f=DESCRIPTORS$x?V8_PROTOTYPE_DEFINE_BUG$1?function defineProperty(O,P,Attributes){if(anObject$w(O),P=toPropertyKey$5(P),anObject$w(Attributes),"function"==typeof O&&"prototype"===P&&"value"in Attributes&&"writable"in Attributes&&!Attributes.writable){var current=$getOwnPropertyDescriptor$1(O,P);current&¤t.writable&&(O[P]=Attributes.value,Attributes={configurable:"configurable"in Attributes?Attributes.configurable:current.configurable,enumerable:"enumerable"in Attributes?Attributes.enumerable:current.enumerable,writable:!1})}return $defineProperty$1(O,P,Attributes)}:$defineProperty$1:function defineProperty(O,P,Attributes){if(anObject$w(O),P=toPropertyKey$5(P),anObject$w(Attributes),IE8_DOM_DEFINE)try{return $defineProperty$1(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw new $TypeError$f("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O};var definePropertyModule$b=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$8,createNonEnumerableProperty$a=descriptors?function(object,key,value){return definePropertyModule$b.f(object,key,createPropertyDescriptor$6(1,value))}:function(object,key,value){return object[key]=value,object},makeBuiltIn$4={exports:{}},DESCRIPTORS$v=descriptors,hasOwn$o=hasOwnProperty_1,FunctionPrototype$3=Function.prototype,getDescriptor=DESCRIPTORS$v&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$o(FunctionPrototype$3,"name"),functionName={EXISTS:EXISTS,PROPER:EXISTS&&"something"===function something(){}.name,CONFIGURABLE:EXISTS&&(!DESCRIPTORS$v||DESCRIPTORS$v&&getDescriptor(FunctionPrototype$3,"name").configurable)},isCallable$p=isCallable$v,store$1=sharedStoreExports,functionToString$1=functionUncurryThis(Function.toString);isCallable$p(store$1.inspectSource)||(store$1.inspectSource=function(it){return functionToString$1(it)});var set$3,get$2,has,inspectSource$3=store$1.inspectSource,isCallable$o=isCallable$v,WeakMap$1=globalThis_1.WeakMap,weakMapBasicDetection=isCallable$o(WeakMap$1)&&/native code/.test(String(WeakMap$1)),uid$3=uid$5,keys$1=shared$7("keys"),sharedKey$4=function(key){return keys$1[key]||(keys$1[key]=uid$3(key))},hiddenKeys$6={},NATIVE_WEAK_MAP$1=weakMapBasicDetection,globalThis$H=globalThis_1,isObject$x=isObject$C,createNonEnumerableProperty$9=createNonEnumerableProperty$a,hasOwn$n=hasOwnProperty_1,shared$4=sharedStoreExports,sharedKey$3=sharedKey$4,hiddenKeys$5=hiddenKeys$6,TypeError$7=globalThis$H.TypeError,WeakMap=globalThis$H.WeakMap;if(NATIVE_WEAK_MAP$1||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$3=function(it,metadata){if(store.has(it))throw new TypeError$7("Object already initialized");return metadata.facade=it,store.set(it,metadata),metadata},get$2=function(it){return store.get(it)||{}},has=function(it){return store.has(it)}}else{var STATE=sharedKey$3("state");hiddenKeys$5[STATE]=!0,set$3=function(it,metadata){if(hasOwn$n(it,STATE))throw new TypeError$7("Object already initialized");return metadata.facade=it,createNonEnumerableProperty$9(it,STATE,metadata),metadata},get$2=function(it){return hasOwn$n(it,STATE)?it[STATE]:{}},has=function(it){return hasOwn$n(it,STATE)}}var internalState={set:set$3,get:get$2,has:has,enforce:function(it){return has(it)?get$2(it):set$3(it,{})},getterFor:function(TYPE){return function(it){var state;if(!isObject$x(it)||(state=get$2(it)).type!==TYPE)throw new TypeError$7("Incompatible receiver, "+TYPE+" required");return state}}},uncurryThis$R=functionUncurryThis,fails$11=fails$18,isCallable$n=isCallable$v,hasOwn$m=hasOwnProperty_1,DESCRIPTORS$u=descriptors,CONFIGURABLE_FUNCTION_NAME$2=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,enforceInternalState$4=internalState.enforce,getInternalState$6=internalState.get,$String$4=String,defineProperty$9=Object.defineProperty,stringSlice$d=uncurryThis$R("".slice),replace$a=uncurryThis$R("".replace),join$7=uncurryThis$R([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$u&&!fails$11(function(){return 8!==defineProperty$9(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$3=makeBuiltIn$4.exports=function(value,name,options){"Symbol("===stringSlice$d($String$4(name),0,7)&&(name="["+replace$a($String$4(name),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn$m(value,"name")||CONFIGURABLE_FUNCTION_NAME$2&&value.name!==name)&&(DESCRIPTORS$u?defineProperty$9(value,"name",{value:name,configurable:!0}):value.name=name),CONFIGURABLE_LENGTH&&options&&hasOwn$m(options,"arity")&&value.length!==options.arity&&defineProperty$9(value,"length",{value:options.arity});try{options&&hasOwn$m(options,"constructor")&&options.constructor?DESCRIPTORS$u&&defineProperty$9(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch(error){}var state=enforceInternalState$4(value);return hasOwn$m(state,"source")||(state.source=join$7(TEMPLATE,"string"==typeof name?name:"")),value};Function.prototype.toString=makeBuiltIn$3(function toString(){return isCallable$n(this)&&getInternalState$6(this).source||inspectSource$2(this)},"toString");var makeBuiltInExports=makeBuiltIn$4.exports,isCallable$m=isCallable$v,definePropertyModule$a=objectDefineProperty,makeBuiltIn$2=makeBuiltInExports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$i=function(O,key,value,options){options||(options={});var simple=options.enumerable,name=void 0!==options.name?options.name:key;if(isCallable$m(value)&&makeBuiltIn$2(value,name,options),options.global)simple?O[key]=value:defineGlobalProperty$1(key,value);else{try{options.unsafe?O[key]&&(simple=!0):delete O[key]}catch(error){}simple?O[key]=value:definePropertyModule$a.f(O,key,{value:value,enumerable:!1,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O},objectGetOwnPropertyNames={},ceil$1=Math.ceil,floor$9=Math.floor,mathTrunc=Math.trunc||function trunc(x){var n=+x;return(n>0?floor$9:ceil$1)(n)},trunc$1=mathTrunc,toIntegerOrInfinity$c=function(argument){var number=+argument;return number!=number||0===number?0:trunc$1(number)},toIntegerOrInfinity$b=toIntegerOrInfinity$c,max$3=Math.max,min$8=Math.min,toAbsoluteIndex$8=function(index,length){var integer=toIntegerOrInfinity$b(index);return integer<0?max$3(integer+length,0):min$8(integer,length)},toIntegerOrInfinity$a=toIntegerOrInfinity$c,min$7=Math.min,toLength$c=function(argument){var len=toIntegerOrInfinity$a(argument);return len>0?min$7(len,9007199254740991):0},toLength$b=toLength$c,lengthOfArrayLike$j=function(obj){return toLength$b(obj.length)},toIndexedObject$d=toIndexedObject$f,toAbsoluteIndex$7=toAbsoluteIndex$8,lengthOfArrayLike$i=lengthOfArrayLike$j,createMethod$6=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject$d($this),length=lengthOfArrayLike$i(O);if(0===length)return!IS_INCLUDES&&-1;var value,index=toAbsoluteIndex$7(fromIndex,length);if(IS_INCLUDES&&el!=el){for(;length>index;)if((value=O[index++])!=value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}},arrayIncludes={includes:createMethod$6(!0),indexOf:createMethod$6(!1)},hasOwn$l=hasOwnProperty_1,toIndexedObject$c=toIndexedObject$f,indexOf$1=arrayIncludes.indexOf,hiddenKeys$4=hiddenKeys$6,push$c=functionUncurryThis([].push),objectKeysInternal=function(object,names){var key,O=toIndexedObject$c(object),i=0,result=[];for(key in O)!hasOwn$l(hiddenKeys$4,key)&&hasOwn$l(O,key)&&push$c(result,key);for(;names.length>i;)hasOwn$l(O,key=names[i++])&&(~indexOf$1(result,key)||push$c(result,key));return result},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,hiddenKeys$3=enumBugKeys$3.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys$1(O,hiddenKeys$3)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$d=getBuiltIn$f,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,anObject$v=anObject$x,concat$4=functionUncurryThis([].concat),ownKeys$3=getBuiltIn$d("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule$2.f(anObject$v(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule$3.f;return getOwnPropertySymbols?concat$4(keys,getOwnPropertySymbols(it)):keys},hasOwn$k=hasOwnProperty_1,ownKeys$2=ownKeys$3,getOwnPropertyDescriptorModule$6=objectGetOwnPropertyDescriptor,definePropertyModule$9=objectDefineProperty,copyConstructorProperties$4=function(target,source,exceptions){for(var keys=ownKeys$2(source),defineProperty=definePropertyModule$9.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule$6.f,i=0;i<keys.length;i++){var key=keys[i];hasOwn$k(target,key)||exceptions&&hasOwn$k(exceptions,key)||defineProperty(target,key,getOwnPropertyDescriptor(source,key))}},fails$10=fails$18,isCallable$l=isCallable$v,replacement=/#|\.prototype\./,isForced$5=function(feature,detection){var value=data[normalize(feature)];return value===POLYFILL||value!==NATIVE&&(isCallable$l(detection)?fails$10(detection):!!detection)},normalize=isForced$5.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=isForced$5.data={},NATIVE=isForced$5.NATIVE="N",POLYFILL=isForced$5.POLYFILL="P",isForced_1=isForced$5,globalThis$G=globalThis_1,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$8=createNonEnumerableProperty$a,defineBuiltIn$h=defineBuiltIn$i,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$3=copyConstructorProperties$4,isForced$4=isForced_1,_export=function(options,source){var target,key,targetProperty,sourceProperty,descriptor,TARGET=options.target,GLOBAL=options.global,STATIC=options.stat;if(target=GLOBAL?globalThis$G:STATIC?globalThis$G[TARGET]||defineGlobalProperty(TARGET,{}):globalThis$G[TARGET]&&globalThis$G[TARGET].prototype)for(key in source){if(sourceProperty=source[key],targetProperty=options.dontCallGetSet?(descriptor=getOwnPropertyDescriptor$8(target,key))&&descriptor.value:target[key],!isForced$4(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced)&&void 0!==targetProperty){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties$3(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty$8(sourceProperty,"sham",!0),defineBuiltIn$h(target,key,sourceProperty,options)}},test$1={};test$1[wellKnownSymbol$w("toStringTag")]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$k=isCallable$v,classofRaw$1=classofRaw$2,TO_STRING_TAG$2=wellKnownSymbol$w("toStringTag"),$Object$2=Object,CORRECT_ARGUMENTS="Arguments"===classofRaw$1(function(){return arguments}()),classof$i=TO_STRING_TAG_SUPPORT$2?classofRaw$1:function(it){var O,tag,result;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(tag=function(it,key){try{return it[key]}catch(error){}}(O=$Object$2(it),TO_STRING_TAG$2))?tag:CORRECT_ARGUMENTS?classofRaw$1(O):"Object"===(result=classofRaw$1(O))&&isCallable$k(O.callee)?"Arguments":result},classof$h=classof$i,$String$3=String,toString$n=function(argument){if("Symbol"===classof$h(argument))throw new TypeError("Cannot convert a Symbol value to a string");return $String$3(argument)},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$4=Object.keys||function keys(O){return internalObjectKeys(O,enumBugKeys$1)},DESCRIPTORS$t=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$8=objectDefineProperty,anObject$u=anObject$x,toIndexedObject$b=toIndexedObject$f,objectKeys$3=objectKeys$4;objectDefineProperties.f=DESCRIPTORS$t&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function defineProperties(O,Properties){anObject$u(O);for(var key,props=toIndexedObject$b(Properties),keys=objectKeys$3(Properties),length=keys.length,index=0;length>index;)definePropertyModule$8.f(O,key=keys[index++],props[key]);return O};var activeXDocument,html$2=getBuiltIn$f("document","documentElement"),anObject$t=anObject$x,definePropertiesModule$1=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys$2=hiddenKeys$6,html$1=html$2,documentCreateElement$1=documentCreateElement$2,IE_PROTO$1=sharedKey$4("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return"<script>"+content+"<\/script>"},NullProtoObjectViaActiveX=function(activeXDocument){activeXDocument.write(scriptTag("")),activeXDocument.close();var temp=activeXDocument.parentWindow.Object;return activeXDocument=null,temp},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(error){}var iframeDocument,iframe;NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):((iframe=documentCreateElement$1("iframe")).style.display="none",html$1.appendChild(iframe),iframe.src=String("javascript:"),(iframeDocument=iframe.contentWindow.document).open(),iframeDocument.write(scriptTag("document.F=Object")),iframeDocument.close(),iframeDocument.F):NullProtoObjectViaActiveX(activeXDocument);for(var length=enumBugKeys.length;length--;)delete NullProtoObject.prototype[enumBugKeys[length]];return NullProtoObject()};hiddenKeys$2[IE_PROTO$1]=!0;var objectCreate=Object.create||function create(O,Properties){var result;return null!==O?(EmptyConstructor.prototype=anObject$t(O),result=new EmptyConstructor,EmptyConstructor.prototype=null,result[IE_PROTO$1]=O):result=NullProtoObject(),void 0===Properties?result:definePropertiesModule$1.f(result,Properties)},objectGetOwnPropertyNamesExternal={},arraySlice$a=functionUncurryThis([].slice),classof$g=classofRaw$2,toIndexedObject$a=toIndexedObject$f,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$9=arraySlice$a,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];objectGetOwnPropertyNamesExternal.f=function getOwnPropertyNames(it){return windowNames&&"Window"===classof$g(it)?function(it){try{return $getOwnPropertyNames$1(it)}catch(error){return arraySlice$9(windowNames)}}(it):$getOwnPropertyNames$1(toIndexedObject$a(it))};var makeBuiltIn$1=makeBuiltInExports,defineProperty$8=objectDefineProperty,defineBuiltInAccessor$b=function(target,name,descriptor){return descriptor.get&&makeBuiltIn$1(descriptor.get,name,{getter:!0}),descriptor.set&&makeBuiltIn$1(descriptor.set,name,{setter:!0}),defineProperty$8.f(target,name,descriptor)},wellKnownSymbolWrapped={},wellKnownSymbol$s=wellKnownSymbol$w;wellKnownSymbolWrapped.f=wellKnownSymbol$s;var path$3=globalThis_1,path$2=path$3,hasOwn$j=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$7=objectDefineProperty.f,wellKnownSymbolDefine=function(NAME){var Symbol=path$2.Symbol||(path$2.Symbol={});hasOwn$j(Symbol,NAME)||defineProperty$7(Symbol,NAME,{value:wrappedWellKnownSymbolModule$1.f(NAME)})},call$s=functionCall,getBuiltIn$b=getBuiltIn$f,wellKnownSymbol$r=wellKnownSymbol$w,defineBuiltIn$g=defineBuiltIn$i,symbolDefineToPrimitive=function(){var Symbol=getBuiltIn$b("Symbol"),SymbolPrototype=Symbol&&Symbol.prototype,valueOf=SymbolPrototype&&SymbolPrototype.valueOf,TO_PRIMITIVE=wellKnownSymbol$r("toPrimitive");SymbolPrototype&&!SymbolPrototype[TO_PRIMITIVE]&&defineBuiltIn$g(SymbolPrototype,TO_PRIMITIVE,function(hint){return call$s(valueOf,this)},{arity:1})},defineProperty$6=objectDefineProperty.f,hasOwn$i=hasOwnProperty_1,TO_STRING_TAG$1=wellKnownSymbol$w("toStringTag"),setToStringTag$c=function(target,TAG,STATIC){target&&!STATIC&&(target=target.prototype),target&&!hasOwn$i(target,TO_STRING_TAG$1)&&defineProperty$6(target,TO_STRING_TAG$1,{configurable:!0,value:TAG})},classofRaw=classofRaw$2,uncurryThis$N=functionUncurryThis,functionUncurryThisClause=function(fn){if("Function"===classofRaw(fn))return uncurryThis$N(fn)},aCallable$f=aCallable$h,NATIVE_BIND$2=functionBindNative,bind$c=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(fn,that){return aCallable$f(fn),void 0===that?fn:NATIVE_BIND$2?bind$c(fn,that):function(){return fn.apply(that,arguments)}},classof$f=classofRaw$2,isArray$7=Array.isArray||function isArray(argument){return"Array"===classof$f(argument)},uncurryThis$L=functionUncurryThis,fails$$=fails$18,isCallable$j=isCallable$v,classof$e=classof$i,inspectSource$1=inspectSource$3,noop=function(){},construct$1=getBuiltIn$f("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$7=uncurryThis$L(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function isConstructor(argument){if(!isCallable$j(argument))return!1;try{return construct$1(noop,[],argument),!0}catch(error){return!1}},isConstructorLegacy=function isConstructor(argument){if(!isCallable$j(argument))return!1;switch(classof$e(argument)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$7(constructorRegExp,inspectSource$1(argument))}catch(error){return!0}};isConstructorLegacy.sham=!0;var isConstructor$5=!construct$1||fails$$(function(){var called;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){called=!0})||called})?isConstructorLegacy:isConstructorModern,isArray$6=isArray$7,isConstructor$4=isConstructor$5,isObject$w=isObject$C,SPECIES$6=wellKnownSymbol$w("species"),$Array$4=Array,arraySpeciesConstructor=function(originalArray){var C;return isArray$6(originalArray)&&(C=originalArray.constructor,(isConstructor$4(C)&&(C===$Array$4||isArray$6(C.prototype))||isObject$w(C)&&null===(C=C[SPECIES$6]))&&(C=void 0)),void 0===C?$Array$4:C},arraySpeciesCreate$5=function(originalArray,length){return new(arraySpeciesConstructor(originalArray))(0===length?0:length)},bind$b=functionBindContext,IndexedObject$3=indexedObject,toObject$l=toObject$n,lengthOfArrayLike$h=lengthOfArrayLike$j,arraySpeciesCreate$4=arraySpeciesCreate$5,push$b=functionUncurryThis([].push),createMethod$5=function(TYPE){var IS_MAP=1===TYPE,IS_FILTER=2===TYPE,IS_SOME=3===TYPE,IS_EVERY=4===TYPE,IS_FIND_INDEX=6===TYPE,IS_FILTER_REJECT=7===TYPE,NO_HOLES=5===TYPE||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){for(var value,result,O=toObject$l($this),self=IndexedObject$3(O),length=lengthOfArrayLike$h(self),boundFunction=bind$b(callbackfn,that),index=0,create=specificCreate||arraySpeciesCreate$4,target=IS_MAP?create($this,length):IS_FILTER||IS_FILTER_REJECT?create($this,0):void 0;length>index;index++)if((NO_HOLES||index in self)&&(result=boundFunction(value=self[index],index,O),TYPE))if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return value;case 6:return index;case 2:push$b(target,value)}else switch(TYPE){case 4:return!1;case 7:push$b(target,value)}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}},arrayIteration={forEach:createMethod$5(0),map:createMethod$5(1),filter:createMethod$5(2),some:createMethod$5(3),every:createMethod$5(4),find:createMethod$5(5),findIndex:createMethod$5(6)},$$23=_export,globalThis$E=globalThis_1,call$r=functionCall,uncurryThis$J=functionUncurryThis,DESCRIPTORS$s=descriptors,NATIVE_SYMBOL$4=symbolConstructorDetection,fails$_=fails$18,hasOwn$h=hasOwnProperty_1,isPrototypeOf$9=objectIsPrototypeOf,anObject$s=anObject$x,toIndexedObject$9=toIndexedObject$f,toPropertyKey$4=toPropertyKey$7,$toString$3=toString$n,createPropertyDescriptor$5=createPropertyDescriptor$8,nativeObjectCreate=objectCreate,objectKeys$2=objectKeys$4,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$5=objectGetOwnPropertyDescriptor,definePropertyModule$7=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$f=defineBuiltIn$i,defineBuiltInAccessor$a=defineBuiltInAccessor$b,shared$3=shared$7,hiddenKeys$1=hiddenKeys$6,uid$2=uid$5,wellKnownSymbol$o=wellKnownSymbol$w,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$c=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$b=setToStringTag$c,InternalStateModule$a=internalState,$forEach$2=arrayIteration.forEach,HIDDEN=sharedKey$4("hidden"),setInternalState$9=InternalStateModule$a.set,getInternalState$5=InternalStateModule$a.getterFor("Symbol"),ObjectPrototype$4=Object.prototype,$Symbol=globalThis$E.Symbol,SymbolPrototype$1=$Symbol&&$Symbol.prototype,RangeError$4=globalThis$E.RangeError,TypeError$6=globalThis$E.TypeError,QObject=globalThis$E.QObject,nativeGetOwnPropertyDescriptor$2=getOwnPropertyDescriptorModule$5.f,nativeDefineProperty$1=definePropertyModule$7.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$a=uncurryThis$J([].push),AllSymbols=shared$3("symbols"),ObjectPrototypeSymbols=shared$3("op-symbols"),WellKnownSymbolsStore=shared$3("wks"),USE_SETTER=!QObject||!QObject.prototype||!QObject.prototype.findChild,fallbackDefineProperty=function(O,P,Attributes){var ObjectPrototypeDescriptor=nativeGetOwnPropertyDescriptor$2(ObjectPrototype$4,P);ObjectPrototypeDescriptor&&delete ObjectPrototype$4[P],nativeDefineProperty$1(O,P,Attributes),ObjectPrototypeDescriptor&&O!==ObjectPrototype$4&&nativeDefineProperty$1(ObjectPrototype$4,P,ObjectPrototypeDescriptor)},setSymbolDescriptor=DESCRIPTORS$s&&fails$_(function(){return 7!==nativeObjectCreate(nativeDefineProperty$1({},"a",{get:function(){return nativeDefineProperty$1(this,"a",{value:7}).a}})).a})?fallbackDefineProperty:nativeDefineProperty$1,wrap=function(tag,description){var symbol=AllSymbols[tag]=nativeObjectCreate(SymbolPrototype$1);return setInternalState$9(symbol,{type:"Symbol",tag:tag,description:description}),DESCRIPTORS$s||(symbol.description=description),symbol},$defineProperty=function defineProperty(O,P,Attributes){O===ObjectPrototype$4&&$defineProperty(ObjectPrototypeSymbols,P,Attributes),anObject$s(O);var key=toPropertyKey$4(P);return anObject$s(Attributes),hasOwn$h(AllSymbols,key)?(Attributes.enumerable?(hasOwn$h(O,HIDDEN)&&O[HIDDEN][key]&&(O[HIDDEN][key]=!1),Attributes=nativeObjectCreate(Attributes,{enumerable:createPropertyDescriptor$5(0,!1)})):(hasOwn$h(O,HIDDEN)||nativeDefineProperty$1(O,HIDDEN,createPropertyDescriptor$5(1,nativeObjectCreate(null))),O[HIDDEN][key]=!0),setSymbolDescriptor(O,key,Attributes)):nativeDefineProperty$1(O,key,Attributes)},$defineProperties=function defineProperties(O,Properties){anObject$s(O);var properties=toIndexedObject$9(Properties),keys=objectKeys$2(properties).concat($getOwnPropertySymbols(properties));return $forEach$2(keys,function(key){DESCRIPTORS$s&&!call$r($propertyIsEnumerable$1,properties,key)||$defineProperty(O,key,properties[key])}),O},$propertyIsEnumerable$1=function propertyIsEnumerable(V){var P=toPropertyKey$4(V),enumerable=call$r(nativePropertyIsEnumerable,this,P);return!(this===ObjectPrototype$4&&hasOwn$h(AllSymbols,P)&&!hasOwn$h(ObjectPrototypeSymbols,P))&&(!(enumerable||!hasOwn$h(this,P)||!hasOwn$h(AllSymbols,P)||hasOwn$h(this,HIDDEN)&&this[HIDDEN][P])||enumerable)},$getOwnPropertyDescriptor=function getOwnPropertyDescriptor(O,P){var it=toIndexedObject$9(O),key=toPropertyKey$4(P);if(it!==ObjectPrototype$4||!hasOwn$h(AllSymbols,key)||hasOwn$h(ObjectPrototypeSymbols,key)){var descriptor=nativeGetOwnPropertyDescriptor$2(it,key);return!descriptor||!hasOwn$h(AllSymbols,key)||hasOwn$h(it,HIDDEN)&&it[HIDDEN][key]||(descriptor.enumerable=!0),descriptor}},$getOwnPropertyNames=function getOwnPropertyNames(O){var names=nativeGetOwnPropertyNames(toIndexedObject$9(O)),result=[];return $forEach$2(names,function(key){hasOwn$h(AllSymbols,key)||hasOwn$h(hiddenKeys$1,key)||push$a(result,key)}),result},$getOwnPropertySymbols=function(O){var IS_OBJECT_PROTOTYPE=O===ObjectPrototype$4,names=nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE?ObjectPrototypeSymbols:toIndexedObject$9(O)),result=[];return $forEach$2(names,function(key){!hasOwn$h(AllSymbols,key)||IS_OBJECT_PROTOTYPE&&!hasOwn$h(ObjectPrototype$4,key)||push$a(result,AllSymbols[key])}),result};NATIVE_SYMBOL$4||($Symbol=function Symbol(){if(isPrototypeOf$9(SymbolPrototype$1,this))throw new TypeError$6("Symbol is not a constructor");var description=arguments.length&&void 0!==arguments[0]?$toString$3(arguments[0]):void 0,tag=uid$2(description),setter=function(value){var $this=void 0===this?globalThis$E:this;$this===ObjectPrototype$4&&call$r(setter,ObjectPrototypeSymbols,value),hasOwn$h($this,HIDDEN)&&hasOwn$h($this[HIDDEN],tag)&&($this[HIDDEN][tag]=!1);var descriptor=createPropertyDescriptor$5(1,value);try{setSymbolDescriptor($this,tag,descriptor)}catch(error){if(!(error instanceof RangeError$4))throw error;fallbackDefineProperty($this,tag,descriptor)}};return DESCRIPTORS$s&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$4,tag,{configurable:!0,set:setter}),wrap(tag,description)},defineBuiltIn$f(SymbolPrototype$1=$Symbol.prototype,"toString",function toString(){return getInternalState$5(this).tag}),defineBuiltIn$f($Symbol,"withoutSetter",function(description){return wrap(uid$2(description),description)}),propertyIsEnumerableModule$1.f=$propertyIsEnumerable$1,definePropertyModule$7.f=$defineProperty,definePropertiesModule.f=$defineProperties,getOwnPropertyDescriptorModule$5.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule$1.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule$2.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(name){return wrap(wellKnownSymbol$o(name),name)},DESCRIPTORS$s&&(defineBuiltInAccessor$a(SymbolPrototype$1,"description",{configurable:!0,get:function description(){return getInternalState$5(this).description}}),defineBuiltIn$f(ObjectPrototype$4,"propertyIsEnumerable",$propertyIsEnumerable$1,{unsafe:!0}))),$$23({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$4,sham:!NATIVE_SYMBOL$4},{Symbol:$Symbol}),$forEach$2(objectKeys$2(WellKnownSymbolsStore),function(name){defineWellKnownSymbol$c(name)}),$$23({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL$4},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$23({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$4,sham:!DESCRIPTORS$s},{create:function create(O,Properties){return void 0===Properties?nativeObjectCreate(O):$defineProperties(nativeObjectCreate(O),Properties)},defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$23({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$4},{getOwnPropertyNames:$getOwnPropertyNames}),defineSymbolToPrimitive$1(),setToStringTag$b($Symbol,"Symbol"),hiddenKeys$1[HIDDEN]=!0;var symbolRegistryDetection=symbolConstructorDetection&&!!Symbol.for&&!!Symbol.keyFor,$$22=_export,getBuiltIn$9=getBuiltIn$f,hasOwn$g=hasOwnProperty_1,toString$m=toString$n,shared$2=shared$7,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$2("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$2("symbol-to-string-registry");$$22({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(key){var string=toString$m(key);if(hasOwn$g(StringToSymbolRegistry,string))return StringToSymbolRegistry[string];var symbol=getBuiltIn$9("Symbol")(string);return StringToSymbolRegistry[string]=symbol,SymbolToStringRegistry$1[symbol]=string,symbol}});var $$21=_export,hasOwn$f=hasOwnProperty_1,isSymbol$3=isSymbol$6,tryToString$5=tryToString$7,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$7("symbol-to-string-registry");$$21({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function keyFor(sym){if(!isSymbol$3(sym))throw new TypeError(tryToString$5(sym)+" is not a symbol");if(hasOwn$f(SymbolToStringRegistry,sym))return SymbolToStringRegistry[sym]}});var NATIVE_BIND$1=functionBindNative,FunctionPrototype$2=Function.prototype,apply$8=FunctionPrototype$2.apply,call$q=FunctionPrototype$2.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$q.bind(apply$8):function(){return call$q.apply(apply$8,arguments)}),isArray$5=isArray$7,isCallable$i=isCallable$v,classof$d=classofRaw$2,toString$l=toString$n,push$9=functionUncurryThis([].push),$$20=_export,getBuiltIn$8=getBuiltIn$f,apply$7=functionApply$1,call$p=functionCall,uncurryThis$H=functionUncurryThis,fails$Z=fails$18,isCallable$h=isCallable$v,isSymbol$2=isSymbol$6,arraySlice$8=arraySlice$a,getReplacerFunction=function(replacer){if(isCallable$i(replacer))return replacer;if(isArray$5(replacer)){for(var rawLength=replacer.length,keys=[],i=0;i<rawLength;i++){var element=replacer[i];"string"==typeof element?push$9(keys,element):"number"!=typeof element&&"Number"!==classof$d(element)&&"String"!==classof$d(element)||push$9(keys,toString$l(element))}var keysLength=keys.length,root=!0;return function(key,value){if(root)return root=!1,value;if(isArray$5(this))return value;for(var j=0;j<keysLength;j++)if(keys[j]===key)return value}}},NATIVE_SYMBOL$2=symbolConstructorDetection,$String$2=String,$stringify=getBuiltIn$8("JSON","stringify"),exec$6=uncurryThis$H(/./.exec),charAt$9=uncurryThis$H("".charAt),charCodeAt$3=uncurryThis$H("".charCodeAt),replace$9=uncurryThis$H("".replace),numberToString$1=uncurryThis$H(1.1.toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$2||fails$Z(function(){var symbol=getBuiltIn$8("Symbol")("stringify detection");return"[null]"!==$stringify([symbol])||"{}"!==$stringify({a:symbol})||"{}"!==$stringify(Object(symbol))}),ILL_FORMED_UNICODE=fails$Z(function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")}),stringifyWithSymbolsFix=function(it,replacer){var args=arraySlice$8(arguments),$replacer=getReplacerFunction(replacer);if(isCallable$h($replacer)||void 0!==it&&!isSymbol$2(it))return args[1]=function(key,value){if(isCallable$h($replacer)&&(value=call$p($replacer,this,$String$2(key),value)),!isSymbol$2(value))return value},apply$7($stringify,null,args)},fixIllFormed=function(match,offset,string){var prev=charAt$9(string,offset-1),next=charAt$9(string,offset+1);return exec$6(low,match)&&!exec$6(hi,next)||exec$6(hi,match)&&!exec$6(low,prev)?"\\u"+numberToString$1(charCodeAt$3(match,0),16):match};$stringify&&$$20({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function stringify(it,replacer,space){var args=arraySlice$8(arguments),result=apply$7(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,args);return ILL_FORMED_UNICODE&&"string"==typeof result?replace$9(result,tester,fixIllFormed):result}});var getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,toObject$k=toObject$n;_export({target:"Object",stat:!0,forced:!symbolConstructorDetection||fails$18(function(){getOwnPropertySymbolsModule$1.f(1)})},{getOwnPropertySymbols:function getOwnPropertySymbols(it){var $getOwnPropertySymbols=getOwnPropertySymbolsModule$1.f;return $getOwnPropertySymbols?$getOwnPropertySymbols(toObject$k(it)):[]}});var $$1_=_export,DESCRIPTORS$r=descriptors,uncurryThis$G=functionUncurryThis,hasOwn$e=hasOwnProperty_1,isCallable$g=isCallable$v,isPrototypeOf$8=objectIsPrototypeOf,toString$k=toString$n,defineBuiltInAccessor$9=defineBuiltInAccessor$b,copyConstructorProperties$2=copyConstructorProperties$4,NativeSymbol=globalThis_1.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;if(DESCRIPTORS$r&&isCallable$g(NativeSymbol)&&(!("description"in SymbolPrototype)||void 0!==NativeSymbol().description)){var EmptyStringDescriptionStore={},SymbolWrapper=function Symbol(){var description=arguments.length<1||void 0===arguments[0]?void 0:toString$k(arguments[0]),result=isPrototypeOf$8(SymbolPrototype,this)?new NativeSymbol(description):void 0===description?NativeSymbol():NativeSymbol(description);return""===description&&(EmptyStringDescriptionStore[result]=!0),result};copyConstructorProperties$2(SymbolWrapper,NativeSymbol),SymbolWrapper.prototype=SymbolPrototype,SymbolPrototype.constructor=SymbolWrapper;var NATIVE_SYMBOL="Symbol(description detection)"===String(NativeSymbol("description detection")),thisSymbolValue=uncurryThis$G(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis$G(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace$8=uncurryThis$G("".replace),stringSlice$c=uncurryThis$G("".slice);defineBuiltInAccessor$9(SymbolPrototype,"description",{configurable:!0,get:function description(){var symbol=thisSymbolValue(this);if(hasOwn$e(EmptyStringDescriptionStore,symbol))return"";var string=symbolDescriptiveString(symbol),desc=NATIVE_SYMBOL?stringSlice$c(string,7,-1):replace$8(string,regexp,"$1");return""===desc?void 0:desc}}),$$1_({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})}wellKnownSymbolDefine("asyncIterator"),wellKnownSymbolDefine("hasInstance"),wellKnownSymbolDefine("isConcatSpreadable"),wellKnownSymbolDefine("iterator"),wellKnownSymbolDefine("match"),wellKnownSymbolDefine("replace"),wellKnownSymbolDefine("search"),wellKnownSymbolDefine("species"),wellKnownSymbolDefine("split");var defineSymbolToPrimitive=symbolDefineToPrimitive;wellKnownSymbolDefine("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$7=getBuiltIn$f,setToStringTag$a=setToStringTag$c;wellKnownSymbolDefine("toStringTag"),setToStringTag$a(getBuiltIn$7("Symbol"),"Symbol"),wellKnownSymbolDefine("unscopables");var $TypeError$e=TypeError,doesNotExceedSafeInteger$3=function(it){if(it>9007199254740991)throw $TypeError$e("Maximum allowed index exceeded");return it},DESCRIPTORS$q=descriptors,definePropertyModule$6=objectDefineProperty,createPropertyDescriptor$4=createPropertyDescriptor$8,createProperty$7=function(object,key,value){DESCRIPTORS$q?definePropertyModule$6.f(object,key,createPropertyDescriptor$4(0,value)):object[key]=value},fails$X=fails$18,V8_VERSION$2=environmentV8Version,SPECIES$5=wellKnownSymbol$w("species"),arrayMethodHasSpeciesSupport$5=function(METHOD_NAME){return V8_VERSION$2>=51||!fails$X(function(){var array=[];return(array.constructor={})[SPECIES$5]=function(){return{foo:1}},1!==array[METHOD_NAME](Boolean).foo})},$$1Z=_export,fails$W=fails$18,isArray$4=isArray$7,isObject$v=isObject$C,toObject$j=toObject$n,lengthOfArrayLike$g=lengthOfArrayLike$j,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$6=createProperty$7,arraySpeciesCreate$3=arraySpeciesCreate$5,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,V8_VERSION$1=environmentV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$w("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$W(function(){var array=[];return array[IS_CONCAT_SPREADABLE]=!1,array.concat()[0]!==array}),isConcatSpreadable=function(O){if(!isObject$v(O))return!1;var spreadable=O[IS_CONCAT_SPREADABLE];return void 0!==spreadable?!!spreadable:isArray$4(O)};$$1Z({target:"Array",proto:!0,arity:1,forced:!IS_CONCAT_SPREADABLE_SUPPORT||!arrayMethodHasSpeciesSupport$4("concat")},{concat:function concat(arg){var i,k,length,len,E,O=toObject$j(this),A=arraySpeciesCreate$3(O,0),n=0;for(i=-1,length=arguments.length;i<length;i++)if(isConcatSpreadable(E=-1===i?O:arguments[i]))for(len=lengthOfArrayLike$g(E),doesNotExceedSafeInteger$2(n+len),k=0;k<len;k++,n++)k in E&&createProperty$6(A,n,E[k]);else doesNotExceedSafeInteger$2(n+1),createProperty$6(A,n++,E);return A.length=n,A}});var tryToString$4=tryToString$7,$TypeError$d=TypeError,deletePropertyOrThrow$3=function(O,P){if(!delete O[P])throw new $TypeError$d("Cannot delete property "+tryToString$4(P)+" of "+tryToString$4(O))},toObject$i=toObject$n,toAbsoluteIndex$6=toAbsoluteIndex$8,lengthOfArrayLike$f=lengthOfArrayLike$j,deletePropertyOrThrow$2=deletePropertyOrThrow$3,min$6=Math.min,arrayCopyWithin=[].copyWithin||function copyWithin(target,start){var O=toObject$i(this),len=lengthOfArrayLike$f(O),to=toAbsoluteIndex$6(target,len),from=toAbsoluteIndex$6(start,len),end=arguments.length>2?arguments[2]:void 0,count=min$6((void 0===end?len:toAbsoluteIndex$6(end,len))-from,len-to),inc=1;for(from<to&&to<from+count&&(inc=-1,from+=count-1,to+=count-1);count-- >0;)from in O?O[to]=O[from]:deletePropertyOrThrow$2(O,to),to+=inc,from+=inc;return O},wellKnownSymbol$l=wellKnownSymbol$w,create$7=objectCreate,defineProperty$5=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$l("unscopables"),ArrayPrototype$1=Array.prototype;void 0===ArrayPrototype$1[UNSCOPABLES]&&defineProperty$5(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$7(null)});var addToUnscopables$8=function(key){ArrayPrototype$1[UNSCOPABLES][key]=!0},addToUnscopables$7=addToUnscopables$8;_export({target:"Array",proto:!0},{copyWithin:arrayCopyWithin}),addToUnscopables$7("copyWithin");var toObject$h=toObject$n,toAbsoluteIndex$5=toAbsoluteIndex$8,lengthOfArrayLike$e=lengthOfArrayLike$j,arrayFill$1=function fill(value){for(var O=toObject$h(this),length=lengthOfArrayLike$e(O),argumentsLength=arguments.length,index=toAbsoluteIndex$5(argumentsLength>1?arguments[1]:void 0,length),end=argumentsLength>2?arguments[2]:void 0,endPos=void 0===end?length:toAbsoluteIndex$5(end,length);endPos>index;)O[index++]=value;return O},addToUnscopables$6=addToUnscopables$8;_export({target:"Array",proto:!0},{fill:arrayFill$1}),addToUnscopables$6("fill");var $filter$1=arrayIteration.filter;_export({target:"Array",proto:!0,forced:!arrayMethodHasSpeciesSupport$5("filter")},{filter:function filter(callbackfn){return $filter$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}});var $$1V=_export,$find$1=arrayIteration.find,addToUnscopables$5=addToUnscopables$8,SKIPS_HOLES$1=!0;"find"in[]&&Array(1).find(function(){SKIPS_HOLES$1=!1}),$$1V({target:"Array",proto:!0,forced:SKIPS_HOLES$1},{find:function find(callbackfn){return $find$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$5("find");var $$1U=_export,$findIndex$1=arrayIteration.findIndex,addToUnscopables$4=addToUnscopables$8,SKIPS_HOLES=!0;"findIndex"in[]&&Array(1).findIndex(function(){SKIPS_HOLES=!1}),$$1U({target:"Array",proto:!0,forced:SKIPS_HOLES},{findIndex:function findIndex(callbackfn){return $findIndex$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$4("findIndex");var isArray$3=isArray$7,lengthOfArrayLike$d=lengthOfArrayLike$j,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$3,bind$a=functionBindContext,flattenIntoArray$2=function(target,original,source,sourceLen,start,depth,mapper,thisArg){for(var element,elementLen,targetIndex=start,sourceIndex=0,mapFn=!!mapper&&bind$a(mapper,thisArg);sourceIndex<sourceLen;)sourceIndex in source&&(element=mapFn?mapFn(source[sourceIndex],sourceIndex,original):source[sourceIndex],depth>0&&isArray$3(element)?(elementLen=lengthOfArrayLike$d(element),targetIndex=flattenIntoArray$2(target,original,element,elementLen,targetIndex,depth-1)-1):(doesNotExceedSafeInteger$1(targetIndex+1),target[targetIndex]=element),targetIndex++),sourceIndex++;return targetIndex},flattenIntoArray_1=flattenIntoArray$2,flattenIntoArray$1=flattenIntoArray_1,toObject$g=toObject$n,lengthOfArrayLike$c=lengthOfArrayLike$j,toIntegerOrInfinity$9=toIntegerOrInfinity$c,arraySpeciesCreate$2=arraySpeciesCreate$5;_export({target:"Array",proto:!0},{flat:function flat(){var depthArg=arguments.length?arguments[0]:void 0,O=toObject$g(this),sourceLen=lengthOfArrayLike$c(O),A=arraySpeciesCreate$2(O,0);return A.length=flattenIntoArray$1(A,O,O,sourceLen,0,void 0===depthArg?1:toIntegerOrInfinity$9(depthArg)),A}});var flattenIntoArray=flattenIntoArray_1,aCallable$e=aCallable$h,toObject$f=toObject$n,lengthOfArrayLike$b=lengthOfArrayLike$j,arraySpeciesCreate$1=arraySpeciesCreate$5;_export({target:"Array",proto:!0},{flatMap:function flatMap(callbackfn){var A,O=toObject$f(this),sourceLen=lengthOfArrayLike$b(O);return aCallable$e(callbackfn),(A=arraySpeciesCreate$1(O,0)).length=flattenIntoArray(A,O,O,sourceLen,0,1,callbackfn,arguments.length>1?arguments[1]:void 0),A}});var call$o=functionCall,anObject$r=anObject$x,getMethod$5=getMethod$7,iteratorClose$2=function(iterator,kind,value){var innerResult,innerError;anObject$r(iterator);try{if(!(innerResult=getMethod$5(iterator,"return"))){if("throw"===kind)throw value;return value}innerResult=call$o(innerResult,iterator)}catch(error){innerError=!0,innerResult=error}if("throw"===kind)throw value;if(innerError)throw innerResult;return anObject$r(innerResult),value},anObject$q=anObject$x,iteratorClose$1=iteratorClose$2,iterators={},Iterators$4=iterators,ITERATOR$a=wellKnownSymbol$w("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$3=function(it){return void 0!==it&&(Iterators$4.Array===it||ArrayPrototype[ITERATOR$a]===it)},classof$c=classof$i,getMethod$4=getMethod$7,isNullOrUndefined$4=isNullOrUndefined$7,Iterators$3=iterators,ITERATOR$9=wellKnownSymbol$w("iterator"),getIteratorMethod$5=function(it){if(!isNullOrUndefined$4(it))return getMethod$4(it,ITERATOR$9)||getMethod$4(it,"@@iterator")||Iterators$3[classof$c(it)]},call$n=functionCall,aCallable$d=aCallable$h,anObject$p=anObject$x,tryToString$3=tryToString$7,getIteratorMethod$4=getIteratorMethod$5,$TypeError$c=TypeError,getIterator$4=function(argument,usingIterator){var iteratorMethod=arguments.length<2?getIteratorMethod$4(argument):usingIterator;if(aCallable$d(iteratorMethod))return anObject$p(call$n(iteratorMethod,argument));throw new $TypeError$c(tryToString$3(argument)+" is not iterable")},bind$9=functionBindContext,call$m=functionCall,toObject$e=toObject$n,callWithSafeIterationClosing=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject$q(value)[0],value[1]):fn(value)}catch(error){iteratorClose$1(iterator,"throw",error)}},isArrayIteratorMethod$2=isArrayIteratorMethod$3,isConstructor$3=isConstructor$5,lengthOfArrayLike$a=lengthOfArrayLike$j,createProperty$5=createProperty$7,getIterator$3=getIterator$4,getIteratorMethod$3=getIteratorMethod$5,$Array$3=Array,arrayFrom$1=function from(arrayLike){var O=toObject$e(arrayLike),IS_CONSTRUCTOR=isConstructor$3(this),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn;mapping&&(mapfn=bind$9(mapfn,argumentsLength>2?arguments[2]:void 0));var length,result,step,iterator,next,value,iteratorMethod=getIteratorMethod$3(O),index=0;if(!iteratorMethod||this===$Array$3&&isArrayIteratorMethod$2(iteratorMethod))for(length=lengthOfArrayLike$a(O),result=IS_CONSTRUCTOR?new this(length):$Array$3(length);length>index;index++)value=mapping?mapfn(O[index],index):O[index],createProperty$5(result,index,value);else for(result=IS_CONSTRUCTOR?new this:[],next=(iterator=getIterator$3(O,iteratorMethod)).next;!(step=call$m(next,iterator)).done;index++)value=mapping?callWithSafeIterationClosing(iterator,mapfn,[step.value,index],!0):step.value,createProperty$5(result,index,value);return result.length=index,result},ITERATOR$8=wellKnownSymbol$w("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$8]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(error){}var checkCorrectnessOfIteration$4=function(exec,SKIP_CLOSING){try{if(!SKIP_CLOSING&&!SAFE_CLOSING)return!1}catch(error){return!1}var ITERATION_SUPPORT=!1;try{var object={};object[ITERATOR$8]=function(){return{next:function(){return{done:ITERATION_SUPPORT=!0}}}},exec(object)}catch(error){}return ITERATION_SUPPORT},from=arrayFrom$1;_export({target:"Array",stat:!0,forced:!checkCorrectnessOfIteration$4(function(iterable){Array.from(iterable)})},{from:from});var $includes$1=arrayIncludes.includes,addToUnscopables$3=addToUnscopables$8;_export({target:"Array",proto:!0,forced:fails$18(function(){return!Array(1).includes()})},{includes:function includes(el){return $includes$1(this,el,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$3("includes");var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,correctPrototypeGetter=!fails$18(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}),hasOwn$d=hasOwnProperty_1,isCallable$f=isCallable$v,toObject$d=toObject$n,CORRECT_PROTOTYPE_GETTER$2=correctPrototypeGetter,IE_PROTO=sharedKey$4("IE_PROTO"),$Object$1=Object,ObjectPrototype$3=$Object$1.prototype,objectGetPrototypeOf$2=CORRECT_PROTOTYPE_GETTER$2?$Object$1.getPrototypeOf:function(O){var object=toObject$d(O);if(hasOwn$d(object,IE_PROTO))return object[IE_PROTO];var constructor=object.constructor;return isCallable$f(constructor)&&object instanceof constructor?constructor.prototype:object instanceof $Object$1?ObjectPrototype$3:null},fails$T=fails$18,isCallable$e=isCallable$v,isObject$u=isObject$C,getPrototypeOf$7=objectGetPrototypeOf$2,defineBuiltIn$e=defineBuiltIn$i,ITERATOR$7=wellKnownSymbol$w("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$7(getPrototypeOf$7(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$u(IteratorPrototype$2)||fails$T(function(){var test={};return IteratorPrototype$2[ITERATOR$7].call(test)!==test});NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable$e(IteratorPrototype$2[ITERATOR$7])||defineBuiltIn$e(IteratorPrototype$2,ITERATOR$7,function(){return this});var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$6=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$8,setToStringTag$9=setToStringTag$c,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(IteratorConstructor,NAME,next,ENUMERABLE_NEXT){var TO_STRING_TAG=NAME+" Iterator";return IteratorConstructor.prototype=create$6(IteratorPrototype$1,{next:createPropertyDescriptor$3(+!ENUMERABLE_NEXT,next)}),setToStringTag$9(IteratorConstructor,TO_STRING_TAG,!1),Iterators$2[TO_STRING_TAG]=returnThis$1,IteratorConstructor},uncurryThis$F=functionUncurryThis,aCallable$c=aCallable$h,isObject$t=isObject$C,isPossiblePrototype=function(argument){return isObject$t(argument)||null===argument},$String$1=String,$TypeError$b=TypeError,aPossiblePrototype$2=function(argument){if(isPossiblePrototype(argument))return argument;throw new $TypeError$b("Can't set "+$String$1(argument)+" as a prototype")},uncurryThisAccessor=function(object,key,method){try{return uncurryThis$F(aCallable$c(Object.getOwnPropertyDescriptor(object,key)[method]))}catch(error){}},isObject$s=isObject$C,requireObjectCoercible$c=requireObjectCoercible$f,aPossiblePrototype$1=aPossiblePrototype$2,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var setter,CORRECT_SETTER=!1,test={};try{(setter=uncurryThisAccessor(Object.prototype,"__proto__","set"))(test,[]),CORRECT_SETTER=test instanceof Array}catch(error){}return function setPrototypeOf(O,proto){return requireObjectCoercible$c(O),aPossiblePrototype$1(proto),isObject$s(O)?(CORRECT_SETTER?setter(O,proto):O.__proto__=proto,O):O}}():void 0),$$1P=_export,call$l=functionCall,isCallable$d=isCallable$v,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf$6=objectGetPrototypeOf$2,setPrototypeOf$6=objectSetPrototypeOf$1,setToStringTag$8=setToStringTag$c,createNonEnumerableProperty$7=createNonEnumerableProperty$a,defineBuiltIn$d=defineBuiltIn$i,Iterators$1=iterators,PROPER_FUNCTION_NAME$3=functionName.PROPER,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,IteratorPrototype=iteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=iteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$w("iterator"),returnThis=function(){return this},iteratorDefine=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor$1(IteratorConstructor,NAME,next);var CurrentIteratorPrototype,methods,KEY,getIterationMethod=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case"keys":return function keys(){return new IteratorConstructor(this,KIND)};case"values":return function values(){return new IteratorConstructor(this,KIND)};case"entries":return function entries(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}},TO_STRING_TAG=NAME+" Iterator",INCORRECT_VALUES_NAME=!1,IterablePrototype=Iterable.prototype,nativeIterator=IterablePrototype[ITERATOR$6]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT],defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||getIterationMethod(DEFAULT),anyNativeIterator="Array"===NAME&&IterablePrototype.entries||nativeIterator;if(anyNativeIterator&&(CurrentIteratorPrototype=getPrototypeOf$6(anyNativeIterator.call(new Iterable)))!==Object.prototype&&CurrentIteratorPrototype.next&&(getPrototypeOf$6(CurrentIteratorPrototype)!==IteratorPrototype&&(setPrototypeOf$6?setPrototypeOf$6(CurrentIteratorPrototype,IteratorPrototype):isCallable$d(CurrentIteratorPrototype[ITERATOR$6])||defineBuiltIn$d(CurrentIteratorPrototype,ITERATOR$6,returnThis)),setToStringTag$8(CurrentIteratorPrototype,TO_STRING_TAG,!0)),PROPER_FUNCTION_NAME$3&&"values"===DEFAULT&&nativeIterator&&"values"!==nativeIterator.name&&(CONFIGURABLE_FUNCTION_NAME$1?createNonEnumerableProperty$7(IterablePrototype,"name","values"):(INCORRECT_VALUES_NAME=!0,defaultIterator=function values(){return call$l(nativeIterator,this)})),DEFAULT)if(methods={values:getIterationMethod("values"),keys:IS_SET?defaultIterator:getIterationMethod("keys"),entries:getIterationMethod("entries")},FORCED)for(KEY in methods)(BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME||!(KEY in IterablePrototype))&&defineBuiltIn$d(IterablePrototype,KEY,methods[KEY]);else $$1P({target:NAME,proto:!0,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods);return IterablePrototype[ITERATOR$6]!==defaultIterator&&defineBuiltIn$d(IterablePrototype,ITERATOR$6,defaultIterator,{name:DEFAULT}),Iterators$1[NAME]=defaultIterator,methods},createIterResultObject$4=function(value,done){return{value:value,done:done}},toIndexedObject$8=toIndexedObject$f,addToUnscopables$2=addToUnscopables$8,Iterators=iterators,InternalStateModule$9=internalState,defineProperty$4=objectDefineProperty.f,defineIterator$2=iteratorDefine,createIterResultObject$3=createIterResultObject$4,DESCRIPTORS$p=descriptors,setInternalState$8=InternalStateModule$9.set,getInternalState$4=InternalStateModule$9.getterFor("Array Iterator"),es_array_iterator=defineIterator$2(Array,"Array",function(iterated,kind){setInternalState$8(this,{type:"Array Iterator",target:toIndexedObject$8(iterated),index:0,kind:kind})},function(){var state=getInternalState$4(this),target=state.target,index=state.index++;if(!target||index>=target.length)return state.target=null,createIterResultObject$3(void 0,!0);switch(state.kind){case"keys":return createIterResultObject$3(index,!1);case"values":return createIterResultObject$3(target[index],!1)}return createIterResultObject$3([index,target[index]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables$2("keys"),addToUnscopables$2("values"),addToUnscopables$2("entries"),DESCRIPTORS$p&&"values"!==values.name)try{defineProperty$4(values,"name",{value:"values"})}catch(error){}var fails$S=fails$18,arrayMethodIsStrict$4=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails$S(function(){method.call(null,argument||function(){return 1},1)})},$$1O=_export,IndexedObject$2=indexedObject,toIndexedObject$7=toIndexedObject$f,arrayMethodIsStrict$3=arrayMethodIsStrict$4,nativeJoin=functionUncurryThis([].join);$$1O({target:"Array",proto:!0,forced:IndexedObject$2!==Object||!arrayMethodIsStrict$3("join",",")},{join:function join(separator){return nativeJoin(toIndexedObject$7(this),void 0===separator?",":separator)}});var $map$1=arrayIteration.map;_export({target:"Array",proto:!0,forced:!arrayMethodHasSpeciesSupport$5("map")},{map:function map(callbackfn){return $map$1(this,callbackfn,arguments.length>1?arguments[1]:void 0)}});var isConstructor$2=isConstructor$5,createProperty$4=createProperty$7,$Array$2=Array;_export({target:"Array",stat:!0,forced:fails$18(function(){function F(){}return!($Array$2.of.call(F)instanceof F)})},{of:function of(){for(var index=0,argumentsLength=arguments.length,result=new(isConstructor$2(this)?this:$Array$2)(argumentsLength);argumentsLength>index;)createProperty$4(result,index,arguments[index++]);return result.length=argumentsLength,result}});var $$1L=_export,isArray$2=isArray$7,isConstructor$1=isConstructor$5,isObject$r=isObject$C,toAbsoluteIndex$4=toAbsoluteIndex$8,lengthOfArrayLike$9=lengthOfArrayLike$j,toIndexedObject$6=toIndexedObject$f,createProperty$3=createProperty$7,wellKnownSymbol$f=wellKnownSymbol$w,nativeSlice=arraySlice$a,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$5("slice"),SPECIES$4=wellKnownSymbol$f("species"),$Array$1=Array,max$2=Math.max;$$1L({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{slice:function slice(start,end){var Constructor,result,n,O=toIndexedObject$6(this),length=lengthOfArrayLike$9(O),k=toAbsoluteIndex$4(start,length),fin=toAbsoluteIndex$4(void 0===end?length:end,length);if(isArray$2(O)&&(Constructor=O.constructor,(isConstructor$1(Constructor)&&(Constructor===$Array$1||isArray$2(Constructor.prototype))||isObject$r(Constructor)&&null===(Constructor=Constructor[SPECIES$4]))&&(Constructor=void 0),Constructor===$Array$1||void 0===Constructor))return nativeSlice(O,k,fin);for(result=new(void 0===Constructor?$Array$1:Constructor)(max$2(fin-k,0)),n=0;k<fin;k++,n++)k in O&&createProperty$3(result,n,O[k]);return result.length=n,result}});var arraySlice$7=arraySlice$a,floor$8=Math.floor,sort=function(array,comparefn){var length=array.length;if(length<8)for(var element,j,i=1;i<length;){for(j=i,element=array[i];j&&comparefn(array[j-1],element)>0;)array[j]=array[--j];j!==i++&&(array[j]=element)}else for(var middle=floor$8(length/2),left=sort(arraySlice$7(array,0,middle),comparefn),right=sort(arraySlice$7(array,middle),comparefn),llength=left.length,rlength=right.length,lindex=0,rindex=0;lindex<llength||rindex<rlength;)array[lindex+rindex]=lindex<llength&&rindex<rlength?comparefn(left[lindex],right[rindex])<=0?left[lindex++]:right[rindex++]:lindex<llength?left[lindex++]:right[rindex++];return array},arraySort$1=sort,firefox=environmentUserAgent.match(/firefox\/(\d+)/i),environmentFfVersion=!!firefox&&+firefox[1],environmentIsIeOrEdge=/MSIE|Trident/.test(environmentUserAgent),webkit=environmentUserAgent.match(/AppleWebKit\/(\d+)\./),environmentWebkitVersion=!!webkit&&+webkit[1],$$1K=_export,uncurryThis$D=functionUncurryThis,aCallable$b=aCallable$h,toObject$c=toObject$n,lengthOfArrayLike$8=lengthOfArrayLike$j,deletePropertyOrThrow$1=deletePropertyOrThrow$3,toString$j=toString$n,fails$Q=fails$18,internalSort$1=arraySort$1,arrayMethodIsStrict$2=arrayMethodIsStrict$4,FF$1=environmentFfVersion,IE_OR_EDGE$1=environmentIsIeOrEdge,V8$1=environmentV8Version,WEBKIT$2=environmentWebkitVersion,test=[],nativeSort$1=uncurryThis$D(test.sort),push$8=uncurryThis$D(test.push),FAILS_ON_UNDEFINED=fails$Q(function(){test.sort(void 0)}),FAILS_ON_NULL=fails$Q(function(){test.sort(null)}),STRICT_METHOD$2=arrayMethodIsStrict$2("sort"),STABLE_SORT$1=!fails$Q(function(){if(V8$1)return V8$1<70;if(!(FF$1&&FF$1>3)){if(IE_OR_EDGE$1)return!0;if(WEBKIT$2)return WEBKIT$2<603;var code,chr,value,index,result="";for(code=65;code<76;code++){switch(chr=String.fromCharCode(code),code){case 66:case 69:case 70:case 72:value=3;break;case 68:case 71:value=4;break;default:value=2}for(index=0;index<47;index++)test.push({k:chr+index,v:value})}for(test.sort(function(a,b){return b.v-a.v}),index=0;index<test.length;index++)chr=test[index].k.charAt(0),result.charAt(result.length-1)!==chr&&(result+=chr);return"DGBEFHACIJK"!==result}});$$1K({target:"Array",proto:!0,forced:FAILS_ON_UNDEFINED||!FAILS_ON_NULL||!STRICT_METHOD$2||!STABLE_SORT$1},{sort:function sort(comparefn){void 0!==comparefn&&aCallable$b(comparefn);var array=toObject$c(this);if(STABLE_SORT$1)return void 0===comparefn?nativeSort$1(array):nativeSort$1(array,comparefn);var itemsLength,index,items=[],arrayLength=lengthOfArrayLike$8(array);for(index=0;index<arrayLength;index++)index in array&&push$8(items,array[index]);for(internalSort$1(items,function(comparefn){return function(x,y){return void 0===y?-1:void 0===x?1:void 0!==comparefn?+comparefn(x,y)||0:toString$j(x)>toString$j(y)?1:-1}}(comparefn)),itemsLength=lengthOfArrayLike$8(items),index=0;index<itemsLength;)array[index]=items[index++];for(;index<arrayLength;)deletePropertyOrThrow$1(array,index++);return array}});var getBuiltIn$6=getBuiltIn$f,defineBuiltInAccessor$8=defineBuiltInAccessor$b,DESCRIPTORS$o=descriptors,SPECIES$3=wellKnownSymbol$w("species"),setSpecies$6=function(CONSTRUCTOR_NAME){var Constructor=getBuiltIn$6(CONSTRUCTOR_NAME);DESCRIPTORS$o&&Constructor&&!Constructor[SPECIES$3]&&defineBuiltInAccessor$8(Constructor,SPECIES$3,{configurable:!0,get:function(){return this}})};setSpecies$6("Array");var DESCRIPTORS$n=descriptors,isArray$1=isArray$7,$TypeError$a=TypeError,getOwnPropertyDescriptor$7=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(error){return error instanceof TypeError}}(),$$1J=_export,toObject$b=toObject$n,toAbsoluteIndex$3=toAbsoluteIndex$8,toIntegerOrInfinity$8=toIntegerOrInfinity$c,lengthOfArrayLike$7=lengthOfArrayLike$j,setArrayLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(O,length){if(isArray$1(O)&&!getOwnPropertyDescriptor$7(O,"length").writable)throw new $TypeError$a("Cannot set read only .length");return O.length=length}:function(O,length){return O.length=length},doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$5,createProperty$2=createProperty$7,deletePropertyOrThrow=deletePropertyOrThrow$3,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport$5("splice"),max$1=Math.max,min$5=Math.min;$$1J({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{splice:function splice(start,deleteCount){var insertCount,actualDeleteCount,A,k,from,to,O=toObject$b(this),len=lengthOfArrayLike$7(O),actualStart=toAbsoluteIndex$3(start,len),argumentsLength=arguments.length;for(0===argumentsLength?insertCount=actualDeleteCount=0:1===argumentsLength?(insertCount=0,actualDeleteCount=len-actualStart):(insertCount=argumentsLength-2,actualDeleteCount=min$5(max$1(toIntegerOrInfinity$8(deleteCount),0),len-actualStart)),doesNotExceedSafeInteger(len+insertCount-actualDeleteCount),A=arraySpeciesCreate(O,actualDeleteCount),k=0;k<actualDeleteCount;k++)(from=actualStart+k)in O&&createProperty$2(A,k,O[from]);if(A.length=actualDeleteCount,insertCount<actualDeleteCount){for(k=actualStart;k<len-actualDeleteCount;k++)to=k+insertCount,(from=k+actualDeleteCount)in O?O[to]=O[from]:deletePropertyOrThrow(O,to);for(k=len;k>len-actualDeleteCount+insertCount;k--)deletePropertyOrThrow(O,k-1)}else if(insertCount>actualDeleteCount)for(k=len-actualDeleteCount;k>actualStart;k--)to=k+insertCount-1,(from=k+actualDeleteCount-1)in O?O[to]=O[from]:deletePropertyOrThrow(O,to);for(k=0;k<insertCount;k++)O[k+actualStart]=arguments[k+2];return setArrayLength(O,len-actualDeleteCount+insertCount),A}}),addToUnscopables$8("flat"),addToUnscopables$8("flatMap");var arrayBufferBasicDetection="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,defineBuiltIn$c=defineBuiltIn$i,defineBuiltIns$5=function(target,src,options){for(var key in src)defineBuiltIn$c(target,key,src[key],options);return target},isPrototypeOf$7=objectIsPrototypeOf,$TypeError$9=TypeError,anInstance$8=function(it,Prototype){if(isPrototypeOf$7(Prototype,it))return it;throw new $TypeError$9("Incorrect invocation")},toIntegerOrInfinity$7=toIntegerOrInfinity$c,toLength$a=toLength$c,$RangeError$6=RangeError,toIndex$2=function(it){if(void 0===it)return 0;var number=toIntegerOrInfinity$7(it),length=toLength$a(number);if(number!==length)throw new $RangeError$6("Wrong length or index");return length},mathSign=Math.sign||function sign(x){var n=+x;return 0===n||n!=n?n:n<0?-1:1},sign$2=mathSign,roundTiesToEven=function(n){return n+4503599627370496-4503599627370496},abs$6=Math.abs,floatRound=function(x,FLOAT_EPSILON,FLOAT_MAX_VALUE,FLOAT_MIN_VALUE){var n=+x,absolute=abs$6(n),s=sign$2(n);if(absolute<FLOAT_MIN_VALUE)return s*roundTiesToEven(absolute/FLOAT_MIN_VALUE/FLOAT_EPSILON)*FLOAT_MIN_VALUE*FLOAT_EPSILON;var a=(1+FLOAT_EPSILON/2220446049250313e-31)*absolute,result=a-(a-absolute);return result>FLOAT_MAX_VALUE||result!=result?s*(1/0):s*result},mathFround=Math.fround||function fround(x){return floatRound(x,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},$Array=Array,abs$5=Math.abs,pow$3=Math.pow,floor$7=Math.floor,log$8=Math.log,LN2$2=Math.LN2,ieee754={pack:function(number,mantissaLength,bytes){var exponent,mantissa,c,buffer=$Array(bytes),exponentLength=8*bytes-mantissaLength-1,eMax=(1<<exponentLength)-1,eBias=eMax>>1,rt=23===mantissaLength?pow$3(2,-24)-pow$3(2,-77):0,sign=number<0||0===number&&1/number<0?1:0,index=0;for((number=abs$5(number))!=number||number===1/0?(mantissa=number!=number?1:0,exponent=eMax):(exponent=floor$7(log$8(number)/LN2$2),number*(c=pow$3(2,-exponent))<1&&(exponent--,c*=2),(number+=exponent+eBias>=1?rt/c:rt*pow$3(2,1-eBias))*c>=2&&(exponent++,c/=2),exponent+eBias>=eMax?(mantissa=0,exponent=eMax):exponent+eBias>=1?(mantissa=(number*c-1)*pow$3(2,mantissaLength),exponent+=eBias):(mantissa=number*pow$3(2,eBias-1)*pow$3(2,mantissaLength),exponent=0));mantissaLength>=8;)buffer[index++]=255&mantissa,mantissa/=256,mantissaLength-=8;for(exponent=exponent<<mantissaLength|mantissa,exponentLength+=mantissaLength;exponentLength>0;)buffer[index++]=255&exponent,exponent/=256,exponentLength-=8;return buffer[index-1]|=128*sign,buffer},unpack:function(buffer,mantissaLength){var mantissa,bytes=buffer.length,exponentLength=8*bytes-mantissaLength-1,eMax=(1<<exponentLength)-1,eBias=eMax>>1,nBits=exponentLength-7,index=bytes-1,sign=buffer[index--],exponent=127&sign;for(sign>>=7;nBits>0;)exponent=256*exponent+buffer[index--],nBits-=8;for(mantissa=exponent&(1<<-nBits)-1,exponent>>=-nBits,nBits+=mantissaLength;nBits>0;)mantissa=256*mantissa+buffer[index--],nBits-=8;if(0===exponent)exponent=1-eBias;else{if(exponent===eMax)return mantissa?NaN:sign?-1/0:1/0;mantissa+=pow$3(2,mantissaLength),exponent-=eBias}return(sign?-1:1)*mantissa*pow$3(2,exponent-mantissaLength)}},isCallable$c=isCallable$v,isObject$q=isObject$C,setPrototypeOf$5=objectSetPrototypeOf$1,inheritIfRequired$5=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;return setPrototypeOf$5&&isCallable$c(NewTarget=dummy.constructor)&&NewTarget!==Wrapper&&isObject$q(NewTargetPrototype=NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype&&setPrototypeOf$5($this,NewTargetPrototype),$this},globalThis$C=globalThis_1,uncurryThis$C=functionUncurryThis,DESCRIPTORS$m=descriptors,NATIVE_ARRAY_BUFFER$1=arrayBufferBasicDetection,createNonEnumerableProperty$6=createNonEnumerableProperty$a,defineBuiltInAccessor$7=defineBuiltInAccessor$b,defineBuiltIns$4=defineBuiltIns$5,fails$P=fails$18,anInstance$7=anInstance$8,toIntegerOrInfinity$6=toIntegerOrInfinity$c,toLength$9=toLength$c,toIndex$1=toIndex$2,fround$1=mathFround,IEEE754=ieee754,getPrototypeOf$5=objectGetPrototypeOf$2,setPrototypeOf$4=objectSetPrototypeOf$1,arrayFill=arrayFill$1,arraySlice$6=arraySlice$a,inheritIfRequired$4=inheritIfRequired$5,copyConstructorProperties$1=copyConstructorProperties$4,setToStringTag$7=setToStringTag$c,InternalStateModule$8=internalState,PROPER_FUNCTION_NAME$2=functionName.PROPER,CONFIGURABLE_FUNCTION_NAME=functionName.CONFIGURABLE,getInternalArrayBufferState=InternalStateModule$8.getterFor("ArrayBuffer"),getInternalDataViewState=InternalStateModule$8.getterFor("DataView"),setInternalState$7=InternalStateModule$8.set,NativeArrayBuffer$1=globalThis$C.ArrayBuffer,$ArrayBuffer=NativeArrayBuffer$1,ArrayBufferPrototype$1=$ArrayBuffer&&$ArrayBuffer.prototype,$DataView=globalThis$C.DataView,DataViewPrototype$1=$DataView&&$DataView.prototype,ObjectPrototype$2=Object.prototype,Array$1=globalThis$C.Array,RangeError$3=globalThis$C.RangeError,fill=uncurryThis$C(arrayFill),reverse=uncurryThis$C([].reverse),packIEEE754=IEEE754.pack,unpackIEEE754=IEEE754.unpack,packInt8=function(number){return[255&number]},packInt16=function(number){return[255&number,number>>8&255]},packInt32=function(number){return[255&number,number>>8&255,number>>16&255,number>>24&255]},unpackInt32=function(buffer){return buffer[3]<<24|buffer[2]<<16|buffer[1]<<8|buffer[0]},packFloat32=function(number){return packIEEE754(fround$1(number),23,4)},packFloat64=function(number){return packIEEE754(number,52,8)},addGetter$1=function(Constructor,key,getInternalState){defineBuiltInAccessor$7(Constructor.prototype,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},get$1=function(view,count,index,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex$1(index),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError$3("Wrong index");var bytes=store.bytes,start=intIndex+store.byteOffset,pack=arraySlice$6(bytes,start,start+count);return boolIsLittleEndian?pack:reverse(pack)},set$2=function(view,count,index,conversion,value,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex$1(index),pack=conversion(+value),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError$3("Wrong index");for(var bytes=store.bytes,start=intIndex+store.byteOffset,i=0;i<count;i++)bytes[start+i]=pack[boolIsLittleEndian?i:count-i-1]};if(NATIVE_ARRAY_BUFFER$1){var INCORRECT_ARRAY_BUFFER_NAME=PROPER_FUNCTION_NAME$2&&"ArrayBuffer"!==NativeArrayBuffer$1.name;fails$P(function(){NativeArrayBuffer$1(1)})&&fails$P(function(){new NativeArrayBuffer$1(-1)})&&!fails$P(function(){return new NativeArrayBuffer$1,new NativeArrayBuffer$1(1.5),new NativeArrayBuffer$1(NaN),1!==NativeArrayBuffer$1.length||INCORRECT_ARRAY_BUFFER_NAME&&!CONFIGURABLE_FUNCTION_NAME})?INCORRECT_ARRAY_BUFFER_NAME&&CONFIGURABLE_FUNCTION_NAME&&createNonEnumerableProperty$6(NativeArrayBuffer$1,"name","ArrayBuffer"):(($ArrayBuffer=function ArrayBuffer(length){return anInstance$7(this,ArrayBufferPrototype$1),inheritIfRequired$4(new NativeArrayBuffer$1(toIndex$1(length)),this,$ArrayBuffer)}).prototype=ArrayBufferPrototype$1,ArrayBufferPrototype$1.constructor=$ArrayBuffer,copyConstructorProperties$1($ArrayBuffer,NativeArrayBuffer$1)),setPrototypeOf$4&&getPrototypeOf$5(DataViewPrototype$1)!==ObjectPrototype$2&&setPrototypeOf$4(DataViewPrototype$1,ObjectPrototype$2);var testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis$C(DataViewPrototype$1.setInt8);testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),!testView.getInt8(0)&&testView.getInt8(1)||defineBuiltIns$4(DataViewPrototype$1,{setInt8:function setInt8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)},setUint8:function setUint8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype$1=($ArrayBuffer=function ArrayBuffer(length){anInstance$7(this,ArrayBufferPrototype$1);var byteLength=toIndex$1(length);setInternalState$7(this,{type:"ArrayBuffer",bytes:fill(Array$1(byteLength),0),byteLength:byteLength}),DESCRIPTORS$m||(this.byteLength=byteLength,this.detached=!1)}).prototype,DataViewPrototype$1=($DataView=function DataView(buffer,byteOffset,byteLength){anInstance$7(this,DataViewPrototype$1),anInstance$7(buffer,ArrayBufferPrototype$1);var bufferState=getInternalArrayBufferState(buffer),bufferLength=bufferState.byteLength,offset=toIntegerOrInfinity$6(byteOffset);if(offset<0||offset>bufferLength)throw new RangeError$3("Wrong offset");if(offset+(byteLength=void 0===byteLength?bufferLength-offset:toLength$9(byteLength))>bufferLength)throw new RangeError$3("Wrong length");setInternalState$7(this,{type:"DataView",buffer:buffer,byteLength:byteLength,byteOffset:offset,bytes:bufferState.bytes}),DESCRIPTORS$m||(this.buffer=buffer,this.byteLength=byteLength,this.byteOffset=offset)}).prototype,DESCRIPTORS$m&&(addGetter$1($ArrayBuffer,"byteLength",getInternalArrayBufferState),addGetter$1($DataView,"buffer",getInternalDataViewState),addGetter$1($DataView,"byteLength",getInternalDataViewState),addGetter$1($DataView,"byteOffset",getInternalDataViewState)),defineBuiltIns$4(DataViewPrototype$1,{getInt8:function getInt8(byteOffset){return get$1(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get$1(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get$1(this,2,byteOffset,arguments.length>1&&arguments[1]);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get$1(this,2,byteOffset,arguments.length>1&&arguments[1]);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackInt32(get$1(this,4,byteOffset,arguments.length>1&&arguments[1]))},getUint32:function getUint32(byteOffset){return unpackInt32(get$1(this,4,byteOffset,arguments.length>1&&arguments[1]))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get$1(this,4,byteOffset,arguments.length>1&&arguments[1]),23)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get$1(this,8,byteOffset,arguments.length>1&&arguments[1]),52)},setInt8:function setInt8(byteOffset,value){set$2(this,1,byteOffset,packInt8,value)},setUint8:function setUint8(byteOffset,value){set$2(this,1,byteOffset,packInt8,value)},setInt16:function setInt16(byteOffset,value){set$2(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setUint16:function setUint16(byteOffset,value){set$2(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setInt32:function setInt32(byteOffset,value){set$2(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setUint32:function setUint32(byteOffset,value){set$2(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setFloat32:function setFloat32(byteOffset,value){set$2(this,4,byteOffset,packFloat32,value,arguments.length>2&&arguments[2])},setFloat64:function setFloat64(byteOffset,value){set$2(this,8,byteOffset,packFloat64,value,arguments.length>2&&arguments[2])}});setToStringTag$7($ArrayBuffer,"ArrayBuffer"),setToStringTag$7($DataView,"DataView");var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},setSpecies$4=setSpecies$6,ArrayBuffer$4=arrayBuffer.ArrayBuffer;_export({global:!0,constructor:!0,forced:globalThis_1.ArrayBuffer!==ArrayBuffer$4},{ArrayBuffer:ArrayBuffer$4}),setSpecies$4("ArrayBuffer");var NAME$1,Constructor,Prototype,NATIVE_ARRAY_BUFFER=arrayBufferBasicDetection,DESCRIPTORS$l=descriptors,globalThis$A=globalThis_1,isCallable$b=isCallable$v,isObject$p=isObject$C,hasOwn$c=hasOwnProperty_1,classof$b=classof$i,tryToString$2=tryToString$7,createNonEnumerableProperty$5=createNonEnumerableProperty$a,defineBuiltIn$b=defineBuiltIn$i,defineBuiltInAccessor$6=defineBuiltInAccessor$b,isPrototypeOf$6=objectIsPrototypeOf,getPrototypeOf$4=objectGetPrototypeOf$2,setPrototypeOf$3=objectSetPrototypeOf$1,wellKnownSymbol$d=wellKnownSymbol$w,uid$1=uid$5,enforceInternalState$3=internalState.enforce,getInternalState$3=internalState.get,Int8Array$4=globalThis$A.Int8Array,Int8ArrayPrototype$1=Int8Array$4&&Int8Array$4.prototype,Uint8ClampedArray$1=globalThis$A.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray$1&&Uint8ClampedArray$1.prototype,TypedArray$1=Int8Array$4&&getPrototypeOf$4(Int8Array$4),TypedArrayPrototype$2=Int8ArrayPrototype$1&&getPrototypeOf$4(Int8ArrayPrototype$1),ObjectPrototype$1=Object.prototype,TypeError$5=globalThis$A.TypeError,TO_STRING_TAG=wellKnownSymbol$d("toStringTag"),TYPED_ARRAY_TAG$1=uid$1("TYPED_ARRAY_TAG"),NATIVE_ARRAY_BUFFER_VIEWS$3=NATIVE_ARRAY_BUFFER&&!!setPrototypeOf$3&&"Opera"!==classof$b(globalThis$A.opera),TYPED_ARRAY_TAG_REQUIRED=!1,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor$4=function(it){var proto=getPrototypeOf$4(it);if(isObject$p(proto)){var state=getInternalState$3(proto);return state&&hasOwn$c(state,"TypedArrayConstructor")?state.TypedArrayConstructor:getTypedArrayConstructor$4(proto)}},isTypedArray$1=function(it){if(!isObject$p(it))return!1;var klass=classof$b(it);return hasOwn$c(TypedArrayConstructorsList,klass)||hasOwn$c(BigIntArrayConstructorsList,klass)};for(NAME$1 in TypedArrayConstructorsList)(Prototype=(Constructor=globalThis$A[NAME$1])&&Constructor.prototype)?enforceInternalState$3(Prototype).TypedArrayConstructor=Constructor:NATIVE_ARRAY_BUFFER_VIEWS$3=!1;for(NAME$1 in BigIntArrayConstructorsList)(Prototype=(Constructor=globalThis$A[NAME$1])&&Constructor.prototype)&&(enforceInternalState$3(Prototype).TypedArrayConstructor=Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS$3||!isCallable$b(TypedArray$1)||TypedArray$1===Function.prototype)&&(TypedArray$1=function TypedArray(){throw new TypeError$5("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$3))for(NAME$1 in TypedArrayConstructorsList)globalThis$A[NAME$1]&&setPrototypeOf$3(globalThis$A[NAME$1],TypedArray$1);if((!NATIVE_ARRAY_BUFFER_VIEWS$3||!TypedArrayPrototype$2||TypedArrayPrototype$2===ObjectPrototype$1)&&(TypedArrayPrototype$2=TypedArray$1.prototype,NATIVE_ARRAY_BUFFER_VIEWS$3))for(NAME$1 in TypedArrayConstructorsList)globalThis$A[NAME$1]&&setPrototypeOf$3(globalThis$A[NAME$1].prototype,TypedArrayPrototype$2);if(NATIVE_ARRAY_BUFFER_VIEWS$3&&getPrototypeOf$4(Uint8ClampedArrayPrototype)!==TypedArrayPrototype$2&&setPrototypeOf$3(Uint8ClampedArrayPrototype,TypedArrayPrototype$2),DESCRIPTORS$l&&!hasOwn$c(TypedArrayPrototype$2,TO_STRING_TAG))for(NAME$1 in TYPED_ARRAY_TAG_REQUIRED=!0,defineBuiltInAccessor$6(TypedArrayPrototype$2,TO_STRING_TAG,{configurable:!0,get:function(){return isObject$p(this)?this[TYPED_ARRAY_TAG$1]:void 0}}),TypedArrayConstructorsList)globalThis$A[NAME$1]&&createNonEnumerableProperty$5(globalThis$A[NAME$1],TYPED_ARRAY_TAG$1,NAME$1);var arrayBufferViewCore={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$3,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG$1,aTypedArray:function(it){if(isTypedArray$1(it))return it;throw new TypeError$5("Target is not a typed array")},aTypedArrayConstructor:function(C){if(isCallable$b(C)&&(!setPrototypeOf$3||isPrototypeOf$6(TypedArray$1,C)))return C;throw new TypeError$5(tryToString$2(C)+" is not a typed array constructor")},exportTypedArrayMethod:function(KEY,property,forced,options){if(DESCRIPTORS$l){if(forced)for(var ARRAY in TypedArrayConstructorsList){var TypedArrayConstructor=globalThis$A[ARRAY];if(TypedArrayConstructor&&hasOwn$c(TypedArrayConstructor.prototype,KEY))try{delete TypedArrayConstructor.prototype[KEY]}catch(error){try{TypedArrayConstructor.prototype[KEY]=property}catch(error2){}}}TypedArrayPrototype$2[KEY]&&!forced||defineBuiltIn$b(TypedArrayPrototype$2,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS$3&&Int8ArrayPrototype$1[KEY]||property,options)}},exportTypedArrayStaticMethod:function(KEY,property,forced){var ARRAY,TypedArrayConstructor;if(DESCRIPTORS$l){if(setPrototypeOf$3){if(forced)for(ARRAY in TypedArrayConstructorsList)if((TypedArrayConstructor=globalThis$A[ARRAY])&&hasOwn$c(TypedArrayConstructor,KEY))try{delete TypedArrayConstructor[KEY]}catch(error){}if(TypedArray$1[KEY]&&!forced)return;try{return defineBuiltIn$b(TypedArray$1,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS$3&&TypedArray$1[KEY]||property)}catch(error){}}for(ARRAY in TypedArrayConstructorsList)!(TypedArrayConstructor=globalThis$A[ARRAY])||TypedArrayConstructor[KEY]&&!forced||defineBuiltIn$b(TypedArrayConstructor,KEY,property)}},getTypedArrayConstructor:getTypedArrayConstructor$4,isView:function isView(it){if(!isObject$p(it))return!1;var klass=classof$b(it);return"DataView"===klass||hasOwn$c(TypedArrayConstructorsList,klass)||hasOwn$c(BigIntArrayConstructorsList,klass)},isTypedArray:isTypedArray$1,TypedArray:TypedArray$1,TypedArrayPrototype:TypedArrayPrototype$2};_export({target:"ArrayBuffer",stat:!0,forced:!arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS},{isView:arrayBufferViewCore.isView});var $$1G=_export,uncurryThis$B=functionUncurryThisClause,fails$O=fails$18,anObject$o=anObject$x,toAbsoluteIndex$2=toAbsoluteIndex$8,toLength$8=toLength$c,ArrayBuffer$3=arrayBuffer.ArrayBuffer,DataView$2=arrayBuffer.DataView,DataViewPrototype=DataView$2.prototype,nativeArrayBufferSlice=uncurryThis$B(ArrayBuffer$3.prototype.slice),getUint8=uncurryThis$B(DataViewPrototype.getUint8),setUint8=uncurryThis$B(DataViewPrototype.setUint8);$$1G({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:fails$O(function(){return!new ArrayBuffer$3(2).slice(1,void 0).byteLength})},{slice:function slice(start,end){if(nativeArrayBufferSlice&&void 0===end)return nativeArrayBufferSlice(anObject$o(this),start);for(var length=anObject$o(this).byteLength,first=toAbsoluteIndex$2(start,length),fin=toAbsoluteIndex$2(void 0===end?length:end,length),result=new ArrayBuffer$3(toLength$8(fin-first)),viewSource=new DataView$2(this),viewTarget=new DataView$2(result),index=0;first<fin;)setUint8(viewTarget,index++,getUint8(viewSource,first++));return result}});var anObject$n=anObject$x,ordinaryToPrimitive=ordinaryToPrimitive$2,$TypeError$8=TypeError,hasOwn$b=hasOwnProperty_1,defineBuiltIn$a=defineBuiltIn$i,dateToPrimitive=function(hint){if(anObject$n(this),"string"===hint||"default"===hint)hint="string";else if("number"!==hint)throw new $TypeError$8("Incorrect hint");return ordinaryToPrimitive(this,hint)},TO_PRIMITIVE=wellKnownSymbol$w("toPrimitive"),DatePrototype=Date.prototype;hasOwn$b(DatePrototype,TO_PRIMITIVE)||defineBuiltIn$a(DatePrototype,TO_PRIMITIVE,dateToPrimitive);var isCallable$a=isCallable$v,isObject$o=isObject$C,definePropertyModule$5=objectDefineProperty,isPrototypeOf$5=objectIsPrototypeOf,makeBuiltIn=makeBuiltInExports,HAS_INSTANCE=wellKnownSymbol$w("hasInstance"),FunctionPrototype$1=Function.prototype;HAS_INSTANCE in FunctionPrototype$1||definePropertyModule$5.f(FunctionPrototype$1,HAS_INSTANCE,{value:makeBuiltIn(function(O){if(!isCallable$a(this)||!isObject$o(O))return!1;var P=this.prototype;return isObject$o(P)?isPrototypeOf$5(P,O):O instanceof this},HAS_INSTANCE)});var DESCRIPTORS$k=descriptors,FUNCTION_NAME_EXISTS=functionName.EXISTS,uncurryThis$A=functionUncurryThis,defineBuiltInAccessor$5=defineBuiltInAccessor$b,FunctionPrototype=Function.prototype,functionToString=uncurryThis$A(FunctionPrototype.toString),nameRE=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,regExpExec$4=uncurryThis$A(nameRE.exec);DESCRIPTORS$k&&!FUNCTION_NAME_EXISTS&&defineBuiltInAccessor$5(FunctionPrototype,"name",{configurable:!0,get:function(){try{return regExpExec$4(nameRE,functionToString(this))[1]}catch(error){return""}}}),setToStringTag$c(globalThis_1.JSON,"JSON",!0);var internalMetadata={exports:{}},arrayBufferNonExtensible=fails$18(function(){if("function"==typeof ArrayBuffer){var buffer=new ArrayBuffer(8);Object.isExtensible(buffer)&&Object.defineProperty(buffer,"a",{value:8})}}),fails$M=fails$18,isObject$n=isObject$C,classof$a=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE$2=arrayBufferNonExtensible,$isExtensible$2=Object.isExtensible,objectIsExtensible=fails$M(function(){$isExtensible$2(1)})||ARRAY_BUFFER_NON_EXTENSIBLE$2?function isExtensible(it){return!!isObject$n(it)&&((!ARRAY_BUFFER_NON_EXTENSIBLE$2||"ArrayBuffer"!==classof$a(it))&&(!$isExtensible$2||$isExtensible$2(it)))}:$isExtensible$2,freezing=!fails$18(function(){return Object.isExtensible(Object.preventExtensions({}))}),$$1F=_export,uncurryThis$z=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$m=isObject$C,hasOwn$a=hasOwnProperty_1,defineProperty$3=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible$1=objectIsExtensible,FREEZING$5=freezing,REQUIRED=!1,METADATA=uid$5("meta"),id$1=0,setMetadata=function(it){defineProperty$3(it,METADATA,{value:{objectID:"O"+id$1++,weakData:{}}})},meta=internalMetadata.exports={enable:function(){meta.enable=function(){},REQUIRED=!0;var getOwnPropertyNames=getOwnPropertyNamesModule.f,splice=uncurryThis$z([].splice),test={};test[METADATA]=1,getOwnPropertyNames(test).length&&(getOwnPropertyNamesModule.f=function(it){for(var result=getOwnPropertyNames(it),i=0,length=result.length;i<length;i++)if(result[i]===METADATA){splice(result,i,1);break}return result},$$1F({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},fastKey:function(it,create){if(!isObject$m(it))return"symbol"==typeof it?it:("string"==typeof it?"S":"P")+it;if(!hasOwn$a(it,METADATA)){if(!isExtensible$1(it))return"F";if(!create)return"E";setMetadata(it)}return it[METADATA].objectID},getWeakData:function(it,create){if(!hasOwn$a(it,METADATA)){if(!isExtensible$1(it))return!0;if(!create)return!1;setMetadata(it)}return it[METADATA].weakData},onFreeze:function(it){return FREEZING$5&&REQUIRED&&isExtensible$1(it)&&!hasOwn$a(it,METADATA)&&setMetadata(it),it}};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,bind$8=functionBindContext,call$k=functionCall,anObject$m=anObject$x,tryToString$1=tryToString$7,isArrayIteratorMethod$1=isArrayIteratorMethod$3,lengthOfArrayLike$6=lengthOfArrayLike$j,isPrototypeOf$4=objectIsPrototypeOf,getIterator$2=getIterator$4,getIteratorMethod$2=getIteratorMethod$5,iteratorClose=iteratorClose$2,$TypeError$7=TypeError,Result=function(stopped,result){this.stopped=stopped,this.result=result},ResultPrototype=Result.prototype,iterate$6=function(iterable,unboundFunction,options){var iterator,iterFn,index,length,result,next,step,that=options&&options.that,AS_ENTRIES=!(!options||!options.AS_ENTRIES),IS_RECORD=!(!options||!options.IS_RECORD),IS_ITERATOR=!(!options||!options.IS_ITERATOR),INTERRUPTED=!(!options||!options.INTERRUPTED),fn=bind$8(unboundFunction,that),stop=function(condition){return iterator&&iteratorClose(iterator,"normal"),new Result(!0,condition)},callFn=function(value){return AS_ENTRIES?(anObject$m(value),INTERRUPTED?fn(value[0],value[1],stop):fn(value[0],value[1])):INTERRUPTED?fn(value,stop):fn(value)};if(IS_RECORD)iterator=iterable.iterator;else if(IS_ITERATOR)iterator=iterable;else{if(!(iterFn=getIteratorMethod$2(iterable)))throw new $TypeError$7(tryToString$1(iterable)+" is not iterable");if(isArrayIteratorMethod$1(iterFn)){for(index=0,length=lengthOfArrayLike$6(iterable);length>index;index++)if((result=callFn(iterable[index]))&&isPrototypeOf$4(ResultPrototype,result))return result;return new Result(!1)}iterator=getIterator$2(iterable,iterFn)}for(next=IS_RECORD?iterable.next:iterator.next;!(step=call$k(next,iterator)).done;){try{result=callFn(step.value)}catch(error){iteratorClose(iterator,"throw",error)}if("object"==typeof result&&result&&isPrototypeOf$4(ResultPrototype,result))return result}return new Result(!1)},$$1E=_export,globalThis$y=globalThis_1,uncurryThis$y=functionUncurryThis,isForced$3=isForced_1,defineBuiltIn$9=defineBuiltIn$i,InternalMetadataModule$1=internalMetadataExports,iterate$5=iterate$6,anInstance$6=anInstance$8,isCallable$9=isCallable$v,isNullOrUndefined$3=isNullOrUndefined$7,isObject$l=isObject$C,fails$K=fails$18,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$4,setToStringTag$5=setToStringTag$c,inheritIfRequired$3=inheritIfRequired$5,collection$4=function(CONSTRUCTOR_NAME,wrapper,common){var IS_MAP=-1!==CONSTRUCTOR_NAME.indexOf("Map"),IS_WEAK=-1!==CONSTRUCTOR_NAME.indexOf("Weak"),ADDER=IS_MAP?"set":"add",NativeConstructor=globalThis$y[CONSTRUCTOR_NAME],NativePrototype=NativeConstructor&&NativeConstructor.prototype,Constructor=NativeConstructor,exported={},fixMethod=function(KEY){var uncurriedNativeMethod=uncurryThis$y(NativePrototype[KEY]);defineBuiltIn$9(NativePrototype,KEY,"add"===KEY?function add(value){return uncurriedNativeMethod(this,0===value?0:value),this}:"delete"===KEY?function(key){return!(IS_WEAK&&!isObject$l(key))&&uncurriedNativeMethod(this,0===key?0:key)}:"get"===KEY?function get(key){return IS_WEAK&&!isObject$l(key)?void 0:uncurriedNativeMethod(this,0===key?0:key)}:"has"===KEY?function has(key){return!(IS_WEAK&&!isObject$l(key))&&uncurriedNativeMethod(this,0===key?0:key)}:function set(key,value){return uncurriedNativeMethod(this,0===key?0:key,value),this})};if(isForced$3(CONSTRUCTOR_NAME,!isCallable$9(NativeConstructor)||!(IS_WEAK||NativePrototype.forEach&&!fails$K(function(){(new NativeConstructor).entries().next()}))))Constructor=common.getConstructor(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER),InternalMetadataModule$1.enable();else if(isForced$3(CONSTRUCTOR_NAME,!0)){var instance=new Constructor,HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!==instance,THROWS_ON_PRIMITIVES=fails$K(function(){instance.has(1)}),ACCEPT_ITERABLES=checkCorrectnessOfIteration$2(function(iterable){new NativeConstructor(iterable)}),BUGGY_ZERO=!IS_WEAK&&fails$K(function(){for(var $instance=new NativeConstructor,index=5;index--;)$instance[ADDER](index,index);return!$instance.has(-0)});ACCEPT_ITERABLES||((Constructor=wrapper(function(dummy,iterable){anInstance$6(dummy,NativePrototype);var that=inheritIfRequired$3(new NativeConstructor,dummy,Constructor);return isNullOrUndefined$3(iterable)||iterate$5(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP}),that})).prototype=NativePrototype,NativePrototype.constructor=Constructor),(THROWS_ON_PRIMITIVES||BUGGY_ZERO)&&(fixMethod("delete"),fixMethod("has"),IS_MAP&&fixMethod("get")),(BUGGY_ZERO||HASNT_CHAINING)&&fixMethod(ADDER),IS_WEAK&&NativePrototype.clear&&delete NativePrototype.clear}return exported[CONSTRUCTOR_NAME]=Constructor,$$1E({global:!0,constructor:!0,forced:Constructor!==NativeConstructor},exported),setToStringTag$5(Constructor,CONSTRUCTOR_NAME),IS_WEAK||common.setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP),Constructor},create$5=objectCreate,defineBuiltInAccessor$4=defineBuiltInAccessor$b,defineBuiltIns$3=defineBuiltIns$5,bind$7=functionBindContext,anInstance$5=anInstance$8,isNullOrUndefined$2=isNullOrUndefined$7,iterate$4=iterate$6,defineIterator$1=iteratorDefine,createIterResultObject$2=createIterResultObject$4,setSpecies$3=setSpecies$6,DESCRIPTORS$j=descriptors,fastKey=internalMetadataExports.fastKey,setInternalState$6=internalState.set,internalStateGetterFor$1=internalState.getterFor,collectionStrong$2={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper(function(that,iterable){anInstance$5(that,Prototype),setInternalState$6(that,{type:CONSTRUCTOR_NAME,index:create$5(null),first:null,last:null,size:0}),DESCRIPTORS$j||(that.size=0),isNullOrUndefined$2(iterable)||iterate$4(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP})}),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor$1(CONSTRUCTOR_NAME),define=function(that,key,value){var previous,index,state=getInternalState(that),entry=getEntry(that,key);return entry?entry.value=value:(state.last=entry={index:index=fastKey(key,!0),key:key,value:value,previous:previous=state.last,next:null,removed:!1},state.first||(state.first=entry),previous&&(previous.next=entry),DESCRIPTORS$j?state.size++:that.size++,"F"!==index&&(state.index[index]=entry)),that},getEntry=function(that,key){var entry,state=getInternalState(that),index=fastKey(key);if("F"!==index)return state.index[index];for(entry=state.first;entry;entry=entry.next)if(entry.key===key)return entry};return defineBuiltIns$3(Prototype,{clear:function clear(){for(var state=getInternalState(this),entry=state.first;entry;)entry.removed=!0,entry.previous&&(entry.previous=entry.previous.next=null),entry=entry.next;state.first=state.last=null,state.index=create$5(null),DESCRIPTORS$j?state.size=0:this.size=0},delete:function(key){var state=getInternalState(this),entry=getEntry(this,key);if(entry){var next=entry.next,prev=entry.previous;delete state.index[entry.index],entry.removed=!0,prev&&(prev.next=next),next&&(next.previous=prev),state.first===entry&&(state.first=next),state.last===entry&&(state.last=prev),DESCRIPTORS$j?state.size--:this.size--}return!!entry},forEach:function forEach(callbackfn){for(var entry,state=getInternalState(this),boundFunction=bind$7(callbackfn,arguments.length>1?arguments[1]:void 0);entry=entry?entry.next:state.first;)for(boundFunction(entry.value,entry.key,this);entry&&entry.removed;)entry=entry.previous},has:function has(key){return!!getEntry(this,key)}}),defineBuiltIns$3(Prototype,IS_MAP?{get:function get(key){var entry=getEntry(this,key);return entry&&entry.value},set:function set(key,value){return define(this,0===key?0:key,value)}}:{add:function add(value){return define(this,value=0===value?0:value,value)}}),DESCRIPTORS$j&&defineBuiltInAccessor$4(Prototype,"size",{configurable:!0,get:function(){return getInternalState(this).size}}),Constructor},setStrong:function(Constructor,CONSTRUCTOR_NAME,IS_MAP){var ITERATOR_NAME=CONSTRUCTOR_NAME+" Iterator",getInternalCollectionState=internalStateGetterFor$1(CONSTRUCTOR_NAME),getInternalIteratorState=internalStateGetterFor$1(ITERATOR_NAME);defineIterator$1(Constructor,CONSTRUCTOR_NAME,function(iterated,kind){setInternalState$6(this,{type:ITERATOR_NAME,target:iterated,state:getInternalCollectionState(iterated),kind:kind,last:null})},function(){for(var state=getInternalIteratorState(this),kind=state.kind,entry=state.last;entry&&entry.removed;)entry=entry.previous;return state.target&&(state.last=entry=entry?entry.next:state.state.first)?createIterResultObject$2("keys"===kind?entry.key:"values"===kind?entry.value:[entry.key,entry.value],!1):(state.target=null,createIterResultObject$2(void 0,!0))},IS_MAP?"entries":"values",!IS_MAP,!0),setSpecies$3(CONSTRUCTOR_NAME)}};collection$4("Map",function(init){return function Map(){return init(this,arguments.length?arguments[0]:void 0)}},collectionStrong$2);var log$7=Math.log,mathLog1p=Math.log1p||function log1p(x){var n=+x;return n>-1e-8&&n<1e-8?n-n*n/2:log$7(1+n)},$$1D=_export,log1p$1=mathLog1p,$acosh=Math.acosh,log$6=Math.log,sqrt$2=Math.sqrt,LN2$1=Math.LN2;$$1D({target:"Math",stat:!0,forced:!$acosh||710!==Math.floor($acosh(Number.MAX_VALUE))||$acosh(1/0)!==1/0},{acosh:function acosh(x){var n=+x;return n<1?NaN:n>94906265.62425156?log$6(n)+LN2$1:log1p$1(n-1+sqrt$2(n-1)*sqrt$2(n+1))}});var $$1C=_export,$asinh=Math.asinh,log$5=Math.log,sqrt$1=Math.sqrt;$$1C({target:"Math",stat:!0,forced:!($asinh&&1/$asinh(0)>0)},{asinh:function asinh(x){var n=+x;return isFinite(n)&&0!==n?n<0?-asinh(-n):log$5(n+sqrt$1(n*n+1)):n}});var $$1B=_export,$atanh=Math.atanh,log$4=Math.log;$$1B({target:"Math",stat:!0,forced:!($atanh&&1/$atanh(-0)<0)},{atanh:function atanh(x){var n=+x;return 0===n?n:log$4((1+n)/(1-n))/2}});var $$1A=_export,sign$1=mathSign,abs$4=Math.abs,pow$2=Math.pow;$$1A({target:"Math",stat:!0},{cbrt:function cbrt(x){var n=+x;return sign$1(n)*pow$2(abs$4(n),1/3)}});var $$1z=_export,floor$6=Math.floor,log$3=Math.log,LOG2E=Math.LOG2E;$$1z({target:"Math",stat:!0},{clz32:function clz32(x){var n=x>>>0;return n?31-floor$6(log$3(n+.5)*LOG2E):32}});var $expm1=Math.expm1,exp$2=Math.exp,mathExpm1=!$expm1||$expm1(10)>22025.465794806718||$expm1(10)<22025.465794806718||-2e-17!==$expm1(-2e-17)?function expm1(x){var n=+x;return 0===n?n:n>-1e-6&&n<1e-6?n+n*n/2:exp$2(n)-1}:$expm1,$$1y=_export,expm1$3=mathExpm1,$cosh=Math.cosh,abs$3=Math.abs,E$1=Math.E;$$1y({target:"Math",stat:!0,forced:!$cosh||$cosh(710)===1/0},{cosh:function cosh(x){var t=expm1$3(abs$3(x)-1)+1;return(t+1/(t*E$1*E$1))*(E$1/2)}});var expm1$2=mathExpm1;_export({target:"Math",stat:!0,forced:expm1$2!==Math.expm1},{expm1:expm1$2}),_export({target:"Math",stat:!0},{fround:mathFround});var $$1v=_export,$hypot=Math.hypot,abs$2=Math.abs,sqrt=Math.sqrt;$$1v({target:"Math",stat:!0,arity:2,forced:!!$hypot&&$hypot(1/0,NaN)!==1/0},{hypot:function hypot(value1,value2){for(var arg,div,sum=0,i=0,aLen=arguments.length,larg=0;i<aLen;)larg<(arg=abs$2(arguments[i++]))?(sum=sum*(div=larg/arg)*div+1,larg=arg):sum+=arg>0?(div=arg/larg)*div:arg;return larg===1/0?1/0:larg*sqrt(sum)}});var $$1u=_export,fails$J=fails$18,$imul=Math.imul;$$1u({target:"Math",stat:!0,forced:fails$J(function(){return-5!==$imul(4294967295,5)||2!==$imul.length})},{imul:function imul(x,y){var xn=+x,yn=+y,xl=65535&xn,yl=65535&yn;return 0|xl*yl+((65535&xn>>>16)*yl+xl*(65535&yn>>>16)<<16>>>0)}});var log$2=Math.log,LOG10E=Math.LOG10E;_export({target:"Math",stat:!0},{log10:Math.log10||function log10(x){return log$2(x)*LOG10E}}),_export({target:"Math",stat:!0},{log1p:mathLog1p});var log$1=Math.log,LN2=Math.LN2;_export({target:"Math",stat:!0},{log2:Math.log2||function log2(x){return log$1(x)/LN2}}),_export({target:"Math",stat:!0},{sign:mathSign});var $$1p=_export,fails$I=fails$18,expm1$1=mathExpm1,abs$1=Math.abs,exp$1=Math.exp,E=Math.E;$$1p({target:"Math",stat:!0,forced:fails$I(function(){return-2e-17!==Math.sinh(-2e-17)})},{sinh:function sinh(x){var n=+x;return abs$1(n)<1?(expm1$1(n)-expm1$1(-n))/2:(exp$1(n-1)-exp$1(-n-1))*(E/2)}});var $$1o=_export,expm1=mathExpm1,exp=Math.exp;$$1o({target:"Math",stat:!0},{tanh:function tanh(x){var n=+x,a=expm1(n),b=expm1(-n);return a===1/0?1:b===1/0?-1:(a-b)/(exp(n)+exp(-n))}}),setToStringTag$c(Math,"Math",!0),_export({target:"Math",stat:!0},{trunc:mathTrunc});var thisNumberValue$2=functionUncurryThis(1.1.valueOf),whitespaces$4="\t\n\v\f\r \u2028\u2029\ufeff",requireObjectCoercible$b=requireObjectCoercible$f,toString$i=toString$n,whitespaces$3=whitespaces$4,replace$7=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$3+"]+"),rtrim=RegExp("(^|[^"+whitespaces$3+"])["+whitespaces$3+"]+$"),createMethod$4=function(TYPE){return function($this){var string=toString$i(requireObjectCoercible$b($this));return 1&TYPE&&(string=replace$7(string,ltrim,"")),2&TYPE&&(string=replace$7(string,rtrim,"$1")),string}},stringTrim={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},$$1m=_export,DESCRIPTORS$i=descriptors,globalThis$x=globalThis_1,path$1=path$3,uncurryThis$v=functionUncurryThis,isForced$2=isForced_1,hasOwn$9=hasOwnProperty_1,inheritIfRequired$2=inheritIfRequired$5,isPrototypeOf$3=objectIsPrototypeOf,isSymbol$1=isSymbol$6,toPrimitive$1=toPrimitive$3,fails$H=fails$18,getOwnPropertyNames$3=objectGetOwnPropertyNames.f,getOwnPropertyDescriptor$6=objectGetOwnPropertyDescriptor.f,defineProperty$2=objectDefineProperty.f,thisNumberValue$1=thisNumberValue$2,trim$2=stringTrim.trim,NativeNumber=globalThis$x.Number;path$1.Number;var NumberPrototype=NativeNumber.prototype,TypeError$4=globalThis$x.TypeError,stringSlice$b=uncurryThis$v("".slice),charCodeAt$2=uncurryThis$v("".charCodeAt),toNumber=function(argument){var first,third,radix,maxCode,digits,length,index,code,it=toPrimitive$1(argument,"number");if(isSymbol$1(it))throw new TypeError$4("Cannot convert a Symbol value to a number");if("string"==typeof it&&it.length>2)if(it=trim$2(it),43===(first=charCodeAt$2(it,0))||45===first){if(88===(third=charCodeAt$2(it,2))||120===third)return NaN}else if(48===first){switch(charCodeAt$2(it,1)){case 66:case 98:radix=2,maxCode=49;break;case 79:case 111:radix=8,maxCode=55;break;default:return+it}for(length=(digits=stringSlice$b(it,2)).length,index=0;index<length;index++)if((code=charCodeAt$2(digits,index))<48||code>maxCode)return NaN;return parseInt(digits,radix)}return+it},FORCED$e=isForced$2("Number",!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1")),NumberWrapper=function Number(value){var dummy,n=arguments.length<1?0:NativeNumber(function(value){var primValue=toPrimitive$1(value,"number");return"bigint"==typeof primValue?primValue:toNumber(primValue)}(value));return isPrototypeOf$3(NumberPrototype,dummy=this)&&fails$H(function(){thisNumberValue$1(dummy)})?inheritIfRequired$2(Object(n),this,NumberWrapper):n};NumberWrapper.prototype=NumberPrototype,FORCED$e&&(NumberPrototype.constructor=NumberWrapper),$$1m({global:!0,constructor:!0,wrap:!0,forced:FORCED$e},{Number:NumberWrapper});FORCED$e&&function(target,source){for(var key,keys=DESCRIPTORS$i?getOwnPropertyNames$3(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j=0;keys.length>j;j++)hasOwn$9(source,key=keys[j])&&!hasOwn$9(target,key)&&defineProperty$2(target,key,getOwnPropertyDescriptor$6(source,key))}(path$1.Number,NativeNumber),_export({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var globalIsFinite=globalThis_1.isFinite;_export({target:"Number",stat:!0},{isFinite:Number.isFinite||function isFinite(it){return"number"==typeof it&&globalIsFinite(it)}});var isObject$k=isObject$C,floor$5=Math.floor,isIntegralNumber$3=Number.isInteger||function isInteger(it){return!isObject$k(it)&&isFinite(it)&&floor$5(it)===it};_export({target:"Number",stat:!0},{isInteger:isIntegralNumber$3}),_export({target:"Number",stat:!0},{isNaN:function isNaN(number){return number!=number}});var $$1h=_export,isIntegralNumber$1=isIntegralNumber$3,abs=Math.abs;$$1h({target:"Number",stat:!0},{isSafeInteger:function isSafeInteger(number){return isIntegralNumber$1(number)&&abs(number)<=9007199254740991}}),_export({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),_export({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var globalThis$v=globalThis_1,fails$G=fails$18,toString$h=toString$n,trim$1=stringTrim.trim,whitespaces$2=whitespaces$4,charAt$8=functionUncurryThis("".charAt),$parseFloat=globalThis$v.parseFloat,Symbol$2=globalThis$v.Symbol,ITERATOR$5=Symbol$2&&Symbol$2.iterator,parseFloat=1/$parseFloat(whitespaces$2+"-0")!=-1/0||ITERATOR$5&&!fails$G(function(){$parseFloat(Object(ITERATOR$5))})?function parseFloat(string){var trimmedString=trim$1(toString$h(string)),result=$parseFloat(trimmedString);return 0===result&&"-"===charAt$8(trimmedString,0)?-0:result}:$parseFloat;_export({target:"Number",stat:!0,forced:Number.parseFloat!==parseFloat},{parseFloat:parseFloat});var globalThis$u=globalThis_1,fails$F=fails$18,uncurryThis$t=functionUncurryThis,toString$g=toString$n,trim=stringTrim.trim,whitespaces$1=whitespaces$4,$parseInt$1=globalThis$u.parseInt,Symbol$1=globalThis$u.Symbol,ITERATOR$4=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$5=uncurryThis$t(hex.exec),parseInt$2=8!==$parseInt$1(whitespaces$1+"08")||22!==$parseInt$1(whitespaces$1+"0x16")||ITERATOR$4&&!fails$F(function(){$parseInt$1(Object(ITERATOR$4))})?function parseInt(string,radix){var S=trim(toString$g(string));return $parseInt$1(S,radix>>>0||(exec$5(hex,S)?16:10))}:$parseInt$1;_export({target:"Number",stat:!0,forced:Number.parseInt!==parseInt$2},{parseInt:parseInt$2});var toIntegerOrInfinity$5=toIntegerOrInfinity$c,toString$f=toString$n,requireObjectCoercible$a=requireObjectCoercible$f,$RangeError$5=RangeError,stringRepeat=function repeat(count){var str=toString$f(requireObjectCoercible$a(this)),result="",n=toIntegerOrInfinity$5(count);if(n<0||n===1/0)throw new $RangeError$5("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(str+=str))1&n&&(result+=str);return result},$$1c=_export,uncurryThis$s=functionUncurryThis,toIntegerOrInfinity$4=toIntegerOrInfinity$c,thisNumberValue=thisNumberValue$2,$repeat$1=stringRepeat,fails$E=fails$18,$RangeError$4=RangeError,$String=String,floor$4=Math.floor,repeat$2=uncurryThis$s($repeat$1),stringSlice$a=uncurryThis$s("".slice),nativeToFixed=uncurryThis$s(1.1.toFixed),pow$1=function(x,n,acc){return 0===n?acc:n%2==1?pow$1(x,n-1,acc*x):pow$1(x*x,n/2,acc)},multiply=function(data,n,c){for(var index=-1,c2=c;++index<6;)c2+=n*data[index],data[index]=c2%1e7,c2=floor$4(c2/1e7)},divide=function(data,n){for(var index=6,c=0;--index>=0;)c+=data[index],data[index]=floor$4(c/n),c=c%n*1e7},dataToString=function(data){for(var index=6,s="";--index>=0;)if(""!==s||0===index||0!==data[index]){var t=$String(data[index]);s=""===s?t:s+repeat$2("0",7-t.length)+t}return s};$$1c({target:"Number",proto:!0,forced:fails$E(function(){return"0.000"!==nativeToFixed(8e-5,3)||"1"!==nativeToFixed(.9,0)||"1.25"!==nativeToFixed(1.255,2)||"1000000000000000128"!==nativeToFixed(0xde0b6b3a7640080,0)})||!fails$E(function(){nativeToFixed({})})},{toFixed:function toFixed(fractionDigits){var e,z,j,k,number=thisNumberValue(this),fractDigits=toIntegerOrInfinity$4(fractionDigits),data=[0,0,0,0,0,0],sign="",result="0";if(fractDigits<0||fractDigits>20)throw new $RangeError$4("Incorrect fraction digits");if(number!=number)return"NaN";if(number<=-1e21||number>=1e21)return $String(number);if(number<0&&(sign="-",number=-number),number>1e-21)if(z=(e=function(x){for(var n=0,x2=x;x2>=4096;)n+=12,x2/=4096;for(;x2>=2;)n+=1,x2/=2;return n}(number*pow$1(2,69,1))-69)<0?number*pow$1(2,-e,1):number/pow$1(2,e,1),z*=4503599627370496,(e=52-e)>0){for(multiply(data,0,z),j=fractDigits;j>=7;)multiply(data,1e7,0),j-=7;for(multiply(data,pow$1(10,j,1),0),j=e-1;j>=23;)divide(data,1<<23),j-=23;divide(data,1<<j),multiply(data,1,1),divide(data,2),result=dataToString(data)}else multiply(data,0,z),multiply(data,1<<-e,0),result=dataToString(data)+repeat$2("0",fractDigits);return result=fractDigits>0?sign+((k=result.length)<=fractDigits?"0."+repeat$2("0",fractDigits-k)+result:stringSlice$a(result,0,k-fractDigits)+"."+stringSlice$a(result,k-fractDigits)):sign+result}});var DESCRIPTORS$h=descriptors,uncurryThis$r=functionUncurryThis,call$j=functionCall,fails$D=fails$18,objectKeys$1=objectKeys$4,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$a=toObject$n,IndexedObject$1=indexedObject,$assign=Object.assign,defineProperty$1=Object.defineProperty,concat$3=uncurryThis$r([].concat),objectAssign=!$assign||fails$D(function(){if(DESCRIPTORS$h&&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 A={},B={},symbol=Symbol("assign detection");return A[symbol]=7,"abcdefghijklmnopqrst".split("").forEach(function(chr){B[chr]=chr}),7!==$assign({},A)[symbol]||"abcdefghijklmnopqrst"!==objectKeys$1($assign({},B)).join("")})?function assign(target,source){for(var T=toObject$a(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var key,S=IndexedObject$1(arguments[index++]),keys=getOwnPropertySymbols?concat$3(objectKeys$1(S),getOwnPropertySymbols(S)):objectKeys$1(S),length=keys.length,j=0;length>j;)key=keys[j++],DESCRIPTORS$h&&!call$j(propertyIsEnumerable,S,key)||(T[key]=S[key]);return T}:$assign,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});var globalThis$t=globalThis_1,WEBKIT$1=environmentWebkitVersion,objectPrototypeAccessorsForced=!fails$18(function(){if(!(WEBKIT$1&&WEBKIT$1<535)){var key=Math.random();__defineSetter__.call(null,key,function(){}),delete globalThis$t[key]}}),aCallable$a=aCallable$h,toObject$9=toObject$n,definePropertyModule$4=objectDefineProperty;descriptors&&_export({target:"Object",proto:!0,forced:objectPrototypeAccessorsForced},{__defineGetter__:function __defineGetter__(P,getter){definePropertyModule$4.f(toObject$9(this),P,{get:aCallable$a(getter),enumerable:!0,configurable:!0})}});var aCallable$9=aCallable$h,toObject$8=toObject$n,definePropertyModule$3=objectDefineProperty;descriptors&&_export({target:"Object",proto:!0,forced:objectPrototypeAccessorsForced},{__defineSetter__:function __defineSetter__(P,setter){definePropertyModule$3.f(toObject$8(this),P,{set:aCallable$9(setter),enumerable:!0,configurable:!0})}});var DESCRIPTORS$e=descriptors,fails$B=fails$18,uncurryThis$q=functionUncurryThis,objectGetPrototypeOf$1=objectGetPrototypeOf$2,objectKeys=objectKeys$4,toIndexedObject$5=toIndexedObject$f,propertyIsEnumerable=uncurryThis$q(objectPropertyIsEnumerable.f),push$7=uncurryThis$q([].push),IE_BUG=DESCRIPTORS$e&&fails$B(function(){var O=Object.create(null);return O[2]=2,!propertyIsEnumerable(O,2)}),createMethod$3=function(TO_ENTRIES){return function(it){for(var key,O=toIndexedObject$5(it),keys=objectKeys(O),IE_WORKAROUND=IE_BUG&&null===objectGetPrototypeOf$1(O),length=keys.length,i=0,result=[];length>i;)key=keys[i++],DESCRIPTORS$e&&!(IE_WORKAROUND?key in O:propertyIsEnumerable(O,key))||push$7(result,TO_ENTRIES?[key,O[key]]:O[key]);return result}},objectToArray={entries:createMethod$3(!0),values:createMethod$3(!1)},$entries=objectToArray.entries;_export({target:"Object",stat:!0},{entries:function entries(O){return $entries(O)}});var $$17=_export,FREEZING$4=freezing,fails$A=fails$18,isObject$j=isObject$C,onFreeze$2=internalMetadataExports.onFreeze,$freeze=Object.freeze;$$17({target:"Object",stat:!0,forced:fails$A(function(){$freeze(1)}),sham:!FREEZING$4},{freeze:function freeze(it){return $freeze&&isObject$j(it)?$freeze(onFreeze$2(it)):it}});var iterate$3=iterate$6,createProperty$1=createProperty$7;_export({target:"Object",stat:!0},{fromEntries:function fromEntries(iterable){var obj={};return iterate$3(iterable,function(k,v){createProperty$1(obj,k,v)},{AS_ENTRIES:!0}),obj}});var $$15=_export,fails$z=fails$18,toIndexedObject$4=toIndexedObject$f,nativeGetOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$d=descriptors;$$15({target:"Object",stat:!0,forced:!DESCRIPTORS$d||fails$z(function(){nativeGetOwnPropertyDescriptor$1(1)}),sham:!DESCRIPTORS$d},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(it,key){return nativeGetOwnPropertyDescriptor$1(toIndexedObject$4(it),key)}});var ownKeys$1=ownKeys$3,toIndexedObject$3=toIndexedObject$f,getOwnPropertyDescriptorModule$4=objectGetOwnPropertyDescriptor,createProperty=createProperty$7;_export({target:"Object",stat:!0,sham:!descriptors},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(object){for(var key,descriptor,O=toIndexedObject$3(object),getOwnPropertyDescriptor=getOwnPropertyDescriptorModule$4.f,keys=ownKeys$1(O),result={},index=0;keys.length>index;)void 0!==(descriptor=getOwnPropertyDescriptor(O,key=keys[index++]))&&createProperty(result,key,descriptor);return result}});var $$13=_export,fails$y=fails$18,getOwnPropertyNames$2=objectGetOwnPropertyNamesExternal.f;$$13({target:"Object",stat:!0,forced:fails$y(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:getOwnPropertyNames$2});var toObject$7=toObject$n,nativeGetPrototypeOf=objectGetPrototypeOf$2,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter;_export({target:"Object",stat:!0,forced:fails$18(function(){nativeGetPrototypeOf(1)}),sham:!CORRECT_PROTOTYPE_GETTER$1},{getPrototypeOf:function getPrototypeOf(it){return nativeGetPrototypeOf(toObject$7(it))}});var sameValue$1=Object.is||function is(x,y){return x===y?0!==x||1/x==1/y:x!=x&&y!=y};_export({target:"Object",stat:!0},{is:sameValue$1});var $isExtensible$1=objectIsExtensible;_export({target:"Object",stat:!0,forced:Object.isExtensible!==$isExtensible$1},{isExtensible:$isExtensible$1});var $$$=_export,fails$w=fails$18,isObject$i=isObject$C,classof$9=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE$1=arrayBufferNonExtensible,$isFrozen=Object.isFrozen;$$$({target:"Object",stat:!0,forced:ARRAY_BUFFER_NON_EXTENSIBLE$1||fails$w(function(){$isFrozen(1)})},{isFrozen:function isFrozen(it){return!isObject$i(it)||(!(!ARRAY_BUFFER_NON_EXTENSIBLE$1||"ArrayBuffer"!==classof$9(it))||!!$isFrozen&&$isFrozen(it))}});var $$_=_export,fails$v=fails$18,isObject$h=isObject$C,classof$8=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isSealed=Object.isSealed;$$_({target:"Object",stat:!0,forced:ARRAY_BUFFER_NON_EXTENSIBLE||fails$v(function(){$isSealed(1)})},{isSealed:function isSealed(it){return!isObject$h(it)||(!(!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!==classof$8(it))||!!$isSealed&&$isSealed(it))}});var toObject$6=toObject$n,nativeKeys=objectKeys$4;_export({target:"Object",stat:!0,forced:fails$18(function(){nativeKeys(1)})},{keys:function keys(it){return nativeKeys(toObject$6(it))}});var $$Y=_export,DESCRIPTORS$b=descriptors,FORCED$5=objectPrototypeAccessorsForced,toObject$5=toObject$n,toPropertyKey$3=toPropertyKey$7,getPrototypeOf$3=objectGetPrototypeOf$2,getOwnPropertyDescriptor$5=objectGetOwnPropertyDescriptor.f;DESCRIPTORS$b&&$$Y({target:"Object",proto:!0,forced:FORCED$5},{__lookupGetter__:function __lookupGetter__(P){var desc,O=toObject$5(this),key=toPropertyKey$3(P);do{if(desc=getOwnPropertyDescriptor$5(O,key))return desc.get}while(O=getPrototypeOf$3(O))}});var $$X=_export,DESCRIPTORS$a=descriptors,FORCED$4=objectPrototypeAccessorsForced,toObject$4=toObject$n,toPropertyKey$2=toPropertyKey$7,getPrototypeOf$2=objectGetPrototypeOf$2,getOwnPropertyDescriptor$4=objectGetOwnPropertyDescriptor.f;DESCRIPTORS$a&&$$X({target:"Object",proto:!0,forced:FORCED$4},{__lookupSetter__:function __lookupSetter__(P){var desc,O=toObject$4(this),key=toPropertyKey$2(P);do{if(desc=getOwnPropertyDescriptor$4(O,key))return desc.set}while(O=getPrototypeOf$2(O))}});var $$W=_export,isObject$g=isObject$C,onFreeze$1=internalMetadataExports.onFreeze,FREEZING$3=freezing,fails$t=fails$18,$preventExtensions=Object.preventExtensions;$$W({target:"Object",stat:!0,forced:fails$t(function(){$preventExtensions(1)}),sham:!FREEZING$3},{preventExtensions:function preventExtensions(it){return $preventExtensions&&isObject$g(it)?$preventExtensions(onFreeze$1(it)):it}});var $$V=_export,isObject$f=isObject$C,onFreeze=internalMetadataExports.onFreeze,FREEZING$2=freezing,fails$s=fails$18,$seal=Object.seal;$$V({target:"Object",stat:!0,forced:fails$s(function(){$seal(1)}),sham:!FREEZING$2},{seal:function seal(it){return $seal&&isObject$f(it)?$seal(onFreeze(it)):it}}),_export({target:"Object",stat:!0},{setPrototypeOf:objectSetPrototypeOf$1});var classof$7=classof$i,toString$e=toStringTagSupport?{}.toString:function toString(){return"[object "+classof$7(this)+"]"};toStringTagSupport||defineBuiltIn$i(Object.prototype,"toString",toString$e,{unsafe:!0});var $values=objectToArray.values;_export({target:"Object",stat:!0},{values:function values(O){return $values(O)}});var $location,defer,channel,port,globalThis$s=globalThis_1,userAgent$4=environmentUserAgent,classof$6=classofRaw$2,userAgentStartsWith=function(string){return userAgent$4.slice(0,string.length)===string},environment=userAgentStartsWith("Bun/")?"BUN":userAgentStartsWith("Cloudflare-Workers")?"CLOUDFLARE":userAgentStartsWith("Deno/")?"DENO":userAgentStartsWith("Node.js/")?"NODE":globalThis$s.Bun&&"string"==typeof Bun.version?"BUN":globalThis$s.Deno&&"object"==typeof Deno.version?"DENO":"process"===classof$6(globalThis$s.process)?"NODE":globalThis$s.window&&globalThis$s.document?"BROWSER":"REST",environmentIsNode="NODE"===environment,isConstructor=isConstructor$5,tryToString=tryToString$7,$TypeError$6=TypeError,aConstructor$3=function(argument){if(isConstructor(argument))return argument;throw new $TypeError$6(tryToString(argument)+" is not a constructor")},anObject$l=anObject$x,aConstructor$2=aConstructor$3,isNullOrUndefined$1=isNullOrUndefined$7,SPECIES$2=wellKnownSymbol$w("species"),speciesConstructor$3=function(O,defaultConstructor){var S,C=anObject$l(O).constructor;return void 0===C||isNullOrUndefined$1(S=anObject$l(C)[SPECIES$2])?defaultConstructor:aConstructor$2(S)},$TypeError$5=TypeError,validateArgumentsLength$5=function(passed,required){if(passed<required)throw new $TypeError$5("Not enough arguments");return passed},environmentIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(environmentUserAgent),globalThis$r=globalThis_1,apply$6=functionApply$1,bind$6=functionBindContext,isCallable$8=isCallable$v,hasOwn$8=hasOwnProperty_1,fails$r=fails$18,html=html$2,arraySlice$5=arraySlice$a,createElement=documentCreateElement$2,validateArgumentsLength$4=validateArgumentsLength$5,IS_IOS$1=environmentIsIos,IS_NODE$2=environmentIsNode,set$1=globalThis$r.setImmediate,clear=globalThis$r.clearImmediate,process$2=globalThis$r.process,Dispatch=globalThis$r.Dispatch,Function$2=globalThis$r.Function,MessageChannel=globalThis$r.MessageChannel,String$1=globalThis$r.String,counter=0,queue$2={};fails$r(function(){$location=globalThis$r.location});var run=function(id){if(hasOwn$8(queue$2,id)){var fn=queue$2[id];delete queue$2[id],fn()}},runner=function(id){return function(){run(id)}},eventListener=function(event){run(event.data)},globalPostMessageDefer=function(id){globalThis$r.postMessage(String$1(id),$location.protocol+"//"+$location.host)};set$1&&clear||(set$1=function setImmediate(handler){validateArgumentsLength$4(arguments.length,1);var fn=isCallable$8(handler)?handler:Function$2(handler),args=arraySlice$5(arguments,1);return queue$2[++counter]=function(){apply$6(fn,void 0,args)},defer(counter),counter},clear=function clearImmediate(id){delete queue$2[id]},IS_NODE$2?defer=function(id){process$2.nextTick(runner(id))}:Dispatch&&Dispatch.now?defer=function(id){Dispatch.now(runner(id))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$6(port.postMessage,port)):globalThis$r.addEventListener&&isCallable$8(globalThis$r.postMessage)&&!globalThis$r.importScripts&&$location&&"file:"!==$location.protocol&&!fails$r(globalPostMessageDefer)?(defer=globalPostMessageDefer,globalThis$r.addEventListener("message",eventListener,!1)):defer="onreadystatechange"in createElement("script")?function(id){html.appendChild(createElement("script")).onreadystatechange=function(){html.removeChild(this),run(id)}}:function(id){setTimeout(runner(id),0)});var task$1={set:set$1,clear:clear},globalThis$q=globalThis_1,DESCRIPTORS$9=descriptors,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,safeGetBuiltIn$2=function(name){if(!DESCRIPTORS$9)return globalThis$q[name];var descriptor=getOwnPropertyDescriptor$3(globalThis$q,name);return descriptor&&descriptor.value},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(item){var entry={item:item,next:null},tail=this.tail;tail?tail.next=entry:this.head=entry,this.tail=entry},get:function(){var entry=this.head;if(entry)return null===(this.head=entry.next)&&(this.tail=null),entry.item}};var notify$1,toggle,node,promise,then,queue$1=Queue$2,environmentIsIosPebble=/ipad|iphone|ipod/i.test(environmentUserAgent)&&"undefined"!=typeof Pebble,environmentIsWebosWebkit=/web0s(?!.*chrome)/i.test(environmentUserAgent),globalThis$p=globalThis_1,safeGetBuiltIn$1=safeGetBuiltIn$2,bind$5=functionBindContext,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=environmentIsIos,IS_IOS_PEBBLE=environmentIsIosPebble,IS_WEBOS_WEBKIT=environmentIsWebosWebkit,IS_NODE$1=environmentIsNode,MutationObserver=globalThis$p.MutationObserver||globalThis$p.WebKitMutationObserver,document$2=globalThis$p.document,process$1=globalThis$p.process,Promise$1=globalThis$p.Promise,microtask$2=safeGetBuiltIn$1("queueMicrotask");if(!microtask$2){var queue=new Queue$1,flush=function(){var parent,fn;for(IS_NODE$1&&(parent=process$1.domain)&&parent.exit();fn=queue.get();)try{fn()}catch(error){throw queue.head&¬ify$1(),error}parent&&parent.enter()};IS_IOS||IS_NODE$1||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$5(promise.then,promise),notify$1=function(){then(flush)}):IS_NODE$1?notify$1=function(){process$1.nextTick(flush)}:(macrotask=bind$5(macrotask,globalThis$p),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$2=function(fn){queue.head||notify$1(),queue.add(fn)}}var microtask_1=microtask$2,perform$3=function(exec){try{return{error:!1,value:exec()}}catch(error){return{error:!0,value:error}}},promiseNativeConstructor=globalThis_1.Promise,globalThis$n=globalThis_1,NativePromiseConstructor$4=promiseNativeConstructor,isCallable$7=isCallable$v,isForced$1=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$9=wellKnownSymbol$w,ENVIRONMENT$1=environment,V8_VERSION=environmentV8Version;NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype;var SPECIES$1=wellKnownSymbol$9("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$7(globalThis$n.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced$1("Promise",function(){var PROMISE_CONSTRUCTOR_SOURCE=inspectSource(NativePromiseConstructor$4),GLOBAL_CORE_JS_PROMISE=PROMISE_CONSTRUCTOR_SOURCE!==String(NativePromiseConstructor$4);if(!GLOBAL_CORE_JS_PROMISE&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)){var promise=new NativePromiseConstructor$4(function(resolve){resolve(1)}),FakePromise=function(exec){exec(function(){},function(){})};if((promise.constructor={})[SPECIES$1]=FakePromise,!(SUBCLASSING=promise.then(function(){})instanceof FakePromise))return!0}return!(GLOBAL_CORE_JS_PROMISE||"BROWSER"!==ENVIRONMENT$1&&"DENO"!==ENVIRONMENT$1||NATIVE_PROMISE_REJECTION_EVENT$1)}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$8=aCallable$h,$TypeError$4=TypeError,PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw new $TypeError$4("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aCallable$8(resolve),this.reject=aCallable$8(reject)};newPromiseCapability$2.f=function(C){return new PromiseCapability(C)};var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,$$S=_export,IS_NODE=environmentIsNode,globalThis$m=globalThis_1,path=path$3,call$i=functionCall,defineBuiltIn$7=defineBuiltIn$i,setPrototypeOf$1=objectSetPrototypeOf$1,setToStringTag$3=setToStringTag$c,setSpecies$2=setSpecies$6,aCallable$7=aCallable$h,isCallable$6=isCallable$v,isObject$e=isObject$C,anInstance$4=anInstance$8,speciesConstructor$2=speciesConstructor$3,task=task$1.set,microtask$1=microtask_1,hostReportErrors=function(a,b){try{1===arguments.length?console.error(a):console.error(a,b)}catch(error){}},perform$2=perform$3,Queue=queue$1,InternalStateModule$5=internalState,NativePromiseConstructor$3=promiseNativeConstructor,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$4=promiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=promiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=promiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$5.getterFor("Promise"),setInternalState$5=InternalStateModule$5.set,NativePromisePrototype$2=NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,PromiseConstructor=NativePromiseConstructor$3,PromisePrototype=NativePromisePrototype$2,TypeError$3=globalThis$m.TypeError,document$1=globalThis$m.document,process=globalThis$m.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&globalThis$m.dispatchEvent),isThenable=function(it){var then;return!(!isObject$e(it)||!isCallable$6(then=it.then))&&then},callReaction=function(reaction,state){var result,then,exited,value=state.value,ok=1===state.state,handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject,domain=reaction.domain;try{handler?(ok||(2===state.rejection&&onHandleUnhandled(state),state.rejection=1),!0===handler?result=value:(domain&&domain.enter(),result=handler(value),domain&&(domain.exit(),exited=!0)),result===reaction.promise?reject(new TypeError$3("Promise-chain cycle")):(then=isThenable(result))?call$i(then,result,resolve,reject):resolve(result)):reject(value)}catch(error){domain&&!exited&&domain.exit(),reject(error)}},notify=function(state,isReject){state.notified||(state.notified=!0,microtask$1(function(){for(var reaction,reactions=state.reactions;reaction=reactions.get();)callReaction(reaction,state);state.notified=!1,isReject&&!state.rejection&&onUnhandled(state)}))},dispatchEvent=function(name,promise,reason){var event,handler;DISPATCH_EVENT?((event=document$1.createEvent("Event")).promise=promise,event.reason=reason,event.initEvent(name,!1,!0),globalThis$m.dispatchEvent(event)):event={promise:promise,reason:reason},!NATIVE_PROMISE_REJECTION_EVENT&&(handler=globalThis$m["on"+name])?handler(event):"unhandledrejection"===name&&hostReportErrors("Unhandled promise rejection",reason)},onUnhandled=function(state){call$i(task,globalThis$m,function(){var result,promise=state.facade,value=state.value;if(isUnhandled(state)&&(result=perform$2(function(){IS_NODE?process.emit("unhandledRejection",value,promise):dispatchEvent("unhandledrejection",promise,value)}),state.rejection=IS_NODE||isUnhandled(state)?2:1,result.error))throw result.value})},isUnhandled=function(state){return 1!==state.rejection&&!state.parent},onHandleUnhandled=function(state){call$i(task,globalThis$m,function(){var promise=state.facade;IS_NODE?process.emit("rejectionHandled",promise):dispatchEvent("rejectionhandled",promise,state.value)})},bind$4=function(fn,state,unwrap){return function(value){fn(state,value,unwrap)}},internalReject=function(state,value,unwrap){state.done||(state.done=!0,unwrap&&(state=unwrap),state.value=value,state.state=2,notify(state,!0))},internalResolve=function(state,value,unwrap){if(!state.done){state.done=!0,unwrap&&(state=unwrap);try{if(state.facade===value)throw new TypeError$3("Promise can't be resolved itself");var then=isThenable(value);then?microtask$1(function(){var wrapper={done:!1};try{call$i(then,value,bind$4(internalResolve,wrapper,state),bind$4(internalReject,wrapper,state))}catch(error){internalReject(wrapper,error,state)}}):(state.value=value,state.state=1,notify(state,!1))}catch(error){internalReject({done:!1},error,state)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function Promise(executor){anInstance$4(this,PromisePrototype),aCallable$7(executor),call$i(Internal,this);var state=getInternalPromiseState(this);try{executor(bind$4(internalResolve,state),bind$4(internalReject,state))}catch(error){internalReject(state,error)}}).prototype,(Internal=function Promise(executor){setInternalState$5(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:0,value:null})}).prototype=defineBuiltIn$7(PromisePrototype,"then",function then(onFulfilled,onRejected){var state=getInternalPromiseState(this),reaction=newPromiseCapability$1(speciesConstructor$2(this,PromiseConstructor));return state.parent=!0,reaction.ok=!isCallable$6(onFulfilled)||onFulfilled,reaction.fail=isCallable$6(onRejected)&&onRejected,reaction.domain=IS_NODE?process.domain:void 0,0===state.state?state.reactions.add(reaction):microtask$1(function(){callReaction(reaction,state)}),reaction.promise}),OwnPromiseCapability=function(){var promise=new Internal,state=getInternalPromiseState(promise);this.promise=promise,this.resolve=bind$4(internalResolve,state),this.reject=bind$4(internalReject,state)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(C){return C===PromiseConstructor||C===PromiseWrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)},isCallable$6(NativePromiseConstructor$3)&&NativePromisePrototype$2!==Object.prototype)){nativeThen=NativePromisePrototype$2.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$7(NativePromisePrototype$2,"then",function then(onFulfilled,onRejected){var that=this;return new PromiseConstructor(function(resolve,reject){call$i(nativeThen,that,resolve,reject)}).then(onFulfilled,onRejected)},{unsafe:!0});try{delete NativePromisePrototype$2.constructor}catch(error){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$2,PromisePrototype)}$$S({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),PromiseWrapper=path.Promise,setToStringTag$3(PromiseConstructor,"Promise",!1),setSpecies$2("Promise");var NativePromiseConstructor$2=promiseNativeConstructor,promiseStaticsIncorrectIteration=promiseConstructorDetection.CONSTRUCTOR||!checkCorrectnessOfIteration$4(function(iterable){NativePromiseConstructor$2.all(iterable).then(void 0,function(){})}),call$h=functionCall,aCallable$6=aCallable$h,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$2=iterate$6;_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function all(iterable){var C=this,capability=newPromiseCapabilityModule$2.f(C),resolve=capability.resolve,reject=capability.reject,result=perform$1(function(){var $promiseResolve=aCallable$6(C.resolve),values=[],counter=0,remaining=1;iterate$2(iterable,function(promise){var index=counter++,alreadyCalled=!1;remaining++,call$h($promiseResolve,C,promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[index]=value,--remaining||resolve(values))},reject)}),--remaining||resolve(values)});return result.error&&reject(result.value),capability.promise}});var $$Q=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$1=promiseNativeConstructor,getBuiltIn$5=getBuiltIn$f,isCallable$5=isCallable$v,defineBuiltIn$6=defineBuiltIn$i,NativePromisePrototype$1=NativePromiseConstructor$1&&NativePromiseConstructor$1.prototype;if($$Q({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(onRejected){return this.then(void 0,onRejected)}}),isCallable$5(NativePromiseConstructor$1)){var method$1=getBuiltIn$5("Promise").prototype.catch;NativePromisePrototype$1.catch!==method$1&&defineBuiltIn$6(NativePromisePrototype$1,"catch",method$1,{unsafe:!0})}var call$g=functionCall,aCallable$5=aCallable$h,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate$1=iterate$6;_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function race(iterable){var C=this,capability=newPromiseCapabilityModule$1.f(C),reject=capability.reject,result=perform(function(){var $promiseResolve=aCallable$5(C.resolve);iterate$1(iterable,function(promise){call$g($promiseResolve,C,promise).then(capability.resolve,reject)})});return result.error&&reject(result.value),capability.promise}});var newPromiseCapabilityModule=newPromiseCapability$2;_export({target:"Promise",stat:!0,forced:promiseConstructorDetection.CONSTRUCTOR},{reject:function reject(r){var capability=newPromiseCapabilityModule.f(this);return(0,capability.reject)(r),capability.promise}});var anObject$k=anObject$x,isObject$d=isObject$C,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(C,x){if(anObject$k(C),isObject$d(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);return(0,promiseCapability.resolve)(x),promiseCapability.promise},$$N=_export,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2;getBuiltIn$f("Promise"),$$N({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function resolve(x){return promiseResolve$1(this,x)}});var $$M=_export,NativePromiseConstructor=promiseNativeConstructor,fails$q=fails$18,getBuiltIn$3=getBuiltIn$f,isCallable$4=isCallable$v,speciesConstructor$1=speciesConstructor$3,promiseResolve=promiseResolve$2,defineBuiltIn$5=defineBuiltIn$i,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype;if($$M({target:"Promise",proto:!0,real:!0,forced:!!NativePromiseConstructor&&fails$q(function(){NativePromisePrototype.finally.call({then:function(){}},function(){})})},{finally:function(onFinally){var C=speciesConstructor$1(this,getBuiltIn$3("Promise")),isFunction=isCallable$4(onFinally);return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e})}:onFinally)}}),isCallable$4(NativePromiseConstructor)){var method=getBuiltIn$3("Promise").prototype.finally;NativePromisePrototype.finally!==method&&defineBuiltIn$5(NativePromisePrototype,"finally",method,{unsafe:!0})}var functionApply=functionApply$1,aCallable$4=aCallable$h,anObject$j=anObject$x;_export({target:"Reflect",stat:!0,forced:!fails$18(function(){Reflect.apply(function(){})})},{apply:function apply(target,thisArgument,argumentsList){return functionApply(aCallable$4(target),thisArgument,anObject$j(argumentsList))}});var uncurryThis$p=functionUncurryThis,aCallable$3=aCallable$h,isObject$c=isObject$C,hasOwn$7=hasOwnProperty_1,arraySlice$4=arraySlice$a,NATIVE_BIND=functionBindNative,$Function=Function,concat$2=uncurryThis$p([].concat),join$6=uncurryThis$p([].join),factories={},functionBind=NATIVE_BIND?$Function.bind:function bind(that){var F=aCallable$3(this),Prototype=F.prototype,partArgs=arraySlice$4(arguments,1),boundFunction=function bound(){var args=concat$2(partArgs,arraySlice$4(arguments));return this instanceof boundFunction?function(C,argsLength,args){if(!hasOwn$7(factories,argsLength)){for(var list=[],i=0;i<argsLength;i++)list[i]="a["+i+"]";factories[argsLength]=$Function("C,a","return new C("+join$6(list,",")+")")}return factories[argsLength](C,args)}(F,args.length,args):F.apply(that,args)};return isObject$c(Prototype)&&(boundFunction.prototype=Prototype),boundFunction},$$K=_export,apply$5=functionApply$1,bind$3=functionBind,aConstructor$1=aConstructor$3,anObject$i=anObject$x,isObject$b=isObject$C,create$4=objectCreate,fails$o=fails$18,nativeConstruct=getBuiltIn$f("Reflect","construct"),ObjectPrototype=Object.prototype,push$6=[].push,NEW_TARGET_BUG=fails$o(function(){function F(){}return!(nativeConstruct(function(){},[],F)instanceof F)}),ARGS_BUG=!fails$o(function(){nativeConstruct(function(){})}),FORCED$3=NEW_TARGET_BUG||ARGS_BUG;$$K({target:"Reflect",stat:!0,forced:FORCED$3,sham:FORCED$3},{construct:function construct(Target,args){aConstructor$1(Target),anObject$i(args);var newTarget=arguments.length<3?Target:aConstructor$1(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(Target,args,newTarget);if(Target===newTarget){switch(args.length){case 0:return new Target;case 1:return new Target(args[0]);case 2:return new Target(args[0],args[1]);case 3:return new Target(args[0],args[1],args[2]);case 4:return new Target(args[0],args[1],args[2],args[3])}var $args=[null];return apply$5(push$6,$args,args),new(apply$5(bind$3,Target,$args))}var proto=newTarget.prototype,instance=create$4(isObject$b(proto)?proto:ObjectPrototype),result=apply$5(Target,instance,args);return isObject$b(result)?result:instance}});var DESCRIPTORS$8=descriptors,anObject$h=anObject$x,toPropertyKey$1=toPropertyKey$7,definePropertyModule$2=objectDefineProperty;_export({target:"Reflect",stat:!0,forced:fails$18(function(){Reflect.defineProperty(definePropertyModule$2.f({},1,{value:1}),1,{value:2})}),sham:!DESCRIPTORS$8},{defineProperty:function defineProperty(target,propertyKey,attributes){anObject$h(target);var key=toPropertyKey$1(propertyKey);anObject$h(attributes);try{return definePropertyModule$2.f(target,key,attributes),!0}catch(error){return!1}}});var $$I=_export,anObject$g=anObject$x,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f;$$I({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(target,propertyKey){var descriptor=getOwnPropertyDescriptor$2(anObject$g(target),propertyKey);return!(descriptor&&!descriptor.configurable)&&delete target[propertyKey]}});var hasOwn$6=hasOwnProperty_1,isDataDescriptor$2=function(descriptor){return void 0!==descriptor&&(hasOwn$6(descriptor,"value")||hasOwn$6(descriptor,"writable"))},call$f=functionCall,isObject$a=isObject$C,anObject$f=anObject$x,isDataDescriptor$1=isDataDescriptor$2,getOwnPropertyDescriptorModule$3=objectGetOwnPropertyDescriptor,getPrototypeOf$1=objectGetPrototypeOf$2;_export({target:"Reflect",stat:!0},{get:function get(target,propertyKey){var descriptor,prototype,receiver=arguments.length<3?target:arguments[2];return anObject$f(target)===receiver?target[propertyKey]:(descriptor=getOwnPropertyDescriptorModule$3.f(target,propertyKey))?isDataDescriptor$1(descriptor)?descriptor.value:void 0===descriptor.get?void 0:call$f(descriptor.get,receiver):isObject$a(prototype=getPrototypeOf$1(target))?get(prototype,propertyKey,receiver):void 0}});var anObject$e=anObject$x,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor;_export({target:"Reflect",stat:!0,sham:!descriptors},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(target,propertyKey){return getOwnPropertyDescriptorModule$2.f(anObject$e(target),propertyKey)}});var anObject$d=anObject$x,objectGetPrototypeOf=objectGetPrototypeOf$2;_export({target:"Reflect",stat:!0,sham:!correctPrototypeGetter},{getPrototypeOf:function getPrototypeOf(target){return objectGetPrototypeOf(anObject$d(target))}}),_export({target:"Reflect",stat:!0},{has:function has(target,propertyKey){return propertyKey in target}});var anObject$c=anObject$x,$isExtensible=objectIsExtensible;_export({target:"Reflect",stat:!0},{isExtensible:function isExtensible(target){return anObject$c(target),$isExtensible(target)}}),_export({target:"Reflect",stat:!0},{ownKeys:ownKeys$3});var getBuiltIn$1=getBuiltIn$f,anObject$b=anObject$x;_export({target:"Reflect",stat:!0,sham:!freezing},{preventExtensions:function preventExtensions(target){anObject$b(target);try{var objectPreventExtensions=getBuiltIn$1("Object","preventExtensions");return objectPreventExtensions&&objectPreventExtensions(target),!0}catch(error){return!1}}});var $$A=_export,call$e=functionCall,anObject$a=anObject$x,isObject$9=isObject$C,isDataDescriptor=isDataDescriptor$2,definePropertyModule$1=objectDefineProperty,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,getPrototypeOf=objectGetPrototypeOf$2,createPropertyDescriptor$2=createPropertyDescriptor$8;var MS_EDGE_BUG=fails$18(function(){var Constructor=function(){},object=definePropertyModule$1.f(new Constructor,"a",{configurable:!0});return!1!==Reflect.set(Constructor.prototype,"a",1,object)});$$A({target:"Reflect",stat:!0,forced:MS_EDGE_BUG},{set:function set(target,propertyKey,V){var existingDescriptor,prototype,setter,receiver=arguments.length<4?target:arguments[3],ownDescriptor=getOwnPropertyDescriptorModule$1.f(anObject$a(target),propertyKey);if(!ownDescriptor){if(isObject$9(prototype=getPrototypeOf(target)))return set(prototype,propertyKey,V,receiver);ownDescriptor=createPropertyDescriptor$2(0)}if(isDataDescriptor(ownDescriptor)){if(!1===ownDescriptor.writable||!isObject$9(receiver))return!1;if(existingDescriptor=getOwnPropertyDescriptorModule$1.f(receiver,propertyKey)){if(existingDescriptor.get||existingDescriptor.set||!1===existingDescriptor.writable)return!1;existingDescriptor.value=V,definePropertyModule$1.f(receiver,propertyKey,existingDescriptor)}else definePropertyModule$1.f(receiver,propertyKey,createPropertyDescriptor$2(0,V))}else{if(void 0===(setter=ownDescriptor.set))return!1;call$e(setter,receiver,V)}return!0}});var anObject$9=anObject$x,aPossiblePrototype=aPossiblePrototype$2,objectSetPrototypeOf=objectSetPrototypeOf$1;objectSetPrototypeOf&&_export({target:"Reflect",stat:!0},{setPrototypeOf:function setPrototypeOf(target,proto){anObject$9(target),aPossiblePrototype(proto);try{return objectSetPrototypeOf(target,proto),!0}catch(error){return!1}}});var isObject$8=isObject$C,classof$5=classofRaw$2,MATCH$2=wellKnownSymbol$w("match"),isRegexp=function(it){var isRegExp;return isObject$8(it)&&(void 0!==(isRegExp=it[MATCH$2])?!!isRegExp:"RegExp"===classof$5(it))},fails$l=fails$18,RegExp$1=globalThis_1.RegExp,FLAGS_GETTER_IS_CORRECT=!fails$l(function(){var INDICES_SUPPORT=!0;try{RegExp$1(".","d")}catch(error){INDICES_SUPPORT=!1}var O={},calls="",expected=INDICES_SUPPORT?"dgimsy":"gimsy",addGetter=function(key,chr){Object.defineProperty(O,key,{get:function(){return calls+=chr,!0}})},pairs={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var key in INDICES_SUPPORT&&(pairs.hasIndices="d"),pairs)addGetter(key,pairs[key]);return Object.getOwnPropertyDescriptor(RegExp$1.prototype,"flags").get.call(O)!==expected||calls!==expected}),regexpFlagsDetection={correct:FLAGS_GETTER_IS_CORRECT},anObject$8=anObject$x,regexpFlags$1=function(){var that=anObject$8(this),result="";return that.hasIndices&&(result+="d"),that.global&&(result+="g"),that.ignoreCase&&(result+="i"),that.multiline&&(result+="m"),that.dotAll&&(result+="s"),that.unicode&&(result+="u"),that.unicodeSets&&(result+="v"),that.sticky&&(result+="y"),result},call$d=functionCall,hasOwn$5=hasOwnProperty_1,isPrototypeOf$2=objectIsPrototypeOf,regExpFlagsDetection$1=regexpFlagsDetection,regExpFlagsGetterImplementation$1=regexpFlags$1,RegExpPrototype$3=RegExp.prototype,regexpGetFlags=regExpFlagsDetection$1.correct?function(it){return it.flags}:function(it){return regExpFlagsDetection$1.correct||!isPrototypeOf$2(RegExpPrototype$3,it)||hasOwn$5(it,"flags")?it.flags:call$d(regExpFlagsGetterImplementation$1,it)},fails$k=fails$18,$RegExp$2=globalThis_1.RegExp,UNSUPPORTED_Y$3=fails$k(function(){var re=$RegExp$2("a","y");return re.lastIndex=2,null!==re.exec("abcd")}),MISSED_STICKY$1=UNSUPPORTED_Y$3||fails$k(function(){return!$RegExp$2("a","y").sticky}),regexpStickyHelpers={BROKEN_CARET:UNSUPPORTED_Y$3||fails$k(function(){var re=$RegExp$2("^r","gy");return re.lastIndex=2,null!==re.exec("str")}),MISSED_STICKY:MISSED_STICKY$1,UNSUPPORTED_Y:UNSUPPORTED_Y$3},defineProperty=objectDefineProperty.f,fails$j=fails$18,$RegExp$1=globalThis_1.RegExp,regexpUnsupportedDotAll=fails$j(function(){var re=$RegExp$1(".","s");return!(re.dotAll&&re.test("\n")&&"s"===re.flags)}),fails$i=fails$18,$RegExp=globalThis_1.RegExp,regexpUnsupportedNcg=fails$i(function(){var re=$RegExp("(?<a>b)","g");return"b"!==re.exec("b").groups.a||"bc"!=="b".replace(re,"$<a>c")}),DESCRIPTORS$6=descriptors,globalThis$h=globalThis_1,uncurryThis$o=functionUncurryThis,isForced=isForced_1,inheritIfRequired$1=inheritIfRequired$5,createNonEnumerableProperty$4=createNonEnumerableProperty$a,create$3=objectCreate,getOwnPropertyNames$1=objectGetOwnPropertyNames.f,isPrototypeOf$1=objectIsPrototypeOf,isRegExp$1=isRegexp,toString$d=toString$n,getRegExpFlags$3=regexpGetFlags,stickyHelpers$2=regexpStickyHelpers,proxyAccessor=function(Target,Source,key){key in Target||defineProperty(Target,key,{configurable:!0,get:function(){return Source[key]},set:function(it){Source[key]=it}})},defineBuiltIn$4=defineBuiltIn$i,fails$h=fails$18,hasOwn$4=hasOwnProperty_1,enforceInternalState$2=internalState.enforce,setSpecies$1=setSpecies$6,UNSUPPORTED_DOT_ALL$1=regexpUnsupportedDotAll,UNSUPPORTED_NCG$1=regexpUnsupportedNcg,MATCH$1=wellKnownSymbol$w("match"),NativeRegExp=globalThis$h.RegExp,RegExpPrototype$2=NativeRegExp.prototype,SyntaxError=globalThis$h.SyntaxError,exec$4=uncurryThis$o(RegExpPrototype$2.exec),charAt$7=uncurryThis$o("".charAt),replace$6=uncurryThis$o("".replace),stringIndexOf$3=uncurryThis$o("".indexOf),stringSlice$9=uncurryThis$o("".slice),IS_NCG=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,re1=/a/g,re2=/a/g,CORRECT_NEW=new NativeRegExp(re1)!==re1,MISSED_STICKY=stickyHelpers$2.MISSED_STICKY,UNSUPPORTED_Y$2=stickyHelpers$2.UNSUPPORTED_Y,BASE_FORCED=DESCRIPTORS$6&&(!CORRECT_NEW||MISSED_STICKY||UNSUPPORTED_DOT_ALL$1||UNSUPPORTED_NCG$1||fails$h(function(){return re2[MATCH$1]=!1,NativeRegExp(re1)!==re1||NativeRegExp(re2)===re2||"/a/i"!==String(NativeRegExp(re1,"i"))}));if(isForced("RegExp",BASE_FORCED)){for(var RegExpWrapper=function RegExp(pattern,flags){var rawFlags,dotAll,sticky,handled,result,state,thisIsRegExp=isPrototypeOf$1(RegExpPrototype$2,this),patternIsRegExp=isRegExp$1(pattern),flagsAreUndefined=void 0===flags,groups=[],rawPattern=pattern;if(!thisIsRegExp&&patternIsRegExp&&flagsAreUndefined&&pattern.constructor===RegExpWrapper)return pattern;if((patternIsRegExp||isPrototypeOf$1(RegExpPrototype$2,pattern))&&(pattern=pattern.source,flagsAreUndefined&&(flags=getRegExpFlags$3(rawPattern))),pattern=void 0===pattern?"":toString$d(pattern),flags=void 0===flags?"":toString$d(flags),rawPattern=pattern,UNSUPPORTED_DOT_ALL$1&&"dotAll"in re1&&(dotAll=!!flags&&stringIndexOf$3(flags,"s")>-1)&&(flags=replace$6(flags,/s/g,"")),rawFlags=flags,MISSED_STICKY&&"sticky"in re1&&(sticky=!!flags&&stringIndexOf$3(flags,"y")>-1)&&UNSUPPORTED_Y$2&&(flags=replace$6(flags,/y/g,"")),UNSUPPORTED_NCG$1&&(handled=function(string){for(var chr,length=string.length,index=0,result="",named=[],names=create$3(null),brackets=!1,ncg=!1,groupid=0,groupname="";index<=length;index++){if("\\"===(chr=charAt$7(string,index)))chr+=charAt$7(string,++index);else if("]"===chr)brackets=!1;else if(!brackets)switch(!0){case"["===chr:brackets=!0;break;case"("===chr:if(result+=chr,"?:"===stringSlice$9(string,index+1,index+3))continue;exec$4(IS_NCG,stringSlice$9(string,index+1))&&(index+=2,ncg=!0),groupid++;continue;case">"===chr&&ncg:if(""===groupname||hasOwn$4(names,groupname))throw new SyntaxError("Invalid capture group name");names[groupname]=!0,named[named.length]=[groupname,groupid],ncg=!1,groupname="";continue}ncg?groupname+=chr:result+=chr}return[result,named]}(pattern),pattern=handled[0],groups=handled[1]),result=inheritIfRequired$1(NativeRegExp(pattern,flags),thisIsRegExp?this:RegExpPrototype$2,RegExpWrapper),(dotAll||sticky||groups.length)&&(state=enforceInternalState$2(result),dotAll&&(state.dotAll=!0,state.raw=RegExpWrapper(function(string){for(var chr,length=string.length,index=0,result="",brackets=!1;index<=length;index++)"\\"!==(chr=charAt$7(string,index))?brackets||"."!==chr?("["===chr?brackets=!0:"]"===chr&&(brackets=!1),result+=chr):result+="[\\s\\S]":result+=chr+charAt$7(string,++index);return result}(pattern),rawFlags)),sticky&&(state.sticky=!0),groups.length&&(state.groups=groups)),pattern!==rawPattern)try{createNonEnumerableProperty$4(result,"source",""===rawPattern?"(?:)":rawPattern)}catch(error){}return result},keys=getOwnPropertyNames$1(NativeRegExp),index=0;keys.length>index;)proxyAccessor(RegExpWrapper,NativeRegExp,keys[index++]);RegExpPrototype$2.constructor=RegExpWrapper,RegExpWrapper.prototype=RegExpPrototype$2,defineBuiltIn$4(globalThis$h,"RegExp",RegExpWrapper,{constructor:!0})}setSpecies$1("RegExp");var call$c=functionCall,uncurryThis$n=functionUncurryThis,toString$c=toString$n,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,create$2=objectCreate,getInternalState$2=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared$7("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$6=uncurryThis$n("".charAt),indexOf=uncurryThis$n("".indexOf),replace$5=uncurryThis$n("".replace),stringSlice$8=uncurryThis$n("".slice),UPDATES_LAST_INDEX_WRONG=function(){var re1=/a/,re2=/b*/g;return call$c(nativeExec,re1,"a"),call$c(nativeExec,re2,"a"),0!==re1.lastIndex||0!==re2.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1];(UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG)&&(patchedExec=function exec(string){var result,reCopy,lastIndex,match,i,object,group,re=this,state=getInternalState$2(re),str=toString$c(string),raw=state.raw;if(raw)return raw.lastIndex=re.lastIndex,result=call$c(patchedExec,raw,str),re.lastIndex=raw.lastIndex,result;var groups=state.groups,sticky=UNSUPPORTED_Y$1&&re.sticky,flags=call$c(regexpFlags,re),source=re.source,charsAdded=0,strCopy=str;if(sticky&&(flags=replace$5(flags,"y",""),-1===indexOf(flags,"g")&&(flags+="g"),strCopy=stringSlice$8(str,re.lastIndex),re.lastIndex>0&&(!re.multiline||re.multiline&&"\n"!==charAt$6(str,re.lastIndex-1))&&(source="(?: "+source+")",strCopy=" "+strCopy,charsAdded++),reCopy=new RegExp("^(?:"+source+")",flags)),NPCG_INCLUDED&&(reCopy=new RegExp("^"+source+"$(?!\\s)",flags)),UPDATES_LAST_INDEX_WRONG&&(lastIndex=re.lastIndex),match=call$c(nativeExec,sticky?reCopy:re,strCopy),sticky?match?(match.input=stringSlice$8(match.input,charsAdded),match[0]=stringSlice$8(match[0],charsAdded),match.index=re.lastIndex,re.lastIndex+=match[0].length):re.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&match&&(re.lastIndex=re.global?match.index+match[0].length:lastIndex),NPCG_INCLUDED&&match&&match.length>1&&call$c(nativeReplace,match[0],reCopy,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(match[i]=void 0)}),match&&groups)for(match.groups=object=create$2(null),i=0;i<groups.length;i++)object[(group=groups[i])[0]]=match[group[1]];return match});var regexpExec$2=patchedExec;_export({target:"RegExp",proto:!0,forced:/./.exec!==regexpExec$2},{exec:regexpExec$2});var defineBuiltInAccessor$3=defineBuiltInAccessor$b,regExpFlagsDetection=regexpFlagsDetection,regExpFlagsGetterImplementation=regexpFlags$1;descriptors&&!regExpFlagsDetection.correct&&(defineBuiltInAccessor$3(RegExp.prototype,"flags",{configurable:!0,get:regExpFlagsGetterImplementation}),regExpFlagsDetection.correct=!0);var PROPER_FUNCTION_NAME$1=functionName.PROPER,defineBuiltIn$3=defineBuiltIn$i,anObject$7=anObject$x,$toString$2=toString$n,fails$g=fails$18,getRegExpFlags$2=regexpGetFlags,RegExpPrototype$1=RegExp.prototype,nativeToString=RegExpPrototype$1.toString,NOT_GENERIC=fails$g(function(){return"/a/b"!==nativeToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$1&&"toString"!==nativeToString.name;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$3(RegExpPrototype$1,"toString",function toString(){var R=anObject$7(this);return"/"+$toString$2(R.source)+"/"+$toString$2(getRegExpFlags$2(R))},{unsafe:!0}),collection$4("Set",function(init){return function Set(){return init(this,arguments.length?arguments[0]:void 0)}},collectionStrong$2);var uncurryThis$m=functionUncurryThis,toIntegerOrInfinity$3=toIntegerOrInfinity$c,toString$b=toString$n,requireObjectCoercible$9=requireObjectCoercible$f,charAt$5=uncurryThis$m("".charAt),charCodeAt$1=uncurryThis$m("".charCodeAt),stringSlice$7=uncurryThis$m("".slice),createMethod$2=function(CONVERT_TO_STRING){return function($this,pos){var first,second,S=toString$b(requireObjectCoercible$9($this)),position=toIntegerOrInfinity$3(pos),size=S.length;return position<0||position>=size?CONVERT_TO_STRING?"":void 0:(first=charCodeAt$1(S,position))<55296||first>56319||position+1===size||(second=charCodeAt$1(S,position+1))<56320||second>57343?CONVERT_TO_STRING?charAt$5(S,position):first:CONVERT_TO_STRING?stringSlice$7(S,position,position+2):second-56320+(first-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},codeAt$1=stringMultibyte.codeAt;_export({target:"String",proto:!0},{codePointAt:function codePointAt(pos){return codeAt$1(this,pos)}});var descriptor,isRegExp=isRegexp,$TypeError$3=TypeError,notARegexp=function(it){if(isRegExp(it))throw new $TypeError$3("The method doesn't accept regular expressions");return it},MATCH=wellKnownSymbol$w("match"),correctIsRegexpLogic=function(METHOD_NAME){var regexp=/./;try{"/./"[METHOD_NAME](regexp)}catch(error1){try{return regexp[MATCH]=!1,"/./"[METHOD_NAME](regexp)}catch(error2){}}return!1},$$w=_export,uncurryThis$l=functionUncurryThisClause,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,toLength$7=toLength$c,toString$a=toString$n,notARegExp$2=notARegexp,requireObjectCoercible$8=requireObjectCoercible$f,correctIsRegExpLogic$2=correctIsRegexpLogic,slice$1=uncurryThis$l("".slice),min$4=Math.min,CORRECT_IS_REGEXP_LOGIC$1=correctIsRegExpLogic$2("endsWith");$$w({target:"String",proto:!0,forced:!!(CORRECT_IS_REGEXP_LOGIC$1||(descriptor=getOwnPropertyDescriptor$1(String.prototype,"endsWith"),!descriptor||descriptor.writable))&&!CORRECT_IS_REGEXP_LOGIC$1},{endsWith:function endsWith(searchString){var that=toString$a(requireObjectCoercible$8(this));notARegExp$2(searchString);var endPosition=arguments.length>1?arguments[1]:void 0,len=that.length,end=void 0===endPosition?len:min$4(toLength$7(endPosition),len),search=toString$a(searchString);return slice$1(that,end-search.length,end)===search}});var $$v=_export,uncurryThis$k=functionUncurryThis,toAbsoluteIndex$1=toAbsoluteIndex$8,$RangeError$3=RangeError,fromCharCode$2=String.fromCharCode,$fromCodePoint=String.fromCodePoint,join$5=uncurryThis$k([].join);$$v({target:"String",stat:!0,arity:1,forced:!!$fromCodePoint&&1!==$fromCodePoint.length},{fromCodePoint:function fromCodePoint(x){for(var code,elements=[],length=arguments.length,i=0;length>i;){if(code=+arguments[i++],toAbsoluteIndex$1(code,1114111)!==code)throw new $RangeError$3(code+" is not a valid code point");elements[i]=code<65536?fromCharCode$2(code):fromCharCode$2(55296+((code-=65536)>>10),code%1024+56320)}return join$5(elements,"")}});var $$u=_export,notARegExp$1=notARegexp,requireObjectCoercible$7=requireObjectCoercible$f,toString$9=toString$n,correctIsRegExpLogic$1=correctIsRegexpLogic,stringIndexOf$2=functionUncurryThis("".indexOf);$$u({target:"String",proto:!0,forced:!correctIsRegExpLogic$1("includes")},{includes:function includes(searchString){return!!~stringIndexOf$2(toString$9(requireObjectCoercible$7(this)),toString$9(notARegExp$1(searchString)),arguments.length>1?arguments[1]:void 0)}});var charAt$4=stringMultibyte.charAt,toString$8=toString$n,InternalStateModule$4=internalState,defineIterator=iteratorDefine,createIterResultObject$1=createIterResultObject$4,setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor("String Iterator");defineIterator(String,"String",function(iterated){setInternalState$4(this,{type:"String Iterator",string:toString$8(iterated),index:0})},function next(){var point,state=getInternalState$1(this),string=state.string,index=state.index;return index>=string.length?createIterResultObject$1(void 0,!0):(point=charAt$4(string,index),state.index+=point.length,createIterResultObject$1(point,!1))});var call$b=functionCall,defineBuiltIn$2=defineBuiltIn$i,regexpExec$1=regexpExec$2,fails$f=fails$18,wellKnownSymbol$5=wellKnownSymbol$w,createNonEnumerableProperty$3=createNonEnumerableProperty$a,SPECIES=wellKnownSymbol$5("species"),RegExpPrototype=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(KEY,exec,FORCED,SHAM){var SYMBOL=wellKnownSymbol$5(KEY),DELEGATES_TO_SYMBOL=!fails$f(function(){var O={};return O[SYMBOL]=function(){return 7},7!==""[KEY](O)}),DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL&&!fails$f(function(){var execCalled=!1,re=/a/;return"split"===KEY&&((re={}).constructor={},re.constructor[SPECIES]=function(){return re},re.flags="",re[SYMBOL]=/./[SYMBOL]),re.exec=function(){return execCalled=!0,null},re[SYMBOL](""),!execCalled});if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||FORCED){var nativeRegExpMethod=/./[SYMBOL],methods=exec(SYMBOL,""[KEY],function(nativeMethod,regexp,str,arg2,forceStringMethod){var $exec=regexp.exec;return $exec===regexpExec$1||$exec===RegExpPrototype.exec?DELEGATES_TO_SYMBOL&&!forceStringMethod?{done:!0,value:call$b(nativeRegExpMethod,regexp,str,arg2)}:{done:!0,value:call$b(nativeMethod,str,regexp,arg2)}:{done:!1}});defineBuiltIn$2(String.prototype,KEY,methods[0]),defineBuiltIn$2(RegExpPrototype,SYMBOL,methods[1])}SHAM&&createNonEnumerableProperty$3(RegExpPrototype[SYMBOL],"sham",!0)},charAt$3=stringMultibyte.charAt,advanceStringIndex$3=function(S,index,unicode){return index+(unicode?charAt$3(S,index).length:1)},call$a=functionCall,anObject$6=anObject$x,isCallable$3=isCallable$v,classof$4=classofRaw$2,regexpExec=regexpExec$2,$TypeError$2=TypeError,regexpExecAbstract=function(R,S){var exec=R.exec;if(isCallable$3(exec)){var result=call$a(exec,R,S);return null!==result&&anObject$6(result),result}if("RegExp"===classof$4(R))return call$a(regexpExec,R,S);throw new $TypeError$2("RegExp#exec called on incompatible receiver")},call$9=functionCall,fixRegExpWellKnownSymbolLogic$3=fixRegexpWellKnownSymbolLogic,anObject$5=anObject$x,isObject$7=isObject$C,toLength$6=toLength$c,toString$7=toString$n,requireObjectCoercible$6=requireObjectCoercible$f,getMethod$3=getMethod$7,advanceStringIndex$2=advanceStringIndex$3,getRegExpFlags$1=regexpGetFlags,regExpExec$3=regexpExecAbstract,stringIndexOf$1=functionUncurryThis("".indexOf);fixRegExpWellKnownSymbolLogic$3("match",function(MATCH,nativeMatch,maybeCallNative){return[function match(regexp){var O=requireObjectCoercible$6(this),matcher=isObject$7(regexp)?getMethod$3(regexp,MATCH):void 0;return matcher?call$9(matcher,regexp,O):new RegExp(regexp)[MATCH](toString$7(O))},function(string){var rx=anObject$5(this),S=toString$7(string),res=maybeCallNative(nativeMatch,rx,S);if(res.done)return res.value;var flags=toString$7(getRegExpFlags$1(rx));if(-1===stringIndexOf$1(flags,"g"))return regExpExec$3(rx,S);var fullUnicode=-1!==stringIndexOf$1(flags,"u");rx.lastIndex=0;for(var result,A=[],n=0;null!==(result=regExpExec$3(rx,S));){var matchStr=toString$7(result[0]);A[n]=matchStr,""===matchStr&&(rx.lastIndex=advanceStringIndex$2(S,toLength$6(rx.lastIndex),fullUnicode)),n++}return 0===n?null:A}]});var uncurryThis$h=functionUncurryThis,toLength$5=toLength$c,toString$6=toString$n,requireObjectCoercible$5=requireObjectCoercible$f,repeat$1=uncurryThis$h(stringRepeat),stringSlice$6=uncurryThis$h("".slice),ceil=Math.ceil,createMethod$1=function(IS_END){return function($this,maxLength,fillString){var fillLen,stringFiller,S=toString$6(requireObjectCoercible$5($this)),intMaxLength=toLength$5(maxLength),stringLength=S.length,fillStr=void 0===fillString?" ":toString$6(fillString);return intMaxLength<=stringLength||""===fillStr?S:((stringFiller=repeat$1(fillStr,ceil((fillLen=intMaxLength-stringLength)/fillStr.length))).length>fillLen&&(stringFiller=stringSlice$6(stringFiller,0,fillLen)),IS_END?S+stringFiller:stringFiller+S)}},stringPad={start:createMethod$1(!1),end:createMethod$1(!0)},stringPadWebkitBug=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(environmentUserAgent),$padEnd=stringPad.end;_export({target:"String",proto:!0,forced:stringPadWebkitBug},{padEnd:function padEnd(maxLength){return $padEnd(this,maxLength,arguments.length>1?arguments[1]:void 0)}});var $padStart=stringPad.start;_export({target:"String",proto:!0,forced:stringPadWebkitBug},{padStart:function padStart(maxLength){return $padStart(this,maxLength,arguments.length>1?arguments[1]:void 0)}});var $$r=_export,uncurryThis$g=functionUncurryThis,toIndexedObject$2=toIndexedObject$f,toObject$3=toObject$n,toString$5=toString$n,lengthOfArrayLike$5=lengthOfArrayLike$j,push$5=uncurryThis$g([].push),join$4=uncurryThis$g([].join);$$r({target:"String",stat:!0},{raw:function raw(template){var rawTemplate=toIndexedObject$2(toObject$3(template).raw),literalSegments=lengthOfArrayLike$5(rawTemplate);if(!literalSegments)return"";for(var argumentsLength=arguments.length,elements=[],i=0;;){if(push$5(elements,toString$5(rawTemplate[i++])),i===literalSegments)return join$4(elements,"");i<argumentsLength&&push$5(elements,toString$5(arguments[i]))}}}),_export({target:"String",proto:!0},{repeat:stringRepeat});var uncurryThis$f=functionUncurryThis,toObject$2=toObject$n,floor$3=Math.floor,charAt$2=uncurryThis$f("".charAt),replace$4=uncurryThis$f("".replace),stringSlice$5=uncurryThis$f("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,apply$4=functionApply$1,call$8=functionCall,uncurryThis$e=functionUncurryThis,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,fails$e=fails$18,anObject$4=anObject$x,isCallable$2=isCallable$v,isObject$6=isObject$C,toIntegerOrInfinity$2=toIntegerOrInfinity$c,toLength$4=toLength$c,toString$4=toString$n,requireObjectCoercible$4=requireObjectCoercible$f,advanceStringIndex$1=advanceStringIndex$3,getMethod$2=getMethod$7,getSubstitution=function(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject$2(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),replace$4(replacement,symbols,function(match,ch){var capture;switch(charAt$2(ch,0)){case"$":return"$";case"&":return matched;case"`":return stringSlice$5(str,0,position);case"'":return stringSlice$5(str,tailPos);case"<":capture=namedCaptures[stringSlice$5(ch,1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor$3(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?charAt$2(ch,1):captures[f-1]+charAt$2(ch,1):match}capture=captures[n-1]}return void 0===capture?"":capture})},getRegExpFlags=regexpGetFlags,regExpExec$2=regexpExecAbstract,REPLACE=wellKnownSymbol$w("replace"),max=Math.max,min$3=Math.min,concat$1=uncurryThis$e([].concat),push$4=uncurryThis$e([].push),stringIndexOf=uncurryThis$e("".indexOf),stringSlice$4=uncurryThis$e("".slice),maybeToString=function(it){return void 0===it?it:String(it)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0");fixRegExpWellKnownSymbolLogic$2("replace",function(_,nativeReplace,maybeCallNative){var UNSAFE_SUBSTITUTE=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function replace(searchValue,replaceValue){var O=requireObjectCoercible$4(this),replacer=isObject$6(searchValue)?getMethod$2(searchValue,REPLACE):void 0;return replacer?call$8(replacer,searchValue,O,replaceValue):call$8(nativeReplace,toString$4(O),searchValue,replaceValue)},function(string,replaceValue){var rx=anObject$4(this),S=toString$4(string);if("string"==typeof replaceValue&&-1===stringIndexOf(replaceValue,UNSAFE_SUBSTITUTE)&&-1===stringIndexOf(replaceValue,"$<")){var res=maybeCallNative(nativeReplace,rx,S,replaceValue);if(res.done)return res.value}var functionalReplace=isCallable$2(replaceValue);functionalReplace||(replaceValue=toString$4(replaceValue));var fullUnicode,flags=toString$4(getRegExpFlags(rx)),global=-1!==stringIndexOf(flags,"g");global&&(fullUnicode=-1!==stringIndexOf(flags,"u"),rx.lastIndex=0);for(var result,results=[];null!==(result=regExpExec$2(rx,S))&&(push$4(results,result),global);){""===toString$4(result[0])&&(rx.lastIndex=advanceStringIndex$1(S,toLength$4(rx.lastIndex),fullUnicode))}for(var accumulatedResult="",nextSourcePosition=0,i=0;i<results.length;i++){for(var replacement,matched=toString$4((result=results[i])[0]),position=max(min$3(toIntegerOrInfinity$2(result.index),S.length),0),captures=[],j=1;j<result.length;j++)push$4(captures,maybeToString(result[j]));var namedCaptures=result.groups;if(functionalReplace){var replacerArgs=concat$1([matched],captures,position,S);void 0!==namedCaptures&&push$4(replacerArgs,namedCaptures),replacement=toString$4(apply$4(replaceValue,void 0,replacerArgs))}else replacement=getSubstitution(matched,S,position,captures,namedCaptures,replaceValue);position>=nextSourcePosition&&(accumulatedResult+=stringSlice$4(S,nextSourcePosition,position)+replacement,nextSourcePosition=position+matched.length)}return accumulatedResult+stringSlice$4(S,nextSourcePosition)}]},!!fails$e(function(){var re=/./;return re.exec=function(){var result=[];return result.groups={a:"7"},result},"7"!=="".replace(re,"$<a>")})||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);var call$7=functionCall,anObject$3=anObject$x,isObject$5=isObject$C,requireObjectCoercible$3=requireObjectCoercible$f,sameValue=sameValue$1,toString$3=toString$n,getMethod$1=getMethod$7,regExpExec$1=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("search",function(SEARCH,nativeSearch,maybeCallNative){return[function search(regexp){var O=requireObjectCoercible$3(this),searcher=isObject$5(regexp)?getMethod$1(regexp,SEARCH):void 0;return searcher?call$7(searcher,regexp,O):new RegExp(regexp)[SEARCH](toString$3(O))},function(string){var rx=anObject$3(this),S=toString$3(string),res=maybeCallNative(nativeSearch,rx,S);if(res.done)return res.value;var previousLastIndex=rx.lastIndex;sameValue(previousLastIndex,0)||(rx.lastIndex=0);var result=regExpExec$1(rx,S);return sameValue(rx.lastIndex,previousLastIndex)||(rx.lastIndex=previousLastIndex),null===result?-1:result.index}]});var call$6=functionCall,uncurryThis$d=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$2=anObject$x,isObject$4=isObject$C,requireObjectCoercible$2=requireObjectCoercible$f,speciesConstructor=speciesConstructor$3,advanceStringIndex=advanceStringIndex$3,toLength$3=toLength$c,toString$2=toString$n,getMethod=getMethod$7,regExpExec=regexpExecAbstract,fails$d=fails$18,UNSUPPORTED_Y=regexpStickyHelpers.UNSUPPORTED_Y,min$2=Math.min,push$3=uncurryThis$d([].push),stringSlice$3=uncurryThis$d("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$d(function(){var re=/(?:)/,originalExec=re.exec;re.exec=function(){return originalExec.apply(this,arguments)};var result="ab".split(re);return 2!==result.length||"a"!==result[0]||"b"!==result[1]}),BUGGY="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;fixRegExpWellKnownSymbolLogic("split",function(SPLIT,nativeSplit,maybeCallNative){var internalSplit="0".split(void 0,0).length?function(separator,limit){return void 0===separator&&0===limit?[]:call$6(nativeSplit,this,separator,limit)}:nativeSplit;return[function split(separator,limit){var O=requireObjectCoercible$2(this),splitter=isObject$4(separator)?getMethod(separator,SPLIT):void 0;return splitter?call$6(splitter,separator,O,limit):call$6(internalSplit,toString$2(O),separator,limit)},function(string,limit){var rx=anObject$2(this),S=toString$2(string);if(!BUGGY){var res=maybeCallNative(internalSplit,rx,S,limit,internalSplit!==nativeSplit);if(res.done)return res.value}var C=speciesConstructor(rx,RegExp),unicodeMatching=rx.unicode,flags=(rx.ignoreCase?"i":"")+(rx.multiline?"m":"")+(rx.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),splitter=new C(UNSUPPORTED_Y?"^(?:"+rx.source+")":rx,flags),lim=void 0===limit?4294967295:limit>>>0;if(0===lim)return[];if(0===S.length)return null===regExpExec(splitter,S)?[S]:[];for(var p=0,q=0,A=[];q<S.length;){splitter.lastIndex=UNSUPPORTED_Y?0:q;var e,z=regExpExec(splitter,UNSUPPORTED_Y?stringSlice$3(S,q):S);if(null===z||(e=min$2(toLength$3(splitter.lastIndex+(UNSUPPORTED_Y?q:0)),S.length))===p)q=advanceStringIndex(S,q,unicodeMatching);else{if(push$3(A,stringSlice$3(S,p,q)),A.length===lim)return A;for(var i=1;i<=z.length-1;i++)if(push$3(A,z[i]),A.length===lim)return A;q=p=e}}return push$3(A,stringSlice$3(S,p)),A}]},BUGGY||!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y);var $$p=_export,uncurryThis$c=functionUncurryThisClause,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,toLength$2=toLength$c,toString$1=toString$n,notARegExp=notARegexp,requireObjectCoercible$1=requireObjectCoercible$f,correctIsRegExpLogic=correctIsRegexpLogic,stringSlice$2=uncurryThis$c("".slice),min$1=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic("startsWith"),MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"startsWith");return descriptor&&!descriptor.writable}();$$p({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{startsWith:function startsWith(searchString){var that=toString$1(requireObjectCoercible$1(this));notARegExp(searchString);var index=toLength$2(min$1(arguments.length>1?arguments[1]:void 0,that.length)),search=toString$1(searchString);return stringSlice$2(that,index,index+search.length)===search}});var PROPER_FUNCTION_NAME=functionName.PROPER,fails$c=fails$18,whitespaces=whitespaces$4,stringTrimForced=function(METHOD_NAME){return fails$c(function(){return!!whitespaces[METHOD_NAME]()||"
"!=="
"[METHOD_NAME]()||PROPER_FUNCTION_NAME&&whitespaces[METHOD_NAME].name!==METHOD_NAME})},$trim=stringTrim.trim;_export({target:"String",proto:!0,forced:stringTrimForced("trim")},{trim:function trim(){return $trim(this)}});var $trimEnd=stringTrim.end,stringTrimEnd=stringTrimForced("trimEnd")?function trimEnd(){return $trimEnd(this)}:"".trimEnd;_export({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==stringTrimEnd},{trimRight:stringTrimEnd});_export({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==stringTrimEnd},{trimEnd:stringTrimEnd});var $trimStart=stringTrim.start,stringTrimStart=stringTrimForced("trimStart")?function trimStart(){return $trimStart(this)}:"".trimStart;_export({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==stringTrimStart},{trimLeft:stringTrimStart});_export({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==stringTrimStart},{trimStart:stringTrimStart});var requireObjectCoercible=requireObjectCoercible$f,toString=toString$n,quot=/"/g,replace$3=functionUncurryThis("".replace),createHtml=function(string,tag,attribute,value){var S=toString(requireObjectCoercible(string)),p1="<"+tag;return""!==attribute&&(p1+=" "+attribute+'="'+replace$3(toString(value),quot,""")+'"'),p1+">"+S+"</"+tag+">"},fails$b=fails$18,stringHtmlForced=function(METHOD_NAME){return fails$b(function(){var test=""[METHOD_NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3})},createHTML$c=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(name){return createHTML$c(this,"a","name",name)}});var createHTML$b=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("big")},{big:function big(){return createHTML$b(this,"big","","")}});var createHTML$a=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("blink")},{blink:function blink(){return createHTML$a(this,"blink","","")}});var createHTML$9=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHTML$9(this,"b","","")}});var createHTML$8=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("fixed")},{fixed:function fixed(){return createHTML$8(this,"tt","","")}});var createHTML$7=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("fontcolor")},{fontcolor:function fontcolor(color){return createHTML$7(this,"font","color",color)}});var createHTML$6=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("fontsize")},{fontsize:function fontsize(size){return createHTML$6(this,"font","size",size)}});var createHTML$5=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("italics")},{italics:function italics(){return createHTML$5(this,"i","","")}});var createHTML$4=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(url){return createHTML$4(this,"a","href",url)}});var createHTML$3=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("small")},{small:function small(){return createHTML$3(this,"small","","")}});var createHTML$2=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("strike")},{strike:function strike(){return createHTML$2(this,"strike","","")}});var createHTML$1=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHTML$1(this,"sub","","")}});var createHTML=createHtml;_export({target:"String",proto:!0,forced:stringHtmlForced("sup")},{sup:function sup(){return createHTML(this,"sup","","")}});var typedArrayConstructor={exports:{}},globalThis$g=globalThis_1,fails$a=fails$18,checkCorrectnessOfIteration=checkCorrectnessOfIteration$4,NATIVE_ARRAY_BUFFER_VIEWS$1=arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$2=globalThis$g.ArrayBuffer,Int8Array$3=globalThis$g.Int8Array,typedArrayConstructorsRequireWrappers=!NATIVE_ARRAY_BUFFER_VIEWS$1||!fails$a(function(){Int8Array$3(1)})||!fails$a(function(){new Int8Array$3(-1)})||!checkCorrectnessOfIteration(function(iterable){new Int8Array$3,new Int8Array$3(null),new Int8Array$3(1.5),new Int8Array$3(iterable)},!0)||fails$a(function(){return 1!==new Int8Array$3(new ArrayBuffer$2(2),1,void 0).length}),toIntegerOrInfinity$1=toIntegerOrInfinity$c,$RangeError$2=RangeError,toPositiveInteger=function(it){var result=toIntegerOrInfinity$1(it);if(result<0)throw new $RangeError$2("The argument can't be less than 0");return result},$RangeError$1=RangeError,toOffset$2=function(it,BYTES){var offset=toPositiveInteger(it);if(offset%BYTES)throw new $RangeError$1("Wrong offset");return offset},round=Math.round,classof$3=classof$i,toPrimitive=toPrimitive$3,$TypeError$1=TypeError,toBigInt$2=function(argument){var prim=toPrimitive(argument,"number");if("number"==typeof prim)throw new $TypeError$1("Can't convert number to bigint");return BigInt(prim)},bind$2=functionBindContext,call$5=functionCall,aConstructor=aConstructor$3,toObject$1=toObject$n,lengthOfArrayLike$4=lengthOfArrayLike$j,getIterator$1=getIterator$4,getIteratorMethod$1=getIteratorMethod$5,isArrayIteratorMethod=isArrayIteratorMethod$3,isBigIntArray=function(it){var klass=classof$3(it);return"BigInt64Array"===klass||"BigUint64Array"===klass},aTypedArrayConstructor$1=arrayBufferViewCore.aTypedArrayConstructor,toBigInt$1=toBigInt$2,typedArrayFrom$2=function from(source){var i,length,result,thisIsBigIntArray,value,step,iterator,next,C=aConstructor(this),O=toObject$1(source),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn,iteratorMethod=getIteratorMethod$1(O);if(iteratorMethod&&!isArrayIteratorMethod(iteratorMethod))for(next=(iterator=getIterator$1(O,iteratorMethod)).next,O=[];!(step=call$5(next,iterator)).done;)O.push(step.value);for(mapping&&argumentsLength>2&&(mapfn=bind$2(mapfn,arguments[2])),length=lengthOfArrayLike$4(O),result=new(aTypedArrayConstructor$1(C))(length),thisIsBigIntArray=isBigIntArray(result),i=0;length>i;i++)value=mapping?mapfn(O[i],i):O[i],result[i]=thisIsBigIntArray?toBigInt$1(value):+value;return result},lengthOfArrayLike$3=lengthOfArrayLike$j,arrayFromConstructorAndList$2=function(Constructor,list,$length){for(var index=0,length=arguments.length>2?$length:lengthOfArrayLike$3(list),result=new Constructor(length);length>index;)result[index]=list[index++];return result},$$6=_export,globalThis$f=globalThis_1,call$4=functionCall,DESCRIPTORS$4=descriptors,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2=typedArrayConstructorsRequireWrappers,ArrayBufferViewCore$n=arrayBufferViewCore,ArrayBufferModule=arrayBuffer,anInstance$3=anInstance$8,createPropertyDescriptor$1=createPropertyDescriptor$8,createNonEnumerableProperty$2=createNonEnumerableProperty$a,isIntegralNumber=isIntegralNumber$3,toLength$1=toLength$c,toIndex=toIndex$2,toOffset$1=toOffset$2,toUint8Clamped=function(it){var value=round(it);return value<0?0:value>255?255:255&value},toPropertyKey=toPropertyKey$7,hasOwn$3=hasOwnProperty_1,classof$2=classof$i,isObject$3=isObject$C,isSymbol=isSymbol$6,create$1=objectCreate,isPrototypeOf=objectIsPrototypeOf,setPrototypeOf=objectSetPrototypeOf$1,getOwnPropertyNames=objectGetOwnPropertyNames.f,typedArrayFrom$1=typedArrayFrom$2,forEach$1=arrayIteration.forEach,setSpecies=setSpecies$6,defineBuiltInAccessor$2=defineBuiltInAccessor$b,definePropertyModule=objectDefineProperty,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,arrayFromConstructorAndList$1=arrayFromConstructorAndList$2,inheritIfRequired=inheritIfRequired$5,getInternalState=internalState.get,setInternalState$3=internalState.set,enforceInternalState$1=internalState.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,RangeError$2=globalThis$f.RangeError,ArrayBuffer$1=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer$1.prototype,DataView$1=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore$n.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore$n.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore$n.TypedArray,TypedArrayPrototype$1=ArrayBufferViewCore$n.TypedArrayPrototype,isTypedArray=ArrayBufferViewCore$n.isTypedArray,addGetter=function(it,key){defineBuiltInAccessor$2(it,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},isArrayBuffer=function(it){var klass;return isPrototypeOf(ArrayBufferPrototype,it)||"ArrayBuffer"===(klass=classof$2(it))||"SharedArrayBuffer"===klass},isTypedArrayIndex=function(target,key){return isTypedArray(target)&&!isSymbol(key)&&key in target&&isIntegralNumber(+key)&&key>=0},wrappedGetOwnPropertyDescriptor=function getOwnPropertyDescriptor(target,key){return key=toPropertyKey(key),isTypedArrayIndex(target,key)?createPropertyDescriptor$1(2,target[key]):nativeGetOwnPropertyDescriptor(target,key)},wrappedDefineProperty=function defineProperty(target,key,descriptor){return key=toPropertyKey(key),!(isTypedArrayIndex(target,key)&&isObject$3(descriptor)&&hasOwn$3(descriptor,"value"))||hasOwn$3(descriptor,"get")||hasOwn$3(descriptor,"set")||descriptor.configurable||hasOwn$3(descriptor,"writable")&&!descriptor.writable||hasOwn$3(descriptor,"enumerable")&&!descriptor.enumerable?nativeDefineProperty(target,key,descriptor):(target[key]=descriptor.value,target)};DESCRIPTORS$4?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype$1,"buffer"),addGetter(TypedArrayPrototype$1,"byteOffset"),addGetter(TypedArrayPrototype$1,"byteLength"),addGetter(TypedArrayPrototype$1,"length")),$$6({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),typedArrayConstructor.exports=function(TYPE,wrapper,CLAMPED){var BYTES=TYPE.match(/\d+/)[0]/8,CONSTRUCTOR_NAME=TYPE+(CLAMPED?"Clamped":"")+"Array",GETTER="get"+TYPE,SETTER="set"+TYPE,NativeTypedArrayConstructor=globalThis$f[CONSTRUCTOR_NAME],TypedArrayConstructor=NativeTypedArrayConstructor,TypedArrayConstructorPrototype=TypedArrayConstructor&&TypedArrayConstructor.prototype,exported={},addElement=function(that,index){nativeDefineProperty(that,index,{get:function(){return function(that,index){var data=getInternalState(that);return data.view[GETTER](index*BYTES+data.byteOffset,!0)}(this,index)},set:function(value){return function(that,index,value){var data=getInternalState(that);data.view[SETTER](index*BYTES+data.byteOffset,CLAMPED?toUint8Clamped(value):value,!0)}(this,index,value)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2&&(TypedArrayConstructor=wrapper(function(dummy,data,typedArrayOffset,$length){return anInstance$3(dummy,TypedArrayConstructorPrototype),inheritIfRequired(isObject$3(data)?isArrayBuffer(data)?void 0!==$length?new NativeTypedArrayConstructor(data,toOffset$1(typedArrayOffset,BYTES),$length):void 0!==typedArrayOffset?new NativeTypedArrayConstructor(data,toOffset$1(typedArrayOffset,BYTES)):new NativeTypedArrayConstructor(data):isTypedArray(data)?arrayFromConstructorAndList$1(TypedArrayConstructor,data):call$4(typedArrayFrom$1,TypedArrayConstructor,data):new NativeTypedArrayConstructor(toIndex(data)),dummy,TypedArrayConstructor)}),setPrototypeOf&&setPrototypeOf(TypedArrayConstructor,TypedArray),forEach$1(getOwnPropertyNames(NativeTypedArrayConstructor),function(key){key in TypedArrayConstructor||createNonEnumerableProperty$2(TypedArrayConstructor,key,NativeTypedArrayConstructor[key])}),TypedArrayConstructor.prototype=TypedArrayConstructorPrototype):(TypedArrayConstructor=wrapper(function(that,data,offset,$length){anInstance$3(that,TypedArrayConstructorPrototype);var buffer,byteLength,length,index=0,byteOffset=0;if(isObject$3(data)){if(!isArrayBuffer(data))return isTypedArray(data)?arrayFromConstructorAndList$1(TypedArrayConstructor,data):call$4(typedArrayFrom$1,TypedArrayConstructor,data);buffer=data,byteOffset=toOffset$1(offset,BYTES);var $len=data.byteLength;if(void 0===$length){if($len%BYTES)throw new RangeError$2("Wrong length");if((byteLength=$len-byteOffset)<0)throw new RangeError$2("Wrong length")}else if((byteLength=toLength$1($length)*BYTES)+byteOffset>$len)throw new RangeError$2("Wrong length");length=byteLength/BYTES}else length=toIndex(data),buffer=new ArrayBuffer$1(byteLength=length*BYTES);for(setInternalState$3(that,{buffer:buffer,byteOffset:byteOffset,byteLength:byteLength,length:length,view:new DataView$1(buffer)});index<length;)addElement(that,index++)}),setPrototypeOf&&setPrototypeOf(TypedArrayConstructor,TypedArray),TypedArrayConstructorPrototype=TypedArrayConstructor.prototype=create$1(TypedArrayPrototype$1)),TypedArrayConstructorPrototype.constructor!==TypedArrayConstructor&&createNonEnumerableProperty$2(TypedArrayConstructorPrototype,"constructor",TypedArrayConstructor),enforceInternalState$1(TypedArrayConstructorPrototype).TypedArrayConstructor=TypedArrayConstructor,TYPED_ARRAY_TAG&&createNonEnumerableProperty$2(TypedArrayConstructorPrototype,TYPED_ARRAY_TAG,CONSTRUCTOR_NAME);var FORCED=TypedArrayConstructor!==NativeTypedArrayConstructor;exported[CONSTRUCTOR_NAME]=TypedArrayConstructor,$$6({global:!0,constructor:!0,forced:FORCED,sham:!NATIVE_ARRAY_BUFFER_VIEWS},exported),"BYTES_PER_ELEMENT"in TypedArrayConstructor||createNonEnumerableProperty$2(TypedArrayConstructor,"BYTES_PER_ELEMENT",BYTES),"BYTES_PER_ELEMENT"in TypedArrayConstructorPrototype||createNonEnumerableProperty$2(TypedArrayConstructorPrototype,"BYTES_PER_ELEMENT",BYTES),setSpecies(CONSTRUCTOR_NAME)}):typedArrayConstructor.exports=function(){};var typedArrayConstructorExports=typedArrayConstructor.exports;typedArrayConstructorExports("Float32",function(init){return function Float32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Float64",function(init){return function Float64Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Int8",function(init){return function Int8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Int16",function(init){return function Int16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Int32",function(init){return function Int32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Uint8",function(init){return function Uint8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Uint8",function(init){return function Uint8ClampedArray(data,byteOffset,length){return init(this,data,byteOffset,length)}},!0),typedArrayConstructorExports("Uint16",function(init){return function Uint16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}),typedArrayConstructorExports("Uint32",function(init){return function Uint32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}});var ArrayBufferViewCore$m=arrayBufferViewCore,u$ArrayCopyWithin=functionUncurryThis(arrayCopyWithin),aTypedArray$l=ArrayBufferViewCore$m.aTypedArray;(0,ArrayBufferViewCore$m.exportTypedArrayMethod)("copyWithin",function copyWithin(target,start){return u$ArrayCopyWithin(aTypedArray$l(this),target,start,arguments.length>2?arguments[2]:void 0)});var $every=arrayIteration.every,aTypedArray$k=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("every",function every(callbackfn){return $every(aTypedArray$k(this),callbackfn,arguments.length>1?arguments[1]:void 0)});var $fill=arrayFill$1,toBigInt=toBigInt$2,classof$1=classof$i,call$3=functionCall,fails$9=fails$18,aTypedArray$j=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$k=arrayBufferViewCore.exportTypedArrayMethod,slice=functionUncurryThis("".slice);exportTypedArrayMethod$k("fill",function fill(value){var length=arguments.length;aTypedArray$j(this);var actualValue="Big"===slice(classof$1(this),0,3)?toBigInt(value):+value;return call$3($fill,this,actualValue,length>1?arguments[1]:void 0,length>2?arguments[2]:void 0)},fails$9(function(){var count=0;return new Int8Array(2).fill({valueOf:function(){return count++}}),1!==count}));var arrayFromConstructorAndList=arrayFromConstructorAndList$2,getTypedArrayConstructor$3=arrayBufferViewCore.getTypedArrayConstructor,$filter=arrayIteration.filter,fromSameTypeAndList=function(instance,list){return arrayFromConstructorAndList(getTypedArrayConstructor$3(instance),list)},aTypedArray$i=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("filter",function filter(callbackfn){var list=$filter(aTypedArray$i(this),callbackfn,arguments.length>1?arguments[1]:void 0);return fromSameTypeAndList(this,list)});var $find=arrayIteration.find,aTypedArray$h=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("find",function find(predicate){return $find(aTypedArray$h(this),predicate,arguments.length>1?arguments[1]:void 0)});var $findIndex=arrayIteration.findIndex,aTypedArray$g=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("findIndex",function findIndex(predicate){return $findIndex(aTypedArray$g(this),predicate,arguments.length>1?arguments[1]:void 0)});var $forEach$1=arrayIteration.forEach,aTypedArray$f=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("forEach",function forEach(callbackfn){$forEach$1(aTypedArray$f(this),callbackfn,arguments.length>1?arguments[1]:void 0)}),(0,arrayBufferViewCore.exportTypedArrayStaticMethod)("from",typedArrayFrom$2,typedArrayConstructorsRequireWrappers);var $includes=arrayIncludes.includes,aTypedArray$e=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("includes",function includes(searchElement){return $includes(aTypedArray$e(this),searchElement,arguments.length>1?arguments[1]:void 0)});var $indexOf=arrayIncludes.indexOf,aTypedArray$d=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("indexOf",function indexOf(searchElement){return $indexOf(aTypedArray$d(this),searchElement,arguments.length>1?arguments[1]:void 0)});var globalThis$e=globalThis_1,fails$8=fails$18,uncurryThis$8=functionUncurryThis,ArrayBufferViewCore$d=arrayBufferViewCore,ArrayIterators=es_array_iterator,ITERATOR$3=wellKnownSymbol$w("iterator"),Uint8Array$2=globalThis$e.Uint8Array,arrayValues=uncurryThis$8(ArrayIterators.values),arrayKeys=uncurryThis$8(ArrayIterators.keys),arrayEntries=uncurryThis$8(ArrayIterators.entries),aTypedArray$c=ArrayBufferViewCore$d.aTypedArray,exportTypedArrayMethod$d=ArrayBufferViewCore$d.exportTypedArrayMethod,TypedArrayPrototype=Uint8Array$2&&Uint8Array$2.prototype,GENERIC=!fails$8(function(){TypedArrayPrototype[ITERATOR$3].call([1])}),ITERATOR_IS_VALUES=!!TypedArrayPrototype&&TypedArrayPrototype.values&&TypedArrayPrototype[ITERATOR$3]===TypedArrayPrototype.values&&"values"===TypedArrayPrototype.values.name,typedArrayValues=function values(){return arrayValues(aTypedArray$c(this))};exportTypedArrayMethod$d("entries",function entries(){return arrayEntries(aTypedArray$c(this))},GENERIC),exportTypedArrayMethod$d("keys",function keys(){return arrayKeys(aTypedArray$c(this))},GENERIC),exportTypedArrayMethod$d("values",typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"}),exportTypedArrayMethod$d(ITERATOR$3,typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"});var aTypedArray$b=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$c=arrayBufferViewCore.exportTypedArrayMethod,$join=functionUncurryThis([].join);exportTypedArrayMethod$c("join",function join(separator){return $join(aTypedArray$b(this),separator)});var apply$3=functionApply$1,toIndexedObject$1=toIndexedObject$f,toIntegerOrInfinity=toIntegerOrInfinity$c,lengthOfArrayLike$2=lengthOfArrayLike$j,arrayMethodIsStrict$1=arrayMethodIsStrict$4,min=Math.min,$lastIndexOf$1=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf$1&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD$1=arrayMethodIsStrict$1("lastIndexOf"),arrayLastIndexOf=NEGATIVE_ZERO||!STRICT_METHOD$1?function lastIndexOf(searchElement){if(NEGATIVE_ZERO)return apply$3($lastIndexOf$1,this,arguments)||0;var O=toIndexedObject$1(this),length=lengthOfArrayLike$2(O);if(0===length)return-1;var index=length-1;for(arguments.length>1&&(index=min(index,toIntegerOrInfinity(arguments[1]))),index<0&&(index=length+index);index>=0;index--)if(index in O&&O[index]===searchElement)return index||0;return-1}:$lastIndexOf$1,apply$2=functionApply$1,$lastIndexOf=arrayLastIndexOf,aTypedArray$a=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("lastIndexOf",function lastIndexOf(searchElement){var length=arguments.length;return apply$2($lastIndexOf,aTypedArray$a(this),length>1?[searchElement,arguments[1]]:[searchElement])});var $map=arrayIteration.map,aTypedArray$9=arrayBufferViewCore.aTypedArray,getTypedArrayConstructor$2=arrayBufferViewCore.getTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayMethod)("map",function map(mapfn){return $map(aTypedArray$9(this),mapfn,arguments.length>1?arguments[1]:void 0,function(O,length){return new(getTypedArrayConstructor$2(O))(length)})});var aTypedArrayConstructor=arrayBufferViewCore.aTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayStaticMethod)("of",function of(){for(var index=0,length=arguments.length,result=new(aTypedArrayConstructor(this))(length);length>index;)result[index]=arguments[index++];return result},typedArrayConstructorsRequireWrappers);var aCallable$2=aCallable$h,toObject=toObject$n,IndexedObject=indexedObject,lengthOfArrayLike$1=lengthOfArrayLike$j,$TypeError=TypeError,REDUCE_EMPTY="Reduce of empty array with no initial value",createMethod=function(IS_RIGHT){return function(that,callbackfn,argumentsLength,memo){var O=toObject(that),self=IndexedObject(O),length=lengthOfArrayLike$1(O);if(aCallable$2(callbackfn),0===length&&argumentsLength<2)throw new $TypeError(REDUCE_EMPTY);var index=IS_RIGHT?length-1:0,i=IS_RIGHT?-1:1;if(argumentsLength<2)for(;;){if(index in self){memo=self[index],index+=i;break}if(index+=i,IS_RIGHT?index<0:length<=index)throw new $TypeError(REDUCE_EMPTY)}for(;IS_RIGHT?index>=0:length>index;index+=i)index in self&&(memo=callbackfn(memo,self[index],index,O));return memo}},arrayReduce={left:createMethod(!1),right:createMethod(!0)},$reduce=arrayReduce.left,aTypedArray$8=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("reduce",function reduce(callbackfn){var length=arguments.length;return $reduce(aTypedArray$8(this),callbackfn,length,length>1?arguments[1]:void 0)});var $reduceRight=arrayReduce.right,aTypedArray$7=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("reduceRight",function reduceRight(callbackfn){var length=arguments.length;return $reduceRight(aTypedArray$7(this),callbackfn,length,length>1?arguments[1]:void 0)});var aTypedArray$6=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$7=arrayBufferViewCore.exportTypedArrayMethod,floor$2=Math.floor;exportTypedArrayMethod$7("reverse",function reverse(){for(var value,length=aTypedArray$6(this).length,middle=floor$2(length/2),index=0;index<middle;)value=this[index],this[index++]=this[--length],this[length]=value;return this});var globalThis$d=globalThis_1,call$2=functionCall,ArrayBufferViewCore$5=arrayBufferViewCore,lengthOfArrayLike=lengthOfArrayLike$j,toOffset=toOffset$2,toIndexedObject=toObject$n,fails$7=fails$18,RangeError$1=globalThis$d.RangeError,Int8Array$2=globalThis$d.Int8Array,Int8ArrayPrototype=Int8Array$2&&Int8Array$2.prototype,$set=Int8ArrayPrototype&&Int8ArrayPrototype.set,aTypedArray$5=ArrayBufferViewCore$5.aTypedArray,exportTypedArrayMethod$6=ArrayBufferViewCore$5.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS=!fails$7(function(){var array=new Uint8ClampedArray(2);return call$2($set,array,{length:1,0:3},1),3!==array[1]}),TO_OBJECT_BUG=WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS&&ArrayBufferViewCore$5.NATIVE_ARRAY_BUFFER_VIEWS&&fails$7(function(){var array=new Int8Array$2(2);return array.set(1),array.set("2",1),0!==array[0]||2!==array[1]});exportTypedArrayMethod$6("set",function set(arrayLike){aTypedArray$5(this);var offset=toOffset(arguments.length>1?arguments[1]:void 0,1),src=toIndexedObject(arrayLike);if(WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS)return call$2($set,this,src,offset);var length=this.length,len=lengthOfArrayLike(src),index=0;if(len+offset>length)throw new RangeError$1("Wrong length");for(;index<len;)this[offset+index]=src[index++]},!WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS||TO_OBJECT_BUG);var arraySlice$3=arraySlice$a,aTypedArray$4=arrayBufferViewCore.aTypedArray,getTypedArrayConstructor$1=arrayBufferViewCore.getTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayMethod)("slice",function slice(start,end){for(var list=arraySlice$3(aTypedArray$4(this),start,end),C=getTypedArrayConstructor$1(this),index=0,length=list.length,result=new C(length);length>index;)result[index]=list[index++];return result},fails$18(function(){new Int8Array(1).slice()}));var $some=arrayIteration.some,aTypedArray$3=arrayBufferViewCore.aTypedArray;(0,arrayBufferViewCore.exportTypedArrayMethod)("some",function some(callbackfn){return $some(aTypedArray$3(this),callbackfn,arguments.length>1?arguments[1]:void 0)});var uncurryThis$6=functionUncurryThisClause,fails$5=fails$18,aCallable$1=aCallable$h,internalSort=arraySort$1,FF=environmentFfVersion,IE_OR_EDGE=environmentIsIeOrEdge,V8=environmentV8Version,WEBKIT=environmentWebkitVersion,aTypedArray$2=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$3=arrayBufferViewCore.exportTypedArrayMethod,Uint16Array=globalThis_1.Uint16Array,nativeSort=Uint16Array&&uncurryThis$6(Uint16Array.prototype.sort),ACCEPT_INCORRECT_ARGUMENTS=!(!nativeSort||fails$5(function(){nativeSort(new Uint16Array(2),null)})&&fails$5(function(){nativeSort(new Uint16Array(2),{})})),STABLE_SORT=!!nativeSort&&!fails$5(function(){if(V8)return V8<74;if(FF)return FF<67;if(IE_OR_EDGE)return!0;if(WEBKIT)return WEBKIT<602;var index,mod,array=new Uint16Array(516),expected=Array(516);for(index=0;index<516;index++)mod=index%4,array[index]=515-index,expected[index]=index-2*mod+3;for(nativeSort(array,function(a,b){return(a/4|0)-(b/4|0)}),index=0;index<516;index++)if(array[index]!==expected[index])return!0});exportTypedArrayMethod$3("sort",function sort(comparefn){return void 0!==comparefn&&aCallable$1(comparefn),STABLE_SORT?nativeSort(this,comparefn):internalSort(aTypedArray$2(this),function(comparefn){return function(x,y){return void 0!==comparefn?+comparefn(x,y)||0:y!=y?-1:x!=x?1:0===x&&0===y?1/x>0&&1/y<0?1:-1:x>y}}(comparefn))},!STABLE_SORT||ACCEPT_INCORRECT_ARGUMENTS);var toLength=toLength$c,toAbsoluteIndex=toAbsoluteIndex$8,aTypedArray$1=arrayBufferViewCore.aTypedArray,getTypedArrayConstructor=arrayBufferViewCore.getTypedArrayConstructor;(0,arrayBufferViewCore.exportTypedArrayMethod)("subarray",function subarray(begin,end){var O=aTypedArray$1(this),length=O.length,beginIndex=toAbsoluteIndex(begin,length);return new(getTypedArrayConstructor(O))(O.buffer,O.byteOffset+beginIndex*O.BYTES_PER_ELEMENT,toLength((void 0===end?length:toAbsoluteIndex(end,length))-beginIndex))});var apply$1=functionApply$1,ArrayBufferViewCore=arrayBufferViewCore,fails$4=fails$18,arraySlice$2=arraySlice$a,Int8Array$1=globalThis_1.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod$1=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails$4(function(){$toLocaleString.call(new Int8Array$1(1))});exportTypedArrayMethod$1("toLocaleString",function toLocaleString(){return apply$1($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice$2(aTypedArray(this)):aTypedArray(this),arraySlice$2(arguments))},fails$4(function(){return[1,2].toLocaleString()!==new Int8Array$1([1,2]).toLocaleString()})||!fails$4(function(){Int8Array$1.prototype.toLocaleString.call([1,2])}));var exportTypedArrayMethod=arrayBufferViewCore.exportTypedArrayMethod,fails$3=fails$18,uncurryThis$5=functionUncurryThis,Uint8Array$1=globalThis_1.Uint8Array,Uint8ArrayPrototype=Uint8Array$1&&Uint8Array$1.prototype||{},arrayToString=[].toString,join$3=uncurryThis$5([].join);fails$3(function(){arrayToString.call({})})&&(arrayToString=function toString(){return join$3(this)});var IS_NOT_ARRAY_METHOD=Uint8ArrayPrototype.toString!==arrayToString;exportTypedArrayMethod("toString",arrayToString,IS_NOT_ARRAY_METHOD);var uncurryThis$4=functionUncurryThis,defineBuiltIns$2=defineBuiltIns$5,getWeakData=internalMetadataExports.getWeakData,anInstance$2=anInstance$8,anObject$1=anObject$x,isNullOrUndefined=isNullOrUndefined$7,isObject$2=isObject$C,iterate=iterate$6,hasOwn$2=hasOwnProperty_1,setInternalState$2=internalState.set,internalStateGetterFor=internalState.getterFor,find$1=arrayIteration.find,findIndex=arrayIteration.findIndex,splice$1=uncurryThis$4([].splice),id=0,uncaughtFrozenStore=function(state){return state.frozen||(state.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(store,key){return find$1(store.entries,function(it){return it[0]===key})};UncaughtFrozenStore.prototype={get:function(key){var entry=findUncaughtFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findUncaughtFrozen(this,key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);entry?entry[1]=value:this.entries.push([key,value])},delete:function(key){var index=findIndex(this.entries,function(it){return it[0]===key});return~index&&splice$1(this.entries,index,1),!!~index}};var InternalWeakMap,collectionWeak$2={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper(function(that,iterable){anInstance$2(that,Prototype),setInternalState$2(that,{type:CONSTRUCTOR_NAME,id:id++,frozen:null}),isNullOrUndefined(iterable)||iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP})}),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME),define=function(that,key,value){var state=getInternalState(that),data=getWeakData(anObject$1(key),!0);return!0===data?uncaughtFrozenStore(state).set(key,value):data[state.id]=value,that};return defineBuiltIns$2(Prototype,{delete:function(key){var state=getInternalState(this);if(!isObject$2(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).delete(key):data&&hasOwn$2(data,state.id)&&delete data[state.id]},has:function has(key){var state=getInternalState(this);if(!isObject$2(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).has(key):data&&hasOwn$2(data,state.id)}}),defineBuiltIns$2(Prototype,IS_MAP?{get:function get(key){var state=getInternalState(this);if(isObject$2(key)){var data=getWeakData(key);if(!0===data)return uncaughtFrozenStore(state).get(key);if(data)return data[state.id]}},set:function set(key,value){return define(this,key,value)}}:{add:function add(value){return define(this,value,!0)}}),Constructor}},FREEZING=freezing,globalThis$9=globalThis_1,uncurryThis$3=functionUncurryThis,defineBuiltIns$1=defineBuiltIns$5,InternalMetadataModule=internalMetadataExports,collection$1=collection$4,collectionWeak$1=collectionWeak$2,isObject$1=isObject$C,enforceInternalState=internalState.enforce,fails$2=fails$18,NATIVE_WEAK_MAP=weakMapBasicDetection,$Object=Object,isArray=Array.isArray,isExtensible=$Object.isExtensible,isFrozen=$Object.isFrozen,isSealed=$Object.isSealed,freeze=$Object.freeze,seal=$Object.seal,IS_IE11=!globalThis$9.ActiveXObject&&"ActiveXObject"in globalThis$9,wrapper=function(init){return function WeakMap(){return init(this,arguments.length?arguments[0]:void 0)}},$WeakMap=collection$1("WeakMap",wrapper,collectionWeak$1),WeakMapPrototype=$WeakMap.prototype,nativeSet=uncurryThis$3(WeakMapPrototype.set);if(NATIVE_WEAK_MAP)if(IS_IE11){InternalWeakMap=collectionWeak$1.getConstructor(wrapper,"WeakMap",!0),InternalMetadataModule.enable();var nativeDelete=uncurryThis$3(WeakMapPrototype.delete),nativeHas=uncurryThis$3(WeakMapPrototype.has),nativeGet=uncurryThis$3(WeakMapPrototype.get);defineBuiltIns$1(WeakMapPrototype,{delete:function(key){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);return state.frozen||(state.frozen=new InternalWeakMap),nativeDelete(this,key)||state.frozen.delete(key)}return nativeDelete(this,key)},has:function has(key){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);return state.frozen||(state.frozen=new InternalWeakMap),nativeHas(this,key)||state.frozen.has(key)}return nativeHas(this,key)},get:function get(key){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);return state.frozen||(state.frozen=new InternalWeakMap),nativeHas(this,key)?nativeGet(this,key):state.frozen.get(key)}return nativeGet(this,key)},set:function set(key,value){if(isObject$1(key)&&!isExtensible(key)){var state=enforceInternalState(this);state.frozen||(state.frozen=new InternalWeakMap),nativeHas(this,key)?nativeSet(this,key,value):state.frozen.set(key,value)}else nativeSet(this,key,value);return this}})}else FREEZING&&fails$2(function(){var frozenArray=freeze([]);return nativeSet(new $WeakMap,frozenArray,1),!isFrozen(frozenArray)})&&defineBuiltIns$1(WeakMapPrototype,{set:function set(key,value){var arrayIntegrityLevel;return isArray(key)&&(isFrozen(key)?arrayIntegrityLevel=freeze:isSealed(key)&&(arrayIntegrityLevel=seal)),nativeSet(this,key,value),arrayIntegrityLevel&&arrayIntegrityLevel(key),this}});collection$4("WeakSet",function(init){return function WeakSet(){return init(this,arguments.length?arguments[0]:void 0)}},collectionWeak$2);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},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$2=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$2===Object.prototype?void 0:DOMTokenListPrototype$2,$forEach=arrayIteration.forEach,arrayForEach=arrayMethodIsStrict$4("forEach")?[].forEach:function forEach(callbackfn){return $forEach(this,callbackfn,arguments.length>1?arguments[1]:void 0)},globalThis$8=globalThis_1,DOMIterables$1=domIterables,DOMTokenListPrototype$1=domTokenListPrototype,forEach=arrayForEach,createNonEnumerableProperty$1=createNonEnumerableProperty$a,handlePrototype$1=function(CollectionPrototype){if(CollectionPrototype&&CollectionPrototype.forEach!==forEach)try{createNonEnumerableProperty$1(CollectionPrototype,"forEach",forEach)}catch(error){CollectionPrototype.forEach=forEach}};for(var COLLECTION_NAME$1 in DOMIterables$1)DOMIterables$1[COLLECTION_NAME$1]&&handlePrototype$1(globalThis$8[COLLECTION_NAME$1]&&globalThis$8[COLLECTION_NAME$1].prototype);handlePrototype$1(DOMTokenListPrototype$1);var globalThis$7=globalThis_1,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$a,setToStringTag$2=setToStringTag$c,ITERATOR$2=wellKnownSymbol$w("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(CollectionPrototype,COLLECTION_NAME){if(CollectionPrototype){if(CollectionPrototype[ITERATOR$2]!==ArrayValues)try{createNonEnumerableProperty(CollectionPrototype,ITERATOR$2,ArrayValues)}catch(error){CollectionPrototype[ITERATOR$2]=ArrayValues}if(setToStringTag$2(CollectionPrototype,COLLECTION_NAME,!0),DOMIterables[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error){CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}};for(var COLLECTION_NAME in DOMIterables)handlePrototype(globalThis$7[COLLECTION_NAME]&&globalThis$7[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var clearImmediate=task$1.clear;_export({global:!0,bind:!0,enumerable:!0,forced:globalThis_1.clearImmediate!==clearImmediate},{clearImmediate:clearImmediate});var globalThis$5=globalThis_1,apply=functionApply$1,isCallable$1=isCallable$v,ENVIRONMENT=environment,USER_AGENT=environmentUserAgent,arraySlice$1=arraySlice$a,validateArgumentsLength$3=validateArgumentsLength$5,Function$1=globalThis$5.Function,WRAP=/MSIE .\./.test(USER_AGENT)||"BUN"===ENVIRONMENT&&function(){var version=globalThis$5.Bun.version.split(".");return version.length<3||"0"===version[0]&&(version[1]<3||"3"===version[1]&&"0"===version[2])}(),$$4=_export,globalThis$4=globalThis_1,setTask=task$1.set,schedulersFix=function(scheduler,hasTimeArg){var firstParamIndex=hasTimeArg?2:1;return WRAP?function(handler,timeout){var boundArgs=validateArgumentsLength$3(arguments.length,1)>firstParamIndex,fn=isCallable$1(handler)?handler:Function$1(handler),params=boundArgs?arraySlice$1(arguments,firstParamIndex):[],callback=boundArgs?function(){apply(fn,this,params)}:fn;return hasTimeArg?scheduler(callback,timeout):scheduler(callback)}:scheduler},setImmediate=globalThis$4.setImmediate?schedulersFix(setTask,!1):setTask;$$4({global:!0,bind:!0,enumerable:!0,forced:globalThis$4.setImmediate!==setImmediate},{setImmediate:setImmediate});var globalThis$3=globalThis_1,microtask=microtask_1,aCallable=aCallable$h,validateArgumentsLength$2=validateArgumentsLength$5,DESCRIPTORS$3=descriptors;_export({global:!0,enumerable:!0,dontCallGetSet:!0,forced:fails$18(function(){return DESCRIPTORS$3&&1!==Object.getOwnPropertyDescriptor(globalThis$3,"queueMicrotask").value.length})},{queueMicrotask:function queueMicrotask(fn){validateArgumentsLength$2(arguments.length,1),microtask(aCallable(fn))}});var fails=fails$18,DESCRIPTORS$2=descriptors,ITERATOR$1=wellKnownSymbol$w("iterator"),urlConstructorDetection=!fails(function(){var url=new URL("b?a=1&b=2&c=3","https://a"),params=url.searchParams,params2=new URLSearchParams("a=1&a=2&b=3"),result="";return url.pathname="c%20d",params.forEach(function(value,key){params.delete("b"),result+=key+value}),params2.delete("a",2),params2.delete("b",void 0),!params.size&&!DESCRIPTORS$2||!params.sort||"https://a/c%20d?a=1&c=3"!==url.href||"3"!==params.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!params[ITERATOR$1]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==result||"x"!==new URL("https://x",void 0).host}),uncurryThis$2=functionUncurryThis,regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",$RangeError=RangeError,exec$2=uncurryThis$2(regexSeparators.exec),floor$1=Math.floor,fromCharCode$1=String.fromCharCode,charCodeAt=uncurryThis$2("".charCodeAt),join$2=uncurryThis$2([].join),push$2=uncurryThis$2([].push),replace$2=uncurryThis$2("".replace),split$2=uncurryThis$2("".split),toLowerCase$1=uncurryThis$2("".toLowerCase),digitToBasic=function(digit){return digit+22+75*(digit<26)},adapt=function(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor$1(delta/700):delta>>1,delta+=floor$1(delta/numPoints);delta>455;)delta=floor$1(delta/35),k+=36;return floor$1(k+36*delta/(delta+38))},encode=function(input){var output=[];input=function(string){for(var output=[],counter=0,length=string.length;counter<length;){var value=charCodeAt(string,counter++);if(value>=55296&&value<=56319&&counter<length){var extra=charCodeAt(string,counter++);56320==(64512&extra)?push$2(output,((1023&value)<<10)+(1023&extra)+65536):(push$2(output,value),counter--)}else push$2(output,value)}return output}(input);var i,currentValue,inputLength=input.length,n=128,delta=0,bias=72;for(i=0;i<input.length;i++)(currentValue=input[i])<128&&push$2(output,fromCharCode$1(currentValue));var basicLength=output.length,handledCPCount=basicLength;for(basicLength&&push$2(output,"-");handledCPCount<inputLength;){var m=2147483647;for(i=0;i<input.length;i++)(currentValue=input[i])>=n&¤tValue<m&&(m=currentValue);var handledCPCountPlusOne=handledCPCount+1;if(m-n>floor$1((2147483647-delta)/handledCPCountPlusOne))throw new $RangeError(OVERFLOW_ERROR);for(delta+=(m-n)*handledCPCountPlusOne,n=m,i=0;i<input.length;i++){if((currentValue=input[i])<n&&++delta>2147483647)throw new $RangeError(OVERFLOW_ERROR);if(currentValue===n){for(var q=delta,k=36;;){var t=k<=bias?1:k>=bias+26?26:k-bias;if(q<t)break;var qMinusT=q-t,baseMinusT=36-t;push$2(output,fromCharCode$1(digitToBasic(t+qMinusT%baseMinusT))),q=floor$1(qMinusT/baseMinusT),k+=36}push$2(output,fromCharCode$1(digitToBasic(q))),bias=adapt(delta,handledCPCountPlusOne,handledCPCount===basicLength),delta=0,handledCPCount++}}delta++,n++}return join$2(output,"")},$$2=_export,globalThis$2=globalThis_1,safeGetBuiltIn=safeGetBuiltIn$2,getBuiltIn=getBuiltIn$f,call$1=functionCall,uncurryThis$1=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL$1=urlConstructorDetection,defineBuiltIn$1=defineBuiltIn$i,defineBuiltInAccessor$1=defineBuiltInAccessor$b,defineBuiltIns=defineBuiltIns$5,setToStringTag$1=setToStringTag$c,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule$1=internalState,anInstance$1=anInstance$8,isCallable=isCallable$v,hasOwn$1=hasOwnProperty_1,bind$1=functionBindContext,classof=classof$i,anObject=anObject$x,isObject=isObject$C,$toString$1=toString$n,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$8,getIterator=getIterator$4,getIteratorMethod=getIteratorMethod$5,createIterResultObject=createIterResultObject$4,validateArgumentsLength$1=validateArgumentsLength$5,arraySort=arraySort$1,ITERATOR=wellKnownSymbol$w("iterator"),setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor("URLSearchParams"),getInternalIteratorState=InternalStateModule$1.getterFor("URLSearchParamsIterator"),nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,TypeError$2=globalThis$2.TypeError,encodeURIComponent$1=globalThis$2.encodeURIComponent,fromCharCode=String.fromCharCode,fromCodePoint=getBuiltIn("String","fromCodePoint"),$parseInt=parseInt,charAt$1=uncurryThis$1("".charAt),join$1=uncurryThis$1([].join),push$1=uncurryThis$1([].push),replace$1=uncurryThis$1("".replace),shift$1=uncurryThis$1([].shift),splice=uncurryThis$1([].splice),split$1=uncurryThis$1("".split),stringSlice$1=uncurryThis$1("".slice),exec$1=uncurryThis$1(/./.exec),plus=/\+/g,VALID_HEX=/^[0-9a-f]+$/i,parseHexOctet=function(string,start){var substr=stringSlice$1(string,start,start+2);return exec$1(VALID_HEX,substr)?$parseInt(substr,16):NaN},getLeadingOnes=function(octet){for(var count=0,mask=128;mask>0&&0!==(octet&mask);mask>>=1)count++;return count},utf8Decode=function(octets){var codePoint=null;switch(octets.length){case 1:codePoint=octets[0];break;case 2:codePoint=(31&octets[0])<<6|63&octets[1];break;case 3:codePoint=(15&octets[0])<<12|(63&octets[1])<<6|63&octets[2];break;case 4:codePoint=(7&octets[0])<<18|(63&octets[1])<<12|(63&octets[2])<<6|63&octets[3]}return codePoint>1114111?null:codePoint},decode=function(input){for(var length=(input=replace$1(input,plus," ")).length,result="",i=0;i<length;){var decodedChar=charAt$1(input,i);if("%"===decodedChar){if("%"===charAt$1(input,i+1)||i+3>length){result+="%",i++;continue}var octet=parseHexOctet(input,i+1);if(octet!=octet){result+=decodedChar,i++;continue}i+=2;var byteSequenceLength=getLeadingOnes(octet);if(0===byteSequenceLength)decodedChar=fromCharCode(octet);else{if(1===byteSequenceLength||byteSequenceLength>4){result+="�",i++;continue}for(var octets=[octet],sequenceIndex=1;sequenceIndex<byteSequenceLength&&!(++i+3>length||"%"!==charAt$1(input,i));){var nextByte=parseHexOctet(input,i+1);if(nextByte!=nextByte){i+=3;break}if(nextByte>191||nextByte<128)break;push$1(octets,nextByte),i+=2,sequenceIndex++}if(octets.length!==byteSequenceLength){result+="�";continue}var codePoint=utf8Decode(octets);null===codePoint?result+="�":decodedChar=fromCodePoint(codePoint)}}result+=decodedChar,i++}return result},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(match){return replacements[match]},serialize=function(it){return replace$1(encodeURIComponent$1(it),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function Iterator(params,kind){setInternalState$1(this,{type:"URLSearchParamsIterator",target:getInternalParamsState(params).entries,index:0,kind:kind})},"URLSearchParams",function next(){var state=getInternalIteratorState(this),target=state.target,index=state.index++;if(!target||index>=target.length)return state.target=null,createIterResultObject(void 0,!0);var entry=target[index];switch(state.kind){case"keys":return createIterResultObject(entry.key,!1);case"values":return createIterResultObject(entry.value,!1)}return createIterResultObject([entry.key,entry.value],!1)},!0),URLSearchParamsState=function(init){this.entries=[],this.url=null,void 0!==init&&(isObject(init)?this.parseObject(init):this.parseQuery("string"==typeof init?"?"===charAt$1(init,0)?stringSlice$1(init,1):init:$toString$1(init)))};URLSearchParamsState.prototype={type:"URLSearchParams",bindURL:function(url){this.url=url,this.update()},parseObject:function(object){var iterator,next,step,entryIterator,entryNext,first,second,entries=this.entries,iteratorMethod=getIteratorMethod(object);if(iteratorMethod)for(next=(iterator=getIterator(object,iteratorMethod)).next;!(step=call$1(next,iterator)).done;){if(entryNext=(entryIterator=getIterator(anObject(step.value))).next,(first=call$1(entryNext,entryIterator)).done||(second=call$1(entryNext,entryIterator)).done||!call$1(entryNext,entryIterator).done)throw new TypeError$2("Expected sequence with length 2");push$1(entries,{key:$toString$1(first.value),value:$toString$1(second.value)})}else for(var key in object)hasOwn$1(object,key)&&push$1(entries,{key:key,value:$toString$1(object[key])})},parseQuery:function(query){if(query)for(var attribute,entry,entries=this.entries,attributes=split$1(query,"&"),index=0;index<attributes.length;)(attribute=attributes[index++]).length&&(entry=split$1(attribute,"="),push$1(entries,{key:decode(shift$1(entry)),value:decode(join$1(entry,"="))}))},serialize:function(){for(var entry,entries=this.entries,result=[],index=0;index<entries.length;)entry=entries[index++],push$1(result,serialize(entry.key)+"="+serialize(entry.value));return join$1(result,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function URLSearchParams(){anInstance$1(this,URLSearchParamsPrototype);var state=setInternalState$1(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$1||(this.size=state.entries.length)},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function append(name,value){var state=getInternalParamsState(this);validateArgumentsLength$1(arguments.length,2),push$1(state.entries,{key:$toString$1(name),value:$toString$1(value)}),DESCRIPTORS$1||this.length++,state.updateURL()},delete:function(name){for(var state=getInternalParamsState(this),length=validateArgumentsLength$1(arguments.length,1),entries=state.entries,key=$toString$1(name),$value=length<2?void 0:arguments[1],value=void 0===$value?$value:$toString$1($value),index=0;index<entries.length;){var entry=entries[index];if(entry.key!==key||void 0!==value&&entry.value!==value)index++;else if(splice(entries,index,1),void 0!==value)break}DESCRIPTORS$1||(this.size=entries.length),state.updateURL()},get:function get(name){var entries=getInternalParamsState(this).entries;validateArgumentsLength$1(arguments.length,1);for(var key=$toString$1(name),index=0;index<entries.length;index++)if(entries[index].key===key)return entries[index].value;return null},getAll:function getAll(name){var entries=getInternalParamsState(this).entries;validateArgumentsLength$1(arguments.length,1);for(var key=$toString$1(name),result=[],index=0;index<entries.length;index++)entries[index].key===key&&push$1(result,entries[index].value);return result},has:function has(name){for(var entries=getInternalParamsState(this).entries,length=validateArgumentsLength$1(arguments.length,1),key=$toString$1(name),$value=length<2?void 0:arguments[1],value=void 0===$value?$value:$toString$1($value),index=0;index<entries.length;){var entry=entries[index++];if(entry.key===key&&(void 0===value||entry.value===value))return!0}return!1},set:function set(name,value){var state=getInternalParamsState(this);validateArgumentsLength$1(arguments.length,1);for(var entry,entries=state.entries,found=!1,key=$toString$1(name),val=$toString$1(value),index=0;index<entries.length;index++)(entry=entries[index]).key===key&&(found?splice(entries,index--,1):(found=!0,entry.value=val));found||push$1(entries,{key:key,value:val}),DESCRIPTORS$1||(this.size=entries.length),state.updateURL()},sort:function sort(){var state=getInternalParamsState(this);arraySort(state.entries,function(a,b){return a.key>b.key?1:-1}),state.updateURL()},forEach:function forEach(callback){for(var entry,entries=getInternalParamsState(this).entries,boundFunction=bind$1(callback,arguments.length>1?arguments[1]:void 0),index=0;index<entries.length;)boundFunction((entry=entries[index++]).value,entry.key,this)},keys:function keys(){return new URLSearchParamsIterator(this,"keys")},values:function values(){return new URLSearchParamsIterator(this,"values")},entries:function entries(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$1(URLSearchParamsPrototype,ITERATOR,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$1(URLSearchParamsPrototype,"toString",function toString(){return getInternalParamsState(this).serialize()},{enumerable:!0}),DESCRIPTORS$1&&defineBuiltInAccessor$1(URLSearchParamsPrototype,"size",{get:function size(){return getInternalParamsState(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,"URLSearchParams"),$$2({global:!0,constructor:!0,forced:!USE_NATIVE_URL$1},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL$1&&isCallable(Headers)){var headersHas=uncurryThis$1(HeadersPrototype.has),headersSet=uncurryThis$1(HeadersPrototype.set),wrapRequestOptions=function(init){if(isObject(init)){var headers,body=init.body;if("URLSearchParams"===classof(body))return headers=init.headers?new Headers(init.headers):new Headers,headersHas(headers,"content-type")||headersSet(headers,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create(init,{body:createPropertyDescriptor(0,$toString$1(body)),headers:createPropertyDescriptor(0,headers)})}return init};if(isCallable(nativeFetch)&&$$2({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function fetch(input){return nativeFetch(input,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function Request(input){return anInstance$1(this,RequestPrototype),new NativeRequest(input,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$2({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var EOF,$$1=_export,DESCRIPTORS=descriptors,USE_NATIVE_URL=urlConstructorDetection,globalThis$1=globalThis_1,bind=functionBindContext,uncurryThis=functionUncurryThis,defineBuiltIn=defineBuiltIn$i,defineBuiltInAccessor=defineBuiltInAccessor$b,anInstance=anInstance$8,hasOwn=hasOwnProperty_1,assign=objectAssign,arrayFrom=arrayFrom$1,arraySlice=arraySlice$a,codeAt=stringMultibyte.codeAt,toASCII=function(input){var i,label,encoded=[],labels=split$2(replace$2(toLowerCase$1(input),regexSeparators,"."),".");for(i=0;i<labels.length;i++)label=labels[i],push$2(encoded,exec$2(regexNonASCII,label)?"xn--"+encode(label):label);return join$2(encoded,".")},$toString=toString$n,setToStringTag=setToStringTag$c,validateArgumentsLength=validateArgumentsLength$5,URLSearchParamsModule={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},InternalStateModule=internalState,setInternalState=InternalStateModule.set,getInternalURLState=InternalStateModule.getterFor("URL"),URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,NativeURL=globalThis$1.URL,TypeError$1=globalThis$1.TypeError,parseInt$1=globalThis$1.parseInt,floor=Math.floor,pow=Math.pow,charAt=uncurryThis("".charAt),exec=uncurryThis(/./.exec),join=uncurryThis([].join),numberToString=uncurryThis(1.1.toString),pop=uncurryThis([].pop),push=uncurryThis([].push),replace=uncurryThis("".replace),shift=uncurryThis([].shift),split=uncurryThis("".split),stringSlice=uncurryThis("".slice),toLowerCase=uncurryThis("".toLowerCase),unshift=uncurryThis([].unshift),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,serializeHost=function(host){var result,index,compress,ignore0;if("number"==typeof host){for(result=[],index=0;index<4;index++)unshift(result,host%256),host=floor(host/256);return join(result,".")}if("object"==typeof host){for(result="",compress=function(ipv6){for(var maxIndex=null,maxLength=1,currStart=null,currLength=0,index=0;index<8;index++)0!==ipv6[index]?(currLength>maxLength&&(maxIndex=currStart,maxLength=currLength),currStart=null,currLength=0):(null===currStart&&(currStart=index),++currLength);return currLength>maxLength?currStart:maxIndex}(host),index=0;index<8;index++)ignore0&&0===host[index]||(ignore0&&(ignore0=!1),compress===index?(result+=index?":":"::",ignore0=!0):(result+=numberToString(host[index],16),index<7&&(result+=":")));return"["+result+"]"}return host},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(chr,set){var code=codeAt(chr,0);return code>32&&code<127&&!hasOwn(set,chr)?chr:encodeURIComponent(chr)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(string,normalized){var second;return 2===string.length&&exec(ALPHA,charAt(string,0))&&(":"===(second=charAt(string,1))||!normalized&&"|"===second)},startsWithWindowsDriveLetter=function(string){var third;return string.length>1&&isWindowsDriveLetter(stringSlice(string,0,2))&&(2===string.length||"/"===(third=charAt(string,2))||"\\"===third||"?"===third||"#"===third)},isSingleDot=function(segment){return"."===segment||"%2e"===toLowerCase(segment)},isDoubleDot=function(segment){return".."===(segment=toLowerCase(segment))||"%2e."===segment||".%2e"===segment||"%2e%2e"===segment},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(url,isBase,base){var baseState,failure,searchParams,urlString=$toString(url);if(isBase){if(failure=this.parse(urlString))throw new TypeError$1(failure);this.searchParams=null}else{if(void 0!==base&&(baseState=new URLState(base,!0)),failure=this.parse(urlString,null,baseState))throw new TypeError$1(failure);(searchParams=getInternalSearchParamsState(new URLSearchParams$1)).bindURL(this),this.searchParams=searchParams}};URLState.prototype={type:"URL",parse:function(input,stateOverride,base){var codePoints,chr,bufferCodePoints,failure,url=this,state=stateOverride||SCHEME_START,pointer=0,buffer="",seenAt=!1,seenBracket=!1,seenPasswordToken=!1;for(input=$toString(input),stateOverride||(url.scheme="",url.username="",url.password="",url.host=null,url.port=null,url.path=[],url.query=null,url.fragment=null,url.cannotBeABaseURL=!1,input=replace(input,LEADING_C0_CONTROL_OR_SPACE,""),input=replace(input,TRAILING_C0_CONTROL_OR_SPACE,"$1")),input=replace(input,TAB_AND_NEW_LINE,""),codePoints=arrayFrom(input);pointer<=codePoints.length;){switch(chr=codePoints[pointer],state){case SCHEME_START:if(!chr||!exec(ALPHA,chr)){if(stateOverride)return"Invalid scheme";state=NO_SCHEME;continue}buffer+=toLowerCase(chr),state=SCHEME;break;case SCHEME:if(chr&&(exec(ALPHANUMERIC,chr)||"+"===chr||"-"===chr||"."===chr))buffer+=toLowerCase(chr);else{if(":"!==chr){if(stateOverride)return"Invalid scheme";buffer="",state=NO_SCHEME,pointer=0;continue}if(stateOverride&&(url.isSpecial()!==hasOwn(specialSchemes,buffer)||"file"===buffer&&(url.includesCredentials()||null!==url.port)||"file"===url.scheme&&!url.host))return;if(url.scheme=buffer,stateOverride)return void(url.isSpecial()&&specialSchemes[url.scheme]===url.port&&(url.port=null));buffer="","file"===url.scheme?state=FILE:url.isSpecial()&&base&&base.scheme===url.scheme?state=SPECIAL_RELATIVE_OR_AUTHORITY:url.isSpecial()?state=SPECIAL_AUTHORITY_SLASHES:"/"===codePoints[pointer+1]?(state=PATH_OR_AUTHORITY,pointer++):(url.cannotBeABaseURL=!0,push(url.path,""),state=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!==chr)return"Invalid scheme";if(base.cannotBeABaseURL&&"#"===chr){url.scheme=base.scheme,url.path=arraySlice(base.path),url.query=base.query,url.fragment="",url.cannotBeABaseURL=!0,state=FRAGMENT;break}state="file"===base.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!==chr||"/"!==codePoints[pointer+1]){state=RELATIVE;continue}state=SPECIAL_AUTHORITY_IGNORE_SLASHES,pointer++;break;case PATH_OR_AUTHORITY:if("/"===chr){state=AUTHORITY;break}state=PATH;continue;case RELATIVE:if(url.scheme=base.scheme,chr===EOF)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.query=base.query;else if("/"===chr||"\\"===chr&&url.isSpecial())state=RELATIVE_SLASH;else if("?"===chr)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.query="",state=QUERY;else{if("#"!==chr){url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.path.length--,state=PATH;continue}url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=arraySlice(base.path),url.query=base.query,url.fragment="",state=FRAGMENT}break;case RELATIVE_SLASH:if(!url.isSpecial()||"/"!==chr&&"\\"!==chr){if("/"!==chr){url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,state=PATH;continue}state=AUTHORITY}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(state=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!==chr||"/"!==charAt(buffer,pointer+1))continue;pointer++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!==chr&&"\\"!==chr){state=AUTHORITY;continue}break;case AUTHORITY:if("@"===chr){seenAt&&(buffer="%40"+buffer),seenAt=!0,bufferCodePoints=arrayFrom(buffer);for(var i=0;i<bufferCodePoints.length;i++){var codePoint=bufferCodePoints[i];if(":"!==codePoint||seenPasswordToken){var encodedCodePoints=percentEncode(codePoint,userinfoPercentEncodeSet);seenPasswordToken?url.password+=encodedCodePoints:url.username+=encodedCodePoints}else seenPasswordToken=!0}buffer=""}else if(chr===EOF||"/"===chr||"?"===chr||"#"===chr||"\\"===chr&&url.isSpecial()){if(seenAt&&""===buffer)return"Invalid authority";pointer-=arrayFrom(buffer).length+1,buffer="",state=HOST}else buffer+=chr;break;case HOST:case HOSTNAME:if(stateOverride&&"file"===url.scheme){state=FILE_HOST;continue}if(":"!==chr||seenBracket){if(chr===EOF||"/"===chr||"?"===chr||"#"===chr||"\\"===chr&&url.isSpecial()){if(url.isSpecial()&&""===buffer)return"Invalid host";if(stateOverride&&""===buffer&&(url.includesCredentials()||null!==url.port))return;if(failure=url.parseHost(buffer))return failure;if(buffer="",state=PATH_START,stateOverride)return;continue}"["===chr?seenBracket=!0:"]"===chr&&(seenBracket=!1),buffer+=chr}else{if(""===buffer)return"Invalid host";if(failure=url.parseHost(buffer))return failure;if(buffer="",state=PORT,stateOverride===HOSTNAME)return}break;case PORT:if(!exec(DIGIT,chr)){if(chr===EOF||"/"===chr||"?"===chr||"#"===chr||"\\"===chr&&url.isSpecial()||stateOverride){if(""!==buffer){var port=parseInt$1(buffer,10);if(port>65535)return"Invalid port";url.port=url.isSpecial()&&port===specialSchemes[url.scheme]?null:port,buffer=""}if(stateOverride)return;state=PATH_START;continue}return"Invalid port"}buffer+=chr;break;case FILE:if(url.scheme="file","/"===chr||"\\"===chr)state=FILE_SLASH;else{if(!base||"file"!==base.scheme){state=PATH;continue}switch(chr){case EOF:url.host=base.host,url.path=arraySlice(base.path),url.query=base.query;break;case"?":url.host=base.host,url.path=arraySlice(base.path),url.query="",state=QUERY;break;case"#":url.host=base.host,url.path=arraySlice(base.path),url.query=base.query,url.fragment="",state=FRAGMENT;break;default:startsWithWindowsDriveLetter(join(arraySlice(codePoints,pointer),""))||(url.host=base.host,url.path=arraySlice(base.path),url.shortenPath()),state=PATH;continue}}break;case FILE_SLASH:if("/"===chr||"\\"===chr){state=FILE_HOST;break}base&&"file"===base.scheme&&!startsWithWindowsDriveLetter(join(arraySlice(codePoints,pointer),""))&&(isWindowsDriveLetter(base.path[0],!0)?push(url.path,base.path[0]):url.host=base.host),state=PATH;continue;case FILE_HOST:if(chr===EOF||"/"===chr||"\\"===chr||"?"===chr||"#"===chr){if(!stateOverride&&isWindowsDriveLetter(buffer))state=PATH;else if(""===buffer){if(url.host="",stateOverride)return;state=PATH_START}else{if(failure=url.parseHost(buffer))return failure;if("localhost"===url.host&&(url.host=""),stateOverride)return;buffer="",state=PATH_START}continue}buffer+=chr;break;case PATH_START:if(url.isSpecial()){if(state=PATH,"/"!==chr&&"\\"!==chr)continue}else if(stateOverride||"?"!==chr)if(stateOverride||"#"!==chr){if(chr!==EOF&&(state=PATH,"/"!==chr))continue}else url.fragment="",state=FRAGMENT;else url.query="",state=QUERY;break;case PATH:if(chr===EOF||"/"===chr||"\\"===chr&&url.isSpecial()||!stateOverride&&("?"===chr||"#"===chr)){if(isDoubleDot(buffer)?(url.shortenPath(),"/"===chr||"\\"===chr&&url.isSpecial()||push(url.path,"")):isSingleDot(buffer)?"/"===chr||"\\"===chr&&url.isSpecial()||push(url.path,""):("file"===url.scheme&&!url.path.length&&isWindowsDriveLetter(buffer)&&(url.host&&(url.host=""),buffer=charAt(buffer,0)+":"),push(url.path,buffer)),buffer="","file"===url.scheme&&(chr===EOF||"?"===chr||"#"===chr))for(;url.path.length>1&&""===url.path[0];)shift(url.path);"?"===chr?(url.query="",state=QUERY):"#"===chr&&(url.fragment="",state=FRAGMENT)}else buffer+=percentEncode(chr,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"===chr?(url.query="",state=QUERY):"#"===chr?(url.fragment="",state=FRAGMENT):chr!==EOF&&(url.path[0]+=percentEncode(chr,C0ControlPercentEncodeSet));break;case QUERY:stateOverride||"#"!==chr?chr!==EOF&&("'"===chr&&url.isSpecial()?url.query+="%27":url.query+="#"===chr?"%23":percentEncode(chr,C0ControlPercentEncodeSet)):(url.fragment="",state=FRAGMENT);break;case FRAGMENT:chr!==EOF&&(url.fragment+=percentEncode(chr,fragmentPercentEncodeSet))}pointer++}},parseHost:function(input){var result,codePoints,index;if("["===charAt(input,0)){if("]"!==charAt(input,input.length-1))return"Invalid host";if(result=function(input){var value,length,numbersSeen,ipv4Piece,number,swaps,swap,address=[0,0,0,0,0,0,0,0],pieceIndex=0,compress=null,pointer=0,chr=function(){return charAt(input,pointer)};if(":"===chr()){if(":"!==charAt(input,1))return;pointer+=2,compress=++pieceIndex}for(;chr();){if(8===pieceIndex)return;if(":"!==chr()){for(value=length=0;length<4&&exec(HEX,chr());)value=16*value+parseInt$1(chr(),16),pointer++,length++;if("."===chr()){if(0===length)return;if(pointer-=length,pieceIndex>6)return;for(numbersSeen=0;chr();){if(ipv4Piece=null,numbersSeen>0){if(!("."===chr()&&numbersSeen<4))return;pointer++}if(!exec(DIGIT,chr()))return;for(;exec(DIGIT,chr());){if(number=parseInt$1(chr(),10),null===ipv4Piece)ipv4Piece=number;else{if(0===ipv4Piece)return;ipv4Piece=10*ipv4Piece+number}if(ipv4Piece>255)return;pointer++}address[pieceIndex]=256*address[pieceIndex]+ipv4Piece,2!==++numbersSeen&&4!==numbersSeen||pieceIndex++}if(4!==numbersSeen)return;break}if(":"===chr()){if(pointer++,!chr())return}else if(chr())return;address[pieceIndex++]=value}else{if(null!==compress)return;pointer++,compress=++pieceIndex}}if(null!==compress)for(swaps=pieceIndex-compress,pieceIndex=7;0!==pieceIndex&&swaps>0;)swap=address[pieceIndex],address[pieceIndex--]=address[compress+swaps-1],address[compress+--swaps]=swap;else if(8!==pieceIndex)return;return address}(stringSlice(input,1,-1)),!result)return"Invalid host";this.host=result}else if(this.isSpecial()){if(input=toASCII(input),exec(FORBIDDEN_HOST_CODE_POINT,input))return"Invalid host";if(result=function(input){var partsLength,numbers,index,part,radix,number,ipv4,parts=split(input,".");if(parts.length&&""===parts[parts.length-1]&&parts.length--,(partsLength=parts.length)>4)return input;for(numbers=[],index=0;index<partsLength;index++){if(""===(part=parts[index]))return input;if(radix=10,part.length>1&&"0"===charAt(part,0)&&(radix=exec(HEX_START,part)?16:8,part=stringSlice(part,8===radix?1:2)),""===part)number=0;else{if(!exec(10===radix?DEC:8===radix?OCT:HEX,part))return input;number=parseInt$1(part,radix)}push(numbers,number)}for(index=0;index<partsLength;index++)if(number=numbers[index],index===partsLength-1){if(number>=pow(256,5-partsLength))return null}else if(number>255)return null;for(ipv4=pop(numbers),index=0;index<numbers.length;index++)ipv4+=numbers[index]*pow(256,3-index);return ipv4}(input),null===result)return"Invalid host";this.host=result}else{if(exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT,input))return"Invalid host";for(result="",codePoints=arrayFrom(input),index=0;index<codePoints.length;index++)result+=percentEncode(codePoints[index],C0ControlPercentEncodeSet);this.host=result}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return hasOwn(specialSchemes,this.scheme)},shortenPath:function(){var path=this.path,pathSize=path.length;!pathSize||"file"===this.scheme&&1===pathSize&&isWindowsDriveLetter(path[0],!0)||path.length--},serialize:function(){var url=this,scheme=url.scheme,username=url.username,password=url.password,host=url.host,port=url.port,path=url.path,query=url.query,fragment=url.fragment,output=scheme+":";return null!==host?(output+="//",url.includesCredentials()&&(output+=username+(password?":"+password:"")+"@"),output+=serializeHost(host),null!==port&&(output+=":"+port)):"file"===scheme&&(output+="//"),output+=url.cannotBeABaseURL?path[0]:path.length?"/"+join(path,"/"):"",null!==query&&(output+="?"+query),null!==fragment&&(output+="#"+fragment),output},setHref:function(href){var failure=this.parse(href);if(failure)throw new TypeError$1(failure);this.searchParams.update()},getOrigin:function(){var scheme=this.scheme,port=this.port;if("blob"===scheme)try{return new URLConstructor(scheme.path[0]).origin}catch(error){return"null"}return"file"!==scheme&&this.isSpecial()?scheme+"://"+serializeHost(this.host)+(null!==port?":"+port:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(protocol){this.parse($toString(protocol)+":",SCHEME_START)},getUsername:function(){return this.username},setUsername:function(username){var codePoints=arrayFrom($toString(username));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<codePoints.length;i++)this.username+=percentEncode(codePoints[i],userinfoPercentEncodeSet)}},getPassword:function(){return this.password},setPassword:function(password){var codePoints=arrayFrom($toString(password));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<codePoints.length;i++)this.password+=percentEncode(codePoints[i],userinfoPercentEncodeSet)}},getHost:function(){var host=this.host,port=this.port;return null===host?"":null===port?serializeHost(host):serializeHost(host)+":"+port},setHost:function(host){this.cannotBeABaseURL||this.parse(host,HOST)},getHostname:function(){var host=this.host;return null===host?"":serializeHost(host)},setHostname:function(hostname){this.cannotBeABaseURL||this.parse(hostname,HOSTNAME)},getPort:function(){var port=this.port;return null===port?"":$toString(port)},setPort:function(port){this.cannotHaveUsernamePasswordPort()||(""===(port=$toString(port))?this.port=null:this.parse(port,PORT))},getPathname:function(){var path=this.path;return this.cannotBeABaseURL?path[0]:path.length?"/"+join(path,"/"):""},setPathname:function(pathname){this.cannotBeABaseURL||(this.path=[],this.parse(pathname,PATH_START))},getSearch:function(){var query=this.query;return query?"?"+query:""},setSearch:function(search){""===(search=$toString(search))?this.query=null:("?"===charAt(search,0)&&(search=stringSlice(search,1)),this.query="",this.parse(search,QUERY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var fragment=this.fragment;return fragment?"#"+fragment:""},setHash:function(hash){""!==(hash=$toString(hash))?("#"===charAt(hash,0)&&(hash=stringSlice(hash,1)),this.fragment="",this.parse(hash,FRAGMENT)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor=function URL(url){var that=anInstance(this,URLPrototype),base=validateArgumentsLength(arguments.length,1)>1?arguments[1]:void 0,state=setInternalState(that,new URLState(url,!1,base));DESCRIPTORS||(that.href=state.serialize(),that.origin=state.getOrigin(),that.protocol=state.getProtocol(),that.username=state.getUsername(),that.password=state.getPassword(),that.host=state.getHost(),that.hostname=state.getHostname(),that.port=state.getPort(),that.pathname=state.getPathname(),that.search=state.getSearch(),that.searchParams=state.getSearchParams(),that.hash=state.getHash())},URLPrototype=URLConstructor.prototype,accessorDescriptor=function(getter,setter){return{get:function(){return getInternalURLState(this)[getter]()},set:setter&&function(value){return getInternalURLState(this)[setter](value)},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 toJSON(){return getInternalURLState(this).serialize()},{enumerable:!0}),defineBuiltIn(URLPrototype,"toString",function toString(){return getInternalURLState(this).serialize()},{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&defineBuiltIn(URLConstructor,"createObjectURL",bind(nativeCreateObjectURL,NativeURL)),nativeRevokeObjectURL&&defineBuiltIn(URLConstructor,"revokeObjectURL",bind(nativeRevokeObjectURL,NativeURL))}setToStringTag(URLConstructor,"URL"),$$1({global:!0,constructor:!0,forced:!USE_NATIVE_URL,sham:!DESCRIPTORS},{URL:URLConstructor});var call=functionCall;_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return call(URL.prototype.toString,this)}});var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};function __extends(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}var _a,ErrorCategory,NetworkErrorCode,OperationErrorCode,ResourceErrorCode,SystemErrorCode,ConfigErrorCode,__assign=function(){return __assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},__assign.apply(this,arguments)};function __awaiter(thisArg,_arguments,P,generator){return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}function __generator(thisArg,body){var f,y,t,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=verb(0),g.throw=verb(1),g.return=verb(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return function step(op){if(f)throw new TypeError("Generator is already executing.");for(;g&&(g=0,op[0]&&(_=0)),_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=_.trys,(t=t.length>0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}([n,v])}}}function __values(o){var s="function"==typeof Symbol&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}"function"==typeof SuppressedError&&SuppressedError,exports.ErrorCategory=void 0,(ErrorCategory=exports.ErrorCategory||(exports.ErrorCategory={})).NETWORK="NETWORK",ErrorCategory.OPERATION="OPERATION",ErrorCategory.RESOURCE="RESOURCE",ErrorCategory.SYSTEM="SYSTEM",ErrorCategory.CONFIG="CONFIG",exports.NetworkErrorCode=void 0,(NetworkErrorCode=exports.NetworkErrorCode||(exports.NetworkErrorCode={}))[NetworkErrorCode.CONNECTION_FAILED=1001]="CONNECTION_FAILED",NetworkErrorCode[NetworkErrorCode.REQUEST_TIMEOUT=1002]="REQUEST_TIMEOUT",NetworkErrorCode[NetworkErrorCode.SERVER_ERROR=1003]="SERVER_ERROR",NetworkErrorCode[NetworkErrorCode.UNAUTHORIZED=1004]="UNAUTHORIZED",exports.OperationErrorCode=void 0,(OperationErrorCode=exports.OperationErrorCode||(exports.OperationErrorCode={}))[OperationErrorCode.UNITY_NOT_INITIALIZED=2001]="UNITY_NOT_INITIALIZED",OperationErrorCode[OperationErrorCode.AVATAR_NOT_LOADED=2002]="AVATAR_NOT_LOADED",OperationErrorCode[OperationErrorCode.OPERATION_FAILED=2003]="OPERATION_FAILED",OperationErrorCode[OperationErrorCode.OPERATION_TIMEOUT=2004]="OPERATION_TIMEOUT",OperationErrorCode[OperationErrorCode.OPERATION_CANCELLED=2005]="OPERATION_CANCELLED",OperationErrorCode[OperationErrorCode.BROADCAST_EQUITY_NOT_EXIST=2006]="BROADCAST_EQUITY_NOT_EXIST",OperationErrorCode[OperationErrorCode.BROADCAST_EQUITY_NOT_ENOUGH=2007]="BROADCAST_EQUITY_NOT_ENOUGH",OperationErrorCode[OperationErrorCode.BROADCAST_EQUITY_FREEZE_FAILED=2008]="BROADCAST_EQUITY_FREEZE_FAILED",exports.ResourceErrorCode=void 0,(ResourceErrorCode=exports.ResourceErrorCode||(exports.ResourceErrorCode={}))[ResourceErrorCode.LOAD_FAILED=3001]="LOAD_FAILED",ResourceErrorCode[ResourceErrorCode.FILE_CORRUPTED=3002]="FILE_CORRUPTED",ResourceErrorCode[ResourceErrorCode.NOT_FOUND=3003]="NOT_FOUND",ResourceErrorCode[ResourceErrorCode.UNSUPPORTED_FORMAT=3004]="UNSUPPORTED_FORMAT",ResourceErrorCode[ResourceErrorCode.VERSION_INCOMPATIBLE=3005]="VERSION_INCOMPATIBLE",exports.SystemErrorCode=void 0,(SystemErrorCode=exports.SystemErrorCode||(exports.SystemErrorCode={}))[SystemErrorCode.OUT_OF_MEMORY=4001]="OUT_OF_MEMORY",SystemErrorCode[SystemErrorCode.GPU_NOT_SUPPORTED=4002]="GPU_NOT_SUPPORTED",SystemErrorCode[SystemErrorCode.WEBGL_NOT_SUPPORTED=4003]="WEBGL_NOT_SUPPORTED",SystemErrorCode[SystemErrorCode.BROWSER_NOT_COMPATIBLE=4004]="BROWSER_NOT_COMPATIBLE",exports.ConfigErrorCode=void 0,(ConfigErrorCode=exports.ConfigErrorCode||(exports.ConfigErrorCode={}))[ConfigErrorCode.INVALID_CONFIG=5001]="INVALID_CONFIG",ConfigErrorCode[ConfigErrorCode.MISSING_REQUIRED_PARAM=5002]="MISSING_REQUIRED_PARAM",ConfigErrorCode[ConfigErrorCode.PARAM_OUT_OF_RANGE=5003]="PARAM_OUT_OF_RANGE",ConfigErrorCode[ConfigErrorCode.INVALID_JSON_FORMAT=5004]="INVALID_JSON_FORMAT";var ERROR_CODE_MAP=((_a={})[exports.NetworkErrorCode.CONNECTION_FAILED]={category:exports.ErrorCategory.NETWORK,message:"网络连接失败"},_a[exports.NetworkErrorCode.REQUEST_TIMEOUT]={category:exports.ErrorCategory.NETWORK,message:"请求超时"},_a[exports.NetworkErrorCode.SERVER_ERROR]={category:exports.ErrorCategory.NETWORK,message:"服务器错误"},_a[exports.NetworkErrorCode.UNAUTHORIZED]={category:exports.ErrorCategory.NETWORK,message:"未授权访问"},_a[exports.OperationErrorCode.UNITY_NOT_INITIALIZED]={category:exports.ErrorCategory.OPERATION,message:"Unity实例未初始化"},_a[exports.OperationErrorCode.AVATAR_NOT_LOADED]={category:exports.ErrorCategory.OPERATION,message:"数字人未加载"},_a[exports.OperationErrorCode.OPERATION_FAILED]={category:exports.ErrorCategory.OPERATION,message:"操作执行失败"},_a[exports.OperationErrorCode.OPERATION_TIMEOUT]={category:exports.ErrorCategory.OPERATION,message:"操作超时"},_a[exports.OperationErrorCode.OPERATION_CANCELLED]={category:exports.ErrorCategory.OPERATION,message:"操作被取消"},_a[exports.OperationErrorCode.BROADCAST_EQUITY_NOT_EXIST]={category:exports.ErrorCategory.OPERATION,message:"用户权益额度不存在"},_a[exports.OperationErrorCode.BROADCAST_EQUITY_NOT_ENOUGH]={category:exports.ErrorCategory.OPERATION,message:"用户权益额度不足"},_a[exports.OperationErrorCode.BROADCAST_EQUITY_FREEZE_FAILED]={category:exports.ErrorCategory.OPERATION,message:"用户权益额度冻结失败"},_a[exports.ResourceErrorCode.LOAD_FAILED]={category:exports.ErrorCategory.RESOURCE,message:"资源加载失败"},_a[exports.ResourceErrorCode.FILE_CORRUPTED]={category:exports.ErrorCategory.RESOURCE,message:"资源文件损坏"},_a[exports.ResourceErrorCode.NOT_FOUND]={category:exports.ErrorCategory.RESOURCE,message:"资源不存在"},_a[exports.ResourceErrorCode.UNSUPPORTED_FORMAT]={category:exports.ErrorCategory.RESOURCE,message:"资源格式不支持"},_a[exports.ResourceErrorCode.VERSION_INCOMPATIBLE]={category:exports.ErrorCategory.RESOURCE,message:"资源版本不兼容"},_a[exports.SystemErrorCode.OUT_OF_MEMORY]={category:exports.ErrorCategory.SYSTEM,message:"内存不足"},_a[exports.SystemErrorCode.GPU_NOT_SUPPORTED]={category:exports.ErrorCategory.SYSTEM,message:"GPU不支持"},_a[exports.SystemErrorCode.WEBGL_NOT_SUPPORTED]={category:exports.ErrorCategory.SYSTEM,message:"WebGL不支持"},_a[exports.SystemErrorCode.BROWSER_NOT_COMPATIBLE]={category:exports.ErrorCategory.SYSTEM,message:"浏览器不兼容"},_a[exports.ConfigErrorCode.INVALID_CONFIG]={category:exports.ErrorCategory.CONFIG,message:"配置参数无效"},_a[exports.ConfigErrorCode.MISSING_REQUIRED_PARAM]={category:exports.ErrorCategory.CONFIG,message:"必需参数缺失"},_a[exports.ConfigErrorCode.PARAM_OUT_OF_RANGE]={category:exports.ErrorCategory.CONFIG,message:"参数值超出范围"},_a[exports.ConfigErrorCode.INVALID_JSON_FORMAT]={category:exports.ErrorCategory.CONFIG,message:"JSON格式错误"},_a);function getErrorInfo(code){return ERROR_CODE_MAP[code]||{category:exports.ErrorCategory.SYSTEM,message:"未知错误"}}var LogLevel,SDKError=function(_super){function SDKError(code,message,originalError){var _this=this,errorInfo=getErrorInfo(code),finalMessage=message||errorInfo.message;return(_this=_super.call(this,finalMessage)||this).name="SDKError",_this.code=code,_this.category=errorInfo.category,_this.message=finalMessage,_this.timestamp=Date.now(),originalError&&originalError.stack?_this.stack=originalError.stack:Error.captureStackTrace&&Error.captureStackTrace(_this,SDKError),_this}return __extends(SDKError,_super),SDKError.prototype.toJSON=function(){return{name:this.name,code:this.code,category:this.category,message:this.message,timestamp:this.timestamp}},SDKError.createNetworkError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createOperationError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createResourceError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createSystemError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createConfigError=function(code,message,originalError){return new SDKError(code,message,originalError)},SDKError.createFromUnityError=function(unityCode,message){switch(unityCode){case 100:return new SDKError(exports.ResourceErrorCode.LOAD_FAILED,message);case 200:return new SDKError(exports.NetworkErrorCode.CONNECTION_FAILED,message);case 300:case 700:return new SDKError(exports.ConfigErrorCode.INVALID_CONFIG,message);case 400:return new SDKError(exports.OperationErrorCode.OPERATION_FAILED,message);case 500:return new SDKError(exports.SystemErrorCode.OUT_OF_MEMORY,message);case 600:return new SDKError(exports.OperationErrorCode.OPERATION_CANCELLED,message);default:return new SDKError(3001,message||"Unity错误 (错误码: ".concat(unityCode,")"))}},SDKError}(Error);!function(LogLevel){LogLevel.DEBUG="debug",LogLevel.INFO="info",LogLevel.WARN="warn",LogLevel.ERROR="error"}(LogLevel||(LogLevel={}));var UnityOperationStatus,SimpleLogger=function(){function SimpleLogger(enableDebug){void 0===enableDebug&&(enableDebug=!1),this.enableDebug=enableDebug}return SimpleLogger.prototype.pad=function(num,len){for(var s=String(num);s.length<len;)s="0".concat(s);return s},SimpleLogger.prototype.getTimestamp=function(){var now=new Date,hours=this.pad(now.getHours(),2),minutes=this.pad(now.getMinutes(),2),seconds=this.pad(now.getSeconds(),2),milliseconds=this.pad(now.getMilliseconds(),3).slice(0,2);return"[".concat(hours,":").concat(minutes,":").concat(seconds,".").concat(milliseconds,"]")},SimpleLogger.prototype.debug=function(message,data){this.enableDebug&&console.debug("[SDK DEBUG]".concat(this.getTimestamp()," ").concat(message),data)},SimpleLogger.prototype.info=function(message,data){console.info("[SDK INFO]".concat(this.getTimestamp()," ").concat(message),data)},SimpleLogger.prototype.warn=function(message,data){console.warn("[SDK WARN]".concat(this.getTimestamp()," ").concat(message),data)},SimpleLogger.prototype.error=function(message,error,data){console.error("[SDK ERROR]".concat(this.getTimestamp()," ").concat(message),error,error instanceof SDKError?error.code:null,data)},SimpleLogger}();exports.UnityOperationStatus=void 0,(UnityOperationStatus=exports.UnityOperationStatus||(exports.UnityOperationStatus={}))[UnityOperationStatus.SUCCESS=0]="SUCCESS",UnityOperationStatus[UnityOperationStatus.FAILURE=1]="FAILURE",UnityOperationStatus[UnityOperationStatus.TIMEOUT=2]="TIMEOUT",UnityOperationStatus[UnityOperationStatus.CANCELLED=3]="CANCELLED";var AvatarOperationType,AvatarCameraType,DEFAULT_CONFIG={targetObjectName:"AvatarSDK",timeout:3e4,enableDebugLog:!1,maxRetries:0},UnityBaseService=function(){function UnityBaseService(config){this.pendingCallbacks=new Map;var finalConfig=__assign(__assign({},DEFAULT_CONFIG),config);this.unityInstance=finalConfig.unityInstance,this.targetObjectName=finalConfig.targetObjectName,this.timeout=finalConfig.timeout||DEFAULT_CONFIG.timeout,this.maxRetries=finalConfig.maxRetries,this.instanceId=finalConfig.instanceId||"default",this.logger=new SimpleLogger(finalConfig.enableDebugLog),this.initializeGlobalCallback(),this.logger.debug("Unity service initialized",{config:finalConfig})}return Object.defineProperty(UnityBaseService.prototype,"uniqueCallbackName",{get:function get(){return"".concat(this.callbackFunctionName,"_").concat(this.instanceId)},enumerable:!1,configurable:!0}),UnityBaseService.prototype.handleCallback=function(operation,code,message,data){var dataObj=data?JSON.parse(data):void 0;this.logger.warn("[ Received Unity callback ]",{operation:operation,code:code,message:message,data:dataObj,originalData:data});var callback=this.pendingCallbacks.get(operation);if(callback){callback.timer&&clearTimeout(callback.timer);var response={success:code===exports.UnityOperationStatus.SUCCESS,message:message,errorCode:code,data:dataObj};try{if(code===exports.UnityOperationStatus.SUCCESS)callback.resolve(response),this.logger.debug("Operation '".concat(operation,"' completed successfully"));else{var error=SDKError.createFromUnityError(code,"Unity operation '".concat(operation,"' failed: ").concat(message));callback.reject(error),this.logger.error("Operation '".concat(operation,"' failed"),error)}}catch(error){this.logger.error("Error handling callback for operation '".concat(operation,"'"),error)}finally{this.pendingCallbacks.delete(operation)}}else this.logger.warn("No pending callback for operation: ".concat(operation))},UnityBaseService.prototype.setupCallback=function(operation){var _this=this;return this.clearCallback(operation),new Promise(function(resolve,reject){var timer=setTimeout(function(){_this.pendingCallbacks.delete(operation);var timeoutError=new SDKError(exports.OperationErrorCode.OPERATION_TIMEOUT,"Unity operation '".concat(operation,"' timed out after ").concat(_this.timeout,"ms"));_this.logger.error("Operation '".concat(operation,"' timed out"),timeoutError),reject(timeoutError)},_this.timeout);_this.pendingCallbacks.set(operation,{resolve:resolve,reject:reject,timer:timer,retries:0}),_this.logger.debug("Callback setup for operation '".concat(operation,"' with timeout ").concat(_this.timeout,"ms"))})},UnityBaseService.prototype.clearCallback=function(operation){var callback=this.pendingCallbacks.get(operation);callback&&(callback.timer&&clearTimeout(callback.timer),this.pendingCallbacks.delete(operation),this.logger.debug("Cleared callback for operation '".concat(operation,"'")))},UnityBaseService.prototype.clearAllCallbacks=function(){this.pendingCallbacks.forEach(function(callback){callback.timer&&clearTimeout(callback.timer)}),this.pendingCallbacks.clear(),this.logger.debug("Cleared all pending callbacks")},UnityBaseService.prototype.sendMessage=function(methodName,parameter){if(!this.isUnityAvailable())throw new SDKError(exports.OperationErrorCode.UNITY_NOT_INITIALIZED,"Unity实例未初始化");try{this.logger.warn("[ Sending message ]: ".concat(this.targetObjectName,".").concat(methodName),parameter);var paramString=parameter?JSON.stringify(parameter):"";this.unityInstance.SendMessage(this.targetObjectName,methodName,paramString)}catch(error){var serviceError=new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"Failed to send Unity message: ".concat(methodName),error);throw this.logger.error("Failed to send Unity message: ".concat(methodName),serviceError),serviceError}},UnityBaseService.prototype.sendAsyncMessage=function(methodName,operation,parameter){return __awaiter(this,void 0,void 0,function(){var callbackPromise,fullParameter,error_1;return __generator(this,function(_a){switch(_a.label){case 0:if(!this.isUnityAvailable())throw new SDKError(exports.OperationErrorCode.UNITY_NOT_INITIALIZED,"Unity实例未初始化");_a.label=1;case 1:return _a.trys.push([1,3,,6]),callbackPromise=this.setupCallback(operation),fullParameter=__assign(__assign({},parameter),{callbackFun:this.uniqueCallbackName,operationType:operation}),this.sendMessage(methodName,fullParameter),[4,callbackPromise];case 2:return[2,_a.sent()];case 3:return error_1=_a.sent(),this.clearCallback(operation),this.maxRetries>0&&error_1 instanceof SDKError&&error_1.code===exports.OperationErrorCode.OPERATION_TIMEOUT?[4,this.retryOperation(operation,methodName,parameter)]:[3,5];case 4:return[2,_a.sent()];case 5:throw error_1;case 6:return[2]}})})},UnityBaseService.prototype.destroy=function(){this.clearAllCallbacks(),window[this.uniqueCallbackName]&&(delete window[this.uniqueCallbackName],this.logger.debug("Global callback unregistered: ".concat(this.uniqueCallbackName))),this.logger.info("Unity service destroyed")},UnityBaseService.prototype.isUnityAvailable=function(){return null!==this.unityInstance&&"function"==typeof this.unityInstance.SendMessage},UnityBaseService.prototype.getPendingCallbackCount=function(){return this.pendingCallbacks.size},UnityBaseService.prototype.initializeGlobalCallback=function(){var _this=this;window[this.uniqueCallbackName]=function(operation,code,message,data){_this.handleCallback(operation,code,message,data)},this.logger.warn("Global callback registered: ".concat(this.uniqueCallbackName))},UnityBaseService.prototype.retryOperation=function(operation,methodName,parameter){return __awaiter(this,void 0,void 0,function(){var lastError,_loop_1,this_1,attempt,state_1;return __generator(this,function(_a){switch(_a.label){case 0:lastError=null,_loop_1=function _loop_1(attempt){var _b,error_2;return __generator(this,function(_c){switch(_c.label){case 0:return _c.trys.push([0,4,,5]),attempt>0?(this_1.logger.debug("Retrying operation '".concat(operation,"', attempt ").concat(attempt,"/").concat(this_1.maxRetries)),[4,new Promise(function(resolve){return setTimeout(resolve,1e3*Math.pow(2,attempt))})]):[3,2];case 1:_c.sent(),_c.label=2;case 2:return _b={},[4,this_1.sendAsyncMessage(methodName,operation,parameter)];case 3:return[2,(_b.value=_c.sent(),_b)];case 4:if(error_2=_c.sent(),lastError=error_2,this_1.logger.warn("Operation '".concat(operation,"' failed, attempt ").concat(attempt+1,"/").concat(this_1.maxRetries+1),error_2),error_2 instanceof SDKError&&error_2.code===exports.OperationErrorCode.OPERATION_TIMEOUT&&attempt<this_1.maxRetries)return[2,"continue"];if(!(error_2 instanceof SDKError&&error_2.code===exports.OperationErrorCode.OPERATION_TIMEOUT)||attempt>=this_1.maxRetries)throw error_2;return[3,5];case 5:return[2]}})},this_1=this,attempt=0,_a.label=1;case 1:return attempt<=this.maxRetries?[5,_loop_1(attempt)]:[3,4];case 2:if("object"===_typeof(state_1=_a.sent()))return[2,state_1.value];_a.label=3;case 3:return attempt++,[3,1];case 4:throw lastError||new SDKError(exports.OperationErrorCode.OPERATION_TIMEOUT,"All retry attempts failed for operation: ".concat(operation))}})})},UnityBaseService}();exports.AvatarOperationType=void 0,(AvatarOperationType=exports.AvatarOperationType||(exports.AvatarOperationType={})).INITIALIZE_AVATAR="initializeAvatar",AvatarOperationType.PLAY_MOTION="playMotion",AvatarOperationType.GET_CURRENT_MOTION="getCurrentMotion",AvatarOperationType.UNLOAD_AVATAR="unloadAvatar",AvatarOperationType.SET_CAMERA="setCamera",exports.AvatarCameraType=void 0,(AvatarCameraType=exports.AvatarCameraType||(exports.AvatarCameraType={})).WHOLE="whole",AvatarCameraType.HALF="half",AvatarCameraType.FACE="face";var AvatarService=function(_super){function AvatarService(config){var _this=_super.call(this,config)||this;return _this.logger.info("Avatar API service initialized"),_this}return __extends(AvatarService,_super),Object.defineProperty(AvatarService.prototype,"callbackFunctionName",{get:function get(){return"uniAvatarCallback"},enumerable:!1,configurable:!0}),AvatarService.prototype.initializeAvatar=function(avatarCode_1){return __awaiter(this,arguments,void 0,function(avatarCode,cameraType){var result,error_1;return void 0===cameraType&&(cameraType=exports.AvatarCameraType.WHOLE),__generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Initializing avatar: ".concat(avatarCode," with camera type: ").concat(cameraType)),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("InitializeAvatar",exports.AvatarOperationType.INITIALIZE_AVATAR,{avatarCode:avatarCode,cameraType:cameraType})];case 2:return result=_a.sent(),this.logger.info("Avatar initialization ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_1=_a.sent(),this.logger.error("Failed to initialize avatar",error_1),error_1;case 4:return[2]}})})},AvatarService.prototype.handleCallback=function(operation,code,message,data){_super.prototype.handleCallback.call(this,operation,code,message,data)},AvatarService.prototype.playMotion=function(clipCode){return __awaiter(this,void 0,void 0,function(){var result,error_2;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Playing motion: ".concat(clipCode)),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("PlayMotion",exports.AvatarOperationType.PLAY_MOTION,{clipCode:clipCode})];case 2:return result=_a.sent(),this.logger.info("Motion play ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_2=_a.sent(),this.logger.error("Failed to play motion",error_2),error_2;case 4:return[2]}})})},AvatarService.prototype.getCurrentMotion=function(getRemainingTime){return __awaiter(this,void 0,void 0,function(){var result,error_3,_a,_b;return __generator(this,function(_c){switch(_c.label){case 0:this.logger.info("Getting current motion info, includeRemainingTime: ".concat(getRemainingTime)),_c.label=1;case 1:return _c.trys.push([1,3,,4]),[4,this.sendAsyncMessage("GetCurrentMotion",exports.AvatarOperationType.GET_CURRENT_MOTION,{getRemainingTime:getRemainingTime})];case 2:return result=_c.sent(),this.logger.info("Current motion info retrieved",{motionId:null===(_a=result.data)||void 0===_a?void 0:_a.motionId,remainingTime:null===(_b=result.data)||void 0===_b?void 0:_b.motionRemainingTime}),[2,result];case 3:throw error_3=_c.sent(),this.logger.error("Failed to get current motion info",error_3),error_3;case 4:return[2]}})})},AvatarService.prototype.unloadAvatar=function(){return __awaiter(this,void 0,void 0,function(){var result,error_4;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Unloading avatar"),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("UnloadAvatar",exports.AvatarOperationType.UNLOAD_AVATAR)];case 2:return result=_a.sent(),this.logger.info("Avatar unload ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_4=_a.sent(),this.logger.error("Failed to unload avatar",error_4),error_4;case 4:return[2]}})})},AvatarService.prototype.setCamera=function(cameraType){return __awaiter(this,void 0,void 0,function(){var result,error_5;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Setting camera type: ".concat(cameraType)),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("SetCamera",exports.AvatarOperationType.SET_CAMERA,{cameraType:cameraType})];case 2:return result=_a.sent(),this.logger.info("Camera type setting ".concat(result.success?"succeeded":"failed")),[2,result];case 3:throw error_5=_a.sent(),this.logger.error("Failed to set camera type",error_5),error_5;case 4:return[2]}})})},AvatarService.prototype.batchExecute=function(operations){return __awaiter(this,void 0,void 0,function(){var results,operations_1,operations_1_1,operation,result,error_6,e_1_1,e_1,_a;return __generator(this,function(_b){switch(_b.label){case 0:this.logger.info("Executing batch operations: ".concat(operations.length," items")),results=[],_b.label=1;case 1:_b.trys.push([1,8,9,10]),operations_1=__values(operations),operations_1_1=operations_1.next(),_b.label=2;case 2:if(operations_1_1.done)return[3,7];operation=operations_1_1.value,_b.label=3;case 3:return _b.trys.push([3,5,,6]),[4,this[operation.method].apply(this,operation.params)];case 4:return result=_b.sent(),results.push(result),[3,6];case 5:return error_6=_b.sent(),this.logger.error("Batch operation failed: ".concat(operation.method),error_6),results.push({success:!1,message:"Batch operation failed: ".concat(error_6.message),errorCode:1}),[3,6];case 6:return operations_1_1=operations_1.next(),[3,2];case 7:return[3,10];case 8:return e_1_1=_b.sent(),e_1={error:e_1_1},[3,10];case 9:try{operations_1_1&&!operations_1_1.done&&(_a=operations_1.return)&&_a.call(operations_1)}finally{if(e_1)throw e_1.error}return[7];case 10:return this.logger.info("Batch operations completed: ".concat(results.filter(function(r){return r.success}).length,"/").concat(results.length," successful")),[2,results]}})})},AvatarService}(UnityBaseService),ENV_MAP={dev:{apiBaseUrl:"https://dev.local.zeewain.com"},test:{apiBaseUrl:"https://test.local.zeewain.com"},prod:{apiBaseUrl:"https://ai.zeewain3d.com"}};var ConfigManager=function(){function ConfigManager(){this.config=null}return ConfigManager.getInstance=function(){return ConfigManager.instance||(ConfigManager.instance=new ConfigManager),ConfigManager.instance},ConfigManager.prototype.setConfig=function(config){this.config=__assign(__assign({},config),{env:config.env||"prod",containerId:config.containerId||"unity-container"})},ConfigManager.prototype.updateConfig=function(config){this.config&&(this.config=__assign(__assign({},this.config),config))},ConfigManager.prototype.getConfig=function(){return this.config},ConfigManager.prototype.getApiBaseUrl=function(withApiModule){var _a,_b,_c,_d;return void 0===withApiModule&&(withApiModule=!0),"custom"===(null===(_a=this.config)||void 0===_a?void 0:_a.env)&&(null===(_b=this.config)||void 0===_b?void 0:_b.apiUrl)?"".concat(this.config.apiUrl).concat(withApiModule?"/api":""):(null===(_d=function getEnvConfig(env,withApiModule){void 0===env&&(env="dev"),void 0===withApiModule&&(withApiModule=!0);var baseUrl=ENV_MAP[env];return baseUrl?{apiBaseUrl:"".concat(baseUrl.apiBaseUrl).concat(withApiModule?"/api":"")}:null}((null===(_c=this.config)||void 0===_c?void 0:_c.env)||"prod",withApiModule))||void 0===_d?void 0:_d.apiBaseUrl)||""},ConfigManager.prototype.reset=function(){this.config=null},ConfigManager.instance=null,ConfigManager}(),UnityLoader=function(){function UnityLoader(){this.config=ConfigManager.getInstance().getConfig()}return UnityLoader.prototype.init=function(){return __awaiter(this,void 0,void 0,function(){var container;return __generator(this,function(_a){switch(_a.label){case 0:return container=this.createContainer(),[4,this.loadUnityLoader()];case 1:return _a.sent(),[4,this.createUnityInstance(container)];case 2:return[2,_a.sent()]}})})},UnityLoader.prototype.createContainer=function(){var container=document.getElementById(this.config.containerId);if(!container)throw new TypeError('Avatar container element with ID "'.concat(this.config.containerId,'" not found'));if(!(container instanceof HTMLDivElement))throw new TypeError("Avatar container element must be a div element");return container.style.position="relative",container},UnityLoader.prototype.loadUnityLoader=function(){var _this=this;return new Promise(function(resolve,reject){if(window.createUnityInstance)return resolve();var script=document.createElement("script");script.src=_this.config.loaderUrl,script.async=!0,script.crossOrigin="anonymous",script.onload=function(){"function"==typeof window.createUnityInstance?resolve():reject(new Error("createUnityInstance function not found"))},script.onerror=function(error){reject(new Error("Failed to load UnityLoader: ".concat(error)))},document.head.appendChild(script)})},UnityLoader.prototype.createUnityInstance=function(container){return __awaiter(this,void 0,void 0,function(){var canvas,meta,instance,_this=this;return __generator(this,function(_a){switch(_a.label){case 0:return(canvas=container.querySelector("#unity-canvas"))||((canvas=document.createElement("canvas")).id="unity-canvas",canvas.style.width="100%",canvas.style.height="100%",canvas.style.display="none",container.appendChild(canvas)),/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&((meta=document.createElement("meta")).name="viewport",meta.content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes",document.head.appendChild(meta),canvas.style.width="100%",canvas.style.height="100%",canvas.style.position="fixed"),"function"!=typeof window.createUnityInstance?[3,3]:[4,window.createUnityInstance(canvas,{dataUrl:this.config.dataUrl,frameworkUrl:this.config.frameworkUrl,codeUrl:this.config.codeUrl,companyName:"广州紫为云科技有限公司",productName:"数字人SDK",productVersion:"1.0"},function(progress){_this.config.onProgress&&_this.config.onProgress(progress)})];case 1:return instance=_a.sent(),[4,new Promise(function(resolve){return setTimeout(resolve,500)})];case 2:return _a.sent(),canvas.style.display="block",[2,instance];case 3:throw new TypeError("createUnityInstance is not defined on window.")}})})},UnityLoader}();function getLines(onLine){let buffer,position,fieldLength,discardTrailingNewline=!1;return function onChunk(arr){void 0===buffer?(buffer=arr,position=0,fieldLength=-1):buffer=function concat(a,b){const res=new Uint8Array(a.length+b.length);return res.set(a),res.set(b,a.length),res}(buffer,arr);const bufLength=buffer.length;let lineStart=0;for(;position<bufLength;){discardTrailingNewline&&(10===buffer[position]&&(lineStart=++position),discardTrailingNewline=!1);let lineEnd=-1;for(;position<bufLength&&-1===lineEnd;++position)switch(buffer[position]){case 58:-1===fieldLength&&(fieldLength=position-lineStart);break;case 13:discardTrailingNewline=!0;case 10:lineEnd=position}if(-1===lineEnd)break;onLine(buffer.subarray(lineStart,lineEnd),fieldLength),lineStart=position,fieldLength=-1}lineStart===bufLength?buffer=void 0:0!==lineStart&&(buffer=buffer.subarray(lineStart),position-=lineStart)}}var __rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t};function fetchEventSource(input,_a){var{signal:inputSignal,headers:inputHeaders,onopen:inputOnOpen,onmessage:onmessage,onclose:onclose,onerror:onerror,openWhenHidden:openWhenHidden,fetch:inputFetch}=_a,rest=__rest(_a,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((resolve,reject)=>{const headers=Object.assign({},inputHeaders);let curRequestController;function onVisibilityChange(){curRequestController.abort(),document.hidden||create()}headers.accept||(headers.accept="text/event-stream"),openWhenHidden||document.addEventListener("visibilitychange",onVisibilityChange);let retryInterval=1e3,retryTimer=0;function dispose(){document.removeEventListener("visibilitychange",onVisibilityChange),window.clearTimeout(retryTimer),curRequestController.abort()}null==inputSignal||inputSignal.addEventListener("abort",()=>{dispose(),resolve()});const fetch=null!=inputFetch?inputFetch:window.fetch,onopen=null!=inputOnOpen?inputOnOpen:defaultOnOpen;async function create(){var _a;curRequestController=new AbortController;try{const response=await fetch(input,Object.assign(Object.assign({},rest),{headers:headers,signal:curRequestController.signal}));await onopen(response),await async function getBytes(stream,onChunk){const reader=stream.getReader();let result;for(;!(result=await reader.read()).done;)onChunk(result.value)}(response.body,getLines(function getMessages(onId,onRetry,onMessage){let message={data:"",event:"",id:"",retry:void 0};const decoder=new TextDecoder;return function onLine(line,fieldLength){if(0===line.length)null==onMessage||onMessage(message),message={data:"",event:"",id:"",retry:void 0};else if(fieldLength>0){const field=decoder.decode(line.subarray(0,fieldLength)),valueOffset=fieldLength+(32===line[fieldLength+1]?2:1),value=decoder.decode(line.subarray(valueOffset));switch(field){case"data":message.data=message.data?message.data+"\n"+value:value;break;case"event":message.event=value;break;case"id":onId(message.id=value);break;case"retry":const retry=parseInt(value,10);isNaN(retry)||onRetry(message.retry=retry)}}}}(id=>{id?headers["last-event-id"]=id:delete headers["last-event-id"]},retry=>{retryInterval=retry},onmessage))),null==onclose||onclose(),dispose(),resolve()}catch(err){if(!curRequestController.signal.aborted)try{const interval=null!==(_a=null==onerror?void 0:onerror(err))&&void 0!==_a?_a:retryInterval;window.clearTimeout(retryTimer),retryTimer=window.setTimeout(create,interval)}catch(innerErr){dispose(),reject(innerErr)}}}create()})}function defaultOnOpen(response){const contentType=response.headers.get("content-type");if(!(null==contentType?void 0:contentType.startsWith("text/event-stream")))throw new Error(`Expected content-type to be text/event-stream, Actual: ${contentType}`)}var BroadcastOperationType,BroadcastType,BroadcastTaskStatus;exports.BroadcastOperationType=void 0,(BroadcastOperationType=exports.BroadcastOperationType||(exports.BroadcastOperationType={})).START_BROADCAST="startBroadcast",BroadcastOperationType.PAUSE_BROADCAST="pauseBroadcast",BroadcastOperationType.RESUME_BROADCAST="resumeBroadcast",BroadcastOperationType.STOP_BROADCAST="stopBroadcast",BroadcastOperationType.APPEND_BROADCAST="appendBroadcast",exports.BroadcastType=void 0,(BroadcastType=exports.BroadcastType||(exports.BroadcastType={})).TEXT="text",BroadcastType.AUDIO="audio",function(BroadcastTaskStatus){BroadcastTaskStatus.PENDING="pending",BroadcastTaskStatus.REQUESTING="requesting",BroadcastTaskStatus.COMPLETED="completed",BroadcastTaskStatus.FAILED="failed",BroadcastTaskStatus.CANCELLED="cancelled"}(BroadcastTaskStatus||(BroadcastTaskStatus={}));var BroadcastService=function(_super){function BroadcastService(config){var _this=_super.call(this,config)||this;return _this.callbacks={},_this.taskQueue=[],_this.taskSequence=0,_this.currentSendingSequence=0,_this.isBroadcastingAudio=!1,_this.hasReceivedAudio=!1,_this.queueProcessTimer=null,_this.broadcastCompletedCount=0,_this.callbacks=config.callbacks||{},_this.logger.info("Broadcast service initialized",{config:config}),_this}return __extends(BroadcastService,_super),BroadcastService.prototype.handleCallback=function(operation,code,message,data){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,isBroadcastCompleted=JSON.parse(data||"{}").isBroadcastCompleted;if(_super.prototype.handleCallback.call(this,operation,code,message,data),0===code)switch(operation){case exports.BroadcastOperationType.START_BROADCAST:if(isBroadcastCompleted){this.broadcastCompletedCount++;var status_1=this.getStatus();0===(null===(_a=status_1.queueInfo)||void 0===_a?void 0:_a.pendingTasks)&&0===(null===(_b=status_1.queueInfo)||void 0===_b?void 0:_b.requestingTasks)&&(null===(_c=status_1.queueInfo)||void 0===_c?void 0:_c.completedTasks)===this.broadcastCompletedCount&&(this.isBroadcastingAudio=!1,this.hasReceivedAudio=!1,this.currentSendingSequence=0,this.cleanupCompletedTasks(),this.logger.warn("Broadcast all completed")),null===(_e=(_d=this.callbacks).onFinish)||void 0===_e||_e.call(_d)}break;case exports.BroadcastOperationType.PAUSE_BROADCAST:null===(_g=(_f=this.callbacks).onPause)||void 0===_g||_g.call(_f),this.logger.debug("Broadcast paused callback triggered");break;case exports.BroadcastOperationType.RESUME_BROADCAST:null===(_j=(_h=this.callbacks).onResume)||void 0===_j||_j.call(_h),this.logger.debug("Broadcast resumed callback triggered");break;case exports.BroadcastOperationType.STOP_BROADCAST:null===(_l=(_k=this.callbacks).onStop)||void 0===_l||_l.call(_k),this.logger.debug("Broadcast stopped callback triggered")}else{var error=SDKError.createFromUnityError(code,"Unity operation '".concat(operation,"' failed: ").concat(message));this.handleError(error)}},BroadcastService.prototype.startBroadcast=function(params,isAppend){return __awaiter(this,void 0,void 0,function(){var task,_a,_b;return __generator(this,function(_c){switch(_c.label){case 0:return this.logger.info("Starting broadcast: ".concat(params.type),{humanCode:params.humanCode,text:params.text,audioUrl:params.audioUrl,isAppend:isAppend,queueLength:this.taskQueue.length}),this.validateBroadcastParams(params),isAppend?[3,2]:[4,this.stopBroadcast()];case 1:_c.sent(),this.taskSequence=0,this.currentSendingSequence=0,this.sendMessage("StartBroadcast",{callbackFun:this.uniqueCallbackName,operationType:exports.BroadcastOperationType.START_BROADCAST,motionList:params.motionList,motionPlayMode:params.motionPlayMode}),null===(_b=(_a=this.callbacks).onStart)||void 0===_b||_b.call(_a),this.isBroadcastingAudio=!0,_c.label=2;case 2:return task=this.createBroadcastTask(params),this.addTaskToQueue(task),this.logger.debug("Broadcast task created and queued",{taskId:task.id,sequence:task.sequence,isAppend:isAppend}),[2]}})})},BroadcastService.prototype.pauseBroadcast=function(resetIdle){return __awaiter(this,void 0,void 0,function(){var error_1;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Pausing broadcast"),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("PauseBroadcast",exports.BroadcastOperationType.PAUSE_BROADCAST,{resetIdle:resetIdle})];case 2:return _a.sent(),this.logger.info("Broadcast paused successfully"),[3,4];case 3:throw error_1=_a.sent(),this.logger.error("Failed to pause broadcast",error_1),error_1;case 4:return[2]}})})},BroadcastService.prototype.resumeBroadcast=function(){return __awaiter(this,void 0,void 0,function(){var error_2;return __generator(this,function(_a){switch(_a.label){case 0:this.logger.info("Resuming broadcast"),_a.label=1;case 1:return _a.trys.push([1,3,,4]),[4,this.sendAsyncMessage("ResumeBroadcast",exports.BroadcastOperationType.RESUME_BROADCAST,{})];case 2:return _a.sent(),this.logger.info("Broadcast resumed successfully"),[3,4];case 3:throw error_2=_a.sent(),this.logger.error("Failed to resume broadcast",error_2),error_2;case 4:return[2]}})})},BroadcastService.prototype.stopBroadcast=function(){return __awaiter(this,void 0,void 0,function(){var error_3;return __generator(this,function(_a){switch(_a.label){case 0:return this.logger.info("Stopping broadcast and clearing queue",{queueLength:this.taskQueue.length}),this.cancelAllTasks(),[4,new Promise(function(resolve){return setTimeout(resolve,100)})];case 1:_a.sent(),this.isBroadcastingAudio=!1,this.hasReceivedAudio=!1,this.broadcastCompletedCount=0,_a.label=2;case 2:return _a.trys.push([2,4,,5]),[4,this.sendAsyncMessage("StopBroadcast",exports.BroadcastOperationType.STOP_BROADCAST,{})];case 3:return _a.sent(),this.logger.info("Broadcast stopped successfully"),[3,5];case 4:throw error_3=_a.sent(),this.logger.error("Failed to stop broadcast",error_3),error_3;case 5:return[2]}})})},BroadcastService.prototype.updateCallbacks=function(callbacks){this.callbacks=__assign(__assign({},this.callbacks),callbacks),this.logger.debug("Broadcast callbacks updated")},BroadcastService.prototype.getStatus=function(){var pendingTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.PENDING}).length,requestingTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.REQUESTING}).length,completedTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.COMPLETED}).length,failedTasks=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.FAILED}).length,totalPendingResponses=this.taskQueue.reduce(function(sum,t){return sum+t.pendingResponses.length},0),currentSendingSequence=this.currentSendingSequence,isGeneratingAudio=pendingTasks+requestingTasks>0;return{isActive:this.isBroadcastingAudio||isGeneratingAudio,isGeneratingAudio:isGeneratingAudio,hasReceivedAudio:this.hasReceivedAudio,queueInfo:{totalTasks:this.taskQueue.length,pendingTasks:pendingTasks,requestingTasks:requestingTasks,completedTasks:completedTasks,failedTasks:failedTasks,totalPendingResponses:totalPendingResponses,currentSendingSequence:currentSendingSequence}}},BroadcastService.prototype.destroy=function(){this.clearQueueProcessTimer(),this.cancelAllTasks(),_super.prototype.destroy.call(this),this.logger.info("Broadcast service destroyed")},BroadcastService.prototype.createBroadcastTask=function(params){var typeText=params.type===exports.BroadcastType.TEXT?"TEXT":"AUDIO",typeInfo=params.type===exports.BroadcastType.TEXT?params.text:params.audioUrl,task={id:"[".concat(typeText,"]-(").concat(typeInfo,")_").concat(Math.random().toString(36).substring(2,9)),sequence:++this.taskSequence,params:params,status:BroadcastTaskStatus.PENDING,controller:new AbortController,pendingResponses:[],isGenerationComplete:!1,createdAt:new Date};return this.logger.debug("Created broadcast task",{taskId:task.id,sequence:task.sequence}),task},BroadcastService.prototype.addTaskToQueue=function(task){this.taskQueue.push(task),this.logger.debug("Task added to queue",{taskId:task.id,params:task.params,queueLength:this.taskQueue.length}),this.taskQueue.some(function(t){return t.status===BroadcastTaskStatus.REQUESTING})?this.logger.debug("Task queued, waiting for previous task to complete",{taskId:task.id,pendingTasks:this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.PENDING}).length}):this.startTaskRequest(task),this.processTaskQueue()},BroadcastService.prototype.processTaskQueue=function(){var _this=this;this.queueProcessTimer||(this.queueProcessTimer=setInterval(function(){_this.processTaskQueueStep()},100)),this.processTaskQueueStep()},BroadcastService.prototype.processTaskQueueStep=function(){var _this=this,nextTask=this.taskQueue.find(function(task){return task.sequence===_this.currentSendingSequence+1&&task.status!==BroadcastTaskStatus.PENDING&&task.pendingResponses.length>0});nextTask?this.sendNextResponse(nextTask):this.logger.debug("No next task to process",{currentSendingSequence:this.currentSendingSequence,taskQueue:this.taskQueue});var activeTasks=this.taskQueue.filter(function(task){return task.status===BroadcastTaskStatus.PENDING||task.status===BroadcastTaskStatus.REQUESTING});0===activeTasks.length&&this.clearQueueProcessTimer()},BroadcastService.prototype.startTaskRequest=function(task){return __awaiter(this,void 0,void 0,function(){var apiUrl,requestBody,sdkError,_a,_this=this;return __generator(this,function(_b){task.status=BroadcastTaskStatus.REQUESTING,this.logger.debug("Starting task request",{taskId:task.id});try{apiUrl="".concat(ConfigManager.getInstance().getApiBaseUrl(!0)).concat(this.getBroadcastApiPath(task.params.type)),requestBody={humanCode:task.params.humanCode,speed:task.params.speed,volume:task.params.volume>=0?100*task.params.volume:void 0,isSubtitle:task.params.isSubtitle,audioDrivenVersion:ConfigManager.getInstance().getConfig().audioDrivenVersion},task.params.type===exports.BroadcastType.TEXT?(requestBody.text=task.params.text,requestBody.voiceCode=task.params.voiceCode):task.params.type===exports.BroadcastType.AUDIO&&(requestBody.text=task.params.text,requestBody.audioUrl=task.params.audioUrl),fetchEventSource(apiUrl,{method:"POST",headers:{"Content-Type":"application/json",x_auth_token:(null===(_a=ConfigManager.getInstance().getConfig())||void 0===_a?void 0:_a.token)||""},body:JSON.stringify(requestBody),signal:task.controller.signal,openWhenHidden:!0,onopen:function onopen(response){return __awaiter(_this,void 0,void 0,function(){var error;return __generator(this,function(_a){if(!response.ok)throw error=this.createHttpError(response.status,response.statusText,task.id),this.handleTaskError(task,error),error;return[2]})})},onmessage:function onmessage(event){_this.handleTaskResponse(task,event.data)},onclose:function onclose(){_this.handleTaskClose(task)},onerror:function onerror(error){if(error instanceof SDKError)throw error;_this.logger.error("broadcast onerror",error);var sdkError=_this.convertToSDKError(error,task.id);throw _this.handleTaskError(task,sdkError),sdkError}})}catch(error){sdkError=this.convertToSDKError(error,task.id),this.handleTaskError(task,sdkError)}return[2]})})},BroadcastService.prototype.handleTaskResponse=function(task,data){try{var response=JSON.parse(data);if(0!==response.code){var error=this.createBroadcastError(response.code,response.message);return void this.handleTaskError(task,error)}if(response.data){this.hasReceivedAudio=!0,task.params.type===exports.BroadcastType.AUDIO&&task.params.audioUrl&&!response.data.voiceUrl&&(response.data.voiceUrl=task.params.audioUrl);var _a=response.data,voiceUrl=_a.voiceUrl,mouthShapeUrl=_a.mouthShapeUrl;voiceUrl&&!voiceUrl.startsWith("http")&&(response.data.voiceUrl="".concat(ConfigManager.getInstance().getApiBaseUrl(!1)).concat(voiceUrl)),mouthShapeUrl&&!mouthShapeUrl.startsWith("http")&&(response.data.mouthShapeUrl="".concat(ConfigManager.getInstance().getApiBaseUrl(!1)).concat(mouthShapeUrl)),task.pendingResponses.push(response),this.logger.debug("Response added to task",{taskId:task.id,response:response,pendingCount:task.pendingResponses.length}),response.data.done&&(task.isGenerationComplete=!0,this.logger.debug("Task generation completed",{taskId:task.id,totalResponses:task.pendingResponses.length}))}}catch(error){this.handleTaskError(task,new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"string"==typeof error?error:error.message||"播报服务错误"))}},BroadcastService.prototype.sendNextResponse=function(task){var _a;if(0!==task.pendingResponses.length){var response=task.pendingResponses.shift();this.logger.debug("Sending response to Unity",{taskId:task.id,remainingResponses:task.pendingResponses.length,voiceUrl:null===(_a=response.data)||void 0===_a?void 0:_a.voiceUrl}),this.sendMessage("AppendBroadcast",{response:response,callbackFun:this.uniqueCallbackName,operationType:exports.BroadcastOperationType.APPEND_BROADCAST}),task.isGenerationComplete&&0===task.pendingResponses.length&&(task.status=BroadcastTaskStatus.COMPLETED,this.currentSendingSequence=task.sequence,this.logger.debug("Task completed",{taskId:task.id}))}},BroadcastService.prototype.handleTaskClose=function(task){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){return this.logger.debug("Task stream closed",{taskId:task.id}),task.status===BroadcastTaskStatus.FAILED||task.status===BroadcastTaskStatus.CANCELLED||(task.isGenerationComplete||task.status!==BroadcastTaskStatus.REQUESTING||(task.isGenerationComplete=!0),this.startNextPendingTask()),[2]})})},BroadcastService.prototype.handleTaskError=function(task,error){var _a,_b;task.status!==BroadcastTaskStatus.FAILED&&task.status!==BroadcastTaskStatus.CANCELLED&&(task.status=BroadcastTaskStatus.FAILED,task.error=error,this.logger.error("Task failed - ".concat(task.id),error),null===(_b=(_a=this.callbacks).onError)||void 0===_b||_b.call(_a,error),this.cancelAllTasks(),this.isBroadcastingAudio=!1,this.hasReceivedAudio=!1,this.currentSendingSequence=0,this.clearQueueProcessTimer(),this.logger.debug("Task failed, all tasks cancelled and broadcast state reset"))},BroadcastService.prototype.cleanupCompletedTasks=function(){var beforeLength=this.taskQueue.length;this.taskQueue=this.taskQueue.filter(function(task){return task.status!==BroadcastTaskStatus.COMPLETED&&task.status!==BroadcastTaskStatus.FAILED&&task.status!==BroadcastTaskStatus.CANCELLED});var removedCount=beforeLength-this.taskQueue.length;removedCount>0&&this.logger.debug("Cleaned up completed tasks",{removedCount:removedCount,remainingTasks:this.taskQueue.length})},BroadcastService.prototype.cancelAllTasks=function(){var e_1,_a;try{for(var _b=__values(this.taskQueue),_c=_b.next();!_c.done;_c=_b.next()){var task=_c.value;task.status===BroadcastTaskStatus.REQUESTING?(task.controller.abort(),task.status=BroadcastTaskStatus.CANCELLED,this.logger.debug("Task aborted",{taskId:task.id,previousStatus:"requesting"})):task.status===BroadcastTaskStatus.PENDING&&(task.status=BroadcastTaskStatus.CANCELLED,this.logger.debug("Task cancelled",{taskId:task.id,previousStatus:"pending"}))}}catch(e_1_1){e_1={error:e_1_1}}finally{try{_c&&!_c.done&&(_a=_b.return)&&_a.call(_b)}finally{if(e_1)throw e_1.error}}this.taskQueue=[],this.taskSequence=0,this.currentSendingSequence=0,this.logger.debug("All tasks cancelled and queue cleared")},Object.defineProperty(BroadcastService.prototype,"callbackFunctionName",{get:function get(){return"uniBroadcastCallback"},enumerable:!1,configurable:!0}),BroadcastService.prototype.getBroadcastApiPath=function(type){switch(type){case exports.BroadcastType.TEXT:return"/aiep-openapi/avatar-interaction/v1/broadcast/text";case exports.BroadcastType.AUDIO:return"/aiep-openapi/avatar-interaction/v1/broadcast/audio";default:throw new SDKError(exports.ConfigErrorCode.INVALID_CONFIG,"未知的播报类型: ".concat(type))}},BroadcastService.prototype.validateBroadcastParams=function(params){if(params.type===exports.BroadcastType.TEXT){if(!params.text||!params.voiceCode)throw new SDKError(exports.ConfigErrorCode.MISSING_REQUIRED_PARAM,"文本播报需要提供text和voiceCode参数")}else if(params.type===exports.BroadcastType.AUDIO&&!params.audioUrl)throw new SDKError(exports.ConfigErrorCode.MISSING_REQUIRED_PARAM,"自定义音频播报需要提供audioUrl参数")},BroadcastService.prototype.handleError=function(error){var _a,_b;this.logger.error("Broadcast error occurred",error),null===(_b=(_a=this.callbacks).onError)||void 0===_b||_b.call(_a,error)},BroadcastService.prototype.createBroadcastError=function(errorCode,errorMessage){switch(errorCode){case 14001:return new SDKError(exports.OperationErrorCode.BROADCAST_EQUITY_NOT_EXIST,"用户权益额度不存在");case 14002:return new SDKError(exports.OperationErrorCode.BROADCAST_EQUITY_NOT_ENOUGH,"用户权益额度不足");case 14003:return new SDKError(exports.OperationErrorCode.BROADCAST_EQUITY_FREEZE_FAILED,"用户权益额度冻结失败");default:return new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"".concat(errorMessage,"(").concat(errorCode,")")||"播报服务错误(".concat(errorCode,")"))}},BroadcastService.prototype.startNextPendingTask=function(){var nextPendingTask=this.taskQueue.filter(function(t){return t.status===BroadcastTaskStatus.PENDING}).sort(function(a,b){return a.sequence-b.sequence})[0];nextPendingTask?(this.logger.debug("Starting next pending task",{taskId:nextPendingTask.id,sequence:nextPendingTask.sequence}),this.startTaskRequest(nextPendingTask)):this.logger.debug("No pending tasks to start")},BroadcastService.prototype.clearQueueProcessTimer=function(){this.queueProcessTimer&&(clearInterval(this.queueProcessTimer),this.queueProcessTimer=null,this.logger.debug("Queue process timer cleared"))},BroadcastService.prototype.createHttpError=function(status,statusText,taskId){switch(this.logger.warn("HTTP error occurred - Task: ".concat(taskId,", Status: ").concat(status),{status:status,statusText:statusText}),status){case 401:return new SDKError(exports.NetworkErrorCode.UNAUTHORIZED,"Token 已过期或无效,请重新授权 (HTTP ".concat(status,")"));case 403:return new SDKError(exports.NetworkErrorCode.UNAUTHORIZED,"无权限访问该资源 (HTTP ".concat(status,")"));case 404:return new SDKError(exports.NetworkErrorCode.SERVER_ERROR,"请求的资源不存在 (HTTP ".concat(status,")"));case 500:case 502:case 503:case 504:return new SDKError(exports.NetworkErrorCode.SERVER_ERROR,"服务器错误,请稍后重试 (HTTP ".concat(status,")"));default:return new SDKError(exports.NetworkErrorCode.CONNECTION_FAILED,"网络请求失败: ".concat(statusText||"Unknown Error"," (HTTP ").concat(status,")"))}},BroadcastService.prototype.convertToSDKError=function(error,taskId){if(error instanceof SDKError)return error;if(error instanceof Error){var errorMessage_1=error.message.toLowerCase();if(errorMessage_1.includes("timeout")||errorMessage_1.includes("timed out"))return new SDKError(exports.NetworkErrorCode.REQUEST_TIMEOUT,"请求超时 - Task: ".concat(taskId),error);if(errorMessage_1.includes("network")||errorMessage_1.includes("fetch")||errorMessage_1.includes("connection")){var hint=errorMessage_1.includes("failed to fetch")?"(可能是 Token 过期或 CORS 跨域问题,请检查 Token 是否有效)":"";return new SDKError(exports.NetworkErrorCode.CONNECTION_FAILED,"网络请求失败 - Task: ".concat(taskId,": ").concat(error.message).concat(hint),error)}return errorMessage_1.includes("abort")||errorMessage_1.includes("cancel")?new SDKError(exports.OperationErrorCode.OPERATION_CANCELLED,"操作已取消 - Task: ".concat(taskId),error):new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"播报任务执行失败 - Task: ".concat(taskId,": ").concat(error.message),error)}var errorMessage=String(error);return new SDKError(exports.OperationErrorCode.OPERATION_FAILED,"播报任务执行失败 - Task: ".concat(taskId,": ").concat(errorMessage))},BroadcastService}(UnityBaseService),ZEEAvatarLoader=function(){function ZEEAvatarLoader(){this.apiService=null,this.unityInstance=null,this.loader=new UnityLoader}return ZEEAvatarLoader.prototype.init=function(){return __awaiter(this,void 0,void 0,function(){var _a;return __generator(this,function(_b){switch(_b.label){case 0:return _a=this,[4,this.loader.init()];case 1:return _a.unityInstance=_b.sent(),this.initGlobalConfig(),this.apiService=new AvatarService({unityInstance:this.unityInstance}),[2,this.apiService]}})})},ZEEAvatarLoader.prototype.updateToken=function(token){var currentConfig=ConfigManager.getInstance().getConfig();currentConfig&&(ConfigManager.getInstance().setConfig(__assign(__assign({},currentConfig),{token:token})),this.initGlobalConfig())},ZEEAvatarLoader.prototype.getAPI=function(){return this.apiService},ZEEAvatarLoader.prototype.getInstance=function(){return this.unityInstance},ZEEAvatarLoader.prototype.getContainerId=function(){return ConfigManager.getInstance().getConfig().containerId},ZEEAvatarLoader.prototype.destroy=function(){if(this.unityInstance){var container=document.getElementById(this.getContainerId());if(container){var canvas=container.querySelector("#unity-canvas");canvas&&canvas.remove()}"function"==typeof this.unityInstance.Quit&&this.unityInstance.Quit(),this.unityInstance=null,this.apiService=null}ConfigManager.getInstance().reset()},ZEEAvatarLoader.prototype.initGlobalConfig=function(){var config=ConfigManager.getInstance().getConfig(),assetsFrom=config.assetsFrom,globalParams={token:null==config?void 0:config.token,apiBaseUrl:ConfigManager.getInstance().getApiBaseUrl(!1),idleMotionList:null==config?void 0:config.idleMotionList};if(this.unityInstance.SendMessage("AvatarSDK","InitializeConfig",JSON.stringify(globalParams)),console.warn("[ Send Unity message ]: AvatarSDK.InitializeConfig",globalParams),"cloud"!==assetsFrom){var assetModuleParams={isZip:!0,assetBundlePath:null==config?void 0:config.assetsUrl};this.unityInstance.SendMessage("AvatarSDK","InitAssetBundleModule",JSON.stringify(assetModuleParams)),console.warn("[ Send Unity message ]: AvatarSDK.InitAssetBundleModule",assetModuleParams)}},ZEEAvatarLoader}();exports.AvatarService=AvatarService,exports.BroadcastService=BroadcastService,exports.ERROR_CODE_MAP=ERROR_CODE_MAP,exports.SDKError=SDKError,exports.ZEEAvatarLoader=ZEEAvatarLoader,exports.getErrorInfo=getErrorInfo});
|