(function(_n){typeof define=="function"&&define.amd?define(_n):_n()})(function(){"use strict";var fc=Object.defineProperty;var pc=(_n,Cn,$n)=>Cn in _n?fc(_n,Cn,{enumerable:!0,configurable:!0,writable:!0,value:$n}):_n[Cn]=$n;var wl=(_n,Cn,$n)=>(pc(_n,typeof Cn!="symbol"?Cn+"":Cn,$n),$n);function makeMap(_n,Cn){const $n=Object.create(null),Nn=_n.split(",");for(let Bn=0;Bn!!$n[Bn.toLowerCase()]:Bn=>!!$n[Bn]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=_n=>onRE.test(_n),isModelListener=_n=>_n.startsWith("onUpdate:"),extend$3=Object.assign,remove=(_n,Cn)=>{const $n=_n.indexOf(Cn);$n>-1&&_n.splice($n,1)},hasOwnProperty$b=Object.prototype.hasOwnProperty,hasOwn=(_n,Cn)=>hasOwnProperty$b.call(_n,Cn),isArray$3=Array.isArray,isMap=_n=>toTypeString(_n)==="[object Map]",isSet=_n=>toTypeString(_n)==="[object Set]",isDate$1=_n=>toTypeString(_n)==="[object Date]",isFunction$2=_n=>typeof _n=="function",isString$1=_n=>typeof _n=="string",isSymbol=_n=>typeof _n=="symbol",isObject$5=_n=>_n!==null&&typeof _n=="object",isPromise=_n=>(isObject$5(_n)||isFunction$2(_n))&&isFunction$2(_n.then)&&isFunction$2(_n.catch),objectToString$1=Object.prototype.toString,toTypeString=_n=>objectToString$1.call(_n),toRawType=_n=>toTypeString(_n).slice(8,-1),isPlainObject$3=_n=>toTypeString(_n)==="[object Object]",isIntegerKey=_n=>isString$1(_n)&&_n!=="NaN"&&_n[0]!=="-"&&""+parseInt(_n,10)===_n,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=_n=>{const Cn=Object.create(null);return $n=>Cn[$n]||(Cn[$n]=_n($n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(_n=>_n.replace(camelizeRE,(Cn,$n)=>$n?$n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(_n=>_n.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(_n=>_n.charAt(0).toUpperCase()+_n.slice(1)),toHandlerKey=cacheStringFunction(_n=>_n?`on${capitalize(_n)}`:""),hasChanged=(_n,Cn)=>!Object.is(_n,Cn),invokeArrayFns=(_n,Cn)=>{for(let $n=0;$n<_n.length;$n++)_n[$n](Cn)},def=(_n,Cn,$n)=>{Object.defineProperty(_n,Cn,{configurable:!0,enumerable:!1,value:$n})},looseToNumber=_n=>{const Cn=parseFloat(_n);return isNaN(Cn)?_n:Cn},toNumber=_n=>{const Cn=isString$1(_n)?Number(_n):NaN;return isNaN(Cn)?_n:Cn};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(_n){if(isArray$3(_n)){const Cn={};for(let $n=0;$n<_n.length;$n++){const Nn=_n[$n],Bn=isString$1(Nn)?parseStringStyle(Nn):normalizeStyle(Nn);if(Bn)for(const Ln in Bn)Cn[Ln]=Bn[Ln]}return Cn}else if(isString$1(_n)||isObject$5(_n))return _n}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(_n){const Cn={};return _n.replace(styleCommentRE,"").split(listDelimiterRE).forEach($n=>{if($n){const Nn=$n.split(propertyDelimiterRE);Nn.length>1&&(Cn[Nn[0].trim()]=Nn[1].trim())}}),Cn}function normalizeClass(_n){let Cn="";if(isString$1(_n))Cn=_n;else if(isArray$3(_n))for(let $n=0;$n<_n.length;$n++){const Nn=normalizeClass(_n[$n]);Nn&&(Cn+=Nn+" ")}else if(isObject$5(_n))for(const $n in _n)_n[$n]&&(Cn+=$n+" ");return Cn.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(_n){return!!_n||_n===""}function looseCompareArrays(_n,Cn){if(_n.length!==Cn.length)return!1;let $n=!0;for(let Nn=0;$n&&Nn<_n.length;Nn++)$n=looseEqual(_n[Nn],Cn[Nn]);return $n}function looseEqual(_n,Cn){if(_n===Cn)return!0;let $n=isDate$1(_n),Nn=isDate$1(Cn);if($n||Nn)return $n&&Nn?_n.getTime()===Cn.getTime():!1;if($n=isSymbol(_n),Nn=isSymbol(Cn),$n||Nn)return _n===Cn;if($n=isArray$3(_n),Nn=isArray$3(Cn),$n||Nn)return $n&&Nn?looseCompareArrays(_n,Cn):!1;if($n=isObject$5(_n),Nn=isObject$5(Cn),$n||Nn){if(!$n||!Nn)return!1;const Bn=Object.keys(_n).length,Ln=Object.keys(Cn).length;if(Bn!==Ln)return!1;for(const In in _n){const Pn=_n.hasOwnProperty(In),Dn=Cn.hasOwnProperty(In);if(Pn&&!Dn||!Pn&&Dn||!looseEqual(_n[In],Cn[In]))return!1}}return String(_n)===String(Cn)}function looseIndexOf(_n,Cn){return _n.findIndex($n=>looseEqual($n,Cn))}const toDisplayString=_n=>isString$1(_n)?_n:_n==null?"":isArray$3(_n)||isObject$5(_n)&&(_n.toString===objectToString$1||!isFunction$2(_n.toString))?JSON.stringify(_n,replacer,2):String(_n),replacer=(_n,Cn)=>Cn&&Cn.__v_isRef?replacer(_n,Cn.value):isMap(Cn)?{[`Map(${Cn.size})`]:[...Cn.entries()].reduce(($n,[Nn,Bn])=>($n[`${Nn} =>`]=Bn,$n),{})}:isSet(Cn)?{[`Set(${Cn.size})`]:[...Cn.values()]}:isObject$5(Cn)&&!isArray$3(Cn)&&!isPlainObject$3(Cn)?String(Cn):Cn;let activeEffectScope;class EffectScope{constructor(Cn=!1){this.detached=Cn,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!Cn&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(Cn){if(this._active){const $n=activeEffectScope;try{return activeEffectScope=this,Cn()}finally{activeEffectScope=$n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(Cn){if(this._active){let $n,Nn;for($n=0,Nn=this.effects.length;$n{const Cn=new Set(_n);return Cn.w=0,Cn.n=0,Cn},wasTracked=_n=>(_n.w&trackOpBit)>0,newTracked=_n=>(_n.n&trackOpBit)>0,initDepMarkers=({deps:_n})=>{if(_n.length)for(let Cn=0;Cn<_n.length;Cn++)_n[Cn].w|=trackOpBit},finalizeDepMarkers=_n=>{const{deps:Cn}=_n;if(Cn.length){let $n=0;for(let Nn=0;Nn{(Wn==="length"||!isSymbol(Wn)&&Wn>=Dn)&&Pn.push(Hn)})}else switch($n!==void 0&&Pn.push(In.get($n)),Cn){case"add":isArray$3(_n)?isIntegerKey($n)&&Pn.push(In.get("length")):(Pn.push(In.get(ITERATE_KEY)),isMap(_n)&&Pn.push(In.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$3(_n)||(Pn.push(In.get(ITERATE_KEY)),isMap(_n)&&Pn.push(In.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(_n)&&Pn.push(In.get(ITERATE_KEY));break}if(Pn.length===1)Pn[0]&&triggerEffects(Pn[0]);else{const Dn=[];for(const Hn of Pn)Hn&&Dn.push(...Hn);triggerEffects(createDep(Dn))}}function triggerEffects(_n,Cn){const $n=isArray$3(_n)?_n:[..._n];for(const Nn of $n)Nn.computed&&triggerEffect(Nn);for(const Nn of $n)Nn.computed||triggerEffect(Nn)}function triggerEffect(_n,Cn){(_n!==activeEffect||_n.allowRecurse)&&(_n.scheduler?_n.scheduler():_n.run())}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(_n=>_n!=="arguments"&&_n!=="caller").map(_n=>Symbol[_n]).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const _n={};return["includes","indexOf","lastIndexOf"].forEach(Cn=>{_n[Cn]=function(...$n){const Nn=toRaw(this);for(let Ln=0,In=this.length;Ln{_n[Cn]=function(...$n){pauseTracking();const Nn=toRaw(this)[Cn].apply(this,$n);return resetTracking(),Nn}}),_n}function hasOwnProperty$a(_n){const Cn=toRaw(this);return track(Cn,"has",_n),Cn.hasOwnProperty(_n)}class BaseReactiveHandler{constructor(Cn=!1,$n=!1){this._isReadonly=Cn,this._shallow=$n}get(Cn,$n,Nn){const Bn=this._isReadonly,Ln=this._shallow;if($n==="__v_isReactive")return!Bn;if($n==="__v_isReadonly")return Bn;if($n==="__v_isShallow")return Ln;if($n==="__v_raw"&&Nn===(Bn?Ln?shallowReadonlyMap:readonlyMap:Ln?shallowReactiveMap:reactiveMap).get(Cn))return Cn;const In=isArray$3(Cn);if(!Bn){if(In&&hasOwn(arrayInstrumentations,$n))return Reflect.get(arrayInstrumentations,$n,Nn);if($n==="hasOwnProperty")return hasOwnProperty$a}const Pn=Reflect.get(Cn,$n,Nn);return(isSymbol($n)?builtInSymbols.has($n):isNonTrackableKeys($n))||(Bn||track(Cn,"get",$n),Ln)?Pn:isRef(Pn)?In&&isIntegerKey($n)?Pn:Pn.value:isObject$5(Pn)?Bn?readonly(Pn):reactive(Pn):Pn}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(Cn=!1){super(!1,Cn)}set(Cn,$n,Nn,Bn){let Ln=Cn[$n];if(isReadonly(Ln)&&isRef(Ln)&&!isRef(Nn))return!1;if(!this._shallow&&(!isShallow(Nn)&&!isReadonly(Nn)&&(Ln=toRaw(Ln),Nn=toRaw(Nn)),!isArray$3(Cn)&&isRef(Ln)&&!isRef(Nn)))return Ln.value=Nn,!0;const In=isArray$3(Cn)&&isIntegerKey($n)?Number($n)_n,getProto=_n=>Reflect.getPrototypeOf(_n);function get(_n,Cn,$n=!1,Nn=!1){_n=_n.__v_raw;const Bn=toRaw(_n),Ln=toRaw(Cn);$n||(hasChanged(Cn,Ln)&&track(Bn,"get",Cn),track(Bn,"get",Ln));const{has:In}=getProto(Bn),Pn=Nn?toShallow:$n?toReadonly:toReactive;if(In.call(Bn,Cn))return Pn(_n.get(Cn));if(In.call(Bn,Ln))return Pn(_n.get(Ln));_n!==Bn&&_n.get(Cn)}function has(_n,Cn=!1){const $n=this.__v_raw,Nn=toRaw($n),Bn=toRaw(_n);return Cn||(hasChanged(_n,Bn)&&track(Nn,"has",_n),track(Nn,"has",Bn)),_n===Bn?$n.has(_n):$n.has(_n)||$n.has(Bn)}function size(_n,Cn=!1){return _n=_n.__v_raw,!Cn&&track(toRaw(_n),"iterate",ITERATE_KEY),Reflect.get(_n,"size",_n)}function add(_n){_n=toRaw(_n);const Cn=toRaw(this);return getProto(Cn).has.call(Cn,_n)||(Cn.add(_n),trigger(Cn,"add",_n,_n)),this}function set$1(_n,Cn){Cn=toRaw(Cn);const $n=toRaw(this),{has:Nn,get:Bn}=getProto($n);let Ln=Nn.call($n,_n);Ln||(_n=toRaw(_n),Ln=Nn.call($n,_n));const In=Bn.call($n,_n);return $n.set(_n,Cn),Ln?hasChanged(Cn,In)&&trigger($n,"set",_n,Cn):trigger($n,"add",_n,Cn),this}function deleteEntry(_n){const Cn=toRaw(this),{has:$n,get:Nn}=getProto(Cn);let Bn=$n.call(Cn,_n);Bn||(_n=toRaw(_n),Bn=$n.call(Cn,_n)),Nn&&Nn.call(Cn,_n);const Ln=Cn.delete(_n);return Bn&&trigger(Cn,"delete",_n,void 0),Ln}function clear(){const _n=toRaw(this),Cn=_n.size!==0,$n=_n.clear();return Cn&&trigger(_n,"clear",void 0,void 0),$n}function createForEach(_n,Cn){return function(Nn,Bn){const Ln=this,In=Ln.__v_raw,Pn=toRaw(In),Dn=Cn?toShallow:_n?toReadonly:toReactive;return!_n&&track(Pn,"iterate",ITERATE_KEY),In.forEach((Hn,Wn)=>Nn.call(Bn,Dn(Hn),Dn(Wn),Ln))}}function createIterableMethod(_n,Cn,$n){return function(...Nn){const Bn=this.__v_raw,Ln=toRaw(Bn),In=isMap(Ln),Pn=_n==="entries"||_n===Symbol.iterator&&In,Dn=_n==="keys"&&In,Hn=Bn[_n](...Nn),Wn=$n?toShallow:Cn?toReadonly:toReactive;return!Cn&&track(Ln,"iterate",Dn?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Yn,done:Gn}=Hn.next();return Gn?{value:Yn,done:Gn}:{value:Pn?[Wn(Yn[0]),Wn(Yn[1])]:Wn(Yn),done:Gn}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(_n){return function(...Cn){return _n==="delete"?!1:_n==="clear"?void 0:this}}function createInstrumentations(){const _n={get(Ln){return get(this,Ln)},get size(){return size(this)},has,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},Cn={get(Ln){return get(this,Ln,!1,!0)},get size(){return size(this)},has,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},$n={get(Ln){return get(this,Ln,!0)},get size(){return size(this,!0)},has(Ln){return has.call(this,Ln,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},Nn={get(Ln){return get(this,Ln,!0,!0)},get size(){return size(this,!0)},has(Ln){return has.call(this,Ln,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(Ln=>{_n[Ln]=createIterableMethod(Ln,!1,!1),$n[Ln]=createIterableMethod(Ln,!0,!1),Cn[Ln]=createIterableMethod(Ln,!1,!0),Nn[Ln]=createIterableMethod(Ln,!0,!0)}),[_n,$n,Cn,Nn]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(_n,Cn){const $n=Cn?_n?shallowReadonlyInstrumentations:shallowInstrumentations:_n?readonlyInstrumentations:mutableInstrumentations;return(Nn,Bn,Ln)=>Bn==="__v_isReactive"?!_n:Bn==="__v_isReadonly"?_n:Bn==="__v_raw"?Nn:Reflect.get(hasOwn($n,Bn)&&Bn in Nn?$n:Nn,Bn,Ln)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(_n){switch(_n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(_n){return _n.__v_skip||!Object.isExtensible(_n)?0:targetTypeMap(toRawType(_n))}function reactive(_n){return isReadonly(_n)?_n:createReactiveObject(_n,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(_n){return createReactiveObject(_n,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(_n){return createReactiveObject(_n,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(_n,Cn,$n,Nn,Bn){if(!isObject$5(_n)||_n.__v_raw&&!(Cn&&_n.__v_isReactive))return _n;const Ln=Bn.get(_n);if(Ln)return Ln;const In=getTargetType(_n);if(In===0)return _n;const Pn=new Proxy(_n,In===2?Nn:$n);return Bn.set(_n,Pn),Pn}function isReactive(_n){return isReadonly(_n)?isReactive(_n.__v_raw):!!(_n&&_n.__v_isReactive)}function isReadonly(_n){return!!(_n&&_n.__v_isReadonly)}function isShallow(_n){return!!(_n&&_n.__v_isShallow)}function isProxy(_n){return isReactive(_n)||isReadonly(_n)}function toRaw(_n){const Cn=_n&&_n.__v_raw;return Cn?toRaw(Cn):_n}function markRaw(_n){return def(_n,"__v_skip",!0),_n}const toReactive=_n=>isObject$5(_n)?reactive(_n):_n,toReadonly=_n=>isObject$5(_n)?readonly(_n):_n;function trackRefValue(_n){shouldTrack&&activeEffect&&(_n=toRaw(_n),trackEffects(_n.dep||(_n.dep=createDep())))}function triggerRefValue(_n,Cn){_n=toRaw(_n);const $n=_n.dep;$n&&triggerEffects($n)}function isRef(_n){return!!(_n&&_n.__v_isRef===!0)}function ref(_n){return createRef(_n,!1)}function shallowRef(_n){return createRef(_n,!0)}function createRef(_n,Cn){return isRef(_n)?_n:new RefImpl(_n,Cn)}class RefImpl{constructor(Cn,$n){this.__v_isShallow=$n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=$n?Cn:toRaw(Cn),this._value=$n?Cn:toReactive(Cn)}get value(){return trackRefValue(this),this._value}set value(Cn){const $n=this.__v_isShallow||isShallow(Cn)||isReadonly(Cn);Cn=$n?Cn:toRaw(Cn),hasChanged(Cn,this._rawValue)&&(this._rawValue=Cn,this._value=$n?Cn:toReactive(Cn),triggerRefValue(this))}}function unref(_n){return isRef(_n)?_n.value:_n}const shallowUnwrapHandlers={get:(_n,Cn,$n)=>unref(Reflect.get(_n,Cn,$n)),set:(_n,Cn,$n,Nn)=>{const Bn=_n[Cn];return isRef(Bn)&&!isRef($n)?(Bn.value=$n,!0):Reflect.set(_n,Cn,$n,Nn)}};function proxyRefs(_n){return isReactive(_n)?_n:new Proxy(_n,shallowUnwrapHandlers)}class ComputedRefImpl{constructor(Cn,$n,Nn,Bn){this._setter=$n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(Cn,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!Bn,this.__v_isReadonly=Nn}get value(){const Cn=toRaw(this);return trackRefValue(Cn),(Cn._dirty||!Cn._cacheable)&&(Cn._dirty=!1,Cn._value=Cn.effect.run()),Cn._value}set value(Cn){this._setter(Cn)}}function computed$1(_n,Cn,$n=!1){let Nn,Bn;const Ln=isFunction$2(_n);return Ln?(Nn=_n,Bn=NOOP):(Nn=_n.get,Bn=_n.set),new ComputedRefImpl(Nn,Bn,Ln||!Bn,$n)}function warn(_n,...Cn){}function callWithErrorHandling(_n,Cn,$n,Nn){let Bn;try{Bn=Nn?_n(...Nn):_n()}catch(Ln){handleError(Ln,Cn,$n)}return Bn}function callWithAsyncErrorHandling(_n,Cn,$n,Nn){if(isFunction$2(_n)){const Ln=callWithErrorHandling(_n,Cn,$n,Nn);return Ln&&isPromise(Ln)&&Ln.catch(In=>{handleError(In,Cn,$n)}),Ln}const Bn=[];for(let Ln=0;Ln<_n.length;Ln++)Bn.push(callWithAsyncErrorHandling(_n[Ln],Cn,$n,Nn));return Bn}function handleError(_n,Cn,$n,Nn=!0){const Bn=Cn?Cn.vnode:null;if(Cn){let Ln=Cn.parent;const In=Cn.proxy,Pn=$n;for(;Ln;){const Hn=Ln.ec;if(Hn){for(let Wn=0;Wn>>1,Bn=queue[Nn],Ln=getId(Bn);Ln<_n||Ln===_n&&Bn.pre?Cn=Nn+1:$n=Nn}return Cn}function queueJob(_n){(!queue.length||!queue.includes(_n,isFlushing&&_n.allowRecurse?flushIndex+1:flushIndex))&&(_n.id==null?queue.push(_n):queue.splice(findInsertionIndex(_n.id),0,_n),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(_n){const Cn=queue.indexOf(_n);Cn>flushIndex&&queue.splice(Cn,1)}function queuePostFlushCb(_n){isArray$3(_n)?pendingPostFlushCbs.push(..._n):(!activePostFlushCbs||!activePostFlushCbs.includes(_n,_n.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(_n),queueFlush()}function flushPreFlushCbs(_n,Cn=isFlushing?flushIndex+1:0){for(;CngetId($n)-getId(Nn)),postFlushIndex=0;postFlushIndex_n.id==null?1/0:_n.id,comparator=(_n,Cn)=>{const $n=getId(_n)-getId(Cn);if($n===0){if(_n.pre&&!Cn.pre)return-1;if(Cn.pre&&!_n.pre)return 1}return $n};function flushJobs(_n){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const Cn=NOOP;try{for(flushIndex=0;flushIndexisString$1(ei)?ei.trim():ei)),Yn&&(Bn=$n.map(looseToNumber))}let Pn,Dn=Nn[Pn=toHandlerKey(Cn)]||Nn[Pn=toHandlerKey(camelize(Cn))];!Dn&&Ln&&(Dn=Nn[Pn=toHandlerKey(hyphenate(Cn))]),Dn&&callWithAsyncErrorHandling(Dn,_n,6,Bn);const Hn=Nn[Pn+"Once"];if(Hn){if(!_n.emitted)_n.emitted={};else if(_n.emitted[Pn])return;_n.emitted[Pn]=!0,callWithAsyncErrorHandling(Hn,_n,6,Bn)}}function normalizeEmitsOptions(_n,Cn,$n=!1){const Nn=Cn.emitsCache,Bn=Nn.get(_n);if(Bn!==void 0)return Bn;const Ln=_n.emits;let In={},Pn=!1;if(!isFunction$2(_n)){const Dn=Hn=>{const Wn=normalizeEmitsOptions(Hn,Cn,!0);Wn&&(Pn=!0,extend$3(In,Wn))};!$n&&Cn.mixins.length&&Cn.mixins.forEach(Dn),_n.extends&&Dn(_n.extends),_n.mixins&&_n.mixins.forEach(Dn)}return!Ln&&!Pn?(isObject$5(_n)&&Nn.set(_n,null),null):(isArray$3(Ln)?Ln.forEach(Dn=>In[Dn]=null):extend$3(In,Ln),isObject$5(_n)&&Nn.set(_n,In),In)}function isEmitListener(_n,Cn){return!_n||!isOn(Cn)?!1:(Cn=Cn.slice(2).replace(/Once$/,""),hasOwn(_n,Cn[0].toLowerCase()+Cn.slice(1))||hasOwn(_n,hyphenate(Cn))||hasOwn(_n,Cn))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(_n){const Cn=currentRenderingInstance;return currentRenderingInstance=_n,currentScopeId=_n&&_n.type.__scopeId||null,Cn}function pushScopeId(_n){currentScopeId=_n}function popScopeId(){currentScopeId=null}function withCtx(_n,Cn=currentRenderingInstance,$n){if(!Cn||_n._n)return _n;const Nn=(...Bn)=>{Nn._d&&setBlockTracking(-1);const Ln=setCurrentRenderingInstance(Cn);let In;try{In=_n(...Bn)}finally{setCurrentRenderingInstance(Ln),Nn._d&&setBlockTracking(1)}return In};return Nn._n=!0,Nn._c=!0,Nn._d=!0,Nn}function markAttrsAccessed(){}function renderComponentRoot(_n){const{type:Cn,vnode:$n,proxy:Nn,withProxy:Bn,props:Ln,propsOptions:[In],slots:Pn,attrs:Dn,emit:Hn,render:Wn,renderCache:Yn,data:Gn,setupState:ei,ctx:nr,inheritAttrs:ni}=_n;let ai,si;const gi=setCurrentRenderingInstance(_n);try{if($n.shapeFlag&4){const ri=Bn||Nn,Ei=ri;ai=normalizeVNode(Wn.call(Ei,ri,Yn,Ln,ei,Gn,nr)),si=Dn}else{const ri=Cn;ai=normalizeVNode(ri.length>1?ri(Ln,{attrs:Dn,slots:Pn,emit:Hn}):ri(Ln,null)),si=Cn.props?Dn:getFunctionalFallthrough(Dn)}}catch(ri){blockStack.length=0,handleError(ri,_n,1),ai=createVNode(Comment)}let Si=ai;if(si&&ni!==!1){const ri=Object.keys(si),{shapeFlag:Ei}=Si;ri.length&&Ei&7&&(In&&ri.some(isModelListener)&&(si=filterModelListeners(si,In)),Si=cloneVNode(Si,si))}return $n.dirs&&(Si=cloneVNode(Si),Si.dirs=Si.dirs?Si.dirs.concat($n.dirs):$n.dirs),$n.transition&&(Si.transition=$n.transition),ai=Si,setCurrentRenderingInstance(gi),ai}const getFunctionalFallthrough=_n=>{let Cn;for(const $n in _n)($n==="class"||$n==="style"||isOn($n))&&((Cn||(Cn={}))[$n]=_n[$n]);return Cn},filterModelListeners=(_n,Cn)=>{const $n={};for(const Nn in _n)(!isModelListener(Nn)||!(Nn.slice(9)in Cn))&&($n[Nn]=_n[Nn]);return $n};function shouldUpdateComponent(_n,Cn,$n){const{props:Nn,children:Bn,component:Ln}=_n,{props:In,children:Pn,patchFlag:Dn}=Cn,Hn=Ln.emitsOptions;if(Cn.dirs||Cn.transition)return!0;if($n&&Dn>=0){if(Dn&1024)return!0;if(Dn&16)return Nn?hasPropsChanged(Nn,In,Hn):!!In;if(Dn&8){const Wn=Cn.dynamicProps;for(let Yn=0;Yn_n.__isSuspense;function queueEffectWithSuspense(_n,Cn){Cn&&Cn.pendingBranch?isArray$3(_n)?Cn.effects.push(..._n):Cn.effects.push(_n):queuePostFlushCb(_n)}const INITIAL_WATCHER_VALUE={};function watch(_n,Cn,$n){return doWatch(_n,Cn,$n)}function doWatch(_n,Cn,{immediate:$n,deep:Nn,flush:Bn,onTrack:Ln,onTrigger:In}=EMPTY_OBJ){var Pn;const Dn=getCurrentScope()===((Pn=currentInstance)==null?void 0:Pn.scope)?currentInstance:null;let Hn,Wn=!1,Yn=!1;if(isRef(_n)?(Hn=()=>_n.value,Wn=isShallow(_n)):isReactive(_n)?(Hn=()=>_n,Nn=!0):isArray$3(_n)?(Yn=!0,Wn=_n.some(ri=>isReactive(ri)||isShallow(ri)),Hn=()=>_n.map(ri=>{if(isRef(ri))return ri.value;if(isReactive(ri))return traverse(ri);if(isFunction$2(ri))return callWithErrorHandling(ri,Dn,2)})):isFunction$2(_n)?Cn?Hn=()=>callWithErrorHandling(_n,Dn,2):Hn=()=>{if(!(Dn&&Dn.isUnmounted))return Gn&&Gn(),callWithAsyncErrorHandling(_n,Dn,3,[ei])}:Hn=NOOP,Cn&&Nn){const ri=Hn;Hn=()=>traverse(ri())}let Gn,ei=ri=>{Gn=gi.onStop=()=>{callWithErrorHandling(ri,Dn,4),Gn=gi.onStop=void 0}},nr;if(isInSSRComponentSetup)if(ei=NOOP,Cn?$n&&callWithAsyncErrorHandling(Cn,Dn,3,[Hn(),Yn?[]:void 0,ei]):Hn(),Bn==="sync"){const ri=useSSRContext();nr=ri.__watcherHandles||(ri.__watcherHandles=[])}else return NOOP;let ni=Yn?new Array(_n.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const ai=()=>{if(gi.active)if(Cn){const ri=gi.run();(Nn||Wn||(Yn?ri.some((Ei,$i)=>hasChanged(Ei,ni[$i])):hasChanged(ri,ni)))&&(Gn&&Gn(),callWithAsyncErrorHandling(Cn,Dn,3,[ri,ni===INITIAL_WATCHER_VALUE?void 0:Yn&&ni[0]===INITIAL_WATCHER_VALUE?[]:ni,ei]),ni=ri)}else gi.run()};ai.allowRecurse=!!Cn;let si;Bn==="sync"?si=ai:Bn==="post"?si=()=>queuePostRenderEffect(ai,Dn&&Dn.suspense):(ai.pre=!0,Dn&&(ai.id=Dn.uid),si=()=>queueJob(ai));const gi=new ReactiveEffect(Hn,si);Cn?$n?ai():ni=gi.run():Bn==="post"?queuePostRenderEffect(gi.run.bind(gi),Dn&&Dn.suspense):gi.run();const Si=()=>{gi.stop(),Dn&&Dn.scope&&remove(Dn.scope.effects,gi)};return nr&&nr.push(Si),Si}function instanceWatch(_n,Cn,$n){const Nn=this.proxy,Bn=isString$1(_n)?_n.includes(".")?createPathGetter(Nn,_n):()=>Nn[_n]:_n.bind(Nn,Nn);let Ln;isFunction$2(Cn)?Ln=Cn:(Ln=Cn.handler,$n=Cn);const In=currentInstance;setCurrentInstance(this);const Pn=doWatch(Bn,Ln.bind(Nn),$n);return In?setCurrentInstance(In):unsetCurrentInstance(),Pn}function createPathGetter(_n,Cn){const $n=Cn.split(".");return()=>{let Nn=_n;for(let Bn=0;Bn<$n.length&&Nn;Bn++)Nn=Nn[$n[Bn]];return Nn}}function traverse(_n,Cn){if(!isObject$5(_n)||_n.__v_skip||(Cn=Cn||new Set,Cn.has(_n)))return _n;if(Cn.add(_n),isRef(_n))traverse(_n.value,Cn);else if(isArray$3(_n))for(let $n=0;$n<_n.length;$n++)traverse(_n[$n],Cn);else if(isSet(_n)||isMap(_n))_n.forEach($n=>{traverse($n,Cn)});else if(isPlainObject$3(_n))for(const $n in _n)traverse(_n[$n],Cn);return _n}function withDirectives(_n,Cn){const $n=currentRenderingInstance;if($n===null)return _n;const Nn=getExposeProxy($n)||$n.proxy,Bn=_n.dirs||(_n.dirs=[]);for(let Ln=0;Ln{_n.isMounted=!0}),onBeforeUnmount(()=>{_n.isUnmounting=!0}),_n}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(_n,{slots:Cn}){const $n=getCurrentInstance(),Nn=useTransitionState();let Bn;return()=>{const Ln=Cn.default&&getTransitionRawChildren(Cn.default(),!0);if(!Ln||!Ln.length)return;let In=Ln[0];if(Ln.length>1){for(const ni of Ln)if(ni.type!==Comment){In=ni;break}}const Pn=toRaw(_n),{mode:Dn}=Pn;if(Nn.isLeaving)return emptyPlaceholder(In);const Hn=getKeepAliveChild(In);if(!Hn)return emptyPlaceholder(In);const Wn=resolveTransitionHooks(Hn,Pn,Nn,$n);setTransitionHooks(Hn,Wn);const Yn=$n.subTree,Gn=Yn&&getKeepAliveChild(Yn);let ei=!1;const{getTransitionKey:nr}=Hn.type;if(nr){const ni=nr();Bn===void 0?Bn=ni:ni!==Bn&&(Bn=ni,ei=!0)}if(Gn&&Gn.type!==Comment&&(!isSameVNodeType(Hn,Gn)||ei)){const ni=resolveTransitionHooks(Gn,Pn,Nn,$n);if(setTransitionHooks(Gn,ni),Dn==="out-in")return Nn.isLeaving=!0,ni.afterLeave=()=>{Nn.isLeaving=!1,$n.update.active!==!1&&$n.update()},emptyPlaceholder(In);Dn==="in-out"&&Hn.type!==Comment&&(ni.delayLeave=(ai,si,gi)=>{const Si=getLeavingNodesForType(Nn,Gn);Si[String(Gn.key)]=Gn,ai[leaveCbKey]=()=>{si(),ai[leaveCbKey]=void 0,delete Wn.delayedLeave},Wn.delayedLeave=gi})}return In}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(_n,Cn){const{leavingVNodes:$n}=_n;let Nn=$n.get(Cn.type);return Nn||(Nn=Object.create(null),$n.set(Cn.type,Nn)),Nn}function resolveTransitionHooks(_n,Cn,$n,Nn){const{appear:Bn,mode:Ln,persisted:In=!1,onBeforeEnter:Pn,onEnter:Dn,onAfterEnter:Hn,onEnterCancelled:Wn,onBeforeLeave:Yn,onLeave:Gn,onAfterLeave:ei,onLeaveCancelled:nr,onBeforeAppear:ni,onAppear:ai,onAfterAppear:si,onAppearCancelled:gi}=Cn,Si=String(_n.key),ri=getLeavingNodesForType($n,_n),Ei=(ui,ii)=>{ui&&callWithAsyncErrorHandling(ui,Nn,9,ii)},$i=(ui,ii)=>{const ci=ii[1];Ei(ui,ii),isArray$3(ui)?ui.every(mi=>mi.length<=1)&&ci():ui.length<=1&&ci()},zn={mode:Ln,persisted:In,beforeEnter(ui){let ii=Pn;if(!$n.isMounted)if(Bn)ii=ni||Pn;else return;ui[leaveCbKey]&&ui[leaveCbKey](!0);const ci=ri[Si];ci&&isSameVNodeType(_n,ci)&&ci.el[leaveCbKey]&&ci.el[leaveCbKey](),Ei(ii,[ui])},enter(ui){let ii=Dn,ci=Hn,mi=Wn;if(!$n.isMounted)if(Bn)ii=ai||Dn,ci=si||Hn,mi=gi||Wn;else return;let _i=!1;const yi=ui[enterCbKey]=Fi=>{_i||(_i=!0,Fi?Ei(mi,[ui]):Ei(ci,[ui]),zn.delayedLeave&&zn.delayedLeave(),ui[enterCbKey]=void 0)};ii?$i(ii,[ui,yi]):yi()},leave(ui,ii){const ci=String(_n.key);if(ui[enterCbKey]&&ui[enterCbKey](!0),$n.isUnmounting)return ii();Ei(Yn,[ui]);let mi=!1;const _i=ui[leaveCbKey]=yi=>{mi||(mi=!0,ii(),yi?Ei(nr,[ui]):Ei(ei,[ui]),ui[leaveCbKey]=void 0,ri[ci]===_n&&delete ri[ci])};ri[ci]=_n,Gn?$i(Gn,[ui,_i]):_i()},clone(ui){return resolveTransitionHooks(ui,Cn,$n,Nn)}};return zn}function emptyPlaceholder(_n){if(isKeepAlive(_n))return _n=cloneVNode(_n),_n.children=null,_n}function getKeepAliveChild(_n){return isKeepAlive(_n)?_n.children?_n.children[0]:void 0:_n}function setTransitionHooks(_n,Cn){_n.shapeFlag&6&&_n.component?setTransitionHooks(_n.component.subTree,Cn):_n.shapeFlag&128?(_n.ssContent.transition=Cn.clone(_n.ssContent),_n.ssFallback.transition=Cn.clone(_n.ssFallback)):_n.transition=Cn}function getTransitionRawChildren(_n,Cn=!1,$n){let Nn=[],Bn=0;for(let Ln=0;Ln<_n.length;Ln++){let In=_n[Ln];const Pn=$n==null?In.key:String($n)+String(In.key!=null?In.key:Ln);In.type===Fragment?(In.patchFlag&128&&Bn++,Nn=Nn.concat(getTransitionRawChildren(In.children,Cn,Pn))):(Cn||In.type!==Comment)&&Nn.push(Pn!=null?cloneVNode(In,{key:Pn}):In)}if(Bn>1)for(let Ln=0;Lnextend$3({name:_n.name},Cn,{setup:_n}))():_n}const isAsyncWrapper=_n=>!!_n.type.__asyncLoader,isKeepAlive=_n=>_n.type.__isKeepAlive;function onActivated(_n,Cn){registerKeepAliveHook(_n,"a",Cn)}function onDeactivated(_n,Cn){registerKeepAliveHook(_n,"da",Cn)}function registerKeepAliveHook(_n,Cn,$n=currentInstance){const Nn=_n.__wdc||(_n.__wdc=()=>{let Bn=$n;for(;Bn;){if(Bn.isDeactivated)return;Bn=Bn.parent}return _n()});if(injectHook(Cn,Nn,$n),$n){let Bn=$n.parent;for(;Bn&&Bn.parent;)isKeepAlive(Bn.parent.vnode)&&injectToKeepAliveRoot(Nn,Cn,$n,Bn),Bn=Bn.parent}}function injectToKeepAliveRoot(_n,Cn,$n,Nn){const Bn=injectHook(Cn,_n,Nn,!0);onUnmounted(()=>{remove(Nn[Cn],Bn)},$n)}function injectHook(_n,Cn,$n=currentInstance,Nn=!1){if($n){const Bn=$n[_n]||($n[_n]=[]),Ln=Cn.__weh||(Cn.__weh=(...In)=>{if($n.isUnmounted)return;pauseTracking(),setCurrentInstance($n);const Pn=callWithAsyncErrorHandling(Cn,$n,_n,In);return unsetCurrentInstance(),resetTracking(),Pn});return Nn?Bn.unshift(Ln):Bn.push(Ln),Ln}}const createHook=_n=>(Cn,$n=currentInstance)=>(!isInSSRComponentSetup||_n==="sp")&&injectHook(_n,(...Nn)=>Cn(...Nn),$n),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(_n,Cn=currentInstance){injectHook("ec",_n,Cn)}function renderList(_n,Cn,$n,Nn){let Bn;const Ln=$n&&$n[Nn];if(isArray$3(_n)||isString$1(_n)){Bn=new Array(_n.length);for(let In=0,Pn=_n.length;InCn(In,Pn,void 0,Ln&&Ln[Pn]));else{const In=Object.keys(_n);Bn=new Array(In.length);for(let Pn=0,Dn=In.length;PnisVNode(Cn)?!(Cn.type===Comment||Cn.type===Fragment&&!ensureValidVNode(Cn.children)):!0)?_n:null}const getPublicInstance=_n=>_n?isStatefulComponent(_n)?getExposeProxy(_n)||_n.proxy:getPublicInstance(_n.parent):null,publicPropertiesMap=extend$3(Object.create(null),{$:_n=>_n,$el:_n=>_n.vnode.el,$data:_n=>_n.data,$props:_n=>_n.props,$attrs:_n=>_n.attrs,$slots:_n=>_n.slots,$refs:_n=>_n.refs,$parent:_n=>getPublicInstance(_n.parent),$root:_n=>getPublicInstance(_n.root),$emit:_n=>_n.emit,$options:_n=>resolveMergedOptions(_n),$forceUpdate:_n=>_n.f||(_n.f=()=>queueJob(_n.update)),$nextTick:_n=>_n.n||(_n.n=nextTick.bind(_n.proxy)),$watch:_n=>instanceWatch.bind(_n)}),hasSetupBinding=(_n,Cn)=>_n!==EMPTY_OBJ&&!_n.__isScriptSetup&&hasOwn(_n,Cn),PublicInstanceProxyHandlers={get({_:_n},Cn){const{ctx:$n,setupState:Nn,data:Bn,props:Ln,accessCache:In,type:Pn,appContext:Dn}=_n;let Hn;if(Cn[0]!=="$"){const ei=In[Cn];if(ei!==void 0)switch(ei){case 1:return Nn[Cn];case 2:return Bn[Cn];case 4:return $n[Cn];case 3:return Ln[Cn]}else{if(hasSetupBinding(Nn,Cn))return In[Cn]=1,Nn[Cn];if(Bn!==EMPTY_OBJ&&hasOwn(Bn,Cn))return In[Cn]=2,Bn[Cn];if((Hn=_n.propsOptions[0])&&hasOwn(Hn,Cn))return In[Cn]=3,Ln[Cn];if($n!==EMPTY_OBJ&&hasOwn($n,Cn))return In[Cn]=4,$n[Cn];shouldCacheAccess&&(In[Cn]=0)}}const Wn=publicPropertiesMap[Cn];let Yn,Gn;if(Wn)return Cn==="$attrs"&&track(_n,"get",Cn),Wn(_n);if((Yn=Pn.__cssModules)&&(Yn=Yn[Cn]))return Yn;if($n!==EMPTY_OBJ&&hasOwn($n,Cn))return In[Cn]=4,$n[Cn];if(Gn=Dn.config.globalProperties,hasOwn(Gn,Cn))return Gn[Cn]},set({_:_n},Cn,$n){const{data:Nn,setupState:Bn,ctx:Ln}=_n;return hasSetupBinding(Bn,Cn)?(Bn[Cn]=$n,!0):Nn!==EMPTY_OBJ&&hasOwn(Nn,Cn)?(Nn[Cn]=$n,!0):hasOwn(_n.props,Cn)||Cn[0]==="$"&&Cn.slice(1)in _n?!1:(Ln[Cn]=$n,!0)},has({_:{data:_n,setupState:Cn,accessCache:$n,ctx:Nn,appContext:Bn,propsOptions:Ln}},In){let Pn;return!!$n[In]||_n!==EMPTY_OBJ&&hasOwn(_n,In)||hasSetupBinding(Cn,In)||(Pn=Ln[0])&&hasOwn(Pn,In)||hasOwn(Nn,In)||hasOwn(publicPropertiesMap,In)||hasOwn(Bn.config.globalProperties,In)},defineProperty(_n,Cn,$n){return $n.get!=null?_n._.accessCache[Cn]=0:hasOwn($n,"value")&&this.set(_n,Cn,$n.value,null),Reflect.defineProperty(_n,Cn,$n)}};function normalizePropsOrEmits(_n){return isArray$3(_n)?_n.reduce((Cn,$n)=>(Cn[$n]=null,Cn),{}):_n}let shouldCacheAccess=!0;function applyOptions(_n){const Cn=resolveMergedOptions(_n),$n=_n.proxy,Nn=_n.ctx;shouldCacheAccess=!1,Cn.beforeCreate&&callHook$1(Cn.beforeCreate,_n,"bc");const{data:Bn,computed:Ln,methods:In,watch:Pn,provide:Dn,inject:Hn,created:Wn,beforeMount:Yn,mounted:Gn,beforeUpdate:ei,updated:nr,activated:ni,deactivated:ai,beforeDestroy:si,beforeUnmount:gi,destroyed:Si,unmounted:ri,render:Ei,renderTracked:$i,renderTriggered:zn,errorCaptured:ui,serverPrefetch:ii,expose:ci,inheritAttrs:mi,components:_i,directives:yi,filters:Fi}=Cn;if(Hn&&resolveInjections(Hn,Nn,null),In)for(const Ci in In){const Ri=In[Ci];isFunction$2(Ri)&&(Nn[Ci]=Ri.bind($n))}if(Bn){const Ci=Bn.call($n,$n);isObject$5(Ci)&&(_n.data=reactive(Ci))}if(shouldCacheAccess=!0,Ln)for(const Ci in Ln){const Ri=Ln[Ci],Hi=isFunction$2(Ri)?Ri.bind($n,$n):isFunction$2(Ri.get)?Ri.get.bind($n,$n):NOOP,aa=!isFunction$2(Ri)&&isFunction$2(Ri.set)?Ri.set.bind($n):NOOP,sa=computed({get:Hi,set:aa});Object.defineProperty(Nn,Ci,{enumerable:!0,configurable:!0,get:()=>sa.value,set:Pi=>sa.value=Pi})}if(Pn)for(const Ci in Pn)createWatcher(Pn[Ci],Nn,$n,Ci);if(Dn){const Ci=isFunction$2(Dn)?Dn.call($n):Dn;Reflect.ownKeys(Ci).forEach(Ri=>{provide(Ri,Ci[Ri])})}Wn&&callHook$1(Wn,_n,"c");function qo(Ci,Ri){isArray$3(Ri)?Ri.forEach(Hi=>Ci(Hi.bind($n))):Ri&&Ci(Ri.bind($n))}if(qo(onBeforeMount,Yn),qo(onMounted,Gn),qo(onBeforeUpdate,ei),qo(onUpdated,nr),qo(onActivated,ni),qo(onDeactivated,ai),qo(onErrorCaptured,ui),qo(onRenderTracked,$i),qo(onRenderTriggered,zn),qo(onBeforeUnmount,gi),qo(onUnmounted,ri),qo(onServerPrefetch,ii),isArray$3(ci))if(ci.length){const Ci=_n.exposed||(_n.exposed={});ci.forEach(Ri=>{Object.defineProperty(Ci,Ri,{get:()=>$n[Ri],set:Hi=>$n[Ri]=Hi})})}else _n.exposed||(_n.exposed={});Ei&&_n.render===NOOP&&(_n.render=Ei),mi!=null&&(_n.inheritAttrs=mi),_i&&(_n.components=_i),yi&&(_n.directives=yi)}function resolveInjections(_n,Cn,$n=NOOP){isArray$3(_n)&&(_n=normalizeInject(_n));for(const Nn in _n){const Bn=_n[Nn];let Ln;isObject$5(Bn)?"default"in Bn?Ln=inject(Bn.from||Nn,Bn.default,!0):Ln=inject(Bn.from||Nn):Ln=inject(Bn),isRef(Ln)?Object.defineProperty(Cn,Nn,{enumerable:!0,configurable:!0,get:()=>Ln.value,set:In=>Ln.value=In}):Cn[Nn]=Ln}}function callHook$1(_n,Cn,$n){callWithAsyncErrorHandling(isArray$3(_n)?_n.map(Nn=>Nn.bind(Cn.proxy)):_n.bind(Cn.proxy),Cn,$n)}function createWatcher(_n,Cn,$n,Nn){const Bn=Nn.includes(".")?createPathGetter($n,Nn):()=>$n[Nn];if(isString$1(_n)){const Ln=Cn[_n];isFunction$2(Ln)&&watch(Bn,Ln)}else if(isFunction$2(_n))watch(Bn,_n.bind($n));else if(isObject$5(_n))if(isArray$3(_n))_n.forEach(Ln=>createWatcher(Ln,Cn,$n,Nn));else{const Ln=isFunction$2(_n.handler)?_n.handler.bind($n):Cn[_n.handler];isFunction$2(Ln)&&watch(Bn,Ln,_n)}}function resolveMergedOptions(_n){const Cn=_n.type,{mixins:$n,extends:Nn}=Cn,{mixins:Bn,optionsCache:Ln,config:{optionMergeStrategies:In}}=_n.appContext,Pn=Ln.get(Cn);let Dn;return Pn?Dn=Pn:!Bn.length&&!$n&&!Nn?Dn=Cn:(Dn={},Bn.length&&Bn.forEach(Hn=>mergeOptions(Dn,Hn,In,!0)),mergeOptions(Dn,Cn,In)),isObject$5(Cn)&&Ln.set(Cn,Dn),Dn}function mergeOptions(_n,Cn,$n,Nn=!1){const{mixins:Bn,extends:Ln}=Cn;Ln&&mergeOptions(_n,Ln,$n,!0),Bn&&Bn.forEach(In=>mergeOptions(_n,In,$n,!0));for(const In in Cn)if(!(Nn&&In==="expose")){const Pn=internalOptionMergeStrats[In]||$n&&$n[In];_n[In]=Pn?Pn(_n[In],Cn[In]):Cn[In]}return _n}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(_n,Cn){return Cn?_n?function(){return extend$3(isFunction$2(_n)?_n.call(this,this):_n,isFunction$2(Cn)?Cn.call(this,this):Cn)}:Cn:_n}function mergeInject(_n,Cn){return mergeObjectOptions(normalizeInject(_n),normalizeInject(Cn))}function normalizeInject(_n){if(isArray$3(_n)){const Cn={};for(let $n=0;$n<_n.length;$n++)Cn[_n[$n]]=_n[$n];return Cn}return _n}function mergeAsArray(_n,Cn){return _n?[...new Set([].concat(_n,Cn))]:Cn}function mergeObjectOptions(_n,Cn){return _n?extend$3(Object.create(null),_n,Cn):Cn}function mergeEmitsOrPropsOptions(_n,Cn){return _n?isArray$3(_n)&&isArray$3(Cn)?[...new Set([..._n,...Cn])]:extend$3(Object.create(null),normalizePropsOrEmits(_n),normalizePropsOrEmits(Cn??{})):Cn}function mergeWatchOptions(_n,Cn){if(!_n)return Cn;if(!Cn)return _n;const $n=extend$3(Object.create(null),_n);for(const Nn in Cn)$n[Nn]=mergeAsArray(_n[Nn],Cn[Nn]);return $n}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(_n,Cn){return function(Nn,Bn=null){isFunction$2(Nn)||(Nn=extend$3({},Nn)),Bn!=null&&!isObject$5(Bn)&&(Bn=null);const Ln=createAppContext(),In=new WeakSet;let Pn=!1;const Dn=Ln.app={_uid:uid$1++,_component:Nn,_props:Bn,_container:null,_context:Ln,_instance:null,version:version$1,get config(){return Ln.config},set config(Hn){},use(Hn,...Wn){return In.has(Hn)||(Hn&&isFunction$2(Hn.install)?(In.add(Hn),Hn.install(Dn,...Wn)):isFunction$2(Hn)&&(In.add(Hn),Hn(Dn,...Wn))),Dn},mixin(Hn){return Ln.mixins.includes(Hn)||Ln.mixins.push(Hn),Dn},component(Hn,Wn){return Wn?(Ln.components[Hn]=Wn,Dn):Ln.components[Hn]},directive(Hn,Wn){return Wn?(Ln.directives[Hn]=Wn,Dn):Ln.directives[Hn]},mount(Hn,Wn,Yn){if(!Pn){const Gn=createVNode(Nn,Bn);return Gn.appContext=Ln,Wn&&Cn?Cn(Gn,Hn):_n(Gn,Hn,Yn),Pn=!0,Dn._container=Hn,Hn.__vue_app__=Dn,getExposeProxy(Gn.component)||Gn.component.proxy}},unmount(){Pn&&(_n(null,Dn._container),delete Dn._container.__vue_app__)},provide(Hn,Wn){return Ln.provides[Hn]=Wn,Dn},runWithContext(Hn){currentApp=Dn;try{return Hn()}finally{currentApp=null}}};return Dn}}let currentApp=null;function provide(_n,Cn){if(currentInstance){let $n=currentInstance.provides;const Nn=currentInstance.parent&¤tInstance.parent.provides;Nn===$n&&($n=currentInstance.provides=Object.create(Nn)),$n[_n]=Cn}}function inject(_n,Cn,$n=!1){const Nn=currentInstance||currentRenderingInstance;if(Nn||currentApp){const Bn=Nn?Nn.parent==null?Nn.vnode.appContext&&Nn.vnode.appContext.provides:Nn.parent.provides:currentApp._context.provides;if(Bn&&_n in Bn)return Bn[_n];if(arguments.length>1)return $n&&isFunction$2(Cn)?Cn.call(Nn&&Nn.proxy):Cn}}function initProps(_n,Cn,$n,Nn=!1){const Bn={},Ln={};def(Ln,InternalObjectKey,1),_n.propsDefaults=Object.create(null),setFullProps(_n,Cn,Bn,Ln);for(const In in _n.propsOptions[0])In in Bn||(Bn[In]=void 0);$n?_n.props=Nn?Bn:shallowReactive(Bn):_n.type.props?_n.props=Bn:_n.props=Ln,_n.attrs=Ln}function updateProps(_n,Cn,$n,Nn){const{props:Bn,attrs:Ln,vnode:{patchFlag:In}}=_n,Pn=toRaw(Bn),[Dn]=_n.propsOptions;let Hn=!1;if((Nn||In>0)&&!(In&16)){if(In&8){const Wn=_n.vnode.dynamicProps;for(let Yn=0;Yn{Dn=!0;const[Gn,ei]=normalizePropsOptions(Yn,Cn,!0);extend$3(In,Gn),ei&&Pn.push(...ei)};!$n&&Cn.mixins.length&&Cn.mixins.forEach(Wn),_n.extends&&Wn(_n.extends),_n.mixins&&_n.mixins.forEach(Wn)}if(!Ln&&!Dn)return isObject$5(_n)&&Nn.set(_n,EMPTY_ARR),EMPTY_ARR;if(isArray$3(Ln))for(let Wn=0;Wn-1,ei[1]=ni<0||nr-1||hasOwn(ei,"default"))&&Pn.push(Yn)}}}const Hn=[In,Pn];return isObject$5(_n)&&Nn.set(_n,Hn),Hn}function validatePropName(_n){return _n[0]!=="$"}function getType(_n){const Cn=_n&&_n.toString().match(/^\s*(function|class) (\w+)/);return Cn?Cn[2]:_n===null?"null":""}function isSameType(_n,Cn){return getType(_n)===getType(Cn)}function getTypeIndex(_n,Cn){return isArray$3(Cn)?Cn.findIndex($n=>isSameType($n,_n)):isFunction$2(Cn)&&isSameType(Cn,_n)?0:-1}const isInternalKey=_n=>_n[0]==="_"||_n==="$stable",normalizeSlotValue=_n=>isArray$3(_n)?_n.map(normalizeVNode):[normalizeVNode(_n)],normalizeSlot=(_n,Cn,$n)=>{if(Cn._n)return Cn;const Nn=withCtx((...Bn)=>normalizeSlotValue(Cn(...Bn)),$n);return Nn._c=!1,Nn},normalizeObjectSlots=(_n,Cn,$n)=>{const Nn=_n._ctx;for(const Bn in _n){if(isInternalKey(Bn))continue;const Ln=_n[Bn];if(isFunction$2(Ln))Cn[Bn]=normalizeSlot(Bn,Ln,Nn);else if(Ln!=null){const In=normalizeSlotValue(Ln);Cn[Bn]=()=>In}}},normalizeVNodeSlots=(_n,Cn)=>{const $n=normalizeSlotValue(Cn);_n.slots.default=()=>$n},initSlots=(_n,Cn)=>{if(_n.vnode.shapeFlag&32){const $n=Cn._;$n?(_n.slots=toRaw(Cn),def(Cn,"_",$n)):normalizeObjectSlots(Cn,_n.slots={})}else _n.slots={},Cn&&normalizeVNodeSlots(_n,Cn);def(_n.slots,InternalObjectKey,1)},updateSlots=(_n,Cn,$n)=>{const{vnode:Nn,slots:Bn}=_n;let Ln=!0,In=EMPTY_OBJ;if(Nn.shapeFlag&32){const Pn=Cn._;Pn?$n&&Pn===1?Ln=!1:(extend$3(Bn,Cn),!$n&&Pn===1&&delete Bn._):(Ln=!Cn.$stable,normalizeObjectSlots(Cn,Bn)),In=Cn}else Cn&&(normalizeVNodeSlots(_n,Cn),In={default:1});if(Ln)for(const Pn in Bn)!isInternalKey(Pn)&&In[Pn]==null&&delete Bn[Pn]};function setRef(_n,Cn,$n,Nn,Bn=!1){if(isArray$3(_n)){_n.forEach((Gn,ei)=>setRef(Gn,Cn&&(isArray$3(Cn)?Cn[ei]:Cn),$n,Nn,Bn));return}if(isAsyncWrapper(Nn)&&!Bn)return;const Ln=Nn.shapeFlag&4?getExposeProxy(Nn.component)||Nn.component.proxy:Nn.el,In=Bn?null:Ln,{i:Pn,r:Dn}=_n,Hn=Cn&&Cn.r,Wn=Pn.refs===EMPTY_OBJ?Pn.refs={}:Pn.refs,Yn=Pn.setupState;if(Hn!=null&&Hn!==Dn&&(isString$1(Hn)?(Wn[Hn]=null,hasOwn(Yn,Hn)&&(Yn[Hn]=null)):isRef(Hn)&&(Hn.value=null)),isFunction$2(Dn))callWithErrorHandling(Dn,Pn,12,[In,Wn]);else{const Gn=isString$1(Dn),ei=isRef(Dn);if(Gn||ei){const nr=()=>{if(_n.f){const ni=Gn?hasOwn(Yn,Dn)?Yn[Dn]:Wn[Dn]:Dn.value;Bn?isArray$3(ni)&&remove(ni,Ln):isArray$3(ni)?ni.includes(Ln)||ni.push(Ln):Gn?(Wn[Dn]=[Ln],hasOwn(Yn,Dn)&&(Yn[Dn]=Wn[Dn])):(Dn.value=[Ln],_n.k&&(Wn[_n.k]=Dn.value))}else Gn?(Wn[Dn]=In,hasOwn(Yn,Dn)&&(Yn[Dn]=In)):ei&&(Dn.value=In,_n.k&&(Wn[_n.k]=In))};In?(nr.id=-1,queuePostRenderEffect(nr,$n)):nr()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(_n){return baseCreateRenderer(_n)}function baseCreateRenderer(_n,Cn){const $n=getGlobalThis();$n.__VUE__=!0;const{insert:Nn,remove:Bn,patchProp:Ln,createElement:In,createText:Pn,createComment:Dn,setText:Hn,setElementText:Wn,parentNode:Yn,nextSibling:Gn,setScopeId:ei=NOOP,insertStaticContent:nr}=_n,ni=(di,hi,wi,Ii=null,Ni=null,Bi=null,Wi=!1,ji=null,Ui=!!hi.dynamicChildren)=>{if(di===hi)return;di&&!isSameVNodeType(di,hi)&&(Ii=Qo(di),Pi(di,Ni,Bi,!0),di=null),hi.patchFlag===-2&&(Ui=!1,hi.dynamicChildren=null);const{type:Vi,ref:Gi,shapeFlag:zi}=hi;switch(Vi){case Text:ai(di,hi,wi,Ii);break;case Comment:si(di,hi,wi,Ii);break;case Static:di==null&&gi(hi,wi,Ii,Wi);break;case Fragment:_i(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui);break;default:zi&1?Ei(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui):zi&6?yi(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui):(zi&64||zi&128)&&Vi.process(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui,Go)}Gi!=null&&Ni&&setRef(Gi,di&&di.ref,Bi,hi||di,!hi)},ai=(di,hi,wi,Ii)=>{if(di==null)Nn(hi.el=Pn(hi.children),wi,Ii);else{const Ni=hi.el=di.el;hi.children!==di.children&&Hn(Ni,hi.children)}},si=(di,hi,wi,Ii)=>{di==null?Nn(hi.el=Dn(hi.children||""),wi,Ii):hi.el=di.el},gi=(di,hi,wi,Ii)=>{[di.el,di.anchor]=nr(di.children,hi,wi,Ii,di.el,di.anchor)},Si=({el:di,anchor:hi},wi,Ii)=>{let Ni;for(;di&&di!==hi;)Ni=Gn(di),Nn(di,wi,Ii),di=Ni;Nn(hi,wi,Ii)},ri=({el:di,anchor:hi})=>{let wi;for(;di&&di!==hi;)wi=Gn(di),Bn(di),di=wi;Bn(hi)},Ei=(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui)=>{Wi=Wi||hi.type==="svg",di==null?$i(hi,wi,Ii,Ni,Bi,Wi,ji,Ui):ii(di,hi,Ni,Bi,Wi,ji,Ui)},$i=(di,hi,wi,Ii,Ni,Bi,Wi,ji)=>{let Ui,Vi;const{type:Gi,props:zi,shapeFlag:Yo,transition:Li,dirs:Zo}=di;if(Ui=di.el=In(di.type,Bi,zi&&zi.is,zi),Yo&8?Wn(Ui,di.children):Yo&16&&ui(di.children,Ui,null,Ii,Ni,Bi&&Gi!=="foreignObject",Wi,ji),Zo&&invokeDirectiveHook(di,null,Ii,"created"),zn(Ui,di,di.scopeId,Wi,Ii),zi){for(const fa in zi)fa!=="value"&&!isReservedProp(fa)&&Ln(Ui,fa,null,zi[fa],Bi,di.children,Ii,Ni,Zi);"value"in zi&&Ln(Ui,"value",null,zi.value),(Vi=zi.onVnodeBeforeMount)&&invokeVNodeHook(Vi,Ii,di)}Zo&&invokeDirectiveHook(di,null,Ii,"beforeMount");const da=needTransition(Ni,Li);da&&Li.beforeEnter(Ui),Nn(Ui,hi,wi),((Vi=zi&&zi.onVnodeMounted)||da||Zo)&&queuePostRenderEffect(()=>{Vi&&invokeVNodeHook(Vi,Ii,di),da&&Li.enter(Ui),Zo&&invokeDirectiveHook(di,null,Ii,"mounted")},Ni)},zn=(di,hi,wi,Ii,Ni)=>{if(wi&&ei(di,wi),Ii)for(let Bi=0;Bi{for(let Vi=Ui;Vi{const ji=hi.el=di.el;let{patchFlag:Ui,dynamicChildren:Vi,dirs:Gi}=hi;Ui|=di.patchFlag&16;const zi=di.props||EMPTY_OBJ,Yo=hi.props||EMPTY_OBJ;let Li;wi&&toggleRecurse(wi,!1),(Li=Yo.onVnodeBeforeUpdate)&&invokeVNodeHook(Li,wi,hi,di),Gi&&invokeDirectiveHook(hi,di,wi,"beforeUpdate"),wi&&toggleRecurse(wi,!0);const Zo=Ni&&hi.type!=="foreignObject";if(Vi?ci(di.dynamicChildren,Vi,ji,wi,Ii,Zo,Bi):Wi||Ri(di,hi,ji,null,wi,Ii,Zo,Bi,!1),Ui>0){if(Ui&16)mi(ji,hi,zi,Yo,wi,Ii,Ni);else if(Ui&2&&zi.class!==Yo.class&&Ln(ji,"class",null,Yo.class,Ni),Ui&4&&Ln(ji,"style",zi.style,Yo.style,Ni),Ui&8){const da=hi.dynamicProps;for(let fa=0;fa{Li&&invokeVNodeHook(Li,wi,hi,di),Gi&&invokeDirectiveHook(hi,di,wi,"updated")},Ii)},ci=(di,hi,wi,Ii,Ni,Bi,Wi)=>{for(let ji=0;ji{if(wi!==Ii){if(wi!==EMPTY_OBJ)for(const ji in wi)!isReservedProp(ji)&&!(ji in Ii)&&Ln(di,ji,wi[ji],null,Wi,hi.children,Ni,Bi,Zi);for(const ji in Ii){if(isReservedProp(ji))continue;const Ui=Ii[ji],Vi=wi[ji];Ui!==Vi&&ji!=="value"&&Ln(di,ji,Vi,Ui,Wi,hi.children,Ni,Bi,Zi)}"value"in Ii&&Ln(di,"value",wi.value,Ii.value)}},_i=(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui)=>{const Vi=hi.el=di?di.el:Pn(""),Gi=hi.anchor=di?di.anchor:Pn("");let{patchFlag:zi,dynamicChildren:Yo,slotScopeIds:Li}=hi;Li&&(ji=ji?ji.concat(Li):Li),di==null?(Nn(Vi,wi,Ii),Nn(Gi,wi,Ii),ui(hi.children,wi,Gi,Ni,Bi,Wi,ji,Ui)):zi>0&&zi&64&&Yo&&di.dynamicChildren?(ci(di.dynamicChildren,Yo,wi,Ni,Bi,Wi,ji),(hi.key!=null||Ni&&hi===Ni.subTree)&&traverseStaticChildren(di,hi,!0)):Ri(di,hi,wi,Gi,Ni,Bi,Wi,ji,Ui)},yi=(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui)=>{hi.slotScopeIds=ji,di==null?hi.shapeFlag&512?Ni.ctx.activate(hi,wi,Ii,Wi,Ui):Fi(hi,wi,Ii,Ni,Bi,Wi,Ui):ta(di,hi,Ui)},Fi=(di,hi,wi,Ii,Ni,Bi,Wi)=>{const ji=di.component=createComponentInstance(di,Ii,Ni);if(isKeepAlive(di)&&(ji.ctx.renderer=Go),setupComponent(ji),ji.asyncDep){if(Ni&&Ni.registerDep(ji,qo),!di.el){const Ui=ji.subTree=createVNode(Comment);si(null,Ui,hi,wi)}return}qo(ji,di,hi,wi,Ni,Bi,Wi)},ta=(di,hi,wi)=>{const Ii=hi.component=di.component;if(shouldUpdateComponent(di,hi,wi))if(Ii.asyncDep&&!Ii.asyncResolved){Ci(Ii,hi,wi);return}else Ii.next=hi,invalidateJob(Ii.update),Ii.update();else hi.el=di.el,Ii.vnode=hi},qo=(di,hi,wi,Ii,Ni,Bi,Wi)=>{const ji=()=>{if(di.isMounted){let{next:Gi,bu:zi,u:Yo,parent:Li,vnode:Zo}=di,da=Gi,fa;toggleRecurse(di,!1),Gi?(Gi.el=Zo.el,Ci(di,Gi,Wi)):Gi=Zo,zi&&invokeArrayFns(zi),(fa=Gi.props&&Gi.props.onVnodeBeforeUpdate)&&invokeVNodeHook(fa,Li,Gi,Zo),toggleRecurse(di,!0);const Ca=renderComponentRoot(di),wa=di.subTree;di.subTree=Ca,ni(wa,Ca,Yn(wa.el),Qo(wa),di,Ni,Bi),Gi.el=Ca.el,da===null&&updateHOCHostEl(di,Ca.el),Yo&&queuePostRenderEffect(Yo,Ni),(fa=Gi.props&&Gi.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(fa,Li,Gi,Zo),Ni)}else{let Gi;const{el:zi,props:Yo}=hi,{bm:Li,m:Zo,parent:da}=di,fa=isAsyncWrapper(hi);if(toggleRecurse(di,!1),Li&&invokeArrayFns(Li),!fa&&(Gi=Yo&&Yo.onVnodeBeforeMount)&&invokeVNodeHook(Gi,da,hi),toggleRecurse(di,!0),zi&&ha){const Ca=()=>{di.subTree=renderComponentRoot(di),ha(zi,di.subTree,di,Ni,null)};fa?hi.type.__asyncLoader().then(()=>!di.isUnmounted&&Ca()):Ca()}else{const Ca=di.subTree=renderComponentRoot(di);ni(null,Ca,wi,Ii,di,Ni,Bi),hi.el=Ca.el}if(Zo&&queuePostRenderEffect(Zo,Ni),!fa&&(Gi=Yo&&Yo.onVnodeMounted)){const Ca=hi;queuePostRenderEffect(()=>invokeVNodeHook(Gi,da,Ca),Ni)}(hi.shapeFlag&256||da&&isAsyncWrapper(da.vnode)&&da.vnode.shapeFlag&256)&&di.a&&queuePostRenderEffect(di.a,Ni),di.isMounted=!0,hi=wi=Ii=null}},Ui=di.effect=new ReactiveEffect(ji,()=>queueJob(Vi),di.scope),Vi=di.update=()=>Ui.run();Vi.id=di.uid,toggleRecurse(di,!0),Vi()},Ci=(di,hi,wi)=>{hi.component=di;const Ii=di.vnode.props;di.vnode=hi,di.next=null,updateProps(di,hi.props,Ii,wi),updateSlots(di,hi.children,wi),pauseTracking(),flushPreFlushCbs(),resetTracking()},Ri=(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui=!1)=>{const Vi=di&&di.children,Gi=di?di.shapeFlag:0,zi=hi.children,{patchFlag:Yo,shapeFlag:Li}=hi;if(Yo>0){if(Yo&128){aa(Vi,zi,wi,Ii,Ni,Bi,Wi,ji,Ui);return}else if(Yo&256){Hi(Vi,zi,wi,Ii,Ni,Bi,Wi,ji,Ui);return}}Li&8?(Gi&16&&Zi(Vi,Ni,Bi),zi!==Vi&&Wn(wi,zi)):Gi&16?Li&16?aa(Vi,zi,wi,Ii,Ni,Bi,Wi,ji,Ui):Zi(Vi,Ni,Bi,!0):(Gi&8&&Wn(wi,""),Li&16&&ui(zi,wi,Ii,Ni,Bi,Wi,ji,Ui))},Hi=(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui)=>{di=di||EMPTY_ARR,hi=hi||EMPTY_ARR;const Vi=di.length,Gi=hi.length,zi=Math.min(Vi,Gi);let Yo;for(Yo=0;YoGi?Zi(di,Ni,Bi,!0,!1,zi):ui(hi,wi,Ii,Ni,Bi,Wi,ji,Ui,zi)},aa=(di,hi,wi,Ii,Ni,Bi,Wi,ji,Ui)=>{let Vi=0;const Gi=hi.length;let zi=di.length-1,Yo=Gi-1;for(;Vi<=zi&&Vi<=Yo;){const Li=di[Vi],Zo=hi[Vi]=Ui?cloneIfMounted(hi[Vi]):normalizeVNode(hi[Vi]);if(isSameVNodeType(Li,Zo))ni(Li,Zo,wi,null,Ni,Bi,Wi,ji,Ui);else break;Vi++}for(;Vi<=zi&&Vi<=Yo;){const Li=di[zi],Zo=hi[Yo]=Ui?cloneIfMounted(hi[Yo]):normalizeVNode(hi[Yo]);if(isSameVNodeType(Li,Zo))ni(Li,Zo,wi,null,Ni,Bi,Wi,ji,Ui);else break;zi--,Yo--}if(Vi>zi){if(Vi<=Yo){const Li=Yo+1,Zo=LiYo)for(;Vi<=zi;)Pi(di[Vi],Ni,Bi,!0),Vi++;else{const Li=Vi,Zo=Vi,da=new Map;for(Vi=Zo;Vi<=Yo;Vi++){const Xi=hi[Vi]=Ui?cloneIfMounted(hi[Vi]):normalizeVNode(hi[Vi]);Xi.key!=null&&da.set(Xi.key,Vi)}let fa,Ca=0;const wa=Yo-Zo+1;let Na=!1,Sa=0;const Aa=new Array(wa);for(Vi=0;Vi=wa){Pi(Xi,Ni,Bi,!0);continue}let ea;if(Xi.key!=null)ea=da.get(Xi.key);else for(fa=Zo;fa<=Yo;fa++)if(Aa[fa-Zo]===0&&isSameVNodeType(Xi,hi[fa])){ea=fa;break}ea===void 0?Pi(Xi,Ni,Bi,!0):(Aa[ea-Zo]=Vi+1,ea>=Sa?Sa=ea:Na=!0,ni(Xi,hi[ea],wi,null,Ni,Bi,Wi,ji,Ui),Ca++)}const Ai=Na?getSequence(Aa):EMPTY_ARR;for(fa=Ai.length-1,Vi=wa-1;Vi>=0;Vi--){const Xi=Zo+Vi,ea=hi[Xi],ga=Xi+1{const{el:Bi,type:Wi,transition:ji,children:Ui,shapeFlag:Vi}=di;if(Vi&6){sa(di.component.subTree,hi,wi,Ii);return}if(Vi&128){di.suspense.move(hi,wi,Ii);return}if(Vi&64){Wi.move(di,hi,wi,Go);return}if(Wi===Fragment){Nn(Bi,hi,wi);for(let zi=0;ziji.enter(Bi),Ni);else{const{leave:zi,delayLeave:Yo,afterLeave:Li}=ji,Zo=()=>Nn(Bi,hi,wi),da=()=>{zi(Bi,()=>{Zo(),Li&&Li()})};Yo?Yo(Bi,Zo,da):da()}else Nn(Bi,hi,wi)},Pi=(di,hi,wi,Ii=!1,Ni=!1)=>{const{type:Bi,props:Wi,ref:ji,children:Ui,dynamicChildren:Vi,shapeFlag:Gi,patchFlag:zi,dirs:Yo}=di;if(ji!=null&&setRef(ji,null,wi,di,!0),Gi&256){hi.ctx.deactivate(di);return}const Li=Gi&1&&Yo,Zo=!isAsyncWrapper(di);let da;if(Zo&&(da=Wi&&Wi.onVnodeBeforeUnmount)&&invokeVNodeHook(da,hi,di),Gi&6)Ji(di.component,wi,Ii);else{if(Gi&128){di.suspense.unmount(wi,Ii);return}Li&&invokeDirectiveHook(di,null,hi,"beforeUnmount"),Gi&64?di.type.remove(di,hi,wi,Ni,Go,Ii):Vi&&(Bi!==Fragment||zi>0&&zi&64)?Zi(Vi,hi,wi,!1,!0):(Bi===Fragment&&zi&384||!Ni&&Gi&16)&&Zi(Ui,hi,wi),Ii&&Ki(di)}(Zo&&(da=Wi&&Wi.onVnodeUnmounted)||Li)&&queuePostRenderEffect(()=>{da&&invokeVNodeHook(da,hi,di),Li&&invokeDirectiveHook(di,null,hi,"unmounted")},wi)},Ki=di=>{const{type:hi,el:wi,anchor:Ii,transition:Ni}=di;if(hi===Fragment){Yi(wi,Ii);return}if(hi===Static){ri(di);return}const Bi=()=>{Bn(wi),Ni&&!Ni.persisted&&Ni.afterLeave&&Ni.afterLeave()};if(di.shapeFlag&1&&Ni&&!Ni.persisted){const{leave:Wi,delayLeave:ji}=Ni,Ui=()=>Wi(wi,Bi);ji?ji(di.el,Bi,Ui):Ui()}else Bi()},Yi=(di,hi)=>{let wi;for(;di!==hi;)wi=Gn(di),Bn(di),di=wi;Bn(hi)},Ji=(di,hi,wi)=>{const{bum:Ii,scope:Ni,update:Bi,subTree:Wi,um:ji}=di;Ii&&invokeArrayFns(Ii),Ni.stop(),Bi&&(Bi.active=!1,Pi(Wi,di,hi,wi)),ji&&queuePostRenderEffect(ji,hi),queuePostRenderEffect(()=>{di.isUnmounted=!0},hi),hi&&hi.pendingBranch&&!hi.isUnmounted&&di.asyncDep&&!di.asyncResolved&&di.suspenseId===hi.pendingId&&(hi.deps--,hi.deps===0&&hi.resolve())},Zi=(di,hi,wi,Ii=!1,Ni=!1,Bi=0)=>{for(let Wi=Bi;Widi.shapeFlag&6?Qo(di.component.subTree):di.shapeFlag&128?di.suspense.next():Gn(di.anchor||di.el),la=(di,hi,wi)=>{di==null?hi._vnode&&Pi(hi._vnode,null,null,!0):ni(hi._vnode||null,di,hi,null,null,null,wi),flushPreFlushCbs(),flushPostFlushCbs(),hi._vnode=di},Go={p:ni,um:Pi,m:sa,r:Ki,mt:Fi,mc:ui,pc:Ri,pbc:ci,n:Qo,o:_n};let ra,ha;return Cn&&([ra,ha]=Cn(Go)),{render:la,hydrate:ra,createApp:createAppAPI(la,ra)}}function toggleRecurse({effect:_n,update:Cn},$n){_n.allowRecurse=Cn.allowRecurse=$n}function needTransition(_n,Cn){return(!_n||_n&&!_n.pendingBranch)&&Cn&&!Cn.persisted}function traverseStaticChildren(_n,Cn,$n=!1){const Nn=_n.children,Bn=Cn.children;if(isArray$3(Nn)&&isArray$3(Bn))for(let Ln=0;Ln>1,_n[$n[Pn]]0&&(Cn[Nn]=$n[Ln-1]),$n[Ln]=Nn)}}for(Ln=$n.length,In=$n[Ln-1];Ln-- >0;)$n[Ln]=In,In=Cn[In];return $n}const isTeleport=_n=>_n.__isTeleport,isTeleportDisabled=_n=>_n&&(_n.disabled||_n.disabled===""),isTargetSVG=_n=>typeof SVGElement<"u"&&_n instanceof SVGElement,resolveTarget=(_n,Cn)=>{const $n=_n&&_n.to;return isString$1($n)?Cn?Cn($n):null:$n},TeleportImpl={name:"Teleport",__isTeleport:!0,process(_n,Cn,$n,Nn,Bn,Ln,In,Pn,Dn,Hn){const{mc:Wn,pc:Yn,pbc:Gn,o:{insert:ei,querySelector:nr,createText:ni,createComment:ai}}=Hn,si=isTeleportDisabled(Cn.props);let{shapeFlag:gi,children:Si,dynamicChildren:ri}=Cn;if(_n==null){const Ei=Cn.el=ni(""),$i=Cn.anchor=ni("");ei(Ei,$n,Nn),ei($i,$n,Nn);const zn=Cn.target=resolveTarget(Cn.props,nr),ui=Cn.targetAnchor=ni("");zn&&(ei(ui,zn),In=In||isTargetSVG(zn));const ii=(ci,mi)=>{gi&16&&Wn(Si,ci,mi,Bn,Ln,In,Pn,Dn)};si?ii($n,$i):zn&&ii(zn,ui)}else{Cn.el=_n.el;const Ei=Cn.anchor=_n.anchor,$i=Cn.target=_n.target,zn=Cn.targetAnchor=_n.targetAnchor,ui=isTeleportDisabled(_n.props),ii=ui?$n:$i,ci=ui?Ei:zn;if(In=In||isTargetSVG($i),ri?(Gn(_n.dynamicChildren,ri,ii,Bn,Ln,In,Pn),traverseStaticChildren(_n,Cn,!0)):Dn||Yn(_n,Cn,ii,ci,Bn,Ln,In,Pn,!1),si)ui?Cn.props&&_n.props&&Cn.props.to!==_n.props.to&&(Cn.props.to=_n.props.to):moveTeleport(Cn,$n,Ei,Hn,1);else if((Cn.props&&Cn.props.to)!==(_n.props&&_n.props.to)){const mi=Cn.target=resolveTarget(Cn.props,nr);mi&&moveTeleport(Cn,mi,null,Hn,0)}else ui&&moveTeleport(Cn,$i,zn,Hn,1)}updateCssVars(Cn)},remove(_n,Cn,$n,Nn,{um:Bn,o:{remove:Ln}},In){const{shapeFlag:Pn,children:Dn,anchor:Hn,targetAnchor:Wn,target:Yn,props:Gn}=_n;if(Yn&&Ln(Wn),In&&Ln(Hn),Pn&16){const ei=In||!isTeleportDisabled(Gn);for(let nr=0;nr0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(_n),_n}function createElementBlock(_n,Cn,$n,Nn,Bn,Ln){return setupBlock(createBaseVNode(_n,Cn,$n,Nn,Bn,Ln,!0))}function createBlock(_n,Cn,$n,Nn,Bn){return setupBlock(createVNode(_n,Cn,$n,Nn,Bn,!0))}function isVNode(_n){return _n?_n.__v_isVNode===!0:!1}function isSameVNodeType(_n,Cn){return _n.type===Cn.type&&_n.key===Cn.key}const InternalObjectKey="__vInternal",normalizeKey=({key:_n})=>_n??null,normalizeRef=({ref:_n,ref_key:Cn,ref_for:$n})=>(typeof _n=="number"&&(_n=""+_n),_n!=null?isString$1(_n)||isRef(_n)||isFunction$2(_n)?{i:currentRenderingInstance,r:_n,k:Cn,f:!!$n}:_n:null);function createBaseVNode(_n,Cn=null,$n=null,Nn=0,Bn=null,Ln=_n===Fragment?0:1,In=!1,Pn=!1){const Dn={__v_isVNode:!0,__v_skip:!0,type:_n,props:Cn,key:Cn&&normalizeKey(Cn),ref:Cn&&normalizeRef(Cn),scopeId:currentScopeId,slotScopeIds:null,children:$n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:Ln,patchFlag:Nn,dynamicProps:Bn,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Pn?(normalizeChildren(Dn,$n),Ln&128&&_n.normalize(Dn)):$n&&(Dn.shapeFlag|=isString$1($n)?8:16),isBlockTreeEnabled>0&&!In&¤tBlock&&(Dn.patchFlag>0||Ln&6)&&Dn.patchFlag!==32&¤tBlock.push(Dn),Dn}const createVNode=_createVNode;function _createVNode(_n,Cn=null,$n=null,Nn=0,Bn=null,Ln=!1){if((!_n||_n===NULL_DYNAMIC_COMPONENT)&&(_n=Comment),isVNode(_n)){const Pn=cloneVNode(_n,Cn,!0);return $n&&normalizeChildren(Pn,$n),isBlockTreeEnabled>0&&!Ln&¤tBlock&&(Pn.shapeFlag&6?currentBlock[currentBlock.indexOf(_n)]=Pn:currentBlock.push(Pn)),Pn.patchFlag|=-2,Pn}if(isClassComponent(_n)&&(_n=_n.__vccOpts),Cn){Cn=guardReactiveProps(Cn);let{class:Pn,style:Dn}=Cn;Pn&&!isString$1(Pn)&&(Cn.class=normalizeClass(Pn)),isObject$5(Dn)&&(isProxy(Dn)&&!isArray$3(Dn)&&(Dn=extend$3({},Dn)),Cn.style=normalizeStyle(Dn))}const In=isString$1(_n)?1:isSuspense(_n)?128:isTeleport(_n)?64:isObject$5(_n)?4:isFunction$2(_n)?2:0;return createBaseVNode(_n,Cn,$n,Nn,Bn,In,Ln,!0)}function guardReactiveProps(_n){return _n?isProxy(_n)||InternalObjectKey in _n?extend$3({},_n):_n:null}function cloneVNode(_n,Cn,$n=!1){const{props:Nn,ref:Bn,patchFlag:Ln,children:In}=_n,Pn=Cn?mergeProps(Nn||{},Cn):Nn;return{__v_isVNode:!0,__v_skip:!0,type:_n.type,props:Pn,key:Pn&&normalizeKey(Pn),ref:Cn&&Cn.ref?$n&&Bn?isArray$3(Bn)?Bn.concat(normalizeRef(Cn)):[Bn,normalizeRef(Cn)]:normalizeRef(Cn):Bn,scopeId:_n.scopeId,slotScopeIds:_n.slotScopeIds,children:In,target:_n.target,targetAnchor:_n.targetAnchor,staticCount:_n.staticCount,shapeFlag:_n.shapeFlag,patchFlag:Cn&&_n.type!==Fragment?Ln===-1?16:Ln|16:Ln,dynamicProps:_n.dynamicProps,dynamicChildren:_n.dynamicChildren,appContext:_n.appContext,dirs:_n.dirs,transition:_n.transition,component:_n.component,suspense:_n.suspense,ssContent:_n.ssContent&&cloneVNode(_n.ssContent),ssFallback:_n.ssFallback&&cloneVNode(_n.ssFallback),el:_n.el,anchor:_n.anchor,ctx:_n.ctx,ce:_n.ce}}function createTextVNode(_n=" ",Cn=0){return createVNode(Text,null,_n,Cn)}function createCommentVNode(_n="",Cn=!1){return Cn?(openBlock(),createBlock(Comment,null,_n)):createVNode(Comment,null,_n)}function normalizeVNode(_n){return _n==null||typeof _n=="boolean"?createVNode(Comment):isArray$3(_n)?createVNode(Fragment,null,_n.slice()):typeof _n=="object"?cloneIfMounted(_n):createVNode(Text,null,String(_n))}function cloneIfMounted(_n){return _n.el===null&&_n.patchFlag!==-1||_n.memo?_n:cloneVNode(_n)}function normalizeChildren(_n,Cn){let $n=0;const{shapeFlag:Nn}=_n;if(Cn==null)Cn=null;else if(isArray$3(Cn))$n=16;else if(typeof Cn=="object")if(Nn&65){const Bn=Cn.default;Bn&&(Bn._c&&(Bn._d=!1),normalizeChildren(_n,Bn()),Bn._c&&(Bn._d=!0));return}else{$n=32;const Bn=Cn._;!Bn&&!(InternalObjectKey in Cn)?Cn._ctx=currentRenderingInstance:Bn===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?Cn._=1:(Cn._=2,_n.patchFlag|=1024))}else isFunction$2(Cn)?(Cn={default:Cn,_ctx:currentRenderingInstance},$n=32):(Cn=String(Cn),Nn&64?($n=16,Cn=[createTextVNode(Cn)]):$n=8);_n.children=Cn,_n.shapeFlag|=$n}function mergeProps(..._n){const Cn={};for(let $n=0;$n<_n.length;$n++){const Nn=_n[$n];for(const Bn in Nn)if(Bn==="class")Cn.class!==Nn.class&&(Cn.class=normalizeClass([Cn.class,Nn.class]));else if(Bn==="style")Cn.style=normalizeStyle([Cn.style,Nn.style]);else if(isOn(Bn)){const Ln=Cn[Bn],In=Nn[Bn];In&&Ln!==In&&!(isArray$3(Ln)&&Ln.includes(In))&&(Cn[Bn]=Ln?[].concat(Ln,In):In)}else Bn!==""&&(Cn[Bn]=Nn[Bn])}return Cn}function invokeVNodeHook(_n,Cn,$n,Nn=null){callWithAsyncErrorHandling(_n,Cn,7,[$n,Nn])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(_n,Cn,$n){const Nn=_n.type,Bn=(Cn?Cn.appContext:_n.appContext)||emptyAppContext,Ln={uid:uid++,vnode:_n,type:Nn,parent:Cn,appContext:Bn,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:Cn?Cn.provides:Object.create(Bn.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(Nn,Bn),emitsOptions:normalizeEmitsOptions(Nn,Bn),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:Nn.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:$n,suspenseId:$n?$n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return Ln.ctx={_:Ln},Ln.root=Cn?Cn.root:Ln,Ln.emit=emit.bind(null,Ln),_n.ce&&_n.ce(Ln),Ln}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push(_n=>currentInstance=_n),internalSetCurrentInstance=_n=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(Cn=>Cn(_n)):globalCurrentInstanceSetters[0](_n)};const setCurrentInstance=_n=>{internalSetCurrentInstance(_n),_n.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(_n){return _n.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(_n,Cn=!1){isInSSRComponentSetup=Cn;const{props:$n,children:Nn}=_n.vnode,Bn=isStatefulComponent(_n);initProps(_n,$n,Bn,Cn),initSlots(_n,Nn);const Ln=Bn?setupStatefulComponent(_n,Cn):void 0;return isInSSRComponentSetup=!1,Ln}function setupStatefulComponent(_n,Cn){const $n=_n.type;_n.accessCache=Object.create(null),_n.proxy=markRaw(new Proxy(_n.ctx,PublicInstanceProxyHandlers));const{setup:Nn}=$n;if(Nn){const Bn=_n.setupContext=Nn.length>1?createSetupContext(_n):null;setCurrentInstance(_n),pauseTracking();const Ln=callWithErrorHandling(Nn,_n,0,[_n.props,Bn]);if(resetTracking(),unsetCurrentInstance(),isPromise(Ln)){if(Ln.then(unsetCurrentInstance,unsetCurrentInstance),Cn)return Ln.then(In=>{handleSetupResult(_n,In,Cn)}).catch(In=>{handleError(In,_n,0)});_n.asyncDep=Ln}else handleSetupResult(_n,Ln,Cn)}else finishComponentSetup(_n,Cn)}function handleSetupResult(_n,Cn,$n){isFunction$2(Cn)?_n.type.__ssrInlineRender?_n.ssrRender=Cn:_n.render=Cn:isObject$5(Cn)&&(_n.setupState=proxyRefs(Cn)),finishComponentSetup(_n,$n)}let compile;function finishComponentSetup(_n,Cn,$n){const Nn=_n.type;if(!_n.render){if(!Cn&&compile&&!Nn.render){const Bn=Nn.template||resolveMergedOptions(_n).template;if(Bn){const{isCustomElement:Ln,compilerOptions:In}=_n.appContext.config,{delimiters:Pn,compilerOptions:Dn}=Nn,Hn=extend$3(extend$3({isCustomElement:Ln,delimiters:Pn},In),Dn);Nn.render=compile(Bn,Hn)}}_n.render=Nn.render||NOOP}{setCurrentInstance(_n),pauseTracking();try{applyOptions(_n)}finally{resetTracking(),unsetCurrentInstance()}}}function getAttrsProxy(_n){return _n.attrsProxy||(_n.attrsProxy=new Proxy(_n.attrs,{get(Cn,$n){return track(_n,"get","$attrs"),Cn[$n]}}))}function createSetupContext(_n){const Cn=$n=>{_n.exposed=$n||{}};return{get attrs(){return getAttrsProxy(_n)},slots:_n.slots,emit:_n.emit,expose:Cn}}function getExposeProxy(_n){if(_n.exposed)return _n.exposeProxy||(_n.exposeProxy=new Proxy(proxyRefs(markRaw(_n.exposed)),{get(Cn,$n){if($n in Cn)return Cn[$n];if($n in publicPropertiesMap)return publicPropertiesMap[$n](_n)},has(Cn,$n){return $n in Cn||$n in publicPropertiesMap}}))}function getComponentName(_n,Cn=!0){return isFunction$2(_n)?_n.displayName||_n.name:_n.name||Cn&&_n.__name}function isClassComponent(_n){return isFunction$2(_n)&&"__vccOpts"in _n}const computed=(_n,Cn)=>computed$1(_n,Cn,isInSSRComponentSetup);function h$2(_n,Cn,$n){const Nn=arguments.length;return Nn===2?isObject$5(Cn)&&!isArray$3(Cn)?isVNode(Cn)?createVNode(_n,null,[Cn]):createVNode(_n,Cn):createVNode(_n,null,Cn):(Nn>3?$n=Array.prototype.slice.call(arguments,2):Nn===3&&isVNode($n)&&($n=[$n]),createVNode(_n,Cn,$n))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey),version$1="3.3.9",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(_n,Cn,$n)=>{Cn.insertBefore(_n,$n||null)},remove:_n=>{const Cn=_n.parentNode;Cn&&Cn.removeChild(_n)},createElement:(_n,Cn,$n,Nn)=>{const Bn=Cn?doc.createElementNS(svgNS,_n):doc.createElement(_n,$n?{is:$n}:void 0);return _n==="select"&&Nn&&Nn.multiple!=null&&Bn.setAttribute("multiple",Nn.multiple),Bn},createText:_n=>doc.createTextNode(_n),createComment:_n=>doc.createComment(_n),setText:(_n,Cn)=>{_n.nodeValue=Cn},setElementText:(_n,Cn)=>{_n.textContent=Cn},parentNode:_n=>_n.parentNode,nextSibling:_n=>_n.nextSibling,querySelector:_n=>doc.querySelector(_n),setScopeId(_n,Cn){_n.setAttribute(Cn,"")},insertStaticContent(_n,Cn,$n,Nn,Bn,Ln){const In=$n?$n.previousSibling:Cn.lastChild;if(Bn&&(Bn===Ln||Bn.nextSibling))for(;Cn.insertBefore(Bn.cloneNode(!0),$n),!(Bn===Ln||!(Bn=Bn.nextSibling)););else{templateContainer.innerHTML=Nn?`${_n}`:_n;const Pn=templateContainer.content;if(Nn){const Dn=Pn.firstChild;for(;Dn.firstChild;)Pn.appendChild(Dn.firstChild);Pn.removeChild(Dn)}Cn.insertBefore(Pn,$n)}return[In?In.nextSibling:Cn.firstChild,$n?$n.previousSibling:Cn.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(_n,{slots:Cn})=>h$2(BaseTransition,resolveTransitionProps(_n),Cn);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Transition.props=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(_n,Cn=[])=>{isArray$3(_n)?_n.forEach($n=>$n(...Cn)):_n&&_n(...Cn)},hasExplicitCallback=_n=>_n?isArray$3(_n)?_n.some(Cn=>Cn.length>1):_n.length>1:!1;function resolveTransitionProps(_n){const Cn={};for(const _i in _n)_i in DOMTransitionPropsValidators||(Cn[_i]=_n[_i]);if(_n.css===!1)return Cn;const{name:$n="v",type:Nn,duration:Bn,enterFromClass:Ln=`${$n}-enter-from`,enterActiveClass:In=`${$n}-enter-active`,enterToClass:Pn=`${$n}-enter-to`,appearFromClass:Dn=Ln,appearActiveClass:Hn=In,appearToClass:Wn=Pn,leaveFromClass:Yn=`${$n}-leave-from`,leaveActiveClass:Gn=`${$n}-leave-active`,leaveToClass:ei=`${$n}-leave-to`}=_n,nr=normalizeDuration(Bn),ni=nr&&nr[0],ai=nr&&nr[1],{onBeforeEnter:si,onEnter:gi,onEnterCancelled:Si,onLeave:ri,onLeaveCancelled:Ei,onBeforeAppear:$i=si,onAppear:zn=gi,onAppearCancelled:ui=Si}=Cn,ii=(_i,yi,Fi)=>{removeTransitionClass(_i,yi?Wn:Pn),removeTransitionClass(_i,yi?Hn:In),Fi&&Fi()},ci=(_i,yi)=>{_i._isLeaving=!1,removeTransitionClass(_i,Yn),removeTransitionClass(_i,ei),removeTransitionClass(_i,Gn),yi&&yi()},mi=_i=>(yi,Fi)=>{const ta=_i?zn:gi,qo=()=>ii(yi,_i,Fi);callHook(ta,[yi,qo]),nextFrame(()=>{removeTransitionClass(yi,_i?Dn:Ln),addTransitionClass(yi,_i?Wn:Pn),hasExplicitCallback(ta)||whenTransitionEnds(yi,Nn,ni,qo)})};return extend$3(Cn,{onBeforeEnter(_i){callHook(si,[_i]),addTransitionClass(_i,Ln),addTransitionClass(_i,In)},onBeforeAppear(_i){callHook($i,[_i]),addTransitionClass(_i,Dn),addTransitionClass(_i,Hn)},onEnter:mi(!1),onAppear:mi(!0),onLeave(_i,yi){_i._isLeaving=!0;const Fi=()=>ci(_i,yi);addTransitionClass(_i,Yn),forceReflow(),addTransitionClass(_i,Gn),nextFrame(()=>{_i._isLeaving&&(removeTransitionClass(_i,Yn),addTransitionClass(_i,ei),hasExplicitCallback(ri)||whenTransitionEnds(_i,Nn,ai,Fi))}),callHook(ri,[_i,Fi])},onEnterCancelled(_i){ii(_i,!1),callHook(Si,[_i])},onAppearCancelled(_i){ii(_i,!0),callHook(ui,[_i])},onLeaveCancelled(_i){ci(_i),callHook(Ei,[_i])}})}function normalizeDuration(_n){if(_n==null)return null;if(isObject$5(_n))return[NumberOf(_n.enter),NumberOf(_n.leave)];{const Cn=NumberOf(_n);return[Cn,Cn]}}function NumberOf(_n){return toNumber(_n)}function addTransitionClass(_n,Cn){Cn.split(/\s+/).forEach($n=>$n&&_n.classList.add($n)),(_n[vtcKey]||(_n[vtcKey]=new Set)).add(Cn)}function removeTransitionClass(_n,Cn){Cn.split(/\s+/).forEach(Nn=>Nn&&_n.classList.remove(Nn));const $n=_n[vtcKey];$n&&($n.delete(Cn),$n.size||(_n[vtcKey]=void 0))}function nextFrame(_n){requestAnimationFrame(()=>{requestAnimationFrame(_n)})}let endId=0;function whenTransitionEnds(_n,Cn,$n,Nn){const Bn=_n._endId=++endId,Ln=()=>{Bn===_n._endId&&Nn()};if($n)return setTimeout(Ln,$n);const{type:In,timeout:Pn,propCount:Dn}=getTransitionInfo(_n,Cn);if(!In)return Nn();const Hn=In+"end";let Wn=0;const Yn=()=>{_n.removeEventListener(Hn,Gn),Ln()},Gn=ei=>{ei.target===_n&&++Wn>=Dn&&Yn()};setTimeout(()=>{Wn($n[nr]||"").split(", "),Bn=Nn(`${TRANSITION}Delay`),Ln=Nn(`${TRANSITION}Duration`),In=getTimeout(Bn,Ln),Pn=Nn(`${ANIMATION}Delay`),Dn=Nn(`${ANIMATION}Duration`),Hn=getTimeout(Pn,Dn);let Wn=null,Yn=0,Gn=0;Cn===TRANSITION?In>0&&(Wn=TRANSITION,Yn=In,Gn=Ln.length):Cn===ANIMATION?Hn>0&&(Wn=ANIMATION,Yn=Hn,Gn=Dn.length):(Yn=Math.max(In,Hn),Wn=Yn>0?In>Hn?TRANSITION:ANIMATION:null,Gn=Wn?Wn===TRANSITION?Ln.length:Dn.length:0);const ei=Wn===TRANSITION&&/\b(transform|all)(,|$)/.test(Nn(`${TRANSITION}Property`).toString());return{type:Wn,timeout:Yn,propCount:Gn,hasTransform:ei}}function getTimeout(_n,Cn){for(;_n.lengthtoMs($n)+toMs(_n[Nn])))}function toMs(_n){return _n==="auto"?0:Number(_n.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(_n,Cn,$n){const Nn=_n[vtcKey];Nn&&(Cn=(Cn?[Cn,...Nn]:[...Nn]).join(" ")),Cn==null?_n.removeAttribute("class"):$n?_n.setAttribute("class",Cn):_n.className=Cn}const vShowOldKey=Symbol("_vod"),vShow={beforeMount(_n,{value:Cn},{transition:$n}){_n[vShowOldKey]=_n.style.display==="none"?"":_n.style.display,$n&&Cn?$n.beforeEnter(_n):setDisplay(_n,Cn)},mounted(_n,{value:Cn},{transition:$n}){$n&&Cn&&$n.enter(_n)},updated(_n,{value:Cn,oldValue:$n},{transition:Nn}){!Cn!=!$n&&(Nn?Cn?(Nn.beforeEnter(_n),setDisplay(_n,!0),Nn.enter(_n)):Nn.leave(_n,()=>{setDisplay(_n,!1)}):setDisplay(_n,Cn))},beforeUnmount(_n,{value:Cn}){setDisplay(_n,Cn)}};function setDisplay(_n,Cn){_n.style.display=Cn?_n[vShowOldKey]:"none"}function patchStyle(_n,Cn,$n){const Nn=_n.style,Bn=isString$1($n);if($n&&!Bn){if(Cn&&!isString$1(Cn))for(const Ln in Cn)$n[Ln]==null&&setStyle(Nn,Ln,"");for(const Ln in $n)setStyle(Nn,Ln,$n[Ln])}else{const Ln=Nn.display;Bn?Cn!==$n&&(Nn.cssText=$n):Cn&&_n.removeAttribute("style"),vShowOldKey in _n&&(Nn.display=Ln)}}const importantRE=/\s*!important$/;function setStyle(_n,Cn,$n){if(isArray$3($n))$n.forEach(Nn=>setStyle(_n,Cn,Nn));else if($n==null&&($n=""),Cn.startsWith("--"))_n.setProperty(Cn,$n);else{const Nn=autoPrefix(_n,Cn);importantRE.test($n)?_n.setProperty(hyphenate(Nn),$n.replace(importantRE,""),"important"):_n[Nn]=$n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(_n,Cn){const $n=prefixCache[Cn];if($n)return $n;let Nn=camelize(Cn);if(Nn!=="filter"&&Nn in _n)return prefixCache[Cn]=Nn;Nn=capitalize(Nn);for(let Bn=0;BncachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(_n,Cn){const $n=Nn=>{if(!Nn._vts)Nn._vts=Date.now();else if(Nn._vts<=$n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(Nn,$n.value),Cn,5,[Nn])};return $n.value=_n,$n.attached=getNow(),$n}function patchStopImmediatePropagation(_n,Cn){if(isArray$3(Cn)){const $n=_n.stopImmediatePropagation;return _n.stopImmediatePropagation=()=>{$n.call(_n),_n._stopped=!0},Cn.map(Nn=>Bn=>!Bn._stopped&&Nn&&Nn(Bn))}else return Cn}const nativeOnRE=/^on[a-z]/,patchProp=(_n,Cn,$n,Nn,Bn=!1,Ln,In,Pn,Dn)=>{Cn==="class"?patchClass(_n,Nn,Bn):Cn==="style"?patchStyle(_n,$n,Nn):isOn(Cn)?isModelListener(Cn)||patchEvent(_n,Cn,$n,Nn,In):(Cn[0]==="."?(Cn=Cn.slice(1),!0):Cn[0]==="^"?(Cn=Cn.slice(1),!1):shouldSetAsProp(_n,Cn,Nn,Bn))?patchDOMProp(_n,Cn,Nn,Ln,In,Pn,Dn):(Cn==="true-value"?_n._trueValue=Nn:Cn==="false-value"&&(_n._falseValue=Nn),patchAttr(_n,Cn,Nn,Bn))};function shouldSetAsProp(_n,Cn,$n,Nn){return Nn?!!(Cn==="innerHTML"||Cn==="textContent"||Cn in _n&&nativeOnRE.test(Cn)&&isFunction$2($n)):Cn==="spellcheck"||Cn==="draggable"||Cn==="translate"||Cn==="form"||Cn==="list"&&_n.tagName==="INPUT"||Cn==="type"&&_n.tagName==="TEXTAREA"||nativeOnRE.test(Cn)&&isString$1($n)?!1:Cn in _n}const getModelAssigner=_n=>{const Cn=_n.props["onUpdate:modelValue"]||!1;return isArray$3(Cn)?$n=>invokeArrayFns(Cn,$n):Cn};function onCompositionStart(_n){_n.target.composing=!0}function onCompositionEnd(_n){const Cn=_n.target;Cn.composing&&(Cn.composing=!1,Cn.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(_n,{modifiers:{lazy:Cn,trim:$n,number:Nn}},Bn){_n[assignKey]=getModelAssigner(Bn);const Ln=Nn||Bn.props&&Bn.props.type==="number";addEventListener(_n,Cn?"change":"input",In=>{if(In.target.composing)return;let Pn=_n.value;$n&&(Pn=Pn.trim()),Ln&&(Pn=looseToNumber(Pn)),_n[assignKey](Pn)}),$n&&addEventListener(_n,"change",()=>{_n.value=_n.value.trim()}),Cn||(addEventListener(_n,"compositionstart",onCompositionStart),addEventListener(_n,"compositionend",onCompositionEnd),addEventListener(_n,"change",onCompositionEnd))},mounted(_n,{value:Cn}){_n.value=Cn??""},beforeUpdate(_n,{value:Cn,modifiers:{lazy:$n,trim:Nn,number:Bn}},Ln){if(_n[assignKey]=getModelAssigner(Ln),_n.composing)return;const In=Bn||_n.type==="number"?looseToNumber(_n.value):_n.value,Pn=Cn??"";In!==Pn&&(document.activeElement===_n&&_n.type!=="range"&&($n||Nn&&_n.value.trim()===Pn)||(_n.value=Pn))}},vModelCheckbox={deep:!0,created(_n,Cn,$n){_n[assignKey]=getModelAssigner($n),addEventListener(_n,"change",()=>{const Nn=_n._modelValue,Bn=getValue$1(_n),Ln=_n.checked,In=_n[assignKey];if(isArray$3(Nn)){const Pn=looseIndexOf(Nn,Bn),Dn=Pn!==-1;if(Ln&&!Dn)In(Nn.concat(Bn));else if(!Ln&&Dn){const Hn=[...Nn];Hn.splice(Pn,1),In(Hn)}}else if(isSet(Nn)){const Pn=new Set(Nn);Ln?Pn.add(Bn):Pn.delete(Bn),In(Pn)}else In(getCheckboxValue(_n,Ln))})},mounted:setChecked,beforeUpdate(_n,Cn,$n){_n[assignKey]=getModelAssigner($n),setChecked(_n,Cn,$n)}};function setChecked(_n,{value:Cn,oldValue:$n},Nn){_n._modelValue=Cn,isArray$3(Cn)?_n.checked=looseIndexOf(Cn,Nn.props.value)>-1:isSet(Cn)?_n.checked=Cn.has(Nn.props.value):Cn!==$n&&(_n.checked=looseEqual(Cn,getCheckboxValue(_n,!0)))}const vModelSelect={deep:!0,created(_n,{value:Cn,modifiers:{number:$n}},Nn){const Bn=isSet(Cn);addEventListener(_n,"change",()=>{const Ln=Array.prototype.filter.call(_n.options,In=>In.selected).map(In=>$n?looseToNumber(getValue$1(In)):getValue$1(In));_n[assignKey](_n.multiple?Bn?new Set(Ln):Ln:Ln[0])}),_n[assignKey]=getModelAssigner(Nn)},mounted(_n,{value:Cn}){setSelected(_n,Cn)},beforeUpdate(_n,Cn,$n){_n[assignKey]=getModelAssigner($n)},updated(_n,{value:Cn}){setSelected(_n,Cn)}};function setSelected(_n,Cn){const $n=_n.multiple;if(!($n&&!isArray$3(Cn)&&!isSet(Cn))){for(let Nn=0,Bn=_n.options.length;Nn-1:Ln.selected=Cn.has(In);else if(looseEqual(getValue$1(Ln),Cn)){_n.selectedIndex!==Nn&&(_n.selectedIndex=Nn);return}}!$n&&_n.selectedIndex!==-1&&(_n.selectedIndex=-1)}}function getValue$1(_n){return"_value"in _n?_n._value:_n.value}function getCheckboxValue(_n,Cn){const $n=Cn?"_trueValue":"_falseValue";return $n in _n?_n[$n]:Cn}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:_n=>_n.stopPropagation(),prevent:_n=>_n.preventDefault(),self:_n=>_n.target!==_n.currentTarget,ctrl:_n=>!_n.ctrlKey,shift:_n=>!_n.shiftKey,alt:_n=>!_n.altKey,meta:_n=>!_n.metaKey,left:_n=>"button"in _n&&_n.button!==0,middle:_n=>"button"in _n&&_n.button!==1,right:_n=>"button"in _n&&_n.button!==2,exact:(_n,Cn)=>systemModifiers.some($n=>_n[`${$n}Key`]&&!Cn.includes($n))},withModifiers=(_n,Cn)=>($n,...Nn)=>{for(let Bn=0;Bn{const Cn=ensureRenderer().createApp(..._n),{mount:$n}=Cn;return Cn.mount=Nn=>{const Bn=normalizeContainer(Nn);if(!Bn)return;const Ln=Cn._component;!isFunction$2(Ln)&&!Ln.render&&!Ln.template&&(Ln.template=Bn.innerHTML),Bn.innerHTML="";const In=$n(Bn,!1,Bn instanceof SVGElement);return Bn instanceof Element&&(Bn.removeAttribute("v-cloak"),Bn.setAttribute("data-v-app","")),In},Cn};function normalizeContainer(_n){return isString$1(_n)?document.querySelector(_n):_n}/**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */function ownKeys(_n,Cn){var $n=Object.keys(_n);if(Object.getOwnPropertySymbols){var Nn=Object.getOwnPropertySymbols(_n);Cn&&(Nn=Nn.filter(function(Bn){return Object.getOwnPropertyDescriptor(_n,Bn).enumerable})),$n.push.apply($n,Nn)}return $n}function _objectSpread2(_n){for(var Cn=1;Cn=0)&&($n[Bn]=_n[Bn]);return $n}function _objectWithoutProperties(_n,Cn){if(_n==null)return{};var $n=_objectWithoutPropertiesLoose(_n,Cn),Nn,Bn;if(Object.getOwnPropertySymbols){var Ln=Object.getOwnPropertySymbols(_n);for(Bn=0;Bn=0)&&Object.prototype.propertyIsEnumerable.call(_n,Nn)&&($n[Nn]=_n[Nn])}return $n}var version="1.15.0";function userAgent(_n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(_n)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on$1(_n,Cn,$n){_n.addEventListener(Cn,$n,!IE11OrLess&&captureMode)}function off(_n,Cn,$n){_n.removeEventListener(Cn,$n,!IE11OrLess&&captureMode)}function matches(_n,Cn){if(Cn){if(Cn[0]===">"&&(Cn=Cn.substring(1)),_n)try{if(_n.matches)return _n.matches(Cn);if(_n.msMatchesSelector)return _n.msMatchesSelector(Cn);if(_n.webkitMatchesSelector)return _n.webkitMatchesSelector(Cn)}catch{return!1}return!1}}function getParentOrHost(_n){return _n.host&&_n!==document&&_n.host.nodeType?_n.host:_n.parentNode}function closest(_n,Cn,$n,Nn){if(_n){$n=$n||document;do{if(Cn!=null&&(Cn[0]===">"?_n.parentNode===$n&&matches(_n,Cn):matches(_n,Cn))||Nn&&_n===$n)return _n;if(_n===$n)break}while(_n=getParentOrHost(_n))}return null}var R_SPACE=/\s+/g;function toggleClass(_n,Cn,$n){if(_n&&Cn)if(_n.classList)_n.classList[$n?"add":"remove"](Cn);else{var Nn=(" "+_n.className+" ").replace(R_SPACE," ").replace(" "+Cn+" "," ");_n.className=(Nn+($n?" "+Cn:"")).replace(R_SPACE," ")}}function css(_n,Cn,$n){var Nn=_n&&_n.style;if(Nn){if($n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?$n=document.defaultView.getComputedStyle(_n,""):_n.currentStyle&&($n=_n.currentStyle),Cn===void 0?$n:$n[Cn];!(Cn in Nn)&&Cn.indexOf("webkit")===-1&&(Cn="-webkit-"+Cn),Nn[Cn]=$n+(typeof $n=="string"?"":"px")}}function matrix(_n,Cn){var $n="";if(typeof _n=="string")$n=_n;else do{var Nn=css(_n,"transform");Nn&&Nn!=="none"&&($n=Nn+" "+$n)}while(!Cn&&(_n=_n.parentNode));var Bn=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return Bn&&new Bn($n)}function find(_n,Cn,$n){if(_n){var Nn=_n.getElementsByTagName(Cn),Bn=0,Ln=Nn.length;if($n)for(;Bn=Ln:In=Bn<=Ln,!In)return Nn;if(Nn===getWindowScrollingElement())break;Nn=getParentAutoScrollElement(Nn,!1)}return!1}function getChild(_n,Cn,$n,Nn){for(var Bn=0,Ln=0,In=_n.children;Ln2&&arguments[2]!==void 0?arguments[2]:{},Bn=Nn.evt,Ln=_objectWithoutProperties(Nn,_excluded);PluginManager.pluginEvent.bind(Sortable)(Cn,$n,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:Bn,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(Pn){_dispatchEvent({sortable:$n,name:Pn,originalEvent:Bn})}},Ln))};function _dispatchEvent(_n){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},_n))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var _n=document.createElement("x");return _n.style.cssText="pointer-events:auto",_n.style.pointerEvents==="auto"}}(),_detectDirection=function(Cn,$n){var Nn=css(Cn),Bn=parseInt(Nn.width)-parseInt(Nn.paddingLeft)-parseInt(Nn.paddingRight)-parseInt(Nn.borderLeftWidth)-parseInt(Nn.borderRightWidth),Ln=getChild(Cn,0,$n),In=getChild(Cn,1,$n),Pn=Ln&&css(Ln),Dn=In&&css(In),Hn=Pn&&parseInt(Pn.marginLeft)+parseInt(Pn.marginRight)+getRect(Ln).width,Wn=Dn&&parseInt(Dn.marginLeft)+parseInt(Dn.marginRight)+getRect(In).width;if(Nn.display==="flex")return Nn.flexDirection==="column"||Nn.flexDirection==="column-reverse"?"vertical":"horizontal";if(Nn.display==="grid")return Nn.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(Ln&&Pn.float&&Pn.float!=="none"){var Yn=Pn.float==="left"?"left":"right";return In&&(Dn.clear==="both"||Dn.clear===Yn)?"vertical":"horizontal"}return Ln&&(Pn.display==="block"||Pn.display==="flex"||Pn.display==="table"||Pn.display==="grid"||Hn>=Bn&&Nn[CSSFloatProperty]==="none"||In&&Nn[CSSFloatProperty]==="none"&&Hn+Wn>Bn)?"vertical":"horizontal"},_dragElInRowColumn=function(Cn,$n,Nn){var Bn=Nn?Cn.left:Cn.top,Ln=Nn?Cn.right:Cn.bottom,In=Nn?Cn.width:Cn.height,Pn=Nn?$n.left:$n.top,Dn=Nn?$n.right:$n.bottom,Hn=Nn?$n.width:$n.height;return Bn===Pn||Ln===Dn||Bn+In/2===Pn+Hn/2},_detectNearestEmptySortable=function(Cn,$n){var Nn;return sortables.some(function(Bn){var Ln=Bn[expando].options.emptyInsertThreshold;if(!(!Ln||lastChild(Bn))){var In=getRect(Bn),Pn=Cn>=In.left-Ln&&Cn<=In.right+Ln,Dn=$n>=In.top-Ln&&$n<=In.bottom+Ln;if(Pn&&Dn)return Nn=Bn}}),Nn},_prepareGroup=function(Cn){function $n(Ln,In){return function(Pn,Dn,Hn,Wn){var Yn=Pn.options.group.name&&Dn.options.group.name&&Pn.options.group.name===Dn.options.group.name;if(Ln==null&&(In||Yn))return!0;if(Ln==null||Ln===!1)return!1;if(In&&Ln==="clone")return Ln;if(typeof Ln=="function")return $n(Ln(Pn,Dn,Hn,Wn),In)(Pn,Dn,Hn,Wn);var Gn=(In?Pn:Dn).options.group.name;return Ln===!0||typeof Ln=="string"&&Ln===Gn||Ln.join&&Ln.indexOf(Gn)>-1}}var Nn={},Bn=Cn.group;(!Bn||_typeof$1(Bn)!="object")&&(Bn={name:Bn}),Nn.name=Bn.name,Nn.checkPull=$n(Bn.pull,!0),Nn.checkPut=$n(Bn.put),Nn.revertClone=Bn.revertClone,Cn.group=Nn},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&!ChromeForAndroid&&document.addEventListener("click",function(_n){if(ignoreNextClick)return _n.preventDefault(),_n.stopPropagation&&_n.stopPropagation(),_n.stopImmediatePropagation&&_n.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function(Cn){if(dragEl){Cn=Cn.touches?Cn.touches[0]:Cn;var $n=_detectNearestEmptySortable(Cn.clientX,Cn.clientY);if($n){var Nn={};for(var Bn in Cn)Cn.hasOwnProperty(Bn)&&(Nn[Bn]=Cn[Bn]);Nn.target=Nn.rootEl=$n,Nn.preventDefault=void 0,Nn.stopPropagation=void 0,$n[expando]._onDragOver(Nn)}}},_checkOutsideTargetEl=function(Cn){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(Cn.target)};function Sortable(_n,Cn){if(!(_n&&_n.nodeType&&_n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(_n));this.el=_n,this.options=Cn=_extends({},Cn),_n[expando]=this;var $n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(_n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(_n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(In,Pn){In.setData("Text",Pn.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==!1&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,_n,$n);for(var Nn in $n)!(Nn in Cn)&&(Cn[Nn]=$n[Nn]);_prepareGroup(Cn);for(var Bn in this)Bn.charAt(0)==="_"&&typeof this[Bn]=="function"&&(this[Bn]=this[Bn].bind(this));this.nativeDraggable=Cn.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),Cn.supportPointer?on$1(_n,"pointerdown",this._onTapStart):(on$1(_n,"mousedown",this._onTapStart),on$1(_n,"touchstart",this._onTapStart)),this.nativeDraggable&&(on$1(_n,"dragover",this),on$1(_n,"dragenter",this)),sortables.push(this.el),Cn.store&&Cn.store.get&&this.sort(Cn.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(Cn){!this.el.contains(Cn)&&Cn!==this.el&&(lastTarget=null)},_getDirection:function(Cn,$n){return typeof this.options.direction=="function"?this.options.direction.call(this,Cn,$n,dragEl):this.options.direction},_onTapStart:function(Cn){if(Cn.cancelable){var $n=this,Nn=this.el,Bn=this.options,Ln=Bn.preventOnFilter,In=Cn.type,Pn=Cn.touches&&Cn.touches[0]||Cn.pointerType&&Cn.pointerType==="touch"&&Cn,Dn=(Pn||Cn).target,Hn=Cn.target.shadowRoot&&(Cn.path&&Cn.path[0]||Cn.composedPath&&Cn.composedPath()[0])||Dn,Wn=Bn.filter;if(_saveInputCheckedState(Nn),!dragEl&&!(/mousedown|pointerdown/.test(In)&&Cn.button!==0||Bn.disabled)&&!Hn.isContentEditable&&!(!this.nativeDraggable&&Safari&&Dn&&Dn.tagName.toUpperCase()==="SELECT")&&(Dn=closest(Dn,Bn.draggable,Nn,!1),!(Dn&&Dn.animated)&&lastDownEl!==Dn)){if(oldIndex=index(Dn),oldDraggableIndex=index(Dn,Bn.draggable),typeof Wn=="function"){if(Wn.call(this,Cn,Dn,this)){_dispatchEvent({sortable:$n,rootEl:Hn,name:"filter",targetEl:Dn,toEl:Nn,fromEl:Nn}),pluginEvent("filter",$n,{evt:Cn}),Ln&&Cn.cancelable&&Cn.preventDefault();return}}else if(Wn&&(Wn=Wn.split(",").some(function(Yn){if(Yn=closest(Hn,Yn.trim(),Nn,!1),Yn)return _dispatchEvent({sortable:$n,rootEl:Yn,name:"filter",targetEl:Dn,fromEl:Nn,toEl:Nn}),pluginEvent("filter",$n,{evt:Cn}),!0}),Wn)){Ln&&Cn.cancelable&&Cn.preventDefault();return}Bn.handle&&!closest(Hn,Bn.handle,Nn,!1)||this._prepareDragStart(Cn,Pn,Dn)}}},_prepareDragStart:function(Cn,$n,Nn){var Bn=this,Ln=Bn.el,In=Bn.options,Pn=Ln.ownerDocument,Dn;if(Nn&&!dragEl&&Nn.parentNode===Ln){var Hn=getRect(Nn);if(rootEl=Ln,dragEl=Nn,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=Nn,activeGroup=In.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:($n||Cn).clientX,clientY:($n||Cn).clientY},tapDistanceLeft=tapEvt.clientX-Hn.left,tapDistanceTop=tapEvt.clientY-Hn.top,this._lastX=($n||Cn).clientX,this._lastY=($n||Cn).clientY,dragEl.style["will-change"]="all",Dn=function(){if(pluginEvent("delayEnded",Bn,{evt:Cn}),Sortable.eventCanceled){Bn._onDrop();return}Bn._disableDelayedDragEvents(),!FireFox&&Bn.nativeDraggable&&(dragEl.draggable=!0),Bn._triggerDragStart(Cn,$n),_dispatchEvent({sortable:Bn,name:"choose",originalEvent:Cn}),toggleClass(dragEl,In.chosenClass,!0)},In.ignore.split(",").forEach(function(Wn){find(dragEl,Wn.trim(),_disableDraggable)}),on$1(Pn,"dragover",nearestEmptyInsertDetectEvent),on$1(Pn,"mousemove",nearestEmptyInsertDetectEvent),on$1(Pn,"touchmove",nearestEmptyInsertDetectEvent),on$1(Pn,"mouseup",Bn._onDrop),on$1(Pn,"touchend",Bn._onDrop),on$1(Pn,"touchcancel",Bn._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:Cn}),In.delay&&(!In.delayOnTouchOnly||$n)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on$1(Pn,"mouseup",Bn._disableDelayedDrag),on$1(Pn,"touchend",Bn._disableDelayedDrag),on$1(Pn,"touchcancel",Bn._disableDelayedDrag),on$1(Pn,"mousemove",Bn._delayedDragTouchMoveHandler),on$1(Pn,"touchmove",Bn._delayedDragTouchMoveHandler),In.supportPointer&&on$1(Pn,"pointermove",Bn._delayedDragTouchMoveHandler),Bn._dragStartTimer=setTimeout(Dn,In.delay)}else Dn()}},_delayedDragTouchMoveHandler:function(Cn){var $n=Cn.touches?Cn.touches[0]:Cn;Math.max(Math.abs($n.clientX-this._lastX),Math.abs($n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var Cn=this.el.ownerDocument;off(Cn,"mouseup",this._disableDelayedDrag),off(Cn,"touchend",this._disableDelayedDrag),off(Cn,"touchcancel",this._disableDelayedDrag),off(Cn,"mousemove",this._delayedDragTouchMoveHandler),off(Cn,"touchmove",this._delayedDragTouchMoveHandler),off(Cn,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(Cn,$n){$n=$n||Cn.pointerType=="touch"&&Cn,!this.nativeDraggable||$n?this.options.supportPointer?on$1(document,"pointermove",this._onTouchMove):$n?on$1(document,"touchmove",this._onTouchMove):on$1(document,"mousemove",this._onTouchMove):(on$1(dragEl,"dragend",this),on$1(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(Cn,$n){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:$n}),this.nativeDraggable&&on$1(document,"dragover",_checkOutsideTargetEl);var Nn=this.options;!Cn&&toggleClass(dragEl,Nn.dragClass,!1),toggleClass(dragEl,Nn.ghostClass,!0),Sortable.active=this,Cn&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:$n})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var Cn=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),$n=Cn;Cn&&Cn.shadowRoot&&(Cn=Cn.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),Cn!==$n);)$n=Cn;if(dragEl.parentNode[expando]._isOutsideThisEl(Cn),$n)do{if($n[expando]){var Nn=void 0;if(Nn=$n[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:Cn,rootEl:$n}),Nn&&!this.options.dragoverBubble)break}Cn=$n}while($n=$n.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(Cn){if(tapEvt){var $n=this.options,Nn=$n.fallbackTolerance,Bn=$n.fallbackOffset,Ln=Cn.touches?Cn.touches[0]:Cn,In=ghostEl&&matrix(ghostEl,!0),Pn=ghostEl&&In&&In.a,Dn=ghostEl&&In&&In.d,Hn=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),Wn=(Ln.clientX-tapEvt.clientX+Bn.x)/(Pn||1)+(Hn?Hn[0]-ghostRelativeParentInitialScroll[0]:0)/(Pn||1),Yn=(Ln.clientY-tapEvt.clientY+Bn.y)/(Dn||1)+(Hn?Hn[1]-ghostRelativeParentInitialScroll[1]:0)/(Dn||1);if(!Sortable.active&&!awaitingDragStarted){if(Nn&&Math.max(Math.abs(Ln.clientX-this._lastX),Math.abs(Ln.clientY-this._lastY))=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:Cn}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Cn})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Cn})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:Cn}),this.save()))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(Cn){Cn.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(Cn){switch(Cn.type){case"drop":case"dragend":this._onDrop(Cn);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(Cn),_globalDragOver(Cn));break;case"selectstart":Cn.preventDefault();break}},toArray:function(){for(var Cn=[],$n,Nn=this.el.children,Bn=0,Ln=Nn.length,In=this.options;BnNn.right+Bn||_n.clientX<=Nn.right&&_n.clientY>Nn.bottom&&_n.clientX>=Nn.left:_n.clientX>Nn.right&&_n.clientY>Nn.top||_n.clientX<=Nn.right&&_n.clientY>Nn.bottom+Bn}function _getSwapDirection(_n,Cn,$n,Nn,Bn,Ln,In,Pn){var Dn=Nn?_n.clientY:_n.clientX,Hn=Nn?$n.height:$n.width,Wn=Nn?$n.top:$n.left,Yn=Nn?$n.bottom:$n.right,Gn=!1;if(!In){if(Pn&&targetMoveDistanceWn+Hn*Ln/2:DnYn-targetMoveDistance)return-lastDirection}else if(Dn>Wn+Hn*(1-Bn)/2&&DnYn-Hn*Ln/2)?Dn>Wn+Hn/2?1:-1:0}function _getInsertDirection(_n){return index(dragEl){if(_n==null||_n===!1||_n===""||_n.trim()==="")return[];_n=_n.replace(/,/g,","),_n=_n.replace(/。/g,","),_n=_n.replace(/、/g,","),_n=_n.replace(/;/g,","),_n=_n.replace(/./g,","),_n=_n.replace(/\t/g,` `),_n=_n.replace(/\r/g,` `),_n=_n.replace(/\n+/g,` `),_n=_n.replace(/\>_\","{":"}"},Bn=Object.keys(Nn);let Ln=_n.length,In="",Pn="",Dn="",Hn=0,Wn=[];for(let Gn=0;Gn]+\>/,ai=null,si=[];for(;ai=ni.exec(Gn);){let gi=ai.index,Si=gi+ai[0].length,ri=Gn.substring(0,gi),Ei=Gn.substring(Si),$i=ai[0];si.push(ri),si.push($i),Gn=Ei}si.push(Gn);for(let gi of si)gi===""||gi.trim()===""||(gi=gi.replace(/\|\|\|EXPRESSION1\|\|\|/g,">_<"),Yn.push(gi))}return Wn=Yn,Wn},globals={name:"Physton/sd-webui-prompt-all-in-one",shortName:"sd-webui-prompt-all-in-one",github:"https://github.com/Physton/sd-webui-prompt-all-in-one",nameAssets:"Physton/sd-webui-prompt-all-in-one-assets",shortNameAssets:"sd-webui-prompt-all-in-one-assets",githubAssets:"https://github.com/Physton/sd-webui-prompt-all-in-one-assets",gitee:"https://gitee.com/Physton/sd-webui-prompt-all-in-one",docs:"https://aiodoc.physton.com",nameTagComplete:"DominikDoom/a1111-sd-webui-tagcomplete",shortNameTagComplete:"a1111-sd-webui-tagcomplete",githubTagComplete:"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete",civitaiUrl:"https://civitai.com"};function _typeof(_n){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Cn){return typeof Cn}:function(Cn){return Cn&&typeof Symbol=="function"&&Cn.constructor===Symbol&&Cn!==Symbol.prototype?"symbol":typeof Cn},_typeof(_n)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(_n,Cn){if(_n=_n||"",Cn=Cn||{},_n instanceof tinycolor)return _n;if(!(this instanceof tinycolor))return new tinycolor(_n,Cn);var $n=inputToRGB(_n);this._originalInput=_n,this._r=$n.r,this._g=$n.g,this._b=$n.b,this._a=$n.a,this._roundA=Math.round(100*this._a)/100,this._format=Cn.format||$n.format,this._gradientType=Cn.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=$n.ok}tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Cn=this.toRgb();return(Cn.r*299+Cn.g*587+Cn.b*114)/1e3},getLuminance:function(){var Cn=this.toRgb(),$n,Nn,Bn,Ln,In,Pn;return $n=Cn.r/255,Nn=Cn.g/255,Bn=Cn.b/255,$n<=.03928?Ln=$n/12.92:Ln=Math.pow(($n+.055)/1.055,2.4),Nn<=.03928?In=Nn/12.92:In=Math.pow((Nn+.055)/1.055,2.4),Bn<=.03928?Pn=Bn/12.92:Pn=Math.pow((Bn+.055)/1.055,2.4),.2126*Ln+.7152*In+.0722*Pn},setAlpha:function(Cn){return this._a=boundAlpha(Cn),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Cn=rgbToHsv(this._r,this._g,this._b);return{h:Cn.h*360,s:Cn.s,v:Cn.v,a:this._a}},toHsvString:function(){var Cn=rgbToHsv(this._r,this._g,this._b),$n=Math.round(Cn.h*360),Nn=Math.round(Cn.s*100),Bn=Math.round(Cn.v*100);return this._a==1?"hsv("+$n+", "+Nn+"%, "+Bn+"%)":"hsva("+$n+", "+Nn+"%, "+Bn+"%, "+this._roundA+")"},toHsl:function(){var Cn=rgbToHsl(this._r,this._g,this._b);return{h:Cn.h*360,s:Cn.s,l:Cn.l,a:this._a}},toHslString:function(){var Cn=rgbToHsl(this._r,this._g,this._b),$n=Math.round(Cn.h*360),Nn=Math.round(Cn.s*100),Bn=Math.round(Cn.l*100);return this._a==1?"hsl("+$n+", "+Nn+"%, "+Bn+"%)":"hsla("+$n+", "+Nn+"%, "+Bn+"%, "+this._roundA+")"},toHex:function(Cn){return rgbToHex(this._r,this._g,this._b,Cn)},toHexString:function(Cn){return"#"+this.toHex(Cn)},toHex8:function(Cn){return rgbaToHex(this._r,this._g,this._b,this._a,Cn)},toHex8String:function(Cn){return"#"+this.toHex8(Cn)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(Cn){var $n="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),Nn=$n,Bn=this._gradientType?"GradientType = 1, ":"";if(Cn){var Ln=tinycolor(Cn);Nn="#"+rgbaToArgbHex(Ln._r,Ln._g,Ln._b,Ln._a)}return"progid:DXImageTransform.Microsoft.gradient("+Bn+"startColorstr="+$n+",endColorstr="+Nn+")"},toString:function(Cn){var $n=!!Cn;Cn=Cn||this._format;var Nn=!1,Bn=this._a<1&&this._a>=0,Ln=!$n&&Bn&&(Cn==="hex"||Cn==="hex6"||Cn==="hex3"||Cn==="hex4"||Cn==="hex8"||Cn==="name");return Ln?Cn==="name"&&this._a===0?this.toName():this.toRgbString():(Cn==="rgb"&&(Nn=this.toRgbString()),Cn==="prgb"&&(Nn=this.toPercentageRgbString()),(Cn==="hex"||Cn==="hex6")&&(Nn=this.toHexString()),Cn==="hex3"&&(Nn=this.toHexString(!0)),Cn==="hex4"&&(Nn=this.toHex8String(!0)),Cn==="hex8"&&(Nn=this.toHex8String()),Cn==="name"&&(Nn=this.toName()),Cn==="hsl"&&(Nn=this.toHslString()),Cn==="hsv"&&(Nn=this.toHsvString()),Nn||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(Cn,$n){var Nn=Cn.apply(null,[this].concat([].slice.call($n)));return this._r=Nn._r,this._g=Nn._g,this._b=Nn._b,this.setAlpha(Nn._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(Cn,$n){return Cn.apply(null,[this].concat([].slice.call($n)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(_n,Cn){if(_typeof(_n)=="object"){var $n={};for(var Nn in _n)_n.hasOwnProperty(Nn)&&(Nn==="a"?$n[Nn]=_n[Nn]:$n[Nn]=convertToPercentage(_n[Nn]));_n=$n}return tinycolor(_n,Cn)};function inputToRGB(_n){var Cn={r:0,g:0,b:0},$n=1,Nn=null,Bn=null,Ln=null,In=!1,Pn=!1;return typeof _n=="string"&&(_n=stringInputToObject(_n)),_typeof(_n)=="object"&&(isValidCSSUnit(_n.r)&&isValidCSSUnit(_n.g)&&isValidCSSUnit(_n.b)?(Cn=rgbToRgb(_n.r,_n.g,_n.b),In=!0,Pn=String(_n.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(_n.h)&&isValidCSSUnit(_n.s)&&isValidCSSUnit(_n.v)?(Nn=convertToPercentage(_n.s),Bn=convertToPercentage(_n.v),Cn=hsvToRgb(_n.h,Nn,Bn),In=!0,Pn="hsv"):isValidCSSUnit(_n.h)&&isValidCSSUnit(_n.s)&&isValidCSSUnit(_n.l)&&(Nn=convertToPercentage(_n.s),Ln=convertToPercentage(_n.l),Cn=hslToRgb(_n.h,Nn,Ln),In=!0,Pn="hsl"),_n.hasOwnProperty("a")&&($n=_n.a)),$n=boundAlpha($n),{ok:In,format:_n.format||Pn,r:Math.min(255,Math.max(Cn.r,0)),g:Math.min(255,Math.max(Cn.g,0)),b:Math.min(255,Math.max(Cn.b,0)),a:$n}}function rgbToRgb(_n,Cn,$n){return{r:bound01(_n,255)*255,g:bound01(Cn,255)*255,b:bound01($n,255)*255}}function rgbToHsl(_n,Cn,$n){_n=bound01(_n,255),Cn=bound01(Cn,255),$n=bound01($n,255);var Nn=Math.max(_n,Cn,$n),Bn=Math.min(_n,Cn,$n),Ln,In,Pn=(Nn+Bn)/2;if(Nn==Bn)Ln=In=0;else{var Dn=Nn-Bn;switch(In=Pn>.5?Dn/(2-Nn-Bn):Dn/(Nn+Bn),Nn){case _n:Ln=(Cn-$n)/Dn+(Cn<$n?6:0);break;case Cn:Ln=($n-_n)/Dn+2;break;case $n:Ln=(_n-Cn)/Dn+4;break}Ln/=6}return{h:Ln,s:In,l:Pn}}function hslToRgb(_n,Cn,$n){var Nn,Bn,Ln;_n=bound01(_n,360),Cn=bound01(Cn,100),$n=bound01($n,100);function In(Hn,Wn,Yn){return Yn<0&&(Yn+=1),Yn>1&&(Yn-=1),Yn<1/6?Hn+(Wn-Hn)*6*Yn:Yn<1/2?Wn:Yn<2/3?Hn+(Wn-Hn)*(2/3-Yn)*6:Hn}if(Cn===0)Nn=Bn=Ln=$n;else{var Pn=$n<.5?$n*(1+Cn):$n+Cn-$n*Cn,Dn=2*$n-Pn;Nn=In(Dn,Pn,_n+1/3),Bn=In(Dn,Pn,_n),Ln=In(Dn,Pn,_n-1/3)}return{r:Nn*255,g:Bn*255,b:Ln*255}}function rgbToHsv(_n,Cn,$n){_n=bound01(_n,255),Cn=bound01(Cn,255),$n=bound01($n,255);var Nn=Math.max(_n,Cn,$n),Bn=Math.min(_n,Cn,$n),Ln,In,Pn=Nn,Dn=Nn-Bn;if(In=Nn===0?0:Dn/Nn,Nn==Bn)Ln=0;else{switch(Nn){case _n:Ln=(Cn-$n)/Dn+(Cn<$n?6:0);break;case Cn:Ln=($n-_n)/Dn+2;break;case $n:Ln=(_n-Cn)/Dn+4;break}Ln/=6}return{h:Ln,s:In,v:Pn}}function hsvToRgb(_n,Cn,$n){_n=bound01(_n,360)*6,Cn=bound01(Cn,100),$n=bound01($n,100);var Nn=Math.floor(_n),Bn=_n-Nn,Ln=$n*(1-Cn),In=$n*(1-Bn*Cn),Pn=$n*(1-(1-Bn)*Cn),Dn=Nn%6,Hn=[$n,In,Ln,Ln,Pn,$n][Dn],Wn=[Pn,$n,$n,In,Ln,Ln][Dn],Yn=[Ln,Ln,Pn,$n,$n,In][Dn];return{r:Hn*255,g:Wn*255,b:Yn*255}}function rgbToHex(_n,Cn,$n,Nn){var Bn=[pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16))];return Nn&&Bn[0].charAt(0)==Bn[0].charAt(1)&&Bn[1].charAt(0)==Bn[1].charAt(1)&&Bn[2].charAt(0)==Bn[2].charAt(1)?Bn[0].charAt(0)+Bn[1].charAt(0)+Bn[2].charAt(0):Bn.join("")}function rgbaToHex(_n,Cn,$n,Nn,Bn){var Ln=[pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16)),pad2(convertDecimalToHex(Nn))];return Bn&&Ln[0].charAt(0)==Ln[0].charAt(1)&&Ln[1].charAt(0)==Ln[1].charAt(1)&&Ln[2].charAt(0)==Ln[2].charAt(1)&&Ln[3].charAt(0)==Ln[3].charAt(1)?Ln[0].charAt(0)+Ln[1].charAt(0)+Ln[2].charAt(0)+Ln[3].charAt(0):Ln.join("")}function rgbaToArgbHex(_n,Cn,$n,Nn){var Bn=[pad2(convertDecimalToHex(Nn)),pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16))];return Bn.join("")}tinycolor.equals=function(_n,Cn){return!_n||!Cn?!1:tinycolor(_n).toRgbString()==tinycolor(Cn).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _desaturate(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.s-=Cn/100,$n.s=clamp01($n.s),tinycolor($n)}function _saturate(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.s+=Cn/100,$n.s=clamp01($n.s),tinycolor($n)}function _greyscale(_n){return tinycolor(_n).desaturate(100)}function _lighten(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.l+=Cn/100,$n.l=clamp01($n.l),tinycolor($n)}function _brighten(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toRgb();return $n.r=Math.max(0,Math.min(255,$n.r-Math.round(255*-(Cn/100)))),$n.g=Math.max(0,Math.min(255,$n.g-Math.round(255*-(Cn/100)))),$n.b=Math.max(0,Math.min(255,$n.b-Math.round(255*-(Cn/100)))),tinycolor($n)}function _darken(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.l-=Cn/100,$n.l=clamp01($n.l),tinycolor($n)}function _spin(_n,Cn){var $n=tinycolor(_n).toHsl(),Nn=($n.h+Cn)%360;return $n.h=Nn<0?360+Nn:Nn,tinycolor($n)}function _complement(_n){var Cn=tinycolor(_n).toHsl();return Cn.h=(Cn.h+180)%360,tinycolor(Cn)}function polyad(_n,Cn){if(isNaN(Cn)||Cn<=0)throw new Error("Argument to polyad must be a positive number");for(var $n=tinycolor(_n).toHsl(),Nn=[tinycolor(_n)],Bn=360/Cn,Ln=1;Ln>1)+720)%360;--Cn;)Nn.h=(Nn.h+Bn)%360,Ln.push(tinycolor(Nn));return Ln}function _monochromatic(_n,Cn){Cn=Cn||6;for(var $n=tinycolor(_n).toHsv(),Nn=$n.h,Bn=$n.s,Ln=$n.v,In=[],Pn=1/Cn;Cn--;)In.push(tinycolor({h:Nn,s:Bn,v:Ln})),Ln=(Ln+Pn)%1;return In}tinycolor.mix=function(_n,Cn,$n){$n=$n===0?0:$n||50;var Nn=tinycolor(_n).toRgb(),Bn=tinycolor(Cn).toRgb(),Ln=$n/100,In={r:(Bn.r-Nn.r)*Ln+Nn.r,g:(Bn.g-Nn.g)*Ln+Nn.g,b:(Bn.b-Nn.b)*Ln+Nn.b,a:(Bn.a-Nn.a)*Ln+Nn.a};return tinycolor(In)},tinycolor.readability=function(_n,Cn){var $n=tinycolor(_n),Nn=tinycolor(Cn);return(Math.max($n.getLuminance(),Nn.getLuminance())+.05)/(Math.min($n.getLuminance(),Nn.getLuminance())+.05)},tinycolor.isReadable=function(_n,Cn,$n){var Nn=tinycolor.readability(_n,Cn),Bn,Ln;switch(Ln=!1,Bn=validateWCAG2Parms($n),Bn.level+Bn.size){case"AAsmall":case"AAAlarge":Ln=Nn>=4.5;break;case"AAlarge":Ln=Nn>=3;break;case"AAAsmall":Ln=Nn>=7;break}return Ln},tinycolor.mostReadable=function(_n,Cn,$n){var Nn=null,Bn=0,Ln,In,Pn,Dn;$n=$n||{},In=$n.includeFallbackColors,Pn=$n.level,Dn=$n.size;for(var Hn=0;HnBn&&(Bn=Ln,Nn=tinycolor(Cn[Hn]));return tinycolor.isReadable(_n,Nn,{level:Pn,size:Dn})||!In?Nn:($n.includeFallbackColors=!1,tinycolor.mostReadable(_n,["#fff","#000"],$n))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip$2(names);function flip$2(_n){var Cn={};for(var $n in _n)_n.hasOwnProperty($n)&&(Cn[_n[$n]]=$n);return Cn}function boundAlpha(_n){return _n=parseFloat(_n),(isNaN(_n)||_n<0||_n>1)&&(_n=1),_n}function bound01(_n,Cn){isOnePointZero(_n)&&(_n="100%");var $n=isPercentage(_n);return _n=Math.min(Cn,Math.max(0,parseFloat(_n))),$n&&(_n=parseInt(_n*Cn,10)/100),Math.abs(_n-Cn)<1e-6?1:_n%Cn/parseFloat(Cn)}function clamp01(_n){return Math.min(1,Math.max(0,_n))}function parseIntFromHex(_n){return parseInt(_n,16)}function isOnePointZero(_n){return typeof _n=="string"&&_n.indexOf(".")!=-1&&parseFloat(_n)===1}function isPercentage(_n){return typeof _n=="string"&&_n.indexOf("%")!=-1}function pad2(_n){return _n.length==1?"0"+_n:""+_n}function convertToPercentage(_n){return _n<=1&&(_n=_n*100+"%"),_n}function convertDecimalToHex(_n){return Math.round(parseFloat(_n)*255).toString(16)}function convertHexToDecimal(_n){return parseIntFromHex(_n)/255}var matchers=function(){var _n="[-\\+]?\\d+%?",Cn="[-\\+]?\\d*\\.\\d+%?",$n="(?:"+Cn+")|(?:"+_n+")",Nn="[\\s|\\(]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")\\s*\\)?",Bn="[\\s|\\(]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")\\s*\\)?";return{CSS_UNIT:new RegExp($n),rgb:new RegExp("rgb"+Nn),rgba:new RegExp("rgba"+Bn),hsl:new RegExp("hsl"+Nn),hsla:new RegExp("hsla"+Bn),hsv:new RegExp("hsv"+Nn),hsva:new RegExp("hsva"+Bn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(_n){return!!matchers.CSS_UNIT.exec(_n)}function stringInputToObject(_n){_n=_n.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var Cn=!1;if(names[_n])_n=names[_n],Cn=!0;else if(_n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $n;return($n=matchers.rgb.exec(_n))?{r:$n[1],g:$n[2],b:$n[3]}:($n=matchers.rgba.exec(_n))?{r:$n[1],g:$n[2],b:$n[3],a:$n[4]}:($n=matchers.hsl.exec(_n))?{h:$n[1],s:$n[2],l:$n[3]}:($n=matchers.hsla.exec(_n))?{h:$n[1],s:$n[2],l:$n[3],a:$n[4]}:($n=matchers.hsv.exec(_n))?{h:$n[1],s:$n[2],v:$n[3]}:($n=matchers.hsva.exec(_n))?{h:$n[1],s:$n[2],v:$n[3],a:$n[4]}:($n=matchers.hex8.exec(_n))?{r:parseIntFromHex($n[1]),g:parseIntFromHex($n[2]),b:parseIntFromHex($n[3]),a:convertHexToDecimal($n[4]),format:Cn?"name":"hex8"}:($n=matchers.hex6.exec(_n))?{r:parseIntFromHex($n[1]),g:parseIntFromHex($n[2]),b:parseIntFromHex($n[3]),format:Cn?"name":"hex"}:($n=matchers.hex4.exec(_n))?{r:parseIntFromHex($n[1]+""+$n[1]),g:parseIntFromHex($n[2]+""+$n[2]),b:parseIntFromHex($n[3]+""+$n[3]),a:convertHexToDecimal($n[4]+""+$n[4]),format:Cn?"name":"hex8"}:($n=matchers.hex3.exec(_n))?{r:parseIntFromHex($n[1]+""+$n[1]),g:parseIntFromHex($n[2]+""+$n[2]),b:parseIntFromHex($n[3]+""+$n[3]),format:Cn?"name":"hex"}:!1}function validateWCAG2Parms(_n){var Cn,$n;return _n=_n||{level:"AA",size:"small"},Cn=(_n.level||"AA").toUpperCase(),$n=(_n.size||"small").toLowerCase(),Cn!=="AA"&&Cn!=="AAA"&&(Cn="AA"),$n!=="small"&&$n!=="large"&&($n="small"),{level:Cn,size:$n}}const common$1={loraRegex:/^\$/,lycoRegex:/^\$/,weightNumRegex:/(.*):(\-?[0-9\.]+)/,weightNumRegexEN:/(.*):\s*(\-?[0-9\.]+)/,weightNumRegexCN:/(.*):\s*(\-?[0-9\.]+)/,bracketsEN:[{"(":"(",")":")"},{"[":"[","]":"]"},{"{":"{","}":"}"},{"<":"<",">":">"}],bracketsCN:[{"(":"(",")":")"},{"【":"[","】":"]"},{"《":"<","》":">"},{"「":"{","」":"}"},{"『":"{","』":"}"},{"〈":"<","〉":">"},{"﹝":"(","﹞":")"},{"﹛":"{","﹜":"}"},{"﹙":"(","﹚":")"}],replaceTag(_n){return typeof _n!="string"||_n===""||(_n=this.replaceBrackets(_n),this.weightNumRegexEN.test(_n)&&(_n=_n.replace(this.weightNumRegexEN,"$1:$2")),this.weightNumRegexCN.test(_n)&&(_n=_n.replace(this.weightNumRegexCN,"$1:$2"))),_n},replaceBrackets(_n){const Cn=_n.length;if(Cn===0)return _n;let $n={};this.bracketsCN.forEach(Ln=>{for(const In in Ln)$n[In]=Ln[In]});let Nn=_n[0],Bn=_n[Cn-1];return typeof $n[Nn]<"u"&&(_n=$n[Nn]+_n.substring(1)),typeof $n[Bn]<"u"&&(_n=_n.substring(0,Cn-1)+$n[Bn]),_n},hasBrackets(_n){const Cn=_n.length;if(Cn===0)return!1;let $n=[];this.bracketsEN.forEach(Ln=>{let In=[];for(const Pn in Ln)In.push(Pn);$n.push(In)}),this.bracketsCN.forEach(Ln=>{let In=[];for(const Pn in Ln)In.push(Pn);$n.push(In)});let Nn=_n[0],Bn=_n[Cn-1];for(const Ln of $n)if(Ln[0]===Nn&&Ln[1]===Bn)return Ln;return!1},splitTag(_n){let Cn={left:"",value:"",right:""},$n=_n.match(/^([\(\<\{\[]+)(.*)$/);return!$n||(Cn.left=$n[1],_n=$n[2],$n=_n.match(/((\:[0-9\.]+)?[\)\>\}\]]+)$/),!$n)?(Cn.value=_n,Cn):(Cn.right=$n[1],_n=_n.substring(0,_n.length-Cn.right.length),Cn.value=_n,Cn)},splitTags(_n,Cn=!1,$n=!1){return splitTags(_n,Cn,$n)},canTranslate(_n){return!(_n.trim()===""||_n[0]==="<"&&_n[_n.length-1]===">"||/^[0-9`~!@#$%^&*()_+\-=\[\]{}\\|;:'",.\/<>?]+$/.test(_n)||/^[a-zA-Z]$/.test(_n))},isEnglish(_n){const Cn=_n.length;if(_n[0]==="<"&&_n[Cn-1]===">")return!0;for(let $n=0;$n127)return!1;return!0},canOneTranslate(_n){const Cn=["zh_CN","zh_HK","zh_TW","ar_SA","ja_JP","ko_KR","ru_RU"];return Cn.push("am_ET","hy_AM","as_IN","bn_BD","ba_RU","bg_BG","prs_AF","dv_MV","el_GR","gu_IN","he_IL","hi_IN","iu_CA","kn_IN","kk_KZ","km_KH","ku_Arab_IQ","ky_KG","lo_LA","mk_MK","ml_IN","mr_IN","mn_Cyrl_MN","mn_Mong_CN","my_MM","ne_NP","or_IN","ps_AF","fa_IR","pa_Guru_IN","sr_Cyrl_RS","ta_IN","tt_Latn_RU","te_IN","th_TH","bo_CN","ti_ET","uk_UA","ur_PK","ug_Arab_CN","vi_VN"),!!Cn.includes(_n)},isEnglishByLangCode(_n,Cn){if(!this.canOneTranslate(Cn))return-1;const $n=_n.length;for(let Nn=0;Nn<$n;Nn++)if(_n.charCodeAt(Nn)>127)return 0;return 1},isSameLang(_n,Cn){if(_n===Cn)return!0;let $n=_n.toLowerCase(),Nn=Cn.toLowerCase();return $n===Nn||(_n=_n.replace("-","_"),Cn=Cn.replace("-","_"),_n===Cn)||(_n=_n.split("_")[0],Cn=Cn.split("_")[0],_n===Cn)},getLang(_n,Cn,$n){return $n[Cn]&&$n[Cn].lang&&$n[Cn].lang[_n]?this.replaceGlobals($n[Cn].lang[_n],Cn):$n.en_US&&$n.en_US.lang&&$n.en_US.lang[_n]?this.replaceGlobals($n.en_US.lang[_n],"en_US"):this.replaceGlobals(_n,Cn)},replaceGlobals(_n,Cn){for(let $n in globals){let Nn=globals[$n];if($n==="docs")switch(Cn){case"zh_CN":Nn+="/zh-CN";break;case"zh_HK":case"zh_TW":Nn+="/zh-TW";break;case"ru_RU":Nn+="/ru";break}_n=_n.replace(new RegExp(`{{${$n}}}`,"g"),Nn)}return _n},escapeHtml(_n){return _n.replace(/[&<>'"]/g,Cn=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[Cn]||Cn)},unescapeHtml(_n){return _n.replace(/&|<|>|'|"/g,Cn=>({"&":"&","<":"<",">":">","'":"'",""":'"'})[Cn]||Cn)},getTagWeightNum(_n){const Cn=_n.match(this.weightNumRegex);return Cn?parseFloat(Cn[2]):1},getTagIncWeight(_n,Cn=!1){return Cn?this.countLayers(_n,"{","}"):this.countLayers(_n,"(",")")},getTagDecWeight(_n){return this.countLayers(_n,"[","]")},countLayers(_n,Cn="(",$n=")"){let Nn=0;if(_n.length<2)return Nn;for(;;){let Bn=_n[0],Ln=_n[_n.length-1];if(Bn===Cn&&Ln===$n)Nn++,_n=_n.slice(1,_n.length-1);else break}return Nn},setLayers(_n,Cn=0,$n="(",Nn=")",Bn=""){for(;;){let Ln=_n[0],In=_n[_n.length-1];if(Ln===$n&&In===Nn)_n=_n.slice(1,_n.length-1);else break}return Cn===0?_n:$n.repeat(Cn)+_n+Bn+Nn.repeat(Cn)},getTranslateApiInfo(_n,Cn){let $n=!1;for(const Nn in Cn)for(const Bn in Nn.children)if(Bn.key===_n){$n=Bn;break}return $n},isEqualTags(_n,Cn,$n=[]){if(Cn.length!==_n.length)return!1;for(let Nn=0;Nn<_n.length;Nn++){for(let Bn in _n[Nn])if(!$n.includes(Bn)&&Cn[Nn][Bn]!==_n[Nn][Bn])return!1;for(let Bn in Cn[Nn])if(!$n.includes(Bn)&&Cn[Nn][Bn]!==_n[Nn][Bn])return!1}return!0},getTranslateApiItem(_n,Cn){if(!_n||_n.length<=0)return{};for(let $n of _n)for(let Nn of $n.children)if(Nn.key===Cn)return Nn;return _n[0].children[0]},hideCompleteResults(_n){typeof hideResults=="function"&&[100,200,300,500,1e3].forEach($n=>{setTimeout(()=>{hideResults(_n)},$n)})},formatTime(_n,Cn=!0){let $n=new Date(_n),Nn=$n.getFullYear(),Bn=$n.getMonth()+1;Bn<10&&(Bn="0"+Bn);let Ln=$n.getDate();Ln<10&&(Ln="0"+Ln);let In=$n.getHours();In<10&&(In="0"+In);let Pn=$n.getMinutes();Pn<10&&(Pn="0"+Pn);let Dn=$n.getSeconds();return Dn<10&&(Dn="0"+Dn),Cn?`${Nn}/${Bn}/${Ln} ${In}:${Pn}:${Dn}`:`${Bn}/${Ln} ${In}:${Pn}:${Dn}`},apiUrl(){let _n;return _n=window.location.origin+window.location.pathname,_n+=_n.endsWith("/")?"":"/",_n+="physton_prompt/",_n},removeCSS(_n,Cn=!0){if(!_n)return;let $n=null;Cn?$n=this.gradioApp().querySelector("#"+_n):$n=document.querySelector("#"+_n),$n&&$n.remove()},loadCSS(_n,Cn="",$n=!0,Nn=!1,Bn=!0){$n&&this.removeCSS(Cn,Bn);let Ln=this.apiUrl()+"styles?file="+encodeURIComponent(_n);Nn||(Ln+="&t="+new Date().getTime());let In=document.createElement("link");In.id=Cn,In.rel="stylesheet",In.href=Ln,Bn?this.gradioApp().appendChild(In):document.body.appendChild(In)},swapElement(_n,Cn){let $n=_n.parentNode,Nn=Cn.parentNode,Bn=_n.nextSibling,Ln=Cn.nextSibling;$n.insertBefore(Cn,Bn),Nn.insertBefore(_n,Ln)},insertBefore(_n,Cn){Cn.parentNode.insertBefore(_n,Cn)},insertAfter(_n,Cn){Cn.nextSibling?Cn.parentNode.insertBefore(_n,Cn.nextSibling):Cn.parentNode.appendChild(_n)},gradioContainer:null,gradioApp(){if(this.gradioContainer)return this.gradioContainer;const _n=document.getElementsByTagName("gradio-app"),Cn=_n.length==0?null:_n[0].shadowRoot;if(Cn){const $n=Cn.querySelectorAll(".gradio-container");for(let Nn=0;Nn<$n.length;Nn++){const Bn=$n[Nn];if(Bn.querySelectorAll("#tabs").length)return Bn.classList.add("physton-gradio-container"),this.gradioContainer=Bn,Bn}}else return document.body.classList.add("physton-gradio-container"),this.gradioContainer=document.body,document.body},fitterInputColor(_n,Cn="rgba(0,0,0,0)"){let $n="fitterInputColor:"+_n+":"+Cn;return localStorage[$n]?localStorage[$n]:!_n||_n===""||_n==="default"||_n==="none"||_n==="null"||_n==="undefined"||_n==="false"||_n==="true"||!tinycolor(_n).isValid()?(localStorage[$n]=Cn,Cn):(localStorage[$n]=_n,_n)},isColorTransparent(_n){let Cn="isColorTransparent:"+_n;if(localStorage[Cn])return localStorage[Cn]==="true";let $n=tinycolor(_n).getAlpha()===0;return localStorage[Cn]=$n,$n},getTagsColorKey(_n,Cn){return _n+"||"+Cn}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(_n){return _n&&_n.__esModule&&Object.prototype.hasOwnProperty.call(_n,"default")?_n.default:_n}var papaparse_min={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse License: MIT */(function(_n,Cn){(function($n,Nn){_n.exports=Nn()})(commonjsGlobal,function $n(){var Nn=typeof self<"u"?self:typeof window<"u"?window:Nn!==void 0?Nn:{},Bn=!Nn.document&&!!Nn.postMessage,Ln=Nn.IS_PAPA_WORKER||!1,In={},Pn=0,Dn={parse:function(ui,ii){var ci=(ii=ii||{}).dynamicTyping||!1;if(zn(ci)&&(ii.dynamicTypingFunction=ci,ci={}),ii.dynamicTyping=ci,ii.transform=!!zn(ii.transform)&&ii.transform,ii.worker&&Dn.WORKERS_SUPPORTED){var mi=function(){if(!Dn.WORKERS_SUPPORTED)return!1;var yi=(ta=Nn.URL||Nn.webkitURL||null,qo=$n.toString(),Dn.BLOB_URL||(Dn.BLOB_URL=ta.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",qo,")();"],{type:"text/javascript"})))),Fi=new Nn.Worker(yi),ta,qo;return Fi.onmessage=gi,Fi.id=Pn++,In[Fi.id]=Fi}();return mi.userStep=ii.step,mi.userChunk=ii.chunk,mi.userComplete=ii.complete,mi.userError=ii.error,ii.step=zn(ii.step),ii.chunk=zn(ii.chunk),ii.complete=zn(ii.complete),ii.error=zn(ii.error),delete ii.worker,void mi.postMessage({input:ui,config:ii,workerId:mi.id})}var _i=null;return Dn.NODE_STREAM_INPUT,typeof ui=="string"?(ui=function(yi){return yi.charCodeAt(0)===65279?yi.slice(1):yi}(ui),_i=ii.download?new Yn(ii):new ei(ii)):ui.readable===!0&&zn(ui.read)&&zn(ui.on)?_i=new nr(ii):(Nn.File&&ui instanceof File||ui instanceof Object)&&(_i=new Gn(ii)),_i.stream(ui)},unparse:function(ui,ii){var ci=!1,mi=!0,_i=",",yi=`\r `,Fi='"',ta=Fi+Fi,qo=!1,Ci=null,Ri=!1;(function(){if(typeof ii=="object"){if(typeof ii.delimiter!="string"||Dn.BAD_DELIMITERS.filter(function(Pi){return ii.delimiter.indexOf(Pi)!==-1}).length||(_i=ii.delimiter),(typeof ii.quotes=="boolean"||typeof ii.quotes=="function"||Array.isArray(ii.quotes))&&(ci=ii.quotes),typeof ii.skipEmptyLines!="boolean"&&typeof ii.skipEmptyLines!="string"||(qo=ii.skipEmptyLines),typeof ii.newline=="string"&&(yi=ii.newline),typeof ii.quoteChar=="string"&&(Fi=ii.quoteChar),typeof ii.header=="boolean"&&(mi=ii.header),Array.isArray(ii.columns)){if(ii.columns.length===0)throw new Error("Option columns is empty");Ci=ii.columns}ii.escapeChar!==void 0&&(ta=ii.escapeChar+Fi),(typeof ii.escapeFormulae=="boolean"||ii.escapeFormulae instanceof RegExp)&&(Ri=ii.escapeFormulae instanceof RegExp?ii.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var Hi=new RegExp(ai(Fi),"g");if(typeof ui=="string"&&(ui=JSON.parse(ui)),Array.isArray(ui)){if(!ui.length||Array.isArray(ui[0]))return aa(null,ui,qo);if(typeof ui[0]=="object")return aa(Ci||Object.keys(ui[0]),ui,qo)}else if(typeof ui=="object")return typeof ui.data=="string"&&(ui.data=JSON.parse(ui.data)),Array.isArray(ui.data)&&(ui.fields||(ui.fields=ui.meta&&ui.meta.fields||Ci),ui.fields||(ui.fields=Array.isArray(ui.data[0])?ui.fields:typeof ui.data[0]=="object"?Object.keys(ui.data[0]):[]),Array.isArray(ui.data[0])||typeof ui.data[0]=="object"||(ui.data=[ui.data])),aa(ui.fields||[],ui.data||[],qo);throw new Error("Unable to serialize unrecognized input");function aa(Pi,Ki,Yi){var Ji="";typeof Pi=="string"&&(Pi=JSON.parse(Pi)),typeof Ki=="string"&&(Ki=JSON.parse(Ki));var Zi=Array.isArray(Pi)&&0=this._config.preview;if(Ln)Nn.postMessage({results:yi,workerId:Dn.WORKER_ID,finished:ta});else if(zn(this._config.chunk)&&!ci){if(this._config.chunk(yi,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);yi=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(yi.data),this._completeResults.errors=this._completeResults.errors.concat(yi.errors),this._completeResults.meta=yi.meta),this._completed||!ta||!zn(this._config.complete)||yi&&yi.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ta||yi&&yi.meta.paused||this._nextChunk(),yi}this._halted=!0},this._sendError=function(ii){zn(this._config.error)?this._config.error(ii):Ln&&this._config.error&&Nn.postMessage({workerId:Dn.WORKER_ID,error:ii,finished:!1})}}function Yn(ui){var ii;(ui=ui||{}).chunkSize||(ui.chunkSize=Dn.RemoteChunkSize),Wn.call(this,ui),this._nextChunk=Bn?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(ci){this._input=ci,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(ii=new XMLHttpRequest,this._config.withCredentials&&(ii.withCredentials=this._config.withCredentials),Bn||(ii.onload=$i(this._chunkLoaded,this),ii.onerror=$i(this._chunkError,this)),ii.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Bn),this._config.downloadRequestHeaders){var ci=this._config.downloadRequestHeaders;for(var mi in ci)ii.setRequestHeader(mi,ci[mi])}if(this._config.chunkSize){var _i=this._start+this._config.chunkSize-1;ii.setRequestHeader("Range","bytes="+this._start+"-"+_i)}try{ii.send(this._config.downloadRequestBody)}catch(yi){this._chunkError(yi.message)}Bn&&ii.status===0&&this._chunkError()}},this._chunkLoaded=function(){ii.readyState===4&&(ii.status<200||400<=ii.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:ii.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(ci){var mi=ci.getResponseHeader("Content-Range");return mi===null?-1:parseInt(mi.substring(mi.lastIndexOf("/")+1))}(ii),this.parseChunk(ii.responseText)))},this._chunkError=function(ci){var mi=ii.statusText||ci;this._sendError(new Error(mi))}}function Gn(ui){var ii,ci;(ui=ui||{}).chunkSize||(ui.chunkSize=Dn.LocalChunkSize),Wn.call(this,ui);var mi=typeof FileReader<"u";this.stream=function(_i){this._input=_i,ci=_i.slice||_i.webkitSlice||_i.mozSlice,mi?((ii=new FileReader).onload=$i(this._chunkLoaded,this),ii.onerror=$i(this._chunkError,this)):ii=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(_i.target.result)},this._chunkError=function(){this._sendError(ii.error)}}function ei(ui){var ii;Wn.call(this,ui=ui||{}),this.stream=function(ci){return ii=ci,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var ci,mi=this._config.chunkSize;return mi?(ci=ii.substring(0,mi),ii=ii.substring(mi)):(ci=ii,ii=""),this._finished=!ii,this.parseChunk(ci)}}}function nr(ui){Wn.call(this,ui=ui||{});var ii=[],ci=!0,mi=!1;this.pause=function(){Wn.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Wn.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(_i){this._input=_i,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){mi&&ii.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),ii.length?this.parseChunk(ii.shift()):ci=!0},this._streamData=$i(function(_i){try{ii.push(typeof _i=="string"?_i:_i.toString(this._config.encoding)),ci&&(ci=!1,this._checkIsFinished(),this.parseChunk(ii.shift()))}catch(yi){this._streamError(yi)}},this),this._streamError=$i(function(_i){this._streamCleanUp(),this._sendError(_i)},this),this._streamEnd=$i(function(){this._streamCleanUp(),mi=!0,this._streamData("")},this),this._streamCleanUp=$i(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ni(ui){var ii,ci,mi,_i=Math.pow(2,53),yi=-_i,Fi=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ta=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,qo=this,Ci=0,Ri=0,Hi=!1,aa=!1,sa=[],Pi={data:[],errors:[],meta:{}};if(zn(ui.step)){var Ki=ui.step;ui.step=function(Go){if(Pi=Go,Zi())Ji();else{if(Ji(),Pi.data.length===0)return;Ci+=Go.data.length,ui.preview&&Ci>ui.preview?ci.abort():(Pi.data=Pi.data[0],Ki(Pi,qo))}}}function Yi(Go){return ui.skipEmptyLines==="greedy"?Go.join("").trim()==="":Go.length===1&&Go[0].length===0}function Ji(){return Pi&&mi&&(la("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+Dn.DefaultDelimiter+"'"),mi=!1),ui.skipEmptyLines&&(Pi.data=Pi.data.filter(function(Go){return!Yi(Go)})),Zi()&&function(){if(!Pi)return;function Go(ha,di){zn(ui.transformHeader)&&(ha=ui.transformHeader(ha,di)),sa.push(ha)}if(Array.isArray(Pi.data[0])){for(var ra=0;Zi()&&ra=sa.length?"__parsed_extra":sa[hi]),ui.transform&&(Ni=ui.transform(Ni,Ii)),Ni=Qo(Ii,Ni),Ii==="__parsed_extra"?(wi[Ii]=wi[Ii]||[],wi[Ii].push(Ni)):wi[Ii]=Ni}return ui.header&&(hi>sa.length?la("FieldMismatch","TooManyFields","Too many fields: expected "+sa.length+" fields but parsed "+hi,Ri+di):hi=Wi.length/2?`\r `:"\r"}(Go,di)),mi=!1,ui.delimiter)zn(ui.delimiter)&&(ui.delimiter=ui.delimiter(Go),Pi.meta.delimiter=ui.delimiter);else{var hi=function(Ii,Ni,Bi,Wi,ji){var Ui,Vi,Gi,zi;ji=ji||[","," ","|",";",Dn.RECORD_SEP,Dn.UNIT_SEP];for(var Yo=0;Yo=Fi)return Sa(!0)}else for(Li=Ci,Ci++;;){if((Li=Hi.indexOf(ii,Li+1))===-1)return sa||la.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Qo.length,index:Ci}),wa();if(Li===Pi-1)return wa(Hi.substring(Ci,Li).replace(Yo,ii));if(ii!==qo||Hi[Li+1]!==qo){if(ii===qo||Li===0||Hi[Li-1]!==qo){Gi!==-1&&Gi=Fi)return Sa(!0);break}la.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Qo.length,index:Ci}),Li++}}else Li++}return wa();function fa(Ai){Qo.push(Ai),ra=Ci}function Ca(Ai){var Xi=0;if(Ai!==-1){var ea=Hi.substring(Li+1,Ai);ea&&ea.trim()===""&&(Xi=ea.length)}return Xi}function wa(Ai){return sa||(Ai===void 0&&(Ai=Hi.substring(Ci)),Go.push(Ai),Ci=Pi,fa(Go),Zi&&Aa()),Sa()}function Na(Ai){Ci=Ai,fa(Go),Go=[],zi=Hi.indexOf(mi,Ci)}function Sa(Ai){return{data:Qo,errors:la,meta:{delimiter:ci,linebreak:mi,aborted:Ri,truncated:!!Ai,cursor:ra+(aa||0)}}}function Aa(){yi(Sa()),Qo=[],la=[]}},this.abort=function(){Ri=!0},this.getCharIndex=function(){return Ci}}function gi(ui){var ii=ui.data,ci=In[ii.workerId],mi=!1;if(ii.error)ci.userError(ii.error,ii.file);else if(ii.results&&ii.results.data){var _i={abort:function(){mi=!0,Si(ii.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ri,resume:ri};if(zn(ci.userStep)){for(var yi=0;yi{}},translateApis:{type:Array,default:()=>[]},translateApi:{type:String,default:""},translateApiConfig:{type:Object},tagCompleteFile:{type:String,default:""},onlyCsvOnAuto:{type:Boolean,default:!1},groupTagsTranslate:{type:Boolean,default:!0},groupTagsTranslateCache:{type:Object,default:()=>({toEn:new Map,toLocal:new Map})}},data(){return{cancelMultiTranslate:!1,globals}},computed:{langName(){for(const _n in this.languages){const Cn=this.languages[_n];if(Cn.code===this.languageCode)return Cn.name}return item.name}},methods:{getLang(_n){return common$1.getLang(_n,this.languageCode,this.languages)},replaceGlobals(_n){return common$1.replaceGlobals(_n,this.languageCode)},getCSV(_n=null,Cn=!1){return window.tagCompleteFileCache=window.tagCompleteFileCache||{},window.tagCompleteFileLoading=window.tagCompleteFileLoading||{},new Promise(($n,Nn)=>{if(_n=_n||this.tagCompleteFile,!Cn&&window.tagCompleteFileCache[_n]){$n(window.tagCompleteFileCache[_n]);return}if(window.tagCompleteFileLoading[_n]){const In=setInterval(()=>{window.tagCompleteFileLoading[_n]||(clearInterval(In),$n(window.tagCompleteFileCache[_n]))},100);return}window.tagCompleteFileLoading[_n]=!0;let Bn={toEn:new Map,toLocal:new Map},Ln=(In,Pn)=>{[In,In.replace(/\_/g," "),In.replace(/\-/g," ")].forEach(Hn=>Bn.toLocal.set(Hn,Pn)),Bn.toEn.set(Pn,In)};if(!_n&&typeof translations=="object"&&translations instanceof Map){translations.forEach((In,Pn)=>{Ln(Pn,In)}),window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,$n(Bn);return}if(!_n){window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,Nn(this.getLang("not_found_csv_file"));return}this.gradioAPI.getCSV(_n).then(In=>{In=Papa.parse(In,{header:!1,skipEmptyLines:!0}),In.data.forEach(Pn=>{if(Pn.length<2)return;let Dn=Pn[0].trim(),Hn=Pn[1].trim();Dn===""||Hn===""||Ln(Dn,Hn)}),window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,$n(Bn)}).catch(In=>{window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,In.response&&In.response.status===404?Nn(this.getLang("not_found_csv_file")):Nn(In.message)})})},_translateToLocalBy(_n,Cn,$n=!1){_n=_n.trim().toLowerCase();let Nn=Bn=>{var Ln;return((Ln=Bn.join)==null?void 0:Ln.call(Bn," / "))??Bn};if(Cn.has(_n))return Nn(Cn.get(_n));{const Bn=_n.split(",").map(Pn=>Pn.trim());let Ln=[],In=[];if(Bn.forEach(Pn=>{Cn.has(Pn)?Ln.push(Nn(Cn.get(Pn))):$n&&Pn.length&&In.push(Pn)}),Ln.length>0&&!In.length)return Ln.join(", ")}return""},async translateToLocalByCSV(_n,Cn=null,$n=!1,Nn=!1){let Bn=await this.getCSV(Cn,$n);return this._translateToLocalBy(_n,Bn.toLocal,Nn)},async translateToEnByCSV(_n,Cn=null,$n=!1){let Nn=await this.getCSV(Cn,$n);return this._toEn(_n,Nn.toEn)},async translateToLocalByGroupTags(_n,Cn=!1){return console.log("translateToLocalByGroupTags",_n),this._translateToLocalBy(_n,this.groupTagsTranslateCache.toLocal,Cn)},async translateToEnByGroupTags(_n){return this._toEn(_n,this.groupTagsTranslateCache.toEn)},_toEn(_n,Cn){return _n=_n.trim().toLowerCase(),Cn.has(_n)?Cn.get(_n):""}}},isNaN$1=Number.isNaN||window.isNaN,REGEXP_NUMBER=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,REGEXP_DECIMALS=/\.\d*(?:0|9){10}\d*$/,normalizeDecimalNumber=(_n,Cn=1e11)=>REGEXP_DECIMALS.test(String(_n))?Math.round(_n*Cn)/Cn:_n,_sfc_main$g=defineComponent({name:"VueNumberInput",props:{attrs:{type:Object,default:void 0},center:Boolean,controls:Boolean,disabled:Boolean,inputtable:{type:Boolean,default:!0},inline:Boolean,max:{type:Number,default:1/0},min:{type:Number,default:-1/0},name:{type:String,default:void 0},placeholder:{type:String,default:void 0},readonly:Boolean,rounded:Boolean,size:{type:String,default:void 0},step:{type:Number,default:1},modelValue:{type:Number,default:NaN}},emits:["update:modelValue"],data(){return{value:NaN}},computed:{increasable(){return isNaN$1(this.value)||this.valuethis.min}},watch:{modelValue:{immediate:!0,handler(_n,Cn){!(isNaN$1(_n)&&typeof Cn>"u")&&_n!==this.value&&this.setValue(_n)}}},methods:{isNaN:isNaN$1,change(_n){this.setValue(_n.target.value)},paste(_n){const Cn=_n.clipboardData||window.clipboardData;Cn&&!REGEXP_NUMBER.test(Cn.getData("text"))&&_n.preventDefault()},decrease(){if(this.decreasable){let{value:_n}=this;isNaN$1(_n)&&(_n=0),this.setValue(normalizeDecimalNumber(_n-this.step))}},increase(){if(this.increasable){let{value:_n}=this;isNaN$1(_n)&&(_n=0),this.setValue(normalizeDecimalNumber(_n+this.step))}},setValue(_n){const Cn=this.value;let $n=typeof _n!="number"?parseFloat(_n):_n;isNaN$1($n)||(this.min<=this.max&&($n=Math.min(this.max,Math.max(this.min,$n))),this.rounded&&($n=Math.round($n))),this.value=$n,$n===Cn&&(this.$refs.input.value=String($n)),this.$emit("update:modelValue",$n,Cn)}}}),_export_sfc=(_n,Cn)=>{const $n=_n.__vccOpts||_n;for(const[Nn,Bn]of Cn)$n[Nn]=Bn;return $n},_hoisted_1$f=["disabled"],_hoisted_2$d=["name","value","min","max","step","readonly","disabled","placeholder"],_hoisted_3$d=["disabled"];function _sfc_render$g(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vue-number-input",{"vue-number-input--inline":_n.inline,"vue-number-input--center":_n.center,"vue-number-input--controls":_n.controls,[`vue-number-input--${_n.size}`]:_n.size}])},[_n.controls?(openBlock(),createElementBlock("button",{key:0,class:"vue-number-input__button vue-number-input__button--minus",type:"button",tabindex:"-1",disabled:_n.disabled||_n.readonly||!_n.decreasable,onClick:Cn[0]||(Cn[0]=withModifiers((...In)=>_n.decrease&&_n.decrease(...In),["prevent"]))},null,8,_hoisted_1$f)):createCommentVNode("",!0),createBaseVNode("input",mergeProps({ref:"input",class:"vue-number-input__input"},_n.attrs,{type:"number",name:_n.name,value:isNaN(_n.value)?"":_n.value,min:_n.min,max:_n.max,step:_n.step,readonly:_n.readonly||!_n.inputtable,disabled:_n.disabled||!_n.decreasable&&!_n.increasable,placeholder:_n.placeholder,autocomplete:"off",onChange:Cn[1]||(Cn[1]=(...In)=>_n.change&&_n.change(...In)),onPaste:Cn[2]||(Cn[2]=(...In)=>_n.paste&&_n.paste(...In))}),null,16,_hoisted_2$d),_n.controls?(openBlock(),createElementBlock("button",{key:1,class:"vue-number-input__button vue-number-input__button--plus",type:"button",tabindex:"-1",disabled:_n.disabled||_n.readonly||!_n.increasable,onClick:Cn[3]||(Cn[3]=withModifiers((...In)=>_n.increase&&_n.increase(...In),["prevent"]))},null,8,_hoisted_3$d)):createCommentVNode("",!0)],2)}const VueNumberInput=_export_sfc(_sfc_main$g,[["render",_sfc_render$g]]),HeaderMixin={data(){return{autocompleteResults:null,autocompleteResultsParent:null,showAppendList:!1,appendListStyle:{top:0,left:0},appendListSelected:null,appendListChildSelected:null,appendList:[{type:"wrap",name:"line_break_character",icon:"wrap",children:[]}],favorites:[],autoInputPrompt:"disabled",autoInputPromptKey:""}},computed:{appendListChildItemTags(){return this.appendListSelected===null?[]:this.appendListChildSelected===null?[]:this.appendList[this.appendListSelected].type!=="favorite"&&this.appendList[this.appendListSelected].type!=="history"?[]:this.appendList[this.appendListSelected].children[this.appendListChildSelected].tags}},mounted(){this.initAutoInputPrompt(),[{name:"txt2img",type:"prompt",key:"txt2img",neg:!1},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",neg:!0},{name:"img2img",type:"prompt",key:"img2img",neg:!1},{name:"img2img",type:"negative_prompt",key:"img2img_neg",neg:!0}].forEach(Cn=>{Cn.neg===this.neg&&this.appendList.push({type:"favorite",name:["favorite",Cn.name],icon:"favorite",key:Cn.key,dataKey:"favorite."+Cn.key,children:[]})})},methods:{onUnfoldClick(){this.hidePanel&&this.$nextTick(()=>{this.onResize()}),this.$emit("update:hidePanel",!this.hidePanel)},onTranslatesToLocalClick(){if(this.tags.length===0)return;if(this.loading.all_local){this.cancelMultiTranslate=!0,this.loading.all_local=!1;return}this.loading.all_local=!0;let _n=[];for(const Cn in this.tags)this.tags[Cn].type&&this.tags[Cn].type!=="text"||_n.push(Cn);return this.translates(_n,!0,!0).finally(()=>{this.loading.all_local=!1,this.updateTags()})},onTranslatesToEnglishClick(){if(this.tags.length===0)return;if(this.loading.all_en){this.cancelMultiTranslate=!0,this.loading.all_en=!1;return}this.loading.all_en=!0;let _n=[];for(const Cn in this.tags)this.tags[Cn].type&&this.tags[Cn].type!=="text"||_n.push(Cn);this.translates(_n,!1,!0).finally(()=>{this.loading.all_en=!1,this.updateTags()})},onCopyAllTagsClick(){this.copy(this.prompt)},onDeleteAllTagsClick(){confirm(this.getLang("delete_all_keywords_confirm"))&&(this.tags=[],this.updateTags())},appendListItemName(_n){let Cn=[];if(typeof _n.name=="object")for(let $n of _n.name)Cn.push(this.getLang($n));else Cn=[this.getLang(_n.name)];return Cn.join(" / ")},onAppendTagFocus(_n){if(this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""){this.appendListStyle={top:_n.target.offsetTop+_n.target.offsetHeight+"px",left:_n.target.offsetLeft+"px"},this.appendListSelected=null,this.appendListChildSelected=null,this.showAppendList=!0;let Cn=[];this.appendList.forEach($n=>{typeof $n.dataKey=="string"&&Cn.push($n.dataKey)}),this.gradioAPI.getDatas(Cn).then($n=>{this.appendList.forEach(Nn=>{typeof Nn.dataKey=="string"&&(Nn.children=$n[Nn.dataKey]||[],Nn.children.reverse())})})}this._setTextareaFocus()},onAppendTagBlur(_n){setTimeout(()=>{this.showAppendList=!1},300)},selectAppendList(_n=!0){this.appendList.length!==0&&(this.appendListSelected===null?this.appendListSelected=0:_n?(this.appendListSelected++,this.appendListSelected>=this.appendList.length&&(this.appendListSelected=0)):(this.appendListSelected--,this.appendListSelected<0&&(this.appendListSelected=this.appendList.length-1)),this.appendListChildSelected=null)},selectAppendListChild(_n=!0){this.appendList.length!==0&&this.appendListSelected!==null&&this.appendList[this.appendListSelected].children.length!==0&&(this.appendListChildSelected===null?this.appendListChildSelected=0:_n?(this.appendListChildSelected++,this.appendListChildSelected>=this.appendList[this.appendListSelected].children.length&&(this.appendListChildSelected=0)):(this.appendListChildSelected--,this.appendListChildSelected<0&&(this.appendListChildSelected=this.appendList[this.appendListSelected].children.length-1)),this.scrollAppendListChild())},scrollAppendListChild(){this.appendListSelected!==null&&(this.appendListChildSelected===0||this.appendListChildSelected===null?this.$refs.promptAppendListChildren[this.appendListSelected].scrollTop=0:this.$refs.promptAppendListChild[this.appendListChildSelected].scrollIntoView({behavior:"smooth",block:"center"}))},onAppendTagKeyDown(_n,Cn=null){if(!(_n.keyCode===38||_n.keyCode===40))if(_n.keyCode===13){if(this.getAutocompleteResults()&&(this.autocompleteResultsParent&&this.autocompleteResultsParent.style.display==="flex"||this.autocompleteResults.style.display==="none")&&this.getAutocompleteResultsSelected()){let Nn=this.getAutocompleteResultsSelectedText();setTimeout(()=>{Cn=this.$refs.promptTagAppend.value,Nn?Cn=Nn:(Nn=this.getAutocompleteResultsSelectedText(),Nn&&(Cn=Nn)),this.onAppendTagKeyDown(_n,Cn)},300);return}let $n=this.$refs.promptTagAppend.value;if(this.$refs.promptTagAppend.value="",this.showAppendList=!0,console.log($n,Cn),Cn)$n=$n.replace(/\s*,\s*$/,"").trim(),common$1.hasBrackets($n)&&($n=common$1.replaceBrackets($n)),this._appendTag($n,Cn),this.updateTags();else{common$1.hasBrackets($n)?($n=common$1.replaceBrackets($n),$n=[$n]):$n=common$1.splitTags($n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);let Nn=[];$n.forEach(Bn=>{let Ln=-1;Bn===` `?Ln=this._appendTag(` `,` `,!1,-1,"wrap"):Ln=this._appendTag(Bn),Ln!==-1&&Nn.push(Ln)}),this.autoTranslateByIndexes(Nn)}}else this.removeAutocompleteResultsSelected()},autoTranslateByIndexes(_n){this.updatePrompt(),this.autoTranslateToEnglish||this.autoTranslateToLocal?this.$nextTick(()=>{let Cn=!(this.tagCompleteFile&&this.onlyCsvOnAuto);this.autoTranslateToEnglish?this.translates(_n,!1,Cn).finally(()=>{this.updateTags()}):this.autoTranslateToLocal&&this.translates(_n,!0,Cn).finally(()=>{this.updateTags()})}):this.updateTags()},onAppendTagKeyUp(_n){this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""?(this.$refs.promptTagAppend.value="",this.showAppendList=!0,_n.keyCode===38||_n.keyCode===40?this.appendListChildSelected===null?this.selectAppendList(_n.keyCode===40):this.selectAppendListChild(_n.keyCode===40):_n.keyCode===37||_n.keyCode===39?this.appendListSelected!==null&&(_n.keyCode===37?(this.appendListChildSelected=null,this.scrollAppendListChild()):this.appendList[this.appendListSelected].children.length===0?this.appendListChildSelected=null:(this.appendListChildSelected=0,this.scrollAppendListChild())):_n.keyCode===13&&(this._appendTagByList(),this.scrollAppendListChild(),this.appendListSelected=null,this.appendListChildSelected=null)):this.showAppendList=!1},onAppendGroupClick(_n,Cn,$n){if(_n!==null){if(this.appendListSelected=_n,Cn===null){if(this.appendList[this.appendListSelected].children.length>0)return}else this.appendListChildSelected=Cn;this._appendTagByList()}},onAppendListChildMouseLeave(_n,Cn,$n){this.appendListSelected=null,this.appendListChildSelected=null},onAppendListChildMouseEnter(_n,Cn,$n){this.appendListSelected=_n,this.appendListChildSelected=Cn},_appendTagByList(){if(this.appendListSelected===null)return;const _n=this.appendList[this.appendListSelected];let Cn=null;_n.children.length>0&&this.appendListChildSelected!==null&&(Cn=_n.children[this.appendListChildSelected]);let $n=[];switch(_n.type){case"wrap":$n.push({value:` `,localValue:` `,disabled:!1,type:"wrap"});break;case"lora":break;case"favorite":case"history":Cn&&Cn.tags.forEach(Nn=>{$n.push({value:Nn.value,localValue:Nn.localValue,disabled:Nn.disabled,type:Nn.type||"text"})});break}$n.length<=0||($n.forEach(Nn=>{this._appendTag(Nn.value,Nn.localValue,Nn.disabled,-1,Nn.type)}),this.updateTags())},getAutocompleteResults(){if(!this.autocompleteResults){const _n=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteResults");if(_n){this.autocompleteResults=_n,this.autocompleteResults.getAttribute("data-mousemove")!=="true"&&(this.autocompleteResults.setAttribute("data-mousemove","true"),this.autocompleteResults.addEventListener("mousemove",$n=>{this.bindAutocompleteResultsClick()}));const Cn=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteParent");Cn&&(this.autocompleteResultsParent=Cn)}}return this.autocompleteResults},removeAutocompleteResultsSelected(){const _n=this.getAutocompleteResults();return _n?(_n.querySelectorAll("li").forEach(Cn=>{Cn.classList.remove("selected")}),!0):!1},getAutocompleteResultsSelected(){const _n=this.getAutocompleteResults();if(!_n)return null;const Cn=_n.querySelector("li.selected");return Cn||null},getAutocompleteResultsSelectedText(_n=null){if(!_n&&(_n=this.getAutocompleteResultsSelected(),!_n))return null;const Nn=_n.querySelector(".acListItem").innerText.match(/\[(.+?)\]/);return Nn?Nn[1]:null},bindAutocompleteResultsClick(){if(this.getAutocompleteResults(),!this.autocompleteResults)return;this.autocompleteResults.querySelectorAll("li").forEach(Cn=>{Cn.getAttribute("physton-on-clicked")!=="true"&&(Cn.setAttribute("physton-on-clicked","true"),Cn.addEventListener("click",()=>{this.onAutocompleteResultsClicked(Cn)}))})},onAutocompleteResultsClicked(_n){const Cn=this.getAutocompleteResultsSelectedText(_n);setTimeout(()=>{let $n=this.$refs.promptTagAppend.value.replace(/,\s*$/,"");this.$refs.promptTagAppend.value="",$n=$n.replace(/\s*,\s*$/,"").trim(),common$1.hasBrackets($n)&&($n=common$1.replaceBrackets($n)),this._appendTag($n,Cn),this.updateTags()},300)},onSettingBoxMouseEnter(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[]},getCurrentTypeFavorites(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[];let _n=[];return this.favorites.forEach(Cn=>{if(this.neg){if(Cn.type!=="negative_prompt")return}else if(Cn.type!=="prompt")return;_n.push(Cn)}),_n},onAutoInputPromptChange(){this.gradioAPI.setData(this.autoInputPromptKey,this.autoInputPrompt).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},initAutoInputPrompt(){this.autoInputPromptKey="autoInputPrompt-"+this.name,this.gradioAPI.getData(this.autoInputPromptKey).then(_n=>{if(_n!==null)if(this.autoInputPrompt=_n,this.autoInputPrompt==="last")this.gradioAPI.getLatestHistory(this.historyKey).then(Cn=>{this.useHistory(Cn)});else{const Cn=()=>{if(typeof window.phystonPromptfavorites=="object"&&window.phystonPromptfavorites.length>0){for(let $n of window.phystonPromptfavorites)for(let Nn of $n.list)if(Nn.id===this.autoInputPrompt){this.useFavorite(Nn);return}return}setTimeout(Cn,100)};setTimeout(Cn,100)}})}}},DropMixin={data(){return{dropStartX:0,dropStartY:0,dropEndX:0,dropEndY:0,dropOffsetX:0,dropOffsetY:0,dropIsSelecting:!1,dropIsStart:!1,dropIsEnd:!1,dropArea:{top:0,left:0,width:0,height:0},dropTags:[],dropTimeId:0}},methods:{_dropOver(){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!1,this.dropTags=[];for(let _n=0;_nthis.dropArea.left+this.dropArea.width||Bn>this.dropArea.top+this.dropArea.height)?(_n.push($n.getAttribute("data-id")),$n.classList.add("drop-selected")):$n.classList.remove("drop-selected"),this.dropTags=_n}},onDropMouseUp(_n){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!0,this.$refs.dropSelectBtns.style.left=this.$refs.dropSelectBox.style.left,this.$refs.dropSelectBtns.style.top=this.$refs.dropSelectBox.style.top},_getDropTags(){let _n=[];return this.dropTags.forEach(Cn=>{let $n=this.tags.find(Nn=>Nn.id===Cn);$n&&_n.push($n)}),_n},_getDropIndexes(){let _n=[];return this.dropTags.forEach(Cn=>{let $n=this.tags.findIndex(Nn=>Nn.id===Cn);$n!==-1&&_n.push($n)}),_n},_getDropTagsEle(){let _n=[];return this.dropTags.forEach(Cn=>{let $n=this.$refs.promptTagsList.querySelector(`.prompt-tag[data-id="${Cn}"]`);$n&&_n.push($n)}),_n},onDropCopy(){let _n=this._getDropTags();this._dropOver();let Cn=this.genPrompt(_n,!0);this.copy(Cn)},onDropFavorite(){let _n=this._getDropTags();this._dropOver();let Cn=this.genPrompt(_n,!0);this.gradioAPI.pushFavorite(this.favoriteKey,_n,Cn,"").then($n=>{$n?(this.$toastr.success(this.getLang("success")),this.$emit("refreshFavorites",this.favoriteKey)):this.$toastr.error(this.getLang("failed"))}).catch($n=>{this.$toastr.error(this.getLang("failed"))})},onDropDisable(){let _n=this._getDropTags();this._dropOver(),_n.forEach(Cn=>{Cn.disabled=!0}),this.updateTags()},onDropEnable(){let _n=this._getDropTags();this._dropOver(),_n.forEach(Cn=>{Cn.disabled=!1}),this.updateTags()},onDropDelete(){let _n=this._getDropIndexes();this._dropOver(),_n.sort((Cn,$n)=>$n-Cn),_n.forEach(Cn=>{this.tags.splice(Cn,1)}),this.updateTags()}}};var GHOST_ELEMENT_ID="__autosizeInputGhost",characterEntities={" ":"nbsp","<":"lt",">":"gt"};function mapSpecialCharacterToCharacterEntity(_n){return"&"+characterEntities[_n]+";"}function escapeSpecialCharacters(_n){return _n.replace(/\s|<|>/g,mapSpecialCharacterToCharacterEntity)}function createGhostElement(){var _n=document.createElement("div");return _n.id=GHOST_ELEMENT_ID,_n.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",document.body.appendChild(_n),_n}var autosizeInput=function(_n,Cn){var $n=window.getComputedStyle(_n),Nn="box-sizing:"+$n.boxSizing+";border-left:"+$n.borderLeftWidth+" solid red;border-right:"+$n.borderRightWidth+" solid red;font-family:"+$n.fontFamily+";font-feature-settings:"+$n.fontFeatureSettings+";font-kerning:"+$n.fontKerning+";font-size:"+$n.fontSize+";font-stretch:"+$n.fontStretch+";font-style:"+$n.fontStyle+";font-variant:"+$n.fontVariant+";font-variant-caps:"+$n.fontVariantCaps+";font-variant-ligatures:"+$n.fontVariantLigatures+";font-variant-numeric:"+$n.fontVariantNumeric+";font-weight:"+$n.fontWeight+";letter-spacing:"+$n.letterSpacing+";margin-left:"+$n.marginLeft+";margin-right:"+$n.marginRight+";padding-left:"+$n.paddingLeft+";padding-right:"+$n.paddingRight+";text-indent:"+$n.textIndent+";text-transform:"+$n.textTransform;function Bn(){var In=_n.value||_n.getAttribute("placeholder")||"",Pn=document.getElementById(GHOST_ELEMENT_ID)||createGhostElement();Pn.style.cssText+=Nn,Pn.innerHTML=escapeSpecialCharacters(In);var Dn=window.getComputedStyle(Pn).width;return _n.style.width=Dn,Dn}_n.addEventListener("input",Bn);var Ln=Bn();return Cn&&Cn.minWidth&&Ln!=="0px"&&(_n.style.minWidth=Ln),function(){_n.removeEventListener("input",Bn);var In=document.getElementById(GHOST_ELEMENT_ID);In&&In.parentNode.removeChild(In)}};const autoSizeInput=getDefaultExportFromCjs(autosizeInput),TagMixin={data(){return{tagClickTimeId:0,showExtendId:""}},mounted(){},methods:{_setTag(_n){if(typeof _n.type=="string"&&_n.type==="wrap")_n.weightNum=1,_n.incWeight=0,_n.decWeight=0;else if(_n.weightNum=common$1.getTagWeightNum(_n.value),_n.incWeight=common$1.getTagIncWeight(_n.value,this.useNovelAiWeightSymbol),_n.decWeight=common$1.getTagDecWeight(_n.value),_n.originalValue=_n.value,!_n.value.match(common$1.loraRegex)&&!_n.value.match(common$1.lycoRegex)){let Cn=_n.value;const $n=common$1.hasBrackets(Cn);($n[0]==="("&&$n[1]===")"||$n[0]==="["&&$n[1]==="]"||this.useNovelAiWeightSymbol&&$n[0]==="{"&&$n[1]==="}")&&(Cn=common$1.setLayers(Cn,0,$n[0],$n[1]),_n.originalValue=Cn.replace(common$1.weightNumRegex,"$1"))}this._setTagClass(_n),this.$nextTick(()=>{this._setTagHeight(_n)})},_setTagHeight(_n){let Cn=10,$n=setInterval(()=>{if(Cn--,Cn<=0&&clearInterval($n),!this.$refs["promptTagValue-"+_n.id]||!this.$refs["promptTagValue-"+_n.id][0])return!1;clearInterval($n);let Nn=this.$refs["promptTagValue-"+_n.id][0],Bn=Nn.offsetHeight;Nn.parentNode.style.height=Bn+"px",this.$refs["promptTagEdit-"+_n.id]&&(this.$refs["promptTagEdit-"+_n.id][0].style.height=Bn+"px"),this.$refs["promptTagDelete-"+_n.id]&&(this.$refs["promptTagDelete-"+_n.id][0].style.height=Bn+"px")},50)},_getTagType(_n){},_setTagClass(_n){if(_n.isLora=!1,_n.loraExists=!1,_n.isLyco=!1,_n.lycoExists=!1,_n.isEmbedding=!1,!(typeof _n.type=="string"&&_n.type==="wrap")){const $n=_n.value.match(common$1.loraRegex);if($n&&(_n.isLora=!0,_n.loraName=$n[1],this.loraExists($n[1])!==!1&&(_n.loraExists=!0)),!_n.isLora){const Nn=_n.value.match(common$1.lycoRegex);Nn&&(_n.isLyco=!0,_n.lycoName=Nn[1],this.lycoExists(Nn[1])!==!1&&(_n.lycoExists=!0))}if(!_n.isLora&&!_n.isLyco){const Nn=this.embeddingExists(_n.value);if(Nn!==!1)_n.isEmbedding=!0,_n.value=Nn,_n.embeddingName=Nn;else{const Bn=this.embeddingExists(_n.originalValue);Bn!==!1&&(_n.isEmbedding=!0,_n.embeddingName=Bn)}}}let Cn=["prompt-tag-value"];return _n.isLora?(Cn.push("lora-tag"),_n.loraExists||Cn.push("lora-not-exists")):_n.isLyco?(Cn.push("lyco-tag"),_n.lycoExists||Cn.push("lyco-not-exists")):_n.isEmbedding?Cn.push("embedding-tag"):this.neg&&Cn.push("neg-tag"),_n.classes=Cn,Cn},_setTagById(_n,Cn=null,$n=null){let Nn=this.tags.find(Bn=>Bn.id===_n);return Nn?(Cn!==null&&(Nn.value=Cn),$n!==null&&(Nn.localValue=$n),Nn):!1},_isTagBlacklist(_n){var Cn,$n,Nn,Bn,Ln;if(typeof _n.type=="string"&&_n.type==="wrap")return!1;if(_n.isLora){if((Cn=this.blacklist.lora)!=null&&Cn.includes(_n.loraName.toLowerCase()))return!0}else if(_n.isLyco){if(($n=this.blacklist.lycoris)!=null&&$n.includes(_n.lycoName.toLowerCase()))return!0}else if(_n.isEmbedding){if((Nn=this.blacklist.embedding)!=null&&Nn.includes(_n.embeddingName.toLowerCase()))return!0}else if(this.neg){if((Bn=this.blacklist.negative_prompt)!=null&&Bn.includes(_n.originalValue.toLowerCase()))return!0}else if((Ln=this.blacklist.prompt)!=null&&Ln.includes(_n.originalValue.toLowerCase()))return!0;return!1},_appendTag(_n,Cn="",$n=!1,Nn=-1,Bn="text"){if(_n==="")return-1;const Ln=Date.now()+(Math.random()*1e6).toFixed(0);let In={id:Ln,value:_n==null||_n===!1?"":_n,localValue:Cn==null||Cn===!1?"":Cn,disabled:$n,type:Bn};return this._setTag(In),this._isTagBlacklist(In)?-1:(Nn>=0?this.tags.splice(Nn,0,In):Nn=this.tags.push(In),this.$nextTick(()=>{this.$refs["promptTagEdit-"+Ln]&&autoSizeInput(this.$refs["promptTagEdit-"+Ln][0])}),Nn-1)},renderTag(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return"";let $n=Cn.value;if($n==="BREAK"&&(this.autoBreakBeforeWrap||this.autoBreakAfterWrap))$n='
---------------------
BREAK
---------------------
';else if($n=common$1.escapeHtml($n),Cn.incWeight>0)if(this.useNovelAiWeightSymbol){$n=common$1.setLayers($n,0,"{","}"),$n='
'+$n+"
";let Nn='
'+"{".repeat(Cn.incWeight)+"
",Bn='
'+"}".repeat(Cn.incWeight)+"
";$n=Nn+$n+Bn}else{$n=common$1.setLayers($n,0,"(",")"),$n='
'+$n+"
";let Nn='
'+"(".repeat(Cn.incWeight)+"
",Bn='
'+")".repeat(Cn.incWeight)+"
";$n=Nn+$n+Bn}else if(Cn.decWeight>0){$n=common$1.setLayers($n,0,"[","]"),$n='
'+$n+"
";let Nn='
'+"[".repeat(Cn.decWeight)+"
",Bn='
'+"]".repeat(Cn.decWeight)+"
";$n=Nn+$n+Bn}else $n='
'+$n+"
";return $n},isFavorite(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;if(typeof window.phystonPromptfavorites=="object"){for(const $n of window.phystonPromptfavorites)if($n.key===this.favoriteKey){for(const Nn of $n.list)if(Nn.tags.length===1&&Nn.tags[0].value===Cn.value)return Nn.id}}return!1},onLoraPopupUseKeywords(_n){let Cn=[];for(let $n of _n){let Nn=$n.toLowerCase();if(!this.tags.find(Ln=>Ln.value.toLowerCase()===Nn)){let Ln=this._appendTag($n,"",!1,-1,"text");Ln!==-1&&Cn.push(Ln)}}Cn.length&&this.autoTranslateByIndexes(Cn)},onTagMouseEnter(_n){if(this.isEditing)return!1;let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;if(Cn.isFavorite=this.isFavorite(Cn.id),this.hotkey.hover==="extend"&&(this.showExtendId=_n),Cn.isLora||Cn.isLyco||Cn.isEmbedding){let $n=Cn.isLora?Cn.loraName:Cn.isLyco?Cn.lycoName:Cn.embeddingName;this.$emit("showExtraNetworks",this.$refs["promptTagValue-"+Cn.id][0],$n,this.onLoraPopupUseKeywords,"tags")}},onTagMouseMove(_n){},onTagMouseLeave(_n){if(!this.tags.find($n=>$n.id===_n))return!1;this.hotkey.hover==="extend"&&(this.showExtendId=""),this.$emit("hideExtraNetworks")},onTagClick(_n){this.tagClickTimeId&&clearTimeout(this.tagClickTimeId),this.tagClickTimeId=setTimeout(()=>{switch(this.hotkey.click){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}clearTimeout(this.tagClickTimeId)},250)},onTagDblclick(_n){switch(clearTimeout(this.tagClickTimeId),this.hotkey.dblClick){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}},onTagRightClick(_n,Cn){switch(this.hotkey.rightClick){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}},_handleEditTag(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.editing={},this.editing[Cn.id]=!0,this.isEditing=!0,this.$forceUpdate(),this.$nextTick(()=>{const $n=this.$refs["promptTagEdit-"+Cn.id][0];$n.focus(),$n.dispatchEvent(new Event("input"))})},_handleDisableTag(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.onDisabledTagClick(Cn.id)},_handleHoverTag(_n){if(!this.tags.find($n=>$n.id===_n))return!1;this.showExtendId=_n},onTagInputBlur(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.editing[Cn.id]=!1,this.isEditing=!1},onTagInputKeyDown(_n,Cn){if(Cn.keyCode===13){let $n=this.tags.find(Nn=>Nn.id===_n);if(!$n)return!1;this.editing[$n.id]=!1,this.isEditing=!1,$n.value!==Cn.target.value&&($n.value=Cn.target.value,this._setTag($n),this.updateTags())}},onTagInputChange(_n,Cn){let $n=this.tags.find(Nn=>Nn.id===_n);if(!$n)return!1;$n.value!==Cn.target.value&&($n.value=Cn.target.value,this._setTag($n),this.updateTags())},onTagWeightNumChange(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return!1;if(Cn=typeof Cn=="number"||typeof a=="string"?Cn:Cn.target.value,$n.weightNum==Cn)return;let Nn=Cn,Bn=$n.value,Ln=$n.localValue;if(Nn!==0){if(Nn===1&&!this.autoKeepWeightOne){const In=common$1.hasBrackets(Bn);(In[0]==="("&&In[1]===")"||this.useNovelAiWeightSymbol&&In[0]==="{"&&In[1]==="}")&&(Bn=common$1.setLayers(Bn,0,In[0],In[1]),Ln!==""&&(Ln=common$1.setLayers(Ln,0,In[0],In[1]))),Bn=Bn.replace(common$1.weightNumRegex,"$1"),Ln!==""&&(Ln=Ln.replace(common$1.weightNumRegex,"$1"))}else{if(!common$1.weightNumRegex.test(Bn)){let In=common$1.hasBrackets(Bn);In?(Bn=common$1.setLayers(Bn,1,In[0],In[1],":"+Nn),Ln!==""&&(Ln=common$1.setLayers(Ln,1,In[0],In[1],":"+Nn))):(Bn=Bn+":"+Nn,Ln!==""&&(Ln=Ln+":"+Nn))}common$1.hasBrackets(Bn)||(this.useNovelAiWeightSymbol?(Bn=common$1.setLayers(Bn,1,"{","}"),Ln!==""&&(Ln=common$1.setLayers(Ln,1,"{","}"))):(Bn=common$1.setLayers(Bn,1,"(",")"),Ln!==""&&(Ln=common$1.setLayers(Ln,1,"(",")"))))}Bn!==$n.value&&($n.value=Bn,Ln!==""&&($n.localValue=Ln),this._setTag($n))}else this.autoKeepWeightZero?($n.value=Bn.replace(common$1.weightNumRegex,"$1:0"),Ln!==""&&($n.localValue=$n.localValue.replace(common$1.weightNumRegex,"$1:0"))):($n.value=Bn.replace(common$1.weightNumRegex,"$1"),Ln!==""&&($n.localValue=$n.localValue.replace(common$1.weightNumRegex,"$1")));$n.weightNum=Nn,this.updateTags()},onDeleteTagClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return!1;let $n=this.tags.indexOf(Cn);this.tags.splice($n,1),this.updateTags()},onFavoriteTagClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return!1;let $n=this.isFavorite(Cn.id);$n?this.gradioAPI.unFavorite(this.favoriteKey,$n).then(Nn=>{Nn&&(Cn.isFavorite=!1,this.$emit("refreshFavorites",this.favoriteKey))}):this.gradioAPI.pushFavorite(this.favoriteKey,[Cn],Cn.value,Cn.localValue===""?Cn.value:Cn.localValue).then(Nn=>{Nn&&(Cn.isFavorite=!0,this.$emit("refreshFavorites",this.favoriteKey))})},onDisabledTagClick(_n){let Cn=this.tags.find($n=>$n.id===_n);Cn&&(Cn.disabled=!Cn.disabled,this.updateTags())},onIncWeightClick(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return;let Nn=$n.value,Bn=$n.localValue;Nn=common$1.setLayers(Nn,0,"[","]"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"[","]")),this.useNovelAiWeightSymbol&&(Nn=common$1.setLayers(Nn,0,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"(",")")));let Ln=$n.incWeight;Ln+=Cn,Ln<0&&(Ln=0),$n.incWeight=Ln,$n.decWeight=0,this.useNovelAiWeightSymbol?(Nn=common$1.setLayers(Nn,Ln,"{","}"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"{","}"))):(Nn=common$1.setLayers(Nn,Ln,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"(",")"))),$n.value=Nn,Bn!==""&&($n.localValue=Bn),this.updateTags()},onDecWeightClick(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return;let Nn=$n.value,Bn=$n.localValue;Nn=common$1.setLayers(Nn,0,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"(",")")),this.useNovelAiWeightSymbol&&(Nn=common$1.setLayers(Nn,0,"{","}"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"{","}")));let Ln=$n.decWeight;Ln+=Cn,Ln<0&&(Ln=0),$n.incWeight=0,$n.decWeight=Ln,Nn=common$1.setLayers(Nn,Ln,"[","]"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"[","]")),$n.value=Nn,Bn!==""&&($n.localValue=Bn),this.updateTags()},onWrapTagClick(_n){let Cn=this.tags.find(Ln=>Ln.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn),Nn=this._appendTag(` `,` `,!1,-1,"wrap"),Bn=this.tags[Nn];this.tags.splice(Nn,1),this.tags.splice($n+1,0,Bn),this.updateTags()},onTranslateToLocalClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn);this.loading[Cn.id+"_local"]||this.translates([$n],!0,!0).finally(()=>{this.updateTags()})},onTranslateToEnglishClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn);this.loading[Cn.id+"_en"]||this.translates([$n],!1,!0).finally(()=>{this.updateTags()})},onBlacklistClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;if(!this.cancelBlacklistConfirm){let Nn=this.getLang("confirm_add_blacklist").replace("{0}",Cn.value)+` `+this.getLang("blacklist_desc");if(!confirm(Nn))return}let $n=JSON.parse(JSON.stringify(this.blacklist));Cn.isLora?$n.lora.push(Cn.loraName):Cn.isLyco?$n.lycoris.push(Cn.lycoName):Cn.isEmbedding?$n.embedding.push(Cn.embeddingName):this.neg?$n.negative_prompt.push(Cn.originalValue):$n.prompt.push(Cn.originalValue),this.gradioAPI.setData("blacklist",$n),this.$emit("update:blacklist",$n,this.cancelBlacklistConfirm),this.tags.forEach(Nn=>{Nn.value===Cn.value&&this.onDeleteTagClick(Nn.id)})}}},GroupTagsMixin={data(){return{groupTagsActive:"",subGroupTagsActive:"",groupTagsProcessed:[]}},watch:{groupTags:{handler(){this.genGroup(),(!this.groupTagsActive||!this.subGroupTagsActive)&&(this.groupTagsActive="favorite",this.subGroupTagsActive="favorite-"+this.favoriteKey),this._setGroupTagItemWidth()},deep:!0,immediate:!0},favorites:{handler(){this.genGroup()},deep:!0,immediate:!0},extraNetworks:{handler(){this.genGroup()},deep:!0,immediate:!0}},mounted(){this.gradioAPI.getData("groupTagsActive-"+this.name).then(_n=>{_n!==null&&typeof _n=="object"&&(this.groupTagsActive=_n.groupTagsActive,this.subGroupTagsActive=_n.subGroupTagsActive)})},methods:{genGroup(){let _n=[],Cn={name:this.getLang("favorite"),tabKey:"favorite",type:"favorite",groups:[]};if(this.getCurrentTypeFavorites().forEach($n=>{let Nn={color:"",name:this.getLang($n.name),tabKey:"favorite-"+$n.key,type:"favorite",tags:{},ori:{}};$n.list.forEach(Bn=>{Nn.tags[Bn.prompt]=Bn.name==""?Bn.prompt:Bn.name,Nn.ori[Bn.prompt]=Bn}),Cn.groups.push(Nn)}),_n.push(Cn),!this.$appMode){let $n={name:"Extra Networks",tabKey:"extraNetworks",type:"extraNetworks",groups:[]};this.extraNetworks.forEach(Nn=>{let Bn={color:"",name:Nn.title,tabKey:"extraNetworks-"+Nn.name,type:"extraNetworks",subType:Nn.name,tags:{},datas:[]};Nn.items.forEach(Dn=>{Bn.datas.push(Dn)}),$n.groups.push(Bn),Nn.items.forEach(Dn=>{Dn.dirnameFormat=Dn.dirname.replaceAll("\\","/")});let Ln=[],In=Nn.items.map(Dn=>Dn.dirnameFormat.split("/")),Pn=Math.min(...In.map(Dn=>Dn.length));Nn.items.forEach(Dn=>{Dn.base_dirname=Dn.dirnameFormat.split("/").slice(Pn).join("/"),Ln.push(Dn.base_dirname)}),Ln=[...new Set(Ln)],Ln=Ln.filter(Dn=>Dn!==""),Ln.length>1&&Ln.forEach(Dn=>{let Hn={color:"",name:Dn,tabKey:"extraNetworks-"+Nn.name+"-"+Dn,type:"extraNetworks",subType:Nn.name,tags:{},datas:[]};Nn.items.forEach(Wn=>{Wn.base_dirname===Dn&&Hn.datas.push(Wn)}),$n.groups.push(Hn)}),$n.groups.push({type:"wrap"})}),_n.push($n)}_n=_n.concat(this.groupTags),this.groupTagsProcessed=_n},saveGroupActive(){this.gradioAPI.setData("groupTagsActive-"+this.name,{groupTagsActive:this.groupTagsActive,subGroupTagsActive:this.subGroupTagsActive})},activeGroupTab(_n){this.groupTagsActive=this.groupTagsProcessed[_n].tabKey,this.subGroupTagsActive=this.groupTagsProcessed[_n].groups[0].tabKey,this.saveGroupActive();let Cn=this.$refs.groupTabsHeader.children[_n].offsetLeft-this.$refs.groupTabsHeader.offsetWidth/2+this.$refs.groupTabsHeader.children[_n].offsetWidth/2;this.$refs.groupTabsHeader.scrollTo({left:Cn,behavior:"smooth"}),this._setGroupTagItemWidth()},activeSubGroupTab(_n,Cn){this.subGroupTagsActive=this.groupTagsProcessed[_n].groups[Cn].tabKey,this.saveGroupActive(),this._setGroupTagItemWidth()},_setGroupTagItemWidth(){this.$nextTick(()=>{if(!this.$refs.groupTagItem)return;this.$refs.groupTagItem.forEach((Cn,$n)=>{Cn.style.width="auto"});let _n=0;this.$refs.groupTagItem.forEach((Cn,$n)=>{_n=Math.max(_n,Cn.offsetWidth)}),_n>0&&this.$refs.groupTagItem.forEach((Cn,$n)=>{Cn.style.width=_n+"px"})})},onClickHideGroupTags(){this.$emit("update:hideGroupTags",!this.hideGroupTags)},onClickGroupTag(_n,Cn,$n,Nn){let Bn=[];if(this.tags.forEach((Ln,In)=>{Ln.originalValue===Cn&&Bn.push(In)}),Bn.length)Bn.reverse().forEach(Ln=>{this.tags.splice(Ln,1)}),this.updateTags();else if($n.type==="favorite"){let Ln=Nn.ori[Cn];this.onClickGroupTagFavorite(Ln)}else this._appendTag(Cn,_n,!1,-1,"text"),this.updateTags()},onClickGroupTagFavorite(_n){_n.tags.forEach(Cn=>{this._appendTag(Cn.value,Cn.localValue,Cn.disabled,-1,Cn.type)}),this.updateTags()},onClickGroupTagExtraNetwork(data,group,subGroup){if(subGroup.subType==="checkpoints"){if(data.loading)return;data.loading=!0;let _n=Cn=>{if(Cn>100){data.loading=!1;return}if(opts&&opts.sd_model_checkpoint===data.basename){data.loading=!1;return}setTimeout(_n,100,Cn+1)};_n(0),selectCheckpoint(data.basename);return}let indexes=this._groupTagsExtraNetworkTagsIndexes(data);if(indexes.length)indexes.reverse().forEach(_n=>{console.log(_n),this.tags.splice(_n,1)}),this.updateTags();else{let index=this._appendTag(eval(data.prompt),"",!1,-1,"text");this.autoTranslateToLocal?this.translates([index],!0,!1).finally(()=>{this.updateTags()}):this.updateTags()}},getGroupTagTooltip(_n,Cn){let $n="";return _n&&_n!==Cn&&($n+=_n+"
"),$n+=Cn,$n},getGroupTagStyle(_n,Cn,$n){let Nn={},Bn=common$1.getTagsColorKey(_n,Cn),Ln="";this.groupTagsColor[Bn]&&(Ln=this.groupTagsColor[Bn],common$1.isColorTransparent(Ln)&&(Ln="")),Ln&&(Nn={background:Ln});for(let In of this.tags)if(In.originalValue===$n){Nn.filter="grayscale(1)";break}return Nn},_groupTagsExtraNetworkTagsIndexes(_n){let Cn=_n.name,$n=_n.output_name||void 0,Nn=[];for(let Bn in this.tags){let Ln=this.tags[Bn];if(typeof Ln.type=="string"&&Ln.type==="wrap")continue;let In=!1;Ln.isLora?In=Ln.loraName===Cn||$n&&Ln.loraName===$n:Ln.isLyco?In=Ln.lycoName===Cn||$n&&Ln.lycoName===$n:Ln.isEmbedding?In=Ln.embeddingName===Cn||$n&&Ln.embeddingName===$n:In=Ln.originalValue===Cn||$n&&Ln.originalValue===$n,In&&Nn.push(Bn)}return Nn},getGroupTagExtraNetworkStyle(_n){let Cn=this._groupTagsExtraNetworkTagsIndexes(_n),$n={width:this.extraNetworksWidth+"px",height:this.extraNetworksHeight+"px"};return Cn.length&&($n.filter="grayscale(1)"),$n},getTagsColorKey(_n,Cn){return common$1.getTagsColorKey(_n,Cn)},onTagsColorChange(_n){this.$emit("update:groupTagsColor",this.groupTagsColor)},onClickResetTagsColor(_n){for(let Cn of this.groupTagsProcessed)for(let $n of Cn.groups){if($n.type&&$n.typ=="wrap")continue;let Nn=common$1.getTagsColorKey(Cn.name,$n.name);_n===Nn&&(this.groupTagsColor[_n]=ref(common$1.fitterInputColor($n.color)))}this.onTagsColorChange(_n)},onClickClearTagsColor(_n){this.groupTagsColor[_n]=ref("rgba(0,0,0,0)"),this.onTagsColorChange(_n)},getTagColorStyle(_n){if(_n.isLora||_n.isLyco||_n.isEmbedding)return{};if(!this.groupTagsColorKeyCache[_n.value])return{};let Cn=this.groupTagsColorKeyCache[_n.value];if(!this.groupTagsColor[Cn])return{};let $n=this.groupTagsColor[Cn];return common$1.isColorTransparent($n)?{}:{background:$n}},onGroupExtraNetworkMouseEnter(_n,Cn){this.$emit("showExtraNetworks",_n.target,Cn,this.onLoraPopupUseKeywords,!0,"groupTags")},onGroupExtraNetworkMouseMove(){},onGroupExtraNetworkMouseLeave(){this.$emit("hideExtraNetworks")}}},_sfc_main$f={name:"IconSvg",props:{name:{type:String,required:!0},svgName:{type:String,default:""}},data(){return{svgCode:""}},watch:{name:{handler:function(_n,Cn){this.getSvg()},immediate:!1}},mounted(){this.getSvg()},methods:{getSvg(){if(!this.name)return;let _n=this.svgName||this.name;if(window.loadingSvg=window.loadingSvg||{},window.isLoadSvg=window.isLoadSvg||{},window.isLoadSvg[_n]){this.svgCode=localStorage.getItem("iconSVG-"+_n);return}if(localStorage.getItem("iconSVG-"+_n)&&(this.svgCode=localStorage.getItem("iconSVG-"+_n)),window.loadingSvg[_n]){const Cn=setInterval(()=>{window.loadingSvg[_n]||(clearInterval(Cn),this.svgCode=localStorage.getItem("iconSVG-"+_n))},10);return}window.loadingSvg[_n]=!0,window.iconSvgHash||(window.iconSvgHash=new Date().getTime()),this.gradioAPI.styles("icons/"+_n+".svg",window.iconSvgHash).then(Cn=>{this.svgCode=Cn,localStorage.setItem("iconSVG-"+_n,Cn),window.isLoadSvg[_n]=!0,window.loadingSvg[_n]=!1}).catch(Cn=>{window.loadingSvg[_n]=!1})}}},_hoisted_1$e=["innerHTML"];function _sfc_render$f(_n,Cn,$n,Nn,Bn,Ln){return withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(["icon-svg","icon-svg-"+$n.name]),"data-name":"name",innerHTML:Bn.svgCode},null,10,_hoisted_1$e)),[[vShow,Bn.svgCode]])}const IconSvg=_export_sfc(_sfc_main$f,[["render",_sfc_render$f]]),_sfc_main$e={name:"HighlightPrompt",props:{textarea:{type:Object,required:!0},hideDefaultInput:{type:Boolean,default:!1}},data(){return{scrollTop:0,showTimeId:0,hideTimeId:0,lastHighLightTag:null}},watch:{},mounted(){},methods:{show(_n){this.lastHighLightTag&&this.lastHighLightTag.value===_n.value||(this.lastHighLightTag=_n,this.showTimeId&&clearTimeout(this.showTimeId),this.showTimeId=setTimeout(()=>{this._show(_n),this.showTimeId=0},10))},_show(_n){if(this.hideDefaultInput)return this._hide();if(typeof _n.type=="string"&&_n.type==="wrap")return this._hide();let Cn=_n.value,$n=this.textarea.value;if(Cn===""||Cn.trim()==="")return this._hide();if($n===""||$n.trim()==="")return this._hide();if(Cn=common$1.escapeHtml(Cn),$n=common$1.escapeHtml(this.textarea.value),$n.indexOf(Cn)===-1)return this._hide();this.textarea.parentNode.insertBefore(this.$refs.highlightPrompt,this.textarea.nextSibling);const Bn=window.getComputedStyle(this.textarea);for(const Pn of Bn)this.$refs.highlightPrompt.style[Pn]=Bn[Pn];this.$refs.highlightPrompt.style.display="block",this.textarea.style.display="none";let Ln="",In=$n;for(;;){const Pn=In.indexOf(Cn);if(Pn===-1){Ln+=In;break}const Dn=Pn+Cn.length;Ln+=In.substring(0,Pn),Ln+='',Ln+=In.substring(Pn,Dn),Ln+="",In=In.substring(Dn)}this.$refs.highlightPrompt.innerHTML=Ln,this.$refs.highlightPrompt.scrollTop=this.scrollTop},hide(){this.lastHighLightTag=null,this.showTimeId&&clearTimeout(this.showTimeId),this.hideTimeId&&clearTimeout(this.hideTimeId),this.hideTimeId=setTimeout(()=>{this._hide(),this.hideTimeId=0},10)},_hide(){this.textarea.style.display="block",this.$refs.highlightPrompt.style.display="none",this.scrollTop=this.textarea.scrollTop}}};function _sfc_render$e(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:"physton-highlight-prompt",ref:"highlightPrompt",onClick:Cn[0]||(Cn[0]=(...In)=>Ln.hide&&Ln.hide(...In))},null,512)}const HighlightPrompt=_export_sfc(_sfc_main$e,[["render",_sfc_render$e]]);function tryOnScopeDispose(_n){return getCurrentScope()?(onScopeDispose(_n),!0):!1}function toValue(_n){return typeof _n=="function"?_n():unref(_n)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$1=Object.prototype.toString,isObject$4=_n=>toString$1.call(_n)==="[object Object]",noop$1=()=>{},isIOS=getIsIOS();function getIsIOS(){var _n;return isClient&&((_n=window==null?void 0:window.navigator)==null?void 0:_n.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(_n,Cn){function $n(...Nn){return new Promise((Bn,Ln)=>{Promise.resolve(_n(()=>Cn.apply(this,Nn),{fn:Cn,thisArg:this,args:Nn})).then(Bn).catch(Ln)})}return $n}const bypassFilter=_n=>_n();function debounceFilter(_n,Cn={}){let $n,Nn,Bn=noop$1;const Ln=Pn=>{clearTimeout(Pn),Bn(),Bn=noop$1};return Pn=>{const Dn=toValue(_n),Hn=toValue(Cn.maxWait);return $n&&Ln($n),Dn<=0||Hn!==void 0&&Hn<=0?(Nn&&(Ln(Nn),Nn=null),Promise.resolve(Pn())):new Promise((Wn,Yn)=>{Bn=Cn.rejectOnCancel?Yn:Wn,Hn&&!Nn&&(Nn=setTimeout(()=>{$n&&Ln($n),Nn=null,Wn(Pn())},Hn)),$n=setTimeout(()=>{Nn&&Ln(Nn),Nn=null,Wn(Pn())},Dn)})}}function pausableFilter(_n=bypassFilter){const Cn=ref(!0);function $n(){Cn.value=!1}function Nn(){Cn.value=!0}const Bn=(...Ln)=>{Cn.value&&_n(...Ln)};return{isActive:readonly(Cn),pause:$n,resume:Nn,eventFilter:Bn}}function useDebounceFn(_n,Cn=200,$n={}){return createFilterWrapper(debounceFilter(Cn,$n),_n)}function watchWithFilter(_n,Cn,$n={}){const{eventFilter:Nn=bypassFilter,...Bn}=$n;return watch(_n,createFilterWrapper(Nn,Cn),Bn)}function watchPausable(_n,Cn,$n={}){const{eventFilter:Nn,...Bn}=$n,{eventFilter:Ln,pause:In,resume:Pn,isActive:Dn}=pausableFilter(Nn);return{stop:watchWithFilter(_n,Cn,{...Bn,eventFilter:Ln}),pause:In,resume:Pn,isActive:Dn}}function tryOnMounted(_n,Cn=!0){getCurrentInstance()?onMounted(_n):Cn?_n():nextTick(_n)}function whenever(_n,Cn,$n){return watch(_n,(Nn,Bn,Ln)=>{Nn&&Cn(Nn,Bn,Ln)},$n)}function unrefElement(_n){var Cn;const $n=toValue(_n);return(Cn=$n==null?void 0:$n.$el)!=null?Cn:$n}const defaultWindow=isClient?window:void 0;function useEventListener(..._n){let Cn,$n,Nn,Bn;if(typeof _n[0]=="string"||Array.isArray(_n[0])?([$n,Nn,Bn]=_n,Cn=defaultWindow):[Cn,$n,Nn,Bn]=_n,!Cn)return noop$1;Array.isArray($n)||($n=[$n]),Array.isArray(Nn)||(Nn=[Nn]);const Ln=[],In=()=>{Ln.forEach(Wn=>Wn()),Ln.length=0},Pn=(Wn,Yn,Gn,ei)=>(Wn.addEventListener(Yn,Gn,ei),()=>Wn.removeEventListener(Yn,Gn,ei)),Dn=watch(()=>[unrefElement(Cn),toValue(Bn)],([Wn,Yn])=>{if(In(),!Wn)return;const Gn=isObject$4(Yn)?{...Yn}:Yn;Ln.push(...$n.flatMap(ei=>Nn.map(nr=>Pn(Wn,ei,nr,Gn))))},{immediate:!0,flush:"post"}),Hn=()=>{Dn(),In()};return tryOnScopeDispose(Hn),Hn}let _iOSWorkaround=!1;function onClickOutside(_n,Cn,$n={}){const{window:Nn=defaultWindow,ignore:Bn=[],capture:Ln=!0,detectIframe:In=!1}=$n;if(!Nn)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(Nn.document.body.children).forEach(Gn=>Gn.addEventListener("click",noop$1)),Nn.document.documentElement.addEventListener("click",noop$1));let Pn=!0;const Dn=Gn=>Bn.some(ei=>{if(typeof ei=="string")return Array.from(Nn.document.querySelectorAll(ei)).some(nr=>nr===Gn.target||Gn.composedPath().includes(nr));{const nr=unrefElement(ei);return nr&&(Gn.target===nr||Gn.composedPath().includes(nr))}}),Wn=[useEventListener(Nn,"click",Gn=>{const ei=unrefElement(_n);if(!(!ei||ei===Gn.target||Gn.composedPath().includes(ei))){if(Gn.detail===0&&(Pn=!Dn(Gn)),!Pn){Pn=!0;return}Cn(Gn)}},{passive:!0,capture:Ln}),useEventListener(Nn,"pointerdown",Gn=>{const ei=unrefElement(_n);Pn=!Dn(Gn)&&!!(ei&&!Gn.composedPath().includes(ei))},{passive:!0}),In&&useEventListener(Nn,"blur",Gn=>{setTimeout(()=>{var ei;const nr=unrefElement(_n);((ei=Nn.document.activeElement)==null?void 0:ei.tagName)==="IFRAME"&&!(nr!=null&&nr.contains(Nn.document.activeElement))&&Cn(Gn)},0)})].filter(Boolean);return()=>Wn.forEach(Gn=>Gn())}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(_n,Cn){return handlers[_n]||Cn}function guessSerializerType(_n){return _n==null?"any":_n instanceof Set?"set":_n instanceof Map?"map":_n instanceof Date?"date":typeof _n=="boolean"?"boolean":typeof _n=="string"?"string":typeof _n=="object"?"object":Number.isNaN(_n)?"any":"number"}const StorageSerializers={boolean:{read:_n=>_n==="true",write:_n=>String(_n)},object:{read:_n=>JSON.parse(_n),write:_n=>JSON.stringify(_n)},number:{read:_n=>Number.parseFloat(_n),write:_n=>String(_n)},any:{read:_n=>_n,write:_n=>String(_n)},string:{read:_n=>_n,write:_n=>String(_n)},map:{read:_n=>new Map(JSON.parse(_n)),write:_n=>JSON.stringify(Array.from(_n.entries()))},set:{read:_n=>new Set(JSON.parse(_n)),write:_n=>JSON.stringify(Array.from(_n))},date:{read:_n=>new Date(_n),write:_n=>_n.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(_n,Cn,$n,Nn={}){var Bn;const{flush:Ln="pre",deep:In=!0,listenToStorageChanges:Pn=!0,writeDefaults:Dn=!0,mergeDefaults:Hn=!1,shallow:Wn,window:Yn=defaultWindow,eventFilter:Gn,onError:ei=ii=>{console.error(ii)},initOnMounted:nr}=Nn,ni=(Wn?shallowRef:ref)(typeof Cn=="function"?Cn():Cn);if(!$n)try{$n=getSSRHandler("getDefaultStorage",()=>{var ii;return(ii=defaultWindow)==null?void 0:ii.localStorage})()}catch(ii){ei(ii)}if(!$n)return ni;const ai=toValue(Cn),si=guessSerializerType(ai),gi=(Bn=Nn.serializer)!=null?Bn:StorageSerializers[si],{pause:Si,resume:ri}=watchPausable(ni,()=>Ei(ni.value),{flush:Ln,deep:In,eventFilter:Gn});return Yn&&Pn&&tryOnMounted(()=>{useEventListener(Yn,"storage",ui),useEventListener(Yn,customStorageEventName,zn),nr&&ui()}),nr||ui(),ni;function Ei(ii){try{if(ii==null)$n.removeItem(_n);else{const ci=gi.write(ii),mi=$n.getItem(_n);mi!==ci&&($n.setItem(_n,ci),Yn&&Yn.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:_n,oldValue:mi,newValue:ci,storageArea:$n}})))}}catch(ci){ei(ci)}}function $i(ii){const ci=ii?ii.newValue:$n.getItem(_n);if(ci==null)return Dn&&ai!==null&&$n.setItem(_n,gi.write(ai)),ai;if(!ii&&Hn){const mi=gi.read(ci);return typeof Hn=="function"?Hn(mi,ai):si==="object"&&!Array.isArray(mi)?{...ai,...mi}:mi}else return typeof ci!="string"?ci:gi.read(ci)}function zn(ii){ui(ii.detail)}function ui(ii){if(!(ii&&ii.storageArea!==$n)){if(ii&&ii.key==null){ni.value=ai;return}if(!(ii&&ii.key!==_n)){Si();try{(ii==null?void 0:ii.newValue)!==gi.write(ni.value)&&(ni.value=$i(ii))}catch(ci){ei(ci)}finally{ii?nextTick(ri):ri()}}}}}function useLocalStorage(_n,Cn,$n={}){const{window:Nn=defaultWindow}=$n;return useStorage(_n,Cn,Nn==null?void 0:Nn.localStorage,$n)}var GradientParser=GradientParser||{};GradientParser.stringify=function(){var _n={"visit_linear-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_repeating-linear-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_radial-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_repeating-radial-gradient":function(Cn){return _n.visit_gradient(Cn)},visit_gradient:function(Cn){var $n=_n.visit(Cn.orientation);return $n&&($n+=", "),Cn.type+"("+$n+_n.visit(Cn.colorStops)+")"},visit_shape:function(Cn){var $n=Cn.value,Nn=_n.visit(Cn.at),Bn=_n.visit(Cn.style);return Bn&&($n+=" "+Bn),Nn&&($n+=" at "+Nn),$n},"visit_default-radial":function(Cn){var $n="",Nn=_n.visit(Cn.at);return Nn&&($n+=Nn),$n},"visit_extent-keyword":function(Cn){var $n=Cn.value,Nn=_n.visit(Cn.at);return Nn&&($n+=" at "+Nn),$n},"visit_position-keyword":function(Cn){return Cn.value},visit_position:function(Cn){return _n.visit(Cn.value.x)+" "+_n.visit(Cn.value.y)},"visit_%":function(Cn){return Cn.value+"%"},visit_em:function(Cn){return Cn.value+"em"},visit_px:function(Cn){return Cn.value+"px"},visit_literal:function(Cn){return _n.visit_color(Cn.value,Cn)},visit_hex:function(Cn){return _n.visit_color("#"+Cn.value,Cn)},visit_rgb:function(Cn){return _n.visit_color("rgb("+Cn.value.join(", ")+")",Cn)},visit_rgba:function(Cn){return _n.visit_color("rgba("+Cn.value.join(", ")+")",Cn)},visit_color:function(Cn,$n){var Nn=Cn,Bn=_n.visit($n.length);return Bn&&(Nn+=" "+Bn),Nn},visit_angular:function(Cn){return Cn.value+"deg"},visit_directional:function(Cn){return"to "+Cn.value},visit_array:function(Cn){var $n="",Nn=Cn.length;return Cn.forEach(function(Bn,Ln){$n+=_n.visit(Bn),Ln0&&$n("Invalid input not EOF"),Ci}function Bn(){return Si(Ln)}function Ln(){return In("linear-gradient",_n.linearGradient,Dn)||In("repeating-linear-gradient",_n.repeatingLinearGradient,Dn)||In("radial-gradient",_n.radialGradient,Yn)||In("repeating-radial-gradient",_n.repeatingRadialGradient,Yn)}function In(Ci,Ri,Hi){return Pn(Ri,function(aa){var sa=Hi();return sa&&(ta(_n.comma)||$n("Missing comma before color stops")),{type:Ci,orientation:sa,colorStops:Si(ri)}})}function Pn(Ci,Ri){var Hi=ta(Ci);if(Hi){ta(_n.startCall)||$n("Missing (");var aa=Ri(Hi);return ta(_n.endCall)||$n("Missing )"),aa}}function Dn(){return Hn()||Wn()}function Hn(){return Fi("directional",_n.sideOrCorner,1)}function Wn(){return Fi("angular",_n.angleValue,1)}function Yn(){var Ci,Ri=Gn(),Hi;return Ri&&(Ci=[],Ci.push(Ri),Hi=Cn,ta(_n.comma)&&(Ri=Gn(),Ri?Ci.push(Ri):Cn=Hi)),Ci}function Gn(){var Ci=ei()||nr();if(Ci)Ci.at=ai();else{var Ri=ni();if(Ri){Ci=Ri;var Hi=ai();Hi&&(Ci.at=Hi)}else{var aa=si();aa&&(Ci={type:"default-radial",at:aa})}}return Ci}function ei(){var Ci=Fi("shape",/^(circle)/i,0);return Ci&&(Ci.style=yi()||ni()),Ci}function nr(){var Ci=Fi("shape",/^(ellipse)/i,0);return Ci&&(Ci.style=mi()||ni()),Ci}function ni(){return Fi("extent-keyword",_n.extentKeywords,1)}function ai(){if(Fi("position",/^at/,0)){var Ci=si();return Ci||$n("Missing positioning value"),Ci}}function si(){var Ci=gi();if(Ci.x||Ci.y)return{type:"position",value:Ci}}function gi(){return{x:mi(),y:mi()}}function Si(Ci){var Ri=Ci(),Hi=[];if(Ri)for(Hi.push(Ri);ta(_n.comma);)Ri=Ci(),Ri?Hi.push(Ri):$n("One extra comma");return Hi}function ri(){var Ci=Ei();return Ci||$n("Expected color definition"),Ci.length=mi(),Ci}function Ei(){return zn()||ii()||ui()||$i()}function $i(){return Fi("literal",_n.literalColor,0)}function zn(){return Fi("hex",_n.hexColor,1)}function ui(){return Pn(_n.rgbColor,function(){return{type:"rgb",value:Si(ci)}})}function ii(){return Pn(_n.rgbaColor,function(){return{type:"rgba",value:Si(ci)}})}function ci(){return ta(_n.number)[1]}function mi(){return Fi("%",_n.percentageValue,1)||_i()||yi()}function _i(){return Fi("position-keyword",_n.positionKeywords,1)}function yi(){return Fi("px",_n.pixelValue,1)||Fi("em",_n.emValue,1)}function Fi(Ci,Ri,Hi){var aa=ta(Ri);if(aa)return{type:Ci,value:aa[Hi]}}function ta(Ci){var Ri,Hi;return Hi=/^[\n\r\t\s]+/.exec(Cn),Hi&&qo(Hi[0].length),Ri=Ci.exec(Cn),Ri&&qo(Ri[0].length),Ri}function qo(Ci){Cn=Cn.substr(Ci)}return function(Ci){return Cn=Ci.toString(),Nn()}}();var parse=GradientParser.parse,stringify=GradientParser.stringify,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(_n,Cn){return _n.concat([Cn+"-"+start,Cn+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(_n,Cn){return _n.concat([Cn,Cn+"-"+start,Cn+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(_n){return _n?(_n.nodeName||"").toLowerCase():null}function getWindow(_n){if(_n==null)return window;if(_n.toString()!=="[object Window]"){var Cn=_n.ownerDocument;return Cn&&Cn.defaultView||window}return _n}function isElement$1(_n){var Cn=getWindow(_n).Element;return _n instanceof Cn||_n instanceof Element}function isHTMLElement(_n){var Cn=getWindow(_n).HTMLElement;return _n instanceof Cn||_n instanceof HTMLElement}function isShadowRoot(_n){if(typeof ShadowRoot>"u")return!1;var Cn=getWindow(_n).ShadowRoot;return _n instanceof Cn||_n instanceof ShadowRoot}function applyStyles(_n){var Cn=_n.state;Object.keys(Cn.elements).forEach(function($n){var Nn=Cn.styles[$n]||{},Bn=Cn.attributes[$n]||{},Ln=Cn.elements[$n];!isHTMLElement(Ln)||!getNodeName(Ln)||(Object.assign(Ln.style,Nn),Object.keys(Bn).forEach(function(In){var Pn=Bn[In];Pn===!1?Ln.removeAttribute(In):Ln.setAttribute(In,Pn===!0?"":Pn)}))})}function effect$2(_n){var Cn=_n.state,$n={popper:{position:Cn.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Cn.elements.popper.style,$n.popper),Cn.styles=$n,Cn.elements.arrow&&Object.assign(Cn.elements.arrow.style,$n.arrow),function(){Object.keys(Cn.elements).forEach(function(Nn){var Bn=Cn.elements[Nn],Ln=Cn.attributes[Nn]||{},In=Object.keys(Cn.styles.hasOwnProperty(Nn)?Cn.styles[Nn]:$n[Nn]),Pn=In.reduce(function(Dn,Hn){return Dn[Hn]="",Dn},{});!isHTMLElement(Bn)||!getNodeName(Bn)||(Object.assign(Bn.style,Pn),Object.keys(Ln).forEach(function(Dn){Bn.removeAttribute(Dn)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(_n){return _n.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var _n=navigator.userAgentData;return _n!=null&&_n.brands&&Array.isArray(_n.brands)?_n.brands.map(function(Cn){return Cn.brand+"/"+Cn.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(_n,Cn,$n){Cn===void 0&&(Cn=!1),$n===void 0&&($n=!1);var Nn=_n.getBoundingClientRect(),Bn=1,Ln=1;Cn&&isHTMLElement(_n)&&(Bn=_n.offsetWidth>0&&round(Nn.width)/_n.offsetWidth||1,Ln=_n.offsetHeight>0&&round(Nn.height)/_n.offsetHeight||1);var In=isElement$1(_n)?getWindow(_n):window,Pn=In.visualViewport,Dn=!isLayoutViewport()&&$n,Hn=(Nn.left+(Dn&&Pn?Pn.offsetLeft:0))/Bn,Wn=(Nn.top+(Dn&&Pn?Pn.offsetTop:0))/Ln,Yn=Nn.width/Bn,Gn=Nn.height/Ln;return{width:Yn,height:Gn,top:Wn,right:Hn+Yn,bottom:Wn+Gn,left:Hn,x:Hn,y:Wn}}function getLayoutRect(_n){var Cn=getBoundingClientRect(_n),$n=_n.offsetWidth,Nn=_n.offsetHeight;return Math.abs(Cn.width-$n)<=1&&($n=Cn.width),Math.abs(Cn.height-Nn)<=1&&(Nn=Cn.height),{x:_n.offsetLeft,y:_n.offsetTop,width:$n,height:Nn}}function contains(_n,Cn){var $n=Cn.getRootNode&&Cn.getRootNode();if(_n.contains(Cn))return!0;if($n&&isShadowRoot($n)){var Nn=Cn;do{if(Nn&&_n.isSameNode(Nn))return!0;Nn=Nn.parentNode||Nn.host}while(Nn)}return!1}function getComputedStyle(_n){return getWindow(_n).getComputedStyle(_n)}function isTableElement(_n){return["table","td","th"].indexOf(getNodeName(_n))>=0}function getDocumentElement(_n){return((isElement$1(_n)?_n.ownerDocument:_n.document)||window.document).documentElement}function getParentNode(_n){return getNodeName(_n)==="html"?_n:_n.assignedSlot||_n.parentNode||(isShadowRoot(_n)?_n.host:null)||getDocumentElement(_n)}function getTrueOffsetParent(_n){return!isHTMLElement(_n)||getComputedStyle(_n).position==="fixed"?null:_n.offsetParent}function getContainingBlock(_n){var Cn=/firefox/i.test(getUAString()),$n=/Trident/i.test(getUAString());if($n&&isHTMLElement(_n)){var Nn=getComputedStyle(_n);if(Nn.position==="fixed")return null}var Bn=getParentNode(_n);for(isShadowRoot(Bn)&&(Bn=Bn.host);isHTMLElement(Bn)&&["html","body"].indexOf(getNodeName(Bn))<0;){var Ln=getComputedStyle(Bn);if(Ln.transform!=="none"||Ln.perspective!=="none"||Ln.contain==="paint"||["transform","perspective"].indexOf(Ln.willChange)!==-1||Cn&&Ln.willChange==="filter"||Cn&&Ln.filter&&Ln.filter!=="none")return Bn;Bn=Bn.parentNode}return null}function getOffsetParent(_n){for(var Cn=getWindow(_n),$n=getTrueOffsetParent(_n);$n&&isTableElement($n)&&getComputedStyle($n).position==="static";)$n=getTrueOffsetParent($n);return $n&&(getNodeName($n)==="html"||getNodeName($n)==="body"&&getComputedStyle($n).position==="static")?Cn:$n||getContainingBlock(_n)||Cn}function getMainAxisFromPlacement(_n){return["top","bottom"].indexOf(_n)>=0?"x":"y"}function within(_n,Cn,$n){return max(_n,min(Cn,$n))}function withinMaxClamp(_n,Cn,$n){var Nn=within(_n,Cn,$n);return Nn>$n?$n:Nn}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(_n){return Object.assign({},getFreshSideObject(),_n)}function expandToHashMap(_n,Cn){return Cn.reduce(function($n,Nn){return $n[Nn]=_n,$n},{})}var toPaddingObject=function _n(Cn,$n){return Cn=typeof Cn=="function"?Cn(Object.assign({},$n.rects,{placement:$n.placement})):Cn,mergePaddingObject(typeof Cn!="number"?Cn:expandToHashMap(Cn,basePlacements))};function arrow(_n){var Cn,$n=_n.state,Nn=_n.name,Bn=_n.options,Ln=$n.elements.arrow,In=$n.modifiersData.popperOffsets,Pn=getBasePlacement$1($n.placement),Dn=getMainAxisFromPlacement(Pn),Hn=[left,right].indexOf(Pn)>=0,Wn=Hn?"height":"width";if(!(!Ln||!In)){var Yn=toPaddingObject(Bn.padding,$n),Gn=getLayoutRect(Ln),ei=Dn==="y"?top:left,nr=Dn==="y"?bottom:right,ni=$n.rects.reference[Wn]+$n.rects.reference[Dn]-In[Dn]-$n.rects.popper[Wn],ai=In[Dn]-$n.rects.reference[Dn],si=getOffsetParent(Ln),gi=si?Dn==="y"?si.clientHeight||0:si.clientWidth||0:0,Si=ni/2-ai/2,ri=Yn[ei],Ei=gi-Gn[Wn]-Yn[nr],$i=gi/2-Gn[Wn]/2+Si,zn=within(ri,$i,Ei),ui=Dn;$n.modifiersData[Nn]=(Cn={},Cn[ui]=zn,Cn.centerOffset=zn-$i,Cn)}}function effect$1(_n){var Cn=_n.state,$n=_n.options,Nn=$n.element,Bn=Nn===void 0?"[data-popper-arrow]":Nn;Bn!=null&&(typeof Bn=="string"&&(Bn=Cn.elements.popper.querySelector(Bn),!Bn)||contains(Cn.elements.popper,Bn)&&(Cn.elements.arrow=Bn))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(_n){return _n.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_n,Cn){var $n=_n.x,Nn=_n.y,Bn=Cn.devicePixelRatio||1;return{x:round($n*Bn)/Bn||0,y:round(Nn*Bn)/Bn||0}}function mapToStyles(_n){var Cn,$n=_n.popper,Nn=_n.popperRect,Bn=_n.placement,Ln=_n.variation,In=_n.offsets,Pn=_n.position,Dn=_n.gpuAcceleration,Hn=_n.adaptive,Wn=_n.roundOffsets,Yn=_n.isFixed,Gn=In.x,ei=Gn===void 0?0:Gn,nr=In.y,ni=nr===void 0?0:nr,ai=typeof Wn=="function"?Wn({x:ei,y:ni}):{x:ei,y:ni};ei=ai.x,ni=ai.y;var si=In.hasOwnProperty("x"),gi=In.hasOwnProperty("y"),Si=left,ri=top,Ei=window;if(Hn){var $i=getOffsetParent($n),zn="clientHeight",ui="clientWidth";if($i===getWindow($n)&&($i=getDocumentElement($n),getComputedStyle($i).position!=="static"&&Pn==="absolute"&&(zn="scrollHeight",ui="scrollWidth")),$i=$i,Bn===top||(Bn===left||Bn===right)&&Ln===end){ri=bottom;var ii=Yn&&$i===Ei&&Ei.visualViewport?Ei.visualViewport.height:$i[zn];ni-=ii-Nn.height,ni*=Dn?1:-1}if(Bn===left||(Bn===top||Bn===bottom)&&Ln===end){Si=right;var ci=Yn&&$i===Ei&&Ei.visualViewport?Ei.visualViewport.width:$i[ui];ei-=ci-Nn.width,ei*=Dn?1:-1}}var mi=Object.assign({position:Pn},Hn&&unsetSides),_i=Wn===!0?roundOffsetsByDPR({x:ei,y:ni},getWindow($n)):{x:ei,y:ni};if(ei=_i.x,ni=_i.y,Dn){var yi;return Object.assign({},mi,(yi={},yi[ri]=gi?"0":"",yi[Si]=si?"0":"",yi.transform=(Ei.devicePixelRatio||1)<=1?"translate("+ei+"px, "+ni+"px)":"translate3d("+ei+"px, "+ni+"px, 0)",yi))}return Object.assign({},mi,(Cn={},Cn[ri]=gi?ni+"px":"",Cn[Si]=si?ei+"px":"",Cn.transform="",Cn))}function computeStyles(_n){var Cn=_n.state,$n=_n.options,Nn=$n.gpuAcceleration,Bn=Nn===void 0?!0:Nn,Ln=$n.adaptive,In=Ln===void 0?!0:Ln,Pn=$n.roundOffsets,Dn=Pn===void 0?!0:Pn,Hn={placement:getBasePlacement$1(Cn.placement),variation:getVariation(Cn.placement),popper:Cn.elements.popper,popperRect:Cn.rects.popper,gpuAcceleration:Bn,isFixed:Cn.options.strategy==="fixed"};Cn.modifiersData.popperOffsets!=null&&(Cn.styles.popper=Object.assign({},Cn.styles.popper,mapToStyles(Object.assign({},Hn,{offsets:Cn.modifiersData.popperOffsets,position:Cn.options.strategy,adaptive:In,roundOffsets:Dn})))),Cn.modifiersData.arrow!=null&&(Cn.styles.arrow=Object.assign({},Cn.styles.arrow,mapToStyles(Object.assign({},Hn,{offsets:Cn.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Dn})))),Cn.attributes.popper=Object.assign({},Cn.attributes.popper,{"data-popper-placement":Cn.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(_n){var Cn=_n.state,$n=_n.instance,Nn=_n.options,Bn=Nn.scroll,Ln=Bn===void 0?!0:Bn,In=Nn.resize,Pn=In===void 0?!0:In,Dn=getWindow(Cn.elements.popper),Hn=[].concat(Cn.scrollParents.reference,Cn.scrollParents.popper);return Ln&&Hn.forEach(function(Wn){Wn.addEventListener("scroll",$n.update,passive)}),Pn&&Dn.addEventListener("resize",$n.update,passive),function(){Ln&&Hn.forEach(function(Wn){Wn.removeEventListener("scroll",$n.update,passive)}),Pn&&Dn.removeEventListener("resize",$n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function _n(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(_n){return _n.replace(/left|right|bottom|top/g,function(Cn){return hash$1[Cn]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(_n){return _n.replace(/start|end/g,function(Cn){return hash[Cn]})}function getWindowScroll(_n){var Cn=getWindow(_n),$n=Cn.pageXOffset,Nn=Cn.pageYOffset;return{scrollLeft:$n,scrollTop:Nn}}function getWindowScrollBarX(_n){return getBoundingClientRect(getDocumentElement(_n)).left+getWindowScroll(_n).scrollLeft}function getViewportRect(_n,Cn){var $n=getWindow(_n),Nn=getDocumentElement(_n),Bn=$n.visualViewport,Ln=Nn.clientWidth,In=Nn.clientHeight,Pn=0,Dn=0;if(Bn){Ln=Bn.width,In=Bn.height;var Hn=isLayoutViewport();(Hn||!Hn&&Cn==="fixed")&&(Pn=Bn.offsetLeft,Dn=Bn.offsetTop)}return{width:Ln,height:In,x:Pn+getWindowScrollBarX(_n),y:Dn}}function getDocumentRect(_n){var Cn,$n=getDocumentElement(_n),Nn=getWindowScroll(_n),Bn=(Cn=_n.ownerDocument)==null?void 0:Cn.body,Ln=max($n.scrollWidth,$n.clientWidth,Bn?Bn.scrollWidth:0,Bn?Bn.clientWidth:0),In=max($n.scrollHeight,$n.clientHeight,Bn?Bn.scrollHeight:0,Bn?Bn.clientHeight:0),Pn=-Nn.scrollLeft+getWindowScrollBarX(_n),Dn=-Nn.scrollTop;return getComputedStyle(Bn||$n).direction==="rtl"&&(Pn+=max($n.clientWidth,Bn?Bn.clientWidth:0)-Ln),{width:Ln,height:In,x:Pn,y:Dn}}function isScrollParent(_n){var Cn=getComputedStyle(_n),$n=Cn.overflow,Nn=Cn.overflowX,Bn=Cn.overflowY;return/auto|scroll|overlay|hidden/.test($n+Bn+Nn)}function getScrollParent(_n){return["html","body","#document"].indexOf(getNodeName(_n))>=0?_n.ownerDocument.body:isHTMLElement(_n)&&isScrollParent(_n)?_n:getScrollParent(getParentNode(_n))}function listScrollParents(_n,Cn){var $n;Cn===void 0&&(Cn=[]);var Nn=getScrollParent(_n),Bn=Nn===(($n=_n.ownerDocument)==null?void 0:$n.body),Ln=getWindow(Nn),In=Bn?[Ln].concat(Ln.visualViewport||[],isScrollParent(Nn)?Nn:[]):Nn,Pn=Cn.concat(In);return Bn?Pn:Pn.concat(listScrollParents(getParentNode(In)))}function rectToClientRect(_n){return Object.assign({},_n,{left:_n.x,top:_n.y,right:_n.x+_n.width,bottom:_n.y+_n.height})}function getInnerBoundingClientRect(_n,Cn){var $n=getBoundingClientRect(_n,!1,Cn==="fixed");return $n.top=$n.top+_n.clientTop,$n.left=$n.left+_n.clientLeft,$n.bottom=$n.top+_n.clientHeight,$n.right=$n.left+_n.clientWidth,$n.width=_n.clientWidth,$n.height=_n.clientHeight,$n.x=$n.left,$n.y=$n.top,$n}function getClientRectFromMixedType(_n,Cn,$n){return Cn===viewport?rectToClientRect(getViewportRect(_n,$n)):isElement$1(Cn)?getInnerBoundingClientRect(Cn,$n):rectToClientRect(getDocumentRect(getDocumentElement(_n)))}function getClippingParents(_n){var Cn=listScrollParents(getParentNode(_n)),$n=["absolute","fixed"].indexOf(getComputedStyle(_n).position)>=0,Nn=$n&&isHTMLElement(_n)?getOffsetParent(_n):_n;return isElement$1(Nn)?Cn.filter(function(Bn){return isElement$1(Bn)&&contains(Bn,Nn)&&getNodeName(Bn)!=="body"}):[]}function getClippingRect(_n,Cn,$n,Nn){var Bn=Cn==="clippingParents"?getClippingParents(_n):[].concat(Cn),Ln=[].concat(Bn,[$n]),In=Ln[0],Pn=Ln.reduce(function(Dn,Hn){var Wn=getClientRectFromMixedType(_n,Hn,Nn);return Dn.top=max(Wn.top,Dn.top),Dn.right=min(Wn.right,Dn.right),Dn.bottom=min(Wn.bottom,Dn.bottom),Dn.left=max(Wn.left,Dn.left),Dn},getClientRectFromMixedType(_n,In,Nn));return Pn.width=Pn.right-Pn.left,Pn.height=Pn.bottom-Pn.top,Pn.x=Pn.left,Pn.y=Pn.top,Pn}function computeOffsets(_n){var Cn=_n.reference,$n=_n.element,Nn=_n.placement,Bn=Nn?getBasePlacement$1(Nn):null,Ln=Nn?getVariation(Nn):null,In=Cn.x+Cn.width/2-$n.width/2,Pn=Cn.y+Cn.height/2-$n.height/2,Dn;switch(Bn){case top:Dn={x:In,y:Cn.y-$n.height};break;case bottom:Dn={x:In,y:Cn.y+Cn.height};break;case right:Dn={x:Cn.x+Cn.width,y:Pn};break;case left:Dn={x:Cn.x-$n.width,y:Pn};break;default:Dn={x:Cn.x,y:Cn.y}}var Hn=Bn?getMainAxisFromPlacement(Bn):null;if(Hn!=null){var Wn=Hn==="y"?"height":"width";switch(Ln){case start:Dn[Hn]=Dn[Hn]-(Cn[Wn]/2-$n[Wn]/2);break;case end:Dn[Hn]=Dn[Hn]+(Cn[Wn]/2-$n[Wn]/2);break}}return Dn}function detectOverflow(_n,Cn){Cn===void 0&&(Cn={});var $n=Cn,Nn=$n.placement,Bn=Nn===void 0?_n.placement:Nn,Ln=$n.strategy,In=Ln===void 0?_n.strategy:Ln,Pn=$n.boundary,Dn=Pn===void 0?clippingParents:Pn,Hn=$n.rootBoundary,Wn=Hn===void 0?viewport:Hn,Yn=$n.elementContext,Gn=Yn===void 0?popper:Yn,ei=$n.altBoundary,nr=ei===void 0?!1:ei,ni=$n.padding,ai=ni===void 0?0:ni,si=mergePaddingObject(typeof ai!="number"?ai:expandToHashMap(ai,basePlacements)),gi=Gn===popper?reference:popper,Si=_n.rects.popper,ri=_n.elements[nr?gi:Gn],Ei=getClippingRect(isElement$1(ri)?ri:ri.contextElement||getDocumentElement(_n.elements.popper),Dn,Wn,In),$i=getBoundingClientRect(_n.elements.reference),zn=computeOffsets({reference:$i,element:Si,strategy:"absolute",placement:Bn}),ui=rectToClientRect(Object.assign({},Si,zn)),ii=Gn===popper?ui:$i,ci={top:Ei.top-ii.top+si.top,bottom:ii.bottom-Ei.bottom+si.bottom,left:Ei.left-ii.left+si.left,right:ii.right-Ei.right+si.right},mi=_n.modifiersData.offset;if(Gn===popper&&mi){var _i=mi[Bn];Object.keys(ci).forEach(function(yi){var Fi=[right,bottom].indexOf(yi)>=0?1:-1,ta=[top,bottom].indexOf(yi)>=0?"y":"x";ci[yi]+=_i[ta]*Fi})}return ci}function computeAutoPlacement(_n,Cn){Cn===void 0&&(Cn={});var $n=Cn,Nn=$n.placement,Bn=$n.boundary,Ln=$n.rootBoundary,In=$n.padding,Pn=$n.flipVariations,Dn=$n.allowedAutoPlacements,Hn=Dn===void 0?placements:Dn,Wn=getVariation(Nn),Yn=Wn?Pn?variationPlacements:variationPlacements.filter(function(nr){return getVariation(nr)===Wn}):basePlacements,Gn=Yn.filter(function(nr){return Hn.indexOf(nr)>=0});Gn.length===0&&(Gn=Yn);var ei=Gn.reduce(function(nr,ni){return nr[ni]=detectOverflow(_n,{placement:ni,boundary:Bn,rootBoundary:Ln,padding:In})[getBasePlacement$1(ni)],nr},{});return Object.keys(ei).sort(function(nr,ni){return ei[nr]-ei[ni]})}function getExpandedFallbackPlacements(_n){if(getBasePlacement$1(_n)===auto)return[];var Cn=getOppositePlacement(_n);return[getOppositeVariationPlacement(_n),Cn,getOppositeVariationPlacement(Cn)]}function flip(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name;if(!Cn.modifiersData[Nn]._skip){for(var Bn=$n.mainAxis,Ln=Bn===void 0?!0:Bn,In=$n.altAxis,Pn=In===void 0?!0:In,Dn=$n.fallbackPlacements,Hn=$n.padding,Wn=$n.boundary,Yn=$n.rootBoundary,Gn=$n.altBoundary,ei=$n.flipVariations,nr=ei===void 0?!0:ei,ni=$n.allowedAutoPlacements,ai=Cn.options.placement,si=getBasePlacement$1(ai),gi=si===ai,Si=Dn||(gi||!nr?[getOppositePlacement(ai)]:getExpandedFallbackPlacements(ai)),ri=[ai].concat(Si).reduce(function(Yi,Ji){return Yi.concat(getBasePlacement$1(Ji)===auto?computeAutoPlacement(Cn,{placement:Ji,boundary:Wn,rootBoundary:Yn,padding:Hn,flipVariations:nr,allowedAutoPlacements:ni}):Ji)},[]),Ei=Cn.rects.reference,$i=Cn.rects.popper,zn=new Map,ui=!0,ii=ri[0],ci=0;ci=0,ta=Fi?"width":"height",qo=detectOverflow(Cn,{placement:mi,boundary:Wn,rootBoundary:Yn,altBoundary:Gn,padding:Hn}),Ci=Fi?yi?right:left:yi?bottom:top;Ei[ta]>$i[ta]&&(Ci=getOppositePlacement(Ci));var Ri=getOppositePlacement(Ci),Hi=[];if(Ln&&Hi.push(qo[_i]<=0),Pn&&Hi.push(qo[Ci]<=0,qo[Ri]<=0),Hi.every(function(Yi){return Yi})){ii=mi,ui=!1;break}zn.set(mi,Hi)}if(ui)for(var aa=nr?3:1,sa=function(Ji){var Zi=ri.find(function(Qo){var la=zn.get(Qo);if(la)return la.slice(0,Ji).every(function(Go){return Go})});if(Zi)return ii=Zi,"break"},Pi=aa;Pi>0;Pi--){var Ki=sa(Pi);if(Ki==="break")break}Cn.placement!==ii&&(Cn.modifiersData[Nn]._skip=!0,Cn.placement=ii,Cn.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(_n,Cn,$n){return $n===void 0&&($n={x:0,y:0}),{top:_n.top-Cn.height-$n.y,right:_n.right-Cn.width+$n.x,bottom:_n.bottom-Cn.height+$n.y,left:_n.left-Cn.width-$n.x}}function isAnySideFullyClipped(_n){return[top,right,bottom,left].some(function(Cn){return _n[Cn]>=0})}function hide(_n){var Cn=_n.state,$n=_n.name,Nn=Cn.rects.reference,Bn=Cn.rects.popper,Ln=Cn.modifiersData.preventOverflow,In=detectOverflow(Cn,{elementContext:"reference"}),Pn=detectOverflow(Cn,{altBoundary:!0}),Dn=getSideOffsets(In,Nn),Hn=getSideOffsets(Pn,Bn,Ln),Wn=isAnySideFullyClipped(Dn),Yn=isAnySideFullyClipped(Hn);Cn.modifiersData[$n]={referenceClippingOffsets:Dn,popperEscapeOffsets:Hn,isReferenceHidden:Wn,hasPopperEscaped:Yn},Cn.attributes.popper=Object.assign({},Cn.attributes.popper,{"data-popper-reference-hidden":Wn,"data-popper-escaped":Yn})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(_n,Cn,$n){var Nn=getBasePlacement$1(_n),Bn=[left,top].indexOf(Nn)>=0?-1:1,Ln=typeof $n=="function"?$n(Object.assign({},Cn,{placement:_n})):$n,In=Ln[0],Pn=Ln[1];return In=In||0,Pn=(Pn||0)*Bn,[left,right].indexOf(Nn)>=0?{x:Pn,y:In}:{x:In,y:Pn}}function offset(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name,Bn=$n.offset,Ln=Bn===void 0?[0,0]:Bn,In=placements.reduce(function(Wn,Yn){return Wn[Yn]=distanceAndSkiddingToXY(Yn,Cn.rects,Ln),Wn},{}),Pn=In[Cn.placement],Dn=Pn.x,Hn=Pn.y;Cn.modifiersData.popperOffsets!=null&&(Cn.modifiersData.popperOffsets.x+=Dn,Cn.modifiersData.popperOffsets.y+=Hn),Cn.modifiersData[Nn]=In}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(_n){var Cn=_n.state,$n=_n.name;Cn.modifiersData[$n]=computeOffsets({reference:Cn.rects.reference,element:Cn.rects.popper,strategy:"absolute",placement:Cn.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(_n){return _n==="x"?"y":"x"}function preventOverflow(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name,Bn=$n.mainAxis,Ln=Bn===void 0?!0:Bn,In=$n.altAxis,Pn=In===void 0?!1:In,Dn=$n.boundary,Hn=$n.rootBoundary,Wn=$n.altBoundary,Yn=$n.padding,Gn=$n.tether,ei=Gn===void 0?!0:Gn,nr=$n.tetherOffset,ni=nr===void 0?0:nr,ai=detectOverflow(Cn,{boundary:Dn,rootBoundary:Hn,padding:Yn,altBoundary:Wn}),si=getBasePlacement$1(Cn.placement),gi=getVariation(Cn.placement),Si=!gi,ri=getMainAxisFromPlacement(si),Ei=getAltAxis(ri),$i=Cn.modifiersData.popperOffsets,zn=Cn.rects.reference,ui=Cn.rects.popper,ii=typeof ni=="function"?ni(Object.assign({},Cn.rects,{placement:Cn.placement})):ni,ci=typeof ii=="number"?{mainAxis:ii,altAxis:ii}:Object.assign({mainAxis:0,altAxis:0},ii),mi=Cn.modifiersData.offset?Cn.modifiersData.offset[Cn.placement]:null,_i={x:0,y:0};if($i){if(Ln){var yi,Fi=ri==="y"?top:left,ta=ri==="y"?bottom:right,qo=ri==="y"?"height":"width",Ci=$i[ri],Ri=Ci+ai[Fi],Hi=Ci-ai[ta],aa=ei?-ui[qo]/2:0,sa=gi===start?zn[qo]:ui[qo],Pi=gi===start?-ui[qo]:-zn[qo],Ki=Cn.elements.arrow,Yi=ei&&Ki?getLayoutRect(Ki):{width:0,height:0},Ji=Cn.modifiersData["arrow#persistent"]?Cn.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Zi=Ji[Fi],Qo=Ji[ta],la=within(0,zn[qo],Yi[qo]),Go=Si?zn[qo]/2-aa-la-Zi-ci.mainAxis:sa-la-Zi-ci.mainAxis,ra=Si?-zn[qo]/2+aa+la+Qo+ci.mainAxis:Pi+la+Qo+ci.mainAxis,ha=Cn.elements.arrow&&getOffsetParent(Cn.elements.arrow),di=ha?ri==="y"?ha.clientTop||0:ha.clientLeft||0:0,hi=(yi=mi==null?void 0:mi[ri])!=null?yi:0,wi=Ci+Go-hi-di,Ii=Ci+ra-hi,Ni=within(ei?min(Ri,wi):Ri,Ci,ei?max(Hi,Ii):Hi);$i[ri]=Ni,_i[ri]=Ni-Ci}if(Pn){var Bi,Wi=ri==="x"?top:left,ji=ri==="x"?bottom:right,Ui=$i[Ei],Vi=Ei==="y"?"height":"width",Gi=Ui+ai[Wi],zi=Ui-ai[ji],Yo=[top,left].indexOf(si)!==-1,Li=(Bi=mi==null?void 0:mi[Ei])!=null?Bi:0,Zo=Yo?Gi:Ui-zn[Vi]-ui[Vi]-Li+ci.altAxis,da=Yo?Ui+zn[Vi]+ui[Vi]-Li-ci.altAxis:zi,fa=ei&&Yo?withinMaxClamp(Zo,Ui,da):within(ei?Zo:Gi,Ui,ei?da:zi);$i[Ei]=fa,_i[Ei]=fa-Ui}Cn.modifiersData[Nn]=_i}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(_n){return{scrollLeft:_n.scrollLeft,scrollTop:_n.scrollTop}}function getNodeScroll(_n){return _n===getWindow(_n)||!isHTMLElement(_n)?getWindowScroll(_n):getHTMLElementScroll(_n)}function isElementScaled(_n){var Cn=_n.getBoundingClientRect(),$n=round(Cn.width)/_n.offsetWidth||1,Nn=round(Cn.height)/_n.offsetHeight||1;return $n!==1||Nn!==1}function getCompositeRect(_n,Cn,$n){$n===void 0&&($n=!1);var Nn=isHTMLElement(Cn),Bn=isHTMLElement(Cn)&&isElementScaled(Cn),Ln=getDocumentElement(Cn),In=getBoundingClientRect(_n,Bn,$n),Pn={scrollLeft:0,scrollTop:0},Dn={x:0,y:0};return(Nn||!Nn&&!$n)&&((getNodeName(Cn)!=="body"||isScrollParent(Ln))&&(Pn=getNodeScroll(Cn)),isHTMLElement(Cn)?(Dn=getBoundingClientRect(Cn,!0),Dn.x+=Cn.clientLeft,Dn.y+=Cn.clientTop):Ln&&(Dn.x=getWindowScrollBarX(Ln))),{x:In.left+Pn.scrollLeft-Dn.x,y:In.top+Pn.scrollTop-Dn.y,width:In.width,height:In.height}}function order(_n){var Cn=new Map,$n=new Set,Nn=[];_n.forEach(function(Ln){Cn.set(Ln.name,Ln)});function Bn(Ln){$n.add(Ln.name);var In=[].concat(Ln.requires||[],Ln.requiresIfExists||[]);In.forEach(function(Pn){if(!$n.has(Pn)){var Dn=Cn.get(Pn);Dn&&Bn(Dn)}}),Nn.push(Ln)}return _n.forEach(function(Ln){$n.has(Ln.name)||Bn(Ln)}),Nn}function orderModifiers(_n){var Cn=order(_n);return modifierPhases.reduce(function($n,Nn){return $n.concat(Cn.filter(function(Bn){return Bn.phase===Nn}))},[])}function debounce$1(_n){var Cn;return function(){return Cn||(Cn=new Promise(function($n){Promise.resolve().then(function(){Cn=void 0,$n(_n())})})),Cn}}function mergeByName(_n){var Cn=_n.reduce(function($n,Nn){var Bn=$n[Nn.name];return $n[Nn.name]=Bn?Object.assign({},Bn,Nn,{options:Object.assign({},Bn.options,Nn.options),data:Object.assign({},Bn.data,Nn.data)}):Nn,$n},{});return Object.keys(Cn).map(function($n){return Cn[$n]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _n=arguments.length,Cn=new Array(_n),$n=0;$n<_n;$n++)Cn[$n]=arguments[$n];return!Cn.some(function(Nn){return!(Nn&&typeof Nn.getBoundingClientRect=="function")})}function popperGenerator(_n){_n===void 0&&(_n={});var Cn=_n,$n=Cn.defaultModifiers,Nn=$n===void 0?[]:$n,Bn=Cn.defaultOptions,Ln=Bn===void 0?DEFAULT_OPTIONS:Bn;return function(Pn,Dn,Hn){Hn===void 0&&(Hn=Ln);var Wn={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,Ln),modifiersData:{},elements:{reference:Pn,popper:Dn},attributes:{},styles:{}},Yn=[],Gn=!1,ei={state:Wn,setOptions:function(si){var gi=typeof si=="function"?si(Wn.options):si;ni(),Wn.options=Object.assign({},Ln,Wn.options,gi),Wn.scrollParents={reference:isElement$1(Pn)?listScrollParents(Pn):Pn.contextElement?listScrollParents(Pn.contextElement):[],popper:listScrollParents(Dn)};var Si=orderModifiers(mergeByName([].concat(Nn,Wn.options.modifiers)));return Wn.orderedModifiers=Si.filter(function(ri){return ri.enabled}),nr(),ei.update()},forceUpdate:function(){if(!Gn){var si=Wn.elements,gi=si.reference,Si=si.popper;if(areValidElements(gi,Si)){Wn.rects={reference:getCompositeRect(gi,getOffsetParent(Si),Wn.options.strategy==="fixed"),popper:getLayoutRect(Si)},Wn.reset=!1,Wn.placement=Wn.options.placement,Wn.orderedModifiers.forEach(function(ci){return Wn.modifiersData[ci.name]=Object.assign({},ci.data)});for(var ri=0;ri * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function isObject$3(_n){return Object.prototype.toString.call(_n)==="[object Object]"}function isPlainObject$2(_n){var Cn,$n;return isObject$3(_n)===!1?!1:(Cn=_n.constructor,Cn===void 0?!0:($n=Cn.prototype,!(isObject$3($n)===!1||$n.hasOwnProperty("isPrototypeOf")===!1)))}function t$1(){return t$1=Object.assign?Object.assign.bind():function(_n){for(var Cn=1;Cn=0||(Bn[$n]=_n[$n]);return Bn}const n$1={silent:!1,logLevel:"warn"},i$2=["validator"],o$1=Object.prototype,a$2=o$1.toString,s$1=o$1.hasOwnProperty,u$1=/^\s*function (\w+)/;function l$1(_n){var Cn;const $n=(Cn=_n==null?void 0:_n.type)!==null&&Cn!==void 0?Cn:_n;if($n){const Nn=$n.toString().match(u$1);return Nn?Nn[1]:""}return""}const c$1=isPlainObject$2,f$1=_n=>_n;let d$1=f$1;const p$1=(_n,Cn)=>s$1.call(_n,Cn),y$1=Number.isInteger||function(_n){return typeof _n=="number"&&isFinite(_n)&&Math.floor(_n)===_n},v$1=Array.isArray||function(_n){return a$2.call(_n)==="[object Array]"},h$1=_n=>a$2.call(_n)==="[object Function]",b$1=_n=>c$1(_n)&&p$1(_n,"_vueTypes_name"),g$1=_n=>c$1(_n)&&(p$1(_n,"type")||["_vueTypes_name","validator","default","required"].some(Cn=>p$1(_n,Cn)));function O$1(_n,Cn){return Object.defineProperty(_n.bind(Cn),"__original",{value:_n})}function m$1(_n,Cn,$n=!1){let Nn,Bn=!0,Ln="";Nn=c$1(_n)?_n:{type:_n};const In=b$1(Nn)?Nn._vueTypes_name+" - ":"";if(g$1(Nn)&&Nn.type!==null){if(Nn.type===void 0||Nn.type===!0||!Nn.required&&Cn===void 0)return Bn;v$1(Nn.type)?(Bn=Nn.type.some(Pn=>m$1(Pn,Cn,!0)===!0),Ln=Nn.type.map(Pn=>l$1(Pn)).join(" or ")):(Ln=l$1(Nn),Bn=Ln==="Array"?v$1(Cn):Ln==="Object"?c$1(Cn):Ln==="String"||Ln==="Number"||Ln==="Boolean"||Ln==="Function"?function(Pn){if(Pn==null)return"";const Dn=Pn.constructor.toString().match(u$1);return Dn?Dn[1]:""}(Cn)===Ln:Cn instanceof Nn.type)}if(!Bn){const Pn=`${In}value "${Cn}" should be of type "${Ln}"`;return $n===!1?(d$1(Pn),!1):Pn}if(p$1(Nn,"validator")&&h$1(Nn.validator)){const Pn=d$1,Dn=[];if(d$1=Hn=>{Dn.push(Hn)},Bn=Nn.validator(Cn),d$1=Pn,!Bn){const Hn=(Dn.length>1?"* ":"")+Dn.join(` * `);return Dn.length=0,$n===!1?(d$1(Hn),Bn):Hn}}return Bn}function j$1(_n,Cn){const $n=Object.defineProperties(Cn,{_vueTypes_name:{value:_n,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(Bn){return Bn===void 0?(p$1(this,"default")&&delete this.default,this):h$1(Bn)||m$1(this,Bn,!0)===!0?(this.default=v$1(Bn)?()=>[...Bn]:c$1(Bn)?()=>Object.assign({},Bn):Bn,this):(d$1(`${this._vueTypes_name} - invalid default value: "${Bn}"`),this)}}}),{validator:Nn}=$n;return h$1(Nn)&&($n.validator=O$1(Nn,$n)),$n}function _$1(_n,Cn){const $n=j$1(_n,Cn);return Object.defineProperty($n,"validate",{value(Nn){return h$1(this.validator)&&d$1(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info: ${JSON.stringify(this)}`),this.validator=O$1(Nn,this),this}})}function T$1(_n,Cn,$n){const Nn=function(Dn){const Hn={};return Object.getOwnPropertyNames(Dn).forEach(Wn=>{Hn[Wn]=Object.getOwnPropertyDescriptor(Dn,Wn)}),Object.defineProperties({},Hn)}(Cn);if(Nn._vueTypes_name=_n,!c$1($n))return Nn;const{validator:Bn}=$n,Ln=r$1($n,i$2);if(h$1(Bn)){let{validator:Dn}=Nn;Dn&&(Dn=(Pn=(In=Dn).__original)!==null&&Pn!==void 0?Pn:In),Nn.validator=O$1(Dn?function(Hn){return Dn.call(this,Hn)&&Bn.call(this,Hn)}:Bn,Nn)}var In,Pn;return Object.assign(Nn,Ln)}function $$1(_n){return _n.replace(/^(?!\s*$)/gm," ")}const w$1=()=>_$1("any",{}),P$1=()=>_$1("function",{type:Function}),x$1=()=>_$1("boolean",{type:Boolean}),E$1=()=>_$1("string",{type:String}),N$1=()=>_$1("number",{type:Number}),q$1=()=>_$1("array",{type:Array}),A$1=()=>_$1("object",{type:Object}),V$2=()=>j$1("integer",{type:Number,validator:_n=>y$1(_n)}),S$1=()=>j$1("symbol",{validator:_n=>typeof _n=="symbol"});function D$1(_n,Cn="custom validation failed"){if(typeof _n!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return j$1(_n.name||"<>",{type:null,validator($n){const Nn=_n($n);return Nn||d$1(`${this._vueTypes_name} - ${Cn}`),Nn}})}function L$2(_n){if(!v$1(_n))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const Cn=`oneOf - value should be one of "${_n.join('", "')}".`,$n=_n.reduce((Nn,Bn)=>{if(Bn!=null){const Ln=Bn.constructor;Nn.indexOf(Ln)===-1&&Nn.push(Ln)}return Nn},[]);return j$1("oneOf",{type:$n.length>0?$n:void 0,validator(Nn){const Bn=_n.indexOf(Nn)!==-1;return Bn||d$1(Cn),Bn}})}function F$1(_n){if(!v$1(_n))throw new TypeError("[VueTypes error]: You must provide an array as argument");let Cn=!1,$n=[];for(let Bn=0;Bn<_n.length;Bn+=1){const Ln=_n[Bn];if(g$1(Ln)){if(b$1(Ln)&&Ln._vueTypes_name==="oneOf"&&Ln.type){$n=$n.concat(Ln.type);continue}if(h$1(Ln.validator)&&(Cn=!0),Ln.type===!0||!Ln.type){d$1('oneOfType - invalid usage of "true" or "null" as types.');continue}$n=$n.concat(Ln.type)}else $n.push(Ln)}$n=$n.filter((Bn,Ln)=>$n.indexOf(Bn)===Ln);const Nn=$n.length>0?$n:null;return j$1("oneOfType",Cn?{type:Nn,validator(Bn){const Ln=[],In=_n.some(Pn=>{const Dn=m$1(b$1(Pn)&&Pn._vueTypes_name==="oneOf"?Pn.type||null:Pn,Bn,!0);return typeof Dn=="string"&&Ln.push(Dn),Dn===!0});return In||d$1(`oneOfType - provided value does not match any of the ${Ln.length} passed-in validators: ${$$1(Ln.join(` `))}`),In}}:{type:Nn})}function Y$1(_n){return j$1("arrayOf",{type:Array,validator(Cn){let $n="";const Nn=Cn.every(Bn=>($n=m$1(_n,Bn,!0),$n===!0));return Nn||d$1(`arrayOf - value validation error: ${$$1($n)}`),Nn}})}function B$2(_n){return j$1("instanceOf",{type:_n})}function I$1(_n){return j$1("objectOf",{type:Object,validator(Cn){let $n="";const Nn=Object.keys(Cn).every(Bn=>($n=m$1(_n,Cn[Bn],!0),$n===!0));return Nn||d$1(`objectOf - value validation error: ${$$1($n)}`),Nn}})}function J$1(_n){const Cn=Object.keys(_n),$n=Cn.filter(Bn=>{var Ln;return!((Ln=_n[Bn])===null||Ln===void 0||!Ln.required)}),Nn=j$1("shape",{type:Object,validator(Bn){if(!c$1(Bn))return!1;const Ln=Object.keys(Bn);if($n.length>0&&$n.some(In=>Ln.indexOf(In)===-1)){const In=$n.filter(Pn=>Ln.indexOf(Pn)===-1);return d$1(In.length===1?`shape - required property "${In[0]}" is not defined.`:`shape - required properties "${In.join('", "')}" are not defined.`),!1}return Ln.every(In=>{if(Cn.indexOf(In)===-1)return this._vueTypes_isLoose===!0||(d$1(`shape - shape definition does not include a "${In}" property. Allowed keys: "${Cn.join('", "')}".`),!1);const Pn=m$1(_n[In],Bn[In],!0);return typeof Pn=="string"&&d$1(`shape - "${In}" property validation error: ${$$1(Pn)}`),Pn===!0})}});return Object.defineProperty(Nn,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(Nn,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),Nn}const M$1=["name","validate","getter"],R$1=(()=>{var _n;return(_n=class{static get any(){return w$1()}static get func(){return P$1().def(this.defaults.func)}static get bool(){return x$1().def(this.defaults.bool)}static get string(){return E$1().def(this.defaults.string)}static get number(){return N$1().def(this.defaults.number)}static get array(){return q$1().def(this.defaults.array)}static get object(){return A$1().def(this.defaults.object)}static get integer(){return V$2().def(this.defaults.integer)}static get symbol(){return S$1()}static get nullable(){return{type:null}}static extend(Cn){if(v$1(Cn))return Cn.forEach(Dn=>this.extend(Dn)),this;const{name:$n,validate:Nn=!1,getter:Bn=!1}=Cn,Ln=r$1(Cn,M$1);if(p$1(this,$n))throw new TypeError(`[VueTypes error]: Type "${$n}" already defined`);const{type:In}=Ln;if(b$1(In))return delete Ln.type,Object.defineProperty(this,$n,Bn?{get:()=>T$1($n,In,Ln)}:{value(...Dn){const Hn=T$1($n,In,Ln);return Hn.validator&&(Hn.validator=Hn.validator.bind(Hn,...Dn)),Hn}});let Pn;return Pn=Bn?{get(){const Dn=Object.assign({},Ln);return Nn?_$1($n,Dn):j$1($n,Dn)},enumerable:!0}:{value(...Dn){const Hn=Object.assign({},Ln);let Wn;return Wn=Nn?_$1($n,Hn):j$1($n,Hn),Hn.validator&&(Wn.validator=Hn.validator.bind(Wn,...Dn)),Wn},enumerable:!0},Object.defineProperty(this,$n,Pn)}}).defaults={},_n.sensibleDefaults=void 0,_n.config=n$1,_n.custom=D$1,_n.oneOf=L$2,_n.instanceOf=B$2,_n.oneOfType=F$1,_n.arrayOf=Y$1,_n.objectOf=I$1,_n.shape=J$1,_n.utils={validate:(Cn,$n)=>m$1($n,Cn,!0)===!0,toType:(Cn,$n,Nn=!1)=>Nn?_$1(Cn,$n):j$1(Cn,$n)},_n})();function z$1(_n={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var Cn;return(Cn=class extends R$1{static get sensibleDefaults(){return t$1({},this.defaults)}static set sensibleDefaults($n){this.defaults=$n!==!1?t$1({},$n!==!0?$n:_n):{}}}).defaults=t$1({},_n),Cn}let C$1=class extends z$1(){};var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e(_n){var Cn={exports:{}};return _n(Cn,Cn.exports),Cn.exports}var n=function(_n){return _n&&_n.Math==Math&&_n},r=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof t=="object"&&t)||function(){return this}()||Function("return this")(),o=function(_n){try{return!!_n()}catch{return!0}},i$1=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),u={}.propertyIsEnumerable,a$1=Object.getOwnPropertyDescriptor,c={f:a$1&&!u.call({1:2},1)?function(_n){var Cn=a$1(this,_n);return!!Cn&&Cn.enumerable}:u},l=function(_n,Cn){return{enumerable:!(1&_n),configurable:!(2&_n),writable:!(4&_n),value:Cn}},f={}.toString,s=function(_n){return f.call(_n).slice(8,-1)},d="".split,v=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(_n){return s(_n)=="String"?d.call(_n,""):Object(_n)}:Object,p=function(_n){if(_n==null)throw TypeError("Can't call method on "+_n);return _n},g=function(_n){return v(p(_n))},h=function(_n){return typeof _n=="object"?_n!==null:typeof _n=="function"},y=function(_n,Cn){if(!h(_n))return _n;var $n,Nn;if(Cn&&typeof($n=_n.toString)=="function"&&!h(Nn=$n.call(_n))||typeof($n=_n.valueOf)=="function"&&!h(Nn=$n.call(_n))||!Cn&&typeof($n=_n.toString)=="function"&&!h(Nn=$n.call(_n)))return Nn;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(_n,Cn){return m.call(_n,Cn)},x=r.document,b=h(x)&&h(x.createElement),E=function(_n){return b?x.createElement(_n):{}},w=!i$1&&!o(function(){return Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a!=7}),O=Object.getOwnPropertyDescriptor,T={f:i$1?O:function(_n,Cn){if(_n=g(_n),Cn=y(Cn,!0),w)try{return O(_n,Cn)}catch{}if(S(_n,Cn))return l(!c.f.call(_n,Cn),_n[Cn])}},A=function(_n){if(!h(_n))throw TypeError(String(_n)+" is not an object");return _n},k=Object.defineProperty,R={f:i$1?k:function(_n,Cn,$n){if(A(_n),Cn=y(Cn,!0),A($n),w)try{return k(_n,Cn,$n)}catch{}if("get"in $n||"set"in $n)throw TypeError("Accessors not supported");return"value"in $n&&(_n[Cn]=$n.value),_n}},I=i$1?function(_n,Cn,$n){return R.f(_n,Cn,l(1,$n))}:function(_n,Cn,$n){return _n[Cn]=$n,_n},j=function(_n,Cn){try{I(r,_n,Cn)}catch{r[_n]=Cn}return Cn},C=r["__core-js_shared__"]||j("__core-js_shared__",{}),L$1=Function.toString;typeof C.inspectSource!="function"&&(C.inspectSource=function(_n){return L$1.call(_n)});var P,M,_,D=C.inspectSource,U=r.WeakMap,N=typeof U=="function"&&/native code/.test(D(U)),F=e(function(_n){(_n.exports=function(Cn,$n){return C[Cn]||(C[Cn]=$n!==void 0?$n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),W=0,z=Math.random(),$=function(_n){return"Symbol("+String(_n===void 0?"":_n)+")_"+(++W+z).toString(36)},B$1=F("keys"),Y=function(_n){return B$1[_n]||(B$1[_n]=$(_n))},G={},H=r.WeakMap;if(N){var X$1=C.state||(C.state=new H),V$1=X$1.get,K=X$1.has,q=X$1.set;P=function(_n,Cn){return Cn.facade=_n,q.call(X$1,_n,Cn),Cn},M=function(_n){return V$1.call(X$1,_n)||{}},_=function(_n){return K.call(X$1,_n)}}else{var Q=Y("state");G[Q]=!0,P=function(_n,Cn){return Cn.facade=_n,I(_n,Q,Cn),Cn},M=function(_n){return S(_n,Q)?_n[Q]:{}},_=function(_n){return S(_n,Q)}}var J={set:P,get:M,has:_,enforce:function(_n){return _(_n)?M(_n):P(_n,{})},getterFor:function(_n){return function(Cn){var $n;if(!h(Cn)||($n=M(Cn)).type!==_n)throw TypeError("Incompatible receiver, "+_n+" required");return $n}}},Z=e(function(_n){var Cn=J.get,$n=J.enforce,Nn=String(String).split("String");(_n.exports=function(Bn,Ln,In,Pn){var Dn,Hn=!!Pn&&!!Pn.unsafe,Wn=!!Pn&&!!Pn.enumerable,Yn=!!Pn&&!!Pn.noTargetGet;typeof In=="function"&&(typeof Ln!="string"||S(In,"name")||I(In,"name",Ln),(Dn=$n(In)).source||(Dn.source=Nn.join(typeof Ln=="string"?Ln:""))),Bn!==r?(Hn?!Yn&&Bn[Ln]&&(Wn=!0):delete Bn[Ln],Wn?Bn[Ln]=In:I(Bn,Ln,In)):Wn?Bn[Ln]=In:j(Ln,In)})(Function.prototype,"toString",function(){return typeof this=="function"&&Cn(this).source||D(this)})}),tt$1=r,et=function(_n){return typeof _n=="function"?_n:void 0},nt$1=function(_n,Cn){return arguments.length<2?et(tt$1[_n])||et(r[_n]):tt$1[_n]&&tt$1[_n][Cn]||r[_n]&&r[_n][Cn]},rt$1=Math.ceil,ot$1=Math.floor,it$1=function(_n){return isNaN(_n=+_n)?0:(_n>0?ot$1:rt$1)(_n)},ut$1=Math.min,at$1=function(_n){return _n>0?ut$1(it$1(_n),9007199254740991):0},ct$1=Math.max,lt$1=Math.min,ft$1=function(_n,Cn){var $n=it$1(_n);return $n<0?ct$1($n+Cn,0):lt$1($n,Cn)},st$1=function(_n){return function(Cn,$n,Nn){var Bn,Ln=g(Cn),In=at$1(Ln.length),Pn=ft$1(Nn,In);if(_n&&$n!=$n){for(;In>Pn;)if((Bn=Ln[Pn++])!=Bn)return!0}else for(;In>Pn;Pn++)if((_n||Pn in Ln)&&Ln[Pn]===$n)return _n||Pn||0;return!_n&&-1}},dt$1={includes:st$1(!0),indexOf:st$1(!1)},vt$1=dt$1.indexOf,pt$1=function(_n,Cn){var $n,Nn=g(_n),Bn=0,Ln=[];for($n in Nn)!S(G,$n)&&S(Nn,$n)&&Ln.push($n);for(;Cn.length>Bn;)S(Nn,$n=Cn[Bn++])&&(~vt$1(Ln,$n)||Ln.push($n));return Ln},gt$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht$1=gt$1.concat("length","prototype"),yt$1={f:Object.getOwnPropertyNames||function(_n){return pt$1(_n,ht$1)}},mt$1={f:Object.getOwnPropertySymbols},St$1=nt$1("Reflect","ownKeys")||function(_n){var Cn=yt$1.f(A(_n)),$n=mt$1.f;return $n?Cn.concat($n(_n)):Cn},xt$1=function(_n,Cn){for(var $n=St$1(Cn),Nn=R.f,Bn=T.f,Ln=0;Ln<$n.length;Ln++){var In=$n[Ln];S(_n,In)||Nn(_n,In,Bn(Cn,In))}},bt$1=/#|\.prototype\./,Et$1=function(_n,Cn){var $n=Ot$1[wt$1(_n)];return $n==At$1||$n!=Tt$1&&(typeof Cn=="function"?o(Cn):!!Cn)},wt$1=Et$1.normalize=function(_n){return String(_n).replace(bt$1,".").toLowerCase()},Ot$1=Et$1.data={},Tt$1=Et$1.NATIVE="N",At$1=Et$1.POLYFILL="P",kt$1=Et$1,Rt$1=T.f,It$1=function(_n,Cn){var $n,Nn,Bn,Ln,In,Pn=_n.target,Dn=_n.global,Hn=_n.stat;if($n=Dn?r:Hn?r[Pn]||j(Pn,{}):(r[Pn]||{}).prototype)for(Nn in Cn){if(Ln=Cn[Nn],Bn=_n.noTargetGet?(In=Rt$1($n,Nn))&&In.value:$n[Nn],!kt$1(Dn?Nn:Pn+(Hn?".":"#")+Nn,_n.forced)&&Bn!==void 0){if(typeof Ln==typeof Bn)continue;xt$1(Ln,Bn)}(_n.sham||Bn&&Bn.sham)&&I(Ln,"sham",!0),Z($n,Nn,Ln,_n)}},jt$1=function(_n,Cn){var $n=[][_n];return!!$n&&o(function(){$n.call(null,Cn||function(){throw 1},1)})},Ct$1=Object.defineProperty,Lt$1={},Pt$1=function(_n){throw _n},Mt$1=function(_n,Cn){if(S(Lt$1,_n))return Lt$1[_n];Cn||(Cn={});var $n=[][_n],Nn=!!S(Cn,"ACCESSORS")&&Cn.ACCESSORS,Bn=S(Cn,0)?Cn[0]:Pt$1,Ln=S(Cn,1)?Cn[1]:void 0;return Lt$1[_n]=!!$n&&!o(function(){if(Nn&&!i$1)return!0;var In={length:-1};Nn?Ct$1(In,1,{enumerable:!0,get:Pt$1}):In[1]=1,$n.call(In,Bn,Ln)})},_t$1=dt$1.indexOf,Dt$1=[].indexOf,Ut$1=!!Dt$1&&1/[1].indexOf(1,-0)<0,Nt$1=jt$1("indexOf"),Ft$1=Mt$1("indexOf",{ACCESSORS:!0,1:0});function Wt$1(_n,Cn){if(!(_n instanceof Cn))throw new TypeError("Cannot call a class as a function")}function zt$1(_n,Cn){for(var $n=0;$n1?arguments[1]:void 0)}}),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return _n.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var Cn=_n.getUA();return Cn!==""&&Cn.indexOf("msie")>0}},{key:"isIE9",value:function(){var Cn=_n.getUA();return Cn!==""&&Cn.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var Cn=_n.getUA();return Cn!==""&&Cn.indexOf("edge/")>0}},{key:"isChrome",value:function(){var Cn=_n.getUA();return Cn!==""&&/chrome\/\d+/.test(Cn)&&!_n.isEdge()}},{key:"isPhantomJS",value:function(){var Cn=_n.getUA();return Cn!==""&&/phantomjs/.test(Cn)}},{key:"isFirefox",value:function(){var Cn=_n.getUA();return Cn!==""&&/firefox/.test(Cn)}}]),_n}();var Yt$1=[].join,Gt$1=v!=Object,Ht$1=jt$1("join",",");It$1({target:"Array",proto:!0,forced:Gt$1||!Ht$1},{join:function(_n){return Yt$1.call(g(this),_n===void 0?",":_n)}});var Xt$1,Vt$1,Kt$1=function(_n){return Object(p(_n))},qt$1=Array.isArray||function(_n){return s(_n)=="Array"},Qt$1=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Jt$1=Qt$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zt$1=F("wks"),te=r.Symbol,ee=Jt$1?te:te&&te.withoutSetter||$,ne=function(_n){return S(Zt$1,_n)||(Qt$1&&S(te,_n)?Zt$1[_n]=te[_n]:Zt$1[_n]=ee("Symbol."+_n)),Zt$1[_n]},re=ne("species"),oe=function(_n,Cn){var $n;return qt$1(_n)&&(typeof($n=_n.constructor)!="function"||$n!==Array&&!qt$1($n.prototype)?h($n)&&($n=$n[re])===null&&($n=void 0):$n=void 0),new($n===void 0?Array:$n)(Cn===0?0:Cn)},ie$1=function(_n,Cn,$n){var Nn=y(Cn);Nn in _n?R.f(_n,Nn,l(0,$n)):_n[Nn]=$n},ue=nt$1("navigator","userAgent")||"",ae$1=r.process,ce$1=ae$1&&ae$1.versions,le$1=ce$1&&ce$1.v8;le$1?Vt$1=(Xt$1=le$1.split("."))[0]+Xt$1[1]:ue&&(!(Xt$1=ue.match(/Edge\/(\d+)/))||Xt$1[1]>=74)&&(Xt$1=ue.match(/Chrome\/(\d+)/))&&(Vt$1=Xt$1[1]);var fe$1=Vt$1&&+Vt$1,se=ne("species"),de=function(_n){return fe$1>=51||!o(function(){var Cn=[];return(Cn.constructor={})[se]=function(){return{foo:1}},Cn[_n](Boolean).foo!==1})},ve$1=de("splice"),pe$1=Mt$1("splice",{ACCESSORS:!0,0:0,1:2}),ge=Math.max,he$1=Math.min;It$1({target:"Array",proto:!0,forced:!ve$1||!pe$1},{splice:function(_n,Cn){var $n,Nn,Bn,Ln,In,Pn,Dn=Kt$1(this),Hn=at$1(Dn.length),Wn=ft$1(_n,Hn),Yn=arguments.length;if(Yn===0?$n=Nn=0:Yn===1?($n=0,Nn=Hn-Wn):($n=Yn-2,Nn=he$1(ge(it$1(Cn),0),Hn-Wn)),Hn+$n-Nn>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(Bn=oe(Dn,Nn),Ln=0;LnHn-Nn+$n;Ln--)delete Dn[Ln-1]}else if($n>Nn)for(Ln=Hn-Nn;Ln>Wn;Ln--)Pn=Ln+$n-1,(In=Ln+Nn-1)in Dn?Dn[Pn]=Dn[In]:delete Dn[Pn];for(Ln=0;Ln<$n;Ln++)Dn[Ln+Wn]=arguments[Ln+2];return Dn.length=Hn-Nn+$n,Bn}});var ye$1={};ye$1[ne("toStringTag")]="z";var me$1=String(ye$1)==="[object z]",Se=ne("toStringTag"),xe=s(function(){return arguments}())=="Arguments",be$1=me$1?s:function(_n){var Cn,$n,Nn;return _n===void 0?"Undefined":_n===null?"Null":typeof($n=function(Bn,Ln){try{return Bn[Ln]}catch{}}(Cn=Object(_n),Se))=="string"?$n:xe?s(Cn):(Nn=s(Cn))=="Object"&&typeof Cn.callee=="function"?"Arguments":Nn},Ee=me$1?{}.toString:function(){return"[object "+be$1(this)+"]"};me$1||Z(Object.prototype,"toString",Ee,{unsafe:!0});var we=function(){var _n=A(this),Cn="";return _n.global&&(Cn+="g"),_n.ignoreCase&&(Cn+="i"),_n.multiline&&(Cn+="m"),_n.dotAll&&(Cn+="s"),_n.unicode&&(Cn+="u"),_n.sticky&&(Cn+="y"),Cn};function Oe(_n,Cn){return RegExp(_n,Cn)}var Te,Ae$1,ke={UNSUPPORTED_Y:o(function(){var _n=Oe("a","y");return _n.lastIndex=2,_n.exec("abcd")!=null}),BROKEN_CARET:o(function(){var _n=Oe("^r","gy");return _n.lastIndex=2,_n.exec("str")!=null})},Re$1=RegExp.prototype.exec,Ie$1=String.prototype.replace,je=Re$1,Ce$1=(Te=/a/,Ae$1=/b*/g,Re$1.call(Te,"a"),Re$1.call(Ae$1,"a"),Te.lastIndex!==0||Ae$1.lastIndex!==0),Le=ke.UNSUPPORTED_Y||ke.BROKEN_CARET,Pe=/()??/.exec("")[1]!==void 0;(Ce$1||Pe||Le)&&(je=function(_n){var Cn,$n,Nn,Bn,Ln=this,In=Le&&Ln.sticky,Pn=we.call(Ln),Dn=Ln.source,Hn=0,Wn=_n;return In&&((Pn=Pn.replace("y","")).indexOf("g")===-1&&(Pn+="g"),Wn=String(_n).slice(Ln.lastIndex),Ln.lastIndex>0&&(!Ln.multiline||Ln.multiline&&_n[Ln.lastIndex-1]!==` `)&&(Dn="(?: "+Dn+")",Wn=" "+Wn,Hn++),$n=new RegExp("^(?:"+Dn+")",Pn)),Pe&&($n=new RegExp("^"+Dn+"$(?!\\s)",Pn)),Ce$1&&(Cn=Ln.lastIndex),Nn=Re$1.call(In?$n:Ln,Wn),In?Nn?(Nn.input=Nn.input.slice(Hn),Nn[0]=Nn[0].slice(Hn),Nn.index=Ln.lastIndex,Ln.lastIndex+=Nn[0].length):Ln.lastIndex=0:Ce$1&&Nn&&(Ln.lastIndex=Ln.global?Nn.index+Nn[0].length:Cn),Pe&&Nn&&Nn.length>1&&Ie$1.call(Nn[0],$n,function(){for(Bn=1;Bn")!=="7"}),ze$1="a".replace(/./,"$0")==="$0",$e=ne("replace"),Be$1=!!/./[$e]&&/./[$e]("a","$0")==="",Ye=!o(function(){var _n=/(?:)/,Cn=_n.exec;_n.exec=function(){return Cn.apply(this,arguments)};var $n="ab".split(_n);return $n.length!==2||$n[0]!=="a"||$n[1]!=="b"}),Ge$1=function(_n,Cn,$n,Nn){var Bn=ne(_n),Ln=!o(function(){var Yn={};return Yn[Bn]=function(){return 7},""[_n](Yn)!=7}),In=Ln&&!o(function(){var Yn=!1,Gn=/a/;return _n==="split"&&((Gn={}).constructor={},Gn.constructor[Fe]=function(){return Gn},Gn.flags="",Gn[Bn]=/./[Bn]),Gn.exec=function(){return Yn=!0,null},Gn[Bn](""),!Yn});if(!Ln||!In||_n==="replace"&&(!We||!ze$1||Be$1)||_n==="split"&&!Ye){var Pn=/./[Bn],Dn=$n(Bn,""[_n],function(Yn,Gn,ei,nr,ni){return Gn.exec===Me$1?Ln&&!ni?{done:!0,value:Pn.call(Gn,ei,nr)}:{done:!0,value:Yn.call(ei,Gn,nr)}:{done:!1}},{REPLACE_KEEPS_$0:ze$1,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Be$1}),Hn=Dn[0],Wn=Dn[1];Z(String.prototype,_n,Hn),Z(RegExp.prototype,Bn,Cn==2?function(Yn,Gn){return Wn.call(Yn,this,Gn)}:function(Yn){return Wn.call(Yn,this)})}Nn&&I(RegExp.prototype[Bn],"sham",!0)},He$1=ne("match"),Xe=function(_n){var Cn;return h(_n)&&((Cn=_n[He$1])!==void 0?!!Cn:s(_n)=="RegExp")},Ve$1=function(_n){if(typeof _n!="function")throw TypeError(String(_n)+" is not a function");return _n},Ke=ne("species"),qe=function(_n){return function(Cn,$n){var Nn,Bn,Ln=String(p(Cn)),In=it$1($n),Pn=Ln.length;return In<0||In>=Pn?_n?"":void 0:(Nn=Ln.charCodeAt(In))<55296||Nn>56319||In+1===Pn||(Bn=Ln.charCodeAt(In+1))<56320||Bn>57343?_n?Ln.charAt(In):Nn:_n?Ln.slice(In,In+2):Bn-56320+(Nn-55296<<10)+65536}},Qe={codeAt:qe(!1),charAt:qe(!0)},Je=Qe.charAt,Ze=function(_n,Cn,$n){return Cn+($n?Je(_n,Cn).length:1)},tn=function(_n,Cn){var $n=_n.exec;if(typeof $n=="function"){var Nn=$n.call(_n,Cn);if(typeof Nn!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return Nn}if(s(_n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Me$1.call(_n,Cn)},en=[].push,nn=Math.min,rn=!o(function(){return!RegExp(4294967295,"y")});Ge$1("split",2,function(_n,Cn,$n){var Nn;return Nn="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(Bn,Ln){var In=String(p(this)),Pn=Ln===void 0?4294967295:Ln>>>0;if(Pn===0)return[];if(Bn===void 0)return[In];if(!Xe(Bn))return Cn.call(In,Bn,Pn);for(var Dn,Hn,Wn,Yn=[],Gn=(Bn.ignoreCase?"i":"")+(Bn.multiline?"m":"")+(Bn.unicode?"u":"")+(Bn.sticky?"y":""),ei=0,nr=new RegExp(Bn.source,Gn+"g");(Dn=Me$1.call(nr,In))&&!((Hn=nr.lastIndex)>ei&&(Yn.push(In.slice(ei,Dn.index)),Dn.length>1&&Dn.index=Pn));)nr.lastIndex===Dn.index&&nr.lastIndex++;return ei===In.length?!Wn&&nr.test("")||Yn.push(""):Yn.push(In.slice(ei)),Yn.length>Pn?Yn.slice(0,Pn):Yn}:"0".split(void 0,0).length?function(Bn,Ln){return Bn===void 0&&Ln===0?[]:Cn.call(this,Bn,Ln)}:Cn,[function(Bn,Ln){var In=p(this),Pn=Bn==null?void 0:Bn[_n];return Pn!==void 0?Pn.call(Bn,In,Ln):Nn.call(String(In),Bn,Ln)},function(Bn,Ln){var In=$n(Nn,Bn,this,Ln,Nn!==Cn);if(In.done)return In.value;var Pn=A(Bn),Dn=String(this),Hn=function(ri,Ei){var $i,zn=A(ri).constructor;return zn===void 0||($i=A(zn)[Ke])==null?Ei:Ve$1($i)}(Pn,RegExp),Wn=Pn.unicode,Yn=(Pn.ignoreCase?"i":"")+(Pn.multiline?"m":"")+(Pn.unicode?"u":"")+(rn?"y":"g"),Gn=new Hn(rn?Pn:"^(?:"+Pn.source+")",Yn),ei=Ln===void 0?4294967295:Ln>>>0;if(ei===0)return[];if(Dn.length===0)return tn(Gn,Dn)===null?[Dn]:[];for(var nr=0,ni=0,ai=[];ni1?arguments[1]:void 0,Cn.length)),Nn=String(_n);return wn?wn.call(Cn,Nn,$n):Cn.slice($n,$n+Nn.length)===Nn}});var jn=function(_n){return typeof _n=="string"},Mn=function(_n){return _n!==null&&kn(_n)==="object"},Vn=function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"isWindow",value:function(Cn){return Cn===window}},{key:"addEventListener",value:function(Cn,$n,Nn){var Bn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Cn&&$n&&Nn&&Cn.addEventListener($n,Nn,Bn)}},{key:"removeEventListener",value:function(Cn,$n,Nn){var Bn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Cn&&$n&&Nn&&Cn.removeEventListener($n,Nn,Bn)}},{key:"triggerDragEvent",value:function(Cn,$n){var Nn=!1,Bn=function(In){var Pn;(Pn=$n.drag)===null||Pn===void 0||Pn.call($n,In)},Ln=function In(Pn){var Dn;_n.removeEventListener(document,"mousemove",Bn),_n.removeEventListener(document,"mouseup",In),document.onselectstart=null,document.ondragstart=null,Nn=!1,(Dn=$n.end)===null||Dn===void 0||Dn.call($n,Pn)};_n.addEventListener(Cn,"mousedown",function(In){var Pn;Nn||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},_n.addEventListener(document,"mousemove",Bn),_n.addEventListener(document,"mouseup",Ln),Nn=!0,(Pn=$n.start)===null||Pn===void 0||Pn.call($n,In))})}},{key:"getBoundingClientRect",value:function(Cn){return Cn&&Mn(Cn)&&Cn.nodeType===1?Cn.getBoundingClientRect():null}},{key:"hasClass",value:function(Cn,$n){return!!(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1)&&Cn.classList.contains($n.trim())}},{key:"addClass",value:function(Cn,$n){if(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&($n=$n.trim(),!_n.hasClass(Cn,$n))){var Nn=Cn.className;Cn.className=Nn?Nn+" "+$n:$n}}},{key:"removeClass",value:function(Cn,$n){if(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&typeof Cn.className=="string"){$n=$n.trim();for(var Nn=Cn.className.trim().split(" "),Bn=Nn.length-1;Bn>=0;Bn--)Nn[Bn]=Nn[Bn].trim(),Nn[Bn]&&Nn[Bn]!==$n||Nn.splice(Bn,1);Cn.className=Nn.join(" ")}}},{key:"toggleClass",value:function(Cn,$n,Nn){Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&Cn.classList.toggle($n,Nn)}},{key:"replaceClass",value:function(Cn,$n,Nn){Cn&&Mn(Cn)&&jn($n)&&jn(Nn)&&Cn.nodeType===1&&($n=$n.trim(),Nn=Nn.trim(),_n.removeClass(Cn,$n),_n.addClass(Cn,Nn))}},{key:"getScrollTop",value:function(Cn){var $n="scrollTop"in Cn?Cn.scrollTop:Cn.pageYOffset;return Math.max($n,0)}},{key:"setScrollTop",value:function(Cn,$n){"scrollTop"in Cn?Cn.scrollTop=$n:Cn.scrollTo(Cn.scrollX,$n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(Cn){_n.setScrollTop(window,Cn),_n.setScrollTop(document.body,Cn)}},{key:"getElementTop",value:function(Cn,$n){if(_n.isWindow(Cn))return 0;var Nn=$n?_n.getScrollTop($n):_n.getRootScrollTop();return Cn.getBoundingClientRect().top+Nn}},{key:"getVisibleHeight",value:function(Cn){return _n.isWindow(Cn)?Cn.innerHeight:Cn.getBoundingClientRect().height}},{key:"isHidden",value:function(Cn){if(!Cn)return!1;var $n=window.getComputedStyle(Cn),Nn=$n.display==="none",Bn=Cn.offsetParent===null&&$n.position!=="fixed";return Nn||Bn}},{key:"triggerEvent",value:function(Cn,$n){if("createEvent"in document){var Nn=document.createEvent("HTMLEvents");Nn.initEvent($n,!1,!0),Cn.dispatchEvent(Nn)}}},{key:"calcAngle",value:function(Cn,$n){var Nn=Cn.getBoundingClientRect(),Bn=Nn.left+Nn.width/2,Ln=Nn.top+Nn.height/2,In=Math.abs(Bn-$n.clientX),Pn=Math.abs(Ln-$n.clientY),Dn=Pn/Math.sqrt(Math.pow(In,2)+Math.pow(Pn,2)),Hn=Math.acos(Dn),Wn=Math.floor(180/(Math.PI/Hn));return $n.clientX>Bn&&$n.clientY>Ln&&(Wn=180-Wn),$n.clientX==Bn&&$n.clientY>Ln&&(Wn=180),$n.clientX>Bn&&$n.clientY==Ln&&(Wn=90),$n.clientXLn&&(Wn=180+Wn),$n.clientX1?Nn-1:0),Ln=1;Ln]*>)/g,Jn=/\$([$&'`]|\d\d?)/g,Zn=function(_n,Cn,$n,Nn,Bn,Ln){var In=$n+_n.length,Pn=Nn.length,Dn=Jn;return Bn!==void 0&&(Bn=Kt$1(Bn),Dn=Qn),qn.call(Ln,Dn,function(Hn,Wn){var Yn;switch(Wn.charAt(0)){case"$":return"$";case"&":return _n;case"`":return Cn.slice(0,$n);case"'":return Cn.slice(In);case"<":Yn=Bn[Wn.slice(1,-1)];break;default:var Gn=+Wn;if(Gn===0)return Hn;if(Gn>Pn){var ei=Kn(Gn/10);return ei===0?Hn:ei<=Pn?Nn[ei-1]===void 0?Wn.charAt(1):Nn[ei-1]+Wn.charAt(1):Hn}Yn=Nn[Gn-1]}return Yn===void 0?"":Yn})},tr=Math.max,er=Math.min;Ge$1("replace",2,function(_n,Cn,$n,Nn){var Bn=Nn.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Ln=Nn.REPLACE_KEEPS_$0,In=Bn?"$":"$0";return[function(Pn,Dn){var Hn=p(this),Wn=Pn==null?void 0:Pn[_n];return Wn!==void 0?Wn.call(Pn,Hn,Dn):Cn.call(String(Hn),Pn,Dn)},function(Pn,Dn){if(!Bn&&Ln||typeof Dn=="string"&&Dn.indexOf(In)===-1){var Hn=$n(Cn,Pn,this,Dn);if(Hn.done)return Hn.value}var Wn=A(Pn),Yn=String(this),Gn=typeof Dn=="function";Gn||(Dn=String(Dn));var ei=Wn.global;if(ei){var nr=Wn.unicode;Wn.lastIndex=0}for(var ni=[];;){var ai=tn(Wn,Yn);if(ai===null||(ni.push(ai),!ei))break;String(ai[0])===""&&(Wn.lastIndex=Ze(Yn,at$1(Wn.lastIndex),nr))}for(var si,gi="",Si=0,ri=0;ri=Si&&(gi+=Yn.slice(Si,$i)+mi,Si=$i+Ei.length)}return gi+Yn.slice(Si)}]}),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"camelize",value:function(Cn){return Cn.replace(/-(\w)/g,function($n,Nn){return Nn?Nn.toUpperCase():""})}},{key:"capitalize",value:function(Cn){return Cn.charAt(0).toUpperCase()+Cn.slice(1)}}]),_n}(),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"_clone",value:function(){}}]),_n}();var or=ne("isConcatSpreadable"),ir=fe$1>=51||!o(function(){var _n=[];return _n[or]=!1,_n.concat()[0]!==_n}),ur=de("concat"),ar=function(_n){if(!h(_n))return!1;var Cn=_n[or];return Cn!==void 0?!!Cn:qt$1(_n)};It$1({target:"Array",proto:!0,forced:!ir||!ur},{concat:function(_n){var Cn,$n,Nn,Bn,Ln,In=Kt$1(this),Pn=oe(In,0),Dn=0;for(Cn=-1,Nn=arguments.length;Cn9007199254740991)throw TypeError("Maximum allowed index exceeded");for($n=0;$n=9007199254740991)throw TypeError("Maximum allowed index exceeded");ie$1(Pn,Dn++,Ln)}return Pn.length=Dn,Pn}});var cr,lr=function(_n,Cn,$n){if(Ve$1(_n),Cn===void 0)return _n;switch($n){case 0:return function(){return _n.call(Cn)};case 1:return function(Nn){return _n.call(Cn,Nn)};case 2:return function(Nn,Bn){return _n.call(Cn,Nn,Bn)};case 3:return function(Nn,Bn,Ln){return _n.call(Cn,Nn,Bn,Ln)}}return function(){return _n.apply(Cn,arguments)}},fr=[].push,sr=function(_n){var Cn=_n==1,$n=_n==2,Nn=_n==3,Bn=_n==4,Ln=_n==6,In=_n==7,Pn=_n==5||Ln;return function(Dn,Hn,Wn,Yn){for(var Gn,ei,nr=Kt$1(Dn),ni=v(nr),ai=lr(Hn,Wn,3),si=at$1(ni.length),gi=0,Si=Yn||oe,ri=Cn?Si(Dn,si):$n||In?Si(Dn,0):void 0;si>gi;gi++)if((Pn||gi in ni)&&(ei=ai(Gn=ni[gi],gi,nr),_n))if(Cn)ri[gi]=ei;else if(ei)switch(_n){case 3:return!0;case 5:return Gn;case 6:return gi;case 2:fr.call(ri,Gn)}else switch(_n){case 4:return!1;case 7:fr.call(ri,Gn)}return Ln?-1:Nn||Bn?Bn:ri}},dr={forEach:sr(0),map:sr(1),filter:sr(2),some:sr(3),every:sr(4),find:sr(5),findIndex:sr(6),filterOut:sr(7)},vr=i$1?Object.defineProperties:function(_n,Cn){A(_n);for(var $n,Nn=yn(Cn),Bn=Nn.length,Ln=0;Bn>Ln;)R.f(_n,$n=Nn[Ln++],Cn[$n]);return _n},pr=nt$1("document","documentElement"),gr=Y("IE_PROTO"),hr=function(){},yr=function(_n){return"