mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
159 lines
2.4 MiB
159 lines
2.4 MiB
var Vi=Object.defineProperty;var Fi=($,z,oe)=>z in $?Vi($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe;var no=($,z,oe)=>(Fi($,typeof z!="symbol"?z+"":z,oe),oe);(function(){const z=document.createElement("link").relList;if(z&&z.supports&&z.supports("modulepreload"))return;for(const le of document.querySelectorAll('link[rel="modulepreload"]'))ae(le);new MutationObserver(le=>{for(const ue of le)if(ue.type==="childList")for(const pe of ue.addedNodes)pe.tagName==="LINK"&&pe.rel==="modulepreload"&&ae(pe)}).observe(document,{childList:!0,subtree:!0});function oe(le){const ue={};return le.integrity&&(ue.integrity=le.integrity),le.referrerPolicy&&(ue.referrerPolicy=le.referrerPolicy),le.crossOrigin==="use-credentials"?ue.credentials="include":le.crossOrigin==="anonymous"?ue.credentials="omit":ue.credentials="same-origin",ue}function ae(le){if(le.ep)return;le.ep=!0;const ue=oe(le);fetch(le.href,ue)}})();function makeMap($,z){const oe=Object.create(null),ae=$.split(",");for(let le=0;le<ae.length;le++)oe[ae[le]]=!0;return z?le=>!!oe[le.toLowerCase()]:le=>!!oe[le]}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=$=>onRE.test($),isModelListener=$=>$.startsWith("onUpdate:"),extend$2=Object.assign,remove=($,z)=>{const oe=$.indexOf(z);oe>-1&&$.splice(oe,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$4=($,z)=>hasOwnProperty$g.call($,z),isArray$c=Array.isArray,isMap$3=$=>toTypeString$1($)==="[object Map]",isSet$3=$=>toTypeString$1($)==="[object Set]",isDate$3=$=>toTypeString$1($)==="[object Date]",isRegExp$5=$=>toTypeString$1($)==="[object RegExp]",isFunction$5=$=>typeof $=="function",isString$7=$=>typeof $=="string",isSymbol$2=$=>typeof $=="symbol",isObject$8=$=>$!==null&&typeof $=="object",isPromise=$=>isObject$8($)&&isFunction$5($.then)&&isFunction$5($.catch),objectToString$3=Object.prototype.toString,toTypeString$1=$=>objectToString$3.call($),toRawType=$=>toTypeString$1($).slice(8,-1),isPlainObject$4=$=>toTypeString$1($)==="[object Object]",isIntegerKey=$=>isString$7($)&&$!=="NaN"&&$[0]!=="-"&&""+parseInt($,10)===$,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=$=>{const z=Object.create(null);return oe=>z[oe]||(z[oe]=$(oe))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction($=>$.replace(camelizeRE,(z,oe)=>oe?oe.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction($=>$.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction($=>$.charAt(0).toUpperCase()+$.slice(1)),toHandlerKey=cacheStringFunction($=>$?`on${capitalize$2($)}`:""),hasChanged=($,z)=>!Object.is($,z),invokeArrayFns=($,z)=>{for(let oe=0;oe<$.length;oe++)$[oe](z)},def=($,z,oe)=>{Object.defineProperty($,z,{configurable:!0,enumerable:!1,value:oe})},looseToNumber=$=>{const z=parseFloat($);return isNaN(z)?$:z},toNumber$1=$=>{const z=isString$7($)?Number($):NaN;return isNaN(z)?$:z};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED);function normalizeStyle$1($){if(isArray$c($)){const z={};for(let oe=0;oe<$.length;oe++){const ae=$[oe],le=isString$7(ae)?parseStringStyle(ae):normalizeStyle$1(ae);if(le)for(const ue in le)z[ue]=le[ue]}return z}else{if(isString$7($))return $;if(isObject$8($))return $}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle($){const z={};return $.replace(styleCommentRE,"").split(listDelimiterRE).forEach(oe=>{if(oe){const ae=oe.split(propertyDelimiterRE);ae.length>1&&(z[ae[0].trim()]=ae[1].trim())}}),z}function normalizeClass($){let z="";if(isString$7($))z=$;else if(isArray$c($))for(let oe=0;oe<$.length;oe++){const ae=normalizeClass($[oe]);ae&&(z+=ae+" ")}else if(isObject$8($))for(const oe in $)$[oe]&&(z+=oe+" ");return z.trim()}function normalizeProps($){if(!$)return null;let{class:z,style:oe}=$;return z&&!isString$7(z)&&($.class=normalizeClass(z)),oe&&($.style=normalizeStyle$1(oe)),$}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr($){return!!$||$===""}function looseCompareArrays($,z){if($.length!==z.length)return!1;let oe=!0;for(let ae=0;oe&&ae<$.length;ae++)oe=looseEqual($[ae],z[ae]);return oe}function looseEqual($,z){if($===z)return!0;let oe=isDate$3($),ae=isDate$3(z);if(oe||ae)return oe&&ae?$.getTime()===z.getTime():!1;if(oe=isSymbol$2($),ae=isSymbol$2(z),oe||ae)return $===z;if(oe=isArray$c($),ae=isArray$c(z),oe||ae)return oe&&ae?looseCompareArrays($,z):!1;if(oe=isObject$8($),ae=isObject$8(z),oe||ae){if(!oe||!ae)return!1;const le=Object.keys($).length,ue=Object.keys(z).length;if(le!==ue)return!1;for(const pe in $){const _e=$.hasOwnProperty(pe),Ce=z.hasOwnProperty(pe);if(_e&&!Ce||!_e&&Ce||!looseEqual($[pe],z[pe]))return!1}}return String($)===String(z)}function looseIndexOf($,z){return $.findIndex(oe=>looseEqual(oe,z))}const toDisplayString$1=$=>isString$7($)?$:$==null?"":isArray$c($)||isObject$8($)&&($.toString===objectToString$3||!isFunction$5($.toString))?JSON.stringify($,replacer,2):String($),replacer=($,z)=>z&&z.__v_isRef?replacer($,z.value):isMap$3(z)?{[`Map(${z.size})`]:[...z.entries()].reduce((oe,[ae,le])=>(oe[`${ae} =>`]=le,oe),{})}:isSet$3(z)?{[`Set(${z.size})`]:[...z.values()]}:isObject$8(z)&&!isArray$c(z)&&!isPlainObject$4(z)?String(z):z;let activeEffectScope;class EffectScope{constructor(z=!1){this.detached=z,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!z&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(z){if(this._active){const oe=activeEffectScope;try{return activeEffectScope=this,z()}finally{activeEffectScope=oe}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(z){if(this._active){let oe,ae;for(oe=0,ae=this.effects.length;oe<ae;oe++)this.effects[oe].stop();for(oe=0,ae=this.cleanups.length;oe<ae;oe++)this.cleanups[oe]();if(this.scopes)for(oe=0,ae=this.scopes.length;oe<ae;oe++)this.scopes[oe].stop(!0);if(!this.detached&&this.parent&&!z){const le=this.parent.scopes.pop();le&&le!==this&&(this.parent.scopes[this.index]=le,le.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope($){return new EffectScope($)}function recordEffectScope($,z=activeEffectScope){z&&z.active&&z.effects.push($)}function getCurrentScope(){return activeEffectScope}function onScopeDispose($){activeEffectScope&&activeEffectScope.cleanups.push($)}const createDep=$=>{const z=new Set($);return z.w=0,z.n=0,z},wasTracked=$=>($.w&trackOpBit)>0,newTracked=$=>($.n&trackOpBit)>0,initDepMarkers=({deps:$})=>{if($.length)for(let z=0;z<$.length;z++)$[z].w|=trackOpBit},finalizeDepMarkers=$=>{const{deps:z}=$;if(z.length){let oe=0;for(let ae=0;ae<z.length;ae++){const le=z[ae];wasTracked(le)&&!newTracked(le)?le.delete($):z[oe++]=le,le.w&=~trackOpBit,le.n&=~trackOpBit}z.length=oe}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(z,oe=null,ae){this.fn=z,this.scheduler=oe,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,ae)}run(){if(!this.active)return this.fn();let z=activeEffect,oe=shouldTrack;for(;z;){if(z===this)return;z=z.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=oe,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect($){const{deps:z}=$;if(z.length){for(let oe=0;oe<z.length;oe++)z[oe].delete($);z.length=0}}function effect($,z){$.effect&&($=$.effect.fn);const oe=new ReactiveEffect($);z&&(extend$2(oe,z),z.scope&&recordEffectScope(oe,z.scope)),(!z||!z.lazy)&&oe.run();const ae=oe.run.bind(oe);return ae.effect=oe,ae}function stop$1($){$.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const $=trackStack.pop();shouldTrack=$===void 0?!0:$}function track($,z,oe){if(shouldTrack&&activeEffect){let ae=targetMap.get($);ae||targetMap.set($,ae=new Map);let le=ae.get(oe);le||ae.set(oe,le=createDep()),trackEffects(le)}}function trackEffects($,z){let oe=!1;effectTrackDepth<=maxMarkerBits?newTracked($)||($.n|=trackOpBit,oe=!wasTracked($)):oe=!$.has(activeEffect),oe&&($.add(activeEffect),activeEffect.deps.push($))}function trigger$2($,z,oe,ae,le,ue){const pe=targetMap.get($);if(!pe)return;let _e=[];if(z==="clear")_e=[...pe.values()];else if(oe==="length"&&isArray$c($)){const Ce=Number(ae);pe.forEach(($e,xe)=>{(xe==="length"||xe>=Ce)&&_e.push($e)})}else switch(oe!==void 0&&_e.push(pe.get(oe)),z){case"add":isArray$c($)?isIntegerKey(oe)&&_e.push(pe.get("length")):(_e.push(pe.get(ITERATE_KEY)),isMap$3($)&&_e.push(pe.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c($)||(_e.push(pe.get(ITERATE_KEY)),isMap$3($)&&_e.push(pe.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$3($)&&_e.push(pe.get(ITERATE_KEY));break}if(_e.length===1)_e[0]&&triggerEffects(_e[0]);else{const Ce=[];for(const $e of _e)$e&&Ce.push(...$e);triggerEffects(createDep(Ce))}}function triggerEffects($,z){const oe=isArray$c($)?$:[...$];for(const ae of oe)ae.computed&&triggerEffect(ae);for(const ae of oe)ae.computed||triggerEffect(ae)}function triggerEffect($,z){($!==activeEffect||$.allowRecurse)&&($.scheduler?$.scheduler():$.run())}function getDepFromReactive($,z){var oe;return(oe=targetMap.get($))==null?void 0:oe.get(z)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter($=>$!=="arguments"&&$!=="caller").map($=>Symbol[$]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const $={};return["includes","indexOf","lastIndexOf"].forEach(z=>{$[z]=function(...oe){const ae=toRaw(this);for(let ue=0,pe=this.length;ue<pe;ue++)track(ae,"get",ue+"");const le=ae[z](...oe);return le===-1||le===!1?ae[z](...oe.map(toRaw)):le}}),["push","pop","shift","unshift","splice"].forEach(z=>{$[z]=function(...oe){pauseTracking();const ae=toRaw(this)[z].apply(this,oe);return resetTracking(),ae}}),$}function hasOwnProperty$f($){const z=toRaw(this);return track(z,"has",$),z.hasOwnProperty($)}function createGetter($=!1,z=!1){return function(ae,le,ue){if(le==="__v_isReactive")return!$;if(le==="__v_isReadonly")return $;if(le==="__v_isShallow")return z;if(le==="__v_raw"&&ue===($?z?shallowReadonlyMap:readonlyMap:z?shallowReactiveMap:reactiveMap).get(ae))return ae;const pe=isArray$c(ae);if(!$){if(pe&&hasOwn$4(arrayInstrumentations,le))return Reflect.get(arrayInstrumentations,le,ue);if(le==="hasOwnProperty")return hasOwnProperty$f}const _e=Reflect.get(ae,le,ue);return(isSymbol$2(le)?builtInSymbols.has(le):isNonTrackableKeys(le))||($||track(ae,"get",le),z)?_e:isRef(_e)?pe&&isIntegerKey(le)?_e:_e.value:isObject$8(_e)?$?readonly(_e):reactive(_e):_e}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter($=!1){return function(oe,ae,le,ue){let pe=oe[ae];if(isReadonly(pe)&&isRef(pe)&&!isRef(le))return!1;if(!$&&(!isShallow(le)&&!isReadonly(le)&&(pe=toRaw(pe),le=toRaw(le)),!isArray$c(oe)&&isRef(pe)&&!isRef(le)))return pe.value=le,!0;const _e=isArray$c(oe)&&isIntegerKey(ae)?Number(ae)<oe.length:hasOwn$4(oe,ae),Ce=Reflect.set(oe,ae,le,ue);return oe===toRaw(ue)&&(_e?hasChanged(le,pe)&&trigger$2(oe,"set",ae,le):trigger$2(oe,"add",ae,le)),Ce}}function deleteProperty($,z){const oe=hasOwn$4($,z);$[z];const ae=Reflect.deleteProperty($,z);return ae&&oe&&trigger$2($,"delete",z,void 0),ae}function has$1$1($,z){const oe=Reflect.has($,z);return(!isSymbol$2(z)||!builtInSymbols.has(z))&&track($,"has",z),oe}function ownKeys($){return track($,"iterate",isArray$c($)?"length":ITERATE_KEY),Reflect.ownKeys($)}const mutableHandlers={get:get$1$1,set:set$1$1,deleteProperty,has:has$1$1,ownKeys},readonlyHandlers={get:readonlyGet,set($,z){return!0},deleteProperty($,z){return!0}},shallowReactiveHandlers=extend$2({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend$2({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=$=>$,getProto$1=$=>Reflect.getPrototypeOf($);function get$2($,z,oe=!1,ae=!1){$=$.__v_raw;const le=toRaw($),ue=toRaw(z);oe||(z!==ue&&track(le,"get",z),track(le,"get",ue));const{has:pe}=getProto$1(le),_e=ae?toShallow:oe?toReadonly:toReactive;if(pe.call(le,z))return _e($.get(z));if(pe.call(le,ue))return _e($.get(ue));$!==le&&$.get(z)}function has$5($,z=!1){const oe=this.__v_raw,ae=toRaw(oe),le=toRaw($);return z||($!==le&&track(ae,"has",$),track(ae,"has",le)),$===le?oe.has($):oe.has($)||oe.has(le)}function size($,z=!1){return $=$.__v_raw,!z&&track(toRaw($),"iterate",ITERATE_KEY),Reflect.get($,"size",$)}function add$1($){$=toRaw($);const z=toRaw(this);return getProto$1(z).has.call(z,$)||(z.add($),trigger$2(z,"add",$,$)),this}function set$4($,z){z=toRaw(z);const oe=toRaw(this),{has:ae,get:le}=getProto$1(oe);let ue=ae.call(oe,$);ue||($=toRaw($),ue=ae.call(oe,$));const pe=le.call(oe,$);return oe.set($,z),ue?hasChanged(z,pe)&&trigger$2(oe,"set",$,z):trigger$2(oe,"add",$,z),this}function deleteEntry($){const z=toRaw(this),{has:oe,get:ae}=getProto$1(z);let le=oe.call(z,$);le||($=toRaw($),le=oe.call(z,$)),ae&&ae.call(z,$);const ue=z.delete($);return le&&trigger$2(z,"delete",$,void 0),ue}function clear$2(){const $=toRaw(this),z=$.size!==0,oe=$.clear();return z&&trigger$2($,"clear",void 0,void 0),oe}function createForEach($,z){return function(ae,le){const ue=this,pe=ue.__v_raw,_e=toRaw(pe),Ce=z?toShallow:$?toReadonly:toReactive;return!$&&track(_e,"iterate",ITERATE_KEY),pe.forEach(($e,xe)=>ae.call(le,Ce($e),Ce(xe),ue))}}function createIterableMethod($,z,oe){return function(...ae){const le=this.__v_raw,ue=toRaw(le),pe=isMap$3(ue),_e=$==="entries"||$===Symbol.iterator&&pe,Ce=$==="keys"&&pe,$e=le[$](...ae),xe=oe?toShallow:z?toReadonly:toReactive;return!z&&track(ue,"iterate",Ce?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Ie,done:Fe}=$e.next();return Fe?{value:Ie,done:Fe}:{value:_e?[xe(Ie[0]),xe(Ie[1])]:xe(Ie),done:Fe}},[Symbol.iterator](){return this}}}}function createReadonlyMethod($){return function(...z){return $==="delete"?!1:this}}function createInstrumentations(){const $={get(ue){return get$2(this,ue)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!1)},z={get(ue){return get$2(this,ue,!1,!0)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!0)},oe={get(ue){return get$2(this,ue,!0)},get size(){return size(this,!0)},has(ue){return has$5.call(this,ue,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},ae={get(ue){return get$2(this,ue,!0,!0)},get size(){return size(this,!0)},has(ue){return has$5.call(this,ue,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(ue=>{$[ue]=createIterableMethod(ue,!1,!1),oe[ue]=createIterableMethod(ue,!0,!1),z[ue]=createIterableMethod(ue,!1,!0),ae[ue]=createIterableMethod(ue,!0,!0)}),[$,oe,z,ae]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter($,z){const oe=z?$?shallowReadonlyInstrumentations:shallowInstrumentations:$?readonlyInstrumentations:mutableInstrumentations;return(ae,le,ue)=>le==="__v_isReactive"?!$:le==="__v_isReadonly"?$:le==="__v_raw"?ae:Reflect.get(hasOwn$4(oe,le)&&le in ae?oe:ae,le,ue)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap($){switch($){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType($){return $.__v_skip||!Object.isExtensible($)?0:targetTypeMap(toRawType($))}function reactive($){return isReadonly($)?$:createReactiveObject($,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive($){return createReactiveObject($,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly($){return createReactiveObject($,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly($){return createReactiveObject($,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject($,z,oe,ae,le){if(!isObject$8($)||$.__v_raw&&!(z&&$.__v_isReactive))return $;const ue=le.get($);if(ue)return ue;const pe=getTargetType($);if(pe===0)return $;const _e=new Proxy($,pe===2?ae:oe);return le.set($,_e),_e}function isReactive($){return isReadonly($)?isReactive($.__v_raw):!!($&&$.__v_isReactive)}function isReadonly($){return!!($&&$.__v_isReadonly)}function isShallow($){return!!($&&$.__v_isShallow)}function isProxy($){return isReactive($)||isReadonly($)}function toRaw($){const z=$&&$.__v_raw;return z?toRaw(z):$}function markRaw($){return def($,"__v_skip",!0),$}const toReactive=$=>isObject$8($)?reactive($):$,toReadonly=$=>isObject$8($)?readonly($):$;function trackRefValue($){shouldTrack&&activeEffect&&($=toRaw($),trackEffects($.dep||($.dep=createDep())))}function triggerRefValue($,z){$=toRaw($);const oe=$.dep;oe&&triggerEffects(oe)}function isRef($){return!!($&&$.__v_isRef===!0)}function ref($){return createRef($,!1)}function shallowRef($){return createRef($,!0)}function createRef($,z){return isRef($)?$:new RefImpl($,z)}class RefImpl{constructor(z,oe){this.__v_isShallow=oe,this.dep=void 0,this.__v_isRef=!0,this._rawValue=oe?z:toRaw(z),this._value=oe?z:toReactive(z)}get value(){return trackRefValue(this),this._value}set value(z){const oe=this.__v_isShallow||isShallow(z)||isReadonly(z);z=oe?z:toRaw(z),hasChanged(z,this._rawValue)&&(this._rawValue=z,this._value=oe?z:toReactive(z),triggerRefValue(this))}}function triggerRef($){triggerRefValue($)}function unref($){return isRef($)?$.value:$}function toValue$1($){return isFunction$5($)?$():unref($)}const shallowUnwrapHandlers={get:($,z,oe)=>unref(Reflect.get($,z,oe)),set:($,z,oe,ae)=>{const le=$[z];return isRef(le)&&!isRef(oe)?(le.value=oe,!0):Reflect.set($,z,oe,ae)}};function proxyRefs($){return isReactive($)?$:new Proxy($,shallowUnwrapHandlers)}class CustomRefImpl{constructor(z){this.dep=void 0,this.__v_isRef=!0;const{get:oe,set:ae}=z(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=oe,this._set=ae}get value(){return this._get()}set value(z){this._set(z)}}function customRef($){return new CustomRefImpl($)}function toRefs($){const z=isArray$c($)?new Array($.length):{};for(const oe in $)z[oe]=propertyToRef($,oe);return z}class ObjectRefImpl{constructor(z,oe,ae){this._object=z,this._key=oe,this._defaultValue=ae,this.__v_isRef=!0}get value(){const z=this._object[this._key];return z===void 0?this._defaultValue:z}set value(z){this._object[this._key]=z}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(z){this._getter=z,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1($,z,oe){return isRef($)?$:isFunction$5($)?new GetterRefImpl($):isObject$8($)&&arguments.length>1?propertyToRef($,z,oe):ref($)}function propertyToRef($,z,oe){const ae=$[z];return isRef(ae)?ae:new ObjectRefImpl($,z,oe)}class ComputedRefImpl{constructor(z,oe,ae,le){this._setter=oe,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(z,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!le,this.__v_isReadonly=ae}get value(){const z=toRaw(this);return trackRefValue(z),(z._dirty||!z._cacheable)&&(z._dirty=!1,z._value=z.effect.run()),z._value}set value(z){this._setter(z)}}function computed$1($,z,oe=!1){let ae,le;const ue=isFunction$5($);return ue?(ae=$,le=NOOP):(ae=$.get,le=$.set),new ComputedRefImpl(ae,le,ue||!le,oe)}function warn$2($,...z){}function assertNumber($,z){}function callWithErrorHandling($,z,oe,ae){let le;try{le=ae?$(...ae):$()}catch(ue){handleError(ue,z,oe)}return le}function callWithAsyncErrorHandling($,z,oe,ae){if(isFunction$5($)){const ue=callWithErrorHandling($,z,oe,ae);return ue&&isPromise(ue)&&ue.catch(pe=>{handleError(pe,z,oe)}),ue}const le=[];for(let ue=0;ue<$.length;ue++)le.push(callWithAsyncErrorHandling($[ue],z,oe,ae));return le}function handleError($,z,oe,ae=!0){const le=z?z.vnode:null;if(z){let ue=z.parent;const pe=z.proxy,_e=oe;for(;ue;){const $e=ue.ec;if($e){for(let xe=0;xe<$e.length;xe++)if($e[xe]($,pe,_e)===!1)return}ue=ue.parent}const Ce=z.appContext.config.errorHandler;if(Ce){callWithErrorHandling(Ce,null,10,[$,pe,_e]);return}}logError$1($,oe,le,ae)}function logError$1($,z,oe,ae=!0){console.error($)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick($){const z=currentFlushPromise||resolvedPromise;return $?z.then(this?$.bind(this):$):z}function findInsertionIndex($){let z=flushIndex+1,oe=queue.length;for(;z<oe;){const ae=z+oe>>>1;getId$1(queue[ae])<$?z=ae+1:oe=ae}return z}function queueJob($){(!queue.length||!queue.includes($,isFlushing&&$.allowRecurse?flushIndex+1:flushIndex))&&($.id==null?queue.push($):queue.splice(findInsertionIndex($.id),0,$),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob($){const z=queue.indexOf($);z>flushIndex&&queue.splice(z,1)}function queuePostFlushCb($){isArray$c($)?pendingPostFlushCbs.push(...$):(!activePostFlushCbs||!activePostFlushCbs.includes($,$.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push($),queueFlush()}function flushPreFlushCbs($,z=isFlushing?flushIndex+1:0){for(;z<queue.length;z++){const oe=queue[z];oe&&oe.pre&&(queue.splice(z,1),z--,oe())}}function flushPostFlushCbs($){if(pendingPostFlushCbs.length){const z=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...z);return}for(activePostFlushCbs=z,activePostFlushCbs.sort((oe,ae)=>getId$1(oe)-getId$1(ae)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId$1=$=>$.id==null?1/0:$.id,comparator=($,z)=>{const oe=getId$1($)-getId$1(z);if(oe===0){if($.pre&&!z.pre)return-1;if(z.pre&&!$.pre)return 1}return oe};function flushJobs($){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const z=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const oe=queue[flushIndex];oe&&oe.active!==!1&&callWithErrorHandling(oe,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools,buffer=[];function setDevtoolsHook($,z){var oe,ae;devtools=$,devtools?(devtools.enabled=!0,buffer.forEach(({event:le,args:ue})=>devtools.emit(le,...ue)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((ae=(oe=window.navigator)==null?void 0:oe.userAgent)!=null&&ae.includes("jsdom"))?((z.__VUE_DEVTOOLS_HOOK_REPLAY__=z.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(ue=>{setDevtoolsHook(ue,z)}),setTimeout(()=>{devtools||(z.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit($,z,...oe){if($.isUnmounted)return;const ae=$.vnode.props||EMPTY_OBJ$1;let le=oe;const ue=z.startsWith("update:"),pe=ue&&z.slice(7);if(pe&&pe in ae){const xe=`${pe==="modelValue"?"model":pe}Modifiers`,{number:Ie,trim:Fe}=ae[xe]||EMPTY_OBJ$1;Fe&&(le=oe.map(ze=>isString$7(ze)?ze.trim():ze)),Ie&&(le=oe.map(looseToNumber))}let _e,Ce=ae[_e=toHandlerKey(z)]||ae[_e=toHandlerKey(camelize(z))];!Ce&&ue&&(Ce=ae[_e=toHandlerKey(hyphenate(z))]),Ce&&callWithAsyncErrorHandling(Ce,$,6,le);const $e=ae[_e+"Once"];if($e){if(!$.emitted)$.emitted={};else if($.emitted[_e])return;$.emitted[_e]=!0,callWithAsyncErrorHandling($e,$,6,le)}}function normalizeEmitsOptions($,z,oe=!1){const ae=z.emitsCache,le=ae.get($);if(le!==void 0)return le;const ue=$.emits;let pe={},_e=!1;if(!isFunction$5($)){const Ce=$e=>{const xe=normalizeEmitsOptions($e,z,!0);xe&&(_e=!0,extend$2(pe,xe))};!oe&&z.mixins.length&&z.mixins.forEach(Ce),$.extends&&Ce($.extends),$.mixins&&$.mixins.forEach(Ce)}return!ue&&!_e?(isObject$8($)&&ae.set($,null),null):(isArray$c(ue)?ue.forEach(Ce=>pe[Ce]=null):extend$2(pe,ue),isObject$8($)&&ae.set($,pe),pe)}function isEmitListener($,z){return!$||!isOn(z)?!1:(z=z.slice(2).replace(/Once$/,""),hasOwn$4($,z[0].toLowerCase()+z.slice(1))||hasOwn$4($,hyphenate(z))||hasOwn$4($,z))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance($){const z=currentRenderingInstance;return currentRenderingInstance=$,currentScopeId=$&&$.type.__scopeId||null,z}function pushScopeId($){currentScopeId=$}function popScopeId(){currentScopeId=null}const withScopeId=$=>withCtx;function withCtx($,z=currentRenderingInstance,oe){if(!z||$._n)return $;const ae=(...le)=>{ae._d&&setBlockTracking(-1);const ue=setCurrentRenderingInstance(z);let pe;try{pe=$(...le)}finally{setCurrentRenderingInstance(ue),ae._d&&setBlockTracking(1)}return pe};return ae._n=!0,ae._c=!0,ae._d=!0,ae}function markAttrsAccessed(){}function renderComponentRoot($){const{type:z,vnode:oe,proxy:ae,withProxy:le,props:ue,propsOptions:[pe],slots:_e,attrs:Ce,emit:$e,render:xe,renderCache:Ie,data:Fe,setupState:ze,ctx:Ue,inheritAttrs:qe}=$;let At,Lt;const hn=setCurrentRenderingInstance($);try{if(oe.shapeFlag&4){const _n=le||ae;At=normalizeVNode(xe.call(_n,_n,Ie,ue,ze,Fe,Ue)),Lt=Ce}else{const _n=z;At=normalizeVNode(_n.length>1?_n(ue,{attrs:Ce,slots:_e,emit:$e}):_n(ue,null)),Lt=z.props?Ce:getFunctionalFallthrough(Ce)}}catch(_n){blockStack.length=0,handleError(_n,$,1),At=createVNode(Comment)}let vn=At;if(Lt&&qe!==!1){const _n=Object.keys(Lt),{shapeFlag:bn}=vn;_n.length&&bn&7&&(pe&&_n.some(isModelListener)&&(Lt=filterModelListeners(Lt,pe)),vn=cloneVNode(vn,Lt))}return oe.dirs&&(vn=cloneVNode(vn),vn.dirs=vn.dirs?vn.dirs.concat(oe.dirs):oe.dirs),oe.transition&&(vn.transition=oe.transition),At=vn,setCurrentRenderingInstance(hn),At}function filterSingleRoot($){let z;for(let oe=0;oe<$.length;oe++){const ae=$[oe];if(isVNode$1(ae)){if(ae.type!==Comment||ae.children==="v-if"){if(z)return;z=ae}}else return}return z}const getFunctionalFallthrough=$=>{let z;for(const oe in $)(oe==="class"||oe==="style"||isOn(oe))&&((z||(z={}))[oe]=$[oe]);return z},filterModelListeners=($,z)=>{const oe={};for(const ae in $)(!isModelListener(ae)||!(ae.slice(9)in z))&&(oe[ae]=$[ae]);return oe};function shouldUpdateComponent($,z,oe){const{props:ae,children:le,component:ue}=$,{props:pe,children:_e,patchFlag:Ce}=z,$e=ue.emitsOptions;if(z.dirs||z.transition)return!0;if(oe&&Ce>=0){if(Ce&1024)return!0;if(Ce&16)return ae?hasPropsChanged(ae,pe,$e):!!pe;if(Ce&8){const xe=z.dynamicProps;for(let Ie=0;Ie<xe.length;Ie++){const Fe=xe[Ie];if(pe[Fe]!==ae[Fe]&&!isEmitListener($e,Fe))return!0}}}else return(le||_e)&&(!_e||!_e.$stable)?!0:ae===pe?!1:ae?pe?hasPropsChanged(ae,pe,$e):!0:!!pe;return!1}function hasPropsChanged($,z,oe){const ae=Object.keys(z);if(ae.length!==Object.keys($).length)return!0;for(let le=0;le<ae.length;le++){const ue=ae[le];if(z[ue]!==$[ue]&&!isEmitListener(oe,ue))return!0}return!1}function updateHOCHostEl({vnode:$,parent:z},oe){for(;z&&z.subTree===$;)($=z.vnode).el=oe,z=z.parent}const isSuspense=$=>$.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process($,z,oe,ae,le,ue,pe,_e,Ce,$e){$==null?mountSuspense(z,oe,ae,le,ue,pe,_e,Ce,$e):patchSuspense($,z,oe,ae,le,pe,_e,Ce,$e)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1($,z){const oe=$.props&&$.props[z];isFunction$5(oe)&&oe()}function mountSuspense($,z,oe,ae,le,ue,pe,_e,Ce){const{p:$e,o:{createElement:xe}}=Ce,Ie=xe("div"),Fe=$.suspense=createSuspenseBoundary($,le,ae,z,Ie,oe,ue,pe,_e,Ce);$e(null,Fe.pendingBranch=$.ssContent,Ie,null,ae,Fe,ue,pe),Fe.deps>0?(triggerEvent$1($,"onPending"),triggerEvent$1($,"onFallback"),$e(null,$.ssFallback,z,oe,ae,null,ue,pe),setActiveBranch(Fe,$.ssFallback)):Fe.resolve(!1,!0)}function patchSuspense($,z,oe,ae,le,ue,pe,_e,{p:Ce,um:$e,o:{createElement:xe}}){const Ie=z.suspense=$.suspense;Ie.vnode=z,z.el=$.el;const Fe=z.ssContent,ze=z.ssFallback,{activeBranch:Ue,pendingBranch:qe,isInFallback:At,isHydrating:Lt}=Ie;if(qe)Ie.pendingBranch=Fe,isSameVNodeType(Fe,qe)?(Ce(qe,Fe,Ie.hiddenContainer,null,le,Ie,ue,pe,_e),Ie.deps<=0?Ie.resolve():At&&(Ce(Ue,ze,oe,ae,le,null,ue,pe,_e),setActiveBranch(Ie,ze))):(Ie.pendingId++,Lt?(Ie.isHydrating=!1,Ie.activeBranch=qe):$e(qe,le,Ie),Ie.deps=0,Ie.effects.length=0,Ie.hiddenContainer=xe("div"),At?(Ce(null,Fe,Ie.hiddenContainer,null,le,Ie,ue,pe,_e),Ie.deps<=0?Ie.resolve():(Ce(Ue,ze,oe,ae,le,null,ue,pe,_e),setActiveBranch(Ie,ze))):Ue&&isSameVNodeType(Fe,Ue)?(Ce(Ue,Fe,oe,ae,le,Ie,ue,pe,_e),Ie.resolve(!0)):(Ce(null,Fe,Ie.hiddenContainer,null,le,Ie,ue,pe,_e),Ie.deps<=0&&Ie.resolve()));else if(Ue&&isSameVNodeType(Fe,Ue))Ce(Ue,Fe,oe,ae,le,Ie,ue,pe,_e),setActiveBranch(Ie,Fe);else if(triggerEvent$1(z,"onPending"),Ie.pendingBranch=Fe,Ie.pendingId++,Ce(null,Fe,Ie.hiddenContainer,null,le,Ie,ue,pe,_e),Ie.deps<=0)Ie.resolve();else{const{timeout:hn,pendingId:vn}=Ie;hn>0?setTimeout(()=>{Ie.pendingId===vn&&Ie.fallback(ze)},hn):hn===0&&Ie.fallback(ze)}}function createSuspenseBoundary($,z,oe,ae,le,ue,pe,_e,Ce,$e,xe=!1){const{p:Ie,m:Fe,um:ze,n:Ue,o:{parentNode:qe,remove:At}}=$e;let Lt;const hn=isVNodeSuspensible($);hn&&z!=null&&z.pendingBranch&&(Lt=z.pendingId,z.deps++);const vn=$.props?toNumber$1($.props.timeout):void 0,_n={vnode:$,parent:z,parentComponent:oe,isSVG:pe,container:ae,hiddenContainer:le,anchor:ue,deps:0,pendingId:0,timeout:typeof vn=="number"?vn:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:xe,isUnmounted:!1,effects:[],resolve(bn=!1,Sn=!1){const{vnode:Cn,activeBranch:En,pendingBranch:$n,pendingId:wn,effects:Tn,parentComponent:xn,container:kn}=_n;if(_n.isHydrating)_n.isHydrating=!1;else if(!bn){const Dn=En&&$n.transition&&$n.transition.mode==="out-in";Dn&&(En.transition.afterLeave=()=>{wn===_n.pendingId&&Fe($n,kn,In,0)});let{anchor:In}=_n;En&&(In=Ue(En),ze(En,xn,_n,!0)),Dn||Fe($n,kn,In,0)}setActiveBranch(_n,$n),_n.pendingBranch=null,_n.isInFallback=!1;let Nn=_n.parent,Bn=!1;for(;Nn;){if(Nn.pendingBranch){Nn.effects.push(...Tn),Bn=!0;break}Nn=Nn.parent}Bn||queuePostFlushCb(Tn),_n.effects=[],hn&&z&&z.pendingBranch&&Lt===z.pendingId&&(z.deps--,z.deps===0&&!Sn&&z.resolve()),triggerEvent$1(Cn,"onResolve")},fallback(bn){if(!_n.pendingBranch)return;const{vnode:Sn,activeBranch:Cn,parentComponent:En,container:$n,isSVG:wn}=_n;triggerEvent$1(Sn,"onFallback");const Tn=Ue(Cn),xn=()=>{_n.isInFallback&&(Ie(null,bn,$n,Tn,En,null,wn,_e,Ce),setActiveBranch(_n,bn))},kn=bn.transition&&bn.transition.mode==="out-in";kn&&(Cn.transition.afterLeave=xn),_n.isInFallback=!0,ze(Cn,En,null,!0),kn||xn()},move(bn,Sn,Cn){_n.activeBranch&&Fe(_n.activeBranch,bn,Sn,Cn),_n.container=bn},next(){return _n.activeBranch&&Ue(_n.activeBranch)},registerDep(bn,Sn){const Cn=!!_n.pendingBranch;Cn&&_n.deps++;const En=bn.vnode.el;bn.asyncDep.catch($n=>{handleError($n,bn,0)}).then($n=>{if(bn.isUnmounted||_n.isUnmounted||_n.pendingId!==bn.suspenseId)return;bn.asyncResolved=!0;const{vnode:wn}=bn;handleSetupResult(bn,$n,!1),En&&(wn.el=En);const Tn=!En&&bn.subTree.el;Sn(bn,wn,qe(En||bn.subTree.el),En?null:Ue(bn.subTree),_n,pe,Ce),Tn&&At(Tn),updateHOCHostEl(bn,wn.el),Cn&&--_n.deps===0&&_n.resolve()})},unmount(bn,Sn){_n.isUnmounted=!0,_n.activeBranch&&ze(_n.activeBranch,oe,bn,Sn),_n.pendingBranch&&ze(_n.pendingBranch,oe,bn,Sn)}};return _n}function hydrateSuspense($,z,oe,ae,le,ue,pe,_e,Ce){const $e=z.suspense=createSuspenseBoundary(z,ae,oe,$.parentNode,document.createElement("div"),null,le,ue,pe,_e,!0),xe=Ce($,$e.pendingBranch=z.ssContent,oe,$e,ue,pe);return $e.deps===0&&$e.resolve(!1,!0),xe}function normalizeSuspenseChildren($){const{shapeFlag:z,children:oe}=$,ae=z&32;$.ssContent=normalizeSuspenseSlot(ae?oe.default:oe),$.ssFallback=ae?normalizeSuspenseSlot(oe.fallback):createVNode(Comment)}function normalizeSuspenseSlot($){let z;if(isFunction$5($)){const oe=isBlockTreeEnabled&&$._c;oe&&($._d=!1,openBlock()),$=$(),oe&&($._d=!0,z=currentBlock,closeBlock())}return isArray$c($)&&($=filterSingleRoot($)),$=normalizeVNode($),z&&!$.dynamicChildren&&($.dynamicChildren=z.filter(oe=>oe!==$)),$}function queueEffectWithSuspense($,z){z&&z.pendingBranch?isArray$c($)?z.effects.push(...$):z.effects.push($):queuePostFlushCb($)}function setActiveBranch($,z){$.activeBranch=z;const{vnode:oe,parentComponent:ae}=$,le=oe.el=z.el;ae&&ae.subTree===oe&&(ae.vnode.el=le,updateHOCHostEl(ae,le))}function isVNodeSuspensible($){var z;return((z=$.props)==null?void 0:z.suspensible)!=null&&$.props.suspensible!==!1}function watchEffect($,z){return doWatch($,null,z)}function watchPostEffect($,z){return doWatch($,null,{flush:"post"})}function watchSyncEffect($,z){return doWatch($,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch($,z,oe){return doWatch($,z,oe)}function doWatch($,z,{immediate:oe,deep:ae,flush:le,onTrack:ue,onTrigger:pe}=EMPTY_OBJ$1){var _e;const Ce=getCurrentScope()===((_e=currentInstance)==null?void 0:_e.scope)?currentInstance:null;let $e,xe=!1,Ie=!1;if(isRef($)?($e=()=>$.value,xe=isShallow($)):isReactive($)?($e=()=>$,ae=!0):isArray$c($)?(Ie=!0,xe=$.some(_n=>isReactive(_n)||isShallow(_n)),$e=()=>$.map(_n=>{if(isRef(_n))return _n.value;if(isReactive(_n))return traverse(_n);if(isFunction$5(_n))return callWithErrorHandling(_n,Ce,2)})):isFunction$5($)?z?$e=()=>callWithErrorHandling($,Ce,2):$e=()=>{if(!(Ce&&Ce.isUnmounted))return Fe&&Fe(),callWithAsyncErrorHandling($,Ce,3,[ze])}:$e=NOOP,z&&ae){const _n=$e;$e=()=>traverse(_n())}let Fe,ze=_n=>{Fe=hn.onStop=()=>{callWithErrorHandling(_n,Ce,4)}},Ue;if(isInSSRComponentSetup)if(ze=NOOP,z?oe&&callWithAsyncErrorHandling(z,Ce,3,[$e(),Ie?[]:void 0,ze]):$e(),le==="sync"){const _n=useSSRContext();Ue=_n.__watcherHandles||(_n.__watcherHandles=[])}else return NOOP;let qe=Ie?new Array($.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const At=()=>{if(hn.active)if(z){const _n=hn.run();(ae||xe||(Ie?_n.some((bn,Sn)=>hasChanged(bn,qe[Sn])):hasChanged(_n,qe)))&&(Fe&&Fe(),callWithAsyncErrorHandling(z,Ce,3,[_n,qe===INITIAL_WATCHER_VALUE?void 0:Ie&&qe[0]===INITIAL_WATCHER_VALUE?[]:qe,ze]),qe=_n)}else hn.run()};At.allowRecurse=!!z;let Lt;le==="sync"?Lt=At:le==="post"?Lt=()=>queuePostRenderEffect(At,Ce&&Ce.suspense):(At.pre=!0,Ce&&(At.id=Ce.uid),Lt=()=>queueJob(At));const hn=new ReactiveEffect($e,Lt);z?oe?At():qe=hn.run():le==="post"?queuePostRenderEffect(hn.run.bind(hn),Ce&&Ce.suspense):hn.run();const vn=()=>{hn.stop(),Ce&&Ce.scope&&remove(Ce.scope.effects,hn)};return Ue&&Ue.push(vn),vn}function instanceWatch($,z,oe){const ae=this.proxy,le=isString$7($)?$.includes(".")?createPathGetter(ae,$):()=>ae[$]:$.bind(ae,ae);let ue;isFunction$5(z)?ue=z:(ue=z.handler,oe=z);const pe=currentInstance;setCurrentInstance(this);const _e=doWatch(le,ue.bind(ae),oe);return pe?setCurrentInstance(pe):unsetCurrentInstance(),_e}function createPathGetter($,z){const oe=z.split(".");return()=>{let ae=$;for(let le=0;le<oe.length&&ae;le++)ae=ae[oe[le]];return ae}}function traverse($,z){if(!isObject$8($)||$.__v_skip||(z=z||new Set,z.has($)))return $;if(z.add($),isRef($))traverse($.value,z);else if(isArray$c($))for(let oe=0;oe<$.length;oe++)traverse($[oe],z);else if(isSet$3($)||isMap$3($))$.forEach(oe=>{traverse(oe,z)});else if(isPlainObject$4($))for(const oe in $)traverse($[oe],z);return $}function withDirectives($,z){const oe=currentRenderingInstance;if(oe===null)return $;const ae=getExposeProxy(oe)||oe.proxy,le=$.dirs||($.dirs=[]);for(let ue=0;ue<z.length;ue++){let[pe,_e,Ce,$e=EMPTY_OBJ$1]=z[ue];pe&&(isFunction$5(pe)&&(pe={mounted:pe,updated:pe}),pe.deep&&traverse(_e),le.push({dir:pe,instance:ae,value:_e,oldValue:void 0,arg:Ce,modifiers:$e}))}return $}function invokeDirectiveHook($,z,oe,ae){const le=$.dirs,ue=z&&z.dirs;for(let pe=0;pe<le.length;pe++){const _e=le[pe];ue&&(_e.oldValue=ue[pe].value);let Ce=_e.dir[ae];Ce&&(pauseTracking(),callWithAsyncErrorHandling(Ce,oe,8,[$.el,_e,$,z]),resetTracking())}}function useTransitionState(){const $={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{$.isMounted=!0}),onBeforeUnmount(()=>{$.isUnmounting=!0}),$}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($,{slots:z}){const oe=getCurrentInstance(),ae=useTransitionState();let le;return()=>{const ue=z.default&&getTransitionRawChildren(z.default(),!0);if(!ue||!ue.length)return;let pe=ue[0];if(ue.length>1){for(const qe of ue)if(qe.type!==Comment){pe=qe;break}}const _e=toRaw($),{mode:Ce}=_e;if(ae.isLeaving)return emptyPlaceholder(pe);const $e=getKeepAliveChild(pe);if(!$e)return emptyPlaceholder(pe);const xe=resolveTransitionHooks($e,_e,ae,oe);setTransitionHooks($e,xe);const Ie=oe.subTree,Fe=Ie&&getKeepAliveChild(Ie);let ze=!1;const{getTransitionKey:Ue}=$e.type;if(Ue){const qe=Ue();le===void 0?le=qe:qe!==le&&(le=qe,ze=!0)}if(Fe&&Fe.type!==Comment&&(!isSameVNodeType($e,Fe)||ze)){const qe=resolveTransitionHooks(Fe,_e,ae,oe);if(setTransitionHooks(Fe,qe),Ce==="out-in")return ae.isLeaving=!0,qe.afterLeave=()=>{ae.isLeaving=!1,oe.update.active!==!1&&oe.update()},emptyPlaceholder(pe);Ce==="in-out"&&$e.type!==Comment&&(qe.delayLeave=(At,Lt,hn)=>{const vn=getLeavingNodesForType(ae,Fe);vn[String(Fe.key)]=Fe,At._leaveCb=()=>{Lt(),At._leaveCb=void 0,delete xe.delayedLeave},xe.delayedLeave=hn})}return pe}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType($,z){const{leavingVNodes:oe}=$;let ae=oe.get(z.type);return ae||(ae=Object.create(null),oe.set(z.type,ae)),ae}function resolveTransitionHooks($,z,oe,ae){const{appear:le,mode:ue,persisted:pe=!1,onBeforeEnter:_e,onEnter:Ce,onAfterEnter:$e,onEnterCancelled:xe,onBeforeLeave:Ie,onLeave:Fe,onAfterLeave:ze,onLeaveCancelled:Ue,onBeforeAppear:qe,onAppear:At,onAfterAppear:Lt,onAppearCancelled:hn}=z,vn=String($.key),_n=getLeavingNodesForType(oe,$),bn=(En,$n)=>{En&&callWithAsyncErrorHandling(En,ae,9,$n)},Sn=(En,$n)=>{const wn=$n[1];bn(En,$n),isArray$c(En)?En.every(Tn=>Tn.length<=1)&&wn():En.length<=1&&wn()},Cn={mode:ue,persisted:pe,beforeEnter(En){let $n=_e;if(!oe.isMounted)if(le)$n=qe||_e;else return;En._leaveCb&&En._leaveCb(!0);const wn=_n[vn];wn&&isSameVNodeType($,wn)&&wn.el._leaveCb&&wn.el._leaveCb(),bn($n,[En])},enter(En){let $n=Ce,wn=$e,Tn=xe;if(!oe.isMounted)if(le)$n=At||Ce,wn=Lt||$e,Tn=hn||xe;else return;let xn=!1;const kn=En._enterCb=Nn=>{xn||(xn=!0,Nn?bn(Tn,[En]):bn(wn,[En]),Cn.delayedLeave&&Cn.delayedLeave(),En._enterCb=void 0)};$n?Sn($n,[En,kn]):kn()},leave(En,$n){const wn=String($.key);if(En._enterCb&&En._enterCb(!0),oe.isUnmounting)return $n();bn(Ie,[En]);let Tn=!1;const xn=En._leaveCb=kn=>{Tn||(Tn=!0,$n(),kn?bn(Ue,[En]):bn(ze,[En]),En._leaveCb=void 0,_n[wn]===$&&delete _n[wn])};_n[wn]=$,Fe?Sn(Fe,[En,xn]):xn()},clone(En){return resolveTransitionHooks(En,z,oe,ae)}};return Cn}function emptyPlaceholder($){if(isKeepAlive($))return $=cloneVNode($),$.children=null,$}function getKeepAliveChild($){return isKeepAlive($)?$.children?$.children[0]:void 0:$}function setTransitionHooks($,z){$.shapeFlag&6&&$.component?setTransitionHooks($.component.subTree,z):$.shapeFlag&128?($.ssContent.transition=z.clone($.ssContent),$.ssFallback.transition=z.clone($.ssFallback)):$.transition=z}function getTransitionRawChildren($,z=!1,oe){let ae=[],le=0;for(let ue=0;ue<$.length;ue++){let pe=$[ue];const _e=oe==null?pe.key:String(oe)+String(pe.key!=null?pe.key:ue);pe.type===Fragment?(pe.patchFlag&128&&le++,ae=ae.concat(getTransitionRawChildren(pe.children,z,_e))):(z||pe.type!==Comment)&&ae.push(_e!=null?cloneVNode(pe,{key:_e}):pe)}if(le>1)for(let ue=0;ue<ae.length;ue++)ae[ue].patchFlag=-2;return ae}function defineComponent($,z){return isFunction$5($)?(()=>extend$2({name:$.name},z,{setup:$}))():$}const isAsyncWrapper=$=>!!$.type.__asyncLoader;function defineAsyncComponent($){isFunction$5($)&&($={loader:$});const{loader:z,loadingComponent:oe,errorComponent:ae,delay:le=200,timeout:ue,suspensible:pe=!0,onError:_e}=$;let Ce=null,$e,xe=0;const Ie=()=>(xe++,Ce=null,Fe()),Fe=()=>{let ze;return Ce||(ze=Ce=z().catch(Ue=>{if(Ue=Ue instanceof Error?Ue:new Error(String(Ue)),_e)return new Promise((qe,At)=>{_e(Ue,()=>qe(Ie()),()=>At(Ue),xe+1)});throw Ue}).then(Ue=>ze!==Ce&&Ce?Ce:(Ue&&(Ue.__esModule||Ue[Symbol.toStringTag]==="Module")&&(Ue=Ue.default),$e=Ue,Ue)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:Fe,get __asyncResolved(){return $e},setup(){const ze=currentInstance;if($e)return()=>createInnerComp($e,ze);const Ue=hn=>{Ce=null,handleError(hn,ze,13,!ae)};if(pe&&ze.suspense||isInSSRComponentSetup)return Fe().then(hn=>()=>createInnerComp(hn,ze)).catch(hn=>(Ue(hn),()=>ae?createVNode(ae,{error:hn}):null));const qe=ref(!1),At=ref(),Lt=ref(!!le);return le&&setTimeout(()=>{Lt.value=!1},le),ue!=null&&setTimeout(()=>{if(!qe.value&&!At.value){const hn=new Error(`Async component timed out after ${ue}ms.`);Ue(hn),At.value=hn}},ue),Fe().then(()=>{qe.value=!0,ze.parent&&isKeepAlive(ze.parent.vnode)&&queueJob(ze.parent.update)}).catch(hn=>{Ue(hn),At.value=hn}),()=>{if(qe.value&&$e)return createInnerComp($e,ze);if(At.value&&ae)return createVNode(ae,{error:At.value});if(oe&&!Lt.value)return createVNode(oe)}}})}function createInnerComp($,z){const{ref:oe,props:ae,children:le,ce:ue}=z.vnode,pe=createVNode($,ae,le);return pe.ref=oe,pe.ce=ue,delete z.vnode.ce,pe}const isKeepAlive=$=>$.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup($,{slots:z}){const oe=getCurrentInstance(),ae=oe.ctx;if(!ae.renderer)return()=>{const hn=z.default&&z.default();return hn&&hn.length===1?hn[0]:hn};const le=new Map,ue=new Set;let pe=null;const _e=oe.suspense,{renderer:{p:Ce,m:$e,um:xe,o:{createElement:Ie}}}=ae,Fe=Ie("div");ae.activate=(hn,vn,_n,bn,Sn)=>{const Cn=hn.component;$e(hn,vn,_n,0,_e),Ce(Cn.vnode,hn,vn,_n,Cn,_e,bn,hn.slotScopeIds,Sn),queuePostRenderEffect(()=>{Cn.isDeactivated=!1,Cn.a&&invokeArrayFns(Cn.a);const En=hn.props&&hn.props.onVnodeMounted;En&&invokeVNodeHook(En,Cn.parent,hn)},_e)},ae.deactivate=hn=>{const vn=hn.component;$e(hn,Fe,null,1,_e),queuePostRenderEffect(()=>{vn.da&&invokeArrayFns(vn.da);const _n=hn.props&&hn.props.onVnodeUnmounted;_n&&invokeVNodeHook(_n,vn.parent,hn),vn.isDeactivated=!0},_e)};function ze(hn){resetShapeFlag(hn),xe(hn,oe,_e,!0)}function Ue(hn){le.forEach((vn,_n)=>{const bn=getComponentName(vn.type);bn&&(!hn||!hn(bn))&&qe(_n)})}function qe(hn){const vn=le.get(hn);!pe||!isSameVNodeType(vn,pe)?ze(vn):pe&&resetShapeFlag(pe),le.delete(hn),ue.delete(hn)}watch(()=>[$.include,$.exclude],([hn,vn])=>{hn&&Ue(_n=>matches(hn,_n)),vn&&Ue(_n=>!matches(vn,_n))},{flush:"post",deep:!0});let At=null;const Lt=()=>{At!=null&&le.set(At,getInnerChild(oe.subTree))};return onMounted(Lt),onUpdated(Lt),onBeforeUnmount(()=>{le.forEach(hn=>{const{subTree:vn,suspense:_n}=oe,bn=getInnerChild(vn);if(hn.type===bn.type&&hn.key===bn.key){resetShapeFlag(bn);const Sn=bn.component.da;Sn&&queuePostRenderEffect(Sn,_n);return}ze(hn)})}),()=>{if(At=null,!z.default)return null;const hn=z.default(),vn=hn[0];if(hn.length>1)return pe=null,hn;if(!isVNode$1(vn)||!(vn.shapeFlag&4)&&!(vn.shapeFlag&128))return pe=null,vn;let _n=getInnerChild(vn);const bn=_n.type,Sn=getComponentName(isAsyncWrapper(_n)?_n.type.__asyncResolved||{}:bn),{include:Cn,exclude:En,max:$n}=$;if(Cn&&(!Sn||!matches(Cn,Sn))||En&&Sn&&matches(En,Sn))return pe=_n,vn;const wn=_n.key==null?bn:_n.key,Tn=le.get(wn);return _n.el&&(_n=cloneVNode(_n),vn.shapeFlag&128&&(vn.ssContent=_n)),At=wn,Tn?(_n.el=Tn.el,_n.component=Tn.component,_n.transition&&setTransitionHooks(_n,_n.transition),_n.shapeFlag|=512,ue.delete(wn),ue.add(wn)):(ue.add(wn),$n&&ue.size>parseInt($n,10)&&qe(ue.values().next().value)),_n.shapeFlag|=256,pe=_n,isSuspense(vn.type)?vn:_n}}},KeepAlive=KeepAliveImpl;function matches($,z){return isArray$c($)?$.some(oe=>matches(oe,z)):isString$7($)?$.split(",").includes(z):isRegExp$5($)?$.test(z):!1}function onActivated($,z){registerKeepAliveHook($,"a",z)}function onDeactivated($,z){registerKeepAliveHook($,"da",z)}function registerKeepAliveHook($,z,oe=currentInstance){const ae=$.__wdc||($.__wdc=()=>{let le=oe;for(;le;){if(le.isDeactivated)return;le=le.parent}return $()});if(injectHook(z,ae,oe),oe){let le=oe.parent;for(;le&&le.parent;)isKeepAlive(le.parent.vnode)&&injectToKeepAliveRoot(ae,z,oe,le),le=le.parent}}function injectToKeepAliveRoot($,z,oe,ae){const le=injectHook(z,$,ae,!0);onUnmounted(()=>{remove(ae[z],le)},oe)}function resetShapeFlag($){$.shapeFlag&=-257,$.shapeFlag&=-513}function getInnerChild($){return $.shapeFlag&128?$.ssContent:$}function injectHook($,z,oe=currentInstance,ae=!1){if(oe){const le=oe[$]||(oe[$]=[]),ue=z.__weh||(z.__weh=(...pe)=>{if(oe.isUnmounted)return;pauseTracking(),setCurrentInstance(oe);const _e=callWithAsyncErrorHandling(z,oe,$,pe);return unsetCurrentInstance(),resetTracking(),_e});return ae?le.unshift(ue):le.push(ue),ue}}const createHook=$=>(z,oe=currentInstance)=>(!isInSSRComponentSetup||$==="sp")&&injectHook($,(...ae)=>z(...ae),oe),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($,z=currentInstance){injectHook("ec",$,z)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent($,z){return resolveAsset(COMPONENTS,$,!0,z)||$}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent($){return isString$7($)?resolveAsset(COMPONENTS,$,!1)||$:$||NULL_DYNAMIC_COMPONENT}function resolveDirective($){return resolveAsset(DIRECTIVES,$)}function resolveAsset($,z,oe=!0,ae=!1){const le=currentRenderingInstance||currentInstance;if(le){const ue=le.type;if($===COMPONENTS){const _e=getComponentName(ue,!1);if(_e&&(_e===z||_e===camelize(z)||_e===capitalize$2(camelize(z))))return ue}const pe=resolve(le[$]||ue[$],z)||resolve(le.appContext[$],z);return!pe&&ae?ue:pe}}function resolve($,z){return $&&($[z]||$[camelize(z)]||$[capitalize$2(camelize(z))])}function renderList($,z,oe,ae){let le;const ue=oe&&oe[ae];if(isArray$c($)||isString$7($)){le=new Array($.length);for(let pe=0,_e=$.length;pe<_e;pe++)le[pe]=z($[pe],pe,void 0,ue&&ue[pe])}else if(typeof $=="number"){le=new Array($);for(let pe=0;pe<$;pe++)le[pe]=z(pe+1,pe,void 0,ue&&ue[pe])}else if(isObject$8($))if($[Symbol.iterator])le=Array.from($,(pe,_e)=>z(pe,_e,void 0,ue&&ue[_e]));else{const pe=Object.keys($);le=new Array(pe.length);for(let _e=0,Ce=pe.length;_e<Ce;_e++){const $e=pe[_e];le[_e]=z($[$e],$e,_e,ue&&ue[_e])}}else le=[];return oe&&(oe[ae]=le),le}function createSlots($,z){for(let oe=0;oe<z.length;oe++){const ae=z[oe];if(isArray$c(ae))for(let le=0;le<ae.length;le++)$[ae[le].name]=ae[le].fn;else ae&&($[ae.name]=ae.key?(...le)=>{const ue=ae.fn(...le);return ue&&(ue.key=ae.key),ue}:ae.fn)}return $}function renderSlot($,z,oe={},ae,le){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return z!=="default"&&(oe.name=z),createVNode("slot",oe,ae&&ae());let ue=$[z];ue&&ue._c&&(ue._d=!1),openBlock();const pe=ue&&ensureValidVNode(ue(oe)),_e=createBlock(Fragment,{key:oe.key||pe&&pe.key||`_${z}`},pe||(ae?ae():[]),pe&&$._===1?64:-2);return!le&&_e.scopeId&&(_e.slotScopeIds=[_e.scopeId+"-s"]),ue&&ue._c&&(ue._d=!0),_e}function ensureValidVNode($){return $.some(z=>isVNode$1(z)?!(z.type===Comment||z.type===Fragment&&!ensureValidVNode(z.children)):!0)?$:null}function toHandlers($,z){const oe={};for(const ae in $)oe[z&&/[A-Z]/.test(ae)?`on:${ae}`:toHandlerKey(ae)]=$[ae];return oe}const getPublicInstance=$=>$?isStatefulComponent($)?getExposeProxy($)||$.proxy:getPublicInstance($.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:$=>$,$el:$=>$.vnode.el,$data:$=>$.data,$props:$=>$.props,$attrs:$=>$.attrs,$slots:$=>$.slots,$refs:$=>$.refs,$parent:$=>getPublicInstance($.parent),$root:$=>getPublicInstance($.root),$emit:$=>$.emit,$options:$=>resolveMergedOptions($),$forceUpdate:$=>$.f||($.f=()=>queueJob($.update)),$nextTick:$=>$.n||($.n=nextTick.bind($.proxy)),$watch:$=>instanceWatch.bind($)}),hasSetupBinding=($,z)=>$!==EMPTY_OBJ$1&&!$.__isScriptSetup&&hasOwn$4($,z),PublicInstanceProxyHandlers={get({_:$},z){const{ctx:oe,setupState:ae,data:le,props:ue,accessCache:pe,type:_e,appContext:Ce}=$;let $e;if(z[0]!=="$"){const ze=pe[z];if(ze!==void 0)switch(ze){case 1:return ae[z];case 2:return le[z];case 4:return oe[z];case 3:return ue[z]}else{if(hasSetupBinding(ae,z))return pe[z]=1,ae[z];if(le!==EMPTY_OBJ$1&&hasOwn$4(le,z))return pe[z]=2,le[z];if(($e=$.propsOptions[0])&&hasOwn$4($e,z))return pe[z]=3,ue[z];if(oe!==EMPTY_OBJ$1&&hasOwn$4(oe,z))return pe[z]=4,oe[z];shouldCacheAccess&&(pe[z]=0)}}const xe=publicPropertiesMap[z];let Ie,Fe;if(xe)return z==="$attrs"&&track($,"get",z),xe($);if((Ie=_e.__cssModules)&&(Ie=Ie[z]))return Ie;if(oe!==EMPTY_OBJ$1&&hasOwn$4(oe,z))return pe[z]=4,oe[z];if(Fe=Ce.config.globalProperties,hasOwn$4(Fe,z))return Fe[z]},set({_:$},z,oe){const{data:ae,setupState:le,ctx:ue}=$;return hasSetupBinding(le,z)?(le[z]=oe,!0):ae!==EMPTY_OBJ$1&&hasOwn$4(ae,z)?(ae[z]=oe,!0):hasOwn$4($.props,z)||z[0]==="$"&&z.slice(1)in $?!1:(ue[z]=oe,!0)},has({_:{data:$,setupState:z,accessCache:oe,ctx:ae,appContext:le,propsOptions:ue}},pe){let _e;return!!oe[pe]||$!==EMPTY_OBJ$1&&hasOwn$4($,pe)||hasSetupBinding(z,pe)||(_e=ue[0])&&hasOwn$4(_e,pe)||hasOwn$4(ae,pe)||hasOwn$4(publicPropertiesMap,pe)||hasOwn$4(le.config.globalProperties,pe)},defineProperty($,z,oe){return oe.get!=null?$._.accessCache[z]=0:hasOwn$4(oe,"value")&&this.set($,z,oe.value,null),Reflect.defineProperty($,z,oe)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get($,z){if(z!==Symbol.unscopables)return PublicInstanceProxyHandlers.get($,z,$)},has($,z){return z[0]!=="_"&&!isGloballyWhitelisted(z)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose($){}function defineOptions($){}function defineSlots(){return null}function defineModel(){}function withDefaults($,z){return null}function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function useModel($,z,oe){const ae=getCurrentInstance();if(oe&&oe.local){const le=ref($[z]);return watch(()=>$[z],ue=>le.value=ue),watch(le,ue=>{ue!==$[z]&&ae.emit(`update:${z}`,ue)}),le}else return{__v_isRef:!0,get value(){return $[z]},set value(le){ae.emit(`update:${z}`,le)}}}function getContext(){const $=getCurrentInstance();return $.setupContext||($.setupContext=createSetupContext($))}function normalizePropsOrEmits($){return isArray$c($)?$.reduce((z,oe)=>(z[oe]=null,z),{}):$}function mergeDefaults($,z){const oe=normalizePropsOrEmits($);for(const ae in z){if(ae.startsWith("__skip"))continue;let le=oe[ae];le?isArray$c(le)||isFunction$5(le)?le=oe[ae]={type:le,default:z[ae]}:le.default=z[ae]:le===null&&(le=oe[ae]={default:z[ae]}),le&&z[`__skip_${ae}`]&&(le.skipFactory=!0)}return oe}function mergeModels($,z){return!$||!z?$||z:isArray$c($)&&isArray$c(z)?$.concat(z):extend$2({},normalizePropsOrEmits($),normalizePropsOrEmits(z))}function createPropsRestProxy($,z){const oe={};for(const ae in $)z.includes(ae)||Object.defineProperty(oe,ae,{enumerable:!0,get:()=>$[ae]});return oe}function withAsyncContext($){const z=getCurrentInstance();let oe=$();return unsetCurrentInstance(),isPromise(oe)&&(oe=oe.catch(ae=>{throw setCurrentInstance(z),ae})),[oe,()=>setCurrentInstance(z)]}let shouldCacheAccess=!0;function applyOptions($){const z=resolveMergedOptions($),oe=$.proxy,ae=$.ctx;shouldCacheAccess=!1,z.beforeCreate&&callHook$1(z.beforeCreate,$,"bc");const{data:le,computed:ue,methods:pe,watch:_e,provide:Ce,inject:$e,created:xe,beforeMount:Ie,mounted:Fe,beforeUpdate:ze,updated:Ue,activated:qe,deactivated:At,beforeDestroy:Lt,beforeUnmount:hn,destroyed:vn,unmounted:_n,render:bn,renderTracked:Sn,renderTriggered:Cn,errorCaptured:En,serverPrefetch:$n,expose:wn,inheritAttrs:Tn,components:xn,directives:kn,filters:Nn}=z;if($e&&resolveInjections($e,ae,null),pe)for(const In in pe){const Ln=pe[In];isFunction$5(Ln)&&(ae[In]=Ln.bind(oe))}if(le){const In=le.call(oe,oe);isObject$8(In)&&($.data=reactive(In))}if(shouldCacheAccess=!0,ue)for(const In in ue){const Ln=ue[In],Mn=isFunction$5(Ln)?Ln.bind(oe,oe):isFunction$5(Ln.get)?Ln.get.bind(oe,oe):NOOP,Vn=!isFunction$5(Ln)&&isFunction$5(Ln.set)?Ln.set.bind(oe):NOOP,Yn=computed({get:Mn,set:Vn});Object.defineProperty(ae,In,{enumerable:!0,configurable:!0,get:()=>Yn.value,set:Fn=>Yn.value=Fn})}if(_e)for(const In in _e)createWatcher(_e[In],ae,oe,In);if(Ce){const In=isFunction$5(Ce)?Ce.call(oe):Ce;Reflect.ownKeys(In).forEach(Ln=>{provide(Ln,In[Ln])})}xe&&callHook$1(xe,$,"c");function Dn(In,Ln){isArray$c(Ln)?Ln.forEach(Mn=>In(Mn.bind(oe))):Ln&&In(Ln.bind(oe))}if(Dn(onBeforeMount,Ie),Dn(onMounted,Fe),Dn(onBeforeUpdate,ze),Dn(onUpdated,Ue),Dn(onActivated,qe),Dn(onDeactivated,At),Dn(onErrorCaptured,En),Dn(onRenderTracked,Sn),Dn(onRenderTriggered,Cn),Dn(onBeforeUnmount,hn),Dn(onUnmounted,_n),Dn(onServerPrefetch,$n),isArray$c(wn))if(wn.length){const In=$.exposed||($.exposed={});wn.forEach(Ln=>{Object.defineProperty(In,Ln,{get:()=>oe[Ln],set:Mn=>oe[Ln]=Mn})})}else $.exposed||($.exposed={});bn&&$.render===NOOP&&($.render=bn),Tn!=null&&($.inheritAttrs=Tn),xn&&($.components=xn),kn&&($.directives=kn)}function resolveInjections($,z,oe=NOOP){isArray$c($)&&($=normalizeInject($));for(const ae in $){const le=$[ae];let ue;isObject$8(le)?"default"in le?ue=inject(le.from||ae,le.default,!0):ue=inject(le.from||ae):ue=inject(le),isRef(ue)?Object.defineProperty(z,ae,{enumerable:!0,configurable:!0,get:()=>ue.value,set:pe=>ue.value=pe}):z[ae]=ue}}function callHook$1($,z,oe){callWithAsyncErrorHandling(isArray$c($)?$.map(ae=>ae.bind(z.proxy)):$.bind(z.proxy),z,oe)}function createWatcher($,z,oe,ae){const le=ae.includes(".")?createPathGetter(oe,ae):()=>oe[ae];if(isString$7($)){const ue=z[$];isFunction$5(ue)&&watch(le,ue)}else if(isFunction$5($))watch(le,$.bind(oe));else if(isObject$8($))if(isArray$c($))$.forEach(ue=>createWatcher(ue,z,oe,ae));else{const ue=isFunction$5($.handler)?$.handler.bind(oe):z[$.handler];isFunction$5(ue)&&watch(le,ue,$)}}function resolveMergedOptions($){const z=$.type,{mixins:oe,extends:ae}=z,{mixins:le,optionsCache:ue,config:{optionMergeStrategies:pe}}=$.appContext,_e=ue.get(z);let Ce;return _e?Ce=_e:!le.length&&!oe&&!ae?Ce=z:(Ce={},le.length&&le.forEach($e=>mergeOptions$2(Ce,$e,pe,!0)),mergeOptions$2(Ce,z,pe)),isObject$8(z)&&ue.set(z,Ce),Ce}function mergeOptions$2($,z,oe,ae=!1){const{mixins:le,extends:ue}=z;ue&&mergeOptions$2($,ue,oe,!0),le&&le.forEach(pe=>mergeOptions$2($,pe,oe,!0));for(const pe in z)if(!(ae&&pe==="expose")){const _e=internalOptionMergeStrats[pe]||oe&&oe[pe];$[pe]=_e?_e($[pe],z[pe]):z[pe]}return $}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($,z){return z?$?function(){return extend$2(isFunction$5($)?$.call(this,this):$,isFunction$5(z)?z.call(this,this):z)}:z:$}function mergeInject($,z){return mergeObjectOptions(normalizeInject($),normalizeInject(z))}function normalizeInject($){if(isArray$c($)){const z={};for(let oe=0;oe<$.length;oe++)z[$[oe]]=$[oe];return z}return $}function mergeAsArray($,z){return $?[...new Set([].concat($,z))]:z}function mergeObjectOptions($,z){return $?extend$2(Object.create(null),$,z):z}function mergeEmitsOrPropsOptions($,z){return $?isArray$c($)&&isArray$c(z)?[...new Set([...$,...z])]:extend$2(Object.create(null),normalizePropsOrEmits($),normalizePropsOrEmits(z??{})):z}function mergeWatchOptions($,z){if(!$)return z;if(!z)return $;const oe=extend$2(Object.create(null),$);for(const ae in z)oe[ae]=mergeAsArray($[ae],z[ae]);return oe}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($,z){return function(ae,le=null){isFunction$5(ae)||(ae=extend$2({},ae)),le!=null&&!isObject$8(le)&&(le=null);const ue=createAppContext(),pe=new Set;let _e=!1;const Ce=ue.app={_uid:uid$1++,_component:ae,_props:le,_container:null,_context:ue,_instance:null,version:version$3,get config(){return ue.config},set config($e){},use($e,...xe){return pe.has($e)||($e&&isFunction$5($e.install)?(pe.add($e),$e.install(Ce,...xe)):isFunction$5($e)&&(pe.add($e),$e(Ce,...xe))),Ce},mixin($e){return ue.mixins.includes($e)||ue.mixins.push($e),Ce},component($e,xe){return xe?(ue.components[$e]=xe,Ce):ue.components[$e]},directive($e,xe){return xe?(ue.directives[$e]=xe,Ce):ue.directives[$e]},mount($e,xe,Ie){if(!_e){const Fe=createVNode(ae,le);return Fe.appContext=ue,xe&&z?z(Fe,$e):$(Fe,$e,Ie),_e=!0,Ce._container=$e,$e.__vue_app__=Ce,getExposeProxy(Fe.component)||Fe.component.proxy}},unmount(){_e&&($(null,Ce._container),delete Ce._container.__vue_app__)},provide($e,xe){return ue.provides[$e]=xe,Ce},runWithContext($e){currentApp=Ce;try{return $e()}finally{currentApp=null}}};return Ce}}let currentApp=null;function provide($,z){if(currentInstance){let oe=currentInstance.provides;const ae=currentInstance.parent&¤tInstance.parent.provides;ae===oe&&(oe=currentInstance.provides=Object.create(ae)),oe[$]=z}}function inject($,z,oe=!1){const ae=currentInstance||currentRenderingInstance;if(ae||currentApp){const le=ae?ae.parent==null?ae.vnode.appContext&&ae.vnode.appContext.provides:ae.parent.provides:currentApp._context.provides;if(le&&$ in le)return le[$];if(arguments.length>1)return oe&&isFunction$5(z)?z.call(ae&&ae.proxy):z}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps$1($,z,oe,ae=!1){const le={},ue={};def(ue,InternalObjectKey,1),$.propsDefaults=Object.create(null),setFullProps($,z,le,ue);for(const pe in $.propsOptions[0])pe in le||(le[pe]=void 0);oe?$.props=ae?le:shallowReactive(le):$.type.props?$.props=le:$.props=ue,$.attrs=ue}function updateProps$2($,z,oe,ae){const{props:le,attrs:ue,vnode:{patchFlag:pe}}=$,_e=toRaw(le),[Ce]=$.propsOptions;let $e=!1;if((ae||pe>0)&&!(pe&16)){if(pe&8){const xe=$.vnode.dynamicProps;for(let Ie=0;Ie<xe.length;Ie++){let Fe=xe[Ie];if(isEmitListener($.emitsOptions,Fe))continue;const ze=z[Fe];if(Ce)if(hasOwn$4(ue,Fe))ze!==ue[Fe]&&(ue[Fe]=ze,$e=!0);else{const Ue=camelize(Fe);le[Ue]=resolvePropValue(Ce,_e,Ue,ze,$,!1)}else ze!==ue[Fe]&&(ue[Fe]=ze,$e=!0)}}}else{setFullProps($,z,le,ue)&&($e=!0);let xe;for(const Ie in _e)(!z||!hasOwn$4(z,Ie)&&((xe=hyphenate(Ie))===Ie||!hasOwn$4(z,xe)))&&(Ce?oe&&(oe[Ie]!==void 0||oe[xe]!==void 0)&&(le[Ie]=resolvePropValue(Ce,_e,Ie,void 0,$,!0)):delete le[Ie]);if(ue!==_e)for(const Ie in ue)(!z||!hasOwn$4(z,Ie))&&(delete ue[Ie],$e=!0)}$e&&trigger$2($,"set","$attrs")}function setFullProps($,z,oe,ae){const[le,ue]=$.propsOptions;let pe=!1,_e;if(z)for(let Ce in z){if(isReservedProp(Ce))continue;const $e=z[Ce];let xe;le&&hasOwn$4(le,xe=camelize(Ce))?!ue||!ue.includes(xe)?oe[xe]=$e:(_e||(_e={}))[xe]=$e:isEmitListener($.emitsOptions,Ce)||(!(Ce in ae)||$e!==ae[Ce])&&(ae[Ce]=$e,pe=!0)}if(ue){const Ce=toRaw(oe),$e=_e||EMPTY_OBJ$1;for(let xe=0;xe<ue.length;xe++){const Ie=ue[xe];oe[Ie]=resolvePropValue(le,Ce,Ie,$e[Ie],$,!hasOwn$4($e,Ie))}}return pe}function resolvePropValue($,z,oe,ae,le,ue){const pe=$[oe];if(pe!=null){const _e=hasOwn$4(pe,"default");if(_e&&ae===void 0){const Ce=pe.default;if(pe.type!==Function&&!pe.skipFactory&&isFunction$5(Ce)){const{propsDefaults:$e}=le;oe in $e?ae=$e[oe]:(setCurrentInstance(le),ae=$e[oe]=Ce.call(null,z),unsetCurrentInstance())}else ae=Ce}pe[0]&&(ue&&!_e?ae=!1:pe[1]&&(ae===""||ae===hyphenate(oe))&&(ae=!0))}return ae}function normalizePropsOptions($,z,oe=!1){const ae=z.propsCache,le=ae.get($);if(le)return le;const ue=$.props,pe={},_e=[];let Ce=!1;if(!isFunction$5($)){const xe=Ie=>{Ce=!0;const[Fe,ze]=normalizePropsOptions(Ie,z,!0);extend$2(pe,Fe),ze&&_e.push(...ze)};!oe&&z.mixins.length&&z.mixins.forEach(xe),$.extends&&xe($.extends),$.mixins&&$.mixins.forEach(xe)}if(!ue&&!Ce)return isObject$8($)&&ae.set($,EMPTY_ARR),EMPTY_ARR;if(isArray$c(ue))for(let xe=0;xe<ue.length;xe++){const Ie=camelize(ue[xe]);validatePropName(Ie)&&(pe[Ie]=EMPTY_OBJ$1)}else if(ue)for(const xe in ue){const Ie=camelize(xe);if(validatePropName(Ie)){const Fe=ue[xe],ze=pe[Ie]=isArray$c(Fe)||isFunction$5(Fe)?{type:Fe}:extend$2({},Fe);if(ze){const Ue=getTypeIndex(Boolean,ze.type),qe=getTypeIndex(String,ze.type);ze[0]=Ue>-1,ze[1]=qe<0||Ue<qe,(Ue>-1||hasOwn$4(ze,"default"))&&_e.push(Ie)}}}const $e=[pe,_e];return isObject$8($)&&ae.set($,$e),$e}function validatePropName($){return $[0]!=="$"}function getType($){const z=$&&$.toString().match(/^\s*(function|class) (\w+)/);return z?z[2]:$===null?"null":""}function isSameType($,z){return getType($)===getType(z)}function getTypeIndex($,z){return isArray$c(z)?z.findIndex(oe=>isSameType(oe,$)):isFunction$5(z)&&isSameType(z,$)?0:-1}const isInternalKey=$=>$[0]==="_"||$==="$stable",normalizeSlotValue=$=>isArray$c($)?$.map(normalizeVNode):[normalizeVNode($)],normalizeSlot$1=($,z,oe)=>{if(z._n)return z;const ae=withCtx((...le)=>normalizeSlotValue(z(...le)),oe);return ae._c=!1,ae},normalizeObjectSlots=($,z,oe)=>{const ae=$._ctx;for(const le in $){if(isInternalKey(le))continue;const ue=$[le];if(isFunction$5(ue))z[le]=normalizeSlot$1(le,ue,ae);else if(ue!=null){const pe=normalizeSlotValue(ue);z[le]=()=>pe}}},normalizeVNodeSlots=($,z)=>{const oe=normalizeSlotValue(z);$.slots.default=()=>oe},initSlots=($,z)=>{if($.vnode.shapeFlag&32){const oe=z._;oe?($.slots=toRaw(z),def(z,"_",oe)):normalizeObjectSlots(z,$.slots={})}else $.slots={},z&&normalizeVNodeSlots($,z);def($.slots,InternalObjectKey,1)},updateSlots=($,z,oe)=>{const{vnode:ae,slots:le}=$;let ue=!0,pe=EMPTY_OBJ$1;if(ae.shapeFlag&32){const _e=z._;_e?oe&&_e===1?ue=!1:(extend$2(le,z),!oe&&_e===1&&delete le._):(ue=!z.$stable,normalizeObjectSlots(z,le)),pe=z}else z&&(normalizeVNodeSlots($,z),pe={default:1});if(ue)for(const _e in le)!isInternalKey(_e)&&!(_e in pe)&&delete le[_e]};function setRef($,z,oe,ae,le=!1){if(isArray$c($)){$.forEach((Fe,ze)=>setRef(Fe,z&&(isArray$c(z)?z[ze]:z),oe,ae,le));return}if(isAsyncWrapper(ae)&&!le)return;const ue=ae.shapeFlag&4?getExposeProxy(ae.component)||ae.component.proxy:ae.el,pe=le?null:ue,{i:_e,r:Ce}=$,$e=z&&z.r,xe=_e.refs===EMPTY_OBJ$1?_e.refs={}:_e.refs,Ie=_e.setupState;if($e!=null&&$e!==Ce&&(isString$7($e)?(xe[$e]=null,hasOwn$4(Ie,$e)&&(Ie[$e]=null)):isRef($e)&&($e.value=null)),isFunction$5(Ce))callWithErrorHandling(Ce,_e,12,[pe,xe]);else{const Fe=isString$7(Ce),ze=isRef(Ce);if(Fe||ze){const Ue=()=>{if($.f){const qe=Fe?hasOwn$4(Ie,Ce)?Ie[Ce]:xe[Ce]:Ce.value;le?isArray$c(qe)&&remove(qe,ue):isArray$c(qe)?qe.includes(ue)||qe.push(ue):Fe?(xe[Ce]=[ue],hasOwn$4(Ie,Ce)&&(Ie[Ce]=xe[Ce])):(Ce.value=[ue],$.k&&(xe[$.k]=Ce.value))}else Fe?(xe[Ce]=pe,hasOwn$4(Ie,Ce)&&(Ie[Ce]=pe)):ze&&(Ce.value=pe,$.k&&(xe[$.k]=pe))};pe?(Ue.id=-1,queuePostRenderEffect(Ue,oe)):Ue()}}}let hasMismatch=!1;const isSVGContainer=$=>/svg/.test($.namespaceURI)&&$.tagName!=="foreignObject",isComment$1=$=>$.nodeType===8;function createHydrationFunctions($){const{mt:z,p:oe,o:{patchProp:ae,createText:le,nextSibling:ue,parentNode:pe,remove:_e,insert:Ce,createComment:$e}}=$,xe=(Lt,hn)=>{if(!hn.hasChildNodes()){oe(null,Lt,hn),flushPostFlushCbs(),hn._vnode=Lt;return}hasMismatch=!1,Ie(hn.firstChild,Lt,null,null,null),flushPostFlushCbs(),hn._vnode=Lt,hasMismatch&&console.error("Hydration completed but contains mismatches.")},Ie=(Lt,hn,vn,_n,bn,Sn=!1)=>{const Cn=isComment$1(Lt)&&Lt.data==="[",En=()=>qe(Lt,hn,vn,_n,bn,Cn),{type:$n,ref:wn,shapeFlag:Tn,patchFlag:xn}=hn;let kn=Lt.nodeType;hn.el=Lt,xn===-2&&(Sn=!1,hn.dynamicChildren=null);let Nn=null;switch($n){case Text$1:kn!==3?hn.children===""?(Ce(hn.el=le(""),pe(Lt),Lt),Nn=Lt):Nn=En():(Lt.data!==hn.children&&(hasMismatch=!0,Lt.data=hn.children),Nn=ue(Lt));break;case Comment:kn!==8||Cn?Nn=En():Nn=ue(Lt);break;case Static:if(Cn&&(Lt=ue(Lt),kn=Lt.nodeType),kn===1||kn===3){Nn=Lt;const Bn=!hn.children.length;for(let Dn=0;Dn<hn.staticCount;Dn++)Bn&&(hn.children+=Nn.nodeType===1?Nn.outerHTML:Nn.data),Dn===hn.staticCount-1&&(hn.anchor=Nn),Nn=ue(Nn);return Cn?ue(Nn):Nn}else En();break;case Fragment:Cn?Nn=Ue(Lt,hn,vn,_n,bn,Sn):Nn=En();break;default:if(Tn&1)kn!==1||hn.type.toLowerCase()!==Lt.tagName.toLowerCase()?Nn=En():Nn=Fe(Lt,hn,vn,_n,bn,Sn);else if(Tn&6){hn.slotScopeIds=bn;const Bn=pe(Lt);if(z(hn,Bn,null,vn,_n,isSVGContainer(Bn),Sn),Nn=Cn?At(Lt):ue(Lt),Nn&&isComment$1(Nn)&&Nn.data==="teleport end"&&(Nn=ue(Nn)),isAsyncWrapper(hn)){let Dn;Cn?(Dn=createVNode(Fragment),Dn.anchor=Nn?Nn.previousSibling:Bn.lastChild):Dn=Lt.nodeType===3?createTextVNode(""):createVNode("div"),Dn.el=Lt,hn.component.subTree=Dn}}else Tn&64?kn!==8?Nn=En():Nn=hn.type.hydrate(Lt,hn,vn,_n,bn,Sn,$,ze):Tn&128&&(Nn=hn.type.hydrate(Lt,hn,vn,_n,isSVGContainer(pe(Lt)),bn,Sn,$,Ie))}return wn!=null&&setRef(wn,null,_n,hn),Nn},Fe=(Lt,hn,vn,_n,bn,Sn)=>{Sn=Sn||!!hn.dynamicChildren;const{type:Cn,props:En,patchFlag:$n,shapeFlag:wn,dirs:Tn}=hn,xn=Cn==="input"&&Tn||Cn==="option";if(xn||$n!==-1){if(Tn&&invokeDirectiveHook(hn,null,vn,"created"),En)if(xn||!Sn||$n&48)for(const Nn in En)(xn&&Nn.endsWith("value")||isOn(Nn)&&!isReservedProp(Nn))&&ae(Lt,Nn,null,En[Nn],!1,void 0,vn);else En.onClick&&ae(Lt,"onClick",null,En.onClick,!1,void 0,vn);let kn;if((kn=En&&En.onVnodeBeforeMount)&&invokeVNodeHook(kn,vn,hn),Tn&&invokeDirectiveHook(hn,null,vn,"beforeMount"),((kn=En&&En.onVnodeMounted)||Tn)&&queueEffectWithSuspense(()=>{kn&&invokeVNodeHook(kn,vn,hn),Tn&&invokeDirectiveHook(hn,null,vn,"mounted")},_n),wn&16&&!(En&&(En.innerHTML||En.textContent))){let Nn=ze(Lt.firstChild,hn,Lt,vn,_n,bn,Sn);for(;Nn;){hasMismatch=!0;const Bn=Nn;Nn=Nn.nextSibling,_e(Bn)}}else wn&8&&Lt.textContent!==hn.children&&(hasMismatch=!0,Lt.textContent=hn.children)}return Lt.nextSibling},ze=(Lt,hn,vn,_n,bn,Sn,Cn)=>{Cn=Cn||!!hn.dynamicChildren;const En=hn.children,$n=En.length;for(let wn=0;wn<$n;wn++){const Tn=Cn?En[wn]:En[wn]=normalizeVNode(En[wn]);if(Lt)Lt=Ie(Lt,Tn,_n,bn,Sn,Cn);else{if(Tn.type===Text$1&&!Tn.children)continue;hasMismatch=!0,oe(null,Tn,vn,null,_n,bn,isSVGContainer(vn),Sn)}}return Lt},Ue=(Lt,hn,vn,_n,bn,Sn)=>{const{slotScopeIds:Cn}=hn;Cn&&(bn=bn?bn.concat(Cn):Cn);const En=pe(Lt),$n=ze(ue(Lt),hn,En,vn,_n,bn,Sn);return $n&&isComment$1($n)&&$n.data==="]"?ue(hn.anchor=$n):(hasMismatch=!0,Ce(hn.anchor=$e("]"),En,$n),$n)},qe=(Lt,hn,vn,_n,bn,Sn)=>{if(hasMismatch=!0,hn.el=null,Sn){const $n=At(Lt);for(;;){const wn=ue(Lt);if(wn&&wn!==$n)_e(wn);else break}}const Cn=ue(Lt),En=pe(Lt);return _e(Lt),oe(null,hn,En,Cn,vn,_n,isSVGContainer(En),bn),Cn},At=Lt=>{let hn=0;for(;Lt;)if(Lt=ue(Lt),Lt&&isComment$1(Lt)&&(Lt.data==="["&&hn++,Lt.data==="]")){if(hn===0)return ue(Lt);hn--}return Lt};return[xe,Ie]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer($){return baseCreateRenderer($)}function createHydrationRenderer($){return baseCreateRenderer($,createHydrationFunctions)}function baseCreateRenderer($,z){const oe=getGlobalThis();oe.__VUE__=!0;const{insert:ae,remove:le,patchProp:ue,createElement:pe,createText:_e,createComment:Ce,setText:$e,setElementText:xe,parentNode:Ie,nextSibling:Fe,setScopeId:ze=NOOP,insertStaticContent:Ue}=$,qe=(jn,Zn,nr,hr=null,gr=null,or=null,wr=!1,mr=null,Tr=!!Zn.dynamicChildren)=>{if(jn===Zn)return;jn&&!isSameVNodeType(jn,Zn)&&(hr=qn(jn),Fn(jn,gr,or,!0),jn=null),Zn.patchFlag===-2&&(Tr=!1,Zn.dynamicChildren=null);const{type:dr,ref:ir,shapeFlag:ur}=Zn;switch(dr){case Text$1:At(jn,Zn,nr,hr);break;case Comment:Lt(jn,Zn,nr,hr);break;case Static:jn==null&&hn(Zn,nr,hr,wr);break;case Fragment:xn(jn,Zn,nr,hr,gr,or,wr,mr,Tr);break;default:ur&1?bn(jn,Zn,nr,hr,gr,or,wr,mr,Tr):ur&6?kn(jn,Zn,nr,hr,gr,or,wr,mr,Tr):(ur&64||ur&128)&&dr.process(jn,Zn,nr,hr,gr,or,wr,mr,Tr,Wn)}ir!=null&&gr&&setRef(ir,jn&&jn.ref,or,Zn||jn,!Zn)},At=(jn,Zn,nr,hr)=>{if(jn==null)ae(Zn.el=_e(Zn.children),nr,hr);else{const gr=Zn.el=jn.el;Zn.children!==jn.children&&$e(gr,Zn.children)}},Lt=(jn,Zn,nr,hr)=>{jn==null?ae(Zn.el=Ce(Zn.children||""),nr,hr):Zn.el=jn.el},hn=(jn,Zn,nr,hr)=>{[jn.el,jn.anchor]=Ue(jn.children,Zn,nr,hr,jn.el,jn.anchor)},vn=({el:jn,anchor:Zn},nr,hr)=>{let gr;for(;jn&&jn!==Zn;)gr=Fe(jn),ae(jn,nr,hr),jn=gr;ae(Zn,nr,hr)},_n=({el:jn,anchor:Zn})=>{let nr;for(;jn&&jn!==Zn;)nr=Fe(jn),le(jn),jn=nr;le(Zn)},bn=(jn,Zn,nr,hr,gr,or,wr,mr,Tr)=>{wr=wr||Zn.type==="svg",jn==null?Sn(Zn,nr,hr,gr,or,wr,mr,Tr):$n(jn,Zn,gr,or,wr,mr,Tr)},Sn=(jn,Zn,nr,hr,gr,or,wr,mr)=>{let Tr,dr;const{type:ir,props:ur,shapeFlag:fr,transition:kr,dirs:Dr}=jn;if(Tr=jn.el=pe(jn.type,or,ur&&ur.is,ur),fr&8?xe(Tr,jn.children):fr&16&&En(jn.children,Tr,null,hr,gr,or&&ir!=="foreignObject",wr,mr),Dr&&invokeDirectiveHook(jn,null,hr,"created"),Cn(Tr,jn,jn.scopeId,wr,hr),ur){for(const Mr in ur)Mr!=="value"&&!isReservedProp(Mr)&&ue(Tr,Mr,null,ur[Mr],or,jn.children,hr,gr,ar);"value"in ur&&ue(Tr,"value",null,ur.value),(dr=ur.onVnodeBeforeMount)&&invokeVNodeHook(dr,hr,jn)}Dr&&invokeDirectiveHook(jn,null,hr,"beforeMount");const Lr=(!gr||gr&&!gr.pendingBranch)&&kr&&!kr.persisted;Lr&&kr.beforeEnter(Tr),ae(Tr,Zn,nr),((dr=ur&&ur.onVnodeMounted)||Lr||Dr)&&queuePostRenderEffect(()=>{dr&&invokeVNodeHook(dr,hr,jn),Lr&&kr.enter(Tr),Dr&&invokeDirectiveHook(jn,null,hr,"mounted")},gr)},Cn=(jn,Zn,nr,hr,gr)=>{if(nr&&ze(jn,nr),hr)for(let or=0;or<hr.length;or++)ze(jn,hr[or]);if(gr){let or=gr.subTree;if(Zn===or){const wr=gr.vnode;Cn(jn,wr,wr.scopeId,wr.slotScopeIds,gr.parent)}}},En=(jn,Zn,nr,hr,gr,or,wr,mr,Tr=0)=>{for(let dr=Tr;dr<jn.length;dr++){const ir=jn[dr]=mr?cloneIfMounted(jn[dr]):normalizeVNode(jn[dr]);qe(null,ir,Zn,nr,hr,gr,or,wr,mr)}},$n=(jn,Zn,nr,hr,gr,or,wr)=>{const mr=Zn.el=jn.el;let{patchFlag:Tr,dynamicChildren:dr,dirs:ir}=Zn;Tr|=jn.patchFlag&16;const ur=jn.props||EMPTY_OBJ$1,fr=Zn.props||EMPTY_OBJ$1;let kr;nr&&toggleRecurse(nr,!1),(kr=fr.onVnodeBeforeUpdate)&&invokeVNodeHook(kr,nr,Zn,jn),ir&&invokeDirectiveHook(Zn,jn,nr,"beforeUpdate"),nr&&toggleRecurse(nr,!0);const Dr=gr&&Zn.type!=="foreignObject";if(dr?wn(jn.dynamicChildren,dr,mr,nr,hr,Dr,or):wr||Ln(jn,Zn,mr,null,nr,hr,Dr,or,!1),Tr>0){if(Tr&16)Tn(mr,Zn,ur,fr,nr,hr,gr);else if(Tr&2&&ur.class!==fr.class&&ue(mr,"class",null,fr.class,gr),Tr&4&&ue(mr,"style",ur.style,fr.style,gr),Tr&8){const Lr=Zn.dynamicProps;for(let Mr=0;Mr<Lr.length;Mr++){const br=Lr[Mr],Cr=ur[br],lr=fr[br];(lr!==Cr||br==="value")&&ue(mr,br,Cr,lr,gr,jn.children,nr,hr,ar)}}Tr&1&&jn.children!==Zn.children&&xe(mr,Zn.children)}else!wr&&dr==null&&Tn(mr,Zn,ur,fr,nr,hr,gr);((kr=fr.onVnodeUpdated)||ir)&&queuePostRenderEffect(()=>{kr&&invokeVNodeHook(kr,nr,Zn,jn),ir&&invokeDirectiveHook(Zn,jn,nr,"updated")},hr)},wn=(jn,Zn,nr,hr,gr,or,wr)=>{for(let mr=0;mr<Zn.length;mr++){const Tr=jn[mr],dr=Zn[mr],ir=Tr.el&&(Tr.type===Fragment||!isSameVNodeType(Tr,dr)||Tr.shapeFlag&70)?Ie(Tr.el):nr;qe(Tr,dr,ir,null,hr,gr,or,wr,!0)}},Tn=(jn,Zn,nr,hr,gr,or,wr)=>{if(nr!==hr){if(nr!==EMPTY_OBJ$1)for(const mr in nr)!isReservedProp(mr)&&!(mr in hr)&&ue(jn,mr,nr[mr],null,wr,Zn.children,gr,or,ar);for(const mr in hr){if(isReservedProp(mr))continue;const Tr=hr[mr],dr=nr[mr];Tr!==dr&&mr!=="value"&&ue(jn,mr,dr,Tr,wr,Zn.children,gr,or,ar)}"value"in hr&&ue(jn,"value",nr.value,hr.value)}},xn=(jn,Zn,nr,hr,gr,or,wr,mr,Tr)=>{const dr=Zn.el=jn?jn.el:_e(""),ir=Zn.anchor=jn?jn.anchor:_e("");let{patchFlag:ur,dynamicChildren:fr,slotScopeIds:kr}=Zn;kr&&(mr=mr?mr.concat(kr):kr),jn==null?(ae(dr,nr,hr),ae(ir,nr,hr),En(Zn.children,nr,ir,gr,or,wr,mr,Tr)):ur>0&&ur&64&&fr&&jn.dynamicChildren?(wn(jn.dynamicChildren,fr,nr,gr,or,wr,mr),(Zn.key!=null||gr&&Zn===gr.subTree)&&traverseStaticChildren(jn,Zn,!0)):Ln(jn,Zn,nr,ir,gr,or,wr,mr,Tr)},kn=(jn,Zn,nr,hr,gr,or,wr,mr,Tr)=>{Zn.slotScopeIds=mr,jn==null?Zn.shapeFlag&512?gr.ctx.activate(Zn,nr,hr,wr,Tr):Nn(Zn,nr,hr,gr,or,wr,Tr):Bn(jn,Zn,Tr)},Nn=(jn,Zn,nr,hr,gr,or,wr)=>{const mr=jn.component=createComponentInstance(jn,hr,gr);if(isKeepAlive(jn)&&(mr.ctx.renderer=Wn),setupComponent(mr),mr.asyncDep){if(gr&&gr.registerDep(mr,Dn),!jn.el){const Tr=mr.subTree=createVNode(Comment);Lt(null,Tr,Zn,nr)}return}Dn(mr,jn,Zn,nr,gr,or,wr)},Bn=(jn,Zn,nr)=>{const hr=Zn.component=jn.component;if(shouldUpdateComponent(jn,Zn,nr))if(hr.asyncDep&&!hr.asyncResolved){In(hr,Zn,nr);return}else hr.next=Zn,invalidateJob(hr.update),hr.update();else Zn.el=jn.el,hr.vnode=Zn},Dn=(jn,Zn,nr,hr,gr,or,wr)=>{const mr=()=>{if(jn.isMounted){let{next:ir,bu:ur,u:fr,parent:kr,vnode:Dr}=jn,Lr=ir,Mr;toggleRecurse(jn,!1),ir?(ir.el=Dr.el,In(jn,ir,wr)):ir=Dr,ur&&invokeArrayFns(ur),(Mr=ir.props&&ir.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Mr,kr,ir,Dr),toggleRecurse(jn,!0);const br=renderComponentRoot(jn),Cr=jn.subTree;jn.subTree=br,qe(Cr,br,Ie(Cr.el),qn(Cr),jn,gr,or),ir.el=br.el,Lr===null&&updateHOCHostEl(jn,br.el),fr&&queuePostRenderEffect(fr,gr),(Mr=ir.props&&ir.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Mr,kr,ir,Dr),gr)}else{let ir;const{el:ur,props:fr}=Zn,{bm:kr,m:Dr,parent:Lr}=jn,Mr=isAsyncWrapper(Zn);if(toggleRecurse(jn,!1),kr&&invokeArrayFns(kr),!Mr&&(ir=fr&&fr.onVnodeBeforeMount)&&invokeVNodeHook(ir,Lr,Zn),toggleRecurse(jn,!0),ur&&cr){const br=()=>{jn.subTree=renderComponentRoot(jn),cr(ur,jn.subTree,jn,gr,null)};Mr?Zn.type.__asyncLoader().then(()=>!jn.isUnmounted&&br()):br()}else{const br=jn.subTree=renderComponentRoot(jn);qe(null,br,nr,hr,jn,gr,or),Zn.el=br.el}if(Dr&&queuePostRenderEffect(Dr,gr),!Mr&&(ir=fr&&fr.onVnodeMounted)){const br=Zn;queuePostRenderEffect(()=>invokeVNodeHook(ir,Lr,br),gr)}(Zn.shapeFlag&256||Lr&&isAsyncWrapper(Lr.vnode)&&Lr.vnode.shapeFlag&256)&&jn.a&&queuePostRenderEffect(jn.a,gr),jn.isMounted=!0,Zn=nr=hr=null}},Tr=jn.effect=new ReactiveEffect(mr,()=>queueJob(dr),jn.scope),dr=jn.update=()=>Tr.run();dr.id=jn.uid,toggleRecurse(jn,!0),dr()},In=(jn,Zn,nr)=>{Zn.component=jn;const hr=jn.vnode.props;jn.vnode=Zn,jn.next=null,updateProps$2(jn,Zn.props,hr,nr),updateSlots(jn,Zn.children,nr),pauseTracking(),flushPreFlushCbs(),resetTracking()},Ln=(jn,Zn,nr,hr,gr,or,wr,mr,Tr=!1)=>{const dr=jn&&jn.children,ir=jn?jn.shapeFlag:0,ur=Zn.children,{patchFlag:fr,shapeFlag:kr}=Zn;if(fr>0){if(fr&128){Vn(dr,ur,nr,hr,gr,or,wr,mr,Tr);return}else if(fr&256){Mn(dr,ur,nr,hr,gr,or,wr,mr,Tr);return}}kr&8?(ir&16&&ar(dr,gr,or),ur!==dr&&xe(nr,ur)):ir&16?kr&16?Vn(dr,ur,nr,hr,gr,or,wr,mr,Tr):ar(dr,gr,or,!0):(ir&8&&xe(nr,""),kr&16&&En(ur,nr,hr,gr,or,wr,mr,Tr))},Mn=(jn,Zn,nr,hr,gr,or,wr,mr,Tr)=>{jn=jn||EMPTY_ARR,Zn=Zn||EMPTY_ARR;const dr=jn.length,ir=Zn.length,ur=Math.min(dr,ir);let fr;for(fr=0;fr<ur;fr++){const kr=Zn[fr]=Tr?cloneIfMounted(Zn[fr]):normalizeVNode(Zn[fr]);qe(jn[fr],kr,nr,null,gr,or,wr,mr,Tr)}dr>ir?ar(jn,gr,or,!0,!1,ur):En(Zn,nr,hr,gr,or,wr,mr,Tr,ur)},Vn=(jn,Zn,nr,hr,gr,or,wr,mr,Tr)=>{let dr=0;const ir=Zn.length;let ur=jn.length-1,fr=ir-1;for(;dr<=ur&&dr<=fr;){const kr=jn[dr],Dr=Zn[dr]=Tr?cloneIfMounted(Zn[dr]):normalizeVNode(Zn[dr]);if(isSameVNodeType(kr,Dr))qe(kr,Dr,nr,null,gr,or,wr,mr,Tr);else break;dr++}for(;dr<=ur&&dr<=fr;){const kr=jn[ur],Dr=Zn[fr]=Tr?cloneIfMounted(Zn[fr]):normalizeVNode(Zn[fr]);if(isSameVNodeType(kr,Dr))qe(kr,Dr,nr,null,gr,or,wr,mr,Tr);else break;ur--,fr--}if(dr>ur){if(dr<=fr){const kr=fr+1,Dr=kr<ir?Zn[kr].el:hr;for(;dr<=fr;)qe(null,Zn[dr]=Tr?cloneIfMounted(Zn[dr]):normalizeVNode(Zn[dr]),nr,Dr,gr,or,wr,mr,Tr),dr++}}else if(dr>fr)for(;dr<=ur;)Fn(jn[dr],gr,or,!0),dr++;else{const kr=dr,Dr=dr,Lr=new Map;for(dr=Dr;dr<=fr;dr++){const Ar=Zn[dr]=Tr?cloneIfMounted(Zn[dr]):normalizeVNode(Zn[dr]);Ar.key!=null&&Lr.set(Ar.key,dr)}let Mr,br=0;const Cr=fr-Dr+1;let lr=!1,Jn=0;const rr=new Array(Cr);for(dr=0;dr<Cr;dr++)rr[dr]=0;for(dr=kr;dr<=ur;dr++){const Ar=jn[dr];if(br>=Cr){Fn(Ar,gr,or,!0);continue}let Fr;if(Ar.key!=null)Fr=Lr.get(Ar.key);else for(Mr=Dr;Mr<=fr;Mr++)if(rr[Mr-Dr]===0&&isSameVNodeType(Ar,Zn[Mr])){Fr=Mr;break}Fr===void 0?Fn(Ar,gr,or,!0):(rr[Fr-Dr]=dr+1,Fr>=Jn?Jn=Fr:lr=!0,qe(Ar,Zn[Fr],nr,null,gr,or,wr,mr,Tr),br++)}const $r=lr?getSequence(rr):EMPTY_ARR;for(Mr=$r.length-1,dr=Cr-1;dr>=0;dr--){const Ar=Dr+dr,Fr=Zn[Ar],_r=Ar+1<ir?Zn[Ar+1].el:hr;rr[dr]===0?qe(null,Fr,nr,_r,gr,or,wr,mr,Tr):lr&&(Mr<0||dr!==$r[Mr]?Yn(Fr,nr,_r,2):Mr--)}}},Yn=(jn,Zn,nr,hr,gr=null)=>{const{el:or,type:wr,transition:mr,children:Tr,shapeFlag:dr}=jn;if(dr&6){Yn(jn.component.subTree,Zn,nr,hr);return}if(dr&128){jn.suspense.move(Zn,nr,hr);return}if(dr&64){wr.move(jn,Zn,nr,Wn);return}if(wr===Fragment){ae(or,Zn,nr);for(let ur=0;ur<Tr.length;ur++)Yn(Tr[ur],Zn,nr,hr);ae(jn.anchor,Zn,nr);return}if(wr===Static){vn(jn,Zn,nr);return}if(hr!==2&&dr&1&&mr)if(hr===0)mr.beforeEnter(or),ae(or,Zn,nr),queuePostRenderEffect(()=>mr.enter(or),gr);else{const{leave:ur,delayLeave:fr,afterLeave:kr}=mr,Dr=()=>ae(or,Zn,nr),Lr=()=>{ur(or,()=>{Dr(),kr&&kr()})};fr?fr(or,Dr,Lr):Lr()}else ae(or,Zn,nr)},Fn=(jn,Zn,nr,hr=!1,gr=!1)=>{const{type:or,props:wr,ref:mr,children:Tr,dynamicChildren:dr,shapeFlag:ir,patchFlag:ur,dirs:fr}=jn;if(mr!=null&&setRef(mr,null,nr,jn,!0),ir&256){Zn.ctx.deactivate(jn);return}const kr=ir&1&&fr,Dr=!isAsyncWrapper(jn);let Lr;if(Dr&&(Lr=wr&&wr.onVnodeBeforeUnmount)&&invokeVNodeHook(Lr,Zn,jn),ir&6)vr(jn.component,nr,hr);else{if(ir&128){jn.suspense.unmount(nr,hr);return}kr&&invokeDirectiveHook(jn,null,Zn,"beforeUnmount"),ir&64?jn.type.remove(jn,Zn,nr,gr,Wn,hr):dr&&(or!==Fragment||ur>0&&ur&64)?ar(dr,Zn,nr,!1,!0):(or===Fragment&&ur&384||!gr&&ir&16)&&ar(Tr,Zn,nr),hr&&Xn(jn)}(Dr&&(Lr=wr&&wr.onVnodeUnmounted)||kr)&&queuePostRenderEffect(()=>{Lr&&invokeVNodeHook(Lr,Zn,jn),kr&&invokeDirectiveHook(jn,null,Zn,"unmounted")},nr)},Xn=jn=>{const{type:Zn,el:nr,anchor:hr,transition:gr}=jn;if(Zn===Fragment){sr(nr,hr);return}if(Zn===Static){_n(jn);return}const or=()=>{le(nr),gr&&!gr.persisted&&gr.afterLeave&&gr.afterLeave()};if(jn.shapeFlag&1&&gr&&!gr.persisted){const{leave:wr,delayLeave:mr}=gr,Tr=()=>wr(nr,or);mr?mr(jn.el,or,Tr):Tr()}else or()},sr=(jn,Zn)=>{let nr;for(;jn!==Zn;)nr=Fe(jn),le(jn),jn=nr;le(Zn)},vr=(jn,Zn,nr)=>{const{bum:hr,scope:gr,update:or,subTree:wr,um:mr}=jn;hr&&invokeArrayFns(hr),gr.stop(),or&&(or.active=!1,Fn(wr,jn,Zn,nr)),mr&&queuePostRenderEffect(mr,Zn),queuePostRenderEffect(()=>{jn.isUnmounted=!0},Zn),Zn&&Zn.pendingBranch&&!Zn.isUnmounted&&jn.asyncDep&&!jn.asyncResolved&&jn.suspenseId===Zn.pendingId&&(Zn.deps--,Zn.deps===0&&Zn.resolve())},ar=(jn,Zn,nr,hr=!1,gr=!1,or=0)=>{for(let wr=or;wr<jn.length;wr++)Fn(jn[wr],Zn,nr,hr,gr)},qn=jn=>jn.shapeFlag&6?qn(jn.component.subTree):jn.shapeFlag&128?jn.suspense.next():Fe(jn.anchor||jn.el),Gn=(jn,Zn,nr)=>{jn==null?Zn._vnode&&Fn(Zn._vnode,null,null,!0):qe(Zn._vnode||null,jn,Zn,null,null,null,nr),flushPreFlushCbs(),flushPostFlushCbs(),Zn._vnode=jn},Wn={p:qe,um:Fn,m:Yn,r:Xn,mt:Nn,mc:En,pc:Ln,pbc:wn,n:qn,o:$};let Qn,cr;return z&&([Qn,cr]=z(Wn)),{render:Gn,hydrate:Qn,createApp:createAppAPI(Gn,Qn)}}function toggleRecurse({effect:$,update:z},oe){$.allowRecurse=z.allowRecurse=oe}function traverseStaticChildren($,z,oe=!1){const ae=$.children,le=z.children;if(isArray$c(ae)&&isArray$c(le))for(let ue=0;ue<ae.length;ue++){const pe=ae[ue];let _e=le[ue];_e.shapeFlag&1&&!_e.dynamicChildren&&((_e.patchFlag<=0||_e.patchFlag===32)&&(_e=le[ue]=cloneIfMounted(le[ue]),_e.el=pe.el),oe||traverseStaticChildren(pe,_e)),_e.type===Text$1&&(_e.el=pe.el)}}function getSequence($){const z=$.slice(),oe=[0];let ae,le,ue,pe,_e;const Ce=$.length;for(ae=0;ae<Ce;ae++){const $e=$[ae];if($e!==0){if(le=oe[oe.length-1],$[le]<$e){z[ae]=le,oe.push(ae);continue}for(ue=0,pe=oe.length-1;ue<pe;)_e=ue+pe>>1,$[oe[_e]]<$e?ue=_e+1:pe=_e;$e<$[oe[ue]]&&(ue>0&&(z[ae]=oe[ue-1]),oe[ue]=ae)}}for(ue=oe.length,pe=oe[ue-1];ue-- >0;)oe[ue]=pe,pe=z[pe];return oe}const isTeleport=$=>$.__isTeleport,isTeleportDisabled=$=>$&&($.disabled||$.disabled===""),isTargetSVG=$=>typeof SVGElement<"u"&&$ instanceof SVGElement,resolveTarget=($,z)=>{const oe=$&&$.to;return isString$7(oe)?z?z(oe):null:oe},TeleportImpl={__isTeleport:!0,process($,z,oe,ae,le,ue,pe,_e,Ce,$e){const{mc:xe,pc:Ie,pbc:Fe,o:{insert:ze,querySelector:Ue,createText:qe,createComment:At}}=$e,Lt=isTeleportDisabled(z.props);let{shapeFlag:hn,children:vn,dynamicChildren:_n}=z;if($==null){const bn=z.el=qe(""),Sn=z.anchor=qe("");ze(bn,oe,ae),ze(Sn,oe,ae);const Cn=z.target=resolveTarget(z.props,Ue),En=z.targetAnchor=qe("");Cn&&(ze(En,Cn),pe=pe||isTargetSVG(Cn));const $n=(wn,Tn)=>{hn&16&&xe(vn,wn,Tn,le,ue,pe,_e,Ce)};Lt?$n(oe,Sn):Cn&&$n(Cn,En)}else{z.el=$.el;const bn=z.anchor=$.anchor,Sn=z.target=$.target,Cn=z.targetAnchor=$.targetAnchor,En=isTeleportDisabled($.props),$n=En?oe:Sn,wn=En?bn:Cn;if(pe=pe||isTargetSVG(Sn),_n?(Fe($.dynamicChildren,_n,$n,le,ue,pe,_e),traverseStaticChildren($,z,!0)):Ce||Ie($,z,$n,wn,le,ue,pe,_e,!1),Lt)En||moveTeleport(z,oe,bn,$e,1);else if((z.props&&z.props.to)!==($.props&&$.props.to)){const Tn=z.target=resolveTarget(z.props,Ue);Tn&&moveTeleport(z,Tn,null,$e,0)}else En&&moveTeleport(z,Sn,Cn,$e,1)}updateCssVars(z)},remove($,z,oe,ae,{um:le,o:{remove:ue}},pe){const{shapeFlag:_e,children:Ce,anchor:$e,targetAnchor:xe,target:Ie,props:Fe}=$;if(Ie&&ue(xe),(pe||!isTeleportDisabled(Fe))&&(ue($e),_e&16))for(let ze=0;ze<Ce.length;ze++){const Ue=Ce[ze];le(Ue,z,oe,!0,!!Ue.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport($,z,oe,{o:{insert:ae},m:le},ue=2){ue===0&&ae($.targetAnchor,z,oe);const{el:pe,anchor:_e,shapeFlag:Ce,children:$e,props:xe}=$,Ie=ue===2;if(Ie&&ae(pe,z,oe),(!Ie||isTeleportDisabled(xe))&&Ce&16)for(let Fe=0;Fe<$e.length;Fe++)le($e[Fe],z,oe,2);Ie&&ae(_e,z,oe)}function hydrateTeleport($,z,oe,ae,le,ue,{o:{nextSibling:pe,parentNode:_e,querySelector:Ce}},$e){const xe=z.target=resolveTarget(z.props,Ce);if(xe){const Ie=xe._lpa||xe.firstChild;if(z.shapeFlag&16)if(isTeleportDisabled(z.props))z.anchor=$e(pe($),z,_e($),oe,ae,le,ue),z.targetAnchor=Ie;else{z.anchor=pe($);let Fe=Ie;for(;Fe;)if(Fe=pe(Fe),Fe&&Fe.nodeType===8&&Fe.data==="teleport anchor"){z.targetAnchor=Fe,xe._lpa=z.targetAnchor&&pe(z.targetAnchor);break}$e(Ie,z,xe,oe,ae,le,ue)}updateCssVars(z)}return z.anchor&&pe(z.anchor)}const Teleport=TeleportImpl;function updateCssVars($){const z=$.ctx;if(z&&z.ut){let oe=$.children[0].el;for(;oe!==$.targetAnchor;)oe.nodeType===1&&oe.setAttribute("data-v-owner",z.uid),oe=oe.nextSibling;z.ut()}}const Fragment=Symbol.for("v-fgt"),Text$1=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock($=!1){blockStack.push(currentBlock=$?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking($){isBlockTreeEnabled+=$}function setupBlock($){return $.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push($),$}function createElementBlock($,z,oe,ae,le,ue){return setupBlock(createBaseVNode($,z,oe,ae,le,ue,!0))}function createBlock($,z,oe,ae,le){return setupBlock(createVNode($,z,oe,ae,le,!0))}function isVNode$1($){return $?$.__v_isVNode===!0:!1}function isSameVNodeType($,z){return $.type===z.type&&$.key===z.key}function transformVNodeArgs($){}const InternalObjectKey="__vInternal",normalizeKey=({key:$})=>$??null,normalizeRef=({ref:$,ref_key:z,ref_for:oe})=>(typeof $=="number"&&($=""+$),$!=null?isString$7($)||isRef($)||isFunction$5($)?{i:currentRenderingInstance,r:$,k:z,f:!!oe}:$:null);function createBaseVNode($,z=null,oe=null,ae=0,le=null,ue=$===Fragment?0:1,pe=!1,_e=!1){const Ce={__v_isVNode:!0,__v_skip:!0,type:$,props:z,key:z&&normalizeKey(z),ref:z&&normalizeRef(z),scopeId:currentScopeId,slotScopeIds:null,children:oe,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:ue,patchFlag:ae,dynamicProps:le,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return _e?(normalizeChildren(Ce,oe),ue&128&&$.normalize(Ce)):oe&&(Ce.shapeFlag|=isString$7(oe)?8:16),isBlockTreeEnabled>0&&!pe&¤tBlock&&(Ce.patchFlag>0||ue&6)&&Ce.patchFlag!==32&¤tBlock.push(Ce),Ce}const createVNode=_createVNode;function _createVNode($,z=null,oe=null,ae=0,le=null,ue=!1){if((!$||$===NULL_DYNAMIC_COMPONENT)&&($=Comment),isVNode$1($)){const _e=cloneVNode($,z,!0);return oe&&normalizeChildren(_e,oe),isBlockTreeEnabled>0&&!ue&¤tBlock&&(_e.shapeFlag&6?currentBlock[currentBlock.indexOf($)]=_e:currentBlock.push(_e)),_e.patchFlag|=-2,_e}if(isClassComponent($)&&($=$.__vccOpts),z){z=guardReactiveProps(z);let{class:_e,style:Ce}=z;_e&&!isString$7(_e)&&(z.class=normalizeClass(_e)),isObject$8(Ce)&&(isProxy(Ce)&&!isArray$c(Ce)&&(Ce=extend$2({},Ce)),z.style=normalizeStyle$1(Ce))}const pe=isString$7($)?1:isSuspense($)?128:isTeleport($)?64:isObject$8($)?4:isFunction$5($)?2:0;return createBaseVNode($,z,oe,ae,le,pe,ue,!0)}function guardReactiveProps($){return $?isProxy($)||InternalObjectKey in $?extend$2({},$):$:null}function cloneVNode($,z,oe=!1){const{props:ae,ref:le,patchFlag:ue,children:pe}=$,_e=z?mergeProps(ae||{},z):ae;return{__v_isVNode:!0,__v_skip:!0,type:$.type,props:_e,key:_e&&normalizeKey(_e),ref:z&&z.ref?oe&&le?isArray$c(le)?le.concat(normalizeRef(z)):[le,normalizeRef(z)]:normalizeRef(z):le,scopeId:$.scopeId,slotScopeIds:$.slotScopeIds,children:pe,target:$.target,targetAnchor:$.targetAnchor,staticCount:$.staticCount,shapeFlag:$.shapeFlag,patchFlag:z&&$.type!==Fragment?ue===-1?16:ue|16:ue,dynamicProps:$.dynamicProps,dynamicChildren:$.dynamicChildren,appContext:$.appContext,dirs:$.dirs,transition:$.transition,component:$.component,suspense:$.suspense,ssContent:$.ssContent&&cloneVNode($.ssContent),ssFallback:$.ssFallback&&cloneVNode($.ssFallback),el:$.el,anchor:$.anchor,ctx:$.ctx,ce:$.ce}}function createTextVNode($=" ",z=0){return createVNode(Text$1,null,$,z)}function createStaticVNode($,z){const oe=createVNode(Static,null,$);return oe.staticCount=z,oe}function createCommentVNode($="",z=!1){return z?(openBlock(),createBlock(Comment,null,$)):createVNode(Comment,null,$)}function normalizeVNode($){return $==null||typeof $=="boolean"?createVNode(Comment):isArray$c($)?createVNode(Fragment,null,$.slice()):typeof $=="object"?cloneIfMounted($):createVNode(Text$1,null,String($))}function cloneIfMounted($){return $.el===null&&$.patchFlag!==-1||$.memo?$:cloneVNode($)}function normalizeChildren($,z){let oe=0;const{shapeFlag:ae}=$;if(z==null)z=null;else if(isArray$c(z))oe=16;else if(typeof z=="object")if(ae&65){const le=z.default;le&&(le._c&&(le._d=!1),normalizeChildren($,le()),le._c&&(le._d=!0));return}else{oe=32;const le=z._;!le&&!(InternalObjectKey in z)?z._ctx=currentRenderingInstance:le===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?z._=1:(z._=2,$.patchFlag|=1024))}else isFunction$5(z)?(z={default:z,_ctx:currentRenderingInstance},oe=32):(z=String(z),ae&64?(oe=16,z=[createTextVNode(z)]):oe=8);$.children=z,$.shapeFlag|=oe}function mergeProps(...$){const z={};for(let oe=0;oe<$.length;oe++){const ae=$[oe];for(const le in ae)if(le==="class")z.class!==ae.class&&(z.class=normalizeClass([z.class,ae.class]));else if(le==="style")z.style=normalizeStyle$1([z.style,ae.style]);else if(isOn(le)){const ue=z[le],pe=ae[le];pe&&ue!==pe&&!(isArray$c(ue)&&ue.includes(pe))&&(z[le]=ue?[].concat(ue,pe):pe)}else le!==""&&(z[le]=ae[le])}return z}function invokeVNodeHook($,z,oe,ae=null){callWithAsyncErrorHandling($,z,7,[oe,ae])}const emptyAppContext=createAppContext();let uid$2=0;function createComponentInstance($,z,oe){const ae=$.type,le=(z?z.appContext:$.appContext)||emptyAppContext,ue={uid:uid$2++,vnode:$,type:ae,parent:z,appContext:le,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:z?z.provides:Object.create(le.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(ae,le),emitsOptions:normalizeEmitsOptions(ae,le),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:ae.inheritAttrs,ctx:EMPTY_OBJ$1,data:EMPTY_OBJ$1,props:EMPTY_OBJ$1,attrs:EMPTY_OBJ$1,slots:EMPTY_OBJ$1,refs:EMPTY_OBJ$1,setupState:EMPTY_OBJ$1,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:oe,suspenseId:oe?oe.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 ue.ctx={_:ue},ue.root=z?z.root:ue,ue.emit=emit.bind(null,ue),$.ce&&$.ce(ue),ue}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push($=>currentInstance=$),internalSetCurrentInstance=$=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(z=>z($)):globalCurrentInstanceSetters[0]($)};const setCurrentInstance=$=>{internalSetCurrentInstance($),$.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent($){return $.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent($,z=!1){isInSSRComponentSetup=z;const{props:oe,children:ae}=$.vnode,le=isStatefulComponent($);initProps$1($,oe,le,z),initSlots($,ae);const ue=le?setupStatefulComponent($,z):void 0;return isInSSRComponentSetup=!1,ue}function setupStatefulComponent($,z){const oe=$.type;$.accessCache=Object.create(null),$.proxy=markRaw(new Proxy($.ctx,PublicInstanceProxyHandlers));const{setup:ae}=oe;if(ae){const le=$.setupContext=ae.length>1?createSetupContext($):null;setCurrentInstance($),pauseTracking();const ue=callWithErrorHandling(ae,$,0,[$.props,le]);if(resetTracking(),unsetCurrentInstance(),isPromise(ue)){if(ue.then(unsetCurrentInstance,unsetCurrentInstance),z)return ue.then(pe=>{handleSetupResult($,pe,z)}).catch(pe=>{handleError(pe,$,0)});$.asyncDep=ue}else handleSetupResult($,ue,z)}else finishComponentSetup($,z)}function handleSetupResult($,z,oe){isFunction$5(z)?$.type.__ssrInlineRender?$.ssrRender=z:$.render=z:isObject$8(z)&&($.setupState=proxyRefs(z)),finishComponentSetup($,oe)}let compile$1,installWithProxy;function registerRuntimeCompiler($){compile$1=$,installWithProxy=z=>{z.render._rc&&(z.withProxy=new Proxy(z.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup($,z,oe){const ae=$.type;if(!$.render){if(!z&&compile$1&&!ae.render){const le=ae.template||resolveMergedOptions($).template;if(le){const{isCustomElement:ue,compilerOptions:pe}=$.appContext.config,{delimiters:_e,compilerOptions:Ce}=ae,$e=extend$2(extend$2({isCustomElement:ue,delimiters:_e},pe),Ce);ae.render=compile$1(le,$e)}}$.render=ae.render||NOOP,installWithProxy&&installWithProxy($)}setCurrentInstance($),pauseTracking(),applyOptions($),resetTracking(),unsetCurrentInstance()}function getAttrsProxy($){return $.attrsProxy||($.attrsProxy=new Proxy($.attrs,{get(z,oe){return track($,"get","$attrs"),z[oe]}}))}function createSetupContext($){const z=oe=>{$.exposed=oe||{}};return{get attrs(){return getAttrsProxy($)},slots:$.slots,emit:$.emit,expose:z}}function getExposeProxy($){if($.exposed)return $.exposeProxy||($.exposeProxy=new Proxy(proxyRefs(markRaw($.exposed)),{get(z,oe){if(oe in z)return z[oe];if(oe in publicPropertiesMap)return publicPropertiesMap[oe]($)},has(z,oe){return oe in z||oe in publicPropertiesMap}}))}function getComponentName($,z=!0){return isFunction$5($)?$.displayName||$.name:$.name||z&&$.__name}function isClassComponent($){return isFunction$5($)&&"__vccOpts"in $}const computed=($,z)=>computed$1($,z,isInSSRComponentSetup);function h$3($,z,oe){const ae=arguments.length;return ae===2?isObject$8(z)&&!isArray$c(z)?isVNode$1(z)?createVNode($,null,[z]):createVNode($,z):createVNode($,null,z):(ae>3?oe=Array.prototype.slice.call(arguments,2):ae===3&&isVNode$1(oe)&&(oe=[oe]),createVNode($,z,oe))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo($,z,oe,ae){const le=oe[ae];if(le&&isMemoSame(le,$))return le;const ue=z();return ue.memo=$.slice(),oe[ae]=ue}function isMemoSame($,z){const oe=$.memo;if(oe.length!=z.length)return!1;for(let ae=0;ae<oe.length;ae++)if(hasChanged(oe[ae],z[ae]))return!1;return isBlockTreeEnabled>0&¤tBlock&¤tBlock.push($),!0}const version$3="3.3.4",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc$1=typeof document<"u"?document:null,templateContainer=doc$1&&doc$1.createElement("template"),nodeOps={insert:($,z,oe)=>{z.insertBefore($,oe||null)},remove:$=>{const z=$.parentNode;z&&z.removeChild($)},createElement:($,z,oe,ae)=>{const le=z?doc$1.createElementNS(svgNS,$):doc$1.createElement($,oe?{is:oe}:void 0);return $==="select"&&ae&&ae.multiple!=null&&le.setAttribute("multiple",ae.multiple),le},createText:$=>doc$1.createTextNode($),createComment:$=>doc$1.createComment($),setText:($,z)=>{$.nodeValue=z},setElementText:($,z)=>{$.textContent=z},parentNode:$=>$.parentNode,nextSibling:$=>$.nextSibling,querySelector:$=>doc$1.querySelector($),setScopeId($,z){$.setAttribute(z,"")},insertStaticContent($,z,oe,ae,le,ue){const pe=oe?oe.previousSibling:z.lastChild;if(le&&(le===ue||le.nextSibling))for(;z.insertBefore(le.cloneNode(!0),oe),!(le===ue||!(le=le.nextSibling)););else{templateContainer.innerHTML=ae?`<svg>${$}</svg>`:$;const _e=templateContainer.content;if(ae){const Ce=_e.firstChild;for(;Ce.firstChild;)_e.appendChild(Ce.firstChild);_e.removeChild(Ce)}z.insertBefore(_e,oe)}return[pe?pe.nextSibling:z.firstChild,oe?oe.previousSibling:z.lastChild]}};function patchClass($,z,oe){const ae=$._vtc;ae&&(z=(z?[z,...ae]:[...ae]).join(" ")),z==null?$.removeAttribute("class"):oe?$.setAttribute("class",z):$.className=z}function patchStyle($,z,oe){const ae=$.style,le=isString$7(oe);if(oe&&!le){if(z&&!isString$7(z))for(const ue in z)oe[ue]==null&&setStyle(ae,ue,"");for(const ue in oe)setStyle(ae,ue,oe[ue])}else{const ue=ae.display;le?z!==oe&&(ae.cssText=oe):z&&$.removeAttribute("style"),"_vod"in $&&(ae.display=ue)}}const importantRE=/\s*!important$/;function setStyle($,z,oe){if(isArray$c(oe))oe.forEach(ae=>setStyle($,z,ae));else if(oe==null&&(oe=""),z.startsWith("--"))$.setProperty(z,oe);else{const ae=autoPrefix($,z);importantRE.test(oe)?$.setProperty(hyphenate(ae),oe.replace(importantRE,""),"important"):$[ae]=oe}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix($,z){const oe=prefixCache[z];if(oe)return oe;let ae=camelize(z);if(ae!=="filter"&&ae in $)return prefixCache[z]=ae;ae=capitalize$2(ae);for(let le=0;le<prefixes.length;le++){const ue=prefixes[le]+ae;if(ue in $)return prefixCache[z]=ue}return z}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr($,z,oe,ae,le){if(ae&&z.startsWith("xlink:"))oe==null?$.removeAttributeNS(xlinkNS,z.slice(6,z.length)):$.setAttributeNS(xlinkNS,z,oe);else{const ue=isSpecialBooleanAttr(z);oe==null||ue&&!includeBooleanAttr(oe)?$.removeAttribute(z):$.setAttribute(z,ue?"":oe)}}function patchDOMProp($,z,oe,ae,le,ue,pe){if(z==="innerHTML"||z==="textContent"){ae&&pe(ae,le,ue),$[z]=oe??"";return}const _e=$.tagName;if(z==="value"&&_e!=="PROGRESS"&&!_e.includes("-")){$._value=oe;const $e=_e==="OPTION"?$.getAttribute("value"):$.value,xe=oe??"";$e!==xe&&($.value=xe),oe==null&&$.removeAttribute(z);return}let Ce=!1;if(oe===""||oe==null){const $e=typeof $[z];$e==="boolean"?oe=includeBooleanAttr(oe):oe==null&&$e==="string"?(oe="",Ce=!0):$e==="number"&&(oe=0,Ce=!0)}try{$[z]=oe}catch{}Ce&&$.removeAttribute(z)}function addEventListener$1($,z,oe,ae){$.addEventListener(z,oe,ae)}function removeEventListener$1($,z,oe,ae){$.removeEventListener(z,oe,ae)}function patchEvent($,z,oe,ae,le=null){const ue=$._vei||($._vei={}),pe=ue[z];if(ae&&pe)pe.value=ae;else{const[_e,Ce]=parseName(z);if(ae){const $e=ue[z]=createInvoker(ae,le);addEventListener$1($,_e,$e,Ce)}else pe&&(removeEventListener$1($,_e,pe,Ce),ue[z]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName($){let z;if(optionsModifierRE.test($)){z={};let ae;for(;ae=$.match(optionsModifierRE);)$=$.slice(0,$.length-ae[0].length),z[ae[0].toLowerCase()]=!0}return[$[2]===":"?$.slice(3):hyphenate($.slice(2)),z]}let cachedNow=0;const p$3=Promise.resolve(),getNow=()=>cachedNow||(p$3.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker($,z){const oe=ae=>{if(!ae._vts)ae._vts=Date.now();else if(ae._vts<=oe.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ae,oe.value),z,5,[ae])};return oe.value=$,oe.attached=getNow(),oe}function patchStopImmediatePropagation($,z){if(isArray$c(z)){const oe=$.stopImmediatePropagation;return $.stopImmediatePropagation=()=>{oe.call($),$._stopped=!0},z.map(ae=>le=>!le._stopped&&ae&&ae(le))}else return z}const nativeOnRE=/^on[a-z]/,patchProp=($,z,oe,ae,le=!1,ue,pe,_e,Ce)=>{z==="class"?patchClass($,ae,le):z==="style"?patchStyle($,oe,ae):isOn(z)?isModelListener(z)||patchEvent($,z,oe,ae,pe):(z[0]==="."?(z=z.slice(1),!0):z[0]==="^"?(z=z.slice(1),!1):shouldSetAsProp($,z,ae,le))?patchDOMProp($,z,ae,ue,pe,_e,Ce):(z==="true-value"?$._trueValue=ae:z==="false-value"&&($._falseValue=ae),patchAttr($,z,ae,le))};function shouldSetAsProp($,z,oe,ae){return ae?!!(z==="innerHTML"||z==="textContent"||z in $&&nativeOnRE.test(z)&&isFunction$5(oe)):z==="spellcheck"||z==="draggable"||z==="translate"||z==="form"||z==="list"&&$.tagName==="INPUT"||z==="type"&&$.tagName==="TEXTAREA"||nativeOnRE.test(z)&&isString$7(oe)?!1:z in $}function defineCustomElement($,z){const oe=defineComponent($);class ae extends VueElement{constructor(ue){super(oe,ue,z)}}return ae.def=oe,ae}const defineSSRCustomElement=$=>defineCustomElement($,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(z,oe={},ae){super(),this._def=z,this._props=oe,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&ae?ae(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render$4(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let ae=0;ae<this.attributes.length;ae++)this._setAttr(this.attributes[ae].name);new MutationObserver(ae=>{for(const le of ae)this._setAttr(le.attributeName)}).observe(this,{attributes:!0});const z=(ae,le=!1)=>{const{props:ue,styles:pe}=ae;let _e;if(ue&&!isArray$c(ue))for(const Ce in ue){const $e=ue[Ce];($e===Number||$e&&$e.type===Number)&&(Ce in this._props&&(this._props[Ce]=toNumber$1(this._props[Ce])),(_e||(_e=Object.create(null)))[camelize(Ce)]=!0)}this._numberProps=_e,le&&this._resolveProps(ae),this._applyStyles(pe),this._update()},oe=this._def.__asyncLoader;oe?oe().then(ae=>z(ae,!0)):z(this._def)}_resolveProps(z){const{props:oe}=z,ae=isArray$c(oe)?oe:Object.keys(oe||{});for(const le of Object.keys(this))le[0]!=="_"&&ae.includes(le)&&this._setProp(le,this[le],!0,!1);for(const le of ae.map(camelize))Object.defineProperty(this,le,{get(){return this._getProp(le)},set(ue){this._setProp(le,ue)}})}_setAttr(z){let oe=this.getAttribute(z);const ae=camelize(z);this._numberProps&&this._numberProps[ae]&&(oe=toNumber$1(oe)),this._setProp(ae,oe,!1)}_getProp(z){return this._props[z]}_setProp(z,oe,ae=!0,le=!0){oe!==this._props[z]&&(this._props[z]=oe,le&&this._instance&&this._update(),ae&&(oe===!0?this.setAttribute(hyphenate(z),""):typeof oe=="string"||typeof oe=="number"?this.setAttribute(hyphenate(z),oe+""):oe||this.removeAttribute(hyphenate(z))))}_update(){render$4(this._createVNode(),this.shadowRoot)}_createVNode(){const z=createVNode(this._def,extend$2({},this._props));return this._instance||(z.ce=oe=>{this._instance=oe,oe.isCE=!0;const ae=(ue,pe)=>{this.dispatchEvent(new CustomEvent(ue,{detail:pe}))};oe.emit=(ue,...pe)=>{ae(ue,pe),hyphenate(ue)!==ue&&ae(hyphenate(ue),pe)};let le=this;for(;le=le&&(le.parentNode||le.host);)if(le instanceof VueElement){oe.parent=le._instance,oe.provides=le._instance.provides;break}}),z}_applyStyles(z){z&&z.forEach(oe=>{const ae=document.createElement("style");ae.textContent=oe,this.shadowRoot.appendChild(ae)})}}function useCssModule($="$style"){{const z=getCurrentInstance();if(!z)return EMPTY_OBJ$1;const oe=z.type.__cssModules;if(!oe)return EMPTY_OBJ$1;const ae=oe[$];return ae||EMPTY_OBJ$1}}function useCssVars($){const z=getCurrentInstance();if(!z)return;const oe=z.ut=(le=$(z.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${z.uid}"]`)).forEach(ue=>setVarsOnNode(ue,le))},ae=()=>{const le=$(z.proxy);setVarsOnVNode(z.subTree,le),oe(le)};watchPostEffect(ae),onMounted(()=>{const le=new MutationObserver(ae);le.observe(z.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>le.disconnect())})}function setVarsOnVNode($,z){if($.shapeFlag&128){const oe=$.suspense;$=oe.activeBranch,oe.pendingBranch&&!oe.isHydrating&&oe.effects.push(()=>{setVarsOnVNode(oe.activeBranch,z)})}for(;$.component;)$=$.component.subTree;if($.shapeFlag&1&&$.el)setVarsOnNode($.el,z);else if($.type===Fragment)$.children.forEach(oe=>setVarsOnVNode(oe,z));else if($.type===Static){let{el:oe,anchor:ae}=$;for(;oe&&(setVarsOnNode(oe,z),oe!==ae);)oe=oe.nextSibling}}function setVarsOnNode($,z){if($.nodeType===1){const oe=$.style;for(const ae in z)oe.setProperty(`--${ae}`,z[ae])}}const TRANSITION="transition",ANIMATION="animation",Transition=($,{slots:z})=>h$3(BaseTransition,resolveTransitionProps($),z);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},TransitionPropsValidators=Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=($,z=[])=>{isArray$c($)?$.forEach(oe=>oe(...z)):$&&$(...z)},hasExplicitCallback=$=>$?isArray$c($)?$.some(z=>z.length>1):$.length>1:!1;function resolveTransitionProps($){const z={};for(const xn in $)xn in DOMTransitionPropsValidators||(z[xn]=$[xn]);if($.css===!1)return z;const{name:oe="v",type:ae,duration:le,enterFromClass:ue=`${oe}-enter-from`,enterActiveClass:pe=`${oe}-enter-active`,enterToClass:_e=`${oe}-enter-to`,appearFromClass:Ce=ue,appearActiveClass:$e=pe,appearToClass:xe=_e,leaveFromClass:Ie=`${oe}-leave-from`,leaveActiveClass:Fe=`${oe}-leave-active`,leaveToClass:ze=`${oe}-leave-to`}=$,Ue=normalizeDuration(le),qe=Ue&&Ue[0],At=Ue&&Ue[1],{onBeforeEnter:Lt,onEnter:hn,onEnterCancelled:vn,onLeave:_n,onLeaveCancelled:bn,onBeforeAppear:Sn=Lt,onAppear:Cn=hn,onAppearCancelled:En=vn}=z,$n=(xn,kn,Nn)=>{removeTransitionClass(xn,kn?xe:_e),removeTransitionClass(xn,kn?$e:pe),Nn&&Nn()},wn=(xn,kn)=>{xn._isLeaving=!1,removeTransitionClass(xn,Ie),removeTransitionClass(xn,ze),removeTransitionClass(xn,Fe),kn&&kn()},Tn=xn=>(kn,Nn)=>{const Bn=xn?Cn:hn,Dn=()=>$n(kn,xn,Nn);callHook(Bn,[kn,Dn]),nextFrame(()=>{removeTransitionClass(kn,xn?Ce:ue),addTransitionClass(kn,xn?xe:_e),hasExplicitCallback(Bn)||whenTransitionEnds(kn,ae,qe,Dn)})};return extend$2(z,{onBeforeEnter(xn){callHook(Lt,[xn]),addTransitionClass(xn,ue),addTransitionClass(xn,pe)},onBeforeAppear(xn){callHook(Sn,[xn]),addTransitionClass(xn,Ce),addTransitionClass(xn,$e)},onEnter:Tn(!1),onAppear:Tn(!0),onLeave(xn,kn){xn._isLeaving=!0;const Nn=()=>wn(xn,kn);addTransitionClass(xn,Ie),forceReflow(),addTransitionClass(xn,Fe),nextFrame(()=>{xn._isLeaving&&(removeTransitionClass(xn,Ie),addTransitionClass(xn,ze),hasExplicitCallback(_n)||whenTransitionEnds(xn,ae,At,Nn))}),callHook(_n,[xn,Nn])},onEnterCancelled(xn){$n(xn,!1),callHook(vn,[xn])},onAppearCancelled(xn){$n(xn,!0),callHook(En,[xn])},onLeaveCancelled(xn){wn(xn),callHook(bn,[xn])}})}function normalizeDuration($){if($==null)return null;if(isObject$8($))return[NumberOf($.enter),NumberOf($.leave)];{const z=NumberOf($);return[z,z]}}function NumberOf($){return toNumber$1($)}function addTransitionClass($,z){z.split(/\s+/).forEach(oe=>oe&&$.classList.add(oe)),($._vtc||($._vtc=new Set)).add(z)}function removeTransitionClass($,z){z.split(/\s+/).forEach(ae=>ae&&$.classList.remove(ae));const{_vtc:oe}=$;oe&&(oe.delete(z),oe.size||($._vtc=void 0))}function nextFrame($){requestAnimationFrame(()=>{requestAnimationFrame($)})}let endId=0;function whenTransitionEnds($,z,oe,ae){const le=$._endId=++endId,ue=()=>{le===$._endId&&ae()};if(oe)return setTimeout(ue,oe);const{type:pe,timeout:_e,propCount:Ce}=getTransitionInfo($,z);if(!pe)return ae();const $e=pe+"end";let xe=0;const Ie=()=>{$.removeEventListener($e,Fe),ue()},Fe=ze=>{ze.target===$&&++xe>=Ce&&Ie()};setTimeout(()=>{xe<Ce&&Ie()},_e+1),$.addEventListener($e,Fe)}function getTransitionInfo($,z){const oe=window.getComputedStyle($),ae=Ue=>(oe[Ue]||"").split(", "),le=ae(`${TRANSITION}Delay`),ue=ae(`${TRANSITION}Duration`),pe=getTimeout(le,ue),_e=ae(`${ANIMATION}Delay`),Ce=ae(`${ANIMATION}Duration`),$e=getTimeout(_e,Ce);let xe=null,Ie=0,Fe=0;z===TRANSITION?pe>0&&(xe=TRANSITION,Ie=pe,Fe=ue.length):z===ANIMATION?$e>0&&(xe=ANIMATION,Ie=$e,Fe=Ce.length):(Ie=Math.max(pe,$e),xe=Ie>0?pe>$e?TRANSITION:ANIMATION:null,Fe=xe?xe===TRANSITION?ue.length:Ce.length:0);const ze=xe===TRANSITION&&/\b(transform|all)(,|$)/.test(ae(`${TRANSITION}Property`).toString());return{type:xe,timeout:Ie,propCount:Fe,hasTransform:ze}}function getTimeout($,z){for(;$.length<z.length;)$=$.concat($);return Math.max(...z.map((oe,ae)=>toMs(oe)+toMs($[ae])))}function toMs($){return Number($.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup($,{slots:z}){const oe=getCurrentInstance(),ae=useTransitionState();let le,ue;return onUpdated(()=>{if(!le.length)return;const pe=$.moveClass||`${$.name||"v"}-move`;if(!hasCSSTransform(le[0].el,oe.vnode.el,pe))return;le.forEach(callPendingCbs),le.forEach(recordPosition);const _e=le.filter(applyTranslation);forceReflow(),_e.forEach(Ce=>{const $e=Ce.el,xe=$e.style;addTransitionClass($e,pe),xe.transform=xe.webkitTransform=xe.transitionDuration="";const Ie=$e._moveCb=Fe=>{Fe&&Fe.target!==$e||(!Fe||/transform$/.test(Fe.propertyName))&&($e.removeEventListener("transitionend",Ie),$e._moveCb=null,removeTransitionClass($e,pe))};$e.addEventListener("transitionend",Ie)})}),()=>{const pe=toRaw($),_e=resolveTransitionProps(pe);let Ce=pe.tag||Fragment;le=ue,ue=z.default?getTransitionRawChildren(z.default()):[];for(let $e=0;$e<ue.length;$e++){const xe=ue[$e];xe.key!=null&&setTransitionHooks(xe,resolveTransitionHooks(xe,_e,ae,oe))}if(le)for(let $e=0;$e<le.length;$e++){const xe=le[$e];setTransitionHooks(xe,resolveTransitionHooks(xe,_e,ae,oe)),positionMap.set(xe,xe.el.getBoundingClientRect())}return createVNode(Ce,null,ue)}}},removeMode=$=>delete $.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs($){const z=$.el;z._moveCb&&z._moveCb(),z._enterCb&&z._enterCb()}function recordPosition($){newPositionMap.set($,$.el.getBoundingClientRect())}function applyTranslation($){const z=positionMap.get($),oe=newPositionMap.get($),ae=z.left-oe.left,le=z.top-oe.top;if(ae||le){const ue=$.el.style;return ue.transform=ue.webkitTransform=`translate(${ae}px,${le}px)`,ue.transitionDuration="0s",$}}function hasCSSTransform($,z,oe){const ae=$.cloneNode();$._vtc&&$._vtc.forEach(pe=>{pe.split(/\s+/).forEach(_e=>_e&&ae.classList.remove(_e))}),oe.split(/\s+/).forEach(pe=>pe&&ae.classList.add(pe)),ae.style.display="none";const le=z.nodeType===1?z:z.parentNode;le.appendChild(ae);const{hasTransform:ue}=getTransitionInfo(ae);return le.removeChild(ae),ue}const getModelAssigner=$=>{const z=$.props["onUpdate:modelValue"]||!1;return isArray$c(z)?oe=>invokeArrayFns(z,oe):z};function onCompositionStart($){$.target.composing=!0}function onCompositionEnd($){const z=$.target;z.composing&&(z.composing=!1,z.dispatchEvent(new Event("input")))}const vModelText={created($,{modifiers:{lazy:z,trim:oe,number:ae}},le){$._assign=getModelAssigner(le);const ue=ae||le.props&&le.props.type==="number";addEventListener$1($,z?"change":"input",pe=>{if(pe.target.composing)return;let _e=$.value;oe&&(_e=_e.trim()),ue&&(_e=looseToNumber(_e)),$._assign(_e)}),oe&&addEventListener$1($,"change",()=>{$.value=$.value.trim()}),z||(addEventListener$1($,"compositionstart",onCompositionStart),addEventListener$1($,"compositionend",onCompositionEnd),addEventListener$1($,"change",onCompositionEnd))},mounted($,{value:z}){$.value=z??""},beforeUpdate($,{value:z,modifiers:{lazy:oe,trim:ae,number:le}},ue){if($._assign=getModelAssigner(ue),$.composing||document.activeElement===$&&$.type!=="range"&&(oe||ae&&$.value.trim()===z||(le||$.type==="number")&&looseToNumber($.value)===z))return;const pe=z??"";$.value!==pe&&($.value=pe)}},vModelCheckbox={deep:!0,created($,z,oe){$._assign=getModelAssigner(oe),addEventListener$1($,"change",()=>{const ae=$._modelValue,le=getValue$2($),ue=$.checked,pe=$._assign;if(isArray$c(ae)){const _e=looseIndexOf(ae,le),Ce=_e!==-1;if(ue&&!Ce)pe(ae.concat(le));else if(!ue&&Ce){const $e=[...ae];$e.splice(_e,1),pe($e)}}else if(isSet$3(ae)){const _e=new Set(ae);ue?_e.add(le):_e.delete(le),pe(_e)}else pe(getCheckboxValue($,ue))})},mounted:setChecked,beforeUpdate($,z,oe){$._assign=getModelAssigner(oe),setChecked($,z,oe)}};function setChecked($,{value:z,oldValue:oe},ae){$._modelValue=z,isArray$c(z)?$.checked=looseIndexOf(z,ae.props.value)>-1:isSet$3(z)?$.checked=z.has(ae.props.value):z!==oe&&($.checked=looseEqual(z,getCheckboxValue($,!0)))}const vModelRadio={created($,{value:z},oe){$.checked=looseEqual(z,oe.props.value),$._assign=getModelAssigner(oe),addEventListener$1($,"change",()=>{$._assign(getValue$2($))})},beforeUpdate($,{value:z,oldValue:oe},ae){$._assign=getModelAssigner(ae),z!==oe&&($.checked=looseEqual(z,ae.props.value))}},vModelSelect={deep:!0,created($,{value:z,modifiers:{number:oe}},ae){const le=isSet$3(z);addEventListener$1($,"change",()=>{const ue=Array.prototype.filter.call($.options,pe=>pe.selected).map(pe=>oe?looseToNumber(getValue$2(pe)):getValue$2(pe));$._assign($.multiple?le?new Set(ue):ue:ue[0])}),$._assign=getModelAssigner(ae)},mounted($,{value:z}){setSelected($,z)},beforeUpdate($,z,oe){$._assign=getModelAssigner(oe)},updated($,{value:z}){setSelected($,z)}};function setSelected($,z){const oe=$.multiple;if(!(oe&&!isArray$c(z)&&!isSet$3(z))){for(let ae=0,le=$.options.length;ae<le;ae++){const ue=$.options[ae],pe=getValue$2(ue);if(oe)isArray$c(z)?ue.selected=looseIndexOf(z,pe)>-1:ue.selected=z.has(pe);else if(looseEqual(getValue$2(ue),z)){$.selectedIndex!==ae&&($.selectedIndex=ae);return}}!oe&&$.selectedIndex!==-1&&($.selectedIndex=-1)}}function getValue$2($){return"_value"in $?$._value:$.value}function getCheckboxValue($,z){const oe=z?"_trueValue":"_falseValue";return oe in $?$[oe]:z}const vModelDynamic={created($,z,oe){callModelHook($,z,oe,null,"created")},mounted($,z,oe){callModelHook($,z,oe,null,"mounted")},beforeUpdate($,z,oe,ae){callModelHook($,z,oe,ae,"beforeUpdate")},updated($,z,oe,ae){callModelHook($,z,oe,ae,"updated")}};function resolveDynamicModel($,z){switch($){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(z){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook($,z,oe,ae,le){const pe=resolveDynamicModel($.tagName,oe.props&&oe.props.type)[le];pe&&pe($,z,oe,ae)}function initVModelForSSR(){vModelText.getSSRProps=({value:$})=>({value:$}),vModelRadio.getSSRProps=({value:$},z)=>{if(z.props&&looseEqual(z.props.value,$))return{checked:!0}},vModelCheckbox.getSSRProps=({value:$},z)=>{if(isArray$c($)){if(z.props&&looseIndexOf($,z.props.value)>-1)return{checked:!0}}else if(isSet$3($)){if(z.props&&$.has(z.props.value))return{checked:!0}}else if($)return{checked:!0}},vModelDynamic.getSSRProps=($,z)=>{if(typeof z.type!="string")return;const oe=resolveDynamicModel(z.type.toUpperCase(),z.props&&z.props.type);if(oe.getSSRProps)return oe.getSSRProps($,z)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:$=>$.stopPropagation(),prevent:$=>$.preventDefault(),self:$=>$.target!==$.currentTarget,ctrl:$=>!$.ctrlKey,shift:$=>!$.shiftKey,alt:$=>!$.altKey,meta:$=>!$.metaKey,left:$=>"button"in $&&$.button!==0,middle:$=>"button"in $&&$.button!==1,right:$=>"button"in $&&$.button!==2,exact:($,z)=>systemModifiers.some(oe=>$[`${oe}Key`]&&!z.includes(oe))},withModifiers=($,z)=>(oe,...ae)=>{for(let le=0;le<z.length;le++){const ue=modifierGuards[z[le]];if(ue&&ue(oe,z))return}return $(oe,...ae)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=($,z)=>oe=>{if(!("key"in oe))return;const ae=hyphenate(oe.key);if(z.some(le=>le===ae||keyNames[le]===ae))return $(oe)},vShow={beforeMount($,{value:z},{transition:oe}){$._vod=$.style.display==="none"?"":$.style.display,oe&&z?oe.beforeEnter($):setDisplay($,z)},mounted($,{value:z},{transition:oe}){oe&&z&&oe.enter($)},updated($,{value:z,oldValue:oe},{transition:ae}){!z!=!oe&&(ae?z?(ae.beforeEnter($),setDisplay($,!0),ae.enter($)):ae.leave($,()=>{setDisplay($,!1)}):setDisplay($,z))},beforeUnmount($,{value:z}){setDisplay($,z)}};function setDisplay($,z){$.style.display=z?$._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:$})=>{if(!$)return{style:{display:"none"}}}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$4=(...$)=>{ensureRenderer().render(...$)},hydrate=(...$)=>{ensureHydrationRenderer().hydrate(...$)},createApp=(...$)=>{const z=ensureRenderer().createApp(...$),{mount:oe}=z;return z.mount=ae=>{const le=normalizeContainer(ae);if(!le)return;const ue=z._component;!isFunction$5(ue)&&!ue.render&&!ue.template&&(ue.template=le.innerHTML),le.innerHTML="";const pe=oe(le,!1,le instanceof SVGElement);return le instanceof Element&&(le.removeAttribute("v-cloak"),le.setAttribute("data-v-app","")),pe},z},createSSRApp=(...$)=>{const z=ensureHydrationRenderer().createApp(...$),{mount:oe}=z;return z.mount=ae=>{const le=normalizeContainer(ae);if(le)return oe(le,!0,le instanceof SVGElement)},z};function normalizeContainer($){return isString$7($)?document.querySelector($):$}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,EffectScope,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text:Text$1,Transition,TransitionGroup,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize:capitalize$2,cloneVNode,compatUtils,compile,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,get devtools(){return devtools},effect,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h:h$3,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode:isVNode$1,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle:normalizeStyle$1,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render:render$4,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop:stop$1,toDisplayString:toDisplayString$1,toHandlerKey,toHandlers,toRaw,toRef:toRef$1,toRefs,toValue:toValue$1,transformVNodeArgs,triggerRef,unref,useAttrs:useAttrs$1,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$3,warn:warn$2,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),FOCUSABLE_ELEMENT_SELECTORS='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',isVisible=$=>getComputedStyle($).position==="fixed"?!1:$.offsetParent!==null,obtainAllFocusableElements$1=$=>Array.from($.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(z=>isFocusable(z)&&isVisible(z)),isFocusable=$=>{if($.tabIndex>0||$.tabIndex===0&&$.getAttribute("tabIndex")!==null)return!0;if($.disabled)return!1;switch($.nodeName){case"A":return!!$.href&&$.rel!=="ignore";case"INPUT":return!($.type==="hidden"||$.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function($,z,...oe){let ae;z.includes("mouse")||z.includes("click")?ae="MouseEvents":z.includes("key")?ae="KeyboardEvent":ae="HTMLEvents";const le=document.createEvent(ae);return le.initEvent(z,...oe),$.dispatchEvent(le),$},isLeaf=$=>!$.getAttribute("aria-owns"),getSibling=($,z,oe)=>{const{parentNode:ae}=$;if(!ae)return null;const le=ae.querySelectorAll(oe),ue=Array.prototype.indexOf.call(le,$);return le[ue+z]||null},focusNode=$=>{$&&($.focus(),!isLeaf($)&&$.click())},composeEventHandlers=($,z,{checkForDefaultPrevented:oe=!0}={})=>le=>{const ue=$==null?void 0:$(le);if(oe===!1||!ue)return z==null?void 0:z(le)},whenMouse=$=>z=>z.pointerType==="mouse"?$(z):void 0;var isVue2=!1,__defProp$9=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=($,z,oe)=>z in $?__defProp$9($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe,__spreadValues$9=($,z)=>{for(var oe in z||(z={}))__hasOwnProp$b.call(z,oe)&&__defNormalProp$9($,oe,z[oe]);if(__getOwnPropSymbols$b)for(var oe of __getOwnPropSymbols$b(z))__propIsEnum$b.call(z,oe)&&__defNormalProp$9($,oe,z[oe]);return $},__spreadProps$6=($,z)=>__defProps$6($,__getOwnPropDescs$6(z));function computedEager($,z){var oe;const ae=shallowRef();return watchEffect(()=>{ae.value=$()},__spreadProps$6(__spreadValues$9({},z),{flush:(oe=z==null?void 0:z.flush)!=null?oe:"sync"})),readonly(ae)}var _a$2;const isClient$2=typeof window<"u",isDef=$=>typeof $<"u",isFunction$4=$=>typeof $=="function",isString$6=$=>typeof $=="string",noop$7=()=>{},isIOS$1=isClient$2&&((_a$2=window==null?void 0:window.navigator)==null?void 0:_a$2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref($){return typeof $=="function"?$():unref($)}function createFilterWrapper$1($,z){function oe(...ae){return new Promise((le,ue)=>{Promise.resolve($(()=>z.apply(this,ae),{fn:z,thisArg:this,args:ae})).then(le).catch(ue)})}return oe}function debounceFilter$1($,z={}){let oe,ae,le=noop$7;const ue=_e=>{clearTimeout(_e),le(),le=noop$7};return _e=>{const Ce=resolveUnref($),$e=resolveUnref(z.maxWait);return oe&&ue(oe),Ce<=0||$e!==void 0&&$e<=0?(ae&&(ue(ae),ae=null),Promise.resolve(_e())):new Promise((xe,Ie)=>{le=z.rejectOnCancel?Ie:xe,$e&&!ae&&(ae=setTimeout(()=>{oe&&ue(oe),ae=null,xe(_e())},$e)),oe=setTimeout(()=>{ae&&ue(ae),ae=null,xe(_e())},Ce)})}}function throttleFilter($,z=!0,oe=!0,ae=!1){let le=0,ue,pe=!0,_e=noop$7,Ce;const $e=()=>{ue&&(clearTimeout(ue),ue=void 0,_e(),_e=noop$7)};return Ie=>{const Fe=resolveUnref($),ze=Date.now()-le,Ue=()=>Ce=Ie();return $e(),Fe<=0?(le=Date.now(),Ue()):(ze>Fe&&(oe||!pe)?(le=Date.now(),Ue()):z&&(Ce=new Promise((qe,At)=>{_e=ae?At:qe,ue=setTimeout(()=>{le=Date.now(),pe=!0,qe(Ue()),$e()},Math.max(0,Fe-ze))})),!oe&&!ue&&(ue=setTimeout(()=>pe=!0,Fe)),pe=!1,Ce)}}function identity$2($){return $}function tryOnScopeDispose$2($){return getCurrentScope()?(onScopeDispose($),!0):!1}function useDebounceFn$1($,z=200,oe={}){return createFilterWrapper$1(debounceFilter$1(z,oe),$)}function refDebounced($,z=200,oe={}){const ae=ref($.value),le=useDebounceFn$1(()=>{ae.value=$.value},z,oe);return watch($,()=>le()),ae}function useThrottleFn($,z=200,oe=!1,ae=!0,le=!1){return createFilterWrapper$1(throttleFilter(z,oe,ae,le),$)}function tryOnMounted$1($,z=!0){getCurrentInstance()?onMounted($):z?$():nextTick($)}function useTimeoutFn$1($,z,oe={}){const{immediate:ae=!0}=oe,le=ref(!1);let ue=null;function pe(){ue&&(clearTimeout(ue),ue=null)}function _e(){le.value=!1,pe()}function Ce(...$e){pe(),le.value=!0,ue=setTimeout(()=>{le.value=!1,ue=null,$(...$e)},resolveUnref(z))}return ae&&(le.value=!0,isClient$2&&Ce()),tryOnScopeDispose$2(_e),{isPending:readonly(le),start:Ce,stop:_e}}function unrefElement$1($){var z;const oe=resolveUnref($);return(z=oe==null?void 0:oe.$el)!=null?z:oe}const defaultWindow$1=isClient$2?window:void 0,defaultDocument=isClient$2?window.document:void 0;function useEventListener$1(...$){let z,oe,ae,le;if(isString$6($[0])||Array.isArray($[0])?([oe,ae,le]=$,z=defaultWindow$1):[z,oe,ae,le]=$,!z)return noop$7;Array.isArray(oe)||(oe=[oe]),Array.isArray(ae)||(ae=[ae]);const ue=[],pe=()=>{ue.forEach(xe=>xe()),ue.length=0},_e=(xe,Ie,Fe,ze)=>(xe.addEventListener(Ie,Fe,ze),()=>xe.removeEventListener(Ie,Fe,ze)),Ce=watch(()=>[unrefElement$1(z),resolveUnref(le)],([xe,Ie])=>{pe(),xe&&ue.push(...oe.flatMap(Fe=>ae.map(ze=>_e(xe,Fe,ze,Ie))))},{immediate:!0,flush:"post"}),$e=()=>{Ce(),pe()};return tryOnScopeDispose$2($e),$e}let _iOSWorkaround=!1;function onClickOutside($,z,oe={}){const{window:ae=defaultWindow$1,ignore:le=[],capture:ue=!0,detectIframe:pe=!1}=oe;if(!ae)return;isIOS$1&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(ae.document.body.children).forEach(Fe=>Fe.addEventListener("click",noop$7)));let _e=!0;const Ce=Fe=>le.some(ze=>{if(typeof ze=="string")return Array.from(ae.document.querySelectorAll(ze)).some(Ue=>Ue===Fe.target||Fe.composedPath().includes(Ue));{const Ue=unrefElement$1(ze);return Ue&&(Fe.target===Ue||Fe.composedPath().includes(Ue))}}),xe=[useEventListener$1(ae,"click",Fe=>{const ze=unrefElement$1($);if(!(!ze||ze===Fe.target||Fe.composedPath().includes(ze))){if(Fe.detail===0&&(_e=!Ce(Fe)),!_e){_e=!0;return}z(Fe)}},{passive:!0,capture:ue}),useEventListener$1(ae,"pointerdown",Fe=>{const ze=unrefElement$1($);ze&&(_e=!Fe.composedPath().includes(ze)&&!Ce(Fe))},{passive:!0}),pe&&useEventListener$1(ae,"blur",Fe=>{var ze;const Ue=unrefElement$1($);((ze=ae.document.activeElement)==null?void 0:ze.tagName)==="IFRAME"&&!(Ue!=null&&Ue.contains(ae.document.activeElement))&&z(Fe)})].filter(Boolean);return()=>xe.forEach(Fe=>Fe())}function useSupported($,z=!1){const oe=ref(),ae=()=>oe.value=!!$();return ae(),tryOnMounted$1(ae,z),oe}function cloneFnJSON($){return JSON.parse(JSON.stringify($))}const _global$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey$1="__vueuse_ssr_handlers__";_global$2[globalKey$1]=_global$2[globalKey$1]||{};function useCssVar($,z,{window:oe=defaultWindow$1,initialValue:ae=""}={}){const le=ref(ae),ue=computed(()=>{var pe;return unrefElement$1(z)||((pe=oe==null?void 0:oe.document)==null?void 0:pe.documentElement)});return watch([ue,()=>resolveUnref($)],([pe,_e])=>{var Ce;if(pe&&oe){const $e=(Ce=oe.getComputedStyle(pe).getPropertyValue(_e))==null?void 0:Ce.trim();le.value=$e||ae}},{immediate:!0}),watch(le,pe=>{var _e;(_e=ue.value)!=null&&_e.style&&ue.value.style.setProperty(resolveUnref($),pe)}),le}function useDocumentVisibility({document:$=defaultDocument}={}){if(!$)return ref("visible");const z=ref($.visibilityState);return useEventListener$1($,"visibilitychange",()=>{z.value=$.visibilityState}),z}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=($,z)=>{var oe={};for(var ae in $)__hasOwnProp$g.call($,ae)&&z.indexOf(ae)<0&&(oe[ae]=$[ae]);if($!=null&&__getOwnPropSymbols$g)for(var ae of __getOwnPropSymbols$g($))z.indexOf(ae)<0&&__propIsEnum$g.call($,ae)&&(oe[ae]=$[ae]);return oe};function useResizeObserver($,z,oe={}){const ae=oe,{window:le=defaultWindow$1}=ae,ue=__objRest$2(ae,["window"]);let pe;const _e=useSupported(()=>le&&"ResizeObserver"in le),Ce=()=>{pe&&(pe.disconnect(),pe=void 0)},$e=watch(()=>unrefElement$1($),Ie=>{Ce(),_e.value&&le&&Ie&&(pe=new ResizeObserver(z),pe.observe(Ie,ue))},{immediate:!0,flush:"post"}),xe=()=>{Ce(),$e()};return tryOnScopeDispose$2(xe),{isSupported:_e,stop:xe}}function useElementBounding($,z={}){const{reset:oe=!0,windowResize:ae=!0,windowScroll:le=!0,immediate:ue=!0}=z,pe=ref(0),_e=ref(0),Ce=ref(0),$e=ref(0),xe=ref(0),Ie=ref(0),Fe=ref(0),ze=ref(0);function Ue(){const qe=unrefElement$1($);if(!qe){oe&&(pe.value=0,_e.value=0,Ce.value=0,$e.value=0,xe.value=0,Ie.value=0,Fe.value=0,ze.value=0);return}const At=qe.getBoundingClientRect();pe.value=At.height,_e.value=At.bottom,Ce.value=At.left,$e.value=At.right,xe.value=At.top,Ie.value=At.width,Fe.value=At.x,ze.value=At.y}return useResizeObserver($,Ue),watch(()=>unrefElement$1($),qe=>!qe&&Ue()),le&&useEventListener$1("scroll",Ue,{capture:!0,passive:!0}),ae&&useEventListener$1("resize",Ue,{passive:!0}),tryOnMounted$1(()=>{ue&&Ue()}),{height:pe,bottom:_e,left:Ce,right:$e,top:xe,width:Ie,x:Fe,y:ze,update:Ue}}var SwipeDirection$1;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection$1||(SwipeDirection$1={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=($,z,oe)=>z in $?__defProp($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe,__spreadValues=($,z)=>{for(var oe in z||(z={}))__hasOwnProp.call(z,oe)&&__defNormalProp($,oe,z[oe]);if(__getOwnPropSymbols)for(var oe of __getOwnPropSymbols(z))__propIsEnum.call(z,oe)&&__defNormalProp($,oe,z[oe]);return $};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity$2},_TransitionPresets);function useVModel($,z,oe,ae={}){var le,ue,pe;const{clone:_e=!1,passive:Ce=!1,eventName:$e,deep:xe=!1,defaultValue:Ie}=ae,Fe=getCurrentInstance(),ze=oe||(Fe==null?void 0:Fe.emit)||((le=Fe==null?void 0:Fe.$emit)==null?void 0:le.bind(Fe))||((pe=(ue=Fe==null?void 0:Fe.proxy)==null?void 0:ue.$emit)==null?void 0:pe.bind(Fe==null?void 0:Fe.proxy));let Ue=$e;z||(z="modelValue"),Ue=$e||Ue||`update:${z.toString()}`;const qe=Lt=>_e?isFunction$4(_e)?_e(Lt):cloneFnJSON(Lt):Lt,At=()=>isDef($[z])?qe($[z]):Ie;if(Ce){const Lt=At(),hn=ref(Lt);return watch(()=>$[z],vn=>hn.value=qe(vn)),watch(hn,vn=>{(vn!==$[z]||xe)&&ze(Ue,vn)},{deep:xe}),hn}else return computed({get(){return At()},set(Lt){ze(Ue,Lt)}})}function useWindowFocus({window:$=defaultWindow$1}={}){if(!$)return ref(!1);const z=ref($.document.hasFocus());return useEventListener$1($,"blur",()=>{z.value=!1}),useEventListener$1($,"focus",()=>{z.value=!0}),z}function useWindowSize($={}){const{window:z=defaultWindow$1,initialWidth:oe=1/0,initialHeight:ae=1/0,listenOrientation:le=!0,includeScrollbar:ue=!0}=$,pe=ref(oe),_e=ref(ae),Ce=()=>{z&&(ue?(pe.value=z.innerWidth,_e.value=z.innerHeight):(pe.value=z.document.documentElement.clientWidth,_e.value=z.document.documentElement.clientHeight))};return Ce(),tryOnMounted$1(Ce),useEventListener$1("resize",Ce,{passive:!0}),le&&useEventListener$1("orientationchange",Ce,{passive:!0}),{width:pe,height:_e}}const isFirefox=()=>isClient$2&&/firefox/i.test(window.navigator.userAgent),isInContainer=($,z)=>{if(!isClient$2||!$||!z)return!1;const oe=$.getBoundingClientRect();let ae;return z instanceof Element?ae=z.getBoundingClientRect():ae={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},oe.top<ae.bottom&&oe.bottom>ae.top&&oe.right>ae.left&&oe.left<ae.right},getOffsetTop=$=>{let z=0,oe=$;for(;oe;)z+=oe.offsetTop,oe=oe.offsetParent;return z},getOffsetTopDistance=($,z)=>Math.abs(getOffsetTop($)-getOffsetTop(z)),getClientXY=$=>{let z,oe;return $.type==="touchend"?(oe=$.changedTouches[0].clientY,z=$.changedTouches[0].clientX):$.type.startsWith("touch")?(oe=$.touches[0].clientY,z=$.touches[0].clientX):(oe=$.clientY,z=$.clientX),{clientX:z,clientY:oe}};var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$2=root$1.Symbol;const Symbol$3=Symbol$2;var objectProto$f=Object.prototype,hasOwnProperty$e=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag($){var z=hasOwnProperty$e.call($,symToStringTag$1),oe=$[symToStringTag$1];try{$[symToStringTag$1]=void 0;var ae=!0}catch{}var le=nativeObjectToString$1.call($);return ae&&(z?$[symToStringTag$1]=oe:delete $[symToStringTag$1]),le}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$2($){return nativeObjectToString.call($)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag($){return $==null?$===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object($)?getRawTag($):objectToString$2($)}function isObjectLike($){return $!=null&&typeof $=="object"}var symbolTag$3="[object Symbol]";function isSymbol$1($){return typeof $=="symbol"||isObjectLike($)&&baseGetTag($)==symbolTag$3}function arrayMap($,z){for(var oe=-1,ae=$==null?0:$.length,le=Array(ae);++oe<ae;)le[oe]=z($[oe],oe,$);return le}var isArray$a=Array.isArray;const isArray$b=isArray$a;var INFINITY$3=1/0,symbolProto$2=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString($){if(typeof $=="string")return $;if(isArray$b($))return arrayMap($,baseToString)+"";if(isSymbol$1($))return symbolToString?symbolToString.call($):"";var z=$+"";return z=="0"&&1/$==-INFINITY$3?"-0":z}var reWhitespace=/\s/;function trimmedEndIndex($){for(var z=$.length;z--&&reWhitespace.test($.charAt(z)););return z}var reTrimStart=/^\s+/;function baseTrim($){return $&&$.slice(0,trimmedEndIndex($)+1).replace(reTrimStart,"")}function isObject$7($){var z=typeof $;return $!=null&&(z=="object"||z=="function")}var NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber($){if(typeof $=="number")return $;if(isSymbol$1($))return NAN;if(isObject$7($)){var z=typeof $.valueOf=="function"?$.valueOf():$;$=isObject$7(z)?z+"":z}if(typeof $!="string")return $===0?$:+$;$=baseTrim($);var oe=reIsBinary.test($);return oe||reIsOctal.test($)?freeParseInt($.slice(2),oe?2:8):reIsBadHex.test($)?NAN:+$}function identity$1($){return $}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3($){if(!isObject$7($))return!1;var z=baseGetTag($);return z==funcTag$2||z==genTag$1||z==asyncTag||z==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var $=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}();function isMasked($){return!!maskSrcKey&&maskSrcKey in $}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource($){if($!=null){try{return funcToString$2.call($)}catch{}try{return $+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$d=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$d=objectProto$d.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative($){if(!isObject$7($)||isMasked($))return!1;var z=isFunction$3($)?reIsNative:reIsHostCtor;return z.test(toSource($))}function getValue$1($,z){return $==null?void 0:$[z]}function getNative($,z){var oe=getValue$1($,z);return baseIsNative(oe)?oe:void 0}var WeakMap$3=getNative(root$1,"WeakMap");const WeakMap$4=WeakMap$3;var objectCreate=Object.create,baseCreate=function(){function $(){}return function(z){if(!isObject$7(z))return{};if(objectCreate)return objectCreate(z);$.prototype=z;var oe=new $;return $.prototype=void 0,oe}}();const baseCreate$1=baseCreate;function apply$1($,z,oe){switch(oe.length){case 0:return $.call(z);case 1:return $.call(z,oe[0]);case 2:return $.call(z,oe[0],oe[1]);case 3:return $.call(z,oe[0],oe[1],oe[2])}return $.apply(z,oe)}function noop$6(){}function copyArray($,z){var oe=-1,ae=$.length;for(z||(z=Array(ae));++oe<ae;)z[oe]=$[oe];return z}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut($){var z=0,oe=0;return function(){var ae=nativeNow(),le=HOT_SPAN-(ae-oe);if(oe=ae,le>0){if(++z>=HOT_COUNT)return arguments[0]}else z=0;return $.apply(void 0,arguments)}}function constant($){return function(){return $}}var defineProperty=function(){try{var $=getNative(Object,"defineProperty");return $({},"",{}),$}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function($,z){return defineProperty$1($,"toString",{configurable:!0,enumerable:!1,value:constant(z),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach($,z){for(var oe=-1,ae=$==null?0:$.length;++oe<ae&&z($[oe],oe,$)!==!1;);return $}function baseFindIndex($,z,oe,ae){for(var le=$.length,ue=oe+(ae?1:-1);ae?ue--:++ue<le;)if(z($[ue],ue,$))return ue;return-1}function baseIsNaN($){return $!==$}function strictIndexOf($,z,oe){for(var ae=oe-1,le=$.length;++ae<le;)if($[ae]===z)return ae;return-1}function baseIndexOf($,z,oe){return z===z?strictIndexOf($,z,oe):baseFindIndex($,baseIsNaN,oe)}function arrayIncludes($,z){var oe=$==null?0:$.length;return!!oe&&baseIndexOf($,z,0)>-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex($,z){var oe=typeof $;return z=z??MAX_SAFE_INTEGER$2,!!z&&(oe=="number"||oe!="symbol"&&reIsUint.test($))&&$>-1&&$%1==0&&$<z}function baseAssignValue($,z,oe){z=="__proto__"&&defineProperty$1?defineProperty$1($,z,{configurable:!0,enumerable:!0,value:oe,writable:!0}):$[z]=oe}function eq($,z){return $===z||$!==$&&z!==z}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty;function assignValue($,z,oe){var ae=$[z];(!(hasOwnProperty$c.call($,z)&&eq(ae,oe))||oe===void 0&&!(z in $))&&baseAssignValue($,z,oe)}function copyObject($,z,oe,ae){var le=!oe;oe||(oe={});for(var ue=-1,pe=z.length;++ue<pe;){var _e=z[ue],Ce=ae?ae(oe[_e],$[_e],_e,oe,$):void 0;Ce===void 0&&(Ce=$[_e]),le?baseAssignValue(oe,_e,Ce):assignValue(oe,_e,Ce)}return oe}var nativeMax$1=Math.max;function overRest($,z,oe){return z=nativeMax$1(z===void 0?$.length-1:z,0),function(){for(var ae=arguments,le=-1,ue=nativeMax$1(ae.length-z,0),pe=Array(ue);++le<ue;)pe[le]=ae[z+le];le=-1;for(var _e=Array(z+1);++le<z;)_e[le]=ae[le];return _e[z]=oe(pe),apply$1($,this,_e)}}function baseRest($,z){return setToString$1(overRest($,z,identity$1),$+"")}var MAX_SAFE_INTEGER$1=9007199254740991;function isLength($){return typeof $=="number"&&$>-1&&$%1==0&&$<=MAX_SAFE_INTEGER$1}function isArrayLike$1($){return $!=null&&isLength($.length)&&!isFunction$3($)}function isIterateeCall($,z,oe){if(!isObject$7(oe))return!1;var ae=typeof z;return(ae=="number"?isArrayLike$1(oe)&&isIndex(z,oe.length):ae=="string"&&z in oe)?eq(oe[z],$):!1}function createAssigner($){return baseRest(function(z,oe){var ae=-1,le=oe.length,ue=le>1?oe[le-1]:void 0,pe=le>2?oe[2]:void 0;for(ue=$.length>3&&typeof ue=="function"?(le--,ue):void 0,pe&&isIterateeCall(oe[0],oe[1],pe)&&(ue=le<3?void 0:ue,le=1),z=Object(z);++ae<le;){var _e=oe[ae];_e&&$(z,_e,ae,ue)}return z})}var objectProto$b=Object.prototype;function isPrototype($){var z=$&&$.constructor,oe=typeof z=="function"&&z.prototype||objectProto$b;return $===oe}function baseTimes($,z){for(var oe=-1,ae=Array($);++oe<$;)ae[oe]=z(oe);return ae}var argsTag$3="[object Arguments]";function baseIsArguments($){return isObjectLike($)&&baseGetTag($)==argsTag$3}var objectProto$a=Object.prototype,hasOwnProperty$b=objectProto$a.hasOwnProperty,propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function($){return isObjectLike($)&&hasOwnProperty$b.call($,"callee")&&!propertyIsEnumerable$1.call($,"callee")};const isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$2=nativeIsBuffer||stubFalse;const isBuffer$3=isBuffer$2;var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray($){return isObjectLike($)&&isLength($.length)&&!!typedArrayTags[baseGetTag($)]}function baseUnary($){return function(z){return $(z)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var $=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return $||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$3=isTypedArray$2;var objectProto$9=Object.prototype,hasOwnProperty$a=objectProto$9.hasOwnProperty;function arrayLikeKeys($,z){var oe=isArray$b($),ae=!oe&&isArguments$1($),le=!oe&&!ae&&isBuffer$3($),ue=!oe&&!ae&&!le&&isTypedArray$3($),pe=oe||ae||le||ue,_e=pe?baseTimes($.length,String):[],Ce=_e.length;for(var $e in $)(z||hasOwnProperty$a.call($,$e))&&!(pe&&($e=="length"||le&&($e=="offset"||$e=="parent")||ue&&($e=="buffer"||$e=="byteLength"||$e=="byteOffset")||isIndex($e,Ce)))&&_e.push($e);return _e}function overArg($,z){return function(oe){return $(z(oe))}}var nativeKeys=overArg(Object.keys,Object);const nativeKeys$1=nativeKeys;var objectProto$8=Object.prototype,hasOwnProperty$9=objectProto$8.hasOwnProperty;function baseKeys($){if(!isPrototype($))return nativeKeys$1($);var z=[];for(var oe in Object($))hasOwnProperty$9.call($,oe)&&oe!="constructor"&&z.push(oe);return z}function keys$1($){return isArrayLike$1($)?arrayLikeKeys($):baseKeys($)}function nativeKeysIn($){var z=[];if($!=null)for(var oe in Object($))z.push(oe);return z}var objectProto$7=Object.prototype,hasOwnProperty$8=objectProto$7.hasOwnProperty;function baseKeysIn($){if(!isObject$7($))return nativeKeysIn($);var z=isPrototype($),oe=[];for(var ae in $)ae=="constructor"&&(z||!hasOwnProperty$8.call($,ae))||oe.push(ae);return oe}function keysIn($){return isArrayLike$1($)?arrayLikeKeys($,!0):baseKeysIn($)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey($,z){if(isArray$b($))return!1;var oe=typeof $;return oe=="number"||oe=="symbol"||oe=="boolean"||$==null||isSymbol$1($)?!0:reIsPlainProp.test($)||!reIsDeepProp.test($)||z!=null&&$ in Object(z)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete($){var z=this.has($)&&delete this.__data__[$];return this.size-=z?1:0,z}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function hashGet($){var z=this.__data__;if(nativeCreate$1){var oe=z[$];return oe===HASH_UNDEFINED$2?void 0:oe}return hasOwnProperty$7.call(z,$)?z[$]:void 0}var objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function hashHas($){var z=this.__data__;return nativeCreate$1?z[$]!==void 0:hasOwnProperty$6.call(z,$)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet($,z){var oe=this.__data__;return this.size+=this.has($)?0:1,oe[$]=nativeCreate$1&&z===void 0?HASH_UNDEFINED$1:z,this}function Hash($){var z=-1,oe=$==null?0:$.length;for(this.clear();++z<oe;){var ae=$[z];this.set(ae[0],ae[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf($,z){for(var oe=$.length;oe--;)if(eq($[oe][0],z))return oe;return-1}var arrayProto$1=Array.prototype,splice=arrayProto$1.splice;function listCacheDelete($){var z=this.__data__,oe=assocIndexOf(z,$);if(oe<0)return!1;var ae=z.length-1;return oe==ae?z.pop():splice.call(z,oe,1),--this.size,!0}function listCacheGet$1($){var z=this.__data__,oe=assocIndexOf(z,$);return oe<0?void 0:z[oe][1]}function listCacheHas($){return assocIndexOf(this.__data__,$)>-1}function listCacheSet$1($,z){var oe=this.__data__,ae=assocIndexOf(oe,$);return ae<0?(++this.size,oe.push([$,z])):oe[ae][1]=z,this}function ListCache($){var z=-1,oe=$==null?0:$.length;for(this.clear();++z<oe;){var ae=$[z];this.set(ae[0],ae[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet$1;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet$1;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable($){var z=typeof $;return z=="string"||z=="number"||z=="symbol"||z=="boolean"?$!=="__proto__":$===null}function getMapData($,z){var oe=$.__data__;return isKeyable(z)?oe[typeof z=="string"?"string":"hash"]:oe.map}function mapCacheDelete($){var z=getMapData(this,$).delete($);return this.size-=z?1:0,z}function mapCacheGet($){return getMapData(this,$).get($)}function mapCacheHas($){return getMapData(this,$).has($)}function mapCacheSet($,z){var oe=getMapData(this,$),ae=oe.size;return oe.set($,z),this.size+=oe.size==ae?0:1,this}function MapCache($){var z=-1,oe=$==null?0:$.length;for(this.clear();++z<oe;){var ae=$[z];this.set(ae[0],ae[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$2="Expected a function";function memoize($,z){if(typeof $!="function"||z!=null&&typeof z!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var oe=function(){var ae=arguments,le=z?z.apply(this,ae):ae[0],ue=oe.cache;if(ue.has(le))return ue.get(le);var pe=$.apply(this,ae);return oe.cache=ue.set(le,pe)||ue,pe};return oe.cache=new(memoize.Cache||MapCache),oe}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped($){var z=memoize($,function(ae){return oe.size===MAX_MEMOIZE_SIZE&&oe.clear(),ae}),oe=z.cache;return z}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$1=memoizeCapped(function($){var z=[];return $.charCodeAt(0)===46&&z.push(""),$.replace(rePropName$1,function(oe,ae,le,ue){z.push(le?ue.replace(reEscapeChar$1,"$1"):ae||oe)}),z});const stringToPath$2=stringToPath$1;function toString$2($){return $==null?"":baseToString($)}function castPath($,z){return isArray$b($)?$:isKey($,z)?[$]:stringToPath$2(toString$2($))}var INFINITY$2=1/0;function toKey($){if(typeof $=="string"||isSymbol$1($))return $;var z=$+"";return z=="0"&&1/$==-INFINITY$2?"-0":z}function baseGet($,z){z=castPath(z,$);for(var oe=0,ae=z.length;$!=null&&oe<ae;)$=$[toKey(z[oe++])];return oe&&oe==ae?$:void 0}function get$1($,z,oe){var ae=$==null?void 0:baseGet($,z);return ae===void 0?oe:ae}function arrayPush($,z){for(var oe=-1,ae=z.length,le=$.length;++oe<ae;)$[le+oe]=z[oe];return $}var spreadableSymbol=Symbol$3?Symbol$3.isConcatSpreadable:void 0;function isFlattenable($){return isArray$b($)||isArguments$1($)||!!(spreadableSymbol&&$&&$[spreadableSymbol])}function baseFlatten($,z,oe,ae,le){var ue=-1,pe=$.length;for(oe||(oe=isFlattenable),le||(le=[]);++ue<pe;){var _e=$[ue];z>0&&oe(_e)?z>1?baseFlatten(_e,z-1,oe,ae,le):arrayPush(le,_e):ae||(le[le.length]=_e)}return le}function flatten($){var z=$==null?0:$.length;return z?baseFlatten($,1):[]}function flatRest($){return setToString$1(overRest($,void 0,flatten),$+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$5=objectProto$4.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$3($){if(!isObjectLike($)||baseGetTag($)!=objectTag$3)return!1;var z=getPrototype$1($);if(z===null)return!0;var oe=hasOwnProperty$5.call(z,"constructor")&&z.constructor;return typeof oe=="function"&&oe instanceof oe&&funcToString.call(oe)==objectCtorString}function castArray$1(){if(!arguments.length)return[];var $=arguments[0];return isArray$b($)?$:[$]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete($){var z=this.__data__,oe=z.delete($);return this.size=z.size,oe}function stackGet($){return this.__data__.get($)}function stackHas($){return this.__data__.has($)}var LARGE_ARRAY_SIZE$1=200;function stackSet($,z){var oe=this.__data__;if(oe instanceof ListCache){var ae=oe.__data__;if(!Map$2||ae.length<LARGE_ARRAY_SIZE$1-1)return ae.push([$,z]),this.size=++oe.size,this;oe=this.__data__=new MapCache(ae)}return oe.set($,z),this.size=oe.size,this}function Stack($){var z=this.__data__=new ListCache($);this.size=z.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign($,z){return $&©Object(z,keys$1(z),$)}function baseAssignIn($,z){return $&©Object(z,keysIn(z),$)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer($,z){if(z)return $.slice();var oe=$.length,ae=allocUnsafe?allocUnsafe(oe):new $.constructor(oe);return $.copy(ae),ae}function arrayFilter($,z){for(var oe=-1,ae=$==null?0:$.length,le=0,ue=[];++oe<ae;){var pe=$[oe];z(pe,oe,$)&&(ue[le++]=pe)}return ue}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function($){return $==null?[]:($=Object($),arrayFilter(nativeGetSymbols$1($),function(z){return propertyIsEnumerable.call($,z)}))}:stubArray;const getSymbols$1=getSymbols;function copySymbols($,z){return copyObject($,getSymbols$1($),z)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function($){for(var z=[];$;)arrayPush(z,getSymbols$1($)),$=getPrototype$1($);return z}:stubArray;const getSymbolsIn$1=getSymbolsIn;function copySymbolsIn($,z){return copyObject($,getSymbolsIn$1($),z)}function baseGetAllKeys($,z,oe){var ae=z($);return isArray$b($)?ae:arrayPush(ae,oe($))}function getAllKeys($){return baseGetAllKeys($,keys$1,getSymbols$1)}function getAllKeysIn($){return baseGetAllKeys($,keysIn,getSymbolsIn$1)}var DataView$3=getNative(root$1,"DataView");const DataView$4=DataView$3;var Promise$1=getNative(root$1,"Promise");const Promise$2=Promise$1;var Set$1=getNative(root$1,"Set");const Set$2=Set$1;var mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$4),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$4),getTag=baseGetTag;(DataView$4&&getTag(new DataView$4(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2)!=setTag$4||WeakMap$4&&getTag(new WeakMap$4)!=weakMapTag$1)&&(getTag=function($){var z=baseGetTag($),oe=z==objectTag$2?$.constructor:void 0,ae=oe?toSource(oe):"";if(ae)switch(ae){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return z});const getTag$1=getTag;var objectProto$2=Object.prototype,hasOwnProperty$4=objectProto$2.hasOwnProperty;function initCloneArray($){var z=$.length,oe=new $.constructor(z);return z&&typeof $[0]=="string"&&hasOwnProperty$4.call($,"index")&&(oe.index=$.index,oe.input=$.input),oe}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer($){var z=new $.constructor($.byteLength);return new Uint8Array$2(z).set(new Uint8Array$2($)),z}function cloneDataView($,z){var oe=z?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(oe,$.byteOffset,$.byteLength)}var reFlags=/\w*$/;function cloneRegExp($){var z=new $.constructor($.source,reFlags.exec($));return z.lastIndex=$.lastIndex,z}var symbolProto$1=Symbol$3?Symbol$3.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol($){return symbolValueOf$1?Object(symbolValueOf$1.call($)):{}}function cloneTypedArray($,z){var oe=z?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(oe,$.byteOffset,$.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag($,z,oe){var ae=$.constructor;switch(z){case arrayBufferTag$2:return cloneArrayBuffer($);case boolTag$2:case dateTag$2:return new ae(+$);case dataViewTag$2:return cloneDataView($,oe);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray($,oe);case mapTag$3:return new ae;case numberTag$2:case stringTag$2:return new ae($);case regexpTag$2:return cloneRegExp($);case setTag$3:return new ae;case symbolTag$2:return cloneSymbol($)}}function initCloneObject($){return typeof $.constructor=="function"&&!isPrototype($)?baseCreate$1(getPrototype$1($)):{}}var mapTag$2="[object Map]";function baseIsMap($){return isObjectLike($)&&getTag$1($)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;const isMap$2=isMap$1;var setTag$2="[object Set]";function baseIsSet($){return isObjectLike($)&&getTag$1($)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;const isSet$2=isSet$1;var CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone($,z,oe,ae,le,ue){var pe,_e=z&CLONE_DEEP_FLAG$1,Ce=z&CLONE_FLAT_FLAG,$e=z&CLONE_SYMBOLS_FLAG$2;if(oe&&(pe=le?oe($,ae,le,ue):oe($)),pe!==void 0)return pe;if(!isObject$7($))return $;var xe=isArray$b($);if(xe){if(pe=initCloneArray($),!_e)return copyArray($,pe)}else{var Ie=getTag$1($),Fe=Ie==funcTag||Ie==genTag;if(isBuffer$3($))return cloneBuffer($,_e);if(Ie==objectTag$1||Ie==argsTag$1||Fe&&!le){if(pe=Ce||Fe?{}:initCloneObject($),!_e)return Ce?copySymbolsIn($,baseAssignIn(pe,$)):copySymbols($,baseAssign(pe,$))}else{if(!cloneableTags[Ie])return le?$:{};pe=initCloneByTag($,Ie,_e)}}ue||(ue=new Stack);var ze=ue.get($);if(ze)return ze;ue.set($,pe),isSet$2($)?$.forEach(function(At){pe.add(baseClone(At,z,oe,At,$,ue))}):isMap$2($)&&$.forEach(function(At,Lt){pe.set(Lt,baseClone(At,z,oe,Lt,$,ue))});var Ue=$e?Ce?getAllKeysIn:getAllKeys:Ce?keysIn:keys$1,qe=xe?void 0:Ue($);return arrayEach(qe||$,function(At,Lt){qe&&(Lt=At,At=$[Lt]),assignValue(pe,Lt,baseClone(At,z,oe,Lt,$,ue))}),pe}var CLONE_SYMBOLS_FLAG$1=4;function clone$4($){return baseClone($,CLONE_SYMBOLS_FLAG$1)}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep($){return baseClone($,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd($){return this.__data__.set($,HASH_UNDEFINED),this}function setCacheHas($){return this.__data__.has($)}function SetCache($){var z=-1,oe=$==null?0:$.length;for(this.__data__=new MapCache;++z<oe;)this.add($[z])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome($,z){for(var oe=-1,ae=$==null?0:$.length;++oe<ae;)if(z($[oe],oe,$))return!0;return!1}function cacheHas($,z){return $.has(z)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays($,z,oe,ae,le,ue){var pe=oe&COMPARE_PARTIAL_FLAG$5,_e=$.length,Ce=z.length;if(_e!=Ce&&!(pe&&Ce>_e))return!1;var $e=ue.get($),xe=ue.get(z);if($e&&xe)return $e==z&&xe==$;var Ie=-1,Fe=!0,ze=oe&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(ue.set($,z),ue.set(z,$);++Ie<_e;){var Ue=$[Ie],qe=z[Ie];if(ae)var At=pe?ae(qe,Ue,Ie,z,$,ue):ae(Ue,qe,Ie,$,z,ue);if(At!==void 0){if(At)continue;Fe=!1;break}if(ze){if(!arraySome(z,function(Lt,hn){if(!cacheHas(ze,hn)&&(Ue===Lt||le(Ue,Lt,oe,ae,ue)))return ze.push(hn)})){Fe=!1;break}}else if(!(Ue===qe||le(Ue,qe,oe,ae,ue))){Fe=!1;break}}return ue.delete($),ue.delete(z),Fe}function mapToArray($){var z=-1,oe=Array($.size);return $.forEach(function(ae,le){oe[++z]=[le,ae]}),oe}function setToArray($){var z=-1,oe=Array($.size);return $.forEach(function(ae){oe[++z]=ae}),oe}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$3?Symbol$3.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag($,z,oe,ae,le,ue,pe){switch(oe){case dataViewTag:if($.byteLength!=z.byteLength||$.byteOffset!=z.byteOffset)return!1;$=$.buffer,z=z.buffer;case arrayBufferTag:return!($.byteLength!=z.byteLength||!ue(new Uint8Array$2($),new Uint8Array$2(z)));case boolTag:case dateTag:case numberTag:return eq(+$,+z);case errorTag:return $.name==z.name&&$.message==z.message;case regexpTag:case stringTag:return $==z+"";case mapTag:var _e=mapToArray;case setTag:var Ce=ae&COMPARE_PARTIAL_FLAG$4;if(_e||(_e=setToArray),$.size!=z.size&&!Ce)return!1;var $e=pe.get($);if($e)return $e==z;ae|=COMPARE_UNORDERED_FLAG$2,pe.set($,z);var xe=equalArrays(_e($),_e(z),ae,le,ue,pe);return pe.delete($),xe;case symbolTag:if(symbolValueOf)return symbolValueOf.call($)==symbolValueOf.call(z)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$3=objectProto$1.hasOwnProperty;function equalObjects($,z,oe,ae,le,ue){var pe=oe&COMPARE_PARTIAL_FLAG$3,_e=getAllKeys($),Ce=_e.length,$e=getAllKeys(z),xe=$e.length;if(Ce!=xe&&!pe)return!1;for(var Ie=Ce;Ie--;){var Fe=_e[Ie];if(!(pe?Fe in z:hasOwnProperty$3.call(z,Fe)))return!1}var ze=ue.get($),Ue=ue.get(z);if(ze&&Ue)return ze==z&&Ue==$;var qe=!0;ue.set($,z),ue.set(z,$);for(var At=pe;++Ie<Ce;){Fe=_e[Ie];var Lt=$[Fe],hn=z[Fe];if(ae)var vn=pe?ae(hn,Lt,Fe,z,$,ue):ae(Lt,hn,Fe,$,z,ue);if(!(vn===void 0?Lt===hn||le(Lt,hn,oe,ae,ue):vn)){qe=!1;break}At||(At=Fe=="constructor")}if(qe&&!At){var _n=$.constructor,bn=z.constructor;_n!=bn&&"constructor"in $&&"constructor"in z&&!(typeof _n=="function"&&_n instanceof _n&&typeof bn=="function"&&bn instanceof bn)&&(qe=!1)}return ue.delete($),ue.delete(z),qe}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$2=objectProto.hasOwnProperty;function baseIsEqualDeep($,z,oe,ae,le,ue){var pe=isArray$b($),_e=isArray$b(z),Ce=pe?arrayTag:getTag$1($),$e=_e?arrayTag:getTag$1(z);Ce=Ce==argsTag?objectTag:Ce,$e=$e==argsTag?objectTag:$e;var xe=Ce==objectTag,Ie=$e==objectTag,Fe=Ce==$e;if(Fe&&isBuffer$3($)){if(!isBuffer$3(z))return!1;pe=!0,xe=!1}if(Fe&&!xe)return ue||(ue=new Stack),pe||isTypedArray$3($)?equalArrays($,z,oe,ae,le,ue):equalByTag($,z,Ce,oe,ae,le,ue);if(!(oe&COMPARE_PARTIAL_FLAG$2)){var ze=xe&&hasOwnProperty$2.call($,"__wrapped__"),Ue=Ie&&hasOwnProperty$2.call(z,"__wrapped__");if(ze||Ue){var qe=ze?$.value():$,At=Ue?z.value():z;return ue||(ue=new Stack),le(qe,At,oe,ae,ue)}}return Fe?(ue||(ue=new Stack),equalObjects($,z,oe,ae,le,ue)):!1}function baseIsEqual($,z,oe,ae,le){return $===z?!0:$==null||z==null||!isObjectLike($)&&!isObjectLike(z)?$!==$&&z!==z:baseIsEqualDeep($,z,oe,ae,baseIsEqual,le)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch($,z,oe,ae){var le=oe.length,ue=le,pe=!ae;if($==null)return!ue;for($=Object($);le--;){var _e=oe[le];if(pe&&_e[2]?_e[1]!==$[_e[0]]:!(_e[0]in $))return!1}for(;++le<ue;){_e=oe[le];var Ce=_e[0],$e=$[Ce],xe=_e[1];if(pe&&_e[2]){if($e===void 0&&!(Ce in $))return!1}else{var Ie=new Stack;if(ae)var Fe=ae($e,xe,Ce,$,z,Ie);if(!(Fe===void 0?baseIsEqual(xe,$e,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,ae,Ie):Fe))return!1}}return!0}function isStrictComparable($){return $===$&&!isObject$7($)}function getMatchData($){for(var z=keys$1($),oe=z.length;oe--;){var ae=z[oe],le=$[ae];z[oe]=[ae,le,isStrictComparable(le)]}return z}function matchesStrictComparable($,z){return function(oe){return oe==null?!1:oe[$]===z&&(z!==void 0||$ in Object(oe))}}function baseMatches($){var z=getMatchData($);return z.length==1&&z[0][2]?matchesStrictComparable(z[0][0],z[0][1]):function(oe){return oe===$||baseIsMatch(oe,$,z)}}function baseHasIn($,z){return $!=null&&z in Object($)}function hasPath($,z,oe){z=castPath(z,$);for(var ae=-1,le=z.length,ue=!1;++ae<le;){var pe=toKey(z[ae]);if(!(ue=$!=null&&oe($,pe)))break;$=$[pe]}return ue||++ae!=le?ue:(le=$==null?0:$.length,!!le&&isLength(le)&&isIndex(pe,le)&&(isArray$b($)||isArguments$1($)))}function hasIn($,z){return $!=null&&hasPath($,z,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty($,z){return isKey($)&&isStrictComparable(z)?matchesStrictComparable(toKey($),z):function(oe){var ae=get$1(oe,$);return ae===void 0&&ae===z?hasIn(oe,$):baseIsEqual(z,ae,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty($){return function(z){return z==null?void 0:z[$]}}function basePropertyDeep($){return function(z){return baseGet(z,$)}}function property($){return isKey($)?baseProperty(toKey($)):basePropertyDeep($)}function baseIteratee($){return typeof $=="function"?$:$==null?identity$1:typeof $=="object"?isArray$b($)?baseMatchesProperty($[0],$[1]):baseMatches($):property($)}function createBaseFor($){return function(z,oe,ae){for(var le=-1,ue=Object(z),pe=ae(z),_e=pe.length;_e--;){var Ce=pe[$?_e:++le];if(oe(ue[Ce],Ce,ue)===!1)break}return z}}var baseFor=createBaseFor();const baseFor$1=baseFor;function baseForOwn($,z){return $&&baseFor$1($,z,keys$1)}function createBaseEach($,z){return function(oe,ae){if(oe==null)return oe;if(!isArrayLike$1(oe))return $(oe,ae);for(var le=oe.length,ue=z?le:-1,pe=Object(oe);(z?ue--:++ue<le)&&ae(pe[ue],ue,pe)!==!1;);return oe}}var baseEach=createBaseEach(baseForOwn);const baseEach$1=baseEach;var now=function(){return root$1.Date.now()};const now$1=now;var FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce($,z,oe){var ae,le,ue,pe,_e,Ce,$e=0,xe=!1,Ie=!1,Fe=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT$1);z=toNumber(z)||0,isObject$7(oe)&&(xe=!!oe.leading,Ie="maxWait"in oe,ue=Ie?nativeMax(toNumber(oe.maxWait)||0,z):ue,Fe="trailing"in oe?!!oe.trailing:Fe);function ze(Sn){var Cn=ae,En=le;return ae=le=void 0,$e=Sn,pe=$.apply(En,Cn),pe}function Ue(Sn){return $e=Sn,_e=setTimeout(Lt,z),xe?ze(Sn):pe}function qe(Sn){var Cn=Sn-Ce,En=Sn-$e,$n=z-Cn;return Ie?nativeMin($n,ue-En):$n}function At(Sn){var Cn=Sn-Ce,En=Sn-$e;return Ce===void 0||Cn>=z||Cn<0||Ie&&En>=ue}function Lt(){var Sn=now$1();if(At(Sn))return hn(Sn);_e=setTimeout(Lt,qe(Sn))}function hn(Sn){return _e=void 0,Fe&&ae?ze(Sn):(ae=le=void 0,pe)}function vn(){_e!==void 0&&clearTimeout(_e),$e=0,ae=Ce=le=_e=void 0}function _n(){return _e===void 0?pe:hn(now$1())}function bn(){var Sn=now$1(),Cn=At(Sn);if(ae=arguments,le=this,Ce=Sn,Cn){if(_e===void 0)return Ue(Ce);if(Ie)return clearTimeout(_e),_e=setTimeout(Lt,z),ze(Ce)}return _e===void 0&&(_e=setTimeout(Lt,z)),pe}return bn.cancel=vn,bn.flush=_n,bn}function assignMergeValue($,z,oe){(oe!==void 0&&!eq($[z],oe)||oe===void 0&&!(z in $))&&baseAssignValue($,z,oe)}function isArrayLikeObject($){return isObjectLike($)&&isArrayLike$1($)}function safeGet($,z){if(!(z==="constructor"&&typeof $[z]=="function")&&z!="__proto__")return $[z]}function toPlainObject($){return copyObject($,keysIn($))}function baseMergeDeep($,z,oe,ae,le,ue,pe){var _e=safeGet($,oe),Ce=safeGet(z,oe),$e=pe.get(Ce);if($e){assignMergeValue($,oe,$e);return}var xe=ue?ue(_e,Ce,oe+"",$,z,pe):void 0,Ie=xe===void 0;if(Ie){var Fe=isArray$b(Ce),ze=!Fe&&isBuffer$3(Ce),Ue=!Fe&&!ze&&isTypedArray$3(Ce);xe=Ce,Fe||ze||Ue?isArray$b(_e)?xe=_e:isArrayLikeObject(_e)?xe=copyArray(_e):ze?(Ie=!1,xe=cloneBuffer(Ce,!0)):Ue?(Ie=!1,xe=cloneTypedArray(Ce,!0)):xe=[]:isPlainObject$3(Ce)||isArguments$1(Ce)?(xe=_e,isArguments$1(_e)?xe=toPlainObject(_e):(!isObject$7(_e)||isFunction$3(_e))&&(xe=initCloneObject(Ce))):Ie=!1}Ie&&(pe.set(Ce,xe),le(xe,Ce,ae,ue,pe),pe.delete(Ce)),assignMergeValue($,oe,xe)}function baseMerge($,z,oe,ae,le){$!==z&&baseFor$1(z,function(ue,pe){if(le||(le=new Stack),isObject$7(ue))baseMergeDeep($,z,pe,oe,baseMerge,ae,le);else{var _e=ae?ae(safeGet($,pe),ue,pe+"",$,z,le):void 0;_e===void 0&&(_e=ue),assignMergeValue($,pe,_e)}},keysIn)}function arrayIncludesWith($,z,oe){for(var ae=-1,le=$==null?0:$.length;++ae<le;)if(oe(z,$[ae]))return!0;return!1}function baseMap($,z){var oe=-1,ae=isArrayLike$1($)?Array($.length):[];return baseEach$1($,function(le,ue,pe){ae[++oe]=z(le,ue,pe)}),ae}function map$3($,z){var oe=isArray$b($)?arrayMap:baseMap;return oe($,baseIteratee(z))}function flatMap($,z){return baseFlatten(map$3($,z),1)}var INFINITY$1=1/0;function flattenDeep($){var z=$==null?0:$.length;return z?baseFlatten($,INFINITY$1):[]}function fromPairs($){for(var z=-1,oe=$==null?0:$.length,ae={};++z<oe;){var le=$[z];ae[le[0]]=le[1]}return ae}function isEqual$1($,z){return baseIsEqual($,z)}function isNil($){return $==null}function isUndefined$2($){return $===void 0}var merge$3=createAssigner(function($,z,oe){baseMerge($,z,oe)});const merge$4=merge$3;function baseSet($,z,oe,ae){if(!isObject$7($))return $;z=castPath(z,$);for(var le=-1,ue=z.length,pe=ue-1,_e=$;_e!=null&&++le<ue;){var Ce=toKey(z[le]),$e=oe;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return $;if(le!=pe){var xe=_e[Ce];$e=ae?ae(xe,Ce,_e):void 0,$e===void 0&&($e=isObject$7(xe)?xe:isIndex(z[le+1])?[]:{})}assignValue(_e,Ce,$e),_e=_e[Ce]}return $}function basePickBy($,z,oe){for(var ae=-1,le=z.length,ue={};++ae<le;){var pe=z[ae],_e=baseGet($,pe);oe(_e,pe)&&baseSet(ue,castPath(pe,$),_e)}return ue}function basePick($,z){return basePickBy($,z,function(oe,ae){return hasIn($,ae)})}var pick=flatRest(function($,z){return $==null?{}:basePick($,z)});const pick$1=pick;function set$3($,z,oe){return $==null?$:baseSet($,z,oe)}var FUNC_ERROR_TEXT="Expected a function";function throttle$1($,z,oe){var ae=!0,le=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$7(oe)&&(ae="leading"in oe?!!oe.leading:ae,le="trailing"in oe?!!oe.trailing:le),debounce($,z,{leading:ae,maxWait:z,trailing:le})}var INFINITY=1/0,createSet=Set$2&&1/setToArray(new Set$2([,-0]))[1]==INFINITY?function($){return new Set$2($)}:noop$6;const createSet$1=createSet;var LARGE_ARRAY_SIZE=200;function baseUniq($,z,oe){var ae=-1,le=arrayIncludes,ue=$.length,pe=!0,_e=[],Ce=_e;if(oe)pe=!1,le=arrayIncludesWith;else if(ue>=LARGE_ARRAY_SIZE){var $e=z?null:createSet$1($);if($e)return setToArray($e);pe=!1,le=cacheHas,Ce=new SetCache}else Ce=z?[]:_e;e:for(;++ae<ue;){var xe=$[ae],Ie=z?z(xe):xe;if(xe=oe||xe!==0?xe:0,pe&&Ie===Ie){for(var Fe=Ce.length;Fe--;)if(Ce[Fe]===Ie)continue e;z&&Ce.push(Ie),_e.push(xe)}else le(Ce,Ie,oe)||(Ce!==_e&&Ce.push(Ie),_e.push(xe))}return _e}var union=baseRest(function($){return baseUniq(baseFlatten($,1,isArrayLikeObject,!0))});const union$1=union,isUndefined$1=$=>$===void 0,isBoolean$3=$=>typeof $=="boolean",isNumber$5=$=>typeof $=="number",isEmpty=$=>!$&&$!==0||isArray$c($)&&$.length===0||isObject$8($)&&!Object.keys($).length,isElement$2=$=>typeof Element>"u"?!1:$ instanceof Element,isPropAbsent=$=>isNil($),isStringNumber=$=>isString$7($)?!Number.isNaN(Number($)):!1,escapeStringRegexp=($="")=>$.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize$1=$=>capitalize$2($),keysOf=$=>Object.keys($),entriesOf=$=>Object.entries($),getProp=($,z,oe)=>({get value(){return get$1($,z,oe)},set value(ae){set$3($,z,ae)}});class ElementPlusError extends Error{constructor(z){super(z),this.name="ElementPlusError"}}function throwError$1($,z){throw new ElementPlusError(`[${$}] ${z}`)}function debugWarn($,z){}const classNameToArray=($="")=>$.split(" ").filter(z=>!!z.trim()),hasClass=($,z)=>{if(!$||!z)return!1;if(z.includes(" "))throw new Error("className should not contain space.");return $.classList.contains(z)},addClass=($,z)=>{!$||!z.trim()||$.classList.add(...classNameToArray(z))},removeClass=($,z)=>{!$||!z.trim()||$.classList.remove(...classNameToArray(z))},getStyle$1=($,z)=>{var oe;if(!isClient$2||!$||!z)return"";let ae=camelize(z);ae==="float"&&(ae="cssFloat");try{const le=$.style[ae];if(le)return le;const ue=(oe=document.defaultView)==null?void 0:oe.getComputedStyle($,"");return ue?ue[ae]:""}catch{return $.style[ae]}};function addUnit($,z="px"){if(!$)return"";if(isNumber$5($)||isStringNumber($))return`${$}${z}`;if(isString$7($))return $}const isScroll=($,z)=>{if(!isClient$2)return!1;const oe={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(z)],ae=getStyle$1($,oe);return["scroll","auto","overlay"].some(le=>ae.includes(le))},getScrollContainer=($,z)=>{if(!isClient$2)return;let oe=$;for(;oe;){if([window,document,document.documentElement].includes(oe))return window;if(isScroll(oe,z))return oe;oe=oe.parentNode}return oe};let scrollBarWidth;const getScrollBarWidth=$=>{var z;if(!isClient$2)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const oe=document.createElement("div");oe.className=`${$}-scrollbar__wrap`,oe.style.visibility="hidden",oe.style.width="100px",oe.style.position="absolute",oe.style.top="-9999px",document.body.appendChild(oe);const ae=oe.offsetWidth;oe.style.overflow="scroll";const le=document.createElement("div");le.style.width="100%",oe.appendChild(le);const ue=le.offsetWidth;return(z=oe.parentNode)==null||z.removeChild(oe),scrollBarWidth=ae-ue,scrollBarWidth};function scrollIntoView($,z){if(!isClient$2)return;if(!z){$.scrollTop=0;return}const oe=[];let ae=z.offsetParent;for(;ae!==null&&$!==ae&&$.contains(ae);)oe.push(ae),ae=ae.offsetParent;const le=z.offsetTop+oe.reduce((Ce,$e)=>Ce+$e.offsetTop,0),ue=le+z.offsetHeight,pe=$.scrollTop,_e=pe+$.clientHeight;le<pe?$.scrollTop=le:ue>_e&&($.scrollTop=ue-$.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=($,z)=>{let oe=$.__vccOpts||$;for(let[ae,le]of z)oe[ae]=le;return oe},arrow_down_vue_vue_type_script_lang_default={name:"ArrowDown"},_hoisted_16$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_26=createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_36=[_hoisted_26];function _sfc_render6($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_16$1,_hoisted_36)}var arrow_down_default=export_helper_default(arrow_down_vue_vue_type_script_lang_default,[["render",_sfc_render6],["__file","arrow-down.vue"]]),arrow_left_vue_vue_type_script_lang_default={name:"ArrowLeft"},_hoisted_18$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_28=createBaseVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_18$1,_hoisted_38)}var arrow_left_default=export_helper_default(arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render8],["__file","arrow-left.vue"]]),arrow_right_vue_vue_type_script_lang_default={name:"ArrowRight"},_hoisted_110={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_210=createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_310=[_hoisted_210];function _sfc_render10($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_110,_hoisted_310)}var arrow_right_default=export_helper_default(arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render10],["__file","arrow-right.vue"]]),arrow_up_vue_vue_type_script_lang_default={name:"ArrowUp"},_hoisted_112={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_212=createBaseVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_312=[_hoisted_212];function _sfc_render12($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_112,_hoisted_312)}var arrow_up_default=export_helper_default(arrow_up_vue_vue_type_script_lang_default,[["render",_sfc_render12],["__file","arrow-up.vue"]]),back_vue_vue_type_script_lang_default={name:"Back"},_hoisted_114={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_214=createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),_hoisted_314=createBaseVNode("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),_hoisted_44=[_hoisted_214,_hoisted_314];function _sfc_render14($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_114,_hoisted_44)}var back_default=export_helper_default(back_vue_vue_type_script_lang_default,[["render",_sfc_render14],["__file","back.vue"]]),calendar_vue_vue_type_script_lang_default={name:"Calendar"},_hoisted_129={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_229=createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),_hoisted_328=[_hoisted_229];function _sfc_render29($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_129,_hoisted_328)}var calendar_default=export_helper_default(calendar_vue_vue_type_script_lang_default,[["render",_sfc_render29],["__file","calendar.vue"]]),caret_right_vue_vue_type_script_lang_default={name:"CaretRight"},_hoisted_134={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_234=createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),_hoisted_333=[_hoisted_234];function _sfc_render34($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_134,_hoisted_333)}var caret_right_default=export_helper_default(caret_right_vue_vue_type_script_lang_default,[["render",_sfc_render34],["__file","caret-right.vue"]]),caret_top_vue_vue_type_script_lang_default={name:"CaretTop"},_hoisted_135={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_235=createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_hoisted_334=[_hoisted_235];function _sfc_render35($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_135,_hoisted_334)}var caret_top_default=export_helper_default(caret_top_vue_vue_type_script_lang_default,[["render",_sfc_render35],["__file","caret-top.vue"]]),check_vue_vue_type_script_lang_default={name:"Check"},_hoisted_143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_243=createBaseVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),_hoisted_342=[_hoisted_243];function _sfc_render43($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_143,_hoisted_342)}var check_default=export_helper_default(check_vue_vue_type_script_lang_default,[["render",_sfc_render43],["__file","check.vue"]]),circle_check_filled_vue_vue_type_script_lang_default={name:"CircleCheckFilled"},_hoisted_148={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_248=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_347=[_hoisted_248];function _sfc_render48($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_148,_hoisted_347)}var circle_check_filled_default=export_helper_default(circle_check_filled_vue_vue_type_script_lang_default,[["render",_sfc_render48],["__file","circle-check-filled.vue"]]),circle_check_vue_vue_type_script_lang_default={name:"CircleCheck"},_hoisted_149={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_249=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_348=createBaseVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),_hoisted_415=[_hoisted_249,_hoisted_348];function _sfc_render49($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_149,_hoisted_415)}var circle_check_default=export_helper_default(circle_check_vue_vue_type_script_lang_default,[["render",_sfc_render49],["__file","circle-check.vue"]]),circle_close_filled_vue_vue_type_script_lang_default={name:"CircleCloseFilled"},_hoisted_150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_250=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_349=[_hoisted_250];function _sfc_render50($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_150,_hoisted_349)}var circle_close_filled_default=export_helper_default(circle_close_filled_vue_vue_type_script_lang_default,[["render",_sfc_render50],["__file","circle-close-filled.vue"]]),circle_close_vue_vue_type_script_lang_default={name:"CircleClose"},_hoisted_151={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_251=createBaseVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),_hoisted_350=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_416=[_hoisted_251,_hoisted_350];function _sfc_render51($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_151,_hoisted_416)}var circle_close_default=export_helper_default(circle_close_vue_vue_type_script_lang_default,[["render",_sfc_render51],["__file","circle-close.vue"]]),clock_vue_vue_type_script_lang_default={name:"Clock"},_hoisted_154={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_254=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_353=createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_418=createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),_hoisted_56=[_hoisted_254,_hoisted_353,_hoisted_418];function _sfc_render54($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_154,_hoisted_56)}var clock_default=export_helper_default(clock_vue_vue_type_script_lang_default,[["render",_sfc_render54],["__file","clock.vue"]]),close_vue_vue_type_script_lang_default={name:"Close"},_hoisted_156={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_256=createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_355=[_hoisted_256];function _sfc_render56($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_156,_hoisted_355)}var close_default=export_helper_default(close_vue_vue_type_script_lang_default,[["render",_sfc_render56],["__file","close.vue"]]),d_arrow_left_vue_vue_type_script_lang_default={name:"DArrowLeft"},_hoisted_172={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_272=createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),_hoisted_371=[_hoisted_272];function _sfc_render72($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_172,_hoisted_371)}var d_arrow_left_default=export_helper_default(d_arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render72],["__file","d-arrow-left.vue"]]),d_arrow_right_vue_vue_type_script_lang_default={name:"DArrowRight"},_hoisted_173={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_273=createBaseVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),_hoisted_372=[_hoisted_273];function _sfc_render73($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_173,_hoisted_372)}var d_arrow_right_default=export_helper_default(d_arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render73],["__file","d-arrow-right.vue"]]),delete_vue_vue_type_script_lang_default={name:"Delete"},_hoisted_180={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_280=createBaseVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_180,_hoisted_379)}var delete_default=export_helper_default(delete_vue_vue_type_script_lang_default,[["render",_sfc_render80],["__file","delete.vue"]]),document_vue_vue_type_script_lang_default={name:"Document"},_hoisted_190={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_290=createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_389=[_hoisted_290];function _sfc_render90($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_190,_hoisted_389)}var document_default=export_helper_default(document_vue_vue_type_script_lang_default,[["render",_sfc_render90],["__file","document.vue"]]),full_screen_vue_vue_type_script_lang_default={name:"FullScreen"},_hoisted_1118={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2118=createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_hoisted_3117=[_hoisted_2118];function _sfc_render118($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1118,_hoisted_3117)}var full_screen_default=export_helper_default(full_screen_vue_vue_type_script_lang_default,[["render",_sfc_render118],["__file","full-screen.vue"]]),hide_vue_vue_type_script_lang_default={name:"Hide"},_hoisted_1133={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2133=createBaseVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),_hoisted_3132=createBaseVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),_hoisted_438=[_hoisted_2133,_hoisted_3132];function _sfc_render133($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1133,_hoisted_438)}var hide_default=export_helper_default(hide_vue_vue_type_script_lang_default,[["render",_sfc_render133],["__file","hide.vue"]]),info_filled_vue_vue_type_script_lang_default={name:"InfoFilled"},_hoisted_1143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2143=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3142=[_hoisted_2143];function _sfc_render143($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1143,_hoisted_3142)}var info_filled_default=export_helper_default(info_filled_vue_vue_type_script_lang_default,[["render",_sfc_render143],["__file","info-filled.vue"]]),loading_vue_vue_type_script_lang_default={name:"Loading"},_hoisted_1150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2150=createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),_hoisted_3149=[_hoisted_2150];function _sfc_render150($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1150,_hoisted_3149)}var loading_default=export_helper_default(loading_vue_vue_type_script_lang_default,[["render",_sfc_render150],["__file","loading.vue"]]),minus_vue_vue_type_script_lang_default={name:"Minus"},_hoisted_1169={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2169=createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),_hoisted_3168=[_hoisted_2169];function _sfc_render169($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1169,_hoisted_3168)}var minus_default=export_helper_default(minus_vue_vue_type_script_lang_default,[["render",_sfc_render169],["__file","minus.vue"]]),more_filled_vue_vue_type_script_lang_default={name:"MoreFilled"},_hoisted_1174={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2174=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_hoisted_3173=[_hoisted_2174];function _sfc_render174($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1174,_hoisted_3173)}var more_filled_default=export_helper_default(more_filled_vue_vue_type_script_lang_default,[["render",_sfc_render174],["__file","more-filled.vue"]]),more_vue_vue_type_script_lang_default={name:"More"},_hoisted_1175={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2175=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),_hoisted_3174=[_hoisted_2175];function _sfc_render175($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1175,_hoisted_3174)}var more_default=export_helper_default(more_vue_vue_type_script_lang_default,[["render",_sfc_render175],["__file","more.vue"]]),picture_filled_vue_vue_type_script_lang_default={name:"PictureFilled"},_hoisted_1195={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2195=createBaseVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),_hoisted_3194=[_hoisted_2195];function _sfc_render195($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1195,_hoisted_3194)}var picture_filled_default=export_helper_default(picture_filled_vue_vue_type_script_lang_default,[["render",_sfc_render195],["__file","picture-filled.vue"]]),plus_vue_vue_type_script_lang_default={name:"Plus"},_hoisted_1201={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2201=createBaseVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),_hoisted_3200=[_hoisted_2201];function _sfc_render201($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1201,_hoisted_3200)}var plus_default=export_helper_default(plus_vue_vue_type_script_lang_default,[["render",_sfc_render201],["__file","plus.vue"]]),question_filled_vue_vue_type_script_lang_default={name:"QuestionFilled"},_hoisted_1211={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2211=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),_hoisted_3210=[_hoisted_2211];function _sfc_render211($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1211,_hoisted_3210)}var question_filled_default=export_helper_default(question_filled_vue_vue_type_script_lang_default,[["render",_sfc_render211],["__file","question-filled.vue"]]),refresh_left_vue_vue_type_script_lang_default={name:"RefreshLeft"},_hoisted_1215={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2215=createBaseVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),_hoisted_3214=[_hoisted_2215];function _sfc_render215($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1215,_hoisted_3214)}var refresh_left_default=export_helper_default(refresh_left_vue_vue_type_script_lang_default,[["render",_sfc_render215],["__file","refresh-left.vue"]]),refresh_right_vue_vue_type_script_lang_default={name:"RefreshRight"},_hoisted_1216={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2216=createBaseVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),_hoisted_3215=[_hoisted_2216];function _sfc_render216($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1216,_hoisted_3215)}var refresh_right_default=export_helper_default(refresh_right_vue_vue_type_script_lang_default,[["render",_sfc_render216],["__file","refresh-right.vue"]]),scale_to_original_vue_vue_type_script_lang_default={name:"ScaleToOriginal"},_hoisted_1222={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2222=createBaseVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_hoisted_3221=[_hoisted_2222];function _sfc_render222($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1222,_hoisted_3221)}var scale_to_original_default=export_helper_default(scale_to_original_vue_vue_type_script_lang_default,[["render",_sfc_render222],["__file","scale-to-original.vue"]]),search_vue_vue_type_script_lang_default={name:"Search"},_hoisted_1225={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2225=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3224=[_hoisted_2225];function _sfc_render225($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1225,_hoisted_3224)}var search_default=export_helper_default(search_vue_vue_type_script_lang_default,[["render",_sfc_render225],["__file","search.vue"]]),sort_down_vue_vue_type_script_lang_default={name:"SortDown"},_hoisted_1242={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2242=createBaseVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_hoisted_3241=[_hoisted_2242];function _sfc_render242($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1242,_hoisted_3241)}var sort_down_default=export_helper_default(sort_down_vue_vue_type_script_lang_default,[["render",_sfc_render242],["__file","sort-down.vue"]]),sort_up_vue_vue_type_script_lang_default={name:"SortUp"},_hoisted_1243={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2243=createBaseVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),_hoisted_3242=[_hoisted_2243];function _sfc_render243($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1243,_hoisted_3242)}var sort_up_default=export_helper_default(sort_up_vue_vue_type_script_lang_default,[["render",_sfc_render243],["__file","sort-up.vue"]]),star_filled_vue_vue_type_script_lang_default={name:"StarFilled"},_hoisted_1246={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2246=createBaseVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),_hoisted_3245=[_hoisted_2246];function _sfc_render246($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1246,_hoisted_3245)}var star_filled_default=export_helper_default(star_filled_vue_vue_type_script_lang_default,[["render",_sfc_render246],["__file","star-filled.vue"]]),star_vue_vue_type_script_lang_default={name:"Star"},_hoisted_1247={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2247=createBaseVNode("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),_hoisted_3246=[_hoisted_2247];function _sfc_render247($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1247,_hoisted_3246)}var star_default=export_helper_default(star_vue_vue_type_script_lang_default,[["render",_sfc_render247],["__file","star.vue"]]),success_filled_vue_vue_type_script_lang_default={name:"SuccessFilled"},_hoisted_1249={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2249=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3248=[_hoisted_2249];function _sfc_render249($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1249,_hoisted_3248)}var success_filled_default=export_helper_default(success_filled_vue_vue_type_script_lang_default,[["render",_sfc_render249],["__file","success-filled.vue"]]),view_vue_vue_type_script_lang_default={name:"View"},_hoisted_1283={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2283=createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3282=[_hoisted_2283];function _sfc_render283($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1283,_hoisted_3282)}var view_default=export_helper_default(view_vue_vue_type_script_lang_default,[["render",_sfc_render283],["__file","view.vue"]]),warning_filled_vue_vue_type_script_lang_default={name:"WarningFilled"},_hoisted_1287={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2287=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3286=[_hoisted_2287];function _sfc_render287($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1287,_hoisted_3286)}var warning_filled_default=export_helper_default(warning_filled_vue_vue_type_script_lang_default,[["render",_sfc_render287],["__file","warning-filled.vue"]]),zoom_in_vue_vue_type_script_lang_default={name:"ZoomIn"},_hoisted_1292={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2292=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),_hoisted_3291=[_hoisted_2292];function _sfc_render292($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1292,_hoisted_3291)}var zoom_in_default=export_helper_default(zoom_in_vue_vue_type_script_lang_default,[["render",_sfc_render292],["__file","zoom-in.vue"]]),zoom_out_vue_vue_type_script_lang_default={name:"ZoomOut"},_hoisted_1293={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2293=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3292=[_hoisted_2293];function _sfc_render293($,z,oe,ae,le,ue){return openBlock(),createElementBlock("svg",_hoisted_1293,_hoisted_3292)}var zoom_out_default=export_helper_default(zoom_out_vue_vue_type_script_lang_default,[["render",_sfc_render293],["__file","zoom-out.vue"]]);const epPropKey="__epPropKey",definePropType=$=>$,isEpProp=$=>isObject$8($)&&!!$[epPropKey],buildProp=($,z)=>{if(!isObject$8($)||isEpProp($))return $;const{values:oe,required:ae,default:le,type:ue,validator:pe}=$,Ce={type:ue,required:!!ae,validator:oe||pe?$e=>{let xe=!1,Ie=[];if(oe&&(Ie=Array.from(oe),hasOwn$4($,"default")&&Ie.push(le),xe||(xe=Ie.includes($e))),pe&&(xe||(xe=pe($e))),!xe&&Ie.length>0){const Fe=[...new Set(Ie)].map(ze=>JSON.stringify(ze)).join(", ");warn$2(`Invalid prop: validation failed${z?` for prop "${z}"`:""}. Expected one of [${Fe}], got value ${JSON.stringify($e)}.`)}return xe}:void 0,[epPropKey]:!0};return hasOwn$4($,"default")&&(Ce.default=le),Ce},buildProps=$=>fromPairs(Object.entries($).map(([z,oe])=>[z,buildProp(oe,z)])),iconPropType=definePropType([String,Object,Function]),CloseComponents={Close:close_default},TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default},TypeComponentsMap={success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default},ValidateComponentsMap={validating:loading_default,success:circle_check_default,error:circle_close_default},withInstall=($,z)=>{if($.install=oe=>{for(const ae of[$,...Object.values(z??{})])oe.component(ae.name,ae)},z)for(const[oe,ae]of Object.entries(z))$[oe]=ae;return $},withInstallFunction=($,z)=>($.install=oe=>{$._context=oe._context,oe.config.globalProperties[z]=$},$),withInstallDirective=($,z)=>($.install=oe=>{oe.directive(z,$)},$),withNoopInstall=$=>($.install=NOOP,$),composeRefs=(...$)=>z=>{$.forEach(oe=>{isFunction$5(oe)?oe(z):oe.value=z})},EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},datePickTypes=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",INSTALLED_KEY=Symbol("INSTALLED_KEY"),componentSizes=["","default","small","large"],componentSizeMap={large:40,default:32,small:24},getComponentSize=$=>componentSizeMap[$||"default"],isValidComponentSize=$=>["",...componentSizes].includes($);var PatchFlags=($=>($[$.TEXT=1]="TEXT",$[$.CLASS=2]="CLASS",$[$.STYLE=4]="STYLE",$[$.PROPS=8]="PROPS",$[$.FULL_PROPS=16]="FULL_PROPS",$[$.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",$[$.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",$[$.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",$[$.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",$[$.NEED_PATCH=512]="NEED_PATCH",$[$.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",$[$.HOISTED=-1]="HOISTED",$[$.BAIL=-2]="BAIL",$))(PatchFlags||{});function isFragment($){return isVNode$1($)&&$.type===Fragment}function isComment($){return isVNode$1($)&&$.type===Comment}function isValidElementNode($){return isVNode$1($)&&!isFragment($)&&!isComment($)}const getNormalizedProps=$=>{if(!isVNode$1($))return{};const z=$.props||{},oe=(isVNode$1($.type)?$.type.props:void 0)||{},ae={};return Object.keys(oe).forEach(le=>{hasOwn$4(oe[le],"default")&&(ae[le]=oe[le].default)}),Object.keys(z).forEach(le=>{ae[camelize(le)]=z[le]}),ae},ensureOnlyChild=$=>{if(!isArray$c($)||$.length>1)throw new Error("expect to receive a single Vue element child");return $[0]},flattedChildren=$=>{const z=isArray$c($)?$:[$],oe=[];return z.forEach(ae=>{var le;isArray$c(ae)?oe.push(...flattedChildren(ae)):isVNode$1(ae)&&isArray$c(ae.children)?oe.push(...flattedChildren(ae.children)):(oe.push(ae),isVNode$1(ae)&&((le=ae.component)!=null&&le.subTree)&&oe.push(...flattedChildren(ae.component.subTree)))}),oe},unique=$=>[...new Set($)],castArray=$=>!$&&$!==0?[]:Array.isArray($)?$:[$],isKorean=$=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test($),rAF=$=>isClient$2?window.requestAnimationFrame($):setTimeout($,16),cAF=$=>isClient$2?window.cancelAnimationFrame($):clearTimeout($),generateId=()=>Math.floor(Math.random()*1e4),mutable=$=>$,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=($={})=>{const{excludeListeners:z=!1,excludeKeys:oe}=$,ae=computed(()=>((oe==null?void 0:oe.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),le=getCurrentInstance();return computed(le?()=>{var ue;return fromPairs(Object.entries((ue=le.proxy)==null?void 0:ue.$attrs).filter(([pe])=>!ae.value.includes(pe)&&!(z&&LISTENER_PREFIX.test(pe))))}:()=>({}))},useDeprecated=({from:$,replacement:z,scope:oe,version:ae,ref:le,type:ue="API"},pe)=>{watch(()=>unref(pe),_e=>{},{immediate:!0})},useDraggable=($,z,oe)=>{let ae={offsetX:0,offsetY:0};const le=_e=>{const Ce=_e.clientX,$e=_e.clientY,{offsetX:xe,offsetY:Ie}=ae,Fe=$.value.getBoundingClientRect(),ze=Fe.left,Ue=Fe.top,qe=Fe.width,At=Fe.height,Lt=document.documentElement.clientWidth,hn=document.documentElement.clientHeight,vn=-ze+xe,_n=-Ue+Ie,bn=Lt-ze-qe+xe,Sn=hn-Ue-At+Ie,Cn=$n=>{const wn=Math.min(Math.max(xe+$n.clientX-Ce,vn),bn),Tn=Math.min(Math.max(Ie+$n.clientY-$e,_n),Sn);ae={offsetX:wn,offsetY:Tn},$.value.style.transform=`translate(${addUnit(wn)}, ${addUnit(Tn)})`},En=()=>{document.removeEventListener("mousemove",Cn),document.removeEventListener("mouseup",En)};document.addEventListener("mousemove",Cn),document.addEventListener("mouseup",En)},ue=()=>{z.value&&$.value&&z.value.addEventListener("mousedown",le)},pe=()=>{z.value&&$.value&&z.value.removeEventListener("mousedown",le)};onMounted(()=>{watchEffect(()=>{oe.value?ue():pe()})}),onBeforeUnmount(()=>{pe()})},useFocus=$=>({focus:()=>{var z,oe;(oe=(z=$.value)==null?void 0:z.focus)==null||oe.call(z)}});var English={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const buildTranslator=$=>(z,oe)=>translate$2(z,oe,unref($)),translate$2=($,z,oe)=>get$1(oe,$,$).replace(/\{(\w+)\}/g,(ae,le)=>{var ue;return`${(ue=z==null?void 0:z[le])!=null?ue:`{${le}}`}`}),buildLocaleContext=$=>{const z=computed(()=>unref($).name),oe=isRef($)?$:ref($);return{lang:z,locale:oe,t:buildTranslator($)}},localeContextKey=Symbol("localeContextKey"),useLocale=$=>{const z=$||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>z.value||English))},defaultNamespace="el",statePrefix="is-",_bem=($,z,oe,ae,le)=>{let ue=`${$}-${z}`;return oe&&(ue+=`-${oe}`),ae&&(ue+=`__${ae}`),le&&(ue+=`--${le}`),ue},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=$=>{const z=$||inject(namespaceContextKey,ref(defaultNamespace));return computed(()=>unref(z)||defaultNamespace)},useNamespace=($,z)=>{const oe=useGetDerivedNamespace(z);return{namespace:oe,b:(qe="")=>_bem(oe.value,$,qe,"",""),e:qe=>qe?_bem(oe.value,$,"",qe,""):"",m:qe=>qe?_bem(oe.value,$,"","",qe):"",be:(qe,At)=>qe&&At?_bem(oe.value,$,qe,At,""):"",em:(qe,At)=>qe&&At?_bem(oe.value,$,"",qe,At):"",bm:(qe,At)=>qe&&At?_bem(oe.value,$,qe,"",At):"",bem:(qe,At,Lt)=>qe&&At&&Lt?_bem(oe.value,$,qe,At,Lt):"",is:(qe,...At)=>{const Lt=At.length>=1?At[0]:!0;return qe&&Lt?`${statePrefix}${qe}`:""},cssVar:qe=>{const At={};for(const Lt in qe)qe[Lt]&&(At[`--${oe.value}-${Lt}`]=qe[Lt]);return At},cssVarName:qe=>`--${oe.value}-${qe}`,cssVarBlock:qe=>{const At={};for(const Lt in qe)qe[Lt]&&(At[`--${oe.value}-${$}-${Lt}`]=qe[Lt]);return At},cssVarBlockName:qe=>`--${oe.value}-${$}-${qe}`}},useLockscreen=($,z={})=>{isRef($)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const oe=z.ns||useNamespace("popup"),ae=computed$1(()=>oe.bm("parent","hidden"));if(!isClient$2||hasClass(document.body,ae.value))return;let le=0,ue=!1,pe="0";const _e=()=>{setTimeout(()=>{removeClass(document==null?void 0:document.body,ae.value),ue&&document&&(document.body.style.width=pe)},200)};watch($,Ce=>{if(!Ce){_e();return}ue=!hasClass(document.body,ae.value),ue&&(pe=document.body.style.width),le=getScrollBarWidth(oe.namespace.value);const $e=document.documentElement.clientHeight<document.body.scrollHeight,xe=getStyle$1(document.body,"overflowY");le>0&&($e||xe==="scroll")&&ue&&(document.body.style.width=`calc(100% - ${le}px)`),addClass(document.body,ae.value)}),onScopeDispose(()=>_e())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=$=>{const z=`update:${$}`,oe=`onUpdate:${$}`,ae=[z],le={[$]:_prop,[oe]:_event};return{useModelToggle:({indicator:pe,toggleReason:_e,shouldHideWhenRouteChanges:Ce,shouldProceed:$e,onShow:xe,onHide:Ie})=>{const Fe=getCurrentInstance(),{emit:ze}=Fe,Ue=Fe.props,qe=computed(()=>isFunction$5(Ue[oe])),At=computed(()=>Ue[$]===null),Lt=Cn=>{pe.value!==!0&&(pe.value=!0,_e&&(_e.value=Cn),isFunction$5(xe)&&xe(Cn))},hn=Cn=>{pe.value!==!1&&(pe.value=!1,_e&&(_e.value=Cn),isFunction$5(Ie)&&Ie(Cn))},vn=Cn=>{if(Ue.disabled===!0||isFunction$5($e)&&!$e())return;const En=qe.value&&isClient$2;En&&ze(z,!0),(At.value||!En)&&Lt(Cn)},_n=Cn=>{if(Ue.disabled===!0||!isClient$2)return;const En=qe.value&&isClient$2;En&&ze(z,!1),(At.value||!En)&&hn(Cn)},bn=Cn=>{isBoolean$3(Cn)&&(Ue.disabled&&Cn?qe.value&&ze(z,!1):pe.value!==Cn&&(Cn?Lt():hn()))},Sn=()=>{pe.value?_n():vn()};return watch(()=>Ue[$],bn),Ce&&Fe.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...Fe.proxy.$route}),()=>{Ce.value&&pe.value&&_n()}),onMounted(()=>{bn(Ue[$])}),{hide:_n,show:vn,toggle:Sn,hasUpdateHandler:qe}},useModelToggleProps:le,useModelToggleEmits:ae}};createModelToggleComposable("modelValue");const useProp=$=>{const z=getCurrentInstance();return computed(()=>{var oe,ae;return(ae=(oe=z==null?void 0:z.proxy)==null?void 0:oe.$props)==null?void 0:ae[$]})};var E$2="top",R$1="bottom",W$1="right",P$4="left",me$1="auto",G=[E$2,R$1,W$1,P$4],U$2="start",J$1="end",Xe$1="clippingParents",je$1="viewport",K$2="popper",Ye="reference",De=G.reduce(function($,z){return $.concat([z+"-"+U$2,z+"-"+J$1])},[]),Ee=[].concat(G,[me$1]).reduce(function($,z){return $.concat([z,z+"-"+U$2,z+"-"+J$1])},[]),Ge="beforeRead",Je$1="read",Ke$1="afterRead",Qe="beforeMain",Ze$1="main",et$1="afterMain",tt$1="beforeWrite",nt$1="write",rt$1="afterWrite",ot$1=[Ge,Je$1,Ke$1,Qe,Ze$1,et$1,tt$1,nt$1,rt$1];function C$2($){return $?($.nodeName||"").toLowerCase():null}function H$3($){if($==null)return window;if($.toString()!=="[object Window]"){var z=$.ownerDocument;return z&&z.defaultView||window}return $}function Q$1($){var z=H$3($).Element;return $ instanceof z||$ instanceof Element}function B($){var z=H$3($).HTMLElement;return $ instanceof z||$ instanceof HTMLElement}function Pe($){if(typeof ShadowRoot>"u")return!1;var z=H$3($).ShadowRoot;return $ instanceof z||$ instanceof ShadowRoot}function Mt($){var z=$.state;Object.keys(z.elements).forEach(function(oe){var ae=z.styles[oe]||{},le=z.attributes[oe]||{},ue=z.elements[oe];!B(ue)||!C$2(ue)||(Object.assign(ue.style,ae),Object.keys(le).forEach(function(pe){var _e=le[pe];_e===!1?ue.removeAttribute(pe):ue.setAttribute(pe,_e===!0?"":_e)}))})}function Rt$1($){var z=$.state,oe={popper:{position:z.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(z.elements.popper.style,oe.popper),z.styles=oe,z.elements.arrow&&Object.assign(z.elements.arrow.style,oe.arrow),function(){Object.keys(z.elements).forEach(function(ae){var le=z.elements[ae],ue=z.attributes[ae]||{},pe=Object.keys(z.styles.hasOwnProperty(ae)?z.styles[ae]:oe[ae]),_e=pe.reduce(function(Ce,$e){return Ce[$e]="",Ce},{});!B(le)||!C$2(le)||(Object.assign(le.style,_e),Object.keys(ue).forEach(function(Ce){le.removeAttribute(Ce)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt$1,requires:["computeStyles"]};function q($){return $.split("-")[0]}var X$2=Math.max,ve$1=Math.min,Z=Math.round;function ee$1($,z){z===void 0&&(z=!1);var oe=$.getBoundingClientRect(),ae=1,le=1;if(B($)&&z){var ue=$.offsetHeight,pe=$.offsetWidth;pe>0&&(ae=Z(oe.width)/pe||1),ue>0&&(le=Z(oe.height)/ue||1)}return{width:oe.width/ae,height:oe.height/le,top:oe.top/le,right:oe.right/ae,bottom:oe.bottom/le,left:oe.left/ae,x:oe.left/ae,y:oe.top/le}}function ke($){var z=ee$1($),oe=$.offsetWidth,ae=$.offsetHeight;return Math.abs(z.width-oe)<=1&&(oe=z.width),Math.abs(z.height-ae)<=1&&(ae=z.height),{x:$.offsetLeft,y:$.offsetTop,width:oe,height:ae}}function it($,z){var oe=z.getRootNode&&z.getRootNode();if($.contains(z))return!0;if(oe&&Pe(oe)){var ae=z;do{if(ae&&$.isSameNode(ae))return!0;ae=ae.parentNode||ae.host}while(ae)}return!1}function N$2($){return H$3($).getComputedStyle($)}function Wt$1($){return["table","td","th"].indexOf(C$2($))>=0}function I$2($){return((Q$1($)?$.ownerDocument:$.document)||window.document).documentElement}function ge$1($){return C$2($)==="html"?$:$.assignedSlot||$.parentNode||(Pe($)?$.host:null)||I$2($)}function at$1($){return!B($)||N$2($).position==="fixed"?null:$.offsetParent}function Bt$1($){var z=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,oe=navigator.userAgent.indexOf("Trident")!==-1;if(oe&&B($)){var ae=N$2($);if(ae.position==="fixed")return null}var le=ge$1($);for(Pe(le)&&(le=le.host);B(le)&&["html","body"].indexOf(C$2(le))<0;){var ue=N$2(le);if(ue.transform!=="none"||ue.perspective!=="none"||ue.contain==="paint"||["transform","perspective"].indexOf(ue.willChange)!==-1||z&&ue.willChange==="filter"||z&&ue.filter&&ue.filter!=="none")return le;le=le.parentNode}return null}function se($){for(var z=H$3($),oe=at$1($);oe&&Wt$1(oe)&&N$2(oe).position==="static";)oe=at$1(oe);return oe&&(C$2(oe)==="html"||C$2(oe)==="body"&&N$2(oe).position==="static")?z:oe||Bt$1($)||z}function Le$1($){return["top","bottom"].indexOf($)>=0?"x":"y"}function fe$1($,z,oe){return X$2($,ve$1(z,oe))}function St$1($,z,oe){var ae=fe$1($,z,oe);return ae>oe?oe:ae}function st$1(){return{top:0,right:0,bottom:0,left:0}}function ft$1($){return Object.assign({},st$1(),$)}function ct$1($,z){return z.reduce(function(oe,ae){return oe[ae]=$,oe},{})}var Tt$1=function($,z){return $=typeof $=="function"?$(Object.assign({},z.rects,{placement:z.placement})):$,ft$1(typeof $!="number"?$:ct$1($,G))};function Ht($){var z,oe=$.state,ae=$.name,le=$.options,ue=oe.elements.arrow,pe=oe.modifiersData.popperOffsets,_e=q(oe.placement),Ce=Le$1(_e),$e=[P$4,W$1].indexOf(_e)>=0,xe=$e?"height":"width";if(!(!ue||!pe)){var Ie=Tt$1(le.padding,oe),Fe=ke(ue),ze=Ce==="y"?E$2:P$4,Ue=Ce==="y"?R$1:W$1,qe=oe.rects.reference[xe]+oe.rects.reference[Ce]-pe[Ce]-oe.rects.popper[xe],At=pe[Ce]-oe.rects.reference[Ce],Lt=se(ue),hn=Lt?Ce==="y"?Lt.clientHeight||0:Lt.clientWidth||0:0,vn=qe/2-At/2,_n=Ie[ze],bn=hn-Fe[xe]-Ie[Ue],Sn=hn/2-Fe[xe]/2+vn,Cn=fe$1(_n,Sn,bn),En=Ce;oe.modifiersData[ae]=(z={},z[En]=Cn,z.centerOffset=Cn-Sn,z)}}function Ct($){var z=$.state,oe=$.options,ae=oe.element,le=ae===void 0?"[data-popper-arrow]":ae;le!=null&&(typeof le=="string"&&(le=z.elements.popper.querySelector(le),!le)||!it(z.elements.popper,le)||(z.elements.arrow=le))}var pt$1={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te($){return $.split("-")[1]}var qt$1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt($){var z=$.x,oe=$.y,ae=window,le=ae.devicePixelRatio||1;return{x:Z(z*le)/le||0,y:Z(oe*le)/le||0}}function ut($){var z,oe=$.popper,ae=$.popperRect,le=$.placement,ue=$.variation,pe=$.offsets,_e=$.position,Ce=$.gpuAcceleration,$e=$.adaptive,xe=$.roundOffsets,Ie=$.isFixed,Fe=pe.x,ze=Fe===void 0?0:Fe,Ue=pe.y,qe=Ue===void 0?0:Ue,At=typeof xe=="function"?xe({x:ze,y:qe}):{x:ze,y:qe};ze=At.x,qe=At.y;var Lt=pe.hasOwnProperty("x"),hn=pe.hasOwnProperty("y"),vn=P$4,_n=E$2,bn=window;if($e){var Sn=se(oe),Cn="clientHeight",En="clientWidth";if(Sn===H$3(oe)&&(Sn=I$2(oe),N$2(Sn).position!=="static"&&_e==="absolute"&&(Cn="scrollHeight",En="scrollWidth")),Sn=Sn,le===E$2||(le===P$4||le===W$1)&&ue===J$1){_n=R$1;var $n=Ie&&Sn===bn&&bn.visualViewport?bn.visualViewport.height:Sn[Cn];qe-=$n-ae.height,qe*=Ce?1:-1}if(le===P$4||(le===E$2||le===R$1)&&ue===J$1){vn=W$1;var wn=Ie&&Sn===bn&&bn.visualViewport?bn.visualViewport.width:Sn[En];ze-=wn-ae.width,ze*=Ce?1:-1}}var Tn=Object.assign({position:_e},$e&&qt$1),xn=xe===!0?Vt({x:ze,y:qe}):{x:ze,y:qe};if(ze=xn.x,qe=xn.y,Ce){var kn;return Object.assign({},Tn,(kn={},kn[_n]=hn?"0":"",kn[vn]=Lt?"0":"",kn.transform=(bn.devicePixelRatio||1)<=1?"translate("+ze+"px, "+qe+"px)":"translate3d("+ze+"px, "+qe+"px, 0)",kn))}return Object.assign({},Tn,(z={},z[_n]=hn?qe+"px":"",z[vn]=Lt?ze+"px":"",z.transform="",z))}function Nt$1($){var z=$.state,oe=$.options,ae=oe.gpuAcceleration,le=ae===void 0?!0:ae,ue=oe.adaptive,pe=ue===void 0?!0:ue,_e=oe.roundOffsets,Ce=_e===void 0?!0:_e,$e={placement:q(z.placement),variation:te(z.placement),popper:z.elements.popper,popperRect:z.rects.popper,gpuAcceleration:le,isFixed:z.options.strategy==="fixed"};z.modifiersData.popperOffsets!=null&&(z.styles.popper=Object.assign({},z.styles.popper,ut(Object.assign({},$e,{offsets:z.modifiersData.popperOffsets,position:z.options.strategy,adaptive:pe,roundOffsets:Ce})))),z.modifiersData.arrow!=null&&(z.styles.arrow=Object.assign({},z.styles.arrow,ut(Object.assign({},$e,{offsets:z.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Ce})))),z.attributes.popper=Object.assign({},z.attributes.popper,{"data-popper-placement":z.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt$1,data:{}},ye$1={passive:!0};function It$1($){var z=$.state,oe=$.instance,ae=$.options,le=ae.scroll,ue=le===void 0?!0:le,pe=ae.resize,_e=pe===void 0?!0:pe,Ce=H$3(z.elements.popper),$e=[].concat(z.scrollParents.reference,z.scrollParents.popper);return ue&&$e.forEach(function(xe){xe.addEventListener("scroll",oe.update,ye$1)}),_e&&Ce.addEventListener("resize",oe.update,ye$1),function(){ue&&$e.forEach(function(xe){xe.removeEventListener("scroll",oe.update,ye$1)}),_e&&Ce.removeEventListener("resize",oe.update,ye$1)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It$1,data:{}},_t$1={left:"right",right:"left",bottom:"top",top:"bottom"};function be$1($){return $.replace(/left|right|bottom|top/g,function(z){return _t$1[z]})}var zt$1={start:"end",end:"start"};function lt$2($){return $.replace(/start|end/g,function(z){return zt$1[z]})}function We($){var z=H$3($),oe=z.pageXOffset,ae=z.pageYOffset;return{scrollLeft:oe,scrollTop:ae}}function Be$1($){return ee$1(I$2($)).left+We($).scrollLeft}function Ft$1($){var z=H$3($),oe=I$2($),ae=z.visualViewport,le=oe.clientWidth,ue=oe.clientHeight,pe=0,_e=0;return ae&&(le=ae.width,ue=ae.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(pe=ae.offsetLeft,_e=ae.offsetTop)),{width:le,height:ue,x:pe+Be$1($),y:_e}}function Ut$1($){var z,oe=I$2($),ae=We($),le=(z=$.ownerDocument)==null?void 0:z.body,ue=X$2(oe.scrollWidth,oe.clientWidth,le?le.scrollWidth:0,le?le.clientWidth:0),pe=X$2(oe.scrollHeight,oe.clientHeight,le?le.scrollHeight:0,le?le.clientHeight:0),_e=-ae.scrollLeft+Be$1($),Ce=-ae.scrollTop;return N$2(le||oe).direction==="rtl"&&(_e+=X$2(oe.clientWidth,le?le.clientWidth:0)-ue),{width:ue,height:pe,x:_e,y:Ce}}function Se($){var z=N$2($),oe=z.overflow,ae=z.overflowX,le=z.overflowY;return/auto|scroll|overlay|hidden/.test(oe+le+ae)}function dt($){return["html","body","#document"].indexOf(C$2($))>=0?$.ownerDocument.body:B($)&&Se($)?$:dt(ge$1($))}function ce$1($,z){var oe;z===void 0&&(z=[]);var ae=dt($),le=ae===((oe=$.ownerDocument)==null?void 0:oe.body),ue=H$3(ae),pe=le?[ue].concat(ue.visualViewport||[],Se(ae)?ae:[]):ae,_e=z.concat(pe);return le?_e:_e.concat(ce$1(ge$1(pe)))}function Te($){return Object.assign({},$,{left:$.x,top:$.y,right:$.x+$.width,bottom:$.y+$.height})}function Xt$1($){var z=ee$1($);return z.top=z.top+$.clientTop,z.left=z.left+$.clientLeft,z.bottom=z.top+$.clientHeight,z.right=z.left+$.clientWidth,z.width=$.clientWidth,z.height=$.clientHeight,z.x=z.left,z.y=z.top,z}function ht($,z){return z===je$1?Te(Ft$1($)):Q$1(z)?Xt$1(z):Te(Ut$1(I$2($)))}function Yt($){var z=ce$1(ge$1($)),oe=["absolute","fixed"].indexOf(N$2($).position)>=0,ae=oe&&B($)?se($):$;return Q$1(ae)?z.filter(function(le){return Q$1(le)&&it(le,ae)&&C$2(le)!=="body"}):[]}function Gt($,z,oe){var ae=z==="clippingParents"?Yt($):[].concat(z),le=[].concat(ae,[oe]),ue=le[0],pe=le.reduce(function(_e,Ce){var $e=ht($,Ce);return _e.top=X$2($e.top,_e.top),_e.right=ve$1($e.right,_e.right),_e.bottom=ve$1($e.bottom,_e.bottom),_e.left=X$2($e.left,_e.left),_e},ht($,ue));return pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top,pe.x=pe.left,pe.y=pe.top,pe}function mt$1($){var z=$.reference,oe=$.element,ae=$.placement,le=ae?q(ae):null,ue=ae?te(ae):null,pe=z.x+z.width/2-oe.width/2,_e=z.y+z.height/2-oe.height/2,Ce;switch(le){case E$2:Ce={x:pe,y:z.y-oe.height};break;case R$1:Ce={x:pe,y:z.y+z.height};break;case W$1:Ce={x:z.x+z.width,y:_e};break;case P$4:Ce={x:z.x-oe.width,y:_e};break;default:Ce={x:z.x,y:z.y}}var $e=le?Le$1(le):null;if($e!=null){var xe=$e==="y"?"height":"width";switch(ue){case U$2:Ce[$e]=Ce[$e]-(z[xe]/2-oe[xe]/2);break;case J$1:Ce[$e]=Ce[$e]+(z[xe]/2-oe[xe]/2);break}}return Ce}function ne$1($,z){z===void 0&&(z={});var oe=z,ae=oe.placement,le=ae===void 0?$.placement:ae,ue=oe.boundary,pe=ue===void 0?Xe$1:ue,_e=oe.rootBoundary,Ce=_e===void 0?je$1:_e,$e=oe.elementContext,xe=$e===void 0?K$2:$e,Ie=oe.altBoundary,Fe=Ie===void 0?!1:Ie,ze=oe.padding,Ue=ze===void 0?0:ze,qe=ft$1(typeof Ue!="number"?Ue:ct$1(Ue,G)),At=xe===K$2?Ye:K$2,Lt=$.rects.popper,hn=$.elements[Fe?At:xe],vn=Gt(Q$1(hn)?hn:hn.contextElement||I$2($.elements.popper),pe,Ce),_n=ee$1($.elements.reference),bn=mt$1({reference:_n,element:Lt,strategy:"absolute",placement:le}),Sn=Te(Object.assign({},Lt,bn)),Cn=xe===K$2?Sn:_n,En={top:vn.top-Cn.top+qe.top,bottom:Cn.bottom-vn.bottom+qe.bottom,left:vn.left-Cn.left+qe.left,right:Cn.right-vn.right+qe.right},$n=$.modifiersData.offset;if(xe===K$2&&$n){var wn=$n[le];Object.keys(En).forEach(function(Tn){var xn=[W$1,R$1].indexOf(Tn)>=0?1:-1,kn=[E$2,R$1].indexOf(Tn)>=0?"y":"x";En[Tn]+=wn[kn]*xn})}return En}function Jt($,z){z===void 0&&(z={});var oe=z,ae=oe.placement,le=oe.boundary,ue=oe.rootBoundary,pe=oe.padding,_e=oe.flipVariations,Ce=oe.allowedAutoPlacements,$e=Ce===void 0?Ee:Ce,xe=te(ae),Ie=xe?_e?De:De.filter(function(Ue){return te(Ue)===xe}):G,Fe=Ie.filter(function(Ue){return $e.indexOf(Ue)>=0});Fe.length===0&&(Fe=Ie);var ze=Fe.reduce(function(Ue,qe){return Ue[qe]=ne$1($,{placement:qe,boundary:le,rootBoundary:ue,padding:pe})[q(qe)],Ue},{});return Object.keys(ze).sort(function(Ue,qe){return ze[Ue]-ze[qe]})}function Kt($){if(q($)===me$1)return[];var z=be$1($);return[lt$2($),z,lt$2(z)]}function Qt($){var z=$.state,oe=$.options,ae=$.name;if(!z.modifiersData[ae]._skip){for(var le=oe.mainAxis,ue=le===void 0?!0:le,pe=oe.altAxis,_e=pe===void 0?!0:pe,Ce=oe.fallbackPlacements,$e=oe.padding,xe=oe.boundary,Ie=oe.rootBoundary,Fe=oe.altBoundary,ze=oe.flipVariations,Ue=ze===void 0?!0:ze,qe=oe.allowedAutoPlacements,At=z.options.placement,Lt=q(At),hn=Lt===At,vn=Ce||(hn||!Ue?[be$1(At)]:Kt(At)),_n=[At].concat(vn).reduce(function(sr,vr){return sr.concat(q(vr)===me$1?Jt(z,{placement:vr,boundary:xe,rootBoundary:Ie,padding:$e,flipVariations:Ue,allowedAutoPlacements:qe}):vr)},[]),bn=z.rects.reference,Sn=z.rects.popper,Cn=new Map,En=!0,$n=_n[0],wn=0;wn<_n.length;wn++){var Tn=_n[wn],xn=q(Tn),kn=te(Tn)===U$2,Nn=[E$2,R$1].indexOf(xn)>=0,Bn=Nn?"width":"height",Dn=ne$1(z,{placement:Tn,boundary:xe,rootBoundary:Ie,altBoundary:Fe,padding:$e}),In=Nn?kn?W$1:P$4:kn?R$1:E$2;bn[Bn]>Sn[Bn]&&(In=be$1(In));var Ln=be$1(In),Mn=[];if(ue&&Mn.push(Dn[xn]<=0),_e&&Mn.push(Dn[In]<=0,Dn[Ln]<=0),Mn.every(function(sr){return sr})){$n=Tn,En=!1;break}Cn.set(Tn,Mn)}if(En)for(var Vn=Ue?3:1,Yn=function(sr){var vr=_n.find(function(ar){var qn=Cn.get(ar);if(qn)return qn.slice(0,sr).every(function(Gn){return Gn})});if(vr)return $n=vr,"break"},Fn=Vn;Fn>0;Fn--){var Xn=Yn(Fn);if(Xn==="break")break}z.placement!==$n&&(z.modifiersData[ae]._skip=!0,z.placement=$n,z.reset=!0)}}var vt$1={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt($,z,oe){return oe===void 0&&(oe={x:0,y:0}),{top:$.top-z.height-oe.y,right:$.right-z.width+oe.x,bottom:$.bottom-z.height+oe.y,left:$.left-z.width-oe.x}}function yt($){return[E$2,W$1,R$1,P$4].some(function(z){return $[z]>=0})}function Zt($){var z=$.state,oe=$.name,ae=z.rects.reference,le=z.rects.popper,ue=z.modifiersData.preventOverflow,pe=ne$1(z,{elementContext:"reference"}),_e=ne$1(z,{altBoundary:!0}),Ce=gt(pe,ae),$e=gt(_e,le,ue),xe=yt(Ce),Ie=yt($e);z.modifiersData[oe]={referenceClippingOffsets:Ce,popperEscapeOffsets:$e,isReferenceHidden:xe,hasPopperEscaped:Ie},z.attributes.popper=Object.assign({},z.attributes.popper,{"data-popper-reference-hidden":xe,"data-popper-escaped":Ie})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en$2($,z,oe){var ae=q($),le=[P$4,E$2].indexOf(ae)>=0?-1:1,ue=typeof oe=="function"?oe(Object.assign({},z,{placement:$})):oe,pe=ue[0],_e=ue[1];return pe=pe||0,_e=(_e||0)*le,[P$4,W$1].indexOf(ae)>=0?{x:_e,y:pe}:{x:pe,y:_e}}function tn($){var z=$.state,oe=$.options,ae=$.name,le=oe.offset,ue=le===void 0?[0,0]:le,pe=Ee.reduce(function(xe,Ie){return xe[Ie]=en$2(Ie,z.rects,ue),xe},{}),_e=pe[z.placement],Ce=_e.x,$e=_e.y;z.modifiersData.popperOffsets!=null&&(z.modifiersData.popperOffsets.x+=Ce,z.modifiersData.popperOffsets.y+=$e),z.modifiersData[ae]=pe}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn($){var z=$.state,oe=$.name;z.modifiersData[oe]=mt$1({reference:z.rects.reference,element:z.rects.popper,strategy:"absolute",placement:z.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn($){return $==="x"?"y":"x"}function on($){var z=$.state,oe=$.options,ae=$.name,le=oe.mainAxis,ue=le===void 0?!0:le,pe=oe.altAxis,_e=pe===void 0?!1:pe,Ce=oe.boundary,$e=oe.rootBoundary,xe=oe.altBoundary,Ie=oe.padding,Fe=oe.tether,ze=Fe===void 0?!0:Fe,Ue=oe.tetherOffset,qe=Ue===void 0?0:Ue,At=ne$1(z,{boundary:Ce,rootBoundary:$e,padding:Ie,altBoundary:xe}),Lt=q(z.placement),hn=te(z.placement),vn=!hn,_n=Le$1(Lt),bn=rn(_n),Sn=z.modifiersData.popperOffsets,Cn=z.rects.reference,En=z.rects.popper,$n=typeof qe=="function"?qe(Object.assign({},z.rects,{placement:z.placement})):qe,wn=typeof $n=="number"?{mainAxis:$n,altAxis:$n}:Object.assign({mainAxis:0,altAxis:0},$n),Tn=z.modifiersData.offset?z.modifiersData.offset[z.placement]:null,xn={x:0,y:0};if(Sn){if(ue){var kn,Nn=_n==="y"?E$2:P$4,Bn=_n==="y"?R$1:W$1,Dn=_n==="y"?"height":"width",In=Sn[_n],Ln=In+At[Nn],Mn=In-At[Bn],Vn=ze?-En[Dn]/2:0,Yn=hn===U$2?Cn[Dn]:En[Dn],Fn=hn===U$2?-En[Dn]:-Cn[Dn],Xn=z.elements.arrow,sr=ze&&Xn?ke(Xn):{width:0,height:0},vr=z.modifiersData["arrow#persistent"]?z.modifiersData["arrow#persistent"].padding:st$1(),ar=vr[Nn],qn=vr[Bn],Gn=fe$1(0,Cn[Dn],sr[Dn]),Wn=vn?Cn[Dn]/2-Vn-Gn-ar-wn.mainAxis:Yn-Gn-ar-wn.mainAxis,Qn=vn?-Cn[Dn]/2+Vn+Gn+qn+wn.mainAxis:Fn+Gn+qn+wn.mainAxis,cr=z.elements.arrow&&se(z.elements.arrow),jn=cr?_n==="y"?cr.clientTop||0:cr.clientLeft||0:0,Zn=(kn=Tn==null?void 0:Tn[_n])!=null?kn:0,nr=In+Wn-Zn-jn,hr=In+Qn-Zn,gr=fe$1(ze?ve$1(Ln,nr):Ln,In,ze?X$2(Mn,hr):Mn);Sn[_n]=gr,xn[_n]=gr-In}if(_e){var or,wr=_n==="x"?E$2:P$4,mr=_n==="x"?R$1:W$1,Tr=Sn[bn],dr=bn==="y"?"height":"width",ir=Tr+At[wr],ur=Tr-At[mr],fr=[E$2,P$4].indexOf(Lt)!==-1,kr=(or=Tn==null?void 0:Tn[bn])!=null?or:0,Dr=fr?ir:Tr-Cn[dr]-En[dr]-kr+wn.altAxis,Lr=fr?Tr+Cn[dr]+En[dr]-kr-wn.altAxis:ur,Mr=ze&&fr?St$1(Dr,Tr,Lr):fe$1(ze?Dr:ir,Tr,ze?Lr:ur);Sn[bn]=Mr,xn[bn]=Mr-Tr}z.modifiersData[ae]=xn}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an($){return{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}}function sn($){return $===H$3($)||!B($)?We($):an($)}function fn($){var z=$.getBoundingClientRect(),oe=Z(z.width)/$.offsetWidth||1,ae=Z(z.height)/$.offsetHeight||1;return oe!==1||ae!==1}function cn($,z,oe){oe===void 0&&(oe=!1);var ae=B(z),le=B(z)&&fn(z),ue=I$2(z),pe=ee$1($,le),_e={scrollLeft:0,scrollTop:0},Ce={x:0,y:0};return(ae||!ae&&!oe)&&((C$2(z)!=="body"||Se(ue))&&(_e=sn(z)),B(z)?(Ce=ee$1(z,!0),Ce.x+=z.clientLeft,Ce.y+=z.clientTop):ue&&(Ce.x=Be$1(ue))),{x:pe.left+_e.scrollLeft-Ce.x,y:pe.top+_e.scrollTop-Ce.y,width:pe.width,height:pe.height}}function pn($){var z=new Map,oe=new Set,ae=[];$.forEach(function(ue){z.set(ue.name,ue)});function le(ue){oe.add(ue.name);var pe=[].concat(ue.requires||[],ue.requiresIfExists||[]);pe.forEach(function(_e){if(!oe.has(_e)){var Ce=z.get(_e);Ce&&le(Ce)}}),ae.push(ue)}return $.forEach(function(ue){oe.has(ue.name)||le(ue)}),ae}function un($){var z=pn($);return ot$1.reduce(function(oe,ae){return oe.concat(z.filter(function(le){return le.phase===ae}))},[])}function ln($){var z;return function(){return z||(z=new Promise(function(oe){Promise.resolve().then(function(){z=void 0,oe($())})})),z}}function dn($){var z=$.reduce(function(oe,ae){var le=oe[ae.name];return oe[ae.name]=le?Object.assign({},le,ae,{options:Object.assign({},le.options,ae.options),data:Object.assign({},le.data,ae.data)}):ae,oe},{});return Object.keys(z).map(function(oe){return z[oe]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t$2(){for(var $=arguments.length,z=new Array($),oe=0;oe<$;oe++)z[oe]=arguments[oe];return!z.some(function(ae){return!(ae&&typeof ae.getBoundingClientRect=="function")})}function we($){$===void 0&&($={});var z=$,oe=z.defaultModifiers,ae=oe===void 0?[]:oe,le=z.defaultOptions,ue=le===void 0?Ot:le;return function(pe,_e,Ce){Ce===void 0&&(Ce=ue);var $e={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,ue),modifiersData:{},elements:{reference:pe,popper:_e},attributes:{},styles:{}},xe=[],Ie=!1,Fe={state:$e,setOptions:function(qe){var At=typeof qe=="function"?qe($e.options):qe;Ue(),$e.options=Object.assign({},ue,$e.options,At),$e.scrollParents={reference:Q$1(pe)?ce$1(pe):pe.contextElement?ce$1(pe.contextElement):[],popper:ce$1(_e)};var Lt=un(dn([].concat(ae,$e.options.modifiers)));return $e.orderedModifiers=Lt.filter(function(hn){return hn.enabled}),ze(),Fe.update()},forceUpdate:function(){if(!Ie){var qe=$e.elements,At=qe.reference,Lt=qe.popper;if($t$2(At,Lt)){$e.rects={reference:cn(At,se(Lt),$e.options.strategy==="fixed"),popper:ke(Lt)},$e.reset=!1,$e.placement=$e.options.placement,$e.orderedModifiers.forEach(function(En){return $e.modifiersData[En.name]=Object.assign({},En.data)});for(var hn=0;hn<$e.orderedModifiers.length;hn++){if($e.reset===!0){$e.reset=!1,hn=-1;continue}var vn=$e.orderedModifiers[hn],_n=vn.fn,bn=vn.options,Sn=bn===void 0?{}:bn,Cn=vn.name;typeof _n=="function"&&($e=_n({state:$e,options:Sn,name:Cn,instance:Fe})||$e)}}}},update:ln(function(){return new Promise(function(qe){Fe.forceUpdate(),qe($e)})}),destroy:function(){Ue(),Ie=!0}};if(!$t$2(pe,_e))return Fe;Fe.setOptions(Ce).then(function(qe){!Ie&&Ce.onFirstUpdate&&Ce.onFirstUpdate(qe)});function ze(){$e.orderedModifiers.forEach(function(qe){var At=qe.name,Lt=qe.options,hn=Lt===void 0?{}:Lt,vn=qe.effect;if(typeof vn=="function"){var _n=vn({state:$e,name:At,instance:Fe,options:hn}),bn=function(){};xe.push(_n||bn)}})}function Ue(){xe.forEach(function(qe){return qe()}),xe=[]}return Fe}}we();var mn=[Re,He,Me,Ae];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae,wt,vt$1,xt,pt$1,bt],yn=we({defaultModifiers:gn});const usePopper=($,z,oe={})=>{const ae={name:"updateState",enabled:!0,phase:"write",fn:({state:Ce})=>{const $e=deriveState(Ce);Object.assign(pe.value,$e)},requires:["computeStyles"]},le=computed(()=>{const{onFirstUpdate:Ce,placement:$e,strategy:xe,modifiers:Ie}=unref(oe);return{onFirstUpdate:Ce,placement:$e||"bottom",strategy:xe||"absolute",modifiers:[...Ie||[],ae,{name:"applyStyles",enabled:!1}]}}),ue=shallowRef(),pe=ref({styles:{popper:{position:unref(le).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),_e=()=>{ue.value&&(ue.value.destroy(),ue.value=void 0)};return watch(le,Ce=>{const $e=unref(ue);$e&&$e.setOptions(Ce)},{deep:!0}),watch([$,z],([Ce,$e])=>{_e(),!(!Ce||!$e)&&(ue.value=yn(Ce,$e,unref(le)))}),onBeforeUnmount(()=>{_e()}),{state:computed(()=>{var Ce;return{...((Ce=unref(ue))==null?void 0:Ce.state)||{}}}),styles:computed(()=>unref(pe).styles),attributes:computed(()=>unref(pe).attributes),update:()=>{var Ce;return(Ce=unref(ue))==null?void 0:Ce.update()},forceUpdate:()=>{var Ce;return(Ce=unref(ue))==null?void 0:Ce.forceUpdate()},instanceRef:computed(()=>unref(ue))}};function deriveState($){const z=Object.keys($.elements),oe=fromPairs(z.map(le=>[le,$.styles[le]||{}])),ae=fromPairs(z.map(le=>[le,$.attributes[le]]));return{styles:oe,attributes:ae}}const useRestoreActive=($,z)=>{let oe;watch(()=>$.value,ae=>{var le,ue;ae?(oe=document.activeElement,isRef(z)&&((ue=(le=z.value).focus)==null||ue.call(le))):oe.focus()})},useSameTarget=$=>{if(!$)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let z=!1,oe=!1;return{onClick:pe=>{z&&oe&&$(pe),z=oe=!1},onMousedown:pe=>{z=pe.target===pe.currentTarget},onMouseup:pe=>{oe=pe.target===pe.currentTarget}}},useThrottleRender=($,z=0)=>{if(z===0)return $;const oe=ref(!1);let ae=0;const le=()=>{ae&&clearTimeout(ae),ae=window.setTimeout(()=>{oe.value=$.value},z)};return onMounted(le),watch(()=>$.value,ue=>{ue?le():oe.value=ue}),oe};function useTimeout(){let $;const z=(ae,le)=>{oe(),$=window.setTimeout(ae,le)},oe=()=>window.clearTimeout($);return tryOnScopeDispose$2(()=>oe()),{registerTimeout:z,cancelTimeout:oe}}const defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=$=>{const z=useIdInjection(),oe=useGetDerivedNamespace();return computed(()=>unref($)||`${oe.value}-id-${z.prefix}-${z.current++}`)};let registeredEscapeHandlers=[];const cachedHandler=$=>{const z=$;z.key===EVENT_CODE.esc&®isteredEscapeHandlers.forEach(oe=>oe(z))},useEscapeKeydown=$=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient$2&®isteredEscapeHandlers.push($)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(z=>z!==$),registeredEscapeHandlers.length===0&&isClient$2&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const usePopperContainerId=()=>{const $=useGetDerivedNamespace(),z=useIdInjection(),oe=computed(()=>`${$.value}-popper-container-${z.prefix}`),ae=computed(()=>`#${oe.value}`);return{id:oe,selector:ae}},createContainer=$=>{const z=document.createElement("div");return z.id=$,document.body.appendChild(z),z},usePopperContainer=()=>{const{id:$,selector:z}=usePopperContainerId();return onBeforeMount(()=>{isClient$2&&!cachedContainer&&!document.body.querySelector(z.value)&&(cachedContainer=createContainer($.value))}),{id:$,selector:z}},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:$,hideAfter:z,autoClose:oe,open:ae,close:le})=>{const{registerTimeout:ue}=useTimeout(),{registerTimeout:pe,cancelTimeout:_e}=useTimeout();return{onOpen:xe=>{ue(()=>{ae(xe);const Ie=unref(oe);isNumber$5(Ie)&&Ie>0&&pe(()=>{le(xe)},Ie)},unref($))},onClose:xe=>{_e(),ue(()=>{le(xe)},unref(z))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=$=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:oe=>{$.value=oe}})},useForwardRefDirective=$=>({mounted(z){$(z)},updated(z){$(z)},unmounted(){$(null)}}),zIndex=ref(0),defaultInitialZIndex=2e3,zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=$=>{const z=$||inject(zIndexContextKey,void 0),oe=computed(()=>{const ue=unref(z);return isNumber$5(ue)?ue:defaultInitialZIndex}),ae=computed(()=>oe.value+zIndex.value);return{initialZIndex:oe,currentZIndex:ae,nextZIndex:()=>(zIndex.value++,ae.value)}};function t($){return $.split("-")[1]}function e$1($){return $==="y"?"height":"width"}function n$2($){return $.split("-")[0]}function o$2($){return["top","bottom"].includes(n$2($))?"x":"y"}function i$2($,z,oe){let{reference:ae,floating:le}=$;const ue=ae.x+ae.width/2-le.width/2,pe=ae.y+ae.height/2-le.height/2,_e=o$2(z),Ce=e$1(_e),$e=ae[Ce]/2-le[Ce]/2,xe=_e==="x";let Ie;switch(n$2(z)){case"top":Ie={x:ue,y:ae.y-le.height};break;case"bottom":Ie={x:ue,y:ae.y+ae.height};break;case"right":Ie={x:ae.x+ae.width,y:pe};break;case"left":Ie={x:ae.x-le.width,y:pe};break;default:Ie={x:ae.x,y:ae.y}}switch(t(z)){case"start":Ie[_e]-=$e*(oe&&xe?-1:1);break;case"end":Ie[_e]+=$e*(oe&&xe?-1:1)}return Ie}const r$1=async($,z,oe)=>{const{placement:ae="bottom",strategy:le="absolute",middleware:ue=[],platform:pe}=oe,_e=ue.filter(Boolean),Ce=await(pe.isRTL==null?void 0:pe.isRTL(z));let $e=await pe.getElementRects({reference:$,floating:z,strategy:le}),{x:xe,y:Ie}=i$2($e,ae,Ce),Fe=ae,ze={},Ue=0;for(let qe=0;qe<_e.length;qe++){const{name:At,fn:Lt}=_e[qe],{x:hn,y:vn,data:_n,reset:bn}=await Lt({x:xe,y:Ie,initialPlacement:ae,placement:Fe,strategy:le,middlewareData:ze,rects:$e,platform:pe,elements:{reference:$,floating:z}});xe=hn??xe,Ie=vn??Ie,ze={...ze,[At]:{...ze[At],..._n}},bn&&Ue<=50&&(Ue++,typeof bn=="object"&&(bn.placement&&(Fe=bn.placement),bn.rects&&($e=bn.rects===!0?await pe.getElementRects({reference:$,floating:z,strategy:le}):bn.rects),{x:xe,y:Ie}=i$2($e,Fe,Ce)),qe=-1)}return{x:xe,y:Ie,placement:Fe,strategy:le,middlewareData:ze}};function a$3($){return typeof $!="number"?function(z){return{top:0,right:0,bottom:0,left:0,...z}}($):{top:$,right:$,bottom:$,left:$}}function l$2($){return{...$,top:$.y,left:$.x,right:$.x+$.width,bottom:$.y+$.height}}const c$4=Math.min,f$3=Math.max;function m$5($,z,oe){return f$3($,c$4(z,oe))}const u$3=$=>({name:"arrow",options:$,async fn(z){const{element:oe,padding:ae=0}=$||{},{x:le,y:ue,placement:pe,rects:_e,platform:Ce,elements:$e}=z;if(oe==null)return{};const xe=a$3(ae),Ie={x:le,y:ue},Fe=o$2(pe),ze=e$1(Fe),Ue=await Ce.getDimensions(oe),qe=Fe==="y",At=qe?"top":"left",Lt=qe?"bottom":"right",hn=qe?"clientHeight":"clientWidth",vn=_e.reference[ze]+_e.reference[Fe]-Ie[Fe]-_e.floating[ze],_n=Ie[Fe]-_e.reference[Fe],bn=await(Ce.getOffsetParent==null?void 0:Ce.getOffsetParent(oe));let Sn=bn?bn[hn]:0;Sn&&await(Ce.isElement==null?void 0:Ce.isElement(bn))||(Sn=$e.floating[hn]||_e.floating[ze]);const Cn=vn/2-_n/2,En=xe[At],$n=Sn-Ue[ze]-xe[Lt],wn=Sn/2-Ue[ze]/2+Cn,Tn=m$5(En,wn,$n),xn=t(pe)!=null&&wn!=Tn&&_e.reference[ze]/2-(wn<En?xe[At]:xe[Lt])-Ue[ze]/2<0;return{[Fe]:Ie[Fe]-(xn?wn<En?En-wn:$n-wn:0),data:{[Fe]:Tn,centerOffset:wn-Tn}}}}),g$2=["top","right","bottom","left"];g$2.reduce(($,z)=>$.concat(z,z+"-start",z+"-end"),[]);const D$3=function($){return $===void 0&&($=0),{name:"offset",options:$,async fn(z){const{x:oe,y:ae}=z,le=await async function(ue,pe){const{placement:_e,platform:Ce,elements:$e}=ue,xe=await(Ce.isRTL==null?void 0:Ce.isRTL($e.floating)),Ie=n$2(_e),Fe=t(_e),ze=o$2(_e)==="x",Ue=["left","top"].includes(Ie)?-1:1,qe=xe&&ze?-1:1,At=typeof pe=="function"?pe(ue):pe;let{mainAxis:Lt,crossAxis:hn,alignmentAxis:vn}=typeof At=="number"?{mainAxis:At,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...At};return Fe&&typeof vn=="number"&&(hn=Fe==="end"?-1*vn:vn),ze?{x:hn*qe,y:Lt*Ue}:{x:Lt*Ue,y:hn*qe}}(z,$);return{x:oe+le.x,y:ae+le.y,data:le}}}};function n$1($){var z;return((z=$.ownerDocument)==null?void 0:z.defaultView)||window}function o$1($){return n$1($).getComputedStyle($)}function i$1($){return $ instanceof n$1($).Node}function r($){return i$1($)?($.nodeName||"").toLowerCase():""}let l$1;function c$3(){if(l$1)return l$1;const $=navigator.userAgentData;return $&&Array.isArray($.brands)?(l$1=$.brands.map(z=>z.brand+"/"+z.version).join(" "),l$1):navigator.userAgent}function s$1($){return $ instanceof n$1($).HTMLElement}function f$2($){return $ instanceof n$1($).Element}function u$2($){return typeof ShadowRoot>"u"?!1:$ instanceof n$1($).ShadowRoot||$ instanceof ShadowRoot}function a$2($){const{overflow:z,overflowX:oe,overflowY:ae,display:le}=o$1($);return/auto|scroll|overlay|hidden|clip/.test(z+ae+oe)&&!["inline","contents"].includes(le)}function d$2($){return["table","td","th"].includes(r($))}function h$2($){const z=/firefox/i.test(c$3()),oe=o$1($),ae=oe.backdropFilter||oe.WebkitBackdropFilter;return oe.transform!=="none"||oe.perspective!=="none"||!!ae&&ae!=="none"||z&&oe.willChange==="filter"||z&&!!oe.filter&&oe.filter!=="none"||["transform","perspective"].some(le=>oe.willChange.includes(le))||["paint","layout","strict","content"].some(le=>{const ue=oe.contain;return ue!=null&&ue.includes(le)})}function p$2(){return/^((?!chrome|android).)*safari/i.test(c$3())}function g$1($){return["html","body","#document"].includes(r($))}const m$4=Math.min,y$1=Math.max,x$1=Math.round;function w$1($){const z=o$1($);let oe=parseFloat(z.width),ae=parseFloat(z.height);const le=s$1($),ue=le?$.offsetWidth:oe,pe=le?$.offsetHeight:ae,_e=x$1(oe)!==ue||x$1(ae)!==pe;return _e&&(oe=ue,ae=pe),{width:oe,height:ae,fallback:_e}}function v$1($){return f$2($)?$:$.contextElement}const b$2={x:1,y:1};function L$3($){const z=v$1($);if(!s$1(z))return b$2;const oe=z.getBoundingClientRect(),{width:ae,height:le,fallback:ue}=w$1(z);let pe=(ue?x$1(oe.width):oe.width)/ae,_e=(ue?x$1(oe.height):oe.height)/le;return pe&&Number.isFinite(pe)||(pe=1),_e&&Number.isFinite(_e)||(_e=1),{x:pe,y:_e}}function E$1($,z,oe,ae){var le,ue;z===void 0&&(z=!1),oe===void 0&&(oe=!1);const pe=$.getBoundingClientRect(),_e=v$1($);let Ce=b$2;z&&(ae?f$2(ae)&&(Ce=L$3(ae)):Ce=L$3($));const $e=_e?n$1(_e):window,xe=p$2()&&oe;let Ie=(pe.left+(xe&&((le=$e.visualViewport)==null?void 0:le.offsetLeft)||0))/Ce.x,Fe=(pe.top+(xe&&((ue=$e.visualViewport)==null?void 0:ue.offsetTop)||0))/Ce.y,ze=pe.width/Ce.x,Ue=pe.height/Ce.y;if(_e){const qe=n$1(_e),At=ae&&f$2(ae)?n$1(ae):ae;let Lt=qe.frameElement;for(;Lt&&ae&&At!==qe;){const hn=L$3(Lt),vn=Lt.getBoundingClientRect(),_n=getComputedStyle(Lt);vn.x+=(Lt.clientLeft+parseFloat(_n.paddingLeft))*hn.x,vn.y+=(Lt.clientTop+parseFloat(_n.paddingTop))*hn.y,Ie*=hn.x,Fe*=hn.y,ze*=hn.x,Ue*=hn.y,Ie+=vn.x,Fe+=vn.y,Lt=n$1(Lt).frameElement}}return l$2({width:ze,height:Ue,x:Ie,y:Fe})}function T$1($){return((i$1($)?$.ownerDocument:$.document)||window.document).documentElement}function R($){return f$2($)?{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}:{scrollLeft:$.pageXOffset,scrollTop:$.pageYOffset}}function C$1($){return E$1(T$1($)).left+R($).scrollLeft}function F$2($){if(r($)==="html")return $;const z=$.assignedSlot||$.parentNode||u$2($)&&$.host||T$1($);return u$2(z)?z.host:z}function S$1($){const z=F$2($);return g$1(z)?z.ownerDocument.body:s$1(z)&&a$2(z)?z:S$1(z)}function W($,z){var oe;z===void 0&&(z=[]);const ae=S$1($),le=ae===((oe=$.ownerDocument)==null?void 0:oe.body),ue=n$1(ae);return le?z.concat(ue,ue.visualViewport||[],a$2(ae)?ae:[]):z.concat(ae,W(ae))}function D$2($,z,oe){let ae;if(z==="viewport")ae=function(pe,_e){const Ce=n$1(pe),$e=T$1(pe),xe=Ce.visualViewport;let Ie=$e.clientWidth,Fe=$e.clientHeight,ze=0,Ue=0;if(xe){Ie=xe.width,Fe=xe.height;const qe=p$2();(!qe||qe&&_e==="fixed")&&(ze=xe.offsetLeft,Ue=xe.offsetTop)}return{width:Ie,height:Fe,x:ze,y:Ue}}($,oe);else if(z==="document")ae=function(pe){const _e=T$1(pe),Ce=R(pe),$e=pe.ownerDocument.body,xe=y$1(_e.scrollWidth,_e.clientWidth,$e.scrollWidth,$e.clientWidth),Ie=y$1(_e.scrollHeight,_e.clientHeight,$e.scrollHeight,$e.clientHeight);let Fe=-Ce.scrollLeft+C$1(pe);const ze=-Ce.scrollTop;return o$1($e).direction==="rtl"&&(Fe+=y$1(_e.clientWidth,$e.clientWidth)-xe),{width:xe,height:Ie,x:Fe,y:ze}}(T$1($));else if(f$2(z))ae=function(pe,_e){const Ce=E$1(pe,!0,_e==="fixed"),$e=Ce.top+pe.clientTop,xe=Ce.left+pe.clientLeft,Ie=s$1(pe)?L$3(pe):{x:1,y:1};return{width:pe.clientWidth*Ie.x,height:pe.clientHeight*Ie.y,x:xe*Ie.x,y:$e*Ie.y}}(z,oe);else{const pe={...z};if(p$2()){var le,ue;const _e=n$1($);pe.x-=((le=_e.visualViewport)==null?void 0:le.offsetLeft)||0,pe.y-=((ue=_e.visualViewport)==null?void 0:ue.offsetTop)||0}ae=pe}return l$2(ae)}function V$1($,z){const oe=F$2($);return!(oe===z||!f$2(oe)||g$1(oe))&&(o$1(oe).position==="fixed"||V$1(oe,z))}function A$1($,z){return s$1($)&&o$1($).position!=="fixed"?z?z($):$.offsetParent:null}function H$2($,z){const oe=n$1($);if(!s$1($))return oe;let ae=A$1($,z);for(;ae&&d$2(ae)&&o$1(ae).position==="static";)ae=A$1(ae,z);return ae&&(r(ae)==="html"||r(ae)==="body"&&o$1(ae).position==="static"&&!h$2(ae))?oe:ae||function(le){let ue=F$2(le);for(;s$1(ue)&&!g$1(ue);){if(h$2(ue))return ue;ue=F$2(ue)}return null}($)||oe}function O$2($,z,oe){const ae=s$1(z),le=T$1(z),ue=E$1($,!0,oe==="fixed",z);let pe={scrollLeft:0,scrollTop:0};const _e={x:0,y:0};if(ae||!ae&&oe!=="fixed")if((r(z)!=="body"||a$2(le))&&(pe=R(z)),s$1(z)){const Ce=E$1(z,!0);_e.x=Ce.x+z.clientLeft,_e.y=Ce.y+z.clientTop}else le&&(_e.x=C$1(le));return{x:ue.left+pe.scrollLeft-_e.x,y:ue.top+pe.scrollTop-_e.y,width:ue.width,height:ue.height}}const P$3={getClippingRect:function($){let{element:z,boundary:oe,rootBoundary:ae,strategy:le}=$;const ue=oe==="clippingAncestors"?function($e,xe){const Ie=xe.get($e);if(Ie)return Ie;let Fe=W($e).filter(At=>f$2(At)&&r(At)!=="body"),ze=null;const Ue=o$1($e).position==="fixed";let qe=Ue?F$2($e):$e;for(;f$2(qe)&&!g$1(qe);){const At=o$1(qe),Lt=h$2(qe);Lt||At.position!=="fixed"||(ze=null),(Ue?!Lt&&!ze:!Lt&&At.position==="static"&&ze&&["absolute","fixed"].includes(ze.position)||a$2(qe)&&!Lt&&V$1($e,qe))?Fe=Fe.filter(hn=>hn!==qe):ze=At,qe=F$2(qe)}return xe.set($e,Fe),Fe}(z,this._c):[].concat(oe),pe=[...ue,ae],_e=pe[0],Ce=pe.reduce(($e,xe)=>{const Ie=D$2(z,xe,le);return $e.top=y$1(Ie.top,$e.top),$e.right=m$4(Ie.right,$e.right),$e.bottom=m$4(Ie.bottom,$e.bottom),$e.left=y$1(Ie.left,$e.left),$e},D$2(z,_e,le));return{width:Ce.right-Ce.left,height:Ce.bottom-Ce.top,x:Ce.left,y:Ce.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function($){let{rect:z,offsetParent:oe,strategy:ae}=$;const le=s$1(oe),ue=T$1(oe);if(oe===ue)return z;let pe={scrollLeft:0,scrollTop:0},_e={x:1,y:1};const Ce={x:0,y:0};if((le||!le&&ae!=="fixed")&&((r(oe)!=="body"||a$2(ue))&&(pe=R(oe)),s$1(oe))){const $e=E$1(oe);_e=L$3(oe),Ce.x=$e.x+oe.clientLeft,Ce.y=$e.y+oe.clientTop}return{width:z.width*_e.x,height:z.height*_e.y,x:z.x*_e.x-pe.scrollLeft*_e.x+Ce.x,y:z.y*_e.y-pe.scrollTop*_e.y+Ce.y}},isElement:f$2,getDimensions:function($){return w$1($)},getOffsetParent:H$2,getDocumentElement:T$1,getScale:L$3,async getElementRects($){let{reference:z,floating:oe,strategy:ae}=$;const le=this.getOffsetParent||H$2,ue=this.getDimensions;return{reference:O$2(z,await le(oe),ae),floating:{x:0,y:0,...await ue(oe)}}},getClientRects:$=>Array.from($.getClientRects()),isRTL:$=>o$1($).direction==="rtl"},k$2=($,z,oe)=>{const ae=new Map,le={platform:P$3,...oe},ue={...le.platform,_c:ae};return r$1($,z,{...le,platform:ue})};buildProps({});const unrefReference=$=>{if(!isClient$2)return;if(!$)return $;const z=unrefElement$1($);return z||(isRef($)?z:$)},useFloating=({middleware:$,placement:z,strategy:oe})=>{const ae=ref(),le=ref(),ue=ref(),pe=ref(),_e=ref({}),Ce={x:ue,y:pe,placement:z,strategy:oe,middlewareData:_e},$e=async()=>{if(!isClient$2)return;const xe=unrefReference(ae),Ie=unrefElement$1(le);if(!xe||!Ie)return;const Fe=await k$2(xe,Ie,{placement:unref(z),strategy:unref(oe),middleware:unref($)});keysOf(Ce).forEach(ze=>{Ce[ze].value=Fe[ze]})};return onMounted(()=>{watchEffect(()=>{$e()})}),{...Ce,update:$e,referenceRef:ae,contentRef:le}},arrowMiddleware=({arrowRef:$,padding:z})=>({name:"arrow",options:{element:$,padding:z},fn(oe){const ae=unref($);return ae?u$3({element:ae,padding:z}).fn(oe):{}}});function useCursor($){const z=ref();function oe(){if($.value==null)return;const{selectionStart:le,selectionEnd:ue,value:pe}=$.value;if(le==null||ue==null)return;const _e=pe.slice(0,Math.max(0,le)),Ce=pe.slice(Math.max(0,ue));z.value={selectionStart:le,selectionEnd:ue,value:pe,beforeTxt:_e,afterTxt:Ce}}function ae(){if($.value==null||z.value==null)return;const{value:le}=$.value,{beforeTxt:ue,afterTxt:pe,selectionStart:_e}=z.value;if(ue==null||pe==null||_e==null)return;let Ce=le.length;if(le.endsWith(pe))Ce=le.length-pe.length;else if(le.startsWith(ue))Ce=ue.length;else{const $e=ue[_e-1],xe=le.indexOf($e,_e-1);xe!==-1&&(Ce=xe+1)}$.value.setSelectionRange(Ce,Ce)}return[oe,ae]}const getOrderedChildren=($,z,oe)=>flattedChildren($.subTree).filter(ue=>{var pe;return isVNode$1(ue)&&((pe=ue.type)==null?void 0:pe.name)===z&&!!ue.component}).map(ue=>ue.component.uid).map(ue=>oe[ue]).filter(ue=>!!ue),useOrderedChildren=($,z)=>{const oe={},ae=shallowRef([]);return{children:ae,addChild:pe=>{oe[pe.uid]=pe,ae.value=getOrderedChildren($,z,oe)},removeChild:pe=>{delete oe[pe],ae.value=ae.value.filter(_e=>_e.uid!==pe)}}},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const $=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref($.size)||"")},configProviderContextKey=Symbol(),globalConfig=ref();function useGlobalConfig($,z=void 0){const oe=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return $?computed(()=>{var ae,le;return(le=(ae=oe.value)==null?void 0:ae[$])!=null?le:z}):oe}function useGlobalComponentSettings($,z){const oe=useGlobalConfig(),ae=useNamespace($,computed(()=>{var _e;return((_e=oe.value)==null?void 0:_e.namespace)||defaultNamespace})),le=useLocale(computed(()=>{var _e;return(_e=oe.value)==null?void 0:_e.locale})),ue=useZIndex(computed(()=>{var _e;return((_e=oe.value)==null?void 0:_e.zIndex)||defaultInitialZIndex})),pe=computed(()=>{var _e;return unref(z)||((_e=oe.value)==null?void 0:_e.size)||""});return provideGlobalConfig(computed(()=>unref(oe)||{})),{ns:ae,locale:le,zIndex:ue,size:pe}}const provideGlobalConfig=($,z,oe=!1)=>{var ae;const le=!!getCurrentInstance(),ue=le?useGlobalConfig():void 0,pe=(ae=z==null?void 0:z.provide)!=null?ae:le?provide:void 0;if(!pe)return;const _e=computed(()=>{const Ce=unref($);return ue!=null&&ue.value?mergeConfig$1(ue.value,Ce):Ce});return pe(configProviderContextKey,_e),pe(localeContextKey,computed(()=>_e.value.locale)),pe(namespaceContextKey,computed(()=>_e.value.namespace)),pe(zIndexContextKey,computed(()=>_e.value.zIndex)),pe(SIZE_INJECTION_KEY,{size:computed(()=>_e.value.size||"")}),(oe||!globalConfig.value)&&(globalConfig.value=_e.value),_e},mergeConfig$1=($,z)=>{var oe;const ae=[...new Set([...keysOf($),...keysOf(z)])],le={};for(const ue of ae)le[ue]=(oe=z[ue])!=null?oe:$[ue];return le},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),messageConfig={},ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup($,{slots:z}){watch(()=>$.message,ae=>{Object.assign(messageConfig,ae??{})},{immediate:!0,deep:!0});const oe=provideGlobalConfig($);return()=>renderSlot(z,"default",{config:oe==null?void 0:oe.value})}}),ElConfigProvider=withInstall(ConfigProvider),version$2="2.3.5",makeInstaller=($=[])=>({version:version$2,install:(oe,ae)=>{oe[INSTALLED_KEY]||(oe[INSTALLED_KEY]=!0,$.forEach(le=>oe.use(le)),ae&&provideGlobalConfig(ae,oe,!0))}}),affixProps=buildProps({zIndex:{type:definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),affixEmits={scroll:({scrollTop:$,fixed:z})=>isNumber$5($)&&isBoolean$3(z),[CHANGE_EVENT]:$=>isBoolean$3($)};var _export_sfc$1=($,z)=>{const oe=$.__vccOpts||$;for(const[ae,le]of z)oe[ae]=le;return oe};const COMPONENT_NAME$n="ElAffix",__default__$1C=defineComponent({name:COMPONENT_NAME$n}),_sfc_main$2k=defineComponent({...__default__$1C,props:affixProps,emits:affixEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useNamespace("affix"),ue=shallowRef(),pe=shallowRef(),_e=shallowRef(),{height:Ce}=useWindowSize(),{height:$e,width:xe,top:Ie,bottom:Fe,update:ze}=useElementBounding(pe,{windowScroll:!1}),Ue=useElementBounding(ue),qe=ref(!1),At=ref(0),Lt=ref(0),hn=computed(()=>({height:qe.value?`${$e.value}px`:"",width:qe.value?`${xe.value}px`:""})),vn=computed(()=>{if(!qe.value)return{};const Sn=ae.offset?addUnit(ae.offset):0;return{height:`${$e.value}px`,width:`${xe.value}px`,top:ae.position==="top"?Sn:"",bottom:ae.position==="bottom"?Sn:"",transform:Lt.value?`translateY(${Lt.value}px)`:"",zIndex:ae.zIndex}}),_n=()=>{if(_e.value)if(At.value=_e.value instanceof Window?document.documentElement.scrollTop:_e.value.scrollTop||0,ae.position==="top")if(ae.target){const Sn=Ue.bottom.value-ae.offset-$e.value;qe.value=ae.offset>Ie.value&&Ue.bottom.value>0,Lt.value=Sn<0?Sn:0}else qe.value=ae.offset>Ie.value;else if(ae.target){const Sn=Ce.value-Ue.top.value-ae.offset-$e.value;qe.value=Ce.value-ae.offset<Fe.value&&Ce.value>Ue.top.value,Lt.value=Sn<0?-Sn:0}else qe.value=Ce.value-ae.offset<Fe.value},bn=()=>{ze(),oe("scroll",{scrollTop:At.value,fixed:qe.value})};return watch(qe,Sn=>oe("change",Sn)),onMounted(()=>{var Sn;ae.target?(ue.value=(Sn=document.querySelector(ae.target))!=null?Sn:void 0,ue.value||throwError$1(COMPONENT_NAME$n,`Target is not existed: ${ae.target}`)):ue.value=document.documentElement,_e.value=getScrollContainer(pe.value,!0),ze()}),useEventListener$1(_e,"scroll",bn),watchEffect(_n),z({update:_n,updateRoot:ze}),(Sn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:pe,class:normalizeClass(unref(le).b()),style:normalizeStyle$1(unref(hn))},[createBaseVNode("div",{class:normalizeClass({[unref(le).m("fixed")]:qe.value}),style:normalizeStyle$1(unref(vn))},[renderSlot(Sn.$slots,"default")],6)],6))}});var Affix=_export_sfc$1(_sfc_main$2k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const ElAffix=withInstall(Affix),iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),__default__$1B=defineComponent({name:"ElIcon",inheritAttrs:!1}),_sfc_main$2j=defineComponent({...__default__$1B,props:iconProps,setup($){const z=$,oe=useNamespace("icon"),ae=computed(()=>{const{size:le,color:ue}=z;return!le&&!ue?{}:{fontSize:isUndefined$1(le)?void 0:addUnit(le),"--color":ue}});return(le,ue)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(oe).b(),style:unref(ae)},le.$attrs),[renderSlot(le.$slots,"default")],16))}});var Icon$2=_export_sfc$1(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon$2),alertEffects=["light","dark"],alertProps=buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:keysOf(TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:alertEffects,default:"light"}}),alertEmits={close:$=>$ instanceof MouseEvent},__default__$1A=defineComponent({name:"ElAlert"}),_sfc_main$2i=defineComponent({...__default__$1A,props:alertProps,emits:alertEmits,setup($,{emit:z}){const oe=$,{Close:ae}=TypeComponents,le=useSlots(),ue=useNamespace("alert"),pe=ref(!0),_e=computed(()=>TypeComponentsMap[oe.type]),Ce=computed(()=>[ue.e("icon"),{[ue.is("big")]:!!oe.description||!!le.default}]),$e=computed(()=>({[ue.is("bold")]:oe.description||le.default})),xe=Ie=>{pe.value=!1,z("close",Ie)};return(Ie,Fe)=>(openBlock(),createBlock(Transition,{name:unref(ue).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(ue).b(),unref(ue).m(Ie.type),unref(ue).is("center",Ie.center),unref(ue).is(Ie.effect)]),role:"alert"},[Ie.showIcon&&unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ue).e("content"))},[Ie.title||Ie.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(ue).e("title"),unref($e)])},[renderSlot(Ie.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ie.title),1)])],2)):createCommentVNode("v-if",!0),Ie.$slots.default||Ie.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(ue).e("description"))},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.description),1)])],2)):createCommentVNode("v-if",!0),Ie.closable?(openBlock(),createElementBlock(Fragment,{key:2},[Ie.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(ue).e("close-btn"),unref(ue).is("customed")]),onClick:xe},toDisplayString$1(Ie.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(ue).e("close-btn")),onClick:xe},{default:withCtx(()=>[createVNode(unref(ae))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,pe.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc$1(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert),formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),useFormSize=($,z={})=>{const oe=ref(void 0),ae=z.prop?oe:useProp("size"),le=z.global?oe:useGlobalSize(),ue=z.form?{size:void 0}:inject(formContextKey,void 0),pe=z.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>ae.value||unref($)||(pe==null?void 0:pe.size)||(ue==null?void 0:ue.size)||le.value||"")},useFormDisabled=$=>{const z=useProp("disabled"),oe=inject(formContextKey,void 0);return computed(()=>z.value||unref($)||(oe==null?void 0:oe.disabled)||!1)},useFormItem=()=>{const $=inject(formContextKey,void 0),z=inject(formItemContextKey,void 0);return{form:$,formItem:z}},useFormItemInputId=($,{formItemContext:z,disableIdGeneration:oe,disableIdManagement:ae})=>{oe||(oe=ref(!1)),ae||(ae=ref(!1));const le=ref();let ue;const pe=computed(()=>{var _e;return!!(!$.label&&z&&z.inputIds&&((_e=z.inputIds)==null?void 0:_e.length)<=1)});return onMounted(()=>{ue=watch([toRef$1($,"id"),oe],([_e,Ce])=>{const $e=_e??(Ce?void 0:useId().value);$e!==le.value&&(z!=null&&z.removeInputId&&(le.value&&z.removeInputId(le.value),!(ae!=null&&ae.value)&&!Ce&&$e&&z.addInputId($e)),le.value=$e)},{immediate:!0})}),onUnmounted(()=>{ue&&ue(),z!=null&&z.removeInputId&&le.value&&z.removeInputId(le.value)}),{isLabeledByFormItem:pe,inputId:le}},formMetaProps=buildProps({size:{type:String,values:componentSizes},disabled:Boolean}),formProps=buildProps({...formMetaProps,model:Object,rules:{type:definePropType(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),formEmits={validate:($,z,oe)=>(isArray$c($)||isString$7($))&&isBoolean$3(z)&&isString$7(oe)};function useFormLabelWidth(){const $=ref([]),z=computed(()=>{if(!$.value.length)return"0";const ue=Math.max(...$.value);return ue?`${ue}px`:""});function oe(ue){const pe=$.value.indexOf(ue);return pe===-1&&z.value,pe}function ae(ue,pe){if(ue&&pe){const _e=oe(pe);$.value.splice(_e,1,ue)}else ue&&$.value.push(ue)}function le(ue){const pe=oe(ue);pe>-1&&$.value.splice(pe,1)}return{autoLabelWidth:z,registerLabelWidth:ae,deregisterLabelWidth:le}}const filterFields=($,z)=>{const oe=castArray$1(z);return oe.length>0?$.filter(ae=>ae.prop&&oe.includes(ae.prop)):$},COMPONENT_NAME$m="ElForm",__default__$1z=defineComponent({name:COMPONENT_NAME$m}),_sfc_main$2h=defineComponent({...__default__$1z,props:formProps,emits:formEmits,setup($,{expose:z,emit:oe}){const ae=$,le=[],ue=useFormSize(),pe=useNamespace("form"),_e=computed(()=>{const{labelPosition:hn,inline:vn}=ae;return[pe.b(),pe.m(ue.value||"default"),{[pe.m(`label-${hn}`)]:hn,[pe.m("inline")]:vn}]}),Ce=hn=>{le.push(hn)},$e=hn=>{hn.prop&&le.splice(le.indexOf(hn),1)},xe=(hn=[])=>{ae.model&&filterFields(le,hn).forEach(vn=>vn.resetField())},Ie=(hn=[])=>{filterFields(le,hn).forEach(vn=>vn.clearValidate())},Fe=computed(()=>!!ae.model),ze=hn=>{if(le.length===0)return[];const vn=filterFields(le,hn);return vn.length?vn:[]},Ue=async hn=>At(void 0,hn),qe=async(hn=[])=>{if(!Fe.value)return!1;const vn=ze(hn);if(vn.length===0)return!0;let _n={};for(const bn of vn)try{await bn.validate("")}catch(Sn){_n={..._n,...Sn}}return Object.keys(_n).length===0?!0:Promise.reject(_n)},At=async(hn=[],vn)=>{const _n=!isFunction$5(vn);try{const bn=await qe(hn);return bn===!0&&(vn==null||vn(bn)),bn}catch(bn){if(bn instanceof Error)throw bn;const Sn=bn;return ae.scrollToError&&Lt(Object.keys(Sn)[0]),vn==null||vn(!1,Sn),_n&&Promise.reject(Sn)}},Lt=hn=>{var vn;const _n=filterFields(le,hn)[0];_n&&((vn=_n.$el)==null||vn.scrollIntoView(ae.scrollIntoViewOptions))};return watch(()=>ae.rules,()=>{ae.validateOnRuleChange&&Ue().catch(hn=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(ae),emit:oe,resetFields:xe,clearValidate:Ie,validateField:At,addField:Ce,removeField:$e,...useFormLabelWidth()})),z({validate:Ue,validateField:At,resetFields:xe,clearValidate:Ie,scrollToField:Lt}),(hn,vn)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(_e))},[renderSlot(hn.$slots,"default")],2))}});var Form=_export_sfc$1(_sfc_main$2h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function($){for(var z=1;z<arguments.length;z++){var oe=arguments[z];for(var ae in oe)Object.prototype.hasOwnProperty.call(oe,ae)&&($[ae]=oe[ae])}return $},_extends.apply(this,arguments)}function _inheritsLoose($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,_setPrototypeOf($,z)}function _getPrototypeOf($){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},_getPrototypeOf($)}function _setPrototypeOf($,z){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ae,le){return ae.__proto__=le,ae},_setPrototypeOf($,z)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct($,z,oe){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(le,ue,pe){var _e=[null];_e.push.apply(_e,ue);var Ce=Function.bind.apply(le,_e),$e=new Ce;return pe&&_setPrototypeOf($e,pe.prototype),$e},_construct.apply(null,arguments)}function _isNativeFunction($){return Function.toString.call($).indexOf("[native code]")!==-1}function _wrapNativeSuper($){var z=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(ae){if(ae===null||!_isNativeFunction(ae))return ae;if(typeof ae!="function")throw new TypeError("Super expression must either be null or a function");if(typeof z<"u"){if(z.has(ae))return z.get(ae);z.set(ae,le)}function le(){return _construct(ae,arguments,_getPrototypeOf(this).constructor)}return le.prototype=Object.create(ae.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(le,ae)},_wrapNativeSuper($)}var formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u"&&process.env;function convertFieldsError($){if(!$||!$.length)return null;var z={};return $.forEach(function(oe){var ae=oe.field;z[ae]=z[ae]||[],z[ae].push(oe)}),z}function format$2($){for(var z=arguments.length,oe=new Array(z>1?z-1:0),ae=1;ae<z;ae++)oe[ae-1]=arguments[ae];var le=0,ue=oe.length;if(typeof $=="function")return $.apply(null,oe);if(typeof $=="string"){var pe=$.replace(formatRegExp,function(_e){if(_e==="%%")return"%";if(le>=ue)return _e;switch(_e){case"%s":return String(oe[le++]);case"%d":return Number(oe[le++]);case"%j":try{return JSON.stringify(oe[le++])}catch{return"[Circular]"}break;default:return _e}});return pe}return $}function isNativeStringType($){return $==="string"||$==="url"||$==="hex"||$==="email"||$==="date"||$==="pattern"}function isEmptyValue($,z){return!!($==null||z==="array"&&Array.isArray($)&&!$.length||isNativeStringType(z)&&typeof $=="string"&&!$)}function asyncParallelArray($,z,oe){var ae=[],le=0,ue=$.length;function pe(_e){ae.push.apply(ae,_e||[]),le++,le===ue&&oe(ae)}$.forEach(function(_e){z(_e,pe)})}function asyncSerialArray($,z,oe){var ae=0,le=$.length;function ue(pe){if(pe&&pe.length){oe(pe);return}var _e=ae;ae=ae+1,_e<le?z($[_e],ue):oe([])}ue([])}function flattenObjArr($){var z=[];return Object.keys($).forEach(function(oe){z.push.apply(z,$[oe]||[])}),z}var AsyncValidationError=function($){_inheritsLoose(z,$);function z(oe,ae){var le;return le=$.call(this,"Async Validation Error")||this,le.errors=oe,le.fields=ae,le}return z}(_wrapNativeSuper(Error));function asyncMap($,z,oe,ae,le){if(z.first){var ue=new Promise(function(Fe,ze){var Ue=function(Lt){return ae(Lt),Lt.length?ze(new AsyncValidationError(Lt,convertFieldsError(Lt))):Fe(le)},qe=flattenObjArr($);asyncSerialArray(qe,oe,Ue)});return ue.catch(function(Fe){return Fe}),ue}var pe=z.firstFields===!0?Object.keys($):z.firstFields||[],_e=Object.keys($),Ce=_e.length,$e=0,xe=[],Ie=new Promise(function(Fe,ze){var Ue=function(At){if(xe.push.apply(xe,At),$e++,$e===Ce)return ae(xe),xe.length?ze(new AsyncValidationError(xe,convertFieldsError(xe))):Fe(le)};_e.length||(ae(xe),Fe(le)),_e.forEach(function(qe){var At=$[qe];pe.indexOf(qe)!==-1?asyncSerialArray(At,oe,Ue):asyncParallelArray(At,oe,Ue)})});return Ie.catch(function(Fe){return Fe}),Ie}function isErrorObj($){return!!($&&$.message!==void 0)}function getValue($,z){for(var oe=$,ae=0;ae<z.length;ae++){if(oe==null)return oe;oe=oe[z[ae]]}return oe}function complementError($,z){return function(oe){var ae;return $.fullFields?ae=getValue(z,$.fullFields):ae=z[oe.field||$.fullField],isErrorObj(oe)?(oe.field=oe.field||$.fullField,oe.fieldValue=ae,oe):{message:typeof oe=="function"?oe():oe,fieldValue:ae,field:oe.field||$.fullField}}}function deepMerge($,z){if(z){for(var oe in z)if(z.hasOwnProperty(oe)){var ae=z[oe];typeof ae=="object"&&typeof $[oe]=="object"?$[oe]=_extends({},$[oe],ae):$[oe]=ae}}return $}var required$1=function(z,oe,ae,le,ue,pe){z.required&&(!ae.hasOwnProperty(z.field)||isEmptyValue(oe,pe||z.type))&&le.push(format$2(ue.messages.required,z.fullField))},whitespace=function(z,oe,ae,le,ue){(/^\s+$/.test(oe)||oe==="")&&le.push(format$2(ue.messages.whitespace,z.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var $="[a-fA-F\\d:]",z=function(_n){return _n&&_n.includeBoundaries?"(?:(?<=\\s|^)(?="+$+")|(?<="+$+")(?=\\s|$))":""},oe="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ae="[a-fA-F\\d]{1,4}",le=(`
|
||
(?:
|
||
(?:`+ae+":){7}(?:"+ae+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+ae+":){6}(?:"+oe+"|:"+ae+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+ae+":){5}(?::"+oe+"|(?::"+ae+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+ae+":){4}(?:(?::"+ae+"){0,1}:"+oe+"|(?::"+ae+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+ae+":){3}(?:(?::"+ae+"){0,2}:"+oe+"|(?::"+ae+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+ae+":){2}(?:(?::"+ae+"){0,3}:"+oe+"|(?::"+ae+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+ae+":){1}(?:(?::"+ae+"){0,4}:"+oe+"|(?::"+ae+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+ae+"){0,5}:"+oe+"|(?::"+ae+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),ue=new RegExp("(?:^"+oe+"$)|(?:^"+le+"$)"),pe=new RegExp("^"+oe+"$"),_e=new RegExp("^"+le+"$"),Ce=function(_n){return _n&&_n.exact?ue:new RegExp("(?:"+z(_n)+oe+z(_n)+")|(?:"+z(_n)+le+z(_n)+")","g")};Ce.v4=function(vn){return vn&&vn.exact?pe:new RegExp(""+z(vn)+oe+z(vn),"g")},Ce.v6=function(vn){return vn&&vn.exact?_e:new RegExp(""+z(vn)+le+z(vn),"g")};var $e="(?:(?:[a-z]+:)?//)",xe="(?:\\S+(?::\\S*)?@)?",Ie=Ce.v4().source,Fe=Ce.v6().source,ze="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Ue="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",qe="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",At="(?::\\d{2,5})?",Lt='(?:[/?#][^\\s"]*)?',hn="(?:"+$e+"|www\\.)"+xe+"(?:localhost|"+Ie+"|"+Fe+"|"+ze+Ue+qe+")"+At+Lt;return urlReg=new RegExp("(?:^"+hn+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$1={integer:function(z){return types$1.number(z)&&parseInt(z,10)===z},float:function(z){return types$1.number(z)&&!types$1.integer(z)},array:function(z){return Array.isArray(z)},regexp:function(z){if(z instanceof RegExp)return!0;try{return!!new RegExp(z)}catch{return!1}},date:function(z){return typeof z.getTime=="function"&&typeof z.getMonth=="function"&&typeof z.getYear=="function"&&!isNaN(z.getTime())},number:function(z){return isNaN(z)?!1:typeof z=="number"},object:function(z){return typeof z=="object"&&!types$1.array(z)},method:function(z){return typeof z=="function"},email:function(z){return typeof z=="string"&&z.length<=320&&!!z.match(pattern$2.email)},url:function(z){return typeof z=="string"&&z.length<=2048&&!!z.match(getUrlRegex())},hex:function(z){return typeof z=="string"&&!!z.match(pattern$2.hex)}},type$1=function(z,oe,ae,le,ue){if(z.required&&oe===void 0){required$1(z,oe,ae,le,ue);return}var pe=["integer","float","array","regexp","object","method","email","number","date","url","hex"],_e=z.type;pe.indexOf(_e)>-1?types$1[_e](oe)||le.push(format$2(ue.messages.types[_e],z.fullField,z.type)):_e&&typeof oe!==z.type&&le.push(format$2(ue.messages.types[_e],z.fullField,z.type))},range=function(z,oe,ae,le,ue){var pe=typeof z.len=="number",_e=typeof z.min=="number",Ce=typeof z.max=="number",$e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xe=oe,Ie=null,Fe=typeof oe=="number",ze=typeof oe=="string",Ue=Array.isArray(oe);if(Fe?Ie="number":ze?Ie="string":Ue&&(Ie="array"),!Ie)return!1;Ue&&(xe=oe.length),ze&&(xe=oe.replace($e,"_").length),pe?xe!==z.len&&le.push(format$2(ue.messages[Ie].len,z.fullField,z.len)):_e&&!Ce&&xe<z.min?le.push(format$2(ue.messages[Ie].min,z.fullField,z.min)):Ce&&!_e&&xe>z.max?le.push(format$2(ue.messages[Ie].max,z.fullField,z.max)):_e&&Ce&&(xe<z.min||xe>z.max)&&le.push(format$2(ue.messages[Ie].range,z.fullField,z.min,z.max))},ENUM$1="enum",enumerable$1=function(z,oe,ae,le,ue){z[ENUM$1]=Array.isArray(z[ENUM$1])?z[ENUM$1]:[],z[ENUM$1].indexOf(oe)===-1&&le.push(format$2(ue.messages[ENUM$1],z.fullField,z[ENUM$1].join(", ")))},pattern$1=function(z,oe,ae,le,ue){if(z.pattern){if(z.pattern instanceof RegExp)z.pattern.lastIndex=0,z.pattern.test(oe)||le.push(format$2(ue.messages.pattern.mismatch,z.fullField,oe,z.pattern));else if(typeof z.pattern=="string"){var pe=new RegExp(z.pattern);pe.test(oe)||le.push(format$2(ue.messages.pattern.mismatch,z.fullField,oe,z.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe,"string")&&!z.required)return ae();rules.required(z,oe,le,pe,ue,"string"),isEmptyValue(oe,"string")||(rules.type(z,oe,le,pe,ue),rules.range(z,oe,le,pe,ue),rules.pattern(z,oe,le,pe,ue),z.whitespace===!0&&rules.whitespace(z,oe,le,pe,ue))}ae(pe)},method=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),oe!==void 0&&rules.type(z,oe,le,pe,ue)}ae(pe)},number$3=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(oe===""&&(oe=void 0),isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),oe!==void 0&&(rules.type(z,oe,le,pe,ue),rules.range(z,oe,le,pe,ue))}ae(pe)},_boolean=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),oe!==void 0&&rules.type(z,oe,le,pe,ue)}ae(pe)},regexp$1=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),isEmptyValue(oe)||rules.type(z,oe,le,pe,ue)}ae(pe)},integer=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),oe!==void 0&&(rules.type(z,oe,le,pe,ue),rules.range(z,oe,le,pe,ue))}ae(pe)},floatFn=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),oe!==void 0&&(rules.type(z,oe,le,pe,ue),rules.range(z,oe,le,pe,ue))}ae(pe)},array=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(oe==null&&!z.required)return ae();rules.required(z,oe,le,pe,ue,"array"),oe!=null&&(rules.type(z,oe,le,pe,ue),rules.range(z,oe,le,pe,ue))}ae(pe)},object$1=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),oe!==void 0&&rules.type(z,oe,le,pe,ue)}ae(pe)},ENUM="enum",enumerable=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue),oe!==void 0&&rules[ENUM](z,oe,le,pe,ue)}ae(pe)},pattern=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe,"string")&&!z.required)return ae();rules.required(z,oe,le,pe,ue),isEmptyValue(oe,"string")||rules.pattern(z,oe,le,pe,ue)}ae(pe)},date$1=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe,"date")&&!z.required)return ae();if(rules.required(z,oe,le,pe,ue),!isEmptyValue(oe,"date")){var Ce;oe instanceof Date?Ce=oe:Ce=new Date(oe),rules.type(z,Ce,le,pe,ue),Ce&&rules.range(z,Ce.getTime(),le,pe,ue)}}ae(pe)},required=function(z,oe,ae,le,ue){var pe=[],_e=Array.isArray(oe)?"array":typeof oe;rules.required(z,oe,le,pe,ue,_e),ae(pe)},type=function(z,oe,ae,le,ue){var pe=z.type,_e=[],Ce=z.required||!z.required&&le.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(oe,pe)&&!z.required)return ae();rules.required(z,oe,le,_e,ue,pe),isEmptyValue(oe,pe)||rules.type(z,oe,le,_e,ue)}ae(_e)},any=function(z,oe,ae,le,ue){var pe=[],_e=z.required||!z.required&&le.hasOwnProperty(z.field);if(_e){if(isEmptyValue(oe)&&!z.required)return ae();rules.required(z,oe,le,pe,ue)}ae(pe)},validators$2={string,method,number:number$3,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object:object$1,enum:enumerable,pattern,date:date$1,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var z=JSON.parse(JSON.stringify(this));return z.clone=this.clone,z}}}var messages=newMessages(),Schema=function(){function $(oe){this.rules=null,this._messages=messages,this.define(oe)}var z=$.prototype;return z.define=function(ae){var le=this;if(!ae)throw new Error("Cannot configure a schema with no rules");if(typeof ae!="object"||Array.isArray(ae))throw new Error("Rules must be an object");this.rules={},Object.keys(ae).forEach(function(ue){var pe=ae[ue];le.rules[ue]=Array.isArray(pe)?pe:[pe]})},z.messages=function(ae){return ae&&(this._messages=deepMerge(newMessages(),ae)),this._messages},z.validate=function(ae,le,ue){var pe=this;le===void 0&&(le={}),ue===void 0&&(ue=function(){});var _e=ae,Ce=le,$e=ue;if(typeof Ce=="function"&&($e=Ce,Ce={}),!this.rules||Object.keys(this.rules).length===0)return $e&&$e(null,_e),Promise.resolve(_e);function xe(qe){var At=[],Lt={};function hn(_n){if(Array.isArray(_n)){var bn;At=(bn=At).concat.apply(bn,_n)}else At.push(_n)}for(var vn=0;vn<qe.length;vn++)hn(qe[vn]);At.length?(Lt=convertFieldsError(At),$e(At,Lt)):$e(null,_e)}if(Ce.messages){var Ie=this.messages();Ie===messages&&(Ie=newMessages()),deepMerge(Ie,Ce.messages),Ce.messages=Ie}else Ce.messages=this.messages();var Fe={},ze=Ce.keys||Object.keys(this.rules);ze.forEach(function(qe){var At=pe.rules[qe],Lt=_e[qe];At.forEach(function(hn){var vn=hn;typeof vn.transform=="function"&&(_e===ae&&(_e=_extends({},_e)),Lt=_e[qe]=vn.transform(Lt)),typeof vn=="function"?vn={validator:vn}:vn=_extends({},vn),vn.validator=pe.getValidationMethod(vn),vn.validator&&(vn.field=qe,vn.fullField=vn.fullField||qe,vn.type=pe.getType(vn),Fe[qe]=Fe[qe]||[],Fe[qe].push({rule:vn,value:Lt,source:_e,field:qe}))})});var Ue={};return asyncMap(Fe,Ce,function(qe,At){var Lt=qe.rule,hn=(Lt.type==="object"||Lt.type==="array")&&(typeof Lt.fields=="object"||typeof Lt.defaultField=="object");hn=hn&&(Lt.required||!Lt.required&&qe.value),Lt.field=qe.field;function vn(Sn,Cn){return _extends({},Cn,{fullField:Lt.fullField+"."+Sn,fullFields:Lt.fullFields?[].concat(Lt.fullFields,[Sn]):[Sn]})}function _n(Sn){Sn===void 0&&(Sn=[]);var Cn=Array.isArray(Sn)?Sn:[Sn];!Ce.suppressWarning&&Cn.length&&$.warning("async-validator:",Cn),Cn.length&&Lt.message!==void 0&&(Cn=[].concat(Lt.message));var En=Cn.map(complementError(Lt,_e));if(Ce.first&&En.length)return Ue[Lt.field]=1,At(En);if(!hn)At(En);else{if(Lt.required&&!qe.value)return Lt.message!==void 0?En=[].concat(Lt.message).map(complementError(Lt,_e)):Ce.error&&(En=[Ce.error(Lt,format$2(Ce.messages.required,Lt.field))]),At(En);var $n={};Lt.defaultField&&Object.keys(qe.value).map(function(xn){$n[xn]=Lt.defaultField}),$n=_extends({},$n,qe.rule.fields);var wn={};Object.keys($n).forEach(function(xn){var kn=$n[xn],Nn=Array.isArray(kn)?kn:[kn];wn[xn]=Nn.map(vn.bind(null,xn))});var Tn=new $(wn);Tn.messages(Ce.messages),qe.rule.options&&(qe.rule.options.messages=Ce.messages,qe.rule.options.error=Ce.error),Tn.validate(qe.value,qe.rule.options||Ce,function(xn){var kn=[];En&&En.length&&kn.push.apply(kn,En),xn&&xn.length&&kn.push.apply(kn,xn),At(kn.length?kn:null)})}}var bn;if(Lt.asyncValidator)bn=Lt.asyncValidator(Lt,qe.value,_n,qe.source,Ce);else if(Lt.validator){try{bn=Lt.validator(Lt,qe.value,_n,qe.source,Ce)}catch(Sn){console.error==null||console.error(Sn),Ce.suppressValidatorError||setTimeout(function(){throw Sn},0),_n(Sn.message)}bn===!0?_n():bn===!1?_n(typeof Lt.message=="function"?Lt.message(Lt.fullField||Lt.field):Lt.message||(Lt.fullField||Lt.field)+" fails"):bn instanceof Array?_n(bn):bn instanceof Error&&_n(bn.message)}bn&&bn.then&&bn.then(function(){return _n()},function(Sn){return _n(Sn)})},function(qe){xe(qe)},_e)},z.getType=function(ae){if(ae.type===void 0&&ae.pattern instanceof RegExp&&(ae.type="pattern"),typeof ae.validator!="function"&&ae.type&&!validators$2.hasOwnProperty(ae.type))throw new Error(format$2("Unknown rule type %s",ae.type));return ae.type||"string"},z.getValidationMethod=function(ae){if(typeof ae.validator=="function")return ae.validator;var le=Object.keys(ae),ue=le.indexOf("message");return ue!==-1&&le.splice(ue,1),le.length===1&&le[0]==="required"?validators$2.required:validators$2[this.getType(ae)]||void 0},$}();Schema.register=function(z,oe){if(typeof oe!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators$2[z]=oe};Schema.warning=warning$1;Schema.messages=messages;Schema.validators=validators$2;const formItemValidateStates=["","error","validating","success"],formItemProps=buildProps({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:definePropType([Object,Array])},error:String,validateStatus:{type:String,values:formItemValidateStates},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:componentSizes}}),COMPONENT_NAME$l="ElLabelWrap";var FormLabelWrap=defineComponent({name:COMPONENT_NAME$l,props:{isAutoWidth:Boolean,updateAll:Boolean},setup($,{slots:z}){const oe=inject(formContextKey,void 0),ae=inject(formItemContextKey);ae||throwError$1(COMPONENT_NAME$l,"usage: <el-form-item><label-wrap /></el-form-item>");const le=useNamespace("form"),ue=ref(),pe=ref(0),_e=()=>{var xe;if((xe=ue.value)!=null&&xe.firstElementChild){const Ie=window.getComputedStyle(ue.value.firstElementChild).width;return Math.ceil(Number.parseFloat(Ie))}else return 0},Ce=(xe="update")=>{nextTick(()=>{z.default&&$.isAutoWidth&&(xe==="update"?pe.value=_e():xe==="remove"&&(oe==null||oe.deregisterLabelWidth(pe.value)))})},$e=()=>Ce("update");return onMounted(()=>{$e()}),onBeforeUnmount(()=>{Ce("remove")}),onUpdated(()=>$e()),watch(pe,(xe,Ie)=>{$.updateAll&&(oe==null||oe.registerLabelWidth(xe,Ie))}),useResizeObserver(computed(()=>{var xe,Ie;return(Ie=(xe=ue.value)==null?void 0:xe.firstElementChild)!=null?Ie:null}),$e),()=>{var xe,Ie;if(!z)return null;const{isAutoWidth:Fe}=$;if(Fe){const ze=oe==null?void 0:oe.autoLabelWidth,Ue=ae==null?void 0:ae.hasLabel,qe={};if(Ue&&ze&&ze!=="auto"){const At=Math.max(0,Number.parseInt(ze,10)-pe.value),Lt=oe.labelPosition==="left"?"marginRight":"marginLeft";At&&(qe[Lt]=`${At}px`)}return createVNode("div",{ref:ue,class:[le.be("item","label-wrap")],style:qe},[(xe=z.default)==null?void 0:xe.call(z)])}else return createVNode(Fragment,{ref:ue},[(Ie=z.default)==null?void 0:Ie.call(z)])}}});const _hoisted_1$14=["role","aria-labelledby"],__default__$1y=defineComponent({name:"ElFormItem"}),_sfc_main$2g=defineComponent({...__default__$1y,props:formItemProps,setup($,{expose:z}){const oe=$,ae=useSlots(),le=inject(formContextKey,void 0),ue=inject(formItemContextKey,void 0),pe=useFormSize(void 0,{formItem:!1}),_e=useNamespace("form-item"),Ce=useId().value,$e=ref([]),xe=ref(""),Ie=refDebounced(xe,100),Fe=ref(""),ze=ref();let Ue,qe=!1;const At=computed(()=>{if((le==null?void 0:le.labelPosition)==="top")return{};const qn=addUnit(oe.labelWidth||(le==null?void 0:le.labelWidth)||"");return qn?{width:qn}:{}}),Lt=computed(()=>{if((le==null?void 0:le.labelPosition)==="top"||le!=null&&le.inline)return{};if(!oe.label&&!oe.labelWidth&&$n)return{};const qn=addUnit(oe.labelWidth||(le==null?void 0:le.labelWidth)||"");return!oe.label&&!ae.label?{marginLeft:qn}:{}}),hn=computed(()=>[_e.b(),_e.m(pe.value),_e.is("error",xe.value==="error"),_e.is("validating",xe.value==="validating"),_e.is("success",xe.value==="success"),_e.is("required",Nn.value||oe.required),_e.is("no-asterisk",le==null?void 0:le.hideRequiredAsterisk),(le==null?void 0:le.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[_e.m("feedback")]:le==null?void 0:le.statusIcon}]),vn=computed(()=>isBoolean$3(oe.inlineMessage)?oe.inlineMessage:(le==null?void 0:le.inlineMessage)||!1),_n=computed(()=>[_e.e("error"),{[_e.em("error","inline")]:vn.value}]),bn=computed(()=>oe.prop?isString$7(oe.prop)?oe.prop:oe.prop.join("."):""),Sn=computed(()=>!!(oe.label||ae.label)),Cn=computed(()=>oe.for||$e.value.length===1?$e.value[0]:void 0),En=computed(()=>!Cn.value&&Sn.value),$n=!!ue,wn=computed(()=>{const qn=le==null?void 0:le.model;if(!(!qn||!oe.prop))return getProp(qn,oe.prop).value}),Tn=computed(()=>{const{required:qn}=oe,Gn=[];oe.rules&&Gn.push(...castArray$1(oe.rules));const Wn=le==null?void 0:le.rules;if(Wn&&oe.prop){const Qn=getProp(Wn,oe.prop).value;Qn&&Gn.push(...castArray$1(Qn))}if(qn!==void 0){const Qn=Gn.map((cr,jn)=>[cr,jn]).filter(([cr])=>Object.keys(cr).includes("required"));if(Qn.length>0)for(const[cr,jn]of Qn)cr.required!==qn&&(Gn[jn]={...cr,required:qn});else Gn.push({required:qn})}return Gn}),xn=computed(()=>Tn.value.length>0),kn=qn=>Tn.value.filter(Wn=>!Wn.trigger||!qn?!0:Array.isArray(Wn.trigger)?Wn.trigger.includes(qn):Wn.trigger===qn).map(({trigger:Wn,...Qn})=>Qn),Nn=computed(()=>Tn.value.some(qn=>qn.required)),Bn=computed(()=>{var qn;return Ie.value==="error"&&oe.showMessage&&((qn=le==null?void 0:le.showMessage)!=null?qn:!0)}),Dn=computed(()=>`${oe.label||""}${(le==null?void 0:le.labelSuffix)||""}`),In=qn=>{xe.value=qn},Ln=qn=>{var Gn,Wn;const{errors:Qn,fields:cr}=qn;(!Qn||!cr)&&console.error(qn),In("error"),Fe.value=Qn?(Wn=(Gn=Qn==null?void 0:Qn[0])==null?void 0:Gn.message)!=null?Wn:`${oe.prop} is required`:"",le==null||le.emit("validate",oe.prop,!1,Fe.value)},Mn=()=>{In("success"),le==null||le.emit("validate",oe.prop,!0,"")},Vn=async qn=>{const Gn=bn.value;return new Schema({[Gn]:qn}).validate({[Gn]:wn.value},{firstFields:!0}).then(()=>(Mn(),!0)).catch(Qn=>(Ln(Qn),Promise.reject(Qn)))},Yn=async(qn,Gn)=>{if(qe||!oe.prop)return!1;const Wn=isFunction$5(Gn);if(!xn.value)return Gn==null||Gn(!1),!1;const Qn=kn(qn);return Qn.length===0?(Gn==null||Gn(!0),!0):(In("validating"),Vn(Qn).then(()=>(Gn==null||Gn(!0),!0)).catch(cr=>{const{fields:jn}=cr;return Gn==null||Gn(!1,jn),Wn?!1:Promise.reject(jn)}))},Fn=()=>{In(""),Fe.value="",qe=!1},Xn=async()=>{const qn=le==null?void 0:le.model;if(!qn||!oe.prop)return;const Gn=getProp(qn,oe.prop);qe=!0,Gn.value=clone$4(Ue),await nextTick(),Fn(),qe=!1},sr=qn=>{$e.value.includes(qn)||$e.value.push(qn)},vr=qn=>{$e.value=$e.value.filter(Gn=>Gn!==qn)};watch(()=>oe.error,qn=>{Fe.value=qn||"",In(qn?"error":"")},{immediate:!0}),watch(()=>oe.validateStatus,qn=>In(qn||""));const ar=reactive({...toRefs(oe),$el:ze,size:pe,validateState:xe,labelId:Ce,inputIds:$e,isGroup:En,hasLabel:Sn,addInputId:sr,removeInputId:vr,resetField:Xn,clearValidate:Fn,validate:Yn});return provide(formItemContextKey,ar),onMounted(()=>{oe.prop&&(le==null||le.addField(ar),Ue=clone$4(wn.value))}),onBeforeUnmount(()=>{le==null||le.removeField(ar)}),z({size:pe,validateMessage:Fe,validateState:xe,validate:Yn,clearValidate:Fn,resetField:Xn}),(qn,Gn)=>{var Wn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:ze,class:normalizeClass(unref(hn)),role:unref(En)?"group":void 0,"aria-labelledby":unref(En)?unref(Ce):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(At).width==="auto","update-all":((Wn=unref(le))==null?void 0:Wn.labelWidth)==="auto"},{default:withCtx(()=>[unref(Sn)?(openBlock(),createBlock(resolveDynamicComponent(unref(Cn)?"label":"div"),{key:0,id:unref(Ce),for:unref(Cn),class:normalizeClass(unref(_e).e("label")),style:normalizeStyle$1(unref(At))},{default:withCtx(()=>[renderSlot(qn.$slots,"label",{label:unref(Dn)},()=>[createTextVNode(toDisplayString$1(unref(Dn)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(_e).e("content")),style:normalizeStyle$1(unref(Lt))},[renderSlot(qn.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(_e).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(Bn)?renderSlot(qn.$slots,"error",{key:0,error:Fe.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(_n))},toDisplayString$1(Fe.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$14)}}});var FormItem=_export_sfc$1(_sfc_main$2g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem);let hiddenTextarea;const HIDDEN_STYLE=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
${isFirefox()?"":"overflow:hidden !important;"}
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling($){const z=window.getComputedStyle($),oe=z.getPropertyValue("box-sizing"),ae=Number.parseFloat(z.getPropertyValue("padding-bottom"))+Number.parseFloat(z.getPropertyValue("padding-top")),le=Number.parseFloat(z.getPropertyValue("border-bottom-width"))+Number.parseFloat(z.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(pe=>`${pe}:${z.getPropertyValue(pe)}`).join(";"),paddingSize:ae,borderSize:le,boxSizing:oe}}function calcTextareaHeight($,z=1,oe){var ae;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:le,borderSize:ue,boxSizing:pe,contextStyle:_e}=calculateNodeStyling($);hiddenTextarea.setAttribute("style",`${_e};${HIDDEN_STYLE}`),hiddenTextarea.value=$.value||$.placeholder||"";let Ce=hiddenTextarea.scrollHeight;const $e={};pe==="border-box"?Ce=Ce+ue:pe==="content-box"&&(Ce=Ce-le),hiddenTextarea.value="";const xe=hiddenTextarea.scrollHeight-le;if(isNumber$5(z)){let Ie=xe*z;pe==="border-box"&&(Ie=Ie+le+ue),Ce=Math.max(Ie,Ce),$e.minHeight=`${Ie}px`}if(isNumber$5(oe)){let Ie=xe*oe;pe==="border-box"&&(Ie=Ie+le+ue),Ce=Math.min(Ie,Ce)}return $e.height=`${Ce}px`,(ae=hiddenTextarea.parentNode)==null||ae.removeChild(hiddenTextarea),hiddenTextarea=void 0,$e}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})}}),inputEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($),input:$=>isString$7($),change:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,mouseleave:$=>$ instanceof MouseEvent,mouseenter:$=>$ instanceof MouseEvent,keydown:$=>$ instanceof Event,compositionstart:$=>$ instanceof CompositionEvent,compositionupdate:$=>$ instanceof CompositionEvent,compositionend:$=>$ instanceof CompositionEvent},_hoisted_1$13=["role"],_hoisted_2$I=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],_hoisted_3$n=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],__default__$1x=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main$2f=defineComponent({...__default__$1x,props:inputProps,emits:inputEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useAttrs$1(),ue=useSlots(),pe=computed(()=>{const fr={};return ae.containerRole==="combobox"&&(fr["aria-haspopup"]=le["aria-haspopup"],fr["aria-owns"]=le["aria-owns"],fr["aria-expanded"]=le["aria-expanded"]),fr}),_e=computed(()=>[ae.type==="textarea"?At.b():qe.b(),qe.m(ze.value),qe.is("disabled",Ue.value),qe.is("exceed",Yn.value),{[qe.b("group")]:ue.prepend||ue.append,[qe.bm("group","append")]:ue.append,[qe.bm("group","prepend")]:ue.prepend,[qe.m("prefix")]:ue.prefix||ae.prefixIcon,[qe.m("suffix")]:ue.suffix||ae.suffixIcon||ae.clearable||ae.showPassword,[qe.bm("suffix","password-clear")]:In.value&&Ln.value},le.class]),Ce=computed(()=>[qe.e("wrapper"),qe.is("focus",vn.value)]),$e=useAttrs({excludeKeys:computed(()=>Object.keys(pe.value))}),{form:xe,formItem:Ie}=useFormItem(),{inputId:Fe}=useFormItemInputId(ae,{formItemContext:Ie}),ze=useFormSize(),Ue=useFormDisabled(),qe=useNamespace("input"),At=useNamespace("textarea"),Lt=shallowRef(),hn=shallowRef(),vn=ref(!1),_n=ref(!1),bn=ref(!1),Sn=ref(!1),Cn=ref(),En=shallowRef(ae.inputStyle),$n=computed(()=>Lt.value||hn.value),wn=computed(()=>{var fr;return(fr=xe==null?void 0:xe.statusIcon)!=null?fr:!1}),Tn=computed(()=>(Ie==null?void 0:Ie.validateState)||""),xn=computed(()=>Tn.value&&ValidateComponentsMap[Tn.value]),kn=computed(()=>Sn.value?view_default:hide_default),Nn=computed(()=>[le.style,ae.inputStyle]),Bn=computed(()=>[ae.inputStyle,En.value,{resize:ae.resize}]),Dn=computed(()=>isNil(ae.modelValue)?"":String(ae.modelValue)),In=computed(()=>ae.clearable&&!Ue.value&&!ae.readonly&&!!Dn.value&&(vn.value||_n.value)),Ln=computed(()=>ae.showPassword&&!Ue.value&&!ae.readonly&&!!Dn.value&&(!!Dn.value||vn.value)),Mn=computed(()=>ae.showWordLimit&&!!$e.value.maxlength&&(ae.type==="text"||ae.type==="textarea")&&!Ue.value&&!ae.readonly&&!ae.showPassword),Vn=computed(()=>Dn.value.length),Yn=computed(()=>!!Mn.value&&Vn.value>Number($e.value.maxlength)),Fn=computed(()=>!!ue.suffix||!!ae.suffixIcon||In.value||ae.showPassword||Mn.value||!!Tn.value&&wn.value),[Xn,sr]=useCursor(Lt);useResizeObserver(hn,fr=>{if(qn(),!Mn.value||ae.resize!=="both")return;const kr=fr[0],{width:Dr}=kr.contentRect;Cn.value={right:`calc(100% - ${Dr+15+6}px)`}});const vr=()=>{const{type:fr,autosize:kr}=ae;if(!(!isClient$2||fr!=="textarea"||!hn.value))if(kr){const Dr=isObject$8(kr)?kr.minRows:void 0,Lr=isObject$8(kr)?kr.maxRows:void 0,Mr=calcTextareaHeight(hn.value,Dr,Lr);En.value={overflowY:"hidden",...Mr},nextTick(()=>{hn.value.offsetHeight,En.value=Mr})}else En.value={minHeight:calcTextareaHeight(hn.value).minHeight}},qn=(fr=>{let kr=!1;return()=>{var Dr;if(kr||!ae.autosize)return;((Dr=hn.value)==null?void 0:Dr.offsetParent)===null||(fr(),kr=!0)}})(vr),Gn=()=>{const fr=$n.value;!fr||fr.value===Dn.value||(fr.value=Dn.value)},Wn=async fr=>{Xn();let{value:kr}=fr.target;if(ae.formatter&&(kr=ae.parser?ae.parser(kr):kr,kr=ae.formatter(kr)),!bn.value){if(kr===Dn.value){Gn();return}oe(UPDATE_MODEL_EVENT,kr),oe("input",kr),await nextTick(),Gn(),sr()}},Qn=fr=>{oe("change",fr.target.value)},cr=fr=>{oe("compositionstart",fr),bn.value=!0},jn=fr=>{var kr;oe("compositionupdate",fr);const Dr=(kr=fr.target)==null?void 0:kr.value,Lr=Dr[Dr.length-1]||"";bn.value=!isKorean(Lr)},Zn=fr=>{oe("compositionend",fr),bn.value&&(bn.value=!1,Wn(fr))},nr=()=>{Sn.value=!Sn.value,hr()},hr=async()=>{var fr;await nextTick(),(fr=$n.value)==null||fr.focus()},gr=()=>{var fr;return(fr=$n.value)==null?void 0:fr.blur()},or=fr=>{vn.value=!0,oe("focus",fr)},wr=fr=>{var kr;vn.value=!1,oe("blur",fr),ae.validateEvent&&((kr=Ie==null?void 0:Ie.validate)==null||kr.call(Ie,"blur").catch(Dr=>void 0))},mr=fr=>{_n.value=!1,oe("mouseleave",fr)},Tr=fr=>{_n.value=!0,oe("mouseenter",fr)},dr=fr=>{oe("keydown",fr)},ir=()=>{var fr;(fr=$n.value)==null||fr.select()},ur=()=>{oe(UPDATE_MODEL_EVENT,""),oe("change",""),oe("clear"),oe("input","")};return watch(()=>ae.modelValue,()=>{var fr;nextTick(()=>vr()),ae.validateEvent&&((fr=Ie==null?void 0:Ie.validate)==null||fr.call(Ie,"change").catch(kr=>void 0))}),watch(Dn,()=>Gn()),watch(()=>ae.type,async()=>{await nextTick(),Gn(),vr()}),onMounted(()=>{!ae.formatter&&ae.parser,Gn(),nextTick(vr)}),z({input:Lt,textarea:hn,ref:$n,textareaStyle:Bn,autosize:toRef$1(ae,"autosize"),focus:hr,blur:gr,select:ir,clear:ur,resizeTextarea:vr}),(fr,kr)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(pe),{class:unref(_e),style:unref(Nn),role:fr.containerRole,onMouseenter:Tr,onMouseleave:mr}),[createCommentVNode(" input "),fr.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),fr.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(qe).be("group","prepend"))},[renderSlot(fr.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce))},[createCommentVNode(" prefix slot "),fr.$slots.prefix||fr.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(qe).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(qe).e("prefix-inner")),onClick:hr},[renderSlot(fr.$slots,"prefix"),fr.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(qe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(fr.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(Fe),ref_key:"input",ref:Lt,class:unref(qe).e("inner")},unref($e),{type:fr.showPassword?Sn.value?"text":"password":fr.type,disabled:unref(Ue),formatter:fr.formatter,parser:fr.parser,readonly:fr.readonly,autocomplete:fr.autocomplete,tabindex:fr.tabindex,"aria-label":fr.label,placeholder:fr.placeholder,style:fr.inputStyle,form:ae.form,onCompositionstart:cr,onCompositionupdate:jn,onCompositionend:Zn,onInput:Wn,onFocus:or,onBlur:wr,onChange:Qn,onKeydown:dr}),null,16,_hoisted_2$I),createCommentVNode(" suffix slot "),unref(Fn)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(qe).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(qe).e("suffix-inner")),onClick:hr},[!unref(In)||!unref(Ln)||!unref(Mn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(fr.$slots,"suffix"),fr.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(qe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(fr.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(In)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(qe).e("icon"),unref(qe).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:ur},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Ln)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(qe).e("icon"),unref(qe).e("password")]),onClick:nr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(kn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Mn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(qe).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(qe).e("count-inner"))},toDisplayString$1(unref(Vn))+" / "+toDisplayString$1(unref($e).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(Tn)&&unref(xn)&&unref(wn)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(qe).e("icon"),unref(qe).e("validateIcon"),unref(qe).is("loading",unref(Tn)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(xn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),fr.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(qe).be("group","append"))},[renderSlot(fr.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(Fe),ref_key:"textarea",ref:hn,class:unref(At).e("inner")},unref($e),{tabindex:fr.tabindex,disabled:unref(Ue),readonly:fr.readonly,autocomplete:fr.autocomplete,style:unref(Bn),"aria-label":fr.label,placeholder:fr.placeholder,form:ae.form,onCompositionstart:cr,onCompositionupdate:jn,onCompositionend:Zn,onInput:Wn,onFocus:or,onBlur:wr,onChange:Qn,onKeydown:dr}),null,16,_hoisted_3$n),unref(Mn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1(Cn.value),class:normalizeClass(unref(qe).e("count"))},toDisplayString$1(unref(Vn))+" / "+toDisplayString$1(unref($e).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$13)),[[vShow,fr.type!=="hidden"]])}});var Input=_export_sfc$1(_sfc_main$2f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ElInput=withInstall(Input),GAP=4,BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},renderThumbStyle$1=({move:$,size:z,bar:oe})=>({[oe.size]:z,transform:`translate${oe.axis}(${$}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$k="Thumb",_sfc_main$2e=defineComponent({__name:"thumb",props:thumbProps,setup($){const z=$,oe=inject(scrollbarContextKey),ae=useNamespace("scrollbar");oe||throwError$1(COMPONENT_NAME$k,"can not inject scrollbar context");const le=ref(),ue=ref(),pe=ref({}),_e=ref(!1);let Ce=!1,$e=!1,xe=isClient$2?document.onselectstart:null;const Ie=computed(()=>BAR_MAP[z.vertical?"vertical":"horizontal"]),Fe=computed(()=>renderThumbStyle$1({size:z.size,move:z.move,bar:Ie.value})),ze=computed(()=>le.value[Ie.value.offset]**2/oe.wrapElement[Ie.value.scrollSize]/z.ratio/ue.value[Ie.value.offset]),Ue=Sn=>{var Cn;if(Sn.stopPropagation(),Sn.ctrlKey||[1,2].includes(Sn.button))return;(Cn=window.getSelection())==null||Cn.removeAllRanges(),At(Sn);const En=Sn.currentTarget;En&&(pe.value[Ie.value.axis]=En[Ie.value.offset]-(Sn[Ie.value.client]-En.getBoundingClientRect()[Ie.value.direction]))},qe=Sn=>{if(!ue.value||!le.value||!oe.wrapElement)return;const Cn=Math.abs(Sn.target.getBoundingClientRect()[Ie.value.direction]-Sn[Ie.value.client]),En=ue.value[Ie.value.offset]/2,$n=(Cn-En)*100*ze.value/le.value[Ie.value.offset];oe.wrapElement[Ie.value.scroll]=$n*oe.wrapElement[Ie.value.scrollSize]/100},At=Sn=>{Sn.stopImmediatePropagation(),Ce=!0,document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",hn),xe=document.onselectstart,document.onselectstart=()=>!1},Lt=Sn=>{if(!le.value||!ue.value||Ce===!1)return;const Cn=pe.value[Ie.value.axis];if(!Cn)return;const En=(le.value.getBoundingClientRect()[Ie.value.direction]-Sn[Ie.value.client])*-1,$n=ue.value[Ie.value.offset]-Cn,wn=(En-$n)*100*ze.value/le.value[Ie.value.offset];oe.wrapElement[Ie.value.scroll]=wn*oe.wrapElement[Ie.value.scrollSize]/100},hn=()=>{Ce=!1,pe.value[Ie.value.axis]=0,document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",hn),bn(),$e&&(_e.value=!1)},vn=()=>{$e=!1,_e.value=!!z.size},_n=()=>{$e=!0,_e.value=Ce};onBeforeUnmount(()=>{bn(),document.removeEventListener("mouseup",hn)});const bn=()=>{document.onselectstart!==xe&&(document.onselectstart=xe)};return useEventListener$1(toRef$1(oe,"scrollbarElement"),"mousemove",vn),useEventListener$1(toRef$1(oe,"scrollbarElement"),"mouseleave",_n),(Sn,Cn)=>(openBlock(),createBlock(Transition,{name:unref(ae).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:le,class:normalizeClass([unref(ae).e("bar"),unref(ae).is(unref(Ie).key)]),onMousedown:qe},[createBaseVNode("div",{ref_key:"thumb",ref:ue,class:normalizeClass(unref(ae).e("thumb")),style:normalizeStyle$1(unref(Fe)),onMousedown:Ue},null,38)],34),[[vShow,Sn.always||_e.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc$1(_sfc_main$2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),_sfc_main$2d=defineComponent({__name:"bar",props:barProps,setup($,{expose:z}){const oe=$,ae=ref(0),le=ref(0);return z({handleScroll:pe=>{if(pe){const _e=pe.offsetHeight-GAP,Ce=pe.offsetWidth-GAP;le.value=pe.scrollTop*100/_e*oe.ratioY,ae.value=pe.scrollLeft*100/Ce*oe.ratioX}}}),(pe,_e)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:ae.value,ratio:pe.ratioX,size:pe.width,always:pe.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:le.value,ratio:pe.ratioY,size:pe.height,vertical:"",always:pe.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc$1(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),scrollbarEmits={scroll:({scrollTop:$,scrollLeft:z})=>[$,z].every(isNumber$5)},COMPONENT_NAME$j="ElScrollbar",__default__$1w=defineComponent({name:COMPONENT_NAME$j}),_sfc_main$2c=defineComponent({...__default__$1w,props:scrollbarProps,emits:scrollbarEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useNamespace("scrollbar");let ue,pe;const _e=ref(),Ce=ref(),$e=ref(),xe=ref("0"),Ie=ref("0"),Fe=ref(),ze=ref(1),Ue=ref(1),qe=computed(()=>{const Cn={};return ae.height&&(Cn.height=addUnit(ae.height)),ae.maxHeight&&(Cn.maxHeight=addUnit(ae.maxHeight)),[ae.wrapStyle,Cn]}),At=computed(()=>[ae.wrapClass,le.e("wrap"),{[le.em("wrap","hidden-default")]:!ae.native}]),Lt=computed(()=>[le.e("view"),ae.viewClass]),hn=()=>{var Cn;Ce.value&&((Cn=Fe.value)==null||Cn.handleScroll(Ce.value),oe("scroll",{scrollTop:Ce.value.scrollTop,scrollLeft:Ce.value.scrollLeft}))};function vn(Cn,En){isObject$8(Cn)?Ce.value.scrollTo(Cn):isNumber$5(Cn)&&isNumber$5(En)&&Ce.value.scrollTo(Cn,En)}const _n=Cn=>{isNumber$5(Cn)&&(Ce.value.scrollTop=Cn)},bn=Cn=>{isNumber$5(Cn)&&(Ce.value.scrollLeft=Cn)},Sn=()=>{if(!Ce.value)return;const Cn=Ce.value.offsetHeight-GAP,En=Ce.value.offsetWidth-GAP,$n=Cn**2/Ce.value.scrollHeight,wn=En**2/Ce.value.scrollWidth,Tn=Math.max($n,ae.minSize),xn=Math.max(wn,ae.minSize);ze.value=$n/(Cn-$n)/(Tn/(Cn-Tn)),Ue.value=wn/(En-wn)/(xn/(En-xn)),Ie.value=Tn+GAP<Cn?`${Tn}px`:"",xe.value=xn+GAP<En?`${xn}px`:""};return watch(()=>ae.noresize,Cn=>{Cn?(ue==null||ue(),pe==null||pe()):({stop:ue}=useResizeObserver($e,Sn),pe=useEventListener$1("resize",Sn))},{immediate:!0}),watch(()=>[ae.maxHeight,ae.height],()=>{ae.native||nextTick(()=>{var Cn;Sn(),Ce.value&&((Cn=Fe.value)==null||Cn.handleScroll(Ce.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:_e,wrapElement:Ce})),onMounted(()=>{ae.native||nextTick(()=>{Sn()})}),onUpdated(()=>Sn()),z({wrapRef:Ce,update:Sn,scrollTo:vn,setScrollTop:_n,setScrollLeft:bn,handleScroll:hn}),(Cn,En)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:_e,class:normalizeClass(unref(le).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:Ce,class:normalizeClass(unref(At)),style:normalizeStyle$1(unref(qe)),onScroll:hn},[(openBlock(),createBlock(resolveDynamicComponent(Cn.tag),{ref_key:"resizeRef",ref:$e,class:normalizeClass(unref(Lt)),style:normalizeStyle$1(Cn.viewStyle)},{default:withCtx(()=>[renderSlot(Cn.$slots,"default")]),_:3},8,["class","style"]))],38),Cn.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:Fe,height:Ie.value,width:xe.value,always:Cn.always,"ratio-x":Ue.value,"ratio-y":ze.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Scrollbar=_export_sfc$1(_sfc_main$2c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ElScrollbar=withInstall(Scrollbar),POPPER_INJECTION_KEY=Symbol("popper"),POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent"),roleTypes=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],popperProps=buildProps({role:{type:String,values:roleTypes,default:"tooltip"}}),__default__$1v=defineComponent({name:"ElPopper",inheritAttrs:!1}),_sfc_main$2b=defineComponent({...__default__$1v,props:popperProps,setup($,{expose:z}){const oe=$,ae=ref(),le=ref(),ue=ref(),pe=ref(),_e=computed(()=>oe.role),Ce={triggerRef:ae,popperInstanceRef:le,contentRef:ue,referenceRef:pe,role:_e};return z(Ce),provide(POPPER_INJECTION_KEY,Ce),($e,xe)=>renderSlot($e.$slots,"default")}});var Popper=_export_sfc$1(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const popperArrowProps=buildProps({arrowOffset:{type:Number,default:5}}),__default__$1u=defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),_sfc_main$2a=defineComponent({...__default__$1u,props:popperArrowProps,setup($,{expose:z}){const oe=$,ae=useNamespace("popper"),{arrowOffset:le,arrowRef:ue,arrowStyle:pe}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>oe.arrowOffset,_e=>{le.value=_e}),onBeforeUnmount(()=>{ue.value=void 0}),z({arrowRef:ue}),(_e,Ce)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:ue,class:normalizeClass(unref(ae).e("arrow")),style:normalizeStyle$1(unref(pe)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc$1(_sfc_main$2a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup($,{slots:z,attrs:oe}){var ae;const le=inject(FORWARD_REF_INJECTION_KEY),ue=useForwardRefDirective((ae=le==null?void 0:le.setForwardRef)!=null?ae:NOOP);return()=>{var pe;const _e=(pe=z.default)==null?void 0:pe.call(z,oe);if(!_e||_e.length>1)return null;const Ce=findFirstLegitChild(_e);return Ce?withDirectives(cloneVNode(Ce,oe),[[ue]]):null}}});function findFirstLegitChild($){if(!$)return null;const z=$;for(const oe of z){if(isObject$8(oe))switch(oe.type){case Comment:continue;case Text$1:case"svg":return wrapTextContent(oe);case Fragment:return findFirstLegitChild(oe.children);default:return oe}return wrapTextContent(oe)}return null}function wrapTextContent($){const z=useNamespace("only-child");return createVNode("span",{class:z.e("content")},[$])}const popperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:definePropType(Function)},onMouseleave:{type:definePropType(Function)},onClick:{type:definePropType(Function)},onKeydown:{type:definePropType(Function)},onFocus:{type:definePropType(Function)},onBlur:{type:definePropType(Function)},onContextmenu:{type:definePropType(Function)},id:String,open:Boolean}),__default__$1t=defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),_sfc_main$29=defineComponent({...__default__$1t,props:popperTriggerProps,setup($,{expose:z}){const oe=$,{role:ae,triggerRef:le}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(le);const ue=computed(()=>_e.value?oe.id:void 0),pe=computed(()=>{if(ae&&ae.value==="tooltip")return oe.open&&oe.id?oe.id:void 0}),_e=computed(()=>{if(ae&&ae.value!=="tooltip")return ae.value}),Ce=computed(()=>_e.value?`${oe.open}`:void 0);let $e;return onMounted(()=>{watch(()=>oe.virtualRef,xe=>{xe&&(le.value=unrefElement$1(xe))},{immediate:!0}),watch(le,(xe,Ie)=>{$e==null||$e(),$e=void 0,isElement$2(xe)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(Fe=>{var ze;const Ue=oe[Fe];Ue&&(xe.addEventListener(Fe.slice(2).toLowerCase(),Ue),(ze=Ie==null?void 0:Ie.removeEventListener)==null||ze.call(Ie,Fe.slice(2).toLowerCase(),Ue))}),$e=watch([ue,pe,_e,Ce],Fe=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((ze,Ue)=>{isNil(Fe[Ue])?xe.removeAttribute(ze):xe.setAttribute(ze,Fe[Ue])})},{immediate:!0})),isElement$2(Ie)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(Fe=>Ie.removeAttribute(Fe))},{immediate:!0})}),onBeforeUnmount(()=>{$e==null||$e(),$e=void 0}),z({triggerRef:le}),(xe,Ie)=>xe.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},xe.$attrs,{"aria-controls":unref(ue),"aria-describedby":unref(pe),"aria-expanded":unref(Ce),"aria-haspopup":unref(_e)}),{default:withCtx(()=>[renderSlot(xe.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc$1(_sfc_main$29,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const FOCUS_AFTER_TRAPPED="focus-trap.focus-after-trapped",FOCUS_AFTER_RELEASED="focus-trap.focus-after-released",FOCUSOUT_PREVENTED="focus-trap.focusout-prevented",FOCUS_AFTER_TRAPPED_OPTS={cancelable:!0,bubbles:!1},FOCUSOUT_PREVENTED_OPTS={cancelable:!0,bubbles:!1},ON_TRAP_FOCUS_EVT="focusAfterTrapped",ON_RELEASE_FOCUS_EVT="focusAfterReleased",FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap"),focusReason=ref(),lastUserFocusTimestamp=ref(0),lastAutomatedFocusTimestamp=ref(0);let focusReasonUserCount=0;const obtainAllFocusableElements=$=>{const z=[],oe=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:ae=>{const le=ae.tagName==="INPUT"&&ae.type==="hidden";return ae.disabled||ae.hidden||le?NodeFilter.FILTER_SKIP:ae.tabIndex>=0||ae===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;oe.nextNode();)z.push(oe.currentNode);return z},getVisibleElement=($,z)=>{for(const oe of $)if(!isHidden(oe,z))return oe},isHidden=($,z)=>{if(getComputedStyle($).visibility==="hidden")return!0;for(;$;){if(z&&$===z)return!1;if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1},getEdges=$=>{const z=obtainAllFocusableElements($),oe=getVisibleElement(z,$),ae=getVisibleElement(z.reverse(),$);return[oe,ae]},isSelectable=$=>$ instanceof HTMLInputElement&&"select"in $,tryFocus=($,z)=>{if($&&$.focus){const oe=document.activeElement;$.focus({preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),$!==oe&&isSelectable($)&&z&&$.select()}};function removeFromStack($,z){const oe=[...$],ae=$.indexOf(z);return ae!==-1&&oe.splice(ae,1),oe}const createFocusableStack=()=>{let $=[];return{push:ae=>{const le=$[0];le&&ae!==le&&le.pause(),$=removeFromStack($,ae),$.unshift(ae)},remove:ae=>{var le,ue;$=removeFromStack($,ae),(ue=(le=$[0])==null?void 0:le.resume)==null||ue.call(le)}}},focusFirstDescendant=($,z=!1)=>{const oe=document.activeElement;for(const ae of $)if(tryFocus(ae,z),document.activeElement!==oe)return},focusableStack=createFocusableStack(),isFocusCausedByUserEvent=()=>lastUserFocusTimestamp.value>lastAutomatedFocusTimestamp.value,notifyFocusReasonPointer=()=>{focusReason.value="pointer",lastUserFocusTimestamp.value=window.performance.now()},notifyFocusReasonKeydown=()=>{focusReason.value="keyboard",lastUserFocusTimestamp.value=window.performance.now()},useFocusReason=()=>(onMounted(()=>{focusReasonUserCount===0&&(document.addEventListener("mousedown",notifyFocusReasonPointer),document.addEventListener("touchstart",notifyFocusReasonPointer),document.addEventListener("keydown",notifyFocusReasonKeydown)),focusReasonUserCount++}),onBeforeUnmount(()=>{focusReasonUserCount--,focusReasonUserCount<=0&&(document.removeEventListener("mousedown",notifyFocusReasonPointer),document.removeEventListener("touchstart",notifyFocusReasonPointer),document.removeEventListener("keydown",notifyFocusReasonKeydown))}),{focusReason,lastUserFocusTimestamp,lastAutomatedFocusTimestamp}),createFocusOutPreventedEvent=$=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:$}),_sfc_main$28=defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ON_TRAP_FOCUS_EVT,ON_RELEASE_FOCUS_EVT,"focusin","focusout","focusout-prevented","release-requested"],setup($,{emit:z}){const oe=ref();let ae,le;const{focusReason:ue}=useFocusReason();useEscapeKeydown(Ue=>{$.trapped&&!pe.paused&&z("release-requested",Ue)});const pe={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},_e=Ue=>{if(!$.loop&&!$.trapped||pe.paused)return;const{key:qe,altKey:At,ctrlKey:Lt,metaKey:hn,currentTarget:vn,shiftKey:_n}=Ue,{loop:bn}=$,Sn=qe===EVENT_CODE.tab&&!At&&!Lt&&!hn,Cn=document.activeElement;if(Sn&&Cn){const En=vn,[$n,wn]=getEdges(En);if($n&&wn){if(!_n&&Cn===wn){const xn=createFocusOutPreventedEvent({focusReason:ue.value});z("focusout-prevented",xn),xn.defaultPrevented||(Ue.preventDefault(),bn&&tryFocus($n,!0))}else if(_n&&[$n,En].includes(Cn)){const xn=createFocusOutPreventedEvent({focusReason:ue.value});z("focusout-prevented",xn),xn.defaultPrevented||(Ue.preventDefault(),bn&&tryFocus(wn,!0))}}else if(Cn===En){const xn=createFocusOutPreventedEvent({focusReason:ue.value});z("focusout-prevented",xn),xn.defaultPrevented||Ue.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:oe,onKeydown:_e}),watch(()=>$.focusTrapEl,Ue=>{Ue&&(oe.value=Ue)},{immediate:!0}),watch([oe],([Ue],[qe])=>{Ue&&(Ue.addEventListener("keydown",_e),Ue.addEventListener("focusin",xe),Ue.addEventListener("focusout",Ie)),qe&&(qe.removeEventListener("keydown",_e),qe.removeEventListener("focusin",xe),qe.removeEventListener("focusout",Ie))});const Ce=Ue=>{z(ON_TRAP_FOCUS_EVT,Ue)},$e=Ue=>z(ON_RELEASE_FOCUS_EVT,Ue),xe=Ue=>{const qe=unref(oe);if(!qe)return;const At=Ue.target,Lt=Ue.relatedTarget,hn=At&&qe.contains(At);$.trapped||Lt&&qe.contains(Lt)||(ae=Lt),hn&&z("focusin",Ue),!pe.paused&&$.trapped&&(hn?le=At:tryFocus(le,!0))},Ie=Ue=>{const qe=unref(oe);if(!(pe.paused||!qe))if($.trapped){const At=Ue.relatedTarget;!isNil(At)&&!qe.contains(At)&&setTimeout(()=>{if(!pe.paused&&$.trapped){const Lt=createFocusOutPreventedEvent({focusReason:ue.value});z("focusout-prevented",Lt),Lt.defaultPrevented||tryFocus(le,!0)}},0)}else{const At=Ue.target;At&&qe.contains(At)||z("focusout",Ue)}};async function Fe(){await nextTick();const Ue=unref(oe);if(Ue){focusableStack.push(pe);const qe=Ue.contains(document.activeElement)?ae:document.activeElement;if(ae=qe,!Ue.contains(qe)){const Lt=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);Ue.addEventListener(FOCUS_AFTER_TRAPPED,Ce),Ue.dispatchEvent(Lt),Lt.defaultPrevented||nextTick(()=>{let hn=$.focusStartEl;isString$7(hn)||(tryFocus(hn),document.activeElement!==hn&&(hn="first")),hn==="first"&&focusFirstDescendant(obtainAllFocusableElements(Ue),!0),(document.activeElement===qe||hn==="container")&&tryFocus(Ue)})}}}function ze(){const Ue=unref(oe);if(Ue){Ue.removeEventListener(FOCUS_AFTER_TRAPPED,Ce);const qe=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:ue.value}});Ue.addEventListener(FOCUS_AFTER_RELEASED,$e),Ue.dispatchEvent(qe),!qe.defaultPrevented&&(ue.value=="keyboard"||!isFocusCausedByUserEvent()||Ue.contains(document.activeElement))&&tryFocus(ae??document.body),Ue.removeEventListener(FOCUS_AFTER_RELEASED,Ce),focusableStack.remove(pe)}}return onMounted(()=>{$.trapped&&Fe(),watch(()=>$.trapped,Ue=>{Ue?Fe():ze()})}),onBeforeUnmount(()=>{$.trapped&&ze()}),{onKeydown:_e}}});function _sfc_render$w($,z,oe,ae,le,ue){return renderSlot($.$slots,"default",{handleKeydown:$.onKeydown})}var ElFocusTrap=_export_sfc$1(_sfc_main$28,[["render",_sfc_render$w],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const POSITIONING_STRATEGIES=["fixed","absolute"],popperCoreConfigProps=buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),popperContentProps=buildProps({...popperCoreConfigProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},triggerTargetEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),popperContentEmits={mouseenter:$=>$ instanceof MouseEvent,mouseleave:$=>$ instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},buildPopperOptions=($,z=[])=>{const{placement:oe,strategy:ae,popperOptions:le}=$,ue={placement:oe,strategy:ae,...le,modifiers:[...genModifiers($),...z]};return deriveExtraModifiers(ue,le==null?void 0:le.modifiers),ue},unwrapMeasurableEl=$=>{if(isClient$2)return unrefElement$1($)};function genModifiers($){const{offset:z,gpuAcceleration:oe,fallbackPlacements:ae}=$;return[{name:"offset",options:{offset:[0,z??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:ae}},{name:"computeStyles",options:{gpuAcceleration:oe}}]}function deriveExtraModifiers($,z){z&&($.modifiers=[...$.modifiers,...z??[]])}const DEFAULT_ARROW_OFFSET=0,usePopperContent=$=>{const{popperInstanceRef:z,contentRef:oe,triggerRef:ae,role:le}=inject(POPPER_INJECTION_KEY,void 0),ue=ref(),pe=ref(),_e=computed(()=>({name:"eventListeners",enabled:!!$.visible})),Ce=computed(()=>{var Lt;const hn=unref(ue),vn=(Lt=unref(pe))!=null?Lt:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(hn),options:{element:hn,padding:vn}}}),$e=computed(()=>({onFirstUpdate:()=>{Ue()},...buildPopperOptions($,[unref(Ce),unref(_e)])})),xe=computed(()=>unwrapMeasurableEl($.referenceEl)||unref(ae)),{attributes:Ie,state:Fe,styles:ze,update:Ue,forceUpdate:qe,instanceRef:At}=usePopper(xe,oe,$e);return watch(At,Lt=>z.value=Lt),onMounted(()=>{watch(()=>{var Lt;return(Lt=unref(xe))==null?void 0:Lt.getBoundingClientRect()},()=>{Ue()})}),{attributes:Ie,arrowRef:ue,contentRef:oe,instanceRef:At,state:Fe,styles:ze,role:le,forceUpdate:qe,update:Ue}},usePopperContentDOM=($,{attributes:z,styles:oe,role:ae})=>{const{nextZIndex:le}=useZIndex(),ue=useNamespace("popper"),pe=computed(()=>unref(z).popper),_e=ref($.zIndex||le()),Ce=computed(()=>[ue.b(),ue.is("pure",$.pure),ue.is($.effect),$.popperClass]),$e=computed(()=>[{zIndex:unref(_e)},$.popperStyle||{},unref(oe).popper]),xe=computed(()=>ae.value==="dialog"?"false":void 0),Ie=computed(()=>unref(oe).arrow||{});return{ariaModal:xe,arrowStyle:Ie,contentAttrs:pe,contentClass:Ce,contentStyle:$e,contentZIndex:_e,updateZIndex:()=>{_e.value=$.zIndex||le()}}},usePopperContentFocusTrap=($,z)=>{const oe=ref(!1),ae=ref();return{focusStartRef:ae,trapped:oe,onFocusAfterReleased:$e=>{var xe;((xe=$e.detail)==null?void 0:xe.focusReason)!=="pointer"&&(ae.value="first",z("blur"))},onFocusAfterTrapped:()=>{z("focus")},onFocusInTrap:$e=>{$.visible&&!oe.value&&($e.target&&(ae.value=$e.target),oe.value=!0)},onFocusoutPrevented:$e=>{$.trapping||($e.detail.focusReason==="pointer"&&$e.preventDefault(),oe.value=!1)},onReleaseRequested:()=>{oe.value=!1,z("close")}}},__default__$1s=defineComponent({name:"ElPopperContent"}),_sfc_main$27=defineComponent({...__default__$1s,props:popperContentProps,emits:popperContentEmits,setup($,{expose:z,emit:oe}){const ae=$,{focusStartRef:le,trapped:ue,onFocusAfterReleased:pe,onFocusAfterTrapped:_e,onFocusInTrap:Ce,onFocusoutPrevented:$e,onReleaseRequested:xe}=usePopperContentFocusTrap(ae,oe),{attributes:Ie,arrowRef:Fe,contentRef:ze,styles:Ue,instanceRef:qe,role:At,update:Lt}=usePopperContent(ae),{ariaModal:hn,arrowStyle:vn,contentAttrs:_n,contentClass:bn,contentStyle:Sn,updateZIndex:Cn}=usePopperContentDOM(ae,{styles:Ue,attributes:Ie,role:At}),En=inject(formItemContextKey,void 0),$n=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:vn,arrowRef:Fe,arrowOffset:$n}),En&&(En.addInputId||En.removeInputId)&&provide(formItemContextKey,{...En,addInputId:NOOP,removeInputId:NOOP});let wn;const Tn=(kn=!0)=>{Lt(),kn&&Cn()},xn=()=>{Tn(!1),ae.visible&&ae.focusOnShow?ue.value=!0:ae.visible===!1&&(ue.value=!1)};return onMounted(()=>{watch(()=>ae.triggerTargetEl,(kn,Nn)=>{wn==null||wn(),wn=void 0;const Bn=unref(kn||ze.value),Dn=unref(Nn||ze.value);isElement$2(Bn)&&(wn=watch([At,()=>ae.ariaLabel,hn,()=>ae.id],In=>{["role","aria-label","aria-modal","id"].forEach((Ln,Mn)=>{isNil(In[Mn])?Bn.removeAttribute(Ln):Bn.setAttribute(Ln,In[Mn])})},{immediate:!0})),Dn!==Bn&&isElement$2(Dn)&&["role","aria-label","aria-modal","id"].forEach(In=>{Dn.removeAttribute(In)})},{immediate:!0}),watch(()=>ae.visible,xn,{immediate:!0})}),onBeforeUnmount(()=>{wn==null||wn(),wn=void 0}),z({popperContentRef:ze,popperInstanceRef:qe,updatePopper:Tn,contentStyle:Sn}),(kn,Nn)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:ze},unref(_n),{style:unref(Sn),class:unref(bn),tabindex:"-1",onMouseenter:Nn[0]||(Nn[0]=Bn=>kn.$emit("mouseenter",Bn)),onMouseleave:Nn[1]||(Nn[1]=Bn=>kn.$emit("mouseleave",Bn))}),[createVNode(unref(ElFocusTrap),{trapped:unref(ue),"trap-on-focus-in":!0,"focus-trap-el":unref(ze),"focus-start-el":unref(le),onFocusAfterTrapped:unref(_e),onFocusAfterReleased:unref(pe),onFocusin:unref(Ce),onFocusoutPrevented:unref($e),onReleaseRequested:unref(xe)},{default:withCtx(()=>[renderSlot(kn.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ElPopperContent=_export_sfc$1(_sfc_main$27,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ElPopper=withInstall(Popper),TOOLTIP_INJECTION_KEY=Symbol("elTooltip"),useTooltipContentProps=buildProps({...useDelayedToggleProps,...popperContentProps,appendTo:{type:definePropType([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),useTooltipTriggerProps=buildProps({...popperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.space]}}),{useModelToggleProps:useTooltipModelToggleProps,useModelToggleEmits:useTooltipModelToggleEmits,useModelToggle:useTooltipModelToggle}=createModelToggleComposable("visible"),useTooltipProps=buildProps({...popperProps,...useTooltipModelToggleProps,...useTooltipContentProps,...useTooltipTriggerProps,...popperArrowProps,showArrow:{type:Boolean,default:!0}}),tooltipEmits=[...useTooltipModelToggleEmits,"before-show","before-hide","show","hide","open","close"],isTriggerType=($,z)=>isArray$c($)?$.includes(z):$===z,whenTrigger=($,z,oe)=>ae=>{isTriggerType(unref($),z)&&oe(ae)},__default__$1r=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$26=defineComponent({...__default__$1r,props:useTooltipTriggerProps,setup($,{expose:z}){const oe=$,ae=useNamespace("tooltip"),{controlled:le,id:ue,open:pe,onOpen:_e,onClose:Ce,onToggle:$e}=inject(TOOLTIP_INJECTION_KEY,void 0),xe=ref(null),Ie=()=>{if(unref(le)||oe.disabled)return!0},Fe=toRef$1(oe,"trigger"),ze=composeEventHandlers(Ie,whenTrigger(Fe,"hover",_e)),Ue=composeEventHandlers(Ie,whenTrigger(Fe,"hover",Ce)),qe=composeEventHandlers(Ie,whenTrigger(Fe,"click",_n=>{_n.button===0&&$e(_n)})),At=composeEventHandlers(Ie,whenTrigger(Fe,"focus",_e)),Lt=composeEventHandlers(Ie,whenTrigger(Fe,"focus",Ce)),hn=composeEventHandlers(Ie,whenTrigger(Fe,"contextmenu",_n=>{_n.preventDefault(),$e(_n)})),vn=composeEventHandlers(Ie,_n=>{const{code:bn}=_n;oe.triggerKeys.includes(bn)&&(_n.preventDefault(),$e(_n))});return z({triggerRef:xe}),(_n,bn)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(ue),"virtual-ref":_n.virtualRef,open:unref(pe),"virtual-triggering":_n.virtualTriggering,class:normalizeClass(unref(ae).e("trigger")),onBlur:unref(Lt),onClick:unref(qe),onContextmenu:unref(hn),onFocus:unref(At),onMouseenter:unref(ze),onMouseleave:unref(Ue),onKeydown:unref(vn)},{default:withCtx(()=>[renderSlot(_n.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ElTooltipTrigger=_export_sfc$1(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const __default__$1q=defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),_sfc_main$25=defineComponent({...__default__$1q,props:useTooltipContentProps,setup($,{expose:z}){const oe=$,{selector:ae}=usePopperContainerId(),le=useNamespace("tooltip"),ue=ref(null),pe=ref(!1),{controlled:_e,id:Ce,open:$e,trigger:xe,onClose:Ie,onOpen:Fe,onShow:ze,onHide:Ue,onBeforeShow:qe,onBeforeHide:At}=inject(TOOLTIP_INJECTION_KEY,void 0),Lt=computed(()=>oe.transition||`${le.namespace.value}-fade-in-linear`),hn=computed(()=>oe.persistent);onBeforeUnmount(()=>{pe.value=!0});const vn=computed(()=>unref(hn)?!0:unref($e)),_n=computed(()=>oe.disabled?!1:unref($e)),bn=computed(()=>oe.appendTo||ae.value),Sn=computed(()=>{var In;return(In=oe.style)!=null?In:{}}),Cn=computed(()=>!unref($e)),En=()=>{Ue()},$n=()=>{if(unref(_e))return!0},wn=composeEventHandlers($n,()=>{oe.enterable&&unref(xe)==="hover"&&Fe()}),Tn=composeEventHandlers($n,()=>{unref(xe)==="hover"&&Ie()}),xn=()=>{var In,Ln;(Ln=(In=ue.value)==null?void 0:In.updatePopper)==null||Ln.call(In),qe==null||qe()},kn=()=>{At==null||At()},Nn=()=>{ze(),Dn=onClickOutside(computed(()=>{var In;return(In=ue.value)==null?void 0:In.popperContentRef}),()=>{if(unref(_e))return;unref(xe)!=="hover"&&Ie()})},Bn=()=>{oe.virtualTriggering||Ie()};let Dn;return watch(()=>unref($e),In=>{In||Dn==null||Dn()},{flush:"post"}),watch(()=>oe.content,()=>{var In,Ln;(Ln=(In=ue.value)==null?void 0:In.updatePopper)==null||Ln.call(In)}),z({contentRef:ue}),(In,Ln)=>(openBlock(),createBlock(Teleport,{disabled:!In.teleported,to:unref(bn)},[createVNode(Transition,{name:unref(Lt),onAfterLeave:En,onBeforeEnter:xn,onAfterEnter:Nn,onBeforeLeave:kn},{default:withCtx(()=>[unref(vn)?withDirectives((openBlock(),createBlock(unref(ElPopperContent),mergeProps({key:0,id:unref(Ce),ref_key:"contentRef",ref:ue},In.$attrs,{"aria-label":In.ariaLabel,"aria-hidden":unref(Cn),"boundaries-padding":In.boundariesPadding,"fallback-placements":In.fallbackPlacements,"gpu-acceleration":In.gpuAcceleration,offset:In.offset,placement:In.placement,"popper-options":In.popperOptions,strategy:In.strategy,effect:In.effect,enterable:In.enterable,pure:In.pure,"popper-class":In.popperClass,"popper-style":[In.popperStyle,unref(Sn)],"reference-el":In.referenceEl,"trigger-target-el":In.triggerTargetEl,visible:unref(_n),"z-index":In.zIndex,onMouseenter:unref(wn),onMouseleave:unref(Tn),onBlur:Bn,onClose:unref(Ie)}),{default:withCtx(()=>[pe.value?createCommentVNode("v-if",!0):renderSlot(In.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[vShow,unref(_n)]]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ElTooltipContent=_export_sfc$1(_sfc_main$25,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const _hoisted_1$12=["innerHTML"],_hoisted_2$H={key:1},__default__$1p=defineComponent({name:"ElTooltip"}),_sfc_main$24=defineComponent({...__default__$1p,props:useTooltipProps,emits:tooltipEmits,setup($,{expose:z,emit:oe}){const ae=$;usePopperContainer();const le=useId(),ue=ref(),pe=ref(),_e=()=>{var Lt;const hn=unref(ue);hn&&((Lt=hn.popperInstanceRef)==null||Lt.update())},Ce=ref(!1),$e=ref(),{show:xe,hide:Ie,hasUpdateHandler:Fe}=useTooltipModelToggle({indicator:Ce,toggleReason:$e}),{onOpen:ze,onClose:Ue}=useDelayedToggle({showAfter:toRef$1(ae,"showAfter"),hideAfter:toRef$1(ae,"hideAfter"),autoClose:toRef$1(ae,"autoClose"),open:xe,close:Ie}),qe=computed(()=>isBoolean$3(ae.visible)&&!Fe.value);provide(TOOLTIP_INJECTION_KEY,{controlled:qe,id:le,open:readonly(Ce),trigger:toRef$1(ae,"trigger"),onOpen:Lt=>{ze(Lt)},onClose:Lt=>{Ue(Lt)},onToggle:Lt=>{unref(Ce)?Ue(Lt):ze(Lt)},onShow:()=>{oe("show",$e.value)},onHide:()=>{oe("hide",$e.value)},onBeforeShow:()=>{oe("before-show",$e.value)},onBeforeHide:()=>{oe("before-hide",$e.value)},updatePopper:_e}),watch(()=>ae.disabled,Lt=>{Lt&&Ce.value&&(Ce.value=!1)});const At=()=>{var Lt,hn;const vn=(hn=(Lt=pe.value)==null?void 0:Lt.contentRef)==null?void 0:hn.popperContentRef;return vn&&vn.contains(document.activeElement)};return onDeactivated(()=>Ce.value&&Ie()),z({popperRef:ue,contentRef:pe,isFocusInsideContent:At,updatePopper:_e,onOpen:ze,onClose:Ue,hide:Ie}),(Lt,hn)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:ue,role:Lt.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:Lt.disabled,trigger:Lt.trigger,"trigger-keys":Lt.triggerKeys,"virtual-ref":Lt.virtualRef,"virtual-triggering":Lt.virtualTriggering},{default:withCtx(()=>[Lt.$slots.default?renderSlot(Lt.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:pe,"aria-label":Lt.ariaLabel,"boundaries-padding":Lt.boundariesPadding,content:Lt.content,disabled:Lt.disabled,effect:Lt.effect,enterable:Lt.enterable,"fallback-placements":Lt.fallbackPlacements,"hide-after":Lt.hideAfter,"gpu-acceleration":Lt.gpuAcceleration,offset:Lt.offset,persistent:Lt.persistent,"popper-class":Lt.popperClass,"popper-style":Lt.popperStyle,placement:Lt.placement,"popper-options":Lt.popperOptions,pure:Lt.pure,"raw-content":Lt.rawContent,"reference-el":Lt.referenceEl,"trigger-target-el":Lt.triggerTargetEl,"show-after":Lt.showAfter,strategy:Lt.strategy,teleported:Lt.teleported,transition:Lt.transition,"virtual-triggering":Lt.virtualTriggering,"z-index":Lt.zIndex,"append-to":Lt.appendTo},{default:withCtx(()=>[renderSlot(Lt.$slots,"content",{},()=>[Lt.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:Lt.content},null,8,_hoisted_1$12)):(openBlock(),createElementBlock("span",_hoisted_2$H,toDisplayString$1(Lt.content),1))]),Lt.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0,"arrow-offset":Lt.arrowOffset},null,8,["arrow-offset"])):createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Tooltip=_export_sfc$1(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:definePropType([Function,Array]),default:NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:useTooltipContentProps.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),autocompleteEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($),[INPUT_EVENT]:$=>isString$7($),[CHANGE_EVENT]:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,select:$=>isObject$8($)},_hoisted_1$11=["aria-expanded","aria-owns"],_hoisted_2$G={key:0},_hoisted_3$m=["id","aria-selected","onClick"],COMPONENT_NAME$i="ElAutocomplete",__default__$1o=defineComponent({name:COMPONENT_NAME$i,inheritAttrs:!1}),_sfc_main$23=defineComponent({...__default__$1o,props:autocompleteProps,emits:autocompleteEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useAttrs(),ue=useAttrs$1(),pe=useFormDisabled(),_e=useNamespace("autocomplete"),Ce=ref(),$e=ref(),xe=ref(),Ie=ref();let Fe=!1,ze=!1;const Ue=ref([]),qe=ref(-1),At=ref(""),Lt=ref(!1),hn=ref(!1),vn=ref(!1),_n=computed(()=>_e.b(String(generateId()))),bn=computed(()=>ue.style),Sn=computed(()=>(Ue.value.length>0||vn.value)&&Lt.value),Cn=computed(()=>!ae.hideLoading&&vn.value),En=computed(()=>Ce.value?Array.from(Ce.value.$el.querySelectorAll("input")):[]),$n=async()=>{await nextTick(),Sn.value&&(At.value=`${Ce.value.$el.offsetWidth}px`)},wn=()=>{qe.value=-1},xn=debounce(async ar=>{if(hn.value)return;const qn=Gn=>{vn.value=!1,!hn.value&&(isArray$c(Gn)?(Ue.value=Gn,qe.value=ae.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$i,"autocomplete suggestions must be an array"))};if(vn.value=!0,isArray$c(ae.fetchSuggestions))qn(ae.fetchSuggestions);else{const Gn=await ae.fetchSuggestions(ar,qn);isArray$c(Gn)&&qn(Gn)}},ae.debounce),kn=ar=>{const qn=!!ar;if(oe(INPUT_EVENT,ar),oe(UPDATE_MODEL_EVENT,ar),hn.value=!1,Lt.value||(Lt.value=qn),!ae.triggerOnFocus&&!ar){hn.value=!0,Ue.value=[];return}xn(ar)},Nn=ar=>{var qn;pe.value||(((qn=ar.target)==null?void 0:qn.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(Lt.value=!0)},Bn=ar=>{oe(CHANGE_EVENT,ar)},Dn=ar=>{ze?ze=!1:(Lt.value=!0,oe("focus",ar),ae.triggerOnFocus&&!Fe&&xn(String(ae.modelValue)))},In=ar=>{setTimeout(()=>{var qn;if((qn=xe.value)!=null&&qn.isFocusInsideContent()){ze=!0;return}Lt.value&&Yn(),oe("blur",ar)})},Ln=()=>{Lt.value=!1,oe(UPDATE_MODEL_EVENT,""),oe("clear")},Mn=async()=>{Sn.value&&qe.value>=0&&qe.value<Ue.value.length?sr(Ue.value[qe.value]):ae.selectWhenUnmatched&&(oe("select",{value:ae.modelValue}),Ue.value=[],qe.value=-1)},Vn=ar=>{Sn.value&&(ar.preventDefault(),ar.stopPropagation(),Yn())},Yn=()=>{Lt.value=!1},Fn=()=>{var ar;(ar=Ce.value)==null||ar.focus()},Xn=()=>{var ar;(ar=Ce.value)==null||ar.blur()},sr=async ar=>{oe(INPUT_EVENT,ar[ae.valueKey]),oe(UPDATE_MODEL_EVENT,ar[ae.valueKey]),oe("select",ar),Ue.value=[],qe.value=-1},vr=ar=>{if(!Sn.value||vn.value)return;if(ar<0){qe.value=-1;return}ar>=Ue.value.length&&(ar=Ue.value.length-1);const qn=$e.value.querySelector(`.${_e.be("suggestion","wrap")}`),Wn=qn.querySelectorAll(`.${_e.be("suggestion","list")} li`)[ar],Qn=qn.scrollTop,{offsetTop:cr,scrollHeight:jn}=Wn;cr+jn>Qn+qn.clientHeight&&(qn.scrollTop+=jn),cr<Qn&&(qn.scrollTop-=jn),qe.value=ar,Ce.value.ref.setAttribute("aria-activedescendant",`${_n.value}-item-${qe.value}`)};return onClickOutside(Ie,()=>{Sn.value&&Yn()}),onMounted(()=>{Ce.value.ref.setAttribute("role","textbox"),Ce.value.ref.setAttribute("aria-autocomplete","list"),Ce.value.ref.setAttribute("aria-controls","id"),Ce.value.ref.setAttribute("aria-activedescendant",`${_n.value}-item-${qe.value}`),Fe=Ce.value.ref.hasAttribute("readonly")}),z({highlightedIndex:qe,activated:Lt,loading:vn,inputRef:Ce,popperRef:xe,suggestions:Ue,handleSelect:sr,handleKeyEnter:Mn,focus:Fn,blur:Xn,close:Yn,highlight:vr}),(ar,qn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:xe,visible:unref(Sn),placement:ar.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(_e).e("popper"),ar.popperClass],teleported:ar.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(_e).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:$n,onHide:wn},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:$e,class:normalizeClass([unref(_e).b("suggestion"),unref(_e).is("loading",unref(Cn))]),style:normalizeStyle$1({[ar.fitInputWidth?"width":"minWidth"]:At.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(_n),tag:"ul","wrap-class":unref(_e).be("suggestion","wrap"),"view-class":unref(_e).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref(Cn)?(openBlock(),createElementBlock("li",_hoisted_2$G,[createVNode(unref(ElIcon),{class:normalizeClass(unref(_e).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Ue.value,(Gn,Wn)=>(openBlock(),createElementBlock("li",{id:`${unref(_n)}-item-${Wn}`,key:Wn,class:normalizeClass({highlighted:qe.value===Wn}),role:"option","aria-selected":qe.value===Wn,onClick:Qn=>sr(Gn)},[renderSlot(ar.$slots,"default",{item:Gn},()=>[createTextVNode(toDisplayString$1(Gn[ar.valueKey]),1)])],10,_hoisted_3$m))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:Ie,class:normalizeClass([unref(_e).b(),ar.$attrs.class]),style:normalizeStyle$1(unref(bn)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref(Sn),"aria-owns":unref(_n)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:Ce},unref(le),{clearable:ar.clearable,disabled:unref(pe),name:ar.name,"model-value":ar.modelValue,onInput:kn,onChange:Bn,onFocus:Dn,onBlur:In,onClear:Ln,onKeydown:[qn[0]||(qn[0]=withKeys(withModifiers(Gn=>vr(qe.value-1),["prevent"]),["up"])),qn[1]||(qn[1]=withKeys(withModifiers(Gn=>vr(qe.value+1),["prevent"]),["down"])),withKeys(Mn,["enter"]),withKeys(Yn,["tab"]),withKeys(Vn,["esc"])],onMousedown:Nn}),createSlots({_:2},[ar.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(ar.$slots,"prepend")])}:void 0,ar.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(ar.$slots,"append")])}:void 0,ar.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(ar.$slots,"prefix")])}:void 0,ar.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(ar.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,_hoisted_1$11)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Autocomplete=_export_sfc$1(_sfc_main$23,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const ElAutocomplete=withInstall(Autocomplete),avatarProps=buildProps({size:{type:[Number,String],values:componentSizes,default:"",validator:$=>isNumber$5($)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:$=>$ instanceof Event},_hoisted_1$10=["src","alt","srcset"],__default__$1n=defineComponent({name:"ElAvatar"}),_sfc_main$22=defineComponent({...__default__$1n,props:avatarProps,emits:avatarEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("avatar"),le=ref(!1),ue=computed(()=>{const{size:$e,icon:xe,shape:Ie}=oe,Fe=[ae.b()];return isString$7($e)&&Fe.push(ae.m($e)),xe&&Fe.push(ae.m("icon")),Ie&&Fe.push(ae.m(Ie)),Fe}),pe=computed(()=>{const{size:$e}=oe;return isNumber$5($e)?ae.cssVarBlock({size:addUnit($e)||""}):void 0}),_e=computed(()=>({objectFit:oe.fit}));watch(()=>oe.src,()=>le.value=!1);function Ce($e){le.value=!0,z("error",$e)}return($e,xe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ue)),style:normalizeStyle$1(unref(pe))},[($e.src||$e.srcSet)&&!le.value?(openBlock(),createElementBlock("img",{key:0,src:$e.src,alt:$e.alt,srcset:$e.srcSet,style:normalizeStyle$1(unref(_e)),onError:Ce},null,44,_hoisted_1$10)):$e.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($e.icon)))]),_:1})):renderSlot($e.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc$1(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const ElAvatar=withInstall(Avatar),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:$=>$ instanceof MouseEvent},useBackTop=($,z,oe)=>{const ae=shallowRef(),le=shallowRef(),ue=ref(!1),pe=()=>{ae.value&&(ue.value=ae.value.scrollTop>=$.visibilityHeight)},_e=$e=>{var xe;(xe=ae.value)==null||xe.scrollTo({top:0,behavior:"smooth"}),z("click",$e)},Ce=useThrottleFn(pe,300,!0);return useEventListener$1(le,"scroll",Ce),onMounted(()=>{var $e;le.value=document,ae.value=document.documentElement,$.target&&(ae.value=($e=document.querySelector($.target))!=null?$e:void 0,ae.value||throwError$1(oe,`target does not exist: ${$.target}`),le.value=ae.value)}),{visible:ue,handleClick:_e}},COMPONENT_NAME$h="ElBacktop",__default__$1m=defineComponent({name:COMPONENT_NAME$h}),_sfc_main$21=defineComponent({...__default__$1m,props:backtopProps,emits:backtopEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("backtop"),{handleClick:le,visible:ue}=useBackTop(oe,z,COMPONENT_NAME$h),pe=computed(()=>({right:`${oe.right}px`,bottom:`${oe.bottom}px`}));return(_e,Ce)=>(openBlock(),createBlock(Transition,{name:`${unref(ae).namespace.value}-fade-in`},{default:withCtx(()=>[unref(ue)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(unref(pe)),class:normalizeClass(unref(ae).b()),onClick:Ce[0]||(Ce[0]=withModifiers((...$e)=>unref(le)&&unref(le)(...$e),["stop"]))},[renderSlot(_e.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(ae).e("icon"))},{default:withCtx(()=>[createVNode(unref(caret_top_default))]),_:1},8,["class"])])],6)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Backtop=_export_sfc$1(_sfc_main$21,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const ElBacktop=withInstall(Backtop),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),_hoisted_1$$=["textContent"],__default__$1l=defineComponent({name:"ElBadge"}),_sfc_main$20=defineComponent({...__default__$1l,props:badgeProps,setup($,{expose:z}){const oe=$,ae=useNamespace("badge"),le=computed(()=>oe.isDot?"":isNumber$5(oe.value)&&isNumber$5(oe.max)?oe.max<oe.value?`${oe.max}+`:`${oe.value}`:`${oe.value}`);return z({content:le}),(ue,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[renderSlot(ue.$slots,"default"),createVNode(Transition,{name:`${unref(ae).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(ae).e("content"),unref(ae).em("content",ue.type),unref(ae).is("fixed",!!ue.$slots.default),unref(ae).is("dot",ue.isDot)]),textContent:toDisplayString$1(unref(le))},null,10,_hoisted_1$$),[[vShow,!ue.hidden&&(unref(le)||ue.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc$1(_sfc_main$20,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const ElBadge=withInstall(Badge),breadcrumbKey=Symbol("breadcrumbKey"),breadcrumbProps=buildProps({separator:{type:String,default:"/"},separatorIcon:{type:iconPropType}}),__default__$1k=defineComponent({name:"ElBreadcrumb"}),_sfc_main$1$=defineComponent({...__default__$1k,props:breadcrumbProps,setup($){const z=$,oe=useNamespace("breadcrumb"),ae=ref();return provide(breadcrumbKey,z),onMounted(()=>{const le=ae.value.querySelectorAll(`.${oe.e("item")}`);le.length&&le[le.length-1].setAttribute("aria-current","page")}),(le,ue)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:ae,class:normalizeClass(unref(oe).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot(le.$slots,"default")],2))}});var Breadcrumb=_export_sfc$1(_sfc_main$1$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:{type:Boolean,default:!1}}),__default__$1j=defineComponent({name:"ElBreadcrumbItem"}),_sfc_main$1_=defineComponent({...__default__$1j,props:breadcrumbItemProps,setup($){const z=$,oe=getCurrentInstance(),ae=inject(breadcrumbKey,void 0),le=useNamespace("breadcrumb"),{separator:ue,separatorIcon:pe}=toRefs(ae),_e=oe.appContext.config.globalProperties.$router,Ce=ref(),$e=()=>{!z.to||!_e||(z.replace?_e.replace(z.to):_e.push(z.to))};return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:Ce,class:normalizeClass([unref(le).e("inner"),unref(le).is("link",!!xe.to)]),role:"link",onClick:$e},[renderSlot(xe.$slots,"default")],2),unref(pe)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(pe))))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(le).e("separator")),role:"presentation"},toDisplayString$1(unref(ue)),3))],2))}});var BreadcrumbItem=_export_sfc$1(_sfc_main$1_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ElBreadcrumb=withInstall(Breadcrumb,{BreadcrumbItem}),ElBreadcrumbItem=withNoopInstall(BreadcrumbItem),buttonGroupContextKey=Symbol("buttonGroupContextKey"),useButton=($,z)=>{useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(()=>$.type==="text"));const oe=inject(buttonGroupContextKey,void 0),ae=useGlobalConfig("button"),{form:le}=useFormItem(),ue=useFormSize(computed(()=>oe==null?void 0:oe.size)),pe=useFormDisabled(),_e=ref(),Ce=useSlots(),$e=computed(()=>$.type||(oe==null?void 0:oe.type)||""),xe=computed(()=>{var Ue,qe,At;return(At=(qe=$.autoInsertSpace)!=null?qe:(Ue=ae.value)==null?void 0:Ue.autoInsertSpace)!=null?At:!1}),Ie=computed(()=>$.tag==="button"?{ariaDisabled:pe.value||$.loading,disabled:pe.value||$.loading,autofocus:$.autofocus,type:$.nativeType}:{}),Fe=computed(()=>{var Ue;const qe=(Ue=Ce.default)==null?void 0:Ue.call(Ce);if(xe.value&&(qe==null?void 0:qe.length)===1){const At=qe[0];if((At==null?void 0:At.type)===Text$1){const Lt=At.children;return/^\p{Unified_Ideograph}{2}$/u.test(Lt.trim())}}return!1});return{_disabled:pe,_size:ue,_type:$e,_ref:_e,_props:Ie,shouldAddSpace:Fe,handleClick:Ue=>{$.nativeType==="reset"&&(le==null||le.resetFields()),z("click",Ue)}}},buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:Boolean,type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:()=>loading_default},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:definePropType([String,Object]),default:"button"}}),buttonEmits={click:$=>$ instanceof MouseEvent};function bound01$1($,z){isOnePointZero$1($)&&($="100%");var oe=isPercentage$1($);return $=z===360?$:Math.min(z,Math.max(0,parseFloat($))),oe&&($=parseInt(String($*z),10)/100),Math.abs($-z)<1e-6?1:(z===360?$=($<0?$%z+z:$%z)/parseFloat(String(z)):$=$%z/parseFloat(String(z)),$)}function clamp01($){return Math.min(1,Math.max(0,$))}function isOnePointZero$1($){return typeof $=="string"&&$.indexOf(".")!==-1&&parseFloat($)===1}function isPercentage$1($){return typeof $=="string"&&$.indexOf("%")!==-1}function boundAlpha($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function convertToPercentage($){return $<=1?"".concat(Number($)*100,"%"):$}function pad2($){return $.length===1?"0"+$:String($)}function rgbToRgb($,z,oe){return{r:bound01$1($,255)*255,g:bound01$1(z,255)*255,b:bound01$1(oe,255)*255}}function rgbToHsl($,z,oe){$=bound01$1($,255),z=bound01$1(z,255),oe=bound01$1(oe,255);var ae=Math.max($,z,oe),le=Math.min($,z,oe),ue=0,pe=0,_e=(ae+le)/2;if(ae===le)pe=0,ue=0;else{var Ce=ae-le;switch(pe=_e>.5?Ce/(2-ae-le):Ce/(ae+le),ae){case $:ue=(z-oe)/Ce+(z<oe?6:0);break;case z:ue=(oe-$)/Ce+2;break;case oe:ue=($-z)/Ce+4;break}ue/=6}return{h:ue,s:pe,l:_e}}function hue2rgb($,z,oe){return oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?$+(z-$)*(6*oe):oe<1/2?z:oe<2/3?$+(z-$)*(2/3-oe)*6:$}function hslToRgb($,z,oe){var ae,le,ue;if($=bound01$1($,360),z=bound01$1(z,100),oe=bound01$1(oe,100),z===0)le=oe,ue=oe,ae=oe;else{var pe=oe<.5?oe*(1+z):oe+z-oe*z,_e=2*oe-pe;ae=hue2rgb(_e,pe,$+1/3),le=hue2rgb(_e,pe,$),ue=hue2rgb(_e,pe,$-1/3)}return{r:ae*255,g:le*255,b:ue*255}}function rgbToHsv($,z,oe){$=bound01$1($,255),z=bound01$1(z,255),oe=bound01$1(oe,255);var ae=Math.max($,z,oe),le=Math.min($,z,oe),ue=0,pe=ae,_e=ae-le,Ce=ae===0?0:_e/ae;if(ae===le)ue=0;else{switch(ae){case $:ue=(z-oe)/_e+(z<oe?6:0);break;case z:ue=(oe-$)/_e+2;break;case oe:ue=($-z)/_e+4;break}ue/=6}return{h:ue,s:Ce,v:pe}}function hsvToRgb($,z,oe){$=bound01$1($,360)*6,z=bound01$1(z,100),oe=bound01$1(oe,100);var ae=Math.floor($),le=$-ae,ue=oe*(1-z),pe=oe*(1-le*z),_e=oe*(1-(1-le)*z),Ce=ae%6,$e=[oe,pe,ue,ue,_e,oe][Ce],xe=[_e,oe,oe,pe,ue,ue][Ce],Ie=[ue,ue,_e,oe,oe,pe][Ce];return{r:$e*255,g:xe*255,b:Ie*255}}function rgbToHex($,z,oe,ae){var le=[pad2(Math.round($).toString(16)),pad2(Math.round(z).toString(16)),pad2(Math.round(oe).toString(16))];return ae&&le[0].startsWith(le[0].charAt(1))&&le[1].startsWith(le[1].charAt(1))&&le[2].startsWith(le[2].charAt(1))?le[0].charAt(0)+le[1].charAt(0)+le[2].charAt(0):le.join("")}function rgbaToHex($,z,oe,ae,le){var ue=[pad2(Math.round($).toString(16)),pad2(Math.round(z).toString(16)),pad2(Math.round(oe).toString(16)),pad2(convertDecimalToHex(ae))];return le&&ue[0].startsWith(ue[0].charAt(1))&&ue[1].startsWith(ue[1].charAt(1))&&ue[2].startsWith(ue[2].charAt(1))&&ue[3].startsWith(ue[3].charAt(1))?ue[0].charAt(0)+ue[1].charAt(0)+ue[2].charAt(0)+ue[3].charAt(0):ue.join("")}function convertDecimalToHex($){return Math.round(parseFloat($)*255).toString(16)}function convertHexToDecimal($){return parseIntFromHex($)/255}function parseIntFromHex($){return parseInt($,16)}function numberInputToObject($){return{r:$>>16,g:($&65280)>>8,b:$&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB($){var z={r:0,g:0,b:0},oe=1,ae=null,le=null,ue=null,pe=!1,_e=!1;return typeof $=="string"&&($=stringInputToObject($)),typeof $=="object"&&(isValidCSSUnit($.r)&&isValidCSSUnit($.g)&&isValidCSSUnit($.b)?(z=rgbToRgb($.r,$.g,$.b),pe=!0,_e=String($.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.v)?(ae=convertToPercentage($.s),le=convertToPercentage($.v),z=hsvToRgb($.h,ae,le),pe=!0,_e="hsv"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.l)&&(ae=convertToPercentage($.s),ue=convertToPercentage($.l),z=hslToRgb($.h,ae,ue),pe=!0,_e="hsl"),Object.prototype.hasOwnProperty.call($,"a")&&(oe=$.a)),oe=boundAlpha(oe),{ok:pe,format:$.format||_e,r:Math.min(255,Math.max(z.r,0)),g:Math.min(255,Math.max(z.g,0)),b:Math.min(255,Math.max(z.b,0)),a:oe}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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 stringInputToObject($){if($=$.trim().toLowerCase(),$.length===0)return!1;var z=!1;if(names[$])$=names[$],z=!0;else if($==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var oe=matchers.rgb.exec($);return oe?{r:oe[1],g:oe[2],b:oe[3]}:(oe=matchers.rgba.exec($),oe?{r:oe[1],g:oe[2],b:oe[3],a:oe[4]}:(oe=matchers.hsl.exec($),oe?{h:oe[1],s:oe[2],l:oe[3]}:(oe=matchers.hsla.exec($),oe?{h:oe[1],s:oe[2],l:oe[3],a:oe[4]}:(oe=matchers.hsv.exec($),oe?{h:oe[1],s:oe[2],v:oe[3]}:(oe=matchers.hsva.exec($),oe?{h:oe[1],s:oe[2],v:oe[3],a:oe[4]}:(oe=matchers.hex8.exec($),oe?{r:parseIntFromHex(oe[1]),g:parseIntFromHex(oe[2]),b:parseIntFromHex(oe[3]),a:convertHexToDecimal(oe[4]),format:z?"name":"hex8"}:(oe=matchers.hex6.exec($),oe?{r:parseIntFromHex(oe[1]),g:parseIntFromHex(oe[2]),b:parseIntFromHex(oe[3]),format:z?"name":"hex"}:(oe=matchers.hex4.exec($),oe?{r:parseIntFromHex(oe[1]+oe[1]),g:parseIntFromHex(oe[2]+oe[2]),b:parseIntFromHex(oe[3]+oe[3]),a:convertHexToDecimal(oe[4]+oe[4]),format:z?"name":"hex8"}:(oe=matchers.hex3.exec($),oe?{r:parseIntFromHex(oe[1]+oe[1]),g:parseIntFromHex(oe[2]+oe[2]),b:parseIntFromHex(oe[3]+oe[3]),format:z?"name":"hex"}:!1)))))))))}function isValidCSSUnit($){return!!matchers.CSS_UNIT.exec(String($))}var TinyColor=function(){function $(z,oe){z===void 0&&(z=""),oe===void 0&&(oe={});var ae;if(z instanceof $)return z;typeof z=="number"&&(z=numberInputToObject(z)),this.originalInput=z;var le=inputToRGB(z);this.originalInput=z,this.r=le.r,this.g=le.g,this.b=le.b,this.a=le.a,this.roundA=Math.round(100*this.a)/100,this.format=(ae=oe.format)!==null&&ae!==void 0?ae:le.format,this.gradientType=oe.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.isValid=le.ok}return $.prototype.isDark=function(){return this.getBrightness()<128},$.prototype.isLight=function(){return!this.isDark()},$.prototype.getBrightness=function(){var z=this.toRgb();return(z.r*299+z.g*587+z.b*114)/1e3},$.prototype.getLuminance=function(){var z=this.toRgb(),oe,ae,le,ue=z.r/255,pe=z.g/255,_e=z.b/255;return ue<=.03928?oe=ue/12.92:oe=Math.pow((ue+.055)/1.055,2.4),pe<=.03928?ae=pe/12.92:ae=Math.pow((pe+.055)/1.055,2.4),_e<=.03928?le=_e/12.92:le=Math.pow((_e+.055)/1.055,2.4),.2126*oe+.7152*ae+.0722*le},$.prototype.getAlpha=function(){return this.a},$.prototype.setAlpha=function(z){return this.a=boundAlpha(z),this.roundA=Math.round(100*this.a)/100,this},$.prototype.isMonochrome=function(){var z=this.toHsl().s;return z===0},$.prototype.toHsv=function(){var z=rgbToHsv(this.r,this.g,this.b);return{h:z.h*360,s:z.s,v:z.v,a:this.a}},$.prototype.toHsvString=function(){var z=rgbToHsv(this.r,this.g,this.b),oe=Math.round(z.h*360),ae=Math.round(z.s*100),le=Math.round(z.v*100);return this.a===1?"hsv(".concat(oe,", ").concat(ae,"%, ").concat(le,"%)"):"hsva(".concat(oe,", ").concat(ae,"%, ").concat(le,"%, ").concat(this.roundA,")")},$.prototype.toHsl=function(){var z=rgbToHsl(this.r,this.g,this.b);return{h:z.h*360,s:z.s,l:z.l,a:this.a}},$.prototype.toHslString=function(){var z=rgbToHsl(this.r,this.g,this.b),oe=Math.round(z.h*360),ae=Math.round(z.s*100),le=Math.round(z.l*100);return this.a===1?"hsl(".concat(oe,", ").concat(ae,"%, ").concat(le,"%)"):"hsla(".concat(oe,", ").concat(ae,"%, ").concat(le,"%, ").concat(this.roundA,")")},$.prototype.toHex=function(z){return z===void 0&&(z=!1),rgbToHex(this.r,this.g,this.b,z)},$.prototype.toHexString=function(z){return z===void 0&&(z=!1),"#"+this.toHex(z)},$.prototype.toHex8=function(z){return z===void 0&&(z=!1),rgbaToHex(this.r,this.g,this.b,this.a,z)},$.prototype.toHex8String=function(z){return z===void 0&&(z=!1),"#"+this.toHex8(z)},$.prototype.toHexShortString=function(z){return z===void 0&&(z=!1),this.a===1?this.toHexString(z):this.toHex8String(z)},$.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},$.prototype.toRgbString=function(){var z=Math.round(this.r),oe=Math.round(this.g),ae=Math.round(this.b);return this.a===1?"rgb(".concat(z,", ").concat(oe,", ").concat(ae,")"):"rgba(".concat(z,", ").concat(oe,", ").concat(ae,", ").concat(this.roundA,")")},$.prototype.toPercentageRgb=function(){var z=function(oe){return"".concat(Math.round(bound01$1(oe,255)*100),"%")};return{r:z(this.r),g:z(this.g),b:z(this.b),a:this.a}},$.prototype.toPercentageRgbString=function(){var z=function(oe){return Math.round(bound01$1(oe,255)*100)};return this.a===1?"rgb(".concat(z(this.r),"%, ").concat(z(this.g),"%, ").concat(z(this.b),"%)"):"rgba(".concat(z(this.r),"%, ").concat(z(this.g),"%, ").concat(z(this.b),"%, ").concat(this.roundA,")")},$.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var z="#"+rgbToHex(this.r,this.g,this.b,!1),oe=0,ae=Object.entries(names);oe<ae.length;oe++){var le=ae[oe],ue=le[0],pe=le[1];if(z===pe)return ue}return!1},$.prototype.toString=function(z){var oe=!!z;z=z??this.format;var ae=!1,le=this.a<1&&this.a>=0,ue=!oe&&le&&(z.startsWith("hex")||z==="name");return ue?z==="name"&&this.a===0?this.toName():this.toRgbString():(z==="rgb"&&(ae=this.toRgbString()),z==="prgb"&&(ae=this.toPercentageRgbString()),(z==="hex"||z==="hex6")&&(ae=this.toHexString()),z==="hex3"&&(ae=this.toHexString(!0)),z==="hex4"&&(ae=this.toHex8String(!0)),z==="hex8"&&(ae=this.toHex8String()),z==="name"&&(ae=this.toName()),z==="hsl"&&(ae=this.toHslString()),z==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},$.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},$.prototype.clone=function(){return new $(this.toString())},$.prototype.lighten=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.l+=z/100,oe.l=clamp01(oe.l),new $(oe)},$.prototype.brighten=function(z){z===void 0&&(z=10);var oe=this.toRgb();return oe.r=Math.max(0,Math.min(255,oe.r-Math.round(255*-(z/100)))),oe.g=Math.max(0,Math.min(255,oe.g-Math.round(255*-(z/100)))),oe.b=Math.max(0,Math.min(255,oe.b-Math.round(255*-(z/100)))),new $(oe)},$.prototype.darken=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.l-=z/100,oe.l=clamp01(oe.l),new $(oe)},$.prototype.tint=function(z){return z===void 0&&(z=10),this.mix("white",z)},$.prototype.shade=function(z){return z===void 0&&(z=10),this.mix("black",z)},$.prototype.desaturate=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.s-=z/100,oe.s=clamp01(oe.s),new $(oe)},$.prototype.saturate=function(z){z===void 0&&(z=10);var oe=this.toHsl();return oe.s+=z/100,oe.s=clamp01(oe.s),new $(oe)},$.prototype.greyscale=function(){return this.desaturate(100)},$.prototype.spin=function(z){var oe=this.toHsl(),ae=(oe.h+z)%360;return oe.h=ae<0?360+ae:ae,new $(oe)},$.prototype.mix=function(z,oe){oe===void 0&&(oe=50);var ae=this.toRgb(),le=new $(z).toRgb(),ue=oe/100,pe={r:(le.r-ae.r)*ue+ae.r,g:(le.g-ae.g)*ue+ae.g,b:(le.b-ae.b)*ue+ae.b,a:(le.a-ae.a)*ue+ae.a};return new $(pe)},$.prototype.analogous=function(z,oe){z===void 0&&(z=6),oe===void 0&&(oe=30);var ae=this.toHsl(),le=360/oe,ue=[this];for(ae.h=(ae.h-(le*z>>1)+720)%360;--z;)ae.h=(ae.h+le)%360,ue.push(new $(ae));return ue},$.prototype.complement=function(){var z=this.toHsl();return z.h=(z.h+180)%360,new $(z)},$.prototype.monochromatic=function(z){z===void 0&&(z=6);for(var oe=this.toHsv(),ae=oe.h,le=oe.s,ue=oe.v,pe=[],_e=1/z;z--;)pe.push(new $({h:ae,s:le,v:ue})),ue=(ue+_e)%1;return pe},$.prototype.splitcomplement=function(){var z=this.toHsl(),oe=z.h;return[this,new $({h:(oe+72)%360,s:z.s,l:z.l}),new $({h:(oe+216)%360,s:z.s,l:z.l})]},$.prototype.onBackground=function(z){var oe=this.toRgb(),ae=new $(z).toRgb(),le=oe.a+ae.a*(1-oe.a);return new $({r:(oe.r*oe.a+ae.r*ae.a*(1-oe.a))/le,g:(oe.g*oe.a+ae.g*ae.a*(1-oe.a))/le,b:(oe.b*oe.a+ae.b*ae.a*(1-oe.a))/le,a:le})},$.prototype.triad=function(){return this.polyad(3)},$.prototype.tetrad=function(){return this.polyad(4)},$.prototype.polyad=function(z){for(var oe=this.toHsl(),ae=oe.h,le=[this],ue=360/z,pe=1;pe<z;pe++)le.push(new $({h:(ae+pe*ue)%360,s:oe.s,l:oe.l}));return le},$.prototype.equals=function(z){return this.toRgbString()===new $(z).toRgbString()},$}();function darken($,z=20){return $.mix("#141414",z).toString()}function useButtonCustomStyle($){const z=useFormDisabled(),oe=useNamespace("button");return computed(()=>{let ae={};const le=$.color;if(le){const ue=new TinyColor(le),pe=$.dark?ue.tint(20).toString():darken(ue,20);if($.plain)ae=oe.cssVarBlock({"bg-color":$.dark?darken(ue,90):ue.tint(90).toString(),"text-color":le,"border-color":$.dark?darken(ue,50):ue.tint(50).toString(),"hover-text-color":`var(${oe.cssVarName("color-white")})`,"hover-bg-color":le,"hover-border-color":le,"active-bg-color":pe,"active-text-color":`var(${oe.cssVarName("color-white")})`,"active-border-color":pe}),z.value&&(ae[oe.cssVarBlockName("disabled-bg-color")]=$.dark?darken(ue,90):ue.tint(90).toString(),ae[oe.cssVarBlockName("disabled-text-color")]=$.dark?darken(ue,50):ue.tint(50).toString(),ae[oe.cssVarBlockName("disabled-border-color")]=$.dark?darken(ue,80):ue.tint(80).toString());else{const _e=$.dark?darken(ue,30):ue.tint(30).toString(),Ce=ue.isDark()?`var(${oe.cssVarName("color-white")})`:`var(${oe.cssVarName("color-black")})`;if(ae=oe.cssVarBlock({"bg-color":le,"text-color":Ce,"border-color":le,"hover-bg-color":_e,"hover-text-color":Ce,"hover-border-color":_e,"active-bg-color":pe,"active-border-color":pe}),z.value){const $e=$.dark?darken(ue,50):ue.tint(50).toString();ae[oe.cssVarBlockName("disabled-bg-color")]=$e,ae[oe.cssVarBlockName("disabled-text-color")]=$.dark?"rgba(255, 255, 255, 0.5)":`var(${oe.cssVarName("color-white")})`,ae[oe.cssVarBlockName("disabled-border-color")]=$e}}}return ae})}const __default__$1i=defineComponent({name:"ElButton"}),_sfc_main$1Z=defineComponent({...__default__$1i,props:buttonProps,emits:buttonEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useButtonCustomStyle(ae),ue=useNamespace("button"),{_ref:pe,_size:_e,_type:Ce,_disabled:$e,_props:xe,shouldAddSpace:Ie,handleClick:Fe}=useButton(ae,oe);return z({ref:pe,size:_e,type:Ce,disabled:$e,shouldAddSpace:Ie}),(ze,Ue)=>(openBlock(),createBlock(resolveDynamicComponent(ze.tag),mergeProps({ref_key:"_ref",ref:pe},unref(xe),{class:[unref(ue).b(),unref(ue).m(unref(Ce)),unref(ue).m(unref(_e)),unref(ue).is("disabled",unref($e)),unref(ue).is("loading",ze.loading),unref(ue).is("plain",ze.plain),unref(ue).is("round",ze.round),unref(ue).is("circle",ze.circle),unref(ue).is("text",ze.text),unref(ue).is("link",ze.link),unref(ue).is("has-bg",ze.bg)],style:unref(le),onClick:unref(Fe)}),{default:withCtx(()=>[ze.loading?(openBlock(),createElementBlock(Fragment,{key:0},[ze.$slots.loading?renderSlot(ze.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(ue).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ze.loadingIcon)))]),_:1},8,["class"]))],64)):ze.icon||ze.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[ze.icon?(openBlock(),createBlock(resolveDynamicComponent(ze.icon),{key:0})):renderSlot(ze.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),ze.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(ue).em("text","expand")]:unref(Ie)})},[renderSlot(ze.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc$1(_sfc_main$1Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type},__default__$1h=defineComponent({name:"ElButtonGroup"}),_sfc_main$1Y=defineComponent({...__default__$1h,props:buttonGroupProps,setup($){const z=$;provide(buttonGroupContextKey,reactive({size:toRef$1(z,"size"),type:toRef$1(z,"type")}));const oe=useNamespace("button");return(ae,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(oe).b("group")}`)},[renderSlot(ae.$slots,"default")],2))}});var ButtonGroup=_export_sfc$1(_sfc_main$1Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ElButton=withInstall(Button,{ButtonGroup}),ElButtonGroup$1=withNoopInstall(ButtonGroup);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var z=$.default;if(typeof z=="function"){var oe=function ae(){if(this instanceof ae){var le=[null];le.push.apply(le,arguments);var ue=Function.bind.apply(z,le);return new ue}return z.apply(this,arguments)};oe.prototype=z.prototype}else oe={};return Object.defineProperty(oe,"__esModule",{value:!0}),Object.keys($).forEach(function(ae){var le=Object.getOwnPropertyDescriptor($,ae);Object.defineProperty(oe,ae,le.get?le:{enumerable:!0,get:function(){return $[ae]}})}),oe}var dayjs_min={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe=1e3,ae=6e4,le=36e5,ue="millisecond",pe="second",_e="minute",Ce="hour",$e="day",xe="week",Ie="month",Fe="quarter",ze="year",Ue="date",qe="Invalid Date",At=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Lt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,hn={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(kn){var Nn=["th","st","nd","rd"],Bn=kn%100;return"["+kn+(Nn[(Bn-20)%10]||Nn[Bn]||Nn[0])+"]"}},vn=function(kn,Nn,Bn){var Dn=String(kn);return!Dn||Dn.length>=Nn?kn:""+Array(Nn+1-Dn.length).join(Bn)+kn},_n={s:vn,z:function(kn){var Nn=-kn.utcOffset(),Bn=Math.abs(Nn),Dn=Math.floor(Bn/60),In=Bn%60;return(Nn<=0?"+":"-")+vn(Dn,2,"0")+":"+vn(In,2,"0")},m:function kn(Nn,Bn){if(Nn.date()<Bn.date())return-kn(Bn,Nn);var Dn=12*(Bn.year()-Nn.year())+(Bn.month()-Nn.month()),In=Nn.clone().add(Dn,Ie),Ln=Bn-In<0,Mn=Nn.clone().add(Dn+(Ln?-1:1),Ie);return+(-(Dn+(Bn-In)/(Ln?In-Mn:Mn-In))||0)},a:function(kn){return kn<0?Math.ceil(kn)||0:Math.floor(kn)},p:function(kn){return{M:Ie,y:ze,w:xe,d:$e,D:Ue,h:Ce,m:_e,s:pe,ms:ue,Q:Fe}[kn]||String(kn||"").toLowerCase().replace(/s$/,"")},u:function(kn){return kn===void 0}},bn="en",Sn={};Sn[bn]=hn;var Cn=function(kn){return kn instanceof Tn},En=function kn(Nn,Bn,Dn){var In;if(!Nn)return bn;if(typeof Nn=="string"){var Ln=Nn.toLowerCase();Sn[Ln]&&(In=Ln),Bn&&(Sn[Ln]=Bn,In=Ln);var Mn=Nn.split("-");if(!In&&Mn.length>1)return kn(Mn[0])}else{var Vn=Nn.name;Sn[Vn]=Nn,In=Vn}return!Dn&&In&&(bn=In),In||!Dn&&bn},$n=function(kn,Nn){if(Cn(kn))return kn.clone();var Bn=typeof Nn=="object"?Nn:{};return Bn.date=kn,Bn.args=arguments,new Tn(Bn)},wn=_n;wn.l=En,wn.i=Cn,wn.w=function(kn,Nn){return $n(kn,{locale:Nn.$L,utc:Nn.$u,x:Nn.$x,$offset:Nn.$offset})};var Tn=function(){function kn(Bn){this.$L=En(Bn.locale,null,!0),this.parse(Bn)}var Nn=kn.prototype;return Nn.parse=function(Bn){this.$d=function(Dn){var In=Dn.date,Ln=Dn.utc;if(In===null)return new Date(NaN);if(wn.u(In))return new Date;if(In instanceof Date)return new Date(In);if(typeof In=="string"&&!/Z$/i.test(In)){var Mn=In.match(At);if(Mn){var Vn=Mn[2]-1||0,Yn=(Mn[7]||"0").substring(0,3);return Ln?new Date(Date.UTC(Mn[1],Vn,Mn[3]||1,Mn[4]||0,Mn[5]||0,Mn[6]||0,Yn)):new Date(Mn[1],Vn,Mn[3]||1,Mn[4]||0,Mn[5]||0,Mn[6]||0,Yn)}}return new Date(In)}(Bn),this.$x=Bn.x||{},this.init()},Nn.init=function(){var Bn=this.$d;this.$y=Bn.getFullYear(),this.$M=Bn.getMonth(),this.$D=Bn.getDate(),this.$W=Bn.getDay(),this.$H=Bn.getHours(),this.$m=Bn.getMinutes(),this.$s=Bn.getSeconds(),this.$ms=Bn.getMilliseconds()},Nn.$utils=function(){return wn},Nn.isValid=function(){return this.$d.toString()!==qe},Nn.isSame=function(Bn,Dn){var In=$n(Bn);return this.startOf(Dn)<=In&&In<=this.endOf(Dn)},Nn.isAfter=function(Bn,Dn){return $n(Bn)<this.startOf(Dn)},Nn.isBefore=function(Bn,Dn){return this.endOf(Dn)<$n(Bn)},Nn.$g=function(Bn,Dn,In){return wn.u(Bn)?this[Dn]:this.set(In,Bn)},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this.$d.getTime()},Nn.startOf=function(Bn,Dn){var In=this,Ln=!!wn.u(Dn)||Dn,Mn=wn.p(Bn),Vn=function(Gn,Wn){var Qn=wn.w(In.$u?Date.UTC(In.$y,Wn,Gn):new Date(In.$y,Wn,Gn),In);return Ln?Qn:Qn.endOf($e)},Yn=function(Gn,Wn){return wn.w(In.toDate()[Gn].apply(In.toDate("s"),(Ln?[0,0,0,0]:[23,59,59,999]).slice(Wn)),In)},Fn=this.$W,Xn=this.$M,sr=this.$D,vr="set"+(this.$u?"UTC":"");switch(Mn){case ze:return Ln?Vn(1,0):Vn(31,11);case Ie:return Ln?Vn(1,Xn):Vn(0,Xn+1);case xe:var ar=this.$locale().weekStart||0,qn=(Fn<ar?Fn+7:Fn)-ar;return Vn(Ln?sr-qn:sr+(6-qn),Xn);case $e:case Ue:return Yn(vr+"Hours",0);case Ce:return Yn(vr+"Minutes",1);case _e:return Yn(vr+"Seconds",2);case pe:return Yn(vr+"Milliseconds",3);default:return this.clone()}},Nn.endOf=function(Bn){return this.startOf(Bn,!1)},Nn.$set=function(Bn,Dn){var In,Ln=wn.p(Bn),Mn="set"+(this.$u?"UTC":""),Vn=(In={},In[$e]=Mn+"Date",In[Ue]=Mn+"Date",In[Ie]=Mn+"Month",In[ze]=Mn+"FullYear",In[Ce]=Mn+"Hours",In[_e]=Mn+"Minutes",In[pe]=Mn+"Seconds",In[ue]=Mn+"Milliseconds",In)[Ln],Yn=Ln===$e?this.$D+(Dn-this.$W):Dn;if(Ln===Ie||Ln===ze){var Fn=this.clone().set(Ue,1);Fn.$d[Vn](Yn),Fn.init(),this.$d=Fn.set(Ue,Math.min(this.$D,Fn.daysInMonth())).$d}else Vn&&this.$d[Vn](Yn);return this.init(),this},Nn.set=function(Bn,Dn){return this.clone().$set(Bn,Dn)},Nn.get=function(Bn){return this[wn.p(Bn)]()},Nn.add=function(Bn,Dn){var In,Ln=this;Bn=Number(Bn);var Mn=wn.p(Dn),Vn=function(Xn){var sr=$n(Ln);return wn.w(sr.date(sr.date()+Math.round(Xn*Bn)),Ln)};if(Mn===Ie)return this.set(Ie,this.$M+Bn);if(Mn===ze)return this.set(ze,this.$y+Bn);if(Mn===$e)return Vn(1);if(Mn===xe)return Vn(7);var Yn=(In={},In[_e]=ae,In[Ce]=le,In[pe]=oe,In)[Mn]||1,Fn=this.$d.getTime()+Bn*Yn;return wn.w(Fn,this)},Nn.subtract=function(Bn,Dn){return this.add(-1*Bn,Dn)},Nn.format=function(Bn){var Dn=this,In=this.$locale();if(!this.isValid())return In.invalidDate||qe;var Ln=Bn||"YYYY-MM-DDTHH:mm:ssZ",Mn=wn.z(this),Vn=this.$H,Yn=this.$m,Fn=this.$M,Xn=In.weekdays,sr=In.months,vr=function(Wn,Qn,cr,jn){return Wn&&(Wn[Qn]||Wn(Dn,Ln))||cr[Qn].slice(0,jn)},ar=function(Wn){return wn.s(Vn%12||12,Wn,"0")},qn=In.meridiem||function(Wn,Qn,cr){var jn=Wn<12?"AM":"PM";return cr?jn.toLowerCase():jn},Gn={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Fn+1,MM:wn.s(Fn+1,2,"0"),MMM:vr(In.monthsShort,Fn,sr,3),MMMM:vr(sr,Fn),D:this.$D,DD:wn.s(this.$D,2,"0"),d:String(this.$W),dd:vr(In.weekdaysMin,this.$W,Xn,2),ddd:vr(In.weekdaysShort,this.$W,Xn,3),dddd:Xn[this.$W],H:String(Vn),HH:wn.s(Vn,2,"0"),h:ar(1),hh:ar(2),a:qn(Vn,Yn,!0),A:qn(Vn,Yn,!1),m:String(Yn),mm:wn.s(Yn,2,"0"),s:String(this.$s),ss:wn.s(this.$s,2,"0"),SSS:wn.s(this.$ms,3,"0"),Z:Mn};return Ln.replace(Lt,function(Wn,Qn){return Qn||Gn[Wn]||Mn.replace(":","")})},Nn.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Nn.diff=function(Bn,Dn,In){var Ln,Mn=wn.p(Dn),Vn=$n(Bn),Yn=(Vn.utcOffset()-this.utcOffset())*ae,Fn=this-Vn,Xn=wn.m(this,Vn);return Xn=(Ln={},Ln[ze]=Xn/12,Ln[Ie]=Xn,Ln[Fe]=Xn/3,Ln[xe]=(Fn-Yn)/6048e5,Ln[$e]=(Fn-Yn)/864e5,Ln[Ce]=Fn/le,Ln[_e]=Fn/ae,Ln[pe]=Fn/oe,Ln)[Mn]||Fn,In?Xn:wn.a(Xn)},Nn.daysInMonth=function(){return this.endOf(Ie).$D},Nn.$locale=function(){return Sn[this.$L]},Nn.locale=function(Bn,Dn){if(!Bn)return this.$L;var In=this.clone(),Ln=En(Bn,Dn,!0);return Ln&&(In.$L=Ln),In},Nn.clone=function(){return wn.w(this.$d,this)},Nn.toDate=function(){return new Date(this.valueOf())},Nn.toJSON=function(){return this.isValid()?this.toISOString():null},Nn.toISOString=function(){return this.$d.toISOString()},Nn.toString=function(){return this.$d.toUTCString()},kn}(),xn=Tn.prototype;return $n.prototype=xn,[["$ms",ue],["$s",pe],["$m",_e],["$H",Ce],["$W",$e],["$M",Ie],["$y",ze],["$D",Ue]].forEach(function(kn){xn[kn[1]]=function(Nn){return this.$g(Nn,kn[0],kn[1])}}),$n.extend=function(kn,Nn){return kn.$i||(kn(Nn,Tn,$n),kn.$i=!0),$n},$n.locale=En,$n.isDayjs=Cn,$n.unix=function(kn){return $n(1e3*kn)},$n.en=Sn[bn],$n.Ls=Sn,$n.p={},$n})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var customParseFormat$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ae=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,le=/\d\d/,ue=/\d\d?/,pe=/\d*[^-_:/,()\s\d]+/,_e={},Ce=function(qe){return(qe=+qe)+(qe>68?1900:2e3)},$e=function(qe){return function(At){this[qe]=+At}},xe=[/[+-]\d\d:?(\d\d)?|Z/,function(qe){(this.zone||(this.zone={})).offset=function(At){if(!At||At==="Z")return 0;var Lt=At.match(/([+-]|\d\d)/g),hn=60*Lt[1]+(+Lt[2]||0);return hn===0?0:Lt[0]==="+"?-hn:hn}(qe)}],Ie=function(qe){var At=_e[qe];return At&&(At.indexOf?At:At.s.concat(At.f))},Fe=function(qe,At){var Lt,hn=_e.meridiem;if(hn){for(var vn=1;vn<=24;vn+=1)if(qe.indexOf(hn(vn,0,At))>-1){Lt=vn>12;break}}else Lt=qe===(At?"pm":"PM");return Lt},ze={A:[pe,function(qe){this.afternoon=Fe(qe,!1)}],a:[pe,function(qe){this.afternoon=Fe(qe,!0)}],S:[/\d/,function(qe){this.milliseconds=100*+qe}],SS:[le,function(qe){this.milliseconds=10*+qe}],SSS:[/\d{3}/,function(qe){this.milliseconds=+qe}],s:[ue,$e("seconds")],ss:[ue,$e("seconds")],m:[ue,$e("minutes")],mm:[ue,$e("minutes")],H:[ue,$e("hours")],h:[ue,$e("hours")],HH:[ue,$e("hours")],hh:[ue,$e("hours")],D:[ue,$e("day")],DD:[le,$e("day")],Do:[pe,function(qe){var At=_e.ordinal,Lt=qe.match(/\d+/);if(this.day=Lt[0],At)for(var hn=1;hn<=31;hn+=1)At(hn).replace(/\[|\]/g,"")===qe&&(this.day=hn)}],M:[ue,$e("month")],MM:[le,$e("month")],MMM:[pe,function(qe){var At=Ie("months"),Lt=(Ie("monthsShort")||At.map(function(hn){return hn.slice(0,3)})).indexOf(qe)+1;if(Lt<1)throw new Error;this.month=Lt%12||Lt}],MMMM:[pe,function(qe){var At=Ie("months").indexOf(qe)+1;if(At<1)throw new Error;this.month=At%12||At}],Y:[/[+-]?\d+/,$e("year")],YY:[le,function(qe){this.year=Ce(qe)}],YYYY:[/\d{4}/,$e("year")],Z:xe,ZZ:xe};function Ue(qe){var At,Lt;At=qe,Lt=_e&&_e.formats;for(var hn=(qe=At.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($n,wn,Tn){var xn=Tn&&Tn.toUpperCase();return wn||Lt[Tn]||oe[Tn]||Lt[xn].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(kn,Nn,Bn){return Nn||Bn.slice(1)})})).match(ae),vn=hn.length,_n=0;_n<vn;_n+=1){var bn=hn[_n],Sn=ze[bn],Cn=Sn&&Sn[0],En=Sn&&Sn[1];hn[_n]=En?{regex:Cn,parser:En}:bn.replace(/^\[|\]$/g,"")}return function($n){for(var wn={},Tn=0,xn=0;Tn<vn;Tn+=1){var kn=hn[Tn];if(typeof kn=="string")xn+=kn.length;else{var Nn=kn.regex,Bn=kn.parser,Dn=$n.slice(xn),In=Nn.exec(Dn)[0];Bn.call(wn,In),$n=$n.replace(In,"")}}return function(Ln){var Mn=Ln.afternoon;if(Mn!==void 0){var Vn=Ln.hours;Mn?Vn<12&&(Ln.hours+=12):Vn===12&&(Ln.hours=0),delete Ln.afternoon}}(wn),wn}}return function(qe,At,Lt){Lt.p.customParseFormat=!0,qe&&qe.parseTwoDigitYear&&(Ce=qe.parseTwoDigitYear);var hn=At.prototype,vn=hn.parse;hn.parse=function(_n){var bn=_n.date,Sn=_n.utc,Cn=_n.args;this.$u=Sn;var En=Cn[1];if(typeof En=="string"){var $n=Cn[2]===!0,wn=Cn[3]===!0,Tn=$n||wn,xn=Cn[2];wn&&(xn=Cn[2]),_e=this.$locale(),!$n&&xn&&(_e=Lt.Ls[xn]),this.$d=function(Dn,In,Ln){try{if(["x","X"].indexOf(In)>-1)return new Date((In==="X"?1e3:1)*Dn);var Mn=Ue(In)(Dn),Vn=Mn.year,Yn=Mn.month,Fn=Mn.day,Xn=Mn.hours,sr=Mn.minutes,vr=Mn.seconds,ar=Mn.milliseconds,qn=Mn.zone,Gn=new Date,Wn=Fn||(Vn||Yn?1:Gn.getDate()),Qn=Vn||Gn.getFullYear(),cr=0;Vn&&!Yn||(cr=Yn>0?Yn-1:Gn.getMonth());var jn=Xn||0,Zn=sr||0,nr=vr||0,hr=ar||0;return qn?new Date(Date.UTC(Qn,cr,Wn,jn,Zn,nr,hr+60*qn.offset*1e3)):Ln?new Date(Date.UTC(Qn,cr,Wn,jn,Zn,nr,hr)):new Date(Qn,cr,Wn,jn,Zn,nr,hr)}catch{return new Date("")}}(bn,En,Sn),this.init(),xn&&xn!==!0&&(this.$L=this.locale(xn).$L),Tn&&bn!=this.format(En)&&(this.$d=new Date("")),_e={}}else if(En instanceof Array)for(var kn=En.length,Nn=1;Nn<=kn;Nn+=1){Cn[1]=En[Nn-1];var Bn=Lt.apply(this,Cn);if(Bn.isValid()){this.$d=Bn.$d,this.$L=Bn.$L,this.init();break}Nn===kn&&(this.$d=new Date(""))}else vn.call(this,_n)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports),timeUnits$2=["hours","minutes","seconds"],DEFAULT_FORMATS_TIME="HH:mm:ss",DEFAULT_FORMATS_DATE="YYYY-MM-DD",DEFAULT_FORMATS_DATEPICKER={date:DEFAULT_FORMATS_DATE,dates:DEFAULT_FORMATS_DATE,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},buildTimeList=($,z)=>[$>0?$-1:void 0,$,$<z?$+1:void 0],rangeArr=$=>Array.from(Array.from({length:$}).keys()),extractDateFormat=$=>$.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=$=>$.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function($,z){const oe=isDate$3($),ae=isDate$3(z);return oe&&ae?$.getTime()===z.getTime():!oe&&!ae?$===z:!1},valueEquals=function($,z){const oe=isArray$c($),ae=isArray$c(z);return oe&&ae?$.length!==z.length?!1:$.every((le,ue)=>dateEquals(le,z[ue])):!oe&&!ae?dateEquals($,z):!1},parseDate$1=function($,z,oe){const ae=isEmpty(z)||z==="x"?dayjs($).locale(oe):dayjs($,z).locale(oe);return ae.isValid()?ae:void 0},formatter=function($,z,oe){return isEmpty(z)?$:z==="x"?+$:dayjs($).locale(oe).format(z)},makeList=($,z)=>{var oe;const ae=[],le=z==null?void 0:z();for(let ue=0;ue<$;ue++)ae.push((oe=le==null?void 0:le.includes(ue))!=null?oe:!1);return ae},disabledTimeListsProps=buildProps({disabledHours:{type:definePropType(Function)},disabledMinutes:{type:definePropType(Function)},disabledSeconds:{type:definePropType(Function)}}),timePanelSharedProps=buildProps({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),timePickerDefaultProps=buildProps({id:{type:definePropType([Array,String])},name:{type:definePropType([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:definePropType([String,Object]),default:circle_close_default},editable:{type:Boolean,default:!0},prefixIcon:{type:definePropType([String,Object]),default:""},size:useSizeProp,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:definePropType(Object),default:()=>({})},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:{type:Boolean,default:!1},...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),_hoisted_1$_=["id","name","placeholder","value","disabled","readonly"],_hoisted_2$F=["id","name","placeholder","value","disabled","readonly"],__default__$1g=defineComponent({name:"Picker"}),_sfc_main$1X=defineComponent({...__default__$1g,props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup($,{expose:z,emit:oe}){const ae=$,{lang:le}=useLocale(),ue=useNamespace("date"),pe=useNamespace("input"),_e=useNamespace("range"),{form:Ce,formItem:$e}=useFormItem(),xe=inject("ElPopperOptions",{}),Ie=ref(),Fe=ref(),ze=ref(!1),Ue=ref(!1),qe=ref(null);let At=!1,Lt=!1;watch(ze,Jn=>{Jn?nextTick(()=>{Jn&&(qe.value=ae.modelValue)}):(or.value=null,nextTick(()=>{hn(ae.modelValue)}))});const hn=(Jn,rr)=>{(rr||!valueEquals(Jn,qe.value))&&(oe("change",Jn),ae.validateEvent&&($e==null||$e.validate("change").catch($r=>void 0)))},vn=Jn=>{if(!valueEquals(ae.modelValue,Jn)){let rr;isArray$c(Jn)?rr=Jn.map($r=>formatter($r,ae.valueFormat,le.value)):Jn&&(rr=formatter(Jn,ae.valueFormat,le.value)),oe("update:modelValue",Jn&&rr,le.value)}},_n=Jn=>{oe("keydown",Jn)},bn=computed(()=>{if(Fe.value){const Jn=Zn.value?Fe.value:Fe.value.$el;return Array.from(Jn.querySelectorAll("input"))}return[]}),Sn=(Jn,rr,$r)=>{const Ar=bn.value;Ar.length&&(!$r||$r==="min"?(Ar[0].setSelectionRange(Jn,rr),Ar[0].focus()):$r==="max"&&(Ar[1].setSelectionRange(Jn,rr),Ar[1].focus()))},Cn=()=>{Bn(!0,!0),nextTick(()=>{Lt=!1})},En=(Jn="",rr=!1)=>{rr||(Lt=!0),ze.value=rr;let $r;isArray$c(Jn)?$r=Jn.map(Ar=>Ar.toDate()):$r=Jn&&Jn.toDate(),or.value=null,vn($r)},$n=()=>{Ue.value=!0},wn=()=>{oe("visible-change",!0)},Tn=Jn=>{(Jn==null?void 0:Jn.key)===EVENT_CODE.esc&&Bn(!0,!0)},xn=()=>{Ue.value=!1,ze.value=!1,Lt=!1,oe("visible-change",!1)},kn=()=>{ze.value=!0},Nn=()=>{ze.value=!1},Bn=(Jn=!0,rr=!1)=>{Lt=rr;const[$r,Ar]=unref(bn);let Fr=$r;!Jn&&Zn.value&&(Fr=Ar),Fr&&Fr.focus()},Dn=Jn=>{ae.readonly||Mn.value||ze.value||Lt||(ze.value=!0,oe("focus",Jn))};let In;const Ln=Jn=>{const rr=async()=>{setTimeout(()=>{var $r;In===rr&&(!(($r=Ie.value)!=null&&$r.isFocusInsideContent()&&!At)&&bn.value.filter(Ar=>Ar.contains(document.activeElement)).length===0&&(wr(),ze.value=!1,oe("blur",Jn),ae.validateEvent&&($e==null||$e.validate("blur").catch(Ar=>void 0))),At=!1)},0)};In=rr,rr()},Mn=computed(()=>ae.disabled||(Ce==null?void 0:Ce.disabled)),Vn=computed(()=>{let Jn;if(Gn.value?Mr.value.getDefaultValue&&(Jn=Mr.value.getDefaultValue()):isArray$c(ae.modelValue)?Jn=ae.modelValue.map(rr=>parseDate$1(rr,ae.valueFormat,le.value)):Jn=parseDate$1(ae.modelValue,ae.valueFormat,le.value),Mr.value.getRangeAvailableTime){const rr=Mr.value.getRangeAvailableTime(Jn);isEqual$1(rr,Jn)||(Jn=rr,vn(isArray$c(Jn)?Jn.map($r=>$r.toDate()):Jn.toDate()))}return isArray$c(Jn)&&Jn.some(rr=>!rr)&&(Jn=[]),Jn}),Yn=computed(()=>{if(!Mr.value.panelReady)return"";const Jn=Tr(Vn.value);return isArray$c(or.value)?[or.value[0]||Jn&&Jn[0]||"",or.value[1]||Jn&&Jn[1]||""]:or.value!==null?or.value:!Xn.value&&Gn.value||!ze.value&&Gn.value?"":Jn?sr.value?Jn.join(", "):Jn:""}),Fn=computed(()=>ae.type.includes("time")),Xn=computed(()=>ae.type.startsWith("time")),sr=computed(()=>ae.type==="dates"),vr=computed(()=>ae.prefixIcon||(Fn.value?clock_default:calendar_default)),ar=ref(!1),qn=Jn=>{ae.readonly||Mn.value||ar.value&&(Jn.stopPropagation(),Cn(),vn(null),hn(null,!0),ar.value=!1,ze.value=!1,Mr.value.handleClear&&Mr.value.handleClear())},Gn=computed(()=>{const{modelValue:Jn}=ae;return!Jn||isArray$c(Jn)&&!Jn.filter(Boolean).length}),Wn=async Jn=>{var rr;ae.readonly||Mn.value||(((rr=Jn.target)==null?void 0:rr.tagName)!=="INPUT"||bn.value.includes(document.activeElement))&&(ze.value=!0)},Qn=()=>{ae.readonly||Mn.value||!Gn.value&&ae.clearable&&(ar.value=!0)},cr=()=>{ar.value=!1},jn=Jn=>{var rr;ae.readonly||Mn.value||(((rr=Jn.touches[0].target)==null?void 0:rr.tagName)!=="INPUT"||bn.value.includes(document.activeElement))&&(ze.value=!0)},Zn=computed(()=>ae.type.includes("range")),nr=useFormSize(),hr=computed(()=>{var Jn,rr;return(rr=(Jn=unref(Ie))==null?void 0:Jn.popperRef)==null?void 0:rr.contentRef}),gr=computed(()=>{var Jn;return unref(Zn)?unref(Fe):(Jn=unref(Fe))==null?void 0:Jn.$el});onClickOutside(gr,Jn=>{const rr=unref(hr),$r=unref(gr);rr&&(Jn.target===rr||Jn.composedPath().includes(rr))||Jn.target===$r||Jn.composedPath().includes($r)||(ze.value=!1)});const or=ref(null),wr=()=>{if(or.value){const Jn=mr(Yn.value);Jn&&dr(Jn)&&(vn(isArray$c(Jn)?Jn.map(rr=>rr.toDate()):Jn.toDate()),or.value=null)}or.value===""&&(vn(null),hn(null),or.value=null)},mr=Jn=>Jn?Mr.value.parseUserInput(Jn):null,Tr=Jn=>Jn?Mr.value.formatToString(Jn):null,dr=Jn=>Mr.value.isValidValue(Jn),ir=async Jn=>{if(ae.readonly||Mn.value)return;const{code:rr}=Jn;if(_n(Jn),rr===EVENT_CODE.esc){ze.value===!0&&(ze.value=!1,Jn.preventDefault(),Jn.stopPropagation());return}if(rr===EVENT_CODE.down&&(Mr.value.handleFocusPicker&&(Jn.preventDefault(),Jn.stopPropagation()),ze.value===!1&&(ze.value=!0,await nextTick()),Mr.value.handleFocusPicker)){Mr.value.handleFocusPicker();return}if(rr===EVENT_CODE.tab){At=!0;return}if(rr===EVENT_CODE.enter||rr===EVENT_CODE.numpadEnter){(or.value===null||or.value===""||dr(mr(Yn.value)))&&(wr(),ze.value=!1),Jn.stopPropagation();return}if(or.value){Jn.stopPropagation();return}Mr.value.handleKeydownInput&&Mr.value.handleKeydownInput(Jn)},ur=Jn=>{or.value=Jn,ze.value||(ze.value=!0)},fr=Jn=>{const rr=Jn.target;or.value?or.value=[rr.value,or.value[1]]:or.value=[rr.value,null]},kr=Jn=>{const rr=Jn.target;or.value?or.value=[or.value[0],rr.value]:or.value=[null,rr.value]},Dr=()=>{var Jn;const rr=or.value,$r=mr(rr&&rr[0]),Ar=unref(Vn);if($r&&$r.isValid()){or.value=[Tr($r),((Jn=Yn.value)==null?void 0:Jn[1])||null];const Fr=[$r,Ar&&(Ar[1]||null)];dr(Fr)&&(vn(Fr),or.value=null)}},Lr=()=>{var Jn;const rr=unref(or),$r=mr(rr&&rr[1]),Ar=unref(Vn);if($r&&$r.isValid()){or.value=[((Jn=unref(Yn))==null?void 0:Jn[0])||null,Tr($r)];const Fr=[Ar&&Ar[0],$r];dr(Fr)&&(vn(Fr),or.value=null)}},Mr=ref({}),br=Jn=>{Mr.value[Jn[0]]=Jn[1],Mr.value.panelReady=!0},Cr=Jn=>{oe("calendar-change",Jn)},lr=(Jn,rr,$r)=>{oe("panel-change",Jn,rr,$r)};return provide("EP_PICKER_BASE",{props:ae}),z({focus:Bn,handleFocusInput:Dn,handleBlurInput:Ln,handleOpen:kn,handleClose:Nn,onPick:En}),(Jn,rr)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:Ie,visible:ze.value,effect:"light",pure:"",trigger:"click"},Jn.$attrs,{role:"dialog",teleported:"",transition:`${unref(ue).namespace.value}-zoom-in-top`,"popper-class":[`${unref(ue).namespace.value}-picker__popper`,Jn.popperClass],"popper-options":unref(xe),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:$n,onShow:wn,onHide:xn}),{default:withCtx(()=>[unref(Zn)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:Fe,class:normalizeClass([unref(ue).b("editor"),unref(ue).bm("editor",Jn.type),unref(pe).e("wrapper"),unref(ue).is("disabled",unref(Mn)),unref(ue).is("active",ze.value),unref(_e).b("editor"),unref(nr)?unref(_e).bm("editor",unref(nr)):"",Jn.$attrs.class]),style:normalizeStyle$1(Jn.$attrs.style),onClick:Dn,onMouseenter:Qn,onMouseleave:cr,onTouchstart:jn,onKeydown:ir},[unref(vr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(pe).e("icon"),unref(_e).e("icon")]),onMousedown:withModifiers(Wn,["prevent"]),onTouchstart:jn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(vr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:Jn.id&&Jn.id[0],autocomplete:"off",name:Jn.name&&Jn.name[0],placeholder:Jn.startPlaceholder,value:unref(Yn)&&unref(Yn)[0],disabled:unref(Mn),readonly:!Jn.editable||Jn.readonly,class:normalizeClass(unref(_e).b("input")),onMousedown:Wn,onInput:fr,onChange:Dr,onFocus:Dn,onBlur:Ln},null,42,_hoisted_1$_),renderSlot(Jn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(_e).b("separator"))},toDisplayString$1(Jn.rangeSeparator),3)]),createBaseVNode("input",{id:Jn.id&&Jn.id[1],autocomplete:"off",name:Jn.name&&Jn.name[1],placeholder:Jn.endPlaceholder,value:unref(Yn)&&unref(Yn)[1],disabled:unref(Mn),readonly:!Jn.editable||Jn.readonly,class:normalizeClass(unref(_e).b("input")),onMousedown:Wn,onFocus:Dn,onBlur:Ln,onInput:kr,onChange:Lr},null,42,_hoisted_2$F),Jn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(pe).e("icon"),unref(_e).e("close-icon"),{[unref(_e).e("close-icon--hidden")]:!ar.value}]),onClick:qn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jn.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:Jn.id,ref_key:"inputRef",ref:Fe,"container-role":"combobox","model-value":unref(Yn),name:Jn.name,size:unref(nr),disabled:unref(Mn),placeholder:Jn.placeholder,class:normalizeClass([unref(ue).b("editor"),unref(ue).bm("editor",Jn.type),Jn.$attrs.class]),style:normalizeStyle$1(Jn.$attrs.style),readonly:!Jn.editable||Jn.readonly||unref(sr)||Jn.type==="week",label:Jn.label,tabindex:Jn.tabindex,"validate-event":!1,onInput:ur,onFocus:Dn,onBlur:Ln,onKeydown:ir,onChange:wr,onMousedown:Wn,onMouseenter:Qn,onMouseleave:cr,onTouchstart:jn,onClick:rr[0]||(rr[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(vr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(pe).e("icon")),onMousedown:withModifiers(Wn,["prevent"]),onTouchstart:jn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(vr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[ar.value&&Jn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(pe).e("icon")} clear-icon`),onClick:withModifiers(qn,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jn.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:withCtx(()=>[renderSlot(Jn.$slots,"default",{visible:ze.value,actualVisible:Ue.value,parsedValue:unref(Vn),format:Jn.format,unlinkPanels:Jn.unlinkPanels,type:Jn.type,defaultValue:Jn.defaultValue,onPick:En,onSelectRange:Sn,onSetPickerOption:br,onCalendarChange:Cr,onPanelChange:lr,onKeydown:Tn,onMousedown:rr[1]||(rr[1]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var CommonPicker=_export_sfc$1(_sfc_main$1X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const panelTimePickerProps=buildProps({...timePanelSharedProps,datetimeRole:String,parsedValue:{type:definePropType(Object)}}),useTimePanel=({getAvailableHours:$,getAvailableMinutes:z,getAvailableSeconds:oe})=>{const ae=(pe,_e,Ce,$e)=>{const xe={hour:$,minute:z,second:oe};let Ie=pe;return["hour","minute","second"].forEach(Fe=>{if(xe[Fe]){let ze;const Ue=xe[Fe];switch(Fe){case"minute":{ze=Ue(Ie.hour(),_e,$e);break}case"second":{ze=Ue(Ie.hour(),Ie.minute(),_e,$e);break}default:{ze=Ue(_e,$e);break}}if(ze!=null&&ze.length&&!ze.includes(Ie[Fe]())){const qe=Ce?0:ze.length-1;Ie=Ie[Fe](ze[qe])}}}),Ie},le={};return{timePickerOptions:le,getAvailableTime:ae,onSetOption:([pe,_e])=>{le[pe]=_e}}},makeAvailableArr=$=>{const z=(ae,le)=>ae||le,oe=ae=>ae!==!0;return $.map(z).filter(oe)},getTimeLists=($,z,oe)=>({getHoursList:(pe,_e)=>makeList(24,$&&(()=>$==null?void 0:$(pe,_e))),getMinutesList:(pe,_e,Ce)=>makeList(60,z&&(()=>z==null?void 0:z(pe,_e,Ce))),getSecondsList:(pe,_e,Ce,$e)=>makeList(60,oe&&(()=>oe==null?void 0:oe(pe,_e,Ce,$e)))}),buildAvailableTimeSlotGetter=($,z,oe)=>{const{getHoursList:ae,getMinutesList:le,getSecondsList:ue}=getTimeLists($,z,oe);return{getAvailableHours:($e,xe)=>makeAvailableArr(ae($e,xe)),getAvailableMinutes:($e,xe,Ie)=>makeAvailableArr(le($e,xe,Ie)),getAvailableSeconds:($e,xe,Ie,Fe)=>makeAvailableArr(ue($e,xe,Ie,Fe))}},useOldValue=$=>{const z=ref($.parsedValue);return watch(()=>$.visible,oe=>{oe||(z.value=$.parsedValue)}),z},nodeList=new Map;let startClick;isClient$2&&(document.addEventListener("mousedown",$=>startClick=$),document.addEventListener("mouseup",$=>{for(const z of nodeList.values())for(const{documentHandler:oe}of z)oe($,startClick)}));function createDocumentHandler($,z){let oe=[];return Array.isArray(z.arg)?oe=z.arg:isElement$2(z.arg)&&oe.push(z.arg),function(ae,le){const ue=z.instance.popperRef,pe=ae.target,_e=le==null?void 0:le.target,Ce=!z||!z.instance,$e=!pe||!_e,xe=$.contains(pe)||$.contains(_e),Ie=$===pe,Fe=oe.length&&oe.some(Ue=>Ue==null?void 0:Ue.contains(pe))||oe.length&&oe.includes(_e),ze=ue&&(ue.contains(pe)||ue.contains(_e));Ce||$e||xe||Ie||Fe||ze||z.value(ae,le)}}const ClickOutside={beforeMount($,z){nodeList.has($)||nodeList.set($,[]),nodeList.get($).push({documentHandler:createDocumentHandler($,z),bindingFn:z.value})},updated($,z){nodeList.has($)||nodeList.set($,[]);const oe=nodeList.get($),ae=oe.findIndex(ue=>ue.bindingFn===z.oldValue),le={documentHandler:createDocumentHandler($,z),bindingFn:z.value};ae>=0?oe.splice(ae,1,le):oe.push(le)},unmounted($){nodeList.delete($)}},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount($,z){const oe=z.value,{interval:ae=REPEAT_INTERVAL,delay:le=REPEAT_DELAY}=isFunction$5(oe)?{}:oe;let ue,pe;const _e=()=>isFunction$5(oe)?oe():oe.handler(),Ce=()=>{pe&&(clearTimeout(pe),pe=void 0),ue&&(clearInterval(ue),ue=void 0)};$.addEventListener("mousedown",$e=>{$e.button===0&&(Ce(),_e(),document.addEventListener("mouseup",()=>Ce(),{once:!0}),pe=setTimeout(()=>{ue=setInterval(()=>{_e()},ae)},le))})}},FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=$=>{if(FOCUS_STACK.length===0)return;const z=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(z.length>0&&$.code===EVENT_CODE.tab){if(z.length===1){$.preventDefault(),document.activeElement!==z[0]&&z[0].focus();return}const oe=$.shiftKey,ae=$.target===z[0],le=$.target===z[z.length-1];ae&&oe&&($.preventDefault(),z[z.length-1].focus()),le&&!oe&&($.preventDefault(),z[0].focus())}},TrapFocus={beforeMount($){$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($),FOCUS_STACK.push($),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated($){nextTick(()=>{$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}};var v=!1,o,f$1,s,u$1,d$1,N$1,l,p$1,m$3,w,D$1,x,E,M$1,F$1;function a$1(){if(!v){v=!0;var $=navigator.userAgent,z=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec($),oe=/(Mac OS X)|(Windows)|(Linux)/.exec($);if(x=/\b(iPhone|iP[ao]d)/.exec($),E=/\b(iP[ao]d)/.exec($),w=/Android/i.exec($),M$1=/FBAN\/\w+;/i.exec($),F$1=/Mobile/i.exec($),D$1=!!/Win64/.exec($),z){o=z[1]?parseFloat(z[1]):z[5]?parseFloat(z[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var ae=/(?:Trident\/(\d+.\d+))/.exec($);N$1=ae?parseFloat(ae[1])+4:o,f$1=z[2]?parseFloat(z[2]):NaN,s=z[3]?parseFloat(z[3]):NaN,u$1=z[4]?parseFloat(z[4]):NaN,u$1?(z=/(?:Chrome\/(\d+\.\d+))/.exec($),d$1=z&&z[1]?parseFloat(z[1]):NaN):d$1=NaN}else o=f$1=s=d$1=u$1=NaN;if(oe){if(oe[1]){var le=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec($);l=le?parseFloat(le[1].replace("_",".")):!0}else l=!1;p$1=!!oe[2],m$3=!!oe[3]}else l=p$1=m$3=!1}}var _$2={ie:function(){return a$1()||o},ieCompatibilityMode:function(){return a$1()||N$1>o},ie64:function(){return _$2.ie()&&D$1},firefox:function(){return a$1()||f$1},opera:function(){return a$1()||s},webkit:function(){return a$1()||u$1},safari:function(){return _$2.webkit()},chrome:function(){return a$1()||d$1},windows:function(){return a$1()||p$1},osx:function(){return a$1()||l},linux:function(){return a$1()||m$3},iphone:function(){return a$1()||x},mobile:function(){return a$1()||x||E||w||F$1},nativeApp:function(){return a$1()||M$1},android:function(){return a$1()||w},ipad:function(){return a$1()||E}},A=_$2,c$2=!!(typeof window<"u"&&window.document&&window.document.createElement),U$1={canUseDOM:c$2,canUseWorkers:typeof Worker<"u",canUseEventListeners:c$2&&!!(window.addEventListener||window.attachEvent),canUseViewport:c$2&&!!window.screen,isInWorker:!c$2},h$1=U$1,X$1;h$1.canUseDOM&&(X$1=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S($,z){if(!h$1.canUseDOM||z&&!("addEventListener"in document))return!1;var oe="on"+$,ae=oe in document;if(!ae){var le=document.createElement("div");le.setAttribute(oe,"return;"),ae=typeof le[oe]=="function"}return!ae&&X$1&&$==="wheel"&&(ae=document.implementation.hasFeature("Events.wheel","3.0")),ae}var b$1=S,O$1=10,I$1=40,P$2=800;function T($){var z=0,oe=0,ae=0,le=0;return"detail"in $&&(oe=$.detail),"wheelDelta"in $&&(oe=-$.wheelDelta/120),"wheelDeltaY"in $&&(oe=-$.wheelDeltaY/120),"wheelDeltaX"in $&&(z=-$.wheelDeltaX/120),"axis"in $&&$.axis===$.HORIZONTAL_AXIS&&(z=oe,oe=0),ae=z*O$1,le=oe*O$1,"deltaY"in $&&(le=$.deltaY),"deltaX"in $&&(ae=$.deltaX),(ae||le)&&$.deltaMode&&($.deltaMode==1?(ae*=I$1,le*=I$1):(ae*=P$2,le*=P$2)),ae&&!z&&(z=ae<1?-1:1),le&&!oe&&(oe=le<1?-1:1),{spinX:z,spinY:oe,pixelX:ae,pixelY:le}}T.getEventType=function(){return A.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y=T;/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/const mousewheel=function($,z){if($&&$.addEventListener){const oe=function(ae){const le=Y(ae);z&&Reflect.apply(z,this,[ae,le])};$.addEventListener("wheel",oe,{passive:!0})}},Mousewheel={beforeMount($,z){mousewheel($,z.value)}},basicTimeSpinnerProps=buildProps({role:{type:String,required:!0},spinnerDate:{type:definePropType(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:definePropType(String),default:""},...disabledTimeListsProps}),_hoisted_1$Z=["onClick"],_hoisted_2$E=["onMouseenter"],_sfc_main$1W=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:["change","select-range","set-option"],setup($,{emit:z}){const oe=$,ae=useNamespace("time"),{getHoursList:le,getMinutesList:ue,getSecondsList:pe}=getTimeLists(oe.disabledHours,oe.disabledMinutes,oe.disabledSeconds);let _e=!1;const Ce=ref(),$e=ref(),xe=ref(),Ie=ref(),Fe={hours:$e,minutes:xe,seconds:Ie},ze=computed(()=>oe.showSeconds?timeUnits$2:timeUnits$2.slice(0,2)),Ue=computed(()=>{const{spinnerDate:Mn}=oe,Vn=Mn.hour(),Yn=Mn.minute(),Fn=Mn.second();return{hours:Vn,minutes:Yn,seconds:Fn}}),qe=computed(()=>{const{hours:Mn,minutes:Vn}=unref(Ue);return{hours:le(oe.role),minutes:ue(Mn,oe.role),seconds:pe(Mn,Vn,oe.role)}}),At=computed(()=>{const{hours:Mn,minutes:Vn,seconds:Yn}=unref(Ue);return{hours:buildTimeList(Mn,23),minutes:buildTimeList(Vn,59),seconds:buildTimeList(Yn,59)}}),Lt=debounce(Mn=>{_e=!1,_n(Mn)},200),hn=Mn=>{if(!!!oe.amPmMode)return"";const Yn=oe.amPmMode==="A";let Fn=Mn<12?" am":" pm";return Yn&&(Fn=Fn.toUpperCase()),Fn},vn=Mn=>{let Vn;switch(Mn){case"hours":Vn=[0,2];break;case"minutes":Vn=[3,5];break;case"seconds":Vn=[6,8];break}const[Yn,Fn]=Vn;z("select-range",Yn,Fn),Ce.value=Mn},_n=Mn=>{Cn(Mn,unref(Ue)[Mn])},bn=()=>{_n("hours"),_n("minutes"),_n("seconds")},Sn=Mn=>Mn.querySelector(`.${ae.namespace.value}-scrollbar__wrap`),Cn=(Mn,Vn)=>{if(oe.arrowControl)return;const Yn=unref(Fe[Mn]);Yn&&Yn.$el&&(Sn(Yn.$el).scrollTop=Math.max(0,Vn*En(Mn)))},En=Mn=>{const Vn=unref(Fe[Mn]);return(Vn==null?void 0:Vn.$el.querySelector("li").offsetHeight)||0},$n=()=>{Tn(1)},wn=()=>{Tn(-1)},Tn=Mn=>{Ce.value||vn("hours");const Vn=Ce.value,Yn=unref(Ue)[Vn],Fn=Ce.value==="hours"?24:60,Xn=xn(Vn,Yn,Mn,Fn);kn(Vn,Xn),Cn(Vn,Xn),nextTick(()=>vn(Vn))},xn=(Mn,Vn,Yn,Fn)=>{let Xn=(Vn+Yn+Fn)%Fn;const sr=unref(qe)[Mn];for(;sr[Xn]&&Xn!==Vn;)Xn=(Xn+Yn+Fn)%Fn;return Xn},kn=(Mn,Vn)=>{if(unref(qe)[Mn][Vn])return;const{hours:Xn,minutes:sr,seconds:vr}=unref(Ue);let ar;switch(Mn){case"hours":ar=oe.spinnerDate.hour(Vn).minute(sr).second(vr);break;case"minutes":ar=oe.spinnerDate.hour(Xn).minute(Vn).second(vr);break;case"seconds":ar=oe.spinnerDate.hour(Xn).minute(sr).second(Vn);break}z("change",ar)},Nn=(Mn,{value:Vn,disabled:Yn})=>{Yn||(kn(Mn,Vn),vn(Mn),Cn(Mn,Vn))},Bn=Mn=>{_e=!0,Lt(Mn);const Vn=Math.min(Math.round((Sn(unref(Fe[Mn]).$el).scrollTop-(Dn(Mn)*.5-10)/En(Mn)+3)/En(Mn)),Mn==="hours"?23:59);kn(Mn,Vn)},Dn=Mn=>unref(Fe[Mn]).$el.offsetHeight,In=()=>{const Mn=Vn=>{const Yn=unref(Fe[Vn]);Yn&&Yn.$el&&(Sn(Yn.$el).onscroll=()=>{Bn(Vn)})};Mn("hours"),Mn("minutes"),Mn("seconds")};onMounted(()=>{nextTick(()=>{!oe.arrowControl&&In(),bn(),oe.role==="start"&&vn("hours")})});const Ln=(Mn,Vn)=>{Fe[Vn].value=Mn};return z("set-option",[`${oe.role}_scrollDown`,Tn]),z("set-option",[`${oe.role}_emitSelectRange`,vn]),watch(()=>oe.spinnerDate,()=>{_e||bn()}),(Mn,Vn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b("spinner"),{"has-seconds":Mn.showSeconds}])},[Mn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(ze),Yn=>(openBlock(),createBlock(unref(ElScrollbar),{key:Yn,ref_for:!0,ref:Fn=>Ln(Fn,Yn),class:normalizeClass(unref(ae).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(ae).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Fn=>vn(Yn),onMousemove:Fn=>_n(Yn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qe)[Yn],(Fn,Xn)=>(openBlock(),createElementBlock("li",{key:Xn,class:normalizeClass([unref(ae).be("spinner","item"),unref(ae).is("active",Xn===unref(Ue)[Yn]),unref(ae).is("disabled",Fn)]),onClick:sr=>Nn(Yn,{value:Xn,disabled:Fn})},[Yn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Mn.amPmMode?Xn%12||12:Xn)).slice(-2))+toDisplayString$1(hn(Xn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Xn).slice(-2)),1)],64))],10,_hoisted_1$Z))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),Mn.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(ze),Yn=>(openBlock(),createElementBlock("div",{key:Yn,class:normalizeClass([unref(ae).be("spinner","wrapper"),unref(ae).is("arrow")]),onMouseenter:Fn=>vn(Yn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(ae).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),wn]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(ae).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),$n]]),createBaseVNode("ul",{class:normalizeClass(unref(ae).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(At)[Yn],(Fn,Xn)=>(openBlock(),createElementBlock("li",{key:Xn,class:normalizeClass([unref(ae).be("spinner","item"),unref(ae).is("active",Fn===unref(Ue)[Yn]),unref(ae).is("disabled",unref(qe)[Yn][Fn])])},[typeof Fn=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[Yn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Mn.amPmMode?Fn%12||12:Fn)).slice(-2))+toDisplayString$1(hn(Fn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Fn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$E))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc$1(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1V=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup($,{emit:z}){const oe=$,ae=inject("EP_PICKER_BASE"),{arrowControl:le,disabledHours:ue,disabledMinutes:pe,disabledSeconds:_e,defaultValue:Ce}=ae.props,{getAvailableHours:$e,getAvailableMinutes:xe,getAvailableSeconds:Ie}=buildAvailableTimeSlotGetter(ue,pe,_e),Fe=useNamespace("time"),{t:ze,lang:Ue}=useLocale(),qe=ref([0,2]),At=useOldValue(oe),Lt=computed(()=>isUndefined$1(oe.actualVisible)?`${Fe.namespace.value}-zoom-in-top`:""),hn=computed(()=>oe.format.includes("ss")),vn=computed(()=>oe.format.includes("A")?"A":oe.format.includes("a")?"a":""),_n=Ln=>{const Mn=dayjs(Ln).locale(Ue.value),Vn=Nn(Mn);return Mn.isSame(Vn)},bn=()=>{z("pick",At.value,!1)},Sn=(Ln=!1,Mn=!1)=>{Mn||z("pick",oe.parsedValue,Ln)},Cn=Ln=>{if(!oe.visible)return;const Mn=Nn(Ln).millisecond(0);z("pick",Mn,!0)},En=(Ln,Mn)=>{z("select-range",Ln,Mn),qe.value=[Ln,Mn]},$n=Ln=>{const Mn=[0,3].concat(hn.value?[6]:[]),Vn=["hours","minutes"].concat(hn.value?["seconds"]:[]),Fn=(Mn.indexOf(qe.value[0])+Ln+Mn.length)%Mn.length;Tn.start_emitSelectRange(Vn[Fn])},wn=Ln=>{const Mn=Ln.code,{left:Vn,right:Yn,up:Fn,down:Xn}=EVENT_CODE;if([Vn,Yn].includes(Mn)){$n(Mn===Vn?-1:1),Ln.preventDefault();return}if([Fn,Xn].includes(Mn)){const sr=Mn===Fn?-1:1;Tn.start_scrollDown(sr),Ln.preventDefault();return}},{timePickerOptions:Tn,onSetOption:xn,getAvailableTime:kn}=useTimePanel({getAvailableHours:$e,getAvailableMinutes:xe,getAvailableSeconds:Ie}),Nn=Ln=>kn(Ln,oe.datetimeRole||"",!0),Bn=Ln=>Ln?dayjs(Ln,oe.format).locale(Ue.value):null,Dn=Ln=>Ln?Ln.format(oe.format):null,In=()=>dayjs(Ce).locale(Ue.value);return z("set-picker-option",["isValidValue",_n]),z("set-picker-option",["formatToString",Dn]),z("set-picker-option",["parseUserInput",Bn]),z("set-picker-option",["handleKeydownInput",wn]),z("set-picker-option",["getRangeAvailableTime",Nn]),z("set-picker-option",["getDefaultValue",In]),(Ln,Mn)=>(openBlock(),createBlock(Transition,{name:unref(Lt)},{default:withCtx(()=>[Ln.actualVisible||Ln.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Fe).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(Fe).be("panel","content"),{"has-seconds":unref(hn)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Ln.datetimeRole||"start","arrow-control":unref(le),"show-seconds":unref(hn),"am-pm-mode":unref(vn),"spinner-date":Ln.parsedValue,"disabled-hours":unref(ue),"disabled-minutes":unref(pe),"disabled-seconds":unref(_e),onChange:Cn,onSetOption:unref(xn),onSelectRange:En},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),createBaseVNode("div",{class:normalizeClass(unref(Fe).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).be("panel","btn"),"cancel"]),onClick:bn},toDisplayString$1(unref(ze)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).be("panel","btn"),"confirm"]),onClick:Mn[0]||(Mn[0]=Vn=>Sn())},toDisplayString$1(unref(ze)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc$1(_sfc_main$1V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const panelTimeRangeProps=buildProps({...timePanelSharedProps,parsedValue:{type:definePropType(Array)}}),_hoisted_1$Y=["disabled"],_sfc_main$1U=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup($,{emit:z}){const oe=$,ae=(Wn,Qn)=>{const cr=[];for(let jn=Wn;jn<=Qn;jn++)cr.push(jn);return cr},{t:le,lang:ue}=useLocale(),pe=useNamespace("time"),_e=useNamespace("picker"),Ce=inject("EP_PICKER_BASE"),{arrowControl:$e,disabledHours:xe,disabledMinutes:Ie,disabledSeconds:Fe,defaultValue:ze}=Ce.props,Ue=computed(()=>oe.parsedValue[0]),qe=computed(()=>oe.parsedValue[1]),At=useOldValue(oe),Lt=()=>{z("pick",At.value,!1)},hn=computed(()=>oe.format.includes("ss")),vn=computed(()=>oe.format.includes("A")?"A":oe.format.includes("a")?"a":""),_n=(Wn=!1)=>{z("pick",[Ue.value,qe.value],Wn)},bn=Wn=>{En(Wn.millisecond(0),qe.value)},Sn=Wn=>{En(Ue.value,Wn.millisecond(0))},Cn=Wn=>{const Qn=Wn.map(jn=>dayjs(jn).locale(ue.value)),cr=Mn(Qn);return Qn[0].isSame(cr[0])&&Qn[1].isSame(cr[1])},En=(Wn,Qn)=>{z("pick",[Wn,Qn],!0)},$n=computed(()=>Ue.value>qe.value),wn=ref([0,2]),Tn=(Wn,Qn)=>{z("select-range",Wn,Qn,"min"),wn.value=[Wn,Qn]},xn=computed(()=>hn.value?11:8),kn=(Wn,Qn)=>{z("select-range",Wn,Qn,"max");const cr=unref(xn);wn.value=[Wn+cr,Qn+cr]},Nn=Wn=>{const Qn=hn.value?[0,3,6,11,14,17]:[0,3,8,11],cr=["hours","minutes"].concat(hn.value?["seconds"]:[]),Zn=(Qn.indexOf(wn.value[0])+Wn+Qn.length)%Qn.length,nr=Qn.length/2;Zn<nr?Xn.start_emitSelectRange(cr[Zn]):Xn.end_emitSelectRange(cr[Zn-nr])},Bn=Wn=>{const Qn=Wn.code,{left:cr,right:jn,up:Zn,down:nr}=EVENT_CODE;if([cr,jn].includes(Qn)){Nn(Qn===cr?-1:1),Wn.preventDefault();return}if([Zn,nr].includes(Qn)){const hr=Qn===Zn?-1:1,gr=wn.value[0]<xn.value?"start":"end";Xn[`${gr}_scrollDown`](hr),Wn.preventDefault();return}},Dn=(Wn,Qn)=>{const cr=xe?xe(Wn):[],jn=Wn==="start",nr=(Qn||(jn?qe.value:Ue.value)).hour(),hr=jn?ae(nr+1,23):ae(0,nr-1);return union$1(cr,hr)},In=(Wn,Qn,cr)=>{const jn=Ie?Ie(Wn,Qn):[],Zn=Qn==="start",nr=cr||(Zn?qe.value:Ue.value),hr=nr.hour();if(Wn!==hr)return jn;const gr=nr.minute(),or=Zn?ae(gr+1,59):ae(0,gr-1);return union$1(jn,or)},Ln=(Wn,Qn,cr,jn)=>{const Zn=Fe?Fe(Wn,Qn,cr):[],nr=cr==="start",hr=jn||(nr?qe.value:Ue.value),gr=hr.hour(),or=hr.minute();if(Wn!==gr||Qn!==or)return Zn;const wr=hr.second(),mr=nr?ae(wr+1,59):ae(0,wr-1);return union$1(Zn,mr)},Mn=([Wn,Qn])=>[sr(Wn,"start",!0,Qn),sr(Qn,"end",!1,Wn)],{getAvailableHours:Vn,getAvailableMinutes:Yn,getAvailableSeconds:Fn}=buildAvailableTimeSlotGetter(Dn,In,Ln),{timePickerOptions:Xn,getAvailableTime:sr,onSetOption:vr}=useTimePanel({getAvailableHours:Vn,getAvailableMinutes:Yn,getAvailableSeconds:Fn}),ar=Wn=>Wn?isArray$c(Wn)?Wn.map(Qn=>dayjs(Qn,oe.format).locale(ue.value)):dayjs(Wn,oe.format).locale(ue.value):null,qn=Wn=>Wn?isArray$c(Wn)?Wn.map(Qn=>Qn.format(oe.format)):Wn.format(oe.format):null,Gn=()=>{if(isArray$c(ze))return ze.map(Qn=>dayjs(Qn).locale(ue.value));const Wn=dayjs(ze).locale(ue.value);return[Wn,Wn.add(60,"m")]};return z("set-picker-option",["formatToString",qn]),z("set-picker-option",["parseUserInput",ar]),z("set-picker-option",["isValidValue",Cn]),z("set-picker-option",["handleKeydownInput",Bn]),z("set-picker-option",["getDefaultValue",Gn]),z("set-picker-option",["getRangeAvailableTime",Mn]),(Wn,Qn)=>Wn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(pe).b("range-picker"),unref(_e).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","header"))},toDisplayString$1(unref(le)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass([unref(pe).be("range-picker","body"),unref(pe).be("panel","content"),unref(pe).is("arrow",unref($e)),{"has-seconds":unref(hn)}])},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(hn),"am-pm-mode":unref(vn),"arrow-control":unref($e),"spinner-date":unref(Ue),"disabled-hours":Dn,"disabled-minutes":In,"disabled-seconds":Ln,onChange:bn,onSetOption:unref(vr),onSelectRange:Tn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(pe).be("range-picker","header"))},toDisplayString$1(unref(le)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass([unref(pe).be("range-picker","body"),unref(pe).be("panel","content"),unref(pe).is("arrow",unref($e)),{"has-seconds":unref(hn)}])},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(hn),"am-pm-mode":unref(vn),"arrow-control":unref($e),"spinner-date":unref(qe),"disabled-hours":Dn,"disabled-minutes":In,"disabled-seconds":Ln,onChange:Sn,onSetOption:unref(vr),onSelectRange:kn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(pe).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(pe).be("panel","btn"),"cancel"]),onClick:Qn[0]||(Qn[0]=cr=>Lt())},toDisplayString$1(unref(le)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(pe).be("panel","btn"),"confirm"]),disabled:unref($n),onClick:Qn[1]||(Qn[1]=cr=>_n())},toDisplayString$1(unref(le)("el.datepicker.confirm")),11,_hoisted_1$Y)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc$1(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);dayjs.extend(customParseFormat);var TimePicker=defineComponent({name:"ElTimePicker",install:null,props:{...timePickerDefaultProps,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup($,z){const oe=ref(),[ae,le]=$.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],ue=pe=>z.emit("update:modelValue",pe);return provide("ElPopperOptions",$.popperOptions),z.expose({focus:pe=>{var _e;(_e=oe.value)==null||_e.handleFocusInput(pe)},blur:pe=>{var _e;(_e=oe.value)==null||_e.handleBlurInput(pe)},handleOpen:()=>{var pe;(pe=oe.value)==null||pe.handleOpen()},handleClose:()=>{var pe;(pe=oe.value)==null||pe.handleClose()}}),()=>{var pe;const _e=(pe=$.format)!=null?pe:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps($,{ref:oe,type:ae,format:_e,"onUpdate:modelValue":ue}),{default:Ce=>createVNode(le,Ce,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=$=>{$.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=($,z)=>{const oe=$.subtract(1,"month").endOf("month").date();return rangeArr(z).map((ae,le)=>oe-(z-le-1))},getMonthDays=$=>{const z=$.daysInMonth();return rangeArr(z).map((oe,ae)=>ae+1)},toNestedArr=$=>rangeArr($.length/7).map(z=>{const oe=z*7;return $.slice(oe,oe+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:$=>isObject$8($)};var localeData$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae,le){var ue=ae.prototype,pe=function(Ie){return Ie&&(Ie.indexOf?Ie:Ie.s)},_e=function(Ie,Fe,ze,Ue,qe){var At=Ie.name?Ie:Ie.$locale(),Lt=pe(At[Fe]),hn=pe(At[ze]),vn=Lt||hn.map(function(bn){return bn.slice(0,Ue)});if(!qe)return vn;var _n=At.weekStart;return vn.map(function(bn,Sn){return vn[(Sn+(_n||0))%7]})},Ce=function(){return le.Ls[le.locale()]},$e=function(Ie,Fe){return Ie.formats[Fe]||function(ze){return ze.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Ue,qe,At){return qe||At.slice(1)})}(Ie.formats[Fe.toUpperCase()])},xe=function(){var Ie=this;return{months:function(Fe){return Fe?Fe.format("MMMM"):_e(Ie,"months")},monthsShort:function(Fe){return Fe?Fe.format("MMM"):_e(Ie,"monthsShort","months",3)},firstDayOfWeek:function(){return Ie.$locale().weekStart||0},weekdays:function(Fe){return Fe?Fe.format("dddd"):_e(Ie,"weekdays")},weekdaysMin:function(Fe){return Fe?Fe.format("dd"):_e(Ie,"weekdaysMin","weekdays",2)},weekdaysShort:function(Fe){return Fe?Fe.format("ddd"):_e(Ie,"weekdaysShort","weekdays",3)},longDateFormat:function(Fe){return $e(Ie.$locale(),Fe)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};ue.localeData=function(){return xe.bind(this)()},le.localeData=function(){var Ie=Ce();return{firstDayOfWeek:function(){return Ie.weekStart||0},weekdays:function(){return le.weekdays()},weekdaysShort:function(){return le.weekdaysShort()},weekdaysMin:function(){return le.weekdaysMin()},months:function(){return le.months()},monthsShort:function(){return le.monthsShort()},longDateFormat:function(Fe){return $e(Ie,Fe)},meridiem:Ie.meridiem,ordinal:Ie.ordinal}},le.months=function(){return _e(Ce(),"months")},le.monthsShort=function(){return _e(Ce(),"monthsShort","months",3)},le.weekdays=function(Ie){return _e(Ce(),"weekdays",null,null,Ie)},le.weekdaysShort=function(Ie){return _e(Ce(),"weekdaysShort","weekdays",3,Ie)},le.weekdaysMin=function(Ie){return _e(Ce(),"weekdaysMin","weekdays",2,Ie)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),useDateTable=($,z)=>{dayjs.extend(localeData);const oe=dayjs.localeData().firstDayOfWeek(),{t:ae,lang:le}=useLocale(),ue=dayjs().locale(le.value),pe=computed(()=>!!$.range&&!!$.range.length),_e=computed(()=>{let Fe=[];if(pe.value){const[ze,Ue]=$.range,qe=rangeArr(Ue.date()-ze.date()+1).map(hn=>({text:ze.date()+hn,type:"current"}));let At=qe.length%7;At=At===0?0:7-At;const Lt=rangeArr(At).map((hn,vn)=>({text:vn+1,type:"next"}));Fe=qe.concat(Lt)}else{const ze=$.date.startOf("month").day(),Ue=getPrevMonthLastDays($.date,(ze-oe+7)%7).map(hn=>({text:hn,type:"prev"})),qe=getMonthDays($.date).map(hn=>({text:hn,type:"current"}));Fe=[...Ue,...qe];const At=7-(Fe.length%7||7),Lt=rangeArr(At).map((hn,vn)=>({text:vn+1,type:"next"}));Fe=Fe.concat(Lt)}return toNestedArr(Fe)}),Ce=computed(()=>{const Fe=oe;return Fe===0?WEEK_DAYS.map(ze=>ae(`el.datepicker.weeks.${ze}`)):WEEK_DAYS.slice(Fe).concat(WEEK_DAYS.slice(0,Fe)).map(ze=>ae(`el.datepicker.weeks.${ze}`))}),$e=(Fe,ze)=>{switch(ze){case"prev":return $.date.startOf("month").subtract(1,"month").date(Fe);case"next":return $.date.startOf("month").add(1,"month").date(Fe);case"current":return $.date.date(Fe)}};return{now:ue,isInRange:pe,rows:_e,weekDays:Ce,getFormattedDate:$e,handlePickDay:({text:Fe,type:ze})=>{const Ue=$e(Fe,ze);z("pick",Ue)},getSlotData:({text:Fe,type:ze})=>{const Ue=$e(Fe,ze);return{isSelected:Ue.isSame($.selectedDay),type:`${ze}-month`,day:Ue.format("YYYY-MM-DD"),date:Ue.toDate()}}}},_hoisted_1$X={key:0},_hoisted_2$D=["onClick"],__default__$1f=defineComponent({name:"DateTable"}),_sfc_main$1T=defineComponent({...__default__$1f,props:dateTableProps,emits:dateTableEmits,setup($,{expose:z,emit:oe}){const ae=$,{isInRange:le,now:ue,rows:pe,weekDays:_e,getFormattedDate:Ce,handlePickDay:$e,getSlotData:xe}=useDateTable(ae,oe),Ie=useNamespace("calendar-table"),Fe=useNamespace("calendar-day"),ze=({text:Ue,type:qe})=>{const At=[qe];if(qe==="current"){const Lt=Ce(Ue,qe);Lt.isSame(ae.selectedDay,"day")&&At.push(Fe.is("selected")),Lt.isSame(ue,"day")&&At.push(Fe.is("today"))}return At};return z({getFormattedDate:Ce}),(Ue,qe)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(Ie).b(),unref(Ie).is("range",unref(le))]),cellspacing:"0",cellpadding:"0"},[Ue.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$X,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),At=>(openBlock(),createElementBlock("th",{key:At},toDisplayString$1(At),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),(At,Lt)=>(openBlock(),createElementBlock("tr",{key:Lt,class:normalizeClass({[unref(Ie).e("row")]:!0,[unref(Ie).em("row","hide-border")]:Lt===0&&Ue.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(At,(hn,vn)=>(openBlock(),createElementBlock("td",{key:vn,class:normalizeClass(ze(hn)),onClick:_n=>unref($e)(hn)},[createBaseVNode("div",{class:normalizeClass(unref(Fe).b())},[renderSlot(Ue.$slots,"date-cell",{data:unref(xe)(hn)},()=>[createBaseVNode("span",null,toDisplayString$1(hn.text),1)])],2)],10,_hoisted_2$D))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc$1(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const adjacentMonth=($,z)=>{const oe=$.endOf("month"),ae=z.startOf("month"),ue=oe.isSame(ae,"week")?ae.add(1,"week"):ae;return[[$,oe],[ue.startOf("week"),z]]},threeConsecutiveMonth=($,z)=>{const oe=$.endOf("month"),ae=$.add(1,"month").startOf("month"),le=oe.isSame(ae,"week")?ae.add(1,"week"):ae,ue=le.endOf("month"),pe=z.startOf("month"),_e=ue.isSame(pe,"week")?pe.add(1,"week"):pe;return[[$,oe],[le.startOf("week"),ue],[_e.startOf("week"),z]]},useCalendar=($,z,oe)=>{const ae=useSlots(),{lang:le}=useLocale(),ue=ref(),pe=dayjs().locale(le.value),_e=computed({get(){return $.modelValue?$e.value:ue.value},set(Lt){if(!Lt)return;ue.value=Lt;const hn=Lt.toDate();z(INPUT_EVENT,hn),z(UPDATE_MODEL_EVENT,hn)}}),Ce=computed(()=>{if(!$.range)return[];const Lt=$.range.map(_n=>dayjs(_n).locale(le.value)),[hn,vn]=Lt;return hn.isAfter(vn)?[]:hn.isSame(vn,"month")?Ue(hn,vn):hn.add(1,"month").month()!==vn.month()?[]:Ue(hn,vn)}),$e=computed(()=>$.modelValue?dayjs($.modelValue).locale(le.value):_e.value||(Ce.value.length?Ce.value[0][0]:pe)),xe=computed(()=>$e.value.subtract(1,"month").date(1)),Ie=computed(()=>$e.value.add(1,"month").date(1)),Fe=computed(()=>$e.value.subtract(1,"year").date(1)),ze=computed(()=>$e.value.add(1,"year").date(1)),Ue=(Lt,hn)=>{const vn=Lt.startOf("week"),_n=hn.endOf("week"),bn=vn.get("month"),Sn=_n.get("month");return bn===Sn?[[vn,_n]]:(bn+1)%12===Sn?adjacentMonth(vn,_n):bn+2===Sn||(bn+1)%11===Sn?threeConsecutiveMonth(vn,_n):[]},qe=Lt=>{_e.value=Lt},At=Lt=>{const vn={"prev-month":xe.value,"next-month":Ie.value,"prev-year":Fe.value,"next-year":ze.value,today:pe}[Lt];vn.isSame($e.value,"day")||qe(vn)};return useDeprecated({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},computed(()=>!!ae.dateCell)),{calculateValidatedDateRange:Ue,date:$e,realSelectedDay:_e,pickDay:qe,selectDate:At,validatedRange:Ce}},isValidRange$1=$=>isArray$c($)&&$.length===2&&$.every(z=>isDate$3(z)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1}}),calendarEmits={[UPDATE_MODEL_EVENT]:$=>isDate$3($),[INPUT_EVENT]:$=>isDate$3($)},COMPONENT_NAME$g="ElCalendar",__default__$1e=defineComponent({name:COMPONENT_NAME$g}),_sfc_main$1S=defineComponent({...__default__$1e,props:calendarProps,emits:calendarEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useNamespace("calendar"),{calculateValidatedDateRange:ue,date:pe,pickDay:_e,realSelectedDay:Ce,selectDate:$e,validatedRange:xe}=useCalendar(ae,oe),{t:Ie}=useLocale(),Fe=computed(()=>{const ze=`el.datepicker.month${pe.value.format("M")}`;return`${pe.value.year()} ${Ie("el.datepicker.year")} ${Ie(ze)}`});return z({selectedDay:Ce,pickDay:_e,selectDate:$e,calculateValidatedDateRange:ue}),(ze,Ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le).b())},[createBaseVNode("div",{class:normalizeClass(unref(le).e("header"))},[renderSlot(ze.$slots,"header",{date:unref(Fe)},()=>[createBaseVNode("div",{class:normalizeClass(unref(le).e("title"))},toDisplayString$1(unref(Fe)),3),unref(xe).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:Ue[0]||(Ue[0]=qe=>unref($e)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Ue[1]||(Ue[1]=qe=>unref($e)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Ue[2]||(Ue[2]=qe=>unref($e)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(xe).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("body"))},[createVNode(DateTable$1,{date:unref(pe),"selected-day":unref(Ce),onPick:unref(_e)},createSlots({_:2},[ze.$slots["date-cell"]||ze.$slots.dateCell?{name:"date-cell",fn:withCtx(qe=>[ze.$slots["date-cell"]?renderSlot(ze.$slots,"date-cell",normalizeProps(mergeProps({key:0},qe))):renderSlot(ze.$slots,"dateCell",normalizeProps(mergeProps({key:1},qe)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(xe),(qe,At)=>(openBlock(),createBlock(DateTable$1,{key:At,date:qe[0],"selected-day":unref(Ce),range:qe,"hide-header":At!==0,onPick:unref(_e)},createSlots({_:2},[ze.$slots["date-cell"]||ze.$slots.dateCell?{name:"date-cell",fn:withCtx(Lt=>[ze.$slots["date-cell"]?renderSlot(ze.$slots,"date-cell",normalizeProps(mergeProps({key:0},Lt))):renderSlot(ze.$slots,"dateCell",normalizeProps(mergeProps({key:1},Lt)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Calendar=_export_sfc$1(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),__default__$1d=defineComponent({name:"ElCard"}),_sfc_main$1R=defineComponent({...__default__$1d,props:cardProps,setup($){const z=useNamespace("card");return(oe,ae)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(z).b(),unref(z).is(`${oe.shadow}-shadow`)])},[oe.$slots.header||oe.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(z).e("header"))},[renderSlot(oe.$slots,"header",{},()=>[createTextVNode(toDisplayString$1(oe.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(z).e("body")),style:normalizeStyle$1(oe.bodyStyle)},[renderSlot(oe.$slots,"default")],6)],2))}});var Card=_export_sfc$1(_sfc_main$1R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ElCard=withInstall(Card),carouselProps=buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),carouselEmits={change:($,z)=>[$,z].every(isNumber$5)},carouselContextKey=Symbol("carouselContextKey"),THROTTLE_TIME=300,useCarousel=($,z,oe)=>{const{children:ae,addChild:le,removeChild:ue}=useOrderedChildren(getCurrentInstance(),"ElCarouselItem"),pe=ref(-1),_e=ref(null),Ce=ref(!1),$e=ref(),xe=ref(0),Ie=computed(()=>$.arrow!=="never"&&!unref(Ue)),Fe=computed(()=>ae.value.some(Mn=>Mn.props.label.toString().length>0)),ze=computed(()=>$.type==="card"),Ue=computed(()=>$.direction==="vertical"),qe=computed(()=>$.height!=="auto"?{height:$.height}:{height:`${xe.value}px`,overflow:"hidden"}),At=throttle$1(Mn=>{bn(Mn)},THROTTLE_TIME,{trailing:!0}),Lt=throttle$1(Mn=>{kn(Mn)},THROTTLE_TIME);function hn(){_e.value&&(clearInterval(_e.value),_e.value=null)}function vn(){$.interval<=0||!$.autoplay||_e.value||(_e.value=setInterval(()=>_n(),$.interval))}const _n=()=>{pe.value<ae.value.length-1?pe.value=pe.value+1:$.loop&&(pe.value=0)};function bn(Mn){if(isString$7(Mn)){const Fn=ae.value.filter(Xn=>Xn.props.name===Mn);Fn.length>0&&(Mn=ae.value.indexOf(Fn[0]))}if(Mn=Number(Mn),Number.isNaN(Mn)||Mn!==Math.floor(Mn))return;const Vn=ae.value.length,Yn=pe.value;Mn<0?pe.value=$.loop?Vn-1:0:Mn>=Vn?pe.value=$.loop?0:Vn-1:pe.value=Mn,Yn===pe.value&&Sn(Yn),Dn()}function Sn(Mn){ae.value.forEach((Vn,Yn)=>{Vn.translateItem(Yn,pe.value,Mn)})}function Cn(Mn,Vn){var Yn,Fn,Xn,sr;const vr=unref(ae),ar=vr.length;if(ar===0||!Mn.states.inStage)return!1;const qn=Vn+1,Gn=Vn-1,Wn=ar-1,Qn=vr[Wn].states.active,cr=vr[0].states.active,jn=(Fn=(Yn=vr[qn])==null?void 0:Yn.states)==null?void 0:Fn.active,Zn=(sr=(Xn=vr[Gn])==null?void 0:Xn.states)==null?void 0:sr.active;return Vn===Wn&&cr||jn?"left":Vn===0&&Qn||Zn?"right":!1}function En(){Ce.value=!0,$.pauseOnHover&&hn()}function $n(){Ce.value=!1,vn()}function wn(Mn){unref(Ue)||ae.value.forEach((Vn,Yn)=>{Mn===Cn(Vn,Yn)&&(Vn.states.hover=!0)})}function Tn(){unref(Ue)||ae.value.forEach(Mn=>{Mn.states.hover=!1})}function xn(Mn){pe.value=Mn}function kn(Mn){$.trigger==="hover"&&Mn!==pe.value&&(pe.value=Mn)}function Nn(){bn(pe.value-1)}function Bn(){bn(pe.value+1)}function Dn(){hn(),vn()}function In(Mn){$.height==="auto"&&(xe.value=Mn)}watch(()=>pe.value,(Mn,Vn)=>{Sn(Vn),Vn>-1&&z("change",Mn,Vn)}),watch(()=>$.autoplay,Mn=>{Mn?vn():hn()}),watch(()=>$.loop,()=>{bn(pe.value)}),watch(()=>$.interval,()=>{Dn()}),watch(()=>ae.value,()=>{ae.value.length>0&&bn($.initialIndex)});const Ln=shallowRef();return onMounted(()=>{Ln.value=useResizeObserver($e.value,()=>{Sn()}),vn()}),onBeforeUnmount(()=>{hn(),$e.value&&Ln.value&&Ln.value.stop()}),provide(carouselContextKey,{root:$e,isCardType:ze,isVertical:Ue,items:ae,loop:$.loop,addItem:le,removeItem:ue,setActiveItem:bn,setContainerHeight:In}),{root:$e,activeIndex:pe,arrowDisplay:Ie,hasLabel:Fe,hover:Ce,isCardType:ze,items:ae,isVertical:Ue,containerStyle:qe,handleButtonEnter:wn,handleButtonLeave:Tn,handleIndicatorClick:xn,handleMouseEnter:En,handleMouseLeave:$n,setActiveItem:bn,prev:Nn,next:Bn,throttledArrowClick:At,throttledIndicatorHover:Lt}},_hoisted_1$W=["onMouseenter","onClick"],_hoisted_2$C={key:0},COMPONENT_NAME$f="ElCarousel",__default__$1c=defineComponent({name:COMPONENT_NAME$f}),_sfc_main$1Q=defineComponent({...__default__$1c,props:carouselProps,emits:carouselEmits,setup($,{expose:z,emit:oe}){const ae=$,{root:le,activeIndex:ue,arrowDisplay:pe,hasLabel:_e,hover:Ce,isCardType:$e,items:xe,isVertical:Ie,containerStyle:Fe,handleButtonEnter:ze,handleButtonLeave:Ue,handleIndicatorClick:qe,handleMouseEnter:At,handleMouseLeave:Lt,setActiveItem:hn,prev:vn,next:_n,throttledArrowClick:bn,throttledIndicatorHover:Sn}=useCarousel(ae,oe),Cn=useNamespace("carousel"),En=computed(()=>{const wn=[Cn.b(),Cn.m(ae.direction)];return unref($e)&&wn.push(Cn.m("card")),wn}),$n=computed(()=>{const wn=[Cn.e("indicators"),Cn.em("indicators",ae.direction)];return unref(_e)&&wn.push(Cn.em("indicators","labels")),ae.indicatorPosition==="outside"&&wn.push(Cn.em("indicators","outside")),unref(Ie)&&wn.push(Cn.em("indicators","right")),wn});return z({setActiveItem:hn,prev:vn,next:_n}),(wn,Tn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:le,class:normalizeClass(unref(En)),onMouseenter:Tn[6]||(Tn[6]=withModifiers((...xn)=>unref(At)&&unref(At)(...xn),["stop"])),onMouseleave:Tn[7]||(Tn[7]=withModifiers((...xn)=>unref(Lt)&&unref(Lt)(...xn),["stop"]))},[createBaseVNode("div",{class:normalizeClass(unref(Cn).e("container")),style:normalizeStyle$1(unref(Fe))},[unref(pe)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Cn).e("arrow"),unref(Cn).em("arrow","left")]),onMouseenter:Tn[0]||(Tn[0]=xn=>unref(ze)("left")),onMouseleave:Tn[1]||(Tn[1]=(...xn)=>unref(Ue)&&unref(Ue)(...xn)),onClick:Tn[2]||(Tn[2]=withModifiers(xn=>unref(bn)(unref(ue)-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],34),[[vShow,(wn.arrow==="always"||unref(Ce))&&(ae.loop||unref(ue)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(pe)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Cn).e("arrow"),unref(Cn).em("arrow","right")]),onMouseenter:Tn[3]||(Tn[3]=xn=>unref(ze)("right")),onMouseleave:Tn[4]||(Tn[4]=(...xn)=>unref(Ue)&&unref(Ue)(...xn)),onClick:Tn[5]||(Tn[5]=withModifiers(xn=>unref(bn)(unref(ue)+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],34),[[vShow,(wn.arrow==="always"||unref(Ce))&&(ae.loop||unref(ue)<unref(xe).length-1)]])]),_:1})):createCommentVNode("v-if",!0),renderSlot(wn.$slots,"default")],6),wn.indicatorPosition!=="none"?(openBlock(),createElementBlock("ul",{key:0,class:normalizeClass(unref($n))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(xe),(xn,kn)=>(openBlock(),createElementBlock("li",{key:kn,class:normalizeClass([unref(Cn).e("indicator"),unref(Cn).em("indicator",wn.direction),unref(Cn).is("active",kn===unref(ue))]),onMouseenter:Nn=>unref(Sn)(kn),onClick:withModifiers(Nn=>unref(qe)(kn),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(Cn).e("button"))},[unref(_e)?(openBlock(),createElementBlock("span",_hoisted_2$C,toDisplayString$1(xn.props.label),1)):createCommentVNode("v-if",!0)],2)],42,_hoisted_1$W))),128))],2)):createCommentVNode("v-if",!0)],34))}});var Carousel=_export_sfc$1(_sfc_main$1Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const carouselItemProps=buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),useCarouselItem=($,z)=>{const oe=inject(carouselContextKey),ae=getCurrentInstance(),le=.83,ue=ref(),pe=ref(!1),_e=ref(0),Ce=ref(1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Fe=ref(!1),{isCardType:ze,isVertical:Ue}=oe;function qe(_n,bn,Sn){const Cn=Sn-1,En=bn-1,$n=bn+1,wn=Sn/2;return bn===0&&_n===Cn?-1:bn===Cn&&_n===0?Sn:_n<En&&bn-_n>=wn?Sn+1:_n>$n&&_n-bn>=wn?-2:_n}function At(_n,bn){var Sn,Cn;const En=unref(Ue)?((Sn=oe.root.value)==null?void 0:Sn.offsetHeight)||0:((Cn=oe.root.value)==null?void 0:Cn.offsetWidth)||0;return Ie.value?En*((2-le)*(_n-bn)+1)/4:_n<bn?-(1+le)*En/4:(3+le)*En/4}function Lt(_n,bn,Sn){const Cn=oe.root.value;return Cn?((Sn?Cn.offsetHeight:Cn.offsetWidth)||0)*(_n-bn):0}const hn=(_n,bn,Sn)=>{var Cn;const En=unref(ze),$n=(Cn=oe.items.value.length)!=null?Cn:Number.NaN,wn=_n===bn;!En&&!isUndefined$1(Sn)&&(Fe.value=wn||_n===Sn),!wn&&$n>2&&oe.loop&&(_n=qe(_n,bn,$n));const Tn=unref(Ue);$e.value=wn,En?(Ie.value=Math.round(Math.abs(_n-bn))<=1,_e.value=At(_n,bn),Ce.value=unref($e)?1:le):_e.value=Lt(_n,bn,Tn),xe.value=!0,wn&&ue.value&&oe.setContainerHeight(ue.value.offsetHeight)};function vn(){if(oe&&unref(ze)){const _n=oe.items.value.findIndex(({uid:bn})=>bn===ae.uid);oe.setActiveItem(_n)}}return onMounted(()=>{oe.addItem({props:$,states:reactive({hover:pe,translate:_e,scale:Ce,active:$e,ready:xe,inStage:Ie,animating:Fe}),uid:ae.uid,translateItem:hn})}),onUnmounted(()=>{oe.removeItem(ae.uid)}),{carouselItemRef:ue,active:$e,animating:Fe,hover:pe,inStage:Ie,isVertical:Ue,translate:_e,isCardType:ze,scale:Ce,ready:xe,handleItemClick:vn}},__default__$1b=defineComponent({name:"ElCarouselItem"}),_sfc_main$1P=defineComponent({...__default__$1b,props:carouselItemProps,setup($){const z=$,oe=useNamespace("carousel"),{carouselItemRef:ae,active:le,animating:ue,hover:pe,inStage:_e,isVertical:Ce,translate:$e,isCardType:xe,scale:Ie,ready:Fe,handleItemClick:ze}=useCarouselItem(z),Ue=computed(()=>{const At=`${`translate${unref(Ce)?"Y":"X"}`}(${unref($e)}px)`,Lt=`scale(${unref(Ie)})`;return{transform:[At,Lt].join(" ")}});return(qe,At)=>withDirectives((openBlock(),createElementBlock("div",{ref_key:"carouselItemRef",ref:ae,class:normalizeClass([unref(oe).e("item"),unref(oe).is("active",unref(le)),unref(oe).is("in-stage",unref(_e)),unref(oe).is("hover",unref(pe)),unref(oe).is("animating",unref(ue)),{[unref(oe).em("item","card")]:unref(xe),[unref(oe).em("item","card-vertical")]:unref(xe)&&unref(Ce)}]),style:normalizeStyle$1(unref(Ue)),onClick:At[0]||(At[0]=(...Lt)=>unref(ze)&&unref(ze)(...Lt))},[unref(xe)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("mask"))},null,2)),[[vShow,!unref(le)]]):createCommentVNode("v-if",!0),renderSlot(qe.$slots,"default")],6)),[[vShow,unref(Fe)]])}});var CarouselItem=_export_sfc$1(_sfc_main$1P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const ElCarousel=withInstall(Carousel,{CarouselItem}),ElCarouselItem=withNoopInstall(CarouselItem),checkboxProps={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},checkboxEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),change:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:$,isChecked:z})=>{const oe=inject(checkboxGroupContextKey,void 0),ae=computed(()=>{var ue,pe;const _e=(ue=oe==null?void 0:oe.max)==null?void 0:ue.value,Ce=(pe=oe==null?void 0:oe.min)==null?void 0:pe.value;return!isUndefined$1(_e)&&$.value.length>=_e&&!z.value||!isUndefined$1(Ce)&&$.value.length<=Ce&&z.value});return{isDisabled:useFormDisabled(computed(()=>(oe==null?void 0:oe.disabled.value)||ae.value)),isLimitDisabled:ae}},useCheckboxEvent=($,{model:z,isLimitExceeded:oe,hasOwnLabel:ae,isDisabled:le,isLabeledByFormItem:ue})=>{const pe=inject(checkboxGroupContextKey,void 0),{formItem:_e}=useFormItem(),{emit:Ce}=getCurrentInstance();function $e(Ue){var qe,At;return Ue===$.trueLabel||Ue===!0?(qe=$.trueLabel)!=null?qe:!0:(At=$.falseLabel)!=null?At:!1}function xe(Ue,qe){Ce("change",$e(Ue),qe)}function Ie(Ue){if(oe.value)return;const qe=Ue.target;Ce("change",$e(qe.checked),Ue)}async function Fe(Ue){oe.value||!ae.value&&!le.value&&ue.value&&(Ue.composedPath().some(Lt=>Lt.tagName==="LABEL")||(z.value=$e([!1,$.falseLabel].includes(z.value)),await nextTick(),xe(z.value,Ue)))}const ze=computed(()=>(pe==null?void 0:pe.validateEvent)||$.validateEvent);return watch(()=>$.modelValue,()=>{ze.value&&(_e==null||_e.validate("change").catch(Ue=>void 0))}),{handleChange:Ie,onClickRoot:Fe}},useCheckboxModel=$=>{const z=ref(!1),{emit:oe}=getCurrentInstance(),ae=inject(checkboxGroupContextKey,void 0),le=computed(()=>isUndefined$1(ae)===!1),ue=ref(!1);return{model:computed({get(){var _e,Ce;return le.value?(_e=ae==null?void 0:ae.modelValue)==null?void 0:_e.value:(Ce=$.modelValue)!=null?Ce:z.value},set(_e){var Ce,$e;le.value&&isArray$c(_e)?(ue.value=((Ce=ae==null?void 0:ae.max)==null?void 0:Ce.value)!==void 0&&_e.length>(ae==null?void 0:ae.max.value),ue.value===!1&&(($e=ae==null?void 0:ae.changeEvent)==null||$e.call(ae,_e))):(oe(UPDATE_MODEL_EVENT,_e),z.value=_e)}}),isGroup:le,isLimitExceeded:ue}},useCheckboxStatus=($,z,{model:oe})=>{const ae=inject(checkboxGroupContextKey,void 0),le=ref(!1),ue=computed(()=>{const $e=oe.value;return isBoolean$3($e)?$e:isArray$c($e)?isObject$8($.label)?$e.map(toRaw).some(xe=>isEqual$1(xe,$.label)):$e.map(toRaw).includes($.label):$e!=null?$e===$.trueLabel:!!$e}),pe=useFormSize(computed(()=>{var $e;return($e=ae==null?void 0:ae.size)==null?void 0:$e.value}),{prop:!0}),_e=useFormSize(computed(()=>{var $e;return($e=ae==null?void 0:ae.size)==null?void 0:$e.value})),Ce=computed(()=>!!(z.default||$.label));return{checkboxButtonSize:pe,isChecked:ue,isFocused:le,checkboxSize:_e,hasOwnLabel:Ce}},setStoreValue=($,{model:z})=>{function oe(){isArray$c(z.value)&&!z.value.includes($.label)?z.value.push($.label):z.value=$.trueLabel||!0}$.checked&&oe()},useCheckbox=($,z)=>{const{formItem:oe}=useFormItem(),{model:ae,isGroup:le,isLimitExceeded:ue}=useCheckboxModel($),{isFocused:pe,isChecked:_e,checkboxButtonSize:Ce,checkboxSize:$e,hasOwnLabel:xe}=useCheckboxStatus($,z,{model:ae}),{isDisabled:Ie}=useCheckboxDisabled({model:ae,isChecked:_e}),{inputId:Fe,isLabeledByFormItem:ze}=useFormItemInputId($,{formItemContext:oe,disableIdGeneration:xe,disableIdManagement:le}),{handleChange:Ue,onClickRoot:qe}=useCheckboxEvent($,{model:ae,isLimitExceeded:ue,hasOwnLabel:xe,isDisabled:Ie,isLabeledByFormItem:ze});return setStoreValue($,{model:ae}),{inputId:Fe,isLabeledByFormItem:ze,isChecked:_e,isDisabled:Ie,isFocused:pe,checkboxButtonSize:Ce,checkboxSize:$e,hasOwnLabel:xe,model:ae,handleChange:Ue,onClickRoot:qe}},_hoisted_1$V=["tabindex","role","aria-checked"],_hoisted_2$B=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$l=["id","aria-hidden","disabled","value","name","tabindex"],__default__$1a=defineComponent({name:"ElCheckbox"}),_sfc_main$1O=defineComponent({...__default__$1a,props:checkboxProps,emits:checkboxEmits,setup($){const z=$,oe=useSlots(),{inputId:ae,isLabeledByFormItem:le,isChecked:ue,isDisabled:pe,isFocused:_e,checkboxSize:Ce,hasOwnLabel:$e,model:xe,handleChange:Ie,onClickRoot:Fe}=useCheckbox(z,oe),ze=useNamespace("checkbox"),Ue=computed(()=>[ze.b(),ze.m(Ce.value),ze.is("disabled",pe.value),ze.is("bordered",z.border),ze.is("checked",ue.value)]),qe=computed(()=>[ze.e("input"),ze.is("disabled",pe.value),ze.is("checked",ue.value),ze.is("indeterminate",z.indeterminate),ze.is("focus",_e.value)]);return(At,Lt)=>(openBlock(),createBlock(resolveDynamicComponent(!unref($e)&&unref(le)?"span":"label"),{class:normalizeClass(unref(Ue)),"aria-controls":At.indeterminate?At.controls:null,onClick:unref(Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(qe)),tabindex:At.indeterminate?0:void 0,role:At.indeterminate?"checkbox":void 0,"aria-checked":At.indeterminate?"mixed":void 0},[At.trueLabel||At.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(ae),"onUpdate:modelValue":Lt[0]||(Lt[0]=hn=>isRef(xe)?xe.value=hn:null),class:normalizeClass(unref(ze).e("original")),type:"checkbox","aria-hidden":At.indeterminate?"true":"false",name:At.name,tabindex:At.tabindex,disabled:unref(pe),"true-value":At.trueLabel,"false-value":At.falseLabel,onChange:Lt[1]||(Lt[1]=(...hn)=>unref(Ie)&&unref(Ie)(...hn)),onFocus:Lt[2]||(Lt[2]=hn=>_e.value=!0),onBlur:Lt[3]||(Lt[3]=hn=>_e.value=!1)},null,42,_hoisted_2$B)),[[vModelCheckbox,unref(xe)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(ae),"onUpdate:modelValue":Lt[4]||(Lt[4]=hn=>isRef(xe)?xe.value=hn:null),class:normalizeClass(unref(ze).e("original")),type:"checkbox","aria-hidden":At.indeterminate?"true":"false",disabled:unref(pe),value:At.label,name:At.name,tabindex:At.tabindex,onChange:Lt[5]||(Lt[5]=(...hn)=>unref(Ie)&&unref(Ie)(...hn)),onFocus:Lt[6]||(Lt[6]=hn=>_e.value=!0),onBlur:Lt[7]||(Lt[7]=hn=>_e.value=!1)},null,42,_hoisted_3$l)),[[vModelCheckbox,unref(xe)]]),createBaseVNode("span",{class:normalizeClass(unref(ze).e("inner"))},null,2)],10,_hoisted_1$V),unref($e)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ze).e("label"))},[renderSlot(At.$slots,"default"),At.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(At.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Checkbox=_export_sfc$1(_sfc_main$1O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$U=["name","tabindex","disabled","true-value","false-value"],_hoisted_2$A=["name","tabindex","disabled","value"],__default__$19=defineComponent({name:"ElCheckboxButton"}),_sfc_main$1N=defineComponent({...__default__$19,props:checkboxProps,emits:checkboxEmits,setup($){const z=$,oe=useSlots(),{isFocused:ae,isChecked:le,isDisabled:ue,checkboxButtonSize:pe,model:_e,handleChange:Ce}=useCheckbox(z,oe),$e=inject(checkboxGroupContextKey,void 0),xe=useNamespace("checkbox"),Ie=computed(()=>{var ze,Ue,qe,At;const Lt=(Ue=(ze=$e==null?void 0:$e.fill)==null?void 0:ze.value)!=null?Ue:"";return{backgroundColor:Lt,borderColor:Lt,color:(At=(qe=$e==null?void 0:$e.textColor)==null?void 0:qe.value)!=null?At:"",boxShadow:Lt?`-1px 0 0 0 ${Lt}`:void 0}}),Fe=computed(()=>[xe.b("button"),xe.bm("button",pe.value),xe.is("disabled",ue.value),xe.is("checked",le.value),xe.is("focus",ae.value)]);return(ze,Ue)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref(Fe))},[ze.trueLabel||ze.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Ue[0]||(Ue[0]=qe=>isRef(_e)?_e.value=qe:null),class:normalizeClass(unref(xe).be("button","original")),type:"checkbox",name:ze.name,tabindex:ze.tabindex,disabled:unref(ue),"true-value":ze.trueLabel,"false-value":ze.falseLabel,onChange:Ue[1]||(Ue[1]=(...qe)=>unref(Ce)&&unref(Ce)(...qe)),onFocus:Ue[2]||(Ue[2]=qe=>ae.value=!0),onBlur:Ue[3]||(Ue[3]=qe=>ae.value=!1)},null,42,_hoisted_1$U)),[[vModelCheckbox,unref(_e)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":Ue[4]||(Ue[4]=qe=>isRef(_e)?_e.value=qe:null),class:normalizeClass(unref(xe).be("button","original")),type:"checkbox",name:ze.name,tabindex:ze.tabindex,disabled:unref(ue),value:ze.label,onChange:Ue[5]||(Ue[5]=(...qe)=>unref(Ce)&&unref(Ce)(...qe)),onFocus:Ue[6]||(Ue[6]=qe=>ae.value=!0),onBlur:Ue[7]||(Ue[7]=qe=>ae.value=!1)},null,42,_hoisted_2$A)),[[vModelCheckbox,unref(_e)]]),ze.$slots.default||ze.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(xe).be("button","inner")),style:normalizeStyle$1(unref(le)?unref(Ie):void 0)},[renderSlot(ze.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ze.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc$1(_sfc_main$1N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const checkboxGroupProps=buildProps({modelValue:{type:definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:useSizeProp,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),checkboxGroupEmits={[UPDATE_MODEL_EVENT]:$=>isArray$c($),change:$=>isArray$c($)},__default__$18=defineComponent({name:"ElCheckboxGroup"}),_sfc_main$1M=defineComponent({...__default__$18,props:checkboxGroupProps,emits:checkboxGroupEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("checkbox"),{formItem:le}=useFormItem(),{inputId:ue,isLabeledByFormItem:pe}=useFormItemInputId(oe,{formItemContext:le}),_e=async $e=>{z(UPDATE_MODEL_EVENT,$e),await nextTick(),z("change",$e)},Ce=computed({get(){return oe.modelValue},set($e){_e($e)}});return provide(checkboxGroupContextKey,{...pick$1(toRefs(oe),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:Ce,changeEvent:_e}),watch(()=>oe.modelValue,()=>{oe.validateEvent&&(le==null||le.validate("change").catch($e=>void 0))}),($e,xe)=>{var Ie;return openBlock(),createBlock(resolveDynamicComponent($e.tag),{id:unref(ue),class:normalizeClass(unref(ae).b("group")),role:"group","aria-label":unref(pe)?void 0:$e.label||"checkbox-group","aria-labelledby":unref(pe)?(Ie=unref(le))==null?void 0:Ie.labelId:void 0},{default:withCtx(()=>[renderSlot($e.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc$1(_sfc_main$1M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ElCheckbox=withInstall(Checkbox,{CheckboxButton,CheckboxGroup}),ElCheckboxButton=withNoopInstall(CheckboxButton),ElCheckboxGroup$1=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({size:useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),radioProps=buildProps({...radioPropsBase,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),radioEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),[CHANGE_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},radioGroupKey=Symbol("radioGroupKey"),useRadio=($,z)=>{const oe=ref(),ae=inject(radioGroupKey,void 0),le=computed(()=>!!ae),ue=computed({get(){return le.value?ae.modelValue:$.modelValue},set(xe){le.value?ae.changeEvent(xe):z&&z(UPDATE_MODEL_EVENT,xe),oe.value.checked=$.modelValue===$.label}}),pe=useFormSize(computed(()=>ae==null?void 0:ae.size)),_e=useFormDisabled(computed(()=>ae==null?void 0:ae.disabled)),Ce=ref(!1),$e=computed(()=>_e.value||le.value&&ue.value!==$.label?-1:0);return{radioRef:oe,isGroup:le,radioGroup:ae,focus:Ce,size:pe,disabled:_e,tabIndex:$e,modelValue:ue}},_hoisted_1$T=["value","name","disabled"],__default__$17=defineComponent({name:"ElRadio"}),_sfc_main$1L=defineComponent({...__default__$17,props:radioProps,emits:radioEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("radio"),{radioRef:le,radioGroup:ue,focus:pe,size:_e,disabled:Ce,modelValue:$e}=useRadio(oe,z);function xe(){nextTick(()=>z("change",$e.value))}return(Ie,Fe)=>{var ze;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ae).b(),unref(ae).is("disabled",unref(Ce)),unref(ae).is("focus",unref(pe)),unref(ae).is("bordered",Ie.border),unref(ae).is("checked",unref($e)===Ie.label),unref(ae).m(unref(_e))])},[createBaseVNode("span",{class:normalizeClass([unref(ae).e("input"),unref(ae).is("disabled",unref(Ce)),unref(ae).is("checked",unref($e)===Ie.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:le,"onUpdate:modelValue":Fe[0]||(Fe[0]=Ue=>isRef($e)?$e.value=Ue:null),class:normalizeClass(unref(ae).e("original")),value:Ie.label,name:Ie.name||((ze=unref(ue))==null?void 0:ze.name),disabled:unref(Ce),type:"radio",onFocus:Fe[1]||(Fe[1]=Ue=>pe.value=!0),onBlur:Fe[2]||(Fe[2]=Ue=>pe.value=!1),onChange:xe},null,42,_hoisted_1$T),[[vModelRadio,unref($e)]]),createBaseVNode("span",{class:normalizeClass(unref(ae).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(ae).e("label")),onKeydown:Fe[3]||(Fe[3]=withModifiers(()=>{},["stop"]))},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.label),1)])],34)],2)}}});var Radio=_export_sfc$1(_sfc_main$1L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase,name:{type:String,default:""}}),_hoisted_1$S=["value","name","disabled"],__default__$16=defineComponent({name:"ElRadioButton"}),_sfc_main$1K=defineComponent({...__default__$16,props:radioButtonProps,setup($){const z=$,oe=useNamespace("radio"),{radioRef:ae,focus:le,size:ue,disabled:pe,modelValue:_e,radioGroup:Ce}=useRadio(z),$e=computed(()=>({backgroundColor:(Ce==null?void 0:Ce.fill)||"",borderColor:(Ce==null?void 0:Ce.fill)||"",boxShadow:Ce!=null&&Ce.fill?`-1px 0 0 0 ${Ce.fill}`:"",color:(Ce==null?void 0:Ce.textColor)||""}));return(xe,Ie)=>{var Fe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(oe).b("button"),unref(oe).is("active",unref(_e)===xe.label),unref(oe).is("disabled",unref(pe)),unref(oe).is("focus",unref(le)),unref(oe).bm("button",unref(ue))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:ae,"onUpdate:modelValue":Ie[0]||(Ie[0]=ze=>isRef(_e)?_e.value=ze:null),class:normalizeClass(unref(oe).be("button","original-radio")),value:xe.label,type:"radio",name:xe.name||((Fe=unref(Ce))==null?void 0:Fe.name),disabled:unref(pe),onFocus:Ie[1]||(Ie[1]=ze=>le.value=!0),onBlur:Ie[2]||(Ie[2]=ze=>le.value=!1)},null,42,_hoisted_1$S),[[vModelRadio,unref(_e)]]),createBaseVNode("span",{class:normalizeClass(unref(oe).be("button","inner")),style:normalizeStyle$1(unref(_e)===xe.label?unref($e):{}),onKeydown:Ie[3]||(Ie[3]=withModifiers(()=>{},["stop"]))},[renderSlot(xe.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(xe.label),1)])],38)],2)}}});var RadioButton=_export_sfc$1(_sfc_main$1K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const radioGroupProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),radioGroupEmits=radioEmits,_hoisted_1$R=["id","aria-label","aria-labelledby"],__default__$15=defineComponent({name:"ElRadioGroup"}),_sfc_main$1J=defineComponent({...__default__$15,props:radioGroupProps,emits:radioGroupEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("radio"),le=useId(),ue=ref(),{formItem:pe}=useFormItem(),{inputId:_e,isLabeledByFormItem:Ce}=useFormItemInputId(oe,{formItemContext:pe}),$e=Ie=>{z(UPDATE_MODEL_EVENT,Ie),nextTick(()=>z("change",Ie))};onMounted(()=>{const Ie=ue.value.querySelectorAll("[type=radio]"),Fe=Ie[0];!Array.from(Ie).some(ze=>ze.checked)&&Fe&&(Fe.tabIndex=0)});const xe=computed(()=>oe.name||le.value);return provide(radioGroupKey,reactive({...toRefs(oe),changeEvent:$e,name:xe})),watch(()=>oe.modelValue,()=>{oe.validateEvent&&(pe==null||pe.validate("change").catch(Ie=>void 0))}),(Ie,Fe)=>(openBlock(),createElementBlock("div",{id:unref(_e),ref_key:"radioGroupRef",ref:ue,class:normalizeClass(unref(ae).b("group")),role:"radiogroup","aria-label":unref(Ce)?void 0:Ie.label||"radio-group","aria-labelledby":unref(Ce)?unref(pe).labelId:void 0},[renderSlot(Ie.$slots,"default")],10,_hoisted_1$R))}});var RadioGroup=_export_sfc$1(_sfc_main$1J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const ElRadio=withInstall(Radio,{RadioButton,RadioGroup}),ElRadioGroup=withNoopInstall(RadioGroup),ElRadioButton=withNoopInstall(RadioButton);var NodeContent$1=defineComponent({name:"NodeContent",setup(){return{ns:useNamespace("cascader-node")}},render(){const{ns:$}=this,{node:z,panel:oe}=this.$parent,{data:ae,label:le}=z,{renderLabelFn:ue}=oe;return h$3("span",{class:$.e("label")},ue?ue({node:z,data:ae}):le)}});const CASCADER_PANEL_INJECTION_KEY=Symbol(),_sfc_main$1I=defineComponent({name:"ElCascaderNode",components:{ElCheckbox,ElRadio,NodeContent:NodeContent$1,ElIcon,Check:check_default,Loading:loading_default,ArrowRight:arrow_right_default},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup($,{emit:z}){const oe=inject(CASCADER_PANEL_INJECTION_KEY),ae=useNamespace("cascader-node"),le=computed(()=>oe.isHoverMenu),ue=computed(()=>oe.config.multiple),pe=computed(()=>oe.config.checkStrictly),_e=computed(()=>{var Sn;return(Sn=oe.checkedNodes[0])==null?void 0:Sn.uid}),Ce=computed(()=>$.node.isDisabled),$e=computed(()=>$.node.isLeaf),xe=computed(()=>pe.value&&!$e.value||!Ce.value),Ie=computed(()=>ze(oe.expandingNode)),Fe=computed(()=>pe.value&&oe.checkedNodes.some(ze)),ze=Sn=>{var Cn;const{level:En,uid:$n}=$.node;return((Cn=Sn==null?void 0:Sn.pathNodes[En-1])==null?void 0:Cn.uid)===$n},Ue=()=>{Ie.value||oe.expandNode($.node)},qe=Sn=>{const{node:Cn}=$;Sn!==Cn.checked&&oe.handleCheckChange(Cn,Sn)},At=()=>{oe.lazyLoad($.node,()=>{$e.value||Ue()})},Lt=Sn=>{le.value&&(hn(),!$e.value&&z("expand",Sn))},hn=()=>{const{node:Sn}=$;!xe.value||Sn.loading||(Sn.loaded?Ue():At())},vn=()=>{le.value&&!$e.value||($e.value&&!Ce.value&&!pe.value&&!ue.value?bn(!0):hn())},_n=Sn=>{pe.value?(qe(Sn),$.node.loaded&&Ue()):bn(Sn)},bn=Sn=>{$.node.loaded?(qe(Sn),!pe.value&&Ue()):At()};return{panel:oe,isHoverMenu:le,multiple:ue,checkStrictly:pe,checkedNodeId:_e,isDisabled:Ce,isLeaf:$e,expandable:xe,inExpandingPath:Ie,inCheckedPath:Fe,ns:ae,handleHoverExpand:Lt,handleExpand:hn,handleClick:vn,handleCheck:bn,handleSelectCheck:_n}}}),_hoisted_1$Q=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$z=createBaseVNode("span",null,null,-1);function _sfc_render$v($,z,oe,ae,le,ue){const pe=resolveComponent("el-checkbox"),_e=resolveComponent("el-radio"),Ce=resolveComponent("check"),$e=resolveComponent("el-icon"),xe=resolveComponent("node-content"),Ie=resolveComponent("loading"),Fe=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${$.menuId}-${$.node.uid}`,role:"menuitem","aria-haspopup":!$.isLeaf,"aria-owns":$.isLeaf?null:$.menuId,"aria-expanded":$.inExpandingPath,tabindex:$.expandable?-1:void 0,class:normalizeClass([$.ns.b(),$.ns.is("selectable",$.checkStrictly),$.ns.is("active",$.node.checked),$.ns.is("disabled",!$.expandable),$.inExpandingPath&&"in-active-path",$.inCheckedPath&&"in-checked-path"]),onMouseenter:z[2]||(z[2]=(...ze)=>$.handleHoverExpand&&$.handleHoverExpand(...ze)),onFocus:z[3]||(z[3]=(...ze)=>$.handleHoverExpand&&$.handleHoverExpand(...ze)),onClick:z[4]||(z[4]=(...ze)=>$.handleClick&&$.handleClick(...ze))},[createCommentVNode(" prefix "),$.multiple?(openBlock(),createBlock(pe,{key:0,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:$.isDisabled,onClick:z[0]||(z[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":$.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):$.checkStrictly?(openBlock(),createBlock(_e,{key:1,"model-value":$.checkedNodeId,label:$.node.uid,disabled:$.isDisabled,"onUpdate:modelValue":$.handleSelectCheck,onClick:z[1]||(z[1]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[createCommentVNode(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),_hoisted_2$z]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):$.isLeaf&&$.node.checked?(openBlock(),createBlock($e,{key:2,class:normalizeClass($.ns.e("prefix"))},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(xe),createCommentVNode(" postfix "),$.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[$.node.loading?(openBlock(),createBlock($e,{key:0,class:normalizeClass([$.ns.is("loading"),$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Ie)]),_:1},8,["class"])):(openBlock(),createBlock($e,{key:1,class:normalizeClass(["arrow-right",$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Fe)]),_:1},8,["class"]))],64))],42,_hoisted_1$Q)}var ElCascaderNode=_export_sfc$1(_sfc_main$1I,[["render",_sfc_render$v],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$1H=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup($){const z=getCurrentInstance(),oe=useNamespace("cascader-menu"),{t:ae}=useLocale(),le=generateId();let ue=null,pe=null;const _e=inject(CASCADER_PANEL_INJECTION_KEY),Ce=ref(null),$e=computed(()=>!$.nodes.length),xe=computed(()=>!_e.initialLoaded),Ie=computed(()=>`cascader-menu-${le}-${$.index}`),Fe=At=>{ue=At.target},ze=At=>{if(!(!_e.isHoverMenu||!ue||!Ce.value))if(ue.contains(At.target)){Ue();const Lt=z.vnode.el,{left:hn}=Lt.getBoundingClientRect(),{offsetWidth:vn,offsetHeight:_n}=Lt,bn=At.clientX-hn,Sn=ue.offsetTop,Cn=Sn+ue.offsetHeight;Ce.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${bn} ${Sn} L${vn} 0 V${Sn} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${bn} ${Cn} L${vn} ${_n} V${Cn} Z" />
|
||
`}else pe||(pe=window.setTimeout(qe,_e.config.hoverThreshold))},Ue=()=>{pe&&(clearTimeout(pe),pe=null)},qe=()=>{Ce.value&&(Ce.value.innerHTML="",Ue())};return{ns:oe,panel:_e,hoverZone:Ce,isEmpty:$e,isLoading:xe,menuId:Ie,t:ae,handleExpand:Fe,handleMouseMove:ze,clearHoverZone:qe}}});function _sfc_render$u($,z,oe,ae,le,ue){const pe=resolveComponent("el-cascader-node"),_e=resolveComponent("loading"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-scrollbar");return openBlock(),createBlock($e,{key:$.menuId,tag:"ul",role:"menu",class:normalizeClass($.ns.b()),"wrap-class":$.ns.e("wrap"),"view-class":[$.ns.e("list"),$.ns.is("empty",$.isEmpty)],onMousemove:$.handleMouseMove,onMouseleave:$.clearHoverZone},{default:withCtx(()=>{var xe;return[(openBlock(!0),createElementBlock(Fragment,null,renderList($.nodes,Ie=>(openBlock(),createBlock(pe,{key:Ie.uid,node:Ie,"menu-id":$.menuId,onExpand:$.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),$.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-text"))},[createVNode(Ce,{size:"14",class:normalizeClass($.ns.is("loading"))},{default:withCtx(()=>[createVNode(_e)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString$1($.t("el.cascader.loading")),1)],2)):$.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1($.t("el.cascader.noData")),3)):(xe=$.panel)!=null&&xe.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass($.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc$1(_sfc_main$1H,[["render",_sfc_render$u],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uid=0;const calculatePathNodes=$=>{const z=[$];let{parent:oe}=$;for(;oe;)z.unshift(oe),oe=oe.parent;return z};let Node$1=class go{constructor(z,oe,ae,le=!1){this.data=z,this.config=oe,this.parent=ae,this.root=le,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:ue,label:pe,children:_e}=oe,Ce=z[_e],$e=calculatePathNodes(this);this.level=le?0:ae?ae.level+1:1,this.value=z[ue],this.label=z[pe],this.pathNodes=$e,this.pathValues=$e.map(xe=>xe.value),this.pathLabels=$e.map(xe=>xe.label),this.childrenData=Ce,this.children=(Ce||[]).map(xe=>new go(xe,oe,this)),this.loaded=!oe.lazy||this.isLeaf||!isEmpty(Ce)}get isDisabled(){const{data:z,parent:oe,config:ae}=this,{disabled:le,checkStrictly:ue}=ae;return(isFunction$5(le)?le(z,this):!!z[le])||!ue&&(oe==null?void 0:oe.isDisabled)}get isLeaf(){const{data:z,config:oe,childrenData:ae,loaded:le}=this,{lazy:ue,leaf:pe}=oe,_e=isFunction$5(pe)?pe(z,this):z[pe];return isUndefined$1(_e)?ue&&!le?!1:!(Array.isArray(ae)&&ae.length):!!_e}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(z){const{childrenData:oe,children:ae}=this,le=new go(z,this.config,this);return Array.isArray(oe)?oe.push(z):this.childrenData=[z],ae.push(le),le}calcText(z,oe){const ae=z?this.pathLabels.join(oe):this.label;return this.text=ae,ae}broadcast(z,...oe){const ae=`onParent${capitalize$1(z)}`;this.children.forEach(le=>{le&&(le.broadcast(z,...oe),le[ae]&&le[ae](...oe))})}emit(z,...oe){const{parent:ae}=this,le=`onChild${capitalize$1(z)}`;ae&&(ae[le]&&ae[le](...oe),ae.emit(z,...oe))}onParentCheck(z){this.isDisabled||this.setCheckState(z)}onChildCheck(){const{children:z}=this,oe=z.filter(le=>!le.isDisabled),ae=oe.length?oe.every(le=>le.checked):!1;this.setCheckState(ae)}setCheckState(z){const oe=this.children.length,ae=this.children.reduce((le,ue)=>{const pe=ue.checked?1:ue.indeterminate?.5:0;return le+pe},0);this.checked=this.loaded&&this.children.filter(le=>!le.isDisabled).every(le=>le.loaded&&le.checked)&&z,this.indeterminate=this.loaded&&ae!==oe&&ae>0}doCheck(z){if(this.checked===z)return;const{checkStrictly:oe,multiple:ae}=this.config;oe||!ae?this.checked=z:(this.broadcast("check",z),this.setCheckState(z),this.emit("check"))}};const flatNodes=($,z)=>$.reduce((oe,ae)=>(ae.isLeaf?oe.push(ae):(!z&&oe.push(ae),oe=oe.concat(flatNodes(ae.children,z))),oe),[]);class Store{constructor(z,oe){this.config=oe;const ae=(z||[]).map(le=>new Node$1(le,this.config));this.nodes=ae,this.allNodes=flatNodes(ae,!1),this.leafNodes=flatNodes(ae,!0)}getNodes(){return this.nodes}getFlattedNodes(z){return z?this.leafNodes:this.allNodes}appendNode(z,oe){const ae=oe?oe.appendChild(z):new Node$1(z,this.config);oe||this.nodes.push(ae),this.allNodes.push(ae),ae.isLeaf&&this.leafNodes.push(ae)}appendNodes(z,oe){z.forEach(ae=>this.appendNode(ae,oe))}getNodeByValue(z,oe=!1){return!z&&z!==0?null:this.getFlattedNodes(oe).find(le=>isEqual$1(le.value,z)||isEqual$1(le.pathValues,z))||null}getSameNode(z){return z&&this.getFlattedNodes(!1).find(({value:ae,level:le})=>isEqual$1(z.value,ae)&&z.level===le)||null}}const CommonProps=buildProps({modelValue:{type:definePropType([Number,String,Array])},options:{type:definePropType(Array),default:()=>[]},props:{type:definePropType(Object),default:()=>({})}}),DefaultProps={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:NOOP,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},useCascaderConfig=$=>computed(()=>({...DefaultProps,...$.props})),getMenuIndex=$=>{if(!$)return 0;const z=$.id.split("-");return Number(z[z.length-2])},checkNode=$=>{if(!$)return;const z=$.querySelector("input");z?z.click():isLeaf($)&&$.click()},sortByOriginalOrder=($,z)=>{const oe=z.slice(0),ae=oe.map(ue=>ue.uid),le=$.reduce((ue,pe)=>{const _e=ae.indexOf(pe.uid);return _e>-1&&(ue.push(pe),oe.splice(_e,1),ae.splice(_e,1)),ue},[]);return le.push(...oe),le},_sfc_main$1G=defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu},props:{...CommonProps,border:{type:Boolean,default:!0},renderLabel:Function},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"close","expand-change"],setup($,{emit:z,slots:oe}){let ae=!1;const le=useNamespace("cascader"),ue=useCascaderConfig($);let pe=null;const _e=ref(!0),Ce=ref([]),$e=ref(null),xe=ref([]),Ie=ref(null),Fe=ref([]),ze=computed(()=>ue.value.expandTrigger==="hover"),Ue=computed(()=>$.renderLabel||oe.default),qe=()=>{const{options:xn}=$,kn=ue.value;ae=!1,pe=new Store(xn,kn),xe.value=[pe.getNodes()],kn.lazy&&isEmpty($.options)?(_e.value=!1,At(void 0,Nn=>{Nn&&(pe=new Store(Nn,kn),xe.value=[pe.getNodes()]),_e.value=!0,En(!1,!0)})):En(!1,!0)},At=(xn,kn)=>{const Nn=ue.value;xn=xn||new Node$1({},Nn,void 0,!0),xn.loading=!0;const Bn=Dn=>{const In=xn,Ln=In.root?null:In;Dn&&(pe==null||pe.appendNodes(Dn,Ln)),In.loading=!1,In.loaded=!0,In.childrenData=In.childrenData||[],kn&&kn(Dn)};Nn.lazyLoad(xn,Bn)},Lt=(xn,kn)=>{var Nn;const{level:Bn}=xn,Dn=xe.value.slice(0,Bn);let In;xn.isLeaf?In=xn.pathNodes[Bn-2]:(In=xn,Dn.push(xn.children)),((Nn=Ie.value)==null?void 0:Nn.uid)!==(In==null?void 0:In.uid)&&(Ie.value=xn,xe.value=Dn,!kn&&z("expand-change",(xn==null?void 0:xn.pathValues)||[]))},hn=(xn,kn,Nn=!0)=>{const{checkStrictly:Bn,multiple:Dn}=ue.value,In=Fe.value[0];ae=!0,!Dn&&(In==null||In.doCheck(!1)),xn.doCheck(kn),Cn(),Nn&&!Dn&&!Bn&&z("close"),!Nn&&!Dn&&!Bn&&vn(xn)},vn=xn=>{xn&&(xn=xn.parent,vn(xn),xn&&Lt(xn))},_n=xn=>pe==null?void 0:pe.getFlattedNodes(xn),bn=xn=>{var kn;return(kn=_n(xn))==null?void 0:kn.filter(Nn=>Nn.checked!==!1)},Sn=()=>{Fe.value.forEach(xn=>xn.doCheck(!1)),Cn(),xe.value=xe.value.slice(0,1),Ie.value=null,z("expand-change",[])},Cn=()=>{var xn;const{checkStrictly:kn,multiple:Nn}=ue.value,Bn=Fe.value,Dn=bn(!kn),In=sortByOriginalOrder(Bn,Dn),Ln=In.map(Mn=>Mn.valueByOption);Fe.value=In,$e.value=Nn?Ln:(xn=Ln[0])!=null?xn:null},En=(xn=!1,kn=!1)=>{const{modelValue:Nn}=$,{lazy:Bn,multiple:Dn,checkStrictly:In}=ue.value,Ln=!In;if(!(!_e.value||ae||!kn&&isEqual$1(Nn,$e.value)))if(Bn&&!xn){const Vn=unique(flattenDeep(castArray(Nn))).map(Yn=>pe==null?void 0:pe.getNodeByValue(Yn)).filter(Yn=>!!Yn&&!Yn.loaded&&!Yn.loading);Vn.length?Vn.forEach(Yn=>{At(Yn,()=>En(!1,kn))}):En(!0,kn)}else{const Mn=Dn?castArray(Nn):[Nn],Vn=unique(Mn.map(Yn=>pe==null?void 0:pe.getNodeByValue(Yn,Ln)));$n(Vn,kn),$e.value=cloneDeep(Nn)}},$n=(xn,kn=!0)=>{const{checkStrictly:Nn}=ue.value,Bn=Fe.value,Dn=xn.filter(Mn=>!!Mn&&(Nn||Mn.isLeaf)),In=pe==null?void 0:pe.getSameNode(Ie.value),Ln=kn&&In||Dn[0];Ln?Ln.pathNodes.forEach(Mn=>Lt(Mn,!0)):Ie.value=null,Bn.forEach(Mn=>Mn.doCheck(!1)),Dn.forEach(Mn=>Mn.doCheck(!0)),Fe.value=Dn,nextTick(wn)},wn=()=>{isClient$2&&Ce.value.forEach(xn=>{const kn=xn==null?void 0:xn.$el;if(kn){const Nn=kn.querySelector(`.${le.namespace.value}-scrollbar__wrap`),Bn=kn.querySelector(`.${le.b("node")}.${le.is("active")}`)||kn.querySelector(`.${le.b("node")}.in-active-path`);scrollIntoView(Nn,Bn)}})},Tn=xn=>{const kn=xn.target,{code:Nn}=xn;switch(Nn){case EVENT_CODE.up:case EVENT_CODE.down:{xn.preventDefault();const Bn=Nn===EVENT_CODE.up?-1:1;focusNode(getSibling(kn,Bn,`.${le.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{xn.preventDefault();const Bn=Ce.value[getMenuIndex(kn)-1],Dn=Bn==null?void 0:Bn.$el.querySelector(`.${le.b("node")}[aria-expanded="true"]`);focusNode(Dn);break}case EVENT_CODE.right:{xn.preventDefault();const Bn=Ce.value[getMenuIndex(kn)+1],Dn=Bn==null?void 0:Bn.$el.querySelector(`.${le.b("node")}[tabindex="-1"]`);focusNode(Dn);break}case EVENT_CODE.enter:checkNode(kn);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:ue,expandingNode:Ie,checkedNodes:Fe,isHoverMenu:ze,initialLoaded:_e,renderLabelFn:Ue,lazyLoad:At,expandNode:Lt,handleCheckChange:hn})),watch([ue,()=>$.options],qe,{deep:!0,immediate:!0}),watch(()=>$.modelValue,()=>{ae=!1,En()},{deep:!0}),watch(()=>$e.value,xn=>{isEqual$1(xn,$.modelValue)||(z(UPDATE_MODEL_EVENT,xn),z(CHANGE_EVENT,xn))}),onBeforeUpdate(()=>Ce.value=[]),onMounted(()=>!isEmpty($.modelValue)&&En()),{ns:le,menuList:Ce,menus:xe,checkedNodes:Fe,handleKeyDown:Tn,handleCheckChange:hn,getFlattedNodes:_n,getCheckedNodes:bn,clearCheckedNodes:Sn,calculateCheckedValue:Cn,scrollToExpandingNode:wn}}});function _sfc_render$t($,z,oe,ae,le,ue){const pe=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("panel"),$.ns.is("bordered",$.border)]),onKeydown:z[0]||(z[0]=(..._e)=>$.handleKeyDown&&$.handleKeyDown(..._e))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.menus,(_e,Ce)=>(openBlock(),createBlock(pe,{key:Ce,ref_for:!0,ref:$e=>$.menuList[Ce]=$e,index:Ce,nodes:[..._e]},null,8,["index","nodes"]))),128))],34)}var CascaderPanel=_export_sfc$1(_sfc_main$1G,[["render",_sfc_render$t],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);CascaderPanel.install=$=>{$.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:$=>$ instanceof MouseEvent,click:$=>$ instanceof MouseEvent},__default__$14=defineComponent({name:"ElTag"}),_sfc_main$1F=defineComponent({...__default__$14,props:tagProps,emits:tagEmits,setup($,{emit:z}){const oe=$,ae=useFormSize(),le=useNamespace("tag"),ue=computed(()=>{const{type:Ce,hit:$e,effect:xe,closable:Ie,round:Fe}=oe;return[le.b(),le.is("closable",Ie),le.m(Ce),le.m(ae.value),le.m(xe),le.is("hit",$e),le.is("round",Fe)]}),pe=Ce=>{z("close",Ce)},_e=Ce=>{z("click",Ce)};return(Ce,$e)=>Ce.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ue)),style:normalizeStyle$1({backgroundColor:Ce.color}),onClick:_e},[createBaseVNode("span",{class:normalizeClass(unref(le).e("content"))},[renderSlot(Ce.$slots,"default")],2),Ce.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("close")),onClick:withModifiers(pe,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(le).namespace.value}-zoom-in-center`,appear:""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(ue)),style:normalizeStyle$1({backgroundColor:Ce.color}),onClick:_e},[createBaseVNode("span",{class:normalizeClass(unref(le).e("content"))},[renderSlot(Ce.$slots,"default")],2),Ce.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("close")),onClick:withModifiers(pe,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag=_export_sfc$1(_sfc_main$1F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag),cascaderProps=buildProps({...CommonProps,size:useSizeProp,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:definePropType(Function),default:($,z)=>$.text.includes(z)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:definePropType(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:useTooltipContentProps.teleported,tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),cascaderEmits={[UPDATE_MODEL_EVENT]:$=>!!$||$===null,[CHANGE_EVENT]:$=>!!$||$===null,focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,visibleChange:$=>isBoolean$3($),expandChange:$=>!!$,removeTag:$=>!!$},_hoisted_1$P={key:0},_hoisted_2$y=["placeholder","onKeydown"],_hoisted_3$k=["onClick"],COMPONENT_NAME$e="ElCascader",__default__$13=defineComponent({name:COMPONENT_NAME$e}),_sfc_main$1E=defineComponent({...__default__$13,props:cascaderProps,emits:cascaderEmits,setup($,{expose:z,emit:oe}){const ae=$,le={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:lr})=>{const{modifiersData:Jn,placement:rr}=lr;["right","left","bottom","top"].includes(rr)||(Jn.arrow.x=35)},requires:["arrow"]}]},ue=useAttrs$1();let pe=0,_e=0;const Ce=useNamespace("cascader"),$e=useNamespace("input"),{t:xe}=useLocale(),{form:Ie,formItem:Fe}=useFormItem(),ze=ref(null),Ue=ref(null),qe=ref(null),At=ref(null),Lt=ref(null),hn=ref(!1),vn=ref(!1),_n=ref(!1),bn=ref(!1),Sn=ref(""),Cn=ref(""),En=ref([]),$n=ref([]),wn=ref([]),Tn=ref(!1),xn=computed(()=>ue.style),kn=computed(()=>ae.disabled||(Ie==null?void 0:Ie.disabled)),Nn=computed(()=>ae.placeholder||xe("el.cascader.placeholder")),Bn=computed(()=>Cn.value||En.value.length>0||Tn.value?"":Nn.value),Dn=useFormSize(),In=computed(()=>["small"].includes(Dn.value)?"small":"default"),Ln=computed(()=>!!ae.props.multiple),Mn=computed(()=>!ae.filterable||Ln.value),Vn=computed(()=>Ln.value?Cn.value:Sn.value),Yn=computed(()=>{var lr;return((lr=At.value)==null?void 0:lr.checkedNodes)||[]}),Fn=computed(()=>!ae.clearable||kn.value||_n.value||!vn.value?!1:!!Yn.value.length),Xn=computed(()=>{const{showAllLevels:lr,separator:Jn}=ae,rr=Yn.value;return rr.length?Ln.value?"":rr[0].calcText(lr,Jn):""}),sr=computed({get(){return cloneDeep(ae.modelValue)},set(lr){oe(UPDATE_MODEL_EVENT,lr),oe(CHANGE_EVENT,lr),ae.validateEvent&&(Fe==null||Fe.validate("change").catch(Jn=>void 0))}}),vr=computed(()=>[Ce.b(),Ce.m(Dn.value),Ce.is("disabled",kn.value),ue.class]),ar=computed(()=>[$e.e("icon"),"icon-arrow-down",Ce.is("reverse",hn.value)]),qn=computed(()=>Ce.is("focus",hn.value||bn.value)),Gn=computed(()=>{var lr,Jn;return(Jn=(lr=ze.value)==null?void 0:lr.popperRef)==null?void 0:Jn.contentRef}),Wn=lr=>{var Jn,rr,$r;kn.value||(lr=lr??!hn.value,lr!==hn.value&&(hn.value=lr,(rr=(Jn=Ue.value)==null?void 0:Jn.input)==null||rr.setAttribute("aria-expanded",`${lr}`),lr?(Qn(),nextTick(($r=At.value)==null?void 0:$r.scrollToExpandingNode)):ae.filterable&&ur(),oe("visibleChange",lr)))},Qn=()=>{nextTick(()=>{var lr;(lr=ze.value)==null||lr.updatePopper()})},cr=()=>{_n.value=!1},jn=lr=>{const{showAllLevels:Jn,separator:rr}=ae;return{node:lr,key:lr.uid,text:lr.calcText(Jn,rr),hitState:!1,closable:!kn.value&&!lr.isDisabled,isCollapseTag:!1}},Zn=lr=>{var Jn;const rr=lr.node;rr.doCheck(!1),(Jn=At.value)==null||Jn.calculateCheckedValue(),oe("removeTag",rr.valueByOption)},nr=()=>{if(!Ln.value)return;const lr=Yn.value,Jn=[],rr=[];if(lr.forEach($r=>rr.push(jn($r))),$n.value=rr,lr.length){const[$r,...Ar]=lr,Fr=Ar.length;Jn.push(jn($r)),Fr&&(ae.collapseTags?Jn.push({key:-1,text:`+ ${Fr}`,closable:!1,isCollapseTag:!0}):Ar.forEach(_r=>Jn.push(jn(_r))))}En.value=Jn},hr=()=>{var lr,Jn;const{filterMethod:rr,showAllLevels:$r,separator:Ar}=ae,Fr=(Jn=(lr=At.value)==null?void 0:lr.getFlattedNodes(!ae.props.checkStrictly))==null?void 0:Jn.filter(_r=>_r.isDisabled?!1:(_r.calcText($r,Ar),rr(_r,Vn.value)));Ln.value&&(En.value.forEach(_r=>{_r.hitState=!1}),$n.value.forEach(_r=>{_r.hitState=!1})),_n.value=!0,wn.value=Fr,Qn()},gr=()=>{var lr;let Jn;_n.value&&Lt.value?Jn=Lt.value.$el.querySelector(`.${Ce.e("suggestion-item")}`):Jn=(lr=At.value)==null?void 0:lr.$el.querySelector(`.${Ce.b("node")}[tabindex="-1"]`),Jn&&(Jn.focus(),!_n.value&&Jn.click())},or=()=>{var lr,Jn;const rr=(lr=Ue.value)==null?void 0:lr.input,$r=qe.value,Ar=(Jn=Lt.value)==null?void 0:Jn.$el;if(!(!isClient$2||!rr)){if(Ar){const Fr=Ar.querySelector(`.${Ce.e("suggestion-list")}`);Fr.style.minWidth=`${rr.offsetWidth}px`}if($r){const{offsetHeight:Fr}=$r,_r=En.value.length>0?`${Math.max(Fr+6,pe)}px`:`${pe}px`;rr.style.height=_r,Qn()}}},wr=lr=>{var Jn;return(Jn=At.value)==null?void 0:Jn.getCheckedNodes(lr)},mr=lr=>{Qn(),oe("expandChange",lr)},Tr=lr=>{var Jn;const rr=(Jn=lr.target)==null?void 0:Jn.value;if(lr.type==="compositionend")Tn.value=!1,nextTick(()=>Cr(rr));else{const $r=rr[rr.length-1]||"";Tn.value=!isKorean($r)}},dr=lr=>{if(!Tn.value)switch(lr.code){case EVENT_CODE.enter:Wn();break;case EVENT_CODE.down:Wn(!0),nextTick(gr),lr.preventDefault();break;case EVENT_CODE.esc:hn.value===!0&&(lr.preventDefault(),lr.stopPropagation(),Wn(!1));break;case EVENT_CODE.tab:Wn(!1);break}},ir=()=>{var lr;(lr=At.value)==null||lr.clearCheckedNodes(),!hn.value&&ae.filterable&&ur(),Wn(!1)},ur=()=>{const{value:lr}=Xn;Sn.value=lr,Cn.value=lr},fr=lr=>{var Jn,rr;const{checked:$r}=lr;Ln.value?(Jn=At.value)==null||Jn.handleCheckChange(lr,!$r,!1):(!$r&&((rr=At.value)==null||rr.handleCheckChange(lr,!0,!1)),Wn(!1))},kr=lr=>{const Jn=lr.target,{code:rr}=lr;switch(rr){case EVENT_CODE.up:case EVENT_CODE.down:{const $r=rr===EVENT_CODE.up?-1:1;focusNode(getSibling(Jn,$r,`.${Ce.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:Jn.click();break}},Dr=()=>{const lr=En.value,Jn=lr[lr.length-1];_e=Cn.value?0:_e+1,!(!Jn||!_e||ae.collapseTags&&lr.length>1)&&(Jn.hitState?Zn(Jn):Jn.hitState=!0)},Lr=lr=>{const Jn=lr.target,rr=Ce.e("search-input");Jn.className===rr&&(bn.value=!0),oe("focus",lr)},Mr=lr=>{bn.value=!1,oe("blur",lr)},br=debounce(()=>{const{value:lr}=Vn;if(!lr)return;const Jn=ae.beforeFilter(lr);isPromise(Jn)?Jn.then(hr).catch(()=>{}):Jn!==!1?hr():cr()},ae.debounce),Cr=(lr,Jn)=>{!hn.value&&Wn(!0),!(Jn!=null&&Jn.isComposing)&&(lr?br():cr())};return watch(_n,Qn),watch([Yn,kn],nr),watch(En,()=>{nextTick(()=>or())}),watch(Xn,ur,{immediate:!0}),onMounted(()=>{const lr=Ue.value.input,Jn=Number.parseFloat(useCssVar($e.cssVarName("input-height"),lr).value)-2;pe=lr.offsetHeight||Jn,useResizeObserver(lr,or)}),z({getCheckedNodes:wr,cascaderPanelRef:At,togglePopperVisible:Wn,contentRef:Gn}),(lr,Jn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:ze,visible:hn.value,teleported:lr.teleported,"popper-class":[unref(Ce).e("dropdown"),lr.popperClass],"popper-options":le,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${unref(Ce).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:cr},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(unref(vr)),style:normalizeStyle$1(unref(xn)),onClick:Jn[5]||(Jn[5]=()=>Wn(unref(Mn)?void 0:!0)),onKeydown:dr,onMouseenter:Jn[6]||(Jn[6]=rr=>vn.value=!0),onMouseleave:Jn[7]||(Jn[7]=rr=>vn.value=!1)},[createVNode(unref(ElInput),{ref_key:"input",ref:Ue,modelValue:Sn.value,"onUpdate:modelValue":Jn[1]||(Jn[1]=rr=>Sn.value=rr),placeholder:unref(Bn),readonly:unref(Mn),disabled:unref(kn),"validate-event":!1,size:unref(Dn),class:normalizeClass(unref(qn)),tabindex:unref(Ln)&&lr.filterable&&!unref(kn)?-1:void 0,onCompositionstart:Tr,onCompositionupdate:Tr,onCompositionend:Tr,onFocus:Lr,onBlur:Mr,onInput:Cr},{suffix:withCtx(()=>[unref(Fn)?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref($e).e("icon"),"icon-circle-close"]),onClick:withModifiers(ir,["stop"])},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onClick"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(unref(ar)),onClick:Jn[0]||(Jn[0]=withModifiers(rr=>Wn(),["stop"]))},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),unref(Ln)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:qe,class:normalizeClass(unref(Ce).e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(En.value,rr=>(openBlock(),createBlock(unref(ElTag),{key:rr.key,type:lr.tagType,size:unref(In),hit:rr.hitState,closable:rr.closable,"disable-transitions":"",onClose:$r=>Zn(rr)},{default:withCtx(()=>[rr.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$P,toDisplayString$1(rr.text),1)):(openBlock(),createBlock(unref(ElTooltip),{key:1,disabled:hn.value||!lr.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(rr.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($n.value.slice(1),($r,Ar)=>(openBlock(),createElementBlock("div",{key:Ar,class:normalizeClass(unref(Ce).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:$r.key,class:"in-tooltip",type:lr.tagType,size:unref(In),hit:$r.hitState,closable:$r.closable,"disable-transitions":"",onClose:Fr=>Zn($r)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1($r.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),lr.filterable&&!unref(kn)?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Jn[2]||(Jn[2]=rr=>Cn.value=rr),type:"text",class:normalizeClass(unref(Ce).e("search-input")),placeholder:unref(Xn)?"":unref(Nn),onInput:Jn[3]||(Jn[3]=rr=>Cr(Cn.value,rr)),onClick:Jn[4]||(Jn[4]=withModifiers(rr=>Wn(!0),["stop"])),onKeydown:withKeys(Dr,["delete"]),onCompositionstart:Tr,onCompositionupdate:Tr,onCompositionend:Tr,onFocus:Lr,onBlur:Mr},null,42,_hoisted_2$y)),[[vModelText,Cn.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),()=>Wn(!1),unref(Gn)]])]),content:withCtx(()=>[withDirectives(createVNode(unref(_CascaderPanel),{ref_key:"cascaderPanelRef",ref:At,modelValue:unref(sr),"onUpdate:modelValue":Jn[8]||(Jn[8]=rr=>isRef(sr)?sr.value=rr:null),options:lr.options,props:ae.props,border:!1,"render-label":lr.$slots.default,onExpandChange:mr,onClose:Jn[9]||(Jn[9]=rr=>lr.$nextTick(()=>Wn(!1)))},null,8,["modelValue","options","props","render-label"]),[[vShow,!_n.value]]),lr.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:0,ref_key:"suggestionPanel",ref:Lt,tag:"ul",class:normalizeClass(unref(Ce).e("suggestion-panel")),"view-class":unref(Ce).e("suggestion-list"),onKeydown:kr},{default:withCtx(()=>[wn.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(wn.value,rr=>(openBlock(),createElementBlock("li",{key:rr.uid,class:normalizeClass([unref(Ce).e("suggestion-item"),unref(Ce).is("checked",rr.checked)]),tabindex:-1,onClick:$r=>fr(rr)},[createBaseVNode("span",null,toDisplayString$1(rr.text),1),rr.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$k))),128)):renderSlot(lr.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref(Ce).e("empty-text"))},toDisplayString$1(unref(xe)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,_n.value]]):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Cascader=_export_sfc$1(_sfc_main$1E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Cascader.install=$=>{$.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":$=>isBoolean$3($),[CHANGE_EVENT]:$=>isBoolean$3($)},__default__$12=defineComponent({name:"ElCheckTag"}),_sfc_main$1D=defineComponent({...__default__$12,props:checkTagProps,emits:checkTagEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("check-tag"),le=computed(()=>[ae.b(),ae.is("checked",oe.checked)]),ue=()=>{const pe=!oe.checked;z(CHANGE_EVENT,pe),z("update:checked",pe)};return(pe,_e)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le)),onClick:ue},[renderSlot(pe.$slots,"default")],2))}});var CheckTag=_export_sfc$1(_sfc_main$1D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),rowContextKey=Symbol("rowContextKey"),RowJustify=["start","center","end","space-around","space-between","space-evenly"],RowAlign=["top","middle","bottom"],rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:RowJustify,default:"start"},align:{type:String,values:RowAlign,default:"top"}}),__default__$11=defineComponent({name:"ElRow"}),_sfc_main$1C=defineComponent({...__default__$11,props:rowProps,setup($){const z=$,oe=useNamespace("row"),ae=computed(()=>z.gutter);provide(rowContextKey,{gutter:ae});const le=computed(()=>{const pe={};return z.gutter&&(pe.marginRight=pe.marginLeft=`-${z.gutter/2}px`),pe}),ue=computed(()=>[oe.b(),oe.is(`justify-${z.justify}`,z.justify!=="start"),oe.is(`align-${z.align}`,z.align!=="top")]);return(pe,_e)=>(openBlock(),createBlock(resolveDynamicComponent(pe.tag),{class:normalizeClass(unref(ue)),style:normalizeStyle$1(unref(le))},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["class","style"]))}});var Row=_export_sfc$1(_sfc_main$1C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ElRow=withInstall(Row),colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:()=>mutable({})},sm:{type:definePropType([Number,Object]),default:()=>mutable({})},md:{type:definePropType([Number,Object]),default:()=>mutable({})},lg:{type:definePropType([Number,Object]),default:()=>mutable({})},xl:{type:definePropType([Number,Object]),default:()=>mutable({})}}),__default__$10=defineComponent({name:"ElCol"}),_sfc_main$1B=defineComponent({...__default__$10,props:colProps,setup($){const z=$,{gutter:oe}=inject(rowContextKey,{gutter:computed(()=>0)}),ae=useNamespace("col"),le=computed(()=>{const pe={};return oe.value&&(pe.paddingLeft=pe.paddingRight=`${oe.value/2}px`),pe}),ue=computed(()=>{const pe=[];return["span","offset","pull","push"].forEach($e=>{const xe=z[$e];isNumber$5(xe)&&($e==="span"?pe.push(ae.b(`${z[$e]}`)):xe>0&&pe.push(ae.b(`${$e}-${z[$e]}`)))}),["xs","sm","md","lg","xl"].forEach($e=>{isNumber$5(z[$e])?pe.push(ae.b(`${$e}-${z[$e]}`)):isObject$8(z[$e])&&Object.entries(z[$e]).forEach(([xe,Ie])=>{pe.push(xe!=="span"?ae.b(`${$e}-${xe}-${Ie}`):ae.b(`${$e}-${Ie}`))})}),oe.value&&pe.push(ae.is("guttered")),[ae.b(),pe]});return(pe,_e)=>(openBlock(),createBlock(resolveDynamicComponent(pe.tag),{class:normalizeClass(unref(ue)),style:normalizeStyle$1(unref(le))},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc$1(_sfc_main$1B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=$=>typeof isNumber$5($),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),useCollapse=($,z)=>{const oe=ref(castArray$1($.modelValue)),ae=ue=>{oe.value=ue;const pe=$.accordion?oe.value[0]:oe.value;z(UPDATE_MODEL_EVENT,pe),z(CHANGE_EVENT,pe)},le=ue=>{if($.accordion)ae([oe.value[0]===ue?"":ue]);else{const pe=[...oe.value],_e=pe.indexOf(ue);_e>-1?pe.splice(_e,1):pe.push(ue),ae(pe)}};return watch(()=>$.modelValue,()=>oe.value=castArray$1($.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:oe,handleItemClick:le}),{activeNames:oe,setActiveNames:ae}},useCollapseDOM=()=>{const $=useNamespace("collapse");return{rootKls:computed(()=>$.b())}},__default__$$=defineComponent({name:"ElCollapse"}),_sfc_main$1A=defineComponent({...__default__$$,props:collapseProps,emits:collapseEmits,setup($,{expose:z,emit:oe}){const ae=$,{activeNames:le,setActiveNames:ue}=useCollapse(ae,oe),{rootKls:pe}=useCollapseDOM();return z({activeNames:le,setActiveNames:ue}),(_e,Ce)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe)),role:"tablist","aria-multiselectable":"true"},[renderSlot(_e.$slots,"default")],2))}});var Collapse=_export_sfc$1(_sfc_main$1A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const __default__$_=defineComponent({name:"ElCollapseTransition"}),_sfc_main$1z=defineComponent({...__default__$_,setup($){const z=useNamespace("collapse-transition"),oe={beforeEnter(ae){ae.dataset||(ae.dataset={}),ae.dataset.oldPaddingTop=ae.style.paddingTop,ae.dataset.oldPaddingBottom=ae.style.paddingBottom,ae.style.maxHeight=0,ae.style.paddingTop=0,ae.style.paddingBottom=0},enter(ae){ae.dataset.oldOverflow=ae.style.overflow,ae.scrollHeight!==0?(ae.style.maxHeight=`${ae.scrollHeight}px`,ae.style.paddingTop=ae.dataset.oldPaddingTop,ae.style.paddingBottom=ae.dataset.oldPaddingBottom):(ae.style.maxHeight=0,ae.style.paddingTop=ae.dataset.oldPaddingTop,ae.style.paddingBottom=ae.dataset.oldPaddingBottom),ae.style.overflow="hidden"},afterEnter(ae){ae.style.maxHeight="",ae.style.overflow=ae.dataset.oldOverflow},beforeLeave(ae){ae.dataset||(ae.dataset={}),ae.dataset.oldPaddingTop=ae.style.paddingTop,ae.dataset.oldPaddingBottom=ae.style.paddingBottom,ae.dataset.oldOverflow=ae.style.overflow,ae.style.maxHeight=`${ae.scrollHeight}px`,ae.style.overflow="hidden"},leave(ae){ae.scrollHeight!==0&&(ae.style.maxHeight=0,ae.style.paddingTop=0,ae.style.paddingBottom=0)},afterLeave(ae){ae.style.maxHeight="",ae.style.overflow=ae.dataset.oldOverflow,ae.style.paddingTop=ae.dataset.oldPaddingTop,ae.style.paddingBottom=ae.dataset.oldPaddingBottom}};return(ae,le)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(z).b()},toHandlers(oe)),{default:withCtx(()=>[renderSlot(ae.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc$1(_sfc_main$1z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CollapseTransition.install=$=>{$.component(CollapseTransition.name,CollapseTransition)};const _CollapseTransition=CollapseTransition,ElCollapseTransition=_CollapseTransition,collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:()=>generateId()},disabled:Boolean}),useCollapseItem=$=>{const z=inject(collapseContextKey),oe=ref(!1),ae=ref(!1),le=ref(generateId()),ue=computed(()=>z==null?void 0:z.activeNames.value.includes($.name));return{focusing:oe,id:le,isActive:ue,handleFocus:()=>{setTimeout(()=>{ae.value?ae.value=!1:oe.value=!0},50)},handleHeaderClick:()=>{$.disabled||(z==null||z.handleItemClick($.name),oe.value=!1,ae.value=!0)},handleEnterClick:()=>{z==null||z.handleItemClick($.name)}}},useCollapseItemDOM=($,{focusing:z,isActive:oe,id:ae})=>{const le=useNamespace("collapse"),ue=computed(()=>[le.b("item"),le.is("active",unref(oe)),le.is("disabled",$.disabled)]),pe=computed(()=>[le.be("item","header"),le.is("active",unref(oe)),{focusing:unref(z)&&!$.disabled}]),_e=computed(()=>[le.be("item","arrow"),le.is("active",unref(oe))]),Ce=computed(()=>le.be("item","wrap")),$e=computed(()=>le.be("item","content")),xe=computed(()=>le.b(`content-${unref(ae)}`)),Ie=computed(()=>le.b(`head-${unref(ae)}`));return{arrowKls:_e,headKls:pe,rootKls:ue,itemWrapperKls:Ce,itemContentKls:$e,scopedContentId:xe,scopedHeadId:Ie}},_hoisted_1$O=["aria-expanded","aria-controls","aria-describedby"],_hoisted_2$x=["id","tabindex"],_hoisted_3$j=["id","aria-hidden","aria-labelledby"],__default__$Z=defineComponent({name:"ElCollapseItem"}),_sfc_main$1y=defineComponent({...__default__$Z,props:collapseItemProps,setup($,{expose:z}){const oe=$,{focusing:ae,id:le,isActive:ue,handleFocus:pe,handleHeaderClick:_e,handleEnterClick:Ce}=useCollapseItem(oe),{arrowKls:$e,headKls:xe,rootKls:Ie,itemWrapperKls:Fe,itemContentKls:ze,scopedContentId:Ue,scopedHeadId:qe}=useCollapseItemDOM(oe,{focusing:ae,isActive:ue,id:le});return z({isActive:ue}),(At,Lt)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ie))},[createBaseVNode("div",{role:"tab","aria-expanded":unref(ue),"aria-controls":unref(Ue),"aria-describedby":unref(Ue)},[createBaseVNode("div",{id:unref(qe),class:normalizeClass(unref(xe)),role:"button",tabindex:At.disabled?-1:0,onClick:Lt[0]||(Lt[0]=(...hn)=>unref(_e)&&unref(_e)(...hn)),onKeypress:Lt[1]||(Lt[1]=withKeys(withModifiers((...hn)=>unref(Ce)&&unref(Ce)(...hn),["stop","prevent"]),["space","enter"])),onFocus:Lt[2]||(Lt[2]=(...hn)=>unref(pe)&&unref(pe)(...hn)),onBlur:Lt[3]||(Lt[3]=hn=>ae.value=!1)},[renderSlot(At.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(At.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass(unref($e))},{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1},8,["class"])],42,_hoisted_2$x)],8,_hoisted_1$O),createVNode(unref(_CollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(Ue),class:normalizeClass(unref(Fe)),role:"tabpanel","aria-hidden":!unref(ue),"aria-labelledby":unref(qe)},[createBaseVNode("div",{class:normalizeClass(unref(ze))},[renderSlot(At.$slots,"default")],2)],10,_hoisted_3$j),[[vShow,unref(ue)]])]),_:3})],2))}});var CollapseItem=_export_sfc$1(_sfc_main$1y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const ElCollapse=withInstall(Collapse,{CollapseItem}),ElCollapseItem=withNoopInstall(CollapseItem),alphaSliderProps=buildProps({color:{type:definePropType(Object),required:!0},vertical:{type:Boolean,default:!1}});let isDragging=!1;function draggable($,z){if(!isClient$2)return;const oe=function(ue){var pe;(pe=z.drag)==null||pe.call(z,ue)},ae=function(ue){var pe;document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ae),document.removeEventListener("touchmove",oe),document.removeEventListener("touchend",ae),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(pe=z.end)==null||pe.call(z,ue)},le=function(ue){var pe;isDragging||(ue.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ae),document.addEventListener("touchmove",oe),document.addEventListener("touchend",ae),isDragging=!0,(pe=z.start)==null||pe.call(z,ue))};$.addEventListener("mousedown",le),$.addEventListener("touchstart",le)}const useAlphaSlider=$=>{const z=getCurrentInstance(),oe=shallowRef(),ae=shallowRef();function le(pe){pe.target!==oe.value&&ue(pe)}function ue(pe){if(!ae.value||!oe.value)return;const Ce=z.vnode.el.getBoundingClientRect(),{clientX:$e,clientY:xe}=getClientXY(pe);if($.vertical){let Ie=xe-Ce.top;Ie=Math.max(oe.value.offsetHeight/2,Ie),Ie=Math.min(Ie,Ce.height-oe.value.offsetHeight/2),$.color.set("alpha",Math.round((Ie-oe.value.offsetHeight/2)/(Ce.height-oe.value.offsetHeight)*100))}else{let Ie=$e-Ce.left;Ie=Math.max(oe.value.offsetWidth/2,Ie),Ie=Math.min(Ie,Ce.width-oe.value.offsetWidth/2),$.color.set("alpha",Math.round((Ie-oe.value.offsetWidth/2)/(Ce.width-oe.value.offsetWidth)*100))}}return{thumb:oe,bar:ae,handleDrag:ue,handleClick:le}},useAlphaSliderDOM=($,{bar:z,thumb:oe,handleDrag:ae})=>{const le=getCurrentInstance(),ue=useNamespace("color-alpha-slider"),pe=ref(0),_e=ref(0),Ce=ref();function $e(){if(!oe.value||$.vertical)return 0;const hn=le.vnode.el,vn=$.color.get("alpha");return hn?Math.round(vn*(hn.offsetWidth-oe.value.offsetWidth/2)/100):0}function xe(){if(!oe.value)return 0;const hn=le.vnode.el;if(!$.vertical)return 0;const vn=$.color.get("alpha");return hn?Math.round(vn*(hn.offsetHeight-oe.value.offsetHeight/2)/100):0}function Ie(){if($.color&&$.color.value){const{r:hn,g:vn,b:_n}=$.color.toRgb();return`linear-gradient(to right, rgba(${hn}, ${vn}, ${_n}, 0) 0%, rgba(${hn}, ${vn}, ${_n}, 1) 100%)`}return""}function Fe(){pe.value=$e(),_e.value=xe(),Ce.value=Ie()}onMounted(()=>{if(!z.value||!oe.value)return;const hn={drag:vn=>{ae(vn)},end:vn=>{ae(vn)}};draggable(z.value,hn),draggable(oe.value,hn),Fe()}),watch(()=>$.color.get("alpha"),()=>Fe()),watch(()=>$.color.value,()=>Fe());const ze=computed(()=>[ue.b(),ue.is("vertical",$.vertical)]),Ue=computed(()=>ue.e("bar")),qe=computed(()=>ue.e("thumb")),At=computed(()=>({background:Ce.value})),Lt=computed(()=>({left:addUnit(pe.value),top:addUnit(_e.value)}));return{rootKls:ze,barKls:Ue,barStyle:At,thumbKls:qe,thumbStyle:Lt,update:Fe}},COMPONENT_NAME$d="ElColorAlphaSlider",__default__$Y=defineComponent({name:COMPONENT_NAME$d}),_sfc_main$1x=defineComponent({...__default__$Y,props:alphaSliderProps,setup($,{expose:z}){const oe=$,{bar:ae,thumb:le,handleDrag:ue,handleClick:pe}=useAlphaSlider(oe),{rootKls:_e,barKls:Ce,barStyle:$e,thumbKls:xe,thumbStyle:Ie,update:Fe}=useAlphaSliderDOM(oe,{bar:ae,thumb:le,handleDrag:ue});return z({update:Fe,bar:ae,thumb:le}),(ze,Ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e))},[createBaseVNode("div",{ref_key:"bar",ref:ae,class:normalizeClass(unref(Ce)),style:normalizeStyle$1(unref($e)),onClick:Ue[0]||(Ue[0]=(...qe)=>unref(pe)&&unref(pe)(...qe))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:le,class:normalizeClass(unref(xe)),style:normalizeStyle$1(unref(Ie))},null,6)],2))}});var AlphaSlider=_export_sfc$1(_sfc_main$1x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const _sfc_main$1w=defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup($){const z=useNamespace("color-hue-slider"),oe=getCurrentInstance(),ae=ref(),le=ref(),ue=ref(0),pe=ref(0),_e=computed(()=>$.color.get("hue"));watch(()=>_e.value,()=>{Fe()});function Ce(ze){ze.target!==ae.value&&$e(ze)}function $e(ze){if(!le.value||!ae.value)return;const qe=oe.vnode.el.getBoundingClientRect(),{clientX:At,clientY:Lt}=getClientXY(ze);let hn;if($.vertical){let vn=Lt-qe.top;vn=Math.min(vn,qe.height-ae.value.offsetHeight/2),vn=Math.max(ae.value.offsetHeight/2,vn),hn=Math.round((vn-ae.value.offsetHeight/2)/(qe.height-ae.value.offsetHeight)*360)}else{let vn=At-qe.left;vn=Math.min(vn,qe.width-ae.value.offsetWidth/2),vn=Math.max(ae.value.offsetWidth/2,vn),hn=Math.round((vn-ae.value.offsetWidth/2)/(qe.width-ae.value.offsetWidth)*360)}$.color.set("hue",hn)}function xe(){if(!ae.value)return 0;const ze=oe.vnode.el;if($.vertical)return 0;const Ue=$.color.get("hue");return ze?Math.round(Ue*(ze.offsetWidth-ae.value.offsetWidth/2)/360):0}function Ie(){if(!ae.value)return 0;const ze=oe.vnode.el;if(!$.vertical)return 0;const Ue=$.color.get("hue");return ze?Math.round(Ue*(ze.offsetHeight-ae.value.offsetHeight/2)/360):0}function Fe(){ue.value=xe(),pe.value=Ie()}return onMounted(()=>{if(!le.value||!ae.value)return;const ze={drag:Ue=>{$e(Ue)},end:Ue=>{$e(Ue)}};draggable(le.value,ze),draggable(ae.value,ze),Fe()}),{bar:le,thumb:ae,thumbLeft:ue,thumbTop:pe,hueValue:_e,handleClick:Ce,update:Fe,ns:z}}});function _sfc_render$s($,z,oe,ae,le,ue){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("vertical",$.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass($.ns.e("bar")),onClick:z[0]||(z[0]=(...pe)=>$.handleClick&&$.handleClick(...pe))},null,2),createBaseVNode("div",{ref:"thumb",class:normalizeClass($.ns.e("thumb")),style:normalizeStyle$1({left:$.thumbLeft+"px",top:$.thumbTop+"px"})},null,6)],2)}var HueSlider=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$s],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const colorPickerProps=buildProps({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:useSizeProp,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0}}),colorPickerEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNil($),[CHANGE_EVENT]:$=>isString$7($)||isNil($),activeChange:$=>isString$7($)||isNil($)},colorPickerContextKey=Symbol("colorPickerContextKey"),hsv2hsl=function($,z,oe){return[$,z*oe/(($=(2-z)*oe)<1?$:2-$)||0,$/2]},isOnePointZero=function($){return typeof $=="string"&&$.includes(".")&&Number.parseFloat($)===1},isPercentage=function($){return typeof $=="string"&&$.includes("%")},bound01=function($,z){isOnePointZero($)&&($="100%");const oe=isPercentage($);return $=Math.min(z,Math.max(0,Number.parseFloat(`${$}`))),oe&&($=Number.parseInt(`${$*z}`,10)/100),Math.abs($-z)<1e-6?1:$%z/Number.parseFloat(z)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=$=>{$=Math.min(Math.round($),255);const z=Math.floor($/16),oe=$%16;return`${INT_HEX_MAP[z]||z}${INT_HEX_MAP[oe]||oe}`},toHex$1=function({r:$,g:z,b:oe}){return Number.isNaN(+$)||Number.isNaN(+z)||Number.isNaN(+oe)?"":`#${hexOne($)}${hexOne(z)}${hexOne(oe)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function($){return $.length===2?(HEX_INT_MAP[$[0].toUpperCase()]||+$[0])*16+(HEX_INT_MAP[$[1].toUpperCase()]||+$[1]):HEX_INT_MAP[$[1].toUpperCase()]||+$[1]},hsl2hsv=function($,z,oe){z=z/100,oe=oe/100;let ae=z;const le=Math.max(oe,.01);oe*=2,z*=oe<=1?oe:2-oe,ae*=le<=1?le:2-le;const ue=(oe+z)/2,pe=oe===0?2*ae/(le+ae):2*z/(oe+z);return{h:$,s:pe*100,v:ue*100}},rgb2hsv=($,z,oe)=>{$=bound01($,255),z=bound01(z,255),oe=bound01(oe,255);const ae=Math.max($,z,oe),le=Math.min($,z,oe);let ue;const pe=ae,_e=ae-le,Ce=ae===0?0:_e/ae;if(ae===le)ue=0;else{switch(ae){case $:{ue=(z-oe)/_e+(z<oe?6:0);break}case z:{ue=(oe-$)/_e+2;break}case oe:{ue=($-z)/_e+4;break}}ue/=6}return{h:ue*360,s:Ce*100,v:pe*100}},hsv2rgb=function($,z,oe){$=bound01($,360)*6,z=bound01(z,100),oe=bound01(oe,100);const ae=Math.floor($),le=$-ae,ue=oe*(1-z),pe=oe*(1-le*z),_e=oe*(1-(1-le)*z),Ce=ae%6,$e=[oe,pe,ue,ue,_e,oe][Ce],xe=[_e,oe,oe,pe,ue,ue][Ce],Ie=[ue,ue,_e,oe,oe,pe][Ce];return{r:Math.round($e*255),g:Math.round(xe*255),b:Math.round(Ie*255)}};class Color{constructor(z={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const oe in z)hasOwn$4(z,oe)&&(this[oe]=z[oe]);z.value?this.fromString(z.value):this.doOnChange()}set(z,oe){if(arguments.length===1&&typeof z=="object"){for(const ae in z)hasOwn$4(z,ae)&&this.set(ae,z[ae]);return}this[`_${z}`]=oe,this.doOnChange()}get(z){return z==="alpha"?Math.floor(this[`_${z}`]):this[`_${z}`]}toRgb(){return hsv2rgb(this._hue,this._saturation,this._value)}fromString(z){if(!z){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const oe=(ae,le,ue)=>{this._hue=Math.max(0,Math.min(360,ae)),this._saturation=Math.max(0,Math.min(100,le)),this._value=Math.max(0,Math.min(100,ue)),this.doOnChange()};if(z.includes("hsl")){const ae=z.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,ue)=>ue>2?Number.parseFloat(le):Number.parseInt(le,10));if(ae.length===4?this._alpha=Number.parseFloat(ae[3])*100:ae.length===3&&(this._alpha=100),ae.length>=3){const{h:le,s:ue,v:pe}=hsl2hsv(ae[0],ae[1],ae[2]);oe(le,ue,pe)}}else if(z.includes("hsv")){const ae=z.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,ue)=>ue>2?Number.parseFloat(le):Number.parseInt(le,10));ae.length===4?this._alpha=Number.parseFloat(ae[3])*100:ae.length===3&&(this._alpha=100),ae.length>=3&&oe(ae[0],ae[1],ae[2])}else if(z.includes("rgb")){const ae=z.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,ue)=>ue>2?Number.parseFloat(le):Number.parseInt(le,10));if(ae.length===4?this._alpha=Number.parseFloat(ae[3])*100:ae.length===3&&(this._alpha=100),ae.length>=3){const{h:le,s:ue,v:pe}=rgb2hsv(ae[0],ae[1],ae[2]);oe(le,ue,pe)}}else if(z.includes("#")){const ae=z.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(ae))return;let le,ue,pe;ae.length===3?(le=parseHexChannel(ae[0]+ae[0]),ue=parseHexChannel(ae[1]+ae[1]),pe=parseHexChannel(ae[2]+ae[2])):(ae.length===6||ae.length===8)&&(le=parseHexChannel(ae.slice(0,2)),ue=parseHexChannel(ae.slice(2,4)),pe=parseHexChannel(ae.slice(4,6))),ae.length===8?this._alpha=parseHexChannel(ae.slice(6))/255*100:(ae.length===3||ae.length===6)&&(this._alpha=100);const{h:_e,s:Ce,v:$e}=rgb2hsv(le,ue,pe);oe(_e,Ce,$e)}}compare(z){return Math.abs(z._hue-this._hue)<2&&Math.abs(z._saturation-this._saturation)<1&&Math.abs(z._value-this._value)<1&&Math.abs(z._alpha-this._alpha)<1}doOnChange(){const{_hue:z,_saturation:oe,_value:ae,_alpha:le,format:ue}=this;if(this.enableAlpha)switch(ue){case"hsl":{const pe=hsv2hsl(z,oe/100,ae/100);this.value=`hsla(${z}, ${Math.round(pe[1]*100)}%, ${Math.round(pe[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${z}, ${Math.round(oe)}%, ${Math.round(ae)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex$1(hsv2rgb(z,oe,ae))}${hexOne(le*255/100)}`;break}default:{const{r:pe,g:_e,b:Ce}=hsv2rgb(z,oe,ae);this.value=`rgba(${pe}, ${_e}, ${Ce}, ${this.get("alpha")/100})`}}else switch(ue){case"hsl":{const pe=hsv2hsl(z,oe/100,ae/100);this.value=`hsl(${z}, ${Math.round(pe[1]*100)}%, ${Math.round(pe[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${z}, ${Math.round(oe)}%, ${Math.round(ae)}%)`;break}case"rgb":{const{r:pe,g:_e,b:Ce}=hsv2rgb(z,oe,ae);this.value=`rgb(${pe}, ${_e}, ${Ce})`;break}default:this.value=toHex$1(hsv2rgb(z,oe,ae))}}}const _sfc_main$1v=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup($){const z=useNamespace("color-predefine"),{currentColor:oe}=inject(colorPickerContextKey),ae=ref(ue($.colors,$.color));watch(()=>oe.value,pe=>{const _e=new Color;_e.fromString(pe),ae.value.forEach(Ce=>{Ce.selected=_e.compare(Ce)})}),watchEffect(()=>{ae.value=ue($.colors,$.color)});function le(pe){$.color.fromString($.colors[pe])}function ue(pe,_e){return pe.map(Ce=>{const $e=new Color;return $e.enableAlpha=!0,$e.format="rgba",$e.fromString(Ce),$e.selected=$e.value===_e.value,$e})}return{rgbaColors:ae,handleSelect:le,ns:z}}}),_hoisted_1$N=["onClick"];function _sfc_render$r($,z,oe,ae,le,ue){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.rgbaColors,(pe,_e)=>(openBlock(),createElementBlock("div",{key:$.colors[_e],class:normalizeClass([$.ns.e("color-selector"),$.ns.is("alpha",pe._alpha<100),{selected:pe.selected}]),onClick:Ce=>$.handleSelect(_e)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:pe.value})},null,4)],10,_hoisted_1$N))),128))],2)],2)}var Predefine=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$r],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _sfc_main$1u=defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup($){const z=useNamespace("color-svpanel"),oe=getCurrentInstance(),ae=ref(0),le=ref(0),ue=ref("hsl(0, 100%, 50%)"),pe=computed(()=>{const $e=$.color.get("hue"),xe=$.color.get("value");return{hue:$e,value:xe}});function _e(){const $e=$.color.get("saturation"),xe=$.color.get("value"),Ie=oe.vnode.el,{clientWidth:Fe,clientHeight:ze}=Ie;le.value=$e*Fe/100,ae.value=(100-xe)*ze/100,ue.value=`hsl(${$.color.get("hue")}, 100%, 50%)`}function Ce($e){const Ie=oe.vnode.el.getBoundingClientRect(),{clientX:Fe,clientY:ze}=getClientXY($e);let Ue=Fe-Ie.left,qe=ze-Ie.top;Ue=Math.max(0,Ue),Ue=Math.min(Ue,Ie.width),qe=Math.max(0,qe),qe=Math.min(qe,Ie.height),le.value=Ue,ae.value=qe,$.color.set({saturation:Ue/Ie.width*100,value:100-qe/Ie.height*100})}return watch(()=>pe.value,()=>{_e()}),onMounted(()=>{draggable(oe.vnode.el,{drag:$e=>{Ce($e)},end:$e=>{Ce($e)}}),_e()}),{cursorTop:ae,cursorLeft:le,background:ue,colorValue:pe,handleDrag:Ce,update:_e,ns:z}}}),_hoisted_1$M=createBaseVNode("div",null,null,-1),_hoisted_2$w=[_hoisted_1$M];function _sfc_render$q($,z,oe,ae,le,ue){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b()),style:normalizeStyle$1({backgroundColor:$.background})},[createBaseVNode("div",{class:normalizeClass($.ns.e("white"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("black"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("cursor")),style:normalizeStyle$1({top:$.cursorTop+"px",left:$.cursorLeft+"px"})},_hoisted_2$w,6)],6)}var SvPanel=_export_sfc$1(_sfc_main$1u,[["render",_sfc_render$q],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _hoisted_1$L=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],__default__$X=defineComponent({name:"ElColorPicker"}),_sfc_main$1t=defineComponent({...__default__$X,props:colorPickerProps,emits:colorPickerEmits,setup($,{expose:z,emit:oe}){const ae=$,{t:le}=useLocale(),ue=useNamespace("color"),{formItem:pe}=useFormItem(),_e=useFormSize(),Ce=useFormDisabled(),{inputId:$e,isLabeledByFormItem:xe}=useFormItemInputId(ae,{formItemContext:pe}),Ie=ref(),Fe=ref(),ze=ref(),Ue=ref();let qe=!0;const At=reactive(new Color({enableAlpha:ae.showAlpha,format:ae.colorFormat||"",value:ae.modelValue})),Lt=ref(!1),hn=ref(!1),vn=ref(""),_n=computed(()=>!ae.modelValue&&!hn.value?"transparent":$n(At,ae.showAlpha)),bn=computed(()=>!ae.modelValue&&!hn.value?"":At.value),Sn=computed(()=>xe.value?void 0:ae.label||le("el.colorpicker.defaultLabel")),Cn=computed(()=>xe.value?pe==null?void 0:pe.labelId:void 0),En=computed(()=>[ue.b("picker"),ue.is("disabled",Ce.value),ue.bm("picker",_e.value)]);function $n(Mn,Vn){if(!(Mn instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Yn,g:Fn,b:Xn}=Mn.toRgb();return Vn?`rgba(${Yn}, ${Fn}, ${Xn}, ${Mn.get("alpha")/100})`:`rgb(${Yn}, ${Fn}, ${Xn})`}function wn(Mn){Lt.value=Mn}const Tn=debounce(wn,100);function xn(){Ce.value||wn(!0)}function kn(){Tn(!1),Nn()}function Nn(){nextTick(()=>{ae.modelValue?At.fromString(ae.modelValue):(At.value="",nextTick(()=>{hn.value=!1}))})}function Bn(){Ce.value||Tn(!Lt.value)}function Dn(){At.fromString(vn.value)}function In(){const Mn=At.value;oe(UPDATE_MODEL_EVENT,Mn),oe("change",Mn),ae.validateEvent&&(pe==null||pe.validate("change").catch(Vn=>void 0)),Tn(!1),nextTick(()=>{const Vn=new Color({enableAlpha:ae.showAlpha,format:ae.colorFormat||"",value:ae.modelValue});At.compare(Vn)||Nn()})}function Ln(){Tn(!1),oe(UPDATE_MODEL_EVENT,null),oe("change",null),ae.modelValue!==null&&ae.validateEvent&&(pe==null||pe.validate("change").catch(Mn=>void 0)),Nn()}return onMounted(()=>{ae.modelValue&&(vn.value=bn.value)}),watch(()=>ae.modelValue,Mn=>{Mn?Mn&&Mn!==At.value&&(qe=!1,At.fromString(Mn)):hn.value=!1}),watch(()=>bn.value,Mn=>{vn.value=Mn,qe&&oe("activeChange",Mn),qe=!0}),watch(()=>At.value,()=>{!ae.modelValue&&!hn.value&&(hn.value=!0)}),watch(()=>Lt.value,()=>{nextTick(()=>{var Mn,Vn,Yn;(Mn=Ie.value)==null||Mn.update(),(Vn=Fe.value)==null||Vn.update(),(Yn=ze.value)==null||Yn.update()})}),provide(colorPickerContextKey,{currentColor:bn}),z({color:At,show:xn,hide:kn}),(Mn,Vn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:Ue,visible:Lt.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(ue).be("picker","panel"),unref(ue).b("dropdown"),Mn.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${unref(ue).namespace.value}-zoom-in-top`,persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass(unref(ue).be("dropdown","main-wrapper"))},[createVNode(HueSlider,{ref_key:"hue",ref:Ie,class:"hue-slider",color:unref(At),vertical:""},null,8,["color"]),createVNode(SvPanel,{ref:"svPanel",color:unref(At)},null,8,["color"])],2),Mn.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alpha",ref:ze,color:unref(At)},null,8,["color"])):createCommentVNode("v-if",!0),Mn.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine",color:unref(At),colors:Mn.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ue).be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass(unref(ue).be("dropdown","value"))},[createVNode(unref(ElInput),{modelValue:vn.value,"onUpdate:modelValue":Vn[0]||(Vn[0]=Yn=>vn.value=Yn),"validate-event":!1,size:"small",onKeyup:withKeys(Dn,["enter"]),onBlur:Dn},null,8,["modelValue","onKeyup"])],2),createVNode(unref(ElButton),{class:normalizeClass(unref(ue).be("dropdown","link-btn")),text:"",size:"small",onClick:Ln},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(le)("el.colorpicker.clear")),1)]),_:1},8,["class"]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(ue).be("dropdown","btn")),onClick:In},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(le)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[unref(ClickOutside),kn]])]),default:withCtx(()=>[createBaseVNode("div",{id:unref($e),class:normalizeClass(unref(En)),role:"button","aria-label":unref(Sn),"aria-labelledby":unref(Cn),"aria-description":unref(le)("el.colorpicker.description",{color:Mn.modelValue||""}),tabindex:Mn.tabindex,onKeydown:withKeys(Bn,["enter"])},[unref(Ce)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ue).be("picker","trigger")),onClick:Bn},[createBaseVNode("span",{class:normalizeClass([unref(ue).be("picker","color"),unref(ue).is("alpha",Mn.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(ue).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:unref(_n)})},[withDirectives(createVNode(unref(ElIcon),{class:normalizeClass([unref(ue).be("picker","icon"),unref(ue).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,Mn.modelValue||hn.value]]),!Mn.modelValue&&!hn.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ue).be("picker","empty"),unref(ue).is("icon-close")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)],2)],2)],42,_hoisted_1$L)]),_:1},8,["visible","popper-class","transition"]))}});var ColorPicker=_export_sfc$1(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const ElColorPicker=withInstall(ColorPicker),__default__$W=defineComponent({name:"ElContainer"}),_sfc_main$1s=defineComponent({...__default__$W,props:{direction:{type:String}},setup($){const z=$,oe=useSlots(),ae=useNamespace("container"),le=computed(()=>z.direction==="vertical"?!0:z.direction==="horizontal"?!1:oe&&oe.default?oe.default().some(pe=>{const _e=pe.type.name;return _e==="ElHeader"||_e==="ElFooter"}):!1);return(ue,pe)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(ae).b(),unref(ae).is("vertical",unref(le))])},[renderSlot(ue.$slots,"default")],2))}});var Container=_export_sfc$1(_sfc_main$1s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const __default__$V=defineComponent({name:"ElAside"}),_sfc_main$1r=defineComponent({...__default__$V,props:{width:{type:String,default:null}},setup($){const z=$,oe=useNamespace("aside"),ae=computed(()=>z.width?oe.cssVarBlock({width:z.width}):{});return(le,ue)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(oe).b()),style:normalizeStyle$1(unref(ae))},[renderSlot(le.$slots,"default")],6))}});var Aside=_export_sfc$1(_sfc_main$1r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const __default__$U=defineComponent({name:"ElFooter"}),_sfc_main$1q=defineComponent({...__default__$U,props:{height:{type:String,default:null}},setup($){const z=$,oe=useNamespace("footer"),ae=computed(()=>z.height?oe.cssVarBlock({height:z.height}):{});return(le,ue)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(oe).b()),style:normalizeStyle$1(unref(ae))},[renderSlot(le.$slots,"default")],6))}});var Footer$2=_export_sfc$1(_sfc_main$1q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const __default__$T=defineComponent({name:"ElHeader"}),_sfc_main$1p=defineComponent({...__default__$T,props:{height:{type:String,default:null}},setup($){const z=$,oe=useNamespace("header"),ae=computed(()=>z.height?oe.cssVarBlock({height:z.height}):{});return(le,ue)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(oe).b()),style:normalizeStyle$1(unref(ae))},[renderSlot(le.$slots,"default")],6))}});var Header=_export_sfc$1(_sfc_main$1p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const __default__$S=defineComponent({name:"ElMain"}),_sfc_main$1o=defineComponent({...__default__$S,setup($){const z=useNamespace("main");return(oe,ae)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(z).b())},[renderSlot(oe.$slots,"default")],2))}});var Main=_export_sfc$1(_sfc_main$1o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header),ElMain=withNoopInstall(Main);var advancedFormat$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){var le=ae.prototype,ue=le.format;le.format=function(pe){var _e=this,Ce=this.$locale();if(!this.isValid())return ue.bind(this)(pe);var $e=this.$utils(),xe=(pe||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(Ie){switch(Ie){case"Q":return Math.ceil((_e.$M+1)/3);case"Do":return Ce.ordinal(_e.$D);case"gggg":return _e.weekYear();case"GGGG":return _e.isoWeekYear();case"wo":return Ce.ordinal(_e.week(),"W");case"w":case"ww":return $e.s(_e.week(),Ie==="w"?1:2,"0");case"W":case"WW":return $e.s(_e.isoWeek(),Ie==="W"?1:2,"0");case"k":case"kk":return $e.s(String(_e.$H===0?24:_e.$H),Ie==="k"?1:2,"0");case"X":return Math.floor(_e.$d.getTime()/1e3);case"x":return _e.$d.getTime();case"z":return"["+_e.offsetName()+"]";case"zzz":return"["+_e.offsetName("long")+"]";default:return Ie}});return ue.bind(this)(xe)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe="week",ae="year";return function(le,ue,pe){var _e=ue.prototype;_e.week=function(Ce){if(Ce===void 0&&(Ce=null),Ce!==null)return this.add(7*(Ce-this.week()),"day");var $e=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var xe=pe(this).startOf(ae).add(1,ae).date($e),Ie=pe(this).endOf(oe);if(xe.isBefore(Ie))return 1}var Fe=pe(this).startOf(ae).date($e).startOf(oe).subtract(1,"millisecond"),ze=this.diff(Fe,oe,!0);return ze<0?pe(this).startOf("week").week():Math.ceil(ze)},_e.weeks=function(Ce){return Ce===void 0&&(Ce=null),this.week(Ce)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){ae.prototype.weekYear=function(){var le=this.month(),ue=this.week(),pe=this.year();return ue===1&&le===11?pe+1:le===0&&ue>=52?pe-1:pe}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae,le){ae.prototype.dayOfYear=function(ue){var pe=Math.round((le(this).startOf("day")-le(this).startOf("year"))/864e5)+1;return ue==null?pe:this.add(ue-pe,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){ae.prototype.isSameOrAfter=function(le,ue){return this.isSame(le,ue)||this.isAfter(le,ue)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){return function(oe,ae){ae.prototype.isSameOrBefore=function(le,ue){return this.isSame(le,ue)||this.isBefore(le,ue)}}})})(isSameOrBefore$1);var isSameOrBeforeExports=isSameOrBefore$1.exports;const isSameOrBefore=getDefaultExportFromCjs(isSameOrBeforeExports),ROOT_PICKER_INJECTION_KEY=Symbol(),datePickerProps=buildProps({...timePickerDefaultProps,type:{type:definePropType(String),default:"date"}}),selectionModes=["date","dates","year","month","week","range"],datePickerSharedProps=buildProps({disabledDate:{type:definePropType(Function)},date:{type:definePropType(Object),required:!0},minDate:{type:definePropType(Object)},maxDate:{type:definePropType(Object)},parsedValue:{type:definePropType([Object,Array])},rangeState:{type:definePropType(Object),default:()=>({endDate:null,selecting:!1})}}),panelSharedProps=buildProps({type:{type:definePropType(String),required:!0,values:datePickTypes}}),panelRangeSharedProps=buildProps({unlinkPanels:Boolean,parsedValue:{type:definePropType(Array)}}),selectionModeWithDefault=$=>({type:String,values:selectionModes,default:$}),panelDatePickProps=buildProps({...panelSharedProps,parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),basicDateTableProps=buildProps({...datePickerSharedProps,cellClassName:{type:definePropType(Function)},showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}),isValidRange=$=>{if(!isArray$c($))return!1;const[z,oe]=$;return dayjs.isDayjs(z)&&dayjs.isDayjs(oe)&&z.isSameOrBefore(oe)},getDefaultValue=($,{lang:z,unit:oe,unlinkPanels:ae})=>{let le;if(isArray$c($)){let[ue,pe]=$.map(_e=>dayjs(_e).locale(z));return ae||(pe=ue.add(1,oe)),[ue,pe]}else $?le=dayjs($):le=dayjs();return le=le.locale(z),[le,le.add(1,oe)]},buildPickerTable=($,z,{columnIndexOffset:oe,startDate:ae,nextEndDate:le,now:ue,unit:pe,relativeDateGetter:_e,setCellMetadata:Ce,setRowMetadata:$e})=>{for(let xe=0;xe<$.row;xe++){const Ie=z[xe];for(let Fe=0;Fe<$.column;Fe++){let ze=Ie[Fe+oe];ze||(ze={row:xe,column:Fe,type:"normal",inRange:!1,start:!1,end:!1});const Ue=xe*$.column+Fe,qe=_e(Ue);ze.dayjs=qe,ze.date=qe.toDate(),ze.timestamp=qe.valueOf(),ze.type="normal",ze.inRange=!!(ae&&qe.isSameOrAfter(ae,pe)&&le&&qe.isSameOrBefore(le,pe))||!!(ae&&qe.isSameOrBefore(ae,pe)&&le&&qe.isSameOrAfter(le,pe)),ae!=null&&ae.isSameOrAfter(le)?(ze.start=!!le&&qe.isSame(le,pe),ze.end=ae&&qe.isSame(ae,pe)):(ze.start=!!ae&&qe.isSame(ae,pe),ze.end=!!le&&qe.isSame(le,pe)),qe.isSame(ue,pe)&&(ze.type="today"),Ce==null||Ce(ze,{rowIndex:xe,columnIndex:Fe}),Ie[Fe+oe]=ze}$e==null||$e(Ie)}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup($){const z=useNamespace("date-table-cell"),{slots:oe}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:ae}=$;if(oe.default){const le=oe.default(ae).filter(ue=>ue.patchFlag!==-2&&ue.type.toString()!=="Symbol(Comment)");if(le.length)return le}return createVNode("div",{class:z.b()},[createVNode("span",{class:z.e("text")},[ae==null?void 0:ae.text])])}}});const _hoisted_1$K=["aria-label","onMousedown"],_hoisted_2$v={key:0,scope:"col"},_hoisted_3$i=["aria-label"],_hoisted_4$c=["aria-current","aria-selected","tabindex"],_sfc_main$1n=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:["changerange","pick","select"],setup($,{expose:z,emit:oe}){const ae=$,le=useNamespace("date-table"),{t:ue,lang:pe}=useLocale(),_e=ref(),Ce=ref(),$e=ref(),xe=ref(),Ie=ref([[],[],[],[],[],[]]);let Fe=!1;const ze=ae.date.$locale().weekStart||7,Ue=ae.date.locale("en").localeData().weekdaysShort().map(Fn=>Fn.toLowerCase()),qe=computed(()=>ze>3?7-ze:-ze),At=computed(()=>{const Fn=ae.date.startOf("month");return Fn.subtract(Fn.day()||7,"day")}),Lt=computed(()=>Ue.concat(Ue).slice(ze,ze+7)),hn=computed(()=>flatten(En.value).some(Fn=>Fn.isCurrent)),vn=computed(()=>{const Fn=ae.date.startOf("month"),Xn=Fn.day()||7,sr=Fn.daysInMonth(),vr=Fn.subtract(1,"month").daysInMonth();return{startOfMonthDay:Xn,dateCountOfMonth:sr,dateCountOfLastMonth:vr}}),_n=computed(()=>ae.selectionMode==="dates"?castArray(ae.parsedValue):[]),bn=(Fn,{count:Xn,rowIndex:sr,columnIndex:vr})=>{const{startOfMonthDay:ar,dateCountOfMonth:qn,dateCountOfLastMonth:Gn}=unref(vn),Wn=unref(qe);if(sr>=0&&sr<=1){const Qn=ar+Wn<0?7+ar+Wn:ar+Wn;if(vr+sr*7>=Qn)return Fn.text=Xn,!0;Fn.text=Gn-(Qn-vr%7)+1+sr*7,Fn.type="prev-month"}else return Xn<=qn?Fn.text=Xn:(Fn.text=Xn-qn,Fn.type="next-month"),!0;return!1},Sn=(Fn,{columnIndex:Xn,rowIndex:sr},vr)=>{const{disabledDate:ar,cellClassName:qn}=ae,Gn=unref(_n),Wn=bn(Fn,{count:vr,rowIndex:sr,columnIndex:Xn}),Qn=Fn.dayjs.toDate();return Fn.selected=Gn.find(cr=>cr.valueOf()===Fn.dayjs.valueOf()),Fn.isSelected=!!Fn.selected,Fn.isCurrent=Tn(Fn),Fn.disabled=ar==null?void 0:ar(Qn),Fn.customClass=qn==null?void 0:qn(Qn),Wn},Cn=Fn=>{if(ae.selectionMode==="week"){const[Xn,sr]=ae.showWeekNumber?[1,7]:[0,6],vr=Yn(Fn[Xn+1]);Fn[Xn].inRange=vr,Fn[Xn].start=vr,Fn[sr].inRange=vr,Fn[sr].end=vr}},En=computed(()=>{const{minDate:Fn,maxDate:Xn,rangeState:sr,showWeekNumber:vr}=ae,ar=qe.value,qn=Ie.value,Gn="day";let Wn=1;if(vr)for(let Qn=0;Qn<6;Qn++)qn[Qn][0]||(qn[Qn][0]={type:"week",text:At.value.add(Qn*7+1,Gn).week()});return buildPickerTable({row:6,column:7},qn,{startDate:Fn,columnIndexOffset:vr?1:0,nextEndDate:sr.endDate||Xn||sr.selecting&&Fn||null,now:dayjs().locale(unref(pe)).startOf(Gn),unit:Gn,relativeDateGetter:Qn=>At.value.add(Qn-ar,Gn),setCellMetadata:(...Qn)=>{Sn(...Qn,Wn)&&(Wn+=1)},setRowMetadata:Cn}),qn});watch(()=>ae.date,async()=>{var Fn,Xn;(Fn=_e.value)!=null&&Fn.contains(document.activeElement)&&(await nextTick(),(Xn=Ce.value)==null||Xn.focus())});const $n=async()=>{var Fn;(Fn=Ce.value)==null||Fn.focus()},wn=(Fn="")=>["normal","today"].includes(Fn),Tn=Fn=>ae.selectionMode==="date"&&wn(Fn.type)&&xn(Fn,ae.parsedValue),xn=(Fn,Xn)=>Xn?dayjs(Xn).locale(pe.value).isSame(ae.date.date(Number(Fn.text)),"day"):!1,kn=Fn=>{const Xn=[];return wn(Fn.type)&&!Fn.disabled?(Xn.push("available"),Fn.type==="today"&&Xn.push("today")):Xn.push(Fn.type),Tn(Fn)&&Xn.push("current"),Fn.inRange&&(wn(Fn.type)||ae.selectionMode==="week")&&(Xn.push("in-range"),Fn.start&&Xn.push("start-date"),Fn.end&&Xn.push("end-date")),Fn.disabled&&Xn.push("disabled"),Fn.selected&&Xn.push("selected"),Fn.customClass&&Xn.push(Fn.customClass),Xn.join(" ")},Nn=(Fn,Xn)=>{const sr=Fn*7+(Xn-(ae.showWeekNumber?1:0))-qe.value;return At.value.add(sr,"day")},Bn=Fn=>{var Xn;if(!ae.rangeState.selecting)return;let sr=Fn.target;if(sr.tagName==="SPAN"&&(sr=(Xn=sr.parentNode)==null?void 0:Xn.parentNode),sr.tagName==="DIV"&&(sr=sr.parentNode),sr.tagName!=="TD")return;const vr=sr.parentNode.rowIndex-1,ar=sr.cellIndex;En.value[vr][ar].disabled||(vr!==$e.value||ar!==xe.value)&&($e.value=vr,xe.value=ar,oe("changerange",{selecting:!0,endDate:Nn(vr,ar)}))},Dn=Fn=>!hn.value&&(Fn==null?void 0:Fn.text)===1&&Fn.type==="normal"||Fn.isCurrent,In=Fn=>{Fe||hn.value||ae.selectionMode!=="date"||Vn(Fn,!0)},Ln=Fn=>{Fn.target.closest("td")&&(Fe=!0)},Mn=Fn=>{Fn.target.closest("td")&&(Fe=!1)},Vn=(Fn,Xn=!1)=>{const sr=Fn.target.closest("td");if(!sr)return;const vr=sr.parentNode.rowIndex-1,ar=sr.cellIndex,qn=En.value[vr][ar];if(qn.disabled||qn.type==="week")return;const Gn=Nn(vr,ar);if(ae.selectionMode==="range")!ae.rangeState.selecting||!ae.minDate?(oe("pick",{minDate:Gn,maxDate:null}),oe("select",!0)):(Gn>=ae.minDate?oe("pick",{minDate:ae.minDate,maxDate:Gn}):oe("pick",{minDate:Gn,maxDate:ae.minDate}),oe("select",!1));else if(ae.selectionMode==="date")oe("pick",Gn,Xn);else if(ae.selectionMode==="week"){const Wn=Gn.week(),Qn=`${Gn.year()}w${Wn}`;oe("pick",{year:Gn.year(),week:Wn,value:Qn,date:Gn.startOf("week")})}else if(ae.selectionMode==="dates"){const Wn=qn.selected?castArray(ae.parsedValue).filter(Qn=>(Qn==null?void 0:Qn.valueOf())!==Gn.valueOf()):castArray(ae.parsedValue).concat([Gn]);oe("pick",Wn)}},Yn=Fn=>{if(ae.selectionMode!=="week")return!1;let Xn=ae.date.startOf("day");if(Fn.type==="prev-month"&&(Xn=Xn.subtract(1,"month")),Fn.type==="next-month"&&(Xn=Xn.add(1,"month")),Xn=Xn.date(Number.parseInt(Fn.text,10)),ae.parsedValue&&!Array.isArray(ae.parsedValue)){const sr=(ae.parsedValue.day()-ze+7)%7-1;return ae.parsedValue.subtract(sr,"day").isSame(Xn,"day")}return!1};return z({focus:$n}),(Fn,Xn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(ue)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref(le).b(),{"is-week-mode":Fn.selectionMode==="week"}]),onClick:Vn,onMousemove:Bn,onMousedown:withModifiers(Ln,["prevent"]),onMouseup:Mn},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:_e},[createBaseVNode("tr",null,[Fn.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$v,toDisplayString$1(unref(ue)("el.datepicker.week")),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Lt),(sr,vr)=>(openBlock(),createElementBlock("th",{key:vr,scope:"col","aria-label":unref(ue)("el.datepicker.weeksFull."+sr)},toDisplayString$1(unref(ue)("el.datepicker.weeks."+sr)),9,_hoisted_3$i))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(En),(sr,vr)=>(openBlock(),createElementBlock("tr",{key:vr,class:normalizeClass([unref(le).e("row"),{current:Yn(sr[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(sr,(ar,qn)=>(openBlock(),createElementBlock("td",{key:`${vr}.${qn}`,ref_for:!0,ref:Gn=>Dn(ar)&&(Ce.value=Gn),class:normalizeClass(kn(ar)),"aria-current":ar.isCurrent?"date":void 0,"aria-selected":ar.isCurrent,tabindex:Dn(ar)?0:-1,onFocus:In},[createVNode(unref(ElDatePickerCell),{cell:ar},null,8,["cell"])],42,_hoisted_4$c))),128))],2))),128))],512)],42,_hoisted_1$K))}});var DateTable=_export_sfc$1(_sfc_main$1n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const basicMonthTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("month")}),_hoisted_1$J=["aria-label"],_hoisted_2$u=["aria-selected","aria-label","tabindex","onKeydown"],_hoisted_3$h={class:"cell"},_sfc_main$1m=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup($,{expose:z,emit:oe}){const ae=$,le=(_n,bn,Sn)=>{const Cn=dayjs().locale(Sn).startOf("month").month(bn).year(_n),En=Cn.daysInMonth();return rangeArr(En).map($n=>Cn.add($n,"day").toDate())},ue=useNamespace("month-table"),{t:pe,lang:_e}=useLocale(),Ce=ref(),$e=ref(),xe=ref(ae.date.locale("en").localeData().monthsShort().map(_n=>_n.toLowerCase())),Ie=ref([[],[],[]]),Fe=ref(),ze=ref(),Ue=computed(()=>{var _n,bn;const Sn=Ie.value,Cn=dayjs().locale(_e.value).startOf("month");for(let En=0;En<3;En++){const $n=Sn[En];for(let wn=0;wn<4;wn++){const Tn=$n[wn]||($n[wn]={row:En,column:wn,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});Tn.type="normal";const xn=En*4+wn,kn=ae.date.startOf("year").month(xn),Nn=ae.rangeState.endDate||ae.maxDate||ae.rangeState.selecting&&ae.minDate||null;Tn.inRange=!!(ae.minDate&&kn.isSameOrAfter(ae.minDate,"month")&&Nn&&kn.isSameOrBefore(Nn,"month"))||!!(ae.minDate&&kn.isSameOrBefore(ae.minDate,"month")&&Nn&&kn.isSameOrAfter(Nn,"month")),(_n=ae.minDate)!=null&&_n.isSameOrAfter(Nn)?(Tn.start=!!(Nn&&kn.isSame(Nn,"month")),Tn.end=ae.minDate&&kn.isSame(ae.minDate,"month")):(Tn.start=!!(ae.minDate&&kn.isSame(ae.minDate,"month")),Tn.end=!!(Nn&&kn.isSame(Nn,"month"))),Cn.isSame(kn)&&(Tn.type="today"),Tn.text=xn,Tn.disabled=((bn=ae.disabledDate)==null?void 0:bn.call(ae,kn.toDate()))||!1}}return Sn}),qe=()=>{var _n;(_n=$e.value)==null||_n.focus()},At=_n=>{const bn={},Sn=ae.date.year(),Cn=new Date,En=_n.text;return bn.disabled=ae.disabledDate?le(Sn,En,_e.value).every(ae.disabledDate):!1,bn.current=castArray(ae.parsedValue).findIndex($n=>dayjs.isDayjs($n)&&$n.year()===Sn&&$n.month()===En)>=0,bn.today=Cn.getFullYear()===Sn&&Cn.getMonth()===En,_n.inRange&&(bn["in-range"]=!0,_n.start&&(bn["start-date"]=!0),_n.end&&(bn["end-date"]=!0)),bn},Lt=_n=>{const bn=ae.date.year(),Sn=_n.text;return castArray(ae.date).findIndex(Cn=>Cn.year()===bn&&Cn.month()===Sn)>=0},hn=_n=>{var bn;if(!ae.rangeState.selecting)return;let Sn=_n.target;if(Sn.tagName==="A"&&(Sn=(bn=Sn.parentNode)==null?void 0:bn.parentNode),Sn.tagName==="DIV"&&(Sn=Sn.parentNode),Sn.tagName!=="TD")return;const Cn=Sn.parentNode.rowIndex,En=Sn.cellIndex;Ue.value[Cn][En].disabled||(Cn!==Fe.value||En!==ze.value)&&(Fe.value=Cn,ze.value=En,oe("changerange",{selecting:!0,endDate:ae.date.startOf("year").month(Cn*4+En)}))},vn=_n=>{var bn;const Sn=(bn=_n.target)==null?void 0:bn.closest("td");if((Sn==null?void 0:Sn.tagName)!=="TD"||hasClass(Sn,"disabled"))return;const Cn=Sn.cellIndex,$n=Sn.parentNode.rowIndex*4+Cn,wn=ae.date.startOf("year").month($n);ae.selectionMode==="range"?ae.rangeState.selecting?(ae.minDate&&wn>=ae.minDate?oe("pick",{minDate:ae.minDate,maxDate:wn}):oe("pick",{minDate:wn,maxDate:ae.minDate}),oe("select",!1)):(oe("pick",{minDate:wn,maxDate:null}),oe("select",!0)):oe("pick",$n)};return watch(()=>ae.date,async()=>{var _n,bn;(_n=Ce.value)!=null&&_n.contains(document.activeElement)&&(await nextTick(),(bn=$e.value)==null||bn.focus())}),z({focus:qe}),(_n,bn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(pe)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(ue).b()),onClick:vn,onMousemove:hn},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:Ce},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ue),(Sn,Cn)=>(openBlock(),createElementBlock("tr",{key:Cn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Sn,(En,$n)=>(openBlock(),createElementBlock("td",{key:$n,ref_for:!0,ref:wn=>Lt(En)&&($e.value=wn),class:normalizeClass(At(En)),"aria-selected":`${Lt(En)}`,"aria-label":unref(pe)(`el.datepicker.month${+En.text+1}`),tabindex:Lt(En)?0:-1,onKeydown:[withKeys(withModifiers(vn,["prevent","stop"]),["space"]),withKeys(withModifiers(vn,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$h,toDisplayString$1(unref(pe)("el.datepicker.months."+xe.value[En.text])),1)])],42,_hoisted_2$u))),128))]))),128))],512)],42,_hoisted_1$J))}});var MonthTable=_export_sfc$1(_sfc_main$1m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date,disabledDate,parsedValue}=datePickerSharedProps,basicYearTableProps=buildProps({date,disabledDate,parsedValue}),_hoisted_1$I=["aria-label"],_hoisted_2$t=["aria-selected","tabindex","onKeydown"],_hoisted_3$g={class:"cell"},_hoisted_4$b={key:1},_sfc_main$1l=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup($,{expose:z,emit:oe}){const ae=$,le=(qe,At)=>{const Lt=dayjs(String(qe)).locale(At).startOf("year"),vn=Lt.endOf("year").dayOfYear();return rangeArr(vn).map(_n=>Lt.add(_n,"day").toDate())},ue=useNamespace("year-table"),{t:pe,lang:_e}=useLocale(),Ce=ref(),$e=ref(),xe=computed(()=>Math.floor(ae.date.year()/10)*10),Ie=()=>{var qe;(qe=$e.value)==null||qe.focus()},Fe=qe=>{const At={},Lt=dayjs().locale(_e.value);return At.disabled=ae.disabledDate?le(qe,_e.value).every(ae.disabledDate):!1,At.current=castArray(ae.parsedValue).findIndex(hn=>hn.year()===qe)>=0,At.today=Lt.year()===qe,At},ze=qe=>qe===xe.value&&ae.date.year()<xe.value&&ae.date.year()>xe.value+9||castArray(ae.date).findIndex(At=>At.year()===qe)>=0,Ue=qe=>{const Lt=qe.target.closest("td");if(Lt&&Lt.textContent){if(hasClass(Lt,"disabled"))return;const hn=Lt.textContent||Lt.innerText;oe("pick",Number(hn))}};return watch(()=>ae.date,async()=>{var qe,At;(qe=Ce.value)!=null&&qe.contains(document.activeElement)&&(await nextTick(),(At=$e.value)==null||At.focus())}),z({focus:Ie}),(qe,At)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(pe)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(ue).b()),onClick:Ue},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:Ce},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(Lt,hn)=>createBaseVNode("tr",{key:hn},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(vn,_n)=>(openBlock(),createElementBlock(Fragment,{key:hn+"_"+_n},[hn*4+_n<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:bn=>ze(unref(xe)+hn*4+_n)&&($e.value=bn),class:normalizeClass(["available",Fe(unref(xe)+hn*4+_n)]),"aria-selected":`${ze(unref(xe)+hn*4+_n)}`,tabindex:ze(unref(xe)+hn*4+_n)?0:-1,onKeydown:[withKeys(withModifiers(Ue,["prevent","stop"]),["space"]),withKeys(withModifiers(Ue,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$g,toDisplayString$1(unref(xe)+hn*4+_n),1)],42,_hoisted_2$t)):(openBlock(),createElementBlock("td",_hoisted_4$b))],64))),64))])),64))],512)],10,_hoisted_1$I))}});var YearTable=_export_sfc$1(_sfc_main$1l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$H=["onClick"],_hoisted_2$s=["aria-label"],_hoisted_3$f=["aria-label"],_hoisted_4$a=["aria-label"],_hoisted_5$7=["aria-label"],_sfc_main$1k=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup($,{emit:z}){const oe=$,ae=(br,Cr,lr)=>!0,le=useNamespace("picker-panel"),ue=useNamespace("date-picker"),pe=useAttrs$1(),_e=useSlots(),{t:Ce,lang:$e}=useLocale(),xe=inject("EP_PICKER_BASE"),Ie=inject(TOOLTIP_INJECTION_KEY),{shortcuts:Fe,disabledDate:ze,cellClassName:Ue,defaultTime:qe,arrowControl:At}=xe.props,Lt=toRef$1(xe.props,"defaultValue"),hn=ref(),vn=ref(dayjs().locale($e.value)),_n=ref(!1),bn=computed(()=>dayjs(qe).locale($e.value)),Sn=computed(()=>vn.value.month()),Cn=computed(()=>vn.value.year()),En=ref([]),$n=ref(null),wn=ref(null),Tn=br=>En.value.length>0?ae(br,En.value,oe.format||"HH:mm:ss"):!0,xn=br=>qe&&!jn.value&&!_n.value?bn.value.year(br.year()).month(br.month()).date(br.date()):ar.value?br.millisecond(0):br.startOf("day"),kn=(br,...Cr)=>{if(!br)z("pick",br,...Cr);else if(isArray$c(br)){const lr=br.map(xn);z("pick",lr,...Cr)}else z("pick",xn(br),...Cr);$n.value=null,wn.value=null,_n.value=!1},Nn=(br,Cr)=>{if(Vn.value==="date"){br=br;let lr=oe.parsedValue?oe.parsedValue.year(br.year()).month(br.month()).date(br.date()):br;Tn(lr)||(lr=En.value[0][0].year(br.year()).month(br.month()).date(br.date())),vn.value=lr,kn(lr,ar.value||Cr)}else Vn.value==="week"?kn(br.date):Vn.value==="dates"&&kn(br,!0)},Bn=br=>{const Cr=br?"add":"subtract";vn.value=vn.value[Cr](1,"month"),Mr("month")},Dn=br=>{const Cr=vn.value,lr=br?"add":"subtract";vn.value=In.value==="year"?Cr[lr](10,"year"):Cr[lr](1,"year"),Mr("year")},In=ref("date"),Ln=computed(()=>{const br=Ce("el.datepicker.year");if(In.value==="year"){const Cr=Math.floor(Cn.value/10)*10;return br?`${Cr} ${br} - ${Cr+9} ${br}`:`${Cr} - ${Cr+9}`}return`${Cn.value} ${br}`}),Mn=br=>{const Cr=isFunction$5(br.value)?br.value():br.value;if(Cr){kn(dayjs(Cr).locale($e.value));return}br.onClick&&br.onClick({attrs:pe,slots:_e,emit:z})},Vn=computed(()=>{const{type:br}=oe;return["week","month","year","dates"].includes(br)?br:"date"}),Yn=computed(()=>Vn.value==="date"?In.value:Vn.value),Fn=computed(()=>!!Fe.length),Xn=async br=>{vn.value=vn.value.startOf("month").month(br),Vn.value==="month"?kn(vn.value,!1):(In.value="date",["month","year","date","week"].includes(Vn.value)&&(kn(vn.value,!0),await nextTick(),kr())),Mr("month")},sr=async br=>{Vn.value==="year"?(vn.value=vn.value.startOf("year").year(br),kn(vn.value,!1)):(vn.value=vn.value.year(br),In.value="month",["month","year","date","week"].includes(Vn.value)&&(kn(vn.value,!0),await nextTick(),kr())),Mr("year")},vr=async br=>{In.value=br,await nextTick(),kr()},ar=computed(()=>oe.type==="datetime"||oe.type==="datetimerange"),qn=computed(()=>ar.value||Vn.value==="dates"),Gn=()=>{if(Vn.value==="dates")kn(oe.parsedValue);else{let br=oe.parsedValue;if(!br){const Cr=dayjs(qe).locale($e.value),lr=fr();br=Cr.year(lr.year()).month(lr.month()).date(lr.date())}vn.value=br,kn(br)}},Wn=()=>{const Cr=dayjs().locale($e.value).toDate();_n.value=!0,(!ze||!ze(Cr))&&Tn(Cr)&&(vn.value=dayjs().locale($e.value),kn(vn.value))},Qn=computed(()=>extractTimeFormat(oe.format)),cr=computed(()=>extractDateFormat(oe.format)),jn=computed(()=>{if(wn.value)return wn.value;if(!(!oe.parsedValue&&!Lt.value))return(oe.parsedValue||vn.value).format(Qn.value)}),Zn=computed(()=>{if($n.value)return $n.value;if(!(!oe.parsedValue&&!Lt.value))return(oe.parsedValue||vn.value).format(cr.value)}),nr=ref(!1),hr=()=>{nr.value=!0},gr=()=>{nr.value=!1},or=br=>({hour:br.hour(),minute:br.minute(),second:br.second(),year:br.year(),month:br.month(),date:br.date()}),wr=(br,Cr,lr)=>{const{hour:Jn,minute:rr,second:$r}=or(br),Ar=oe.parsedValue?oe.parsedValue.hour(Jn).minute(rr).second($r):br;vn.value=Ar,kn(vn.value,!0),lr||(nr.value=Cr)},mr=br=>{const Cr=dayjs(br,Qn.value).locale($e.value);if(Cr.isValid()&&Tn(Cr)){const{year:lr,month:Jn,date:rr}=or(vn.value);vn.value=Cr.year(lr).month(Jn).date(rr),wn.value=null,nr.value=!1,kn(vn.value,!0)}},Tr=br=>{const Cr=dayjs(br,cr.value).locale($e.value);if(Cr.isValid()){if(ze&&ze(Cr.toDate()))return;const{hour:lr,minute:Jn,second:rr}=or(vn.value);vn.value=Cr.hour(lr).minute(Jn).second(rr),$n.value=null,kn(vn.value,!0)}},dr=br=>dayjs.isDayjs(br)&&br.isValid()&&(ze?!ze(br.toDate()):!0),ir=br=>Vn.value==="dates"?br.map(Cr=>Cr.format(oe.format)):br.format(oe.format),ur=br=>dayjs(br,oe.format).locale($e.value),fr=()=>{const br=dayjs(Lt.value).locale($e.value);if(!Lt.value){const Cr=bn.value;return dayjs().hour(Cr.hour()).minute(Cr.minute()).second(Cr.second()).locale($e.value)}return br},kr=async()=>{var br;["week","month","year","date"].includes(Vn.value)&&((br=hn.value)==null||br.focus(),Vn.value==="week"&&Lr(EVENT_CODE.down))},Dr=br=>{const{code:Cr}=br;[EVENT_CODE.up,EVENT_CODE.down,EVENT_CODE.left,EVENT_CODE.right,EVENT_CODE.home,EVENT_CODE.end,EVENT_CODE.pageUp,EVENT_CODE.pageDown].includes(Cr)&&(Lr(Cr),br.stopPropagation(),br.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(Cr)&&$n.value===null&&wn.value===null&&(br.preventDefault(),kn(vn.value,!1))},Lr=br=>{var Cr;const{up:lr,down:Jn,left:rr,right:$r,home:Ar,end:Fr,pageUp:_r,pageDown:Ir}=EVENT_CODE,zr={year:{[lr]:-4,[Jn]:4,[rr]:-1,[$r]:1,offset:(jr,qr)=>jr.setFullYear(jr.getFullYear()+qr)},month:{[lr]:-4,[Jn]:4,[rr]:-1,[$r]:1,offset:(jr,qr)=>jr.setMonth(jr.getMonth()+qr)},week:{[lr]:-1,[Jn]:1,[rr]:-1,[$r]:1,offset:(jr,qr)=>jr.setDate(jr.getDate()+qr*7)},date:{[lr]:-7,[Jn]:7,[rr]:-1,[$r]:1,[Ar]:jr=>-jr.getDay(),[Fr]:jr=>-jr.getDay()+6,[_r]:jr=>-new Date(jr.getFullYear(),jr.getMonth(),0).getDate(),[Ir]:jr=>new Date(jr.getFullYear(),jr.getMonth()+1,0).getDate(),offset:(jr,qr)=>jr.setDate(jr.getDate()+qr)}},Hr=vn.value.toDate();for(;Math.abs(vn.value.diff(Hr,"year",!0))<1;){const jr=zr[Yn.value];if(!jr)return;if(jr.offset(Hr,isFunction$5(jr[br])?jr[br](Hr):(Cr=jr[br])!=null?Cr:0),ze&&ze(Hr))break;const qr=dayjs(Hr).locale($e.value);vn.value=qr,z("pick",qr,!0);break}},Mr=br=>{z("panel-change",vn.value.toDate(),br,In.value)};return watch(()=>Vn.value,br=>{if(["month","year"].includes(br)){In.value=br;return}In.value="date"},{immediate:!0}),watch(()=>In.value,()=>{Ie==null||Ie.updatePopper()}),watch(()=>Lt.value,br=>{br&&(vn.value=fr())},{immediate:!0}),watch(()=>oe.parsedValue,br=>{if(br){if(Vn.value==="dates"||Array.isArray(br))return;vn.value=br}else vn.value=fr()},{immediate:!0}),z("set-picker-option",["isValidValue",dr]),z("set-picker-option",["formatToString",ir]),z("set-picker-option",["parseUserInput",ur]),z("set-picker-option",["handleFocusPicker",kr]),(br,Cr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(ue).b(),{"has-sidebar":br.$slots.sidebar||unref(Fn),"has-time":unref(ar)}])},[createBaseVNode("div",{class:normalizeClass(unref(le).e("body-wrapper"))},[renderSlot(br.$slots,"sidebar",{class:normalizeClass(unref(le).e("sidebar"))}),unref(Fn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),(lr,Jn)=>(openBlock(),createElementBlock("button",{key:Jn,type:"button",class:normalizeClass(unref(le).e("shortcut")),onClick:rr=>Mn(lr)},toDisplayString$1(lr.text),11,_hoisted_1$H))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("body"))},[unref(ar)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(ue).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(Ce)("el.datepicker.selectDate"),"model-value":unref(Zn),size:"small","validate-event":!1,onInput:Cr[0]||(Cr[0]=lr=>$n.value=lr),onChange:Tr},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(ue).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(Ce)("el.datepicker.selectTime"),"model-value":unref(jn),size:"small","validate-event":!1,onFocus:hr,onInput:Cr[1]||(Cr[1]=lr=>wn.value=lr),onChange:mr},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:nr.value,format:unref(Qn),"time-arrow-control":unref(At),"parsed-value":vn.value,onPick:wr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),gr]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(ue).e("header"),(In.value==="year"||In.value==="month")&&unref(ue).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(ue).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(Ce)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(le).e("icon-btn")]),onClick:Cr[2]||(Cr[2]=lr=>Dn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_2$s),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(Ce)("el.datepicker.prevMonth"),class:normalizeClass([unref(le).e("icon-btn"),"arrow-left"]),onClick:Cr[3]||(Cr[3]=lr=>Bn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$f),[[vShow,In.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(ue).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Cr[4]||(Cr[4]=withKeys(lr=>vr("year"),["enter"])),onClick:Cr[5]||(Cr[5]=lr=>vr("year"))},toDisplayString$1(unref(Ln)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(ue).e("header-label"),{active:In.value==="month"}]),onKeydown:Cr[6]||(Cr[6]=withKeys(lr=>vr("month"),["enter"])),onClick:Cr[7]||(Cr[7]=lr=>vr("month"))},toDisplayString$1(unref(Ce)(`el.datepicker.month${unref(Sn)+1}`)),35),[[vShow,In.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(ue).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(Ce)("el.datepicker.nextMonth"),class:normalizeClass([unref(le).e("icon-btn"),"arrow-right"]),onClick:Cr[8]||(Cr[8]=lr=>Bn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_4$a),[[vShow,In.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(Ce)("el.datepicker.nextYear"),class:normalizeClass([unref(le).e("icon-btn"),"d-arrow-right"]),onClick:Cr[9]||(Cr[9]=lr=>Dn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_5$7)],2)],2),[[vShow,In.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref(le).e("content")),onKeydown:Dr},[In.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:hn,"selection-mode":unref(Vn),date:vn.value,"parsed-value":br.parsedValue,"disabled-date":unref(ze),"cell-class-name":unref(Ue),onPick:Nn},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",!0),In.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:hn,date:vn.value,"disabled-date":unref(ze),"parsed-value":br.parsedValue,onPick:sr},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),In.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:hn,date:vn.value,"parsed-value":br.parsedValue,"disabled-date":unref(ze),onPick:Xn},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",!0)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(le).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref(le).e("link-btn")),onClick:Wn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ce)("el.datepicker.now")),1)]),_:1},8,["class"]),[[vShow,unref(Vn)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(le).e("link-btn")),onClick:Gn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ce)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[vShow,unref(qn)&&In.value==="date"]])],2))}});var DatePickPanel=_export_sfc$1(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const panelDateRangeProps=buildProps({...panelSharedProps,...panelRangeSharedProps}),useShortcut=$=>{const{emit:z}=getCurrentInstance(),oe=useAttrs$1(),ae=useSlots();return ue=>{const pe=isFunction$5(ue.value)?ue.value():ue.value;if(pe){z("pick",[dayjs(pe[0]).locale($.value),dayjs(pe[1]).locale($.value)]);return}ue.onClick&&ue.onClick({attrs:oe,slots:ae,emit:z})}},useRangePicker=($,{defaultValue:z,leftDate:oe,rightDate:ae,unit:le,onParsedValueChanged:ue})=>{const{emit:pe}=getCurrentInstance(),{pickerNs:_e}=inject(ROOT_PICKER_INJECTION_KEY),Ce=useNamespace("date-range-picker"),{t:$e,lang:xe}=useLocale(),Ie=useShortcut(xe),Fe=ref(),ze=ref(),Ue=ref({endDate:null,selecting:!1}),qe=vn=>{Ue.value=vn},At=(vn=!1)=>{const _n=unref(Fe),bn=unref(ze);isValidRange([_n,bn])&&pe("pick",[_n,bn],vn)},Lt=vn=>{Ue.value.selecting=vn,vn||(Ue.value.endDate=null)},hn=()=>{const[vn,_n]=getDefaultValue(unref(z),{lang:unref(xe),unit:le,unlinkPanels:$.unlinkPanels});Fe.value=void 0,ze.value=void 0,oe.value=vn,ae.value=_n};return watch(z,vn=>{vn&&hn()},{immediate:!0}),watch(()=>$.parsedValue,vn=>{if(isArray$c(vn)&&vn.length===2){const[_n,bn]=vn;Fe.value=_n,oe.value=_n,ze.value=bn,ue(unref(Fe),unref(ze))}else hn()},{immediate:!0}),{minDate:Fe,maxDate:ze,rangeState:Ue,lang:xe,ppNs:_e,drpNs:Ce,handleChangeRange:qe,handleRangeConfirm:At,handleShortcutClick:Ie,onSelect:Lt,t:$e}},_hoisted_1$G=["onClick"],_hoisted_2$r=["disabled"],_hoisted_3$e=["disabled"],_hoisted_4$9=["disabled"],_hoisted_5$6=["disabled"],unit$1="month",_sfc_main$1j=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change"],setup($,{emit:z}){const oe=$,ae=inject("EP_PICKER_BASE"),{disabledDate:le,cellClassName:ue,format:pe,defaultTime:_e,arrowControl:Ce,clearable:$e}=ae.props,xe=toRef$1(ae.props,"shortcuts"),Ie=toRef$1(ae.props,"defaultValue"),{lang:Fe}=useLocale(),ze=ref(dayjs().locale(Fe.value)),Ue=ref(dayjs().locale(Fe.value).add(1,unit$1)),{minDate:qe,maxDate:At,rangeState:Lt,ppNs:hn,drpNs:vn,handleChangeRange:_n,handleRangeConfirm:bn,handleShortcutClick:Sn,onSelect:Cn,t:En}=useRangePicker(oe,{defaultValue:Ie,leftDate:ze,rightDate:Ue,unit:unit$1,onParsedValueChanged:Jn}),$n=ref({min:null,max:null}),wn=ref({min:null,max:null}),Tn=computed(()=>`${ze.value.year()} ${En("el.datepicker.year")} ${En(`el.datepicker.month${ze.value.month()+1}`)}`),xn=computed(()=>`${Ue.value.year()} ${En("el.datepicker.year")} ${En(`el.datepicker.month${Ue.value.month()+1}`)}`),kn=computed(()=>ze.value.year()),Nn=computed(()=>ze.value.month()),Bn=computed(()=>Ue.value.year()),Dn=computed(()=>Ue.value.month()),In=computed(()=>!!xe.value.length),Ln=computed(()=>$n.value.min!==null?$n.value.min:qe.value?qe.value.format(Xn.value):""),Mn=computed(()=>$n.value.max!==null?$n.value.max:At.value||qe.value?(At.value||qe.value).format(Xn.value):""),Vn=computed(()=>wn.value.min!==null?wn.value.min:qe.value?qe.value.format(Fn.value):""),Yn=computed(()=>wn.value.max!==null?wn.value.max:At.value||qe.value?(At.value||qe.value).format(Fn.value):""),Fn=computed(()=>extractTimeFormat(pe)),Xn=computed(()=>extractDateFormat(pe)),sr=()=>{ze.value=ze.value.subtract(1,"year"),oe.unlinkPanels||(Ue.value=ze.value.add(1,"month")),jn("year")},vr=()=>{ze.value=ze.value.subtract(1,"month"),oe.unlinkPanels||(Ue.value=ze.value.add(1,"month")),jn("month")},ar=()=>{oe.unlinkPanels?Ue.value=Ue.value.add(1,"year"):(ze.value=ze.value.add(1,"year"),Ue.value=ze.value.add(1,"month")),jn("year")},qn=()=>{oe.unlinkPanels?Ue.value=Ue.value.add(1,"month"):(ze.value=ze.value.add(1,"month"),Ue.value=ze.value.add(1,"month")),jn("month")},Gn=()=>{ze.value=ze.value.add(1,"year"),jn("year")},Wn=()=>{ze.value=ze.value.add(1,"month"),jn("month")},Qn=()=>{Ue.value=Ue.value.subtract(1,"year"),jn("year")},cr=()=>{Ue.value=Ue.value.subtract(1,"month"),jn("month")},jn=rr=>{z("panel-change",[ze.value.toDate(),Ue.value.toDate()],rr)},Zn=computed(()=>{const rr=(Nn.value+1)%12,$r=Nn.value+1>=12?1:0;return oe.unlinkPanels&&new Date(kn.value+$r,rr)<new Date(Bn.value,Dn.value)}),nr=computed(()=>oe.unlinkPanels&&Bn.value*12+Dn.value-(kn.value*12+Nn.value+1)>=12),hr=computed(()=>!(qe.value&&At.value&&!Lt.value.selecting&&isValidRange([qe.value,At.value]))),gr=computed(()=>oe.type==="datetime"||oe.type==="datetimerange"),or=(rr,$r)=>{if(rr)return _e?dayjs(_e[$r]||_e).locale(Fe.value).year(rr.year()).month(rr.month()).date(rr.date()):rr},wr=(rr,$r=!0)=>{const Ar=rr.minDate,Fr=rr.maxDate,_r=or(Ar,0),Ir=or(Fr,1);At.value===Ir&&qe.value===_r||(z("calendar-change",[Ar.toDate(),Fr&&Fr.toDate()]),At.value=Ir,qe.value=_r,!(!$r||gr.value)&&bn())},mr=ref(!1),Tr=ref(!1),dr=()=>{mr.value=!1},ir=()=>{Tr.value=!1},ur=(rr,$r)=>{$n.value[$r]=rr;const Ar=dayjs(rr,Xn.value).locale(Fe.value);if(Ar.isValid()){if(le&&le(Ar.toDate()))return;$r==="min"?(ze.value=Ar,qe.value=(qe.value||ze.value).year(Ar.year()).month(Ar.month()).date(Ar.date()),oe.unlinkPanels||(Ue.value=Ar.add(1,"month"),At.value=qe.value.add(1,"month"))):(Ue.value=Ar,At.value=(At.value||Ue.value).year(Ar.year()).month(Ar.month()).date(Ar.date()),oe.unlinkPanels||(ze.value=Ar.subtract(1,"month"),qe.value=At.value.subtract(1,"month")))}},fr=(rr,$r)=>{$n.value[$r]=null},kr=(rr,$r)=>{wn.value[$r]=rr;const Ar=dayjs(rr,Fn.value).locale(Fe.value);Ar.isValid()&&($r==="min"?(mr.value=!0,qe.value=(qe.value||ze.value).hour(Ar.hour()).minute(Ar.minute()).second(Ar.second()),(!At.value||At.value.isBefore(qe.value))&&(At.value=qe.value)):(Tr.value=!0,At.value=(At.value||Ue.value).hour(Ar.hour()).minute(Ar.minute()).second(Ar.second()),Ue.value=At.value,At.value&&At.value.isBefore(qe.value)&&(qe.value=At.value)))},Dr=(rr,$r)=>{wn.value[$r]=null,$r==="min"?(ze.value=qe.value,mr.value=!1):(Ue.value=At.value,Tr.value=!1)},Lr=(rr,$r,Ar)=>{wn.value.min||(rr&&(ze.value=rr,qe.value=(qe.value||ze.value).hour(rr.hour()).minute(rr.minute()).second(rr.second())),Ar||(mr.value=$r),(!At.value||At.value.isBefore(qe.value))&&(At.value=qe.value,Ue.value=rr))},Mr=(rr,$r,Ar)=>{wn.value.max||(rr&&(Ue.value=rr,At.value=(At.value||Ue.value).hour(rr.hour()).minute(rr.minute()).second(rr.second())),Ar||(Tr.value=$r),At.value&&At.value.isBefore(qe.value)&&(qe.value=At.value))},br=()=>{ze.value=getDefaultValue(unref(Ie),{lang:unref(Fe),unit:"month",unlinkPanels:oe.unlinkPanels})[0],Ue.value=ze.value.add(1,"month"),z("pick",null)},Cr=rr=>isArray$c(rr)?rr.map($r=>$r.format(pe)):rr.format(pe),lr=rr=>isArray$c(rr)?rr.map($r=>dayjs($r,pe).locale(Fe.value)):dayjs(rr,pe).locale(Fe.value);function Jn(rr,$r){if(oe.unlinkPanels&&$r){const Ar=(rr==null?void 0:rr.year())||0,Fr=(rr==null?void 0:rr.month())||0,_r=$r.year(),Ir=$r.month();Ue.value=Ar===_r&&Fr===Ir?$r.add(1,unit$1):$r}else Ue.value=ze.value.add(1,unit$1),$r&&(Ue.value=Ue.value.hour($r.hour()).minute($r.minute()).second($r.second()))}return z("set-picker-option",["isValidValue",isValidRange]),z("set-picker-option",["parseUserInput",lr]),z("set-picker-option",["formatToString",Cr]),z("set-picker-option",["handleClear",br]),(rr,$r)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(hn).b(),unref(vn).b(),{"has-sidebar":rr.$slots.sidebar||unref(In),"has-time":unref(gr)}])},[createBaseVNode("div",{class:normalizeClass(unref(hn).e("body-wrapper"))},[renderSlot(rr.$slots,"sidebar",{class:normalizeClass(unref(hn).e("sidebar"))}),unref(In)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(hn).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(xe),(Ar,Fr)=>(openBlock(),createElementBlock("button",{key:Fr,type:"button",class:normalizeClass(unref(hn).e("shortcut")),onClick:_r=>unref(Sn)(Ar)},toDisplayString$1(Ar.text),11,_hoisted_1$G))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(hn).e("body"))},[unref(gr)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(vn).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(vn).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(vn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(Lt).selecting,placeholder:unref(En)("el.datepicker.startDate"),class:normalizeClass(unref(vn).e("editor")),"model-value":unref(Ln),"validate-event":!1,onInput:$r[0]||($r[0]=Ar=>ur(Ar,"min")),onChange:$r[1]||($r[1]=Ar=>fr(Ar,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(vn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(vn).e("editor")),disabled:unref(Lt).selecting,placeholder:unref(En)("el.datepicker.startTime"),"model-value":unref(Vn),"validate-event":!1,onFocus:$r[2]||($r[2]=Ar=>mr.value=!0),onInput:$r[3]||($r[3]=Ar=>kr(Ar,"min")),onChange:$r[4]||($r[4]=Ar=>Dr(Ar,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:mr.value,format:unref(Fn),"datetime-role":"start","time-arrow-control":unref(Ce),"parsed-value":ze.value,onPick:Lr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),dr]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(vn).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(vn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(vn).e("editor")),disabled:unref(Lt).selecting,placeholder:unref(En)("el.datepicker.endDate"),"model-value":unref(Mn),readonly:!unref(qe),"validate-event":!1,onInput:$r[5]||($r[5]=Ar=>ur(Ar,"max")),onChange:$r[6]||($r[6]=Ar=>fr(Ar,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(vn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(vn).e("editor")),disabled:unref(Lt).selecting,placeholder:unref(En)("el.datepicker.endTime"),"model-value":unref(Yn),readonly:!unref(qe),"validate-event":!1,onFocus:$r[7]||($r[7]=Ar=>unref(qe)&&(Tr.value=!0)),onInput:$r[8]||($r[8]=Ar=>kr(Ar,"max")),onChange:$r[9]||($r[9]=Ar=>Dr(Ar,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:Tr.value,format:unref(Fn),"time-arrow-control":unref(Ce),"parsed-value":Ue.value,onPick:Mr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),ir]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(hn).e("content"),unref(vn).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(vn).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(hn).e("icon-btn"),"d-arrow-left"]),onClick:sr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(hn).e("icon-btn"),"arrow-left"]),onClick:vr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),rr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(nr),class:normalizeClass([[unref(hn).e("icon-btn"),{"is-disabled":!unref(nr)}],"d-arrow-right"]),onClick:Gn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$r)):createCommentVNode("v-if",!0),rr.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Zn),class:normalizeClass([[unref(hn).e("icon-btn"),{"is-disabled":!unref(Zn)}],"arrow-right"]),onClick:Wn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_3$e)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(Tn)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:ze.value,"min-date":unref(qe),"max-date":unref(At),"range-state":unref(Lt),"disabled-date":unref(le),"cell-class-name":unref(ue),onChangerange:unref(_n),onPick:wr,onSelect:unref(Cn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(hn).e("content"),unref(vn).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(vn).e("header"))},[rr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(nr),class:normalizeClass([[unref(hn).e("icon-btn"),{"is-disabled":!unref(nr)}],"d-arrow-left"]),onClick:Qn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_4$9)):createCommentVNode("v-if",!0),rr.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Zn),class:normalizeClass([[unref(hn).e("icon-btn"),{"is-disabled":!unref(Zn)}],"arrow-left"]),onClick:cr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_5$6)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(hn).e("icon-btn"),"d-arrow-right"]),onClick:ar},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(hn).e("icon-btn"),"arrow-right"]),onClick:qn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(xn)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:Ue.value,"min-date":unref(qe),"max-date":unref(At),"range-state":unref(Lt),"disabled-date":unref(le),"cell-class-name":unref(ue),onChangerange:unref(_n),onPick:wr,onSelect:unref(Cn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(gr)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(hn).e("footer"))},[unref($e)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(hn).e("link-btn")),onClick:br},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(En)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(hn).e("link-btn")),disabled:unref(hr),onClick:$r[10]||($r[10]=Ar=>unref(bn)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(En)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc$1(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const panelMonthRangeProps=buildProps({...panelRangeSharedProps}),panelMonthRangeEmits=["pick","set-picker-option"],useMonthRangeHeader=({unlinkPanels:$,leftDate:z,rightDate:oe})=>{const{t:ae}=useLocale(),le=()=>{z.value=z.value.subtract(1,"year"),$.value||(oe.value=oe.value.subtract(1,"year"))},ue=()=>{$.value||(z.value=z.value.add(1,"year")),oe.value=oe.value.add(1,"year")},pe=()=>{z.value=z.value.add(1,"year")},_e=()=>{oe.value=oe.value.subtract(1,"year")},Ce=computed(()=>`${z.value.year()} ${ae("el.datepicker.year")}`),$e=computed(()=>`${oe.value.year()} ${ae("el.datepicker.year")}`),xe=computed(()=>z.value.year()),Ie=computed(()=>oe.value.year()===z.value.year()?z.value.year()+1:oe.value.year());return{leftPrevYear:le,rightNextYear:ue,leftNextYear:pe,rightPrevYear:_e,leftLabel:Ce,rightLabel:$e,leftYear:xe,rightYear:Ie}},_hoisted_1$F=["onClick"],_hoisted_2$q=["disabled"],_hoisted_3$d=["disabled"],unit="year",__default__$R=defineComponent({name:"DatePickerMonthRange"}),_sfc_main$1i=defineComponent({...__default__$R,props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup($,{emit:z}){const oe=$,{lang:ae}=useLocale(),le=inject("EP_PICKER_BASE"),{shortcuts:ue,disabledDate:pe,format:_e}=le.props,Ce=toRef$1(le.props,"defaultValue"),$e=ref(dayjs().locale(ae.value)),xe=ref(dayjs().locale(ae.value).add(1,unit)),{minDate:Ie,maxDate:Fe,rangeState:ze,ppNs:Ue,drpNs:qe,handleChangeRange:At,handleRangeConfirm:Lt,handleShortcutClick:hn,onSelect:vn}=useRangePicker(oe,{defaultValue:Ce,leftDate:$e,rightDate:xe,unit,onParsedValueChanged:Dn}),_n=computed(()=>!!ue.length),{leftPrevYear:bn,rightNextYear:Sn,leftNextYear:Cn,rightPrevYear:En,leftLabel:$n,rightLabel:wn,leftYear:Tn,rightYear:xn}=useMonthRangeHeader({unlinkPanels:toRef$1(oe,"unlinkPanels"),leftDate:$e,rightDate:xe}),kn=computed(()=>oe.unlinkPanels&&xn.value>Tn.value+1),Nn=(In,Ln=!0)=>{const Mn=In.minDate,Vn=In.maxDate;Fe.value===Vn&&Ie.value===Mn||(Fe.value=Vn,Ie.value=Mn,Ln&&Lt())},Bn=In=>In.map(Ln=>Ln.format(_e));function Dn(In,Ln){if(oe.unlinkPanels&&Ln){const Mn=(In==null?void 0:In.year())||0,Vn=Ln.year();xe.value=Mn===Vn?Ln.add(1,unit):Ln}else xe.value=$e.value.add(1,unit)}return z("set-picker-option",["formatToString",Bn]),(In,Ln)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ue).b(),unref(qe).b(),{"has-sidebar":!!In.$slots.sidebar||unref(_n)}])},[createBaseVNode("div",{class:normalizeClass(unref(Ue).e("body-wrapper"))},[renderSlot(In.$slots,"sidebar",{class:normalizeClass(unref(Ue).e("sidebar"))}),unref(_n)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ue).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),(Mn,Vn)=>(openBlock(),createElementBlock("button",{key:Vn,type:"button",class:normalizeClass(unref(Ue).e("shortcut")),onClick:Yn=>unref(hn)(Mn)},toDisplayString$1(Mn.text),11,_hoisted_1$F))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ue).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(Ue).e("content"),unref(qe).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(qe).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ue).e("icon-btn"),"d-arrow-left"]),onClick:Ln[0]||(Ln[0]=(...Mn)=>unref(bn)&&unref(bn)(...Mn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),In.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(kn),class:normalizeClass([[unref(Ue).e("icon-btn"),{[unref(Ue).is("disabled")]:!unref(kn)}],"d-arrow-right"]),onClick:Ln[1]||(Ln[1]=(...Mn)=>unref(Cn)&&unref(Cn)(...Mn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$q)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref($n)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:$e.value,"min-date":unref(Ie),"max-date":unref(Fe),"range-state":unref(ze),"disabled-date":unref(pe),onChangerange:unref(At),onPick:Nn,onSelect:unref(vn)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(Ue).e("content"),unref(qe).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(qe).e("header"))},[In.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(kn),class:normalizeClass([[unref(Ue).e("icon-btn"),{"is-disabled":!unref(kn)}],"d-arrow-left"]),onClick:Ln[2]||(Ln[2]=(...Mn)=>unref(En)&&unref(En)(...Mn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_3$d)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ue).e("icon-btn"),"d-arrow-right"]),onClick:Ln[3]||(Ln[3]=(...Mn)=>unref(Sn)&&unref(Sn)(...Mn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(wn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:xe.value,"min-date":unref(Ie),"max-date":unref(Fe),"range-state":unref(ze),"disabled-date":unref(pe),onChangerange:unref(At),onPick:Nn,onSelect:unref(vn)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc$1(_sfc_main$1i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const getPanel=function($){switch($){case"daterange":case"datetimerange":return DateRangePickPanel;case"monthrange":return MonthRangePickPanel;default:return DatePickPanel}};dayjs.extend(localeData);dayjs.extend(advancedFormat);dayjs.extend(customParseFormat);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(dayOfYear);dayjs.extend(isSameOrAfter);dayjs.extend(isSameOrBefore);var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:datePickerProps,emits:["update:modelValue"],setup($,{expose:z,emit:oe,slots:ae}){const le=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef$1($,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:ae,pickerNs:le});const ue=ref();z({focus:(Ce=!0)=>{var $e;($e=ue.value)==null||$e.focus(Ce)},handleOpen:()=>{var Ce;(Ce=ue.value)==null||Ce.handleOpen()},handleClose:()=>{var Ce;(Ce=ue.value)==null||Ce.handleClose()}});const _e=Ce=>{oe("update:modelValue",Ce)};return()=>{var Ce;const $e=(Ce=$.format)!=null?Ce:DEFAULT_FORMATS_DATEPICKER[$.type]||DEFAULT_FORMATS_DATE,xe=getPanel($.type);return createVNode(CommonPicker,mergeProps($,{format:$e,type:$.type,ref:ue,"onUpdate:modelValue":_e}),{default:Ie=>createVNode(xe,Ie,null),"range-separator":ae["range-separator"]})}}});const _DatePicker=DatePicker;_DatePicker.install=$=>{$.component(_DatePicker.name,_DatePicker)};const ElDatePicker=_DatePicker,descriptionsKey=Symbol("elDescriptions");var ElDescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:inject(descriptionsKey,{})}},render(){var $,z,oe,ae,le,ue;const pe=getNormalizedProps(this.cell),{border:_e,direction:Ce}=this.descriptions,$e=Ce==="vertical",xe=((oe=(z=($=this.cell)==null?void 0:$.children)==null?void 0:z.label)==null?void 0:oe.call(z))||pe.label,Ie=(ue=(le=(ae=this.cell)==null?void 0:ae.children)==null?void 0:le.default)==null?void 0:ue.call(le),Fe=pe.span,ze=pe.align?`is-${pe.align}`:"",Ue=pe.labelAlign?`is-${pe.labelAlign}`:ze,qe=pe.className,At=pe.labelClassName,Lt={width:addUnit(pe.width),minWidth:addUnit(pe.minWidth)},hn=useNamespace("descriptions");switch(this.type){case"label":return h$3(this.tag,{style:Lt,class:[hn.e("cell"),hn.e("label"),hn.is("bordered-label",_e),hn.is("vertical-label",$e),Ue,At],colSpan:$e?Fe:1},xe);case"content":return h$3(this.tag,{style:Lt,class:[hn.e("cell"),hn.e("content"),hn.is("bordered-content",_e),hn.is("vertical-content",$e),ze,qe],colSpan:$e?Fe:Fe*2-1},Ie);default:return h$3("td",{style:Lt,class:[hn.e("cell"),ze],colSpan:Fe},[isNil(xe)?void 0:h$3("span",{class:[hn.e("label"),At]},xe),h$3("span",{class:[hn.e("content"),qe]},Ie)])}}});const descriptionsRowProps=buildProps({row:{type:Array,default:()=>[]}}),_hoisted_1$E={key:1},__default__$Q=defineComponent({name:"ElDescriptionsRow"}),_sfc_main$1h=defineComponent({...__default__$Q,props:descriptionsRowProps,setup($){const z=inject(descriptionsKey,{});return(oe,ae)=>unref(z).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.row,(le,ue)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${ue}`,cell:le,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.row,(le,ue)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${ue}`,cell:le,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$E,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.row,(le,ue)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${ue}`},[unref(z).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(ElDescriptionsCell),{cell:le,tag:"td",type:"label"},null,8,["cell"]),createVNode(unref(ElDescriptionsCell),{cell:le,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:le,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc$1(_sfc_main$1h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const descriptionProps=buildProps({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:useSizeProp,title:{type:String,default:""},extra:{type:String,default:""}}),__default__$P=defineComponent({name:"ElDescriptions"}),_sfc_main$1g=defineComponent({...__default__$P,props:descriptionProps,setup($){const z=$,oe=useNamespace("descriptions"),ae=useFormSize(),le=useSlots();provide(descriptionsKey,z);const ue=computed(()=>[oe.b(),oe.m(ae.value)]),pe=(Ce,$e,xe,Ie=!1)=>(Ce.props||(Ce.props={}),$e>xe&&(Ce.props.span=xe),Ie&&(Ce.props.span=$e),Ce),_e=()=>{var Ce;const $e=flattedChildren((Ce=le.default)==null?void 0:Ce.call(le)).filter(Ue=>{var qe;return((qe=Ue==null?void 0:Ue.type)==null?void 0:qe.name)==="ElDescriptionsItem"}),xe=[];let Ie=[],Fe=z.column,ze=0;return $e.forEach((Ue,qe)=>{var At;const Lt=((At=Ue.props)==null?void 0:At.span)||1;if(qe<$e.length-1&&(ze+=Lt>Fe?Fe:Lt),qe===$e.length-1){const hn=z.column-ze%z.column;Ie.push(pe(Ue,hn,Fe,!0)),xe.push(Ie);return}Lt<Fe?(Fe-=Lt,Ie.push(Ue)):(Ie.push(pe(Ue,Lt,Fe)),xe.push(Ie),Fe=z.column,Ie=[])}),xe};return(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue))},[Ce.title||Ce.extra||Ce.$slots.title||Ce.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("title"))},[renderSlot(Ce.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ce.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(oe).e("extra"))},[renderSlot(Ce.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1(Ce.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(oe).e("table"),unref(oe).is("bordered",Ce.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_e(),(xe,Ie)=>(openBlock(),createBlock(ElDescriptionsRow,{key:Ie,row:xe},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc$1(_sfc_main$1g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),DescriptionsItem=defineComponent({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const ElDescriptions=withInstall(Descriptions,{DescriptionsItem}),ElDescriptionsItem=withNoopInstall(DescriptionsItem),overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:$=>$ instanceof MouseEvent},BLOCK="overlay";var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup($,{slots:z,emit:oe}){const ae=useNamespace(BLOCK),le=Ce=>{oe("click",Ce)},{onClick:ue,onMousedown:pe,onMouseup:_e}=useSameTarget($.customMaskEvent?void 0:le);return()=>$.mask?createVNode("div",{class:[ae.b(),$.overlayClass],style:{zIndex:$.zIndex},onClick:ue,onMousedown:pe,onMouseup:_e},[renderSlot(z,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$3("div",{class:$.overlayClass,style:{zIndex:$.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(z,"default")])}});const ElOverlay=Overlay$1,dialogInjectionKey=Symbol("dialogInjectionKey"),dialogContentProps=buildProps({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:iconPropType},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),dialogContentEmits={close:()=>!0},_hoisted_1$D=["aria-label"],_hoisted_2$p=["id"],__default__$O=defineComponent({name:"ElDialogContent"}),_sfc_main$1f=defineComponent({...__default__$O,props:dialogContentProps,emits:dialogContentEmits,setup($){const z=$,{t:oe}=useLocale(),{Close:ae}=CloseComponents,{dialogRef:le,headerRef:ue,bodyId:pe,ns:_e,style:Ce}=inject(dialogInjectionKey),{focusTrapRef:$e}=inject(FOCUS_TRAP_INJECTION_KEY),xe=composeRefs($e,le),Ie=computed(()=>z.draggable);return useDraggable(le,ue,Ie),(Fe,ze)=>(openBlock(),createElementBlock("div",{ref:unref(xe),class:normalizeClass([unref(_e).b(),unref(_e).is("fullscreen",Fe.fullscreen),unref(_e).is("draggable",unref(Ie)),unref(_e).is("align-center",Fe.alignCenter),{[unref(_e).m("center")]:Fe.center},Fe.customClass]),style:normalizeStyle$1(unref(Ce)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:ue,class:normalizeClass(unref(_e).e("header"))},[renderSlot(Fe.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(_e).e("title"))},toDisplayString$1(Fe.title),3)]),Fe.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(oe)("el.dialog.close"),class:normalizeClass(unref(_e).e("headerbtn")),type:"button",onClick:ze[0]||(ze[0]=Ue=>Fe.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(_e).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.closeIcon||unref(ae))))]),_:1},8,["class"])],10,_hoisted_1$D)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(pe),class:normalizeClass(unref(_e).e("body"))},[renderSlot(Fe.$slots,"default")],10,_hoisted_2$p),Fe.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(_e).e("footer"))},[renderSlot(Fe.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc$1(_sfc_main$1f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:{type:Boolean,default:!1},beforeClose:{type:definePropType(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:$=>isBoolean$3($),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=($,z)=>{const ae=getCurrentInstance().emit,{nextZIndex:le}=useZIndex();let ue="";const pe=useId(),_e=useId(),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref($.zIndex||le());let Fe,ze;const Ue=useGlobalConfig("namespace",defaultNamespace),qe=computed(()=>{const Nn={},Bn=`--${Ue.value}-dialog`;return $.fullscreen||($.top&&(Nn[`${Bn}-margin-top`]=$.top),$.width&&(Nn[`${Bn}-width`]=addUnit($.width))),Nn}),At=computed(()=>$.alignCenter?{display:"flex"}:{});function Lt(){ae("opened")}function hn(){ae("closed"),ae(UPDATE_MODEL_EVENT,!1),$.destroyOnClose&&(xe.value=!1)}function vn(){ae("close")}function _n(){ze==null||ze(),Fe==null||Fe(),$.openDelay&&$.openDelay>0?{stop:Fe}=useTimeoutFn$1(()=>En(),$.openDelay):En()}function bn(){Fe==null||Fe(),ze==null||ze(),$.closeDelay&&$.closeDelay>0?{stop:ze}=useTimeoutFn$1(()=>$n(),$.closeDelay):$n()}function Sn(){function Nn(Bn){Bn||($e.value=!0,Ce.value=!1)}$.beforeClose?$.beforeClose(Nn):bn()}function Cn(){$.closeOnClickModal&&Sn()}function En(){isClient$2&&(Ce.value=!0)}function $n(){Ce.value=!1}function wn(){ae("openAutoFocus")}function Tn(){ae("closeAutoFocus")}function xn(Nn){var Bn;((Bn=Nn.detail)==null?void 0:Bn.focusReason)==="pointer"&&Nn.preventDefault()}$.lockScroll&&useLockscreen(Ce);function kn(){$.closeOnPressEscape&&Sn()}return watch(()=>$.modelValue,Nn=>{Nn?($e.value=!1,_n(),xe.value=!0,Ie.value=$.zIndex?Ie.value++:le(),nextTick(()=>{ae("open"),z.value&&(z.value.scrollTop=0)})):Ce.value&&bn()}),watch(()=>$.fullscreen,Nn=>{z.value&&(Nn?(ue=z.value.style.transform,z.value.style.transform=""):z.value.style.transform=ue)}),onMounted(()=>{$.modelValue&&(Ce.value=!0,xe.value=!0,_n())}),{afterEnter:Lt,afterLeave:hn,beforeLeave:vn,handleClose:Sn,onModalClick:Cn,close:bn,doClose:$n,onOpenAutoFocus:wn,onCloseAutoFocus:Tn,onCloseRequested:kn,onFocusoutPrevented:xn,titleId:pe,bodyId:_e,closed:$e,style:qe,overlayDialogStyle:At,rendered:xe,visible:Ce,zIndex:Ie}},_hoisted_1$C=["aria-label","aria-labelledby","aria-describedby"],__default__$N=defineComponent({name:"ElDialog",inheritAttrs:!1}),_sfc_main$1e=defineComponent({...__default__$N,props:dialogProps,emits:dialogEmits,setup($,{expose:z}){const oe=$,ae=useSlots();useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},computed(()=>!!ae.title)),useDeprecated({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},computed(()=>!!oe.customClass));const le=useNamespace("dialog"),ue=ref(),pe=ref(),_e=ref(),{visible:Ce,titleId:$e,bodyId:xe,style:Ie,overlayDialogStyle:Fe,rendered:ze,zIndex:Ue,afterEnter:qe,afterLeave:At,beforeLeave:Lt,handleClose:hn,onModalClick:vn,onOpenAutoFocus:_n,onCloseAutoFocus:bn,onCloseRequested:Sn,onFocusoutPrevented:Cn}=useDialog(oe,ue);provide(dialogInjectionKey,{dialogRef:ue,headerRef:pe,bodyId:xe,ns:le,rendered:ze,style:Ie});const En=useSameTarget(vn),$n=computed(()=>oe.draggable&&!oe.fullscreen);return z({visible:Ce,dialogContentRef:_e}),(wn,Tn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!wn.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(qe),onAfterLeave:unref(At),onBeforeLeave:unref(Lt),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:wn.modal,"overlay-class":wn.modalClass,"z-index":unref(Ue)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":wn.title||void 0,"aria-labelledby":wn.title?void 0:unref($e),"aria-describedby":unref(xe),class:normalizeClass(`${unref(le).namespace.value}-overlay-dialog`),style:normalizeStyle$1(unref(Fe)),onClick:Tn[0]||(Tn[0]=(...xn)=>unref(En).onClick&&unref(En).onClick(...xn)),onMousedown:Tn[1]||(Tn[1]=(...xn)=>unref(En).onMousedown&&unref(En).onMousedown(...xn)),onMouseup:Tn[2]||(Tn[2]=(...xn)=>unref(En).onMouseup&&unref(En).onMouseup(...xn))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref(Ce),"focus-start-el":"container",onFocusAfterTrapped:unref(_n),onFocusAfterReleased:unref(bn),onFocusoutPrevented:unref(Cn),onReleaseRequested:unref(Sn)},{default:withCtx(()=>[unref(ze)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:_e},wn.$attrs,{"custom-class":wn.customClass,center:wn.center,"align-center":wn.alignCenter,"close-icon":wn.closeIcon,draggable:unref($n),fullscreen:wn.fullscreen,"show-close":wn.showClose,title:wn.title,onClose:unref(hn)}),createSlots({header:withCtx(()=>[wn.$slots.title?renderSlot(wn.$slots,"title",{key:1}):renderSlot(wn.$slots,"header",{key:0,close:unref(hn),titleId:unref($e),titleClass:unref(le).e("title")})]),default:withCtx(()=>[renderSlot(wn.$slots,"default")]),_:2},[wn.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(wn.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_hoisted_1$C)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(Ce)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Dialog=_export_sfc$1(_sfc_main$1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ElDialog=withInstall(Dialog),dividerProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:definePropType(String),default:"solid"}}),__default__$M=defineComponent({name:"ElDivider"}),_sfc_main$1d=defineComponent({...__default__$M,props:dividerProps,setup($){const z=$,oe=useNamespace("divider"),ae=computed(()=>oe.cssVar({"border-style":z.borderStyle}));return(le,ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(oe).m(le.direction)]),style:normalizeStyle$1(unref(ae)),role:"separator"},[le.$slots.default&&le.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("text"),unref(oe).is(le.contentPosition)])},[renderSlot(le.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc$1(_sfc_main$1d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ElDivider=withInstall(Divider),drawerProps=buildProps({...dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),drawerEmits=dialogEmits,_sfc_main$1c=defineComponent({name:"ElDrawer",components:{ElOverlay,ElFocusTrap,ElIcon,Close:close_default},inheritAttrs:!1,props:drawerProps,emits:drawerEmits,setup($,{slots:z}){useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},computed(()=>!!z.title)),useDeprecated({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},computed(()=>!!$.customClass));const oe=ref(),ae=ref(),le=useNamespace("drawer"),{t:ue}=useLocale(),pe=computed(()=>$.direction==="rtl"||$.direction==="ltr"),_e=computed(()=>addUnit($.size));return{...useDialog($,oe),drawerRef:oe,focusStartRef:ae,isHorizontal:pe,drawerSize:_e,ns:le,t:ue}}}),_hoisted_1$B=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$o=["id"],_hoisted_3$c=["aria-label"],_hoisted_4$8=["id"];function _sfc_render$p($,z,oe,ae,le,ue){const pe=resolveComponent("close"),_e=resolveComponent("el-icon"),Ce=resolveComponent("el-focus-trap"),$e=resolveComponent("el-overlay");return openBlock(),createBlock(Teleport,{to:"body",disabled:!$.appendToBody},[createVNode(Transition,{name:$.ns.b("fade"),onAfterEnter:$.afterEnter,onAfterLeave:$.afterLeave,onBeforeLeave:$.beforeLeave,persisted:""},{default:withCtx(()=>[withDirectives(createVNode($e,{mask:$.modal,"overlay-class":$.modalClass,"z-index":$.zIndex,onClick:$.onModalClick},{default:withCtx(()=>[createVNode(Ce,{loop:"",trapped:$.visible,"focus-trap-el":$.drawerRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":$.title||void 0,"aria-labelledby":$.title?void 0:$.titleId,"aria-describedby":$.bodyId},$.$attrs,{class:[$.ns.b(),$.direction,$.visible&&"open",$.customClass],style:$.isHorizontal?"width: "+$.drawerSize:"height: "+$.drawerSize,role:"dialog",onClick:z[1]||(z[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref:"focusStartRef",class:normalizeClass($.ns.e("sr-focus")),tabindex:"-1"},null,2),$.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass($.ns.e("header"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot($.$slots,"header",{key:0,close:$.handleClose,titleId:$.titleId,titleClass:$.ns.e("title")},()=>[$.$slots.title?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,id:$.titleId,role:"heading",class:normalizeClass($.ns.e("title"))},toDisplayString$1($.title),11,_hoisted_2$o))]),$.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":$.t("el.drawer.close"),class:normalizeClass($.ns.e("close-btn")),type:"button",onClick:z[0]||(z[0]=(...xe)=>$.handleClose&&$.handleClose(...xe))},[createVNode(_e,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(pe)]),_:1},8,["class"])],10,_hoisted_3$c)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),$.rendered?(openBlock(),createElementBlock("div",{key:1,id:$.bodyId,class:normalizeClass($.ns.e("body"))},[renderSlot($.$slots,"default")],10,_hoisted_4$8)):createCommentVNode("v-if",!0),$.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("footer"))},[renderSlot($.$slots,"footer")],2)):createCommentVNode("v-if",!0)],16,_hoisted_1$B)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,$.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Drawer=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$p],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1b=defineComponent({inheritAttrs:!1});function _sfc_render$o($,z,oe,ae,le,ue){return renderSlot($.$slots,"default")}var Collection=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$o],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1a=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$n($,z,oe,ae,le,ue){return renderSlot($.$slots,"default")}var CollectionItem=_export_sfc$1(_sfc_main$1a,[["render",_sfc_render$n],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=$=>{const z=`El${$}Collection`,oe=`${z}Item`,ae=Symbol(z),le=Symbol(oe),ue={...Collection,name:z,setup(){const _e=ref(null),Ce=new Map;provide(ae,{itemMap:Ce,getItems:()=>{const xe=unref(_e);if(!xe)return[];const Ie=Array.from(xe.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...Ce.values()].sort((ze,Ue)=>Ie.indexOf(ze.ref)-Ie.indexOf(Ue.ref))},collectionRef:_e})}},pe={...CollectionItem,name:oe,setup(_e,{attrs:Ce}){const $e=ref(null),xe=inject(ae,void 0);provide(le,{collectionItemRef:$e}),onMounted(()=>{const Ie=unref($e);Ie&&xe.itemMap.set(Ie,{ref:Ie,...Ce})}),onBeforeUnmount(()=>{const Ie=unref($e);xe.itemMap.delete(Ie)})}};return{COLLECTION_INJECTION_KEY:ae,COLLECTION_ITEM_INJECTION_KEY:le,ElCollection:ue,ElCollectionItem:pe}},rovingFocusGroupProps=buildProps({style:{type:definePropType([String,Array,Object])},currentTabId:{type:definePropType(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:definePropType(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ElCollection$1,ElCollectionItem:ElCollectionItem$1,COLLECTION_INJECTION_KEY:COLLECTION_INJECTION_KEY$1,COLLECTION_ITEM_INJECTION_KEY:COLLECTION_ITEM_INJECTION_KEY$1}=createCollectionWithScope("RovingFocusGroup"),ROVING_FOCUS_GROUP_INJECTION_KEY=Symbol("elRovingFocusGroup"),ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY=Symbol("elRovingFocusGroupItem"),MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},getDirectionAwareKey=($,z)=>{if(z!=="rtl")return $;switch($){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return $}},getFocusIntent=($,z,oe)=>{const ae=getDirectionAwareKey($.key,oe);if(!(z==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(ae))&&!(z==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(ae)))return MAP_KEY_TO_FOCUS_INTENT[ae]},reorderArray=($,z)=>$.map((oe,ae)=>$[(ae+z)%$.length]),focusFirst=$=>{const{activeElement:z}=document;for(const oe of $)if(oe===z||(oe.focus(),z!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$19=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup($,{emit:z}){var oe;const ae=ref((oe=$.currentTabId||$.defaultCurrentTabId)!=null?oe:null),le=ref(!1),ue=ref(!1),pe=ref(null),{getItems:_e}=inject(COLLECTION_INJECTION_KEY$1,void 0),Ce=computed(()=>[{outline:"none"},$.style]),$e=qe=>{z(CURRENT_TAB_ID_CHANGE_EVT,qe)},xe=()=>{le.value=!0},Ie=composeEventHandlers(qe=>{var At;(At=$.onMousedown)==null||At.call($,qe)},()=>{ue.value=!0}),Fe=composeEventHandlers(qe=>{var At;(At=$.onFocus)==null||At.call($,qe)},qe=>{const At=!unref(ue),{target:Lt,currentTarget:hn}=qe;if(Lt===hn&&At&&!unref(le)){const vn=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(hn==null||hn.dispatchEvent(vn),!vn.defaultPrevented){const _n=_e().filter($n=>$n.focusable),bn=_n.find($n=>$n.active),Sn=_n.find($n=>$n.id===unref(ae)),En=[bn,Sn,..._n].filter(Boolean).map($n=>$n.ref);focusFirst(En)}}ue.value=!1}),ze=composeEventHandlers(qe=>{var At;(At=$.onBlur)==null||At.call($,qe)},()=>{le.value=!1}),Ue=(...qe)=>{z("entryFocus",...qe)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(ae),loop:toRef$1($,"loop"),tabIndex:computed(()=>unref(le)?-1:0),rovingFocusGroupRef:pe,rovingFocusGroupRootStyle:Ce,orientation:toRef$1($,"orientation"),dir:toRef$1($,"dir"),onItemFocus:$e,onItemShiftTab:xe,onBlur:ze,onFocus:Fe,onMousedown:Ie}),watch(()=>$.currentTabId,qe=>{ae.value=qe??null}),useEventListener$1(pe,ENTRY_FOCUS_EVT,Ue)}});function _sfc_render$m($,z,oe,ae,le,ue){return renderSlot($.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$m],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$18=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl}});function _sfc_render$l($,z,oe,ae,le,ue){const pe=resolveComponent("el-roving-focus-group-impl"),_e=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(_e,null,{default:withCtx(()=>[createVNode(pe,normalizeProps(guardReactiveProps($.$attrs)),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$l],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const _sfc_main$17=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup($,{emit:z}){const{currentTabbedId:oe,loop:ae,onItemFocus:le,onItemShiftTab:ue}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:pe}=inject(COLLECTION_INJECTION_KEY$1,void 0),_e=useId(),Ce=ref(null),$e=composeEventHandlers(ze=>{z("mousedown",ze)},ze=>{$.focusable?le(unref(_e)):ze.preventDefault()}),xe=composeEventHandlers(ze=>{z("focus",ze)},()=>{le(unref(_e))}),Ie=composeEventHandlers(ze=>{z("keydown",ze)},ze=>{const{key:Ue,shiftKey:qe,target:At,currentTarget:Lt}=ze;if(Ue===EVENT_CODE.tab&&qe){ue();return}if(At!==Lt)return;const hn=getFocusIntent(ze);if(hn){ze.preventDefault();let _n=pe().filter(bn=>bn.focusable).map(bn=>bn.ref);switch(hn){case"last":{_n.reverse();break}case"prev":case"next":{hn==="prev"&&_n.reverse();const bn=_n.indexOf(Lt);_n=ae.value?reorderArray(_n,bn+1):_n.slice(bn+1);break}}nextTick(()=>{focusFirst(_n)})}}),Fe=computed(()=>oe.value===unref(_e));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:Ce,tabIndex:computed(()=>unref(Fe)?0:-1),handleMousedown:$e,handleFocus:xe,handleKeydown:Ie}),{id:_e,handleKeydown:Ie,handleFocus:xe,handleMousedown:$e}}});function _sfc_render$k($,z,oe,ae,le,ue){const pe=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(pe,{id:$.id,focusable:$.focusable,active:$.active},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc$1(_sfc_main$17,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const dropdownProps=buildProps({trigger:useTooltipTriggerProps.trigger,effect:{...useTooltipContentProps.effect,default:"light"},type:{type:definePropType(String)},placement:{type:definePropType(String),default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:definePropType(Object)},teleported:useTooltipContentProps.teleported}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),FIRST_KEYS=[EVENT_CODE.down,EVENT_CODE.pageDown,EVENT_CODE.home],LAST_KEYS=[EVENT_CODE.up,EVENT_CODE.pageUp,EVENT_CODE.end],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],{ElCollection,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=createCollectionWithScope("Dropdown"),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$16=defineComponent({name:"ElDropdown",components:{ElButton,ElButtonGroup,ElScrollbar,ElDropdownCollection:ElCollection,ElTooltip,ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup($,{emit:z}){const oe=getCurrentInstance(),ae=useNamespace("dropdown"),{t:le}=useLocale(),ue=ref(),pe=ref(),_e=ref(null),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(!1),Fe=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],ze=computed(()=>({maxHeight:addUnit($.maxHeight)})),Ue=computed(()=>[ae.m(_n.value)]),qe=useId().value,At=computed(()=>$.id||qe);watch([ue,toRef$1($,"trigger")],([Dn,In],[Ln])=>{var Mn,Vn,Yn;const Fn=isArray$c(In)?In:[In];(Mn=Ln==null?void 0:Ln.$el)!=null&&Mn.removeEventListener&&Ln.$el.removeEventListener("pointerenter",Sn),(Vn=Dn==null?void 0:Dn.$el)!=null&&Vn.removeEventListener&&Dn.$el.removeEventListener("pointerenter",Sn),(Yn=Dn==null?void 0:Dn.$el)!=null&&Yn.addEventListener&&Fn.includes("hover")&&Dn.$el.addEventListener("pointerenter",Sn)},{immediate:!0}),onBeforeUnmount(()=>{var Dn,In;(In=(Dn=ue.value)==null?void 0:Dn.$el)!=null&&In.removeEventListener&&ue.value.$el.removeEventListener("pointerenter",Sn)});function Lt(){hn()}function hn(){var Dn;(Dn=_e.value)==null||Dn.onClose()}function vn(){var Dn;(Dn=_e.value)==null||Dn.onOpen()}const _n=useFormSize();function bn(...Dn){z("command",...Dn)}function Sn(){var Dn,In;(In=(Dn=ue.value)==null?void 0:Dn.$el)==null||In.focus()}function Cn(){}function En(){const Dn=unref(Ce);Dn==null||Dn.focus(),xe.value=null}function $n(Dn){xe.value=Dn}function wn(Dn){Ie.value||(Dn.preventDefault(),Dn.stopImmediatePropagation())}function Tn(){z("visible-change",!0)}function xn(Dn){(Dn==null?void 0:Dn.type)==="keydown"&&Ce.value.focus()}function kn(){z("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:Ce,role:computed(()=>$.role),triggerId:At,isUsingKeyboard:Ie,onItemEnter:Cn,onItemLeave:En}),provide("elDropdown",{instance:oe,dropdownSize:_n,handleClick:Lt,commandHandler:bn,trigger:toRef$1($,"trigger"),hideOnClick:toRef$1($,"hideOnClick")}),{t:le,ns:ae,scrollbar:$e,wrapStyle:ze,dropdownTriggerKls:Ue,dropdownSize:_n,triggerId:At,triggerKeys:Fe,currentTabId:xe,handleCurrentTabIdChange:$n,handlerMainButtonClick:Dn=>{z("click",Dn)},handleEntryFocus:wn,handleClose:hn,handleOpen:vn,handleBeforeShowTooltip:Tn,handleShowTooltip:xn,handleBeforeHideTooltip:kn,onFocusAfterTrapped:Dn=>{var In,Ln;Dn.preventDefault(),(Ln=(In=Ce.value)==null?void 0:In.focus)==null||Ln.call(In,{preventScroll:!0})},popperRef:_e,contentRef:Ce,triggeringElementRef:ue,referenceElementRef:pe}}});function _sfc_render$j($,z,oe,ae,le,ue){var pe;const _e=resolveComponent("el-dropdown-collection"),Ce=resolveComponent("el-roving-focus-group"),$e=resolveComponent("el-scrollbar"),xe=resolveComponent("el-only-child"),Ie=resolveComponent("el-tooltip"),Fe=resolveComponent("el-button"),ze=resolveComponent("arrow-down"),Ue=resolveComponent("el-icon"),qe=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("disabled",$.disabled)])},[createVNode(Ie,{ref:"popperRef",role:$.role,effect:$.effect,"fallback-placements":["bottom","top"],"popper-options":$.popperOptions,"gpu-acceleration":!1,"hide-after":$.trigger==="hover"?$.hideTimeout:0,"manual-mode":!0,placement:$.placement,"popper-class":[$.ns.e("popper"),$.popperClass],"reference-element":(pe=$.referenceElementRef)==null?void 0:pe.$el,trigger:$.trigger,"trigger-keys":$.triggerKeys,"trigger-target-el":$.contentRef,"show-after":$.trigger==="hover"?$.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":$.triggeringElementRef,"virtual-triggering":$.splitButton,disabled:$.disabled,transition:`${$.ns.namespace.value}-zoom-in-top`,teleported:$.teleported,pure:"",persistent:"",onBeforeShow:$.handleBeforeShowTooltip,onShow:$.handleShowTooltip,onBeforeHide:$.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode($e,{ref:"scrollbar","wrap-style":$.wrapStyle,tag:"div","view-class":$.ns.e("list")},{default:withCtx(()=>[createVNode(Ce,{loop:$.loop,"current-tab-id":$.currentTabId,orientation:"horizontal",onCurrentTabIdChange:$.handleCurrentTabIdChange,onEntryFocus:$.handleEntryFocus},{default:withCtx(()=>[createVNode(_e,null,{default:withCtx(()=>[renderSlot($.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[$.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode(xe,{id:$.triggerId,ref:"triggeringElementRef",role:"button",tabindex:$.tabindex},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),$.splitButton?(openBlock(),createBlock(qe,{key:0},{default:withCtx(()=>[createVNode(Fe,mergeProps({ref:"referenceElementRef"},$.buttonProps,{size:$.dropdownSize,type:$.type,disabled:$.disabled,tabindex:$.tabindex,onClick:$.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode(Fe,mergeProps({id:$.triggerId,ref:"triggeringElementRef"},$.buttonProps,{role:"button",size:$.dropdownSize,type:$.type,class:$.ns.e("caret-button"),disabled:$.disabled,tabindex:$.tabindex,"aria-label":$.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode(Ue,{class:normalizeClass($.ns.e("icon"))},{default:withCtx(()=>[createVNode(ze)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$15=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup($,{emit:z}){const oe=useNamespace("dropdown"),{role:ae}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:le}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:ue}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:pe,tabIndex:_e,handleFocus:Ce,handleKeydown:$e,handleMousedown:xe}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),Ie=composeRefs(le,ue,pe),Fe=computed(()=>ae.value==="menu"?"menuitem":ae.value==="navigation"?"link":"button"),ze=composeEventHandlers(Ue=>{const{code:qe}=Ue;if(qe===EVENT_CODE.enter||qe===EVENT_CODE.space)return Ue.preventDefault(),Ue.stopImmediatePropagation(),z("clickimpl",Ue),!0},$e);return{ns:oe,itemRef:Ie,dataset:{[COLLECTION_ITEM_SIGN]:""},role:Fe,tabIndex:_e,handleFocus:Ce,handleKeydown:ze,handleMousedown:xe}}}),_hoisted_1$A=["aria-disabled","tabindex","role"];function _sfc_render$i($,z,oe,ae,le,ue){const pe=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[$.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:$.ns.bem("menu","item","divided")},$.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:$.itemRef},{...$.dataset,...$.$attrs},{"aria-disabled":$.disabled,class:[$.ns.be("menu","item"),$.ns.is("disabled",$.disabled)],tabindex:$.tabIndex,role:$.role,onClick:z[0]||(z[0]=_e=>$.$emit("clickimpl",_e)),onFocus:z[1]||(z[1]=(..._e)=>$.handleFocus&&$.handleFocus(..._e)),onKeydown:z[2]||(z[2]=withModifiers((..._e)=>$.handleKeydown&&$.handleKeydown(..._e),["self"])),onMousedown:z[3]||(z[3]=(..._e)=>$.handleMousedown&&$.handleMousedown(..._e)),onPointermove:z[4]||(z[4]=_e=>$.$emit("pointermove",_e)),onPointerleave:z[5]||(z[5]=_e=>$.$emit("pointerleave",_e))}),[$.icon?(openBlock(),createBlock(pe,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot($.$slots,"default")],16,_hoisted_1$A)],64)}var ElDropdownItemImpl=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const $=inject("elDropdown",{}),z=computed(()=>$==null?void 0:$.dropdownSize);return{elDropdown:$,_elDropdownSize:z}},_sfc_main$14=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup($,{emit:z,attrs:oe}){const{elDropdown:ae}=useDropdown(),le=getCurrentInstance(),ue=ref(null),pe=computed(()=>{var ze,Ue;return(Ue=(ze=unref(ue))==null?void 0:ze.textContent)!=null?Ue:""}),{onItemEnter:_e,onItemLeave:Ce}=inject(DROPDOWN_INJECTION_KEY,void 0),$e=composeEventHandlers(ze=>(z("pointermove",ze),ze.defaultPrevented),whenMouse(ze=>{if($.disabled){Ce(ze);return}const Ue=ze.currentTarget;Ue===document.activeElement||Ue.contains(document.activeElement)||(_e(ze),ze.defaultPrevented||Ue==null||Ue.focus())})),xe=composeEventHandlers(ze=>(z("pointerleave",ze),ze.defaultPrevented),whenMouse(ze=>{Ce(ze)})),Ie=composeEventHandlers(ze=>{if(!$.disabled)return z("click",ze),ze.type!=="keydown"&&ze.defaultPrevented},ze=>{var Ue,qe,At;if($.disabled){ze.stopImmediatePropagation();return}(Ue=ae==null?void 0:ae.hideOnClick)!=null&&Ue.value&&((qe=ae.handleClick)==null||qe.call(ae)),(At=ae.commandHandler)==null||At.call(ae,$.command,le,ze)}),Fe=computed(()=>({...$,...oe}));return{handleClick:Ie,handlePointerMove:$e,handlePointerLeave:xe,textContent:pe,propsAndAttrs:Fe}}});function _sfc_render$h($,z,oe,ae,le,ue){var pe;const _e=resolveComponent("el-dropdown-item-impl"),Ce=resolveComponent("el-roving-focus-item"),$e=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock($e,{disabled:$.disabled,"text-value":(pe=$.textValue)!=null?pe:$.textContent},{default:withCtx(()=>[createVNode(Ce,{focusable:!$.disabled},{default:withCtx(()=>[createVNode(_e,mergeProps($.propsAndAttrs,{onPointerleave:$.handlePointerLeave,onPointermove:$.handlePointerMove,onClickimpl:$.handleClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var DropdownItem=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$13=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup($){const z=useNamespace("dropdown"),{_elDropdownSize:oe}=useDropdown(),ae=oe.value,{focusTrapRef:le,onKeydown:ue}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:pe,role:_e,triggerId:Ce}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:$e,getItems:xe}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:Ie,rovingFocusGroupRootStyle:Fe,tabIndex:ze,onBlur:Ue,onFocus:qe,onMousedown:At}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:Lt}=inject(COLLECTION_INJECTION_KEY$1,void 0),hn=computed(()=>[z.b("menu"),z.bm("menu",ae==null?void 0:ae.value)]),vn=composeRefs(pe,$e,le,Ie,Lt),_n=composeEventHandlers(Sn=>{var Cn;(Cn=$.onKeydown)==null||Cn.call($,Sn)},Sn=>{const{currentTarget:Cn,code:En,target:$n}=Sn;if(Cn.contains($n),EVENT_CODE.tab===En&&Sn.stopImmediatePropagation(),Sn.preventDefault(),$n!==unref(pe)||!FIRST_LAST_KEYS.includes(En))return;const Tn=xe().filter(xn=>!xn.disabled).map(xn=>xn.ref);LAST_KEYS.includes(En)&&Tn.reverse(),focusFirst(Tn)});return{size:ae,rovingFocusGroupRootStyle:Fe,tabIndex:ze,dropdownKls:hn,role:_e,triggerId:Ce,dropdownListWrapperRef:vn,handleKeydown:Sn=>{_n(Sn),ue(Sn)},onBlur:Ue,onFocus:qe,onMousedown:At}}}),_hoisted_1$z=["role","aria-labelledby"];function _sfc_render$g($,z,oe,ae,le,ue){return openBlock(),createElementBlock("ul",{ref:$.dropdownListWrapperRef,class:normalizeClass($.dropdownKls),style:normalizeStyle$1($.rovingFocusGroupRootStyle),tabindex:-1,role:$.role,"aria-labelledby":$.triggerId,onBlur:z[0]||(z[0]=(...pe)=>$.onBlur&&$.onBlur(...pe)),onFocus:z[1]||(z[1]=(...pe)=>$.onFocus&&$.onFocus(...pe)),onKeydown:z[2]||(z[2]=withModifiers((...pe)=>$.handleKeydown&&$.handleKeydown(...pe),["self"])),onMousedown:z[3]||(z[3]=withModifiers((...pe)=>$.onMousedown&&$.onMousedown(...pe),["self"]))},[renderSlot($.$slots,"default")],46,_hoisted_1$z)}var DropdownMenu=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$g],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const ElDropdown=withInstall(Dropdown,{DropdownItem,DropdownMenu}),ElDropdownItem=withNoopInstall(DropdownItem),ElDropdownMenu=withNoopInstall(DropdownMenu),_hoisted_1$y={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_hoisted_2$n=["id"],_hoisted_3$b=["stop-color"],_hoisted_4$7=["stop-color"],_hoisted_5$5=["id"],_hoisted_6$1=["stop-color"],_hoisted_7=["stop-color"],_hoisted_8=["id"],_hoisted_9={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},_hoisted_11={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},_hoisted_12=["fill"],_hoisted_13=["fill"],_hoisted_14={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_hoisted_15=["fill"],_hoisted_16=["fill"],_hoisted_17=["fill"],_hoisted_18=["fill"],_hoisted_19=["fill"],_hoisted_20={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},_hoisted_21=["fill","xlink:href"],_hoisted_22=["fill","mask"],_hoisted_23=["fill"],__default__$L=defineComponent({name:"ImgEmpty"}),_sfc_main$12=defineComponent({...__default__$L,setup($){const z=useNamespace("empty"),oe=useId();return(ae,le)=>(openBlock(),createElementBlock("svg",_hoisted_1$y,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(oe)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$b),createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$7)],8,_hoisted_2$n),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref(oe)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$1),createBaseVNode("stop",{"stop-color":`var(${unref(z).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$5),createBaseVNode("rect",{id:`path-3-${unref(oe)}`,x:"0",y:"0",width:"17",height:"36"},null,8,_hoisted_8)]),createBaseVNode("g",_hoisted_9,[createBaseVNode("g",_hoisted_10,[createBaseVNode("g",_hoisted_11,[createBaseVNode("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${unref(z).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${unref(z).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,_hoisted_13),createBaseVNode("g",_hoisted_14,[createBaseVNode("polygon",{id:"Rectangle-Copy-10",fill:`var(${unref(z).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_hoisted_15),createBaseVNode("polygon",{id:"Rectangle-Copy-11",fill:`var(${unref(z).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16),createBaseVNode("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${unref(oe)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,_hoisted_17),createBaseVNode("polygon",{id:"Rectangle-Copy-13",fill:`var(${unref(z).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,_hoisted_18)]),createBaseVNode("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${unref(oe)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{id:"Mask",fill:`var(${unref(z).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref(oe)}`},null,8,_hoisted_21),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${unref(z).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(oe)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,_hoisted_22)]),createBaseVNode("polygon",{id:"Rectangle-Copy-18",fill:`var(${unref(z).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,_hoisted_23)])])])]))}});var ImgEmpty=_export_sfc$1(_sfc_main$12,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const emptyProps=buildProps({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),_hoisted_1$x=["src"],_hoisted_2$m={key:1},__default__$K=defineComponent({name:"ElEmpty"}),_sfc_main$11=defineComponent({...__default__$K,props:emptyProps,setup($){const z=$,{t:oe}=useLocale(),ae=useNamespace("empty"),le=computed(()=>z.description||oe("el.table.emptyText")),ue=computed(()=>({width:addUnit(z.imageSize)}));return(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("image")),style:normalizeStyle$1(unref(ue))},[pe.image?(openBlock(),createElementBlock("img",{key:0,src:pe.image,ondragstart:"return false"},null,8,_hoisted_1$x)):renderSlot(pe.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(ae).e("description"))},[pe.$slots.description?renderSlot(pe.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$m,toDisplayString$1(unref(le)),1))],2),pe.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("bottom"))},[renderSlot(pe.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty=_export_sfc$1(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty),imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:()=>mutable([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageViewerEmits={close:()=>!0,switch:$=>isNumber$5($)},_hoisted_1$w=["src"],__default__$J=defineComponent({name:"ElImageViewer"}),_sfc_main$10=defineComponent({...__default__$J,props:imageViewerProps,emits:imageViewerEmits,setup($,{expose:z,emit:oe}){const ae=$,le={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},{t:ue}=useLocale(),pe=useNamespace("image-viewer"),{nextZIndex:_e}=useZIndex(),Ce=ref(),$e=ref([]),xe=effectScope(),Ie=ref(!0),Fe=ref(ae.initialIndex),ze=shallowRef(le.CONTAIN),Ue=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),qe=computed(()=>{const{urlList:In}=ae;return In.length<=1}),At=computed(()=>Fe.value===0),Lt=computed(()=>Fe.value===ae.urlList.length-1),hn=computed(()=>ae.urlList[Fe.value]),vn=computed(()=>{const{scale:In,deg:Ln,offsetX:Mn,offsetY:Vn,enableTransition:Yn}=Ue.value;let Fn=Mn/In,Xn=Vn/In;switch(Ln%360){case 90:case-270:[Fn,Xn]=[Xn,-Fn];break;case 180:case-180:[Fn,Xn]=[-Fn,-Xn];break;case 270:case-90:[Fn,Xn]=[-Xn,Fn];break}const sr={transform:`scale(${In}) rotate(${Ln}deg) translate(${Fn}px, ${Xn}px)`,transition:Yn?"transform .3s":""};return ze.value.name===le.CONTAIN.name&&(sr.maxWidth=sr.maxHeight="100%"),sr}),_n=computed(()=>isNumber$5(ae.zIndex)?ae.zIndex:_e());function bn(){Cn(),oe("close")}function Sn(){const In=throttle$1(Mn=>{switch(Mn.code){case EVENT_CODE.esc:ae.closeOnPressEscape&&bn();break;case EVENT_CODE.space:xn();break;case EVENT_CODE.left:Nn();break;case EVENT_CODE.up:Dn("zoomIn");break;case EVENT_CODE.right:Bn();break;case EVENT_CODE.down:Dn("zoomOut");break}}),Ln=throttle$1(Mn=>{const Vn=Mn.deltaY||Mn.deltaX;Dn(Vn<0?"zoomIn":"zoomOut",{zoomRate:ae.zoomRate,enableTransition:!1})});xe.run(()=>{useEventListener$1(document,"keydown",In),useEventListener$1(document,"wheel",Ln)})}function Cn(){xe.stop()}function En(){Ie.value=!1}function $n(In){Ie.value=!1,In.target.alt=ue("el.image.error")}function wn(In){if(Ie.value||In.button!==0||!Ce.value)return;Ue.value.enableTransition=!1;const{offsetX:Ln,offsetY:Mn}=Ue.value,Vn=In.pageX,Yn=In.pageY,Fn=throttle$1(sr=>{Ue.value={...Ue.value,offsetX:Ln+sr.pageX-Vn,offsetY:Mn+sr.pageY-Yn}}),Xn=useEventListener$1(document,"mousemove",Fn);useEventListener$1(document,"mouseup",()=>{Xn()}),In.preventDefault()}function Tn(){Ue.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function xn(){if(Ie.value)return;const In=keysOf(le),Ln=Object.values(le),Mn=ze.value.name,Yn=(Ln.findIndex(Fn=>Fn.name===Mn)+1)%In.length;ze.value=le[In[Yn]],Tn()}function kn(In){const Ln=ae.urlList.length;Fe.value=(In+Ln)%Ln}function Nn(){At.value&&!ae.infinite||kn(Fe.value-1)}function Bn(){Lt.value&&!ae.infinite||kn(Fe.value+1)}function Dn(In,Ln={}){if(Ie.value)return;const{zoomRate:Mn,rotateDeg:Vn,enableTransition:Yn}={zoomRate:ae.zoomRate,rotateDeg:90,enableTransition:!0,...Ln};switch(In){case"zoomOut":Ue.value.scale>.2&&(Ue.value.scale=Number.parseFloat((Ue.value.scale/Mn).toFixed(3)));break;case"zoomIn":Ue.value.scale<7&&(Ue.value.scale=Number.parseFloat((Ue.value.scale*Mn).toFixed(3)));break;case"clockwise":Ue.value.deg+=Vn;break;case"anticlockwise":Ue.value.deg-=Vn;break}Ue.value.enableTransition=Yn}return watch(hn,()=>{nextTick(()=>{const In=$e.value[0];In!=null&&In.complete||(Ie.value=!0)})}),watch(Fe,In=>{Tn(),oe("switch",In)}),onMounted(()=>{var In,Ln;Sn(),(Ln=(In=Ce.value)==null?void 0:In.focus)==null||Ln.call(In)}),z({setActiveItem:kn}),(In,Ln)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!In.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:Ce,tabindex:-1,class:normalizeClass(unref(pe).e("wrapper")),style:normalizeStyle$1({zIndex:unref(_n)})},[createBaseVNode("div",{class:normalizeClass(unref(pe).e("mask")),onClick:Ln[0]||(Ln[0]=withModifiers(Mn=>In.hideOnClickModal&&bn(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("close")]),onClick:bn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(qe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("prev"),unref(pe).is("disabled",!In.infinite&&unref(At))]),onClick:Nn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("next"),unref(pe).is("disabled",!In.infinite&&unref(Lt))]),onClick:Bn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(pe).e("btn"),unref(pe).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(pe).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:Ln[1]||(Ln[1]=Mn=>Dn("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Ln[2]||(Ln[2]=Mn=>Dn("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(pe).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:xn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ze).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(pe).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Ln[3]||(Ln[3]=Mn=>Dn("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Ln[4]||(Ln[4]=Mn=>Dn("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(pe).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(In.urlList,(Mn,Vn)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:Yn=>$e.value[Vn]=Yn,key:Mn,src:Mn,style:normalizeStyle$1(unref(vn)),class:normalizeClass(unref(pe).e("img")),onLoad:En,onError:$n,onMousedown:wn},null,46,_hoisted_1$w)),[[vShow,Vn===Fe.value]])),128))],2),renderSlot(In.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var ImageViewer=_export_sfc$1(_sfc_main$10,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageEmits={load:$=>$ instanceof Event,error:$=>$ instanceof Event,switch:$=>isNumber$5($),close:()=>!0,show:()=>!0},_hoisted_1$v=["src","loading"],_hoisted_2$l={key:0},__default__$I=defineComponent({name:"ElImage",inheritAttrs:!1}),_sfc_main$$=defineComponent({...__default__$I,props:imageProps,emits:imageEmits,setup($,{emit:z}){const oe=$;let ae="";const{t:le}=useLocale(),ue=useNamespace("image"),pe=useAttrs$1(),_e=useAttrs(),Ce=ref(),$e=ref(!1),xe=ref(!0),Ie=ref(!1),Fe=ref(),ze=ref(),Ue=isClient$2&&"loading"in HTMLImageElement.prototype;let qe,At;const Lt=computed(()=>pe.style),hn=computed(()=>{const{fit:In}=oe;return isClient$2&&In?{objectFit:In}:{}}),vn=computed(()=>{const{previewSrcList:In}=oe;return Array.isArray(In)&&In.length>0}),_n=computed(()=>{const{previewSrcList:In,initialIndex:Ln}=oe;let Mn=Ln;return Ln>In.length-1&&(Mn=0),Mn}),bn=computed(()=>oe.loading==="eager"?!1:!Ue&&oe.loading==="lazy"||oe.lazy),Sn=()=>{isClient$2&&(xe.value=!0,$e.value=!1,Ce.value=oe.src)};function Cn(In){xe.value=!1,$e.value=!1,z("load",In)}function En(In){xe.value=!1,$e.value=!0,z("error",In)}function $n(){isInContainer(Fe.value,ze.value)&&(Sn(),xn())}const wn=useThrottleFn($n,200,!0);async function Tn(){var In;if(!isClient$2)return;await nextTick();const{scrollContainer:Ln}=oe;isElement$2(Ln)?ze.value=Ln:isString$7(Ln)&&Ln!==""?ze.value=(In=document.querySelector(Ln))!=null?In:void 0:Fe.value&&(ze.value=getScrollContainer(Fe.value)),ze.value&&(qe=useEventListener$1(ze,"scroll",wn),setTimeout(()=>$n(),100))}function xn(){!isClient$2||!ze.value||!wn||(qe==null||qe(),ze.value=void 0)}function kn(In){if(In.ctrlKey){if(In.deltaY<0)return In.preventDefault(),!1;if(In.deltaY>0)return In.preventDefault(),!1}}function Nn(){vn.value&&(At=useEventListener$1("wheel",kn,{passive:!1}),ae=document.body.style.overflow,document.body.style.overflow="hidden",Ie.value=!0,z("show"))}function Bn(){At==null||At(),document.body.style.overflow=ae,Ie.value=!1,z("close")}function Dn(In){z("switch",In)}return watch(()=>oe.src,()=>{bn.value?(xe.value=!0,$e.value=!1,xn(),Tn()):Sn()}),onMounted(()=>{bn.value?Tn():Sn()}),(In,Ln)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:Fe,class:normalizeClass([unref(ue).b(),In.$attrs.class]),style:normalizeStyle$1(unref(Lt))},[$e.value?renderSlot(In.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(ue).e("error"))},toDisplayString$1(unref(le)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[Ce.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(_e),{src:Ce.value,loading:In.loading,style:unref(hn),class:[unref(ue).e("inner"),unref(vn)&&unref(ue).e("preview"),xe.value&&unref(ue).is("loading")],onClick:Nn,onLoad:Cn,onError:En}),null,16,_hoisted_1$v)):createCommentVNode("v-if",!0),xe.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ue).e("wrapper"))},[renderSlot(In.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(ue).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),unref(vn)?(openBlock(),createElementBlock(Fragment,{key:2},[Ie.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":In.zIndex,"initial-index":unref(_n),infinite:In.infinite,"zoom-rate":In.zoomRate,"url-list":In.previewSrcList,"hide-on-click-modal":In.hideOnClickModal,teleported:In.previewTeleported,"close-on-press-escape":In.closeOnPressEscape,onClose:Bn,onSwitch:Dn},{default:withCtx(()=>[In.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$l,[renderSlot(In.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],6))}});var Image$1=_export_sfc$1(_sfc_main$$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ElImage=withInstall(Image$1),inputNumberProps=buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:$=>$===null||isNumber$5($)||["min","max"].includes($),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:$=>$>=0&&$===Number.parseInt(`${$}`,10)},validateEvent:{type:Boolean,default:!0}}),inputNumberEmits={[CHANGE_EVENT]:($,z)=>z!==$,blur:$=>$ instanceof FocusEvent,focus:$=>$ instanceof FocusEvent,[INPUT_EVENT]:$=>isNumber$5($)||isNil($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)||isNil($)},_hoisted_1$u=["aria-label","onKeydown"],_hoisted_2$k=["aria-label","onKeydown"],__default__$H=defineComponent({name:"ElInputNumber"}),_sfc_main$_=defineComponent({...__default__$H,props:inputNumberProps,emits:inputNumberEmits,setup($,{expose:z,emit:oe}){const ae=$,{t:le}=useLocale(),ue=useNamespace("input-number"),pe=ref(),_e=reactive({currentValue:ae.modelValue,userInput:null}),{formItem:Ce}=useFormItem(),$e=computed(()=>isNumber$5(ae.modelValue)&&ae.modelValue<=ae.min),xe=computed(()=>isNumber$5(ae.modelValue)&&ae.modelValue>=ae.max),Ie=computed(()=>{const kn=Lt(ae.step);return isUndefined$1(ae.precision)?Math.max(Lt(ae.modelValue),kn):(kn>ae.precision,ae.precision)}),Fe=computed(()=>ae.controls&&ae.controlsPosition==="right"),ze=useFormSize(),Ue=useFormDisabled(),qe=computed(()=>{if(_e.userInput!==null)return _e.userInput;let kn=_e.currentValue;if(isNil(kn))return"";if(isNumber$5(kn)){if(Number.isNaN(kn))return"";isUndefined$1(ae.precision)||(kn=kn.toFixed(ae.precision))}return kn}),At=(kn,Nn)=>{if(isUndefined$1(Nn)&&(Nn=Ie.value),Nn===0)return Math.round(kn);let Bn=String(kn);const Dn=Bn.indexOf(".");if(Dn===-1||!Bn.replace(".","").split("")[Dn+Nn])return kn;const Mn=Bn.length;return Bn.charAt(Mn-1)==="5"&&(Bn=`${Bn.slice(0,Math.max(0,Mn-1))}6`),Number.parseFloat(Number(Bn).toFixed(Nn))},Lt=kn=>{if(isNil(kn))return 0;const Nn=kn.toString(),Bn=Nn.indexOf(".");let Dn=0;return Bn!==-1&&(Dn=Nn.length-Bn-1),Dn},hn=(kn,Nn=1)=>isNumber$5(kn)?At(kn+ae.step*Nn):_e.currentValue,vn=()=>{if(ae.readonly||Ue.value||xe.value)return;const kn=Number(qe.value)||0,Nn=hn(kn);Sn(Nn),oe(INPUT_EVENT,_e.currentValue)},_n=()=>{if(ae.readonly||Ue.value||$e.value)return;const kn=Number(qe.value)||0,Nn=hn(kn,-1);Sn(Nn),oe(INPUT_EVENT,_e.currentValue)},bn=(kn,Nn)=>{const{max:Bn,min:Dn,step:In,precision:Ln,stepStrictly:Mn,valueOnClear:Vn}=ae;Bn<Dn&&throwError$1("InputNumber","min should not be greater than max.");let Yn=Number(kn);if(isNil(kn)||Number.isNaN(Yn))return null;if(kn===""){if(Vn===null)return null;Yn=isString$7(Vn)?{min:Dn,max:Bn}[Vn]:Vn}return Mn&&(Yn=At(Math.round(Yn/In)*In,Ln)),isUndefined$1(Ln)||(Yn=At(Yn,Ln)),(Yn>Bn||Yn<Dn)&&(Yn=Yn>Bn?Bn:Dn,Nn&&oe(UPDATE_MODEL_EVENT,Yn)),Yn},Sn=(kn,Nn=!0)=>{var Bn;const Dn=_e.currentValue,In=bn(kn);if(!Nn){oe(UPDATE_MODEL_EVENT,In);return}Dn!==In&&(_e.userInput=null,oe(UPDATE_MODEL_EVENT,In),oe(CHANGE_EVENT,In,Dn),ae.validateEvent&&((Bn=Ce==null?void 0:Ce.validate)==null||Bn.call(Ce,"change").catch(Ln=>void 0)),_e.currentValue=In)},Cn=kn=>{_e.userInput=kn;const Nn=kn===""?null:Number(kn);oe(INPUT_EVENT,Nn),Sn(Nn,!1)},En=kn=>{const Nn=kn!==""?Number(kn):"";(isNumber$5(Nn)&&!Number.isNaN(Nn)||kn==="")&&Sn(Nn),_e.userInput=null},$n=()=>{var kn,Nn;(Nn=(kn=pe.value)==null?void 0:kn.focus)==null||Nn.call(kn)},wn=()=>{var kn,Nn;(Nn=(kn=pe.value)==null?void 0:kn.blur)==null||Nn.call(kn)},Tn=kn=>{oe("focus",kn)},xn=kn=>{var Nn;oe("blur",kn),ae.validateEvent&&((Nn=Ce==null?void 0:Ce.validate)==null||Nn.call(Ce,"blur").catch(Bn=>void 0))};return watch(()=>ae.modelValue,kn=>{const Nn=bn(_e.userInput),Bn=bn(kn,!0);!isNumber$5(Nn)&&(!Nn||Nn!==Bn)&&(_e.currentValue=Bn,_e.userInput=null)},{immediate:!0}),onMounted(()=>{var kn;const{min:Nn,max:Bn,modelValue:Dn}=ae,In=(kn=pe.value)==null?void 0:kn.input;if(In.setAttribute("role","spinbutton"),Number.isFinite(Bn)?In.setAttribute("aria-valuemax",String(Bn)):In.removeAttribute("aria-valuemax"),Number.isFinite(Nn)?In.setAttribute("aria-valuemin",String(Nn)):In.removeAttribute("aria-valuemin"),In.setAttribute("aria-valuenow",String(_e.currentValue)),In.setAttribute("aria-disabled",String(Ue.value)),!isNumber$5(Dn)&&Dn!=null){let Ln=Number(Dn);Number.isNaN(Ln)&&(Ln=null),oe(UPDATE_MODEL_EVENT,Ln)}}),onUpdated(()=>{var kn;const Nn=(kn=pe.value)==null?void 0:kn.input;Nn==null||Nn.setAttribute("aria-valuenow",`${_e.currentValue}`)}),z({focus:$n,blur:wn}),(kn,Nn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ue).b(),unref(ue).m(unref(ze)),unref(ue).is("disabled",unref(Ue)),unref(ue).is("without-controls",!kn.controls),unref(ue).is("controls-right",unref(Fe))]),onDragstart:Nn[1]||(Nn[1]=withModifiers(()=>{},["prevent"]))},[kn.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref(le)("el.inputNumber.decrease"),class:normalizeClass([unref(ue).e("decrease"),unref(ue).is("disabled",unref($e))]),onKeydown:withKeys(_n,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Fe)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$u)),[[unref(vRepeatClick),_n]]):createCommentVNode("v-if",!0),kn.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref(le)("el.inputNumber.increase"),class:normalizeClass([unref(ue).e("increase"),unref(ue).is("disabled",unref(xe))]),onKeydown:withKeys(vn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Fe)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$k)),[[unref(vRepeatClick),vn]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:kn.id,ref_key:"input",ref:pe,type:"number",step:kn.step,"model-value":unref(qe),placeholder:kn.placeholder,readonly:kn.readonly,disabled:unref(Ue),size:unref(ze),max:kn.max,min:kn.min,name:kn.name,label:kn.label,"validate-event":!1,onWheel:Nn[0]||(Nn[0]=withModifiers(()=>{},["prevent"])),onKeydown:[withKeys(withModifiers(vn,["prevent"]),["up"]),withKeys(withModifiers(_n,["prevent"]),["down"])],onBlur:xn,onFocus:Tn,onInput:Cn,onChange:En},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var InputNumber=_export_sfc$1(_sfc_main$_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:iconPropType}}),linkEmits={click:$=>$ instanceof MouseEvent},_hoisted_1$t=["href"],__default__$G=defineComponent({name:"ElLink"}),_sfc_main$Z=defineComponent({...__default__$G,props:linkProps,emits:linkEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("link"),le=computed(()=>[ae.b(),ae.m(oe.type),ae.is("disabled",oe.disabled),ae.is("underline",oe.underline&&!oe.disabled)]);function ue(pe){oe.disabled||z("click",pe)}return(pe,_e)=>(openBlock(),createElementBlock("a",{class:normalizeClass(unref(le)),href:pe.disabled||!pe.href?void 0:pe.href,onClick:ue},[pe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(pe.icon)))]),_:1})):createCommentVNode("v-if",!0),pe.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ae).e("inner"))},[renderSlot(pe.$slots,"default")],2)):createCommentVNode("v-if",!0),pe.$slots.icon?renderSlot(pe.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$t))}});var Link=_export_sfc$1(_sfc_main$Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);let SubMenu$1=class{constructor(z,oe){this.parent=z,this.domNode=oe,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(z){z===this.subMenuItems.length?z=0:z<0&&(z=this.subMenuItems.length-1),this.subMenuItems[z].focus(),this.subIndex=z}addListeners(){const z=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,oe=>{oe.addEventListener("keydown",ae=>{let le=!1;switch(ae.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),le=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),le=!0;break}case EVENT_CODE.tab:{triggerEvent(z,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{le=!0,ae.currentTarget.click();break}}return le&&(ae.preventDefault(),ae.stopPropagation()),!1})})}},MenuItem$1=class{constructor(z,oe){this.domNode=z,this.submenu=null,this.submenu=null,this.init(oe)}init(z){this.domNode.setAttribute("tabindex","0");const oe=this.domNode.querySelector(`.${z}-menu`);oe&&(this.submenu=new SubMenu$1(this,oe)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",z=>{let oe=!1;switch(z.code){case EVENT_CODE.down:{triggerEvent(z.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),oe=!0;break}case EVENT_CODE.up:{triggerEvent(z.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),oe=!0;break}case EVENT_CODE.tab:{triggerEvent(z.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{oe=!0,z.currentTarget.click();break}}oe&&z.preventDefault()})}},Menu$1=class{constructor(z,oe){this.domNode=z,this.init(oe)}init(z){const oe=this.domNode.childNodes;Array.from(oe).forEach(ae=>{ae.nodeType===1&&new MenuItem$1(ae,z)})}};const _sfc_main$Y=defineComponent({name:"ElMenuCollapseTransition",setup(){const $=useNamespace("menu");return{listeners:{onBeforeEnter:oe=>oe.style.opacity="0.2",onEnter(oe,ae){addClass(oe,`${$.namespace.value}-opacity-transition`),oe.style.opacity="1",ae()},onAfterEnter(oe){removeClass(oe,`${$.namespace.value}-opacity-transition`),oe.style.opacity=""},onBeforeLeave(oe){oe.dataset||(oe.dataset={}),hasClass(oe,$.m("collapse"))?(removeClass(oe,$.m("collapse")),oe.dataset.oldOverflow=oe.style.overflow,oe.dataset.scrollWidth=oe.clientWidth.toString(),addClass(oe,$.m("collapse"))):(addClass(oe,$.m("collapse")),oe.dataset.oldOverflow=oe.style.overflow,oe.dataset.scrollWidth=oe.clientWidth.toString(),removeClass(oe,$.m("collapse"))),oe.style.width=`${oe.scrollWidth}px`,oe.style.overflow="hidden"},onLeave(oe){addClass(oe,"horizontal-collapse-transition"),oe.style.width=`${oe.dataset.scrollWidth}px`}}}}});function _sfc_render$f($,z,oe,ae,le,ue){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},$.listeners),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)}var ElMenuCollapseTransition=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu($,z){const oe=computed(()=>{let le=$.parent;const ue=[z.value];for(;le.type.name!=="ElMenu";)le.props.index&&ue.unshift(le.props.index),le=le.parent;return ue});return{parentMenu:computed(()=>{let le=$.parent;for(;le&&!["ElMenu","ElSubMenu"].includes(le.type.name);)le=le.parent;return le}),indexPath:oe}}function useMenuColor($){return computed(()=>{const oe=$.backgroundColor;return oe?new TinyColor(oe).shade(20).toString():""})}const useMenuCssVar=($,z)=>{const oe=useNamespace("menu");return computed(()=>oe.cssVarBlock({"text-color":$.textColor||"","hover-text-color":$.textColor||"","bg-color":$.backgroundColor||"","hover-bg-color":useMenuColor($).value||"","active-color":$.activeTextColor||"",level:`${z}`}))},subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:iconPropType},expandOpenIcon:{type:iconPropType},collapseCloseIcon:{type:iconPropType},collapseOpenIcon:{type:iconPropType}}),COMPONENT_NAME$c="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$c,props:subMenuProps,setup($,{slots:z,expose:oe}){useDeprecated({from:"popper-append-to-body",replacement:"teleported",scope:COMPONENT_NAME$c,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},computed(()=>$.popperAppendToBody!==void 0));const ae=getCurrentInstance(),{indexPath:le,parentMenu:ue}=useMenu(ae,computed(()=>$.index)),pe=useNamespace("menu"),_e=useNamespace("sub-menu"),Ce=inject("rootMenu");Ce||throwError$1(COMPONENT_NAME$c,"can not inject root menu");const $e=inject(`subMenu:${ue.value.uid}`);$e||throwError$1(COMPONENT_NAME$c,"can not inject sub menu");const xe=ref({}),Ie=ref({});let Fe;const ze=ref(!1),Ue=ref(),qe=ref(null),At=computed(()=>Tn.value==="horizontal"&&hn.value?"bottom-start":"right-start"),Lt=computed(()=>Tn.value==="horizontal"&&hn.value||Tn.value==="vertical"&&!Ce.props.collapse?$.expandCloseIcon&&$.expandOpenIcon?Sn.value?$.expandOpenIcon:$.expandCloseIcon:arrow_down_default:$.collapseCloseIcon&&$.collapseOpenIcon?Sn.value?$.collapseOpenIcon:$.collapseCloseIcon:arrow_right_default),hn=computed(()=>$e.level===0),vn=computed(()=>{var Vn;const Yn=(Vn=$.teleported)!=null?Vn:$.popperAppendToBody;return Yn===void 0?hn.value:Yn}),_n=computed(()=>Ce.props.collapse?`${pe.namespace.value}-zoom-in-left`:`${pe.namespace.value}-zoom-in-top`),bn=computed(()=>Tn.value==="horizontal"&&hn.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),Sn=computed(()=>Ce.openedMenus.includes($.index)),Cn=computed(()=>{let Vn=!1;return Object.values(xe.value).forEach(Yn=>{Yn.active&&(Vn=!0)}),Object.values(Ie.value).forEach(Yn=>{Yn.active&&(Vn=!0)}),Vn}),En=computed(()=>Ce.props.backgroundColor||""),$n=computed(()=>Ce.props.activeTextColor||""),wn=computed(()=>Ce.props.textColor||""),Tn=computed(()=>Ce.props.mode),xn=reactive({index:$.index,indexPath:le,active:Cn}),kn=useMenuCssVar(Ce.props,$e.level+1),Nn=computed(()=>Tn.value!=="horizontal"?{color:wn.value}:{borderBottomColor:Cn.value?Ce.props.activeTextColor?$n.value:"":"transparent",color:Cn.value?$n.value:wn.value}),Bn=()=>{var Vn,Yn,Fn;return(Fn=(Yn=(Vn=qe.value)==null?void 0:Vn.popperRef)==null?void 0:Yn.popperInstanceRef)==null?void 0:Fn.destroy()},Dn=Vn=>{Vn||Bn()},In=()=>{Ce.props.menuTrigger==="hover"&&Ce.props.mode==="horizontal"||Ce.props.collapse&&Ce.props.mode==="vertical"||$.disabled||Ce.handleSubMenuClick({index:$.index,indexPath:le.value,active:Cn.value})},Ln=(Vn,Yn=$.showTimeout)=>{var Fn;Vn.type!=="focus"&&(Ce.props.menuTrigger==="click"&&Ce.props.mode==="horizontal"||!Ce.props.collapse&&Ce.props.mode==="vertical"||$.disabled||($e.mouseInChild.value=!0,Fe==null||Fe(),{stop:Fe}=useTimeoutFn$1(()=>{Ce.openMenu($.index,le.value)},Yn),vn.value&&((Fn=ue.value.vnode.el)==null||Fn.dispatchEvent(new MouseEvent("mouseenter")))))},Mn=(Vn=!1)=>{var Yn,Fn;Ce.props.menuTrigger==="click"&&Ce.props.mode==="horizontal"||!Ce.props.collapse&&Ce.props.mode==="vertical"||(Fe==null||Fe(),$e.mouseInChild.value=!1,{stop:Fe}=useTimeoutFn$1(()=>!ze.value&&Ce.closeMenu($.index,le.value),$.hideTimeout),vn.value&&Vn&&((Yn=ae.parent)==null?void 0:Yn.type.name)==="ElSubMenu"&&((Fn=$e.handleMouseleave)==null||Fn.call($e,!0)))};watch(()=>Ce.props.collapse,Vn=>Dn(!!Vn));{const Vn=Fn=>{Ie.value[Fn.index]=Fn},Yn=Fn=>{delete Ie.value[Fn.index]};provide(`subMenu:${ae.uid}`,{addSubMenu:Vn,removeSubMenu:Yn,handleMouseleave:Mn,mouseInChild:ze,level:$e.level+1})}return oe({opened:Sn}),onMounted(()=>{Ce.addSubMenu(xn),$e.addSubMenu(xn)}),onBeforeUnmount(()=>{$e.removeSubMenu(xn),Ce.removeSubMenu(xn)}),()=>{var Vn;const Yn=[(Vn=z.title)==null?void 0:Vn.call(z),h$3(ElIcon,{class:_e.e("icon-arrow"),style:{transform:Sn.value?$.expandCloseIcon&&$.expandOpenIcon||$.collapseCloseIcon&&$.collapseOpenIcon&&Ce.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$7(Lt.value)?h$3(ae.appContext.components[Lt.value]):h$3(Lt.value)})],Fn=Ce.isMenuPopup?h$3(ElTooltip,{ref:qe,visible:Sn.value,effect:"light",pure:!0,offset:$.popperOffset,showArrow:!1,persistent:!0,popperClass:$.popperClass,placement:At.value,teleported:vn.value,fallbackPlacements:bn.value,transition:_n.value,gpuAcceleration:!1},{content:()=>{var Xn;return h$3("div",{class:[pe.m(Tn.value),pe.m("popup-container"),$.popperClass],onMouseenter:sr=>Ln(sr,100),onMouseleave:()=>Mn(!0),onFocus:sr=>Ln(sr,100)},[h$3("ul",{class:[pe.b(),pe.m("popup"),pe.m(`popup-${At.value}`)],style:kn.value},[(Xn=z.default)==null?void 0:Xn.call(z)])])},default:()=>h$3("div",{class:_e.e("title"),style:[Nn.value,{backgroundColor:En.value}],onClick:In},Yn)}):h$3(Fragment,{},[h$3("div",{class:_e.e("title"),style:[Nn.value,{backgroundColor:En.value}],ref:Ue,onClick:In},Yn),h$3(_CollapseTransition,{},{default:()=>{var Xn;return withDirectives(h$3("ul",{role:"menu",class:[pe.b(),pe.m("inline")],style:kn.value},[(Xn=z.default)==null?void 0:Xn.call(z)]),[[vShow,Sn.value]])}})]);return h$3("li",{class:[_e.b(),_e.is("active",Cn.value),_e.is("opened",Sn.value),_e.is("disabled",$.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:Sn.value,onMouseenter:Ln,onMouseleave:()=>Mn(!0),onFocus:Ln},[Fn])}}});const menuProps=buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:definePropType(Array),default:()=>mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),checkIndexPath=$=>Array.isArray($)&&$.every(z=>isString$7(z)),menuEmits={close:($,z)=>isString$7($)&&checkIndexPath(z),open:($,z)=>isString$7($)&&checkIndexPath(z),select:($,z,oe,ae)=>isString$7($)&&checkIndexPath(z)&&isObject$8(oe)&&(ae===void 0||ae instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup($,{emit:z,slots:oe,expose:ae}){const le=getCurrentInstance(),ue=le.appContext.config.globalProperties.$router,pe=ref(),_e=useNamespace("menu"),Ce=useNamespace("sub-menu"),$e=ref(-1),xe=ref($.defaultOpeneds&&!$.collapse?$.defaultOpeneds.slice(0):[]),Ie=ref($.defaultActive),Fe=ref({}),ze=ref({}),Ue=computed(()=>$.mode==="horizontal"||$.mode==="vertical"&&$.collapse),qe=()=>{const Tn=Ie.value&&Fe.value[Ie.value];if(!Tn||$.mode==="horizontal"||$.collapse)return;Tn.indexPath.forEach(kn=>{const Nn=ze.value[kn];Nn&&At(kn,Nn.indexPath)})},At=(Tn,xn)=>{xe.value.includes(Tn)||($.uniqueOpened&&(xe.value=xe.value.filter(kn=>xn.includes(kn))),xe.value.push(Tn),z("open",Tn,xn))},Lt=Tn=>{const xn=xe.value.indexOf(Tn);xn!==-1&&xe.value.splice(xn,1)},hn=(Tn,xn)=>{Lt(Tn),z("close",Tn,xn)},vn=({index:Tn,indexPath:xn})=>{xe.value.includes(Tn)?hn(Tn,xn):At(Tn,xn)},_n=Tn=>{($.mode==="horizontal"||$.collapse)&&(xe.value=[]);const{index:xn,indexPath:kn}=Tn;if(!(isNil(xn)||isNil(kn)))if($.router&&ue){const Nn=Tn.route||xn,Bn=ue.push(Nn).then(Dn=>(Dn||(Ie.value=xn),Dn));z("select",xn,kn,{index:xn,indexPath:kn,route:Nn},Bn)}else Ie.value=xn,z("select",xn,kn,{index:xn,indexPath:kn})},bn=Tn=>{const xn=Fe.value,kn=xn[Tn]||Ie.value&&xn[Ie.value]||xn[$.defaultActive];kn?Ie.value=kn.index:Ie.value=Tn},Sn=()=>{var Tn,xn;if(!pe.value)return-1;const kn=Array.from((xn=(Tn=pe.value)==null?void 0:Tn.childNodes)!=null?xn:[]).filter(Vn=>Vn.nodeName!=="#comment"&&(Vn.nodeName!=="#text"||Vn.nodeValue)),Nn=64,Bn=Number.parseInt(getComputedStyle(pe.value).paddingLeft,10),Dn=Number.parseInt(getComputedStyle(pe.value).paddingRight,10),In=pe.value.clientWidth-Bn-Dn;let Ln=0,Mn=0;return kn.forEach((Vn,Yn)=>{Ln+=Vn.offsetWidth||0,Ln<=In-Nn&&(Mn=Yn+1)}),Mn===kn.length?-1:Mn},Cn=(Tn,xn=33.34)=>{let kn;return()=>{kn&&clearTimeout(kn),kn=setTimeout(()=>{Tn()},xn)}};let En=!0;const $n=()=>{const Tn=()=>{$e.value=-1,nextTick(()=>{$e.value=Sn()})};En?Tn():Cn(Tn)(),En=!1};watch(()=>$.defaultActive,Tn=>{Fe.value[Tn]||(Ie.value=""),bn(Tn)}),watch(()=>$.collapse,Tn=>{Tn&&(xe.value=[])}),watch(Fe.value,qe);let wn;watchEffect(()=>{$.mode==="horizontal"&&$.ellipsis?wn=useResizeObserver(pe,$n).stop:wn==null||wn()});{const Tn=Bn=>{ze.value[Bn.index]=Bn},xn=Bn=>{delete ze.value[Bn.index]};provide("rootMenu",reactive({props:$,openedMenus:xe,items:Fe,subMenus:ze,activeIndex:Ie,isMenuPopup:Ue,addMenuItem:Bn=>{Fe.value[Bn.index]=Bn},removeMenuItem:Bn=>{delete Fe.value[Bn.index]},addSubMenu:Tn,removeSubMenu:xn,openMenu:At,closeMenu:hn,handleMenuItemClick:_n,handleSubMenuClick:vn})),provide(`subMenu:${le.uid}`,{addSubMenu:Tn,removeSubMenu:xn,mouseInChild:ref(!1),level:0})}return onMounted(()=>{$.mode==="horizontal"&&new Menu$1(le.vnode.el,_e.namespace.value)}),ae({open:xn=>{const{indexPath:kn}=ze.value[xn];kn.forEach(Nn=>At(Nn,kn))},close:Lt,handleResize:$n}),()=>{var Tn,xn;let kn=(xn=(Tn=oe.default)==null?void 0:Tn.call(oe))!=null?xn:[];const Nn=[];if($.mode==="horizontal"&&pe.value){const In=flattedChildren(kn),Ln=$e.value===-1?In:In.slice(0,$e.value),Mn=$e.value===-1?[]:In.slice($e.value);Mn!=null&&Mn.length&&$.ellipsis&&(kn=Ln,Nn.push(h$3(SubMenu,{index:"sub-menu-more",class:Ce.e("hide-arrow")},{title:()=>h$3(ElIcon,{class:Ce.e("icon-more")},{default:()=>h$3(more_default)}),default:()=>Mn})))}const Bn=useMenuCssVar($,0),Dn=h$3("ul",{key:String($.collapse),role:"menubar",ref:pe,style:Bn.value,class:{[_e.b()]:!0,[_e.m($.mode)]:!0,[_e.m("collapse")]:$.collapse}},[...kn,...Nn]);return $.collapseTransition&&$.mode==="vertical"?h$3(ElMenuCollapseTransition,()=>Dn):Dn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:$=>isString$7($.index)&&Array.isArray($.indexPath)},COMPONENT_NAME$b="ElMenuItem",_sfc_main$X=defineComponent({name:COMPONENT_NAME$b,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup($,{emit:z}){const oe=getCurrentInstance(),ae=inject("rootMenu"),le=useNamespace("menu"),ue=useNamespace("menu-item");ae||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const{parentMenu:pe,indexPath:_e}=useMenu(oe,toRef$1($,"index")),Ce=inject(`subMenu:${pe.value.uid}`);Ce||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const $e=computed(()=>$.index===ae.activeIndex),xe=reactive({index:$.index,indexPath:_e,active:$e}),Ie=()=>{$.disabled||(ae.handleMenuItemClick({index:$.index,indexPath:_e.value,route:$.route}),z("click",xe))};return onMounted(()=>{Ce.addSubMenu(xe),ae.addMenuItem(xe)}),onBeforeUnmount(()=>{Ce.removeSubMenu(xe),ae.removeMenuItem(xe)}),{parentMenu:pe,rootMenu:ae,active:$e,nsMenu:le,nsMenuItem:ue,handleClick:Ie}}});function _sfc_render$e($,z,oe,ae,le,ue){const pe=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([$.nsMenuItem.b(),$.nsMenuItem.is("active",$.active),$.nsMenuItem.is("disabled",$.disabled)]),role:"menuitem",tabindex:"-1",onClick:z[0]||(z[0]=(..._e)=>$.handleClick&&$.handleClick(..._e))},[$.parentMenu.type.name==="ElMenu"&&$.rootMenu.props.collapse&&$.$slots.title?(openBlock(),createBlock(pe,{key:0,effect:$.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot($.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsMenu.be("tooltip","trigger"))},[renderSlot($.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot($.$slots,"default"),renderSlot($.$slots,"title")],64))],2)}var MenuItem=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},COMPONENT_NAME$a="ElMenuItemGroup",_sfc_main$W=defineComponent({name:COMPONENT_NAME$a,props:menuItemGroupProps,setup(){return{ns:useNamespace("menu-item-group")}}});function _sfc_render$d($,z,oe,ae,le,ue){return openBlock(),createElementBlock("li",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1($.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot($.$slots,"default")])],2)}var MenuItemGroup=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$d],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const ElMenu=withInstall(Menu,{MenuItem,MenuItemGroup,SubMenu}),ElMenuItem=withNoopInstall(MenuItem),ElMenuItemGroup=withNoopInstall(MenuItemGroup),ElSubMenu=withNoopInstall(SubMenu),pageHeaderProps=buildProps({icon:{type:iconPropType,default:()=>back_default},title:String,content:{type:String,default:""}}),pageHeaderEmits={back:()=>!0},_hoisted_1$s=["aria-label"],__default__$F=defineComponent({name:"ElPageHeader"}),_sfc_main$V=defineComponent({...__default__$F,props:pageHeaderProps,emits:pageHeaderEmits,setup($,{emit:z}){const oe=useSlots(),{t:ae}=useLocale(),le=useNamespace("page-header"),ue=computed(()=>[le.b(),{[le.m("has-breadcrumb")]:!!oe.breadcrumb,[le.m("has-extra")]:!!oe.extra,[le.is("contentful")]:!!oe.default}]);function pe(){z("back")}return(_e,Ce)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue))},[_e.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("breadcrumb"))},[renderSlot(_e.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("back")),role:"button",tabindex:"0",onClick:pe},[_e.icon||_e.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":_e.title||unref(ae)("el.pageHeader.title"),class:normalizeClass(unref(le).e("icon"))},[renderSlot(_e.$slots,"icon",{},()=>[_e.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$s)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("title"))},[renderSlot(_e.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(_e.title||unref(ae)("el.pageHeader.title")),1)])],2)],2),createVNode(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(le).e("content"))},[renderSlot(_e.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(_e.content),1)])],2)],2),_e.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("extra"))},[renderSlot(_e.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),_e.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("main"))},[renderSlot(_e.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var PageHeader=_export_sfc$1(_sfc_main$V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const ElPageHeader=withInstall(PageHeader),elPaginationKey=Symbol("elPaginationKey"),paginationPrevProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:iconPropType}}),paginationPrevEmits={click:$=>$ instanceof MouseEvent},_hoisted_1$r=["disabled","aria-label","aria-disabled"],_hoisted_2$j={key:0},__default__$E=defineComponent({name:"ElPaginationPrev"}),_sfc_main$U=defineComponent({...__default__$E,props:paginationPrevProps,emits:paginationPrevEmits,setup($){const z=$,{t:oe}=useLocale(),ae=computed(()=>z.disabled||z.currentPage<=1);return(le,ue)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(ae),"aria-label":le.prevText||unref(oe)("el.pagination.prev"),"aria-disabled":unref(ae),onClick:ue[0]||(ue[0]=pe=>le.$emit("click",pe))},[le.prevText?(openBlock(),createElementBlock("span",_hoisted_2$j,toDisplayString$1(le.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.prevIcon)))]),_:1}))],8,_hoisted_1$r))}});var Prev=_export_sfc$1(_sfc_main$U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const paginationNextProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:iconPropType}}),_hoisted_1$q=["disabled","aria-label","aria-disabled"],_hoisted_2$i={key:0},__default__$D=defineComponent({name:"ElPaginationNext"}),_sfc_main$T=defineComponent({...__default__$D,props:paginationNextProps,emits:["click"],setup($){const z=$,{t:oe}=useLocale(),ae=computed(()=>z.disabled||z.currentPage===z.pageCount||z.pageCount===0);return(le,ue)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(ae),"aria-label":le.nextText||unref(oe)("el.pagination.next"),"aria-disabled":unref(ae),onClick:ue[0]||(ue[0]=pe=>le.$emit("click",pe))},[le.nextText?(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString$1(le.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.nextIcon)))]),_:1}))],8,_hoisted_1$q))}});var Next=_export_sfc$1(_sfc_main$T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const selectGroupKey=Symbol("ElSelectGroup"),selectKey=Symbol("ElSelect");function useOption$1($,z){const oe=inject(selectKey),ae=inject(selectGroupKey,{disabled:!1}),le=computed(()=>Object.prototype.toString.call($.value).toLowerCase()==="[object object]"),ue=computed(()=>oe.props.multiple?Ie(oe.props.modelValue,$.value):Fe($.value,oe.props.modelValue)),pe=computed(()=>{if(oe.props.multiple){const qe=oe.props.modelValue||[];return!ue.value&&qe.length>=oe.props.multipleLimit&&oe.props.multipleLimit>0}else return!1}),_e=computed(()=>$.label||(le.value?"":$.value)),Ce=computed(()=>$.value||$.label||""),$e=computed(()=>$.disabled||z.groupDisabled||pe.value),xe=getCurrentInstance(),Ie=(qe=[],At)=>{if(le.value){const Lt=oe.props.valueKey;return qe&&qe.some(hn=>toRaw(get$1(hn,Lt))===get$1(At,Lt))}else return qe&&qe.includes(At)},Fe=(qe,At)=>{if(le.value){const{valueKey:Lt}=oe.props;return get$1(qe,Lt)===get$1(At,Lt)}else return qe===At},ze=()=>{!$.disabled&&!ae.disabled&&(oe.hoverIndex=oe.optionsArray.indexOf(xe.proxy))};watch(()=>_e.value,()=>{!$.created&&!oe.props.remote&&oe.setSelected()}),watch(()=>$.value,(qe,At)=>{const{remote:Lt,valueKey:hn}=oe.props;if(Object.is(qe,At)||(oe.onOptionDestroy(At,xe.proxy),oe.onOptionCreate(xe.proxy)),!$.created&&!Lt){if(hn&&typeof qe=="object"&&typeof At=="object"&&qe[hn]===At[hn])return;oe.setSelected()}}),watch(()=>ae.disabled,()=>{z.groupDisabled=ae.disabled},{immediate:!0});const{queryChange:Ue}=toRaw(oe);return watch(Ue,qe=>{const{query:At}=unref(qe),Lt=new RegExp(escapeStringRegexp(At),"i");z.visible=Lt.test(_e.value)||$.created,z.visible||oe.filteredOptionsCount--},{immediate:!0}),{select:oe,currentLabel:_e,currentValue:Ce,itemSelected:ue,isDisabled:$e,hoverItem:ze}}const _sfc_main$S=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup($){const z=useNamespace("select"),oe=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:ae,itemSelected:le,isDisabled:ue,select:pe,hoverItem:_e}=useOption$1($,oe),{visible:Ce,hover:$e}=toRefs(oe),xe=getCurrentInstance().proxy;pe.onOptionCreate(xe),onBeforeUnmount(()=>{const Fe=xe.value,{selected:ze}=pe,qe=(pe.props.multiple?ze:[ze]).some(At=>At.value===xe.value);nextTick(()=>{pe.cachedOptions.get(Fe)===xe&&!qe&&pe.cachedOptions.delete(Fe)}),pe.onOptionDestroy(Fe,xe)});function Ie(){$.disabled!==!0&&oe.groupDisabled!==!0&&pe.handleOptionSelect(xe,!0)}return{ns:z,currentLabel:ae,itemSelected:le,isDisabled:ue,select:pe,hoverItem:_e,visible:Ce,hover:$e,selectOptionClick:Ie,states:oe}}});function _sfc_render$c($,z,oe,ae,le,ue){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([$.ns.be("dropdown","item"),$.ns.is("disabled",$.isDisabled),{selected:$.itemSelected,hover:$.hover}]),onMouseenter:z[0]||(z[0]=(...pe)=>$.hoverItem&&$.hoverItem(...pe)),onClick:z[1]||(z[1]=withModifiers((...pe)=>$.selectOptionClick&&$.selectOptionClick(...pe),["stop"]))},[renderSlot($.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString$1($.currentLabel),1)])],34)),[[vShow,$.visible]])}var Option=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _sfc_main$R=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const $=inject(selectKey),z=useNamespace("select"),oe=computed(()=>$.props.popperClass),ae=computed(()=>$.props.multiple),le=computed(()=>$.props.fitInputWidth),ue=ref("");function pe(){var _e;ue.value=`${(_e=$.selectWrapper)==null?void 0:_e.offsetWidth}px`}return onMounted(()=>{pe(),useResizeObserver($.selectWrapper,pe)}),{ns:z,minWidth:ue,popperClass:oe,isMultiple:ae,isFitInputWidth:le}}});function _sfc_render$b($,z,oe,ae,le,ue){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("dropdown"),$.ns.is("multiple",$.isMultiple),$.popperClass]),style:normalizeStyle$1({[$.isFitInputWidth?"width":"minWidth"]:$.minWidth})},[renderSlot($.$slots,"default")],6)}var ElSelectMenu$1=_export_sfc$1(_sfc_main$R,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates($){const{t:z}=useLocale();return reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:$.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:z("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const useSelect$2=($,z,oe)=>{const{t:ae}=useLocale(),le=useNamespace("select");useDeprecated({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},computed(()=>$.suffixTransition===!1));const ue=ref(null),pe=ref(null),_e=ref(null),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),Fe=ref(-1),ze=shallowRef({query:""}),Ue=shallowRef(""),qe=ref([]);let At=0;const{form:Lt,formItem:hn}=useFormItem(),vn=computed(()=>!$.filterable||$.multiple||!z.visible),_n=computed(()=>$.disabled||(Lt==null?void 0:Lt.disabled)),bn=computed(()=>{const _r=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:$.modelValue!==void 0&&$.modelValue!==null&&$.modelValue!=="";return $.clearable&&!_n.value&&z.inputHovering&&_r}),Sn=computed(()=>$.remote&&$.filterable&&!$.remoteShowSuffix?"":$.suffixIcon),Cn=computed(()=>le.is("reverse",Sn.value&&z.visible&&$.suffixTransition)),En=computed(()=>$.remote?300:0),$n=computed(()=>$.loading?$.loadingText||ae("el.select.loading"):$.remote&&z.query===""&&z.options.size===0?!1:$.filterable&&z.query&&z.options.size>0&&z.filteredOptionsCount===0?$.noMatchText||ae("el.select.noMatch"):z.options.size===0?$.noDataText||ae("el.select.noData"):null),wn=computed(()=>{const _r=Array.from(z.options.values()),Ir=[];return qe.value.forEach(zr=>{const Hr=_r.findIndex(jr=>jr.currentLabel===zr);Hr>-1&&Ir.push(_r[Hr])}),Ir.length?Ir:_r}),Tn=computed(()=>Array.from(z.cachedOptions.values())),xn=computed(()=>{const _r=wn.value.filter(Ir=>!Ir.created).some(Ir=>Ir.currentLabel===z.query);return $.filterable&&$.allowCreate&&z.query!==""&&!_r}),kn=useFormSize(),Nn=computed(()=>["small"].includes(kn.value)?"small":"default"),Bn=computed({get(){return z.visible&&$n.value!==!1},set(_r){z.visible=_r}});watch([()=>_n.value,()=>kn.value,()=>Lt==null?void 0:Lt.size],()=>{nextTick(()=>{Dn()})}),watch(()=>$.placeholder,_r=>{z.cachedPlaceHolder=z.currentPlaceholder=_r,$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(z.currentPlaceholder="")}),watch(()=>$.modelValue,(_r,Ir)=>{$.multiple&&(Dn(),_r&&_r.length>0||pe.value&&z.query!==""?z.currentPlaceholder="":z.currentPlaceholder=z.cachedPlaceHolder,$.filterable&&!$.reserveKeyword&&(z.query="",In(z.query))),Vn(),$.filterable&&!$.multiple&&(z.inputLength=20),!isEqual$1(_r,Ir)&&$.validateEvent&&(hn==null||hn.validate("change").catch(zr=>void 0))},{flush:"post",deep:!0}),watch(()=>z.visible,_r=>{var Ir,zr,Hr,jr,qr;_r?((zr=(Ir=Ce.value)==null?void 0:Ir.updatePopper)==null||zr.call(Ir),$.filterable&&(z.filteredOptionsCount=z.optionsCount,z.query=$.remote?"":z.selectedLabel,(jr=(Hr=_e.value)==null?void 0:Hr.focus)==null||jr.call(Hr),$.multiple?(qr=pe.value)==null||qr.focus():z.selectedLabel&&(z.currentPlaceholder=`${z.selectedLabel}`,z.selectedLabel=""),In(z.query),!$.multiple&&!$.remote&&(ze.value.query="",triggerRef(ze),triggerRef(Ue)))):($.filterable&&(isFunction$5($.filterMethod)&&$.filterMethod(""),isFunction$5($.remoteMethod)&&$.remoteMethod("")),pe.value&&pe.value.blur(),z.query="",z.previousQuery=null,z.selectedLabel="",z.inputLength=20,z.menuVisibleOnFocus=!1,Fn(),nextTick(()=>{pe.value&&pe.value.value===""&&z.selected.length===0&&(z.currentPlaceholder=z.cachedPlaceHolder)}),$.multiple||(z.selected&&($.filterable&&$.allowCreate&&z.createdSelected&&z.createdLabel?z.selectedLabel=z.createdLabel:z.selectedLabel=z.selected.currentLabel,$.filterable&&(z.query=z.selectedLabel)),$.filterable&&(z.currentPlaceholder=z.cachedPlaceHolder))),oe.emit("visible-change",_r)}),watch(()=>z.options.entries(),()=>{var _r,Ir,zr;if(!isClient$2)return;(Ir=(_r=Ce.value)==null?void 0:_r.updatePopper)==null||Ir.call(_r),$.multiple&&Dn();const Hr=((zr=xe.value)==null?void 0:zr.querySelectorAll("input"))||[];Array.from(Hr).includes(document.activeElement)||Vn(),$.defaultFirstOption&&($.filterable||$.remote)&&z.filteredOptionsCount&&Mn()},{flush:"post"}),watch(()=>z.hoverIndex,_r=>{isNumber$5(_r)&&_r>-1?Fe.value=wn.value[_r]||{}:Fe.value={},wn.value.forEach(Ir=>{Ir.hover=Fe.value===Ir})});const Dn=()=>{nextTick(()=>{var _r,Ir;if(!ue.value)return;const zr=ue.value.$el.querySelector("input");At=At||(zr.clientHeight>0?zr.clientHeight+2:0);const Hr=$e.value,jr=getComponentSize(kn.value||(Lt==null?void 0:Lt.size)),qr=kn.value||jr===At||At<=0?jr:At;!(zr.offsetParent===null)&&(zr.style.height=`${(z.selected.length===0?qr:Math.max(Hr?Hr.clientHeight+(Hr.clientHeight>qr?6:0):0,qr))-2}px`),z.tagInMultiLine=Number.parseFloat(zr.style.height)>=qr,z.visible&&$n.value!==!1&&((Ir=(_r=Ce.value)==null?void 0:_r.updatePopper)==null||Ir.call(_r))})},In=async _r=>{if(!(z.previousQuery===_r||z.isOnComposition)){if(z.previousQuery===null&&(isFunction$5($.filterMethod)||isFunction$5($.remoteMethod))){z.previousQuery=_r;return}z.previousQuery=_r,nextTick(()=>{var Ir,zr;z.visible&&((zr=(Ir=Ce.value)==null?void 0:Ir.updatePopper)==null||zr.call(Ir))}),z.hoverIndex=-1,$.multiple&&$.filterable&&nextTick(()=>{const Ir=pe.value.value.length*15+20;z.inputLength=$.collapseTags?Math.min(50,Ir):Ir,Ln(),Dn()}),$.remote&&isFunction$5($.remoteMethod)?(z.hoverIndex=-1,$.remoteMethod(_r)):isFunction$5($.filterMethod)?($.filterMethod(_r),triggerRef(Ue)):(z.filteredOptionsCount=z.optionsCount,ze.value.query=_r,triggerRef(ze),triggerRef(Ue)),$.defaultFirstOption&&($.filterable||$.remote)&&z.filteredOptionsCount&&(await nextTick(),Mn())}},Ln=()=>{z.currentPlaceholder!==""&&(z.currentPlaceholder=pe.value.value?"":z.cachedPlaceHolder)},Mn=()=>{const _r=wn.value.filter(Hr=>Hr.visible&&!Hr.disabled&&!Hr.states.groupDisabled),Ir=_r.find(Hr=>Hr.created),zr=_r[0];z.hoverIndex=Zn(wn.value,Ir||zr)},Vn=()=>{var _r;if($.multiple)z.selectedLabel="";else{const zr=Yn($.modelValue);(_r=zr.props)!=null&&_r.created?(z.createdLabel=zr.props.value,z.createdSelected=!0):z.createdSelected=!1,z.selectedLabel=zr.currentLabel,z.selected=zr,$.filterable&&(z.query=z.selectedLabel);return}const Ir=[];Array.isArray($.modelValue)&&$.modelValue.forEach(zr=>{Ir.push(Yn(zr))}),z.selected=Ir,nextTick(()=>{Dn()})},Yn=_r=>{let Ir;const zr=toRawType(_r).toLowerCase()==="object",Hr=toRawType(_r).toLowerCase()==="null",jr=toRawType(_r).toLowerCase()==="undefined";for(let Pr=z.cachedOptions.size-1;Pr>=0;Pr--){const Rr=Tn.value[Pr];if(zr?get$1(Rr.value,$.valueKey)===get$1(_r,$.valueKey):Rr.value===_r){Ir={value:_r,currentLabel:Rr.currentLabel,isDisabled:Rr.isDisabled};break}}if(Ir)return Ir;const qr=zr?_r.label:!Hr&&!jr?_r:"",Xr={value:_r,currentLabel:qr};return $.multiple&&(Xr.hitState=!1),Xr},Fn=()=>{setTimeout(()=>{const _r=$.valueKey;$.multiple?z.selected.length>0?z.hoverIndex=Math.min.apply(null,z.selected.map(Ir=>wn.value.findIndex(zr=>get$1(zr,_r)===get$1(Ir,_r)))):z.hoverIndex=-1:z.hoverIndex=wn.value.findIndex(Ir=>Cr(Ir)===Cr(z.selected))},300)},Xn=()=>{var _r,Ir;sr(),(Ir=(_r=Ce.value)==null?void 0:_r.updatePopper)==null||Ir.call(_r),$.multiple&&Dn()},sr=()=>{var _r;z.inputWidth=(_r=ue.value)==null?void 0:_r.$el.offsetWidth},vr=()=>{$.filterable&&z.query!==z.selectedLabel&&(z.query=z.selectedLabel,In(z.query))},ar=debounce(()=>{vr()},En.value),qn=debounce(_r=>{In(_r.target.value)},En.value),Gn=_r=>{isEqual$1($.modelValue,_r)||oe.emit(CHANGE_EVENT,_r)},Wn=_r=>{if(_r.code!==EVENT_CODE.delete){if(_r.target.value.length<=0&&!mr()){const Ir=$.modelValue.slice();Ir.pop(),oe.emit(UPDATE_MODEL_EVENT,Ir),Gn(Ir)}_r.target.value.length===1&&$.modelValue.length===0&&(z.currentPlaceholder=z.cachedPlaceHolder)}},Qn=(_r,Ir)=>{const zr=z.selected.indexOf(Ir);if(zr>-1&&!_n.value){const Hr=$.modelValue.slice();Hr.splice(zr,1),oe.emit(UPDATE_MODEL_EVENT,Hr),Gn(Hr),oe.emit("remove-tag",Ir.value)}_r.stopPropagation()},cr=_r=>{_r.stopPropagation();const Ir=$.multiple?[]:"";if(!isString$7(Ir))for(const zr of z.selected)zr.isDisabled&&Ir.push(zr.value);oe.emit(UPDATE_MODEL_EVENT,Ir),Gn(Ir),z.hoverIndex=-1,z.visible=!1,oe.emit("clear")},jn=(_r,Ir)=>{var zr;if($.multiple){const Hr=($.modelValue||[]).slice(),jr=Zn(Hr,_r.value);jr>-1?Hr.splice(jr,1):($.multipleLimit<=0||Hr.length<$.multipleLimit)&&Hr.push(_r.value),oe.emit(UPDATE_MODEL_EVENT,Hr),Gn(Hr),_r.created&&(z.query="",In(""),z.inputLength=20),$.filterable&&((zr=pe.value)==null||zr.focus())}else oe.emit(UPDATE_MODEL_EVENT,_r.value),Gn(_r.value),z.visible=!1;z.isSilentBlur=Ir,nr(),!z.visible&&nextTick(()=>{hr(_r)})},Zn=(_r=[],Ir)=>{if(!isObject$8(Ir))return _r.indexOf(Ir);const zr=$.valueKey;let Hr=-1;return _r.some((jr,qr)=>toRaw(get$1(jr,zr))===get$1(Ir,zr)?(Hr=qr,!0):!1),Hr},nr=()=>{z.softFocus=!0;const _r=pe.value||ue.value;_r&&(_r==null||_r.focus())},hr=_r=>{var Ir,zr,Hr,jr,qr;const Xr=Array.isArray(_r)?_r[0]:_r;let Pr=null;if(Xr!=null&&Xr.value){const Rr=wn.value.filter(Kr=>Kr.value===Xr.value);Rr.length>0&&(Pr=Rr[0].$el)}if(Ce.value&&Pr){const Rr=(jr=(Hr=(zr=(Ir=Ce.value)==null?void 0:Ir.popperRef)==null?void 0:zr.contentRef)==null?void 0:Hr.querySelector)==null?void 0:jr.call(Hr,`.${le.be("dropdown","wrap")}`);Rr&&scrollIntoView(Rr,Pr)}(qr=Ie.value)==null||qr.handleScroll()},gr=_r=>{z.optionsCount++,z.filteredOptionsCount++,z.options.set(_r.value,_r),z.cachedOptions.set(_r.value,_r)},or=(_r,Ir)=>{z.options.get(_r)===Ir&&(z.optionsCount--,z.filteredOptionsCount--,z.options.delete(_r))},wr=_r=>{_r.code!==EVENT_CODE.backspace&&mr(!1),z.inputLength=pe.value.value.length*15+20,Dn()},mr=_r=>{if(!Array.isArray(z.selected))return;const Ir=z.selected[z.selected.length-1];if(Ir)return _r===!0||_r===!1?(Ir.hitState=_r,_r):(Ir.hitState=!Ir.hitState,Ir.hitState)},Tr=_r=>{const Ir=_r.target.value;if(_r.type==="compositionend")z.isOnComposition=!1,nextTick(()=>In(Ir));else{const zr=Ir[Ir.length-1]||"";z.isOnComposition=!isKorean(zr)}},dr=()=>{nextTick(()=>hr(z.selected))},ir=_r=>{z.softFocus?z.softFocus=!1:(($.automaticDropdown||$.filterable)&&($.filterable&&!z.visible&&(z.menuVisibleOnFocus=!0),z.visible=!0),oe.emit("focus",_r))},ur=()=>{var _r,Ir,zr;z.visible=!1,(_r=ue.value)==null||_r.blur(),(zr=(Ir=_e.value)==null?void 0:Ir.blur)==null||zr.call(Ir)},fr=_r=>{nextTick(()=>{z.isSilentBlur?z.isSilentBlur=!1:oe.emit("blur",_r)}),z.softFocus=!1},kr=_r=>{cr(_r)},Dr=()=>{z.visible=!1},Lr=_r=>{z.visible&&(_r.preventDefault(),_r.stopPropagation(),z.visible=!1)},Mr=_r=>{var Ir;_r&&!z.mouseEnter||_n.value||(z.menuVisibleOnFocus?z.menuVisibleOnFocus=!1:(!Ce.value||!Ce.value.isFocusInsideContent())&&(z.visible=!z.visible),z.visible&&((Ir=pe.value||ue.value)==null||Ir.focus()))},br=()=>{z.visible?wn.value[z.hoverIndex]&&jn(wn.value[z.hoverIndex],void 0):Mr()},Cr=_r=>isObject$8(_r.value)?get$1(_r.value,$.valueKey):_r.value,lr=computed(()=>wn.value.filter(_r=>_r.visible).every(_r=>_r.disabled)),Jn=computed(()=>z.selected.slice(0,$.maxCollapseTags)),rr=computed(()=>z.selected.slice($.maxCollapseTags)),$r=_r=>{if(!z.visible){z.visible=!0;return}if(!(z.options.size===0||z.filteredOptionsCount===0)&&!z.isOnComposition&&!lr.value){_r==="next"?(z.hoverIndex++,z.hoverIndex===z.options.size&&(z.hoverIndex=0)):_r==="prev"&&(z.hoverIndex--,z.hoverIndex<0&&(z.hoverIndex=z.options.size-1));const Ir=wn.value[z.hoverIndex];(Ir.disabled===!0||Ir.states.groupDisabled===!0||!Ir.visible)&&$r(_r),nextTick(()=>hr(Fe.value))}};return{optionList:qe,optionsArray:wn,selectSize:kn,handleResize:Xn,debouncedOnInputChange:ar,debouncedQueryChange:qn,deletePrevTag:Wn,deleteTag:Qn,deleteSelected:cr,handleOptionSelect:jn,scrollToOption:hr,readonly:vn,resetInputHeight:Dn,showClose:bn,iconComponent:Sn,iconReverse:Cn,showNewOption:xn,collapseTagSize:Nn,setSelected:Vn,managePlaceholder:Ln,selectDisabled:_n,emptyText:$n,toggleLastOptionHitState:mr,resetInputState:wr,handleComposition:Tr,onOptionCreate:gr,onOptionDestroy:or,handleMenuEnter:dr,handleFocus:ir,blur:ur,handleBlur:fr,handleClearClick:kr,handleClose:Dr,handleKeydownEscape:Lr,toggleMenu:Mr,selectOption:br,getValueKey:Cr,navigateOptions:$r,dropMenuVisible:Bn,queryChange:ze,groupQueryChange:Ue,showTagList:Jn,collapseTagList:rr,reference:ue,input:pe,iOSInput:_e,tooltipRef:Ce,tags:$e,selectWrapper:xe,scrollbar:Ie,handleMouseEnter:()=>{z.mouseEnter=!0},handleMouseLeave:()=>{z.mouseEnter=!1}}};var ElOptions=defineComponent({name:"ElOptions",emits:["update-options"],setup($,{slots:z,emit:oe}){let ae=[];function le(ue,pe){if(ue.length!==pe.length)return!1;for(const[_e]of ue.entries())if(ue[_e]!=pe[_e])return!1;return!0}return()=>{var ue,pe;const _e=(ue=z.default)==null?void 0:ue.call(z),Ce=[];function $e(xe){Array.isArray(xe)&&xe.forEach(Ie=>{var Fe,ze,Ue,qe;const At=(Fe=(Ie==null?void 0:Ie.type)||{})==null?void 0:Fe.name;At==="ElOptionGroup"?$e(!isString$7(Ie.children)&&!Array.isArray(Ie.children)&&isFunction$5((ze=Ie.children)==null?void 0:ze.default)?(Ue=Ie.children)==null?void 0:Ue.default():Ie.children):At==="ElOption"?Ce.push((qe=Ie.props)==null?void 0:qe.label):Array.isArray(Ie.children)&&$e(Ie.children)})}return _e.length&&$e((pe=_e[0])==null?void 0:pe.children),le(Ce,ae)||(ae=Ce,oe("update-options",Ce)),_e}}});const COMPONENT_NAME$9="ElSelect",_sfc_main$Q=defineComponent({name:COMPONENT_NAME$9,componentName:COMPONENT_NAME$9,components:{ElInput,ElSelectMenu:ElSelectMenu$1,ElOption:Option,ElOptions,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:isValidComponentSize},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Ee,default:"bottom-start"}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,z){const oe=useNamespace("select"),ae=useNamespace("input"),{t:le}=useLocale(),ue=useSelectStates($),{optionList:pe,optionsArray:_e,selectSize:Ce,readonly:$e,handleResize:xe,collapseTagSize:Ie,debouncedOnInputChange:Fe,debouncedQueryChange:ze,deletePrevTag:Ue,deleteTag:qe,deleteSelected:At,handleOptionSelect:Lt,scrollToOption:hn,setSelected:vn,resetInputHeight:_n,managePlaceholder:bn,showClose:Sn,selectDisabled:Cn,iconComponent:En,iconReverse:$n,showNewOption:wn,emptyText:Tn,toggleLastOptionHitState:xn,resetInputState:kn,handleComposition:Nn,onOptionCreate:Bn,onOptionDestroy:Dn,handleMenuEnter:In,handleFocus:Ln,blur:Mn,handleBlur:Vn,handleClearClick:Yn,handleClose:Fn,handleKeydownEscape:Xn,toggleMenu:sr,selectOption:vr,getValueKey:ar,navigateOptions:qn,dropMenuVisible:Gn,reference:Wn,input:Qn,iOSInput:cr,tooltipRef:jn,tags:Zn,selectWrapper:nr,scrollbar:hr,queryChange:gr,groupQueryChange:or,handleMouseEnter:wr,handleMouseLeave:mr,showTagList:Tr,collapseTagList:dr}=useSelect$2($,ue,z),{focus:ir}=useFocus(Wn),{inputWidth:ur,selected:fr,inputLength:kr,filteredOptionsCount:Dr,visible:Lr,softFocus:Mr,selectedLabel:br,hoverIndex:Cr,query:lr,inputHovering:Jn,currentPlaceholder:rr,menuVisibleOnFocus:$r,isOnComposition:Ar,isSilentBlur:Fr,options:_r,cachedOptions:Ir,optionsCount:zr,prefixWidth:Hr,tagInMultiLine:jr}=toRefs(ue),qr=computed(()=>{const Yr=[oe.b()],Br=unref(Ce);return Br&&Yr.push(oe.m(Br)),$.disabled&&Yr.push(oe.m("disabled")),Yr}),Xr=computed(()=>({maxWidth:`${unref(ur)-32}px`,width:"100%"})),Pr=computed(()=>({maxWidth:`${unref(ur)>123?unref(ur)-123:unref(ur)-75}px`}));provide(selectKey,reactive({props:$,options:_r,optionsArray:_e,cachedOptions:Ir,optionsCount:zr,filteredOptionsCount:Dr,hoverIndex:Cr,handleOptionSelect:Lt,onOptionCreate:Bn,onOptionDestroy:Dn,selectWrapper:nr,selected:fr,setSelected:vn,queryChange:gr,groupQueryChange:or})),onMounted(()=>{ue.cachedPlaceHolder=rr.value=$.placeholder||(()=>le("el.select.placeholder")),$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(rr.value=""),useResizeObserver(nr,xe),$.remote&&$.multiple&&_n(),nextTick(()=>{const Yr=Wn.value&&Wn.value.$el;if(Yr&&(ur.value=Yr.getBoundingClientRect().width,z.slots.prefix)){const Br=Yr.querySelector(`.${ae.e("prefix")}`);Hr.value=Math.max(Br.getBoundingClientRect().width+5,30)}}),vn()}),$.multiple&&!Array.isArray($.modelValue)&&z.emit(UPDATE_MODEL_EVENT,[]),!$.multiple&&Array.isArray($.modelValue)&&z.emit(UPDATE_MODEL_EVENT,"");const Rr=computed(()=>{var Yr,Br;return(Br=(Yr=jn.value)==null?void 0:Yr.popperRef)==null?void 0:Br.contentRef});return{isIOS:isIOS$1,onOptionsRendered:Yr=>{pe.value=Yr},tagInMultiLine:jr,prefixWidth:Hr,selectSize:Ce,readonly:$e,handleResize:xe,collapseTagSize:Ie,debouncedOnInputChange:Fe,debouncedQueryChange:ze,deletePrevTag:Ue,deleteTag:qe,deleteSelected:At,handleOptionSelect:Lt,scrollToOption:hn,inputWidth:ur,selected:fr,inputLength:kr,filteredOptionsCount:Dr,visible:Lr,softFocus:Mr,selectedLabel:br,hoverIndex:Cr,query:lr,inputHovering:Jn,currentPlaceholder:rr,menuVisibleOnFocus:$r,isOnComposition:Ar,isSilentBlur:Fr,options:_r,resetInputHeight:_n,managePlaceholder:bn,showClose:Sn,selectDisabled:Cn,iconComponent:En,iconReverse:$n,showNewOption:wn,emptyText:Tn,toggleLastOptionHitState:xn,resetInputState:kn,handleComposition:Nn,handleMenuEnter:In,handleFocus:Ln,blur:Mn,handleBlur:Vn,handleClearClick:Yn,handleClose:Fn,handleKeydownEscape:Xn,toggleMenu:sr,selectOption:vr,getValueKey:ar,navigateOptions:qn,dropMenuVisible:Gn,focus:ir,reference:Wn,input:Qn,iOSInput:cr,tooltipRef:jn,popperPaneRef:Rr,tags:Zn,selectWrapper:nr,scrollbar:hr,wrapperKls:qr,selectTagsStyle:Xr,nsSelect:oe,tagTextStyle:Pr,handleMouseEnter:wr,handleMouseLeave:mr,showTagList:Tr,collapseTagList:dr}}}),_hoisted_1$p=["disabled","autocomplete"],_hoisted_2$h=["disabled"],_hoisted_3$a={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$a($,z,oe,ae,le,ue){const pe=resolveComponent("el-tag"),_e=resolveComponent("el-tooltip"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-input"),xe=resolveComponent("el-option"),Ie=resolveComponent("el-options"),Fe=resolveComponent("el-scrollbar"),ze=resolveComponent("el-select-menu"),Ue=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass($.wrapperKls),onMouseenter:z[21]||(z[21]=(...qe)=>$.handleMouseEnter&&$.handleMouseEnter(...qe)),onMouseleave:z[22]||(z[22]=(...qe)=>$.handleMouseLeave&&$.handleMouseLeave(...qe)),onClick:z[23]||(z[23]=withModifiers((...qe)=>$.toggleMenu&&$.toggleMenu(...qe),["stop"]))},[createVNode(_e,{ref:"tooltipRef",visible:$.dropMenuVisible,placement:$.placement,teleported:$.teleported,"popper-class":[$.nsSelect.e("popper"),$.popperClass],"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,pure:"",trigger:"click",transition:`${$.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:$.persistent,onShow:$.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",{class:"select-trigger",onMouseenter:z[19]||(z[19]=qe=>$.inputHovering=!0),onMouseleave:z[20]||(z[20]=qe=>$.inputHovering=!1)},[$.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",class:normalizeClass([$.nsSelect.e("tags"),$.nsSelect.is("disabled",$.selectDisabled)]),style:normalizeStyle$1($.selectTagsStyle)},[$.collapseTags&&$.selected.length?(openBlock(),createBlock(Transition,{key:0,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,qe=>(openBlock(),createBlock(pe,{key:$.getValueKey(qe),closable:!$.selectDisabled&&!qe.isDisabled,size:$.collapseTagSize,hit:qe.hitState,type:$.tagType,"disable-transitions":"",onClose:At=>$.deleteTag(At,qe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1($.tagTextStyle)},toDisplayString$1(qe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),$.selected.length>$.maxCollapseTags?(openBlock(),createBlock(pe,{key:0,closable:!1,size:$.collapseTagSize,type:$.tagType,"disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(_e,{key:0,disabled:$.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:$.teleported},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,qe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(qe),class:normalizeClass($.nsSelect.e("collapse-tag"))},[createVNode(pe,{class:"in-tooltip",closable:!$.selectDisabled&&!qe.isDisabled,size:$.collapseTagSize,hit:qe.hitState,type:$.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:At=>$.deleteTag(At,qe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(qe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):createCommentVNode("v-if",!0),$.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.selected,qe=>(openBlock(),createBlock(pe,{key:$.getValueKey(qe),closable:!$.selectDisabled&&!qe.isDisabled,size:$.collapseTagSize,hit:qe.hitState,type:$.tagType,"disable-transitions":"",onClose:At=>$.deleteTag(At,qe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(qe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),$.filterable?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":z[0]||(z[0]=qe=>$.query=qe),type:"text",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.is("disabled",$.selectDisabled)]),disabled:$.selectDisabled,autocomplete:$.autocomplete,style:normalizeStyle$1({marginLeft:$.prefixWidth&&!$.selected.length||$.tagInMultiLine?`${$.prefixWidth}px`:"",flexGrow:1,width:`${$.inputLength/($.inputWidth-32)}%`,maxWidth:`${$.inputWidth-42}px`}),onFocus:z[1]||(z[1]=(...qe)=>$.handleFocus&&$.handleFocus(...qe)),onBlur:z[2]||(z[2]=(...qe)=>$.handleBlur&&$.handleBlur(...qe)),onKeyup:z[3]||(z[3]=(...qe)=>$.managePlaceholder&&$.managePlaceholder(...qe)),onKeydown:[z[4]||(z[4]=(...qe)=>$.resetInputState&&$.resetInputState(...qe)),z[5]||(z[5]=withKeys(withModifiers(qe=>$.navigateOptions("next"),["prevent"]),["down"])),z[6]||(z[6]=withKeys(withModifiers(qe=>$.navigateOptions("prev"),["prevent"]),["up"])),z[7]||(z[7]=withKeys((...qe)=>$.handleKeydownEscape&&$.handleKeydownEscape(...qe),["esc"])),z[8]||(z[8]=withKeys(withModifiers((...qe)=>$.selectOption&&$.selectOption(...qe),["stop","prevent"]),["enter"])),z[9]||(z[9]=withKeys((...qe)=>$.deletePrevTag&&$.deletePrevTag(...qe),["delete"])),z[10]||(z[10]=withKeys(qe=>$.visible=!1,["tab"]))],onCompositionstart:z[11]||(z[11]=(...qe)=>$.handleComposition&&$.handleComposition(...qe)),onCompositionupdate:z[12]||(z[12]=(...qe)=>$.handleComposition&&$.handleComposition(...qe)),onCompositionend:z[13]||(z[13]=(...qe)=>$.handleComposition&&$.handleComposition(...qe)),onInput:z[14]||(z[14]=(...qe)=>$.debouncedQueryChange&&$.debouncedQueryChange(...qe))},null,46,_hoisted_1$p)),[[vModelText,$.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),$.isIOS&&!$.multiple&&$.filterable&&$.readonly?(openBlock(),createElementBlock("input",{key:1,ref:"iOSInput",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.em("input","iOS")]),disabled:$.selectDisabled,type:"text"},null,10,_hoisted_2$h)):createCommentVNode("v-if",!0),createVNode($e,{id:$.id,ref:"reference",modelValue:$.selectedLabel,"onUpdate:modelValue":z[15]||(z[15]=qe=>$.selectedLabel=qe),type:"text",placeholder:typeof $.currentPlaceholder=="function"?$.currentPlaceholder():$.currentPlaceholder,name:$.name,autocomplete:$.autocomplete,size:$.selectSize,disabled:$.selectDisabled,readonly:$.readonly,"validate-event":!1,class:normalizeClass([$.nsSelect.is("focus",$.visible)]),tabindex:$.multiple&&$.filterable?-1:void 0,onFocus:$.handleFocus,onBlur:$.handleBlur,onInput:$.debouncedOnInputChange,onPaste:$.debouncedOnInputChange,onCompositionstart:$.handleComposition,onCompositionupdate:$.handleComposition,onCompositionend:$.handleComposition,onKeydown:[z[16]||(z[16]=withKeys(withModifiers(qe=>$.navigateOptions("next"),["stop","prevent"]),["down"])),z[17]||(z[17]=withKeys(withModifiers(qe=>$.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers($.selectOption,["stop","prevent"]),["enter"]),withKeys($.handleKeydownEscape,["esc"]),z[18]||(z[18]=withKeys(qe=>$.visible=!1,["tab"]))]},createSlots({suffix:withCtx(()=>[$.iconComponent&&!$.showClose?(openBlock(),createBlock(Ce,{key:0,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.showClose&&$.clearIcon?(openBlock(),createBlock(Ce,{key:1,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon")]),onClick:$.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[$.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$a,[renderSlot($.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:withCtx(()=>[createVNode(ze,null,{default:withCtx(()=>[withDirectives(createVNode(Fe,{ref:"scrollbar",tag:"ul","wrap-class":$.nsSelect.be("dropdown","wrap"),"view-class":$.nsSelect.be("dropdown","list"),class:normalizeClass([$.nsSelect.is("empty",!$.allowCreate&&!!$.query&&$.filteredOptionsCount===0)])},{default:withCtx(()=>[$.showNewOption?(openBlock(),createBlock(xe,{key:0,value:$.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode(Ie,{onUpdateOptions:$.onOptionsRendered},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[vShow,$.options.size>0&&!$.loading]]),$.emptyText&&(!$.allowCreate||$.loading||$.allowCreate&&$.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[$.$slots.empty?renderSlot($.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass($.nsSelect.be("dropdown","empty"))},toDisplayString$1($.emptyText),3))],64)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[Ue,$.handleClose,$.popperPaneRef]])}var Select$1=_export_sfc$1(_sfc_main$Q,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const _sfc_main$P=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup($){const z=useNamespace("select"),oe=ref(!0),ae=getCurrentInstance(),le=ref([]);provide(selectGroupKey,reactive({...toRefs($)}));const ue=inject(selectKey);onMounted(()=>{le.value=pe(ae.subTree)});const pe=Ce=>{const $e=[];return Array.isArray(Ce.children)&&Ce.children.forEach(xe=>{var Ie;xe.type&&xe.type.name==="ElOption"&&xe.component&&xe.component.proxy?$e.push(xe.component.proxy):(Ie=xe.children)!=null&&Ie.length&&$e.push(...pe(xe))}),$e},{groupQueryChange:_e}=toRaw(ue);return watch(_e,()=>{oe.value=le.value.some(Ce=>Ce.visible===!0)},{flush:"post"}),{visible:oe,ns:z}}});function _sfc_render$9($,z,oe,ae,le,ue){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass($.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass($.ns.be("group","title"))},toDisplayString$1($.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass($.ns.b("group"))},[renderSlot($.$slots,"default")],2)])],2)),[[vShow,$.visible]])}var OptionGroup=_export_sfc$1(_sfc_main$P,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ElSelect=withInstall(Select$1,{Option,OptionGroup}),ElOption=withNoopInstall(Option),ElOptionGroup=withNoopInstall(OptionGroup),usePagination=()=>inject(elPaginationKey,{}),paginationSizesProps=buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:componentSizes}}),__default__$C=defineComponent({name:"ElPaginationSizes"}),_sfc_main$O=defineComponent({...__default__$C,props:paginationSizesProps,emits:["page-size-change"],setup($,{emit:z}){const oe=$,{t:ae}=useLocale(),le=useNamespace("pagination"),ue=usePagination(),pe=ref(oe.pageSize);watch(()=>oe.pageSizes,($e,xe)=>{if(!isEqual$1($e,xe)&&Array.isArray($e)){const Ie=$e.includes(oe.pageSize)?oe.pageSize:oe.pageSizes[0];z("page-size-change",Ie)}}),watch(()=>oe.pageSize,$e=>{pe.value=$e});const _e=computed(()=>oe.pageSizes);function Ce($e){var xe;$e!==pe.value&&(pe.value=$e,(xe=ue.handleSizeChange)==null||xe.call(ue,Number($e)))}return($e,xe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":pe.value,disabled:$e.disabled,"popper-class":$e.popperClass,size:$e.size,"validate-event":!1,onChange:Ce},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),Ie=>(openBlock(),createBlock(unref(ElOption),{key:Ie,value:Ie,label:Ie+unref(ae)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Sizes=_export_sfc$1(_sfc_main$O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const paginationJumperProps=buildProps({size:{type:String,values:componentSizes}}),_hoisted_1$o=["disabled"],__default__$B=defineComponent({name:"ElPaginationJumper"}),_sfc_main$N=defineComponent({...__default__$B,props:paginationJumperProps,setup($){const{t:z}=useLocale(),oe=useNamespace("pagination"),{pageCount:ae,disabled:le,currentPage:ue,changeEvent:pe}=usePagination(),_e=ref(),Ce=computed(()=>{var Ie;return(Ie=_e.value)!=null?Ie:ue==null?void 0:ue.value});function $e(Ie){_e.value=Ie?+Ie:""}function xe(Ie){Ie=Math.trunc(+Ie),pe==null||pe(Ie),_e.value=void 0}return(Ie,Fe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe).e("jump")),disabled:unref(le)},[createBaseVNode("span",{class:normalizeClass([unref(oe).e("goto")])},toDisplayString$1(unref(z)("el.pagination.goto")),3),createVNode(unref(ElInput),{size:Ie.size,class:normalizeClass([unref(oe).e("editor"),unref(oe).is("in-pagination")]),min:1,max:unref(ae),disabled:unref(le),"model-value":unref(Ce),"validate-event":!1,label:unref(z)("el.pagination.page"),type:"number","onUpdate:modelValue":$e,onChange:xe},null,8,["size","class","max","disabled","model-value","label"]),createBaseVNode("span",{class:normalizeClass([unref(oe).e("classifier")])},toDisplayString$1(unref(z)("el.pagination.pageClassifier")),3)],10,_hoisted_1$o))}});var Jumper=_export_sfc$1(_sfc_main$N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const paginationTotalProps=buildProps({total:{type:Number,default:1e3}}),_hoisted_1$n=["disabled"],__default__$A=defineComponent({name:"ElPaginationTotal"}),_sfc_main$M=defineComponent({...__default__$A,props:paginationTotalProps,setup($){const{t:z}=useLocale(),oe=useNamespace("pagination"),{disabled:ae}=usePagination();return(le,ue)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe).e("total")),disabled:unref(ae)},toDisplayString$1(unref(z)("el.pagination.total",{total:le.total})),11,_hoisted_1$n))}});var Total=_export_sfc$1(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const paginationPagerProps=buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),_hoisted_1$m=["onKeyup"],_hoisted_2$g=["aria-current","aria-label","tabindex"],_hoisted_3$9=["tabindex","aria-label"],_hoisted_4$6=["aria-current","aria-label","tabindex"],_hoisted_5$4=["tabindex","aria-label"],_hoisted_6=["aria-current","aria-label","tabindex"],__default__$z=defineComponent({name:"ElPaginationPager"}),_sfc_main$L=defineComponent({...__default__$z,props:paginationPagerProps,emits:["change"],setup($,{emit:z}){const oe=$,ae=useNamespace("pager"),le=useNamespace("icon"),{t:ue}=useLocale(),pe=ref(!1),_e=ref(!1),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Fe=computed(()=>{const hn=oe.pagerCount,vn=(hn-1)/2,_n=Number(oe.currentPage),bn=Number(oe.pageCount);let Sn=!1,Cn=!1;bn>hn&&(_n>hn-vn&&(Sn=!0),_n<bn-vn&&(Cn=!0));const En=[];if(Sn&&!Cn){const $n=bn-(hn-2);for(let wn=$n;wn<bn;wn++)En.push(wn)}else if(!Sn&&Cn)for(let $n=2;$n<hn;$n++)En.push($n);else if(Sn&&Cn){const $n=Math.floor(hn/2)-1;for(let wn=_n-$n;wn<=_n+$n;wn++)En.push(wn)}else for(let $n=2;$n<bn;$n++)En.push($n);return En}),ze=computed(()=>oe.disabled?-1:0);watchEffect(()=>{const hn=(oe.pagerCount-1)/2;pe.value=!1,_e.value=!1,oe.pageCount>oe.pagerCount&&(oe.currentPage>oe.pagerCount-hn&&(pe.value=!0),oe.currentPage<oe.pageCount-hn&&(_e.value=!0))});function Ue(hn=!1){oe.disabled||(hn?Ce.value=!0:$e.value=!0)}function qe(hn=!1){hn?xe.value=!0:Ie.value=!0}function At(hn){const vn=hn.target;if(vn.tagName.toLowerCase()==="li"&&Array.from(vn.classList).includes("number")){const _n=Number(vn.textContent);_n!==oe.currentPage&&z("change",_n)}else vn.tagName.toLowerCase()==="li"&&Array.from(vn.classList).includes("more")&&Lt(hn)}function Lt(hn){const vn=hn.target;if(vn.tagName.toLowerCase()==="ul"||oe.disabled)return;let _n=Number(vn.textContent);const bn=oe.pageCount,Sn=oe.currentPage,Cn=oe.pagerCount-2;vn.className.includes("more")&&(vn.className.includes("quickprev")?_n=Sn-Cn:vn.className.includes("quicknext")&&(_n=Sn+Cn)),Number.isNaN(+_n)||(_n<1&&(_n=1),_n>bn&&(_n=bn)),_n!==Sn&&z("change",_n)}return(hn,vn)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(ae).b()),onClick:Lt,onKeyup:withKeys(At,["enter"])},[hn.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(ae).is("active",hn.currentPage===1),unref(ae).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===1,"aria-label":unref(ue)("el.pagination.currentPage",{pager:1}),tabindex:unref(ze)}," 1 ",10,_hoisted_2$g)):createCommentVNode("v-if",!0),pe.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",unref(le).b(),unref(ae).is("disabled",hn.disabled)]),tabindex:unref(ze),"aria-label":unref(ue)("el.pagination.prevPages",{pager:hn.pagerCount-2}),onMouseenter:vn[0]||(vn[0]=_n=>Ue(!0)),onMouseleave:vn[1]||(vn[1]=_n=>Ce.value=!1),onFocus:vn[2]||(vn[2]=_n=>qe(!0)),onBlur:vn[3]||(vn[3]=_n=>xe.value=!1)},[(Ce.value||xe.value)&&!hn.disabled?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_3$9)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),_n=>(openBlock(),createElementBlock("li",{key:_n,class:normalizeClass([[unref(ae).is("active",hn.currentPage===_n),unref(ae).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===_n,"aria-label":unref(ue)("el.pagination.currentPage",{pager:_n}),tabindex:unref(ze)},toDisplayString$1(_n),11,_hoisted_4$6))),128)),_e.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",unref(le).b(),unref(ae).is("disabled",hn.disabled)]),tabindex:unref(ze),"aria-label":unref(ue)("el.pagination.nextPages",{pager:hn.pagerCount-2}),onMouseenter:vn[4]||(vn[4]=_n=>Ue()),onMouseleave:vn[5]||(vn[5]=_n=>$e.value=!1),onFocus:vn[6]||(vn[6]=_n=>qe()),onBlur:vn[7]||(vn[7]=_n=>Ie.value=!1)},[($e.value||Ie.value)&&!hn.disabled?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_5$4)):createCommentVNode("v-if",!0),hn.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(ae).is("active",hn.currentPage===hn.pageCount),unref(ae).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===hn.pageCount,"aria-label":unref(ue)("el.pagination.currentPage",{pager:hn.pageCount}),tabindex:unref(ze)},toDisplayString$1(hn.pageCount),11,_hoisted_6)):createCommentVNode("v-if",!0)],42,_hoisted_1$m))}});var Pager=_export_sfc$1(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=$=>typeof $!="number",paginationProps=buildProps({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:$=>isNumber$5($)&&Math.trunc($)===$&&$>4&&$<22&&$%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:iconPropType,default:()=>arrow_left_default},nextText:{type:String,default:""},nextIcon:{type:iconPropType,default:()=>arrow_right_default},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),paginationEmits={"update:current-page":$=>isNumber$5($),"update:page-size":$=>isNumber$5($),"size-change":$=>isNumber$5($),"current-change":$=>isNumber$5($),"prev-click":$=>isNumber$5($),"next-click":$=>isNumber$5($)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup($,{emit:z,slots:oe}){const{t:ae}=useLocale(),le=useNamespace("pagination"),ue=getCurrentInstance().vnode.props||{},pe="onUpdate:currentPage"in ue||"onUpdate:current-page"in ue||"onCurrentChange"in ue,_e="onUpdate:pageSize"in ue||"onUpdate:page-size"in ue||"onSizeChange"in ue,Ce=computed(()=>{if(isAbsent($.total)&&isAbsent($.pageCount)||!isAbsent($.currentPage)&&!pe)return!1;if($.layout.includes("sizes")){if(isAbsent($.pageCount)){if(!isAbsent($.total)&&!isAbsent($.pageSize)&&!_e)return!1}else if(!_e)return!1}return!0}),$e=ref(isAbsent($.defaultPageSize)?10:$.defaultPageSize),xe=ref(isAbsent($.defaultCurrentPage)?1:$.defaultCurrentPage),Ie=computed({get(){return isAbsent($.pageSize)?$e.value:$.pageSize},set(vn){isAbsent($.pageSize)&&($e.value=vn),_e&&(z("update:page-size",vn),z("size-change",vn))}}),Fe=computed(()=>{let vn=0;return isAbsent($.pageCount)?isAbsent($.total)||(vn=Math.max(1,Math.ceil($.total/Ie.value))):vn=$.pageCount,vn}),ze=computed({get(){return isAbsent($.currentPage)?xe.value:$.currentPage},set(vn){let _n=vn;vn<1?_n=1:vn>Fe.value&&(_n=Fe.value),isAbsent($.currentPage)&&(xe.value=_n),pe&&(z("update:current-page",_n),z("current-change",_n))}});watch(Fe,vn=>{ze.value>vn&&(ze.value=vn)});function Ue(vn){ze.value=vn}function qe(vn){Ie.value=vn;const _n=Fe.value;ze.value>_n&&(ze.value=_n)}function At(){$.disabled||(ze.value-=1,z("prev-click",ze.value))}function Lt(){$.disabled||(ze.value+=1,z("next-click",ze.value))}function hn(vn,_n){vn&&(vn.props||(vn.props={}),vn.props.class=[vn.props.class,_n].join(" "))}return provide(elPaginationKey,{pageCount:Fe,disabled:computed(()=>$.disabled),currentPage:ze,changeEvent:Ue,handleSizeChange:qe}),()=>{var vn,_n;if(!Ce.value)return ae("el.pagination.deprecationWarning"),null;if(!$.layout||$.hideOnSinglePage&&Fe.value<=1)return null;const bn=[],Sn=[],Cn=h$3("div",{class:le.e("rightwrapper")},Sn),En={prev:h$3(Prev,{disabled:$.disabled,currentPage:ze.value,prevText:$.prevText,prevIcon:$.prevIcon,onClick:At}),jumper:h$3(Jumper,{size:$.small?"small":"default"}),pager:h$3(Pager,{currentPage:ze.value,pageCount:Fe.value,pagerCount:$.pagerCount,onChange:Ue,disabled:$.disabled}),next:h$3(Next,{disabled:$.disabled,currentPage:ze.value,pageCount:Fe.value,nextText:$.nextText,nextIcon:$.nextIcon,onClick:Lt}),sizes:h$3(Sizes,{pageSize:Ie.value,pageSizes:$.pageSizes,popperClass:$.popperClass,disabled:$.disabled,size:$.small?"small":"default"}),slot:(_n=(vn=oe==null?void 0:oe.default)==null?void 0:vn.call(oe))!=null?_n:null,total:h$3(Total,{total:isAbsent($.total)?0:$.total})},$n=$.layout.split(",").map(Tn=>Tn.trim());let wn=!1;return $n.forEach(Tn=>{if(Tn==="->"){wn=!0;return}wn?Sn.push(En[Tn]):bn.push(En[Tn])}),hn(bn[0],le.is("first")),hn(bn[bn.length-1],le.is("last")),wn&&Sn.length>0&&(hn(Sn[0],le.is("first")),hn(Sn[Sn.length-1],le.is("last")),bn.push(Cn)),h$3("div",{class:[le.b(),le.is("background",$.background),{[le.m("small")]:$.small}]},bn)}}});const ElPagination=withInstall(Pagination),popconfirmProps=buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:buttonTypes,default:"primary"},cancelButtonType:{type:String,values:buttonTypes,default:"text"},icon:{type:iconPropType,default:()=>question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),popconfirmEmits={confirm:$=>$ instanceof MouseEvent,cancel:$=>$ instanceof MouseEvent},__default__$y=defineComponent({name:"ElPopconfirm"}),_sfc_main$K=defineComponent({...__default__$y,props:popconfirmProps,emits:popconfirmEmits,setup($,{emit:z}){const oe=$,{t:ae}=useLocale(),le=useNamespace("popconfirm"),ue=ref(),pe=()=>{var Fe,ze;(ze=(Fe=ue.value)==null?void 0:Fe.onClose)==null||ze.call(Fe)},_e=computed(()=>({width:addUnit(oe.width)})),Ce=Fe=>{z("confirm",Fe),pe()},$e=Fe=>{z("cancel",Fe),pe()},xe=computed(()=>oe.confirmButtonText||ae("el.popconfirm.confirmButtonText")),Ie=computed(()=>oe.cancelButtonText||ae("el.popconfirm.cancelButtonText"));return(Fe,ze)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:ue,trigger:"click",effect:"light"},Fe.$attrs,{"popper-class":`${unref(le).namespace.value}-popover`,"popper-style":unref(_e),teleported:Fe.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Fe.hideAfter,persistent:Fe.persistent}),{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(le).b())},[createBaseVNode("div",{class:normalizeClass(unref(le).e("main"))},[!Fe.hideIcon&&Fe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("icon")),style:normalizeStyle$1({color:Fe.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1(Fe.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(le).e("action"))},[createVNode(unref(ElButton),{size:"small",type:Fe.cancelButtonType==="text"?"":Fe.cancelButtonType,text:Fe.cancelButtonType==="text",onClick:$e},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:Fe.confirmButtonType==="text"?"":Fe.confirmButtonType,text:Fe.confirmButtonType==="text",onClick:Ce},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(xe)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[Fe.$slots.reference?renderSlot(Fe.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Popconfirm=_export_sfc$1(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),popoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,placement:dropdownProps.placement,disabled:useTooltipTriggerProps.disabled,visible:useTooltipContentProps.visible,transition:useTooltipContentProps.transition,popperOptions:dropdownProps.popperOptions,tabindex:dropdownProps.tabindex,content:useTooltipContentProps.content,popperStyle:useTooltipContentProps.popperStyle,popperClass:useTooltipContentProps.popperClass,enterable:{...useTooltipContentProps.enterable,default:!0},effect:{...useTooltipContentProps.effect,default:"light"},teleported:useTooltipContentProps.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),popoverEmits={"update:visible":$=>isBoolean$3($),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},updateEventKeyRaw="onUpdate:visible",__default__$x=defineComponent({name:"ElPopover"}),_sfc_main$J=defineComponent({...__default__$x,props:popoverProps,emits:popoverEmits,setup($,{expose:z,emit:oe}){const ae=$,le=computed(()=>ae[updateEventKeyRaw]),ue=useNamespace("popover"),pe=ref(),_e=computed(()=>{var At;return(At=unref(pe))==null?void 0:At.popperRef}),Ce=computed(()=>[{width:addUnit(ae.width)},ae.popperStyle]),$e=computed(()=>[ue.b(),ae.popperClass,{[ue.m("plain")]:!!ae.content}]),xe=computed(()=>ae.transition===`${ue.namespace.value}-fade-in-linear`),Ie=()=>{var At;(At=pe.value)==null||At.hide()},Fe=()=>{oe("before-enter")},ze=()=>{oe("before-leave")},Ue=()=>{oe("after-enter")},qe=()=>{oe("update:visible",!1),oe("after-leave")};return z({popperRef:_e,hide:Ie}),(At,Lt)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:pe},At.$attrs,{trigger:At.trigger,placement:At.placement,disabled:At.disabled,visible:At.visible,transition:At.transition,"popper-options":At.popperOptions,tabindex:At.tabindex,content:At.content,offset:At.offset,"show-after":At.showAfter,"hide-after":At.hideAfter,"auto-close":At.autoClose,"show-arrow":At.showArrow,"aria-label":At.title,effect:At.effect,enterable:At.enterable,"popper-class":unref($e),"popper-style":unref(Ce),teleported:At.teleported,persistent:At.persistent,"gpu-acceleration":unref(xe),"onUpdate:visible":unref(le),onBeforeShow:Fe,onBeforeHide:ze,onShow:Ue,onHide:qe}),{content:withCtx(()=>[At.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("title")),role:"title"},toDisplayString$1(At.title),3)):createCommentVNode("v-if",!0),renderSlot(At.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(At.content),1)])]),default:withCtx(()=>[At.$slots.reference?renderSlot(At.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Popover=_export_sfc$1(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=($,z)=>{const oe=z.arg||z.value,ae=oe==null?void 0:oe.popperRef;ae&&(ae.triggerRef=$)};var PopoverDirective={mounted($,z){attachEvents($,z)},updated($,z){attachEvents($,z)}};const VPopover="popover",ElPopoverDirective=withInstallDirective(PopoverDirective,VPopover),ElPopover=withInstall(Popover,{directive:ElPopoverDirective}),progressProps=buildProps({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:$=>$>=0&&$<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:definePropType([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:definePropType(Function),default:$=>`${$}%`}}),_hoisted_1$l=["aria-valuenow"],_hoisted_2$f={viewBox:"0 0 100 100"},_hoisted_3$8=["d","stroke","stroke-width"],_hoisted_4$5=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$3={key:0},__default__$w=defineComponent({name:"ElProgress"}),_sfc_main$I=defineComponent({...__default__$w,props:progressProps,setup($){const z=$,oe={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},ae=useNamespace("progress"),le=computed(()=>({width:`${z.percentage}%`,animationDuration:`${z.duration}s`,backgroundColor:hn(z.percentage)})),ue=computed(()=>(z.strokeWidth/z.width*100).toFixed(1)),pe=computed(()=>["circle","dashboard"].includes(z.type)?Number.parseInt(`${50-Number.parseFloat(ue.value)/2}`,10):0),_e=computed(()=>{const vn=pe.value,_n=z.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${_n?"":"-"}${vn}
|
||
a ${vn} ${vn} 0 1 1 0 ${_n?"-":""}${vn*2}
|
||
a ${vn} ${vn} 0 1 1 0 ${_n?"":"-"}${vn*2}
|
||
`}),Ce=computed(()=>2*Math.PI*pe.value),$e=computed(()=>z.type==="dashboard"?.75:1),xe=computed(()=>`${-1*Ce.value*(1-$e.value)/2}px`),Ie=computed(()=>({strokeDasharray:`${Ce.value*$e.value}px, ${Ce.value}px`,strokeDashoffset:xe.value})),Fe=computed(()=>({strokeDasharray:`${Ce.value*$e.value*(z.percentage/100)}px, ${Ce.value}px`,strokeDashoffset:xe.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),ze=computed(()=>{let vn;return z.color?vn=hn(z.percentage):vn=oe[z.status]||oe.default,vn}),Ue=computed(()=>z.status==="warning"?warning_filled_default:z.type==="line"?z.status==="success"?circle_check_default:circle_close_default:z.status==="success"?check_default:close_default),qe=computed(()=>z.type==="line"?12+z.strokeWidth*.4:z.width*.111111+2),At=computed(()=>z.format(z.percentage));function Lt(vn){const _n=100/vn.length;return vn.map((Sn,Cn)=>isString$7(Sn)?{color:Sn,percentage:(Cn+1)*_n}:Sn).sort((Sn,Cn)=>Sn.percentage-Cn.percentage)}const hn=vn=>{var _n;const{color:bn}=z;if(isFunction$5(bn))return bn(vn);if(isString$7(bn))return bn;{const Sn=Lt(bn);for(const Cn of Sn)if(Cn.percentage>vn)return Cn.color;return(_n=Sn[Sn.length-1])==null?void 0:_n.color}};return(vn,_n)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(vn.type),unref(ae).is(vn.status),{[unref(ae).m("without-text")]:!vn.showText,[unref(ae).m("text-inside")]:vn.textInside}]),role:"progressbar","aria-valuenow":vn.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[vn.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(ae).be("bar","outer")),style:normalizeStyle$1({height:`${vn.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(ae).be("bar","inner"),{[unref(ae).bem("bar","inner","indeterminate")]:vn.indeterminate},{[unref(ae).bem("bar","inner","striped")]:vn.striped},{[unref(ae).bem("bar","inner","striped-flow")]:vn.stripedFlow}]),style:normalizeStyle$1(unref(le))},[(vn.showText||vn.$slots.default)&&vn.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).be("bar","innerText"))},[renderSlot(vn.$slots,"default",{percentage:vn.percentage},()=>[createBaseVNode("span",null,toDisplayString$1(unref(At)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ae).b("circle")),style:normalizeStyle$1({height:`${vn.width}px`,width:`${vn.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$f,[createBaseVNode("path",{class:normalizeClass(unref(ae).be("circle","track")),d:unref(_e),stroke:`var(${unref(ae).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":unref(ue),fill:"none",style:normalizeStyle$1(unref(Ie))},null,14,_hoisted_3$8),createBaseVNode("path",{class:normalizeClass(unref(ae).be("circle","path")),d:unref(_e),stroke:unref(ze),fill:"none",opacity:vn.percentage?1:0,"stroke-linecap":vn.strokeLinecap,"stroke-width":unref(ue),style:normalizeStyle$1(unref(Fe))},null,14,_hoisted_4$5)]))],6)),(vn.showText||vn.$slots.default)&&!vn.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ae).e("text")),style:normalizeStyle$1({fontSize:`${unref(qe)}px`})},[renderSlot(vn.$slots,"default",{percentage:vn.percentage},()=>[vn.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ue))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString$1(unref(At)),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$l))}});var Progress=_export_sfc$1(_sfc_main$I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:definePropType([Array,Object]),default:()=>mutable(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:definePropType([Array,Object]),default:()=>[star_filled_default,star_filled_default,star_filled_default]},voidIcon:{type:iconPropType,default:()=>star_default},disabledVoidIcon:{type:iconPropType,default:()=>star_filled_default},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:definePropType(Array),default:()=>mutable(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:useSizeProp,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),rateEmits={[CHANGE_EVENT]:$=>isNumber$5($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_hoisted_1$k=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$e=["onMousemove","onClick"],__default__$v=defineComponent({name:"ElRate"}),_sfc_main$H=defineComponent({...__default__$v,props:rateProps,emits:rateEmits,setup($,{expose:z,emit:oe}){const ae=$;function le(Dn,In){const Ln=Yn=>isObject$8(Yn),Mn=Object.keys(In).map(Yn=>+Yn).filter(Yn=>{const Fn=In[Yn];return(Ln(Fn)?Fn.excluded:!1)?Dn<Yn:Dn<=Yn}).sort((Yn,Fn)=>Yn-Fn),Vn=In[Mn[0]];return Ln(Vn)&&Vn.value||Vn}const ue=inject(formContextKey,void 0),pe=inject(formItemContextKey,void 0),_e=useFormSize(),Ce=useNamespace("rate"),{inputId:$e,isLabeledByFormItem:xe}=useFormItemInputId(ae,{formItemContext:pe}),Ie=ref(ae.modelValue),Fe=ref(-1),ze=ref(!0),Ue=computed(()=>[Ce.b(),Ce.m(_e.value)]),qe=computed(()=>ae.disabled||(ue==null?void 0:ue.disabled)),At=computed(()=>Ce.cssVarBlock({"void-color":ae.voidColor,"disabled-void-color":ae.disabledVoidColor,"fill-color":_n.value})),Lt=computed(()=>{let Dn="";return ae.showScore?Dn=ae.scoreTemplate.replace(/\{\s*value\s*\}/,qe.value?`${ae.modelValue}`:`${Ie.value}`):ae.showText&&(Dn=ae.texts[Math.ceil(Ie.value)-1]),Dn}),hn=computed(()=>ae.modelValue*100-Math.floor(ae.modelValue)*100),vn=computed(()=>isArray$c(ae.colors)?{[ae.lowThreshold]:ae.colors[0],[ae.highThreshold]:{value:ae.colors[1],excluded:!0},[ae.max]:ae.colors[2]}:ae.colors),_n=computed(()=>{const Dn=le(Ie.value,vn.value);return isObject$8(Dn)?"":Dn}),bn=computed(()=>{let Dn="";return qe.value?Dn=`${hn.value}%`:ae.allowHalf&&(Dn="50%"),{color:_n.value,width:Dn}}),Sn=computed(()=>{let Dn=isArray$c(ae.icons)?[...ae.icons]:{...ae.icons};return Dn=markRaw(Dn),isArray$c(Dn)?{[ae.lowThreshold]:Dn[0],[ae.highThreshold]:{value:Dn[1],excluded:!0},[ae.max]:Dn[2]}:Dn}),Cn=computed(()=>le(ae.modelValue,Sn.value)),En=computed(()=>qe.value?isString$7(ae.disabledVoidIcon)?ae.disabledVoidIcon:markRaw(ae.disabledVoidIcon):isString$7(ae.voidIcon)?ae.voidIcon:markRaw(ae.voidIcon)),$n=computed(()=>le(Ie.value,Sn.value));function wn(Dn){const In=qe.value&&hn.value>0&&Dn-1<ae.modelValue&&Dn>ae.modelValue,Ln=ae.allowHalf&&ze.value&&Dn-.5<=Ie.value&&Dn>Ie.value;return In||Ln}function Tn(Dn){ae.clearable&&Dn===ae.modelValue&&(Dn=0),oe(UPDATE_MODEL_EVENT,Dn),ae.modelValue!==Dn&&oe("change",Dn)}function xn(Dn){qe.value||(ae.allowHalf&&ze.value?Tn(Ie.value):Tn(Dn))}function kn(Dn){if(qe.value)return;let In=Ie.value;const Ln=Dn.code;return Ln===EVENT_CODE.up||Ln===EVENT_CODE.right?(ae.allowHalf?In+=.5:In+=1,Dn.stopPropagation(),Dn.preventDefault()):(Ln===EVENT_CODE.left||Ln===EVENT_CODE.down)&&(ae.allowHalf?In-=.5:In-=1,Dn.stopPropagation(),Dn.preventDefault()),In=In<0?0:In,In=In>ae.max?ae.max:In,oe(UPDATE_MODEL_EVENT,In),oe("change",In),In}function Nn(Dn,In){if(!qe.value){if(ae.allowHalf&&In){let Ln=In.target;hasClass(Ln,Ce.e("item"))&&(Ln=Ln.querySelector(`.${Ce.e("icon")}`)),(Ln.clientWidth===0||hasClass(Ln,Ce.e("decimal")))&&(Ln=Ln.parentNode),ze.value=In.offsetX*2<=Ln.clientWidth,Ie.value=ze.value?Dn-.5:Dn}else Ie.value=Dn;Fe.value=Dn}}function Bn(){qe.value||(ae.allowHalf&&(ze.value=ae.modelValue!==Math.floor(ae.modelValue)),Ie.value=ae.modelValue,Fe.value=-1)}return watch(()=>ae.modelValue,Dn=>{Ie.value=Dn,ze.value=ae.modelValue!==Math.floor(ae.modelValue)}),ae.modelValue||oe(UPDATE_MODEL_EVENT,0),z({setCurrentValue:Nn,resetCurrentValue:Bn}),(Dn,In)=>{var Ln;return openBlock(),createElementBlock("div",{id:unref($e),class:normalizeClass([unref(Ue),unref(Ce).is("disabled",unref(qe))]),role:"slider","aria-label":unref(xe)?void 0:Dn.label||"rating","aria-labelledby":unref(xe)?(Ln=unref(pe))==null?void 0:Ln.labelId:void 0,"aria-valuenow":Ie.value,"aria-valuetext":unref(Lt)||void 0,"aria-valuemin":"0","aria-valuemax":Dn.max,tabindex:"0",style:normalizeStyle$1(unref(At)),onKeydown:kn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.max,(Mn,Vn)=>(openBlock(),createElementBlock("span",{key:Vn,class:normalizeClass(unref(Ce).e("item")),onMousemove:Yn=>Nn(Mn,Yn),onMouseleave:Bn,onClick:Yn=>xn(Mn)},[createVNode(unref(ElIcon),{class:normalizeClass([unref(Ce).e("icon"),{hover:Fe.value===Mn},unref(Ce).is("active",Mn<=Ie.value)])},{default:withCtx(()=>[wn(Mn)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref($n)),null,null,512)),[[vShow,Mn<=Ie.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(En)),null,null,512)),[[vShow,!(Mn<=Ie.value)]])],64)),wn(Mn)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle$1(unref(bn)),class:normalizeClass([unref(Ce).e("icon"),unref(Ce).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Cn))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$e))),128)),Dn.showText||Dn.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Ce).e("text"))},toDisplayString$1(unref(Lt)),3)):createCommentVNode("v-if",!0)],46,_hoisted_1$k)}}});var Rate=_export_sfc$1(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[IconMap.success]:circle_check_filled_default,[IconMap.warning]:warning_filled_default,[IconMap.error]:circle_close_filled_default,[IconMap.info]:info_filled_default},resultProps=buildProps({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),__default__$u=defineComponent({name:"ElResult"}),_sfc_main$G=defineComponent({...__default__$u,props:resultProps,setup($){const z=$,oe=useNamespace("result"),ae=computed(()=>{const le=z.icon,ue=le&&IconMap[le]?IconMap[le]:"icon-info",pe=IconComponentMap[ue]||IconComponentMap["icon-info"];return{class:ue,component:pe}});return(le,ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(oe).b())},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("icon"))},[renderSlot(le.$slots,"icon",{},()=>[unref(ae).component?(openBlock(),createBlock(resolveDynamicComponent(unref(ae).component),{key:0,class:normalizeClass(unref(ae).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),le.title||le.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("title"))},[renderSlot(le.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString$1(le.title),1)])],2)):createCommentVNode("v-if",!0),le.subTitle||le.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).e("subtitle"))},[renderSlot(le.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString$1(le.subTitle),1)])],2)):createCommentVNode("v-if",!0),le.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(oe).e("extra"))},[renderSlot(le.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc$1(_sfc_main$G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result);var safeIsNaN=Number.isNaN||function(z){return typeof z=="number"&&z!==z};function isEqual($,z){return!!($===z||safeIsNaN($)&&safeIsNaN(z))}function areInputsEqual($,z){if($.length!==z.length)return!1;for(var oe=0;oe<$.length;oe++)if(!isEqual($[oe],z[oe]))return!1;return!0}function memoizeOne($,z){z===void 0&&(z=areInputsEqual);var oe=null;function ae(){for(var le=[],ue=0;ue<arguments.length;ue++)le[ue]=arguments[ue];if(oe&&oe.lastThis===this&&z(le,oe.lastArgs))return oe.lastResult;var pe=$.apply(this,le);return oe={lastResult:pe,lastArgs:le,lastThis:this},pe}return ae.clear=function(){oe=null},ae}const useCache=()=>{const z=getCurrentInstance().proxy.$props;return computed(()=>{const oe=(ae,le,ue)=>({});return z.perfMode?memoize(oe):memoizeOne(oe)})},DEFAULT_DYNAMIC_LIST_ITEM_SIZE=50,ITEM_RENDER_EVT="itemRendered",SCROLL_EVT="scroll",FORWARD="forward",BACKWARD="backward",AUTO_ALIGNMENT="auto",SMART_ALIGNMENT="smart",START_ALIGNMENT="start",CENTERED_ALIGNMENT="center",END_ALIGNMENT="end",HORIZONTAL$1="horizontal",VERTICAL$1="vertical",LTR="ltr",RTL="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL$1]:"left",[VERTICAL$1]:"top"},SCROLLBAR_MIN_SIZE=20,LayoutKeys={[HORIZONTAL$1]:"deltaX",[VERTICAL$1]:"deltaY"},useWheel=({atEndEdge:$,atStartEdge:z,layout:oe},ae)=>{let le,ue=0;const pe=Ce=>Ce<0&&z.value||Ce>0&&$.value;return{hasReachedEdge:pe,onWheel:Ce=>{cAF(le);const $e=Ce[LayoutKeys[oe.value]];pe(ue)&&pe(ue+$e)||(ue+=$e,isFirefox()||Ce.preventDefault(),le=rAF(()=>{ae(ue),ue=0}))}}},itemSize$1=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache$1=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total=buildProp({type:Number,required:!0}),layout$3=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL$1}),virtualizedProps=buildProps({className:{type:String,default:""},containerElement:{type:definePropType([String,Object]),default:"div"},data:{type:definePropType(Array),default:()=>mutable([])},direction,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:definePropType([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),virtualizedListProps=buildProps({cache:cache$1,estimatedItemSize,layout:layout$3,initScrollOffset,total,itemSize:itemSize$1,...virtualizedProps}),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps({columnCache:cache$1,columnWidth:itemSize$1,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:$,rowIndex:z})=>`${z}:${$}`},rowCache:cache$1,rowHeight:itemSize$1,totalColumn:total,totalRow:total,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap,role:String,...virtualizedProps}),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout:layout$3,total,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=($,z)=>$<z?FORWARD:BACKWARD,isHorizontal=$=>$===LTR||$===RTL||$===HORIZONTAL$1,isRTL=$=>$===RTL;let cachedRTLResult=null;function getRTLOffsetType($=!1){if(cachedRTLResult===null||$){const z=document.createElement("div"),oe=z.style;oe.width="50px",oe.height="50px",oe.overflow="scroll",oe.direction="rtl";const ae=document.createElement("div"),le=ae.style;return le.width="100px",le.height="100px",z.appendChild(ae),document.body.appendChild(z),z.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(z.scrollLeft=1,z.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(z),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:$,size:z,bar:oe},ae){const le={},ue=`translate${oe.axis}(${$}px)`;return le[oe.size]=z,le.transform=ue,le.msTransform=ue,le.webkitTransform=ue,ae==="horizontal"?le.height="100%":le.width="100%",le}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup($,{emit:z}){const oe=computed(()=>$.startGap+$.endGap),ae=useNamespace("virtual-scrollbar"),le=useNamespace("scrollbar"),ue=ref(),pe=ref();let _e=null,Ce=null;const $e=reactive({isDragging:!1,traveled:0}),xe=computed(()=>BAR_MAP[$.layout]),Ie=computed(()=>$.clientSize-unref(oe)),Fe=computed(()=>({position:"absolute",width:`${HORIZONTAL$1===$.layout?Ie.value:$.scrollbarSize}px`,height:`${HORIZONTAL$1===$.layout?$.scrollbarSize:Ie.value}px`,[ScrollbarDirKey[$.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),ze=computed(()=>{const Sn=$.ratio,Cn=$.clientSize;if(Sn>=100)return Number.POSITIVE_INFINITY;if(Sn>=50)return Sn*Cn/100;const En=Cn/3;return Math.floor(Math.min(Math.max(Sn*Cn,SCROLLBAR_MIN_SIZE),En))}),Ue=computed(()=>{if(!Number.isFinite(ze.value))return{display:"none"};const Sn=`${ze.value}px`;return renderThumbStyle({bar:xe.value,size:Sn,move:$e.traveled},$.layout)}),qe=computed(()=>Math.floor($.clientSize-ze.value-unref(oe))),At=()=>{window.addEventListener("mousemove",_n),window.addEventListener("mouseup",vn);const Sn=unref(pe);Sn&&(Ce=document.onselectstart,document.onselectstart=()=>!1,Sn.addEventListener("touchmove",_n),Sn.addEventListener("touchend",vn))},Lt=()=>{window.removeEventListener("mousemove",_n),window.removeEventListener("mouseup",vn),document.onselectstart=Ce,Ce=null;const Sn=unref(pe);Sn&&(Sn.removeEventListener("touchmove",_n),Sn.removeEventListener("touchend",vn))},hn=Sn=>{Sn.stopImmediatePropagation(),!(Sn.ctrlKey||[1,2].includes(Sn.button))&&($e.isDragging=!0,$e[xe.value.axis]=Sn.currentTarget[xe.value.offset]-(Sn[xe.value.client]-Sn.currentTarget.getBoundingClientRect()[xe.value.direction]),z("start-move"),At())},vn=()=>{$e.isDragging=!1,$e[xe.value.axis]=0,z("stop-move"),Lt()},_n=Sn=>{const{isDragging:Cn}=$e;if(!Cn||!pe.value||!ue.value)return;const En=$e[xe.value.axis];if(!En)return;cAF(_e);const $n=(ue.value.getBoundingClientRect()[xe.value.direction]-Sn[xe.value.client])*-1,wn=pe.value[xe.value.offset]-En,Tn=$n-wn;_e=rAF(()=>{$e.traveled=Math.max($.startGap,Math.min(Tn,qe.value)),z("scroll",Tn,qe.value)})},bn=Sn=>{const Cn=Math.abs(Sn.target.getBoundingClientRect()[xe.value.direction]-Sn[xe.value.client]),En=pe.value[xe.value.offset]/2,$n=Cn-En;$e.traveled=Math.max(0,Math.min($n,qe.value)),z("scroll",$n,qe.value)};return watch(()=>$.scrollFrom,Sn=>{$e.isDragging||($e.traveled=Math.ceil(Sn*qe.value))}),onBeforeUnmount(()=>{Lt()}),()=>h$3("div",{role:"presentation",ref:ue,class:[ae.b(),$.class,($.alwaysOn||$e.isDragging)&&"always-on"],style:Fe.value,onMousedown:withModifiers(bn,["stop","prevent"]),onTouchstartPrevent:hn},h$3("div",{ref:pe,class:le.e("thumb"),style:Ue.value,onMousedown:hn},[]))}}),createList$1=({name:$,getOffset:z,getItemSize:oe,getItemOffset:ae,getEstimatedTotalSize:le,getStartIndexForOffset:ue,getStopIndexForStartIndex:pe,initCache:_e,clearCache:Ce,validateProps:$e})=>defineComponent({name:$??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(xe,{emit:Ie,expose:Fe}){$e(xe);const ze=getCurrentInstance(),Ue=useNamespace("vl"),qe=ref(_e(xe,ze)),At=useCache(),Lt=ref(),hn=ref(),vn=ref(),_n=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$5(xe.initScrollOffset)?xe.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:xe.scrollbarAlwaysOn}),bn=computed(()=>{const{total:Xn,cache:sr}=xe,{isScrolling:vr,scrollDir:ar,scrollOffset:qn}=unref(_n);if(Xn===0)return[0,0,0,0];const Gn=ue(xe,qn,unref(qe)),Wn=pe(xe,Gn,qn,unref(qe)),Qn=!vr||ar===BACKWARD?Math.max(1,sr):1,cr=!vr||ar===FORWARD?Math.max(1,sr):1;return[Math.max(0,Gn-Qn),Math.max(0,Math.min(Xn-1,Wn+cr)),Gn,Wn]}),Sn=computed(()=>le(xe,unref(qe))),Cn=computed(()=>isHorizontal(xe.layout)),En=computed(()=>[{position:"relative",[`overflow-${Cn.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:xe.direction,height:isNumber$5(xe.height)?`${xe.height}px`:xe.height,width:isNumber$5(xe.width)?`${xe.width}px`:xe.width},xe.style]),$n=computed(()=>{const Xn=unref(Sn),sr=unref(Cn);return{height:sr?"100%":`${Xn}px`,pointerEvents:unref(_n).isScrolling?"none":void 0,width:sr?`${Xn}px`:"100%"}}),wn=computed(()=>Cn.value?xe.width:xe.height),{onWheel:Tn}=useWheel({atStartEdge:computed(()=>_n.value.scrollOffset<=0),atEndEdge:computed(()=>_n.value.scrollOffset>=Sn.value),layout:computed(()=>xe.layout)},Xn=>{var sr,vr;(vr=(sr=vn.value).onMouseUp)==null||vr.call(sr),In(Math.min(_n.value.scrollOffset+Xn,Sn.value-wn.value))}),xn=()=>{const{total:Xn}=xe;if(Xn>0){const[qn,Gn,Wn,Qn]=unref(bn);Ie(ITEM_RENDER_EVT,qn,Gn,Wn,Qn)}const{scrollDir:sr,scrollOffset:vr,updateRequested:ar}=unref(_n);Ie(SCROLL_EVT,sr,vr,ar)},kn=Xn=>{const{clientHeight:sr,scrollHeight:vr,scrollTop:ar}=Xn.currentTarget,qn=unref(_n);if(qn.scrollOffset===ar)return;const Gn=Math.max(0,Math.min(ar,vr-sr));_n.value={...qn,isScrolling:!0,scrollDir:getScrollDir(qn.scrollOffset,Gn),scrollOffset:Gn,updateRequested:!1},nextTick(Vn)},Nn=Xn=>{const{clientWidth:sr,scrollLeft:vr,scrollWidth:ar}=Xn.currentTarget,qn=unref(_n);if(qn.scrollOffset===vr)return;const{direction:Gn}=xe;let Wn=vr;if(Gn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Wn=-vr;break}case RTL_OFFSET_POS_DESC:{Wn=ar-sr-vr;break}}Wn=Math.max(0,Math.min(Wn,ar-sr)),_n.value={...qn,isScrolling:!0,scrollDir:getScrollDir(qn.scrollOffset,Wn),scrollOffset:Wn,updateRequested:!1},nextTick(Vn)},Bn=Xn=>{unref(Cn)?Nn(Xn):kn(Xn),xn()},Dn=(Xn,sr)=>{const vr=(Sn.value-wn.value)/sr*Xn;In(Math.min(Sn.value-wn.value,vr))},In=Xn=>{Xn=Math.max(Xn,0),Xn!==unref(_n).scrollOffset&&(_n.value={...unref(_n),scrollOffset:Xn,scrollDir:getScrollDir(unref(_n).scrollOffset,Xn),updateRequested:!0},nextTick(Vn))},Ln=(Xn,sr=AUTO_ALIGNMENT)=>{const{scrollOffset:vr}=unref(_n);Xn=Math.max(0,Math.min(Xn,xe.total-1)),In(z(xe,Xn,sr,vr,unref(qe)))},Mn=Xn=>{const{direction:sr,itemSize:vr,layout:ar}=xe,qn=At.value(Ce&&vr,Ce&&ar,Ce&&sr);let Gn;if(hasOwn$4(qn,String(Xn)))Gn=qn[Xn];else{const Wn=ae(xe,Xn,unref(qe)),Qn=oe(xe,Xn,unref(qe)),cr=unref(Cn),jn=sr===RTL,Zn=cr?Wn:0;qn[Xn]=Gn={position:"absolute",left:jn?void 0:`${Zn}px`,right:jn?`${Zn}px`:void 0,top:cr?0:`${Wn}px`,height:cr?"100%":`${Qn}px`,width:cr?`${Qn}px`:"100%"}}return Gn},Vn=()=>{_n.value.isScrolling=!1,nextTick(()=>{At.value(-1,null,null)})},Yn=()=>{const Xn=Lt.value;Xn&&(Xn.scrollTop=0)};onMounted(()=>{if(!isClient$2)return;const{initScrollOffset:Xn}=xe,sr=unref(Lt);isNumber$5(Xn)&&sr&&(unref(Cn)?sr.scrollLeft=Xn:sr.scrollTop=Xn),xn()}),onUpdated(()=>{const{direction:Xn,layout:sr}=xe,{scrollOffset:vr,updateRequested:ar}=unref(_n),qn=unref(Lt);if(ar&&qn)if(sr===HORIZONTAL$1)if(Xn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{qn.scrollLeft=-vr;break}case RTL_OFFSET_POS_ASC:{qn.scrollLeft=vr;break}default:{const{clientWidth:Gn,scrollWidth:Wn}=qn;qn.scrollLeft=Wn-Gn-vr;break}}else qn.scrollLeft=vr;else qn.scrollTop=vr});const Fn={ns:Ue,clientSize:wn,estimatedTotalSize:Sn,windowStyle:En,windowRef:Lt,innerRef:hn,innerStyle:$n,itemsToRender:bn,scrollbarRef:vn,states:_n,getItemStyle:Mn,onScroll:Bn,onScrollbarScroll:Dn,onWheel:Tn,scrollTo:In,scrollToItem:Ln,resetScrollTop:Yn};return Fe({windowRef:Lt,innerRef:hn,getItemStyleCache:At,scrollTo:In,scrollToItem:Ln,resetScrollTop:Yn,states:_n}),Fn},render(xe){var Ie;const{$slots:Fe,className:ze,clientSize:Ue,containerElement:qe,data:At,getItemStyle:Lt,innerElement:hn,itemsToRender:vn,innerStyle:_n,layout:bn,total:Sn,onScroll:Cn,onScrollbarScroll:En,onWheel:$n,states:wn,useIsScrolling:Tn,windowStyle:xn,ns:kn}=xe,[Nn,Bn]=vn,Dn=resolveDynamicComponent(qe),In=resolveDynamicComponent(hn),Ln=[];if(Sn>0)for(let Fn=Nn;Fn<=Bn;Fn++)Ln.push((Ie=Fe.default)==null?void 0:Ie.call(Fe,{data:At,key:Fn,index:Fn,isScrolling:Tn?wn.isScrolling:void 0,style:Lt(Fn)}));const Mn=[h$3(In,{style:_n,ref:"innerRef"},isString$7(In)?Ln:{default:()=>Ln})],Vn=h$3(ScrollBar,{ref:"scrollbarRef",clientSize:Ue,layout:bn,onScroll:En,ratio:Ue*100/this.estimatedTotalSize,scrollFrom:wn.scrollOffset/(this.estimatedTotalSize-Ue),total:Sn}),Yn=h$3(Dn,{class:[kn.e("window"),ze],style:xn,onScroll:Cn,onWheel:$n,ref:"windowRef",key:0},isString$7(Dn)?[Mn]:{default:()=>[Mn]});return h$3("div",{key:0,class:[kn.e("wrapper"),wn.scrollbarAlwaysOn?"always-on":""]},[Yn,Vn])}}),FixedSizeList=createList$1({name:"ElFixedSizeList",getItemOffset:({itemSize:$},z)=>z*$,getItemSize:({itemSize:$})=>$,getEstimatedTotalSize:({total:$,itemSize:z})=>z*$,getOffset:({height:$,total:z,itemSize:oe,layout:ae,width:le},ue,pe,_e)=>{const Ce=isHorizontal(ae)?le:$,$e=Math.max(0,z*oe-Ce),xe=Math.min($e,ue*oe),Ie=Math.max(0,(ue+1)*oe-Ce);switch(pe===SMART_ALIGNMENT&&(_e>=Ie-Ce&&_e<=xe+Ce?pe=AUTO_ALIGNMENT:pe=CENTERED_ALIGNMENT),pe){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const Fe=Math.round(Ie+(xe-Ie)/2);return Fe<Math.ceil(Ce/2)?0:Fe>$e+Math.floor(Ce/2)?$e:Fe}case AUTO_ALIGNMENT:default:return _e>=Ie&&_e<=xe?_e:_e<Ie?Ie:xe}},getStartIndexForOffset:({total:$,itemSize:z},oe)=>Math.max(0,Math.min($-1,Math.floor(oe/z))),getStopIndexForStartIndex:({height:$,total:z,itemSize:oe,layout:ae,width:le},ue,pe)=>{const _e=ue*oe,Ce=isHorizontal(ae)?le:$,$e=Math.ceil((Ce+pe-_e)/oe);return Math.max(0,Math.min(z-1,ue+$e-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=($,z,oe)=>{const{itemSize:ae}=$,{items:le,lastVisitedIndex:ue}=oe;if(z>ue){let pe=0;if(ue>=0){const _e=le[ue];pe=_e.offset+_e.size}for(let _e=ue+1;_e<=z;_e++){const Ce=ae(_e);le[_e]={offset:pe,size:Ce},pe+=Ce}oe.lastVisitedIndex=z}return le[z]},findItem$1=($,z,oe)=>{const{items:ae,lastVisitedIndex:le}=z;return(le>0?ae[le].offset:0)>=oe?bs$1($,z,0,le,oe):es$1($,z,Math.max(0,le),oe)},bs$1=($,z,oe,ae,le)=>{for(;oe<=ae;){const ue=oe+Math.floor((ae-oe)/2),pe=getItemFromCache$1($,ue,z).offset;if(pe===le)return ue;pe<le?oe=ue+1:pe>le&&(ae=ue-1)}return Math.max(0,oe-1)},es$1=($,z,oe,ae)=>{const{total:le}=$;let ue=1;for(;oe<le&&getItemFromCache$1($,oe,z).offset<ae;)oe+=ue,ue*=2;return bs$1($,z,Math.floor(oe/2),Math.min(oe,le-1),ae)},getEstimatedTotalSize=({total:$},{items:z,estimatedItemSize:oe,lastVisitedIndex:ae})=>{let le=0;if(ae>=$&&(ae=$-1),ae>=0){const _e=z[ae];le=_e.offset+_e.size}const pe=($-ae-1)*oe;return le+pe},DynamicSizeList=createList$1({name:"ElDynamicSizeList",getItemOffset:($,z,oe)=>getItemFromCache$1($,z,oe).offset,getItemSize:($,z,{items:oe})=>oe[z].size,getEstimatedTotalSize,getOffset:($,z,oe,ae,le)=>{const{height:ue,layout:pe,width:_e}=$,Ce=isHorizontal(pe)?_e:ue,$e=getItemFromCache$1($,z,le),xe=getEstimatedTotalSize($,le),Ie=Math.max(0,Math.min(xe-Ce,$e.offset)),Fe=Math.max(0,$e.offset-Ce+$e.size);switch(oe===SMART_ALIGNMENT&&(ae>=Fe-Ce&&ae<=Ie+Ce?oe=AUTO_ALIGNMENT:oe=CENTERED_ALIGNMENT),oe){case START_ALIGNMENT:return Ie;case END_ALIGNMENT:return Fe;case CENTERED_ALIGNMENT:return Math.round(Fe+(Ie-Fe)/2);case AUTO_ALIGNMENT:default:return ae>=Fe&&ae<=Ie?ae:ae<Fe?Fe:Ie}},getStartIndexForOffset:($,z,oe)=>findItem$1($,oe,z),getStopIndexForStartIndex:($,z,oe,ae)=>{const{height:le,total:ue,layout:pe,width:_e}=$,Ce=isHorizontal(pe)?_e:le,$e=getItemFromCache$1($,z,ae),xe=oe+Ce;let Ie=$e.offset+$e.size,Fe=z;for(;Fe<ue-1&&Ie<xe;)Fe++,Ie+=getItemFromCache$1($,Fe,ae).size;return Fe},initCache({estimatedItemSize:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE},z){const oe={items:{},estimatedItemSize:$,lastVisitedIndex:-1};return oe.clearCacheAfterIndex=(ae,le=!0)=>{var ue,pe;oe.lastVisitedIndex=Math.min(oe.lastVisitedIndex,ae-1),(ue=z.exposed)==null||ue.getItemStyleCache(-1),le&&((pe=z.proxy)==null||pe.$forceUpdate())},oe},clearCache:!1,validateProps:({itemSize:$})=>{}}),useGridWheel=({atXEndEdge:$,atXStartEdge:z,atYEndEdge:oe,atYStartEdge:ae},le)=>{let ue=null,pe=0,_e=0;const Ce=(xe,Ie)=>{const Fe=xe<=0&&z.value||xe>=0&&$.value,ze=Ie<=0&&ae.value||Ie>=0&&oe.value;return Fe&&ze};return{hasReachedEdge:Ce,onWheel:xe=>{cAF(ue);let Ie=xe.deltaX,Fe=xe.deltaY;Math.abs(Ie)>Math.abs(Fe)?Fe=0:Ie=0,xe.shiftKey&&Fe!==0&&(Ie=Fe,Fe=0),!(Ce(pe,_e)&&Ce(pe+Ie,_e+Fe))&&(pe+=Ie,_e+=Fe,xe.preventDefault(),ue=rAF(()=>{le(pe,_e),pe=0,_e=0}))}}},createGrid=({name:$,clearCache:z,getColumnPosition:oe,getColumnStartIndexForOffset:ae,getColumnStopIndexForStartIndex:le,getEstimatedTotalHeight:ue,getEstimatedTotalWidth:pe,getColumnOffset:_e,getRowOffset:Ce,getRowPosition:$e,getRowStartIndexForOffset:xe,getRowStopIndexForStartIndex:Ie,initCache:Fe,injectToInstance:ze,validateProps:Ue})=>defineComponent({name:$??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(qe,{emit:At,expose:Lt,slots:hn}){const vn=useNamespace("vl");Ue(qe);const _n=getCurrentInstance(),bn=ref(Fe(qe,_n));ze==null||ze(_n,bn);const Sn=ref(),Cn=ref(),En=ref(),$n=ref(null),wn=ref({isScrolling:!1,scrollLeft:isNumber$5(qe.initScrollLeft)?qe.initScrollLeft:0,scrollTop:isNumber$5(qe.initScrollTop)?qe.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),Tn=useCache(),xn=computed(()=>Number.parseInt(`${qe.height}`,10)),kn=computed(()=>Number.parseInt(`${qe.width}`,10)),Nn=computed(()=>{const{totalColumn:or,totalRow:wr,columnCache:mr}=qe,{isScrolling:Tr,xAxisScrollDir:dr,scrollLeft:ir}=unref(wn);if(or===0||wr===0)return[0,0,0,0];const ur=ae(qe,ir,unref(bn)),fr=le(qe,ur,ir,unref(bn)),kr=!Tr||dr===BACKWARD?Math.max(1,mr):1,Dr=!Tr||dr===FORWARD?Math.max(1,mr):1;return[Math.max(0,ur-kr),Math.max(0,Math.min(or-1,fr+Dr)),ur,fr]}),Bn=computed(()=>{const{totalColumn:or,totalRow:wr,rowCache:mr}=qe,{isScrolling:Tr,yAxisScrollDir:dr,scrollTop:ir}=unref(wn);if(or===0||wr===0)return[0,0,0,0];const ur=xe(qe,ir,unref(bn)),fr=Ie(qe,ur,ir,unref(bn)),kr=!Tr||dr===BACKWARD?Math.max(1,mr):1,Dr=!Tr||dr===FORWARD?Math.max(1,mr):1;return[Math.max(0,ur-kr),Math.max(0,Math.min(wr-1,fr+Dr)),ur,fr]}),Dn=computed(()=>ue(qe,unref(bn))),In=computed(()=>pe(qe,unref(bn))),Ln=computed(()=>{var or;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:qe.direction,height:isNumber$5(qe.height)?`${qe.height}px`:qe.height,width:isNumber$5(qe.width)?`${qe.width}px`:qe.width},(or=qe.style)!=null?or:{}]}),Mn=computed(()=>{const or=`${unref(In)}px`;return{height:`${unref(Dn)}px`,pointerEvents:unref(wn).isScrolling?"none":void 0,width:or}}),Vn=()=>{const{totalColumn:or,totalRow:wr}=qe;if(or>0&&wr>0){const[fr,kr,Dr,Lr]=unref(Nn),[Mr,br,Cr,lr]=unref(Bn);At(ITEM_RENDER_EVT,{columnCacheStart:fr,columnCacheEnd:kr,rowCacheStart:Mr,rowCacheEnd:br,columnVisibleStart:Dr,columnVisibleEnd:Lr,rowVisibleStart:Cr,rowVisibleEnd:lr})}const{scrollLeft:mr,scrollTop:Tr,updateRequested:dr,xAxisScrollDir:ir,yAxisScrollDir:ur}=unref(wn);At(SCROLL_EVT,{xAxisScrollDir:ir,scrollLeft:mr,yAxisScrollDir:ur,scrollTop:Tr,updateRequested:dr})},Yn=or=>{const{clientHeight:wr,clientWidth:mr,scrollHeight:Tr,scrollLeft:dr,scrollTop:ir,scrollWidth:ur}=or.currentTarget,fr=unref(wn);if(fr.scrollTop===ir&&fr.scrollLeft===dr)return;let kr=dr;if(isRTL(qe.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:kr=-dr;break;case RTL_OFFSET_POS_DESC:kr=ur-mr-dr;break}wn.value={...fr,isScrolling:!0,scrollLeft:kr,scrollTop:Math.max(0,Math.min(ir,Tr-wr)),updateRequested:!0,xAxisScrollDir:getScrollDir(fr.scrollLeft,kr),yAxisScrollDir:getScrollDir(fr.scrollTop,ir)},nextTick(()=>Gn()),Wn(),Vn()},Fn=(or,wr)=>{const mr=unref(xn),Tr=(Dn.value-mr)/wr*or;vr({scrollTop:Math.min(Dn.value-mr,Tr)})},Xn=(or,wr)=>{const mr=unref(kn),Tr=(In.value-mr)/wr*or;vr({scrollLeft:Math.min(In.value-mr,Tr)})},{onWheel:sr}=useGridWheel({atXStartEdge:computed(()=>wn.value.scrollLeft<=0),atXEndEdge:computed(()=>wn.value.scrollLeft>=In.value-unref(kn)),atYStartEdge:computed(()=>wn.value.scrollTop<=0),atYEndEdge:computed(()=>wn.value.scrollTop>=Dn.value-unref(xn))},(or,wr)=>{var mr,Tr,dr,ir;(Tr=(mr=Cn.value)==null?void 0:mr.onMouseUp)==null||Tr.call(mr),(ir=(dr=Cn.value)==null?void 0:dr.onMouseUp)==null||ir.call(dr);const ur=unref(kn),fr=unref(xn);vr({scrollLeft:Math.min(wn.value.scrollLeft+or,In.value-ur),scrollTop:Math.min(wn.value.scrollTop+wr,Dn.value-fr)})}),vr=({scrollLeft:or=wn.value.scrollLeft,scrollTop:wr=wn.value.scrollTop})=>{or=Math.max(or,0),wr=Math.max(wr,0);const mr=unref(wn);wr===mr.scrollTop&&or===mr.scrollLeft||(wn.value={...mr,xAxisScrollDir:getScrollDir(mr.scrollLeft,or),yAxisScrollDir:getScrollDir(mr.scrollTop,wr),scrollLeft:or,scrollTop:wr,updateRequested:!0},nextTick(()=>Gn()),Wn(),Vn())},ar=(or=0,wr=0,mr=AUTO_ALIGNMENT)=>{const Tr=unref(wn);wr=Math.max(0,Math.min(wr,qe.totalColumn-1)),or=Math.max(0,Math.min(or,qe.totalRow-1));const dr=getScrollBarWidth(vn.namespace.value),ir=unref(bn),ur=ue(qe,ir),fr=pe(qe,ir);vr({scrollLeft:_e(qe,wr,mr,Tr.scrollLeft,ir,fr>qe.width?dr:0),scrollTop:Ce(qe,or,mr,Tr.scrollTop,ir,ur>qe.height?dr:0)})},qn=(or,wr)=>{const{columnWidth:mr,direction:Tr,rowHeight:dr}=qe,ir=Tn.value(z&&mr,z&&dr,z&&Tr),ur=`${or},${wr}`;if(hasOwn$4(ir,ur))return ir[ur];{const[,fr]=oe(qe,wr,unref(bn)),kr=unref(bn),Dr=isRTL(Tr),[Lr,Mr]=$e(qe,or,kr),[br]=oe(qe,wr,kr);return ir[ur]={position:"absolute",left:Dr?void 0:`${fr}px`,right:Dr?`${fr}px`:void 0,top:`${Mr}px`,height:`${Lr}px`,width:`${br}px`},ir[ur]}},Gn=()=>{wn.value.isScrolling=!1,nextTick(()=>{Tn.value(-1,null,null)})};onMounted(()=>{if(!isClient$2)return;const{initScrollLeft:or,initScrollTop:wr}=qe,mr=unref(Sn);mr&&(isNumber$5(or)&&(mr.scrollLeft=or),isNumber$5(wr)&&(mr.scrollTop=wr)),Vn()});const Wn=()=>{const{direction:or}=qe,{scrollLeft:wr,scrollTop:mr,updateRequested:Tr}=unref(wn),dr=unref(Sn);if(Tr&&dr){if(or===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{dr.scrollLeft=-wr;break}case RTL_OFFSET_POS_ASC:{dr.scrollLeft=wr;break}default:{const{clientWidth:ir,scrollWidth:ur}=dr;dr.scrollLeft=ur-ir-wr;break}}else dr.scrollLeft=Math.max(0,wr);dr.scrollTop=Math.max(0,mr)}},{resetAfterColumnIndex:Qn,resetAfterRowIndex:cr,resetAfter:jn}=_n.proxy;Lt({windowRef:Sn,innerRef:$n,getItemStyleCache:Tn,scrollTo:vr,scrollToItem:ar,states:wn,resetAfterColumnIndex:Qn,resetAfterRowIndex:cr,resetAfter:jn});const Zn=()=>{const{scrollbarAlwaysOn:or,scrollbarStartGap:wr,scrollbarEndGap:mr,totalColumn:Tr,totalRow:dr}=qe,ir=unref(kn),ur=unref(xn),fr=unref(In),kr=unref(Dn),{scrollLeft:Dr,scrollTop:Lr}=unref(wn),Mr=h$3(ScrollBar,{ref:Cn,alwaysOn:or,startGap:wr,endGap:mr,class:vn.e("horizontal"),clientSize:ir,layout:"horizontal",onScroll:Xn,ratio:ir*100/fr,scrollFrom:Dr/(fr-ir),total:dr,visible:!0}),br=h$3(ScrollBar,{ref:En,alwaysOn:or,startGap:wr,endGap:mr,class:vn.e("vertical"),clientSize:ur,layout:"vertical",onScroll:Fn,ratio:ur*100/kr,scrollFrom:Lr/(kr-ur),total:Tr,visible:!0});return{horizontalScrollbar:Mr,verticalScrollbar:br}},nr=()=>{var or;const[wr,mr]=unref(Nn),[Tr,dr]=unref(Bn),{data:ir,totalColumn:ur,totalRow:fr,useIsScrolling:kr,itemKey:Dr}=qe,Lr=[];if(fr>0&&ur>0)for(let Mr=Tr;Mr<=dr;Mr++)for(let br=wr;br<=mr;br++)Lr.push((or=hn.default)==null?void 0:or.call(hn,{columnIndex:br,data:ir,key:Dr({columnIndex:br,data:ir,rowIndex:Mr}),isScrolling:kr?unref(wn).isScrolling:void 0,style:qn(Mr,br),rowIndex:Mr}));return Lr},hr=()=>{const or=resolveDynamicComponent(qe.innerElement),wr=nr();return[h$3(or,{style:unref(Mn),ref:$n},isString$7(or)?wr:{default:()=>wr})]};return()=>{const or=resolveDynamicComponent(qe.containerElement),{horizontalScrollbar:wr,verticalScrollbar:mr}=Zn(),Tr=hr();return h$3("div",{key:0,class:vn.e("wrapper"),role:qe.role},[h$3(or,{class:qe.className,style:unref(Ln),onScroll:Yn,onWheel:sr,ref:Sn},isString$7(or)?Tr:{default:()=>Tr}),wr,mr])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:$},z)=>[$,z*$],getRowPosition:({rowHeight:$},z)=>[$,z*$],getEstimatedTotalHeight:({totalRow:$,rowHeight:z})=>z*$,getEstimatedTotalWidth:({totalColumn:$,columnWidth:z})=>z*$,getColumnOffset:({totalColumn:$,columnWidth:z,width:oe},ae,le,ue,pe,_e)=>{oe=Number(oe);const Ce=Math.max(0,$*z-oe),$e=Math.min(Ce,ae*z),xe=Math.max(0,ae*z-oe+_e+z);switch(le==="smart"&&(ue>=xe-oe&&ue<=$e+oe?le=AUTO_ALIGNMENT:le=CENTERED_ALIGNMENT),le){case START_ALIGNMENT:return $e;case END_ALIGNMENT:return xe;case CENTERED_ALIGNMENT:{const Ie=Math.round(xe+($e-xe)/2);return Ie<Math.ceil(oe/2)?0:Ie>Ce+Math.floor(oe/2)?Ce:Ie}case AUTO_ALIGNMENT:default:return ue>=xe&&ue<=$e?ue:xe>$e||ue<xe?xe:$e}},getRowOffset:({rowHeight:$,height:z,totalRow:oe},ae,le,ue,pe,_e)=>{z=Number(z);const Ce=Math.max(0,oe*$-z),$e=Math.min(Ce,ae*$),xe=Math.max(0,ae*$-z+_e+$);switch(le===SMART_ALIGNMENT&&(ue>=xe-z&&ue<=$e+z?le=AUTO_ALIGNMENT:le=CENTERED_ALIGNMENT),le){case START_ALIGNMENT:return $e;case END_ALIGNMENT:return xe;case CENTERED_ALIGNMENT:{const Ie=Math.round(xe+($e-xe)/2);return Ie<Math.ceil(z/2)?0:Ie>Ce+Math.floor(z/2)?Ce:Ie}case AUTO_ALIGNMENT:default:return ue>=xe&&ue<=$e?ue:xe>$e||ue<xe?xe:$e}},getColumnStartIndexForOffset:({columnWidth:$,totalColumn:z},oe)=>Math.max(0,Math.min(z-1,Math.floor(oe/$))),getColumnStopIndexForStartIndex:({columnWidth:$,totalColumn:z,width:oe},ae,le)=>{const ue=ae*$,pe=Math.ceil((oe+le-ue)/$);return Math.max(0,Math.min(z-1,ae+pe-1))},getRowStartIndexForOffset:({rowHeight:$,totalRow:z},oe)=>Math.max(0,Math.min(z-1,Math.floor(oe/$))),getRowStopIndexForStartIndex:({rowHeight:$,totalRow:z,height:oe},ae,le)=>{const ue=ae*$,pe=Math.ceil((oe+le-ue)/$);return Math.max(0,Math.min(z-1,ae+pe-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:$,rowHeight:z})=>{}}),{max:max$2,min:min$2,floor}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=($,z,oe,ae)=>{const[le,ue,pe]=[oe[ae],$[ACCESS_SIZER_KEY_MAP[ae]],oe[ACCESS_LAST_VISITED_KEY_MAP[ae]]];if(z>pe){let _e=0;if(pe>=0){const Ce=le[pe];_e=Ce.offset+Ce.size}for(let Ce=pe+1;Ce<=z;Ce++){const $e=ue(Ce);le[Ce]={offset:_e,size:$e},_e+=$e}oe[ACCESS_LAST_VISITED_KEY_MAP[ae]]=z}return le[z]},bs=($,z,oe,ae,le,ue)=>{for(;oe<=ae;){const pe=oe+floor((ae-oe)/2),_e=getItemFromCache($,pe,z,ue).offset;if(_e===le)return pe;_e<le?oe=pe+1:ae=pe-1}return max$2(0,oe-1)},es=($,z,oe,ae,le)=>{const ue=le==="column"?$.totalColumn:$.totalRow;let pe=1;for(;oe<ue&&getItemFromCache($,oe,z,le).offset<ae;)oe+=pe,pe*=2;return bs($,z,floor(oe/2),min$2(oe,ue-1),ae,le)},findItem=($,z,oe,ae)=>{const[le,ue]=[z[ae],z[ACCESS_LAST_VISITED_KEY_MAP[ae]]];return(ue>0?le[ue].offset:0)>=oe?bs($,z,0,ue,oe,ae):es($,z,max$2(0,ue),oe,ae)},getEstimatedTotalHeight=({totalRow:$},{estimatedRowHeight:z,lastVisitedRowIndex:oe,row:ae})=>{let le=0;if(oe>=$&&(oe=$-1),oe>=0){const _e=ae[oe];le=_e.offset+_e.size}const pe=($-oe-1)*z;return le+pe},getEstimatedTotalWidth=({totalColumn:$},{column:z,estimatedColumnWidth:oe,lastVisitedColumnIndex:ae})=>{let le=0;if(ae>$&&(ae=$-1),ae>=0){const _e=z[ae];le=_e.offset+_e.size}const pe=($-ae-1)*oe;return le+pe},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=($,z,oe,ae,le,ue,pe)=>{const[_e,Ce]=[ue==="row"?$.height:$.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[ue]],$e=getItemFromCache($,z,le,ue),xe=Ce($,le),Ie=max$2(0,min$2(xe-_e,$e.offset)),Fe=max$2(0,$e.offset-_e+pe+$e.size);switch(oe===SMART_ALIGNMENT&&(ae>=Fe-_e&&ae<=Ie+_e?oe=AUTO_ALIGNMENT:oe=CENTERED_ALIGNMENT),oe){case START_ALIGNMENT:return Ie;case END_ALIGNMENT:return Fe;case CENTERED_ALIGNMENT:return Math.round(Fe+(Ie-Fe)/2);case AUTO_ALIGNMENT:default:return ae>=Fe&&ae<=Ie?ae:Fe>Ie||ae<Fe?Fe:Ie}},DynamicSizeGrid=createGrid({name:"ElDynamicSizeGrid",getColumnPosition:($,z,oe)=>{const ae=getItemFromCache($,z,oe,"column");return[ae.size,ae.offset]},getRowPosition:($,z,oe)=>{const ae=getItemFromCache($,z,oe,"row");return[ae.size,ae.offset]},getColumnOffset:($,z,oe,ae,le,ue)=>getOffset$1($,z,oe,ae,le,"column",ue),getRowOffset:($,z,oe,ae,le,ue)=>getOffset$1($,z,oe,ae,le,"row",ue),getColumnStartIndexForOffset:($,z,oe)=>findItem($,oe,z,"column"),getColumnStopIndexForStartIndex:($,z,oe,ae)=>{const le=getItemFromCache($,z,ae,"column"),ue=oe+$.width;let pe=le.offset+le.size,_e=z;for(;_e<$.totalColumn-1&&pe<ue;)_e++,pe+=getItemFromCache($,z,ae,"column").size;return _e},getEstimatedTotalHeight,getEstimatedTotalWidth,getRowStartIndexForOffset:($,z,oe)=>findItem($,oe,z,"row"),getRowStopIndexForStartIndex:($,z,oe,ae)=>{const{totalRow:le,height:ue}=$,pe=getItemFromCache($,z,ae,"row"),_e=oe+ue;let Ce=pe.size+pe.offset,$e=z;for(;$e<le-1&&Ce<_e;)$e++,Ce+=getItemFromCache($,$e,ae,"row").size;return $e},injectToInstance:($,z)=>{const oe=({columnIndex:ue,rowIndex:pe},_e)=>{var Ce,$e;_e=isUndefined$1(_e)?!0:_e,isNumber$5(ue)&&(z.value.lastVisitedColumnIndex=Math.min(z.value.lastVisitedColumnIndex,ue-1)),isNumber$5(pe)&&(z.value.lastVisitedRowIndex=Math.min(z.value.lastVisitedRowIndex,pe-1)),(Ce=$.exposed)==null||Ce.getItemStyleCache.value(-1,null,null),_e&&(($e=$.proxy)==null||$e.$forceUpdate())},ae=(ue,pe)=>{oe({columnIndex:ue},pe)},le=(ue,pe)=>{oe({rowIndex:ue},pe)};Object.assign($.proxy,{resetAfterColumnIndex:ae,resetAfterRowIndex:le,resetAfter:oe})},initCache:({estimatedColumnWidth:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:z=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:$,estimatedRowHeight:z,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:$,rowHeight:z})=>{}}),_sfc_main$F=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$8($,z,oe,ae,le,ue){return $.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("group","title")),style:normalizeStyle$1([$.style,{lineHeight:`${$.height}px`}])},toDisplayString$1($.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.be("group","split")),style:normalizeStyle$1($.style)},[createBaseVNode("span",{class:normalizeClass($.ns.be("group","split-dash")),style:normalizeStyle$1({top:`${$.height/2}px`})},null,6)],6))}var GroupItem=_export_sfc$1(_sfc_main$F,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption($,{emit:z}){return{hoverItem:()=>{$.disabled||z("hover",$.index)},selectOptionClick:()=>{$.disabled||z("select",$.item,$.index)}}}const SelectProps={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:circle_close_default},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:isValidComponentSize},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:definePropType(String),values:Ee,default:"bottom-start"}},OptionProps={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},_sfc_main$E=defineComponent({props:OptionProps,emits:["select","hover"],setup($,{emit:z}){const oe=useNamespace("select"),{hoverItem:ae,selectOptionClick:le}=useOption($,{emit:z});return{ns:oe,hoverItem:ae,selectOptionClick:le}}}),_hoisted_1$j=["aria-selected"];function _sfc_render$7($,z,oe,ae,le,ue){return openBlock(),createElementBlock("li",{"aria-selected":$.selected,style:normalizeStyle$1($.style),class:normalizeClass([$.ns.be("dropdown","option-item"),$.ns.is("selected",$.selected),$.ns.is("disabled",$.disabled),$.ns.is("created",$.created),{hover:$.hovering}]),onMouseenter:z[0]||(z[0]=(...pe)=>$.hoverItem&&$.hoverItem(...pe)),onClick:z[1]||(z[1]=withModifiers((...pe)=>$.selectOptionClick&&$.selectOptionClick(...pe),["stop"]))},[renderSlot($.$slots,"default",{item:$.item,index:$.index,disabled:$.disabled},()=>[createBaseVNode("span",null,toDisplayString$1($.item.label),1)])],46,_hoisted_1$j)}var OptionItem=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const selectV2InjectionKey=Symbol("ElSelectV2Injection");var ElSelectMenu=defineComponent({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup($,{slots:z,expose:oe}){const ae=inject(selectV2InjectionKey),le=useNamespace("select"),ue=ref([]),pe=ref(),_e=computed(()=>$.data.length);watch(()=>_e.value,()=>{var En,$n;($n=(En=ae.popper.value).updatePopper)==null||$n.call(En)});const Ce=computed(()=>isUndefined$1(ae.props.estimatedOptionHeight)),$e=computed(()=>Ce.value?{itemSize:ae.props.itemHeight}:{estimatedSize:ae.props.estimatedOptionHeight,itemSize:En=>ue.value[En]}),xe=(En=[],$n)=>{const{props:{valueKey:wn}}=ae;return isObject$8($n)?En&&En.some(Tn=>get$1(Tn,wn)===get$1($n,wn)):En.includes($n)},Ie=(En,$n)=>{if(isObject$8($n)){const{valueKey:wn}=ae.props;return get$1(En,wn)===get$1($n,wn)}else return En===$n},Fe=(En,$n)=>{const{valueKey:wn}=ae.props;return ae.props.multiple?xe(En,get$1($n,wn)):Ie(En,get$1($n,wn))},ze=(En,$n)=>{const{disabled:wn,multiple:Tn,multipleLimit:xn}=ae.props;return wn||!$n&&(Tn?xn>0&&En.length>=xn:!1)},Ue=En=>$.hoveringIndex===En;oe({listRef:pe,isSized:Ce,isItemDisabled:ze,isItemHovering:Ue,isItemSelected:Fe,scrollToItem:En=>{const $n=pe.value;$n&&$n.scrollToItem(En)},resetScrollTop:()=>{const En=pe.value;En&&En.resetScrollTop()}});const Lt=En=>{const{index:$n,data:wn,style:Tn}=En,xn=unref(Ce),{itemSize:kn,estimatedSize:Nn}=unref($e),{modelValue:Bn}=ae.props,{onSelect:Dn,onHover:In}=ae,Ln=wn[$n];if(Ln.type==="Group")return createVNode(GroupItem,{item:Ln,style:Tn,height:xn?kn:Nn},null);const Mn=Fe(Bn,Ln),Vn=ze(Bn,Mn),Yn=Ue($n);return createVNode(OptionItem,mergeProps(En,{selected:Mn,disabled:Ln.disabled||Vn,created:!!Ln.created,hovering:Yn,item:Ln,onSelect:Dn,onHover:In}),{default:Fn=>{var Xn;return((Xn=z.default)==null?void 0:Xn.call(z,Fn))||createVNode("span",null,[Ln.label])}})},{onKeyboardNavigate:hn,onKeyboardSelect:vn}=ae,_n=()=>{hn("forward")},bn=()=>{hn("backward")},Sn=()=>{ae.expanded=!1},Cn=En=>{const{code:$n}=En,{tab:wn,esc:Tn,down:xn,up:kn,enter:Nn}=EVENT_CODE;switch($n!==wn&&(En.preventDefault(),En.stopPropagation()),$n){case wn:case Tn:{Sn();break}case xn:{_n();break}case kn:{bn();break}case Nn:{vn();break}}};return()=>{var En;const{data:$n,width:wn}=$,{height:Tn,multiple:xn,scrollbarAlwaysOn:kn}=ae.props;if($n.length===0)return createVNode("div",{class:le.b("dropdown"),style:{width:`${wn}px`}},[(En=z.empty)==null?void 0:En.call(z)]);const Nn=unref(Ce)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[le.b("dropdown"),le.is("multiple",xn)]},[createVNode(Nn,mergeProps({ref:pe},unref($e),{className:le.be("dropdown","list"),scrollbarAlwaysOn:kn,data:$n,height:Tn,width:wn,total:$n.length,onKeydown:Cn}),{default:Bn=>createVNode(Lt,Bn,null)})])}}});function useAllowCreate($,z){const oe=ref(0),ae=ref(null),le=computed(()=>$.allowCreate&&$.filterable);function ue(xe){const Ie=Fe=>Fe.value===xe;return $.options&&$.options.some(Ie)||z.createdOptions.some(Ie)}function pe(xe){le.value&&($.multiple&&xe.created?oe.value++:ae.value=xe)}function _e(xe){if(le.value)if(xe&&xe.length>0&&!ue(xe)){const Ie={value:xe,label:xe,created:!0,disabled:!1};z.createdOptions.length>=oe.value?z.createdOptions[oe.value]=Ie:z.createdOptions.push(Ie)}else if($.multiple)z.createdOptions.length=oe.value;else{const Ie=ae.value;z.createdOptions.length=0,Ie&&Ie.created&&z.createdOptions.push(Ie)}}function Ce(xe){if(!le.value||!xe||!xe.created||xe.created&&$.reserveKeyword&&z.inputValue===xe.label)return;const Ie=z.createdOptions.findIndex(Fe=>Fe.value===xe.value);~Ie&&(z.createdOptions.splice(Ie,1),oe.value--)}function $e(){le.value&&(z.createdOptions.length=0,oe.value=0)}return{createNewOption:_e,removeNewOption:Ce,selectNewOption:pe,clearAllNewOption:$e}}const flattenOptions=$=>{const z=[];return $.forEach(oe=>{isArray$c(oe.options)?(z.push({label:oe.label,isTitle:!0,type:"Group"}),oe.options.forEach(ae=>{z.push(ae)}),z.push({type:"Group"})):z.push(oe)}),z};function useInput($){const z=ref(!1);return{handleCompositionStart:()=>{z.value=!0},handleCompositionUpdate:ue=>{const pe=ue.target.value,_e=pe[pe.length-1]||"";z.value=!isKorean(_e)},handleCompositionEnd:ue=>{z.value&&(z.value=!1,isFunction$5($)&&$(ue))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=($,z)=>{const{t:oe}=useLocale(),ae=useNamespace("select-v2"),le=useNamespace("input"),{form:ue,formItem:pe}=useFormItem(),_e=reactive({inputValue:DEFAULT_INPUT_PLACEHOLDER,displayInputValue:DEFAULT_INPUT_PLACEHOLDER,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),Ce=ref(-1),$e=ref(-1),xe=ref(null),Ie=ref(null),Fe=ref(null),ze=ref(null),Ue=ref(null),qe=ref(null),At=ref(null),Lt=ref(!1),hn=computed(()=>$.disabled||(ue==null?void 0:ue.disabled)),vn=computed(()=>{const Pr=xn.value.length*34;return Pr>$.height?$.height:Pr}),_n=computed(()=>!isNil($.modelValue)),bn=computed(()=>{const Pr=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:_n.value;return $.clearable&&!hn.value&&_e.comboBoxHovering&&Pr}),Sn=computed(()=>$.remote&&$.filterable?"":arrow_up_default),Cn=computed(()=>Sn.value&&ae.is("reverse",Lt.value)),En=computed(()=>(pe==null?void 0:pe.validateState)||""),$n=computed(()=>ValidateComponentsMap[En.value]),wn=computed(()=>$.remote?300:0),Tn=computed(()=>{const Pr=xn.value;return $.loading?$.loadingText||oe("el.select.loading"):$.remote&&_e.inputValue===""&&Pr.length===0?!1:$.filterable&&_e.inputValue&&Pr.length>0?$.noMatchText||oe("el.select.noMatch"):Pr.length===0?$.noDataText||oe("el.select.noData"):null}),xn=computed(()=>{const Pr=Rr=>{const Kr=_e.inputValue,Yr=new RegExp(escapeStringRegexp(Kr),"i");return Kr?Yr.test(Rr.label||""):!0};return $.loading?[]:flattenOptions($.options.concat(_e.createdOptions).map(Rr=>{if(isArray$c(Rr.options)){const Kr=Rr.options.filter(Pr);if(Kr.length>0)return{...Rr,options:Kr}}else if($.remote||Pr(Rr))return Rr;return null}).filter(Rr=>Rr!==null))}),kn=computed(()=>xn.value.every(Pr=>Pr.disabled)),Nn=useFormSize(),Bn=computed(()=>Nn.value==="small"?"small":"default"),Dn=computed(()=>{const Pr=qe.value,Rr=Bn.value||"default",Kr=Pr?Number.parseInt(getComputedStyle(Pr).paddingLeft):0,Yr=Pr?Number.parseInt(getComputedStyle(Pr).paddingRight):0;return _e.selectWidth-Yr-Kr-TAG_BASE_WIDTH[Rr]}),In=()=>{var Pr;$e.value=((Pr=Ue.value)==null?void 0:Pr.offsetWidth)||200},Ln=computed(()=>({width:`${_e.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(_e.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),Mn=computed(()=>isArray$c($.modelValue)?$.modelValue.length===0&&!_e.displayInputValue:$.filterable?_e.displayInputValue.length===0:!0),Vn=computed(()=>{const Pr=$.placeholder||oe("el.select.placeholder");return $.multiple||isNil($.modelValue)?Pr:_e.selectedLabel}),Yn=computed(()=>{var Pr,Rr;return(Rr=(Pr=ze.value)==null?void 0:Pr.popperRef)==null?void 0:Rr.contentRef}),Fn=computed(()=>{if($.multiple){const Pr=$.modelValue.length;if($.modelValue.length>0)return xn.value.findIndex(Rr=>Rr.value===$.modelValue[Pr-1])}else if($.modelValue)return xn.value.findIndex(Pr=>Pr.value===$.modelValue);return-1}),Xn=computed({get(){return Lt.value&&Tn.value!==!1},set(Pr){Lt.value=Pr}}),sr=computed(()=>_e.cachedOptions.slice(0,$.maxCollapseTags)),vr=computed(()=>_e.cachedOptions.slice($.maxCollapseTags)),{createNewOption:ar,removeNewOption:qn,selectNewOption:Gn,clearAllNewOption:Wn}=useAllowCreate($,_e),{handleCompositionStart:Qn,handleCompositionUpdate:cr,handleCompositionEnd:jn}=useInput(Pr=>zr(Pr)),Zn=()=>{var Pr,Rr,Kr;(Rr=(Pr=Ie.value)==null?void 0:Pr.focus)==null||Rr.call(Pr),(Kr=ze.value)==null||Kr.updatePopper()},nr=()=>{if(!$.automaticDropdown&&!hn.value)return _e.isComposing&&(_e.softFocus=!0),nextTick(()=>{var Pr,Rr;Lt.value=!Lt.value,(Rr=(Pr=Ie.value)==null?void 0:Pr.focus)==null||Rr.call(Pr)})},hr=()=>($.filterable&&_e.inputValue!==_e.selectedLabel&&(_e.query=_e.selectedLabel),or(_e.inputValue),nextTick(()=>{ar(_e.inputValue)})),gr=debounce(hr,wn.value),or=Pr=>{_e.previousQuery!==Pr&&(_e.previousQuery=Pr,$.filterable&&isFunction$5($.filterMethod)?$.filterMethod(Pr):$.filterable&&$.remote&&isFunction$5($.remoteMethod)&&$.remoteMethod(Pr))},wr=Pr=>{isEqual$1($.modelValue,Pr)||z(CHANGE_EVENT,Pr)},mr=Pr=>{z(UPDATE_MODEL_EVENT,Pr),wr(Pr),_e.previousValue=Pr==null?void 0:Pr.toString()},Tr=(Pr=[],Rr)=>{if(!isObject$8(Rr))return Pr.indexOf(Rr);const Kr=$.valueKey;let Yr=-1;return Pr.some((Br,Jr)=>get$1(Br,Kr)===get$1(Rr,Kr)?(Yr=Jr,!0):!1),Yr},dr=Pr=>isObject$8(Pr)?get$1(Pr,$.valueKey):Pr,ir=Pr=>isObject$8(Pr)?Pr.label:Pr,ur=()=>nextTick(()=>{var Pr,Rr;if(!Ie.value)return;const Kr=qe.value;Ue.value.height=Kr.offsetHeight,Lt.value&&Tn.value!==!1&&((Rr=(Pr=ze.value)==null?void 0:Pr.updatePopper)==null||Rr.call(Pr))}),fr=()=>{var Pr,Rr;if(kr(),In(),(Rr=(Pr=ze.value)==null?void 0:Pr.updatePopper)==null||Rr.call(Pr),$.multiple)return ur()},kr=()=>{const Pr=qe.value;Pr&&(_e.selectWidth=Pr.getBoundingClientRect().width)},Dr=(Pr,Rr,Kr=!0)=>{var Yr,Br;if($.multiple){let Jr=$.modelValue.slice();const to=Tr(Jr,dr(Pr));to>-1?(Jr=[...Jr.slice(0,to),...Jr.slice(to+1)],_e.cachedOptions.splice(to,1),qn(Pr)):($.multipleLimit<=0||Jr.length<$.multipleLimit)&&(Jr=[...Jr,dr(Pr)],_e.cachedOptions.push(Pr),Gn(Pr),Fr(Rr)),mr(Jr),Pr.created&&(_e.query="",or(""),_e.inputLength=20),$.filterable&&!$.reserveKeyword&&((Br=(Yr=Ie.value).focus)==null||Br.call(Yr),rr("")),$.filterable&&(_e.calculatedWidth=At.value.getBoundingClientRect().width),ur(),Ir()}else Ce.value=Rr,_e.selectedLabel=Pr.label,mr(dr(Pr)),Lt.value=!1,_e.isComposing=!1,_e.isSilentBlur=Kr,Gn(Pr),Pr.created||Wn(),Fr(Rr)},Lr=(Pr,Rr)=>{const{valueKey:Kr}=$,Yr=$.modelValue.indexOf(get$1(Rr,Kr));if(Yr>-1&&!hn.value){const Br=[...$.modelValue.slice(0,Yr),...$.modelValue.slice(Yr+1)];return _e.cachedOptions.splice(Yr,1),mr(Br),z("remove-tag",get$1(Rr,Kr)),_e.softFocus=!0,qn(Rr),nextTick(Zn)}Pr.stopPropagation()},Mr=Pr=>{const Rr=_e.isComposing;_e.isComposing=!0,_e.softFocus?_e.softFocus=!1:Rr||z("focus",Pr)},br=Pr=>(_e.softFocus=!1,nextTick(()=>{var Rr,Kr;(Kr=(Rr=Ie.value)==null?void 0:Rr.blur)==null||Kr.call(Rr),At.value&&(_e.calculatedWidth=At.value.getBoundingClientRect().width),_e.isSilentBlur?_e.isSilentBlur=!1:_e.isComposing&&z("blur",Pr),_e.isComposing=!1})),Cr=()=>{_e.displayInputValue.length>0?rr(""):Lt.value=!1},lr=Pr=>{if(_e.displayInputValue.length===0){Pr.preventDefault();const Rr=$.modelValue.slice();Rr.pop(),qn(_e.cachedOptions.pop()),mr(Rr)}},Jn=()=>{let Pr;return isArray$c($.modelValue)?Pr=[]:Pr=void 0,_e.softFocus=!0,$.multiple?_e.cachedOptions=[]:_e.selectedLabel="",Lt.value=!1,mr(Pr),z("clear"),Wn(),nextTick(Zn)},rr=Pr=>{_e.displayInputValue=Pr,_e.inputValue=Pr},$r=(Pr,Rr=void 0)=>{const Kr=xn.value;if(!["forward","backward"].includes(Pr)||hn.value||Kr.length<=0||kn.value)return;if(!Lt.value)return nr();Rr===void 0&&(Rr=_e.hoveringIndex);let Yr=-1;Pr==="forward"?(Yr=Rr+1,Yr>=Kr.length&&(Yr=0)):Pr==="backward"&&(Yr=Rr-1,(Yr<0||Yr>=Kr.length)&&(Yr=Kr.length-1));const Br=Kr[Yr];if(Br.disabled||Br.type==="Group")return $r(Pr,Yr);Fr(Yr),qr(Yr)},Ar=()=>{if(Lt.value)~_e.hoveringIndex&&xn.value[_e.hoveringIndex]&&Dr(xn.value[_e.hoveringIndex],_e.hoveringIndex,!1);else return nr()},Fr=Pr=>{_e.hoveringIndex=Pr},_r=()=>{_e.hoveringIndex=-1},Ir=()=>{var Pr;const Rr=Ie.value;Rr&&((Pr=Rr.focus)==null||Pr.call(Rr))},zr=Pr=>{const Rr=Pr.target.value;if(rr(Rr),_e.displayInputValue.length>0&&!Lt.value&&(Lt.value=!0),_e.calculatedWidth=At.value.getBoundingClientRect().width,$.multiple&&ur(),$.remote)gr();else return hr()},Hr=()=>(Lt.value=!1,br()),jr=()=>(_e.inputValue=_e.displayInputValue,nextTick(()=>{~Fn.value&&(Fr(Fn.value),qr(_e.hoveringIndex))})),qr=Pr=>{Fe.value.scrollToItem(Pr)},Xr=()=>{if(_r(),$.multiple)if($.modelValue.length>0){let Pr=!1;_e.cachedOptions.length=0,_e.previousValue=$.modelValue.toString(),$.modelValue.forEach(Rr=>{const Kr=xn.value.findIndex(Yr=>dr(Yr)===Rr);~Kr&&(_e.cachedOptions.push(xn.value[Kr]),Pr||Fr(Kr),Pr=!0)})}else _e.cachedOptions=[],_e.previousValue=void 0;else if(_n.value){_e.previousValue=$.modelValue;const Pr=xn.value,Rr=Pr.findIndex(Kr=>dr(Kr)===dr($.modelValue));~Rr?(_e.selectedLabel=Pr[Rr].label,Fr(Rr)):_e.selectedLabel=`${$.modelValue}`}else _e.selectedLabel="",_e.previousValue=void 0;Wn(),In()};return watch(Lt,Pr=>{var Rr,Kr;z("visible-change",Pr),Pr?(Kr=(Rr=ze.value).update)==null||Kr.call(Rr):(_e.displayInputValue="",_e.previousQuery=null,ar(""))}),watch(()=>$.modelValue,(Pr,Rr)=>{var Kr;(!Pr||Pr.toString()!==_e.previousValue)&&Xr(),!isEqual$1(Pr,Rr)&&$.validateEvent&&((Kr=pe==null?void 0:pe.validate)==null||Kr.call(pe,"change").catch(Yr=>void 0))},{deep:!0}),watch(()=>$.options,()=>{const Pr=Ie.value;(!Pr||Pr&&document.activeElement!==Pr)&&Xr()},{deep:!0}),watch(xn,()=>nextTick(Fe.value.resetScrollTop)),watch(()=>Xn.value,Pr=>{Pr||_r()}),onMounted(()=>{Xr()}),useResizeObserver(Ue,fr),{collapseTagSize:Bn,currentPlaceholder:Vn,expanded:Lt,emptyText:Tn,popupHeight:vn,debounce:wn,filteredOptions:xn,iconComponent:Sn,iconReverse:Cn,inputWrapperStyle:Ln,popperSize:$e,dropdownMenuVisible:Xn,hasModelValue:_n,shouldShowPlaceholder:Mn,selectDisabled:hn,selectSize:Nn,showClearBtn:bn,states:_e,tagMaxWidth:Dn,nsSelectV2:ae,nsInput:le,calculatorRef:At,controlRef:xe,inputRef:Ie,menuRef:Fe,popper:ze,selectRef:Ue,selectionRef:qe,popperRef:Yn,validateState:En,validateIcon:$n,showTagList:sr,collapseTagList:vr,debouncedOnInputChange:gr,deleteTag:Lr,getLabel:ir,getValueKey:dr,handleBlur:br,handleClear:Jn,handleClickOutside:Hr,handleDel:lr,handleEsc:Cr,handleFocus:Mr,handleMenuEnter:jr,handleResize:fr,toggleMenu:nr,scrollTo:qr,onInput:zr,onKeyboardNavigate:$r,onKeyboardSelect:Ar,onSelect:Dr,onHover:Fr,onUpdateInputValue:rr,handleCompositionStart:Qn,handleCompositionEnd:jn,handleCompositionUpdate:cr}},_sfc_main$D=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside,ModelText:vModelText},props:SelectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,{emit:z}){const oe=computed(()=>{const{modelValue:le,multiple:ue}=$,pe=ue?[]:void 0;return isArray$c(le)?ue?le:pe:ue?pe:le}),ae=useSelect$1(reactive({...toRefs($),modelValue:oe}),z);return provide(selectV2InjectionKey,{props:reactive({...toRefs($),height:ae.popupHeight,modelValue:oe}),popper:ae.popper,onSelect:ae.onSelect,onHover:ae.onHover,onKeyboardNavigate:ae.onKeyboardNavigate,onKeyboardSelect:ae.onKeyboardSelect}),{...ae,modelValue:oe}}}),_hoisted_1$i={key:0},_hoisted_2$d=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],_hoisted_3$7=["textContent"],_hoisted_4$4=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],_hoisted_5$2=["textContent"];function _sfc_render$6($,z,oe,ae,le,ue){const pe=resolveComponent("el-tag"),_e=resolveComponent("el-tooltip"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-select-menu"),xe=resolveDirective("model-text"),Ie=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([$.nsSelectV2.b(),$.nsSelectV2.m($.selectSize)]),onClick:z[24]||(z[24]=withModifiers((...Fe)=>$.toggleMenu&&$.toggleMenu(...Fe),["stop"])),onMouseenter:z[25]||(z[25]=Fe=>$.states.comboBoxHovering=!0),onMouseleave:z[26]||(z[26]=Fe=>$.states.comboBoxHovering=!1)},[createVNode(_e,{ref:"popper",visible:$.dropdownMenuVisible,teleported:$.teleported,"popper-class":[$.nsSelectV2.e("popper"),$.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,placement:$.placement,pure:"",transition:`${$.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:$.persistent,onBeforeShow:$.handleMenuEnter,onHide:z[23]||(z[23]=Fe=>$.states.inputValue=$.states.displayInputValue)},{default:withCtx(()=>[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([$.nsSelectV2.e("wrapper"),$.nsSelectV2.is("focused",$.states.isComposing||$.expanded),$.nsSelectV2.is("hovering",$.states.comboBoxHovering),$.nsSelectV2.is("filterable",$.filterable),$.nsSelectV2.is("disabled",$.selectDisabled)])},[$.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$i,[renderSlot($.$slots,"prefix")])):createCommentVNode("v-if",!0),$.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.nsSelectV2.e("selection"))},[$.collapseTags&&$.modelValue.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(pe,{closable:!$.selectDisabled&&!(Fe!=null&&Fe.disable),size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1(Fe==null?void 0:Fe.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selected-item"))},[$.modelValue.length>$.maxCollapseTags?(openBlock(),createBlock(pe,{key:0,closable:!1,size:$.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(_e,{key:0,disabled:$.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(pe,{closable:!$.selectDisabled&&!Fe.disabled,size:$.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Fe)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)],64)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList($.states.cachedOptions,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(pe,{closable:!$.selectDisabled&&!Fe.disabled,size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Fe)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")]),style:normalizeStyle$1($.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef",autocomplete:$.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":$.expanded,"aria-labelledby":$.label,class:normalizeClass([$.nsSelectV2.is($.selectSize),$.nsSelectV2.e("combobox-input")]),disabled:$.disabled,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",name:$.name,unselectable:$.expanded?"on":void 0,"onUpdate:modelValue":z[0]||(z[0]=(...Fe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Fe)),onFocus:z[1]||(z[1]=(...Fe)=>$.handleFocus&&$.handleFocus(...Fe)),onBlur:z[2]||(z[2]=(...Fe)=>$.handleBlur&&$.handleBlur(...Fe)),onInput:z[3]||(z[3]=(...Fe)=>$.onInput&&$.onInput(...Fe)),onCompositionstart:z[4]||(z[4]=(...Fe)=>$.handleCompositionStart&&$.handleCompositionStart(...Fe)),onCompositionupdate:z[5]||(z[5]=(...Fe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Fe)),onCompositionend:z[6]||(z[6]=(...Fe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Fe)),onKeydown:[z[7]||(z[7]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),z[8]||(z[8]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),z[9]||(z[9]=withKeys(withModifiers((...Fe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Fe),["stop","prevent"]),["enter"])),z[10]||(z[10]=withKeys(withModifiers((...Fe)=>$.handleEsc&&$.handleEsc(...Fe),["stop","prevent"]),["esc"])),z[11]||(z[11]=withKeys(withModifiers((...Fe)=>$.handleDel&&$.handleDel(...Fe),["stop"]),["delete"]))]},null,42,_hoisted_2$d),[[xe,$.states.displayInputValue]]),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass($.nsSelectV2.e("input-calculator")),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_3$7)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":$.label,"aria-expanded":$.expanded,autocapitalize:"off",autocomplete:$.autocomplete,class:normalizeClass($.nsSelectV2.e("combobox-input")),disabled:$.disabled,name:$.name,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",unselectable:$.expanded?"on":void 0,onCompositionstart:z[12]||(z[12]=(...Fe)=>$.handleCompositionStart&&$.handleCompositionStart(...Fe)),onCompositionupdate:z[13]||(z[13]=(...Fe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Fe)),onCompositionend:z[14]||(z[14]=(...Fe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Fe)),onFocus:z[15]||(z[15]=(...Fe)=>$.handleFocus&&$.handleFocus(...Fe)),onBlur:z[16]||(z[16]=(...Fe)=>$.handleBlur&&$.handleBlur(...Fe)),onInput:z[17]||(z[17]=(...Fe)=>$.onInput&&$.onInput(...Fe)),onKeydown:[z[18]||(z[18]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),z[19]||(z[19]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),z[20]||(z[20]=withKeys(withModifiers((...Fe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Fe),["stop","prevent"]),["enter"])),z[21]||(z[21]=withKeys(withModifiers((...Fe)=>$.handleEsc&&$.handleEsc(...Fe),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":z[22]||(z[22]=(...Fe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Fe))},null,42,_hoisted_4$4),[[xe,$.states.displayInputValue]])],2),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-calculator")]),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_5$2)):createCommentVNode("v-if",!0)],64)),$.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([$.nsSelectV2.e("placeholder"),$.nsSelectV2.is("transparent",$.multiple?$.modelValue.length===0:!$.hasModelValue)])},toDisplayString$1($.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("suffix"))},[$.iconComponent?withDirectives((openBlock(),createBlock(Ce,{key:0,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])),[[vShow,!$.showClearBtn]]):createCommentVNode("v-if",!0),$.showClearBtn&&$.clearIcon?(openBlock(),createBlock(Ce,{key:1,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon")]),onClick:withModifiers($.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.validateState&&$.validateIcon?(openBlock(),createBlock(Ce,{key:2,class:normalizeClass([$.nsInput.e("icon"),$.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]),content:withCtx(()=>[createVNode($e,{ref:"menuRef",data:$.filteredOptions,width:$.popperSize,"hovering-index":$.states.hoveringIndex,"scrollbar-always-on":$.scrollbarAlwaysOn},{default:withCtx(Fe=>[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps(Fe)))]),empty:withCtx(()=>[renderSlot($.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass($.nsSelectV2.e("empty"))},toDisplayString$1($.emptyText?$.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[Ie,$.handleClickOutside,$.popperRef]])}var Select=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Select.install=$=>{$.component(Select.name,Select)};const _Select=Select,ElSelectV2=_Select,skeletonProps=buildProps({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),__default__$t=defineComponent({name:"ElSkeletonItem"}),_sfc_main$C=defineComponent({...__default__$t,props:skeletonItemProps,setup($){const z=useNamespace("skeleton");return(oe,ae)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(z).e("item"),unref(z).e(oe.variant)])},[oe.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc$1(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const __default__$s=defineComponent({name:"ElSkeleton"}),_sfc_main$B=defineComponent({...__default__$s,props:skeletonProps,setup($,{expose:z}){const oe=$,ae=useNamespace("skeleton"),le=useThrottleRender(toRef$1(oe,"loading"),oe.throttle);return z({uiLoading:le}),(ue,pe)=>unref(le)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(ae).b(),unref(ae).is("animated",ue.animated)]},ue.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(ue.count,_e=>(openBlock(),createElementBlock(Fragment,{key:_e},[ue.loading?renderSlot(ue.$slots,"template",{key:_e},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(ae).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(ue.rows,Ce=>(openBlock(),createBlock(SkeletonItem,{key:Ce,class:normalizeClass([unref(ae).e("paragraph"),unref(ae).is("last",Ce===ue.rows&&ue.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(ue.$slots,"default",normalizeProps(mergeProps({key:1},ue.$attrs)))}});var Skeleton=_export_sfc$1(_sfc_main$B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton,{SkeletonItem}),ElSkeletonItem=withNoopInstall(SkeletonItem),sliderContextKey=Symbol("sliderContextKey"),sliderProps=buildProps({modelValue:{type:definePropType([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:useSizeProp,inputSize:useSizeProp,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:definePropType(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:definePropType(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ee,default:"top"},marks:{type:definePropType(Object)},validateEvent:{type:Boolean,default:!0}}),isValidValue$1=$=>isNumber$5($)||isArray$c($)&&$.every(isNumber$5),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},useLifecycle=($,z,oe)=>{const ae=ref();return onMounted(async()=>{$.range?(Array.isArray($.modelValue)?(z.firstValue=Math.max($.min,$.modelValue[0]),z.secondValue=Math.min($.max,$.modelValue[1])):(z.firstValue=$.min,z.secondValue=$.max),z.oldValue=[z.firstValue,z.secondValue]):(typeof $.modelValue!="number"||Number.isNaN($.modelValue)?z.firstValue=$.min:z.firstValue=Math.min($.max,Math.max($.min,$.modelValue)),z.oldValue=z.firstValue),useEventListener$1(window,"resize",oe),await nextTick(),oe()}),{sliderWrapper:ae}},useMarks=$=>computed(()=>$.marks?Object.keys($.marks).map(Number.parseFloat).sort((oe,ae)=>oe-ae).filter(oe=>oe<=$.max&&oe>=$.min).map(oe=>({point:oe,position:(oe-$.min)*100/($.max-$.min),mark:$.marks[oe]})):[]),useSlide=($,z,oe)=>{const{form:ae,formItem:le}=useFormItem(),ue=shallowRef(),pe=ref(),_e=ref(),Ce={firstButton:pe,secondButton:_e},$e=computed(()=>$.disabled||(ae==null?void 0:ae.disabled)||!1),xe=computed(()=>Math.min(z.firstValue,z.secondValue)),Ie=computed(()=>Math.max(z.firstValue,z.secondValue)),Fe=computed(()=>$.range?`${100*(Ie.value-xe.value)/($.max-$.min)}%`:`${100*(z.firstValue-$.min)/($.max-$.min)}%`),ze=computed(()=>$.range?`${100*(xe.value-$.min)/($.max-$.min)}%`:"0%"),Ue=computed(()=>$.vertical?{height:$.height}:{}),qe=computed(()=>$.vertical?{height:Fe.value,bottom:ze.value}:{width:Fe.value,left:ze.value}),At=()=>{ue.value&&(z.sliderSize=ue.value[`client${$.vertical?"Height":"Width"}`])},Lt=Tn=>{const xn=$.min+Tn*($.max-$.min)/100;if(!$.range)return pe;let kn;return Math.abs(xe.value-xn)<Math.abs(Ie.value-xn)?kn=z.firstValue<z.secondValue?"firstButton":"secondButton":kn=z.firstValue>z.secondValue?"firstButton":"secondButton",Ce[kn]},hn=Tn=>{const xn=Lt(Tn);return xn.value.setPosition(Tn),xn},vn=Tn=>{z.firstValue=Tn,bn($.range?[xe.value,Ie.value]:Tn)},_n=Tn=>{z.secondValue=Tn,$.range&&bn([xe.value,Ie.value])},bn=Tn=>{oe(UPDATE_MODEL_EVENT,Tn),oe(INPUT_EVENT,Tn)},Sn=async()=>{await nextTick(),oe(CHANGE_EVENT,$.range?[xe.value,Ie.value]:$.modelValue)},Cn=Tn=>{var xn,kn,Nn,Bn,Dn,In;if($e.value||z.dragging)return;At();let Ln=0;if($.vertical){const Mn=(Nn=(kn=(xn=Tn.touches)==null?void 0:xn.item(0))==null?void 0:kn.clientY)!=null?Nn:Tn.clientY;Ln=(ue.value.getBoundingClientRect().bottom-Mn)/z.sliderSize*100}else{const Mn=(In=(Dn=(Bn=Tn.touches)==null?void 0:Bn.item(0))==null?void 0:Dn.clientX)!=null?In:Tn.clientX,Vn=ue.value.getBoundingClientRect().left;Ln=(Mn-Vn)/z.sliderSize*100}if(!(Ln<0||Ln>100))return hn(Ln)};return{elFormItem:le,slider:ue,firstButton:pe,secondButton:_e,sliderDisabled:$e,minValue:xe,maxValue:Ie,runwayStyle:Ue,barStyle:qe,resetSize:At,setPosition:hn,emitChange:Sn,onSliderWrapperPrevent:Tn=>{var xn,kn;((xn=Ce.firstButton.value)!=null&&xn.dragging||(kn=Ce.secondButton.value)!=null&&kn.dragging)&&Tn.preventDefault()},onSliderClick:Tn=>{Cn(Tn)&&Sn()},onSliderDown:async Tn=>{const xn=Cn(Tn);xn&&(await nextTick(),xn.value.onButtonDown(Tn))},setFirstValue:vn,setSecondValue:_n}},{left,down,right,up,home:home$2,end:end$1,pageUp,pageDown}=EVENT_CODE,useTooltip=($,z,oe)=>{const ae=ref(),le=ref(!1),ue=computed(()=>z.value instanceof Function),pe=computed(()=>ue.value&&z.value($.modelValue)||$.modelValue),_e=debounce(()=>{oe.value&&(le.value=!0)},50),Ce=debounce(()=>{oe.value&&(le.value=!1)},50);return{tooltip:ae,tooltipVisible:le,formatValue:pe,displayTooltip:_e,hideTooltip:Ce}},useSliderButton=($,z,oe)=>{const{disabled:ae,min:le,max:ue,step:pe,showTooltip:_e,precision:Ce,sliderSize:$e,formatTooltip:xe,emitChange:Ie,resetSize:Fe,updateDragging:ze}=inject(sliderContextKey),{tooltip:Ue,tooltipVisible:qe,formatValue:At,displayTooltip:Lt,hideTooltip:hn}=useTooltip($,xe,_e),vn=ref(),_n=computed(()=>`${($.modelValue-le.value)/(ue.value-le.value)*100}%`),bn=computed(()=>$.vertical?{bottom:_n.value}:{left:_n.value}),Sn=()=>{z.hovering=!0,Lt()},Cn=()=>{z.hovering=!1,z.dragging||hn()},En=Fn=>{ae.value||(Fn.preventDefault(),Ln(Fn),window.addEventListener("mousemove",Mn),window.addEventListener("touchmove",Mn),window.addEventListener("mouseup",Vn),window.addEventListener("touchend",Vn),window.addEventListener("contextmenu",Vn),vn.value.focus())},$n=Fn=>{ae.value||(z.newPosition=Number.parseFloat(_n.value)+Fn/(ue.value-le.value)*100,Yn(z.newPosition),Ie())},wn=()=>{$n(-pe.value)},Tn=()=>{$n(pe.value)},xn=()=>{$n(-pe.value*4)},kn=()=>{$n(pe.value*4)},Nn=()=>{ae.value||(Yn(0),Ie())},Bn=()=>{ae.value||(Yn(100),Ie())},Dn=Fn=>{let Xn=!0;[left,down].includes(Fn.key)?wn():[right,up].includes(Fn.key)?Tn():Fn.key===home$2?Nn():Fn.key===end$1?Bn():Fn.key===pageDown?xn():Fn.key===pageUp?kn():Xn=!1,Xn&&Fn.preventDefault()},In=Fn=>{let Xn,sr;return Fn.type.startsWith("touch")?(sr=Fn.touches[0].clientY,Xn=Fn.touches[0].clientX):(sr=Fn.clientY,Xn=Fn.clientX),{clientX:Xn,clientY:sr}},Ln=Fn=>{z.dragging=!0,z.isClick=!0;const{clientX:Xn,clientY:sr}=In(Fn);$.vertical?z.startY=sr:z.startX=Xn,z.startPosition=Number.parseFloat(_n.value),z.newPosition=z.startPosition},Mn=Fn=>{if(z.dragging){z.isClick=!1,Lt(),Fe();let Xn;const{clientX:sr,clientY:vr}=In(Fn);$.vertical?(z.currentY=vr,Xn=(z.startY-z.currentY)/$e.value*100):(z.currentX=sr,Xn=(z.currentX-z.startX)/$e.value*100),z.newPosition=z.startPosition+Xn,Yn(z.newPosition)}},Vn=()=>{z.dragging&&(setTimeout(()=>{z.dragging=!1,z.hovering||hn(),z.isClick||Yn(z.newPosition),Ie()},0),window.removeEventListener("mousemove",Mn),window.removeEventListener("touchmove",Mn),window.removeEventListener("mouseup",Vn),window.removeEventListener("touchend",Vn),window.removeEventListener("contextmenu",Vn))},Yn=async Fn=>{if(Fn===null||Number.isNaN(+Fn))return;Fn<0?Fn=0:Fn>100&&(Fn=100);const Xn=100/((ue.value-le.value)/pe.value);let vr=Math.round(Fn/Xn)*Xn*(ue.value-le.value)*.01+le.value;vr=Number.parseFloat(vr.toFixed(Ce.value)),vr!==$.modelValue&&oe(UPDATE_MODEL_EVENT,vr),!z.dragging&&$.modelValue!==z.oldValue&&(z.oldValue=$.modelValue),await nextTick(),z.dragging&&Lt(),Ue.value.updatePopper()};return watch(()=>z.dragging,Fn=>{ze(Fn)}),{disabled:ae,button:vn,tooltip:Ue,tooltipVisible:qe,showTooltip:_e,wrapperStyle:bn,formatValue:At,handleMouseEnter:Sn,handleMouseLeave:Cn,onButtonDown:En,onKeyDown:Dn,setPosition:Yn}},useStops=($,z,oe,ae)=>({stops:computed(()=>{if(!$.showStops||$.min>$.max)return[];if($.step===0)return[];const pe=($.max-$.min)/$.step,_e=100*$.step/($.max-$.min),Ce=Array.from({length:pe-1}).map(($e,xe)=>(xe+1)*_e);return $.range?Ce.filter($e=>$e<100*(oe.value-$.min)/($.max-$.min)||$e>100*(ae.value-$.min)/($.max-$.min)):Ce.filter($e=>$e>100*(z.firstValue-$.min)/($.max-$.min))}),getStopStyle:pe=>$.vertical?{bottom:`${pe}%`}:{left:`${pe}%`}}),useWatch=($,z,oe,ae,le,ue)=>{const pe=$e=>{le(UPDATE_MODEL_EVENT,$e),le(INPUT_EVENT,$e)},_e=()=>$.range?![oe.value,ae.value].every(($e,xe)=>$e===z.oldValue[xe]):$.modelValue!==z.oldValue,Ce=()=>{var $e,xe;$.min>$.max&&throwError$1("Slider","min should not be greater than max.");const Ie=$.modelValue;$.range&&Array.isArray(Ie)?Ie[1]<$.min?pe([$.min,$.min]):Ie[0]>$.max?pe([$.max,$.max]):Ie[0]<$.min?pe([$.min,Ie[1]]):Ie[1]>$.max?pe([Ie[0],$.max]):(z.firstValue=Ie[0],z.secondValue=Ie[1],_e()&&($.validateEvent&&(($e=ue==null?void 0:ue.validate)==null||$e.call(ue,"change").catch(Fe=>void 0)),z.oldValue=Ie.slice())):!$.range&&typeof Ie=="number"&&!Number.isNaN(Ie)&&(Ie<$.min?pe($.min):Ie>$.max?pe($.max):(z.firstValue=Ie,_e()&&($.validateEvent&&((xe=ue==null?void 0:ue.validate)==null||xe.call(ue,"change").catch(Fe=>void 0)),z.oldValue=Ie)))};Ce(),watch(()=>z.dragging,$e=>{$e||Ce()}),watch(()=>$.modelValue,($e,xe)=>{z.dragging||Array.isArray($e)&&Array.isArray(xe)&&$e.every((Ie,Fe)=>Ie===xe[Fe])&&z.firstValue===$e[0]&&z.secondValue===$e[1]||Ce()},{deep:!0}),watch(()=>[$.min,$.max],()=>{Ce()})},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_hoisted_1$h=["tabindex"],__default__$r=defineComponent({name:"ElSliderButton"}),_sfc_main$A=defineComponent({...__default__$r,props:sliderButtonProps,emits:sliderButtonEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useNamespace("slider"),ue=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:ae.modelValue}),{disabled:pe,button:_e,tooltip:Ce,showTooltip:$e,tooltipVisible:xe,wrapperStyle:Ie,formatValue:Fe,handleMouseEnter:ze,handleMouseLeave:Ue,onButtonDown:qe,onKeyDown:At,setPosition:Lt}=useSliderButton(ae,ue,oe),{hovering:hn,dragging:vn}=toRefs(ue);return z({onButtonDown:qe,onKeyDown:At,setPosition:Lt,hovering:hn,dragging:vn}),(_n,bn)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:_e,class:normalizeClass([unref(le).e("button-wrapper"),{hover:unref(hn),dragging:unref(vn)}]),style:normalizeStyle$1(unref(Ie)),tabindex:unref(pe)?-1:0,onMouseenter:bn[0]||(bn[0]=(...Sn)=>unref(ze)&&unref(ze)(...Sn)),onMouseleave:bn[1]||(bn[1]=(...Sn)=>unref(Ue)&&unref(Ue)(...Sn)),onMousedown:bn[2]||(bn[2]=(...Sn)=>unref(qe)&&unref(qe)(...Sn)),onTouchstart:bn[3]||(bn[3]=(...Sn)=>unref(qe)&&unref(qe)(...Sn)),onFocus:bn[4]||(bn[4]=(...Sn)=>unref(ze)&&unref(ze)(...Sn)),onBlur:bn[5]||(bn[5]=(...Sn)=>unref(Ue)&&unref(Ue)(...Sn)),onKeydown:bn[6]||(bn[6]=(...Sn)=>unref(At)&&unref(At)(...Sn))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:Ce,visible:unref(xe),placement:_n.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":_n.tooltipClass,disabled:!unref($e),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(unref(Fe)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref(le).e("button"),{hover:unref(hn),dragging:unref(vn)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,_hoisted_1$h))}});var SliderButton=_export_sfc$1(_sfc_main$A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const sliderMarkerProps=buildProps({mark:{type:definePropType([String,Object]),default:void 0}});var SliderMarker=defineComponent({name:"ElSliderMarker",props:sliderMarkerProps,setup($){const z=useNamespace("slider"),oe=computed(()=>isString$7($.mark)?$.mark:$.mark.label),ae=computed(()=>isString$7($.mark)?void 0:$.mark.style);return()=>h$3("div",{class:z.e("marks-text"),style:ae.value},oe.value)}});const _hoisted_1$g=["id","role","aria-label","aria-labelledby"],_hoisted_2$c={key:1},__default__$q=defineComponent({name:"ElSlider"}),_sfc_main$z=defineComponent({...__default__$q,props:sliderProps,emits:sliderEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useNamespace("slider"),{t:ue}=useLocale(),pe=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:_e,slider:Ce,firstButton:$e,secondButton:xe,sliderDisabled:Ie,minValue:Fe,maxValue:ze,runwayStyle:Ue,barStyle:qe,resetSize:At,emitChange:Lt,onSliderWrapperPrevent:hn,onSliderClick:vn,onSliderDown:_n,setFirstValue:bn,setSecondValue:Sn}=useSlide(ae,pe,oe),{stops:Cn,getStopStyle:En}=useStops(ae,pe,Fe,ze),{inputId:$n,isLabeledByFormItem:wn}=useFormItemInputId(ae,{formItemContext:_e}),Tn=useFormSize(),xn=computed(()=>ae.inputSize||Tn.value),kn=computed(()=>ae.label||ue("el.slider.defaultLabel",{min:ae.min,max:ae.max})),Nn=computed(()=>ae.range?ae.rangeStartLabel||ue("el.slider.defaultRangeStartLabel"):kn.value),Bn=computed(()=>ae.formatValueText?ae.formatValueText(Fn.value):`${Fn.value}`),Dn=computed(()=>ae.rangeEndLabel||ue("el.slider.defaultRangeEndLabel")),In=computed(()=>ae.formatValueText?ae.formatValueText(Xn.value):`${Xn.value}`),Ln=computed(()=>[le.b(),le.m(Tn.value),le.is("vertical",ae.vertical),{[le.m("with-input")]:ae.showInput}]),Mn=useMarks(ae);useWatch(ae,pe,Fe,ze,oe,_e);const Vn=computed(()=>{const ar=[ae.min,ae.max,ae.step].map(qn=>{const Gn=`${qn}`.split(".")[1];return Gn?Gn.length:0});return Math.max.apply(null,ar)}),{sliderWrapper:Yn}=useLifecycle(ae,pe,At),{firstValue:Fn,secondValue:Xn,sliderSize:sr}=toRefs(pe),vr=ar=>{pe.dragging=ar};return provide(sliderContextKey,{...toRefs(ae),sliderSize:sr,disabled:Ie,precision:Vn,emitChange:Lt,resetSize:At,updateDragging:vr}),z({onSliderClick:vn}),(ar,qn)=>{var Gn,Wn;return openBlock(),createElementBlock("div",{id:ar.range?unref($n):void 0,ref_key:"sliderWrapper",ref:Yn,class:normalizeClass(unref(Ln)),role:ar.range?"group":void 0,"aria-label":ar.range&&!unref(wn)?unref(kn):void 0,"aria-labelledby":ar.range&&unref(wn)?(Gn=unref(_e))==null?void 0:Gn.labelId:void 0,onTouchstart:qn[2]||(qn[2]=(...Qn)=>unref(hn)&&unref(hn)(...Qn)),onTouchmove:qn[3]||(qn[3]=(...Qn)=>unref(hn)&&unref(hn)(...Qn))},[createBaseVNode("div",{ref_key:"slider",ref:Ce,class:normalizeClass([unref(le).e("runway"),{"show-input":ar.showInput&&!ar.range},unref(le).is("disabled",unref(Ie))]),style:normalizeStyle$1(unref(Ue)),onMousedown:qn[0]||(qn[0]=(...Qn)=>unref(_n)&&unref(_n)(...Qn)),onTouchstart:qn[1]||(qn[1]=(...Qn)=>unref(_n)&&unref(_n)(...Qn))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("bar")),style:normalizeStyle$1(unref(qe))},null,6),createVNode(SliderButton,{id:ar.range?void 0:unref($n),ref_key:"firstButton",ref:$e,"model-value":unref(Fn),vertical:ar.vertical,"tooltip-class":ar.tooltipClass,placement:ar.placement,role:"slider","aria-label":ar.range||!unref(wn)?unref(Nn):void 0,"aria-labelledby":!ar.range&&unref(wn)?(Wn=unref(_e))==null?void 0:Wn.labelId:void 0,"aria-valuemin":ar.min,"aria-valuemax":ar.range?unref(Xn):ar.max,"aria-valuenow":unref(Fn),"aria-valuetext":unref(Bn),"aria-orientation":ar.vertical?"vertical":"horizontal","aria-disabled":unref(Ie),"onUpdate:modelValue":unref(bn)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),ar.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:xe,"model-value":unref(Xn),vertical:ar.vertical,"tooltip-class":ar.tooltipClass,placement:ar.placement,role:"slider","aria-label":unref(Dn),"aria-valuemin":unref(Fn),"aria-valuemax":ar.max,"aria-valuenow":unref(Xn),"aria-valuetext":unref(In),"aria-orientation":ar.vertical?"vertical":"horizontal","aria-disabled":unref(Ie),"onUpdate:modelValue":unref(Sn)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):createCommentVNode("v-if",!0),ar.showStops?(openBlock(),createElementBlock("div",_hoisted_2$c,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Cn),(Qn,cr)=>(openBlock(),createElementBlock("div",{key:cr,class:normalizeClass(unref(le).e("stop")),style:normalizeStyle$1(unref(En)(Qn))},null,6))),128))])):createCommentVNode("v-if",!0),unref(Mn).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Mn),(Qn,cr)=>(openBlock(),createElementBlock("div",{key:cr,style:normalizeStyle$1(unref(En)(Qn.position)),class:normalizeClass([unref(le).e("stop"),unref(le).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref(le).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Mn),(Qn,cr)=>(openBlock(),createBlock(unref(SliderMarker),{key:cr,mark:Qn.mark,style:normalizeStyle$1(unref(En)(Qn.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),ar.showInput&&!ar.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Fn),class:normalizeClass(unref(le).e("input")),step:ar.step,disabled:unref(Ie),controls:ar.showInputControls,min:ar.min,max:ar.max,debounce:ar.debounce,size:unref(xn),"onUpdate:modelValue":unref(bn),onChange:unref(Lt)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],42,_hoisted_1$g)}}});var Slider=_export_sfc$1(_sfc_main$z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const ElSlider=withInstall(Slider),spaceItemProps=buildProps({prefixCls:{type:String}}),SpaceItem=defineComponent({name:"ElSpaceItem",props:spaceItemProps,setup($,{slots:z}){const oe=useNamespace("space"),ae=computed(()=>`${$.prefixCls||oe.b()}__item`);return()=>h$3("div",{class:ae.value},renderSlot(z,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace($){const z=useNamespace("space"),oe=computed(()=>[z.b(),z.m($.direction),$.class]),ae=ref(0),le=ref(0),ue=computed(()=>{const _e=$.wrap||$.fill?{flexWrap:"wrap",marginBottom:`-${le.value}px`}:{},Ce={alignItems:$.alignment};return[_e,Ce,$.style]}),pe=computed(()=>{const _e={paddingBottom:`${le.value}px`,marginRight:`${ae.value}px`},Ce=$.fill?{flexGrow:1,minWidth:`${$.fillRatio}%`}:{};return[_e,Ce]});return watchEffect(()=>{const{size:_e="small",wrap:Ce,direction:$e,fill:xe}=$;if(isArray$c(_e)){const[Ie=0,Fe=0]=_e;ae.value=Ie,le.value=Fe}else{let Ie;isNumber$5(_e)?Ie=_e:Ie=SIZE_MAP[_e||"small"]||SIZE_MAP.small,(Ce||xe)&&$e==="horizontal"?ae.value=le.value=Ie:$e==="horizontal"?(ae.value=Ie,le.value=0):(le.value=Ie,ae.value=0)}}),{classes:oe,containerStyle:ue,itemStyle:pe}}const spaceProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:definePropType([String,Object,Array]),default:""},style:{type:definePropType([String,Array,Object]),default:""},alignment:{type:definePropType(String),default:"center"},prefixCls:{type:String},spacer:{type:definePropType([Object,String,Number,Array]),default:null,validator:$=>isVNode$1($)||isNumber$5($)||isString$7($)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:$=>isNumber$5($)||isArray$c($)&&$.length===2&&$.every(isNumber$5)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup($,{slots:z}){const{classes:oe,containerStyle:ae,itemStyle:le}=useSpace($);function ue(pe,_e="",Ce=[]){const{prefixCls:$e}=$;return pe.forEach((xe,Ie)=>{isFragment(xe)?isArray$c(xe.children)&&xe.children.forEach((Fe,ze)=>{isFragment(Fe)&&isArray$c(Fe.children)?ue(Fe.children,`${_e+ze}-`,Ce):Ce.push(createVNode(SpaceItem,{style:le.value,prefixCls:$e,key:`nested-${_e+ze}`},{default:()=>[Fe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(xe)&&Ce.push(createVNode(SpaceItem,{style:le.value,prefixCls:$e,key:`LoopKey${_e+Ie}`},{default:()=>[xe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),Ce}return()=>{var pe;const{spacer:_e,direction:Ce}=$,$e=renderSlot(z,"default",{key:0},()=>[]);if(((pe=$e.children)!=null?pe:[]).length===0)return null;if(isArray$c($e.children)){let xe=ue($e.children);if(_e){const Ie=xe.length-1;xe=xe.reduce((Fe,ze,Ue)=>{const qe=[...Fe,ze];return Ue!==Ie&&qe.push(createVNode("span",{style:[le.value,Ce==="vertical"?"width: 100%":null],key:Ue},[isVNode$1(_e)?_e:createTextVNode(_e,PatchFlags.TEXT)],PatchFlags.STYLE)),qe},[])}return createVNode("div",{class:oe.value,style:ae.value},xe,PatchFlags.STYLE|PatchFlags.CLASS)}return $e.children}}}),ElSpace=withInstall(Space),statisticProps=buildProps({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:definePropType([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:definePropType([String,Object,Array])}}),__default__$p=defineComponent({name:"ElStatistic"}),_sfc_main$y=defineComponent({...__default__$p,props:statisticProps,setup($,{expose:z}){const oe=$,ae=useNamespace("statistic"),le=computed(()=>{const{value:ue,formatter:pe,precision:_e,decimalSeparator:Ce,groupSeparator:$e}=oe;if(isFunction$5(pe))return pe(ue);if(!isNumber$5(ue))return ue;let[xe,Ie=""]=String(ue).split(".");return Ie=Ie.padEnd(_e,"0").slice(0,_e>0?_e:0),xe=xe.replace(/\B(?=(\d{3})+(?!\d))/g,$e),[xe,Ie].join(Ie?Ce:"")});return z({displayValue:le}),(ue,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[ue.$slots.title||ue.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("head"))},[renderSlot(ue.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(ue.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ae).e("content"))},[ue.$slots.prefix||ue.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("prefix"))},[renderSlot(ue.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString$1(ue.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(ae).e("number")),style:normalizeStyle$1(ue.valueStyle)},toDisplayString$1(unref(le)),7),ue.$slots.suffix||ue.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ae).e("suffix"))},[renderSlot(ue.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString$1(ue.suffix),1)])],2)):createCommentVNode("v-if",!0)],2)],2))}});var Statistic=_export_sfc$1(_sfc_main$y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const ElStatistic=withInstall(Statistic),countdownProps=buildProps({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:definePropType([Number,Object]),default:0},valueStyle:{type:definePropType([String,Object,Array])}}),countdownEmits={finish:()=>!0,[CHANGE_EVENT]:$=>isNumber$5($)},timeUnits$1=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],getTime$1=$=>isNumber$5($)?new Date($).getTime():$.valueOf(),formatTime$2=($,z)=>{let oe=$;const ae=/\[([^\]]*)]/g;return timeUnits$1.reduce((ue,[pe,_e])=>{const Ce=new RegExp(`${pe}+(?![^\\[\\]]*\\])`,"g");if(Ce.test(ue)){const $e=Math.floor(oe/_e);return oe-=$e*_e,ue.replace(Ce,xe=>String($e).padStart(xe.length,"0"))}return ue},z).replace(ae,"$1")},__default__$o=defineComponent({name:"ElCountdown"}),_sfc_main$x=defineComponent({...__default__$o,props:countdownProps,emits:countdownEmits,setup($,{expose:z,emit:oe}){const ae=$;let le;const ue=ref(getTime$1(ae.value)-Date.now()),pe=computed(()=>formatTime$2(ue.value,ae.format)),_e=xe=>formatTime$2(xe,ae.format),Ce=()=>{le&&(cAF(le),le=void 0)},$e=()=>{const xe=getTime$1(ae.value),Ie=()=>{let Fe=xe-Date.now();oe("change",Fe),Fe<=0?(Fe=0,Ce(),oe("finish")):le=rAF(Ie),ue.value=Fe};le=rAF(Ie)};return watch(()=>[ae.value,ae.format],()=>{Ce(),$e()},{immediate:!0}),onBeforeUnmount(()=>{Ce()}),z({displayValue:pe}),(xe,Ie)=>(openBlock(),createBlock(unref(ElStatistic),{value:ue.value,title:xe.title,prefix:xe.prefix,suffix:xe.suffix,"value-style":xe.valueStyle,formatter:_e},createSlots({_:2},[renderList(xe.$slots,(Fe,ze)=>({name:ze,fn:withCtx(()=>[renderSlot(xe.$slots,ze)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Countdown=_export_sfc$1(_sfc_main$x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const ElCountdown=withInstall(Countdown),stepsProps=buildProps({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),stepsEmits={[CHANGE_EVENT]:($,z)=>[$,z].every(isNumber$5)},__default__$n=defineComponent({name:"ElSteps"}),_sfc_main$w=defineComponent({...__default__$n,props:stepsProps,emits:stepsEmits,setup($,{emit:z}){const oe=$,ae=useNamespace("steps"),le=ref([]);return watch(le,()=>{le.value.forEach((ue,pe)=>{ue.setIndex(pe)})}),provide("ElSteps",{props:oe,steps:le}),watch(()=>oe.active,(ue,pe)=>{z(CHANGE_EVENT,ue,pe)}),(ue,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(ue.simple?"simple":ue.direction)])},[renderSlot(ue.$slots,"default")],2))}});var Steps=_export_sfc$1(_sfc_main$w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const stepProps=buildProps({title:{type:String,default:""},icon:{type:iconPropType},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),__default__$m=defineComponent({name:"ElStep"}),_sfc_main$v=defineComponent({...__default__$m,props:stepProps,setup($){const z=$,oe=useNamespace("step"),ae=ref(-1),le=ref({}),ue=ref(""),pe=inject("ElSteps"),_e=getCurrentInstance();onMounted(()=>{watch([()=>pe.props.active,()=>pe.props.processStatus,()=>pe.props.finishStatus],([Sn])=>{_n(Sn)},{immediate:!0})}),onBeforeUnmount(()=>{pe.steps.value=pe.steps.value.filter(Sn=>Sn.uid!==(_e==null?void 0:_e.uid))});const Ce=computed(()=>z.status||ue.value),$e=computed(()=>{const Sn=pe.steps.value[ae.value-1];return Sn?Sn.currentStatus:"wait"}),xe=computed(()=>pe.props.alignCenter),Ie=computed(()=>pe.props.direction==="vertical"),Fe=computed(()=>pe.props.simple),ze=computed(()=>pe.steps.value.length),Ue=computed(()=>{var Sn;return((Sn=pe.steps.value[ze.value-1])==null?void 0:Sn.uid)===(_e==null?void 0:_e.uid)}),qe=computed(()=>Fe.value?"":pe.props.space),At=computed(()=>[oe.b(),oe.is(Fe.value?"simple":pe.props.direction),oe.is("flex",Ue.value&&!qe.value&&!xe.value),oe.is("center",xe.value&&!Ie.value&&!Fe.value)]),Lt=computed(()=>{const Sn={flexBasis:isNumber$5(qe.value)?`${qe.value}px`:qe.value?qe.value:`${100/(ze.value-(xe.value?0:1))}%`};return Ie.value||Ue.value&&(Sn.maxWidth=`${100/ze.value}%`),Sn}),hn=Sn=>{ae.value=Sn},vn=Sn=>{const Cn=Sn==="wait",En={transitionDelay:`${Cn?"-":""}${150*ae.value}ms`},$n=Sn===pe.props.processStatus||Cn?0:100;En.borderWidth=$n&&!Fe.value?"1px":0,En[pe.props.direction==="vertical"?"height":"width"]=`${$n}%`,le.value=En},_n=Sn=>{Sn>ae.value?ue.value=pe.props.finishStatus:Sn===ae.value&&$e.value!=="error"?ue.value=pe.props.processStatus:ue.value="wait";const Cn=pe.steps.value[ae.value-1];Cn&&Cn.calcProgress(ue.value)},bn=reactive({uid:computed(()=>_e==null?void 0:_e.uid),currentStatus:Ce,setIndex:hn,calcProgress:vn});return pe.steps.value=[...pe.steps.value,bn],(Sn,Cn)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(unref(Lt)),class:normalizeClass(unref(At))},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(oe).e("head"),unref(oe).is(unref(Ce))])},[unref(Fe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(oe).e("line-inner")),style:normalizeStyle$1(le.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(oe).e("icon"),unref(oe).is(Sn.icon||Sn.$slots.icon?"icon":"text")])},[renderSlot(Sn.$slots,"icon",{},()=>[Sn.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Sn.icon)))]),_:1},8,["class"])):unref(Ce)==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(oe).e("icon-inner"),unref(oe).is("status")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):unref(Ce)==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(oe).e("icon-inner"),unref(oe).is("status")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):unref(Fe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(oe).e("icon-inner"))},toDisplayString$1(ae.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(oe).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(oe).e("title"),unref(oe).is(unref(Ce))])},[renderSlot(Sn.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Sn.title),1)])],2),unref(Fe)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(oe).e("description"),unref(oe).is(unref(Ce))])},[renderSlot(Sn.$slots,"description",{},()=>[createTextVNode(toDisplayString$1(Sn.description),1)])],2))],2)],6))}});var Step=_export_sfc$1(_sfc_main$v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:iconPropType},inactiveIcon:{type:iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:definePropType(Function)},size:{type:String,validator:isValidComponentSize},tabindex:{type:[String,Number]}}),switchEmits={[UPDATE_MODEL_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[CHANGE_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[INPUT_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($)},_hoisted_1$f=["onClick"],_hoisted_2$b=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],_hoisted_3$6=["aria-hidden"],_hoisted_4$3=["aria-hidden"],_hoisted_5$1=["aria-hidden"],COMPONENT_NAME$8="ElSwitch",__default__$l=defineComponent({name:COMPONENT_NAME$8}),_sfc_main$u=defineComponent({...__default__$l,props:switchProps,emits:switchEmits,setup($,{expose:z,emit:oe}){const ae=$,le=getCurrentInstance(),{formItem:ue}=useFormItem(),pe=useFormSize(),_e=useNamespace("switch");useDeprecated({from:'"value"',replacement:'"model-value" or "v-model"',scope:COMPONENT_NAME$8,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},computed(()=>{var bn;return!!((bn=le.vnode.props)!=null&&bn.value)}));const{inputId:Ce}=useFormItemInputId(ae,{formItemContext:ue}),$e=useFormDisabled(computed(()=>ae.loading)),xe=ref(ae.modelValue!==!1),Ie=ref(),Fe=ref(),ze=computed(()=>[_e.b(),_e.m(pe.value),_e.is("disabled",$e.value),_e.is("checked",At.value)]),Ue=computed(()=>({width:addUnit(ae.width)}));watch(()=>ae.modelValue,()=>{xe.value=!0}),watch(()=>ae.value,()=>{xe.value=!1});const qe=computed(()=>xe.value?ae.modelValue:ae.value),At=computed(()=>qe.value===ae.activeValue);[ae.activeValue,ae.inactiveValue].includes(qe.value)||(oe(UPDATE_MODEL_EVENT,ae.inactiveValue),oe(CHANGE_EVENT,ae.inactiveValue),oe(INPUT_EVENT,ae.inactiveValue)),watch(At,bn=>{var Sn;Ie.value.checked=bn,ae.validateEvent&&((Sn=ue==null?void 0:ue.validate)==null||Sn.call(ue,"change").catch(Cn=>void 0))});const Lt=()=>{const bn=At.value?ae.inactiveValue:ae.activeValue;oe(UPDATE_MODEL_EVENT,bn),oe(CHANGE_EVENT,bn),oe(INPUT_EVENT,bn),nextTick(()=>{Ie.value.checked=At.value})},hn=()=>{if($e.value)return;const{beforeChange:bn}=ae;if(!bn){Lt();return}const Sn=bn();[isPromise(Sn),isBoolean$3(Sn)].includes(!0)||throwError$1(COMPONENT_NAME$8,"beforeChange must return type `Promise<boolean>` or `boolean`"),isPromise(Sn)?Sn.then(En=>{En&&Lt()}).catch(En=>{}):Sn&&Lt()},vn=computed(()=>_e.cssVarBlock({...ae.activeColor?{"on-color":ae.activeColor}:null,...ae.inactiveColor?{"off-color":ae.inactiveColor}:null,...ae.borderColor?{"border-color":ae.borderColor}:null})),_n=()=>{var bn,Sn;(Sn=(bn=Ie.value)==null?void 0:bn.focus)==null||Sn.call(bn)};return onMounted(()=>{Ie.value.checked=At.value}),z({focus:_n,checked:At}),(bn,Sn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ze)),style:normalizeStyle$1(unref(vn)),onClick:withModifiers(hn,["prevent"])},[createBaseVNode("input",{id:unref(Ce),ref_key:"input",ref:Ie,class:normalizeClass(unref(_e).e("input")),type:"checkbox",role:"switch","aria-checked":unref(At),"aria-disabled":unref($e),name:bn.name,"true-value":bn.activeValue,"false-value":bn.inactiveValue,disabled:unref($e),tabindex:bn.tabindex,onChange:Lt,onKeydown:withKeys(hn,["enter"])},null,42,_hoisted_2$b),!bn.inlinePrompt&&(bn.inactiveIcon||bn.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(_e).e("label"),unref(_e).em("label","left"),unref(_e).is("active",!unref(At))])},[bn.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(bn.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!bn.inactiveIcon&&bn.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":unref(At)},toDisplayString$1(bn.inactiveText),9,_hoisted_3$6)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref_key:"core",ref:Fe,class:normalizeClass(unref(_e).e("core")),style:normalizeStyle$1(unref(Ue))},[bn.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_e).e("inner"))},[bn.activeIcon||bn.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(_e).is("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(At)?bn.activeIcon:bn.inactiveIcon)))]),_:1},8,["class"])):bn.activeText||bn.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(_e).is("text")),"aria-hidden":!unref(At)},toDisplayString$1(unref(At)?bn.activeText:bn.inactiveText),11,_hoisted_4$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(_e).e("action"))},[bn.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(_e).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],6),!bn.inlinePrompt&&(bn.activeIcon||bn.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([unref(_e).e("label"),unref(_e).em("label","right"),unref(_e).is("active",unref(At))])},[bn.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(bn.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!bn.activeIcon&&bn.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!unref(At)},toDisplayString$1(bn.activeText),9,_hoisted_5$1)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$f))}});var Switch=_export_sfc$1(_sfc_main$u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch);/*!
|
||
* escape-html
|
||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
* Copyright(c) 2015 Andreas Lubbe
|
||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
* MIT Licensed
|
||
*/var matchHtmlRegExp=/["'&<>]/,escapeHtml_1=escapeHtml$1;function escapeHtml$1($){var z=""+$,oe=matchHtmlRegExp.exec(z);if(!oe)return z;var ae,le="",ue=0,pe=0;for(ue=oe.index;ue<z.length;ue++){switch(z.charCodeAt(ue)){case 34:ae=""";break;case 38:ae="&";break;case 39:ae="'";break;case 60:ae="<";break;case 62:ae=">";break;default:continue}pe!==ue&&(le+=z.substring(pe,ue)),pe=ue+1,le+=ae}return pe!==ue?le+z.substring(pe,ue):le}const escapeHtml$2=getDefaultExportFromCjs(escapeHtml_1),getCell=function($){var z;return(z=$.target)==null?void 0:z.closest("td")},orderBy=function($,z,oe,ae,le){if(!z&&!ae&&(!le||Array.isArray(le)&&!le.length))return $;typeof oe=="string"?oe=oe==="descending"?-1:1:oe=oe&&oe<0?-1:1;const ue=ae?null:function(_e,Ce){return le?(Array.isArray(le)||(le=[le]),le.map($e=>typeof $e=="string"?get$1(_e,$e):$e(_e,Ce,$))):(z!=="$key"&&isObject$8(_e)&&"$value"in _e&&(_e=_e.$value),[isObject$8(_e)?get$1(_e,z):_e])},pe=function(_e,Ce){if(ae)return ae(_e.value,Ce.value);for(let $e=0,xe=_e.key.length;$e<xe;$e++){if(_e.key[$e]<Ce.key[$e])return-1;if(_e.key[$e]>Ce.key[$e])return 1}return 0};return $.map((_e,Ce)=>({value:_e,index:Ce,key:ue?ue(_e,Ce):null})).sort((_e,Ce)=>{let $e=pe(_e,Ce);return $e||($e=_e.index-Ce.index),$e*+oe}).map(_e=>_e.value)},getColumnById=function($,z){let oe=null;return $.columns.forEach(ae=>{ae.id===z&&(oe=ae)}),oe},getColumnByKey=function($,z){let oe=null;for(let ae=0;ae<$.columns.length;ae++){const le=$.columns[ae];if(le.columnKey===z){oe=le;break}}return oe||throwError$1("ElTable",`No column matching with column-key: ${z}`),oe},getColumnByCell=function($,z,oe){const ae=(z.className||"").match(new RegExp(`${oe}-table_[^\\s]+`,"gm"));return ae?getColumnById($,ae[0]):null},getRowIdentity=($,z)=>{if(!$)throw new Error("Row is required when get row identity");if(typeof z=="string"){if(!z.includes("."))return`${$[z]}`;const oe=z.split(".");let ae=$;for(const le of oe)ae=ae[le];return`${ae}`}else if(typeof z=="function")return z.call(null,$)},getKeysMap=function($,z){const oe={};return($||[]).forEach((ae,le)=>{oe[getRowIdentity(ae,z)]={row:ae,index:le}}),oe};function mergeOptions$1($,z){const oe={};let ae;for(ae in $)oe[ae]=$[ae];for(ae in z)if(hasOwn$4(z,ae)){const le=z[ae];typeof le<"u"&&(oe[ae]=le)}return oe}function parseWidth($){return $===""||$!==void 0&&($=Number.parseInt($,10),Number.isNaN($)&&($="")),$}function parseMinWidth($){return $===""||$!==void 0&&($=parseWidth($),Number.isNaN($)&&($=80)),$}function parseHeight($){return typeof $=="number"?$:typeof $=="string"?/^\d+(?:px)?$/.test($)?Number.parseInt($,10):$:null}function compose(...$){return $.length===0?z=>z:$.length===1?$[0]:$.reduce((z,oe)=>(...ae)=>z(oe(...ae)))}function toggleRowStatus($,z,oe){let ae=!1;const le=$.indexOf(z),ue=le!==-1,pe=_e=>{_e==="add"?$.push(z):$.splice(le,1),ae=!0,isArray$c(z.children)&&z.children.forEach(Ce=>{toggleRowStatus($,Ce,oe??!ue)})};return isBoolean$3(oe)?oe&&!ue?pe("add"):!oe&&ue&&pe("remove"):pe(ue?"remove":"add"),ae}function walkTreeNode($,z,oe="children",ae="hasChildren"){const le=pe=>!(Array.isArray(pe)&&pe.length);function ue(pe,_e,Ce){z(pe,_e,Ce),_e.forEach($e=>{if($e[ae]){z($e,null,Ce+1);return}const xe=$e[oe];le(xe)||ue($e,xe,Ce+1)})}$.forEach(pe=>{if(pe[ae]){z(pe,null,0);return}const _e=pe[oe];le(_e)||ue(pe,_e,0)})}let removePopper;function createTablePopper($,z,oe,ae,le){le=merge$4({enterable:!0,showArrow:!0},le);const ue=$==null?void 0:$.dataset.prefix,pe=$==null?void 0:$.querySelector(`.${ue}-scrollbar__wrap`);function _e(){const At=le.effect==="light",Lt=document.createElement("div");return Lt.className=[`${ue}-popper`,At?"is-light":"is-dark",le.popperClass||""].join(" "),oe=escapeHtml$2(oe),Lt.innerHTML=oe,Lt.style.zIndex=String(ae()),$==null||$.appendChild(Lt),Lt}function Ce(){const At=document.createElement("div");return At.className=`${ue}-popper__arrow`,At}function $e(){xe&&xe.update()}removePopper==null||removePopper(),removePopper=()=>{try{xe&&xe.destroy(),ze&&($==null||$.removeChild(ze)),z.removeEventListener("mouseenter",Ie),z.removeEventListener("mouseleave",Fe),pe==null||pe.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let xe=null,Ie=$e,Fe=removePopper;le.enterable&&({onOpen:Ie,onClose:Fe}=useDelayedToggle({showAfter:le.showAfter,hideAfter:le.hideAfter,open:$e,close:removePopper}));const ze=_e();ze.onmouseenter=Ie,ze.onmouseleave=Fe;const Ue=[];if(le.offset&&Ue.push({name:"offset",options:{offset:[0,le.offset]}}),le.showArrow){const At=ze.appendChild(Ce());Ue.push({name:"arrow",options:{element:At,padding:10}})}const qe=le.popperOptions||{};return xe=yn(z,ze,{placement:le.placement||"top",strategy:"fixed",...qe,modifiers:qe.modifiers?Ue.concat(qe.modifiers):Ue}),z.addEventListener("mouseenter",Ie),z.addEventListener("mouseleave",Fe),pe==null||pe.addEventListener("scroll",removePopper),xe}function getCurrentColumns($){return $.children?flatMap($.children,getCurrentColumns):[$]}function getColSpan($,z){return $+z.colSpan}const isFixedColumn=($,z,oe,ae)=>{let le=0,ue=$;const pe=oe.states.columns.value;if(ae){const Ce=getCurrentColumns(ae[$]);le=pe.slice(0,pe.indexOf(Ce[0])).reduce(getColSpan,0),ue=le+Ce.reduce(getColSpan,0)-1}else le=$;let _e;switch(z){case"left":ue<oe.states.fixedLeafColumnsLength.value&&(_e="left");break;case"right":le>=pe.length-oe.states.rightFixedLeafColumnsLength.value&&(_e="right");break;default:ue<oe.states.fixedLeafColumnsLength.value?_e="left":le>=pe.length-oe.states.rightFixedLeafColumnsLength.value&&(_e="right")}return _e?{direction:_e,start:le,after:ue}:{}},getFixedColumnsClass=($,z,oe,ae,le,ue=0)=>{const pe=[],{direction:_e,start:Ce,after:$e}=isFixedColumn(z,oe,ae,le);if(_e){const xe=_e==="left";pe.push(`${$}-fixed-column--${_e}`),xe&&$e+ue===ae.states.fixedLeafColumnsLength.value-1?pe.push("is-last-column"):!xe&&Ce-ue===ae.states.columns.value.length-ae.states.rightFixedLeafColumnsLength.value&&pe.push("is-first-column")}return pe};function getOffset($,z){return $+(z.realWidth===null||Number.isNaN(z.realWidth)?Number(z.width):z.realWidth)}const getFixedColumnOffset=($,z,oe,ae)=>{const{direction:le,start:ue=0,after:pe=0}=isFixedColumn($,z,oe,ae);if(!le)return;const _e={},Ce=le==="left",$e=oe.states.columns.value;return Ce?_e.left=$e.slice(0,ue).reduce(getOffset,0):_e.right=$e.slice(pe+1).reverse().reduce(getOffset,0),_e},ensurePosition=($,z)=>{$&&(Number.isNaN($[z])||($[z]=`${$[z]}px`))};function useExpand($){const z=getCurrentInstance(),oe=ref(!1),ae=ref([]);return{updateExpandRows:()=>{const Ce=$.data.value||[],$e=$.rowKey.value;if(oe.value)ae.value=Ce.slice();else if($e){const xe=getKeysMap(ae.value,$e);ae.value=Ce.reduce((Ie,Fe)=>{const ze=getRowIdentity(Fe,$e);return xe[ze]&&Ie.push(Fe),Ie},[])}else ae.value=[]},toggleRowExpansion:(Ce,$e)=>{toggleRowStatus(ae.value,Ce,$e)&&z.emit("expand-change",Ce,ae.value.slice())},setExpandRowKeys:Ce=>{z.store.assertRowKey();const $e=$.data.value||[],xe=$.rowKey.value,Ie=getKeysMap($e,xe);ae.value=Ce.reduce((Fe,ze)=>{const Ue=Ie[ze];return Ue&&Fe.push(Ue.row),Fe},[])},isRowExpanded:Ce=>{const $e=$.rowKey.value;return $e?!!getKeysMap(ae.value,$e)[getRowIdentity(Ce,$e)]:ae.value.includes(Ce)},states:{expandRows:ae,defaultExpandAll:oe}}}function useCurrent($){const z=getCurrentInstance(),oe=ref(null),ae=ref(null),le=$e=>{z.store.assertRowKey(),oe.value=$e,pe($e)},ue=()=>{oe.value=null},pe=$e=>{const{data:xe,rowKey:Ie}=$;let Fe=null;Ie.value&&(Fe=(unref(xe)||[]).find(ze=>getRowIdentity(ze,Ie.value)===$e)),ae.value=Fe,z.emit("current-change",ae.value,null)};return{setCurrentRowKey:le,restoreCurrentRowKey:ue,setCurrentRowByKey:pe,updateCurrentRow:$e=>{const xe=ae.value;if($e&&$e!==xe){ae.value=$e,z.emit("current-change",ae.value,xe);return}!$e&&xe&&(ae.value=null,z.emit("current-change",null,xe))},updateCurrentRowData:()=>{const $e=$.rowKey.value,xe=$.data.value||[],Ie=ae.value;if(!xe.includes(Ie)&&Ie){if($e){const Fe=getRowIdentity(Ie,$e);pe(Fe)}else ae.value=null;ae.value===null&&z.emit("current-change",null,Ie)}else oe.value&&(pe(oe.value),ue())},states:{_currentRowKey:oe,currentRow:ae}}}function useTree$2($){const z=ref([]),oe=ref({}),ae=ref(16),le=ref(!1),ue=ref({}),pe=ref("hasChildren"),_e=ref("children"),Ce=getCurrentInstance(),$e=computed(()=>{if(!$.rowKey.value)return{};const Lt=$.data.value||[];return Ie(Lt)}),xe=computed(()=>{const Lt=$.rowKey.value,hn=Object.keys(ue.value),vn={};return hn.length&&hn.forEach(_n=>{if(ue.value[_n].length){const bn={children:[]};ue.value[_n].forEach(Sn=>{const Cn=getRowIdentity(Sn,Lt);bn.children.push(Cn),Sn[pe.value]&&!vn[Cn]&&(vn[Cn]={children:[]})}),vn[_n]=bn}}),vn}),Ie=Lt=>{const hn=$.rowKey.value,vn={};return walkTreeNode(Lt,(_n,bn,Sn)=>{const Cn=getRowIdentity(_n,hn);Array.isArray(bn)?vn[Cn]={children:bn.map(En=>getRowIdentity(En,hn)),level:Sn}:le.value&&(vn[Cn]={children:[],lazy:!0,level:Sn})},_e.value,pe.value),vn},Fe=(Lt=!1,hn=(vn=>(vn=Ce.store)==null?void 0:vn.states.defaultExpandAll.value)())=>{var vn;const _n=$e.value,bn=xe.value,Sn=Object.keys(_n),Cn={};if(Sn.length){const En=unref(oe),$n=[],wn=(xn,kn)=>{if(Lt)return z.value?hn||z.value.includes(kn):!!(hn||xn!=null&&xn.expanded);{const Nn=hn||z.value&&z.value.includes(kn);return!!(xn!=null&&xn.expanded||Nn)}};Sn.forEach(xn=>{const kn=En[xn],Nn={..._n[xn]};if(Nn.expanded=wn(kn,xn),Nn.lazy){const{loaded:Bn=!1,loading:Dn=!1}=kn||{};Nn.loaded=!!Bn,Nn.loading=!!Dn,$n.push(xn)}Cn[xn]=Nn});const Tn=Object.keys(bn);le.value&&Tn.length&&$n.length&&Tn.forEach(xn=>{const kn=En[xn],Nn=bn[xn].children;if($n.includes(xn)){if(Cn[xn].children.length!==0)throw new Error("[ElTable]children must be an empty array.");Cn[xn].children=Nn}else{const{loaded:Bn=!1,loading:Dn=!1}=kn||{};Cn[xn]={lazy:!0,loaded:!!Bn,loading:!!Dn,expanded:wn(kn,xn),children:Nn,level:""}}})}oe.value=Cn,(vn=Ce.store)==null||vn.updateTableScrollY()};watch(()=>z.value,()=>{Fe(!0)}),watch(()=>$e.value,()=>{Fe()}),watch(()=>xe.value,()=>{Fe()});const ze=Lt=>{z.value=Lt,Fe()},Ue=(Lt,hn)=>{Ce.store.assertRowKey();const vn=$.rowKey.value,_n=getRowIdentity(Lt,vn),bn=_n&&oe.value[_n];if(_n&&bn&&"expanded"in bn){const Sn=bn.expanded;hn=typeof hn>"u"?!bn.expanded:hn,oe.value[_n].expanded=hn,Sn!==hn&&Ce.emit("expand-change",Lt,hn),Ce.store.updateTableScrollY()}},qe=Lt=>{Ce.store.assertRowKey();const hn=$.rowKey.value,vn=getRowIdentity(Lt,hn),_n=oe.value[vn];le.value&&_n&&"loaded"in _n&&!_n.loaded?At(Lt,vn,_n):Ue(Lt,void 0)},At=(Lt,hn,vn)=>{const{load:_n}=Ce.props;_n&&!oe.value[hn].loaded&&(oe.value[hn].loading=!0,_n(Lt,vn,bn=>{if(!Array.isArray(bn))throw new TypeError("[ElTable] data must be an array");oe.value[hn].loading=!1,oe.value[hn].loaded=!0,oe.value[hn].expanded=!0,bn.length&&(ue.value[hn]=bn),Ce.emit("expand-change",Lt,!0)}))};return{loadData:At,loadOrToggle:qe,toggleTreeExpansion:Ue,updateTreeExpandKeys:ze,updateTreeData:Fe,normalize:Ie,states:{expandRowKeys:z,treeData:oe,indent:ae,lazy:le,lazyTreeNodeMap:ue,lazyColumnIdentifier:pe,childrenColumnName:_e}}}const sortData=($,z)=>{const oe=z.sortingColumn;return!oe||typeof oe.sortable=="string"?$:orderBy($,z.sortProp,z.sortOrder,oe.sortMethod,oe.sortBy)},doFlattenColumns=$=>{const z=[];return $.forEach(oe=>{oe.children?z.push.apply(z,doFlattenColumns(oe.children)):z.push(oe)}),z};function useWatcher$1(){var $;const z=getCurrentInstance(),{size:oe}=toRefs(($=z.proxy)==null?void 0:$.$props),ae=ref(null),le=ref([]),ue=ref([]),pe=ref(!1),_e=ref([]),Ce=ref([]),$e=ref([]),xe=ref([]),Ie=ref([]),Fe=ref([]),ze=ref([]),Ue=ref([]),qe=[],At=ref(0),Lt=ref(0),hn=ref(0),vn=ref(!1),_n=ref([]),bn=ref(!1),Sn=ref(!1),Cn=ref(null),En=ref({}),$n=ref(null),wn=ref(null),Tn=ref(null),xn=ref(null),kn=ref(null);watch(le,()=>z.state&&In(!1),{deep:!0});const Nn=()=>{if(!ae.value)throw new Error("[ElTable] prop row-key is required")},Bn=Cr=>{var lr;(lr=Cr.children)==null||lr.forEach(Jn=>{Jn.fixed=Cr.fixed,Bn(Jn)})},Dn=()=>{_e.value.forEach($r=>{Bn($r)}),xe.value=_e.value.filter($r=>$r.fixed===!0||$r.fixed==="left"),Ie.value=_e.value.filter($r=>$r.fixed==="right"),xe.value.length>0&&_e.value[0]&&_e.value[0].type==="selection"&&!_e.value[0].fixed&&(_e.value[0].fixed=!0,xe.value.unshift(_e.value[0]));const Cr=_e.value.filter($r=>!$r.fixed);Ce.value=[].concat(xe.value).concat(Cr).concat(Ie.value);const lr=doFlattenColumns(Cr),Jn=doFlattenColumns(xe.value),rr=doFlattenColumns(Ie.value);At.value=lr.length,Lt.value=Jn.length,hn.value=rr.length,$e.value=[].concat(Jn).concat(lr).concat(rr),pe.value=xe.value.length>0||Ie.value.length>0},In=(Cr,lr=!1)=>{Cr&&Dn(),lr?z.state.doLayout():z.state.debouncedUpdateLayout()},Ln=Cr=>_n.value.includes(Cr),Mn=()=>{vn.value=!1,_n.value.length&&(_n.value=[],z.emit("selection-change",[]))},Vn=()=>{let Cr;if(ae.value){Cr=[];const lr=getKeysMap(_n.value,ae.value),Jn=getKeysMap(le.value,ae.value);for(const rr in lr)hasOwn$4(lr,rr)&&!Jn[rr]&&Cr.push(lr[rr].row)}else Cr=_n.value.filter(lr=>!le.value.includes(lr));if(Cr.length){const lr=_n.value.filter(Jn=>!Cr.includes(Jn));_n.value=lr,z.emit("selection-change",lr.slice())}},Yn=()=>(_n.value||[]).slice(),Fn=(Cr,lr=void 0,Jn=!0)=>{if(toggleRowStatus(_n.value,Cr,lr)){const $r=(_n.value||[]).slice();Jn&&z.emit("select",$r,Cr),z.emit("selection-change",$r)}},Xn=()=>{var Cr,lr;const Jn=Sn.value?!vn.value:!(vn.value||_n.value.length);vn.value=Jn;let rr=!1,$r=0;const Ar=(lr=(Cr=z==null?void 0:z.store)==null?void 0:Cr.states)==null?void 0:lr.rowKey.value;le.value.forEach((Fr,_r)=>{const Ir=_r+$r;Cn.value?Cn.value.call(null,Fr,Ir)&&toggleRowStatus(_n.value,Fr,Jn)&&(rr=!0):toggleRowStatus(_n.value,Fr,Jn)&&(rr=!0),$r+=ar(getRowIdentity(Fr,Ar))}),rr&&z.emit("selection-change",_n.value?_n.value.slice():[]),z.emit("select-all",_n.value)},sr=()=>{const Cr=getKeysMap(_n.value,ae.value);le.value.forEach(lr=>{const Jn=getRowIdentity(lr,ae.value),rr=Cr[Jn];rr&&(_n.value[rr.index]=lr)})},vr=()=>{var Cr,lr,Jn;if(((Cr=le.value)==null?void 0:Cr.length)===0){vn.value=!1;return}let rr;ae.value&&(rr=getKeysMap(_n.value,ae.value));const $r=function(Ir){return rr?!!rr[getRowIdentity(Ir,ae.value)]:_n.value.includes(Ir)};let Ar=!0,Fr=0,_r=0;for(let Ir=0,zr=(le.value||[]).length;Ir<zr;Ir++){const Hr=(Jn=(lr=z==null?void 0:z.store)==null?void 0:lr.states)==null?void 0:Jn.rowKey.value,jr=Ir+_r,qr=le.value[Ir],Xr=Cn.value&&Cn.value.call(null,qr,jr);if($r(qr))Fr++;else if(!Cn.value||Xr){Ar=!1;break}_r+=ar(getRowIdentity(qr,Hr))}Fr===0&&(Ar=!1),vn.value=Ar},ar=Cr=>{var lr;if(!z||!z.store)return 0;const{treeData:Jn}=z.store.states;let rr=0;const $r=(lr=Jn.value[Cr])==null?void 0:lr.children;return $r&&(rr+=$r.length,$r.forEach(Ar=>{rr+=ar(Ar)})),rr},qn=(Cr,lr)=>{Array.isArray(Cr)||(Cr=[Cr]);const Jn={};return Cr.forEach(rr=>{En.value[rr.id]=lr,Jn[rr.columnKey||rr.id]=lr}),Jn},Gn=(Cr,lr,Jn)=>{wn.value&&wn.value!==Cr&&(wn.value.order=null),wn.value=Cr,Tn.value=lr,xn.value=Jn},Wn=()=>{let Cr=unref(ue);Object.keys(En.value).forEach(lr=>{const Jn=En.value[lr];if(!Jn||Jn.length===0)return;const rr=getColumnById({columns:$e.value},lr);rr&&rr.filterMethod&&(Cr=Cr.filter($r=>Jn.some(Ar=>rr.filterMethod.call(null,Ar,$r,rr))))}),$n.value=Cr},Qn=()=>{le.value=sortData($n.value,{sortingColumn:wn.value,sortProp:Tn.value,sortOrder:xn.value})},cr=(Cr=void 0)=>{Cr&&Cr.filter||Wn(),Qn()},jn=Cr=>{const{tableHeaderRef:lr}=z.refs;if(!lr)return;const Jn=Object.assign({},lr.filterPanels),rr=Object.keys(Jn);if(rr.length)if(typeof Cr=="string"&&(Cr=[Cr]),Array.isArray(Cr)){const $r=Cr.map(Ar=>getColumnByKey({columns:$e.value},Ar));rr.forEach(Ar=>{const Fr=$r.find(_r=>_r.id===Ar);Fr&&(Fr.filteredValue=[])}),z.store.commit("filterChange",{column:$r,values:[],silent:!0,multi:!0})}else rr.forEach($r=>{const Ar=$e.value.find(Fr=>Fr.id===$r);Ar&&(Ar.filteredValue=[])}),En.value={},z.store.commit("filterChange",{column:{},values:[],silent:!0})},Zn=()=>{wn.value&&(Gn(null,null,null),z.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:nr,toggleRowExpansion:hr,updateExpandRows:gr,states:or,isRowExpanded:wr}=useExpand({data:le,rowKey:ae}),{updateTreeExpandKeys:mr,toggleTreeExpansion:Tr,updateTreeData:dr,loadOrToggle:ir,states:ur}=useTree$2({data:le,rowKey:ae}),{updateCurrentRowData:fr,updateCurrentRow:kr,setCurrentRowKey:Dr,states:Lr}=useCurrent({data:le,rowKey:ae});return{assertRowKey:Nn,updateColumns:Dn,scheduleLayout:In,isSelected:Ln,clearSelection:Mn,cleanSelection:Vn,getSelectionRows:Yn,toggleRowSelection:Fn,_toggleAllSelection:Xn,toggleAllSelection:null,updateSelectionByRowKey:sr,updateAllSelected:vr,updateFilters:qn,updateCurrentRow:kr,updateSort:Gn,execFilter:Wn,execSort:Qn,execQuery:cr,clearFilter:jn,clearSort:Zn,toggleRowExpansion:hr,setExpandRowKeysAdapter:Cr=>{nr(Cr),mr(Cr)},setCurrentRowKey:Dr,toggleRowExpansionAdapter:(Cr,lr)=>{$e.value.some(({type:rr})=>rr==="expand")?hr(Cr,lr):Tr(Cr,lr)},isRowExpanded:wr,updateExpandRows:gr,updateCurrentRowData:fr,loadOrToggle:ir,updateTreeData:dr,states:{tableSize:oe,rowKey:ae,data:le,_data:ue,isComplex:pe,_columns:_e,originColumns:Ce,columns:$e,fixedColumns:xe,rightFixedColumns:Ie,leafColumns:Fe,fixedLeafColumns:ze,rightFixedLeafColumns:Ue,updateOrderFns:qe,leafColumnsLength:At,fixedLeafColumnsLength:Lt,rightFixedLeafColumnsLength:hn,isAllSelected:vn,selection:_n,reserveSelection:bn,selectOnIndeterminate:Sn,selectable:Cn,filters:En,filteredData:$n,sortingColumn:wn,sortProp:Tn,sortOrder:xn,hoverRow:kn,...or,...ur,...Lr}}}function replaceColumn($,z){return $.map(oe=>{var ae;return oe.id===z.id?z:((ae=oe.children)!=null&&ae.length&&(oe.children=replaceColumn(oe.children,z)),oe)})}function sortColumn($){$.forEach(z=>{var oe,ae;z.no=(oe=z.getColumnIndex)==null?void 0:oe.call(z),(ae=z.children)!=null&&ae.length&&sortColumn(z.children)}),$.sort((z,oe)=>z.no-oe.no)}function useStore(){const $=getCurrentInstance(),z=useWatcher$1();return{ns:useNamespace("table"),...z,mutations:{setData(pe,_e){const Ce=unref(pe._data)!==_e;pe.data.value=_e,pe._data.value=_e,$.store.execQuery(),$.store.updateCurrentRowData(),$.store.updateExpandRows(),$.store.updateTreeData($.store.states.defaultExpandAll.value),unref(pe.reserveSelection)?($.store.assertRowKey(),$.store.updateSelectionByRowKey()):Ce?$.store.clearSelection():$.store.cleanSelection(),$.store.updateAllSelected(),$.$ready&&$.store.scheduleLayout()},insertColumn(pe,_e,Ce,$e){const xe=unref(pe._columns);let Ie=[];Ce?(Ce&&!Ce.children&&(Ce.children=[]),Ce.children.push(_e),Ie=replaceColumn(xe,Ce)):(xe.push(_e),Ie=xe),sortColumn(Ie),pe._columns.value=Ie,pe.updateOrderFns.push($e),_e.type==="selection"&&(pe.selectable.value=_e.selectable,pe.reserveSelection.value=_e.reserveSelection),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},updateColumnOrder(pe,_e){var Ce;((Ce=_e.getColumnIndex)==null?void 0:Ce.call(_e))!==_e.no&&(sortColumn(pe._columns.value),$.$ready&&$.store.updateColumns())},removeColumn(pe,_e,Ce,$e){const xe=unref(pe._columns)||[];if(Ce)Ce.children.splice(Ce.children.findIndex(Fe=>Fe.id===_e.id),1),nextTick(()=>{var Fe;((Fe=Ce.children)==null?void 0:Fe.length)===0&&delete Ce.children}),pe._columns.value=replaceColumn(xe,Ce);else{const Fe=xe.indexOf(_e);Fe>-1&&(xe.splice(Fe,1),pe._columns.value=xe)}const Ie=pe.updateOrderFns.indexOf($e);Ie>-1&&pe.updateOrderFns.splice(Ie,1),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},sort(pe,_e){const{prop:Ce,order:$e,init:xe}=_e;if(Ce){const Ie=unref(pe.columns).find(Fe=>Fe.property===Ce);Ie&&(Ie.order=$e,$.store.updateSort(Ie,Ce,$e),$.store.commit("changeSortCondition",{init:xe}))}},changeSortCondition(pe,_e){const{sortingColumn:Ce,sortProp:$e,sortOrder:xe}=pe,Ie=unref(Ce),Fe=unref($e),ze=unref(xe);ze===null&&(pe.sortingColumn.value=null,pe.sortProp.value=null);const Ue={filter:!0};$.store.execQuery(Ue),(!_e||!(_e.silent||_e.init))&&$.emit("sort-change",{column:Ie,prop:Fe,order:ze}),$.store.updateTableScrollY()},filterChange(pe,_e){const{column:Ce,values:$e,silent:xe}=_e,Ie=$.store.updateFilters(Ce,$e);$.store.execQuery(),xe||$.emit("filter-change",Ie),$.store.updateTableScrollY()},toggleAllSelection(){$.store.toggleAllSelection()},rowSelectedChanged(pe,_e){$.store.toggleRowSelection(_e),$.store.updateAllSelected()},setHoverRow(pe,_e){pe.hoverRow.value=_e},setCurrentRow(pe,_e){$.store.updateCurrentRow(_e)}},commit:function(pe,..._e){const Ce=$.store.mutations;if(Ce[pe])Ce[pe].apply($,[$.store.states].concat(_e));else throw new Error(`Action not found: ${pe}`)},updateTableScrollY:function(){nextTick(()=>$.layout.updateScrollY.apply($.layout))}}}const InitialStateMap={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function createStore($,z){if(!$)throw new Error("Table is required.");const oe=useStore();return oe.toggleAllSelection=debounce(oe._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(ae=>{handleValue(getArrKeysValue(z,ae),ae,oe)}),proxyTableProps(oe,z),oe}function proxyTableProps($,z){Object.keys(InitialStateMap).forEach(oe=>{watch(()=>getArrKeysValue(z,oe),ae=>{handleValue(ae,oe,$)})})}function handleValue($,z,oe){let ae=$,le=InitialStateMap[z];typeof InitialStateMap[z]=="object"&&(le=le.key,ae=ae||InitialStateMap[z].default),oe.states[le].value=ae}function getArrKeysValue($,z){if(z.includes(".")){const oe=z.split(".");let ae=$;return oe.forEach(le=>{ae=ae[le]}),ae}else return $[z]}class TableLayout{constructor(z){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ref(null),this.scrollX=ref(!1),this.scrollY=ref(!1),this.bodyWidth=ref(null),this.fixedWidth=ref(null),this.rightFixedWidth=ref(null),this.gutterWidth=0;for(const oe in z)hasOwn$4(z,oe)&&(isRef(this[oe])?this[oe].value=z[oe]:this[oe]=z[oe]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const oe=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(oe!=null&&oe.wrapRef)){let ae=!0;const le=this.scrollY.value;return ae=oe.wrapRef.scrollHeight>oe.wrapRef.clientHeight,this.scrollY.value=ae,le!==ae}return!1}setHeight(z,oe="height"){if(!isClient$2)return;const ae=this.table.vnode.el;if(z=parseHeight(z),this.height.value=Number(z),!ae&&(z||z===0))return nextTick(()=>this.setHeight(z,oe));typeof z=="number"?(ae.style[oe]=`${z}px`,this.updateElsHeight()):typeof z=="string"&&(ae.style[oe]=z,this.updateElsHeight())}setMaxHeight(z){this.setHeight(z,"max-height")}getFlattenColumns(){const z=[];return this.table.store.states.columns.value.forEach(ae=>{ae.isColumnGroup?z.push.apply(z,ae.columns):z.push(ae)}),z}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(z){if(!z)return!0;let oe=z;for(;oe.tagName!=="DIV";){if(getComputedStyle(oe).display==="none")return!0;oe=oe.parentElement}return!1}updateColumnsWidth(){if(!isClient$2)return;const z=this.fit,oe=this.table.vnode.el.clientWidth;let ae=0;const le=this.getFlattenColumns(),ue=le.filter(Ce=>typeof Ce.width!="number");if(le.forEach(Ce=>{typeof Ce.width=="number"&&Ce.realWidth&&(Ce.realWidth=null)}),ue.length>0&&z){if(le.forEach(Ce=>{ae+=Number(Ce.width||Ce.minWidth||80)}),ae<=oe){this.scrollX.value=!1;const Ce=oe-ae;if(ue.length===1)ue[0].realWidth=Number(ue[0].minWidth||80)+Ce;else{const $e=ue.reduce((Fe,ze)=>Fe+Number(ze.minWidth||80),0),xe=Ce/$e;let Ie=0;ue.forEach((Fe,ze)=>{if(ze===0)return;const Ue=Math.floor(Number(Fe.minWidth||80)*xe);Ie+=Ue,Fe.realWidth=Number(Fe.minWidth||80)+Ue}),ue[0].realWidth=Number(ue[0].minWidth||80)+Ce-Ie}}else this.scrollX.value=!0,ue.forEach(Ce=>{Ce.realWidth=Number(Ce.minWidth)});this.bodyWidth.value=Math.max(ae,oe),this.table.state.resizeState.value.width=this.bodyWidth.value}else le.forEach(Ce=>{!Ce.width&&!Ce.minWidth?Ce.realWidth=80:Ce.realWidth=Number(Ce.width||Ce.minWidth),ae+=Ce.realWidth}),this.scrollX.value=ae>oe,this.bodyWidth.value=ae;const pe=this.store.states.fixedColumns.value;if(pe.length>0){let Ce=0;pe.forEach($e=>{Ce+=Number($e.realWidth||$e.width)}),this.fixedWidth.value=Ce}const _e=this.store.states.rightFixedColumns.value;if(_e.length>0){let Ce=0;_e.forEach($e=>{Ce+=Number($e.realWidth||$e.width)}),this.rightFixedWidth.value=Ce}this.notifyObservers("columns")}addObserver(z){this.observers.push(z)}removeObserver(z){const oe=this.observers.indexOf(z);oe!==-1&&this.observers.splice(oe,1)}notifyObservers(z){this.observers.forEach(ae=>{var le,ue;switch(z){case"columns":(le=ae.state)==null||le.onColumnsChange(this);break;case"scrollable":(ue=ae.state)==null||ue.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${z}.`)}})}}const{CheckboxGroup:ElCheckboxGroup}=ElCheckbox,_sfc_main$t=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrow_down_default,ArrowUp:arrow_up_default},directives:{ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup($){const z=getCurrentInstance(),{t:oe}=useLocale(),ae=useNamespace("table-filter"),le=z==null?void 0:z.parent;le.filterPanels.value[$.column.id]||(le.filterPanels.value[$.column.id]=z);const ue=ref(!1),pe=ref(null),_e=computed(()=>$.column&&$.column.filters),Ce=computed({get:()=>{var _n;return(((_n=$.column)==null?void 0:_n.filteredValue)||[])[0]},set:_n=>{$e.value&&(typeof _n<"u"&&_n!==null?$e.value.splice(0,1,_n):$e.value.splice(0,1))}}),$e=computed({get(){return $.column?$.column.filteredValue||[]:[]},set(_n){$.column&&$.upDataColumn("filteredValue",_n)}}),xe=computed(()=>$.column?$.column.filterMultiple:!0),Ie=_n=>_n.value===Ce.value,Fe=()=>{ue.value=!1},ze=_n=>{_n.stopPropagation(),ue.value=!ue.value},Ue=()=>{ue.value=!1},qe=()=>{hn($e.value),Fe()},At=()=>{$e.value=[],hn($e.value),Fe()},Lt=_n=>{Ce.value=_n,hn(typeof _n<"u"&&_n!==null?$e.value:[]),Fe()},hn=_n=>{$.store.commit("filterChange",{column:$.column,values:_n}),$.store.updateAllSelected()};watch(ue,_n=>{$.column&&$.upDataColumn("filterOpened",_n)},{immediate:!0});const vn=computed(()=>{var _n,bn;return(bn=(_n=pe.value)==null?void 0:_n.popperRef)==null?void 0:bn.contentRef});return{tooltipVisible:ue,multiple:xe,filteredValue:$e,filterValue:Ce,filters:_e,handleConfirm:qe,handleReset:At,handleSelect:Lt,isActive:Ie,t:oe,ns:ae,showFilterPanel:ze,hideFilterPanel:Ue,popperPaneRef:vn,tooltip:pe}}}),_hoisted_1$e={key:0},_hoisted_2$a=["disabled"],_hoisted_3$5=["label","onClick"];function _sfc_render$5($,z,oe,ae,le,ue){const pe=resolveComponent("el-checkbox"),_e=resolveComponent("el-checkbox-group"),Ce=resolveComponent("el-scrollbar"),$e=resolveComponent("arrow-up"),xe=resolveComponent("arrow-down"),Ie=resolveComponent("el-icon"),Fe=resolveComponent("el-tooltip"),ze=resolveDirective("click-outside");return openBlock(),createBlock(Fe,{ref:"tooltip",visible:$.tooltipVisible,offset:0,placement:$.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":$.ns.b(),persistent:""},{content:withCtx(()=>[$.multiple?(openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",{class:normalizeClass($.ns.e("content"))},[createVNode(Ce,{"wrap-class":$.ns.e("wrap")},{default:withCtx(()=>[createVNode(_e,{modelValue:$.filteredValue,"onUpdate:modelValue":z[0]||(z[0]=Ue=>$.filteredValue=Ue),class:normalizeClass($.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,Ue=>(openBlock(),createBlock(pe,{key:Ue.value,label:Ue.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1(Ue.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass($.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[$.ns.is("disabled")]:$.filteredValue.length===0}),disabled:$.filteredValue.length===0,type:"button",onClick:z[1]||(z[1]=(...Ue)=>$.handleConfirm&&$.handleConfirm(...Ue))},toDisplayString$1($.t("el.table.confirmFilter")),11,_hoisted_2$a),createBaseVNode("button",{type:"button",onClick:z[2]||(z[2]=(...Ue)=>$.handleReset&&$.handleReset(...Ue))},toDisplayString$1($.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass($.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([$.ns.e("list-item"),{[$.ns.is("active")]:$.filterValue===void 0||$.filterValue===null}]),onClick:z[3]||(z[3]=Ue=>$.handleSelect(null))},toDisplayString$1($.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,Ue=>(openBlock(),createElementBlock("li",{key:Ue.value,class:normalizeClass([$.ns.e("list-item"),$.ns.is("active",$.isActive(Ue))]),label:Ue.value,onClick:qe=>$.handleSelect(Ue.value)},toDisplayString$1(Ue.text),11,_hoisted_3$5))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${$.ns.namespace.value}-table__column-filter-trigger`,`${$.ns.namespace.value}-none-outline`]),onClick:z[4]||(z[4]=(...Ue)=>$.showFilterPanel&&$.showFilterPanel(...Ue))},[createVNode(Ie,null,{default:withCtx(()=>[$.column.filterOpened?(openBlock(),createBlock($e,{key:0})):(openBlock(),createBlock(xe,{key:1}))]),_:1})],2)),[[ze,$.hideFilterPanel,$.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var FilterPanel=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver($){const z=getCurrentInstance();onBeforeMount(()=>{oe.value.addObserver(z)}),onMounted(()=>{ae(oe.value),le(oe.value)}),onUpdated(()=>{ae(oe.value),le(oe.value)}),onUnmounted(()=>{oe.value.removeObserver(z)});const oe=computed(()=>{const ue=$.layout;if(!ue)throw new Error("Can not find table layout.");return ue}),ae=ue=>{var pe;const _e=((pe=$.vnode.el)==null?void 0:pe.querySelectorAll("colgroup > col"))||[];if(!_e.length)return;const Ce=ue.getFlattenColumns(),$e={};Ce.forEach(xe=>{$e[xe.id]=xe});for(let xe=0,Ie=_e.length;xe<Ie;xe++){const Fe=_e[xe],ze=Fe.getAttribute("name"),Ue=$e[ze];Ue&&Fe.setAttribute("width",Ue.realWidth||Ue.width)}},le=ue=>{var pe,_e;const Ce=((pe=$.vnode.el)==null?void 0:pe.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let xe=0,Ie=Ce.length;xe<Ie;xe++)Ce[xe].setAttribute("width",ue.scrollY.value?ue.gutterWidth:"0");const $e=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("th.gutter"))||[];for(let xe=0,Ie=$e.length;xe<Ie;xe++){const Fe=$e[xe];Fe.style.width=ue.scrollY.value?`${ue.gutterWidth}px`:"0",Fe.style.display=ue.scrollY.value?"":"none"}};return{tableLayout:oe.value,onColumnsChange:ae,onScrollableChange:le}}const TABLE_INJECTION_KEY=Symbol("ElTable");function useEvent($,z){const oe=getCurrentInstance(),ae=inject(TABLE_INJECTION_KEY),le=qe=>{qe.stopPropagation()},ue=(qe,At)=>{!At.filters&&At.sortable?Ue(qe,At,!1):At.filterable&&!At.sortable&&le(qe),ae==null||ae.emit("header-click",At,qe)},pe=(qe,At)=>{ae==null||ae.emit("header-contextmenu",At,qe)},_e=ref(null),Ce=ref(!1),$e=ref({}),xe=(qe,At)=>{if(isClient$2&&!(At.children&&At.children.length>0)&&_e.value&&$.border){Ce.value=!0;const Lt=ae;z("set-drag-visible",!0);const vn=(Lt==null?void 0:Lt.vnode.el).getBoundingClientRect().left,_n=oe.vnode.el.querySelector(`th.${At.id}`),bn=_n.getBoundingClientRect(),Sn=bn.left-vn+30;addClass(_n,"noclick"),$e.value={startMouseLeft:qe.clientX,startLeft:bn.right-vn,startColumnLeft:bn.left-vn,tableLeft:vn};const Cn=Lt==null?void 0:Lt.refs.resizeProxy;Cn.style.left=`${$e.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const En=wn=>{const Tn=wn.clientX-$e.value.startMouseLeft,xn=$e.value.startLeft+Tn;Cn.style.left=`${Math.max(Sn,xn)}px`},$n=()=>{if(Ce.value){const{startColumnLeft:wn,startLeft:Tn}=$e.value,kn=Number.parseInt(Cn.style.left,10)-wn;At.width=At.realWidth=kn,Lt==null||Lt.emit("header-dragend",At.width,Tn-wn,At,qe),requestAnimationFrame(()=>{$.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",Ce.value=!1,_e.value=null,$e.value={},z("set-drag-visible",!1)}document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",$n),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(_n,"noclick")},0)};document.addEventListener("mousemove",En),document.addEventListener("mouseup",$n)}},Ie=(qe,At)=>{if(At.children&&At.children.length>0)return;const Lt=qe.target;if(!isElement$2(Lt))return;const hn=Lt==null?void 0:Lt.closest("th");if(!(!At||!At.resizable)&&!Ce.value&&$.border){const vn=hn.getBoundingClientRect(),_n=document.body.style;vn.width>12&&vn.right-qe.pageX<8?(_n.cursor="col-resize",hasClass(hn,"is-sortable")&&(hn.style.cursor="col-resize"),_e.value=At):Ce.value||(_n.cursor="",hasClass(hn,"is-sortable")&&(hn.style.cursor="pointer"),_e.value=null)}},Fe=()=>{isClient$2&&(document.body.style.cursor="")},ze=({order:qe,sortOrders:At})=>{if(qe==="")return At[0];const Lt=At.indexOf(qe||null);return At[Lt>At.length-2?0:Lt+1]},Ue=(qe,At,Lt)=>{var hn;qe.stopPropagation();const vn=At.order===Lt?null:Lt||ze(At),_n=(hn=qe.target)==null?void 0:hn.closest("th");if(_n&&hasClass(_n,"noclick")){removeClass(_n,"noclick");return}if(!At.sortable)return;const bn=$.store.states;let Sn=bn.sortProp.value,Cn;const En=bn.sortingColumn.value;(En!==At||En===At&&En.order===null)&&(En&&(En.order=null),bn.sortingColumn.value=At,Sn=At.property),vn?Cn=At.order=vn:Cn=At.order=null,bn.sortProp.value=Sn,bn.sortOrder.value=Cn,ae==null||ae.store.commit("changeSortCondition")};return{handleHeaderClick:ue,handleHeaderContextMenu:pe,handleMouseDown:xe,handleMouseMove:Ie,handleMouseOut:Fe,handleSortClick:Ue,handleFilterClick:le}}function useStyle$2($){const z=inject(TABLE_INJECTION_KEY),oe=useNamespace("table");return{getHeaderRowStyle:_e=>{const Ce=z==null?void 0:z.props.headerRowStyle;return typeof Ce=="function"?Ce.call(null,{rowIndex:_e}):Ce},getHeaderRowClass:_e=>{const Ce=[],$e=z==null?void 0:z.props.headerRowClassName;return typeof $e=="string"?Ce.push($e):typeof $e=="function"&&Ce.push($e.call(null,{rowIndex:_e})),Ce.join(" ")},getHeaderCellStyle:(_e,Ce,$e,xe)=>{var Ie;let Fe=(Ie=z==null?void 0:z.props.headerCellStyle)!=null?Ie:{};typeof Fe=="function"&&(Fe=Fe.call(null,{rowIndex:_e,columnIndex:Ce,row:$e,column:xe}));const ze=getFixedColumnOffset(Ce,xe.fixed,$.store,$e);return ensurePosition(ze,"left"),ensurePosition(ze,"right"),Object.assign({},Fe,ze)},getHeaderCellClass:(_e,Ce,$e,xe)=>{const Ie=getFixedColumnsClass(oe.b(),Ce,xe.fixed,$.store,$e),Fe=[xe.id,xe.order,xe.headerAlign,xe.className,xe.labelClassName,...Ie];xe.children||Fe.push("is-leaf"),xe.sortable&&Fe.push("is-sortable");const ze=z==null?void 0:z.props.headerCellClassName;return typeof ze=="string"?Fe.push(ze):typeof ze=="function"&&Fe.push(ze.call(null,{rowIndex:_e,columnIndex:Ce,row:$e,column:xe})),Fe.push(oe.e("cell")),Fe.filter(Ue=>!!Ue).join(" ")}}}const getAllColumns=$=>{const z=[];return $.forEach(oe=>{oe.children?(z.push(oe),z.push.apply(z,getAllColumns(oe.children))):z.push(oe)}),z},convertToRows=$=>{let z=1;const oe=(ue,pe)=>{if(pe&&(ue.level=pe.level+1,z<ue.level&&(z=ue.level)),ue.children){let _e=0;ue.children.forEach(Ce=>{oe(Ce,ue),_e+=Ce.colSpan}),ue.colSpan=_e}else ue.colSpan=1};$.forEach(ue=>{ue.level=1,oe(ue,void 0)});const ae=[];for(let ue=0;ue<z;ue++)ae.push([]);return getAllColumns($).forEach(ue=>{ue.children?(ue.rowSpan=1,ue.children.forEach(pe=>pe.isSubColumn=!0)):ue.rowSpan=z-ue.level+1,ae[ue.level-1].push(ue)}),ae};function useUtils$1($){const z=inject(TABLE_INJECTION_KEY),oe=computed(()=>convertToRows($.store.states.originColumns.value));return{isGroup:computed(()=>{const ue=oe.value.length>1;return ue&&z&&(z.state.isGroup.value=!0),ue}),toggleAllSelection:ue=>{ue.stopPropagation(),z==null||z.store.commit("toggleAllSelection")},columnRows:oe}}var TableHeader=defineComponent({name:"ElTableHeader",components:{ElCheckbox},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup($,{emit:z}){const oe=getCurrentInstance(),ae=inject(TABLE_INJECTION_KEY),le=useNamespace("table"),ue=ref({}),{onColumnsChange:pe,onScrollableChange:_e}=useLayoutObserver(ae);onMounted(async()=>{await nextTick(),await nextTick();const{prop:Sn,order:Cn}=$.defaultSort;ae==null||ae.store.commit("sort",{prop:Sn,order:Cn,init:!0})});const{handleHeaderClick:Ce,handleHeaderContextMenu:$e,handleMouseDown:xe,handleMouseMove:Ie,handleMouseOut:Fe,handleSortClick:ze,handleFilterClick:Ue}=useEvent($,z),{getHeaderRowStyle:qe,getHeaderRowClass:At,getHeaderCellStyle:Lt,getHeaderCellClass:hn}=useStyle$2($),{isGroup:vn,toggleAllSelection:_n,columnRows:bn}=useUtils$1($);return oe.state={onColumnsChange:pe,onScrollableChange:_e},oe.filterPanels=ue,{ns:le,filterPanels:ue,onColumnsChange:pe,onScrollableChange:_e,columnRows:bn,getHeaderRowClass:At,getHeaderRowStyle:qe,getHeaderCellClass:hn,getHeaderCellStyle:Lt,handleHeaderClick:Ce,handleHeaderContextMenu:$e,handleMouseDown:xe,handleMouseMove:Ie,handleMouseOut:Fe,handleSortClick:ze,handleFilterClick:Ue,isGroup:vn,toggleAllSelection:_n}},render(){const{ns:$,isGroup:z,columnRows:oe,getHeaderCellStyle:ae,getHeaderCellClass:le,getHeaderRowClass:ue,getHeaderRowStyle:pe,handleHeaderClick:_e,handleHeaderContextMenu:Ce,handleMouseDown:$e,handleMouseMove:xe,handleSortClick:Ie,handleMouseOut:Fe,store:ze,$parent:Ue}=this;let qe=1;return h$3("thead",{class:{[$.is("group")]:z}},oe.map((At,Lt)=>h$3("tr",{class:ue(Lt),key:Lt,style:pe(Lt)},At.map((hn,vn)=>(hn.rowSpan>qe&&(qe=hn.rowSpan),h$3("th",{class:le(Lt,vn,At,hn),colspan:hn.colSpan,key:`${hn.id}-thead`,rowspan:hn.rowSpan,style:ae(Lt,vn,At,hn),onClick:_n=>_e(_n,hn),onContextmenu:_n=>Ce(_n,hn),onMousedown:_n=>$e(_n,hn),onMousemove:_n=>xe(_n,hn),onMouseout:Fe},[h$3("div",{class:["cell",hn.filteredValue&&hn.filteredValue.length>0?"highlight":""]},[hn.renderHeader?hn.renderHeader({column:hn,$index:vn,store:ze,_self:Ue}):hn.label,hn.sortable&&h$3("span",{onClick:_n=>Ie(_n,hn),class:"caret-wrapper"},[h$3("i",{onClick:_n=>Ie(_n,hn,"ascending"),class:"sort-caret ascending"}),h$3("i",{onClick:_n=>Ie(_n,hn,"descending"),class:"sort-caret descending"})]),hn.filterable&&h$3(FilterPanel,{store:ze,placement:hn.filterPlacement||"bottom-start",column:hn,upDataColumn:(_n,bn)=>{hn[_n]=bn}})])]))))))}});function useEvents($){const z=inject(TABLE_INJECTION_KEY),oe=ref(""),ae=ref(h$3("div")),{nextZIndex:le}=useZIndex(),ue=(ze,Ue,qe)=>{var At;const Lt=z,hn=getCell(ze);let vn;const _n=(At=Lt==null?void 0:Lt.vnode.el)==null?void 0:At.dataset.prefix;hn&&(vn=getColumnByCell({columns:$.store.states.columns.value},hn,_n),vn&&(Lt==null||Lt.emit(`cell-${qe}`,Ue,vn,hn,ze))),Lt==null||Lt.emit(`row-${qe}`,Ue,vn,ze)},pe=(ze,Ue)=>{ue(ze,Ue,"dblclick")},_e=(ze,Ue)=>{$.store.commit("setCurrentRow",Ue),ue(ze,Ue,"click")},Ce=(ze,Ue)=>{ue(ze,Ue,"contextmenu")},$e=debounce(ze=>{$.store.commit("setHoverRow",ze)},30),xe=debounce(()=>{$.store.commit("setHoverRow",null)},30);return{handleDoubleClick:pe,handleClick:_e,handleContextMenu:Ce,handleMouseEnter:$e,handleMouseLeave:xe,handleCellMouseEnter:(ze,Ue,qe)=>{var At;const Lt=z,hn=getCell(ze),vn=(At=Lt==null?void 0:Lt.vnode.el)==null?void 0:At.dataset.prefix;if(hn){const En=getColumnByCell({columns:$.store.states.columns.value},hn,vn),$n=Lt.hoverState={cell:hn,column:En,row:Ue};Lt==null||Lt.emit("cell-mouse-enter",$n.row,$n.column,$n.cell,ze)}if(!qe)return;const _n=ze.target.querySelector(".cell");if(!(hasClass(_n,`${vn}-tooltip`)&&_n.childNodes.length))return;const bn=document.createRange();bn.setStart(_n,0),bn.setEnd(_n,_n.childNodes.length);const Sn=Math.round(bn.getBoundingClientRect().width),Cn=(Number.parseInt(getStyle$1(_n,"paddingLeft"),10)||0)+(Number.parseInt(getStyle$1(_n,"paddingRight"),10)||0);(Sn+Cn>_n.offsetWidth||_n.scrollWidth>_n.offsetWidth)&&createTablePopper(z==null?void 0:z.refs.tableWrapper,hn,hn.innerText||hn.textContent,le,qe)},handleCellMouseLeave:ze=>{if(!getCell(ze))return;const qe=z==null?void 0:z.hoverState;z==null||z.emit("cell-mouse-leave",qe==null?void 0:qe.row,qe==null?void 0:qe.column,qe==null?void 0:qe.cell,ze)},tooltipContent:oe,tooltipTrigger:ae}}function useStyles$1($){const z=inject(TABLE_INJECTION_KEY),oe=useNamespace("table");return{getRowStyle:($e,xe)=>{const Ie=z==null?void 0:z.props.rowStyle;return typeof Ie=="function"?Ie.call(null,{row:$e,rowIndex:xe}):Ie||null},getRowClass:($e,xe)=>{const Ie=[oe.e("row")];z!=null&&z.props.highlightCurrentRow&&$e===$.store.states.currentRow.value&&Ie.push("current-row"),$.stripe&&xe%2===1&&Ie.push(oe.em("row","striped"));const Fe=z==null?void 0:z.props.rowClassName;return typeof Fe=="string"?Ie.push(Fe):typeof Fe=="function"&&Ie.push(Fe.call(null,{row:$e,rowIndex:xe})),Ie},getCellStyle:($e,xe,Ie,Fe)=>{const ze=z==null?void 0:z.props.cellStyle;let Ue=ze??{};typeof ze=="function"&&(Ue=ze.call(null,{rowIndex:$e,columnIndex:xe,row:Ie,column:Fe}));const qe=getFixedColumnOffset(xe,$==null?void 0:$.fixed,$.store);return ensurePosition(qe,"left"),ensurePosition(qe,"right"),Object.assign({},Ue,qe)},getCellClass:($e,xe,Ie,Fe,ze)=>{const Ue=getFixedColumnsClass(oe.b(),xe,$==null?void 0:$.fixed,$.store,void 0,ze),qe=[Fe.id,Fe.align,Fe.className,...Ue],At=z==null?void 0:z.props.cellClassName;return typeof At=="string"?qe.push(At):typeof At=="function"&&qe.push(At.call(null,{rowIndex:$e,columnIndex:xe,row:Ie,column:Fe})),qe.push(oe.e("cell")),qe.filter(Lt=>!!Lt).join(" ")},getSpan:($e,xe,Ie,Fe)=>{let ze=1,Ue=1;const qe=z==null?void 0:z.props.spanMethod;if(typeof qe=="function"){const At=qe({row:$e,column:xe,rowIndex:Ie,columnIndex:Fe});Array.isArray(At)?(ze=At[0],Ue=At[1]):typeof At=="object"&&(ze=At.rowspan,Ue=At.colspan)}return{rowspan:ze,colspan:Ue}},getColspanRealWidth:($e,xe,Ie)=>{if(xe<1)return $e[Ie].realWidth;const Fe=$e.map(({realWidth:ze,width:Ue})=>ze||Ue).slice(Ie,Ie+xe);return Number(Fe.reduce((ze,Ue)=>Number(ze)+Number(Ue),-1))}}}function useRender$1($){const z=inject(TABLE_INJECTION_KEY),oe=useNamespace("table"),{handleDoubleClick:ae,handleClick:le,handleContextMenu:ue,handleMouseEnter:pe,handleMouseLeave:_e,handleCellMouseEnter:Ce,handleCellMouseLeave:$e,tooltipContent:xe,tooltipTrigger:Ie}=useEvents($),{getRowStyle:Fe,getRowClass:ze,getCellStyle:Ue,getCellClass:qe,getSpan:At,getColspanRealWidth:Lt}=useStyles$1($),hn=computed(()=>$.store.states.columns.value.findIndex(({type:Cn})=>Cn==="default")),vn=(Cn,En)=>{const $n=z.props.rowKey;return $n?getRowIdentity(Cn,$n):En},_n=(Cn,En,$n,wn=!1)=>{const{tooltipEffect:Tn,tooltipOptions:xn,store:kn}=$,{indent:Nn,columns:Bn}=kn.states,Dn=ze(Cn,En);let In=!0;return $n&&(Dn.push(oe.em("row",`level-${$n.level}`)),In=$n.display),h$3("tr",{style:[In?null:{display:"none"},Fe(Cn,En)],class:Dn,key:vn(Cn,En),onDblclick:Mn=>ae(Mn,Cn),onClick:Mn=>le(Mn,Cn),onContextmenu:Mn=>ue(Mn,Cn),onMouseenter:()=>pe(En),onMouseleave:_e},Bn.value.map((Mn,Vn)=>{const{rowspan:Yn,colspan:Fn}=At(Cn,Mn,En,Vn);if(!Yn||!Fn)return null;const Xn={...Mn};Xn.realWidth=Lt(Bn.value,Fn,Vn);const sr={store:$.store,_self:$.context||z,column:Xn,row:Cn,$index:En,cellIndex:Vn,expanded:wn};Vn===hn.value&&$n&&(sr.treeNode={indent:$n.level*Nn.value,level:$n.level},typeof $n.expanded=="boolean"&&(sr.treeNode.expanded=$n.expanded,"loading"in $n&&(sr.treeNode.loading=$n.loading),"noLazyChildren"in $n&&(sr.treeNode.noLazyChildren=$n.noLazyChildren)));const vr=`${En},${Vn}`,ar=Xn.columnKey||Xn.rawColumnKey||"",qn=bn(Vn,Mn,sr),Gn=Mn.showOverflowTooltip&&merge$4({effect:Tn},xn,Mn.showOverflowTooltip);return h$3("td",{style:Ue(En,Vn,Cn,Mn),class:qe(En,Vn,Cn,Mn,Fn-1),key:`${ar}${vr}`,rowspan:Yn,colspan:Fn,onMouseenter:Wn=>Ce(Wn,Cn,Gn),onMouseleave:$e},[qn])}))},bn=(Cn,En,$n)=>En.renderCell($n);return{wrappedRowRender:(Cn,En)=>{const $n=$.store,{isRowExpanded:wn,assertRowKey:Tn}=$n,{treeData:xn,lazyTreeNodeMap:kn,childrenColumnName:Nn,rowKey:Bn}=$n.states,Dn=$n.states.columns.value;if(Dn.some(({type:Ln})=>Ln==="expand")){const Ln=wn(Cn),Mn=_n(Cn,En,void 0,Ln),Vn=z.renderExpanded;return Ln?Vn?[[Mn,h$3("tr",{key:`expanded-row__${Mn.key}`},[h$3("td",{colspan:Dn.length,class:`${oe.e("cell")} ${oe.e("expanded-cell")}`},[Vn({row:Cn,$index:En,store:$n,expanded:Ln})])])]]:(console.error("[Element Error]renderExpanded is required."),Mn):[[Mn]]}else if(Object.keys(xn.value).length){Tn();const Ln=getRowIdentity(Cn,Bn.value);let Mn=xn.value[Ln],Vn=null;Mn&&(Vn={expanded:Mn.expanded,level:Mn.level,display:!0},typeof Mn.lazy=="boolean"&&(typeof Mn.loaded=="boolean"&&Mn.loaded&&(Vn.noLazyChildren=!(Mn.children&&Mn.children.length)),Vn.loading=Mn.loading));const Yn=[_n(Cn,En,Vn)];if(Mn){let Fn=0;const Xn=(vr,ar)=>{vr&&vr.length&&ar&&vr.forEach(qn=>{const Gn={display:ar.display&&ar.expanded,level:ar.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Wn=getRowIdentity(qn,Bn.value);if(Wn==null)throw new Error("For nested data item, row-key is required.");if(Mn={...xn.value[Wn]},Mn&&(Gn.expanded=Mn.expanded,Mn.level=Mn.level||Gn.level,Mn.display=!!(Mn.expanded&&Gn.display),typeof Mn.lazy=="boolean"&&(typeof Mn.loaded=="boolean"&&Mn.loaded&&(Gn.noLazyChildren=!(Mn.children&&Mn.children.length)),Gn.loading=Mn.loading)),Fn++,Yn.push(_n(qn,En+Fn,Gn)),Mn){const Qn=kn.value[Wn]||qn[Nn.value];Xn(Qn,Mn)}})};Mn.display=!0;const sr=kn.value[Ln]||Cn[Nn.value];Xn(sr,Mn)}return Yn}else return _n(Cn,En,void 0)},tooltipContent:xe,tooltipTrigger:Ie}}const defaultProps$2={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var TableBody=defineComponent({name:"ElTableBody",props:defaultProps$2,setup($){const z=getCurrentInstance(),oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table"),{wrappedRowRender:le,tooltipContent:ue,tooltipTrigger:pe}=useRender$1($),{onColumnsChange:_e,onScrollableChange:Ce}=useLayoutObserver(oe);return watch($.store.states.hoverRow,($e,xe)=>{if(!$.store.states.isComplex.value||!isClient$2)return;let Ie=window.requestAnimationFrame;Ie||(Ie=Fe=>window.setTimeout(Fe,16)),Ie(()=>{const Fe=z==null?void 0:z.vnode.el,ze=Array.from((Fe==null?void 0:Fe.children)||[]).filter(At=>At==null?void 0:At.classList.contains(`${ae.e("row")}`)),Ue=ze[xe],qe=ze[$e];Ue&&removeClass(Ue,"hover-row"),qe&&addClass(qe,"hover-row")})}),onUnmounted(()=>{var $e;($e=removePopper)==null||$e()}),{ns:ae,onColumnsChange:_e,onScrollableChange:Ce,wrappedRowRender:le,tooltipContent:ue,tooltipTrigger:pe}},render(){const{wrappedRowRender:$,store:z}=this,oe=z.states.data.value||[];return h$3("tbody",{},[oe.reduce((ae,le)=>ae.concat($(le,ae.length)),[])])}});function hColgroup($){const z=$.tableLayout==="auto";let oe=$.columns||[];z&&oe.every(le=>le.width===void 0)&&(oe=[]);const ae=le=>{const ue={key:`${$.tableLayout}_${le.id}`,style:{},name:void 0};return z?ue.style={width:`${le.width}px`}:ue.name=le.id,ue};return h$3("colgroup",{},oe.map(le=>h$3("col",ae(le))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const $=inject(TABLE_INJECTION_KEY),z=$==null?void 0:$.store,oe=computed(()=>z.states.fixedLeafColumnsLength.value),ae=computed(()=>z.states.rightFixedColumns.value.length),le=computed(()=>z.states.columns.value.length),ue=computed(()=>z.states.fixedColumns.value.length),pe=computed(()=>z.states.rightFixedColumns.value.length);return{leftFixedLeafCount:oe,rightFixedLeafCount:ae,columnsCount:le,leftFixedCount:ue,rightFixedCount:pe,columns:z.states.columns}}function useStyle$1($){const{columns:z}=useMapState(),oe=useNamespace("table");return{getCellClasses:(ue,pe)=>{const _e=ue[pe],Ce=[oe.e("cell"),_e.id,_e.align,_e.labelClassName,...getFixedColumnsClass(oe.b(),pe,_e.fixed,$.store)];return _e.className&&Ce.push(_e.className),_e.children||Ce.push(oe.is("leaf")),Ce},getCellStyles:(ue,pe)=>{const _e=getFixedColumnOffset(pe,ue.fixed,$.store);return ensurePosition(_e,"left"),ensurePosition(_e,"right"),_e},columns:z}}var TableFooter=defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup($){const{getCellClasses:z,getCellStyles:oe,columns:ae}=useStyle$1($);return{ns:useNamespace("table"),getCellClasses:z,getCellStyles:oe,columns:ae}},render(){const{columns:$,getCellStyles:z,getCellClasses:oe,summaryMethod:ae,sumText:le,ns:ue}=this,pe=this.store.states.data.value;let _e=[];return ae?_e=ae({columns:$,data:pe}):$.forEach((Ce,$e)=>{if($e===0){_e[$e]=le;return}const xe=pe.map(Ue=>Number(Ue[Ce.property])),Ie=[];let Fe=!0;xe.forEach(Ue=>{if(!Number.isNaN(+Ue)){Fe=!1;const qe=`${Ue}`.split(".")[1];Ie.push(qe?qe.length:0)}});const ze=Math.max.apply(null,Ie);Fe?_e[$e]="":_e[$e]=xe.reduce((Ue,qe)=>{const At=Number(qe);return Number.isNaN(+At)?Ue:Number.parseFloat((Ue+qe).toFixed(Math.min(ze,20)))},0)}),h$3("table",{class:ue.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:$}),h$3("tbody",[h$3("tr",{},[...$.map((Ce,$e)=>h$3("td",{key:$e,colspan:Ce.colSpan,rowspan:Ce.rowSpan,class:oe($,$e),style:z(Ce,$e)},[h$3("div",{class:["cell",Ce.labelClassName]},[_e[$e]])]))])])])}});function useUtils($){return{setCurrentRow:xe=>{$.commit("setCurrentRow",xe)},getSelectionRows:()=>$.getSelectionRows(),toggleRowSelection:(xe,Ie)=>{$.toggleRowSelection(xe,Ie,!1),$.updateAllSelected()},clearSelection:()=>{$.clearSelection()},clearFilter:xe=>{$.clearFilter(xe)},toggleAllSelection:()=>{$.commit("toggleAllSelection")},toggleRowExpansion:(xe,Ie)=>{$.toggleRowExpansionAdapter(xe,Ie)},clearSort:()=>{$.clearSort()},sort:(xe,Ie)=>{$.commit("sort",{prop:xe,order:Ie})}}}function useStyle($,z,oe,ae){const le=ref(!1),ue=ref(null),pe=ref(!1),_e=Ln=>{pe.value=Ln},Ce=ref({width:null,height:null,headerHeight:null}),$e=ref(!1),xe={display:"inline-block",verticalAlign:"middle"},Ie=ref(),Fe=ref(0),ze=ref(0),Ue=ref(0),qe=ref(0);watchEffect(()=>{z.setHeight($.height)}),watchEffect(()=>{z.setMaxHeight($.maxHeight)}),watch(()=>[$.currentRowKey,oe.states.rowKey],([Ln,Mn])=>{!unref(Mn)||!unref(Ln)||oe.setCurrentRowKey(`${Ln}`)},{immediate:!0}),watch(()=>$.data,Ln=>{ae.store.commit("setData",Ln)},{immediate:!0,deep:!0}),watchEffect(()=>{$.expandRowKeys&&oe.setExpandRowKeysAdapter($.expandRowKeys)});const At=()=>{ae.store.commit("setHoverRow",null),ae.hoverState&&(ae.hoverState=null)},Lt=(Ln,Mn)=>{const{pixelX:Vn,pixelY:Yn}=Mn;Math.abs(Vn)>=Math.abs(Yn)&&(ae.refs.bodyWrapper.scrollLeft+=Mn.pixelX/5)},hn=computed(()=>$.height||$.maxHeight||oe.states.fixedColumns.value.length>0||oe.states.rightFixedColumns.value.length>0),vn=computed(()=>({width:z.bodyWidth.value?`${z.bodyWidth.value}px`:""})),_n=()=>{hn.value&&z.updateElsHeight(),z.updateColumnsWidth(),requestAnimationFrame(En)};onMounted(async()=>{await nextTick(),oe.updateColumns(),$n(),requestAnimationFrame(_n);const Ln=ae.vnode.el,Mn=ae.refs.headerWrapper;$.flexible&&Ln&&Ln.parentElement&&(Ln.parentElement.style.minWidth="0"),Ce.value={width:Ie.value=Ln.offsetWidth,height:Ln.offsetHeight,headerHeight:$.showHeader&&Mn?Mn.offsetHeight:null},oe.states.columns.value.forEach(Vn=>{Vn.filteredValue&&Vn.filteredValue.length&&ae.store.commit("filterChange",{column:Vn,values:Vn.filteredValue,silent:!0})}),ae.$ready=!0});const bn=(Ln,Mn)=>{if(!Ln)return;const Vn=Array.from(Ln.classList).filter(Yn=>!Yn.startsWith("is-scrolling-"));Vn.push(z.scrollX.value?Mn:"is-scrolling-none"),Ln.className=Vn.join(" ")},Sn=Ln=>{const{tableWrapper:Mn}=ae.refs;bn(Mn,Ln)},Cn=Ln=>{const{tableWrapper:Mn}=ae.refs;return!!(Mn&&Mn.classList.contains(Ln))},En=function(){if(!ae.refs.scrollBarRef)return;if(!z.scrollX.value){const vr="is-scrolling-none";Cn(vr)||Sn(vr);return}const Ln=ae.refs.scrollBarRef.wrapRef;if(!Ln)return;const{scrollLeft:Mn,offsetWidth:Vn,scrollWidth:Yn}=Ln,{headerWrapper:Fn,footerWrapper:Xn}=ae.refs;Fn&&(Fn.scrollLeft=Mn),Xn&&(Xn.scrollLeft=Mn);const sr=Yn-Vn-1;Mn>=sr?Sn("is-scrolling-right"):Sn(Mn===0?"is-scrolling-left":"is-scrolling-middle")},$n=()=>{ae.refs.scrollBarRef&&(ae.refs.scrollBarRef.wrapRef&&useEventListener$1(ae.refs.scrollBarRef.wrapRef,"scroll",En,{passive:!0}),$.fit?useResizeObserver(ae.vnode.el,wn):useEventListener$1(window,"resize",wn),useResizeObserver(ae.refs.bodyWrapper,()=>{var Ln,Mn;wn(),(Mn=(Ln=ae.refs)==null?void 0:Ln.scrollBarRef)==null||Mn.update()}))},wn=()=>{var Ln,Mn,Vn;const Yn=ae.vnode.el;if(!ae.$ready||!Yn)return;let Fn=!1;const{width:Xn,height:sr,headerHeight:vr}=Ce.value,ar=Ie.value=Yn.offsetWidth;Xn!==ar&&(Fn=!0);const qn=Yn.offsetHeight;($.height||hn.value)&&sr!==qn&&(Fn=!0);const Gn=$.tableLayout==="fixed"?ae.refs.headerWrapper:(Ln=ae.refs.tableHeaderRef)==null?void 0:Ln.$el;$.showHeader&&(Gn==null?void 0:Gn.offsetHeight)!==vr&&(Fn=!0),Fe.value=((Mn=ae.refs.tableWrapper)==null?void 0:Mn.scrollHeight)||0,Ue.value=(Gn==null?void 0:Gn.scrollHeight)||0,qe.value=((Vn=ae.refs.footerWrapper)==null?void 0:Vn.offsetHeight)||0,ze.value=Fe.value-Ue.value-qe.value,Fn&&(Ce.value={width:ar,height:qn,headerHeight:$.showHeader&&(Gn==null?void 0:Gn.offsetHeight)||0},_n())},Tn=useFormSize(),xn=computed(()=>{const{bodyWidth:Ln,scrollY:Mn,gutterWidth:Vn}=z;return Ln.value?`${Ln.value-(Mn.value?Vn:0)}px`:""}),kn=computed(()=>$.maxHeight?"fixed":$.tableLayout),Nn=computed(()=>{if($.data&&$.data.length)return null;let Ln="100%";$.height&&ze.value&&(Ln=`${ze.value}px`);const Mn=Ie.value;return{width:Mn?`${Mn}px`:"",height:Ln}}),Bn=computed(()=>$.height?{height:Number.isNaN(Number($.height))?$.height:`${$.height}px`}:$.maxHeight?{maxHeight:Number.isNaN(Number($.maxHeight))?$.maxHeight:`${$.maxHeight}px`}:{}),Dn=computed(()=>{if($.height)return{height:"100%"};if($.maxHeight){if(Number.isNaN(Number($.maxHeight)))return{maxHeight:`calc(${$.maxHeight} - ${Ue.value+qe.value}px)`};{const Ln=$.maxHeight;if(Fe.value>=Number(Ln))return{maxHeight:`${Fe.value-Ue.value-qe.value}px`}}}return{}});return{isHidden:le,renderExpanded:ue,setDragVisible:_e,isGroup:$e,handleMouseLeave:At,handleHeaderFooterMousewheel:Lt,tableSize:Tn,emptyBlockStyle:Nn,handleFixedMousewheel:(Ln,Mn)=>{const Vn=ae.refs.bodyWrapper;if(Math.abs(Mn.spinY)>0){const Yn=Vn.scrollTop;Mn.pixelY<0&&Yn!==0&&Ln.preventDefault(),Mn.pixelY>0&&Vn.scrollHeight-Vn.clientHeight>Yn&&Ln.preventDefault(),Vn.scrollTop+=Math.ceil(Mn.pixelY/5)}else Vn.scrollLeft+=Math.ceil(Mn.pixelX/5)},resizeProxyVisible:pe,bodyWidth:xn,resizeState:Ce,doLayout:_n,tableBodyStyles:vn,tableLayout:kn,scrollbarViewStyle:xe,tableInnerStyle:Bn,scrollbarStyle:Dn}}function useKeyRender($){const z=ref(),oe=()=>{const le=$.vnode.el.querySelector(".hidden-columns"),ue={childList:!0,subtree:!0},pe=$.store.states.updateOrderFns;z.value=new MutationObserver(()=>{pe.forEach(_e=>_e())}),z.value.observe(le,ue)};onMounted(()=>{oe()}),onUnmounted(()=>{var ae;(ae=z.value)==null||ae.disconnect()})}var defaultProps$1={data:{type:Array,default:()=>[]},size:useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const useScrollbar$1=()=>{const $=ref(),z=(ue,pe)=>{const _e=$.value;_e&&_e.scrollTo(ue,pe)},oe=(ue,pe)=>{const _e=$.value;_e&&isNumber$5(pe)&&["Top","Left"].includes(ue)&&_e[`setScroll${ue}`](pe)};return{scrollBarRef:$,scrollTo:z,setScrollTop:ue=>oe("Top",ue),setScrollLeft:ue=>oe("Left",ue)}};let tableIdSeed=1;const _sfc_main$s=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$1,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup($){const{t:z}=useLocale(),oe=useNamespace("table"),ae=getCurrentInstance();provide(TABLE_INJECTION_KEY,ae);const le=createStore(ae,$);ae.store=le;const ue=new TableLayout({store:ae.store,table:ae,fit:$.fit,showHeader:$.showHeader});ae.layout=ue;const pe=computed(()=>(le.states.data.value||[]).length===0),{setCurrentRow:_e,getSelectionRows:Ce,toggleRowSelection:$e,clearSelection:xe,clearFilter:Ie,toggleAllSelection:Fe,toggleRowExpansion:ze,clearSort:Ue,sort:qe}=useUtils(le),{isHidden:At,renderExpanded:Lt,setDragVisible:hn,isGroup:vn,handleMouseLeave:_n,handleHeaderFooterMousewheel:bn,tableSize:Sn,emptyBlockStyle:Cn,handleFixedMousewheel:En,resizeProxyVisible:$n,bodyWidth:wn,resizeState:Tn,doLayout:xn,tableBodyStyles:kn,tableLayout:Nn,scrollbarViewStyle:Bn,tableInnerStyle:Dn,scrollbarStyle:In}=useStyle($,ue,le,ae),{scrollBarRef:Ln,scrollTo:Mn,setScrollLeft:Vn,setScrollTop:Yn}=useScrollbar$1(),Fn=debounce(xn,50),Xn=`${oe.namespace.value}-table_${tableIdSeed++}`;ae.tableId=Xn,ae.state={isGroup:vn,resizeState:Tn,doLayout:xn,debouncedUpdateLayout:Fn};const sr=computed(()=>$.sumText||z("el.table.sumText")),vr=computed(()=>$.emptyText||z("el.table.emptyText"));return useKeyRender(ae),{ns:oe,layout:ue,store:le,handleHeaderFooterMousewheel:bn,handleMouseLeave:_n,tableId:Xn,tableSize:Sn,isHidden:At,isEmpty:pe,renderExpanded:Lt,resizeProxyVisible:$n,resizeState:Tn,isGroup:vn,bodyWidth:wn,tableBodyStyles:kn,emptyBlockStyle:Cn,debouncedUpdateLayout:Fn,handleFixedMousewheel:En,setCurrentRow:_e,getSelectionRows:Ce,toggleRowSelection:$e,clearSelection:xe,clearFilter:Ie,toggleAllSelection:Fe,toggleRowExpansion:ze,clearSort:Ue,doLayout:xn,sort:qe,t:z,setDragVisible:hn,context:ae,computedSumText:sr,computedEmptyText:vr,tableLayout:Nn,scrollbarViewStyle:Bn,tableInnerStyle:Dn,scrollbarStyle:In,scrollBarRef:Ln,scrollTo:Mn,setScrollLeft:Vn,setScrollTop:Yn}}}),_hoisted_1$d=["data-prefix"],_hoisted_2$9={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$4($,z,oe,ae,le,ue){const pe=resolveComponent("hColgroup"),_e=resolveComponent("table-header"),Ce=resolveComponent("table-body"),$e=resolveComponent("el-scrollbar"),xe=resolveComponent("table-footer"),Ie=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[$.ns.m("fit")]:$.fit,[$.ns.m("striped")]:$.stripe,[$.ns.m("border")]:$.border||$.isGroup,[$.ns.m("hidden")]:$.isHidden,[$.ns.m("group")]:$.isGroup,[$.ns.m("fluid-height")]:$.maxHeight,[$.ns.m("scrollable-x")]:$.layout.scrollX.value,[$.ns.m("scrollable-y")]:$.layout.scrollY.value,[$.ns.m("enable-row-hover")]:!$.store.states.isComplex.value,[$.ns.m("enable-row-transition")]:($.store.states.data.value||[]).length!==0&&($.store.states.data.value||[]).length<100,"has-footer":$.showSummary},$.ns.m($.tableSize),$.className,$.ns.b(),$.ns.m(`layout-${$.tableLayout}`)]),style:normalizeStyle$1($.style),"data-prefix":$.ns.namespace.value,onMouseleave:z[0]||(z[0]=(...Fe)=>$.handleMouseLeave&&$.handleMouseLeave(...Fe))},[createBaseVNode("div",{class:normalizeClass($.ns.e("inner-wrapper")),style:normalizeStyle$1($.tableInnerStyle)},[createBaseVNode("div",_hoisted_2$9,[renderSlot($.$slots,"default")],512),$.showHeader&&$.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass($.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass($.ns.e("header")),style:normalizeStyle$1($.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(pe,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),createVNode(_e,{ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[Ie,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass($.ns.e("body-wrapper"))},[createVNode($e,{ref:"scrollBarRef","view-style":$.scrollbarViewStyle,"wrap-style":$.scrollbarStyle,always:$.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass($.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:$.bodyWidth,tableLayout:$.tableLayout})},[createVNode(pe,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),$.showHeader&&$.tableLayout==="auto"?(openBlock(),createBlock(_e,{key:0,ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode(Ce,{context:$.context,highlight:$.highlightCurrentRow,"row-class-name":$.rowClassName,"tooltip-effect":$.tooltipEffect,"tooltip-options":$.tooltipOptions,"row-style":$.rowStyle,store:$.store,stripe:$.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1($.emptyBlockStyle),class:normalizeClass($.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},[renderSlot($.$slots,"empty",{},()=>[createTextVNode(toDisplayString$1($.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),$.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass($.ns.e("append-wrapper"))},[renderSlot($.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),$.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass($.ns.e("footer-wrapper"))},[createVNode(xe,{border:$.border,"default-sort":$.defaultSort,store:$.store,style:normalizeStyle$1($.tableBodyStyles),"sum-text":$.computedSumText,"summary-method":$.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!$.isEmpty],[Ie,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),$.border||$.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],6),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass($.ns.e("column-resize-proxy"))},null,2),[[vShow,$.resizeProxyVisible]])],46,_hoisted_1$d)}var Table=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$4],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const defaultClassNames={selection:"table-column--selection",expand:"table__expand-column"},cellStarts={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},getDefaultClassName=$=>defaultClassNames[$]||"",cellForced={selection:{renderHeader({store:$}){function z(){return $.states.data.value&&$.states.data.value.length===0}return h$3(ElCheckbox,{disabled:z(),size:$.states.tableSize.value,indeterminate:$.states.selection.value.length>0&&!$.states.isAllSelected.value,"onUpdate:modelValue":$.toggleAllSelection,modelValue:$.states.isAllSelected.value})},renderCell({row:$,column:z,store:oe,$index:ae}){return h$3(ElCheckbox,{disabled:z.selectable?!z.selectable.call(null,$,ae):!1,size:oe.states.tableSize.value,onChange:()=>{oe.commit("rowSelectedChanged",$)},onClick:le=>le.stopPropagation(),modelValue:oe.isSelected($)})},sortable:!1,resizable:!1},index:{renderHeader({column:$}){return $.label||"#"},renderCell({column:$,$index:z}){let oe=z+1;const ae=$.index;return typeof ae=="number"?oe=z+ae:typeof ae=="function"&&(oe=ae(z)),h$3("div",{},[oe])},sortable:!1},expand:{renderHeader({column:$}){return $.label||""},renderCell({row:$,store:z,expanded:oe}){const{ns:ae}=z,le=[ae.e("expand-icon")];return oe&&le.push(ae.em("expand-icon","expanded")),h$3("div",{class:le,onClick:function(pe){pe.stopPropagation(),z.toggleRowExpansion($)}},{default:()=>[h$3(ElIcon,null,{default:()=>[h$3(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:$,column:z,$index:oe}){var ae;const le=z.property,ue=le&&getProp($,le).value;return z&&z.formatter?z.formatter($,z,ue,oe):((ae=ue==null?void 0:ue.toString)==null?void 0:ae.call(ue))||""}function treeCellPrefix({row:$,treeNode:z,store:oe},ae=!1){const{ns:le}=oe;if(!z)return ae?[h$3("span",{class:le.e("placeholder")})]:null;const ue=[],pe=function(_e){_e.stopPropagation(),!z.loading&&oe.loadOrToggle($)};if(z.indent&&ue.push(h$3("span",{class:le.e("indent"),style:{"padding-left":`${z.indent}px`}})),typeof z.expanded=="boolean"&&!z.noLazyChildren){const _e=[le.e("expand-icon"),z.expanded?le.em("expand-icon","expanded"):""];let Ce=arrow_right_default;z.loading&&(Ce=loading_default),ue.push(h$3("div",{class:_e,onClick:pe},{default:()=>[h$3(ElIcon,{class:{[le.is("loading")]:z.loading}},{default:()=>[h$3(Ce)]})]}))}else ue.push(h$3("span",{class:le.e("placeholder")}));return ue}function getAllAliases($,z){return $.reduce((oe,ae)=>(oe[ae]=ae,oe),z)}function useWatcher($,z){const oe=getCurrentInstance();return{registerComplexWatchers:()=>{const ue=["fixed"],pe={realWidth:"width",realMinWidth:"minWidth"},_e=getAllAliases(ue,pe);Object.keys(_e).forEach(Ce=>{const $e=pe[Ce];hasOwn$4(z,$e)&&watch(()=>z[$e],xe=>{let Ie=xe;$e==="width"&&Ce==="realWidth"&&(Ie=parseWidth(xe)),$e==="minWidth"&&Ce==="realMinWidth"&&(Ie=parseMinWidth(xe)),oe.columnConfig.value[$e]=Ie,oe.columnConfig.value[Ce]=Ie;const Fe=$e==="fixed";$.value.store.scheduleLayout(Fe)})})},registerNormalWatchers:()=>{const ue=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],pe={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},_e=getAllAliases(ue,pe);Object.keys(_e).forEach(Ce=>{const $e=pe[Ce];hasOwn$4(z,$e)&&watch(()=>z[$e],xe=>{oe.columnConfig.value[Ce]=xe})})}}}function useRender($,z,oe){const ae=getCurrentInstance(),le=ref(""),ue=ref(!1),pe=ref(),_e=ref(),Ce=useNamespace("table");watchEffect(()=>{pe.value=$.align?`is-${$.align}`:null,pe.value}),watchEffect(()=>{_e.value=$.headerAlign?`is-${$.headerAlign}`:pe.value,_e.value});const $e=computed(()=>{let _n=ae.vnode.vParent||ae.parent;for(;_n&&!_n.tableId&&!_n.columnId;)_n=_n.vnode.vParent||_n.parent;return _n}),xe=computed(()=>{const{store:_n}=ae.parent;if(!_n)return!1;const{treeData:bn}=_n.states,Sn=bn.value;return Sn&&Object.keys(Sn).length>0}),Ie=ref(parseWidth($.width)),Fe=ref(parseMinWidth($.minWidth)),ze=_n=>(Ie.value&&(_n.width=Ie.value),Fe.value&&(_n.minWidth=Fe.value),!Ie.value&&Fe.value&&(_n.width=void 0),_n.minWidth||(_n.minWidth=80),_n.realWidth=Number(_n.width===void 0?_n.minWidth:_n.width),_n),Ue=_n=>{const bn=_n.type,Sn=cellForced[bn]||{};Object.keys(Sn).forEach(En=>{const $n=Sn[En];En!=="className"&&$n!==void 0&&(_n[En]=$n)});const Cn=getDefaultClassName(bn);if(Cn){const En=`${unref(Ce.namespace)}-${Cn}`;_n.className=_n.className?`${_n.className} ${En}`:En}return _n},qe=_n=>{Array.isArray(_n)?_n.forEach(Sn=>bn(Sn)):bn(_n);function bn(Sn){var Cn;((Cn=Sn==null?void 0:Sn.type)==null?void 0:Cn.name)==="ElTableColumn"&&(Sn.vParent=ae)}};return{columnId:le,realAlign:pe,isSubColumn:ue,realHeaderAlign:_e,columnOrTableParent:$e,setColumnWidth:ze,setColumnForcedProps:Ue,setColumnRenders:_n=>{$.renderHeader||_n.type!=="selection"&&(_n.renderHeader=Sn=>{ae.columnConfig.value.label;const Cn=z.header;return Cn?Cn(Sn):_n.label});let bn=_n.renderCell;return _n.type==="expand"?(_n.renderCell=Sn=>h$3("div",{class:"cell"},[bn(Sn)]),oe.value.renderExpanded=Sn=>z.default?z.default(Sn):z.default):(bn=bn||defaultRenderCell,_n.renderCell=Sn=>{let Cn=null;if(z.default){const kn=z.default(Sn);Cn=kn.some(Nn=>Nn.type!==Comment)?kn:bn(Sn)}else Cn=bn(Sn);const{columns:En}=oe.value.store.states,$n=En.value.findIndex(kn=>kn.type==="default"),wn=xe.value&&Sn.cellIndex===$n,Tn=treeCellPrefix(Sn,wn),xn={class:"cell",style:{}};return _n.showOverflowTooltip&&(xn.class=`${xn.class} ${unref(Ce.namespace)}-tooltip`,xn.style={width:`${(Sn.column.realWidth||Number(Sn.column.width))-1}px`}),qe(Cn),h$3("div",xn,[Tn,Cn])}),_n},getPropsData:(..._n)=>_n.reduce((bn,Sn)=>(Array.isArray(Sn)&&Sn.forEach(Cn=>{bn[Cn]=$[Cn]}),bn),{}),getColumnElIndex:(_n,bn)=>Array.prototype.indexOf.call(_n,bn),updateColumnOrder:()=>{oe.value.store.commit("updateColumnOrder",ae.columnConfig.value)}}}var defaultProps={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:$=>$.every(z=>["ascending","descending",null].includes(z))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup($,{slots:z}){const oe=getCurrentInstance(),ae=ref({}),le=computed(()=>{let vn=oe.parent;for(;vn&&!vn.tableId;)vn=vn.parent;return vn}),{registerNormalWatchers:ue,registerComplexWatchers:pe}=useWatcher(le,$),{columnId:_e,isSubColumn:Ce,realHeaderAlign:$e,columnOrTableParent:xe,setColumnWidth:Ie,setColumnForcedProps:Fe,setColumnRenders:ze,getPropsData:Ue,getColumnElIndex:qe,realAlign:At,updateColumnOrder:Lt}=useRender($,z,le),hn=xe.value;_e.value=`${hn.tableId||hn.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{Ce.value=le.value!==hn;const vn=$.type||"default",_n=$.sortable===""?!0:$.sortable,bn={...cellStarts[vn],id:_e.value,type:vn,property:$.prop||$.property,align:At,headerAlign:$e,showOverflowTooltip:$.showOverflowTooltip,filterable:$.filters||$.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_n,index:$.index,rawColumnKey:oe.vnode.key};let wn=Ue(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);wn=mergeOptions$1(bn,wn),wn=compose(ze,Ie,Fe)(wn),ae.value=wn,ue(),pe()}),onMounted(()=>{var vn;const _n=xe.value,bn=Ce.value?_n.vnode.el.children:(vn=_n.refs.hiddenColumns)==null?void 0:vn.children,Sn=()=>qe(bn||[],oe.vnode.el);ae.value.getColumnIndex=Sn,Sn()>-1&&le.value.store.commit("insertColumn",ae.value,Ce.value?_n.columnConfig.value:null,Lt)}),onBeforeUnmount(()=>{le.value.store.commit("removeColumn",ae.value,Ce.value?hn.columnConfig.value:null,Lt)}),oe.columnId=_e.value,oe.columnConfig=ae},render(){var $,z,oe;try{const ae=(z=($=this.$slots).default)==null?void 0:z.call($,{row:{},column:{},$index:-1}),le=[];if(Array.isArray(ae))for(const pe of ae)((oe=pe.type)==null?void 0:oe.name)==="ElTableColumn"||pe.shapeFlag&2?le.push(pe):pe.type===Fragment&&Array.isArray(pe.children)&&pe.children.forEach(_e=>{(_e==null?void 0:_e.patchFlag)!==1024&&!isString$7(_e==null?void 0:_e.children)&&le.push(_e)});return h$3("div",le)}catch{return h$3("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=($=>($.ASC="asc",$.DESC="desc",$))(SortOrder||{}),Alignment=($=>($.CENTER="center",$.RIGHT="right",$))(Alignment||{}),FixedDir=($=>($.LEFT="left",$.RIGHT="right",$))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=($,z,oe)=>{var ae;const le={flexGrow:0,flexShrink:0,...oe?{}:{flexGrow:$.flexGrow||0,flexShrink:$.flexShrink||1}};oe||(le.flexShrink=1);const ue={...(ae=$.style)!=null?ae:{},...le,flexBasis:"auto",width:$.width};return z||($.maxWidth&&(ue.maxWidth=$.maxWidth),$.minWidth&&(ue.minWidth=$.minWidth)),ue};function useColumns($,z,oe){const ae=computed(()=>unref(z).filter(qe=>!qe.hidden)),le=computed(()=>unref(ae).filter(qe=>qe.fixed==="left"||qe.fixed===!0)),ue=computed(()=>unref(ae).filter(qe=>qe.fixed==="right")),pe=computed(()=>unref(ae).filter(qe=>!qe.fixed)),_e=computed(()=>{const qe=[];return unref(le).forEach(At=>{qe.push({...At,placeholderSign})}),unref(pe).forEach(At=>{qe.push(At)}),unref(ue).forEach(At=>{qe.push({...At,placeholderSign})}),qe}),Ce=computed(()=>unref(le).length||unref(ue).length),$e=computed(()=>unref(z).reduce((At,Lt)=>(At[Lt.key]=calcColumnStyle(Lt,unref(oe),$.fixed),At),{})),xe=computed(()=>unref(ae).reduce((qe,At)=>qe+At.width,0)),Ie=qe=>unref(z).find(At=>At.key===qe),Fe=qe=>unref($e)[qe],ze=(qe,At)=>{qe.width=At};function Ue(qe){var At;const{key:Lt}=qe.currentTarget.dataset;if(!Lt)return;const{sortState:hn,sortBy:vn}=$;let _n=SortOrder.ASC;isObject$8(hn)?_n=oppositeOrderMap[hn[Lt]]:_n=oppositeOrderMap[vn.order],(At=$.onColumnSort)==null||At.call($,{column:Ie(Lt),key:Lt,order:_n})}return{columns:z,columnsStyles:$e,columnsTotalWidth:xe,fixedColumnsOnLeft:le,fixedColumnsOnRight:ue,hasFixedColumns:Ce,mainColumns:_e,normalColumns:pe,visibleColumns:ae,getColumn:Ie,getColumnStyle:Fe,updateColumnWidth:ze,onColumnSorted:Ue}}const useScrollbar=($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae,onMaybeEndReached:le})=>{const ue=ref({scrollLeft:0,scrollTop:0});function pe(ze){var Ue,qe,At;const{scrollTop:Lt}=ze;(Ue=z.value)==null||Ue.scrollTo(ze),(qe=oe.value)==null||qe.scrollToTop(Lt),(At=ae.value)==null||At.scrollToTop(Lt)}function _e(ze){ue.value=ze,pe(ze)}function Ce(ze){ue.value.scrollTop=ze,pe(unref(ue))}function $e(ze){var Ue,qe;ue.value.scrollLeft=ze,(qe=(Ue=z.value)==null?void 0:Ue.scrollTo)==null||qe.call(Ue,unref(ue))}function xe(ze){var Ue;_e(ze),(Ue=$.onScroll)==null||Ue.call($,ze)}function Ie({scrollTop:ze}){const{scrollTop:Ue}=unref(ue);ze!==Ue&&Ce(ze)}function Fe(ze,Ue="auto"){var qe;(qe=z.value)==null||qe.scrollToRow(ze,Ue)}return watch(()=>unref(ue).scrollTop,(ze,Ue)=>{ze>Ue&&le()}),{scrollPos:ue,scrollTo:_e,scrollToLeft:$e,scrollToTop:Ce,scrollToRow:Fe,onScroll:xe,onVerticalScroll:Ie}},useRow=($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae})=>{const le=getCurrentInstance(),{emit:ue}=le,pe=shallowRef(!1),_e=shallowRef(null),Ce=ref($.defaultExpandedRowKeys||[]),$e=ref(-1),xe=shallowRef(null),Ie=ref({}),Fe=ref({}),ze=shallowRef({}),Ue=shallowRef({}),qe=shallowRef({}),At=computed(()=>isNumber$5($.estimatedRowHeight));function Lt(En){var $n;($n=$.onRowsRendered)==null||$n.call($,En),En.rowCacheEnd>unref($e)&&($e.value=En.rowCacheEnd)}function hn({hovered:En,rowKey:$n}){_e.value=En?$n:null}function vn({expanded:En,rowData:$n,rowIndex:wn,rowKey:Tn}){var xn,kn;const Nn=[...unref(Ce)],Bn=Nn.indexOf(Tn);En?Bn===-1&&Nn.push(Tn):Bn>-1&&Nn.splice(Bn,1),Ce.value=Nn,ue("update:expandedRowKeys",Nn),(xn=$.onRowExpand)==null||xn.call($,{expanded:En,rowData:$n,rowIndex:wn,rowKey:Tn}),(kn=$.onExpandedRowsChange)==null||kn.call($,Nn)}const _n=debounce(()=>{var En,$n,wn,Tn;pe.value=!0,Ie.value={...unref(Ie),...unref(Fe)},bn(unref(xe),!1),Fe.value={},xe.value=null,(En=z.value)==null||En.forceUpdate(),($n=oe.value)==null||$n.forceUpdate(),(wn=ae.value)==null||wn.forceUpdate(),(Tn=le.proxy)==null||Tn.$forceUpdate(),pe.value=!1},0);function bn(En,$n=!1){unref(At)&&[z,oe,ae].forEach(wn=>{const Tn=unref(wn);Tn&&Tn.resetAfterRowIndex(En,$n)})}function Sn(En,$n,wn){const Tn=unref(xe);(Tn===null||Tn>wn)&&(xe.value=wn),Fe.value[En]=$n}function Cn({rowKey:En,height:$n,rowIndex:wn},Tn){Tn?Tn===FixedDir.RIGHT?qe.value[En]=$n:ze.value[En]=$n:Ue.value[En]=$n;const xn=Math.max(...[ze,qe,Ue].map(kn=>kn.value[En]||0));unref(Ie)[En]!==xn&&(Sn(En,xn,wn),_n())}return{hoveringRowKey:_e,expandedRowKeys:Ce,lastRenderedRowIndex:$e,isDynamic:At,isResetting:pe,rowHeights:Ie,resetAfterIndex:bn,onRowExpanded:vn,onRowHovered:hn,onRowsRendered:Lt,onRowHeightChange:Cn}},useData=($,{expandedRowKeys:z,lastRenderedRowIndex:oe,resetAfterIndex:ae})=>{const le=ref({}),ue=computed(()=>{const _e={},{data:Ce,rowKey:$e}=$,xe=unref(z);if(!xe||!xe.length)return Ce;const Ie=[],Fe=new Set;xe.forEach(Ue=>Fe.add(Ue));let ze=Ce.slice();for(ze.forEach(Ue=>_e[Ue[$e]]=0);ze.length>0;){const Ue=ze.shift();Ie.push(Ue),Fe.has(Ue[$e])&&Array.isArray(Ue.children)&&Ue.children.length>0&&(ze=[...Ue.children,...ze],Ue.children.forEach(qe=>_e[qe[$e]]=_e[Ue[$e]]+1))}return le.value=_e,Ie}),pe=computed(()=>{const{data:_e,expandColumnKey:Ce}=$;return Ce?unref(ue):_e});return watch(pe,(_e,Ce)=>{_e!==Ce&&(oe.value=-1,ae(0,!0))}),{data:pe,depthMap:le}},sumReducer=($,z)=>$+z,sum=$=>isArray$c($)?$.reduce(sumReducer,0):$,tryCall=($,z,oe={})=>isFunction$5($)?$(z):$??oe,enforceUnit=$=>(["width","maxWidth","minWidth","height"].forEach(z=>{$[z]=addUnit($[z])}),$),componentToSlot=$=>isVNode$1($)?z=>h$3($,z):$,useStyles=($,{columnsTotalWidth:z,data:oe,fixedColumnsOnLeft:ae,fixedColumnsOnRight:le})=>{const ue=computed(()=>{const{fixed:vn,width:_n,vScrollbarSize:bn}=$,Sn=_n-bn;return vn?Math.max(Math.round(unref(z)),Sn):Sn}),pe=computed(()=>unref(ue)+($.fixed?$.vScrollbarSize:0)),_e=computed(()=>{const{height:vn=0,maxHeight:_n=0,footerHeight:bn,hScrollbarSize:Sn}=$;if(_n>0){const Cn=unref(Ue),En=unref(Ce),wn=unref(ze)+Cn+En+Sn;return Math.min(wn,_n-bn)}return vn-bn}),Ce=computed(()=>{const{rowHeight:vn,estimatedRowHeight:_n}=$,bn=unref(oe);return isNumber$5(_n)?bn.length*_n:bn.length*vn}),$e=computed(()=>{const{maxHeight:vn}=$,_n=unref(_e);if(isNumber$5(vn)&&vn>0)return _n;const bn=unref(Ce)+unref(ze)+unref(Ue);return Math.min(_n,bn)}),xe=vn=>vn.width,Ie=computed(()=>sum(unref(ae).map(xe))),Fe=computed(()=>sum(unref(le).map(xe))),ze=computed(()=>sum($.headerHeight)),Ue=computed(()=>{var vn;return(((vn=$.fixedData)==null?void 0:vn.length)||0)*$.rowHeight}),qe=computed(()=>unref(_e)-unref(ze)-unref(Ue)),At=computed(()=>{const{style:vn={},height:_n,width:bn}=$;return enforceUnit({...vn,height:_n,width:bn})}),Lt=computed(()=>enforceUnit({height:$.footerHeight})),hn=computed(()=>({top:addUnit(unref(ze)),bottom:addUnit($.footerHeight),width:addUnit($.width)}));return{bodyWidth:ue,fixedTableHeight:$e,mainTableHeight:_e,leftTableWidth:Ie,rightTableWidth:Fe,headerWidth:pe,rowsHeight:Ce,windowHeight:qe,footerHeight:Lt,emptyStyle:hn,rootStyle:At,headerHeight:ze}},useAutoResize=$=>{const z=ref(),oe=ref(0),ae=ref(0);let le;return onMounted(()=>{le=useResizeObserver(z,([ue])=>{const{width:pe,height:_e}=ue.contentRect,{paddingLeft:Ce,paddingRight:$e,paddingTop:xe,paddingBottom:Ie}=getComputedStyle(ue.target),Fe=Number.parseInt(Ce)||0,ze=Number.parseInt($e)||0,Ue=Number.parseInt(xe)||0,qe=Number.parseInt(Ie)||0;oe.value=pe-Fe-ze,ae.value=_e-Ue-qe}).stop}),onBeforeUnmount(()=>{le==null||le()}),watch([oe,ae],([ue,pe])=>{var _e;(_e=$.onResize)==null||_e.call($,{width:ue,height:pe})}),{sizer:z,width:oe,height:ae}};function useTable($){const z=ref(),oe=ref(),ae=ref(),{columns:le,columnsStyles:ue,columnsTotalWidth:pe,fixedColumnsOnLeft:_e,fixedColumnsOnRight:Ce,hasFixedColumns:$e,mainColumns:xe,onColumnSorted:Ie}=useColumns($,toRef$1($,"columns"),toRef$1($,"fixed")),{scrollTo:Fe,scrollToLeft:ze,scrollToTop:Ue,scrollToRow:qe,onScroll:At,onVerticalScroll:Lt,scrollPos:hn}=useScrollbar($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae,onMaybeEndReached:jn}),{expandedRowKeys:vn,hoveringRowKey:_n,lastRenderedRowIndex:bn,isDynamic:Sn,isResetting:Cn,rowHeights:En,resetAfterIndex:$n,onRowExpanded:wn,onRowHeightChange:Tn,onRowHovered:xn,onRowsRendered:kn}=useRow($,{mainTableRef:z,leftTableRef:oe,rightTableRef:ae}),{data:Nn,depthMap:Bn}=useData($,{expandedRowKeys:vn,lastRenderedRowIndex:bn,resetAfterIndex:$n}),{bodyWidth:Dn,fixedTableHeight:In,mainTableHeight:Ln,leftTableWidth:Mn,rightTableWidth:Vn,headerWidth:Yn,rowsHeight:Fn,windowHeight:Xn,footerHeight:sr,emptyStyle:vr,rootStyle:ar,headerHeight:qn}=useStyles($,{columnsTotalWidth:pe,data:Nn,fixedColumnsOnLeft:_e,fixedColumnsOnRight:Ce}),Gn=shallowRef(!1),Wn=ref(),Qn=computed(()=>{const Zn=unref(Nn).length===0;return isArray$c($.fixedData)?$.fixedData.length===0&&Zn:Zn});function cr(Zn){const{estimatedRowHeight:nr,rowHeight:hr,rowKey:gr}=$;return nr?unref(En)[unref(Nn)[Zn][gr]]||nr:hr}function jn(){const{onEndReached:Zn}=$;if(!Zn)return;const{scrollTop:nr}=unref(hn),hr=unref(Fn),gr=unref(Xn),or=hr-(nr+gr)+$.hScrollbarSize;unref(bn)>=0&&hr===nr+unref(Ln)-unref(qn)&&Zn(or)}return watch(()=>$.expandedRowKeys,Zn=>vn.value=Zn,{deep:!0}),{columns:le,containerRef:Wn,mainTableRef:z,leftTableRef:oe,rightTableRef:ae,isDynamic:Sn,isResetting:Cn,isScrolling:Gn,hoveringRowKey:_n,hasFixedColumns:$e,columnsStyles:ue,columnsTotalWidth:pe,data:Nn,expandedRowKeys:vn,depthMap:Bn,fixedColumnsOnLeft:_e,fixedColumnsOnRight:Ce,mainColumns:xe,bodyWidth:Dn,emptyStyle:vr,rootStyle:ar,headerWidth:Yn,footerHeight:sr,mainTableHeight:Ln,fixedTableHeight:In,leftTableWidth:Mn,rightTableWidth:Vn,showEmpty:Qn,getRowHeight:cr,onColumnSorted:Ie,onRowHovered:xn,onRowExpanded:wn,onRowsRendered:kn,onRowHeightChange:Tn,scrollTo:Fe,scrollToLeft:ze,scrollToTop:Ue,scrollToRow:qe,onScroll:At,onVerticalScroll:Lt}}const TableV2InjectionKey=Symbol("tableV2"),classType=String,columns={type:definePropType(Array),required:!0},fixedDataType={type:definePropType(Array)},dataType={...fixedDataType,required:!0},expandColumnKey=String,expandKeys={type:definePropType(Array),default:()=>mutable([])},requiredNumber={type:Number,required:!0},rowKey={type:definePropType([String,Number,Symbol]),default:"id"},styleType={type:definePropType(Object)},tableV2RowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},depth:Number,expandColumnKey,estimatedRowHeight:{...virtualizedGridProps.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:definePropType(Function)},onRowHover:{type:definePropType(Function)},onRowHeightChange:{type:definePropType(Function)},rowData:{type:definePropType(Object),required:!0},rowEventHandlers:{type:definePropType(Object)},rowIndex:{type:Number,required:!0},rowKey,style:{type:definePropType(Object)}}),requiredNumberType={type:Number,required:!0},tableV2HeaderProps=buildProps({class:String,columns,fixedHeaderData:{type:definePropType(Array)},headerData:{type:definePropType(Array),required:!0},headerHeight:{type:definePropType([Number,Array]),default:50},rowWidth:requiredNumberType,rowHeight:{type:Number,default:50},height:requiredNumberType,width:requiredNumberType}),tableV2GridProps=buildProps({columns,data:dataType,fixedData:fixedDataType,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,width:requiredNumber,height:requiredNumber,headerWidth:requiredNumber,headerHeight:tableV2HeaderProps.headerHeight,bodyWidth:requiredNumber,rowHeight:requiredNumber,cache:virtualizedListProps.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:virtualizedGridProps.scrollbarAlwaysOn,scrollbarStartGap:virtualizedGridProps.scrollbarStartGap,scrollbarEndGap:virtualizedGridProps.scrollbarEndGap,class:classType,style:styleType,containerStyle:styleType,getRowHeight:{type:definePropType(Function),required:!0},rowKey:tableV2RowProps.rowKey,onRowsRendered:{type:definePropType(Function)},onScroll:{type:definePropType(Function)}}),tableV2Props=buildProps({cache:tableV2GridProps.cache,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,rowKey,headerClass:{type:definePropType([String,Function])},headerProps:{type:definePropType([Object,Function])},headerCellProps:{type:definePropType([Object,Function])},headerHeight:tableV2HeaderProps.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:definePropType([String,Function])},rowProps:{type:definePropType([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:definePropType([Object,Function])},columns,data:dataType,dataGetter:{type:definePropType(Function)},fixedData:fixedDataType,expandColumnKey:tableV2RowProps.expandColumnKey,expandedRowKeys:expandKeys,defaultExpandedRowKeys:expandKeys,class:classType,fixed:Boolean,style:{type:definePropType(Object)},width:requiredNumber,height:requiredNumber,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:virtualizedGridProps.hScrollbarSize,vScrollbarSize:virtualizedGridProps.vScrollbarSize,scrollbarAlwaysOn:virtualizedScrollbarProps.alwaysOn,sortBy:{type:definePropType(Object),default:()=>({})},sortState:{type:definePropType(Object),default:void 0},onColumnSort:{type:definePropType(Function)},onExpandedRowsChange:{type:definePropType(Function)},onEndReached:{type:definePropType(Function)},onRowExpand:tableV2RowProps.onRowExpand,onScroll:tableV2GridProps.onScroll,onRowsRendered:tableV2GridProps.onRowsRendered,rowEventHandlers:tableV2RowProps.rowEventHandlers}),TableV2Cell=($,{slots:z})=>{var oe;const{cellData:ae,style:le}=$,ue=((oe=ae==null?void 0:ae.toString)==null?void 0:oe.call(ae))||"";return createVNode("div",{class:$.class,title:ue,style:le},[z.default?z.default($):ue])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=($,{slots:z})=>{var oe,ae;return z.default?z.default($):createVNode("div",{class:$.class,title:(oe=$.column)==null?void 0:oe.title},[(ae=$.column)==null?void 0:ae.title])};HeaderCell.displayName="ElTableV2HeaderCell";HeaderCell.inheritAttrs=!1;const tableV2HeaderRowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},headerIndex:Number,style:{type:definePropType(Object)}}),TableV2HeaderRow=defineComponent({name:"ElTableV2HeaderRow",props:tableV2HeaderRowProps,setup($,{slots:z}){return()=>{const{columns:oe,columnsStyles:ae,headerIndex:le,style:ue}=$;let pe=oe.map((_e,Ce)=>z.cell({columns:oe,column:_e,columnIndex:Ce,headerIndex:le,style:ae[_e.key]}));return z.header&&(pe=z.header({cells:pe.map(_e=>isArray$c(_e)&&_e.length===1?_e[0]:_e),columns:oe,headerIndex:le})),createVNode("div",{class:$.class,style:ue,role:"row"},[pe])}}}),COMPONENT_NAME$7="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$7,props:tableV2HeaderProps,setup($,{slots:z,expose:oe}){const ae=useNamespace("table-v2"),le=ref(),ue=computed(()=>enforceUnit({width:$.width,height:$.height})),pe=computed(()=>enforceUnit({width:$.rowWidth,height:$.height})),_e=computed(()=>castArray$1(unref($.headerHeight))),Ce=Ie=>{const Fe=unref(le);nextTick(()=>{Fe!=null&&Fe.scroll&&Fe.scroll({left:Ie})})},$e=()=>{const Ie=ae.e("fixed-header-row"),{columns:Fe,fixedHeaderData:ze,rowHeight:Ue}=$;return ze==null?void 0:ze.map((qe,At)=>{var Lt;const hn=enforceUnit({height:Ue,width:"100%"});return(Lt=z.fixed)==null?void 0:Lt.call(z,{class:Ie,columns:Fe,rowData:qe,rowIndex:-(At+1),style:hn})})},xe=()=>{const Ie=ae.e("dynamic-header-row"),{columns:Fe}=$;return unref(_e).map((ze,Ue)=>{var qe;const At=enforceUnit({width:"100%",height:ze});return(qe=z.dynamic)==null?void 0:qe.call(z,{class:Ie,columns:Fe,headerIndex:Ue,style:At})})};return oe({scrollToLeft:Ce}),()=>{if(!($.height<=0))return createVNode("div",{ref:le,class:$.class,style:unref(ue),role:"rowgroup"},[createVNode("div",{style:unref(pe),class:ae.e("header")},[xe(),$e()])])}}}),useTableRow=$=>{const{isScrolling:z}=inject(TableV2InjectionKey),oe=ref(!1),ae=ref(),le=computed(()=>isNumber$5($.estimatedRowHeight)&&$.rowIndex>=0),ue=(Ce=!1)=>{const $e=unref(ae);if(!$e)return;const{columns:xe,onRowHeightChange:Ie,rowKey:Fe,rowIndex:ze,style:Ue}=$,{height:qe}=$e.getBoundingClientRect();oe.value=!0,nextTick(()=>{if(Ce||qe!==Number.parseInt(Ue.height)){const At=xe[0],Lt=(At==null?void 0:At.placeholderSign)===placeholderSign;Ie==null||Ie({rowKey:Fe,height:qe,rowIndex:ze},At&&!Lt&&At.fixed)}})},pe=computed(()=>{const{rowData:Ce,rowIndex:$e,rowKey:xe,onRowHover:Ie}=$,Fe=$.rowEventHandlers||{},ze={};return Object.entries(Fe).forEach(([Ue,qe])=>{isFunction$5(qe)&&(ze[Ue]=At=>{qe({event:At,rowData:Ce,rowIndex:$e,rowKey:xe})})}),Ie&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:Ue,hovered:qe})=>{const At=ze[Ue];ze[Ue]=Lt=>{Ie({event:Lt,hovered:qe,rowData:Ce,rowIndex:$e,rowKey:xe}),At==null||At(Lt)}}),ze}),_e=Ce=>{const{onRowExpand:$e,rowData:xe,rowIndex:Ie,rowKey:Fe}=$;$e==null||$e({expanded:Ce,rowData:xe,rowIndex:Ie,rowKey:Fe})};return onMounted(()=>{unref(le)&&ue(!0)}),{isScrolling:z,measurable:le,measured:oe,rowRef:ae,eventHandlers:pe,onExpand:_e}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup($,{expose:z,slots:oe,attrs:ae}){const{eventHandlers:le,isScrolling:ue,measurable:pe,measured:_e,rowRef:Ce,onExpand:$e}=useTableRow($);return z({onExpand:$e}),()=>{const{columns:xe,columnsStyles:Ie,expandColumnKey:Fe,depth:ze,rowData:Ue,rowIndex:qe,style:At}=$;let Lt=xe.map((hn,vn)=>{const _n=isArray$c(Ue.children)&&Ue.children.length>0&&hn.key===Fe;return oe.cell({column:hn,columns:xe,columnIndex:vn,depth:ze,style:Ie[hn.key],rowData:Ue,rowIndex:qe,isScrolling:unref(ue),expandIconProps:_n?{rowData:Ue,rowIndex:qe,onExpand:$e}:void 0})});if(oe.row&&(Lt=oe.row({cells:Lt.map(hn=>isArray$c(hn)&&hn.length===1?hn[0]:hn),style:At,columns:xe,depth:ze,rowData:Ue,rowIndex:qe,isScrolling:unref(ue)})),unref(pe)){const{height:hn,...vn}=At||{},_n=unref(_e);return createVNode("div",mergeProps({ref:Ce,class:$.class,style:_n?At:vn,role:"row"},ae,unref(le)),[Lt])}return createVNode("div",mergeProps(ae,{ref:Ce,class:$.class,style:At,role:"row"},unref(le)),[Lt])}}}),SortIcon=$=>{const{sortOrder:z}=$;return createVNode(ElIcon,{size:14,class:$.class},{default:()=>[z===SortOrder.ASC?createVNode(sort_up_default,null,null):createVNode(sort_down_default,null,null)]})},ExpandIcon=$=>{const{expanded:z,expandable:oe,onExpand:ae,style:le,size:ue}=$,pe={onClick:oe?()=>ae(!z):void 0,class:$.class};return createVNode(ElIcon,mergeProps(pe,{size:ue,style:le}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$5="ElTableV2Grid",useTableGrid=$=>{const z=ref(),oe=ref(),ae=computed(()=>{const{data:qe,rowHeight:At,estimatedRowHeight:Lt}=$;if(!Lt)return qe.length*At}),le=computed(()=>{const{fixedData:qe,rowHeight:At}=$;return((qe==null?void 0:qe.length)||0)*At}),ue=computed(()=>sum($.headerHeight)),pe=computed(()=>{const{height:qe}=$;return Math.max(0,qe-unref(ue)-unref(le))}),_e=computed(()=>unref(ue)+unref(le)>0),Ce=({data:qe,rowIndex:At})=>qe[At][$.rowKey];function $e({rowCacheStart:qe,rowCacheEnd:At,rowVisibleStart:Lt,rowVisibleEnd:hn}){var vn;(vn=$.onRowsRendered)==null||vn.call($,{rowCacheStart:qe,rowCacheEnd:At,rowVisibleStart:Lt,rowVisibleEnd:hn})}function xe(qe,At){var Lt;(Lt=oe.value)==null||Lt.resetAfterRowIndex(qe,At)}function Ie(qe,At){const Lt=unref(z),hn=unref(oe);!Lt||!hn||(isObject$8(qe)?(Lt.scrollToLeft(qe.scrollLeft),hn.scrollTo(qe)):(Lt.scrollToLeft(qe),hn.scrollTo({scrollLeft:qe,scrollTop:At})))}function Fe(qe){var At;(At=unref(oe))==null||At.scrollTo({scrollTop:qe})}function ze(qe,At){var Lt;(Lt=unref(oe))==null||Lt.scrollToItem(qe,1,At)}function Ue(){var qe,At;(qe=unref(oe))==null||qe.$forceUpdate(),(At=unref(z))==null||At.$forceUpdate()}return{bodyRef:oe,forceUpdate:Ue,fixedRowHeight:le,gridHeight:pe,hasHeader:_e,headerHeight:ue,headerRef:z,totalHeight:ae,itemKey:Ce,onItemRendered:$e,resetAfterRowIndex:xe,scrollTo:Ie,scrollToTop:Fe,scrollToRow:ze}},TableGrid=defineComponent({name:COMPONENT_NAME$5,props:tableV2GridProps,setup($,{slots:z,expose:oe}){const{ns:ae}=inject(TableV2InjectionKey),{bodyRef:le,fixedRowHeight:ue,gridHeight:pe,hasHeader:_e,headerRef:Ce,headerHeight:$e,totalHeight:xe,forceUpdate:Ie,itemKey:Fe,onItemRendered:ze,resetAfterRowIndex:Ue,scrollTo:qe,scrollToTop:At,scrollToRow:Lt}=useTableGrid($);oe({forceUpdate:Ie,totalHeight:xe,scrollTo:qe,scrollToTop:At,scrollToRow:Lt,resetAfterRowIndex:Ue});const hn=()=>$.bodyWidth;return()=>{const{cache:vn,columns:_n,data:bn,fixedData:Sn,useIsScrolling:Cn,scrollbarAlwaysOn:En,scrollbarEndGap:$n,scrollbarStartGap:wn,style:Tn,rowHeight:xn,bodyWidth:kn,estimatedRowHeight:Nn,headerWidth:Bn,height:Dn,width:In,getRowHeight:Ln,onScroll:Mn}=$,Vn=isNumber$5(Nn),Yn=Vn?DynamicSizeGrid:FixedSizeGrid,Fn=unref($e);return createVNode("div",{role:"table",class:[ae.e("table"),$.class],style:Tn},[createVNode(Yn,{ref:le,data:bn,useIsScrolling:Cn,itemKey:Fe,columnCache:0,columnWidth:Vn?hn:kn,totalColumn:1,totalRow:bn.length,rowCache:vn,rowHeight:Vn?Ln:xn,width:In,height:unref(pe),class:ae.e("body"),role:"rowgroup",scrollbarStartGap:wn,scrollbarEndGap:$n,scrollbarAlwaysOn:En,onScroll:Mn,onItemRendered:ze,perfMode:!1},{default:Xn=>{var sr;const vr=bn[Xn.rowIndex];return(sr=z.row)==null?void 0:sr.call(z,{...Xn,columns:_n,rowData:vr})}}),unref(_e)&&createVNode(TableV2Header,{ref:Ce,class:ae.e("header-wrapper"),columns:_n,headerData:bn,headerHeight:$.headerHeight,fixedHeaderData:Sn,rowWidth:Bn,rowHeight:xn,width:In,height:Math.min(Fn+unref(ue),Dn)},{dynamic:z.header,fixed:z.row})])}}});function _isSlot$5($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const MainTable=($,{slots:z})=>{const{mainTableRef:oe,...ae}=$;return createVNode(TableGrid,mergeProps({ref:oe},ae),_isSlot$5(z)?z:{default:()=>[z]})};function _isSlot$4($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable$1=($,{slots:z})=>{if(!$.columns.length)return;const{leftTableRef:oe,...ae}=$;return createVNode(TableGrid,mergeProps({ref:oe},ae),_isSlot$4(z)?z:{default:()=>[z]})};function _isSlot$3($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable=($,{slots:z})=>{if(!$.columns.length)return;const{rightTableRef:oe,...ae}=$;return createVNode(TableGrid,mergeProps({ref:oe},ae),_isSlot$3(z)?z:{default:()=>[z]})};function _isSlot$2($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const RowRenderer=($,{slots:z})=>{const{columns:oe,columnsStyles:ae,depthMap:le,expandColumnKey:ue,expandedRowKeys:pe,estimatedRowHeight:_e,hasFixedColumns:Ce,hoveringRowKey:$e,rowData:xe,rowIndex:Ie,style:Fe,isScrolling:ze,rowProps:Ue,rowClass:qe,rowKey:At,rowEventHandlers:Lt,ns:hn,onRowHovered:vn,onRowExpanded:_n}=$,bn=tryCall(qe,{columns:oe,rowData:xe,rowIndex:Ie},""),Sn=tryCall(Ue,{columns:oe,rowData:xe,rowIndex:Ie}),Cn=xe[At],En=le[Cn]||0,$n=!!ue,wn=Ie<0,Tn=[hn.e("row"),bn,{[hn.e(`row-depth-${En}`)]:$n&&Ie>=0,[hn.is("expanded")]:$n&&pe.includes(Cn),[hn.is("hovered")]:!ze&&Cn===$e,[hn.is("fixed")]:!En&&wn,[hn.is("customized")]:!!z.row}],xn=Ce?vn:void 0,kn={...Sn,columns:oe,columnsStyles:ae,class:Tn,depth:En,expandColumnKey:ue,estimatedRowHeight:wn?void 0:_e,isScrolling:ze,rowIndex:Ie,rowData:xe,rowKey:Cn,rowEventHandlers:Lt,style:Fe};return createVNode(TableV2Row,mergeProps(kn,{onRowHover:xn,onRowExpand:_n}),_isSlot$2(z)?z:{default:()=>[z]})},CellRenderer=({columns:$,column:z,columnIndex:oe,depth:ae,expandIconProps:le,isScrolling:ue,rowData:pe,rowIndex:_e,style:Ce,expandedRowKeys:$e,ns:xe,cellProps:Ie,expandColumnKey:Fe,indentSize:ze,iconSize:Ue,rowKey:qe},{slots:At})=>{const Lt=enforceUnit(Ce);if(z.placeholderSign===placeholderSign)return createVNode("div",{class:xe.em("row-cell","placeholder"),style:Lt},null);const{cellRenderer:hn,dataKey:vn,dataGetter:_n}=z,Sn=componentToSlot(hn)||At.default||(Dn=>createVNode(TableV2Cell,Dn,null)),Cn=isFunction$5(_n)?_n({columns:$,column:z,columnIndex:oe,rowData:pe,rowIndex:_e}):get$1(pe,vn??""),En=tryCall(Ie,{cellData:Cn,columns:$,column:z,columnIndex:oe,rowIndex:_e,rowData:pe}),$n={class:xe.e("cell-text"),columns:$,column:z,columnIndex:oe,cellData:Cn,isScrolling:ue,rowData:pe,rowIndex:_e},wn=Sn($n),Tn=[xe.e("row-cell"),z.class,z.align===Alignment.CENTER&&xe.is("align-center"),z.align===Alignment.RIGHT&&xe.is("align-right")],xn=_e>=0&&Fe&&z.key===Fe,kn=_e>=0&&$e.includes(pe[qe]);let Nn;const Bn=`margin-inline-start: ${ae*ze}px;`;return xn&&(isObject$8(le)?Nn=createVNode(ExpandIcon,mergeProps(le,{class:[xe.e("expand-icon"),xe.is("expanded",kn)],size:Ue,expanded:kn,style:Bn,expandable:!0}),null):Nn=createVNode("div",{style:[Bn,`width: ${Ue}px; height: ${Ue}px;`].join(" ")},null)),createVNode("div",mergeProps({class:Tn,style:Lt},En,{role:"cell"}),[Nn,wn])};CellRenderer.inheritAttrs=!1;function _isSlot$1($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const HeaderRenderer=({columns:$,columnsStyles:z,headerIndex:oe,style:ae,headerClass:le,headerProps:ue,ns:pe},{slots:_e})=>{const Ce={columns:$,headerIndex:oe},$e=[pe.e("header-row"),tryCall(le,Ce,""),{[pe.is("customized")]:!!_e.header}],xe={...tryCall(ue,Ce),columnsStyles:z,class:$e,columns:$,headerIndex:oe,style:ae};return createVNode(TableV2HeaderRow,xe,_isSlot$1(_e)?_e:{default:()=>[_e]})},HeaderCellRenderer=($,{slots:z})=>{const{column:oe,ns:ae,style:le,onColumnSorted:ue}=$,pe=enforceUnit(le);if(oe.placeholderSign===placeholderSign)return createVNode("div",{class:ae.em("header-row-cell","placeholder"),style:pe},null);const{headerCellRenderer:_e,headerClass:Ce,sortable:$e}=oe,xe={...$,class:ae.e("header-cell-text")},Fe=(componentToSlot(_e)||z.default||(_n=>createVNode(HeaderCell,_n,null)))(xe),{sortBy:ze,sortState:Ue,headerCellProps:qe}=$;let At,Lt;if(Ue){const _n=Ue[oe.key];At=!!oppositeOrderMap[_n],Lt=At?_n:SortOrder.ASC}else At=oe.key===ze.key,Lt=At?ze.order:SortOrder.ASC;const hn=[ae.e("header-cell"),tryCall(Ce,$,""),oe.align===Alignment.CENTER&&ae.is("align-center"),oe.align===Alignment.RIGHT&&ae.is("align-right"),$e&&ae.is("sortable")],vn={...tryCall(qe,$),onClick:oe.sortable?ue:void 0,class:hn,style:pe,["data-key"]:oe.key};return createVNode("div",mergeProps(vn,{role:"columnheader"}),[Fe,$e&&createVNode(SortIcon,{class:[ae.e("sort-icon"),At&&ae.is("sorting")],sortOrder:Lt},null)])},Footer$1=($,{slots:z})=>{var oe;return createVNode("div",{class:$.class,style:$.style},[(oe=z.default)==null?void 0:oe.call(z)])};Footer$1.displayName="ElTableV2Footer";const Footer=($,{slots:z})=>createVNode("div",{class:$.class,style:$.style},[z.default?z.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=($,{slots:z})=>{var oe;return createVNode("div",{class:$.class,style:$.style},[(oe=z.default)==null?void 0:oe.call(z)])};Overlay.displayName="ElTableV2Overlay";function _isSlot($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const COMPONENT_NAME$4="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$4,props:tableV2Props,setup($,{slots:z,expose:oe}){const ae=useNamespace("table-v2"),{columnsStyles:le,fixedColumnsOnLeft:ue,fixedColumnsOnRight:pe,mainColumns:_e,mainTableHeight:Ce,fixedTableHeight:$e,leftTableWidth:xe,rightTableWidth:Ie,data:Fe,depthMap:ze,expandedRowKeys:Ue,hasFixedColumns:qe,hoveringRowKey:At,mainTableRef:Lt,leftTableRef:hn,rightTableRef:vn,isDynamic:_n,isResetting:bn,isScrolling:Sn,bodyWidth:Cn,emptyStyle:En,rootStyle:$n,headerWidth:wn,footerHeight:Tn,showEmpty:xn,scrollTo:kn,scrollToLeft:Nn,scrollToTop:Bn,scrollToRow:Dn,getRowHeight:In,onColumnSorted:Ln,onRowHeightChange:Mn,onRowHovered:Vn,onRowExpanded:Yn,onRowsRendered:Fn,onScroll:Xn,onVerticalScroll:sr}=useTable($);return oe({scrollTo:kn,scrollToLeft:Nn,scrollToTop:Bn,scrollToRow:Dn}),provide(TableV2InjectionKey,{ns:ae,isResetting:bn,hoveringRowKey:At,isScrolling:Sn}),()=>{const{cache:vr,cellProps:ar,estimatedRowHeight:qn,expandColumnKey:Gn,fixedData:Wn,headerHeight:Qn,headerClass:cr,headerProps:jn,headerCellProps:Zn,sortBy:nr,sortState:hr,rowHeight:gr,rowClass:or,rowEventHandlers:wr,rowKey:mr,rowProps:Tr,scrollbarAlwaysOn:dr,indentSize:ir,iconSize:ur,useIsScrolling:fr,vScrollbarSize:kr,width:Dr}=$,Lr=unref(Fe),Mr={cache:vr,class:ae.e("main"),columns:unref(_e),data:Lr,fixedData:Wn,estimatedRowHeight:qn,bodyWidth:unref(Cn),headerHeight:Qn,headerWidth:unref(wn),height:unref(Ce),mainTableRef:Lt,rowKey:mr,rowHeight:gr,scrollbarAlwaysOn:dr,scrollbarStartGap:2,scrollbarEndGap:kr,useIsScrolling:fr,width:Dr,getRowHeight:In,onRowsRendered:Fn,onScroll:Xn},br=unref(xe),Cr=unref($e),lr={cache:vr,class:ae.e("left"),columns:unref(ue),data:Lr,estimatedRowHeight:qn,leftTableRef:hn,rowHeight:gr,bodyWidth:br,headerWidth:br,headerHeight:Qn,height:Cr,rowKey:mr,scrollbarAlwaysOn:dr,scrollbarStartGap:2,scrollbarEndGap:kr,useIsScrolling:fr,width:br,getRowHeight:In,onScroll:sr},rr=unref(Ie)+kr,$r={cache:vr,class:ae.e("right"),columns:unref(pe),data:Lr,estimatedRowHeight:qn,rightTableRef:vn,rowHeight:gr,bodyWidth:rr,headerWidth:rr,headerHeight:Qn,height:Cr,rowKey:mr,scrollbarAlwaysOn:dr,scrollbarStartGap:2,scrollbarEndGap:kr,width:rr,style:`--${unref(ae.namespace)}-table-scrollbar-size: ${kr}px`,useIsScrolling:fr,getRowHeight:In,onScroll:sr},Ar=unref(le),Fr={ns:ae,depthMap:unref(ze),columnsStyles:Ar,expandColumnKey:Gn,expandedRowKeys:unref(Ue),estimatedRowHeight:qn,hasFixedColumns:unref(qe),hoveringRowKey:unref(At),rowProps:Tr,rowClass:or,rowKey:mr,rowEventHandlers:wr,onRowHovered:Vn,onRowExpanded:Yn,onRowHeightChange:Mn},_r={cellProps:ar,expandColumnKey:Gn,indentSize:ir,iconSize:ur,rowKey:mr,expandedRowKeys:unref(Ue),ns:ae},Ir={ns:ae,headerClass:cr,headerProps:jn,columnsStyles:Ar},zr={ns:ae,sortBy:nr,sortState:hr,headerCellProps:Zn,onColumnSorted:Ln},Hr={row:Xr=>createVNode(RowRenderer,mergeProps(Xr,Fr),{row:z.row,cell:Pr=>{let Rr;return z.cell?createVNode(CellRenderer,mergeProps(Pr,_r,{style:Ar[Pr.column.key]}),_isSlot(Rr=z.cell(Pr))?Rr:{default:()=>[Rr]}):createVNode(CellRenderer,mergeProps(Pr,_r,{style:Ar[Pr.column.key]}),null)}}),header:Xr=>createVNode(HeaderRenderer,mergeProps(Xr,Ir),{header:z.header,cell:Pr=>{let Rr;return z["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(Pr,zr,{style:Ar[Pr.column.key]}),_isSlot(Rr=z["header-cell"](Pr))?Rr:{default:()=>[Rr]}):createVNode(HeaderCellRenderer,mergeProps(Pr,zr,{style:Ar[Pr.column.key]}),null)}})},jr=[$.class,ae.b(),ae.e("root"),{[ae.is("dynamic")]:unref(_n)}],qr={class:ae.e("footer"),style:unref(Tn)};return createVNode("div",{class:jr,style:unref($n)},[createVNode(MainTable,Mr,_isSlot(Hr)?Hr:{default:()=>[Hr]}),createVNode(LeftTable$1,lr,_isSlot(Hr)?Hr:{default:()=>[Hr]}),createVNode(LeftTable,$r,_isSlot(Hr)?Hr:{default:()=>[Hr]}),z.footer&&createVNode(Footer$1,qr,{default:z.footer}),unref(xn)&&createVNode(Footer,{class:ae.e("empty"),style:unref(En)},{default:z.empty}),z.overlay&&createVNode(Overlay,{class:ae.e("overlay")},{default:z.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup($,{slots:z}){const oe=useNamespace("auto-resizer"),{height:ae,width:le,sizer:ue}=useAutoResize($),pe={width:"100%",height:"100%"};return()=>{var _e;return createVNode("div",{ref:ue,class:oe.b(),style:pe},[(_e=z.default)==null?void 0:_e.call(z,{height:ae.value,width:le.value})])}}}),ElTableV2=withInstall(TableV2),ElAutoResizer=withInstall(AutoResizer),tabsRootContextKey=Symbol("tabsRootContextKey"),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])}}),COMPONENT_NAME$3="ElTabBar",__default__$k=defineComponent({name:COMPONENT_NAME$3}),_sfc_main$r=defineComponent({...__default__$k,props:tabBarProps,setup($,{expose:z}){const oe=$,ae=getCurrentInstance(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$3,"<el-tabs><el-tab-bar /></el-tabs>");const ue=useNamespace("tabs"),pe=ref(),_e=ref(),Ce=()=>{let xe=0,Ie=0;const Fe=["top","bottom"].includes(le.props.tabPosition)?"width":"height",ze=Fe==="width"?"x":"y",Ue=ze==="x"?"left":"top";return oe.tabs.every(qe=>{var At,Lt;const hn=(Lt=(At=ae.parent)==null?void 0:At.refs)==null?void 0:Lt[`tab-${qe.uid}`];if(!hn)return!1;if(!qe.active)return!0;xe=hn[`offset${capitalize$1(Ue)}`],Ie=hn[`client${capitalize$1(Fe)}`];const vn=window.getComputedStyle(hn);return Fe==="width"&&(oe.tabs.length>1&&(Ie-=Number.parseFloat(vn.paddingLeft)+Number.parseFloat(vn.paddingRight)),xe+=Number.parseFloat(vn.paddingLeft)),!1}),{[Fe]:`${Ie}px`,transform:`translate${capitalize$1(ze)}(${xe}px)`}},$e=()=>_e.value=Ce();return watch(()=>oe.tabs,async()=>{await nextTick(),$e()},{immediate:!0}),useResizeObserver(pe,()=>$e()),z({ref:pe,update:$e}),(xe,Ie)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:pe,class:normalizeClass([unref(ue).e("active-bar"),unref(ue).is(unref(le).props.tabPosition)]),style:normalizeStyle$1(_e.value)},null,6))}});var TabBar=_export_sfc$1(_sfc_main$r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const tabNavProps=buildProps({panes:{type:definePropType(Array),default:()=>mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),tabNavEmits={tabClick:($,z,oe)=>oe instanceof Event,tabRemove:($,z)=>z instanceof Event},COMPONENT_NAME$2="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$2,props:tabNavProps,emits:tabNavEmits,setup($,{expose:z,emit:oe}){const ae=getCurrentInstance(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$2,"<el-tabs><tab-nav /></el-tabs>");const ue=useNamespace("tabs"),pe=useDocumentVisibility(),_e=useWindowFocus(),Ce=ref(),$e=ref(),xe=ref(),Ie=ref(),Fe=ref(!1),ze=ref(0),Ue=ref(!1),qe=ref(!0),At=computed(()=>["top","bottom"].includes(le.props.tabPosition)?"width":"height"),Lt=computed(()=>({transform:`translate${At.value==="width"?"X":"Y"}(-${ze.value}px)`})),hn=()=>{if(!Ce.value)return;const $n=Ce.value[`offset${capitalize$1(At.value)}`],wn=ze.value;if(!wn)return;const Tn=wn>$n?wn-$n:0;ze.value=Tn},vn=()=>{if(!Ce.value||!$e.value)return;const $n=$e.value[`offset${capitalize$1(At.value)}`],wn=Ce.value[`offset${capitalize$1(At.value)}`],Tn=ze.value;if($n-Tn<=wn)return;const xn=$n-Tn>wn*2?Tn+wn:$n-wn;ze.value=xn},_n=async()=>{const $n=$e.value;if(!Fe.value||!xe.value||!Ce.value||!$n)return;await nextTick();const wn=xe.value.querySelector(".is-active");if(!wn)return;const Tn=Ce.value,xn=["top","bottom"].includes(le.props.tabPosition),kn=wn.getBoundingClientRect(),Nn=Tn.getBoundingClientRect(),Bn=xn?$n.offsetWidth-Nn.width:$n.offsetHeight-Nn.height,Dn=ze.value;let In=Dn;xn?(kn.left<Nn.left&&(In=Dn-(Nn.left-kn.left)),kn.right>Nn.right&&(In=Dn+kn.right-Nn.right)):(kn.top<Nn.top&&(In=Dn-(Nn.top-kn.top)),kn.bottom>Nn.bottom&&(In=Dn+(kn.bottom-Nn.bottom))),In=Math.max(In,0),ze.value=Math.min(In,Bn)},bn=()=>{var $n;if(!$e.value||!Ce.value)return;$.stretch&&(($n=Ie.value)==null||$n.update());const wn=$e.value[`offset${capitalize$1(At.value)}`],Tn=Ce.value[`offset${capitalize$1(At.value)}`],xn=ze.value;Tn<wn?(Fe.value=Fe.value||{},Fe.value.prev=xn,Fe.value.next=xn+Tn<wn,wn-xn<Tn&&(ze.value=wn-Tn)):(Fe.value=!1,xn>0&&(ze.value=0))},Sn=$n=>{const wn=$n.code,{up:Tn,down:xn,left:kn,right:Nn}=EVENT_CODE;if(![Tn,xn,kn,Nn].includes(wn))return;const Bn=Array.from($n.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Dn=Bn.indexOf($n.target);let In;wn===kn||wn===Tn?Dn===0?In=Bn.length-1:In=Dn-1:Dn<Bn.length-1?In=Dn+1:In=0,Bn[In].focus({preventScroll:!0}),Bn[In].click(),Cn()},Cn=()=>{qe.value&&(Ue.value=!0)},En=()=>Ue.value=!1;return watch(pe,$n=>{$n==="hidden"?qe.value=!1:$n==="visible"&&setTimeout(()=>qe.value=!0,50)}),watch(_e,$n=>{$n?setTimeout(()=>qe.value=!0,50):qe.value=!1}),useResizeObserver(xe,bn),onMounted(()=>setTimeout(()=>_n(),0)),onUpdated(()=>bn()),z({scrollToActiveTab:_n,removeFocus:En}),watch(()=>$.panes,()=>ae.update(),{flush:"post",deep:!0}),()=>{const $n=Fe.value?[createVNode("span",{class:[ue.e("nav-prev"),ue.is("disabled",!Fe.value.prev)],onClick:hn},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[ue.e("nav-next"),ue.is("disabled",!Fe.value.next)],onClick:vn},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,wn=$.panes.map((Tn,xn)=>{var kn,Nn,Bn,Dn;const In=Tn.uid,Ln=Tn.props.disabled,Mn=(Nn=(kn=Tn.props.name)!=null?kn:Tn.index)!=null?Nn:`${xn}`,Vn=!Ln&&(Tn.isClosable||$.editable);Tn.index=`${xn}`;const Yn=Vn?createVNode(ElIcon,{class:"is-icon-close",onClick:sr=>oe("tabRemove",Tn,sr)},{default:()=>[createVNode(close_default,null,null)]}):null,Fn=((Dn=(Bn=Tn.slots).label)==null?void 0:Dn.call(Bn))||Tn.props.label,Xn=!Ln&&Tn.active?0:-1;return createVNode("div",{ref:`tab-${In}`,class:[ue.e("item"),ue.is(le.props.tabPosition),ue.is("active",Tn.active),ue.is("disabled",Ln),ue.is("closable",Vn),ue.is("focus",Ue.value)],id:`tab-${Mn}`,key:`tab-${In}`,"aria-controls":`pane-${Mn}`,role:"tab","aria-selected":Tn.active,tabindex:Xn,onFocus:()=>Cn(),onBlur:()=>En(),onClick:sr=>{En(),oe("tabClick",Tn,Mn,sr)},onKeydown:sr=>{Vn&&(sr.code===EVENT_CODE.delete||sr.code===EVENT_CODE.backspace)&&oe("tabRemove",Tn,sr)}},[Fn,Yn])});return createVNode("div",{ref:xe,class:[ue.e("nav-wrap"),ue.is("scrollable",!!Fe.value),ue.is(le.props.tabPosition)]},[$n,createVNode("div",{class:ue.e("nav-scroll"),ref:Ce},[createVNode("div",{class:[ue.e("nav"),ue.is(le.props.tabPosition),ue.is("stretch",$.stretch&&["top","bottom"].includes(le.props.tabPosition))],ref:$e,style:Lt.value,role:"tablist",onKeydown:Sn},[$.type?null:createVNode(TabBar,{ref:Ie,tabs:[...$.panes]},null),wn])])])}}}),tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:()=>!0},stretch:Boolean}),isPaneName=$=>isString$7($)||isNumber$5($),tabsEmits={[UPDATE_MODEL_EVENT]:$=>isPaneName($),tabClick:($,z)=>z instanceof Event,tabChange:$=>isPaneName($),edit:($,z)=>["remove","add"].includes(z),tabRemove:$=>isPaneName($),tabAdd:()=>!0};var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup($,{emit:z,slots:oe,expose:ae}){var le,ue;const pe=useNamespace("tabs"),{children:_e,addChild:Ce,removeChild:$e}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),xe=ref(),Ie=ref((ue=(le=$.modelValue)!=null?le:$.activeName)!=null?ue:"0"),Fe=Lt=>{Ie.value=Lt,z(UPDATE_MODEL_EVENT,Lt),z("tabChange",Lt)},ze=async Lt=>{var hn,vn,_n;if(!(Ie.value===Lt||isUndefined$1(Lt)))try{await((hn=$.beforeLeave)==null?void 0:hn.call($,Lt,Ie.value))!==!1&&(Fe(Lt),(_n=(vn=xe.value)==null?void 0:vn.removeFocus)==null||_n.call(vn))}catch{}},Ue=(Lt,hn,vn)=>{Lt.props.disabled||(ze(hn),z("tabClick",Lt,vn))},qe=(Lt,hn)=>{Lt.props.disabled||isUndefined$1(Lt.props.name)||(hn.stopPropagation(),z("edit",Lt.props.name,"remove"),z("tabRemove",Lt.props.name))},At=()=>{z("edit",void 0,"add"),z("tabAdd")};return useDeprecated({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},computed(()=>!!$.activeName)),watch(()=>$.activeName,Lt=>ze(Lt)),watch(()=>$.modelValue,Lt=>ze(Lt)),watch(Ie,async()=>{var Lt;await nextTick(),(Lt=xe.value)==null||Lt.scrollToActiveTab()}),provide(tabsRootContextKey,{props:$,currentName:Ie,registerPane:Ce,unregisterPane:$e}),ae({currentName:Ie}),()=>{const Lt=$.editable||$.addable?createVNode("span",{class:pe.e("new-tab"),tabindex:"0",onClick:At,onKeydown:_n=>{_n.code===EVENT_CODE.enter&&At()}},[createVNode(ElIcon,{class:pe.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,hn=createVNode("div",{class:[pe.e("header"),pe.is($.tabPosition)]},[Lt,createVNode(TabNav,{ref:xe,currentName:Ie.value,editable:$.editable,type:$.type,panes:_e.value,stretch:$.stretch,onTabClick:Ue,onTabRemove:qe},null)]),vn=createVNode("div",{class:pe.e("content")},[renderSlot(oe,"default")]);return createVNode("div",{class:[pe.b(),pe.m($.tabPosition),{[pe.m("card")]:$.type==="card",[pe.m("border-card")]:$.type==="border-card"}]},[...$.tabPosition!=="bottom"?[hn,vn]:[vn,hn]])}}});const tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),_hoisted_1$c=["id","aria-hidden","aria-labelledby"],COMPONENT_NAME$1="ElTabPane",__default__$j=defineComponent({name:COMPONENT_NAME$1}),_sfc_main$q=defineComponent({...__default__$j,props:tabPaneProps,setup($){const z=$,oe=getCurrentInstance(),ae=useSlots(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$1,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const ue=useNamespace("tab-pane"),pe=ref(),_e=computed(()=>z.closable||le.props.closable),Ce=computedEager(()=>{var ze;return le.currentName.value===((ze=z.name)!=null?ze:pe.value)}),$e=ref(Ce.value),xe=computed(()=>{var ze;return(ze=z.name)!=null?ze:pe.value}),Ie=computedEager(()=>!z.lazy||$e.value||Ce.value);watch(Ce,ze=>{ze&&($e.value=!0)});const Fe=reactive({uid:oe.uid,slots:ae,props:z,paneName:xe,active:Ce,index:pe,isClosable:_e});return onMounted(()=>{le.registerPane(Fe)}),onUnmounted(()=>{le.unregisterPane(Fe.uid)}),(ze,Ue)=>unref(Ie)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(xe)}`,class:normalizeClass(unref(ue).b()),role:"tabpanel","aria-hidden":!unref(Ce),"aria-labelledby":`tab-${unref(xe)}`},[renderSlot(ze.$slots,"default")],10,_hoisted_1$c)),[[vShow,unref(Ce)]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc$1(_sfc_main$q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const ElTabs=withInstall(Tabs,{TabPane}),ElTabPane=withNoopInstall(TabPane),textProps=buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:componentSizes,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),__default__$i=defineComponent({name:"ElText"}),_sfc_main$p=defineComponent({...__default__$i,props:textProps,setup($){const z=$,oe=useFormSize(),ae=useNamespace("text"),le=computed(()=>[ae.b(),ae.m(z.type),ae.m(oe.value),ae.is("truncated",z.truncated)]);return(ue,pe)=>(openBlock(),createBlock(resolveDynamicComponent(ue.tag),{class:normalizeClass(unref(le))},{default:withCtx(()=>[renderSlot(ue.$slots,"default")]),_:3},8,["class"]))}});var Text=_export_sfc$1(_sfc_main$p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const ElText=withInstall(Text),timeSelectProps=buildProps({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:useSizeProp,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:definePropType([String,Object]),default:()=>clock_default},clearIcon:{type:definePropType([String,Object]),default:()=>circle_close_default}}),parseTime=$=>{const z=($||"").split(":");if(z.length>=2){let oe=Number.parseInt(z[0],10);const ae=Number.parseInt(z[1],10),le=$.toUpperCase();return le.includes("AM")&&oe===12?oe=0:le.includes("PM")&&oe!==12&&(oe+=12),{hours:oe,minutes:ae}}return null},compareTime=($,z)=>{const oe=parseTime($);if(!oe)return-1;const ae=parseTime(z);if(!ae)return-1;const le=oe.minutes+oe.hours*60,ue=ae.minutes+ae.hours*60;return le===ue?0:le>ue?1:-1},padTime=$=>`${$}`.padStart(2,"0"),formatTime$1=$=>`${padTime($.hours)}:${padTime($.minutes)}`,nextTime=($,z)=>{const oe=parseTime($);if(!oe)return"";const ae=parseTime(z);if(!ae)return"";const le={hours:oe.hours,minutes:oe.minutes};return le.minutes+=ae.minutes,le.hours+=ae.hours,le.hours+=Math.floor(le.minutes/60),le.minutes=le.minutes%60,formatTime$1(le)},__default__$h=defineComponent({name:"ElTimeSelect"}),_sfc_main$o=defineComponent({...__default__$h,props:timeSelectProps,emits:["change","blur","focus","update:modelValue"],setup($,{expose:z}){const oe=$;dayjs.extend(customParseFormat);const{Option:ae}=ElSelect,le=useNamespace("input"),ue=ref(),pe=useFormDisabled(),_e=computed(()=>oe.modelValue),Ce=computed(()=>{const At=parseTime(oe.start);return At?formatTime$1(At):null}),$e=computed(()=>{const At=parseTime(oe.end);return At?formatTime$1(At):null}),xe=computed(()=>{const At=parseTime(oe.step);return At?formatTime$1(At):null}),Ie=computed(()=>{const At=parseTime(oe.minTime||"");return At?formatTime$1(At):null}),Fe=computed(()=>{const At=parseTime(oe.maxTime||"");return At?formatTime$1(At):null}),ze=computed(()=>{const At=[];if(oe.start&&oe.end&&oe.step){let Lt=Ce.value,hn;for(;Lt&&$e.value&&compareTime(Lt,$e.value)<=0;)hn=dayjs(Lt,"HH:mm").format(oe.format),At.push({value:hn,disabled:compareTime(Lt,Ie.value||"-1:-1")<=0||compareTime(Lt,Fe.value||"100:100")>=0}),Lt=nextTime(Lt,xe.value)}return At});return z({blur:()=>{var At,Lt;(Lt=(At=ue.value)==null?void 0:At.blur)==null||Lt.call(At)},focus:()=>{var At,Lt;(Lt=(At=ue.value)==null?void 0:At.focus)==null||Lt.call(At)}}),(At,Lt)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:ue,"model-value":unref(_e),disabled:unref(pe),clearable:At.clearable,"clear-icon":At.clearIcon,size:At.size,effect:At.effect,placeholder:At.placeholder,"default-first-option":"",filterable:At.editable,"onUpdate:modelValue":Lt[0]||(Lt[0]=hn=>At.$emit("update:modelValue",hn)),onChange:Lt[1]||(Lt[1]=hn=>At.$emit("change",hn)),onBlur:Lt[2]||(Lt[2]=hn=>At.$emit("blur",hn)),onFocus:Lt[3]||(Lt[3]=hn=>At.$emit("focus",hn))},{prefix:withCtx(()=>[At.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(At.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ze),hn=>(openBlock(),createBlock(unref(ae),{key:hn.value,label:hn.value,value:hn.value,disabled:hn.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var TimeSelect=_export_sfc$1(_sfc_main$o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);TimeSelect.install=$=>{$.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup($,{slots:z}){const oe=useNamespace("timeline");return provide("timeline",z),()=>h$3("ul",{class:[oe.b()]},[renderSlot(z,"default")])}}),timelineItemProps=buildProps({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:iconPropType},hollow:{type:Boolean,default:!1}}),__default__$g=defineComponent({name:"ElTimelineItem"}),_sfc_main$n=defineComponent({...__default__$g,props:timelineItemProps,setup($){const z=$,oe=useNamespace("timeline-item"),ae=computed(()=>[oe.e("node"),oe.em("node",z.size||""),oe.em("node",z.type||""),oe.is("hollow",z.hollow)]);return(le,ue)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(oe).b(),{[unref(oe).e("center")]:le.center}])},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("tail"))},null,2),le.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae)),style:normalizeStyle$1({backgroundColor:le.color})},[le.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),le.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).e("dot"))},[renderSlot(le.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("wrapper"))},[!le.hideTimestamp&&le.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("timestamp"),unref(oe).is("top")])},toDisplayString$1(le.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content"))},[renderSlot(le.$slots,"default")],2),!le.hideTimestamp&&le.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(oe).e("timestamp"),unref(oe).is("bottom")])},toDisplayString$1(le.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc$1(_sfc_main$n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),tooltipV2CommonProps=buildProps({nowrap:Boolean});var TooltipV2Sides=($=>($.top="top",$.bottom="bottom",$.left="left",$.right="right",$))(TooltipV2Sides||{});const tooltipV2Sides=Object.values(TooltipV2Sides),tooltipV2ArrowProps=buildProps({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:definePropType(Object),default:null}}),tooltipV2ArrowSpecialProps=buildProps({side:{type:definePropType(String),values:tooltipV2Sides,required:!0}}),tooltipV2Strategies=["absolute","fixed"],tooltipV2Placements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tooltipV2ContentProps=buildProps({ariaLabel:String,arrowPadding:{type:definePropType(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:definePropType(String),values:tooltipV2Placements,default:"bottom"},reference:{type:definePropType(Object),default:null},offset:{type:Number,default:8},strategy:{type:definePropType(String),values:tooltipV2Strategies,default:"absolute"},showArrow:{type:Boolean,default:!1}}),tooltipV2RootProps=buildProps({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:definePropType(Function)},"onUpdate:open":{type:definePropType(Function)}}),EventHandler={type:definePropType(Function)},tooltipV2TriggerProps=buildProps({onBlur:EventHandler,onClick:EventHandler,onFocus:EventHandler,onMouseDown:EventHandler,onMouseEnter:EventHandler,onMouseLeave:EventHandler}),tooltipV2Props=buildProps({...tooltipV2RootProps,...tooltipV2ArrowProps,...tooltipV2TriggerProps,...tooltipV2ContentProps,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:definePropType(Object),default:null},teleported:Boolean,to:{type:definePropType(String),default:"body"}}),tooltipV2RootKey=Symbol("tooltipV2"),tooltipV2ContentKey=Symbol("tooltipV2Content"),TOOLTIP_V2_OPEN="tooltip_v2.open",__default__$f=defineComponent({name:"ElTooltipV2Root"}),_sfc_main$m=defineComponent({...__default__$f,props:tooltipV2RootProps,setup($,{expose:z}){const oe=$,ae=ref(oe.defaultOpen),le=ref(null),ue=computed({get:()=>isPropAbsent(oe.open)?ae.value:oe.open,set:At=>{var Lt;ae.value=At,(Lt=oe["onUpdate:open"])==null||Lt.call(oe,At)}}),pe=computed(()=>isNumber$5(oe.delayDuration)&&oe.delayDuration>0),{start:_e,stop:Ce}=useTimeoutFn$1(()=>{ue.value=!0},computed(()=>oe.delayDuration),{immediate:!1}),$e=useNamespace("tooltip-v2"),xe=useId(),Ie=()=>{Ce(),ue.value=!0},Fe=()=>{unref(pe)?_e():Ie()},ze=Ie,Ue=()=>{Ce(),ue.value=!1};return watch(ue,At=>{var Lt;At&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),ze()),(Lt=oe.onOpenChange)==null||Lt.call(oe,At)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,Ue)}),onBeforeUnmount(()=>{Ce(),document.removeEventListener(TOOLTIP_V2_OPEN,Ue)}),provide(tooltipV2RootKey,{contentId:xe,triggerRef:le,ns:$e,onClose:Ue,onDelayOpen:Fe,onOpen:ze}),z({onOpen:ze,onClose:Ue}),(At,Lt)=>renderSlot(At.$slots,"default",{open:unref(ue)})}});var TooltipV2Root=_export_sfc$1(_sfc_main$m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const __default__$e=defineComponent({name:"ElTooltipV2Arrow"}),_sfc_main$l=defineComponent({...__default__$e,props:{...tooltipV2ArrowProps,...tooltipV2ArrowSpecialProps},setup($){const z=$,{ns:oe}=inject(tooltipV2RootKey),{arrowRef:ae}=inject(tooltipV2ContentKey),le=computed(()=>{const{style:ue,width:pe,height:_e}=z,Ce=oe.namespace.value;return{[`--${Ce}-tooltip-v2-arrow-width`]:`${pe}px`,[`--${Ce}-tooltip-v2-arrow-height`]:`${_e}px`,[`--${Ce}-tooltip-v2-arrow-border-width`]:`${pe/2}px`,[`--${Ce}-tooltip-v2-arrow-cover-width`]:pe/2-1,...ue||{}}});return(ue,pe)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:ae,style:normalizeStyle$1(unref(le)),class:normalizeClass(unref(oe).e("arrow"))},null,6))}});var TooltipV2Arrow=_export_sfc$1(_sfc_main$l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const visualHiddenProps=buildProps({style:{type:definePropType([String,Object,Array]),default:()=>({})}}),__default__$d=defineComponent({name:"ElVisuallyHidden"}),_sfc_main$k=defineComponent({...__default__$d,props:visualHiddenProps,setup($){const z=$,oe=computed(()=>[z.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(ae,le)=>(openBlock(),createElementBlock("span",mergeProps(ae.$attrs,{style:unref(oe)}),[renderSlot(ae.$slots,"default")],16))}});var ElVisuallyHidden=_export_sfc$1(_sfc_main$k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const _hoisted_1$b=["data-side"],__default__$c=defineComponent({name:"ElTooltipV2Content"}),_sfc_main$j=defineComponent({...__default__$c,props:{...tooltipV2ContentProps,...tooltipV2CommonProps},setup($){const z=$,{triggerRef:oe,contentId:ae}=inject(tooltipV2RootKey),le=ref(z.placement),ue=ref(z.strategy),pe=ref(null),{referenceRef:_e,contentRef:Ce,middlewareData:$e,x:xe,y:Ie,update:Fe}=useFloating({placement:le,strategy:ue,middleware:computed(()=>{const vn=[D$3(z.offset)];return z.showArrow&&vn.push(arrowMiddleware({arrowRef:pe})),vn})}),ze=useZIndex().nextZIndex(),Ue=useNamespace("tooltip-v2"),qe=computed(()=>le.value.split("-")[0]),At=computed(()=>({position:unref(ue),top:`${unref(Ie)||0}px`,left:`${unref(xe)||0}px`,zIndex:ze})),Lt=computed(()=>{if(!z.showArrow)return{};const{arrow:vn}=unref($e);return{[`--${Ue.namespace.value}-tooltip-v2-arrow-x`]:`${vn==null?void 0:vn.x}px`||"",[`--${Ue.namespace.value}-tooltip-v2-arrow-y`]:`${vn==null?void 0:vn.y}px`||""}}),hn=computed(()=>[Ue.e("content"),Ue.is("dark",z.effect==="dark"),Ue.is(unref(ue)),z.contentClass]);return watch(pe,()=>Fe()),watch(()=>z.placement,vn=>le.value=vn),onMounted(()=>{watch(()=>z.reference||oe.value,vn=>{_e.value=vn||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:pe}),(vn,_n)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:Ce,style:normalizeStyle$1(unref(At)),"data-tooltip-v2-root":""},[vn.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(qe),class:normalizeClass(unref(hn))},[renderSlot(vn.$slots,"default",{contentStyle:unref(At),contentClass:unref(hn)}),createVNode(unref(ElVisuallyHidden),{id:unref(ae),role:"tooltip"},{default:withCtx(()=>[vn.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(vn.ariaLabel),1)],64)):renderSlot(vn.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(vn.$slots,"arrow",{style:normalizeStyle$1(unref(Lt)),side:unref(qe)})],10,_hoisted_1$b))],4))}});var TooltipV2Content=_export_sfc$1(_sfc_main$j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const forwardRefProps=buildProps({setRef:{type:definePropType(Function),required:!0},onlyChild:Boolean});var ForwardRef=defineComponent({props:forwardRefProps,setup($,{slots:z}){const oe=ref(),ae=composeRefs(oe,le=>{le?$.setRef(le.nextElementSibling):$.setRef(null)});return()=>{var le;const[ue]=((le=z.default)==null?void 0:le.call(z))||[],pe=$.onlyChild?ensureOnlyChild(ue.children):ue.children;return createVNode(Fragment,{ref:ae},[pe])}}});const __default__$b=defineComponent({name:"ElTooltipV2Trigger"}),_sfc_main$i=defineComponent({...__default__$b,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup($){const z=$,{onClose:oe,onOpen:ae,onDelayOpen:le,triggerRef:ue,contentId:pe}=inject(tooltipV2RootKey);let _e=!1;const Ce=hn=>{ue.value=hn},$e=()=>{_e=!1},xe=composeEventHandlers(z.onMouseEnter,le),Ie=composeEventHandlers(z.onMouseLeave,oe),Fe=composeEventHandlers(z.onMouseDown,()=>{oe(),_e=!0,document.addEventListener("mouseup",$e,{once:!0})}),ze=composeEventHandlers(z.onFocus,()=>{_e||ae()}),Ue=composeEventHandlers(z.onBlur,oe),qe=composeEventHandlers(z.onClick,hn=>{hn.detail===0&&oe()}),At={blur:Ue,click:qe,focus:ze,mousedown:Fe,mouseenter:xe,mouseleave:Ie},Lt=(hn,vn,_n)=>{hn&&Object.entries(vn).forEach(([bn,Sn])=>{hn[_n](bn,Sn)})};return watch(ue,(hn,vn)=>{Lt(hn,At,"addEventListener"),Lt(vn,At,"removeEventListener"),hn&&hn.setAttribute("aria-describedby",pe.value)}),onBeforeUnmount(()=>{Lt(ue.value,At,"removeEventListener"),document.removeEventListener("mouseup",$e)}),(hn,vn)=>hn.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":Ce,"only-child":""},{default:withCtx(()=>[renderSlot(hn.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:ue},hn.$attrs),[renderSlot(hn.$slots,"default")],16))}});var TooltipV2Trigger=_export_sfc$1(_sfc_main$i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const __default__$a=defineComponent({name:"ElTooltipV2"}),_sfc_main$h=defineComponent({...__default__$a,props:tooltipV2Props,setup($){const oe=toRefs($),ae=reactive(pick$1(oe,Object.keys(tooltipV2ArrowProps))),le=reactive(pick$1(oe,Object.keys(tooltipV2ContentProps))),ue=reactive(pick$1(oe,Object.keys(tooltipV2RootProps))),pe=reactive(pick$1(oe,Object.keys(tooltipV2TriggerProps)));return(_e,Ce)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(ue)),{default:withCtx(({open:$e})=>[createVNode(TooltipV2Trigger,mergeProps(pe,{nowrap:""}),{default:withCtx(()=>[renderSlot(_e.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:_e.to,disabled:!_e.teleported},[_e.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},_e.transitionProps)),{default:withCtx(()=>[_e.alwaysOn||$e?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},le)),{arrow:withCtx(({style:xe,side:Ie})=>[_e.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ae,{style:xe,side:Ie}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[_e.alwaysOn||$e?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},le)),{arrow:withCtx(({style:xe,side:Ie})=>[_e.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ae,{style:xe,side:Ie}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var TooltipV2=_export_sfc$1(_sfc_main$h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const ElTooltipV2=withInstall(TooltipV2),LEFT_CHECK_CHANGE_EVENT="left-check-change",RIGHT_CHECK_CHANGE_EVENT="right-check-change",transferProps=buildProps({data:{type:definePropType(Array),default:()=>[]},titles:{type:definePropType(Array),default:()=>[]},buttonTexts:{type:definePropType(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:definePropType(Function)},leftDefaultChecked:{type:definePropType(Array),default:()=>[]},rightDefaultChecked:{type:definePropType(Array),default:()=>[]},renderContent:{type:definePropType(Function)},modelValue:{type:definePropType(Array),default:()=>[]},format:{type:definePropType(Object),default:()=>({})},filterable:Boolean,props:{type:definePropType(Object),default:()=>mutable({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),transferCheckedChangeFn=($,z)=>[$,z].every(isArray$c)||isArray$c($)&&isNil(z),transferEmits={[CHANGE_EVENT]:($,z,oe)=>[$,oe].every(isArray$c)&&["left","right"].includes(z),[UPDATE_MODEL_EVENT]:$=>isArray$c($),[LEFT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn,[RIGHT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn},CHECKED_CHANGE_EVENT="checked-change",transferPanelProps=buildProps({data:transferProps.data,optionRender:{type:definePropType(Function)},placeholder:String,title:String,filterable:Boolean,format:transferProps.format,filterMethod:transferProps.filterMethod,defaultChecked:transferProps.leftDefaultChecked,props:transferProps.props}),transferPanelEmits={[CHECKED_CHANGE_EVENT]:transferCheckedChangeFn},usePropsAlias=$=>{const z={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...z,...$.props}))},useCheck$1=($,z,oe)=>{const ae=usePropsAlias($),le=computed(()=>$.data.filter(xe=>isFunction$5($.filterMethod)?$.filterMethod(z.query,xe):String(xe[ae.value.label]||xe[ae.value.key]).toLowerCase().includes(z.query.toLowerCase()))),ue=computed(()=>le.value.filter(xe=>!xe[ae.value.disabled])),pe=computed(()=>{const xe=z.checked.length,Ie=$.data.length,{noChecked:Fe,hasChecked:ze}=$.format;return Fe&&ze?xe>0?ze.replace(/\${checked}/g,xe.toString()).replace(/\${total}/g,Ie.toString()):Fe.replace(/\${total}/g,Ie.toString()):`${xe}/${Ie}`}),_e=computed(()=>{const xe=z.checked.length;return xe>0&&xe<ue.value.length}),Ce=()=>{const xe=ue.value.map(Ie=>Ie[ae.value.key]);z.allChecked=xe.length>0&&xe.every(Ie=>z.checked.includes(Ie))},$e=xe=>{z.checked=xe?ue.value.map(Ie=>Ie[ae.value.key]):[]};return watch(()=>z.checked,(xe,Ie)=>{if(Ce(),z.checkChangeByUser){const Fe=xe.concat(Ie).filter(ze=>!xe.includes(ze)||!Ie.includes(ze));oe(CHECKED_CHANGE_EVENT,xe,Fe)}else oe(CHECKED_CHANGE_EVENT,xe),z.checkChangeByUser=!0}),watch(ue,()=>{Ce()}),watch(()=>$.data,()=>{const xe=[],Ie=le.value.map(Fe=>Fe[ae.value.key]);z.checked.forEach(Fe=>{Ie.includes(Fe)&&xe.push(Fe)}),z.checkChangeByUser=!1,z.checked=xe}),watch(()=>$.defaultChecked,(xe,Ie)=>{if(Ie&&xe.length===Ie.length&&xe.every(Ue=>Ie.includes(Ue)))return;const Fe=[],ze=ue.value.map(Ue=>Ue[ae.value.key]);xe.forEach(Ue=>{ze.includes(Ue)&&Fe.push(Ue)}),z.checkChangeByUser=!1,z.checked=Fe},{immediate:!0}),{filteredData:le,checkableData:ue,checkedSummary:pe,isIndeterminate:_e,updateAllChecked:Ce,handleAllCheckedChange:$e}},useCheckedChange=($,z)=>({onSourceCheckedChange:(le,ue)=>{$.leftChecked=le,ue&&z(LEFT_CHECK_CHANGE_EVENT,le,ue)},onTargetCheckedChange:(le,ue)=>{$.rightChecked=le,ue&&z(RIGHT_CHECK_CHANGE_EVENT,le,ue)}}),useComputedData=$=>{const z=usePropsAlias($),oe=computed(()=>$.data.reduce((ue,pe)=>(ue[pe[z.value.key]]=pe)&&ue,{})),ae=computed(()=>$.data.filter(ue=>!$.modelValue.includes(ue[z.value.key]))),le=computed(()=>$.targetOrder==="original"?$.data.filter(ue=>$.modelValue.includes(ue[z.value.key])):$.modelValue.reduce((ue,pe)=>{const _e=oe.value[pe];return _e&&ue.push(_e),ue},[]));return{sourceData:ae,targetData:le}},useMove=($,z,oe)=>{const ae=usePropsAlias($),le=(_e,Ce,$e)=>{oe(UPDATE_MODEL_EVENT,_e),oe(CHANGE_EVENT,_e,Ce,$e)};return{addToLeft:()=>{const _e=$.modelValue.slice();z.rightChecked.forEach(Ce=>{const $e=_e.indexOf(Ce);$e>-1&&_e.splice($e,1)}),le(_e,"left",z.rightChecked)},addToRight:()=>{let _e=$.modelValue.slice();const Ce=$.data.filter($e=>{const xe=$e[ae.value.key];return z.leftChecked.includes(xe)&&!$.modelValue.includes(xe)}).map($e=>$e[ae.value.key]);_e=$.targetOrder==="unshift"?Ce.concat(_e):_e.concat(Ce),$.targetOrder==="original"&&(_e=$.data.filter($e=>_e.includes($e[ae.value.key])).map($e=>$e[ae.value.key])),le(_e,"right",z.leftChecked)}}},__default__$9=defineComponent({name:"ElTransferPanel"}),_sfc_main$g=defineComponent({...__default__$9,props:transferPanelProps,emits:transferPanelEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useSlots(),ue=({option:vn})=>vn,{t:pe}=useLocale(),_e=useNamespace("transfer"),Ce=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),$e=usePropsAlias(ae),{filteredData:xe,checkedSummary:Ie,isIndeterminate:Fe,handleAllCheckedChange:ze}=useCheck$1(ae,Ce,oe),Ue=computed(()=>!isEmpty(Ce.query)&&isEmpty(xe.value)),qe=computed(()=>!isEmpty(le.default()[0].children)),{checked:At,allChecked:Lt,query:hn}=toRefs(Ce);return z({query:hn}),(vn,_n)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(_e).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(Lt),"onUpdate:modelValue":_n[0]||(_n[0]=bn=>isRef(Lt)?Lt.value=bn:null),indeterminate:unref(Fe),"validate-event":!1,onChange:unref(ze)},{default:withCtx(()=>[createTextVNode(toDisplayString$1(vn.title)+" ",1),createBaseVNode("span",null,toDisplayString$1(unref(Ie)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(_e).be("panel","body"),unref(_e).is("with-footer",unref(qe))])},[vn.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(hn),"onUpdate:modelValue":_n[1]||(_n[1]=bn=>isRef(hn)?hn.value=bn:null),class:normalizeClass(unref(_e).be("panel","filter")),size:"default",placeholder:vn.placeholder,"prefix-icon":unref(search_default),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode(unref(ElCheckboxGroup$1),{modelValue:unref(At),"onUpdate:modelValue":_n[2]||(_n[2]=bn=>isRef(At)?At.value=bn:null),"validate-event":!1,class:normalizeClass([unref(_e).is("filterable",vn.filterable),unref(_e).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(xe),bn=>(openBlock(),createBlock(unref(ElCheckbox),{key:bn[unref($e).key],class:normalizeClass(unref(_e).be("panel","item")),label:bn[unref($e).key],disabled:bn[unref($e).disabled],"validate-event":!1},{default:withCtx(()=>{var Sn;return[createVNode(ue,{option:(Sn=vn.optionRender)==null?void 0:Sn.call(vn,bn)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(Ue)&&!unref(isEmpty)(vn.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(_e).be("panel","empty"))},toDisplayString$1(unref(Ue)?unref(pe)("el.transfer.noMatch"):unref(pe)("el.transfer.noData")),3),[[vShow,unref(Ue)||unref(isEmpty)(vn.data)]])],2),unref(qe)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(_e).be("panel","footer"))},[renderSlot(vn.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc$1(_sfc_main$g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const _hoisted_1$a={key:0},_hoisted_2$8={key:0},__default__$8=defineComponent({name:"ElTransfer"}),_sfc_main$f=defineComponent({...__default__$8,props:transferProps,emits:transferEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useSlots(),{t:ue}=useLocale(),pe=useNamespace("transfer"),{formItem:_e}=useFormItem(),Ce=reactive({leftChecked:[],rightChecked:[]}),$e=usePropsAlias(ae),{sourceData:xe,targetData:Ie}=useComputedData(ae),{onSourceCheckedChange:Fe,onTargetCheckedChange:ze}=useCheckedChange(Ce,oe),{addToLeft:Ue,addToRight:qe}=useMove(ae,Ce,oe),At=ref(),Lt=ref(),hn=En=>{switch(En){case"left":At.value.query="";break;case"right":Lt.value.query="";break}},vn=computed(()=>ae.buttonTexts.length===2),_n=computed(()=>ae.titles[0]||ue("el.transfer.titles.0")),bn=computed(()=>ae.titles[1]||ue("el.transfer.titles.1")),Sn=computed(()=>ae.filterPlaceholder||ue("el.transfer.filterPlaceholder"));watch(()=>ae.modelValue,()=>{var En;ae.validateEvent&&((En=_e==null?void 0:_e.validate)==null||En.call(_e,"change").catch($n=>void 0))});const Cn=computed(()=>En=>ae.renderContent?ae.renderContent(h$3,En):le.default?le.default({option:En}):h$3("span",En[$e.value.label]||En[$e.value.key]));return z({clearQuery:hn,leftPanel:At,rightPanel:Lt}),(En,$n)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:At,data:unref(xe),"option-render":unref(Cn),placeholder:unref(Sn),title:unref(_n),filterable:En.filterable,format:En.format,"filter-method":En.filterMethod,"default-checked":En.leftDefaultChecked,props:ae.props,onCheckedChange:unref(Fe)},{default:withCtx(()=>[renderSlot(En.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(pe).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(pe).e("button"),unref(pe).is("with-texts",unref(vn))]),disabled:unref(isEmpty)(Ce.rightChecked),onClick:unref(Ue)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(En.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$a,toDisplayString$1(En.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(pe).e("button"),unref(pe).is("with-texts",unref(vn))]),disabled:unref(isEmpty)(Ce.leftChecked),onClick:unref(qe)},{default:withCtx(()=>[unref(isUndefined$1)(En.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$8,toDisplayString$1(En.buttonTexts[1]),1)),createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode(TransferPanel,{ref_key:"rightPanel",ref:Lt,data:unref(Ie),"option-render":unref(Cn),placeholder:unref(Sn),filterable:En.filterable,format:En.format,"filter-method":En.filterMethod,title:unref(bn),"default-checked":En.rightDefaultChecked,props:ae.props,onCheckedChange:unref(ze)},{default:withCtx(()=>[renderSlot(En.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Transfer=_export_sfc$1(_sfc_main$f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function($,z){!z||z[NODE_KEY]||Object.defineProperty(z,NODE_KEY,{value:$.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function($,z){return $?z[$]:z[NODE_KEY]},handleCurrentChange=($,z,oe)=>{const ae=$.value.currentNode;oe();const le=$.value.currentNode;ae!==le&&z("current-change",le?le.data:null,le)},getChildState=$=>{let z=!0,oe=!0,ae=!0;for(let le=0,ue=$.length;le<ue;le++){const pe=$[le];(pe.checked!==!0||pe.indeterminate)&&(z=!1,pe.disabled||(ae=!1)),(pe.checked!==!1||pe.indeterminate)&&(oe=!1)}return{all:z,none:oe,allWithoutDisable:ae,half:!z&&!oe}},reInitChecked=function($){if($.childNodes.length===0||$.loading)return;const{all:z,none:oe,half:ae}=getChildState($.childNodes);z?($.checked=!0,$.indeterminate=!1):ae?($.checked=!1,$.indeterminate=!0):oe&&($.checked=!1,$.indeterminate=!1);const le=$.parent;!le||le.level===0||$.store.checkStrictly||reInitChecked(le)},getPropertyFromData=function($,z){const oe=$.store.props,ae=$.data||{},le=oe[z];if(typeof le=="function")return le(ae,$);if(typeof le=="string")return ae[le];if(typeof le>"u"){const ue=ae[z];return ue===void 0?"":ue}};let nodeIdSeed=0;class Node{constructor(z){this.id=nodeIdSeed++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const oe in z)hasOwn$4(z,oe)&&(this[oe]=z[oe]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const z=this.store;if(!z)throw new Error("[Node]store is required!");z.registerNode(this);const oe=z.props;if(oe&&typeof oe.isLeaf<"u"){const ue=getPropertyFromData(this,"isLeaf");typeof ue=="boolean"&&(this.isLeafByUser=ue)}if(z.lazy!==!0&&this.data?(this.setData(this.data),z.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&z.lazy&&z.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const ae=z.defaultExpandedKeys,le=z.key;le&&ae&&ae.includes(this.key)&&this.expand(null,z.autoExpandParent),le&&z.currentNodeKey!==void 0&&this.key===z.currentNodeKey&&(z.currentNode=this,z.currentNode.isCurrent=!0),z.lazy&&z._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(z){Array.isArray(z)||markNodeData(this,z),this.data=z,this.childNodes=[];let oe;this.level===0&&Array.isArray(this.data)?oe=this.data:oe=getPropertyFromData(this,"children")||[];for(let ae=0,le=oe.length;ae<le;ae++)this.insertChild({data:oe[ae]})}get label(){return getPropertyFromData(this,"label")}get key(){const z=this.store.key;return this.data?this.data[z]:null}get disabled(){return getPropertyFromData(this,"disabled")}get nextSibling(){const z=this.parent;if(z){const oe=z.childNodes.indexOf(this);if(oe>-1)return z.childNodes[oe+1]}return null}get previousSibling(){const z=this.parent;if(z){const oe=z.childNodes.indexOf(this);if(oe>-1)return oe>0?z.childNodes[oe-1]:null}return null}contains(z,oe=!0){return(this.childNodes||[]).some(ae=>ae===z||oe&&ae.contains(z))}remove(){const z=this.parent;z&&z.removeChild(this)}insertChild(z,oe,ae){if(!z)throw new Error("InsertChild error: child is required.");if(!(z instanceof Node)){if(!ae){const le=this.getChildren(!0);le.includes(z.data)||(typeof oe>"u"||oe<0?le.push(z.data):le.splice(oe,0,z.data))}Object.assign(z,{parent:this,store:this.store}),z=reactive(new Node(z)),z instanceof Node&&z.initialize()}z.level=this.level+1,typeof oe>"u"||oe<0?this.childNodes.push(z):this.childNodes.splice(oe,0,z),this.updateLeafState()}insertBefore(z,oe){let ae;oe&&(ae=this.childNodes.indexOf(oe)),this.insertChild(z,ae)}insertAfter(z,oe){let ae;oe&&(ae=this.childNodes.indexOf(oe),ae!==-1&&(ae+=1)),this.insertChild(z,ae)}removeChild(z){const oe=this.getChildren()||[],ae=oe.indexOf(z.data);ae>-1&&oe.splice(ae,1);const le=this.childNodes.indexOf(z);le>-1&&(this.store&&this.store.deregisterNode(z),z.parent=null,this.childNodes.splice(le,1)),this.updateLeafState()}removeChildByData(z){let oe=null;for(let ae=0;ae<this.childNodes.length;ae++)if(this.childNodes[ae].data===z){oe=this.childNodes[ae];break}oe&&this.removeChild(oe)}expand(z,oe){const ae=()=>{if(oe){let le=this.parent;for(;le.level>0;)le.expanded=!0,le=le.parent}this.expanded=!0,z&&z(),this.childNodes.forEach(le=>{le.canFocus=!0})};this.shouldLoadData()?this.loadData(le=>{Array.isArray(le)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),ae())}):ae()}doCreateChildren(z,oe={}){z.forEach(ae=>{this.insertChild(Object.assign({data:ae},oe),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(z=>{z.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const z=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!z||z.length===0;return}this.isLeaf=!1}setChecked(z,oe,ae,le){if(this.indeterminate=z==="half",this.checked=z===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:pe,allWithoutDisable:_e}=getChildState(this.childNodes);!this.isLeaf&&!pe&&_e&&(this.checked=!1,z=!1);const Ce=()=>{if(oe){const $e=this.childNodes;for(let Fe=0,ze=$e.length;Fe<ze;Fe++){const Ue=$e[Fe];le=le||z!==!1;const qe=Ue.disabled?Ue.checked:le;Ue.setChecked(qe,oe,!0,le)}const{half:xe,all:Ie}=getChildState($e);Ie||(this.checked=Ie,this.indeterminate=xe)}};if(this.shouldLoadData()){this.loadData(()=>{Ce(),reInitChecked(this)},{checked:z!==!1});return}else Ce()}const ue=this.parent;!ue||ue.level===0||ae||reInitChecked(ue)}getChildren(z=!1){if(this.level===0)return this.data;const oe=this.data;if(!oe)return null;const ae=this.store.props;let le="children";return ae&&(le=ae.children||"children"),oe[le]===void 0&&(oe[le]=null),z&&!oe[le]&&(oe[le]=[]),oe[le]}updateChildren(){const z=this.getChildren()||[],oe=this.childNodes.map(ue=>ue.data),ae={},le=[];z.forEach((ue,pe)=>{const _e=ue[NODE_KEY];!!_e&&oe.findIndex($e=>$e[NODE_KEY]===_e)>=0?ae[_e]={index:pe,data:ue}:le.push({index:pe,data:ue})}),this.store.lazy||oe.forEach(ue=>{ae[ue[NODE_KEY]]||this.removeChildByData(ue)}),le.forEach(({index:ue,data:pe})=>{this.insertChild({data:pe},ue)}),this.updateLeafState()}loadData(z,oe={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(oe).length)){this.loading=!0;const ae=le=>{this.childNodes=[],this.doCreateChildren(le,oe),this.loaded=!0,this.loading=!1,this.updateLeafState(),z&&z.call(this,le)};this.store.load(this,ae)}else z&&z.call(this)}}class TreeStore{constructor(z){this.currentNode=null,this.currentNodeKey=null;for(const oe in z)hasOwn$4(z,oe)&&(this[oe]=z[oe]);this.nodesMap={}}initialize(){if(this.root=new Node({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const z=this.load;z(this.root,oe=>{this.root.doCreateChildren(oe),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(z){const oe=this.filterNodeMethod,ae=this.lazy,le=function(ue){const pe=ue.root?ue.root.childNodes:ue.childNodes;if(pe.forEach(_e=>{_e.visible=oe.call(_e,z,_e.data,_e),le(_e)}),!ue.visible&&pe.length){let _e=!0;_e=!pe.some(Ce=>Ce.visible),ue.root?ue.root.visible=_e===!1:ue.visible=_e===!1}z&&ue.visible&&!ue.isLeaf&&!ae&&ue.expand()};le(this)}setData(z){z!==this.root.data?(this.root.setData(z),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(z){if(z instanceof Node)return z;const oe=isObject$8(z)?getNodeKey(this.key,z):z;return this.nodesMap[oe]||null}insertBefore(z,oe){const ae=this.getNode(oe);ae.parent.insertBefore({data:z},ae)}insertAfter(z,oe){const ae=this.getNode(oe);ae.parent.insertAfter({data:z},ae)}remove(z){const oe=this.getNode(z);oe&&oe.parent&&(oe===this.currentNode&&(this.currentNode=null),oe.parent.removeChild(oe))}append(z,oe){const ae=oe?this.getNode(oe):this.root;ae&&ae.insertChild({data:z})}_initDefaultCheckedNodes(){const z=this.defaultCheckedKeys||[],oe=this.nodesMap;z.forEach(ae=>{const le=oe[ae];le&&le.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(z){(this.defaultCheckedKeys||[]).includes(z.key)&&z.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(z){z!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=z,this._initDefaultCheckedNodes())}registerNode(z){const oe=this.key;!z||!z.data||(oe?z.key!==void 0&&(this.nodesMap[z.key]=z):this.nodesMap[z.id]=z)}deregisterNode(z){!this.key||!z||!z.data||(z.childNodes.forEach(ae=>{this.deregisterNode(ae)}),delete this.nodesMap[z.key])}getCheckedNodes(z=!1,oe=!1){const ae=[],le=function(ue){(ue.root?ue.root.childNodes:ue.childNodes).forEach(_e=>{(_e.checked||oe&&_e.indeterminate)&&(!z||z&&_e.isLeaf)&&ae.push(_e.data),le(_e)})};return le(this),ae}getCheckedKeys(z=!1){return this.getCheckedNodes(z).map(oe=>(oe||{})[this.key])}getHalfCheckedNodes(){const z=[],oe=function(ae){(ae.root?ae.root.childNodes:ae.childNodes).forEach(ue=>{ue.indeterminate&&z.push(ue.data),oe(ue)})};return oe(this),z}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(z=>(z||{})[this.key])}_getAllNodes(){const z=[],oe=this.nodesMap;for(const ae in oe)hasOwn$4(oe,ae)&&z.push(oe[ae]);return z}updateChildren(z,oe){const ae=this.nodesMap[z];if(!ae)return;const le=ae.childNodes;for(let ue=le.length-1;ue>=0;ue--){const pe=le[ue];this.remove(pe.data)}for(let ue=0,pe=oe.length;ue<pe;ue++){const _e=oe[ue];this.append(_e,ae.data)}}_setCheckedKeys(z,oe=!1,ae){const le=this._getAllNodes().sort((_e,Ce)=>Ce.level-_e.level),ue=Object.create(null),pe=Object.keys(ae);le.forEach(_e=>_e.setChecked(!1,!1));for(let _e=0,Ce=le.length;_e<Ce;_e++){const $e=le[_e],xe=$e.data[z].toString();if(!pe.includes(xe)){$e.checked&&!ue[xe]&&$e.setChecked(!1,!1);continue}let Fe=$e.parent;for(;Fe&&Fe.level>0;)ue[Fe.data[z]]=!0,Fe=Fe.parent;if($e.isLeaf||this.checkStrictly){$e.setChecked(!0,!1);continue}if($e.setChecked(!0,!0),oe){$e.setChecked(!1,!1);const ze=function(Ue){Ue.childNodes.forEach(At=>{At.isLeaf||At.setChecked(!1,!1),ze(At)})};ze($e)}}}setCheckedNodes(z,oe=!1){const ae=this.key,le={};z.forEach(ue=>{le[(ue||{})[ae]]=!0}),this._setCheckedKeys(ae,oe,le)}setCheckedKeys(z,oe=!1){this.defaultCheckedKeys=z;const ae=this.key,le={};z.forEach(ue=>{le[ue]=!0}),this._setCheckedKeys(ae,oe,le)}setDefaultExpandedKeys(z){z=z||[],this.defaultExpandedKeys=z,z.forEach(oe=>{const ae=this.getNode(oe);ae&&ae.expand(null,this.autoExpandParent)})}setChecked(z,oe,ae){const le=this.getNode(z);le&&le.setChecked(!!oe,ae)}getCurrentNode(){return this.currentNode}setCurrentNode(z){const oe=this.currentNode;oe&&(oe.isCurrent=!1),this.currentNode=z,this.currentNode.isCurrent=!0}setUserCurrentNode(z,oe=!0){const ae=z[this.key],le=this.nodesMap[ae];this.setCurrentNode(le),oe&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(z,oe=!0){if(z==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const ae=this.getNode(z);ae&&(this.setCurrentNode(ae),oe&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const _sfc_main$e=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup($){const z=useNamespace("tree"),oe=inject("NodeInstance"),ae=inject("RootTree");return()=>{const le=$.node,{data:ue,store:pe}=le;return $.renderContent?$.renderContent(h$3,{_self:oe,node:le,data:ue,store:pe}):ae.ctx.slots.default?ae.ctx.slots.default({node:le,data:ue}):h$3("span",{class:z.be("node","label")},[le.label])}}});var NodeContent=_export_sfc$1(_sfc_main$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast($){const z=inject("TreeNodeMap",null),oe={treeNodeExpand:ae=>{$.node!==ae&&$.node.collapse()},children:[]};return z&&z.children.push(oe),provide("TreeNodeMap",oe),{broadcastExpanded:ae=>{if($.accordion)for(const le of oe.children)le.treeNodeExpand(ae)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:$,ctx:z,el$:oe,dropIndicator$:ae,store:le}){const ue=useNamespace("tree"),pe=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:xe,treeNode:Ie})=>{if(typeof $.allowDrag=="function"&&!$.allowDrag(Ie.node))return xe.preventDefault(),!1;xe.dataTransfer.effectAllowed="move";try{xe.dataTransfer.setData("text/plain","")}catch{}pe.value.draggingNode=Ie,z.emit("node-drag-start",Ie.node,xe)},treeNodeDragOver:({event:xe,treeNode:Ie})=>{const Fe=Ie,ze=pe.value.dropNode;ze&&ze.node.id!==Fe.node.id&&removeClass(ze.$el,ue.is("drop-inner"));const Ue=pe.value.draggingNode;if(!Ue||!Fe)return;let qe=!0,At=!0,Lt=!0,hn=!0;typeof $.allowDrop=="function"&&(qe=$.allowDrop(Ue.node,Fe.node,"prev"),hn=At=$.allowDrop(Ue.node,Fe.node,"inner"),Lt=$.allowDrop(Ue.node,Fe.node,"next")),xe.dataTransfer.dropEffect=At||qe||Lt?"move":"none",(qe||At||Lt)&&(ze==null?void 0:ze.node.id)!==Fe.node.id&&(ze&&z.emit("node-drag-leave",Ue.node,ze.node,xe),z.emit("node-drag-enter",Ue.node,Fe.node,xe)),(qe||At||Lt)&&(pe.value.dropNode=Fe),Fe.node.nextSibling===Ue.node&&(Lt=!1),Fe.node.previousSibling===Ue.node&&(qe=!1),Fe.node.contains(Ue.node,!1)&&(At=!1),(Ue.node===Fe.node||Ue.node.contains(Fe.node))&&(qe=!1,At=!1,Lt=!1);const vn=Fe.$el.getBoundingClientRect(),_n=oe.value.getBoundingClientRect();let bn;const Sn=qe?At?.25:Lt?.45:1:-1,Cn=Lt?At?.75:qe?.55:0:1;let En=-9999;const $n=xe.clientY-vn.top;$n<vn.height*Sn?bn="before":$n>vn.height*Cn?bn="after":At?bn="inner":bn="none";const wn=Fe.$el.querySelector(`.${ue.be("node","expand-icon")}`).getBoundingClientRect(),Tn=ae.value;bn==="before"?En=wn.top-_n.top:bn==="after"&&(En=wn.bottom-_n.top),Tn.style.top=`${En}px`,Tn.style.left=`${wn.right-_n.left}px`,bn==="inner"?addClass(Fe.$el,ue.is("drop-inner")):removeClass(Fe.$el,ue.is("drop-inner")),pe.value.showDropIndicator=bn==="before"||bn==="after",pe.value.allowDrop=pe.value.showDropIndicator||hn,pe.value.dropType=bn,z.emit("node-drag-over",Ue.node,Fe.node,xe)},treeNodeDragEnd:xe=>{const{draggingNode:Ie,dropType:Fe,dropNode:ze}=pe.value;if(xe.preventDefault(),xe.dataTransfer.dropEffect="move",Ie&&ze){const Ue={data:Ie.node.data};Fe!=="none"&&Ie.node.remove(),Fe==="before"?ze.node.parent.insertBefore(Ue,ze.node):Fe==="after"?ze.node.parent.insertAfter(Ue,ze.node):Fe==="inner"&&ze.node.insertChild(Ue),Fe!=="none"&&le.value.registerNode(Ue),removeClass(ze.$el,ue.is("drop-inner")),z.emit("node-drag-end",Ie.node,ze.node,Fe,xe),Fe!=="none"&&z.emit("node-drop",Ie.node,ze.node,Fe,xe)}Ie&&!ze&&z.emit("node-drag-end",Ie.node,null,Fe,xe),pe.value.showDropIndicator=!1,pe.value.draggingNode=null,pe.value.dropNode=null,pe.value.allowDrop=!0}}),{dragState:pe}}const _sfc_main$d=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup($,z){const oe=useNamespace("tree"),{broadcastExpanded:ae}=useNodeExpandEventBroadcast($),le=inject("RootTree"),ue=ref(!1),pe=ref(!1),_e=ref(null),Ce=ref(null),$e=ref(null),xe=inject(dragEventsKey),Ie=getCurrentInstance();provide("NodeInstance",Ie),$.node.expanded&&(ue.value=!0,pe.value=!0);const Fe=le.props.children||"children";watch(()=>{const $n=$.node.data[Fe];return $n&&[...$n]},()=>{$.node.updateChildren()}),watch(()=>$.node.indeterminate,$n=>{qe($.node.checked,$n)}),watch(()=>$.node.checked,$n=>{qe($n,$.node.indeterminate)}),watch(()=>$.node.expanded,$n=>{nextTick(()=>ue.value=$n),$n&&(pe.value=!0)});const ze=$n=>getNodeKey(le.props.nodeKey,$n.data),Ue=$n=>{const wn=$.props.class;if(!wn)return{};let Tn;if(isFunction$5(wn)){const{data:xn}=$n;Tn=wn(xn,$n)}else Tn=wn;return isString$7(Tn)?{[Tn]:!0}:Tn},qe=($n,wn)=>{(_e.value!==$n||Ce.value!==wn)&&le.ctx.emit("check-change",$.node.data,$n,wn),_e.value=$n,Ce.value=wn},At=$n=>{handleCurrentChange(le.store,le.ctx.emit,()=>le.store.value.setCurrentNode($.node)),le.currentNode.value=$.node,le.props.expandOnClickNode&&hn(),le.props.checkOnClickNode&&!$.node.disabled&&vn(null,{target:{checked:!$.node.checked}}),le.ctx.emit("node-click",$.node.data,$.node,Ie,$n)},Lt=$n=>{le.instance.vnode.props.onNodeContextmenu&&($n.stopPropagation(),$n.preventDefault()),le.ctx.emit("node-contextmenu",$n,$.node.data,$.node,Ie)},hn=()=>{$.node.isLeaf||(ue.value?(le.ctx.emit("node-collapse",$.node.data,$.node,Ie),$.node.collapse()):($.node.expand(),z.emit("node-expand",$.node.data,$.node,Ie)))},vn=($n,wn)=>{$.node.setChecked(wn.target.checked,!le.props.checkStrictly),nextTick(()=>{const Tn=le.store.value;le.ctx.emit("check",$.node.data,{checkedNodes:Tn.getCheckedNodes(),checkedKeys:Tn.getCheckedKeys(),halfCheckedNodes:Tn.getHalfCheckedNodes(),halfCheckedKeys:Tn.getHalfCheckedKeys()})})};return{ns:oe,node$:$e,tree:le,expanded:ue,childNodeRendered:pe,oldChecked:_e,oldIndeterminate:Ce,getNodeKey:ze,getNodeClass:Ue,handleSelectChange:qe,handleClick:At,handleContextMenu:Lt,handleExpandIconClick:hn,handleCheckChange:vn,handleChildNodeExpand:($n,wn,Tn)=>{ae(wn),le.ctx.emit("node-expand",$n,wn,Tn)},handleDragStart:$n=>{le.props.draggable&&xe.treeNodeDragStart({event:$n,treeNode:$})},handleDragOver:$n=>{$n.preventDefault(),le.props.draggable&&xe.treeNodeDragOver({event:$n,treeNode:{$el:$e.value,node:$.node}})},handleDrop:$n=>{$n.preventDefault()},handleDragEnd:$n=>{le.props.draggable&&xe.treeNodeDragEnd($n)},CaretRight:caret_right_default}}}),_hoisted_1$9=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$7=["aria-expanded"];function _sfc_render$3($,z,oe,ae,le,ue){const pe=resolveComponent("el-icon"),_e=resolveComponent("el-checkbox"),Ce=resolveComponent("loading"),$e=resolveComponent("node-content"),xe=resolveComponent("el-tree-node"),Ie=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([$.ns.b("node"),$.ns.is("expanded",$.expanded),$.ns.is("current",$.node.isCurrent),$.ns.is("hidden",!$.node.visible),$.ns.is("focusable",!$.node.disabled),$.ns.is("checked",!$.node.disabled&&$.node.checked),$.getNodeClass($.node)]),role:"treeitem",tabindex:"-1","aria-expanded":$.expanded,"aria-disabled":$.node.disabled,"aria-checked":$.node.checked,draggable:$.tree.props.draggable,"data-key":$.getNodeKey($.node),onClick:z[1]||(z[1]=withModifiers((...Fe)=>$.handleClick&&$.handleClick(...Fe),["stop"])),onContextmenu:z[2]||(z[2]=(...Fe)=>$.handleContextMenu&&$.handleContextMenu(...Fe)),onDragstart:z[3]||(z[3]=withModifiers((...Fe)=>$.handleDragStart&&$.handleDragStart(...Fe),["stop"])),onDragover:z[4]||(z[4]=withModifiers((...Fe)=>$.handleDragOver&&$.handleDragOver(...Fe),["stop"])),onDragend:z[5]||(z[5]=withModifiers((...Fe)=>$.handleDragEnd&&$.handleDragEnd(...Fe),["stop"])),onDrop:z[6]||(z[6]=withModifiers((...Fe)=>$.handleDrop&&$.handleDrop(...Fe),["stop"]))},[createBaseVNode("div",{class:normalizeClass($.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:($.node.level-1)*$.tree.props.indent+"px"})},[$.tree.props.icon||$.CaretRight?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([$.ns.be("node","expand-icon"),$.ns.is("leaf",$.node.isLeaf),{expanded:!$.node.isLeaf&&$.expanded}]),onClick:withModifiers($.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.tree.props.icon||$.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.showCheckbox?(openBlock(),createBlock(_e,{key:1,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:!!$.node.disabled,onClick:z[0]||(z[0]=withModifiers(()=>{},["stop"])),onChange:$.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),$.node.loading?(openBlock(),createBlock(pe,{key:2,class:normalizeClass([$.ns.be("node","loading-icon"),$.ns.is("loading")])},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode($e,{node:$.node,"render-content":$.renderContent},null,8,["node","render-content"])],6),createVNode(Ie,null,{default:withCtx(()=>[!$.renderAfterExpand||$.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("node","children")),role:"group","aria-expanded":$.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.node.childNodes,Fe=>(openBlock(),createBlock(xe,{key:$.getNodeKey(Fe),"render-content":$.renderContent,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,node:Fe,accordion:$.accordion,props:$.props,onNodeExpand:$.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$7)),[[vShow,$.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$9)),[[vShow,$.node.visible]])}var ElTreeNode$1=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:$},z){const oe=useNamespace("tree"),ae=shallowRef([]),le=shallowRef([]);onMounted(()=>{pe()}),onUpdated(()=>{ae.value=Array.from($.value.querySelectorAll("[role=treeitem]")),le.value=Array.from($.value.querySelectorAll("input[type=checkbox]"))}),watch(le,_e=>{_e.forEach(Ce=>{Ce.setAttribute("tabindex","-1")})}),useEventListener$1($,"keydown",_e=>{const Ce=_e.target;if(!Ce.className.includes(oe.b("node")))return;const $e=_e.code;ae.value=Array.from($.value.querySelectorAll(`.${oe.is("focusable")}[role=treeitem]`));const xe=ae.value.indexOf(Ce);let Ie;if([EVENT_CODE.up,EVENT_CODE.down].includes($e)){if(_e.preventDefault(),$e===EVENT_CODE.up){Ie=xe===-1?0:xe!==0?xe-1:ae.value.length-1;const ze=Ie;for(;!z.value.getNode(ae.value[Ie].dataset.key).canFocus;){if(Ie--,Ie===ze){Ie=-1;break}Ie<0&&(Ie=ae.value.length-1)}}else{Ie=xe===-1?0:xe<ae.value.length-1?xe+1:0;const ze=Ie;for(;!z.value.getNode(ae.value[Ie].dataset.key).canFocus;){if(Ie++,Ie===ze){Ie=-1;break}Ie>=ae.value.length&&(Ie=0)}}Ie!==-1&&ae.value[Ie].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes($e)&&(_e.preventDefault(),Ce.click());const Fe=Ce.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes($e)&&Fe&&(_e.preventDefault(),Fe.click())});const pe=()=>{var _e;ae.value=Array.from($.value.querySelectorAll(`.${oe.is("focusable")}[role=treeitem]`)),le.value=Array.from($.value.querySelectorAll("input[type=checkbox]"));const Ce=$.value.querySelectorAll(`.${oe.is("checked")}[role=treeitem]`);if(Ce.length){Ce[0].setAttribute("tabindex","0");return}(_e=ae.value[0])==null||_e.setAttribute("tabindex","0")}}const _sfc_main$c=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:iconPropType}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup($,z){const{t:oe}=useLocale(),ae=useNamespace("tree"),le=ref(new TreeStore({key:$.nodeKey,data:$.data,lazy:$.lazy,props:$.props,load:$.load,currentNodeKey:$.currentNodeKey,checkStrictly:$.checkStrictly,checkDescendants:$.checkDescendants,defaultCheckedKeys:$.defaultCheckedKeys,defaultExpandedKeys:$.defaultExpandedKeys,autoExpandParent:$.autoExpandParent,defaultExpandAll:$.defaultExpandAll,filterNodeMethod:$.filterNodeMethod}));le.value.initialize();const ue=ref(le.value.root),pe=ref(null),_e=ref(null),Ce=ref(null),{broadcastExpanded:$e}=useNodeExpandEventBroadcast($),{dragState:xe}=useDragNodeHandler({props:$,ctx:z,el$:_e,dropIndicator$:Ce,store:le});useKeydown({el$:_e},le);const Ie=computed(()=>{const{childNodes:In}=ue.value;return!In||In.length===0||In.every(({visible:Ln})=>!Ln)});watch(()=>$.currentNodeKey,In=>{le.value.setCurrentNodeKey(In)}),watch(()=>$.defaultCheckedKeys,In=>{le.value.setDefaultCheckedKey(In)}),watch(()=>$.defaultExpandedKeys,In=>{le.value.setDefaultExpandedKeys(In)}),watch(()=>$.data,In=>{le.value.setData(In)},{deep:!0}),watch(()=>$.checkStrictly,In=>{le.value.checkStrictly=In});const Fe=In=>{if(!$.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");le.value.filter(In)},ze=In=>getNodeKey($.nodeKey,In.data),Ue=In=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Ln=le.value.getNode(In);if(!Ln)return[];const Mn=[Ln.data];let Vn=Ln.parent;for(;Vn&&Vn!==ue.value;)Mn.push(Vn.data),Vn=Vn.parent;return Mn.reverse()},qe=(In,Ln)=>le.value.getCheckedNodes(In,Ln),At=In=>le.value.getCheckedKeys(In),Lt=()=>{const In=le.value.getCurrentNode();return In?In.data:null},hn=()=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const In=Lt();return In?In[$.nodeKey]:null},vn=(In,Ln)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");le.value.setCheckedNodes(In,Ln)},_n=(In,Ln)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");le.value.setCheckedKeys(In,Ln)},bn=(In,Ln,Mn)=>{le.value.setChecked(In,Ln,Mn)},Sn=()=>le.value.getHalfCheckedNodes(),Cn=()=>le.value.getHalfCheckedKeys(),En=(In,Ln=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");handleCurrentChange(le,z.emit,()=>le.value.setUserCurrentNode(In,Ln))},$n=(In,Ln=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");handleCurrentChange(le,z.emit,()=>le.value.setCurrentNodeKey(In,Ln))},wn=In=>le.value.getNode(In),Tn=In=>{le.value.remove(In)},xn=(In,Ln)=>{le.value.append(In,Ln)},kn=(In,Ln)=>{le.value.insertBefore(In,Ln)},Nn=(In,Ln)=>{le.value.insertAfter(In,Ln)},Bn=(In,Ln,Mn)=>{$e(Ln),z.emit("node-expand",In,Ln,Mn)},Dn=(In,Ln)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");le.value.updateChildren(In,Ln)};return provide("RootTree",{ctx:z,props:$,store:le,root:ue,currentNode:pe,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:ae,store:le,root:ue,currentNode:pe,dragState:xe,el$:_e,dropIndicator$:Ce,isEmpty:Ie,filter:Fe,getNodeKey:ze,getNodePath:Ue,getCheckedNodes:qe,getCheckedKeys:At,getCurrentNode:Lt,getCurrentKey:hn,setCheckedNodes:vn,setCheckedKeys:_n,setChecked:bn,getHalfCheckedNodes:Sn,getHalfCheckedKeys:Cn,setCurrentNode:En,setCurrentKey:$n,t:oe,getNode:wn,remove:Tn,append:xn,insertBefore:kn,insertAfter:Nn,handleNodeExpand:Bn,updateKeyChildren:Dn}}});function _sfc_render$2($,z,oe,ae,le,ue){const pe=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([$.ns.b(),$.ns.is("dragging",!!$.dragState.draggingNode),$.ns.is("drop-not-allow",!$.dragState.allowDrop),$.ns.is("drop-inner",$.dragState.dropType==="inner"),{[$.ns.m("highlight-current")]:$.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.root.childNodes,_e=>(openBlock(),createBlock(pe,{key:$.getNodeKey(_e),node:_e,props:$.props,accordion:$.accordion,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,"render-content":$.renderContent,onNodeExpand:$.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-block"))},[renderSlot($.$slots,"empty",{},()=>{var _e;return[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1((_e=$.emptyText)!=null?_e:$.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass($.ns.e("drop-indicator"))},null,2),[[vShow,$.dragState.showDropIndicator]])],2)}var Tree=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Tree.install=$=>{$.component(Tree.name,Tree)};const _Tree=Tree,ElTree=_Tree,useSelect=($,{attrs:z},{tree:oe,key:ae})=>{const le=useNamespace("tree-select"),ue={...pick$1(toRefs($),Object.keys(ElSelect.props)),...z,valueKey:ae,popperClass:computed(()=>{const pe=[le.e("popper")];return $.popperClass&&pe.push($.popperClass),pe.join(" ")}),filterMethod:(pe="")=>{$.filterMethod&&$.filterMethod(pe),nextTick(()=>{var _e;(_e=oe.value)==null||_e.filter(pe)})},onVisibleChange:pe=>{var _e;(_e=z.onVisibleChange)==null||_e.call(z,pe),$.filterable&&pe&&ue.filterMethod()}};return ue},component=defineComponent({extends:ElOption,setup($,z){const oe=ElOption.setup($,z);delete oe.selectOptionClick;const ae=getCurrentInstance().proxy;return nextTick(()=>{oe.select.cachedOptions.get(ae.value)||oe.select.onOptionCreate(ae)}),oe},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue($){return $||$===0}function isValidArray($){return Array.isArray($)&&$.length}function toValidArray($){return Array.isArray($)?$:isValidValue($)?[$]:[]}function treeFind($,z,oe,ae,le){for(let ue=0;ue<$.length;ue++){const pe=$[ue];if(z(pe,ue,$,le))return ae?ae(pe,ue,$,le):pe;{const _e=oe(pe);if(isValidArray(_e)){const Ce=treeFind(_e,z,oe,ae,pe);if(Ce)return Ce}}}}function treeEach($,z,oe,ae){for(let le=0;le<$.length;le++){const ue=$[le];z(ue,le,$,ae);const pe=oe(ue);isValidArray(pe)&&treeEach(pe,z,oe,ue)}}const useTree$1=($,{attrs:z,slots:oe,emit:ae},{select:le,tree:ue,key:pe})=>{watch(()=>$.modelValue,()=>{$.showCheckbox&&nextTick(()=>{const Fe=ue.value;Fe&&!isEqual$1(Fe.getCheckedKeys(),toValidArray($.modelValue))&&Fe.setCheckedKeys(toValidArray($.modelValue))})},{immediate:!0,deep:!0});const _e=computed(()=>({value:pe.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...$.props})),Ce=(Fe,ze)=>{var Ue;const qe=_e.value[Fe];return isFunction$5(qe)?qe(ze,(Ue=ue.value)==null?void 0:Ue.getNode(Ce("value",ze))):ze[qe]},$e=toValidArray($.modelValue).map(Fe=>treeFind($.data||[],ze=>Ce("value",ze)===Fe,ze=>Ce("children",ze),(ze,Ue,qe,At)=>At&&Ce("value",At))).filter(Fe=>isValidValue(Fe)),xe=computed(()=>{if(!$.renderAfterExpand&&!$.lazy)return[];const Fe=[];return treeEach($.data.concat($.cacheData),ze=>{const Ue=Ce("value",ze);Fe.push({value:Ue,currentLabel:Ce("label",ze),isDisabled:Ce("disabled",ze)})},ze=>Ce("children",ze)),Fe}),Ie=computed(()=>xe.value.reduce((Fe,ze)=>({...Fe,[ze.value]:ze}),{}));return{...pick$1(toRefs($),Object.keys(_Tree.props)),...z,nodeKey:pe,expandOnClickNode:computed(()=>!$.checkStrictly&&$.expandOnClickNode),defaultExpandedKeys:computed(()=>$.defaultExpandedKeys?$.defaultExpandedKeys.concat($e):$e),renderContent:(Fe,{node:ze,data:Ue,store:qe})=>Fe(component,{value:Ce("value",Ue),label:Ce("label",Ue),disabled:Ce("disabled",Ue)},$.renderContent?()=>$.renderContent(Fe,{node:ze,data:Ue,store:qe}):oe.default?()=>oe.default({node:ze,data:Ue,store:qe}):void 0),filterNodeMethod:(Fe,ze,Ue)=>{var qe;return $.filterNodeMethod?$.filterNodeMethod(Fe,ze,Ue):Fe?(qe=Ce("label",ze))==null?void 0:qe.includes(Fe):!0},onNodeClick:(Fe,ze,Ue)=>{var qe,At,Lt;if((qe=z.onNodeClick)==null||qe.call(z,Fe,ze,Ue),!($.showCheckbox&&$.checkOnClickNode))if(!$.showCheckbox&&($.checkStrictly||ze.isLeaf)){if(!Ce("disabled",Fe)){const hn=(At=le.value)==null?void 0:At.options.get(Ce("value",Fe));(Lt=le.value)==null||Lt.handleOptionSelect(hn,!0)}}else $.expandOnClickNode&&Ue.proxy.handleExpandIconClick()},onCheck:(Fe,ze)=>{if(!$.showCheckbox)return;const Ue=Ce("value",Fe),qe=ze.checkedKeys,At=$.multiple?toValidArray($.modelValue).filter(hn=>hn in Ie.value&&!ue.value.getNode(hn)&&!qe.includes(hn)):[],Lt=qe.concat(At);if($.checkStrictly)ae(UPDATE_MODEL_EVENT,$.multiple?Lt:Lt.includes(Ue)?Ue:void 0);else if($.multiple)ae(UPDATE_MODEL_EVENT,ue.value.getCheckedKeys(!0));else{const hn=treeFind([Fe],bn=>!isValidArray(Ce("children",bn))&&!Ce("disabled",bn),bn=>Ce("children",bn)),vn=hn?Ce("value",hn):void 0,_n=isValidValue($.modelValue)&&!!treeFind([Fe],bn=>Ce("value",bn)===$.modelValue,bn=>Ce("children",bn));ae(UPDATE_MODEL_EVENT,vn===$.modelValue||_n?void 0:vn)}nextTick(()=>{var hn;const vn=toValidArray($.modelValue);ue.value.setCheckedKeys(vn),(hn=z.onCheck)==null||hn.call(z,Fe,{checkedKeys:ue.value.getCheckedKeys(),checkedNodes:ue.value.getCheckedNodes(),halfCheckedKeys:ue.value.getHalfCheckedKeys(),halfCheckedNodes:ue.value.getHalfCheckedNodes()})})},cacheOptions:xe}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup($){const z=inject(selectKey);return watch(()=>$.data,()=>{var oe;$.data.forEach(le=>{z.cachedOptions.has(le.value)||z.cachedOptions.set(le.value,le)});const ae=((oe=z.selectWrapper)==null?void 0:oe.querySelectorAll("input"))||[];Array.from(ae).includes(document.activeElement)||z.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$b=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ElSelect.props,..._Tree.props,cacheData:{type:Array,default:()=>[]}},setup($,z){const{slots:oe,expose:ae}=z,le=ref(),ue=ref(),pe=computed(()=>$.nodeKey||$.valueKey||"value"),_e=useSelect($,z,{select:le,tree:ue,key:pe}),{cacheOptions:Ce,...$e}=useTree$1($,z,{select:le,tree:ue,key:pe}),xe=reactive({});return ae(xe),onMounted(()=>{Object.assign(xe,{...pick$1(ue.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(le.value,["focus","blur"])})}),()=>h$3(ElSelect,reactive({..._e,ref:Ie=>le.value=Ie}),{...oe,default:()=>[h$3(CacheOptions,{data:Ce.value}),h$3(_Tree,reactive({...$e,ref:Ie=>ue.value=Ie}))]})}});var TreeSelect=_export_sfc$1(_sfc_main$b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);TreeSelect.install=$=>{$.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=($=>($.KEY="id",$.LABEL="label",$.CHILDREN="children",$.DISABLED="disabled",$))(TreeOptionsEnum||{}),SetOperationEnum=($=>($.ADD="add",$.DELETE="delete",$))(SetOperationEnum||{});const itemSize={type:Number,default:26},treeProps=buildProps({data:{type:definePropType(Array),default:()=>mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:definePropType(Object),default:()=>mutable({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},itemSize,icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:definePropType([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0}}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",NODE_EXPAND="node-expand",NODE_COLLAPSE="node-collapse",CURRENT_CHANGE="current-change",NODE_CHECK="check",NODE_CHECK_CHANGE="check-change",NODE_CONTEXTMENU="node-contextmenu",treeEmits={[NODE_CLICK]:($,z,oe)=>$&&z&&oe,[NODE_EXPAND]:($,z)=>$&&z,[NODE_COLLAPSE]:($,z)=>$&&z,[CURRENT_CHANGE]:($,z)=>$&&z,[NODE_CHECK]:($,z)=>$&&z,[NODE_CHECK_CHANGE]:($,z)=>$&&typeof z=="boolean",[NODE_CONTEXTMENU]:($,z,oe)=>$&&z&&oe},treeNodeEmits={click:($,z)=>!!($&&z),toggle:$=>!!$,check:($,z)=>$&&typeof z=="boolean"};function useCheck($,z){const oe=ref(new Set),ae=ref(new Set),{emit:le}=getCurrentInstance();watch([()=>z.value,()=>$.defaultCheckedKeys],()=>nextTick(()=>{hn($.defaultCheckedKeys)}),{immediate:!0});const ue=()=>{if(!z.value||!$.showCheckbox||$.checkStrictly)return;const{levelTreeNodeMap:vn,maxLevel:_n}=z.value,bn=oe.value,Sn=new Set;for(let Cn=_n-1;Cn>=1;--Cn){const En=vn.get(Cn);En&&En.forEach($n=>{const wn=$n.children;if(wn){let Tn=!0,xn=!1;for(const kn of wn){const Nn=kn.key;if(bn.has(Nn))xn=!0;else if(Sn.has(Nn)){Tn=!1,xn=!0;break}else Tn=!1}Tn?bn.add($n.key):xn?(Sn.add($n.key),bn.delete($n.key)):(bn.delete($n.key),Sn.delete($n.key))}})}ae.value=Sn},pe=vn=>oe.value.has(vn.key),_e=vn=>ae.value.has(vn.key),Ce=(vn,_n,bn=!0)=>{const Sn=oe.value,Cn=(En,$n)=>{Sn[$n?SetOperationEnum.ADD:SetOperationEnum.DELETE](En.key);const wn=En.children;!$.checkStrictly&&wn&&wn.forEach(Tn=>{Tn.disabled||Cn(Tn,$n)})};Cn(vn,_n),ue(),bn&&$e(vn,_n)},$e=(vn,_n)=>{const{checkedNodes:bn,checkedKeys:Sn}=Ue(),{halfCheckedNodes:Cn,halfCheckedKeys:En}=qe();le(NODE_CHECK,vn.data,{checkedKeys:Sn,checkedNodes:bn,halfCheckedKeys:En,halfCheckedNodes:Cn}),le(NODE_CHECK_CHANGE,vn.data,_n)};function xe(vn=!1){return Ue(vn).checkedKeys}function Ie(vn=!1){return Ue(vn).checkedNodes}function Fe(){return qe().halfCheckedKeys}function ze(){return qe().halfCheckedNodes}function Ue(vn=!1){const _n=[],bn=[];if(z!=null&&z.value&&$.showCheckbox){const{treeNodeMap:Sn}=z.value;oe.value.forEach(Cn=>{const En=Sn.get(Cn);En&&(!vn||vn&&En.isLeaf)&&(bn.push(Cn),_n.push(En.data))})}return{checkedKeys:bn,checkedNodes:_n}}function qe(){const vn=[],_n=[];if(z!=null&&z.value&&$.showCheckbox){const{treeNodeMap:bn}=z.value;ae.value.forEach(Sn=>{const Cn=bn.get(Sn);Cn&&(_n.push(Sn),vn.push(Cn.data))})}return{halfCheckedNodes:vn,halfCheckedKeys:_n}}function At(vn){oe.value.clear(),ae.value.clear(),hn(vn)}function Lt(vn,_n){if(z!=null&&z.value&&$.showCheckbox){const bn=z.value.treeNodeMap.get(vn);bn&&Ce(bn,_n,!1)}}function hn(vn){if(z!=null&&z.value){const{treeNodeMap:_n}=z.value;if($.showCheckbox&&_n&&vn)for(const bn of vn){const Sn=_n.get(bn);Sn&&!pe(Sn)&&Ce(Sn,!0,!1)}}}return{updateCheckedKeys:ue,toggleCheckbox:Ce,isChecked:pe,isIndeterminate:_e,getCheckedKeys:xe,getCheckedNodes:Ie,getHalfCheckedKeys:Fe,getHalfCheckedNodes:ze,setChecked:Lt,setCheckedKeys:At}}function useFilter($,z){const oe=ref(new Set([])),ae=ref(new Set([])),le=computed(()=>isFunction$5($.filterMethod));function ue(_e){var Ce;if(!le.value)return;const $e=new Set,xe=ae.value,Ie=oe.value,Fe=[],ze=((Ce=z.value)==null?void 0:Ce.treeNodes)||[],Ue=$.filterMethod;Ie.clear();function qe(At){At.forEach(Lt=>{Fe.push(Lt),Ue!=null&&Ue(_e,Lt.data)?Fe.forEach(vn=>{$e.add(vn.key)}):Lt.isLeaf&&Ie.add(Lt.key);const hn=Lt.children;if(hn&&qe(hn),!Lt.isLeaf){if(!$e.has(Lt.key))Ie.add(Lt.key);else if(hn){let vn=!0;for(const _n of hn)if(!Ie.has(_n.key)){vn=!1;break}vn?xe.add(Lt.key):xe.delete(Lt.key)}}Fe.pop()})}return qe(ze),$e}function pe(_e){return ae.value.has(_e.key)}return{hiddenExpandIconKeySet:ae,hiddenNodeKeySet:oe,doFilter:ue,isForceHiddenExpandIcon:pe}}function useTree($,z){const oe=ref(new Set($.defaultExpandedKeys)),ae=ref(),le=shallowRef();watch(()=>$.currentNodeKey,Gn=>{ae.value=Gn},{immediate:!0}),watch(()=>$.data,Gn=>{ar(Gn)},{immediate:!0});const{isIndeterminate:ue,isChecked:pe,toggleCheckbox:_e,getCheckedKeys:Ce,getCheckedNodes:$e,getHalfCheckedKeys:xe,getHalfCheckedNodes:Ie,setChecked:Fe,setCheckedKeys:ze}=useCheck($,le),{doFilter:Ue,hiddenNodeKeySet:qe,isForceHiddenExpandIcon:At}=useFilter($,le),Lt=computed(()=>{var Gn;return((Gn=$.props)==null?void 0:Gn.value)||TreeOptionsEnum.KEY}),hn=computed(()=>{var Gn;return((Gn=$.props)==null?void 0:Gn.children)||TreeOptionsEnum.CHILDREN}),vn=computed(()=>{var Gn;return((Gn=$.props)==null?void 0:Gn.disabled)||TreeOptionsEnum.DISABLED}),_n=computed(()=>{var Gn;return((Gn=$.props)==null?void 0:Gn.label)||TreeOptionsEnum.LABEL}),bn=computed(()=>{const Gn=oe.value,Wn=qe.value,Qn=[],cr=le.value&&le.value.treeNodes||[];function jn(){const Zn=[];for(let nr=cr.length-1;nr>=0;--nr)Zn.push(cr[nr]);for(;Zn.length;){const nr=Zn.pop();if(nr&&(Wn.has(nr.key)||Qn.push(nr),Gn.has(nr.key))){const hr=nr.children;if(hr){const gr=hr.length;for(let or=gr-1;or>=0;--or)Zn.push(hr[or])}}}}return jn(),Qn}),Sn=computed(()=>bn.value.length>0);function Cn(Gn){const Wn=new Map,Qn=new Map;let cr=1;function jn(nr,hr=1,gr=void 0){var or;const wr=[];for(const mr of nr){const Tr=wn(mr),dr={level:hr,key:Tr,data:mr};dr.label=xn(mr),dr.parent=gr;const ir=$n(mr);dr.disabled=Tn(mr),dr.isLeaf=!ir||ir.length===0,ir&&ir.length&&(dr.children=jn(ir,hr+1,dr)),wr.push(dr),Wn.set(Tr,dr),Qn.has(hr)||Qn.set(hr,[]),(or=Qn.get(hr))==null||or.push(dr)}return hr>cr&&(cr=hr),wr}const Zn=jn(Gn);return{treeNodeMap:Wn,levelTreeNodeMap:Qn,maxLevel:cr,treeNodes:Zn}}function En(Gn){const Wn=Ue(Gn);Wn&&(oe.value=Wn)}function $n(Gn){return Gn[hn.value]}function wn(Gn){return Gn?Gn[Lt.value]:""}function Tn(Gn){return Gn[vn.value]}function xn(Gn){return Gn[_n.value]}function kn(Gn){oe.value.has(Gn.key)?Mn(Gn):Ln(Gn)}function Nn(Gn){oe.value=new Set(Gn)}function Bn(Gn,Wn){z(NODE_CLICK,Gn.data,Gn,Wn),Dn(Gn),$.expandOnClickNode&&kn(Gn),$.showCheckbox&&$.checkOnClickNode&&!Gn.disabled&&_e(Gn,!pe(Gn),!0)}function Dn(Gn){Fn(Gn)||(ae.value=Gn.key,z(CURRENT_CHANGE,Gn.data,Gn))}function In(Gn,Wn){_e(Gn,Wn)}function Ln(Gn){const Wn=oe.value;if(le.value&&$.accordion){const{treeNodeMap:Qn}=le.value;Wn.forEach(cr=>{const jn=Qn.get(cr);Gn&&Gn.level===(jn==null?void 0:jn.level)&&Wn.delete(cr)})}Wn.add(Gn.key),z(NODE_EXPAND,Gn.data,Gn)}function Mn(Gn){oe.value.delete(Gn.key),z(NODE_COLLAPSE,Gn.data,Gn)}function Vn(Gn){return oe.value.has(Gn.key)}function Yn(Gn){return!!Gn.disabled}function Fn(Gn){const Wn=ae.value;return!!Wn&&Wn===Gn.key}function Xn(){var Gn,Wn;if(ae.value)return(Wn=(Gn=le.value)==null?void 0:Gn.treeNodeMap.get(ae.value))==null?void 0:Wn.data}function sr(){return ae.value}function vr(Gn){ae.value=Gn}function ar(Gn){nextTick(()=>le.value=Cn(Gn))}function qn(Gn){var Wn;const Qn=isObject$8(Gn)?wn(Gn):Gn;return(Wn=le.value)==null?void 0:Wn.treeNodeMap.get(Qn)}return{tree:le,flattenTree:bn,isNotEmpty:Sn,getKey:wn,getChildren:$n,toggleExpand:kn,toggleCheckbox:_e,isExpanded:Vn,isChecked:pe,isIndeterminate:ue,isDisabled:Yn,isCurrent:Fn,isForceHiddenExpandIcon:At,handleNodeClick:Bn,handleNodeCheck:In,getCurrentNode:Xn,getCurrentKey:sr,setCurrentKey:vr,getCheckedKeys:Ce,getCheckedNodes:$e,getHalfCheckedKeys:xe,getHalfCheckedNodes:Ie,setChecked:Fe,setCheckedKeys:ze,filter:En,setData:ar,getNode:qn,expandNode:Ln,collapseNode:Mn,setExpandedKeys:Nn}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup($){const z=inject(ROOT_TREE_INJECTION_KEY),oe=useNamespace("tree");return()=>{const ae=$.node,{data:le}=ae;return z!=null&&z.ctx.slots.default?z.ctx.slots.default({node:ae,data:le}):h$3("span",{class:oe.be("node","label")},[ae==null?void 0:ae.label])}}});const _hoisted_1$8=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],__default__$7=defineComponent({name:"ElTreeNode"}),_sfc_main$a=defineComponent({...__default__$7,props:treeNodeProps,emits:treeNodeEmits,setup($,{emit:z}){const oe=$,ae=inject(ROOT_TREE_INJECTION_KEY),le=useNamespace("tree"),ue=computed(()=>{var Ie;return(Ie=ae==null?void 0:ae.props.indent)!=null?Ie:16}),pe=computed(()=>{var Ie;return(Ie=ae==null?void 0:ae.props.icon)!=null?Ie:caret_right_default}),_e=Ie=>{z("click",oe.node,Ie)},Ce=()=>{z("toggle",oe.node)},$e=Ie=>{z("check",oe.node,Ie)},xe=Ie=>{var Fe,ze,Ue,qe;(Ue=(ze=(Fe=ae==null?void 0:ae.instance)==null?void 0:Fe.vnode)==null?void 0:ze.props)!=null&&Ue.onNodeContextmenu&&(Ie.stopPropagation(),Ie.preventDefault()),ae==null||ae.ctx.emit(NODE_CONTEXTMENU,Ie,(qe=oe.node)==null?void 0:qe.data,oe.node)};return(Ie,Fe)=>{var ze,Ue,qe;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref(le).b("node"),unref(le).is("expanded",Ie.expanded),unref(le).is("current",Ie.current),unref(le).is("focusable",!Ie.disabled),unref(le).is("checked",!Ie.disabled&&Ie.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":Ie.expanded,"aria-disabled":Ie.disabled,"aria-checked":Ie.checked,"data-key":(ze=Ie.node)==null?void 0:ze.key,onClick:withModifiers(_e,["stop"]),onContextmenu:xe},[createBaseVNode("div",{class:normalizeClass(unref(le).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(Ie.node.level-1)*unref(ue)}px`,height:Ie.itemSize+"px"})},[unref(pe)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).is("leaf",!!((Ue=Ie.node)!=null&&Ue.isLeaf)),unref(le).is("hidden",Ie.hiddenExpandIcon),{expanded:!((qe=Ie.node)!=null&&qe.isLeaf)&&Ie.expanded},unref(le).be("node","expand-icon")]),onClick:withModifiers(Ce,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(pe))))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),Ie.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":Ie.checked,indeterminate:Ie.indeterminate,disabled:Ie.disabled,onChange:$e,onClick:Fe[0]||(Fe[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode(unref(ElNodeContent),{node:Ie.node},null,8,["node"])],6)],42,_hoisted_1$8)}}});var ElTreeNode=_export_sfc$1(_sfc_main$a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const __default__$6=defineComponent({name:"ElTreeV2"}),_sfc_main$9=defineComponent({...__default__$6,props:treeProps,emits:treeEmits,setup($,{expose:z,emit:oe}){const ae=$,le=useSlots(),ue=computed(()=>ae.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:oe,slots:le},props:ae,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:pe}=useLocale(),_e=useNamespace("tree"),{flattenTree:Ce,isNotEmpty:$e,toggleExpand:xe,isExpanded:Ie,isIndeterminate:Fe,isChecked:ze,isDisabled:Ue,isCurrent:qe,isForceHiddenExpandIcon:At,handleNodeClick:Lt,handleNodeCheck:hn,toggleCheckbox:vn,getCurrentNode:_n,getCurrentKey:bn,setCurrentKey:Sn,getCheckedKeys:Cn,getCheckedNodes:En,getHalfCheckedKeys:$n,getHalfCheckedNodes:wn,setChecked:Tn,setCheckedKeys:xn,filter:kn,setData:Nn,getNode:Bn,expandNode:Dn,collapseNode:In,setExpandedKeys:Ln}=useTree(ae,oe);return z({toggleCheckbox:vn,getCurrentNode:_n,getCurrentKey:bn,setCurrentKey:Sn,getCheckedKeys:Cn,getCheckedNodes:En,getHalfCheckedKeys:$n,getHalfCheckedNodes:wn,setChecked:Tn,setCheckedKeys:xn,filter:kn,setData:Nn,getNode:Bn,expandNode:Dn,collapseNode:In,setExpandedKeys:Ln}),(Mn,Vn)=>{var Yn;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(_e).b(),{[unref(_e).m("highlight-current")]:Mn.highlightCurrent}]),role:"tree"},[unref($e)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,"class-name":unref(_e).b("virtual-list"),data:unref(Ce),total:unref(Ce).length,height:Mn.height,"item-size":unref(ue),"perf-mode":Mn.perfMode},{default:withCtx(({data:Fn,index:Xn,style:sr})=>[(openBlock(),createBlock(ElTreeNode,{key:Fn[Xn].key,style:normalizeStyle$1(sr),node:Fn[Xn],expanded:unref(Ie)(Fn[Xn]),"show-checkbox":Mn.showCheckbox,checked:unref(ze)(Fn[Xn]),indeterminate:unref(Fe)(Fn[Xn]),"item-size":unref(ue),disabled:unref(Ue)(Fn[Xn]),current:unref(qe)(Fn[Xn]),"hidden-expand-icon":unref(At)(Fn[Xn]),onClick:unref(Lt),onToggle:unref(xe),onCheck:unref(hn)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(_e).e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(unref(_e).e("empty-text"))},toDisplayString$1((Yn=Mn.emptyText)!=null?Yn:unref(pe)("el.tree.emptyText")),3)],2))],2)}}});var TreeV2=_export_sfc$1(_sfc_main$9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const ElTreeV2=withInstall(TreeV2),uploadContextKey=Symbol("uploadContextKey"),SCOPE$2="ElUpload";class UploadAjaxError extends Error{constructor(z,oe,ae,le){super(z),this.name="UploadAjaxError",this.status=oe,this.method=ae,this.url=le}}function getError($,z,oe){let ae;return oe.response?ae=`${oe.response.error||oe.response}`:oe.responseText?ae=`${oe.responseText}`:ae=`fail to ${z.method} ${$} ${oe.status}`,new UploadAjaxError(ae,oe.status,z.method,$)}function getBody($){const z=$.responseText||$.response;if(!z)return z;try{return JSON.parse(z)}catch{return z}}const ajaxUpload=$=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const z=new XMLHttpRequest,oe=$.action;z.upload&&z.upload.addEventListener("progress",ue=>{const pe=ue;pe.percent=ue.total>0?ue.loaded/ue.total*100:0,$.onProgress(pe)});const ae=new FormData;if($.data)for(const[ue,pe]of Object.entries($.data))Array.isArray(pe)?ae.append(ue,...pe):ae.append(ue,pe);ae.append($.filename,$.file,$.file.name),z.addEventListener("error",()=>{$.onError(getError(oe,$,z))}),z.addEventListener("load",()=>{if(z.status<200||z.status>=300)return $.onError(getError(oe,$,z));$.onSuccess(getBody(z))}),z.open($.method,oe,!0),$.withCredentials&&"withCredentials"in z&&(z.withCredentials=!0);const le=$.headers||{};if(le instanceof Headers)le.forEach((ue,pe)=>z.setRequestHeader(pe,ue));else for(const[ue,pe]of Object.entries(le))isNil(pe)||z.setRequestHeader(ue,String(pe));return z.send(ae),z},uploadListTypes=["text","picture","picture-card"];let fileId=1;const genFileId=()=>Date.now()+fileId++,uploadBaseProps=buildProps({action:{type:String,default:"#"},headers:{type:definePropType(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>mutable({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:definePropType(Array),default:()=>mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:uploadListTypes,default:"text"},httpRequest:{type:definePropType(Function),default:ajaxUpload},disabled:Boolean,limit:Number}),uploadProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},beforeRemove:{type:definePropType(Function)},onRemove:{type:definePropType(Function),default:NOOP},onChange:{type:definePropType(Function),default:NOOP},onPreview:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:!1},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"}}),uploadListEmits={remove:$=>!!$},_hoisted_1$7=["onKeydown"],_hoisted_2$6=["src"],_hoisted_3$4=["onClick"],_hoisted_4$2=["onClick"],_hoisted_5=["onClick"],__default__$5=defineComponent({name:"ElUploadList"}),_sfc_main$8=defineComponent({...__default__$5,props:uploadListProps,emits:uploadListEmits,setup($,{emit:z}){const{t:oe}=useLocale(),ae=useNamespace("upload"),le=useNamespace("icon"),ue=useNamespace("list"),pe=useFormDisabled(),_e=ref(!1),Ce=$e=>{z("remove",$e)};return($e,xe)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(ae).b("list"),unref(ae).bm("list",$e.listType),unref(ae).is("disabled",unref(pe))]),name:unref(ue).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($e.files,Ie=>(openBlock(),createElementBlock("li",{key:Ie.uid||Ie.name,class:normalizeClass([unref(ae).be("list","item"),unref(ae).is(Ie.status),{focusing:_e.value}]),tabindex:"0",onKeydown:withKeys(Fe=>!unref(pe)&&Ce(Ie),["delete"]),onFocus:xe[0]||(xe[0]=Fe=>_e.value=!0),onBlur:xe[1]||(xe[1]=Fe=>_e.value=!1),onClick:xe[2]||(xe[2]=Fe=>_e.value=!1)},[renderSlot($e.$slots,"default",{file:Ie},()=>[$e.listType==="picture"||Ie.status!=="uploading"&&$e.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(ae).be("list","item-thumbnail")),src:Ie.url,alt:""},null,10,_hoisted_2$6)):createCommentVNode("v-if",!0),Ie.status==="uploading"||$e.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ae).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(ae).be("list","item-name")),onClick:withModifiers(Fe=>$e.handlePreview(Ie),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(ae).be("list","item-file-name"))},toDisplayString$1(Ie.name),3)],10,_hoisted_3$4),Ie.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:$e.listType==="picture-card"?"circle":"line","stroke-width":$e.listType==="picture-card"?6:2,percentage:Number(Ie.percentage),style:normalizeStyle$1($e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("label",{class:normalizeClass(unref(ae).be("list","item-status-label"))},[$e.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).m("upload-success"),unref(le).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes($e.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(le).m("upload-success"),unref(le).m("check")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(pe)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(le).m("close")),onClick:Fe=>Ce(Ie)},{default:withCtx(()=>[createVNode(unref(close_default))]),_:2},1032,["class","onClick"])),createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),createCommentVNode(" This is a bug which needs to be fixed "),createCommentVNode(" TODO: Fix the incorrect navigation interaction "),unref(pe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(le).m("close-tip"))},toDisplayString$1(unref(oe)("el.upload.deleteTip")),3)),$e.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(ae).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(ae).be("list","item-preview")),onClick:Fe=>$e.handlePreview(Ie)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_4$2),unref(pe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ae).be("list","item-delete")),onClick:Fe=>Ce(Ie)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("delete"))},{default:withCtx(()=>[createVNode(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_5))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$7))),128)),renderSlot($e.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc$1(_sfc_main$8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:!1}}),uploadDraggerEmits={file:$=>isArray$c($)},_hoisted_1$6=["onDrop","onDragover"],COMPONENT_NAME="ElUploadDrag",__default__$4=defineComponent({name:COMPONENT_NAME}),_sfc_main$7=defineComponent({...__default__$4,props:uploadDraggerProps,emits:uploadDraggerEmits,setup($,{emit:z}){const oe=inject(uploadContextKey);oe||throwError$1(COMPONENT_NAME,"usage: <el-upload><el-upload-dragger /></el-upload>");const ae=useNamespace("upload"),le=ref(!1),ue=useFormDisabled(),pe=Ce=>{if(ue.value)return;le.value=!1,Ce.stopPropagation();const $e=Array.from(Ce.dataTransfer.files),xe=oe.accept.value;if(!xe){z("file",$e);return}const Ie=$e.filter(Fe=>{const{type:ze,name:Ue}=Fe,qe=Ue.includes(".")?`.${Ue.split(".").pop()}`:"",At=ze.replace(/\/.*$/,"");return xe.split(",").map(Lt=>Lt.trim()).filter(Lt=>Lt).some(Lt=>Lt.startsWith(".")?qe===Lt:/\/\*$/.test(Lt)?At===Lt.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(Lt)?ze===Lt:!1)});z("file",Ie)},_e=()=>{ue.value||(le.value=!0)};return(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b("dragger"),unref(ae).is("dragover",le.value)]),onDrop:withModifiers(pe,["prevent"]),onDragover:withModifiers(_e,["prevent"]),onDragleave:$e[0]||($e[0]=withModifiers(xe=>le.value=!1,["prevent"]))},[renderSlot(Ce.$slots,"default")],42,_hoisted_1$6))}});var UploadDragger=_export_sfc$1(_sfc_main$7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const uploadContentProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},onRemove:{type:definePropType(Function),default:NOOP},onStart:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),_hoisted_1$5=["onKeydown"],_hoisted_2$5=["name","multiple","accept"],__default__$3=defineComponent({name:"ElUploadContent",inheritAttrs:!1}),_sfc_main$6=defineComponent({...__default__$3,props:uploadContentProps,setup($,{expose:z}){const oe=$,ae=useNamespace("upload"),le=useFormDisabled(),ue=shallowRef({}),pe=shallowRef(),_e=Ue=>{if(Ue.length===0)return;const{autoUpload:qe,limit:At,fileList:Lt,multiple:hn,onStart:vn,onExceed:_n}=oe;if(At&&Lt.length+Ue.length>At){_n(Ue,Lt);return}hn||(Ue=Ue.slice(0,1));for(const bn of Ue){const Sn=bn;Sn.uid=genFileId(),vn(Sn),qe&&Ce(Sn)}},Ce=async Ue=>{if(pe.value.value="",!oe.beforeUpload)return $e(Ue);let qe,At={};try{const hn=oe.data,vn=oe.beforeUpload(Ue);At=isObject$8(oe.data)?cloneDeep(oe.data):oe.data,qe=await vn,isObject$8(oe.data)&&isEqual$1(hn,At)&&(At=cloneDeep(oe.data))}catch{qe=!1}if(qe===!1){oe.onRemove(Ue);return}let Lt=Ue;qe instanceof Blob&&(qe instanceof File?Lt=qe:Lt=new File([qe],Ue.name,{type:Ue.type})),$e(Object.assign(Lt,{uid:Ue.uid}),At)},$e=(Ue,qe)=>{const{headers:At,data:Lt,method:hn,withCredentials:vn,name:_n,action:bn,onProgress:Sn,onSuccess:Cn,onError:En,httpRequest:$n}=oe,{uid:wn}=Ue,Tn={headers:At||{},withCredentials:vn,file:Ue,data:qe??Lt,method:hn,filename:_n,action:bn,onProgress:kn=>{Sn(kn,Ue)},onSuccess:kn=>{Cn(kn,Ue),delete ue.value[wn]},onError:kn=>{En(kn,Ue),delete ue.value[wn]}},xn=$n(Tn);ue.value[wn]=xn,xn instanceof Promise&&xn.then(Tn.onSuccess,Tn.onError)},xe=Ue=>{const qe=Ue.target.files;qe&&_e(Array.from(qe))},Ie=()=>{le.value||(pe.value.value="",pe.value.click())},Fe=()=>{Ie()};return z({abort:Ue=>{entriesOf(ue.value).filter(Ue?([At])=>String(Ue.uid)===At:()=>!0).forEach(([At,Lt])=>{Lt instanceof XMLHttpRequest&&Lt.abort(),delete ue.value[At]})},upload:Ce}),(Ue,qe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(Ue.listType),unref(ae).is("drag",Ue.drag)]),tabindex:"0",onClick:Ie,onKeydown:withKeys(withModifiers(Fe,["self"]),["enter","space"])},[Ue.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(le),onFile:_e},{default:withCtx(()=>[renderSlot(Ue.$slots,"default")]),_:3},8,["disabled"])):renderSlot(Ue.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:pe,class:normalizeClass(unref(ae).e("input")),name:Ue.name,multiple:Ue.multiple,accept:Ue.accept,type:"file",onChange:xe,onClick:qe[0]||(qe[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$5)],42,_hoisted_1$5))}});var UploadContent=_export_sfc$1(_sfc_main$6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeObjectURL=$=>{var z;(z=$.url)!=null&&z.startsWith("blob:")&&URL.revokeObjectURL($.url)},useHandlers=($,z)=>{const oe=useVModel($,"fileList",void 0,{passive:!0}),ae=Fe=>oe.value.find(ze=>ze.uid===Fe.uid);function le(Fe){var ze;(ze=z.value)==null||ze.abort(Fe)}function ue(Fe=["ready","uploading","success","fail"]){oe.value=oe.value.filter(ze=>!Fe.includes(ze.status))}const pe=(Fe,ze)=>{const Ue=ae(ze);Ue&&(console.error(Fe),Ue.status="fail",oe.value.splice(oe.value.indexOf(Ue),1),$.onError(Fe,Ue,oe.value),$.onChange(Ue,oe.value))},_e=(Fe,ze)=>{const Ue=ae(ze);Ue&&($.onProgress(Fe,Ue,oe.value),Ue.status="uploading",Ue.percentage=Math.round(Fe.percent))},Ce=(Fe,ze)=>{const Ue=ae(ze);Ue&&(Ue.status="success",Ue.response=Fe,$.onSuccess(Fe,Ue,oe.value),$.onChange(Ue,oe.value))},$e=Fe=>{isNil(Fe.uid)&&(Fe.uid=genFileId());const ze={name:Fe.name,percentage:0,status:"ready",size:Fe.size,raw:Fe,uid:Fe.uid};if($.listType==="picture-card"||$.listType==="picture")try{ze.url=URL.createObjectURL(Fe)}catch(Ue){Ue.message,$.onError(Ue,ze,oe.value)}oe.value=[...oe.value,ze],$.onChange(ze,oe.value)},xe=async Fe=>{const ze=Fe instanceof File?ae(Fe):Fe;ze||throwError$1(SCOPE$1,"file to be removed not found");const Ue=qe=>{le(qe);const At=oe.value;At.splice(At.indexOf(qe),1),$.onRemove(qe,At),revokeObjectURL(qe)};$.beforeRemove?await $.beforeRemove(ze,oe.value)!==!1&&Ue(ze):Ue(ze)};function Ie(){oe.value.filter(({status:Fe})=>Fe==="ready").forEach(({raw:Fe})=>{var ze;return Fe&&((ze=z.value)==null?void 0:ze.upload(Fe))})}return watch(()=>$.listType,Fe=>{Fe!=="picture-card"&&Fe!=="picture"||(oe.value=oe.value.map(ze=>{const{raw:Ue,url:qe}=ze;if(!qe&&Ue)try{ze.url=URL.createObjectURL(Ue)}catch(At){$.onError(At,ze,oe.value)}return ze}))}),watch(oe,Fe=>{for(const ze of Fe)ze.uid||(ze.uid=genFileId()),ze.status||(ze.status="success")},{immediate:!0,deep:!0}),{uploadFiles:oe,abort:le,clearFiles:ue,handleError:pe,handleProgress:_e,handleStart:$e,handleSuccess:Ce,handleRemove:xe,submit:Ie}},__default__$2=defineComponent({name:"ElUpload"}),_sfc_main$5=defineComponent({...__default__$2,props:uploadProps,setup($,{expose:z}){const oe=$,ae=useSlots(),le=useFormDisabled(),ue=shallowRef(),{abort:pe,submit:_e,clearFiles:Ce,uploadFiles:$e,handleStart:xe,handleError:Ie,handleRemove:Fe,handleSuccess:ze,handleProgress:Ue}=useHandlers(oe,ue),qe=computed(()=>oe.listType==="picture-card"),At=computed(()=>({...oe,fileList:$e.value,onStart:xe,onProgress:Ue,onSuccess:ze,onError:Ie,onRemove:Fe}));return onBeforeUnmount(()=>{$e.value.forEach(({url:Lt})=>{Lt!=null&&Lt.startsWith("blob:")&&URL.revokeObjectURL(Lt)})}),provide(uploadContextKey,{accept:toRef$1(oe,"accept")}),z({abort:pe,submit:_e,clearFiles:Ce,handleStart:xe,handleRemove:Fe}),(Lt,hn)=>(openBlock(),createElementBlock("div",null,[unref(qe)&&Lt.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(le),"list-type":Lt.listType,files:unref($e),"handle-preview":Lt.onPreview,onRemove:unref(Fe)},createSlots({append:withCtx(()=>[createVNode(UploadContent,mergeProps({ref_key:"uploadRef",ref:ue},unref(At)),{default:withCtx(()=>[unref(ae).trigger?renderSlot(Lt.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ae).trigger&&unref(ae).default?renderSlot(Lt.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[Lt.$slots.file?{name:"default",fn:withCtx(({file:vn})=>[renderSlot(Lt.$slots,"file",{file:vn})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!unref(qe)||unref(qe)&&!Lt.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:ue},unref(At)),{default:withCtx(()=>[unref(ae).trigger?renderSlot(Lt.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ae).trigger&&unref(ae).default?renderSlot(Lt.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),Lt.$slots.trigger?renderSlot(Lt.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(Lt.$slots,"tip"),!unref(qe)&&Lt.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(le),"list-type":Lt.listType,files:unref($e),"handle-preview":Lt.onPreview,onRemove:unref(Fe)},createSlots({_:2},[Lt.$slots.file?{name:"default",fn:withCtx(({file:vn})=>[renderSlot(Lt.$slots,"file",{file:vn})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc$1(_sfc_main$5,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup$1,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,ElLink,ElMenu,ElMenuItem,ElMenuItemGroup,ElSubMenu,ElPageHeader,ElPagination,ElPopconfirm,ElPopover,ElPopper,ElProgress,ElRadio,ElRadioButton,ElRadioGroup,ElRate,ElResult,ElRow,ElScrollbar,ElSelect,ElOption,ElOptionGroup,ElSelectV2,ElSkeleton,ElSkeletonItem,ElSlider,ElSpace,ElStatistic,ElCountdown,ElSteps,ElStep,ElSwitch,ElTable,ElTableColumn,ElTableV2,ElTabs,ElTabPane,ElTag,ElText,ElTimePicker,ElTimeSelect,ElTimeline,ElTimelineItem,ElTooltip,ElTooltipV2,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload];const SCOPE="ElInfiniteScroll",CHECK_INTERVAL=50,DEFAULT_DELAY=200,DEFAULT_DISTANCE=0,attributes={delay:{type:Number,default:DEFAULT_DELAY},distance:{type:Number,default:DEFAULT_DISTANCE},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},getScrollOptions=($,z)=>Object.entries(attributes).reduce((oe,[ae,le])=>{var ue,pe;const{type:_e,default:Ce}=le,$e=$.getAttribute(`infinite-scroll-${ae}`);let xe=(pe=(ue=z[$e])!=null?ue:$e)!=null?pe:Ce;return xe=xe==="false"?!1:xe,xe=_e(xe),oe[ae]=Number.isNaN(xe)?Ce:xe,oe},{}),destroyObserver=$=>{const{observer:z}=$[SCOPE];z&&(z.disconnect(),delete $[SCOPE].observer)},handleScroll=($,z)=>{const{container:oe,containerEl:ae,instance:le,observer:ue,lastScrollTop:pe}=$[SCOPE],{disabled:_e,distance:Ce}=getScrollOptions($,le),{clientHeight:$e,scrollHeight:xe,scrollTop:Ie}=ae,Fe=Ie-pe;if($[SCOPE].lastScrollTop=Ie,ue||_e||Fe<0)return;let ze=!1;if(oe===$)ze=xe-($e+Ie)<=Ce;else{const{clientTop:Ue,scrollHeight:qe}=$,At=getOffsetTopDistance($,ae);ze=Ie+$e>=At+Ue+qe-Ce}ze&&z.call(le)};function checkFull($,z){const{containerEl:oe,instance:ae}=$[SCOPE],{disabled:le}=getScrollOptions($,ae);le||oe.clientHeight===0||(oe.scrollHeight<=oe.clientHeight?z.call(ae):destroyObserver($))}const InfiniteScroll={async mounted($,z){const{instance:oe,value:ae}=z;isFunction$5(ae)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:le,immediate:ue}=getScrollOptions($,oe),pe=getScrollContainer($,!0),_e=pe===window?document.documentElement:pe,Ce=throttle$1(handleScroll.bind(null,$,ae),le);if(pe){if($[SCOPE]={instance:oe,container:pe,containerEl:_e,delay:le,cb:ae,onScroll:Ce,lastScrollTop:_e.scrollTop},ue){const $e=new MutationObserver(throttle$1(checkFull.bind(null,$,ae),CHECK_INTERVAL));$[SCOPE].observer=$e,$e.observe($,{childList:!0,subtree:!0}),checkFull($,ae)}pe.addEventListener("scroll",Ce)}},unmounted($){const{container:z,onScroll:oe}=$[SCOPE];z==null||z.removeEventListener("scroll",oe),destroyObserver($)},async updated($){if(!$[SCOPE])await nextTick();else{const{containerEl:z,cb:oe,observer:ae}=$[SCOPE];z.clientHeight&&ae&&checkFull($,oe)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=$=>{$.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent($){let z;const oe=ref(!1),ae=reactive({...$,originalPosition:"",originalOverflow:"",visible:!1});function le(Fe){ae.text=Fe}function ue(){const Fe=ae.parent,ze=Ie.ns;if(!Fe.vLoadingAddClassList){let Ue=Fe.getAttribute("loading-number");Ue=Number.parseInt(Ue)-1,Ue?Fe.setAttribute("loading-number",Ue.toString()):(removeClass(Fe,ze.bm("parent","relative")),Fe.removeAttribute("loading-number")),removeClass(Fe,ze.bm("parent","hidden"))}pe(),xe.unmount()}function pe(){var Fe,ze;(ze=(Fe=Ie.$el)==null?void 0:Fe.parentNode)==null||ze.removeChild(Ie.$el)}function _e(){var Fe;$.beforeClose&&!$.beforeClose()||(oe.value=!0,clearTimeout(z),z=window.setTimeout(Ce,400),ae.visible=!1,(Fe=$.closed)==null||Fe.call($))}function Ce(){if(!oe.value)return;const Fe=ae.parent;oe.value=!1,Fe.vLoadingAddClassList=void 0,ue()}const $e=defineComponent({name:"ElLoading",setup(Fe,{expose:ze}){const{ns:Ue,zIndex:qe}=useGlobalComponentSettings("loading");return ze({ns:Ue,zIndex:qe}),()=>{const At=ae.spinner||ae.svg,Lt=h$3("svg",{class:"circular",viewBox:ae.svgViewBox?ae.svgViewBox:"0 0 50 50",...At?{innerHTML:At}:{}},[h$3("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),hn=ae.text?h$3("p",{class:Ue.b("text")},[ae.text]):void 0;return h$3(Transition,{name:Ue.b("fade"),onAfterLeave:Ce},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:ae.background||""},class:[Ue.b("mask"),ae.customClass,ae.fullscreen?"is-fullscreen":""]},[h$3("div",{class:Ue.b("spinner")},[Lt,hn])]),[[vShow,ae.visible]])])})}}}),xe=createApp($e),Ie=xe.mount(document.createElement("div"));return{...toRefs(ae),setText:le,removeElLoadingChild:pe,close:_e,handleAfterLeave:Ce,vm:Ie,get $el(){return Ie.$el}}}let fullscreenInstance;const Loading=function($={}){if(!isClient$2)return;const z=resolveOptions($);if(z.fullscreen&&fullscreenInstance)return fullscreenInstance;const oe=createLoadingComponent({...z,closed:()=>{var le;(le=z.closed)==null||le.call(z),z.fullscreen&&(fullscreenInstance=void 0)}});addStyle(z,z.parent,oe),addClassList(z,z.parent,oe),z.parent.vLoadingAddClassList=()=>addClassList(z,z.parent,oe);let ae=z.parent.getAttribute("loading-number");return ae?ae=`${Number.parseInt(ae)+1}`:ae="1",z.parent.setAttribute("loading-number",ae),z.parent.appendChild(oe.$el),nextTick(()=>oe.visible.value=z.visible),z.fullscreen&&(fullscreenInstance=oe),oe},resolveOptions=$=>{var z,oe,ae,le;let ue;return isString$7($.target)?ue=(z=document.querySelector($.target))!=null?z:document.body:ue=$.target||document.body,{parent:ue===document.body||$.body?document.body:ue,background:$.background||"",svg:$.svg||"",svgViewBox:$.svgViewBox||"",spinner:$.spinner||!1,text:$.text||"",fullscreen:ue===document.body&&((oe=$.fullscreen)!=null?oe:!0),lock:(ae=$.lock)!=null?ae:!1,customClass:$.customClass||"",visible:(le=$.visible)!=null?le:!0,target:ue}},addStyle=async($,z,oe)=>{const{nextZIndex:ae}=oe.vm.zIndex||oe.vm._.exposed.zIndex,le={};if($.fullscreen)oe.originalPosition.value=getStyle$1(document.body,"position"),oe.originalOverflow.value=getStyle$1(document.body,"overflow"),le.zIndex=ae();else if($.parent===document.body){oe.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const ue of["top","left"]){const pe=ue==="top"?"scrollTop":"scrollLeft";le[ue]=`${$.target.getBoundingClientRect()[ue]+document.body[pe]+document.documentElement[pe]-Number.parseInt(getStyle$1(document.body,`margin-${ue}`),10)}px`}for(const ue of["height","width"])le[ue]=`${$.target.getBoundingClientRect()[ue]}px`}else oe.originalPosition.value=getStyle$1(z,"position");for(const[ue,pe]of Object.entries(le))oe.$el.style[ue]=pe},addClassList=($,z,oe)=>{const ae=oe.vm.ns||oe.vm._.exposed.ns;["absolute","fixed","sticky"].includes(oe.originalPosition.value)?removeClass(z,ae.bm("parent","relative")):addClass(z,ae.bm("parent","relative")),$.fullscreen&&$.lock?addClass(z,ae.bm("parent","hidden")):removeClass(z,ae.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance$1=($,z)=>{var oe,ae,le,ue;const pe=z.instance,_e=Fe=>isObject$8(z.value)?z.value[Fe]:void 0,Ce=Fe=>{const ze=isString$7(Fe)&&(pe==null?void 0:pe[Fe])||Fe;return ze&&ref(ze)},$e=Fe=>Ce(_e(Fe)||$.getAttribute(`element-loading-${hyphenate(Fe)}`)),xe=(oe=_e("fullscreen"))!=null?oe:z.modifiers.fullscreen,Ie={text:$e("text"),svg:$e("svg"),svgViewBox:$e("svgViewBox"),spinner:$e("spinner"),background:$e("background"),customClass:$e("customClass"),fullscreen:xe,target:(ae=_e("target"))!=null?ae:xe?void 0:$,body:(le=_e("body"))!=null?le:z.modifiers.body,lock:(ue=_e("lock"))!=null?ue:z.modifiers.lock};$[INSTANCE_KEY]={options:Ie,instance:Loading(Ie)}},updateOptions=($,z)=>{for(const oe of Object.keys(z))isRef(z[oe])&&(z[oe].value=$[oe])},vLoading={mounted($,z){z.value&&createInstance$1($,z)},updated($,z){const oe=$[INSTANCE_KEY];z.oldValue!==z.value&&(z.value&&!z.oldValue?createInstance$1($,z):z.value&&z.oldValue?isObject$8(z.value)&&updateOptions(z.value,oe.options):oe==null||oe.instance.close())},unmounted($){var z;(z=$[INSTANCE_KEY])==null||z.instance.close()}},ElLoading={install($){$.directive("loading",vLoading),$.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["success","info","warning","error"],messageDefaults=mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient$2?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},center:{type:Boolean,default:messageDefaults.center},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),required:!1},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},offset:{type:Number,default:messageDefaults.offset},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},instances$2=shallowReactive([]),getInstance$1=$=>{const z=instances$2.findIndex(le=>le.id===$),oe=instances$2[z];let ae;return z>0&&(ae=instances$2[z-1]),{current:oe,prev:ae}},getLastOffset=$=>{const{prev:z}=getInstance$1($);return z?z.vm.exposed.bottom.value:0},getOffsetOrSpace=($,z)=>instances$2.findIndex(ae=>ae.id===$)>0?20:z,_hoisted_1$4=["id"],_hoisted_2$4=["innerHTML"],__default__$1=defineComponent({name:"ElMessage"}),_sfc_main$4=defineComponent({...__default__$1,props:messageProps,emits:messageEmits,setup($,{expose:z}){const oe=$,{Close:ae}=TypeComponents,{ns:le,zIndex:ue}=useGlobalComponentSettings("message"),{currentZIndex:pe,nextZIndex:_e}=ue,Ce=ref(),$e=ref(!1),xe=ref(0);let Ie;const Fe=computed(()=>oe.type?oe.type==="error"?"danger":oe.type:"info"),ze=computed(()=>{const Cn=oe.type;return{[le.bm("icon",Cn)]:Cn&&TypeComponentsMap[Cn]}}),Ue=computed(()=>oe.icon||TypeComponentsMap[oe.type]||""),qe=computed(()=>getLastOffset(oe.id)),At=computed(()=>getOffsetOrSpace(oe.id,oe.offset)+qe.value),Lt=computed(()=>xe.value+At.value),hn=computed(()=>({top:`${At.value}px`,zIndex:pe.value}));function vn(){oe.duration!==0&&({stop:Ie}=useTimeoutFn$1(()=>{bn()},oe.duration))}function _n(){Ie==null||Ie()}function bn(){$e.value=!1}function Sn({code:Cn}){Cn===EVENT_CODE.esc&&bn()}return onMounted(()=>{vn(),_e(),$e.value=!0}),watch(()=>oe.repeatNum,()=>{_n(),vn()}),useEventListener$1(document,"keydown",Sn),useResizeObserver(Ce,()=>{xe.value=Ce.value.getBoundingClientRect().height}),z({visible:$e,bottom:Lt,close:bn}),(Cn,En)=>(openBlock(),createBlock(Transition,{name:unref(le).b("fade"),onBeforeLeave:Cn.onClose,onAfterLeave:En[0]||(En[0]=$n=>Cn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:Cn.id,ref_key:"messageRef",ref:Ce,class:normalizeClass([unref(le).b(),{[unref(le).m(Cn.type)]:Cn.type&&!Cn.icon},unref(le).is("center",Cn.center),unref(le).is("closable",Cn.showClose),Cn.customClass]),style:normalizeStyle$1(unref(hn)),role:"alert",onMouseenter:_n,onMouseleave:vn},[Cn.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:Cn.repeatNum,type:unref(Fe),class:normalizeClass(unref(le).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(Ue)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(le).e("icon"),unref(ze)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ue))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(Cn.$slots,"default",{},()=>[Cn.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(unref(le).e("content")),innerHTML:Cn.message},null,10,_hoisted_2$4)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(le).e("content"))},toDisplayString$1(Cn.message),3))]),Cn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(le).e("closeBtn")),onClick:withModifiers(bn,["stop"])},{default:withCtx(()=>[createVNode(unref(ae))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$4),[[vShow,$e.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc$1(_sfc_main$4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeOptions=$=>{const z=!$||isString$7($)||isVNode$1($)||isFunction$5($)?{message:$}:$,oe={...messageDefaults,...z};if(!oe.appendTo)oe.appendTo=document.body;else if(isString$7(oe.appendTo)){let ae=document.querySelector(oe.appendTo);isElement$2(ae)||(ae=document.body),oe.appendTo=ae}return oe},closeMessage=$=>{const z=instances$2.indexOf($);if(z===-1)return;instances$2.splice(z,1);const{handler:oe}=$;oe.close()},createMessage=({appendTo:$,...z},oe)=>{const ae=`message_${seed$1++}`,le=z.onClose,ue=document.createElement("div"),pe={...z,id:ae,onClose:()=>{le==null||le(),closeMessage(xe)},onDestroy:()=>{render$4(null,ue)}},_e=createVNode(MessageConstructor,pe,isFunction$5(pe.message)||isVNode$1(pe.message)?{default:isFunction$5(pe.message)?pe.message:()=>pe.message}:null);_e.appContext=oe||message._context,render$4(_e,ue),$.appendChild(ue.firstElementChild);const Ce=_e.component,xe={id:ae,vnode:_e,vm:Ce,handler:{close:()=>{Ce.exposed.visible.value=!1}},props:_e.component.props};return xe},message=($={},z)=>{if(!isClient$2)return{close:()=>{}};if(isNumber$5(messageConfig.max)&&instances$2.length>=messageConfig.max)return{close:()=>{}};const oe=normalizeOptions($);if(oe.grouping&&instances$2.length){const le=instances$2.find(({vnode:ue})=>{var pe;return((pe=ue.props)==null?void 0:pe.message)===oe.message});if(le)return le.props.repeatNum+=1,le.props.type=oe.type,le.handler}const ae=createMessage(oe,z);return instances$2.push(ae),ae.handler};messageTypes.forEach($=>{message[$]=(z={},oe)=>{const ae=normalizeOptions(z);return message({...ae,type:$},oe)}});function closeAll$1($){for(const z of instances$2)(!$||$===z.props.type)&&z.handler.close()}message.closeAll=closeAll$1;message._context=null;const ElMessage=withInstallFunction(message,"$message"),_sfc_main$3=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton,ElFocusTrap,ElInput,ElOverlay,ElIcon,...TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup($,{emit:z}){const{locale:oe,zIndex:ae,ns:le,size:ue}=useGlobalComponentSettings("message-box",computed(()=>$.buttonSize)),{t:pe}=oe,{nextZIndex:_e}=ae,Ce=ref(!1),$e=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:_e()}),xe=computed(()=>{const Bn=$e.type;return{[le.bm("icon",Bn)]:Bn&&TypeComponentsMap[Bn]}}),Ie=useId(),Fe=useId(),ze=computed(()=>$e.icon||TypeComponentsMap[$e.type]||""),Ue=computed(()=>!!$e.message),qe=ref(),At=ref(),Lt=ref(),hn=ref(),vn=ref(),_n=computed(()=>$e.confirmButtonClass);watch(()=>$e.inputValue,async Bn=>{await nextTick(),$.boxType==="prompt"&&Bn!==null&&Tn()},{immediate:!0}),watch(()=>Ce.value,Bn=>{var Dn,In;Bn&&($.boxType!=="prompt"&&($e.autofocus?Lt.value=(In=(Dn=vn.value)==null?void 0:Dn.$el)!=null?In:qe.value:Lt.value=qe.value),$e.zIndex=_e()),$.boxType==="prompt"&&(Bn?nextTick().then(()=>{var Ln;hn.value&&hn.value.$el&&($e.autofocus?Lt.value=(Ln=xn())!=null?Ln:qe.value:Lt.value=qe.value)}):($e.editorErrorMessage="",$e.validateError=!1))});const bn=computed(()=>$.draggable);useDraggable(qe,At,bn),onMounted(async()=>{await nextTick(),$.closeOnHashChange&&window.addEventListener("hashchange",Sn)}),onBeforeUnmount(()=>{$.closeOnHashChange&&window.removeEventListener("hashchange",Sn)});function Sn(){Ce.value&&(Ce.value=!1,nextTick(()=>{$e.action&&z("action",$e.action)}))}const Cn=()=>{$.closeOnClickModal&&wn($e.distinguishCancelAndClose?"close":"cancel")},En=useSameTarget(Cn),$n=Bn=>{if($e.inputType!=="textarea")return Bn.preventDefault(),wn("confirm")},wn=Bn=>{var Dn;$.boxType==="prompt"&&Bn==="confirm"&&!Tn()||($e.action=Bn,$e.beforeClose?(Dn=$e.beforeClose)==null||Dn.call($e,Bn,$e,Sn):Sn())},Tn=()=>{if($.boxType==="prompt"){const Bn=$e.inputPattern;if(Bn&&!Bn.test($e.inputValue||""))return $e.editorErrorMessage=$e.inputErrorMessage||pe("el.messagebox.error"),$e.validateError=!0,!1;const Dn=$e.inputValidator;if(typeof Dn=="function"){const In=Dn($e.inputValue);if(In===!1)return $e.editorErrorMessage=$e.inputErrorMessage||pe("el.messagebox.error"),$e.validateError=!0,!1;if(typeof In=="string")return $e.editorErrorMessage=In,$e.validateError=!0,!1}}return $e.editorErrorMessage="",$e.validateError=!1,!0},xn=()=>{const Bn=hn.value.$refs;return Bn.input||Bn.textarea},kn=()=>{wn("close")},Nn=()=>{$.closeOnPressEscape&&kn()};return $.lockScroll&&useLockscreen(Ce),useRestoreActive(Ce),{...toRefs($e),ns:le,overlayEvent:En,visible:Ce,hasMessage:Ue,typeClass:xe,contentId:Ie,inputId:Fe,btnSize:ue,iconComponent:ze,confirmButtonClasses:_n,rootRef:qe,focusStartRef:Lt,headerRef:At,inputRef:hn,confirmRef:vn,doClose:Sn,handleClose:kn,onCloseRequested:Nn,handleWrapperClick:Cn,handleInputEnter:$n,handleAction:wn,t:pe}}}),_hoisted_1$3=["aria-label","aria-describedby"],_hoisted_2$3=["aria-label"],_hoisted_3$3=["id"];function _sfc_render$1($,z,oe,ae,le,ue){const pe=resolveComponent("el-icon"),_e=resolveComponent("close"),Ce=resolveComponent("el-input"),$e=resolveComponent("el-button"),xe=resolveComponent("el-focus-trap"),Ie=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:z[11]||(z[11]=Fe=>$.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(Ie,{"z-index":$.zIndex,"overlay-class":[$.ns.is("message-box"),$.modalClass],mask:$.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":$.title,"aria-modal":"true","aria-describedby":$.showInput?void 0:$.contentId,class:normalizeClass(`${$.ns.namespace.value}-overlay-message-box`),onClick:z[8]||(z[8]=(...Fe)=>$.overlayEvent.onClick&&$.overlayEvent.onClick(...Fe)),onMousedown:z[9]||(z[9]=(...Fe)=>$.overlayEvent.onMousedown&&$.overlayEvent.onMousedown(...Fe)),onMouseup:z[10]||(z[10]=(...Fe)=>$.overlayEvent.onMouseup&&$.overlayEvent.onMouseup(...Fe))},[createVNode(xe,{loop:"",trapped:$.visible,"focus-trap-el":$.rootRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([$.ns.b(),$.customClass,$.ns.is("draggable",$.draggable),{[$.ns.m("center")]:$.center}]),style:normalizeStyle$1($.customStyle),tabindex:"-1",onClick:z[7]||(z[7]=withModifiers(()=>{},["stop"]))},[$.title!==null&&$.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass($.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.iconComponent&&$.center?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString$1($.title),1)],2),$.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass($.ns.e("headerbtn")),"aria-label":$.t("el.messagebox.close"),onClick:z[0]||(z[0]=Fe=>$.handleAction($.distinguishCancelAndClose?"close":"cancel")),onKeydown:z[1]||(z[1]=withKeys(withModifiers(Fe=>$.handleAction($.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(pe,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(_e)]),_:1},8,["class"])],42,_hoisted_2$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:$.contentId,class:normalizeClass($.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("container"))},[$.iconComponent&&!$.center&&$.hasMessage?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("message"))},[renderSlot($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:1,for:$.showInput?$.inputId:void 0,innerHTML:$.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:0,for:$.showInput?$.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.dangerouslyUseHTMLString?"":$.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass($.ns.e("input"))},[createVNode(Ce,{id:$.inputId,ref:"inputRef",modelValue:$.inputValue,"onUpdate:modelValue":z[2]||(z[2]=Fe=>$.inputValue=Fe),type:$.inputType,placeholder:$.inputPlaceholder,"aria-invalid":$.validateError,class:normalizeClass({invalid:$.validateError}),onKeydown:withKeys($.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass($.ns.e("errormsg")),style:normalizeStyle$1({visibility:$.editorErrorMessage?"visible":"hidden"})},toDisplayString$1($.editorErrorMessage),7)],2),[[vShow,$.showInput]])],10,_hoisted_3$3),createBaseVNode("div",{class:normalizeClass($.ns.e("btns"))},[$.showCancelButton?(openBlock(),createBlock($e,{key:0,loading:$.cancelButtonLoading,class:normalizeClass([$.cancelButtonClass]),round:$.roundButton,size:$.btnSize,onClick:z[3]||(z[3]=Fe=>$.handleAction("cancel")),onKeydown:z[4]||(z[4]=withKeys(withModifiers(Fe=>$.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.cancelButtonText||$.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode($e,{ref:"confirmRef",type:"primary",loading:$.confirmButtonLoading,class:normalizeClass([$.confirmButtonClasses]),round:$.roundButton,disabled:$.confirmButtonDisabled,size:$.btnSize,onClick:z[5]||(z[5]=Fe=>$.handleAction("confirm")),onKeydown:z[6]||(z[6]=withKeys(withModifiers(Fe=>$.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.confirmButtonText||$.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,$.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$3)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,$.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=$=>{let z=document.body;return $.appendTo&&(isString$7($.appendTo)&&(z=document.querySelector($.appendTo)),isElement$2($.appendTo)&&(z=$.appendTo),isElement$2(z)||(z=document.body)),z},initInstance=($,z,oe=null)=>{const ae=createVNode(MessageBoxConstructor,$,isFunction$5($.message)||isVNode$1($.message)?{default:isFunction$5($.message)?$.message:()=>$.message}:null);return ae.appContext=oe,render$4(ae,z),getAppendToElement($).appendChild(z.firstElementChild),ae.component},genContainer=()=>document.createElement("div"),showMessage=($,z)=>{const oe=genContainer();$.onVanish=()=>{render$4(null,oe),messageInstance.delete(le)},$.onAction=ue=>{const pe=messageInstance.get(le);let _e;$.showInput?_e={value:le.inputValue,action:ue}:_e=ue,$.callback?$.callback(_e,ae.proxy):ue==="cancel"||ue==="close"?$.distinguishCancelAndClose&&ue!=="cancel"?pe.reject("close"):pe.reject("cancel"):pe.resolve(_e)};const ae=initInstance($,oe,z),le=ae.proxy;for(const ue in $)hasOwn$4($,ue)&&!hasOwn$4(le.$props,ue)&&(le[ue]=$[ue]);return le.visible=!0,le};function MessageBox($,z=null){if(!isClient$2)return Promise.reject();let oe;return isString$7($)||isVNode$1($)?$={message:$}:oe=$.callback,new Promise((ae,le)=>{const ue=showMessage($,z??MessageBox._context);messageInstance.set(ue,{options:$,callback:oe,resolve:ae,reject:le})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach($=>{MessageBox[$]=messageBoxFactory($)});function messageBoxFactory($){return(z,oe,ae,le)=>{let ue="";return isObject$8(oe)?(ae=oe,ue=""):isUndefined$1(oe)?ue="":ue=oe,MessageBox(Object.assign({title:ue,message:z,type:"",...MESSAGE_BOX_DEFAULT_OPTS[$]},ae,{boxType:$}),le)}}MessageBox.close=()=>{messageInstance.forEach(($,z)=>{z.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=$=>{_MessageBox._context=$._context,$.config.globalProperties.$msgbox=_MessageBox,$.config.globalProperties.$messageBox=_MessageBox,$.config.globalProperties.$alert=_MessageBox.alert,$.config.globalProperties.$confirm=_MessageBox.confirm,$.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:iconPropType},id:{type:String,default:""},message:{type:definePropType([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:definePropType(Function),default:()=>{}},onClose:{type:definePropType(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...notificationTypes,""],default:""},zIndex:{type:Number,default:0}}),notificationEmits={destroy:()=>!0},_hoisted_1$2=["id"],_hoisted_2$2=["textContent"],_hoisted_3$2={key:0},_hoisted_4$1=["innerHTML"],__default__=defineComponent({name:"ElNotification"}),_sfc_main$2=defineComponent({...__default__,props:notificationProps,emits:notificationEmits,setup($,{expose:z}){const oe=$,{ns:ae,zIndex:le}=useGlobalComponentSettings("notification"),{nextZIndex:ue,currentZIndex:pe}=le,{Close:_e}=CloseComponents,Ce=ref(!1);let $e;const xe=computed(()=>{const vn=oe.type;return vn&&TypeComponentsMap[oe.type]?ae.m(vn):""}),Ie=computed(()=>oe.type&&TypeComponentsMap[oe.type]||oe.icon),Fe=computed(()=>oe.position.endsWith("right")?"right":"left"),ze=computed(()=>oe.position.startsWith("top")?"top":"bottom"),Ue=computed(()=>({[ze.value]:`${oe.offset}px`,zIndex:pe.value}));function qe(){oe.duration>0&&({stop:$e}=useTimeoutFn$1(()=>{Ce.value&&Lt()},oe.duration))}function At(){$e==null||$e()}function Lt(){Ce.value=!1}function hn({code:vn}){vn===EVENT_CODE.delete||vn===EVENT_CODE.backspace?At():vn===EVENT_CODE.esc?Ce.value&&Lt():qe()}return onMounted(()=>{qe(),ue(),Ce.value=!0}),useEventListener$1(document,"keydown",hn),z({visible:Ce,close:Lt}),(vn,_n)=>(openBlock(),createBlock(Transition,{name:unref(ae).b("fade"),onBeforeLeave:vn.onClose,onAfterLeave:_n[1]||(_n[1]=bn=>vn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:vn.id,class:normalizeClass([unref(ae).b(),vn.customClass,unref(Fe)]),style:normalizeStyle$1(unref(Ue)),role:"alert",onMouseenter:At,onMouseleave:qe,onClick:_n[0]||(_n[0]=(...bn)=>vn.onClick&&vn.onClick(...bn))},[unref(Ie)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ae).e("icon"),unref(xe)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ie))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ae).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(ae).e("title")),textContent:toDisplayString$1(vn.title)},null,10,_hoisted_2$2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ae).e("content")),style:normalizeStyle$1(vn.title?void 0:{margin:0})},[renderSlot(vn.$slots,"default",{},()=>[vn.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:vn.message},null,8,_hoisted_4$1)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$2,toDisplayString$1(vn.message),1))])],6),[[vShow,vn.message]]),vn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ae).e("closeBtn")),onClick:withModifiers(Lt,["stop"])},{default:withCtx(()=>[createVNode(unref(_e))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$2),[[vShow,Ce.value]])]),_:3},8,["name","onBeforeLeave"]))}});var NotificationConstructor=_export_sfc$1(_sfc_main$2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const notifications={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},GAP_SIZE=16;let seed=1;const notify=function($={},z=null){if(!isClient$2)return{close:()=>{}};(typeof $=="string"||isVNode$1($))&&($={message:$});const oe=$.position||"top-right";let ae=$.offset||0;notifications[oe].forEach(({vm:xe})=>{var Ie;ae+=(((Ie=xe.el)==null?void 0:Ie.offsetHeight)||0)+GAP_SIZE}),ae+=GAP_SIZE;const le=`notification_${seed++}`,ue=$.onClose,pe={...$,offset:ae,id:le,onClose:()=>{close(le,oe,ue)}};let _e=document.body;isElement$2($.appendTo)?_e=$.appendTo:isString$7($.appendTo)&&(_e=document.querySelector($.appendTo)),isElement$2(_e)||(_e=document.body);const Ce=document.createElement("div"),$e=createVNode(NotificationConstructor,pe,isVNode$1(pe.message)?{default:()=>pe.message}:null);return $e.appContext=z??notify._context,$e.props.onDestroy=()=>{render$4(null,Ce)},render$4($e,Ce),notifications[oe].push({vm:$e}),_e.appendChild(Ce.firstElementChild),{close:()=>{$e.component.exposed.visible.value=!1}}};notificationTypes.forEach($=>{notify[$]=(z={})=>((typeof z=="string"||isVNode$1(z))&&(z={message:z}),notify({...z,type:$}))});function close($,z,oe){const ae=notifications[z],le=ae.findIndex(({vm:$e})=>{var xe;return((xe=$e.component)==null?void 0:xe.props.id)===$});if(le===-1)return;const{vm:ue}=ae[le];if(!ue)return;oe==null||oe(ue);const pe=ue.el.offsetHeight,_e=z.split("-")[0];ae.splice(le,1);const Ce=ae.length;if(!(Ce<1))for(let $e=le;$e<Ce;$e++){const{el:xe,component:Ie}=ae[$e].vm,Fe=Number.parseInt(xe.style[_e],10)-pe-GAP_SIZE;Ie.props.offset=Fe}}function closeAll(){for(const $ of Object.values(notifications))$.forEach(({vm:z})=>{z.component.exposed.visible.value=!1})}notify.closeAll=closeAll;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]),zhCn={};(function($){Object.defineProperty($,"__esModule",{value:!0});var z={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};$.default=z})(zhCn);const zhLocale=getDefaultExportFromCjs(zhCn);var en$1={};(function($){Object.defineProperty($,"__esModule",{value:!0});var z={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};$.default=z})(en$1);const enLocale=getDefaultExportFromCjs(en$1);var st=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,$t$1=($,z)=>{for(var oe in z)st($,oe,{get:z[oe],enumerable:!0})},ot=($,z,oe,ae)=>{if(z&&typeof z=="object"||typeof z=="function")for(let le of Rt(z))!Dt.call($,le)&&le!==oe&&st($,le,{get:()=>z[le],enumerable:!(ae=kt(z,le))||ae.enumerable});return $},Q=($,z,oe)=>(ot($,z,"default"),oe&&ot(oe,z,"default"));function at($){let z=$.split(","),oe=z[0].match(/:(.*?);/)[1],ae=window.atob(z[1]),le=ae.length,ue=new Uint8Array(le);for(;le--;)ue[le]=ae.charCodeAt(le);return new Blob([ue],{type:oe})}function ct($,z,oe){return new Promise((ae,le)=>{let ue=document.createElement("CANVAS"),pe=ue.getContext("2d"),_e=new Image;_e.crossOrigin="",_e.onload=function(){if(!ue||!pe)return le();ue.height=_e.height,ue.width=_e.width,pe.drawImage(_e,0,0);let Ce=ue.toDataURL(z||"image/png",oe);ue=null,ae(Ce)},_e.src=$})}var It=Object.prototype.toString;function L$2($,z){return It.call($)===`[object ${z}]`}function F($){return $!==null&&L$2($,"Object")}function k$1($){return typeof $<"u"}function lt$1($){return!k$1($)}function ft($){return $===null}function Pt($){return ft($)||lt$1($)}function Ut($){return J($)||C($)?$.length===0:$ instanceof Map||$ instanceof Set?$.size===0:F($)?Object.keys($).length===0:!1}function P$1($){return!!(Ut($)||Pt($))}function pt($){return L$2($,"Number")}function C($){return L$2($,"String")}function N($){return typeof $=="function"}function Le($){return L$2($,"Boolean")}function J($){return $&&Array.isArray($)}var K$1=typeof window>"u",tt=!K$1;function mt($){let z="^((https|http|ftp|rtsp|mms)?://)(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,5})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(z,"ig").test($)}function Be($){return/^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$/.test($)}function Ne($){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($)}var j$2=($,z)=>!!($!=null&&$.className.match(new RegExp("(\\s|^)"+z+"(\\s|$)"))),Xe=($,z,oe)=>{j$2($,z)||($.className+=" "+z),oe&&!j$2($,oe)&&($.className+=" "+oe)},Ve=($,z,oe)=>{if(j$2($,z)){let ae=new RegExp("(\\s|^)"+z+"(\\s|$)");$.className=$.className.replace(ae," ").trim()}if(oe&&j$2($,oe)){let ae=new RegExp("(\\s|^)"+oe+"(\\s|$)");$.className=$.className.replace(ae," ").trim()}},Ze=($,z,oe)=>{let ae=oe||document.body,{className:le}=ae,ue=le.replace(z,"").trim().split(/\s+/).join(" ");ae.className=$?`${ue} ${z}`:ue},Bt=Object.prototype.toString;function Nt($,z){return $&&$.hasOwnProperty?$.hasOwnProperty(z):!1}function Ft($,z,oe){if($)if($.forEach)$.forEach(z,oe);else for(let ae=0,le=$.length;ae<le;ae++)z.call(oe,$[ae],ae,$)}function jt($,z,oe){if($)for(let ae in $)Nt($,ae)&&z.call(oe,$[ae],ae,$)}function et($,z){let oe=$.__proto__.constructor;return z?new oe(z):new oe}function H$1($,z){return z?nt($,z):$}function nt($,z){if($)switch(Bt.call($)){case"[object Object]":{let oe=Object.create($.__proto__);return jt($,function(ae,le){oe[le]=H$1(ae,z)}),oe}case"[object Date]":case"[object RegExp]":return et($,$.valueOf());case"[object Array]":case"[object Arguments]":{let oe=[];return Ft($,function(ae){oe.push(H$1(ae,z))}),oe}case"[object Set]":{let oe=et($);return oe.forEach(function(ae){oe.add(H$1(ae,z))}),oe}case"[object Map]":{let oe=et($);return oe.forEach(function(ae){oe.set(H$1(ae,z))}),oe}}return $}function Je($,z){return $&&nt($,z)}function Ke($){return $&&nt($,!0)}var en=$=>{let z=($==null?void 0:$.type)??"rgb",oe=($==null?void 0:$.num)??0;if(oe===0)switch(z){case"rgb":return window.crypto.getRandomValues(new Uint8Array(3)).toString();case"hex":return`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`;case"hsl":return[360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString()}else switch(z){case"rgb":let ae=[];for(let pe=0;pe<oe;pe++)ae.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return ae;case"hex":let le=[];for(let pe=0;pe<oe;pe++)le.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return le;case"hsl":let ue=[];for(let pe=0;pe<oe;pe++)ue.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return ue}},D=($=20)=>new Promise(z=>setTimeout(z,$)),Et=($,z=200,oe=!1)=>{let ae,le=z,ue;return function(){ae&&clearTimeout(ae),oe?(ae||$.call(ue,...arguments),ae=setTimeout(()=>ae=null,le)):ae=setTimeout(()=>$.call(ue,...arguments),le)}},An=($,z=1e3)=>{let oe;return function(){oe||(oe=setTimeout(()=>{$.call(void 0,...arguments),oe=null},z))}},On=()=>{let $=navigator.userAgent.toLowerCase(),z=$.match(/midp/i)=="midp",oe=$.match(/ucweb/i)=="ucweb",ae=$.match(/android/i)=="android",le=$.match(/iphone os/i)=="iphone os",ue=$.match(/windows ce/i)=="windows ce",pe=$.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",_e=$.match(/windows mobile/i)=="windows mobile";return z||oe||ae||le||ue||pe||_e},Tt=($,z="_blank")=>{let oe=document.createElement("a");oe.setAttribute("href",$),oe.setAttribute("target",z),oe.setAttribute("rel","noreferrer noopener"),oe.setAttribute("id","external");let ae=document.getElementById("external");ae&&document.body.removeChild(ae),document.body.appendChild(oe),oe.click(),oe.remove()};function Pn($,z,oe,ae){ct($).then(le=>{zt(le,z,oe,ae)})}function zt($,z,oe,ae){let le=at($);_t(le,z,oe,ae)}function _t($,z,oe,ae){let le=typeof ae<"u"?[ae,$]:[$],ue=new Blob(le,{type:oe||"application/octet-stream"}),pe=window.URL.createObjectURL(ue),_e=document.createElement("a");_e.style.display="none",_e.href=pe,_e.setAttribute("download",z),typeof _e.download>"u"&&_e.setAttribute("target","_blank"),document.body.appendChild(_e),_e.click(),document.body.removeChild(_e),window.URL.revokeObjectURL(pe)}function Un($,z,oe="_self"){let ae=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,le=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return console.error("Your browser does not support download!"),!1;if(ae||le){let ue=document.createElement("a");if(ue.href=$,ue.target=oe,ue.download!==void 0&&(ue.download=z||$.substring($.lastIndexOf("/")+1,$.length)),document.createEvent){let pe=document.createEvent("MouseEvents");return pe.initEvent("click",!0,!0),ue.dispatchEvent(pe),!0}}return $.indexOf("?")===-1&&($+="?download"),Tt($,oe),!0}function Wt($,z){if(!$||!z||$.length!==z.length)return!1;for(let oe of Object.keys($))if(!vt($[oe],z[oe]))return!1;return!0}function qt($,z){if(!$||!z)return!1;let{length:oe}=$;if(oe!==z.length)return!1;for(let ae=0;ae<oe;ae++)if(!vt($[ae],z[ae]))return!1;return!0}function vt($,z){let oe=Object.prototype.toString.call($);return oe!==Object.prototype.toString.call(z)?!1:oe==="[object Object]"?Wt($,z):oe==="[object Array]"?qt($,z):oe==="[object Function]"?$===z?!0:$.toString()===z.toString():$===z}var Hn=($,z)=>{if($.install=oe=>{for(let ae of[$,...Object.values(z??{})])oe.component(ae.name,ae)},z)for(let[oe,ae]of Object.entries(z))$[oe]=ae;return $},U=class{constructor($){no(this,"storage");this.storage=$}setItem($,z){P$1(this.storage)||this.storage.setItem($,JSON.stringify(z))}getItem($){if(!P$1(this.storage))return JSON.parse(this.storage.getItem($))}removeItem($){P$1(this.storage)||this.storage.removeItem($)}clear(){P$1(this.storage)||this.storage.clear()}},X=class extends U{constructor($){super($)}},Kn=()=>tt?new X(window.localStorage):new X(""),tr=()=>tt?new U(window.sessionStorage):new U("");function Xt($,z){return C(z)?$.substring(0,$.indexOf(z)):""}function pr($){if(!mt($))return console.error(`${$}不符合超链接规范`),{};let z=$.indexOf("?"),oe=$.slice(z+1).split("&"),ae={};for(let le=0;le<oe.length;le++)ae[oe[le].split("=")[0]]=oe[le].split("=")[1];return ae}function yr($,z){return $.every(oe=>z.some(ae=>ae===oe))}var xr=(...$)=>[...$].reduce((z,oe)=>z.filter(ae=>oe.includes(ae)));function Er($,z){let oe=[];for(let ae of $)ae[z]&&oe.push(ae[z]);return Array.from(new Set(oe))}var i={};$t$1(i,{Vue:()=>vue_runtime_esmBundler});Q(i,vue_runtime_esmBundler);var ee=["class","style"],ne=/^on[A-Z]/;function re($){return Object.keys($).map(z=>[z,$[z]])}function Sr($={}){let z=(0,i.getCurrentInstance)();if(!z)return{};let{excludeListeners:oe=!1,excludeKeys:ae=[]}=$,le=(0,i.shallowRef)({}),ue=ae.concat(ee);return z.attrs=(0,i.reactive)(z.attrs),(0,i.watchEffect)(()=>{let pe=re(z.attrs).reduce((_e,[Ce,$e])=>(!ue.includes(Ce)&&!(oe&&ne.test(Ce))&&(_e[Ce]=$e),_e),{});le.value=pe}),le}function O($){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)($)}var Nr=()=>{let $=(0,i.shallowRef)(!1),z,oe=()=>{$.value=document.documentElement.classList.contains("dark")};return O(()=>{z.takeRecords(),z.disconnect()}),(0,i.onBeforeMount)(()=>{oe(),z=new MutationObserver(oe),z.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:$}};function St(){let{appContext:{config:{globalProperties:$}}}=(0,i.getCurrentInstance)();return $}var Gr=($,z)=>{let oe=(z==null?void 0:z.theme)??(0,i.ref)("default"),ae=(z==null?void 0:z.tooltipId)??"tooltipElement",le=St().$echarts,ue=null,pe=(0,i.ref)({}),_e=(0,i.ref)(),Ce=(0,i.computed)(()=>oe.value!=="dark"?pe.value:{backgroundColor:"transparent",...pe.value});function $e($n){let wn=(0,i.unref)($);!wn||!(0,i.unref)(wn)||(ue=le.init(wn,$n))}function xe($n,...wn){var Tn;if(pe.value=$n,_e.value=wn,((Tn=(0,i.unref)($))==null?void 0:Tn.offsetHeight)===0){D().then(()=>xe((0,i.unref)(Ce),...wn));return}(0,i.nextTick)(()=>{D().then(()=>{!ue&&$e(oe.value),($n.clear??!0)&&Ie(),ue==null||ue.setOption((0,i.unref)(Ce)),wn&&wn.map(xn=>{(xn==null?void 0:xn.type)!=="zrender"&&typeof(xn==null?void 0:xn.callback)=="function"&&(ue==null||ue.on(xn==null?void 0:xn.name,xn!=null&&xn.query?xn==null?void 0:xn.query:"",kn=>{xn==null||xn.callback(kn)})),(xn==null?void 0:xn.type)==="zrender"&&typeof(xn==null?void 0:xn.callback)=="function"&&(ue==null||ue.getZr().on(xn==null?void 0:xn.name,kn=>{kn.target||(xn==null||xn.callback(kn))}))}),$n!=null&&$n.addTooltip&&Cn($n.addTooltip)})})}function Ie(){ue&&ue.clear()}function Fe(){ue.resize()}function ze($n){let wn=($n==null?void 0:$n.type)??"default",Tn=($n==null?void 0:$n.opts)??{};ue.showLoading(wn,Tn)}function Ue(){ue.hideLoading()}function qe($n){ue.appendData($n)}function At(){return ue.getWidth()}function Lt(){return ue.getHeight()}function hn(){return ue||$e(oe.value),ue}function vn(){return ue.getDom()}function _n(){return ue.getOption()}function bn($n){return ue.getDataURL($n)}function Sn($n){return ue.getConnectedDataURL($n)}function Cn($n){if(!$n)return;let wn=document.querySelector("html");if(!document.getElementById(ae)){let kn=document.createElement("div");kn.setAttribute("id",ae),kn.style.display="block",wn.appendChild(kn)}let Tn=document.querySelector(`#${ae}`),xn=kn=>{if((kn==null?void 0:kn.targetType)!=="axisLabel")return;let Nn=`
|
||
padding: 5px;
|
||
font-size: 12px;
|
||
display: inline;
|
||
border-radius: 4px;
|
||
position: absolute;
|
||
background-color: #303133;
|
||
z-index: 99999;color: #fff;
|
||
box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 8px;
|
||
`;Tn.style.cssText=Nn,Tn.innerHTML=kn==null?void 0:kn.value,wn.onmousemove=Bn=>{let Dn=Bn.pageX-10,In=Bn.pageY+15;Tn.style.top=In+"px",Tn.style.left=Dn+"px"}};ue==null||ue.on("mouseover",kn=>{($n==="x"&&kn.componentType=="xAxis"||$n==="y"&&kn.componentType=="yAxis"||$n.toString()==="true"&&kn.componentType.includes("Axis"))&&xn(kn)}),ue==null||ue.on("mouseout",()=>{wn.onmousemove=null,Tn.style.cssText="display:none"})}(0,i.watch)(()=>oe.value,$n=>{ue&&(ue.dispose(),$e($n),xe(pe.value,..._e.value))});function En(){var $n;!ue||D((($n=pe.value)==null?void 0:$n.delay)??300).then(()=>{Fe()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",En)})}),O(()=>{var $n;window.removeEventListener("resize",En),ue&&(ue.dispose(),ue=null,($n=document.querySelector(`#${ae}`))==null||$n.remove())}),{echarts:le,clear:Ie,resize:Fe,getDom:vn,getWidth:At,getOption:_n,getHeight:Lt,addTooltip:Cn,getDataURL:bn,setOptions:xe,appendData:qe,getInstance:hn,showLoading:ze,hideLoading:Ue,getConnectedDataURL:Sn}},ie=Symbol("watermark-dom"),uo=($=(0,i.ref)(document.body))=>{let z=ie.toString(),oe=(0,i.shallowRef)(),ae=()=>{let Ie=(0,i.unref)(oe);oe.value=void 0;let Fe=(0,i.unref)($);!Fe||Ie&&Fe.removeChild(Ie)};function le(Ie,Fe){let ze=document.createElement("canvas"),Ue=(Fe==null?void 0:Fe.width)??250,qe=(Fe==null?void 0:Fe.height)??100;Object.assign(ze,{width:Ue,height:qe});let At=ze.getContext("2d");if(At){if(At.rotate(((Fe==null?void 0:Fe.rotate)??-10*Math.PI)/120),At.font=(Fe==null?void 0:Fe.font)??"15px Reggae One",(Fe==null?void 0:Fe.gradient)&&J(Fe==null?void 0:Fe.gradient)){let Lt=At.createLinearGradient(0,0,Ue,0);Fe==null||Fe.gradient.forEach(hn=>{Lt.addColorStop(hn.value,hn.color)}),At.fillStyle=Lt}else At.fillStyle=(Fe==null?void 0:Fe.fillStyle)??"rgba(0, 0, 0, 0.15)";if(At.textAlign="left",At.textBaseline="middle",Fe!=null&&Fe.globalAlpha&&(At.globalAlpha=Fe.globalAlpha),Fe==null?void 0:Fe.shadowConfig){let{shadowConfig:Lt}=Fe;At.shadowBlur=Lt[0],At.shadowColor=(Lt==null?void 0:Lt[1])??"#000000",At.shadowOffsetX=(Lt==null?void 0:Lt[2])??0,At.shadowOffsetY=(Lt==null?void 0:Lt[3])??0}At.fillText(Ie,Ue/((Fe==null?void 0:Fe.fillTextWidth)??20),qe/((Fe==null?void 0:Fe.fillTextHeight)??2))}return ze.toDataURL("image/png")}function ue(Ie={}){let Fe=(0,i.unref)(oe);!Fe||(k$1(Ie.width)&&(Fe.style.width=`${Ie.width}px`),k$1(Ie.height)&&(Fe.style.height=`${Ie.height}px`),k$1(Ie.str)&&(Fe.style.background=`url(${le(Ie.str,Ie.attr)}) left top repeat`))}let pe=Et(()=>{let Ie=(0,i.unref)($);if(!Ie)return;let{clientHeight:Fe,clientWidth:ze}=Ie;ue({height:Fe,width:ze})}),_e=(Ie,Fe)=>{var Lt;if((0,i.unref)(oe))return ue({str:Ie,attr:Fe}),z;let ze=document.createElement("div");oe.value=ze,ze.id=z,ze.style.pointerEvents="none",ze.style.top="0px",ze.style.left="0px",ze.style.position="absolute",ze.style.zIndex=(Fe==null?void 0:Fe.zIndex)??"100000";let Ue=(0,i.unref)($);if(!Ue)return z;let{clientHeight:qe,clientWidth:At}=Ue;return ue({str:Ie,width:At,height:qe,attr:Fe}),(Lt=Ue==null?void 0:Ue.style)!=null&&Lt.position||(Ue.style.position="relative"),Ue.appendChild(ze),z};function Ce(Ie,{str:Fe,attr:ze}){Ie[0].removedNodes[0]&&Ie[0].removedNodes[0].id===z&&(oe.value=void 0,_e(Fe,ze))}function $e(Ie,Fe){let ze={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(Ue=>Ce(Ue,{str:Ie,attr:Fe})).observe((0,i.unref)($),ze)}function xe(Ie,Fe){_e(Ie,Fe),window.addEventListener("resize",pe),Fe!=null&&Fe.forever&&$e(Ie,Fe),(0,i.getCurrentInstance)()&&ae&&ae()}return O(()=>{window.removeEventListener("resize",pe)}),{clear:ae,setWatermark:xe}};const data$1={width:24,height:24,body:'<path fill="currentColor" d="M16 3h6v6h-2V5h-4V3ZM2 3h6v2H4v4H2V3Zm18 16v-4h2v6h-6v-2h4ZM4 19h4v2H2v-6h2v4Z"/>'},data={width:24,height:24,body:'<path fill="currentColor" d="M18 7h4v2h-6V3h2v4ZM8 9H2V7h4V3h2v6Zm10 8v4h-2v-6h6v2h-4ZM8 15v6H6v-4H2v-2h6Z"/>'},_hoisted_1$1={key:0,class:"flex items-center justify-between"},_hoisted_2$1=["id"],_hoisted_3$1={key:1},_sfc_main$1=defineComponent({__name:"index",setup($){const z=ref(!1),oe=computed(()=>pe=>{var _e;return((_e=pe==null?void 0:pe.footerButtons)==null?void 0:_e.length)>0?pe.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:Ce,index:$e}})=>{const xe=()=>closeDialog(Ce,$e,{command:"cancel"});Ce!=null&&Ce.beforeCancel&&N(Ce==null?void 0:Ce.beforeCancel)?Ce.beforeCancel(xe,{options:Ce,index:$e}):xe()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:Ce,index:$e}})=>{const xe=()=>closeDialog(Ce,$e,{command:"sure"});Ce!=null&&Ce.beforeSure&&N(Ce==null?void 0:Ce.beforeSure)?Ce.beforeSure(xe,{options:Ce,index:$e}):xe()}}]}),ae=computed(()=>["el-icon","el-dialog__close","-translate-x-2","cursor-pointer","hover:!text-[red]"]);function le(pe,_e,Ce){if(z.value=(_e==null?void 0:_e.fullscreen)??!1,_e!=null&&_e[pe]&&N(_e==null?void 0:_e[pe]))return _e==null?void 0:_e[pe]({options:_e,index:Ce})}function ue(pe,_e,Ce={command:"close"}){closeDialog(pe,_e,Ce),le("close",pe,_e)}return(pe,_e)=>{const Ce=resolveComponent("IconifyIconOffline"),$e=resolveComponent("el-button"),xe=resolveComponent("el-dialog");return openBlock(!0),createElementBlock(Fragment,null,renderList(unref(dialogStore),(Ie,Fe)=>(openBlock(),createBlock(xe,mergeProps({class:"pure-dialog",key:Fe},Ie,{modelValue:Ie.visible,"onUpdate:modelValue":ze=>Ie.visible=ze,fullscreen:z.value?!0:!!(Ie!=null&&Ie.fullscreen),onClose:ze=>ue(Ie,Fe),onOpened:ze=>le("open",Ie,Fe),onOpenAutoFocus:ze=>le("openAutoFocus",Ie,Fe),onCloseAutoFocus:ze=>le("closeAutoFocus",Ie,Fe)}),createSlots({default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.contentRenderer({options:Ie,index:Fe})),mergeProps(Ie==null?void 0:Ie.props,{onClose:ze=>ue(Ie,Fe,ze)}),null,16,["onClose"]))]),_:2},[Ie!=null&&Ie.fullscreenIcon||Ie!=null&&Ie.headerRenderer?{name:"header",fn:withCtx(({close:ze,titleId:Ue,titleClass:qe})=>[Ie!=null&&Ie.fullscreenIcon?(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("span",{id:Ue,class:normalizeClass(qe)},toDisplayString$1(Ie==null?void 0:Ie.title),11,_hoisted_2$1),Ie!=null&&Ie.fullscreen?createCommentVNode("",!0):(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(ae.value),onClick:_e[0]||(_e[0]=At=>z.value=!z.value)},[createVNode(Ce,{class:"pure-dialog-svg",icon:Ie!=null&&Ie.fullscreen||z.value?unref(data):unref(data$1)},null,8,["icon"])],2))])):(openBlock(),createBlock(resolveDynamicComponent(Ie==null?void 0:Ie.headerRenderer({close:ze,titleId:Ue,titleClass:qe})),{key:1}))]),key:"0"}:void 0,Ie!=null&&Ie.hideFooter?void 0:{name:"footer",fn:withCtx(()=>[Ie!=null&&Ie.footerRenderer?(openBlock(),createBlock(resolveDynamicComponent(Ie==null?void 0:Ie.footerRenderer({options:Ie,index:Fe})),{key:0})):(openBlock(),createElementBlock("span",_hoisted_3$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.value(Ie),(ze,Ue)=>(openBlock(),createBlock($e,mergeProps({key:Ue},ze,{onClick:qe=>ze.btnClick({dialog:{options:Ie,index:Fe},button:{btn:ze,index:Ue}})}),{default:withCtx(()=>[createTextVNode(toDisplayString$1(ze==null?void 0:ze.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","fullscreen","onClose","onOpened","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose$1($){return getCurrentScope()?(onScopeDispose($),!0):!1}function toValue($){return typeof $=="function"?$():unref($)}const isClient$1=typeof window<"u",noop$5=()=>{},isIOS=getIsIOS();function getIsIOS(){var $;return isClient$1&&(($=window==null?void 0:window.navigator)==null?void 0:$.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper($,z){function oe(...ae){return new Promise((le,ue)=>{Promise.resolve($(()=>z.apply(this,ae),{fn:z,thisArg:this,args:ae})).then(le).catch(ue)})}return oe}function debounceFilter($,z={}){let oe,ae,le=noop$5;const ue=_e=>{clearTimeout(_e),le(),le=noop$5};return _e=>{const Ce=toValue($),$e=toValue(z.maxWait);return oe&&ue(oe),Ce<=0||$e!==void 0&&$e<=0?(ae&&(ue(ae),ae=null),Promise.resolve(_e())):new Promise((xe,Ie)=>{le=z.rejectOnCancel?Ie:xe,$e&&!ae&&(ae=setTimeout(()=>{oe&&ue(oe),ae=null,xe(_e())},$e)),oe=setTimeout(()=>{ae&&ue(ae),ae=null,xe(_e())},Ce)})}}function toRef(...$){if($.length!==1)return toRef$1(...$);const z=$[0];return typeof z=="function"?readonly(customRef(()=>({get:z,set:noop$5}))):ref(z)}function useDebounceFn($,z=200,oe={}){return createFilterWrapper(debounceFilter(z,oe),$)}function tryOnMounted($,z=!0){getCurrentInstance()?onMounted($):z?$():nextTick($)}function tryOnUnmounted$1($){getCurrentInstance()&&onUnmounted($)}function useIntervalFn($,z=1e3,oe={}){const{immediate:ae=!0,immediateCallback:le=!1}=oe;let ue=null;const pe=ref(!1);function _e(){ue&&(clearInterval(ue),ue=null)}function Ce(){pe.value=!1,_e()}function $e(){const xe=toValue(z);xe<=0||(pe.value=!0,le&&$(),_e(),ue=setInterval($,xe))}if(ae&&isClient$1&&$e(),isRef(z)||typeof z=="function"){const xe=watch(z,()=>{pe.value&&isClient$1&&$e()});tryOnScopeDispose$1(xe)}return tryOnScopeDispose$1(Ce),{isActive:pe,pause:Ce,resume:$e}}function useTimeoutFn($,z,oe={}){const{immediate:ae=!0}=oe,le=ref(!1);let ue=null;function pe(){ue&&(clearTimeout(ue),ue=null)}function _e(){le.value=!1,pe()}function Ce(...$e){pe(),le.value=!0,ue=setTimeout(()=>{le.value=!1,ue=null,$(...$e)},toValue(z))}return ae&&(le.value=!0,isClient$1&&Ce()),tryOnScopeDispose$1(_e),{isPending:readonly(le),start:Ce,stop:_e}}function set$2($,z,oe){return Array.isArray($)?($.length=Math.max($.length,z),$.splice(z,1,oe),oe):($[z]=oe,oe)}function del($,z){if(Array.isArray($)){$.splice(z,1);return}delete $[z]}const dialogStore=ref([]),addDialog=$=>{const z=()=>dialogStore.value.push(Object.assign($,{visible:!0}));$!=null&&$.openDelay?useTimeoutFn(()=>{z()},$.openDelay):z()},closeDialog=($,z,oe)=>{dialogStore.value.splice(z,1),$.closeCallBack&&$.closeCallBack({options:$,index:z,args:oe})},updateDialog=($,z="title",oe=0)=>{dialogStore.value[oe][z]=$},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Hn(_sfc_main$1),_sfc_main=defineComponent({name:"app",components:{[ElConfigProvider.name]:ElConfigProvider,ReDialog},computed:{currentLocale(){var $;return(($=this.$storage.locale)==null?void 0:$.locale)==="zh"?zhLocale:enLocale}}}),_export_sfc=($,z)=>{const oe=$.__vccOpts||$;for(const[ae,le]of z)oe[ae]=le;return oe};function _sfc_render($,z,oe,ae,le,ue){const pe=resolveComponent("router-view"),_e=resolveComponent("ReDialog"),Ce=resolveComponent("el-config-provider");return openBlock(),createBlock(Ce,{locale:$.currentLocale},{default:withCtx(()=>[createVNode(pe),createVNode(_e)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function($){return"/vue-pure-admin/"+$},seen={},__vitePreload=function(z,oe,ae){if(!oe||oe.length===0)return z();const le=document.getElementsByTagName("link");return Promise.all(oe.map(ue=>{if(ue=assetsURL(ue),ue in seen)return;seen[ue]=!0;const pe=ue.endsWith(".css"),_e=pe?'[rel="stylesheet"]':"";if(!!ae)for(let xe=le.length-1;xe>=0;xe--){const Ie=le[xe];if(Ie.href===ue&&(!pe||Ie.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${ue}"]${_e}`))return;const $e=document.createElement("link");if($e.rel=pe?"stylesheet":scriptRel,pe||($e.as="script",$e.crossOrigin=""),$e.href=ue,document.head.appendChild($e),pe)return new Promise((xe,Ie)=>{$e.addEventListener("load",xe),$e.addEventListener("error",()=>Ie(new Error(`Unable to preload CSS for ${ue}`)))})})).then(()=>z())},resource$1={buttons:{hsLoginOut:$=>{const{normalize:z}=$;return z(["LoginOut"])},hsfullscreen:$=>{const{normalize:z}=$;return z(["FullScreen"])},hsexitfullscreen:$=>{const{normalize:z}=$;return z(["ExitFullscreen"])},hsrefreshRoute:$=>{const{normalize:z}=$;return z(["RefreshRoute"])},hslogin:$=>{const{normalize:z}=$;return z(["Login"])},hsadd:$=>{const{normalize:z}=$;return z(["Add"])},hsmark:$=>{const{normalize:z}=$;return z(["Mark/Cancel"])},hssave:$=>{const{normalize:z}=$;return z(["Save"])},hssearch:$=>{const{normalize:z}=$;return z(["Search"])},hsexpendAll:$=>{const{normalize:z}=$;return z(["Expand All"])},hscollapseAll:$=>{const{normalize:z}=$;return z(["Collapse All"])},hssystemSet:$=>{const{normalize:z}=$;return z(["Open ProjectConfig"])},hsdelete:$=>{const{normalize:z}=$;return z(["Delete"])},hsreload:$=>{const{normalize:z}=$;return z(["Reload"])},hscloseCurrentTab:$=>{const{normalize:z}=$;return z(["Close CurrentTab"])},hscloseLeftTabs:$=>{const{normalize:z}=$;return z(["Close LeftTabs"])},hscloseRightTabs:$=>{const{normalize:z}=$;return z(["Close RightTabs"])},hscloseOtherTabs:$=>{const{normalize:z}=$;return z(["Close OtherTabs"])},hscloseAllTabs:$=>{const{normalize:z}=$;return z(["Close AllTabs"])},hswholeFullScreen:$=>{const{normalize:z}=$;return z(["FullScreen"])},hswholeExitFullScreen:$=>{const{normalize:z}=$;return z(["ExitFull"])},hscontentFullScreen:$=>{const{normalize:z}=$;return z(["Content FullScreen"])},hscontentExitFullScreen:$=>{const{normalize:z}=$;return z(["Content ExitFullScreen"])}},menus:{hshome:$=>{const{normalize:z}=$;return z(["Home"])},hslogin:$=>{const{normalize:z}=$;return z(["Login"])},hsempty:$=>{const{normalize:z}=$;return z(["Empty Page"])},hssysManagement:$=>{const{normalize:z}=$;return z(["System Manage"])},hsUser:$=>{const{normalize:z}=$;return z(["User Manage"])},hsRole:$=>{const{normalize:z}=$;return z(["Role Manage"])},hsDept:$=>{const{normalize:z}=$;return z(["Dept Manage"])},hseditor:$=>{const{normalize:z}=$;return z(["Editor"])},hsabnormal:$=>{const{normalize:z}=$;return z(["Abnormal Page"])},hsfourZeroFour:$=>{const{normalize:z}=$;return z(["404"])},hsfourZeroOne:$=>{const{normalize:z}=$;return z(["403"])},hsFive:$=>{const{normalize:z}=$;return z(["500"])},hscomponents:$=>{const{normalize:z}=$;return z(["Components"])},hsdialog:$=>{const{normalize:z}=$;return z(["Dialog Components"])},hsmessage:$=>{const{normalize:z}=$;return z(["Message Tips Components"])},hsvideo:$=>{const{normalize:z}=$;return z(["Video Components"])},hssegmented:$=>{const{normalize:z}=$;return z(["Segmented Components"])},hswaterfall:$=>{const{normalize:z}=$;return z(["Waterfall Components"])},hsmap:$=>{const{normalize:z}=$;return z(["Map Components"])},hsdraggable:$=>{const{normalize:z}=$;return z(["Draggable Components"])},hssplitPane:$=>{const{normalize:z}=$;return z(["Split Pane"])},hsbutton:$=>{const{normalize:z}=$;return z(["Button Components"])},hscropping:$=>{const{normalize:z}=$;return z(["Picture Cropping"])},hscountTo:$=>{const{normalize:z}=$;return z(["Digital Animation"])},hsselector:$=>{const{normalize:z}=$;return z(["Selector Components"])},hsflowChart:$=>{const{normalize:z}=$;return z(["Flow Chart"])},hsseamless:$=>{const{normalize:z}=$;return z(["Seamless Scroll"])},hscontextmenu:$=>{const{normalize:z}=$;return z(["Context Menu"])},hstypeit:$=>{const{normalize:z}=$;return z(["Typeit Components"])},hsjsoneditor:$=>{const{normalize:z}=$;return z(["JSON Editor"])},hsmenus:$=>{const{normalize:z}=$;return z(["MultiLevel Menu"])},hsmenu1:$=>{const{normalize:z}=$;return z(["Menu1"])},"hsmenu1-1":$=>{const{normalize:z}=$;return z(["Menu1-1"])},"hsmenu1-2":$=>{const{normalize:z}=$;return z(["Menu1-2"])},"hsmenu1-2-1":$=>{const{normalize:z}=$;return z(["Menu1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:z}=$;return z(["Menu1-2-2"])},"hsmenu1-3":$=>{const{normalize:z}=$;return z(["Menu1-3"])},hsmenu2:$=>{const{normalize:z}=$;return z(["Menu2"])},permission:$=>{const{normalize:z}=$;return z(["Permission Manage"])},permissionPage:$=>{const{normalize:z}=$;return z(["Page Permission"])},permissionButton:$=>{const{normalize:z}=$;return z(["Button Permission"])},hstabs:$=>{const{normalize:z}=$;return z(["Tabs Operate"])},hsguide:$=>{const{normalize:z}=$;return z(["Guide"])},hsAble:$=>{const{normalize:z}=$;return z(["Able"])},hsMenuTree:$=>{const{normalize:z}=$;return z(["Menu Tree"])},hsWatermark:$=>{const{normalize:z}=$;return z(["Water Mark"])},hsPrint:$=>{const{normalize:z}=$;return z(["Print"])},hsDownload:$=>{const{normalize:z}=$;return z(["Download"])},hsExternalPage:$=>{const{normalize:z}=$;return z(["External Page"])},hsPureDocument:$=>{const{normalize:z}=$;return z(["Pure Doc(Embedded)"])},externalLink:$=>{const{normalize:z}=$;return z(["Pure Doc(External)"])},hsEpDocument:$=>{const{normalize:z}=$;return z(["Element Plus Doc(Embedded)"])},hsVueDocument:$=>{const{normalize:z}=$;return z(["Vue3 Doc(Embedded)"])},hsViteDocument:$=>{const{normalize:z}=$;return z(["Vite Doc(Embedded)"])},hsPiniaDocument:$=>{const{normalize:z}=$;return z(["Pinia Doc(Embedded)"])},hsRouterDocument:$=>{const{normalize:z}=$;return z(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:$=>{const{normalize:z}=$;return z(["Tailwindcss Doc(Embedded)"])},hsAbout:$=>{const{normalize:z}=$;return z(["About"])},hsResult:$=>{const{normalize:z}=$;return z(["Result Page"])},hsSuccess:$=>{const{normalize:z}=$;return z(["Success Page"])},hsFail:$=>{const{normalize:z}=$;return z(["Fail Page"])},hsIconSelect:$=>{const{normalize:z}=$;return z(["Icon Select"])},hsTimeline:$=>{const{normalize:z}=$;return z(["Time Line"])},hsLineTree:$=>{const{normalize:z}=$;return z(["LineTree"])},hsList:$=>{const{normalize:z}=$;return z(["List Page"])},hsListCard:$=>{const{normalize:z}=$;return z(["Card List Page"])},hsDebounce:$=>{const{normalize:z}=$;return z(["Debounce & Throttle"])},hsFormDesign:$=>{const{normalize:z}=$;return z(["Form Design"])},hsBarcode:$=>{const{normalize:z}=$;return z(["Barcode"])},hsQrcode:$=>{const{normalize:z}=$;return z(["Qrcode"])},hsCascader:$=>{const{normalize:z}=$;return z(["Area Cascader"])},hsSwiper:$=>{const{normalize:z}=$;return z(["Swiper Plugin"])},hsVirtualList:$=>{const{normalize:z}=$;return z(["Virtual List"])},hsPdf:$=>{const{normalize:z}=$;return z(["PDF Preview"])},hsExecl:$=>{const{normalize:z}=$;return z(["Export Excel"])},hsInfiniteScroll:$=>{const{normalize:z}=$;return z(["Table Infinite Scroll"])},hsdanmaku:$=>{const{normalize:z}=$;return z(["Danmaku Components"])},hsPureTableBase:$=>{const{normalize:z}=$;return z(["Base Usage"])},hsPureTableHigh:$=>{const{normalize:z}=$;return z(["High Usage"])},hsTree:$=>{const{normalize:z}=$;return z(["Big Data Tree"])},hsMenuoverflow:$=>{const{normalize:z}=$;return z(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:$=>{const{normalize:z}=$;return z(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:$=>{const{normalize:z}=$;return z(["Loading..."])}},login:{username:$=>{const{normalize:z}=$;return z(["Username"])},password:$=>{const{normalize:z}=$;return z(["Password"])},verifyCode:$=>{const{normalize:z}=$;return z(["VerifyCode"])},remember:$=>{const{normalize:z}=$;return z(["Remember Password"])},sure:$=>{const{normalize:z}=$;return z(["Sure Password"])},forget:$=>{const{normalize:z}=$;return z(["Forget Password?"])},login:$=>{const{normalize:z}=$;return z(["Login"])},thirdLogin:$=>{const{normalize:z}=$;return z(["Third Login"])},phoneLogin:$=>{const{normalize:z}=$;return z(["Phone Login"])},qRCodeLogin:$=>{const{normalize:z}=$;return z(["QRCode Login"])},register:$=>{const{normalize:z}=$;return z(["Register"])},weChatLogin:$=>{const{normalize:z}=$;return z(["WeChat Login"])},alipayLogin:$=>{const{normalize:z}=$;return z(["Alipay Login"])},qqLogin:$=>{const{normalize:z}=$;return z(["QQ Login"])},weiboLogin:$=>{const{normalize:z}=$;return z(["Weibo Login"])},phone:$=>{const{normalize:z}=$;return z(["Phone"])},smsVerifyCode:$=>{const{normalize:z}=$;return z(["SMS VerifyCode"])},back:$=>{const{normalize:z}=$;return z(["Back"])},test:$=>{const{normalize:z}=$;return z(["Mock Test"])},tip:$=>{const{normalize:z}=$;return z(['After scanning the code, click "Confirm" to complete the login'])},definite:$=>{const{normalize:z}=$;return z(["Definite"])},loginSuccess:$=>{const{normalize:z}=$;return z(["Login Success"])},registerSuccess:$=>{const{normalize:z}=$;return z(["Regist Success"])},tickPrivacy:$=>{const{normalize:z}=$;return z(["Please tick Privacy Policy"])},readAccept:$=>{const{normalize:z}=$;return z(["I have read it carefully and accept"])},privacyPolicy:$=>{const{normalize:z}=$;return z(["Privacy Policy"])},getVerifyCode:$=>{const{normalize:z}=$;return z(["Get VerifyCode"])},info:$=>{const{normalize:z}=$;return z(["Seconds"])},usernameReg:$=>{const{normalize:z}=$;return z(["Please enter username"])},passwordReg:$=>{const{normalize:z}=$;return z(["Please enter password"])},verifyCodeReg:$=>{const{normalize:z}=$;return z(["Please enter verify code"])},verifyCodeCorrectReg:$=>{const{normalize:z}=$;return z(["Please enter correct verify code"])},verifyCodeSixReg:$=>{const{normalize:z}=$;return z(["Please enter a 6-digit verify code"])},phoneReg:$=>{const{normalize:z}=$;return z(["Please enter the phone"])},phoneCorrectReg:$=>{const{normalize:z}=$;return z(["Please enter the correct phone number format"])},passwordRuleReg:$=>{const{normalize:z}=$;return z(["The password format should be any combination of 8-18 digits"])},passwordSureReg:$=>{const{normalize:z}=$;return z(["Please enter confirm password"])},passwordDifferentReg:$=>{const{normalize:z}=$;return z(["The two passwords do not match!"])},passwordUpdateReg:$=>{const{normalize:z}=$;return z(["Password has been updated"])}}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource$1},Symbol.toStringTag,{value:"Module"})),resource={buttons:{hsLoginOut:$=>{const{normalize:z}=$;return z(["退出系统"])},hsfullscreen:$=>{const{normalize:z}=$;return z(["全屏"])},hsexitfullscreen:$=>{const{normalize:z}=$;return z(["退出全屏"])},hsrefreshRoute:$=>{const{normalize:z}=$;return z(["刷新路由"])},hslogin:$=>{const{normalize:z}=$;return z(["登录"])},hsadd:$=>{const{normalize:z}=$;return z(["新增"])},hsmark:$=>{const{normalize:z}=$;return z(["标记/取消"])},hssave:$=>{const{normalize:z}=$;return z(["保存"])},hssearch:$=>{const{normalize:z}=$;return z(["搜索"])},hsexpendAll:$=>{const{normalize:z}=$;return z(["全部展开"])},hscollapseAll:$=>{const{normalize:z}=$;return z(["全部折叠"])},hssystemSet:$=>{const{normalize:z}=$;return z(["打开项目配置"])},hsdelete:$=>{const{normalize:z}=$;return z(["删除"])},hsreload:$=>{const{normalize:z}=$;return z(["重新加载"])},hscloseCurrentTab:$=>{const{normalize:z}=$;return z(["关闭当前标签页"])},hscloseLeftTabs:$=>{const{normalize:z}=$;return z(["关闭左侧标签页"])},hscloseRightTabs:$=>{const{normalize:z}=$;return z(["关闭右侧标签页"])},hscloseOtherTabs:$=>{const{normalize:z}=$;return z(["关闭其他标签页"])},hscloseAllTabs:$=>{const{normalize:z}=$;return z(["关闭全部标签页"])},hswholeFullScreen:$=>{const{normalize:z}=$;return z(["全屏"])},hswholeExitFullScreen:$=>{const{normalize:z}=$;return z(["退出全屏"])},hscontentFullScreen:$=>{const{normalize:z}=$;return z(["内容区全屏"])},hscontentExitFullScreen:$=>{const{normalize:z}=$;return z(["内容区退出全屏"])}},menus:{hshome:$=>{const{normalize:z}=$;return z(["首页"])},hslogin:$=>{const{normalize:z}=$;return z(["登录"])},hsempty:$=>{const{normalize:z}=$;return z(["无Layout页"])},hssysManagement:$=>{const{normalize:z}=$;return z(["系统管理"])},hsUser:$=>{const{normalize:z}=$;return z(["用户管理"])},hsRole:$=>{const{normalize:z}=$;return z(["角色管理"])},hsDept:$=>{const{normalize:z}=$;return z(["部门管理"])},hseditor:$=>{const{normalize:z}=$;return z(["编辑器"])},hsabnormal:$=>{const{normalize:z}=$;return z(["异常页面"])},hsfourZeroFour:$=>{const{normalize:z}=$;return z(["404"])},hsfourZeroOne:$=>{const{normalize:z}=$;return z(["403"])},hsFive:$=>{const{normalize:z}=$;return z(["500"])},hscomponents:$=>{const{normalize:z}=$;return z(["组件"])},hsdialog:$=>{const{normalize:z}=$;return z(["函数式弹框组件"])},hsmessage:$=>{const{normalize:z}=$;return z(["消息提示组件"])},hsvideo:$=>{const{normalize:z}=$;return z(["视频组件"])},hssegmented:$=>{const{normalize:z}=$;return z(["分段控制器组件"])},hswaterfall:$=>{const{normalize:z}=$;return z(["瀑布流无限滚动组件"])},hsmap:$=>{const{normalize:z}=$;return z(["地图组件"])},hsdraggable:$=>{const{normalize:z}=$;return z(["拖拽组件"])},hssplitPane:$=>{const{normalize:z}=$;return z(["切割面板"])},hsbutton:$=>{const{normalize:z}=$;return z(["按钮组件"])},hscropping:$=>{const{normalize:z}=$;return z(["图片裁剪"])},hscountTo:$=>{const{normalize:z}=$;return z(["数字动画"])},hsselector:$=>{const{normalize:z}=$;return z(["选择器组件"])},hsflowChart:$=>{const{normalize:z}=$;return z(["流程图"])},hsseamless:$=>{const{normalize:z}=$;return z(["无缝滚动"])},hscontextmenu:$=>{const{normalize:z}=$;return z(["右键菜单"])},hstypeit:$=>{const{normalize:z}=$;return z(["打字机组件"])},hsjsoneditor:$=>{const{normalize:z}=$;return z(["JSON编辑器"])},hsmenus:$=>{const{normalize:z}=$;return z(["多级菜单"])},hsmenu1:$=>{const{normalize:z}=$;return z(["菜单1"])},"hsmenu1-1":$=>{const{normalize:z}=$;return z(["菜单1-1"])},"hsmenu1-2":$=>{const{normalize:z}=$;return z(["菜单1-2"])},"hsmenu1-2-1":$=>{const{normalize:z}=$;return z(["菜单1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:z}=$;return z(["菜单1-2-2"])},"hsmenu1-3":$=>{const{normalize:z}=$;return z(["菜单1-3"])},hsmenu2:$=>{const{normalize:z}=$;return z(["菜单2"])},permission:$=>{const{normalize:z}=$;return z(["权限管理"])},permissionPage:$=>{const{normalize:z}=$;return z(["页面权限"])},permissionButton:$=>{const{normalize:z}=$;return z(["按钮权限"])},hstabs:$=>{const{normalize:z}=$;return z(["标签页操作"])},hsguide:$=>{const{normalize:z}=$;return z(["引导页"])},hsAble:$=>{const{normalize:z}=$;return z(["功能"])},hsMenuTree:$=>{const{normalize:z}=$;return z(["菜单树结构"])},hsWatermark:$=>{const{normalize:z}=$;return z(["水印"])},hsPrint:$=>{const{normalize:z}=$;return z(["打印"])},hsDownload:$=>{const{normalize:z}=$;return z(["下载"])},hsExternalPage:$=>{const{normalize:z}=$;return z(["外部页面"])},hsPureDocument:$=>{const{normalize:z}=$;return z(["平台文档(内嵌)"])},externalLink:$=>{const{normalize:z}=$;return z(["平台文档(外链)"])},hsEpDocument:$=>{const{normalize:z}=$;return z(["Element Plus 文档(内嵌)"])},hsVueDocument:$=>{const{normalize:z}=$;return z(["Vue3 文档(内嵌)"])},hsViteDocument:$=>{const{normalize:z}=$;return z(["Vite 文档(内嵌)"])},hsPiniaDocument:$=>{const{normalize:z}=$;return z(["Pinia 文档(内嵌)"])},hsRouterDocument:$=>{const{normalize:z}=$;return z(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:$=>{const{normalize:z}=$;return z(["Tailwindcss 文档(内嵌)"])},hsAbout:$=>{const{normalize:z}=$;return z(["关于"])},hsResult:$=>{const{normalize:z}=$;return z(["结果页面"])},hsSuccess:$=>{const{normalize:z}=$;return z(["成功页面"])},hsFail:$=>{const{normalize:z}=$;return z(["失败页面"])},hsIconSelect:$=>{const{normalize:z}=$;return z(["图标选择器"])},hsTimeline:$=>{const{normalize:z}=$;return z(["时间线"])},hsLineTree:$=>{const{normalize:z}=$;return z(["树形连接线"])},hsList:$=>{const{normalize:z}=$;return z(["列表页"])},hsListCard:$=>{const{normalize:z}=$;return z(["卡片列表页"])},hsDebounce:$=>{const{normalize:z}=$;return z(["防抖节流"])},hsFormDesign:$=>{const{normalize:z}=$;return z(["表单设计器"])},hsBarcode:$=>{const{normalize:z}=$;return z(["条形码"])},hsQrcode:$=>{const{normalize:z}=$;return z(["二维码"])},hsCascader:$=>{const{normalize:z}=$;return z(["区域级联选择器"])},hsSwiper:$=>{const{normalize:z}=$;return z(["Swiper插件"])},hsVirtualList:$=>{const{normalize:z}=$;return z(["虚拟列表"])},hsPdf:$=>{const{normalize:z}=$;return z(["PDF预览"])},hsExecl:$=>{const{normalize:z}=$;return z(["导出Excel"])},hsInfiniteScroll:$=>{const{normalize:z}=$;return z(["表格无限滚动"])},hsdanmaku:$=>{const{normalize:z}=$;return z(["弹幕组件"])},hsPureTableBase:$=>{const{normalize:z}=$;return z(["基础用法(23个示例)"])},hsPureTableHigh:$=>{const{normalize:z}=$;return z(["高级用法(10个示例)"])},hsTree:$=>{const{normalize:z}=$;return z(["大数据树业务组件"])},hsMenuoverflow:$=>{const{normalize:z}=$;return z(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:$=>{const{normalize:z}=$;return z(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:$=>{const{normalize:z}=$;return z(["加载中..."])}},login:{username:$=>{const{normalize:z}=$;return z(["账号"])},password:$=>{const{normalize:z}=$;return z(["密码"])},verifyCode:$=>{const{normalize:z}=$;return z(["验证码"])},remember:$=>{const{normalize:z}=$;return z(["记住密码"])},sure:$=>{const{normalize:z}=$;return z(["确认密码"])},forget:$=>{const{normalize:z}=$;return z(["忘记密码?"])},login:$=>{const{normalize:z}=$;return z(["登录"])},thirdLogin:$=>{const{normalize:z}=$;return z(["第三方登录"])},phoneLogin:$=>{const{normalize:z}=$;return z(["手机登录"])},qRCodeLogin:$=>{const{normalize:z}=$;return z(["二维码登录"])},register:$=>{const{normalize:z}=$;return z(["注册"])},weChatLogin:$=>{const{normalize:z}=$;return z(["微信登录"])},alipayLogin:$=>{const{normalize:z}=$;return z(["支付宝登录"])},qqLogin:$=>{const{normalize:z}=$;return z(["QQ登录"])},weiboLogin:$=>{const{normalize:z}=$;return z(["微博登录"])},phone:$=>{const{normalize:z}=$;return z(["手机号码"])},smsVerifyCode:$=>{const{normalize:z}=$;return z(["短信验证码"])},back:$=>{const{normalize:z}=$;return z(["返回"])},test:$=>{const{normalize:z}=$;return z(["模拟测试"])},tip:$=>{const{normalize:z}=$;return z(['扫码后点击"确认",即可完成登录'])},definite:$=>{const{normalize:z}=$;return z(["确定"])},loginSuccess:$=>{const{normalize:z}=$;return z(["登录成功"])},registerSuccess:$=>{const{normalize:z}=$;return z(["注册成功"])},tickPrivacy:$=>{const{normalize:z}=$;return z(["请勾选隐私政策"])},readAccept:$=>{const{normalize:z}=$;return z(["我已仔细阅读并接受"])},privacyPolicy:$=>{const{normalize:z}=$;return z(["《隐私政策》"])},getVerifyCode:$=>{const{normalize:z}=$;return z(["获取验证码"])},info:$=>{const{normalize:z}=$;return z(["秒后重新获取"])},usernameReg:$=>{const{normalize:z}=$;return z(["请输入账号"])},passwordReg:$=>{const{normalize:z}=$;return z(["请输入密码"])},verifyCodeReg:$=>{const{normalize:z}=$;return z(["请输入验证码"])},verifyCodeCorrectReg:$=>{const{normalize:z}=$;return z(["请输入正确的验证码"])},verifyCodeSixReg:$=>{const{normalize:z}=$;return z(["请输入6位数字验证码"])},phoneReg:$=>{const{normalize:z}=$;return z(["请输入手机号码"])},phoneCorrectReg:$=>{const{normalize:z}=$;return z(["请输入正确的手机号码格式"])},passwordRuleReg:$=>{const{normalize:z}=$;return z(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:$=>{const{normalize:z}=$;return z(["请输入确认密码"])},passwordDifferentReg:$=>{const{normalize:z}=$;return z(["两次密码不一致!"])},passwordUpdateReg:$=>{const{normalize:z}=$;return z(["修改密码成功"])}}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource},Symbol.toStringTag,{value:"Module"}));/*!
|
||
* shared v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const inBrowser=typeof window<"u",hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",makeSymbol=$=>hasSymbol?Symbol($):$,generateFormatCacheKey=($,z,oe)=>friendlyJSONstringify({l:$,k:z,s:oe}),friendlyJSONstringify=$=>JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$4=$=>typeof $=="number"&&isFinite($),isDate$2=$=>toTypeString($)==="[object Date]",isRegExp$4=$=>toTypeString($)==="[object RegExp]",isEmptyObject=$=>isPlainObject$2($)&&Object.keys($).length===0;function warn$1($,z){typeof console<"u"&&(console.warn("[intlify] "+$),z&&console.warn(z.stack))}const assign$4=Object.assign;function escapeHtml($){return $.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn$3($,z){return hasOwnProperty$1.call($,z)}const isArray$9=Array.isArray,isFunction$2=$=>typeof $=="function",isString$5=$=>typeof $=="string",isBoolean$2=$=>typeof $=="boolean",isObject$6=$=>$!==null&&typeof $=="object",objectToString$1=Object.prototype.toString,toTypeString=$=>objectToString$1.call($),isPlainObject$2=$=>toTypeString($)==="[object Object]",toDisplayString=$=>$==null?"":isArray$9($)||isPlainObject$2($)&&$.toString===objectToString$1?JSON.stringify($,null,2):String($);/*!
|
||
* message-compiler v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function createCompileError($,z,oe={}){const{domain:ae,messages:le,args:ue}=oe,pe=$,_e=new SyntaxError(String(pe));return _e.code=$,z&&(_e.location=z),_e.domain=ae,_e}/*!
|
||
* core-base v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],["["]:[4],o:[7]};pathStateMachine[1]={w:[1],["."]:[2],["["]:[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],[0]:[3,0]};pathStateMachine[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};pathStateMachine[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};pathStateMachine[5]={["'"]:[4,0],o:8,l:[5,0]};pathStateMachine[6]={['"']:[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral($){return literalValueRE.test($)}function stripQuotes($){const z=$.charCodeAt(0),oe=$.charCodeAt($.length-1);return z===oe&&(z===34||z===39)?$.slice(1,-1):$}function getPathCharType($){if($==null)return"o";switch($.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return $;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath($){const z=$.trim();return $.charAt(0)==="0"&&isNaN(parseInt($))?!1:isLiteral(z)?stripQuotes(z):"*"+z}function parse$5($){const z=[];let oe=-1,ae=0,le=0,ue,pe,_e,Ce,$e,xe,Ie;const Fe=[];Fe[0]=()=>{pe===void 0?pe=_e:pe+=_e},Fe[1]=()=>{pe!==void 0&&(z.push(pe),pe=void 0)},Fe[2]=()=>{Fe[0](),le++},Fe[3]=()=>{if(le>0)le--,ae=4,Fe[0]();else{if(le=0,pe===void 0||(pe=formatSubPath(pe),pe===!1))return!1;Fe[1]()}};function ze(){const Ue=$[oe+1];if(ae===5&&Ue==="'"||ae===6&&Ue==='"')return oe++,_e="\\"+Ue,Fe[0](),!0}for(;ae!==null;)if(oe++,ue=$[oe],!(ue==="\\"&&ze())){if(Ce=getPathCharType(ue),Ie=pathStateMachine[ae],$e=Ie[Ce]||Ie.l||8,$e===8||(ae=$e[0],$e[1]!==void 0&&(xe=Fe[$e[1]],xe&&(_e=ue,xe()===!1))))return;if(ae===7)return z}}const cache=new Map;function resolveWithKeyValue($,z){return isObject$6($)?$[z]:null}function resolveValue($,z){if(!isObject$6($))return null;let oe=cache.get(z);if(oe||(oe=parse$5(z),oe&&cache.set(z,oe)),!oe)return null;const ae=oe.length;let le=$,ue=0;for(;ue<ae;){const pe=le[oe[ue]];if(pe===void 0)return null;le=pe,ue++}return le}const DEFAULT_MODIFIER=$=>$,DEFAULT_MESSAGE=$=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=$=>$.length===0?"":$.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault($,z){return $=Math.abs($),z===2?$?$>1?1:0:1:$?Math.min($,2):0}function getPluralIndex($){const z=isNumber$4($.pluralIndex)?$.pluralIndex:-1;return $.named&&(isNumber$4($.named.count)||isNumber$4($.named.n))?isNumber$4($.named.count)?$.named.count:isNumber$4($.named.n)?$.named.n:z:z}function normalizeNamed($,z){z.count||(z.count=$),z.n||(z.n=$)}function createMessageContext($={}){const z=$.locale,oe=getPluralIndex($),ae=isObject$6($.pluralRules)&&isString$5(z)&&isFunction$2($.pluralRules[z])?$.pluralRules[z]:pluralDefault,le=isObject$6($.pluralRules)&&isString$5(z)&&isFunction$2($.pluralRules[z])?pluralDefault:void 0,ue=Lt=>Lt[ae(oe,Lt.length,le)],pe=$.list||[],_e=Lt=>pe[Lt],Ce=$.named||{};isNumber$4($.pluralIndex)&&normalizeNamed(oe,Ce);const $e=Lt=>Ce[Lt];function xe(Lt){const hn=isFunction$2($.messages)?$.messages(Lt):isObject$6($.messages)?$.messages[Lt]:!1;return hn||($.parent?$.parent.message(Lt):DEFAULT_MESSAGE)}const Ie=Lt=>$.modifiers?$.modifiers[Lt]:DEFAULT_MODIFIER,Fe=isPlainObject$2($.processor)&&isFunction$2($.processor.normalize)?$.processor.normalize:DEFAULT_NORMALIZE,ze=isPlainObject$2($.processor)&&isFunction$2($.processor.interpolate)?$.processor.interpolate:DEFAULT_INTERPOLATE,Ue=isPlainObject$2($.processor)&&isString$5($.processor.type)?$.processor.type:DEFAULT_MESSAGE_DATA_TYPE,At={list:_e,named:$e,plural:ue,linked:(Lt,...hn)=>{const[vn,_n]=hn;let bn="text",Sn="";hn.length===1?isObject$6(vn)?(Sn=vn.modifier||Sn,bn=vn.type||bn):isString$5(vn)&&(Sn=vn||Sn):hn.length===2&&(isString$5(vn)&&(Sn=vn||Sn),isString$5(_n)&&(bn=_n||bn));let Cn=xe(Lt)(At);return bn==="vnode"&&isArray$9(Cn)&&Sn&&(Cn=Cn[0]),Sn?Ie(Sn)(Cn,bn):Cn},message:xe,type:Ue,interpolate:ze,normalize:Fe};return At}function fallbackWithSimple($,z,oe){return[...new Set([oe,...isArray$9(z)?z:isObject$6(z)?Object.keys(z):isString$5(z)?[z]:[oe]])]}function fallbackWithLocaleChain($,z,oe){const ae=isString$5(oe)?oe:DEFAULT_LOCALE$1,le=$;le.__localeChainCache||(le.__localeChainCache=new Map);let ue=le.__localeChainCache.get(ae);if(!ue){ue=[];let pe=[oe];for(;isArray$9(pe);)pe=appendBlockToChain(ue,pe,z);const _e=isArray$9(z)||!isPlainObject$2(z)?z:z.default?z.default:null;pe=isString$5(_e)?[_e]:_e,isArray$9(pe)&&appendBlockToChain(ue,pe,!1),le.__localeChainCache.set(ae,ue)}return ue}function appendBlockToChain($,z,oe){let ae=!0;for(let le=0;le<z.length&&isBoolean$2(ae);le++){const ue=z[le];isString$5(ue)&&(ae=appendLocaleToChain($,z[le],oe))}return ae}function appendLocaleToChain($,z,oe){let ae;const le=z.split("-");do{const ue=le.join("-");ae=appendItemToChain($,ue,oe),le.splice(-1,1)}while(le.length&&ae===!0);return ae}function appendItemToChain($,z,oe){let ae=!1;if(!$.includes(z)&&(ae=!0,z)){ae=z[z.length-1]!=="!";const le=z.replace(/!/g,"");$.push(le),(isArray$9(oe)||isPlainObject$2(oe))&&oe[le]&&(ae=oe[le])}return ae}const VERSION$2="9.2.2",NOT_REOSLVED=-1,DEFAULT_LOCALE$1="en-US",MISSING_RESOLVE_VALUE="",capitalize=$=>`${$.charAt(0).toLocaleUpperCase()}${$.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:($,z)=>z==="text"&&isString$5($)?$.toUpperCase():z==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toUpperCase():$,lower:($,z)=>z==="text"&&isString$5($)?$.toLowerCase():z==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toLowerCase():$,capitalize:($,z)=>z==="text"&&isString$5($)?capitalize($):z==="vnode"&&isObject$6($)&&"__v_isVNode"in $?capitalize($.children):$}}let _compiler,_resolver;function registerMessageResolver($){_resolver=$}let _fallbacker;function registerLocaleFallbacker($){_fallbacker=$}let _cid=0;function createCoreContext($={}){const z=isString$5($.version)?$.version:VERSION$2,oe=isString$5($.locale)?$.locale:DEFAULT_LOCALE$1,ae=isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||isString$5($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:oe,le=isPlainObject$2($.messages)?$.messages:{[oe]:{}},ue=isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[oe]:{}},pe=isPlainObject$2($.numberFormats)?$.numberFormats:{[oe]:{}},_e=assign$4({},$.modifiers||{},getDefaultLinkedModifiers()),Ce=$.pluralRules||{},$e=isFunction$2($.missing)?$.missing:null,xe=isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ie=isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Fe=!!$.fallbackFormat,ze=!!$.unresolving,Ue=isFunction$2($.postTranslation)?$.postTranslation:null,qe=isPlainObject$2($.processor)?$.processor:null,At=isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,Lt=!!$.escapeParameter,hn=isFunction$2($.messageCompiler)?$.messageCompiler:_compiler,vn=isFunction$2($.messageResolver)?$.messageResolver:_resolver||resolveWithKeyValue,_n=isFunction$2($.localeFallbacker)?$.localeFallbacker:_fallbacker||fallbackWithSimple,bn=isObject$6($.fallbackContext)?$.fallbackContext:void 0,Sn=isFunction$2($.onWarn)?$.onWarn:warn$1,Cn=$,En=isObject$6(Cn.__datetimeFormatters)?Cn.__datetimeFormatters:new Map,$n=isObject$6(Cn.__numberFormatters)?Cn.__numberFormatters:new Map,wn=isObject$6(Cn.__meta)?Cn.__meta:{};_cid++;const Tn={version:z,cid:_cid,locale:oe,fallbackLocale:ae,messages:le,modifiers:_e,pluralRules:Ce,missing:$e,missingWarn:xe,fallbackWarn:Ie,fallbackFormat:Fe,unresolving:ze,postTranslation:Ue,processor:qe,warnHtmlMessage:At,escapeParameter:Lt,messageCompiler:hn,messageResolver:vn,localeFallbacker:_n,fallbackContext:bn,onWarn:Sn,__meta:wn};return Tn.datetimeFormats=ue,Tn.numberFormats=pe,Tn.__datetimeFormatters=En,Tn.__numberFormatters=$n,Tn}function handleMissing($,z,oe,ae,le){const{missing:ue,onWarn:pe}=$;if(ue!==null){const _e=ue($,oe,z,le);return isString$5(_e)?_e:z}else return z}function updateFallbackLocale($,z,oe){const ae=$;ae.__localeChainCache=new Map,$.localeFallbacker($,oe,z)}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),__EXTEND_POINT__:inc$1()};function createCoreError($){return createCompileError($,null,void 0)}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=$=>isFunction$2($);function translate$1($,...z){const{fallbackFormat:oe,postTranslation:ae,unresolving:le,messageCompiler:ue,fallbackLocale:pe,messages:_e}=$,[Ce,$e]=parseTranslateArgs(...z),xe=isBoolean$2($e.missingWarn)?$e.missingWarn:$.missingWarn,Ie=isBoolean$2($e.fallbackWarn)?$e.fallbackWarn:$.fallbackWarn,Fe=isBoolean$2($e.escapeParameter)?$e.escapeParameter:$.escapeParameter,ze=!!$e.resolvedMessage,Ue=isString$5($e.default)||isBoolean$2($e.default)?isBoolean$2($e.default)?ue?Ce:()=>Ce:$e.default:oe?ue?Ce:()=>Ce:"",qe=oe||Ue!=="",At=isString$5($e.locale)?$e.locale:$.locale;Fe&&escapeParams($e);let[Lt,hn,vn]=ze?[Ce,At,_e[At]||{}]:resolveMessageFormat($,Ce,At,pe,Ie,xe),_n=Lt,bn=Ce;if(!ze&&!(isString$5(_n)||isMessageFunction(_n))&&qe&&(_n=Ue,bn=_n),!ze&&(!(isString$5(_n)||isMessageFunction(_n))||!isString$5(hn)))return le?NOT_REOSLVED:Ce;let Sn=!1;const Cn=()=>{Sn=!0},En=isMessageFunction(_n)?_n:compileMessageFormat($,Ce,hn,_n,bn,Cn);if(Sn)return _n;const $n=getMessageContextOptions($,hn,vn,$e),wn=createMessageContext($n),Tn=evaluateMessage($,En,wn);return ae?ae(Tn,Ce):Tn}function escapeParams($){isArray$9($.list)?$.list=$.list.map(z=>isString$5(z)?escapeHtml(z):z):isObject$6($.named)&&Object.keys($.named).forEach(z=>{isString$5($.named[z])&&($.named[z]=escapeHtml($.named[z]))})}function resolveMessageFormat($,z,oe,ae,le,ue){const{messages:pe,onWarn:_e,messageResolver:Ce,localeFallbacker:$e}=$,xe=$e($,ae,oe);let Ie={},Fe,ze=null;const Ue="translate";for(let qe=0;qe<xe.length&&(Fe=xe[qe],Ie=pe[Fe]||{},(ze=Ce(Ie,z))===null&&(ze=Ie[z]),!(isString$5(ze)||isFunction$2(ze)));qe++){const At=handleMissing($,z,Fe,ue,Ue);At!==z&&(ze=At)}return[ze,Fe,Ie]}function compileMessageFormat($,z,oe,ae,le,ue){const{messageCompiler:pe,warnHtmlMessage:_e}=$;if(isMessageFunction(ae)){const $e=ae;return $e.locale=$e.locale||oe,$e.key=$e.key||z,$e}if(pe==null){const $e=()=>ae;return $e.locale=oe,$e.key=z,$e}const Ce=pe(ae,getCompileOptions($,oe,le,ae,_e,ue));return Ce.locale=oe,Ce.key=z,Ce.source=ae,Ce}function evaluateMessage($,z,oe){return z(oe)}function parseTranslateArgs(...$){const[z,oe,ae]=$,le={};if(!isString$5(z)&&!isNumber$4(z)&&!isMessageFunction(z))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const ue=isNumber$4(z)?String(z):(isMessageFunction(z),z);return isNumber$4(oe)?le.plural=oe:isString$5(oe)?le.default=oe:isPlainObject$2(oe)&&!isEmptyObject(oe)?le.named=oe:isArray$9(oe)&&(le.list=oe),isNumber$4(ae)?le.plural=ae:isString$5(ae)?le.default=ae:isPlainObject$2(ae)&&assign$4(le,ae),[ue,le]}function getCompileOptions($,z,oe,ae,le,ue){return{warnHtmlMessage:le,onError:pe=>{throw ue&&ue(pe),pe},onCacheKey:pe=>generateFormatCacheKey(z,oe,pe)}}function getMessageContextOptions($,z,oe,ae){const{modifiers:le,pluralRules:ue,messageResolver:pe,fallbackLocale:_e,fallbackWarn:Ce,missingWarn:$e,fallbackContext:xe}=$,Fe={locale:z,modifiers:le,pluralRules:ue,messages:ze=>{let Ue=pe(oe,ze);if(Ue==null&&xe){const[,,qe]=resolveMessageFormat(xe,ze,z,_e,Ce,$e);Ue=pe(qe,ze)}if(isString$5(Ue)){let qe=!1;const Lt=compileMessageFormat($,ze,z,Ue,ze,()=>{qe=!0});return qe?NOOP_MESSAGE_FUNCTION:Lt}else return isMessageFunction(Ue)?Ue:NOOP_MESSAGE_FUNCTION}};return $.processor&&(Fe.processor=$.processor),ae.list&&(Fe.list=ae.list),ae.named&&(Fe.named=ae.named),isNumber$4(ae.plural)&&(Fe.pluralIndex=ae.plural),Fe}function datetime($,...z){const{datetimeFormats:oe,unresolving:ae,fallbackLocale:le,onWarn:ue,localeFallbacker:pe}=$,{__datetimeFormatters:_e}=$,[Ce,$e,xe,Ie]=parseDateTimeArgs(...z),Fe=isBoolean$2(xe.missingWarn)?xe.missingWarn:$.missingWarn;isBoolean$2(xe.fallbackWarn)?xe.fallbackWarn:$.fallbackWarn;const ze=!!xe.part,Ue=isString$5(xe.locale)?xe.locale:$.locale,qe=pe($,le,Ue);if(!isString$5(Ce)||Ce==="")return new Intl.DateTimeFormat(Ue,Ie).format($e);let At={},Lt,hn=null;const vn="datetime format";for(let Sn=0;Sn<qe.length&&(Lt=qe[Sn],At=oe[Lt]||{},hn=At[Ce],!isPlainObject$2(hn));Sn++)handleMissing($,Ce,Lt,Fe,vn);if(!isPlainObject$2(hn)||!isString$5(Lt))return ae?NOT_REOSLVED:Ce;let _n=`${Lt}__${Ce}`;isEmptyObject(Ie)||(_n=`${_n}__${JSON.stringify(Ie)}`);let bn=_e.get(_n);return bn||(bn=new Intl.DateTimeFormat(Lt,assign$4({},hn,Ie)),_e.set(_n,bn)),ze?bn.formatToParts($e):bn.format($e)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...$){const[z,oe,ae,le]=$,ue={};let pe={},_e;if(isString$5(z)){const Ce=z.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!Ce)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const $e=Ce[3]?Ce[3].trim().startsWith("T")?`${Ce[1].trim()}${Ce[3].trim()}`:`${Ce[1].trim()}T${Ce[3].trim()}`:Ce[1].trim();_e=new Date($e);try{_e.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$2(z)){if(isNaN(z.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);_e=z}else if(isNumber$4(z))_e=z;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$5(oe)?ue.key=oe:isPlainObject$2(oe)&&Object.keys(oe).forEach(Ce=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(Ce)?pe[Ce]=oe[Ce]:ue[Ce]=oe[Ce]}),isString$5(ae)?ue.locale=ae:isPlainObject$2(ae)&&(pe=ae),isPlainObject$2(le)&&(pe=le),[ue.key||"",_e,ue,pe]}function clearDateTimeFormat($,z,oe){const ae=$;for(const le in oe){const ue=`${z}__${le}`;ae.__datetimeFormatters.has(ue)&&ae.__datetimeFormatters.delete(ue)}}function number$2($,...z){const{numberFormats:oe,unresolving:ae,fallbackLocale:le,onWarn:ue,localeFallbacker:pe}=$,{__numberFormatters:_e}=$,[Ce,$e,xe,Ie]=parseNumberArgs(...z),Fe=isBoolean$2(xe.missingWarn)?xe.missingWarn:$.missingWarn;isBoolean$2(xe.fallbackWarn)?xe.fallbackWarn:$.fallbackWarn;const ze=!!xe.part,Ue=isString$5(xe.locale)?xe.locale:$.locale,qe=pe($,le,Ue);if(!isString$5(Ce)||Ce==="")return new Intl.NumberFormat(Ue,Ie).format($e);let At={},Lt,hn=null;const vn="number format";for(let Sn=0;Sn<qe.length&&(Lt=qe[Sn],At=oe[Lt]||{},hn=At[Ce],!isPlainObject$2(hn));Sn++)handleMissing($,Ce,Lt,Fe,vn);if(!isPlainObject$2(hn)||!isString$5(Lt))return ae?NOT_REOSLVED:Ce;let _n=`${Lt}__${Ce}`;isEmptyObject(Ie)||(_n=`${_n}__${JSON.stringify(Ie)}`);let bn=_e.get(_n);return bn||(bn=new Intl.NumberFormat(Lt,assign$4({},hn,Ie)),_e.set(_n,bn)),ze?bn.formatToParts($e):bn.format($e)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...$){const[z,oe,ae,le]=$,ue={};let pe={};if(!isNumber$4(z))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const _e=z;return isString$5(oe)?ue.key=oe:isPlainObject$2(oe)&&Object.keys(oe).forEach(Ce=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(Ce)?pe[Ce]=oe[Ce]:ue[Ce]=oe[Ce]}),isString$5(ae)?ue.locale=ae:isPlainObject$2(ae)&&(pe=ae),isPlainObject$2(le)&&(pe=le),[ue.key||"",_e,ue,pe]}function clearNumberFormat($,z,oe){const ae=$;for(const le in oe){const ue=`${z}__${le}`;ae.__numberFormatters.has(ue)&&ae.__numberFormatters.delete(ue)}}/*!
|
||
* vue-i18n v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const VERSION$1="9.2.2";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSLALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSLALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError($,...z){return createCompileError($,null,void 0)}const TransrateVNodeSymbol=makeSymbol("__transrateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOption=makeSymbol("__injectWithOption");function handleFlatJson($){if(!isObject$6($))return $;for(const z in $)if(hasOwn$3($,z))if(!z.includes("."))isObject$6($[z])&&handleFlatJson($[z]);else{const oe=z.split("."),ae=oe.length-1;let le=$;for(let ue=0;ue<ae;ue++)oe[ue]in le||(le[oe[ue]]={}),le=le[oe[ue]];le[oe[ae]]=$[z],delete $[z],isObject$6(le[oe[ae]])&&handleFlatJson(le[oe[ae]])}return $}function getLocaleMessages($,z){const{messages:oe,__i18n:ae,messageResolver:le,flatJson:ue}=z,pe=isPlainObject$2(oe)?oe:isArray$9(ae)?{}:{[$]:{}};if(isArray$9(ae)&&ae.forEach(_e=>{if("locale"in _e&&"resource"in _e){const{locale:Ce,resource:$e}=_e;Ce?(pe[Ce]=pe[Ce]||{},deepCopy($e,pe[Ce])):deepCopy($e,pe)}else isString$5(_e)&&deepCopy(JSON.parse(_e),pe)}),le==null&&ue)for(const _e in pe)hasOwn$3(pe,_e)&&handleFlatJson(pe[_e]);return pe}const isNotObjectOrIsArray=$=>!isObject$6($)||isArray$9($);function deepCopy($,z){if(isNotObjectOrIsArray($)||isNotObjectOrIsArray(z))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const oe in $)hasOwn$3($,oe)&&(isNotObjectOrIsArray($[oe])||isNotObjectOrIsArray(z[oe])?z[oe]=$[oe]:deepCopy($[oe],z[oe]))}function getComponentOptions($){return $.type}function adjustI18nResources($,z,oe){let ae=isObject$6(z.messages)?z.messages:{};"__i18nGlobal"in oe&&(ae=getLocaleMessages($.locale.value,{messages:ae,__i18n:oe.__i18nGlobal}));const le=Object.keys(ae);le.length&&le.forEach(ue=>{$.mergeLocaleMessage(ue,ae[ue])});{if(isObject$6(z.datetimeFormats)){const ue=Object.keys(z.datetimeFormats);ue.length&&ue.forEach(pe=>{$.mergeDateTimeFormat(pe,z.datetimeFormats[pe])})}if(isObject$6(z.numberFormats)){const ue=Object.keys(z.numberFormats);ue.length&&ue.forEach(pe=>{$.mergeNumberFormat(pe,z.numberFormats[pe])})}}}function createTextNode($){return createVNode(Text$1,null,$,0)}let composerID=0;function defineCoreMissingHandler($){return(z,oe,ae,le)=>$(oe,ae,getCurrentInstance()||void 0,le)}function createComposer($={},z){const{__root:oe}=$,ae=oe===void 0;let le=isBoolean$2($.inheritLocale)?$.inheritLocale:!0;const ue=ref(oe&&le?oe.locale.value:isString$5($.locale)?$.locale:DEFAULT_LOCALE$1),pe=ref(oe&&le?oe.fallbackLocale.value:isString$5($.fallbackLocale)||isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:ue.value),_e=ref(getLocaleMessages(ue.value,$)),Ce=ref(isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[ue.value]:{}}),$e=ref(isPlainObject$2($.numberFormats)?$.numberFormats:{[ue.value]:{}});let xe=oe?oe.missingWarn:isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ie=oe?oe.fallbackWarn:isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Fe=oe?oe.fallbackRoot:isBoolean$2($.fallbackRoot)?$.fallbackRoot:!0,ze=!!$.fallbackFormat,Ue=isFunction$2($.missing)?$.missing:null,qe=isFunction$2($.missing)?defineCoreMissingHandler($.missing):null,At=isFunction$2($.postTranslation)?$.postTranslation:null,Lt=oe?oe.warnHtmlMessage:isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,hn=!!$.escapeParameter;const vn=oe?oe.modifiers:isPlainObject$2($.modifiers)?$.modifiers:{};let _n=$.pluralRules||oe&&oe.pluralRules,bn;bn=(()=>{const ir={version:VERSION$1,locale:ue.value,fallbackLocale:pe.value,messages:_e.value,modifiers:vn,pluralRules:_n,missing:qe===null?void 0:qe,missingWarn:xe,fallbackWarn:Ie,fallbackFormat:ze,unresolving:!0,postTranslation:At===null?void 0:At,warnHtmlMessage:Lt,escapeParameter:hn,messageResolver:$.messageResolver,__meta:{framework:"vue"}};return ir.datetimeFormats=Ce.value,ir.numberFormats=$e.value,ir.__datetimeFormatters=isPlainObject$2(bn)?bn.__datetimeFormatters:void 0,ir.__numberFormatters=isPlainObject$2(bn)?bn.__numberFormatters:void 0,createCoreContext(ir)})(),updateFallbackLocale(bn,ue.value,pe.value);function Cn(){return[ue.value,pe.value,_e.value,Ce.value,$e.value]}const En=computed({get:()=>ue.value,set:ir=>{ue.value=ir,bn.locale=ue.value}}),$n=computed({get:()=>pe.value,set:ir=>{pe.value=ir,bn.fallbackLocale=pe.value,updateFallbackLocale(bn,ue.value,ir)}}),wn=computed(()=>_e.value),Tn=computed(()=>Ce.value),xn=computed(()=>$e.value);function kn(){return isFunction$2(At)?At:null}function Nn(ir){At=ir,bn.postTranslation=ir}function Bn(){return Ue}function Dn(ir){ir!==null&&(qe=defineCoreMissingHandler(ir)),Ue=ir,bn.missing=qe}const In=(ir,ur,fr,kr,Dr,Lr)=>{Cn();let Mr;if(Mr=ir(bn),isNumber$4(Mr)&&Mr===NOT_REOSLVED){const[br,Cr]=ur();return oe&&Fe?kr(oe):Dr(br)}else{if(Lr(Mr))return Mr;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Ln(...ir){return In(ur=>Reflect.apply(translate$1,null,[ur,...ir]),()=>parseTranslateArgs(...ir),"translate",ur=>Reflect.apply(ur.t,ur,[...ir]),ur=>ur,ur=>isString$5(ur))}function Mn(...ir){const[ur,fr,kr]=ir;if(kr&&!isObject$6(kr))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Ln(ur,fr,assign$4({resolvedMessage:!0},kr||{}))}function Vn(...ir){return In(ur=>Reflect.apply(datetime,null,[ur,...ir]),()=>parseDateTimeArgs(...ir),"datetime format",ur=>Reflect.apply(ur.d,ur,[...ir]),()=>MISSING_RESOLVE_VALUE,ur=>isString$5(ur))}function Yn(...ir){return In(ur=>Reflect.apply(number$2,null,[ur,...ir]),()=>parseNumberArgs(...ir),"number format",ur=>Reflect.apply(ur.n,ur,[...ir]),()=>MISSING_RESOLVE_VALUE,ur=>isString$5(ur))}function Fn(ir){return ir.map(ur=>isString$5(ur)||isNumber$4(ur)||isBoolean$2(ur)?createTextNode(String(ur)):ur)}const sr={normalize:Fn,interpolate:ir=>ir,type:"vnode"};function vr(...ir){return In(ur=>{let fr;const kr=ur;try{kr.processor=sr,fr=Reflect.apply(translate$1,null,[kr,...ir])}finally{kr.processor=null}return fr},()=>parseTranslateArgs(...ir),"translate",ur=>ur[TransrateVNodeSymbol](...ir),ur=>[createTextNode(ur)],ur=>isArray$9(ur))}function ar(...ir){return In(ur=>Reflect.apply(number$2,null,[ur,...ir]),()=>parseNumberArgs(...ir),"number format",ur=>ur[NumberPartsSymbol](...ir),()=>[],ur=>isString$5(ur)||isArray$9(ur))}function qn(...ir){return In(ur=>Reflect.apply(datetime,null,[ur,...ir]),()=>parseDateTimeArgs(...ir),"datetime format",ur=>ur[DatetimePartsSymbol](...ir),()=>[],ur=>isString$5(ur)||isArray$9(ur))}function Gn(ir){_n=ir,bn.pluralRules=_n}function Wn(ir,ur){const fr=isString$5(ur)?ur:ue.value,kr=jn(fr);return bn.messageResolver(kr,ir)!==null}function Qn(ir){let ur=null;const fr=fallbackWithLocaleChain(bn,pe.value,ue.value);for(let kr=0;kr<fr.length;kr++){const Dr=_e.value[fr[kr]]||{},Lr=bn.messageResolver(Dr,ir);if(Lr!=null){ur=Lr;break}}return ur}function cr(ir){const ur=Qn(ir);return ur??(oe?oe.tm(ir)||{}:{})}function jn(ir){return _e.value[ir]||{}}function Zn(ir,ur){_e.value[ir]=ur,bn.messages=_e.value}function nr(ir,ur){_e.value[ir]=_e.value[ir]||{},deepCopy(ur,_e.value[ir]),bn.messages=_e.value}function hr(ir){return Ce.value[ir]||{}}function gr(ir,ur){Ce.value[ir]=ur,bn.datetimeFormats=Ce.value,clearDateTimeFormat(bn,ir,ur)}function or(ir,ur){Ce.value[ir]=assign$4(Ce.value[ir]||{},ur),bn.datetimeFormats=Ce.value,clearDateTimeFormat(bn,ir,ur)}function wr(ir){return $e.value[ir]||{}}function mr(ir,ur){$e.value[ir]=ur,bn.numberFormats=$e.value,clearNumberFormat(bn,ir,ur)}function Tr(ir,ur){$e.value[ir]=assign$4($e.value[ir]||{},ur),bn.numberFormats=$e.value,clearNumberFormat(bn,ir,ur)}composerID++,oe&&inBrowser&&(watch(oe.locale,ir=>{le&&(ue.value=ir,bn.locale=ir,updateFallbackLocale(bn,ue.value,pe.value))}),watch(oe.fallbackLocale,ir=>{le&&(pe.value=ir,bn.fallbackLocale=ir,updateFallbackLocale(bn,ue.value,pe.value))}));const dr={id:composerID,locale:En,fallbackLocale:$n,get inheritLocale(){return le},set inheritLocale(ir){le=ir,ir&&oe&&(ue.value=oe.locale.value,pe.value=oe.fallbackLocale.value,updateFallbackLocale(bn,ue.value,pe.value))},get availableLocales(){return Object.keys(_e.value).sort()},messages:wn,get modifiers(){return vn},get pluralRules(){return _n||{}},get isGlobal(){return ae},get missingWarn(){return xe},set missingWarn(ir){xe=ir,bn.missingWarn=xe},get fallbackWarn(){return Ie},set fallbackWarn(ir){Ie=ir,bn.fallbackWarn=Ie},get fallbackRoot(){return Fe},set fallbackRoot(ir){Fe=ir},get fallbackFormat(){return ze},set fallbackFormat(ir){ze=ir,bn.fallbackFormat=ze},get warnHtmlMessage(){return Lt},set warnHtmlMessage(ir){Lt=ir,bn.warnHtmlMessage=ir},get escapeParameter(){return hn},set escapeParameter(ir){hn=ir,bn.escapeParameter=ir},t:Ln,getLocaleMessage:jn,setLocaleMessage:Zn,mergeLocaleMessage:nr,getPostTranslationHandler:kn,setPostTranslationHandler:Nn,getMissingHandler:Bn,setMissingHandler:Dn,[SetPluralRulesSymbol]:Gn};return dr.datetimeFormats=Tn,dr.numberFormats=xn,dr.rt=Mn,dr.te=Wn,dr.tm=cr,dr.d=Vn,dr.n=Yn,dr.getDateTimeFormat=hr,dr.setDateTimeFormat=gr,dr.mergeDateTimeFormat=or,dr.getNumberFormat=wr,dr.setNumberFormat=mr,dr.mergeNumberFormat=Tr,dr[InejctWithOption]=$.__injectWithOption,dr[TransrateVNodeSymbol]=vr,dr[DatetimePartsSymbol]=qn,dr[NumberPartsSymbol]=ar,dr}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:$=>$==="parent"||$==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:$},z){return z.length===1&&z[0]==="default"?($.default?$.default():[]).reduce((ae,le)=>ae=[...ae,...isArray$9(le.children)?le.children:[le]],[]):z.reduce((oe,ae)=>{const le=$[ae];return le&&(oe[ae]=le()),oe},{})}function getFragmentableTag($){return Fragment}const Translation={name:"i18n-t",props:assign$4({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:$=>isNumber$4($)||!isNaN($)}},baseFormatProps),setup($,z){const{slots:oe,attrs:ae}=z,le=$.i18n||useI18n$1({useScope:$.scope,__useComponent:!0});return()=>{const ue=Object.keys(oe).filter(Ie=>Ie!=="_"),pe={};$.locale&&(pe.locale=$.locale),$.plural!==void 0&&(pe.plural=isString$5($.plural)?+$.plural:$.plural);const _e=getInterpolateArg(z,ue),Ce=le[TransrateVNodeSymbol]($.keypath,_e,pe),$e=assign$4({},ae),xe=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(xe,$e,Ce)}}};function isVNode($){return isArray$9($)&&!isString$5($[0])}function renderFormatter($,z,oe,ae){const{slots:le,attrs:ue}=z;return()=>{const pe={part:!0};let _e={};$.locale&&(pe.locale=$.locale),isString$5($.format)?pe.key=$.format:isObject$6($.format)&&(isString$5($.format.key)&&(pe.key=$.format.key),_e=Object.keys($.format).reduce((Fe,ze)=>oe.includes(ze)?assign$4({},Fe,{[ze]:$.format[ze]}):Fe,{}));const Ce=ae($.value,pe,_e);let $e=[pe.key];isArray$9(Ce)?$e=Ce.map((Fe,ze)=>{const Ue=le[Fe.type],qe=Ue?Ue({[Fe.type]:Fe.value,index:ze,parts:Ce}):[Fe.value];return isVNode(qe)&&(qe[0].key=`${Fe.type}-${ze}`),qe}):isString$5(Ce)&&($e=[Ce]);const xe=assign$4({},ue),Ie=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(Ie,xe,$e)}}const NumberFormat={name:"i18n-n",props:assign$4({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,z){const oe=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,z,NUMBER_FORMAT_OPTIONS_KEYS,(...ae)=>oe[NumberPartsSymbol](...ae))}},DatetimeFormat={name:"i18n-d",props:assign$4({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,z){const oe=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,z,DATETIME_FORMAT_OPTIONS_KEYS,(...ae)=>oe[DatetimePartsSymbol](...ae))}};function getComposer$2($,z){const oe=$;if($.mode==="composition")return oe.__getInstance(z)||$.global;{const ae=oe.__getInstance(z);return ae!=null?ae.__composer:$.global.__composer}}function vTDirective($){const z=pe=>{const{instance:_e,modifiers:Ce,value:$e}=pe;if(!_e||!_e.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const xe=getComposer$2($,_e.$),Ie=parseValue($e);return[Reflect.apply(xe.t,xe,[...makeParams(Ie)]),xe]};return{created:(pe,_e)=>{const[Ce,$e]=z(_e);inBrowser&&$.global===$e&&(pe.__i18nWatcher=watch($e.locale,()=>{_e.instance&&_e.instance.$forceUpdate()})),pe.__composer=$e,pe.textContent=Ce},unmounted:pe=>{inBrowser&&pe.__i18nWatcher&&(pe.__i18nWatcher(),pe.__i18nWatcher=void 0,delete pe.__i18nWatcher),pe.__composer&&(pe.__composer=void 0,delete pe.__composer)},beforeUpdate:(pe,{value:_e})=>{if(pe.__composer){const Ce=pe.__composer,$e=parseValue(_e);pe.textContent=Reflect.apply(Ce.t,Ce,[...makeParams($e)])}},getSSRProps:pe=>{const[_e]=z(pe);return{textContent:_e}}}}function parseValue($){if(isString$5($))return{path:$};if(isPlainObject$2($)){if(!("path"in $))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return $}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams($){const{path:z,locale:oe,args:ae,choice:le,plural:ue}=$,pe={},_e=ae||{};return isString$5(oe)&&(pe.locale=oe),isNumber$4(le)&&(pe.plural=le),isNumber$4(ue)&&(pe.plural=ue),[z,_e,pe]}function apply($,z,...oe){const ae=isPlainObject$2(oe[0])?oe[0]:{},le=!!ae.useI18nComponentName;(isBoolean$2(ae.globalInstall)?ae.globalInstall:!0)&&($.component(le?"i18n":Translation.name,Translation),$.component(NumberFormat.name,NumberFormat),$.component(DatetimeFormat.name,DatetimeFormat)),$.directive("t",vTDirective(z))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n($={},z){const oe=isBoolean$2($.globalInjection)?$.globalInjection:!0,ae=!0,le=new Map,[ue,pe]=createGlobal($),_e=makeSymbol("");function Ce(Ie){return le.get(Ie)||null}function $e(Ie,Fe){le.set(Ie,Fe)}function xe(Ie){le.delete(Ie)}{const Ie={get mode(){return"composition"},get allowComposition(){return ae},async install(Fe,...ze){Fe.__VUE_I18N_SYMBOL__=_e,Fe.provide(Fe.__VUE_I18N_SYMBOL__,Ie),oe&&injectGlobalFields(Fe,Ie.global),apply(Fe,Ie,...ze);const Ue=Fe.unmount;Fe.unmount=()=>{Ie.dispose(),Ue()}},get global(){return pe},dispose(){ue.stop()},__instances:le,__getInstance:Ce,__setInstance:$e,__deleteInstance:xe};return Ie}}function useI18n$1($={}){const z=getCurrentInstance();if(z==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!z.isCE&&z.appContext.app!=null&&!z.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSLALLED);const oe=getI18nInstance(z),ae=getGlobalComposer(oe),le=getComponentOptions(z),ue=getScope($,le);if(ue==="global")return adjustI18nResources(ae,$,le),ae;if(ue==="parent"){let Ce=getComposer(oe,z,$.__useComponent);return Ce==null&&(Ce=ae),Ce}const pe=oe;let _e=pe.__getInstance(z);if(_e==null){const Ce=assign$4({},$);"__i18n"in le&&(Ce.__i18n=le.__i18n),ae&&(Ce.__root=ae),_e=createComposer(Ce),setupLifeCycle(pe,z),pe.__setInstance(z,_e)}return _e}function createGlobal($,z,oe){const ae=effectScope();{const le=ae.run(()=>createComposer($));if(le==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[ae,le]}}function getI18nInstance($){{const z=inject($.isCE?I18nInjectionKey:$.appContext.app.__VUE_I18N_SYMBOL__);if(!z)throw createI18nError($.isCE?I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return z}}function getScope($,z){return isEmptyObject($)?"__i18n"in z?"local":"global":$.useScope?$.useScope:"local"}function getGlobalComposer($){return $.mode==="composition"?$.global:$.global.__composer}function getComposer($,z,oe=!1){let ae=null;const le=z.root;let ue=z.parent;for(;ue!=null;){const pe=$;if($.mode==="composition"&&(ae=pe.__getInstance(ue)),ae!=null||le===ue)break;ue=ue.parent}return ae}function setupLifeCycle($,z,oe){onMounted(()=>{},z),onUnmounted(()=>{$.__deleteInstance(z)},z)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields($,z){const oe=Object.create(null);globalExportProps.forEach(ae=>{const le=Object.getOwnPropertyDescriptor(z,ae);if(!le)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const ue=isRef(le.value)?{get(){return le.value.value},set(pe){le.value.value=pe}}:{get(){return le.get&&le.get()}};Object.defineProperty(oe,ae,ue)}),$.config.globalProperties.$i18n=oe,globalExportMethods.forEach(ae=>{const le=Object.getOwnPropertyDescriptor(z,ae);if(!le||!le.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty($.config.globalProperties,`$${ae}`,le)})}registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);function bind$4($,z){return function(){return $.apply(z,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=($=>z=>{const oe=toString$1.call(z);return $[oe]||($[oe]=oe.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=$=>($=$.toLowerCase(),z=>kindOf(z)===$),typeOfTest=$=>z=>typeof z===$,{isArray:isArray$8}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1($){return $!==null&&!isUndefined($)&&$.constructor!==null&&!isUndefined($.constructor)&&isFunction$1($.constructor.isBuffer)&&$.constructor.isBuffer($)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView($){let z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView($):z=$&&$.buffer&&isArrayBuffer($.buffer),z}const isString$4=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$3=typeOfTest("number"),isObject$5=$=>$!==null&&typeof $=="object",isBoolean$1=$=>$===!0||$===!1,isPlainObject$1=$=>{if(kindOf($)!=="object")return!1;const z=getPrototypeOf($);return(z===null||z===Object.prototype||Object.getPrototypeOf(z)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=$=>isObject$5($)&&isFunction$1($.pipe),isFormData=$=>{let z;return $&&(typeof FormData=="function"&&$ instanceof FormData||isFunction$1($.append)&&((z=kindOf($))==="formdata"||z==="object"&&isFunction$1($.toString)&&$.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=$=>$.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$2($,z,{allOwnKeys:oe=!1}={}){if($===null||typeof $>"u")return;let ae,le;if(typeof $!="object"&&($=[$]),isArray$8($))for(ae=0,le=$.length;ae<le;ae++)z.call(null,$[ae],ae,$);else{const ue=oe?Object.getOwnPropertyNames($):Object.keys($),pe=ue.length;let _e;for(ae=0;ae<pe;ae++)_e=ue[ae],z.call(null,$[_e],_e,$)}}function findKey($,z){z=z.toLowerCase();const oe=Object.keys($);let ae=oe.length,le;for(;ae-- >0;)if(le=oe[ae],z===le.toLowerCase())return le;return null}const _global$1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=$=>!isUndefined($)&&$!==_global$1;function merge$2(){const{caseless:$}=isContextDefined(this)&&this||{},z={},oe=(ae,le)=>{const ue=$&&findKey(z,le)||le;isPlainObject$1(z[ue])&&isPlainObject$1(ae)?z[ue]=merge$2(z[ue],ae):isPlainObject$1(ae)?z[ue]=merge$2({},ae):isArray$8(ae)?z[ue]=ae.slice():z[ue]=ae};for(let ae=0,le=arguments.length;ae<le;ae++)arguments[ae]&&forEach$2(arguments[ae],oe);return z}const extend$1=($,z,oe,{allOwnKeys:ae}={})=>(forEach$2(z,(le,ue)=>{oe&&isFunction$1(le)?$[ue]=bind$4(le,oe):$[ue]=le},{allOwnKeys:ae}),$),stripBOM=$=>($.charCodeAt(0)===65279&&($=$.slice(1)),$),inherits$1=($,z,oe,ae)=>{$.prototype=Object.create(z.prototype,ae),$.prototype.constructor=$,Object.defineProperty($,"super",{value:z.prototype}),oe&&Object.assign($.prototype,oe)},toFlatObject=($,z,oe,ae)=>{let le,ue,pe;const _e={};if(z=z||{},$==null)return z;do{for(le=Object.getOwnPropertyNames($),ue=le.length;ue-- >0;)pe=le[ue],(!ae||ae(pe,$,z))&&!_e[pe]&&(z[pe]=$[pe],_e[pe]=!0);$=oe!==!1&&getPrototypeOf($)}while($&&(!oe||oe($,z))&&$!==Object.prototype);return z},endsWith=($,z,oe)=>{$=String($),(oe===void 0||oe>$.length)&&(oe=$.length),oe-=z.length;const ae=$.indexOf(z,oe);return ae!==-1&&ae===oe},toArray$1=$=>{if(!$)return null;if(isArray$8($))return $;let z=$.length;if(!isNumber$3(z))return null;const oe=new Array(z);for(;z-- >0;)oe[z]=$[z];return oe},isTypedArray$1=($=>z=>$&&z instanceof $)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=($,z)=>{const ae=($&&$[Symbol.iterator]).call($);let le;for(;(le=ae.next())&&!le.done;){const ue=le.value;z.call($,ue[0],ue[1])}},matchAll=($,z)=>{let oe;const ae=[];for(;(oe=$.exec(z))!==null;)ae.push(oe);return ae},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=$=>$.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(oe,ae,le){return ae.toUpperCase()+le}),hasOwnProperty=(({hasOwnProperty:$})=>(z,oe)=>$.call(z,oe))(Object.prototype),isRegExp$3=kindOfTest("RegExp"),reduceDescriptors=($,z)=>{const oe=Object.getOwnPropertyDescriptors($),ae={};forEach$2(oe,(le,ue)=>{z(le,ue,$)!==!1&&(ae[ue]=le)}),Object.defineProperties($,ae)},freezeMethods=$=>{reduceDescriptors($,(z,oe)=>{if(isFunction$1($)&&["arguments","caller","callee"].indexOf(oe)!==-1)return!1;const ae=$[oe];if(isFunction$1(ae)){if(z.enumerable=!1,"writable"in z){z.writable=!1;return}z.set||(z.set=()=>{throw Error("Can not rewrite read-only method '"+oe+"'")})}})},toObjectSet=($,z)=>{const oe={},ae=le=>{le.forEach(ue=>{oe[ue]=!0})};return isArray$8($)?ae($):ae(String($).split(z)),oe},noop$4=()=>{},toFiniteNumber=($,z)=>($=+$,Number.isFinite($)?$:z),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=($=16,z=ALPHABET.ALPHA_DIGIT)=>{let oe="";const{length:ae}=z;for(;$--;)oe+=z[Math.random()*ae|0];return oe};function isSpecCompliantForm($){return!!($&&isFunction$1($.append)&&$[Symbol.toStringTag]==="FormData"&&$[Symbol.iterator])}const toJSONObject=$=>{const z=new Array(10),oe=(ae,le)=>{if(isObject$5(ae)){if(z.indexOf(ae)>=0)return;if(!("toJSON"in ae)){z[le]=ae;const ue=isArray$8(ae)?[]:{};return forEach$2(ae,(pe,_e)=>{const Ce=oe(pe,le+1);!isUndefined(Ce)&&(ue[_e]=Ce)}),z[le]=void 0,ue}}return ae};return oe($,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=$=>$&&(isObject$5($)||isFunction$1($))&&isFunction$1($.then)&&isFunction$1($.catch),utils$8={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$4,isNumber:isNumber$3,isBoolean:isBoolean$1,isObject:isObject$5,isPlainObject:isPlainObject$1,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp:isRegExp$3,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach:forEach$2,merge:merge$2,extend:extend$1,trim:trim$2,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$4,toFiniteNumber,findKey,global:_global$1,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError($,z,oe,ae,le){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=$,this.name="AxiosError",z&&(this.code=z),oe&&(this.config=oe),ae&&(this.request=ae),le&&(this.response=le)}utils$8.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$8.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach($=>{descriptors[$]={value:$}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=($,z,oe,ae,le,ue)=>{const pe=Object.create(prototype$1);return utils$8.toFlatObject($,pe,function(Ce){return Ce!==Error.prototype},_e=>_e!=="isAxiosError"),AxiosError.call(pe,$.message,z,oe,ae,le),pe.cause=$,pe.name=$.name,ue&&Object.assign(pe,ue),pe};const httpAdapter=null;function isVisitable($){return utils$8.isPlainObject($)||utils$8.isArray($)}function removeBrackets($){return utils$8.endsWith($,"[]")?$.slice(0,-2):$}function renderKey($,z,oe){return $?$.concat(z).map(function(le,ue){return le=removeBrackets(le),!oe&&ue?"["+le+"]":le}).join(oe?".":""):z}function isFlatArray($){return utils$8.isArray($)&&!$.some(isVisitable)}const predicates=utils$8.toFlatObject(utils$8,{},null,function(z){return/^is[A-Z]/.test(z)});function toFormData($,z,oe){if(!utils$8.isObject($))throw new TypeError("target must be an object");z=z||new FormData,oe=utils$8.toFlatObject(oe,{metaTokens:!0,dots:!1,indexes:!1},!1,function(qe,At){return!utils$8.isUndefined(At[qe])});const ae=oe.metaTokens,le=oe.visitor||xe,ue=oe.dots,pe=oe.indexes,Ce=(oe.Blob||typeof Blob<"u"&&Blob)&&utils$8.isSpecCompliantForm(z);if(!utils$8.isFunction(le))throw new TypeError("visitor must be a function");function $e(Ue){if(Ue===null)return"";if(utils$8.isDate(Ue))return Ue.toISOString();if(!Ce&&utils$8.isBlob(Ue))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$8.isArrayBuffer(Ue)||utils$8.isTypedArray(Ue)?Ce&&typeof Blob=="function"?new Blob([Ue]):Buffer.from(Ue):Ue}function xe(Ue,qe,At){let Lt=Ue;if(Ue&&!At&&typeof Ue=="object"){if(utils$8.endsWith(qe,"{}"))qe=ae?qe:qe.slice(0,-2),Ue=JSON.stringify(Ue);else if(utils$8.isArray(Ue)&&isFlatArray(Ue)||(utils$8.isFileList(Ue)||utils$8.endsWith(qe,"[]"))&&(Lt=utils$8.toArray(Ue)))return qe=removeBrackets(qe),Lt.forEach(function(vn,_n){!(utils$8.isUndefined(vn)||vn===null)&&z.append(pe===!0?renderKey([qe],_n,ue):pe===null?qe:qe+"[]",$e(vn))}),!1}return isVisitable(Ue)?!0:(z.append(renderKey(At,qe,ue),$e(Ue)),!1)}const Ie=[],Fe=Object.assign(predicates,{defaultVisitor:xe,convertValue:$e,isVisitable});function ze(Ue,qe){if(!utils$8.isUndefined(Ue)){if(Ie.indexOf(Ue)!==-1)throw Error("Circular reference detected in "+qe.join("."));Ie.push(Ue),utils$8.forEach(Ue,function(Lt,hn){(!(utils$8.isUndefined(Lt)||Lt===null)&&le.call(z,Lt,utils$8.isString(hn)?hn.trim():hn,qe,Fe))===!0&&ze(Lt,qe?qe.concat(hn):[hn])}),Ie.pop()}}if(!utils$8.isObject($))throw new TypeError("data must be an object");return ze($),z}function encode$2($){const z={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(ae){return z[ae]})}function AxiosURLSearchParams($,z){this._pairs=[],$&&toFormData($,this,z)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(z,oe){this._pairs.push([z,oe])};prototype.toString=function(z){const oe=z?function(ae){return z.call(this,ae,encode$2)}:encode$2;return this._pairs.map(function(le){return oe(le[0])+"="+oe(le[1])},"").join("&")};function encode$1($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL($,z,oe){if(!z)return $;const ae=oe&&oe.encode||encode$1,le=oe&&oe.serialize;let ue;if(le?ue=le(z,oe):ue=utils$8.isURLSearchParams(z)?z.toString():new AxiosURLSearchParams(z,oe).toString(ae),ue){const pe=$.indexOf("#");pe!==-1&&($=$.slice(0,pe)),$+=($.indexOf("?")===-1?"?":"&")+ue}return $}class InterceptorManager{constructor(){this.handlers=[]}use(z,oe,ae){return this.handlers.push({fulfilled:z,rejected:oe,synchronous:ae?ae.synchronous:!1,runWhen:ae?ae.runWhen:null}),this.handlers.length-1}eject(z){this.handlers[z]&&(this.handlers[z]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(z){utils$8.forEach(this.handlers,function(ae){ae!==null&&z(ae)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let $;return typeof navigator<"u"&&(($=navigator.product)==="ReactNative"||$==="NativeScript"||$==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm($,z){return toFormData($,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(oe,ae,le,ue){return platform$1.isNode&&utils$8.isBuffer(oe)?(this.append(ae,oe.toString("base64")),!1):ue.defaultVisitor.apply(this,arguments)}},z))}function parsePropPath($){return utils$8.matchAll(/\w+|\[(\w*)]/g,$).map(z=>z[0]==="[]"?"":z[1]||z[0])}function arrayToObject$1($){const z={},oe=Object.keys($);let ae;const le=oe.length;let ue;for(ae=0;ae<le;ae++)ue=oe[ae],z[ue]=$[ue];return z}function formDataToJSON($){function z(oe,ae,le,ue){let pe=oe[ue++];const _e=Number.isFinite(+pe),Ce=ue>=oe.length;return pe=!pe&&utils$8.isArray(le)?le.length:pe,Ce?(utils$8.hasOwnProp(le,pe)?le[pe]=[le[pe],ae]:le[pe]=ae,!_e):((!le[pe]||!utils$8.isObject(le[pe]))&&(le[pe]=[]),z(oe,ae,le[pe],ue)&&utils$8.isArray(le[pe])&&(le[pe]=arrayToObject$1(le[pe])),!_e)}if(utils$8.isFormData($)&&utils$8.isFunction($.entries)){const oe={};return utils$8.forEachEntry($,(ae,le)=>{z(parsePropPath(ae),le,oe,0)}),oe}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely($,z,oe){if(utils$8.isString($))try{return(z||JSON.parse)($),utils$8.trim($)}catch(ae){if(ae.name!=="SyntaxError")throw ae}return(oe||JSON.stringify)($)}const defaults$3={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(z,oe){const ae=oe.getContentType()||"",le=ae.indexOf("application/json")>-1,ue=utils$8.isObject(z);if(ue&&utils$8.isHTMLForm(z)&&(z=new FormData(z)),utils$8.isFormData(z))return le&&le?JSON.stringify(formDataToJSON(z)):z;if(utils$8.isArrayBuffer(z)||utils$8.isBuffer(z)||utils$8.isStream(z)||utils$8.isFile(z)||utils$8.isBlob(z))return z;if(utils$8.isArrayBufferView(z))return z.buffer;if(utils$8.isURLSearchParams(z))return oe.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),z.toString();let _e;if(ue){if(ae.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(z,this.formSerializer).toString();if((_e=utils$8.isFileList(z))||ae.indexOf("multipart/form-data")>-1){const Ce=this.env&&this.env.FormData;return toFormData(_e?{"files[]":z}:z,Ce&&new Ce,this.formSerializer)}}return ue||le?(oe.setContentType("application/json",!1),stringifySafely(z)):z}],transformResponse:[function(z){const oe=this.transitional||defaults$3.transitional,ae=oe&&oe.forcedJSONParsing,le=this.responseType==="json";if(z&&utils$8.isString(z)&&(ae&&!this.responseType||le)){const pe=!(oe&&oe.silentJSONParsing)&≤try{return JSON.parse(z)}catch(_e){if(pe)throw _e.name==="SyntaxError"?AxiosError.from(_e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):_e}}return z}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$1.classes.FormData,Blob:platform$1.classes.Blob},validateStatus:function(z){return z>=200&&z<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$8.forEach(["delete","get","head"],function(z){defaults$3.headers[z]={}});utils$8.forEach(["post","put","patch"],function(z){defaults$3.headers[z]=utils$8.merge(DEFAULT_CONTENT_TYPE)});const defaults$4=defaults$3,ignoreDuplicateOf=utils$8.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=$=>{const z={};let oe,ae,le;return $&&$.split(`
|
||
`).forEach(function(pe){le=pe.indexOf(":"),oe=pe.substring(0,le).trim().toLowerCase(),ae=pe.substring(le+1).trim(),!(!oe||z[oe]&&ignoreDuplicateOf[oe])&&(oe==="set-cookie"?z[oe]?z[oe].push(ae):z[oe]=[ae]:z[oe]=z[oe]?z[oe]+", "+ae:ae)}),z},$internals=Symbol("internals");function normalizeHeader($){return $&&String($).trim().toLowerCase()}function normalizeValue($){return $===!1||$==null?$:utils$8.isArray($)?$.map(normalizeValue):String($)}function parseTokens($){const z=Object.create(null),oe=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ae;for(;ae=oe.exec($);)z[ae[1]]=ae[2];return z}const isValidHeaderName=$=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());function matchHeaderValue($,z,oe,ae,le){if(utils$8.isFunction(ae))return ae.call(this,z,oe);if(le&&(z=oe),!!utils$8.isString(z)){if(utils$8.isString(ae))return z.indexOf(ae)!==-1;if(utils$8.isRegExp(ae))return ae.test(z)}}function formatHeader($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(z,oe,ae)=>oe.toUpperCase()+ae)}function buildAccessors($,z){const oe=utils$8.toCamelCase(" "+z);["get","set","has"].forEach(ae=>{Object.defineProperty($,ae+oe,{value:function(le,ue,pe){return this[ae].call(this,z,le,ue,pe)},configurable:!0})})}class AxiosHeaders{constructor(z){z&&this.set(z)}set(z,oe,ae){const le=this;function ue(_e,Ce,$e){const xe=normalizeHeader(Ce);if(!xe)throw new Error("header name must be a non-empty string");const Ie=utils$8.findKey(le,xe);(!Ie||le[Ie]===void 0||$e===!0||$e===void 0&&le[Ie]!==!1)&&(le[Ie||Ce]=normalizeValue(_e))}const pe=(_e,Ce)=>utils$8.forEach(_e,($e,xe)=>ue($e,xe,Ce));return utils$8.isPlainObject(z)||z instanceof this.constructor?pe(z,oe):utils$8.isString(z)&&(z=z.trim())&&!isValidHeaderName(z)?pe(parseHeaders(z),oe):z!=null&&ue(oe,z,ae),this}get(z,oe){if(z=normalizeHeader(z),z){const ae=utils$8.findKey(this,z);if(ae){const le=this[ae];if(!oe)return le;if(oe===!0)return parseTokens(le);if(utils$8.isFunction(oe))return oe.call(this,le,ae);if(utils$8.isRegExp(oe))return oe.exec(le);throw new TypeError("parser must be boolean|regexp|function")}}}has(z,oe){if(z=normalizeHeader(z),z){const ae=utils$8.findKey(this,z);return!!(ae&&this[ae]!==void 0&&(!oe||matchHeaderValue(this,this[ae],ae,oe)))}return!1}delete(z,oe){const ae=this;let le=!1;function ue(pe){if(pe=normalizeHeader(pe),pe){const _e=utils$8.findKey(ae,pe);_e&&(!oe||matchHeaderValue(ae,ae[_e],_e,oe))&&(delete ae[_e],le=!0)}}return utils$8.isArray(z)?z.forEach(ue):ue(z),le}clear(z){const oe=Object.keys(this);let ae=oe.length,le=!1;for(;ae--;){const ue=oe[ae];(!z||matchHeaderValue(this,this[ue],ue,z,!0))&&(delete this[ue],le=!0)}return le}normalize(z){const oe=this,ae={};return utils$8.forEach(this,(le,ue)=>{const pe=utils$8.findKey(ae,ue);if(pe){oe[pe]=normalizeValue(le),delete oe[ue];return}const _e=z?formatHeader(ue):String(ue).trim();_e!==ue&&delete oe[ue],oe[_e]=normalizeValue(le),ae[_e]=!0}),this}concat(...z){return this.constructor.concat(this,...z)}toJSON(z){const oe=Object.create(null);return utils$8.forEach(this,(ae,le)=>{ae!=null&&ae!==!1&&(oe[le]=z&&utils$8.isArray(ae)?ae.join(", "):ae)}),oe}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([z,oe])=>z+": "+oe).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(z){return z instanceof this?z:new this(z)}static concat(z,...oe){const ae=new this(z);return oe.forEach(le=>ae.set(le)),ae}static accessor(z){const ae=(this[$internals]=this[$internals]={accessors:{}}).accessors,le=this.prototype;function ue(pe){const _e=normalizeHeader(pe);ae[_e]||(buildAccessors(le,pe),ae[_e]=!0)}return utils$8.isArray(z)?z.forEach(ue):ue(z),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$8.freezeMethods(AxiosHeaders.prototype);utils$8.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData($,z){const oe=this||defaults$4,ae=z||oe,le=AxiosHeaders$1.from(ae.headers);let ue=ae.data;return utils$8.forEach($,function(_e){ue=_e.call(oe,ue,le.normalize(),z?z.status:void 0)}),le.normalize(),ue}function isCancel($){return!!($&&$.__CANCEL__)}function CanceledError($,z,oe){AxiosError.call(this,$??"canceled",AxiosError.ERR_CANCELED,z,oe),this.name="CanceledError"}utils$8.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle($,z,oe){const ae=oe.config.validateStatus;!oe.status||!ae||ae(oe.status)?$(oe):z(new AxiosError("Request failed with status code "+oe.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(oe.status/100)-4],oe.config,oe.request,oe))}const cookies=platform$1.isStandardBrowserEnv?function(){return{write:function(oe,ae,le,ue,pe,_e){const Ce=[];Ce.push(oe+"="+encodeURIComponent(ae)),utils$8.isNumber(le)&&Ce.push("expires="+new Date(le).toGMTString()),utils$8.isString(ue)&&Ce.push("path="+ue),utils$8.isString(pe)&&Ce.push("domain="+pe),_e===!0&&Ce.push("secure"),document.cookie=Ce.join("; ")},read:function(oe){const ae=document.cookie.match(new RegExp("(^|;\\s*)("+oe+")=([^;]*)"));return ae?decodeURIComponent(ae[3]):null},remove:function(oe){this.write(oe,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL($){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}function combineURLs($,z){return z?$.replace(/\/+$/,"")+"/"+z.replace(/^\/+/,""):$}function buildFullPath($,z){return $&&!isAbsoluteURL(z)?combineURLs($,z):z}const isURLSameOrigin=platform$1.isStandardBrowserEnv?function(){const z=/(msie|trident)/i.test(navigator.userAgent),oe=document.createElement("a");let ae;function le(ue){let pe=ue;return z&&(oe.setAttribute("href",pe),pe=oe.href),oe.setAttribute("href",pe),{href:oe.href,protocol:oe.protocol?oe.protocol.replace(/:$/,""):"",host:oe.host,search:oe.search?oe.search.replace(/^\?/,""):"",hash:oe.hash?oe.hash.replace(/^#/,""):"",hostname:oe.hostname,port:oe.port,pathname:oe.pathname.charAt(0)==="/"?oe.pathname:"/"+oe.pathname}}return ae=le(window.location.href),function(pe){const _e=utils$8.isString(pe)?le(pe):pe;return _e.protocol===ae.protocol&&_e.host===ae.host}}():function(){return function(){return!0}}();function parseProtocol($){const z=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return z&&z[1]||""}function speedometer($,z){$=$||10;const oe=new Array($),ae=new Array($);let le=0,ue=0,pe;return z=z!==void 0?z:1e3,function(Ce){const $e=Date.now(),xe=ae[ue];pe||(pe=$e),oe[le]=Ce,ae[le]=$e;let Ie=ue,Fe=0;for(;Ie!==le;)Fe+=oe[Ie++],Ie=Ie%$;if(le=(le+1)%$,le===ue&&(ue=(ue+1)%$),$e-pe<z)return;const ze=xe&&$e-xe;return ze?Math.round(Fe*1e3/ze):void 0}}function progressEventReducer($,z){let oe=0;const ae=speedometer(50,250);return le=>{const ue=le.loaded,pe=le.lengthComputable?le.total:void 0,_e=ue-oe,Ce=ae(_e),$e=ue<=pe;oe=ue;const xe={loaded:ue,total:pe,progress:pe?ue/pe:void 0,bytes:_e,rate:Ce||void 0,estimated:Ce&&pe&&$e?(pe-ue)/Ce:void 0,event:le};xe[z?"download":"upload"]=!0,$(xe)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function($){return new Promise(function(oe,ae){let le=$.data;const ue=AxiosHeaders$1.from($.headers).normalize(),pe=$.responseType;let _e;function Ce(){$.cancelToken&&$.cancelToken.unsubscribe(_e),$.signal&&$.signal.removeEventListener("abort",_e)}utils$8.isFormData(le)&&(platform$1.isStandardBrowserEnv||platform$1.isStandardBrowserWebWorkerEnv?ue.setContentType(!1):ue.setContentType("multipart/form-data;",!1));let $e=new XMLHttpRequest;if($.auth){const ze=$.auth.username||"",Ue=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";ue.set("Authorization","Basic "+btoa(ze+":"+Ue))}const xe=buildFullPath($.baseURL,$.url);$e.open($.method.toUpperCase(),buildURL(xe,$.params,$.paramsSerializer),!0),$e.timeout=$.timeout;function Ie(){if(!$e)return;const ze=AxiosHeaders$1.from("getAllResponseHeaders"in $e&&$e.getAllResponseHeaders()),qe={data:!pe||pe==="text"||pe==="json"?$e.responseText:$e.response,status:$e.status,statusText:$e.statusText,headers:ze,config:$,request:$e};settle(function(Lt){oe(Lt),Ce()},function(Lt){ae(Lt),Ce()},qe),$e=null}if("onloadend"in $e?$e.onloadend=Ie:$e.onreadystatechange=function(){!$e||$e.readyState!==4||$e.status===0&&!($e.responseURL&&$e.responseURL.indexOf("file:")===0)||setTimeout(Ie)},$e.onabort=function(){$e&&(ae(new AxiosError("Request aborted",AxiosError.ECONNABORTED,$,$e)),$e=null)},$e.onerror=function(){ae(new AxiosError("Network Error",AxiosError.ERR_NETWORK,$,$e)),$e=null},$e.ontimeout=function(){let Ue=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded";const qe=$.transitional||transitionalDefaults;$.timeoutErrorMessage&&(Ue=$.timeoutErrorMessage),ae(new AxiosError(Ue,qe.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,$,$e)),$e=null},platform$1.isStandardBrowserEnv){const ze=($.withCredentials||isURLSameOrigin(xe))&&$.xsrfCookieName&&cookies.read($.xsrfCookieName);ze&&ue.set($.xsrfHeaderName,ze)}le===void 0&&ue.setContentType(null),"setRequestHeader"in $e&&utils$8.forEach(ue.toJSON(),function(Ue,qe){$e.setRequestHeader(qe,Ue)}),utils$8.isUndefined($.withCredentials)||($e.withCredentials=!!$.withCredentials),pe&&pe!=="json"&&($e.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&$e.addEventListener("progress",progressEventReducer($.onDownloadProgress,!0)),typeof $.onUploadProgress=="function"&&$e.upload&&$e.upload.addEventListener("progress",progressEventReducer($.onUploadProgress)),($.cancelToken||$.signal)&&(_e=ze=>{$e&&(ae(!ze||ze.type?new CanceledError(null,$,$e):ze),$e.abort(),$e=null)},$.cancelToken&&$.cancelToken.subscribe(_e),$.signal&&($.signal.aborted?_e():$.signal.addEventListener("abort",_e)));const Fe=parseProtocol(xe);if(Fe&&platform$1.protocols.indexOf(Fe)===-1){ae(new AxiosError("Unsupported protocol "+Fe+":",AxiosError.ERR_BAD_REQUEST,$));return}$e.send(le||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$8.forEach(knownAdapters,($,z)=>{if($){try{Object.defineProperty($,"name",{value:z})}catch{}Object.defineProperty($,"adapterName",{value:z})}});const adapters={getAdapter:$=>{$=utils$8.isArray($)?$:[$];const{length:z}=$;let oe,ae;for(let le=0;le<z&&(oe=$[le],!(ae=utils$8.isString(oe)?knownAdapters[oe.toLowerCase()]:oe));le++);if(!ae)throw ae===!1?new AxiosError(`Adapter ${oe} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(utils$8.hasOwnProp(knownAdapters,oe)?`Adapter '${oe}' is not available in the build`:`Unknown adapter '${oe}'`);if(!utils$8.isFunction(ae))throw new TypeError("adapter is not a function");return ae},adapters:knownAdapters};function throwIfCancellationRequested($){if($.cancelToken&&$.cancelToken.throwIfRequested(),$.signal&&$.signal.aborted)throw new CanceledError(null,$)}function dispatchRequest($){return throwIfCancellationRequested($),$.headers=AxiosHeaders$1.from($.headers),$.data=transformData.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1&&$.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter($.adapter||defaults$4.adapter)($).then(function(ae){return throwIfCancellationRequested($),ae.data=transformData.call($,$.transformResponse,ae),ae.headers=AxiosHeaders$1.from(ae.headers),ae},function(ae){return isCancel(ae)||(throwIfCancellationRequested($),ae&&ae.response&&(ae.response.data=transformData.call($,$.transformResponse,ae.response),ae.response.headers=AxiosHeaders$1.from(ae.response.headers))),Promise.reject(ae)})}const headersToObject=$=>$ instanceof AxiosHeaders$1?$.toJSON():$;function mergeConfig($,z){z=z||{};const oe={};function ae($e,xe,Ie){return utils$8.isPlainObject($e)&&utils$8.isPlainObject(xe)?utils$8.merge.call({caseless:Ie},$e,xe):utils$8.isPlainObject(xe)?utils$8.merge({},xe):utils$8.isArray(xe)?xe.slice():xe}function le($e,xe,Ie){if(utils$8.isUndefined(xe)){if(!utils$8.isUndefined($e))return ae(void 0,$e,Ie)}else return ae($e,xe,Ie)}function ue($e,xe){if(!utils$8.isUndefined(xe))return ae(void 0,xe)}function pe($e,xe){if(utils$8.isUndefined(xe)){if(!utils$8.isUndefined($e))return ae(void 0,$e)}else return ae(void 0,xe)}function _e($e,xe,Ie){if(Ie in z)return ae($e,xe);if(Ie in $)return ae(void 0,$e)}const Ce={url:ue,method:ue,data:ue,baseURL:pe,transformRequest:pe,transformResponse:pe,paramsSerializer:pe,timeout:pe,timeoutMessage:pe,withCredentials:pe,adapter:pe,responseType:pe,xsrfCookieName:pe,xsrfHeaderName:pe,onUploadProgress:pe,onDownloadProgress:pe,decompress:pe,maxContentLength:pe,maxBodyLength:pe,beforeRedirect:pe,transport:pe,httpAgent:pe,httpsAgent:pe,cancelToken:pe,socketPath:pe,responseEncoding:pe,validateStatus:_e,headers:($e,xe)=>le(headersToObject($e),headersToObject(xe),!0)};return utils$8.forEach(Object.keys(Object.assign({},$,z)),function(xe){const Ie=Ce[xe]||le,Fe=Ie($[xe],z[xe],xe);utils$8.isUndefined(Fe)&&Ie!==_e||(oe[xe]=Fe)}),oe}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach(($,z)=>{validators$1[$]=function(ae){return typeof ae===$||"a"+(z<1?"n ":" ")+$}});const deprecatedWarnings={};validators$1.transitional=function(z,oe,ae){function le(ue,pe){return"[Axios v"+VERSION+"] Transitional option '"+ue+"'"+pe+(ae?". "+ae:"")}return(ue,pe,_e)=>{if(z===!1)throw new AxiosError(le(pe," has been removed"+(oe?" in "+oe:"")),AxiosError.ERR_DEPRECATED);return oe&&!deprecatedWarnings[pe]&&(deprecatedWarnings[pe]=!0,console.warn(le(pe," has been deprecated since v"+oe+" and will be removed in the near future"))),z?z(ue,pe,_e):!0}};function assertOptions($,z,oe){if(typeof $!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ae=Object.keys($);let le=ae.length;for(;le-- >0;){const ue=ae[le],pe=z[ue];if(pe){const _e=$[ue],Ce=_e===void 0||pe(_e,ue,$);if(Ce!==!0)throw new AxiosError("option "+ue+" must be "+Ce,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(oe!==!0)throw new AxiosError("Unknown option "+ue,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(z){this.defaults=z,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(z,oe){typeof z=="string"?(oe=oe||{},oe.url=z):oe=z||{},oe=mergeConfig(this.defaults,oe);const{transitional:ae,paramsSerializer:le,headers:ue}=oe;ae!==void 0&&validator.assertOptions(ae,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),le!=null&&(utils$8.isFunction(le)?oe.paramsSerializer={serialize:le}:validator.assertOptions(le,{encode:validators.function,serialize:validators.function},!0)),oe.method=(oe.method||this.defaults.method||"get").toLowerCase();let pe;pe=ue&&utils$8.merge(ue.common,ue[oe.method]),pe&&utils$8.forEach(["delete","get","head","post","put","patch","common"],Ue=>{delete ue[Ue]}),oe.headers=AxiosHeaders$1.concat(pe,ue);const _e=[];let Ce=!0;this.interceptors.request.forEach(function(qe){typeof qe.runWhen=="function"&&qe.runWhen(oe)===!1||(Ce=Ce&&qe.synchronous,_e.unshift(qe.fulfilled,qe.rejected))});const $e=[];this.interceptors.response.forEach(function(qe){$e.push(qe.fulfilled,qe.rejected)});let xe,Ie=0,Fe;if(!Ce){const Ue=[dispatchRequest.bind(this),void 0];for(Ue.unshift.apply(Ue,_e),Ue.push.apply(Ue,$e),Fe=Ue.length,xe=Promise.resolve(oe);Ie<Fe;)xe=xe.then(Ue[Ie++],Ue[Ie++]);return xe}Fe=_e.length;let ze=oe;for(Ie=0;Ie<Fe;){const Ue=_e[Ie++],qe=_e[Ie++];try{ze=Ue(ze)}catch(At){qe.call(this,At);break}}try{xe=dispatchRequest.call(this,ze)}catch(Ue){return Promise.reject(Ue)}for(Ie=0,Fe=$e.length;Ie<Fe;)xe=xe.then($e[Ie++],$e[Ie++]);return xe}getUri(z){z=mergeConfig(this.defaults,z);const oe=buildFullPath(z.baseURL,z.url);return buildURL(oe,z.params,z.paramsSerializer)}}utils$8.forEach(["delete","get","head","options"],function(z){Axios.prototype[z]=function(oe,ae){return this.request(mergeConfig(ae||{},{method:z,url:oe,data:(ae||{}).data}))}});utils$8.forEach(["post","put","patch"],function(z){function oe(ae){return function(ue,pe,_e){return this.request(mergeConfig(_e||{},{method:z,headers:ae?{"Content-Type":"multipart/form-data"}:{},url:ue,data:pe}))}}Axios.prototype[z]=oe(),Axios.prototype[z+"Form"]=oe(!0)});const Axios$1=Axios;class CancelToken{constructor(z){if(typeof z!="function")throw new TypeError("executor must be a function.");let oe;this.promise=new Promise(function(ue){oe=ue});const ae=this;this.promise.then(le=>{if(!ae._listeners)return;let ue=ae._listeners.length;for(;ue-- >0;)ae._listeners[ue](le);ae._listeners=null}),this.promise.then=le=>{let ue;const pe=new Promise(_e=>{ae.subscribe(_e),ue=_e}).then(le);return pe.cancel=function(){ae.unsubscribe(ue)},pe},z(function(ue,pe,_e){ae.reason||(ae.reason=new CanceledError(ue,pe,_e),oe(ae.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(z){if(this.reason){z(this.reason);return}this._listeners?this._listeners.push(z):this._listeners=[z]}unsubscribe(z){if(!this._listeners)return;const oe=this._listeners.indexOf(z);oe!==-1&&this._listeners.splice(oe,1)}static source(){let z;return{token:new CancelToken(function(le){z=le}),cancel:z}}}const CancelToken$1=CancelToken;function spread($){return function(oe){return $.apply(null,oe)}}function isAxiosError($){return utils$8.isObject($)&&$.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([$,z])=>{HttpStatusCode[z]=$});const HttpStatusCode$1=HttpStatusCode;function createInstance($){const z=new Axios$1($),oe=bind$4(Axios$1.prototype.request,z);return utils$8.extend(oe,Axios$1.prototype,z,{allOwnKeys:!0}),utils$8.extend(oe,z,null,{allOwnKeys:!0}),oe.create=function(le){return createInstance(mergeConfig($,le))},oe}const axios=createInstance(defaults$4);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(z){return Promise.all(z)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=$=>formDataToJSON(utils$8.isHTMLForm($)?new FormData($):$);axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;let config={};const{VITE_PUBLIC_PATH}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},setConfig=$=>{config=Object.assign(config,$)},getConfig=$=>{if(typeof $=="string"){const z=$.split(".");if(z&&z.length){let oe=config;return z.forEach(ae=>{oe&&typeof oe[ae]<"u"?oe=oe[ae]:oe=null}),oe}}return config},getServerConfig=async $=>($.config.globalProperties.$config=getConfig(),axios$1({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:z})=>{let oe=$.config.globalProperties.$config;return $&&oe&&typeof z=="object"&&(oe=Object.assign(oe,z),$.config.globalProperties.$config=oe,setConfig(oe)),oe}).catch(()=>{throw"请在public文件夹下添加serverConfig.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n($="zh-CN"){return Object.fromEntries(Object.entries(Object.assign({"../../locales/en.yaml":__vite_glob_0_0$2,"../../locales/zh-CN.yaml":__vite_glob_0_1$2})).map(([z,oe])=>[z.match(/([A-Za-z0-9-_]+)\./i)[1],oe.default]))[$]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhLocale},en:{...siphonI18n("en"),...enLocale}};function transformI18n($=""){var oe;if(!$)return"";if(typeof $=="object"){const ae=i18n.global.locale;return $[ae==null?void 0:ae.value]}const z=(oe=$.match(/(\S*)\./))==null?void 0:oe[1];return z&&Object.keys(siphonI18n("zh-CN")).includes(z)||!z&&Object.keys(siphonI18n("zh-CN")).includes($)?i18n.global.t.call(i18n.global.locale,$):$}const $t=$=>$;var Jo;const i18n=createI18n({legacy:!1,locale:((Jo=Kn().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:Jo.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n($){$.use(i18n)}const home$1=0,doc=1,utils$7=2,table$1=3,components$1=4,able$1=5,frame$1=6,nested$1=7,result$1=8,error$1=9,list$2=10,permission=11,system$1=12,tabs=13,formdesign$1=14,flowchart$1=15,ppt$1=16,editor$1=17,guide$1=18,menuoverflow$1=19,about$1=20,able={path:"/able",redirect:"/able/watermark",meta:{icon:"ubuntuFill",title:$t("menus.hsAble"),rank:able$1},children:[{path:"/able/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark-0694701e.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-82596a6e.js"),["static/js/print-82596a6e.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-6e09f980.js","static/js/app-bdb35527.js","static/css/print-8831c8b6.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-78399909.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-1b0b8855.js"),["static/js/icon-select-1b0b8855.js","static/css/icon-select-e8efdfdc.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-6bf7ffe6.js"),["static/js/timeline-6bf7ffe6.js","static/js/index-7bee6064.js","static/css/index-18417f34.css","static/js/hooks-f16ca4cf.js","static/js/iphone-bcaa848c.js","static/css/timeline-12434188.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree-6202e316.js"),["static/js/menu-tree-6202e316.js","static/js/hooks-f16ca4cf.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-e976d44a.js"),["static/js/line-tree-e976d44a.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-a18596cf.js"),["static/js/debounce-a18596cf.js","static/js/message-5d48ae52.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-09c07f75.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-cb8ba5f0.js"),["static/js/qrcode-cb8ba5f0.js","static/js/message-5d48ae52.js","static/js/index-09ba896a.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader-9e55487b.js"),["static/js/cascader-9e55487b.js","static/css/cascader-843853c0.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-badfcc35.js"),["static/js/swiper-badfcc35.js","static/css/swiper-4182dcb7.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-1fa4fbb0.js"),["static/js/index-1fa4fbb0.js","static/js/vertical-698eb733.js","static/js/vue-virtual-scroller.esm-d5446ad4.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-35034ca3.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf-c0e096b8.js"),["static/js/pdf-c0e096b8.js","static/js/vue.runtime.esm-bundler-51ffd45f.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-757ee399.js"),["static/js/execl-757ee399.js","static/js/xlsx-f5126985.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-2b66ae46.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:able},Symbol.toStringTag,{value:"Module"})),about={path:"/about",redirect:"/about/index",meta:{title:$t("menus.hsAbout"),rank:about$1},children:[{path:"/about/index",name:"About",component:()=>__vitePreload(()=>import("./index-c2bcea2c.js"),["static/js/index-c2bcea2c.js","static/js/columns-56fd8ed3.js","static/css/index-cb8197dd.css"]),meta:{title:$t("menus.hsAbout")}}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:about},Symbol.toStringTag,{value:"Module"})),components={path:"/components",redirect:"/components/dialog",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"DialogPage",component:()=>__vitePreload(()=>import("./index-50065f80.js"),["static/js/index-50065f80.js","static/js/message-5d48ae52.js","static/js/form.vue_vue_type_script_setup_true_lang-e496182b.js"]),meta:{title:$t("menus.hsdialog"),extraIcon:"IF-pure-iconfont-new svg",transition:{enterTransition:"animate__fadeInLeft",leaveTransition:"animate__fadeOutRight"}}},{path:"/components/message",name:"Message",component:()=>__vitePreload(()=>import("./index-05231cad.js"),["static/js/index-05231cad.js","static/js/message-5d48ae52.js","static/js/hooks-f16ca4cf.js","static/js/check-3815600c.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/segmented",name:"Segmented",component:()=>__vitePreload(()=>import("./index-de118945.js"),["static/js/index-de118945.js","static/js/message-5d48ae52.js","static/js/home-filled-05cc090c.js","static/js/hooks-f16ca4cf.js","static/css/index-fa517f4b.css"]),meta:{title:$t("menus.hssegmented"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/waterfall",name:"Waterfall",component:()=>__vitePreload(()=>import("./index-0aa47116.js"),["static/js/index-0aa47116.js","static/js/back_top-18fdcea3.js","static/css/index-d102724b.css"]),meta:{title:$t("menus.hswaterfall"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/video",name:"VideoPage",component:()=>__vitePreload(()=>import("./index-e83b2a0a.js"),["static/js/index-e83b2a0a.js","static/js/hooks-f16ca4cf.js","static/css/index-12dd4e77.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"MapPage",component:()=>__vitePreload(()=>import("./index-929ad8fe.js"),["static/js/index-929ad8fe.js","static/css/index-c6f744fa.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index-e2e67572.js"),["static/js/index-e2e67572.js","static/js/sortable.esm-e674cde8.js","static/js/app-bdb35527.js","static/js/hooks-f16ca4cf.js","static/css/index-b2ddca14.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index-0b1299db.js"),["static/js/index-0b1299db.js","static/css/index-e0a7f2a0.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"ButtonPage",component:()=>__vitePreload(()=>import("./index-36a619d1.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-6bded8fc.js"),["static/js/index-6bded8fc.js","static/css/index-fdfcfa11.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-02616a9c.js"),["static/js/index-02616a9c.js","static/js/propTypes-3b04af70.js","static/css/index-a129e600.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index-5420a738.js"),["static/js/index-5420a738.js","static/css/index-ea4ab5c7.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-074ee1e4.js"),["static/js/index-074ee1e4.js","static/js/index-70c4c0c6.js","static/css/index-53a917f7.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-d8eb7132.js"),["static/js/index-d8eb7132.js","static/js/basic-cf1fac86.js","static/js/index.esm-07ba7d67.js","static/css/basic-d842f1a0.css","static/js/menuGroup-b1c7bbe4.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-b455178c.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index-0fd2572e.js"),["static/js/index-0fd2572e.js","static/js/index-71ff165a.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-2f47cbab.js"),["static/js/index-2f47cbab.js","static/js/styles-a1771eb6.js","static/js/vue.runtime.esm-bundler-51ffd45f.js","static/css/styles-670012e0.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index-76f71804.js"),["static/js/index-76f71804.js","static/css/index-14392f45.css"]),meta:{title:$t("menus.hsdanmaku")}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:components},Symbol.toStringTag,{value:"Module"})),editor={path:"/editor",redirect:"/editor/index",meta:{icon:"edit",title:$t("menus.hseditor"),rank:editor$1},children:[{path:"/editor/index",name:"Editor",component:()=>__vitePreload(()=>import("./index-e47eedee.js"),["static/js/index-e47eedee.js","static/js/base.vue_vue_type_script_setup_true_lang-f64ef53f.js","static/js/index.esm-3141d836.js","static/css/index-f38a3df6.css","static/js/multi.vue_vue_type_script_setup_true_lang-434c613d.js","static/js/index-0ccbec8c.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-4b0a1ce3.js","static/css/index-2bb08053.css"]),meta:{title:$t("menus.hseditor"),keepAlive:!0}}]},__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:editor},Symbol.toStringTag,{value:"Module"})),error={path:"/error",redirect:"/error/403",meta:{icon:"informationLine",title:$t("menus.hsabnormal"),rank:error$1},children:[{path:"/error/403",name:"403",component:()=>__vitePreload(()=>import("./403-b1dd7be0.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-ba8a4b2e.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-5f70f555.js"),[]),meta:{title:$t("menus.hsFive")}}]},__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:error},Symbol.toStringTag,{value:"Module"})),flowchart={path:"/flowChart",redirect:"/flowChart/index",meta:{icon:"setUp",title:$t("menus.hsflowChart"),rank:flowchart$1},children:[{path:"/flowChart/index",name:"FlowChart",component:()=>__vitePreload(()=>import("./index-10ddb571.js"),["static/js/index-10ddb571.js","static/js/hooks-f16ca4cf.js","static/js/styles-a1771eb6.js","static/js/vue.runtime.esm-bundler-51ffd45f.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.css"]),meta:{title:$t("menus.hsflowChart")}}]},__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:flowchart},Symbol.toStringTag,{value:"Module"})),IFrame$4=()=>__vitePreload(()=>import("./frameView-8e754f73.js"),["static/js/frameView-8e754f73.js","static/css/frameView-ed080731.css"]),formdesign={path:"/formDesign",redirect:"/formDesign/index",meta:{icon:"terminalWindowLine",title:$t("menus.hsFormDesign"),rank:formdesign$1},children:[{path:"/formDesign/index",name:"FormDesign",component:IFrame$4,meta:{title:$t("menus.hsFormDesign"),frameSrc:"https://haixin-fang.github.io/starfish-vue3-lowcode/playground/index.html#/"}}]},__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:formdesign},Symbol.toStringTag,{value:"Module"})),guide={path:"/guide",redirect:"/guide/index",meta:{icon:"guide",title:$t("menus.hsguide"),rank:guide$1},children:[{path:"/guide/index",name:"Guide",component:()=>__vitePreload(()=>import("./index-cb9558ae.js"),["static/js/index-cb9558ae.js","static/css/index-38ef32bb.css"]),meta:{title:$t("menus.hsguide")}}]},__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:guide},Symbol.toStringTag,{value:"Module"})),{VITE_HIDE_HOME:VITE_HIDE_HOME$2}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Layout$1=()=>__vitePreload(()=>import("./index-ef0b2829.js"),["static/js/index-ef0b2829.js","static/js/menu-a4fe64fb.js","static/js/set-up-e6942411.js","static/js/home-filled-05cc090c.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-bc95c6e2.js","static/js/epTheme-045ca37a.js","static/js/app-bdb35527.js","static/js/index-70c4c0c6.js","static/js/hooks-f16ca4cf.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/js/back_top-18fdcea3.js","static/css/index-24677433.css"]),home={path:"/",name:"Home",component:Layout$1,redirect:"/welcome",meta:{icon:"homeFilled",title:$t("menus.hshome"),rank:home$1},children:[{path:"/welcome",name:"Welcome",component:()=>__vitePreload(()=>import("./index-7fc4ede0.js"),["static/js/index-7fc4ede0.js","static/js/Bar.vue_vue_type_script_setup_true_lang-d52d8304.js","static/js/app-bdb35527.js","static/js/Pie.vue_vue_type_script_setup_true_lang-022c641a.js","static/js/Line.vue_vue_type_script_setup_true_lang-6e09f980.js","static/js/index-71ff165a.js","static/js/index-70c4c0c6.js","static/js/Github.vue_vue_type_script_setup_true_lang-529ac09d.js","static/js/columns-03762153.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-7bee6064.js","static/css/index-18417f34.css","static/css/index-76b99267.css"]),meta:{title:$t("menus.hshome"),showLink:VITE_HIDE_HOME$2!=="true"}}]},__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:home},Symbol.toStringTag,{value:"Module"})),list$1={path:"/list",redirect:"/list/card",meta:{icon:"listCheck",title:$t("menus.hsList"),rank:list$2},children:[{path:"/list/card",name:"ListCard",component:()=>__vitePreload(()=>import("./index-367b7300.js"),["static/js/index-367b7300.js","static/js/Card-f4d9593a.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-5d48ae52.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-4372cc62.js","static/js/hooks-f16ca4cf.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),meta:{icon:"card",title:$t("menus.hsListCard"),showParent:!0}}]},__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:list$1},Symbol.toStringTag,{value:"Module"})),menuoverflow={path:"/menuoverflow",redirect:"/menuoverflow/index",meta:{title:$t("menus.hsMenuoverflow"),rank:menuoverflow$1},children:[{path:"/menuoverflow/index",name:"MenuOverflow",component:()=>__vitePreload(()=>import("./index-56d8e721.js"),[]),meta:{title:$t("menus.hsChildMenuoverflow"),showParent:!0}}]},__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:menuoverflow},Symbol.toStringTag,{value:"Module"})),nested={path:"/nested",redirect:"/nested/menu1/menu1-1",meta:{title:$t("menus.hsmenus"),icon:"histogram",rank:nested$1},children:[{path:"/nested/menu1",meta:{title:$t("menus.hsmenu1"),keepAlive:!0},redirect:"/nested/menu1/menu1-1",children:[{path:"/nested/menu1/menu1-1",component:()=>__vitePreload(()=>import("./index-a6dd9c82.js"),[]),name:"Menu1-1",meta:{title:$t("menus.hsmenu1-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:$t("menus.hsmenu1-2"),keepAlive:!0},children:[{path:"/nested/menu1/menu1-2/menu1-2-1",component:()=>__vitePreload(()=>import("./index-b6ee1803.js"),[]),name:"Menu1-2-1",meta:{title:$t("menus.hsmenu1-2-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2/menu1-2-2",component:()=>__vitePreload(()=>import("./index-7181ae36.js"),[]),name:"Menu1-2-2",meta:{title:$t("menus.hsmenu1-2-2"),keepAlive:!0,extraIcon:"IF-pure-iconfont-new svg"}}]},{path:"/nested/menu1/menu1-3",component:()=>__vitePreload(()=>import("./index-7d915599.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-af5c3151.js"),[]),meta:{title:$t("menus.hsmenu2"),keepAlive:!0}}]},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:nested},Symbol.toStringTag,{value:"Module"})),IFrame$3=()=>__vitePreload(()=>import("./frameView-8e754f73.js"),["static/js/frameView-8e754f73.js","static/css/frameView-ed080731.css"]),ppt={path:"/ppt",redirect:"/ppt/index",meta:{icon:"ppt",title:"PPT",rank:ppt$1},children:[{path:"/ppt/index",name:"FramePpt",component:IFrame$3,meta:{title:"PPT",frameSrc:"https://pipipi-pikachu.github.io/PPTist/",frameLoading:!1}}]},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:ppt},Symbol.toStringTag,{value:"Module"})),_hoisted_1={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 1024"},_hoisted_2=createBaseVNode("path",{fill:"#FF5D50",d:"M428.698 107.315c-6.503 72.192-36.352 207.258-160.256 337.408 3.686-48.025-7.117-83.763-19.047-107.673-6.605-13.159-26.06-10.599-28.877 3.84-5.734 29.44-20.582 75.059-57.6 137.779-71.628 121.395-62.566 459.878 340.736 459.878S934.093 585.728 876.8 442.522c-37.376-93.44-93.952-152.525-128.82-182.324-11.417-9.779-29.132-1.945-29.593 13.056-.921 30.464-7.321 73.37-33.075 102.144-.666-52.787-38.144-208.384-202.445-296.857-23.296-12.544-51.763 2.457-54.17 28.774z"},null,-1),_hoisted_3=createBaseVNode("path",{fill:"#FFDF99",d:"M702.26 678.4c-4.2-45.056-60.673-166.554-212.634-246.426-10.599-5.58-23.092 3.124-21.504 15.002 6.246 46.848 12.953 140.493-24.064 184.73 4.044-40.397-18.125-73.83-36.66-94.31-8.396-9.217-23.552-4.66-25.497 7.68-3.533 22.322-12.851 56.268-36.557 97.945-42.086 74.035-86.989 188.672 124.57 294.656 10.956.563 22.17.87 33.74.87a617.97 617.97 0 0 0 32.717-.87C694.631 878.182 709.837 759.706 702.26 678.4z"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3];function render$3($,z){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_4)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView-8e754f73.js"),["static/js/frameView-8e754f73.js","static/css/frameView-ed080731.css"]),puredoc={path:"/pure-admin-doc",redirect:"/pure-admin-doc/index",meta:{icon:hot,title:"pure-admin-doc",rank:doc},children:[{path:"/pure-admin-doc/index",name:"FrameDoc",component:IFrame$2,meta:{title:"pure-admin-doc",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc/"}}]},__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:puredoc},Symbol.toStringTag,{value:"Module"})),IFrame$1=()=>__vitePreload(()=>import("./frameView-8e754f73.js"),["static/js/frameView-8e754f73.js","static/css/frameView-ed080731.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$7},children:[{path:"/pure-admin-utils/index",name:"FrameUtils",component:IFrame$1,meta:{title:"pure-admin-utils",frameSrc:"https://pure-admin-utils.netlify.app/"}}]},__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:pureutils},Symbol.toStringTag,{value:"Module"})),result={path:"/result",redirect:"/result/success",meta:{icon:"checkboxCircleLine",title:$t("menus.hsResult"),rank:result$1},children:[{path:"/result/success",name:"Success",component:()=>__vitePreload(()=>import("./success-041db968.js"),["static/js/success-041db968.js","static/css/success-42084dfc.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-81f224b4.js"),["static/js/fail-81f224b4.js","static/js/columns-04d3c20d.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),meta:{title:$t("menus.hsFail")}}]},__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:result},Symbol.toStringTag,{value:"Module"})),table={path:"/pure-table",redirect:"/pure-table/index",meta:{icon:hot,title:"pure-admin-table",rank:table$1},children:[{path:"/pure-table/index",name:"PureTable",component:()=>__vitePreload(()=>import("./index-d3a76d4e.js"),["static/js/index-d3a76d4e.js","static/js/list-91a7734e.js","static/js/base.vue_vue_type_script_setup_true_lang-1adaf855.js","static/js/data-54450696.js","static/js/stripe.vue_vue_type_script_setup_true_lang-3a506df8.js","static/js/border.vue_vue_type_script_setup_true_lang-3af57ecf.js","static/js/status.vue_vue_type_style_index_0_lang-4446f603.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-5cac4ed7.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-e4756bd2.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-9f6fc604.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1b9597bf.js","static/js/radio.vue_vue_type_script_setup_true_lang-853cc00b.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-38e075a5.js","static/js/sortable.vue_vue_type_script_setup_true_lang-da8e0a81.js","static/js/filters.vue_vue_type_script_setup_true_lang-0c7e3291.js","static/js/index.vue_vue_type_script_setup_true_lang-e607a6b4.js","static/js/columns-f1f509a0.js","static/js/message-5d48ae52.js","static/js/index.vue_vue_type_script_setup_true_lang-3c7fb9f2.js","static/js/columns-6744f35a.js","static/js/expand.vue_vue_type_script_setup_true_lang-9b49f380.js","static/js/tree.vue_vue_type_script_setup_true_lang-e07c34f8.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-812a2147.js","static/js/merge.vue_vue_type_script_setup_true_lang-faf9e01e.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-bd9ac040.js","static/js/layout.vue_vue_type_script_setup_true_lang-1f473b86.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-cbef1255.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-19e77e23.js","static/css/index-c6b6432d.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-11f034f8.js"),["static/js/high-11f034f8.js","static/js/list-632a035f.js","static/js/index.vue_vue_type_script_setup_true_lang-4685e286.js","static/js/columns-c9ba57b9.js","static/js/data-e488f0a1.js","static/js/index.vue_vue_type_script_setup_true_lang-9013e0e0.js","static/js/columns-2e4ff6ab.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-e37a392b.js","static/js/columns-3a8c1aa2.js","static/js/index.vue_vue_type_script_setup_true_lang-e25e7b83.js","static/js/columns-a24073c8.js","static/js/message-5d48ae52.js","static/js/index.vue_vue_type_script_setup_true_lang-e992f458.js","static/js/columns-eb04e2f8.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-498d83d7.js","static/js/columns-7fc155f0.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-921de12c.js","static/js/columns-3a8d3abd.js","static/js/index.vue_vue_type_script_setup_true_lang-7c5b6615.js","static/js/columns-ac909297.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-f0db9631.js","static/js/columns-66b7faf3.js","static/js/index-70c4c0c6.js","static/js/index.vue_vue_type_script_setup_true_lang-a85f6546.js","static/js/index.vue_vue_type_script_setup_true_lang-8823b869.js","static/js/columns-99a6cb34.js","static/js/index.vue_vue_type_script_setup_true_lang-bab08ec4.js","static/js/columns-14c44c43.js","static/css/high-5bc3f1f1.css"]),meta:{title:$t("menus.hsPureTableHigh")}}]},__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function assign$3($){for(var z=1;z<arguments.length;z++){var oe=arguments[z];for(var ae in oe)$[ae]=oe[ae]}return $}var defaultConverter={read:function($){return $[0]==='"'&&($=$.slice(1,-1)),$.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function($){return encodeURIComponent($).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$2($,z){function oe(le,ue,pe){if(!(typeof document>"u")){pe=assign$3({},z,pe),typeof pe.expires=="number"&&(pe.expires=new Date(Date.now()+pe.expires*864e5)),pe.expires&&(pe.expires=pe.expires.toUTCString()),le=encodeURIComponent(le).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var _e="";for(var Ce in pe)pe[Ce]&&(_e+="; "+Ce,pe[Ce]!==!0&&(_e+="="+pe[Ce].split(";")[0]));return document.cookie=le+"="+$.write(ue,le)+_e}}function ae(le){if(!(typeof document>"u"||arguments.length&&!le)){for(var ue=document.cookie?document.cookie.split("; "):[],pe={},_e=0;_e<ue.length;_e++){var Ce=ue[_e].split("="),$e=Ce.slice(1).join("=");try{var xe=decodeURIComponent(Ce[0]);if(pe[xe]=$.read($e,xe),le===xe)break}catch{}}return le?pe[le]:pe}}return Object.create({set:oe,get:ae,remove:function(le,ue){oe(le,"",assign$3({},ue,{expires:-1}))},withAttributes:function(le){return init$2(this.converter,assign$3({},this.attributes,le))},withConverter:function(le){return init$2(assign$3({},this.converter,le),this.attributes)}},{attributes:{value:Object.freeze(z)},converter:{value:Object.freeze($)}})}var api=init$2(defaultConverter,{path:"/"});/*!
|
||
* pinia v2.1.3
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let activePinia;const setActivePinia=$=>activePinia=$,piniaSymbol=Symbol();function isPlainObject($){return $&&typeof $=="object"&&Object.prototype.toString.call($)==="[object Object]"&&typeof $.toJSON!="function"}var MutationType;(function($){$.direct="direct",$.patchObject="patch object",$.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const $=effectScope(!0),z=$.run(()=>ref({}));let oe=[],ae=[];const le=markRaw({install(ue){setActivePinia(le),le._a=ue,ue.provide(piniaSymbol,le),ue.config.globalProperties.$pinia=le,ae.forEach(pe=>oe.push(pe)),ae=[]},use(ue){return!this._a&&!isVue2?ae.push(ue):oe.push(ue),this},_p:oe,_a:null,_e:$,_s:new Map,state:z});return le}const noop$3=()=>{};function addSubscription($,z,oe,ae=noop$3){$.push(z);const le=()=>{const ue=$.indexOf(z);ue>-1&&($.splice(ue,1),ae())};return!oe&&getCurrentScope()&&onScopeDispose(le),le}function triggerSubscriptions($,...z){$.slice().forEach(oe=>{oe(...z)})}const fallbackRunWithContext=$=>$();function mergeReactiveObjects($,z){$ instanceof Map&&z instanceof Map&&z.forEach((oe,ae)=>$.set(ae,oe)),$ instanceof Set&&z instanceof Set&&z.forEach($.add,$);for(const oe in z){if(!z.hasOwnProperty(oe))continue;const ae=z[oe],le=$[oe];isPlainObject(le)&&isPlainObject(ae)&&$.hasOwnProperty(oe)&&!isRef(ae)&&!isReactive(ae)?$[oe]=mergeReactiveObjects(le,ae):$[oe]=ae}return $}const skipHydrateSymbol=Symbol();function shouldHydrate($){return!isPlainObject($)||!$.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed($){return!!(isRef($)&&$.effect)}function createOptionsStore($,z,oe,ae){const{state:le,actions:ue,getters:pe}=z,_e=oe.state.value[$];let Ce;function $e(){_e||(oe.state.value[$]=le?le():{});const xe=toRefs(oe.state.value[$]);return assign$2(xe,ue,Object.keys(pe||{}).reduce((Ie,Fe)=>(Ie[Fe]=markRaw(computed(()=>{setActivePinia(oe);const ze=oe._s.get($);return pe[Fe].call(ze,ze)})),Ie),{}))}return Ce=createSetupStore($,$e,z,oe,ae,!0),Ce}function createSetupStore($,z,oe={},ae,le,ue){let pe;const _e=assign$2({actions:{}},oe),Ce={deep:!0};let $e,xe,Ie=[],Fe=[],ze;const Ue=ae.state.value[$];!ue&&!Ue&&(ae.state.value[$]={}),ref({});let qe;function At(En){let $n;$e=xe=!1,typeof En=="function"?(En(ae.state.value[$]),$n={type:MutationType.patchFunction,storeId:$,events:ze}):(mergeReactiveObjects(ae.state.value[$],En),$n={type:MutationType.patchObject,payload:En,storeId:$,events:ze});const wn=qe=Symbol();nextTick().then(()=>{qe===wn&&($e=!0)}),xe=!0,triggerSubscriptions(Ie,$n,ae.state.value[$])}const Lt=ue?function(){const{state:$n}=oe,wn=$n?$n():{};this.$patch(Tn=>{assign$2(Tn,wn)})}:noop$3;function hn(){pe.stop(),Ie=[],Fe=[],ae._s.delete($)}function vn(En,$n){return function(){setActivePinia(ae);const wn=Array.from(arguments),Tn=[],xn=[];function kn(Dn){Tn.push(Dn)}function Nn(Dn){xn.push(Dn)}triggerSubscriptions(Fe,{args:wn,name:En,store:bn,after:kn,onError:Nn});let Bn;try{Bn=$n.apply(this&&this.$id===$?this:bn,wn)}catch(Dn){throw triggerSubscriptions(xn,Dn),Dn}return Bn instanceof Promise?Bn.then(Dn=>(triggerSubscriptions(Tn,Dn),Dn)).catch(Dn=>(triggerSubscriptions(xn,Dn),Promise.reject(Dn))):(triggerSubscriptions(Tn,Bn),Bn)}}const _n={_p:ae,$id:$,$onAction:addSubscription.bind(null,Fe),$patch:At,$reset:Lt,$subscribe(En,$n={}){const wn=addSubscription(Ie,En,$n.detached,()=>Tn()),Tn=pe.run(()=>watch(()=>ae.state.value[$],xn=>{($n.flush==="sync"?xe:$e)&&En({storeId:$,type:MutationType.direct,events:ze},xn)},assign$2({},Ce,$n)));return wn},$dispose:hn},bn=reactive(_n);ae._s.set($,bn);const Sn=ae._a&&ae._a.runWithContext||fallbackRunWithContext,Cn=ae._e.run(()=>(pe=effectScope(),Sn(()=>pe.run(z))));for(const En in Cn){const $n=Cn[En];if(isRef($n)&&!isComputed($n)||isReactive($n))ue||(Ue&&shouldHydrate($n)&&(isRef($n)?$n.value=Ue[En]:mergeReactiveObjects($n,Ue[En])),ae.state.value[$][En]=$n);else if(typeof $n=="function"){const wn=vn(En,$n);Cn[En]=wn,_e.actions[En]=$n}}return assign$2(bn,Cn),assign$2(toRaw(bn),Cn),Object.defineProperty(bn,"$state",{get:()=>ae.state.value[$],set:En=>{At($n=>{assign$2($n,En)})}}),ae._p.forEach(En=>{assign$2(bn,pe.run(()=>En({store:bn,app:ae._a,pinia:ae,options:_e})))}),Ue&&ue&&oe.hydrate&&oe.hydrate(bn.$state,Ue),$e=!0,xe=!0,bn}function defineStore($,z,oe){let ae,le;const ue=typeof z=="function";typeof $=="string"?(ae=$,le=ue?oe:z):(le=$,ae=$.id);function pe(_e,Ce){const $e=hasInjectionContext();return _e=_e||($e?inject(piniaSymbol,null):null),_e&&setActivePinia(_e),_e=activePinia,_e._s.has(ae)||(ue?createSetupStore(ae,z,le,_e):createOptionsStore(ae,le,_e)),_e._s.get(ae)}return pe.$id=ae,pe}function storeToRefs($){{$=toRaw($);const z={};for(const oe in $){const ae=$[oe];(isRef(ae)||isReactive(ae))&&(z[oe]=toRef$1($,oe))}return z}}const store=createPinia();function setupStore($){$.use(store)}const{VITE_HIDE_HOME:VITE_HIDE_HOME$1}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},routerArrays=VITE_HIDE_HOME$1==="false"?[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome",icon:"homeFilled"}}]:[];var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},oe=Symbol("test"),ae=Object(oe);if(typeof oe=="string"||Object.prototype.toString.call(oe)!=="[object Symbol]"||Object.prototype.toString.call(ae)!=="[object Symbol]")return!1;var le=42;z[oe]=le;for(oe in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var ue=Object.getOwnPropertySymbols(z);if(ue.length!==1||ue[0]!==oe||!Object.prototype.propertyIsEnumerable.call(z,oe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var pe=Object.getOwnPropertyDescriptor(z,oe);if(pe.value!==le||pe.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(z){var oe=this;if(typeof oe!="function"||toStr$1.call(oe)!==funcType)throw new TypeError(ERROR_MESSAGE+oe);for(var ae=slice$1.call(arguments,1),le,ue=function(){if(this instanceof le){var xe=oe.apply(this,ae.concat(slice$1.call(arguments)));return Object(xe)===xe?xe:this}else return oe.apply(z,ae.concat(slice$1.call(arguments)))},pe=Math.max(0,oe.length-ae.length),_e=[],Ce=0;Ce<pe;Ce++)_e.push("$"+Ce);if(le=Function("binder","return function ("+_e.join(",")+"){ return binder.apply(this,arguments); }")(ue),oe.prototype){var $e=function(){};$e.prototype=oe.prototype,le.prototype=new $e,$e.prototype=null}return le},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function($){try{return $Function('"use strict"; return ('+$+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function($){return $.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};try{null.error}catch($){var errorProto=getProto(getProto($));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function $(z){var oe;if(z==="%AsyncFunction%")oe=getEvalledConstructor("async function () {}");else if(z==="%GeneratorFunction%")oe=getEvalledConstructor("function* () {}");else if(z==="%AsyncGeneratorFunction%")oe=getEvalledConstructor("async function* () {}");else if(z==="%AsyncGenerator%"){var ae=$("%AsyncGeneratorFunction%");ae&&(oe=ae.prototype)}else if(z==="%AsyncIteratorPrototype%"){var le=$("%AsyncGenerator%");le&&(oe=getProto(le.prototype))}return INTRINSICS[z]=oe,oe},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$2=src,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(z){var oe=$strSlice(z,0,1),ae=$strSlice(z,-1);if(oe==="%"&&ae!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(ae==="%"&&oe!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var le=[];return $replace$1(z,rePropName,function(ue,pe,_e,Ce){le[le.length]=_e?$replace$1(Ce,reEscapeChar,"$1"):pe||ue}),le},getBaseIntrinsic=function(z,oe){var ae=z,le;if(hasOwn$2(LEGACY_ALIASES,ae)&&(le=LEGACY_ALIASES[ae],ae="%"+le[0]+"%"),hasOwn$2(INTRINSICS,ae)){var ue=INTRINSICS[ae];if(ue===needsEval&&(ue=doEval(ae)),typeof ue>"u"&&!oe)throw new $TypeError$1("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:le,name:ae,value:ue}}throw new $SyntaxError("intrinsic "+z+" does not exist!")},getIntrinsic=function(z,oe){if(typeof z!="string"||z.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof oe!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,z)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ae=stringToPath(z),le=ae.length>0?ae[0]:"",ue=getBaseIntrinsic("%"+le+"%",oe),pe=ue.name,_e=ue.value,Ce=!1,$e=ue.alias;$e&&(le=$e[0],$spliceApply(ae,$concat$1([0,1],$e)));for(var xe=1,Ie=!0;xe<ae.length;xe+=1){var Fe=ae[xe],ze=$strSlice(Fe,0,1),Ue=$strSlice(Fe,-1);if((ze==='"'||ze==="'"||ze==="`"||Ue==='"'||Ue==="'"||Ue==="`")&&ze!==Ue)throw new $SyntaxError("property names with quotes must have matching quotes");if((Fe==="constructor"||!Ie)&&(Ce=!0),le+="."+Fe,pe="%"+le+"%",hasOwn$2(INTRINSICS,pe))_e=INTRINSICS[pe];else if(_e!=null){if(!(Fe in _e)){if(!oe)throw new $TypeError$1("base intrinsic for "+z+" exists, but the property is not available.");return}if($gOPD&&xe+1>=ae.length){var qe=$gOPD(_e,Fe);Ie=!!qe,Ie&&"get"in qe&&!("originalValue"in qe.get)?_e=qe.get:_e=_e[Fe]}else Ie=hasOwn$2(_e,Fe),_e=_e[Fe];Ie&&!Ce&&(INTRINSICS[pe]=_e)}}return _e},callBind$1={exports:{}};(function($){var z=functionBind,oe=getIntrinsic,ae=oe("%Function.prototype.apply%"),le=oe("%Function.prototype.call%"),ue=oe("%Reflect.apply%",!0)||z.call(le,ae),pe=oe("%Object.getOwnPropertyDescriptor%",!0),_e=oe("%Object.defineProperty%",!0),Ce=oe("%Math.max%");if(_e)try{_e({},"a",{value:1})}catch{_e=null}$.exports=function(Ie){var Fe=ue(z,le,arguments);if(pe&&_e){var ze=pe(Fe,"length");ze.configurable&&_e(Fe,"length",{value:1+Ce(0,Ie.length-(arguments.length-1))})}return Fe};var $e=function(){return ue(z,ae,arguments)};_e?_e($.exports,"apply",{value:$e}):$.exports.apply=$e})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(z,oe){var ae=GetIntrinsic$1(z,!!oe);return typeof ae=="function"&&$indexOf(z,".prototype.")>-1?callBind(ae):ae};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function($){return $.__proto__}:null);function addNumericSeparator($,z){if($===1/0||$===-1/0||$!==$||$&&$>-1e3&&$<1e3||$test.call(/e/,z))return z;var oe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var ae=$<0?-$floor(-$):$floor($);if(ae!==$){var le=String(ae),ue=$slice.call(z,le.length+1);return $replace.call(le,oe,"$&_")+"."+$replace.call($replace.call(ue,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(z,oe,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function $(z,oe,ae,le){var ue=oe||{};if(has$4(ue,"quoteStyle")&&ue.quoteStyle!=="single"&&ue.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(ue,"maxStringLength")&&(typeof ue.maxStringLength=="number"?ue.maxStringLength<0&&ue.maxStringLength!==1/0:ue.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var pe=has$4(ue,"customInspect")?ue.customInspect:!0;if(typeof pe!="boolean"&&pe!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(ue,"indent")&&ue.indent!==null&&ue.indent!==" "&&!(parseInt(ue.indent,10)===ue.indent&&ue.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(ue,"numericSeparator")&&typeof ue.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _e=ue.numericSeparator;if(typeof z>"u")return"undefined";if(z===null)return"null";if(typeof z=="boolean")return z?"true":"false";if(typeof z=="string")return inspectString(z,ue);if(typeof z=="number"){if(z===0)return 1/0/z>0?"0":"-0";var Ce=String(z);return _e?addNumericSeparator(z,Ce):Ce}if(typeof z=="bigint"){var $e=String(z)+"n";return _e?addNumericSeparator(z,$e):$e}var xe=typeof ue.depth>"u"?5:ue.depth;if(typeof ae>"u"&&(ae=0),ae>=xe&&xe>0&&typeof z=="object")return isArray$7(z)?"[Array]":"[Object]";var Ie=getIndent(ue,ae);if(typeof le>"u")le=[];else if(indexOf$1(le,z)>=0)return"[Circular]";function Fe(kn,Nn,Bn){if(Nn&&(le=$arrSlice.call(le),le.push(Nn)),Bn){var Dn={depth:ue.depth};return has$4(ue,"quoteStyle")&&(Dn.quoteStyle=ue.quoteStyle),$(kn,Dn,ae+1,le)}return $(kn,ue,ae+1,le)}if(typeof z=="function"&&!isRegExp$2(z)){var ze=nameOf(z),Ue=arrObjKeys(z,Fe);return"[Function"+(ze?": "+ze:" (anonymous)")+"]"+(Ue.length>0?" { "+$join.call(Ue,", ")+" }":"")}if(isSymbol(z)){var qe=hasShammedSymbols?$replace.call(String(z),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(z);return typeof z=="object"&&!hasShammedSymbols?markBoxed(qe):qe}if(isElement$1(z)){for(var At="<"+$toLowerCase.call(String(z.nodeName)),Lt=z.attributes||[],hn=0;hn<Lt.length;hn++)At+=" "+Lt[hn].name+"="+wrapQuotes(quote(Lt[hn].value),"double",ue);return At+=">",z.childNodes&&z.childNodes.length&&(At+="..."),At+="</"+$toLowerCase.call(String(z.nodeName))+">",At}if(isArray$7(z)){if(z.length===0)return"[]";var vn=arrObjKeys(z,Fe);return Ie&&!singleLineValues(vn)?"["+indentedJoin(vn,Ie)+"]":"[ "+$join.call(vn,", ")+" ]"}if(isError(z)){var _n=arrObjKeys(z,Fe);return!("cause"in Error.prototype)&&"cause"in z&&!isEnumerable.call(z,"cause")?"{ ["+String(z)+"] "+$join.call($concat.call("[cause]: "+Fe(z.cause),_n),", ")+" }":_n.length===0?"["+String(z)+"]":"{ ["+String(z)+"] "+$join.call(_n,", ")+" }"}if(typeof z=="object"&&pe){if(inspectSymbol&&typeof z[inspectSymbol]=="function"&&utilInspect)return utilInspect(z,{depth:xe-ae});if(pe!=="symbol"&&typeof z.inspect=="function")return z.inspect()}if(isMap(z)){var bn=[];return mapForEach&&mapForEach.call(z,function(kn,Nn){bn.push(Fe(Nn,z,!0)+" => "+Fe(kn,z))}),collectionOf("Map",mapSize.call(z),bn,Ie)}if(isSet(z)){var Sn=[];return setForEach&&setForEach.call(z,function(kn){Sn.push(Fe(kn,z))}),collectionOf("Set",setSize.call(z),Sn,Ie)}if(isWeakMap(z))return weakCollectionOf("WeakMap");if(isWeakSet(z))return weakCollectionOf("WeakSet");if(isWeakRef(z))return weakCollectionOf("WeakRef");if(isNumber$2(z))return markBoxed(Fe(Number(z)));if(isBigInt(z))return markBoxed(Fe(bigIntValueOf.call(z)));if(isBoolean(z))return markBoxed(booleanValueOf.call(z));if(isString$3(z))return markBoxed(Fe(String(z)));if(!isDate(z)&&!isRegExp$2(z)){var Cn=arrObjKeys(z,Fe),En=gPO?gPO(z)===Object.prototype:z instanceof Object||z.constructor===Object,$n=z instanceof Object?"":"null prototype",wn=!En&&toStringTag&&Object(z)===z&&toStringTag in z?$slice.call(toStr(z),8,-1):$n?"Object":"",Tn=En||typeof z.constructor!="function"?"":z.constructor.name?z.constructor.name+" ":"",xn=Tn+(wn||$n?"["+$join.call($concat.call([],wn||[],$n||[]),": ")+"] ":"");return Cn.length===0?xn+"{}":Ie?xn+"{"+indentedJoin(Cn,Ie)+"}":xn+"{ "+$join.call(Cn,", ")+" }"}return String(z)};function wrapQuotes($,z,oe){var ae=(oe.quoteStyle||z)==="double"?'"':"'";return ae+$+ae}function quote($){return $replace.call(String($),/"/g,""")}function isArray$7($){return toStr($)==="[object Array]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isDate($){return toStr($)==="[object Date]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isRegExp$2($){return toStr($)==="[object RegExp]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isError($){return toStr($)==="[object Error]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isString$3($){return toStr($)==="[object String]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isNumber$2($){return toStr($)==="[object Number]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isBoolean($){return toStr($)==="[object Boolean]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isSymbol($){if(hasShammedSymbols)return $&&typeof $=="object"&&$ instanceof Symbol;if(typeof $=="symbol")return!0;if(!$||typeof $!="object"||!symToString)return!1;try{return symToString.call($),!0}catch{}return!1}function isBigInt($){if(!$||typeof $!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call($),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function($){return $ in this};function has$4($,z){return hasOwn$1.call($,z)}function toStr($){return objectToString.call($)}function nameOf($){if($.name)return $.name;var z=$match.call(functionToString.call($),/^function\s*([\w$]+)/);return z?z[1]:null}function indexOf$1($,z){if($.indexOf)return $.indexOf(z);for(var oe=0,ae=$.length;oe<ae;oe++)if($[oe]===z)return oe;return-1}function isMap($){if(!mapSize||!$||typeof $!="object")return!1;try{mapSize.call($);try{setSize.call($)}catch{return!0}return $ instanceof Map}catch{}return!1}function isWeakMap($){if(!weakMapHas||!$||typeof $!="object")return!1;try{weakMapHas.call($,weakMapHas);try{weakSetHas.call($,weakSetHas)}catch{return!0}return $ instanceof WeakMap}catch{}return!1}function isWeakRef($){if(!weakRefDeref||!$||typeof $!="object")return!1;try{return weakRefDeref.call($),!0}catch{}return!1}function isSet($){if(!setSize||!$||typeof $!="object")return!1;try{setSize.call($);try{mapSize.call($)}catch{return!0}return $ instanceof Set}catch{}return!1}function isWeakSet($){if(!weakSetHas||!$||typeof $!="object")return!1;try{weakSetHas.call($,weakSetHas);try{weakMapHas.call($,weakMapHas)}catch{return!0}return $ instanceof WeakSet}catch{}return!1}function isElement$1($){return!$||typeof $!="object"?!1:typeof HTMLElement<"u"&&$ instanceof HTMLElement?!0:typeof $.nodeName=="string"&&typeof $.getAttribute=="function"}function inspectString($,z){if($.length>z.maxStringLength){var oe=$.length-z.maxStringLength,ae="... "+oe+" more character"+(oe>1?"s":"");return inspectString($slice.call($,0,z.maxStringLength),z)+ae}var le=$replace.call($replace.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(le,"single",z)}function lowbyte($){var z=$.charCodeAt(0),oe={8:"b",9:"t",10:"n",12:"f",13:"r"}[z];return oe?"\\"+oe:"\\x"+(z<16?"0":"")+$toUpperCase.call(z.toString(16))}function markBoxed($){return"Object("+$+")"}function weakCollectionOf($){return $+" { ? }"}function collectionOf($,z,oe,ae){var le=ae?indentedJoin(oe,ae):$join.call(oe,", ");return $+" ("+z+") {"+le+"}"}function singleLineValues($){for(var z=0;z<$.length;z++)if(indexOf$1($[z],`
|
||
`)>=0)return!1;return!0}function getIndent($,z){var oe;if($.indent===" ")oe=" ";else if(typeof $.indent=="number"&&$.indent>0)oe=$join.call(Array($.indent+1)," ");else return null;return{base:oe,prev:$join.call(Array(z+1),oe)}}function indentedJoin($,z){if($.length===0)return"";var oe=`
|
||
`+z.prev+z.base;return oe+$join.call($,","+oe)+`
|
||
`+z.prev}function arrObjKeys($,z){var oe=isArray$7($),ae=[];if(oe){ae.length=$.length;for(var le=0;le<$.length;le++)ae[le]=has$4($,le)?z($[le],$):""}var ue=typeof gOPS=="function"?gOPS($):[],pe;if(hasShammedSymbols){pe={};for(var _e=0;_e<ue.length;_e++)pe["$"+ue[_e]]=ue[_e]}for(var Ce in $)has$4($,Ce)&&(oe&&String(Number(Ce))===Ce&&Ce<$.length||hasShammedSymbols&&pe["$"+Ce]instanceof Symbol||($test.call(/[^\w$]/,Ce)?ae.push(z(Ce,$)+": "+z($[Ce],$)):ae.push(Ce+": "+z($[Ce],$))));if(typeof gOPS=="function")for(var $e=0;$e<ue.length;$e++)isEnumerable.call($,ue[$e])&&ae.push("["+z(ue[$e])+"]: "+z($[ue[$e]],$));return ae}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function($,z){for(var oe=$,ae;(ae=oe.next)!==null;oe=ae)if(ae.key===z)return oe.next=ae.next,ae.next=$.next,$.next=ae,ae},listGet=function($,z){var oe=listGetNode($,z);return oe&&oe.value},listSet=function($,z,oe){var ae=listGetNode($,z);ae?ae.value=oe:$.next={key:z,next:$.next,value:oe}},listHas=function($,z){return!!listGetNode($,z)},sideChannel=function(){var z,oe,ae,le={assert:function(ue){if(!le.has(ue))throw new $TypeError("Side channel does not contain "+inspect(ue))},get:function(ue){if($WeakMap&&ue&&(typeof ue=="object"||typeof ue=="function")){if(z)return $weakMapGet(z,ue)}else if($Map){if(oe)return $mapGet(oe,ue)}else if(ae)return listGet(ae,ue)},has:function(ue){if($WeakMap&&ue&&(typeof ue=="object"||typeof ue=="function")){if(z)return $weakMapHas(z,ue)}else if($Map){if(oe)return $mapHas(oe,ue)}else if(ae)return listHas(ae,ue);return!1},set:function(ue,pe){$WeakMap&&ue&&(typeof ue=="object"||typeof ue=="function")?(z||(z=new $WeakMap),$weakMapSet(z,ue,pe)):$Map?(oe||(oe=new $Map),$mapSet(oe,ue,pe)):(ae||(ae={key:{},next:null}),listSet(ae,ue,pe))}};return le},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function($){return replace.call($,percentTwenties,"+")},RFC3986:function($){return String($)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$3=Object.prototype.hasOwnProperty,isArray$6=Array.isArray,hexTable=function(){for(var $=[],z=0;z<256;++z)$.push("%"+((z<16?"0":"")+z.toString(16)).toUpperCase());return $}(),compactQueue=function(z){for(;z.length>1;){var oe=z.pop(),ae=oe.obj[oe.prop];if(isArray$6(ae)){for(var le=[],ue=0;ue<ae.length;++ue)typeof ae[ue]<"u"&&le.push(ae[ue]);oe.obj[oe.prop]=le}}},arrayToObject=function(z,oe){for(var ae=oe&&oe.plainObjects?Object.create(null):{},le=0;le<z.length;++le)typeof z[le]<"u"&&(ae[le]=z[le]);return ae},merge$1=function $(z,oe,ae){if(!oe)return z;if(typeof oe!="object"){if(isArray$6(z))z.push(oe);else if(z&&typeof z=="object")(ae&&(ae.plainObjects||ae.allowPrototypes)||!has$3.call(Object.prototype,oe))&&(z[oe]=!0);else return[z,oe];return z}if(!z||typeof z!="object")return[z].concat(oe);var le=z;return isArray$6(z)&&!isArray$6(oe)&&(le=arrayToObject(z,ae)),isArray$6(z)&&isArray$6(oe)?(oe.forEach(function(ue,pe){if(has$3.call(z,pe)){var _e=z[pe];_e&&typeof _e=="object"&&ue&&typeof ue=="object"?z[pe]=$(_e,ue,ae):z.push(ue)}else z[pe]=ue}),z):Object.keys(oe).reduce(function(ue,pe){var _e=oe[pe];return has$3.call(ue,pe)?ue[pe]=$(ue[pe],_e,ae):ue[pe]=_e,ue},le)},assign$1=function(z,oe){return Object.keys(oe).reduce(function(ae,le){return ae[le]=oe[le],ae},z)},decode$2=function($,z,oe){var ae=$.replace(/\+/g," ");if(oe==="iso-8859-1")return ae.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(ae)}catch{return ae}},encode=function(z,oe,ae,le,ue){if(z.length===0)return z;var pe=z;if(typeof z=="symbol"?pe=Symbol.prototype.toString.call(z):typeof z!="string"&&(pe=String(z)),ae==="iso-8859-1")return escape(pe).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var _e="",Ce=0;Ce<pe.length;++Ce){var $e=pe.charCodeAt(Ce);if($e===45||$e===46||$e===95||$e===126||$e>=48&&$e<=57||$e>=65&&$e<=90||$e>=97&&$e<=122||ue===formats$2.RFC1738&&($e===40||$e===41)){_e+=pe.charAt(Ce);continue}if($e<128){_e=_e+hexTable[$e];continue}if($e<2048){_e=_e+(hexTable[192|$e>>6]+hexTable[128|$e&63]);continue}if($e<55296||$e>=57344){_e=_e+(hexTable[224|$e>>12]+hexTable[128|$e>>6&63]+hexTable[128|$e&63]);continue}Ce+=1,$e=65536+(($e&1023)<<10|pe.charCodeAt(Ce)&1023),_e+=hexTable[240|$e>>18]+hexTable[128|$e>>12&63]+hexTable[128|$e>>6&63]+hexTable[128|$e&63]}return _e},compact=function(z){for(var oe=[{obj:{o:z},prop:"o"}],ae=[],le=0;le<oe.length;++le)for(var ue=oe[le],pe=ue.obj[ue.prop],_e=Object.keys(pe),Ce=0;Ce<_e.length;++Ce){var $e=_e[Ce],xe=pe[$e];typeof xe=="object"&&xe!==null&&ae.indexOf(xe)===-1&&(oe.push({obj:pe,prop:$e}),ae.push(xe))}return compactQueue(oe),z},isRegExp$1=function(z){return Object.prototype.toString.call(z)==="[object RegExp]"},isBuffer=function(z){return!z||typeof z!="object"?!1:!!(z.constructor&&z.constructor.isBuffer&&z.constructor.isBuffer(z))},combine=function(z,oe){return[].concat(z,oe)},maybeMap=function(z,oe){if(isArray$6(z)){for(var ae=[],le=0;le<z.length;le+=1)ae.push(oe(z[le]));return ae}return oe(z)},utils$6={arrayToObject,assign:assign$1,combine,compact,decode:decode$2,encode,isBuffer,isRegExp:isRegExp$1,maybeMap,merge:merge$1},getSideChannel=sideChannel,utils$5=utils$6,formats$1=formats$3,has$2=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(z){return z+"[]"},comma:"comma",indices:function(z,oe){return z+"["+oe+"]"},repeat:function(z){return z}},isArray$5=Array.isArray,push$1=Array.prototype.push,pushToArray=function($,z){push$1.apply($,isArray$5(z)?z:[z])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$2={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$5.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(z){return toISO.call(z)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(z){return typeof z=="string"||typeof z=="number"||typeof z=="boolean"||typeof z=="symbol"||typeof z=="bigint"},sentinel={},stringify$2=function $(z,oe,ae,le,ue,pe,_e,Ce,$e,xe,Ie,Fe,ze,Ue,qe,At){for(var Lt=z,hn=At,vn=0,_n=!1;(hn=hn.get(sentinel))!==void 0&&!_n;){var bn=hn.get(z);if(vn+=1,typeof bn<"u"){if(bn===vn)throw new RangeError("Cyclic object value");_n=!0}typeof hn.get(sentinel)>"u"&&(vn=0)}if(typeof Ce=="function"?Lt=Ce(oe,Lt):Lt instanceof Date?Lt=Ie(Lt):ae==="comma"&&isArray$5(Lt)&&(Lt=utils$5.maybeMap(Lt,function(Dn){return Dn instanceof Date?Ie(Dn):Dn})),Lt===null){if(ue)return _e&&!Ue?_e(oe,defaults$2.encoder,qe,"key",Fe):oe;Lt=""}if(isNonNullishPrimitive(Lt)||utils$5.isBuffer(Lt)){if(_e){var Sn=Ue?oe:_e(oe,defaults$2.encoder,qe,"key",Fe);return[ze(Sn)+"="+ze(_e(Lt,defaults$2.encoder,qe,"value",Fe))]}return[ze(oe)+"="+ze(String(Lt))]}var Cn=[];if(typeof Lt>"u")return Cn;var En;if(ae==="comma"&&isArray$5(Lt))Ue&&_e&&(Lt=utils$5.maybeMap(Lt,_e)),En=[{value:Lt.length>0?Lt.join(",")||null:void 0}];else if(isArray$5(Ce))En=Ce;else{var $n=Object.keys(Lt);En=$e?$n.sort($e):$n}for(var wn=le&&isArray$5(Lt)&&Lt.length===1?oe+"[]":oe,Tn=0;Tn<En.length;++Tn){var xn=En[Tn],kn=typeof xn=="object"&&typeof xn.value<"u"?xn.value:Lt[xn];if(!(pe&&kn===null)){var Nn=isArray$5(Lt)?typeof ae=="function"?ae(wn,xn):wn:wn+(xe?"."+xn:"["+xn+"]");At.set(z,vn);var Bn=getSideChannel();Bn.set(sentinel,At),pushToArray(Cn,$(kn,Nn,ae,le,ue,pe,ae==="comma"&&Ue&&isArray$5(Lt)?null:_e,Ce,$e,xe,Ie,Fe,ze,Ue,qe,Bn))}}return Cn},normalizeStringifyOptions=function(z){if(!z)return defaults$2;if(z.encoder!==null&&typeof z.encoder<"u"&&typeof z.encoder!="function")throw new TypeError("Encoder has to be a function.");var oe=z.charset||defaults$2.charset;if(typeof z.charset<"u"&&z.charset!=="utf-8"&&z.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var ae=formats$1.default;if(typeof z.format<"u"){if(!has$2.call(formats$1.formatters,z.format))throw new TypeError("Unknown format option provided.");ae=z.format}var le=formats$1.formatters[ae],ue=defaults$2.filter;return(typeof z.filter=="function"||isArray$5(z.filter))&&(ue=z.filter),{addQueryPrefix:typeof z.addQueryPrefix=="boolean"?z.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof z.allowDots>"u"?defaults$2.allowDots:!!z.allowDots,charset:oe,charsetSentinel:typeof z.charsetSentinel=="boolean"?z.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof z.delimiter>"u"?defaults$2.delimiter:z.delimiter,encode:typeof z.encode=="boolean"?z.encode:defaults$2.encode,encoder:typeof z.encoder=="function"?z.encoder:defaults$2.encoder,encodeValuesOnly:typeof z.encodeValuesOnly=="boolean"?z.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:ue,format:ae,formatter:le,serializeDate:typeof z.serializeDate=="function"?z.serializeDate:defaults$2.serializeDate,skipNulls:typeof z.skipNulls=="boolean"?z.skipNulls:defaults$2.skipNulls,sort:typeof z.sort=="function"?z.sort:null,strictNullHandling:typeof z.strictNullHandling=="boolean"?z.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function($,z){var oe=$,ae=normalizeStringifyOptions(z),le,ue;typeof ae.filter=="function"?(ue=ae.filter,oe=ue("",oe)):isArray$5(ae.filter)&&(ue=ae.filter,le=ue);var pe=[];if(typeof oe!="object"||oe===null)return"";var _e;z&&z.arrayFormat in arrayPrefixGenerators?_e=z.arrayFormat:z&&"indices"in z?_e=z.indices?"indices":"repeat":_e="indices";var Ce=arrayPrefixGenerators[_e];if(z&&"commaRoundTrip"in z&&typeof z.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var $e=Ce==="comma"&&z&&z.commaRoundTrip;le||(le=Object.keys(oe)),ae.sort&&le.sort(ae.sort);for(var xe=getSideChannel(),Ie=0;Ie<le.length;++Ie){var Fe=le[Ie];ae.skipNulls&&oe[Fe]===null||pushToArray(pe,stringify$2(oe[Fe],Fe,Ce,$e,ae.strictNullHandling,ae.skipNulls,ae.encode?ae.encoder:null,ae.filter,ae.sort,ae.allowDots,ae.serializeDate,ae.format,ae.formatter,ae.encodeValuesOnly,ae.charset,xe))}var ze=pe.join(ae.delimiter),Ue=ae.addQueryPrefix===!0?"?":"";return ae.charsetSentinel&&(ae.charset==="iso-8859-1"?Ue+="utf8=%26%2310003%3B&":Ue+="utf8=%E2%9C%93&"),ze.length>0?Ue+ze:""},utils$4=utils$6,has$1=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,defaults$1={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$4.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function($){return $.replace(/&#(\d+);/g,function(z,oe){return String.fromCharCode(parseInt(oe,10))})},parseArrayValue=function($,z){return $&&typeof $=="string"&&z.comma&&$.indexOf(",")>-1?$.split(","):$},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(z,oe){var ae={},le=oe.ignoreQueryPrefix?z.replace(/^\?/,""):z,ue=oe.parameterLimit===1/0?void 0:oe.parameterLimit,pe=le.split(oe.delimiter,ue),_e=-1,Ce,$e=oe.charset;if(oe.charsetSentinel)for(Ce=0;Ce<pe.length;++Ce)pe[Ce].indexOf("utf8=")===0&&(pe[Ce]===charsetSentinel?$e="utf-8":pe[Ce]===isoSentinel&&($e="iso-8859-1"),_e=Ce,Ce=pe.length);for(Ce=0;Ce<pe.length;++Ce)if(Ce!==_e){var xe=pe[Ce],Ie=xe.indexOf("]="),Fe=Ie===-1?xe.indexOf("="):Ie+1,ze,Ue;Fe===-1?(ze=oe.decoder(xe,defaults$1.decoder,$e,"key"),Ue=oe.strictNullHandling?null:""):(ze=oe.decoder(xe.slice(0,Fe),defaults$1.decoder,$e,"key"),Ue=utils$4.maybeMap(parseArrayValue(xe.slice(Fe+1),oe),function(qe){return oe.decoder(qe,defaults$1.decoder,$e,"value")})),Ue&&oe.interpretNumericEntities&&$e==="iso-8859-1"&&(Ue=interpretNumericEntities(Ue)),xe.indexOf("[]=")>-1&&(Ue=isArray$4(Ue)?[Ue]:Ue),has$1.call(ae,ze)?ae[ze]=utils$4.combine(ae[ze],Ue):ae[ze]=Ue}return ae},parseObject=function($,z,oe,ae){for(var le=ae?z:parseArrayValue(z,oe),ue=$.length-1;ue>=0;--ue){var pe,_e=$[ue];if(_e==="[]"&&oe.parseArrays)pe=[].concat(le);else{pe=oe.plainObjects?Object.create(null):{};var Ce=_e.charAt(0)==="["&&_e.charAt(_e.length-1)==="]"?_e.slice(1,-1):_e,$e=parseInt(Ce,10);!oe.parseArrays&&Ce===""?pe={0:le}:!isNaN($e)&&_e!==Ce&&String($e)===Ce&&$e>=0&&oe.parseArrays&&$e<=oe.arrayLimit?(pe=[],pe[$e]=le):Ce!=="__proto__"&&(pe[Ce]=le)}le=pe}return le},parseKeys=function(z,oe,ae,le){if(z){var ue=ae.allowDots?z.replace(/\.([^.[]+)/g,"[$1]"):z,pe=/(\[[^[\]]*])/,_e=/(\[[^[\]]*])/g,Ce=ae.depth>0&&pe.exec(ue),$e=Ce?ue.slice(0,Ce.index):ue,xe=[];if($e){if(!ae.plainObjects&&has$1.call(Object.prototype,$e)&&!ae.allowPrototypes)return;xe.push($e)}for(var Ie=0;ae.depth>0&&(Ce=_e.exec(ue))!==null&&Ie<ae.depth;){if(Ie+=1,!ae.plainObjects&&has$1.call(Object.prototype,Ce[1].slice(1,-1))&&!ae.allowPrototypes)return;xe.push(Ce[1])}return Ce&&xe.push("["+ue.slice(Ce.index)+"]"),parseObject(xe,oe,ae,le)}},normalizeParseOptions=function(z){if(!z)return defaults$1;if(z.decoder!==null&&z.decoder!==void 0&&typeof z.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof z.charset<"u"&&z.charset!=="utf-8"&&z.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var oe=typeof z.charset>"u"?defaults$1.charset:z.charset;return{allowDots:typeof z.allowDots>"u"?defaults$1.allowDots:!!z.allowDots,allowPrototypes:typeof z.allowPrototypes=="boolean"?z.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof z.allowSparse=="boolean"?z.allowSparse:defaults$1.allowSparse,arrayLimit:typeof z.arrayLimit=="number"?z.arrayLimit:defaults$1.arrayLimit,charset:oe,charsetSentinel:typeof z.charsetSentinel=="boolean"?z.charsetSentinel:defaults$1.charsetSentinel,comma:typeof z.comma=="boolean"?z.comma:defaults$1.comma,decoder:typeof z.decoder=="function"?z.decoder:defaults$1.decoder,delimiter:typeof z.delimiter=="string"||utils$4.isRegExp(z.delimiter)?z.delimiter:defaults$1.delimiter,depth:typeof z.depth=="number"||z.depth===!1?+z.depth:defaults$1.depth,ignoreQueryPrefix:z.ignoreQueryPrefix===!0,interpretNumericEntities:typeof z.interpretNumericEntities=="boolean"?z.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof z.parameterLimit=="number"?z.parameterLimit:defaults$1.parameterLimit,parseArrays:z.parseArrays!==!1,plainObjects:typeof z.plainObjects=="boolean"?z.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof z.strictNullHandling=="boolean"?z.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function($,z){var oe=normalizeParseOptions(z);if($===""||$===null||typeof $>"u")return oe.plainObjects?Object.create(null):{};for(var ae=typeof $=="string"?parseValues($,oe):$,le=oe.plainObjects?Object.create(null):{},ue=Object.keys(ae),pe=0;pe<ue.length;++pe){var _e=ue[pe],Ce=parseKeys(_e,ae[_e],oe,typeof $=="string");le=utils$4.merge(le,Ce,oe)}return oe.allowSparse===!0?le:utils$4.compact(le)},stringify$1=stringify_1,parse$3=parse$4,formats=formats$3,lib={formats,parse:parse$3,stringify:stringify$1},nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
* @license MIT */(function($,z){(function(oe,ae){$.exports=ae()})(commonjsGlobal,function(){var oe={};oe.version="0.2.0";var ae=oe.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};oe.configure=function(Ue){var qe,At;for(qe in Ue)At=Ue[qe],At!==void 0&&Ue.hasOwnProperty(qe)&&(ae[qe]=At);return this},oe.status=null,oe.set=function(Ue){var qe=oe.isStarted();Ue=le(Ue,ae.minimum,1),oe.status=Ue===1?null:Ue;var At=oe.render(!qe),Lt=At.querySelector(ae.barSelector),hn=ae.speed,vn=ae.easing;return At.offsetWidth,_e(function(_n){ae.positionUsing===""&&(ae.positionUsing=oe.getPositioningCSS()),Ce(Lt,pe(Ue,hn,vn)),Ue===1?(Ce(At,{transition:"none",opacity:1}),At.offsetWidth,setTimeout(function(){Ce(At,{transition:"all "+hn+"ms linear",opacity:0}),setTimeout(function(){oe.remove(),_n()},hn)},hn)):setTimeout(_n,hn)}),this},oe.isStarted=function(){return typeof oe.status=="number"},oe.start=function(){oe.status||oe.set(0);var Ue=function(){setTimeout(function(){oe.status&&(oe.trickle(),Ue())},ae.trickleSpeed)};return ae.trickle&&Ue(),this},oe.done=function(Ue){return!Ue&&!oe.status?this:oe.inc(.3+.5*Math.random()).set(1)},oe.inc=function(Ue){var qe=oe.status;return qe?(typeof Ue!="number"&&(Ue=(1-qe)*le(Math.random()*qe,.1,.95)),qe=le(qe+Ue,0,.994),oe.set(qe)):oe.start()},oe.trickle=function(){return oe.inc(Math.random()*ae.trickleRate)},function(){var Ue=0,qe=0;oe.promise=function(At){return!At||At.state()==="resolved"?this:(qe===0&&oe.start(),Ue++,qe++,At.always(function(){qe--,qe===0?(Ue=0,oe.done()):oe.set((Ue-qe)/Ue)}),this)}}(),oe.render=function(Ue){if(oe.isRendered())return document.getElementById("nprogress");xe(document.documentElement,"nprogress-busy");var qe=document.createElement("div");qe.id="nprogress",qe.innerHTML=ae.template;var At=qe.querySelector(ae.barSelector),Lt=Ue?"-100":ue(oe.status||0),hn=document.querySelector(ae.parent),vn;return Ce(At,{transition:"all 0 linear",transform:"translate3d("+Lt+"%,0,0)"}),ae.showSpinner||(vn=qe.querySelector(ae.spinnerSelector),vn&&ze(vn)),hn!=document.body&&xe(hn,"nprogress-custom-parent"),hn.appendChild(qe),qe},oe.remove=function(){Ie(document.documentElement,"nprogress-busy"),Ie(document.querySelector(ae.parent),"nprogress-custom-parent");var Ue=document.getElementById("nprogress");Ue&&ze(Ue)},oe.isRendered=function(){return!!document.getElementById("nprogress")},oe.getPositioningCSS=function(){var Ue=document.body.style,qe="WebkitTransform"in Ue?"Webkit":"MozTransform"in Ue?"Moz":"msTransform"in Ue?"ms":"OTransform"in Ue?"O":"";return qe+"Perspective"in Ue?"translate3d":qe+"Transform"in Ue?"translate":"margin"};function le(Ue,qe,At){return Ue<qe?qe:Ue>At?At:Ue}function ue(Ue){return(-1+Ue)*100}function pe(Ue,qe,At){var Lt;return ae.positionUsing==="translate3d"?Lt={transform:"translate3d("+ue(Ue)+"%,0,0)"}:ae.positionUsing==="translate"?Lt={transform:"translate("+ue(Ue)+"%,0)"}:Lt={"margin-left":ue(Ue)+"%"},Lt.transition="all "+qe+"ms "+At,Lt}var _e=function(){var Ue=[];function qe(){var At=Ue.shift();At&&At(qe)}return function(At){Ue.push(At),Ue.length==1&&qe()}}(),Ce=function(){var Ue=["Webkit","O","Moz","ms"],qe={};function At(_n){return _n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(bn,Sn){return Sn.toUpperCase()})}function Lt(_n){var bn=document.body.style;if(_n in bn)return _n;for(var Sn=Ue.length,Cn=_n.charAt(0).toUpperCase()+_n.slice(1),En;Sn--;)if(En=Ue[Sn]+Cn,En in bn)return En;return _n}function hn(_n){return _n=At(_n),qe[_n]||(qe[_n]=Lt(_n))}function vn(_n,bn,Sn){bn=hn(bn),_n.style[bn]=Sn}return function(_n,bn){var Sn=arguments,Cn,En;if(Sn.length==2)for(Cn in bn)En=bn[Cn],En!==void 0&&bn.hasOwnProperty(Cn)&&vn(_n,Cn,En);else vn(_n,Sn[1],Sn[2])}}();function $e(Ue,qe){var At=typeof Ue=="string"?Ue:Fe(Ue);return At.indexOf(" "+qe+" ")>=0}function xe(Ue,qe){var At=Fe(Ue),Lt=At+qe;$e(At,qe)||(Ue.className=Lt.substring(1))}function Ie(Ue,qe){var At=Fe(Ue),Lt;$e(Ue,qe)&&(Lt=At.replace(" "+qe+" "," "),Ue.className=Lt.substring(1,Lt.length-1))}function Fe(Ue){return(" "+(Ue.className||"")+" ").replace(/\s+/gi," ")}function ze(Ue){Ue&&Ue.parentNode&&Ue.parentNode.removeChild(Ue)}return oe})})(nprogress$1);var nprogressExports=nprogress$1.exports;const NProgress=getDefaultExportFromCjs(nprogressExports),nprogress="";NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const defaultConfig$1={timeout:1e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},paramsSerializer:{serialize:lib.stringify}},Qr=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(z){return new Promise(oe=>{Qr.requests.push(ae=>{z.headers.Authorization=formatToken(ae),oe(z)})})}httpInterceptorsRequest(){Qr.axiosInstance.interceptors.request.use(async z=>(NProgress.start(),typeof z.beforeRequestCallback=="function"?(z.beforeRequestCallback(z),z):Qr.initConfig.beforeRequestCallback?(Qr.initConfig.beforeRequestCallback(z),z):["/refreshToken","/login"].some(ae=>z.url.indexOf(ae)>-1)?z:new Promise(ae=>{const le=getToken();if(le){const ue=new Date().getTime();parseInt(le.expires)-ue<=0?(Qr.isRefreshing||(Qr.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:le.refreshToken}).then(_e=>{const Ce=_e.data.accessToken;z.headers.Authorization=formatToken(Ce),Qr.requests.forEach($e=>$e(Ce)),Qr.requests=[]}).finally(()=>{Qr.isRefreshing=!1})),ae(Qr.retryOriginalRequest(z))):(z.headers.Authorization=formatToken(le.accessToken),ae(z))}else ae(z)})),z=>Promise.reject(z))}httpInterceptorsResponse(){Qr.axiosInstance.interceptors.response.use(oe=>{const ae=oe.config;return NProgress.done(),typeof ae.beforeResponseCallback=="function"?(ae.beforeResponseCallback(oe),oe.data):(Qr.initConfig.beforeResponseCallback&&Qr.initConfig.beforeResponseCallback(oe),oe.data)},oe=>{const ae=oe;return ae.isCancelRequest=axios$1.isCancel(ae),NProgress.done(),Promise.reject(ae)})}request(z,oe,ae,le){const ue={method:z,url:oe,...ae,...le};return new Promise((pe,_e)=>{Qr.axiosInstance.request(ue).then(Ce=>{pe(Ce)}).catch(Ce=>{_e(Ce)})})}post(z,oe,ae){return this.request("post",z,oe,ae)}get(z,oe,ae){return this.request("get",z,oe,ae)}};let PureHttp=Qr;no(PureHttp,"requests",[]),no(PureHttp,"isRefreshing",!1),no(PureHttp,"initConfig",{}),no(PureHttp,"axiosInstance",axios$1.create(defaultConfig$1));const http=new PureHttp,getLogin=$=>http.request("post","/login",{data:$}),refreshTokenApi=$=>http.request("post","/refreshToken",{data:$}),useMultiTagsStore=defineStore({id:"pure-multiTags",state:()=>{var $,z;return{multiTags:($=Kn().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&$.multiTagsCache?Kn().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(z=Kn().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:z.multiTagsCache}},getters:{getMultiTagsCache($){return $.multiTagsCache}},actions:{multiTagsCacheChange($){this.multiTagsCache=$,$?Kn().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):Kn().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache($){this.getMultiTagsCache&&Kn().setItem(`${responsiveStorageNameSpace()}tags`,$)},handleTags($,z,oe){var ae,le,ue,pe,_e;switch($){case"equal":this.multiTags=z,this.tagsCache(this.multiTags);break;case"push":{const Ce=z;if((ae=Ce==null?void 0:Ce.meta)!=null&&ae.hiddenTag||mt(Ce==null?void 0:Ce.name)||((le=Ce==null?void 0:Ce.meta)==null?void 0:le.title.length)===0||Le((ue=Ce==null?void 0:Ce.meta)==null?void 0:ue.showLink)&&!((pe=Ce==null?void 0:Ce.meta)!=null&&pe.showLink))return;const $e=Ce.path,xe=this.multiTags.some(Ue=>Ue.path===$e),Ie=this.multiTags.some(Ue=>vt(Ue==null?void 0:Ue.query,Ce==null?void 0:Ce.query)),Fe=this.multiTags.some(Ue=>vt(Ue==null?void 0:Ue.params,Ce==null?void 0:Ce.params));if(xe&&Ie&&Fe)return;const ze=((_e=Ce==null?void 0:Ce.meta)==null?void 0:_e.dynamicLevel)??-1;if(ze>0&&this.multiTags.filter(Ue=>(Ue==null?void 0:Ue.path)===$e).length>=ze){const Ue=this.multiTags.findIndex(qe=>(qe==null?void 0:qe.path)===$e);Ue!==-1&&this.multiTags.splice(Ue,1)}this.multiTags.push(z),this.tagsCache(this.multiTags)}break;case"splice":if(oe)this.multiTags.splice(oe==null?void 0:oe.startIndex,oe==null?void 0:oe.length);else{const Ce=this.multiTags.findIndex($e=>$e.path===z);if(Ce===-1)return;this.multiTags.splice(Ce,1)}return this.tagsCache(this.multiTags),this.multiTags;case"slice":return this.multiTags.slice(-1)}}}});function useMultiTagsStoreHook(){return useMultiTagsStore(store)}const useUserStore=defineStore({id:"pure-user",state:()=>{var $,z;return{username:(($=tr().getItem(sessionKey))==null?void 0:$.username)??"",roles:((z=tr().getItem(sessionKey))==null?void 0:z.roles)??[],verifyCode:"",currentPage:0}},actions:{SET_USERNAME($){this.username=$},SET_ROLES($){this.roles=$},SET_VERIFYCODE($){this.verifyCode=$},SET_CURRENTPAGE($){this.currentPage=$},async loginByUsername($){return new Promise((z,oe)=>{getLogin($).then(ae=>{ae&&(setToken(ae.data),z(ae))}).catch(ae=>{oe(ae)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken($){return new Promise((z,oe)=>{refreshTokenApi($).then(ae=>{ae&&(setToken(ae.data),z(ae))}).catch(ae=>{oe(ae)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):tr().getItem(sessionKey)}function setToken($){var pe,_e;let z=0;const{accessToken:oe,refreshToken:ae}=$;z=new Date($.expires).getTime();const le=JSON.stringify({accessToken:oe,expires:z});z>0?api.set(TokenKey,le,{expires:(z-Date.now())/864e5}):api.set(TokenKey,le);function ue(Ce,$e){useUserStoreHook().SET_USERNAME(Ce),useUserStoreHook().SET_ROLES($e),tr().setItem(sessionKey,{refreshToken:ae,expires:z,username:Ce,roles:$e})}if($.username&&$.roles){const{username:Ce,roles:$e}=$;ue(Ce,$e)}else{const Ce=((pe=tr().getItem(sessionKey))==null?void 0:pe.username)??"",$e=((_e=tr().getItem(sessionKey))==null?void 0:_e.roles)??[];ue(Ce,$e)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=$=>"Bearer "+$;(function(){const $=pr(location.href),z=["username","roles","accessToken"],oe=z.length;if(Object.keys($).length!==oe)return;let ae=[],le=0;for(;le<oe;)Object.keys($).includes(z[le])&&ae.length<=oe?ae.push(z[le]):ae=[],le++;if(ae.length===oe){removeToken(),setToken($),delete $.roles,delete $.accessToken;const ue=`${location.origin}${location.pathname}${Xt(location.hash,"?")}?${JSON.stringify($).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(ue)}else return})();/*!
|
||
* vue-router v4.2.1
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const isBrowser$1=typeof window<"u";function isESModule($){return $.__esModule||$[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams($,z){const oe={};for(const ae in z){const le=z[ae];oe[ae]=isArray$3(le)?le.map($):$(le)}return oe}const noop$2=()=>{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=$=>$.replace(TRAILING_SLASH_RE,"");function parseURL($,z,oe="/"){let ae,le={},ue="",pe="";const _e=z.indexOf("#");let Ce=z.indexOf("?");return _e<Ce&&_e>=0&&(Ce=-1),Ce>-1&&(ae=z.slice(0,Ce),ue=z.slice(Ce+1,_e>-1?_e:z.length),le=$(ue)),_e>-1&&(ae=ae||z.slice(0,_e),pe=z.slice(_e,z.length)),ae=resolveRelativePath(ae??z,oe),{fullPath:ae+(ue&&"?")+ue+pe,path:ae,query:le,hash:pe}}function stringifyURL($,z){const oe=z.query?$(z.query):"";return z.path+(oe&&"?")+oe+(z.hash||"")}function stripBase($,z){return!z||!$.toLowerCase().startsWith(z.toLowerCase())?$:$.slice(z.length)||"/"}function isSameRouteLocation($,z,oe){const ae=z.matched.length-1,le=oe.matched.length-1;return ae>-1&&ae===le&&isSameRouteRecord(z.matched[ae],oe.matched[le])&&isSameRouteLocationParams(z.params,oe.params)&&$(z.query)===$(oe.query)&&z.hash===oe.hash}function isSameRouteRecord($,z){return($.aliasOf||$)===(z.aliasOf||z)}function isSameRouteLocationParams($,z){if(Object.keys($).length!==Object.keys(z).length)return!1;for(const oe in $)if(!isSameRouteLocationParamsValue($[oe],z[oe]))return!1;return!0}function isSameRouteLocationParamsValue($,z){return isArray$3($)?isEquivalentArray($,z):isArray$3(z)?isEquivalentArray(z,$):$===z}function isEquivalentArray($,z){return isArray$3(z)?$.length===z.length&&$.every((oe,ae)=>oe===z[ae]):$.length===1&&$[0]===z}function resolveRelativePath($,z){if($.startsWith("/"))return $;if(!$)return z;const oe=z.split("/"),ae=$.split("/"),le=ae[ae.length-1];(le===".."||le===".")&&ae.push("");let ue=oe.length-1,pe,_e;for(pe=0;pe<ae.length;pe++)if(_e=ae[pe],_e!==".")if(_e==="..")ue>1&&ue--;else break;return oe.slice(0,ue).join("/")+"/"+ae.slice(pe-(pe===ae.length?1:0)).join("/")}var NavigationType;(function($){$.pop="pop",$.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function($){$.back="back",$.forward="forward",$.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase($){if(!$)if(isBrowser$1){const z=document.querySelector("base");$=z&&z.getAttribute("href")||"/",$=$.replace(/^\w+:\/\/[^\/]+/,"")}else $="/";return $[0]!=="/"&&$[0]!=="#"&&($="/"+$),removeTrailingSlash($)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref($,z){return $.replace(BEFORE_HASH_RE,"#")+z}function getElementPosition($,z){const oe=document.documentElement.getBoundingClientRect(),ae=$.getBoundingClientRect();return{behavior:z.behavior,left:ae.left-oe.left-(z.left||0),top:ae.top-oe.top-(z.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition($){let z;if("el"in $){const oe=$.el,ae=typeof oe=="string"&&oe.startsWith("#"),le=typeof oe=="string"?ae?document.getElementById(oe.slice(1)):document.querySelector(oe):oe;if(!le)return;z=getElementPosition(le,$)}else z=$;"scrollBehavior"in document.documentElement.style?window.scrollTo(z):window.scrollTo(z.left!=null?z.left:window.pageXOffset,z.top!=null?z.top:window.pageYOffset)}function getScrollKey($,z){return(history.state?history.state.position-z:-1)+$}const scrollPositions=new Map;function saveScrollPosition($,z){scrollPositions.set($,z)}function getSavedScrollPosition($){const z=scrollPositions.get($);return scrollPositions.delete($),z}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation($,z){const{pathname:oe,search:ae,hash:le}=z,ue=$.indexOf("#");if(ue>-1){let _e=le.includes($.slice(ue))?$.slice(ue).length:1,Ce=le.slice(_e);return Ce[0]!=="/"&&(Ce="/"+Ce),stripBase(Ce,"")}return stripBase(oe,$)+ae+le}function useHistoryListeners($,z,oe,ae){let le=[],ue=[],pe=null;const _e=({state:Fe})=>{const ze=createCurrentLocation($,location),Ue=oe.value,qe=z.value;let At=0;if(Fe){if(oe.value=ze,z.value=Fe,pe&&pe===Ue){pe=null;return}At=qe?Fe.position-qe.position:0}else ae(ze);le.forEach(Lt=>{Lt(oe.value,Ue,{delta:At,type:NavigationType.pop,direction:At?At>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function Ce(){pe=oe.value}function $e(Fe){le.push(Fe);const ze=()=>{const Ue=le.indexOf(Fe);Ue>-1&&le.splice(Ue,1)};return ue.push(ze),ze}function xe(){const{history:Fe}=window;Fe.state&&Fe.replaceState(assign({},Fe.state,{scroll:computeScrollPosition()}),"")}function Ie(){for(const Fe of ue)Fe();ue=[],window.removeEventListener("popstate",_e),window.removeEventListener("beforeunload",xe)}return window.addEventListener("popstate",_e),window.addEventListener("beforeunload",xe,{passive:!0}),{pauseListeners:Ce,listen:$e,destroy:Ie}}function buildState($,z,oe,ae=!1,le=!1){return{back:$,current:z,forward:oe,replaced:ae,position:window.history.length,scroll:le?computeScrollPosition():null}}function useHistoryStateNavigation($){const{history:z,location:oe}=window,ae={value:createCurrentLocation($,oe)},le={value:z.state};le.value||ue(ae.value,{back:null,current:ae.value,forward:null,position:z.length-1,replaced:!0,scroll:null},!0);function ue(Ce,$e,xe){const Ie=$.indexOf("#"),Fe=Ie>-1?(oe.host&&document.querySelector("base")?$:$.slice(Ie))+Ce:createBaseLocation()+$+Ce;try{z[xe?"replaceState":"pushState"]($e,"",Fe),le.value=$e}catch(ze){console.error(ze),oe[xe?"replace":"assign"](Fe)}}function pe(Ce,$e){const xe=assign({},z.state,buildState(le.value.back,Ce,le.value.forward,!0),$e,{position:le.value.position});ue(Ce,xe,!0),ae.value=Ce}function _e(Ce,$e){const xe=assign({},le.value,z.state,{forward:Ce,scroll:computeScrollPosition()});ue(xe.current,xe,!0);const Ie=assign({},buildState(ae.value,Ce,null),{position:xe.position+1},$e);ue(Ce,Ie,!1),ae.value=Ce}return{location:ae,state:le,push:_e,replace:pe}}function createWebHistory($){$=normalizeBase($);const z=useHistoryStateNavigation($),oe=useHistoryListeners($,z.state,z.location,z.replace);function ae(ue,pe=!0){pe||oe.pauseListeners(),history.go(ue)}const le=assign({location:"",base:$,go:ae,createHref:createHref.bind(null,$)},z,oe);return Object.defineProperty(le,"location",{enumerable:!0,get:()=>z.location.value}),Object.defineProperty(le,"state",{enumerable:!0,get:()=>z.state.value}),le}function createWebHashHistory($){return $=location.host?$||location.pathname+location.search:"",$.includes("#")||($+="#"),createWebHistory($)}function isRouteLocation($){return typeof $=="string"||$&&typeof $=="object"}function isRouteName($){return typeof $=="string"||typeof $=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function($){$[$.aborted=4]="aborted",$[$.cancelled=8]="cancelled",$[$.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError($,z){return assign(new Error,{type:$,[NavigationFailureSymbol]:!0},z)}function isNavigationFailure($,z){return $ instanceof Error&&NavigationFailureSymbol in $&&(z==null||!!($.type&z))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser($,z){const oe=assign({},BASE_PATH_PARSER_OPTIONS,z),ae=[];let le=oe.start?"^":"";const ue=[];for(const $e of $){const xe=$e.length?[]:[90];oe.strict&&!$e.length&&(le+="/");for(let Ie=0;Ie<$e.length;Ie++){const Fe=$e[Ie];let ze=40+(oe.sensitive?.25:0);if(Fe.type===0)Ie||(le+="/"),le+=Fe.value.replace(REGEX_CHARS_RE,"\\$&"),ze+=40;else if(Fe.type===1){const{value:Ue,repeatable:qe,optional:At,regexp:Lt}=Fe;ue.push({name:Ue,repeatable:qe,optional:At});const hn=Lt||BASE_PARAM_PATTERN;if(hn!==BASE_PARAM_PATTERN){ze+=10;try{new RegExp(`(${hn})`)}catch(_n){throw new Error(`Invalid custom RegExp for param "${Ue}" (${hn}): `+_n.message)}}let vn=qe?`((?:${hn})(?:/(?:${hn}))*)`:`(${hn})`;Ie||(vn=At&&$e.length<2?`(?:/${vn})`:"/"+vn),At&&(vn+="?"),le+=vn,ze+=20,At&&(ze+=-8),qe&&(ze+=-20),hn===".*"&&(ze+=-50)}xe.push(ze)}ae.push(xe)}if(oe.strict&&oe.end){const $e=ae.length-1;ae[$e][ae[$e].length-1]+=.7000000000000001}oe.strict||(le+="/?"),oe.end?le+="$":oe.strict&&(le+="(?:/|$)");const pe=new RegExp(le,oe.sensitive?"":"i");function _e($e){const xe=$e.match(pe),Ie={};if(!xe)return null;for(let Fe=1;Fe<xe.length;Fe++){const ze=xe[Fe]||"",Ue=ue[Fe-1];Ie[Ue.name]=ze&&Ue.repeatable?ze.split("/"):ze}return Ie}function Ce($e){let xe="",Ie=!1;for(const Fe of $){(!Ie||!xe.endsWith("/"))&&(xe+="/"),Ie=!1;for(const ze of Fe)if(ze.type===0)xe+=ze.value;else if(ze.type===1){const{value:Ue,repeatable:qe,optional:At}=ze,Lt=Ue in $e?$e[Ue]:"";if(isArray$3(Lt)&&!qe)throw new Error(`Provided param "${Ue}" is an array but it is not repeatable (* or + modifiers)`);const hn=isArray$3(Lt)?Lt.join("/"):Lt;if(!hn)if(At)Fe.length<2&&(xe.endsWith("/")?xe=xe.slice(0,-1):Ie=!0);else throw new Error(`Missing required param "${Ue}"`);xe+=hn}}return xe||"/"}return{re:pe,score:ae,keys:ue,parse:_e,stringify:Ce}}function compareScoreArray($,z){let oe=0;for(;oe<$.length&&oe<z.length;){const ae=z[oe]-$[oe];if(ae)return ae;oe++}return $.length<z.length?$.length===1&&$[0]===40+40?-1:1:$.length>z.length?z.length===1&&z[0]===40+40?1:-1:0}function comparePathParserScore($,z){let oe=0;const ae=$.score,le=z.score;for(;oe<ae.length&&oe<le.length;){const ue=compareScoreArray(ae[oe],le[oe]);if(ue)return ue;oe++}if(Math.abs(le.length-ae.length)===1){if(isLastScoreNegative(ae))return 1;if(isLastScoreNegative(le))return-1}return le.length-ae.length}function isLastScoreNegative($){const z=$[$.length-1];return $.length>0&&z[z.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath($){if(!$)return[[]];if($==="/")return[[ROOT_TOKEN]];if(!$.startsWith("/"))throw new Error(`Invalid path "${$}"`);function z(ze){throw new Error(`ERR (${oe})/"${$e}": ${ze}`)}let oe=0,ae=oe;const le=[];let ue;function pe(){ue&&le.push(ue),ue=[]}let _e=0,Ce,$e="",xe="";function Ie(){$e&&(oe===0?ue.push({type:0,value:$e}):oe===1||oe===2||oe===3?(ue.length>1&&(Ce==="*"||Ce==="+")&&z(`A repeatable param (${$e}) must be alone in its segment. eg: '/:ids+.`),ue.push({type:1,value:$e,regexp:xe,repeatable:Ce==="*"||Ce==="+",optional:Ce==="*"||Ce==="?"})):z("Invalid state to consume buffer"),$e="")}function Fe(){$e+=Ce}for(;_e<$.length;){if(Ce=$[_e++],Ce==="\\"&&oe!==2){ae=oe,oe=4;continue}switch(oe){case 0:Ce==="/"?($e&&Ie(),pe()):Ce===":"?(Ie(),oe=1):Fe();break;case 4:Fe(),oe=ae;break;case 1:Ce==="("?oe=2:VALID_PARAM_RE.test(Ce)?Fe():(Ie(),oe=0,Ce!=="*"&&Ce!=="?"&&Ce!=="+"&&_e--);break;case 2:Ce===")"?xe[xe.length-1]=="\\"?xe=xe.slice(0,-1)+Ce:oe=3:xe+=Ce;break;case 3:Ie(),oe=0,Ce!=="*"&&Ce!=="?"&&Ce!=="+"&&_e--,xe="";break;default:z("Unknown state");break}}return oe===2&&z(`Unfinished custom RegExp for param "${$e}"`),Ie(),pe(),le}function createRouteRecordMatcher($,z,oe){const ae=tokensToParser(tokenizePath($.path),oe),le=assign(ae,{record:$,parent:z,children:[],alias:[]});return z&&!le.record.aliasOf==!z.record.aliasOf&&z.children.push(le),le}function createRouterMatcher($,z){const oe=[],ae=new Map;z=mergeOptions({strict:!1,end:!0,sensitive:!1},z);function le(xe){return ae.get(xe)}function ue(xe,Ie,Fe){const ze=!Fe,Ue=normalizeRouteRecord(xe);Ue.aliasOf=Fe&&Fe.record;const qe=mergeOptions(z,xe),At=[Ue];if("alias"in xe){const vn=typeof xe.alias=="string"?[xe.alias]:xe.alias;for(const _n of vn)At.push(assign({},Ue,{components:Fe?Fe.record.components:Ue.components,path:_n,aliasOf:Fe?Fe.record:Ue}))}let Lt,hn;for(const vn of At){const{path:_n}=vn;if(Ie&&_n[0]!=="/"){const bn=Ie.record.path,Sn=bn[bn.length-1]==="/"?"":"/";vn.path=Ie.record.path+(_n&&Sn+_n)}if(Lt=createRouteRecordMatcher(vn,Ie,qe),Fe?Fe.alias.push(Lt):(hn=hn||Lt,hn!==Lt&&hn.alias.push(Lt),ze&&xe.name&&!isAliasRecord(Lt)&&pe(xe.name)),Ue.children){const bn=Ue.children;for(let Sn=0;Sn<bn.length;Sn++)ue(bn[Sn],Lt,Fe&&Fe.children[Sn])}Fe=Fe||Lt,(Lt.record.components&&Object.keys(Lt.record.components).length||Lt.record.name||Lt.record.redirect)&&Ce(Lt)}return hn?()=>{pe(hn)}:noop$2}function pe(xe){if(isRouteName(xe)){const Ie=ae.get(xe);Ie&&(ae.delete(xe),oe.splice(oe.indexOf(Ie),1),Ie.children.forEach(pe),Ie.alias.forEach(pe))}else{const Ie=oe.indexOf(xe);Ie>-1&&(oe.splice(Ie,1),xe.record.name&&ae.delete(xe.record.name),xe.children.forEach(pe),xe.alias.forEach(pe))}}function _e(){return oe}function Ce(xe){let Ie=0;for(;Ie<oe.length&&comparePathParserScore(xe,oe[Ie])>=0&&(xe.record.path!==oe[Ie].record.path||!isRecordChildOf(xe,oe[Ie]));)Ie++;oe.splice(Ie,0,xe),xe.record.name&&!isAliasRecord(xe)&&ae.set(xe.record.name,xe)}function $e(xe,Ie){let Fe,ze={},Ue,qe;if("name"in xe&&xe.name){if(Fe=ae.get(xe.name),!Fe)throw createRouterError(1,{location:xe});qe=Fe.record.name,ze=assign(paramsFromLocation(Ie.params,Fe.keys.filter(hn=>!hn.optional).map(hn=>hn.name)),xe.params&¶msFromLocation(xe.params,Fe.keys.map(hn=>hn.name))),Ue=Fe.stringify(ze)}else if("path"in xe)Ue=xe.path,Fe=oe.find(hn=>hn.re.test(Ue)),Fe&&(ze=Fe.parse(Ue),qe=Fe.record.name);else{if(Fe=Ie.name?ae.get(Ie.name):oe.find(hn=>hn.re.test(Ie.path)),!Fe)throw createRouterError(1,{location:xe,currentLocation:Ie});qe=Fe.record.name,ze=assign({},Ie.params,xe.params),Ue=Fe.stringify(ze)}const At=[];let Lt=Fe;for(;Lt;)At.unshift(Lt.record),Lt=Lt.parent;return{name:qe,path:Ue,params:ze,matched:At,meta:mergeMetaFields(At)}}return $.forEach(xe=>ue(xe)),{addRoute:ue,resolve:$e,removeRoute:pe,getRoutes:_e,getRecordMatcher:le}}function paramsFromLocation($,z){const oe={};for(const ae of z)ae in $&&(oe[ae]=$[ae]);return oe}function normalizeRouteRecord($){return{path:$.path,redirect:$.redirect,name:$.name,meta:$.meta||{},aliasOf:void 0,beforeEnter:$.beforeEnter,props:normalizeRecordProps($),children:$.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in $?$.components||null:$.component&&{default:$.component}}}function normalizeRecordProps($){const z={},oe=$.props||!1;if("component"in $)z.default=oe;else for(const ae in $.components)z[ae]=typeof oe=="boolean"?oe:oe[ae];return z}function isAliasRecord($){for(;$;){if($.record.aliasOf)return!0;$=$.parent}return!1}function mergeMetaFields($){return $.reduce((z,oe)=>assign(z,oe.meta),{})}function mergeOptions($,z){const oe={};for(const ae in $)oe[ae]=ae in z?z[ae]:$[ae];return oe}function isRecordChildOf($,z){return z.children.some(oe=>oe===$||isRecordChildOf($,oe))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode($){return encodeURI(""+$).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash($){return commonEncode($).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue($){return commonEncode($).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey($){return encodeQueryValue($).replace(EQUAL_RE,"%3D")}function encodePath($){return commonEncode($).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam($){return $==null?"":encodePath($).replace(SLASH_RE,"%2F")}function decode$1($){try{return decodeURIComponent(""+$)}catch{}return""+$}function parseQuery($){const z={};if($===""||$==="?")return z;const ae=($[0]==="?"?$.slice(1):$).split("&");for(let le=0;le<ae.length;++le){const ue=ae[le].replace(PLUS_RE," "),pe=ue.indexOf("="),_e=decode$1(pe<0?ue:ue.slice(0,pe)),Ce=pe<0?null:decode$1(ue.slice(pe+1));if(_e in z){let $e=z[_e];isArray$3($e)||($e=z[_e]=[$e]),$e.push(Ce)}else z[_e]=Ce}return z}function stringifyQuery($){let z="";for(let oe in $){const ae=$[oe];if(oe=encodeQueryKey(oe),ae==null){ae!==void 0&&(z+=(z.length?"&":"")+oe);continue}(isArray$3(ae)?ae.map(ue=>ue&&encodeQueryValue(ue)):[ae&&encodeQueryValue(ae)]).forEach(ue=>{ue!==void 0&&(z+=(z.length?"&":"")+oe,ue!=null&&(z+="="+ue))})}return z}function normalizeQuery($){const z={};for(const oe in $){const ae=$[oe];ae!==void 0&&(z[oe]=isArray$3(ae)?ae.map(le=>le==null?null:""+le):ae==null?ae:""+ae)}return z}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let $=[];function z(ae){return $.push(ae),()=>{const le=$.indexOf(ae);le>-1&&$.splice(le,1)}}function oe(){$=[]}return{add:z,list:()=>$,reset:oe}}function guardToPromiseFn($,z,oe,ae,le){const ue=ae&&(ae.enterCallbacks[le]=ae.enterCallbacks[le]||[]);return()=>new Promise((pe,_e)=>{const Ce=Ie=>{Ie===!1?_e(createRouterError(4,{from:oe,to:z})):Ie instanceof Error?_e(Ie):isRouteLocation(Ie)?_e(createRouterError(2,{from:z,to:Ie})):(ue&&ae.enterCallbacks[le]===ue&&typeof Ie=="function"&&ue.push(Ie),pe())},$e=$.call(ae&&ae.instances[le],z,oe,Ce);let xe=Promise.resolve($e);$.length<3&&(xe=xe.then(Ce)),xe.catch(Ie=>_e(Ie))})}function extractComponentsGuards($,z,oe,ae){const le=[];for(const ue of $)for(const pe in ue.components){let _e=ue.components[pe];if(!(z!=="beforeRouteEnter"&&!ue.instances[pe]))if(isRouteComponent(_e)){const $e=(_e.__vccOpts||_e)[z];$e&&le.push(guardToPromiseFn($e,oe,ae,ue,pe))}else{let Ce=_e();le.push(()=>Ce.then($e=>{if(!$e)return Promise.reject(new Error(`Couldn't resolve component "${pe}" at "${ue.path}"`));const xe=isESModule($e)?$e.default:$e;ue.components[pe]=xe;const Fe=(xe.__vccOpts||xe)[z];return Fe&&guardToPromiseFn(Fe,oe,ae,ue,pe)()}))}}return le}function isRouteComponent($){return typeof $=="object"||"displayName"in $||"props"in $||"__vccOpts"in $}function useLink($){const z=inject(routerKey),oe=inject(routeLocationKey),ae=computed(()=>z.resolve(unref($.to))),le=computed(()=>{const{matched:Ce}=ae.value,{length:$e}=Ce,xe=Ce[$e-1],Ie=oe.matched;if(!xe||!Ie.length)return-1;const Fe=Ie.findIndex(isSameRouteRecord.bind(null,xe));if(Fe>-1)return Fe;const ze=getOriginalPath(Ce[$e-2]);return $e>1&&getOriginalPath(xe)===ze&&Ie[Ie.length-1].path!==ze?Ie.findIndex(isSameRouteRecord.bind(null,Ce[$e-2])):Fe}),ue=computed(()=>le.value>-1&&includesParams(oe.params,ae.value.params)),pe=computed(()=>le.value>-1&&le.value===oe.matched.length-1&&isSameRouteLocationParams(oe.params,ae.value.params));function _e(Ce={}){return guardEvent(Ce)?z[unref($.replace)?"replace":"push"](unref($.to)).catch(noop$2):Promise.resolve()}return{route:ae,href:computed(()=>ae.value.href),isActive:ue,isExactActive:pe,navigate:_e}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup($,{slots:z}){const oe=reactive(useLink($)),{options:ae}=inject(routerKey),le=computed(()=>({[getLinkClass($.activeClass,ae.linkActiveClass,"router-link-active")]:oe.isActive,[getLinkClass($.exactActiveClass,ae.linkExactActiveClass,"router-link-exact-active")]:oe.isExactActive}));return()=>{const ue=z.default&&z.default(oe);return $.custom?ue:h$3("a",{"aria-current":oe.isExactActive?$.ariaCurrentValue:null,href:oe.href,onClick:oe.navigate,class:le.value},ue)}}}),RouterLink=RouterLinkImpl;function guardEvent($){if(!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)&&!$.defaultPrevented&&!($.button!==void 0&&$.button!==0)){if($.currentTarget&&$.currentTarget.getAttribute){const z=$.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(z))return}return $.preventDefault&&$.preventDefault(),!0}}function includesParams($,z){for(const oe in z){const ae=z[oe],le=$[oe];if(typeof ae=="string"){if(ae!==le)return!1}else if(!isArray$3(le)||le.length!==ae.length||ae.some((ue,pe)=>ue!==le[pe]))return!1}return!0}function getOriginalPath($){return $?$.aliasOf?$.aliasOf.path:$.path:""}const getLinkClass=($,z,oe)=>$??z??oe,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup($,{attrs:z,slots:oe}){const ae=inject(routerViewLocationKey),le=computed(()=>$.route||ae.value),ue=inject(viewDepthKey,0),pe=computed(()=>{let $e=unref(ue);const{matched:xe}=le.value;let Ie;for(;(Ie=xe[$e])&&!Ie.components;)$e++;return $e}),_e=computed(()=>le.value.matched[pe.value]);provide(viewDepthKey,computed(()=>pe.value+1)),provide(matchedRouteKey,_e),provide(routerViewLocationKey,le);const Ce=ref();return watch(()=>[Ce.value,_e.value,$.name],([$e,xe,Ie],[Fe,ze,Ue])=>{xe&&(xe.instances[Ie]=$e,ze&&ze!==xe&&$e&&$e===Fe&&(xe.leaveGuards.size||(xe.leaveGuards=ze.leaveGuards),xe.updateGuards.size||(xe.updateGuards=ze.updateGuards))),$e&&xe&&(!ze||!isSameRouteRecord(xe,ze)||!Fe)&&(xe.enterCallbacks[Ie]||[]).forEach(qe=>qe($e))},{flush:"post"}),()=>{const $e=le.value,xe=$.name,Ie=_e.value,Fe=Ie&&Ie.components[xe];if(!Fe)return normalizeSlot(oe.default,{Component:Fe,route:$e});const ze=Ie.props[xe],Ue=ze?ze===!0?$e.params:typeof ze=="function"?ze($e):ze:null,At=h$3(Fe,assign({},Ue,z,{onVnodeUnmounted:Lt=>{Lt.component.isUnmounted&&(Ie.instances[xe]=null)},ref:Ce}));return normalizeSlot(oe.default,{Component:At,route:$e})||At}}});function normalizeSlot($,z){if(!$)return null;const oe=$(z);return oe.length===1?oe[0]:oe}const RouterView=RouterViewImpl;function createRouter($){const z=createRouterMatcher($.routes,$),oe=$.parseQuery||parseQuery,ae=$.stringifyQuery||stringifyQuery,le=$.history,ue=useCallbacks(),pe=useCallbacks(),_e=useCallbacks(),Ce=shallowRef(START_LOCATION_NORMALIZED);let $e=START_LOCATION_NORMALIZED;isBrowser$1&&$.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const xe=applyToParams.bind(null,qn=>""+qn),Ie=applyToParams.bind(null,encodeParam),Fe=applyToParams.bind(null,decode$1);function ze(qn,Gn){let Wn,Qn;return isRouteName(qn)?(Wn=z.getRecordMatcher(qn),Qn=Gn):Qn=qn,z.addRoute(Qn,Wn)}function Ue(qn){const Gn=z.getRecordMatcher(qn);Gn&&z.removeRoute(Gn)}function qe(){return z.getRoutes().map(qn=>qn.record)}function At(qn){return!!z.getRecordMatcher(qn)}function Lt(qn,Gn){if(Gn=assign({},Gn||Ce.value),typeof qn=="string"){const nr=parseURL(oe,qn,Gn.path),hr=z.resolve({path:nr.path},Gn),gr=le.createHref(nr.fullPath);return assign(nr,hr,{params:Fe(hr.params),hash:decode$1(nr.hash),redirectedFrom:void 0,href:gr})}let Wn;if("path"in qn)Wn=assign({},qn,{path:parseURL(oe,qn.path,Gn.path).path});else{const nr=assign({},qn.params);for(const hr in nr)nr[hr]==null&&delete nr[hr];Wn=assign({},qn,{params:Ie(nr)}),Gn.params=Ie(Gn.params)}const Qn=z.resolve(Wn,Gn),cr=qn.hash||"";Qn.params=xe(Fe(Qn.params));const jn=stringifyURL(ae,assign({},qn,{hash:encodeHash(cr),path:Qn.path})),Zn=le.createHref(jn);return assign({fullPath:jn,hash:cr,query:ae===stringifyQuery?normalizeQuery(qn.query):qn.query||{}},Qn,{redirectedFrom:void 0,href:Zn})}function hn(qn){return typeof qn=="string"?parseURL(oe,qn,Ce.value.path):assign({},qn)}function vn(qn,Gn){if($e!==qn)return createRouterError(8,{from:Gn,to:qn})}function _n(qn){return Cn(qn)}function bn(qn){return _n(assign(hn(qn),{replace:!0}))}function Sn(qn){const Gn=qn.matched[qn.matched.length-1];if(Gn&&Gn.redirect){const{redirect:Wn}=Gn;let Qn=typeof Wn=="function"?Wn(qn):Wn;return typeof Qn=="string"&&(Qn=Qn.includes("?")||Qn.includes("#")?Qn=hn(Qn):{path:Qn},Qn.params={}),assign({query:qn.query,hash:qn.hash,params:"path"in Qn?{}:qn.params},Qn)}}function Cn(qn,Gn){const Wn=$e=Lt(qn),Qn=Ce.value,cr=qn.state,jn=qn.force,Zn=qn.replace===!0,nr=Sn(Wn);if(nr)return Cn(assign(hn(nr),{state:typeof nr=="object"?assign({},cr,nr.state):cr,force:jn,replace:Zn}),Gn||Wn);const hr=Wn;hr.redirectedFrom=Gn;let gr;return!jn&&isSameRouteLocation(ae,Qn,Wn)&&(gr=createRouterError(16,{to:hr,from:Qn}),Yn(Qn,Qn,!0,!1)),(gr?Promise.resolve(gr):wn(hr,Qn)).catch(or=>isNavigationFailure(or)?isNavigationFailure(or,2)?or:Vn(or):Ln(or,hr,Qn)).then(or=>{if(or){if(isNavigationFailure(or,2))return Cn(assign({replace:Zn},hn(or.to),{state:typeof or.to=="object"?assign({},cr,or.to.state):cr,force:jn}),Gn||hr)}else or=xn(hr,Qn,!0,Zn,cr);return Tn(hr,Qn,or),or})}function En(qn,Gn){const Wn=vn(qn,Gn);return Wn?Promise.reject(Wn):Promise.resolve()}function $n(qn){const Gn=sr.values().next().value;return Gn&&typeof Gn.runWithContext=="function"?Gn.runWithContext(qn):qn()}function wn(qn,Gn){let Wn;const[Qn,cr,jn]=extractChangingRecords(qn,Gn);Wn=extractComponentsGuards(Qn.reverse(),"beforeRouteLeave",qn,Gn);for(const nr of Qn)nr.leaveGuards.forEach(hr=>{Wn.push(guardToPromiseFn(hr,qn,Gn))});const Zn=En.bind(null,qn,Gn);return Wn.push(Zn),ar(Wn).then(()=>{Wn=[];for(const nr of ue.list())Wn.push(guardToPromiseFn(nr,qn,Gn));return Wn.push(Zn),ar(Wn)}).then(()=>{Wn=extractComponentsGuards(cr,"beforeRouteUpdate",qn,Gn);for(const nr of cr)nr.updateGuards.forEach(hr=>{Wn.push(guardToPromiseFn(hr,qn,Gn))});return Wn.push(Zn),ar(Wn)}).then(()=>{Wn=[];for(const nr of qn.matched)if(nr.beforeEnter&&!Gn.matched.includes(nr))if(isArray$3(nr.beforeEnter))for(const hr of nr.beforeEnter)Wn.push(guardToPromiseFn(hr,qn,Gn));else Wn.push(guardToPromiseFn(nr.beforeEnter,qn,Gn));return Wn.push(Zn),ar(Wn)}).then(()=>(qn.matched.forEach(nr=>nr.enterCallbacks={}),Wn=extractComponentsGuards(jn,"beforeRouteEnter",qn,Gn),Wn.push(Zn),ar(Wn))).then(()=>{Wn=[];for(const nr of pe.list())Wn.push(guardToPromiseFn(nr,qn,Gn));return Wn.push(Zn),ar(Wn)}).catch(nr=>isNavigationFailure(nr,8)?nr:Promise.reject(nr))}function Tn(qn,Gn,Wn){for(const Qn of _e.list())$n(()=>Qn(qn,Gn,Wn))}function xn(qn,Gn,Wn,Qn,cr){const jn=vn(qn,Gn);if(jn)return jn;const Zn=Gn===START_LOCATION_NORMALIZED,nr=isBrowser$1?history.state:{};Wn&&(Qn||Zn?le.replace(qn.fullPath,assign({scroll:Zn&&nr&&nr.scroll},cr)):le.push(qn.fullPath,cr)),Ce.value=qn,Yn(qn,Gn,Wn,Zn),Vn()}let kn;function Nn(){kn||(kn=le.listen((qn,Gn,Wn)=>{if(!vr.listening)return;const Qn=Lt(qn),cr=Sn(Qn);if(cr){Cn(assign(cr,{replace:!0}),Qn).catch(noop$2);return}$e=Qn;const jn=Ce.value;isBrowser$1&&saveScrollPosition(getScrollKey(jn.fullPath,Wn.delta),computeScrollPosition()),wn(Qn,jn).catch(Zn=>isNavigationFailure(Zn,12)?Zn:isNavigationFailure(Zn,2)?(Cn(Zn.to,Qn).then(nr=>{isNavigationFailure(nr,20)&&!Wn.delta&&Wn.type===NavigationType.pop&&le.go(-1,!1)}).catch(noop$2),Promise.reject()):(Wn.delta&&le.go(-Wn.delta,!1),Ln(Zn,Qn,jn))).then(Zn=>{Zn=Zn||xn(Qn,jn,!1),Zn&&(Wn.delta&&!isNavigationFailure(Zn,8)?le.go(-Wn.delta,!1):Wn.type===NavigationType.pop&&isNavigationFailure(Zn,20)&&le.go(-1,!1)),Tn(Qn,jn,Zn)}).catch(noop$2)}))}let Bn=useCallbacks(),Dn=useCallbacks(),In;function Ln(qn,Gn,Wn){Vn(qn);const Qn=Dn.list();return Qn.length?Qn.forEach(cr=>cr(qn,Gn,Wn)):console.error(qn),Promise.reject(qn)}function Mn(){return In&&Ce.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((qn,Gn)=>{Bn.add([qn,Gn])})}function Vn(qn){return In||(In=!qn,Nn(),Bn.list().forEach(([Gn,Wn])=>qn?Wn(qn):Gn()),Bn.reset()),qn}function Yn(qn,Gn,Wn,Qn){const{scrollBehavior:cr}=$;if(!isBrowser$1||!cr)return Promise.resolve();const jn=!Wn&&getSavedScrollPosition(getScrollKey(qn.fullPath,0))||(Qn||!Wn)&&history.state&&history.state.scroll||null;return nextTick().then(()=>cr(qn,Gn,jn)).then(Zn=>Zn&&scrollToPosition(Zn)).catch(Zn=>Ln(Zn,qn,Gn))}const Fn=qn=>le.go(qn);let Xn;const sr=new Set,vr={currentRoute:Ce,listening:!0,addRoute:ze,removeRoute:Ue,hasRoute:At,getRoutes:qe,resolve:Lt,options:$,push:_n,replace:bn,go:Fn,back:()=>Fn(-1),forward:()=>Fn(1),beforeEach:ue.add,beforeResolve:pe.add,afterEach:_e.add,onError:Dn.add,isReady:Mn,install(qn){const Gn=this;qn.component("RouterLink",RouterLink),qn.component("RouterView",RouterView),qn.config.globalProperties.$router=Gn,Object.defineProperty(qn.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(Ce)}),isBrowser$1&&!Xn&&Ce.value===START_LOCATION_NORMALIZED&&(Xn=!0,_n(le.location).catch(cr=>{}));const Wn={};for(const cr in START_LOCATION_NORMALIZED)Wn[cr]=computed(()=>Ce.value[cr]);qn.provide(routerKey,Gn),qn.provide(routeLocationKey,reactive(Wn)),qn.provide(routerViewLocationKey,Ce);const Qn=qn.unmount;sr.add(qn),qn.unmount=function(){sr.delete(qn),sr.size<1&&($e=START_LOCATION_NORMALIZED,kn&&kn(),kn=null,Ce.value=START_LOCATION_NORMALIZED,Xn=!1,In=!1),Qn()}}};function ar(qn){return qn.reduce((Gn,Wn)=>Gn.then(()=>$n(Wn)),Promise.resolve())}return vr}function extractChangingRecords($,z){const oe=[],ae=[],le=[],ue=Math.max(z.matched.length,$.matched.length);for(let pe=0;pe<ue;pe++){const _e=z.matched[pe];_e&&($.matched.find($e=>isSameRouteRecord($e,_e))?ae.push(_e):oe.push(_e));const Ce=$.matched[pe];Ce&&(z.matched.find($e=>isSameRouteRecord($e,Ce))||le.push(Ce))}return[oe,ae,le]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const extractPathList=$=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];const z=[];for(const oe of $)oe.children&&oe.children.length>0&&extractPathList(oe.children),z.push(oe.uniqueId);return z},deleteChildren=($,z=[])=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const[oe,ae]of $.entries())ae.children&&ae.children.length===1&&delete ae.children,ae.id=oe,ae.parentId=z.length?z[z.length-1]:null,ae.pathList=[...z,ae.id],ae.uniqueId=ae.pathList.length>1?ae.pathList.join("-"):ae.pathList[0],ae.children&&ae.children.length>0&&deleteChildren(ae.children,ae.pathList);return $},buildHierarchyTree=($,z=[])=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];for(const[oe,ae]of $.entries())ae.id=oe,ae.parentId=z.length?z[z.length-1]:null,ae.pathList=[...z,ae.id],ae.children&&ae.children.length>0&&buildHierarchyTree(ae.children,ae.pathList);return $},getNodeByUniqueId=($,z)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];const oe=$.find(le=>le.uniqueId===z);if(oe)return oe;const ae=$.filter(le=>le.children).map(le=>le.children).flat(1);return getNodeByUniqueId(ae,z)},appendFieldByUniqueId=($,z,oe)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const ae of $){const le=ae.children&&ae.children.length>0;ae.uniqueId===z&&Object.prototype.toString.call(oe)==="[object Object]"&&Object.assign(ae,oe),le&&appendFieldByUniqueId(ae.children,z,oe)}return $},handleTree=($,z,oe,ae)=>{if(!Array.isArray($))return console.warn("data must be an array"),[];const le={id:z||"id",parentId:oe||"parentId",childrenList:ae||"children"},ue={},pe={},_e=[];for(const $e of $){const xe=$e[le.parentId];ue[xe]==null&&(ue[xe]=[]),pe[$e[le.id]]=$e,ue[xe].push($e)}for(const $e of $){const xe=$e[le.parentId];pe[xe]==null&&_e.push($e)}for(const $e of _e)Ce($e);function Ce($e){if(ue[$e[le.id]]!==null&&($e[le.childrenList]=ue[$e[le.id]]),$e[le.childrenList])for(const xe of $e[le.childrenList])Ce(xe)}return _e},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-8e754f73.js"),["static/js/frameView-8e754f73.js","static/css/frameView-ed080731.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-09c07f75.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-9e55487b.js"),["static/js/cascader-9e55487b.js","static/css/cascader-843853c0.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-a18596cf.js"),["static/js/debounce-a18596cf.js","static/js/message-5d48ae52.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-78399909.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-757ee399.js"),["static/js/execl-757ee399.js","static/js/xlsx-f5126985.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-1b0b8855.js"),["static/js/icon-select-1b0b8855.js","static/css/icon-select-e8efdfdc.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-2b66ae46.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-e976d44a.js"),["static/js/line-tree-e976d44a.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-6202e316.js"),["static/js/menu-tree-6202e316.js","static/js/hooks-f16ca4cf.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-c0e096b8.js"),["static/js/pdf-c0e096b8.js","static/js/vue.runtime.esm-bundler-51ffd45f.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-82596a6e.js"),["static/js/print-82596a6e.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-6e09f980.js","static/js/app-bdb35527.js","static/css/print-8831c8b6.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-cb8ba5f0.js"),["static/js/qrcode-cb8ba5f0.js","static/js/message-5d48ae52.js","static/js/index-09ba896a.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper-badfcc35.js"),["static/js/swiper-badfcc35.js","static/css/swiper-4182dcb7.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-6bf7ffe6.js"),["static/js/timeline-6bf7ffe6.js","static/js/index-7bee6064.js","static/css/index-18417f34.css","static/js/hooks-f16ca4cf.js","static/js/iphone-bcaa848c.js","static/css/timeline-12434188.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-35034ca3.js"),["static/js/horizontal-35034ca3.js","static/js/vue-virtual-scroller.esm-d5446ad4.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-1fa4fbb0.js"),["static/js/index-1fa4fbb0.js","static/js/vertical-698eb733.js","static/js/vue-virtual-scroller.esm-d5446ad4.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-35034ca3.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-698eb733.js"),["static/js/vertical-698eb733.js","static/js/vue-virtual-scroller.esm-d5446ad4.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-0694701e.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-56fd8ed3.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-c2bcea2c.js"),["static/js/index-c2bcea2c.js","static/js/columns-56fd8ed3.js","static/css/index-cb8197dd.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-36a619d1.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-cf1fac86.js"),["static/js/basic-cf1fac86.js","static/js/index.esm-07ba7d67.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-d8eb7132.js"),["static/js/index-d8eb7132.js","static/js/basic-cf1fac86.js","static/js/index.esm-07ba7d67.js","static/css/basic-d842f1a0.css","static/js/menuGroup-b1c7bbe4.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-b455178c.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-b455178c.js"),["static/js/menuDynamic-b455178c.js","static/js/index.esm-07ba7d67.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-b1c7bbe4.js"),["static/js/menuGroup-b1c7bbe4.js","static/js/index.esm-07ba7d67.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-02616a9c.js"),["static/js/index-02616a9c.js","static/js/propTypes-3b04af70.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-6bded8fc.js"),["static/js/index-6bded8fc.js","static/css/index-fdfcfa11.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-76f71804.js"),["static/js/index-76f71804.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form-0e146c38.js"),["static/js/form-0e146c38.js","static/js/form.vue_vue_type_script_setup_true_lang-e496182b.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-50065f80.js"),["static/js/index-50065f80.js","static/js/message-5d48ae52.js","static/js/form.vue_vue_type_script_setup_true_lang-e496182b.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-e2e67572.js"),["static/js/index-e2e67572.js","static/js/sortable.esm-e674cde8.js","static/js/app-bdb35527.js","static/js/hooks-f16ca4cf.js","static/css/index-b2ddca14.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-2f47cbab.js"),["static/js/index-2f47cbab.js","static/js/styles-a1771eb6.js","static/js/vue.runtime.esm-bundler-51ffd45f.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-929ad8fe.js"),["static/js/index-929ad8fe.js","static/css/index-c6f744fa.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-05231cad.js"),["static/js/index-05231cad.js","static/js/message-5d48ae52.js","static/js/hooks-f16ca4cf.js","static/js/check-3815600c.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-074ee1e4.js"),["static/js/index-074ee1e4.js","static/js/index-70c4c0c6.js","static/css/index-53a917f7.css"]),"/src/views/components/segmented/index.vue":()=>__vitePreload(()=>import("./index-de118945.js"),["static/js/index-de118945.js","static/js/message-5d48ae52.js","static/js/home-filled-05cc090c.js","static/js/hooks-f16ca4cf.js","static/css/index-fa517f4b.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-5420a738.js"),["static/js/index-5420a738.js","static/css/index-ea4ab5c7.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-0b1299db.js"),["static/js/index-0b1299db.js","static/css/index-e0a7f2a0.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-0fd2572e.js"),["static/js/index-0fd2572e.js","static/js/index-71ff165a.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-e83b2a0a.js"),["static/js/index-e83b2a0a.js","static/js/hooks-f16ca4cf.js","static/css/index-12dd4e77.css"]),"/src/views/components/waterfall/index.vue":()=>__vitePreload(()=>import("./index-0aa47116.js"),["static/js/index-0aa47116.js","static/js/back_top-18fdcea3.js","static/css/index-d102724b.css"]),"/src/views/editor/components/base.vue":()=>__vitePreload(()=>import("./base-58956d02.js"),["static/js/base-58956d02.js","static/js/base.vue_vue_type_script_setup_true_lang-f64ef53f.js","static/js/index.esm-3141d836.js","static/css/index-f38a3df6.css"]),"/src/views/editor/components/multi.vue":()=>__vitePreload(()=>import("./multi-c9201452.js"),["static/js/multi-c9201452.js","static/js/multi.vue_vue_type_script_setup_true_lang-434c613d.js","static/js/index-0ccbec8c.js","static/js/index.esm-3141d836.js","static/css/index-f38a3df6.css"]),"/src/views/editor/components/picUpload.vue":()=>__vitePreload(()=>import("./picUpload-67e11b1c.js"),["static/js/picUpload-67e11b1c.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-4b0a1ce3.js","static/js/index.esm-3141d836.js","static/css/index-f38a3df6.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-e47eedee.js"),["static/js/index-e47eedee.js","static/js/base.vue_vue_type_script_setup_true_lang-f64ef53f.js","static/js/index.esm-3141d836.js","static/css/index-f38a3df6.css","static/js/multi.vue_vue_type_script_setup_true_lang-434c613d.js","static/js/index-0ccbec8c.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-4b0a1ce3.js","static/css/index-2bb08053.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-09290b28.js"),["static/js/index-09290b28.js","static/css/index-18755a0a.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-b1dd7be0.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-ba8a4b2e.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-5f70f555.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-10ddb571.js"),["static/js/index-10ddb571.js","static/js/hooks-f16ca4cf.js","static/js/styles-a1771eb6.js","static/js/vue.runtime.esm-bundler-51ffd45f.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index-cb9558ae.js"),["static/js/index-cb9558ae.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-f4d9593a.js"),["static/js/Card-f4d9593a.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-8813f7d3.js"),["static/js/DialogForm-8813f7d3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-4372cc62.js","static/js/message-5d48ae52.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-367b7300.js"),["static/js/index-367b7300.js","static/js/Card-f4d9593a.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-5d48ae52.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-4372cc62.js","static/js/hooks-f16ca4cf.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-561bc885.js"),["static/js/phone-561bc885.js","static/js/phone.vue_vue_type_script_setup_true_lang-8cf7c385.js","static/js/motion-e9e186d5.js","static/js/message-5d48ae52.js","static/js/verifyCode-c691ff5e.js","static/js/hooks-f16ca4cf.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-9de84f42.js"),["static/js/qrCode-9de84f42.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-3155837b.js","static/js/motion-e9e186d5.js","static/js/index-09ba896a.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist-9de16c2e.js"),["static/js/regist-9de16c2e.js","static/js/regist.vue_vue_type_script_setup_true_lang-7b401d79.js","static/js/motion-e9e186d5.js","static/js/message-5d48ae52.js","static/js/verifyCode-c691ff5e.js","static/js/hooks-f16ca4cf.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update-691d110c.js"),["static/js/update-691d110c.js","static/js/update.vue_vue_type_script_setup_true_lang-96f75b61.js","static/js/motion-e9e186d5.js","static/js/message-5d48ae52.js","static/js/verifyCode-c691ff5e.js","static/js/hooks-f16ca4cf.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-7b211c47.js"),["static/js/index-7b211c47.js","static/js/motion-e9e186d5.js","static/js/message-5d48ae52.js","static/js/verifyCode-c691ff5e.js","static/js/phone.vue_vue_type_script_setup_true_lang-8cf7c385.js","static/js/hooks-f16ca4cf.js","static/js/iphone-bcaa848c.js","static/js/index-71ff165a.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-3155837b.js","static/js/index-09ba896a.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-7b401d79.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-96f75b61.js","static/js/dark-bc95c6e2.js","static/js/epTheme-045ca37a.js","static/js/app-bdb35527.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-56d8e721.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-a6dd9c82.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-b6ee1803.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-7181ae36.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-7d915599.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-af5c3151.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-66a8e8e2.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-383259ec.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-ed032d52.js"),["static/js/base-ed032d52.js","static/js/base.vue_vue_type_script_setup_true_lang-1adaf855.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-fcbd1916.js"),["static/js/border-fcbd1916.js","static/js/border.vue_vue_type_script_setup_true_lang-3af57ecf.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-f1f509a0.js"),["static/js/columns-f1f509a0.js","static/js/message-5d48ae52.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-a95dea0f.js"),["static/js/index-a95dea0f.js","static/js/index.vue_vue_type_script_setup_true_lang-e607a6b4.js","static/js/columns-f1f509a0.js","static/js/message-5d48ae52.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-5b076ee3.js"),["static/js/customIndex-5b076ee3.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-bd9ac040.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-8d001968.js"),["static/js/expand-8d001968.js","static/js/expand.vue_vue_type_script_setup_true_lang-9b49f380.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters-7730f833.js"),["static/js/filters-7730f833.js","static/js/filters.vue_vue_type_script_setup_true_lang-0c7e3291.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn-b434f2a1.js"),["static/js/fixColumn-b434f2a1.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-e4756bd2.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-518a2fbb.js"),["static/js/fixHeader-518a2fbb.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-5cac4ed7.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-5b215e65.js"),["static/js/fluidHeight-5b215e65.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-9f6fc604.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-a36fe87d.js"),["static/js/groupHeader-a36fe87d.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1b9597bf.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-6744f35a.js"),["static/js/columns-6744f35a.js","static/js/message-5d48ae52.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-a889debd.js"),["static/js/index-a889debd.js","static/js/index.vue_vue_type_script_setup_true_lang-3c7fb9f2.js","static/js/columns-6744f35a.js","static/js/message-5d48ae52.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-831ac833.js"),["static/js/imgPreview-831ac833.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-19e77e23.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-ec598fbc.js"),["static/js/layout-ec598fbc.js","static/js/layout.vue_vue_type_script_setup_true_lang-1f473b86.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-91a7734e.js"),["static/js/list-91a7734e.js","static/js/base.vue_vue_type_script_setup_true_lang-1adaf855.js","static/js/data-54450696.js","static/js/stripe.vue_vue_type_script_setup_true_lang-3a506df8.js","static/js/border.vue_vue_type_script_setup_true_lang-3af57ecf.js","static/js/status.vue_vue_type_style_index_0_lang-4446f603.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-5cac4ed7.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-e4756bd2.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-9f6fc604.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1b9597bf.js","static/js/radio.vue_vue_type_script_setup_true_lang-853cc00b.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-38e075a5.js","static/js/sortable.vue_vue_type_script_setup_true_lang-da8e0a81.js","static/js/filters.vue_vue_type_script_setup_true_lang-0c7e3291.js","static/js/index.vue_vue_type_script_setup_true_lang-e607a6b4.js","static/js/columns-f1f509a0.js","static/js/message-5d48ae52.js","static/js/index.vue_vue_type_script_setup_true_lang-3c7fb9f2.js","static/js/columns-6744f35a.js","static/js/expand.vue_vue_type_script_setup_true_lang-9b49f380.js","static/js/tree.vue_vue_type_script_setup_true_lang-e07c34f8.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-812a2147.js","static/js/merge.vue_vue_type_script_setup_true_lang-faf9e01e.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-bd9ac040.js","static/js/layout.vue_vue_type_script_setup_true_lang-1f473b86.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-cbef1255.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-19e77e23.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge-d87e52ad.js"),["static/js/merge-d87e52ad.js","static/js/merge.vue_vue_type_script_setup_true_lang-faf9e01e.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice-6a36535e.js"),["static/js/multipleChoice-6a36535e.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-38e075a5.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp-03d3353b.js"),["static/js/nestProp-03d3353b.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-cbef1255.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio-b72fd2b5.js"),["static/js/radio-b72fd2b5.js","static/js/radio.vue_vue_type_script_setup_true_lang-853cc00b.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-69aa1f57.js"),["static/js/sortable-69aa1f57.js","static/js/sortable.vue_vue_type_script_setup_true_lang-da8e0a81.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-fd3a5da5.js"),["static/js/status-fd3a5da5.js","static/js/status.vue_vue_type_style_index_0_lang-4446f603.js","static/js/data-54450696.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-08db20ac.js"),["static/js/stripe-08db20ac.js","static/js/stripe.vue_vue_type_script_setup_true_lang-3a506df8.js","static/js/data-54450696.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow-3b645273.js"),["static/js/totalRow-3b645273.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-812a2147.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree-1f6caab4.js"),["static/js/tree-1f6caab4.js","static/js/tree.vue_vue_type_script_setup_true_lang-e07c34f8.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high-11f034f8.js"),["static/js/high-11f034f8.js","static/js/list-632a035f.js","static/js/index.vue_vue_type_script_setup_true_lang-4685e286.js","static/js/columns-c9ba57b9.js","static/js/data-e488f0a1.js","static/js/index.vue_vue_type_script_setup_true_lang-9013e0e0.js","static/js/columns-2e4ff6ab.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-e37a392b.js","static/js/columns-3a8c1aa2.js","static/js/index.vue_vue_type_script_setup_true_lang-e25e7b83.js","static/js/columns-a24073c8.js","static/js/message-5d48ae52.js","static/js/index.vue_vue_type_script_setup_true_lang-e992f458.js","static/js/columns-eb04e2f8.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-498d83d7.js","static/js/columns-7fc155f0.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-921de12c.js","static/js/columns-3a8d3abd.js","static/js/index.vue_vue_type_script_setup_true_lang-7c5b6615.js","static/js/columns-ac909297.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-f0db9631.js","static/js/columns-66b7faf3.js","static/js/index-70c4c0c6.js","static/js/index.vue_vue_type_script_setup_true_lang-a85f6546.js","static/js/index.vue_vue_type_script_setup_true_lang-8823b869.js","static/js/columns-99a6cb34.js","static/js/index.vue_vue_type_script_setup_true_lang-bab08ec4.js","static/js/columns-14c44c43.js","static/css/high-5bc3f1f1.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-a24073c8.js"),["static/js/columns-a24073c8.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-954dcbad.js"),["static/js/index-954dcbad.js","static/js/index.vue_vue_type_script_setup_true_lang-e25e7b83.js","static/js/columns-a24073c8.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-3a8c1aa2.js"),["static/js/columns-3a8c1aa2.js","static/js/sortable.esm-e674cde8.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-58891fea.js"),["static/js/index-58891fea.js","static/js/index.vue_vue_type_script_setup_true_lang-e37a392b.js","static/js/columns-3a8c1aa2.js","static/js/sortable.esm-e674cde8.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-2e4ff6ab.js"),["static/js/columns-2e4ff6ab.js","static/js/sortable.esm-e674cde8.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-8a389eae.js"),["static/js/index-8a389eae.js","static/js/index.vue_vue_type_script_setup_true_lang-9013e0e0.js","static/js/columns-2e4ff6ab.js","static/js/sortable.esm-e674cde8.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-66b7faf3.js"),["static/js/columns-66b7faf3.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js","static/js/index-70c4c0c6.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-8a2748cc.js"),["static/js/index-8a2748cc.js","static/js/index.vue_vue_type_script_setup_true_lang-f0db9631.js","static/js/columns-66b7faf3.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js","static/js/index-70c4c0c6.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-7fc155f0.js"),["static/js/columns-7fc155f0.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-7d3fdb8c.js"),["static/js/index-7d3fdb8c.js","static/js/index.vue_vue_type_script_setup_true_lang-498d83d7.js","static/js/columns-7fc155f0.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-eb04e2f8.js"),["static/js/columns-eb04e2f8.js","static/js/xlsx-f5126985.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-322e65c2.js"),["static/js/index-322e65c2.js","static/js/index.vue_vue_type_script_setup_true_lang-e992f458.js","static/js/columns-eb04e2f8.js","static/js/xlsx-f5126985.js","static/js/data-e488f0a1.js","static/js/message-5d48ae52.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-632a035f.js"),["static/js/list-632a035f.js","static/js/index.vue_vue_type_script_setup_true_lang-4685e286.js","static/js/columns-c9ba57b9.js","static/js/data-e488f0a1.js","static/js/index.vue_vue_type_script_setup_true_lang-9013e0e0.js","static/js/columns-2e4ff6ab.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-e37a392b.js","static/js/columns-3a8c1aa2.js","static/js/index.vue_vue_type_script_setup_true_lang-e25e7b83.js","static/js/columns-a24073c8.js","static/js/message-5d48ae52.js","static/js/index.vue_vue_type_script_setup_true_lang-e992f458.js","static/js/columns-eb04e2f8.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-498d83d7.js","static/js/columns-7fc155f0.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-921de12c.js","static/js/columns-3a8d3abd.js","static/js/index.vue_vue_type_script_setup_true_lang-7c5b6615.js","static/js/columns-ac909297.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-f0db9631.js","static/js/columns-66b7faf3.js","static/js/index-70c4c0c6.js","static/js/index.vue_vue_type_script_setup_true_lang-a85f6546.js","static/js/index.vue_vue_type_script_setup_true_lang-8823b869.js","static/js/columns-99a6cb34.js","static/js/index.vue_vue_type_script_setup_true_lang-bab08ec4.js","static/js/columns-14c44c43.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-c9ba57b9.js"),["static/js/columns-c9ba57b9.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-b4b19ab8.js"),["static/js/index-b4b19ab8.js","static/js/index.vue_vue_type_script_setup_true_lang-4685e286.js","static/js/columns-c9ba57b9.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-ac909297.js"),["static/js/columns-ac909297.js","static/js/print-a6e42845.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-a834496d.js"),["static/js/index-a834496d.js","static/js/index.vue_vue_type_script_setup_true_lang-7c5b6615.js","static/js/columns-ac909297.js","static/js/print-a6e42845.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-3b31f513.js"),["static/js/index-3b31f513.js","static/js/index.vue_vue_type_script_setup_true_lang-a85f6546.js","static/js/index.vue_vue_type_script_setup_true_lang-8823b869.js","static/js/columns-99a6cb34.js","static/js/message-5d48ae52.js","static/js/data-e488f0a1.js","static/js/index.vue_vue_type_script_setup_true_lang-bab08ec4.js","static/js/columns-14c44c43.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-14c44c43.js"),["static/js/columns-14c44c43.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-60e932f1.js"),["static/js/index-60e932f1.js","static/js/index.vue_vue_type_script_setup_true_lang-bab08ec4.js","static/js/columns-14c44c43.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-99a6cb34.js"),["static/js/columns-99a6cb34.js","static/js/message-5d48ae52.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-ac321e1a.js"),["static/js/index-ac321e1a.js","static/js/index.vue_vue_type_script_setup_true_lang-8823b869.js","static/js/columns-99a6cb34.js","static/js/message-5d48ae52.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-3a8d3abd.js"),["static/js/columns-3a8d3abd.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-9ff9dd84.js"),["static/js/index-9ff9dd84.js","static/js/index.vue_vue_type_script_setup_true_lang-921de12c.js","static/js/columns-3a8d3abd.js","static/js/data-e488f0a1.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-d3a76d4e.js"),["static/js/index-d3a76d4e.js","static/js/list-91a7734e.js","static/js/base.vue_vue_type_script_setup_true_lang-1adaf855.js","static/js/data-54450696.js","static/js/stripe.vue_vue_type_script_setup_true_lang-3a506df8.js","static/js/border.vue_vue_type_script_setup_true_lang-3af57ecf.js","static/js/status.vue_vue_type_style_index_0_lang-4446f603.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-5cac4ed7.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-e4756bd2.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-9f6fc604.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1b9597bf.js","static/js/radio.vue_vue_type_script_setup_true_lang-853cc00b.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-38e075a5.js","static/js/sortable.vue_vue_type_script_setup_true_lang-da8e0a81.js","static/js/filters.vue_vue_type_script_setup_true_lang-0c7e3291.js","static/js/index.vue_vue_type_script_setup_true_lang-e607a6b4.js","static/js/columns-f1f509a0.js","static/js/message-5d48ae52.js","static/js/index.vue_vue_type_script_setup_true_lang-3c7fb9f2.js","static/js/columns-6744f35a.js","static/js/expand.vue_vue_type_script_setup_true_lang-9b49f380.js","static/js/tree.vue_vue_type_script_setup_true_lang-e07c34f8.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-812a2147.js","static/js/merge.vue_vue_type_script_setup_true_lang-faf9e01e.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-bd9ac040.js","static/js/layout.vue_vue_type_script_setup_true_lang-1f473b86.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-cbef1255.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-19e77e23.js","static/css/index-c6b6432d.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns-04d3c20d.js"),["static/js/columns-04d3c20d.js","static/js/arrow-right-s-line-2977cc7e.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail-81f224b4.js"),["static/js/fail-81f224b4.js","static/js/columns-04d3c20d.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-041db968.js"),["static/js/success-041db968.js","static/css/success-42084dfc.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form-96789df0.js"),["static/js/form-96789df0.js","static/js/form.vue_vue_type_script_setup_true_lang-fba4bb8b.js","static/js/index-0ccbec8c.js","static/js/hooks-6f0ef5d2.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-db5b81db.js"),["static/js/index-db5b81db.js","static/js/hook-3fe13647.js","static/js/form.vue_vue_type_script_setup_true_lang-fba4bb8b.js","static/js/index-0ccbec8c.js","static/js/hooks-6f0ef5d2.js","static/js/message-5d48ae52.js","static/js/system-31dc1d53.js","static/js/refresh-59da31bc.js","static/js/epTheme-045ca37a.js","static/js/sortable.esm-e674cde8.js","static/js/hooks-f16ca4cf.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-bf90facc.css"]),"/src/views/system/dept/utils/hook.tsx":()=>__vitePreload(()=>import("./hook-3fe13647.js"),["static/js/hook-3fe13647.js","static/js/form.vue_vue_type_script_setup_true_lang-fba4bb8b.js","static/js/index-0ccbec8c.js","static/js/hooks-6f0ef5d2.js","static/js/message-5d48ae52.js","static/js/system-31dc1d53.js"]),"/src/views/system/role/form.vue":()=>__vitePreload(()=>import("./form-16b59f0d.js"),["static/js/form-16b59f0d.js","static/js/form.vue_vue_type_script_setup_true_lang-4f69eb02.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-9aee70f1.js"),["static/js/index-9aee70f1.js","static/js/hook-c845e730.js","static/js/form.vue_vue_type_script_setup_true_lang-4f69eb02.js","static/js/message-5d48ae52.js","static/js/system-31dc1d53.js","static/js/hooks-6f0ef5d2.js","static/js/refresh-59da31bc.js","static/js/epTheme-045ca37a.js","static/js/sortable.esm-e674cde8.js","static/js/hooks-f16ca4cf.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/menu-a4fe64fb.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-7c3c2130.css"]),"/src/views/system/role/utils/hook.tsx":()=>__vitePreload(()=>import("./hook-c845e730.js"),["static/js/hook-c845e730.js","static/js/form.vue_vue_type_script_setup_true_lang-4f69eb02.js","static/js/message-5d48ae52.js","static/js/system-31dc1d53.js","static/js/hooks-6f0ef5d2.js"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-265266c1.js"),["static/js/hook-265266c1.js","static/js/message-5d48ae52.js","static/js/system-31dc1d53.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-b14e3eb5.js"),["static/js/index-b14e3eb5.js","static/js/tree-327c0733.js","static/js/system-31dc1d53.js","static/js/hooks-f16ca4cf.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css","static/js/hook-265266c1.js","static/js/message-5d48ae52.js","static/js/refresh-59da31bc.js","static/js/epTheme-045ca37a.js","static/js/sortable.esm-e674cde8.js","static/js/admin-line-92b9acda.js","static/js/edit-pen-37b5ced2.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-92c82461.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree-327c0733.js"),["static/js/tree-327c0733.js","static/js/system-31dc1d53.js","static/js/hooks-f16ca4cf.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index-78cf3034.js"),["static/js/index-78cf3034.js","static/js/hooks-6925dbcf.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-5ed820a9.js"),["static/js/params-detail-5ed820a9.js","static/js/hooks-6925dbcf.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-1fb14efd.js"),["static/js/query-detail-1fb14efd.js","static/js/hooks-6925dbcf.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-0311b42e.js"),["static/js/Bar-0311b42e.js","static/js/Bar.vue_vue_type_script_setup_true_lang-d52d8304.js","static/js/app-bdb35527.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github-8fed0b4f.js"),["static/js/Github-8fed0b4f.js","static/js/Github.vue_vue_type_script_setup_true_lang-529ac09d.js","static/js/columns-03762153.js","static/js/index-71ff165a.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line-2ee399a4.js"),["static/js/Line-2ee399a4.js","static/js/Line.vue_vue_type_script_setup_true_lang-6e09f980.js","static/js/app-bdb35527.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-76fed3ed.js"),["static/js/Pie-76fed3ed.js","static/js/Pie.vue_vue_type_script_setup_true_lang-022c641a.js","static/js/app-bdb35527.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns-03762153.js"),["static/js/columns-03762153.js","static/js/index-71ff165a.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index-7fc4ede0.js"),["static/js/index-7fc4ede0.js","static/js/Bar.vue_vue_type_script_setup_true_lang-d52d8304.js","static/js/app-bdb35527.js","static/js/Pie.vue_vue_type_script_setup_true_lang-022c641a.js","static/js/Line.vue_vue_type_script_setup_true_lang-6e09f980.js","static/js/index-71ff165a.js","static/js/index-70c4c0c6.js","static/js/Github.vue_vue_type_script_setup_true_lang-529ac09d.js","static/js/columns-03762153.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-7bee6064.js","static/css/index-18417f34.css","static/css/index-76b99267.css"])});function handRank($){const{name:z,path:oe,parentId:ae,meta:le}=$;return P$1(ae)?!!(P$1(le==null?void 0:le.rank)||(le==null?void 0:le.rank)===0&&z!=="Home"&&oe!=="/"):!1}function ascending($){return $.forEach((z,oe)=>{handRank(z)&&(z.meta.rank=oe+2)}),$.sort((z,oe)=>(z==null?void 0:z.meta.rank)-(oe==null?void 0:oe.meta.rank))}function filterTree($){const z=Ke($).filter(oe=>{var ae;return((ae=oe.meta)==null?void 0:ae.showLink)!==!1});return z.forEach(oe=>oe.children&&(oe.children=filterTree(oe.children))),z}function filterChildrenTree($){const z=Ke($).filter(oe=>{var ae;return((ae=oe==null?void 0:oe.children)==null?void 0:ae.length)!==0});return z.forEach(oe=>oe.children&&(oe.children=filterTree(oe.children))),z}function isOneOfArray($,z){return Array.isArray($)&&Array.isArray(z)?xr($,z).length>0:!0}function filterNoPermissionTree($){var ae;const z=((ae=tr().getItem(sessionKey))==null?void 0:ae.roles)??[],oe=Ke($).filter(le=>{var ue;return isOneOfArray((ue=le.meta)==null?void 0:ue.roles,z)});return oe.forEach(le=>le.children&&(le.children=filterNoPermissionTree(le.children))),filterChildrenTree(oe)}function getParentPaths($,z,oe="path"){function ae(le,ue,pe){for(let _e=0;_e<le.length;_e++){const Ce=le[_e];if(Ce[oe]===ue)return pe;if(!(!Ce.children||!Ce.children.length)){if(pe.push(Ce.path),ae(Ce.children,ue,pe).length)return pe;pe.pop()}}return[]}return ae(z,$,[])}function findRouteByPath($,z){let oe=z.find(ae=>ae.path==$);if(oe)return isProxy(oe)?toRaw(oe):oe;for(let ae=0;ae<z.length;ae++)if(z[ae].children instanceof Array&&z[ae].children.length>0&&(oe=findRouteByPath($,z[ae].children),oe))return isProxy(oe)?toRaw(oe):oe;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes($){$.length===0||formatFlatteningRoutes(addAsyncRoutes($)).map(z=>{if(router.options.routes[0].children.findIndex(oe=>oe.path===z.path)===-1){router.options.routes[0].children.push(z),ascending(router.options.routes[0].children),router.hasRoute(z==null?void 0:z.name)||router.addRoute(z);const oe=router.getRoutes().find(ae=>ae.path==="/");router.addRoute(oe)}}),usePermissionStoreHook().handleWholeMenus($),addPathMatch()}function initRouter(){var $;if(($=getConfig())!=null&&$.CachingAsyncRoutes){const z="async-routes",oe=tr().getItem(z);return oe&&(oe==null?void 0:oe.length)>0?new Promise(ae=>{handleAsyncRoutes(oe),ae(router)}):new Promise(ae=>{getAsyncRoutes().then(({data:le})=>{handleAsyncRoutes(Ke(le)),tr().setItem(z,le),ae(router)})})}else return new Promise(z=>{getAsyncRoutes().then(({data:oe})=>{handleAsyncRoutes(Ke(oe)),z(router)})})}function formatFlatteningRoutes($){if($.length===0)return $;let z=buildHierarchyTree($);for(let oe=0;oe<z.length;oe++)z[oe].children&&(z=z.slice(0,oe+1).concat(z[oe].children,z.slice(oe+1)));return z}function formatTwoStageRoutes($){if($.length===0)return $;const z=[];return $.forEach(oe=>{var ae;oe.path==="/"?z.push({component:oe.component,name:oe.name,path:oe.path,redirect:oe.redirect,meta:oe.meta,children:[]}):(ae=z[0])==null||ae.children.push({...oe})}),z}function handleAliveRoute({name:$},z){switch(z){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:$});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:$});break;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",name:$});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:$}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:$})},100)}}function addAsyncRoutes($){if(!$||!$.length)return;const z=Object.keys(modulesRoutes);return $.forEach(oe=>{var ae;if(oe.meta.backstage=!0,oe!=null&&oe.children&&oe.children.length&&!oe.redirect&&(oe.redirect=oe.children[0].path),oe!=null&&oe.children&&oe.children.length&&!oe.name&&(oe.name=oe.children[0].name+"Parent"),(ae=oe.meta)!=null&&ae.frameSrc)oe.component=IFrame;else{const le=oe!=null&&oe.component?z.findIndex(ue=>ue.includes(oe.component)):z.findIndex(ue=>ue.includes(oe.path));oe.component=modulesRoutes[z[le]]}oe!=null&&oe.children&&oe.children.length&&addAsyncRoutes(oe.children)}),$}function getHistoryMode($){const z=$.split(","),oe=z[0],ae=z[1];if(z.length===1){if(oe==="hash")return createWebHashHistory("");if(oe==="h5")return createWebHistory("")}else if(z.length===2){if(oe==="hash")return createWebHashHistory(ae);if(oe==="h5")return createWebHistory(ae)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth($){if(!$)return!1;const z=getAuths();return z?!!(C($)?z.includes($):yr($,z)):!1}function getTopMenu($=!1){var oe;const z=(oe=usePermissionStoreHook().wholeMenus[0])==null?void 0:oe.children[0];return $&&useMultiTagsStoreHook().handleTags("push",z),z}const usePermissionStore=defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus($){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat($))))},cacheOperate({mode:$,name:z}){const oe=this.cachePageList.findIndex(ae=>ae===z);switch($){case"refresh":this.cachePageList=this.cachePageList.filter(ae=>ae!==z);break;case"add":this.cachePageList.push(z);break;case"delete":oe!==-1&&this.cachePageList.splice(oe,1);break}(()=>{let ae=this.cachePageList.length;const le=Er(useMultiTagsStoreHook().multiTags,"name");for(;ae>0;)le.findIndex(ue=>ue===this.cachePageList[ae-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[ae-1]),1),ae--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-ef0b2829.js"),["static/js/index-ef0b2829.js","static/js/menu-a4fe64fb.js","static/js/set-up-e6942411.js","static/js/home-filled-05cc090c.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-bc95c6e2.js","static/js/epTheme-045ca37a.js","static/js/app-bdb35527.js","static/js/index-70c4c0c6.js","static/js/hooks-f16ca4cf.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/js/back_top-18fdcea3.js","static/css/index-24677433.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-7b211c47.js"),["static/js/index-7b211c47.js","static/js/motion-e9e186d5.js","static/js/message-5d48ae52.js","static/js/verifyCode-c691ff5e.js","static/js/phone.vue_vue_type_script_setup_true_lang-8cf7c385.js","static/js/hooks-f16ca4cf.js","static/js/iphone-bcaa848c.js","static/js/index-71ff165a.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-3155837b.js","static/js/index-09ba896a.js","static/js/propTypes-3b04af70.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-7b401d79.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-96f75b61.js","static/js/dark-bc95c6e2.js","static/js/epTheme-045ca37a.js","static/js/app-bdb35527.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),meta:{title:$t("menus.hslogin"),showLink:!1,rank:101}},{path:"/redirect",component:Layout,meta:{title:$t("status.hsLoad"),showLink:!1,rank:102},children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./redirect-87fe339e.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-09290b28.js"),["static/js/index-09290b28.js","static/css/index-18755a0a.css"]),meta:{title:$t("menus.hsempty"),showLink:!1,rank:103}}],modules$1=Object.assign({"./modules/able.ts":__vite_glob_0_0$1,"./modules/about.ts":__vite_glob_0_1$1,"./modules/components.ts":__vite_glob_0_2$1,"./modules/editor.ts":__vite_glob_0_3$1,"./modules/error.ts":__vite_glob_0_4$1,"./modules/flowchart.ts":__vite_glob_0_5$1,"./modules/formdesign.ts":__vite_glob_0_6,"./modules/guide.ts":__vite_glob_0_7,"./modules/home.ts":__vite_glob_0_8,"./modules/list.ts":__vite_glob_0_9,"./modules/menuoverflow.ts":__vite_glob_0_10,"./modules/nested.ts":__vite_glob_0_11,"./modules/ppt.ts":__vite_glob_0_12,"./modules/puredoc.ts":__vite_glob_0_13,"./modules/pureutils.ts":__vite_glob_0_14,"./modules/result.ts":__vite_glob_0_15,"./modules/table.ts":__vite_glob_0_16}),routes=[];Object.keys(modules$1).forEach($=>{routes.push(modules$1[$].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(1/0))))),constantMenus=ascending(routes.flat(1/0)).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map($=>remainingRouter[$].path),router=createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior($,z,oe){return new Promise(ae=>{if(oe)return oe;if(z.meta.saveSrollTop){const le=document.documentElement.scrollTop||document.body.scrollTop;ae({left:0,top:le})}})}});function resetRouter(){router.getRoutes().forEach($=>{const{name:z,meta:oe}=$;z&&router.hasRoute(z)&&(oe!=null&&oe.backstage)&&(router.removeRoute(z),router.options.routes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(1/0))))))}),usePermissionStoreHook().clearAllCachePage()}const whiteList=["/login"],{VITE_HIDE_HOME}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};router.beforeEach(($,z,oe)=>{var pe,_e,Ce;(pe=$.meta)!=null&&pe.keepAlive&&(handleAliveRoute($,"add"),(z.name===void 0||z.name==="Redirect")&&handleAliveRoute($));const ae=tr().getItem(sessionKey);NProgress.start();const le=mt($==null?void 0:$.name);le||$.matched.some($e=>{if(!$e.meta.title)return"";const xe=getConfig().Title;xe?document.title=`${transformI18n($e.meta.title)} | ${xe}`:document.title=transformI18n($e.meta.title)});function ue(){whiteList.includes($.fullPath)?oe(z.fullPath):oe()}ae?((_e=$.meta)!=null&&_e.roles&&!isOneOfArray((Ce=$.meta)==null?void 0:Ce.roles,ae==null?void 0:ae.roles)&&oe({path:"/error/403"}),VITE_HIDE_HOME==="true"&&$.fullPath==="/welcome"&&oe({path:"/error/404"}),z!=null&&z.name?le?(Tt($==null?void 0:$.name),NProgress.done()):ue():(usePermissionStoreHook().wholeMenus.length===0&&$.path!=="/login"&&initRouter().then($e=>{var xe,Ie;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:Fe}=$,ze=findRouteByPath(Fe,$e.options.routes[0].children);if(getTopMenu(!0),ze&&((xe=ze.meta)!=null&&xe.title))if(P$1(ze.parentId)&&((Ie=ze.meta)!=null&&Ie.backstage)){const{path:Ue,name:qe,meta:At}=ze.children[0];useMultiTagsStoreHook().handleTags("push",{path:Ue,name:qe,meta:At})}else{const{path:Ue,name:qe,meta:At}=ze;useMultiTagsStoreHook().handleTags("push",{path:Ue,name:qe,meta:At})}}$e.push($.fullPath)}),ue())):$.path!=="/login"?whiteList.indexOf($.path)!==-1?oe():oe({path:"/login"}):oe()});router.afterEach(()=>{NProgress.done()});var _a$1;const isClient=typeof window<"u",toString=Object.prototype.toString,isNumber$1=$=>typeof $=="number",isString$2=$=>typeof $=="string",isObject$4=$=>toString.call($)==="[object Object]",noop$1=()=>{};isClient&&((_a$1=window==null?void 0:window.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tryOnScopeDispose($){return getCurrentScope()?(onScopeDispose($),!0):!1}function tryOnUnmounted($){getCurrentInstance()&&onUnmounted($)}function unrefElement($){var z;const oe=unref($);return(z=oe==null?void 0:oe.$el)!=null?z:oe}const defaultWindow=isClient?window:void 0;function useEventListener(...$){let z,oe,ae,le;if(isString$2($[0])?([oe,ae,le]=$,z=defaultWindow):[z,oe,ae,le]=$,!z)return noop$1;let ue=noop$1;const pe=watch(()=>unrefElement(z),Ce=>{ue(),Ce&&(Ce.addEventListener(oe,ae,le),ue=()=>{Ce.removeEventListener(oe,ae,le),ue=noop$1})},{immediate:!0,flush:"post"}),_e=()=>{pe(),ue()};return tryOnScopeDispose(_e),_e}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};function useIntersectionObserver($,z,oe={}){const{root:ae,rootMargin:le="0px",threshold:ue=.1,window:pe=defaultWindow}=oe,_e=pe&&"IntersectionObserver"in pe;let Ce=noop$1;const $e=_e?watch(()=>({el:unrefElement($),root:unrefElement(ae)}),({el:Ie,root:Fe})=>{if(Ce(),!Ie)return;const ze=new IntersectionObserver(z,{root:Fe,rootMargin:le,threshold:ue});ze.observe(Ie),Ce=()=>{ze.disconnect(),Ce=noop$1}},{immediate:!0,flush:"post"}):noop$1,xe=()=>{Ce(),$e()};return tryOnScopeDispose(xe),{isSupported:_e,stop:xe}}var SwipeDirection;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?$=>window.requestAnimationFrame($):$=>setTimeout(()=>$(getCurrentTime()),defaultTimestep);function createRenderStep($){let z=[],oe=[],ae=0,le=!1,ue=!1;const pe=new WeakSet,_e={schedule:(Ce,$e=!1,xe=!1)=>{const Ie=xe&&le,Fe=Ie?z:oe;return $e&&pe.add(Ce),Fe.indexOf(Ce)===-1&&(Fe.push(Ce),Ie&&le&&(ae=z.length)),Ce},cancel:Ce=>{const $e=oe.indexOf(Ce);$e!==-1&&oe.splice($e,1),pe.delete(Ce)},process:Ce=>{if(le){ue=!0;return}if(le=!0,[z,oe]=[oe,z],oe.length=0,ae=z.length,ae)for(let $e=0;$e<ae;$e++){const xe=z[$e];xe(Ce),pe.has(xe)&&(_e.schedule(xe),$())}le=!1,ue&&(ue=!1,_e.process(Ce))}};return _e}const maxElapsed=40;let useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1;const frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce(($,z)=>($[z]=createRenderStep(()=>runNextFrame=!0),$),{}),sync=stepsOrder.reduce(($,z)=>{const oe=steps[z];return $[z]=(ae,le=!1,ue=!1)=>(runNextFrame||startLoop(),oe.schedule(ae,le,ue)),$},{}),cancelSync=stepsOrder.reduce(($,z)=>($[z]=steps[z].cancel,$),{});stepsOrder.reduce(($,z)=>($[z]=()=>steps[z].process(frame),$),{});const processStep=$=>steps[$].process(frame),processFrame=$=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min($-frame.timestamp,maxElapsed),1),frame.timestamp=$,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest($,z){var oe={};for(var ae in $)Object.prototype.hasOwnProperty.call($,ae)&&z.indexOf(ae)<0&&(oe[ae]=$[ae]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ae=Object.getOwnPropertySymbols($);le<ae.length;le++)z.indexOf(ae[le])<0&&Object.prototype.propertyIsEnumerable.call($,ae[le])&&(oe[ae[le]]=$[ae[le]]);return oe}var warning=function(){},invariant=function(){};const clamp$2=($,z,oe)=>Math.min(Math.max(oe,$),z),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:$=800,bounce:z=.25,velocity:oe=0,mass:ae=1}){let le,ue;warning($<=maxDuration*1e3);let pe=1-z;pe=clamp$2(minDamping,maxDamping,pe),$=clamp$2(minDuration,maxDuration,$/1e3),pe<1?(le=$e=>{const xe=$e*pe,Ie=xe*$,Fe=xe-oe,ze=calcAngularFreq($e,pe),Ue=Math.exp(-Ie);return safeMin-Fe/ze*Ue},ue=$e=>{const Ie=$e*pe*$,Fe=Ie*oe+oe,ze=Math.pow(pe,2)*Math.pow($e,2)*$,Ue=Math.exp(-Ie),qe=calcAngularFreq(Math.pow($e,2),pe);return(-le($e)+safeMin>0?-1:1)*((Fe-ze)*Ue)/qe}):(le=$e=>{const xe=Math.exp(-$e*$),Ie=($e-oe)*$+1;return-safeMin+xe*Ie},ue=$e=>{const xe=Math.exp(-$e*$),Ie=(oe-$e)*($*$);return xe*Ie});const _e=5/$,Ce=approximateRoot(le,ue,_e);if($=$*1e3,isNaN(Ce))return{stiffness:100,damping:10,duration:$};{const $e=Math.pow(Ce,2)*ae;return{stiffness:$e,damping:pe*2*Math.sqrt(ae*$e),duration:$}}}const rootIterations=12;function approximateRoot($,z,oe){let ae=oe;for(let le=1;le<rootIterations;le++)ae=ae-$(ae)/z(ae);return ae}function calcAngularFreq($,z){return $*Math.sqrt(1-z*z)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType($,z){return z.some(oe=>$[oe]!==void 0)}function getSpringOptions($){let z=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},$);if(!isSpringType($,physicsKeys)&&isSpringType($,durationKeys)){const oe=findSpring($);z=Object.assign(Object.assign(Object.assign({},z),oe),{velocity:0,mass:1}),z.isResolvedFromDuration=!0}return z}function spring($){var{from:z=0,to:oe=1,restSpeed:ae=2,restDelta:le}=$,ue=__rest($,["from","to","restSpeed","restDelta"]);const pe={done:!1,value:z};let{stiffness:_e,damping:Ce,mass:$e,velocity:xe,duration:Ie,isResolvedFromDuration:Fe}=getSpringOptions(ue),ze=zero,Ue=zero;function qe(){const At=xe?-(xe/1e3):0,Lt=oe-z,hn=Ce/(2*Math.sqrt(_e*$e)),vn=Math.sqrt(_e/$e)/1e3;if(le===void 0&&(le=Math.min(Math.abs(oe-z)/100,.4)),hn<1){const _n=calcAngularFreq(vn,hn);ze=bn=>{const Sn=Math.exp(-hn*vn*bn);return oe-Sn*((At+hn*vn*Lt)/_n*Math.sin(_n*bn)+Lt*Math.cos(_n*bn))},Ue=bn=>{const Sn=Math.exp(-hn*vn*bn);return hn*vn*Sn*(Math.sin(_n*bn)*(At+hn*vn*Lt)/_n+Lt*Math.cos(_n*bn))-Sn*(Math.cos(_n*bn)*(At+hn*vn*Lt)-_n*Lt*Math.sin(_n*bn))}}else if(hn===1)ze=_n=>oe-Math.exp(-vn*_n)*(Lt+(At+vn*Lt)*_n);else{const _n=vn*Math.sqrt(hn*hn-1);ze=bn=>{const Sn=Math.exp(-hn*vn*bn),Cn=Math.min(_n*bn,300);return oe-Sn*((At+hn*vn*Lt)*Math.sinh(Cn)+_n*Lt*Math.cosh(Cn))/_n}}}return qe(),{next:At=>{const Lt=ze(At);if(Fe)pe.done=At>=Ie;else{const hn=Ue(At)*1e3,vn=Math.abs(hn)<=ae,_n=Math.abs(oe-Lt)<=le;pe.done=vn&&_n}return pe.value=pe.done?oe:Lt,pe},flipTarget:()=>{xe=-xe,[z,oe]=[oe,z],qe()}}}spring.needsInterpolation=($,z)=>typeof $=="string"||typeof z=="string";const zero=$=>0,progress=($,z,oe)=>{const ae=z-$;return ae===0?1:(oe-$)/ae},mix=($,z,oe)=>-oe*$+oe*z+$,clamp$1=($,z)=>oe=>Math.max(Math.min(oe,z),$),sanitize=$=>$%1?Number($.toFixed(5)):$,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1($){return typeof $=="string"}const number$1={test:$=>typeof $=="number",parse:parseFloat,transform:$=>$},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=$=>({test:z=>isString$1(z)&&z.endsWith($)&&z.split(" ").length===1,parse:parseFloat,transform:z=>`${z}${$}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:$=>percent.parse($)/100,transform:$=>percent.transform($*100)}),isColorString=($,z)=>oe=>!!(isString$1(oe)&&singleColorRegex.test(oe)&&oe.startsWith($)||z&&Object.prototype.hasOwnProperty.call(oe,z)),splitColor=($,z,oe)=>ae=>{if(!isString$1(ae))return ae;const[le,ue,pe,_e]=ae.match(floatRegex);return{[$]:parseFloat(le),[z]:parseFloat(ue),[oe]:parseFloat(pe),alpha:_e!==void 0?parseFloat(_e):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:$,saturation:z,lightness:oe,alpha:ae=1})=>"hsla("+Math.round($)+", "+percent.transform(sanitize(z))+", "+percent.transform(sanitize(oe))+", "+sanitize(alpha.transform(ae))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:$=>Math.round(clampRgbUnit($))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:$,green:z,blue:oe,alpha:ae=1})=>"rgba("+rgbUnit.transform($)+", "+rgbUnit.transform(z)+", "+rgbUnit.transform(oe)+", "+sanitize(alpha.transform(ae))+")"};function parseHex($){let z="",oe="",ae="",le="";return $.length>5?(z=$.substr(1,2),oe=$.substr(3,2),ae=$.substr(5,2),le=$.substr(7,2)):(z=$.substr(1,1),oe=$.substr(2,1),ae=$.substr(3,1),le=$.substr(4,1),z+=z,oe+=oe,ae+=ae,le+=le),{red:parseInt(z,16),green:parseInt(oe,16),blue:parseInt(ae,16),alpha:le?parseInt(le,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:$=>rgba.test($)||hex.test($)||hsla.test($),parse:$=>rgba.test($)?rgba.parse($):hsla.test($)?hsla.parse($):hex.parse($),transform:$=>isString$1($)?$:$.hasOwnProperty("red")?rgba.transform($):hsla.transform($)},colorToken="${c}",numberToken="${n}";function test($){var z,oe,ae,le;return isNaN($)&&isString$1($)&&((oe=(z=$.match(floatRegex))===null||z===void 0?void 0:z.length)!==null&&oe!==void 0?oe:0)+((le=(ae=$.match(colorRegex))===null||ae===void 0?void 0:ae.length)!==null&&le!==void 0?le:0)>0}function analyse$1($){typeof $=="number"&&($=`${$}`);const z=[];let oe=0;const ae=$.match(colorRegex);ae&&(oe=ae.length,$=$.replace(colorRegex,colorToken),z.push(...ae.map(color$1.parse)));const le=$.match(floatRegex);return le&&($=$.replace(floatRegex,numberToken),z.push(...le.map(number$1.parse))),{values:z,numColors:oe,tokenised:$}}function parse$2($){return analyse$1($).values}function createTransformer($){const{values:z,numColors:oe,tokenised:ae}=analyse$1($),le=z.length;return ue=>{let pe=ae;for(let _e=0;_e<le;_e++)pe=pe.replace(_e<oe?colorToken:numberToken,_e<oe?color$1.transform(ue[_e]):sanitize(ue[_e]));return pe}}const convertNumbersToZero=$=>typeof $=="number"?0:$;function getAnimatableNone$1($){const z=parse$2($);return createTransformer($)(z.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter($){let[z,oe]=$.slice(0,-1).split("(");if(z==="drop-shadow")return $;const[ae]=oe.match(floatRegex)||[];if(!ae)return $;const le=oe.replace(ae,"");let ue=maxDefaults.has(z)?1:0;return ae!==oe&&(ue*=100),z+"("+ue+le+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:$=>{const z=$.match(functionRegex);return z?z.map(applyDefaultFilter).join(" "):$}});function hueToRgb($,z,oe){return oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?$+(z-$)*6*oe:oe<1/2?z:oe<2/3?$+(z-$)*(2/3-oe)*6:$}function hslaToRgba({hue:$,saturation:z,lightness:oe,alpha:ae}){$/=360,z/=100,oe/=100;let le=0,ue=0,pe=0;if(!z)le=ue=pe=oe;else{const _e=oe<.5?oe*(1+z):oe+z-oe*z,Ce=2*oe-_e;le=hueToRgb(Ce,_e,$+1/3),ue=hueToRgb(Ce,_e,$),pe=hueToRgb(Ce,_e,$-1/3)}return{red:Math.round(le*255),green:Math.round(ue*255),blue:Math.round(pe*255),alpha:ae}}const mixLinearColor=($,z,oe)=>{const ae=$*$,le=z*z;return Math.sqrt(Math.max(0,oe*(le-ae)+ae))},colorTypes=[hex,rgba,hsla],getColorType=$=>colorTypes.find(z=>z.test($)),mixColor=($,z)=>{let oe=getColorType($),ae=getColorType(z),le=oe.parse($),ue=ae.parse(z);oe===hsla&&(le=hslaToRgba(le),oe=rgba),ae===hsla&&(ue=hslaToRgba(ue),ae=rgba);const pe=Object.assign({},le);return _e=>{for(const Ce in pe)Ce!=="alpha"&&(pe[Ce]=mixLinearColor(le[Ce],ue[Ce],_e));return pe.alpha=mix(le.alpha,ue.alpha,_e),oe.transform(pe)}},isNum=$=>typeof $=="number",combineFunctions=($,z)=>oe=>z($(oe)),pipe=(...$)=>$.reduce(combineFunctions);function getMixer($,z){return isNum($)?oe=>mix($,z,oe):color$1.test($)?mixColor($,z):mixComplex($,z)}const mixArray=($,z)=>{const oe=[...$],ae=oe.length,le=$.map((ue,pe)=>getMixer(ue,z[pe]));return ue=>{for(let pe=0;pe<ae;pe++)oe[pe]=le[pe](ue);return oe}},mixObject=($,z)=>{const oe=Object.assign(Object.assign({},$),z),ae={};for(const le in oe)$[le]!==void 0&&z[le]!==void 0&&(ae[le]=getMixer($[le],z[le]));return le=>{for(const ue in ae)oe[ue]=ae[ue](le);return oe}};function analyse($){const z=complex.parse($),oe=z.length;let ae=0,le=0,ue=0;for(let pe=0;pe<oe;pe++)ae||typeof z[pe]=="number"?ae++:z[pe].hue!==void 0?ue++:le++;return{parsed:z,numNumbers:ae,numRGB:le,numHSL:ue}}const mixComplex=($,z)=>{const oe=complex.createTransformer(z),ae=analyse($),le=analyse(z);return ae.numHSL===le.numHSL&&ae.numRGB===le.numRGB&&ae.numNumbers>=le.numNumbers?pipe(mixArray(ae.parsed,le.parsed),oe):pe=>`${pe>0?z:$}`},mixNumber=($,z)=>oe=>mix($,z,oe);function detectMixerFactory($){if(typeof $=="number")return mixNumber;if(typeof $=="string")return color$1.test($)?mixColor:mixComplex;if(Array.isArray($))return mixArray;if(typeof $=="object")return mixObject}function createMixers($,z,oe){const ae=[],le=oe||detectMixerFactory($[0]),ue=$.length-1;for(let pe=0;pe<ue;pe++){let _e=le($[pe],$[pe+1]);if(z){const Ce=Array.isArray(z)?z[pe]:z;_e=pipe(Ce,_e)}ae.push(_e)}return ae}function fastInterpolate([$,z],[oe]){return ae=>oe(progress($,z,ae))}function slowInterpolate($,z){const oe=$.length,ae=oe-1;return le=>{let ue=0,pe=!1;if(le<=$[0]?pe=!0:le>=$[ae]&&(ue=ae-1,pe=!0),!pe){let Ce=1;for(;Ce<oe&&!($[Ce]>le||Ce===ae);Ce++);ue=Ce-1}const _e=progress($[ue],$[ue+1],le);return z[ue](_e)}}function interpolate($,z,{clamp:oe=!0,ease:ae,mixer:le}={}){const ue=$.length;invariant(ue===z.length),invariant(!ae||!Array.isArray(ae)||ae.length===ue-1),$[0]>$[ue-1]&&($=[].concat($),z=[].concat(z),$.reverse(),z.reverse());const pe=createMixers(z,ae,le),_e=ue===2?fastInterpolate($,pe):slowInterpolate($,pe);return oe?Ce=>_e(clamp$2($[0],$[ue-1],Ce)):_e}const reverseEasing=$=>z=>1-$(1-z),mirrorEasing=$=>z=>z<=.5?$(2*z)/2:(2-$(2*(1-z)))/2,createExpoIn=$=>z=>Math.pow(z,$),createBackIn=$=>z=>z*z*(($+1)*z-$),createAnticipate=$=>{const z=createBackIn($);return oe=>(oe*=2)<1?.5*z(oe):.5*(2-Math.pow(2,-10*(oe-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=$=>$,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=$=>1-Math.sin(Math.acos($)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=$=>{if($===1||$===0)return $;const z=$*$;return $<BOUNCE_FIRST_THRESHOLD?7.5625*z:$<BOUNCE_SECOND_THRESHOLD?9.075*z-9.9*$+3.4:$<BOUNCE_THIRD_THRESHOLD?ca*z-cb*$+cc:10.8*$*$-20.52*$+10.72},bounceIn=reverseEasing(bounceOut),bounceInOut=$=>$<.5?.5*(1-bounceOut(1-$*2)):.5*bounceOut($*2-1)+.5;function defaultEasing($,z){return $.map(()=>z||easeInOut).splice(0,$.length-1)}function defaultOffset($){const z=$.length;return $.map((oe,ae)=>ae!==0?ae/(z-1):0)}function convertOffsetToTimes($,z){return $.map(oe=>oe*z)}function keyframes$1({from:$=0,to:z=1,ease:oe,offset:ae,duration:le=300}){const ue={done:!1,value:$},pe=Array.isArray(z)?z:[$,z],_e=convertOffsetToTimes(ae&&ae.length===pe.length?ae:defaultOffset(pe),le);function Ce(){return interpolate(_e,pe,{ease:Array.isArray(oe)?oe:defaultEasing(pe,oe)})}let $e=Ce();return{next:xe=>(ue.value=$e(xe),ue.done=xe>=le,ue),flipTarget:()=>{pe.reverse(),$e=Ce()}}}function decay({velocity:$=0,from:z=0,power:oe=.8,timeConstant:ae=350,restDelta:le=.5,modifyTarget:ue}){const pe={done:!1,value:z};let _e=oe*$;const Ce=z+_e,$e=ue===void 0?Ce:ue(Ce);return $e!==Ce&&(_e=$e-z),{next:xe=>{const Ie=-_e*Math.exp(-xe/ae);return pe.done=!(Ie>le||Ie<-le),pe.value=pe.done?$e:$e+Ie,pe},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions($){if(Array.isArray($.to))return keyframes$1;if(types[$.type])return types[$.type];const z=new Set(Object.keys($));return z.has("ease")||z.has("duration")&&!z.has("dampingRatio")?keyframes$1:z.has("dampingRatio")||z.has("stiffness")||z.has("mass")||z.has("damping")||z.has("restSpeed")||z.has("restDelta")?spring:keyframes$1}function loopElapsed($,z,oe=0){return $-z-oe}function reverseElapsed($,z,oe=0,ae=!0){return ae?loopElapsed(z+-$,z,oe):z-($-z)+oe}function hasRepeatDelayElapsed($,z,oe,ae){return ae?$>=z+oe:$<=-oe}const framesync=$=>{const z=({delta:oe})=>$(oe);return{start:()=>sync.update(z,!0),stop:()=>cancelSync.update(z)}};function animate($){var z,oe,{from:ae,autoplay:le=!0,driver:ue=framesync,elapsed:pe=0,repeat:_e=0,repeatType:Ce="loop",repeatDelay:$e=0,onPlay:xe,onStop:Ie,onComplete:Fe,onRepeat:ze,onUpdate:Ue}=$,qe=__rest($,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:At}=qe,Lt,hn=0,vn=qe.duration,_n,bn=!1,Sn=!0,Cn;const En=detectAnimationFromOptions(qe);!((oe=(z=En).needsInterpolation)===null||oe===void 0)&&oe.call(z,ae,At)&&(Cn=interpolate([0,100],[ae,At],{clamp:!1}),ae=0,At=100);const $n=En(Object.assign(Object.assign({},qe),{from:ae,to:At}));function wn(){hn++,Ce==="reverse"?(Sn=hn%2===0,pe=reverseElapsed(pe,vn,$e,Sn)):(pe=loopElapsed(pe,vn,$e),Ce==="mirror"&&$n.flipTarget()),bn=!1,ze&&ze()}function Tn(){Lt.stop(),Fe&&Fe()}function xn(Nn){if(Sn||(Nn=-Nn),pe+=Nn,!bn){const Bn=$n.next(Math.max(0,pe));_n=Bn.value,Cn&&(_n=Cn(_n)),bn=Sn?Bn.done:pe<=0}Ue==null||Ue(_n),bn&&(hn===0&&(vn??(vn=pe)),hn<_e?hasRepeatDelayElapsed(pe,vn,$e,Sn)&&wn():Tn())}function kn(){xe==null||xe(),Lt=ue(xn),Lt.start()}return le&&kn(),{stop:()=>{Ie==null||Ie(),Lt.stop()}}}function velocityPerSecond($,z){return z?$*(1e3/z):0}function inertia({from:$=0,velocity:z=0,min:oe,max:ae,power:le=.8,timeConstant:ue=750,bounceStiffness:pe=500,bounceDamping:_e=10,restDelta:Ce=1,modifyTarget:$e,driver:xe,onUpdate:Ie,onComplete:Fe,onStop:ze}){let Ue;function qe(vn){return oe!==void 0&&vn<oe||ae!==void 0&&vn>ae}function At(vn){return oe===void 0?ae:ae===void 0||Math.abs(oe-vn)<Math.abs(ae-vn)?oe:ae}function Lt(vn){Ue==null||Ue.stop(),Ue=animate(Object.assign(Object.assign({},vn),{driver:xe,onUpdate:_n=>{var bn;Ie==null||Ie(_n),(bn=vn.onUpdate)===null||bn===void 0||bn.call(vn,_n)},onComplete:Fe,onStop:ze}))}function hn(vn){Lt(Object.assign({type:"spring",stiffness:pe,damping:_e,restDelta:Ce},vn))}if(qe($))hn({from:$,velocity:z,to:At($)});else{let vn=le*z+$;typeof $e<"u"&&(vn=$e(vn));const _n=At(vn),bn=_n===oe?-1:1;let Sn,Cn;const En=$n=>{Sn=Cn,Cn=$n,z=velocityPerSecond($n-Sn,getFrameData().delta),(bn===1&&$n>_n||bn===-1&&$n<_n)&&hn({from:$n,to:_n,velocity:z})};Lt({type:"decay",from:$,velocity:z,timeConstant:ue,power:le,restDelta:Ce,modifyTarget:$e,onUpdate:qe(vn)?En:void 0})}return{stop:()=>Ue==null?void 0:Ue.stop()}}const a=($,z)=>1-3*z+3*$,b=($,z)=>3*z-6*$,c$1=$=>3*$,calcBezier=($,z,oe)=>((a(z,oe)*$+b(z,oe))*$+c$1(z))*$,getSlope=($,z,oe)=>3*a(z,oe)*$*$+2*b(z,oe)*$+c$1(z),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide($,z,oe,ae,le){let ue,pe,_e=0;do pe=z+(oe-z)/2,ue=calcBezier(pe,ae,le)-$,ue>0?oe=pe:z=pe;while(Math.abs(ue)>subdivisionPrecision&&++_e<subdivisionMaxIterations);return pe}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate($,z,oe,ae){for(let le=0;le<newtonIterations;++le){const ue=getSlope(z,oe,ae);if(ue===0)return z;const pe=calcBezier(z,oe,ae)-$;z-=pe/ue}return z}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier($,z,oe,ae){if($===z&&oe===ae)return linear;const le=new Float32Array(kSplineTableSize);for(let pe=0;pe<kSplineTableSize;++pe)le[pe]=calcBezier(pe*kSampleStepSize,$,oe);function ue(pe){let _e=0,Ce=1;const $e=kSplineTableSize-1;for(;Ce!==$e&&le[Ce]<=pe;++Ce)_e+=kSampleStepSize;--Ce;const xe=(pe-le[Ce])/(le[Ce+1]-le[Ce]),Ie=_e+xe*kSampleStepSize,Fe=getSlope(Ie,$,oe);return Fe>=newtonMinSlope?newtonRaphsonIterate(pe,Ie,$,oe):Fe===0?Ie:binarySubdivide(pe,_e,_e+kSampleStepSize,$,oe)}return pe=>pe===0||pe===1?pe:calcBezier(ue(pe),z,ae)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(z){return this.subscriptions.add(z),()=>this.subscriptions.delete(z)}notify(z,oe,ae){if(this.subscriptions.size)for(const le of this.subscriptions)le(z,oe,ae)}clear(){this.subscriptions.clear()}}const isFloat=$=>!isNaN(parseFloat($));class MotionValue{constructor(z){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=oe=>{this.prev=this.current,this.current=oe;const{delta:ae,timestamp:le}=getFrameData();this.lastUpdated!==le&&(this.timeDelta=ae,this.lastUpdated=le),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:oe})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),oe!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=z,this.canTrackVelocity=isFloat(this.current)}onChange(z){return this.updateSubscribers.add(z)}clearListeners(){this.updateSubscribers.clear()}set(z){this.updateAndNotify(z)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(z){return this.stop(),new Promise(oe=>{const{stop:ae}=z(oe);this.stopAnimation=ae}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue($){return new MotionValue($)}const{isArray:isArray$2}=Array;function useMotionValues(){const $=ref({}),z=ae=>{const le=ue=>{$.value[ue]&&($.value[ue].stop(),$.value[ue].destroy(),del($.value,ue))};ae?isArray$2(ae)?ae.forEach(le):le(ae):Object.keys($.value).forEach(le)},oe=(ae,le,ue)=>{if($.value[ae])return $.value[ae];const pe=getMotionValue(le);return pe.onChange(_e=>{set$2(ue,ae,_e)}),set$2($.value,ae,pe),pe};return tryOnUnmounted(z),{motionValues:$,get:oe,stop:z}}const isKeyframesTarget=$=>Array.isArray($),underDampedSpring=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),criticallyDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),overDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?100:30,restDelta:.01,restSpeed:10}),linearTween=()=>({type:"keyframes",ease:"linear",duration:300}),keyframes=$=>({type:"keyframes",duration:800,values:$}),defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween},getDefaultTransition=($,z)=>{let oe;return isKeyframesTarget(z)?oe=keyframes:oe=defaultTransitions[$]||defaultTransitions.default,{to:z,...oe(z)}},int={...number$1,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale:scale$3,scaleX:scale$3,scaleY:scale$3,scaleZ:scale$3,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter:filter$1,WebkitFilter:filter$1,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=$=>valueTypes[$],getValueAsType=($,z)=>z&&typeof $=="number"&&z.transform?z.transform($):$;function getAnimatableNone($,z){let oe=getValueType($);return oe!==filter$1&&(oe=complex),oe.getAnimatableNone?oe.getAnimatableNone(z):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut},easingDefinitionToFunction=$=>{if(Array.isArray($)){const[z,oe,ae,le]=$;return cubicBezier(z,oe,ae,le)}else if(typeof $=="string")return easingLookup[$];return $},isEasingArray=$=>Array.isArray($)&&typeof $[0]!="number",isAnimatable=($,z)=>$==="zIndex"?!1:!!(typeof z=="number"||Array.isArray(z)||typeof z=="string"&&complex.test(z)&&!z.startsWith("url("));function hydrateKeyframes($){return Array.isArray($.to)&&$.to[0]===null&&($.to=[...$.to],$.to[0]=$.from),$}function convertTransitionToAnimationOptions({ease:$,times:z,delay:oe,...ae}){const le={...ae};return z&&(le.offset=z),$&&(le.ease=isEasingArray($)?$.map(easingDefinitionToFunction):easingDefinitionToFunction($)),oe&&(le.elapsed=-oe),le}function getPopmotionAnimationOptions($,z,oe){return Array.isArray(z.to)&&($.duration||($.duration=800)),hydrateKeyframes(z),isTransitionDefined($)||($={...$,...getDefaultTransition(oe,z.to)}),{...z,...convertTransitionToAnimationOptions($)}}function isTransitionDefined({delay:$,repeat:z,repeatType:oe,repeatDelay:ae,from:le,...ue}){return!!Object.keys(ue).length}function getValueTransition($,z){return $[z]||$.default||$}function getAnimation($,z,oe,ae,le){const ue=getValueTransition(ae,$);let pe=ue.from===null||ue.from===void 0?z.get():ue.from;const _e=isAnimatable($,oe);pe==="none"&&_e&&typeof oe=="string"&&(pe=getAnimatableNone($,oe));const Ce=isAnimatable($,pe);function $e(Ie){const Fe={from:pe,to:oe,velocity:ae.velocity?ae.velocity:z.getVelocity(),onUpdate:ze=>z.set(ze)};return ue.type==="inertia"||ue.type==="decay"?inertia({...Fe,...ue}):animate({...getPopmotionAnimationOptions(ue,Fe,$),onUpdate:ze=>{Fe.onUpdate(ze),ue.onUpdate&&ue.onUpdate(ze)},onComplete:()=>{ae.onComplete&&ae.onComplete(),le&&le(),Ie&&Ie()}})}function xe(Ie){return z.set(oe),ae.onComplete&&ae.onComplete(),le&&le(),Ie&&Ie(),{stop:()=>{}}}return!Ce||!_e||ue.type===!1?xe:$e}function useMotionTransitions(){const{motionValues:$,stop:z,get:oe}=useMotionValues();return{motionValues:$,stop:z,push:(le,ue,pe,_e={},Ce)=>{const $e=pe[le],xe=oe(le,$e,pe);if(_e&&_e.immediate){xe.set(ue);return}const Ie=getAnimation(le,xe,ue,_e,Ce);xe.start(Ie)}}}function useMotionControls($,z={},{motionValues:oe,push:ae,stop:le}=useMotionTransitions()){const ue=unref(z),pe=ref(!1),_e=watch(oe,Fe=>{pe.value=Object.values(Fe).filter(ze=>ze.isAnimating()).length>0},{immediate:!0,deep:!0}),Ce=Fe=>{if(!ue||!ue[Fe])throw new Error(`The variant ${Fe} does not exist.`);return ue[Fe]},$e=Fe=>(typeof Fe=="string"&&(Fe=Ce(Fe)),Promise.all(Object.entries(Fe).map(([ze,Ue])=>{if(ze!=="transition")return new Promise(qe=>{ae(ze,Ue,$,Fe.transition||getDefaultTransition(ze,Fe[ze]),qe)})}).filter(Boolean)));return{isAnimating:pe,apply:$e,set:Fe=>{const ze=isObject$4(Fe)?Fe:Ce(Fe);Object.entries(ze).forEach(([Ue,qe])=>{Ue!=="transition"&&ae(Ue,qe,$,{immediate:!0})})},stopTransitions:()=>{_e(),le()},leave:async Fe=>{let ze;if(ue&&(ue.leave&&(ze=ue.leave),!ue.leave&&ue.initial&&(ze=ue.initial)),!ze){Fe();return}await $e(ze),Fe()}}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:$,state:z,variants:oe,apply:ae}){const le=unref(oe),ue=[],pe=(...Ue)=>{const qe=useEventListener.apply(null,Ue);return ue.push(qe),qe},_e=ref(!1),Ce=ref(!1),$e=ref(!1),xe=computed(()=>{let Ue=[];return le&&(le.hovered&&(Ue=[...Ue,...Object.keys(le.hovered)]),le.tapped&&(Ue=[...Ue,...Object.keys(le.tapped)]),le.focused&&(Ue=[...Ue,...Object.keys(le.focused)])),Ue}),Ie=computed(()=>{const Ue={};Object.assign(Ue,z.value),_e.value&&le.hovered&&Object.assign(Ue,le.hovered),Ce.value&&le.tapped&&Object.assign(Ue,le.tapped),$e.value&&le.focused&&Object.assign(Ue,le.focused);for(const qe in Ue)xe.value.includes(qe)||delete Ue[qe];return Ue});le.hovered&&(pe($,"mouseenter",()=>{_e.value=!0}),pe($,"mouseleave",()=>{_e.value=!1,Ce.value=!1}),pe($,"mouseout",()=>{_e.value=!1,Ce.value=!1})),le.tapped&&(supportsMouseEvents()&&(pe($,"mousedown",()=>{Ce.value=!0}),pe($,"mouseup",()=>{Ce.value=!1})),supportsPointerEvents()&&(pe($,"pointerdown",()=>{Ce.value=!0}),pe($,"pointerup",()=>{Ce.value=!1})),supportsTouchEvents()&&(pe($,"touchstart",()=>{Ce.value=!0}),pe($,"touchend",()=>{Ce.value=!1}))),le.focused&&(pe($,"focus",()=>{$e.value=!0}),pe($,"blur",()=>{$e.value=!1}));const Fe=watch(Ie,ae);return{stop:()=>{ue.forEach(Ue=>Ue()),Fe()}}}function registerLifeCycleHooks({set:$,target:z,variants:oe,variant:ae}){const le=unref(oe);return{stop:watch(()=>z,()=>{le&&(le.initial&&$("initial"),le.enter&&(ae.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:$,apply:z}){return{stop:watch($,ae=>{ae&&z(ae)},{immediate:!0})}}function registerVisibilityHooks({target:$,variants:z,variant:oe}){const ae=unref(z);let le=noop$1;if(ae&&(ae.visible||ae.visibleOnce)){const{stop:ue}=useIntersectionObserver($,([{isIntersecting:pe}])=>{ae.visible?pe?oe.value="visible":oe.value="initial":ae.visibleOnce&&(pe?oe.value!=="visibleOnce"&&(oe.value="visibleOnce"):oe.value||(oe.value="initial"))});le=ue}return{stop:le}}function useMotionFeatures($,z={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const oe=ref([]);if(z.lifeCycleHooks){const{stop:le}=registerLifeCycleHooks($);oe.value.push(le)}if(z.syncVariants){const{stop:le}=registerVariantsSync($);oe.value.push(le)}if(z.visibilityHooks){const{stop:le}=registerVisibilityHooks($);oe.value.push(le)}if(z.eventListeners){const{stop:le}=registerEventListeners($);oe.value.push(le)}const ae=()=>oe.value.forEach(le=>le());return tryOnUnmounted(ae),{stop:ae}}function reactiveStyle($={}){const z=reactive({...$}),oe=ref({});return watch(z,()=>{const ae={};for(const[le,ue]of Object.entries(z)){const pe=getValueType(le),_e=getValueAsType(ue,pe);ae[le]=_e}oe.value=ae},{immediate:!0,deep:!0}),{state:z,style:oe}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach($=>{transformAxes.forEach(z=>{const oe=$+z;transformProps.push(oe)})});const transformPropSet=new Set(transformProps);function isTransformProp($){return transformPropSet.has($)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp($){return transformOriginProps.has($)}function splitValues($){const z={},oe={};return Object.entries($).forEach(([ae,le])=>{isTransformProp(ae)||isTransformOriginProp(ae)?z[ae]=le:oe[ae]=le}),{transform:z,style:oe}}function useElementStyle($,z){let oe,ae;const{state:le,style:ue}=reactiveStyle(),pe=watch(()=>unrefElement($),$e=>{if($e){ae=$e;for(const xe of Object.keys(valueTypes))$e.style[xe]===null||$e.style[xe]===""||isTransformProp(xe)||isTransformOriginProp(xe)||set$2(le,xe,$e.style[xe]);oe&&Object.entries(oe).forEach(([xe,Ie])=>set$2($e.style,xe,Ie)),z&&z(le)}},{immediate:!0}),_e=watch(ue,$e=>{if(!ae){oe=$e;return}for(const xe in $e)set$2(ae.style,xe,$e[xe])},{immediate:!0});return{style:le,stop:()=>{ae=void 0,oe=void 0,pe(),_e()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform($={},z=!0){const oe=reactive({...$}),ae=ref("");return watch(oe,le=>{let ue="",pe=!1;if(z&&(le.x||le.y||le.z)){const _e=[le.x||0,le.y||0,le.z||0].map(px.transform).join(",");ue+=`translate3d(${_e}) `,pe=!0}for(const[_e,Ce]of Object.entries(le)){if(z&&(_e==="x"||_e==="y"||_e==="z"))continue;const $e=getValueType(_e),xe=getValueAsType(Ce,$e);ue+=`${translateAlias[_e]||_e}(${xe}) `}z&&!pe&&(ue+="translateZ(0px) "),ae.value=ue.trim()},{immediate:!0,deep:!0}),{state:oe,transform:ae}}function parseTransform($){const z=$.trim().split(/\) |\)/);if(z.length===1)return{};const oe=ae=>ae.endsWith("px")||ae.endsWith("deg")?parseFloat(ae):isNaN(Number(ae))?Number(ae):ae;return z.reduce((ae,le)=>{if(!le)return ae;const[ue,pe]=le.split("("),Ce=pe.split(",").map(xe=>oe(xe.endsWith(")")?xe.replace(")",""):xe.trim())),$e=Ce.length===1?Ce[0]:Ce;return{...ae,[ue]:$e}},{})}function stateFromTransform($,z){Object.entries(parseTransform(z)).forEach(([oe,ae])=>{ae=parseFloat(ae);const le=["x","y","z"];if(oe==="translate3d"){if(ae===0){le.forEach(ue=>{set$2($,ue,0)});return}ae.forEach((ue,pe)=>{set$2($,le[pe],ue)});return}if(oe==="translateX"){set$2($,"x",ae);return}if(oe==="translateY"){set$2($,"y",ae);return}if(oe==="translateZ"){set$2($,"z",ae);return}set$2($,oe,ae)})}function useElementTransform($,z){let oe,ae;const{state:le,transform:ue}=reactiveTransform(),pe=watch(()=>unrefElement($),$e=>{$e&&(ae=$e,$e.style.transform&&stateFromTransform(le,$e.style.transform),oe&&($e.style.transform=oe),z&&z(le))},{immediate:!0}),_e=watch(ue,$e=>{if(!ae){oe=$e;return}ae.style.transform=$e},{immediate:!0});return{transform:le,stop:()=>{oe=void 0,ae=void 0,pe(),_e()}}}function useMotionProperties($,z){const oe=reactive({}),ae=Ie=>{Object.entries(Ie).forEach(([Fe,ze])=>{set$2(oe,Fe,ze)})},{style:le,stop:ue}=useElementStyle($,ae),{transform:pe,stop:_e}=useElementTransform($,ae),Ce=watch(oe,Ie=>{Object.entries(Ie).forEach(([Fe,ze])=>{const Ue=isTransformProp(Fe)?pe:le;Ue[Fe]&&Ue[Fe]===ze||set$2(Ue,Fe,ze)})},{immediate:!0,deep:!0}),$e=watch(()=>unrefElement($),Ie=>{Ie&&z&&ae(z)},{immediate:!0});return{motionProperties:oe,style:le,transform:pe,stop:()=>{ue(),_e(),Ce(),$e()}}}function useMotionVariants($={}){const z=unref($),oe=ref();return{state:computed(()=>{if(oe.value)return z[oe.value]}),variant:oe}}function useMotion($,z={},oe){const{motionProperties:ae,stop:le}=useMotionProperties($),{variant:ue,state:pe}=useMotionVariants(z),_e=useMotionControls(ae,z),Ce={target:$,variant:ue,variants:z,state:pe,motionProperties:ae,..._e,stop:(xe=!1)=>{}},{stop:$e}=useMotionFeatures(Ce,oe);return Ce.stop=(xe=!1)=>{const Ie=()=>{Ce.stopTransitions(),le(),$e()};if(!xe&&z.value&&z.value.leave){const Fe=watch(Ce.isAnimating,ze=>{ze||(Fe(),Ie())})}else Ie()},tryOnUnmounted(()=>Ce.stop()),Ce}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=($,z)=>{const oe=$.props?$.props:$.data&&$.data.attrs?$.data.attrs:{};oe&&(oe.variants&&isObject$4(oe.variants)&&(z.value={...z.value,...oe.variants}),directivePropsKeys.forEach(ae=>{if(ae==="delay"){if(oe&&oe[ae]&&isNumber$1(oe[ae])){const le=oe[ae];z&&z.value&&(z.value.enter&&(z.value.enter.transition||(z.value.enter.transition={}),z.value.enter.transition={...z.value.enter.transition,delay:le}),z.value.visible&&(z.value.visible.transition||(z.value.visible.transition={}),z.value.visible.transition={...z.value.visible.transition,delay:le}),z.value.visibleOnce&&(z.value.visibleOnce.transition||(z.value.visibleOnce.transition={}),z.value.visibleOnce.transition={...z.value.visibleOnce.transition,delay:le}))}return}ae==="visible-once"&&(ae="visibleOnce"),oe&&oe[ae]&&isObject$4(oe[ae])&&(z.value[ae]=oe[ae])}))},directive=$=>{const z=(ae,le,ue)=>{const pe=le.value&&typeof le.value=="string"?le.value:ue.key;pe&&motionState[pe]&&motionState[pe].stop();const _e=ref($||{});typeof le.value=="object"&&(_e.value=le.value),resolveVariants(ue,_e);const Ce=useMotion(ae,_e);ae.motionInstance=Ce,pe&&set$2(motionState,pe,Ce)},oe=ae=>{ae.motionInstance&&ae.motionInstance.stop()};return{created:z,unmounted:oe,bind:z,unbind:oe,getSSRProps(ae,le){const{initial:ue}=ae.value||le.props||{};if(!ue||Object.keys(ue).length===0)return;const{transform:pe,style:_e}=splitValues(ue),{transform:Ce}=reactiveTransform(pe),{style:$e}=reactiveStyle(_e);return Ce.value&&($e.value.transform=Ce.value),{style:$e.value}}}},fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop:pop$1,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleRight,rollVisibleTop,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleRight,slideVisibleTop,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop};function slugify($){const z="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",oe="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",ae=new RegExp(z.split("").join("|"),"g");return $.toString().replace(/[A-Z]/g,le=>`-${le}`).toLowerCase().replace(/\s+/g,"-").replace(ae,le=>oe.charAt(z.indexOf(le))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install($,z){if($.directive("motion",directive()),!z||z&&!z.excludePresets)for(const oe in presets){const ae=presets[oe];$.directive(`motion-${slugify(oe)}`,directive(ae))}if(z&&z.directives)for(const oe in z.directives){const ae=z.directives[oe];!ae.initial&&__DEV__&&console.warn(`Your directive v-motion-${oe} is missing initial variant!`),$.directive(`motion-${oe}`,directive(ae))}}};/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var extendStatics=function($,z){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ae){oe.__proto__=ae}||function(oe,ae){for(var le in ae)Object.prototype.hasOwnProperty.call(ae,le)&&(oe[le]=ae[le])},extendStatics($,z)};function __extends($,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");extendStatics($,z);function oe(){this.constructor=$}$.prototype=z===null?Object.create(z):(oe.prototype=z.prototype,new oe)}var Browser=function(){function $(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return $}(),Env=function(){function $(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return $}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect($,z){var oe=z.browser,ae=$.match(/Firefox\/([\d.]+)/),le=$.match(/MSIE\s([\d.]+)/)||$.match(/Trident\/.+?rv:(([\d.]+))/),ue=$.match(/Edge?\/([\d.]+)/),pe=/micromessenger/i.test($);ae&&(oe.firefox=!0,oe.version=ae[1]),le&&(oe.ie=!0,oe.version=le[1]),ue&&(oe.edge=!0,oe.version=ue[1],oe.newEdge=+ue[1].split(".")[0]>18),pe&&(oe.weChat=!0),z.svgSupported=typeof SVGRect<"u",z.touchEventsSupported="ontouchstart"in window&&!oe.ie&&!oe.edge,z.pointerEventsSupported="onpointerdown"in window&&(oe.edge||oe.ie&&+oe.version>=11),z.domSupported=typeof document<"u";var _e=document.documentElement.style;z.transform3dSupported=(oe.ie&&"transition"in _e||oe.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in _e)&&!("OTransition"in _e),z.transformSupported=z.transform3dSupported||oe.ie&&+oe.version>=9}const env$1=env;var DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap($){var z={};if(typeof JSON>"u")return z;for(var oe=0;oe<$.length;oe++){var ae=String.fromCharCode(oe+32),le=($.charCodeAt(oe)-OFFSET)/SCALE;z[ae]=le}return z}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var $,z;return function(oe,ae){if(!$){var le=platformApi.createCanvas();$=le&&le.getContext("2d")}if($)return z!==ae&&(z=$.font=ae||DEFAULT_FONT),$.measureText(oe);oe=oe||"",ae=ae||DEFAULT_FONT;var ue=/(\d+)px/.exec(ae),pe=ue&&+ue[1]||DEFAULT_FONT_SIZE,_e=0;if(ae.indexOf("mono")>=0)_e=pe*oe.length;else for(var Ce=0;Ce<oe.length;Ce++){var $e=DEFAULT_TEXT_WIDTH_MAP[oe[Ce]];_e+=$e==null?pe:$e*pe}return{width:_e}}}(),loadImage:function($,z,oe){var ae=new Image;return ae.onload=z,ae.onerror=oe,ae.src=$,ae}};function setPlatformAPI($){for(var z in platformApi)$[z]&&(platformApi[z]=$[z])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function($,z){return $["[object "+z+"]"]=!0,$},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function($,z){return $["[object "+z+"Array]"]=!0,$},{}),objToString=Object.prototype.toString,arrayProto=Array.prototype,nativeForEach=arrayProto.forEach,nativeFilter=arrayProto.filter,nativeSlice=arrayProto.slice,nativeMap=arrayProto.map,ctorFunction=function(){}.constructor,protoFunction=ctorFunction?ctorFunction.prototype:null,protoKey="__proto__",idStart=2311;function guid(){return idStart++}function logError(){for(var $=[],z=0;z<arguments.length;z++)$[z]=arguments[z];typeof console<"u"&&console.error.apply(console,$)}function clone$3($){if($==null||typeof $!="object")return $;var z=$,oe=objToString.call($);if(oe==="[object Array]"){if(!isPrimitive($)){z=[];for(var ae=0,le=$.length;ae<le;ae++)z[ae]=clone$3($[ae])}}else if(TYPED_ARRAY[oe]){if(!isPrimitive($)){var ue=$.constructor;if(ue.from)z=ue.from($);else{z=new ue($.length);for(var ae=0,le=$.length;ae<le;ae++)z[ae]=$[ae]}}}else if(!BUILTIN_OBJECT[oe]&&!isPrimitive($)&&!isDom($)){z={};for(var pe in $)$.hasOwnProperty(pe)&&pe!==protoKey&&(z[pe]=clone$3($[pe]))}return z}function merge($,z,oe){if(!isObject$3(z)||!isObject$3($))return oe?clone$3(z):$;for(var ae in z)if(z.hasOwnProperty(ae)&&ae!==protoKey){var le=$[ae],ue=z[ae];isObject$3(ue)&&isObject$3(le)&&!isArray$1(ue)&&!isArray$1(le)&&!isDom(ue)&&!isDom(le)&&!isBuiltInObject(ue)&&!isBuiltInObject(le)&&!isPrimitive(ue)&&!isPrimitive(le)?merge(le,ue,oe):(oe||!(ae in $))&&($[ae]=clone$3(z[ae]))}return $}function mergeAll($,z){for(var oe=$[0],ae=1,le=$.length;ae<le;ae++)oe=merge(oe,$[ae],z);return oe}function extend($,z){if(Object.assign)Object.assign($,z);else for(var oe in z)z.hasOwnProperty(oe)&&oe!==protoKey&&($[oe]=z[oe]);return $}function defaults($,z,oe){for(var ae=keys(z),le=0;le<ae.length;le++){var ue=ae[le];(oe?z[ue]!=null:$[ue]==null)&&($[ue]=z[ue])}return $}var createCanvas=platformApi.createCanvas;function indexOf($,z){if($){if($.indexOf)return $.indexOf(z);for(var oe=0,ae=$.length;oe<ae;oe++)if($[oe]===z)return oe}return-1}function inherits($,z){var oe=$.prototype;function ae(){}ae.prototype=z.prototype,$.prototype=new ae;for(var le in oe)oe.hasOwnProperty(le)&&($.prototype[le]=oe[le]);$.prototype.constructor=$,$.superClass=z}function mixin($,z,oe){if($="prototype"in $?$.prototype:$,z="prototype"in z?z.prototype:z,Object.getOwnPropertyNames)for(var ae=Object.getOwnPropertyNames(z),le=0;le<ae.length;le++){var ue=ae[le];ue!=="constructor"&&(oe?z[ue]!=null:$[ue]==null)&&($[ue]=z[ue])}else defaults($,z,oe)}function isArrayLike($){return!$||typeof $=="string"?!1:typeof $.length=="number"}function each$c($,z,oe){if($&&z)if($.forEach&&$.forEach===nativeForEach)$.forEach(z,oe);else if($.length===+$.length)for(var ae=0,le=$.length;ae<le;ae++)z.call(oe,$[ae],ae,$);else for(var ue in $)$.hasOwnProperty(ue)&&z.call(oe,$[ue],ue,$)}function map$2($,z,oe){if(!$)return[];if(!z)return slice($);if($.map&&$.map===nativeMap)return $.map(z,oe);for(var ae=[],le=0,ue=$.length;le<ue;le++)ae.push(z.call(oe,$[le],le,$));return ae}function reduce($,z,oe,ae){if($&&z){for(var le=0,ue=$.length;le<ue;le++)oe=z.call(ae,oe,$[le],le,$);return oe}}function filter($,z,oe){if(!$)return[];if(!z)return slice($);if($.filter&&$.filter===nativeFilter)return $.filter(z,oe);for(var ae=[],le=0,ue=$.length;le<ue;le++)z.call(oe,$[le],le,$)&&ae.push($[le]);return ae}function find($,z,oe){if($&&z){for(var ae=0,le=$.length;ae<le;ae++)if(z.call(oe,$[ae],ae,$))return $[ae]}}function keys($){if(!$)return[];if(Object.keys)return Object.keys($);var z=[];for(var oe in $)$.hasOwnProperty(oe)&&z.push(oe);return z}function bindPolyfill($,z){for(var oe=[],ae=2;ae<arguments.length;ae++)oe[ae-2]=arguments[ae];return function(){return $.apply(z,oe.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1($){for(var z=[],oe=1;oe<arguments.length;oe++)z[oe-1]=arguments[oe];return function(){return $.apply(this,z.concat(nativeSlice.call(arguments)))}}function isArray$1($){return Array.isArray?Array.isArray($):objToString.call($)==="[object Array]"}function isFunction($){return typeof $=="function"}function isString($){return typeof $=="string"}function isStringSafe($){return objToString.call($)==="[object String]"}function isNumber($){return typeof $=="number"}function isObject$3($){var z=typeof $;return z==="function"||!!$&&z==="object"}function isBuiltInObject($){return!!BUILTIN_OBJECT[objToString.call($)]}function isTypedArray($){return!!TYPED_ARRAY[objToString.call($)]}function isDom($){return typeof $=="object"&&typeof $.nodeType=="number"&&typeof $.ownerDocument=="object"}function isGradientObject($){return $.colorStops!=null}function isImagePatternObject($){return $.image!=null}function isRegExp($){return objToString.call($)==="[object RegExp]"}function eqNaN($){return $!==$}function retrieve(){for(var $=[],z=0;z<arguments.length;z++)$[z]=arguments[z];for(var oe=0,ae=$.length;oe<ae;oe++)if($[oe]!=null)return $[oe]}function retrieve2($,z){return $??z}function retrieve3($,z,oe){return $??z??oe}function slice($){for(var z=[],oe=1;oe<arguments.length;oe++)z[oe-1]=arguments[oe];return nativeSlice.apply($,z)}function normalizeCssArray$1($){if(typeof $=="number")return[$,$,$,$];var z=$.length;return z===2?[$[0],$[1],$[0],$[1]]:z===3?[$[0],$[1],$[2],$[1]]:$}function assert($,z){if(!$)throw new Error(z)}function trim$1($){return $==null?null:typeof $.trim=="function"?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive($){$[primitiveKey]=!0}function isPrimitive($){return $[primitiveKey]}var MapPolyfill=function(){function $(){this.data={}}return $.prototype.delete=function(z){var oe=this.has(z);return oe&&delete this.data[z],oe},$.prototype.has=function(z){return this.data.hasOwnProperty(z)},$.prototype.get=function(z){return this.data[z]},$.prototype.set=function(z,oe){return this.data[z]=oe,this},$.prototype.keys=function(){return keys(this.data)},$.prototype.forEach=function(z){var oe=this.data;for(var ae in oe)oe.hasOwnProperty(ae)&&z(oe[ae],ae)},$}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function $(z){var oe=isArray$1(z);this.data=maybeNativeMap();var ae=this;z instanceof $?z.each(le):z&&each$c(z,le);function le(ue,pe){oe?ae.set(ue,pe):ae.set(pe,ue)}}return $.prototype.hasKey=function(z){return this.data.has(z)},$.prototype.get=function(z){return this.data.get(z)},$.prototype.set=function(z,oe){return this.data.set(z,oe),oe},$.prototype.each=function(z,oe){this.data.forEach(function(ae,le){z.call(oe,ae,le)})},$.prototype.keys=function(){var z=this.data.keys();return isNativeMapSupported?Array.from(z):z},$.prototype.removeKey=function(z){this.data.delete(z)},$}();function createHashMap($){return new HashMap($)}function concatArray($,z){for(var oe=new $.constructor($.length+z.length),ae=0;ae<$.length;ae++)oe[ae]=$[ae];for(var le=$.length,ae=0;ae<z.length;ae++)oe[ae+le]=z[ae];return oe}function createObject($,z){var oe;if(Object.create)oe=Object.create($);else{var ae=function(){};ae.prototype=$,oe=new ae}return z&&extend(oe,z),oe}function disableUserSelect($){var z=$.style;z.webkitUserSelect="none",z.userSelect="none",z.webkitTapHighlightColor="rgba(0,0,0,0)",z["-webkit-touch-callout"]="none"}function hasOwn($,z){return $.hasOwnProperty(z)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI;const util$1=Object.freeze(Object.defineProperty({__proto__:null,HashMap,RADIAN_TO_DEGREE,assert,bind:bind$1,clone:clone$3,concatArray,createCanvas,createHashMap,createObject,curry:curry$1,defaults,disableUserSelect,each:each$c,eqNaN,extend,filter,find,guid,hasOwn,indexOf,inherits,isArray:isArray$1,isArrayLike,isBuiltInObject,isDom,isFunction,isGradientObject,isImagePatternObject,isNumber,isObject:isObject$3,isPrimitive,isRegExp,isString,isStringSafe,isTypedArray,keys,logError,map:map$2,merge,mergeAll,mixin,noop,normalizeCssArray:normalizeCssArray$1,reduce,retrieve,retrieve2,retrieve3,setAsPrimitive,slice,trim:trim$1},Symbol.toStringTag,{value:"Module"}));function create$1($,z){return $==null&&($=0),z==null&&(z=0),[$,z]}function copy$1($,z){return $[0]=z[0],$[1]=z[1],$}function clone$2($){return[$[0],$[1]]}function set$1($,z,oe){return $[0]=z,$[1]=oe,$}function add($,z,oe){return $[0]=z[0]+oe[0],$[1]=z[1]+oe[1],$}function scaleAndAdd($,z,oe,ae){return $[0]=z[0]+oe[0]*ae,$[1]=z[1]+oe[1]*ae,$}function sub($,z,oe){return $[0]=z[0]-oe[0],$[1]=z[1]-oe[1],$}function len($){return Math.sqrt(lenSquare($))}var length=len;function lenSquare($){return $[0]*$[0]+$[1]*$[1]}var lengthSquare=lenSquare;function mul$1($,z,oe){return $[0]=z[0]*oe[0],$[1]=z[1]*oe[1],$}function div($,z,oe){return $[0]=z[0]/oe[0],$[1]=z[1]/oe[1],$}function dot($,z){return $[0]*z[0]+$[1]*z[1]}function scale$2($,z,oe){return $[0]=z[0]*oe,$[1]=z[1]*oe,$}function normalize$1($,z){var oe=len(z);return oe===0?($[0]=0,$[1]=0):($[0]=z[0]/oe,$[1]=z[1]/oe),$}function distance($,z){return Math.sqrt(($[0]-z[0])*($[0]-z[0])+($[1]-z[1])*($[1]-z[1]))}var dist$1=distance;function distanceSquare($,z){return($[0]-z[0])*($[0]-z[0])+($[1]-z[1])*($[1]-z[1])}var distSquare=distanceSquare;function negate($,z){return $[0]=-z[0],$[1]=-z[1],$}function lerp$1($,z,oe,ae){return $[0]=z[0]+ae*(oe[0]-z[0]),$[1]=z[1]+ae*(oe[1]-z[1]),$}function applyTransform$1($,z,oe){var ae=z[0],le=z[1];return $[0]=oe[0]*ae+oe[2]*le+oe[4],$[1]=oe[1]*ae+oe[3]*le+oe[5],$}function min$1($,z,oe){return $[0]=Math.min(z[0],oe[0]),$[1]=Math.min(z[1],oe[1]),$}function max$1($,z,oe){return $[0]=Math.max(z[0],oe[0]),$[1]=Math.max(z[1],oe[1]),$}const vector=Object.freeze(Object.defineProperty({__proto__:null,add,applyTransform:applyTransform$1,clone:clone$2,copy:copy$1,create:create$1,dist:dist$1,distSquare,distance,distanceSquare,div,dot,len,lenSquare,length,lengthSquare,lerp:lerp$1,max:max$1,min:min$1,mul:mul$1,negate,normalize:normalize$1,scale:scale$2,scaleAndAdd,set:set$1,sub},Symbol.toStringTag,{value:"Module"}));var Param=function(){function $(z,oe){this.target=z,this.topTarget=oe&&oe.topTarget}return $}(),Draggable=function(){function $(z){this.handler=z,z.on("mousedown",this._dragStart,this),z.on("mousemove",this._drag,this),z.on("mouseup",this._dragEnd,this)}return $.prototype._dragStart=function(z){for(var oe=z.target;oe&&!oe.draggable;)oe=oe.parent||oe.__hostTarget;oe&&(this._draggingTarget=oe,oe.dragging=!0,this._x=z.offsetX,this._y=z.offsetY,this.handler.dispatchToElement(new Param(oe,z),"dragstart",z.event))},$.prototype._drag=function(z){var oe=this._draggingTarget;if(oe){var ae=z.offsetX,le=z.offsetY,ue=ae-this._x,pe=le-this._y;this._x=ae,this._y=le,oe.drift(ue,pe,z),this.handler.dispatchToElement(new Param(oe,z),"drag",z.event);var _e=this.handler.findHover(ae,le,oe).target,Ce=this._dropTarget;this._dropTarget=_e,oe!==_e&&(Ce&&_e!==Ce&&this.handler.dispatchToElement(new Param(Ce,z),"dragleave",z.event),_e&&_e!==Ce&&this.handler.dispatchToElement(new Param(_e,z),"dragenter",z.event))}},$.prototype._dragEnd=function(z){var oe=this._draggingTarget;oe&&(oe.dragging=!1),this.handler.dispatchToElement(new Param(oe,z),"dragend",z.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,z),"drop",z.event),this._draggingTarget=null,this._dropTarget=null},$}();const Draggable$1=Draggable;var Eventful=function(){function $(z){z&&(this._$eventProcessor=z)}return $.prototype.on=function(z,oe,ae,le){this._$handlers||(this._$handlers={});var ue=this._$handlers;if(typeof oe=="function"&&(le=ae,ae=oe,oe=null),!ae||!z)return this;var pe=this._$eventProcessor;oe!=null&&pe&&pe.normalizeQuery&&(oe=pe.normalizeQuery(oe)),ue[z]||(ue[z]=[]);for(var _e=0;_e<ue[z].length;_e++)if(ue[z][_e].h===ae)return this;var Ce={h:ae,query:oe,ctx:le||this,callAtLast:ae.zrEventfulCallAtLast},$e=ue[z].length-1,xe=ue[z][$e];return xe&&xe.callAtLast?ue[z].splice($e,0,Ce):ue[z].push(Ce),this},$.prototype.isSilent=function(z){var oe=this._$handlers;return!oe||!oe[z]||!oe[z].length},$.prototype.off=function(z,oe){var ae=this._$handlers;if(!ae)return this;if(!z)return this._$handlers={},this;if(oe){if(ae[z]){for(var le=[],ue=0,pe=ae[z].length;ue<pe;ue++)ae[z][ue].h!==oe&&le.push(ae[z][ue]);ae[z]=le}ae[z]&&ae[z].length===0&&delete ae[z]}else delete ae[z];return this},$.prototype.trigger=function(z){for(var oe=[],ae=1;ae<arguments.length;ae++)oe[ae-1]=arguments[ae];if(!this._$handlers)return this;var le=this._$handlers[z],ue=this._$eventProcessor;if(le)for(var pe=oe.length,_e=le.length,Ce=0;Ce<_e;Ce++){var $e=le[Ce];if(!(ue&&ue.filter&&$e.query!=null&&!ue.filter(z,$e.query)))switch(pe){case 0:$e.h.call($e.ctx);break;case 1:$e.h.call($e.ctx,oe[0]);break;case 2:$e.h.call($e.ctx,oe[0],oe[1]);break;default:$e.h.apply($e.ctx,oe);break}}return ue&&ue.afterTrigger&&ue.afterTrigger(z),this},$.prototype.triggerWithContext=function(z){for(var oe=[],ae=1;ae<arguments.length;ae++)oe[ae-1]=arguments[ae];if(!this._$handlers)return this;var le=this._$handlers[z],ue=this._$eventProcessor;if(le)for(var pe=oe.length,_e=oe[pe-1],Ce=le.length,$e=0;$e<Ce;$e++){var xe=le[$e];if(!(ue&&ue.filter&&xe.query!=null&&!ue.filter(z,xe.query)))switch(pe){case 0:xe.h.call(_e);break;case 1:xe.h.call(_e,oe[0]);break;case 2:xe.h.call(_e,oe[0],oe[1]);break;default:xe.h.apply(_e,oe.slice(1,pe-1));break}}return ue&&ue.afterTrigger&&ue.afterTrigger(z),this},$}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant($,z,oe,ae,le,ue){var pe=ae+"-"+le,_e=$.length;if(ue.hasOwnProperty(pe))return ue[pe];if(z===1){var Ce=Math.round(Math.log((1<<_e)-1&~le)/LN2);return $[oe][Ce]}for(var $e=ae|1<<oe,xe=oe+1;ae&1<<xe;)xe++;for(var Ie=0,Fe=0,ze=0;Fe<_e;Fe++){var Ue=1<<Fe;Ue&le||(Ie+=(ze%2?-1:1)*$[oe][Fe]*determinant($,z-1,xe,$e,le|Ue,ue),ze++)}return ue[pe]=Ie,Ie}function buildTransformer($,z){var oe=[[$[0],$[1],1,0,0,0,-z[0]*$[0],-z[0]*$[1]],[0,0,0,$[0],$[1],1,-z[1]*$[0],-z[1]*$[1]],[$[2],$[3],1,0,0,0,-z[2]*$[2],-z[2]*$[3]],[0,0,0,$[2],$[3],1,-z[3]*$[2],-z[3]*$[3]],[$[4],$[5],1,0,0,0,-z[4]*$[4],-z[4]*$[5]],[0,0,0,$[4],$[5],1,-z[5]*$[4],-z[5]*$[5]],[$[6],$[7],1,0,0,0,-z[6]*$[6],-z[6]*$[7]],[0,0,0,$[6],$[7],1,-z[7]*$[6],-z[7]*$[7]]],ae={},le=determinant(oe,8,0,0,0,ae);if(le!==0){for(var ue=[],pe=0;pe<8;pe++)for(var _e=0;_e<8;_e++)ue[_e]==null&&(ue[_e]=0),ue[_e]+=((pe+_e)%2?-1:1)*determinant(oe,7,pe===0?1:0,1<<pe,1<<_e,ae)/le*z[pe];return function(Ce,$e,xe){var Ie=$e*ue[6]+xe*ue[7]+1;Ce[0]=($e*ue[0]+xe*ue[1]+ue[2])/Ie,Ce[1]=($e*ue[3]+xe*ue[4]+ue[5])/Ie}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord($,z,oe,ae,le){return transformCoordWithViewport(_calcOut$1,z,ae,le,!0)&&transformCoordWithViewport($,oe,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport($,z,oe,ae,le){if(z.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(z)){var ue=z[EVENT_SAVED_PROP]||(z[EVENT_SAVED_PROP]={}),pe=prepareCoordMarkers(z,ue),_e=preparePointerTransformer(pe,ue,le);if(_e)return _e($,oe,ae),!0}return!1}function prepareCoordMarkers($,z){var oe=z.markers;if(oe)return oe;oe=z.markers=[];for(var ae=["left","right"],le=["top","bottom"],ue=0;ue<4;ue++){var pe=document.createElement("div"),_e=pe.style,Ce=ue%2,$e=(ue>>1)%2;_e.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",ae[Ce]+":0",le[$e]+":0",ae[1-Ce]+":auto",le[1-$e]+":auto",""].join("!important;"),$.appendChild(pe),oe.push(pe)}return oe}function preparePointerTransformer($,z,oe){for(var ae=oe?"invTrans":"trans",le=z[ae],ue=z.srcCoords,pe=[],_e=[],Ce=!0,$e=0;$e<4;$e++){var xe=$[$e].getBoundingClientRect(),Ie=2*$e,Fe=xe.left,ze=xe.top;pe.push(Fe,ze),Ce=Ce&&ue&&Fe===ue[Ie]&&ze===ue[Ie+1],_e.push($[$e].offsetLeft,$[$e].offsetTop)}return Ce&&le?le:(z.srcCoords=pe,z[ae]=oe?buildTransformer(_e,pe):buildTransformer(pe,_e))}function isCanvasEl($){return $.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML($){return $==null?"":($+"").replace(replaceReg,function(z,oe){return replaceMap[oe]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal($,z,oe,ae){return oe=oe||{},ae?calculateZrXY($,z,oe):firefoxNotSupportOffsetXY&&z.layerX!=null&&z.layerX!==z.offsetX?(oe.zrX=z.layerX,oe.zrY=z.layerY):z.offsetX!=null?(oe.zrX=z.offsetX,oe.zrY=z.offsetY):calculateZrXY($,z,oe),oe}function calculateZrXY($,z,oe){if(env$1.domSupported&&$.getBoundingClientRect){var ae=z.clientX,le=z.clientY;if(isCanvasEl($)){var ue=$.getBoundingClientRect();oe.zrX=ae-ue.left,oe.zrY=le-ue.top;return}else if(transformCoordWithViewport(_calcOut,$,ae,le)){oe.zrX=_calcOut[0],oe.zrY=_calcOut[1];return}}oe.zrX=oe.zrY=0}function getNativeEvent($){return $||window.event}function normalizeEvent($,z,oe){if(z=getNativeEvent(z),z.zrX!=null)return z;var ae=z.type,le=ae&&ae.indexOf("touch")>=0;if(le){var pe=ae!=="touchend"?z.targetTouches[0]:z.changedTouches[0];pe&&clientToLocal($,pe,z,oe)}else{clientToLocal($,z,z,oe);var ue=getWheelDeltaMayPolyfill(z);z.zrDelta=ue?ue/120:-(z.detail||0)/3}var _e=z.button;return z.which==null&&_e!==void 0&&MOUSE_EVENT_REG.test(z.type)&&(z.which=_e&1?1:_e&2?3:_e&4?2:0),z}function getWheelDeltaMayPolyfill($){var z=$.wheelDelta;if(z)return z;var oe=$.deltaX,ae=$.deltaY;if(oe==null||ae==null)return z;var le=Math.abs(ae!==0?ae:oe),ue=ae>0?-1:ae<0?1:oe>0?-1:1;return 3*le*ue}function addEventListener($,z,oe,ae){$.addEventListener(z,oe,ae)}function removeEventListener($,z,oe,ae){$.removeEventListener(z,oe,ae)}var stop=function($){$.preventDefault(),$.stopPropagation(),$.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown($){return $.which===2||$.which===3}var GestureMgr=function(){function $(){this._track=[]}return $.prototype.recognize=function(z,oe,ae){return this._doTrack(z,oe,ae),this._recognize(z)},$.prototype.clear=function(){return this._track.length=0,this},$.prototype._doTrack=function(z,oe,ae){var le=z.touches;if(le){for(var ue={points:[],touches:[],target:oe,event:z},pe=0,_e=le.length;pe<_e;pe++){var Ce=le[pe],$e=clientToLocal(ae,Ce,{});ue.points.push([$e.zrX,$e.zrY]),ue.touches.push(Ce)}this._track.push(ue)}},$.prototype._recognize=function(z){for(var oe in recognizers)if(recognizers.hasOwnProperty(oe)){var ae=recognizers[oe](this._track,z);if(ae)return ae}},$}();function dist($){var z=$[1][0]-$[0][0],oe=$[1][1]-$[0][1];return Math.sqrt(z*z+oe*oe)}function center($){return[($[0][0]+$[1][0])/2,($[0][1]+$[1][1])/2]}var recognizers={pinch:function($,z){var oe=$.length;if(oe){var ae=($[oe-1]||{}).points,le=($[oe-2]||{}).points||ae;if(le&&le.length>1&&ae&&ae.length>1){var ue=dist(ae)/dist(le);!isFinite(ue)&&(ue=1),z.pinchScale=ue;var pe=center(ae);return z.pinchX=pe[0],z.pinchY=pe[1],{type:"pinch",target:$[0].target,event:z}}}}};function create(){return[1,0,0,1,0,0]}function identity($){return $[0]=1,$[1]=0,$[2]=0,$[3]=1,$[4]=0,$[5]=0,$}function copy($,z){return $[0]=z[0],$[1]=z[1],$[2]=z[2],$[3]=z[3],$[4]=z[4],$[5]=z[5],$}function mul($,z,oe){var ae=z[0]*oe[0]+z[2]*oe[1],le=z[1]*oe[0]+z[3]*oe[1],ue=z[0]*oe[2]+z[2]*oe[3],pe=z[1]*oe[2]+z[3]*oe[3],_e=z[0]*oe[4]+z[2]*oe[5]+z[4],Ce=z[1]*oe[4]+z[3]*oe[5]+z[5];return $[0]=ae,$[1]=le,$[2]=ue,$[3]=pe,$[4]=_e,$[5]=Ce,$}function translate($,z,oe){return $[0]=z[0],$[1]=z[1],$[2]=z[2],$[3]=z[3],$[4]=z[4]+oe[0],$[5]=z[5]+oe[1],$}function rotate($,z,oe){var ae=z[0],le=z[2],ue=z[4],pe=z[1],_e=z[3],Ce=z[5],$e=Math.sin(oe),xe=Math.cos(oe);return $[0]=ae*xe+pe*$e,$[1]=-ae*$e+pe*xe,$[2]=le*xe+_e*$e,$[3]=-le*$e+xe*_e,$[4]=xe*ue+$e*Ce,$[5]=xe*Ce-$e*ue,$}function scale$1($,z,oe){var ae=oe[0],le=oe[1];return $[0]=z[0]*ae,$[1]=z[1]*le,$[2]=z[2]*ae,$[3]=z[3]*le,$[4]=z[4]*ae,$[5]=z[5]*le,$}function invert($,z){var oe=z[0],ae=z[2],le=z[4],ue=z[1],pe=z[3],_e=z[5],Ce=oe*pe-ue*ae;return Ce?(Ce=1/Ce,$[0]=pe*Ce,$[1]=-ue*Ce,$[2]=-ae*Ce,$[3]=oe*Ce,$[4]=(ae*_e-pe*le)*Ce,$[5]=(ue*le-oe*_e)*Ce,$):null}function clone$1($){var z=create();return copy(z,$),z}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function $(z,oe){this.x=z||0,this.y=oe||0}return $.prototype.copy=function(z){return this.x=z.x,this.y=z.y,this},$.prototype.clone=function(){return new $(this.x,this.y)},$.prototype.set=function(z,oe){return this.x=z,this.y=oe,this},$.prototype.equal=function(z){return z.x===this.x&&z.y===this.y},$.prototype.add=function(z){return this.x+=z.x,this.y+=z.y,this},$.prototype.scale=function(z){this.x*=z,this.y*=z},$.prototype.scaleAndAdd=function(z,oe){this.x+=z.x*oe,this.y+=z.y*oe},$.prototype.sub=function(z){return this.x-=z.x,this.y-=z.y,this},$.prototype.dot=function(z){return this.x*z.x+this.y*z.y},$.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},$.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},$.prototype.normalize=function(){var z=this.len();return this.x/=z,this.y/=z,this},$.prototype.distance=function(z){var oe=this.x-z.x,ae=this.y-z.y;return Math.sqrt(oe*oe+ae*ae)},$.prototype.distanceSquare=function(z){var oe=this.x-z.x,ae=this.y-z.y;return oe*oe+ae*ae},$.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},$.prototype.transform=function(z){if(z){var oe=this.x,ae=this.y;return this.x=z[0]*oe+z[2]*ae+z[4],this.y=z[1]*oe+z[3]*ae+z[5],this}},$.prototype.toArray=function(z){return z[0]=this.x,z[1]=this.y,z},$.prototype.fromArray=function(z){this.x=z[0],this.y=z[1]},$.set=function(z,oe,ae){z.x=oe,z.y=ae},$.copy=function(z,oe){z.x=oe.x,z.y=oe.y},$.len=function(z){return Math.sqrt(z.x*z.x+z.y*z.y)},$.lenSquare=function(z){return z.x*z.x+z.y*z.y},$.dot=function(z,oe){return z.x*oe.x+z.y*oe.y},$.add=function(z,oe,ae){z.x=oe.x+ae.x,z.y=oe.y+ae.y},$.sub=function(z,oe,ae){z.x=oe.x-ae.x,z.y=oe.y-ae.y},$.scale=function(z,oe,ae){z.x=oe.x*ae,z.y=oe.y*ae},$.scaleAndAdd=function(z,oe,ae,le){z.x=oe.x+ae.x*le,z.y=oe.y+ae.y*le},$.lerp=function(z,oe,ae,le){var ue=1-le;z.x=ue*oe.x+le*ae.x,z.y=ue*oe.y+le*ae.y},$}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function $(z,oe,ae,le){ae<0&&(z=z+ae,ae=-ae),le<0&&(oe=oe+le,le=-le),this.x=z,this.y=oe,this.width=ae,this.height=le}return $.prototype.union=function(z){var oe=mathMin$8(z.x,this.x),ae=mathMin$8(z.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(z.x+z.width,this.x+this.width)-oe:this.width=z.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(z.y+z.height,this.y+this.height)-ae:this.height=z.height,this.x=oe,this.y=ae},$.prototype.applyTransform=function(z){$.applyTransform(this,this,z)},$.prototype.calculateTransform=function(z){var oe=this,ae=z.width/oe.width,le=z.height/oe.height,ue=create();return translate(ue,ue,[-oe.x,-oe.y]),scale$1(ue,ue,[ae,le]),translate(ue,ue,[z.x,z.y]),ue},$.prototype.intersect=function(z,oe){if(!z)return!1;z instanceof $||(z=$.create(z));var ae=this,le=ae.x,ue=ae.x+ae.width,pe=ae.y,_e=ae.y+ae.height,Ce=z.x,$e=z.x+z.width,xe=z.y,Ie=z.y+z.height,Fe=!(ue<Ce||$e<le||_e<xe||Ie<pe);if(oe){var ze=1/0,Ue=0,qe=Math.abs(ue-Ce),At=Math.abs($e-le),Lt=Math.abs(_e-xe),hn=Math.abs(Ie-pe),vn=Math.min(qe,At),_n=Math.min(Lt,hn);ue<Ce||$e<le?vn>Ue&&(Ue=vn,qe<At?Point$1.set(maxTv$1,-qe,0):Point$1.set(maxTv$1,At,0)):vn<ze&&(ze=vn,qe<At?Point$1.set(minTv$1,qe,0):Point$1.set(minTv$1,-At,0)),_e<xe||Ie<pe?_n>Ue&&(Ue=_n,Lt<hn?Point$1.set(maxTv$1,0,-Lt):Point$1.set(maxTv$1,0,hn)):vn<ze&&(ze=vn,Lt<hn?Point$1.set(minTv$1,0,Lt):Point$1.set(minTv$1,0,-hn))}return oe&&Point$1.copy(oe,Fe?minTv$1:maxTv$1),Fe},$.prototype.contain=function(z,oe){var ae=this;return z>=ae.x&&z<=ae.x+ae.width&&oe>=ae.y&&oe<=ae.y+ae.height},$.prototype.clone=function(){return new $(this.x,this.y,this.width,this.height)},$.prototype.copy=function(z){$.copy(this,z)},$.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},$.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},$.prototype.isZero=function(){return this.width===0||this.height===0},$.create=function(z){return new $(z.x,z.y,z.width,z.height)},$.copy=function(z,oe){z.x=oe.x,z.y=oe.y,z.width=oe.width,z.height=oe.height},$.applyTransform=function(z,oe,ae){if(!ae){z!==oe&&$.copy(z,oe);return}if(ae[1]<1e-5&&ae[1]>-1e-5&&ae[2]<1e-5&&ae[2]>-1e-5){var le=ae[0],ue=ae[3],pe=ae[4],_e=ae[5];z.x=oe.x*le+pe,z.y=oe.y*ue+_e,z.width=oe.width*le,z.height=oe.height*ue,z.width<0&&(z.x+=z.width,z.width=-z.width),z.height<0&&(z.y+=z.height,z.height=-z.height);return}lt.x=lb.x=oe.x,lt.y=rt.y=oe.y,rb.x=rt.x=oe.x+oe.width,rb.y=lb.y=oe.y+oe.height,lt.transform(ae),rt.transform(ae),rb.transform(ae),lb.transform(ae),z.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),z.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var Ce=mathMax$8(lt.x,rb.x,lb.x,rt.x),$e=mathMax$8(lt.y,rb.y,lb.y,rt.y);z.width=Ce-z.x,z.height=$e-z.y},$}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket($,z,oe){return{type:$,event:oe,target:z.target,topTarget:z.topTarget,cancelBubble:!1,offsetX:oe.zrX,offsetY:oe.zrY,gestureEvent:oe.gestureEvent,pinchX:oe.pinchX,pinchY:oe.pinchY,pinchScale:oe.pinchScale,wheelDelta:oe.zrDelta,zrByTouch:oe.zrByTouch,which:oe.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.handler=null,oe}return z.prototype.dispose=function(){},z.prototype.setCursor=function(){},z}(Eventful$1),HoveredResult=function(){function $(z,oe){this.x=z,this.y=oe}return $}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function($){__extends(z,$);function z(oe,ae,le,ue,pe){var _e=$.call(this)||this;return _e._hovered=new HoveredResult(0,0),_e.storage=oe,_e.painter=ae,_e.painterRoot=ue,_e._pointerSize=pe,le=le||new EmptyProxy,_e.proxy=null,_e.setHandlerProxy(le),_e._draggingMgr=new Draggable$1(_e),_e}return z.prototype.setHandlerProxy=function(oe){this.proxy&&this.proxy.dispose(),oe&&(each$c(handlerNames,function(ae){oe.on&&oe.on(ae,this[ae],this)},this),oe.handler=this),this.proxy=oe},z.prototype.mousemove=function(oe){var ae=oe.zrX,le=oe.zrY,ue=isOutsideBoundary(this,ae,le),pe=this._hovered,_e=pe.target;_e&&!_e.__zr&&(pe=this.findHover(pe.x,pe.y),_e=pe.target);var Ce=this._hovered=ue?new HoveredResult(ae,le):this.findHover(ae,le),$e=Ce.target,xe=this.proxy;xe.setCursor&&xe.setCursor($e?$e.cursor:"default"),_e&&$e!==_e&&this.dispatchToElement(pe,"mouseout",oe),this.dispatchToElement(Ce,"mousemove",oe),$e&&$e!==_e&&this.dispatchToElement(Ce,"mouseover",oe)},z.prototype.mouseout=function(oe){var ae=oe.zrEventControl;ae!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",oe),ae!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:oe})},z.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},z.prototype.dispatch=function(oe,ae){var le=this[oe];le&&le.call(this,ae)},z.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},z.prototype.setCursorStyle=function(oe){var ae=this.proxy;ae.setCursor&&ae.setCursor(oe)},z.prototype.dispatchToElement=function(oe,ae,le){oe=oe||{};var ue=oe.target;if(!(ue&&ue.silent)){for(var pe="on"+ae,_e=makeEventPacket(ae,oe,le);ue&&(ue[pe]&&(_e.cancelBubble=!!ue[pe].call(ue,_e)),ue.trigger(ae,_e),ue=ue.__hostTarget?ue.__hostTarget:ue.parent,!_e.cancelBubble););_e.cancelBubble||(this.trigger(ae,_e),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(Ce){typeof Ce[pe]=="function"&&Ce[pe].call(Ce,_e),Ce.trigger&&Ce.trigger(ae,_e)}))}},z.prototype.findHover=function(oe,ae,le){var ue=this.storage.getDisplayList(),pe=new HoveredResult(oe,ae);if(setHoverTarget(ue,pe,oe,ae,le),this._pointerSize&&!pe.target){for(var _e=[],Ce=this._pointerSize,$e=Ce/2,xe=new BoundingRect$1(oe-$e,ae-$e,Ce,Ce),Ie=ue.length-1;Ie>=0;Ie--){var Fe=ue[Ie];Fe!==le&&!Fe.ignore&&!Fe.ignoreCoarsePointer&&(!Fe.parent||!Fe.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(Fe.getBoundingRect()),Fe.transform&&tmpRect$1.applyTransform(Fe.transform),tmpRect$1.intersect(xe)&&_e.push(Fe))}if(_e.length)for(var ze=4,Ue=Math.PI/12,qe=Math.PI*2,At=0;At<$e;At+=ze)for(var Lt=0;Lt<qe;Lt+=Ue){var hn=oe+At*Math.cos(Lt),vn=ae+At*Math.sin(Lt);if(setHoverTarget(_e,pe,hn,vn,le),pe.target)return pe}}return pe},z.prototype.processGesture=function(oe,ae){this._gestureMgr||(this._gestureMgr=new GestureMgr);var le=this._gestureMgr;ae==="start"&&le.clear();var ue=le.recognize(oe,this.findHover(oe.zrX,oe.zrY,null).target,this.proxy.dom);if(ae==="end"&&le.clear(),ue){var pe=ue.type;oe.gestureEvent=pe;var _e=new HoveredResult;_e.target=ue.target,this.dispatchToElement(_e,pe,ue.event)}},z}(Eventful$1);each$c(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function($){Handler.prototype[$]=function(z){var oe=z.zrX,ae=z.zrY,le=isOutsideBoundary(this,oe,ae),ue,pe;if(($!=="mouseup"||!le)&&(ue=this.findHover(oe,ae),pe=ue.target),$==="mousedown")this._downEl=pe,this._downPoint=[z.zrX,z.zrY],this._upEl=pe;else if($==="mouseup")this._upEl=pe;else if($==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[z.zrX,z.zrY])>4)return;this._downPoint=null}this.dispatchToElement(ue,$,z)}});function isHover($,z,oe){if($[$.rectHover?"rectContain":"contain"](z,oe)){for(var ae=$,le=void 0,ue=!1;ae;){if(ae.ignoreClip&&(ue=!0),!ue){var pe=ae.getClipPath();if(pe&&!pe.contain(z,oe))return!1;ae.silent&&(le=!0)}var _e=ae.__hostTarget;ae=_e||ae.parent}return le?SILENT:!0}return!1}function setHoverTarget($,z,oe,ae,le){for(var ue=$.length-1;ue>=0;ue--){var pe=$[ue],_e=void 0;if(pe!==le&&!pe.ignore&&(_e=isHover(pe,oe,ae))&&(!z.topTarget&&(z.topTarget=pe),_e!==SILENT)){z.target=pe;break}}}function isOutsideBoundary($,z,oe){var ae=$.painter;return z<0||z>ae.getWidth()||oe<0||oe>ae.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength($){for(var z=0;$>=DEFAULT_MIN_MERGE;)z|=$&1,$>>=1;return $+z}function makeAscendingRun($,z,oe,ae){var le=z+1;if(le===oe)return 1;if(ae($[le++],$[z])<0){for(;le<oe&&ae($[le],$[le-1])<0;)le++;reverseRun($,z,le)}else for(;le<oe&&ae($[le],$[le-1])>=0;)le++;return le-z}function reverseRun($,z,oe){for(oe--;z<oe;){var ae=$[z];$[z++]=$[oe],$[oe--]=ae}}function binaryInsertionSort($,z,oe,ae,le){for(ae===z&&ae++;ae<oe;ae++){for(var ue=$[ae],pe=z,_e=ae,Ce;pe<_e;)Ce=pe+_e>>>1,le(ue,$[Ce])<0?_e=Ce:pe=Ce+1;var $e=ae-pe;switch($e){case 3:$[pe+3]=$[pe+2];case 2:$[pe+2]=$[pe+1];case 1:$[pe+1]=$[pe];break;default:for(;$e>0;)$[pe+$e]=$[pe+$e-1],$e--}$[pe]=ue}}function gallopLeft($,z,oe,ae,le,ue){var pe=0,_e=0,Ce=1;if(ue($,z[oe+le])>0){for(_e=ae-le;Ce<_e&&ue($,z[oe+le+Ce])>0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e),pe+=le,Ce+=le}else{for(_e=le+1;Ce<_e&&ue($,z[oe+le-Ce])<=0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e);var $e=pe;pe=le-Ce,Ce=le-$e}for(pe++;pe<Ce;){var xe=pe+(Ce-pe>>>1);ue($,z[oe+xe])>0?pe=xe+1:Ce=xe}return Ce}function gallopRight($,z,oe,ae,le,ue){var pe=0,_e=0,Ce=1;if(ue($,z[oe+le])<0){for(_e=le+1;Ce<_e&&ue($,z[oe+le-Ce])<0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e);var $e=pe;pe=le-Ce,Ce=le-$e}else{for(_e=ae-le;Ce<_e&&ue($,z[oe+le+Ce])>=0;)pe=Ce,Ce=(Ce<<1)+1,Ce<=0&&(Ce=_e);Ce>_e&&(Ce=_e),pe+=le,Ce+=le}for(pe++;pe<Ce;){var xe=pe+(Ce-pe>>>1);ue($,z[oe+xe])<0?Ce=xe:pe=xe+1}return Ce}function TimSort($,z){var oe=DEFAULT_MIN_GALLOPING,ae,le,ue=0;$.length;var pe=[];ae=[],le=[];function _e(ze,Ue){ae[ue]=ze,le[ue]=Ue,ue+=1}function Ce(){for(;ue>1;){var ze=ue-2;if(ze>=1&&le[ze-1]<=le[ze]+le[ze+1]||ze>=2&&le[ze-2]<=le[ze]+le[ze-1])le[ze-1]<le[ze+1]&&ze--;else if(le[ze]>le[ze+1])break;xe(ze)}}function $e(){for(;ue>1;){var ze=ue-2;ze>0&&le[ze-1]<le[ze+1]&&ze--,xe(ze)}}function xe(ze){var Ue=ae[ze],qe=le[ze],At=ae[ze+1],Lt=le[ze+1];le[ze]=qe+Lt,ze===ue-3&&(ae[ze+1]=ae[ze+2],le[ze+1]=le[ze+2]),ue--;var hn=gallopRight($[At],$,Ue,qe,0,z);Ue+=hn,qe-=hn,qe!==0&&(Lt=gallopLeft($[Ue+qe-1],$,At,Lt,Lt-1,z),Lt!==0&&(qe<=Lt?Ie(Ue,qe,At,Lt):Fe(Ue,qe,At,Lt)))}function Ie(ze,Ue,qe,At){var Lt=0;for(Lt=0;Lt<Ue;Lt++)pe[Lt]=$[ze+Lt];var hn=0,vn=qe,_n=ze;if($[_n++]=$[vn++],--At===0){for(Lt=0;Lt<Ue;Lt++)$[_n+Lt]=pe[hn+Lt];return}if(Ue===1){for(Lt=0;Lt<At;Lt++)$[_n+Lt]=$[vn+Lt];$[_n+At]=pe[hn];return}for(var bn=oe,Sn,Cn,En;;){Sn=0,Cn=0,En=!1;do if(z($[vn],pe[hn])<0){if($[_n++]=$[vn++],Cn++,Sn=0,--At===0){En=!0;break}}else if($[_n++]=pe[hn++],Sn++,Cn=0,--Ue===1){En=!0;break}while((Sn|Cn)<bn);if(En)break;do{if(Sn=gallopRight($[vn],pe,hn,Ue,0,z),Sn!==0){for(Lt=0;Lt<Sn;Lt++)$[_n+Lt]=pe[hn+Lt];if(_n+=Sn,hn+=Sn,Ue-=Sn,Ue<=1){En=!0;break}}if($[_n++]=$[vn++],--At===0){En=!0;break}if(Cn=gallopLeft(pe[hn],$,vn,At,0,z),Cn!==0){for(Lt=0;Lt<Cn;Lt++)$[_n+Lt]=$[vn+Lt];if(_n+=Cn,vn+=Cn,At-=Cn,At===0){En=!0;break}}if($[_n++]=pe[hn++],--Ue===1){En=!0;break}bn--}while(Sn>=DEFAULT_MIN_GALLOPING||Cn>=DEFAULT_MIN_GALLOPING);if(En)break;bn<0&&(bn=0),bn+=2}if(oe=bn,oe<1&&(oe=1),Ue===1){for(Lt=0;Lt<At;Lt++)$[_n+Lt]=$[vn+Lt];$[_n+At]=pe[hn]}else{if(Ue===0)throw new Error;for(Lt=0;Lt<Ue;Lt++)$[_n+Lt]=pe[hn+Lt]}}function Fe(ze,Ue,qe,At){var Lt=0;for(Lt=0;Lt<At;Lt++)pe[Lt]=$[qe+Lt];var hn=ze+Ue-1,vn=At-1,_n=qe+At-1,bn=0,Sn=0;if($[_n--]=$[hn--],--Ue===0){for(bn=_n-(At-1),Lt=0;Lt<At;Lt++)$[bn+Lt]=pe[Lt];return}if(At===1){for(_n-=Ue,hn-=Ue,Sn=_n+1,bn=hn+1,Lt=Ue-1;Lt>=0;Lt--)$[Sn+Lt]=$[bn+Lt];$[_n]=pe[vn];return}for(var Cn=oe;;){var En=0,$n=0,wn=!1;do if(z(pe[vn],$[hn])<0){if($[_n--]=$[hn--],En++,$n=0,--Ue===0){wn=!0;break}}else if($[_n--]=pe[vn--],$n++,En=0,--At===1){wn=!0;break}while((En|$n)<Cn);if(wn)break;do{if(En=Ue-gallopRight(pe[vn],$,ze,Ue,Ue-1,z),En!==0){for(_n-=En,hn-=En,Ue-=En,Sn=_n+1,bn=hn+1,Lt=En-1;Lt>=0;Lt--)$[Sn+Lt]=$[bn+Lt];if(Ue===0){wn=!0;break}}if($[_n--]=pe[vn--],--At===1){wn=!0;break}if($n=At-gallopLeft($[hn],pe,0,At,At-1,z),$n!==0){for(_n-=$n,vn-=$n,At-=$n,Sn=_n+1,bn=vn+1,Lt=0;Lt<$n;Lt++)$[Sn+Lt]=pe[bn+Lt];if(At<=1){wn=!0;break}}if($[_n--]=$[hn--],--Ue===0){wn=!0;break}Cn--}while(En>=DEFAULT_MIN_GALLOPING||$n>=DEFAULT_MIN_GALLOPING);if(wn)break;Cn<0&&(Cn=0),Cn+=2}if(oe=Cn,oe<1&&(oe=1),At===1){for(_n-=Ue,hn-=Ue,Sn=_n+1,bn=hn+1,Lt=Ue-1;Lt>=0;Lt--)$[Sn+Lt]=$[bn+Lt];$[_n]=pe[vn]}else{if(At===0)throw new Error;for(bn=_n-(At-1),Lt=0;Lt<At;Lt++)$[bn+Lt]=pe[Lt]}}return{mergeRuns:Ce,forceMergeRuns:$e,pushRun:_e}}function sort($,z,oe,ae){oe||(oe=0),ae||(ae=$.length);var le=ae-oe;if(!(le<2)){var ue=0;if(le<DEFAULT_MIN_MERGE){ue=makeAscendingRun($,oe,ae,z),binaryInsertionSort($,oe,ae,oe+ue,z);return}var pe=TimSort($,z),_e=minRunLength(le);do{if(ue=makeAscendingRun($,oe,ae,z),ue<_e){var Ce=le;Ce>_e&&(Ce=_e),binaryInsertionSort($,oe,oe+Ce,oe+ue,z),ue=Ce}pe.pushRun(oe,ue),pe.mergeRuns(),le-=ue,oe+=ue}while(le!==0);pe.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc($,z){return $.zlevel===z.zlevel?$.z===z.z?$.z2-z.z2:$.z-z.z:$.zlevel-z.zlevel}var Storage=function(){function $(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return $.prototype.traverse=function(z,oe){for(var ae=0;ae<this._roots.length;ae++)this._roots[ae].traverse(z,oe)},$.prototype.getDisplayList=function(z,oe){oe=oe||!1;var ae=this._displayList;return(z||!ae.length)&&this.updateDisplayList(oe),ae},$.prototype.updateDisplayList=function(z){this._displayListLen=0;for(var oe=this._roots,ae=this._displayList,le=0,ue=oe.length;le<ue;le++)this._updateAndAddDisplayable(oe[le],null,z);ae.length=this._displayListLen,sort(ae,shapeCompareFunc)},$.prototype._updateAndAddDisplayable=function(z,oe,ae){if(!(z.ignore&&!ae)){z.beforeUpdate(),z.update(),z.afterUpdate();var le=z.getClipPath();if(z.ignoreClip)oe=null;else if(le){oe?oe=oe.slice():oe=[];for(var ue=le,pe=z;ue;)ue.parent=pe,ue.updateTransform(),oe.push(ue),pe=ue,ue=ue.getClipPath()}if(z.childrenRef){for(var _e=z.childrenRef(),Ce=0;Ce<_e.length;Ce++){var $e=_e[Ce];z.__dirty&&($e.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable($e,oe,ae)}z.__dirty=0}else{var xe=z;oe&&oe.length?xe.__clipPaths=oe:xe.__clipPaths&&xe.__clipPaths.length>0&&(xe.__clipPaths=[]),isNaN(xe.z)&&(logInvalidZError(),xe.z=0),isNaN(xe.z2)&&(logInvalidZError(),xe.z2=0),isNaN(xe.zlevel)&&(logInvalidZError(),xe.zlevel=0),this._displayList[this._displayListLen++]=xe}var Ie=z.getDecalElement&&z.getDecalElement();Ie&&this._updateAndAddDisplayable(Ie,oe,ae);var Fe=z.getTextGuideLine();Fe&&this._updateAndAddDisplayable(Fe,oe,ae);var ze=z.getTextContent();ze&&this._updateAndAddDisplayable(ze,oe,ae)}},$.prototype.addRoot=function(z){z.__zr&&z.__zr.storage===this||this._roots.push(z)},$.prototype.delRoot=function(z){if(z instanceof Array){for(var oe=0,ae=z.length;oe<ae;oe++)this.delRoot(z[oe]);return}var le=indexOf(this._roots,z);le>=0&&this._roots.splice(le,1)},$.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},$.prototype.getRoots=function(){return this._roots},$.prototype.dispose=function(){this._displayList=null,this._roots=null},$}();const Storage$1=Storage;var requestAnimationFrame$1;requestAnimationFrame$1=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function($){return setTimeout($,16)};const requestAnimationFrame$2=requestAnimationFrame$1;var easingFuncs={linear:function($){return $},quadraticIn:function($){return $*$},quadraticOut:function($){return $*(2-$)},quadraticInOut:function($){return($*=2)<1?.5*$*$:-.5*(--$*($-2)-1)},cubicIn:function($){return $*$*$},cubicOut:function($){return--$*$*$+1},cubicInOut:function($){return($*=2)<1?.5*$*$*$:.5*(($-=2)*$*$+2)},quarticIn:function($){return $*$*$*$},quarticOut:function($){return 1- --$*$*$*$},quarticInOut:function($){return($*=2)<1?.5*$*$*$*$:-.5*(($-=2)*$*$*$-2)},quinticIn:function($){return $*$*$*$*$},quinticOut:function($){return--$*$*$*$*$+1},quinticInOut:function($){return($*=2)<1?.5*$*$*$*$*$:.5*(($-=2)*$*$*$*$+2)},sinusoidalIn:function($){return 1-Math.cos($*Math.PI/2)},sinusoidalOut:function($){return Math.sin($*Math.PI/2)},sinusoidalInOut:function($){return .5*(1-Math.cos(Math.PI*$))},exponentialIn:function($){return $===0?0:Math.pow(1024,$-1)},exponentialOut:function($){return $===1?1:1-Math.pow(2,-10*$)},exponentialInOut:function($){return $===0?0:$===1?1:($*=2)<1?.5*Math.pow(1024,$-1):.5*(-Math.pow(2,-10*($-1))+2)},circularIn:function($){return 1-Math.sqrt(1-$*$)},circularOut:function($){return Math.sqrt(1- --$*$)},circularInOut:function($){return($*=2)<1?-.5*(Math.sqrt(1-$*$)-1):.5*(Math.sqrt(1-($-=2)*$)+1)},elasticIn:function($){var z,oe=.1,ae=.4;return $===0?0:$===1?1:(!oe||oe<1?(oe=1,z=ae/4):z=ae*Math.asin(1/oe)/(2*Math.PI),-(oe*Math.pow(2,10*($-=1))*Math.sin(($-z)*(2*Math.PI)/ae)))},elasticOut:function($){var z,oe=.1,ae=.4;return $===0?0:$===1?1:(!oe||oe<1?(oe=1,z=ae/4):z=ae*Math.asin(1/oe)/(2*Math.PI),oe*Math.pow(2,-10*$)*Math.sin(($-z)*(2*Math.PI)/ae)+1)},elasticInOut:function($){var z,oe=.1,ae=.4;return $===0?0:$===1?1:(!oe||oe<1?(oe=1,z=ae/4):z=ae*Math.asin(1/oe)/(2*Math.PI),($*=2)<1?-.5*(oe*Math.pow(2,10*($-=1))*Math.sin(($-z)*(2*Math.PI)/ae)):oe*Math.pow(2,-10*($-=1))*Math.sin(($-z)*(2*Math.PI)/ae)*.5+1)},backIn:function($){var z=1.70158;return $*$*((z+1)*$-z)},backOut:function($){var z=1.70158;return--$*$*((z+1)*$+z)+1},backInOut:function($){var z=2.5949095;return($*=2)<1?.5*($*$*((z+1)*$-z)):.5*(($-=2)*$*((z+1)*$+z)+2)},bounceIn:function($){return 1-easingFuncs.bounceOut(1-$)},bounceOut:function($){return $<1/2.75?7.5625*$*$:$<2/2.75?7.5625*($-=1.5/2.75)*$+.75:$<2.5/2.75?7.5625*($-=2.25/2.75)*$+.9375:7.5625*($-=2.625/2.75)*$+.984375},bounceInOut:function($){return $<.5?easingFuncs.bounceIn($*2)*.5:easingFuncs.bounceOut($*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero($){return $>-EPSILON$3&&$<EPSILON$3}function isNotAroundZero$1($){return $>EPSILON$3||$<-EPSILON$3}function cubicAt($,z,oe,ae,le){var ue=1-le;return ue*ue*(ue*$+3*le*z)+le*le*(le*ae+3*ue*oe)}function cubicDerivativeAt($,z,oe,ae,le){var ue=1-le;return 3*(((z-$)*ue+2*(oe-z)*le)*ue+(ae-oe)*le*le)}function cubicRootAt($,z,oe,ae,le,ue){var pe=ae+3*(z-oe)-$,_e=3*(oe-z*2+$),Ce=3*(z-$),$e=$-le,xe=_e*_e-3*pe*Ce,Ie=_e*Ce-9*pe*$e,Fe=Ce*Ce-3*_e*$e,ze=0;if(isAroundZero(xe)&&isAroundZero(Ie))if(isAroundZero(_e))ue[0]=0;else{var Ue=-Ce/_e;Ue>=0&&Ue<=1&&(ue[ze++]=Ue)}else{var qe=Ie*Ie-4*xe*Fe;if(isAroundZero(qe)){var At=Ie/xe,Ue=-_e/pe+At,Lt=-At/2;Ue>=0&&Ue<=1&&(ue[ze++]=Ue),Lt>=0&&Lt<=1&&(ue[ze++]=Lt)}else if(qe>0){var hn=mathSqrt$3(qe),vn=xe*_e+1.5*pe*(-Ie+hn),_n=xe*_e+1.5*pe*(-Ie-hn);vn<0?vn=-mathPow$2(-vn,ONE_THIRD):vn=mathPow$2(vn,ONE_THIRD),_n<0?_n=-mathPow$2(-_n,ONE_THIRD):_n=mathPow$2(_n,ONE_THIRD);var Ue=(-_e-(vn+_n))/(3*pe);Ue>=0&&Ue<=1&&(ue[ze++]=Ue)}else{var bn=(2*xe*_e-3*pe*Ie)/(2*mathSqrt$3(xe*xe*xe)),Sn=Math.acos(bn)/3,Cn=mathSqrt$3(xe),En=Math.cos(Sn),Ue=(-_e-2*Cn*En)/(3*pe),Lt=(-_e+Cn*(En+THREE_SQRT*Math.sin(Sn)))/(3*pe),$n=(-_e+Cn*(En-THREE_SQRT*Math.sin(Sn)))/(3*pe);Ue>=0&&Ue<=1&&(ue[ze++]=Ue),Lt>=0&&Lt<=1&&(ue[ze++]=Lt),$n>=0&&$n<=1&&(ue[ze++]=$n)}}return ze}function cubicExtrema($,z,oe,ae,le){var ue=6*oe-12*z+6*$,pe=9*z+3*ae-3*$-9*oe,_e=3*z-3*$,Ce=0;if(isAroundZero(pe)){if(isNotAroundZero$1(ue)){var $e=-_e/ue;$e>=0&&$e<=1&&(le[Ce++]=$e)}}else{var xe=ue*ue-4*pe*_e;if(isAroundZero(xe))le[0]=-ue/(2*pe);else if(xe>0){var Ie=mathSqrt$3(xe),$e=(-ue+Ie)/(2*pe),Fe=(-ue-Ie)/(2*pe);$e>=0&&$e<=1&&(le[Ce++]=$e),Fe>=0&&Fe<=1&&(le[Ce++]=Fe)}}return Ce}function cubicSubdivide($,z,oe,ae,le,ue){var pe=(z-$)*le+$,_e=(oe-z)*le+z,Ce=(ae-oe)*le+oe,$e=(_e-pe)*le+pe,xe=(Ce-_e)*le+_e,Ie=(xe-$e)*le+$e;ue[0]=$,ue[1]=pe,ue[2]=$e,ue[3]=Ie,ue[4]=Ie,ue[5]=xe,ue[6]=Ce,ue[7]=ae}function cubicProjectPoint($,z,oe,ae,le,ue,pe,_e,Ce,$e,xe){var Ie,Fe=.005,ze=1/0,Ue,qe,At,Lt;_v0[0]=Ce,_v0[1]=$e;for(var hn=0;hn<1;hn+=.05)_v1[0]=cubicAt($,oe,le,pe,hn),_v1[1]=cubicAt(z,ae,ue,_e,hn),At=distSquare(_v0,_v1),At<ze&&(Ie=hn,ze=At);ze=1/0;for(var vn=0;vn<32&&!(Fe<EPSILON_NUMERIC);vn++)Ue=Ie-Fe,qe=Ie+Fe,_v1[0]=cubicAt($,oe,le,pe,Ue),_v1[1]=cubicAt(z,ae,ue,_e,Ue),At=distSquare(_v1,_v0),Ue>=0&&At<ze?(Ie=Ue,ze=At):(_v2[0]=cubicAt($,oe,le,pe,qe),_v2[1]=cubicAt(z,ae,ue,_e,qe),Lt=distSquare(_v2,_v0),qe<=1&&Lt<ze?(Ie=qe,ze=Lt):Fe*=.5);return xe&&(xe[0]=cubicAt($,oe,le,pe,Ie),xe[1]=cubicAt(z,ae,ue,_e,Ie)),mathSqrt$3(ze)}function cubicLength($,z,oe,ae,le,ue,pe,_e,Ce){for(var $e=$,xe=z,Ie=0,Fe=1/Ce,ze=1;ze<=Ce;ze++){var Ue=ze*Fe,qe=cubicAt($,oe,le,pe,Ue),At=cubicAt(z,ae,ue,_e,Ue),Lt=qe-$e,hn=At-xe;Ie+=Math.sqrt(Lt*Lt+hn*hn),$e=qe,xe=At}return Ie}function quadraticAt($,z,oe,ae){var le=1-ae;return le*(le*$+2*ae*z)+ae*ae*oe}function quadraticDerivativeAt($,z,oe,ae){return 2*((1-ae)*(z-$)+ae*(oe-z))}function quadraticRootAt($,z,oe,ae,le){var ue=$-2*z+oe,pe=2*(z-$),_e=$-ae,Ce=0;if(isAroundZero(ue)){if(isNotAroundZero$1(pe)){var $e=-_e/pe;$e>=0&&$e<=1&&(le[Ce++]=$e)}}else{var xe=pe*pe-4*ue*_e;if(isAroundZero(xe)){var $e=-pe/(2*ue);$e>=0&&$e<=1&&(le[Ce++]=$e)}else if(xe>0){var Ie=mathSqrt$3(xe),$e=(-pe+Ie)/(2*ue),Fe=(-pe-Ie)/(2*ue);$e>=0&&$e<=1&&(le[Ce++]=$e),Fe>=0&&Fe<=1&&(le[Ce++]=Fe)}}return Ce}function quadraticExtremum($,z,oe){var ae=$+oe-2*z;return ae===0?.5:($-z)/ae}function quadraticSubdivide($,z,oe,ae,le){var ue=(z-$)*ae+$,pe=(oe-z)*ae+z,_e=(pe-ue)*ae+ue;le[0]=$,le[1]=ue,le[2]=_e,le[3]=_e,le[4]=pe,le[5]=oe}function quadraticProjectPoint($,z,oe,ae,le,ue,pe,_e,Ce){var $e,xe=.005,Ie=1/0;_v0[0]=pe,_v0[1]=_e;for(var Fe=0;Fe<1;Fe+=.05){_v1[0]=quadraticAt($,oe,le,Fe),_v1[1]=quadraticAt(z,ae,ue,Fe);var ze=distSquare(_v0,_v1);ze<Ie&&($e=Fe,Ie=ze)}Ie=1/0;for(var Ue=0;Ue<32&&!(xe<EPSILON_NUMERIC);Ue++){var qe=$e-xe,At=$e+xe;_v1[0]=quadraticAt($,oe,le,qe),_v1[1]=quadraticAt(z,ae,ue,qe);var ze=distSquare(_v1,_v0);if(qe>=0&&ze<Ie)$e=qe,Ie=ze;else{_v2[0]=quadraticAt($,oe,le,At),_v2[1]=quadraticAt(z,ae,ue,At);var Lt=distSquare(_v2,_v0);At<=1&&Lt<Ie?($e=At,Ie=Lt):xe*=.5}}return Ce&&(Ce[0]=quadraticAt($,oe,le,$e),Ce[1]=quadraticAt(z,ae,ue,$e)),mathSqrt$3(Ie)}function quadraticLength($,z,oe,ae,le,ue,pe){for(var _e=$,Ce=z,$e=0,xe=1/pe,Ie=1;Ie<=pe;Ie++){var Fe=Ie*xe,ze=quadraticAt($,oe,le,Fe),Ue=quadraticAt(z,ae,ue,Fe),qe=ze-_e,At=Ue-Ce;$e+=Math.sqrt(qe*qe+At*At),_e=ze,Ce=Ue}return $e}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc($){var z=$&®exp.exec($);if(z){var oe=z[1].split(","),ae=+trim$1(oe[0]),le=+trim$1(oe[1]),ue=+trim$1(oe[2]),pe=+trim$1(oe[3]);if(isNaN(ae+le+ue+pe))return;var _e=[];return function(Ce){return Ce<=0?0:Ce>=1?1:cubicRootAt(0,ae,ue,1,Ce,_e)&&cubicAt(0,le,pe,1,_e[0])}}}var Clip=function(){function $(z){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=z.life||1e3,this._delay=z.delay||0,this.loop=z.loop||!1,this.onframe=z.onframe||noop,this.ondestroy=z.ondestroy||noop,this.onrestart=z.onrestart||noop,z.easing&&this.setEasing(z.easing)}return $.prototype.step=function(z,oe){if(this._inited||(this._startTime=z+this._delay,this._inited=!0),this._paused){this._pausedTime+=oe;return}var ae=this._life,le=z-this._startTime-this._pausedTime,ue=le/ae;ue<0&&(ue=0),ue=Math.min(ue,1);var pe=this.easingFunc,_e=pe?pe(ue):ue;if(this.onframe(_e),ue===1)if(this.loop){var Ce=le%ae;this._startTime=z-Ce,this._pausedTime=0,this.onrestart()}else return!0;return!1},$.prototype.pause=function(){this._paused=!0},$.prototype.resume=function(){this._paused=!1},$.prototype.setEasing=function(z){this.easing=z,this.easingFunc=isFunction(z)?z:easingFuncs$1[z]||createCubicEasingFunc(z)},$}();const Clip$1=Clip;var Entry=function(){function $(z){this.value=z}return $}(),LinkedList=function(){function $(){this._len=0}return $.prototype.insert=function(z){var oe=new Entry(z);return this.insertEntry(oe),oe},$.prototype.insertEntry=function(z){this.head?(this.tail.next=z,z.prev=this.tail,z.next=null,this.tail=z):this.head=this.tail=z,this._len++},$.prototype.remove=function(z){var oe=z.prev,ae=z.next;oe?oe.next=ae:this.head=ae,ae?ae.prev=oe:this.tail=oe,z.next=z.prev=null,this._len--},$.prototype.len=function(){return this._len},$.prototype.clear=function(){this.head=this.tail=null,this._len=0},$}(),LRU=function(){function $(z){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=z}return $.prototype.put=function(z,oe){var ae=this._list,le=this._map,ue=null;if(le[z]==null){var pe=ae.len(),_e=this._lastRemovedEntry;if(pe>=this._maxSize&&pe>0){var Ce=ae.head;ae.remove(Ce),delete le[Ce.key],ue=Ce.value,this._lastRemovedEntry=Ce}_e?_e.value=oe:_e=new Entry(oe),_e.key=z,ae.insertEntry(_e),le[z]=_e}return ue},$.prototype.get=function(z){var oe=this._map[z],ae=this._list;if(oe!=null)return oe!==ae.tail&&(ae.remove(oe),ae.insertEntry(oe)),oe.value},$.prototype.clear=function(){this._list.clear(),this._map={}},$.prototype.len=function(){return this._list.len()},$}();const LRU$1=LRU;var kCSSColorTable={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function clampCssByte($){return $=Math.round($),$<0?0:$>255?255:$}function clampCssAngle($){return $=Math.round($),$<0?0:$>360?360:$}function clampCssFloat($){return $<0?0:$>1?1:$}function parseCssInt($){var z=$;return z.length&&z.charAt(z.length-1)==="%"?clampCssByte(parseFloat(z)/100*255):clampCssByte(parseInt(z,10))}function parseCssFloat($){var z=$;return z.length&&z.charAt(z.length-1)==="%"?clampCssFloat(parseFloat(z)/100):clampCssFloat(parseFloat(z))}function cssHueToRgb($,z,oe){return oe<0?oe+=1:oe>1&&(oe-=1),oe*6<1?$+(z-$)*oe*6:oe*2<1?z:oe*3<2?$+(z-$)*(2/3-oe)*6:$}function lerpNumber($,z,oe){return $+(z-$)*oe}function setRgba($,z,oe,ae,le){return $[0]=z,$[1]=oe,$[2]=ae,$[3]=le,$}function copyRgba($,z){return $[0]=z[0],$[1]=z[1],$[2]=z[2],$[3]=z[3],$}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache($,z){lastRemovedArr&©Rgba(lastRemovedArr,z),lastRemovedArr=colorCache.put($,lastRemovedArr||z.slice())}function parse$1($,z){if($){z=z||[];var oe=colorCache.get($);if(oe)return copyRgba(z,oe);$=$+"";var ae=$.replace(/ /g,"").toLowerCase();if(ae in kCSSColorTable)return copyRgba(z,kCSSColorTable[ae]),putToCache($,z),z;var le=ae.length;if(ae.charAt(0)==="#"){if(le===4||le===5){var ue=parseInt(ae.slice(1,4),16);if(!(ue>=0&&ue<=4095)){setRgba(z,0,0,0,1);return}return setRgba(z,(ue&3840)>>4|(ue&3840)>>8,ue&240|(ue&240)>>4,ue&15|(ue&15)<<4,le===5?parseInt(ae.slice(4),16)/15:1),putToCache($,z),z}else if(le===7||le===9){var ue=parseInt(ae.slice(1,7),16);if(!(ue>=0&&ue<=16777215)){setRgba(z,0,0,0,1);return}return setRgba(z,(ue&16711680)>>16,(ue&65280)>>8,ue&255,le===9?parseInt(ae.slice(7),16)/255:1),putToCache($,z),z}return}var pe=ae.indexOf("("),_e=ae.indexOf(")");if(pe!==-1&&_e+1===le){var Ce=ae.substr(0,pe),$e=ae.substr(pe+1,_e-(pe+1)).split(","),xe=1;switch(Ce){case"rgba":if($e.length!==4)return $e.length===3?setRgba(z,+$e[0],+$e[1],+$e[2],1):setRgba(z,0,0,0,1);xe=parseCssFloat($e.pop());case"rgb":if($e.length>=3)return setRgba(z,parseCssInt($e[0]),parseCssInt($e[1]),parseCssInt($e[2]),$e.length===3?xe:parseCssFloat($e[3])),putToCache($,z),z;setRgba(z,0,0,0,1);return;case"hsla":if($e.length!==4){setRgba(z,0,0,0,1);return}return $e[3]=parseCssFloat($e[3]),hsla2rgba($e,z),putToCache($,z),z;case"hsl":if($e.length!==3){setRgba(z,0,0,0,1);return}return hsla2rgba($e,z),putToCache($,z),z;default:return}}setRgba(z,0,0,0,1)}}function hsla2rgba($,z){var oe=(parseFloat($[0])%360+360)%360/360,ae=parseCssFloat($[1]),le=parseCssFloat($[2]),ue=le<=.5?le*(ae+1):le+ae-le*ae,pe=le*2-ue;return z=z||[],setRgba(z,clampCssByte(cssHueToRgb(pe,ue,oe+1/3)*255),clampCssByte(cssHueToRgb(pe,ue,oe)*255),clampCssByte(cssHueToRgb(pe,ue,oe-1/3)*255),1),$.length===4&&(z[3]=$[3]),z}function rgba2hsla($){if($){var z=$[0]/255,oe=$[1]/255,ae=$[2]/255,le=Math.min(z,oe,ae),ue=Math.max(z,oe,ae),pe=ue-le,_e=(ue+le)/2,Ce,$e;if(pe===0)Ce=0,$e=0;else{_e<.5?$e=pe/(ue+le):$e=pe/(2-ue-le);var xe=((ue-z)/6+pe/2)/pe,Ie=((ue-oe)/6+pe/2)/pe,Fe=((ue-ae)/6+pe/2)/pe;z===ue?Ce=Fe-Ie:oe===ue?Ce=1/3+xe-Fe:ae===ue&&(Ce=2/3+Ie-xe),Ce<0&&(Ce+=1),Ce>1&&(Ce-=1)}var ze=[Ce*360,$e,_e];return $[3]!=null&&ze.push($[3]),ze}}function lift($,z){var oe=parse$1($);if(oe){for(var ae=0;ae<3;ae++)z<0?oe[ae]=oe[ae]*(1-z)|0:oe[ae]=(255-oe[ae])*z+oe[ae]|0,oe[ae]>255?oe[ae]=255:oe[ae]<0&&(oe[ae]=0);return stringify(oe,oe.length===4?"rgba":"rgb")}}function toHex($){var z=parse$1($);if(z)return((1<<24)+(z[0]<<16)+(z[1]<<8)+ +z[2]).toString(16).slice(1)}function fastLerp($,z,oe){if(!(!(z&&z.length)||!($>=0&&$<=1))){oe=oe||[];var ae=$*(z.length-1),le=Math.floor(ae),ue=Math.ceil(ae),pe=z[le],_e=z[ue],Ce=ae-le;return oe[0]=clampCssByte(lerpNumber(pe[0],_e[0],Ce)),oe[1]=clampCssByte(lerpNumber(pe[1],_e[1],Ce)),oe[2]=clampCssByte(lerpNumber(pe[2],_e[2],Ce)),oe[3]=clampCssFloat(lerpNumber(pe[3],_e[3],Ce)),oe}}var fastMapToColor=fastLerp;function lerp($,z,oe){if(!(!(z&&z.length)||!($>=0&&$<=1))){var ae=$*(z.length-1),le=Math.floor(ae),ue=Math.ceil(ae),pe=parse$1(z[le]),_e=parse$1(z[ue]),Ce=ae-le,$e=stringify([clampCssByte(lerpNumber(pe[0],_e[0],Ce)),clampCssByte(lerpNumber(pe[1],_e[1],Ce)),clampCssByte(lerpNumber(pe[2],_e[2],Ce)),clampCssFloat(lerpNumber(pe[3],_e[3],Ce))],"rgba");return oe?{color:$e,leftIndex:le,rightIndex:ue,value:ae}:$e}}var mapToColor=lerp;function modifyHSL($,z,oe,ae){var le=parse$1($);if($)return le=rgba2hsla(le),z!=null&&(le[0]=clampCssAngle(z)),oe!=null&&(le[1]=parseCssFloat(oe)),ae!=null&&(le[2]=parseCssFloat(ae)),stringify(hsla2rgba(le),"rgba")}function modifyAlpha($,z){var oe=parse$1($);if(oe&&z!=null)return oe[3]=clampCssFloat(z),stringify(oe,"rgba")}function stringify($,z){if(!(!$||!$.length)){var oe=$[0]+","+$[1]+","+$[2];return(z==="rgba"||z==="hsva"||z==="hsla")&&(oe+=","+$[3]),z+"("+oe+")"}}function lum($,z){var oe=parse$1($);return oe?(.299*oe[0]+.587*oe[1]+.114*oe[2])*oe[3]/255+(1-oe[3])*z:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const color=Object.freeze(Object.defineProperty({__proto__:null,fastLerp,fastMapToColor,lerp,lift,lum,mapToColor,modifyAlpha,modifyHSL,parse:parse$1,random,stringify,toHex},Symbol.toStringTag,{value:"Module"}));function isLinearGradient($){return $.type==="linear"}function isRadialGradient($){return $.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function($){return window.btoa(unescape(encodeURIComponent($)))}:typeof Buffer<"u"?function($){return Buffer.from($).toString("base64")}:function($){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1($,z,oe){return(z-$)*oe+$}function interpolate1DArray($,z,oe,ae){for(var le=z.length,ue=0;ue<le;ue++)$[ue]=interpolateNumber$1(z[ue],oe[ue],ae);return $}function interpolate2DArray($,z,oe,ae){for(var le=z.length,ue=le&&z[0].length,pe=0;pe<le;pe++){$[pe]||($[pe]=[]);for(var _e=0;_e<ue;_e++)$[pe][_e]=interpolateNumber$1(z[pe][_e],oe[pe][_e],ae)}return $}function add1DArray($,z,oe,ae){for(var le=z.length,ue=0;ue<le;ue++)$[ue]=z[ue]+oe[ue]*ae;return $}function add2DArray($,z,oe,ae){for(var le=z.length,ue=le&&z[0].length,pe=0;pe<le;pe++){$[pe]||($[pe]=[]);for(var _e=0;_e<ue;_e++)$[pe][_e]=z[pe][_e]+oe[pe][_e]*ae}return $}function fillColorStops($,z){for(var oe=$.length,ae=z.length,le=oe>ae?z:$,ue=Math.min(oe,ae),pe=le[ue-1]||{color:[0,0,0,0],offset:0},_e=ue;_e<Math.max(oe,ae);_e++)le.push({offset:pe.offset,color:pe.color.slice()})}function fillArray($,z,oe){var ae=$,le=z;if(!(!ae.push||!le.push)){var ue=ae.length,pe=le.length;if(ue!==pe){var _e=ue>pe;if(_e)ae.length=pe;else for(var Ce=ue;Ce<pe;Ce++)ae.push(oe===1?le[Ce]:arraySlice.call(le[Ce]))}for(var $e=ae[0]&&ae[0].length,Ce=0;Ce<ae.length;Ce++)if(oe===1)isNaN(ae[Ce])&&(ae[Ce]=le[Ce]);else for(var xe=0;xe<$e;xe++)isNaN(ae[Ce][xe])&&(ae[Ce][xe]=le[Ce][xe])}}function cloneValue($){if(isArrayLike($)){var z=$.length;if(isArrayLike($[0])){for(var oe=[],ae=0;ae<z;ae++)oe.push(arraySlice.call($[ae]));return oe}return arraySlice.call($)}return $}function rgba2String($){return $[0]=Math.floor($[0])||0,$[1]=Math.floor($[1])||0,$[2]=Math.floor($[2])||0,$[3]=$[3]==null?1:$[3],"rgba("+$.join(",")+")"}function guessArrayDim($){return isArrayLike($&&$[0])?2:1}var VALUE_TYPE_NUMBER=0,VALUE_TYPE_1D_ARRAY=1,VALUE_TYPE_2D_ARRAY=2,VALUE_TYPE_COLOR=3,VALUE_TYPE_LINEAR_GRADIENT=4,VALUE_TYPE_RADIAL_GRADIENT=5,VALUE_TYPE_UNKOWN=6;function isGradientValueType($){return $===VALUE_TYPE_LINEAR_GRADIENT||$===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType($){return $===VALUE_TYPE_1D_ARRAY||$===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function $(z){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=z}return $.prototype.isFinished=function(){return this._finished},$.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},$.prototype.needsAnimate=function(){return this.keyframes.length>=1},$.prototype.getAdditiveTrack=function(){return this._additiveTrack},$.prototype.addKeyframe=function(z,oe,ae){this._needsSort=!0;var le=this.keyframes,ue=le.length,pe=!1,_e=VALUE_TYPE_UNKOWN,Ce=oe;if(isArrayLike(oe)){var $e=guessArrayDim(oe);_e=$e,($e===1&&!isNumber(oe[0])||$e===2&&!isNumber(oe[0][0]))&&(pe=!0)}else if(isNumber(oe)&&!eqNaN(oe))_e=VALUE_TYPE_NUMBER;else if(isString(oe))if(!isNaN(+oe))_e=VALUE_TYPE_NUMBER;else{var xe=parse$1(oe);xe&&(Ce=xe,_e=VALUE_TYPE_COLOR)}else if(isGradientObject(oe)){var Ie=extend({},Ce);Ie.colorStops=map$2(oe.colorStops,function(ze){return{offset:ze.offset,color:parse$1(ze.color)}}),isLinearGradient(oe)?_e=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(oe)&&(_e=VALUE_TYPE_RADIAL_GRADIENT),Ce=Ie}ue===0?this.valType=_e:(_e!==this.valType||_e===VALUE_TYPE_UNKOWN)&&(pe=!0),this.discrete=this.discrete||pe;var Fe={time:z,value:Ce,rawValue:oe,percent:0};return ae&&(Fe.easing=ae,Fe.easingFunc=isFunction(ae)?ae:easingFuncs$1[ae]||createCubicEasingFunc(ae)),le.push(Fe),Fe},$.prototype.prepare=function(z,oe){var ae=this.keyframes;this._needsSort&&ae.sort(function(qe,At){return qe.time-At.time});for(var le=this.valType,ue=ae.length,pe=ae[ue-1],_e=this.discrete,Ce=isArrayValueType(le),$e=isGradientValueType(le),xe=0;xe<ue;xe++){var Ie=ae[xe],Fe=Ie.value,ze=pe.value;Ie.percent=Ie.time/z,_e||(Ce&&xe!==ue-1?fillArray(Fe,ze,le):$e&&fillColorStops(Fe.colorStops,ze.colorStops))}if(!_e&&le!==VALUE_TYPE_RADIAL_GRADIENT&&oe&&this.needsAnimate()&&oe.needsAnimate()&&le===oe.valType&&!oe._finished){this._additiveTrack=oe;for(var Ue=ae[0].value,xe=0;xe<ue;xe++)le===VALUE_TYPE_NUMBER?ae[xe].additiveValue=ae[xe].value-Ue:le===VALUE_TYPE_COLOR?ae[xe].additiveValue=add1DArray([],ae[xe].value,Ue,-1):isArrayValueType(le)&&(ae[xe].additiveValue=le===VALUE_TYPE_1D_ARRAY?add1DArray([],ae[xe].value,Ue,-1):add2DArray([],ae[xe].value,Ue,-1))}},$.prototype.step=function(z,oe){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var ae=this._additiveTrack!=null,le=ae?"additiveValue":"value",ue=this.valType,pe=this.keyframes,_e=pe.length,Ce=this.propName,$e=ue===VALUE_TYPE_COLOR,xe,Ie=this._lastFr,Fe=Math.min,ze,Ue;if(_e===1)ze=Ue=pe[0];else{if(oe<0)xe=0;else if(oe<this._lastFrP){var qe=Fe(Ie+1,_e-1);for(xe=qe;xe>=0&&!(pe[xe].percent<=oe);xe--);xe=Fe(xe,_e-2)}else{for(xe=Ie;xe<_e&&!(pe[xe].percent>oe);xe++);xe=Fe(xe-1,_e-2)}Ue=pe[xe+1],ze=pe[xe]}if(ze&&Ue){this._lastFr=xe,this._lastFrP=oe;var At=Ue.percent-ze.percent,Lt=At===0?1:Fe((oe-ze.percent)/At,1);Ue.easingFunc&&(Lt=Ue.easingFunc(Lt));var hn=ae?this._additiveValue:$e?tmpRgba:z[Ce];if((isArrayValueType(ue)||$e)&&!hn&&(hn=this._additiveValue=[]),this.discrete)z[Ce]=Lt<1?ze.rawValue:Ue.rawValue;else if(isArrayValueType(ue))ue===VALUE_TYPE_1D_ARRAY?interpolate1DArray(hn,ze[le],Ue[le],Lt):interpolate2DArray(hn,ze[le],Ue[le],Lt);else if(isGradientValueType(ue)){var vn=ze[le],_n=Ue[le],bn=ue===VALUE_TYPE_LINEAR_GRADIENT;z[Ce]={type:bn?"linear":"radial",x:interpolateNumber$1(vn.x,_n.x,Lt),y:interpolateNumber$1(vn.y,_n.y,Lt),colorStops:map$2(vn.colorStops,function(Cn,En){var $n=_n.colorStops[En];return{offset:interpolateNumber$1(Cn.offset,$n.offset,Lt),color:rgba2String(interpolate1DArray([],Cn.color,$n.color,Lt))}}),global:_n.global},bn?(z[Ce].x2=interpolateNumber$1(vn.x2,_n.x2,Lt),z[Ce].y2=interpolateNumber$1(vn.y2,_n.y2,Lt)):z[Ce].r=interpolateNumber$1(vn.r,_n.r,Lt)}else if($e)interpolate1DArray(hn,ze[le],Ue[le],Lt),ae||(z[Ce]=rgba2String(hn));else{var Sn=interpolateNumber$1(ze[le],Ue[le],Lt);ae?this._additiveValue=Sn:z[Ce]=Sn}ae&&this._addToTarget(z)}}},$.prototype._addToTarget=function(z){var oe=this.valType,ae=this.propName,le=this._additiveValue;oe===VALUE_TYPE_NUMBER?z[ae]=z[ae]+le:oe===VALUE_TYPE_COLOR?(parse$1(z[ae],tmpRgba),add1DArray(tmpRgba,tmpRgba,le,1),z[ae]=rgba2String(tmpRgba)):oe===VALUE_TYPE_1D_ARRAY?add1DArray(z[ae],z[ae],le,1):oe===VALUE_TYPE_2D_ARRAY&&add2DArray(z[ae],z[ae],le,1)},$}(),Animator=function(){function $(z,oe,ae,le){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=z,this._loop=oe,oe&&le){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=le,this._allowDiscrete=ae}return $.prototype.getMaxTime=function(){return this._maxTime},$.prototype.getDelay=function(){return this._delay},$.prototype.getLoop=function(){return this._loop},$.prototype.getTarget=function(){return this._target},$.prototype.changeTarget=function(z){this._target=z},$.prototype.when=function(z,oe,ae){return this.whenWithKeys(z,oe,keys(oe),ae)},$.prototype.whenWithKeys=function(z,oe,ae,le){for(var ue=this._tracks,pe=0;pe<ae.length;pe++){var _e=ae[pe],Ce=ue[_e];if(!Ce){Ce=ue[_e]=new Track(_e);var $e=void 0,xe=this._getAdditiveTrack(_e);if(xe){var Ie=xe.keyframes,Fe=Ie[Ie.length-1];$e=Fe&&Fe.value,xe.valType===VALUE_TYPE_COLOR&&$e&&($e=rgba2String($e))}else $e=this._target[_e];if($e==null)continue;z>0&&Ce.addKeyframe(0,cloneValue($e),le),this._trackKeys.push(_e)}Ce.addKeyframe(z,cloneValue(oe[_e]),le)}return this._maxTime=Math.max(this._maxTime,z),this},$.prototype.pause=function(){this._clip.pause(),this._paused=!0},$.prototype.resume=function(){this._clip.resume(),this._paused=!1},$.prototype.isPaused=function(){return!!this._paused},$.prototype.duration=function(z){return this._maxTime=z,this._force=!0,this},$.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var z=this._doneCbs;if(z)for(var oe=z.length,ae=0;ae<oe;ae++)z[ae].call(this)},$.prototype._abortedCallback=function(){this._setTracksFinished();var z=this.animation,oe=this._abortedCbs;if(z&&z.removeClip(this._clip),this._clip=null,oe)for(var ae=0;ae<oe.length;ae++)oe[ae].call(this)},$.prototype._setTracksFinished=function(){for(var z=this._tracks,oe=this._trackKeys,ae=0;ae<oe.length;ae++)z[oe[ae]].setFinished()},$.prototype._getAdditiveTrack=function(z){var oe,ae=this._additiveAnimators;if(ae)for(var le=0;le<ae.length;le++){var ue=ae[le].getTrack(z);ue&&(oe=ue)}return oe},$.prototype.start=function(z){if(!(this._started>0)){this._started=1;for(var oe=this,ae=[],le=this._maxTime||0,ue=0;ue<this._trackKeys.length;ue++){var pe=this._trackKeys[ue],_e=this._tracks[pe],Ce=this._getAdditiveTrack(pe),$e=_e.keyframes,xe=$e.length;if(_e.prepare(le,Ce),_e.needsAnimate())if(!this._allowDiscrete&&_e.discrete){var Ie=$e[xe-1];Ie&&(oe._target[_e.propName]=Ie.rawValue),_e.setFinished()}else ae.push(_e)}if(ae.length||this._force){var Fe=new Clip$1({life:le,loop:this._loop,delay:this._delay||0,onframe:function(ze){oe._started=2;var Ue=oe._additiveAnimators;if(Ue){for(var qe=!1,At=0;At<Ue.length;At++)if(Ue[At]._clip){qe=!0;break}qe||(oe._additiveAnimators=null)}for(var At=0;At<ae.length;At++)ae[At].step(oe._target,ze);var Lt=oe._onframeCbs;if(Lt)for(var At=0;At<Lt.length;At++)Lt[At](oe._target,ze)},ondestroy:function(){oe._doneCallback()}});this._clip=Fe,this.animation&&this.animation.addClip(Fe),z&&Fe.setEasing(z)}else this._doneCallback();return this}},$.prototype.stop=function(z){if(this._clip){var oe=this._clip;z&&oe.onframe(1),this._abortedCallback()}},$.prototype.delay=function(z){return this._delay=z,this},$.prototype.during=function(z){return z&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(z)),this},$.prototype.done=function(z){return z&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(z)),this},$.prototype.aborted=function(z){return z&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(z)),this},$.prototype.getClip=function(){return this._clip},$.prototype.getTrack=function(z){return this._tracks[z]},$.prototype.getTracks=function(){var z=this;return map$2(this._trackKeys,function(oe){return z._tracks[oe]})},$.prototype.stopTracks=function(z,oe){if(!z.length||!this._clip)return!0;for(var ae=this._tracks,le=this._trackKeys,ue=0;ue<z.length;ue++){var pe=ae[z[ue]];pe&&!pe.isFinished()&&(oe?pe.step(this._target,1):this._started===1&&pe.step(this._target,0),pe.setFinished())}for(var _e=!0,ue=0;ue<le.length;ue++)if(!ae[le[ue]].isFinished()){_e=!1;break}return _e&&this._abortedCallback(),_e},$.prototype.saveTo=function(z,oe,ae){if(z){oe=oe||this._trackKeys;for(var le=0;le<oe.length;le++){var ue=oe[le],pe=this._tracks[ue];if(!(!pe||pe.isFinished())){var _e=pe.keyframes,Ce=_e[ae?0:_e.length-1];Ce&&(z[ue]=cloneValue(Ce.rawValue))}}}},$.prototype.__changeFinalValue=function(z,oe){oe=oe||keys(z);for(var ae=0;ae<oe.length;ae++){var le=oe[ae],ue=this._tracks[le];if(ue){var pe=ue.keyframes;if(pe.length>1){var _e=pe.pop();ue.addKeyframe(_e.time,z[le]),ue.prepare(this._maxTime,ue.getAdditiveTrack())}}}},$}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae._running=!1,ae._time=0,ae._pausedTime=0,ae._pauseStart=0,ae._paused=!1,oe=oe||{},ae.stage=oe.stage||{},ae}return z.prototype.addClip=function(oe){oe.animation&&this.removeClip(oe),this._head?(this._tail.next=oe,oe.prev=this._tail,oe.next=null,this._tail=oe):this._head=this._tail=oe,oe.animation=this},z.prototype.addAnimator=function(oe){oe.animation=this;var ae=oe.getClip();ae&&this.addClip(ae)},z.prototype.removeClip=function(oe){if(oe.animation){var ae=oe.prev,le=oe.next;ae?ae.next=le:this._head=le,le?le.prev=ae:this._tail=ae,oe.next=oe.prev=oe.animation=null}},z.prototype.removeAnimator=function(oe){var ae=oe.getClip();ae&&this.removeClip(ae),oe.animation=null},z.prototype.update=function(oe){for(var ae=getTime()-this._pausedTime,le=ae-this._time,ue=this._head;ue;){var pe=ue.next,_e=ue.step(ae,le);_e&&(ue.ondestroy(),this.removeClip(ue)),ue=pe}this._time=ae,oe||(this.trigger("frame",le),this.stage.update&&this.stage.update())},z.prototype._startLoop=function(){var oe=this;this._running=!0;function ae(){oe._running&&(requestAnimationFrame$2(ae),!oe._paused&&oe.update())}requestAnimationFrame$2(ae)},z.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},z.prototype.stop=function(){this._running=!1},z.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},z.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},z.prototype.clear=function(){for(var oe=this._head;oe;){var ae=oe.next;oe.prev=oe.next=oe.animation=null,oe=ae}this._head=this._tail=null},z.prototype.isFinished=function(){return this._head==null},z.prototype.animate=function(oe,ae){ae=ae||{},this.start();var le=new Animator$1(oe,ae.loop);return this.addAnimator(le),le},z}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var $=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],z=["touchstart","touchend","touchmove"],oe={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},ae=map$2($,function(le){var ue=le.replace("mouse","pointer");return oe.hasOwnProperty(ue)?ue:le});return{mouse:$,touch:z,pointer:ae}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch($){var z=$.pointerType;return z==="pen"||z==="touch"}function setTouchTimer($){$.touching=!0,$.touchTimer!=null&&(clearTimeout($.touchTimer),$.touchTimer=null),$.touchTimer=setTimeout(function(){$.touching=!1,$.touchTimer=null},700)}function markTouch($){$&&($.zrByTouch=!0)}function normalizeGlobalEvent($,z){return normalizeEvent($.dom,new FakeGlobalEvent($,z),!0)}function isLocalEl($,z){for(var oe=z,ae=!1;oe&&oe.nodeType!==9&&!(ae=oe.domBelongToZr||oe!==z&&oe===$.painterRoot);)oe=oe.parentNode;return ae}var FakeGlobalEvent=function(){function $(z,oe){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=oe.type,this.target=this.currentTarget=z.dom,this.pointerType=oe.pointerType,this.clientX=oe.clientX,this.clientY=oe.clientY}return $}(),localDOMHandlers={mousedown:function($){$=normalizeEvent(this.dom,$),this.__mayPointerCapture=[$.zrX,$.zrY],this.trigger("mousedown",$)},mousemove:function($){$=normalizeEvent(this.dom,$);var z=this.__mayPointerCapture;z&&($.zrX!==z[0]||$.zrY!==z[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",$)},mouseup:function($){$=normalizeEvent(this.dom,$),this.__togglePointerCapture(!1),this.trigger("mouseup",$)},mouseout:function($){$=normalizeEvent(this.dom,$);var z=$.toElement||$.relatedTarget;isLocalEl(this,z)||(this.__pointerCapturing&&($.zrEventControl="no_globalout"),this.trigger("mouseout",$))},wheel:function($){wheelEventSupported=!0,$=normalizeEvent(this.dom,$),this.trigger("mousewheel",$)},mousewheel:function($){wheelEventSupported||($=normalizeEvent(this.dom,$),this.trigger("mousewheel",$))},touchstart:function($){$=normalizeEvent(this.dom,$),markTouch($),this.__lastTouchMoment=new Date,this.handler.processGesture($,"start"),localDOMHandlers.mousemove.call(this,$),localDOMHandlers.mousedown.call(this,$)},touchmove:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"change"),localDOMHandlers.mousemove.call(this,$)},touchend:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"end"),localDOMHandlers.mouseup.call(this,$),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,$)},pointerdown:function($){localDOMHandlers.mousedown.call(this,$)},pointermove:function($){isPointerFromTouch($)||localDOMHandlers.mousemove.call(this,$)},pointerup:function($){localDOMHandlers.mouseup.call(this,$)},pointerout:function($){isPointerFromTouch($)||localDOMHandlers.mouseout.call(this,$)}};each$c(["click","dblclick","contextmenu"],function($){localDOMHandlers[$]=function(z){z=normalizeEvent(this.dom,z),this.trigger($,z)}});var globalDOMHandlers={pointermove:function($){isPointerFromTouch($)||globalDOMHandlers.mousemove.call(this,$)},pointerup:function($){globalDOMHandlers.mouseup.call(this,$)},mousemove:function($){this.trigger("mousemove",$)},mouseup:function($){var z=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",$),z&&($.zrEventControl="only_globalout",this.trigger("mouseout",$))}};function mountLocalDOMEventListeners($,z){var oe=z.domHandlers;env$1.pointerEventsSupported?each$c(localNativeListenerNames.pointer,function(ae){mountSingleDOMEventListener(z,ae,function(le){oe[ae].call($,le)})}):(env$1.touchEventsSupported&&each$c(localNativeListenerNames.touch,function(ae){mountSingleDOMEventListener(z,ae,function(le){oe[ae].call($,le),setTouchTimer(z)})}),each$c(localNativeListenerNames.mouse,function(ae){mountSingleDOMEventListener(z,ae,function(le){le=getNativeEvent(le),z.touching||oe[ae].call($,le)})}))}function mountGlobalDOMEventListeners($,z){env$1.pointerEventsSupported?each$c(globalNativeListenerNames.pointer,oe):env$1.touchEventsSupported||each$c(globalNativeListenerNames.mouse,oe);function oe(ae){function le(ue){ue=getNativeEvent(ue),isLocalEl($,ue.target)||(ue=normalizeGlobalEvent($,ue),z.domHandlers[ae].call($,ue))}mountSingleDOMEventListener(z,ae,le,{capture:!0})}}function mountSingleDOMEventListener($,z,oe,ae){$.mounted[z]=oe,$.listenerOpts[z]=ae,addEventListener($.domTarget,z,oe,ae)}function unmountDOMEventListeners($){var z=$.mounted;for(var oe in z)z.hasOwnProperty(oe)&&removeEventListener($.domTarget,oe,z[oe],$.listenerOpts[oe]);$.mounted={}}var DOMHandlerScope=function(){function $(z,oe){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=z,this.domHandlers=oe}return $}(),HandlerDomProxy=function($){__extends(z,$);function z(oe,ae){var le=$.call(this)||this;return le.__pointerCapturing=!1,le.dom=oe,le.painterRoot=ae,le._localHandlerScope=new DOMHandlerScope(oe,localDOMHandlers),globalEventSupported&&(le._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(le,le._localHandlerScope),le}return z.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},z.prototype.setCursor=function(oe){this.dom.style&&(this.dom.style.cursor=oe||"default")},z.prototype.__togglePointerCapture=function(oe){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+oe){this.__pointerCapturing=oe;var ae=this._globalHandlerScope;oe?mountGlobalDOMEventListeners(this,ae):unmountDOMEventListeners(ae)}},z}(Eventful$1);const HandlerProxy=HandlerDomProxy;var dpr=1;env$1.hasGlobalWindow&&(dpr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var devicePixelRatio=dpr,DARK_MODE_THRESHOLD=.4,DARK_LABEL_COLOR="#333",LIGHT_LABEL_COLOR="#ccc",LIGHTER_LABEL_COLOR="#eee",mIdentity=identity,EPSILON$2=5e-5;function isNotAroundZero($){return $>EPSILON$2||$<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function $(){}return $.prototype.getLocalTransform=function(z){return $.getLocalTransform(this,z)},$.prototype.setPosition=function(z){this.x=z[0],this.y=z[1]},$.prototype.setScale=function(z){this.scaleX=z[0],this.scaleY=z[1]},$.prototype.setSkew=function(z){this.skewX=z[0],this.skewY=z[1]},$.prototype.setOrigin=function(z){this.originX=z[0],this.originY=z[1]},$.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},$.prototype.updateTransform=function(){var z=this.parent&&this.parent.transform,oe=this.needLocalTransform(),ae=this.transform;if(!(oe||z)){ae&&mIdentity(ae);return}ae=ae||create(),oe?this.getLocalTransform(ae):mIdentity(ae),z&&(oe?mul(ae,z,ae):copy(ae,z)),this.transform=ae,this._resolveGlobalScaleRatio(ae)},$.prototype._resolveGlobalScaleRatio=function(z){var oe=this.globalScaleRatio;if(oe!=null&&oe!==1){this.getGlobalScale(scaleTmp);var ae=scaleTmp[0]<0?-1:1,le=scaleTmp[1]<0?-1:1,ue=((scaleTmp[0]-ae)*oe+ae)/scaleTmp[0]||0,pe=((scaleTmp[1]-le)*oe+le)/scaleTmp[1]||0;z[0]*=ue,z[1]*=ue,z[2]*=pe,z[3]*=pe}this.invTransform=this.invTransform||create(),invert(this.invTransform,z)},$.prototype.getComputedTransform=function(){for(var z=this,oe=[];z;)oe.push(z),z=z.parent;for(;z=oe.pop();)z.updateTransform();return this.transform},$.prototype.setLocalTransform=function(z){if(z){var oe=z[0]*z[0]+z[1]*z[1],ae=z[2]*z[2]+z[3]*z[3],le=Math.atan2(z[1],z[0]),ue=Math.PI/2+le-Math.atan2(z[3],z[2]);ae=Math.sqrt(ae)*Math.cos(ue),oe=Math.sqrt(oe),this.skewX=ue,this.skewY=0,this.rotation=-le,this.x=+z[4],this.y=+z[5],this.scaleX=oe,this.scaleY=ae,this.originX=0,this.originY=0}},$.prototype.decomposeTransform=function(){if(this.transform){var z=this.parent,oe=this.transform;z&&z.transform&&(mul(tmpTransform,z.invTransform,oe),oe=tmpTransform);var ae=this.originX,le=this.originY;(ae||le)&&(originTransform[4]=ae,originTransform[5]=le,mul(tmpTransform,oe,originTransform),tmpTransform[4]-=ae,tmpTransform[5]-=le,oe=tmpTransform),this.setLocalTransform(oe)}},$.prototype.getGlobalScale=function(z){var oe=this.transform;return z=z||[],oe?(z[0]=Math.sqrt(oe[0]*oe[0]+oe[1]*oe[1]),z[1]=Math.sqrt(oe[2]*oe[2]+oe[3]*oe[3]),oe[0]<0&&(z[0]=-z[0]),oe[3]<0&&(z[1]=-z[1]),z):(z[0]=1,z[1]=1,z)},$.prototype.transformCoordToLocal=function(z,oe){var ae=[z,oe],le=this.invTransform;return le&&applyTransform$1(ae,ae,le),ae},$.prototype.transformCoordToGlobal=function(z,oe){var ae=[z,oe],le=this.transform;return le&&applyTransform$1(ae,ae,le),ae},$.prototype.getLineScale=function(){var z=this.transform;return z&&abs(z[0]-1)>1e-10&&abs(z[3]-1)>1e-10?Math.sqrt(abs(z[0]*z[3]-z[2]*z[1])):1},$.prototype.copyTransform=function(z){copyTransform(this,z)},$.getLocalTransform=function(z,oe){oe=oe||[];var ae=z.originX||0,le=z.originY||0,ue=z.scaleX,pe=z.scaleY,_e=z.anchorX,Ce=z.anchorY,$e=z.rotation||0,xe=z.x,Ie=z.y,Fe=z.skewX?Math.tan(z.skewX):0,ze=z.skewY?Math.tan(-z.skewY):0;if(ae||le||_e||Ce){var Ue=ae+_e,qe=le+Ce;oe[4]=-Ue*ue-Fe*qe*pe,oe[5]=-qe*pe-ze*Ue*ue}else oe[4]=oe[5]=0;return oe[0]=ue,oe[3]=pe,oe[1]=ze*ue,oe[2]=Fe*pe,$e&&rotate(oe,oe,$e),oe[4]+=ae+xe,oe[5]+=le+Ie,oe},$.initDefaultProps=function(){var z=$.prototype;z.scaleX=z.scaleY=z.globalScaleRatio=1,z.x=z.y=z.originX=z.originY=z.skewX=z.skewY=z.rotation=z.anchorX=z.anchorY=0}(),$}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform($,z){for(var oe=0;oe<TRANSFORMABLE_PROPS.length;oe++){var ae=TRANSFORMABLE_PROPS[oe];$[ae]=z[ae]}}const Transformable$1=Transformable;var textWidthCache={};function getWidth($,z){z=z||DEFAULT_FONT;var oe=textWidthCache[z];oe||(oe=textWidthCache[z]=new LRU$1(500));var ae=oe.get($);return ae==null&&(ae=platformApi.measureText($,z).width,oe.put($,ae)),ae}function innerGetBoundingRect($,z,oe,ae){var le=getWidth($,z),ue=getLineHeight(z),pe=adjustTextX(0,le,oe),_e=adjustTextY(0,ue,ae),Ce=new BoundingRect$1(pe,_e,le,ue);return Ce}function getBoundingRect($,z,oe,ae){var le=(($||"")+"").split(`
|
||
`),ue=le.length;if(ue===1)return innerGetBoundingRect(le[0],z,oe,ae);for(var pe=new BoundingRect$1(0,0,0,0),_e=0;_e<le.length;_e++){var Ce=innerGetBoundingRect(le[_e],z,oe,ae);_e===0?pe.copy(Ce):pe.union(Ce)}return pe}function adjustTextX($,z,oe){return oe==="right"?$-=z:oe==="center"&&($-=z/2),$}function adjustTextY($,z,oe){return oe==="middle"?$-=z/2:oe==="bottom"&&($-=z),$}function getLineHeight($){return getWidth("国",$)}function parsePercent$1($,z){return typeof $=="string"?$.lastIndexOf("%")>=0?parseFloat($)/100*z:parseFloat($):$}function calculateTextPosition($,z,oe){var ae=z.position||"inside",le=z.distance!=null?z.distance:5,ue=oe.height,pe=oe.width,_e=ue/2,Ce=oe.x,$e=oe.y,xe="left",Ie="top";if(ae instanceof Array)Ce+=parsePercent$1(ae[0],oe.width),$e+=parsePercent$1(ae[1],oe.height),xe=null,Ie=null;else switch(ae){case"left":Ce-=le,$e+=_e,xe="right",Ie="middle";break;case"right":Ce+=le+pe,$e+=_e,Ie="middle";break;case"top":Ce+=pe/2,$e-=le,xe="center",Ie="bottom";break;case"bottom":Ce+=pe/2,$e+=ue+le,xe="center";break;case"inside":Ce+=pe/2,$e+=_e,xe="center",Ie="middle";break;case"insideLeft":Ce+=le,$e+=_e,Ie="middle";break;case"insideRight":Ce+=pe-le,$e+=_e,xe="right",Ie="middle";break;case"insideTop":Ce+=pe/2,$e+=le,xe="center";break;case"insideBottom":Ce+=pe/2,$e+=ue-le,xe="center",Ie="bottom";break;case"insideTopLeft":Ce+=le,$e+=le;break;case"insideTopRight":Ce+=pe-le,$e+=le,xe="right";break;case"insideBottomLeft":Ce+=le,$e+=ue-le,Ie="bottom";break;case"insideBottomRight":Ce+=pe-le,$e+=ue-le,xe="right",Ie="bottom";break}return $=$||{},$.x=Ce,$.y=$e,$.align=xe,$.verticalAlign=Ie,$}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function($,z){return $[z]=!0,$},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function $(z){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(z)}return $.prototype._init=function(z){this.attr(z)},$.prototype.drift=function(z,oe,ae){switch(this.draggable){case"horizontal":oe=0;break;case"vertical":z=0;break}var le=this.transform;le||(le=this.transform=[1,0,0,1,0,0]),le[4]+=z,le[5]+=oe,this.decomposeTransform(),this.markRedraw()},$.prototype.beforeUpdate=function(){},$.prototype.afterUpdate=function(){},$.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},$.prototype.updateInnerText=function(z){var oe=this._textContent;if(oe&&(!oe.ignore||z)){this.textConfig||(this.textConfig={});var ae=this.textConfig,le=ae.local,ue=oe.innerTransformable,pe=void 0,_e=void 0,Ce=!1;ue.parent=le?this:null;var $e=!1;if(ue.copyTransform(oe),ae.position!=null){var xe=tmpBoundingRect;ae.layoutRect?xe.copy(ae.layoutRect):xe.copy(this.getBoundingRect()),le||xe.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,ae,xe):calculateTextPosition(tmpTextPosCalcRes,ae,xe),ue.x=tmpTextPosCalcRes.x,ue.y=tmpTextPosCalcRes.y,pe=tmpTextPosCalcRes.align,_e=tmpTextPosCalcRes.verticalAlign;var Ie=ae.origin;if(Ie&&ae.rotation!=null){var Fe=void 0,ze=void 0;Ie==="center"?(Fe=xe.width*.5,ze=xe.height*.5):(Fe=parsePercent$1(Ie[0],xe.width),ze=parsePercent$1(Ie[1],xe.height)),$e=!0,ue.originX=-ue.x+Fe+(le?0:xe.x),ue.originY=-ue.y+ze+(le?0:xe.y)}}ae.rotation!=null&&(ue.rotation=ae.rotation);var Ue=ae.offset;Ue&&(ue.x+=Ue[0],ue.y+=Ue[1],$e||(ue.originX=-Ue[0],ue.originY=-Ue[1]));var qe=ae.inside==null?typeof ae.position=="string"&&ae.position.indexOf("inside")>=0:ae.inside,At=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),Lt=void 0,hn=void 0,vn=void 0;qe&&this.canBeInsideText()?(Lt=ae.insideFill,hn=ae.insideStroke,(Lt==null||Lt==="auto")&&(Lt=this.getInsideTextFill()),(hn==null||hn==="auto")&&(hn=this.getInsideTextStroke(Lt),vn=!0)):(Lt=ae.outsideFill,hn=ae.outsideStroke,(Lt==null||Lt==="auto")&&(Lt=this.getOutsideFill()),(hn==null||hn==="auto")&&(hn=this.getOutsideStroke(Lt),vn=!0)),Lt=Lt||"#000",(Lt!==At.fill||hn!==At.stroke||vn!==At.autoStroke||pe!==At.align||_e!==At.verticalAlign)&&(Ce=!0,At.fill=Lt,At.stroke=hn,At.autoStroke=vn,At.align=pe,At.verticalAlign=_e,oe.setDefaultTextStyle(At)),oe.__dirty|=REDRAW_BIT,Ce&&oe.dirtyStyle(!0)}},$.prototype.canBeInsideText=function(){return!0},$.prototype.getInsideTextFill=function(){return"#fff"},$.prototype.getInsideTextStroke=function(z){return"#000"},$.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},$.prototype.getOutsideStroke=function(z){var oe=this.__zr&&this.__zr.getBackgroundColor(),ae=typeof oe=="string"&&parse$1(oe);ae||(ae=[255,255,255,1]);for(var le=ae[3],ue=this.__zr.isDarkMode(),pe=0;pe<3;pe++)ae[pe]=ae[pe]*le+(ue?0:255)*(1-le);return ae[3]=1,stringify(ae,"rgba")},$.prototype.traverse=function(z,oe){},$.prototype.attrKV=function(z,oe){z==="textConfig"?this.setTextConfig(oe):z==="textContent"?this.setTextContent(oe):z==="clipPath"?this.setClipPath(oe):z==="extra"?(this.extra=this.extra||{},extend(this.extra,oe)):this[z]=oe},$.prototype.hide=function(){this.ignore=!0,this.markRedraw()},$.prototype.show=function(){this.ignore=!1,this.markRedraw()},$.prototype.attr=function(z,oe){if(typeof z=="string")this.attrKV(z,oe);else if(isObject$3(z))for(var ae=z,le=keys(ae),ue=0;ue<le.length;ue++){var pe=le[ue];this.attrKV(pe,z[pe])}return this.markRedraw(),this},$.prototype.saveCurrentToNormalState=function(z){this._innerSaveToNormal(z);for(var oe=this._normalState,ae=0;ae<this.animators.length;ae++){var le=this.animators[ae],ue=le.__fromStateTransition;if(!(le.getLoop()||ue&&ue!==PRESERVED_NORMAL_STATE)){var pe=le.targetName,_e=pe?oe[pe]:oe;le.saveTo(_e)}}},$.prototype._innerSaveToNormal=function(z){var oe=this._normalState;oe||(oe=this._normalState={}),z.textConfig&&!oe.textConfig&&(oe.textConfig=this.textConfig),this._savePrimaryToNormal(z,oe,PRIMARY_STATES_KEYS$1)},$.prototype._savePrimaryToNormal=function(z,oe,ae){for(var le=0;le<ae.length;le++){var ue=ae[le];z[ue]!=null&&!(ue in oe)&&(oe[ue]=this[ue])}},$.prototype.hasState=function(){return this.currentStates.length>0},$.prototype.getState=function(z){return this.states[z]},$.prototype.ensureState=function(z){var oe=this.states;return oe[z]||(oe[z]={}),oe[z]},$.prototype.clearStates=function(z){this.useState(PRESERVED_NORMAL_STATE,!1,z)},$.prototype.useState=function(z,oe,ae,le){var ue=z===PRESERVED_NORMAL_STATE,pe=this.hasState();if(!(!pe&&ue)){var _e=this.currentStates,Ce=this.stateTransition;if(!(indexOf(_e,z)>=0&&(oe||_e.length===1))){var $e;if(this.stateProxy&&!ue&&($e=this.stateProxy(z)),$e||($e=this.states&&this.states[z]),!$e&&!ue){logError("State "+z+" not exists.");return}ue||this.saveCurrentToNormalState($e);var xe=!!($e&&$e.hoverLayer||le);xe&&this._toggleHoverLayerFlag(!0),this._applyStateObj(z,$e,this._normalState,oe,!ae&&!this.__inHover&&Ce&&Ce.duration>0,Ce);var Ie=this._textContent,Fe=this._textGuide;return Ie&&Ie.useState(z,oe,ae,xe),Fe&&Fe.useState(z,oe,ae,xe),ue?(this.currentStates=[],this._normalState={}):oe?this.currentStates.push(z):this.currentStates=[z],this._updateAnimationTargets(),this.markRedraw(),!xe&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),$e}}},$.prototype.useStates=function(z,oe,ae){if(!z.length)this.clearStates();else{var le=[],ue=this.currentStates,pe=z.length,_e=pe===ue.length;if(_e){for(var Ce=0;Ce<pe;Ce++)if(z[Ce]!==ue[Ce]){_e=!1;break}}if(_e)return;for(var Ce=0;Ce<pe;Ce++){var $e=z[Ce],xe=void 0;this.stateProxy&&(xe=this.stateProxy($e,z)),xe||(xe=this.states[$e]),xe&&le.push(xe)}var Ie=le[pe-1],Fe=!!(Ie&&Ie.hoverLayer||ae);Fe&&this._toggleHoverLayerFlag(!0);var ze=this._mergeStates(le),Ue=this.stateTransition;this.saveCurrentToNormalState(ze),this._applyStateObj(z.join(","),ze,this._normalState,!1,!oe&&!this.__inHover&&Ue&&Ue.duration>0,Ue);var qe=this._textContent,At=this._textGuide;qe&&qe.useStates(z,oe,Fe),At&&At.useStates(z,oe,Fe),this._updateAnimationTargets(),this.currentStates=z.slice(),this.markRedraw(),!Fe&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},$.prototype._updateAnimationTargets=function(){for(var z=0;z<this.animators.length;z++){var oe=this.animators[z];oe.targetName&&oe.changeTarget(this[oe.targetName])}},$.prototype.removeState=function(z){var oe=indexOf(this.currentStates,z);if(oe>=0){var ae=this.currentStates.slice();ae.splice(oe,1),this.useStates(ae)}},$.prototype.replaceState=function(z,oe,ae){var le=this.currentStates.slice(),ue=indexOf(le,z),pe=indexOf(le,oe)>=0;ue>=0?pe?le.splice(ue,1):le[ue]=oe:ae&&!pe&&le.push(oe),this.useStates(le)},$.prototype.toggleState=function(z,oe){oe?this.useState(z,!0):this.removeState(z)},$.prototype._mergeStates=function(z){for(var oe={},ae,le=0;le<z.length;le++){var ue=z[le];extend(oe,ue),ue.textConfig&&(ae=ae||{},extend(ae,ue.textConfig))}return ae&&(oe.textConfig=ae),oe},$.prototype._applyStateObj=function(z,oe,ae,le,ue,pe){var _e=!(oe&&le);oe&&oe.textConfig?(this.textConfig=extend({},le?this.textConfig:ae.textConfig),extend(this.textConfig,oe.textConfig)):_e&&ae.textConfig&&(this.textConfig=ae.textConfig);for(var Ce={},$e=!1,xe=0;xe<PRIMARY_STATES_KEYS$1.length;xe++){var Ie=PRIMARY_STATES_KEYS$1[xe],Fe=ue&&DEFAULT_ANIMATABLE_MAP[Ie];oe&&oe[Ie]!=null?Fe?($e=!0,Ce[Ie]=oe[Ie]):this[Ie]=oe[Ie]:_e&&ae[Ie]!=null&&(Fe?($e=!0,Ce[Ie]=ae[Ie]):this[Ie]=ae[Ie])}if(!ue)for(var xe=0;xe<this.animators.length;xe++){var ze=this.animators[xe],Ue=ze.targetName;ze.getLoop()||ze.__changeFinalValue(Ue?(oe||ae)[Ue]:oe||ae)}$e&&this._transitionState(z,Ce,pe)},$.prototype._attachComponent=function(z){if(!(z.__zr&&!z.__hostTarget)&&z!==this){var oe=this.__zr;oe&&z.addSelfToZr(oe),z.__zr=oe,z.__hostTarget=this}},$.prototype._detachComponent=function(z){z.__zr&&z.removeSelfFromZr(z.__zr),z.__zr=null,z.__hostTarget=null},$.prototype.getClipPath=function(){return this._clipPath},$.prototype.setClipPath=function(z){this._clipPath&&this._clipPath!==z&&this.removeClipPath(),this._attachComponent(z),this._clipPath=z,this.markRedraw()},$.prototype.removeClipPath=function(){var z=this._clipPath;z&&(this._detachComponent(z),this._clipPath=null,this.markRedraw())},$.prototype.getTextContent=function(){return this._textContent},$.prototype.setTextContent=function(z){var oe=this._textContent;oe!==z&&(oe&&oe!==z&&this.removeTextContent(),z.innerTransformable=new Transformable$1,this._attachComponent(z),this._textContent=z,this.markRedraw())},$.prototype.setTextConfig=function(z){this.textConfig||(this.textConfig={}),extend(this.textConfig,z),this.markRedraw()},$.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},$.prototype.removeTextContent=function(){var z=this._textContent;z&&(z.innerTransformable=null,this._detachComponent(z),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},$.prototype.getTextGuideLine=function(){return this._textGuide},$.prototype.setTextGuideLine=function(z){this._textGuide&&this._textGuide!==z&&this.removeTextGuideLine(),this._attachComponent(z),this._textGuide=z,this.markRedraw()},$.prototype.removeTextGuideLine=function(){var z=this._textGuide;z&&(this._detachComponent(z),this._textGuide=null,this.markRedraw())},$.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var z=this.__zr;z&&(this.__inHover?z.refreshHover():z.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},$.prototype.dirty=function(){this.markRedraw()},$.prototype._toggleHoverLayerFlag=function(z){this.__inHover=z;var oe=this._textContent,ae=this._textGuide;oe&&(oe.__inHover=z),ae&&(ae.__inHover=z)},$.prototype.addSelfToZr=function(z){if(this.__zr!==z){this.__zr=z;var oe=this.animators;if(oe)for(var ae=0;ae<oe.length;ae++)z.animation.addAnimator(oe[ae]);this._clipPath&&this._clipPath.addSelfToZr(z),this._textContent&&this._textContent.addSelfToZr(z),this._textGuide&&this._textGuide.addSelfToZr(z)}},$.prototype.removeSelfFromZr=function(z){if(this.__zr){this.__zr=null;var oe=this.animators;if(oe)for(var ae=0;ae<oe.length;ae++)z.animation.removeAnimator(oe[ae]);this._clipPath&&this._clipPath.removeSelfFromZr(z),this._textContent&&this._textContent.removeSelfFromZr(z),this._textGuide&&this._textGuide.removeSelfFromZr(z)}},$.prototype.animate=function(z,oe,ae){var le=z?this[z]:this,ue=new Animator$1(le,oe,ae);return z&&(ue.targetName=z),this.addAnimator(ue,z),ue},$.prototype.addAnimator=function(z,oe){var ae=this.__zr,le=this;z.during(function(){le.updateDuringAnimation(oe)}).done(function(){var ue=le.animators,pe=indexOf(ue,z);pe>=0&&ue.splice(pe,1)}),this.animators.push(z),ae&&ae.animation.addAnimator(z),ae&&ae.wakeUp()},$.prototype.updateDuringAnimation=function(z){this.markRedraw()},$.prototype.stopAnimation=function(z,oe){for(var ae=this.animators,le=ae.length,ue=[],pe=0;pe<le;pe++){var _e=ae[pe];!z||z===_e.scope?_e.stop(oe):ue.push(_e)}return this.animators=ue,this},$.prototype.animateTo=function(z,oe,ae){animateTo(this,z,oe,ae)},$.prototype.animateFrom=function(z,oe,ae){animateTo(this,z,oe,ae,!0)},$.prototype._transitionState=function(z,oe,ae,le){for(var ue=animateTo(this,oe,ae,le),pe=0;pe<ue.length;pe++)ue[pe].__fromStateTransition=z},$.prototype.getBoundingRect=function(){return null},$.prototype.getPaintRect=function(){return null},$.initDefaultProps=function(){var z=$.prototype;z.type="element",z.name="",z.ignore=z.silent=z.isGroup=z.draggable=z.dragging=z.ignoreClip=z.__inHover=!1,z.__dirty=REDRAW_BIT;function oe(ae,le,ue,pe){Object.defineProperty(z,ae,{get:function(){if(!this[le]){var Ce=this[le]=[];_e(this,Ce)}return this[le]},set:function(Ce){this[ue]=Ce[0],this[pe]=Ce[1],this[le]=Ce,_e(this,Ce)}});function _e(Ce,$e){Object.defineProperty($e,0,{get:function(){return Ce[ue]},set:function(xe){Ce[ue]=xe}}),Object.defineProperty($e,1,{get:function(){return Ce[pe]},set:function(xe){Ce[pe]=xe}})}}Object.defineProperty&&(oe("position","_legacyPos","x","y"),oe("scale","_legacyScale","scaleX","scaleY"),oe("origin","_legacyOrigin","originX","originY"))}(),$}();mixin(Element$1,Eventful$1);mixin(Element$1,Transformable$1);function animateTo($,z,oe,ae,le){oe=oe||{};var ue=[];animateToShallow($,"",$,z,oe,ae,ue,le);var pe=ue.length,_e=!1,Ce=oe.done,$e=oe.aborted,xe=function(){_e=!0,pe--,pe<=0&&(_e?Ce&&Ce():$e&&$e())},Ie=function(){pe--,pe<=0&&(_e?Ce&&Ce():$e&&$e())};pe||Ce&&Ce(),ue.length>0&&oe.during&&ue[0].during(function(Ue,qe){oe.during(qe)});for(var Fe=0;Fe<ue.length;Fe++){var ze=ue[Fe];xe&&ze.done(xe),Ie&&ze.aborted(Ie),oe.force&&ze.duration(oe.duration),ze.start(oe.easing)}return ue}function copyArrShallow($,z,oe){for(var ae=0;ae<oe;ae++)$[ae]=z[ae]}function is2DArray($){return isArrayLike($[0])}function copyValue($,z,oe){if(isArrayLike(z[oe]))if(isArrayLike($[oe])||($[oe]=[]),isTypedArray(z[oe])){var ae=z[oe].length;$[oe].length!==ae&&($[oe]=new z[oe].constructor(ae),copyArrShallow($[oe],z[oe],ae))}else{var le=z[oe],ue=$[oe],pe=le.length;if(is2DArray(le))for(var _e=le[0].length,Ce=0;Ce<pe;Ce++)ue[Ce]?copyArrShallow(ue[Ce],le[Ce],_e):ue[Ce]=Array.prototype.slice.call(le[Ce]);else copyArrShallow(ue,le,pe);ue.length=le.length}else $[oe]=z[oe]}function isValueSame($,z){return $===z||isArrayLike($)&&isArrayLike(z)&&is1DArraySame($,z)}function is1DArraySame($,z){var oe=$.length;if(oe!==z.length)return!1;for(var ae=0;ae<oe;ae++)if($[ae]!==z[ae])return!1;return!0}function animateToShallow($,z,oe,ae,le,ue,pe,_e){for(var Ce=keys(ae),$e=le.duration,xe=le.delay,Ie=le.additive,Fe=le.setToFinal,ze=!isObject$3(ue),Ue=$.animators,qe=[],At=0;At<Ce.length;At++){var Lt=Ce[At],hn=ae[Lt];if(hn!=null&&oe[Lt]!=null&&(ze||ue[Lt]))if(isObject$3(hn)&&!isArrayLike(hn)&&!isGradientObject(hn)){if(z){_e||(oe[Lt]=hn,$.updateDuringAnimation(z));continue}animateToShallow($,Lt,oe[Lt],hn,le,ue&&ue[Lt],pe,_e)}else qe.push(Lt);else _e||(oe[Lt]=hn,$.updateDuringAnimation(z),qe.push(Lt))}var vn=qe.length;if(!Ie&&vn)for(var _n=0;_n<Ue.length;_n++){var bn=Ue[_n];if(bn.targetName===z){var Sn=bn.stopTracks(qe);if(Sn){var Cn=indexOf(Ue,bn);Ue.splice(Cn,1)}}}if(le.force||(qe=filter(qe,function(Tn){return!isValueSame(ae[Tn],oe[Tn])}),vn=qe.length),vn>0||le.force&&!pe.length){var En=void 0,$n=void 0,wn=void 0;if(_e){$n={},Fe&&(En={});for(var _n=0;_n<vn;_n++){var Lt=qe[_n];$n[Lt]=oe[Lt],Fe?En[Lt]=ae[Lt]:oe[Lt]=ae[Lt]}}else if(Fe){wn={};for(var _n=0;_n<vn;_n++){var Lt=qe[_n];wn[Lt]=cloneValue(oe[Lt]),copyValue(oe,ae,Lt)}}var bn=new Animator$1(oe,!1,!1,Ie?filter(Ue,function(xn){return xn.targetName===z}):null);bn.targetName=z,le.scope&&(bn.scope=le.scope),Fe&&En&&bn.whenWithKeys(0,En,qe),wn&&bn.whenWithKeys(0,wn,qe),bn.whenWithKeys($e??500,_e?$n:ae,qe).delay(xe||0),$.addAnimator(bn,z),pe.push(bn)}}const Element$2=Element$1;var Group$2=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae.isGroup=!0,ae._children=[],ae.attr(oe),ae}return z.prototype.childrenRef=function(){return this._children},z.prototype.children=function(){return this._children.slice()},z.prototype.childAt=function(oe){return this._children[oe]},z.prototype.childOfName=function(oe){for(var ae=this._children,le=0;le<ae.length;le++)if(ae[le].name===oe)return ae[le]},z.prototype.childCount=function(){return this._children.length},z.prototype.add=function(oe){return oe&&oe!==this&&oe.parent!==this&&(this._children.push(oe),this._doAdd(oe)),this},z.prototype.addBefore=function(oe,ae){if(oe&&oe!==this&&oe.parent!==this&&ae&&ae.parent===this){var le=this._children,ue=le.indexOf(ae);ue>=0&&(le.splice(ue,0,oe),this._doAdd(oe))}return this},z.prototype.replace=function(oe,ae){var le=indexOf(this._children,oe);return le>=0&&this.replaceAt(ae,le),this},z.prototype.replaceAt=function(oe,ae){var le=this._children,ue=le[ae];if(oe&&oe!==this&&oe.parent!==this&&oe!==ue){le[ae]=oe,ue.parent=null;var pe=this.__zr;pe&&ue.removeSelfFromZr(pe),this._doAdd(oe)}return this},z.prototype._doAdd=function(oe){oe.parent&&oe.parent.remove(oe),oe.parent=this;var ae=this.__zr;ae&&ae!==oe.__zr&&oe.addSelfToZr(ae),ae&&ae.refresh()},z.prototype.remove=function(oe){var ae=this.__zr,le=this._children,ue=indexOf(le,oe);return ue<0?this:(le.splice(ue,1),oe.parent=null,ae&&oe.removeSelfFromZr(ae),ae&&ae.refresh(),this)},z.prototype.removeAll=function(){for(var oe=this._children,ae=this.__zr,le=0;le<oe.length;le++){var ue=oe[le];ae&&ue.removeSelfFromZr(ae),ue.parent=null}return oe.length=0,this},z.prototype.eachChild=function(oe,ae){for(var le=this._children,ue=0;ue<le.length;ue++){var pe=le[ue];oe.call(ae,pe,ue)}return this},z.prototype.traverse=function(oe,ae){for(var le=0;le<this._children.length;le++){var ue=this._children[le],pe=oe.call(ae,ue);ue.isGroup&&!pe&&ue.traverse(oe,ae)}return this},z.prototype.addSelfToZr=function(oe){$.prototype.addSelfToZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++){var le=this._children[ae];le.addSelfToZr(oe)}},z.prototype.removeSelfFromZr=function(oe){$.prototype.removeSelfFromZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++){var le=this._children[ae];le.removeSelfFromZr(oe)}},z.prototype.getBoundingRect=function(oe){for(var ae=new BoundingRect$1(0,0,0,0),le=oe||this._children,ue=[],pe=null,_e=0;_e<le.length;_e++){var Ce=le[_e];if(!(Ce.ignore||Ce.invisible)){var $e=Ce.getBoundingRect(),xe=Ce.getLocalTransform(ue);xe?(BoundingRect$1.applyTransform(ae,$e,xe),pe=pe||ae.clone(),pe.union(ae)):(pe=pe||$e.clone(),pe.union($e))}}return pe||ae},z}(Element$2);Group$2.prototype.type="group";const Group$3=Group$2;/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var painterCtors={},instances$1={};function delInstance($){delete instances$1[$]}function isDarkMode($){if(!$)return!1;if(typeof $=="string")return lum($,1)<DARK_MODE_THRESHOLD;if($.colorStops){for(var z=$.colorStops,oe=0,ae=z.length,le=0;le<ae;le++)oe+=lum(z[le].color,1);return oe/=ae,oe<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function $(z,oe,ae){var le=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,ae=ae||{},this.dom=oe,this.id=z;var ue=new Storage$1,pe=ae.renderer||"canvas";painterCtors[pe]||(pe=keys(painterCtors)[0]),ae.useDirtyRect=ae.useDirtyRect==null?!1:ae.useDirtyRect;var _e=new painterCtors[pe](oe,ue,ae,z),Ce=ae.ssr||_e.ssrOnly;this.storage=ue,this.painter=_e;var $e=!env$1.node&&!env$1.worker&&!Ce?new HandlerProxy(_e.getViewportRoot(),_e.root):null,xe=ae.useCoarsePointer,Ie=xe==null||xe==="auto"?env$1.touchEventsSupported:!!xe,Fe=44,ze;Ie&&(ze=retrieve2(ae.pointerSize,Fe)),this.handler=new Handler$1(ue,_e,$e,_e.root,ze),this.animation=new Animation$1({stage:{update:Ce?null:function(){return le._flush(!0)}}}),Ce||this.animation.start()}return $.prototype.add=function(z){z&&(this.storage.addRoot(z),z.addSelfToZr(this),this.refresh())},$.prototype.remove=function(z){z&&(this.storage.delRoot(z),z.removeSelfFromZr(this),this.refresh())},$.prototype.configLayer=function(z,oe){this.painter.configLayer&&this.painter.configLayer(z,oe),this.refresh()},$.prototype.setBackgroundColor=function(z){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(z),this.refresh(),this._backgroundColor=z,this._darkMode=isDarkMode(z)},$.prototype.getBackgroundColor=function(){return this._backgroundColor},$.prototype.setDarkMode=function(z){this._darkMode=z},$.prototype.isDarkMode=function(){return this._darkMode},$.prototype.refreshImmediately=function(z){z||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},$.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},$.prototype.flush=function(){this._flush(!1)},$.prototype._flush=function(z){var oe,ae=getTime();this._needsRefresh&&(oe=!0,this.refreshImmediately(z)),this._needsRefreshHover&&(oe=!0,this.refreshHoverImmediately());var le=getTime();oe?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:le-ae})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},$.prototype.setSleepAfterStill=function(z){this._sleepAfterStill=z},$.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},$.prototype.refreshHover=function(){this._needsRefreshHover=!0},$.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},$.prototype.resize=function(z){z=z||{},this.painter.resize(z.width,z.height),this.handler.resize()},$.prototype.clearAnimation=function(){this.animation.clear()},$.prototype.getWidth=function(){return this.painter.getWidth()},$.prototype.getHeight=function(){return this.painter.getHeight()},$.prototype.setCursorStyle=function(z){this.handler.setCursorStyle(z)},$.prototype.findHover=function(z,oe){return this.handler.findHover(z,oe)},$.prototype.on=function(z,oe,ae){return this.handler.on(z,oe,ae),this},$.prototype.off=function(z,oe){this.handler.off(z,oe)},$.prototype.trigger=function(z,oe){this.handler.trigger(z,oe)},$.prototype.clear=function(){for(var z=this.storage.getRoots(),oe=0;oe<z.length;oe++)z[oe]instanceof Group$3&&z[oe].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},$.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,delInstance(this.id)},$}();function init$1($,z){var oe=new ZRender(guid(),$,z);return instances$1[oe.id]=oe,oe}function dispose$1($){$.dispose()}function disposeAll(){for(var $ in instances$1)instances$1.hasOwnProperty($)&&instances$1[$].dispose();instances$1={}}function getInstance($){return instances$1[$]}function registerPainter($,z){painterCtors[$]=z}var version$1="5.4.3";const zrender=Object.freeze(Object.defineProperty({__proto__:null,dispose:dispose$1,disposeAll,getInstance,init:init$1,registerPainter,version:version$1},Symbol.toStringTag,{value:"Module"}));var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim($){return $.replace(/^\s+|\s+$/g,"")}function linearMap$2($,z,oe,ae){var le=z[0],ue=z[1],pe=oe[0],_e=oe[1],Ce=ue-le,$e=_e-pe;if(Ce===0)return $e===0?pe:(pe+_e)/2;if(ae)if(Ce>0){if($<=le)return pe;if($>=ue)return _e}else{if($>=le)return pe;if($<=ue)return _e}else{if($===le)return pe;if($===ue)return _e}return($-le)/Ce*$e+pe}function parsePercent($,z){switch($){case"center":case"middle":$="50%";break;case"left":case"top":$="0%";break;case"right":case"bottom":$="100%";break}return isString($)?_trim($).match(/%$/)?parseFloat($)/100*z:parseFloat($):$==null?NaN:+$}function round$1($,z,oe){return z==null&&(z=10),z=Math.min(Math.max(0,z),ROUND_SUPPORTED_PRECISION_MAX),$=(+$).toFixed(z),oe?$:+$}function asc$2($){return $.sort(function(z,oe){return z-oe}),$}function getPrecision($){if($=+$,isNaN($))return 0;if($>1e-14){for(var z=1,oe=0;oe<15;oe++,z*=10)if(Math.round($*z)/z===$)return oe}return getPrecisionSafe($)}function getPrecisionSafe($){var z=$.toString().toLowerCase(),oe=z.indexOf("e"),ae=oe>0?+z.slice(oe+1):0,le=oe>0?oe:z.length,ue=z.indexOf("."),pe=ue<0?0:le-1-ue;return Math.max(0,pe-ae)}function getPixelPrecision($,z){var oe=Math.log,ae=Math.LN10,le=Math.floor(oe($[1]-$[0])/ae),ue=Math.round(oe(Math.abs(z[1]-z[0]))/ae),pe=Math.min(Math.max(-le+ue,0),20);return isFinite(pe)?pe:20}function getPercentWithPrecision($,z,oe){if(!$[z])return 0;var ae=getPercentSeats($,oe);return ae[z]||0}function getPercentSeats($,z){var oe=reduce($,function(ze,Ue){return ze+(isNaN(Ue)?0:Ue)},0);if(oe===0)return[];for(var ae=Math.pow(10,z),le=map$2($,function(ze){return(isNaN(ze)?0:ze)/oe*ae*100}),ue=ae*100,pe=map$2(le,function(ze){return Math.floor(ze)}),_e=reduce(pe,function(ze,Ue){return ze+Ue},0),Ce=map$2(le,function(ze,Ue){return ze-pe[Ue]});_e<ue;){for(var $e=Number.NEGATIVE_INFINITY,xe=null,Ie=0,Fe=Ce.length;Ie<Fe;++Ie)Ce[Ie]>$e&&($e=Ce[Ie],xe=Ie);++pe[xe],Ce[xe]=0,++_e}return map$2(pe,function(ze){return ze/ae})}function addSafe($,z){var oe=Math.max(getPrecision($),getPrecision(z)),ae=$+z;return oe>ROUND_SUPPORTED_PRECISION_MAX?ae:round$1(ae,oe)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian($){var z=Math.PI*2;return($%z+z)%z}function isRadianAroundZero($){return $>-RADIAN_EPSILON&&$<RADIAN_EPSILON}var TIME_REG=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function parseDate($){if($ instanceof Date)return $;if(isString($)){var z=TIME_REG.exec($);if(!z)return new Date(NaN);if(z[8]){var oe=+z[4]||0;return z[8].toUpperCase()!=="Z"&&(oe-=+z[8].slice(0,3)),new Date(Date.UTC(+z[1],+(z[2]||1)-1,+z[3]||1,oe,+(z[5]||0),+z[6]||0,z[7]?+z[7].substring(0,3):0))}else return new Date(+z[1],+(z[2]||1)-1,+z[3]||1,+z[4]||0,+(z[5]||0),+z[6]||0,z[7]?+z[7].substring(0,3):0)}else if($==null)return new Date(NaN);return new Date(Math.round($))}function quantity($){return Math.pow(10,quantityExponent($))}function quantityExponent($){if($===0)return 0;var z=Math.floor(Math.log($)/Math.LN10);return $/Math.pow(10,z)>=10&&z++,z}function nice($,z){var oe=quantityExponent($),ae=Math.pow(10,oe),le=$/ae,ue;return z?le<1.5?ue=1:le<2.5?ue=2:le<4?ue=3:le<7?ue=5:ue=10:le<1?ue=1:le<2?ue=2:le<3?ue=3:le<5?ue=5:ue=10,$=ue*ae,oe>=-20?+$.toFixed(oe<0?-oe:0):$}function quantile($,z){var oe=($.length-1)*z+1,ae=Math.floor(oe),le=+$[ae-1],ue=oe-ae;return ue?le+ue*($[ae]-le):le}function reformIntervals($){$.sort(function(Ce,$e){return _e(Ce,$e,0)?-1:1});for(var z=-1/0,oe=1,ae=0;ae<$.length;){for(var le=$[ae].interval,ue=$[ae].close,pe=0;pe<2;pe++)le[pe]<=z&&(le[pe]=z,ue[pe]=pe?1:1-oe),z=le[pe],oe=ue[pe];le[0]===le[1]&&ue[0]*ue[1]!==1?$.splice(ae,1):ae++}return $;function _e(Ce,$e,xe){return Ce.interval[xe]<$e.interval[xe]||Ce.interval[xe]===$e.interval[xe]&&(Ce.close[xe]-$e.close[xe]===(xe?-1:1)||!xe&&_e(Ce,$e,1))}}function numericToNumber($){var z=parseFloat($);return z==$&&(z!==0||!isString($)||$.indexOf("x")<=0)?z:NaN}function isNumeric($){return!isNaN(numericToNumber($))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor($,z){return z===0?$:getGreatestCommonDividor(z,$%z)}function getLeastCommonMultiple($,z){return $==null?z:z==null?$:$*z/getGreatestCommonDividor($,z)}var ECHARTS_PREFIX="[ECharts] ",storedLogs={},hasConsole=typeof console<"u"&&console.warn&&console.log;function outputLog($,z,oe){if(hasConsole){if(oe){if(storedLogs[z])return;storedLogs[z]=!0}console[$](ECHARTS_PREFIX+z)}}function warn($,z){outputLog("warn",$,z)}function throwError($){throw new Error($)}function interpolateNumber($,z,oe){return(z-$)*oe+$}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray($){return $ instanceof Array?$:$==null?[]:[$]}function defaultEmphasis($,z,oe){if($){$[z]=$[z]||{},$.emphasis=$.emphasis||{},$.emphasis[z]=$.emphasis[z]||{};for(var ae=0,le=oe.length;ae<le;ae++){var ue=oe[ae];!$.emphasis[z].hasOwnProperty(ue)&&$[z].hasOwnProperty(ue)&&($.emphasis[z][ue]=$[z][ue])}}}var TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function getDataItemValue($){return isObject$3($)&&!isArray$1($)&&!($ instanceof Date)?$.value:$}function isDataItemOption($){return isObject$3($)&&!($ instanceof Array)}function mappingToExists($,z,oe){var ae=oe==="normalMerge",le=oe==="replaceMerge",ue=oe==="replaceAll";$=$||[],z=(z||[]).slice();var pe=createHashMap();each$c(z,function(Ce,$e){if(!isObject$3(Ce)){z[$e]=null;return}});var _e=prepareResult($,pe,oe);return(ae||le)&&mappingById(_e,$,pe,z),ae&&mappingByName(_e,z),ae||le?mappingByIndex(_e,z,le):ue&&mappingInReplaceAllMode(_e,z),makeIdAndName(_e),_e}function prepareResult($,z,oe){var ae=[];if(oe==="replaceAll")return ae;for(var le=0;le<$.length;le++){var ue=$[le];ue&&ue.id!=null&&z.set(ue.id,le),ae.push({existing:oe==="replaceMerge"||isComponentIdInternal(ue)?null:ue,newOption:null,keyInfo:null,brandNew:null})}return ae}function mappingById($,z,oe,ae){each$c(ae,function(le,ue){if(!(!le||le.id==null)){var pe=makeComparableKey(le.id),_e=oe.get(pe);if(_e!=null){var Ce=$[_e];assert(!Ce.newOption,'Duplicated option on id "'+pe+'".'),Ce.newOption=le,Ce.existing=z[_e],ae[ue]=null}}})}function mappingByName($,z){each$c(z,function(oe,ae){if(!(!oe||oe.name==null))for(var le=0;le<$.length;le++){var ue=$[le].existing;if(!$[le].newOption&&ue&&(ue.id==null||oe.id==null)&&!isComponentIdInternal(oe)&&!isComponentIdInternal(ue)&&keyExistAndEqual("name",ue,oe)){$[le].newOption=oe,z[ae]=null;return}}})}function mappingByIndex($,z,oe){each$c(z,function(ae){if(ae){for(var le,ue=0;(le=$[ue])&&(le.newOption||isComponentIdInternal(le.existing)||le.existing&&ae.id!=null&&!keyExistAndEqual("id",ae,le.existing));)ue++;le?(le.newOption=ae,le.brandNew=oe):$.push({newOption:ae,brandNew:oe,existing:null,keyInfo:null}),ue++}})}function mappingInReplaceAllMode($,z){each$c(z,function(oe){$.push({newOption:oe,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName($){var z=createHashMap();each$c($,function(oe){var ae=oe.existing;ae&&z.set(ae.id,oe)}),each$c($,function(oe){var ae=oe.newOption;assert(!ae||ae.id==null||!z.get(ae.id)||z.get(ae.id)===oe,"id duplicates: "+(ae&&ae.id)),ae&&ae.id!=null&&z.set(ae.id,oe),!oe.keyInfo&&(oe.keyInfo={})}),each$c($,function(oe,ae){var le=oe.existing,ue=oe.newOption,pe=oe.keyInfo;if(isObject$3(ue)){if(pe.name=ue.name!=null?makeComparableKey(ue.name):le?le.name:DUMMY_COMPONENT_NAME_PREFIX+ae,le)pe.id=makeComparableKey(le.id);else if(ue.id!=null)pe.id=makeComparableKey(ue.id);else{var _e=0;do pe.id="\0"+pe.name+"\0"+_e++;while(z.get(pe.id))}z.set(pe.id,oe)}})}function keyExistAndEqual($,z,oe){var ae=convertOptionIdName(z[$],null),le=convertOptionIdName(oe[$],null);return ae!=null&&le!=null&&ae===le}function makeComparableKey($){return convertOptionIdName($,"")}function convertOptionIdName($,z){return $==null?z:isString($)?$:isNumber($)||isStringSafe($)?$+"":z}function isNameSpecified($){var z=$.name;return!!(z&&z.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal($){return $&&$.id!=null&&makeComparableKey($.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function makeInternalComponentId($){return INTERNAL_COMPONENT_ID_PREFIX+$}function setComponentTypeToKeyInfo($,z,oe){each$c($,function(ae){var le=ae.newOption;isObject$3(le)&&(ae.keyInfo.mainType=z,ae.keyInfo.subType=determineSubType(z,le,ae.existing,oe))})}function determineSubType($,z,oe,ae){var le=z.type?z.type:oe?oe.subType:ae.determineSubType($,z);return le}function compressBatches($,z){var oe={},ae={};return le($||[],oe),le(z||[],ae,oe),[ue(oe),ue(ae)];function le(pe,_e,Ce){for(var $e=0,xe=pe.length;$e<xe;$e++){var Ie=convertOptionIdName(pe[$e].seriesId,null);if(Ie==null)return;for(var Fe=normalizeToArray(pe[$e].dataIndex),ze=Ce&&Ce[Ie],Ue=0,qe=Fe.length;Ue<qe;Ue++){var At=Fe[Ue];ze&&ze[At]?ze[At]=null:(_e[Ie]||(_e[Ie]={}))[At]=1}}}function ue(pe,_e){var Ce=[];for(var $e in pe)if(pe.hasOwnProperty($e)&&pe[$e]!=null)if(_e)Ce.push(+$e);else{var xe=ue(pe[$e],!0);xe.length&&Ce.push({seriesId:$e,dataIndex:xe})}return Ce}}function queryDataIndex($,z){if(z.dataIndexInside!=null)return z.dataIndexInside;if(z.dataIndex!=null)return isArray$1(z.dataIndex)?map$2(z.dataIndex,function(oe){return $.indexOfRawIndex(oe)}):$.indexOfRawIndex(z.dataIndex);if(z.name!=null)return isArray$1(z.name)?map$2(z.name,function(oe){return $.indexOfName(oe)}):$.indexOfName(z.name)}function makeInner(){var $="__ec_inner_"+innerUniqueIndex++;return function(z){return z[$]||(z[$]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1($,z,oe){var ae=preParseFinder(z,oe),le=ae.mainTypeSpecified,ue=ae.queryOptionMap,pe=ae.others,_e=pe,Ce=oe?oe.defaultMainType:null;return!le&&Ce&&ue.set(Ce,{}),ue.each(function($e,xe){var Ie=queryReferringComponents($,xe,$e,{useDefault:Ce===xe,enableAll:oe&&oe.enableAll!=null?oe.enableAll:!0,enableNone:oe&&oe.enableNone!=null?oe.enableNone:!0});_e[xe+"Models"]=Ie.models,_e[xe+"Model"]=Ie.models[0]}),_e}function preParseFinder($,z){var oe;if(isString($)){var ae={};ae[$+"Index"]=0,oe=ae}else oe=$;var le=createHashMap(),ue={},pe=!1;return each$c(oe,function(_e,Ce){if(Ce==="dataIndex"||Ce==="dataIndexInside"){ue[Ce]=_e;return}var $e=Ce.match(/^(\w+)(Index|Id|Name)$/)||[],xe=$e[1],Ie=($e[2]||"").toLowerCase();if(!(!xe||!Ie||z&&z.includeMainTypes&&indexOf(z.includeMainTypes,xe)<0)){pe=pe||!!xe;var Fe=le.get(xe)||le.set(xe,{});Fe[Ie]=_e}}),{mainTypeSpecified:pe,queryOptionMap:le,others:ue}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents($,z,oe,ae){ae=ae||SINGLE_REFERRING;var le=oe.index,ue=oe.id,pe=oe.name,_e={models:null,specified:le!=null||ue!=null||pe!=null};if(!_e.specified){var Ce=void 0;return _e.models=ae.useDefault&&(Ce=$.getComponent(z))?[Ce]:[],_e}return le==="none"||le===!1?(assert(ae.enableNone,'`"none"` or `false` is not a valid value on index option.'),_e.models=[],_e):(le==="all"&&(assert(ae.enableAll,'`"all"` is not a valid value on index option.'),le=ue=pe=null),_e.models=$.queryComponents({mainType:z,index:le,id:ue,name:pe}),_e)}function setAttribute($,z,oe){$.setAttribute?$.setAttribute(z,oe):$[z]=oe}function getAttribute($,z){return $.getAttribute?$.getAttribute(z):$[z]}function getTooltipRenderMode($){return $==="auto"?env$1.domSupported?"html":"richText":$||"html"}function interpolateRawValues($,z,oe,ae,le){var ue=z==null||z==="auto";if(ae==null)return ae;if(isNumber(ae)){var pe=interpolateNumber(oe||0,ae,le);return round$1(pe,ue?Math.max(getPrecision(oe||0),getPrecision(ae)):z)}else{if(isString(ae))return le<1?oe:ae;for(var _e=[],Ce=oe,$e=ae,xe=Math.max(Ce?Ce.length:0,$e.length),Ie=0;Ie<xe;++Ie){var Fe=$.getDimensionInfo(Ie);if(Fe&&Fe.type==="ordinal")_e[Ie]=(le<1&&Ce?Ce:$e)[Ie];else{var ze=Ce&&Ce[Ie]?Ce[Ie]:0,Ue=$e[Ie],pe=interpolateNumber(ze,Ue,le);_e[Ie]=round$1(pe,ue?Math.max(getPrecision(ze),getPrecision(Ue)):z)}}return _e}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType($){var z={main:"",sub:""};if($){var oe=$.split(TYPE_DELIMITER);z.main=oe[0]||"",z.sub=oe[1]||""}return z}function checkClassType($){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test($),'componentType "'+$+'" illegal')}function isExtendedClass($){return!!($&&$[IS_EXTENDED_CLASS])}function enableClassExtend($,z){$.$constructor=$,$.extend=function(oe){var ae=this,le;return isESClass(ae)?le=function(ue){__extends(pe,ue);function pe(){return ue.apply(this,arguments)||this}return pe}(ae):(le=function(){(oe.$constructor||ae).apply(this,arguments)},inherits(le,this)),extend(le.prototype,oe),le[IS_EXTENDED_CLASS]=!0,le.extend=this.extend,le.superCall=superCall,le.superApply=superApply,le.superClass=ae,le}}function isESClass($){return isFunction($)&&/^class\s/.test(Function.prototype.toString.call($))}function mountExtend($,z){$.extend=z.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck($){var z=["__\0is_clz",classBase++].join("_");$.prototype[z]=!0,$.isInstance=function(oe){return!!(oe&&oe[z])}}function superCall($,z){for(var oe=[],ae=2;ae<arguments.length;ae++)oe[ae-2]=arguments[ae];return this.superClass.prototype[z].apply($,oe)}function superApply($,z,oe){return this.superClass.prototype[z].apply($,oe)}function enableClassManagement($){var z={};$.registerClass=function(ae){var le=ae.type||ae.prototype.type;if(le){checkClassType(le),ae.prototype.type=le;var ue=parseClassType(le);if(!ue.sub)z[ue.main]=ae;else if(ue.sub!==IS_CONTAINER){var pe=oe(ue);pe[ue.sub]=ae}}return ae},$.getClass=function(ae,le,ue){var pe=z[ae];if(pe&&pe[IS_CONTAINER]&&(pe=le?pe[le]:null),ue&&!pe)throw new Error(le?"Component "+ae+"."+(le||"")+" is used but not imported.":ae+".type should be specified.");return pe},$.getClassesByMainType=function(ae){var le=parseClassType(ae),ue=[],pe=z[le.main];return pe&&pe[IS_CONTAINER]?each$c(pe,function(_e,Ce){Ce!==IS_CONTAINER&&ue.push(_e)}):ue.push(pe),ue},$.hasClass=function(ae){var le=parseClassType(ae);return!!z[le.main]},$.getAllClassMainTypes=function(){var ae=[];return each$c(z,function(le,ue){ae.push(ue)}),ae},$.hasSubTypes=function(ae){var le=parseClassType(ae),ue=z[le.main];return ue&&ue[IS_CONTAINER]};function oe(ae){var le=z[ae.main];return(!le||!le[IS_CONTAINER])&&(le=z[ae.main]={},le[IS_CONTAINER]=!0),le}}function makeStyleMapper($,z){for(var oe=0;oe<$.length;oe++)$[oe][1]||($[oe][1]=$[oe][0]);return z=z||!1,function(ae,le,ue){for(var pe={},_e=0;_e<$.length;_e++){var Ce=$[_e][1];if(!(le&&indexOf(le,Ce)>=0||ue&&indexOf(ue,Ce)<0)){var $e=ae.getShallow(Ce,z);$e!=null&&(pe[$[_e][0]]=$e)}}return pe}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function $(){}return $.prototype.getAreaStyle=function(z,oe){return getAreaStyle(this,z,oe)},$}(),globalImageCache=new LRU$1(50);function findExistImage($){if(typeof $=="string"){var z=globalImageCache.get($);return z&&z.image}else return $}function createOrUpdateImage($,z,oe,ae,le){if($)if(typeof $=="string"){if(z&&z.__zrImageSrc===$||!oe)return z;var ue=globalImageCache.get($),pe={hostEl:oe,cb:ae,cbPayload:le};return ue?(z=ue.image,!isImageReady(z)&&ue.pending.push(pe)):(z=platformApi.loadImage($,imageOnLoad,imageOnLoad),z.__zrImageSrc=$,globalImageCache.put($,z.__cachedImgObj={image:z,pending:[pe]})),z}else return $;else return z}function imageOnLoad(){var $=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var z=0;z<$.pending.length;z++){var oe=$.pending[z],ae=oe.cb;ae&&ae(this,oe.cbPayload),oe.hostEl.dirty()}$.pending.length=0}function isImageReady($){return $&&$.width&&$.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText($,z,oe,ae,le){if(!z)return"";var ue=($+"").split(`
|
||
`);le=prepareTruncateOptions(z,oe,ae,le);for(var pe=0,_e=ue.length;pe<_e;pe++)ue[pe]=truncateSingleLine(ue[pe],le);return ue.join(`
|
||
`)}function prepareTruncateOptions($,z,oe,ae){ae=ae||{};var le=extend({},ae);le.font=z,oe=retrieve2(oe,"..."),le.maxIterations=retrieve2(ae.maxIterations,2);var ue=le.minChar=retrieve2(ae.minChar,0);le.cnCharWidth=getWidth("国",z);var pe=le.ascCharWidth=getWidth("a",z);le.placeholder=retrieve2(ae.placeholder,"");for(var _e=$=Math.max(0,$-1),Ce=0;Ce<ue&&_e>=pe;Ce++)_e-=pe;var $e=getWidth(oe,z);return $e>_e&&(oe="",$e=0),_e=$-$e,le.ellipsis=oe,le.ellipsisWidth=$e,le.contentWidth=_e,le.containerWidth=$,le}function truncateSingleLine($,z){var oe=z.containerWidth,ae=z.font,le=z.contentWidth;if(!oe)return"";var ue=getWidth($,ae);if(ue<=oe)return $;for(var pe=0;;pe++){if(ue<=le||pe>=z.maxIterations){$+=z.ellipsis;break}var _e=pe===0?estimateLength($,le,z.ascCharWidth,z.cnCharWidth):ue>0?Math.floor($.length*le/ue):0;$=$.substr(0,_e),ue=getWidth($,ae)}return $===""&&($=z.placeholder),$}function estimateLength($,z,oe,ae){for(var le=0,ue=0,pe=$.length;ue<pe&&le<z;ue++){var _e=$.charCodeAt(ue);le+=0<=_e&&_e<=127?oe:ae}return ue}function parsePlainText($,z){$!=null&&($+="");var oe=z.overflow,ae=z.padding,le=z.font,ue=oe==="truncate",pe=getLineHeight(le),_e=retrieve2(z.lineHeight,pe),Ce=!!z.backgroundColor,$e=z.lineOverflow==="truncate",xe=z.width,Ie;xe!=null&&(oe==="break"||oe==="breakAll")?Ie=$?wrapText($,z.font,xe,oe==="breakAll",0).lines:[]:Ie=$?$.split(`
|
||
`):[];var Fe=Ie.length*_e,ze=retrieve2(z.height,Fe);if(Fe>ze&&$e){var Ue=Math.floor(ze/_e);Ie=Ie.slice(0,Ue)}if($&&ue&&xe!=null)for(var qe=prepareTruncateOptions(xe,le,z.ellipsis,{minChar:z.truncateMinChar,placeholder:z.placeholder}),At=0;At<Ie.length;At++)Ie[At]=truncateSingleLine(Ie[At],qe);for(var Lt=ze,hn=0,At=0;At<Ie.length;At++)hn=Math.max(getWidth(Ie[At],le),hn);xe==null&&(xe=hn);var vn=hn;return ae&&(Lt+=ae[0]+ae[2],vn+=ae[1]+ae[3],xe+=ae[1]+ae[3]),Ce&&(vn=xe),{lines:Ie,height:ze,outerWidth:vn,outerHeight:Lt,lineHeight:_e,calculatedLineHeight:pe,contentWidth:hn,contentHeight:Fe,width:xe}}var RichTextToken=function(){function $(){}return $}(),RichTextLine=function(){function $(z){this.tokens=[],z&&(this.tokens=z)}return $}(),RichTextContentBlock=function(){function $(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return $}();function parseRichText($,z){var oe=new RichTextContentBlock;if($!=null&&($+=""),!$)return oe;for(var ae=z.width,le=z.height,ue=z.overflow,pe=(ue==="break"||ue==="breakAll")&&ae!=null?{width:ae,accumWidth:0,breakAll:ue==="breakAll"}:null,_e=STYLE_REG.lastIndex=0,Ce;(Ce=STYLE_REG.exec($))!=null;){var $e=Ce.index;$e>_e&&pushTokens(oe,$.substring(_e,$e),z,pe),pushTokens(oe,Ce[2],z,pe,Ce[1]),_e=STYLE_REG.lastIndex}_e<$.length&&pushTokens(oe,$.substring(_e,$.length),z,pe);var xe=[],Ie=0,Fe=0,ze=z.padding,Ue=ue==="truncate",qe=z.lineOverflow==="truncate";function At(Ln,Mn,Vn){Ln.width=Mn,Ln.lineHeight=Vn,Ie+=Vn,Fe=Math.max(Fe,Mn)}e:for(var Lt=0;Lt<oe.lines.length;Lt++){for(var hn=oe.lines[Lt],vn=0,_n=0,bn=0;bn<hn.tokens.length;bn++){var Sn=hn.tokens[bn],Cn=Sn.styleName&&z.rich[Sn.styleName]||{},En=Sn.textPadding=Cn.padding,$n=En?En[1]+En[3]:0,wn=Sn.font=Cn.font||z.font;Sn.contentHeight=getLineHeight(wn);var Tn=retrieve2(Cn.height,Sn.contentHeight);if(Sn.innerHeight=Tn,En&&(Tn+=En[0]+En[2]),Sn.height=Tn,Sn.lineHeight=retrieve3(Cn.lineHeight,z.lineHeight,Tn),Sn.align=Cn&&Cn.align||z.align,Sn.verticalAlign=Cn&&Cn.verticalAlign||"middle",qe&&le!=null&&Ie+Sn.lineHeight>le){bn>0?(hn.tokens=hn.tokens.slice(0,bn),At(hn,_n,vn),oe.lines=oe.lines.slice(0,Lt+1)):oe.lines=oe.lines.slice(0,Lt);break e}var xn=Cn.width,kn=xn==null||xn==="auto";if(typeof xn=="string"&&xn.charAt(xn.length-1)==="%")Sn.percentWidth=xn,xe.push(Sn),Sn.contentWidth=getWidth(Sn.text,wn);else{if(kn){var Nn=Cn.backgroundColor,Bn=Nn&&Nn.image;Bn&&(Bn=findExistImage(Bn),isImageReady(Bn)&&(Sn.width=Math.max(Sn.width,Bn.width*Tn/Bn.height)))}var Dn=Ue&&ae!=null?ae-_n:null;Dn!=null&&Dn<Sn.width?!kn||Dn<$n?(Sn.text="",Sn.width=Sn.contentWidth=0):(Sn.text=truncateText(Sn.text,Dn-$n,wn,z.ellipsis,{minChar:z.truncateMinChar}),Sn.width=Sn.contentWidth=getWidth(Sn.text,wn)):Sn.contentWidth=getWidth(Sn.text,wn)}Sn.width+=$n,_n+=Sn.width,Cn&&(vn=Math.max(vn,Sn.lineHeight))}At(hn,_n,vn)}oe.outerWidth=oe.width=retrieve2(ae,Fe),oe.outerHeight=oe.height=retrieve2(le,Ie),oe.contentHeight=Ie,oe.contentWidth=Fe,ze&&(oe.outerWidth+=ze[1]+ze[3],oe.outerHeight+=ze[0]+ze[2]);for(var Lt=0;Lt<xe.length;Lt++){var Sn=xe[Lt],In=Sn.percentWidth;Sn.width=parseInt(In,10)/100*oe.width}return oe}function pushTokens($,z,oe,ae,le){var ue=z==="",pe=le&&oe.rich[le]||{},_e=$.lines,Ce=pe.font||oe.font,$e=!1,xe,Ie;if(ae){var Fe=pe.padding,ze=Fe?Fe[1]+Fe[3]:0;if(pe.width!=null&&pe.width!=="auto"){var Ue=parsePercent$1(pe.width,ae.width)+ze;_e.length>0&&Ue+ae.accumWidth>ae.width&&(xe=z.split(`
|
||
`),$e=!0),ae.accumWidth=Ue}else{var qe=wrapText(z,Ce,ae.width,ae.breakAll,ae.accumWidth);ae.accumWidth=qe.accumWidth+ze,Ie=qe.linesWidths,xe=qe.lines}}else xe=z.split(`
|
||
`);for(var At=0;At<xe.length;At++){var Lt=xe[At],hn=new RichTextToken;if(hn.styleName=le,hn.text=Lt,hn.isLineHolder=!Lt&&!ue,typeof pe.width=="number"?hn.width=pe.width:hn.width=Ie?Ie[At]:getWidth(Lt,Ce),!At&&!$e){var vn=(_e[_e.length-1]||(_e[0]=new RichTextLine)).tokens,_n=vn.length;_n===1&&vn[0].isLineHolder?vn[0]=hn:(Lt||!_n||ue)&&vn.push(hn)}else _e.push(new RichTextLine([hn]))}}function isAlphabeticLetter($){var z=$.charCodeAt(0);return z>=32&&z<=591||z>=880&&z<=4351||z>=4608&&z<=5119||z>=7680&&z<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function($,z){return $[z]=!0,$},{});function isWordBreakChar($){return isAlphabeticLetter($)?!!breakCharMap[$]:!0}function wrapText($,z,oe,ae,le){for(var ue=[],pe=[],_e="",Ce="",$e=0,xe=0,Ie=0;Ie<$.length;Ie++){var Fe=$.charAt(Ie);if(Fe===`
|
||
`){Ce&&(_e+=Ce,xe+=$e),ue.push(_e),pe.push(xe),_e="",Ce="",$e=0,xe=0;continue}var ze=getWidth(Fe,z),Ue=ae?!1:!isWordBreakChar(Fe);if(ue.length?xe+ze>oe:le+xe+ze>oe){xe?(_e||Ce)&&(Ue?(_e||(_e=Ce,Ce="",$e=0,xe=$e),ue.push(_e),pe.push(xe-$e),Ce+=Fe,$e+=ze,_e="",xe=$e):(Ce&&(_e+=Ce,Ce="",$e=0),ue.push(_e),pe.push(xe),_e=Fe,xe=ze)):Ue?(ue.push(Ce),pe.push($e),Ce=Fe,$e=ze):(ue.push(Fe),pe.push(ze));continue}xe+=ze,Ue?(Ce+=Fe,$e+=ze):(Ce&&(_e+=Ce,Ce="",$e=0),_e+=Fe)}return!ue.length&&!_e&&(_e=$,Ce="",$e=0),Ce&&(_e+=Ce),_e&&(ue.push(_e),pe.push(xe)),ue.length===1&&(xe+=le),{accumWidth:xe,lines:ue,linesWidths:pe}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype._init=function(oe){for(var ae=keys(oe),le=0;le<ae.length;le++){var ue=ae[le];ue==="style"?this.useStyle(oe[ue]):$.prototype.attrKV.call(this,ue,oe[ue])}this.style||this.useStyle({})},z.prototype.beforeBrush=function(){},z.prototype.afterBrush=function(){},z.prototype.innerBeforeBrush=function(){},z.prototype.innerAfterBrush=function(){},z.prototype.shouldBePainted=function(oe,ae,le,ue){var pe=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,oe,ae)||pe&&!pe[0]&&!pe[3])return!1;if(le&&this.__clipPaths){for(var _e=0;_e<this.__clipPaths.length;++_e)if(this.__clipPaths[_e].isZeroArea())return!1}if(ue&&this.parent)for(var Ce=this.parent;Ce;){if(Ce.ignore)return!1;Ce=Ce.parent}return!0},z.prototype.contain=function(oe,ae){return this.rectContain(oe,ae)},z.prototype.traverse=function(oe,ae){oe.call(ae,this)},z.prototype.rectContain=function(oe,ae){var le=this.transformCoordToLocal(oe,ae),ue=this.getBoundingRect();return ue.contain(le[0],le[1])},z.prototype.getPaintRect=function(){var oe=this._paintRect;if(!this._paintRect||this.__dirty){var ae=this.transform,le=this.getBoundingRect(),ue=this.style,pe=ue.shadowBlur||0,_e=ue.shadowOffsetX||0,Ce=ue.shadowOffsetY||0;oe=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),ae?BoundingRect$1.applyTransform(oe,le,ae):oe.copy(le),(pe||_e||Ce)&&(oe.width+=pe*2+Math.abs(_e),oe.height+=pe*2+Math.abs(Ce),oe.x=Math.min(oe.x,oe.x+_e-pe),oe.y=Math.min(oe.y,oe.y+Ce-pe));var $e=this.dirtyRectTolerance;oe.isZero()||(oe.x=Math.floor(oe.x-$e),oe.y=Math.floor(oe.y-$e),oe.width=Math.ceil(oe.width+1+$e*2),oe.height=Math.ceil(oe.height+1+$e*2))}return oe},z.prototype.setPrevPaintRect=function(oe){oe?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(oe)):this._prevPaintRect=null},z.prototype.getPrevPaintRect=function(){return this._prevPaintRect},z.prototype.animateStyle=function(oe){return this.animate("style",oe)},z.prototype.updateDuringAnimation=function(oe){oe==="style"?this.dirtyStyle():this.markRedraw()},z.prototype.attrKV=function(oe,ae){oe!=="style"?$.prototype.attrKV.call(this,oe,ae):this.style?this.setStyle(ae):this.useStyle(ae)},z.prototype.setStyle=function(oe,ae){return typeof oe=="string"?this.style[oe]=ae:extend(this.style,oe),this.dirtyStyle(),this},z.prototype.dirtyStyle=function(oe){oe||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},z.prototype.dirty=function(){this.dirtyStyle()},z.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},z.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},z.prototype.createStyle=function(oe){return createObject(DEFAULT_COMMON_STYLE,oe)},z.prototype.useStyle=function(oe){oe[STYLE_MAGIC_KEY]||(oe=this.createStyle(oe)),this.__inHover?this.__hoverStyle=oe:this.style=oe,this.dirtyStyle()},z.prototype.isStyleObject=function(oe){return oe[STYLE_MAGIC_KEY]},z.prototype._innerSaveToNormal=function(oe){$.prototype._innerSaveToNormal.call(this,oe);var ae=this._normalState;oe.style&&!ae.style&&(ae.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(oe,ae,PRIMARY_STATES_KEYS)},z.prototype._applyStateObj=function(oe,ae,le,ue,pe,_e){$.prototype._applyStateObj.call(this,oe,ae,le,ue,pe,_e);var Ce=!(ae&&ue),$e;if(ae&&ae.style?pe?ue?$e=ae.style:($e=this._mergeStyle(this.createStyle(),le.style),this._mergeStyle($e,ae.style)):($e=this._mergeStyle(this.createStyle(),ue?this.style:le.style),this._mergeStyle($e,ae.style)):Ce&&($e=le.style),$e)if(pe){var xe=this.style;if(this.style=this.createStyle(Ce?{}:xe),Ce)for(var Ie=keys(xe),Fe=0;Fe<Ie.length;Fe++){var ze=Ie[Fe];ze in $e&&($e[ze]=$e[ze],this.style[ze]=xe[ze])}for(var Ue=keys($e),Fe=0;Fe<Ue.length;Fe++){var ze=Ue[Fe];this.style[ze]=this.style[ze]}this._transitionState(oe,{style:$e},_e,this.getAnimationStyleProps())}else this.useStyle($e);for(var qe=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,Fe=0;Fe<qe.length;Fe++){var ze=qe[Fe];ae&&ae[ze]!=null?this[ze]=ae[ze]:Ce&&le[ze]!=null&&(this[ze]=le[ze])}},z.prototype._mergeStates=function(oe){for(var ae=$.prototype._mergeStates.call(this,oe),le,ue=0;ue<oe.length;ue++){var pe=oe[ue];pe.style&&(le=le||{},this._mergeStyle(le,pe.style))}return le&&(ae.style=le),ae},z.prototype._mergeStyle=function(oe,ae){return extend(oe,ae),oe},z.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},z.initDefaultProps=function(){var oe=z.prototype;oe.type="displayable",oe.invisible=!1,oe.z=0,oe.z2=0,oe.zlevel=0,oe.culling=!1,oe.cursor="pointer",oe.rectHover=!1,oe.incremental=!1,oe._rect=null,oe.dirtyRectTolerance=0,oe.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),z}(Element$2),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled($,z,oe){return tmpRect.copy($.getBoundingRect()),$.transform&&tmpRect.applyTransform($.transform),viewRect.width=z,viewRect.height=oe,!tmpRect.intersect(viewRect)}const Displayable$1=Displayable;var mathMin$7=Math.min,mathMax$7=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$6=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine($,z,oe,ae,le,ue){le[0]=mathMin$7($,oe),le[1]=mathMin$7(z,ae),ue[0]=mathMax$7($,oe),ue[1]=mathMax$7(z,ae)}var xDim=[],yDim=[];function fromCubic($,z,oe,ae,le,ue,pe,_e,Ce,$e){var xe=cubicExtrema,Ie=cubicAt,Fe=xe($,oe,le,pe,xDim);Ce[0]=1/0,Ce[1]=1/0,$e[0]=-1/0,$e[1]=-1/0;for(var ze=0;ze<Fe;ze++){var Ue=Ie($,oe,le,pe,xDim[ze]);Ce[0]=mathMin$7(Ue,Ce[0]),$e[0]=mathMax$7(Ue,$e[0])}Fe=xe(z,ae,ue,_e,yDim);for(var ze=0;ze<Fe;ze++){var qe=Ie(z,ae,ue,_e,yDim[ze]);Ce[1]=mathMin$7(qe,Ce[1]),$e[1]=mathMax$7(qe,$e[1])}Ce[0]=mathMin$7($,Ce[0]),$e[0]=mathMax$7($,$e[0]),Ce[0]=mathMin$7(pe,Ce[0]),$e[0]=mathMax$7(pe,$e[0]),Ce[1]=mathMin$7(z,Ce[1]),$e[1]=mathMax$7(z,$e[1]),Ce[1]=mathMin$7(_e,Ce[1]),$e[1]=mathMax$7(_e,$e[1])}function fromQuadratic($,z,oe,ae,le,ue,pe,_e){var Ce=quadraticExtremum,$e=quadraticAt,xe=mathMax$7(mathMin$7(Ce($,oe,le),1),0),Ie=mathMax$7(mathMin$7(Ce(z,ae,ue),1),0),Fe=$e($,oe,le,xe),ze=$e(z,ae,ue,Ie);pe[0]=mathMin$7($,le,Fe),pe[1]=mathMin$7(z,ue,ze),_e[0]=mathMax$7($,le,Fe),_e[1]=mathMax$7(z,ue,ze)}function fromArc($,z,oe,ae,le,ue,pe,_e,Ce){var $e=min$1,xe=max$1,Ie=Math.abs(le-ue);if(Ie%PI2$6<1e-4&&Ie>1e-4){_e[0]=$-oe,_e[1]=z-ae,Ce[0]=$+oe,Ce[1]=z+ae;return}if(start[0]=mathCos$3(le)*oe+$,start[1]=mathSin$3(le)*ae+z,end[0]=mathCos$3(ue)*oe+$,end[1]=mathSin$3(ue)*ae+z,$e(_e,start,end),xe(Ce,start,end),le=le%PI2$6,le<0&&(le=le+PI2$6),ue=ue%PI2$6,ue<0&&(ue=ue+PI2$6),le>ue&&!pe?ue+=PI2$6:le<ue&&pe&&(le+=PI2$6),pe){var Fe=ue;ue=le,le=Fe}for(var ze=0;ze<ue;ze+=Math.PI/2)ze>le&&(extremity[0]=mathCos$3(ze)*oe+$,extremity[1]=mathSin$3(ze)*ae+z,$e(_e,extremity,_e),xe(Ce,extremity,Ce))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$6=Math.min,mathMax$6=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$5=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2($){var z=Math.round($/PI$4*1e8)/1e8;return z%2*PI$4}function normalizeArcAngles($,z){var oe=modPI2($[0]);oe<0&&(oe+=PI2$5);var ae=oe-$[0],le=$[1];le+=ae,!z&&le-oe>=PI2$5?le=oe+PI2$5:z&&oe-le>=PI2$5?le=oe-PI2$5:!z&&oe>le?le=oe+(PI2$5-modPI2(oe-le)):z&&oe<le&&(le=oe-(PI2$5-modPI2(le-oe))),$[0]=oe,$[1]=le}var PathProxy=function(){function $(z){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,z&&(this._saveData=!1),this._saveData&&(this.data=[])}return $.prototype.increaseVersion=function(){this._version++},$.prototype.getVersion=function(){return this._version},$.prototype.setScale=function(z,oe,ae){ae=ae||0,ae>0&&(this._ux=mathAbs$1(ae/devicePixelRatio/z)||0,this._uy=mathAbs$1(ae/devicePixelRatio/oe)||0)},$.prototype.setDPR=function(z){this.dpr=z},$.prototype.setContext=function(z){this._ctx=z},$.prototype.getContext=function(){return this._ctx},$.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},$.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},$.prototype.moveTo=function(z,oe){return this._drawPendingPt(),this.addData(CMD$2.M,z,oe),this._ctx&&this._ctx.moveTo(z,oe),this._x0=z,this._y0=oe,this._xi=z,this._yi=oe,this},$.prototype.lineTo=function(z,oe){var ae=mathAbs$1(z-this._xi),le=mathAbs$1(oe-this._yi),ue=ae>this._ux||le>this._uy;if(this.addData(CMD$2.L,z,oe),this._ctx&&ue&&this._ctx.lineTo(z,oe),ue)this._xi=z,this._yi=oe,this._pendingPtDist=0;else{var pe=ae*ae+le*le;pe>this._pendingPtDist&&(this._pendingPtX=z,this._pendingPtY=oe,this._pendingPtDist=pe)}return this},$.prototype.bezierCurveTo=function(z,oe,ae,le,ue,pe){return this._drawPendingPt(),this.addData(CMD$2.C,z,oe,ae,le,ue,pe),this._ctx&&this._ctx.bezierCurveTo(z,oe,ae,le,ue,pe),this._xi=ue,this._yi=pe,this},$.prototype.quadraticCurveTo=function(z,oe,ae,le){return this._drawPendingPt(),this.addData(CMD$2.Q,z,oe,ae,le),this._ctx&&this._ctx.quadraticCurveTo(z,oe,ae,le),this._xi=ae,this._yi=le,this},$.prototype.arc=function(z,oe,ae,le,ue,pe){this._drawPendingPt(),tmpAngles[0]=le,tmpAngles[1]=ue,normalizeArcAngles(tmpAngles,pe),le=tmpAngles[0],ue=tmpAngles[1];var _e=ue-le;return this.addData(CMD$2.A,z,oe,ae,ae,le,_e,0,pe?0:1),this._ctx&&this._ctx.arc(z,oe,ae,le,ue,pe),this._xi=mathCos$2(ue)*ae+z,this._yi=mathSin$2(ue)*ae+oe,this},$.prototype.arcTo=function(z,oe,ae,le,ue){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(z,oe,ae,le,ue),this},$.prototype.rect=function(z,oe,ae,le){return this._drawPendingPt(),this._ctx&&this._ctx.rect(z,oe,ae,le),this.addData(CMD$2.R,z,oe,ae,le),this},$.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var z=this._ctx,oe=this._x0,ae=this._y0;return z&&z.closePath(),this._xi=oe,this._yi=ae,this},$.prototype.fill=function(z){z&&z.fill(),this.toStatic()},$.prototype.stroke=function(z){z&&z.stroke(),this.toStatic()},$.prototype.len=function(){return this._len},$.prototype.setData=function(z){var oe=z.length;!(this.data&&this.data.length===oe)&&hasTypedArray&&(this.data=new Float32Array(oe));for(var ae=0;ae<oe;ae++)this.data[ae]=z[ae];this._len=oe},$.prototype.appendPath=function(z){z instanceof Array||(z=[z]);for(var oe=z.length,ae=0,le=this._len,ue=0;ue<oe;ue++)ae+=z[ue].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(le+ae));for(var ue=0;ue<oe;ue++)for(var pe=z[ue].data,_e=0;_e<pe.length;_e++)this.data[le++]=pe[_e];this._len=le},$.prototype.addData=function(z,oe,ae,le,ue,pe,_e,Ce,$e){if(this._saveData){var xe=this.data;this._len+arguments.length>xe.length&&(this._expandData(),xe=this.data);for(var Ie=0;Ie<arguments.length;Ie++)xe[this._len++]=arguments[Ie]}},$.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},$.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var z=[],oe=0;oe<this._len;oe++)z[oe]=this.data[oe];this.data=z}},$.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var z=this.data;z instanceof Array&&(z.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(z)))}},$.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var z=this.data,oe=0,ae=0,le=0,ue=0,pe;for(pe=0;pe<this._len;){var _e=z[pe++],Ce=pe===1;switch(Ce&&(oe=z[pe],ae=z[pe+1],le=oe,ue=ae),_e){case CMD$2.M:oe=le=z[pe++],ae=ue=z[pe++],min2[0]=le,min2[1]=ue,max2[0]=le,max2[1]=ue;break;case CMD$2.L:fromLine(oe,ae,z[pe],z[pe+1],min2,max2),oe=z[pe++],ae=z[pe++];break;case CMD$2.C:fromCubic(oe,ae,z[pe++],z[pe++],z[pe++],z[pe++],z[pe],z[pe+1],min2,max2),oe=z[pe++],ae=z[pe++];break;case CMD$2.Q:fromQuadratic(oe,ae,z[pe++],z[pe++],z[pe],z[pe+1],min2,max2),oe=z[pe++],ae=z[pe++];break;case CMD$2.A:var $e=z[pe++],xe=z[pe++],Ie=z[pe++],Fe=z[pe++],ze=z[pe++],Ue=z[pe++]+ze;pe+=1;var qe=!z[pe++];Ce&&(le=mathCos$2(ze)*Ie+$e,ue=mathSin$2(ze)*Fe+xe),fromArc($e,xe,Ie,Fe,ze,Ue,qe,min2,max2),oe=mathCos$2(Ue)*Ie+$e,ae=mathSin$2(Ue)*Fe+xe;break;case CMD$2.R:le=oe=z[pe++],ue=ae=z[pe++];var At=z[pe++],Lt=z[pe++];fromLine(le,ue,le+At,ue+Lt,min2,max2);break;case CMD$2.Z:oe=le,ae=ue;break}min$1(min,min,min2),max$1(max,max,max2)}return pe===0&&(min[0]=min[1]=max[0]=max[1]=0),new BoundingRect$1(min[0],min[1],max[0]-min[0],max[1]-min[1])},$.prototype._calculateLength=function(){var z=this.data,oe=this._len,ae=this._ux,le=this._uy,ue=0,pe=0,_e=0,Ce=0;this._pathSegLen||(this._pathSegLen=[]);for(var $e=this._pathSegLen,xe=0,Ie=0,Fe=0;Fe<oe;){var ze=z[Fe++],Ue=Fe===1;Ue&&(ue=z[Fe],pe=z[Fe+1],_e=ue,Ce=pe);var qe=-1;switch(ze){case CMD$2.M:ue=_e=z[Fe++],pe=Ce=z[Fe++];break;case CMD$2.L:{var At=z[Fe++],Lt=z[Fe++],hn=At-ue,vn=Lt-pe;(mathAbs$1(hn)>ae||mathAbs$1(vn)>le||Fe===oe-1)&&(qe=Math.sqrt(hn*hn+vn*vn),ue=At,pe=Lt);break}case CMD$2.C:{var _n=z[Fe++],bn=z[Fe++],At=z[Fe++],Lt=z[Fe++],Sn=z[Fe++],Cn=z[Fe++];qe=cubicLength(ue,pe,_n,bn,At,Lt,Sn,Cn,10),ue=Sn,pe=Cn;break}case CMD$2.Q:{var _n=z[Fe++],bn=z[Fe++],At=z[Fe++],Lt=z[Fe++];qe=quadraticLength(ue,pe,_n,bn,At,Lt,10),ue=At,pe=Lt;break}case CMD$2.A:var En=z[Fe++],$n=z[Fe++],wn=z[Fe++],Tn=z[Fe++],xn=z[Fe++],kn=z[Fe++],Nn=kn+xn;Fe+=1,z[Fe++],Ue&&(_e=mathCos$2(xn)*wn+En,Ce=mathSin$2(xn)*Tn+$n),qe=mathMax$6(wn,Tn)*mathMin$6(PI2$5,Math.abs(kn)),ue=mathCos$2(Nn)*wn+En,pe=mathSin$2(Nn)*Tn+$n;break;case CMD$2.R:{_e=ue=z[Fe++],Ce=pe=z[Fe++];var Bn=z[Fe++],Dn=z[Fe++];qe=Bn*2+Dn*2;break}case CMD$2.Z:{var hn=_e-ue,vn=Ce-pe;qe=Math.sqrt(hn*hn+vn*vn),ue=_e,pe=Ce;break}}qe>=0&&($e[Ie++]=qe,xe+=qe)}return this._pathLen=xe,xe},$.prototype.rebuildPath=function(z,oe){var ae=this.data,le=this._ux,ue=this._uy,pe=this._len,_e,Ce,$e,xe,Ie,Fe,ze=oe<1,Ue,qe,At=0,Lt=0,hn,vn=0,_n,bn;if(!(ze&&(this._pathSegLen||this._calculateLength(),Ue=this._pathSegLen,qe=this._pathLen,hn=oe*qe,!hn)))e:for(var Sn=0;Sn<pe;){var Cn=ae[Sn++],En=Sn===1;switch(En&&($e=ae[Sn],xe=ae[Sn+1],_e=$e,Ce=xe),Cn!==CMD$2.L&&vn>0&&(z.lineTo(_n,bn),vn=0),Cn){case CMD$2.M:_e=$e=ae[Sn++],Ce=xe=ae[Sn++],z.moveTo($e,xe);break;case CMD$2.L:{Ie=ae[Sn++],Fe=ae[Sn++];var $n=mathAbs$1(Ie-$e),wn=mathAbs$1(Fe-xe);if($n>le||wn>ue){if(ze){var Tn=Ue[Lt++];if(At+Tn>hn){var xn=(hn-At)/Tn;z.lineTo($e*(1-xn)+Ie*xn,xe*(1-xn)+Fe*xn);break e}At+=Tn}z.lineTo(Ie,Fe),$e=Ie,xe=Fe,vn=0}else{var kn=$n*$n+wn*wn;kn>vn&&(_n=Ie,bn=Fe,vn=kn)}break}case CMD$2.C:{var Nn=ae[Sn++],Bn=ae[Sn++],Dn=ae[Sn++],In=ae[Sn++],Ln=ae[Sn++],Mn=ae[Sn++];if(ze){var Tn=Ue[Lt++];if(At+Tn>hn){var xn=(hn-At)/Tn;cubicSubdivide($e,Nn,Dn,Ln,xn,tmpOutX),cubicSubdivide(xe,Bn,In,Mn,xn,tmpOutY),z.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}At+=Tn}z.bezierCurveTo(Nn,Bn,Dn,In,Ln,Mn),$e=Ln,xe=Mn;break}case CMD$2.Q:{var Nn=ae[Sn++],Bn=ae[Sn++],Dn=ae[Sn++],In=ae[Sn++];if(ze){var Tn=Ue[Lt++];if(At+Tn>hn){var xn=(hn-At)/Tn;quadraticSubdivide($e,Nn,Dn,xn,tmpOutX),quadraticSubdivide(xe,Bn,In,xn,tmpOutY),z.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}At+=Tn}z.quadraticCurveTo(Nn,Bn,Dn,In),$e=Dn,xe=In;break}case CMD$2.A:var Vn=ae[Sn++],Yn=ae[Sn++],Fn=ae[Sn++],Xn=ae[Sn++],sr=ae[Sn++],vr=ae[Sn++],ar=ae[Sn++],qn=!ae[Sn++],Gn=Fn>Xn?Fn:Xn,Wn=mathAbs$1(Fn-Xn)>.001,Qn=sr+vr,cr=!1;if(ze){var Tn=Ue[Lt++];At+Tn>hn&&(Qn=sr+vr*(hn-At)/Tn,cr=!0),At+=Tn}if(Wn&&z.ellipse?z.ellipse(Vn,Yn,Fn,Xn,ar,sr,Qn,qn):z.arc(Vn,Yn,Gn,sr,Qn,qn),cr)break e;En&&(_e=mathCos$2(sr)*Fn+Vn,Ce=mathSin$2(sr)*Xn+Yn),$e=mathCos$2(Qn)*Fn+Vn,xe=mathSin$2(Qn)*Xn+Yn;break;case CMD$2.R:_e=$e=ae[Sn],Ce=xe=ae[Sn+1],Ie=ae[Sn++],Fe=ae[Sn++];var jn=ae[Sn++],Zn=ae[Sn++];if(ze){var Tn=Ue[Lt++];if(At+Tn>hn){var nr=hn-At;z.moveTo(Ie,Fe),z.lineTo(Ie+mathMin$6(nr,jn),Fe),nr-=jn,nr>0&&z.lineTo(Ie+jn,Fe+mathMin$6(nr,Zn)),nr-=Zn,nr>0&&z.lineTo(Ie+mathMax$6(jn-nr,0),Fe+Zn),nr-=jn,nr>0&&z.lineTo(Ie,Fe+mathMax$6(Zn-nr,0));break e}At+=Tn}z.rect(Ie,Fe,jn,Zn);break;case CMD$2.Z:if(ze){var Tn=Ue[Lt++];if(At+Tn>hn){var xn=(hn-At)/Tn;z.lineTo($e*(1-xn)+_e*xn,xe*(1-xn)+Ce*xn);break e}At+=Tn}z.closePath(),$e=_e,xe=Ce}}},$.prototype.clone=function(){var z=new $,oe=this.data;return z.data=oe.slice?oe.slice():Array.prototype.slice.call(oe),z._len=this._len,z},$.CMD=CMD$2,$.initDefaultProps=function(){var z=$.prototype;z._saveData=!0,z._ux=0,z._uy=0,z._pendingPtDist=0,z._version=0}(),$}();const PathProxy$1=PathProxy;function containStroke$4($,z,oe,ae,le,ue,pe){if(le===0)return!1;var _e=le,Ce=0,$e=$;if(pe>z+_e&&pe>ae+_e||pe<z-_e&&pe<ae-_e||ue>$+_e&&ue>oe+_e||ue<$-_e&&ue<oe-_e)return!1;if($!==oe)Ce=(z-ae)/($-oe),$e=($*ae-oe*z)/($-oe);else return Math.abs(ue-$)<=_e/2;var xe=Ce*ue-pe+$e,Ie=xe*xe/(Ce*Ce+1);return Ie<=_e/2*_e/2}function containStroke$3($,z,oe,ae,le,ue,pe,_e,Ce,$e,xe){if(Ce===0)return!1;var Ie=Ce;if(xe>z+Ie&&xe>ae+Ie&&xe>ue+Ie&&xe>_e+Ie||xe<z-Ie&&xe<ae-Ie&&xe<ue-Ie&&xe<_e-Ie||$e>$+Ie&&$e>oe+Ie&&$e>le+Ie&&$e>pe+Ie||$e<$-Ie&&$e<oe-Ie&&$e<le-Ie&&$e<pe-Ie)return!1;var Fe=cubicProjectPoint($,z,oe,ae,le,ue,pe,_e,$e,xe,null);return Fe<=Ie/2}function containStroke$2($,z,oe,ae,le,ue,pe,_e,Ce){if(pe===0)return!1;var $e=pe;if(Ce>z+$e&&Ce>ae+$e&&Ce>ue+$e||Ce<z-$e&&Ce<ae-$e&&Ce<ue-$e||_e>$+$e&&_e>oe+$e&&_e>le+$e||_e<$-$e&&_e<oe-$e&&_e<le-$e)return!1;var xe=quadraticProjectPoint($,z,oe,ae,le,ue,_e,Ce,null);return xe<=$e/2}var PI2$4=Math.PI*2;function normalizeRadian($){return $%=PI2$4,$<0&&($+=PI2$4),$}var PI2$3=Math.PI*2;function containStroke$1($,z,oe,ae,le,ue,pe,_e,Ce){if(pe===0)return!1;var $e=pe;_e-=$,Ce-=z;var xe=Math.sqrt(_e*_e+Ce*Ce);if(xe-$e>oe||xe+$e<oe)return!1;if(Math.abs(ae-le)%PI2$3<1e-4)return!0;if(ue){var Ie=ae;ae=normalizeRadian(le),le=normalizeRadian(Ie)}else ae=normalizeRadian(ae),le=normalizeRadian(le);ae>le&&(le+=PI2$3);var Fe=Math.atan2(Ce,_e);return Fe<0&&(Fe+=PI2$3),Fe>=ae&&Fe<=le||Fe+PI2$3>=ae&&Fe+PI2$3<=le}function windingLine($,z,oe,ae,le,ue){if(ue>z&&ue>ae||ue<z&&ue<ae||ae===z)return 0;var pe=(ue-z)/(ae-z),_e=ae<z?1:-1;(pe===1||pe===0)&&(_e=ae<z?.5:-.5);var Ce=pe*(oe-$)+$;return Ce===le?1/0:Ce>le?_e:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1($,z){return Math.abs($-z)<EPSILON$1}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var $=extrema[0];extrema[0]=extrema[1],extrema[1]=$}function windingCubic($,z,oe,ae,le,ue,pe,_e,Ce,$e){if($e>z&&$e>ae&&$e>ue&&$e>_e||$e<z&&$e<ae&&$e<ue&&$e<_e)return 0;var xe=cubicRootAt(z,ae,ue,_e,$e,roots);if(xe===0)return 0;for(var Ie=0,Fe=-1,ze=void 0,Ue=void 0,qe=0;qe<xe;qe++){var At=roots[qe],Lt=At===0||At===1?.5:1,hn=cubicAt($,oe,le,pe,At);hn<Ce||(Fe<0&&(Fe=cubicExtrema(z,ae,ue,_e,extrema),extrema[1]<extrema[0]&&Fe>1&&swapExtrema(),ze=cubicAt(z,ae,ue,_e,extrema[0]),Fe>1&&(Ue=cubicAt(z,ae,ue,_e,extrema[1]))),Fe===2?At<extrema[0]?Ie+=ze<z?Lt:-Lt:At<extrema[1]?Ie+=Ue<ze?Lt:-Lt:Ie+=_e<Ue?Lt:-Lt:At<extrema[0]?Ie+=ze<z?Lt:-Lt:Ie+=_e<ze?Lt:-Lt)}return Ie}function windingQuadratic($,z,oe,ae,le,ue,pe,_e){if(_e>z&&_e>ae&&_e>ue||_e<z&&_e<ae&&_e<ue)return 0;var Ce=quadraticRootAt(z,ae,ue,_e,roots);if(Ce===0)return 0;var $e=quadraticExtremum(z,ae,ue);if($e>=0&&$e<=1){for(var xe=0,Ie=quadraticAt(z,ae,ue,$e),Fe=0;Fe<Ce;Fe++){var ze=roots[Fe]===0||roots[Fe]===1?.5:1,Ue=quadraticAt($,oe,le,roots[Fe]);Ue<pe||(roots[Fe]<$e?xe+=Ie<z?ze:-ze:xe+=ue<Ie?ze:-ze)}return xe}else{var ze=roots[0]===0||roots[0]===1?.5:1,Ue=quadraticAt($,oe,le,roots[0]);return Ue<pe?0:ue<z?ze:-ze}}function windingArc($,z,oe,ae,le,ue,pe,_e){if(_e-=z,_e>oe||_e<-oe)return 0;var Ce=Math.sqrt(oe*oe-_e*_e);roots[0]=-Ce,roots[1]=Ce;var $e=Math.abs(ae-le);if($e<1e-4)return 0;if($e>=PI2$2-1e-4){ae=0,le=PI2$2;var xe=ue?1:-1;return pe>=roots[0]+$&&pe<=roots[1]+$?xe:0}if(ae>le){var Ie=ae;ae=le,le=Ie}ae<0&&(ae+=PI2$2,le+=PI2$2);for(var Fe=0,ze=0;ze<2;ze++){var Ue=roots[ze];if(Ue+$>pe){var qe=Math.atan2(_e,Ue),xe=ue?1:-1;qe<0&&(qe=PI2$2+qe),(qe>=ae&&qe<=le||qe+PI2$2>=ae&&qe+PI2$2<=le)&&(qe>Math.PI/2&&qe<Math.PI*1.5&&(xe=-xe),Fe+=xe)}}return Fe}function containPath($,z,oe,ae,le){for(var ue=$.data,pe=$.len(),_e=0,Ce=0,$e=0,xe=0,Ie=0,Fe,ze,Ue=0;Ue<pe;){var qe=ue[Ue++],At=Ue===1;switch(qe===CMD$1.M&&Ue>1&&(oe||(_e+=windingLine(Ce,$e,xe,Ie,ae,le))),At&&(Ce=ue[Ue],$e=ue[Ue+1],xe=Ce,Ie=$e),qe){case CMD$1.M:xe=ue[Ue++],Ie=ue[Ue++],Ce=xe,$e=Ie;break;case CMD$1.L:if(oe){if(containStroke$4(Ce,$e,ue[Ue],ue[Ue+1],z,ae,le))return!0}else _e+=windingLine(Ce,$e,ue[Ue],ue[Ue+1],ae,le)||0;Ce=ue[Ue++],$e=ue[Ue++];break;case CMD$1.C:if(oe){if(containStroke$3(Ce,$e,ue[Ue++],ue[Ue++],ue[Ue++],ue[Ue++],ue[Ue],ue[Ue+1],z,ae,le))return!0}else _e+=windingCubic(Ce,$e,ue[Ue++],ue[Ue++],ue[Ue++],ue[Ue++],ue[Ue],ue[Ue+1],ae,le)||0;Ce=ue[Ue++],$e=ue[Ue++];break;case CMD$1.Q:if(oe){if(containStroke$2(Ce,$e,ue[Ue++],ue[Ue++],ue[Ue],ue[Ue+1],z,ae,le))return!0}else _e+=windingQuadratic(Ce,$e,ue[Ue++],ue[Ue++],ue[Ue],ue[Ue+1],ae,le)||0;Ce=ue[Ue++],$e=ue[Ue++];break;case CMD$1.A:var Lt=ue[Ue++],hn=ue[Ue++],vn=ue[Ue++],_n=ue[Ue++],bn=ue[Ue++],Sn=ue[Ue++];Ue+=1;var Cn=!!(1-ue[Ue++]);Fe=Math.cos(bn)*vn+Lt,ze=Math.sin(bn)*_n+hn,At?(xe=Fe,Ie=ze):_e+=windingLine(Ce,$e,Fe,ze,ae,le);var En=(ae-Lt)*_n/vn+Lt;if(oe){if(containStroke$1(Lt,hn,_n,bn,bn+Sn,Cn,z,En,le))return!0}else _e+=windingArc(Lt,hn,_n,bn,bn+Sn,Cn,En,le);Ce=Math.cos(bn+Sn)*vn+Lt,$e=Math.sin(bn+Sn)*_n+hn;break;case CMD$1.R:xe=Ce=ue[Ue++],Ie=$e=ue[Ue++];var $n=ue[Ue++],wn=ue[Ue++];if(Fe=xe+$n,ze=Ie+wn,oe){if(containStroke$4(xe,Ie,Fe,Ie,z,ae,le)||containStroke$4(Fe,Ie,Fe,ze,z,ae,le)||containStroke$4(Fe,ze,xe,ze,z,ae,le)||containStroke$4(xe,ze,xe,Ie,z,ae,le))return!0}else _e+=windingLine(Fe,Ie,Fe,ze,ae,le),_e+=windingLine(xe,ze,xe,Ie,ae,le);break;case CMD$1.Z:if(oe){if(containStroke$4(Ce,$e,xe,Ie,z,ae,le))return!0}else _e+=windingLine(Ce,$e,xe,Ie,ae,le);Ce=xe,$e=Ie;break}}return!oe&&!isAroundEqual$1($e,Ie)&&(_e+=windingLine(Ce,$e,xe,Ie,ae,le)||0),_e!==0}function contain$2($,z,oe){return containPath($,0,!1,z,oe)}function containStroke($,z,oe,ae){return containPath($,z,!0,oe,ae)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.update=function(){var oe=this;$.prototype.update.call(this);var ae=this.style;if(ae.decal){var le=this._decalEl=this._decalEl||new z;le.buildPath===z.prototype.buildPath&&(le.buildPath=function(Ce){oe.buildPath(Ce,oe.shape)}),le.silent=!0;var ue=le.style;for(var pe in ae)ue[pe]!==ae[pe]&&(ue[pe]=ae[pe]);ue.fill=ae.fill?ae.decal:null,ue.decal=null,ue.shadowColor=null,ae.strokeFirst&&(ue.stroke=null);for(var _e=0;_e<pathCopyParams.length;++_e)le[pathCopyParams[_e]]=this[pathCopyParams[_e]];le.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},z.prototype.getDecalElement=function(){return this._decalEl},z.prototype._init=function(oe){var ae=keys(oe);this.shape=this.getDefaultShape();var le=this.getDefaultStyle();le&&this.useStyle(le);for(var ue=0;ue<ae.length;ue++){var pe=ae[ue],_e=oe[pe];pe==="style"?this.style?extend(this.style,_e):this.useStyle(_e):pe==="shape"?extend(this.shape,_e):$.prototype.attrKV.call(this,pe,_e)}this.style||this.useStyle({})},z.prototype.getDefaultStyle=function(){return null},z.prototype.getDefaultShape=function(){return{}},z.prototype.canBeInsideText=function(){return this.hasFill()},z.prototype.getInsideTextFill=function(){var oe=this.style.fill;if(oe!=="none"){if(isString(oe)){var ae=lum(oe,0);return ae>.5?DARK_LABEL_COLOR:ae>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(oe)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},z.prototype.getInsideTextStroke=function(oe){var ae=this.style.fill;if(isString(ae)){var le=this.__zr,ue=!!(le&&le.isDarkMode()),pe=lum(oe,0)<DARK_MODE_THRESHOLD;if(ue===pe)return ae}},z.prototype.buildPath=function(oe,ae,le){},z.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},z.prototype.getUpdatedPathProxy=function(oe){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,oe),this.path},z.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},z.prototype.hasStroke=function(){var oe=this.style,ae=oe.stroke;return!(ae==null||ae==="none"||!(oe.lineWidth>0))},z.prototype.hasFill=function(){var oe=this.style,ae=oe.fill;return ae!=null&&ae!=="none"},z.prototype.getBoundingRect=function(){var oe=this._rect,ae=this.style,le=!oe;if(le){var ue=!1;this.path||(ue=!0,this.createPathProxy());var pe=this.path;(ue||this.__dirty&SHAPE_CHANGED_BIT)&&(pe.beginPath(),this.buildPath(pe,this.shape,!1),this.pathUpdated()),oe=pe.getBoundingRect()}if(this._rect=oe,this.hasStroke()&&this.path&&this.path.len()>0){var _e=this._rectStroke||(this._rectStroke=oe.clone());if(this.__dirty||le){_e.copy(oe);var Ce=ae.strokeNoScale?this.getLineScale():1,$e=ae.lineWidth;if(!this.hasFill()){var xe=this.strokeContainThreshold;$e=Math.max($e,xe??4)}Ce>1e-10&&(_e.width+=$e/Ce,_e.height+=$e/Ce,_e.x-=$e/Ce/2,_e.y-=$e/Ce/2)}return _e}return oe},z.prototype.contain=function(oe,ae){var le=this.transformCoordToLocal(oe,ae),ue=this.getBoundingRect(),pe=this.style;if(oe=le[0],ae=le[1],ue.contain(oe,ae)){var _e=this.path;if(this.hasStroke()){var Ce=pe.lineWidth,$e=pe.strokeNoScale?this.getLineScale():1;if($e>1e-10&&(this.hasFill()||(Ce=Math.max(Ce,this.strokeContainThreshold)),containStroke(_e,Ce/$e,oe,ae)))return!0}if(this.hasFill())return contain$2(_e,oe,ae)}return!1},z.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},z.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},z.prototype.animateShape=function(oe){return this.animate("shape",oe)},z.prototype.updateDuringAnimation=function(oe){oe==="style"?this.dirtyStyle():oe==="shape"?this.dirtyShape():this.markRedraw()},z.prototype.attrKV=function(oe,ae){oe==="shape"?this.setShape(ae):$.prototype.attrKV.call(this,oe,ae)},z.prototype.setShape=function(oe,ae){var le=this.shape;return le||(le=this.shape={}),typeof oe=="string"?le[oe]=ae:extend(le,oe),this.dirtyShape(),this},z.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},z.prototype.createStyle=function(oe){return createObject(DEFAULT_PATH_STYLE,oe)},z.prototype._innerSaveToNormal=function(oe){$.prototype._innerSaveToNormal.call(this,oe);var ae=this._normalState;oe.shape&&!ae.shape&&(ae.shape=extend({},this.shape))},z.prototype._applyStateObj=function(oe,ae,le,ue,pe,_e){$.prototype._applyStateObj.call(this,oe,ae,le,ue,pe,_e);var Ce=!(ae&&ue),$e;if(ae&&ae.shape?pe?ue?$e=ae.shape:($e=extend({},le.shape),extend($e,ae.shape)):($e=extend({},ue?this.shape:le.shape),extend($e,ae.shape)):Ce&&($e=le.shape),$e)if(pe){this.shape=extend({},this.shape);for(var xe={},Ie=keys($e),Fe=0;Fe<Ie.length;Fe++){var ze=Ie[Fe];typeof $e[ze]=="object"?this.shape[ze]=$e[ze]:xe[ze]=$e[ze]}this._transitionState(oe,{shape:xe},_e)}else this.shape=$e,this.dirtyShape()},z.prototype._mergeStates=function(oe){for(var ae=$.prototype._mergeStates.call(this,oe),le,ue=0;ue<oe.length;ue++){var pe=oe[ue];pe.shape&&(le=le||{},this._mergeStyle(le,pe.shape))}return le&&(ae.shape=le),ae},z.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},z.prototype.isZeroArea=function(){return!1},z.extend=function(oe){var ae=function(ue){__extends(pe,ue);function pe(_e){var Ce=ue.call(this,_e)||this;return oe.init&&oe.init.call(Ce,_e),Ce}return pe.prototype.getDefaultStyle=function(){return clone$3(oe.style)},pe.prototype.getDefaultShape=function(){return clone$3(oe.shape)},pe}(z);for(var le in oe)typeof oe[le]=="function"&&(ae.prototype[le]=oe[le]);return ae},z.initDefaultProps=function(){var oe=z.prototype;oe.type="path",oe.strokeContainThreshold=5,oe.segmentIgnoreThreshold=0,oe.subPixelOptimize=!1,oe.autoBatch=!1,oe.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),z}(Displayable$1);const Path$1=Path;var DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.hasStroke=function(){var oe=this.style,ae=oe.stroke;return ae!=null&&ae!=="none"&&oe.lineWidth>0},z.prototype.hasFill=function(){var oe=this.style,ae=oe.fill;return ae!=null&&ae!=="none"},z.prototype.createStyle=function(oe){return createObject(DEFAULT_TSPAN_STYLE,oe)},z.prototype.setBoundingRect=function(oe){this._rect=oe},z.prototype.getBoundingRect=function(){var oe=this.style;if(!this._rect){var ae=oe.text;ae!=null?ae+="":ae="";var le=getBoundingRect(ae,oe.font,oe.textAlign,oe.textBaseline);if(le.x+=oe.x||0,le.y+=oe.y||0,this.hasStroke()){var ue=oe.lineWidth;le.x-=ue/2,le.y-=ue/2,le.width+=ue,le.height+=ue}this._rect=le}return this._rect},z.initDefaultProps=function(){var oe=z.prototype;oe.dirtyRectTolerance=10}(),z}(Displayable$1);TSpan.prototype.type="tspan";const TSpan$1=TSpan;var DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike($){return!!($&&typeof $!="string"&&$.width&&$.height)}var ZRImage=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.createStyle=function(oe){return createObject(DEFAULT_IMAGE_STYLE,oe)},z.prototype._getSize=function(oe){var ae=this.style,le=ae[oe];if(le!=null)return le;var ue=isImageLike(ae.image)?ae.image:this.__image;if(!ue)return 0;var pe=oe==="width"?"height":"width",_e=ae[pe];return _e==null?ue[oe]:ue[oe]/ue[pe]*_e},z.prototype.getWidth=function(){return this._getSize("width")},z.prototype.getHeight=function(){return this._getSize("height")},z.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},z.prototype.getBoundingRect=function(){var oe=this.style;return this._rect||(this._rect=new BoundingRect$1(oe.x||0,oe.y||0,this.getWidth(),this.getHeight())),this._rect},z}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2($,z){var oe=z.x,ae=z.y,le=z.width,ue=z.height,pe=z.r,_e,Ce,$e,xe;le<0&&(oe=oe+le,le=-le),ue<0&&(ae=ae+ue,ue=-ue),typeof pe=="number"?_e=Ce=$e=xe=pe:pe instanceof Array?pe.length===1?_e=Ce=$e=xe=pe[0]:pe.length===2?(_e=$e=pe[0],Ce=xe=pe[1]):pe.length===3?(_e=pe[0],Ce=xe=pe[1],$e=pe[2]):(_e=pe[0],Ce=pe[1],$e=pe[2],xe=pe[3]):_e=Ce=$e=xe=0;var Ie;_e+Ce>le&&(Ie=_e+Ce,_e*=le/Ie,Ce*=le/Ie),$e+xe>le&&(Ie=$e+xe,$e*=le/Ie,xe*=le/Ie),Ce+$e>ue&&(Ie=Ce+$e,Ce*=ue/Ie,$e*=ue/Ie),_e+xe>ue&&(Ie=_e+xe,_e*=ue/Ie,xe*=ue/Ie),$.moveTo(oe+_e,ae),$.lineTo(oe+le-Ce,ae),Ce!==0&&$.arc(oe+le-Ce,ae+Ce,Ce,-Math.PI/2,0),$.lineTo(oe+le,ae+ue-$e),$e!==0&&$.arc(oe+le-$e,ae+ue-$e,$e,0,Math.PI/2),$.lineTo(oe+xe,ae+ue),xe!==0&&$.arc(oe+xe,ae+ue-xe,xe,Math.PI/2,Math.PI),$.lineTo(oe,ae+_e),_e!==0&&$.arc(oe+_e,ae+_e,_e,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1($,z,oe){if(z){var ae=z.x1,le=z.x2,ue=z.y1,pe=z.y2;$.x1=ae,$.x2=le,$.y1=ue,$.y2=pe;var _e=oe&&oe.lineWidth;return _e&&(round(ae*2)===round(le*2)&&($.x1=$.x2=subPixelOptimize$1(ae,_e,!0)),round(ue*2)===round(pe*2)&&($.y1=$.y2=subPixelOptimize$1(ue,_e,!0))),$}}function subPixelOptimizeRect$1($,z,oe){if(z){var ae=z.x,le=z.y,ue=z.width,pe=z.height;$.x=ae,$.y=le,$.width=ue,$.height=pe;var _e=oe&&oe.lineWidth;return _e&&($.x=subPixelOptimize$1(ae,_e,!0),$.y=subPixelOptimize$1(le,_e,!0),$.width=Math.max(subPixelOptimize$1(ae+ue,_e,!1)-$.x,ue===0?0:1),$.height=Math.max(subPixelOptimize$1(le+pe,_e,!1)-$.y,pe===0?0:1)),$}}function subPixelOptimize$1($,z,oe){if(!z)return $;var ae=round($*2);return(ae+round(z))%2===0?ae/2:(ae+(oe?1:-1))/2}var RectShape=function(){function $(){this.x=0,this.y=0,this.width=0,this.height=0}return $}(),subPixelOptimizeOutputShape$1={},Rect$1=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new RectShape},z.prototype.buildPath=function(oe,ae){var le,ue,pe,_e;if(this.subPixelOptimize){var Ce=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,ae,this.style);le=Ce.x,ue=Ce.y,pe=Ce.width,_e=Ce.height,Ce.r=ae.r,ae=Ce}else le=ae.x,ue=ae.y,pe=ae.width,_e=ae.height;ae.r?buildPath$2(oe,ae):oe.rect(le,ue,pe,_e)},z.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},z}(Path$1);Rect$1.prototype.type="rect";const Rect$2=Rect$1;var DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae.type="text",ae._children=[],ae._defaultStyle=DEFAULT_RICH_TEXT_COLOR,ae.attr(oe),ae}return z.prototype.childrenRef=function(){return this._children},z.prototype.update=function(){$.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var oe=0;oe<this._children.length;oe++){var ae=this._children[oe];ae.zlevel=this.zlevel,ae.z=this.z,ae.z2=this.z2,ae.culling=this.culling,ae.cursor=this.cursor,ae.invisible=this.invisible}},z.prototype.updateTransform=function(){var oe=this.innerTransformable;oe?(oe.updateTransform(),oe.transform&&(this.transform=oe.transform)):$.prototype.updateTransform.call(this)},z.prototype.getLocalTransform=function(oe){var ae=this.innerTransformable;return ae?ae.getLocalTransform(oe):$.prototype.getLocalTransform.call(this,oe)},z.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),$.prototype.getComputedTransform.call(this)},z.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},z.prototype.addSelfToZr=function(oe){$.prototype.addSelfToZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++)this._children[ae].__zr=oe},z.prototype.removeSelfFromZr=function(oe){$.prototype.removeSelfFromZr.call(this,oe);for(var ae=0;ae<this._children.length;ae++)this._children[ae].__zr=null},z.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var oe=new BoundingRect$1(0,0,0,0),ae=this._children,le=[],ue=null,pe=0;pe<ae.length;pe++){var _e=ae[pe],Ce=_e.getBoundingRect(),$e=_e.getLocalTransform(le);$e?(oe.copy(Ce),oe.applyTransform($e),ue=ue||oe.clone(),ue.union(oe)):(ue=ue||Ce.clone(),ue.union(Ce))}this._rect=ue||oe}return this._rect},z.prototype.setDefaultTextStyle=function(oe){this._defaultStyle=oe||DEFAULT_RICH_TEXT_COLOR},z.prototype.setTextContent=function(oe){},z.prototype._mergeStyle=function(oe,ae){if(!ae)return oe;var le=ae.rich,ue=oe.rich||le&&{};return extend(oe,ae),le&&ue?(this._mergeRich(ue,le),oe.rich=ue):ue&&(oe.rich=ue),oe},z.prototype._mergeRich=function(oe,ae){for(var le=keys(ae),ue=0;ue<le.length;ue++){var pe=le[ue];oe[pe]=oe[pe]||{},extend(oe[pe],ae[pe])}},z.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},z.prototype._getOrCreateChild=function(oe){var ae=this._children[this._childCursor];return(!ae||!(ae instanceof oe))&&(ae=new oe),this._children[this._childCursor++]=ae,ae.__zr=this.__zr,ae.parent=this,ae},z.prototype._updatePlainTexts=function(){var oe=this.style,ae=oe.font||DEFAULT_FONT,le=oe.padding,ue=getStyleText(oe),pe=parsePlainText(ue,oe),_e=needDrawBackground(oe),Ce=!!oe.backgroundColor,$e=pe.outerHeight,xe=pe.outerWidth,Ie=pe.contentWidth,Fe=pe.lines,ze=pe.lineHeight,Ue=this._defaultStyle,qe=oe.x||0,At=oe.y||0,Lt=oe.align||Ue.align||"left",hn=oe.verticalAlign||Ue.verticalAlign||"top",vn=qe,_n=adjustTextY(At,pe.contentHeight,hn);if(_e||le){var bn=adjustTextX(qe,xe,Lt),Sn=adjustTextY(At,$e,hn);_e&&this._renderBackground(oe,oe,bn,Sn,xe,$e)}_n+=ze/2,le&&(vn=getTextXForPadding(qe,Lt,le),hn==="top"?_n+=le[0]:hn==="bottom"&&(_n-=le[2]));for(var Cn=0,En=!1,$n=getFill("fill"in oe?oe.fill:(En=!0,Ue.fill)),wn=getStroke("stroke"in oe?oe.stroke:!Ce&&(!Ue.autoStroke||En)?(Cn=DEFAULT_STROKE_LINE_WIDTH,Ue.stroke):null),Tn=oe.textShadowBlur>0,xn=oe.width!=null&&(oe.overflow==="truncate"||oe.overflow==="break"||oe.overflow==="breakAll"),kn=pe.calculatedLineHeight,Nn=0;Nn<Fe.length;Nn++){var Bn=this._getOrCreateChild(TSpan$1),Dn=Bn.createStyle();Bn.useStyle(Dn),Dn.text=Fe[Nn],Dn.x=vn,Dn.y=_n,Lt&&(Dn.textAlign=Lt),Dn.textBaseline="middle",Dn.opacity=oe.opacity,Dn.strokeFirst=!0,Tn&&(Dn.shadowBlur=oe.textShadowBlur||0,Dn.shadowColor=oe.textShadowColor||"transparent",Dn.shadowOffsetX=oe.textShadowOffsetX||0,Dn.shadowOffsetY=oe.textShadowOffsetY||0),Dn.stroke=wn,Dn.fill=$n,wn&&(Dn.lineWidth=oe.lineWidth||Cn,Dn.lineDash=oe.lineDash,Dn.lineDashOffset=oe.lineDashOffset||0),Dn.font=ae,setSeparateFont(Dn,oe),_n+=ze,xn&&Bn.setBoundingRect(new BoundingRect$1(adjustTextX(Dn.x,oe.width,Dn.textAlign),adjustTextY(Dn.y,kn,Dn.textBaseline),Ie,kn))}},z.prototype._updateRichTexts=function(){var oe=this.style,ae=getStyleText(oe),le=parseRichText(ae,oe),ue=le.width,pe=le.outerWidth,_e=le.outerHeight,Ce=oe.padding,$e=oe.x||0,xe=oe.y||0,Ie=this._defaultStyle,Fe=oe.align||Ie.align,ze=oe.verticalAlign||Ie.verticalAlign,Ue=adjustTextX($e,pe,Fe),qe=adjustTextY(xe,_e,ze),At=Ue,Lt=qe;Ce&&(At+=Ce[3],Lt+=Ce[0]);var hn=At+ue;needDrawBackground(oe)&&this._renderBackground(oe,oe,Ue,qe,pe,_e);for(var vn=!!oe.backgroundColor,_n=0;_n<le.lines.length;_n++){for(var bn=le.lines[_n],Sn=bn.tokens,Cn=Sn.length,En=bn.lineHeight,$n=bn.width,wn=0,Tn=At,xn=hn,kn=Cn-1,Nn=void 0;wn<Cn&&(Nn=Sn[wn],!Nn.align||Nn.align==="left");)this._placeToken(Nn,oe,En,Lt,Tn,"left",vn),$n-=Nn.width,Tn+=Nn.width,wn++;for(;kn>=0&&(Nn=Sn[kn],Nn.align==="right");)this._placeToken(Nn,oe,En,Lt,xn,"right",vn),$n-=Nn.width,xn-=Nn.width,kn--;for(Tn+=(ue-(Tn-At)-(hn-xn)-$n)/2;wn<=kn;)Nn=Sn[wn],this._placeToken(Nn,oe,En,Lt,Tn+Nn.width/2,"center",vn),Tn+=Nn.width,wn++;Lt+=En}},z.prototype._placeToken=function(oe,ae,le,ue,pe,_e,Ce){var $e=ae.rich[oe.styleName]||{};$e.text=oe.text;var xe=oe.verticalAlign,Ie=ue+le/2;xe==="top"?Ie=ue+oe.height/2:xe==="bottom"&&(Ie=ue+le-oe.height/2);var Fe=!oe.isLineHolder&&needDrawBackground($e);Fe&&this._renderBackground($e,ae,_e==="right"?pe-oe.width:_e==="center"?pe-oe.width/2:pe,Ie-oe.height/2,oe.width,oe.height);var ze=!!$e.backgroundColor,Ue=oe.textPadding;Ue&&(pe=getTextXForPadding(pe,_e,Ue),Ie-=oe.height/2-Ue[0]-oe.innerHeight/2);var qe=this._getOrCreateChild(TSpan$1),At=qe.createStyle();qe.useStyle(At);var Lt=this._defaultStyle,hn=!1,vn=0,_n=getFill("fill"in $e?$e.fill:"fill"in ae?ae.fill:(hn=!0,Lt.fill)),bn=getStroke("stroke"in $e?$e.stroke:"stroke"in ae?ae.stroke:!ze&&!Ce&&(!Lt.autoStroke||hn)?(vn=DEFAULT_STROKE_LINE_WIDTH,Lt.stroke):null),Sn=$e.textShadowBlur>0||ae.textShadowBlur>0;At.text=oe.text,At.x=pe,At.y=Ie,Sn&&(At.shadowBlur=$e.textShadowBlur||ae.textShadowBlur||0,At.shadowColor=$e.textShadowColor||ae.textShadowColor||"transparent",At.shadowOffsetX=$e.textShadowOffsetX||ae.textShadowOffsetX||0,At.shadowOffsetY=$e.textShadowOffsetY||ae.textShadowOffsetY||0),At.textAlign=_e,At.textBaseline="middle",At.font=oe.font||DEFAULT_FONT,At.opacity=retrieve3($e.opacity,ae.opacity,1),setSeparateFont(At,$e),bn&&(At.lineWidth=retrieve3($e.lineWidth,ae.lineWidth,vn),At.lineDash=retrieve2($e.lineDash,ae.lineDash),At.lineDashOffset=ae.lineDashOffset||0,At.stroke=bn),_n&&(At.fill=_n);var Cn=oe.contentWidth,En=oe.contentHeight;qe.setBoundingRect(new BoundingRect$1(adjustTextX(At.x,Cn,At.textAlign),adjustTextY(At.y,En,At.textBaseline),Cn,En))},z.prototype._renderBackground=function(oe,ae,le,ue,pe,_e){var Ce=oe.backgroundColor,$e=oe.borderWidth,xe=oe.borderColor,Ie=Ce&&Ce.image,Fe=Ce&&!Ie,ze=oe.borderRadius,Ue=this,qe,At;if(Fe||oe.lineHeight||$e&&xe){qe=this._getOrCreateChild(Rect$2),qe.useStyle(qe.createStyle()),qe.style.fill=null;var Lt=qe.shape;Lt.x=le,Lt.y=ue,Lt.width=pe,Lt.height=_e,Lt.r=ze,qe.dirtyShape()}if(Fe){var hn=qe.style;hn.fill=Ce||null,hn.fillOpacity=retrieve2(oe.fillOpacity,1)}else if(Ie){At=this._getOrCreateChild(ZRImage$1),At.onload=function(){Ue.dirtyStyle()};var vn=At.style;vn.image=Ce.image,vn.x=le,vn.y=ue,vn.width=pe,vn.height=_e}if($e&&xe){var hn=qe.style;hn.lineWidth=$e,hn.stroke=xe,hn.strokeOpacity=retrieve2(oe.strokeOpacity,1),hn.lineDash=oe.borderDash,hn.lineDashOffset=oe.borderDashOffset||0,qe.strokeContainThreshold=0,qe.hasFill()&&qe.hasStroke()&&(hn.strokeFirst=!0,hn.lineWidth*=2)}var _n=(qe||At).style;_n.shadowBlur=oe.shadowBlur||0,_n.shadowColor=oe.shadowColor||"transparent",_n.shadowOffsetX=oe.shadowOffsetX||0,_n.shadowOffsetY=oe.shadowOffsetY||0,_n.opacity=retrieve3(oe.opacity,ae.opacity,1)},z.makeFont=function(oe){var ae="";return hasSeparateFont(oe)&&(ae=[oe.fontStyle,oe.fontWeight,parseFontSize(oe.fontSize),oe.fontFamily||"sans-serif"].join(" ")),ae&&trim$1(ae)||oe.textFont||oe.font},z}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize($){return typeof $=="string"&&($.indexOf("px")!==-1||$.indexOf("rem")!==-1||$.indexOf("em")!==-1)?$:isNaN(+$)?DEFAULT_FONT_SIZE+"px":$+"px"}function setSeparateFont($,z){for(var oe=0;oe<FONT_PARTS.length;oe++){var ae=FONT_PARTS[oe],le=z[ae];le!=null&&($[ae]=le)}}function hasSeparateFont($){return $.fontSize!=null||$.fontFamily||$.fontWeight}function normalizeTextStyle($){return normalizeStyle($),each$c($.rich,normalizeStyle),$}function normalizeStyle($){if($){$.font=ZRText.makeFont($);var z=$.align;z==="middle"&&(z="center"),$.align=z==null||VALID_TEXT_ALIGN[z]?z:"left";var oe=$.verticalAlign;oe==="center"&&(oe="middle"),$.verticalAlign=oe==null||VALID_TEXT_VERTICAL_ALIGN[oe]?oe:"top";var ae=$.padding;ae&&($.padding=normalizeCssArray$1($.padding))}}function getStroke($,z){return $==null||z<=0||$==="transparent"||$==="none"?null:$.image||$.colorStops?"#000":$}function getFill($){return $==null||$==="none"?null:$.image||$.colorStops?"#000":$}function getTextXForPadding($,z,oe){return z==="right"?$-oe[1]:z==="center"?$+oe[3]/2-oe[1]/2:$+oe[3]}function getStyleText($){var z=$.text;return z!=null&&(z+=""),z}function needDrawBackground($){return!!($.backgroundColor||$.lineHeight||$.borderWidth&&$.borderColor)}const ZRText$1=ZRText;var getECData=makeInner(),setCommonECData=function($,z,oe,ae){if(ae){var le=getECData(ae);le.dataIndex=oe,le.dataType=z,le.seriesIndex=$,ae.type==="group"&&ae.traverse(function(ue){var pe=getECData(ue);pe.seriesIndex=$,pe.dataIndex=oe,pe.dataType=z})}},_highlightNextDigit=1,_highlightKeyMap={},getSavedStates=makeInner(),getComponentStates=makeInner(),HOVER_STATE_NORMAL=0,HOVER_STATE_BLUR=1,HOVER_STATE_EMPHASIS=2,SPECIAL_STATES=["emphasis","blur","select"],DISPLAY_STATES=["normal","emphasis","blur","select"],Z2_EMPHASIS_LIFT=10,Z2_SELECT_LIFT=9,HIGHLIGHT_ACTION_TYPE="highlight",DOWNPLAY_ACTION_TYPE="downplay",SELECT_ACTION_TYPE="select",UNSELECT_ACTION_TYPE="unselect",TOGGLE_SELECT_ACTION_TYPE="toggleSelect";function hasFillOrStroke($){return $!=null&&$!=="none"}var liftedColorCache=new LRU$1(100);function liftColor($){if(isString($)){var z=liftedColorCache.get($);return z||(z=lift($,-.1),liftedColorCache.put($,z)),z}else if(isGradientObject($)){var oe=extend({},$);return oe.colorStops=map$2($.colorStops,function(ae){return{offset:ae.offset,color:lift(ae.color,-.1)}}),oe}return $}function doChangeHoverState($,z,oe){$.onHoverStateChange&&($.hoverState||0)!==oe&&$.onHoverStateChange(z),$.hoverState=oe}function singleEnterEmphasis($){doChangeHoverState($,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis($){$.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState($,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur($){doChangeHoverState($,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur($){$.hoverState===HOVER_STATE_BLUR&&doChangeHoverState($,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect($){$.selected=!0}function singleLeaveSelect($){$.selected=!1}function updateElementState($,z,oe){z($,oe)}function traverseUpdateState($,z,oe){updateElementState($,z,oe),$.isGroup&&$.traverse(function(ae){updateElementState(ae,z,oe)})}function setStatesFlag($,z){switch(z){case"emphasis":$.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":$.hoverState=HOVER_STATE_NORMAL;break;case"blur":$.hoverState=HOVER_STATE_BLUR;break;case"select":$.selected=!0}}function getFromStateStyle($,z,oe,ae){for(var le=$.style,ue={},pe=0;pe<z.length;pe++){var _e=z[pe],Ce=le[_e];ue[_e]=Ce??(ae&&ae[_e])}for(var pe=0;pe<$.animators.length;pe++){var $e=$.animators[pe];$e.__fromStateTransition&&$e.__fromStateTransition.indexOf(oe)<0&&$e.targetName==="style"&&$e.saveTo(ue,z)}return ue}function createEmphasisDefaultState($,z,oe,ae){var le=oe&&indexOf(oe,"select")>=0,ue=!1;if($ instanceof Path$1){var pe=getSavedStates($),_e=le&&pe.selectFill||pe.normalFill,Ce=le&&pe.selectStroke||pe.normalStroke;if(hasFillOrStroke(_e)||hasFillOrStroke(Ce)){ae=ae||{};var $e=ae.style||{};$e.fill==="inherit"?(ue=!0,ae=extend({},ae),$e=extend({},$e),$e.fill=_e):!hasFillOrStroke($e.fill)&&hasFillOrStroke(_e)?(ue=!0,ae=extend({},ae),$e=extend({},$e),$e.fill=liftColor(_e)):!hasFillOrStroke($e.stroke)&&hasFillOrStroke(Ce)&&(ue||(ae=extend({},ae),$e=extend({},$e)),$e.stroke=liftColor(Ce)),ae.style=$e}}if(ae&&ae.z2==null){ue||(ae=extend({},ae));var xe=$.z2EmphasisLift;ae.z2=$.z2+(xe??Z2_EMPHASIS_LIFT)}return ae}function createSelectDefaultState($,z,oe){if(oe&&oe.z2==null){oe=extend({},oe);var ae=$.z2SelectLift;oe.z2=$.z2+(ae??Z2_SELECT_LIFT)}return oe}function createBlurDefaultState($,z,oe){var ae=indexOf($.currentStates,z)>=0,le=$.style.opacity,ue=ae?null:getFromStateStyle($,["opacity"],z,{opacity:1});oe=oe||{};var pe=oe.style||{};return pe.opacity==null&&(oe=extend({},oe),pe=extend({opacity:ae?le:ue.opacity*.1},pe),oe.style=pe),oe}function elementStateProxy($,z){var oe=this.states[$];if(this.style){if($==="emphasis")return createEmphasisDefaultState(this,$,z,oe);if($==="blur")return createBlurDefaultState(this,$,oe);if($==="select")return createSelectDefaultState(this,$,oe)}return oe}function setDefaultStateProxy($){$.stateProxy=elementStateProxy;var z=$.getTextContent(),oe=$.getTextGuideLine();z&&(z.stateProxy=elementStateProxy),oe&&(oe.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver($,z){!shouldSilent($,z)&&!$.__highByOuter&&traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut($,z){!shouldSilent($,z)&&!$.__highByOuter&&traverseUpdateState($,singleLeaveEmphasis)}function enterEmphasis($,z){$.__highByOuter|=1<<(z||0),traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasis($,z){!($.__highByOuter&=~(1<<(z||0)))&&traverseUpdateState($,singleLeaveEmphasis)}function enterBlur($){traverseUpdateState($,singleEnterBlur)}function leaveBlur($){traverseUpdateState($,singleLeaveBlur)}function enterSelect($){traverseUpdateState($,singleEnterSelect)}function leaveSelect($){traverseUpdateState($,singleLeaveSelect)}function shouldSilent($,z){return $.__highDownSilentOnTouch&&z.zrByTouch}function allLeaveBlur($){var z=$.getModel(),oe=[],ae=[];z.eachComponent(function(le,ue){var pe=getComponentStates(ue),_e=le==="series",Ce=_e?$.getViewOfSeriesModel(ue):$.getViewOfComponentModel(ue);!_e&&ae.push(Ce),pe.isBlured&&(Ce.group.traverse(function($e){singleLeaveBlur($e)}),_e&&oe.push(ue)),pe.isBlured=!1}),each$c(ae,function(le){le&&le.toggleBlurSeries&&le.toggleBlurSeries(oe,!1,z)})}function blurSeries($,z,oe,ae){var le=ae.getModel();oe=oe||"coordinateSystem";function ue($e,xe){for(var Ie=0;Ie<xe.length;Ie++){var Fe=$e.getItemGraphicEl(xe[Ie]);Fe&&leaveBlur(Fe)}}if($!=null&&!(!z||z==="none")){var pe=le.getSeriesByIndex($),_e=pe.coordinateSystem;_e&&_e.master&&(_e=_e.master);var Ce=[];le.eachSeries(function($e){var xe=pe===$e,Ie=$e.coordinateSystem;Ie&&Ie.master&&(Ie=Ie.master);var Fe=Ie&&_e?Ie===_e:xe;if(!(oe==="series"&&!xe||oe==="coordinateSystem"&&!Fe||z==="series"&&xe)){var ze=ae.getViewOfSeriesModel($e);if(ze.group.traverse(function(At){singleEnterBlur(At)}),isArrayLike(z))ue($e.getData(),z);else if(isObject$3(z))for(var Ue=keys(z),qe=0;qe<Ue.length;qe++)ue($e.getData(Ue[qe]),z[Ue[qe]]);Ce.push($e),getComponentStates($e).isBlured=!0}}),le.eachComponent(function($e,xe){if($e!=="series"){var Ie=ae.getViewOfComponentModel(xe);Ie&&Ie.toggleBlurSeries&&Ie.toggleBlurSeries(Ce,!0,le)}})}}function blurComponent($,z,oe){if(!($==null||z==null)){var ae=oe.getModel().getComponent($,z);if(ae){getComponentStates(ae).isBlured=!0;var le=oe.getViewOfComponentModel(ae);!le||!le.focusBlurEnabled||le.group.traverse(function(ue){singleEnterBlur(ue)})}}}function blurSeriesFromHighlightPayload($,z,oe){var ae=$.seriesIndex,le=$.getData(z.dataType);if(le){var ue=queryDataIndex(le,z);ue=(isArray$1(ue)?ue[0]:ue)||0;var pe=le.getItemGraphicEl(ue);if(!pe)for(var _e=le.count(),Ce=0;!pe&&Ce<_e;)pe=le.getItemGraphicEl(Ce++);if(pe){var $e=getECData(pe);blurSeries(ae,$e.focus,$e.blurScope,oe)}else{var xe=$.get(["emphasis","focus"]),Ie=$.get(["emphasis","blurScope"]);xe!=null&&blurSeries(ae,xe,Ie,oe)}}}function findComponentHighDownDispatchers($,z,oe,ae){var le={focusSelf:!1,dispatchers:null};if($==null||$==="series"||z==null||oe==null)return le;var ue=ae.getModel().getComponent($,z);if(!ue)return le;var pe=ae.getViewOfComponentModel(ue);if(!pe||!pe.findHighDownDispatchers)return le;for(var _e=pe.findHighDownDispatchers(oe),Ce,$e=0;$e<_e.length;$e++)if(getECData(_e[$e]).focus==="self"){Ce=!0;break}return{focusSelf:Ce,dispatchers:_e}}function handleGlobalMouseOverForHighDown($,z,oe){var ae=getECData($),le=findComponentHighDownDispatchers(ae.componentMainType,ae.componentIndex,ae.componentHighDownName,oe),ue=le.dispatchers,pe=le.focusSelf;ue?(pe&&blurComponent(ae.componentMainType,ae.componentIndex,oe),each$c(ue,function(_e){return enterEmphasisWhenMouseOver(_e,z)})):(blurSeries(ae.seriesIndex,ae.focus,ae.blurScope,oe),ae.focus==="self"&&blurComponent(ae.componentMainType,ae.componentIndex,oe),enterEmphasisWhenMouseOver($,z))}function handleGlobalMouseOutForHighDown($,z,oe){allLeaveBlur(oe);var ae=getECData($),le=findComponentHighDownDispatchers(ae.componentMainType,ae.componentIndex,ae.componentHighDownName,oe).dispatchers;le?each$c(le,function(ue){return leaveEmphasisWhenMouseOut(ue,z)}):leaveEmphasisWhenMouseOut($,z)}function toggleSelectionFromPayload($,z,oe){if(isSelectChangePayload(z)){var ae=z.dataType,le=$.getData(ae),ue=queryDataIndex(le,z);isArray$1(ue)||(ue=[ue]),$[z.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":z.type===SELECT_ACTION_TYPE?"select":"unselect"](ue,ae)}}function updateSeriesElementSelection($){var z=$.getAllData();each$c(z,function(oe){var ae=oe.data,le=oe.type;ae.eachItemGraphicEl(function(ue,pe){$.isSelected(pe,le)?enterSelect(ue):leaveSelect(ue)})})}function getAllSelectedIndices($){var z=[];return $.eachSeries(function(oe){var ae=oe.getAllData();each$c(ae,function(le){le.data;var ue=le.type,pe=oe.getSelectedDataIndices();if(pe.length>0){var _e={dataIndex:pe,seriesIndex:oe.seriesIndex};ue!=null&&(_e.dataType=ue),z.push(_e)}})}),z}function enableHoverEmphasis($,z,oe){setAsHighDownDispatcher($,!0),traverseUpdateState($,setDefaultStateProxy),enableHoverFocus($,z,oe)}function disableHoverEmphasis($){setAsHighDownDispatcher($,!1)}function toggleHoverEmphasis($,z,oe,ae){ae?disableHoverEmphasis($):enableHoverEmphasis($,z,oe)}function enableHoverFocus($,z,oe){var ae=getECData($);z!=null?(ae.focus=z,ae.blurScope=oe):ae.focus&&(ae.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel($,z,oe,ae){oe=oe||"itemStyle";for(var le=0;le<OTHER_STATES.length;le++){var ue=OTHER_STATES[le],pe=z.getModel([ue,oe]),_e=$.ensureState(ue);_e.style=ae?ae(pe):pe[defaultStyleGetterMap[oe]]()}}function setAsHighDownDispatcher($,z){var oe=z===!1,ae=$;$.highDownSilentOnTouch&&(ae.__highDownSilentOnTouch=$.highDownSilentOnTouch),(!oe||ae.__highDownDispatcher)&&(ae.__highByOuter=ae.__highByOuter||0,ae.__highDownDispatcher=!oe)}function isHighDownDispatcher($){return!!($&&$.__highDownDispatcher)}function getHighlightDigit($){var z=_highlightKeyMap[$];return z==null&&_highlightNextDigit<=32&&(z=_highlightKeyMap[$]=_highlightNextDigit++),z}function isSelectChangePayload($){var z=$.type;return z===SELECT_ACTION_TYPE||z===UNSELECT_ACTION_TYPE||z===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload($){var z=$.type;return z===HIGHLIGHT_ACTION_TYPE||z===DOWNPLAY_ACTION_TYPE}function savePathStates($){var z=getSavedStates($);z.normalFill=$.style.fill,z.normalStroke=$.style.stroke;var oe=$.states.select||{};z.selectFill=oe.style&&oe.style.fill||null,z.selectStroke=oe.style&&oe.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath($,z){if(z){var oe=$.data,ae=$.len(),le,ue,pe,_e,Ce,$e,xe=CMD.M,Ie=CMD.C,Fe=CMD.L,ze=CMD.R,Ue=CMD.A,qe=CMD.Q;for(pe=0,_e=0;pe<ae;){switch(le=oe[pe++],_e=pe,ue=0,le){case xe:ue=1;break;case Fe:ue=1;break;case Ie:ue=3;break;case qe:ue=2;break;case Ue:var At=z[4],Lt=z[5],hn=mathSqrt$2(z[0]*z[0]+z[1]*z[1]),vn=mathSqrt$2(z[2]*z[2]+z[3]*z[3]),_n=mathAtan2(-z[1]/vn,z[0]/hn);oe[pe]*=hn,oe[pe++]+=At,oe[pe]*=vn,oe[pe++]+=Lt,oe[pe++]*=hn,oe[pe++]*=vn,oe[pe++]+=_n,oe[pe++]+=_n,pe+=2,_e=pe;break;case ze:$e[0]=oe[pe++],$e[1]=oe[pe++],applyTransform$1($e,$e,z),oe[_e++]=$e[0],oe[_e++]=$e[1],$e[0]+=oe[pe++],$e[1]+=oe[pe++],applyTransform$1($e,$e,z),oe[_e++]=$e[0],oe[_e++]=$e[1]}for(Ce=0;Ce<ue;Ce++){var bn=points[Ce];bn[0]=oe[pe++],bn[1]=oe[pe++],applyTransform$1(bn,bn,z),oe[_e++]=bn[0],oe[_e++]=bn[1]}}$.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=Math.PI;function vMag($){return Math.sqrt($[0]*$[0]+$[1]*$[1])}function vRatio($,z){return($[0]*z[0]+$[1]*z[1])/(vMag($)*vMag(z))}function vAngle($,z){return($[0]*z[1]<$[1]*z[0]?-1:1)*Math.acos(vRatio($,z))}function processArc($,z,oe,ae,le,ue,pe,_e,Ce,$e,xe){var Ie=Ce*(PI$3/180),Fe=mathCos$1(Ie)*($-oe)/2+mathSin$1(Ie)*(z-ae)/2,ze=-1*mathSin$1(Ie)*($-oe)/2+mathCos$1(Ie)*(z-ae)/2,Ue=Fe*Fe/(pe*pe)+ze*ze/(_e*_e);Ue>1&&(pe*=mathSqrt$1(Ue),_e*=mathSqrt$1(Ue));var qe=(le===ue?-1:1)*mathSqrt$1((pe*pe*(_e*_e)-pe*pe*(ze*ze)-_e*_e*(Fe*Fe))/(pe*pe*(ze*ze)+_e*_e*(Fe*Fe)))||0,At=qe*pe*ze/_e,Lt=qe*-_e*Fe/pe,hn=($+oe)/2+mathCos$1(Ie)*At-mathSin$1(Ie)*Lt,vn=(z+ae)/2+mathSin$1(Ie)*At+mathCos$1(Ie)*Lt,_n=vAngle([1,0],[(Fe-At)/pe,(ze-Lt)/_e]),bn=[(Fe-At)/pe,(ze-Lt)/_e],Sn=[(-1*Fe-At)/pe,(-1*ze-Lt)/_e],Cn=vAngle(bn,Sn);if(vRatio(bn,Sn)<=-1&&(Cn=PI$3),vRatio(bn,Sn)>=1&&(Cn=0),Cn<0){var En=Math.round(Cn/PI$3*1e6)/1e6;Cn=PI$3*2+En%2*PI$3}xe.addData($e,hn,vn,pe,_e,_n,Cn,Ie,ue)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString($){var z=new PathProxy$1;if(!$)return z;var oe=0,ae=0,le=oe,ue=ae,pe,_e=PathProxy$1.CMD,Ce=$.match(commandReg);if(!Ce)return z;for(var $e=0;$e<Ce.length;$e++){for(var xe=Ce[$e],Ie=xe.charAt(0),Fe=void 0,ze=xe.match(numberReg)||[],Ue=ze.length,qe=0;qe<Ue;qe++)ze[qe]=parseFloat(ze[qe]);for(var At=0;At<Ue;){var Lt=void 0,hn=void 0,vn=void 0,_n=void 0,bn=void 0,Sn=void 0,Cn=void 0,En=oe,$n=ae,wn=void 0,Tn=void 0;switch(Ie){case"l":oe+=ze[At++],ae+=ze[At++],Fe=_e.L,z.addData(Fe,oe,ae);break;case"L":oe=ze[At++],ae=ze[At++],Fe=_e.L,z.addData(Fe,oe,ae);break;case"m":oe+=ze[At++],ae+=ze[At++],Fe=_e.M,z.addData(Fe,oe,ae),le=oe,ue=ae,Ie="l";break;case"M":oe=ze[At++],ae=ze[At++],Fe=_e.M,z.addData(Fe,oe,ae),le=oe,ue=ae,Ie="L";break;case"h":oe+=ze[At++],Fe=_e.L,z.addData(Fe,oe,ae);break;case"H":oe=ze[At++],Fe=_e.L,z.addData(Fe,oe,ae);break;case"v":ae+=ze[At++],Fe=_e.L,z.addData(Fe,oe,ae);break;case"V":ae=ze[At++],Fe=_e.L,z.addData(Fe,oe,ae);break;case"C":Fe=_e.C,z.addData(Fe,ze[At++],ze[At++],ze[At++],ze[At++],ze[At++],ze[At++]),oe=ze[At-2],ae=ze[At-1];break;case"c":Fe=_e.C,z.addData(Fe,ze[At++]+oe,ze[At++]+ae,ze[At++]+oe,ze[At++]+ae,ze[At++]+oe,ze[At++]+ae),oe+=ze[At-2],ae+=ze[At-1];break;case"S":Lt=oe,hn=ae,wn=z.len(),Tn=z.data,pe===_e.C&&(Lt+=oe-Tn[wn-4],hn+=ae-Tn[wn-3]),Fe=_e.C,En=ze[At++],$n=ze[At++],oe=ze[At++],ae=ze[At++],z.addData(Fe,Lt,hn,En,$n,oe,ae);break;case"s":Lt=oe,hn=ae,wn=z.len(),Tn=z.data,pe===_e.C&&(Lt+=oe-Tn[wn-4],hn+=ae-Tn[wn-3]),Fe=_e.C,En=oe+ze[At++],$n=ae+ze[At++],oe+=ze[At++],ae+=ze[At++],z.addData(Fe,Lt,hn,En,$n,oe,ae);break;case"Q":En=ze[At++],$n=ze[At++],oe=ze[At++],ae=ze[At++],Fe=_e.Q,z.addData(Fe,En,$n,oe,ae);break;case"q":En=ze[At++]+oe,$n=ze[At++]+ae,oe+=ze[At++],ae+=ze[At++],Fe=_e.Q,z.addData(Fe,En,$n,oe,ae);break;case"T":Lt=oe,hn=ae,wn=z.len(),Tn=z.data,pe===_e.Q&&(Lt+=oe-Tn[wn-4],hn+=ae-Tn[wn-3]),oe=ze[At++],ae=ze[At++],Fe=_e.Q,z.addData(Fe,Lt,hn,oe,ae);break;case"t":Lt=oe,hn=ae,wn=z.len(),Tn=z.data,pe===_e.Q&&(Lt+=oe-Tn[wn-4],hn+=ae-Tn[wn-3]),oe+=ze[At++],ae+=ze[At++],Fe=_e.Q,z.addData(Fe,Lt,hn,oe,ae);break;case"A":vn=ze[At++],_n=ze[At++],bn=ze[At++],Sn=ze[At++],Cn=ze[At++],En=oe,$n=ae,oe=ze[At++],ae=ze[At++],Fe=_e.A,processArc(En,$n,oe,ae,Sn,Cn,vn,_n,bn,Fe,z);break;case"a":vn=ze[At++],_n=ze[At++],bn=ze[At++],Sn=ze[At++],Cn=ze[At++],En=oe,$n=ae,oe+=ze[At++],ae+=ze[At++],Fe=_e.A,processArc(En,$n,oe,ae,Sn,Cn,vn,_n,bn,Fe,z);break}}(Ie==="z"||Ie==="Z")&&(Fe=_e.Z,z.addData(Fe),oe=le,ae=ue),pe=Fe}return z.toStatic(),z}var SVGPath=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.applyTransform=function(oe){},z}(Path$1);function isPathProxy($){return $.setData!=null}function createPathOptions($,z){var oe=createPathProxyFromString($),ae=extend({},z);return ae.buildPath=function(le){if(isPathProxy(le)){le.setData(oe.data);var ue=le.getContext();ue&&le.rebuildPath(ue,1)}else{var ue=le;oe.rebuildPath(ue,1)}},ae.applyTransform=function(le){transformPath(oe,le),this.dirtyShape()},ae}function createFromString($,z){return new SVGPath(createPathOptions($,z))}function extendFromString($,z){var oe=createPathOptions($,z),ae=function(le){__extends(ue,le);function ue(pe){var _e=le.call(this,pe)||this;return _e.applyTransform=oe.applyTransform,_e.buildPath=oe.buildPath,_e}return ue}(SVGPath);return ae}function mergePath$1($,z){for(var oe=[],ae=$.length,le=0;le<ae;le++){var ue=$[le];oe.push(ue.getUpdatedPathProxy(!0))}var pe=new Path$1(z);return pe.createPathProxy(),pe.buildPath=function(_e){if(isPathProxy(_e)){_e.appendPath(oe);var Ce=_e.getContext();Ce&&_e.rebuildPath(Ce,1)}},pe}var CircleShape=function(){function $(){this.cx=0,this.cy=0,this.r=0}return $}(),Circle=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new CircleShape},z.prototype.buildPath=function(oe,ae){oe.moveTo(ae.cx+ae.r,ae.cy),oe.arc(ae.cx,ae.cy,ae.r,0,Math.PI*2)},z}(Path$1);Circle.prototype.type="circle";const Circle$1=Circle;var EllipseShape=function(){function $(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return $}(),Ellipse=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new EllipseShape},z.prototype.buildPath=function(oe,ae){var le=.5522848,ue=ae.cx,pe=ae.cy,_e=ae.rx,Ce=ae.ry,$e=_e*le,xe=Ce*le;oe.moveTo(ue-_e,pe),oe.bezierCurveTo(ue-_e,pe-xe,ue-$e,pe-Ce,ue,pe-Ce),oe.bezierCurveTo(ue+$e,pe-Ce,ue+_e,pe-xe,ue+_e,pe),oe.bezierCurveTo(ue+_e,pe+xe,ue+$e,pe+Ce,ue,pe+Ce),oe.bezierCurveTo(ue-$e,pe+Ce,ue-_e,pe+xe,ue-_e,pe),oe.closePath()},z}(Path$1);Ellipse.prototype.type="ellipse";const Ellipse$1=Ellipse;var PI$2=Math.PI,PI2$1=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$5=Math.max,mathMin$5=Math.min,e=1e-4;function intersect($,z,oe,ae,le,ue,pe,_e){var Ce=oe-$,$e=ae-z,xe=pe-le,Ie=_e-ue,Fe=Ie*Ce-xe*$e;if(!(Fe*Fe<e))return Fe=(xe*(z-ue)-Ie*($-le))/Fe,[$+Fe*Ce,z+Fe*$e]}function computeCornerTangents($,z,oe,ae,le,ue,pe){var _e=$-oe,Ce=z-ae,$e=(pe?ue:-ue)/mathSqrt(_e*_e+Ce*Ce),xe=$e*Ce,Ie=-$e*_e,Fe=$+xe,ze=z+Ie,Ue=oe+xe,qe=ae+Ie,At=(Fe+Ue)/2,Lt=(ze+qe)/2,hn=Ue-Fe,vn=qe-ze,_n=hn*hn+vn*vn,bn=le-ue,Sn=Fe*qe-Ue*ze,Cn=(vn<0?-1:1)*mathSqrt(mathMax$5(0,bn*bn*_n-Sn*Sn)),En=(Sn*vn-hn*Cn)/_n,$n=(-Sn*hn-vn*Cn)/_n,wn=(Sn*vn+hn*Cn)/_n,Tn=(-Sn*hn+vn*Cn)/_n,xn=En-At,kn=$n-Lt,Nn=wn-At,Bn=Tn-Lt;return xn*xn+kn*kn>Nn*Nn+Bn*Bn&&(En=wn,$n=Tn),{cx:En,cy:$n,x0:-xe,y0:-Ie,x1:En*(le/bn-1),y1:$n*(le/bn-1)}}function normalizeCornerRadius($){var z;if(isArray$1($)){var oe=$.length;if(!oe)return $;oe===1?z=[$[0],$[0],0,0]:oe===2?z=[$[0],$[0],$[1],$[1]]:oe===3?z=$.concat($[2]):z=$}else z=[$,$,$,$];return z}function buildPath$1($,z){var oe,ae=mathMax$5(z.r,0),le=mathMax$5(z.r0||0,0),ue=ae>0,pe=le>0;if(!(!ue&&!pe)){if(ue||(ae=le,le=0),le>ae){var _e=ae;ae=le,le=_e}var Ce=z.startAngle,$e=z.endAngle;if(!(isNaN(Ce)||isNaN($e))){var xe=z.cx,Ie=z.cy,Fe=!!z.clockwise,ze=mathAbs($e-Ce),Ue=ze>PI2$1&&ze%PI2$1;if(Ue>e&&(ze=Ue),!(ae>e))$.moveTo(xe,Ie);else if(ze>PI2$1-e)$.moveTo(xe+ae*mathCos(Ce),Ie+ae*mathSin(Ce)),$.arc(xe,Ie,ae,Ce,$e,!Fe),le>e&&($.moveTo(xe+le*mathCos($e),Ie+le*mathSin($e)),$.arc(xe,Ie,le,$e,Ce,Fe));else{var qe=void 0,At=void 0,Lt=void 0,hn=void 0,vn=void 0,_n=void 0,bn=void 0,Sn=void 0,Cn=void 0,En=void 0,$n=void 0,wn=void 0,Tn=void 0,xn=void 0,kn=void 0,Nn=void 0,Bn=ae*mathCos(Ce),Dn=ae*mathSin(Ce),In=le*mathCos($e),Ln=le*mathSin($e),Mn=ze>e;if(Mn){var Vn=z.cornerRadius;Vn&&(oe=normalizeCornerRadius(Vn),qe=oe[0],At=oe[1],Lt=oe[2],hn=oe[3]);var Yn=mathAbs(ae-le)/2;if(vn=mathMin$5(Yn,Lt),_n=mathMin$5(Yn,hn),bn=mathMin$5(Yn,qe),Sn=mathMin$5(Yn,At),$n=Cn=mathMax$5(vn,_n),wn=En=mathMax$5(bn,Sn),(Cn>e||En>e)&&(Tn=ae*mathCos($e),xn=ae*mathSin($e),kn=le*mathCos(Ce),Nn=le*mathSin(Ce),ze<PI$2)){var Fn=intersect(Bn,Dn,kn,Nn,Tn,xn,In,Ln);if(Fn){var Xn=Bn-Fn[0],sr=Dn-Fn[1],vr=Tn-Fn[0],ar=xn-Fn[1],qn=1/mathSin(mathACos((Xn*vr+sr*ar)/(mathSqrt(Xn*Xn+sr*sr)*mathSqrt(vr*vr+ar*ar)))/2),Gn=mathSqrt(Fn[0]*Fn[0]+Fn[1]*Fn[1]);$n=mathMin$5(Cn,(ae-Gn)/(qn+1)),wn=mathMin$5(En,(le-Gn)/(qn-1))}}}if(!Mn)$.moveTo(xe+Bn,Ie+Dn);else if($n>e){var Wn=mathMin$5(Lt,$n),Qn=mathMin$5(hn,$n),cr=computeCornerTangents(kn,Nn,Bn,Dn,ae,Wn,Fe),jn=computeCornerTangents(Tn,xn,In,Ln,ae,Qn,Fe);$.moveTo(xe+cr.cx+cr.x0,Ie+cr.cy+cr.y0),$n<Cn&&Wn===Qn?$.arc(xe+cr.cx,Ie+cr.cy,$n,mathATan2(cr.y0,cr.x0),mathATan2(jn.y0,jn.x0),!Fe):(Wn>0&&$.arc(xe+cr.cx,Ie+cr.cy,Wn,mathATan2(cr.y0,cr.x0),mathATan2(cr.y1,cr.x1),!Fe),$.arc(xe,Ie,ae,mathATan2(cr.cy+cr.y1,cr.cx+cr.x1),mathATan2(jn.cy+jn.y1,jn.cx+jn.x1),!Fe),Qn>0&&$.arc(xe+jn.cx,Ie+jn.cy,Qn,mathATan2(jn.y1,jn.x1),mathATan2(jn.y0,jn.x0),!Fe))}else $.moveTo(xe+Bn,Ie+Dn),$.arc(xe,Ie,ae,Ce,$e,!Fe);if(!(le>e)||!Mn)$.lineTo(xe+In,Ie+Ln);else if(wn>e){var Wn=mathMin$5(qe,wn),Qn=mathMin$5(At,wn),cr=computeCornerTangents(In,Ln,Tn,xn,le,-Qn,Fe),jn=computeCornerTangents(Bn,Dn,kn,Nn,le,-Wn,Fe);$.lineTo(xe+cr.cx+cr.x0,Ie+cr.cy+cr.y0),wn<En&&Wn===Qn?$.arc(xe+cr.cx,Ie+cr.cy,wn,mathATan2(cr.y0,cr.x0),mathATan2(jn.y0,jn.x0),!Fe):(Qn>0&&$.arc(xe+cr.cx,Ie+cr.cy,Qn,mathATan2(cr.y0,cr.x0),mathATan2(cr.y1,cr.x1),!Fe),$.arc(xe,Ie,le,mathATan2(cr.cy+cr.y1,cr.cx+cr.x1),mathATan2(jn.cy+jn.y1,jn.cx+jn.x1),Fe),Wn>0&&$.arc(xe+jn.cx,Ie+jn.cy,Wn,mathATan2(jn.y1,jn.x1),mathATan2(jn.y0,jn.x0),!Fe))}else $.lineTo(xe+In,Ie+Ln),$.arc(xe,Ie,le,$e,Ce,Fe)}$.closePath()}}}var SectorShape=function(){function $(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return $}(),Sector=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new SectorShape},z.prototype.buildPath=function(oe,ae){buildPath$1(oe,ae)},z.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},z}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function $(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return $}(),Ring=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new RingShape},z.prototype.buildPath=function(oe,ae){var le=ae.cx,ue=ae.cy,pe=Math.PI*2;oe.moveTo(le+ae.r,ue),oe.arc(le,ue,ae.r,0,pe,!1),oe.moveTo(le+ae.r0,ue),oe.arc(le,ue,ae.r0,0,pe,!0)},z}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier($,z,oe,ae){var le=[],ue=[],pe=[],_e=[],Ce,$e,xe,Ie;if(ae){xe=[1/0,1/0],Ie=[-1/0,-1/0];for(var Fe=0,ze=$.length;Fe<ze;Fe++)min$1(xe,xe,$[Fe]),max$1(Ie,Ie,$[Fe]);min$1(xe,xe,ae[0]),max$1(Ie,Ie,ae[1])}for(var Fe=0,ze=$.length;Fe<ze;Fe++){var Ue=$[Fe];if(oe)Ce=$[Fe?Fe-1:ze-1],$e=$[(Fe+1)%ze];else if(Fe===0||Fe===ze-1){le.push(clone$2($[Fe]));continue}else Ce=$[Fe-1],$e=$[Fe+1];sub(ue,$e,Ce),scale$2(ue,ue,z);var qe=distance(Ue,Ce),At=distance(Ue,$e),Lt=qe+At;Lt!==0&&(qe/=Lt,At/=Lt),scale$2(pe,ue,-qe),scale$2(_e,ue,At);var hn=add([],Ue,pe),vn=add([],Ue,_e);ae&&(max$1(hn,hn,xe),min$1(hn,hn,Ie),max$1(vn,vn,xe),min$1(vn,vn,Ie)),le.push(hn),le.push(vn)}return oe&&le.push(le.shift()),le}function buildPath($,z,oe){var ae=z.smooth,le=z.points;if(le&&le.length>=2){if(ae){var ue=smoothBezier(le,ae,oe,z.smoothConstraint);$.moveTo(le[0][0],le[0][1]);for(var pe=le.length,_e=0;_e<(oe?pe:pe-1);_e++){var Ce=ue[_e*2],$e=ue[_e*2+1],xe=le[(_e+1)%pe];$.bezierCurveTo(Ce[0],Ce[1],$e[0],$e[1],xe[0],xe[1])}}else{$.moveTo(le[0][0],le[0][1]);for(var _e=1,Ie=le.length;_e<Ie;_e++)$.lineTo(le[_e][0],le[_e][1])}oe&&$.closePath()}}var PolygonShape=function(){function $(){this.points=null,this.smooth=0,this.smoothConstraint=null}return $}(),Polygon=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultShape=function(){return new PolygonShape},z.prototype.buildPath=function(oe,ae){buildPath(oe,ae,!0)},z}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function $(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return $}(),Polyline=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new PolylineShape},z.prototype.buildPath=function(oe,ae){buildPath(oe,ae,!1)},z}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function $(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return $}(),Line=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new LineShape},z.prototype.buildPath=function(oe,ae){var le,ue,pe,_e;if(this.subPixelOptimize){var Ce=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,ae,this.style);le=Ce.x1,ue=Ce.y1,pe=Ce.x2,_e=Ce.y2}else le=ae.x1,ue=ae.y1,pe=ae.x2,_e=ae.y2;var $e=ae.percent;$e!==0&&(oe.moveTo(le,ue),$e<1&&(pe=le*(1-$e)+pe*$e,_e=ue*(1-$e)+_e*$e),oe.lineTo(pe,_e))},z.prototype.pointAt=function(oe){var ae=this.shape;return[ae.x1*(1-oe)+ae.x2*oe,ae.y1*(1-oe)+ae.y2*oe]},z}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function $(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return $}();function someVectorAt($,z,oe){var ae=$.cpx2,le=$.cpy2;return ae!=null||le!=null?[(oe?cubicDerivativeAt:cubicAt)($.x1,$.cpx1,$.cpx2,$.x2,z),(oe?cubicDerivativeAt:cubicAt)($.y1,$.cpy1,$.cpy2,$.y2,z)]:[(oe?quadraticDerivativeAt:quadraticAt)($.x1,$.cpx1,$.x2,z),(oe?quadraticDerivativeAt:quadraticAt)($.y1,$.cpy1,$.y2,z)]}var BezierCurve=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new BezierCurveShape},z.prototype.buildPath=function(oe,ae){var le=ae.x1,ue=ae.y1,pe=ae.x2,_e=ae.y2,Ce=ae.cpx1,$e=ae.cpy1,xe=ae.cpx2,Ie=ae.cpy2,Fe=ae.percent;Fe!==0&&(oe.moveTo(le,ue),xe==null||Ie==null?(Fe<1&&(quadraticSubdivide(le,Ce,pe,Fe,out),Ce=out[1],pe=out[2],quadraticSubdivide(ue,$e,_e,Fe,out),$e=out[1],_e=out[2]),oe.quadraticCurveTo(Ce,$e,pe,_e)):(Fe<1&&(cubicSubdivide(le,Ce,xe,pe,Fe,out),Ce=out[1],xe=out[2],pe=out[3],cubicSubdivide(ue,$e,Ie,_e,Fe,out),$e=out[1],Ie=out[2],_e=out[3]),oe.bezierCurveTo(Ce,$e,xe,Ie,pe,_e)))},z.prototype.pointAt=function(oe){return someVectorAt(this.shape,oe,!1)},z.prototype.tangentAt=function(oe){var ae=someVectorAt(this.shape,oe,!0);return normalize$1(ae,ae)},z}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function $(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return $}(),Arc=function($){__extends(z,$);function z(oe){return $.call(this,oe)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new ArcShape},z.prototype.buildPath=function(oe,ae){var le=ae.cx,ue=ae.cy,pe=Math.max(ae.r,0),_e=ae.startAngle,Ce=ae.endAngle,$e=ae.clockwise,xe=Math.cos(_e),Ie=Math.sin(_e);oe.moveTo(xe*pe+le,Ie*pe+ue),oe.arc(le,ue,pe,_e,Ce,!$e)},z}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="compound",oe}return z.prototype._updatePathDirty=function(){for(var oe=this.shape.paths,ae=this.shapeChanged(),le=0;le<oe.length;le++)ae=ae||oe[le].shapeChanged();ae&&this.dirtyShape()},z.prototype.beforeBrush=function(){this._updatePathDirty();for(var oe=this.shape.paths||[],ae=this.getGlobalScale(),le=0;le<oe.length;le++)oe[le].path||oe[le].createPathProxy(),oe[le].path.setScale(ae[0],ae[1],oe[le].segmentIgnoreThreshold)},z.prototype.buildPath=function(oe,ae){for(var le=ae.paths||[],ue=0;ue<le.length;ue++)le[ue].buildPath(oe,le[ue].shape,!0)},z.prototype.afterBrush=function(){for(var oe=this.shape.paths||[],ae=0;ae<oe.length;ae++)oe[ae].pathUpdated()},z.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},z}(Path$1);const CompoundPath$1=CompoundPath;var Gradient=function(){function $(z){this.colorStops=z||[]}return $.prototype.addColorStop=function(z,oe){this.colorStops.push({offset:z,color:oe})},$}();const Gradient$1=Gradient;var LinearGradient=function($){__extends(z,$);function z(oe,ae,le,ue,pe,_e){var Ce=$.call(this,pe)||this;return Ce.x=oe??0,Ce.y=ae??0,Ce.x2=le??1,Ce.y2=ue??0,Ce.type="linear",Ce.global=_e||!1,Ce}return z}(Gradient$1);const LinearGradient$1=LinearGradient;var RadialGradient=function($){__extends(z,$);function z(oe,ae,le,ue,pe){var _e=$.call(this,ue)||this;return _e.x=oe??.5,_e.y=ae??.5,_e.r=le??.5,_e.type="radial",_e.global=pe||!1,_e}return z}(Gradient$1);const RadialGradient$1=RadialGradient;var extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function $(z,oe){this._corners=[],this._axes=[],this._origin=[0,0];for(var ae=0;ae<4;ae++)this._corners[ae]=new Point$1;for(var ae=0;ae<2;ae++)this._axes[ae]=new Point$1;z&&this.fromBoundingRect(z,oe)}return $.prototype.fromBoundingRect=function(z,oe){var ae=this._corners,le=this._axes,ue=z.x,pe=z.y,_e=ue+z.width,Ce=pe+z.height;if(ae[0].set(ue,pe),ae[1].set(_e,pe),ae[2].set(_e,Ce),ae[3].set(ue,Ce),oe)for(var $e=0;$e<4;$e++)ae[$e].transform(oe);Point$1.sub(le[0],ae[1],ae[0]),Point$1.sub(le[1],ae[3],ae[0]),le[0].normalize(),le[1].normalize();for(var $e=0;$e<2;$e++)this._origin[$e]=le[$e].dot(ae[0])},$.prototype.intersect=function(z,oe){var ae=!0,le=!oe;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,z,minTv,maxTv,le,1)&&(ae=!1,le)||!this._intersectCheckOneSide(z,this,minTv,maxTv,le,-1)&&(ae=!1,le)||le||Point$1.copy(oe,ae?minTv:maxTv),ae},$.prototype._intersectCheckOneSide=function(z,oe,ae,le,ue,pe){for(var _e=!0,Ce=0;Ce<2;Ce++){var $e=this._axes[Ce];if(this._getProjMinMaxOnAxis(Ce,z._corners,extent),this._getProjMinMaxOnAxis(Ce,oe._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(_e=!1,ue)return _e;var xe=Math.abs(extent2[0]-extent[1]),Ie=Math.abs(extent[0]-extent2[1]);Math.min(xe,Ie)>le.len()&&(xe<Ie?Point$1.scale(le,$e,-xe*pe):Point$1.scale(le,$e,Ie*pe))}else if(ae){var xe=Math.abs(extent2[0]-extent[1]),Ie=Math.abs(extent[0]-extent2[1]);Math.min(xe,Ie)<ae.len()&&(xe<Ie?Point$1.scale(ae,$e,xe*pe):Point$1.scale(ae,$e,-Ie*pe))}}return _e},$.prototype._getProjMinMaxOnAxis=function(z,oe,ae){for(var le=this._axes[z],ue=this._origin,pe=oe[0].dot(le)+ue[z],_e=pe,Ce=pe,$e=1;$e<oe.length;$e++){var xe=oe[$e].dot(le)+ue[z];_e=Math.min(xe,_e),Ce=Math.max(xe,Ce)}ae[0]=_e,ae[1]=Ce},$}();const OrientedBoundingRect$1=OrientedBoundingRect;var m$2=[],IncrementalDisplayable=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.notClear=!0,oe.incremental=!0,oe._displayables=[],oe._temporaryDisplayables=[],oe._cursor=0,oe}return z.prototype.traverse=function(oe,ae){oe.call(ae,this)},z.prototype.useStyle=function(){this.style={}},z.prototype.getCursor=function(){return this._cursor},z.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},z.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},z.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},z.prototype.addDisplayable=function(oe,ae){ae?this._temporaryDisplayables.push(oe):this._displayables.push(oe),this.markRedraw()},z.prototype.addDisplayables=function(oe,ae){ae=ae||!1;for(var le=0;le<oe.length;le++)this.addDisplayable(oe[le],ae)},z.prototype.getDisplayables=function(){return this._displayables},z.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},z.prototype.eachPendingDisplayable=function(oe){for(var ae=this._cursor;ae<this._displayables.length;ae++)oe&&oe(this._displayables[ae]);for(var ae=0;ae<this._temporaryDisplayables.length;ae++)oe&&oe(this._temporaryDisplayables[ae])},z.prototype.update=function(){this.updateTransform();for(var oe=this._cursor;oe<this._displayables.length;oe++){var ae=this._displayables[oe];ae.parent=this,ae.update(),ae.parent=null}for(var oe=0;oe<this._temporaryDisplayables.length;oe++){var ae=this._temporaryDisplayables[oe];ae.parent=this,ae.update(),ae.parent=null}},z.prototype.getBoundingRect=function(){if(!this._rect){for(var oe=new BoundingRect$1(1/0,1/0,-1/0,-1/0),ae=0;ae<this._displayables.length;ae++){var le=this._displayables[ae],ue=le.getBoundingRect().clone();le.needLocalTransform()&&ue.applyTransform(le.getLocalTransform(m$2)),oe.union(ue)}this._rect=oe}return this._rect},z.prototype.contain=function(oe,ae){var le=this.transformCoordToLocal(oe,ae),ue=this.getBoundingRect();if(ue.contain(le[0],le[1]))for(var pe=0;pe<this._displayables.length;pe++){var _e=this._displayables[pe];if(_e.contain(oe,ae))return!0}return!1},z}(Displayable$1);const IncrementalDisplayable$1=IncrementalDisplayable;var transitionStore=makeInner();function getAnimationConfig($,z,oe,ae,le){var ue;if(z&&z.ecModel){var pe=z.ecModel.getUpdatePayload();ue=pe&&pe.animation}var _e=z&&z.isAnimationEnabled(),Ce=$==="update";if(_e){var $e=void 0,xe=void 0,Ie=void 0;ae?($e=retrieve2(ae.duration,200),xe=retrieve2(ae.easing,"cubicOut"),Ie=0):($e=z.getShallow(Ce?"animationDurationUpdate":"animationDuration"),xe=z.getShallow(Ce?"animationEasingUpdate":"animationEasing"),Ie=z.getShallow(Ce?"animationDelayUpdate":"animationDelay")),ue&&(ue.duration!=null&&($e=ue.duration),ue.easing!=null&&(xe=ue.easing),ue.delay!=null&&(Ie=ue.delay)),isFunction(Ie)&&(Ie=Ie(oe,le)),isFunction($e)&&($e=$e(oe));var Fe={duration:$e||0,delay:Ie,easing:xe};return Fe}else return null}function animateOrSetProps($,z,oe,ae,le,ue,pe){var _e=!1,Ce;isFunction(le)?(pe=ue,ue=le,le=null):isObject$3(le)&&(ue=le.cb,pe=le.during,_e=le.isFrom,Ce=le.removeOpt,le=le.dataIndex);var $e=$==="leave";$e||z.stopAnimation("leave");var xe=getAnimationConfig($,ae,le,$e?Ce||{}:null,ae&&ae.getAnimationDelayParams?ae.getAnimationDelayParams(z,le):null);if(xe&&xe.duration>0){var Ie=xe.duration,Fe=xe.delay,ze=xe.easing,Ue={duration:Ie,delay:Fe||0,easing:ze,done:ue,force:!!ue||!!pe,setToFinal:!$e,scope:$,during:pe};_e?z.animateFrom(oe,Ue):z.animateTo(oe,Ue)}else z.stopAnimation(),!_e&&z.attr(oe),pe&&pe(1),ue&&ue()}function updateProps$1($,z,oe,ae,le,ue){animateOrSetProps("update",$,z,oe,ae,le,ue)}function initProps($,z,oe,ae,le,ue){animateOrSetProps("enter",$,z,oe,ae,le,ue)}function isElementRemoved($){if(!$.__zr)return!0;for(var z=0;z<$.animators.length;z++){var oe=$.animators[z];if(oe.scope==="leave")return!0}return!1}function removeElement($,z,oe,ae,le,ue){isElementRemoved($)||animateOrSetProps("leave",$,z,oe,ae,le,ue)}function fadeOutDisplayable($,z,oe,ae){$.removeTextContent(),$.removeTextGuideLine(),removeElement($,{style:{opacity:0}},z,oe,ae)}function removeElementWithFadeOut($,z,oe){function ae(){$.parent&&$.parent.remove($)}$.isGroup?$.traverse(function(le){le.isGroup||fadeOutDisplayable(le,z,oe,ae)}):fadeOutDisplayable($,z,oe,ae)}function saveOldStyle($){transitionStore($).oldStyle=$.style}var mathMax$4=Math.max,mathMin$4=Math.min,_customShapeMap={};function extendShape($){return Path$1.extend($)}var extendPathFromString=extendFromString;function extendPath($,z){return extendPathFromString($,z)}function registerShape($,z){_customShapeMap[$]=z}function getShapeClass($){if(_customShapeMap.hasOwnProperty($))return _customShapeMap[$]}function makePath($,z,oe,ae){var le=createFromString($,z);return oe&&(ae==="center"&&(oe=centerGraphic(oe,le.getBoundingRect())),resizePath(le,oe)),le}function makeImage($,z,oe){var ae=new ZRImage$1({style:{image:$,x:z.x,y:z.y,width:z.width,height:z.height},onload:function(le){if(oe==="center"){var ue={width:le.width,height:le.height};ae.setStyle(centerGraphic(z,ue))}}});return ae}function centerGraphic($,z){var oe=z.width/z.height,ae=$.height*oe,le;ae<=$.width?le=$.height:(ae=$.width,le=ae/oe);var ue=$.x+$.width/2,pe=$.y+$.height/2;return{x:ue-ae/2,y:pe-le/2,width:ae,height:le}}var mergePath=mergePath$1;function resizePath($,z){if($.applyTransform){var oe=$.getBoundingRect(),ae=oe.calculateTransform(z);$.applyTransform(ae)}}function subPixelOptimizeLine($,z){return subPixelOptimizeLine$1($,$,{lineWidth:z}),$}function subPixelOptimizeRect($){return subPixelOptimizeRect$1($.shape,$.shape,$.style),$}var subPixelOptimize=subPixelOptimize$1;function getTransform$1($,z){for(var oe=identity([]);$&&$!==z;)mul(oe,$.getLocalTransform(),oe),$=$.parent;return oe}function applyTransform($,z,oe){return z&&!isArrayLike(z)&&(z=Transformable$1.getLocalTransform(z)),oe&&(z=invert([],z)),applyTransform$1([],$,z)}function transformDirection($,z,oe){var ae=z[4]===0||z[5]===0||z[0]===0?1:Math.abs(2*z[4]/z[0]),le=z[4]===0||z[5]===0||z[2]===0?1:Math.abs(2*z[4]/z[2]),ue=[$==="left"?-ae:$==="right"?ae:0,$==="top"?-le:$==="bottom"?le:0];return ue=applyTransform(ue,z,oe),Math.abs(ue[0])>Math.abs(ue[1])?ue[0]>0?"right":"left":ue[1]>0?"bottom":"top"}function isNotGroup($){return!$.isGroup}function isPath($){return $.shape!=null}function groupTransition($,z,oe){if(!$||!z)return;function ae(pe){var _e={};return pe.traverse(function(Ce){isNotGroup(Ce)&&Ce.anid&&(_e[Ce.anid]=Ce)}),_e}function le(pe){var _e={x:pe.x,y:pe.y,rotation:pe.rotation};return isPath(pe)&&(_e.shape=extend({},pe.shape)),_e}var ue=ae($);z.traverse(function(pe){if(isNotGroup(pe)&&pe.anid){var _e=ue[pe.anid];if(_e){var Ce=le(pe);pe.attr(le(_e)),updateProps$1(pe,Ce,oe,getECData(pe).dataIndex)}}})}function clipPointsByRect($,z){return map$2($,function(oe){var ae=oe[0];ae=mathMax$4(ae,z.x),ae=mathMin$4(ae,z.x+z.width);var le=oe[1];return le=mathMax$4(le,z.y),le=mathMin$4(le,z.y+z.height),[ae,le]})}function clipRectByRect($,z){var oe=mathMax$4($.x,z.x),ae=mathMin$4($.x+$.width,z.x+z.width),le=mathMax$4($.y,z.y),ue=mathMin$4($.y+$.height,z.y+z.height);if(ae>=oe&&ue>=le)return{x:oe,y:le,width:ae-oe,height:ue-le}}function createIcon($,z,oe){var ae=extend({rectHover:!0},z),le=ae.style={strokeNoScale:!0};if(oe=oe||{x:-1,y:-1,width:2,height:2},$)return $.indexOf("image://")===0?(le.image=$.slice(8),defaults(le,oe),new ZRImage$1(ae)):makePath($.replace("path://",""),ae,oe,"center")}function linePolygonIntersect($,z,oe,ae,le){for(var ue=0,pe=le[le.length-1];ue<le.length;ue++){var _e=le[ue];if(lineLineIntersect($,z,oe,ae,_e[0],_e[1],pe[0],pe[1]))return!0;pe=_e}}function lineLineIntersect($,z,oe,ae,le,ue,pe,_e){var Ce=oe-$,$e=ae-z,xe=pe-le,Ie=_e-ue,Fe=crossProduct2d(xe,Ie,Ce,$e);if(nearZero(Fe))return!1;var ze=$-le,Ue=z-ue,qe=crossProduct2d(ze,Ue,Ce,$e)/Fe;if(qe<0||qe>1)return!1;var At=crossProduct2d(ze,Ue,xe,Ie)/Fe;return!(At<0||At>1)}function crossProduct2d($,z,oe,ae){return $*ae-oe*z}function nearZero($){return $<=1e-6&&$>=-1e-6}function setTooltipConfig($){var z=$.itemTooltipOption,oe=$.componentModel,ae=$.itemName,le=isString(z)?{formatter:z}:z,ue=oe.mainType,pe=oe.componentIndex,_e={componentType:ue,name:ae,$vars:["name"]};_e[ue+"Index"]=pe;var Ce=$.formatterParamsExtra;Ce&&each$c(keys(Ce),function(xe){hasOwn(_e,xe)||(_e[xe]=Ce[xe],_e.$vars.push(xe))});var $e=getECData($.el);$e.componentMainType=ue,$e.componentIndex=pe,$e.tooltipConfig={name:ae,option:defaults({content:ae,formatterParams:_e},le)}}function traverseElement($,z){var oe;$.isGroup&&(oe=z($)),oe||$.traverse(z)}function traverseElements($,z){if($)if(isArray$1($))for(var oe=0;oe<$.length;oe++)traverseElement($[oe],z);else traverseElement($,z)}registerShape("circle",Circle$1);registerShape("ellipse",Ellipse$1);registerShape("sector",Sector$1);registerShape("ring",Ring$1);registerShape("polygon",Polygon$1);registerShape("polyline",Polyline$1);registerShape("rect",Rect$2);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);const graphic$1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,OrientedBoundingRect:OrientedBoundingRect$1,Path:Path$1,Point:Point$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,applyTransform,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,groupTransition,initProps,isElementRemoved,lineLineIntersect,linePolygonIntersect,makeImage,makePath,mergePath,registerShape,removeElement,removeElementWithFadeOut,resizePath,setTooltipConfig,subPixelOptimize,subPixelOptimizeLine,subPixelOptimizeRect,transformDirection,traverseElements,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"}));var EMPTY_OBJ={};function setLabelText($,z){for(var oe=0;oe<SPECIAL_STATES.length;oe++){var ae=SPECIAL_STATES[oe],le=z[ae],ue=$.ensureState(ae);ue.style=ue.style||{},ue.style.text=le}var pe=$.currentStates.slice();$.clearStates(!0),$.setStyle({text:z.normal}),$.useStates(pe,!0)}function getLabelText($,z,oe){var ae=$.labelFetcher,le=$.labelDataIndex,ue=$.labelDimIndex,pe=z.normal,_e;ae&&(_e=ae.getFormattedLabel(le,"normal",null,ue,pe&&pe.get("formatter"),oe!=null?{interpolatedValue:oe}:null)),_e==null&&(_e=isFunction($.defaultText)?$.defaultText(le,$,oe):$.defaultText);for(var Ce={normal:_e},$e=0;$e<SPECIAL_STATES.length;$e++){var xe=SPECIAL_STATES[$e],Ie=z[xe];Ce[xe]=retrieve2(ae?ae.getFormattedLabel(le,xe,null,ue,Ie&&Ie.get("formatter")):null,_e)}return Ce}function setLabelStyle($,z,oe,ae){oe=oe||EMPTY_OBJ;for(var le=$ instanceof ZRText$1,ue=!1,pe=0;pe<DISPLAY_STATES.length;pe++){var _e=z[DISPLAY_STATES[pe]];if(_e&&_e.getShallow("show")){ue=!0;break}}var Ce=le?$:$.getTextContent();if(ue){le||(Ce||(Ce=new ZRText$1,$.setTextContent(Ce)),$.stateProxy&&(Ce.stateProxy=$.stateProxy));var $e=getLabelText(oe,z),xe=z.normal,Ie=!!xe.getShallow("show"),Fe=createTextStyle$1(xe,ae&&ae.normal,oe,!1,!le);Fe.text=$e.normal,le||$.setTextConfig(createTextConfig(xe,oe,!1));for(var pe=0;pe<SPECIAL_STATES.length;pe++){var ze=SPECIAL_STATES[pe],_e=z[ze];if(_e){var Ue=Ce.ensureState(ze),qe=!!retrieve2(_e.getShallow("show"),Ie);if(qe!==Ie&&(Ue.ignore=!qe),Ue.style=createTextStyle$1(_e,ae&&ae[ze],oe,!0,!le),Ue.style.text=$e[ze],!le){var At=$.ensureState(ze);At.textConfig=createTextConfig(_e,oe,!0)}}}Ce.silent=!!xe.getShallow("silent"),Ce.style.x!=null&&(Fe.x=Ce.style.x),Ce.style.y!=null&&(Fe.y=Ce.style.y),Ce.ignore=!Ie,Ce.useStyle(Fe),Ce.dirty(),oe.enableTextSetter&&(labelInner(Ce).setLabelText=function(Lt){var hn=getLabelText(oe,z,Lt);setLabelText(Ce,hn)})}else Ce&&(Ce.ignore=!0);$.dirty()}function getLabelStatesModels($,z){z=z||"label";for(var oe={normal:$.getModel(z)},ae=0;ae<SPECIAL_STATES.length;ae++){var le=SPECIAL_STATES[ae];oe[le]=$.getModel([le,z])}return oe}function createTextStyle$1($,z,oe,ae,le){var ue={};return setTextStyleCommon(ue,$,oe,ae,le),z&&extend(ue,z),ue}function createTextConfig($,z,oe){z=z||{};var ae={},le,ue=$.getShallow("rotate"),pe=retrieve2($.getShallow("distance"),oe?null:5),_e=$.getShallow("offset");return le=$.getShallow("position")||(oe?null:"inside"),le==="outside"&&(le=z.defaultOutsidePosition||"top"),le!=null&&(ae.position=le),_e!=null&&(ae.offset=_e),ue!=null&&(ue*=Math.PI/180,ae.rotation=ue),pe!=null&&(ae.distance=pe),ae.outsideFill=$.get("color")==="inherit"?z.inheritColor||null:"auto",ae}function setTextStyleCommon($,z,oe,ae,le){oe=oe||EMPTY_OBJ;var ue=z.ecModel,pe=ue&&ue.option.textStyle,_e=getRichItemNames(z),Ce;if(_e){Ce={};for(var $e in _e)if(_e.hasOwnProperty($e)){var xe=z.getModel(["rich",$e]);setTokenTextStyle(Ce[$e]={},xe,pe,oe,ae,le,!1,!0)}}Ce&&($.rich=Ce);var Ie=z.get("overflow");Ie&&($.overflow=Ie);var Fe=z.get("minMargin");Fe!=null&&($.margin=Fe),setTokenTextStyle($,z,pe,oe,ae,le,!0,!1)}function getRichItemNames($){for(var z;$&&$!==$.ecModel;){var oe=($.option||EMPTY_OBJ).rich;if(oe){z=z||{};for(var ae=keys(oe),le=0;le<ae.length;le++){var ue=ae[le];z[ue]=1}}$=$.parentModel}return z}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle($,z,oe,ae,le,ue,pe,_e){oe=!le&&oe||EMPTY_OBJ;var Ce=ae&&ae.inheritColor,$e=z.getShallow("color"),xe=z.getShallow("textBorderColor"),Ie=retrieve2(z.getShallow("opacity"),oe.opacity);($e==="inherit"||$e==="auto")&&(Ce?$e=Ce:$e=null),(xe==="inherit"||xe==="auto")&&(Ce?xe=Ce:xe=null),ue||($e=$e||oe.color,xe=xe||oe.textBorderColor),$e!=null&&($.fill=$e),xe!=null&&($.stroke=xe);var Fe=retrieve2(z.getShallow("textBorderWidth"),oe.textBorderWidth);Fe!=null&&($.lineWidth=Fe);var ze=retrieve2(z.getShallow("textBorderType"),oe.textBorderType);ze!=null&&($.lineDash=ze);var Ue=retrieve2(z.getShallow("textBorderDashOffset"),oe.textBorderDashOffset);Ue!=null&&($.lineDashOffset=Ue),!le&&Ie==null&&!_e&&(Ie=ae&&ae.defaultOpacity),Ie!=null&&($.opacity=Ie),!le&&!ue&&$.fill==null&&ae.inheritColor&&($.fill=ae.inheritColor);for(var qe=0;qe<TEXT_PROPS_WITH_GLOBAL.length;qe++){var At=TEXT_PROPS_WITH_GLOBAL[qe],Lt=retrieve2(z.getShallow(At),oe[At]);Lt!=null&&($[At]=Lt)}for(var qe=0;qe<TEXT_PROPS_SELF.length;qe++){var At=TEXT_PROPS_SELF[qe],Lt=z.getShallow(At);Lt!=null&&($[At]=Lt)}if($.verticalAlign==null){var hn=z.getShallow("baseline");hn!=null&&($.verticalAlign=hn)}if(!pe||!ae.disableBox){for(var qe=0;qe<TEXT_PROPS_BOX.length;qe++){var At=TEXT_PROPS_BOX[qe],Lt=z.getShallow(At);Lt!=null&&($[At]=Lt)}var vn=z.getShallow("borderType");vn!=null&&($.borderDash=vn),($.backgroundColor==="auto"||$.backgroundColor==="inherit")&&Ce&&($.backgroundColor=Ce),($.borderColor==="auto"||$.borderColor==="inherit")&&Ce&&($.borderColor=Ce)}}function getFont($,z){var oe=z&&z.getModel("textStyle");return trim$1([$.fontStyle||oe&&oe.getShallow("fontStyle")||"",$.fontWeight||oe&&oe.getShallow("fontWeight")||"",($.fontSize||oe&&oe.getShallow("fontSize")||12)+"px",$.fontFamily||oe&&oe.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation($,z,oe,ae){if($){var le=labelInner($);le.prevValue=le.value,le.value=oe;var ue=z.normal;le.valueAnimation=ue.get("valueAnimation"),le.valueAnimation&&(le.precision=ue.get("precision"),le.defaultInterpolatedText=ae,le.statesModels=z)}}var PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function $(){}return $.prototype.getTextColor=function(z){var oe=this.ecModel;return this.getShallow("color")||(!z&&oe?oe.get(PATH_COLOR):null)},$.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},$.prototype.getTextRect=function(z){for(var oe={text:z,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},ae=0;ae<textStyleParams.length;ae++)oe[textStyleParams[ae]]=this.getShallow(textStyleParams[ae]);return tmpText.useStyle(oe),tmpText.update(),tmpText.getBoundingRect()},$}();const TextStyleMixin$1=TextStyleMixin;var LINE_STYLE_KEY_MAP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],getLineStyle=makeStyleMapper(LINE_STYLE_KEY_MAP),LineStyleMixin=function(){function $(){}return $.prototype.getLineStyle=function(z){return getLineStyle(this,z)},$}(),ITEM_STYLE_KEY_MAP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],getItemStyle=makeStyleMapper(ITEM_STYLE_KEY_MAP),ItemStyleMixin=function(){function $(){}return $.prototype.getItemStyle=function(z,oe){return getItemStyle(this,z,oe)},$}(),Model=function(){function $(z,oe,ae){this.parentModel=oe,this.ecModel=ae,this.option=z}return $.prototype.init=function(z,oe,ae){},$.prototype.mergeOption=function(z,oe){merge(this.option,z,!0)},$.prototype.get=function(z,oe){return z==null?this.option:this._doGet(this.parsePath(z),!oe&&this.parentModel)},$.prototype.getShallow=function(z,oe){var ae=this.option,le=ae==null?ae:ae[z];if(le==null&&!oe){var ue=this.parentModel;ue&&(le=ue.getShallow(z))}return le},$.prototype.getModel=function(z,oe){var ae=z!=null,le=ae?this.parsePath(z):null,ue=ae?this._doGet(le):this.option;return oe=oe||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(le)),new $(ue,oe,this.ecModel)},$.prototype.isEmpty=function(){return this.option==null},$.prototype.restoreData=function(){},$.prototype.clone=function(){var z=this.constructor;return new z(clone$3(this.option))},$.prototype.parsePath=function(z){return typeof z=="string"?z.split("."):z},$.prototype.resolveParentPath=function(z){return z},$.prototype.isAnimationEnabled=function(){if(!env$1.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},$.prototype._doGet=function(z,oe){var ae=this.option;if(!z)return ae;for(var le=0;le<z.length&&!(z[le]&&(ae=ae&&typeof ae=="object"?ae[z[le]]:null,ae==null));le++);return ae==null&&oe&&(ae=oe._doGet(this.resolveParentPath(z),oe.parentModel)),ae},$}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);const Model$1=Model;var base=Math.round(Math.random()*10);function getUID($){return[$||"",base++].join("_")}function enableSubTypeDefaulter($){var z={};$.registerSubTypeDefaulter=function(oe,ae){var le=parseClassType(oe);z[le.main]=ae},$.determineSubType=function(oe,ae){var le=ae.type;if(!le){var ue=parseClassType(oe).main;$.hasSubTypes(oe)&&z[ue]&&(le=z[ue](ae))}return le}}function enableTopologicalTravel($,z){$.topologicalTravel=function(ue,pe,_e,Ce){if(!ue.length)return;var $e=oe(pe),xe=$e.graph,Ie=$e.noEntryList,Fe={};for(each$c(ue,function(hn){Fe[hn]=!0});Ie.length;){var ze=Ie.pop(),Ue=xe[ze],qe=!!Fe[ze];qe&&(_e.call(Ce,ze,Ue.originalDeps.slice()),delete Fe[ze]),each$c(Ue.successor,qe?Lt:At)}each$c(Fe,function(){var hn="";throw new Error(hn)});function At(hn){xe[hn].entryCount--,xe[hn].entryCount===0&&Ie.push(hn)}function Lt(hn){Fe[hn]=!0,At(hn)}};function oe(ue){var pe={},_e=[];return each$c(ue,function(Ce){var $e=ae(pe,Ce),xe=$e.originalDeps=z(Ce),Ie=le(xe,ue);$e.entryCount=Ie.length,$e.entryCount===0&&_e.push(Ce),each$c(Ie,function(Fe){indexOf($e.predecessor,Fe)<0&&$e.predecessor.push(Fe);var ze=ae(pe,Fe);indexOf(ze.successor,Fe)<0&&ze.successor.push(Ce)})}),{graph:pe,noEntryList:_e}}function ae(ue,pe){return ue[pe]||(ue[pe]={predecessor:[],successor:[]}),ue[pe]}function le(ue,pe){var _e=[];return each$c(ue,function(Ce){indexOf(pe,Ce)>=0&&_e.push(Ce)}),_e}}function inheritDefaultOption($,z){return merge(merge({},$,!0),z,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var $=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return $.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale($,z){$=$.toUpperCase(),localeModels[$]=new Model$1(z),localeStorage[$]=z}function createLocaleObject($){if(isString($)){var z=localeStorage[$.toUpperCase()]||{};return $===LOCALE_ZH||$===LOCALE_EN?clone$3(z):merge(clone$3(z),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3($),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel($){return localeModels[$]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad($,z){return $+="","0000".substr(0,z-$.length)+$}function getPrimaryTimeUnit($){switch($){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return $}}function isPrimaryTimeUnit($){return $===getPrimaryTimeUnit($)}function getDefaultFormatPrecisionOfInterval($){switch($){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1($,z,oe,ae){var le=parseDate($),ue=le[fullYearGetterName(oe)](),pe=le[monthGetterName(oe)]()+1,_e=Math.floor((pe-1)/3)+1,Ce=le[dateGetterName(oe)](),$e=le["get"+(oe?"UTC":"")+"Day"](),xe=le[hoursGetterName(oe)](),Ie=(xe-1)%12+1,Fe=le[minutesGetterName(oe)](),ze=le[secondsGetterName(oe)](),Ue=le[millisecondsGetterName(oe)](),qe=ae instanceof Model$1?ae:getLocaleModel(ae||SYSTEM_LANG)||getDefaultLocaleModel(),At=qe.getModel("time"),Lt=At.get("month"),hn=At.get("monthAbbr"),vn=At.get("dayOfWeek"),_n=At.get("dayOfWeekAbbr");return(z||"").replace(/{yyyy}/g,ue+"").replace(/{yy}/g,ue%100+"").replace(/{Q}/g,_e+"").replace(/{MMMM}/g,Lt[pe-1]).replace(/{MMM}/g,hn[pe-1]).replace(/{MM}/g,pad(pe,2)).replace(/{M}/g,pe+"").replace(/{dd}/g,pad(Ce,2)).replace(/{d}/g,Ce+"").replace(/{eeee}/g,vn[$e]).replace(/{ee}/g,_n[$e]).replace(/{e}/g,$e+"").replace(/{HH}/g,pad(xe,2)).replace(/{H}/g,xe+"").replace(/{hh}/g,pad(Ie+"",2)).replace(/{h}/g,Ie+"").replace(/{mm}/g,pad(Fe,2)).replace(/{m}/g,Fe+"").replace(/{ss}/g,pad(ze,2)).replace(/{s}/g,ze+"").replace(/{SSS}/g,pad(Ue,3)).replace(/{S}/g,Ue+"")}function leveledFormat($,z,oe,ae,le){var ue=null;if(isString(oe))ue=oe;else if(isFunction(oe))ue=oe($.value,z,{level:$.level});else{var pe=extend({},defaultLeveledFormatter);if($.level>0)for(var _e=0;_e<primaryTimeUnits.length;++_e)pe[primaryTimeUnits[_e]]="{primary|"+pe[primaryTimeUnits[_e]]+"}";var Ce=oe?oe.inherit===!1?oe:defaults(oe,pe):pe,$e=getUnitFromValue($.value,le);if(Ce[$e])ue=Ce[$e];else if(Ce.inherit){for(var xe=timeUnits.indexOf($e),_e=xe-1;_e>=0;--_e)if(Ce[$e]){ue=Ce[$e];break}ue=ue||pe.none}if(isArray$1(ue)){var Ie=$.level==null?0:$.level>=0?$.level:ue.length+$.level;Ie=Math.min(Ie,ue.length-1),ue=ue[Ie]}}return format$1(new Date($.value),ue,le,ae)}function getUnitFromValue($,z){var oe=parseDate($),ae=oe[monthGetterName(z)]()+1,le=oe[dateGetterName(z)](),ue=oe[hoursGetterName(z)](),pe=oe[minutesGetterName(z)](),_e=oe[secondsGetterName(z)](),Ce=oe[millisecondsGetterName(z)](),$e=Ce===0,xe=$e&&_e===0,Ie=xe&&pe===0,Fe=Ie&&ue===0,ze=Fe&&le===1,Ue=ze&&ae===1;return Ue?"year":ze?"month":Fe?"day":Ie?"hour":xe?"minute":$e?"second":"millisecond"}function getUnitValue($,z,oe){var ae=isNumber($)?parseDate($):$;switch(z=z||getUnitFromValue($,oe),z){case"year":return ae[fullYearGetterName(oe)]();case"half-year":return ae[monthGetterName(oe)]()>=6?1:0;case"quarter":return Math.floor((ae[monthGetterName(oe)]()+1)/4);case"month":return ae[monthGetterName(oe)]();case"day":return ae[dateGetterName(oe)]();case"half-day":return ae[hoursGetterName(oe)]()/24;case"hour":return ae[hoursGetterName(oe)]();case"minute":return ae[minutesGetterName(oe)]();case"second":return ae[secondsGetterName(oe)]();case"millisecond":return ae[millisecondsGetterName(oe)]()}}function fullYearGetterName($){return $?"getUTCFullYear":"getFullYear"}function monthGetterName($){return $?"getUTCMonth":"getMonth"}function dateGetterName($){return $?"getUTCDate":"getDate"}function hoursGetterName($){return $?"getUTCHours":"getHours"}function minutesGetterName($){return $?"getUTCMinutes":"getMinutes"}function secondsGetterName($){return $?"getUTCSeconds":"getSeconds"}function millisecondsGetterName($){return $?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName($){return $?"setUTCFullYear":"setFullYear"}function monthSetterName($){return $?"setUTCMonth":"setMonth"}function dateSetterName($){return $?"setUTCDate":"setDate"}function hoursSetterName($){return $?"setUTCHours":"setHours"}function minutesSetterName($){return $?"setUTCMinutes":"setMinutes"}function secondsSetterName($){return $?"setUTCSeconds":"setSeconds"}function millisecondsSetterName($){return $?"setUTCMilliseconds":"setMilliseconds"}function getTextRect($,z,oe,ae,le,ue,pe,_e){var Ce=new ZRText$1({style:{text:$,font:z,align:oe,verticalAlign:ae,padding:le,rich:ue,overflow:pe?"truncate":null,lineHeight:_e}});return Ce.getBoundingRect()}function addCommas($){if(!isNumeric($))return isString($)?$:"-";var z=($+"").split(".");return z[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(z.length>1?"."+z[1]:"")}function toCamelCase($,z){return $=($||"").toLowerCase().replace(/-(.)/g,function(oe,ae){return ae.toUpperCase()}),z&&$&&($=$.charAt(0).toUpperCase()+$.slice(1)),$}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable($,z,oe){var ae="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function le(xe){return xe&&trim$1(xe)?xe:"-"}function ue(xe){return!!(xe!=null&&!isNaN(xe)&&isFinite(xe))}var pe=z==="time",_e=$ instanceof Date;if(pe||_e){var Ce=pe?parseDate($):$;if(isNaN(+Ce)){if(_e)return"-"}else return format$1(Ce,ae,oe)}if(z==="ordinal")return isStringSafe($)?le($):isNumber($)&&ue($)?$+"":"-";var $e=numericToNumber($);return ue($e)?addCommas($e):isStringSafe($)?le($):typeof $=="boolean"?$+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function($,z){return"{"+$+(z??"")+"}"};function formatTpl($,z,oe){isArray$1(z)||(z=[z]);var ae=z.length;if(!ae)return"";for(var le=z[0].$vars||[],ue=0;ue<le.length;ue++){var pe=TPL_VAR_ALIAS[ue];$=$.replace(wrapVar(pe),wrapVar(pe,0))}for(var _e=0;_e<ae;_e++)for(var Ce=0;Ce<le.length;Ce++){var $e=z[_e][le[Ce]];$=$.replace(wrapVar(TPL_VAR_ALIAS[Ce],_e),oe?encodeHTML($e):$e)}return $}function getTooltipMarker($,z){var oe=isString($)?{color:$,extraCssText:z}:$||{},ae=oe.color,le=oe.type;z=oe.extraCssText;var ue=oe.renderMode||"html";if(!ae)return"";if(ue==="html")return le==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+encodeHTML(ae)+";"+(z||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(ae)+";"+(z||"")+'"></span>';var pe=oe.markerId||"markerX";return{renderMode:ue,content:"{"+pe+"|} ",style:le==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:ae}:{width:10,height:10,borderRadius:5,backgroundColor:ae}}}function formatTime($,z,oe){($==="week"||$==="month"||$==="quarter"||$==="half-year"||$==="year")&&($=`MM-dd
|
||
yyyy`);var ae=parseDate(z),le=oe?"getUTC":"get",ue=ae[le+"FullYear"](),pe=ae[le+"Month"]()+1,_e=ae[le+"Date"](),Ce=ae[le+"Hours"](),$e=ae[le+"Minutes"](),xe=ae[le+"Seconds"](),Ie=ae[le+"Milliseconds"]();return $=$.replace("MM",pad(pe,2)).replace("M",pe).replace("yyyy",ue).replace("yy",pad(ue%100+"",2)).replace("dd",pad(_e,2)).replace("d",_e).replace("hh",pad(Ce,2)).replace("h",Ce).replace("mm",pad($e,2)).replace("m",$e).replace("ss",pad(xe,2)).replace("s",xe).replace("SSS",pad(Ie,3)),$}function capitalFirst($){return $&&$.charAt(0).toUpperCase()+$.substr(1)}function convertToColorString($,z){return z=z||"transparent",isString($)?$:isObject$3($)&&$.colorStops&&($.colorStops[0]||{}).color||z}function windowOpen($,z){if(z==="_blank"||z==="blank"){var oe=window.open();oe.opener=null,oe.location.href=$}else window.open($,z)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout($,z,oe,ae,le){var ue=0,pe=0;ae==null&&(ae=1/0),le==null&&(le=1/0);var _e=0;z.eachChild(function(Ce,$e){var xe=Ce.getBoundingRect(),Ie=z.childAt($e+1),Fe=Ie&&Ie.getBoundingRect(),ze,Ue;if($==="horizontal"){var qe=xe.width+(Fe?-Fe.x+xe.x:0);ze=ue+qe,ze>ae||Ce.newline?(ue=0,ze=qe,pe+=_e+oe,_e=xe.height):_e=Math.max(_e,xe.height)}else{var At=xe.height+(Fe?-Fe.y+xe.y:0);Ue=pe+At,Ue>le||Ce.newline?(ue+=_e+oe,pe=0,Ue=At,_e=xe.width):_e=Math.max(_e,xe.width)}Ce.newline||(Ce.x=ue,Ce.y=pe,Ce.markRedraw(),$==="horizontal"?ue=ze+oe:pe=Ue+oe)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect($,z,oe){oe=normalizeCssArray(oe||0);var ae=z.width,le=z.height,ue=parsePercent($.left,ae),pe=parsePercent($.top,le),_e=parsePercent($.right,ae),Ce=parsePercent($.bottom,le),$e=parsePercent($.width,ae),xe=parsePercent($.height,le),Ie=oe[2]+oe[0],Fe=oe[1]+oe[3],ze=$.aspect;switch(isNaN($e)&&($e=ae-_e-Fe-ue),isNaN(xe)&&(xe=le-Ce-Ie-pe),ze!=null&&(isNaN($e)&&isNaN(xe)&&(ze>ae/le?$e=ae*.8:xe=le*.8),isNaN($e)&&($e=ze*xe),isNaN(xe)&&(xe=$e/ze)),isNaN(ue)&&(ue=ae-_e-$e-Fe),isNaN(pe)&&(pe=le-Ce-xe-Ie),$.left||$.right){case"center":ue=ae/2-$e/2-oe[3];break;case"right":ue=ae-$e-Fe;break}switch($.top||$.bottom){case"middle":case"center":pe=le/2-xe/2-oe[0];break;case"bottom":pe=le-xe-Ie;break}ue=ue||0,pe=pe||0,isNaN($e)&&($e=ae-Fe-ue-(_e||0)),isNaN(xe)&&(xe=le-Ie-pe-(Ce||0));var Ue=new BoundingRect$1(ue+oe[3],pe+oe[0],$e,xe);return Ue.margin=oe,Ue}function positionElement($,z,oe,ae,le,ue){var pe=!le||!le.hv||le.hv[0],_e=!le||!le.hv||le.hv[1],Ce=le&&le.boundingMode||"all";if(ue=ue||$,ue.x=$.x,ue.y=$.y,!pe&&!_e)return!1;var $e;if(Ce==="raw")$e=$.type==="group"?new BoundingRect$1(0,0,+z.width||0,+z.height||0):$.getBoundingRect();else if($e=$.getBoundingRect(),$.needLocalTransform()){var xe=$.getLocalTransform();$e=$e.clone(),$e.applyTransform(xe)}var Ie=getLayoutRect(defaults({width:$e.width,height:$e.height},z),oe,ae),Fe=pe?Ie.x-$e.x:0,ze=_e?Ie.y-$e.y:0;return Ce==="raw"?(ue.x=Fe,ue.y=ze):(ue.x+=Fe,ue.y+=ze),ue===$&&$.markRedraw(),!0}function fetchLayoutMode($){var z=$.layoutMode||$.constructor.layoutMode;return isObject$3(z)?z:z?{type:z}:null}function mergeLayoutParam($,z,oe){var ae=oe&&oe.ignoreSize;!isArray$1(ae)&&(ae=[ae,ae]);var le=pe(HV_NAMES[0],0),ue=pe(HV_NAMES[1],1);$e(HV_NAMES[0],$,le),$e(HV_NAMES[1],$,ue);function pe(xe,Ie){var Fe={},ze=0,Ue={},qe=0,At=2;if(each$b(xe,function(vn){Ue[vn]=$[vn]}),each$b(xe,function(vn){_e(z,vn)&&(Fe[vn]=Ue[vn]=z[vn]),Ce(Fe,vn)&&ze++,Ce(Ue,vn)&&qe++}),ae[Ie])return Ce(z,xe[1])?Ue[xe[2]]=null:Ce(z,xe[2])&&(Ue[xe[1]]=null),Ue;if(qe===At||!ze)return Ue;if(ze>=At)return Fe;for(var Lt=0;Lt<xe.length;Lt++){var hn=xe[Lt];if(!_e(Fe,hn)&&_e($,hn)){Fe[hn]=$[hn];break}}return Fe}function _e(xe,Ie){return xe.hasOwnProperty(Ie)}function Ce(xe,Ie){return xe[Ie]!=null&&xe[Ie]!=="auto"}function $e(xe,Ie,Fe){each$b(xe,function(ze){Ie[ze]=Fe[ze]})}}function getLayoutParams($){return copyLayoutParams({},$)}function copyLayoutParams($,z){return z&&$&&each$b(LOCATION_PARAMS,function(oe){z.hasOwnProperty(oe)&&($[oe]=z[oe])}),$}var inner$c=makeInner(),ComponentModel=function($){__extends(z,$);function z(oe,ae,le){var ue=$.call(this,oe,ae,le)||this;return ue.uid=getUID("ec_cpt_model"),ue}return z.prototype.init=function(oe,ae,le){this.mergeDefaultAndTheme(oe,le)},z.prototype.mergeDefaultAndTheme=function(oe,ae){var le=fetchLayoutMode(this),ue=le?getLayoutParams(oe):{},pe=ae.getTheme();merge(oe,pe.get(this.mainType)),merge(oe,this.getDefaultOption()),le&&mergeLayoutParam(oe,ue,le)},z.prototype.mergeOption=function(oe,ae){merge(this.option,oe,!0);var le=fetchLayoutMode(this);le&&mergeLayoutParam(this.option,oe,le)},z.prototype.optionUpdated=function(oe,ae){},z.prototype.getDefaultOption=function(){var oe=this.constructor;if(!isExtendedClass(oe))return oe.defaultOption;var ae=inner$c(this);if(!ae.defaultOption){for(var le=[],ue=oe;ue;){var pe=ue.prototype.defaultOption;pe&&le.push(pe),ue=ue.superClass}for(var _e={},Ce=le.length-1;Ce>=0;Ce--)_e=merge(_e,le[Ce],!0);ae.defaultOption=_e}return ae.defaultOption},z.prototype.getReferringComponents=function(oe,ae){var le=oe+"Index",ue=oe+"Id";return queryReferringComponents(this.ecModel,oe,{index:this.get(le,!0),id:this.get(ue,!0)},ae)},z.prototype.getBoxLayoutParams=function(){var oe=this;return{left:oe.get("left"),top:oe.get("top"),right:oe.get("right"),bottom:oe.get("bottom"),width:oe.get("width"),height:oe.get("height")}},z.prototype.getZLevelKey=function(){return""},z.prototype.setZLevel=function(oe){this.option.zlevel=oe},z.protoInitialize=function(){var oe=z.prototype;oe.type="component",oe.id="",oe.name="",oe.mainType="",oe.subType="",oe.componentIndex=0}(),z}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies($){var z=[];return each$c(ComponentModel.getClassesByMainType($),function(oe){z=z.concat(oe.dependencies||oe.prototype.dependencies||[])}),z=map$2(z,function(oe){return parseClassType(oe).main}),$!=="dataset"&&indexOf(z,"dataset")<=0&&z.unshift("dataset"),z}const ComponentModel$1=ComponentModel;var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter($){innerGlobalModel($).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys($,z,oe){var ae={},le=querySeriesUpstreamDatasetModel(z);if(!le||!$)return ae;var ue=[],pe=[],_e=z.ecModel,Ce=innerGlobalModel(_e).datasetMap,$e=le.uid+"_"+oe.seriesLayoutBy,xe,Ie;$=$.slice(),each$c($,function(qe,At){var Lt=isObject$3(qe)?qe:$[At]={name:qe};Lt.type==="ordinal"&&xe==null&&(xe=At,Ie=Ue(Lt)),ae[Lt.name]=[]});var Fe=Ce.get($e)||Ce.set($e,{categoryWayDim:Ie,valueWayDim:0});each$c($,function(qe,At){var Lt=qe.name,hn=Ue(qe);if(xe==null){var vn=Fe.valueWayDim;ze(ae[Lt],vn,hn),ze(pe,vn,hn),Fe.valueWayDim+=hn}else if(xe===At)ze(ae[Lt],0,hn),ze(ue,0,hn);else{var vn=Fe.categoryWayDim;ze(ae[Lt],vn,hn),ze(pe,vn,hn),Fe.categoryWayDim+=hn}});function ze(qe,At,Lt){for(var hn=0;hn<Lt;hn++)qe.push(At+hn)}function Ue(qe){var At=qe.dimsDef;return At?At.length:1}return ue.length&&(ae.itemName=ue),pe.length&&(ae.seriesName=pe),ae}function makeSeriesEncodeForNameBased($,z,oe){var ae={},le=querySeriesUpstreamDatasetModel($);if(!le)return ae;var ue=z.sourceFormat,pe=z.dimensionsDefine,_e;(ue===SOURCE_FORMAT_OBJECT_ROWS||ue===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(pe,function(xe,Ie){(isObject$3(xe)?xe.name:xe)==="name"&&(_e=Ie)});var Ce=function(){for(var xe={},Ie={},Fe=[],ze=0,Ue=Math.min(5,oe);ze<Ue;ze++){var qe=doGuessOrdinal(z.data,ue,z.seriesLayoutBy,pe,z.startIndex,ze);Fe.push(qe);var At=qe===BE_ORDINAL.Not;if(At&&xe.v==null&&ze!==_e&&(xe.v=ze),(xe.n==null||xe.n===xe.v||!At&&Fe[xe.n]===BE_ORDINAL.Not)&&(xe.n=ze),Lt(xe)&&Fe[xe.n]!==BE_ORDINAL.Not)return xe;At||(qe===BE_ORDINAL.Might&&Ie.v==null&&ze!==_e&&(Ie.v=ze),(Ie.n==null||Ie.n===Ie.v)&&(Ie.n=ze))}function Lt(hn){return hn.v!=null&&hn.n!=null}return Lt(xe)?xe:Lt(Ie)?Ie:null}();if(Ce){ae.value=[Ce.v];var $e=_e??Ce.n;ae.itemName=[$e],ae.seriesName=[$e]}return ae}function querySeriesUpstreamDatasetModel($){var z=$.get("data",!0);if(!z)return queryReferringComponents($.ecModel,"dataset",{index:$.get("datasetIndex",!0),id:$.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels($){return!$.get("transform",!0)&&!$.get("fromTransformResult",!0)?[]:queryReferringComponents($.ecModel,"dataset",{index:$.get("fromDatasetIndex",!0),id:$.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal($,z){return doGuessOrdinal($.data,$.sourceFormat,$.seriesLayoutBy,$.dimensionsDefine,$.startIndex,z)}function doGuessOrdinal($,z,oe,ae,le,ue){var pe,_e=5;if(isTypedArray($))return BE_ORDINAL.Not;var Ce,$e;if(ae){var xe=ae[ue];isObject$3(xe)?(Ce=xe.name,$e=xe.type):isString(xe)&&(Ce=xe)}if($e!=null)return $e==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(z===SOURCE_FORMAT_ARRAY_ROWS){var Ie=$;if(oe===SERIES_LAYOUT_BY_ROW){for(var Fe=Ie[ue],ze=0;ze<(Fe||[]).length&&ze<_e;ze++)if((pe=_n(Fe[le+ze]))!=null)return pe}else for(var ze=0;ze<Ie.length&&ze<_e;ze++){var Ue=Ie[le+ze];if(Ue&&(pe=_n(Ue[ue]))!=null)return pe}}else if(z===SOURCE_FORMAT_OBJECT_ROWS){var qe=$;if(!Ce)return BE_ORDINAL.Not;for(var ze=0;ze<qe.length&&ze<_e;ze++){var At=qe[ze];if(At&&(pe=_n(At[Ce]))!=null)return pe}}else if(z===SOURCE_FORMAT_KEYED_COLUMNS){var Lt=$;if(!Ce)return BE_ORDINAL.Not;var Fe=Lt[Ce];if(!Fe||isTypedArray(Fe))return BE_ORDINAL.Not;for(var ze=0;ze<Fe.length&&ze<_e;ze++)if((pe=_n(Fe[ze]))!=null)return pe}else if(z===SOURCE_FORMAT_ORIGINAL)for(var hn=$,ze=0;ze<hn.length&&ze<_e;ze++){var At=hn[ze],vn=getDataItemValue(At);if(!isArray$1(vn))return BE_ORDINAL.Not;if((pe=_n(vn[ue]))!=null)return pe}function _n(bn){var Sn=isString(bn);if(bn!=null&&isFinite(bn)&&bn!=="")return Sn?BE_ORDINAL.Might:BE_ORDINAL.Not;if(Sn&&bn!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function registerInternalOptionCreator($,z){assert(internalOptionCreatorMap.get($)==null&&z),internalOptionCreatorMap.set($,z)}function concatInternalOptions($,z,oe){var ae=internalOptionCreatorMap.get(z);if(!ae)return oe;var le=ae($);return le?oe.concat(le):oe}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function $(){}return $.prototype.getColorFromPalette=function(z,oe,ae){var le=normalizeToArray(this.get("color",!0)),ue=this.get("colorLayer",!0);return getFromPalette(this,innerColor,le,ue,z,oe,ae)},$.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},$}();function getNearestPalette($,z){for(var oe=$.length,ae=0;ae<oe;ae++)if($[ae].length>z)return $[ae];return $[oe-1]}function getFromPalette($,z,oe,ae,le,ue,pe){ue=ue||$;var _e=z(ue),Ce=_e.paletteIdx||0,$e=_e.paletteNameMap=_e.paletteNameMap||{};if($e.hasOwnProperty(le))return $e[le];var xe=pe==null||!ae?oe:getNearestPalette(ae,pe);if(xe=xe||oe,!(!xe||!xe.length)){var Ie=xe[Ce];return le&&($e[le]=Ie),_e.paletteIdx=(Ce+1)%xe.length,Ie}}function clearPalette($,z){z($).paletteIdx=0,z($).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(oe,ae,le,ue,pe,_e){ue=ue||{},this.option=null,this._theme=new Model$1(ue),this._locale=new Model$1(pe),this._optionManager=_e},z.prototype.setOption=function(oe,ae,le){var ue=normalizeSetOptionInput(ae);this._optionManager.setOption(oe,le,ue),this._resetOption(null,ue)},z.prototype.resetOption=function(oe,ae){return this._resetOption(oe,normalizeSetOptionInput(ae))},z.prototype._resetOption=function(oe,ae){var le=!1,ue=this._optionManager;if(!oe||oe==="recreate"){var pe=ue.mountOption(oe==="recreate");!this.option||oe==="recreate"?initBase(this,pe):(this.restoreData(),this._mergeOption(pe,ae)),le=!0}if((oe==="timeline"||oe==="media")&&this.restoreData(),!oe||oe==="recreate"||oe==="timeline"){var _e=ue.getTimelineOption(this);_e&&(le=!0,this._mergeOption(_e,ae))}if(!oe||oe==="recreate"||oe==="media"){var Ce=ue.getMediaOption(this);Ce.length&&each$c(Ce,function($e){le=!0,this._mergeOption($e,ae)},this)}return le},z.prototype.mergeOption=function(oe){this._mergeOption(oe,null)},z.prototype._mergeOption=function(oe,ae){var le=this.option,ue=this._componentsMap,pe=this._componentsCount,_e=[],Ce=createHashMap(),$e=ae&&ae.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(oe,function(Ie,Fe){Ie!=null&&(ComponentModel$1.hasClass(Fe)?Fe&&(_e.push(Fe),Ce.set(Fe,!0)):le[Fe]=le[Fe]==null?clone$3(Ie):merge(le[Fe],Ie,!0))}),$e&&$e.each(function(Ie,Fe){ComponentModel$1.hasClass(Fe)&&!Ce.get(Fe)&&(_e.push(Fe),Ce.set(Fe,!0))}),ComponentModel$1.topologicalTravel(_e,ComponentModel$1.getAllClassMainTypes(),xe,this);function xe(Ie){var Fe=concatInternalOptions(this,Ie,normalizeToArray(oe[Ie])),ze=ue.get(Ie),Ue=ze?$e&&$e.get(Ie)?"replaceMerge":"normalMerge":"replaceAll",qe=mappingToExists(ze,Fe,Ue);setComponentTypeToKeyInfo(qe,Ie,ComponentModel$1),le[Ie]=null,ue.set(Ie,null),pe.set(Ie,0);var At=[],Lt=[],hn=0,vn;each$c(qe,function(_n,bn){var Sn=_n.existing,Cn=_n.newOption;if(!Cn)Sn&&(Sn.mergeOption({},this),Sn.optionUpdated({},!1));else{var En=Ie==="series",$n=ComponentModel$1.getClass(Ie,_n.keyInfo.subType,!En);if(!$n)return;if(Ie==="tooltip"){if(vn)return;vn=!0}if(Sn&&Sn.constructor===$n)Sn.name=_n.keyInfo.name,Sn.mergeOption(Cn,this),Sn.optionUpdated(Cn,!1);else{var wn=extend({componentIndex:bn},_n.keyInfo);Sn=new $n(Cn,this,this,wn),extend(Sn,wn),_n.brandNew&&(Sn.__requireNewView=!0),Sn.init(Cn,this,this),Sn.optionUpdated(null,!0)}}Sn?(At.push(Sn.option),Lt.push(Sn),hn++):(At.push(void 0),Lt.push(void 0))},this),le[Ie]=At,ue.set(Ie,Lt),pe.set(Ie,hn),Ie==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},z.prototype.getOption=function(){var oe=clone$3(this.option);return each$c(oe,function(ae,le){if(ComponentModel$1.hasClass(le)){for(var ue=normalizeToArray(ae),pe=ue.length,_e=!1,Ce=pe-1;Ce>=0;Ce--)ue[Ce]&&!isComponentIdInternal(ue[Ce])?_e=!0:(ue[Ce]=null,!_e&&pe--);ue.length=pe,oe[le]=ue}}),delete oe[OPTION_INNER_KEY],oe},z.prototype.getTheme=function(){return this._theme},z.prototype.getLocaleModel=function(){return this._locale},z.prototype.setUpdatePayload=function(oe){this._payload=oe},z.prototype.getUpdatePayload=function(){return this._payload},z.prototype.getComponent=function(oe,ae){var le=this._componentsMap.get(oe);if(le){var ue=le[ae||0];if(ue)return ue;if(ae==null){for(var pe=0;pe<le.length;pe++)if(le[pe])return le[pe]}}},z.prototype.queryComponents=function(oe){var ae=oe.mainType;if(!ae)return[];var le=oe.index,ue=oe.id,pe=oe.name,_e=this._componentsMap.get(ae);if(!_e||!_e.length)return[];var Ce;return le!=null?(Ce=[],each$c(normalizeToArray(le),function($e){_e[$e]&&Ce.push(_e[$e])})):ue!=null?Ce=queryByIdOrName("id",ue,_e):pe!=null?Ce=queryByIdOrName("name",pe,_e):Ce=filter(_e,function($e){return!!$e}),filterBySubType(Ce,oe)},z.prototype.findComponents=function(oe){var ae=oe.query,le=oe.mainType,ue=_e(ae),pe=ue?this.queryComponents(ue):filter(this._componentsMap.get(le),function($e){return!!$e});return Ce(filterBySubType(pe,oe));function _e($e){var xe=le+"Index",Ie=le+"Id",Fe=le+"Name";return $e&&($e[xe]!=null||$e[Ie]!=null||$e[Fe]!=null)?{mainType:le,index:$e[xe],id:$e[Ie],name:$e[Fe]}:null}function Ce($e){return oe.filter?filter($e,oe.filter):$e}},z.prototype.eachComponent=function(oe,ae,le){var ue=this._componentsMap;if(isFunction(oe)){var pe=ae,_e=oe;ue.each(function(Ie,Fe){for(var ze=0;Ie&&ze<Ie.length;ze++){var Ue=Ie[ze];Ue&&_e.call(pe,Fe,Ue,Ue.componentIndex)}})}else for(var Ce=isString(oe)?ue.get(oe):isObject$3(oe)?this.findComponents(oe):null,$e=0;Ce&&$e<Ce.length;$e++){var xe=Ce[$e];xe&&ae.call(le,xe,xe.componentIndex)}},z.prototype.getSeriesByName=function(oe){var ae=convertOptionIdName(oe,null);return filter(this._componentsMap.get("series"),function(le){return!!le&&ae!=null&&le.name===ae})},z.prototype.getSeriesByIndex=function(oe){return this._componentsMap.get("series")[oe]},z.prototype.getSeriesByType=function(oe){return filter(this._componentsMap.get("series"),function(ae){return!!ae&&ae.subType===oe})},z.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(oe){return!!oe})},z.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},z.prototype.eachSeries=function(oe,ae){assertSeriesInitialized(this),each$c(this._seriesIndices,function(le){var ue=this._componentsMap.get("series")[le];oe.call(ae,ue,le)},this)},z.prototype.eachRawSeries=function(oe,ae){each$c(this._componentsMap.get("series"),function(le){le&&oe.call(ae,le,le.componentIndex)})},z.prototype.eachSeriesByType=function(oe,ae,le){assertSeriesInitialized(this),each$c(this._seriesIndices,function(ue){var pe=this._componentsMap.get("series")[ue];pe.subType===oe&&ae.call(le,pe,ue)},this)},z.prototype.eachRawSeriesByType=function(oe,ae,le){return each$c(this.getSeriesByType(oe),ae,le)},z.prototype.isSeriesFiltered=function(oe){return assertSeriesInitialized(this),this._seriesIndicesMap.get(oe.componentIndex)==null},z.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},z.prototype.filterSeries=function(oe,ae){assertSeriesInitialized(this);var le=[];each$c(this._seriesIndices,function(ue){var pe=this._componentsMap.get("series")[ue];oe.call(ae,pe,ue)&&le.push(ue)},this),this._seriesIndices=le,this._seriesIndicesMap=createHashMap(le)},z.prototype.restoreData=function(oe){reCreateSeriesIndices(this);var ae=this._componentsMap,le=[];ae.each(function(ue,pe){ComponentModel$1.hasClass(pe)&&le.push(pe)}),ComponentModel$1.topologicalTravel(le,ComponentModel$1.getAllClassMainTypes(),function(ue){each$c(ae.get(ue),function(pe){pe&&(ue!=="series"||!isNotTargetSeries(pe,oe))&&pe.restoreData()})})},z.internalField=function(){reCreateSeriesIndices=function(oe){var ae=oe._seriesIndices=[];each$c(oe._componentsMap.get("series"),function(le){le&&ae.push(le.componentIndex)}),oe._seriesIndicesMap=createHashMap(ae)},assertSeriesInitialized=function(oe){},initBase=function(oe,ae){oe.option={},oe.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,oe._componentsMap=createHashMap({series:[]}),oe._componentsCount=createHashMap();var le=ae.aria;isObject$3(le)&&le.enabled==null&&(le.enabled=!0),mergeTheme(ae,oe._theme.option),merge(ae,globalDefault,!1),oe._mergeOption(ae,null)}}(),z}(Model$1);function isNotTargetSeries($,z){if(z){var oe=z.seriesIndex,ae=z.seriesId,le=z.seriesName;return oe!=null&&$.componentIndex!==oe||ae!=null&&$.id!==ae||le!=null&&$.name!==le}}function mergeTheme($,z){var oe=$.color&&!$.colorLayer;each$c(z,function(ae,le){le==="colorLayer"&&oe||ComponentModel$1.hasClass(le)||(typeof ae=="object"?$[le]=$[le]?merge($[le],ae,!1):clone$3(ae):$[le]==null&&($[le]=ae))})}function queryByIdOrName($,z,oe){if(isArray$1(z)){var ae=createHashMap();return each$c(z,function(ue){if(ue!=null){var pe=convertOptionIdName(ue,null);pe!=null&&ae.set(ue,!0)}}),filter(oe,function(ue){return ue&&ae.get(ue[$])})}else{var le=convertOptionIdName(z,null);return filter(oe,function(ue){return ue&&le!=null&&ue[$]===le})}}function filterBySubType($,z){return z.hasOwnProperty("subType")?filter($,function(oe){return oe&&oe.subType===z.subType}):$}function normalizeSetOptionInput($){var z=createHashMap();return $&&each$c(normalizeToArray($.replaceMerge),function(oe){z.set(oe,!0)}),{replaceMergeMainTypeMap:z}}mixin(GlobalModel,PaletteMixin);const GlobalModel$1=GlobalModel;var availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function $(z){each$c(availableMethods,function(oe){this[oe]=bind$1(z[oe],z)},this)}return $}();const ExtensionAPI$1=ExtensionAPI;var coordinateSystemCreators={},CoordinateSystemManager=function(){function $(){this._coordinateSystems=[]}return $.prototype.create=function(z,oe){var ae=[];each$c(coordinateSystemCreators,function(le,ue){var pe=le.create(z,oe);ae=ae.concat(pe||[])}),this._coordinateSystems=ae},$.prototype.update=function(z,oe){each$c(this._coordinateSystems,function(ae){ae.update&&ae.update(z,oe)})},$.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},$.register=function(z,oe){coordinateSystemCreators[z]=oe},$.get=function(z){return coordinateSystemCreators[z]},$}();const CoordinateSystem=CoordinateSystemManager;var QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function $(z){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=z}return $.prototype.setOption=function(z,oe,ae){z&&(each$c(normalizeToArray(z.series),function(pe){pe&&pe.data&&isTypedArray(pe.data)&&setAsPrimitive(pe.data)}),each$c(normalizeToArray(z.dataset),function(pe){pe&&pe.source&&isTypedArray(pe.source)&&setAsPrimitive(pe.source)})),z=clone$3(z);var le=this._optionBackup,ue=parseRawOption(z,oe,!le);this._newBaseOption=ue.baseOption,le?(ue.timelineOptions.length&&(le.timelineOptions=ue.timelineOptions),ue.mediaList.length&&(le.mediaList=ue.mediaList),ue.mediaDefault&&(le.mediaDefault=ue.mediaDefault)):this._optionBackup=ue},$.prototype.mountOption=function(z){var oe=this._optionBackup;return this._timelineOptions=oe.timelineOptions,this._mediaList=oe.mediaList,this._mediaDefault=oe.mediaDefault,this._currentMediaIndices=[],clone$3(z?oe.baseOption:this._newBaseOption)},$.prototype.getTimelineOption=function(z){var oe,ae=this._timelineOptions;if(ae.length){var le=z.getComponent("timeline");le&&(oe=clone$3(ae[le.getCurrentIndex()]))}return oe},$.prototype.getMediaOption=function(z){var oe=this._api.getWidth(),ae=this._api.getHeight(),le=this._mediaList,ue=this._mediaDefault,pe=[],_e=[];if(!le.length&&!ue)return _e;for(var Ce=0,$e=le.length;Ce<$e;Ce++)applyMediaQuery(le[Ce].query,oe,ae)&&pe.push(Ce);return!pe.length&&ue&&(pe=[-1]),pe.length&&!indicesEquals(pe,this._currentMediaIndices)&&(_e=map$2(pe,function(xe){return clone$3(xe===-1?ue.option:le[xe].option)})),this._currentMediaIndices=pe,_e},$}();function parseRawOption($,z,oe){var ae=[],le,ue,pe=$.baseOption,_e=$.timeline,Ce=$.options,$e=$.media,xe=!!$.media,Ie=!!(Ce||_e||pe&&pe.timeline);pe?(ue=pe,ue.timeline||(ue.timeline=_e)):((Ie||xe)&&($.options=$.media=null),ue=$),xe&&isArray$1($e)&&each$c($e,function(ze){ze&&ze.option&&(ze.query?ae.push(ze):le||(le=ze))}),Fe(ue),each$c(Ce,function(ze){return Fe(ze)}),each$c(ae,function(ze){return Fe(ze.option)});function Fe(ze){each$c(z,function(Ue){Ue(ze,oe)})}return{baseOption:ue,timelineOptions:Ce||[],mediaDefault:le,mediaList:ae}}function applyMediaQuery($,z,oe){var ae={width:z,height:oe,aspectratio:z/oe},le=!0;return each$c($,function(ue,pe){var _e=pe.match(QUERY_REG);if(!(!_e||!_e[1]||!_e[2])){var Ce=_e[1],$e=_e[2].toLowerCase();compare(ae[$e],ue,Ce)||(le=!1)}}),le}function compare($,z,oe){return oe==="min"?$>=z:oe==="max"?$<=z:$===z}function indicesEquals($,z){return $.join(",")===z.join(",")}const OptionManager$1=OptionManager;var each$a=each$c,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle($){var z=$&&$.itemStyle;if(z)for(var oe=0,ae=POSSIBLE_STYLES.length;oe<ae;oe++){var le=POSSIBLE_STYLES[oe],ue=z.normal,pe=z.emphasis;ue&&ue[le]&&($[le]=$[le]||{},$[le].normal?merge($[le].normal,ue[le]):$[le].normal=ue[le],ue[le]=null),pe&&pe[le]&&($[le]=$[le]||{},$[le].emphasis?merge($[le].emphasis,pe[le]):$[le].emphasis=pe[le],pe[le]=null)}}function convertNormalEmphasis($,z,oe){if($&&$[z]&&($[z].normal||$[z].emphasis)){var ae=$[z].normal,le=$[z].emphasis;ae&&(oe?($[z].normal=$[z].emphasis=null,defaults($[z],ae)):$[z]=ae),le&&($.emphasis=$.emphasis||{},$.emphasis[z]=le,le.focus&&($.emphasis.focus=le.focus),le.blurScope&&($.emphasis.blurScope=le.blurScope))}}function removeEC3NormalStatus($){convertNormalEmphasis($,"itemStyle"),convertNormalEmphasis($,"lineStyle"),convertNormalEmphasis($,"areaStyle"),convertNormalEmphasis($,"label"),convertNormalEmphasis($,"labelLine"),convertNormalEmphasis($,"upperLabel"),convertNormalEmphasis($,"edgeLabel")}function compatTextStyle($,z){var oe=isObject$2($)&&$[z],ae=isObject$2(oe)&&oe.textStyle;if(ae)for(var le=0,ue=TEXT_STYLE_OPTIONS.length;le<ue;le++){var pe=TEXT_STYLE_OPTIONS[le];ae.hasOwnProperty(pe)&&(oe[pe]=ae[pe])}}function compatEC3CommonStyles($){$&&(removeEC3NormalStatus($),compatTextStyle($,"label"),$.emphasis&&compatTextStyle($.emphasis,"label"))}function processSeries($){if(isObject$2($)){compatEC2ItemStyle($),removeEC3NormalStatus($),compatTextStyle($,"label"),compatTextStyle($,"upperLabel"),compatTextStyle($,"edgeLabel"),$.emphasis&&(compatTextStyle($.emphasis,"label"),compatTextStyle($.emphasis,"upperLabel"),compatTextStyle($.emphasis,"edgeLabel"));var z=$.markPoint;z&&(compatEC2ItemStyle(z),compatEC3CommonStyles(z));var oe=$.markLine;oe&&(compatEC2ItemStyle(oe),compatEC3CommonStyles(oe));var ae=$.markArea;ae&&compatEC3CommonStyles(ae);var le=$.data;if($.type==="graph"){le=le||$.nodes;var ue=$.links||$.edges;if(ue&&!isTypedArray(ue))for(var pe=0;pe<ue.length;pe++)compatEC3CommonStyles(ue[pe]);each$c($.categories,function($e){removeEC3NormalStatus($e)})}if(le&&!isTypedArray(le))for(var pe=0;pe<le.length;pe++)compatEC3CommonStyles(le[pe]);if(z=$.markPoint,z&&z.data)for(var _e=z.data,pe=0;pe<_e.length;pe++)compatEC3CommonStyles(_e[pe]);if(oe=$.markLine,oe&&oe.data)for(var Ce=oe.data,pe=0;pe<Ce.length;pe++)isArray$1(Ce[pe])?(compatEC3CommonStyles(Ce[pe][0]),compatEC3CommonStyles(Ce[pe][1])):compatEC3CommonStyles(Ce[pe]);$.type==="gauge"?(compatTextStyle($,"axisLabel"),compatTextStyle($,"title"),compatTextStyle($,"detail")):$.type==="treemap"?(convertNormalEmphasis($.breadcrumb,"itemStyle"),each$c($.levels,function($e){removeEC3NormalStatus($e)})):$.type==="tree"&&removeEC3NormalStatus($.leaves)}}function toArr($){return isArray$1($)?$:$?[$]:[]}function toObj($){return(isArray$1($)?$[0]:$)||{}}function globalCompatStyle($,z){each$a(toArr($.series),function(ae){isObject$2(ae)&&processSeries(ae)});var oe=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];z&&oe.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$a(oe,function(ae){each$a(toArr($[ae]),function(le){le&&(compatTextStyle(le,"axisLabel"),compatTextStyle(le.axisPointer,"label"))})}),each$a(toArr($.parallel),function(ae){var le=ae&&ae.parallelAxisDefault;compatTextStyle(le,"axisLabel"),compatTextStyle(le&&le.axisPointer,"label")}),each$a(toArr($.calendar),function(ae){convertNormalEmphasis(ae,"itemStyle"),compatTextStyle(ae,"dayLabel"),compatTextStyle(ae,"monthLabel"),compatTextStyle(ae,"yearLabel")}),each$a(toArr($.radar),function(ae){compatTextStyle(ae,"name"),ae.name&&ae.axisName==null&&(ae.axisName=ae.name,delete ae.name),ae.nameGap!=null&&ae.axisNameGap==null&&(ae.axisNameGap=ae.nameGap,delete ae.nameGap)}),each$a(toArr($.geo),function(ae){isObject$2(ae)&&(compatEC3CommonStyles(ae),each$a(toArr(ae.regions),function(le){compatEC3CommonStyles(le)}))}),each$a(toArr($.timeline),function(ae){compatEC3CommonStyles(ae),convertNormalEmphasis(ae,"label"),convertNormalEmphasis(ae,"itemStyle"),convertNormalEmphasis(ae,"controlStyle",!0);var le=ae.data;isArray$1(le)&&each$c(le,function(ue){isObject$3(ue)&&(convertNormalEmphasis(ue,"label"),convertNormalEmphasis(ue,"itemStyle"))})}),each$a(toArr($.toolbox),function(ae){convertNormalEmphasis(ae,"iconStyle"),each$a(ae.feature,function(le){convertNormalEmphasis(le,"iconStyle")})}),compatTextStyle(toObj($.axisPointer),"label"),compatTextStyle(toObj($.tooltip).axisPointer,"label")}function get($,z){for(var oe=z.split(","),ae=$,le=0;le<oe.length&&(ae=ae&&ae[oe[le]],ae!=null);le++);return ae}function set($,z,oe,ae){for(var le=z.split(","),ue=$,pe,_e=0;_e<le.length-1;_e++)pe=le[_e],ue[pe]==null&&(ue[pe]={}),ue=ue[pe];(ae||ue[le[_e]]==null)&&(ue[le[_e]]=oe)}function compatLayoutProperties($){$&&each$c(LAYOUT_PROPERTIES,function(z){z[0]in $&&!(z[1]in $)&&($[z[1]]=$[z[0]])})}var LAYOUT_PROPERTIES=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],COMPATITABLE_COMPONENTS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],BAR_ITEM_STYLE_MAP=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function compatBarItemStyle($){var z=$&&$.itemStyle;if(z)for(var oe=0;oe<BAR_ITEM_STYLE_MAP.length;oe++){var ae=BAR_ITEM_STYLE_MAP[oe][1],le=BAR_ITEM_STYLE_MAP[oe][0];z[ae]!=null&&(z[le]=z[ae])}}function compatPieLabel($){$&&$.alignTo==="edge"&&$.margin!=null&&$.edgeDistance==null&&($.edgeDistance=$.margin)}function compatSunburstState($){$&&$.downplay&&!$.blur&&($.blur=$.downplay)}function compatGraphFocus($){$&&$.focusNodeAdjacency!=null&&($.emphasis=$.emphasis||{},$.emphasis.focus==null&&($.emphasis.focus="adjacency"))}function traverseTree($,z){if($)for(var oe=0;oe<$.length;oe++)z($[oe]),$[oe]&&traverseTree($[oe].children,z)}function globalBackwardCompat($,z){globalCompatStyle($,z),$.series=normalizeToArray($.series),each$c($.series,function(oe){if(isObject$3(oe)){var ae=oe.type;if(ae==="line")oe.clipOverflow!=null&&(oe.clip=oe.clipOverflow);else if(ae==="pie"||ae==="gauge"){oe.clockWise!=null&&(oe.clockwise=oe.clockWise),compatPieLabel(oe.label);var le=oe.data;if(le&&!isTypedArray(le))for(var ue=0;ue<le.length;ue++)compatPieLabel(le[ue]);oe.hoverOffset!=null&&(oe.emphasis=oe.emphasis||{},(oe.emphasis.scaleSize=null)&&(oe.emphasis.scaleSize=oe.hoverOffset))}else if(ae==="gauge"){var pe=get(oe,"pointer.color");pe!=null&&set(oe,"itemStyle.color",pe)}else if(ae==="bar"){compatBarItemStyle(oe),compatBarItemStyle(oe.backgroundStyle),compatBarItemStyle(oe.emphasis);var le=oe.data;if(le&&!isTypedArray(le))for(var ue=0;ue<le.length;ue++)typeof le[ue]=="object"&&(compatBarItemStyle(le[ue]),compatBarItemStyle(le[ue]&&le[ue].emphasis))}else if(ae==="sunburst"){var _e=oe.highlightPolicy;_e&&(oe.emphasis=oe.emphasis||{},oe.emphasis.focus||(oe.emphasis.focus=_e)),compatSunburstState(oe),traverseTree(oe.data,compatSunburstState)}else ae==="graph"||ae==="sankey"?compatGraphFocus(oe):ae==="map"&&(oe.mapType&&!oe.map&&(oe.map=oe.mapType),oe.mapLocation&&defaults(oe,oe.mapLocation));oe.hoverAnimation!=null&&(oe.emphasis=oe.emphasis||{},oe.emphasis&&oe.emphasis.scale==null&&(oe.emphasis.scale=oe.hoverAnimation)),compatLayoutProperties(oe)}}),$.dataRange&&($.visualMap=$.dataRange),each$c(COMPATITABLE_COMPONENTS,function(oe){var ae=$[oe];ae&&(isArray$1(ae)||(ae=[ae]),each$c(ae,function(le){compatLayoutProperties(le)}))})}function dataStack$1($){var z=createHashMap();$.eachSeries(function(oe){var ae=oe.get("stack");if(ae){var le=z.get(ae)||z.set(ae,[]),ue=oe.getData(),pe={stackResultDimension:ue.getCalculationInfo("stackResultDimension"),stackedOverDimension:ue.getCalculationInfo("stackedOverDimension"),stackedDimension:ue.getCalculationInfo("stackedDimension"),stackedByDimension:ue.getCalculationInfo("stackedByDimension"),isStackedByIndex:ue.getCalculationInfo("isStackedByIndex"),data:ue,seriesModel:oe};if(!pe.stackedDimension||!(pe.isStackedByIndex||pe.stackedByDimension))return;le.length&&ue.setCalculationInfo("stackedOnSeries",le[le.length-1].seriesModel),le.push(pe)}}),z.each(calculateStack)}function calculateStack($){each$c($,function(z,oe){var ae=[],le=[NaN,NaN],ue=[z.stackResultDimension,z.stackedOverDimension],pe=z.data,_e=z.isStackedByIndex,Ce=z.seriesModel.get("stackStrategy")||"samesign";pe.modify(ue,function($e,xe,Ie){var Fe=pe.get(z.stackedDimension,Ie);if(isNaN(Fe))return le;var ze,Ue;_e?Ue=pe.getRawIndex(Ie):ze=pe.get(z.stackedByDimension,Ie);for(var qe=NaN,At=oe-1;At>=0;At--){var Lt=$[At];if(_e||(Ue=Lt.data.rawIndexOf(Lt.stackedByDimension,ze)),Ue>=0){var hn=Lt.data.getByRawIndex(Lt.stackResultDimension,Ue);if(Ce==="all"||Ce==="positive"&&hn>0||Ce==="negative"&&hn<0||Ce==="samesign"&&Fe>=0&&hn>0||Ce==="samesign"&&Fe<=0&&hn<0){Fe=addSafe(Fe,hn),qe=hn;break}}}return ae[0]=Fe,ae[1]=qe,ae})})}var SourceImpl=function(){function $(z){this.data=z.data||(z.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=z.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=z.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=z.startIndex||0,this.dimensionsDetectedCount=z.dimensionsDetectedCount,this.metaRawOption=z.metaRawOption;var oe=this.dimensionsDefine=z.dimensionsDefine;if(oe)for(var ae=0;ae<oe.length;ae++){var le=oe[ae];le.type==null&&guessOrdinal(this,ae)===BE_ORDINAL.Must&&(le.type="ordinal")}}return $}();function isSourceInstance($){return $ instanceof SourceImpl}function createSource($,z,oe){oe=oe||detectSourceFormat($);var ae=z.seriesLayoutBy,le=determineSourceDimensions($,oe,ae,z.sourceHeader,z.dimensions),ue=new SourceImpl({data:$,sourceFormat:oe,seriesLayoutBy:ae,dimensionsDefine:le.dimensionsDefine,startIndex:le.startIndex,dimensionsDetectedCount:le.dimensionsDetectedCount,metaRawOption:clone$3(z)});return ue}function createSourceFromSeriesDataOption($){return new SourceImpl({data:$,sourceFormat:isTypedArray($)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow($){return new SourceImpl({data:$.data,sourceFormat:$.sourceFormat,seriesLayoutBy:$.seriesLayoutBy,dimensionsDefine:clone$3($.dimensionsDefine),startIndex:$.startIndex,dimensionsDetectedCount:$.dimensionsDetectedCount})}function detectSourceFormat($){var z=SOURCE_FORMAT_UNKNOWN;if(isTypedArray($))z=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1($)){$.length===0&&(z=SOURCE_FORMAT_ARRAY_ROWS);for(var oe=0,ae=$.length;oe<ae;oe++){var le=$[oe];if(le!=null){if(isArray$1(le)){z=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(le)){z=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3($)){for(var ue in $)if(hasOwn($,ue)&&isArrayLike($[ue])){z=SOURCE_FORMAT_KEYED_COLUMNS;break}}return z}function determineSourceDimensions($,z,oe,ae,le){var ue,pe;if(!$)return{dimensionsDefine:normalizeDimensionsOption(le),startIndex:pe,dimensionsDetectedCount:ue};if(z===SOURCE_FORMAT_ARRAY_ROWS){var _e=$;ae==="auto"||ae==null?arrayRowsTravelFirst(function($e){$e!=null&&$e!=="-"&&(isString($e)?pe==null&&(pe=1):pe=0)},oe,_e,10):pe=isNumber(ae)?ae:ae?1:0,!le&&pe===1&&(le=[],arrayRowsTravelFirst(function($e,xe){le[xe]=$e!=null?$e+"":""},oe,_e,1/0)),ue=le?le.length:oe===SERIES_LAYOUT_BY_ROW?_e.length:_e[0]?_e[0].length:null}else if(z===SOURCE_FORMAT_OBJECT_ROWS)le||(le=objectRowsCollectDimensions($));else if(z===SOURCE_FORMAT_KEYED_COLUMNS)le||(le=[],each$c($,function($e,xe){le.push(xe)}));else if(z===SOURCE_FORMAT_ORIGINAL){var Ce=getDataItemValue($[0]);ue=isArray$1(Ce)&&Ce.length||1}return{startIndex:pe,dimensionsDefine:normalizeDimensionsOption(le),dimensionsDetectedCount:ue}}function objectRowsCollectDimensions($){for(var z=0,oe;z<$.length&&!(oe=$[z++]););if(oe)return keys(oe)}function normalizeDimensionsOption($){if($){var z=createHashMap();return map$2($,function(oe,ae){oe=isObject$3(oe)?oe:{name:oe};var le={name:oe.name,displayName:oe.displayName,type:oe.type};if(le.name==null)return le;le.name+="",le.displayName==null&&(le.displayName=le.name);var ue=z.get(le.name);return ue?le.name+="-"+ue.count++:z.set(le.name,{count:1}),le})}}function arrayRowsTravelFirst($,z,oe,ae){if(z===SERIES_LAYOUT_BY_ROW)for(var le=0;le<oe.length&&le<ae;le++)$(oe[le]?oe[le][0]:null,le);else for(var ue=oe[0]||[],le=0;le<ue.length&&le<ae;le++)$(ue[le],le)}function shouldRetrieveDataByName($){var z=$.sourceFormat;return z===SOURCE_FORMAT_OBJECT_ROWS||z===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function $(z,oe){var ae=isSourceInstance(z)?z:createSourceFromSeriesDataOption(z);this._source=ae;var le=this._data=ae.data;ae.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=oe,this._data=le),mountMethods(this,le,ae)}return $.prototype.getSource=function(){return this._source},$.prototype.count=function(){return 0},$.prototype.getItem=function(z,oe){},$.prototype.appendData=function(z){},$.prototype.clean=function(){},$.protoInitialize=function(){var z=$.prototype;z.pure=!1,z.persistent=!0}(),$.internalField=function(){var z;mountMethods=function(pe,_e,Ce){var $e=Ce.sourceFormat,xe=Ce.seriesLayoutBy,Ie=Ce.startIndex,Fe=Ce.dimensionsDefine,ze=providerMethods[getMethodMapKey($e,xe)];if(extend(pe,ze),$e===SOURCE_FORMAT_TYPED_ARRAY)pe.getItem=oe,pe.count=le,pe.fillStorage=ae;else{var Ue=getRawSourceItemGetter($e,xe);pe.getItem=bind$1(Ue,null,_e,Ie,Fe);var qe=getRawSourceDataCounter($e,xe);pe.count=bind$1(qe,null,_e,Ie,Fe)}};var oe=function(pe,_e){pe=pe-this._offset,_e=_e||[];for(var Ce=this._data,$e=this._dimSize,xe=$e*pe,Ie=0;Ie<$e;Ie++)_e[Ie]=Ce[xe+Ie];return _e},ae=function(pe,_e,Ce,$e){for(var xe=this._data,Ie=this._dimSize,Fe=0;Fe<Ie;Fe++){for(var ze=$e[Fe],Ue=ze[0]==null?1/0:ze[0],qe=ze[1]==null?-1/0:ze[1],At=_e-pe,Lt=Ce[Fe],hn=0;hn<At;hn++){var vn=xe[hn*Ie+Fe];Lt[pe+hn]=vn,vn<Ue&&(Ue=vn),vn>qe&&(qe=vn)}ze[0]=Ue,ze[1]=qe}},le=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(z={},z[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:ue},z[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},z[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:ue},z[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(pe){var _e=this._data;each$c(pe,function(Ce,$e){for(var xe=_e[$e]||(_e[$e]=[]),Ie=0;Ie<(Ce||[]).length;Ie++)xe.push(Ce[Ie])})}},z[SOURCE_FORMAT_ORIGINAL]={appendData:ue},z[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(pe){this._data=pe},clean:function(){this._offset+=this.count(),this._data=null}},z);function ue(pe){for(var _e=0;_e<pe.length;_e++)this._data.push(pe[_e])}}(),$}(),getItemSimply=function($,z,oe,ae){return $[ae]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,z,oe,ae){return $[ae+z]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,z,oe,ae,le){ae+=z;for(var ue=le||[],pe=$,_e=0;_e<pe.length;_e++){var Ce=pe[_e];ue[_e]=Ce?Ce[ae]:null}return ue},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function($,z,oe,ae,le){for(var ue=le||[],pe=0;pe<oe.length;pe++){var _e=oe[pe].name,Ce=$[_e];ue[pe]=Ce?Ce[ae]:null}return ue},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter($,z){var oe=rawSourceItemGetterMap[getMethodMapKey($,z)];return oe}var countSimply=function($,z,oe){return $.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,z,oe){return Math.max(0,$.length-z)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,z,oe){var ae=$[0];return ae?Math.max(0,ae.length-z):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function($,z,oe){var ae=oe[0].name,le=$[ae];return le?le.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter($,z){var oe=rawSourceDataCounterMap[getMethodMapKey($,z)];return oe}var getRawValueSimply=function($,z,oe){return $[z]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function($,z,oe){return $[oe]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function($,z,oe){var ae=getDataItemValue($);return ae instanceof Array?ae[z]:ae},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter($){var z=rawSourceValueGetterMap[$];return z}function getMethodMapKey($,z){return $===SOURCE_FORMAT_ARRAY_ROWS?$+"_"+z:$}function retrieveRawValue($,z,oe){if($){var ae=$.getRawDataItem(z);if(ae!=null){var le=$.getStore(),ue=le.getSource().sourceFormat;if(oe!=null){var pe=$.getDimensionIndex(oe),_e=le.getDimensionProperty(pe);return getRawSourceValueGetter(ue)(ae,pe,_e)}else{var Ce=ae;return ue===SOURCE_FORMAT_ORIGINAL&&(Ce=getDataItemValue(ae)),Ce}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function $(){}return $.prototype.getDataParams=function(z,oe){var ae=this.getData(oe),le=this.getRawValue(z,oe),ue=ae.getRawIndex(z),pe=ae.getName(z),_e=ae.getRawDataItem(z),Ce=ae.getItemVisual(z,"style"),$e=Ce&&Ce[ae.getItemVisual(z,"drawType")||"fill"],xe=Ce&&Ce.stroke,Ie=this.mainType,Fe=Ie==="series",ze=ae.userOutput&&ae.userOutput.get();return{componentType:Ie,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:Fe?this.subType:null,seriesIndex:this.seriesIndex,seriesId:Fe?this.id:null,seriesName:Fe?this.name:null,name:pe,dataIndex:ue,data:_e,dataType:oe,value:le,color:$e,borderColor:xe,dimensionNames:ze?ze.fullDimensions:null,encode:ze?ze.encode:null,$vars:["seriesName","name","value"]}},$.prototype.getFormattedLabel=function(z,oe,ae,le,ue,pe){oe=oe||"normal";var _e=this.getData(ae),Ce=this.getDataParams(z,ae);if(pe&&(Ce.value=pe.interpolatedValue),le!=null&&isArray$1(Ce.value)&&(Ce.value=Ce.value[le]),!ue){var $e=_e.getItemModel(z);ue=$e.get(oe==="normal"?["label","formatter"]:[oe,"label","formatter"])}if(isFunction(ue))return Ce.status=oe,Ce.dimensionIndex=le,ue(Ce);if(isString(ue)){var xe=formatTpl(ue,Ce);return xe.replace(DIMENSION_LABEL_REG,function(Ie,Fe){var ze=Fe.length,Ue=Fe;Ue.charAt(0)==="["&&Ue.charAt(ze-1)==="]"&&(Ue=+Ue.slice(1,ze-1));var qe=retrieveRawValue(_e,z,Ue);if(pe&&isArray$1(pe.interpolatedValue)){var At=_e.getDimensionIndex(Ue);At>=0&&(qe=pe.interpolatedValue[At])}return qe!=null?qe+"":""})}},$.prototype.getRawValue=function(z,oe){return retrieveRawValue(this.getData(oe),z)},$.prototype.formatTooltip=function(z,oe,ae){},$}();function normalizeTooltipFormatResult($){var z,oe;return isObject$3($)?$.type&&(oe=$):z=$,{text:z,frag:oe}}function createTask($){return new Task($)}var Task=function(){function $(z){z=z||{},this._reset=z.reset,this._plan=z.plan,this._count=z.count,this._onDirty=z.onDirty,this._dirty=!0}return $.prototype.perform=function(z){var oe=this._upstream,ae=z&&z.skip;if(this._dirty&&oe){var le=this.context;le.data=le.outputData=oe.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var ue;this._plan&&!ae&&(ue=this._plan(this.context));var pe=xe(this._modBy),_e=this._modDataCount||0,Ce=xe(z&&z.modBy),$e=z&&z.modDataCount||0;(pe!==Ce||_e!==$e)&&(ue="reset");function xe(hn){return!(hn>=1)&&(hn=1),hn}var Ie;(this._dirty||ue==="reset")&&(this._dirty=!1,Ie=this._doReset(ae)),this._modBy=Ce,this._modDataCount=$e;var Fe=z&&z.step;if(oe?this._dueEnd=oe._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var ze=this._dueIndex,Ue=Math.min(Fe!=null?this._dueIndex+Fe:1/0,this._dueEnd);if(!ae&&(Ie||ze<Ue)){var qe=this._progress;if(isArray$1(qe))for(var At=0;At<qe.length;At++)this._doProgress(qe[At],ze,Ue,Ce,$e);else this._doProgress(qe,ze,Ue,Ce,$e)}this._dueIndex=Ue;var Lt=this._settedOutputEnd!=null?this._settedOutputEnd:Ue;this._outputDueEnd=Lt}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},$.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},$.prototype._doProgress=function(z,oe,ae,le,ue){iterator.reset(oe,ae,le,ue),this._callingProgress=z,this._callingProgress({start:oe,end:ae,count:ae-oe,next:iterator.next},this.context)},$.prototype._doReset=function(z){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var oe,ae;!z&&this._reset&&(oe=this._reset(this.context),oe&&oe.progress&&(ae=oe.forceFirstProgress,oe=oe.progress),isArray$1(oe)&&!oe.length&&(oe=null)),this._progress=oe,this._modBy=this._modDataCount=null;var le=this._downstream;return le&&le.dirty(),ae},$.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},$.prototype.pipe=function(z){(this._downstream!==z||this._dirty)&&(this._downstream=z,z._upstream=this,z.dirty())},$.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},$.prototype.getUpstream=function(){return this._upstream},$.prototype.getDownstream=function(){return this._downstream},$.prototype.setOutputEnd=function(z){this._outputDueEnd=this._settedOutputEnd=z},$}(),iterator=function(){var $,z,oe,ae,le,ue={reset:function(Ce,$e,xe,Ie){z=Ce,$=$e,oe=xe,ae=Ie,le=Math.ceil(ae/oe),ue.next=oe>1&&ae>0?_e:pe}};return ue;function pe(){return z<$?z++:null}function _e(){var Ce=z%le*oe+Math.ceil(z/le),$e=z>=$?null:Ce<ae?Ce:z;return z++,$e}}();function parseDataValue($,z){var oe=z&&z.type;return oe==="ordinal"?$:(oe==="time"&&!isNumber($)&&$!=null&&$!=="-"&&($=+parseDate($)),$==null||$===""?NaN:+$)}createHashMap({number:function($){return parseFloat($)},time:function($){return+parseDate($)},trim:function($){return isString($)?trim$1($):$}});var SortOrderComparator=function(){function $(z,oe){var ae=z==="desc";this._resultLT=ae?1:-1,oe==null&&(oe=ae?"min":"max"),this._incomparable=oe==="min"?-1/0:1/0}return $.prototype.evaluate=function(z,oe){var ae=isNumber(z)?z:numericToNumber(z),le=isNumber(oe)?oe:numericToNumber(oe),ue=isNaN(ae),pe=isNaN(le);if(ue&&(ae=this._incomparable),pe&&(le=this._incomparable),ue&&pe){var _e=isString(z),Ce=isString(oe);_e&&(ae=Ce?z:0),Ce&&(le=_e?oe:0)}return ae<le?this._resultLT:ae>le?-this._resultLT:0},$}(),ExternalSource=function(){function $(){}return $.prototype.getRawData=function(){throw new Error("not supported")},$.prototype.getRawDataItem=function(z){throw new Error("not supported")},$.prototype.cloneRawData=function(){},$.prototype.getDimensionInfo=function(z){},$.prototype.cloneAllDimensionInfo=function(){},$.prototype.count=function(){},$.prototype.retrieveValue=function(z,oe){},$.prototype.retrieveValueFromItem=function(z,oe){},$.prototype.convertValue=function(z,oe){return parseDataValue(z,oe)},$}();function createExternalSource($,z){var oe=new ExternalSource,ae=$.data,le=oe.sourceFormat=$.sourceFormat,ue=$.startIndex,pe="";$.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(pe);var _e=[],Ce={},$e=$.dimensionsDefine;if($e)each$c($e,function(qe,At){var Lt=qe.name,hn={index:At,name:Lt,displayName:qe.displayName};if(_e.push(hn),Lt!=null){var vn="";hasOwn(Ce,Lt)&&throwError(vn),Ce[Lt]=hn}});else for(var xe=0;xe<$.dimensionsDetectedCount;xe++)_e.push({index:xe});var Ie=getRawSourceItemGetter(le,SERIES_LAYOUT_BY_COLUMN);z.__isBuiltIn&&(oe.getRawDataItem=function(qe){return Ie(ae,ue,_e,qe)},oe.getRawData=bind$1(getRawData,null,$)),oe.cloneRawData=bind$1(cloneRawData,null,$);var Fe=getRawSourceDataCounter(le,SERIES_LAYOUT_BY_COLUMN);oe.count=bind$1(Fe,null,ae,ue,_e);var ze=getRawSourceValueGetter(le);oe.retrieveValue=function(qe,At){var Lt=Ie(ae,ue,_e,qe);return Ue(Lt,At)};var Ue=oe.retrieveValueFromItem=function(qe,At){if(qe!=null){var Lt=_e[At];if(Lt)return ze(qe,At,Lt.name)}};return oe.getDimensionInfo=bind$1(getDimensionInfo,null,_e,Ce),oe.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,_e),oe}function getRawData($){var z=$.sourceFormat;if(!isSupportedSourceFormat(z)){var oe="";throwError(oe)}return $.data}function cloneRawData($){var z=$.sourceFormat,oe=$.data;if(!isSupportedSourceFormat(z)){var ae="";throwError(ae)}if(z===SOURCE_FORMAT_ARRAY_ROWS){for(var le=[],ue=0,pe=oe.length;ue<pe;ue++)le.push(oe[ue].slice());return le}else if(z===SOURCE_FORMAT_OBJECT_ROWS){for(var le=[],ue=0,pe=oe.length;ue<pe;ue++)le.push(extend({},oe[ue]));return le}}function getDimensionInfo($,z,oe){if(oe!=null){if(isNumber(oe)||!isNaN(oe)&&!hasOwn(z,oe))return $[oe];if(hasOwn(z,oe))return z[oe]}}function cloneAllDimensionInfo($){return clone$3($)}var externalTransformMap=createHashMap();function registerExternalTransform($){$=clone$3($);var z=$.type,oe="";z||throwError(oe);var ae=z.split(":");ae.length!==2&&throwError(oe);var le=!1;ae[0]==="echarts"&&(z=ae[1],le=!0),$.__isBuiltIn=le,externalTransformMap.set(z,$)}function applyDataTransform($,z,oe){var ae=normalizeToArray($),le=ae.length,ue="";le||throwError(ue);for(var pe=0,_e=le;pe<_e;pe++){var Ce=ae[pe];z=applySingleDataTransform(Ce,z),pe!==_e-1&&(z.length=Math.max(z.length,1))}return z}function applySingleDataTransform($,z,oe,ae){var le="";z.length||throwError(le),isObject$3($)||throwError(le);var ue=$.type,pe=externalTransformMap.get(ue);pe||throwError(le);var _e=map$2(z,function($e){return createExternalSource($e,pe)}),Ce=normalizeToArray(pe.transform({upstream:_e[0],upstreamList:_e,config:clone$3($.config)}));return map$2(Ce,function($e,xe){var Ie="";isObject$3($e)||throwError(Ie),$e.data||throwError(Ie);var Fe=detectSourceFormat($e.data);isSupportedSourceFormat(Fe)||throwError(Ie);var ze,Ue=z[0];if(Ue&&xe===0&&!$e.dimensions){var qe=Ue.startIndex;qe&&($e.data=Ue.data.slice(0,qe).concat($e.data)),ze={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:qe,dimensions:Ue.metaRawOption.dimensions}}else ze={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:$e.dimensions};return createSource($e.data,ze,null)})}function isSupportedSourceFormat($){return $===SOURCE_FORMAT_ARRAY_ROWS||$===SOURCE_FORMAT_OBJECT_ROWS}var UNDEFINED="undefined",CtorUint32Array=typeof Uint32Array===UNDEFINED?Array:Uint32Array,CtorUint16Array=typeof Uint16Array===UNDEFINED?Array:Uint16Array,CtorInt32Array$1=typeof Int32Array===UNDEFINED?Array:Int32Array,CtorFloat64Array=typeof Float64Array===UNDEFINED?Array:Float64Array,dataCtors={float:CtorFloat64Array,int:CtorInt32Array$1,ordinal:Array,number:Array,time:CtorFloat64Array},defaultDimValueGetters;function getIndicesCtor($){return $>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk($){var z=$.constructor;return z===Array?$.slice():new z($)}function prepareStore($,z,oe,ae,le){var ue=dataCtors[oe||"float"];if(le){var pe=$[z],_e=pe&&pe.length;if(_e!==ae){for(var Ce=new ue(ae),$e=0;$e<_e;$e++)Ce[$e]=pe[$e];$[z]=Ce}}else $[z]=new ue(ae)}var DataStore=function(){function $(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return $.prototype.initData=function(z,oe,ae){this._provider=z,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var le=z.getSource(),ue=this.defaultDimValueGetter=defaultDimValueGetters[le.sourceFormat];this._dimValueGetter=ae||ue,this._rawExtent=[],shouldRetrieveDataByName(le),this._dimensions=map$2(oe,function(pe){return{type:pe.type,property:pe.property}}),this._initDataFromProvider(0,z.count())},$.prototype.getProvider=function(){return this._provider},$.prototype.getSource=function(){return this._provider.getSource()},$.prototype.ensureCalculationDimension=function(z,oe){var ae=this._calcDimNameToIdx,le=this._dimensions,ue=ae.get(z);if(ue!=null){if(le[ue].type===oe)return ue}else ue=le.length;return le[ue]={type:oe},ae.set(z,ue),this._chunks[ue]=new dataCtors[oe||"float"](this._rawCount),this._rawExtent[ue]=getInitialExtent(),ue},$.prototype.collectOrdinalMeta=function(z,oe){var ae=this._chunks[z],le=this._dimensions[z],ue=this._rawExtent,pe=le.ordinalOffset||0,_e=ae.length;pe===0&&(ue[z]=getInitialExtent());for(var Ce=ue[z],$e=pe;$e<_e;$e++){var xe=ae[$e]=oe.parseAndCollect(ae[$e]);isNaN(xe)||(Ce[0]=Math.min(xe,Ce[0]),Ce[1]=Math.max(xe,Ce[1]))}le.ordinalMeta=oe,le.ordinalOffset=_e,le.type="ordinal"},$.prototype.getOrdinalMeta=function(z){var oe=this._dimensions[z],ae=oe.ordinalMeta;return ae},$.prototype.getDimensionProperty=function(z){var oe=this._dimensions[z];return oe&&oe.property},$.prototype.appendData=function(z){var oe=this._provider,ae=this.count();oe.appendData(z);var le=oe.count();return oe.persistent||(le+=ae),ae<le&&this._initDataFromProvider(ae,le,!0),[ae,le]},$.prototype.appendValues=function(z,oe){for(var ae=this._chunks,le=this._dimensions,ue=le.length,pe=this._rawExtent,_e=this.count(),Ce=_e+Math.max(z.length,oe||0),$e=0;$e<ue;$e++){var xe=le[$e];prepareStore(ae,$e,xe.type,Ce,!0)}for(var Ie=[],Fe=_e;Fe<Ce;Fe++)for(var ze=Fe-_e,Ue=0;Ue<ue;Ue++){var xe=le[Ue],qe=defaultDimValueGetters.arrayRows.call(this,z[ze]||Ie,xe.property,ze,Ue);ae[Ue][Fe]=qe;var At=pe[Ue];qe<At[0]&&(At[0]=qe),qe>At[1]&&(At[1]=qe)}return this._rawCount=this._count=Ce,{start:_e,end:Ce}},$.prototype._initDataFromProvider=function(z,oe,ae){for(var le=this._provider,ue=this._chunks,pe=this._dimensions,_e=pe.length,Ce=this._rawExtent,$e=map$2(pe,function(hn){return hn.property}),xe=0;xe<_e;xe++){var Ie=pe[xe];Ce[xe]||(Ce[xe]=getInitialExtent()),prepareStore(ue,xe,Ie.type,oe,ae)}if(le.fillStorage)le.fillStorage(z,oe,ue,Ce);else for(var Fe=[],ze=z;ze<oe;ze++){Fe=le.getItem(ze,Fe);for(var Ue=0;Ue<_e;Ue++){var qe=ue[Ue],At=this._dimValueGetter(Fe,$e[Ue],ze,Ue);qe[ze]=At;var Lt=Ce[Ue];At<Lt[0]&&(Lt[0]=At),At>Lt[1]&&(Lt[1]=At)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=oe,this._extent=[]},$.prototype.count=function(){return this._count},$.prototype.get=function(z,oe){if(!(oe>=0&&oe<this._count))return NaN;var ae=this._chunks[z];return ae?ae[this.getRawIndex(oe)]:NaN},$.prototype.getValues=function(z,oe){var ae=[],le=[];if(oe==null){oe=z,z=[];for(var ue=0;ue<this._dimensions.length;ue++)le.push(ue)}else le=z;for(var ue=0,pe=le.length;ue<pe;ue++)ae.push(this.get(le[ue],oe));return ae},$.prototype.getByRawIndex=function(z,oe){if(!(oe>=0&&oe<this._rawCount))return NaN;var ae=this._chunks[z];return ae?ae[oe]:NaN},$.prototype.getSum=function(z){var oe=this._chunks[z],ae=0;if(oe)for(var le=0,ue=this.count();le<ue;le++){var pe=this.get(z,le);isNaN(pe)||(ae+=pe)}return ae},$.prototype.getMedian=function(z){var oe=[];this.each([z],function(ue){isNaN(ue)||oe.push(ue)});var ae=oe.sort(function(ue,pe){return ue-pe}),le=this.count();return le===0?0:le%2===1?ae[(le-1)/2]:(ae[le/2]+ae[le/2-1])/2},$.prototype.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var oe=this._indices,ae=oe[z];if(ae!=null&&ae<this._count&&ae===z)return z;for(var le=0,ue=this._count-1;le<=ue;){var pe=(le+ue)/2|0;if(oe[pe]<z)le=pe+1;else if(oe[pe]>z)ue=pe-1;else return pe}return-1},$.prototype.indicesOfNearest=function(z,oe,ae){var le=this._chunks,ue=le[z],pe=[];if(!ue)return pe;ae==null&&(ae=1/0);for(var _e=1/0,Ce=-1,$e=0,xe=0,Ie=this.count();xe<Ie;xe++){var Fe=this.getRawIndex(xe),ze=oe-ue[Fe],Ue=Math.abs(ze);Ue<=ae&&((Ue<_e||Ue===_e&&ze>=0&&Ce<0)&&(_e=Ue,Ce=ze,$e=0),ze===Ce&&(pe[$e++]=xe))}return pe.length=$e,pe},$.prototype.getIndices=function(){var z,oe=this._indices;if(oe){var ae=oe.constructor,le=this._count;if(ae===Array){z=new ae(le);for(var ue=0;ue<le;ue++)z[ue]=oe[ue]}else z=new ae(oe.buffer,0,le)}else{var ae=getIndicesCtor(this._rawCount);z=new ae(this.count());for(var ue=0;ue<z.length;ue++)z[ue]=ue}return z},$.prototype.filter=function(z,oe){if(!this._count)return this;for(var ae=this.clone(),le=ae.count(),ue=getIndicesCtor(ae._rawCount),pe=new ue(le),_e=[],Ce=z.length,$e=0,xe=z[0],Ie=ae._chunks,Fe=0;Fe<le;Fe++){var ze=void 0,Ue=ae.getRawIndex(Fe);if(Ce===0)ze=oe(Fe);else if(Ce===1){var qe=Ie[xe][Ue];ze=oe(qe,Fe)}else{for(var At=0;At<Ce;At++)_e[At]=Ie[z[At]][Ue];_e[At]=Fe,ze=oe.apply(null,_e)}ze&&(pe[$e++]=Ue)}return $e<le&&(ae._indices=pe),ae._count=$e,ae._extent=[],ae._updateGetRawIdx(),ae},$.prototype.selectRange=function(z){var oe=this.clone(),ae=oe._count;if(!ae)return this;var le=keys(z),ue=le.length;if(!ue)return this;var pe=oe.count(),_e=getIndicesCtor(oe._rawCount),Ce=new _e(pe),$e=0,xe=le[0],Ie=z[xe][0],Fe=z[xe][1],ze=oe._chunks,Ue=!1;if(!oe._indices){var qe=0;if(ue===1){for(var At=ze[le[0]],Lt=0;Lt<ae;Lt++){var hn=At[Lt];(hn>=Ie&&hn<=Fe||isNaN(hn))&&(Ce[$e++]=qe),qe++}Ue=!0}else if(ue===2){for(var At=ze[le[0]],vn=ze[le[1]],_n=z[le[1]][0],bn=z[le[1]][1],Lt=0;Lt<ae;Lt++){var hn=At[Lt],Sn=vn[Lt];(hn>=Ie&&hn<=Fe||isNaN(hn))&&(Sn>=_n&&Sn<=bn||isNaN(Sn))&&(Ce[$e++]=qe),qe++}Ue=!0}}if(!Ue)if(ue===1)for(var Lt=0;Lt<pe;Lt++){var Cn=oe.getRawIndex(Lt),hn=ze[le[0]][Cn];(hn>=Ie&&hn<=Fe||isNaN(hn))&&(Ce[$e++]=Cn)}else for(var Lt=0;Lt<pe;Lt++){for(var En=!0,Cn=oe.getRawIndex(Lt),$n=0;$n<ue;$n++){var wn=le[$n],hn=ze[wn][Cn];(hn<z[wn][0]||hn>z[wn][1])&&(En=!1)}En&&(Ce[$e++]=oe.getRawIndex(Lt))}return $e<pe&&(oe._indices=Ce),oe._count=$e,oe._extent=[],oe._updateGetRawIdx(),oe},$.prototype.map=function(z,oe){var ae=this.clone(z);return this._updateDims(ae,z,oe),ae},$.prototype.modify=function(z,oe){this._updateDims(this,z,oe)},$.prototype._updateDims=function(z,oe,ae){for(var le=z._chunks,ue=[],pe=oe.length,_e=z.count(),Ce=[],$e=z._rawExtent,xe=0;xe<oe.length;xe++)$e[oe[xe]]=getInitialExtent();for(var Ie=0;Ie<_e;Ie++){for(var Fe=z.getRawIndex(Ie),ze=0;ze<pe;ze++)Ce[ze]=le[oe[ze]][Fe];Ce[pe]=Ie;var Ue=ae&&ae.apply(null,Ce);if(Ue!=null){typeof Ue!="object"&&(ue[0]=Ue,Ue=ue);for(var xe=0;xe<Ue.length;xe++){var qe=oe[xe],At=Ue[xe],Lt=$e[qe],hn=le[qe];hn&&(hn[Fe]=At),At<Lt[0]&&(Lt[0]=At),At>Lt[1]&&(Lt[1]=At)}}}},$.prototype.lttbDownSample=function(z,oe){var ae=this.clone([z],!0),le=ae._chunks,ue=le[z],pe=this.count(),_e=0,Ce=Math.floor(1/oe),$e=this.getRawIndex(0),xe,Ie,Fe,ze=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(pe/Ce)+2)*2,pe));ze[_e++]=$e;for(var Ue=1;Ue<pe-1;Ue+=Ce){for(var qe=Math.min(Ue+Ce,pe-1),At=Math.min(Ue+Ce*2,pe),Lt=(At+qe)/2,hn=0,vn=qe;vn<At;vn++){var _n=this.getRawIndex(vn),bn=ue[_n];isNaN(bn)||(hn+=bn)}hn/=At-qe;var Sn=Ue,Cn=Math.min(Ue+Ce,pe),En=Ue-1,$n=ue[$e];xe=-1,Fe=Sn;for(var wn=-1,Tn=0,vn=Sn;vn<Cn;vn++){var _n=this.getRawIndex(vn),bn=ue[_n];if(isNaN(bn)){Tn++,wn<0&&(wn=_n);continue}Ie=Math.abs((En-Lt)*(bn-$n)-(En-vn)*(hn-$n)),Ie>xe&&(xe=Ie,Fe=_n)}Tn>0&&Tn<Cn-Sn&&(ze[_e++]=Math.min(wn,Fe),Fe=Math.max(wn,Fe)),ze[_e++]=Fe,$e=Fe}return ze[_e++]=this.getRawIndex(pe-1),ae._count=_e,ae._indices=ze,ae.getRawIndex=this._getRawIdx,ae},$.prototype.downSample=function(z,oe,ae,le){for(var ue=this.clone([z],!0),pe=ue._chunks,_e=[],Ce=Math.floor(1/oe),$e=pe[z],xe=this.count(),Ie=ue._rawExtent[z]=getInitialExtent(),Fe=new(getIndicesCtor(this._rawCount))(Math.ceil(xe/Ce)),ze=0,Ue=0;Ue<xe;Ue+=Ce){Ce>xe-Ue&&(Ce=xe-Ue,_e.length=Ce);for(var qe=0;qe<Ce;qe++){var At=this.getRawIndex(Ue+qe);_e[qe]=$e[At]}var Lt=ae(_e),hn=this.getRawIndex(Math.min(Ue+le(_e,Lt)||0,xe-1));$e[hn]=Lt,Lt<Ie[0]&&(Ie[0]=Lt),Lt>Ie[1]&&(Ie[1]=Lt),Fe[ze++]=hn}return ue._count=ze,ue._indices=Fe,ue._updateGetRawIdx(),ue},$.prototype.each=function(z,oe){if(this._count)for(var ae=z.length,le=this._chunks,ue=0,pe=this.count();ue<pe;ue++){var _e=this.getRawIndex(ue);switch(ae){case 0:oe(ue);break;case 1:oe(le[z[0]][_e],ue);break;case 2:oe(le[z[0]][_e],le[z[1]][_e],ue);break;default:for(var Ce=0,$e=[];Ce<ae;Ce++)$e[Ce]=le[z[Ce]][_e];$e[Ce]=ue,oe.apply(null,$e)}}},$.prototype.getDataExtent=function(z){var oe=this._chunks[z],ae=getInitialExtent();if(!oe)return ae;var le=this.count(),ue=!this._indices,pe;if(ue)return this._rawExtent[z].slice();if(pe=this._extent[z],pe)return pe.slice();pe=ae;for(var _e=pe[0],Ce=pe[1],$e=0;$e<le;$e++){var xe=this.getRawIndex($e),Ie=oe[xe];Ie<_e&&(_e=Ie),Ie>Ce&&(Ce=Ie)}return pe=[_e,Ce],this._extent[z]=pe,pe},$.prototype.getRawDataItem=function(z){var oe=this.getRawIndex(z);if(this._provider.persistent)return this._provider.getItem(oe);for(var ae=[],le=this._chunks,ue=0;ue<le.length;ue++)ae.push(le[ue][oe]);return ae},$.prototype.clone=function(z,oe){var ae=new $,le=this._chunks,ue=z&&reduce(z,function(_e,Ce){return _e[Ce]=!0,_e},{});if(ue)for(var pe=0;pe<le.length;pe++)ae._chunks[pe]=ue[pe]?cloneChunk(le[pe]):le[pe];else ae._chunks=le;return this._copyCommonProps(ae),oe||(ae._indices=this._cloneIndices()),ae._updateGetRawIdx(),ae},$.prototype._copyCommonProps=function(z){z._count=this._count,z._rawCount=this._rawCount,z._provider=this._provider,z._dimensions=this._dimensions,z._extent=clone$3(this._extent),z._rawExtent=clone$3(this._rawExtent)},$.prototype._cloneIndices=function(){if(this._indices){var z=this._indices.constructor,oe=void 0;if(z===Array){var ae=this._indices.length;oe=new z(ae);for(var le=0;le<ae;le++)oe[le]=this._indices[le]}else oe=new z(this._indices);return oe}return null},$.prototype._getRawIdxIdentity=function(z){return z},$.prototype._getRawIdx=function(z){return z<this._count&&z>=0?this._indices[z]:-1},$.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},$.internalField=function(){function z(oe,ae,le,ue){return parseDataValue(oe[ue],this._dimensions[ue])}defaultDimValueGetters={arrayRows:z,objectRows:function(oe,ae,le,ue){return parseDataValue(oe[ae],this._dimensions[ue])},keyedColumns:z,original:function(oe,ae,le,ue){var pe=oe&&(oe.value==null?oe:oe.value);return parseDataValue(pe instanceof Array?pe[ue]:pe,this._dimensions[ue])},typedArray:function(oe,ae,le,ue){return oe[ue]}}}(),$}();const DataStore$1=DataStore;var SourceManager=function(){function $(z){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=z}return $.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},$.prototype._setLocalSource=function(z,oe){this._sourceList=z,this._upstreamSignList=oe,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},$.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},$.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},$.prototype._createSource=function(){this._setLocalSource([],[]);var z=this._sourceHost,oe=this._getUpstreamSourceManagers(),ae=!!oe.length,le,ue;if(isSeries(z)){var pe=z,_e=void 0,Ce=void 0,$e=void 0;if(ae){var xe=oe[0];xe.prepareSource(),$e=xe.getSource(),_e=$e.data,Ce=$e.sourceFormat,ue=[xe._getVersionSign()]}else _e=pe.get("data",!0),Ce=isTypedArray(_e)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,ue=[];var Ie=this._getSourceMetaRawOption()||{},Fe=$e&&$e.metaRawOption||{},ze=retrieve2(Ie.seriesLayoutBy,Fe.seriesLayoutBy)||null,Ue=retrieve2(Ie.sourceHeader,Fe.sourceHeader),qe=retrieve2(Ie.dimensions,Fe.dimensions),At=ze!==Fe.seriesLayoutBy||!!Ue!=!!Fe.sourceHeader||qe;le=At?[createSource(_e,{seriesLayoutBy:ze,sourceHeader:Ue,dimensions:qe},Ce)]:[]}else{var Lt=z;if(ae){var hn=this._applyTransform(oe);le=hn.sourceList,ue=hn.upstreamSignList}else{var vn=Lt.get("source",!0);le=[createSource(vn,this._getSourceMetaRawOption(),null)],ue=[]}}this._setLocalSource(le,ue)},$.prototype._applyTransform=function(z){var oe=this._sourceHost,ae=oe.get("transform",!0),le=oe.get("fromTransformResult",!0);if(le!=null){var ue="";z.length!==1&&doThrow(ue)}var pe,_e=[],Ce=[];return each$c(z,function($e){$e.prepareSource();var xe=$e.getSource(le||0),Ie="";le!=null&&!xe&&doThrow(Ie),_e.push(xe),Ce.push($e._getVersionSign())}),ae?pe=applyDataTransform(ae,_e,{datasetIndex:oe.componentIndex}):le!=null&&(pe=[cloneSourceShallow(_e[0])]),{sourceList:pe,upstreamSignList:Ce}},$.prototype._isDirty=function(){if(this._dirty)return!0;for(var z=this._getUpstreamSourceManagers(),oe=0;oe<z.length;oe++){var ae=z[oe];if(ae._isDirty()||this._upstreamSignList[oe]!==ae._getVersionSign())return!0}},$.prototype.getSource=function(z){z=z||0;var oe=this._sourceList[z];if(!oe){var ae=this._getUpstreamSourceManagers();return ae[0]&&ae[0].getSource(z)}return oe},$.prototype.getSharedDataStore=function(z){var oe=z.makeStoreSchema();return this._innerGetDataStore(oe.dimensions,z.source,oe.hash)},$.prototype._innerGetDataStore=function(z,oe,ae){var le=0,ue=this._storeList,pe=ue[le];pe||(pe=ue[le]={});var _e=pe[ae];if(!_e){var Ce=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&Ce?_e=Ce._innerGetDataStore(z,oe,ae):(_e=new DataStore$1,_e.initData(new DefaultDataProvider(oe,z.length),z)),pe[ae]=_e}return _e},$.prototype._getUpstreamSourceManagers=function(){var z=this._sourceHost;if(isSeries(z)){var oe=querySeriesUpstreamDatasetModel(z);return oe?[oe.getSourceManager()]:[]}else return map$2(queryDatasetUpstreamDatasetModels(z),function(ae){return ae.getSourceManager()})},$.prototype._getSourceMetaRawOption=function(){var z=this._sourceHost,oe,ae,le;if(isSeries(z))oe=z.get("seriesLayoutBy",!0),ae=z.get("sourceHeader",!0),le=z.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var ue=z;oe=ue.get("seriesLayoutBy",!0),ae=ue.get("sourceHeader",!0),le=ue.get("dimensions",!0)}return{seriesLayoutBy:oe,sourceHeader:ae,dimensions:le}},$}();function isSeries($){return $.mainType==="series"}function doThrow($){throw new Error($)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle($,z){var oe=$.color||"#6e7079",ae=$.fontSize||12,le=$.fontWeight||"400",ue=$.color||"#464646",pe=$.fontSize||14,_e=$.fontWeight||"900";return z==="html"?{nameStyle:"font-size:"+encodeHTML(ae+"")+"px;color:"+encodeHTML(oe)+";font-weight:"+encodeHTML(le+""),valueStyle:"font-size:"+encodeHTML(pe+"")+"px;color:"+encodeHTML(ue)+";font-weight:"+encodeHTML(_e+"")}:{nameStyle:{fontSize:ae,fill:oe,fontWeight:le},valueStyle:{fontSize:pe,fill:ue,fontWeight:_e}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function createTooltipMarkup($,z){return z.type=$,z}function isSectionFragment($){return $.type==="section"}function getBuilder($){return isSectionFragment($)?buildSection:buildNameValue}function getBlockGapLevel($){if(isSectionFragment($)){var z=0,oe=$.blocks.length,ae=oe>1||oe>0&&!$.noHeader;return each$c($.blocks,function(le){var ue=getBlockGapLevel(le);ue>=z&&(z=ue+ +(ae&&(!ue||isSectionFragment(le)&&!le.noHeader)))}),z}return 0}function buildSection($,z,oe,ae){var le=z.noHeader,ue=getGap(getBlockGapLevel(z)),pe=[],_e=z.blocks||[];assert(!_e||isArray$1(_e)),_e=_e||[];var Ce=$.orderMode;if(z.sortBlocks&&Ce){_e=_e.slice();var $e={valueAsc:"asc",valueDesc:"desc"};if(hasOwn($e,Ce)){var xe=new SortOrderComparator($e[Ce],null);_e.sort(function(Ue,qe){return xe.evaluate(Ue.sortParam,qe.sortParam)})}else Ce==="seriesDesc"&&_e.reverse()}each$c(_e,function(Ue,qe){var At=z.valueFormatter,Lt=getBuilder(Ue)(At?extend(extend({},$),{valueFormatter:At}):$,Ue,qe>0?ue.html:0,ae);Lt!=null&&pe.push(Lt)});var Ie=$.renderMode==="richText"?pe.join(ue.richText):wrapBlockHTML(pe.join(""),le?oe:ue.html);if(le)return Ie;var Fe=makeValueReadable(z.header,"ordinal",$.useUTC),ze=getTooltipTextStyle(ae,$.renderMode).nameStyle;return $.renderMode==="richText"?wrapInlineNameRichText($,Fe,ze)+ue.richText+Ie:wrapBlockHTML('<div style="'+ze+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(Fe)+"</div>"+Ie,oe)}function buildNameValue($,z,oe,ae){var le=$.renderMode,ue=z.noName,pe=z.noValue,_e=!z.markerType,Ce=z.name,$e=$.useUTC,xe=z.valueFormatter||$.valueFormatter||function(_n){return _n=isArray$1(_n)?_n:[_n],map$2(_n,function(bn,Sn){return makeValueReadable(bn,isArray$1(ze)?ze[Sn]:ze,$e)})};if(!(ue&&pe)){var Ie=_e?"":$.markupStyleCreator.makeTooltipMarker(z.markerType,z.markerColor||"#333",le),Fe=ue?"":makeValueReadable(Ce,"ordinal",$e),ze=z.valueType,Ue=pe?[]:xe(z.value),qe=!_e||!ue,At=!_e&&ue,Lt=getTooltipTextStyle(ae,le),hn=Lt.nameStyle,vn=Lt.valueStyle;return le==="richText"?(_e?"":Ie)+(ue?"":wrapInlineNameRichText($,Fe,hn))+(pe?"":wrapInlineValueRichText($,Ue,qe,At,vn)):wrapBlockHTML((_e?"":Ie)+(ue?"":wrapInlineNameHTML(Fe,!_e,hn))+(pe?"":wrapInlineValueHTML(Ue,qe,At,vn)),oe)}}function buildTooltipMarkup($,z,oe,ae,le,ue){if($){var pe=getBuilder($),_e={useUTC:le,renderMode:oe,orderMode:ae,markupStyleCreator:z,valueFormatter:$.valueFormatter};return pe(_e,$,0,ue)}}function getGap($){return{html:HTML_GAPS[$],richText:RICH_TEXT_GAPS[$]}}function wrapBlockHTML($,z){var oe='<div style="clear:both"></div>',ae="margin: "+z+"px 0 0";return'<div style="'+ae+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+$+oe+"</div>"}function wrapInlineNameHTML($,z,oe){var ae=z?"margin-left:2px":"";return'<span style="'+oe+";"+ae+'">'+encodeHTML($)+"</span>"}function wrapInlineValueHTML($,z,oe,ae){var le=oe?"10px":"20px",ue=z?"float:right;margin-left:"+le:"";return $=isArray$1($)?$:[$],'<span style="'+ue+";"+ae+'">'+map$2($,function(pe){return encodeHTML(pe)}).join(" ")+"</span>"}function wrapInlineNameRichText($,z,oe){return $.markupStyleCreator.wrapRichTextStyle(z,oe)}function wrapInlineValueRichText($,z,oe,ae,le){var ue=[le],pe=ae?10:20;return oe&&ue.push({padding:[0,0,0,pe],align:"right"}),$.markupStyleCreator.wrapRichTextStyle(isArray$1(z)?z.join(" "):z,ue)}function retrieveVisualColorForTooltipMarker($,z){var oe=$.getData().getItemVisual(z,"style"),ae=oe[$.visualDrawType];return convertToColorString(ae)}function getPaddingFromTooltipModel($,z){var oe=$.get("padding");return oe??(z==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function $(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return $.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},$.prototype.makeTooltipMarker=function(z,oe,ae){var le=ae==="richText"?this._generateStyleName():null,ue=getTooltipMarker({color:oe,type:z,renderMode:ae,markerId:le});return isString(ue)?ue:(this.richTextStyles[le]=ue.style,ue.content)},$.prototype.wrapRichTextStyle=function(z,oe){var ae={};isArray$1(oe)?each$c(oe,function(ue){return extend(ae,ue)}):extend(ae,oe);var le=this._generateStyleName();return this.richTextStyles[le]=ae,"{"+le+"|"+z+"}"},$}();function defaultSeriesFormatTooltip($){var z=$.series,oe=$.dataIndex,ae=$.multipleSeries,le=z.getData(),ue=le.mapDimensionsAll("defaultedTooltip"),pe=ue.length,_e=z.getRawValue(oe),Ce=isArray$1(_e),$e=retrieveVisualColorForTooltipMarker(z,oe),xe,Ie,Fe,ze;if(pe>1||Ce&&!pe){var Ue=formatTooltipArrayValue(_e,z,oe,ue,$e);xe=Ue.inlineValues,Ie=Ue.inlineValueTypes,Fe=Ue.blocks,ze=Ue.inlineValues[0]}else if(pe){var qe=le.getDimensionInfo(ue[0]);ze=xe=retrieveRawValue(le,oe,ue[0]),Ie=qe.type}else ze=xe=Ce?_e[0]:_e;var At=isNameSpecified(z),Lt=At&&z.name||"",hn=le.getName(oe),vn=ae?Lt:hn;return createTooltipMarkup("section",{header:Lt,noHeader:ae||!At,sortParam:ze,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:$e,name:vn,noName:!trim$1(vn),value:xe,valueType:Ie})].concat(Fe||[])})}function formatTooltipArrayValue($,z,oe,ae,le){var ue=z.getData(),pe=reduce($,function(Ie,Fe,ze){var Ue=ue.getDimensionInfo(ze);return Ie=Ie||Ue&&Ue.tooltip!==!1&&Ue.displayName!=null},!1),_e=[],Ce=[],$e=[];ae.length?each$c(ae,function(Ie){xe(retrieveRawValue(ue,oe,Ie),Ie)}):each$c($,xe);function xe(Ie,Fe){var ze=ue.getDimensionInfo(Fe);!ze||ze.otherDims.tooltip===!1||(pe?$e.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:le,name:ze.displayName,value:Ie,valueType:ze.type})):(_e.push(Ie),Ce.push(ze.type)))}return{inlineValues:_e,inlineValueTypes:Ce,blocks:$e}}var inner$b=makeInner();function getSelectionKey($,z){return $.getName(z)||$.getId(z)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe._selectedDataIndicesMap={},oe}return z.prototype.init=function(oe,ae,le){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(oe,le);var ue=inner$b(this).sourceManager=new SourceManager(this);ue.prepareSource();var pe=this.getInitialData(oe,le);wrapData(pe,this),this.dataTask.context.data=pe,inner$b(this).dataBeforeProcessed=pe,autoSeriesName(this),this._initSelectedMapFromData(pe)},z.prototype.mergeDefaultAndTheme=function(oe,ae){var le=fetchLayoutMode(this),ue=le?getLayoutParams(oe):{},pe=this.subType;ComponentModel$1.hasClass(pe)&&(pe+="Series"),merge(oe,ae.getTheme().get(this.subType)),merge(oe,this.getDefaultOption()),defaultEmphasis(oe,"label",["show"]),this.fillDataTextStyle(oe.data),le&&mergeLayoutParam(oe,ue,le)},z.prototype.mergeOption=function(oe,ae){oe=merge(this.option,oe,!0),this.fillDataTextStyle(oe.data);var le=fetchLayoutMode(this);le&&mergeLayoutParam(this.option,oe,le);var ue=inner$b(this).sourceManager;ue.dirty(),ue.prepareSource();var pe=this.getInitialData(oe,ae);wrapData(pe,this),this.dataTask.dirty(),this.dataTask.context.data=pe,inner$b(this).dataBeforeProcessed=pe,autoSeriesName(this),this._initSelectedMapFromData(pe)},z.prototype.fillDataTextStyle=function(oe){if(oe&&!isTypedArray(oe))for(var ae=["show"],le=0;le<oe.length;le++)oe[le]&&oe[le].label&&defaultEmphasis(oe[le],"label",ae)},z.prototype.getInitialData=function(oe,ae){},z.prototype.appendData=function(oe){var ae=this.getRawData();ae.appendData(oe.data)},z.prototype.getData=function(oe){var ae=getCurrentTask(this);if(ae){var le=ae.context.data;return oe==null?le:le.getLinkedData(oe)}else return inner$b(this).data},z.prototype.getAllData=function(){var oe=this.getData();return oe&&oe.getLinkedDataAll?oe.getLinkedDataAll():[{data:oe}]},z.prototype.setData=function(oe){var ae=getCurrentTask(this);if(ae){var le=ae.context;le.outputData=oe,ae!==this.dataTask&&(le.data=oe)}inner$b(this).data=oe},z.prototype.getEncode=function(){var oe=this.get("encode",!0);if(oe)return createHashMap(oe)},z.prototype.getSourceManager=function(){return inner$b(this).sourceManager},z.prototype.getSource=function(){return this.getSourceManager().getSource()},z.prototype.getRawData=function(){return inner$b(this).dataBeforeProcessed},z.prototype.getColorBy=function(){var oe=this.get("colorBy");return oe||"series"},z.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},z.prototype.getBaseAxis=function(){var oe=this.coordinateSystem;return oe&&oe.getBaseAxis&&oe.getBaseAxis()},z.prototype.formatTooltip=function(oe,ae,le){return defaultSeriesFormatTooltip({series:this,dataIndex:oe,multipleSeries:ae})},z.prototype.isAnimationEnabled=function(){var oe=this.ecModel;if(env$1.node&&!(oe&&oe.ssr))return!1;var ae=this.getShallow("animation");return ae&&this.getData().count()>this.getShallow("animationThreshold")&&(ae=!1),!!ae},z.prototype.restoreData=function(){this.dataTask.dirty()},z.prototype.getColorFromPalette=function(oe,ae,le){var ue=this.ecModel,pe=PaletteMixin.prototype.getColorFromPalette.call(this,oe,ae,le);return pe||(pe=ue.getColorFromPalette(oe,ae,le)),pe},z.prototype.coordDimToDataDim=function(oe){return this.getRawData().mapDimensionsAll(oe)},z.prototype.getProgressive=function(){return this.get("progressive")},z.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},z.prototype.select=function(oe,ae){this._innerSelect(this.getData(ae),oe)},z.prototype.unselect=function(oe,ae){var le=this.option.selectedMap;if(le){var ue=this.option.selectedMode,pe=this.getData(ae);if(ue==="series"||le==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var _e=0;_e<oe.length;_e++){var Ce=oe[_e],$e=getSelectionKey(pe,Ce);le[$e]=!1,this._selectedDataIndicesMap[$e]=-1}}},z.prototype.toggleSelect=function(oe,ae){for(var le=[],ue=0;ue<oe.length;ue++)le[0]=oe[ue],this.isSelected(oe[ue],ae)?this.unselect(le,ae):this.select(le,ae)},z.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var oe=this._selectedDataIndicesMap,ae=keys(oe),le=[],ue=0;ue<ae.length;ue++){var pe=oe[ae[ue]];pe>=0&&le.push(pe)}return le},z.prototype.isSelected=function(oe,ae){var le=this.option.selectedMap;if(!le)return!1;var ue=this.getData(ae);return(le==="all"||le[getSelectionKey(ue,oe)])&&!ue.getItemModel(oe).get(["select","disabled"])},z.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var oe=this.option.universalTransition;return oe?oe===!0?!0:oe&&oe.enabled:!1},z.prototype._innerSelect=function(oe,ae){var le,ue,pe=this.option,_e=pe.selectedMode,Ce=ae.length;if(!(!_e||!Ce)){if(_e==="series")pe.selectedMap="all";else if(_e==="multiple"){isObject$3(pe.selectedMap)||(pe.selectedMap={});for(var $e=pe.selectedMap,xe=0;xe<Ce;xe++){var Ie=ae[xe],Fe=getSelectionKey(oe,Ie);$e[Fe]=!0,this._selectedDataIndicesMap[Fe]=oe.getRawIndex(Ie)}}else if(_e==="single"||_e===!0){var ze=ae[Ce-1],Fe=getSelectionKey(oe,ze);pe.selectedMap=(le={},le[Fe]=!0,le),this._selectedDataIndicesMap=(ue={},ue[Fe]=oe.getRawIndex(ze),ue)}}},z.prototype._initSelectedMapFromData=function(oe){if(!this.option.selectedMap){var ae=[];oe.hasItemOption&&oe.each(function(le){var ue=oe.getRawDataItem(le);ue&&ue.selected&&ae.push(le)}),ae.length>0&&this._innerSelect(oe,ae)}},z.registerClass=function(oe){return ComponentModel$1.registerClass(oe)},z.protoInitialize=function(){var oe=z.prototype;oe.type="series.__base__",oe.seriesIndex=0,oe.ignoreStyleOnData=!1,oe.hasSymbolVisual=!1,oe.defaultSymbol="circle",oe.visualStyleAccessPath="itemStyle",oe.visualDrawType="fill"}(),z}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName($){var z=$.name;isNameSpecified($)||($.name=getSeriesAutoName($)||z)}function getSeriesAutoName($){var z=$.getRawData(),oe=z.mapDimensionsAll("seriesName"),ae=[];return each$c(oe,function(le){var ue=z.getDimensionInfo(le);ue.displayName&&ae.push(ue.displayName)}),ae.join(" ")}function dataTaskCount($){return $.model.getRawData().count()}function dataTaskReset($){var z=$.model;return z.setData(z.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress($,z){z.outputData&&$.end>z.outputData.count()&&z.model.getRawData().cloneShallow(z.outputData)}function wrapData($,z){each$c(concatArray($.CHANGABLE_METHODS,$.DOWNSAMPLE_METHODS),function(oe){$.wrapMethod(oe,curry$1(onDataChange,z))})}function onDataChange($,z){var oe=getCurrentTask($);return oe&&oe.setOutputEnd((z||this).count()),z}function getCurrentTask($){var z=($.ecModel||{}).scheduler,oe=z&&z.getPipeline($.uid);if(oe){var ae=oe.currentTask;if(ae){var le=ae.agentStubMap;le&&(ae=le.get($.uid))}return ae}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewComponent")}return $.prototype.init=function(z,oe){},$.prototype.render=function(z,oe,ae,le){},$.prototype.dispose=function(z,oe){},$.prototype.updateView=function(z,oe,ae,le){},$.prototype.updateLayout=function(z,oe,ae,le){},$.prototype.updateVisual=function(z,oe,ae,le){},$.prototype.toggleBlurSeries=function(z,oe,ae){},$.prototype.eachRendered=function(z){var oe=this.group;oe&&oe.traverse(z)},$}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var $=makeInner();return function(z){var oe=$(z),ae=z.pipelineContext,le=!!oe.large,ue=!!oe.progressiveRender,pe=oe.large=!!(ae&&ae.large),_e=oe.progressiveRender=!!(ae&&ae.progressiveRender);return(le!==pe||ue!==_e)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return $.prototype.init=function(z,oe){},$.prototype.render=function(z,oe,ae,le){},$.prototype.highlight=function(z,oe,ae,le){var ue=z.getData(le&&le.dataType);ue&&toggleHighlight(ue,le,"emphasis")},$.prototype.downplay=function(z,oe,ae,le){var ue=z.getData(le&&le.dataType);ue&&toggleHighlight(ue,le,"normal")},$.prototype.remove=function(z,oe){this.group.removeAll()},$.prototype.dispose=function(z,oe){},$.prototype.updateView=function(z,oe,ae,le){this.render(z,oe,ae,le)},$.prototype.updateLayout=function(z,oe,ae,le){this.render(z,oe,ae,le)},$.prototype.updateVisual=function(z,oe,ae,le){this.render(z,oe,ae,le)},$.prototype.eachRendered=function(z){traverseElements(this.group,z)},$.markUpdateMethod=function(z,oe){inner$a(z).updateMethod=oe},$.protoInitialize=function(){var z=$.prototype;z.type="chart"}(),$}();function elSetState($,z,oe){$&&isHighDownDispatcher($)&&(z==="emphasis"?enterEmphasis:leaveEmphasis)($,oe)}function toggleHighlight($,z,oe){var ae=queryDataIndex($,z),le=z&&z.highlightKey!=null?getHighlightDigit(z.highlightKey):null;ae!=null?each$c(normalizeToArray(ae),function(ue){elSetState($.getItemGraphicEl(ue),oe,le)}):$.eachItemGraphicEl(function(ue){elSetState(ue,oe,le)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan($){return renderPlanner($.model)}function renderTaskReset($){var z=$.model,oe=$.ecModel,ae=$.api,le=$.payload,ue=z.pipelineContext.progressiveRender,pe=$.view,_e=le&&inner$a(le).updateMethod,Ce=ue?"incrementalPrepareRender":_e&&pe[_e]?_e:"render";return Ce!=="render"&&pe[Ce](z,oe,ae,le),progressMethodMap[Ce]}var progressMethodMap={incrementalPrepareRender:{progress:function($,z){z.view.incrementalRender($,z.model,z.ecModel,z.api,z.payload)}},render:{forceFirstProgress:!0,progress:function($,z){z.view.render(z.model,z.ecModel,z.api,z.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle($,z,oe){var ae,le=0,ue=0,pe=null,_e,Ce,$e,xe;z=z||0;function Ie(){ue=new Date().getTime(),pe=null,$.apply(Ce,$e||[])}var Fe=function(){for(var ze=[],Ue=0;Ue<arguments.length;Ue++)ze[Ue]=arguments[Ue];ae=new Date().getTime(),Ce=this,$e=ze;var qe=xe||z,At=xe||oe;xe=null,_e=ae-(At?le:ue)-qe,clearTimeout(pe),At?pe=setTimeout(Ie,qe):_e>=0?Ie():pe=setTimeout(Ie,-_e),le=ae};return Fe.clear=function(){pe&&(clearTimeout(pe),pe=null)},Fe.debounceNextCall=function(ze){xe=ze},Fe}function createOrUpdate($,z,oe,ae){var le=$[z];if(le){var ue=le[ORIGIN_METHOD]||le,pe=le[THROTTLE_TYPE],_e=le[RATE];if(_e!==oe||pe!==ae){if(oe==null||!ae)return $[z]=ue;le=$[z]=throttle(ue,oe,ae==="debounce"),le[ORIGIN_METHOD]=ue,le[THROTTLE_TYPE]=ae,le[RATE]=oe}return le}}function clear$1($,z){var oe=$[z];oe&&oe[ORIGIN_METHOD]&&(oe.clear&&oe.clear(),$[z]=oe[ORIGIN_METHOD])}var inner$9=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper($,z){var oe=$.visualStyleMapper||defaultStyleMappers[z];return oe||(console.warn("Unknown style type '"+z+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey($,z){var oe=$.visualDrawType||defaultColorKey[z];return oe||(console.warn("Unknown style type '"+z+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){var oe=$.getData(),ae=$.visualStyleAccessPath||"itemStyle",le=$.getModel(ae),ue=getStyleMapper($,ae),pe=ue(le),_e=le.getShallow("decal");_e&&(oe.setVisual("decal",_e),_e.dirty=!0);var Ce=getDefaultColorKey($,ae),$e=pe[Ce],xe=isFunction($e)?$e:null,Ie=pe.fill==="auto"||pe.stroke==="auto";if(!pe[Ce]||xe||Ie){var Fe=$.getColorFromPalette($.name,null,z.getSeriesCount());pe[Ce]||(pe[Ce]=Fe,oe.setVisual("colorFromPalette",!0)),pe.fill=pe.fill==="auto"||isFunction(pe.fill)?Fe:pe.fill,pe.stroke=pe.stroke==="auto"||isFunction(pe.stroke)?Fe:pe.stroke}if(oe.setVisual("style",pe),oe.setVisual("drawType",Ce),!z.isSeriesFiltered($)&&xe)return oe.setVisual("colorFromPalette",!1),{dataEach:function(ze,Ue){var qe=$.getDataParams(Ue),At=extend({},pe);At[Ce]=xe(qe),ze.setItemVisual(Ue,"style",At)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){if(!($.ignoreStyleOnData||z.isSeriesFiltered($))){var oe=$.getData(),ae=$.visualStyleAccessPath||"itemStyle",le=getStyleMapper($,ae),ue=oe.getVisual("drawType");return{dataEach:oe.hasItemOption?function(pe,_e){var Ce=pe.getRawDataItem(_e);if(Ce&&Ce[ae]){sharedModel.option=Ce[ae];var $e=le(sharedModel),xe=pe.ensureUniqueItemVisual(_e,"style");extend(xe,$e),sharedModel.option.decal&&(pe.setItemVisual(_e,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),ue in $e&&pe.setItemVisual(_e,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function($){var z=createHashMap();$.eachSeries(function(oe){var ae=oe.getColorBy();if(!oe.isColorBySeries()){var le=oe.type+"-"+ae,ue=z.get(le);ue||(ue={},z.set(le,ue)),inner$9(oe).scope=ue}}),$.eachSeries(function(oe){if(!(oe.isColorBySeries()||$.isSeriesFiltered(oe))){var ae=oe.getRawData(),le={},ue=oe.getData(),pe=inner$9(oe).scope,_e=oe.visualStyleAccessPath||"itemStyle",Ce=getDefaultColorKey(oe,_e);ue.each(function($e){var xe=ue.getRawIndex($e);le[xe]=$e}),ae.each(function($e){var xe=le[$e],Ie=ue.getItemVisual(xe,"colorFromPalette");if(Ie){var Fe=ue.ensureUniqueItemVisual(xe,"style"),ze=ae.getName($e)||$e+"",Ue=ae.count();Fe[Ce]=oe.getColorFromPalette(ze,pe,Ue)}})}})}},PI$1=Math.PI;function defaultLoading($,z){z=z||{},defaults(z,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var oe=new Group$3,ae=new Rect$2({style:{fill:z.maskColor},zlevel:z.zlevel,z:1e4});oe.add(ae);var le=new ZRText$1({style:{text:z.text,fill:z.textColor,fontSize:z.fontSize,fontWeight:z.fontWeight,fontStyle:z.fontStyle,fontFamily:z.fontFamily},zlevel:z.zlevel,z:10001}),ue=new Rect$2({style:{fill:"none"},textContent:le,textConfig:{position:"right",distance:10},zlevel:z.zlevel,z:10001});oe.add(ue);var pe;return z.showSpinner&&(pe=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:z.spinnerRadius},style:{stroke:z.color,lineCap:"round",lineWidth:z.lineWidth},zlevel:z.zlevel,z:10001}),pe.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),pe.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),oe.add(pe)),oe.resize=function(){var _e=le.getBoundingRect().width,Ce=z.showSpinner?z.spinnerRadius:0,$e=($.getWidth()-Ce*2-(z.showSpinner&&_e?10:0)-_e)/2-(z.showSpinner&&_e?0:5+_e/2)+(z.showSpinner?0:_e/2)+(_e?0:Ce),xe=$.getHeight()/2;z.showSpinner&&pe.setShape({cx:$e,cy:xe}),ue.setShape({x:$e-Ce,y:xe-Ce,width:Ce*2,height:Ce*2}),ae.setShape({x:0,y:0,width:$.getWidth(),height:$.getHeight()})},oe.resize(),oe}var Scheduler=function(){function $(z,oe,ae,le){this._stageTaskMap=createHashMap(),this.ecInstance=z,this.api=oe,ae=this._dataProcessorHandlers=ae.slice(),le=this._visualHandlers=le.slice(),this._allHandlers=ae.concat(le)}return $.prototype.restoreData=function(z,oe){z.restoreData(oe),this._stageTaskMap.each(function(ae){var le=ae.overallTask;le&&le.dirty()})},$.prototype.getPerformArgs=function(z,oe){if(z.__pipeline){var ae=this._pipelineMap.get(z.__pipeline.id),le=ae.context,ue=!oe&&ae.progressiveEnabled&&(!le||le.progressiveRender)&&z.__idxInPipeline>ae.blockIndex,pe=ue?ae.step:null,_e=le&&le.modDataCount,Ce=_e!=null?Math.ceil(_e/pe):null;return{step:pe,modBy:Ce,modDataCount:_e}}},$.prototype.getPipeline=function(z){return this._pipelineMap.get(z)},$.prototype.updateStreamModes=function(z,oe){var ae=this._pipelineMap.get(z.uid),le=z.getData(),ue=le.count(),pe=ae.progressiveEnabled&&oe.incrementalPrepareRender&&ue>=ae.threshold,_e=z.get("large")&&ue>=z.get("largeThreshold"),Ce=z.get("progressiveChunkMode")==="mod"?ue:null;z.pipelineContext=ae.context={progressiveRender:pe,modDataCount:Ce,large:_e}},$.prototype.restorePipelines=function(z){var oe=this,ae=oe._pipelineMap=createHashMap();z.eachSeries(function(le){var ue=le.getProgressive(),pe=le.uid;ae.set(pe,{id:pe,head:null,tail:null,threshold:le.getProgressiveThreshold(),progressiveEnabled:ue&&!(le.preventIncremental&&le.preventIncremental()),blockIndex:-1,step:Math.round(ue||700),count:0}),oe._pipe(le,le.dataTask)})},$.prototype.prepareStageTasks=function(){var z=this._stageTaskMap,oe=this.api.getModel(),ae=this.api;each$c(this._allHandlers,function(le){var ue=z.get(le.uid)||z.set(le.uid,{}),pe="";assert(!(le.reset&&le.overallReset),pe),le.reset&&this._createSeriesStageTask(le,ue,oe,ae),le.overallReset&&this._createOverallStageTask(le,ue,oe,ae)},this)},$.prototype.prepareView=function(z,oe,ae,le){var ue=z.renderTask,pe=ue.context;pe.model=oe,pe.ecModel=ae,pe.api=le,ue.__block=!z.incrementalPrepareRender,this._pipe(oe,ue)},$.prototype.performDataProcessorTasks=function(z,oe){this._performStageTasks(this._dataProcessorHandlers,z,oe,{block:!0})},$.prototype.performVisualTasks=function(z,oe,ae){this._performStageTasks(this._visualHandlers,z,oe,ae)},$.prototype._performStageTasks=function(z,oe,ae,le){le=le||{};var ue=!1,pe=this;each$c(z,function(Ce,$e){if(!(le.visualType&&le.visualType!==Ce.visualType)){var xe=pe._stageTaskMap.get(Ce.uid),Ie=xe.seriesTaskMap,Fe=xe.overallTask;if(Fe){var ze,Ue=Fe.agentStubMap;Ue.each(function(At){_e(le,At)&&(At.dirty(),ze=!0)}),ze&&Fe.dirty(),pe.updatePayload(Fe,ae);var qe=pe.getPerformArgs(Fe,le.block);Ue.each(function(At){At.perform(qe)}),Fe.perform(qe)&&(ue=!0)}else Ie&&Ie.each(function(At,Lt){_e(le,At)&&At.dirty();var hn=pe.getPerformArgs(At,le.block);hn.skip=!Ce.performRawSeries&&oe.isSeriesFiltered(At.context.model),pe.updatePayload(At,ae),At.perform(hn)&&(ue=!0)})}});function _e(Ce,$e){return Ce.setDirty&&(!Ce.dirtyMap||Ce.dirtyMap.get($e.__pipeline.id))}this.unfinished=ue||this.unfinished},$.prototype.performSeriesTasks=function(z){var oe;z.eachSeries(function(ae){oe=ae.dataTask.perform()||oe}),this.unfinished=oe||this.unfinished},$.prototype.plan=function(){this._pipelineMap.each(function(z){var oe=z.tail;do{if(oe.__block){z.blockIndex=oe.__idxInPipeline;break}oe=oe.getUpstream()}while(oe)})},$.prototype.updatePayload=function(z,oe){oe!=="remain"&&(z.context.payload=oe)},$.prototype._createSeriesStageTask=function(z,oe,ae,le){var ue=this,pe=oe.seriesTaskMap,_e=oe.seriesTaskMap=createHashMap(),Ce=z.seriesType,$e=z.getTargetSeries;z.createOnAllSeries?ae.eachRawSeries(xe):Ce?ae.eachRawSeriesByType(Ce,xe):$e&&$e(ae,le).each(xe);function xe(Ie){var Fe=Ie.uid,ze=_e.set(Fe,pe&&pe.get(Fe)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));ze.context={model:Ie,ecModel:ae,api:le,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:ue},ue._pipe(Ie,ze)}},$.prototype._createOverallStageTask=function(z,oe,ae,le){var ue=this,pe=oe.overallTask=oe.overallTask||createTask({reset:overallTaskReset});pe.context={ecModel:ae,api:le,overallReset:z.overallReset,scheduler:ue};var _e=pe.agentStubMap,Ce=pe.agentStubMap=createHashMap(),$e=z.seriesType,xe=z.getTargetSeries,Ie=!0,Fe=!1,ze="";assert(!z.createOnAllSeries,ze),$e?ae.eachRawSeriesByType($e,Ue):xe?xe(ae,le).each(Ue):(Ie=!1,each$c(ae.getSeries(),Ue));function Ue(qe){var At=qe.uid,Lt=Ce.set(At,_e&&_e.get(At)||(Fe=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));Lt.context={model:qe,overallProgress:Ie},Lt.agent=pe,Lt.__block=Ie,ue._pipe(qe,Lt)}Fe&&pe.dirty()},$.prototype._pipe=function(z,oe){var ae=z.uid,le=this._pipelineMap.get(ae);!le.head&&(le.head=oe),le.tail&&le.tail.pipe(oe),le.tail=oe,oe.__idxInPipeline=le.count++,oe.__pipeline=le},$.wrapStageHandler=function(z,oe){return isFunction(z)&&(z={overallReset:z,seriesType:detectSeriseType(z)}),z.uid=getUID("stageHandler"),oe&&(z.visualType=oe),z},$}();function overallTaskReset($){$.overallReset($.ecModel,$.api,$.payload)}function stubReset($){return $.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan($){return $.plan?$.plan($.model,$.ecModel,$.api,$.payload):null}function seriesTaskReset($){$.useClearVisual&&$.data.clearAllVisual();var z=$.resetDefines=normalizeToArray($.reset($.model,$.ecModel,$.api,$.payload));return z.length>1?map$2(z,function(oe,ae){return makeSeriesTaskProgress(ae)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress($){return function(z,oe){var ae=oe.data,le=oe.resetDefines[$];if(le&&le.dataEach)for(var ue=z.start;ue<z.end;ue++)le.dataEach(ae,ue);else le&&le.progress&&le.progress(z,ae)}}function seriesTaskCount($){return $.data.count()}function detectSeriseType($){seriesType=null;try{$(ecModelMock,apiMock)}catch{}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function($){seriesType=$};ecModelMock.eachComponent=function($){$.mainType==="series"&&$.subType&&(seriesType=$.subType)};function mockMethods($,z){for(var oe in z.prototype)$[oe]=noop}const Scheduler$1=Scheduler;var colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]};var contrastColor="#B9B8CE",backgroundColor="#100C2A",axisCommon=function(){return{axisLine:{lineStyle:{color:contrastColor}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},colorPalette=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],theme={darkMode:!0,color:colorPalette,backgroundColor,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:contrastColor}},textStyle:{color:contrastColor},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:contrastColor}},dataZoom:{borderColor:"#71708A",textStyle:{color:contrastColor},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:contrastColor}},timeline:{lineStyle:{color:contrastColor},label:{color:contrastColor},controlStyle:{color:contrastColor,borderColor:contrastColor}},calendar:{itemStyle:{color:backgroundColor},dayLabel:{color:contrastColor},monthLabel:{color:contrastColor},yearLabel:{color:contrastColor}},timeAxis:axisCommon(),logAxis:axisCommon(),valueAxis:axisCommon(),categoryAxis:axisCommon(),line:{symbol:"circle"},graph:{color:colorPalette},gauge:{title:{color:contrastColor},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:contrastColor},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};theme.categoryAxis.splitLine.show=!1;const darkTheme=theme;var ECEventProcessor=function(){function $(){}return $.prototype.normalizeQuery=function(z){var oe={},ae={},le={};if(isString(z)){var ue=parseClassType(z);oe.mainType=ue.main||null,oe.subType=ue.sub||null}else{var pe=["Index","Name","Id"],_e={name:1,dataIndex:1,dataType:1};each$c(z,function(Ce,$e){for(var xe=!1,Ie=0;Ie<pe.length;Ie++){var Fe=pe[Ie],ze=$e.lastIndexOf(Fe);if(ze>0&&ze===$e.length-Fe.length){var Ue=$e.slice(0,ze);Ue!=="data"&&(oe.mainType=Ue,oe[Fe.toLowerCase()]=Ce,xe=!0)}}_e.hasOwnProperty($e)&&(ae[$e]=Ce,xe=!0),xe||(le[$e]=Ce)})}return{cptQuery:oe,dataQuery:ae,otherQuery:le}},$.prototype.filter=function(z,oe){var ae=this.eventInfo;if(!ae)return!0;var le=ae.targetEl,ue=ae.packedEvent,pe=ae.model,_e=ae.view;if(!pe||!_e)return!0;var Ce=oe.cptQuery,$e=oe.dataQuery;return xe(Ce,pe,"mainType")&&xe(Ce,pe,"subType")&&xe(Ce,pe,"index","componentIndex")&&xe(Ce,pe,"name")&&xe(Ce,pe,"id")&&xe($e,ue,"name")&&xe($e,ue,"dataIndex")&&xe($e,ue,"dataType")&&(!_e.filterForExposedEvent||_e.filterForExposedEvent(z,oe.otherQuery,le,ue));function xe(Ie,Fe,ze,Ue){return Ie[ze]==null||Fe[Ue||ze]===Ie[ze]}},$.prototype.afterTrigger=function(){this.eventInfo=null},$}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){var oe=$.getData();if($.legendIcon&&oe.setVisual("legendIcon",$.legendIcon),!$.hasSymbolVisual)return;for(var ae={},le={},ue=!1,pe=0;pe<SYMBOL_PROPS_WITH_CB.length;pe++){var _e=SYMBOL_PROPS_WITH_CB[pe],Ce=$.get(_e);isFunction(Ce)?(ue=!0,le[_e]=Ce):ae[_e]=Ce}if(ae.symbol=ae.symbol||$.defaultSymbol,oe.setVisual(extend({legendIcon:$.legendIcon||ae.symbol,symbolKeepAspect:$.get("symbolKeepAspect")},ae)),z.isSeriesFiltered($))return;var $e=keys(le);function xe(Ie,Fe){for(var ze=$.getRawValue(Fe),Ue=$.getDataParams(Fe),qe=0;qe<$e.length;qe++){var At=$e[qe];Ie.setItemVisual(Fe,At,le[At](ze,Ue))}}return{dataEach:ue?xe:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){if(!$.hasSymbolVisual||z.isSeriesFiltered($))return;var oe=$.getData();function ae(le,ue){for(var pe=le.getItemModel(ue),_e=0;_e<SYMBOL_PROPS.length;_e++){var Ce=SYMBOL_PROPS[_e],$e=pe.getShallow(Ce,!0);$e!=null&&le.setItemVisual(ue,Ce,$e)}}return{dataEach:oe.hasItemOption?ae:null}}};function getItemVisualFromData($,z,oe){switch(oe){case"color":var ae=$.getItemVisual(z,"style");return ae[$.getVisual("drawType")];case"opacity":return $.getItemVisual(z,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getItemVisual(z,oe)}}function getVisualFromData($,z){switch(z){case"color":var oe=$.getVisual("style");return oe[$.getVisual("drawType")];case"opacity":return $.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getVisual(z)}}function setItemVisualFromData($,z,oe,ae){switch(oe){case"color":var le=$.ensureUniqueItemVisual(z,"style");le[$.getVisual("drawType")]=ae,$.setItemVisual(z,"colorFromPalette",!1);break;case"opacity":$.ensureUniqueItemVisual(z,"style").opacity=ae;break;case"symbol":case"symbolSize":case"liftZ":$.setItemVisual(z,oe,ae);break}}function createLegacyDataSelectAction($,z){function oe(ae,le){var ue=[];return ae.eachComponent({mainType:"series",subType:$,query:le},function(pe){ue.push(pe.seriesIndex)}),ue}each$c([[$+"ToggleSelect","toggleSelect"],[$+"Select","select"],[$+"UnSelect","unselect"]],function(ae){z(ae[0],function(le,ue,pe){le=extend({},le),pe.dispatchAction(extend(le,{type:ae[1],seriesIndex:oe(ue,le)}))})})}function handleSeriesLegacySelectEvents($,z,oe,ae,le){var ue=$+z;oe.isSilent(ue)||ae.eachComponent({mainType:"series",subType:"pie"},function(pe){for(var _e=pe.seriesIndex,Ce=pe.option.selectedMap,$e=le.selected,xe=0;xe<$e.length;xe++)if($e[xe].seriesIndex===_e){var Ie=pe.getData(),Fe=queryDataIndex(Ie,le.fromActionPayload);oe.trigger(ue,{type:ue,seriesId:pe.id,name:isArray$1(Fe)?Ie.getName(Fe[0]):Ie.getName(Fe),selected:isString(Ce)?Ce:extend({},Ce)})}})}function handleLegacySelectEvents($,z,oe){$.on("selectchanged",function(ae){var le=oe.getModel();ae.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",z,le,ae),handleSeriesLegacySelectEvents("pie","selectchanged",z,le,ae)):ae.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",z,le,ae),handleSeriesLegacySelectEvents("pie","selected",z,le,ae)):ae.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",z,le,ae),handleSeriesLegacySelectEvents("pie","unselected",z,le,ae))})}function findEventDispatcher($,z,oe){for(var ae;$&&!(z($)&&(ae=$,oe));)$=$.__hostTarget||$.parent;return ae}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap$1=function(){function $(){this._id="__ec_inner_"+wmUniqueIndex++}return $.prototype.get=function(z){return this._guard(z)[this._id]},$.prototype.set=function(z,oe){var ae=this._guard(z);return supportDefineProperty?Object.defineProperty(ae,this._id,{value:oe,enumerable:!1,configurable:!0}):ae[this._id]=oe,this},$.prototype.delete=function(z){return this.has(z)?(delete this._guard(z)[this._id],!0):!1},$.prototype.has=function(z){return!!this._guard(z)[this._id]},$.prototype._guard=function(z){if(z!==Object(z))throw TypeError("Value of WeakMap is not a non-null object.");return z},$}();const WeakMap$2=WeakMap$1;var Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function($,z){var oe=z.cx,ae=z.cy,le=z.width/2,ue=z.height/2;$.moveTo(oe,ae-ue),$.lineTo(oe+le,ae+ue),$.lineTo(oe-le,ae+ue),$.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function($,z){var oe=z.cx,ae=z.cy,le=z.width/2,ue=z.height/2;$.moveTo(oe,ae-ue),$.lineTo(oe+le,ae),$.lineTo(oe,ae+ue),$.lineTo(oe-le,ae),$.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function($,z){var oe=z.x,ae=z.y,le=z.width/5*3,ue=Math.max(le,z.height),pe=le/2,_e=pe*pe/(ue-pe),Ce=ae-ue+pe+_e,$e=Math.asin(_e/pe),xe=Math.cos($e)*pe,Ie=Math.sin($e),Fe=Math.cos($e),ze=pe*.6,Ue=pe*.7;$.moveTo(oe-xe,Ce+_e),$.arc(oe,Ce,pe,Math.PI-$e,Math.PI*2+$e),$.bezierCurveTo(oe+xe-Ie*ze,Ce+_e+Fe*ze,oe,ae-Ue,oe,ae),$.bezierCurveTo(oe,ae-Ue,oe-xe+Ie*ze,Ce+_e+Fe*ze,oe-xe,Ce+_e),$.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function($,z){var oe=z.height,ae=z.width,le=z.x,ue=z.y,pe=ae/3*2;$.moveTo(le,ue),$.lineTo(le+pe,ue+oe),$.lineTo(le,ue+oe/4*3),$.lineTo(le-pe,ue+oe),$.lineTo(le,ue),$.closePath()}}),symbolCtors={line:Line$1,rect:Rect$2,roundRect:Rect$2,square:Rect$2,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function($,z,oe,ae,le){le.x1=$,le.y1=z+ae/2,le.x2=$+oe,le.y2=z+ae/2},rect:function($,z,oe,ae,le){le.x=$,le.y=z,le.width=oe,le.height=ae},roundRect:function($,z,oe,ae,le){le.x=$,le.y=z,le.width=oe,le.height=ae,le.r=Math.min(oe,ae)/4},square:function($,z,oe,ae,le){var ue=Math.min(oe,ae);le.x=$,le.y=z,le.width=ue,le.height=ue},circle:function($,z,oe,ae,le){le.cx=$+oe/2,le.cy=z+ae/2,le.r=Math.min(oe,ae)/2},diamond:function($,z,oe,ae,le){le.cx=$+oe/2,le.cy=z+ae/2,le.width=oe,le.height=ae},pin:function($,z,oe,ae,le){le.x=$+oe/2,le.y=z+ae/2,le.width=oe,le.height=ae},arrow:function($,z,oe,ae,le){le.x=$+oe/2,le.y=z+ae/2,le.width=oe,le.height=ae},triangle:function($,z,oe,ae,le){le.cx=$+oe/2,le.cy=z+ae/2,le.width=oe,le.height=ae}},symbolBuildProxies={};each$c(symbolCtors,function($,z){symbolBuildProxies[z]=new $});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function($,z,oe){var ae=calculateTextPosition($,z,oe),le=this.shape;return le&&le.symbolType==="pin"&&z.position==="inside"&&(ae.y=oe.y+oe.height*.4),ae},buildPath:function($,z,oe){var ae=z.symbolType;if(ae!=="none"){var le=symbolBuildProxies[ae];le||(ae="rect",le=symbolBuildProxies[ae]),symbolShapeMakers[ae](z.x,z.y,z.width,z.height,le.shape),le.buildPath($,le.shape,oe)}}});function symbolPathSetColor($,z){if(this.type!=="image"){var oe=this.style;this.__isEmptyBrush?(oe.stroke=$,oe.fill=z||"#fff",oe.lineWidth=2):this.shape.symbolType==="line"?oe.stroke=$:oe.fill=$,this.markRedraw()}}function createSymbol($,z,oe,ae,le,ue,pe){var _e=$.indexOf("empty")===0;_e&&($=$.substr(5,1).toLowerCase()+$.substr(6));var Ce;return $.indexOf("image://")===0?Ce=makeImage($.slice(8),new BoundingRect$1(z,oe,ae,le),pe?"center":"cover"):$.indexOf("path://")===0?Ce=makePath($.slice(7),{},new BoundingRect$1(z,oe,ae,le),pe?"center":"cover"):Ce=new SymbolClz$1({shape:{symbolType:$,x:z,y:oe,width:ae,height:le}}),Ce.__isEmptyBrush=_e,Ce.setColor=symbolPathSetColor,ue&&Ce.setColor(ue),Ce}function normalizeSymbolSize($){return isArray$1($)||($=[+$,+$]),[$[0]||0,$[1]||0]}function normalizeSymbolOffset($,z){if($!=null)return isArray$1($)||($=[$,$]),[parsePercent($[0],z[0])||0,parsePercent(retrieve2($[1],$[0]),z[1])||0]}function isSafeNum($){return isFinite($)}function createLinearGradient($,z,oe){var ae=z.x==null?0:z.x,le=z.x2==null?1:z.x2,ue=z.y==null?0:z.y,pe=z.y2==null?0:z.y2;z.global||(ae=ae*oe.width+oe.x,le=le*oe.width+oe.x,ue=ue*oe.height+oe.y,pe=pe*oe.height+oe.y),ae=isSafeNum(ae)?ae:0,le=isSafeNum(le)?le:1,ue=isSafeNum(ue)?ue:0,pe=isSafeNum(pe)?pe:0;var _e=$.createLinearGradient(ae,ue,le,pe);return _e}function createRadialGradient($,z,oe){var ae=oe.width,le=oe.height,ue=Math.min(ae,le),pe=z.x==null?.5:z.x,_e=z.y==null?.5:z.y,Ce=z.r==null?.5:z.r;z.global||(pe=pe*ae+oe.x,_e=_e*le+oe.y,Ce=Ce*ue),pe=isSafeNum(pe)?pe:.5,_e=isSafeNum(_e)?_e:.5,Ce=Ce>=0&&isSafeNum(Ce)?Ce:.5;var $e=$.createRadialGradient(pe,_e,0,pe,_e,Ce);return $e}function getCanvasGradient($,z,oe){for(var ae=z.type==="radial"?createRadialGradient($,z,oe):createLinearGradient($,z,oe),le=z.colorStops,ue=0;ue<le.length;ue++)ae.addColorStop(le[ue].offset,le[ue].color);return ae}function isClipPathChanged($,z){if($===z||!$&&!z)return!1;if(!$||!z||$.length!==z.length)return!0;for(var oe=0;oe<$.length;oe++)if($[oe]!==z[oe])return!0;return!1}function parseInt10($){return parseInt($,10)}function getSize$1($,z,oe){var ae=["width","height"][z],le=["clientWidth","clientHeight"][z],ue=["paddingLeft","paddingTop"][z],pe=["paddingRight","paddingBottom"][z];if(oe[ae]!=null&&oe[ae]!=="auto")return parseFloat(oe[ae]);var _e=document.defaultView.getComputedStyle($);return($[le]||parseInt10(_e[ae])||parseInt10($.style[ae]))-(parseInt10(_e[ue])||0)-(parseInt10(_e[pe])||0)|0}function normalizeLineDash($,z){return!$||$==="solid"||!(z>0)?null:$==="dashed"?[4*z,2*z]:$==="dotted"?[z]:isNumber($)?[$]:isArray$1($)?$:null}function getLineDash($){var z=$.style,oe=z.lineDash&&z.lineWidth>0&&normalizeLineDash(z.lineDash,z.lineWidth),ae=z.lineDashOffset;if(oe){var le=z.strokeNoScale&&$.getLineScale?$.getLineScale():1;le&&le!==1&&(oe=map$2(oe,function(ue){return ue/le}),ae/=le)}return[oe,ae]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke($){var z=$.stroke;return!(z==null||z==="none"||!($.lineWidth>0))}function isValidStrokeFillStyle($){return typeof $=="string"&&$!=="none"}function styleHasFill($){var z=$.fill;return z!=null&&z!=="none"}function doFillPath($,z){if(z.fillOpacity!=null&&z.fillOpacity!==1){var oe=$.globalAlpha;$.globalAlpha=z.fillOpacity*z.opacity,$.fill(),$.globalAlpha=oe}else $.fill()}function doStrokePath($,z){if(z.strokeOpacity!=null&&z.strokeOpacity!==1){var oe=$.globalAlpha;$.globalAlpha=z.strokeOpacity*z.opacity,$.stroke(),$.globalAlpha=oe}else $.stroke()}function createCanvasPattern($,z,oe){var ae=createOrUpdateImage(z.image,z.__image,oe);if(isImageReady(ae)){var le=$.createPattern(ae,z.repeat||"repeat");if(typeof DOMMatrix=="function"&&le&&le.setTransform){var ue=new DOMMatrix;ue.translateSelf(z.x||0,z.y||0),ue.rotateSelf(0,0,(z.rotation||0)*RADIAN_TO_DEGREE),ue.scaleSelf(z.scaleX||1,z.scaleY||1),le.setTransform(ue)}return le}}function brushPath($,z,oe,ae){var le,ue=styleHasStroke(oe),pe=styleHasFill(oe),_e=oe.strokePercent,Ce=_e<1,$e=!z.path;(!z.silent||Ce)&&$e&&z.createPathProxy();var xe=z.path||pathProxyForDraw,Ie=z.__dirty;if(!ae){var Fe=oe.fill,ze=oe.stroke,Ue=pe&&!!Fe.colorStops,qe=ue&&!!ze.colorStops,At=pe&&!!Fe.image,Lt=ue&&!!ze.image,hn=void 0,vn=void 0,_n=void 0,bn=void 0,Sn=void 0;(Ue||qe)&&(Sn=z.getBoundingRect()),Ue&&(hn=Ie?getCanvasGradient($,Fe,Sn):z.__canvasFillGradient,z.__canvasFillGradient=hn),qe&&(vn=Ie?getCanvasGradient($,ze,Sn):z.__canvasStrokeGradient,z.__canvasStrokeGradient=vn),At&&(_n=Ie||!z.__canvasFillPattern?createCanvasPattern($,Fe,z):z.__canvasFillPattern,z.__canvasFillPattern=_n),Lt&&(bn=Ie||!z.__canvasStrokePattern?createCanvasPattern($,ze,z):z.__canvasStrokePattern,z.__canvasStrokePattern=_n),Ue?$.fillStyle=hn:At&&(_n?$.fillStyle=_n:pe=!1),qe?$.strokeStyle=vn:Lt&&(bn?$.strokeStyle=bn:ue=!1)}var Cn=z.getGlobalScale();xe.setScale(Cn[0],Cn[1],z.segmentIgnoreThreshold);var En,$n;$.setLineDash&&oe.lineDash&&(le=getLineDash(z),En=le[0],$n=le[1]);var wn=!0;($e||Ie&SHAPE_CHANGED_BIT)&&(xe.setDPR($.dpr),Ce?xe.setContext(null):(xe.setContext($),wn=!1),xe.reset(),z.buildPath(xe,z.shape,ae),xe.toStatic(),z.pathUpdated()),wn&&xe.rebuildPath($,Ce?_e:1),En&&($.setLineDash(En),$.lineDashOffset=$n),ae||(oe.strokeFirst?(ue&&doStrokePath($,oe),pe&&doFillPath($,oe)):(pe&&doFillPath($,oe),ue&&doStrokePath($,oe))),En&&$.setLineDash([])}function brushImage($,z,oe){var ae=z.__image=createOrUpdateImage(oe.image,z.__image,z,z.onload);if(!(!ae||!isImageReady(ae))){var le=oe.x||0,ue=oe.y||0,pe=z.getWidth(),_e=z.getHeight(),Ce=ae.width/ae.height;if(pe==null&&_e!=null?pe=_e*Ce:_e==null&&pe!=null?_e=pe/Ce:pe==null&&_e==null&&(pe=ae.width,_e=ae.height),oe.sWidth&&oe.sHeight){var $e=oe.sx||0,xe=oe.sy||0;$.drawImage(ae,$e,xe,oe.sWidth,oe.sHeight,le,ue,pe,_e)}else if(oe.sx&&oe.sy){var $e=oe.sx,xe=oe.sy,Ie=pe-$e,Fe=_e-xe;$.drawImage(ae,$e,xe,Ie,Fe,le,ue,pe,_e)}else $.drawImage(ae,le,ue,pe,_e)}}function brushText($,z,oe){var ae,le=oe.text;if(le!=null&&(le+=""),le){$.font=oe.font||DEFAULT_FONT,$.textAlign=oe.textAlign,$.textBaseline=oe.textBaseline;var ue=void 0,pe=void 0;$.setLineDash&&oe.lineDash&&(ae=getLineDash(z),ue=ae[0],pe=ae[1]),ue&&($.setLineDash(ue),$.lineDashOffset=pe),oe.strokeFirst?(styleHasStroke(oe)&&$.strokeText(le,oe.x,oe.y),styleHasFill(oe)&&$.fillText(le,oe.x,oe.y)):(styleHasFill(oe)&&$.fillText(le,oe.x,oe.y),styleHasStroke(oe)&&$.strokeText(le,oe.x,oe.y)),ue&&$.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps($,z,oe,ae,le){var ue=!1;if(!ae&&(oe=oe||{},z===oe))return!1;if(ae||z.opacity!==oe.opacity){flushPathDrawn($,le),ue=!0;var pe=Math.max(Math.min(z.opacity,1),0);$.globalAlpha=isNaN(pe)?DEFAULT_COMMON_STYLE.opacity:pe}(ae||z.blend!==oe.blend)&&(ue||(flushPathDrawn($,le),ue=!0),$.globalCompositeOperation=z.blend||DEFAULT_COMMON_STYLE.blend);for(var _e=0;_e<SHADOW_NUMBER_PROPS.length;_e++){var Ce=SHADOW_NUMBER_PROPS[_e];(ae||z[Ce]!==oe[Ce])&&(ue||(flushPathDrawn($,le),ue=!0),$[Ce]=$.dpr*(z[Ce]||0))}return(ae||z.shadowColor!==oe.shadowColor)&&(ue||(flushPathDrawn($,le),ue=!0),$.shadowColor=z.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),ue}function bindPathAndTextCommonStyle($,z,oe,ae,le){var ue=getStyle(z,le.inHover),pe=ae?null:oe&&getStyle(oe,le.inHover)||{};if(ue===pe)return!1;var _e=bindCommonProps($,ue,pe,ae,le);if((ae||ue.fill!==pe.fill)&&(_e||(flushPathDrawn($,le),_e=!0),isValidStrokeFillStyle(ue.fill)&&($.fillStyle=ue.fill)),(ae||ue.stroke!==pe.stroke)&&(_e||(flushPathDrawn($,le),_e=!0),isValidStrokeFillStyle(ue.stroke)&&($.strokeStyle=ue.stroke)),(ae||ue.opacity!==pe.opacity)&&(_e||(flushPathDrawn($,le),_e=!0),$.globalAlpha=ue.opacity==null?1:ue.opacity),z.hasStroke()){var Ce=ue.lineWidth,$e=Ce/(ue.strokeNoScale&&z.getLineScale?z.getLineScale():1);$.lineWidth!==$e&&(_e||(flushPathDrawn($,le),_e=!0),$.lineWidth=$e)}for(var xe=0;xe<STROKE_PROPS.length;xe++){var Ie=STROKE_PROPS[xe],Fe=Ie[0];(ae||ue[Fe]!==pe[Fe])&&(_e||(flushPathDrawn($,le),_e=!0),$[Fe]=ue[Fe]||Ie[1])}return _e}function bindImageStyle($,z,oe,ae,le){return bindCommonProps($,getStyle(z,le.inHover),oe&&getStyle(oe,le.inHover),ae,le)}function setContextTransform($,z){var oe=z.transform,ae=$.dpr||1;oe?$.setTransform(ae*oe[0],ae*oe[1],ae*oe[2],ae*oe[3],ae*oe[4],ae*oe[5]):$.setTransform(ae,0,0,ae,0,0)}function updateClipStatus($,z,oe){for(var ae=!1,le=0;le<$.length;le++){var ue=$[le];ae=ae||ue.isZeroArea(),setContextTransform(z,ue),z.beginPath(),ue.buildPath(z,ue.shape),z.clip()}oe.allClipped=ae}function isTransformChanged($,z){return $&&z?$[0]!==z[0]||$[1]!==z[1]||$[2]!==z[2]||$[3]!==z[3]||$[4]!==z[4]||$[5]!==z[5]:!(!$&&!z)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch($){var z=styleHasFill($),oe=styleHasStroke($);return!($.lineDash||!(+z^+oe)||z&&typeof $.fill!="string"||oe&&typeof $.stroke!="string"||$.strokePercent<1||$.strokeOpacity<1||$.fillOpacity<1)}function flushPathDrawn($,z){z.batchFill&&$.fill(),z.batchStroke&&$.stroke(),z.batchFill="",z.batchStroke=""}function getStyle($,z){return z&&$.__hoverStyle||$.style}function brushSingle($,z){brush($,z,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush($,z,oe,ae){var le=z.transform;if(!z.shouldBePainted(oe.viewWidth,oe.viewHeight,!1,!1)){z.__dirty&=~REDRAW_BIT,z.__isRendered=!1;return}var ue=z.__clipPaths,pe=oe.prevElClipPaths,_e=!1,Ce=!1;if((!pe||isClipPathChanged(ue,pe))&&(pe&&pe.length&&(flushPathDrawn($,oe),$.restore(),Ce=_e=!0,oe.prevElClipPaths=null,oe.allClipped=!1,oe.prevEl=null),ue&&ue.length&&(flushPathDrawn($,oe),$.save(),updateClipStatus(ue,$,oe),_e=!0),oe.prevElClipPaths=ue),oe.allClipped){z.__isRendered=!1;return}z.beforeBrush&&z.beforeBrush(),z.innerBeforeBrush();var $e=oe.prevEl;$e||(Ce=_e=!0);var xe=z instanceof Path$1&&z.autoBatch&&canPathBatch(z.style);_e||isTransformChanged(le,$e.transform)?(flushPathDrawn($,oe),setContextTransform($,z)):xe||flushPathDrawn($,oe);var Ie=getStyle(z,oe.inHover);z instanceof Path$1?(oe.lastDrawType!==DRAW_TYPE_PATH&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle($,z,$e,Ce,oe),(!xe||!oe.batchFill&&!oe.batchStroke)&&$.beginPath(),brushPath($,z,Ie,xe),xe&&(oe.batchFill=Ie.fill||"",oe.batchStroke=Ie.stroke||"")):z instanceof TSpan$1?(oe.lastDrawType!==DRAW_TYPE_TEXT&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle($,z,$e,Ce,oe),brushText($,z,Ie)):z instanceof ZRImage$1?(oe.lastDrawType!==DRAW_TYPE_IMAGE&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle($,z,$e,Ce,oe),brushImage($,z,Ie)):z.getTemporalDisplayables&&(oe.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(Ce=!0,oe.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental($,z,oe)),xe&&ae&&flushPathDrawn($,oe),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),oe.prevEl=z,z.__dirty=0,z.__isRendered=!0}function brushIncremental($,z,oe){var ae=z.getDisplayables(),le=z.getTemporalDisplayables();$.save();var ue={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:oe.viewWidth,viewHeight:oe.viewHeight,inHover:oe.inHover},pe,_e;for(pe=z.getCursor(),_e=ae.length;pe<_e;pe++){var Ce=ae[pe];Ce.beforeBrush&&Ce.beforeBrush(),Ce.innerBeforeBrush(),brush($,Ce,ue,pe===_e-1),Ce.innerAfterBrush(),Ce.afterBrush&&Ce.afterBrush(),ue.prevEl=Ce}for(var $e=0,xe=le.length;$e<xe;$e++){var Ce=le[$e];Ce.beforeBrush&&Ce.beforeBrush(),Ce.innerBeforeBrush(),brush($,Ce,ue,$e===xe-1),Ce.innerAfterBrush(),Ce.afterBrush&&Ce.afterBrush(),ue.prevEl=Ce}z.clearTemporalDisplayables(),z.notClear=!0,$.restore()}var decalMap=new WeakMap$2,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal($,z){if($==="none")return null;var oe=z.getDevicePixelRatio(),ae=z.getZr(),le=ae.painter.type==="svg";$.dirty&&decalMap.delete($);var ue=decalMap.get($);if(ue)return ue;var pe=defaults($,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});pe.backgroundColor==="none"&&(pe.backgroundColor=null);var _e={repeat:"repeat"};return Ce(_e),_e.rotation=pe.rotation,_e.scaleX=_e.scaleY=le?1:1/oe,decalMap.set($,_e),$.dirty=!1,_e;function Ce($e){for(var xe=[oe],Ie=!0,Fe=0;Fe<decalKeys.length;++Fe){var ze=pe[decalKeys[Fe]];if(ze!=null&&!isArray$1(ze)&&!isString(ze)&&!isNumber(ze)&&typeof ze!="boolean"){Ie=!1;break}xe.push(ze)}var Ue;if(Ie){Ue=xe.join(",")+(le?"-svg":"");var qe=decalCache.get(Ue);qe&&(le?$e.svgElement=qe:$e.image=qe)}var At=normalizeDashArrayX(pe.dashArrayX),Lt=normalizeDashArrayY(pe.dashArrayY),hn=normalizeSymbolArray(pe.symbol),vn=getLineBlockLengthX(At),_n=getLineBlockLengthY(Lt),bn=!le&&platformApi.createCanvas(),Sn=le&&{tag:"g",attrs:{},key:"dcl",children:[]},Cn=$n(),En;bn&&(bn.width=Cn.width*oe,bn.height=Cn.height*oe,En=bn.getContext("2d")),wn(),Ie&&decalCache.put(Ue,bn||Sn),$e.image=bn,$e.svgElement=Sn,$e.svgWidth=Cn.width,$e.svgHeight=Cn.height;function $n(){for(var Tn=1,xn=0,kn=vn.length;xn<kn;++xn)Tn=getLeastCommonMultiple(Tn,vn[xn]);for(var Nn=1,xn=0,kn=hn.length;xn<kn;++xn)Nn=getLeastCommonMultiple(Nn,hn[xn].length);Tn*=Nn;var Bn=_n*vn.length*hn.length;return{width:Math.max(1,Math.min(Tn,pe.maxTileWidth)),height:Math.max(1,Math.min(Bn,pe.maxTileHeight))}}function wn(){En&&(En.clearRect(0,0,bn.width,bn.height),pe.backgroundColor&&(En.fillStyle=pe.backgroundColor,En.fillRect(0,0,bn.width,bn.height)));for(var Tn=0,xn=0;xn<Lt.length;++xn)Tn+=Lt[xn];if(Tn<=0)return;for(var kn=-_n,Nn=0,Bn=0,Dn=0;kn<Cn.height;){if(Nn%2===0){for(var In=Bn/2%hn.length,Ln=0,Mn=0,Vn=0;Ln<Cn.width*2;){for(var Yn=0,xn=0;xn<At[Dn].length;++xn)Yn+=At[Dn][xn];if(Yn<=0)break;if(Mn%2===0){var Fn=(1-pe.symbolSize)*.5,Xn=Ln+At[Dn][Mn]*Fn,sr=kn+Lt[Nn]*Fn,vr=At[Dn][Mn]*pe.symbolSize,ar=Lt[Nn]*pe.symbolSize,qn=Vn/2%hn[In].length;Gn(Xn,sr,vr,ar,hn[In][qn])}Ln+=At[Dn][Mn],++Vn,++Mn,Mn===At[Dn].length&&(Mn=0)}++Dn,Dn===At.length&&(Dn=0)}kn+=Lt[Nn],++Bn,++Nn,Nn===Lt.length&&(Nn=0)}function Gn(Wn,Qn,cr,jn,Zn){var nr=le?1:oe,hr=createSymbol(Zn,Wn*nr,Qn*nr,cr*nr,jn*nr,pe.color,pe.symbolKeepAspect);if(le){var gr=ae.painter.renderOneToVNode(hr);gr&&Sn.children.push(gr)}else brushSingle(En,hr)}}}}function normalizeSymbolArray($){if(!$||$.length===0)return[["rect"]];if(isString($))return[[$]];for(var z=!0,oe=0;oe<$.length;++oe)if(!isString($[oe])){z=!1;break}if(z)return normalizeSymbolArray([$]);for(var ae=[],oe=0;oe<$.length;++oe)isString($[oe])?ae.push([$[oe]]):ae.push($[oe]);return ae}function normalizeDashArrayX($){if(!$||$.length===0)return[[0,0]];if(isNumber($)){var z=Math.ceil($);return[[z,z]]}for(var oe=!0,ae=0;ae<$.length;++ae)if(!isNumber($[ae])){oe=!1;break}if(oe)return normalizeDashArrayX([$]);for(var le=[],ae=0;ae<$.length;++ae)if(isNumber($[ae])){var z=Math.ceil($[ae]);le.push([z,z])}else{var z=map$2($[ae],function(_e){return Math.ceil(_e)});z.length%2===1?le.push(z.concat(z)):le.push(z)}return le}function normalizeDashArrayY($){if(!$||typeof $=="object"&&$.length===0)return[0,0];if(isNumber($)){var z=Math.ceil($);return[z,z]}var oe=map$2($,function(ae){return Math.ceil(ae)});return $.length%2?oe.concat(oe):oe}function getLineBlockLengthX($){return map$2($,function(z){return getLineBlockLengthY(z)})}function getLineBlockLengthY($){for(var z=0,oe=0;oe<$.length;++oe)z+=$[oe];return $.length%2===1?z*2:z}function decalVisual($,z){$.eachRawSeries(function(oe){if(!$.isSeriesFiltered(oe)){var ae=oe.getData();ae.hasItemVisual()&&ae.each(function(pe){var _e=ae.getItemVisual(pe,"decal");if(_e){var Ce=ae.ensureUniqueItemVisual(pe,"style");Ce.decal=createOrUpdatePatternFromDecal(_e,z)}});var le=ae.getVisual("decal");if(le){var ue=ae.getVisual("style");ue.decal=createOrUpdatePatternFromDecal(le,z)}}})}var lifecycle=new Eventful$1;const lifecycle$1=lifecycle;var implsStore={};function registerImpl($,z){implsStore[$]=z}function getImpl($){return implsStore[$]}var version="5.4.2",dependencies={zrender:"5.4.3"},TEST_FRAME_REMAIN_TIME=1,PRIORITY_PROCESSOR_SERIES_FILTER=800,PRIORITY_PROCESSOR_DATASTACK=900,PRIORITY_PROCESSOR_FILTER=1e3,PRIORITY_PROCESSOR_DEFAULT=2e3,PRIORITY_PROCESSOR_STATISTIC=5e3,PRIORITY_VISUAL_LAYOUT=1e3,PRIORITY_VISUAL_PROGRESSIVE_LAYOUT=1100,PRIORITY_VISUAL_GLOBAL=2e3,PRIORITY_VISUAL_CHART=3e3,PRIORITY_VISUAL_COMPONENT=4e3,PRIORITY_VISUAL_CHART_DATA_CUSTOM=4500,PRIORITY_VISUAL_POST_CHART_LAYOUT=4600,PRIORITY_VISUAL_BRUSH=5e3,PRIORITY_VISUAL_ARIA=6e3,PRIORITY_VISUAL_DECAL=7e3,PRIORITY={PROCESSOR:{FILTER:PRIORITY_PROCESSOR_FILTER,SERIES_FILTER:PRIORITY_PROCESSOR_SERIES_FILTER,STATISTIC:PRIORITY_PROCESSOR_STATISTIC},VISUAL:{LAYOUT:PRIORITY_VISUAL_LAYOUT,PROGRESSIVE_LAYOUT:PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,GLOBAL:PRIORITY_VISUAL_GLOBAL,CHART:PRIORITY_VISUAL_CHART,POST_CHART_LAYOUT:PRIORITY_VISUAL_POST_CHART_LAYOUT,COMPONENT:PRIORITY_VISUAL_COMPONENT,BRUSH:PRIORITY_VISUAL_BRUSH,CHART_ITEM:PRIORITY_VISUAL_CHART_DATA_CUSTOM,ARIA:PRIORITY_VISUAL_ARIA,DECAL:PRIORITY_VISUAL_DECAL}},IN_MAIN_PROCESS_KEY="__flagInMainProcess",PENDING_UPDATE="__pendingUpdate",STATUS_NEEDS_UPDATE_KEY="__needsUpdateStatus",ACTION_REG=/^[a-zA-Z0-9_]+$/,CONNECT_STATUS_KEY="__connectUpdateStatus",CONNECT_STATUS_PENDING=0,CONNECT_STATUS_UPDATING=1,CONNECT_STATUS_UPDATED=2;function createRegisterEventWithLowercaseECharts($){return function(){for(var z=[],oe=0;oe<arguments.length;oe++)z[oe]=arguments[oe];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,$,z)}}function createRegisterEventWithLowercaseMessageCenter($){return function(){for(var z=[],oe=0;oe<arguments.length;oe++)z[oe]=arguments[oe];return toLowercaseNameAndCallEventful(this,$,z)}}function toLowercaseNameAndCallEventful($,z,oe){return oe[0]=oe[0]&&oe[0].toLowerCase(),Eventful$1.prototype[z].apply($,oe)}var MessageCenter=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare$1,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render$2,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function($){__extends(z,$);function z(oe,ae,le){var ue=$.call(this,new ECEventProcessor)||this;ue._chartsViews=[],ue._chartsMap={},ue._componentsViews=[],ue._componentsMap={},ue._pendingActions=[],le=le||{},isString(ae)&&(ae=themeStorage[ae]),ue._dom=oe;var pe="canvas",_e="auto",Ce=!1,$e=ue._zr=init$1(oe,{renderer:le.renderer||pe,devicePixelRatio:le.devicePixelRatio,width:le.width,height:le.height,ssr:le.ssr,useDirtyRect:retrieve2(le.useDirtyRect,Ce),useCoarsePointer:retrieve2(le.useCoarsePointer,_e),pointerSize:le.pointerSize});ue._ssr=le.ssr,ue._throttledZrFlush=throttle(bind$1($e.flush,$e),17),ae=clone$3(ae),ae&&globalBackwardCompat(ae,!0),ue._theme=ae,ue._locale=createLocaleObject(le.locale||SYSTEM_LANG),ue._coordSysMgr=new CoordinateSystem;var xe=ue._api=createExtensionAPI(ue);function Ie(Fe,ze){return Fe.__prio-ze.__prio}return sort(visualFuncs,Ie),sort(dataProcessorFuncs,Ie),ue._scheduler=new Scheduler$1(ue,xe,dataProcessorFuncs,visualFuncs),ue._messageCenter=new MessageCenter,ue._initEvents(),ue.resize=bind$1(ue.resize,ue),$e.animation.on("frame",ue._onframe,ue),bindRenderedEvent($e,ue),bindMouseEvent($e,ue),setAsPrimitive(ue),ue}return z.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var oe=this._scheduler;if(this[PENDING_UPDATE]){var ae=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare$1(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(Ce){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,Ce}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,ae),triggerUpdatedEvent.call(this,ae)}else if(oe.unfinished){var le=TEST_FRAME_REMAIN_TIME,ue=this._model,pe=this._api;oe.unfinished=!1;do{var _e=+new Date;oe.performSeriesTasks(ue),oe.performDataProcessorTasks(ue),updateStreamModes(this,ue),oe.performVisualTasks(ue),renderSeries(this,this._model,pe,"remain",{}),le-=+new Date-_e}while(le>0&&oe.unfinished);oe.unfinished||this._zr.flush()}}},z.prototype.getDom=function(){return this._dom},z.prototype.getId=function(){return this.id},z.prototype.getZr=function(){return this._zr},z.prototype.isSSR=function(){return this._ssr},z.prototype.setOption=function(oe,ae,le){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var ue,pe,_e;if(isObject$3(ae)&&(le=ae.lazyUpdate,ue=ae.silent,pe=ae.replaceMerge,_e=ae.transition,ae=ae.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||ae){var Ce=new OptionManager$1(this._api),$e=this._theme,xe=this._model=new GlobalModel$1;xe.scheduler=this._scheduler,xe.ssr=this._ssr,xe.init(null,null,null,$e,this._locale,Ce)}this._model.setOption(oe,{replaceMerge:pe},optionPreprocessorFuncs);var Ie={seriesTransition:_e,optionChanged:!0};if(le)this[PENDING_UPDATE]={silent:ue,updateParams:Ie},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,Ie)}catch(Fe){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,Fe}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,ue),triggerUpdatedEvent.call(this,ue)}}},z.prototype.setTheme=function(){},z.prototype.getModel=function(){return this._model},z.prototype.getOption=function(){return this._model&&this._model.getOption()},z.prototype.getWidth=function(){return this._zr.getWidth()},z.prototype.getHeight=function(){return this._zr.getHeight()},z.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},z.prototype.getRenderedCanvas=function(oe){return this.renderToCanvas(oe)},z.prototype.renderToCanvas=function(oe){oe=oe||{};var ae=this._zr.painter;return ae.getRenderedCanvas({backgroundColor:oe.backgroundColor||this._model.get("backgroundColor"),pixelRatio:oe.pixelRatio||this.getDevicePixelRatio()})},z.prototype.renderToSVGString=function(oe){oe=oe||{};var ae=this._zr.painter;return ae.renderToString({useViewBox:oe.useViewBox})},z.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var oe=this._zr,ae=oe.storage.getDisplayList();return each$c(ae,function(le){le.stopAnimation(null,!0)}),oe.painter.toDataURL()}},z.prototype.getDataURL=function(oe){if(this._disposed){this.id;return}oe=oe||{};var ae=oe.excludeComponents,le=this._model,ue=[],pe=this;each$c(ae,function(Ce){le.eachComponent({mainType:Ce},function($e){var xe=pe._componentsMap[$e.__viewId];xe.group.ignore||(ue.push(xe),xe.group.ignore=!0)})});var _e=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(oe).toDataURL("image/"+(oe&&oe.type||"png"));return each$c(ue,function(Ce){Ce.group.ignore=!1}),_e},z.prototype.getConnectedDataURL=function(oe){if(this._disposed){this.id;return}var ae=oe.type==="svg",le=this.group,ue=Math.min,pe=Math.max,_e=1/0;if(connectedGroups[le]){var Ce=_e,$e=_e,xe=-_e,Ie=-_e,Fe=[],ze=oe&&oe.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(vn,_n){if(vn.group===le){var bn=ae?vn.getZr().painter.getSvgDom().innerHTML:vn.renderToCanvas(clone$3(oe)),Sn=vn.getDom().getBoundingClientRect();Ce=ue(Sn.left,Ce),$e=ue(Sn.top,$e),xe=pe(Sn.right,xe),Ie=pe(Sn.bottom,Ie),Fe.push({dom:bn,left:Sn.left,top:Sn.top})}}),Ce*=ze,$e*=ze,xe*=ze,Ie*=ze;var Ue=xe-Ce,qe=Ie-$e,At=platformApi.createCanvas(),Lt=init$1(At,{renderer:ae?"svg":"canvas"});if(Lt.resize({width:Ue,height:qe}),ae){var hn="";return each$c(Fe,function(vn){var _n=vn.left-Ce,bn=vn.top-$e;hn+='<g transform="translate('+_n+","+bn+')">'+vn.dom+"</g>"}),Lt.painter.getSvgRoot().innerHTML=hn,oe.connectedBackgroundColor&&Lt.painter.setBackgroundColor(oe.connectedBackgroundColor),Lt.refreshImmediately(),Lt.painter.toDataURL()}else return oe.connectedBackgroundColor&&Lt.add(new Rect$2({shape:{x:0,y:0,width:Ue,height:qe},style:{fill:oe.connectedBackgroundColor}})),each$c(Fe,function(vn){var _n=new ZRImage$1({style:{x:vn.left*ze-Ce,y:vn.top*ze-$e,image:vn.dom}});Lt.add(_n)}),Lt.refreshImmediately(),At.toDataURL("image/"+(oe&&oe.type||"png"))}else return this.getDataURL(oe)},z.prototype.convertToPixel=function(oe,ae){return doConvertPixel(this,"convertToPixel",oe,ae)},z.prototype.convertFromPixel=function(oe,ae){return doConvertPixel(this,"convertFromPixel",oe,ae)},z.prototype.containPixel=function(oe,ae){if(this._disposed){this.id;return}var le=this._model,ue,pe=parseFinder$1(le,oe);return each$c(pe,function(_e,Ce){Ce.indexOf("Models")>=0&&each$c(_e,function($e){var xe=$e.coordinateSystem;if(xe&&xe.containPoint)ue=ue||!!xe.containPoint(ae);else if(Ce==="seriesModels"){var Ie=this._chartsMap[$e.__viewId];Ie&&Ie.containPoint&&(ue=ue||Ie.containPoint(ae,$e))}},this)},this),!!ue},z.prototype.getVisual=function(oe,ae){var le=this._model,ue=parseFinder$1(le,oe,{defaultMainType:"series"}),pe=ue.seriesModel,_e=pe.getData(),Ce=ue.hasOwnProperty("dataIndexInside")?ue.dataIndexInside:ue.hasOwnProperty("dataIndex")?_e.indexOfRawIndex(ue.dataIndex):null;return Ce!=null?getItemVisualFromData(_e,Ce,ae):getVisualFromData(_e,ae)},z.prototype.getViewOfComponentModel=function(oe){return this._componentsMap[oe.__viewId]},z.prototype.getViewOfSeriesModel=function(oe){return this._chartsMap[oe.__viewId]},z.prototype._initEvents=function(){var oe=this;each$c(MOUSE_EVENT_NAMES,function(ae){var le=function(ue){var pe=oe.getModel(),_e=ue.target,Ce,$e=ae==="globalout";if($e?Ce={}:_e&&findEventDispatcher(_e,function(Ue){var qe=getECData(Ue);if(qe&&qe.dataIndex!=null){var At=qe.dataModel||pe.getSeriesByIndex(qe.seriesIndex);return Ce=At&&At.getDataParams(qe.dataIndex,qe.dataType)||{},!0}else if(qe.eventData)return Ce=extend({},qe.eventData),!0},!0),Ce){var xe=Ce.componentType,Ie=Ce.componentIndex;(xe==="markLine"||xe==="markPoint"||xe==="markArea")&&(xe="series",Ie=Ce.seriesIndex);var Fe=xe&&Ie!=null&&pe.getComponent(xe,Ie),ze=Fe&&oe[Fe.mainType==="series"?"_chartsMap":"_componentsMap"][Fe.__viewId];Ce.event=ue,Ce.type=ae,oe._$eventProcessor.eventInfo={targetEl:_e,packedEvent:Ce,model:Fe,view:ze},oe.trigger(ae,Ce)}};le.zrEventfulCallAtLast=!0,oe._zr.on(ae,le,oe)}),each$c(eventActionMap,function(ae,le){oe._messageCenter.on(le,function(ue){this.trigger(le,ue)},oe)}),each$c(["selectchanged"],function(ae){oe._messageCenter.on(ae,function(le){this.trigger(ae,le)},oe)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},z.prototype.isDisposed=function(){return this._disposed},z.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},z.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var oe=this.getDom();oe&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var ae=this,le=ae._api,ue=ae._model;each$c(ae._componentsViews,function(pe){pe.dispose(ue,le)}),each$c(ae._chartsViews,function(pe){pe.dispose(ue,le)}),ae._zr.dispose(),ae._dom=ae._model=ae._chartsMap=ae._componentsMap=ae._chartsViews=ae._componentsViews=ae._scheduler=ae._api=ae._zr=ae._throttledZrFlush=ae._theme=ae._coordSysMgr=ae._messageCenter=null,delete instances[ae.id]},z.prototype.resize=function(oe){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(oe);var ae=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!ae){var le=ae.resetOption("media"),ue=oe&&oe.silent;this[PENDING_UPDATE]&&(ue==null&&(ue=this[PENDING_UPDATE].silent),le=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{le&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},oe&&oe.animation)})}catch(pe){throw this[IN_MAIN_PROCESS_KEY]=!1,pe}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,ue),triggerUpdatedEvent.call(this,ue)}}},z.prototype.showLoading=function(oe,ae){if(this._disposed){this.id;return}if(isObject$3(oe)&&(ae=oe,oe=""),oe=oe||"default",this.hideLoading(),!!loadingEffects[oe]){var le=loadingEffects[oe](this._api,ae),ue=this._zr;this._loadingFX=le,ue.add(le)}},z.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},z.prototype.makeActionFromEvent=function(oe){var ae=extend({},oe);return ae.type=eventActionMap[oe.type],ae},z.prototype.dispatchAction=function(oe,ae){if(this._disposed){this.id;return}if(isObject$3(ae)||(ae={silent:!!ae}),!!actions[oe.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(oe);return}var le=ae.silent;doDispatchAction.call(this,oe,le);var ue=ae.flush;ue?this._zr.flush():ue!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}},z.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},z.prototype.appendData=function(oe){if(this._disposed){this.id;return}var ae=oe.seriesIndex,le=this.getModel(),ue=le.getSeriesByIndex(ae);ue.appendData(oe),this._scheduler.unfinished=!0,this.getZr().wakeUp()},z.internalField=function(){prepare$1=function(Ie){var Fe=Ie._scheduler;Fe.restorePipelines(Ie._model),Fe.prepareStageTasks(),prepareView(Ie,!0),prepareView(Ie,!1),Fe.plan()},prepareView=function(Ie,Fe){for(var ze=Ie._model,Ue=Ie._scheduler,qe=Fe?Ie._componentsViews:Ie._chartsViews,At=Fe?Ie._componentsMap:Ie._chartsMap,Lt=Ie._zr,hn=Ie._api,vn=0;vn<qe.length;vn++)qe[vn].__alive=!1;Fe?ze.eachComponent(function(Sn,Cn){Sn!=="series"&&_n(Cn)}):ze.eachSeries(_n);function _n(Sn){var Cn=Sn.__requireNewView;Sn.__requireNewView=!1;var En="_ec_"+Sn.id+"_"+Sn.type,$n=!Cn&&At[En];if(!$n){var wn=parseClassType(Sn.type),Tn=Fe?ComponentView$1.getClass(wn.main,wn.sub):ChartView$1.getClass(wn.sub);$n=new Tn,$n.init(ze,hn),At[En]=$n,qe.push($n),Lt.add($n.group)}Sn.__viewId=$n.__id=En,$n.__alive=!0,$n.__model=Sn,$n.group.__ecComponentInfo={mainType:Sn.mainType,index:Sn.componentIndex},!Fe&&Ue.prepareView($n,Sn,ze,hn)}for(var vn=0;vn<qe.length;){var bn=qe[vn];bn.__alive?vn++:(!Fe&&bn.renderTask.dispose(),Lt.remove(bn.group),bn.dispose(ze,hn),qe.splice(vn,1),At[bn.__id]===bn&&delete At[bn.__id],bn.__id=bn.group.__ecComponentInfo=null)}},updateDirectly=function(Ie,Fe,ze,Ue,qe){var At=Ie._model;if(At.setUpdatePayload(ze),!Ue){each$c([].concat(Ie._componentsViews).concat(Ie._chartsViews),bn);return}var Lt={};Lt[Ue+"Id"]=ze[Ue+"Id"],Lt[Ue+"Index"]=ze[Ue+"Index"],Lt[Ue+"Name"]=ze[Ue+"Name"];var hn={mainType:Ue,query:Lt};qe&&(hn.subType=qe);var vn=ze.excludeSeriesId,_n;vn!=null&&(_n=createHashMap(),each$c(normalizeToArray(vn),function(Sn){var Cn=convertOptionIdName(Sn,null);Cn!=null&&_n.set(Cn,!0)})),At&&At.eachComponent(hn,function(Sn){var Cn=_n&&_n.get(Sn.id)!=null;if(!Cn)if(isHighDownPayload(ze))if(Sn instanceof SeriesModel$1)ze.type===HIGHLIGHT_ACTION_TYPE&&!ze.notBlur&&!Sn.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(Sn,ze,Ie._api);else{var En=findComponentHighDownDispatchers(Sn.mainType,Sn.componentIndex,ze.name,Ie._api),$n=En.focusSelf,wn=En.dispatchers;ze.type===HIGHLIGHT_ACTION_TYPE&&$n&&!ze.notBlur&&blurComponent(Sn.mainType,Sn.componentIndex,Ie._api),wn&&each$c(wn,function(Tn){ze.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(Tn):leaveEmphasis(Tn)})}else isSelectChangePayload(ze)&&Sn instanceof SeriesModel$1&&(toggleSelectionFromPayload(Sn,ze,Ie._api),updateSeriesElementSelection(Sn),markStatusToUpdate(Ie))},Ie),At&&At.eachComponent(hn,function(Sn){var Cn=_n&&_n.get(Sn.id)!=null;Cn||bn(Ie[Ue==="series"?"_chartsMap":"_componentsMap"][Sn.__viewId])},Ie);function bn(Sn){Sn&&Sn.__alive&&Sn[Fe]&&Sn[Fe](Sn.__model,At,Ie._api,ze)}},updateMethods={prepareAndUpdate:function(Ie){prepare$1(this),updateMethods.update.call(this,Ie,{optionChanged:Ie.newOption!=null})},update:function(Ie,Fe){var ze=this._model,Ue=this._api,qe=this._zr,At=this._coordSysMgr,Lt=this._scheduler;if(ze){ze.setUpdatePayload(Ie),Lt.restoreData(ze,Ie),Lt.performSeriesTasks(ze),At.create(ze,Ue),Lt.performDataProcessorTasks(ze,Ie),updateStreamModes(this,ze),At.update(ze,Ue),oe(ze),Lt.performVisualTasks(ze,Ie),render$2(this,ze,Ue,Ie,Fe);var hn=ze.get("backgroundColor")||"transparent",vn=ze.get("darkMode");qe.setBackgroundColor(hn),vn!=null&&vn!=="auto"&&qe.setDarkMode(vn),lifecycle$1.trigger("afterupdate",ze,Ue)}},updateTransform:function(Ie){var Fe=this,ze=this._model,Ue=this._api;if(ze){ze.setUpdatePayload(Ie);var qe=[];ze.eachComponent(function(Lt,hn){if(Lt!=="series"){var vn=Fe.getViewOfComponentModel(hn);if(vn&&vn.__alive)if(vn.updateTransform){var _n=vn.updateTransform(hn,ze,Ue,Ie);_n&&_n.update&&qe.push(vn)}else qe.push(vn)}});var At=createHashMap();ze.eachSeries(function(Lt){var hn=Fe._chartsMap[Lt.__viewId];if(hn.updateTransform){var vn=hn.updateTransform(Lt,ze,Ue,Ie);vn&&vn.update&&At.set(Lt.uid,1)}else At.set(Lt.uid,1)}),oe(ze),this._scheduler.performVisualTasks(ze,Ie,{setDirty:!0,dirtyMap:At}),renderSeries(this,ze,Ue,Ie,{},At),lifecycle$1.trigger("afterupdate",ze,Ue)}},updateView:function(Ie){var Fe=this._model;Fe&&(Fe.setUpdatePayload(Ie),ChartView$1.markUpdateMethod(Ie,"updateView"),oe(Fe),this._scheduler.performVisualTasks(Fe,Ie,{setDirty:!0}),render$2(this,Fe,this._api,Ie,{}),lifecycle$1.trigger("afterupdate",Fe,this._api))},updateVisual:function(Ie){var Fe=this,ze=this._model;ze&&(ze.setUpdatePayload(Ie),ze.eachSeries(function(Ue){Ue.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(Ie,"updateVisual"),oe(ze),this._scheduler.performVisualTasks(ze,Ie,{visualType:"visual",setDirty:!0}),ze.eachComponent(function(Ue,qe){if(Ue!=="series"){var At=Fe.getViewOfComponentModel(qe);At&&At.__alive&&At.updateVisual(qe,ze,Fe._api,Ie)}}),ze.eachSeries(function(Ue){var qe=Fe._chartsMap[Ue.__viewId];qe.updateVisual(Ue,ze,Fe._api,Ie)}),lifecycle$1.trigger("afterupdate",ze,this._api))},updateLayout:function(Ie){updateMethods.update.call(this,Ie)}},doConvertPixel=function(Ie,Fe,ze,Ue){if(Ie._disposed){Ie.id;return}for(var qe=Ie._model,At=Ie._coordSysMgr.getCoordinateSystems(),Lt,hn=parseFinder$1(qe,ze),vn=0;vn<At.length;vn++){var _n=At[vn];if(_n[Fe]&&(Lt=_n[Fe](qe,hn,Ue))!=null)return Lt}},updateStreamModes=function(Ie,Fe){var ze=Ie._chartsMap,Ue=Ie._scheduler;Fe.eachSeries(function(qe){Ue.updateStreamModes(qe,ze[qe.__viewId])})},doDispatchAction=function(Ie,Fe){var ze=this,Ue=this.getModel(),qe=Ie.type,At=Ie.escapeConnect,Lt=actions[qe],hn=Lt.actionInfo,vn=(hn.update||"update").split(":"),_n=vn.pop(),bn=vn[0]!=null&&parseClassType(vn[0]);this[IN_MAIN_PROCESS_KEY]=!0;var Sn=[Ie],Cn=!1;Ie.batch&&(Cn=!0,Sn=map$2(Ie.batch,function(Nn){return Nn=defaults(extend({},Nn),Ie),Nn.batch=null,Nn}));var En=[],$n,wn=isSelectChangePayload(Ie),Tn=isHighDownPayload(Ie);if(Tn&&allLeaveBlur(this._api),each$c(Sn,function(Nn){if($n=Lt.action(Nn,ze._model,ze._api),$n=$n||extend({},Nn),$n.type=hn.event||$n.type,En.push($n),Tn){var Bn=preParseFinder(Ie),Dn=Bn.queryOptionMap,In=Bn.mainTypeSpecified,Ln=In?Dn.keys()[0]:"series";updateDirectly(ze,_n,Nn,Ln),markStatusToUpdate(ze)}else wn?(updateDirectly(ze,_n,Nn,"series"),markStatusToUpdate(ze)):bn&&updateDirectly(ze,_n,Nn,bn.main,bn.sub)}),_n!=="none"&&!Tn&&!wn&&!bn)try{this[PENDING_UPDATE]?(prepare$1(this),updateMethods.update.call(this,Ie),this[PENDING_UPDATE]=null):updateMethods[_n].call(this,Ie)}catch(Nn){throw this[IN_MAIN_PROCESS_KEY]=!1,Nn}if(Cn?$n={type:hn.event||qe,escapeConnect:At,batch:En}:$n=En[0],this[IN_MAIN_PROCESS_KEY]=!1,!Fe){var xn=this._messageCenter;if(xn.trigger($n.type,$n),wn){var kn={type:"selectchanged",escapeConnect:At,selected:getAllSelectedIndices(Ue),isFromClick:Ie.isFromClick||!1,fromAction:Ie.type,fromActionPayload:Ie};xn.trigger(kn.type,kn)}}},flushPendingActions=function(Ie){for(var Fe=this._pendingActions;Fe.length;){var ze=Fe.shift();doDispatchAction.call(this,ze,Ie)}},triggerUpdatedEvent=function(Ie){!Ie&&this.trigger("updated")},bindRenderedEvent=function(Ie,Fe){Ie.on("rendered",function(ze){Fe.trigger("rendered",ze),Ie.animation.isFinished()&&!Fe[PENDING_UPDATE]&&!Fe._scheduler.unfinished&&!Fe._pendingActions.length&&Fe.trigger("finished")})},bindMouseEvent=function(Ie,Fe){Ie.on("mouseover",function(ze){var Ue=ze.target,qe=findEventDispatcher(Ue,isHighDownDispatcher);qe&&(handleGlobalMouseOverForHighDown(qe,ze,Fe._api),markStatusToUpdate(Fe))}).on("mouseout",function(ze){var Ue=ze.target,qe=findEventDispatcher(Ue,isHighDownDispatcher);qe&&(handleGlobalMouseOutForHighDown(qe,ze,Fe._api),markStatusToUpdate(Fe))}).on("click",function(ze){var Ue=ze.target,qe=findEventDispatcher(Ue,function(hn){return getECData(hn).dataIndex!=null},!0);if(qe){var At=qe.selected?"unselect":"select",Lt=getECData(qe);Fe._api.dispatchAction({type:At,dataType:Lt.dataType,dataIndexInside:Lt.dataIndex,seriesIndex:Lt.seriesIndex,isFromClick:!0})}})};function oe(Ie){Ie.clearColorPalette(),Ie.eachSeries(function(Fe){Fe.clearColorPalette()})}function ae(Ie){var Fe=[],ze=[],Ue=!1;if(Ie.eachComponent(function(hn,vn){var _n=vn.get("zlevel")||0,bn=vn.get("z")||0,Sn=vn.getZLevelKey();Ue=Ue||!!Sn,(hn==="series"?ze:Fe).push({zlevel:_n,z:bn,idx:vn.componentIndex,type:hn,key:Sn})}),Ue){var qe=Fe.concat(ze),At,Lt;sort(qe,function(hn,vn){return hn.zlevel===vn.zlevel?hn.z-vn.z:hn.zlevel-vn.zlevel}),each$c(qe,function(hn){var vn=Ie.getComponent(hn.type,hn.idx),_n=hn.zlevel,bn=hn.key;At!=null&&(_n=Math.max(At,_n)),bn?(_n===At&&bn!==Lt&&_n++,Lt=bn):Lt&&(_n===At&&_n++,Lt=""),At=_n,vn.setZLevel(_n)})}}render$2=function(Ie,Fe,ze,Ue,qe){ae(Fe),renderComponents(Ie,Fe,ze,Ue,qe),each$c(Ie._chartsViews,function(At){At.__alive=!1}),renderSeries(Ie,Fe,ze,Ue,qe),each$c(Ie._chartsViews,function(At){At.__alive||At.remove(Fe,ze)})},renderComponents=function(Ie,Fe,ze,Ue,qe,At){each$c(At||Ie._componentsViews,function(Lt){var hn=Lt.__model;$e(hn,Lt),Lt.render(hn,Fe,ze,Ue),_e(hn,Lt),xe(hn,Lt)})},renderSeries=function(Ie,Fe,ze,Ue,qe,At){var Lt=Ie._scheduler;qe=extend(qe||{},{updatedSeries:Fe.getSeries()}),lifecycle$1.trigger("series:beforeupdate",Fe,ze,qe);var hn=!1;Fe.eachSeries(function(vn){var _n=Ie._chartsMap[vn.__viewId];_n.__alive=!0;var bn=_n.renderTask;Lt.updatePayload(bn,Ue),$e(vn,_n),At&&At.get(vn.uid)&&bn.dirty(),bn.perform(Lt.getPerformArgs(bn))&&(hn=!0),_n.group.silent=!!vn.get("silent"),pe(vn,_n),updateSeriesElementSelection(vn)}),Lt.unfinished=hn||Lt.unfinished,lifecycle$1.trigger("series:layoutlabels",Fe,ze,qe),lifecycle$1.trigger("series:transition",Fe,ze,qe),Fe.eachSeries(function(vn){var _n=Ie._chartsMap[vn.__viewId];_e(vn,_n),xe(vn,_n)}),ue(Ie,Fe),lifecycle$1.trigger("series:afterupdate",Fe,ze,qe)},markStatusToUpdate=function(Ie){Ie[STATUS_NEEDS_UPDATE_KEY]=!0,Ie.getZr().wakeUp()},applyChangedStates=function(Ie){Ie[STATUS_NEEDS_UPDATE_KEY]&&(Ie.getZr().storage.traverse(function(Fe){isElementRemoved(Fe)||le(Fe)}),Ie[STATUS_NEEDS_UPDATE_KEY]=!1)};function le(Ie){for(var Fe=[],ze=Ie.currentStates,Ue=0;Ue<ze.length;Ue++){var qe=ze[Ue];qe==="emphasis"||qe==="blur"||qe==="select"||Fe.push(qe)}Ie.selected&&Ie.states.select&&Fe.push("select"),Ie.hoverState===HOVER_STATE_EMPHASIS&&Ie.states.emphasis?Fe.push("emphasis"):Ie.hoverState===HOVER_STATE_BLUR&&Ie.states.blur&&Fe.push("blur"),Ie.useStates(Fe)}function ue(Ie,Fe){var ze=Ie._zr,Ue=ze.storage,qe=0;Ue.traverse(function(At){At.isGroup||qe++}),qe>Fe.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&Fe.eachSeries(function(At){if(!At.preventUsingHoverLayer){var Lt=Ie._chartsMap[At.__viewId];Lt.__alive&&Lt.eachRendered(function(hn){hn.states.emphasis&&(hn.states.emphasis.hoverLayer=!0)})}})}function pe(Ie,Fe){var ze=Ie.get("blendMode")||null;Fe.eachRendered(function(Ue){Ue.isGroup||(Ue.style.blend=ze)})}function _e(Ie,Fe){if(!Ie.preventAutoZ){var ze=Ie.get("z")||0,Ue=Ie.get("zlevel")||0;Fe.eachRendered(function(qe){return Ce(qe,ze,Ue,-1/0),!0})}}function Ce(Ie,Fe,ze,Ue){var qe=Ie.getTextContent(),At=Ie.getTextGuideLine(),Lt=Ie.isGroup;if(Lt)for(var hn=Ie.childrenRef(),vn=0;vn<hn.length;vn++)Ue=Math.max(Ce(hn[vn],Fe,ze,Ue),Ue);else Ie.z=Fe,Ie.zlevel=ze,Ue=Math.max(Ie.z2,Ue);if(qe&&(qe.z=Fe,qe.zlevel=ze,isFinite(Ue)&&(qe.z2=Ue+2)),At){var _n=Ie.textGuideLineConfig;At.z=Fe,At.zlevel=ze,isFinite(Ue)&&(At.z2=Ue+(_n&&_n.showAbove?1:-1))}return Ue}function $e(Ie,Fe){Fe.eachRendered(function(ze){if(!isElementRemoved(ze)){var Ue=ze.getTextContent(),qe=ze.getTextGuideLine();ze.stateTransition&&(ze.stateTransition=null),Ue&&Ue.stateTransition&&(Ue.stateTransition=null),qe&&qe.stateTransition&&(qe.stateTransition=null),ze.hasState()?(ze.prevStates=ze.currentStates,ze.clearStates()):ze.prevStates&&(ze.prevStates=null)}})}function xe(Ie,Fe){var ze=Ie.getModel("stateAnimation"),Ue=Ie.isAnimationEnabled(),qe=ze.get("duration"),At=qe>0?{duration:qe,delay:ze.get("delay"),easing:ze.get("easing")}:null;Fe.eachRendered(function(Lt){if(Lt.states&&Lt.states.emphasis){if(isElementRemoved(Lt))return;if(Lt instanceof Path$1&&savePathStates(Lt),Lt.__dirty){var hn=Lt.prevStates;hn&&Lt.useStates(hn)}if(Ue){Lt.stateTransition=At;var vn=Lt.getTextContent(),_n=Lt.getTextGuideLine();vn&&(vn.stateTransition=At),_n&&(_n.stateTransition=At)}Lt.__dirty&&le(Lt)}})}createExtensionAPI=function(Ie){return new(function(Fe){__extends(ze,Fe);function ze(){return Fe!==null&&Fe.apply(this,arguments)||this}return ze.prototype.getCoordinateSystems=function(){return Ie._coordSysMgr.getCoordinateSystems()},ze.prototype.getComponentByElement=function(Ue){for(;Ue;){var qe=Ue.__ecComponentInfo;if(qe!=null)return Ie._model.getComponent(qe.mainType,qe.index);Ue=Ue.parent}},ze.prototype.enterEmphasis=function(Ue,qe){enterEmphasis(Ue,qe),markStatusToUpdate(Ie)},ze.prototype.leaveEmphasis=function(Ue,qe){leaveEmphasis(Ue,qe),markStatusToUpdate(Ie)},ze.prototype.enterBlur=function(Ue){enterBlur(Ue),markStatusToUpdate(Ie)},ze.prototype.leaveBlur=function(Ue){leaveBlur(Ue),markStatusToUpdate(Ie)},ze.prototype.enterSelect=function(Ue){enterSelect(Ue),markStatusToUpdate(Ie)},ze.prototype.leaveSelect=function(Ue){leaveSelect(Ue),markStatusToUpdate(Ie)},ze.prototype.getModel=function(){return Ie.getModel()},ze.prototype.getViewOfComponentModel=function(Ue){return Ie.getViewOfComponentModel(Ue)},ze.prototype.getViewOfSeriesModel=function(Ue){return Ie.getViewOfSeriesModel(Ue)},ze}(ExtensionAPI$1))(Ie)},enableConnect=function(Ie){function Fe(ze,Ue){for(var qe=0;qe<ze.length;qe++){var At=ze[qe];At[CONNECT_STATUS_KEY]=Ue}}each$c(eventActionMap,function(ze,Ue){Ie._messageCenter.on(Ue,function(qe){if(connectedGroups[Ie.group]&&Ie[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(qe&&qe.escapeConnect)return;var At=Ie.makeActionFromEvent(qe),Lt=[];each$c(instances,function(hn){hn!==Ie&&hn.group===Ie.group&&Lt.push(hn)}),Fe(Lt,CONNECT_STATUS_PENDING),each$c(Lt,function(hn){hn[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&hn.dispatchAction(At)}),Fe(Lt,CONNECT_STATUS_UPDATED)}})})}}(),z}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function($,z,oe){var ae=this;function le(){for(var ue=[],pe=0;pe<arguments.length;pe++)ue[pe]=arguments[pe];z&&z.apply&&z.apply(this,ue),ae.off($,le)}this.on.call(this,$,le,oe)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning($){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,groupIdBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init($,z,oe){var ae=!(oe&&oe.ssr);if(ae){var le=getInstanceByDom($);if(le)return le}var ue=new ECharts($,z,oe);return ue.id="ec_"+idBase++,instances[ue.id]=ue,ae&&setAttribute($,DOM_ATTRIBUTE_KEY,ue.id),enableConnect(ue),lifecycle$1.trigger("afterinit",ue),ue}function connect($){if(isArray$1($)){var z=$;$=null,each$c(z,function(oe){oe.group!=null&&($=oe.group)}),$=$||"g_"+groupIdBase++,each$c(z,function(oe){oe.group=$})}return connectedGroups[$]=!0,$}function disConnect($){connectedGroups[$]=!1}var disconnect=disConnect;function dispose($){isString($)?$=instances[$]:$ instanceof ECharts||($=getInstanceByDom($)),$ instanceof ECharts&&!$.isDisposed()&&$.dispose()}function getInstanceByDom($){return instances[getAttribute($,DOM_ATTRIBUTE_KEY)]}function getInstanceById($){return instances[$]}function registerTheme($,z){themeStorage[$]=z}function registerPreprocessor($){indexOf(optionPreprocessorFuncs,$)<0&&optionPreprocessorFuncs.push($)}function registerProcessor($,z){normalizeRegister(dataProcessorFuncs,$,z,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit($){registerUpdateLifecycle("afterinit",$)}function registerPostUpdate($){registerUpdateLifecycle("afterupdate",$)}function registerUpdateLifecycle($,z){lifecycle$1.on($,z)}function registerAction($,z,oe){isFunction(z)&&(oe=z,z="");var ae=isObject$3($)?$.type:[$,$={event:z}][0];$.event=($.event||ae).toLowerCase(),z=$.event,!eventActionMap[z]&&(assert(ACTION_REG.test(ae)&&ACTION_REG.test(z)),actions[ae]||(actions[ae]={action:oe,actionInfo:$}),eventActionMap[z]=ae)}function registerCoordinateSystem($,z){CoordinateSystem.register($,z)}function getCoordinateSystemDimensions($){var z=CoordinateSystem.get($);if(z)return z.getDimensionsInfo?z.getDimensionsInfo():z.dimensions.slice()}function registerLayout($,z){normalizeRegister(visualFuncs,$,z,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual($,z){normalizeRegister(visualFuncs,$,z,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister($,z,oe,ae,le){if((isFunction(z)||isObject$3(z))&&(oe=z,z=ae),!(indexOf(registeredTasks,oe)>=0)){registeredTasks.push(oe);var ue=Scheduler$1.wrapStageHandler(oe,le);ue.__prio=z,ue.__raw=oe,$.push(ue)}}function registerLoading($,z){loadingEffects[$]=z}function setCanvasCreator($){setPlatformAPI({createCanvas:$})}function registerMap($,z,oe){var ae=getImpl("registerMap");ae&&ae($,z,oe)}function getMap($){var z=getImpl("getMap");return z&&z($)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength($){return $==null?0:$.length||1}function defaultKeyGetter($){return $}var DataDiffer=function(){function $(z,oe,ae,le,ue,pe){this._old=z,this._new=oe,this._oldKeyGetter=ae||defaultKeyGetter,this._newKeyGetter=le||defaultKeyGetter,this.context=ue,this._diffModeMultiple=pe==="multiple"}return $.prototype.add=function(z){return this._add=z,this},$.prototype.update=function(z){return this._update=z,this},$.prototype.updateManyToOne=function(z){return this._updateManyToOne=z,this},$.prototype.updateOneToMany=function(z){return this._updateOneToMany=z,this},$.prototype.updateManyToMany=function(z){return this._updateManyToMany=z,this},$.prototype.remove=function(z){return this._remove=z,this},$.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},$.prototype._executeOneToOne=function(){var z=this._old,oe=this._new,ae={},le=new Array(z.length),ue=new Array(oe.length);this._initIndexMap(z,null,le,"_oldKeyGetter"),this._initIndexMap(oe,ae,ue,"_newKeyGetter");for(var pe=0;pe<z.length;pe++){var _e=le[pe],Ce=ae[_e],$e=dataIndexMapValueLength(Ce);if($e>1){var xe=Ce.shift();Ce.length===1&&(ae[_e]=Ce[0]),this._update&&this._update(xe,pe)}else $e===1?(ae[_e]=null,this._update&&this._update(Ce,pe)):this._remove&&this._remove(pe)}this._performRestAdd(ue,ae)},$.prototype._executeMultiple=function(){var z=this._old,oe=this._new,ae={},le={},ue=[],pe=[];this._initIndexMap(z,ae,ue,"_oldKeyGetter"),this._initIndexMap(oe,le,pe,"_newKeyGetter");for(var _e=0;_e<ue.length;_e++){var Ce=ue[_e],$e=ae[Ce],xe=le[Ce],Ie=dataIndexMapValueLength($e),Fe=dataIndexMapValueLength(xe);if(Ie>1&&Fe===1)this._updateManyToOne&&this._updateManyToOne(xe,$e),le[Ce]=null;else if(Ie===1&&Fe>1)this._updateOneToMany&&this._updateOneToMany(xe,$e),le[Ce]=null;else if(Ie===1&&Fe===1)this._update&&this._update(xe,$e),le[Ce]=null;else if(Ie>1&&Fe>1)this._updateManyToMany&&this._updateManyToMany(xe,$e),le[Ce]=null;else if(Ie>1)for(var ze=0;ze<Ie;ze++)this._remove&&this._remove($e[ze]);else this._remove&&this._remove($e)}this._performRestAdd(pe,le)},$.prototype._performRestAdd=function(z,oe){for(var ae=0;ae<z.length;ae++){var le=z[ae],ue=oe[le],pe=dataIndexMapValueLength(ue);if(pe>1)for(var _e=0;_e<pe;_e++)this._add&&this._add(ue[_e]);else pe===1&&this._add&&this._add(ue);oe[le]=null}},$.prototype._initIndexMap=function(z,oe,ae,le){for(var ue=this._diffModeMultiple,pe=0;pe<z.length;pe++){var _e="_ec_"+this[le](z[pe],pe);if(ue||(ae[pe]=_e),!!oe){var Ce=oe[_e],$e=dataIndexMapValueLength(Ce);$e===0?(oe[_e]=pe,ue&&ae.push(_e)):$e===1?oe[_e]=[Ce,pe]:Ce.push(pe)}}},$}();const DataDiffer$1=DataDiffer;var DimensionUserOuput=function(){function $(z,oe){this._encode=z,this._schema=oe}return $.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},$.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},$}();function summarizeDimensions($,z){var oe={},ae=oe.encode={},le=createHashMap(),ue=[],pe=[],_e={};each$c($.dimensions,function(Fe){var ze=$.getDimensionInfo(Fe),Ue=ze.coordDim;if(Ue){var qe=ze.coordDimIndex;getOrCreateEncodeArr(ae,Ue)[qe]=Fe,ze.isExtraCoord||(le.set(Ue,1),mayLabelDimType(ze.type)&&(ue[0]=Fe),getOrCreateEncodeArr(_e,Ue)[qe]=$.getDimensionIndex(ze.name)),ze.defaultTooltip&&pe.push(Fe)}VISUAL_DIMENSIONS.each(function(At,Lt){var hn=getOrCreateEncodeArr(ae,Lt),vn=ze.otherDims[Lt];vn!=null&&vn!==!1&&(hn[vn]=ze.name)})});var Ce=[],$e={};le.each(function(Fe,ze){var Ue=ae[ze];$e[ze]=Ue[0],Ce=Ce.concat(Ue)}),oe.dataDimsOnCoord=Ce,oe.dataDimIndicesOnCoord=map$2(Ce,function(Fe){return $.getDimensionInfo(Fe).storeDimIndex}),oe.encodeFirstDimNotExtra=$e;var xe=ae.label;xe&&xe.length&&(ue=xe.slice());var Ie=ae.tooltip;return Ie&&Ie.length?pe=Ie.slice():pe.length||(pe=ue.slice()),ae.defaultedLabel=ue,ae.defaultedTooltip=pe,oe.userOutput=new DimensionUserOuput(_e,z),oe}function getOrCreateEncodeArr($,z){return $.hasOwnProperty(z)||($[z]=[]),$[z]}function getDimensionTypeByAxis($){return $==="category"?"ordinal":$==="time"?"time":"float"}function mayLabelDimType($){return!($==="ordinal"||$==="time")}var SeriesDimensionDefine=function(){function $(z){this.otherDims={},z!=null&&extend(this,z)}return $}();const SeriesDimensionDefine$1=SeriesDimensionDefine;var inner$8=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function $(z){this.dimensions=z.dimensions,this._dimOmitted=z.dimensionOmitted,this.source=z.source,this._fullDimCount=z.fullDimensionCount,this._updateDimOmitted(z.dimensionOmitted)}return $.prototype.isDimensionOmitted=function(){return this._dimOmitted},$.prototype._updateDimOmitted=function(z){this._dimOmitted=z,z&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},$.prototype.getSourceDimensionIndex=function(z){return retrieve2(this._dimNameMap.get(z),-1)},$.prototype.getSourceDimension=function(z){var oe=this.source.dimensionsDefine;if(oe)return oe[z]},$.prototype.makeStoreSchema=function(){for(var z=this._fullDimCount,oe=shouldRetrieveDataByName(this.source),ae=!shouldOmitUnusedDimensions(z),le="",ue=[],pe=0,_e=0;pe<z;pe++){var Ce=void 0,$e=void 0,xe=void 0,Ie=this.dimensions[_e];if(Ie&&Ie.storeDimIndex===pe)Ce=oe?Ie.name:null,$e=Ie.type,xe=Ie.ordinalMeta,_e++;else{var Fe=this.getSourceDimension(pe);Fe&&(Ce=oe?Fe.name:null,$e=Fe.type)}ue.push({property:Ce,type:$e,ordinalMeta:xe}),oe&&Ce!=null&&(!Ie||!Ie.isCalculationCoord)&&(le+=ae?Ce.replace(/\`/g,"`1").replace(/\$/g,"`2"):Ce),le+="$",le+=dimTypeShort[$e]||"f",xe&&(le+=xe.uid),le+="$"}var ze=this.source,Ue=[ze.seriesLayoutBy,ze.startIndex,le].join("$$");return{dimensions:ue,hash:Ue}},$.prototype.makeOutputDimensionNames=function(){for(var z=[],oe=0,ae=0;oe<this._fullDimCount;oe++){var le=void 0,ue=this.dimensions[ae];if(ue&&ue.storeDimIndex===oe)ue.isCalculationCoord||(le=ue.name),ae++;else{var pe=this.getSourceDimension(oe);pe&&(le=pe.name)}z.push(le)}return z},$.prototype.appendCalculationDimension=function(z){this.dimensions.push(z),z.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},$}();function isSeriesDataSchema($){return $ instanceof SeriesDataSchema}function createDimNameMap($){for(var z=createHashMap(),oe=0;oe<($||[]).length;oe++){var ae=$[oe],le=isObject$3(ae)?ae.name:ae;le!=null&&z.get(le)==null&&z.set(le,oe)}return z}function ensureSourceDimNameMap($){var z=inner$8($);return z.dimNameMap||(z.dimNameMap=createDimNameMap($.dimensionsDefine))}function shouldOmitUnusedDimensions($){return $>30}var isObject$1=isObject$3,map$1=map$2,CtorInt32Array=typeof Int32Array>"u"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function $(z,oe){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var ae,le=!1;isSeriesDataSchema(z)?(ae=z.dimensions,this._dimOmitted=z.isDimensionOmitted(),this._schema=z):(le=!0,ae=z),ae=ae||["x","y"];for(var ue={},pe=[],_e={},Ce=!1,$e={},xe=0;xe<ae.length;xe++){var Ie=ae[xe],Fe=isString(Ie)?new SeriesDimensionDefine$1({name:Ie}):Ie instanceof SeriesDimensionDefine$1?Ie:new SeriesDimensionDefine$1(Ie),ze=Fe.name;Fe.type=Fe.type||"float",Fe.coordDim||(Fe.coordDim=ze,Fe.coordDimIndex=0);var Ue=Fe.otherDims=Fe.otherDims||{};pe.push(ze),ue[ze]=Fe,$e[ze]!=null&&(Ce=!0),Fe.createInvertedIndices&&(_e[ze]=[]),Ue.itemName===0&&(this._nameDimIdx=xe),Ue.itemId===0&&(this._idDimIdx=xe),le&&(Fe.storeDimIndex=xe)}if(this.dimensions=pe,this._dimInfos=ue,this._initGetDimensionInfo(Ce),this.hostModel=oe,this._invertedIndicesMap=_e,this._dimOmitted){var qe=this._dimIdxToName=createHashMap();each$c(pe,function(At){qe.set(ue[At].storeDimIndex,At)})}}return $.prototype.getDimension=function(z){var oe=this._recognizeDimIndex(z);if(oe==null)return z;if(oe=z,!this._dimOmitted)return this.dimensions[oe];var ae=this._dimIdxToName.get(oe);if(ae!=null)return ae;var le=this._schema.getSourceDimension(oe);if(le)return le.name},$.prototype.getDimensionIndex=function(z){var oe=this._recognizeDimIndex(z);if(oe!=null)return oe;if(z==null)return-1;var ae=this._getDimInfo(z);return ae?ae.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(z):-1},$.prototype._recognizeDimIndex=function(z){if(isNumber(z)||z!=null&&!isNaN(z)&&!this._getDimInfo(z)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(z)<0))return+z},$.prototype._getStoreDimIndex=function(z){var oe=this.getDimensionIndex(z);return oe},$.prototype.getDimensionInfo=function(z){return this._getDimInfo(this.getDimension(z))},$.prototype._initGetDimensionInfo=function(z){var oe=this._dimInfos;this._getDimInfo=z?function(ae){return oe.hasOwnProperty(ae)?oe[ae]:void 0}:function(ae){return oe[ae]}},$.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},$.prototype.mapDimension=function(z,oe){var ae=this._dimSummary;if(oe==null)return ae.encodeFirstDimNotExtra[z];var le=ae.encode[z];return le?le[oe]:null},$.prototype.mapDimensionsAll=function(z){var oe=this._dimSummary,ae=oe.encode[z];return(ae||[]).slice()},$.prototype.getStore=function(){return this._store},$.prototype.initData=function(z,oe,ae){var le=this,ue;if(z instanceof DataStore$1&&(ue=z),!ue){var pe=this.dimensions,_e=isSourceInstance(z)||isArrayLike(z)?new DefaultDataProvider(z,pe.length):z;ue=new DataStore$1;var Ce=map$1(pe,function($e){return{type:le._dimInfos[$e].type,property:$e}});ue.initData(_e,Ce,ae)}this._store=ue,this._nameList=(oe||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,ue.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},$.prototype.appendData=function(z){var oe=this._store.appendData(z);this._doInit(oe[0],oe[1])},$.prototype.appendValues=function(z,oe){var ae=this._store.appendValues(z,oe.length),le=ae.start,ue=ae.end,pe=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),oe)for(var _e=le;_e<ue;_e++){var Ce=_e-le;this._nameList[_e]=oe[Ce],pe&&makeIdFromName(this,_e)}},$.prototype._updateOrdinalMeta=function(){for(var z=this._store,oe=this.dimensions,ae=0;ae<oe.length;ae++){var le=this._dimInfos[oe[ae]];le.ordinalMeta&&z.collectOrdinalMeta(le.storeDimIndex,le.ordinalMeta)}},$.prototype._shouldMakeIdFromName=function(){var z=this._store.getProvider();return this._idDimIdx==null&&z.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!z.fillStorage},$.prototype._doInit=function(z,oe){if(!(z>=oe)){var ae=this._store,le=ae.getProvider();this._updateOrdinalMeta();var ue=this._nameList,pe=this._idList,_e=le.getSource().sourceFormat,Ce=_e===SOURCE_FORMAT_ORIGINAL;if(Ce&&!le.pure)for(var $e=[],xe=z;xe<oe;xe++){var Ie=le.getItem(xe,$e);if(!this.hasItemOption&&isDataItemOption(Ie)&&(this.hasItemOption=!0),Ie){var Fe=Ie.name;ue[xe]==null&&Fe!=null&&(ue[xe]=convertOptionIdName(Fe,null));var ze=Ie.id;pe[xe]==null&&ze!=null&&(pe[xe]=convertOptionIdName(ze,null))}}if(this._shouldMakeIdFromName())for(var xe=z;xe<oe;xe++)makeIdFromName(this,xe);prepareInvertedIndex(this)}},$.prototype.getApproximateExtent=function(z){return this._approximateExtent[z]||this._store.getDataExtent(this._getStoreDimIndex(z))},$.prototype.setApproximateExtent=function(z,oe){oe=this.getDimension(oe),this._approximateExtent[oe]=z.slice()},$.prototype.getCalculationInfo=function(z){return this._calculationInfo[z]},$.prototype.setCalculationInfo=function(z,oe){isObject$1(z)?extend(this._calculationInfo,z):this._calculationInfo[z]=oe},$.prototype.getName=function(z){var oe=this.getRawIndex(z),ae=this._nameList[oe];return ae==null&&this._nameDimIdx!=null&&(ae=getIdNameFromStore(this,this._nameDimIdx,oe)),ae==null&&(ae=""),ae},$.prototype._getCategory=function(z,oe){var ae=this._store.get(z,oe),le=this._store.getOrdinalMeta(z);return le?le.categories[ae]:ae},$.prototype.getId=function(z){return getId(this,this.getRawIndex(z))},$.prototype.count=function(){return this._store.count()},$.prototype.get=function(z,oe){var ae=this._store,le=this._dimInfos[z];if(le)return ae.get(le.storeDimIndex,oe)},$.prototype.getByRawIndex=function(z,oe){var ae=this._store,le=this._dimInfos[z];if(le)return ae.getByRawIndex(le.storeDimIndex,oe)},$.prototype.getIndices=function(){return this._store.getIndices()},$.prototype.getDataExtent=function(z){return this._store.getDataExtent(this._getStoreDimIndex(z))},$.prototype.getSum=function(z){return this._store.getSum(this._getStoreDimIndex(z))},$.prototype.getMedian=function(z){return this._store.getMedian(this._getStoreDimIndex(z))},$.prototype.getValues=function(z,oe){var ae=this,le=this._store;return isArray$1(z)?le.getValues(map$1(z,function(ue){return ae._getStoreDimIndex(ue)}),oe):le.getValues(z)},$.prototype.hasValue=function(z){for(var oe=this._dimSummary.dataDimIndicesOnCoord,ae=0,le=oe.length;ae<le;ae++)if(isNaN(this._store.get(oe[ae],z)))return!1;return!0},$.prototype.indexOfName=function(z){for(var oe=0,ae=this._store.count();oe<ae;oe++)if(this.getName(oe)===z)return oe;return-1},$.prototype.getRawIndex=function(z){return this._store.getRawIndex(z)},$.prototype.indexOfRawIndex=function(z){return this._store.indexOfRawIndex(z)},$.prototype.rawIndexOf=function(z,oe){var ae=z&&this._invertedIndicesMap[z],le=ae[oe];return le==null||isNaN(le)?INDEX_NOT_FOUND:le},$.prototype.indicesOfNearest=function(z,oe,ae){return this._store.indicesOfNearest(this._getStoreDimIndex(z),oe,ae)},$.prototype.each=function(z,oe,ae){isFunction(z)&&(ae=oe,oe=z,z=[]);var le=ae||this,ue=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);this._store.each(ue,le?bind$1(oe,le):oe)},$.prototype.filterSelf=function(z,oe,ae){isFunction(z)&&(ae=oe,oe=z,z=[]);var le=ae||this,ue=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);return this._store=this._store.filter(ue,le?bind$1(oe,le):oe),this},$.prototype.selectRange=function(z){var oe=this,ae={},le=keys(z);return each$c(le,function(ue){var pe=oe._getStoreDimIndex(ue);ae[pe]=z[ue]}),this._store=this._store.selectRange(ae),this},$.prototype.mapArray=function(z,oe,ae){isFunction(z)&&(ae=oe,oe=z,z=[]),ae=ae||this;var le=[];return this.each(z,function(){le.push(oe&&oe.apply(this,arguments))},ae),le},$.prototype.map=function(z,oe,ae,le){var ue=ae||le||this,pe=map$1(normalizeDimensions(z),this._getStoreDimIndex,this),_e=cloneListForMapAndSample(this);return _e._store=this._store.map(pe,ue?bind$1(oe,ue):oe),_e},$.prototype.modify=function(z,oe,ae,le){var ue=ae||le||this,pe=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);this._store.modify(pe,ue?bind$1(oe,ue):oe)},$.prototype.downSample=function(z,oe,ae,le){var ue=cloneListForMapAndSample(this);return ue._store=this._store.downSample(this._getStoreDimIndex(z),oe,ae,le),ue},$.prototype.lttbDownSample=function(z,oe){var ae=cloneListForMapAndSample(this);return ae._store=this._store.lttbDownSample(this._getStoreDimIndex(z),oe),ae},$.prototype.getRawDataItem=function(z){return this._store.getRawDataItem(z)},$.prototype.getItemModel=function(z){var oe=this.hostModel,ae=this.getRawDataItem(z);return new Model$1(ae,oe,oe&&oe.ecModel)},$.prototype.diff=function(z){var oe=this;return new DataDiffer$1(z?z.getStore().getIndices():[],this.getStore().getIndices(),function(ae){return getId(z,ae)},function(ae){return getId(oe,ae)})},$.prototype.getVisual=function(z){var oe=this._visual;return oe&&oe[z]},$.prototype.setVisual=function(z,oe){this._visual=this._visual||{},isObject$1(z)?extend(this._visual,z):this._visual[z]=oe},$.prototype.getItemVisual=function(z,oe){var ae=this._itemVisuals[z],le=ae&&ae[oe];return le??this.getVisual(oe)},$.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},$.prototype.ensureUniqueItemVisual=function(z,oe){var ae=this._itemVisuals,le=ae[z];le||(le=ae[z]={});var ue=le[oe];return ue==null&&(ue=this.getVisual(oe),isArray$1(ue)?ue=ue.slice():isObject$1(ue)&&(ue=extend({},ue)),le[oe]=ue),ue},$.prototype.setItemVisual=function(z,oe,ae){var le=this._itemVisuals[z]||{};this._itemVisuals[z]=le,isObject$1(oe)?extend(le,oe):le[oe]=ae},$.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},$.prototype.setLayout=function(z,oe){isObject$1(z)?extend(this._layout,z):this._layout[z]=oe},$.prototype.getLayout=function(z){return this._layout[z]},$.prototype.getItemLayout=function(z){return this._itemLayouts[z]},$.prototype.setItemLayout=function(z,oe,ae){this._itemLayouts[z]=ae?extend(this._itemLayouts[z]||{},oe):oe},$.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},$.prototype.setItemGraphicEl=function(z,oe){var ae=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(ae,this.dataType,z,oe),this._graphicEls[z]=oe},$.prototype.getItemGraphicEl=function(z){return this._graphicEls[z]},$.prototype.eachItemGraphicEl=function(z,oe){each$c(this._graphicEls,function(ae,le){ae&&z&&z.call(oe,ae,le)})},$.prototype.cloneShallow=function(z){return z||(z=new $(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(z,this),z._store=this._store,z},$.prototype.wrapMethod=function(z,oe){var ae=this[z];isFunction(ae)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var le=ae.apply(this,arguments);return oe.apply(this,[le].concat(slice(arguments)))})},$.internalField=function(){prepareInvertedIndex=function(z){var oe=z._invertedIndicesMap;each$c(oe,function(ae,le){var ue=z._dimInfos[le],pe=ue.ordinalMeta,_e=z._store;if(pe){ae=oe[le]=new CtorInt32Array(pe.categories.length);for(var Ce=0;Ce<ae.length;Ce++)ae[Ce]=INDEX_NOT_FOUND;for(var Ce=0;Ce<_e.count();Ce++)ae[_e.get(ue.storeDimIndex,Ce)]=Ce}})},getIdNameFromStore=function(z,oe,ae){return convertOptionIdName(z._getCategory(oe,ae),null)},getId=function(z,oe){var ae=z._idList[oe];return ae==null&&z._idDimIdx!=null&&(ae=getIdNameFromStore(z,z._idDimIdx,oe)),ae==null&&(ae=ID_PREFIX+oe),ae},normalizeDimensions=function(z){return isArray$1(z)||(z=z!=null?[z]:[]),z},cloneListForMapAndSample=function(z){var oe=new $(z._schema?z._schema:map$1(z.dimensions,z._getDimInfo,z),z.hostModel);return transferProperties(oe,z),oe},transferProperties=function(z,oe){each$c(TRANSFERABLE_PROPERTIES.concat(oe.__wrappedMethods||[]),function(ae){oe.hasOwnProperty(ae)&&(z[ae]=oe[ae])}),z.__wrappedMethods=oe.__wrappedMethods,each$c(CLONE_PROPERTIES,function(ae){z[ae]=clone$3(oe[ae])}),z._calculationInfo=extend({},oe._calculationInfo)},makeIdFromName=function(z,oe){var ae=z._nameList,le=z._idList,ue=z._nameDimIdx,pe=z._idDimIdx,_e=ae[oe],Ce=le[oe];if(_e==null&&ue!=null&&(ae[oe]=_e=getIdNameFromStore(z,ue,oe)),Ce==null&&pe!=null&&(le[oe]=Ce=getIdNameFromStore(z,pe,oe)),Ce==null&&_e!=null){var $e=z._nameRepeatCount,xe=$e[_e]=($e[_e]||0)+1;Ce=_e,xe>1&&(Ce+="__ec__"+xe),le[oe]=Ce}}}(),$}();const SeriesData$1=SeriesData;function createDimensions($,z){return prepareSeriesDataSchema($,z).dimensions}function prepareSeriesDataSchema($,z){isSourceInstance($)||($=createSourceFromSeriesDataOption($)),z=z||{};var oe=z.coordDimensions||[],ae=z.dimensionsDefine||$.dimensionsDefine||[],le=createHashMap(),ue=[],pe=getDimCount($,oe,ae,z.dimensionsCount),_e=z.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(pe),Ce=ae===$.dimensionsDefine,$e=Ce?ensureSourceDimNameMap($):createDimNameMap(ae),xe=z.encodeDefine;!xe&&z.encodeDefaulter&&(xe=z.encodeDefaulter($,pe));for(var Ie=createHashMap(xe),Fe=new CtorInt32Array$1(pe),ze=0;ze<Fe.length;ze++)Fe[ze]=-1;function Ue($n){var wn=Fe[$n];if(wn<0){var Tn=ae[$n],xn=isObject$3(Tn)?Tn:{name:Tn},kn=new SeriesDimensionDefine$1,Nn=xn.name;Nn!=null&&$e.get(Nn)!=null&&(kn.name=kn.displayName=Nn),xn.type!=null&&(kn.type=xn.type),xn.displayName!=null&&(kn.displayName=xn.displayName);var Bn=ue.length;return Fe[$n]=Bn,kn.storeDimIndex=$n,ue.push(kn),kn}return ue[wn]}if(!_e)for(var ze=0;ze<pe;ze++)Ue(ze);Ie.each(function($n,wn){var Tn=normalizeToArray($n).slice();if(Tn.length===1&&!isString(Tn[0])&&Tn[0]<0){Ie.set(wn,!1);return}var xn=Ie.set(wn,[]);each$c(Tn,function(kn,Nn){var Bn=isString(kn)?$e.get(kn):kn;Bn!=null&&Bn<pe&&(xn[Nn]=Bn,At(Ue(Bn),wn,Nn))})});var qe=0;each$c(oe,function($n){var wn,Tn,xn,kn;if(isString($n))wn=$n,kn={};else{kn=$n,wn=kn.name;var Nn=kn.ordinalMeta;kn.ordinalMeta=null,kn=extend({},kn),kn.ordinalMeta=Nn,Tn=kn.dimsDef,xn=kn.otherDims,kn.name=kn.coordDim=kn.coordDimIndex=kn.dimsDef=kn.otherDims=null}var Bn=Ie.get(wn);if(Bn!==!1){if(Bn=normalizeToArray(Bn),!Bn.length)for(var Dn=0;Dn<(Tn&&Tn.length||1);Dn++){for(;qe<pe&&Ue(qe).coordDim!=null;)qe++;qe<pe&&Bn.push(qe++)}each$c(Bn,function(In,Ln){var Mn=Ue(In);if(Ce&&kn.type!=null&&(Mn.type=kn.type),At(defaults(Mn,kn),wn,Ln),Mn.name==null&&Tn){var Vn=Tn[Ln];!isObject$3(Vn)&&(Vn={name:Vn}),Mn.name=Mn.displayName=Vn.name,Mn.defaultTooltip=Vn.defaultTooltip}xn&&defaults(Mn.otherDims,xn)})}});function At($n,wn,Tn){VISUAL_DIMENSIONS.get(wn)!=null?$n.otherDims[wn]=Tn:($n.coordDim=wn,$n.coordDimIndex=Tn,le.set(wn,!0))}var Lt=z.generateCoord,hn=z.generateCoordCount,vn=hn!=null;hn=Lt?hn||1:0;var _n=Lt||"value";function bn($n){$n.name==null&&($n.name=$n.coordDim)}if(_e)each$c(ue,function($n){bn($n)}),ue.sort(function($n,wn){return $n.storeDimIndex-wn.storeDimIndex});else for(var Sn=0;Sn<pe;Sn++){var Cn=Ue(Sn),En=Cn.coordDim;En==null&&(Cn.coordDim=genCoordDimName(_n,le,vn),Cn.coordDimIndex=0,(!Lt||hn<=0)&&(Cn.isExtraCoord=!0),hn--),bn(Cn),Cn.type==null&&(guessOrdinal($,Sn)===BE_ORDINAL.Must||Cn.isExtraCoord&&(Cn.otherDims.itemName!=null||Cn.otherDims.seriesName!=null))&&(Cn.type="ordinal")}return removeDuplication(ue),new SeriesDataSchema({source:$,dimensions:ue,fullDimensionCount:pe,dimensionOmitted:_e})}function removeDuplication($){for(var z=createHashMap(),oe=0;oe<$.length;oe++){var ae=$[oe],le=ae.name,ue=z.get(le)||0;ue>0&&(ae.name=le+(ue-1)),ue++,z.set(le,ue)}}function getDimCount($,z,oe,ae){var le=Math.max($.dimensionsDetectedCount||1,z.length,oe.length,ae||0);return each$c(z,function(ue){var pe;isObject$3(ue)&&(pe=ue.dimsDef)&&(le=Math.max(le,pe.length))}),le}function genCoordDimName($,z,oe){if(oe||z.hasKey($)){for(var ae=0;z.hasKey($+ae);)ae++;$+=ae}return z.set($,!0),$}var CoordSysInfo=function(){function $(z){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=z}return $}();function getCoordSysInfoBySeries($){var z=$.get("coordinateSystem"),oe=new CoordSysInfo(z),ae=fetchers[z];if(ae)return ae($,oe,oe.axisMap,oe.categoryAxisMap),oe}var fetchers={cartesian2d:function($,z,oe,ae){var le=$.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],ue=$.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];z.coordSysDims=["x","y"],oe.set("x",le),oe.set("y",ue),isCategory(le)&&(ae.set("x",le),z.firstCategoryDimIndex=0),isCategory(ue)&&(ae.set("y",ue),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=1))},singleAxis:function($,z,oe,ae){var le=$.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];z.coordSysDims=["single"],oe.set("single",le),isCategory(le)&&(ae.set("single",le),z.firstCategoryDimIndex=0)},polar:function($,z,oe,ae){var le=$.getReferringComponents("polar",SINGLE_REFERRING).models[0],ue=le.findAxisModel("radiusAxis"),pe=le.findAxisModel("angleAxis");z.coordSysDims=["radius","angle"],oe.set("radius",ue),oe.set("angle",pe),isCategory(ue)&&(ae.set("radius",ue),z.firstCategoryDimIndex=0),isCategory(pe)&&(ae.set("angle",pe),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=1))},geo:function($,z,oe,ae){z.coordSysDims=["lng","lat"]},parallel:function($,z,oe,ae){var le=$.ecModel,ue=le.getComponent("parallel",$.get("parallelIndex")),pe=z.coordSysDims=ue.dimensions.slice();each$c(ue.parallelAxisIndex,function(_e,Ce){var $e=le.getComponent("parallelAxis",_e),xe=pe[Ce];oe.set(xe,$e),isCategory($e)&&(ae.set(xe,$e),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=Ce))})}};function isCategory($){return $.get("type")==="category"}function enableDataStack($,z,oe){oe=oe||{};var ae=oe.byIndex,le=oe.stackedCoordDimension,ue,pe,_e;isLegacyDimensionsInput(z)?ue=z:(pe=z.schema,ue=pe.dimensions,_e=z.store);var Ce=!!($&&$.get("stack")),$e,xe,Ie,Fe;if(each$c(ue,function(hn,vn){isString(hn)&&(ue[vn]=hn={name:hn}),Ce&&!hn.isExtraCoord&&(!ae&&!$e&&hn.ordinalMeta&&($e=hn),!xe&&hn.type!=="ordinal"&&hn.type!=="time"&&(!le||le===hn.coordDim)&&(xe=hn))}),xe&&!ae&&!$e&&(ae=!0),xe){Ie="__\0ecstackresult_"+$.id,Fe="__\0ecstackedover_"+$.id,$e&&($e.createInvertedIndices=!0);var ze=xe.coordDim,Ue=xe.type,qe=0;each$c(ue,function(hn){hn.coordDim===ze&&qe++});var At={name:Ie,coordDim:ze,coordDimIndex:qe,type:Ue,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:ue.length},Lt={name:Fe,coordDim:Fe,coordDimIndex:qe+1,type:Ue,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:ue.length+1};pe?(_e&&(At.storeDimIndex=_e.ensureCalculationDimension(Fe,Ue),Lt.storeDimIndex=_e.ensureCalculationDimension(Ie,Ue)),pe.appendCalculationDimension(At),pe.appendCalculationDimension(Lt)):(ue.push(At),ue.push(Lt))}return{stackedDimension:xe&&xe.name,stackedByDimension:$e&&$e.name,isStackedByIndex:ae,stackedOverDimension:Fe,stackResultDimension:Ie}}function isLegacyDimensionsInput($){return!isSeriesDataSchema($.schema)}function isDimensionStacked($,z){return!!z&&z===$.getCalculationInfo("stackedDimension")}function getStackedDimension($,z){return isDimensionStacked($,z)?$.getCalculationInfo("stackResultDimension"):z}function getCoordSysDimDefs($,z){var oe=$.get("coordinateSystem"),ae=CoordinateSystem.get(oe),le;return z&&z.coordSysDims&&(le=map$2(z.coordSysDims,function(ue){var pe={name:ue},_e=z.axisMap.get(ue);if(_e){var Ce=_e.get("type");pe.type=getDimensionTypeByAxis(Ce)}return pe})),le||(le=ae&&(ae.getDimensionsInfo?ae.getDimensionsInfo():ae.dimensions.slice())||["x","y"]),le}function injectOrdinalMeta($,z,oe){var ae,le;return oe&&each$c($,function(ue,pe){var _e=ue.coordDim,Ce=oe.categoryAxisMap.get(_e);Ce&&(ae==null&&(ae=pe),ue.ordinalMeta=Ce.getOrdinalMeta(),z&&(ue.createInvertedIndices=!0)),ue.otherDims.itemName!=null&&(le=!0)}),!le&&ae!=null&&($[ae].otherDims.itemName=0),ae}function createSeriesData($,z,oe){oe=oe||{};var ae=z.getSourceManager(),le,ue=!1;$?(ue=!0,le=createSourceFromSeriesDataOption($)):(le=ae.getSource(),ue=le.sourceFormat===SOURCE_FORMAT_ORIGINAL);var pe=getCoordSysInfoBySeries(z),_e=getCoordSysDimDefs(z,pe),Ce=oe.useEncodeDefaulter,$e=isFunction(Ce)?Ce:Ce?curry$1(makeSeriesEncodeForAxisCoordSys,_e,z):null,xe={coordDimensions:_e,generateCoord:oe.generateCoord,encodeDefine:z.getEncode(),encodeDefaulter:$e,canOmitUnusedDimensions:!ue},Ie=prepareSeriesDataSchema(le,xe),Fe=injectOrdinalMeta(Ie.dimensions,oe.createInvertedIndices,pe),ze=ue?null:ae.getSharedDataStore(Ie),Ue=enableDataStack(z,{schema:Ie,store:ze}),qe=new SeriesData$1(Ie,z);qe.setCalculationInfo(Ue);var At=Fe!=null&&isNeedCompleteOrdinalData(le)?function(Lt,hn,vn,_n){return _n===Fe?vn:this.defaultDimValueGetter(Lt,hn,vn,_n)}:null;return qe.hasItemOption=!1,qe.initData(ue?le:ze,null,At),qe}function isNeedCompleteOrdinalData($){if($.sourceFormat===SOURCE_FORMAT_ORIGINAL){var z=firstDataNotNull($.data||[]);return!isArray$1(getDataItemValue(z))}}function firstDataNotNull($){for(var z=0;z<$.length&&$[z]==null;)z++;return $[z]}var Scale=function(){function $(z){this._setting=z||{},this._extent=[1/0,-1/0]}return $.prototype.getSetting=function(z){return this._setting[z]},$.prototype.unionExtent=function(z){var oe=this._extent;z[0]<oe[0]&&(oe[0]=z[0]),z[1]>oe[1]&&(oe[1]=z[1])},$.prototype.unionExtentFromData=function(z,oe){this.unionExtent(z.getApproximateExtent(oe))},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.setExtent=function(z,oe){var ae=this._extent;isNaN(z)||(ae[0]=z),isNaN(oe)||(ae[1]=oe)},$.prototype.isInExtentRange=function(z){return this._extent[0]<=z&&this._extent[1]>=z},$.prototype.isBlank=function(){return this._isBlank},$.prototype.setBlank=function(z){this._isBlank=z},$}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function $(z){this.categories=z.categories||[],this._needCollect=z.needCollect,this._deduplication=z.deduplication,this.uid=++uidBase}return $.createByAxisModel=function(z){var oe=z.option,ae=oe.data,le=ae&&map$2(ae,getName);return new $({categories:le,needCollect:!le,deduplication:oe.dedplication!==!1})},$.prototype.getOrdinal=function(z){return this._getOrCreateMap().get(z)},$.prototype.parseAndCollect=function(z){var oe,ae=this._needCollect;if(!isString(z)&&!ae)return z;if(ae&&!this._deduplication)return oe=this.categories.length,this.categories[oe]=z,oe;var le=this._getOrCreateMap();return oe=le.get(z),oe==null&&(ae?(oe=this.categories.length,this.categories[oe]=z,le.set(z,oe)):oe=NaN),oe},$.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},$}();function getName($){return isObject$3($)&&$.value!=null?$.value:$+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale($){return $.type==="interval"||$.type==="log"}function intervalScaleNiceTicks($,z,oe,ae){var le={},ue=$[1]-$[0],pe=le.interval=nice(ue/z,!0);oe!=null&&pe<oe&&(pe=le.interval=oe),ae!=null&&pe>ae&&(pe=le.interval=ae);var _e=le.intervalPrecision=getIntervalPrecision(pe),Ce=le.niceTickExtent=[round$1(Math.ceil($[0]/pe)*pe,_e),round$1(Math.floor($[1]/pe)*pe,_e)];return fixExtent(Ce,$),le}function increaseInterval($){var z=Math.pow(10,quantityExponent($)),oe=$/z;return oe?oe===2?oe=3:oe===3?oe=5:oe*=2:oe=1,round$1(oe*z)}function getIntervalPrecision($){return getPrecision($)+2}function clamp($,z,oe){$[z]=Math.max(Math.min($[z],oe[1]),oe[0])}function fixExtent($,z){!isFinite($[0])&&($[0]=z[0]),!isFinite($[1])&&($[1]=z[1]),clamp($,0,z),clamp($,1,z),$[0]>$[1]&&($[0]=$[1])}function contain$1($,z){return $>=z[0]&&$<=z[1]}function normalize($,z){return z[1]===z[0]?.5:($-z[0])/(z[1]-z[0])}function scale($,z){return $*(z[1]-z[0])+z[0]}var OrdinalScale=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;ae.type="ordinal";var le=ae.getSetting("ordinalMeta");return le||(le=new OrdinalMeta$1({})),isArray$1(le)&&(le=new OrdinalMeta$1({categories:map$2(le,function(ue){return isObject$3(ue)?ue.value:ue})})),ae._ordinalMeta=le,ae._extent=ae.getSetting("extent")||[0,le.categories.length-1],ae}return z.prototype.parse=function(oe){return oe==null?NaN:isString(oe)?this._ordinalMeta.getOrdinal(oe):Math.round(oe)},z.prototype.contain=function(oe){return oe=this.parse(oe),contain$1(oe,this._extent)&&this._ordinalMeta.categories[oe]!=null},z.prototype.normalize=function(oe){return oe=this._getTickNumber(this.parse(oe)),normalize(oe,this._extent)},z.prototype.scale=function(oe){return oe=Math.round(scale(oe,this._extent)),this.getRawOrdinalNumber(oe)},z.prototype.getTicks=function(){for(var oe=[],ae=this._extent,le=ae[0];le<=ae[1];)oe.push({value:le}),le++;return oe},z.prototype.getMinorTicks=function(oe){},z.prototype.setSortInfo=function(oe){if(oe==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var ae=oe.ordinalNumbers,le=this._ordinalNumbersByTick=[],ue=this._ticksByOrdinalNumber=[],pe=0,_e=this._ordinalMeta.categories.length,Ce=Math.min(_e,ae.length);pe<Ce;++pe){var $e=ae[pe];le[pe]=$e,ue[$e]=pe}for(var xe=0;pe<_e;++pe){for(;ue[xe]!=null;)xe++;le.push(xe),ue[xe]=pe}},z.prototype._getTickNumber=function(oe){var ae=this._ticksByOrdinalNumber;return ae&&oe>=0&&oe<ae.length?ae[oe]:oe},z.prototype.getRawOrdinalNumber=function(oe){var ae=this._ordinalNumbersByTick;return ae&&oe>=0&&oe<ae.length?ae[oe]:oe},z.prototype.getLabel=function(oe){if(!this.isBlank()){var ae=this.getRawOrdinalNumber(oe.value),le=this._ordinalMeta.categories[ae];return le==null?"":le+""}},z.prototype.count=function(){return this._extent[1]-this._extent[0]+1},z.prototype.unionExtentFromData=function(oe,ae){this.unionExtent(oe.getApproximateExtent(ae))},z.prototype.isInExtentRange=function(oe){return oe=this._getTickNumber(oe),this._extent[0]<=oe&&this._extent[1]>=oe},z.prototype.getOrdinalMeta=function(){return this._ordinalMeta},z.prototype.calcNiceTicks=function(){},z.prototype.calcNiceExtent=function(){},z.type="ordinal",z}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="interval",oe._interval=0,oe._intervalPrecision=2,oe}return z.prototype.parse=function(oe){return oe},z.prototype.contain=function(oe){return contain$1(oe,this._extent)},z.prototype.normalize=function(oe){return normalize(oe,this._extent)},z.prototype.scale=function(oe){return scale(oe,this._extent)},z.prototype.setExtent=function(oe,ae){var le=this._extent;isNaN(oe)||(le[0]=parseFloat(oe)),isNaN(ae)||(le[1]=parseFloat(ae))},z.prototype.unionExtent=function(oe){var ae=this._extent;oe[0]<ae[0]&&(ae[0]=oe[0]),oe[1]>ae[1]&&(ae[1]=oe[1]),this.setExtent(ae[0],ae[1])},z.prototype.getInterval=function(){return this._interval},z.prototype.setInterval=function(oe){this._interval=oe,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(oe)},z.prototype.getTicks=function(oe){var ae=this._interval,le=this._extent,ue=this._niceExtent,pe=this._intervalPrecision,_e=[];if(!ae)return _e;var Ce=1e4;le[0]<ue[0]&&(oe?_e.push({value:roundNumber(ue[0]-ae,pe)}):_e.push({value:le[0]}));for(var $e=ue[0];$e<=ue[1]&&(_e.push({value:$e}),$e=roundNumber($e+ae,pe),$e!==_e[_e.length-1].value);)if(_e.length>Ce)return[];var xe=_e.length?_e[_e.length-1].value:ue[1];return le[1]>xe&&(oe?_e.push({value:roundNumber(xe+ae,pe)}):_e.push({value:le[1]})),_e},z.prototype.getMinorTicks=function(oe){for(var ae=this.getTicks(!0),le=[],ue=this.getExtent(),pe=1;pe<ae.length;pe++){for(var _e=ae[pe],Ce=ae[pe-1],$e=0,xe=[],Ie=_e.value-Ce.value,Fe=Ie/oe;$e<oe-1;){var ze=roundNumber(Ce.value+($e+1)*Fe);ze>ue[0]&&ze<ue[1]&&xe.push(ze),$e++}le.push(xe)}return le},z.prototype.getLabel=function(oe,ae){if(oe==null)return"";var le=ae&&ae.precision;le==null?le=getPrecision(oe.value)||0:le==="auto"&&(le=this._intervalPrecision);var ue=roundNumber(oe.value,le,!0);return addCommas(ue)},z.prototype.calcNiceTicks=function(oe,ae,le){oe=oe||5;var ue=this._extent,pe=ue[1]-ue[0];if(isFinite(pe)){pe<0&&(pe=-pe,ue.reverse());var _e=intervalScaleNiceTicks(ue,oe,ae,le);this._intervalPrecision=_e.intervalPrecision,this._interval=_e.interval,this._niceExtent=_e.niceTickExtent}},z.prototype.calcNiceExtent=function(oe){var ae=this._extent;if(ae[0]===ae[1])if(ae[0]!==0){var le=Math.abs(ae[0]);oe.fixMax||(ae[1]+=le/2),ae[0]-=le/2}else ae[1]=1;var ue=ae[1]-ae[0];isFinite(ue)||(ae[0]=0,ae[1]=1),this.calcNiceTicks(oe.splitNumber,oe.minInterval,oe.maxInterval);var pe=this._interval;oe.fixMin||(ae[0]=roundNumber(Math.floor(ae[0]/pe)*pe)),oe.fixMax||(ae[1]=roundNumber(Math.ceil(ae[1]/pe)*pe))},z.prototype.setNiceExtent=function(oe,ae){this._niceExtent=[oe,ae]},z.type="interval",z}(Scale$1);Scale$1.registerClass(IntervalScale);const IntervalScale$1=IntervalScale;var supportFloat32Array=typeof Float32Array<"u",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array($){return isArray$1($)?supportFloat32Array?new Float32Array($):$:new Float32ArrayCtor($)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId($){return $.get("stack")||STACK_PREFIX+$.seriesIndex}function getAxisKey($){return $.dim+$.index}function prepareLayoutBarSeries($,z){var oe=[];return z.eachSeriesByType($,function(ae){isOnCartesian(ae)&&oe.push(ae)}),oe}function getValueAxesMinGaps($){var z={};each$c($,function(Ce){var $e=Ce.coordinateSystem,xe=$e.getBaseAxis();if(!(xe.type!=="time"&&xe.type!=="value"))for(var Ie=Ce.getData(),Fe=xe.dim+"_"+xe.index,ze=Ie.getDimensionIndex(Ie.mapDimension(xe.dim)),Ue=Ie.getStore(),qe=0,At=Ue.count();qe<At;++qe){var Lt=Ue.get(ze,qe);z[Fe]?z[Fe].push(Lt):z[Fe]=[Lt]}});var oe={};for(var ae in z)if(z.hasOwnProperty(ae)){var le=z[ae];if(le){le.sort(function(Ce,$e){return Ce-$e});for(var ue=null,pe=1;pe<le.length;++pe){var _e=le[pe]-le[pe-1];_e>0&&(ue=ue===null?_e:Math.min(ue,_e))}oe[ae]=ue}}return oe}function makeColumnLayout($){var z=getValueAxesMinGaps($),oe=[];return each$c($,function(ae){var le=ae.coordinateSystem,ue=le.getBaseAxis(),pe=ue.getExtent(),_e;if(ue.type==="category")_e=ue.getBandWidth();else if(ue.type==="value"||ue.type==="time"){var Ce=ue.dim+"_"+ue.index,$e=z[Ce],xe=Math.abs(pe[1]-pe[0]),Ie=ue.scale.getExtent(),Fe=Math.abs(Ie[1]-Ie[0]);_e=$e?xe/Fe*$e:xe}else{var ze=ae.getData();_e=Math.abs(pe[1]-pe[0])/ze.count()}var Ue=parsePercent(ae.get("barWidth"),_e),qe=parsePercent(ae.get("barMaxWidth"),_e),At=parsePercent(ae.get("barMinWidth")||(isInLargeMode(ae)?.5:1),_e),Lt=ae.get("barGap"),hn=ae.get("barCategoryGap");oe.push({bandWidth:_e,barWidth:Ue,barMaxWidth:qe,barMinWidth:At,barGap:Lt,barCategoryGap:hn,axisKey:getAxisKey(ue),stackId:getSeriesStackId(ae)})}),doCalBarWidthAndOffset(oe)}function doCalBarWidthAndOffset($){var z={};each$c($,function(ae,le){var ue=ae.axisKey,pe=ae.bandWidth,_e=z[ue]||{bandWidth:pe,remainedWidth:pe,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},Ce=_e.stacks;z[ue]=_e;var $e=ae.stackId;Ce[$e]||_e.autoWidthCount++,Ce[$e]=Ce[$e]||{width:0,maxWidth:0};var xe=ae.barWidth;xe&&!Ce[$e].width&&(Ce[$e].width=xe,xe=Math.min(_e.remainedWidth,xe),_e.remainedWidth-=xe);var Ie=ae.barMaxWidth;Ie&&(Ce[$e].maxWidth=Ie);var Fe=ae.barMinWidth;Fe&&(Ce[$e].minWidth=Fe);var ze=ae.barGap;ze!=null&&(_e.gap=ze);var Ue=ae.barCategoryGap;Ue!=null&&(_e.categoryGap=Ue)});var oe={};return each$c(z,function(ae,le){oe[le]={};var ue=ae.stacks,pe=ae.bandWidth,_e=ae.categoryGap;if(_e==null){var Ce=keys(ue).length;_e=Math.max(35-Ce*4,15)+"%"}var $e=parsePercent(_e,pe),xe=parsePercent(ae.gap,1),Ie=ae.remainedWidth,Fe=ae.autoWidthCount,ze=(Ie-$e)/(Fe+(Fe-1)*xe);ze=Math.max(ze,0),each$c(ue,function(Lt){var hn=Lt.maxWidth,vn=Lt.minWidth;if(Lt.width){var _n=Lt.width;hn&&(_n=Math.min(_n,hn)),vn&&(_n=Math.max(_n,vn)),Lt.width=_n,Ie-=_n+xe*_n,Fe--}else{var _n=ze;hn&&hn<_n&&(_n=Math.min(hn,Ie)),vn&&vn>_n&&(_n=vn),_n!==ze&&(Lt.width=_n,Ie-=_n+xe*_n,Fe--)}}),ze=(Ie-$e)/(Fe+(Fe-1)*xe),ze=Math.max(ze,0);var Ue=0,qe;each$c(ue,function(Lt,hn){Lt.width||(Lt.width=ze),qe=Lt,Ue+=Lt.width*(1+xe)}),qe&&(Ue-=qe.width*xe);var At=-Ue/2;each$c(ue,function(Lt,hn){oe[le][hn]=oe[le][hn]||{bandWidth:pe,offset:At,width:Lt.width},At+=Lt.width*(1+xe)})}),oe}function retrieveColumnLayout($,z,oe){if($&&z){var ae=$[getAxisKey(z)];return ae!=null&&oe!=null?ae[getSeriesStackId(oe)]:ae}}function layout$2($,z){var oe=prepareLayoutBarSeries($,z),ae=makeColumnLayout(oe);each$c(oe,function(le){var ue=le.getData(),pe=le.coordinateSystem,_e=pe.getBaseAxis(),Ce=getSeriesStackId(le),$e=ae[getAxisKey(_e)][Ce],xe=$e.offset,Ie=$e.width;ue.setLayout({bandWidth:$e.bandWidth,offset:xe,size:Ie})})}function createProgressiveLayout($){return{seriesType:$,plan:createRenderPlanner(),reset:function(z){if(isOnCartesian(z)){var oe=z.getData(),ae=z.coordinateSystem,le=ae.getBaseAxis(),ue=ae.getOtherAxis(le),pe=oe.getDimensionIndex(oe.mapDimension(ue.dim)),_e=oe.getDimensionIndex(oe.mapDimension(le.dim)),Ce=z.get("showBackground",!0),$e=oe.mapDimension(ue.dim),xe=oe.getCalculationInfo("stackResultDimension"),Ie=isDimensionStacked(oe,$e)&&!!oe.getCalculationInfo("stackedOnSeries"),Fe=ue.isHorizontal(),ze=getValueAxisStart(le,ue),Ue=isInLargeMode(z),qe=z.get("barMinHeight")||0,At=xe&&oe.getDimensionIndex(xe),Lt=oe.getLayout("size"),hn=oe.getLayout("offset");return{progress:function(vn,_n){for(var bn=vn.count,Sn=Ue&&createFloat32Array(bn*3),Cn=Ue&&Ce&&createFloat32Array(bn*3),En=Ue&&createFloat32Array(bn),$n=ae.master.getRect(),wn=Fe?$n.width:$n.height,Tn,xn=_n.getStore(),kn=0;(Tn=vn.next())!=null;){var Nn=xn.get(Ie?At:pe,Tn),Bn=xn.get(_e,Tn),Dn=ze,In=void 0;Ie&&(In=+Nn-xn.get(pe,Tn));var Ln=void 0,Mn=void 0,Vn=void 0,Yn=void 0;if(Fe){var Fn=ae.dataToPoint([Nn,Bn]);if(Ie){var Xn=ae.dataToPoint([In,Bn]);Dn=Xn[0]}Ln=Dn,Mn=Fn[1]+hn,Vn=Fn[0]-Dn,Yn=Lt,Math.abs(Vn)<qe&&(Vn=(Vn<0?-1:1)*qe)}else{var Fn=ae.dataToPoint([Bn,Nn]);if(Ie){var Xn=ae.dataToPoint([Bn,In]);Dn=Xn[1]}Ln=Fn[0]+hn,Mn=Dn,Vn=Lt,Yn=Fn[1]-Dn,Math.abs(Yn)<qe&&(Yn=(Yn<=0?-1:1)*qe)}Ue?(Sn[kn]=Ln,Sn[kn+1]=Mn,Sn[kn+2]=Fe?Vn:Yn,Cn&&(Cn[kn]=Fe?$n.x:Ln,Cn[kn+1]=Fe?Mn:$n.y,Cn[kn+2]=wn),En[Tn]=Tn):_n.setItemLayout(Tn,{x:Ln,y:Mn,width:Vn,height:Yn}),kn+=3}Ue&&_n.setLayout({largePoints:Sn,largeDataIndices:En,largeBackgroundPoints:Cn,valueAxisHorizontal:Fe})}}}}}}function isOnCartesian($){return $.coordinateSystem&&$.coordinateSystem.type==="cartesian2d"}function isInLargeMode($){return $.pipelineContext&&$.pipelineContext.large}function getValueAxisStart($,z){return z.toGlobalCoord(z.dataToCoord(z.type==="log"?1:0))}var bisect=function($,z,oe,ae){for(;oe<ae;){var le=oe+ae>>>1;$[le][1]<z?oe=le+1:ae=le}return oe},TimeScale=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="time",ae}return z.prototype.getLabel=function(oe){var ae=this.getSetting("useUTC");return format$1(oe.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,ae,this.getSetting("locale"))},z.prototype.getFormattedLabel=function(oe,ae,le){var ue=this.getSetting("useUTC"),pe=this.getSetting("locale");return leveledFormat(oe,ae,le,pe,ue)},z.prototype.getTicks=function(){var oe=this._interval,ae=this._extent,le=[];if(!oe)return le;le.push({value:ae[0],level:0});var ue=this.getSetting("useUTC"),pe=getIntervalTicks(this._minLevelUnit,this._approxInterval,ue,ae);return le=le.concat(pe),le.push({value:ae[1],level:0}),le},z.prototype.calcNiceExtent=function(oe){var ae=this._extent;if(ae[0]===ae[1]&&(ae[0]-=ONE_DAY,ae[1]+=ONE_DAY),ae[1]===-1/0&&ae[0]===1/0){var le=new Date;ae[1]=+new Date(le.getFullYear(),le.getMonth(),le.getDate()),ae[0]=ae[1]-ONE_DAY}this.calcNiceTicks(oe.splitNumber,oe.minInterval,oe.maxInterval)},z.prototype.calcNiceTicks=function(oe,ae,le){oe=oe||10;var ue=this._extent,pe=ue[1]-ue[0];this._approxInterval=pe/oe,ae!=null&&this._approxInterval<ae&&(this._approxInterval=ae),le!=null&&this._approxInterval>le&&(this._approxInterval=le);var _e=scaleIntervals.length,Ce=Math.min(bisect(scaleIntervals,this._approxInterval,0,_e),_e-1);this._interval=scaleIntervals[Ce][1],this._minLevelUnit=scaleIntervals[Math.max(Ce-1,0)][0]},z.prototype.parse=function(oe){return isNumber(oe)?oe:+parseDate(oe)},z.prototype.contain=function(oe){return contain$1(this.parse(oe),this._extent)},z.prototype.normalize=function(oe){return normalize(this.parse(oe),this._extent)},z.prototype.scale=function(oe){return scale(oe,this._extent)},z.type="time",z}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame($,z,oe,ae){var le=parseDate(z),ue=parseDate(oe),pe=function(Ue){return getUnitValue(le,Ue,ae)===getUnitValue(ue,Ue,ae)},_e=function(){return pe("year")},Ce=function(){return _e()&&pe("month")},$e=function(){return Ce()&&pe("day")},xe=function(){return $e()&&pe("hour")},Ie=function(){return xe()&&pe("minute")},Fe=function(){return Ie()&&pe("second")},ze=function(){return Fe()&&pe("millisecond")};switch($){case"year":return _e();case"month":return Ce();case"day":return $e();case"hour":return xe();case"minute":return Ie();case"second":return Fe();case"millisecond":return ze()}}function getDateInterval($,z){return $/=ONE_DAY,$>16?16:$>7.5?7:$>3.5?4:$>1.5?2:1}function getMonthInterval($){var z=30*ONE_DAY;return $/=z,$>6?6:$>3?3:$>2?2:1}function getHourInterval($){return $/=ONE_HOUR,$>12?12:$>6?6:$>3.5?4:$>2?2:1}function getMinutesAndSecondsInterval($,z){return $/=z?ONE_MINUTE:ONE_SECOND,$>30?30:$>20?20:$>15?15:$>10?10:$>5?5:$>2?2:1}function getMillisecondsInterval($){return nice($,!0)}function getFirstTimestampOfUnit($,z,oe){var ae=new Date($);switch(getPrimaryTimeUnit(z)){case"year":case"month":ae[monthSetterName(oe)](0);case"day":ae[dateSetterName(oe)](1);case"hour":ae[hoursSetterName(oe)](0);case"minute":ae[minutesSetterName(oe)](0);case"second":ae[secondsSetterName(oe)](0),ae[millisecondsSetterName(oe)](0)}return ae.getTime()}function getIntervalTicks($,z,oe,ae){var le=1e4,ue=timeUnits,pe=0;function _e(wn,Tn,xn,kn,Nn,Bn,Dn){for(var In=new Date(Tn),Ln=Tn,Mn=In[kn]();Ln<xn&&Ln<=ae[1];)Dn.push({value:Ln}),Mn+=wn,In[Nn](Mn),Ln=In.getTime();Dn.push({value:Ln,notAdd:!0})}function Ce(wn,Tn,xn){var kn=[],Nn=!Tn.length;if(!isUnitValueSame(getPrimaryTimeUnit(wn),ae[0],ae[1],oe)){Nn&&(Tn=[{value:getFirstTimestampOfUnit(new Date(ae[0]),wn,oe)},{value:ae[1]}]);for(var Bn=0;Bn<Tn.length-1;Bn++){var Dn=Tn[Bn].value,In=Tn[Bn+1].value;if(Dn!==In){var Ln=void 0,Mn=void 0,Vn=void 0,Yn=!1;switch(wn){case"year":Ln=Math.max(1,Math.round(z/ONE_DAY/365)),Mn=fullYearGetterName(oe),Vn=fullYearSetterName(oe);break;case"half-year":case"quarter":case"month":Ln=getMonthInterval(z),Mn=monthGetterName(oe),Vn=monthSetterName(oe);break;case"week":case"half-week":case"day":Ln=getDateInterval(z),Mn=dateGetterName(oe),Vn=dateSetterName(oe),Yn=!0;break;case"half-day":case"quarter-day":case"hour":Ln=getHourInterval(z),Mn=hoursGetterName(oe),Vn=hoursSetterName(oe);break;case"minute":Ln=getMinutesAndSecondsInterval(z,!0),Mn=minutesGetterName(oe),Vn=minutesSetterName(oe);break;case"second":Ln=getMinutesAndSecondsInterval(z,!1),Mn=secondsGetterName(oe),Vn=secondsSetterName(oe);break;case"millisecond":Ln=getMillisecondsInterval(z),Mn=millisecondsGetterName(oe),Vn=millisecondsSetterName(oe);break}_e(Ln,Dn,In,Mn,Vn,Yn,kn),wn==="year"&&xn.length>1&&Bn===0&&xn.unshift({value:xn[0].value-Ln})}}for(var Bn=0;Bn<kn.length;Bn++)xn.push(kn[Bn]);return kn}}for(var $e=[],xe=[],Ie=0,Fe=0,ze=0;ze<ue.length&&pe++<le;++ze){var Ue=getPrimaryTimeUnit(ue[ze]);if(isPrimaryTimeUnit(ue[ze])){Ce(ue[ze],$e[$e.length-1]||[],xe);var qe=ue[ze+1]?getPrimaryTimeUnit(ue[ze+1]):null;if(Ue!==qe){if(xe.length){Fe=Ie,xe.sort(function(wn,Tn){return wn.value-Tn.value});for(var At=[],Lt=0;Lt<xe.length;++Lt){var hn=xe[Lt].value;(Lt===0||xe[Lt-1].value!==hn)&&(At.push(xe[Lt]),hn>=ae[0]&&hn<=ae[1]&&Ie++)}var vn=(ae[1]-ae[0])/z;if(Ie>vn*1.5&&Fe>vn/1.5||($e.push(At),Ie>vn||$===ue[ze]))break}xe=[]}}}for(var _n=filter(map$2($e,function(wn){return filter(wn,function(Tn){return Tn.value>=ae[0]&&Tn.value<=ae[1]&&!Tn.notAdd})}),function(wn){return wn.length>0}),bn=[],Sn=_n.length-1,ze=0;ze<_n.length;++ze)for(var Cn=_n[ze],En=0;En<Cn.length;++En)bn.push({value:Cn[En].value,level:Sn-ze});bn.sort(function(wn,Tn){return wn.value-Tn.value});for(var $n=[],ze=0;ze<bn.length;++ze)(ze===0||bn[ze].value!==bn[ze-1].value)&&$n.push(bn[ze]);return $n}Scale$1.registerClass(TimeScale);const TimeScale$1=TimeScale;var scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow$1=Math.pow,mathLog$1=Math.log,LogScale=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="log",oe.base=10,oe._originalScale=new IntervalScale$1,oe._interval=0,oe}return z.prototype.getTicks=function(oe){var ae=this._originalScale,le=this._extent,ue=ae.getExtent(),pe=intervalScaleProto.getTicks.call(this,oe);return map$2(pe,function(_e){var Ce=_e.value,$e=round$1(mathPow$1(this.base,Ce));return $e=Ce===le[0]&&this._fixMin?fixRoundingError($e,ue[0]):$e,$e=Ce===le[1]&&this._fixMax?fixRoundingError($e,ue[1]):$e,{value:$e}},this)},z.prototype.setExtent=function(oe,ae){var le=mathLog$1(this.base);oe=mathLog$1(Math.max(0,oe))/le,ae=mathLog$1(Math.max(0,ae))/le,intervalScaleProto.setExtent.call(this,oe,ae)},z.prototype.getExtent=function(){var oe=this.base,ae=scaleProto.getExtent.call(this);ae[0]=mathPow$1(oe,ae[0]),ae[1]=mathPow$1(oe,ae[1]);var le=this._originalScale,ue=le.getExtent();return this._fixMin&&(ae[0]=fixRoundingError(ae[0],ue[0])),this._fixMax&&(ae[1]=fixRoundingError(ae[1],ue[1])),ae},z.prototype.unionExtent=function(oe){this._originalScale.unionExtent(oe);var ae=this.base;oe[0]=mathLog$1(oe[0])/mathLog$1(ae),oe[1]=mathLog$1(oe[1])/mathLog$1(ae),scaleProto.unionExtent.call(this,oe)},z.prototype.unionExtentFromData=function(oe,ae){this.unionExtent(oe.getApproximateExtent(ae))},z.prototype.calcNiceTicks=function(oe){oe=oe||10;var ae=this._extent,le=ae[1]-ae[0];if(!(le===1/0||le<=0)){var ue=quantity(le),pe=oe/le*ue;for(pe<=.5&&(ue*=10);!isNaN(ue)&&Math.abs(ue)<1&&Math.abs(ue)>0;)ue*=10;var _e=[round$1(mathCeil(ae[0]/ue)*ue),round$1(mathFloor(ae[1]/ue)*ue)];this._interval=ue,this._niceExtent=_e}},z.prototype.calcNiceExtent=function(oe){intervalScaleProto.calcNiceExtent.call(this,oe),this._fixMin=oe.fixMin,this._fixMax=oe.fixMax},z.prototype.parse=function(oe){return oe},z.prototype.contain=function(oe){return oe=mathLog$1(oe)/mathLog$1(this.base),contain$1(oe,this._extent)},z.prototype.normalize=function(oe){return oe=mathLog$1(oe)/mathLog$1(this.base),normalize(oe,this._extent)},z.prototype.scale=function(oe){return oe=scale(oe,this._extent),mathPow$1(this.base,oe)},z.type="log",z}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError($,z){return roundingErrorFix($,getPrecision(z))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function $(z,oe,ae){this._prepareParams(z,oe,ae)}return $.prototype._prepareParams=function(z,oe,ae){ae[1]<ae[0]&&(ae=[NaN,NaN]),this._dataMin=ae[0],this._dataMax=ae[1];var le=this._isOrdinal=z.type==="ordinal";this._needCrossZero=z.type==="interval"&&oe.getNeedCrossZero&&oe.getNeedCrossZero();var ue=this._modelMinRaw=oe.get("min",!0);isFunction(ue)?this._modelMinNum=parseAxisModelMinMax(z,ue({min:ae[0],max:ae[1]})):ue!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(z,ue));var pe=this._modelMaxRaw=oe.get("max",!0);if(isFunction(pe)?this._modelMaxNum=parseAxisModelMinMax(z,pe({min:ae[0],max:ae[1]})):pe!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(z,pe)),le)this._axisDataLen=oe.getCategories().length;else{var _e=oe.get("boundaryGap"),Ce=isArray$1(_e)?_e:[_e||0,_e||0];typeof Ce[0]=="boolean"||typeof Ce[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(Ce[0],1),parsePercent$1(Ce[1],1)]}},$.prototype.calculate=function(){var z=this._isOrdinal,oe=this._dataMin,ae=this._dataMax,le=this._axisDataLen,ue=this._boundaryGapInner,pe=z?null:ae-oe||Math.abs(oe),_e=this._modelMinRaw==="dataMin"?oe:this._modelMinNum,Ce=this._modelMaxRaw==="dataMax"?ae:this._modelMaxNum,$e=_e!=null,xe=Ce!=null;_e==null&&(_e=z?le?0:NaN:oe-ue[0]*pe),Ce==null&&(Ce=z?le?le-1:NaN:ae+ue[1]*pe),(_e==null||!isFinite(_e))&&(_e=NaN),(Ce==null||!isFinite(Ce))&&(Ce=NaN);var Ie=eqNaN(_e)||eqNaN(Ce)||z&&!le;this._needCrossZero&&(_e>0&&Ce>0&&!$e&&(_e=0),_e<0&&Ce<0&&!xe&&(Ce=0));var Fe=this._determinedMin,ze=this._determinedMax;return Fe!=null&&(_e=Fe,$e=!0),ze!=null&&(Ce=ze,xe=!0),{min:_e,max:Ce,minFixed:$e,maxFixed:xe,isBlank:Ie}},$.prototype.modifyDataMinMax=function(z,oe){this[DATA_MIN_MAX_ATTR[z]]=oe},$.prototype.setDeterminedMinMax=function(z,oe){var ae=DETERMINED_MIN_MAX_ATTR[z];this[ae]=oe},$.prototype.freeze=function(){this.frozen=!0},$}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo($,z,oe){var ae=$.rawExtentInfo;return ae||(ae=new ScaleRawExtentInfo($,z,oe),$.rawExtentInfo=ae,ae)}function parseAxisModelMinMax($,z){return z==null?null:eqNaN(z)?NaN:$.parse(z)}function getScaleExtent($,z){var oe=$.type,ae=ensureScaleRawExtentInfo($,z,$.getExtent()).calculate();$.setBlank(ae.isBlank);var le=ae.min,ue=ae.max,pe=z.ecModel;if(pe&&oe==="time"){var _e=prepareLayoutBarSeries("bar",pe),Ce=!1;if(each$c(_e,function(Ie){Ce=Ce||Ie.getBaseAxis()===z.axis}),Ce){var $e=makeColumnLayout(_e),xe=adjustScaleForOverflow(le,ue,z,$e);le=xe.min,ue=xe.max}}return{extent:[le,ue],fixMin:ae.minFixed,fixMax:ae.maxFixed}}function adjustScaleForOverflow($,z,oe,ae){var le=oe.axis.getExtent(),ue=le[1]-le[0],pe=retrieveColumnLayout(ae,oe.axis);if(pe===void 0)return{min:$,max:z};var _e=1/0;each$c(pe,function(ze){_e=Math.min(ze.offset,_e)});var Ce=-1/0;each$c(pe,function(ze){Ce=Math.max(ze.offset+ze.width,Ce)}),_e=Math.abs(_e),Ce=Math.abs(Ce);var $e=_e+Ce,xe=z-$,Ie=1-(_e+Ce)/ue,Fe=xe/Ie-xe;return z+=Fe*(Ce/$e),$-=Fe*(_e/$e),{min:$,max:z}}function niceScaleExtent($,z){var oe=z,ae=getScaleExtent($,oe),le=ae.extent,ue=oe.get("splitNumber");$ instanceof LogScale$1&&($.base=oe.get("logBase"));var pe=$.type,_e=oe.get("interval"),Ce=pe==="interval"||pe==="time";$.setExtent(le[0],le[1]),$.calcNiceExtent({splitNumber:ue,fixMin:ae.fixMin,fixMax:ae.fixMax,minInterval:Ce?oe.get("minInterval"):null,maxInterval:Ce?oe.get("maxInterval"):null}),_e!=null&&$.setInterval&&$.setInterval(_e)}function createScaleByModel($,z){if(z=z||$.get("type"),z)switch(z){case"category":return new OrdinalScale$1({ordinalMeta:$.getOrdinalMeta?$.getOrdinalMeta():$.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:$.ecModel.getLocaleModel(),useUTC:$.ecModel.get("useUTC")});default:return new(Scale$1.getClass(z)||IntervalScale$1)}}function ifAxisCrossZero($){var z=$.scale.getExtent(),oe=z[0],ae=z[1];return!(oe>0&&ae>0||oe<0&&ae<0)}function makeLabelFormatter($){var z=$.getLabelModel().get("formatter"),oe=$.type==="category"?$.scale.getExtent()[0]:null;return $.scale.type==="time"?function(ae){return function(le,ue){return $.scale.getFormattedLabel(le,ue,ae)}}(z):isString(z)?function(ae){return function(le){var ue=$.scale.getLabel(le),pe=ae.replace("{value}",ue??"");return pe}}(z):isFunction(z)?function(ae){return function(le,ue){return oe!=null&&(ue=le.value-oe),ae(getAxisRawValue($,le),ue,le.level!=null?{level:le.level}:null)}}(z):function(ae){return $.scale.getLabel(ae)}}function getAxisRawValue($,z){return $.type==="category"?$.scale.getLabel(z):z.value}function estimateLabelUnionRect($){var z=$.model,oe=$.scale;if(!(!z.get(["axisLabel","show"])||oe.isBlank())){var ae,le,ue=oe.getExtent();oe instanceof OrdinalScale$1?le=oe.count():(ae=oe.getTicks(),le=ae.length);var pe=$.getLabelModel(),_e=makeLabelFormatter($),Ce,$e=1;le>40&&($e=Math.ceil(le/40));for(var xe=0;xe<le;xe+=$e){var Ie=ae?ae[xe]:{value:ue[0]+xe},Fe=_e(Ie,xe),ze=pe.getTextRect(Fe),Ue=rotateTextRect(ze,pe.get("rotate")||0);Ce?Ce.union(Ue):Ce=Ue}return Ce}}function rotateTextRect($,z){var oe=z*Math.PI/180,ae=$.width,le=$.height,ue=ae*Math.abs(Math.cos(oe))+Math.abs(le*Math.sin(oe)),pe=ae*Math.abs(Math.sin(oe))+Math.abs(le*Math.cos(oe)),_e=new BoundingRect$1($.x,$.y,ue,pe);return _e}function getOptionCategoryInterval($){var z=$.get("interval");return z??"auto"}function shouldShowAllLabels($){return $.type==="category"&&getOptionCategoryInterval($.getLabelModel())===0}function getDataDimensionsOnAxis($,z){var oe={};return each$c($.mapDimensionsAll(z),function(ae){oe[getStackedDimension($,ae)]=!0}),keys(oe)}function unionAxisExtentFromData($,z,oe){z&&each$c(getDataDimensionsOnAxis(z,oe),function(ae){var le=z.getApproximateExtent(ae);le[0]<$[0]&&($[0]=le[0]),le[1]>$[1]&&($[1]=le[1])})}var AxisModelCommonMixin=function(){function $(){}return $.prototype.getNeedCrossZero=function(){var z=this.option;return!z.scale},$.prototype.getCoordSysModel=function(){},$}();function createList($){return createSeriesData(null,$)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale($,z){var oe=z;z instanceof Model$1||(oe=new Model$1(z));var ae=createScaleByModel(oe);return ae.setExtent($[0],$[1]),niceScaleExtent(ae,oe),ae}function mixinAxisModelCommonMethods($){mixin($,AxisModelCommonMixin)}function createTextStyle($,z){return z=z||{},createTextStyle$1($,null,null,z.state!=="normal")}const helper=Object.freeze(Object.defineProperty({__proto__:null,createDimensions,createList,createScale,createSymbol,createTextStyle,dataStack,enableHoverEmphasis,getECData,getLayoutRect,mixinAxisModelCommonMethods},Symbol.toStringTag,{value:"Module"}));var extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function($){ComponentModel$1.registerClass($)},registerComponentView:function($){ComponentView$1.registerClass($)},registerSeriesModel:function($){SeriesModel$1.registerClass($)},registerChartView:function($){ChartView$1.registerClass($)},registerSubTypeDefaulter:function($,z){ComponentModel$1.registerSubTypeDefaulter($,z)},registerPainter:function($,z){registerPainter($,z)}};function use$1($){if(isArray$1($)){each$c($,function(z){use$1(z)});return}indexOf(extensions,$)>=0||(extensions.push($),isFunction($)&&($={install:$}),$.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual($,z){return Math.abs($-z)<EPSILON}function contain($,z,oe){var ae=0,le=$[0];if(!le)return!1;for(var ue=1;ue<$.length;ue++){var pe=$[ue];ae+=windingLine(le[0],le[1],pe[0],pe[1],z,oe),le=pe}var _e=$[0];return(!isAroundEqual(le[0],_e[0])||!isAroundEqual(le[1],_e[1]))&&(ae+=windingLine(le[0],le[1],_e[0],_e[1],z,oe)),ae!==0}var TMP_TRANSFORM=[];function transformPoints($,z){for(var oe=0;oe<$.length;oe++)applyTransform$1($[oe],$[oe],z)}function updateBBoxFromPoints($,z,oe,ae){for(var le=0;le<$.length;le++){var ue=$[le];ae&&(ue=ae.project(ue)),ue&&isFinite(ue[0])&&isFinite(ue[1])&&(min$1(z,z,ue),max$1(oe,oe,ue))}}function centroid($){for(var z=0,oe=0,ae=0,le=$.length,ue=$[le-1][0],pe=$[le-1][1],_e=0;_e<le;_e++){var Ce=$[_e][0],$e=$[_e][1],xe=ue*$e-Ce*pe;z+=xe,oe+=(ue+Ce)*xe,ae+=(pe+$e)*xe,ue=Ce,pe=$e}return z?[oe/z/3,ae/z/3,z]:[$[0][0]||0,$[0][1]||0]}var Region=function(){function $(z){this.name=z}return $.prototype.setCenter=function(z){this._center=z},$.prototype.getCenter=function(){var z=this._center;return z||(z=this._center=this.calcCenter()),z},$}(),GeoJSONPolygonGeometry=function(){function $(z,oe){this.type="polygon",this.exterior=z,this.interiors=oe}return $}(),GeoJSONLineStringGeometry=function(){function $(z){this.type="linestring",this.points=z}return $}(),GeoJSONRegion=function($){__extends(z,$);function z(oe,ae,le){var ue=$.call(this,oe)||this;return ue.type="geoJSON",ue.geometries=ae,ue._center=le&&[le[0],le[1]],ue}return z.prototype.calcCenter=function(){for(var oe=this.geometries,ae,le=0,ue=0;ue<oe.length;ue++){var pe=oe[ue],_e=pe.exterior,Ce=_e&&_e.length;Ce>le&&(ae=pe,le=Ce)}if(ae)return centroid(ae.exterior);var $e=this.getBoundingRect();return[$e.x+$e.width/2,$e.y+$e.height/2]},z.prototype.getBoundingRect=function(oe){var ae=this._rect;if(ae&&!oe)return ae;var le=[1/0,1/0],ue=[-1/0,-1/0],pe=this.geometries;return each$c(pe,function(_e){_e.type==="polygon"?updateBBoxFromPoints(_e.exterior,le,ue,oe):each$c(_e.points,function(Ce){updateBBoxFromPoints(Ce,le,ue,oe)})}),isFinite(le[0])&&isFinite(le[1])&&isFinite(ue[0])&&isFinite(ue[1])||(le[0]=le[1]=ue[0]=ue[1]=0),ae=new BoundingRect$1(le[0],le[1],ue[0]-le[0],ue[1]-le[1]),oe||(this._rect=ae),ae},z.prototype.contain=function(oe){var ae=this.getBoundingRect(),le=this.geometries;if(!ae.contain(oe[0],oe[1]))return!1;e:for(var ue=0,pe=le.length;ue<pe;ue++){var _e=le[ue];if(_e.type==="polygon"){var Ce=_e.exterior,$e=_e.interiors;if(contain(Ce,oe[0],oe[1])){for(var xe=0;xe<($e?$e.length:0);xe++)if(contain($e[xe],oe[0],oe[1]))continue e;return!0}}}return!1},z.prototype.transformTo=function(oe,ae,le,ue){var pe=this.getBoundingRect(),_e=pe.width/pe.height;le?ue||(ue=le/_e):le=_e*ue;for(var Ce=new BoundingRect$1(oe,ae,le,ue),$e=pe.calculateTransform(Ce),xe=this.geometries,Ie=0;Ie<xe.length;Ie++){var Fe=xe[Ie];Fe.type==="polygon"?(transformPoints(Fe.exterior,$e),each$c(Fe.interiors,function(ze){transformPoints(ze,$e)})):each$c(Fe.points,function(ze){transformPoints(ze,$e)})}pe=this._rect,pe.copy(Ce),this._center=[pe.x+pe.width/2,pe.y+pe.height/2]},z.prototype.cloneShallow=function(oe){oe==null&&(oe=this.name);var ae=new z(oe,this.geometries,this._center);return ae._rect=this._rect,ae.transformTo=null,ae},z}(Region);(function($){__extends(z,$);function z(oe,ae){var le=$.call(this,oe)||this;return le.type="geoSVG",le._elOnlyForCalculate=ae,le}return z.prototype.calcCenter=function(){for(var oe=this._elOnlyForCalculate,ae=oe.getBoundingRect(),le=[ae.x+ae.width/2,ae.y+ae.height/2],ue=identity(TMP_TRANSFORM),pe=oe;pe&&!pe.isGeoSVGGraphicRoot;)mul(ue,pe.getLocalTransform(),ue),pe=pe.parent;return invert(ue,ue),applyTransform$1(le,le,ue),le},z})(Region);function decode($){if(!$.UTF8Encoding)return $;var z=$,oe=z.UTF8Scale;oe==null&&(oe=1024);var ae=z.features;return each$c(ae,function(le){var ue=le.geometry,pe=ue.encodeOffsets,_e=ue.coordinates;if(pe)switch(ue.type){case"LineString":ue.coordinates=decodeRing(_e,pe,oe);break;case"Polygon":decodeRings(_e,pe,oe);break;case"MultiLineString":decodeRings(_e,pe,oe);break;case"MultiPolygon":each$c(_e,function(Ce,$e){return decodeRings(Ce,pe[$e],oe)})}}),z.UTF8Encoding=!1,z}function decodeRings($,z,oe){for(var ae=0;ae<$.length;ae++)$[ae]=decodeRing($[ae],z[ae],oe)}function decodeRing($,z,oe){for(var ae=[],le=z[0],ue=z[1],pe=0;pe<$.length;pe+=2){var _e=$.charCodeAt(pe)-64,Ce=$.charCodeAt(pe+1)-64;_e=_e>>1^-(_e&1),Ce=Ce>>1^-(Ce&1),_e+=le,Ce+=ue,le=_e,ue=Ce,ae.push([_e/oe,Ce/oe])}return ae}function parseGeoJSON($,z){return $=decode($),map$2(filter($.features,function(oe){return oe.geometry&&oe.properties&&oe.geometry.coordinates.length>0}),function(oe){var ae=oe.properties,le=oe.geometry,ue=[];switch(le.type){case"Polygon":var pe=le.coordinates;ue.push(new GeoJSONPolygonGeometry(pe[0],pe.slice(1)));break;case"MultiPolygon":each$c(le.coordinates,function(Ce){Ce[0]&&ue.push(new GeoJSONPolygonGeometry(Ce[0],Ce.slice(1)))});break;case"LineString":ue.push(new GeoJSONLineStringGeometry([le.coordinates]));break;case"MultiLineString":ue.push(new GeoJSONLineStringGeometry(le.coordinates))}var _e=new GeoJSONRegion(ae[z||"name"],ue,ae.cp);return _e.properties=ae,_e})}const number=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER,asc:asc$2,getPercentWithPrecision,getPixelPrecision,getPrecision,getPrecisionSafe,isNumeric,isRadianAroundZero,linearMap:linearMap$2,nice,numericToNumber,parseDate,quantile,quantity,quantityExponent,reformIntervals,remRadian,round:round$1},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,format:format$1,parse:parseDate},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,initProps,makeImage,makePath,mergePath,registerShape,resizePath,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,capitalFirst,encodeHTML,formatTime,formatTpl,getTextRect,getTooltipMarker,normalizeCssArray,toCamelCase,truncateText},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,bind:bind$1,clone:clone$3,curry:curry$1,defaults,each:each$c,extend,filter,indexOf,inherits,isArray:isArray$1,isFunction,isObject:isObject$3,isString,map:map$2,merge,reduce},Symbol.toStringTag,{value:"Module"}));var inner$7=makeInner();function createAxisLabels($){return $.type==="category"?makeCategoryLabels($):makeRealNumberLabels($)}function createAxisTicks($,z){return $.type==="category"?makeCategoryTicks($,z):{ticks:map$2($.scale.getTicks(),function(oe){return oe.value})}}function makeCategoryLabels($){var z=$.getLabelModel(),oe=makeCategoryLabelsActually($,z);return!z.get("show")||$.scale.isBlank()?{labels:[],labelCategoryInterval:oe.labelCategoryInterval}:oe}function makeCategoryLabelsActually($,z){var oe=getListCache($,"labels"),ae=getOptionCategoryInterval(z),le=listCacheGet(oe,ae);if(le)return le;var ue,pe;return isFunction(ae)?ue=makeLabelsByCustomizedCategoryInterval($,ae):(pe=ae==="auto"?makeAutoCategoryInterval($):ae,ue=makeLabelsByNumericCategoryInterval($,pe)),listCacheSet(oe,ae,{labels:ue,labelCategoryInterval:pe})}function makeCategoryTicks($,z){var oe=getListCache($,"ticks"),ae=getOptionCategoryInterval(z),le=listCacheGet(oe,ae);if(le)return le;var ue,pe;if((!z.get("show")||$.scale.isBlank())&&(ue=[]),isFunction(ae))ue=makeLabelsByCustomizedCategoryInterval($,ae,!0);else if(ae==="auto"){var _e=makeCategoryLabelsActually($,$.getLabelModel());pe=_e.labelCategoryInterval,ue=map$2(_e.labels,function(Ce){return Ce.tickValue})}else pe=ae,ue=makeLabelsByNumericCategoryInterval($,pe,!0);return listCacheSet(oe,ae,{ticks:ue,tickCategoryInterval:pe})}function makeRealNumberLabels($){var z=$.scale.getTicks(),oe=makeLabelFormatter($);return{labels:map$2(z,function(ae,le){return{level:ae.level,formattedLabel:oe(ae,le),rawLabel:$.scale.getLabel(ae),tickValue:ae.value}})}}function getListCache($,z){return inner$7($)[z]||(inner$7($)[z]=[])}function listCacheGet($,z){for(var oe=0;oe<$.length;oe++)if($[oe].key===z)return $[oe].value}function listCacheSet($,z,oe){return $.push({key:z,value:oe}),oe}function makeAutoCategoryInterval($){var z=inner$7($).autoInterval;return z??(inner$7($).autoInterval=$.calculateCategoryInterval())}function calculateCategoryInterval($){var z=fetchAutoCategoryIntervalCalculationParams($),oe=makeLabelFormatter($),ae=(z.axisRotate-z.labelRotate)/180*Math.PI,le=$.scale,ue=le.getExtent(),pe=le.count();if(ue[1]-ue[0]<1)return 0;var _e=1;pe>40&&(_e=Math.max(1,Math.floor(pe/40)));for(var Ce=ue[0],$e=$.dataToCoord(Ce+1)-$.dataToCoord(Ce),xe=Math.abs($e*Math.cos(ae)),Ie=Math.abs($e*Math.sin(ae)),Fe=0,ze=0;Ce<=ue[1];Ce+=_e){var Ue=0,qe=0,At=getBoundingRect(oe({value:Ce}),z.font,"center","top");Ue=At.width*1.3,qe=At.height*1.3,Fe=Math.max(Fe,Ue,7),ze=Math.max(ze,qe,7)}var Lt=Fe/xe,hn=ze/Ie;isNaN(Lt)&&(Lt=1/0),isNaN(hn)&&(hn=1/0);var vn=Math.max(0,Math.floor(Math.min(Lt,hn))),_n=inner$7($.model),bn=$.getExtent(),Sn=_n.lastAutoInterval,Cn=_n.lastTickCount;return Sn!=null&&Cn!=null&&Math.abs(Sn-vn)<=1&&Math.abs(Cn-pe)<=1&&Sn>vn&&_n.axisExtent0===bn[0]&&_n.axisExtent1===bn[1]?vn=Sn:(_n.lastTickCount=pe,_n.lastAutoInterval=vn,_n.axisExtent0=bn[0],_n.axisExtent1=bn[1]),vn}function fetchAutoCategoryIntervalCalculationParams($){var z=$.getLabelModel();return{axisRotate:$.getRotate?$.getRotate():$.isHorizontal&&!$.isHorizontal()?90:0,labelRotate:z.get("rotate")||0,font:z.getFont()}}function makeLabelsByNumericCategoryInterval($,z,oe){var ae=makeLabelFormatter($),le=$.scale,ue=le.getExtent(),pe=$.getLabelModel(),_e=[],Ce=Math.max((z||0)+1,1),$e=ue[0],xe=le.count();$e!==0&&Ce>1&&xe/Ce>2&&($e=Math.round(Math.ceil($e/Ce)*Ce));var Ie=shouldShowAllLabels($),Fe=pe.get("showMinLabel")||Ie,ze=pe.get("showMaxLabel")||Ie;Fe&&$e!==ue[0]&&qe(ue[0]);for(var Ue=$e;Ue<=ue[1];Ue+=Ce)qe(Ue);ze&&Ue-Ce!==ue[1]&&qe(ue[1]);function qe(At){var Lt={value:At};_e.push(oe?At:{formattedLabel:ae(Lt),rawLabel:le.getLabel(Lt),tickValue:At})}return _e}function makeLabelsByCustomizedCategoryInterval($,z,oe){var ae=$.scale,le=makeLabelFormatter($),ue=[];return each$c(ae.getTicks(),function(pe){var _e=ae.getLabel(pe),Ce=pe.value;z(pe.value,_e)&&ue.push(oe?Ce:{formattedLabel:le(pe),rawLabel:_e,tickValue:Ce})}),ue}var NORMALIZED_EXTENT=[0,1],Axis=function(){function $(z,oe,ae){this.onBand=!1,this.inverse=!1,this.dim=z,this.scale=oe,this._extent=ae||[0,0]}return $.prototype.contain=function(z){var oe=this._extent,ae=Math.min(oe[0],oe[1]),le=Math.max(oe[0],oe[1]);return z>=ae&&z<=le},$.prototype.containData=function(z){return this.scale.contain(z)},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.getPixelPrecision=function(z){return getPixelPrecision(z||this.scale.getExtent(),this._extent)},$.prototype.setExtent=function(z,oe){var ae=this._extent;ae[0]=z,ae[1]=oe},$.prototype.dataToCoord=function(z,oe){var ae=this._extent,le=this.scale;return z=le.normalize(z),this.onBand&&le.type==="ordinal"&&(ae=ae.slice(),fixExtentWithBands(ae,le.count())),linearMap$2(z,NORMALIZED_EXTENT,ae,oe)},$.prototype.coordToData=function(z,oe){var ae=this._extent,le=this.scale;this.onBand&&le.type==="ordinal"&&(ae=ae.slice(),fixExtentWithBands(ae,le.count()));var ue=linearMap$2(z,ae,NORMALIZED_EXTENT,oe);return this.scale.scale(ue)},$.prototype.pointToData=function(z,oe){},$.prototype.getTicksCoords=function(z){z=z||{};var oe=z.tickModel||this.getTickModel(),ae=createAxisTicks(this,oe),le=ae.ticks,ue=map$2(le,function(_e){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(_e):_e),tickValue:_e}},this),pe=oe.get("alignWithLabel");return fixOnBandTicksCoords(this,ue,pe,z.clamp),ue},$.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var z=this.model.getModel("minorTick"),oe=z.get("splitNumber");oe>0&&oe<100||(oe=5);var ae=this.scale.getMinorTicks(oe),le=map$2(ae,function(ue){return map$2(ue,function(pe){return{coord:this.dataToCoord(pe),tickValue:pe}},this)},this);return le},$.prototype.getViewLabels=function(){return createAxisLabels(this).labels},$.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},$.prototype.getTickModel=function(){return this.model.getModel("axisTick")},$.prototype.getBandWidth=function(){var z=this._extent,oe=this.scale.getExtent(),ae=oe[1]-oe[0]+(this.onBand?1:0);ae===0&&(ae=1);var le=Math.abs(z[1]-z[0]);return Math.abs(le)/ae},$.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},$}();function fixExtentWithBands($,z){var oe=$[1]-$[0],ae=z,le=oe/ae/2;$[0]+=le,$[1]-=le}function fixOnBandTicksCoords($,z,oe,ae){var le=z.length;if(!$.onBand||oe||!le)return;var ue=$.getExtent(),pe,_e;if(le===1)z[0].coord=ue[0],pe=z[1]={coord:ue[0]};else{var Ce=z[le-1].tickValue-z[0].tickValue,$e=(z[le-1].coord-z[0].coord)/Ce;each$c(z,function(ze){ze.coord-=$e/2});var xe=$.scale.getExtent();_e=1+xe[1]-z[le-1].tickValue,pe={coord:z[le-1].coord+$e*_e},z.push(pe)}var Ie=ue[0]>ue[1];Fe(z[0].coord,ue[0])&&(ae?z[0].coord=ue[0]:z.shift()),ae&&Fe(ue[0],z[0].coord)&&z.unshift({coord:ue[0]}),Fe(ue[1],pe.coord)&&(ae?pe.coord=ue[1]:z.pop()),ae&&Fe(pe.coord,ue[1])&&z.push({coord:ue[1]});function Fe(ze,Ue){return ze=round$1(ze),Ue=round$1(Ue),Ie?ze>Ue:ze<Ue}}const Axis$1=Axis;function extendComponentModel($){var z=ComponentModel$1.extend($);return ComponentModel$1.registerClass(z),z}function extendComponentView($){var z=ComponentView$1.extend($);return ComponentView$1.registerClass(z),z}function extendSeriesModel($){var z=SeriesModel$1.extend($);return SeriesModel$1.registerClass(z),z}function extendChartView($){var z=ChartView$1.extend($);return ChartView$1.registerClass(z),z}PathProxy$1.CMD;function projectPointToLine($,z,oe,ae,le,ue,pe,_e){var Ce=le-$,$e=ue-z,xe=oe-$,Ie=ae-z,Fe=Math.sqrt(xe*xe+Ie*Ie);xe/=Fe,Ie/=Fe;var ze=Ce*xe+$e*Ie,Ue=ze/Fe;_e&&(Ue=Math.min(Math.max(Ue,0),1)),Ue*=Fe;var qe=pe[0]=$+Ue*xe,At=pe[1]=z+Ue*Ie;return Math.sqrt((qe-le)*(qe-le)+(At-ue)*(At-ue))}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1,tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle($,z){if(z<=180&&z>0){z=z/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var oe=dir.len(),ae=dir2.len();if(!(oe<.001||ae<.001)){dir.scale(1/oe),dir2.scale(1/ae);var le=dir.dot(dir2),ue=Math.cos(z);if(ue<le){var pe=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,pe/Math.tan(Math.PI-z));var _e=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(_e))return;_e<0?Point$1.copy(tmpProjPoint,pt1):_e>1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray($[1])}}}}function limitSurfaceAngle($,z,oe){if(oe<=180&&oe>0){oe=oe/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var ae=dir.len(),le=dir2.len();if(!(ae<.001||le<.001)){dir.scale(1/ae),dir2.scale(1/le);var ue=dir.dot(z),pe=Math.cos(oe);if(ue<pe){var _e=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var Ce=Math.PI/2,$e=Math.acos(dir2.dot(z)),xe=Ce+$e-oe;if(xe>=Ce)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,_e/Math.tan(Math.PI/2-xe));var Ie=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(Ie))return;Ie<0?Point$1.copy(tmpProjPoint,pt1):Ie>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray($[1])}}}}function setLabelLineState($,z,oe,ae){var le=oe==="normal",ue=le?$:$.ensureState(oe);ue.ignore=z;var pe=ae.get("smooth");pe&&pe===!0&&(pe=.3),ue.shape=ue.shape||{},pe>0&&(ue.shape.smooth=pe);var _e=ae.getModel("lineStyle").getLineStyle();le?$.useStyle(_e):ue.style=_e}function buildLabelLinePath($,z){var oe=z.smooth,ae=z.points;if(ae)if($.moveTo(ae[0][0],ae[0][1]),oe>0&&ae.length>=3){var le=dist$1(ae[0],ae[1]),ue=dist$1(ae[1],ae[2]);if(!le||!ue){$.lineTo(ae[1][0],ae[1][1]),$.lineTo(ae[2][0],ae[2][1]);return}var pe=Math.min(le,ue)*oe,_e=lerp$1([],ae[1],ae[0],pe/le),Ce=lerp$1([],ae[1],ae[2],pe/ue),$e=lerp$1([],_e,Ce,.5);$.bezierCurveTo(_e[0],_e[1],_e[0],_e[1],$e[0],$e[1]),$.bezierCurveTo(Ce[0],Ce[1],Ce[0],Ce[1],ae[2][0],ae[2][1])}else for(var xe=1;xe<ae.length;xe++)$.lineTo(ae[xe][0],ae[xe][1])}function setLabelLineStyle($,z,oe){var ae=$.getTextGuideLine(),le=$.getTextContent();if(!le){ae&&$.removeTextGuideLine();return}for(var ue=z.normal,pe=ue.get("show"),_e=le.ignore,Ce=0;Ce<DISPLAY_STATES.length;Ce++){var $e=DISPLAY_STATES[Ce],xe=z[$e],Ie=$e==="normal";if(xe){var Fe=xe.get("show"),ze=Ie?_e:retrieve2(le.states[$e]&&le.states[$e].ignore,_e);if(ze||!retrieve2(Fe,pe)){var Ue=Ie?ae:ae&&ae.states[$e];Ue&&(Ue.ignore=!0);continue}ae||(ae=new Polyline$1,$.setTextGuideLine(ae),!Ie&&(_e||!pe)&&setLabelLineState(ae,!0,"normal",z.normal),$.stateProxy&&(ae.stateProxy=$.stateProxy)),setLabelLineState(ae,!1,$e,xe)}}if(ae){defaults(ae.style,oe),ae.style.fill=null;var qe=ue.get("showAbove"),At=$.textGuideLineConfig=$.textGuideLineConfig||{};At.showAbove=qe||!1,ae.buildPath=buildLabelLinePath}}function getLabelLineStatesModels($,z){z=z||"labelLine";for(var oe={normal:$.getModel(z)},ae=0;ae<SPECIAL_STATES.length;ae++){var le=SPECIAL_STATES[ae];oe[le]=$.getModel([le,z])}return oe}function prepareLayoutList($){for(var z=[],oe=0;oe<$.length;oe++){var ae=$[oe];if(!ae.defaultAttr.ignore){var le=ae.label,ue=le.getComputedTransform(),pe=le.getBoundingRect(),_e=!ue||ue[1]<1e-5&&ue[2]<1e-5,Ce=le.style.margin||0,$e=pe.clone();$e.applyTransform(ue),$e.x-=Ce/2,$e.y-=Ce/2,$e.width+=Ce,$e.height+=Ce;var xe=_e?new OrientedBoundingRect$1(pe,ue):null;z.push({label:le,labelLine:ae.labelLine,rect:$e,localRect:pe,obb:xe,priority:ae.priority,defaultAttr:ae.defaultAttr,layoutOption:ae.computedLayoutOption,axisAligned:_e,transform:ue})}}return z}function shiftLayout($,z,oe,ae,le,ue){var pe=$.length;if(pe<2)return;$.sort(function(En,$n){return En.rect[z]-$n.rect[z]});for(var _e=0,Ce,$e=!1,xe=0,Ie=0;Ie<pe;Ie++){var Fe=$[Ie],ze=Fe.rect;Ce=ze[z]-_e,Ce<0&&(ze[z]-=Ce,Fe.label[z]-=Ce,$e=!0);var Ue=Math.max(-Ce,0);xe+=Ue,_e=ze[z]+ze[oe]}xe>0&&ue&&bn(-xe/pe,0,pe);var qe=$[0],At=$[pe-1],Lt,hn;vn(),Lt<0&&Sn(-Lt,.8),hn<0&&Sn(hn,.8),vn(),_n(Lt,hn,1),_n(hn,Lt,-1),vn(),Lt<0&&Cn(-Lt),hn<0&&Cn(hn);function vn(){Lt=qe.rect[z]-ae,hn=le-At.rect[z]-At.rect[oe]}function _n(En,$n,wn){if(En<0){var Tn=Math.min($n,-En);if(Tn>0){bn(Tn*wn,0,pe);var xn=Tn+En;xn<0&&Sn(-xn*wn,1)}else Sn(-En*wn,1)}}function bn(En,$n,wn){En!==0&&($e=!0);for(var Tn=$n;Tn<wn;Tn++){var xn=$[Tn],kn=xn.rect;kn[z]+=En,xn.label[z]+=En}}function Sn(En,$n){for(var wn=[],Tn=0,xn=1;xn<pe;xn++){var kn=$[xn-1].rect,Nn=Math.max($[xn].rect[z]-kn[z]-kn[oe],0);wn.push(Nn),Tn+=Nn}if(Tn){var Bn=Math.min(Math.abs(En)/Tn,$n);if(En>0)for(var xn=0;xn<pe-1;xn++){var Dn=wn[xn]*Bn;bn(Dn,0,xn+1)}else for(var xn=pe-1;xn>0;xn--){var Dn=wn[xn-1]*Bn;bn(-Dn,xn,pe)}}}function Cn(En){var $n=En<0?-1:1;En=Math.abs(En);for(var wn=Math.ceil(En/(pe-1)),Tn=0;Tn<pe-1;Tn++)if($n>0?bn(wn,0,Tn+1):bn(-wn,pe-Tn-1,pe),En-=wn,En<=0)return}return $e}function shiftLayoutOnY($,z,oe,ae){return shiftLayout($,"y","height",z,oe,ae)}function hideOverlap($){var z=[];$.sort(function(qe,At){return At.priority-qe.priority});var oe=new BoundingRect$1(0,0,0,0);function ae(qe){if(!qe.ignore){var At=qe.ensureState("emphasis");At.ignore==null&&(At.ignore=!1)}qe.ignore=!0}for(var le=0;le<$.length;le++){var ue=$[le],pe=ue.axisAligned,_e=ue.localRect,Ce=ue.transform,$e=ue.label,xe=ue.labelLine;oe.copy(ue.rect),oe.width-=.1,oe.height-=.1,oe.x+=.05,oe.y+=.05;for(var Ie=ue.obb,Fe=!1,ze=0;ze<z.length;ze++){var Ue=z[ze];if(oe.intersect(Ue.rect)){if(pe&&Ue.axisAligned){Fe=!0;break}if(Ue.obb||(Ue.obb=new OrientedBoundingRect$1(Ue.localRect,Ue.transform)),Ie||(Ie=new OrientedBoundingRect$1(_e,Ce)),Ie.intersect(Ue.obb)){Fe=!0;break}}}Fe?(ae($e),xe&&ae(xe)):($e.attr("ignore",ue.defaultAttr.ignore),xe&&xe.attr("ignore",ue.defaultAttr.labelGuideIgnore),z.push(ue))}}const echarts=Object.freeze(Object.defineProperty({__proto__:null,Axis:Axis$1,ChartView:ChartView$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,List:SeriesData$1,Model:Model$1,PRIORITY,SeriesModel:SeriesModel$1,color,connect,dataTool,dependencies,disConnect,disconnect,dispose,env:env$1,extendChartView,extendComponentModel,extendComponentView,extendSeriesModel,format,getCoordinateSystemDimensions,getInstanceByDom,getInstanceById,getMap,graphic,helper,init,innerDrawElementOnCanvas:brushSingle,matrix,number,parseGeoJSON,parseGeoJson:parseGeoJSON,registerAction,registerCoordinateSystem,registerLayout,registerLoading,registerLocale,registerMap,registerPostInit,registerPostUpdate,registerPreprocessor,registerProcessor,registerTheme,registerTransform,registerUpdateLifecycle,registerVisual,setCanvasCreator,setPlatformAPI,throttle,time,use:use$1,util,vector,version,zrUtil:util$1,zrender},Symbol.toStringTag,{value:"Module"}));function createDom($,z,oe){var ae=platformApi.createCanvas(),le=z.getWidth(),ue=z.getHeight(),pe=ae.style;return pe&&(pe.position="absolute",pe.left="0",pe.top="0",pe.width=le+"px",pe.height=ue+"px",ae.setAttribute("data-zr-dom-id",$)),ae.width=le*oe,ae.height=ue*oe,ae}var Layer=function($){__extends(z,$);function z(oe,ae,le){var ue=$.call(this)||this;ue.motionBlur=!1,ue.lastFrameAlpha=.7,ue.dpr=1,ue.virtual=!1,ue.config={},ue.incremental=!1,ue.zlevel=0,ue.maxRepaintRectCount=5,ue.__dirty=!0,ue.__firstTimePaint=!0,ue.__used=!1,ue.__drawIndex=0,ue.__startIndex=0,ue.__endIndex=0,ue.__prevStartIndex=null,ue.__prevEndIndex=null;var pe;le=le||devicePixelRatio,typeof oe=="string"?pe=createDom(oe,ae,le):isObject$3(oe)&&(pe=oe,oe=pe.id),ue.id=oe,ue.dom=pe;var _e=pe.style;return _e&&(disableUserSelect(pe),pe.onselectstart=function(){return!1},_e.padding="0",_e.margin="0",_e.borderWidth="0"),ue.painter=ae,ue.dpr=le,ue}return z.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},z.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},z.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},z.prototype.setUnpainted=function(){this.__firstTimePaint=!0},z.prototype.createBackBuffer=function(){var oe=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,oe),this.ctxBack=this.domBack.getContext("2d"),oe!==1&&this.ctxBack.scale(oe,oe)},z.prototype.createRepaintRects=function(oe,ae,le,ue){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var pe=[],_e=this.maxRepaintRectCount,Ce=!1,$e=new BoundingRect$1(0,0,0,0);function xe(hn){if(!(!hn.isFinite()||hn.isZero()))if(pe.length===0){var vn=new BoundingRect$1(0,0,0,0);vn.copy(hn),pe.push(vn)}else{for(var _n=!1,bn=1/0,Sn=0,Cn=0;Cn<pe.length;++Cn){var En=pe[Cn];if(En.intersect(hn)){var $n=new BoundingRect$1(0,0,0,0);$n.copy(En),$n.union(hn),pe[Cn]=$n,_n=!0;break}else if(Ce){$e.copy(hn),$e.union(En);var wn=hn.width*hn.height,Tn=En.width*En.height,xn=$e.width*$e.height,kn=xn-wn-Tn;kn<bn&&(bn=kn,Sn=Cn)}}if(Ce&&(pe[Sn].union(hn),_n=!0),!_n){var vn=new BoundingRect$1(0,0,0,0);vn.copy(hn),pe.push(vn)}Ce||(Ce=pe.length>=_e)}}for(var Ie=this.__startIndex;Ie<this.__endIndex;++Ie){var Fe=oe[Ie];if(Fe){var ze=Fe.shouldBePainted(le,ue,!0,!0),Ue=Fe.__isRendered&&(Fe.__dirty&REDRAW_BIT||!ze)?Fe.getPrevPaintRect():null;Ue&&xe(Ue);var qe=ze&&(Fe.__dirty&REDRAW_BIT||!Fe.__isRendered)?Fe.getPaintRect():null;qe&&xe(qe)}}for(var Ie=this.__prevStartIndex;Ie<this.__prevEndIndex;++Ie){var Fe=ae[Ie],ze=Fe.shouldBePainted(le,ue,!0,!0);if(Fe&&(!ze||!Fe.__zr)&&Fe.__isRendered){var Ue=Fe.getPrevPaintRect();Ue&&xe(Ue)}}var At;do{At=!1;for(var Ie=0;Ie<pe.length;){if(pe[Ie].isZero()){pe.splice(Ie,1);continue}for(var Lt=Ie+1;Lt<pe.length;)pe[Ie].intersect(pe[Lt])?(At=!0,pe[Ie].union(pe[Lt]),pe.splice(Lt,1)):Lt++;Ie++}}while(At);return this._paintRects=pe,pe},z.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},z.prototype.resize=function(oe,ae){var le=this.dpr,ue=this.dom,pe=ue.style,_e=this.domBack;pe&&(pe.width=oe+"px",pe.height=ae+"px"),ue.width=oe*le,ue.height=ae*le,_e&&(_e.width=oe*le,_e.height=ae*le,le!==1&&this.ctxBack.scale(le,le))},z.prototype.clear=function(oe,ae,le){var ue=this.dom,pe=this.ctx,_e=ue.width,Ce=ue.height;ae=ae||this.clearColor;var $e=this.motionBlur&&!oe,xe=this.lastFrameAlpha,Ie=this.dpr,Fe=this;$e&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(ue,0,0,_e/Ie,Ce/Ie));var ze=this.domBack;function Ue(qe,At,Lt,hn){if(pe.clearRect(qe,At,Lt,hn),ae&&ae!=="transparent"){var vn=void 0;if(isGradientObject(ae)){var _n=ae.global||ae.__width===Lt&&ae.__height===hn;vn=_n&&ae.__canvasGradient||getCanvasGradient(pe,ae,{x:0,y:0,width:Lt,height:hn}),ae.__canvasGradient=vn,ae.__width=Lt,ae.__height=hn}else isImagePatternObject(ae)&&(ae.scaleX=ae.scaleX||Ie,ae.scaleY=ae.scaleY||Ie,vn=createCanvasPattern(pe,ae,{dirty:function(){Fe.setUnpainted(),Fe.__painter.refresh()}}));pe.save(),pe.fillStyle=vn||ae,pe.fillRect(qe,At,Lt,hn),pe.restore()}$e&&(pe.save(),pe.globalAlpha=xe,pe.drawImage(ze,qe,At,Lt,hn),pe.restore())}!le||$e?Ue(0,0,_e,Ce):le.length&&each$c(le,function(qe){Ue(qe.x*Ie,qe.y*Ie,qe.width*Ie,qe.height*Ie)})},z}(Eventful$1);const Layer$1=Layer;var HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid($){return $?$.__builtin__?!0:!(typeof $.resize!="function"||typeof $.refresh!="function"):!1}function createRoot($,z){var oe=document.createElement("div");return oe.style.cssText=["position:relative","width:"+$+"px","height:"+z+"px","padding:0","margin:0","border-width:0"].join(";")+";",oe}var CanvasPainter=function(){function $(z,oe,ae,le){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var ue=!z.nodeName||z.nodeName.toUpperCase()==="CANVAS";this._opts=ae=extend({},ae||{}),this.dpr=ae.devicePixelRatio||devicePixelRatio,this._singleCanvas=ue,this.root=z;var pe=z.style;pe&&(disableUserSelect(z),z.innerHTML=""),this.storage=oe;var _e=this._zlevelList;this._prevDisplayList=[];var Ce=this._layers;if(ue){var xe=z,Ie=xe.width,Fe=xe.height;ae.width!=null&&(Ie=ae.width),ae.height!=null&&(Fe=ae.height),this.dpr=ae.devicePixelRatio||1,xe.width=Ie*this.dpr,xe.height=Fe*this.dpr,this._width=Ie,this._height=Fe;var ze=new Layer$1(xe,this,this.dpr);ze.__builtin__=!0,ze.initContext(),Ce[CANVAS_ZLEVEL]=ze,ze.zlevel=CANVAS_ZLEVEL,_e.push(CANVAS_ZLEVEL),this._domRoot=z}else{this._width=getSize$1(z,0,ae),this._height=getSize$1(z,1,ae);var $e=this._domRoot=createRoot(this._width,this._height);z.appendChild($e)}}return $.prototype.getType=function(){return"canvas"},$.prototype.isSingleCanvas=function(){return this._singleCanvas},$.prototype.getViewportRoot=function(){return this._domRoot},$.prototype.getViewportRootOffset=function(){var z=this.getViewportRoot();if(z)return{offsetLeft:z.offsetLeft||0,offsetTop:z.offsetTop||0}},$.prototype.refresh=function(z){var oe=this.storage.getDisplayList(!0),ae=this._prevDisplayList,le=this._zlevelList;this._redrawId=Math.random(),this._paintList(oe,ae,z,this._redrawId);for(var ue=0;ue<le.length;ue++){var pe=le[ue],_e=this._layers[pe];if(!_e.__builtin__&&_e.refresh){var Ce=ue===0?this._backgroundColor:null;_e.refresh(Ce)}}return this._opts.useDirtyRect&&(this._prevDisplayList=oe.slice()),this},$.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},$.prototype._paintHoverList=function(z){var oe=z.length,ae=this._hoverlayer;if(ae&&ae.clear(),!!oe){for(var le={inHover:!0,viewWidth:this._width,viewHeight:this._height},ue,pe=0;pe<oe;pe++){var _e=z[pe];_e.__inHover&&(ae||(ae=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),ue||(ue=ae.ctx,ue.save()),brush(ue,_e,le,pe===oe-1))}ue&&ue.restore()}},$.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},$.prototype.paintOne=function(z,oe){brushSingle(z,oe)},$.prototype._paintList=function(z,oe,ae,le){if(this._redrawId===le){ae=ae||!1,this._updateLayerStatus(z);var ue=this._doPaintList(z,oe,ae),pe=ue.finished,_e=ue.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),_e&&this._paintHoverList(z),pe)this.eachLayer(function($e){$e.afterBrush&&$e.afterBrush()});else{var Ce=this;requestAnimationFrame$2(function(){Ce._paintList(z,oe,ae,le)})}}},$.prototype._compositeManually=function(){var z=this.getLayer(CANVAS_ZLEVEL).ctx,oe=this._domRoot.width,ae=this._domRoot.height;z.clearRect(0,0,oe,ae),this.eachBuiltinLayer(function(le){le.virtual&&z.drawImage(le.dom,0,0,oe,ae)})},$.prototype._doPaintList=function(z,oe,ae){for(var le=this,ue=[],pe=this._opts.useDirtyRect,_e=0;_e<this._zlevelList.length;_e++){var Ce=this._zlevelList[_e],$e=this._layers[Ce];$e.__builtin__&&$e!==this._hoverlayer&&($e.__dirty||ae)&&ue.push($e)}for(var xe=!0,Ie=!1,Fe=function(qe){var At=ue[qe],Lt=At.ctx,hn=pe&&At.createRepaintRects(z,oe,ze._width,ze._height),vn=ae?At.__startIndex:At.__drawIndex,_n=!ae&&At.incremental&&Date.now,bn=_n&&Date.now(),Sn=At.zlevel===ze._zlevelList[0]?ze._backgroundColor:null;if(At.__startIndex===At.__endIndex)At.clear(!1,Sn,hn);else if(vn===At.__startIndex){var Cn=z[vn];(!Cn.incremental||!Cn.notClear||ae)&&At.clear(!1,Sn,hn)}vn===-1&&(console.error("For some unknown reason. drawIndex is -1"),vn=At.__startIndex);var En,$n=function(kn){var Nn={inHover:!1,allClipped:!1,prevEl:null,viewWidth:le._width,viewHeight:le._height};for(En=vn;En<At.__endIndex;En++){var Bn=z[En];if(Bn.__inHover&&(Ie=!0),le._doPaintEl(Bn,At,pe,kn,Nn,En===At.__endIndex-1),_n){var Dn=Date.now()-bn;if(Dn>15)break}}Nn.prevElClipPaths&&Lt.restore()};if(hn)if(hn.length===0)En=At.__endIndex;else for(var wn=ze.dpr,Tn=0;Tn<hn.length;++Tn){var xn=hn[Tn];Lt.save(),Lt.beginPath(),Lt.rect(xn.x*wn,xn.y*wn,xn.width*wn,xn.height*wn),Lt.clip(),$n(xn),Lt.restore()}else Lt.save(),$n(),Lt.restore();At.__drawIndex=En,At.__drawIndex<At.__endIndex&&(xe=!1)},ze=this,Ue=0;Ue<ue.length;Ue++)Fe(Ue);return env$1.wxa&&each$c(this._layers,function(qe){qe&&qe.ctx&&qe.ctx.draw&&qe.ctx.draw()}),{finished:xe,needsRefreshHover:Ie}},$.prototype._doPaintEl=function(z,oe,ae,le,ue,pe){var _e=oe.ctx;if(ae){var Ce=z.getPaintRect();(!le||Ce&&Ce.intersect(le))&&(brush(_e,z,ue,pe),z.setPrevPaintRect(Ce))}else brush(_e,z,ue,pe)},$.prototype.getLayer=function(z,oe){this._singleCanvas&&!this._needsManuallyCompositing&&(z=CANVAS_ZLEVEL);var ae=this._layers[z];return ae||(ae=new Layer$1("zr_"+z,this,this.dpr),ae.zlevel=z,ae.__builtin__=!0,this._layerConfig[z]?merge(ae,this._layerConfig[z],!0):this._layerConfig[z-EL_AFTER_INCREMENTAL_INC]&&merge(ae,this._layerConfig[z-EL_AFTER_INCREMENTAL_INC],!0),oe&&(ae.virtual=oe),this.insertLayer(z,ae),ae.initContext()),ae},$.prototype.insertLayer=function(z,oe){var ae=this._layers,le=this._zlevelList,ue=le.length,pe=this._domRoot,_e=null,Ce=-1;if(!ae[z]&&isLayerValid(oe)){if(ue>0&&z>le[0]){for(Ce=0;Ce<ue-1&&!(le[Ce]<z&&le[Ce+1]>z);Ce++);_e=ae[le[Ce]]}if(le.splice(Ce+1,0,z),ae[z]=oe,!oe.virtual)if(_e){var $e=_e.dom;$e.nextSibling?pe.insertBefore(oe.dom,$e.nextSibling):pe.appendChild(oe.dom)}else pe.firstChild?pe.insertBefore(oe.dom,pe.firstChild):pe.appendChild(oe.dom);oe.__painter=this}},$.prototype.eachLayer=function(z,oe){for(var ae=this._zlevelList,le=0;le<ae.length;le++){var ue=ae[le];z.call(oe,this._layers[ue],ue)}},$.prototype.eachBuiltinLayer=function(z,oe){for(var ae=this._zlevelList,le=0;le<ae.length;le++){var ue=ae[le],pe=this._layers[ue];pe.__builtin__&&z.call(oe,pe,ue)}},$.prototype.eachOtherLayer=function(z,oe){for(var ae=this._zlevelList,le=0;le<ae.length;le++){var ue=ae[le],pe=this._layers[ue];pe.__builtin__||z.call(oe,pe,ue)}},$.prototype.getLayers=function(){return this._layers},$.prototype._updateLayerStatus=function(z){this.eachBuiltinLayer(function(Ie,Fe){Ie.__dirty=Ie.__used=!1});function oe(Ie){ue&&(ue.__endIndex!==Ie&&(ue.__dirty=!0),ue.__endIndex=Ie)}if(this._singleCanvas)for(var ae=1;ae<z.length;ae++){var le=z[ae];if(le.zlevel!==z[ae-1].zlevel||le.incremental){this._needsManuallyCompositing=!0;break}}var ue=null,pe=0,_e,Ce;for(Ce=0;Ce<z.length;Ce++){var le=z[Ce],$e=le.zlevel,xe=void 0;_e!==$e&&(_e=$e,pe=0),le.incremental?(xe=this.getLayer($e+INCREMENTAL_INC,this._needsManuallyCompositing),xe.incremental=!0,pe=1):xe=this.getLayer($e+(pe>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),xe.__builtin__||logError("ZLevel "+$e+" has been used by unkown layer "+xe.id),xe!==ue&&(xe.__used=!0,xe.__startIndex!==Ce&&(xe.__dirty=!0),xe.__startIndex=Ce,xe.incremental?xe.__drawIndex=-1:xe.__drawIndex=Ce,oe(Ce),ue=xe),le.__dirty&REDRAW_BIT&&!le.__inHover&&(xe.__dirty=!0,xe.incremental&&xe.__drawIndex<0&&(xe.__drawIndex=Ce))}oe(Ce),this.eachBuiltinLayer(function(Ie,Fe){!Ie.__used&&Ie.getElementCount()>0&&(Ie.__dirty=!0,Ie.__startIndex=Ie.__endIndex=Ie.__drawIndex=0),Ie.__dirty&&Ie.__drawIndex<0&&(Ie.__drawIndex=Ie.__startIndex)})},$.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},$.prototype._clearLayer=function(z){z.clear()},$.prototype.setBackgroundColor=function(z){this._backgroundColor=z,each$c(this._layers,function(oe){oe.setUnpainted()})},$.prototype.configLayer=function(z,oe){if(oe){var ae=this._layerConfig;ae[z]?merge(ae[z],oe,!0):ae[z]=oe;for(var le=0;le<this._zlevelList.length;le++){var ue=this._zlevelList[le];if(ue===z||ue===z+EL_AFTER_INCREMENTAL_INC){var pe=this._layers[ue];merge(pe,ae[z],!0)}}}},$.prototype.delLayer=function(z){var oe=this._layers,ae=this._zlevelList,le=oe[z];le&&(le.dom.parentNode.removeChild(le.dom),delete oe[z],ae.splice(indexOf(ae,z),1))},$.prototype.resize=function(z,oe){if(this._domRoot.style){var ae=this._domRoot;ae.style.display="none";var le=this._opts,ue=this.root;if(z!=null&&(le.width=z),oe!=null&&(le.height=oe),z=getSize$1(ue,0,le),oe=getSize$1(ue,1,le),ae.style.display="",this._width!==z||oe!==this._height){ae.style.width=z+"px",ae.style.height=oe+"px";for(var pe in this._layers)this._layers.hasOwnProperty(pe)&&this._layers[pe].resize(z,oe);this.refresh(!0)}this._width=z,this._height=oe}else{if(z==null||oe==null)return;this._width=z,this._height=oe,this.getLayer(CANVAS_ZLEVEL).resize(z,oe)}return this},$.prototype.clearLayer=function(z){var oe=this._layers[z];oe&&oe.clear()},$.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},$.prototype.getRenderedCanvas=function(z){if(z=z||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var oe=new Layer$1("image",this,z.pixelRatio||this.dpr);oe.initContext(),oe.clear(!1,z.backgroundColor||this._backgroundColor);var ae=oe.ctx;if(z.pixelRatio<=this.dpr){this.refresh();var le=oe.dom.width,ue=oe.dom.height;this.eachLayer(function(Ie){Ie.__builtin__?ae.drawImage(Ie.dom,0,0,le,ue):Ie.renderToCanvas&&(ae.save(),Ie.renderToCanvas(ae),ae.restore())})}else for(var pe={inHover:!1,viewWidth:this._width,viewHeight:this._height},_e=this.storage.getDisplayList(!0),Ce=0,$e=_e.length;Ce<$e;Ce++){var xe=_e[Ce];brush(ae,xe,pe,Ce===$e-1)}return oe.dom},$.prototype.getWidth=function(){return this._width},$.prototype.getHeight=function(){return this._height},$}();const CanvasPainter$1=CanvasPainter;function install$k($){$.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.hasSymbolVisual=!0,oe}return z.prototype.getInitialData=function(oe){return createSeriesData(null,this,{useEncodeDefaulter:!0})},z.prototype.getLegendIcon=function(oe){var ae=new Group$3,le=createSymbol("line",0,oe.itemHeight/2,oe.itemWidth,0,oe.lineStyle.stroke,!1);ae.add(le),le.setStyle(oe.lineStyle);var ue=this.getData().getVisual("symbol"),pe=this.getData().getVisual("symbolRotate"),_e=ue==="none"?"circle":ue,Ce=oe.itemHeight*.8,$e=createSymbol(_e,(oe.itemWidth-Ce)/2,(oe.itemHeight-Ce)/2,Ce,Ce,oe.itemStyle.fill);ae.add($e),$e.setStyle(oe.itemStyle);var xe=oe.iconRotate==="inherit"?pe:oe.iconRotate||0;return $e.rotation=xe*Math.PI/180,$e.setOrigin([oe.itemWidth/2,oe.itemHeight/2]),_e.indexOf("empty")>-1&&($e.style.stroke=$e.style.fill,$e.style.fill="#fff",$e.style.lineWidth=2),ae},z.type="series.line",z.dependencies=["grid","polar"],z.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},z}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel($,z){var oe=$.mapDimensionsAll("defaultedLabel"),ae=oe.length;if(ae===1){var le=retrieveRawValue($,z,oe[0]);return le!=null?le+"":null}else if(ae){for(var ue=[],pe=0;pe<oe.length;pe++)ue.push(retrieveRawValue($,z,oe[pe]));return ue.join(" ")}}function getDefaultInterpolatedLabel($,z){var oe=$.mapDimensionsAll("defaultedLabel");if(!isArray$1(z))return z+"";for(var ae=[],le=0;le<oe.length;le++){var ue=$.getDimensionIndex(oe[le]);ue>=0&&ae.push(z[ue])}return ae.join(" ")}var Symbol$1=function($){__extends(z,$);function z(oe,ae,le,ue){var pe=$.call(this)||this;return pe.updateData(oe,ae,le,ue),pe}return z.prototype._createSymbol=function(oe,ae,le,ue,pe){this.removeAll();var _e=createSymbol(oe,-1,-1,2,2,null,pe);_e.attr({z2:100,culling:!0,scaleX:ue[0]/2,scaleY:ue[1]/2}),_e.drift=driftSymbol,this._symbolType=oe,this.add(_e)},z.prototype.stopSymbolAnimation=function(oe){this.childAt(0).stopAnimation(null,oe)},z.prototype.getSymbolType=function(){return this._symbolType},z.prototype.getSymbolPath=function(){return this.childAt(0)},z.prototype.highlight=function(){enterEmphasis(this.childAt(0))},z.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},z.prototype.setZ=function(oe,ae){var le=this.childAt(0);le.zlevel=oe,le.z=ae},z.prototype.setDraggable=function(oe,ae){var le=this.childAt(0);le.draggable=oe,le.cursor=!ae&&oe?"move":le.cursor},z.prototype.updateData=function(oe,ae,le,ue){this.silent=!1;var pe=oe.getItemVisual(ae,"symbol")||"circle",_e=oe.hostModel,Ce=z.getSymbolSize(oe,ae),$e=pe!==this._symbolType,xe=ue&&ue.disableAnimation;if($e){var Ie=oe.getItemVisual(ae,"symbolKeepAspect");this._createSymbol(pe,oe,ae,Ce,Ie)}else{var Fe=this.childAt(0);Fe.silent=!1;var ze={scaleX:Ce[0]/2,scaleY:Ce[1]/2};xe?Fe.attr(ze):updateProps$1(Fe,ze,_e,ae),saveOldStyle(Fe)}if(this._updateCommon(oe,ae,Ce,le,ue),$e){var Fe=this.childAt(0);if(!xe){var ze={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:Fe.style.opacity}};Fe.scaleX=Fe.scaleY=0,Fe.style.opacity=0,initProps(Fe,ze,_e,ae)}}xe&&this.childAt(0).stopAnimation("leave")},z.prototype._updateCommon=function(oe,ae,le,ue,pe){var _e=this.childAt(0),Ce=oe.hostModel,$e,xe,Ie,Fe,ze,Ue,qe,At,Lt;if(ue&&($e=ue.emphasisItemStyle,xe=ue.blurItemStyle,Ie=ue.selectItemStyle,Fe=ue.focus,ze=ue.blurScope,qe=ue.labelStatesModels,At=ue.hoverScale,Lt=ue.cursorStyle,Ue=ue.emphasisDisabled),!ue||oe.hasItemOption){var hn=ue&&ue.itemModel?ue.itemModel:oe.getItemModel(ae),vn=hn.getModel("emphasis");$e=vn.getModel("itemStyle").getItemStyle(),Ie=hn.getModel(["select","itemStyle"]).getItemStyle(),xe=hn.getModel(["blur","itemStyle"]).getItemStyle(),Fe=vn.get("focus"),ze=vn.get("blurScope"),Ue=vn.get("disabled"),qe=getLabelStatesModels(hn),At=vn.getShallow("scale"),Lt=hn.getShallow("cursor")}var _n=oe.getItemVisual(ae,"symbolRotate");_e.attr("rotation",(_n||0)*Math.PI/180||0);var bn=normalizeSymbolOffset(oe.getItemVisual(ae,"symbolOffset"),le);bn&&(_e.x=bn[0],_e.y=bn[1]),Lt&&_e.attr("cursor",Lt);var Sn=oe.getItemVisual(ae,"style"),Cn=Sn.fill;if(_e instanceof ZRImage$1){var En=_e.style;_e.useStyle(extend({image:En.image,x:En.x,y:En.y,width:En.width,height:En.height},Sn))}else _e.__isEmptyBrush?_e.useStyle(extend({},Sn)):_e.useStyle(Sn),_e.style.decal=null,_e.setColor(Cn,pe&&pe.symbolInnerColor),_e.style.strokeNoScale=!0;var $n=oe.getItemVisual(ae,"liftZ"),wn=this._z2;$n!=null?wn==null&&(this._z2=_e.z2,_e.z2+=$n):wn!=null&&(_e.z2=wn,this._z2=null);var Tn=pe&&pe.useNameLabel;setLabelStyle(_e,qe,{labelFetcher:Ce,labelDataIndex:ae,defaultText:xn,inheritColor:Cn,defaultOpacity:Sn.opacity});function xn(Bn){return Tn?oe.getName(Bn):getDefaultLabel(oe,Bn)}this._sizeX=le[0]/2,this._sizeY=le[1]/2;var kn=_e.ensureState("emphasis");kn.style=$e,_e.ensureState("select").style=Ie,_e.ensureState("blur").style=xe;var Nn=At==null||At===!0?Math.max(1.1,3/this._sizeY):isFinite(At)&&At>0?+At:1;kn.scaleX=this._sizeX*Nn,kn.scaleY=this._sizeY*Nn,this.setSymbolScale(1),toggleHoverEmphasis(this,Fe,ze,Ue)},z.prototype.setSymbolScale=function(oe){this.scaleX=this.scaleY=oe},z.prototype.fadeOut=function(oe,ae,le){var ue=this.childAt(0),pe=getECData(this).dataIndex,_e=le&&le.animation;if(this.silent=ue.silent=!0,le&&le.fadeLabel){var Ce=ue.getTextContent();Ce&&removeElement(Ce,{style:{opacity:0}},ae,{dataIndex:pe,removeOpt:_e,cb:function(){ue.removeTextContent()}})}else ue.removeTextContent();removeElement(ue,{style:{opacity:0},scaleX:0,scaleY:0},ae,{dataIndex:pe,cb:oe,removeOpt:_e})},z.getSymbolSize=function(oe,ae){return normalizeSymbolSize(oe.getItemVisual(ae,"symbolSize"))},z}(Group$3);function driftSymbol($,z){this.parent.drift($,z)}const SymbolClz=Symbol$1;function symbolNeedsDraw($,z,oe,ae){return z&&!isNaN(z[0])&&!isNaN(z[1])&&!(ae.isIgnore&&ae.isIgnore(oe))&&!(ae.clipShape&&!ae.clipShape.contain(z[0],z[1]))&&$.getItemVisual(oe,"symbol")!=="none"}function normalizeUpdateOpt($){return $!=null&&!isObject$3($)&&($={isIgnore:$}),$||{}}function makeSeriesScope($){var z=$.hostModel,oe=z.getModel("emphasis");return{emphasisItemStyle:oe.getModel("itemStyle").getItemStyle(),blurItemStyle:z.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:z.getModel(["select","itemStyle"]).getItemStyle(),focus:oe.get("focus"),blurScope:oe.get("blurScope"),emphasisDisabled:oe.get("disabled"),hoverScale:oe.get("scale"),labelStatesModels:getLabelStatesModels(z),cursorStyle:z.get("cursor")}}var SymbolDraw=function(){function $(z){this.group=new Group$3,this._SymbolCtor=z||SymbolClz}return $.prototype.updateData=function(z,oe){this._progressiveEls=null,oe=normalizeUpdateOpt(oe);var ae=this.group,le=z.hostModel,ue=this._data,pe=this._SymbolCtor,_e=oe.disableAnimation,Ce=makeSeriesScope(z),$e={disableAnimation:_e},xe=oe.getSymbolPoint||function(Ie){return z.getItemLayout(Ie)};ue||ae.removeAll(),z.diff(ue).add(function(Ie){var Fe=xe(Ie);if(symbolNeedsDraw(z,Fe,Ie,oe)){var ze=new pe(z,Ie,Ce,$e);ze.setPosition(Fe),z.setItemGraphicEl(Ie,ze),ae.add(ze)}}).update(function(Ie,Fe){var ze=ue.getItemGraphicEl(Fe),Ue=xe(Ie);if(!symbolNeedsDraw(z,Ue,Ie,oe)){ae.remove(ze);return}var qe=z.getItemVisual(Ie,"symbol")||"circle",At=ze&&ze.getSymbolType&&ze.getSymbolType();if(!ze||At&&At!==qe)ae.remove(ze),ze=new pe(z,Ie,Ce,$e),ze.setPosition(Ue);else{ze.updateData(z,Ie,Ce,$e);var Lt={x:Ue[0],y:Ue[1]};_e?ze.attr(Lt):updateProps$1(ze,Lt,le)}ae.add(ze),z.setItemGraphicEl(Ie,ze)}).remove(function(Ie){var Fe=ue.getItemGraphicEl(Ie);Fe&&Fe.fadeOut(function(){ae.remove(Fe)},le)}).execute(),this._getSymbolPoint=xe,this._data=z},$.prototype.updateLayout=function(){var z=this,oe=this._data;oe&&oe.eachItemGraphicEl(function(ae,le){var ue=z._getSymbolPoint(le);ae.setPosition(ue),ae.markRedraw()})},$.prototype.incrementalPrepareUpdate=function(z){this._seriesScope=makeSeriesScope(z),this._data=null,this.group.removeAll()},$.prototype.incrementalUpdate=function(z,oe,ae){this._progressiveEls=[],ae=normalizeUpdateOpt(ae);function le(Ce){Ce.isGroup||(Ce.incremental=!0,Ce.ensureState("emphasis").hoverLayer=!0)}for(var ue=z.start;ue<z.end;ue++){var pe=oe.getItemLayout(ue);if(symbolNeedsDraw(oe,pe,ue,ae)){var _e=new this._SymbolCtor(oe,ue,this._seriesScope);_e.traverse(le),_e.setPosition(pe),this.group.add(_e),oe.setItemGraphicEl(ue,_e),this._progressiveEls.push(_e)}}},$.prototype.eachRendered=function(z){traverseElements(this._progressiveEls||this.group,z)},$.prototype.remove=function(z){var oe=this.group,ae=this._data;ae&&z?ae.eachItemGraphicEl(function(le){le.fadeOut(function(){oe.remove(le)},ae.hostModel)}):oe.removeAll()},$}();const SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo($,z,oe){var ae=$.getBaseAxis(),le=$.getOtherAxis(ae),ue=getValueStart(le,oe),pe=ae.dim,_e=le.dim,Ce=z.mapDimension(_e),$e=z.mapDimension(pe),xe=_e==="x"||_e==="radius"?1:0,Ie=map$2($.dimensions,function(Ue){return z.mapDimension(Ue)}),Fe=!1,ze=z.getCalculationInfo("stackResultDimension");return isDimensionStacked(z,Ie[0])&&(Fe=!0,Ie[0]=ze),isDimensionStacked(z,Ie[1])&&(Fe=!0,Ie[1]=ze),{dataDimsForPoint:Ie,valueStart:ue,valueAxisDim:_e,baseAxisDim:pe,stacked:!!Fe,valueDim:Ce,baseDim:$e,baseDataOffset:xe,stackedOverDimension:z.getCalculationInfo("stackedOverDimension")}}function getValueStart($,z){var oe=0,ae=$.scale.getExtent();return z==="start"?oe=ae[0]:z==="end"?oe=ae[1]:isNumber(z)&&!isNaN(z)?oe=z:ae[0]>0?oe=ae[0]:ae[1]<0&&(oe=ae[1]),oe}function getStackedOnPoint($,z,oe,ae){var le=NaN;$.stacked&&(le=oe.get(oe.getCalculationInfo("stackedOverDimension"),ae)),isNaN(le)&&(le=$.valueStart);var ue=$.baseDataOffset,pe=[];return pe[ue]=oe.get($.baseDim,ae),pe[1-ue]=le,z.dataToPoint(pe)}function diffData($,z){var oe=[];return z.diff($).add(function(ae){oe.push({cmd:"+",idx:ae})}).update(function(ae,le){oe.push({cmd:"=",idx:le,idx1:ae})}).remove(function(ae){oe.push({cmd:"-",idx:ae})}).execute(),oe}function lineAnimationDiff($,z,oe,ae,le,ue,pe,_e){for(var Ce=diffData($,z),$e=[],xe=[],Ie=[],Fe=[],ze=[],Ue=[],qe=[],At=prepareDataCoordInfo(le,z,pe),Lt=$.getLayout("points")||[],hn=z.getLayout("points")||[],vn=0;vn<Ce.length;vn++){var _n=Ce[vn],bn=!0,Sn=void 0,Cn=void 0;switch(_n.cmd){case"=":Sn=_n.idx*2,Cn=_n.idx1*2;var En=Lt[Sn],$n=Lt[Sn+1],wn=hn[Cn],Tn=hn[Cn+1];(isNaN(En)||isNaN($n))&&(En=wn,$n=Tn),$e.push(En,$n),xe.push(wn,Tn),Ie.push(oe[Sn],oe[Sn+1]),Fe.push(ae[Cn],ae[Cn+1]),qe.push(z.getRawIndex(_n.idx1));break;case"+":var xn=_n.idx,kn=At.dataDimsForPoint,Nn=le.dataToPoint([z.get(kn[0],xn),z.get(kn[1],xn)]);Cn=xn*2,$e.push(Nn[0],Nn[1]),xe.push(hn[Cn],hn[Cn+1]);var Bn=getStackedOnPoint(At,le,z,xn);Ie.push(Bn[0],Bn[1]),Fe.push(ae[Cn],ae[Cn+1]),qe.push(z.getRawIndex(xn));break;case"-":bn=!1}bn&&(ze.push(_n),Ue.push(Ue.length))}Ue.sort(function(vr,ar){return qe[vr]-qe[ar]});for(var Dn=$e.length,In=createFloat32Array(Dn),Ln=createFloat32Array(Dn),Mn=createFloat32Array(Dn),Vn=createFloat32Array(Dn),Yn=[],vn=0;vn<Ue.length;vn++){var Fn=Ue[vn],Xn=vn*2,sr=Fn*2;In[Xn]=$e[sr],In[Xn+1]=$e[sr+1],Ln[Xn]=xe[sr],Ln[Xn+1]=xe[sr+1],Mn[Xn]=Ie[sr],Mn[Xn+1]=Ie[sr+1],Vn[Xn]=Fe[sr],Vn[Xn+1]=Fe[sr+1],Yn[vn]=ze[Fn]}return{current:In,next:Ln,stackedOnCurrent:Mn,stackedOnNext:Vn,status:Yn}}var mathMin$3=Math.min,mathMax$3=Math.max;function isPointNull$1($,z){return isNaN($)||isNaN(z)}function drawSegment($,z,oe,ae,le,ue,pe,_e,Ce){for(var $e,xe,Ie,Fe,ze,Ue,qe=oe,At=0;At<ae;At++){var Lt=z[qe*2],hn=z[qe*2+1];if(qe>=le||qe<0)break;if(isPointNull$1(Lt,hn)){if(Ce){qe+=ue;continue}break}if(qe===oe)$[ue>0?"moveTo":"lineTo"](Lt,hn),Ie=Lt,Fe=hn;else{var vn=Lt-$e,_n=hn-xe;if(vn*vn+_n*_n<.5){qe+=ue;continue}if(pe>0){for(var bn=qe+ue,Sn=z[bn*2],Cn=z[bn*2+1];Sn===Lt&&Cn===hn&&At<ae;)At++,bn+=ue,qe+=ue,Sn=z[bn*2],Cn=z[bn*2+1],Lt=z[qe*2],hn=z[qe*2+1],vn=Lt-$e,_n=hn-xe;var En=At+1;if(Ce)for(;isPointNull$1(Sn,Cn)&&En<ae;)En++,bn+=ue,Sn=z[bn*2],Cn=z[bn*2+1];var $n=.5,wn=0,Tn=0,xn=void 0,kn=void 0;if(En>=ae||isPointNull$1(Sn,Cn))ze=Lt,Ue=hn;else{wn=Sn-$e,Tn=Cn-xe;var Nn=Lt-$e,Bn=Sn-Lt,Dn=hn-xe,In=Cn-hn,Ln=void 0,Mn=void 0;if(_e==="x"){Ln=Math.abs(Nn),Mn=Math.abs(Bn);var Vn=wn>0?1:-1;ze=Lt-Vn*Ln*pe,Ue=hn,xn=Lt+Vn*Mn*pe,kn=hn}else if(_e==="y"){Ln=Math.abs(Dn),Mn=Math.abs(In);var Yn=Tn>0?1:-1;ze=Lt,Ue=hn-Yn*Ln*pe,xn=Lt,kn=hn+Yn*Mn*pe}else Ln=Math.sqrt(Nn*Nn+Dn*Dn),Mn=Math.sqrt(Bn*Bn+In*In),$n=Mn/(Mn+Ln),ze=Lt-wn*pe*(1-$n),Ue=hn-Tn*pe*(1-$n),xn=Lt+wn*pe*$n,kn=hn+Tn*pe*$n,xn=mathMin$3(xn,mathMax$3(Sn,Lt)),kn=mathMin$3(kn,mathMax$3(Cn,hn)),xn=mathMax$3(xn,mathMin$3(Sn,Lt)),kn=mathMax$3(kn,mathMin$3(Cn,hn)),wn=xn-Lt,Tn=kn-hn,ze=Lt-wn*Ln/Mn,Ue=hn-Tn*Ln/Mn,ze=mathMin$3(ze,mathMax$3($e,Lt)),Ue=mathMin$3(Ue,mathMax$3(xe,hn)),ze=mathMax$3(ze,mathMin$3($e,Lt)),Ue=mathMax$3(Ue,mathMin$3(xe,hn)),wn=Lt-ze,Tn=hn-Ue,xn=Lt+wn*Mn/Ln,kn=hn+Tn*Mn/Ln}$.bezierCurveTo(Ie,Fe,ze,Ue,Lt,hn),Ie=xn,Fe=kn}else $.lineTo(Lt,hn)}$e=Lt,xe=hn,qe+=ue}return At}var ECPolylineShape=function(){function $(){this.smooth=0,this.smoothConstraint=!0}return $}(),ECPolyline=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="ec-polyline",ae}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new ECPolylineShape},z.prototype.buildPath=function(oe,ae){var le=ae.points,ue=0,pe=le.length/2;if(ae.connectNulls){for(;pe>0&&isPointNull$1(le[pe*2-2],le[pe*2-1]);pe--);for(;ue<pe&&isPointNull$1(le[ue*2],le[ue*2+1]);ue++);}for(;ue<pe;)ue+=drawSegment(oe,le,ue,pe,pe,1,ae.smooth,ae.smoothMonotone,ae.connectNulls)+1},z.prototype.getPointOn=function(oe,ae){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var le=this.path,ue=le.data,pe=PathProxy$1.CMD,_e,Ce,$e=ae==="x",xe=[],Ie=0;Ie<ue.length;){var Fe=ue[Ie++],ze=void 0,Ue=void 0,qe=void 0,At=void 0,Lt=void 0,hn=void 0,vn=void 0;switch(Fe){case pe.M:_e=ue[Ie++],Ce=ue[Ie++];break;case pe.L:if(ze=ue[Ie++],Ue=ue[Ie++],vn=$e?(oe-_e)/(ze-_e):(oe-Ce)/(Ue-Ce),vn<=1&&vn>=0){var _n=$e?(Ue-Ce)*vn+Ce:(ze-_e)*vn+_e;return $e?[oe,_n]:[_n,oe]}_e=ze,Ce=Ue;break;case pe.C:ze=ue[Ie++],Ue=ue[Ie++],qe=ue[Ie++],At=ue[Ie++],Lt=ue[Ie++],hn=ue[Ie++];var bn=$e?cubicRootAt(_e,ze,qe,Lt,oe,xe):cubicRootAt(Ce,Ue,At,hn,oe,xe);if(bn>0)for(var Sn=0;Sn<bn;Sn++){var Cn=xe[Sn];if(Cn<=1&&Cn>=0){var _n=$e?cubicAt(Ce,Ue,At,hn,Cn):cubicAt(_e,ze,qe,Lt,Cn);return $e?[oe,_n]:[_n,oe]}}_e=Lt,Ce=hn;break}}},z}(Path$1),ECPolygonShape=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z}(ECPolylineShape),ECPolygon=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="ec-polygon",ae}return z.prototype.getDefaultShape=function(){return new ECPolygonShape},z.prototype.buildPath=function(oe,ae){var le=ae.points,ue=ae.stackedOnPoints,pe=0,_e=le.length/2,Ce=ae.smoothMonotone;if(ae.connectNulls){for(;_e>0&&isPointNull$1(le[_e*2-2],le[_e*2-1]);_e--);for(;pe<_e&&isPointNull$1(le[pe*2],le[pe*2+1]);pe++);}for(;pe<_e;){var $e=drawSegment(oe,le,pe,_e,_e,1,ae.smooth,Ce,ae.connectNulls);drawSegment(oe,ue,pe+$e-1,$e,_e,-1,ae.stackedOnSmooth,Ce,ae.connectNulls),pe+=$e+1,oe.closePath()}},z}(Path$1);function createGridClipPath($,z,oe,ae,le){var ue=$.getArea(),pe=ue.x,_e=ue.y,Ce=ue.width,$e=ue.height,xe=oe.get(["lineStyle","width"])||2;pe-=xe/2,_e-=xe/2,Ce+=xe,$e+=xe,pe=Math.floor(pe),Ce=Math.round(Ce);var Ie=new Rect$2({shape:{x:pe,y:_e,width:Ce,height:$e}});if(z){var Fe=$.getBaseAxis(),ze=Fe.isHorizontal(),Ue=Fe.inverse;ze?(Ue&&(Ie.shape.x+=Ce),Ie.shape.width=0):(Ue||(Ie.shape.y+=$e),Ie.shape.height=0);var qe=isFunction(le)?function(At){le(At,Ie)}:null;initProps(Ie,{shape:{width:Ce,height:$e,x:pe,y:_e}},oe,null,ae,qe)}return Ie}function createPolarClipPath($,z,oe){var ae=$.getArea(),le=round$1(ae.r0,1),ue=round$1(ae.r,1),pe=new Sector$1({shape:{cx:round$1($.cx,1),cy:round$1($.cy,1),r0:le,r:ue,startAngle:ae.startAngle,endAngle:ae.endAngle,clockwise:ae.clockwise}});if(z){var _e=$.getBaseAxis().dim==="angle";_e?pe.shape.endAngle=ae.startAngle:pe.shape.r=le,initProps(pe,{shape:{endAngle:ae.endAngle,r:ue}},oe)}return pe}function createClipPath($,z,oe,ae,le){if($){if($.type==="polar")return createPolarClipPath($,z,oe);if($.type==="cartesian2d")return createGridClipPath($,z,oe,ae,le)}else return null;return null}function isCoordinateSystemType($,z){return $.type===z}function isPointsSame($,z){if($.length===z.length){for(var oe=0;oe<$.length;oe++)if($[oe]!==z[oe])return;return!0}}function bboxFromPoints($){for(var z=1/0,oe=1/0,ae=-1/0,le=-1/0,ue=0;ue<$.length;){var pe=$[ue++],_e=$[ue++];isNaN(pe)||(z=Math.min(pe,z),ae=Math.max(pe,ae)),isNaN(_e)||(oe=Math.min(_e,oe),le=Math.max(_e,le))}return[[z,oe],[ae,le]]}function getBoundingDiff($,z){var oe=bboxFromPoints($),ae=oe[0],le=oe[1],ue=bboxFromPoints(z),pe=ue[0],_e=ue[1];return Math.max(Math.abs(ae[0]-pe[0]),Math.abs(ae[1]-pe[1]),Math.abs(le[0]-_e[0]),Math.abs(le[1]-_e[1]))}function getSmooth($){return isNumber($)?$:$?.5:0}function getStackedOnPoints($,z,oe){if(!oe.valueDim)return[];for(var ae=z.count(),le=createFloat32Array(ae*2),ue=0;ue<ae;ue++){var pe=getStackedOnPoint(oe,$,z,ue);le[ue*2]=pe[0],le[ue*2+1]=pe[1]}return le}function turnPointsIntoStep($,z,oe,ae){var le=z.getBaseAxis(),ue=le.dim==="x"||le.dim==="radius"?0:1,pe=[],_e=0,Ce=[],$e=[],xe=[],Ie=[];if(ae){for(_e=0;_e<$.length;_e+=2)!isNaN($[_e])&&!isNaN($[_e+1])&&Ie.push($[_e],$[_e+1]);$=Ie}for(_e=0;_e<$.length-2;_e+=2)switch(xe[0]=$[_e+2],xe[1]=$[_e+3],$e[0]=$[_e],$e[1]=$[_e+1],pe.push($e[0],$e[1]),oe){case"end":Ce[ue]=xe[ue],Ce[1-ue]=$e[1-ue],pe.push(Ce[0],Ce[1]);break;case"middle":var Fe=($e[ue]+xe[ue])/2,ze=[];Ce[ue]=ze[ue]=Fe,Ce[1-ue]=$e[1-ue],ze[1-ue]=xe[1-ue],pe.push(Ce[0],Ce[1]),pe.push(ze[0],ze[1]);break;default:Ce[ue]=$e[ue],Ce[1-ue]=xe[1-ue],pe.push(Ce[0],Ce[1])}return pe.push($[_e++],$[_e++]),pe}function clipColorStops($,z){var oe=[],ae=$.length,le,ue;function pe(xe,Ie,Fe){var ze=xe.coord,Ue=(Fe-ze)/(Ie.coord-ze),qe=lerp(Ue,[xe.color,Ie.color]);return{coord:Fe,color:qe}}for(var _e=0;_e<ae;_e++){var Ce=$[_e],$e=Ce.coord;if($e<0)le=Ce;else if($e>z){ue?oe.push(pe(ue,Ce,z)):le&&oe.push(pe(le,Ce,0),pe(le,Ce,z));break}else le&&(oe.push(pe(le,Ce,0)),le=null),oe.push(Ce),ue=Ce}return oe}function getVisualGradient($,z,oe){var ae=$.getVisual("visualMeta");if(!(!ae||!ae.length||!$.count())&&z.type==="cartesian2d"){for(var le,ue,pe=ae.length-1;pe>=0;pe--){var _e=$.getDimensionInfo(ae[pe].dimension);if(le=_e&&_e.coordDim,le==="x"||le==="y"){ue=ae[pe];break}}if(ue){var Ce=z.getAxis(le),$e=map$2(ue.stops,function(vn){return{coord:Ce.toGlobalCoord(Ce.dataToCoord(vn.value)),color:vn.color}}),xe=$e.length,Ie=ue.outerColors.slice();xe&&$e[0].coord>$e[xe-1].coord&&($e.reverse(),Ie.reverse());var Fe=clipColorStops($e,le==="x"?oe.getWidth():oe.getHeight()),ze=Fe.length;if(!ze&&xe)return $e[0].coord<0?Ie[1]?Ie[1]:$e[xe-1].color:Ie[0]?Ie[0]:$e[0].color;var Ue=10,qe=Fe[0].coord-Ue,At=Fe[ze-1].coord+Ue,Lt=At-qe;if(Lt<.001)return"transparent";each$c(Fe,function(vn){vn.offset=(vn.coord-qe)/Lt}),Fe.push({offset:ze?Fe[ze-1].offset:.5,color:Ie[1]||"transparent"}),Fe.unshift({offset:ze?Fe[0].offset:.5,color:Ie[0]||"transparent"});var hn=new LinearGradient$1(0,0,0,0,Fe,!0);return hn[le]=qe,hn[le+"2"]=At,hn}}}function getIsIgnoreFunc($,z,oe){var ae=$.get("showAllSymbol"),le=ae==="auto";if(!(ae&&!le)){var ue=oe.getAxesByScale("ordinal")[0];if(ue&&!(le&&canShowAllSymbolForCategory(ue,z))){var pe=z.mapDimension(ue.dim),_e={};return each$c(ue.getViewLabels(),function(Ce){var $e=ue.scale.getRawOrdinalNumber(Ce.tickValue);_e[$e]=1}),function(Ce){return!_e.hasOwnProperty(z.get(pe,Ce))}}}}function canShowAllSymbolForCategory($,z){var oe=$.getExtent(),ae=Math.abs(oe[1]-oe[0])/$.scale.count();isNaN(ae)&&(ae=0);for(var le=z.count(),ue=Math.max(1,Math.round(le/5)),pe=0;pe<le;pe+=ue)if(SymbolClz.getSymbolSize(z,pe)[$.isHorizontal()?1:0]*1.5>ae)return!1;return!0}function isPointNull($,z){return isNaN($)||isNaN(z)}function getLastIndexNotNull($){for(var z=$.length/2;z>0&&isPointNull($[z*2-2],$[z*2-1]);z--);return z-1}function getPointAtIndex($,z){return[$[z*2],$[z*2+1]]}function getIndexRange($,z,oe){for(var ae=$.length/2,le=oe==="x"?0:1,ue,pe,_e=0,Ce=-1,$e=0;$e<ae;$e++)if(pe=$[$e*2+le],!(isNaN(pe)||isNaN($[$e*2+1-le]))){if($e===0){ue=pe;continue}if(ue<=z&&pe>=z||ue>=z&&pe<=z){Ce=$e;break}_e=$e,ue=pe}return{range:[_e,Ce],t:(z-ue)/(pe-ue)}}function anyStateShowEndLabel($){if($.get(["endLabel","show"]))return!0;for(var z=0;z<SPECIAL_STATES.length;z++)if($.get([SPECIAL_STATES[z],"endLabel","show"]))return!0;return!1}function createLineClipPath($,z,oe,ae){if(isCoordinateSystemType(z,"cartesian2d")){var le=ae.getModel("endLabel"),ue=le.get("valueAnimation"),pe=ae.getData(),_e={lastFrameIndex:0},Ce=anyStateShowEndLabel(ae)?function(ze,Ue){$._endLabelOnDuring(ze,Ue,pe,_e,ue,le,z)}:null,$e=z.getBaseAxis().isHorizontal(),xe=createGridClipPath(z,oe,ae,function(){var ze=$._endLabel;ze&&oe&&_e.originalX!=null&&ze.attr({x:_e.originalX,y:_e.originalY})},Ce);if(!ae.get("clip",!0)){var Ie=xe.shape,Fe=Math.max(Ie.width,Ie.height);$e?(Ie.y-=Fe,Ie.height+=Fe*2):(Ie.x-=Fe,Ie.width+=Fe*2)}return Ce&&Ce(1,xe),xe}else return createPolarClipPath(z,oe,ae)}function getEndLabelStateSpecified($,z){var oe=z.getBaseAxis(),ae=oe.isHorizontal(),le=oe.inverse,ue=ae?le?"right":"left":"center",pe=ae?"middle":le?"top":"bottom";return{normal:{align:$.get("align")||ue,verticalAlign:$.get("verticalAlign")||pe}}}var LineView=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(){var oe=new Group$3,ae=new SymbolDraw$1;this.group.add(ae.group),this._symbolDraw=ae,this._lineGroup=oe},z.prototype.render=function(oe,ae,le){var ue=this,pe=oe.coordinateSystem,_e=this.group,Ce=oe.getData(),$e=oe.getModel("lineStyle"),xe=oe.getModel("areaStyle"),Ie=Ce.getLayout("points")||[],Fe=pe.type==="polar",ze=this._coordSys,Ue=this._symbolDraw,qe=this._polyline,At=this._polygon,Lt=this._lineGroup,hn=!ae.ssr&&oe.isAnimationEnabled(),vn=!xe.isEmpty(),_n=xe.get("origin"),bn=prepareDataCoordInfo(pe,Ce,_n),Sn=vn&&getStackedOnPoints(pe,Ce,bn),Cn=oe.get("showSymbol"),En=oe.get("connectNulls"),$n=Cn&&!Fe&&getIsIgnoreFunc(oe,Ce,pe),wn=this._data;wn&&wn.eachItemGraphicEl(function(ar,qn){ar.__temp&&(_e.remove(ar),wn.setItemGraphicEl(qn,null))}),Cn||Ue.remove(),_e.add(Lt);var Tn=Fe?!1:oe.get("step"),xn;pe&&pe.getArea&&oe.get("clip",!0)&&(xn=pe.getArea(),xn.width!=null?(xn.x-=.1,xn.y-=.1,xn.width+=.2,xn.height+=.2):xn.r0&&(xn.r0-=.5,xn.r+=.5)),this._clipShapeForSymbol=xn;var kn=getVisualGradient(Ce,pe,le)||Ce.getVisual("style")[Ce.getVisual("drawType")];if(!(qe&&ze.type===pe.type&&Tn===this._step))Cn&&Ue.updateData(Ce,{isIgnore:$n,clipShape:xn,disableAnimation:!0,getSymbolPoint:function(ar){return[Ie[ar*2],Ie[ar*2+1]]}}),hn&&this._initSymbolLabelAnimation(Ce,pe,xn),Tn&&(Ie=turnPointsIntoStep(Ie,pe,Tn,En),Sn&&(Sn=turnPointsIntoStep(Sn,pe,Tn,En))),qe=this._newPolyline(Ie),vn?At=this._newPolygon(Ie,Sn):At&&(Lt.remove(At),At=this._polygon=null),Fe||this._initOrUpdateEndLabel(oe,pe,convertToColorString(kn)),Lt.setClipPath(createLineClipPath(this,pe,!0,oe));else{vn&&!At?At=this._newPolygon(Ie,Sn):At&&!vn&&(Lt.remove(At),At=this._polygon=null),Fe||this._initOrUpdateEndLabel(oe,pe,convertToColorString(kn));var Nn=Lt.getClipPath();if(Nn){var Bn=createLineClipPath(this,pe,!1,oe);initProps(Nn,{shape:Bn.shape},oe)}else Lt.setClipPath(createLineClipPath(this,pe,!0,oe));Cn&&Ue.updateData(Ce,{isIgnore:$n,clipShape:xn,disableAnimation:!0,getSymbolPoint:function(ar){return[Ie[ar*2],Ie[ar*2+1]]}}),(!isPointsSame(this._stackedOnPoints,Sn)||!isPointsSame(this._points,Ie))&&(hn?this._doUpdateAnimation(Ce,Sn,pe,le,Tn,_n,En):(Tn&&(Ie=turnPointsIntoStep(Ie,pe,Tn,En),Sn&&(Sn=turnPointsIntoStep(Sn,pe,Tn,En))),qe.setShape({points:Ie}),At&&At.setShape({points:Ie,stackedOnPoints:Sn})))}var Dn=oe.getModel("emphasis"),In=Dn.get("focus"),Ln=Dn.get("blurScope"),Mn=Dn.get("disabled");if(qe.useStyle(defaults($e.getLineStyle(),{fill:"none",stroke:kn,lineJoin:"bevel"})),setStatesStylesFromModel(qe,oe,"lineStyle"),qe.style.lineWidth>0&&oe.get(["emphasis","lineStyle","width"])==="bolder"){var Vn=qe.getState("emphasis").style;Vn.lineWidth=+qe.style.lineWidth+1}getECData(qe).seriesIndex=oe.seriesIndex,toggleHoverEmphasis(qe,In,Ln,Mn);var Yn=getSmooth(oe.get("smooth")),Fn=oe.get("smoothMonotone");if(qe.setShape({smooth:Yn,smoothMonotone:Fn,connectNulls:En}),At){var Xn=Ce.getCalculationInfo("stackedOnSeries"),sr=0;At.useStyle(defaults(xe.getAreaStyle(),{fill:kn,opacity:.7,lineJoin:"bevel",decal:Ce.getVisual("style").decal})),Xn&&(sr=getSmooth(Xn.get("smooth"))),At.setShape({smooth:Yn,stackedOnSmooth:sr,smoothMonotone:Fn,connectNulls:En}),setStatesStylesFromModel(At,oe,"areaStyle"),getECData(At).seriesIndex=oe.seriesIndex,toggleHoverEmphasis(At,In,Ln,Mn)}var vr=function(ar){ue._changePolyState(ar)};Ce.eachItemGraphicEl(function(ar){ar&&(ar.onHoverStateChange=vr)}),this._polyline.onHoverStateChange=vr,this._data=Ce,this._coordSys=pe,this._stackedOnPoints=Sn,this._points=Ie,this._step=Tn,this._valueOrigin=_n,oe.get("triggerLineEvent")&&(this.packEventData(oe,qe),At&&this.packEventData(oe,At))},z.prototype.packEventData=function(oe,ae){getECData(ae).eventData={componentType:"series",componentSubType:"line",componentIndex:oe.componentIndex,seriesIndex:oe.seriesIndex,seriesName:oe.name,seriesType:"line"}},z.prototype.highlight=function(oe,ae,le,ue){var pe=oe.getData(),_e=queryDataIndex(pe,ue);if(this._changePolyState("emphasis"),!(_e instanceof Array)&&_e!=null&&_e>=0){var Ce=pe.getLayout("points"),$e=pe.getItemGraphicEl(_e);if(!$e){var xe=Ce[_e*2],Ie=Ce[_e*2+1];if(isNaN(xe)||isNaN(Ie)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(xe,Ie))return;var Fe=oe.get("zlevel")||0,ze=oe.get("z")||0;$e=new SymbolClz(pe,_e),$e.x=xe,$e.y=Ie,$e.setZ(Fe,ze);var Ue=$e.getSymbolPath().getTextContent();Ue&&(Ue.zlevel=Fe,Ue.z=ze,Ue.z2=this._polyline.z2+1),$e.__temp=!0,pe.setItemGraphicEl(_e,$e),$e.stopSymbolAnimation(!0),this.group.add($e)}$e.highlight()}else ChartView$1.prototype.highlight.call(this,oe,ae,le,ue)},z.prototype.downplay=function(oe,ae,le,ue){var pe=oe.getData(),_e=queryDataIndex(pe,ue);if(this._changePolyState("normal"),_e!=null&&_e>=0){var Ce=pe.getItemGraphicEl(_e);Ce&&(Ce.__temp?(pe.setItemGraphicEl(_e,null),this.group.remove(Ce)):Ce.downplay())}else ChartView$1.prototype.downplay.call(this,oe,ae,le,ue)},z.prototype._changePolyState=function(oe){var ae=this._polygon;setStatesFlag(this._polyline,oe),ae&&setStatesFlag(ae,oe)},z.prototype._newPolyline=function(oe){var ae=this._polyline;return ae&&this._lineGroup.remove(ae),ae=new ECPolyline({shape:{points:oe},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(ae),this._polyline=ae,ae},z.prototype._newPolygon=function(oe,ae){var le=this._polygon;return le&&this._lineGroup.remove(le),le=new ECPolygon({shape:{points:oe,stackedOnPoints:ae},segmentIgnoreThreshold:2}),this._lineGroup.add(le),this._polygon=le,le},z.prototype._initSymbolLabelAnimation=function(oe,ae,le){var ue,pe,_e=ae.getBaseAxis(),Ce=_e.inverse;ae.type==="cartesian2d"?(ue=_e.isHorizontal(),pe=!1):ae.type==="polar"&&(ue=_e.dim==="angle",pe=!0);var $e=oe.hostModel,xe=$e.get("animationDuration");isFunction(xe)&&(xe=xe(null));var Ie=$e.get("animationDelay")||0,Fe=isFunction(Ie)?Ie(null):Ie;oe.eachItemGraphicEl(function(ze,Ue){var qe=ze;if(qe){var At=[ze.x,ze.y],Lt=void 0,hn=void 0,vn=void 0;if(le)if(pe){var _n=le,bn=ae.pointToCoord(At);ue?(Lt=_n.startAngle,hn=_n.endAngle,vn=-bn[1]/180*Math.PI):(Lt=_n.r0,hn=_n.r,vn=bn[0])}else{var Sn=le;ue?(Lt=Sn.x,hn=Sn.x+Sn.width,vn=ze.x):(Lt=Sn.y+Sn.height,hn=Sn.y,vn=ze.y)}var Cn=hn===Lt?0:(vn-Lt)/(hn-Lt);Ce&&(Cn=1-Cn);var En=isFunction(Ie)?Ie(Ue):xe*Cn+Fe,$n=qe.getSymbolPath(),wn=$n.getTextContent();qe.attr({scaleX:0,scaleY:0}),qe.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:En}),wn&&wn.animateFrom({style:{opacity:0}},{duration:300,delay:En}),$n.disableLabelAnimation=!0}})},z.prototype._initOrUpdateEndLabel=function(oe,ae,le){var ue=oe.getModel("endLabel");if(anyStateShowEndLabel(oe)){var pe=oe.getData(),_e=this._polyline,Ce=pe.getLayout("points");if(!Ce){_e.removeTextContent(),this._endLabel=null;return}var $e=this._endLabel;$e||($e=this._endLabel=new ZRText$1({z2:200}),$e.ignoreClip=!0,_e.setTextContent(this._endLabel),_e.disableLabelAnimation=!0);var xe=getLastIndexNotNull(Ce);xe>=0&&(setLabelStyle(_e,getLabelStatesModels(oe,"endLabel"),{inheritColor:le,labelFetcher:oe,labelDataIndex:xe,defaultText:function(Ie,Fe,ze){return ze!=null?getDefaultInterpolatedLabel(pe,ze):getDefaultLabel(pe,Ie)},enableTextSetter:!0},getEndLabelStateSpecified(ue,ae)),_e.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},z.prototype._endLabelOnDuring=function(oe,ae,le,ue,pe,_e,Ce){var $e=this._endLabel,xe=this._polyline;if($e){oe<1&&ue.originalX==null&&(ue.originalX=$e.x,ue.originalY=$e.y);var Ie=le.getLayout("points"),Fe=le.hostModel,ze=Fe.get("connectNulls"),Ue=_e.get("precision"),qe=_e.get("distance")||0,At=Ce.getBaseAxis(),Lt=At.isHorizontal(),hn=At.inverse,vn=ae.shape,_n=hn?Lt?vn.x:vn.y+vn.height:Lt?vn.x+vn.width:vn.y,bn=(Lt?qe:0)*(hn?-1:1),Sn=(Lt?0:-qe)*(hn?-1:1),Cn=Lt?"x":"y",En=getIndexRange(Ie,_n,Cn),$n=En.range,wn=$n[1]-$n[0],Tn=void 0;if(wn>=1){if(wn>1&&!ze){var xn=getPointAtIndex(Ie,$n[0]);$e.attr({x:xn[0]+bn,y:xn[1]+Sn}),pe&&(Tn=Fe.getRawValue($n[0]))}else{var xn=xe.getPointOn(_n,Cn);xn&&$e.attr({x:xn[0]+bn,y:xn[1]+Sn});var kn=Fe.getRawValue($n[0]),Nn=Fe.getRawValue($n[1]);pe&&(Tn=interpolateRawValues(le,Ue,kn,Nn,En.t))}ue.lastFrameIndex=$n[0]}else{var Bn=oe===1||ue.lastFrameIndex>0?$n[0]:0,xn=getPointAtIndex(Ie,Bn);pe&&(Tn=Fe.getRawValue(Bn)),$e.attr({x:xn[0]+bn,y:xn[1]+Sn})}pe&&labelInner($e).setLabelText(Tn)}},z.prototype._doUpdateAnimation=function(oe,ae,le,ue,pe,_e,Ce){var $e=this._polyline,xe=this._polygon,Ie=oe.hostModel,Fe=lineAnimationDiff(this._data,oe,this._stackedOnPoints,ae,this._coordSys,le,this._valueOrigin),ze=Fe.current,Ue=Fe.stackedOnCurrent,qe=Fe.next,At=Fe.stackedOnNext;if(pe&&(ze=turnPointsIntoStep(Fe.current,le,pe,Ce),Ue=turnPointsIntoStep(Fe.stackedOnCurrent,le,pe,Ce),qe=turnPointsIntoStep(Fe.next,le,pe,Ce),At=turnPointsIntoStep(Fe.stackedOnNext,le,pe,Ce)),getBoundingDiff(ze,qe)>3e3||xe&&getBoundingDiff(Ue,At)>3e3){$e.stopAnimation(),$e.setShape({points:qe}),xe&&(xe.stopAnimation(),xe.setShape({points:qe,stackedOnPoints:At}));return}$e.shape.__points=Fe.current,$e.shape.points=ze;var Lt={shape:{points:qe}};Fe.current!==ze&&(Lt.shape.__points=Fe.next),$e.stopAnimation(),updateProps$1($e,Lt,Ie),xe&&(xe.setShape({points:ze,stackedOnPoints:Ue}),xe.stopAnimation(),updateProps$1(xe,{shape:{stackedOnPoints:At}},Ie),$e.shape.points!==xe.shape.points&&(xe.shape.points=$e.shape.points));for(var hn=[],vn=Fe.status,_n=0;_n<vn.length;_n++){var bn=vn[_n].cmd;if(bn==="="){var Sn=oe.getItemGraphicEl(vn[_n].idx1);Sn&&hn.push({el:Sn,ptIdx:_n})}}$e.animators&&$e.animators.length&&$e.animators[0].during(function(){xe&&xe.dirtyShape();for(var Cn=$e.shape.__points,En=0;En<hn.length;En++){var $n=hn[En].el,wn=hn[En].ptIdx*2;$n.x=Cn[wn],$n.y=Cn[wn+1],$n.markRedraw()}})},z.prototype.remove=function(oe){var ae=this.group,le=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),le&&le.eachItemGraphicEl(function(ue,pe){ue.__temp&&(ae.remove(ue),le.setItemGraphicEl(pe,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},z.type="line",z}(ChartView$1);const LineView$1=LineView;function pointsLayout($,z){return{seriesType:$,plan:createRenderPlanner(),reset:function(oe){var ae=oe.getData(),le=oe.coordinateSystem,ue=oe.pipelineContext,pe=z||ue.large;if(le){var _e=map$2(le.dimensions,function(ze){return ae.mapDimension(ze)}).slice(0,2),Ce=_e.length,$e=ae.getCalculationInfo("stackResultDimension");isDimensionStacked(ae,_e[0])&&(_e[0]=$e),isDimensionStacked(ae,_e[1])&&(_e[1]=$e);var xe=ae.getStore(),Ie=ae.getDimensionIndex(_e[0]),Fe=ae.getDimensionIndex(_e[1]);return Ce&&{progress:function(ze,Ue){for(var qe=ze.end-ze.start,At=pe&&createFloat32Array(qe*Ce),Lt=[],hn=[],vn=ze.start,_n=0;vn<ze.end;vn++){var bn=void 0;if(Ce===1){var Sn=xe.get(Ie,vn);bn=le.dataToPoint(Sn,null,hn)}else Lt[0]=xe.get(Ie,vn),Lt[1]=xe.get(Fe,vn),bn=le.dataToPoint(Lt,null,hn);pe?(At[_n++]=bn[0],At[_n++]=bn[1]):Ue.setItemLayout(vn,bn.slice())}pe&&Ue.setLayout("points",At)}}}}}}var samplers={average:function($){for(var z=0,oe=0,ae=0;ae<$.length;ae++)isNaN($[ae])||(z+=$[ae],oe++);return oe===0?NaN:z/oe},sum:function($){for(var z=0,oe=0;oe<$.length;oe++)z+=$[oe]||0;return z},max:function($){for(var z=-1/0,oe=0;oe<$.length;oe++)$[oe]>z&&(z=$[oe]);return isFinite(z)?z:NaN},min:function($){for(var z=1/0,oe=0;oe<$.length;oe++)$[oe]<z&&(z=$[oe]);return isFinite(z)?z:NaN},nearest:function($){return $[0]}},indexSampler=function($){return Math.round($.length/2)};function dataSample($){return{seriesType:$,reset:function(z,oe,ae){var le=z.getData(),ue=z.get("sampling"),pe=z.coordinateSystem,_e=le.count();if(_e>10&&pe.type==="cartesian2d"&&ue){var Ce=pe.getBaseAxis(),$e=pe.getOtherAxis(Ce),xe=Ce.getExtent(),Ie=ae.getDevicePixelRatio(),Fe=Math.abs(xe[1]-xe[0])*(Ie||1),ze=Math.round(_e/Fe);if(isFinite(ze)&&ze>1){ue==="lttb"&&z.setData(le.lttbDownSample(le.mapDimension($e.dim),1/ze));var Ue=void 0;isString(ue)?Ue=samplers[ue]:isFunction(ue)&&(Ue=ue),Ue&&z.setData(le.downSample(le.mapDimension($e.dim),1/ze,Ue,indexSampler))}}}}}function install$j($){$.registerChartView(LineView$1),$.registerSeriesModel(LineSeries),$.registerLayout(pointsLayout("line",!0)),$.registerVisual({seriesType:"line",reset:function(z){var oe=z.getData(),ae=z.getModel("lineStyle").getLineStyle();ae&&!ae.stroke&&(ae.stroke=oe.getVisual("style").fill),oe.setVisual("legendLineStyle",ae)}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.getInitialData=function(oe,ae){return createSeriesData(null,this,{useEncodeDefaulter:!0})},z.prototype.getMarkerPosition=function(oe,ae,le){var ue=this.coordinateSystem;if(ue&&ue.clampData){var pe=ue.clampData(oe),_e=ue.dataToPoint(pe);if(le)each$c(ue.getAxes(),function(Fe,ze){if(Fe.type==="category"&&ae!=null){var Ue=Fe.getTicksCoords(),qe=pe[ze],At=ae[ze]==="x1"||ae[ze]==="y1";if(At&&(qe+=1),Ue.length<2)return;if(Ue.length===2){_e[ze]=Fe.toGlobalCoord(Fe.getExtent()[At?1:0]);return}for(var Lt=void 0,hn=void 0,vn=1,_n=0;_n<Ue.length;_n++){var bn=Ue[_n].coord,Sn=_n===Ue.length-1?Ue[_n-1].tickValue+vn:Ue[_n].tickValue;if(Sn===qe){hn=bn;break}else if(Sn<qe)Lt=bn;else if(Lt!=null&&Sn>qe){hn=(bn+Lt)/2;break}_n===1&&(vn=Sn-Ue[0].tickValue)}hn==null&&(Lt?Lt&&(hn=Ue[Ue.length-1].coord):hn=Ue[0].coord),_e[ze]=Fe.toGlobalCoord(hn)}});else{var Ce=this.getData(),$e=Ce.getLayout("offset"),xe=Ce.getLayout("size"),Ie=ue.getBaseAxis().isHorizontal()?0:1;_e[Ie]+=$e+xe/2}return _e}return[NaN,NaN]},z.type="series.__base_bar__",z.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},z}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},z.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},z.prototype.getProgressiveThreshold=function(){var oe=this.get("progressiveThreshold"),ae=this.get("largeThreshold");return ae>oe&&(oe=ae),oe},z.prototype.brushSelector=function(oe,ae,le){return le.rect(ae.getItemLayout(oe))},z.type="series.bar",z.dependencies=["grid","polar"],z.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),z}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function $(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return $}(),SausagePath=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="sausage",ae}return z.prototype.getDefaultShape=function(){return new SausageShape},z.prototype.buildPath=function(oe,ae){var le=ae.cx,ue=ae.cy,pe=Math.max(ae.r0||0,0),_e=Math.max(ae.r,0),Ce=(_e-pe)*.5,$e=pe+Ce,xe=ae.startAngle,Ie=ae.endAngle,Fe=ae.clockwise,ze=Math.PI*2,Ue=Fe?Ie-xe<ze:xe-Ie<ze;Ue||(xe=Ie-(Fe?ze:-ze));var qe=Math.cos(xe),At=Math.sin(xe),Lt=Math.cos(Ie),hn=Math.sin(Ie);Ue?(oe.moveTo(qe*pe+le,At*pe+ue),oe.arc(qe*$e+le,At*$e+ue,Ce,-Math.PI+xe,xe,!Fe)):oe.moveTo(qe*_e+le,At*_e+ue),oe.arc(le,ue,_e,xe,Ie,!Fe),oe.arc(Lt*$e+le,hn*$e+ue,Ce,Ie-Math.PI*2,Ie-Math.PI,!Fe),pe!==0&&oe.arc(le,ue,pe,Ie,xe,Fe)},z}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition($,z){z=z||{};var oe=z.isRoundCap;return function(ae,le,ue){var pe=le.position;if(!pe||pe instanceof Array)return calculateTextPosition(ae,le,ue);var _e=$(pe),Ce=le.distance!=null?le.distance:5,$e=this.shape,xe=$e.cx,Ie=$e.cy,Fe=$e.r,ze=$e.r0,Ue=(Fe+ze)/2,qe=$e.startAngle,At=$e.endAngle,Lt=(qe+At)/2,hn=oe?Math.abs(Fe-ze)/2:0,vn=Math.cos,_n=Math.sin,bn=xe+Fe*vn(qe),Sn=Ie+Fe*_n(qe),Cn="left",En="top";switch(_e){case"startArc":bn=xe+(ze-Ce)*vn(Lt),Sn=Ie+(ze-Ce)*_n(Lt),Cn="center",En="top";break;case"insideStartArc":bn=xe+(ze+Ce)*vn(Lt),Sn=Ie+(ze+Ce)*_n(Lt),Cn="center",En="bottom";break;case"startAngle":bn=xe+Ue*vn(qe)+adjustAngleDistanceX(qe,Ce+hn,!1),Sn=Ie+Ue*_n(qe)+adjustAngleDistanceY(qe,Ce+hn,!1),Cn="right",En="middle";break;case"insideStartAngle":bn=xe+Ue*vn(qe)+adjustAngleDistanceX(qe,-Ce+hn,!1),Sn=Ie+Ue*_n(qe)+adjustAngleDistanceY(qe,-Ce+hn,!1),Cn="left",En="middle";break;case"middle":bn=xe+Ue*vn(Lt),Sn=Ie+Ue*_n(Lt),Cn="center",En="middle";break;case"endArc":bn=xe+(Fe+Ce)*vn(Lt),Sn=Ie+(Fe+Ce)*_n(Lt),Cn="center",En="bottom";break;case"insideEndArc":bn=xe+(Fe-Ce)*vn(Lt),Sn=Ie+(Fe-Ce)*_n(Lt),Cn="center",En="top";break;case"endAngle":bn=xe+Ue*vn(At)+adjustAngleDistanceX(At,Ce+hn,!0),Sn=Ie+Ue*_n(At)+adjustAngleDistanceY(At,Ce+hn,!0),Cn="left",En="middle";break;case"insideEndAngle":bn=xe+Ue*vn(At)+adjustAngleDistanceX(At,-Ce+hn,!0),Sn=Ie+Ue*_n(At)+adjustAngleDistanceY(At,-Ce+hn,!0),Cn="right",En="middle";break;default:return calculateTextPosition(ae,le,ue)}return ae=ae||{},ae.x=bn,ae.y=Sn,ae.align=Cn,ae.verticalAlign=En,ae}}function setSectorTextRotation($,z,oe,ae){if(isNumber(ae)){$.setTextConfig({rotation:ae});return}else if(isArray$1(z)){$.setTextConfig({rotation:0});return}var le=$.shape,ue=le.clockwise?le.startAngle:le.endAngle,pe=le.clockwise?le.endAngle:le.startAngle,_e=(ue+pe)/2,Ce,$e=oe(z);switch($e){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":Ce=_e;break;case"startAngle":case"insideStartAngle":Ce=ue;break;case"endAngle":case"insideEndAngle":Ce=pe;break;default:$.setTextConfig({rotation:0});return}var xe=Math.PI*1.5-Ce;$e==="middle"&&xe>Math.PI/2&&xe<Math.PI*1.5&&(xe-=Math.PI),$.setTextConfig({rotation:xe})}function adjustAngleDistanceX($,z,oe){return z*Math.sin($)*(oe?-1:1)}function adjustAngleDistanceY($,z,oe){return z*Math.cos($)*(oe?1:-1)}function getSectorCornerRadius($,z,oe){var ae=$.get("borderRadius");if(ae==null)return oe?{cornerRadius:0}:null;isArray$1(ae)||(ae=[ae,ae,ae,ae]);var le=Math.abs(z.r||0-z.r0||0);return{cornerRadius:map$2(ae,function(ue){return parsePercent$1(ue,le)})}}var mathMax$2=Math.max,mathMin$2=Math.min;function getClipArea($,z){var oe=$.getArea&&$.getArea();if(isCoordinateSystemType($,"cartesian2d")){var ae=$.getBaseAxis();if(ae.type!=="category"||!ae.onBand){var le=z.getLayout("bandWidth");ae.isHorizontal()?(oe.x-=le,oe.width+=le*2):(oe.y-=le,oe.height+=le*2)}}return oe}var BarView=function($){__extends(z,$);function z(){var oe=$.call(this)||this;return oe.type=z.type,oe._isFirstFrame=!0,oe}return z.prototype.render=function(oe,ae,le,ue){this._model=oe,this._removeOnRenderedListener(le),this._updateDrawMode(oe);var pe=oe.get("coordinateSystem");(pe==="cartesian2d"||pe==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(oe,ae,le):this._renderNormal(oe,ae,le,ue))},z.prototype.incrementalPrepareRender=function(oe){this._clear(),this._updateDrawMode(oe),this._updateLargeClip(oe)},z.prototype.incrementalRender=function(oe,ae){this._progressiveEls=[],this._incrementalRenderLarge(oe,ae)},z.prototype.eachRendered=function(oe){traverseElements(this._progressiveEls||this.group,oe)},z.prototype._updateDrawMode=function(oe){var ae=oe.pipelineContext.large;(this._isLargeDraw==null||ae!==this._isLargeDraw)&&(this._isLargeDraw=ae,this._clear())},z.prototype._renderNormal=function(oe,ae,le,ue){var pe=this.group,_e=oe.getData(),Ce=this._data,$e=oe.coordinateSystem,xe=$e.getBaseAxis(),Ie;$e.type==="cartesian2d"?Ie=xe.isHorizontal():$e.type==="polar"&&(Ie=xe.dim==="angle");var Fe=oe.isAnimationEnabled()?oe:null,ze=shouldRealtimeSort(oe,$e);ze&&this._enableRealtimeSort(ze,_e,le);var Ue=oe.get("clip",!0)||ze,qe=getClipArea($e,_e);pe.removeClipPath();var At=oe.get("roundCap",!0),Lt=oe.get("showBackground",!0),hn=oe.getModel("backgroundStyle"),vn=hn.get("borderRadius")||0,_n=[],bn=this._backgroundEls,Sn=ue&&ue.isInitSort,Cn=ue&&ue.type==="changeAxisOrder";function En(Tn){var xn=getLayout[$e.type](_e,Tn),kn=createBackgroundEl($e,Ie,xn);return kn.useStyle(hn.getItemStyle()),$e.type==="cartesian2d"?kn.setShape("r",vn):kn.setShape("cornerRadius",vn),_n[Tn]=kn,kn}_e.diff(Ce).add(function(Tn){var xn=_e.getItemModel(Tn),kn=getLayout[$e.type](_e,Tn,xn);if(Lt&&En(Tn),!(!_e.hasValue(Tn)||!isValidLayout[$e.type](kn))){var Nn=!1;Ue&&(Nn=clip[$e.type](qe,kn));var Bn=elementCreator[$e.type](oe,_e,Tn,kn,Ie,Fe,xe.model,!1,At);ze&&(Bn.forceLabelAnimation=!0),updateStyle(Bn,_e,Tn,xn,kn,oe,Ie,$e.type==="polar"),Sn?Bn.attr({shape:kn}):ze?updateRealtimeAnimation(ze,Fe,Bn,kn,Tn,Ie,!1,!1):initProps(Bn,{shape:kn},oe,Tn),_e.setItemGraphicEl(Tn,Bn),pe.add(Bn),Bn.ignore=Nn}}).update(function(Tn,xn){var kn=_e.getItemModel(Tn),Nn=getLayout[$e.type](_e,Tn,kn);if(Lt){var Bn=void 0;bn.length===0?Bn=En(xn):(Bn=bn[xn],Bn.useStyle(hn.getItemStyle()),$e.type==="cartesian2d"?Bn.setShape("r",vn):Bn.setShape("cornerRadius",vn),_n[Tn]=Bn);var Dn=getLayout[$e.type](_e,Tn),In=createBackgroundShape(Ie,Dn,$e);updateProps$1(Bn,{shape:In},Fe,Tn)}var Ln=Ce.getItemGraphicEl(xn);if(!_e.hasValue(Tn)||!isValidLayout[$e.type](Nn)){pe.remove(Ln);return}var Mn=!1;if(Ue&&(Mn=clip[$e.type](qe,Nn),Mn&&pe.remove(Ln)),Ln?saveOldStyle(Ln):Ln=elementCreator[$e.type](oe,_e,Tn,Nn,Ie,Fe,xe.model,!!Ln,At),ze&&(Ln.forceLabelAnimation=!0),Cn){var Vn=Ln.getTextContent();if(Vn){var Yn=labelInner(Vn);Yn.prevValue!=null&&(Yn.prevValue=Yn.value)}}else updateStyle(Ln,_e,Tn,kn,Nn,oe,Ie,$e.type==="polar");Sn?Ln.attr({shape:Nn}):ze?updateRealtimeAnimation(ze,Fe,Ln,Nn,Tn,Ie,!0,Cn):updateProps$1(Ln,{shape:Nn},oe,Tn,null),_e.setItemGraphicEl(Tn,Ln),Ln.ignore=Mn,pe.add(Ln)}).remove(function(Tn){var xn=Ce.getItemGraphicEl(Tn);xn&&removeElementWithFadeOut(xn,oe,Tn)}).execute();var $n=this._backgroundGroup||(this._backgroundGroup=new Group$3);$n.removeAll();for(var wn=0;wn<_n.length;++wn)$n.add(_n[wn]);pe.add($n),this._backgroundEls=_n,this._data=_e},z.prototype._renderLarge=function(oe,ae,le){this._clear(),createLarge(oe,this.group),this._updateLargeClip(oe)},z.prototype._incrementalRenderLarge=function(oe,ae){this._removeBackground(),createLarge(ae,this.group,this._progressiveEls,!0)},z.prototype._updateLargeClip=function(oe){var ae=oe.get("clip",!0)&&createClipPath(oe.coordinateSystem,!1,oe),le=this.group;ae?le.setClipPath(ae):le.removeClipPath()},z.prototype._enableRealtimeSort=function(oe,ae,le){var ue=this;if(ae.count()){var pe=oe.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(ae,oe,le),this._isFirstFrame=!1;else{var _e=function(Ce){var $e=ae.getItemGraphicEl(Ce),xe=$e&&$e.shape;return xe&&Math.abs(pe.isHorizontal()?xe.height:xe.width)||0};this._onRendered=function(){ue._updateSortWithinSameData(ae,_e,pe,le)},le.getZr().on("rendered",this._onRendered)}}},z.prototype._dataSort=function(oe,ae,le){var ue=[];return oe.each(oe.mapDimension(ae.dim),function(pe,_e){var Ce=le(_e);Ce=Ce??NaN,ue.push({dataIndex:_e,mappedValue:Ce,ordinalNumber:pe})}),ue.sort(function(pe,_e){return _e.mappedValue-pe.mappedValue}),{ordinalNumbers:map$2(ue,function(pe){return pe.ordinalNumber})}},z.prototype._isOrderChangedWithinSameData=function(oe,ae,le){for(var ue=le.scale,pe=oe.mapDimension(le.dim),_e=Number.MAX_VALUE,Ce=0,$e=ue.getOrdinalMeta().categories.length;Ce<$e;++Ce){var xe=oe.rawIndexOf(pe,ue.getRawOrdinalNumber(Ce)),Ie=xe<0?Number.MIN_VALUE:ae(oe.indexOfRawIndex(xe));if(Ie>_e)return!0;_e=Ie}return!1},z.prototype._isOrderDifferentInView=function(oe,ae){for(var le=ae.scale,ue=le.getExtent(),pe=Math.max(0,ue[0]),_e=Math.min(ue[1],le.getOrdinalMeta().categories.length-1);pe<=_e;++pe)if(oe.ordinalNumbers[pe]!==le.getRawOrdinalNumber(pe))return!0},z.prototype._updateSortWithinSameData=function(oe,ae,le,ue){if(this._isOrderChangedWithinSameData(oe,ae,le)){var pe=this._dataSort(oe,le,ae);this._isOrderDifferentInView(pe,le)&&(this._removeOnRenderedListener(ue),ue.dispatchAction({type:"changeAxisOrder",componentType:le.dim+"Axis",axisId:le.index,sortInfo:pe}))}},z.prototype._dispatchInitSort=function(oe,ae,le){var ue=ae.baseAxis,pe=this._dataSort(oe,ue,function(_e){return oe.get(oe.mapDimension(ae.otherAxis.dim),_e)});le.dispatchAction({type:"changeAxisOrder",componentType:ue.dim+"Axis",isInitSort:!0,axisId:ue.index,sortInfo:pe})},z.prototype.remove=function(oe,ae){this._clear(this._model),this._removeOnRenderedListener(ae)},z.prototype.dispose=function(oe,ae){this._removeOnRenderedListener(ae)},z.prototype._removeOnRenderedListener=function(oe){this._onRendered&&(oe.getZr().off("rendered",this._onRendered),this._onRendered=null)},z.prototype._clear=function(oe){var ae=this.group,le=this._data;oe&&oe.isAnimationEnabled()&&le&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],le.eachItemGraphicEl(function(ue){removeElementWithFadeOut(ue,oe,getECData(ue).dataIndex)})):ae.removeAll(),this._data=null,this._isFirstFrame=!0},z.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},z.type="bar",z}(ChartView$1),clip={cartesian2d:function($,z){var oe=z.width<0?-1:1,ae=z.height<0?-1:1;oe<0&&(z.x+=z.width,z.width=-z.width),ae<0&&(z.y+=z.height,z.height=-z.height);var le=$.x+$.width,ue=$.y+$.height,pe=mathMax$2(z.x,$.x),_e=mathMin$2(z.x+z.width,le),Ce=mathMax$2(z.y,$.y),$e=mathMin$2(z.y+z.height,ue),xe=_e<pe,Ie=$e<Ce;return z.x=xe&&pe>le?_e:pe,z.y=Ie&&Ce>ue?$e:Ce,z.width=xe?0:_e-pe,z.height=Ie?0:$e-Ce,oe<0&&(z.x+=z.width,z.width=-z.width),ae<0&&(z.y+=z.height,z.height=-z.height),xe||Ie},polar:function($,z){var oe=z.r0<=z.r?1:-1;if(oe<0){var ae=z.r;z.r=z.r0,z.r0=ae}var le=mathMin$2(z.r,$.r),ue=mathMax$2(z.r0,$.r0);z.r=le,z.r0=ue;var pe=le-ue<0;if(oe<0){var ae=z.r;z.r=z.r0,z.r0=ae}return pe}},elementCreator={cartesian2d:function($,z,oe,ae,le,ue,pe,_e,Ce){var $e=new Rect$2({shape:extend({},ae),z2:1});if($e.__dataIndex=oe,$e.name="item",ue){var xe=$e.shape,Ie=le?"height":"width";xe[Ie]=0}return $e},polar:function($,z,oe,ae,le,ue,pe,_e,Ce){var $e=!le&&Ce?Sausage:Sector$1,xe=new $e({shape:ae,z2:1});xe.name="item";var Ie=createPolarPositionMapping(le);if(xe.calculateTextPosition=createSectorCalculateTextPosition(Ie,{isRoundCap:$e===Sausage}),ue){var Fe=xe.shape,ze=le?"r":"endAngle",Ue={};Fe[ze]=le?ae.r0:ae.startAngle,Ue[ze]=ae[ze],(_e?updateProps$1:initProps)(xe,{shape:Ue},ue)}return xe}};function shouldRealtimeSort($,z){var oe=$.get("realtimeSort",!0),ae=z.getBaseAxis();if(oe&&ae.type==="category"&&z.type==="cartesian2d")return{baseAxis:ae,otherAxis:z.getOtherAxis(ae)}}function updateRealtimeAnimation($,z,oe,ae,le,ue,pe,_e){var Ce,$e;ue?($e={x:ae.x,width:ae.width},Ce={y:ae.y,height:ae.height}):($e={y:ae.y,height:ae.height},Ce={x:ae.x,width:ae.width}),_e||(pe?updateProps$1:initProps)(oe,{shape:Ce},z,le,null);var xe=z?$.baseAxis.model:null;(pe?updateProps$1:initProps)(oe,{shape:$e},xe,le)}function checkPropertiesNotValid($,z){for(var oe=0;oe<z.length;oe++)if(!isFinite($[z[oe]]))return!0;return!1}var rectPropties=["x","y","width","height"],polarPropties=["cx","cy","r","startAngle","endAngle"],isValidLayout={cartesian2d:function($){return!checkPropertiesNotValid($,rectPropties)},polar:function($){return!checkPropertiesNotValid($,polarPropties)}},getLayout={cartesian2d:function($,z,oe){var ae=$.getItemLayout(z),le=oe?getLineWidth(oe,ae):0,ue=ae.width>0?1:-1,pe=ae.height>0?1:-1;return{x:ae.x+ue*le/2,y:ae.y+pe*le/2,width:ae.width-ue*le,height:ae.height-pe*le}},polar:function($,z,oe){var ae=$.getItemLayout(z);return{cx:ae.cx,cy:ae.cy,r0:ae.r0,r:ae.r,startAngle:ae.startAngle,endAngle:ae.endAngle,clockwise:ae.clockwise}}};function isZeroOnPolar($){return $.startAngle!=null&&$.endAngle!=null&&$.startAngle===$.endAngle}function createPolarPositionMapping($){return function(z){var oe=z?"Arc":"Angle";return function(ae){switch(ae){case"start":case"insideStart":case"end":case"insideEnd":return ae+oe;default:return ae}}}($)}function updateStyle($,z,oe,ae,le,ue,pe,_e){var Ce=z.getItemVisual(oe,"style");if(_e){if(!ue.get("roundCap")){var xe=$.shape,Ie=getSectorCornerRadius(ae.getModel("itemStyle"),xe,!0);extend(xe,Ie),$.setShape(xe)}}else{var $e=ae.get(["itemStyle","borderRadius"])||0;$.setShape("r",$e)}$.useStyle(Ce);var Fe=ae.getShallow("cursor");Fe&&$.attr("cursor",Fe);var ze=_e?pe?le.r>=le.r0?"endArc":"startArc":le.endAngle>=le.startAngle?"endAngle":"startAngle":pe?le.height>=0?"bottom":"top":le.width>=0?"right":"left",Ue=getLabelStatesModels(ae);setLabelStyle($,Ue,{labelFetcher:ue,labelDataIndex:oe,defaultText:getDefaultLabel(ue.getData(),oe),inheritColor:Ce.fill,defaultOpacity:Ce.opacity,defaultOutsidePosition:ze});var qe=$.getTextContent();if(_e&&qe){var At=ae.get(["label","position"]);$.textConfig.inside=At==="middle"?!0:null,setSectorTextRotation($,At==="outside"?ze:At,createPolarPositionMapping(pe),ae.get(["label","rotate"]))}setLabelValueAnimation(qe,Ue,ue.getRawValue(oe),function(hn){return getDefaultInterpolatedLabel(z,hn)});var Lt=ae.getModel(["emphasis"]);toggleHoverEmphasis($,Lt.get("focus"),Lt.get("blurScope"),Lt.get("disabled")),setStatesStylesFromModel($,ae),isZeroOnPolar(le)&&($.style.fill="none",$.style.stroke="none",each$c($.states,function(hn){hn.style&&(hn.style.fill=hn.style.stroke="none")}))}function getLineWidth($,z){var oe=$.get(["itemStyle","borderColor"]);if(!oe||oe==="none")return 0;var ae=$.get(["itemStyle","borderWidth"])||0,le=isNaN(z.width)?Number.MAX_VALUE:Math.abs(z.width),ue=isNaN(z.height)?Number.MAX_VALUE:Math.abs(z.height);return Math.min(ae,le,ue)}var LagePathShape=function(){function $(){}return $}(),LargePath=function($){__extends(z,$);function z(oe){var ae=$.call(this,oe)||this;return ae.type="largeBar",ae}return z.prototype.getDefaultShape=function(){return new LagePathShape},z.prototype.buildPath=function(oe,ae){for(var le=ae.points,ue=this.baseDimIdx,pe=1-this.baseDimIdx,_e=[],Ce=[],$e=this.barWidth,xe=0;xe<le.length;xe+=3)Ce[ue]=$e,Ce[pe]=le[xe+2],_e[ue]=le[xe+ue],_e[pe]=le[xe+pe],oe.rect(_e[0],_e[1],Ce[0],Ce[1])},z}(Path$1);function createLarge($,z,oe,ae){var le=$.getData(),ue=le.getLayout("valueAxisHorizontal")?1:0,pe=le.getLayout("largeDataIndices"),_e=le.getLayout("size"),Ce=$.getModel("backgroundStyle"),$e=le.getLayout("largeBackgroundPoints");if($e){var xe=new LargePath({shape:{points:$e},incremental:!!ae,silent:!0,z2:0});xe.baseDimIdx=ue,xe.largeDataIndices=pe,xe.barWidth=_e,xe.useStyle(Ce.getItemStyle()),z.add(xe),oe&&oe.push(xe)}var Ie=new LargePath({shape:{points:le.getLayout("largePoints")},incremental:!!ae,ignoreCoarsePointer:!0,z2:1});Ie.baseDimIdx=ue,Ie.largeDataIndices=pe,Ie.barWidth=_e,z.add(Ie),Ie.useStyle(le.getVisual("style")),getECData(Ie).seriesIndex=$.seriesIndex,$.get("silent")||(Ie.on("mousedown",largePathUpdateDataIndex),Ie.on("mousemove",largePathUpdateDataIndex)),oe&&oe.push(Ie)}var largePathUpdateDataIndex=throttle(function($){var z=this,oe=largePathFindDataIndex(z,$.offsetX,$.offsetY);getECData(z).dataIndex=oe>=0?oe:null},30,!1);function largePathFindDataIndex($,z,oe){for(var ae=$.baseDimIdx,le=1-ae,ue=$.shape.points,pe=$.largeDataIndices,_e=[],Ce=[],$e=$.barWidth,xe=0,Ie=ue.length/3;xe<Ie;xe++){var Fe=xe*3;if(Ce[ae]=$e,Ce[le]=ue[Fe+2],_e[ae]=ue[Fe+ae],_e[le]=ue[Fe+le],Ce[le]<0&&(_e[le]+=Ce[le],Ce[le]=-Ce[le]),z>=_e[0]&&z<=_e[0]+Ce[0]&&oe>=_e[1]&&oe<=_e[1]+Ce[1])return pe[xe]}return-1}function createBackgroundShape($,z,oe){if(isCoordinateSystemType(oe,"cartesian2d")){var ae=z,le=oe.getArea();return{x:$?ae.x:le.x,y:$?le.y:ae.y,width:$?ae.width:le.width,height:$?le.height:ae.height}}else{var le=oe.getArea(),ue=z;return{cx:le.cx,cy:le.cy,r0:$?le.r0:ue.r0,r:$?le.r:ue.r,startAngle:$?ue.startAngle:0,endAngle:$?ue.endAngle:Math.PI*2}}}function createBackgroundEl($,z,oe){var ae=$.type==="polar"?Sector$1:Rect$2;return new ae({shape:createBackgroundShape(z,oe,$),silent:!0,z2:0})}const BarView$1=BarView;function install$i($){$.registerChartView(BarView$1),$.registerSeriesModel(BarSeries),$.registerLayout($.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),$.registerLayout($.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),$.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(z,oe){var ae=z.componentType||"series";oe.eachComponent({mainType:ae,query:z},function(le){z.sortInfo&&le.axis.setCategorySortInfo(z.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect($,z){return getLayoutRect($.getBoxLayoutParams(),{width:z.getWidth(),height:z.getHeight()})}function getBasicPieLayout($,z){var oe=getViewRect($,z),ae=$.get("center"),le=$.get("radius");isArray$1(le)||(le=[0,le]);var ue=parsePercent(oe.width,z.getWidth()),pe=parsePercent(oe.height,z.getHeight()),_e=Math.min(ue,pe),Ce=parsePercent(le[0],_e/2),$e=parsePercent(le[1],_e/2),xe,Ie,Fe=$.coordinateSystem;if(Fe){var ze=Fe.dataToPoint(ae);xe=ze[0]||0,Ie=ze[1]||0}else isArray$1(ae)||(ae=[ae,ae]),xe=parsePercent(ae[0],ue)+oe.x,Ie=parsePercent(ae[1],pe)+oe.y;return{cx:xe,cy:Ie,r0:Ce,r:$e}}function pieLayout($,z,oe){z.eachSeriesByType($,function(ae){var le=ae.getData(),ue=le.mapDimension("value"),pe=getViewRect(ae,oe),_e=getBasicPieLayout(ae,oe),Ce=_e.cx,$e=_e.cy,xe=_e.r,Ie=_e.r0,Fe=-ae.get("startAngle")*RADIAN$1,ze=ae.get("minAngle")*RADIAN$1,Ue=0;le.each(ue,function(wn){!isNaN(wn)&&Ue++});var qe=le.getSum(ue),At=Math.PI/(qe||Ue)*2,Lt=ae.get("clockwise"),hn=ae.get("roseType"),vn=ae.get("stillShowZeroSum"),_n=le.getDataExtent(ue);_n[0]=0;var bn=PI2,Sn=0,Cn=Fe,En=Lt?1:-1;if(le.setLayout({viewRect:pe,r:xe}),le.each(ue,function(wn,Tn){var xn;if(isNaN(wn)){le.setItemLayout(Tn,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:Lt,cx:Ce,cy:$e,r0:Ie,r:hn?NaN:xe});return}hn!=="area"?xn=qe===0&&vn?At:wn*At:xn=PI2/Ue,xn<ze?(xn=ze,bn-=ze):Sn+=wn;var kn=Cn+En*xn;le.setItemLayout(Tn,{angle:xn,startAngle:Cn,endAngle:kn,clockwise:Lt,cx:Ce,cy:$e,r0:Ie,r:hn?linearMap$2(wn,_n,[Ie,xe]):xe}),Cn=kn}),bn<PI2&&Ue)if(bn<=.001){var $n=PI2/Ue;le.each(ue,function(wn,Tn){if(!isNaN(wn)){var xn=le.getItemLayout(Tn);xn.angle=$n,xn.startAngle=Fe+En*Tn*$n,xn.endAngle=Fe+En*(Tn+1)*$n}})}else At=bn/Sn,Cn=Fe,le.each(ue,function(wn,Tn){if(!isNaN(wn)){var xn=le.getItemLayout(Tn),kn=xn.angle===ze?ze:wn*At;xn.startAngle=Cn,xn.endAngle=Cn+En*kn,Cn+=En*kn}})})}function dataFilter($){return{seriesType:$,reset:function(z,oe){var ae=oe.findComponents({mainType:"legend"});if(!(!ae||!ae.length)){var le=z.getData();le.filterSelf(function(ue){for(var pe=le.getName(ue),_e=0;_e<ae.length;_e++)if(!ae[_e].isSelected(pe))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide($,z,oe,ae,le,ue,pe,_e,Ce,$e){if($.length<2)return;function xe(qe){for(var At=qe.rB,Lt=At*At,hn=0;hn<qe.list.length;hn++){var vn=qe.list[hn],_n=Math.abs(vn.label.y-oe),bn=ae+vn.len,Sn=bn*bn,Cn=Math.sqrt((1-Math.abs(_n*_n/Lt))*Sn),En=z+(Cn+vn.len2)*le,$n=En-vn.label.x,wn=vn.targetTextWidth-$n*le;constrainTextWidth(vn,wn,!0),vn.label.x=En}}function Ie(qe){for(var At={list:[],maxY:0},Lt={list:[],maxY:0},hn=0;hn<qe.length;hn++)if(qe[hn].labelAlignTo==="none"){var vn=qe[hn],_n=vn.label.y>oe?Lt:At,bn=Math.abs(vn.label.y-oe);if(bn>=_n.maxY){var Sn=vn.label.x-z-vn.len2*le,Cn=ae+vn.len,En=Math.abs(Sn)<Cn?Math.sqrt(bn*bn/(1-Sn*Sn/Cn/Cn)):Cn;_n.rB=En,_n.maxY=bn}_n.list.push(vn)}xe(At),xe(Lt)}for(var Fe=$.length,ze=0;ze<Fe;ze++)if($[ze].position==="outer"&&$[ze].labelAlignTo==="labelLine"){var Ue=$[ze].label.x-$e;$[ze].linePoints[1][0]+=Ue,$[ze].label.x=$e}shiftLayoutOnY($,Ce,Ce+pe)&&Ie($)}function avoidOverlap($,z,oe,ae,le,ue,pe,_e){for(var Ce=[],$e=[],xe=Number.MAX_VALUE,Ie=-Number.MAX_VALUE,Fe=0;Fe<$.length;Fe++){var ze=$[Fe].label;isPositionCenter($[Fe])||(ze.x<z?(xe=Math.min(xe,ze.x),Ce.push($[Fe])):(Ie=Math.max(Ie,ze.x),$e.push($[Fe])))}for(var Fe=0;Fe<$.length;Fe++){var Ue=$[Fe];if(!isPositionCenter(Ue)&&Ue.linePoints){if(Ue.labelStyleWidth!=null)continue;var ze=Ue.label,qe=Ue.linePoints,At=void 0;Ue.labelAlignTo==="edge"?ze.x<z?At=qe[2][0]-Ue.labelDistance-pe-Ue.edgeDistance:At=pe+le-Ue.edgeDistance-qe[2][0]-Ue.labelDistance:Ue.labelAlignTo==="labelLine"?ze.x<z?At=xe-pe-Ue.bleedMargin:At=pe+le-Ie-Ue.bleedMargin:ze.x<z?At=ze.x-pe-Ue.bleedMargin:At=pe+le-ze.x-Ue.bleedMargin,Ue.targetTextWidth=At,constrainTextWidth(Ue,At)}}adjustSingleSide($e,z,oe,ae,1,le,ue,pe,_e,Ie),adjustSingleSide(Ce,z,oe,ae,-1,le,ue,pe,_e,xe);for(var Fe=0;Fe<$.length;Fe++){var Ue=$[Fe];if(!isPositionCenter(Ue)&&Ue.linePoints){var ze=Ue.label,qe=Ue.linePoints,Lt=Ue.labelAlignTo==="edge",hn=ze.style.padding,vn=hn?hn[1]+hn[3]:0,_n=ze.style.backgroundColor?0:vn,bn=Ue.rect.width+_n,Sn=qe[1][0]-qe[2][0];Lt?ze.x<z?qe[2][0]=pe+Ue.edgeDistance+bn+Ue.labelDistance:qe[2][0]=pe+le-Ue.edgeDistance-bn-Ue.labelDistance:(ze.x<z?qe[2][0]=ze.x+Ue.labelDistance:qe[2][0]=ze.x-Ue.labelDistance,qe[1][0]=qe[2][0]+Sn),qe[1][1]=qe[2][1]=ze.y}}}function constrainTextWidth($,z,oe){if(oe===void 0&&(oe=!1),$.labelStyleWidth==null){var ae=$.label,le=ae.style,ue=$.rect,pe=le.backgroundColor,_e=le.padding,Ce=_e?_e[1]+_e[3]:0,$e=le.overflow,xe=ue.width+(pe?0:Ce);if(z<xe||oe){var Ie=ue.height;if($e&&$e.match("break")){ae.setStyle("backgroundColor",null),ae.setStyle("width",z-Ce);var Fe=ae.getBoundingRect();ae.setStyle("width",Math.ceil(Fe.width)),ae.setStyle("backgroundColor",pe)}else{var ze=z-Ce,Ue=z<xe?ze:oe?ze>$.unconstrainedWidth?null:ze:null;ae.setStyle("width",Ue)}var qe=ae.getBoundingRect();ue.width=qe.width;var At=(ae.style.margin||0)+2.1;ue.height=qe.height+At,ue.y-=(ue.height-Ie)/2}}}function isPositionCenter($){return $.position==="center"}function pieLabelLayout($){var z=$.getData(),oe=[],ae,le,ue=!1,pe=($.get("minShowLabelAngle")||0)*RADIAN,_e=z.getLayout("viewRect"),Ce=z.getLayout("r"),$e=_e.width,xe=_e.x,Ie=_e.y,Fe=_e.height;function ze(Sn){Sn.ignore=!0}function Ue(Sn){if(!Sn.ignore)return!0;for(var Cn in Sn.states)if(Sn.states[Cn].ignore===!1)return!0;return!1}z.each(function(Sn){var Cn=z.getItemGraphicEl(Sn),En=Cn.shape,$n=Cn.getTextContent(),wn=Cn.getTextGuideLine(),Tn=z.getItemModel(Sn),xn=Tn.getModel("label"),kn=xn.get("position")||Tn.get(["emphasis","label","position"]),Nn=xn.get("distanceToLabelLine"),Bn=xn.get("alignTo"),Dn=parsePercent(xn.get("edgeDistance"),$e),In=xn.get("bleedMargin"),Ln=Tn.getModel("labelLine"),Mn=Ln.get("length");Mn=parsePercent(Mn,$e);var Vn=Ln.get("length2");if(Vn=parsePercent(Vn,$e),Math.abs(En.endAngle-En.startAngle)<pe){each$c($n.states,ze),$n.ignore=!0,wn&&(each$c(wn.states,ze),wn.ignore=!0);return}if(Ue($n)){var Yn=(En.startAngle+En.endAngle)/2,Fn=Math.cos(Yn),Xn=Math.sin(Yn),sr,vr,ar,qn;ae=En.cx,le=En.cy;var Gn=kn==="inside"||kn==="inner";if(kn==="center")sr=En.cx,vr=En.cy,qn="center";else{var Wn=(Gn?(En.r+En.r0)/2*Fn:En.r*Fn)+ae,Qn=(Gn?(En.r+En.r0)/2*Xn:En.r*Xn)+le;if(sr=Wn+Fn*3,vr=Qn+Xn*3,!Gn){var cr=Wn+Fn*(Mn+Ce-En.r),jn=Qn+Xn*(Mn+Ce-En.r),Zn=cr+(Fn<0?-1:1)*Vn,nr=jn;Bn==="edge"?sr=Fn<0?xe+Dn:xe+$e-Dn:sr=Zn+(Fn<0?-Nn:Nn),vr=nr,ar=[[Wn,Qn],[cr,jn],[Zn,nr]]}qn=Gn?"center":Bn==="edge"?Fn>0?"right":"left":Fn>0?"left":"right"}var hr=Math.PI,gr=0,or=xn.get("rotate");if(isNumber(or))gr=or*(hr/180);else if(kn==="center")gr=0;else if(or==="radial"||or===!0){var wr=Fn<0?-Yn+hr:-Yn;gr=wr}else if(or==="tangential"&&kn!=="outside"&&kn!=="outer"){var mr=Math.atan2(Fn,Xn);mr<0&&(mr=hr*2+mr);var Tr=Xn>0;Tr&&(mr=hr+mr),gr=mr-hr}if(ue=!!gr,$n.x=sr,$n.y=vr,$n.rotation=gr,$n.setStyle({verticalAlign:"middle"}),Gn){$n.setStyle({align:qn});var ur=$n.states.select;ur&&(ur.x+=$n.x,ur.y+=$n.y)}else{var dr=$n.getBoundingRect().clone();dr.applyTransform($n.getComputedTransform());var ir=($n.style.margin||0)+2.1;dr.y-=ir/2,dr.height+=ir,oe.push({label:$n,labelLine:wn,position:kn,len:Mn,len2:Vn,minTurnAngle:Ln.get("minTurnAngle"),maxSurfaceAngle:Ln.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Fn,Xn),linePoints:ar,textAlign:qn,labelDistance:Nn,labelAlignTo:Bn,edgeDistance:Dn,bleedMargin:In,rect:dr,unconstrainedWidth:dr.width,labelStyleWidth:$n.style.width})}Cn.setTextConfig({inside:Gn})}}),!ue&&$.get("avoidLabelOverlap")&&avoidOverlap(oe,ae,le,Ce,$e,Fe,xe,Ie);for(var qe=0;qe<oe.length;qe++){var At=oe[qe],Lt=At.label,hn=At.labelLine,vn=isNaN(Lt.x)||isNaN(Lt.y);if(Lt){Lt.setStyle({align:At.textAlign}),vn&&(each$c(Lt.states,ze),Lt.ignore=!0);var _n=Lt.states.select;_n&&(_n.x+=Lt.x,_n.y+=Lt.y)}if(hn){var bn=At.linePoints;vn||!bn?(each$c(hn.states,ze),hn.ignore=!0):(limitTurnAngle(bn,At.minTurnAngle),limitSurfaceAngle(bn,At.surfaceNormal,At.maxSurfaceAngle),hn.setShape({points:bn}),Lt.__hostTarget.textGuideLineConfig={anchor:new Point$1(bn[0][0],bn[0][1])})}}}var PiePiece=function($){__extends(z,$);function z(oe,ae,le){var ue=$.call(this)||this;ue.z2=2;var pe=new ZRText$1;return ue.setTextContent(pe),ue.updateData(oe,ae,le,!0),ue}return z.prototype.updateData=function(oe,ae,le,ue){var pe=this,_e=oe.hostModel,Ce=oe.getItemModel(ae),$e=Ce.getModel("emphasis"),xe=oe.getItemLayout(ae),Ie=extend(getSectorCornerRadius(Ce.getModel("itemStyle"),xe,!0),xe);if(isNaN(Ie.startAngle)){pe.setShape(Ie);return}if(ue){pe.setShape(Ie);var Fe=_e.getShallow("animationType");_e.ecModel.ssr?(initProps(pe,{scaleX:0,scaleY:0},_e,{dataIndex:ae,isFrom:!0}),pe.originX=Ie.cx,pe.originY=Ie.cy):Fe==="scale"?(pe.shape.r=xe.r0,initProps(pe,{shape:{r:xe.r}},_e,ae)):le!=null?(pe.setShape({startAngle:le,endAngle:le}),initProps(pe,{shape:{startAngle:xe.startAngle,endAngle:xe.endAngle}},_e,ae)):(pe.shape.endAngle=xe.startAngle,updateProps$1(pe,{shape:{endAngle:xe.endAngle}},_e,ae))}else saveOldStyle(pe),updateProps$1(pe,{shape:Ie},_e,ae);pe.useStyle(oe.getItemVisual(ae,"style")),setStatesStylesFromModel(pe,Ce);var ze=(xe.startAngle+xe.endAngle)/2,Ue=_e.get("selectedOffset"),qe=Math.cos(ze)*Ue,At=Math.sin(ze)*Ue,Lt=Ce.getShallow("cursor");Lt&&pe.attr("cursor",Lt),this._updateLabel(_e,oe,ae),pe.ensureState("emphasis").shape=extend({r:xe.r+($e.get("scale")&&$e.get("scaleSize")||0)},getSectorCornerRadius($e.getModel("itemStyle"),xe)),extend(pe.ensureState("select"),{x:qe,y:At,shape:getSectorCornerRadius(Ce.getModel(["select","itemStyle"]),xe)}),extend(pe.ensureState("blur"),{shape:getSectorCornerRadius(Ce.getModel(["blur","itemStyle"]),xe)});var hn=pe.getTextGuideLine(),vn=pe.getTextContent();hn&&extend(hn.ensureState("select"),{x:qe,y:At}),extend(vn.ensureState("select"),{x:qe,y:At}),toggleHoverEmphasis(this,$e.get("focus"),$e.get("blurScope"),$e.get("disabled"))},z.prototype._updateLabel=function(oe,ae,le){var ue=this,pe=ae.getItemModel(le),_e=pe.getModel("labelLine"),Ce=ae.getItemVisual(le,"style"),$e=Ce&&Ce.fill,xe=Ce&&Ce.opacity;setLabelStyle(ue,getLabelStatesModels(pe),{labelFetcher:ae.hostModel,labelDataIndex:le,inheritColor:$e,defaultOpacity:xe,defaultText:oe.getFormattedLabel(le,"normal")||ae.getName(le)});var Ie=ue.getTextContent();ue.setTextConfig({position:null,rotation:null}),Ie.attr({z2:10});var Fe=oe.get(["label","position"]);if(Fe!=="outside"&&Fe!=="outer")ue.removeTextGuideLine();else{var ze=this.getTextGuideLine();ze||(ze=new Polyline$1,this.setTextGuideLine(ze)),setLabelLineStyle(this,getLabelLineStatesModels(pe),{stroke:$e,opacity:retrieve3(_e.get(["lineStyle","opacity"]),xe,1)})}},z}(Sector$1),PieView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.ignoreLabelLineUpdate=!0,oe}return z.prototype.render=function(oe,ae,le,ue){var pe=oe.getData(),_e=this._data,Ce=this.group,$e;if(!_e&&pe.count()>0){for(var xe=pe.getItemLayout(0),Ie=1;isNaN(xe&&xe.startAngle)&&Ie<pe.count();++Ie)xe=pe.getItemLayout(Ie);xe&&($e=xe.startAngle)}if(this._emptyCircleSector&&Ce.remove(this._emptyCircleSector),pe.count()===0&&oe.get("showEmptyCircle")){var Fe=new Sector$1({shape:getBasicPieLayout(oe,le)});Fe.useStyle(oe.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=Fe,Ce.add(Fe)}pe.diff(_e).add(function(ze){var Ue=new PiePiece(pe,ze,$e);pe.setItemGraphicEl(ze,Ue),Ce.add(Ue)}).update(function(ze,Ue){var qe=_e.getItemGraphicEl(Ue);qe.updateData(pe,ze,$e),qe.off("click"),Ce.add(qe),pe.setItemGraphicEl(ze,qe)}).remove(function(ze){var Ue=_e.getItemGraphicEl(ze);removeElementWithFadeOut(Ue,oe,ze)}).execute(),pieLabelLayout(oe),oe.get("animationTypeUpdate")!=="expansion"&&(this._data=pe)},z.prototype.dispose=function(){},z.prototype.containPoint=function(oe,ae){var le=ae.getData(),ue=le.getItemLayout(0);if(ue){var pe=oe[0]-ue.cx,_e=oe[1]-ue.cy,Ce=Math.sqrt(pe*pe+_e*_e);return Ce<=ue.r&&Ce>=ue.r0}},z.type="pie",z}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply($,z,oe){z=isArray$1(z)&&{coordDimensions:z}||extend({encodeDefine:$.getEncode()},z);var ae=$.getSource(),le=prepareSeriesDataSchema(ae,z).dimensions,ue=new SeriesData$1(le,$);return ue.initData(ae,oe),ue}var LegendVisualProvider=function(){function $(z,oe){this._getDataWithEncodedVisual=z,this._getRawData=oe}return $.prototype.getAllNames=function(){var z=this._getRawData();return z.mapArray(z.getName)},$.prototype.containName=function(z){var oe=this._getRawData();return oe.indexOfName(z)>=0},$.prototype.indexOfName=function(z){var oe=this._getDataWithEncodedVisual();return oe.indexOfName(z)},$.prototype.getItemVisual=function(z,oe){var ae=this._getDataWithEncodedVisual();return ae.getItemVisual(z,oe)},$}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(oe){$.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(oe)},z.prototype.mergeOption=function(){$.prototype.mergeOption.apply(this,arguments)},z.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},z.prototype.getDataParams=function(oe){var ae=this.getData(),le=innerData(ae),ue=le.seats;if(!ue){var pe=[];ae.each(ae.mapDimension("value"),function(Ce){pe.push(Ce)}),ue=le.seats=getPercentSeats(pe,ae.hostModel.get("percentPrecision"))}var _e=$.prototype.getDataParams.call(this,oe);return _e.percent=ue[oe]||0,_e.$vars.push("percent"),_e},z.prototype._defaultLabelLine=function(oe){defaultEmphasis(oe,"labelLine",["show"]);var ae=oe.labelLine,le=oe.emphasis.labelLine;ae.show=ae.show&&oe.label.show,le.show=le.show&&oe.emphasis.label.show},z.type="series.pie",z.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},z}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter($){return{seriesType:$,reset:function(z,oe){var ae=z.getData();ae.filterSelf(function(le){var ue=ae.mapDimension("value"),pe=ae.get(ue,le);return!(isNumber(pe)&&!isNaN(pe)&&pe<0)})}}}function install$h($){$.registerChartView(PieView$1),$.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",$.registerAction),$.registerLayout(curry$1(pieLayout,"pie")),$.registerProcessor(dataFilter("pie")),$.registerProcessor(negativeDataFilter("pie"))}var GridModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.type="grid",z.dependencies=["xAxis","yAxis"],z.layoutMode="box",z.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},z}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},z.type="cartesian2dAxis",z}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis);const axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis};var AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator($,z,oe,ae){each$c(AXIS_TYPES,function(le,ue){var pe=merge(merge({},axisDefault[ue],!0),ae,!0),_e=function(Ce){__extends($e,Ce);function $e(){var xe=Ce!==null&&Ce.apply(this,arguments)||this;return xe.type=z+"Axis."+ue,xe}return $e.prototype.mergeDefaultAndTheme=function(xe,Ie){var Fe=fetchLayoutMode(this),ze=Fe?getLayoutParams(xe):{},Ue=Ie.getTheme();merge(xe,Ue.get(ue+"Axis")),merge(xe,this.getDefaultOption()),xe.type=getAxisType(xe),Fe&&mergeLayoutParam(xe,ze,Fe)},$e.prototype.optionUpdated=function(){var xe=this.option;xe.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},$e.prototype.getCategories=function(xe){var Ie=this.option;if(Ie.type==="category")return xe?Ie.data:this.__ordinalMeta.categories},$e.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},$e.type=z+"Axis."+ue,$e.defaultOption=pe,$e}(oe);$.registerComponentModel(_e)}),$.registerSubTypeDefaulter(z+"Axis",getAxisType)}function getAxisType($){return $.type||($.data?"category":"value")}var Cartesian=function(){function $(z){this.type="cartesian",this._dimList=[],this._axes={},this.name=z||""}return $.prototype.getAxis=function(z){return this._axes[z]},$.prototype.getAxes=function(){return map$2(this._dimList,function(z){return this._axes[z]},this)},$.prototype.getAxesByScale=function(z){return z=z.toLowerCase(),filter(this.getAxes(),function(oe){return oe.scale.type===z})},$.prototype.addAxis=function(z){var oe=z.dim;this._axes[oe]=z,this._dimList.push(oe)},$}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform($){return $.type==="interval"||$.type==="time"}var Cartesian2D=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="cartesian2d",oe.dimensions=cartesian2DDimensions,oe}return z.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var oe=this.getAxis("x").scale,ae=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(oe)||!canCalculateAffineTransform(ae))){var le=oe.getExtent(),ue=ae.getExtent(),pe=this.dataToPoint([le[0],ue[0]]),_e=this.dataToPoint([le[1],ue[1]]),Ce=le[1]-le[0],$e=ue[1]-ue[0];if(!(!Ce||!$e)){var xe=(_e[0]-pe[0])/Ce,Ie=(_e[1]-pe[1])/$e,Fe=pe[0]-le[0]*xe,ze=pe[1]-ue[0]*Ie,Ue=this._transform=[xe,0,0,Ie,Fe,ze];this._invTransform=invert([],Ue)}}},z.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},z.prototype.containPoint=function(oe){var ae=this.getAxis("x"),le=this.getAxis("y");return ae.contain(ae.toLocalCoord(oe[0]))&&le.contain(le.toLocalCoord(oe[1]))},z.prototype.containData=function(oe){return this.getAxis("x").containData(oe[0])&&this.getAxis("y").containData(oe[1])},z.prototype.containZone=function(oe,ae){var le=this.dataToPoint(oe),ue=this.dataToPoint(ae),pe=this.getArea(),_e=new BoundingRect$1(le[0],le[1],ue[0]-le[0],ue[1]-le[1]);return pe.intersect(_e)},z.prototype.dataToPoint=function(oe,ae,le){le=le||[];var ue=oe[0],pe=oe[1];if(this._transform&&ue!=null&&isFinite(ue)&&pe!=null&&isFinite(pe))return applyTransform$1(le,oe,this._transform);var _e=this.getAxis("x"),Ce=this.getAxis("y");return le[0]=_e.toGlobalCoord(_e.dataToCoord(ue,ae)),le[1]=Ce.toGlobalCoord(Ce.dataToCoord(pe,ae)),le},z.prototype.clampData=function(oe,ae){var le=this.getAxis("x").scale,ue=this.getAxis("y").scale,pe=le.getExtent(),_e=ue.getExtent(),Ce=le.parse(oe[0]),$e=ue.parse(oe[1]);return ae=ae||[],ae[0]=Math.min(Math.max(Math.min(pe[0],pe[1]),Ce),Math.max(pe[0],pe[1])),ae[1]=Math.min(Math.max(Math.min(_e[0],_e[1]),$e),Math.max(_e[0],_e[1])),ae},z.prototype.pointToData=function(oe,ae){var le=[];if(this._invTransform)return applyTransform$1(le,oe,this._invTransform);var ue=this.getAxis("x"),pe=this.getAxis("y");return le[0]=ue.coordToData(ue.toLocalCoord(oe[0]),ae),le[1]=pe.coordToData(pe.toLocalCoord(oe[1]),ae),le},z.prototype.getOtherAxis=function(oe){return this.getAxis(oe.dim==="x"?"y":"x")},z.prototype.getArea=function(){var oe=this.getAxis("x").getGlobalExtent(),ae=this.getAxis("y").getGlobalExtent(),le=Math.min(oe[0],oe[1]),ue=Math.min(ae[0],ae[1]),pe=Math.max(oe[0],oe[1])-le,_e=Math.max(ae[0],ae[1])-ue;return new BoundingRect$1(le,ue,pe,_e)},z}(Cartesian$1),Axis2D=function($){__extends(z,$);function z(oe,ae,le,ue,pe){var _e=$.call(this,oe,ae,le)||this;return _e.index=0,_e.type=ue||"value",_e.position=pe||"bottom",_e}return z.prototype.isHorizontal=function(){var oe=this.position;return oe==="top"||oe==="bottom"},z.prototype.getGlobalExtent=function(oe){var ae=this.getExtent();return ae[0]=this.toGlobalCoord(ae[0]),ae[1]=this.toGlobalCoord(ae[1]),oe&&ae[0]>ae[1]&&ae.reverse(),ae},z.prototype.pointToData=function(oe,ae){return this.coordToData(this.toLocalCoord(oe[this.dim==="x"?0:1]),ae)},z.prototype.setCategorySortInfo=function(oe){if(this.type!=="category")return!1;this.model.option.categorySortInfo=oe,this.scale.setSortInfo(oe)},z}(Axis$1);const Axis2D$1=Axis2D;function layout$1($,z,oe){oe=oe||{};var ae=$.coordinateSystem,le=z.axis,ue={},pe=le.getAxesOnZeroOf()[0],_e=le.position,Ce=pe?"onZero":_e,$e=le.dim,xe=ae.getRect(),Ie=[xe.x,xe.x+xe.width,xe.y,xe.y+xe.height],Fe={left:0,right:1,top:0,bottom:1,onZero:2},ze=z.get("offset")||0,Ue=$e==="x"?[Ie[2]-ze,Ie[3]+ze]:[Ie[0]-ze,Ie[1]+ze];if(pe){var qe=pe.toGlobalCoord(pe.dataToCoord(0));Ue[Fe.onZero]=Math.max(Math.min(qe,Ue[1]),Ue[0])}ue.position=[$e==="y"?Ue[Fe[Ce]]:Ie[0],$e==="x"?Ue[Fe[Ce]]:Ie[3]],ue.rotation=Math.PI/2*($e==="x"?0:1);var At={top:-1,bottom:1,left:-1,right:1};ue.labelDirection=ue.tickDirection=ue.nameDirection=At[_e],ue.labelOffset=pe?Ue[Fe[_e]]-Ue[Fe.onZero]:0,z.get(["axisTick","inside"])&&(ue.tickDirection=-ue.tickDirection),retrieve(oe.labelInside,z.get(["axisLabel","inside"]))&&(ue.labelDirection=-ue.labelDirection);var Lt=z.get(["axisLabel","rotate"]);return ue.labelRotate=Ce==="top"?-Lt:Lt,ue.z2=1,ue}function isCartesian2DSeries($){return $.get("coordinateSystem")==="cartesian2d"}function findAxisModels($){var z={xAxisModel:null,yAxisModel:null};return each$c(z,function(oe,ae){var le=ae.replace(/Model$/,""),ue=$.getReferringComponents(le,SINGLE_REFERRING).models[0];z[ae]=ue}),z}var mathLog=Math.log;function alignScaleTicks($,z,oe){var ae=IntervalScale$1.prototype,le=ae.getTicks.call(oe),ue=ae.getTicks.call(oe,!0),pe=le.length-1,_e=ae.getInterval.call(oe),Ce=getScaleExtent($,z),$e=Ce.extent,xe=Ce.fixMin,Ie=Ce.fixMax;if($.type==="log"){var Fe=mathLog($.base);$e=[mathLog($e[0])/Fe,mathLog($e[1])/Fe]}$.setExtent($e[0],$e[1]),$.calcNiceExtent({splitNumber:pe,fixMin:xe,fixMax:Ie});var ze=ae.getExtent.call($);xe&&($e[0]=ze[0]),Ie&&($e[1]=ze[1]);var Ue=ae.getInterval.call($),qe=$e[0],At=$e[1];if(xe&&Ie)Ue=(At-qe)/pe;else if(xe)for(At=$e[0]+Ue*pe;At<$e[1]&&isFinite(At)&&isFinite($e[1]);)Ue=increaseInterval(Ue),At=$e[0]+Ue*pe;else if(Ie)for(qe=$e[1]-Ue*pe;qe>$e[0]&&isFinite(qe)&&isFinite($e[0]);)Ue=increaseInterval(Ue),qe=$e[1]-Ue*pe;else{var Lt=$.getTicks().length-1;Lt>pe&&(Ue=increaseInterval(Ue));var hn=Ue*pe;At=Math.ceil($e[1]/Ue)*Ue,qe=round$1(At-hn),qe<0&&$e[0]>=0?(qe=0,At=round$1(hn)):At>0&&$e[1]<=0&&(At=0,qe=-round$1(hn))}var vn=(le[0].value-ue[0].value)/_e,_n=(le[pe].value-ue[pe].value)/_e;ae.setExtent.call($,qe+Ue*vn,At+Ue*_n),ae.setInterval.call($,Ue),(vn||_n)&&ae.setNiceExtent.call($,qe+Ue,At-Ue)}var Grid=function(){function $(z,oe,ae){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(z,oe,ae),this.model=z}return $.prototype.getRect=function(){return this._rect},$.prototype.update=function(z,oe){var ae=this._axesMap;this._updateScale(z,this.model);function le(pe){var _e,Ce=keys(pe),$e=Ce.length;if($e){for(var xe=[],Ie=$e-1;Ie>=0;Ie--){var Fe=+Ce[Ie],ze=pe[Fe],Ue=ze.model,qe=ze.scale;isIntervalOrLogScale(qe)&&Ue.get("alignTicks")&&Ue.get("interval")==null?xe.push(ze):(niceScaleExtent(qe,Ue),isIntervalOrLogScale(qe)&&(_e=ze))}xe.length&&(_e||(_e=xe.pop(),niceScaleExtent(_e.scale,_e.model)),each$c(xe,function(At){alignScaleTicks(At.scale,At.model,_e.scale)}))}}le(ae.x),le(ae.y);var ue={};each$c(ae.x,function(pe){fixAxisOnZero(ae,"y",pe,ue)}),each$c(ae.y,function(pe){fixAxisOnZero(ae,"x",pe,ue)}),this.resize(this.model,oe)},$.prototype.resize=function(z,oe,ae){var le=z.getBoxLayoutParams(),ue=!ae&&z.get("containLabel"),pe=getLayoutRect(le,{width:oe.getWidth(),height:oe.getHeight()});this._rect=pe;var _e=this._axesList;Ce(),ue&&(each$c(_e,function($e){if(!$e.model.get(["axisLabel","inside"])){var xe=estimateLabelUnionRect($e);if(xe){var Ie=$e.isHorizontal()?"height":"width",Fe=$e.model.get(["axisLabel","margin"]);pe[Ie]-=xe[Ie]+Fe,$e.position==="top"?pe.y+=xe.height+Fe:$e.position==="left"&&(pe.x+=xe.width+Fe)}}}),Ce()),each$c(this._coordsList,function($e){$e.calcAffineTransform()});function Ce(){each$c(_e,function($e){var xe=$e.isHorizontal(),Ie=xe?[0,pe.width]:[0,pe.height],Fe=$e.inverse?1:0;$e.setExtent(Ie[Fe],Ie[1-Fe]),updateAxisTransform($e,xe?pe.x:pe.y)})}},$.prototype.getAxis=function(z,oe){var ae=this._axesMap[z];if(ae!=null)return ae[oe||0]},$.prototype.getAxes=function(){return this._axesList.slice()},$.prototype.getCartesian=function(z,oe){if(z!=null&&oe!=null){var ae="x"+z+"y"+oe;return this._coordsMap[ae]}isObject$3(z)&&(oe=z.yAxisIndex,z=z.xAxisIndex);for(var le=0,ue=this._coordsList;le<ue.length;le++)if(ue[le].getAxis("x").index===z||ue[le].getAxis("y").index===oe)return ue[le]},$.prototype.getCartesians=function(){return this._coordsList.slice()},$.prototype.convertToPixel=function(z,oe,ae){var le=this._findConvertTarget(oe);return le.cartesian?le.cartesian.dataToPoint(ae):le.axis?le.axis.toGlobalCoord(le.axis.dataToCoord(ae)):null},$.prototype.convertFromPixel=function(z,oe,ae){var le=this._findConvertTarget(oe);return le.cartesian?le.cartesian.pointToData(ae):le.axis?le.axis.coordToData(le.axis.toLocalCoord(ae)):null},$.prototype._findConvertTarget=function(z){var oe=z.seriesModel,ae=z.xAxisModel||oe&&oe.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],le=z.yAxisModel||oe&&oe.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],ue=z.gridModel,pe=this._coordsList,_e,Ce;if(oe)_e=oe.coordinateSystem,indexOf(pe,_e)<0&&(_e=null);else if(ae&&le)_e=this.getCartesian(ae.componentIndex,le.componentIndex);else if(ae)Ce=this.getAxis("x",ae.componentIndex);else if(le)Ce=this.getAxis("y",le.componentIndex);else if(ue){var $e=ue.coordinateSystem;$e===this&&(_e=this._coordsList[0])}return{cartesian:_e,axis:Ce}},$.prototype.containPoint=function(z){var oe=this._coordsList[0];if(oe)return oe.containPoint(z)},$.prototype._initCartesian=function(z,oe,ae){var le=this,ue=this,pe={left:!1,right:!1,top:!1,bottom:!1},_e={x:{},y:{}},Ce={x:0,y:0};if(oe.eachComponent("xAxis",$e("x"),this),oe.eachComponent("yAxis",$e("y"),this),!Ce.x||!Ce.y){this._axesMap={},this._axesList=[];return}this._axesMap=_e,each$c(_e.x,function(xe,Ie){each$c(_e.y,function(Fe,ze){var Ue="x"+Ie+"y"+ze,qe=new Cartesian2D(Ue);qe.master=le,qe.model=z,le._coordsMap[Ue]=qe,le._coordsList.push(qe),qe.addAxis(xe),qe.addAxis(Fe)})});function $e(xe){return function(Ie,Fe){if(isAxisUsedInTheGrid(Ie,z)){var ze=Ie.get("position");xe==="x"?ze!=="top"&&ze!=="bottom"&&(ze=pe.bottom?"top":"bottom"):ze!=="left"&&ze!=="right"&&(ze=pe.left?"right":"left"),pe[ze]=!0;var Ue=new Axis2D$1(xe,createScaleByModel(Ie),[0,0],Ie.get("type"),ze),qe=Ue.type==="category";Ue.onBand=qe&&Ie.get("boundaryGap"),Ue.inverse=Ie.get("inverse"),Ie.axis=Ue,Ue.model=Ie,Ue.grid=ue,Ue.index=Fe,ue._axesList.push(Ue),_e[xe][Fe]=Ue,Ce[xe]++}}}},$.prototype._updateScale=function(z,oe){each$c(this._axesList,function(le){if(le.scale.setExtent(1/0,-1/0),le.type==="category"){var ue=le.model.get("categorySortInfo");le.scale.setSortInfo(ue)}}),z.eachSeries(function(le){if(isCartesian2DSeries(le)){var ue=findAxisModels(le),pe=ue.xAxisModel,_e=ue.yAxisModel;if(!isAxisUsedInTheGrid(pe,oe)||!isAxisUsedInTheGrid(_e,oe))return;var Ce=this.getCartesian(pe.componentIndex,_e.componentIndex),$e=le.getData(),xe=Ce.getAxis("x"),Ie=Ce.getAxis("y");ae($e,xe),ae($e,Ie)}},this);function ae(le,ue){each$c(getDataDimensionsOnAxis(le,ue.dim),function(pe){ue.scale.unionExtentFromData(le,pe)})}},$.prototype.getTooltipAxes=function(z){var oe=[],ae=[];return each$c(this.getCartesians(),function(le){var ue=z!=null&&z!=="auto"?le.getAxis(z):le.getBaseAxis(),pe=le.getOtherAxis(ue);indexOf(oe,ue)<0&&oe.push(ue),indexOf(ae,pe)<0&&ae.push(pe)}),{baseAxes:oe,otherAxes:ae}},$.create=function(z,oe){var ae=[];return z.eachComponent("grid",function(le,ue){var pe=new $(le,z,oe);pe.name="grid_"+ue,pe.resize(le,oe,!0),le.coordinateSystem=pe,ae.push(pe)}),z.eachSeries(function(le){if(isCartesian2DSeries(le)){var ue=findAxisModels(le),pe=ue.xAxisModel,_e=ue.yAxisModel,Ce=pe.getCoordSysModel(),$e=Ce.coordinateSystem;le.coordinateSystem=$e.getCartesian(pe.componentIndex,_e.componentIndex)}}),ae},$.dimensions=cartesian2DDimensions,$}();function isAxisUsedInTheGrid($,z){return $.getCoordSysModel()===z}function fixAxisOnZero($,z,oe,ae){oe.getAxesOnZeroOf=function(){return ue?[ue]:[]};var le=$[z],ue,pe=oe.model,_e=pe.get(["axisLine","onZero"]),Ce=pe.get(["axisLine","onZeroAxisIndex"]);if(!_e)return;if(Ce!=null)canOnZeroToAxis(le[Ce])&&(ue=le[Ce]);else for(var $e in le)if(le.hasOwnProperty($e)&&canOnZeroToAxis(le[$e])&&!ae[xe(le[$e])]){ue=le[$e];break}ue&&(ae[xe(ue)]=!0);function xe(Ie){return Ie.dim+"_"+Ie.index}}function canOnZeroToAxis($){return $&&$.type!=="category"&&$.type!=="time"&&ifAxisCrossZero($)}function updateAxisTransform($,z){var oe=$.getExtent(),ae=oe[0]+oe[1];$.toGlobalCoord=$.dim==="x"?function(le){return le+z}:function(le){return ae-le+z},$.toLocalCoord=$.dim==="x"?function(le){return le-z}:function(le){return ae-le+z}}const Grid$1=Grid;var PI=Math.PI,AxisBuilder=function(){function $(z,oe){this.group=new Group$3,this.opt=oe,this.axisModel=z,defaults(oe,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var ae=new Group$3({x:oe.position[0],y:oe.position[1],rotation:oe.rotation});ae.updateTransform(),this._transformGroup=ae}return $.prototype.hasBuilder=function(z){return!!builders[z]},$.prototype.add=function(z){builders[z](this.opt,this.axisModel,this.group,this._transformGroup)},$.prototype.getGroup=function(){return this.group},$.innerTextLayout=function(z,oe,ae){var le=remRadian(oe-z),ue,pe;return isRadianAroundZero(le)?(pe=ae>0?"top":"bottom",ue="center"):isRadianAroundZero(le-PI)?(pe=ae>0?"bottom":"top",ue="center"):(pe="middle",le>0&&le<PI?ue=ae>0?"right":"left":ue=ae>0?"left":"right"),{rotation:le,textAlign:ue,textVerticalAlign:pe}},$.makeAxisEventDataBase=function(z){var oe={componentType:z.mainType,componentIndex:z.componentIndex};return oe[z.mainType+"Index"]=z.componentIndex,oe},$.isLabelSilent=function(z){var oe=z.get("tooltip");return z.get("silent")||!(z.get("triggerEvent")||oe&&oe.show)},$}(),builders={axisLine:function($,z,oe,ae){var le=z.get(["axisLine","show"]);if(le==="auto"&&$.handleAutoShown&&(le=$.handleAutoShown("axisLine")),!!le){var ue=z.axis.getExtent(),pe=ae.transform,_e=[ue[0],0],Ce=[ue[1],0],$e=_e[0]>Ce[0];pe&&(applyTransform$1(_e,_e,pe),applyTransform$1(Ce,Ce,pe));var xe=extend({lineCap:"round"},z.getModel(["axisLine","lineStyle"]).getLineStyle()),Ie=new Line$1({shape:{x1:_e[0],y1:_e[1],x2:Ce[0],y2:Ce[1]},style:xe,strokeContainThreshold:$.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(Ie.shape,Ie.style.lineWidth),Ie.anid="line",oe.add(Ie);var Fe=z.get(["axisLine","symbol"]);if(Fe!=null){var ze=z.get(["axisLine","symbolSize"]);isString(Fe)&&(Fe=[Fe,Fe]),(isString(ze)||isNumber(ze))&&(ze=[ze,ze]);var Ue=normalizeSymbolOffset(z.get(["axisLine","symbolOffset"])||0,ze),qe=ze[0],At=ze[1];each$c([{rotate:$.rotation+Math.PI/2,offset:Ue[0],r:0},{rotate:$.rotation-Math.PI/2,offset:Ue[1],r:Math.sqrt((_e[0]-Ce[0])*(_e[0]-Ce[0])+(_e[1]-Ce[1])*(_e[1]-Ce[1]))}],function(Lt,hn){if(Fe[hn]!=="none"&&Fe[hn]!=null){var vn=createSymbol(Fe[hn],-qe/2,-At/2,qe,At,xe.stroke,!0),_n=Lt.r+Lt.offset,bn=$e?Ce:_e;vn.attr({rotation:Lt.rotate,x:bn[0]+_n*Math.cos($.rotation),y:bn[1]-_n*Math.sin($.rotation),silent:!0,z2:11}),oe.add(vn)}})}}},axisTickLabel:function($,z,oe,ae){var le=buildAxisMajorTicks(oe,ae,z,$),ue=buildAxisLabel(oe,ae,z,$);if(fixMinMaxLabelShow(z,ue,le),buildAxisMinorTicks(oe,ae,z,$.tickDirection),z.get(["axisLabel","hideOverlap"])){var pe=prepareLayoutList(map$2(ue,function(_e){return{label:_e,priority:_e.z2,defaultAttr:{ignore:_e.ignore}}}));hideOverlap(pe)}},axisName:function($,z,oe,ae){var le=retrieve($.axisName,z.get("name"));if(le){var ue=z.get("nameLocation"),pe=$.nameDirection,_e=z.getModel("nameTextStyle"),Ce=z.get("nameGap")||0,$e=z.axis.getExtent(),xe=$e[0]>$e[1]?-1:1,Ie=[ue==="start"?$e[0]-xe*Ce:ue==="end"?$e[1]+xe*Ce:($e[0]+$e[1])/2,isNameLocationCenter(ue)?$.labelOffset+pe*Ce:0],Fe,ze=z.get("nameRotate");ze!=null&&(ze=ze*PI/180);var Ue;isNameLocationCenter(ue)?Fe=AxisBuilder.innerTextLayout($.rotation,ze??$.rotation,pe):(Fe=endTextLayout($.rotation,ue,ze||0,$e),Ue=$.axisNameAvailableWidth,Ue!=null&&(Ue=Math.abs(Ue/Math.sin(Fe.rotation)),!isFinite(Ue)&&(Ue=null)));var qe=_e.getFont(),At=z.get("nameTruncate",!0)||{},Lt=At.ellipsis,hn=retrieve($.nameTruncateMaxWidth,At.maxWidth,Ue),vn=new ZRText$1({x:Ie[0],y:Ie[1],rotation:Fe.rotation,silent:AxisBuilder.isLabelSilent(z),style:createTextStyle$1(_e,{text:le,font:qe,overflow:"truncate",width:hn,ellipsis:Lt,fill:_e.getTextColor()||z.get(["axisLine","lineStyle","color"]),align:_e.get("align")||Fe.textAlign,verticalAlign:_e.get("verticalAlign")||Fe.textVerticalAlign}),z2:1});if(setTooltipConfig({el:vn,componentModel:z,itemName:le}),vn.__fullText=le,vn.anid="name",z.get("triggerEvent")){var _n=AxisBuilder.makeAxisEventDataBase(z);_n.targetType="axisName",_n.name=le,getECData(vn).eventData=_n}ae.add(vn),vn.updateTransform(),oe.add(vn),vn.decomposeTransform()}}};function endTextLayout($,z,oe,ae){var le=remRadian(oe-$),ue,pe,_e=ae[0]>ae[1],Ce=z==="start"&&!_e||z!=="start"&&_e;return isRadianAroundZero(le-PI/2)?(pe=Ce?"bottom":"top",ue="center"):isRadianAroundZero(le-PI*1.5)?(pe=Ce?"top":"bottom",ue="center"):(pe="middle",le<PI*1.5&&le>PI/2?ue=Ce?"left":"right":ue=Ce?"right":"left"),{rotation:le,textAlign:ue,textVerticalAlign:pe}}function fixMinMaxLabelShow($,z,oe){if(!shouldShowAllLabels($.axis)){var ae=$.get(["axisLabel","showMinLabel"]),le=$.get(["axisLabel","showMaxLabel"]);z=z||[],oe=oe||[];var ue=z[0],pe=z[1],_e=z[z.length-1],Ce=z[z.length-2],$e=oe[0],xe=oe[1],Ie=oe[oe.length-1],Fe=oe[oe.length-2];ae===!1?(ignoreEl(ue),ignoreEl($e)):isTwoLabelOverlapped(ue,pe)&&(ae?(ignoreEl(pe),ignoreEl(xe)):(ignoreEl(ue),ignoreEl($e))),le===!1?(ignoreEl(_e),ignoreEl(Ie)):isTwoLabelOverlapped(Ce,_e)&&(le?(ignoreEl(Ce),ignoreEl(Fe)):(ignoreEl(_e),ignoreEl(Ie)))}}function ignoreEl($){$&&($.ignore=!0)}function isTwoLabelOverlapped($,z){var oe=$&&$.getBoundingRect().clone(),ae=z&&z.getBoundingRect().clone();if(!(!oe||!ae)){var le=identity([]);return rotate(le,le,-$.rotation),oe.applyTransform(mul([],le,$.getLocalTransform())),ae.applyTransform(mul([],le,z.getLocalTransform())),oe.intersect(ae)}}function isNameLocationCenter($){return $==="middle"||$==="center"}function createTicks($,z,oe,ae,le){for(var ue=[],pe=[],_e=[],Ce=0;Ce<$.length;Ce++){var $e=$[Ce].coord;pe[0]=$e,pe[1]=0,_e[0]=$e,_e[1]=oe,z&&(applyTransform$1(pe,pe,z),applyTransform$1(_e,_e,z));var xe=new Line$1({shape:{x1:pe[0],y1:pe[1],x2:_e[0],y2:_e[1]},style:ae,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(xe.shape,xe.style.lineWidth),xe.anid=le+"_"+$[Ce].tickValue,ue.push(xe)}return ue}function buildAxisMajorTicks($,z,oe,ae){var le=oe.axis,ue=oe.getModel("axisTick"),pe=ue.get("show");if(pe==="auto"&&ae.handleAutoShown&&(pe=ae.handleAutoShown("axisTick")),!(!pe||le.scale.isBlank())){for(var _e=ue.getModel("lineStyle"),Ce=ae.tickDirection*ue.get("length"),$e=le.getTicksCoords(),xe=createTicks($e,z.transform,Ce,defaults(_e.getLineStyle(),{stroke:oe.get(["axisLine","lineStyle","color"])}),"ticks"),Ie=0;Ie<xe.length;Ie++)$.add(xe[Ie]);return xe}}function buildAxisMinorTicks($,z,oe,ae){var le=oe.axis,ue=oe.getModel("minorTick");if(!(!ue.get("show")||le.scale.isBlank())){var pe=le.getMinorTicksCoords();if(pe.length)for(var _e=ue.getModel("lineStyle"),Ce=ae*ue.get("length"),$e=defaults(_e.getLineStyle(),defaults(oe.getModel("axisTick").getLineStyle(),{stroke:oe.get(["axisLine","lineStyle","color"])})),xe=0;xe<pe.length;xe++)for(var Ie=createTicks(pe[xe],z.transform,Ce,$e,"minorticks_"+xe),Fe=0;Fe<Ie.length;Fe++)$.add(Ie[Fe])}}function buildAxisLabel($,z,oe,ae){var le=oe.axis,ue=retrieve(ae.axisLabelShow,oe.get(["axisLabel","show"]));if(!(!ue||le.scale.isBlank())){var pe=oe.getModel("axisLabel"),_e=pe.get("margin"),Ce=le.getViewLabels(),$e=(retrieve(ae.labelRotate,pe.get("rotate"))||0)*PI/180,xe=AxisBuilder.innerTextLayout(ae.rotation,$e,ae.labelDirection),Ie=oe.getCategories&&oe.getCategories(!0),Fe=[],ze=AxisBuilder.isLabelSilent(oe),Ue=oe.get("triggerEvent");return each$c(Ce,function(qe,At){var Lt=le.scale.type==="ordinal"?le.scale.getRawOrdinalNumber(qe.tickValue):qe.tickValue,hn=qe.formattedLabel,vn=qe.rawLabel,_n=pe;if(Ie&&Ie[Lt]){var bn=Ie[Lt];isObject$3(bn)&&bn.textStyle&&(_n=new Model$1(bn.textStyle,pe,oe.ecModel))}var Sn=_n.getTextColor()||oe.get(["axisLine","lineStyle","color"]),Cn=le.dataToCoord(Lt),En=new ZRText$1({x:Cn,y:ae.labelOffset+ae.labelDirection*_e,rotation:xe.rotation,silent:ze,z2:10+(qe.level||0),style:createTextStyle$1(_n,{text:hn,align:_n.getShallow("align",!0)||xe.textAlign,verticalAlign:_n.getShallow("verticalAlign",!0)||_n.getShallow("baseline",!0)||xe.textVerticalAlign,fill:isFunction(Sn)?Sn(le.type==="category"?vn:le.type==="value"?Lt+"":Lt,At):Sn})});if(En.anid="label_"+Lt,Ue){var $n=AxisBuilder.makeAxisEventDataBase(oe);$n.targetType="axisLabel",$n.value=vn,$n.tickIndex=At,le.type==="category"&&($n.dataIndex=Lt),getECData(En).eventData=$n}z.add(En),En.updateTransform(),Fe.push(En),$.add(En),En.decomposeTransform()}),Fe}}const AxisBuilder$1=AxisBuilder;function collect($,z){var oe={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(oe,$,z),oe.seriesInvolved&&collectSeriesInfo(oe,$),oe}function collectAxesInfo($,z,oe){var ae=z.getComponent("tooltip"),le=z.getComponent("axisPointer"),ue=le.get("link",!0)||[],pe=[];each$c(oe.getCoordinateSystems(),function(_e){if(!_e.axisPointerEnabled)return;var Ce=makeKey(_e.model),$e=$.coordSysAxesInfo[Ce]={};$.coordSysMap[Ce]=_e;var xe=_e.model,Ie=xe.getModel("tooltip",ae);if(each$c(_e.getAxes(),curry$1(qe,!1,null)),_e.getTooltipAxes&&ae&&Ie.get("show")){var Fe=Ie.get("trigger")==="axis",ze=Ie.get(["axisPointer","type"])==="cross",Ue=_e.getTooltipAxes(Ie.get(["axisPointer","axis"]));(Fe||ze)&&each$c(Ue.baseAxes,curry$1(qe,ze?"cross":!0,Fe)),ze&&each$c(Ue.otherAxes,curry$1(qe,"cross",!1))}function qe(At,Lt,hn){var vn=hn.model.getModel("axisPointer",le),_n=vn.get("show");if(!(!_n||_n==="auto"&&!At&&!isHandleTrigger(vn))){Lt==null&&(Lt=vn.get("triggerTooltip")),vn=At?makeAxisPointerModel(hn,Ie,le,z,At,Lt):vn;var bn=vn.get("snap"),Sn=makeKey(hn.model),Cn=Lt||bn||hn.type==="category",En=$.axesInfo[Sn]={key:Sn,axis:hn,coordSys:_e,axisPointerModel:vn,triggerTooltip:Lt,involveSeries:Cn,snap:bn,useHandle:isHandleTrigger(vn),seriesModels:[],linkGroup:null};$e[Sn]=En,$.seriesInvolved=$.seriesInvolved||Cn;var $n=getLinkGroupIndex(ue,hn);if($n!=null){var wn=pe[$n]||(pe[$n]={axesInfo:{}});wn.axesInfo[Sn]=En,wn.mapper=ue[$n].mapper,En.linkGroup=wn}}}})}function makeAxisPointerModel($,z,oe,ae,le,ue){var pe=z.getModel("axisPointer"),_e=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],Ce={};each$c(_e,function(Fe){Ce[Fe]=clone$3(pe.get(Fe))}),Ce.snap=$.type!=="category"&&!!ue,pe.get("type")==="cross"&&(Ce.type="line");var $e=Ce.label||(Ce.label={});if($e.show==null&&($e.show=!1),le==="cross"){var xe=pe.get(["label","show"]);if($e.show=xe??!0,!ue){var Ie=Ce.lineStyle=pe.get("crossStyle");Ie&&defaults($e,Ie.textStyle)}}return $.model.getModel("axisPointer",new Model$1(Ce,oe,ae))}function collectSeriesInfo($,z){z.eachSeries(function(oe){var ae=oe.coordinateSystem,le=oe.get(["tooltip","trigger"],!0),ue=oe.get(["tooltip","show"],!0);!ae||le==="none"||le===!1||le==="item"||ue===!1||oe.get(["axisPointer","show"],!0)===!1||each$c($.coordSysAxesInfo[makeKey(ae.model)],function(pe){var _e=pe.axis;ae.getAxis(_e.dim)===_e&&(pe.seriesModels.push(oe),pe.seriesDataCount==null&&(pe.seriesDataCount=0),pe.seriesDataCount+=oe.getData().count())})})}function getLinkGroupIndex($,z){for(var oe=z.model,ae=z.dim,le=0;le<$.length;le++){var ue=$[le]||{};if(checkPropInLink(ue[ae+"AxisId"],oe.id)||checkPropInLink(ue[ae+"AxisIndex"],oe.componentIndex)||checkPropInLink(ue[ae+"AxisName"],oe.name))return le}}function checkPropInLink($,z){return $==="all"||isArray$1($)&&indexOf($,z)>=0||$===z}function fixValue($){var z=getAxisInfo($);if(z){var oe=z.axisPointerModel,ae=z.axis.scale,le=oe.option,ue=oe.get("status"),pe=oe.get("value");pe!=null&&(pe=ae.parse(pe));var _e=isHandleTrigger(oe);ue==null&&(le.status=_e?"show":"hide");var Ce=ae.getExtent().slice();Ce[0]>Ce[1]&&Ce.reverse(),(pe==null||pe>Ce[1])&&(pe=Ce[1]),pe<Ce[0]&&(pe=Ce[0]),le.value=pe,_e&&(le.status=z.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo($){var z=($.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return z&&z.axesInfo[makeKey($)]}function getAxisPointerModel($){var z=getAxisInfo($);return z&&z.axisPointerModel}function isHandleTrigger($){return!!$.get(["handle","show"])}function makeKey($){return $.type+"||"+$.id}var axisPointerClazz={},AxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,le,ue){this.axisPointerClass&&fixValue(oe),$.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(oe,le,!0)},z.prototype.updateAxisPointer=function(oe,ae,le,ue){this._doUpdateAxisPointerClass(oe,le,!1)},z.prototype.remove=function(oe,ae){var le=this._axisPointer;le&&le.remove(ae)},z.prototype.dispose=function(oe,ae){this._disposeAxisPointer(ae),$.prototype.dispose.apply(this,arguments)},z.prototype._doUpdateAxisPointerClass=function(oe,ae,le){var ue=z.getAxisPointerClass(this.axisPointerClass);if(ue){var pe=getAxisPointerModel(oe);pe?(this._axisPointer||(this._axisPointer=new ue)).render(oe,pe,ae,le):this._disposeAxisPointer(ae)}},z.prototype._disposeAxisPointer=function(oe){this._axisPointer&&this._axisPointer.dispose(oe),this._axisPointer=null},z.registerAxisPointerClass=function(oe,ae){axisPointerClazz[oe]=ae},z.getAxisPointerClass=function(oe){return oe&&axisPointerClazz[oe]},z.type="axis",z}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea($,z,oe,ae){var le=oe.axis;if(!le.scale.isBlank()){var ue=oe.getModel("splitArea"),pe=ue.getModel("areaStyle"),_e=pe.get("color"),Ce=ae.coordinateSystem.getRect(),$e=le.getTicksCoords({tickModel:ue,clamp:!0});if($e.length){var xe=_e.length,Ie=inner$6($).splitAreaColors,Fe=createHashMap(),ze=0;if(Ie)for(var Ue=0;Ue<$e.length;Ue++){var qe=Ie.get($e[Ue].tickValue);if(qe!=null){ze=(qe+(xe-1)*Ue)%xe;break}}var At=le.toGlobalCoord($e[0].coord),Lt=pe.getAreaStyle();_e=isArray$1(_e)?_e:[_e];for(var Ue=1;Ue<$e.length;Ue++){var hn=le.toGlobalCoord($e[Ue].coord),vn=void 0,_n=void 0,bn=void 0,Sn=void 0;le.isHorizontal()?(vn=At,_n=Ce.y,bn=hn-vn,Sn=Ce.height,At=vn+bn):(vn=Ce.x,_n=At,bn=Ce.width,Sn=hn-_n,At=_n+Sn);var Cn=$e[Ue-1].tickValue;Cn!=null&&Fe.set(Cn,ze),z.add(new Rect$2({anid:Cn!=null?"area_"+Cn:null,shape:{x:vn,y:_n,width:bn,height:Sn},style:defaults({fill:_e[ze]},Lt),autoBatch:!0,silent:!0})),ze=(ze+1)%xe}inner$6($).splitAreaColors=Fe}}}function rectCoordAxisHandleRemove($){inner$6($).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.axisPointerClass="CartesianAxisPointer",oe}return z.prototype.render=function(oe,ae,le,ue){this.group.removeAll();var pe=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!oe.get("show")){var _e=oe.getCoordSysModel(),Ce=layout$1(_e,oe),$e=new AxisBuilder$1(oe,extend({handleAutoShown:function(Ie){for(var Fe=_e.coordinateSystem.getCartesians(),ze=0;ze<Fe.length;ze++)if(isIntervalOrLogScale(Fe[ze].getOtherAxis(oe.axis).scale))return!0;return!1}},Ce));each$c(axisBuilderAttrs,$e.add,$e),this._axisGroup.add($e.getGroup()),each$c(selfBuilderAttrs,function(Ie){oe.get([Ie,"show"])&&axisElementBuilders[Ie](this,this._axisGroup,oe,_e)},this);var xe=ue&&ue.type==="changeAxisOrder"&&ue.isInitSort;xe||groupTransition(pe,this._axisGroup,oe),$.prototype.render.call(this,oe,ae,le,ue)}},z.prototype.remove=function(){rectCoordAxisHandleRemove(this)},z.type="cartesianAxis",z}(AxisView$1),axisElementBuilders={splitLine:function($,z,oe,ae){var le=oe.axis;if(!le.scale.isBlank()){var ue=oe.getModel("splitLine"),pe=ue.getModel("lineStyle"),_e=pe.get("color");_e=isArray$1(_e)?_e:[_e];for(var Ce=ae.coordinateSystem.getRect(),$e=le.isHorizontal(),xe=0,Ie=le.getTicksCoords({tickModel:ue}),Fe=[],ze=[],Ue=pe.getLineStyle(),qe=0;qe<Ie.length;qe++){var At=le.toGlobalCoord(Ie[qe].coord);$e?(Fe[0]=At,Fe[1]=Ce.y,ze[0]=At,ze[1]=Ce.y+Ce.height):(Fe[0]=Ce.x,Fe[1]=At,ze[0]=Ce.x+Ce.width,ze[1]=At);var Lt=xe++%_e.length,hn=Ie[qe].tickValue,vn=new Line$1({anid:hn!=null?"line_"+Ie[qe].tickValue:null,autoBatch:!0,shape:{x1:Fe[0],y1:Fe[1],x2:ze[0],y2:ze[1]},style:defaults({stroke:_e[Lt]},Ue),silent:!0});subPixelOptimizeLine(vn.shape,Ue.lineWidth),z.add(vn)}}},minorSplitLine:function($,z,oe,ae){var le=oe.axis,ue=oe.getModel("minorSplitLine"),pe=ue.getModel("lineStyle"),_e=ae.coordinateSystem.getRect(),Ce=le.isHorizontal(),$e=le.getMinorTicksCoords();if($e.length)for(var xe=[],Ie=[],Fe=pe.getLineStyle(),ze=0;ze<$e.length;ze++)for(var Ue=0;Ue<$e[ze].length;Ue++){var qe=le.toGlobalCoord($e[ze][Ue].coord);Ce?(xe[0]=qe,xe[1]=_e.y,Ie[0]=qe,Ie[1]=_e.y+_e.height):(xe[0]=_e.x,xe[1]=qe,Ie[0]=_e.x+_e.width,Ie[1]=qe);var At=new Line$1({anid:"minor_line_"+$e[ze][Ue].tickValue,autoBatch:!0,shape:{x1:xe[0],y1:xe[1],x2:Ie[0],y2:Ie[1]},style:Fe,silent:!0});subPixelOptimizeLine(At.shape,Fe.lineWidth),z.add(At)}},splitArea:function($,z,oe,ae){rectCoordAxisBuildSplitArea($,z,oe,ae)}},CartesianXAxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="xAxis",z}(CartesianAxisView),CartesianYAxisView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=CartesianXAxisView.type,oe}return z.type="yAxis",z}(CartesianAxisView),GridView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="grid",oe}return z.prototype.render=function(oe,ae){this.group.removeAll(),oe.get("show")&&this.group.add(new Rect$2({shape:oe.coordinateSystem.getRect(),style:defaults({fill:oe.get("backgroundColor")},oe.getItemStyle()),silent:!0,z2:-1}))},z.type="grid",z}(ComponentView$1),extraOption={offset:0};function install$g($){$.registerComponentView(GridView),$.registerComponentModel(GridModel$1),$.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator($,"x",CartesianAxisModel,extraOption),axisModelCreator($,"y",CartesianAxisModel,extraOption),$.registerComponentView(CartesianXAxisView),$.registerComponentView(CartesianYAxisView),$.registerPreprocessor(function(z){z.xAxis&&z.yAxis&&!z.grid&&(z.grid={})})}var ATTR="\0_ec_interaction_mutex";function take($,z,oe){var ae=getStore($);ae[z]=oe}function release($,z,oe){var ae=getStore($),le=ae[z];le===oe&&(ae[z]=null)}function isTaken($,z){return!!getStore($)[z]}function getStore($){return $[ATTR]||($[ATTR]={})}registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},noop);var RoamController=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;ae._zr=oe;var le=bind$1(ae._mousedownHandler,ae),ue=bind$1(ae._mousemoveHandler,ae),pe=bind$1(ae._mouseupHandler,ae),_e=bind$1(ae._mousewheelHandler,ae),Ce=bind$1(ae._pinchHandler,ae);return ae.enable=function($e,xe){this.disable(),this._opt=defaults(clone$3(xe)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),$e==null&&($e=!0),($e===!0||$e==="move"||$e==="pan")&&(oe.on("mousedown",le),oe.on("mousemove",ue),oe.on("mouseup",pe)),($e===!0||$e==="scale"||$e==="zoom")&&(oe.on("mousewheel",_e),oe.on("pinch",Ce))},ae.disable=function(){oe.off("mousedown",le),oe.off("mousemove",ue),oe.off("mouseup",pe),oe.off("mousewheel",_e),oe.off("pinch",Ce)},ae}return z.prototype.isDragging=function(){return this._dragging},z.prototype.isPinching=function(){return this._pinching},z.prototype.setPointerChecker=function(oe){this.pointerChecker=oe},z.prototype.dispose=function(){this.disable()},z.prototype._mousedownHandler=function(oe){if(!isMiddleOrRightButtonOnMouseUpDown(oe)){for(var ae=oe.target;ae;){if(ae.draggable)return;ae=ae.__hostTarget||ae.parent}var le=oe.offsetX,ue=oe.offsetY;this.pointerChecker&&this.pointerChecker(oe,le,ue)&&(this._x=le,this._y=ue,this._dragging=!0)}},z.prototype._mousemoveHandler=function(oe){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",oe,this._opt)||oe.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var ae=oe.offsetX,le=oe.offsetY,ue=this._x,pe=this._y,_e=ae-ue,Ce=le-pe;this._x=ae,this._y=le,this._opt.preventDefaultMouseMove&&stop(oe.event),trigger$1(this,"pan","moveOnMouseMove",oe,{dx:_e,dy:Ce,oldX:ue,oldY:pe,newX:ae,newY:le,isAvailableBehavior:null})}},z.prototype._mouseupHandler=function(oe){isMiddleOrRightButtonOnMouseUpDown(oe)||(this._dragging=!1)},z.prototype._mousewheelHandler=function(oe){var ae=isAvailableBehavior("zoomOnMouseWheel",oe,this._opt),le=isAvailableBehavior("moveOnMouseWheel",oe,this._opt),ue=oe.wheelDelta,pe=Math.abs(ue),_e=oe.offsetX,Ce=oe.offsetY;if(!(ue===0||!ae&&!le)){if(ae){var $e=pe>3?1.4:pe>1?1.2:1.1,xe=ue>0?$e:1/$e;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",oe,{scale:xe,originX:_e,originY:Ce,isAvailableBehavior:null})}if(le){var Ie=Math.abs(ue),Fe=(ue>0?1:-1)*(Ie>3?.4:Ie>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",oe,{scrollDelta:Fe,originX:_e,originY:Ce,isAvailableBehavior:null})}}},z.prototype._pinchHandler=function(oe){if(!isTaken(this._zr,"globalPan")){var ae=oe.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,oe,{scale:ae,originX:oe.pinchX,originY:oe.pinchY,isAvailableBehavior:null})}},z}(Eventful$1);function checkPointerAndTrigger($,z,oe,ae,le){$.pointerChecker&&$.pointerChecker(ae,le.originX,le.originY)&&(stop(ae.event),trigger$1($,z,oe,ae,le))}function trigger$1($,z,oe,ae,le){le.isAvailableBehavior=bind$1(isAvailableBehavior,null,oe,ae),$.trigger(z,le)}function isAvailableBehavior($,z,oe){var ae=oe[$];return!$||ae&&(!isString(ae)||z.event[ae+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement($,z,oe){var ae=z.getComponentByElement($.topTarget),le=ae&&ae.coordinateSystem;return ae&&ae!==oe&&!IRRELEVANT_EXCLUDES.hasOwnProperty(ae.mainType)&&le&&le.model!==oe}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function $(z){var oe=z.mappingMethod,ae=z.type,le=this.option=clone$3(z);this.type=ae,this.mappingMethod=oe,this._normalizeData=normalizers[oe];var ue=$.visualHandlers[ae];this.applyVisual=ue.applyVisual,this.getColorMapper=ue.getColorMapper,this._normalizedToVisual=ue._normalizedToVisual[oe],oe==="piecewise"?(normalizeVisualRange(le),preprocessForPiecewise(le)):oe==="category"?le.categories?preprocessForSpecifiedCategory(le):normalizeVisualRange(le,!0):(assert(oe!=="linear"||le.dataExtent),normalizeVisualRange(le))}return $.prototype.mapValueToVisual=function(z){var oe=this._normalizeData(z);return this._normalizedToVisual(oe,z)},$.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},$.listVisualTypes=function(){return keys($.visualHandlers)},$.isValidType=function(z){return $.visualHandlers.hasOwnProperty(z)},$.eachVisual=function(z,oe,ae){isObject$3(z)?each$c(z,oe,ae):oe.call(ae,z)},$.mapVisual=function(z,oe,ae){var le,ue=isArray$1(z)?[]:isObject$3(z)?{}:(le=!0,null);return $.eachVisual(z,function(pe,_e){var Ce=oe.call(ae,pe,_e);le?ue=Ce:ue[_e]=Ce}),ue},$.retrieveVisuals=function(z){var oe={},ae;return z&&each$9($.visualHandlers,function(le,ue){z.hasOwnProperty(ue)&&(oe[ue]=z[ue],ae=!0)}),ae?oe:null},$.prepareVisualTypes=function(z){if(isArray$1(z))z=z.slice();else if(isObject(z)){var oe=[];each$9(z,function(ae,le){oe.push(le)}),z=oe}else return[];return z.sort(function(ae,le){return le==="color"&&ae!=="color"&&ae.indexOf("color")===0?1:-1}),z},$.dependsOn=function(z,oe){return oe==="color"?!!(z&&z.indexOf(oe)===0):z===oe},$.findPieceIndex=function(z,oe,ae){for(var le,ue=1/0,pe=0,_e=oe.length;pe<_e;pe++){var Ce=oe[pe].value;if(Ce!=null){if(Ce===z||isString(Ce)&&Ce===z+"")return pe;ae&&Fe(Ce,pe)}}for(var pe=0,_e=oe.length;pe<_e;pe++){var $e=oe[pe],xe=$e.interval,Ie=$e.close;if(xe){if(xe[0]===-1/0){if(littleThan(Ie[1],z,xe[1]))return pe}else if(xe[1]===1/0){if(littleThan(Ie[0],xe[0],z))return pe}else if(littleThan(Ie[0],xe[0],z)&&littleThan(Ie[1],z,xe[1]))return pe;ae&&Fe(xe[0],pe),ae&&Fe(xe[1],pe)}}if(ae)return z===1/0?oe.length-1:z===-1/0?0:le;function Fe(ze,Ue){var qe=Math.abs(ze-z);qe<ue&&(ue=qe,le=Ue)}},$.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var z=this.option;return bind$1(z.mappingMethod==="category"?function(oe,ae){return!ae&&(oe=this._normalizeData(oe)),doMapCategory.call(this,oe)}:function(oe,ae,le){var ue=!!le;return!ae&&(oe=this._normalizeData(oe)),le=fastLerp(oe,z.parsedVisual,le),ue?le:stringify(le,"rgba")},this)},_normalizedToVisual:{linear:function(z){return stringify(fastLerp(z,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(z,oe){var ae=getSpecifiedVisual.call(this,oe);return ae==null&&(ae=stringify(fastLerp(z,this.option.parsedVisual),"rgba")),ae},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(z,oe){return modifyHSL(z,oe)}),colorSaturation:makePartialColorVisualHandler(function(z,oe){return modifyHSL(z,null,oe)}),colorLightness:makePartialColorVisualHandler(function(z,oe){return modifyHSL(z,null,null,oe)}),colorAlpha:makePartialColorVisualHandler(function(z,oe){return modifyAlpha(z,oe)}),decal:{applyVisual:makeApplyVisual("decal"),_normalizedToVisual:{linear:null,category:doMapCategory,piecewise:null,fixed:null}},opacity:{applyVisual:makeApplyVisual("opacity"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])},liftZ:{applyVisual:makeApplyVisual("liftZ"),_normalizedToVisual:{linear:doMapFixed,category:doMapFixed,piecewise:doMapFixed,fixed:doMapFixed}},symbol:{applyVisual:function(z,oe,ae){var le=this.mapValueToVisual(z);ae("symbol",le)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(z,oe){var ae=getSpecifiedVisual.call(this,oe);return ae==null&&(ae=doMapToArray.call(this,z)),ae},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},$}();function preprocessForPiecewise($){var z=$.pieceList;$.hasSpecialVisual=!1,each$c(z,function(oe,ae){oe.originIndex=ae,oe.visual!=null&&($.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory($){var z=$.categories,oe=$.categoryMap={},ae=$.visual;if(each$9(z,function(pe,_e){oe[pe]=_e}),!isArray$1(ae)){var le=[];isObject$3(ae)?each$9(ae,function(pe,_e){var Ce=oe[_e];le[Ce??CATEGORY_DEFAULT_VISUAL_INDEX]=pe}):le[CATEGORY_DEFAULT_VISUAL_INDEX]=ae,ae=setVisualToOption($,le)}for(var ue=z.length-1;ue>=0;ue--)ae[ue]==null&&(delete oe[z[ue]],z.pop())}function normalizeVisualRange($,z){var oe=$.visual,ae=[];isObject$3(oe)?each$9(oe,function(ue){ae.push(ue)}):oe!=null&&ae.push(oe);var le={color:1,symbol:1};!z&&ae.length===1&&!le.hasOwnProperty($.type)&&(ae[1]=ae[0]),setVisualToOption($,ae)}function makePartialColorVisualHandler($){return{applyVisual:function(z,oe,ae){var le=this.mapValueToVisual(z);ae("color",$(oe("color"),le))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray($){var z=this.option.visual;return z[Math.round(linearMap$2($,[0,1],[0,z.length-1],!0))]||{}}function makeApplyVisual($){return function(z,oe,ae){ae($,this.mapValueToVisual(z))}}function doMapCategory($){var z=this.option.visual;return z[this.option.loop&&$!==CATEGORY_DEFAULT_VISUAL_INDEX?$%z.length:$]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual($){return{linear:function(z){return linearMap$2(z,$,this.option.visual,!0)},category:doMapCategory,piecewise:function(z,oe){var ae=getSpecifiedVisual.call(this,oe);return ae==null&&(ae=linearMap$2(z,$,this.option.visual,!0)),ae},fixed:doMapFixed}}function getSpecifiedVisual($){var z=this.option,oe=z.pieceList;if(z.hasSpecialVisual){var ae=VisualMapping.findPieceIndex($,oe),le=oe[ae];if(le&&le.visual)return le.visual[this.type]}}function setVisualToOption($,z){return $.visual=z,$.type==="color"&&($.parsedVisual=map$2(z,function(oe){var ae=parse$1(oe);return ae||[0,0,0,1]})),z}var normalizers={linear:function($){return linearMap$2($,this.option.dataExtent,[0,1],!0)},piecewise:function($){var z=this.option.pieceList,oe=VisualMapping.findPieceIndex($,z,!0);if(oe!=null)return linearMap$2(oe,[0,z.length-1],[0,1],!0)},category:function($){var z=this.option.categories?this.option.categoryMap[$]:$;return z??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan($,z,oe){return $?z<=oe:z<oe}const VisualMapping$1=VisualMapping;function sliderMove($,z,oe,ae,le,ue){$=$||0;var pe=oe[1]-oe[0];if(le!=null&&(le=restrict(le,[0,pe])),ue!=null&&(ue=Math.max(ue,le??0)),ae==="all"){var _e=Math.abs(z[1]-z[0]);_e=restrict(_e,[0,pe]),le=ue=restrict(_e,[le,ue]),ae=0}z[0]=restrict(z[0],oe),z[1]=restrict(z[1],oe);var Ce=getSpanSign(z,ae);z[ae]+=$;var $e=le||0,xe=oe.slice();Ce.sign<0?xe[0]+=$e:xe[1]-=$e,z[ae]=restrict(z[ae],xe);var Ie;return Ie=getSpanSign(z,ae),le!=null&&(Ie.sign!==Ce.sign||Ie.span<le)&&(z[1-ae]=z[ae]+Ce.sign*le),Ie=getSpanSign(z,ae),ue!=null&&Ie.span>ue&&(z[1-ae]=z[ae]+Ie.sign*ue),z}function getSpanSign($,z){var oe=$[z]-$[1-z];return{span:Math.abs(oe),sign:oe>0?-1:oe<0?1:z?-1:1}}function restrict($,z){return Math.min(z[1]!=null?z[1]:1/0,Math.max(z[0]!=null?z[0]:-1/0,$))}var BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function($){__extends(z,$);function z(oe){var ae=$.call(this)||this;return ae._track=[],ae._covers=[],ae._handlers={},ae._zr=oe,ae.group=new Group$3,ae._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(le,ue){this._handlers[ue]=bind$1(le,this)},ae),ae}return z.prototype.enableBrush=function(oe){return this._brushType&&this._doDisableBrush(),oe.brushType&&this._doEnableBrush(oe),this},z.prototype._doEnableBrush=function(oe){var ae=this._zr;this._enableGlobalPan||take(ae,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(le,ue){ae.on(ue,le)}),this._brushType=oe.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),oe,!0)},z.prototype._doDisableBrush=function(){var oe=this._zr;release(oe,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(ae,le){oe.off(le,ae)}),this._brushType=this._brushOption=null},z.prototype.setPanels=function(oe){if(oe&&oe.length){var ae=this._panels={};each$c(oe,function(le){ae[le.panelId]=clone$3(le)})}else this._panels=null;return this},z.prototype.mount=function(oe){oe=oe||{},this._enableGlobalPan=oe.enableGlobalPan;var ae=this.group;return this._zr.add(ae),ae.attr({x:oe.x||0,y:oe.y||0,rotation:oe.rotation||0,scaleX:oe.scaleX||1,scaleY:oe.scaleY||1}),this._transform=ae.getLocalTransform(),this},z.prototype.updateCovers=function(oe){oe=map$2(oe,function(Fe){return merge(clone$3(DEFAULT_BRUSH_OPT),Fe,!0)});var ae="\0-brush-index-",le=this._covers,ue=this._covers=[],pe=this,_e=this._creatingCover;return new DataDiffer$1(le,oe,$e,Ce).add(xe).update(xe).remove(Ie).execute(),this;function Ce(Fe,ze){return(Fe.id!=null?Fe.id:ae+ze)+"-"+Fe.brushType}function $e(Fe,ze){return Ce(Fe.__brushOption,ze)}function xe(Fe,ze){var Ue=oe[Fe];if(ze!=null&&le[ze]===_e)ue[Fe]=le[ze];else{var qe=ue[Fe]=ze!=null?(le[ze].__brushOption=Ue,le[ze]):endCreating(pe,createCover(pe,Ue));updateCoverAfterCreation(pe,qe)}}function Ie(Fe){le[Fe]!==_e&&pe.group.remove(le[Fe])}},z.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},z.prototype.dispose=function(){this.unmount(),this.off()},z}(Eventful$1);function createCover($,z){var oe=coverRenderers[z.brushType].createCover($,z);return oe.__brushOption=z,updateZ(oe,z),$.group.add(oe),oe}function endCreating($,z){var oe=getCoverRenderer(z);return oe.endCreating&&(oe.endCreating($,z),updateZ(z,z.__brushOption)),z}function updateCoverShape($,z){var oe=z.__brushOption;getCoverRenderer(z).updateCoverShape($,z,oe.range,oe)}function updateZ($,z){var oe=z.z;oe==null&&(oe=COVER_Z),$.traverse(function(ae){ae.z=oe,ae.z2=oe})}function updateCoverAfterCreation($,z){getCoverRenderer(z).updateCommon($,z),updateCoverShape($,z)}function getCoverRenderer($){return coverRenderers[$.__brushOption.brushType]}function getPanelByPoint($,z,oe){var ae=$._panels;if(!ae)return BRUSH_PANEL_GLOBAL;var le,ue=$._transform;return each$c(ae,function(pe){pe.isTargetByCursor(z,oe,ue)&&(le=pe)}),le}function getPanelByCover($,z){var oe=$._panels;if(!oe)return BRUSH_PANEL_GLOBAL;var ae=z.__brushOption.panelId;return ae!=null?oe[ae]:BRUSH_PANEL_GLOBAL}function clearCovers($){var z=$._covers,oe=z.length;return each$c(z,function(ae){$.group.remove(ae)},$),z.length=0,!!oe}function trigger($,z){var oe=map$2($._covers,function(ae){var le=ae.__brushOption,ue=clone$3(le.range);return{brushType:le.brushType,panelId:le.panelId,range:ue}});$.trigger("brush",{areas:oe,isEnd:!!z.isEnd,removeOnClick:!!z.removeOnClick})}function shouldShowCover($){var z=$._track;if(!z.length)return!1;var oe=z[z.length-1],ae=z[0],le=oe[0]-ae[0],ue=oe[1]-ae[1],pe=mathPow(le*le+ue*ue,.5);return pe>UNSELECT_THRESHOLD}function getTrackEnds($){var z=$.length-1;return z<0&&(z=0),[$[0],$[z]]}function createBaseRectCover($,z,oe,ae){var le=new Group$3;return le.add(new Rect$2({name:"main",style:makeStyle(oe),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,$,z,le,["n","s","w","e"]),ondragend:curry$1(trigger,z,{isEnd:!0})})),each$c(ae,function(ue){le.add(new Rect$2({name:ue.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,$,z,le,ue),ondragend:curry$1(trigger,z,{isEnd:!0})}))}),le}function updateBaseRect($,z,oe,ae){var le=ae.brushStyle.lineWidth||0,ue=mathMax$1(le,MIN_RESIZE_LINE_WIDTH),pe=oe[0][0],_e=oe[1][0],Ce=pe-le/2,$e=_e-le/2,xe=oe[0][1],Ie=oe[1][1],Fe=xe-ue+le/2,ze=Ie-ue+le/2,Ue=xe-pe,qe=Ie-_e,At=Ue+le,Lt=qe+le;updateRectShape($,z,"main",pe,_e,Ue,qe),ae.transformable&&(updateRectShape($,z,"w",Ce,$e,ue,Lt),updateRectShape($,z,"e",Fe,$e,ue,Lt),updateRectShape($,z,"n",Ce,$e,At,ue),updateRectShape($,z,"s",Ce,ze,At,ue),updateRectShape($,z,"nw",Ce,$e,ue,ue),updateRectShape($,z,"ne",Fe,$e,ue,ue),updateRectShape($,z,"sw",Ce,ze,ue,ue),updateRectShape($,z,"se",Fe,ze,ue,ue))}function updateCommon($,z){var oe=z.__brushOption,ae=oe.transformable,le=z.childAt(0);le.useStyle(makeStyle(oe)),le.attr({silent:!ae,cursor:ae?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(ue){var pe=z.childOfName(ue.join("")),_e=ue.length===1?getGlobalDirection1($,ue[0]):getGlobalDirection2($,ue);pe&&pe.attr({silent:!ae,invisible:!ae,cursor:ae?CURSOR_MAP[_e]+"-resize":null})})}function updateRectShape($,z,oe,ae,le,ue,pe){var _e=z.childOfName(oe);_e&&_e.setShape(pointsToRect(clipByPanel($,z,[[ae,le],[ae+ue,le+pe]])))}function makeStyle($){return defaults({strokeNoScale:!0},$.brushStyle)}function formatRectRange($,z,oe,ae){var le=[mathMin$1($,oe),mathMin$1(z,ae)],ue=[mathMax$1($,oe),mathMax$1(z,ae)];return[[le[0],ue[0]],[le[1],ue[1]]]}function getTransform($){return getTransform$1($.group)}function getGlobalDirection1($,z){var oe={w:"left",e:"right",n:"top",s:"bottom"},ae={left:"w",right:"e",top:"n",bottom:"s"},le=transformDirection(oe[z],getTransform($));return ae[le]}function getGlobalDirection2($,z){var oe=[getGlobalDirection1($,z[0]),getGlobalDirection1($,z[1])];return(oe[0]==="e"||oe[0]==="w")&&oe.reverse(),oe.join("")}function driftRect($,z,oe,ae,le,ue){var pe=oe.__brushOption,_e=$.toRectRange(pe.range),Ce=toLocalDelta(z,le,ue);each$c(ae,function($e){var xe=DIRECTION_MAP[$e];_e[xe[0]][xe[1]]+=Ce[xe[0]]}),pe.range=$.fromRectRange(formatRectRange(_e[0][0],_e[1][0],_e[0][1],_e[1][1])),updateCoverAfterCreation(z,oe),trigger(z,{isEnd:!1})}function driftPolygon($,z,oe,ae){var le=z.__brushOption.range,ue=toLocalDelta($,oe,ae);each$c(le,function(pe){pe[0]+=ue[0],pe[1]+=ue[1]}),updateCoverAfterCreation($,z),trigger($,{isEnd:!1})}function toLocalDelta($,z,oe){var ae=$.group,le=ae.transformCoordToLocal(z,oe),ue=ae.transformCoordToLocal(0,0);return[le[0]-ue[0],le[1]-ue[1]]}function clipByPanel($,z,oe){var ae=getPanelByCover($,z);return ae&&ae!==BRUSH_PANEL_GLOBAL?ae.clipPath(oe,$._transform):clone$3(oe)}function pointsToRect($){var z=mathMin$1($[0][0],$[1][0]),oe=mathMin$1($[0][1],$[1][1]),ae=mathMax$1($[0][0],$[1][0]),le=mathMax$1($[0][1],$[1][1]);return{x:z,y:oe,width:ae-z,height:le-oe}}function resetCursor($,z,oe){if(!(!$._brushType||isOutsideZrArea($,z.offsetX,z.offsetY))){var ae=$._zr,le=$._covers,ue=getPanelByPoint($,z,oe);if(!$._dragging)for(var pe=0;pe<le.length;pe++){var _e=le[pe].__brushOption;if(ue&&(ue===BRUSH_PANEL_GLOBAL||_e.panelId===ue.panelId)&&coverRenderers[_e.brushType].contain(le[pe],oe[0],oe[1]))return}ue&&ae.setCursorStyle("crosshair")}}function preventDefault($){var z=$.event;z.preventDefault&&z.preventDefault()}function mainShapeContain($,z,oe){return $.childOfName("main").contain(z,oe)}function updateCoverByMouse($,z,oe,ae){var le=$._creatingCover,ue=$._creatingPanel,pe=$._brushOption,_e;if($._track.push(oe.slice()),shouldShowCover($)||le){if(ue&&!le){pe.brushMode==="single"&&clearCovers($);var Ce=clone$3(pe);Ce.brushType=determineBrushType(Ce.brushType,ue),Ce.panelId=ue===BRUSH_PANEL_GLOBAL?null:ue.panelId,le=$._creatingCover=createCover($,Ce),$._covers.push(le)}if(le){var $e=coverRenderers[determineBrushType($._brushType,ue)],xe=le.__brushOption;xe.range=$e.getCreatingRange(clipByPanel($,le,$._track)),ae&&(endCreating($,le),$e.updateCommon($,le)),updateCoverShape($,le),_e={isEnd:ae}}}else ae&&pe.brushMode==="single"&&pe.removeOnClick&&getPanelByPoint($,z,oe)&&clearCovers($)&&(_e={isEnd:ae,removeOnClick:!0});return _e}function determineBrushType($,z){return $==="auto"?z.defaultBrushType:$}var pointerHandlers={mousedown:function($){if(this._dragging)handleDragEnd(this,$);else if(!$.target||!$.target.draggable){preventDefault($);var z=this.group.transformCoordToLocal($.offsetX,$.offsetY);this._creatingCover=null;var oe=this._creatingPanel=getPanelByPoint(this,$,z);oe&&(this._dragging=!0,this._track=[z.slice()])}},mousemove:function($){var z=$.offsetX,oe=$.offsetY,ae=this.group.transformCoordToLocal(z,oe);if(resetCursor(this,$,ae),this._dragging){preventDefault($);var le=updateCoverByMouse(this,$,ae,!1);le&&trigger(this,le)}},mouseup:function($){handleDragEnd(this,$)}};function handleDragEnd($,z){if($._dragging){preventDefault(z);var oe=z.offsetX,ae=z.offsetY,le=$.group.transformCoordToLocal(oe,ae),ue=updateCoverByMouse($,z,le,!0);$._dragging=!1,$._track=[],$._creatingCover=null,ue&&trigger($,ue)}}function isOutsideZrArea($,z,oe){var ae=$._zr;return z<0||z>ae.getWidth()||oe<0||oe>ae.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function($,z){function oe(ae){return ae}return createBaseRectCover({toRectRange:oe,fromRectRange:oe},$,z,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function($){var z=getTrackEnds($);return formatRectRange(z[1][0],z[1][1],z[0][0],z[0][1])},updateCoverShape:function($,z,oe,ae){updateBaseRect($,z,oe,ae)},updateCommon,contain:mainShapeContain},polygon:{createCover:function($,z){var oe=new Group$3;return oe.add(new Polyline$1({name:"main",style:makeStyle(z),silent:!0})),oe},getCreatingRange:function($){return $},endCreating:function($,z){z.remove(z.childAt(0)),z.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,$,z),ondragend:curry$1(trigger,$,{isEnd:!0})}))},updateCoverShape:function($,z,oe,ae){z.childAt(0).setShape({points:clipByPanel($,z,oe)})},updateCommon,contain:mainShapeContain}};function getLineRenderer($){return{createCover:function(z,oe){return createBaseRectCover({toRectRange:function(ae){var le=[ae,[0,100]];return $&&le.reverse(),le},fromRectRange:function(ae){return ae[$]}},z,oe,[[["w"],["e"]],[["n"],["s"]]][$])},getCreatingRange:function(z){var oe=getTrackEnds(z),ae=mathMin$1(oe[0][$],oe[1][$]),le=mathMax$1(oe[0][$],oe[1][$]);return[ae,le]},updateCoverShape:function(z,oe,ae,le){var ue,pe=getPanelByCover(z,oe);if(pe!==BRUSH_PANEL_GLOBAL&&pe.getLinearBrushOtherExtent)ue=pe.getLinearBrushOtherExtent($);else{var _e=z._zr;ue=[0,[_e.getWidth(),_e.getHeight()][1-$]]}var Ce=[ae,ue];$&&Ce.reverse(),updateBaseRect(z,oe,Ce,le)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath($){return $=normalizeRect($),function(z){return clipPointsByRect(z,$)}}function makeLinearBrushOtherExtent($,z){return $=normalizeRect($),function(oe){var ae=z??oe,le=ae?$.width:$.height,ue=ae?$.x:$.y;return[ue,ue+(le||0)]}}function makeRectIsTargetByCursor($,z,oe){var ae=normalizeRect($);return function(le,ue){return ae.contain(ue[0],ue[1])&&!onIrrelevantElement(le,z,oe)}}function normalizeRect($){return BoundingRect$1.create($)}function isEC4CompatibleStyle($,z,oe,ae){return $&&($.legacy||$.legacy!==!1&&!oe&&!ae&&z!=="tspan"&&(z==="text"||hasOwn($,"text")))}function convertFromEC4CompatibleStyle($,z,oe){var ae=$,le,ue,pe;if(z==="text")pe=ae;else{pe={},hasOwn(ae,"text")&&(pe.text=ae.text),hasOwn(ae,"rich")&&(pe.rich=ae.rich),hasOwn(ae,"textFill")&&(pe.fill=ae.textFill),hasOwn(ae,"textStroke")&&(pe.stroke=ae.textStroke),hasOwn(ae,"fontFamily")&&(pe.fontFamily=ae.fontFamily),hasOwn(ae,"fontSize")&&(pe.fontSize=ae.fontSize),hasOwn(ae,"fontStyle")&&(pe.fontStyle=ae.fontStyle),hasOwn(ae,"fontWeight")&&(pe.fontWeight=ae.fontWeight),ue={type:"text",style:pe,silent:!0},le={};var _e=hasOwn(ae,"textPosition");oe?le.position=_e?ae.textPosition:"inside":_e&&(le.position=ae.textPosition),hasOwn(ae,"textPosition")&&(le.position=ae.textPosition),hasOwn(ae,"textOffset")&&(le.offset=ae.textOffset),hasOwn(ae,"textRotation")&&(le.rotation=ae.textRotation),hasOwn(ae,"textDistance")&&(le.distance=ae.textDistance)}return convertEC4CompatibleRichItem(pe,$),each$c(pe.rich,function(Ce){convertEC4CompatibleRichItem(Ce,Ce)}),{textConfig:le,textContent:ue}}function convertEC4CompatibleRichItem($,z){z&&(z.font=z.textFont||z.font,hasOwn(z,"textStrokeWidth")&&($.lineWidth=z.textStrokeWidth),hasOwn(z,"textAlign")&&($.align=z.textAlign),hasOwn(z,"textVerticalAlign")&&($.verticalAlign=z.textVerticalAlign),hasOwn(z,"textLineHeight")&&($.lineHeight=z.textLineHeight),hasOwn(z,"textWidth")&&($.width=z.textWidth),hasOwn(z,"textHeight")&&($.height=z.textHeight),hasOwn(z,"textBackgroundColor")&&($.backgroundColor=z.textBackgroundColor),hasOwn(z,"textPadding")&&($.padding=z.textPadding),hasOwn(z,"textBorderColor")&&($.borderColor=z.textBorderColor),hasOwn(z,"textBorderWidth")&&($.borderWidth=z.textBorderWidth),hasOwn(z,"textBorderRadius")&&($.borderRadius=z.textBorderRadius),hasOwn(z,"textBoxShadowColor")&&($.shadowColor=z.textBoxShadowColor),hasOwn(z,"textBoxShadowBlur")&&($.shadowBlur=z.textBoxShadowBlur),hasOwn(z,"textBoxShadowOffsetX")&&($.shadowOffsetX=z.textBoxShadowOffsetX),hasOwn(z,"textBoxShadowOffsetY")&&($.shadowOffsetY=z.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function($,z){return $[z]=1,$},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig($,z,oe,ae,le){var ue=$+"Animation",pe=getAnimationConfig($,ae,le)||{},_e=transitionInnerStore(z).userDuring;return pe.duration>0&&(pe.during=_e?bind$1(duringCall,{el:z,userDuring:_e}):null,pe.setToFinal=!0,pe.scope=$),extend(pe,oe[ue]),pe}function applyUpdateTransition($,z,oe,ae){ae=ae||{};var le=ae.dataIndex,ue=ae.isInit,pe=ae.clearStyle,_e=oe.isAnimationEnabled(),Ce=transitionInnerStore($),$e=z.style;Ce.userDuring=z.during;var xe={},Ie={};if(prepareTransformAllPropsFinal($,z,Ie),prepareShapeOrExtraAllPropsFinal("shape",z,Ie),prepareShapeOrExtraAllPropsFinal("extra",z,Ie),!ue&&_e&&(prepareTransformTransitionFrom($,z,xe),prepareShapeOrExtraTransitionFrom("shape",$,z,xe),prepareShapeOrExtraTransitionFrom("extra",$,z,xe),prepareStyleTransitionFrom($,z,$e,xe)),Ie.style=$e,applyPropsDirectly($,Ie,pe),applyMiscProps($,z),_e)if(ue){var Fe={};each$c(ELEMENT_ANIMATABLE_PROPS,function(Ue){var qe=Ue?z[Ue]:z;qe&&qe.enterFrom&&(Ue&&(Fe[Ue]=Fe[Ue]||{}),extend(Ue?Fe[Ue]:Fe,qe.enterFrom))});var ze=getElementAnimationConfig("enter",$,z,oe,le);ze.duration>0&&$.animateFrom(Fe,ze)}else applyPropsTransition($,z,le||0,oe,xe);updateLeaveTo($,z),$e?$.dirty():$.markRedraw()}function updateLeaveTo($,z){for(var oe=transitionInnerStore($).leaveToProps,ae=0;ae<ELEMENT_ANIMATABLE_PROPS.length;ae++){var le=ELEMENT_ANIMATABLE_PROPS[ae],ue=le?z[le]:z;ue&&ue.leaveTo&&(oe||(oe=transitionInnerStore($).leaveToProps={}),le&&(oe[le]=oe[le]||{}),extend(le?oe[le]:oe,ue.leaveTo))}}function applyLeaveTransition($,z,oe,ae){if($){var le=$.parent,ue=transitionInnerStore($).leaveToProps;if(ue){var pe=getElementAnimationConfig("update",$,z,oe,0);pe.done=function(){le.remove($),ae&&ae()},$.animateTo(ue,pe)}else le.remove($),ae&&ae()}}function isTransitionAll($){return $==="all"}function applyPropsDirectly($,z,oe){var ae=z.style;if(!$.isGroup&&ae){if(oe){$.useStyle({});for(var le=$.animators,ue=0;ue<le.length;ue++){var pe=le[ue];pe.targetName==="style"&&pe.changeTarget($.style)}}$.setStyle(ae)}z&&(z.style=null,z&&$.attr(z),z.style=ae)}function applyPropsTransition($,z,oe,ae,le){if(le){var ue=getElementAnimationConfig("update",$,z,ae,oe);ue.duration>0&&$.animateFrom(le,ue)}}function applyMiscProps($,z){hasOwn(z,"silent")&&($.silent=z.silent),hasOwn(z,"ignore")&&($.ignore=z.ignore),$ instanceof Displayable$1&&hasOwn(z,"invisible")&&($.invisible=z.invisible),$ instanceof Path$1&&hasOwn(z,"autoBatch")&&($.autoBatch=z.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function($,z){return tmpDuringScope.el[$]=z,this},getTransform:function($){return tmpDuringScope.el[$]},setShape:function($,z){var oe=tmpDuringScope.el,ae=oe.shape||(oe.shape={});return ae[$]=z,oe.dirtyShape&&oe.dirtyShape(),this},getShape:function($){var z=tmpDuringScope.el.shape;if(z)return z[$]},setStyle:function($,z){var oe=tmpDuringScope.el,ae=oe.style;return ae&&(ae[$]=z,oe.dirtyStyle&&oe.dirtyStyle()),this},getStyle:function($){var z=tmpDuringScope.el.style;if(z)return z[$]},setExtra:function($,z){var oe=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return oe[$]=z,this},getExtra:function($){var z=tmpDuringScope.el.extra;if(z)return z[$]}};function duringCall(){var $=this,z=$.el;if(z){var oe=transitionInnerStore(z).userDuring,ae=$.userDuring;if(oe!==ae){$.el=$.userDuring=null;return}tmpDuringScope.el=z,ae(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom($,z,oe,ae){var le=oe[$];if(le){var ue=z[$],pe;if(ue){var _e=oe.transition,Ce=le.transition;if(Ce)if(!pe&&(pe=ae[$]={}),isTransitionAll(Ce))extend(pe,ue);else for(var $e=normalizeToArray(Ce),xe=0;xe<$e.length;xe++){var Ie=$e[xe],Fe=ue[Ie];pe[Ie]=Fe}else if(isTransitionAll(_e)||indexOf(_e,$)>=0){!pe&&(pe=ae[$]={});for(var ze=keys(ue),xe=0;xe<ze.length;xe++){var Ie=ze[xe],Fe=ue[Ie];isNonStyleTransitionEnabled(le[Ie],Fe)&&(pe[Ie]=Fe)}}}}}function prepareShapeOrExtraAllPropsFinal($,z,oe){var ae=z[$];if(ae)for(var le=oe[$]={},ue=keys(ae),pe=0;pe<ue.length;pe++){var _e=ue[pe];le[_e]=cloneValue(ae[_e])}}function prepareTransformTransitionFrom($,z,oe){for(var ae=z.transition,le=isTransitionAll(ae)?TRANSFORMABLE_PROPS:normalizeToArray(ae||[]),ue=0;ue<le.length;ue++){var pe=le[ue];if(!(pe==="style"||pe==="shape"||pe==="extra")){var _e=$[pe];oe[pe]=_e}}}function prepareTransformAllPropsFinal($,z,oe){for(var ae=0;ae<LEGACY_TRANSFORM_PROPS.length;ae++){var le=LEGACY_TRANSFORM_PROPS[ae],ue=LEGACY_TRANSFORM_PROPS_MAP[le],pe=z[le];pe&&(oe[ue[0]]=pe[0],oe[ue[1]]=pe[1])}for(var ae=0;ae<TRANSFORMABLE_PROPS.length;ae++){var _e=TRANSFORMABLE_PROPS[ae];z[_e]!=null&&(oe[_e]=z[_e])}}function prepareStyleTransitionFrom($,z,oe,ae){if(oe){var le=$.style,ue;if(le){var pe=oe.transition,_e=z.transition;if(pe&&!isTransitionAll(pe)){var Ce=normalizeToArray(pe);!ue&&(ue=ae.style={});for(var $e=0;$e<Ce.length;$e++){var xe=Ce[$e],Ie=le[xe];ue[xe]=Ie}}else if($.getAnimationStyleProps&&(isTransitionAll(_e)||isTransitionAll(pe)||indexOf(_e,"style")>=0)){var Fe=$.getAnimationStyleProps(),ze=Fe?Fe.style:null;if(ze){!ue&&(ue=ae.style={});for(var Ue=keys(oe),$e=0;$e<Ue.length;$e++){var xe=Ue[$e];if(ze[xe]){var Ie=le[xe];ue[xe]=Ie}}}}}}}function isNonStyleTransitionEnabled($,z){return isArrayLike($)?$!==z:$!=null&&isFinite($)}var getStateToRestore=makeInner(),KEYFRAME_EXCLUDE_KEYS=["percent","easing","shape","style","extra"];function stopPreviousKeyframeAnimationAndRestore($){$.stopAnimation("keyframe"),$.attr(getStateToRestore($))}function applyKeyframeAnimation($,z,oe){if(!(!oe.isAnimationEnabled()||!z)){if(isArray$1(z)){each$c(z,function(_e){applyKeyframeAnimation($,_e,oe)});return}var ae=z.keyframes,le=z.duration;if(oe&&le==null){var ue=getAnimationConfig("enter",oe,0);le=ue&&ue.duration}if(!(!ae||!le)){var pe=getStateToRestore($);each$c(ELEMENT_ANIMATABLE_PROPS,function(_e){if(!(_e&&!$[_e])){var Ce;ae.sort(function($e,xe){return $e.percent-xe.percent}),each$c(ae,function($e){var xe=$.animators,Ie=_e?$e[_e]:$e;if(Ie){var Fe=keys(Ie);if(_e||(Fe=filter(Fe,function(qe){return indexOf(KEYFRAME_EXCLUDE_KEYS,qe)<0})),!!Fe.length){Ce||(Ce=$.animate(_e,z.loop,!0),Ce.scope="keyframe");for(var ze=0;ze<xe.length;ze++)xe[ze]!==Ce&&xe[ze].targetName===Ce.targetName&&xe[ze].stopTracks(Fe);_e&&(pe[_e]=pe[_e]||{});var Ue=_e?pe[_e]:pe;each$c(Fe,function(qe){Ue[qe]=((_e?$[_e]:$)||{})[qe]}),Ce.whenWithKeys(le*$e.percent,Ie,Fe,$e.easing)}}}),Ce&&Ce.delay(z.delay||0).duration(le).start(z.easing)}})}}}var inner$5=makeInner(),clone=clone$3,bind=bind$1,BaseAxisPointer=function(){function $(){this._dragging=!1,this.animationThreshold=15}return $.prototype.render=function(z,oe,ae,le){var ue=oe.get("value"),pe=oe.get("status");if(this._axisModel=z,this._axisPointerModel=oe,this._api=ae,!(!le&&this._lastValue===ue&&this._lastStatus===pe)){this._lastValue=ue,this._lastStatus=pe;var _e=this._group,Ce=this._handle;if(!pe||pe==="hide"){_e&&_e.hide(),Ce&&Ce.hide();return}_e&&_e.show(),Ce&&Ce.show();var $e={};this.makeElOption($e,ue,z,oe,ae);var xe=$e.graphicKey;xe!==this._lastGraphicKey&&this.clear(ae),this._lastGraphicKey=xe;var Ie=this._moveAnimation=this.determineAnimation(z,oe);if(!_e)_e=this._group=new Group$3,this.createPointerEl(_e,$e,z,oe),this.createLabelEl(_e,$e,z,oe),ae.getZr().add(_e);else{var Fe=curry$1(updateProps,oe,Ie);this.updatePointerEl(_e,$e,Fe),this.updateLabelEl(_e,$e,Fe,oe)}updateMandatoryProps(_e,oe,!0),this._renderHandle(ue)}},$.prototype.remove=function(z){this.clear(z)},$.prototype.dispose=function(z){this.clear(z)},$.prototype.determineAnimation=function(z,oe){var ae=oe.get("animation"),le=z.axis,ue=le.type==="category",pe=oe.get("snap");if(!pe&&!ue)return!1;if(ae==="auto"||ae==null){var _e=this.animationThreshold;if(ue&&le.getBandWidth()>_e)return!0;if(pe){var Ce=getAxisInfo(z).seriesDataCount,$e=le.getExtent();return Math.abs($e[0]-$e[1])/Ce>_e}return!1}return ae===!0},$.prototype.makeElOption=function(z,oe,ae,le,ue){},$.prototype.createPointerEl=function(z,oe,ae,le){var ue=oe.pointer;if(ue){var pe=inner$5(z).pointerEl=new graphic$1[ue.type](clone(oe.pointer));z.add(pe)}},$.prototype.createLabelEl=function(z,oe,ae,le){if(oe.label){var ue=inner$5(z).labelEl=new ZRText$1(clone(oe.label));z.add(ue),updateLabelShowHide(ue,le)}},$.prototype.updatePointerEl=function(z,oe,ae){var le=inner$5(z).pointerEl;le&&oe.pointer&&(le.setStyle(oe.pointer.style),ae(le,{shape:oe.pointer.shape}))},$.prototype.updateLabelEl=function(z,oe,ae,le){var ue=inner$5(z).labelEl;ue&&(ue.setStyle(oe.label.style),ae(ue,{x:oe.label.x,y:oe.label.y}),updateLabelShowHide(ue,le))},$.prototype._renderHandle=function(z){if(!(this._dragging||!this.updateHandleTransform)){var oe=this._axisPointerModel,ae=this._api.getZr(),le=this._handle,ue=oe.getModel("handle"),pe=oe.get("status");if(!ue.get("show")||!pe||pe==="hide"){le&&ae.remove(le),this._handle=null;return}var _e;this._handle||(_e=!0,le=this._handle=createIcon(ue.get("icon"),{cursor:"move",draggable:!0,onmousemove:function($e){stop($e.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),ae.add(le)),updateMandatoryProps(le,oe,!1),le.setStyle(ue.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var Ce=ue.get("size");isArray$1(Ce)||(Ce=[Ce,Ce]),le.scaleX=Ce[0]/2,le.scaleY=Ce[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",ue.get("throttle")||0,"fixRate"),this._moveHandleToValue(z,_e)}},$.prototype._moveHandleToValue=function(z,oe){updateProps(this._axisPointerModel,!oe&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(z,this._axisModel,this._axisPointerModel)))},$.prototype._onHandleDragMove=function(z,oe){var ae=this._handle;if(ae){this._dragging=!0;var le=this.updateHandleTransform(getHandleTransProps(ae),[z,oe],this._axisModel,this._axisPointerModel);this._payloadInfo=le,ae.stopAnimation(),ae.attr(getHandleTransProps(le)),inner$5(ae).lastProp=null,this._doDispatchAxisPointer()}},$.prototype._doDispatchAxisPointer=function(){var z=this._handle;if(z){var oe=this._payloadInfo,ae=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:oe.cursorPoint[0],y:oe.cursorPoint[1],tooltipOption:oe.tooltipOption,axesInfo:[{axisDim:ae.axis.dim,axisIndex:ae.componentIndex}]})}},$.prototype._onHandleDragEnd=function(){this._dragging=!1;var z=this._handle;if(z){var oe=this._axisPointerModel.get("value");this._moveHandleToValue(oe),this._api.dispatchAction({type:"hideTip"})}},$.prototype.clear=function(z){this._lastValue=null,this._lastStatus=null;var oe=z.getZr(),ae=this._group,le=this._handle;oe&&ae&&(this._lastGraphicKey=null,ae&&oe.remove(ae),le&&oe.remove(le),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},$.prototype.doClear=function(){},$.prototype.buildLabel=function(z,oe,ae){return ae=ae||0,{x:z[ae],y:z[1-ae],width:oe[ae],height:oe[1-ae]}},$}();function updateProps($,z,oe,ae){propsEqual(inner$5(oe).lastProp,ae)||(inner$5(oe).lastProp=ae,z?updateProps$1(oe,ae,$):(oe.stopAnimation(),oe.attr(ae)))}function propsEqual($,z){if(isObject$3($)&&isObject$3(z)){var oe=!0;return each$c(z,function(ae,le){oe=oe&&propsEqual($[le],ae)}),!!oe}else return $===z}function updateLabelShowHide($,z){$[z.get(["label","show"])?"show":"hide"]()}function getHandleTransProps($){return{x:$.x||0,y:$.y||0,rotation:$.rotation||0}}function updateMandatoryProps($,z,oe){var ae=z.get("z"),le=z.get("zlevel");$&&$.traverse(function(ue){ue.type!=="group"&&(ae!=null&&(ue.z=ae),le!=null&&(ue.zlevel=le),ue.silent=oe)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle($){var z=$.get("type"),oe=$.getModel(z+"Style"),ae;return z==="line"?(ae=oe.getLineStyle(),ae.fill=null):z==="shadow"&&(ae=oe.getAreaStyle(),ae.stroke=null),ae}function buildLabelElOption($,z,oe,ae,le){var ue=oe.get("value"),pe=getValueLabel(ue,z.axis,z.ecModel,oe.get("seriesDataIndices"),{precision:oe.get(["label","precision"]),formatter:oe.get(["label","formatter"])}),_e=oe.getModel("label"),Ce=normalizeCssArray(_e.get("padding")||0),$e=_e.getFont(),xe=getBoundingRect(pe,$e),Ie=le.position,Fe=xe.width+Ce[1]+Ce[3],ze=xe.height+Ce[0]+Ce[2],Ue=le.align;Ue==="right"&&(Ie[0]-=Fe),Ue==="center"&&(Ie[0]-=Fe/2);var qe=le.verticalAlign;qe==="bottom"&&(Ie[1]-=ze),qe==="middle"&&(Ie[1]-=ze/2),confineInContainer(Ie,Fe,ze,ae);var At=_e.get("backgroundColor");(!At||At==="auto")&&(At=z.get(["axisLine","lineStyle","color"])),$.label={x:Ie[0],y:Ie[1],style:createTextStyle$1(_e,{text:pe,font:$e,fill:_e.getTextColor(),padding:Ce,backgroundColor:At}),z2:10}}function confineInContainer($,z,oe,ae){var le=ae.getWidth(),ue=ae.getHeight();$[0]=Math.min($[0]+z,le)-z,$[1]=Math.min($[1]+oe,ue)-oe,$[0]=Math.max($[0],0),$[1]=Math.max($[1],0)}function getValueLabel($,z,oe,ae,le){$=z.scale.parse($);var ue=z.scale.getLabel({value:$},{precision:le.precision}),pe=le.formatter;if(pe){var _e={value:getAxisRawValue(z,{value:$}),axisDimension:z.dim,axisIndex:z.index,seriesData:[]};each$c(ae,function(Ce){var $e=oe.getSeriesByIndex(Ce.seriesIndex),xe=Ce.dataIndexInside,Ie=$e&&$e.getDataParams(xe);Ie&&_e.seriesData.push(Ie)}),isString(pe)?ue=pe.replace("{value}",ue):isFunction(pe)&&(ue=pe(_e))}return ue}function getTransformedPosition($,z,oe){var ae=create();return rotate(ae,ae,oe.rotation),translate(ae,ae,oe.position),applyTransform([$.dataToCoord(z),(oe.labelOffset||0)+(oe.labelDirection||1)*(oe.labelMargin||0)],ae)}function buildCartesianSingleLabelElOption($,z,oe,ae,le,ue){var pe=AxisBuilder$1.innerTextLayout(oe.rotation,0,oe.labelDirection);oe.labelMargin=le.get(["label","margin"]),buildLabelElOption(z,ae,le,ue,{position:getTransformedPosition(ae.axis,$,oe),align:pe.textAlign,verticalAlign:pe.textVerticalAlign})}function makeLineShape($,z,oe){return oe=oe||0,{x1:$[oe],y1:$[1-oe],x2:z[oe],y2:z[1-oe]}}function makeRectShape($,z,oe){return oe=oe||0,{x:$[oe],y:$[1-oe],width:z[oe],height:z[1-oe]}}var CartesianAxisPointer=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.makeElOption=function(oe,ae,le,ue,pe){var _e=le.axis,Ce=_e.grid,$e=ue.get("type"),xe=getCartesian(Ce,_e).getOtherAxis(_e).getGlobalExtent(),Ie=_e.toGlobalCoord(_e.dataToCoord(ae,!0));if($e&&$e!=="none"){var Fe=buildElStyle(ue),ze=pointerShapeBuilder[$e](_e,Ie,xe);ze.style=Fe,oe.graphicKey=ze.type,oe.pointer=ze}var Ue=layout$1(Ce.model,le);buildCartesianSingleLabelElOption(ae,oe,Ue,le,ue,pe)},z.prototype.getHandleTransform=function(oe,ae,le){var ue=layout$1(ae.axis.grid.model,ae,{labelInside:!1});ue.labelMargin=le.get(["handle","margin"]);var pe=getTransformedPosition(ae.axis,oe,ue);return{x:pe[0],y:pe[1],rotation:ue.rotation+(ue.labelDirection<0?Math.PI:0)}},z.prototype.updateHandleTransform=function(oe,ae,le,ue){var pe=le.axis,_e=pe.grid,Ce=pe.getGlobalExtent(!0),$e=getCartesian(_e,pe).getOtherAxis(pe).getGlobalExtent(),xe=pe.dim==="x"?0:1,Ie=[oe.x,oe.y];Ie[xe]+=ae[xe],Ie[xe]=Math.min(Ce[1],Ie[xe]),Ie[xe]=Math.max(Ce[0],Ie[xe]);var Fe=($e[1]+$e[0])/2,ze=[Fe,Fe];ze[xe]=Ie[xe];var Ue=[{verticalAlign:"middle"},{align:"center"}];return{x:Ie[0],y:Ie[1],rotation:oe.rotation,cursorPoint:ze,tooltipOption:Ue[xe]}},z}(BaseAxisPointer$1);function getCartesian($,z){var oe={};return oe[z.dim+"AxisIndex"]=z.index,$.getCartesian(oe)}var pointerShapeBuilder={line:function($,z,oe){var ae=makeLineShape([z,oe[0]],[z,oe[1]],getAxisDimIndex($));return{type:"Line",subPixelOptimize:!0,shape:ae}},shadow:function($,z,oe){var ae=Math.max(1,$.getBandWidth()),le=oe[1]-oe[0];return{type:"Rect",shape:makeRectShape([z-ae/2,oe[0]],[ae,le],getAxisDimIndex($))}}};function getAxisDimIndex($){return $.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="axisPointer",z.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},z}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register($,z,oe){if(!env$1.node){var ae=z.getZr();inner$4(ae).records||(inner$4(ae).records={}),initGlobalListeners(ae,z);var le=inner$4(ae).records[$]||(inner$4(ae).records[$]={});le.handler=oe}}function initGlobalListeners($,z){if(inner$4($).initialized)return;inner$4($).initialized=!0,oe("click",curry$1(doEnter,"click")),oe("mousemove",curry$1(doEnter,"mousemove")),oe("globalout",onLeave);function oe(ae,le){$.on(ae,function(ue){var pe=makeDispatchAction$1(z);each$8(inner$4($).records,function(_e){_e&&le(_e,ue,pe.dispatchAction)}),dispatchTooltipFinally(pe.pendings,z)})}}function dispatchTooltipFinally($,z){var oe=$.showTip.length,ae=$.hideTip.length,le;oe?le=$.showTip[oe-1]:ae&&(le=$.hideTip[ae-1]),le&&(le.dispatchAction=null,z.dispatchAction(le))}function onLeave($,z,oe){$.handler("leave",null,oe)}function doEnter($,z,oe,ae){z.handler($,oe,ae)}function makeDispatchAction$1($){var z={showTip:[],hideTip:[]},oe=function(ae){var le=z[ae.type];le?le.push(ae):(ae.dispatchAction=oe,$.dispatchAction(ae))};return{dispatchAction:oe,pendings:z}}function unregister($,z){if(!env$1.node){var oe=z.getZr(),ae=(inner$4(oe).records||{})[$];ae&&(inner$4(oe).records[$]=null)}}var AxisPointerView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,le){var ue=ae.getComponent("tooltip"),pe=oe.get("triggerOn")||ue&&ue.get("triggerOn")||"mousemove|click";register("axisPointer",le,function(_e,Ce,$e){pe!=="none"&&(_e==="leave"||pe.indexOf(_e)>=0)&&$e({type:"updateAxisPointer",currTrigger:_e,x:Ce&&Ce.offsetX,y:Ce&&Ce.offsetY})})},z.prototype.remove=function(oe,ae){unregister("axisPointer",ae)},z.prototype.dispose=function(oe,ae){unregister("axisPointer",ae)},z.type="axisPointer",z}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries($,z){var oe=[],ae=$.seriesIndex,le;if(ae==null||!(le=z.getSeriesByIndex(ae)))return{point:[]};var ue=le.getData(),pe=queryDataIndex(ue,$);if(pe==null||pe<0||isArray$1(pe))return{point:[]};var _e=ue.getItemGraphicEl(pe),Ce=le.coordinateSystem;if(le.getTooltipPosition)oe=le.getTooltipPosition(pe)||[];else if(Ce&&Ce.dataToPoint)if($.isStacked){var $e=Ce.getBaseAxis(),xe=Ce.getOtherAxis($e),Ie=xe.dim,Fe=$e.dim,ze=Ie==="x"||Ie==="radius"?1:0,Ue=ue.mapDimension(Fe),qe=[];qe[ze]=ue.get(Ue,pe),qe[1-ze]=ue.get(ue.getCalculationInfo("stackResultDimension"),pe),oe=Ce.dataToPoint(qe)||[]}else oe=Ce.dataToPoint(ue.getValues(map$2(Ce.dimensions,function(Lt){return ue.mapDimension(Lt)}),pe))||[];else if(_e){var At=_e.getBoundingRect().clone();At.applyTransform(_e.transform),oe=[At.x+At.width/2,At.y+At.height/2]}return{point:oe,el:_e}}var inner$3=makeInner();function axisTrigger($,z,oe){var ae=$.currTrigger,le=[$.x,$.y],ue=$,pe=$.dispatchAction||bind$1(oe.dispatchAction,oe),_e=z.getComponent("axisPointer").coordSysAxesInfo;if(_e){illegalPoint(le)&&(le=findPointFromSeries({seriesIndex:ue.seriesIndex,dataIndex:ue.dataIndex},z).point);var Ce=illegalPoint(le),$e=ue.axesInfo,xe=_e.axesInfo,Ie=ae==="leave"||illegalPoint(le),Fe={},ze={},Ue={list:[],map:{}},qe={showPointer:curry$1(showPointer,ze),showTooltip:curry$1(showTooltip,Ue)};each$c(_e.coordSysMap,function(Lt,hn){var vn=Ce||Lt.containPoint(le);each$c(_e.coordSysAxesInfo[hn],function(_n,bn){var Sn=_n.axis,Cn=findInputAxisInfo($e,_n);if(!Ie&&vn&&(!$e||Cn)){var En=Cn&&Cn.value;En==null&&!Ce&&(En=Sn.pointToData(le)),En!=null&&processOnAxis(_n,En,qe,!1,Fe)}})});var At={};return each$c(xe,function(Lt,hn){var vn=Lt.linkGroup;vn&&!ze[hn]&&each$c(vn.axesInfo,function(_n,bn){var Sn=ze[bn];if(_n!==Lt&&Sn){var Cn=Sn.value;vn.mapper&&(Cn=Lt.axis.scale.parse(vn.mapper(Cn,makeMapperParam(_n),makeMapperParam(Lt)))),At[Lt.key]=Cn}})}),each$c(At,function(Lt,hn){processOnAxis(xe[hn],Lt,qe,!0,Fe)}),updateModelActually(ze,xe,Fe),dispatchTooltipActually(Ue,le,$,pe),dispatchHighDownActually(xe,pe,oe),Fe}}function processOnAxis($,z,oe,ae,le){var ue=$.axis;if(!(ue.scale.isBlank()||!ue.containData(z))){if(!$.involveSeries){oe.showPointer($,z);return}var pe=buildPayloadsBySeries(z,$),_e=pe.payloadBatch,Ce=pe.snapToValue;_e[0]&&le.seriesIndex==null&&extend(le,_e[0]),!ae&&$.snap&&ue.containData(Ce)&&Ce!=null&&(z=Ce),oe.showPointer($,z,_e),oe.showTooltip($,pe,Ce)}}function buildPayloadsBySeries($,z){var oe=z.axis,ae=oe.dim,le=$,ue=[],pe=Number.MAX_VALUE,_e=-1;return each$c(z.seriesModels,function(Ce,$e){var xe=Ce.getData().mapDimensionsAll(ae),Ie,Fe;if(Ce.getAxisTooltipData){var ze=Ce.getAxisTooltipData(xe,$,oe);Fe=ze.dataIndices,Ie=ze.nestestValue}else{if(Fe=Ce.getData().indicesOfNearest(xe[0],$,oe.type==="category"?.5:null),!Fe.length)return;Ie=Ce.getData().get(xe[0],Fe[0])}if(!(Ie==null||!isFinite(Ie))){var Ue=$-Ie,qe=Math.abs(Ue);qe<=pe&&((qe<pe||Ue>=0&&_e<0)&&(pe=qe,_e=Ue,le=Ie,ue.length=0),each$c(Fe,function(At){ue.push({seriesIndex:Ce.seriesIndex,dataIndexInside:At,dataIndex:Ce.getData().getRawIndex(At)})}))}}),{payloadBatch:ue,snapToValue:le}}function showPointer($,z,oe,ae){$[z.key]={value:oe,payloadBatch:ae}}function showTooltip($,z,oe,ae){var le=oe.payloadBatch,ue=z.axis,pe=ue.model,_e=z.axisPointerModel;if(!(!z.triggerTooltip||!le.length)){var Ce=z.coordSys.model,$e=makeKey(Ce),xe=$.map[$e];xe||(xe=$.map[$e]={coordSysId:Ce.id,coordSysIndex:Ce.componentIndex,coordSysType:Ce.type,coordSysMainType:Ce.mainType,dataByAxis:[]},$.list.push(xe)),xe.dataByAxis.push({axisDim:ue.dim,axisIndex:pe.componentIndex,axisType:pe.type,axisId:pe.id,value:ae,valueLabelOpt:{precision:_e.get(["label","precision"]),formatter:_e.get(["label","formatter"])},seriesDataIndices:le.slice()})}}function updateModelActually($,z,oe){var ae=oe.axesInfo=[];each$c(z,function(le,ue){var pe=le.axisPointerModel.option,_e=$[ue];_e?(!le.useHandle&&(pe.status="show"),pe.value=_e.value,pe.seriesDataIndices=(_e.payloadBatch||[]).slice()):!le.useHandle&&(pe.status="hide"),pe.status==="show"&&ae.push({axisDim:le.axis.dim,axisIndex:le.axis.model.componentIndex,value:pe.value})})}function dispatchTooltipActually($,z,oe,ae){if(illegalPoint(z)||!$.list.length){ae({type:"hideTip"});return}var le=(($.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};ae({type:"showTip",escapeConnect:!0,x:z[0],y:z[1],tooltipOption:oe.tooltipOption,position:oe.position,dataIndexInside:le.dataIndexInside,dataIndex:le.dataIndex,seriesIndex:le.seriesIndex,dataByCoordSys:$.list})}function dispatchHighDownActually($,z,oe){var ae=oe.getZr(),le="axisPointerLastHighlights",ue=inner$3(ae)[le]||{},pe=inner$3(ae)[le]={};each$c($,function($e,xe){var Ie=$e.axisPointerModel.option;Ie.status==="show"&&each$c(Ie.seriesDataIndices,function(Fe){var ze=Fe.seriesIndex+" | "+Fe.dataIndex;pe[ze]=Fe})});var _e=[],Ce=[];each$c(ue,function($e,xe){!pe[xe]&&Ce.push($e)}),each$c(pe,function($e,xe){!ue[xe]&&_e.push($e)}),Ce.length&&oe.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:Ce}),_e.length&&oe.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:_e})}function findInputAxisInfo($,z){for(var oe=0;oe<($||[]).length;oe++){var ae=$[oe];if(z.axis.dim===ae.axisDim&&z.axis.model.componentIndex===ae.axisIndex)return ae}}function makeMapperParam($){var z=$.axis.model,oe={},ae=oe.axisDim=$.axis.dim;return oe.axisIndex=oe[ae+"AxisIndex"]=z.componentIndex,oe.axisName=oe[ae+"AxisName"]=z.name,oe.axisId=oe[ae+"AxisId"]=z.id,oe}function illegalPoint($){return!$||$[0]==null||isNaN($[0])||$[1]==null||isNaN($[1])}function install$f($){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),$.registerComponentModel(AxisPointerModel$1),$.registerComponentView(AxisPointerView$1),$.registerPreprocessor(function(z){if(z){(!z.axisPointer||z.axisPointer.length===0)&&(z.axisPointer={});var oe=z.axisPointer.link;oe&&!isArray$1(oe)&&(z.axisPointer.link=[oe])}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,function(z,oe){z.getComponent("axisPointer").coordSysAxesInfo=collect(z,oe)}),$.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e($){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption($,z){var oe=$.existing;if(z.id=$.keyInfo.id,!z.type&&oe&&(z.type=oe.type),z.parentId==null){var ae=z.parentOption;ae?z.parentId=ae.id:oe&&(z.parentId=oe.parentId)}z.parentOption=null}function isSetLoc($,z){var oe;return each$c(z,function(ae){$[ae]!=null&&$[ae]!=="auto"&&(oe=!0)}),oe}function mergeNewElOptionToExist($,z,oe){var ae=extend({},oe),le=$[z],ue=oe.$action||"merge";ue==="merge"?le?(merge(le,ae,!0),mergeLayoutParam(le,ae,{ignoreSize:!0}),copyLayoutParams(oe,le),copyTransitionInfo(oe,le),copyTransitionInfo(oe,le,"shape"),copyTransitionInfo(oe,le,"style"),copyTransitionInfo(oe,le,"extra"),oe.clipPath=le.clipPath):$[z]=ae:ue==="replace"?$[z]=ae:ue==="remove"&&le&&($[z]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo($,z,oe){if(oe&&(!$[oe]&&z[oe]&&($[oe]={}),$=$[oe],z=z[oe]),!(!$||!z))for(var ae=oe?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,le=0;le<ae.length;le++){var ue=ae[le];$[ue]==null&&z[ue]!=null&&($[ue]=z[ue])}}function setLayoutInfoToExist($,z){if($&&($.hv=z.hv=[isSetLoc(z,["left","right"]),isSetLoc(z,["top","bottom"])],$.type==="group")){var oe=$,ae=z;oe.width==null&&(oe.width=ae.width=0),oe.height==null&&(oe.height=ae.height=0)}}var GraphicComponentModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.preventAutoZ=!0,oe}return z.prototype.mergeOption=function(oe,ae){var le=this.option.elements;this.option.elements=null,$.prototype.mergeOption.call(this,oe,ae),this.option.elements=le},z.prototype.optionUpdated=function(oe,ae){var le=this.option,ue=(ae?le:oe).elements,pe=le.elements=ae?[]:le.elements,_e=[];this._flatten(ue,_e,null);var Ce=mappingToExists(pe,_e,"normalMerge"),$e=this._elOptionsToUpdate=[];each$c(Ce,function(xe,Ie){var Fe=xe.newOption;Fe&&($e.push(Fe),setKeyInfoToNewElOption(xe,Fe),mergeNewElOptionToExist(pe,Ie,Fe),setLayoutInfoToExist(pe[Ie],Fe))},this),le.elements=filter(pe,function(xe){return xe&&delete xe.$action,xe!=null})},z.prototype._flatten=function(oe,ae,le){each$c(oe,function(ue){if(ue){le&&(ue.parentOption=le),ae.push(ue);var pe=ue.children;pe&&pe.length&&this._flatten(pe,ae,ue),delete ue.children}},this)},z.prototype.useElOptionsToUpdate=function(){var oe=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,oe},z.type="graphic",z.defaultOption={elements:[]},z}(ComponentModel$1),nonShapeGraphicElements={path:null,compoundPath:null,group:Group$3,image:ZRImage$1,text:ZRText$1},inner$2=makeInner(),GraphicComponentView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.init=function(){this._elMap=createHashMap()},z.prototype.render=function(oe,ae,le){oe!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=oe,this._updateElements(oe),this._relocate(oe,le)},z.prototype._updateElements=function(oe){var ae=oe.useElOptionsToUpdate();if(ae){var le=this._elMap,ue=this.group,pe=oe.get("z"),_e=oe.get("zlevel");each$c(ae,function(Ce){var $e=convertOptionIdName(Ce.id,null),xe=$e!=null?le.get($e):null,Ie=convertOptionIdName(Ce.parentId,null),Fe=Ie!=null?le.get(Ie):ue,ze=Ce.type,Ue=Ce.style;ze==="text"&&Ue&&Ce.hv&&Ce.hv[1]&&(Ue.textVerticalAlign=Ue.textBaseline=Ue.verticalAlign=Ue.align=null);var qe=Ce.textContent,At=Ce.textConfig;if(Ue&&isEC4CompatibleStyle(Ue,ze,!!At,!!qe)){var Lt=convertFromEC4CompatibleStyle(Ue,ze,!0);!At&&Lt.textConfig&&(At=Ce.textConfig=Lt.textConfig),!qe&&Lt.textContent&&(qe=Lt.textContent)}var hn=getCleanedElOption(Ce),vn=Ce.$action||"merge",_n=vn==="merge",bn=vn==="replace";if(_n){var Sn=!xe,Cn=xe;Sn?Cn=createEl($e,Fe,Ce.type,le):(Cn&&(inner$2(Cn).isNew=!1),stopPreviousKeyframeAnimationAndRestore(Cn)),Cn&&(applyUpdateTransition(Cn,hn,oe,{isInit:Sn}),updateCommonAttrs(Cn,Ce,pe,_e))}else if(bn){removeEl(xe,Ce,le,oe);var En=createEl($e,Fe,Ce.type,le);En&&(applyUpdateTransition(En,hn,oe,{isInit:!0}),updateCommonAttrs(En,Ce,pe,_e))}else vn==="remove"&&(updateLeaveTo(xe,Ce),removeEl(xe,Ce,le,oe));var $n=le.get($e);if($n&&qe)if(_n){var wn=$n.getTextContent();wn?wn.attr(qe):$n.setTextContent(new ZRText$1(qe))}else bn&&$n.setTextContent(new ZRText$1(qe));if($n){var Tn=Ce.clipPath;if(Tn){var xn=Tn.type,kn=void 0,Sn=!1;if(_n){var Nn=$n.getClipPath();Sn=!Nn||inner$2(Nn).type!==xn,kn=Sn?newEl(xn):Nn}else bn&&(Sn=!0,kn=newEl(xn));$n.setClipPath(kn),applyUpdateTransition(kn,Tn,oe,{isInit:Sn}),applyKeyframeAnimation(kn,Tn.keyframeAnimation,oe)}var Bn=inner$2($n);$n.setTextConfig(At),Bn.option=Ce,setEventData($n,oe,Ce),setTooltipConfig({el:$n,componentModel:oe,itemName:$n.name,itemTooltipOption:Ce.tooltip}),applyKeyframeAnimation($n,Ce.keyframeAnimation,oe)}})}},z.prototype._relocate=function(oe,ae){for(var le=oe.option.elements,ue=this.group,pe=this._elMap,_e=ae.getWidth(),Ce=ae.getHeight(),$e=["x","y"],xe=0;xe<le.length;xe++){var Ie=le[xe],Fe=convertOptionIdName(Ie.id,null),ze=Fe!=null?pe.get(Fe):null;if(!(!ze||!ze.isGroup)){var Ue=ze.parent,qe=Ue===ue,At=inner$2(ze),Lt=inner$2(Ue);At.width=parsePercent(At.option.width,qe?_e:Lt.width)||0,At.height=parsePercent(At.option.height,qe?Ce:Lt.height)||0}}for(var xe=le.length-1;xe>=0;xe--){var Ie=le[xe],Fe=convertOptionIdName(Ie.id,null),ze=Fe!=null?pe.get(Fe):null;if(ze){var Ue=ze.parent,Lt=inner$2(Ue),hn=Ue===ue?{width:_e,height:Ce}:{width:Lt.width,height:Lt.height},vn={},_n=positionElement(ze,Ie,hn,null,{hv:Ie.hv,boundingMode:Ie.bounding},vn);if(!inner$2(ze).isNew&&_n){for(var bn=Ie.transition,Sn={},Cn=0;Cn<$e.length;Cn++){var En=$e[Cn],$n=vn[En];bn&&(isTransitionAll(bn)||indexOf(bn,En)>=0)?Sn[En]=$n:ze[En]=$n}updateProps$1(ze,Sn,oe,0)}else ze.attr(vn)}}},z.prototype._clear=function(){var oe=this,ae=this._elMap;ae.each(function(le){removeEl(le,inner$2(le).option,ae,oe._lastGraphicModel)}),this._elMap=createHashMap()},z.prototype.dispose=function(){this._clear()},z.type="graphic",z}(ComponentView$1);function newEl($){var z=hasOwn(nonShapeGraphicElements,$)?nonShapeGraphicElements[$]:getShapeClass($),oe=new z({});return inner$2(oe).type=$,oe}function createEl($,z,oe,ae){var le=newEl(oe);return z.add(le),ae.set($,le),inner$2(le).id=$,inner$2(le).isNew=!0,le}function removeEl($,z,oe,ae){var le=$&&$.parent;le&&($.type==="group"&&$.traverse(function(ue){removeEl(ue,z,oe,ae)}),applyLeaveTransition($,z,ae),oe.removeKey(inner$2($).id))}function updateCommonAttrs($,z,oe,ae){$.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",ae||0],["z",oe||0],["z2",0]],function(le){var ue=le[0];hasOwn(z,ue)?$[ue]=retrieve2(z[ue],le[1]):$[ue]==null&&($[ue]=le[1])}),each$c(keys(z),function(le){if(le.indexOf("on")===0){var ue=z[le];$[le]=isFunction(ue)?ue:null}}),hasOwn(z,"draggable")&&($.draggable=z.draggable),z.name!=null&&($.name=z.name),z.id!=null&&($.id=z.id)}function getCleanedElOption($){return $=extend({},$),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(z){delete $[z]}),$}function setEventData($,z,oe){var ae=getECData($).eventData;!$.silent&&!$.ignore&&!ae&&(ae=getECData($).eventData={componentType:"graphic",componentIndex:z.componentIndex,name:$.name}),ae&&(ae.info=oe.info)}function install$d($){$.registerComponentModel(GraphicComponentModel),$.registerComponentView(GraphicComponentView),$.registerPreprocessor(function(z){var oe=z.graphic;isArray$1(oe)?!oe[0]||!oe[0].elements?z.graphic=[{elements:oe}]:z.graphic=[z.graphic[0]]:oe&&!oe.elements&&(z.graphic=[{elements:[oe]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported($){var z=$.get("coordinateSystem");return indexOf(SERIES_COORDS,z)>=0}function getAxisMainType($){return $+"Axis"}function findEffectedDataZooms($,z){var oe=createHashMap(),ae=[],le=createHashMap();$.eachComponent({mainType:"dataZoom",query:z},function(xe){le.get(xe.uid)||_e(xe)});var ue;do ue=!1,$.eachComponent("dataZoom",pe);while(ue);function pe(xe){!le.get(xe.uid)&&Ce(xe)&&(_e(xe),ue=!0)}function _e(xe){le.set(xe.uid,!0),ae.push(xe),$e(xe)}function Ce(xe){var Ie=!1;return xe.eachTargetAxis(function(Fe,ze){var Ue=oe.get(Fe);Ue&&Ue[ze]&&(Ie=!0)}),Ie}function $e(xe){xe.eachTargetAxis(function(Ie,Fe){(oe.get(Ie)||oe.set(Ie,[]))[Fe]=!0})}return ae}function collectReferCoordSysModelInfo($){var z=$.ecModel,oe={infoList:[],infoMap:createHashMap()};return $.eachTargetAxis(function(ae,le){var ue=z.getComponent(getAxisMainType(ae),le);if(ue){var pe=ue.getCoordSysModel();if(pe){var _e=pe.uid,Ce=oe.infoMap.get(_e);Ce||(Ce={model:pe,axisModels:[]},oe.infoList.push(Ce),oe.infoMap.set(_e,Ce)),Ce.axisModels.push(ue)}}}),oe}var DataZoomAxisInfo=function(){function $(){this.indexList=[],this.indexMap=[]}return $.prototype.add=function(z){this.indexMap[z]||(this.indexList.push(z),this.indexMap[z]=!0)},$}(),DataZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._autoThrottle=!0,oe._noTarget=!0,oe._rangePropMode=["percent","percent"],oe}return z.prototype.init=function(oe,ae,le){var ue=retrieveRawOption(oe);this.settledOption=ue,this.mergeDefaultAndTheme(oe,le),this._doInit(ue)},z.prototype.mergeOption=function(oe){var ae=retrieveRawOption(oe);merge(this.option,oe,!0),merge(this.settledOption,ae,!0),this._doInit(ae)},z.prototype._doInit=function(oe){var ae=this.option;this._setDefaultThrottle(oe),this._updateRangeUse(oe);var le=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(ue,pe){this._rangePropMode[pe]==="value"&&(ae[ue[0]]=le[ue[0]]=null)},this),this._resetTarget()},z.prototype._resetTarget=function(){var oe=this.get("orient",!0),ae=this._targetAxisInfoMap=createHashMap(),le=this._fillSpecifiedTargetAxis(ae);le?this._orient=oe||this._makeAutoOrientByTargetAxis():(this._orient=oe||"horizontal",this._fillAutoTargetAxisByOrient(ae,this._orient)),this._noTarget=!0,ae.each(function(ue){ue.indexList.length&&(this._noTarget=!1)},this)},z.prototype._fillSpecifiedTargetAxis=function(oe){var ae=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(le){var ue=this.getReferringComponents(getAxisMainType(le),MULTIPLE_REFERRING);if(ue.specified){ae=!0;var pe=new DataZoomAxisInfo;each$c(ue.models,function(_e){pe.add(_e.componentIndex)}),oe.set(le,pe)}},this),ae},z.prototype._fillAutoTargetAxisByOrient=function(oe,ae){var le=this.ecModel,ue=!0;if(ue){var pe=ae==="vertical"?"y":"x",_e=le.findComponents({mainType:pe+"Axis"});Ce(_e,pe)}if(ue){var _e=le.findComponents({mainType:"singleAxis",filter:function(xe){return xe.get("orient",!0)===ae}});Ce(_e,"single")}function Ce($e,xe){var Ie=$e[0];if(Ie){var Fe=new DataZoomAxisInfo;if(Fe.add(Ie.componentIndex),oe.set(xe,Fe),ue=!1,xe==="x"||xe==="y"){var ze=Ie.getReferringComponents("grid",SINGLE_REFERRING).models[0];ze&&each$c($e,function(Ue){Ie.componentIndex!==Ue.componentIndex&&ze===Ue.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&Fe.add(Ue.componentIndex)})}}}ue&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function($e){if(ue){var xe=le.findComponents({mainType:getAxisMainType($e),filter:function(Fe){return Fe.get("type",!0)==="category"}});if(xe[0]){var Ie=new DataZoomAxisInfo;Ie.add(xe[0].componentIndex),oe.set($e,Ie),ue=!1}}},this)},z.prototype._makeAutoOrientByTargetAxis=function(){var oe;return this.eachTargetAxis(function(ae){!oe&&(oe=ae)},this),oe==="y"?"vertical":"horizontal"},z.prototype._setDefaultThrottle=function(oe){if(oe.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var ae=this.ecModel.option;this.option.throttle=ae.animation&&ae.animationDurationUpdate>0?100:20}},z.prototype._updateRangeUse=function(oe){var ae=this._rangePropMode,le=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(ue,pe){var _e=oe[ue[0]]!=null,Ce=oe[ue[1]]!=null;_e&&!Ce?ae[pe]="percent":!_e&&Ce?ae[pe]="value":le?ae[pe]=le[pe]:_e&&(ae[pe]="percent")})},z.prototype.noTarget=function(){return this._noTarget},z.prototype.getFirstTargetAxisModel=function(){var oe;return this.eachTargetAxis(function(ae,le){oe==null&&(oe=this.ecModel.getComponent(getAxisMainType(ae),le))},this),oe},z.prototype.eachTargetAxis=function(oe,ae){this._targetAxisInfoMap.each(function(le,ue){each$c(le.indexList,function(pe){oe.call(ae,ue,pe)})})},z.prototype.getAxisProxy=function(oe,ae){var le=this.getAxisModel(oe,ae);if(le)return le.__dzAxisProxy},z.prototype.getAxisModel=function(oe,ae){var le=this._targetAxisInfoMap.get(oe);if(le&&le.indexMap[ae])return this.ecModel.getComponent(getAxisMainType(oe),ae)},z.prototype.setRawRange=function(oe){var ae=this.option,le=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(ue){(oe[ue[0]]!=null||oe[ue[1]]!=null)&&(ae[ue[0]]=le[ue[0]]=oe[ue[0]],ae[ue[1]]=le[ue[1]]=oe[ue[1]])},this),this._updateRangeUse(oe)},z.prototype.setCalculatedRange=function(oe){var ae=this.option;each$c(["start","startValue","end","endValue"],function(le){ae[le]=oe[le]})},z.prototype.getPercentRange=function(){var oe=this.findRepresentativeAxisProxy();if(oe)return oe.getDataPercentWindow()},z.prototype.getValueRange=function(oe,ae){if(oe==null&&ae==null){var le=this.findRepresentativeAxisProxy();if(le)return le.getDataValueWindow()}else return this.getAxisProxy(oe,ae).getDataValueWindow()},z.prototype.findRepresentativeAxisProxy=function(oe){if(oe)return oe.__dzAxisProxy;for(var ae,le=this._targetAxisInfoMap.keys(),ue=0;ue<le.length;ue++)for(var pe=le[ue],_e=this._targetAxisInfoMap.get(pe),Ce=0;Ce<_e.indexList.length;Ce++){var $e=this.getAxisProxy(pe,_e.indexList[Ce]);if($e.hostedBy(this))return $e;ae||(ae=$e)}return ae},z.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},z.prototype.getOrient=function(){return this._orient},z.type="dataZoom",z.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],z.defaultOption={z:4,filterMode:"filter",start:0,end:100},z}(ComponentModel$1);function retrieveRawOption($){var z={};return each$c(["start","end","startValue","endValue","throttle"],function(oe){$.hasOwnProperty(oe)&&(z[oe]=$[oe])}),z}const DataZoomModel$1=DataZoomModel;var SelectDataZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.select",z}(DataZoomModel$1);const SelectZoomModel=SelectDataZoomModel;var DataZoomView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,le,ue){this.dataZoomModel=oe,this.ecModel=ae,this.api=le},z.type="dataZoom",z}(ComponentView$1);const DataZoomView$1=DataZoomView;var SelectDataZoomView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.select",z}(DataZoomView$1);const SelectZoomView=SelectDataZoomView;var each$7=each$c,asc$1=asc$2,AxisProxy=function(){function $(z,oe,ae,le){this._dimName=z,this._axisIndex=oe,this.ecModel=le,this._dataZoomModel=ae}return $.prototype.hostedBy=function(z){return this._dataZoomModel===z},$.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},$.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},$.prototype.getTargetSeriesModels=function(){var z=[];return this.ecModel.eachSeries(function(oe){if(isCoordSupported(oe)){var ae=getAxisMainType(this._dimName),le=oe.getReferringComponents(ae,SINGLE_REFERRING).models[0];le&&this._axisIndex===le.componentIndex&&z.push(oe)}},this),z},$.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},$.prototype.getMinMaxSpan=function(){return clone$3(this._minMaxSpan)},$.prototype.calculateDataWindow=function(z){var oe=this._dataExtent,ae=this.getAxisModel(),le=ae.axis.scale,ue=this._dataZoomModel.getRangePropMode(),pe=[0,100],_e=[],Ce=[],$e;each$7(["start","end"],function(Fe,ze){var Ue=z[Fe],qe=z[Fe+"Value"];ue[ze]==="percent"?(Ue==null&&(Ue=pe[ze]),qe=le.parse(linearMap$2(Ue,pe,oe))):($e=!0,qe=qe==null?oe[ze]:le.parse(qe),Ue=linearMap$2(qe,oe,pe)),Ce[ze]=qe==null||isNaN(qe)?oe[ze]:qe,_e[ze]=Ue==null||isNaN(Ue)?pe[ze]:Ue}),asc$1(Ce),asc$1(_e);var xe=this._minMaxSpan;$e?Ie(Ce,_e,oe,pe,!1):Ie(_e,Ce,pe,oe,!0);function Ie(Fe,ze,Ue,qe,At){var Lt=At?"Span":"ValueSpan";sliderMove(0,Fe,Ue,"all",xe["min"+Lt],xe["max"+Lt]);for(var hn=0;hn<2;hn++)ze[hn]=linearMap$2(Fe[hn],Ue,qe,!0),At&&(ze[hn]=le.parse(ze[hn]))}return{valueWindow:Ce,percentWindow:_e}},$.prototype.reset=function(z){if(z===this._dataZoomModel){var oe=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,oe),this._updateMinMaxSpan();var ae=this.calculateDataWindow(z.settledOption);this._valueWindow=ae.valueWindow,this._percentWindow=ae.percentWindow,this._setAxisModel()}},$.prototype.filterData=function(z,oe){if(z!==this._dataZoomModel)return;var ae=this._dimName,le=this.getTargetSeriesModels(),ue=z.get("filterMode"),pe=this._valueWindow;if(ue==="none")return;each$7(le,function(Ce){var $e=Ce.getData(),xe=$e.mapDimensionsAll(ae);if(xe.length){if(ue==="weakFilter"){var Ie=$e.getStore(),Fe=map$2(xe,function(ze){return $e.getDimensionIndex(ze)},$e);$e.filterSelf(function(ze){for(var Ue,qe,At,Lt=0;Lt<xe.length;Lt++){var hn=Ie.get(Fe[Lt],ze),vn=!isNaN(hn),_n=hn<pe[0],bn=hn>pe[1];if(vn&&!_n&&!bn)return!0;vn&&(At=!0),_n&&(Ue=!0),bn&&(qe=!0)}return At&&Ue&&qe})}else each$7(xe,function(ze){if(ue==="empty")Ce.setData($e=$e.map(ze,function(qe){return _e(qe)?qe:NaN}));else{var Ue={};Ue[ze]=pe,$e.selectRange(Ue)}});each$7(xe,function(ze){$e.setApproximateExtent(pe,ze)})}});function _e(Ce){return Ce>=pe[0]&&Ce<=pe[1]}},$.prototype._updateMinMaxSpan=function(){var z=this._minMaxSpan={},oe=this._dataZoomModel,ae=this._dataExtent;each$7(["min","max"],function(le){var ue=oe.get(le+"Span"),pe=oe.get(le+"ValueSpan");pe!=null&&(pe=this.getAxisModel().axis.scale.parse(pe)),pe!=null?ue=linearMap$2(ae[0]+pe,ae,[0,100],!0):ue!=null&&(pe=linearMap$2(ue,[0,100],ae,!0)-ae[0]),z[le+"Span"]=ue,z[le+"ValueSpan"]=pe},this)},$.prototype._setAxisModel=function(){var z=this.getAxisModel(),oe=this._percentWindow,ae=this._valueWindow;if(oe){var le=getPixelPrecision(ae,[0,500]);le=Math.min(le,20);var ue=z.axis.scale.rawExtentInfo;oe[0]!==0&&ue.setDeterminedMinMax("min",+ae[0].toFixed(le)),oe[1]!==100&&ue.setDeterminedMinMax("max",+ae[1].toFixed(le)),ue.freeze()}},$}();function calculateDataExtent($,z,oe){var ae=[1/0,-1/0];each$7(oe,function(pe){unionAxisExtentFromData(ae,pe.getData(),z)});var le=$.getAxisModel(),ue=ensureScaleRawExtentInfo(le.axis.scale,le,ae).calculate();return[ue.min,ue.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function($){function z(le){$.eachComponent("dataZoom",function(ue){ue.eachTargetAxis(function(pe,_e){var Ce=$.getComponent(getAxisMainType(pe),_e);le(pe,_e,Ce,ue)})})}z(function(le,ue,pe,_e){pe.__dzAxisProxy=null});var oe=[];z(function(le,ue,pe,_e){pe.__dzAxisProxy||(pe.__dzAxisProxy=new AxisProxy$1(le,ue,_e,$),oe.push(pe.__dzAxisProxy))});var ae=createHashMap();return each$c(oe,function(le){each$c(le.getTargetSeriesModels(),function(ue){ae.set(ue.uid,ue)})}),ae},overallReset:function($,z){$.eachComponent("dataZoom",function(oe){oe.eachTargetAxis(function(ae,le){oe.getAxisProxy(ae,le).reset(oe)}),oe.eachTargetAxis(function(ae,le){oe.getAxisProxy(ae,le).filterData(oe,z)})}),$.eachComponent("dataZoom",function(oe){var ae=oe.findRepresentativeAxisProxy();if(ae){var le=ae.getDataPercentWindow(),ue=ae.getDataValueWindow();oe.setCalculatedRange({start:le[0],end:le[1],startValue:ue[0],endValue:ue[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction($){$.registerAction("dataZoom",function(z,oe){var ae=findEffectedDataZooms(oe,z);each$c(ae,function(le){le.setRawRange({start:z.start,end:z.end,startValue:z.startValue,endValue:z.endValue})})})}var installed$1=!1;function installCommon$1($){installed$1||(installed$1=!0,$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction($),$.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c($){$.registerComponentModel(SelectZoomModel),$.registerComponentView(SelectZoomView),installCommon$1($)}var ToolboxFeature=function(){function $(){}return $}(),features={};function registerFeature($,z){features[$]=z}function getFeature($){return features[$]}var ToolboxModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.optionUpdated=function(){$.prototype.optionUpdated.apply(this,arguments);var oe=this.ecModel;each$c(this.option.feature,function(ae,le){var ue=getFeature(le);ue&&(ue.getDefaultOption&&(ue.defaultOption=ue.getDefaultOption(oe)),merge(ae,ue.defaultOption))})},z.type="toolbox",z.layoutMode={type:"box",ignoreSize:!0},z.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},z}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout($,z,oe){var ae=z.getBoxLayoutParams(),le=z.get("padding"),ue={width:oe.getWidth(),height:oe.getHeight()},pe=getLayoutRect(ae,ue,le);box(z.get("orient"),$,z.get("itemGap"),pe.width,pe.height),positionElement($,ae,ue,le)}function makeBackground($,z){var oe=normalizeCssArray(z.get("padding")),ae=z.getItemStyle(["color","opacity"]);return ae.fill=z.get("backgroundColor"),$=new Rect$2({shape:{x:$.x-oe[3],y:$.y-oe[0],width:$.width+oe[1]+oe[3],height:$.height+oe[0]+oe[2],r:z.get("borderRadius")},style:ae,silent:!0,z2:-1}),$}var ToolboxView=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.render=function(oe,ae,le,ue){var pe=this.group;if(pe.removeAll(),!oe.get("show"))return;var _e=+oe.get("itemSize"),Ce=oe.get("orient")==="vertical",$e=oe.get("feature")||{},xe=this._features||(this._features={}),Ie=[];each$c($e,function(Ue,qe){Ie.push(qe)}),new DataDiffer$1(this._featureNames||[],Ie).add(Fe).update(Fe).remove(curry$1(Fe,null)).execute(),this._featureNames=Ie;function Fe(Ue,qe){var At=Ie[Ue],Lt=Ie[qe],hn=$e[At],vn=new Model$1(hn,oe,oe.ecModel),_n;if(ue&&ue.newTitle!=null&&ue.featureName===At&&(hn.title=ue.newTitle),At&&!Lt){if(isUserFeatureName(At))_n={onclick:vn.option.onclick,featureName:At};else{var bn=getFeature(At);if(!bn)return;_n=new bn}xe[At]=_n}else if(_n=xe[Lt],!_n)return;_n.uid=getUID("toolbox-feature"),_n.model=vn,_n.ecModel=ae,_n.api=le;var Sn=_n instanceof ToolboxFeature;if(!At&&Lt){Sn&&_n.dispose&&_n.dispose(ae,le);return}if(!vn.get("show")||Sn&&_n.unusable){Sn&&_n.remove&&_n.remove(ae,le);return}ze(vn,_n,At),vn.setIconStatus=function(Cn,En){var $n=this.option,wn=this.iconPaths;$n.iconStatus=$n.iconStatus||{},$n.iconStatus[Cn]=En,wn[Cn]&&(En==="emphasis"?enterEmphasis:leaveEmphasis)(wn[Cn])},_n instanceof ToolboxFeature&&_n.render&&_n.render(vn,ae,le,ue)}function ze(Ue,qe,At){var Lt=Ue.getModel("iconStyle"),hn=Ue.getModel(["emphasis","iconStyle"]),vn=qe instanceof ToolboxFeature&&qe.getIcons?qe.getIcons():Ue.get("icon"),_n=Ue.get("title")||{},bn,Sn;isString(vn)?(bn={},bn[At]=vn):bn=vn,isString(_n)?(Sn={},Sn[At]=_n):Sn=_n;var Cn=Ue.iconPaths={};each$c(bn,function(En,$n){var wn=createIcon(En,{},{x:-_e/2,y:-_e/2,width:_e,height:_e});wn.setStyle(Lt.getItemStyle());var Tn=wn.ensureState("emphasis");Tn.style=hn.getItemStyle();var xn=new ZRText$1({style:{text:Sn[$n],align:hn.get("textAlign"),borderRadius:hn.get("textBorderRadius"),padding:hn.get("textPadding"),fill:null},ignore:!0});wn.setTextContent(xn),setTooltipConfig({el:wn,componentModel:oe,itemName:$n,formatterParamsExtra:{title:Sn[$n]}}),wn.__title=Sn[$n],wn.on("mouseover",function(){var kn=hn.getItemStyle(),Nn=Ce?oe.get("right")==null&&oe.get("left")!=="right"?"right":"left":oe.get("bottom")==null&&oe.get("top")!=="bottom"?"bottom":"top";xn.setStyle({fill:hn.get("textFill")||kn.fill||kn.stroke||"#000",backgroundColor:hn.get("textBackgroundColor")}),wn.setTextConfig({position:hn.get("textPosition")||Nn}),xn.ignore=!oe.get("showTitle"),le.enterEmphasis(this)}).on("mouseout",function(){Ue.get(["iconStatus",$n])!=="emphasis"&&le.leaveEmphasis(this),xn.hide()}),(Ue.get(["iconStatus",$n])==="emphasis"?enterEmphasis:leaveEmphasis)(wn),pe.add(wn),wn.on("click",bind$1(qe.onclick,qe,ae,le,$n)),Cn[$n]=wn})}layout(pe,oe,le),pe.add(makeBackground(pe.getBoundingRect(),oe)),Ce||pe.eachChild(function(Ue){var qe=Ue.__title,At=Ue.ensureState("emphasis"),Lt=At.textConfig||(At.textConfig={}),hn=Ue.getTextContent(),vn=hn&&hn.ensureState("emphasis");if(vn&&!isFunction(vn)&&qe){var _n=vn.style||(vn.style={}),bn=getBoundingRect(qe,ZRText$1.makeFont(_n)),Sn=Ue.x+pe.x,Cn=Ue.y+pe.y+_e,En=!1;Cn+bn.height>le.getHeight()&&(Lt.position="top",En=!0);var $n=En?-5-bn.height:_e+10;Sn+bn.width/2>le.getWidth()?(Lt.position=["100%",$n],_n.align="right"):Sn-bn.width/2<0&&(Lt.position=[0,$n],_n.align="left")}})},z.prototype.updateView=function(oe,ae,le,ue){each$c(this._features,function(pe){pe instanceof ToolboxFeature&&pe.updateView&&pe.updateView(pe.model,ae,le,ue)})},z.prototype.remove=function(oe,ae){each$c(this._features,function(le){le instanceof ToolboxFeature&&le.remove&&le.remove(oe,ae)}),this.group.removeAll()},z.prototype.dispose=function(oe,ae){each$c(this._features,function(le){le instanceof ToolboxFeature&&le.dispose&&le.dispose(oe,ae)})},z.type="toolbox",z}(ComponentView$1);function isUserFeatureName($){return $.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.onclick=function(oe,ae){var le=this.model,ue=le.get("name")||oe.get("title.0.text")||"echarts",pe=ae.getZr().painter.getType()==="svg",_e=pe?"svg":le.get("type",!0)||"png",Ce=ae.getConnectedDataURL({type:_e,backgroundColor:le.get("backgroundColor",!0)||oe.get("backgroundColor")||"#fff",connectedBackgroundColor:le.get("connectedBackgroundColor"),excludeComponents:le.get("excludeComponents"),pixelRatio:le.get("pixelRatio")}),$e=env$1.browser;if(isFunction(MouseEvent)&&($e.newEdge||!$e.ie&&!$e.edge)){var xe=document.createElement("a");xe.download=ue+"."+_e,xe.target="_blank",xe.href=Ce;var Ie=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});xe.dispatchEvent(Ie)}else if(window.navigator.msSaveOrOpenBlob||pe){var Fe=Ce.split(","),ze=Fe[0].indexOf("base64")>-1,Ue=pe?decodeURIComponent(Fe[1]):Fe[1];ze&&(Ue=window.atob(Ue));var qe=ue+"."+_e;if(window.navigator.msSaveOrOpenBlob){for(var At=Ue.length,Lt=new Uint8Array(At);At--;)Lt[At]=Ue.charCodeAt(At);var hn=new Blob([Lt]);window.navigator.msSaveOrOpenBlob(hn,qe)}else{var vn=document.createElement("iframe");document.body.appendChild(vn);var _n=vn.contentWindow,bn=_n.document;bn.open("image/svg+xml","replace"),bn.write(Ue),bn.close(),_n.focus(),bn.execCommand("SaveAs",!0,qe),document.body.removeChild(vn)}}else{var Sn=le.get("lang"),Cn='<body style="margin:0;"><img src="'+Ce+'" style="max-width:100%;" title="'+(Sn&&Sn[0]||"")+'" /></body>',En=window.open();En.document.write(Cn),En.document.title=ue}},z.getDefaultOption=function(oe){var ae={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:oe.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:oe.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return ae},z}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.getIcons=function(){var oe=this.model,ae=oe.get("icon"),le={};return each$c(oe.get("type"),function(ue){ae[ue]&&(le[ue]=ae[ue])}),le},z.getDefaultOption=function(oe){var ae={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:oe.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return ae},z.prototype.onclick=function(oe,ae,le){var ue=this.model,pe=ue.get(["seriesIndex",le]);if(seriesOptGenreator[le]){var _e={series:[]},Ce=function(Ie){var Fe=Ie.subType,ze=Ie.id,Ue=seriesOptGenreator[le](Fe,ze,Ie,ue);Ue&&(defaults(Ue,Ie.option),_e.series.push(Ue));var qe=Ie.coordinateSystem;if(qe&&qe.type==="cartesian2d"&&(le==="line"||le==="bar")){var At=qe.getAxesByScale("ordinal")[0];if(At){var Lt=At.dim,hn=Lt+"Axis",vn=Ie.getReferringComponents(hn,SINGLE_REFERRING).models[0],_n=vn.componentIndex;_e[hn]=_e[hn]||[];for(var bn=0;bn<=_n;bn++)_e[hn][_n]=_e[hn][_n]||{};_e[hn][_n].boundaryGap=le==="bar"}}};each$c(radioTypes,function(Ie){indexOf(Ie,le)>=0&&each$c(Ie,function(Fe){ue.setIconStatus(Fe,"normal")})}),ue.setIconStatus(le,"emphasis"),oe.eachComponent({mainType:"series",query:pe==null?null:{seriesIndex:pe}},Ce);var $e,xe=le;le==="stack"&&($e=merge({stack:ue.option.title.tiled,tiled:ue.option.title.stack},ue.option.title),ue.get(["iconStatus",le])!=="emphasis"&&(xe="tiled")),ae.dispatchAction({type:"changeMagicType",currentType:xe,newOption:_e,newTitle:$e,featureName:"magicType"})}},z}(ToolboxFeature),seriesOptGenreator={line:function($,z,oe,ae){if($==="bar")return merge({id:z,type:"line",data:oe.get("data"),stack:oe.get("stack"),markPoint:oe.get("markPoint"),markLine:oe.get("markLine")},ae.get(["option","line"])||{},!0)},bar:function($,z,oe,ae){if($==="line")return merge({id:z,type:"bar",data:oe.get("data"),stack:oe.get("stack"),markPoint:oe.get("markPoint"),markLine:oe.get("markLine")},ae.get(["option","bar"])||{},!0)},stack:function($,z,oe,ae){var le=oe.get("stack")===INNER_STACK_KEYWORD;if($==="line"||$==="bar")return ae.setIconStatus("stack",le?"normal":"emphasis"),merge({id:z,stack:le?"":INNER_STACK_KEYWORD},ae.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function($,z){z.mergeOption($.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries($){var z={},oe=[],ae=[];return $.eachRawSeries(function(le){var ue=le.coordinateSystem;if(ue&&(ue.type==="cartesian2d"||ue.type==="polar")){var pe=ue.getBaseAxis();if(pe.type==="category"){var _e=pe.dim+"_"+pe.index;z[_e]||(z[_e]={categoryAxis:pe,valueAxis:ue.getOtherAxis(pe),series:[]},ae.push({axisDim:pe.dim,axisIndex:pe.index})),z[_e].series.push(le)}else oe.push(le)}else oe.push(le)}),{seriesGroupByCategoryAxis:z,other:oe,meta:ae}}function assembleSeriesWithCategoryAxis($){var z=[];return each$c($,function(oe,ae){var le=oe.categoryAxis,ue=oe.valueAxis,pe=ue.dim,_e=[" "].concat(map$2(oe.series,function(ze){return ze.name})),Ce=[le.model.getCategories()];each$c(oe.series,function(ze){var Ue=ze.getRawData();Ce.push(ze.getRawData().mapArray(Ue.mapDimension(pe),function(qe){return qe}))});for(var $e=[_e.join(ITEM_SPLITER)],xe=0;xe<Ce[0].length;xe++){for(var Ie=[],Fe=0;Fe<Ce.length;Fe++)Ie.push(Ce[Fe][xe]);$e.push(Ie.join(ITEM_SPLITER))}z.push($e.join(`
|
||
`))}),z.join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function assembleOtherSeries($){return map$2($,function(z){var oe=z.getRawData(),ae=[z.name],le=[];return oe.each(oe.dimensions,function(){for(var ue=arguments.length,pe=arguments[ue-1],_e=oe.getName(pe),Ce=0;Ce<ue-1;Ce++)le[Ce]=arguments[Ce];ae.push((_e?_e+ITEM_SPLITER:"")+le.join(ITEM_SPLITER))}),ae.join(`
|
||
`)}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function getContentFromModel($){var z=groupSeries($);return{value:filter([assembleSeriesWithCategoryAxis(z.seriesGroupByCategoryAxis),assembleOtherSeries(z.other)],function(oe){return!!oe.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`),meta:z.meta}}function trim($){return $.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function isTSVFormat($){var z=$.slice(0,$.indexOf(`
|
||
`));if(z.indexOf(ITEM_SPLITER)>=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents($){for(var z=$.split(/\n+/g),oe=trim(z.shift()).split(itemSplitRegex),ae=[],le=map$2(oe,function(Ce){return{name:Ce,data:[]}}),ue=0;ue<z.length;ue++){var pe=trim(z[ue]).split(itemSplitRegex);ae.push(pe.shift());for(var _e=0;_e<pe.length;_e++)le[_e]&&(le[_e].data[ue]=pe[_e])}return{series:le,categories:ae}}function parseListContents($){for(var z=$.split(/\n+/g),oe=trim(z.shift()),ae=[],le=0;le<z.length;le++){var ue=trim(z[le]);if(ue){var pe=ue.split(itemSplitRegex),_e="",Ce=void 0,$e=!1;isNaN(pe[0])?($e=!0,_e=pe[0],pe=pe.slice(1),ae[le]={name:_e,value:[]},Ce=ae[le].value):Ce=ae[le]=[];for(var xe=0;xe<pe.length;xe++)Ce.push(+pe[xe]);Ce.length===1&&($e?ae[le].value=Ce[0]:ae[le]=Ce[0])}}return{name:oe,data:ae}}function parseContents($,z){var oe=$.split(new RegExp(`
|
||
*`+BLOCK_SPLITER+`
|
||
*`,"g")),ae={series:[]};return each$c(oe,function(le,ue){if(isTSVFormat(le)){var pe=parseTSVContents(le),_e=z[ue],Ce=_e.axisDim+"Axis";_e&&(ae[Ce]=ae[Ce]||[],ae[Ce][_e.axisIndex]={data:pe.categories},ae.series=ae.series.concat(pe.series))}else{var pe=parseListContents(le);ae.series.push(pe)}}),ae}var DataView$1=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.onclick=function(oe,ae){setTimeout(function(){ae.dispatchAction({type:"hideTip"})});var le=ae.getDom(),ue=this.model;this._dom&&le.removeChild(this._dom);var pe=document.createElement("div");pe.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",pe.style.backgroundColor=ue.get("backgroundColor")||"#fff";var _e=document.createElement("h4"),Ce=ue.get("lang")||[];_e.innerHTML=Ce[0]||ue.get("title"),_e.style.cssText="margin:10px 20px",_e.style.color=ue.get("textColor");var $e=document.createElement("div"),xe=document.createElement("textarea");$e.style.cssText="overflow:auto";var Ie=ue.get("optionToContent"),Fe=ue.get("contentToOption"),ze=getContentFromModel(oe);if(isFunction(Ie)){var Ue=Ie(ae.getOption());isString(Ue)?$e.innerHTML=Ue:isDom(Ue)&&$e.appendChild(Ue)}else{xe.readOnly=ue.get("readOnly");var qe=xe.style;qe.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",qe.color=ue.get("textColor"),qe.borderColor=ue.get("textareaBorderColor"),qe.backgroundColor=ue.get("textareaColor"),xe.value=ze.value,$e.appendChild(xe)}var At=ze.meta,Lt=document.createElement("div");Lt.style.cssText="position:absolute;bottom:5px;left:0;right:0";var hn="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",vn=document.createElement("div"),_n=document.createElement("div");hn+=";background-color:"+ue.get("buttonColor"),hn+=";color:"+ue.get("buttonTextColor");var bn=this;function Sn(){le.removeChild(pe),bn._dom=null}addEventListener(vn,"click",Sn),addEventListener(_n,"click",function(){if(Fe==null&&Ie!=null||Fe!=null&&Ie==null){Sn();return}var Cn;try{isFunction(Fe)?Cn=Fe($e,ae.getOption()):Cn=parseContents(xe.value,At)}catch(En){throw Sn(),new Error("Data view format error "+En)}Cn&&ae.dispatchAction({type:"changeDataView",newOption:Cn}),Sn()}),vn.innerHTML=Ce[1],_n.innerHTML=Ce[2],_n.style.cssText=vn.style.cssText=hn,!ue.get("readOnly")&&Lt.appendChild(_n),Lt.appendChild(vn),pe.appendChild(_e),pe.appendChild($e),pe.appendChild(Lt),$e.style.height=le.clientHeight-80+"px",le.appendChild(pe),this._dom=pe},z.prototype.remove=function(oe,ae){this._dom&&ae.getDom().removeChild(this._dom)},z.prototype.dispose=function(oe,ae){this.remove(oe,ae)},z.getDefaultOption=function(oe){var ae={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:oe.getLocaleModel().get(["toolbox","dataView","title"]),lang:oe.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return ae},z}(ToolboxFeature);function tryMergeDataOption($,z){return map$2($,function(oe,ae){var le=z&&z[ae];if(isObject$3(le)&&!isArray$1(le)){var ue=isObject$3(oe)&&!isArray$1(oe);ue||(oe={value:oe});var pe=le.name!=null&&oe.name==null;return oe=defaults(oe,le),pe&&delete oe.name,oe}else return oe})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function($,z){var oe=[];each$c($.newOption.series,function(ae){var le=z.getSeriesByName(ae.name)[0];if(!le)oe.push(extend({type:"scatter"},ae));else{var ue=le.get("data");oe.push({name:ae.name,data:tryMergeDataOption(ae.data,ue)})}}),z.mergeOption(defaults({series:oe},$.newOption))});const DataView$2=DataView$1;var each$6=each$c,inner$1=makeInner();function push($,z){var oe=getStoreSnapshots($);each$6(z,function(ae,le){for(var ue=oe.length-1;ue>=0;ue--){var pe=oe[ue];if(pe[le])break}if(ue<0){var _e=$.queryComponents({mainType:"dataZoom",subType:"select",id:le})[0];if(_e){var Ce=_e.getPercentRange();oe[0][le]={dataZoomId:le,start:Ce[0],end:Ce[1]}}}}),oe.push(z)}function pop($){var z=getStoreSnapshots($),oe=z[z.length-1];z.length>1&&z.pop();var ae={};return each$6(oe,function(le,ue){for(var pe=z.length-1;pe>=0;pe--)if(le=z[pe][ue],le){ae[ue]=le;break}}),ae}function clear($){inner$1($).snapshots=null}function count($){return getStoreSnapshots($).length}function getStoreSnapshots($){var z=inner$1($);return z.snapshots||(z.snapshots=[{}]),z.snapshots}var RestoreOption=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.onclick=function(oe,ae){clear(oe),ae.dispatchAction({type:"restore",from:this.uid})},z.getDefaultOption=function(oe){var ae={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:oe.getLocaleModel().get(["toolbox","restore","title"])};return ae},z}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function($,z){z.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function $(z,oe,ae){var le=this;this._targetInfoList=[];var ue=parseFinder(oe,z);each$c(targetInfoBuilders,function(pe,_e){(!ae||!ae.include||indexOf(ae.include,_e)>=0)&&pe(ue,le._targetInfoList)})}return $.prototype.setOutputRanges=function(z,oe){return this.matchOutputRanges(z,oe,function(ae,le,ue){if((ae.coordRanges||(ae.coordRanges=[])).push(le),!ae.coordRange){ae.coordRange=le;var pe=coordConvert[ae.brushType](0,ue,le);ae.__rangeOffset={offset:diffProcessor[ae.brushType](pe.values,ae.range,[1,1]),xyMinMax:pe.xyMinMax}}}),z},$.prototype.matchOutputRanges=function(z,oe,ae){each$c(z,function(le){var ue=this.findTargetInfo(le,oe);ue&&ue!==!0&&each$c(ue.coordSyses,function(pe){var _e=coordConvert[le.brushType](1,pe,le.range,!0);ae(le,_e.values,pe,oe)})},this)},$.prototype.setInputRanges=function(z,oe){each$c(z,function(ae){var le=this.findTargetInfo(ae,oe);if(ae.range=ae.range||[],le&&le!==!0){ae.panelId=le.panelId;var ue=coordConvert[ae.brushType](0,le.coordSys,ae.coordRange),pe=ae.__rangeOffset;ae.range=pe?diffProcessor[ae.brushType](ue.values,pe.offset,getScales(ue.xyMinMax,pe.xyMinMax)):ue.values}},this)},$.prototype.makePanelOpts=function(z,oe){return map$2(this._targetInfoList,function(ae){var le=ae.getPanelRect();return{panelId:ae.panelId,defaultBrushType:oe?oe(ae):null,clipPath:makeRectPanelClipPath(le),isTargetByCursor:makeRectIsTargetByCursor(le,z,ae.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(le)}})},$.prototype.controlSeries=function(z,oe,ae){var le=this.findTargetInfo(z,ae);return le===!0||le&&indexOf(le.coordSyses,oe.coordinateSystem)>=0},$.prototype.findTargetInfo=function(z,oe){for(var ae=this._targetInfoList,le=parseFinder(oe,z),ue=0;ue<ae.length;ue++){var pe=ae[ue],_e=z.panelId;if(_e){if(pe.panelId===_e)return pe}else for(var Ce=0;Ce<targetInfoMatchers.length;Ce++)if(targetInfoMatchers[Ce](le,pe))return pe}return!0},$}();function formatMinMax($){return $[0]>$[1]&&$.reverse(),$}function parseFinder($,z){return parseFinder$1($,z,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function($,z){var oe=$.xAxisModels,ae=$.yAxisModels,le=$.gridModels,ue=createHashMap(),pe={},_e={};!oe&&!ae&&!le||(each$c(oe,function(Ce){var $e=Ce.axis.grid.model;ue.set($e.id,$e),pe[$e.id]=!0}),each$c(ae,function(Ce){var $e=Ce.axis.grid.model;ue.set($e.id,$e),_e[$e.id]=!0}),each$c(le,function(Ce){ue.set(Ce.id,Ce),pe[Ce.id]=!0,_e[Ce.id]=!0}),ue.each(function(Ce){var $e=Ce.coordinateSystem,xe=[];each$c($e.getCartesians(),function(Ie,Fe){(indexOf(oe,Ie.getAxis("x").model)>=0||indexOf(ae,Ie.getAxis("y").model)>=0)&&xe.push(Ie)}),z.push({panelId:"grid--"+Ce.id,gridModel:Ce,coordSysModel:Ce,coordSys:xe[0],coordSyses:xe,getPanelRect:panelRectBuilders.grid,xAxisDeclared:pe[Ce.id],yAxisDeclared:_e[Ce.id]})}))},geo:function($,z){each$c($.geoModels,function(oe){var ae=oe.coordinateSystem;z.push({panelId:"geo--"+oe.id,geoModel:oe,coordSysModel:oe,coordSys:ae,coordSyses:[ae],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function($,z){var oe=$.xAxisModel,ae=$.yAxisModel,le=$.gridModel;return!le&&oe&&(le=oe.axis.grid.model),!le&&ae&&(le=ae.axis.grid.model),le&&le===z.gridModel},function($,z){var oe=$.geoModel;return oe&&oe===z.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var $=this.coordSys,z=$.getBoundingRect().clone();return z.applyTransform(getTransform$1($)),z}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function($,z,oe,ae){var le=$?z.pointToData([oe[0][0],oe[1][0]],ae):z.dataToPoint([oe[0][0],oe[1][0]],ae),ue=$?z.pointToData([oe[0][1],oe[1][1]],ae):z.dataToPoint([oe[0][1],oe[1][1]],ae),pe=[formatMinMax([le[0],ue[0]]),formatMinMax([le[1],ue[1]])];return{values:pe,xyMinMax:pe}},polygon:function($,z,oe,ae){var le=[[1/0,-1/0],[1/0,-1/0]],ue=map$2(oe,function(pe){var _e=$?z.pointToData(pe,ae):z.dataToPoint(pe,ae);return le[0][0]=Math.min(le[0][0],_e[0]),le[1][0]=Math.min(le[1][0],_e[1]),le[0][1]=Math.max(le[0][1],_e[0]),le[1][1]=Math.max(le[1][1],_e[1]),_e});return{values:ue,xyMinMax:le}}};function axisConvert($,z,oe,ae){var le=oe.getAxis(["x","y"][$]),ue=formatMinMax(map$2([0,1],function(_e){return z?le.coordToData(le.toLocalCoord(ae[_e]),!0):le.toGlobalCoord(le.dataToCoord(ae[_e]))})),pe=[];return pe[$]=ue,pe[1-$]=[NaN,NaN],{values:ue,xyMinMax:pe}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function($,z,oe){return[[$[0][0]-oe[0]*z[0][0],$[0][1]-oe[0]*z[0][1]],[$[1][0]-oe[1]*z[1][0],$[1][1]-oe[1]*z[1][1]]]},polygon:function($,z,oe){return map$2($,function(ae,le){return[ae[0]-oe[0]*z[le][0],ae[1]-oe[1]*z[le][1]]})}};function axisDiffProcessor($,z,oe,ae){return[z[0]-ae[$]*oe[0],z[1]-ae[$]*oe[1]]}function getScales($,z){var oe=getSize($),ae=getSize(z),le=[oe[0]/ae[0],oe[1]/ae[1]];return isNaN(le[0])&&(le[0]=1),isNaN(le[1])&&(le[1]=1),le}function getSize($){return $?[$[0][1]-$[0][0],$[1][1]-$[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.render=function(oe,ae,le,ue){this._brushController||(this._brushController=new BrushController$1(le.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(oe,ae,this,ue,le),updateBackBtnStatus(oe,ae)},z.prototype.onclick=function(oe,ae,le){handlers[le].call(this)},z.prototype.remove=function(oe,ae){this._brushController&&this._brushController.unmount()},z.prototype.dispose=function(oe,ae){this._brushController&&this._brushController.dispose()},z.prototype._onBrush=function(oe){var ae=oe.areas;if(!oe.isEnd||!ae.length)return;var le={},ue=this.ecModel;this._brushController.updateCovers([]);var pe=new BrushTargetManager$1(makeAxisFinder(this.model),ue,{include:["grid"]});pe.matchOutputRanges(ae,ue,function($e,xe,Ie){if(Ie.type==="cartesian2d"){var Fe=$e.brushType;Fe==="rect"?(_e("x",Ie,xe[0]),_e("y",Ie,xe[1])):_e({lineX:"x",lineY:"y"}[Fe],Ie,xe)}}),push(ue,le),this._dispatchZoomAction(le);function _e($e,xe,Ie){var Fe=xe.getAxis($e),ze=Fe.model,Ue=Ce($e,ze,ue),qe=Ue.findRepresentativeAxisProxy(ze).getMinMaxSpan();(qe.minValueSpan!=null||qe.maxValueSpan!=null)&&(Ie=sliderMove(0,Ie.slice(),Fe.scale.getExtent(),0,qe.minValueSpan,qe.maxValueSpan)),Ue&&(le[Ue.id]={dataZoomId:Ue.id,startValue:Ie[0],endValue:Ie[1]})}function Ce($e,xe,Ie){var Fe;return Ie.eachComponent({mainType:"dataZoom",subType:"select"},function(ze){var Ue=ze.getAxisModel($e,xe.componentIndex);Ue&&(Fe=ze)}),Fe}},z.prototype._dispatchZoomAction=function(oe){var ae=[];each$5(oe,function(le,ue){ae.push(clone$3(le))}),ae.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:ae})},z.getDefaultOption=function(oe){var ae={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:oe.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return ae},z}(ToolboxFeature),handlers={zoom:function(){var $=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:$})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder($){var z={xAxisIndex:$.get("xAxisIndex",!0),yAxisIndex:$.get("yAxisIndex",!0),xAxisId:$.get("xAxisId",!0),yAxisId:$.get("yAxisId",!0)};return z.xAxisIndex==null&&z.xAxisId==null&&(z.xAxisIndex="all"),z.yAxisIndex==null&&z.yAxisId==null&&(z.yAxisIndex="all"),z}function updateBackBtnStatus($,z){$.setIconStatus("back",count(z)>1?"emphasis":"normal")}function updateZoomBtnStatus($,z,oe,ae,le){var ue=oe._isZoomActive;ae&&ae.type==="takeGlobalCursor"&&(ue=ae.key==="dataZoomSelect"?ae.dataZoomSelectActive:!1),oe._isZoomActive=ue,$.setIconStatus("zoom",ue?"emphasis":"normal");var pe=new BrushTargetManager$1(makeAxisFinder($),z,{include:["grid"]}),_e=pe.makePanelOpts(le,function(Ce){return Ce.xAxisDeclared&&!Ce.yAxisDeclared?"lineX":!Ce.xAxisDeclared&&Ce.yAxisDeclared?"lineY":"rect"});oe._brushController.setPanels(_e).enableBrush(ue&&_e.length?{brushType:"auto",brushStyle:$.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function($){var z=$.getComponent("toolbox",0),oe=["feature","dataZoom"];if(!z||z.get(oe)==null)return;var ae=z.getModel(oe),le=[],ue=makeAxisFinder(ae),pe=parseFinder$1($,ue);each$5(pe.xAxisModels,function(Ce){return _e(Ce,"xAxis","xAxisIndex")}),each$5(pe.yAxisModels,function(Ce){return _e(Ce,"yAxis","yAxisIndex")});function _e(Ce,$e,xe){var Ie=Ce.componentIndex,Fe={type:"select",$fromToolbox:!0,filterMode:ae.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+$e+Ie};Fe[xe]=Ie,le.push(Fe)}return le});const DataZoom=DataZoomFeature;function install$b($){$.registerComponentModel(ToolboxModel$1),$.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$2),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use$1(install$c)}var TooltipModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="tooltip",z.dependencies=["axisPointer"],z.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},z}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine($){var z=$.get("confine");return z!=null?!!z:$.get("renderMode")==="richText"}function testStyle($){if(env$1.domSupported){for(var z=document.documentElement.style,oe=0,ae=$.length;oe<ae;oe++)if($[oe]in z)return $[oe]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix($,z){if(!$)return z;z=toCamelCase(z,!0);var oe=$.indexOf(z);return $=oe===-1?z:"-"+$.slice(0,oe)+"-"+z,$.toLowerCase()}function getComputedStyle$1($,z){var oe=$.currentStyle||document.defaultView&&document.defaultView.getComputedStyle($);return oe?z?oe[z]:oe:null}var CSS_TRANSITION_VENDOR=toCSSVendorPrefix(TRANSITION_VENDOR,"transition"),CSS_TRANSFORM_VENDOR=toCSSVendorPrefix(TRANSFORM_VENDOR,"transform"),gCssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(env$1.transform3dSupported?"will-change:transform;":"");function mirrorPos($){return $=$==="left"?"right":$==="right"?"left":$==="top"?"bottom":"top",$}function assembleArrow($,z,oe){if(!isString(oe)||oe==="inside")return"";var ae=$.get("backgroundColor"),le=$.get("borderWidth");z=convertToColorString(z);var ue=mirrorPos(oe),pe=Math.max(Math.round(le)*1.5,6),_e="",Ce=CSS_TRANSFORM_VENDOR+":",$e;indexOf(["left","right"],ue)>-1?(_e+="top:50%",Ce+="translateY(-50%) rotate("+($e=ue==="left"?-225:-45)+"deg)"):(_e+="left:50%",Ce+="translateX(-50%) rotate("+($e=ue==="top"?225:45)+"deg)");var xe=$e*Math.PI/180,Ie=pe+le,Fe=Ie*Math.abs(Math.cos(xe))+Ie*Math.abs(Math.sin(xe)),ze=Math.round(((Fe-Math.SQRT2*le)/2+Math.SQRT2*le-(Fe-Ie)/2)*100)/100;_e+=";"+ue+":-"+ze+"px";var Ue=z+" solid "+le+"px;",qe=["position:absolute;width:"+pe+"px;height:"+pe+"px;z-index:-1;",_e+";"+Ce+";","border-bottom:"+Ue,"border-right:"+Ue,"background-color:"+ae+";"];return'<div style="'+qe.join("")+'"></div>'}function assembleTransition($,z){var oe="cubic-bezier(0.23,1,0.32,1)",ae=" "+$/2+"s "+oe,le="opacity"+ae+",visibility"+ae;return z||(ae=" "+$+"s "+oe,le+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+ae:",left"+ae+",top"+ae),CSS_TRANSITION_VENDOR+":"+le}function assembleTransform($,z,oe){var ae=$.toFixed(0)+"px",le=z.toFixed(0)+"px";if(!env$1.transformSupported)return oe?"top:"+le+";left:"+ae+";":[["top",le],["left",ae]];var ue=env$1.transform3dSupported,pe="translate"+(ue?"3d":"")+"("+ae+","+le+(ue?",0":"")+")";return oe?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+pe+";":[["top",0],["left",0],[TRANSFORM_VENDOR,pe]]}function assembleFont($){var z=[],oe=$.get("fontSize"),ae=$.getTextColor();ae&&z.push("color:"+ae),z.push("font:"+$.getFont()),oe&&z.push("line-height:"+Math.round(oe*3/2)+"px");var le=$.get("textShadowColor"),ue=$.get("textShadowBlur")||0,pe=$.get("textShadowOffsetX")||0,_e=$.get("textShadowOffsetY")||0;return le&&ue&&z.push("text-shadow:"+pe+"px "+_e+"px "+ue+"px "+le),each$c(["decoration","align"],function(Ce){var $e=$.get(Ce);$e&&z.push("text-"+Ce+":"+$e)}),z.join(";")}function assembleCssText($,z,oe){var ae=[],le=$.get("transitionDuration"),ue=$.get("backgroundColor"),pe=$.get("shadowBlur"),_e=$.get("shadowColor"),Ce=$.get("shadowOffsetX"),$e=$.get("shadowOffsetY"),xe=$.getModel("textStyle"),Ie=getPaddingFromTooltipModel($,"html"),Fe=Ce+"px "+$e+"px "+pe+"px "+_e;return ae.push("box-shadow:"+Fe),z&&le&&ae.push(assembleTransition(le,oe)),ue&&ae.push("background-color:"+ue),each$c(["width","color","radius"],function(ze){var Ue="border-"+ze,qe=toCamelCase(Ue),At=$.get(qe);At!=null&&ae.push(Ue+":"+At+(ze==="color"?"":"px"))}),ae.push(assembleFont(xe)),Ie!=null&&ae.push("padding:"+normalizeCssArray(Ie).join("px ")+"px"),ae.join(";")+";"}function makeStyleCoord$1($,z,oe,ae,le){var ue=z&&z.painter;if(oe){var pe=ue&&ue.getViewportRoot();pe&&transformLocalCoord($,pe,document.body,ae,le)}else{$[0]=ae,$[1]=le;var _e=ue&&ue.getViewportRootOffset();_e&&($[0]+=_e.offsetLeft,$[1]+=_e.offsetTop)}$[2]=$[0]/z.getWidth(),$[3]=$[1]/z.getHeight()}var TooltipHTMLContent=function(){function $(z,oe,ae){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var le=document.createElement("div");le.domBelongToZr=!0,this.el=le;var ue=this._zr=oe.getZr(),pe=this._appendToBody=ae&&ae.appendToBody;makeStyleCoord$1(this._styleCoord,ue,pe,oe.getWidth()/2,oe.getHeight()/2),pe?document.body.appendChild(le):z.appendChild(le),this._container=z;var _e=this;le.onmouseenter=function(){_e._enterable&&(clearTimeout(_e._hideTimeout),_e._show=!0),_e._inContent=!0},le.onmousemove=function(Ce){if(Ce=Ce||window.event,!_e._enterable){var $e=ue.handler,xe=ue.painter.getViewportRoot();normalizeEvent(xe,Ce,!0),$e.dispatch("mousemove",Ce)}},le.onmouseleave=function(){_e._inContent=!1,_e._enterable&&_e._show&&_e.hideLater(_e._hideDelay)}}return $.prototype.update=function(z){var oe=this._container,ae=getComputedStyle$1(oe,"position"),le=oe.style;le.position!=="absolute"&&ae!=="absolute"&&(le.position="relative");var ue=z.get("alwaysShowContent");ue&&this._moveIfResized(),this._alwaysShowContent=ue,this.el.className=z.get("className")||""},$.prototype.show=function(z,oe){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var ae=this.el,le=ae.style,ue=this._styleCoord;ae.innerHTML?le.cssText=gCssText+assembleCssText(z,!this._firstShow,this._longHide)+assembleTransform(ue[0],ue[1],!0)+("border-color:"+convertToColorString(oe)+";")+(z.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):le.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},$.prototype.setContent=function(z,oe,ae,le,ue){var pe=this.el;if(z==null){pe.innerHTML="";return}var _e="";if(isString(ue)&&ae.get("trigger")==="item"&&!shouldTooltipConfine(ae)&&(_e=assembleArrow(ae,le,ue)),isString(z))pe.innerHTML=z+_e;else if(z){pe.innerHTML="",isArray$1(z)||(z=[z]);for(var Ce=0;Ce<z.length;Ce++)isDom(z[Ce])&&z[Ce].parentNode!==pe&&pe.appendChild(z[Ce]);if(_e&&pe.childNodes.length){var $e=document.createElement("div");$e.innerHTML=_e,pe.appendChild($e)}}},$.prototype.setEnterable=function(z){this._enterable=z},$.prototype.getSize=function(){var z=this.el;return[z.offsetWidth,z.offsetHeight]},$.prototype.moveTo=function(z,oe){var ae=this._styleCoord;if(makeStyleCoord$1(ae,this._zr,this._appendToBody,z,oe),ae[0]!=null&&ae[1]!=null){var le=this.el.style,ue=assembleTransform(ae[0],ae[1]);each$c(ue,function(pe){le[pe[0]]=pe[1]})}},$.prototype._moveIfResized=function(){var z=this._styleCoord[2],oe=this._styleCoord[3];this.moveTo(z*this._zr.getWidth(),oe*this._zr.getHeight())},$.prototype.hide=function(){var z=this,oe=this.el.style;oe.visibility="hidden",oe.opacity="0",env$1.transform3dSupported&&(oe.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return z._longHide=!0},500)},$.prototype.hideLater=function(z){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(z?(this._hideDelay=z,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),z)):this.hide())},$.prototype.isShow=function(){return this._show},$.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},$}();const TooltipHTMLContent$1=TooltipHTMLContent;var TooltipRichContent=function(){function $(z){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=z.getZr(),makeStyleCoord(this._styleCoord,this._zr,z.getWidth()/2,z.getHeight()/2)}return $.prototype.update=function(z){var oe=z.get("alwaysShowContent");oe&&this._moveIfResized(),this._alwaysShowContent=oe},$.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},$.prototype.setContent=function(z,oe,ae,le,ue){var pe=this;isObject$3(z)&&throwError(""),this.el&&this._zr.remove(this.el);var _e=ae.getModel("textStyle");this.el=new ZRText$1({style:{rich:oe.richTextStyles,text:z,lineHeight:22,borderWidth:1,borderColor:le,textShadowColor:_e.get("textShadowColor"),fill:ae.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(ae,"richText"),verticalAlign:"top",align:"left"},z:ae.get("z")}),each$c(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function($e){pe.el.style[$e]=ae.get($e)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function($e){pe.el.style[$e]=_e.get($e)||0}),this._zr.add(this.el);var Ce=this;this.el.on("mouseover",function(){Ce._enterable&&(clearTimeout(Ce._hideTimeout),Ce._show=!0),Ce._inContent=!0}),this.el.on("mouseout",function(){Ce._enterable&&Ce._show&&Ce.hideLater(Ce._hideDelay),Ce._inContent=!1})},$.prototype.setEnterable=function(z){this._enterable=z},$.prototype.getSize=function(){var z=this.el,oe=this.el.getBoundingRect(),ae=calcShadowOuterSize(z.style);return[oe.width+ae.left+ae.right,oe.height+ae.top+ae.bottom]},$.prototype.moveTo=function(z,oe){var ae=this.el;if(ae){var le=this._styleCoord;makeStyleCoord(le,this._zr,z,oe),z=le[0],oe=le[1];var ue=ae.style,pe=mathMaxWith0(ue.borderWidth||0),_e=calcShadowOuterSize(ue);ae.x=z+pe+_e.left,ae.y=oe+pe+_e.top,ae.markRedraw()}},$.prototype._moveIfResized=function(){var z=this._styleCoord[2],oe=this._styleCoord[3];this.moveTo(z*this._zr.getWidth(),oe*this._zr.getHeight())},$.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},$.prototype.hideLater=function(z){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(z?(this._hideDelay=z,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),z)):this.hide())},$.prototype.isShow=function(){return this._show},$.prototype.dispose=function(){this._zr.remove(this.el)},$}();function mathMaxWith0($){return Math.max(0,$)}function calcShadowOuterSize($){var z=mathMaxWith0($.shadowBlur||0),oe=mathMaxWith0($.shadowOffsetX||0),ae=mathMaxWith0($.shadowOffsetY||0);return{left:mathMaxWith0(z-oe),right:mathMaxWith0(z+oe),top:mathMaxWith0(z-ae),bottom:mathMaxWith0(z+ae)}}function makeStyleCoord($,z,oe,ae){$[0]=oe,$[1]=ae,$[2]=$[0]/z.getWidth(),$[3]=$[1]/z.getHeight()}const TooltipRichContent$1=TooltipRichContent;var proxyRect=new Rect$2({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.init=function(oe,ae){if(!(env$1.node||!ae.getDom())){var le=oe.getComponent("tooltip"),ue=this._renderMode=getTooltipRenderMode(le.get("renderMode"));this._tooltipContent=ue==="richText"?new TooltipRichContent$1(ae):new TooltipHTMLContent$1(ae.getDom(),ae,{appendToBody:le.get("appendToBody",!0)})}},z.prototype.render=function(oe,ae,le){if(!(env$1.node||!le.getDom())){this.group.removeAll(),this._tooltipModel=oe,this._ecModel=ae,this._api=le;var ue=this._tooltipContent;ue.update(oe),ue.setEnterable(oe.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&oe.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},z.prototype._initGlobalListener=function(){var oe=this._tooltipModel,ae=oe.get("triggerOn");register("itemTooltip",this._api,bind$1(function(le,ue,pe){ae!=="none"&&(ae.indexOf(le)>=0?this._tryShow(ue,pe):le==="leave"&&this._hide(pe))},this))},z.prototype._keepShow=function(){var oe=this._tooltipModel,ae=this._ecModel,le=this._api,ue=oe.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&ue!=="none"&&ue!=="click"){var pe=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!le.isDisposed()&&pe.manuallyShowTip(oe,ae,le,{x:pe._lastX,y:pe._lastY,dataByCoordSys:pe._lastDataByCoordSys})})}},z.prototype.manuallyShowTip=function(oe,ae,le,ue){if(!(ue.from===this.uid||env$1.node||!le.getDom())){var pe=makeDispatchAction(ue,le);this._ticket="";var _e=ue.dataByCoordSys,Ce=findComponentReference(ue,ae,le);if(Ce){var $e=Ce.el.getBoundingRect().clone();$e.applyTransform(Ce.el.transform),this._tryShow({offsetX:$e.x+$e.width/2,offsetY:$e.y+$e.height/2,target:Ce.el,position:ue.position,positionDefault:"bottom"},pe)}else if(ue.tooltip&&ue.x!=null&&ue.y!=null){var xe=proxyRect;xe.x=ue.x,xe.y=ue.y,xe.update(),getECData(xe).tooltipConfig={name:null,option:ue.tooltip},this._tryShow({offsetX:ue.x,offsetY:ue.y,target:xe},pe)}else if(_e)this._tryShow({offsetX:ue.x,offsetY:ue.y,position:ue.position,dataByCoordSys:_e,tooltipOption:ue.tooltipOption},pe);else if(ue.seriesIndex!=null){if(this._manuallyAxisShowTip(oe,ae,le,ue))return;var Ie=findPointFromSeries(ue,ae),Fe=Ie.point[0],ze=Ie.point[1];Fe!=null&&ze!=null&&this._tryShow({offsetX:Fe,offsetY:ze,target:Ie.el,position:ue.position,positionDefault:"bottom"},pe)}else ue.x!=null&&ue.y!=null&&(le.dispatchAction({type:"updateAxisPointer",x:ue.x,y:ue.y}),this._tryShow({offsetX:ue.x,offsetY:ue.y,position:ue.position,target:le.getZr().findHover(ue.x,ue.y).target},pe))}},z.prototype.manuallyHideTip=function(oe,ae,le,ue){var pe=this._tooltipContent;this._tooltipModel&&pe.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,ue.from!==this.uid&&this._hide(makeDispatchAction(ue,le))},z.prototype._manuallyAxisShowTip=function(oe,ae,le,ue){var pe=ue.seriesIndex,_e=ue.dataIndex,Ce=ae.getComponent("axisPointer").coordSysAxesInfo;if(!(pe==null||_e==null||Ce==null)){var $e=ae.getSeriesByIndex(pe);if($e){var xe=$e.getData(),Ie=buildTooltipModel([xe.getItemModel(_e),$e,($e.coordinateSystem||{}).model],this._tooltipModel);if(Ie.get("trigger")==="axis")return le.dispatchAction({type:"updateAxisPointer",seriesIndex:pe,dataIndex:_e,position:ue.position}),!0}}},z.prototype._tryShow=function(oe,ae){var le=oe.target,ue=this._tooltipModel;if(ue){this._lastX=oe.offsetX,this._lastY=oe.offsetY;var pe=oe.dataByCoordSys;if(pe&&pe.length)this._showAxisTooltip(pe,oe);else if(le){this._lastDataByCoordSys=null;var _e,Ce;findEventDispatcher(le,function($e){if(getECData($e).dataIndex!=null)return _e=$e,!0;if(getECData($e).tooltipConfig!=null)return Ce=$e,!0},!0),_e?this._showSeriesItemTooltip(oe,_e,ae):Ce?this._showComponentItemTooltip(oe,Ce,ae):this._hide(ae)}else this._lastDataByCoordSys=null,this._hide(ae)}},z.prototype._showOrMove=function(oe,ae){var le=oe.get("showDelay");ae=bind$1(ae,this),clearTimeout(this._showTimout),le>0?this._showTimout=setTimeout(ae,le):ae()},z.prototype._showAxisTooltip=function(oe,ae){var le=this._ecModel,ue=this._tooltipModel,pe=[ae.offsetX,ae.offsetY],_e=buildTooltipModel([ae.tooltipOption],ue),Ce=this._renderMode,$e=[],xe=createTooltipMarkup("section",{blocks:[],noHeader:!0}),Ie=[],Fe=new TooltipMarkupStyleCreator;each$c(oe,function(hn){each$c(hn.dataByAxis,function(vn){var _n=le.getComponent(vn.axisDim+"Axis",vn.axisIndex),bn=vn.value;if(!(!_n||bn==null)){var Sn=getValueLabel(bn,_n.axis,le,vn.seriesDataIndices,vn.valueLabelOpt),Cn=createTooltipMarkup("section",{header:Sn,noHeader:!trim$1(Sn),sortBlocks:!0,blocks:[]});xe.blocks.push(Cn),each$c(vn.seriesDataIndices,function(En){var $n=le.getSeriesByIndex(En.seriesIndex),wn=En.dataIndexInside,Tn=$n.getDataParams(wn);if(!(Tn.dataIndex<0)){Tn.axisDim=vn.axisDim,Tn.axisIndex=vn.axisIndex,Tn.axisType=vn.axisType,Tn.axisId=vn.axisId,Tn.axisValue=getAxisRawValue(_n.axis,{value:bn}),Tn.axisValueLabel=Sn,Tn.marker=Fe.makeTooltipMarker("item",convertToColorString(Tn.color),Ce);var xn=normalizeTooltipFormatResult($n.formatTooltip(wn,!0,null)),kn=xn.frag;if(kn){var Nn=buildTooltipModel([$n],ue).get("valueFormatter");Cn.blocks.push(Nn?extend({valueFormatter:Nn},kn):kn)}xn.text&&Ie.push(xn.text),$e.push(Tn)}})}})}),xe.blocks.reverse(),Ie.reverse();var ze=ae.position,Ue=_e.get("order"),qe=buildTooltipMarkup(xe,Fe,Ce,Ue,le.get("useUTC"),_e.get("textStyle"));qe&&Ie.unshift(qe);var At=Ce==="richText"?`
|
||
|
||
`:"<br/>",Lt=Ie.join(At);this._showOrMove(_e,function(){this._updateContentNotChangedOnAxis(oe,$e)?this._updatePosition(_e,ze,pe[0],pe[1],this._tooltipContent,$e):this._showTooltipContent(_e,Lt,$e,Math.random()+"",pe[0],pe[1],ze,null,Fe)})},z.prototype._showSeriesItemTooltip=function(oe,ae,le){var ue=this._ecModel,pe=getECData(ae),_e=pe.seriesIndex,Ce=ue.getSeriesByIndex(_e),$e=pe.dataModel||Ce,xe=pe.dataIndex,Ie=pe.dataType,Fe=$e.getData(Ie),ze=this._renderMode,Ue=oe.positionDefault,qe=buildTooltipModel([Fe.getItemModel(xe),$e,Ce&&(Ce.coordinateSystem||{}).model],this._tooltipModel,Ue?{position:Ue}:null),At=qe.get("trigger");if(!(At!=null&&At!=="item")){var Lt=$e.getDataParams(xe,Ie),hn=new TooltipMarkupStyleCreator;Lt.marker=hn.makeTooltipMarker("item",convertToColorString(Lt.color),ze);var vn=normalizeTooltipFormatResult($e.formatTooltip(xe,!1,Ie)),_n=qe.get("order"),bn=qe.get("valueFormatter"),Sn=vn.frag,Cn=Sn?buildTooltipMarkup(bn?extend({valueFormatter:bn},Sn):Sn,hn,ze,_n,ue.get("useUTC"),qe.get("textStyle")):vn.text,En="item_"+$e.name+"_"+xe;this._showOrMove(qe,function(){this._showTooltipContent(qe,Cn,Lt,En,oe.offsetX,oe.offsetY,oe.position,oe.target,hn)}),le({type:"showTip",dataIndexInside:xe,dataIndex:Fe.getRawIndex(xe),seriesIndex:_e,from:this.uid})}},z.prototype._showComponentItemTooltip=function(oe,ae,le){var ue=getECData(ae),pe=ue.tooltipConfig,_e=pe.option||{};if(isString(_e)){var Ce=_e;_e={content:Ce,formatter:Ce}}var $e=[_e],xe=this._ecModel.getComponent(ue.componentMainType,ue.componentIndex);xe&&$e.push(xe),$e.push({formatter:_e.content});var Ie=oe.positionDefault,Fe=buildTooltipModel($e,this._tooltipModel,Ie?{position:Ie}:null),ze=Fe.get("content"),Ue=Math.random()+"",qe=new TooltipMarkupStyleCreator;this._showOrMove(Fe,function(){var At=clone$3(Fe.get("formatterParams")||{});this._showTooltipContent(Fe,ze,At,Ue,oe.offsetX,oe.offsetY,oe.position,ae,qe)}),le({type:"showTip",from:this.uid})},z.prototype._showTooltipContent=function(oe,ae,le,ue,pe,_e,Ce,$e,xe){if(this._ticket="",!(!oe.get("showContent")||!oe.get("show"))){var Ie=this._tooltipContent;Ie.setEnterable(oe.get("enterable"));var Fe=oe.get("formatter");Ce=Ce||oe.get("position");var ze=ae,Ue=this._getNearestPoint([pe,_e],le,oe.get("trigger"),oe.get("borderColor")),qe=Ue.color;if(Fe)if(isString(Fe)){var At=oe.ecModel.get("useUTC"),Lt=isArray$1(le)?le[0]:le,hn=Lt&&Lt.axisType&&Lt.axisType.indexOf("time")>=0;ze=Fe,hn&&(ze=format$1(Lt.axisValue,ze,At)),ze=formatTpl(ze,le,!0)}else if(isFunction(Fe)){var vn=bind$1(function(_n,bn){_n===this._ticket&&(Ie.setContent(bn,xe,oe,qe,Ce),this._updatePosition(oe,Ce,pe,_e,Ie,le,$e))},this);this._ticket=ue,ze=Fe(le,ue,vn)}else ze=Fe;Ie.setContent(ze,xe,oe,qe,Ce),Ie.show(oe,qe),this._updatePosition(oe,Ce,pe,_e,Ie,le,$e)}},z.prototype._getNearestPoint=function(oe,ae,le,ue){if(le==="axis"||isArray$1(ae))return{color:ue||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(ae))return{color:ue||ae.color||ae.borderColor}},z.prototype._updatePosition=function(oe,ae,le,ue,pe,_e,Ce){var $e=this._api.getWidth(),xe=this._api.getHeight();ae=ae||oe.get("position");var Ie=pe.getSize(),Fe=oe.get("align"),ze=oe.get("verticalAlign"),Ue=Ce&&Ce.getBoundingRect().clone();if(Ce&&Ue.applyTransform(Ce.transform),isFunction(ae)&&(ae=ae([le,ue],_e,pe.el,Ue,{viewSize:[$e,xe],contentSize:Ie.slice()})),isArray$1(ae))le=parsePercent(ae[0],$e),ue=parsePercent(ae[1],xe);else if(isObject$3(ae)){var qe=ae;qe.width=Ie[0],qe.height=Ie[1];var At=getLayoutRect(qe,{width:$e,height:xe});le=At.x,ue=At.y,Fe=null,ze=null}else if(isString(ae)&&Ce){var Lt=calcTooltipPosition(ae,Ue,Ie,oe.get("borderWidth"));le=Lt[0],ue=Lt[1]}else{var Lt=refixTooltipPosition(le,ue,pe,$e,xe,Fe?null:20,ze?null:20);le=Lt[0],ue=Lt[1]}if(Fe&&(le-=isCenterAlign(Fe)?Ie[0]/2:Fe==="right"?Ie[0]:0),ze&&(ue-=isCenterAlign(ze)?Ie[1]/2:ze==="bottom"?Ie[1]:0),shouldTooltipConfine(oe)){var Lt=confineTooltipPosition(le,ue,pe,$e,xe);le=Lt[0],ue=Lt[1]}pe.moveTo(le,ue)},z.prototype._updateContentNotChangedOnAxis=function(oe,ae){var le=this._lastDataByCoordSys,ue=this._cbParamsList,pe=!!le&&le.length===oe.length;return pe&&each$c(le,function(_e,Ce){var $e=_e.dataByAxis||[],xe=oe[Ce]||{},Ie=xe.dataByAxis||[];pe=pe&&$e.length===Ie.length,pe&&each$c($e,function(Fe,ze){var Ue=Ie[ze]||{},qe=Fe.seriesDataIndices||[],At=Ue.seriesDataIndices||[];pe=pe&&Fe.value===Ue.value&&Fe.axisType===Ue.axisType&&Fe.axisId===Ue.axisId&&qe.length===At.length,pe&&each$c(qe,function(Lt,hn){var vn=At[hn];pe=pe&&Lt.seriesIndex===vn.seriesIndex&&Lt.dataIndex===vn.dataIndex}),ue&&each$c(Fe.seriesDataIndices,function(Lt){var hn=Lt.seriesIndex,vn=ae[hn],_n=ue[hn];vn&&_n&&_n.data!==vn.data&&(pe=!1)})})}),this._lastDataByCoordSys=oe,this._cbParamsList=ae,!!pe},z.prototype._hide=function(oe){this._lastDataByCoordSys=null,oe({type:"hideTip",from:this.uid})},z.prototype.dispose=function(oe,ae){env$1.node||!ae.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",ae))},z.type="tooltip",z}(ComponentView$1);function buildTooltipModel($,z,oe){var ae=z.ecModel,le;oe?(le=new Model$1(oe,ae,ae),le=new Model$1(z.option,le,ae)):le=z;for(var ue=$.length-1;ue>=0;ue--){var pe=$[ue];pe&&(pe instanceof Model$1&&(pe=pe.get("tooltip",!0)),isString(pe)&&(pe={formatter:pe}),pe&&(le=new Model$1(pe,le,ae)))}return le}function makeDispatchAction($,z){return $.dispatchAction||bind$1(z.dispatchAction,z)}function refixTooltipPosition($,z,oe,ae,le,ue,pe){var _e=oe.getSize(),Ce=_e[0],$e=_e[1];return ue!=null&&($+Ce+ue+2>ae?$-=Ce+ue:$+=ue),pe!=null&&(z+$e+pe>le?z-=$e+pe:z+=pe),[$,z]}function confineTooltipPosition($,z,oe,ae,le){var ue=oe.getSize(),pe=ue[0],_e=ue[1];return $=Math.min($+pe,ae)-pe,z=Math.min(z+_e,le)-_e,$=Math.max($,0),z=Math.max(z,0),[$,z]}function calcTooltipPosition($,z,oe,ae){var le=oe[0],ue=oe[1],pe=Math.ceil(Math.SQRT2*ae)+8,_e=0,Ce=0,$e=z.width,xe=z.height;switch($){case"inside":_e=z.x+$e/2-le/2,Ce=z.y+xe/2-ue/2;break;case"top":_e=z.x+$e/2-le/2,Ce=z.y-ue-pe;break;case"bottom":_e=z.x+$e/2-le/2,Ce=z.y+xe+pe;break;case"left":_e=z.x-le-pe,Ce=z.y+xe/2-ue/2;break;case"right":_e=z.x+$e+pe,Ce=z.y+xe/2-ue/2}return[_e,Ce]}function isCenterAlign($){return $==="center"||$==="middle"}function findComponentReference($,z,oe){var ae=preParseFinder($).queryOptionMap,le=ae.keys()[0];if(!(!le||le==="series")){var ue=queryReferringComponents(z,le,ae.get(le),{useDefault:!1,enableAll:!1,enableNone:!1}),pe=ue.models[0];if(pe){var _e=oe.getViewOfComponentModel(pe),Ce;if(_e.group.traverse(function($e){var xe=getECData($e).tooltipConfig;if(xe&&xe.name===$.name)return Ce=$e,!0}),Ce)return{componentMainType:le,componentIndex:pe.componentIndex,el:Ce}}}}const TooltipView$1=TooltipView;function install$a($){use$1(install$f),$.registerComponentModel(TooltipModel$1),$.registerComponentView(TooltipView$1),$.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),$.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys($){if($){for(var z in $)if($.hasOwnProperty(z))return!0}}function createVisualMappings($,z,oe){var ae={};return each$4(z,function(ue){var pe=ae[ue]=le();each$4($[ue],function(_e,Ce){if(VisualMapping$1.isValidType(Ce)){var $e={type:Ce,visual:_e};oe&&oe($e,ue),pe[Ce]=new VisualMapping$1($e),Ce==="opacity"&&($e=clone$3($e),$e.type="colorAlpha",pe.__hidden.__alphaForOpacity=new VisualMapping$1($e))}})}),ae;function le(){var ue=function(){};ue.prototype.__hidden=ue.prototype;var pe=new ue;return pe}}function replaceVisualOption($,z,oe){var ae;each$c(oe,function(le){z.hasOwnProperty(le)&&hasKeys(z[le])&&(ae=!0)}),ae&&each$c(oe,function(le){z.hasOwnProperty(le)&&hasKeys(z[le])?$[le]=clone$3(z[le]):delete $[le]})}function incrementalApplyVisual($,z,oe,ae){var le={};return each$c($,function(ue){var pe=VisualMapping$1.prepareVisualTypes(z[ue]);le[ue]=pe}),{progress:function(pe,_e){var Ce;ae!=null&&(Ce=_e.getDimensionIndex(ae));function $e(bn){return getItemVisualFromData(_e,Ie,bn)}function xe(bn,Sn){setItemVisualFromData(_e,Ie,bn,Sn)}for(var Ie,Fe=_e.getStore();(Ie=pe.next())!=null;){var ze=_e.getRawDataItem(Ie);if(!(ze&&ze.visualMap===!1))for(var Ue=ae!=null?Fe.get(Ce,Ie):Ie,qe=oe(Ue),At=z[qe],Lt=le[qe],hn=0,vn=Lt.length;hn<vn;hn++){var _n=Lt[hn];At[_n]&&At[_n].applyVisual(Ue,$e,xe)}}}}}var TitleModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.layoutMode={type:"box",ignoreSize:!0},oe}return z.type="title",z.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},z}(ComponentModel$1),TitleView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.render=function(oe,ae,le){if(this.group.removeAll(),!!oe.get("show")){var ue=this.group,pe=oe.getModel("textStyle"),_e=oe.getModel("subtextStyle"),Ce=oe.get("textAlign"),$e=retrieve2(oe.get("textBaseline"),oe.get("textVerticalAlign")),xe=new ZRText$1({style:createTextStyle$1(pe,{text:oe.get("text"),fill:pe.getTextColor()},{disableBox:!0}),z2:10}),Ie=xe.getBoundingRect(),Fe=oe.get("subtext"),ze=new ZRText$1({style:createTextStyle$1(_e,{text:Fe,fill:_e.getTextColor(),y:Ie.height+oe.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),Ue=oe.get("link"),qe=oe.get("sublink"),At=oe.get("triggerEvent",!0);xe.silent=!Ue&&!At,ze.silent=!qe&&!At,Ue&&xe.on("click",function(){windowOpen(Ue,"_"+oe.get("target"))}),qe&&ze.on("click",function(){windowOpen(qe,"_"+oe.get("subtarget"))}),getECData(xe).eventData=getECData(ze).eventData=At?{componentType:"title",componentIndex:oe.componentIndex}:null,ue.add(xe),Fe&&ue.add(ze);var Lt=ue.getBoundingRect(),hn=oe.getBoxLayoutParams();hn.width=Lt.width,hn.height=Lt.height;var vn=getLayoutRect(hn,{width:le.getWidth(),height:le.getHeight()},oe.get("padding"));Ce||(Ce=oe.get("left")||oe.get("right"),Ce==="middle"&&(Ce="center"),Ce==="right"?vn.x+=vn.width:Ce==="center"&&(vn.x+=vn.width/2)),$e||($e=oe.get("top")||oe.get("bottom"),$e==="center"&&($e="middle"),$e==="bottom"?vn.y+=vn.height:$e==="middle"&&(vn.y+=vn.height/2),$e=$e||"top"),ue.x=vn.x,ue.y=vn.y,ue.markRedraw();var _n={align:Ce,verticalAlign:$e};xe.setStyle(_n),ze.setStyle(_n),Lt=ue.getBoundingRect();var bn=vn.margin,Sn=oe.getItemStyle(["color","opacity"]);Sn.fill=oe.get("backgroundColor");var Cn=new Rect$2({shape:{x:Lt.x-bn[3],y:Lt.y-bn[0],width:Lt.width+bn[1]+bn[3],height:Lt.height+bn[0]+bn[2],r:oe.get("borderRadius")},style:Sn,subPixelOptimize:!0,silent:!0});ue.add(Cn)}},z.type="title",z}(ComponentView$1);function install$9($){$.registerComponentModel(TitleModel),$.registerComponentView(TitleView)}var getDefaultSelectorOptions=function($,z){if(z==="all")return{type:"all",title:$.getLocaleModel().get(["legend","selector","all"])};if(z==="inverse")return{type:"inverse",title:$.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.layoutMode={type:"box",ignoreSize:!0},oe}return z.prototype.init=function(oe,ae,le){this.mergeDefaultAndTheme(oe,le),oe.selected=oe.selected||{},this._updateSelector(oe)},z.prototype.mergeOption=function(oe,ae){$.prototype.mergeOption.call(this,oe,ae),this._updateSelector(oe)},z.prototype._updateSelector=function(oe){var ae=oe.selector,le=this.ecModel;ae===!0&&(ae=oe.selector=["all","inverse"]),isArray$1(ae)&&each$c(ae,function(ue,pe){isString(ue)&&(ue={type:ue}),ae[pe]=merge(ue,getDefaultSelectorOptions(le,ue.type))})},z.prototype.optionUpdated=function(){this._updateData(this.ecModel);var oe=this._data;if(oe[0]&&this.get("selectedMode")==="single"){for(var ae=!1,le=0;le<oe.length;le++){var ue=oe[le].get("name");if(this.isSelected(ue)){this.select(ue),ae=!0;break}}!ae&&this.select(oe[0].get("name"))}},z.prototype._updateData=function(oe){var ae=[],le=[];oe.eachRawSeries(function(Ce){var $e=Ce.name;le.push($e);var xe;if(Ce.legendVisualProvider){var Ie=Ce.legendVisualProvider,Fe=Ie.getAllNames();oe.isSeriesFiltered(Ce)||(le=le.concat(Fe)),Fe.length?ae=ae.concat(Fe):xe=!0}else xe=!0;xe&&isNameSpecified(Ce)&&ae.push(Ce.name)}),this._availableNames=le;var ue=this.get("data")||ae,pe=createHashMap(),_e=map$2(ue,function(Ce){return(isString(Ce)||isNumber(Ce))&&(Ce={name:Ce}),pe.get(Ce.name)?null:(pe.set(Ce.name,!0),new Model$1(Ce,this,this.ecModel))},this);this._data=filter(_e,function(Ce){return!!Ce})},z.prototype.getData=function(){return this._data},z.prototype.select=function(oe){var ae=this.option.selected,le=this.get("selectedMode");if(le==="single"){var ue=this._data;each$c(ue,function(pe){ae[pe.get("name")]=!1})}ae[oe]=!0},z.prototype.unSelect=function(oe){this.get("selectedMode")!=="single"&&(this.option.selected[oe]=!1)},z.prototype.toggleSelected=function(oe){var ae=this.option.selected;ae.hasOwnProperty(oe)||(ae[oe]=!0),this[ae[oe]?"unSelect":"select"](oe)},z.prototype.allSelect=function(){var oe=this._data,ae=this.option.selected;each$c(oe,function(le){ae[le.get("name",!0)]=!0})},z.prototype.inverseSelect=function(){var oe=this._data,ae=this.option.selected;each$c(oe,function(le){var ue=le.get("name",!0);ae.hasOwnProperty(ue)||(ae[ue]=!0),ae[ue]=!ae[ue]})},z.prototype.isSelected=function(oe){var ae=this.option.selected;return!(ae.hasOwnProperty(oe)&&!ae[oe])&&indexOf(this._availableNames,oe)>=0},z.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},z.type="legend.plain",z.dependencies=["series"],z.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},z}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.newlineDisabled=!1,oe}return z.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},z.prototype.getContentGroup=function(){return this._contentGroup},z.prototype.getSelectorGroup=function(){return this._selectorGroup},z.prototype.render=function(oe,ae,le){var ue=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!oe.get("show",!0)){var pe=oe.get("align"),_e=oe.get("orient");(!pe||pe==="auto")&&(pe=oe.get("left")==="right"&&_e==="vertical"?"right":"left");var Ce=oe.get("selector",!0),$e=oe.get("selectorPosition",!0);Ce&&(!$e||$e==="auto")&&($e=_e==="horizontal"?"end":"start"),this.renderInner(pe,oe,ae,le,Ce,_e,$e);var xe=oe.getBoxLayoutParams(),Ie={width:le.getWidth(),height:le.getHeight()},Fe=oe.get("padding"),ze=getLayoutRect(xe,Ie,Fe),Ue=this.layoutInner(oe,pe,ze,ue,Ce,$e),qe=getLayoutRect(defaults({width:Ue.width,height:Ue.height},xe),Ie,Fe);this.group.x=qe.x-Ue.x,this.group.y=qe.y-Ue.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(Ue,oe))}},z.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},z.prototype.renderInner=function(oe,ae,le,ue,pe,_e,Ce){var $e=this.getContentGroup(),xe=createHashMap(),Ie=ae.get("selectedMode"),Fe=[];le.eachRawSeries(function(ze){!ze.get("legendHoverLink")&&Fe.push(ze.id)}),each$3(ae.getData(),function(ze,Ue){var qe=ze.get("name");if(!this.newlineDisabled&&(qe===""||qe===`
|
||
`)){var At=new Group$1;At.newline=!0,$e.add(At);return}var Lt=le.getSeriesByName(qe)[0];if(!xe.get(qe))if(Lt){var hn=Lt.getData(),vn=hn.getVisual("legendLineStyle")||{},_n=hn.getVisual("legendIcon"),bn=hn.getVisual("style"),Sn=this._createItem(Lt,qe,Ue,ze,ae,oe,vn,bn,_n,Ie,ue);Sn.on("click",curry(dispatchSelectAction,qe,null,ue,Fe)).on("mouseover",curry(dispatchHighlightAction,Lt.name,null,ue,Fe)).on("mouseout",curry(dispatchDownplayAction,Lt.name,null,ue,Fe)),xe.set(qe,!0)}else le.eachRawSeries(function(Cn){if(!xe.get(qe)&&Cn.legendVisualProvider){var En=Cn.legendVisualProvider;if(!En.containName(qe))return;var $n=En.indexOfName(qe),wn=En.getItemVisual($n,"style"),Tn=En.getItemVisual($n,"legendIcon"),xn=parse$1(wn.fill);xn&&xn[3]===0&&(xn[3]=.2,wn=extend(extend({},wn),{fill:stringify(xn,"rgba")}));var kn=this._createItem(Cn,qe,Ue,ze,ae,oe,{},wn,Tn,Ie,ue);kn.on("click",curry(dispatchSelectAction,null,qe,ue,Fe)).on("mouseover",curry(dispatchHighlightAction,null,qe,ue,Fe)).on("mouseout",curry(dispatchDownplayAction,null,qe,ue,Fe)),xe.set(qe,!0)}},this)},this),pe&&this._createSelector(pe,ae,ue,_e,Ce)},z.prototype._createSelector=function(oe,ae,le,ue,pe){var _e=this.getSelectorGroup();each$3(oe,function($e){var xe=$e.type,Ie=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){le.dispatchAction({type:xe==="all"?"legendAllSelect":"legendInverseSelect"})}});_e.add(Ie);var Fe=ae.getModel("selectorLabel"),ze=ae.getModel(["emphasis","selectorLabel"]);setLabelStyle(Ie,{normal:Fe,emphasis:ze},{defaultText:$e.title}),enableHoverEmphasis(Ie)})},z.prototype._createItem=function(oe,ae,le,ue,pe,_e,Ce,$e,xe,Ie,Fe){var ze=oe.visualDrawType,Ue=pe.get("itemWidth"),qe=pe.get("itemHeight"),At=pe.isSelected(ae),Lt=ue.get("symbolRotate"),hn=ue.get("symbolKeepAspect"),vn=ue.get("icon");xe=vn||xe||"roundRect";var _n=getLegendStyle(xe,ue,Ce,$e,ze,At,Fe),bn=new Group$1,Sn=ue.getModel("textStyle");if(isFunction(oe.getLegendIcon)&&(!vn||vn==="inherit"))bn.add(oe.getLegendIcon({itemWidth:Ue,itemHeight:qe,icon:xe,iconRotate:Lt,itemStyle:_n.itemStyle,lineStyle:_n.lineStyle,symbolKeepAspect:hn}));else{var Cn=vn==="inherit"&&oe.getData().getVisual("symbol")?Lt==="inherit"?oe.getData().getVisual("symbolRotate"):Lt:0;bn.add(getDefaultLegendIcon({itemWidth:Ue,itemHeight:qe,icon:xe,iconRotate:Cn,itemStyle:_n.itemStyle,lineStyle:_n.lineStyle,symbolKeepAspect:hn}))}var En=_e==="left"?Ue+5:-5,$n=_e,wn=pe.get("formatter"),Tn=ae;isString(wn)&&wn?Tn=wn.replace("{name}",ae??""):isFunction(wn)&&(Tn=wn(ae));var xn=ue.get("inactiveColor");bn.add(new ZRText$1({style:createTextStyle$1(Sn,{text:Tn,x:En,y:qe/2,fill:At?Sn.getTextColor():xn,align:$n,verticalAlign:"middle"})}));var kn=new Rect$2({shape:bn.getBoundingRect(),invisible:!0}),Nn=ue.getModel("tooltip");return Nn.get("show")&&setTooltipConfig({el:kn,componentModel:pe,itemName:ae,itemTooltipOption:Nn.option}),bn.add(kn),bn.eachChild(function(Bn){Bn.silent=!0}),kn.silent=!Ie,this.getContentGroup().add(bn),enableHoverEmphasis(bn),bn.__legendDataIndex=le,bn},z.prototype.layoutInner=function(oe,ae,le,ue,pe,_e){var Ce=this.getContentGroup(),$e=this.getSelectorGroup();box(oe.get("orient"),Ce,oe.get("itemGap"),le.width,le.height);var xe=Ce.getBoundingRect(),Ie=[-xe.x,-xe.y];if($e.markRedraw(),Ce.markRedraw(),pe){box("horizontal",$e,oe.get("selectorItemGap",!0));var Fe=$e.getBoundingRect(),ze=[-Fe.x,-Fe.y],Ue=oe.get("selectorButtonGap",!0),qe=oe.getOrient().index,At=qe===0?"width":"height",Lt=qe===0?"height":"width",hn=qe===0?"y":"x";_e==="end"?ze[qe]+=xe[At]+Ue:Ie[qe]+=Fe[At]+Ue,ze[1-qe]+=xe[Lt]/2-Fe[Lt]/2,$e.x=ze[0],$e.y=ze[1],Ce.x=Ie[0],Ce.y=Ie[1];var vn={x:0,y:0};return vn[At]=xe[At]+Ue+Fe[At],vn[Lt]=Math.max(xe[Lt],Fe[Lt]),vn[hn]=Math.min(0,Fe[hn]+ze[1-qe]),vn}else return Ce.x=Ie[0],Ce.y=Ie[1],this.group.getBoundingRect()},z.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},z.type="legend.plain",z}(ComponentView$1);function getLegendStyle($,z,oe,ae,le,ue,pe){function _e(At,Lt){At.lineWidth==="auto"&&(At.lineWidth=Lt.lineWidth>0?2:0),each$3(At,function(hn,vn){At[vn]==="inherit"&&(At[vn]=Lt[vn])})}var Ce=z.getModel("itemStyle"),$e=Ce.getItemStyle(),xe=$.lastIndexOf("empty",0)===0?"fill":"stroke",Ie=Ce.getShallow("decal");$e.decal=!Ie||Ie==="inherit"?ae.decal:createOrUpdatePatternFromDecal(Ie,pe),$e.fill==="inherit"&&($e.fill=ae[le]),$e.stroke==="inherit"&&($e.stroke=ae[xe]),$e.opacity==="inherit"&&($e.opacity=(le==="fill"?ae:oe).opacity),_e($e,ae);var Fe=z.getModel("lineStyle"),ze=Fe.getLineStyle();if(_e(ze,oe),$e.fill==="auto"&&($e.fill=ae.fill),$e.stroke==="auto"&&($e.stroke=ae.fill),ze.stroke==="auto"&&(ze.stroke=ae.fill),!ue){var Ue=z.get("inactiveBorderWidth"),qe=$e[xe];$e.lineWidth=Ue==="auto"?ae.lineWidth>0&&qe?2:0:$e.lineWidth,$e.fill=z.get("inactiveColor"),$e.stroke=z.get("inactiveBorderColor"),ze.stroke=Fe.get("inactiveColor"),ze.lineWidth=Fe.get("inactiveWidth")}return{itemStyle:$e,lineStyle:ze}}function getDefaultLegendIcon($){var z=$.icon||"roundRect",oe=createSymbol(z,0,0,$.itemWidth,$.itemHeight,$.itemStyle.fill,$.symbolKeepAspect);return oe.setStyle($.itemStyle),oe.rotation=($.iconRotate||0)*Math.PI/180,oe.setOrigin([$.itemWidth/2,$.itemHeight/2]),z.indexOf("empty")>-1&&(oe.style.stroke=oe.style.fill,oe.style.fill="#fff",oe.style.lineWidth=2),oe}function dispatchSelectAction($,z,oe,ae){dispatchDownplayAction($,z,oe,ae),oe.dispatchAction({type:"legendToggleSelect",name:$??z}),dispatchHighlightAction($,z,oe,ae)}function isUseHoverLayer($){for(var z=$.getZr().storage.getDisplayList(),oe,ae=0,le=z.length;ae<le&&!(oe=z[ae].states.emphasis);)ae++;return oe&&oe.hoverLayer}function dispatchHighlightAction($,z,oe,ae){isUseHoverLayer(oe)||oe.dispatchAction({type:"highlight",seriesName:$,name:z,excludeSeriesId:ae})}function dispatchDownplayAction($,z,oe,ae){isUseHoverLayer(oe)||oe.dispatchAction({type:"downplay",seriesName:$,name:z,excludeSeriesId:ae})}const LegendView$1=LegendView;function legendFilter($){var z=$.findComponents({mainType:"legend"});z&&z.length&&$.filterSeries(function(oe){for(var ae=0;ae<z.length;ae++)if(!z[ae].isSelected(oe.name))return!1;return!0})}function legendSelectActionHandler($,z,oe){var ae={},le=$==="toggleSelected",ue;return oe.eachComponent("legend",function(pe){le&&ue!=null?pe[ue?"select":"unSelect"](z.name):$==="allSelect"||$==="inverseSelect"?pe[$]():(pe[$](z.name),ue=pe.isSelected(z.name));var _e=pe.getData();each$c(_e,function(Ce){var $e=Ce.get("name");if(!($e===`
|
||
`||$e==="")){var xe=pe.isSelected($e);ae.hasOwnProperty($e)?ae[$e]=ae[$e]&&xe:ae[$e]=xe}})}),$==="allSelect"||$==="inverseSelect"?{selected:ae}:{name:z.name,selected:ae}}function installLegendAction($){$.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),$.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),$.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),$.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),$.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$8($){$.registerComponentModel(LegendModel$1),$.registerComponentView(LegendView$1),$.registerProcessor($.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),$.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction($)}var ScrollableLegendModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.setScrollDataIndex=function(oe){this.option.scrollDataIndex=oe},z.prototype.init=function(oe,ae,le){var ue=getLayoutParams(oe);$.prototype.init.call(this,oe,ae,le),mergeAndNormalizeLayoutParams(this,oe,ue)},z.prototype.mergeOption=function(oe,ae){$.prototype.mergeOption.call(this,oe,ae),mergeAndNormalizeLayoutParams(this,this.option,oe)},z.type="legend.scroll",z.defaultOption=inheritDefaultOption(LegendModel$1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),z}(LegendModel$1);function mergeAndNormalizeLayoutParams($,z,oe){var ae=$.getOrient(),le=[1,1];le[ae.index]=0,mergeLayoutParam(z,oe,{type:"box",ignoreSize:!!le})}const ScrollableLegendModel$1=ScrollableLegendModel;var Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.newlineDisabled=!0,oe._currentIndex=0,oe}return z.prototype.init=function(){$.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},z.prototype.resetInner=function(){$.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},z.prototype.renderInner=function(oe,ae,le,ue,pe,_e,Ce){var $e=this;$.prototype.renderInner.call(this,oe,ae,le,ue,pe,_e,Ce);var xe=this._controllerGroup,Ie=ae.get("pageIconSize",!0),Fe=isArray$1(Ie)?Ie:[Ie,Ie];Ue("pagePrev",0);var ze=ae.getModel("pageTextStyle");xe.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:ze.getTextColor(),font:ze.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),Ue("pageNext",1);function Ue(qe,At){var Lt=qe+"DataIndex",hn=createIcon(ae.get("pageIcons",!0)[ae.getOrient().name][At],{onclick:bind$1($e._pageGo,$e,Lt,ae,ue)},{x:-Fe[0]/2,y:-Fe[1]/2,width:Fe[0],height:Fe[1]});hn.name=qe,xe.add(hn)}},z.prototype.layoutInner=function(oe,ae,le,ue,pe,_e){var Ce=this.getSelectorGroup(),$e=oe.getOrient().index,xe=WH[$e],Ie=XY[$e],Fe=WH[1-$e],ze=XY[1-$e];pe&&box("horizontal",Ce,oe.get("selectorItemGap",!0));var Ue=oe.get("selectorButtonGap",!0),qe=Ce.getBoundingRect(),At=[-qe.x,-qe.y],Lt=clone$3(le);pe&&(Lt[xe]=le[xe]-qe[xe]-Ue);var hn=this._layoutContentAndController(oe,ue,Lt,$e,xe,Fe,ze,Ie);if(pe){if(_e==="end")At[$e]+=hn[xe]+Ue;else{var vn=qe[xe]+Ue;At[$e]-=vn,hn[Ie]-=vn}hn[xe]+=qe[xe]+Ue,At[1-$e]+=hn[ze]+hn[Fe]/2-qe[Fe]/2,hn[Fe]=Math.max(hn[Fe],qe[Fe]),hn[ze]=Math.min(hn[ze],qe[ze]+At[1-$e]),Ce.x=At[0],Ce.y=At[1],Ce.markRedraw()}return hn},z.prototype._layoutContentAndController=function(oe,ae,le,ue,pe,_e,Ce,$e){var xe=this.getContentGroup(),Ie=this._containerGroup,Fe=this._controllerGroup;box(oe.get("orient"),xe,oe.get("itemGap"),ue?le.width:null,ue?null:le.height),box("horizontal",Fe,oe.get("pageButtonItemGap",!0));var ze=xe.getBoundingRect(),Ue=Fe.getBoundingRect(),qe=this._showController=ze[pe]>le[pe],At=[-ze.x,-ze.y];ae||(At[ue]=xe[$e]);var Lt=[0,0],hn=[-Ue.x,-Ue.y],vn=retrieve2(oe.get("pageButtonGap",!0),oe.get("itemGap",!0));if(qe){var _n=oe.get("pageButtonPosition",!0);_n==="end"?hn[ue]+=le[pe]-Ue[pe]:Lt[ue]+=Ue[pe]+vn}hn[1-ue]+=ze[_e]/2-Ue[_e]/2,xe.setPosition(At),Ie.setPosition(Lt),Fe.setPosition(hn);var bn={x:0,y:0};if(bn[pe]=qe?le[pe]:ze[pe],bn[_e]=Math.max(ze[_e],Ue[_e]),bn[Ce]=Math.min(0,Ue[Ce]+hn[1-ue]),Ie.__rectSize=le[pe],qe){var Sn={x:0,y:0};Sn[pe]=Math.max(le[pe]-Ue[pe]-vn,0),Sn[_e]=bn[_e],Ie.setClipPath(new Rect$2({shape:Sn})),Ie.__rectSize=Sn[pe]}else Fe.eachChild(function(En){En.attr({invisible:!0,silent:!0})});var Cn=this._getPageInfo(oe);return Cn.pageIndex!=null&&updateProps$1(xe,{x:Cn.contentPosition[0],y:Cn.contentPosition[1]},qe?oe:null),this._updatePageInfoView(oe,Cn),bn},z.prototype._pageGo=function(oe,ae,le){var ue=this._getPageInfo(ae)[oe];ue!=null&&le.dispatchAction({type:"legendScroll",scrollDataIndex:ue,legendId:ae.id})},z.prototype._updatePageInfoView=function(oe,ae){var le=this._controllerGroup;each$c(["pagePrev","pageNext"],function(xe){var Ie=xe+"DataIndex",Fe=ae[Ie]!=null,ze=le.childOfName(xe);ze&&(ze.setStyle("fill",Fe?oe.get("pageIconColor",!0):oe.get("pageIconInactiveColor",!0)),ze.cursor=Fe?"pointer":"default")});var ue=le.childOfName("pageText"),pe=oe.get("pageFormatter"),_e=ae.pageIndex,Ce=_e!=null?_e+1:0,$e=ae.pageCount;ue&&pe&&ue.setStyle("text",isString(pe)?pe.replace("{current}",Ce==null?"":Ce+"").replace("{total}",$e==null?"":$e+""):pe({current:Ce,total:$e}))},z.prototype._getPageInfo=function(oe){var ae=oe.get("scrollDataIndex",!0),le=this.getContentGroup(),ue=this._containerGroup.__rectSize,pe=oe.getOrient().index,_e=WH[pe],Ce=XY[pe],$e=this._findTargetItemIndex(ae),xe=le.children(),Ie=xe[$e],Fe=xe.length,ze=Fe?1:0,Ue={contentPosition:[le.x,le.y],pageCount:ze,pageIndex:ze-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!Ie)return Ue;var qe=_n(Ie);Ue.contentPosition[pe]=-qe.s;for(var At=$e+1,Lt=qe,hn=qe,vn=null;At<=Fe;++At)vn=_n(xe[At]),(!vn&&hn.e>Lt.s+ue||vn&&!bn(vn,Lt.s))&&(hn.i>Lt.i?Lt=hn:Lt=vn,Lt&&(Ue.pageNextDataIndex==null&&(Ue.pageNextDataIndex=Lt.i),++Ue.pageCount)),hn=vn;for(var At=$e-1,Lt=qe,hn=qe,vn=null;At>=-1;--At)vn=_n(xe[At]),(!vn||!bn(hn,vn.s))&&Lt.i<hn.i&&(hn=Lt,Ue.pagePrevDataIndex==null&&(Ue.pagePrevDataIndex=Lt.i),++Ue.pageCount,++Ue.pageIndex),Lt=vn;return Ue;function _n(Sn){if(Sn){var Cn=Sn.getBoundingRect(),En=Cn[Ce]+Sn[Ce];return{s:En,e:En+Cn[_e],i:Sn.__legendDataIndex}}}function bn(Sn,Cn){return Sn.e>=Cn&&Sn.s<=Cn+ue}},z.prototype._findTargetItemIndex=function(oe){if(!this._showController)return 0;var ae,le=this.getContentGroup(),ue;return le.eachChild(function(pe,_e){var Ce=pe.__legendDataIndex;ue==null&&Ce!=null&&(ue=_e),Ce===oe&&(ae=_e)}),ae??ue},z.type="legend.scroll",z}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction($){$.registerAction("legendScroll","legendscroll",function(z,oe){var ae=z.scrollDataIndex;ae!=null&&oe.eachComponent({mainType:"legend",subType:"scroll",query:z},function(le){le.setScrollDataIndex(ae)})})}function install$7($){use$1(install$8),$.registerComponentModel(ScrollableLegendModel$1),$.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction($)}function install$6($){use$1(install$8),use$1(install$7)}var InsideZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.inside",z.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),z}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord($,z,oe){inner($).coordSysRecordMap.each(function(ae){var le=ae.dataZoomInfoMap.get(z.uid);le&&(le.getRange=oe)})}function disposeCoordSysRecordIfNeeded($,z){for(var oe=inner($).coordSysRecordMap,ae=oe.keys(),le=0;le<ae.length;le++){var ue=ae[le],pe=oe.get(ue),_e=pe.dataZoomInfoMap;if(_e){var Ce=z.uid,$e=_e.get(Ce);$e&&(_e.removeKey(Ce),_e.keys().length||disposeCoordSysRecord(oe,pe))}}}function disposeCoordSysRecord($,z){if(z){$.removeKey(z.model.uid);var oe=z.controller;oe&&oe.dispose()}}function createCoordSysRecord($,z){var oe={model:z,containsPoint:curry$1(containsPoint,z),dispatchAction:curry$1(dispatchAction,$),dataZoomInfoMap:null,controller:null},ae=oe.controller=new RoamController$1($.getZr());return each$c(["pan","zoom","scrollMove"],function(le){ae.on(le,function(ue){var pe=[];oe.dataZoomInfoMap.each(function(_e){if(ue.isAvailableBehavior(_e.model.option)){var Ce=(_e.getRange||{})[le],$e=Ce&&Ce(_e.dzReferCoordSysInfo,oe.model.mainType,oe.controller,ue);!_e.model.get("disabled",!0)&&$e&&pe.push({dataZoomId:_e.model.id,start:$e[0],end:$e[1]})}}),pe.length&&oe.dispatchAction(pe)})}),oe}function dispatchAction($,z){$.isDisposed()||$.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:z})}function containsPoint($,z,oe,ae){return $.coordinateSystem.containPoint([oe,ae])}function mergeControllerParams($){var z,oe="type_",ae={type_true:2,type_move:1,type_false:0,type_undefined:-1},le=!0;return $.each(function(ue){var pe=ue.model,_e=pe.get("disabled",!0)?!1:pe.get("zoomLock",!0)?"move":!0;ae[oe+_e]>ae[oe+z]&&(z=_e),le=le&&pe.get("preventDefaultMouseMove",!0)}),{controlType:z,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!le}}}function installDataZoomRoamProcessor($){$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,function(z,oe){var ae=inner(oe),le=ae.coordSysRecordMap||(ae.coordSysRecordMap=createHashMap());le.each(function(ue){ue.dataZoomInfoMap=null}),z.eachComponent({mainType:"dataZoom",subType:"inside"},function(ue){var pe=collectReferCoordSysModelInfo(ue);each$c(pe.infoList,function(_e){var Ce=_e.model.uid,$e=le.get(Ce)||le.set(Ce,createCoordSysRecord(oe,_e.model)),xe=$e.dataZoomInfoMap||($e.dataZoomInfoMap=createHashMap());xe.set(ue.uid,{dzReferCoordSysInfo:_e,model:ue,getRange:null})})}),le.each(function(ue){var pe=ue.controller,_e,Ce=ue.dataZoomInfoMap;if(Ce){var $e=Ce.keys()[0];$e!=null&&(_e=Ce.get($e))}if(!_e){disposeCoordSysRecord(le,ue);return}var xe=mergeControllerParams(Ce);pe.enable(xe.controlType,xe.opt),pe.setPointerChecker(ue.containsPoint),createOrUpdate(ue,"dispatchAction",_e.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type="dataZoom.inside",oe}return z.prototype.render=function(oe,ae,le){if($.prototype.render.apply(this,arguments),oe.noTarget()){this._clear();return}this.range=oe.getPercentRange(),setViewInfoToCoordSysRecord(le,oe,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},z.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},z.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},z.type="dataZoom.inside",z}(DataZoomView$1),getRangeHandlers={zoom:function($,z,oe,ae){var le=this.range,ue=le.slice(),pe=$.axisModels[0];if(pe){var _e=getDirectionInfo[z](null,[ae.originX,ae.originY],pe,oe,$),Ce=(_e.signal>0?_e.pixelStart+_e.pixelLength-_e.pixel:_e.pixel-_e.pixelStart)/_e.pixelLength*(ue[1]-ue[0])+ue[0],$e=Math.max(1/ae.scale,0);ue[0]=(ue[0]-Ce)*$e+Ce,ue[1]=(ue[1]-Ce)*$e+Ce;var xe=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,ue,[0,100],0,xe.minSpan,xe.maxSpan),this.range=ue,le[0]!==ue[0]||le[1]!==ue[1])return ue}},pan:makeMover(function($,z,oe,ae,le,ue){var pe=getDirectionInfo[ae]([ue.oldX,ue.oldY],[ue.newX,ue.newY],z,le,oe);return pe.signal*($[1]-$[0])*pe.pixel/pe.pixelLength}),scrollMove:makeMover(function($,z,oe,ae,le,ue){var pe=getDirectionInfo[ae]([0,0],[ue.scrollDelta,ue.scrollDelta],z,le,oe);return pe.signal*($[1]-$[0])*ue.scrollDelta})};function makeMover($){return function(z,oe,ae,le){var ue=this.range,pe=ue.slice(),_e=z.axisModels[0];if(_e){var Ce=$(pe,_e,z,oe,ae,le);if(sliderMove(Ce,pe,[0,100],"all"),this.range=pe,ue[0]!==pe[0]||ue[1]!==pe[1])return pe}}}var getDirectionInfo={grid:function($,z,oe,ae,le){var ue=oe.axis,pe={},_e=le.model.coordinateSystem.getRect();return $=$||[0,0],ue.dim==="x"?(pe.pixel=z[0]-$[0],pe.pixelLength=_e.width,pe.pixelStart=_e.x,pe.signal=ue.inverse?1:-1):(pe.pixel=z[1]-$[1],pe.pixelLength=_e.height,pe.pixelStart=_e.y,pe.signal=ue.inverse?-1:1),pe},polar:function($,z,oe,ae,le){var ue=oe.axis,pe={},_e=le.model.coordinateSystem,Ce=_e.getRadiusAxis().getExtent(),$e=_e.getAngleAxis().getExtent();return $=$?_e.pointToCoord($):[0,0],z=_e.pointToCoord(z),oe.mainType==="radiusAxis"?(pe.pixel=z[0]-$[0],pe.pixelLength=Ce[1]-Ce[0],pe.pixelStart=Ce[0],pe.signal=ue.inverse?1:-1):(pe.pixel=z[1]-$[1],pe.pixelLength=$e[1]-$e[0],pe.pixelStart=$e[0],pe.signal=ue.inverse?-1:1),pe},singleAxis:function($,z,oe,ae,le){var ue=oe.axis,pe=le.model.coordinateSystem.getRect(),_e={};return $=$||[0,0],ue.orient==="horizontal"?(_e.pixel=z[0]-$[0],_e.pixelLength=pe.width,_e.pixelStart=pe.x,_e.signal=ue.inverse?1:-1):(_e.pixel=z[1]-$[1],_e.pixelLength=pe.height,_e.pixelStart=pe.y,_e.signal=ue.inverse?-1:1),_e}};const InsideZoomView$1=InsideZoomView;function install$5($){installCommon$1($),$.registerComponentModel(InsideZoomModel$1),$.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor($)}var SliderZoomModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.type="dataZoom.slider",z.layoutMode="box",z.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),z}(DataZoomModel$1);const SliderZoomModel$1=SliderZoomModel;var Rect=Rect$2,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._displayables={},oe}return z.prototype.init=function(oe,ae){this.api=ae,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},z.prototype.render=function(oe,ae,le,ue){if($.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",oe.get("throttle"),"fixRate"),this._orient=oe.getOrient(),oe.get("show")===!1){this.group.removeAll();return}if(oe.noTarget()){this._clear(),this.group.removeAll();return}(!ue||ue.type!=="dataZoom"||ue.from!==this.uid)&&this._buildView(),this._updateView()},z.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},z.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var oe=this.api.getZr();oe.off("mousemove",this._onBrush),oe.off("mouseup",this._onBrushEnd)},z.prototype._buildView=function(){var oe=this.group;oe.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var ae=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),oe.add(ae),this._positionGroup()},z.prototype._resetLocation=function(){var oe=this.dataZoomModel,ae=this.api,le=oe.get("brushSelect"),ue=le?DEFAULT_MOVE_HANDLE_SIZE:0,pe=this._findCoordRect(),_e={width:ae.getWidth(),height:ae.getHeight()},Ce=this._orient===HORIZONTAL?{right:_e.width-pe.x-pe.width,top:_e.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-ue,width:pe.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:pe.y,width:DEFAULT_FILLER_SIZE,height:pe.height},$e=getLayoutParams(oe.option);each$c(["right","top","width","height"],function(Ie){$e[Ie]==="ph"&&($e[Ie]=Ce[Ie])});var xe=getLayoutRect($e,_e);this._location={x:xe.x,y:xe.y},this._size=[xe.width,xe.height],this._orient===VERTICAL&&this._size.reverse()},z.prototype._positionGroup=function(){var oe=this.group,ae=this._location,le=this._orient,ue=this.dataZoomModel.getFirstTargetAxisModel(),pe=ue&&ue.get("inverse"),_e=this._displayables.sliderGroup,Ce=(this._dataShadowInfo||{}).otherAxisInverse;_e.attr(le===HORIZONTAL&&!pe?{scaleY:Ce?1:-1,scaleX:1}:le===HORIZONTAL&&pe?{scaleY:Ce?1:-1,scaleX:-1}:le===VERTICAL&&!pe?{scaleY:Ce?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:Ce?-1:1,scaleX:-1,rotation:Math.PI/2});var $e=oe.getBoundingRect([_e]);oe.x=ae.x-$e.x,oe.y=ae.y-$e.y,oe.markRedraw()},z.prototype._getViewExtent=function(){return[0,this._size[0]]},z.prototype._renderBackground=function(){var oe=this.dataZoomModel,ae=this._size,le=this._displayables.sliderGroup,ue=oe.get("brushSelect");le.add(new Rect({silent:!0,shape:{x:0,y:0,width:ae[0],height:ae[1]},style:{fill:oe.get("backgroundColor")},z2:-40}));var pe=new Rect({shape:{x:0,y:0,width:ae[0],height:ae[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),_e=this.api.getZr();ue?(pe.on("mousedown",this._onBrushStart,this),pe.cursor="crosshair",_e.on("mousemove",this._onBrush),_e.on("mouseup",this._onBrushEnd)):(_e.off("mousemove",this._onBrush),_e.off("mouseup",this._onBrushEnd)),le.add(pe)},z.prototype._renderDataShadow=function(){var oe=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!oe)return;var ae=this._size,le=this._shadowSize||[],ue=oe.series,pe=ue.getRawData(),_e=ue.getShadowDim&&ue.getShadowDim(),Ce=_e&&pe.getDimensionInfo(_e)?ue.getShadowDim():oe.otherDim;if(Ce==null)return;var $e=this._shadowPolygonPts,xe=this._shadowPolylinePts;if(pe!==this._shadowData||Ce!==this._shadowDim||ae[0]!==le[0]||ae[1]!==le[1]){var Ie=pe.getDataExtent(Ce),Fe=(Ie[1]-Ie[0])*.3;Ie=[Ie[0]-Fe,Ie[1]+Fe];var ze=[0,ae[1]],Ue=[0,ae[0]],qe=[[ae[0],0],[0,0]],At=[],Lt=Ue[1]/(pe.count()-1),hn=0,vn=Math.round(pe.count()/ae[0]),_n;pe.each([Ce],function($n,wn){if(vn>0&&wn%vn){hn+=Lt;return}var Tn=$n==null||isNaN($n)||$n==="",xn=Tn?0:linearMap$2($n,Ie,ze,!0);Tn&&!_n&&wn?(qe.push([qe[qe.length-1][0],0]),At.push([At[At.length-1][0],0])):!Tn&&_n&&(qe.push([hn,0]),At.push([hn,0])),qe.push([hn,xn]),At.push([hn,xn]),hn+=Lt,_n=Tn}),$e=this._shadowPolygonPts=qe,xe=this._shadowPolylinePts=At}this._shadowData=pe,this._shadowDim=Ce,this._shadowSize=[ae[0],ae[1]];var bn=this.dataZoomModel;function Sn($n){var wn=bn.getModel($n?"selectedDataBackground":"dataBackground"),Tn=new Group$3,xn=new Polygon$1({shape:{points:$e},segmentIgnoreThreshold:1,style:wn.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),kn=new Polyline$1({shape:{points:xe},segmentIgnoreThreshold:1,style:wn.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Tn.add(xn),Tn.add(kn),Tn}for(var Cn=0;Cn<3;Cn++){var En=Sn(Cn===1);this._displayables.sliderGroup.add(En),this._displayables.dataShadowSegs.push(En)}},z.prototype._prepareDataShadowInfo=function(){var oe=this.dataZoomModel,ae=oe.get("showDataShadow");if(ae!==!1){var le,ue=this.ecModel;return oe.eachTargetAxis(function(pe,_e){var Ce=oe.getAxisProxy(pe,_e).getTargetSeriesModels();each$c(Ce,function($e){if(!le&&!(ae!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,$e.get("type"))<0)){var xe=ue.getComponent(getAxisMainType(pe),_e).axis,Ie=getOtherDim(pe),Fe,ze=$e.coordinateSystem;Ie!=null&&ze.getOtherAxis&&(Fe=ze.getOtherAxis(xe).inverse),Ie=$e.getData().mapDimension(Ie),le={thisAxis:xe,series:$e,thisDim:pe,otherDim:Ie,otherAxisInverse:Fe}}},this)},this),le}},z.prototype._renderHandle=function(){var oe=this.group,ae=this._displayables,le=ae.handles=[null,null],ue=ae.handleLabels=[null,null],pe=this._displayables.sliderGroup,_e=this._size,Ce=this.dataZoomModel,$e=this.api,xe=Ce.get("borderRadius")||0,Ie=Ce.get("brushSelect"),Fe=ae.filler=new Rect({silent:Ie,style:{fill:Ce.get("fillerColor")},textConfig:{position:"inside"}});pe.add(Fe),pe.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:_e[0],height:_e[1],r:xe},style:{stroke:Ce.get("dataBackgroundColor")||Ce.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(vn){var _n=Ce.get("handleIcon");!symbolBuildProxies[_n]&&_n.indexOf("path://")<0&&_n.indexOf("image://")<0&&(_n="path://"+_n);var bn=createSymbol(_n,-1,0,2,2,null,!0);bn.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,vn),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var Sn=bn.getBoundingRect(),Cn=Ce.get("handleSize");this._handleHeight=parsePercent(Cn,this._size[1]),this._handleWidth=Sn.width/Sn.height*this._handleHeight,bn.setStyle(Ce.getModel("handleStyle").getItemStyle()),bn.style.strokeNoScale=!0,bn.rectHover=!0,bn.ensureState("emphasis").style=Ce.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(bn);var En=Ce.get("handleColor");En!=null&&(bn.style.fill=En),pe.add(le[vn]=bn);var $n=Ce.getModel("textStyle");oe.add(ue[vn]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1($n,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:$n.getTextColor(),font:$n.getFont()}),z2:10}))},this);var ze=Fe;if(Ie){var Ue=parsePercent(Ce.get("moveHandleSize"),_e[1]),qe=ae.moveHandle=new Rect$2({style:Ce.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:_e[1]-.5,height:Ue}}),At=Ue*.8,Lt=ae.moveHandleIcon=createSymbol(Ce.get("moveHandleIcon"),-At/2,-At/2,At,At,"#fff",!0);Lt.silent=!0,Lt.y=_e[1]+Ue/2-.5,qe.ensureState("emphasis").style=Ce.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var hn=Math.min(_e[1]/2,Math.max(Ue,10));ze=ae.moveZone=new Rect$2({invisible:!0,shape:{y:_e[1]-hn,height:Ue+hn}}),ze.on("mouseover",function(){$e.enterEmphasis(qe)}).on("mouseout",function(){$e.leaveEmphasis(qe)}),pe.add(qe),pe.add(Lt),pe.add(ze)}ze.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},z.prototype._resetInterval=function(){var oe=this._range=this.dataZoomModel.getPercentRange(),ae=this._getViewExtent();this._handleEnds=[linearMap$2(oe[0],[0,100],ae,!0),linearMap$2(oe[1],[0,100],ae,!0)]},z.prototype._updateInterval=function(oe,ae){var le=this.dataZoomModel,ue=this._handleEnds,pe=this._getViewExtent(),_e=le.findRepresentativeAxisProxy().getMinMaxSpan(),Ce=[0,100];sliderMove(ae,ue,pe,le.get("zoomLock")?"all":oe,_e.minSpan!=null?linearMap$2(_e.minSpan,Ce,pe,!0):null,_e.maxSpan!=null?linearMap$2(_e.maxSpan,Ce,pe,!0):null);var $e=this._range,xe=this._range=asc$2([linearMap$2(ue[0],pe,Ce,!0),linearMap$2(ue[1],pe,Ce,!0)]);return!$e||$e[0]!==xe[0]||$e[1]!==xe[1]},z.prototype._updateView=function(oe){var ae=this._displayables,le=this._handleEnds,ue=asc$2(le.slice()),pe=this._size;each$c([0,1],function(ze){var Ue=ae.handles[ze],qe=this._handleHeight;Ue.attr({scaleX:qe/2,scaleY:qe/2,x:le[ze]+(ze?-1:1),y:pe[1]/2-qe/2})},this),ae.filler.setShape({x:ue[0],y:0,width:ue[1]-ue[0],height:pe[1]});var _e={x:ue[0],width:ue[1]-ue[0]};ae.moveHandle&&(ae.moveHandle.setShape(_e),ae.moveZone.setShape(_e),ae.moveZone.getBoundingRect(),ae.moveHandleIcon&&ae.moveHandleIcon.attr("x",_e.x+_e.width/2));for(var Ce=ae.dataShadowSegs,$e=[0,ue[0],ue[1],pe[0]],xe=0;xe<Ce.length;xe++){var Ie=Ce[xe],Fe=Ie.getClipPath();Fe||(Fe=new Rect$2,Ie.setClipPath(Fe)),Fe.setShape({x:$e[xe],y:0,width:$e[xe+1]-$e[xe],height:pe[1]})}this._updateDataInfo(oe)},z.prototype._updateDataInfo=function(oe){var ae=this.dataZoomModel,le=this._displayables,ue=le.handleLabels,pe=this._orient,_e=["",""];if(ae.get("showDetail")){var Ce=ae.findRepresentativeAxisProxy();if(Ce){var $e=Ce.getAxisModel().axis,xe=this._range,Ie=oe?Ce.calculateDataWindow({start:xe[0],end:xe[1]}).valueWindow:Ce.getDataValueWindow();_e=[this._formatLabel(Ie[0],$e),this._formatLabel(Ie[1],$e)]}}var Fe=asc$2(this._handleEnds.slice());ze.call(this,0),ze.call(this,1);function ze(Ue){var qe=getTransform$1(le.handles[Ue].parent,this.group),At=transformDirection(Ue===0?"right":"left",qe),Lt=this._handleWidth/2+LABEL_GAP,hn=applyTransform([Fe[Ue]+(Ue===0?-Lt:Lt),this._size[1]/2],qe);ue[Ue].setStyle({x:hn[0],y:hn[1],verticalAlign:pe===HORIZONTAL?"middle":At,align:pe===HORIZONTAL?At:"center",text:_e[Ue]})}},z.prototype._formatLabel=function(oe,ae){var le=this.dataZoomModel,ue=le.get("labelFormatter"),pe=le.get("labelPrecision");(pe==null||pe==="auto")&&(pe=ae.getPixelPrecision());var _e=oe==null||isNaN(oe)?"":ae.type==="category"||ae.type==="time"?ae.scale.getLabel({value:Math.round(oe)}):oe.toFixed(Math.min(pe,20));return isFunction(ue)?ue(oe,_e):isString(ue)?ue.replace("{value}",_e):_e},z.prototype._showDataInfo=function(oe){oe=this._dragging||oe;var ae=this._displayables,le=ae.handleLabels;le[0].attr("invisible",!oe),le[1].attr("invisible",!oe),ae.moveHandle&&this.api[oe?"enterEmphasis":"leaveEmphasis"](ae.moveHandle,1)},z.prototype._onDragMove=function(oe,ae,le,ue){this._dragging=!0,stop(ue.event);var pe=this._displayables.sliderGroup.getLocalTransform(),_e=applyTransform([ae,le],pe,!0),Ce=this._updateInterval(oe,_e[0]),$e=this.dataZoomModel.get("realtime");this._updateView(!$e),Ce&&$e&&this._dispatchZoomAction(!0)},z.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var oe=this.dataZoomModel.get("realtime");!oe&&this._dispatchZoomAction(!1)},z.prototype._onClickPanel=function(oe){var ae=this._size,le=this._displayables.sliderGroup.transformCoordToLocal(oe.offsetX,oe.offsetY);if(!(le[0]<0||le[0]>ae[0]||le[1]<0||le[1]>ae[1])){var ue=this._handleEnds,pe=(ue[0]+ue[1])/2,_e=this._updateInterval("all",le[0]-pe);this._updateView(),_e&&this._dispatchZoomAction(!1)}},z.prototype._onBrushStart=function(oe){var ae=oe.offsetX,le=oe.offsetY;this._brushStart=new Point$1(ae,le),this._brushing=!0,this._brushStartTime=+new Date},z.prototype._onBrushEnd=function(oe){if(this._brushing){var ae=this._displayables.brushRect;if(this._brushing=!1,!!ae){ae.attr("ignore",!0);var le=ae.shape,ue=+new Date;if(!(ue-this._brushStartTime<200&&Math.abs(le.width)<5)){var pe=this._getViewExtent(),_e=[0,100];this._range=asc$2([linearMap$2(le.x,pe,_e,!0),linearMap$2(le.x+le.width,pe,_e,!0)]),this._handleEnds=[le.x,le.x+le.width],this._updateView(),this._dispatchZoomAction(!1)}}}},z.prototype._onBrush=function(oe){this._brushing&&(stop(oe.event),this._updateBrushRect(oe.offsetX,oe.offsetY))},z.prototype._updateBrushRect=function(oe,ae){var le=this._displayables,ue=this.dataZoomModel,pe=le.brushRect;pe||(pe=le.brushRect=new Rect({silent:!0,style:ue.getModel("brushStyle").getItemStyle()}),le.sliderGroup.add(pe)),pe.attr("ignore",!1);var _e=this._brushStart,Ce=this._displayables.sliderGroup,$e=Ce.transformCoordToLocal(oe,ae),xe=Ce.transformCoordToLocal(_e.x,_e.y),Ie=this._size;$e[0]=Math.max(Math.min(Ie[0],$e[0]),0),pe.setShape({x:xe[0],y:0,width:$e[0]-xe[0],height:Ie[1]})},z.prototype._dispatchZoomAction=function(oe){var ae=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:oe?REALTIME_ANIMATION_CONFIG:null,start:ae[0],end:ae[1]})},z.prototype._findCoordRect=function(){var oe,ae=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!oe&&ae.length){var le=ae[0].model.coordinateSystem;oe=le.getRect&&le.getRect()}if(!oe){var ue=this.api.getWidth(),pe=this.api.getHeight();oe={x:ue*.2,y:pe*.2,width:ue*.6,height:pe*.6}}return oe},z.type="dataZoom.slider",z}(DataZoomView$1);function getOtherDim($){var z={x:"y",y:"x",radius:"angle",angle:"radius"};return z[$]}function getCursor$1($){return $==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4($){$.registerComponentModel(SliderZoomModel$1),$.registerComponentView(SliderZoomView$1),installCommon$1($)}function install$3($){use$1(install$5),use$1(install$4)}var visualDefault={get:function($,z,oe){var ae=clone$3((defaultOption[$]||{})[z]);return oe&&isArray$1(ae)?ae[ae.length-1]:ae}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const visualDefault$1=visualDefault;var mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$c,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.stateList=["inRange","outOfRange"],oe.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],oe.layoutMode={type:"box",ignoreSize:!0},oe.dataBound=[-1/0,1/0],oe.targetVisuals={},oe.controllerVisuals={},oe}return z.prototype.init=function(oe,ae,le){this.mergeDefaultAndTheme(oe,le)},z.prototype.optionUpdated=function(oe,ae){var le=this.option;!ae&&replaceVisualOption(le,oe,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},z.prototype.resetVisual=function(oe){var ae=this.stateList;oe=bind$1(oe,this),this.controllerVisuals=createVisualMappings(this.option.controller,ae,oe),this.targetVisuals=createVisualMappings(this.option.target,ae,oe)},z.prototype.getItemSymbol=function(){return null},z.prototype.getTargetSeriesIndices=function(){var oe=this.option.seriesIndex,ae=[];return oe==null||oe==="all"?this.ecModel.eachSeries(function(le,ue){ae.push(ue)}):ae=normalizeToArray(oe),ae},z.prototype.eachTargetSeries=function(oe,ae){each$c(this.getTargetSeriesIndices(),function(le){var ue=this.ecModel.getSeriesByIndex(le);ue&&oe.call(ae,ue)},this)},z.prototype.isTargetSeries=function(oe){var ae=!1;return this.eachTargetSeries(function(le){le===oe&&(ae=!0)}),ae},z.prototype.formatValueText=function(oe,ae,le){var ue=this.option,pe=ue.precision,_e=this.dataBound,Ce=ue.formatter,$e;le=le||["<",">"],isArray$1(oe)&&(oe=oe.slice(),$e=!0);var xe=ae?oe:$e?[Ie(oe[0]),Ie(oe[1])]:Ie(oe);if(isString(Ce))return Ce.replace("{value}",$e?xe[0]:xe).replace("{value2}",$e?xe[1]:xe);if(isFunction(Ce))return $e?Ce(oe[0],oe[1]):Ce(oe);if($e)return oe[0]===_e[0]?le[0]+" "+xe[1]:oe[1]===_e[1]?le[1]+" "+xe[0]:xe[0]+" - "+xe[1];return xe;function Ie(Fe){return Fe===_e[0]?"min":Fe===_e[1]?"max":(+Fe).toFixed(Math.min(pe,20))}},z.prototype.resetExtent=function(){var oe=this.option,ae=asc([oe.min,oe.max]);this._dataExtent=ae},z.prototype.getDataDimensionIndex=function(oe){var ae=this.option.dimension;if(ae!=null)return oe.getDimensionIndex(ae);for(var le=oe.dimensions,ue=le.length-1;ue>=0;ue--){var pe=le[ue],_e=oe.getDimensionInfo(pe);if(!_e.isCalculationCoord)return _e.storeDimIndex}},z.prototype.getExtent=function(){return this._dataExtent.slice()},z.prototype.completeVisualOption=function(){var oe=this.ecModel,ae=this.option,le={inRange:ae.inRange,outOfRange:ae.outOfRange},ue=ae.target||(ae.target={}),pe=ae.controller||(ae.controller={});merge(ue,le),merge(pe,le);var _e=this.isCategory();Ce.call(this,ue),Ce.call(this,pe),$e.call(this,ue,"inRange","outOfRange"),xe.call(this,pe);function Ce(Ie){isArray(ae.color)&&!Ie.inRange&&(Ie.inRange={color:ae.color.slice().reverse()}),Ie.inRange=Ie.inRange||{color:oe.get("gradientColor")}}function $e(Ie,Fe,ze){var Ue=Ie[Fe],qe=Ie[ze];Ue&&!qe&&(qe=Ie[ze]={},each$2(Ue,function(At,Lt){if(VisualMapping$1.isValidType(Lt)){var hn=visualDefault$1.get(Lt,"inactive",_e);hn!=null&&(qe[Lt]=hn,Lt==="color"&&!qe.hasOwnProperty("opacity")&&!qe.hasOwnProperty("colorAlpha")&&(qe.opacity=[0,0]))}}))}function xe(Ie){var Fe=(Ie.inRange||{}).symbol||(Ie.outOfRange||{}).symbol,ze=(Ie.inRange||{}).symbolSize||(Ie.outOfRange||{}).symbolSize,Ue=this.get("inactiveColor"),qe=this.getItemSymbol(),At=qe||"roundRect";each$2(this.stateList,function(Lt){var hn=this.itemSize,vn=Ie[Lt];vn||(vn=Ie[Lt]={color:_e?Ue:[Ue]}),vn.symbol==null&&(vn.symbol=Fe&&clone$3(Fe)||(_e?At:[At])),vn.symbolSize==null&&(vn.symbolSize=ze&&clone$3(ze)||(_e?hn[0]:[hn[0],hn[0]])),vn.symbol=mapVisual(vn.symbol,function(Sn){return Sn==="none"?At:Sn});var _n=vn.symbolSize;if(_n!=null){var bn=-1/0;eachVisual(_n,function(Sn){Sn>bn&&(bn=Sn)}),vn.symbolSize=mapVisual(_n,function(Sn){return linearMap$1(Sn,[0,bn],[0,hn[0]],!0)})}},this)}},z.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},z.prototype.isCategory=function(){return!!this.option.categories},z.prototype.setSelected=function(oe){},z.prototype.getSelected=function(){return null},z.prototype.getValueState=function(oe){return null},z.prototype.getVisualMeta=function(oe){return null},z.type="visualMap",z.dependencies=["series"],z.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},z}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.optionUpdated=function(oe,ae){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(le){le.mappingMethod="linear",le.dataExtent=this.getExtent()}),this._resetRange()},z.prototype.resetItemSize=function(){$.prototype.resetItemSize.apply(this,arguments);var oe=this.itemSize;(oe[0]==null||isNaN(oe[0]))&&(oe[0]=DEFAULT_BAR_BOUND[0]),(oe[1]==null||isNaN(oe[1]))&&(oe[1]=DEFAULT_BAR_BOUND[1])},z.prototype._resetRange=function(){var oe=this.getExtent(),ae=this.option.range;!ae||ae.auto?(oe.auto=1,this.option.range=oe):isArray$1(ae)&&(ae[0]>ae[1]&&ae.reverse(),ae[0]=Math.max(ae[0],oe[0]),ae[1]=Math.min(ae[1],oe[1]))},z.prototype.completeVisualOption=function(){$.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(oe){var ae=this.option.controller[oe].symbolSize;ae&&ae[0]!==ae[1]&&(ae[0]=ae[1]/3)},this)},z.prototype.setSelected=function(oe){this.option.range=oe.slice(),this._resetRange()},z.prototype.getSelected=function(){var oe=this.getExtent(),ae=asc$2((this.get("range")||[]).slice());return ae[0]>oe[1]&&(ae[0]=oe[1]),ae[1]>oe[1]&&(ae[1]=oe[1]),ae[0]<oe[0]&&(ae[0]=oe[0]),ae[1]<oe[0]&&(ae[1]=oe[0]),ae},z.prototype.getValueState=function(oe){var ae=this.option.range,le=this.getExtent();return(ae[0]<=le[0]||ae[0]<=oe)&&(ae[1]>=le[1]||oe<=ae[1])?"inRange":"outOfRange"},z.prototype.findTargetDataIndices=function(oe){var ae=[];return this.eachTargetSeries(function(le){var ue=[],pe=le.getData();pe.each(this.getDataDimensionIndex(pe),function(_e,Ce){oe[0]<=_e&&_e<=oe[1]&&ue.push(Ce)},this),ae.push({seriesId:le.id,dataIndex:ue})},this),ae},z.prototype.getVisualMeta=function(oe){var ae=getColorStopValues(this,"outOfRange",this.getExtent()),le=getColorStopValues(this,"inRange",this.option.range.slice()),ue=[];function pe(ze,Ue){ue.push({value:ze,color:oe(ze,Ue)})}for(var _e=0,Ce=0,$e=le.length,xe=ae.length;Ce<xe&&(!le.length||ae[Ce]<=le[0]);Ce++)ae[Ce]<le[_e]&&pe(ae[Ce],"outOfRange");for(var Ie=1;_e<$e;_e++,Ie=0)Ie&&ue.length&&pe(le[_e],"outOfRange"),pe(le[_e],"inRange");for(var Ie=1;Ce<xe;Ce++)(!le.length||le[le.length-1]<ae[Ce])&&(Ie&&(ue.length&&pe(ue[ue.length-1].value,"outOfRange"),Ie=0),pe(ae[Ce],"outOfRange"));var Fe=ue.length;return{stops:ue,outerColors:[Fe?ue[0].color:"transparent",Fe?ue[Fe-1].color:"transparent"]}},z.type="visualMap.continuous",z.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),z}(VisualMapModel$1);function getColorStopValues($,z,oe){if(oe[0]===oe[1])return oe.slice();for(var ae=200,le=(oe[1]-oe[0])/ae,ue=oe[0],pe=[],_e=0;_e<=ae&&ue<oe[1];_e++)pe.push(ue),ue+=le;return pe.push(oe[1]),pe}const ContinuousModel$1=ContinuousModel;var VisualMapView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe.autoPositionValues={left:1,right:1,top:1,bottom:1},oe}return z.prototype.init=function(oe,ae){this.ecModel=oe,this.api=ae},z.prototype.render=function(oe,ae,le,ue){if(this.visualMapModel=oe,oe.get("show")===!1){this.group.removeAll();return}this.doRender(oe,ae,le,ue)},z.prototype.renderBackground=function(oe){var ae=this.visualMapModel,le=normalizeCssArray(ae.get("padding")||0),ue=oe.getBoundingRect();oe.add(new Rect$2({z2:-1,silent:!0,shape:{x:ue.x-le[3],y:ue.y-le[0],width:ue.width+le[3]+le[1],height:ue.height+le[0]+le[2]},style:{fill:ae.get("backgroundColor"),stroke:ae.get("borderColor"),lineWidth:ae.get("borderWidth")}}))},z.prototype.getControllerVisual=function(oe,ae,le){le=le||{};var ue=le.forceState,pe=this.visualMapModel,_e={};if(ae==="color"){var Ce=pe.get("contentColor");_e.color=Ce}function $e(ze){return _e[ze]}function xe(ze,Ue){_e[ze]=Ue}var Ie=pe.controllerVisuals[ue||pe.getValueState(oe)],Fe=VisualMapping$1.prepareVisualTypes(Ie);return each$c(Fe,function(ze){var Ue=Ie[ze];le.convertOpacityToAlpha&&ze==="opacity"&&(ze="colorAlpha",Ue=Ie.__alphaForOpacity),VisualMapping$1.dependsOn(ze,ae)&&Ue&&Ue.applyVisual(oe,$e,xe)}),_e[ae]},z.prototype.positionGroup=function(oe){var ae=this.visualMapModel,le=this.api;positionElement(oe,ae.getBoxLayoutParams(),{width:le.getWidth(),height:le.getHeight()})},z.prototype.doRender=function(oe,ae,le,ue){},z.type="visualMap",z}(ComponentView$1);const VisualMapView$1=VisualMapView;var paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign($,z,oe){var ae=$.option,le=ae.align;if(le!=null&&le!=="auto")return le;for(var ue={width:z.getWidth(),height:z.getHeight()},pe=ae.orient==="horizontal"?1:0,_e=paramsSet[pe],Ce=[0,null,10],$e={},xe=0;xe<3;xe++)$e[paramsSet[1-pe][xe]]=Ce[xe],$e[_e[xe]]=xe===2?oe[0]:ae[_e[xe]];var Ie=[["x","width",3],["y","height",0]][pe],Fe=getLayoutRect($e,ue,ae.padding);return _e[(Fe.margin[Ie[2]]||0)+Fe[Ie[0]]+Fe[Ie[1]]*.5<ue[Ie[1]]*.5?0:1]}function makeHighDownBatch($,z){return each$c($||[],function(oe){oe.dataIndex!=null&&(oe.dataIndexInside=oe.dataIndex,oe.dataIndex=null),oe.highlightKey="visualMap"+(z?z.componentIndex:"")}),$}var linearMap=linearMap$2,each$1=each$c,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._shapes={},oe._dataInterval=[],oe._handleEnds=[],oe._hoverLinkDataIndices=[],oe}return z.prototype.doRender=function(oe,ae,le,ue){this._api=le,(!ue||ue.type!=="selectDataRange"||ue.from!==this.uid)&&this._buildView()},z.prototype._buildView=function(){this.group.removeAll();var oe=this.visualMapModel,ae=this.group;this._orient=oe.get("orient"),this._useHandle=oe.get("calculable"),this._resetInterval(),this._renderBar(ae);var le=oe.get("text");this._renderEndsText(ae,le,0),this._renderEndsText(ae,le,1),this._updateView(!0),this.renderBackground(ae),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(ae)},z.prototype._renderEndsText=function(oe,ae,le){if(ae){var ue=ae[1-le];ue=ue!=null?ue+"":"";var pe=this.visualMapModel,_e=pe.get("textGap"),Ce=pe.itemSize,$e=this._shapes.mainGroup,xe=this._applyTransform([Ce[0]/2,le===0?-_e:Ce[1]+_e],$e),Ie=this._applyTransform(le===0?"bottom":"top",$e),Fe=this._orient,ze=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(ze,{x:xe[0],y:xe[1],verticalAlign:Fe==="horizontal"?"middle":Ie,align:Fe==="horizontal"?Ie:"center",text:ue})}))}},z.prototype._renderBar=function(oe){var ae=this.visualMapModel,le=this._shapes,ue=ae.itemSize,pe=this._orient,_e=this._useHandle,Ce=getItemAlign(ae,this.api,ue),$e=le.mainGroup=this._createBarGroup(Ce),xe=new Group$3;$e.add(xe),xe.add(le.outOfRange=createPolygon()),xe.add(le.inRange=createPolygon(null,_e?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),xe.setClipPath(new Rect$2({shape:{x:0,y:0,width:ue[0],height:ue[1],r:3}}));var Ie=ae.textStyleModel.getTextRect("国"),Fe=mathMax(Ie.width,Ie.height);_e&&(le.handleThumbs=[],le.handleLabels=[],le.handleLabelPoints=[],this._createHandle(ae,$e,0,ue,Fe,pe),this._createHandle(ae,$e,1,ue,Fe,pe)),this._createIndicator(ae,$e,ue,Fe,pe),oe.add($e)},z.prototype._createHandle=function(oe,ae,le,ue,pe,_e){var Ce=bind$1(this._dragHandle,this,le,!1),$e=bind$1(this._dragHandle,this,le,!0),xe=parsePercent$1(oe.get("handleSize"),ue[0]),Ie=createSymbol(oe.get("handleIcon"),-xe/2,-xe/2,xe,xe,null,!0),Fe=getCursor(this._orient);Ie.attr({cursor:Fe,draggable:!0,drift:Ce,ondragend:$e,onmousemove:function(Lt){stop(Lt.event)}}),Ie.x=ue[0]/2,Ie.useStyle(oe.getModel("handleStyle").getItemStyle()),Ie.setStyle({strokeNoScale:!0,strokeFirst:!0}),Ie.style.lineWidth*=2,Ie.ensureState("emphasis").style=oe.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(Ie,!0),ae.add(Ie);var ze=this.visualMapModel.textStyleModel,Ue=new ZRText$1({cursor:Fe,draggable:!0,drift:Ce,onmousemove:function(Lt){stop(Lt.event)},ondragend:$e,style:createTextStyle$1(ze,{x:0,y:0,text:""})});Ue.ensureState("blur").style={opacity:.1},Ue.stateTransition={duration:200},this.group.add(Ue);var qe=[xe,0],At=this._shapes;At.handleThumbs[le]=Ie,At.handleLabelPoints[le]=qe,At.handleLabels[le]=Ue},z.prototype._createIndicator=function(oe,ae,le,ue,pe){var _e=parsePercent$1(oe.get("indicatorSize"),le[0]),Ce=createSymbol(oe.get("indicatorIcon"),-_e/2,-_e/2,_e,_e,null,!0);Ce.attr({cursor:"move",invisible:!0,silent:!0,x:le[0]/2});var $e=oe.getModel("indicatorStyle").getItemStyle();if(Ce instanceof ZRImage$1){var xe=Ce.style;Ce.useStyle(extend({image:xe.image,x:xe.x,y:xe.y,width:xe.width,height:xe.height},$e))}else Ce.useStyle($e);ae.add(Ce);var Ie=this.visualMapModel.textStyleModel,Fe=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(Ie,{x:0,y:0,text:""})});this.group.add(Fe);var ze=[(pe==="horizontal"?ue/2:HOVER_LINK_OUT)+le[0]/2,0],Ue=this._shapes;Ue.indicator=Ce,Ue.indicatorLabel=Fe,Ue.indicatorLabelPoint=ze,this._firstShowIndicator=!0},z.prototype._dragHandle=function(oe,ae,le,ue){if(this._useHandle){if(this._dragging=!ae,!ae){var pe=this._applyTransform([le,ue],this._shapes.mainGroup,!0);this._updateInterval(oe,pe[1]),this._hideIndicator(),this._updateView()}ae===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),ae?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[oe],!1)}},z.prototype._resetInterval=function(){var oe=this.visualMapModel,ae=this._dataInterval=oe.getSelected(),le=oe.getExtent(),ue=[0,oe.itemSize[1]];this._handleEnds=[linearMap(ae[0],le,ue,!0),linearMap(ae[1],le,ue,!0)]},z.prototype._updateInterval=function(oe,ae){ae=ae||0;var le=this.visualMapModel,ue=this._handleEnds,pe=[0,le.itemSize[1]];sliderMove(ae,ue,pe,oe,0);var _e=le.getExtent();this._dataInterval=[linearMap(ue[0],pe,_e,!0),linearMap(ue[1],pe,_e,!0)]},z.prototype._updateView=function(oe){var ae=this.visualMapModel,le=ae.getExtent(),ue=this._shapes,pe=[0,ae.itemSize[1]],_e=oe?pe:this._handleEnds,Ce=this._createBarVisual(this._dataInterval,le,_e,"inRange"),$e=this._createBarVisual(le,le,pe,"outOfRange");ue.inRange.setStyle({fill:Ce.barColor}).setShape("points",Ce.barPoints),ue.outOfRange.setStyle({fill:$e.barColor}).setShape("points",$e.barPoints),this._updateHandle(_e,Ce)},z.prototype._createBarVisual=function(oe,ae,le,ue){var pe={forceState:ue,convertOpacityToAlpha:!0},_e=this._makeColorGradient(oe,pe),Ce=[this.getControllerVisual(oe[0],"symbolSize",pe),this.getControllerVisual(oe[1],"symbolSize",pe)],$e=this._createBarPoints(le,Ce);return{barColor:new LinearGradient$1(0,0,0,1,_e),barPoints:$e,handlesColor:[_e[0].color,_e[_e.length-1].color]}},z.prototype._makeColorGradient=function(oe,ae){var le=100,ue=[],pe=(oe[1]-oe[0])/le;ue.push({color:this.getControllerVisual(oe[0],"color",ae),offset:0});for(var _e=1;_e<le;_e++){var Ce=oe[0]+pe*_e;if(Ce>oe[1])break;ue.push({color:this.getControllerVisual(Ce,"color",ae),offset:_e/le})}return ue.push({color:this.getControllerVisual(oe[1],"color",ae),offset:1}),ue},z.prototype._createBarPoints=function(oe,ae){var le=this.visualMapModel.itemSize;return[[le[0]-ae[0],oe[0]],[le[0],oe[0]],[le[0],oe[1]],[le[0]-ae[1],oe[1]]]},z.prototype._createBarGroup=function(oe){var ae=this._orient,le=this.visualMapModel.get("inverse");return new Group$3(ae==="horizontal"&&!le?{scaleX:oe==="bottom"?1:-1,rotation:Math.PI/2}:ae==="horizontal"&&le?{scaleX:oe==="bottom"?-1:1,rotation:-Math.PI/2}:ae==="vertical"&&!le?{scaleX:oe==="left"?1:-1,scaleY:-1}:{scaleX:oe==="left"?1:-1})},z.prototype._updateHandle=function(oe,ae){if(this._useHandle){var le=this._shapes,ue=this.visualMapModel,pe=le.handleThumbs,_e=le.handleLabels,Ce=ue.itemSize,$e=ue.getExtent();each$1([0,1],function(xe){var Ie=pe[xe];Ie.setStyle("fill",ae.handlesColor[xe]),Ie.y=oe[xe];var Fe=linearMap(oe[xe],[0,Ce[1]],$e,!0),ze=this.getControllerVisual(Fe,"symbolSize");Ie.scaleX=Ie.scaleY=ze/Ce[0],Ie.x=Ce[0]-ze/2;var Ue=applyTransform(le.handleLabelPoints[xe],getTransform$1(Ie,this.group));_e[xe].setStyle({x:Ue[0],y:Ue[1],text:ue.formatValueText(this._dataInterval[xe]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",le.mainGroup):"center"})},this)}},z.prototype._showIndicator=function(oe,ae,le,ue){var pe=this.visualMapModel,_e=pe.getExtent(),Ce=pe.itemSize,$e=[0,Ce[1]],xe=this._shapes,Ie=xe.indicator;if(Ie){Ie.attr("invisible",!1);var Fe={convertOpacityToAlpha:!0},ze=this.getControllerVisual(oe,"color",Fe),Ue=this.getControllerVisual(oe,"symbolSize"),qe=linearMap(oe,_e,$e,!0),At=Ce[0]-Ue/2,Lt={x:Ie.x,y:Ie.y};Ie.y=qe,Ie.x=At;var hn=applyTransform(xe.indicatorLabelPoint,getTransform$1(Ie,this.group)),vn=xe.indicatorLabel;vn.attr("invisible",!1);var _n=this._applyTransform("left",xe.mainGroup),bn=this._orient,Sn=bn==="horizontal";vn.setStyle({text:(le||"")+pe.formatValueText(ae),verticalAlign:Sn?_n:"middle",align:Sn?"center":_n});var Cn={x:At,y:qe,style:{fill:ze}},En={style:{x:hn[0],y:hn[1]}};if(pe.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var $n={duration:100,easing:"cubicInOut",additive:!0};Ie.x=Lt.x,Ie.y=Lt.y,Ie.animateTo(Cn,$n),vn.animateTo(En,$n)}else Ie.attr(Cn),vn.attr(En);this._firstShowIndicator=!1;var wn=this._shapes.handleLabels;if(wn)for(var Tn=0;Tn<wn.length;Tn++)this._api.enterBlur(wn[Tn])}},z.prototype._enableHoverLinkToSeries=function(){var oe=this;this._shapes.mainGroup.on("mousemove",function(ae){if(oe._hovering=!0,!oe._dragging){var le=oe.visualMapModel.itemSize,ue=oe._applyTransform([ae.offsetX,ae.offsetY],oe._shapes.mainGroup,!0,!0);ue[1]=mathMin(mathMax(0,ue[1]),le[1]),oe._doHoverLinkToSeries(ue[1],0<=ue[0]&&ue[0]<=le[0])}}).on("mouseout",function(){oe._hovering=!1,!oe._dragging&&oe._clearHoverLinkToSeries()})},z.prototype._enableHoverLinkFromSeries=function(){var oe=this.api.getZr();this.visualMapModel.option.hoverLink?(oe.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),oe.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},z.prototype._doHoverLinkToSeries=function(oe,ae){var le=this.visualMapModel,ue=le.itemSize;if(le.option.hoverLink){var pe=[0,ue[1]],_e=le.getExtent();oe=mathMin(mathMax(pe[0],oe),pe[1]);var Ce=getHalfHoverLinkSize(le,_e,pe),$e=[oe-Ce,oe+Ce],xe=linearMap(oe,pe,_e,!0),Ie=[linearMap($e[0],pe,_e,!0),linearMap($e[1],pe,_e,!0)];$e[0]<pe[0]&&(Ie[0]=-1/0),$e[1]>pe[1]&&(Ie[1]=1/0),ae&&(Ie[0]===-1/0?this._showIndicator(xe,Ie[1],"< ",Ce):Ie[1]===1/0?this._showIndicator(xe,Ie[0],"> ",Ce):this._showIndicator(xe,xe,"≈ ",Ce));var Fe=this._hoverLinkDataIndices,ze=[];(ae||useHoverLinkOnHandle(le))&&(ze=this._hoverLinkDataIndices=le.findTargetDataIndices(Ie));var Ue=compressBatches(Fe,ze);this._dispatchHighDown("downplay",makeHighDownBatch(Ue[0],le)),this._dispatchHighDown("highlight",makeHighDownBatch(Ue[1],le))}},z.prototype._hoverLinkFromSeriesMouseOver=function(oe){var ae;if(findEventDispatcher(oe.target,function(Ce){var $e=getECData(Ce);if($e.dataIndex!=null)return ae=$e,!0},!0),!!ae){var le=this.ecModel.getSeriesByIndex(ae.seriesIndex),ue=this.visualMapModel;if(ue.isTargetSeries(le)){var pe=le.getData(ae.dataType),_e=pe.getStore().get(ue.getDataDimensionIndex(pe),ae.dataIndex);isNaN(_e)||this._showIndicator(_e,_e)}}},z.prototype._hideIndicator=function(){var oe=this._shapes;oe.indicator&&oe.indicator.attr("invisible",!0),oe.indicatorLabel&&oe.indicatorLabel.attr("invisible",!0);var ae=this._shapes.handleLabels;if(ae)for(var le=0;le<ae.length;le++)this._api.leaveBlur(ae[le])},z.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var oe=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(oe,this.visualMapModel)),oe.length=0},z.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var oe=this.api.getZr();oe.off("mouseover",this._hoverLinkFromSeriesMouseOver),oe.off("mouseout",this._hideIndicator)},z.prototype._applyTransform=function(oe,ae,le,ue){var pe=getTransform$1(ae,ue?null:this.group);return isArray$1(oe)?applyTransform(oe,pe,le):transformDirection(oe,pe,le)},z.prototype._dispatchHighDown=function(oe,ae){ae&&ae.length&&this.api.dispatchAction({type:oe,batch:ae})},z.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},z.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},z.type="visualMap.continuous",z}(VisualMapView$1);function createPolygon($,z,oe,ae){return new Polygon$1({shape:{points:$},draggable:!!oe,cursor:z,drift:oe,onmousemove:function(le){stop(le.event)},ondragend:ae})}function getHalfHoverLinkSize($,z,oe){var ae=HOVER_LINK_SIZE/2,le=$.get("hoverLinkDataSize");return le&&(ae=linearMap(le,z,oe,!0)/2),ae}function useHoverLinkOnHandle($){var z=$.get("hoverLinkOnHandle");return!!(z??$.get("realtime"))}function getCursor($){return $==="vertical"?"ns-resize":"ew-resize"}const ContinuousView$1=ContinuousView;var visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function($,z){z.eachComponent({mainType:"visualMap",query:$},function(oe){oe.setSelected($.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function($,z){var oe=[];return z.eachComponent("visualMap",function(ae){var le=$.pipelineContext;!ae.isTargetSeries($)||le&&le.large||oe.push(incrementalApplyVisual(ae.stateList,ae.targetVisuals,bind$1(ae.getValueState,ae),ae.getDataDimensionIndex($.getData())))}),oe}},{createOnAllSeries:!0,reset:function($,z){var oe=$.getData(),ae=[];z.eachComponent("visualMap",function(le){if(le.isTargetSeries($)){var ue=le.getVisualMeta(bind$1(getColorVisual,null,$,le))||{stops:[],outerColors:[]},pe=le.getDataDimensionIndex(oe);pe>=0&&(ue.dimension=pe,ae.push(ue))}}),$.getData().setVisual("visualMeta",ae)}}];function getColorVisual($,z,oe,ae){for(var le=z.targetVisuals[ae],ue=VisualMapping$1.prepareVisualTypes(le),pe={color:getVisualFromData($.getData(),"color")},_e=0,Ce=ue.length;_e<Ce;_e++){var $e=ue[_e],xe=le[$e==="opacity"?"__alphaForOpacity":$e];xe&&xe.applyVisual(oe,Ie,Fe)}return pe.color;function Ie(ze){return pe[ze]}function Fe(ze,Ue){pe[ze]=Ue}}var each=each$c;function visualMapPreprocessor($){var z=$&&$.visualMap;isArray$1(z)||(z=z?[z]:[]),each(z,function(oe){if(oe){has(oe,"splitList")&&!has(oe,"pieces")&&(oe.pieces=oe.splitList,delete oe.splitList);var ae=oe.pieces;ae&&isArray$1(ae)&&each(ae,function(le){isObject$3(le)&&(has(le,"start")&&!has(le,"min")&&(le.min=le.start),has(le,"end")&&!has(le,"max")&&(le.max=le.end))})}})}function has($,z){return $&&$.hasOwnProperty&&$.hasOwnProperty(z)}var installed=!1;function installCommon($){installed||(installed=!0,$.registerSubTypeDefaulter("visualMap",function(z){return!z.categories&&(!(z.pieces?z.pieces.length>0:z.splitNumber>0)||z.calculable)?"continuous":"piecewise"}),$.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(z){$.registerVisual($.PRIORITY.VISUAL.COMPONENT,z)}),$.registerPreprocessor(visualMapPreprocessor))}function install$2($){$.registerComponentModel(ContinuousModel$1),$.registerComponentView(ContinuousView$1),installCommon($)}var PiecewiseModel=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe._pieceList=[],oe}return z.prototype.optionUpdated=function(oe,ae){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var le=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(oe,ae);var ue=this.option.categories;this.resetVisual(function(pe,_e){le==="categories"?(pe.mappingMethod="category",pe.categories=clone$3(ue)):(pe.dataExtent=this.getExtent(),pe.mappingMethod="piecewise",pe.pieceList=map$2(this._pieceList,function(Ce){return Ce=clone$3(Ce),_e!=="inRange"&&(Ce.visual=null),Ce}))})},z.prototype.completeVisualOption=function(){var oe=this.option,ae={},le=VisualMapping$1.listVisualTypes(),ue=this.isCategory();each$c(oe.pieces,function(_e){each$c(le,function(Ce){_e.hasOwnProperty(Ce)&&(ae[Ce]=1)})}),each$c(ae,function(_e,Ce){var $e=!1;each$c(this.stateList,function(xe){$e=$e||pe(oe,xe,Ce)||pe(oe.target,xe,Ce)},this),!$e&&each$c(this.stateList,function(xe){(oe[xe]||(oe[xe]={}))[Ce]=visualDefault$1.get(Ce,xe==="inRange"?"active":"inactive",ue)})},this);function pe(_e,Ce,$e){return _e&&_e[Ce]&&_e[Ce].hasOwnProperty($e)}$.prototype.completeVisualOption.apply(this,arguments)},z.prototype._resetSelected=function(oe,ae){var le=this.option,ue=this._pieceList,pe=(ae?le:oe).selected||{};if(le.selected=pe,each$c(ue,function(Ce,$e){var xe=this.getSelectedMapKey(Ce);pe.hasOwnProperty(xe)||(pe[xe]=!0)},this),le.selectedMode==="single"){var _e=!1;each$c(ue,function(Ce,$e){var xe=this.getSelectedMapKey(Ce);pe[xe]&&(_e?pe[xe]=!1:_e=!0)},this)}},z.prototype.getItemSymbol=function(){return this.get("itemSymbol")},z.prototype.getSelectedMapKey=function(oe){return this._mode==="categories"?oe.value+"":oe.index+""},z.prototype.getPieceList=function(){return this._pieceList},z.prototype._determineMode=function(){var oe=this.option;return oe.pieces&&oe.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},z.prototype.setSelected=function(oe){this.option.selected=clone$3(oe)},z.prototype.getValueState=function(oe){var ae=VisualMapping$1.findPieceIndex(oe,this._pieceList);return ae!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[ae])]?"inRange":"outOfRange"},z.prototype.findTargetDataIndices=function(oe){var ae=[],le=this._pieceList;return this.eachTargetSeries(function(ue){var pe=[],_e=ue.getData();_e.each(this.getDataDimensionIndex(_e),function(Ce,$e){var xe=VisualMapping$1.findPieceIndex(Ce,le);xe===oe&&pe.push($e)},this),ae.push({seriesId:ue.id,dataIndex:pe})},this),ae},z.prototype.getRepresentValue=function(oe){var ae;if(this.isCategory())ae=oe.value;else if(oe.value!=null)ae=oe.value;else{var le=oe.interval||[];ae=le[0]===-1/0&&le[1]===1/0?0:(le[0]+le[1])/2}return ae},z.prototype.getVisualMeta=function(oe){if(this.isCategory())return;var ae=[],le=["",""],ue=this;function pe(xe,Ie){var Fe=ue.getRepresentValue({interval:xe});Ie||(Ie=ue.getValueState(Fe));var ze=oe(Fe,Ie);xe[0]===-1/0?le[0]=ze:xe[1]===1/0?le[1]=ze:ae.push({value:xe[0],color:ze},{value:xe[1],color:ze})}var _e=this._pieceList.slice();if(!_e.length)_e.push({interval:[-1/0,1/0]});else{var Ce=_e[0].interval[0];Ce!==-1/0&&_e.unshift({interval:[-1/0,Ce]}),Ce=_e[_e.length-1].interval[1],Ce!==1/0&&_e.push({interval:[Ce,1/0]})}var $e=-1/0;return each$c(_e,function(xe){var Ie=xe.interval;Ie&&(Ie[0]>$e&&pe([$e,Ie[0]],"outOfRange"),pe(Ie.slice()),$e=Ie[1])},this),{stops:ae,outerColors:le}},z.type="visualMap.piecewise",z.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),z}(VisualMapModel$1),resetMethods={splitNumber:function($){var z=this.option,oe=Math.min(z.precision,20),ae=this.getExtent(),le=z.splitNumber;le=Math.max(parseInt(le,10),1),z.splitNumber=le;for(var ue=(ae[1]-ae[0])/le;+ue.toFixed(oe)!==ue&&oe<5;)oe++;z.precision=oe,ue=+ue.toFixed(oe),z.minOpen&&$.push({interval:[-1/0,ae[0]],close:[0,0]});for(var pe=0,_e=ae[0];pe<le;_e+=ue,pe++){var Ce=pe===le-1?ae[1]:_e+ue;$.push({interval:[_e,Ce],close:[1,1]})}z.maxOpen&&$.push({interval:[ae[1],1/0],close:[0,0]}),reformIntervals($),each$c($,function($e,xe){$e.index=xe,$e.text=this.formatValueText($e.interval)},this)},categories:function($){var z=this.option;each$c(z.categories,function(oe){$.push({text:this.formatValueText(oe,!0),value:oe})},this),normalizeReverse(z,$)},pieces:function($){var z=this.option;each$c(z.pieces,function(oe,ae){isObject$3(oe)||(oe={value:oe});var le={text:"",index:ae};if(oe.label!=null&&(le.text=oe.label),oe.hasOwnProperty("value")){var ue=le.value=oe.value;le.interval=[ue,ue],le.close=[1,1]}else{for(var pe=le.interval=[],_e=le.close=[0,0],Ce=[1,0,1],$e=[-1/0,1/0],xe=[],Ie=0;Ie<2;Ie++){for(var Fe=[["gte","gt","min"],["lte","lt","max"]][Ie],ze=0;ze<3&&pe[Ie]==null;ze++)pe[Ie]=oe[Fe[ze]],_e[Ie]=Ce[ze],xe[Ie]=ze===2;pe[Ie]==null&&(pe[Ie]=$e[Ie])}xe[0]&&pe[1]===1/0&&(_e[0]=0),xe[1]&&pe[0]===-1/0&&(_e[1]=0),pe[0]===pe[1]&&_e[0]&&_e[1]&&(le.value=pe[0])}le.visual=VisualMapping$1.retrieveVisuals(oe),$.push(le)},this),normalizeReverse(z,$),reformIntervals($),each$c($,function(oe){var ae=oe.close,le=[["<","≤"][ae[1]],[">","≥"][ae[0]]];oe.text=oe.text||this.formatValueText(oe.value!=null?oe.value:oe.interval,!1,le)},this)}};function normalizeReverse($,z){var oe=$.inverse;($.orient==="vertical"?!oe:oe)&&z.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function($){__extends(z,$);function z(){var oe=$!==null&&$.apply(this,arguments)||this;return oe.type=z.type,oe}return z.prototype.doRender=function(){var oe=this.group;oe.removeAll();var ae=this.visualMapModel,le=ae.get("textGap"),ue=ae.textStyleModel,pe=ue.getFont(),_e=ue.getTextColor(),Ce=this._getItemAlign(),$e=ae.itemSize,xe=this._getViewData(),Ie=xe.endsText,Fe=retrieve(ae.get("showLabel",!0),!Ie);Ie&&this._renderEndsText(oe,Ie[0],$e,Fe,Ce),each$c(xe.viewPieceList,function(ze){var Ue=ze.piece,qe=new Group$3;qe.onclick=bind$1(this._onItemClick,this,Ue),this._enableHoverLink(qe,ze.indexInModelPieceList);var At=ae.getRepresentValue(Ue);if(this._createItemSymbol(qe,At,[0,0,$e[0],$e[1]]),Fe){var Lt=this.visualMapModel.getValueState(At);qe.add(new ZRText$1({style:{x:Ce==="right"?-le:$e[0]+le,y:$e[1]/2,text:Ue.text,verticalAlign:"middle",align:Ce,font:pe,fill:_e,opacity:Lt==="outOfRange"?.5:1}}))}oe.add(qe)},this),Ie&&this._renderEndsText(oe,Ie[1],$e,Fe,Ce),box(ae.get("orient"),oe,ae.get("itemGap")),this.renderBackground(oe),this.positionGroup(oe)},z.prototype._enableHoverLink=function(oe,ae){var le=this;oe.on("mouseover",function(){return ue("highlight")}).on("mouseout",function(){return ue("downplay")});var ue=function(pe){var _e=le.visualMapModel;_e.option.hoverLink&&le.api.dispatchAction({type:pe,batch:makeHighDownBatch(_e.findTargetDataIndices(ae),_e)})}},z.prototype._getItemAlign=function(){var oe=this.visualMapModel,ae=oe.option;if(ae.orient==="vertical")return getItemAlign(oe,this.api,oe.itemSize);var le=ae.align;return(!le||le==="auto")&&(le="left"),le},z.prototype._renderEndsText=function(oe,ae,le,ue,pe){if(ae){var _e=new Group$3,Ce=this.visualMapModel.textStyleModel;_e.add(new ZRText$1({style:createTextStyle$1(Ce,{x:ue?pe==="right"?le[0]:0:le[0]/2,y:le[1]/2,verticalAlign:"middle",align:ue?pe:"center",text:ae})})),oe.add(_e)}},z.prototype._getViewData=function(){var oe=this.visualMapModel,ae=map$2(oe.getPieceList(),function(_e,Ce){return{piece:_e,indexInModelPieceList:Ce}}),le=oe.get("text"),ue=oe.get("orient"),pe=oe.get("inverse");return(ue==="horizontal"?pe:!pe)?ae.reverse():le&&(le=le.slice().reverse()),{viewPieceList:ae,endsText:le}},z.prototype._createItemSymbol=function(oe,ae,le){oe.add(createSymbol(this.getControllerVisual(ae,"symbol"),le[0],le[1],le[2],le[3],this.getControllerVisual(ae,"color")))},z.prototype._onItemClick=function(oe){var ae=this.visualMapModel,le=ae.option,ue=le.selectedMode;if(ue){var pe=clone$3(le.selected),_e=ae.getSelectedMapKey(oe);ue==="single"||ue===!0?(pe[_e]=!0,each$c(pe,function(Ce,$e){pe[$e]=$e===_e})):pe[_e]=!pe[_e],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:pe})}},z.type="visualMap.piecewise",z}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1($){$.registerComponentModel(PiecewiseModel$1),$.registerComponentView(PiecewiseView),installCommon($)}function install($){use$1(install$2),use$1(install$1)}const{use}=echarts;use([install$h,install$i,install$j,install$k,install$e,install$9,install$6,install$d,install$b,install$a,install$3,install]);function useEcharts($){$.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$1=Object.prototype.hasOwnProperty,_$1=($,z,oe)=>z in $?p($,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):$[z]=oe,P=($,z)=>{for(var oe in z)p($,oe,{get:z[oe],enumerable:!0})},y=($,z,oe,ae)=>{if(z&&typeof z=="object"||typeof z=="function")for(let le of u(z))!j$1.call($,le)&&le!==oe&&p($,le,{get:()=>z[le],enumerable:!(ae=d(z,le))||ae.enumerable});return $},m$1=($,z,oe)=>(y($,z,"default"),oe&&y(oe,z,"default")),f=($,z,oe)=>(_$1($,typeof z!="symbol"?z+"":z,oe),oe),c={};P(c,{Vue:()=>vue_runtime_esmBundler});m$1(c,vue_runtime_esmBundler);var g=class{static install($,z){let{nameSpace:oe=this._nameSpace,memory:ae}=z;return ae&&this.clearAll(oe,ae),new g($,z)}static clearAll($,z){Object.keys(z).forEach(oe=>{let ae=$+oe;Object.prototype.hasOwnProperty.call(window.localStorage,ae)&&window.localStorage.removeItem(ae)})}static get($){return JSON.parse(window.localStorage.getItem($))}static set($,z){z=typeof z=="object"?JSON.stringify(z):z,window.localStorage.setItem($,z)}static getData($,z){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(z,$)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(z,$)))}constructor($,z){let oe=g,{version:ae=3,nameSpace:le=oe._nameSpace,memory:ue}=z,pe=$e=>le+$e,_e=ae===3?(0,c.reactive)(ue):ue;Object.keys(_e).length===0&&console.warn("key cannot be empty"),Object.keys(_e).forEach($e=>{let xe=_e[$e];oe.set(pe($e),xe),Reflect.defineProperty(_e,$e,{get:()=>oe.get(pe($e)),set:Ie=>oe.set(pe($e),Ie),configurable:!0}),ae===2&&$.util.defineReactive(_e,$e,_e[$e])});let Ce=ae===3?$.config.globalProperties:$.prototype;Reflect.defineProperty(Ce,"$storage",{get:()=>_e})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",($,z)=>`${$??g._nameSpace}${z}`);const injectResponsiveStorage=($,z)=>{const oe=responsiveStorageNameSpace(),ae=Object.assign({locale:n.getData("locale",oe)??{locale:z.Locale??"zh"},layout:n.getData("layout",oe)??{layout:z.Layout??"vertical",theme:z.Theme??"default",darkMode:z.DarkMode??!1,sidebarStatus:z.SidebarStatus??!0,epThemeColor:z.EpThemeColor??"#409EFF"},configure:n.getData("configure",oe)??{grey:z.Grey??!1,weak:z.Weak??!1,hideTabs:z.HideTabs??!1,showLogo:z.ShowLogo??!0,showModel:z.ShowModel??"smart",multiTagsCache:z.MultiTagsCache??!1}},z.MultiTagsCache?{tags:n.getData("tags",oe)??routerArrays}:{});$.use(n,{nameSpace:oe,memory:ae})},de=Object.prototype.hasOwnProperty,_=($,z)=>de.call($,z),H=$=>$!==null&&typeof $=="object",ce=(($,z)=>{if(!H($)||H(oe=$)&&oe.__epPropKey)return $;var oe;const{values:ae,required:le,default:ue,type:pe,validator:_e}=$,Ce=ae||_e?xe=>{let Ie=!1,Fe=[];if(ae&&(Fe=Array.from(ae),_($,"default")&&Fe.push(ue),Ie||(Ie=Fe.includes(xe))),_e&&(Ie||(Ie=_e(xe))),!Ie&&Fe.length>0){const ze=[...new Set(Fe)].map(Ue=>JSON.stringify(Ue)).join(", ");warn$2(`Invalid prop: validation failed${z?` for prop "${z}"`:""}. Expected one of [${ze}], got value ${JSON.stringify(xe)}.`)}return Ie}:void 0,$e={type:pe,required:!!le,validator:Ce,__epPropKey:!0};return _($,"default")&&($e.default=ue),$e})({type:String,values:["","default","small","large"],required:!1});var ge={data:{type:Array,default:()=>[]},size:ce,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const fe={key:{type:String||Number,default:"0"},columns:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingConfig:{type:Object,default:()=>{}},alignWhole:{type:String,default:"left"},headerAlign:{type:String,default:""},showOverflowTooltip:{type:Boolean,default:!1},rowHoverBgColor:{type:String,default:""},pagination:{type:Object,default:{total:0,pageSize:5,align:"right",background:!1,pageSizes:[5,10,15,20],layout:"total, sizes, prev, pager, next, jumper"}},paginationSmall:{type:Boolean,default:!1},...ge},K=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:$=>()=>createVNode(Fragment,null,[$.render($.params)])});var L$1=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyNames,be=Object.prototype.hasOwnProperty,M=($,z,oe,ae)=>{if(z&&typeof z=="object"||typeof z=="function")for(let le of me(z))!be.call($,le)&&le!==oe&&L$1($,le,{get:()=>z[le],enumerable:!(ae=ye(z,le))||ae.enumerable});return $},he=Object.prototype.toString;function V($){return typeof $=="function"}function Oe($){return function(z,oe){return he.call(z)===`[object ${oe}]`}($,"Boolean")}var h={};(($,z)=>{for(var oe in z)L$1($,oe,{get:z[oe],enumerable:!0})})(h,{Vue:()=>vue_runtime_esmBundler}),M(h,vue_runtime_esmBundler,"default");var ve=()=>{let $,z=(0,h.ref)(!1),oe=()=>{z.value=document.documentElement.classList.contains("dark")};return function(ae){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(ae)}(()=>{$.takeRecords(),$.disconnect()}),(0,h.onBeforeMount)(()=>{oe(),$=new MutationObserver(oe),$.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:z}};const k=defineComponent({name:"PureTable",props:fe,emits:["page-size-change","page-current-change"],setup($,{slots:z,attrs:oe,emit:ae,expose:le}){const{isDark:ue}=ve(),pe=getCurrentInstance();function _e(){var Sn;return(Sn=pe==null?void 0:pe.proxy)==null?void 0:Sn.$refs[`TableRef${$.key}`]}function Ce(){return _e().$refs}onMounted(()=>{nextTick(()=>{$.rowHoverBgColor&&Ce().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",$.rowHoverBgColor,"important")})});const{columns:$e,loading:xe,loadingConfig:Ie,alignWhole:Fe,headerAlign:ze,showOverflowTooltip:Ue,pagination:qe}=toRefs($);let At=computed(()=>{if(!unref(Ie))return;let{text:Sn,spinner:Cn,svg:En,viewBox:$n}=unref(Ie);return{"element-loading-text":Sn,"element-loading-spinner":Cn,"element-loading-svg":En,"element-loading-svg-view-box":$n}});const Lt=computed(()=>{var Sn,Cn;if(unref(xe))return{"element-loading-background":((Cn=(Sn=unref(Ie))==null?void 0:Sn.background)!=null?Cn:ue.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),hn=computed(()=>{var Sn;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:unref(qe).align==="left"?"flex-start":unref(qe).align==="center"?"center":"flex-end"},(Sn=unref(qe).style)!=null?Sn:{})});let vn=unref(qe)&&unref(qe).currentPage&&unref(qe).pageSize;const _n=(Sn,Cn)=>{const{cellRenderer:En,slot:$n,headerRenderer:wn,headerSlot:Tn,hide:xn,children:kn,prop:Nn,...Bn}=Sn;if(V(xn)&&xn(oe))return xn(oe);if(Oe(xn)&&xn)return xn;const Dn={default:Mn=>{var Vn;return En?createVNode(K,{render:En,params:Object.assign(Mn,{index:Mn.$index,props:$,attrs:oe})},null):$n?(Vn=z==null?void 0:z[$n])==null?void 0:Vn.call(z,Object.assign(Mn,{index:Mn.$index,props:$,attrs:oe})):void 0}};let In=wn?{header:Mn=>createVNode(K,{render:wn,params:Object.assign(Mn,{index:Mn.$index,props:$,attrs:oe})},null),...Dn}:z!=null&&z[Tn]?{header:Mn=>{var Vn;return(Vn=z==null?void 0:z[Tn])==null?void 0:Vn.call(z,Object.assign(Mn,{index:Mn.$index,props:$,attrs:oe}))},...Dn}:Dn;return(kn==null?void 0:kn.length)>0&&(In=kn.map(_n)),createVNode(ElTableColumn,mergeProps({key:Cn},Bn,{prop:V(Nn)&&Nn(Cn)?Nn(Cn):Nn,align:Sn!=null&&Sn.align?Sn.align:unref(Fe),headerAlign:Sn!=null&&Sn.headerAlign?Sn.headerAlign:unref(ze),showOverflowTooltip:Sn!=null&&Sn.showOverflowTooltip?Sn.showOverflowTooltip:unref(Ue)}),typeof(Ln=In)=="function"||Object.prototype.toString.call(Ln)==="[object Object]"&&!isVNode$1(Ln)?In:{default:()=>[In]});var Ln};le({getTableRef:_e,getTableDoms:Ce});let bn=()=>{var Sn,Cn;return createVNode(Fragment,null,[createVNode(ElTable,mergeProps($,oe,{ref:`TableRef${$.key}`}),{default:()=>unref($e).map(_n),append:()=>z.append&&z.append(),empty:()=>z.empty&&z.empty()}),vn?createVNode(ElPagination,mergeProps(oe,{class:"pure-pagination",style:unref(hn)},unref(qe),{small:$!=null&&$.paginationSmall?$==null?void 0:$.paginationSmall:!!unref(qe).small&&unref(qe).small,layout:(Sn=unref(qe).layout)!=null?Sn:"total, sizes, prev, pager, next, jumper",pageSizes:(Cn=unref(qe).pageSizes)!=null?Cn:[5,10,15,20],onSizeChange:En=>($n=>{unref(qe).pageSize=$n,ae("page-size-change",$n)})(En),onCurrentChange:En=>($n=>{unref(qe).currentPage=$n,ae("page-current-change",$n)})(En)}),null):null])};return()=>withDirectives(createVNode("div",mergeProps({class:"pure-table",style:"width:100%"},unref(Lt),unref(At)),[bn()]),[[resolveDirective("loading"),unref(xe)]])}}),je=Object.assign(k,{install:function($){$.component(k.name,k)}}),L={data:{type:Array,default:[]},columns:{type:Array,default:[]},loading:{type:Object,default:()=>({load:!1,text:"Loading...",svg:"",spinner:"",svgViewBox:"",background:""})},align:{type:String,default:"left"},labelAlign:{type:String,default:""},...ElDescriptions.props},j=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:$=>()=>createVNode(Fragment,null,[$.render($.params)])}),m=defineComponent({name:"PureDescriptions",props:L,setup($,{slots:z,attrs:oe}){const{data:ae,columns:le,align:ue,labelAlign:pe,loading:_e}=toRefs($),Ce={title:()=>(z==null?void 0:z.title)&&z.title({props:$,attrs:oe})},$e={extra:()=>(z==null?void 0:z.extra)&&z.extra({props:$,attrs:oe})},xe=z!=null&&z.title&&!(z!=null&&z.extra)?Ce:z!=null&&z.extra&&!(z!=null&&z.title)?$e:z!=null&&z.title&&(z!=null&&z.extra)?Object.assign(Ce,$e):null;return()=>{var Ie;return withDirectives(createVNode(ElDescriptions,mergeProps($,oe,{"element-loading-text":(Ie=unref(_e).text)!=null?Ie:"Loading...","element-loading-svg":unref(_e).svg,"element-loading-spinner":unref(_e).spinner,"element-loading-svg-view-box":unref(_e).svgViewBox,"element-loading-background":unref(_e).background}),{default:()=>[unref(le).map((Fe,ze)=>{let Ue=unref(ae).map(vn=>vn[Fe==null?void 0:Fe.prop]);const qe={default:()=>{var vn;return Fe!=null&&Fe.cellRenderer?createVNode(j,{render:Fe.cellRenderer,params:{props:$,attrs:oe,index:ze,value:Ue[0]}},null):Fe!=null&&Fe.slot?(vn=z==null?void 0:z[Fe.slot])==null?void 0:vn.call(z,{props:$,attrs:oe,index:ze,value:Ue[0]}):createVNode(Fragment,null,Fe!=null&&Fe.value?[unref(Fe.value)]:[Ue])}},At=Fe!=null&&Fe.labelRenderer?{label:()=>createVNode(j,{render:Fe.labelRenderer,params:{props:$,attrs:oe,index:ze,value:Ue[0]}},null),...qe}:qe;return Lt=Fe==null?void 0:Fe.hide,typeof Lt=="function"&&(Fe!=null&&Fe.hide(oe))?Fe==null?void 0:Fe.hide(oe):createVNode(ElDescriptionsItem,mergeProps(Fe,{key:ze,align:Fe.align?Fe.align:unref(ue),labelAlign:Fe.labelAlign?Fe.labelAlign:unref(pe)}),typeof(hn=At)=="function"||Object.prototype.toString.call(hn)==="[object Object]"&&!isVNode$1(hn)?At:{default:()=>[At]});var Lt,hn})],...xe}),[[resolveDirective("loading"),unref(_e).load]])}}}),I=Object.assign(m,{install:function($){$.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='<svg><symbol id="pure-iconfont-tabs" viewBox="0 0 1024 1024"><path d="M400.43383789 497.82763673c4.20227051 3.95507813 6.50939942 9.64050293 6.26220703 15.40832519 0.32958983 5.85021973-2.05993653 11.53564453-6.26220703 15.40832519-4.36706543 3.87268067-10.1348877 5.93261719-15.90270996 5.6854248h-57.3486328v193.71643067c0.16479492 6.09741211-2.38952637 11.86523438-6.92138672 15.73791504-4.53186037 4.44946289-10.62927247 6.83898926-16.8914795 6.67419433-6.26220703 0.24719239-12.4420166-2.22473145-16.89147949-6.67419436-4.36706543-4.03747559-6.7565918-9.80529786-6.67419434-15.73791501v-193.6340332H222.78491211c-5.93261719 0.24719239-11.70043946-1.89514161-15.90270997-6.01501466-4.28466797-3.95507813-6.59179689-9.64050293-6.26220701-15.40832519-0.24719239-5.76782227 2.05993653-11.28845215 6.26220702-15.07873536 4.36706543-3.95507813 10.05249023-6.01501465 15.90270996-5.76782224h163.4765625c5.19104004 0 10.21728516 2.05993653 14.17236328 5.6854248z m177.73132325 57.76062011c4.28466797 4.20227051 6.59179689 10.05249023 6.34460448 16.14990234v156.47277832c0.24719239 5.93261719-2.05993653 11.70043946-6.34460449 15.73791504-3.95507813 4.36706543-9.64050293 6.83898926-15.57312011 6.67419433-5.85021973 0.08239747-11.45324708-2.22473145-15.57312013-6.34460449-3.95507813-4.28466797-6.26220703-9.8876953-6.26220703-15.73791504-14.83154297 16.06750489-35.34851075 25.37841797-57.01904297 25.87280274-16.23229981 0.24719239-32.05261231-4.36706543-45.7305908-13.1011963-14.17236327-8.81652833-25.70800781-21.50573731-33.20617677-36.58447265-15.90270997-33.28857422-15.90270997-72.18017578 0-105.46875 7.33337403-15.16113281 18.86901856-27.85034179 33.20617677-36.58447266 13.18359375-8.6517334 28.67431641-13.26599122 44.41223145-13.10119628 21.67053223-0.08239747 42.68188475 8.07495117 58.66699218 22.82409667-0.16479492-6.01501465 2.14233398-11.86523438 6.34460448-16.14990234 8.73413086-8.40454102 22.41210938-8.40454102 31.14624024 0l-0.41198731-0.65917969z m-50.42724611 139.0045166c19.85778809-26.03759766 19.85778809-62.29248047 0-88.33007813-9.47570801-11.78283692-23.81286622-18.37463379-38.80920409-17.79785156-14.7491455-0.41198731-28.92150879 6.09741211-38.15002442 17.79785156-9.97009278 12.35961914-15.24353028 28.01513673-14.91394043 44.00024414-0.49438477 16.06750489 4.69665529 31.80541991 14.58435058 44.32983399 9.55810548 11.45324708 23.73046875 17.88024903 38.47961427 17.46826172 14.91394043 0.32958983 29.08630372-6.09741211 38.8092041-17.46826172zM778.47338867 562.26245117c14.08996583 8.81652833 25.54321289 21.34094239 33.20617676 36.25488281 8.15734864 16.31469727 12.27722169 34.44213867 11.94763184 52.734375 0.32958983 18.37463379-3.7902832 36.58447265-11.94763184 53.06396485-7.41577148 15.07873536-18.95141602 27.76794434-33.20617676 36.58447266-13.18359375 8.73413086-28.67431641 13.26599122-44.41223144 13.10119629-11.45324708 0.16479492-22.82409669-2.38952637-33.20617676-7.41577149-9.55810548-4.11987305-18.20983887-10.05249023-25.54321289-17.46826171v2.30712889c0.16479492 5.93261719-2.05993653 11.70043946-6.17980957 15.98510744-4.11987305 4.20227051-9.80529786 6.59179689-15.73791506 6.5093994-5.85021973 0.24719239-11.53564453-2.05993653-15.5731201-6.34460449-4.28466797-4.20227051-6.59179689-10.05249023-6.26220704-16.14990233V499.80517578c-0.16479492-6.01501465 2.05993653-11.86523438 6.26220705-16.14990234 8.73413086-8.48693847 22.41210938-8.48693847 31.14624023 0 4.20227051 4.28466797 6.50939942 10.05249023 6.26220703 16.14990234v76.87683106c6.59179689-8.07495117 14.83154297-14.58435059 24.22485352-19.11621094 10.21728516-5.60302734 21.58813477-8.48693847 33.20617675-8.40454102 16.23229981-0.16479492 32.13500977 4.36706543 45.81298828 13.10119629z m-12.93640137 134.30786133c10.05249023-12.4420166 15.32592773-28.26232911 14.91394043-44.32983398 0.49438477-15.98510742-4.69665529-31.55822755-14.58435059-44.00024415-9.8876953-11.04125977-23.89526367-17.38586426-38.64440917-17.38586426s-28.75671387 6.3446045-38.64440918 17.38586426c-19.85778809 26.03759766-19.85778809 62.29248047 0 88.33007813 9.55810548 11.61804201 23.89526367 18.20983887 38.8092041 17.79785156 15.07873536-0.16479492 29.16870117-7.49816895 38.15002442-19.77539062v1.97753906zM673.5814209 299.00256347c-12.77160645 0-23.07128906-10.29968262-23.07128907-23.07128905V183.5637207c-0.08239747-6.59179689 0-13.10119629 0-19.6105957V154.31262207c0-12.77160645 10.29968262-23.07128906 23.07128906-23.07128906H820.16650391c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592773 9.31091309 9.31091309 14.66674805 21.42333983 15.32592773 34.44213868 0.08239747 0.57678223 0.08239747 1.15356445 0.08239746 1.73034667v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128906 23.07128906H673.5814209z m23.07128906-46.1425781h129.69360352v-69.29626467c0-1.64794922-0.65917969-3.21350098-1.81274415-4.44946289-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274414H696.65270999v75.5584717zM396.56115722 299.90893555c-12.77160645 0-23.07128906-10.29968262-23.07128905-23.07128908V155.13659668c0-12.68920898 10.29968262-22.98889161 22.9888916-23.07128906l175.83618164-0.90637207h0.08239746c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592774 9.8876953 9.97009278 15.32592773 23.07128906 15.32592775 37.07885741v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128907 23.07128906h-205.16967775z m23.07128907-46.22497559h159.0270996v-70.20263671c0-1.64794922-0.65917969-3.21350098-1.81274413-4.44946289-1.15356445-1.15356445-2.71911623-1.81274414-4.36706543-1.81274414l-152.84729005 0.74157713v75.72326662z" ></path><path d="M149.78076171 892.84106445c-14.25476075 0-27.60314942-5.52062989-37.65563964-15.40832519-10.05249023-9.97009278-15.57312012-23.15368653-15.57312012-37.16125488V183.72851562c0-29.00390624 23.89526367-52.56958007 53.22875978-52.56958007h139.25170897c14.25476075 0 27.60314942 5.43823242 37.65563966 15.40832519 10.05249023 9.8876953 15.57312012 23.15368653 15.57312011 37.16125489V323.30981445c0 1.64794922 0.65917969 3.21350098 1.89514162 4.44946289 1.23596192 1.15356445 2.80151367 1.81274414 4.44946288 1.81274414h525.61340332c14.25476075 0 27.60314942 5.43823242 37.65563964 15.4083252 10.05249023 9.8876953 15.57312012 23.07128906 15.57312012 37.16125488v458.12988281c0 14.08996583-5.52062989 27.27355958-15.57312012 37.16125489s-23.40087891 15.40832519-37.65563964 15.40832519H149.78076171z m6.34460451-709.11254882c-3.54309083 0-6.3446045 2.80151367-6.34460449 6.26220703v649.86877441c0 1.64794922 0.65917969 3.29589844 1.8951416 4.4494629 1.15356445 1.15356445 2.80151367 1.81274414 4.44946288 1.81274415h718.09387208c1.73034668 0 3.29589844-0.65917969 4.44946288-1.81274415 1.23596192-1.15356445 1.89514161-2.71911623 1.89514161-4.4494629V379.01049805c0-1.64794922-0.65917969-3.21350098-1.81274413-4.36706544-1.23596192-1.23596192-2.80151367-1.89514161-4.44946291-1.89514159h-525.69580077c-14.25476075 0-27.60314942-5.52062989-37.65563966-15.4083252-10.05249023-9.8876953-15.57312012-23.15368653-15.57312012-37.16125488V189.90832519c0-1.64794922-0.65917969-3.21350098-1.8951416-4.44946288-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274416H156.12536621z" ></path></symbol><symbol id="pure-iconfont-logo" viewBox="0 0 1024 1024"><path d="M410.558481 0.10861C410.558481 211.083075 109.682285 361.860579 109.682285 633.656511c0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527C711.407525 361.751969 410.558481 210.974465 410.558481 0.10861z" fill="#386BF3" ></path><path d="M613.468671 73.664572c0 211.055922-300.876197 361.914883-300.876196 633.547901 0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527c-0.054305-271.633018-300.876197-422.491979-300.876197-633.547901z" fill="#C3D2FB" ></path><path d="M312.592475 707.212473c0-183.713414 137.635722-312.171612 226.72288-441.390078 81.701694 106.111739 172.119322 218.740063 172.119323 367.725506a309.755045 309.755045 0 0 1-291.074166 316.516003 323.114046 323.114046 0 0 1-107.768037-242.851431z" fill="#303F5B" ></path></symbol><symbol id="pure-iconfont-new" viewBox="0 0 1024 1024"><path d="M466.73632812 228.81640625l-33.31054687 255.41015625c34.36523438 20.21484375 78.31054688 42.62695313 131.22070313 62.2265625 55.1953125 20.47851563 105.1171875 32.43164063 145.54687499 39.46289063 127.44140625-161.27929688 147.39257813-224.38476563 141.59179688-215.59570313-10.45898438 15.99609375-62.05078125 20.390625-76.20117188 15.29296875-28.30078125-10.10742188-53.4375-37.52929688-65.30273437-81.29882813-14.85351563-54.66796875-43.50585938-50.53710938-94.5703125-21.35742187-58.88671875 33.48632813-121.46484375 4.39453125-148.97460938-54.140625z" fill="#FFFFFF" ></path><path d="M444.76367187 228.81640625c-3.77929688 28.828125-7.55859375 57.74414063-11.33789062 86.57226563l-17.9296875 137.37304687c-1.40625 10.45898438-2.72460938 21.00585938-4.13085937 31.46484375-0.96679688 7.3828125 4.83398438 15.46875 10.8984375 18.984375 69.78515625 40.86914063 145.63476563 71.98242188 224.12109374 91.66992188 19.16015625 4.83398438 38.49609375 8.87695313 57.91992188 12.30468749 7.20703125 1.23046875 16.34765625 0.703125 21.35742188-5.625C767.49804688 548.65039063 808.3671875 494.421875 843.34765625 436.58984375c7.91015625-13.09570313 15.55664063-26.3671875 22.1484375-40.16601563 2.4609375-5.09765625 4.74609375-10.37109375 6.85546875-15.64453125 1.31835938-3.33984375 2.37304688-7.11914063 2.28515625-10.72265625-0.43945313-12.04101563-9.4921875-22.32421875-22.06054688-22.32421875-8.4375 0-14.94140625 4.5703125-19.42382812 11.33789063-1.93359375 2.8125 3.33984375-3.42773438 1.58203125-2.109375-0.43945313 0.3515625-0.87890625 0.79101563-1.23046875 1.14257812-1.31835938 1.49414063-3.33984375 1.14257813 2.54882813-1.84570312-1.23046875 0.61523438-2.37304688 1.58203125-3.60351563 2.28515625-1.14257813 0.61523438-2.28515625 1.14257813-3.33984375 1.66992187-3.33984375 1.66992188 5.53710938-2.109375 1.93359375-0.87890625-0.61523438 0.17578125-1.14257813 0.43945313-1.7578125 0.61523438-3.07617188 1.0546875-6.24023438 1.93359375-9.40429688 2.72460937-3.33984375 0.79101563-6.76757813 1.40625-10.10742187 2.02148438-5.625 0.87890625 5.36132813-0.61523438-0.3515625 0.08789062-1.66992188 0.17578125-3.42773438 0.3515625-5.09765625 0.52734375-6.15234375 0.52734375-12.3046875 0.703125-18.45703125 0.26367188-2.28515625-0.17578125-7.03125-1.40625 1.40625 0.3515625-1.0546875-0.17578125-2.109375-0.3515625-3.1640625-0.61523438-0.703125-0.17578125-1.40625-0.3515625-2.109375-0.61523437-0.79101563-0.26367188-1.58203125-0.61523438-2.37304688-0.87890625-3.42773438-1.23046875 5.09765625 2.37304688 1.49414063 0.61523437-2.98828125-1.40625-5.88867188-2.8125-8.70117188-4.48242187-1.31835938-0.79101563-2.72460938-1.66992188-3.95507812-2.54882813l-2.63671875-1.84570312c-1.40625-1.0546875-3.69140625-3.69140625 1.0546875 0.79101562-2.37304688-2.28515625-5.09765625-4.30664063-7.47070313-6.59179687-2.98828125-2.98828125-5.44921875-6.59179688-8.52539062-9.4921875 0.17578125 0.17578125 3.33984375 4.48242188 1.23046875 1.58203125-0.61523438-0.79101563-1.23046875-1.66992188-1.7578125-2.4609375-1.0546875-1.49414063-2.109375-3.07617188-3.07617188-4.65820313-2.4609375-3.77929688-4.65820313-7.734375-6.67968749-11.77734375-0.87890625-1.7578125-1.7578125-3.60351563-2.63671875-5.44921875-0.17578125-0.43945313-0.3515625-0.79101563-0.52734375-1.23046875-0.96679688-2.19726563-0.703125-1.66992188 0.61523437 1.40625 0.08789063-0.3515625-0.96679688-2.54882813-1.0546875-2.63671875-1.7578125-4.48242188-3.25195313-9.140625-4.65820313-13.7109375-2.72460938-9.22851563-5.625-18.19335938-9.66796874-26.89453125-6.85546875-14.50195313-18.19335938-26.10351563-33.31054688-31.640625-13.18359375-4.83398438-28.38867188-3.07617188-41.484375 1.0546875-16.171875 5.09765625-30.84960938 13.44726563-45.61523438 21.4453125-2.02148438 1.0546875-3.95507813 2.109375-6.06445312 3.07617188-0.52734375 0.26367188-4.65820313 1.84570313-0.96679688 0.52734375 3.60351563-1.40625-0.43945313 0.17578125-0.96679687 0.3515625-3.95507813 1.49414063-7.99804688 2.8125-12.04101563 3.8671875-2.02148438 0.52734375-3.95507813 0.96679688-5.9765625 1.31835937-0.79101563 0.17578125-1.58203125 0.26367188-2.37304687 0.43945313-4.48242188 0.79101563 5.625-0.52734375 1.0546875-0.17578125-3.95507813 0.3515625-7.91015625 0.61523438-11.86523438 0.52734375-1.93359375 0-3.8671875-0.08789063-5.88867187-0.26367188-0.79101563-0.08789063-1.58203125-0.17578125-2.28515625-0.17578125-4.30664063-0.3515625 4.74609375 0.79101563 1.84570312 0.26367188-3.95507813-0.79101563-7.99804688-1.40625-11.86523437-2.54882813-3.515625-0.96679688-6.94335938-2.37304688-10.37109375-3.60351562-2.72460938-0.96679688 5.2734375 2.4609375 1.49414062 0.61523437-0.703125-0.3515625-1.40625-0.61523438-2.109375-0.96679687-2.109375-1.0546875-4.13085938-2.109375-6.24023437-3.25195313-3.07617188-1.7578125-6.06445313-3.69140625-8.96484375-5.71289062-0.96679688-0.703125-1.84570313-1.49414063-2.90039063-2.109375 0.26367188 0.17578125 4.30664063 3.515625 1.58203125 1.23046875-1.66992188-1.40625-3.42773438-2.8125-5.00976562-4.30664063-2.90039063-2.63671875-5.625-5.36132813-8.17382813-8.17382812-1.40625-1.49414063-2.72460938-3.07617188-4.04296875-4.65820313-0.52734375-0.61523438-0.96679688-1.40625-1.58203125-1.93359375 4.39453125 4.39453125 1.14257813 1.40625 0-0.08789062-4.921875-6.85546875-9.140625-14.0625-12.65625-21.70898438-4.921875-10.37109375-20.65429688-13.97460938-30.05859375-7.91015625-10.72265625 6.94335938-13.18359375 18.89648438-7.91015625 30.05859375 15.8203125 33.31054688 43.68164063 60.20507813 78.48632813 72.68554688 15.55664063 5.625 33.13476563 7.734375 49.5703125 5.80078125 9.58007813-1.14257813 18.984375-2.8125 28.125-6.15234375 9.66796875-3.515625 18.54492188-8.0859375 27.421875-13.0078125 6.85546875-3.77929688 14.23828125-8.52539063 21.70898437-10.8984375-0.08789063 0-5.44921875 2.19726563-2.28515625 0.96679688 0.79101563-0.3515625 1.58203125-0.61523438 2.4609375-0.96679688 1.40625-0.52734375 2.8125-1.0546875 4.30664063-1.58203125 2.90039063-0.96679688 5.88867188-1.84570313 8.96484375-2.54882813 1.40625-0.26367188 2.8125-0.43945313 4.21875-0.79101562-7.64648438 1.84570313-3.42773438 0.43945313-1.0546875 0.3515625 1.14257813-0.08789063 2.28515625-0.08789063 3.42773437 0 0.61523438 0 1.23046875 0.08789063 1.84570313 0.08789063 3.25195313 0.08789063-6.06445313-1.31835938-2.98828125-0.3515625 1.14257813 0.3515625 2.28515625 0.52734375 3.42773437 0.87890625 0.43945313 0.17578125 0.87890625 0.3515625 1.31835938 0.43945312 3.07617188 0.87890625-5.09765625-2.4609375-2.98828125-1.23046875 0.96679688 0.52734375 1.93359375 0.96679688 2.8125 1.49414063 0.52734375 0.3515625 0.96679688 0.703125 1.49414062 0.96679687 1.93359375 1.14257813-5.00976563-4.21875-2.109375-1.58203125 0.87890625 0.79101563 1.7578125 1.58203125 2.54882813 2.37304688 1.93359375 2.02148438 2.90039063 5.00976563-0.26367188-0.703125 1.49414063 2.63671875 3.42773438 5.00976563 4.83398438 7.73437499 0.79101563 1.49414063 1.40625 3.07617188 2.19726562 4.5703125-3.42773438-6.59179688-0.43945313-1.0546875 0.26367188 0.96679688 1.40625 3.95507813 2.63671875 8.0859375 3.77929687 12.12890625 5.09765625 18.10546875 12.83203125 36.12304688 23.90625 51.41601563 10.37109375 14.23828125 22.76367188 26.80664063 38.14453125 35.59570312 6.41601563 3.69140625 13.53515625 7.29492188 20.7421875 8.96484375 6.41601563 1.49414063 13.27148438 2.02148438 19.86328125 2.02148438 14.67773438 0.08789063 30.05859375-1.7578125 44.12109375-5.88867188 6.85546875-2.02148438 13.88671875-4.5703125 19.95117188-8.34960938 6.59179688-4.13085938 9.84375-8.4375 14.67773437-14.23828124-3.515625 4.21875-2.90039063 4.48242188-7.47070312 7.47070312-2.63671875 1.66992188-7.734375 3.1640625-10.98632813 2.98828125-1.84570313-0.52734375-3.69140625-0.96679688-5.53710937-1.49414063-5.88867188-0.61523438-10.37109375-3.69140625-13.359375-9.31640624-1.84570313-3.1640625-3.07617188-7.47070313-2.98828125-10.81054688 0-0.26367188 1.7578125-7.99804688 0.43945312-4.13085938-0.3515625 1.0546875-0.703125 2.109375-1.14257812 3.16406251-0.26367188 0.61523438-0.52734375 1.31835938-0.79101563 1.93359375-1.0546875 2.72460938 2.90039063-6.59179688 1.58203125-3.77929688-0.17578125 0.43945313-0.3515625 0.87890625-0.61523437 1.31835938-5.18554688 11.68945313-11.33789063 22.8515625-17.75390625 33.92578125-29.53125 51.15234375-64.59960938 99.140625-100.546875 145.81054687-0.703125 0.87890625-1.31835938 1.7578125-2.02148438 2.54882813-2.37304688 3.1640625 0 0 0.43945313-0.52734375-1.66992188 2.19726563-3.42773438 4.39453125-5.09765625 6.59179687-3.515625 4.5703125-7.11914063 9.05273438-10.63476563 13.53515625 7.11914063-1.84570313 14.23828125-3.77929688 21.35742188-5.625-36.82617188-6.50390625-73.125-15.46875-108.72070313-26.80664063-20.65429688-6.59179688-40.95703125-13.97460938-60.99609375-22.14843749-2.28515625-0.87890625-4.48242188-1.84570313-6.76757812-2.81250001-4.921875-2.02148438 3.1640625 1.40625 0.08789062 0l-3.69140625-1.58203125c-4.74609375-2.109375-9.58007813-4.21875-14.32617187-6.328125-8.61328125-3.8671875-17.13867188-7.99804688-25.6640625-12.12890624-17.49023438-8.61328125-34.62890625-17.9296875-51.41601563-27.77343751 3.60351563 6.328125 7.29492188 12.65625 10.8984375 18.98437501 3.77929688-28.828125 7.55859375-57.74414063 11.33789063-86.57226563l17.9296875-137.37304688c1.40625-10.45898438 2.72460938-21.00585938 4.13085937-31.46484374 0.703125-5.18554688-2.90039063-12.04101563-6.41601562-15.55664063-3.77929688-3.77929688-10.10742188-6.6796875-15.55664063-6.41601562-5.71289063 0.26367188-11.6015625 2.109375-15.55664062 6.41601562-4.04296875 4.65820313-5.44921875 9.4921875-6.24023438 15.64453125z" fill="#FFCB40" ></path><path d="M496.61914062 458.73828125c47.54882813 31.640625 101.07421875 54.75585938 156.70898438 67.58789063 11.16210938 2.54882813 24.34570313-3.42773438 27.0703125-15.38085938 2.54882813-11.25-3.33984375-24.2578125-15.38085938-27.0703125-13.18359375-3.07617188-26.27929688-6.6796875-39.19921874-10.8984375-6.41601563-2.109375-12.83203125-4.30664063-19.16015625-6.76757813-3.42773438-1.31835938-6.85546875-2.63671875-10.1953125-3.95507812-1.49414063-0.61523438-2.90039063-1.14257813-4.30664063-1.7578125-4.13085938-1.7578125 4.04296875 1.7578125-1.23046875-0.52734375-25.13671875-10.8984375-49.21875-24.08203125-72.0703125-39.28710938-9.58007813-6.41601563-24.69726563-2.19726563-30.05859375 7.91015625-5.88867188 11.07421875-2.37304688 23.29101563 7.82226563 30.14648438z" fill="#FFCB40" ></path><path d="M245.77929687 729.6171875v-72.50976563-115.04882812V515.515625c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703124 11.07421875 11.42578125 24.16992188 22.8515625 48.42773438 34.18945312 72.59765625 18.01757813 38.23242188 36.12304688 76.55273438 54.140625 114.78515625 4.21875 8.87695313 8.34960938 17.75390625 12.56835938 26.54296875 3.95507813 8.34960938 16.171875 12.91992188 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976563V541.8828125v-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421875-11.42578125-24.16992188-22.8515625-48.42773438-34.18945312-72.59765625-18.01757813-38.23242188-36.12304688-76.55273438-54.140625-114.78515625-4.21875-8.87695313-8.34960938-17.75390625-12.56835938-26.54296875-3.95507813-8.34960938-16.171875-12.91992188-24.78515624-10.10742188-9.22851563 2.98828125-16.171875 11.25-16.17187501 21.18164063v214.1015625c0 11.51367188 10.10742188 22.5 21.97265626 21.97265625 11.953125-0.52734375 21.97265625-9.66796875 21.97265624-21.97265625zM501.8046875 493.63085937H400.90625c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265626v211.55273437c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265625h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H400.90625l21.97265625 21.97265625v-71.27929688-114.16992187-26.10351563l-21.97265625 21.97265626h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265626-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265624z" fill="#4381FF" ></path><path d="M478.16210937 595.75976563c-25.75195313 0.17578125-51.50390625 0.43945313-77.25585937-1e-8-11.51367188-0.17578125-22.5 10.1953125-21.97265625 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.75195313 0.43945313 51.50390625 0.17578125 77.25585938 0 11.51367188-0.08789063 22.5-10.01953125 21.97265624-21.97265625-0.52734375-11.86523438-9.58007813-22.06054688-21.97265625-21.97265625zM553.57226563 515.60351563v214.10156249c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742187 18.72070313-31.20117188 37.44140625-62.40234375 56.25-93.69140626 2.63671875-4.48242188 5.36132813-8.87695313 7.99804687-13.359375h-37.96875c18.72070313 31.20117188 37.44140625 62.40234375 56.25 93.69140625 2.63671875 4.48242188 5.36132813 8.87695313 7.99804688 13.359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976562-115.04882813-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.10156251c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421876-18.72070313-31.20117188-37.44140625-62.40234375-56.25-93.69140624-2.63671875-4.48242188-5.36132813-8.87695313-7.99804687-13.359375-8.52539063-14.23828125-29.44335938-14.23828125-37.96875 0-18.72070313 31.20117188-37.44140625 62.40234375-56.25 93.69140625-2.63671875 4.48242188-5.36132813 8.87695313-7.99804688 13.359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703126 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#4381FF" ></path><path d="M225.30078125 709.49023438v-72.50976563-115.04882813-26.54296874c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703125 11.07421875 11.42578125 24.08203125 22.76367188 48.1640625 34.18945313 72.33398437 18.19335938 38.40820313 36.38671875 76.81640625 54.4921875 115.22460938 4.13085938 8.7890625 8.34960938 17.66601563 12.48046875 26.45507812 3.95507813 8.34960938 16.171875 12.91992188 24.78515625 10.10742187 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164062v-72.50976563-115.04882812V495.30078125c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-11.42578125-24.08203125-22.76367188-48.1640625-34.18945313-72.33398438-18.19335938-38.40820313-36.38671875-76.81640625-54.4921875-115.22460937-4.13085938-8.7890625-8.34960938-17.66601563-12.48046875-26.45507813-3.95507813-8.34960938-16.171875-12.91992188-24.78515625-10.10742187-9.22851563 2.98828125-16.171875 11.25-16.171875 21.18164063v214.10156249c0 11.51367188 10.10742188 22.5 21.97265625 21.97265626 11.86523438-0.52734375 21.97265625-9.66796875 21.97265625-21.97265625zM482.29296875 473.50390625H381.04296875c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265625v211.55273438c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265624h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H381.04296875l21.97265625 21.97265625v-71.27929687-114.16992188-26.10351562l-21.97265625 21.97265625h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625z" fill="#FF642E" ></path><path d="M458.5625 575.6328125c-25.83984375 0.17578125-51.76757813 0.43945313-77.60742188 0-11.51367188-0.17578125-22.5 10.1953125-21.97265624 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.83984375 0.43945313 51.76757813 0.17578125 77.60742187 0 11.51367188-0.08789063 22.5-10.01953125 21.97265625-21.97265625-0.52734375-11.86523438-9.58007813-21.97265625-21.97265625-21.97265625zM534.32421875 495.4765625v214.1015625c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742188 18.80859375-31.2890625 37.6171875-62.49023438 56.51367188-93.77929688 2.63671875-4.39453125 5.2734375-8.7890625 7.99804687-13.18359374h-37.96875c18.80859375 31.2890625 37.6171875 62.49023438 56.51367188 93.77929687 2.63671875 4.39453125 5.2734375 8.7890625 7.99804687 13.18359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515625 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164063v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-18.80859375-31.2890625-37.6171875-62.49023438-56.51367188-93.77929688-2.63671875-4.39453125-5.2734375-8.7890625-7.99804687-13.18359374-8.52539063-14.23828125-29.35546875-14.23828125-37.96875 0-18.80859375 31.2890625-37.6171875 62.49023438-56.51367188 93.77929687-2.63671875 4.39453125-5.2734375 8.7890625-7.99804687 13.18359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703125 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#FF642E" ></path><path d="M629.0703125 793.77734375h74.8828125" fill="#FFFFFF" ></path><path d="M629.0703125 815.75h74.97070313c11.51367188 0 22.5-10.10742188 21.97265624-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625h-74.97070312c-11.51367188 0-22.5 10.10742188-21.97265625 21.97265625 0.52734375 11.86523438 9.66796875 21.97265625 21.97265625 21.97265625z" fill="#FFCB40" ></path><path d="M552.16601563 793.77734375h5.71289062" fill="#FFFFFF" ></path><path d="M552.16601563 815.75h5.71289062c2.98828125 0.08789063 5.88867188-0.52734375 8.4375-1.93359375 2.72460938-0.87890625 5.09765625-2.37304688 7.03125-4.5703125 2.109375-2.02148438 3.69140625-4.30664063 4.5703125-7.03125 1.40625-2.63671875 2.02148438-5.44921875 1.93359375-8.4375l-0.79101562-5.80078125c-1.0546875-3.69140625-2.90039063-6.94335938-5.625-9.66796875-4.30664063-3.95507813-9.58007813-6.41601563-15.55664063-6.41601563h-5.71289062c-2.98828125-0.08789063-5.88867188 0.52734375-8.4375 1.93359376-2.72460938 0.87890625-5.09765625 2.37304688-7.03125 4.5703125-2.109375 2.02148438-3.69140625 4.30664063-4.5703125 7.03125-1.40625 2.63671875-2.02148438 5.44921875-1.93359375 8.43749999l0.79101562 5.80078126c1.0546875 3.69140625 2.90039063 6.94335938 5.625 9.66796874 4.30664063 3.95507813 9.58007813 6.41601563 15.55664063 6.41601563z" fill="#FFCB40" ></path></symbol></svg>',function($){var oe=(oe=document.getElementsByTagName("script"))[oe.length-1],z=oe.getAttribute("data-injectcss"),oe=oe.getAttribute("data-disable-injectsvg");if(!oe){var ae,le,ue,pe,_e,Ce=function(Ie,Fe){Fe.parentNode.insertBefore(Ie,Fe)};if(z&&!$.__iconfont__svg__cssinject__){$.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(Ie){console&&console.log(Ie)}}ae=function(){var Ie,Fe=document.createElement("div");Fe.innerHTML=$._iconfont_svg_string_2208059,(Fe=Fe.getElementsByTagName("svg")[0])&&(Fe.setAttribute("aria-hidden","true"),Fe.style.position="absolute",Fe.style.width=0,Fe.style.height=0,Fe.style.overflow="hidden",Fe=Fe,(Ie=document.body).firstChild?Ce(Fe,Ie.firstChild):Ie.appendChild(Fe))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(ae,0):(le=function(){document.removeEventListener("DOMContentLoaded",le,!1),ae()},document.addEventListener("DOMContentLoaded",le,!1)):document.attachEvent&&(ue=ae,pe=$.document,_e=!1,xe(),pe.onreadystatechange=function(){pe.readyState=="complete"&&(pe.onreadystatechange=null,$e())})}function $e(){_e||(_e=!0,ue())}function xe(){try{pe.documentElement.doScroll("left")}catch{return void setTimeout(xe,50)}$e()}}(window);const iconfont="",auth$1={mounted($,z){var ae;const{value:oe}=z;if(oe)!hasAuth(oe)&&((ae=$.parentNode)==null||ae.removeChild($));else throw new Error(`need auths! Like v-auth="['btn.add','btn.edit']"`)}};var collectionUtils={exports:{}},utils$3=collectionUtils.exports={};utils$3.forEach=function($,z){for(var oe=0;oe<$.length;oe++){var ae=z($[oe]);if(ae)return ae}};var collectionUtilsExports=collectionUtils.exports,elementUtils=function($){var z=$.stateHandler.getState;function oe(pe){var _e=z(pe);return _e&&!!_e.isDetectable}function ae(pe){z(pe).isDetectable=!0}function le(pe){return!!z(pe).busy}function ue(pe,_e){z(pe).busy=!!_e}return{isDetectable:oe,markAsDetectable:ae,isBusy:le,markBusy:ue}},listenerHandler=function($){var z={};function oe(pe){var _e=$.get(pe);return _e===void 0?[]:z[_e]||[]}function ae(pe,_e){var Ce=$.get(pe);z[Ce]||(z[Ce]=[]),z[Ce].push(_e)}function le(pe,_e){for(var Ce=oe(pe),$e=0,xe=Ce.length;$e<xe;++$e)if(Ce[$e]===_e){Ce.splice($e,1);break}}function ue(pe){var _e=oe(pe);_e&&(_e.length=0)}return{get:oe,add:ae,removeListener:le,removeAllListeners:ue}},idGenerator=function(){var $=1;function z(){return $++}return{generate:z}},idHandler=function($){var z=$.idGenerator,oe=$.stateHandler.getState;function ae(ue){var pe=oe(ue);return pe&&pe.id!==void 0?pe.id:null}function le(ue){var pe=oe(ue);if(!pe)throw new Error("setId required the element to have a resize detection state.");var _e=z.generate();return pe.id=_e,_e}return{get:ae,set:le}},reporter=function($){function z(){}var oe={log:z,warn:z,error:z};if(!$&&window.console){var ae=function(le,ue){le[ue]=function(){var _e=console[ue];if(_e.apply)_e.apply(console,arguments);else for(var Ce=0;Ce<arguments.length;Ce++)_e(arguments[Ce])}};ae(oe,"log"),ae(oe,"warn"),ae(oe,"error")}return oe},browserDetector$2={exports:{}},detector=browserDetector$2.exports={};detector.isIE=function($){function z(){var ae=navigator.userAgent.toLowerCase();return ae.indexOf("msie")!==-1||ae.indexOf("trident")!==-1||ae.indexOf(" edge/")!==-1}if(!z())return!1;if(!$)return!0;var oe=function(){var ae,le=3,ue=document.createElement("div"),pe=ue.getElementsByTagName("i");do ue.innerHTML="<!--[if gt IE "+ ++le+"]><i></i><![endif]-->";while(pe[0]);return le>4?le:ae}();return $===oe};detector.isLegacyOpera=function(){return!!window.opera};var browserDetectorExports=browserDetector$2.exports,utils$2={exports:{}},utils$1=utils$2.exports={};utils$1.getOption=getOption$1;function getOption$1($,z,oe){var ae=$[z];return ae==null&&oe!==void 0?oe:ae}var utilsExports=utils$2.exports,utils=utilsExports,batchProcessor=function(z){z=z||{};var oe=z.reporter,ae=utils.getOption(z,"async",!0),le=utils.getOption(z,"auto",!0);le&&!ae&&(oe&&oe.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),ae=!0);var ue=Batch(),pe,_e=!1;function Ce(Ue,qe){!_e&&le&&ae&&ue.size()===0&&Ie(),ue.add(Ue,qe)}function $e(){for(_e=!0;ue.size();){var Ue=ue;ue=Batch(),Ue.process()}_e=!1}function xe(Ue){_e||(Ue===void 0&&(Ue=ae),pe&&(Fe(pe),pe=null),Ue?Ie():$e())}function Ie(){pe=ze($e)}function Fe(Ue){var qe=clearTimeout;return qe(Ue)}function ze(Ue){var qe=function(At){return setTimeout(At,0)};return qe(Ue)}return{add:Ce,force:xe}};function Batch(){var $={},z=0,oe=0,ae=0;function le(_e,Ce){Ce||(Ce=_e,_e=0),_e>oe?oe=_e:_e<ae&&(ae=_e),$[_e]||($[_e]=[]),$[_e].push(Ce),z++}function ue(){for(var _e=ae;_e<=oe;_e++)for(var Ce=$[_e],$e=0;$e<Ce.length;$e++){var xe=Ce[$e];xe()}}function pe(){return z}return{add:le,process:ue,size:pe}}var prop="_erd";function initState($){return $[prop]={},getState($)}function getState($){return $[prop]}function cleanState($){delete $[prop]}var stateHandler$1={initState,getState,cleanState},browserDetector$1=browserDetectorExports,object=function($){$=$||{};var z=$.reporter,oe=$.batchProcessor,ae=$.stateHandler.getState;if(!z)throw new Error("Missing required dependency: reporter.");function le($e,xe){function Ie(){xe($e)}if(browserDetector$1.isIE(8))ae($e).object={proxy:Ie},$e.attachEvent("onresize",Ie);else{var Fe=_e($e);if(!Fe)throw new Error("Element is not detectable by this strategy.");Fe.contentDocument.defaultView.addEventListener("resize",Ie)}}function ue($e){var xe=$.important?" !important; ":"; ";return($e.join(xe)+xe).trim()}function pe($e,xe,Ie){Ie||(Ie=xe,xe=$e,$e=null),$e=$e||{},$e.debug;function Fe(ze,Ue){var qe=ue(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),At=!1,Lt=window.getComputedStyle(ze),hn=ze.offsetWidth,vn=ze.offsetHeight;ae(ze).startSize={width:hn,height:vn};function _n(){function bn(){if(Lt.position==="static"){ze.style.setProperty("position","relative",$e.important?"important":"");var En=function($n,wn,Tn,xn){function kn(Bn){return Bn.replace(/[^-\d\.]/g,"")}var Nn=Tn[xn];Nn!=="auto"&&kn(Nn)!=="0"&&($n.warn("An element that is positioned static has style."+xn+"="+Nn+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+xn+" will be set to 0. Element: ",wn),wn.style.setProperty(xn,"0",$e.important?"important":""))};En(z,ze,Lt,"top"),En(z,ze,Lt,"right"),En(z,ze,Lt,"bottom"),En(z,ze,Lt,"left")}}function Sn(){At||bn();function En(wn,Tn){if(!wn.contentDocument){var xn=ae(wn);xn.checkForObjectDocumentTimeoutId&&window.clearTimeout(xn.checkForObjectDocumentTimeoutId),xn.checkForObjectDocumentTimeoutId=setTimeout(function(){xn.checkForObjectDocumentTimeoutId=0,En(wn,Tn)},100);return}Tn(wn.contentDocument)}var $n=this;En($n,function(Tn){Ue(ze)})}Lt.position!==""&&(bn(),At=!0);var Cn=document.createElement("object");Cn.style.cssText=qe,Cn.tabIndex=-1,Cn.type="text/html",Cn.setAttribute("aria-hidden","true"),Cn.onload=Sn,browserDetector$1.isIE()||(Cn.data="about:blank"),ae(ze)&&(ze.appendChild(Cn),ae(ze).object=Cn,browserDetector$1.isIE()&&(Cn.data="about:blank"))}oe?oe.add(_n):_n()}browserDetector$1.isIE(8)?Ie(xe):Fe(xe,Ie)}function _e($e){return ae($e).object}function Ce($e){if(ae($e)){var xe=_e($e);xe&&(browserDetector$1.isIE(8)?$e.detachEvent("onresize",xe.proxy):$e.removeChild(xe),ae($e).checkForObjectDocumentTimeoutId&&window.clearTimeout(ae($e).checkForObjectDocumentTimeoutId),delete ae($e).object)}}return{makeDetectable:pe,addListener:le,uninstall:Ce}},forEach$1=collectionUtilsExports.forEach,scroll=function($){$=$||{};var z=$.reporter,oe=$.batchProcessor,ae=$.stateHandler.getState;$.stateHandler.hasState;var le=$.idHandler;if(!oe)throw new Error("Missing required dependency: batchProcessor");if(!z)throw new Error("Missing required dependency: reporter.");var ue=xe(),pe="erd_scroll_detection_scrollbar_style",_e="erd_scroll_detection_container";function Ce(_n){Ie(_n,pe,_e)}Ce(window.document);function $e(_n){var bn=$.important?" !important; ":"; ";return(_n.join(bn)+bn).trim()}function xe(){var _n=500,bn=500,Sn=document.createElement("div");Sn.style.cssText=$e(["position: absolute","width: "+_n*2+"px","height: "+bn*2+"px","visibility: hidden","margin: 0","padding: 0"]);var Cn=document.createElement("div");Cn.style.cssText=$e(["position: absolute","width: "+_n+"px","height: "+bn+"px","overflow: scroll","visibility: none","top: "+-_n*3+"px","left: "+-bn*3+"px","visibility: hidden","margin: 0","padding: 0"]),Cn.appendChild(Sn),document.body.insertBefore(Cn,document.body.firstChild);var En=_n-Cn.clientWidth,$n=bn-Cn.clientHeight;return document.body.removeChild(Cn),{width:En,height:$n}}function Ie(_n,bn,Sn){function Cn(Tn,xn){xn=xn||function(Nn){_n.head.appendChild(Nn)};var kn=_n.createElement("style");return kn.innerHTML=Tn,kn.id=bn,xn(kn),kn}if(!_n.getElementById(bn)){var En=Sn+"_animation",$n=Sn+"_animation_active",wn=`/* Created by the element-resize-detector library. */
|
||
`;wn+="."+Sn+" > div::-webkit-scrollbar { "+$e(["display: none"])+` }
|
||
|
||
`,wn+="."+$n+" { "+$e(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+En,"animation-name: "+En])+` }
|
||
`,wn+="@-webkit-keyframes "+En+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
|
||
`,wn+="@keyframes "+En+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",Cn(wn)}}function Fe(_n){_n.className+=" "+_e+"_animation_active"}function ze(_n,bn,Sn){if(_n.addEventListener)_n.addEventListener(bn,Sn);else if(_n.attachEvent)_n.attachEvent("on"+bn,Sn);else return z.error("[scroll] Don't know how to add event listeners.")}function Ue(_n,bn,Sn){if(_n.removeEventListener)_n.removeEventListener(bn,Sn);else if(_n.detachEvent)_n.detachEvent("on"+bn,Sn);else return z.error("[scroll] Don't know how to remove event listeners.")}function qe(_n){return ae(_n).container.childNodes[0].childNodes[0].childNodes[0]}function At(_n){return ae(_n).container.childNodes[0].childNodes[0].childNodes[1]}function Lt(_n,bn){var Sn=ae(_n).listeners;if(!Sn.push)throw new Error("Cannot add listener to an element that is not detectable.");ae(_n).listeners.push(bn)}function hn(_n,bn,Sn){Sn||(Sn=bn,bn=_n,_n=null),_n=_n||{};function Cn(){if(_n.debug){var Wn=Array.prototype.slice.call(arguments);if(Wn.unshift(le.get(bn),"Scroll: "),z.log.apply)z.log.apply(null,Wn);else for(var Qn=0;Qn<Wn.length;Qn++)z.log(Wn[Qn])}}function En(Wn){function Qn(cr){var jn=cr.getRootNode&&cr.getRootNode().contains(cr);return cr===cr.ownerDocument.body||cr.ownerDocument.body.contains(cr)||jn}return!Qn(Wn)||window.getComputedStyle(Wn)===null}function $n(Wn){var Qn=ae(Wn).container.childNodes[0],cr=window.getComputedStyle(Qn);return!cr.width||cr.width.indexOf("px")===-1}function wn(){var Wn=window.getComputedStyle(bn),Qn={};return Qn.position=Wn.position,Qn.width=bn.offsetWidth,Qn.height=bn.offsetHeight,Qn.top=Wn.top,Qn.right=Wn.right,Qn.bottom=Wn.bottom,Qn.left=Wn.left,Qn.widthCSS=Wn.width,Qn.heightCSS=Wn.height,Qn}function Tn(){var Wn=wn();ae(bn).startSize={width:Wn.width,height:Wn.height},Cn("Element start size",ae(bn).startSize)}function xn(){ae(bn).listeners=[]}function kn(){if(Cn("storeStyle invoked."),!ae(bn)){Cn("Aborting because element has been uninstalled");return}var Wn=wn();ae(bn).style=Wn}function Nn(Wn,Qn,cr){ae(Wn).lastWidth=Qn,ae(Wn).lastHeight=cr}function Bn(Wn){return qe(Wn).childNodes[0]}function Dn(){return 2*ue.width+1}function In(){return 2*ue.height+1}function Ln(Wn){return Wn+10+Dn()}function Mn(Wn){return Wn+10+In()}function Vn(Wn){return Wn*2+Dn()}function Yn(Wn){return Wn*2+In()}function Fn(Wn,Qn,cr){var jn=qe(Wn),Zn=At(Wn),nr=Ln(Qn),hr=Mn(cr),gr=Vn(Qn),or=Yn(cr);jn.scrollLeft=nr,jn.scrollTop=hr,Zn.scrollLeft=gr,Zn.scrollTop=or}function Xn(){var Wn=ae(bn).container;if(!Wn){Wn=document.createElement("div"),Wn.className=_e,Wn.style.cssText=$e(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),ae(bn).container=Wn,Fe(Wn),bn.appendChild(Wn);var Qn=function(){ae(bn).onRendered&&ae(bn).onRendered()};ze(Wn,"animationstart",Qn),ae(bn).onAnimationStart=Qn}return Wn}function sr(){function Wn(){var Mr=ae(bn).style;if(Mr.position==="static"){bn.style.setProperty("position","relative",_n.important?"important":"");var br=function(Cr,lr,Jn,rr){function $r(Fr){return Fr.replace(/[^-\d\.]/g,"")}var Ar=Jn[rr];Ar!=="auto"&&$r(Ar)!=="0"&&(Cr.warn("An element that is positioned static has style."+rr+"="+Ar+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+rr+" will be set to 0. Element: ",lr),lr.style[rr]=0)};br(z,bn,Mr,"top"),br(z,bn,Mr,"right"),br(z,bn,Mr,"bottom"),br(z,bn,Mr,"left")}}function Qn(Mr,br,Cr,lr){return Mr=Mr?Mr+"px":"0",br=br?br+"px":"0",Cr=Cr?Cr+"px":"0",lr=lr?lr+"px":"0",["left: "+Mr,"top: "+br,"right: "+lr,"bottom: "+Cr]}if(Cn("Injecting elements"),!ae(bn)){Cn("Aborting because element has been uninstalled");return}Wn();var cr=ae(bn).container;cr||(cr=Xn());var jn=ue.width,Zn=ue.height,nr=$e(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),hr=$e(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(Qn(-(1+jn),-(1+Zn),-Zn,-jn))),gr=$e(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),or=$e(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),wr=$e(["position: absolute","left: 0","top: 0"]),mr=$e(["position: absolute","width: 200%","height: 200%"]),Tr=document.createElement("div"),dr=document.createElement("div"),ir=document.createElement("div"),ur=document.createElement("div"),fr=document.createElement("div"),kr=document.createElement("div");Tr.dir="ltr",Tr.style.cssText=nr,Tr.className=_e,dr.className=_e,dr.style.cssText=hr,ir.style.cssText=gr,ur.style.cssText=wr,fr.style.cssText=or,kr.style.cssText=mr,ir.appendChild(ur),fr.appendChild(kr),dr.appendChild(ir),dr.appendChild(fr),Tr.appendChild(dr),cr.appendChild(Tr);function Dr(){var Mr=ae(bn);Mr&&Mr.onExpand?Mr.onExpand():Cn("Aborting expand scroll handler: element has been uninstalled")}function Lr(){var Mr=ae(bn);Mr&&Mr.onShrink?Mr.onShrink():Cn("Aborting shrink scroll handler: element has been uninstalled")}ze(ir,"scroll",Dr),ze(fr,"scroll",Lr),ae(bn).onExpandScroll=Dr,ae(bn).onShrinkScroll=Lr}function vr(){function Wn(gr,or,wr){var mr=Bn(gr),Tr=Ln(or),dr=Mn(wr);mr.style.setProperty("width",Tr+"px",_n.important?"important":""),mr.style.setProperty("height",dr+"px",_n.important?"important":"")}function Qn(gr){var or=bn.offsetWidth,wr=bn.offsetHeight,mr=or!==ae(bn).lastWidth||wr!==ae(bn).lastHeight;Cn("Storing current size",or,wr),Nn(bn,or,wr),oe.add(0,function(){if(mr){if(!ae(bn)){Cn("Aborting because element has been uninstalled");return}if(!cr()){Cn("Aborting because element container has not been initialized");return}if(_n.debug){var dr=bn.offsetWidth,ir=bn.offsetHeight;(dr!==or||ir!==wr)&&z.warn(le.get(bn),"Scroll: Size changed before updating detector elements.")}Wn(bn,or,wr)}}),oe.add(1,function(){if(!ae(bn)){Cn("Aborting because element has been uninstalled");return}if(!cr()){Cn("Aborting because element container has not been initialized");return}Fn(bn,or,wr)}),mr&&gr&&oe.add(2,function(){if(!ae(bn)){Cn("Aborting because element has been uninstalled");return}if(!cr()){Cn("Aborting because element container has not been initialized");return}gr()})}function cr(){return!!ae(bn).container}function jn(){function gr(){return ae(bn).lastNotifiedWidth===void 0}Cn("notifyListenersIfNeeded invoked");var or=ae(bn);if(gr()&&or.lastWidth===or.startSize.width&&or.lastHeight===or.startSize.height)return Cn("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(or.lastWidth===or.lastNotifiedWidth&&or.lastHeight===or.lastNotifiedHeight)return Cn("Not notifying: Size already notified");Cn("Current size not notified, notifying..."),or.lastNotifiedWidth=or.lastWidth,or.lastNotifiedHeight=or.lastHeight,forEach$1(ae(bn).listeners,function(wr){wr(bn)})}function Zn(){if(Cn("startanimation triggered."),$n(bn)){Cn("Ignoring since element is still unrendered...");return}Cn("Element rendered.");var gr=qe(bn),or=At(bn);(gr.scrollLeft===0||gr.scrollTop===0||or.scrollLeft===0||or.scrollTop===0)&&(Cn("Scrollbars out of sync. Updating detector elements..."),Qn(jn))}function nr(){if(Cn("Scroll detected."),$n(bn)){Cn("Scroll event fired while unrendered. Ignoring...");return}Qn(jn)}if(Cn("registerListenersAndPositionElements invoked."),!ae(bn)){Cn("Aborting because element has been uninstalled");return}ae(bn).onRendered=Zn,ae(bn).onExpand=nr,ae(bn).onShrink=nr;var hr=ae(bn).style;Wn(bn,hr.width,hr.height)}function ar(){if(Cn("finalizeDomMutation invoked."),!ae(bn)){Cn("Aborting because element has been uninstalled");return}var Wn=ae(bn).style;Nn(bn,Wn.width,Wn.height),Fn(bn,Wn.width,Wn.height)}function qn(){Sn(bn)}function Gn(){Cn("Installing..."),xn(),Tn(),oe.add(0,kn),oe.add(1,sr),oe.add(2,vr),oe.add(3,ar),oe.add(4,qn)}Cn("Making detectable..."),En(bn)?(Cn("Element is detached"),Xn(),Cn("Waiting until element is attached..."),ae(bn).onRendered=function(){Cn("Element is now attached"),Gn()}):Gn()}function vn(_n){var bn=ae(_n);bn&&(bn.onExpandScroll&&Ue(qe(_n),"scroll",bn.onExpandScroll),bn.onShrinkScroll&&Ue(At(_n),"scroll",bn.onShrinkScroll),bn.onAnimationStart&&Ue(bn.container,"animationstart",bn.onAnimationStart),bn.container&&_n.removeChild(bn.container))}return{makeDetectable:hn,addListener:Lt,uninstall:vn,initDocument:Ce}},forEach=collectionUtilsExports.forEach,elementUtilsMaker=elementUtils,listenerHandlerMaker=listenerHandler,idGeneratorMaker=idGenerator,idHandlerMaker=idHandler,reporterMaker=reporter,browserDetector=browserDetectorExports,batchProcessorMaker=batchProcessor,stateHandler=stateHandler$1,objectStrategyMaker=object,scrollStrategyMaker=scroll;function isCollection($){return Array.isArray($)||$.length!==void 0}function toArray($){if(Array.isArray($))return $;var z=[];return forEach($,function(oe){z.push(oe)}),z}function isElement($){return $&&$.nodeType===1}var elementResizeDetector=function($){$=$||{};var z;if($.idHandler)z={get:function(hn){return $.idHandler.get(hn,!0)},set:$.idHandler.set};else{var oe=idGeneratorMaker(),ae=idHandlerMaker({idGenerator:oe,stateHandler});z=ae}var le=$.reporter;if(!le){var ue=le===!1;le=reporterMaker(ue)}var pe=getOption($,"batchProcessor",batchProcessorMaker({reporter:le})),_e={};_e.callOnAdd=!!getOption($,"callOnAdd",!0),_e.debug=!!getOption($,"debug",!1);var Ce=listenerHandlerMaker(z),$e=elementUtilsMaker({stateHandler}),xe,Ie=getOption($,"strategy","object"),Fe=getOption($,"important",!1),ze={reporter:le,batchProcessor:pe,stateHandler,idHandler:z,important:Fe};if(Ie==="scroll"&&(browserDetector.isLegacyOpera()?(le.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),Ie="object"):browserDetector.isIE(9)&&(le.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),Ie="object")),Ie==="scroll")xe=scrollStrategyMaker(ze);else if(Ie==="object")xe=objectStrategyMaker(ze);else throw new Error("Invalid strategy name: "+Ie);var Ue={};function qe(hn,vn,_n){function bn(Tn){var xn=Ce.get(Tn);forEach(xn,function(Nn){Nn(Tn)})}function Sn(Tn,xn,kn){Ce.add(xn,kn),Tn&&kn(xn)}if(_n||(_n=vn,vn=hn,hn={}),!vn)throw new Error("At least one element required.");if(!_n)throw new Error("Listener required.");if(isElement(vn))vn=[vn];else if(isCollection(vn))vn=toArray(vn);else return le.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var Cn=0,En=getOption(hn,"callOnAdd",_e.callOnAdd),$n=getOption(hn,"onReady",function(){}),wn=getOption(hn,"debug",_e.debug);forEach(vn,function(xn){stateHandler.getState(xn)||(stateHandler.initState(xn),z.set(xn));var kn=z.get(xn);if(wn&&le.log("Attaching listener to element",kn,xn),!$e.isDetectable(xn)){if(wn&&le.log(kn,"Not detectable."),$e.isBusy(xn)){wn&&le.log(kn,"System busy making it detectable"),Sn(En,xn,_n),Ue[kn]=Ue[kn]||[],Ue[kn].push(function(){Cn++,Cn===vn.length&&$n()});return}return wn&&le.log(kn,"Making detectable..."),$e.markBusy(xn,!0),xe.makeDetectable({debug:wn,important:Fe},xn,function(Bn){if(wn&&le.log(kn,"onElementDetectable"),stateHandler.getState(Bn)){$e.markAsDetectable(Bn),$e.markBusy(Bn,!1),xe.addListener(Bn,bn),Sn(En,Bn,_n);var Dn=stateHandler.getState(Bn);if(Dn&&Dn.startSize){var In=Bn.offsetWidth,Ln=Bn.offsetHeight;(Dn.startSize.width!==In||Dn.startSize.height!==Ln)&&bn(Bn)}Ue[kn]&&forEach(Ue[kn],function(Mn){Mn()})}else wn&&le.log(kn,"Element uninstalled before being detectable.");delete Ue[kn],Cn++,Cn===vn.length&&$n()})}wn&&le.log(kn,"Already detecable, adding listener."),Sn(En,xn,_n),Cn++}),Cn===vn.length&&$n()}function At(hn){if(!hn)return le.error("At least one element is required.");if(isElement(hn))hn=[hn];else if(isCollection(hn))hn=toArray(hn);else return le.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(hn,function(vn){Ce.removeAllListeners(vn),xe.uninstall(vn),stateHandler.cleanState(vn)})}function Lt(hn){xe.initDocument&&xe.initDocument(hn)}return{listenTo:qe,removeListener:Ce.removeListener,removeAllListeners:Ce.removeAllListeners,uninstall:At,initDocument:Lt}};function getOption($,z,oe){var ae=$[z];return ae==null&&oe!==void 0?oe:ae}const elementResizeDetectorMaker=getDefaultExportFromCjs(elementResizeDetector);function mitt($){return{all:$=$||new Map,on:function(z,oe){var ae=$.get(z);ae?ae.push(oe):$.set(z,[oe])},off:function(z,oe){var ae=$.get(z);ae&&(oe?ae.splice(ae.indexOf(oe)>>>0,1):$.set(z,[]))},emit:function(z,oe){var ae=$.get(z);ae&&ae.slice().map(function(le){le(oe)}),(ae=$.get("*"))&&ae.slice().map(function(le){le(z,oe)})}}}const emitter=mitt(),erd=elementResizeDetectorMaker({strategy:"scroll"}),resize={mounted($,z,oe){erd.listenTo($,ae=>{const le=ae.offsetWidth,ue=ae.offsetHeight;z!=null&&z.instance?emitter.emit("resize",{detail:{width:le,height:ue}}):oe.el.dispatchEvent(new CustomEvent("resize",{detail:{width:le,height:ue}}))})},unmounted($){erd.uninstall($)}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,resize},Symbol.toStringTag,{value:"Module"})),defaultIconDimensions$1=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations$1=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps$1=Object.freeze({...defaultIconDimensions$1,...defaultIconTransformations$1});Object.freeze({...defaultIconProps$1,body:"",hidden:!1});({...defaultIconDimensions$1});const defaultIconSizeCustomisations$1=Object.freeze({width:null,height:null}),defaultIconCustomisations$1=Object.freeze({...defaultIconSizeCustomisations$1,...defaultIconTransformations$1});function mergeCustomisations$1($,z){const oe={...$};for(const ae in z){const le=z[ae],ue=typeof le;ae in defaultIconSizeCustomisations$1?(le===null||le&&(ue==="string"||ue==="number"))&&(oe[ae]=le):ue===typeof oe[ae]&&(oe[ae]=ae==="rotate"?le%4:le)}return oe}const separator$1=/[\s,]+/;function flipFromString$1($,z){z.split(separator$1).forEach(oe=>{switch(oe.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString$1($,z=0){const oe=$.replace(/^-?[0-9.]*/,"");function ae(le){for(;le<0;)le+=4;return le%4}if(oe===""){const le=parseInt($);return isNaN(le)?0:ae(le)}else if(oe!==$){let le=0;switch(oe){case"%":le=25;break;case"deg":le=90}if(le){let ue=parseFloat($.slice(0,$.length-oe.length));return isNaN(ue)?0:(ue=ue/le,ue%1===0?ae(ue):0)}}return z}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1($,z,oe){if(z===1)return $;if(oe=oe||100,typeof $=="number")return Math.ceil($*z*oe)/oe;if(typeof $!="string")return $;const ae=$.split(unitsSplit$1);if(ae===null||!ae.length)return $;const le=[];let ue=ae.shift(),pe=unitsTest$1.test(ue);for(;;){if(pe){const _e=parseFloat(ue);isNaN(_e)?le.push(ue):le.push(Math.ceil(_e*z*oe)/oe)}else le.push(ue);if(ue=ae.shift(),ue===void 0)return le.join("");pe=!pe}}const isUnsetKeyword$1=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG$1($,z){const oe={...defaultIconProps$1,...$},ae={...defaultIconCustomisations$1,...z},le={left:oe.left,top:oe.top,width:oe.width,height:oe.height};let ue=oe.body;[oe,ae].forEach(Ue=>{const qe=[],At=Ue.hFlip,Lt=Ue.vFlip;let hn=Ue.rotate;At?Lt?hn+=2:(qe.push("translate("+(le.width+le.left).toString()+" "+(0-le.top).toString()+")"),qe.push("scale(-1 1)"),le.top=le.left=0):Lt&&(qe.push("translate("+(0-le.left).toString()+" "+(le.height+le.top).toString()+")"),qe.push("scale(1 -1)"),le.top=le.left=0);let vn;switch(hn<0&&(hn-=Math.floor(hn/4)*4),hn=hn%4,hn){case 1:vn=le.height/2+le.top,qe.unshift("rotate(90 "+vn.toString()+" "+vn.toString()+")");break;case 2:qe.unshift("rotate(180 "+(le.width/2+le.left).toString()+" "+(le.height/2+le.top).toString()+")");break;case 3:vn=le.width/2+le.left,qe.unshift("rotate(-90 "+vn.toString()+" "+vn.toString()+")");break}hn%2===1&&(le.left!==le.top&&(vn=le.left,le.left=le.top,le.top=vn),le.width!==le.height&&(vn=le.width,le.width=le.height,le.height=vn)),qe.length&&(ue='<g transform="'+qe.join(" ")+'">'+ue+"</g>")});const pe=ae.width,_e=ae.height,Ce=le.width,$e=le.height;let xe,Ie;pe===null?(Ie=_e===null?"1em":_e==="auto"?$e:_e,xe=calculateSize$1(Ie,Ce/$e)):(xe=pe==="auto"?Ce:pe,Ie=_e===null?calculateSize$1(xe,$e/Ce):_e==="auto"?$e:_e);const Fe={},ze=(Ue,qe)=>{isUnsetKeyword$1(qe)||(Fe[Ue]=qe.toString())};return ze("width",xe),ze("height",Ie),Fe.viewBox=le.left.toString()+" "+le.top.toString()+" "+Ce.toString()+" "+$e.toString(),{attributes:Fe,body:ue}}const regex$1=/\sid="(\S+)"/g,randomPrefix$1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter$1=0;function replaceIDs$1($,z=randomPrefix$1){const oe=[];let ae;for(;ae=regex$1.exec($);)oe.push(ae[1]);if(!oe.length)return $;const le="suffix"+(Math.random()*16777216|Date.now()).toString(16);return oe.forEach(ue=>{const pe=typeof z=="function"?z(ue):z+(counter$1++).toString(),_e=ue.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+_e+')([")]|\\.[a-z])',"g"),"$1"+pe+le+"$3")}),$=$.replace(new RegExp(le,"g"),""),$}function iconToHTML$1($,z){let oe=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ae in z)oe+=" "+ae+'="'+z[ae]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+oe+">"+$+"</svg>"}function encodeSVGforURL$1($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData$1($){return"data:image/svg+xml,"+encodeSVGforURL$1($)}function svgToURL$1($){return'url("'+svgToData$1($)+'")'}const defaultExtendedIconCustomisations$1={...defaultIconCustomisations$1,inline:!1},svgDefaults$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps$1={display:"inline-block"},monotoneProps$1={backgroundColor:"currentColor"},coloredProps$1={backgroundColor:"transparent"},propsToAdd$1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo$1={webkitMask:monotoneProps$1,mask:monotoneProps$1,background:coloredProps$1};for(const $ in propsToAddTo$1){const z=propsToAddTo$1[$];for(const oe in propsToAdd$1)z[$+oe]=propsToAdd$1[oe]}const customisationAliases$1={};["horizontal","vertical"].forEach($=>{const z=$.slice(0,1)+"Flip";customisationAliases$1[$+"-flip"]=z,customisationAliases$1[$.slice(0,1)+"-flip"]=z,customisationAliases$1[$+"Flip"]=z});function fixSize$1($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render$1=($,z)=>{const oe=mergeCustomisations$1(defaultExtendedIconCustomisations$1,z),ae={...svgDefaults$1},le=z.mode||"svg",ue={},pe=z.style,_e=typeof pe=="object"&&!(pe instanceof Array)?pe:{};for(let qe in z){const At=z[qe];if(At!==void 0)switch(qe){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":oe[qe]=At===!0||At==="true"||At===1;break;case"flip":typeof At=="string"&&flipFromString$1(oe,At);break;case"color":ue.color=At;break;case"rotate":typeof At=="string"?oe[qe]=rotateFromString$1(At):typeof At=="number"&&(oe[qe]=At);break;case"ariaHidden":case"aria-hidden":At!==!0&&At!=="true"&&delete ae["aria-hidden"];break;default:{const Lt=customisationAliases$1[qe];Lt?(At===!0||At==="true"||At===1)&&(oe[Lt]=!0):defaultExtendedIconCustomisations$1[qe]===void 0&&(ae[qe]=At)}}}const Ce=iconToSVG$1($,oe),$e=Ce.attributes;if(oe.inline&&(ue.verticalAlign="-0.125em"),le==="svg"){ae.style={...ue,..._e},Object.assign(ae,$e);let qe=0,At=z.id;return typeof At=="string"&&(At=At.replace(/-/g,"_")),ae.innerHTML=replaceIDs$1(Ce.body,At?()=>At+"ID"+qe++:"iconifyVue"),h$3("svg",ae)}const{body:xe,width:Ie,height:Fe}=$,ze=le==="mask"||(le==="bg"?!1:xe.indexOf("currentColor")!==-1),Ue=iconToHTML$1(xe,{...$e,width:Ie+"",height:Fe+""});return ae.style={...ue,"--svg":svgToURL$1(Ue),width:fixSize$1($e.width),height:fixSize$1($e.height),...commonProps$1,...ze?monotoneProps$1:coloredProps$1,..._e},h$3("span",ae)},storage$1=Object.create(null);function addIcon$1($,z){storage$1[$]=z}const Icon$1=defineComponent({inheritAttrs:!1,render(){const $=this.$attrs,z=$.icon,oe=typeof z=="string"?storage$1[z]:typeof z=="object"?z:null;return oe===null||typeof oe!="object"||typeof oe.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...oe},$)}}),iconifyIconOffline=defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const $=this.$attrs;return h$3(Icon$1,{icon:this.icon,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=($,z,oe,ae="")=>{const le=$.split(":");if($.slice(0,1)==="@"){if(le.length<2||le.length>3)return null;ae=le.shift().slice(1)}if(le.length>3||!le.length)return null;if(le.length>1){const _e=le.pop(),Ce=le.pop(),$e={provider:le.length>0?le[0]:ae,prefix:Ce,name:_e};return z&&!validateIconName($e)?null:$e}const ue=le[0],pe=ue.split("-");if(pe.length>1){const _e={provider:ae,prefix:pe.shift(),name:pe.join("-")};return z&&!validateIconName(_e)?null:_e}if(oe&&ae===""){const _e={provider:ae,prefix:"",name:ue};return z&&!validateIconName(_e,oe)?null:_e}return null},validateIconName=($,z)=>$?!!(($.provider===""||$.provider.match(matchIconName))&&(z&&$.prefix===""||$.prefix.match(matchIconName))&&$.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations($,z){const oe={};!$.hFlip!=!z.hFlip&&(oe.hFlip=!0),!$.vFlip!=!z.vFlip&&(oe.vFlip=!0);const ae=(($.rotate||0)+(z.rotate||0))%4;return ae&&(oe.rotate=ae),oe}function mergeIconData($,z){const oe=mergeIconTransformations($,z);for(const ae in defaultExtendedIconProps)ae in defaultIconTransformations?ae in $&&!(ae in oe)&&(oe[ae]=defaultIconTransformations[ae]):ae in z?oe[ae]=z[ae]:ae in $&&(oe[ae]=$[ae]);return oe}function getIconsTree($,z){const oe=$.icons,ae=$.aliases||Object.create(null),le=Object.create(null);function ue(pe){if(oe[pe])return le[pe]=[];if(!(pe in le)){le[pe]=null;const _e=ae[pe]&&ae[pe].parent,Ce=_e&&ue(_e);Ce&&(le[pe]=[_e].concat(Ce))}return le[pe]}return(z||Object.keys(oe).concat(Object.keys(ae))).forEach(ue),le}function internalGetIconData($,z,oe){const ae=$.icons,le=$.aliases||Object.create(null);let ue={};function pe(_e){ue=mergeIconData(ae[_e]||le[_e],ue)}return pe(z),oe.forEach(pe),mergeIconData($,ue)}function parseIconSet($,z){const oe=[];if(typeof $!="object"||typeof $.icons!="object")return oe;$.not_found instanceof Array&&$.not_found.forEach(le=>{z(le,null),oe.push(le)});const ae=getIconsTree($);for(const le in ae){const ue=ae[le];ue&&(z(le,internalGetIconData($,le,ue)),oe.push(le))}return oe}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps($,z){for(const oe in z)if(oe in $&&typeof $[oe]!=typeof z[oe])return!1;return!0}function quicklyValidateIconSet($){if(typeof $!="object"||$===null)return null;const z=$;if(typeof z.prefix!="string"||!$.icons||typeof $.icons!="object"||!checkOptionalProps($,optionalPropertyDefaults))return null;const oe=z.icons;for(const le in oe){const ue=oe[le];if(!le.match(matchIconName)||typeof ue.body!="string"||!checkOptionalProps(ue,defaultExtendedIconProps))return null}const ae=z.aliases||Object.create(null);for(const le in ae){const ue=ae[le],pe=ue.parent;if(!le.match(matchIconName)||typeof pe!="string"||!oe[pe]&&!ae[pe]||!checkOptionalProps(ue,defaultExtendedIconProps))return null}return z}const dataStorage=Object.create(null);function newStorage($,z){return{provider:$,prefix:z,icons:Object.create(null),missing:new Set}}function getStorage($,z){const oe=dataStorage[$]||(dataStorage[$]=Object.create(null));return oe[z]||(oe[z]=newStorage($,z))}function addIconSet($,z){return quicklyValidateIconSet(z)?parseIconSet(z,(oe,ae)=>{ae?$.icons[oe]=ae:$.missing.add(oe)}):[]}function addIconToStorage($,z,oe){try{if(typeof oe.body=="string")return $.icons[z]={...oe},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames($){return typeof $=="boolean"&&(simpleNames=$),simpleNames}function getIconData($){const z=typeof $=="string"?stringToIcon($,!0,simpleNames):$;if(z){const oe=getStorage(z.provider,z.prefix),ae=z.name;return oe.icons[ae]||(oe.missing.has(ae)?null:void 0)}}function addIcon($,z){const oe=stringToIcon($,!0,simpleNames);if(!oe)return!1;const ae=getStorage(oe.provider,oe.prefix);return addIconToStorage(ae,oe.name,z)}function addCollection($,z){if(typeof $!="object")return!1;if(typeof z!="string"&&(z=$.provider||""),simpleNames&&!z&&!$.prefix){let le=!1;return quicklyValidateIconSet($)&&($.prefix="",parseIconSet($,(ue,pe)=>{pe&&addIcon(ue,pe)&&(le=!0)})),le}const oe=$.prefix;if(!validateIconName({provider:z,prefix:oe,name:"a"}))return!1;const ae=getStorage(z,oe);return!!addIconSet(ae,$)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize($,z,oe){if(z===1)return $;if(oe=oe||100,typeof $=="number")return Math.ceil($*z*oe)/oe;if(typeof $!="string")return $;const ae=$.split(unitsSplit);if(ae===null||!ae.length)return $;const le=[];let ue=ae.shift(),pe=unitsTest.test(ue);for(;;){if(pe){const _e=parseFloat(ue);isNaN(_e)?le.push(ue):le.push(Math.ceil(_e*z*oe)/oe)}else le.push(ue);if(ue=ae.shift(),ue===void 0)return le.join("");pe=!pe}}const isUnsetKeyword=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG($,z){const oe={...defaultIconProps,...$},ae={...defaultIconCustomisations,...z},le={left:oe.left,top:oe.top,width:oe.width,height:oe.height};let ue=oe.body;[oe,ae].forEach(Ue=>{const qe=[],At=Ue.hFlip,Lt=Ue.vFlip;let hn=Ue.rotate;At?Lt?hn+=2:(qe.push("translate("+(le.width+le.left).toString()+" "+(0-le.top).toString()+")"),qe.push("scale(-1 1)"),le.top=le.left=0):Lt&&(qe.push("translate("+(0-le.left).toString()+" "+(le.height+le.top).toString()+")"),qe.push("scale(1 -1)"),le.top=le.left=0);let vn;switch(hn<0&&(hn-=Math.floor(hn/4)*4),hn=hn%4,hn){case 1:vn=le.height/2+le.top,qe.unshift("rotate(90 "+vn.toString()+" "+vn.toString()+")");break;case 2:qe.unshift("rotate(180 "+(le.width/2+le.left).toString()+" "+(le.height/2+le.top).toString()+")");break;case 3:vn=le.width/2+le.left,qe.unshift("rotate(-90 "+vn.toString()+" "+vn.toString()+")");break}hn%2===1&&(le.left!==le.top&&(vn=le.left,le.left=le.top,le.top=vn),le.width!==le.height&&(vn=le.width,le.width=le.height,le.height=vn)),qe.length&&(ue='<g transform="'+qe.join(" ")+'">'+ue+"</g>")});const pe=ae.width,_e=ae.height,Ce=le.width,$e=le.height;let xe,Ie;pe===null?(Ie=_e===null?"1em":_e==="auto"?$e:_e,xe=calculateSize(Ie,Ce/$e)):(xe=pe==="auto"?Ce:pe,Ie=_e===null?calculateSize(xe,$e/Ce):_e==="auto"?$e:_e);const Fe={},ze=(Ue,qe)=>{isUnsetKeyword(qe)||(Fe[Ue]=qe.toString())};return ze("width",xe),ze("height",Ie),Fe.viewBox=le.left.toString()+" "+le.top.toString()+" "+Ce.toString()+" "+$e.toString(),{attributes:Fe,body:ue}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs($,z=randomPrefix){const oe=[];let ae;for(;ae=regex.exec($);)oe.push(ae[1]);if(!oe.length)return $;const le="suffix"+(Math.random()*16777216|Date.now()).toString(16);return oe.forEach(ue=>{const pe=typeof z=="function"?z(ue):z+(counter++).toString(),_e=ue.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+_e+')([")]|\\.[a-z])',"g"),"$1"+pe+le+"$3")}),$=$.replace(new RegExp(le,"g"),""),$}const storage=Object.create(null);function setAPIModule($,z){storage[$]=z}function getAPIModule($){return storage[$]||storage[""]}function createAPIConfig($){let z;if(typeof $.resources=="string")z=[$.resources];else if(z=$.resources,!(z instanceof Array)||!z.length)return null;return{resources:z,path:$.path||"/",maxURL:$.maxURL||500,rotate:$.rotate||750,timeout:$.timeout||5e3,random:$.random===!0,index:$.index||0,dataAfterTimeout:$.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider($,z){const oe=createAPIConfig(z);return oe===null?!1:(configStorage[$]=oe,!0)}function getAPIConfig($){return configStorage[$]}const detectFetch=()=>{let $;try{if($=fetch,typeof $=="function")return $}catch{}};let fetchModule=detectFetch();function calculateMaxLength($,z){const oe=getAPIConfig($);if(!oe)return 0;let ae;if(!oe.maxURL)ae=0;else{let le=0;oe.resources.forEach(pe=>{le=Math.max(le,pe.length)});const ue=z+".json?icons=";ae=oe.maxURL-le-oe.path.length-ue.length}return ae}function shouldAbort($){return $===404}const prepare=($,z,oe)=>{const ae=[],le=calculateMaxLength($,z),ue="icons";let pe={type:ue,provider:$,prefix:z,icons:[]},_e=0;return oe.forEach((Ce,$e)=>{_e+=Ce.length+1,_e>=le&&$e>0&&(ae.push(pe),pe={type:ue,provider:$,prefix:z,icons:[]},_e=Ce.length),pe.icons.push(Ce)}),ae.push(pe),ae};function getPath($){if(typeof $=="string"){const z=getAPIConfig($);if(z)return z.path}return"/"}const send=($,z,oe)=>{if(!fetchModule){oe("abort",424);return}let ae=getPath(z.provider);switch(z.type){case"icons":{const ue=z.prefix,_e=z.icons.join(","),Ce=new URLSearchParams({icons:_e});ae+=ue+".json?"+Ce.toString();break}case"custom":{const ue=z.uri;ae+=ue.slice(0,1)==="/"?ue.slice(1):ue;break}default:oe("abort",400);return}let le=503;fetchModule($+ae).then(ue=>{const pe=ue.status;if(pe!==200){setTimeout(()=>{oe(shouldAbort(pe)?"abort":"next",pe)});return}return le=501,ue.json()}).then(ue=>{if(typeof ue!="object"||ue===null){setTimeout(()=>{ue===404?oe("abort",ue):oe("next",le)});return}setTimeout(()=>{oe("success",ue)})}).catch(()=>{oe("next",le)})},fetchAPIModule={prepare,send};function sortIcons($){const z={loaded:[],missing:[],pending:[]},oe=Object.create(null);$.sort((le,ue)=>le.provider!==ue.provider?le.provider.localeCompare(ue.provider):le.prefix!==ue.prefix?le.prefix.localeCompare(ue.prefix):le.name.localeCompare(ue.name));let ae={provider:"",prefix:"",name:""};return $.forEach(le=>{if(ae.name===le.name&&ae.prefix===le.prefix&&ae.provider===le.provider)return;ae=le;const ue=le.provider,pe=le.prefix,_e=le.name,Ce=oe[ue]||(oe[ue]=Object.create(null)),$e=Ce[pe]||(Ce[pe]=getStorage(ue,pe));let xe;_e in $e.icons?xe=z.loaded:pe===""||$e.missing.has(_e)?xe=z.missing:xe=z.pending;const Ie={provider:ue,prefix:pe,name:_e};xe.push(Ie)}),z}function removeCallback($,z){$.forEach(oe=>{const ae=oe.loaderCallbacks;ae&&(oe.loaderCallbacks=ae.filter(le=>le.id!==z))})}function updateCallbacks($){$.pendingCallbacksFlag||($.pendingCallbacksFlag=!0,setTimeout(()=>{$.pendingCallbacksFlag=!1;const z=$.loaderCallbacks?$.loaderCallbacks.slice(0):[];if(!z.length)return;let oe=!1;const ae=$.provider,le=$.prefix;z.forEach(ue=>{const pe=ue.icons,_e=pe.pending.length;pe.pending=pe.pending.filter(Ce=>{if(Ce.prefix!==le)return!0;const $e=Ce.name;if($.icons[$e])pe.loaded.push({provider:ae,prefix:le,name:$e});else if($.missing.has($e))pe.missing.push({provider:ae,prefix:le,name:$e});else return oe=!0,!0;return!1}),pe.pending.length!==_e&&(oe||removeCallback([$],ue.id),ue.callback(pe.loaded.slice(0),pe.missing.slice(0),pe.pending.slice(0),ue.abort))})}))}let idCounter=0;function storeCallback($,z,oe){const ae=idCounter++,le=removeCallback.bind(null,oe,ae);if(!z.pending.length)return le;const ue={id:ae,icons:z,callback:$,abort:le};return oe.forEach(pe=>{(pe.loaderCallbacks||(pe.loaderCallbacks=[])).push(ue)}),le}function listToIcons($,z=!0,oe=!1){const ae=[];return $.forEach(le=>{const ue=typeof le=="string"?stringToIcon(le,z,oe):le;ue&&ae.push(ue)}),ae}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery($,z,oe,ae){const le=$.resources.length,ue=$.random?Math.floor(Math.random()*le):$.index;let pe;if($.random){let Sn=$.resources.slice(0);for(pe=[];Sn.length>1;){const Cn=Math.floor(Math.random()*Sn.length);pe.push(Sn[Cn]),Sn=Sn.slice(0,Cn).concat(Sn.slice(Cn+1))}pe=pe.concat(Sn)}else pe=$.resources.slice(ue).concat($.resources.slice(0,ue));const _e=Date.now();let Ce="pending",$e=0,xe,Ie=null,Fe=[],ze=[];typeof ae=="function"&&ze.push(ae);function Ue(){Ie&&(clearTimeout(Ie),Ie=null)}function qe(){Ce==="pending"&&(Ce="aborted"),Ue(),Fe.forEach(Sn=>{Sn.status==="pending"&&(Sn.status="aborted")}),Fe=[]}function At(Sn,Cn){Cn&&(ze=[]),typeof Sn=="function"&&ze.push(Sn)}function Lt(){return{startTime:_e,payload:z,status:Ce,queriesSent:$e,queriesPending:Fe.length,subscribe:At,abort:qe}}function hn(){Ce="failed",ze.forEach(Sn=>{Sn(void 0,xe)})}function vn(){Fe.forEach(Sn=>{Sn.status==="pending"&&(Sn.status="aborted")}),Fe=[]}function _n(Sn,Cn,En){const $n=Cn!=="success";switch(Fe=Fe.filter(wn=>wn!==Sn),Ce){case"pending":break;case"failed":if($n||!$.dataAfterTimeout)return;break;default:return}if(Cn==="abort"){xe=En,hn();return}if($n){xe=En,Fe.length||(pe.length?bn():hn());return}if(Ue(),vn(),!$.random){const wn=$.resources.indexOf(Sn.resource);wn!==-1&&wn!==$.index&&($.index=wn)}Ce="completed",ze.forEach(wn=>{wn(En)})}function bn(){if(Ce!=="pending")return;Ue();const Sn=pe.shift();if(Sn===void 0){if(Fe.length){Ie=setTimeout(()=>{Ue(),Ce==="pending"&&(vn(),hn())},$.timeout);return}hn();return}const Cn={status:"pending",resource:Sn,callback:(En,$n)=>{_n(Cn,En,$n)}};Fe.push(Cn),$e++,Ie=setTimeout(bn,$.rotate),oe(Sn,z,Cn.callback)}return setTimeout(bn),Lt}function initRedundancy($){const z={...defaultConfig,...$};let oe=[];function ae(){oe=oe.filter(_e=>_e().status==="pending")}function le(_e,Ce,$e){const xe=sendQuery(z,_e,Ce,(Ie,Fe)=>{ae(),$e&&$e(Ie,Fe)});return oe.push(xe),xe}function ue(_e){return oe.find(Ce=>_e(Ce))||null}return{query:le,find:ue,setIndex:_e=>{z.index=_e},getIndex:()=>z.index,cleanup:ae}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache($){if(!redundancyCache[$]){const z=getAPIConfig($);if(!z)return;const oe=initRedundancy(z),ae={config:z,redundancy:oe};redundancyCache[$]=ae}return redundancyCache[$]}function sendAPIQuery($,z,oe){let ae,le;if(typeof $=="string"){const ue=getAPIModule($);if(!ue)return oe(void 0,424),emptyCallback$1;le=ue.send;const pe=getRedundancyCache($);pe&&(ae=pe.redundancy)}else{const ue=createAPIConfig($);if(ue){ae=initRedundancy(ue);const pe=$.resources?$.resources[0]:"",_e=getAPIModule(pe);_e&&(le=_e.send)}}return!ae||!le?(oe(void 0,424),emptyCallback$1):ae.query(z,le,oe)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem($,z){try{return $.getItem(z)}catch{}}function setStoredItem($,z,oe){try{return $.setItem(z,oe),!0}catch{}}function removeStoredItem($,z){try{$.removeItem(z)}catch{}}function setBrowserStorageItemsCount($,z){return setStoredItem($,browserCacheCountKey,z.toString())}function getBrowserStorageItemsCount($){return parseInt(getStoredItem($,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus($){browserStorageStatus=$}let _window=typeof window>"u"?{}:window;function getBrowserStorage($){const z=$+"Storage";try{if(_window&&_window[z]&&typeof _window[z].length=="number")return _window[z]}catch{}browserStorageConfig[$]=!1}function iterateBrowserStorage($,z){const oe=getBrowserStorage($);if(!oe)return;const ae=getStoredItem(oe,browserCacheVersionKey);if(ae!==browserCacheVersion){if(ae){const _e=getBrowserStorageItemsCount(oe);for(let Ce=0;Ce<_e;Ce++)removeStoredItem(oe,browserCachePrefix+Ce.toString())}setStoredItem(oe,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(oe,0);return}const le=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,ue=_e=>{const Ce=browserCachePrefix+_e.toString(),$e=getStoredItem(oe,Ce);if(typeof $e=="string"){try{const xe=JSON.parse($e);if(typeof xe=="object"&&typeof xe.cached=="number"&&xe.cached>le&&typeof xe.provider=="string"&&typeof xe.data=="object"&&typeof xe.data.prefix=="string"&&z(xe,_e))return!0}catch{}removeStoredItem(oe,Ce)}};let pe=getBrowserStorageItemsCount(oe);for(let _e=pe-1;_e>=0;_e--)ue(_e)||(_e===pe-1?(pe--,setBrowserStorageItemsCount(oe,pe)):browserStorageEmptyItems[$].add(_e))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const $ in browserStorageConfig)iterateBrowserStorage($,z=>{const oe=z.data,ae=z.provider,le=oe.prefix,ue=getStorage(ae,le);if(!addIconSet(ue,oe).length)return!1;const pe=oe.lastModified||-1;return ue.lastModifiedCached=ue.lastModifiedCached?Math.min(ue.lastModifiedCached,pe):pe,!0})}}function updateLastModified($,z){const oe=$.lastModifiedCached;if(oe&&oe>=z)return oe===z;if($.lastModifiedCached=z,oe)for(const ae in browserStorageConfig)iterateBrowserStorage(ae,le=>{const ue=le.data;return le.provider!==$.provider||ue.prefix!==$.prefix||ue.lastModified===z});return!0}function storeInBrowserStorage($,z){browserStorageStatus||initBrowserStorage();function oe(ae){let le;if(!browserStorageConfig[ae]||!(le=getBrowserStorage(ae)))return;const ue=browserStorageEmptyItems[ae];let pe;if(ue.size)ue.delete(pe=Array.from(ue).shift());else if(pe=getBrowserStorageItemsCount(le),!setBrowserStorageItemsCount(le,pe+1))return;const _e={cached:Math.floor(Date.now()/browserStorageHour),provider:$.provider,data:z};return setStoredItem(le,browserCachePrefix+pe.toString(),JSON.stringify(_e))}z.lastModified&&!updateLastModified($,z.lastModified)||Object.keys(z.icons).length&&(z.not_found&&(z=Object.assign({},z),delete z.not_found),oe("local")||oe("session"))}function emptyCallback(){}function loadedNewIcons($){$.iconsLoaderFlag||($.iconsLoaderFlag=!0,setTimeout(()=>{$.iconsLoaderFlag=!1,updateCallbacks($)}))}function loadNewIcons($,z){$.iconsToLoad?$.iconsToLoad=$.iconsToLoad.concat(z).sort():$.iconsToLoad=z,$.iconsQueueFlag||($.iconsQueueFlag=!0,setTimeout(()=>{$.iconsQueueFlag=!1;const{provider:oe,prefix:ae}=$,le=$.iconsToLoad;delete $.iconsToLoad;let ue;if(!le||!(ue=getAPIModule(oe)))return;ue.prepare(oe,ae,le).forEach(_e=>{sendAPIQuery(oe,_e,Ce=>{if(typeof Ce!="object")_e.icons.forEach($e=>{$.missing.add($e)});else try{const $e=addIconSet($,Ce);if(!$e.length)return;const xe=$.pendingIcons;xe&&$e.forEach(Ie=>{xe.delete(Ie)}),storeInBrowserStorage($,Ce)}catch($e){console.error($e)}loadedNewIcons($)})})}))}const loadIcons=($,z)=>{const oe=listToIcons($,!0,allowSimpleNames()),ae=sortIcons(oe);if(!ae.pending.length){let Ce=!0;return z&&setTimeout(()=>{Ce&&z(ae.loaded,ae.missing,ae.pending,emptyCallback)}),()=>{Ce=!1}}const le=Object.create(null),ue=[];let pe,_e;return ae.pending.forEach(Ce=>{const{provider:$e,prefix:xe}=Ce;if(xe===_e&&$e===pe)return;pe=$e,_e=xe,ue.push(getStorage($e,xe));const Ie=le[$e]||(le[$e]=Object.create(null));Ie[xe]||(Ie[xe]=[])}),ae.pending.forEach(Ce=>{const{provider:$e,prefix:xe,name:Ie}=Ce,Fe=getStorage($e,xe),ze=Fe.pendingIcons||(Fe.pendingIcons=new Set);ze.has(Ie)||(ze.add(Ie),le[$e][xe].push(Ie))}),ue.forEach(Ce=>{const{provider:$e,prefix:xe}=Ce;le[$e][xe].length&&loadNewIcons(Ce,le[$e][xe])}),z?storeCallback(z,ae,ue):emptyCallback};function mergeCustomisations($,z){const oe={...$};for(const ae in z){const le=z[ae],ue=typeof le;ae in defaultIconSizeCustomisations?(le===null||le&&(ue==="string"||ue==="number"))&&(oe[ae]=le):ue===typeof oe[ae]&&(oe[ae]=ae==="rotate"?le%4:le)}return oe}const separator=/[\s,]+/;function flipFromString($,z){z.split(separator).forEach(oe=>{switch(oe.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString($,z=0){const oe=$.replace(/^-?[0-9.]*/,"");function ae(le){for(;le<0;)le+=4;return le%4}if(oe===""){const le=parseInt($);return isNaN(le)?0:ae(le)}else if(oe!==$){let le=0;switch(oe){case"%":le=25;break;case"deg":le=90}if(le){let ue=parseFloat($.slice(0,$.length-oe.length));return isNaN(ue)?0:(ue=ue/le,ue%1===0?ae(ue):0)}}return z}function iconToHTML($,z){let oe=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ae in z)oe+=" "+ae+'="'+z[ae]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+oe+">"+$+"</svg>"}function encodeSVGforURL($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData($){return"data:image/svg+xml,"+encodeSVGforURL($)}function svgToURL($){return'url("'+svgToData($)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const $ in propsToAddTo){const z=propsToAddTo[$];for(const oe in propsToAdd)z[$+oe]=propsToAdd[oe]}const customisationAliases={};["horizontal","vertical"].forEach($=>{const z=$.slice(0,1)+"Flip";customisationAliases[$+"-flip"]=z,customisationAliases[$.slice(0,1)+"-flip"]=z,customisationAliases[$+"Flip"]=z});function fixSize($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render=($,z)=>{const oe=mergeCustomisations(defaultExtendedIconCustomisations,z),ae={...svgDefaults},le=z.mode||"svg",ue={},pe=z.style,_e=typeof pe=="object"&&!(pe instanceof Array)?pe:{};for(let qe in z){const At=z[qe];if(At!==void 0)switch(qe){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":oe[qe]=At===!0||At==="true"||At===1;break;case"flip":typeof At=="string"&&flipFromString(oe,At);break;case"color":ue.color=At;break;case"rotate":typeof At=="string"?oe[qe]=rotateFromString(At):typeof At=="number"&&(oe[qe]=At);break;case"ariaHidden":case"aria-hidden":At!==!0&&At!=="true"&&delete ae["aria-hidden"];break;default:{const Lt=customisationAliases[qe];Lt?(At===!0||At==="true"||At===1)&&(oe[Lt]=!0):defaultExtendedIconCustomisations[qe]===void 0&&(ae[qe]=At)}}}const Ce=iconToSVG($,oe),$e=Ce.attributes;if(oe.inline&&(ue.verticalAlign="-0.125em"),le==="svg"){ae.style={...ue,..._e},Object.assign(ae,$e);let qe=0,At=z.id;return typeof At=="string"&&(At=At.replace(/-/g,"_")),ae.innerHTML=replaceIDs(Ce.body,At?()=>At+"ID"+qe++:"iconifyVue"),h$3("svg",ae)}const{body:xe,width:Ie,height:Fe}=$,ze=le==="mask"||(le==="bg"?!1:xe.indexOf("currentColor")!==-1),Ue=iconToHTML(xe,{...$e,width:Ie+"",height:Fe+""});return ae.style={...ue,"--svg":svgToURL(Ue),width:fixSize($e.width),height:fixSize($e.height),...commonProps,...ze?monotoneProps:coloredProps,..._e},h$3("span",ae)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const $=window;if($.IconifyPreload!==void 0){const z=$.IconifyPreload,oe="Invalid IconifyPreload syntax.";typeof z=="object"&&z!==null&&(z instanceof Array?z:[z]).forEach(ae=>{try{(typeof ae!="object"||ae===null||ae instanceof Array||typeof ae.icons!="object"||typeof ae.prefix!="string"||!addCollection(ae))&&console.error(oe)}catch{console.error(oe)}})}if($.IconifyProviders!==void 0){const z=$.IconifyProviders;if(typeof z=="object"&&z!==null)for(let oe in z){const ae="IconifyProviders["+oe+"] is invalid.";try{const le=z[oe];if(typeof le!="object"||!le||le.resources===void 0)continue;addAPIProvider(oe,le)||console.error(ae)}catch{console.error(ae)}}}}const emptyIcon={...defaultIconProps,body:""},Icon=defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon($,z){if(typeof $=="object"&&$!==null&&typeof $.body=="string")return this._name="",this.abortLoading(),{data:$};let oe;if(typeof $!="string"||(oe=stringToIcon($,!1,!0))===null)return this.abortLoading(),null;const ae=getIconData(oe);if(!ae)return(!this._loadingIcon||this._loadingIcon.name!==$)&&(this.abortLoading(),this._name="",ae!==null&&(this._loadingIcon={name:$,abort:loadIcons([oe],()=>{this.counter++})})),null;this.abortLoading(),this._name!==$&&(this._name=$,z&&z($));const le=["iconify"];return oe.prefix!==""&&le.push("iconify--"+oe.prefix),oe.provider!==""&&le.push("iconify--"+oe.provider),{data:ae,classes:le}}},render(){this.counter;const $=this.$attrs,z=this.iconMounted?this.getIcon($.icon,$.onLoad):null;if(!z)return render(emptyIcon,$);let oe=$;return z.classes&&(oe={...$,class:(typeof $.class=="string"?$.class+" ":"")+z.classes.join(" ")}),render({...defaultIconProps,...z.data},oe)}}),iconifyIconOnline=defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return h$3(Icon,{icon:`${this.icon}`,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),fontIcon=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return Object.keys($).includes("uni")||($==null?void 0:$.iconType)==="uni"?h$3("i",{class:"iconfont",...$},this.icon):Object.keys($).includes("svg")||($==null?void 0:$.iconType)==="svg"?h$3("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[h$3("use",{"xlink:href":`#${this.icon}`})]}):h$3("i",{class:`iconfont ${this.icon}`,...$})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,FontIcon=fontIcon,auth=defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup($,{slots:z}){return()=>{var oe;return z&&hasAuth($.value)?createVNode(Fragment,null,[(oe=z.default)==null?void 0:oe.call(z)]):null}}}),Auth=auth,systemRouter={path:"/system",meta:{icon:"setting",title:"menus.hssysManagement",rank:system$1},children:[{path:"/system/user/index",name:"User",meta:{icon:"flUser",title:"menus.hsUser",roles:["admin"]}},{path:"/system/role/index",name:"Role",meta:{icon:"role",title:"menus.hsRole",roles:["admin"]}},{path:"/system/dept/index",name:"Dept",meta:{icon:"dept",title:"menus.hsDept",roles:["admin"]}}]},permissionRouter={path:"/permission",meta:{title:"menus.permission",icon:"lollipop",rank:permission},children:[{path:"/permission/page/index",name:"PermissionPage",meta:{title:"menus.permissionPage",roles:["admin","common"]}},{path:"/permission/button/index",name:"PermissionButton",meta:{title:"menus.permissionButton",roles:["admin","common"],auths:["btn_add","btn_edit","btn_delete"]}}]},frameRouter={path:"/iframe",meta:{icon:"monitor",title:"menus.hsExternalPage",rank:frame$1},children:[{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/iframe/ep",name:"FrameEp",meta:{title:"menus.hsEpDocument",frameSrc:"https://element-plus.org/zh-CN/",roles:["admin","common"]}},{path:"/iframe/vue3",name:"FrameVue",meta:{title:"menus.hsVueDocument",frameSrc:"https://cn.vuejs.org/",roles:["admin","common"]}},{path:"/iframe/vite",name:"FrameVite",meta:{title:"menus.hsViteDocument",frameSrc:"https://cn.vitejs.dev/",roles:["admin","common"]}},{path:"/iframe/pinia",name:"FramePinia",meta:{title:"menus.hsPiniaDocument",frameSrc:"https://pinia.vuejs.org/zh/index.html",roles:["admin","common"]}},{path:"/iframe/vue-router",name:"FrameRouter",meta:{title:"menus.hsRouterDocument",frameSrc:"https://router.vuejs.org/zh/",roles:["admin","common"]}},{path:"/iframe/tailwindcss",name:"FrameTailwindcss",meta:{title:"menus.hsTailwindcssDocument",frameSrc:"https://tailwindcss.com/docs/installation",roles:["admin","common"]}}]},tabsRouter={path:"/tabs",meta:{icon:"IF-pure-iconfont-tabs",title:"menus.hstabs",rank:tabs},children:[{path:"/tabs/index",name:"Tabs",meta:{title:"menus.hstabs",roles:["admin","common"]}},{path:"/tabs/query-detail",name:"TabQueryDetail",meta:{showLink:!1,roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,roles:["admin","common"]}}]},asyncRoutes=[{url:"/getAsyncRoutes",method:"get",response:()=>({success:!0,data:[systemRouter,permissionRouter,frameRouter,tabsRouter]})}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:asyncRoutes},Symbol.toStringTag,{value:"Module"})),list=[{url:"/getCardList",method:"post",response:()=>({success:!0,data:{list:[{index:1,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:2,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:3,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:4,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:5,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:6,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:7,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:8,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:9,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:10,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:11,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:12,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:13,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:14,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:15,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:16,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:17,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:18,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:19,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:20,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:21,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:22,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:23,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:24,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:25,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:26,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:27,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:28,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:29,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:30,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:31,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:32,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:33,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:34,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:35,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:36,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:37,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:38,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:39,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:40,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:41,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:42,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:43,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:44,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:45,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:46,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:47,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:48,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:$})=>$.username==="admin"?{success:!0,data:{username:"admin",roles:["admin"],accessToken:"eyJhbGciOiJIUzUxMiJ9.admin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.adminRefresh",expires:"2023/10/30 00:00:00"}}:{success:!0,data:{username:"common",roles:["common"],accessToken:"eyJhbGciOiJIUzUxMiJ9.common",refreshToken:"eyJhbGciOiJIUzUxMiJ9.commonRefresh",expires:"2023/10/30 00:00:00"}}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:login},Symbol.toStringTag,{value:"Module"})),mapList=()=>{const $=[];for(let z=0;z<200;z++)$.push({plateNumber:"豫A@natural(11111, 99999)@character('upper')",driver:"@cname()","orientation|1-360":100,"lng|113-114.1-10":1,"lat|34-35.1-10":1});return $},map=[{url:"/getMapInfo",method:"get",response:()=>({success:!0,data:mapList()})}],__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:map},Symbol.toStringTag,{value:"Module"})),refreshToken=[{url:"/refreshToken",method:"post",response:({body:$})=>$.refreshToken?{success:!0,data:{accessToken:"eyJhbGciOiJIUzUxMiJ9.newAdmin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",expires:"2023/10/30 23:59:59"}}:{success:!1,data:{}}}],__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:refreshToken},Symbol.toStringTag,{value:"Module"})),system=[{url:"/user",method:"post",response:()=>({success:!0,data:{list:[{username:"admin",nickname:"admin",remark:"管理员",deptId:103,postIds:[1],mobile:"15888888888",sex:0,id:1,status:0,createTime:1605456e6,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1605456e6,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1605456e6,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1605456e6,dept:{id:107,name:"运维部门"}}],total:4}})},{url:"/role",method:"post",response:({body:$})=>{let z=[{createTime:1605456e6,updateTime:1684512e6,creator:"admin",id:1,name:"超级管理员",code:"admin",status:1,remark:"超级管理员拥有最高权限"},{createTime:1605456e6,updateTime:1684512e6,creator:"admin",id:2,name:"普通角色",code:"common",status:1,remark:"普通角色拥有部分权限"}];return z=z.filter(oe=>oe.name.includes($==null?void 0:$.name)),z=z.filter(oe=>String(oe.status).includes(String($==null?void 0:$.status))),$.code&&(z=z.filter(oe=>oe.code===$.code)),{success:!0,data:{list:z,total:z.length,pageSize:10,currentPage:1}}}},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",parentId:0,id:100,sort:0,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:1,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"郑州分公司",parentId:100,id:101,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"研发部门",parentId:101,id:103,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:102,id:108,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"深圳分公司",parentId:100,id:102,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:101,id:104,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:102,id:109,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"测试部门",parentId:101,id:105,sort:3,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:101,id:106,sort:4,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"运维部门",parentId:101,id:107,sort:5,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"}]})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(z,oe){module.exports=oe()})(commonjsGlobal,function(){return function($){var z={};function oe(ae){if(z[ae])return z[ae].exports;var le=z[ae]={exports:{},id:ae,loaded:!1};return $[ae].call(le.exports,le,le.exports,oe),le.loaded=!0,le.exports}return oe.m=$,oe.c=z,oe.p="",oe(0)}([function($,z,oe){var ae=oe(1),le=oe(3),ue=oe(5),pe=oe(20),_e=oe(23),Ce=oe(25),$e;typeof window<"u"&&($e=oe(27));/*!
|
||
Mock - 模拟请求 & 模拟数据
|
||
https://github.com/nuysoft/Mock
|
||
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
|
||
*/var xe={Handler:ae,Random:ue,Util:le,XHR:$e,RE:pe,toJSONSchema:_e,valid:Ce,heredoc:le.heredoc,setup:function(Ie){return $e.setup(Ie)},_mocked:{}};xe.version="1.0.1-beta3",$e&&($e.Mock=xe),xe.mock=function(Ie,Fe,ze){return arguments.length===1?ae.gen(Ie):(arguments.length===2&&(ze=Fe,Fe=void 0),$e&&(window.XMLHttpRequest=$e),xe._mocked[Ie+(Fe||"")]={rurl:Ie,rtype:Fe,template:ze},xe)},$.exports=xe},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function($,z,oe){z=z==null?"":z+"",oe=oe||{},oe={path:oe.path||[Constant.GUID],templatePath:oe.templatePath||[Constant.GUID++],currentContext:oe.currentContext,templateCurrentContext:oe.templateCurrentContext||$,root:oe.root||oe.currentContext,templateRoot:oe.templateRoot||oe.templateCurrentContext||$};var ae=Parser.parse(z),le=Util.type($),ue;return Handler[le]?(ue=Handler[le]({type:le,template:$,name:z,parsedName:z&&z.replace(Constant.RE_KEY,"$1"),rule:ae,context:oe}),oe.root||(oe.root=ue),ue):$},Handler.extend({array:function($){var z=[],oe,ae;if($.template.length===0)return z;if($.rule.parameters)if($.rule.min===1&&$.rule.max===void 0)$.context.path.push($.name),$.context.templatePath.push($.name),z=Random.pick(Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else if($.rule.parameters[2])$.template.__order_index=$.template.__order_index||0,$.context.path.push($.name),$.context.templatePath.push($.name),z=Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})[$.template.__order_index%$.template.length],$.template.__order_index+=+$.rule.parameters[2],$.context.path.pop(),$.context.templatePath.pop();else for(oe=0;oe<$.rule.count;oe++)for(ae=0;ae<$.template.length;ae++)$.context.path.push(z.length),$.context.templatePath.push(ae),z.push(Handler.gen($.template[ae],z.length,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else for(oe=0;oe<$.template.length;oe++)$.context.path.push(oe),$.context.templatePath.push(oe),z.push(Handler.gen($.template[oe],oe,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();return z},object:function($){var z={},oe,ae,le,ue,pe,_e;if($.rule.min!=null)for(oe=Util.keys($.template),oe=Random.shuffle(oe),oe=oe.slice(0,$.rule.count),_e=0;_e<oe.length;_e++)le=oe[_e],ue=le.replace(Constant.RE_KEY,"$1"),$.context.path.push(ue),$.context.templatePath.push(le),z[ue]=Handler.gen($.template[le],le,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template}),$.context.path.pop(),$.context.templatePath.pop();else{oe=[],ae=[];for(le in $.template)(typeof $.template[le]=="function"?ae:oe).push(le);for(oe=oe.concat(ae),_e=0;_e<oe.length;_e++)le=oe[_e],ue=le.replace(Constant.RE_KEY,"$1"),$.context.path.push(ue),$.context.templatePath.push(le),z[ue]=Handler.gen($.template[le],le,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template}),$.context.path.pop(),$.context.templatePath.pop(),pe=le.match(Constant.RE_KEY),pe&&pe[2]&&Util.type($.template[le])==="number"&&($.template[le]+=parseInt(pe[2],10))}return z},number:function($){var z,oe;if($.rule.decimal){for($.template+="",oe=$.template.split("."),oe[0]=$.rule.range?$.rule.count:oe[0],oe[1]=(oe[1]||"").slice(0,$.rule.dcount);oe[1].length<$.rule.dcount;)oe[1]+=oe[1].length<$.rule.dcount-1?Random.character("number"):Random.character("123456789");z=parseFloat(oe.join("."),10)}else z=$.rule.range&&!$.rule.parameters[2]?$.rule.count:$.template;return z},boolean:function($){var z;return z=$.rule.parameters?Random.bool($.rule.min,$.rule.max,$.template):$.template,z},string:function($){var z="",oe,ae,le,ue;if($.template.length){for($.rule.count==null&&(z+=$.template),oe=0;oe<$.rule.count;oe++)z+=$.template;for(ae=z.match(Constant.RE_PLACEHOLDER)||[],oe=0;oe<ae.length;oe++){if(le=ae[oe],/^\\/.test(le)){ae.splice(oe--,1);continue}if(ue=Handler.placeholder(le,$.context.currentContext,$.context.templateCurrentContext,$),ae.length===1&&le===z&&typeof ue!=typeof z){z=ue;break}z=z.replace(le,ue)}}else z=$.rule.range?Random.string($.rule.count):$.template;return z},function:function($){return $.template.call($.context.currentContext,$)},regexp:function($){var z="";$.rule.count==null&&(z+=$.template.source);for(var oe=0;oe<$.rule.count;oe++)z+=$.template.source;return RE.Handler.gen(RE.Parser.parse(z))}}),Handler.extend({_all:function(){var $={};for(var z in Random)$[z.toLowerCase()]=z;return $},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch($){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if(key.charAt(0)==="/"||pathParts.length>1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return re===void 0&&(re=""),delete handle.options,re}},getValueByKeyPath:function($,z){var oe=$,ae=this.splitPathToArray($),le=[];$.charAt(0)==="/"?le=[z.context.path[0]].concat(this.normalizePath(ae)):ae.length>1&&(le=z.context.path.slice(0),le.pop(),le=this.normalizePath(le.concat(ae)));try{$=ae[ae.length-1];for(var ue=z.context.root,pe=z.context.templateRoot,_e=1;_e<le.length-1;_e++)ue=ue[le[_e]],pe=pe[le[_e]];if(ue&&$ in ue)return ue[$];if(pe&&typeof pe=="object"&&$ in pe&&oe!==pe[$])return pe[$]=Handler.gen(pe[$],$,{currentContext:ue,templateCurrentContext:pe}),pe[$]}catch{}return"@"+ae.join("/")},normalizePath:function($){for(var z=[],oe=0;oe<$.length;oe++)switch($[oe]){case"..":z.pop();break;case".":break;default:z.push($[oe])}return z},splitPathToArray:function($){var z=$.split(/\/+/);return z[z.length-1]||(z=z.slice(0,-1)),z[0]||(z=z.slice(1)),z}}),module.exports=Handler},function($,z){$.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function($,z){var oe={};oe.extend=function(){var le=arguments[0]||{},ue=1,pe=arguments.length,_e,Ce,$e,xe,Ie;for(pe===1&&(le=this,ue=0);ue<pe;ue++)if(_e=arguments[ue],!!_e)for(Ce in _e)$e=le[Ce],xe=_e[Ce],le!==xe&&xe!==void 0&&(oe.isArray(xe)||oe.isObject(xe)?(oe.isArray(xe)&&(Ie=$e&&oe.isArray($e)?$e:[]),oe.isObject(xe)&&(Ie=$e&&oe.isObject($e)?$e:{}),le[Ce]=oe.extend(Ie,xe)):le[Ce]=xe);return le},oe.each=function(le,ue,pe){var _e,Ce;if(this.type(le)==="number")for(_e=0;_e<le;_e++)ue(_e,_e);else if(le.length===+le.length)for(_e=0;_e<le.length&&ue.call(pe,le[_e],_e,le)!==!1;_e++);else for(Ce in le)if(ue.call(pe,le[Ce],Ce,le)===!1)break},oe.type=function(le){return le==null?String(le):Object.prototype.toString.call(le).match(/\[object (\w+)\]/)[1].toLowerCase()},oe.each("String Object Array RegExp Function".split(" "),function(ae){oe["is"+ae]=function(le){return oe.type(le)===ae.toLowerCase()}}),oe.isObjectOrArray=function(ae){return oe.isObject(ae)||oe.isArray(ae)},oe.isNumeric=function(ae){return!isNaN(parseFloat(ae))&&isFinite(ae)},oe.keys=function(ae){var le=[];for(var ue in ae)ae.hasOwnProperty(ue)&&le.push(ue);return le},oe.values=function(ae){var le=[];for(var ue in ae)ae.hasOwnProperty(ue)&&le.push(ae[ue]);return le},oe.heredoc=function(le){return le.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},oe.noop=function(){},$.exports=oe},function($,z,oe){var ae=oe(2),le=oe(5);$.exports={parse:function(ue){ue=ue==null?"":ue+"";var pe=(ue||"").match(ae.RE_KEY),_e=pe&&pe[3]&&pe[3].match(ae.RE_RANGE),Ce=_e&&_e[1]&&parseInt(_e[1],10),$e=_e&&_e[2]&&parseInt(_e[2],10),xe=_e?_e[2]?le.integer(Ce,$e):parseInt(_e[1],10):void 0,Ie=pe&&pe[4]&&pe[4].match(ae.RE_RANGE),Fe=Ie&&Ie[1]&&parseInt(Ie[1],10),ze=Ie&&Ie[2]&&parseInt(Ie[2],10),Ue=Ie?!Ie[2]&&parseInt(Ie[1],10)||le.integer(Fe,ze):void 0,qe={parameters:pe,range:_e,min:Ce,max:$e,count:xe,decimal:Ie,dmin:Fe,dmax:ze,dcount:Ue};for(var At in qe)if(qe[At]!=null)return qe;return{}}}},function($,z,oe){var ae=oe(3),le={extend:ae.extend};le.extend(oe(6)),le.extend(oe(7)),le.extend(oe(8)),le.extend(oe(10)),le.extend(oe(13)),le.extend(oe(15)),le.extend(oe(16)),le.extend(oe(17)),le.extend(oe(14)),le.extend(oe(19)),$.exports=le},function($,z){$.exports={boolean:function(oe,ae,le){return le!==void 0?(oe=typeof oe<"u"&&!isNaN(oe)?parseInt(oe,10):1,ae=typeof ae<"u"&&!isNaN(ae)?parseInt(ae,10):1,Math.random()>1/(oe+ae)*oe?!le:le):Math.random()>=.5},bool:function(oe,ae,le){return this.boolean(oe,ae,le)},natural:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):0,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},integer:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):-9007199254740992,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},int:function(oe,ae){return this.integer(oe,ae)},float:function(oe,ae,le,ue){le=le===void 0?0:le,le=Math.max(Math.min(le,17),0),ue=ue===void 0?17:ue,ue=Math.max(Math.min(ue,17),0);for(var pe=this.integer(oe,ae)+".",_e=0,Ce=this.natural(le,ue);_e<Ce;_e++)pe+=_e<Ce-1?this.character("number"):this.character("123456789");return parseFloat(pe,10)},character:function(oe){var ae={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return ae.alpha=ae.lower+ae.upper,ae.undefined=ae.lower+ae.upper+ae.number+ae.symbol,oe=ae[(""+oe).toLowerCase()]||oe,oe.charAt(this.natural(0,oe.length-1))},char:function(oe){return this.character(oe)},string:function(oe,ae,le){var ue;switch(arguments.length){case 0:ue=this.natural(3,7);break;case 1:ue=oe,oe=void 0;break;case 2:typeof arguments[0]=="string"?ue=ae:(ue=this.natural(oe,ae),oe=void 0);break;case 3:ue=this.natural(ae,le);break}for(var pe="",_e=0;_e<ue;_e++)pe+=this.character(oe);return pe},str:function(){return this.string.apply(this,arguments)},range:function(oe,ae,le){arguments.length<=1&&(ae=oe||0,oe=0),le=arguments[2]||1,oe=+oe,ae=+ae,le=+le;for(var ue=Math.max(Math.ceil((ae-oe)/le),0),pe=0,_e=new Array(ue);pe<ue;)_e[pe++]=oe,oe+=le;return _e}}},function($,z){var oe={yyyy:"getFullYear",yy:function(ae){return(""+ae.getFullYear()).slice(2)},y:"yy",MM:function(ae){var le=ae.getMonth()+1;return le<10?"0"+le:le},M:function(ae){return ae.getMonth()+1},dd:function(ae){var le=ae.getDate();return le<10?"0"+le:le},d:"getDate",HH:function(ae){var le=ae.getHours();return le<10?"0"+le:le},H:"getHours",hh:function(ae){var le=ae.getHours()%12;return le<10?"0"+le:le},h:function(ae){return ae.getHours()%12},mm:function(ae){var le=ae.getMinutes();return le<10?"0"+le:le},m:"getMinutes",ss:function(ae){var le=ae.getSeconds();return le<10?"0"+le:le},s:"getSeconds",SS:function(ae){var le=ae.getMilliseconds();return le<10&&"00"+le||le<100&&"0"+le||le},S:"getMilliseconds",A:function(ae){return ae.getHours()<12?"AM":"PM"},a:function(ae){return ae.getHours()<12?"am":"pm"},T:"getTime"};$.exports={_patternLetters:oe,_rformat:new RegExp(function(){var ae=[];for(var le in oe)ae.push(le);return"("+ae.join("|")+")"}(),"g"),_formatDate:function(ae,le){return le.replace(this._rformat,function ue(pe,_e){return typeof oe[_e]=="function"?oe[_e](ae):oe[_e]in oe?ue(pe,oe[_e]):ae[oe[_e]]()})},_randomDate:function(ae,le){return ae=ae===void 0?new Date(0):ae,le=le===void 0?new Date:le,new Date(Math.random()*(le.getTime()-ae.getTime()))},date:function(ae){return ae=ae||"yyyy-MM-dd",this._formatDate(this._randomDate(),ae)},time:function(ae){return ae=ae||"HH:mm:ss",this._formatDate(this._randomDate(),ae)},datetime:function(ae){return ae=ae||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),ae)},now:function(ae,le){arguments.length===1&&(/year|month|day|hour|minute|second|week/.test(ae)||(le=ae,ae="")),ae=(ae||"").toLowerCase(),le=le||"yyyy-MM-dd HH:mm:ss";var ue=new Date;switch(ae){case"year":ue.setMonth(0);case"month":ue.setDate(1);case"week":case"day":ue.setHours(0);case"hour":ue.setMinutes(0);case"minute":ue.setSeconds(0);case"second":ue.setMilliseconds(0)}switch(ae){case"week":ue.setDate(ue.getDate()-ue.getDay())}return this._formatDate(ue,le)}}},function($,z,oe){(function(ae){ae.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(le,ue,pe,_e,Ce){return arguments.length===4&&(Ce=_e,_e=void 0),arguments.length===3&&(Ce=pe,pe=void 0),le||(le=this.pick(this._adSize)),ue&&~ue.indexOf("#")&&(ue=ue.slice(1)),pe&&~pe.indexOf("#")&&(pe=pe.slice(1)),"http://dummyimage.com/"+le+(ue?"/"+ue:"")+(pe?"/"+pe:"")+(_e?"."+_e:"")+(Ce?"&text="+Ce:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var le=[];for(var ue in this._brandColors)le.push(ue);return le},dataImage:function(le,ue){var pe;if(typeof document<"u")pe=document.createElement("canvas");else{var _e=ae.require("canvas");pe=new _e}var Ce=pe&&pe.getContext&&pe.getContext("2d");if(!pe||!Ce)return"";le||(le=this.pick(this._adSize)),ue=ue!==void 0?ue:le,le=le.split("x");var $e=parseInt(le[0],10),xe=parseInt(le[1],10),Ie=this._brandColors[this.pick(this._brandNames())],Fe="#FFF",ze=14,Ue="sans-serif";return pe.width=$e,pe.height=xe,Ce.textAlign="center",Ce.textBaseline="middle",Ce.fillStyle=Ie,Ce.fillRect(0,0,$e,xe),Ce.fillStyle=Fe,Ce.font="bold "+ze+"px "+Ue,Ce.fillText(ue,$e/2,xe/2,$e),pe.toDataURL("image/png")}}}).call(z,oe(9)($))},function($,z){$.exports=function(oe){return oe.webpackPolyfill||(oe.deprecate=function(){},oe.paths=[],oe.children=[],oe.webpackPolyfill=1),oe}},function($,z,oe){var ae=oe(11),le=oe(12);$.exports={color:function(ue){return ue||le[ue]?le[ue].nicer:this.hex()},hex:function(){var ue=this._goldenRatioColor(),pe=ae.hsv2rgb(ue),_e=ae.rgb2hex(pe[0],pe[1],pe[2]);return _e},rgb:function(){var ue=this._goldenRatioColor(),pe=ae.hsv2rgb(ue);return"rgb("+parseInt(pe[0],10)+", "+parseInt(pe[1],10)+", "+parseInt(pe[2],10)+")"},rgba:function(){var ue=this._goldenRatioColor(),pe=ae.hsv2rgb(ue);return"rgba("+parseInt(pe[0],10)+", "+parseInt(pe[1],10)+", "+parseInt(pe[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var ue=this._goldenRatioColor(),pe=ae.hsv2hsl(ue);return"hsl("+parseInt(pe[0],10)+", "+parseInt(pe[1],10)+", "+parseInt(pe[2],10)+")"},_goldenRatioColor:function(ue,pe){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof ue!="number"&&(ue=.5),typeof pe!="number"&&(pe=.95),[this._hue*360,ue*100,pe*100]}}},function($,z){$.exports={rgb2hsl:function(ae){var le=ae[0]/255,ue=ae[1]/255,pe=ae[2]/255,_e=Math.min(le,ue,pe),Ce=Math.max(le,ue,pe),$e=Ce-_e,xe,Ie,Fe;return Ce==_e?xe=0:le==Ce?xe=(ue-pe)/$e:ue==Ce?xe=2+(pe-le)/$e:pe==Ce&&(xe=4+(le-ue)/$e),xe=Math.min(xe*60,360),xe<0&&(xe+=360),Fe=(_e+Ce)/2,Ce==_e?Ie=0:Fe<=.5?Ie=$e/(Ce+_e):Ie=$e/(2-Ce-_e),[xe,Ie*100,Fe*100]},rgb2hsv:function(ae){var le=ae[0],ue=ae[1],pe=ae[2],_e=Math.min(le,ue,pe),Ce=Math.max(le,ue,pe),$e=Ce-_e,xe,Ie,Fe;return Ce===0?Ie=0:Ie=$e/Ce*1e3/10,Ce==_e?xe=0:le==Ce?xe=(ue-pe)/$e:ue==Ce?xe=2+(pe-le)/$e:pe==Ce&&(xe=4+(le-ue)/$e),xe=Math.min(xe*60,360),xe<0&&(xe+=360),Fe=Ce/255*1e3/10,[xe,Ie,Fe]},hsl2rgb:function(ae){var le=ae[0]/360,ue=ae[1]/100,pe=ae[2]/100,_e,Ce,$e,xe,Ie;if(ue===0)return Ie=pe*255,[Ie,Ie,Ie];pe<.5?Ce=pe*(1+ue):Ce=pe+ue-pe*ue,_e=2*pe-Ce,xe=[0,0,0];for(var Fe=0;Fe<3;Fe++)$e=le+1/3*-(Fe-1),$e<0&&$e++,$e>1&&$e--,6*$e<1?Ie=_e+(Ce-_e)*6*$e:2*$e<1?Ie=Ce:3*$e<2?Ie=_e+(Ce-_e)*(2/3-$e)*6:Ie=_e,xe[Fe]=Ie*255;return xe},hsl2hsv:function(ae){var le=ae[0],ue=ae[1]/100,pe=ae[2]/100,_e,Ce;return pe*=2,ue*=pe<=1?pe:2-pe,Ce=(pe+ue)/2,_e=2*ue/(pe+ue),[le,_e*100,Ce*100]},hsv2rgb:function(ae){var le=ae[0]/60,ue=ae[1]/100,pe=ae[2]/100,_e=Math.floor(le)%6,Ce=le-Math.floor(le),$e=255*pe*(1-ue),xe=255*pe*(1-ue*Ce),Ie=255*pe*(1-ue*(1-Ce));switch(pe=255*pe,_e){case 0:return[pe,Ie,$e];case 1:return[xe,pe,$e];case 2:return[$e,pe,Ie];case 3:return[$e,xe,pe];case 4:return[Ie,$e,pe];case 5:return[pe,$e,xe]}},hsv2hsl:function(ae){var le=ae[0],ue=ae[1]/100,pe=ae[2]/100,_e,Ce;return Ce=(2-ue)*pe,_e=ue*pe,_e/=Ce<=1?Ce:2-Ce,Ce/=2,[le,_e*100,Ce*100]},rgb2hex:function(oe,ae,le){return"#"+((256+oe<<8|ae)<<8|le).toString(16).slice(1)},hex2rgb:function(oe){return oe="0x"+oe.slice(1).replace(oe.length>4?oe:/./g,"$&$&")|0,[oe>>16,oe>>8&255,oe&255]}}},function($,z){$.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function($,z,oe){var ae=oe(6),le=oe(14);function ue(pe,_e,Ce,$e){return Ce===void 0?ae.natural(pe,_e):$e===void 0?Ce:ae.natural(parseInt(Ce,10),parseInt($e,10))}$.exports={paragraph:function(pe,_e){for(var Ce=ue(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.sentence());return $e.join(" ")},cparagraph:function(pe,_e){for(var Ce=ue(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.csentence());return $e.join("")},sentence:function(pe,_e){for(var Ce=ue(12,18,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.word());return le.capitalize($e.join(" "))+"."},csentence:function(pe,_e){for(var Ce=ue(12,18,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.cword());return $e.join("")+"。"},word:function(pe,_e){for(var Ce=ue(3,10,pe,_e),$e="",xe=0;xe<Ce;xe++)$e+=ae.character("lower");return $e},cword:function(pe,_e,Ce){var $e="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",xe;switch(arguments.length){case 0:pe=$e,xe=1;break;case 1:typeof arguments[0]=="string"?xe=1:(xe=pe,pe=$e);break;case 2:typeof arguments[0]=="string"?xe=_e:(xe=this.natural(pe,_e),pe=$e);break;case 3:xe=this.natural(_e,Ce);break}for(var Ie="",Fe=0;Fe<xe;Fe++)Ie+=pe.charAt(this.natural(0,pe.length-1));return Ie},title:function(pe,_e){for(var Ce=ue(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.capitalize(this.word()));return $e.join(" ")},ctitle:function(pe,_e){for(var Ce=ue(3,7,pe,_e),$e=[],xe=0;xe<Ce;xe++)$e.push(this.cword());return $e.join("")}}},function($,z,oe){var ae=oe(3);$.exports={capitalize:function(le){return(le+"").charAt(0).toUpperCase()+(le+"").substr(1)},upper:function(le){return(le+"").toUpperCase()},lower:function(le){return(le+"").toLowerCase()},pick:function(ue,pe,_e){return ae.isArray(ue)?(pe===void 0&&(pe=1),_e===void 0&&(_e=pe)):(ue=[].slice.call(arguments),pe=1,_e=1),pe===1&&_e===1?ue[this.natural(0,ue.length-1)]:this.shuffle(ue,pe,_e)},shuffle:function(ue,pe,_e){ue=ue||[];for(var Ce=ue.slice(0),$e=[],xe=0,Ie=Ce.length,Fe=0;Fe<Ie;Fe++)xe=this.natural(0,Ce.length-1),$e.push(Ce[xe]),Ce.splice(xe,1);switch(arguments.length){case 0:case 1:return $e;case 2:_e=pe;case 3:return pe=parseInt(pe,10),_e=parseInt(_e,10),$e.slice(0,this.natural(pe,_e))}},order:function le(ue){le.cache=le.cache||{},arguments.length>1&&(ue=[].slice.call(arguments,0));var pe=le.options,_e=pe.context.templatePath.join("."),Ce=le.cache[_e]=le.cache[_e]||{index:0,array:ue};return Ce.array[Ce.index++%Ce.array.length]}}},function($,z){$.exports={first:function(){var oe=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(oe)},last:function(){var oe=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(oe)},name:function(oe){return this.first()+" "+(oe?this.first()+" ":"")+this.last()},cfirst:function(){var oe="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(oe)},clast:function(){var oe="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(oe)},cname:function(){return this.cfirst()+this.clast()}}},function($,z){$.exports={url:function(oe,ae){return(oe||this.protocol())+"://"+(ae||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(oe){return this.word()+"."+(oe||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(oe){return this.character("lower")+"."+this.word()+"@"+(oe||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function($,z,oe){var ae=oe(18),le=["东北","华北","华东","华中","华南","西南","西北"];$.exports={region:function(){return this.pick(le)},province:function(){return this.pick(ae).name},city:function(ue){var pe=this.pick(ae),_e=this.pick(pe.children);return ue?[pe.name,_e.name].join(" "):_e.name},county:function(ue){var pe=this.pick(ae),_e=this.pick(pe.children),Ce=this.pick(_e.children)||{name:"-"};return ue?[pe.name,_e.name,Ce.name].join(" "):Ce.name},zip:function(ue){for(var pe="",_e=0;_e<(ue||6);_e++)pe+=this.natural(0,9);return pe}}},function($,z){var oe={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function ae(ue){for(var pe={},_e=0,Ce;_e<ue.length;_e++)Ce=ue[_e],!(!Ce||!Ce.id)&&(pe[Ce.id]=Ce);for(var $e=[],xe=0;xe<ue.length;xe++)if(Ce=ue[xe],!!Ce){if(Ce.pid==null&&Ce.parentId==null){$e.push(Ce);continue}var Ie=pe[Ce.pid]||pe[Ce.parentId];Ie&&(Ie.children||(Ie.children=[]),Ie.children.push(Ce))}return $e}var le=function(){var ue=[];for(var pe in oe){var _e=pe.slice(2,6)==="0000"?void 0:pe.slice(4,6)=="00"?pe.slice(0,2)+"0000":pe.slice(0,4)+"00";ue.push({id:pe,pid:_e,name:oe[pe]})}return ae(ue)}();$.exports=le},function($,z,oe){var ae=oe(18);$.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var le="abcdefABCDEF1234567890",ue=this.string(le,8)+"-"+this.string(le,4)+"-"+this.string(le,4)+"-"+this.string(le,4)+"-"+this.string(le,12);return ue},uuid:function(){return this.guid()},id:function(){var le,ue=0,pe=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],_e=["1","0","X","9","8","7","6","5","4","3","2"];le=this.pick(ae).id+this.date("yyyyMMdd")+this.string("number",3);for(var Ce=0;Ce<le.length;Ce++)ue+=le[Ce]*pe[Ce];return le+=_e[ue%11],le},increment:function(){var le=0;return function(ue){return le+=+ue||1}}(),inc:function(le){return this.increment(le)}}},function($,z,oe){var ae=oe(21),le=oe(22);$.exports={Parser:ae,Handler:le}},function($,z){function oe(_n){this.type=_n,this.offset=oe.offset(),this.text=oe.text()}function ae(_n,bn){oe.call(this,"alternate"),this.left=_n,this.right=bn}function le(_n){oe.call(this,"match"),this.body=_n.filter(Boolean)}function ue(_n,bn){oe.call(this,_n),this.body=bn}function pe(_n){ue.call(this,"capture-group"),this.index=vn[this.offset]||(vn[this.offset]=hn++),this.body=_n}function _e(_n,bn){oe.call(this,"quantified"),this.body=_n,this.quantifier=bn}function Ce(_n,bn){oe.call(this,"quantifier"),this.min=_n,this.max=bn,this.greedy=!0}function $e(_n,bn){oe.call(this,"charset"),this.invert=_n,this.body=bn}function xe(_n,bn){oe.call(this,"range"),this.start=_n,this.end=bn}function Ie(_n){oe.call(this,"literal"),this.body=_n,this.escaped=this.body!=this.text}function Fe(_n){oe.call(this,"unicode"),this.code=_n.toUpperCase()}function ze(_n){oe.call(this,"hex"),this.code=_n.toUpperCase()}function Ue(_n){oe.call(this,"octal"),this.code=_n.toUpperCase()}function qe(_n){oe.call(this,"back-reference"),this.code=_n.toUpperCase()}function At(_n){oe.call(this,"control-character"),this.code=_n.toUpperCase()}var Lt=function(){function _n(Cn,En){function $n(){this.constructor=Cn}$n.prototype=En.prototype,Cn.prototype=new $n}function bn(Cn,En,$n,wn,Tn){function xn(kn,Nn){function Bn(Ln){function Mn(Vn){return Vn.charCodeAt(0).toString(16).toUpperCase()}return Ln.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(Vn){return"\\x0"+Mn(Vn)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(Vn){return"\\x"+Mn(Vn)}).replace(/[\u0180-\u0FFF]/g,function(Vn){return"\\u0"+Mn(Vn)}).replace(/[\u1080-\uFFFF]/g,function(Vn){return"\\u"+Mn(Vn)})}var Dn,In;switch(kn.length){case 0:Dn="end of input";break;case 1:Dn=kn[0];break;default:Dn=kn.slice(0,-1).join(", ")+" or "+kn[kn.length-1]}return In=Nn?'"'+Bn(Nn)+'"':"end of input","Expected "+Dn+" but "+In+" found."}this.expected=Cn,this.found=En,this.offset=$n,this.line=wn,this.column=Tn,this.name="SyntaxError",this.message=xn(Cn,En)}function Sn(Cn){function En(){return Cn.substring(Wr,er)}function $n(){return Wr}function wn(Rn){function zn(Or,Ur,Zr){var eo,oo;for(eo=Ur;Zr>eo;eo++)oo=Cn.charAt(eo),oo===`
|
||
`?(Or.seenCR||Or.line++,Or.column=1,Or.seenCR=!1):oo==="\r"||oo==="\u2028"||oo==="\u2029"?(Or.line++,Or.column=1,Or.seenCR=!0):(Or.column++,Or.seenCR=!1)}return ro!==Rn&&(ro>Rn&&(ro=0,vo={line:1,column:1,seenCR:!1}),zn(vo,ro,Rn),ro=Rn),vo}function Tn(Rn){co>er||(er>co&&(co=er,fo=[]),fo.push(Rn))}function xn(Rn){var zn=0;for(Rn.sort();zn<Rn.length;)Rn[zn-1]===Rn[zn]?Rn.splice(zn,1):zn++}function kn(){var Rn,zn,Or,Ur,Zr;return Rn=er,zn=Nn(),zn!==null?(Or=er,Cn.charCodeAt(er)===124?(Ur=to,er++):(Ur=null,Vr===0&&Tn(Qo)),Ur!==null?(Zr=kn(),Zr!==null?(Ur=[Ur,Zr],Or=Ur):(er=Or,Or=Br)):(er=Or,Or=Br),Or===null&&(Or=Jr),Or!==null?(Wr=Rn,zn=ea(zn,Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function Nn(){var Rn,zn,Or,Ur,Zr;if(Rn=er,zn=Dn(),zn===null&&(zn=Jr),zn!==null)if(Or=er,Vr++,Ur=Mn(),Vr--,Ur===null?Or=Jr:(er=Or,Or=Br),Or!==null){for(Ur=[],Zr=Ln(),Zr===null&&(Zr=Bn());Zr!==null;)Ur.push(Zr),Zr=Ln(),Zr===null&&(Zr=Bn());Ur!==null?(Zr=In(),Zr===null&&(Zr=Jr),Zr!==null?(Wr=Rn,zn=ta(zn,Ur,Zr),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)}else er=Rn,Rn=Br;else er=Rn,Rn=Br;return Rn}function Bn(){var Rn;return Rn=Wn(),Rn===null&&(Rn=nr(),Rn===null&&(Rn=mr())),Rn}function Dn(){var Rn,zn;return Rn=er,Cn.charCodeAt(er)===94?(zn=yo,er++):(zn=null,Vr===0&&Tn(_o)),zn!==null&&(Wr=Rn,zn=na()),zn===null&&(er=Rn),Rn=zn,Rn}function In(){var Rn,zn;return Rn=er,Cn.charCodeAt(er)===36?(zn=ra,er++):(zn=null,Vr===0&&Tn(oa)),zn!==null&&(Wr=Rn,zn=aa()),zn===null&&(er=Rn),Rn=zn,Rn}function Ln(){var Rn,zn,Or;return Rn=er,zn=Bn(),zn!==null?(Or=Mn(),Or!==null?(Wr=Rn,zn=ia(zn,Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function Mn(){var Rn,zn,Or;return Vr++,Rn=er,zn=Vn(),zn!==null?(Or=qn(),Or===null&&(Or=Jr),Or!==null?(Wr=Rn,zn=la(zn,Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Vr--,Rn===null&&(zn=null,Vr===0&&Tn(sa)),Rn}function Vn(){var Rn;return Rn=Yn(),Rn===null&&(Rn=Fn(),Rn===null&&(Rn=Xn(),Rn===null&&(Rn=sr(),Rn===null&&(Rn=vr(),Rn===null&&(Rn=ar()))))),Rn}function Yn(){var Rn,zn,Or,Ur,Zr,eo;return Rn=er,Cn.charCodeAt(er)===123?(zn=po,er++):(zn=null,Vr===0&&Tn(ho)),zn!==null?(Or=Gn(),Or!==null?(Cn.charCodeAt(er)===44?(Ur=ua,er++):(Ur=null,Vr===0&&Tn(da)),Ur!==null?(Zr=Gn(),Zr!==null?(Cn.charCodeAt(er)===125?(eo=bo,er++):(eo=null,Vr===0&&Tn(So)),eo!==null?(Wr=Rn,zn=fa(Or,Zr),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function Fn(){var Rn,zn,Or,Ur;return Rn=er,Cn.charCodeAt(er)===123?(zn=po,er++):(zn=null,Vr===0&&Tn(ho)),zn!==null?(Or=Gn(),Or!==null?(Cn.substr(er,2)===Co?(Ur=Co,er+=2):(Ur=null,Vr===0&&Tn(pa)),Ur!==null?(Wr=Rn,zn=ha(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function Xn(){var Rn,zn,Or,Ur;return Rn=er,Cn.charCodeAt(er)===123?(zn=po,er++):(zn=null,Vr===0&&Tn(ho)),zn!==null?(Or=Gn(),Or!==null?(Cn.charCodeAt(er)===125?(Ur=bo,er++):(Ur=null,Vr===0&&Tn(So)),Ur!==null?(Wr=Rn,zn=ma(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function sr(){var Rn,zn;return Rn=er,Cn.charCodeAt(er)===43?(zn=va,er++):(zn=null,Vr===0&&Tn(ga)),zn!==null&&(Wr=Rn,zn=ya()),zn===null&&(er=Rn),Rn=zn,Rn}function vr(){var Rn,zn;return Rn=er,Cn.charCodeAt(er)===42?(zn=ba,er++):(zn=null,Vr===0&&Tn(Sa)),zn!==null&&(Wr=Rn,zn=Ca()),zn===null&&(er=Rn),Rn=zn,Rn}function ar(){var Rn,zn;return Rn=er,Cn.charCodeAt(er)===63?(zn=Eo,er++):(zn=null,Vr===0&&Tn($o)),zn!==null&&(Wr=Rn,zn=Ea()),zn===null&&(er=Rn),Rn=zn,Rn}function qn(){var Rn;return Cn.charCodeAt(er)===63?(Rn=Eo,er++):(Rn=null,Vr===0&&Tn($o)),Rn}function Gn(){var Rn,zn,Or;if(Rn=er,zn=[],wo.test(Cn.charAt(er))?(Or=Cn.charAt(er),er++):(Or=null,Vr===0&&Tn(To)),Or!==null)for(;Or!==null;)zn.push(Or),wo.test(Cn.charAt(er))?(Or=Cn.charAt(er),er++):(Or=null,Vr===0&&Tn(To));else zn=Br;return zn!==null&&(Wr=Rn,zn=$a(zn)),zn===null&&(er=Rn),Rn=zn,Rn}function Wn(){var Rn,zn,Or,Ur;return Rn=er,Cn.charCodeAt(er)===40?(zn=wa,er++):(zn=null,Vr===0&&Tn(Ta)),zn!==null?(Or=jn(),Or===null&&(Or=Zn(),Or===null&&(Or=cr(),Or===null&&(Or=Qn()))),Or!==null?(Cn.charCodeAt(er)===41?(Ur=xa,er++):(Ur=null,Vr===0&&Tn(Pa)),Ur!==null?(Wr=Rn,zn=ka(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function Qn(){var Rn,zn;return Rn=er,zn=kn(),zn!==null&&(Wr=Rn,zn=Aa(zn)),zn===null&&(er=Rn),Rn=zn,Rn}function cr(){var Rn,zn,Or;return Rn=er,Cn.substr(er,2)===xo?(zn=xo,er+=2):(zn=null,Vr===0&&Tn(Oa)),zn!==null?(Or=kn(),Or!==null?(Wr=Rn,zn=Ia(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function jn(){var Rn,zn,Or;return Rn=er,Cn.substr(er,2)===Po?(zn=Po,er+=2):(zn=null,Vr===0&&Tn(Na)),zn!==null?(Or=kn(),Or!==null?(Wr=Rn,zn=Ma(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function Zn(){var Rn,zn,Or;return Rn=er,Cn.substr(er,2)===ko?(zn=ko,er+=2):(zn=null,Vr===0&&Tn(Ra)),zn!==null?(Or=kn(),Or!==null?(Wr=Rn,zn=Da(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function nr(){var Rn,zn,Or,Ur,Zr;if(Vr++,Rn=er,Cn.charCodeAt(er)===91?(zn=Ba,er++):(zn=null,Vr===0&&Tn(Va)),zn!==null)if(Cn.charCodeAt(er)===94?(Or=yo,er++):(Or=null,Vr===0&&Tn(_o)),Or===null&&(Or=Jr),Or!==null){for(Ur=[],Zr=hr(),Zr===null&&(Zr=gr());Zr!==null;)Ur.push(Zr),Zr=hr(),Zr===null&&(Zr=gr());Ur!==null?(Cn.charCodeAt(er)===93?(Zr=Fa,er++):(Zr=null,Vr===0&&Tn(za)),Zr!==null?(Wr=Rn,zn=Ha(Or,Ur),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)}else er=Rn,Rn=Br;else er=Rn,Rn=Br;return Vr--,Rn===null&&(zn=null,Vr===0&&Tn(La)),Rn}function hr(){var Rn,zn,Or,Ur;return Vr++,Rn=er,zn=gr(),zn!==null?(Cn.charCodeAt(er)===45?(Or=ja,er++):(Or=null,Vr===0&&Tn(Wa)),Or!==null?(Ur=gr(),Ur!==null?(Wr=Rn,zn=Ga(zn,Ur),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Vr--,Rn===null&&(zn=null,Vr===0&&Tn(Ua)),Rn}function gr(){var Rn;return Vr++,Rn=wr(),Rn===null&&(Rn=or()),Vr--,Rn===null&&Vr===0&&Tn(Ka),Rn}function or(){var Rn,zn;return Rn=er,Ya.test(Cn.charAt(er))?(zn=Cn.charAt(er),er++):(zn=null,Vr===0&&Tn(qa)),zn!==null&&(Wr=Rn,zn=mo(zn)),zn===null&&(er=Rn),Rn=zn,Rn}function wr(){var Rn;return Rn=ur(),Rn===null&&(Rn=_r(),Rn===null&&(Rn=Dr(),Rn===null&&(Rn=Lr(),Rn===null&&(Rn=Mr(),Rn===null&&(Rn=br(),Rn===null&&(Rn=Cr(),Rn===null&&(Rn=lr(),Rn===null&&(Rn=Jn(),Rn===null&&(Rn=rr(),Rn===null&&(Rn=$r(),Rn===null&&(Rn=Ar(),Rn===null&&(Rn=Fr(),Rn===null&&(Rn=zr(),Rn===null&&(Rn=Hr(),Rn===null&&(Rn=jr(),Rn===null&&(Rn=qr(),Rn===null&&(Rn=Xr()))))))))))))))))),Rn}function mr(){var Rn;return Rn=Tr(),Rn===null&&(Rn=ir(),Rn===null&&(Rn=dr())),Rn}function Tr(){var Rn,zn;return Rn=er,Cn.charCodeAt(er)===46?(zn=Za,er++):(zn=null,Vr===0&&Tn(Xa)),zn!==null&&(Wr=Rn,zn=Ja()),zn===null&&(er=Rn),Rn=zn,Rn}function dr(){var Rn,zn;return Vr++,Rn=er,ei.test(Cn.charAt(er))?(zn=Cn.charAt(er),er++):(zn=null,Vr===0&&Tn(ti)),zn!==null&&(Wr=Rn,zn=mo(zn)),zn===null&&(er=Rn),Rn=zn,Vr--,Rn===null&&(zn=null,Vr===0&&Tn(Qa)),Rn}function ir(){var Rn;return Rn=fr(),Rn===null&&(Rn=kr(),Rn===null&&(Rn=_r(),Rn===null&&(Rn=Dr(),Rn===null&&(Rn=Lr(),Rn===null&&(Rn=Mr(),Rn===null&&(Rn=br(),Rn===null&&(Rn=Cr(),Rn===null&&(Rn=lr(),Rn===null&&(Rn=Jn(),Rn===null&&(Rn=rr(),Rn===null&&(Rn=$r(),Rn===null&&(Rn=Ar(),Rn===null&&(Rn=Fr(),Rn===null&&(Rn=Ir(),Rn===null&&(Rn=zr(),Rn===null&&(Rn=Hr(),Rn===null&&(Rn=jr(),Rn===null&&(Rn=qr(),Rn===null&&(Rn=Xr()))))))))))))))))))),Rn}function ur(){var Rn,zn;return Rn=er,Cn.substr(er,2)===ao?(zn=ao,er+=2):(zn=null,Vr===0&&Tn(Ao)),zn!==null&&(Wr=Rn,zn=ni()),zn===null&&(er=Rn),Rn=zn,Rn}function fr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===ao?(zn=ao,er+=2):(zn=null,Vr===0&&Tn(Ao)),zn!==null&&(Wr=Rn,zn=ri()),zn===null&&(er=Rn),Rn=zn,Rn}function kr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Oo?(zn=Oo,er+=2):(zn=null,Vr===0&&Tn(oi)),zn!==null&&(Wr=Rn,zn=ai()),zn===null&&(er=Rn),Rn=zn,Rn}function Dr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Io?(zn=Io,er+=2):(zn=null,Vr===0&&Tn(ii)),zn!==null&&(Wr=Rn,zn=si()),zn===null&&(er=Rn),Rn=zn,Rn}function Lr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===No?(zn=No,er+=2):(zn=null,Vr===0&&Tn(li)),zn!==null&&(Wr=Rn,zn=ui()),zn===null&&(er=Rn),Rn=zn,Rn}function Mr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Mo?(zn=Mo,er+=2):(zn=null,Vr===0&&Tn(ci)),zn!==null&&(Wr=Rn,zn=di()),zn===null&&(er=Rn),Rn=zn,Rn}function br(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Ro?(zn=Ro,er+=2):(zn=null,Vr===0&&Tn(fi)),zn!==null&&(Wr=Rn,zn=pi()),zn===null&&(er=Rn),Rn=zn,Rn}function Cr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Do?(zn=Do,er+=2):(zn=null,Vr===0&&Tn(hi)),zn!==null&&(Wr=Rn,zn=mi()),zn===null&&(er=Rn),Rn=zn,Rn}function lr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Lo?(zn=Lo,er+=2):(zn=null,Vr===0&&Tn(vi)),zn!==null&&(Wr=Rn,zn=gi()),zn===null&&(er=Rn),Rn=zn,Rn}function Jn(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Bo?(zn=Bo,er+=2):(zn=null,Vr===0&&Tn(yi)),zn!==null&&(Wr=Rn,zn=_i()),zn===null&&(er=Rn),Rn=zn,Rn}function rr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Vo?(zn=Vo,er+=2):(zn=null,Vr===0&&Tn(bi)),zn!==null&&(Wr=Rn,zn=Si()),zn===null&&(er=Rn),Rn=zn,Rn}function $r(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Fo?(zn=Fo,er+=2):(zn=null,Vr===0&&Tn(Ci)),zn!==null&&(Wr=Rn,zn=Ei()),zn===null&&(er=Rn),Rn=zn,Rn}function Ar(){var Rn,zn;return Rn=er,Cn.substr(er,2)===zo?(zn=zo,er+=2):(zn=null,Vr===0&&Tn($i)),zn!==null&&(Wr=Rn,zn=wi()),zn===null&&(er=Rn),Rn=zn,Rn}function Fr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===Ho?(zn=Ho,er+=2):(zn=null,Vr===0&&Tn(Ti)),zn!==null&&(Wr=Rn,zn=xi()),zn===null&&(er=Rn),Rn=zn,Rn}function _r(){var Rn,zn,Or;return Rn=er,Cn.substr(er,2)===Uo?(zn=Uo,er+=2):(zn=null,Vr===0&&Tn(Pi)),zn!==null?(Cn.length>er?(Or=Cn.charAt(er),er++):(Or=null,Vr===0&&Tn(jo)),Or!==null?(Wr=Rn,zn=ki(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function Ir(){var Rn,zn,Or;return Rn=er,Cn.charCodeAt(er)===92?(zn=Wo,er++):(zn=null,Vr===0&&Tn(Go)),zn!==null?(Ai.test(Cn.charAt(er))?(Or=Cn.charAt(er),er++):(Or=null,Vr===0&&Tn(Oi)),Or!==null?(Wr=Rn,zn=Ii(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}function zr(){var Rn,zn,Or,Ur;if(Rn=er,Cn.substr(er,2)===io?(zn=io,er+=2):(zn=null,Vr===0&&Tn(Ko)),zn!==null){if(Or=[],Yo.test(Cn.charAt(er))?(Ur=Cn.charAt(er),er++):(Ur=null,Vr===0&&Tn(qo)),Ur!==null)for(;Ur!==null;)Or.push(Ur),Yo.test(Cn.charAt(er))?(Ur=Cn.charAt(er),er++):(Ur=null,Vr===0&&Tn(qo));else Or=Br;Or!==null?(Wr=Rn,zn=Ni(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)}else er=Rn,Rn=Br;return Rn}function Hr(){var Rn,zn,Or,Ur;if(Rn=er,Cn.substr(er,2)===Zo?(zn=Zo,er+=2):(zn=null,Vr===0&&Tn(Mi)),zn!==null){if(Or=[],so.test(Cn.charAt(er))?(Ur=Cn.charAt(er),er++):(Ur=null,Vr===0&&Tn(lo)),Ur!==null)for(;Ur!==null;)Or.push(Ur),so.test(Cn.charAt(er))?(Ur=Cn.charAt(er),er++):(Ur=null,Vr===0&&Tn(lo));else Or=Br;Or!==null?(Wr=Rn,zn=Ri(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)}else er=Rn,Rn=Br;return Rn}function jr(){var Rn,zn,Or,Ur;if(Rn=er,Cn.substr(er,2)===Xo?(zn=Xo,er+=2):(zn=null,Vr===0&&Tn(Di)),zn!==null){if(Or=[],so.test(Cn.charAt(er))?(Ur=Cn.charAt(er),er++):(Ur=null,Vr===0&&Tn(lo)),Ur!==null)for(;Ur!==null;)Or.push(Ur),so.test(Cn.charAt(er))?(Ur=Cn.charAt(er),er++):(Ur=null,Vr===0&&Tn(lo));else Or=Br;Or!==null?(Wr=Rn,zn=Li(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)}else er=Rn,Rn=Br;return Rn}function qr(){var Rn,zn;return Rn=er,Cn.substr(er,2)===io?(zn=io,er+=2):(zn=null,Vr===0&&Tn(Ko)),zn!==null&&(Wr=Rn,zn=Bi()),zn===null&&(er=Rn),Rn=zn,Rn}function Xr(){var Rn,zn,Or;return Rn=er,Cn.charCodeAt(er)===92?(zn=Wo,er++):(zn=null,Vr===0&&Tn(Go)),zn!==null?(Cn.length>er?(Or=Cn.charAt(er),er++):(Or=null,Vr===0&&Tn(jo)),Or!==null?(Wr=Rn,zn=mo(Or),zn===null&&(er=Rn),Rn=zn):(er=Rn,Rn=Br)):(er=Rn,Rn=Br),Rn}var Pr,Rr=arguments.length>1?arguments[1]:{},Kr={regexp:kn},Yr=kn,Br=null,Jr="",to="|",Qo='"|"',ea=function(Rn,zn){return zn?new ae(Rn,zn[1]):Rn},ta=function(Rn,zn,Or){return new le([Rn].concat(zn).concat([Or]))},yo="^",_o='"^"',na=function(){return new oe("start")},ra="$",oa='"$"',aa=function(){return new oe("end")},ia=function(Rn,zn){return new _e(Rn,zn)},sa="Quantifier",la=function(Rn,zn){return zn&&(Rn.greedy=!1),Rn},po="{",ho='"{"',ua=",",da='","',bo="}",So='"}"',fa=function(Rn,zn){return new Ce(Rn,zn)},Co=",}",pa='",}"',ha=function(Rn){return new Ce(Rn,1/0)},ma=function(Rn){return new Ce(Rn,Rn)},va="+",ga='"+"',ya=function(){return new Ce(1,1/0)},ba="*",Sa='"*"',Ca=function(){return new Ce(0,1/0)},Eo="?",$o='"?"',Ea=function(){return new Ce(0,1)},wo=/^[0-9]/,To="[0-9]",$a=function(Rn){return+Rn.join("")},wa="(",Ta='"("',xa=")",Pa='")"',ka=function(Rn){return Rn},Aa=function(Rn){return new pe(Rn)},xo="?:",Oa='"?:"',Ia=function(Rn){return new ue("non-capture-group",Rn)},Po="?=",Na='"?="',Ma=function(Rn){return new ue("positive-lookahead",Rn)},ko="?!",Ra='"?!"',Da=function(Rn){return new ue("negative-lookahead",Rn)},La="CharacterSet",Ba="[",Va='"["',Fa="]",za='"]"',Ha=function(Rn,zn){return new $e(!!Rn,zn)},Ua="CharacterRange",ja="-",Wa='"-"',Ga=function(Rn,zn){return new xe(Rn,zn)},Ka="Character",Ya=/^[^\\\]]/,qa="[^\\\\\\]]",mo=function(Rn){return new Ie(Rn)},Za=".",Xa='"."',Ja=function(){return new oe("any-character")},Qa="Literal",ei=/^[^|\\\/.[()?+*$\^]/,ti="[^|\\\\\\/.[()?+*$\\^]",ao="\\b",Ao='"\\\\b"',ni=function(){return new oe("backspace")},ri=function(){return new oe("word-boundary")},Oo="\\B",oi='"\\\\B"',ai=function(){return new oe("non-word-boundary")},Io="\\d",ii='"\\\\d"',si=function(){return new oe("digit")},No="\\D",li='"\\\\D"',ui=function(){return new oe("non-digit")},Mo="\\f",ci='"\\\\f"',di=function(){return new oe("form-feed")},Ro="\\n",fi='"\\\\n"',pi=function(){return new oe("line-feed")},Do="\\r",hi='"\\\\r"',mi=function(){return new oe("carriage-return")},Lo="\\s",vi='"\\\\s"',gi=function(){return new oe("white-space")},Bo="\\S",yi='"\\\\S"',_i=function(){return new oe("non-white-space")},Vo="\\t",bi='"\\\\t"',Si=function(){return new oe("tab")},Fo="\\v",Ci='"\\\\v"',Ei=function(){return new oe("vertical-tab")},zo="\\w",$i='"\\\\w"',wi=function(){return new oe("word")},Ho="\\W",Ti='"\\\\W"',xi=function(){return new oe("non-word")},Uo="\\c",Pi='"\\\\c"',jo="any character",ki=function(Rn){return new At(Rn)},Wo="\\",Go='"\\\\"',Ai=/^[1-9]/,Oi="[1-9]",Ii=function(Rn){return new qe(Rn)},io="\\0",Ko='"\\\\0"',Yo=/^[0-7]/,qo="[0-7]",Ni=function(Rn){return new Ue(Rn.join(""))},Zo="\\x",Mi='"\\\\x"',so=/^[0-9a-fA-F]/,lo="[0-9a-fA-F]",Ri=function(Rn){return new ze(Rn.join(""))},Xo="\\u",Di='"\\\\u"',Li=function(Rn){return new Fe(Rn.join(""))},Bi=function(){return new oe("null-character")},er=0,Wr=0,ro=0,vo={line:1,column:1,seenCR:!1},co=0,fo=[],Vr=0;if("startRule"in Rr){if(!(Rr.startRule in Kr))throw new Error(`Can't start parsing from rule "`+Rr.startRule+'".');Yr=Kr[Rr.startRule]}if(oe.offset=$n,oe.text=En,Pr=Yr(),Pr!==null&&er===Cn.length)return Pr;throw xn(fo),Wr=Math.max(er,co),new bn(fo,Wr<Cn.length?Cn.charAt(Wr):null,Wr,wn(Wr).line,wn(Wr).column)}return _n(bn,Error),{SyntaxError:bn,parse:Sn}}(),hn=1,vn={};$.exports=Lt},function($,z,oe){var ae=oe(3),le=oe(5),ue={extend:ae.extend},pe=ze(97,122),_e=ze(65,90),Ce=ze(48,57),$e=ze(32,47)+ze(58,64)+ze(91,96)+ze(123,126),xe=ze(32,126),Ie=` \f
|
||
\r \v \u2028\u2029`,Fe={"\\w":pe+_e+Ce+"_","\\W":$e.replace("_",""),"\\s":Ie,"\\S":function(){for(var Ue=xe,qe=0;qe<Ie.length;qe++)Ue=Ue.replace(Ie[qe],"");return Ue}(),"\\d":Ce,"\\D":pe+_e+$e};function ze(Ue,qe){for(var At="",Lt=Ue;Lt<=qe;Lt++)At+=String.fromCharCode(Lt);return At}ue.gen=function(Ue,qe,At){return At=At||{guid:1},ue[Ue.type]?ue[Ue.type](Ue,qe,At):ue.token(Ue,qe,At)},ue.extend({token:function(Ue,qe,At){switch(Ue.type){case"start":case"end":return"";case"any-character":return le.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return le.pick(Ce.split(""));case"non-digit":return le.pick((pe+_e+$e).split(""));case"form-feed":break;case"line-feed":return Ue.body||Ue.text;case"carriage-return":break;case"white-space":return le.pick(Ie.split(""));case"non-white-space":return le.pick((pe+_e+Ce).split(""));case"tab":break;case"vertical-tab":break;case"word":return le.pick((pe+_e+Ce).split(""));case"non-word":return le.pick($e.replace("_","").split(""))}return Ue.body||Ue.text},alternate:function(Ue,qe,At){return this.gen(le.boolean()?Ue.left:Ue.right,qe,At)},match:function(Ue,qe,At){qe="";for(var Lt=0;Lt<Ue.body.length;Lt++)qe+=this.gen(Ue.body[Lt],qe,At);return qe},"capture-group":function(Ue,qe,At){return qe=this.gen(Ue.body,qe,At),At[At.guid++]=qe,qe},"non-capture-group":function(Ue,qe,At){return this.gen(Ue.body,qe,At)},"positive-lookahead":function(Ue,qe,At){return this.gen(Ue.body,qe,At)},"negative-lookahead":function(Ue,qe,At){return""},quantified:function(Ue,qe,At){qe="";for(var Lt=this.quantifier(Ue.quantifier),hn=0;hn<Lt;hn++)qe+=this.gen(Ue.body,qe,At);return qe},quantifier:function(Ue,qe,At){var Lt=Math.max(Ue.min,0),hn=isFinite(Ue.max)?Ue.max:Lt+le.integer(3,7);return le.integer(Lt,hn)},charset:function(Ue,qe,At){if(Ue.invert)return this["invert-charset"](Ue,qe,At);var Lt=le.pick(Ue.body);return this.gen(Lt,qe,At)},"invert-charset":function(Ue,qe,At){for(var Lt=xe,hn=0,vn;hn<Ue.body.length;hn++)switch(vn=Ue.body[hn],vn.type){case"literal":Lt=Lt.replace(vn.body,"");break;case"range":for(var _n=this.gen(vn.start,qe,At).charCodeAt(),bn=this.gen(vn.end,qe,At).charCodeAt(),Sn=_n;Sn<=bn;Sn++)Lt=Lt.replace(String.fromCharCode(Sn),"");default:var Cn=Fe[vn.text];if(Cn)for(var En=0;En<=Cn.length;En++)Lt=Lt.replace(Cn[En],"")}return le.pick(Lt.split(""))},range:function(Ue,qe,At){var Lt=this.gen(Ue.start,qe,At).charCodeAt(),hn=this.gen(Ue.end,qe,At).charCodeAt();return String.fromCharCode(le.integer(Lt,hn))},literal:function(Ue,qe,At){return Ue.escaped?Ue.body:Ue.text},unicode:function(Ue,qe,At){return String.fromCharCode(parseInt(Ue.code,16))},hex:function(Ue,qe,At){return String.fromCharCode(parseInt(Ue.code,16))},octal:function(Ue,qe,At){return String.fromCharCode(parseInt(Ue.code,8))},"back-reference":function(Ue,qe,At){return At[Ue.code]||""},CONTROL_CHARACTER_MAP:function(){for(var Ue="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),qe=`\0 \x07 \b
|
||
\v \f \r \x1B `.split(" "),At={},Lt=0;Lt<Ue.length;Lt++)At[Ue[Lt]]=qe[Lt];return At}(),"control-character":function(Ue,qe,At){return this.CONTROL_CHARACTER_MAP[Ue.code]}}),$.exports=ue},function($,z,oe){$.exports=oe(24)},function($,z,oe){var ae=oe(2),le=oe(3),ue=oe(4);function pe(_e,Ce,$e){$e=$e||[];var xe={name:typeof Ce=="string"?Ce.replace(ae.RE_KEY,"$1"):Ce,template:_e,type:le.type(_e),rule:ue.parse(Ce)};switch(xe.path=$e.slice(0),xe.path.push(Ce===void 0?"ROOT":xe.name),xe.type){case"array":xe.items=[],le.each(_e,function(Ie,Fe){xe.items.push(pe(Ie,Fe,xe.path))});break;case"object":xe.properties=[],le.each(_e,function(Ie,Fe){xe.properties.push(pe(Ie,Fe,xe.path))});break}return xe}$.exports=pe},function($,z,oe){$.exports=oe(26)},function($,z,oe){var ae=oe(2),le=oe(3),ue=oe(23);function pe($e,xe){for(var Ie=ue($e),Fe=_e.diff(Ie,xe),ze=0;ze<Fe.length;ze++);return Fe}var _e={diff:function(xe,Ie,Fe){var ze=[];return this.name(xe,Ie,Fe,ze)&&this.type(xe,Ie,Fe,ze)&&(this.value(xe,Ie,Fe,ze),this.properties(xe,Ie,Fe,ze),this.items(xe,Ie,Fe,ze)),ze},name:function($e,xe,Ie,Fe){var ze=Fe.length;return Ce.equal("name",$e.path,Ie+"",$e.name+"",Fe),Fe.length===ze},type:function($e,xe,Ie,Fe){var ze=Fe.length;switch($e.type){case"string":if($e.template.match(ae.RE_PLACEHOLDER))return!0;break;case"array":if($e.rule.parameters&&($e.rule.min!==void 0&&$e.rule.max===void 0&&$e.rule.count===1||$e.rule.parameters[2]))return!0;break;case"function":return!0}return Ce.equal("type",$e.path,le.type(xe),$e.type,Fe),Fe.length===ze},value:function($e,xe,Ie,Fe){var ze=Fe.length,Ue=$e.rule,qe=$e.type;if(qe==="object"||qe==="array"||qe==="function")return!0;if(!Ue.parameters){switch(qe){case"regexp":return Ce.match("value",$e.path,xe,$e.template,Fe),Fe.length===ze;case"string":if($e.template.match(ae.RE_PLACEHOLDER))return Fe.length===ze;break}return Ce.equal("value",$e.path,xe,$e.template,Fe),Fe.length===ze}var At;switch(qe){case"number":var Lt=(xe+"").split(".");Lt[0]=+Lt[0],Ue.min!==void 0&&Ue.max!==void 0&&(Ce.greaterThanOrEqualTo("value",$e.path,Lt[0],Math.min(Ue.min,Ue.max),Fe),Ce.lessThanOrEqualTo("value",$e.path,Lt[0],Math.max(Ue.min,Ue.max),Fe)),Ue.min!==void 0&&Ue.max===void 0&&Ce.equal("value",$e.path,Lt[0],Ue.min,Fe,"[value] "+Ie),Ue.decimal&&(Ue.dmin!==void 0&&Ue.dmax!==void 0&&(Ce.greaterThanOrEqualTo("value",$e.path,Lt[1].length,Ue.dmin,Fe),Ce.lessThanOrEqualTo("value",$e.path,Lt[1].length,Ue.dmax,Fe)),Ue.dmin!==void 0&&Ue.dmax===void 0&&Ce.equal("value",$e.path,Lt[1].length,Ue.dmin,Fe));break;case"boolean":break;case"string":At=xe.match(new RegExp($e.template,"g")),At=At?At.length:0,Ue.min!==void 0&&Ue.max!==void 0&&(Ce.greaterThanOrEqualTo("repeat count",$e.path,At,Ue.min,Fe),Ce.lessThanOrEqualTo("repeat count",$e.path,At,Ue.max,Fe)),Ue.min!==void 0&&Ue.max===void 0&&Ce.equal("repeat count",$e.path,At,Ue.min,Fe);break;case"regexp":At=xe.match(new RegExp($e.template.source.replace(/^\^|\$$/g,""),"g")),At=At?At.length:0,Ue.min!==void 0&&Ue.max!==void 0&&(Ce.greaterThanOrEqualTo("repeat count",$e.path,At,Ue.min,Fe),Ce.lessThanOrEqualTo("repeat count",$e.path,At,Ue.max,Fe)),Ue.min!==void 0&&Ue.max===void 0&&Ce.equal("repeat count",$e.path,At,Ue.min,Fe);break}return Fe.length===ze},properties:function($e,xe,Ie,Fe){var ze=Fe.length,Ue=$e.rule,qe=le.keys(xe);if($e.properties){if($e.rule.parameters?(Ue.min!==void 0&&Ue.max!==void 0&&(Ce.greaterThanOrEqualTo("properties length",$e.path,qe.length,Math.min(Ue.min,Ue.max),Fe),Ce.lessThanOrEqualTo("properties length",$e.path,qe.length,Math.max(Ue.min,Ue.max),Fe)),Ue.min!==void 0&&Ue.max===void 0&&Ue.count!==1&&Ce.equal("properties length",$e.path,qe.length,Ue.min,Fe)):Ce.equal("properties length",$e.path,qe.length,$e.properties.length,Fe),Fe.length!==ze)return!1;for(var At=0;At<qe.length;At++)Fe.push.apply(Fe,this.diff(function(){var Lt;return le.each($e.properties,function(hn){hn.name===qe[At]&&(Lt=hn)}),Lt||$e.properties[At]}(),xe[qe[At]],qe[At]));return Fe.length===ze}},items:function($e,xe,Ie,Fe){var ze=Fe.length;if($e.items){var Ue=$e.rule;if(!$e.rule.parameters)Ce.equal("items length",$e.path,xe.length,$e.items.length,Fe);else{if(Ue.min!==void 0&&Ue.max!==void 0&&(Ce.greaterThanOrEqualTo("items",$e.path,xe.length,Math.min(Ue.min,Ue.max)*$e.items.length,Fe,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),Ce.lessThanOrEqualTo("items",$e.path,xe.length,Math.max(Ue.min,Ue.max)*$e.items.length,Fe,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),Ue.min!==void 0&&Ue.max===void 0){if(Ue.count===1)return Fe.length===ze;Ce.equal("items length",$e.path,xe.length,Ue.min*$e.items.length,Fe)}if(Ue.parameters[2])return Fe.length===ze}if(Fe.length!==ze)return!1;for(var qe=0;qe<xe.length;qe++)Fe.push.apply(Fe,this.diff($e.items[qe%$e.items.length],xe[qe],qe%$e.items.length));return Fe.length===ze}}},Ce={message:function($e){return($e.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",$e.type.toUpperCase()).replace("{ltype}",$e.type.toLowerCase()).replace("{path}",le.isArray($e.path)&&$e.path.join(".")||$e.path).replace("{action}",$e.action).replace("{expected}",$e.expected).replace("{actual}",$e.actual)},equal:function($e,xe,Ie,Fe,ze,Ue){if(Ie===Fe)return!0;switch($e){case"type":if(Fe==="regexp"&&Ie==="string")return!0;break}var qe={path:xe,type:$e,actual:Ie,expected:Fe,action:"is equal to",message:Ue};return qe.message=Ce.message(qe),ze.push(qe),!1},match:function($e,xe,Ie,Fe,ze,Ue){if(Fe.test(Ie))return!0;var qe={path:xe,type:$e,actual:Ie,expected:Fe,action:"matches",message:Ue};return qe.message=Ce.message(qe),ze.push(qe),!1},notEqual:function($e,xe,Ie,Fe,ze,Ue){if(Ie!==Fe)return!0;var qe={path:xe,type:$e,actual:Ie,expected:Fe,action:"is not equal to",message:Ue};return qe.message=Ce.message(qe),ze.push(qe),!1},greaterThan:function($e,xe,Ie,Fe,ze,Ue){if(Ie>Fe)return!0;var qe={path:xe,type:$e,actual:Ie,expected:Fe,action:"is greater than",message:Ue};return qe.message=Ce.message(qe),ze.push(qe),!1},lessThan:function($e,xe,Ie,Fe,ze,Ue){if(Ie<Fe)return!0;var qe={path:xe,type:$e,actual:Ie,expected:Fe,action:"is less to",message:Ue};return qe.message=Ce.message(qe),ze.push(qe),!1},greaterThanOrEqualTo:function($e,xe,Ie,Fe,ze,Ue){if(Ie>=Fe)return!0;var qe={path:xe,type:$e,actual:Ie,expected:Fe,action:"is greater than or equal to",message:Ue};return qe.message=Ce.message(qe),ze.push(qe),!1},lessThanOrEqualTo:function($e,xe,Ie,Fe,ze,Ue){if(Ie<=Fe)return!0;var qe={path:xe,type:$e,actual:Ie,expected:Fe,action:"is less than or equal to",message:Ue};return qe.message=Ce.message(qe),ze.push(qe),!1}};pe.Diff=_e,pe.Assert=Ce,$.exports=pe},function($,z,oe){$.exports=oe(28)},function($,z,oe){var ae=oe(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(Ue,qe,At,Lt){var hn=document.createEvent("CustomEvent");return hn.initCustomEvent(Ue,qe,At,Lt),hn}}var le={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ue="readystatechange loadstart progress abort error load timeout loadend".split(" "),pe="timeout withCredentials".split(" "),_e="readyState responseURL status statusText responseType response responseText responseXML".split(" "),Ce={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function $e(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}$e._settings={timeout:"10-100"},$e.setup=function(ze){return ae.extend($e._settings,ze),$e._settings},ae.extend($e,le),ae.extend($e.prototype,le),$e.prototype.mock=!0,$e.prototype.match=!1,ae.extend($e.prototype,{open:function(ze,Ue,qe,At,Lt){var hn=this;ae.extend(this.custom,{method:ze,url:Ue,async:typeof qe=="boolean"?qe:!0,username:At,password:Lt,options:{url:Ue,type:ze}}),this.custom.timeout=function(En){if(typeof En=="number")return En;if(typeof En=="string"&&!~En.indexOf("-"))return parseInt(En,10);if(typeof En=="string"&&~En.indexOf("-")){var $n=En.split("-"),wn=parseInt($n[0],10),Tn=parseInt($n[1],10);return Math.round(Math.random()*(Tn-wn))+wn}}($e._settings.timeout);var vn=Ie(this.custom.options);function _n(En){for(var $n=0;$n<_e.length;$n++)try{hn[_e[$n]]=bn[_e[$n]]}catch{}hn.dispatchEvent(new Event(En.type))}if(!vn){var bn=xe();this.custom.xhr=bn;for(var Sn=0;Sn<ue.length;Sn++)bn.addEventListener(ue[Sn],_n);At?bn.open(ze,Ue,qe,At,Lt):bn.open(ze,Ue,qe);for(var Cn=0;Cn<pe.length;Cn++)try{bn[pe[Cn]]=hn[pe[Cn]]}catch{}return}this.match=!0,this.custom.template=vn,this.readyState=$e.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(ze,Ue){if(!this.match){this.custom.xhr.setRequestHeader(ze,Ue);return}var qe=this.custom.requestHeaders;qe[ze]?qe[ze]+=","+Ue:qe[ze]=Ue},timeout:0,withCredentials:!1,upload:{},send:function(Ue){var qe=this;if(this.custom.options.body=Ue,!this.match){this.custom.xhr.send(Ue);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(At,this.custom.timeout):At();function At(){qe.readyState=$e.HEADERS_RECEIVED,qe.dispatchEvent(new Event("readystatechange")),qe.readyState=$e.LOADING,qe.dispatchEvent(new Event("readystatechange")),qe.status=200,qe.statusText=Ce[200],qe.response=qe.responseText=JSON.stringify(Fe(qe.custom.template,qe.custom.options),null,4),qe.readyState=$e.DONE,qe.dispatchEvent(new Event("readystatechange")),qe.dispatchEvent(new Event("load")),qe.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=$e.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),ae.extend($e.prototype,{responseURL:"",status:$e.UNSENT,statusText:"",getResponseHeader:function(ze){return this.match?this.custom.responseHeaders[ze.toLowerCase()]:this.custom.xhr.getResponseHeader(ze)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var ze=this.custom.responseHeaders,Ue="";for(var qe in ze)ze.hasOwnProperty(qe)&&(Ue+=qe+": "+ze[qe]+`\r
|
||
`);return Ue},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),ae.extend($e.prototype,{addEventListener:function(Ue,qe){var At=this.custom.events;At[Ue]||(At[Ue]=[]),At[Ue].push(qe)},removeEventListener:function(Ue,qe){for(var At=this.custom.events[Ue]||[],Lt=0;Lt<At.length;Lt++)At[Lt]===qe&&At.splice(Lt--,1)},dispatchEvent:function(Ue){for(var qe=this.custom.events[Ue.type]||[],At=0;At<qe.length;At++)qe[At].call(this,Ue);var Lt="on"+Ue.type;this[Lt]&&this[Lt](Ue)}});function xe(){var ze=function(){var At=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lt=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,hn=location.href,vn=Lt.exec(hn.toLowerCase())||[];return At.test(vn[1])}();return window.ActiveXObject?!ze&&Ue()||qe():Ue();function Ue(){try{return new window._XMLHttpRequest}catch{}}function qe(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function Ie(ze){for(var Ue in $e.Mock._mocked){var qe=$e.Mock._mocked[Ue];if((!qe.rurl||At(qe.rurl,ze.url))&&(!qe.rtype||At(qe.rtype,ze.type.toLowerCase())))return qe}function At(Lt,hn){if(ae.type(Lt)==="string")return Lt===hn;if(ae.type(Lt)==="regexp")return Lt.test(hn)}}function Fe(ze,Ue){return ae.isFunction(ze.template)?ze.template(Ue):$e.Mock.mock(ze.template)}$.exports=$e}])})})(mock);var mockExports=mock.exports;const mockJs=getDefaultExportFromCjs(mockExports);function lexer($){for(var z=[],oe=0;oe<$.length;){var ae=$[oe];if(ae==="*"||ae==="+"||ae==="?"){z.push({type:"MODIFIER",index:oe,value:$[oe++]});continue}if(ae==="\\"){z.push({type:"ESCAPED_CHAR",index:oe++,value:$[oe++]});continue}if(ae==="{"){z.push({type:"OPEN",index:oe,value:$[oe++]});continue}if(ae==="}"){z.push({type:"CLOSE",index:oe,value:$[oe++]});continue}if(ae===":"){for(var le="",ue=oe+1;ue<$.length;){var pe=$.charCodeAt(ue);if(pe>=48&&pe<=57||pe>=65&&pe<=90||pe>=97&&pe<=122||pe===95){le+=$[ue++];continue}break}if(!le)throw new TypeError("Missing parameter name at ".concat(oe));z.push({type:"NAME",index:oe,value:le}),oe=ue;continue}if(ae==="("){var _e=1,Ce="",ue=oe+1;if($[ue]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(ue));for(;ue<$.length;){if($[ue]==="\\"){Ce+=$[ue++]+$[ue++];continue}if($[ue]===")"){if(_e--,_e===0){ue++;break}}else if($[ue]==="("&&(_e++,$[ue+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(ue));Ce+=$[ue++]}if(_e)throw new TypeError("Unbalanced pattern at ".concat(oe));if(!Ce)throw new TypeError("Missing pattern at ".concat(oe));z.push({type:"PATTERN",index:oe,value:Ce}),oe=ue;continue}z.push({type:"CHAR",index:oe,value:$[oe++]})}return z.push({type:"END",index:oe,value:""}),z}function parse($,z){z===void 0&&(z={});for(var oe=lexer($),ae=z.prefixes,le=ae===void 0?"./":ae,ue="[^".concat(escapeString(z.delimiter||"/#?"),"]+?"),pe=[],_e=0,Ce=0,$e="",xe=function(Sn){if(Ce<oe.length&&oe[Ce].type===Sn)return oe[Ce++].value},Ie=function(Sn){var Cn=xe(Sn);if(Cn!==void 0)return Cn;var En=oe[Ce],$n=En.type,wn=En.index;throw new TypeError("Unexpected ".concat($n," at ").concat(wn,", expected ").concat(Sn))},Fe=function(){for(var Sn="",Cn;Cn=xe("CHAR")||xe("ESCAPED_CHAR");)Sn+=Cn;return Sn};Ce<oe.length;){var ze=xe("CHAR"),Ue=xe("NAME"),qe=xe("PATTERN");if(Ue||qe){var At=ze||"";le.indexOf(At)===-1&&($e+=At,At=""),$e&&(pe.push($e),$e=""),pe.push({name:Ue||_e++,prefix:At,suffix:"",pattern:qe||ue,modifier:xe("MODIFIER")||""});continue}var Lt=ze||xe("ESCAPED_CHAR");if(Lt){$e+=Lt;continue}$e&&(pe.push($e),$e="");var hn=xe("OPEN");if(hn){var At=Fe(),vn=xe("NAME")||"",_n=xe("PATTERN")||"",bn=Fe();Ie("CLOSE"),pe.push({name:vn||(_n?_e++:""),pattern:vn&&!_n?ue:_n,prefix:At,suffix:bn,modifier:xe("MODIFIER")||""});continue}Ie("END")}return pe}function escapeString($){return $.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags($){return $&&$.sensitive?"":"i"}function regexpToRegexp($,z){if(!z)return $;for(var oe=/\((?:\?<(.*?)>)?(?!\?)/g,ae=0,le=oe.exec($.source);le;)z.push({name:le[1]||ae++,prefix:"",suffix:"",modifier:"",pattern:""}),le=oe.exec($.source);return $}function arrayToRegexp($,z,oe){var ae=$.map(function(le){return pathToRegexp(le,z,oe).source});return new RegExp("(?:".concat(ae.join("|"),")"),flags(oe))}function stringToRegexp($,z,oe){return tokensToRegexp(parse($,oe),z,oe)}function tokensToRegexp($,z,oe){oe===void 0&&(oe={});for(var ae=oe.strict,le=ae===void 0?!1:ae,ue=oe.start,pe=ue===void 0?!0:ue,_e=oe.end,Ce=_e===void 0?!0:_e,$e=oe.encode,xe=$e===void 0?function(wn){return wn}:$e,Ie=oe.delimiter,Fe=Ie===void 0?"/#?":Ie,ze=oe.endsWith,Ue=ze===void 0?"":ze,qe="[".concat(escapeString(Ue),"]|$"),At="[".concat(escapeString(Fe),"]"),Lt=pe?"^":"",hn=0,vn=$;hn<vn.length;hn++){var _n=vn[hn];if(typeof _n=="string")Lt+=escapeString(xe(_n));else{var bn=escapeString(xe(_n.prefix)),Sn=escapeString(xe(_n.suffix));if(_n.pattern)if(z&&z.push(_n),bn||Sn)if(_n.modifier==="+"||_n.modifier==="*"){var Cn=_n.modifier==="*"?"?":"";Lt+="(?:".concat(bn,"((?:").concat(_n.pattern,")(?:").concat(Sn).concat(bn,"(?:").concat(_n.pattern,"))*)").concat(Sn,")").concat(Cn)}else Lt+="(?:".concat(bn,"(").concat(_n.pattern,")").concat(Sn,")").concat(_n.modifier);else _n.modifier==="+"||_n.modifier==="*"?Lt+="((?:".concat(_n.pattern,")").concat(_n.modifier,")"):Lt+="(".concat(_n.pattern,")").concat(_n.modifier);else Lt+="(?:".concat(bn).concat(Sn,")").concat(_n.modifier)}}if(Ce)le||(Lt+="".concat(At,"?")),Lt+=oe.endsWith?"(?=".concat(qe,")"):"$";else{var En=$[$.length-1],$n=typeof En=="string"?At.indexOf(En[En.length-1])>-1:En===void 0;le||(Lt+="(?:".concat(At,"(?=").concat(qe,"))?")),$n||(Lt+="(?=".concat(At,"|").concat(qe,")"))}return new RegExp(Lt,flags(oe))}function pathToRegexp($,z,oe){return $ instanceof RegExp?regexpToRegexp($,z):Array.isArray($)?arrayToRegexp($,z,oe):stringToRegexp($,z,oe)}const Mock=mockJs;function createProdMockServer($){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const z={};for(let oe in this.custom.requestHeaders)z[oe.toString().toLowerCase()]=this.custom.requestHeaders[oe];this.custom.options=Object.assign({},this.custom.options,{headers:z})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let z=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&z&&(this.custom.xhr.responseType=z)};for(const{url:z,method:oe,response:ae,timeout:le}of $)__setupMock__(le),Mock.mock(pathToRegexp(z,void 0,{end:!1}),oe||"get",__XHR2ExpressReqWrapper__(ae))}function __param2Obj__($){const z=$.split("?")[1];return z?JSON.parse('{"'+decodeURIComponent(z).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__($){return function(z){let oe=null;if(typeof $=="function"){const{body:ae,type:le,url:ue,headers:pe}=z;let _e=ae;try{_e=JSON.parse(ae)}catch{}oe=$({method:le,body:_e,query:__param2Obj__(ue),headers:pe})}else oe=$;return Mock.mock(oe)}}function __setupMock__($=0){$&&Mock.setup({timeout:$})}const modules=Object.assign({"../mock/asyncRoutes.ts":__vite_glob_0_0,"../mock/list.ts":__vite_glob_0_1,"../mock/login.ts":__vite_glob_0_2,"../mock/map.ts":__vite_glob_0_3,"../mock/refreshToken.ts":__vite_glob_0_4,"../mock/system.ts":__vite_glob_0_5}),mockModules=[];Object.keys(modules).forEach($=>{mockModules.push(...modules[$].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=createApp(App);Object.keys(directives).forEach($=>{app.directive($,directives[$])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async $=>{app.use(router),await router.isReady(),injectResponsiveStorage(app,$),setupStore(app),app.use(MotionPlugin).use(useI18n).use(installer).use(je).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{ElInfiniteScroll as $,normalizeStyle$1 as A,markRaw as B,toDisplayString$1 as C,usePermissionStoreHook as D,extractPathList as E,Fragment as F,transformI18n as G,deleteChildren as H,h$3 as I,Je as J,Ke as K,Et as L,An as M,N,getDefaultExportFromCjs as O,Pn as P,resolveDynamicComponent as Q,Hn as R,onUpdated as S,provide as T,Un as U,onBeforeUpdate as V,normalizeProps as W,guardReactiveProps as X,useI18n$1 as Y,commonjsGlobal as Z,_export_sfc as _,onBeforeUnmount as a,createApp as a$,useRouter as a0,addDialog as a1,updateDialog as a2,closeDialog as a3,closeAllDialog as a4,hot as a5,Nr as a6,getCurrentInstance as a7,toRefs as a8,onUnmounted as a9,D as aA,defineStore as aB,Kn as aC,responsiveStorageNameSpace as aD,getConfig as aE,store as aF,FontIcon as aG,IconifyIconOffline as aH,IconifyIconOnline as aI,ElMessage as aJ,C as aK,withScopeId as aL,shallowReactive as aM,toHandlers as aN,getAugmentedNamespace as aO,vue_runtime_esmBundler as aP,isVNode$1 as aQ,customRef as aR,isClient$1 as aS,noop$5 as aT,toValue as aU,tryOnScopeDispose$1 as aV,isIOS as aW,watchEffect as aX,toRef as aY,Teleport as aZ,isRef as a_,renderSlot as aa,createCommentVNode as ab,useCssVars as ac,getCurrentScope as ad,onScopeDispose as ae,inject as af,reactive as ag,ElLoading as ah,withModifiers as ai,mergeProps as aj,On as ak,http as al,onBeforeMount as am,TransitionGroup as an,normalizeClass as ao,vShow as ap,Sr as aq,pt as ar,Ze as as,Xe as at,Ve as au,tryOnMounted as av,tryOnUnmounted$1 as aw,useDebounceFn as ax,Gr as ay,useIntervalFn as az,resolveComponent as b,withKeys as b0,shallowRef as b1,toRaw as b2,ElCol as b3,createStaticVNode as b4,useRoute as b5,addIcon$1 as b6,getParentPaths as b7,findRouteByPath as b8,useMultiTagsStoreHook as b9,ElMessageBox as bA,render$4 as bB,Be as bC,initRouter as bD,getAuths as bE,hasAuth as bF,Ne as bG,handleTree as bH,Er as bI,appendFieldByUniqueId as bJ,getNodeByUniqueId as bK,vt as ba,$t as bb,data$1 as bc,Le as bd,j$2 as be,getTopMenu as bf,emitter as bg,Transition as bh,handleAliveRoute as bi,P$1 as bj,data as bk,routerArrays as bl,St as bm,KeepAlive as bn,removeToken as bo,tr as bp,resetRouter as bq,useMultiTagsStore as br,storeToRefs as bs,useUserStoreHook as bt,router as bu,remainingPaths as bv,cloneVNode as bw,dayjs as bx,en as by,LinearGradient$1 as bz,createBlock as c,defineComponent as d,openBlock as e,createVNode as f,createTextVNode as g,unref as h,createBaseVNode as i,resolveDirective as j,createElementBlock as k,renderList as l,withDirectives as m,nextTick as n,onMounted as o,pushScopeId as p,popScopeId as q,ref as r,axios$1 as s,_t as t,uo as u,toRef$1 as v,withCtx as w,computed as x,watch as y,zt as z};
|