vue-pure-admin/dist/static/js/index-285ed5c1.js
2023-05-27 21:59:43 +08:00

428 lines
2.4 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var zi=Object.defineProperty;var Hi=($,z,ie)=>z in $?zi($,z,{enumerable:!0,configurable:!0,writable:!0,value:ie}):$[z]=ie;var oo=($,z,ie)=>(Hi($,typeof z!="symbol"?z+"":z,ie),ie);(function(){const z=document.createElement("link").relList;if(z&&z.supports&&z.supports("modulepreload"))return;for(const ue of document.querySelectorAll('link[rel="modulepreload"]'))le(ue);new MutationObserver(ue=>{for(const pe of ue)if(pe.type==="childList")for(const _e of pe.addedNodes)_e.tagName==="LINK"&&_e.rel==="modulepreload"&&le(_e)}).observe(document,{childList:!0,subtree:!0});function ie(ue){const pe={};return ue.integrity&&(pe.integrity=ue.integrity),ue.referrerPolicy&&(pe.referrerPolicy=ue.referrerPolicy),ue.crossOrigin==="use-credentials"?pe.credentials="include":ue.crossOrigin==="anonymous"?pe.credentials="omit":pe.credentials="same-origin",pe}function le(ue){if(ue.ep)return;ue.ep=!0;const pe=ie(ue);fetch(ue.href,pe)}})();function makeMap($,z){const ie=Object.create(null),le=$.split(",");for(let ue=0;ue<le.length;ue++)ie[le[ue]]=!0;return z?ue=>!!ie[ue.toLowerCase()]:ue=>!!ie[ue]}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 ie=$.indexOf(z);ie>-1&&$.splice(ie,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 ie=>z[ie]||(z[ie]=$(ie))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction($=>$.replace(camelizeRE,(z,ie)=>ie?ie.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 ie=0;ie<$.length;ie++)$[ie](z)},def=($,z,ie)=>{Object.defineProperty($,z,{configurable:!0,enumerable:!1,value:ie})},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 ie=0;ie<$.length;ie++){const le=$[ie],ue=isString$7(le)?parseStringStyle(le):normalizeStyle$1(le);if(ue)for(const pe in ue)z[pe]=ue[pe]}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(ie=>{if(ie){const le=ie.split(propertyDelimiterRE);le.length>1&&(z[le[0].trim()]=le[1].trim())}}),z}function normalizeClass($){let z="";if(isString$7($))z=$;else if(isArray$c($))for(let ie=0;ie<$.length;ie++){const le=normalizeClass($[ie]);le&&(z+=le+" ")}else if(isObject$8($))for(const ie in $)$[ie]&&(z+=ie+" ");return z.trim()}function normalizeProps($){if(!$)return null;let{class:z,style:ie}=$;return z&&!isString$7(z)&&($.class=normalizeClass(z)),ie&&($.style=normalizeStyle$1(ie)),$}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 ie=!0;for(let le=0;ie&&le<$.length;le++)ie=looseEqual($[le],z[le]);return ie}function looseEqual($,z){if($===z)return!0;let ie=isDate$3($),le=isDate$3(z);if(ie||le)return ie&&le?$.getTime()===z.getTime():!1;if(ie=isSymbol$2($),le=isSymbol$2(z),ie||le)return $===z;if(ie=isArray$c($),le=isArray$c(z),ie||le)return ie&&le?looseCompareArrays($,z):!1;if(ie=isObject$8($),le=isObject$8(z),ie||le){if(!ie||!le)return!1;const ue=Object.keys($).length,pe=Object.keys(z).length;if(ue!==pe)return!1;for(const _e in $){const Ce=$.hasOwnProperty(_e),$e=z.hasOwnProperty(_e);if(Ce&&!$e||!Ce&&$e||!looseEqual($[_e],z[_e]))return!1}}return String($)===String(z)}function looseIndexOf($,z){return $.findIndex(ie=>looseEqual(ie,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((ie,[le,ue])=>(ie[`${le} =>`]=ue,ie),{})}: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 ie=activeEffectScope;try{return activeEffectScope=this,z()}finally{activeEffectScope=ie}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(z){if(this._active){let ie,le;for(ie=0,le=this.effects.length;ie<le;ie++)this.effects[ie].stop();for(ie=0,le=this.cleanups.length;ie<le;ie++)this.cleanups[ie]();if(this.scopes)for(ie=0,le=this.scopes.length;ie<le;ie++)this.scopes[ie].stop(!0);if(!this.detached&&this.parent&&!z){const ue=this.parent.scopes.pop();ue&&ue!==this&&(this.parent.scopes[this.index]=ue,ue.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 ie=0;for(let le=0;le<z.length;le++){const ue=z[le];wasTracked(ue)&&!newTracked(ue)?ue.delete($):z[ie++]=ue,ue.w&=~trackOpBit,ue.n&=~trackOpBit}z.length=ie}},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,ie=null,le){this.fn=z,this.scheduler=ie,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,le)}run(){if(!this.active)return this.fn();let z=activeEffect,ie=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=ie,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 ie=0;ie<z.length;ie++)z[ie].delete($);z.length=0}}function effect($,z){$.effect&&($=$.effect.fn);const ie=new ReactiveEffect($);z&&(extend$2(ie,z),z.scope&&recordEffectScope(ie,z.scope)),(!z||!z.lazy)&&ie.run();const le=ie.run.bind(ie);return le.effect=ie,le}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,ie){if(shouldTrack&&activeEffect){let le=targetMap.get($);le||targetMap.set($,le=new Map);let ue=le.get(ie);ue||le.set(ie,ue=createDep()),trackEffects(ue)}}function trackEffects($,z){let ie=!1;effectTrackDepth<=maxMarkerBits?newTracked($)||($.n|=trackOpBit,ie=!wasTracked($)):ie=!$.has(activeEffect),ie&&($.add(activeEffect),activeEffect.deps.push($))}function trigger$2($,z,ie,le,ue,pe){const _e=targetMap.get($);if(!_e)return;let Ce=[];if(z==="clear")Ce=[..._e.values()];else if(ie==="length"&&isArray$c($)){const $e=Number(le);_e.forEach((xe,Ie)=>{(Ie==="length"||Ie>=$e)&&Ce.push(xe)})}else switch(ie!==void 0&&Ce.push(_e.get(ie)),z){case"add":isArray$c($)?isIntegerKey(ie)&&Ce.push(_e.get("length")):(Ce.push(_e.get(ITERATE_KEY)),isMap$3($)&&Ce.push(_e.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c($)||(Ce.push(_e.get(ITERATE_KEY)),isMap$3($)&&Ce.push(_e.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$3($)&&Ce.push(_e.get(ITERATE_KEY));break}if(Ce.length===1)Ce[0]&&triggerEffects(Ce[0]);else{const $e=[];for(const xe of Ce)xe&&$e.push(...xe);triggerEffects(createDep($e))}}function triggerEffects($,z){const ie=isArray$c($)?$:[...$];for(const le of ie)le.computed&&triggerEffect(le);for(const le of ie)le.computed||triggerEffect(le)}function triggerEffect($,z){($!==activeEffect||$.allowRecurse)&&($.scheduler?$.scheduler():$.run())}function getDepFromReactive($,z){var ie;return(ie=targetMap.get($))==null?void 0:ie.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(...ie){const le=toRaw(this);for(let pe=0,_e=this.length;pe<_e;pe++)track(le,"get",pe+"");const ue=le[z](...ie);return ue===-1||ue===!1?le[z](...ie.map(toRaw)):ue}}),["push","pop","shift","unshift","splice"].forEach(z=>{$[z]=function(...ie){pauseTracking();const le=toRaw(this)[z].apply(this,ie);return resetTracking(),le}}),$}function hasOwnProperty$f($){const z=toRaw(this);return track(z,"has",$),z.hasOwnProperty($)}function createGetter($=!1,z=!1){return function(le,ue,pe){if(ue==="__v_isReactive")return!$;if(ue==="__v_isReadonly")return $;if(ue==="__v_isShallow")return z;if(ue==="__v_raw"&&pe===($?z?shallowReadonlyMap:readonlyMap:z?shallowReactiveMap:reactiveMap).get(le))return le;const _e=isArray$c(le);if(!$){if(_e&&hasOwn$4(arrayInstrumentations,ue))return Reflect.get(arrayInstrumentations,ue,pe);if(ue==="hasOwnProperty")return hasOwnProperty$f}const Ce=Reflect.get(le,ue,pe);return(isSymbol$2(ue)?builtInSymbols.has(ue):isNonTrackableKeys(ue))||($||track(le,"get",ue),z)?Ce:isRef(Ce)?_e&&isIntegerKey(ue)?Ce:Ce.value:isObject$8(Ce)?$?readonly(Ce):reactive(Ce):Ce}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter($=!1){return function(ie,le,ue,pe){let _e=ie[le];if(isReadonly(_e)&&isRef(_e)&&!isRef(ue))return!1;if(!$&&(!isShallow(ue)&&!isReadonly(ue)&&(_e=toRaw(_e),ue=toRaw(ue)),!isArray$c(ie)&&isRef(_e)&&!isRef(ue)))return _e.value=ue,!0;const Ce=isArray$c(ie)&&isIntegerKey(le)?Number(le)<ie.length:hasOwn$4(ie,le),$e=Reflect.set(ie,le,ue,pe);return ie===toRaw(pe)&&(Ce?hasChanged(ue,_e)&&trigger$2(ie,"set",le,ue):trigger$2(ie,"add",le,ue)),$e}}function deleteProperty($,z){const ie=hasOwn$4($,z);$[z];const le=Reflect.deleteProperty($,z);return le&&ie&&trigger$2($,"delete",z,void 0),le}function has$1$1($,z){const ie=Reflect.has($,z);return(!isSymbol$2(z)||!builtInSymbols.has(z))&&track($,"has",z),ie}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,ie=!1,le=!1){$=$.__v_raw;const ue=toRaw($),pe=toRaw(z);ie||(z!==pe&&track(ue,"get",z),track(ue,"get",pe));const{has:_e}=getProto$1(ue),Ce=le?toShallow:ie?toReadonly:toReactive;if(_e.call(ue,z))return Ce($.get(z));if(_e.call(ue,pe))return Ce($.get(pe));$!==ue&&$.get(z)}function has$5($,z=!1){const ie=this.__v_raw,le=toRaw(ie),ue=toRaw($);return z||($!==ue&&track(le,"has",$),track(le,"has",ue)),$===ue?ie.has($):ie.has($)||ie.has(ue)}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 ie=toRaw(this),{has:le,get:ue}=getProto$1(ie);let pe=le.call(ie,$);pe||($=toRaw($),pe=le.call(ie,$));const _e=ue.call(ie,$);return ie.set($,z),pe?hasChanged(z,_e)&&trigger$2(ie,"set",$,z):trigger$2(ie,"add",$,z),this}function deleteEntry($){const z=toRaw(this),{has:ie,get:le}=getProto$1(z);let ue=ie.call(z,$);ue||($=toRaw($),ue=ie.call(z,$)),le&&le.call(z,$);const pe=z.delete($);return ue&&trigger$2(z,"delete",$,void 0),pe}function clear$2(){const $=toRaw(this),z=$.size!==0,ie=$.clear();return z&&trigger$2($,"clear",void 0,void 0),ie}function createForEach($,z){return function(le,ue){const pe=this,_e=pe.__v_raw,Ce=toRaw(_e),$e=z?toShallow:$?toReadonly:toReactive;return!$&&track(Ce,"iterate",ITERATE_KEY),_e.forEach((xe,Ie)=>le.call(ue,$e(xe),$e(Ie),pe))}}function createIterableMethod($,z,ie){return function(...le){const ue=this.__v_raw,pe=toRaw(ue),_e=isMap$3(pe),Ce=$==="entries"||$===Symbol.iterator&&_e,$e=$==="keys"&&_e,xe=ue[$](...le),Ie=ie?toShallow:z?toReadonly:toReactive;return!z&&track(pe,"iterate",$e?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:ze,done:Ue}=xe.next();return Ue?{value:ze,done:Ue}:{value:Ce?[Ie(ze[0]),Ie(ze[1])]:Ie(ze),done:Ue}},[Symbol.iterator](){return this}}}}function createReadonlyMethod($){return function(...z){return $==="delete"?!1:this}}function createInstrumentations(){const $={get(pe){return get$2(this,pe)},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(pe){return get$2(this,pe,!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)},ie={get(pe){return get$2(this,pe,!0)},get size(){return size(this,!0)},has(pe){return has$5.call(this,pe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},le={get(pe){return get$2(this,pe,!0,!0)},get size(){return size(this,!0)},has(pe){return has$5.call(this,pe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(pe=>{$[pe]=createIterableMethod(pe,!1,!1),ie[pe]=createIterableMethod(pe,!0,!1),z[pe]=createIterableMethod(pe,!1,!0),le[pe]=createIterableMethod(pe,!0,!0)}),[$,ie,z,le]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter($,z){const ie=z?$?shallowReadonlyInstrumentations:shallowInstrumentations:$?readonlyInstrumentations:mutableInstrumentations;return(le,ue,pe)=>ue==="__v_isReactive"?!$:ue==="__v_isReadonly"?$:ue==="__v_raw"?le:Reflect.get(hasOwn$4(ie,ue)&&ue in le?ie:le,ue,pe)}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,ie,le,ue){if(!isObject$8($)||$.__v_raw&&!(z&&$.__v_isReactive))return $;const pe=ue.get($);if(pe)return pe;const _e=getTargetType($);if(_e===0)return $;const Ce=new Proxy($,_e===2?le:ie);return ue.set($,Ce),Ce}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 ie=$.dep;ie&&triggerEffects(ie)}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,ie){this.__v_isShallow=ie,this.dep=void 0,this.__v_isRef=!0,this._rawValue=ie?z:toRaw(z),this._value=ie?z:toReactive(z)}get value(){return trackRefValue(this),this._value}set value(z){const ie=this.__v_isShallow||isShallow(z)||isReadonly(z);z=ie?z:toRaw(z),hasChanged(z,this._rawValue)&&(this._rawValue=z,this._value=ie?z:toReactive(z),triggerRefValue(this))}}function triggerRef($){triggerRefValue($)}function unref($){return isRef($)?$.value:$}function toValue$1($){return isFunction$5($)?$():unref($)}const shallowUnwrapHandlers={get:($,z,ie)=>unref(Reflect.get($,z,ie)),set:($,z,ie,le)=>{const ue=$[z];return isRef(ue)&&!isRef(ie)?(ue.value=ie,!0):Reflect.set($,z,ie,le)}};function proxyRefs($){return isReactive($)?$:new Proxy($,shallowUnwrapHandlers)}class CustomRefImpl{constructor(z){this.dep=void 0,this.__v_isRef=!0;const{get:ie,set:le}=z(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=ie,this._set=le}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 ie in $)z[ie]=propertyToRef($,ie);return z}class ObjectRefImpl{constructor(z,ie,le){this._object=z,this._key=ie,this._defaultValue=le,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,ie){return isRef($)?$:isFunction$5($)?new GetterRefImpl($):isObject$8($)&&arguments.length>1?propertyToRef($,z,ie):ref($)}function propertyToRef($,z,ie){const le=$[z];return isRef(le)?le:new ObjectRefImpl($,z,ie)}class ComputedRefImpl{constructor(z,ie,le,ue){this._setter=ie,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=!ue,this.__v_isReadonly=le}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,ie=!1){let le,ue;const pe=isFunction$5($);return pe?(le=$,ue=NOOP):(le=$.get,ue=$.set),new ComputedRefImpl(le,ue,pe||!ue,ie)}function warn$2($,...z){}function assertNumber($,z){}function callWithErrorHandling($,z,ie,le){let ue;try{ue=le?$(...le):$()}catch(pe){handleError(pe,z,ie)}return ue}function callWithAsyncErrorHandling($,z,ie,le){if(isFunction$5($)){const pe=callWithErrorHandling($,z,ie,le);return pe&&isPromise(pe)&&pe.catch(_e=>{handleError(_e,z,ie)}),pe}const ue=[];for(let pe=0;pe<$.length;pe++)ue.push(callWithAsyncErrorHandling($[pe],z,ie,le));return ue}function handleError($,z,ie,le=!0){const ue=z?z.vnode:null;if(z){let pe=z.parent;const _e=z.proxy,Ce=ie;for(;pe;){const xe=pe.ec;if(xe){for(let Ie=0;Ie<xe.length;Ie++)if(xe[Ie]($,_e,Ce)===!1)return}pe=pe.parent}const $e=z.appContext.config.errorHandler;if($e){callWithErrorHandling($e,null,10,[$,_e,Ce]);return}}logError$1($,ie,ue,le)}function logError$1($,z,ie,le=!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,ie=queue.length;for(;z<ie;){const le=z+ie>>>1;getId$1(queue[le])<$?z=le+1:ie=le}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 ie=queue[z];ie&&ie.pre&&(queue.splice(z,1),z--,ie())}}function flushPostFlushCbs($){if(pendingPostFlushCbs.length){const z=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...z);return}for(activePostFlushCbs=z,activePostFlushCbs.sort((ie,le)=>getId$1(ie)-getId$1(le)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId$1=$=>$.id==null?1/0:$.id,comparator=($,z)=>{const ie=getId$1($)-getId$1(z);if(ie===0){if($.pre&&!z.pre)return-1;if(z.pre&&!$.pre)return 1}return ie};function flushJobs($){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const z=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const ie=queue[flushIndex];ie&&ie.active!==!1&&callWithErrorHandling(ie,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 ie,le;devtools=$,devtools?(devtools.enabled=!0,buffer.forEach(({event:ue,args:pe})=>devtools.emit(ue,...pe)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((le=(ie=window.navigator)==null?void 0:ie.userAgent)!=null&&le.includes("jsdom"))?((z.__VUE_DEVTOOLS_HOOK_REPLAY__=z.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(pe=>{setDevtoolsHook(pe,z)}),setTimeout(()=>{devtools||(z.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit($,z,...ie){if($.isUnmounted)return;const le=$.vnode.props||EMPTY_OBJ$1;let ue=ie;const pe=z.startsWith("update:"),_e=pe&&z.slice(7);if(_e&&_e in le){const Ie=`${_e==="modelValue"?"model":_e}Modifiers`,{number:ze,trim:Ue}=le[Ie]||EMPTY_OBJ$1;Ue&&(ue=ie.map(qe=>isString$7(qe)?qe.trim():qe)),ze&&(ue=ie.map(looseToNumber))}let Ce,$e=le[Ce=toHandlerKey(z)]||le[Ce=toHandlerKey(camelize(z))];!$e&&pe&&($e=le[Ce=toHandlerKey(hyphenate(z))]),$e&&callWithAsyncErrorHandling($e,$,6,ue);const xe=le[Ce+"Once"];if(xe){if(!$.emitted)$.emitted={};else if($.emitted[Ce])return;$.emitted[Ce]=!0,callWithAsyncErrorHandling(xe,$,6,ue)}}function normalizeEmitsOptions($,z,ie=!1){const le=z.emitsCache,ue=le.get($);if(ue!==void 0)return ue;const pe=$.emits;let _e={},Ce=!1;if(!isFunction$5($)){const $e=xe=>{const Ie=normalizeEmitsOptions(xe,z,!0);Ie&&(Ce=!0,extend$2(_e,Ie))};!ie&&z.mixins.length&&z.mixins.forEach($e),$.extends&&$e($.extends),$.mixins&&$.mixins.forEach($e)}return!pe&&!Ce?(isObject$8($)&&le.set($,null),null):(isArray$c(pe)?pe.forEach($e=>_e[$e]=null):extend$2(_e,pe),isObject$8($)&&le.set($,_e),_e)}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,ie){if(!z||$._n)return $;const le=(...ue)=>{le._d&&setBlockTracking(-1);const pe=setCurrentRenderingInstance(z);let _e;try{_e=$(...ue)}finally{setCurrentRenderingInstance(pe),le._d&&setBlockTracking(1)}return _e};return le._n=!0,le._c=!0,le._d=!0,le}function markAttrsAccessed(){}function renderComponentRoot($){const{type:z,vnode:ie,proxy:le,withProxy:ue,props:pe,propsOptions:[_e],slots:Ce,attrs:$e,emit:xe,render:Ie,renderCache:ze,data:Ue,setupState:qe,ctx:Et,inheritAttrs:Lt}=$;let hn,vn;const _n=setCurrentRenderingInstance($);try{if(ie.shapeFlag&4){const Sn=ue||le;hn=normalizeVNode(Ie.call(Sn,Sn,ze,pe,qe,Ue,Et)),vn=$e}else{const Sn=z;hn=normalizeVNode(Sn.length>1?Sn(pe,{attrs:$e,slots:Ce,emit:xe}):Sn(pe,null)),vn=z.props?$e:getFunctionalFallthrough($e)}}catch(Sn){blockStack.length=0,handleError(Sn,$,1),hn=createVNode(Comment)}let bn=hn;if(vn&&Lt!==!1){const Sn=Object.keys(vn),{shapeFlag:Cn}=bn;Sn.length&&Cn&7&&(_e&&Sn.some(isModelListener)&&(vn=filterModelListeners(vn,_e)),bn=cloneVNode(bn,vn))}return ie.dirs&&(bn=cloneVNode(bn),bn.dirs=bn.dirs?bn.dirs.concat(ie.dirs):ie.dirs),ie.transition&&(bn.transition=ie.transition),hn=bn,setCurrentRenderingInstance(_n),hn}function filterSingleRoot($){let z;for(let ie=0;ie<$.length;ie++){const le=$[ie];if(isVNode$1(le)){if(le.type!==Comment||le.children==="v-if"){if(z)return;z=le}}else return}return z}const getFunctionalFallthrough=$=>{let z;for(const ie in $)(ie==="class"||ie==="style"||isOn(ie))&&((z||(z={}))[ie]=$[ie]);return z},filterModelListeners=($,z)=>{const ie={};for(const le in $)(!isModelListener(le)||!(le.slice(9)in z))&&(ie[le]=$[le]);return ie};function shouldUpdateComponent($,z,ie){const{props:le,children:ue,component:pe}=$,{props:_e,children:Ce,patchFlag:$e}=z,xe=pe.emitsOptions;if(z.dirs||z.transition)return!0;if(ie&&$e>=0){if($e&1024)return!0;if($e&16)return le?hasPropsChanged(le,_e,xe):!!_e;if($e&8){const Ie=z.dynamicProps;for(let ze=0;ze<Ie.length;ze++){const Ue=Ie[ze];if(_e[Ue]!==le[Ue]&&!isEmitListener(xe,Ue))return!0}}}else return(ue||Ce)&&(!Ce||!Ce.$stable)?!0:le===_e?!1:le?_e?hasPropsChanged(le,_e,xe):!0:!!_e;return!1}function hasPropsChanged($,z,ie){const le=Object.keys(z);if(le.length!==Object.keys($).length)return!0;for(let ue=0;ue<le.length;ue++){const pe=le[ue];if(z[pe]!==$[pe]&&!isEmitListener(ie,pe))return!0}return!1}function updateHOCHostEl({vnode:$,parent:z},ie){for(;z&&z.subTree===$;)($=z.vnode).el=ie,z=z.parent}const isSuspense=$=>$.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process($,z,ie,le,ue,pe,_e,Ce,$e,xe){$==null?mountSuspense(z,ie,le,ue,pe,_e,Ce,$e,xe):patchSuspense($,z,ie,le,ue,_e,Ce,$e,xe)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1($,z){const ie=$.props&&$.props[z];isFunction$5(ie)&&ie()}function mountSuspense($,z,ie,le,ue,pe,_e,Ce,$e){const{p:xe,o:{createElement:Ie}}=$e,ze=Ie("div"),Ue=$.suspense=createSuspenseBoundary($,ue,le,z,ze,ie,pe,_e,Ce,$e);xe(null,Ue.pendingBranch=$.ssContent,ze,null,le,Ue,pe,_e),Ue.deps>0?(triggerEvent$1($,"onPending"),triggerEvent$1($,"onFallback"),xe(null,$.ssFallback,z,ie,le,null,pe,_e),setActiveBranch(Ue,$.ssFallback)):Ue.resolve(!1,!0)}function patchSuspense($,z,ie,le,ue,pe,_e,Ce,{p:$e,um:xe,o:{createElement:Ie}}){const ze=z.suspense=$.suspense;ze.vnode=z,z.el=$.el;const Ue=z.ssContent,qe=z.ssFallback,{activeBranch:Et,pendingBranch:Lt,isInFallback:hn,isHydrating:vn}=ze;if(Lt)ze.pendingBranch=Ue,isSameVNodeType(Ue,Lt)?($e(Lt,Ue,ze.hiddenContainer,null,ue,ze,pe,_e,Ce),ze.deps<=0?ze.resolve():hn&&($e(Et,qe,ie,le,ue,null,pe,_e,Ce),setActiveBranch(ze,qe))):(ze.pendingId++,vn?(ze.isHydrating=!1,ze.activeBranch=Lt):xe(Lt,ue,ze),ze.deps=0,ze.effects.length=0,ze.hiddenContainer=Ie("div"),hn?($e(null,Ue,ze.hiddenContainer,null,ue,ze,pe,_e,Ce),ze.deps<=0?ze.resolve():($e(Et,qe,ie,le,ue,null,pe,_e,Ce),setActiveBranch(ze,qe))):Et&&isSameVNodeType(Ue,Et)?($e(Et,Ue,ie,le,ue,ze,pe,_e,Ce),ze.resolve(!0)):($e(null,Ue,ze.hiddenContainer,null,ue,ze,pe,_e,Ce),ze.deps<=0&&ze.resolve()));else if(Et&&isSameVNodeType(Ue,Et))$e(Et,Ue,ie,le,ue,ze,pe,_e,Ce),setActiveBranch(ze,Ue);else if(triggerEvent$1(z,"onPending"),ze.pendingBranch=Ue,ze.pendingId++,$e(null,Ue,ze.hiddenContainer,null,ue,ze,pe,_e,Ce),ze.deps<=0)ze.resolve();else{const{timeout:_n,pendingId:bn}=ze;_n>0?setTimeout(()=>{ze.pendingId===bn&&ze.fallback(qe)},_n):_n===0&&ze.fallback(qe)}}function createSuspenseBoundary($,z,ie,le,ue,pe,_e,Ce,$e,xe,Ie=!1){const{p:ze,m:Ue,um:qe,n:Et,o:{parentNode:Lt,remove:hn}}=xe;let vn;const _n=isVNodeSuspensible($);_n&&z!=null&&z.pendingBranch&&(vn=z.pendingId,z.deps++);const bn=$.props?toNumber$1($.props.timeout):void 0,Sn={vnode:$,parent:z,parentComponent:ie,isSVG:_e,container:le,hiddenContainer:ue,anchor:pe,deps:0,pendingId:0,timeout:typeof bn=="number"?bn:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:Ie,isUnmounted:!1,effects:[],resolve(Cn=!1,En=!1){const{vnode:$n,activeBranch:wn,pendingBranch:Tn,pendingId:xn,effects:Pn,parentComponent:kn,container:An}=Sn;if(Sn.isHydrating)Sn.isHydrating=!1;else if(!Cn){const Ln=wn&&Tn.transition&&Tn.transition.mode==="out-in";Ln&&(wn.transition.afterLeave=()=>{xn===Sn.pendingId&&Ue(Tn,An,In,0)});let{anchor:In}=Sn;wn&&(In=Et(wn),qe(wn,kn,Sn,!0)),Ln||Ue(Tn,An,In,0)}setActiveBranch(Sn,Tn),Sn.pendingBranch=null,Sn.isInFallback=!1;let Nn=Sn.parent,Fn=!1;for(;Nn;){if(Nn.pendingBranch){Nn.effects.push(...Pn),Fn=!0;break}Nn=Nn.parent}Fn||queuePostFlushCb(Pn),Sn.effects=[],_n&&z&&z.pendingBranch&&vn===z.pendingId&&(z.deps--,z.deps===0&&!En&&z.resolve()),triggerEvent$1($n,"onResolve")},fallback(Cn){if(!Sn.pendingBranch)return;const{vnode:En,activeBranch:$n,parentComponent:wn,container:Tn,isSVG:xn}=Sn;triggerEvent$1(En,"onFallback");const Pn=Et($n),kn=()=>{Sn.isInFallback&&(ze(null,Cn,Tn,Pn,wn,null,xn,Ce,$e),setActiveBranch(Sn,Cn))},An=Cn.transition&&Cn.transition.mode==="out-in";An&&($n.transition.afterLeave=kn),Sn.isInFallback=!0,qe($n,wn,null,!0),An||kn()},move(Cn,En,$n){Sn.activeBranch&&Ue(Sn.activeBranch,Cn,En,$n),Sn.container=Cn},next(){return Sn.activeBranch&&Et(Sn.activeBranch)},registerDep(Cn,En){const $n=!!Sn.pendingBranch;$n&&Sn.deps++;const wn=Cn.vnode.el;Cn.asyncDep.catch(Tn=>{handleError(Tn,Cn,0)}).then(Tn=>{if(Cn.isUnmounted||Sn.isUnmounted||Sn.pendingId!==Cn.suspenseId)return;Cn.asyncResolved=!0;const{vnode:xn}=Cn;handleSetupResult(Cn,Tn,!1),wn&&(xn.el=wn);const Pn=!wn&&Cn.subTree.el;En(Cn,xn,Lt(wn||Cn.subTree.el),wn?null:Et(Cn.subTree),Sn,_e,$e),Pn&&hn(Pn),updateHOCHostEl(Cn,xn.el),$n&&--Sn.deps===0&&Sn.resolve()})},unmount(Cn,En){Sn.isUnmounted=!0,Sn.activeBranch&&qe(Sn.activeBranch,ie,Cn,En),Sn.pendingBranch&&qe(Sn.pendingBranch,ie,Cn,En)}};return Sn}function hydrateSuspense($,z,ie,le,ue,pe,_e,Ce,$e){const xe=z.suspense=createSuspenseBoundary(z,le,ie,$.parentNode,document.createElement("div"),null,ue,pe,_e,Ce,!0),Ie=$e($,xe.pendingBranch=z.ssContent,ie,xe,pe,_e);return xe.deps===0&&xe.resolve(!1,!0),Ie}function normalizeSuspenseChildren($){const{shapeFlag:z,children:ie}=$,le=z&32;$.ssContent=normalizeSuspenseSlot(le?ie.default:ie),$.ssFallback=le?normalizeSuspenseSlot(ie.fallback):createVNode(Comment)}function normalizeSuspenseSlot($){let z;if(isFunction$5($)){const ie=isBlockTreeEnabled&&$._c;ie&&($._d=!1,openBlock()),$=$(),ie&&($._d=!0,z=currentBlock,closeBlock())}return isArray$c($)&&($=filterSingleRoot($)),$=normalizeVNode($),z&&!$.dynamicChildren&&($.dynamicChildren=z.filter(ie=>ie!==$)),$}function queueEffectWithSuspense($,z){z&&z.pendingBranch?isArray$c($)?z.effects.push(...$):z.effects.push($):queuePostFlushCb($)}function setActiveBranch($,z){$.activeBranch=z;const{vnode:ie,parentComponent:le}=$,ue=ie.el=z.el;le&&le.subTree===ie&&(le.vnode.el=ue,updateHOCHostEl(le,ue))}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,ie){return doWatch($,z,ie)}function doWatch($,z,{immediate:ie,deep:le,flush:ue,onTrack:pe,onTrigger:_e}=EMPTY_OBJ$1){var Ce;const $e=getCurrentScope()===((Ce=currentInstance)==null?void 0:Ce.scope)?currentInstance:null;let xe,Ie=!1,ze=!1;if(isRef($)?(xe=()=>$.value,Ie=isShallow($)):isReactive($)?(xe=()=>$,le=!0):isArray$c($)?(ze=!0,Ie=$.some(Sn=>isReactive(Sn)||isShallow(Sn)),xe=()=>$.map(Sn=>{if(isRef(Sn))return Sn.value;if(isReactive(Sn))return traverse(Sn);if(isFunction$5(Sn))return callWithErrorHandling(Sn,$e,2)})):isFunction$5($)?z?xe=()=>callWithErrorHandling($,$e,2):xe=()=>{if(!($e&&$e.isUnmounted))return Ue&&Ue(),callWithAsyncErrorHandling($,$e,3,[qe])}:xe=NOOP,z&&le){const Sn=xe;xe=()=>traverse(Sn())}let Ue,qe=Sn=>{Ue=_n.onStop=()=>{callWithErrorHandling(Sn,$e,4)}},Et;if(isInSSRComponentSetup)if(qe=NOOP,z?ie&&callWithAsyncErrorHandling(z,$e,3,[xe(),ze?[]:void 0,qe]):xe(),ue==="sync"){const Sn=useSSRContext();Et=Sn.__watcherHandles||(Sn.__watcherHandles=[])}else return NOOP;let Lt=ze?new Array($.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const hn=()=>{if(_n.active)if(z){const Sn=_n.run();(le||Ie||(ze?Sn.some((Cn,En)=>hasChanged(Cn,Lt[En])):hasChanged(Sn,Lt)))&&(Ue&&Ue(),callWithAsyncErrorHandling(z,$e,3,[Sn,Lt===INITIAL_WATCHER_VALUE?void 0:ze&&Lt[0]===INITIAL_WATCHER_VALUE?[]:Lt,qe]),Lt=Sn)}else _n.run()};hn.allowRecurse=!!z;let vn;ue==="sync"?vn=hn:ue==="post"?vn=()=>queuePostRenderEffect(hn,$e&&$e.suspense):(hn.pre=!0,$e&&(hn.id=$e.uid),vn=()=>queueJob(hn));const _n=new ReactiveEffect(xe,vn);z?ie?hn():Lt=_n.run():ue==="post"?queuePostRenderEffect(_n.run.bind(_n),$e&&$e.suspense):_n.run();const bn=()=>{_n.stop(),$e&&$e.scope&&remove($e.scope.effects,_n)};return Et&&Et.push(bn),bn}function instanceWatch($,z,ie){const le=this.proxy,ue=isString$7($)?$.includes(".")?createPathGetter(le,$):()=>le[$]:$.bind(le,le);let pe;isFunction$5(z)?pe=z:(pe=z.handler,ie=z);const _e=currentInstance;setCurrentInstance(this);const Ce=doWatch(ue,pe.bind(le),ie);return _e?setCurrentInstance(_e):unsetCurrentInstance(),Ce}function createPathGetter($,z){const ie=z.split(".");return()=>{let le=$;for(let ue=0;ue<ie.length&&le;ue++)le=le[ie[ue]];return le}}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 ie=0;ie<$.length;ie++)traverse($[ie],z);else if(isSet$3($)||isMap$3($))$.forEach(ie=>{traverse(ie,z)});else if(isPlainObject$4($))for(const ie in $)traverse($[ie],z);return $}function withDirectives($,z){const ie=currentRenderingInstance;if(ie===null)return $;const le=getExposeProxy(ie)||ie.proxy,ue=$.dirs||($.dirs=[]);for(let pe=0;pe<z.length;pe++){let[_e,Ce,$e,xe=EMPTY_OBJ$1]=z[pe];_e&&(isFunction$5(_e)&&(_e={mounted:_e,updated:_e}),_e.deep&&traverse(Ce),ue.push({dir:_e,instance:le,value:Ce,oldValue:void 0,arg:$e,modifiers:xe}))}return $}function invokeDirectiveHook($,z,ie,le){const ue=$.dirs,pe=z&&z.dirs;for(let _e=0;_e<ue.length;_e++){const Ce=ue[_e];pe&&(Ce.oldValue=pe[_e].value);let $e=Ce.dir[le];$e&&(pauseTracking(),callWithAsyncErrorHandling($e,ie,8,[$.el,Ce,$,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 ie=getCurrentInstance(),le=useTransitionState();let ue;return()=>{const pe=z.default&&getTransitionRawChildren(z.default(),!0);if(!pe||!pe.length)return;let _e=pe[0];if(pe.length>1){for(const Lt of pe)if(Lt.type!==Comment){_e=Lt;break}}const Ce=toRaw($),{mode:$e}=Ce;if(le.isLeaving)return emptyPlaceholder(_e);const xe=getKeepAliveChild(_e);if(!xe)return emptyPlaceholder(_e);const Ie=resolveTransitionHooks(xe,Ce,le,ie);setTransitionHooks(xe,Ie);const ze=ie.subTree,Ue=ze&&getKeepAliveChild(ze);let qe=!1;const{getTransitionKey:Et}=xe.type;if(Et){const Lt=Et();ue===void 0?ue=Lt:Lt!==ue&&(ue=Lt,qe=!0)}if(Ue&&Ue.type!==Comment&&(!isSameVNodeType(xe,Ue)||qe)){const Lt=resolveTransitionHooks(Ue,Ce,le,ie);if(setTransitionHooks(Ue,Lt),$e==="out-in")return le.isLeaving=!0,Lt.afterLeave=()=>{le.isLeaving=!1,ie.update.active!==!1&&ie.update()},emptyPlaceholder(_e);$e==="in-out"&&xe.type!==Comment&&(Lt.delayLeave=(hn,vn,_n)=>{const bn=getLeavingNodesForType(le,Ue);bn[String(Ue.key)]=Ue,hn._leaveCb=()=>{vn(),hn._leaveCb=void 0,delete Ie.delayedLeave},Ie.delayedLeave=_n})}return _e}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType($,z){const{leavingVNodes:ie}=$;let le=ie.get(z.type);return le||(le=Object.create(null),ie.set(z.type,le)),le}function resolveTransitionHooks($,z,ie,le){const{appear:ue,mode:pe,persisted:_e=!1,onBeforeEnter:Ce,onEnter:$e,onAfterEnter:xe,onEnterCancelled:Ie,onBeforeLeave:ze,onLeave:Ue,onAfterLeave:qe,onLeaveCancelled:Et,onBeforeAppear:Lt,onAppear:hn,onAfterAppear:vn,onAppearCancelled:_n}=z,bn=String($.key),Sn=getLeavingNodesForType(ie,$),Cn=(wn,Tn)=>{wn&&callWithAsyncErrorHandling(wn,le,9,Tn)},En=(wn,Tn)=>{const xn=Tn[1];Cn(wn,Tn),isArray$c(wn)?wn.every(Pn=>Pn.length<=1)&&xn():wn.length<=1&&xn()},$n={mode:pe,persisted:_e,beforeEnter(wn){let Tn=Ce;if(!ie.isMounted)if(ue)Tn=Lt||Ce;else return;wn._leaveCb&&wn._leaveCb(!0);const xn=Sn[bn];xn&&isSameVNodeType($,xn)&&xn.el._leaveCb&&xn.el._leaveCb(),Cn(Tn,[wn])},enter(wn){let Tn=$e,xn=xe,Pn=Ie;if(!ie.isMounted)if(ue)Tn=hn||$e,xn=vn||xe,Pn=_n||Ie;else return;let kn=!1;const An=wn._enterCb=Nn=>{kn||(kn=!0,Nn?Cn(Pn,[wn]):Cn(xn,[wn]),$n.delayedLeave&&$n.delayedLeave(),wn._enterCb=void 0)};Tn?En(Tn,[wn,An]):An()},leave(wn,Tn){const xn=String($.key);if(wn._enterCb&&wn._enterCb(!0),ie.isUnmounting)return Tn();Cn(ze,[wn]);let Pn=!1;const kn=wn._leaveCb=An=>{Pn||(Pn=!0,Tn(),An?Cn(Et,[wn]):Cn(qe,[wn]),wn._leaveCb=void 0,Sn[xn]===$&&delete Sn[xn])};Sn[xn]=$,Ue?En(Ue,[wn,kn]):kn()},clone(wn){return resolveTransitionHooks(wn,z,ie,le)}};return $n}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,ie){let le=[],ue=0;for(let pe=0;pe<$.length;pe++){let _e=$[pe];const Ce=ie==null?_e.key:String(ie)+String(_e.key!=null?_e.key:pe);_e.type===Fragment?(_e.patchFlag&128&&ue++,le=le.concat(getTransitionRawChildren(_e.children,z,Ce))):(z||_e.type!==Comment)&&le.push(Ce!=null?cloneVNode(_e,{key:Ce}):_e)}if(ue>1)for(let pe=0;pe<le.length;pe++)le[pe].patchFlag=-2;return le}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:ie,errorComponent:le,delay:ue=200,timeout:pe,suspensible:_e=!0,onError:Ce}=$;let $e=null,xe,Ie=0;const ze=()=>(Ie++,$e=null,Ue()),Ue=()=>{let qe;return $e||(qe=$e=z().catch(Et=>{if(Et=Et instanceof Error?Et:new Error(String(Et)),Ce)return new Promise((Lt,hn)=>{Ce(Et,()=>Lt(ze()),()=>hn(Et),Ie+1)});throw Et}).then(Et=>qe!==$e&&$e?$e:(Et&&(Et.__esModule||Et[Symbol.toStringTag]==="Module")&&(Et=Et.default),xe=Et,Et)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:Ue,get __asyncResolved(){return xe},setup(){const qe=currentInstance;if(xe)return()=>createInnerComp(xe,qe);const Et=_n=>{$e=null,handleError(_n,qe,13,!le)};if(_e&&qe.suspense||isInSSRComponentSetup)return Ue().then(_n=>()=>createInnerComp(_n,qe)).catch(_n=>(Et(_n),()=>le?createVNode(le,{error:_n}):null));const Lt=ref(!1),hn=ref(),vn=ref(!!ue);return ue&&setTimeout(()=>{vn.value=!1},ue),pe!=null&&setTimeout(()=>{if(!Lt.value&&!hn.value){const _n=new Error(`Async component timed out after ${pe}ms.`);Et(_n),hn.value=_n}},pe),Ue().then(()=>{Lt.value=!0,qe.parent&&isKeepAlive(qe.parent.vnode)&&queueJob(qe.parent.update)}).catch(_n=>{Et(_n),hn.value=_n}),()=>{if(Lt.value&&xe)return createInnerComp(xe,qe);if(hn.value&&le)return createVNode(le,{error:hn.value});if(ie&&!vn.value)return createVNode(ie)}}})}function createInnerComp($,z){const{ref:ie,props:le,children:ue,ce:pe}=z.vnode,_e=createVNode($,le,ue);return _e.ref=ie,_e.ce=pe,delete z.vnode.ce,_e}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 ie=getCurrentInstance(),le=ie.ctx;if(!le.renderer)return()=>{const _n=z.default&&z.default();return _n&&_n.length===1?_n[0]:_n};const ue=new Map,pe=new Set;let _e=null;const Ce=ie.suspense,{renderer:{p:$e,m:xe,um:Ie,o:{createElement:ze}}}=le,Ue=ze("div");le.activate=(_n,bn,Sn,Cn,En)=>{const $n=_n.component;xe(_n,bn,Sn,0,Ce),$e($n.vnode,_n,bn,Sn,$n,Ce,Cn,_n.slotScopeIds,En),queuePostRenderEffect(()=>{$n.isDeactivated=!1,$n.a&&invokeArrayFns($n.a);const wn=_n.props&&_n.props.onVnodeMounted;wn&&invokeVNodeHook(wn,$n.parent,_n)},Ce)},le.deactivate=_n=>{const bn=_n.component;xe(_n,Ue,null,1,Ce),queuePostRenderEffect(()=>{bn.da&&invokeArrayFns(bn.da);const Sn=_n.props&&_n.props.onVnodeUnmounted;Sn&&invokeVNodeHook(Sn,bn.parent,_n),bn.isDeactivated=!0},Ce)};function qe(_n){resetShapeFlag(_n),Ie(_n,ie,Ce,!0)}function Et(_n){ue.forEach((bn,Sn)=>{const Cn=getComponentName(bn.type);Cn&&(!_n||!_n(Cn))&&Lt(Sn)})}function Lt(_n){const bn=ue.get(_n);!_e||!isSameVNodeType(bn,_e)?qe(bn):_e&&resetShapeFlag(_e),ue.delete(_n),pe.delete(_n)}watch(()=>[$.include,$.exclude],([_n,bn])=>{_n&&Et(Sn=>matches(_n,Sn)),bn&&Et(Sn=>!matches(bn,Sn))},{flush:"post",deep:!0});let hn=null;const vn=()=>{hn!=null&&ue.set(hn,getInnerChild(ie.subTree))};return onMounted(vn),onUpdated(vn),onBeforeUnmount(()=>{ue.forEach(_n=>{const{subTree:bn,suspense:Sn}=ie,Cn=getInnerChild(bn);if(_n.type===Cn.type&&_n.key===Cn.key){resetShapeFlag(Cn);const En=Cn.component.da;En&&queuePostRenderEffect(En,Sn);return}qe(_n)})}),()=>{if(hn=null,!z.default)return null;const _n=z.default(),bn=_n[0];if(_n.length>1)return _e=null,_n;if(!isVNode$1(bn)||!(bn.shapeFlag&4)&&!(bn.shapeFlag&128))return _e=null,bn;let Sn=getInnerChild(bn);const Cn=Sn.type,En=getComponentName(isAsyncWrapper(Sn)?Sn.type.__asyncResolved||{}:Cn),{include:$n,exclude:wn,max:Tn}=$;if($n&&(!En||!matches($n,En))||wn&&En&&matches(wn,En))return _e=Sn,bn;const xn=Sn.key==null?Cn:Sn.key,Pn=ue.get(xn);return Sn.el&&(Sn=cloneVNode(Sn),bn.shapeFlag&128&&(bn.ssContent=Sn)),hn=xn,Pn?(Sn.el=Pn.el,Sn.component=Pn.component,Sn.transition&&setTransitionHooks(Sn,Sn.transition),Sn.shapeFlag|=512,pe.delete(xn),pe.add(xn)):(pe.add(xn),Tn&&pe.size>parseInt(Tn,10)&&Lt(pe.values().next().value)),Sn.shapeFlag|=256,_e=Sn,isSuspense(bn.type)?bn:Sn}}},KeepAlive=KeepAliveImpl;function matches($,z){return isArray$c($)?$.some(ie=>matches(ie,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,ie=currentInstance){const le=$.__wdc||($.__wdc=()=>{let ue=ie;for(;ue;){if(ue.isDeactivated)return;ue=ue.parent}return $()});if(injectHook(z,le,ie),ie){let ue=ie.parent;for(;ue&&ue.parent;)isKeepAlive(ue.parent.vnode)&&injectToKeepAliveRoot(le,z,ie,ue),ue=ue.parent}}function injectToKeepAliveRoot($,z,ie,le){const ue=injectHook(z,$,le,!0);onUnmounted(()=>{remove(le[z],ue)},ie)}function resetShapeFlag($){$.shapeFlag&=-257,$.shapeFlag&=-513}function getInnerChild($){return $.shapeFlag&128?$.ssContent:$}function injectHook($,z,ie=currentInstance,le=!1){if(ie){const ue=ie[$]||(ie[$]=[]),pe=z.__weh||(z.__weh=(..._e)=>{if(ie.isUnmounted)return;pauseTracking(),setCurrentInstance(ie);const Ce=callWithAsyncErrorHandling(z,ie,$,_e);return unsetCurrentInstance(),resetTracking(),Ce});return le?ue.unshift(pe):ue.push(pe),pe}}const createHook=$=>(z,ie=currentInstance)=>(!isInSSRComponentSetup||$==="sp")&&injectHook($,(...le)=>z(...le),ie),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,ie=!0,le=!1){const ue=currentRenderingInstance||currentInstance;if(ue){const pe=ue.type;if($===COMPONENTS){const Ce=getComponentName(pe,!1);if(Ce&&(Ce===z||Ce===camelize(z)||Ce===capitalize$2(camelize(z))))return pe}const _e=resolve(ue[$]||pe[$],z)||resolve(ue.appContext[$],z);return!_e&&le?pe:_e}}function resolve($,z){return $&&($[z]||$[camelize(z)]||$[capitalize$2(camelize(z))])}function renderList($,z,ie,le){let ue;const pe=ie&&ie[le];if(isArray$c($)||isString$7($)){ue=new Array($.length);for(let _e=0,Ce=$.length;_e<Ce;_e++)ue[_e]=z($[_e],_e,void 0,pe&&pe[_e])}else if(typeof $=="number"){ue=new Array($);for(let _e=0;_e<$;_e++)ue[_e]=z(_e+1,_e,void 0,pe&&pe[_e])}else if(isObject$8($))if($[Symbol.iterator])ue=Array.from($,(_e,Ce)=>z(_e,Ce,void 0,pe&&pe[Ce]));else{const _e=Object.keys($);ue=new Array(_e.length);for(let Ce=0,$e=_e.length;Ce<$e;Ce++){const xe=_e[Ce];ue[Ce]=z($[xe],xe,Ce,pe&&pe[Ce])}}else ue=[];return ie&&(ie[le]=ue),ue}function createSlots($,z){for(let ie=0;ie<z.length;ie++){const le=z[ie];if(isArray$c(le))for(let ue=0;ue<le.length;ue++)$[le[ue].name]=le[ue].fn;else le&&($[le.name]=le.key?(...ue)=>{const pe=le.fn(...ue);return pe&&(pe.key=le.key),pe}:le.fn)}return $}function renderSlot($,z,ie={},le,ue){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return z!=="default"&&(ie.name=z),createVNode("slot",ie,le&&le());let pe=$[z];pe&&pe._c&&(pe._d=!1),openBlock();const _e=pe&&ensureValidVNode(pe(ie)),Ce=createBlock(Fragment,{key:ie.key||_e&&_e.key||`_${z}`},_e||(le?le():[]),_e&&$._===1?64:-2);return!ue&&Ce.scopeId&&(Ce.slotScopeIds=[Ce.scopeId+"-s"]),pe&&pe._c&&(pe._d=!0),Ce}function ensureValidVNode($){return $.some(z=>isVNode$1(z)?!(z.type===Comment||z.type===Fragment&&!ensureValidVNode(z.children)):!0)?$:null}function toHandlers($,z){const ie={};for(const le in $)ie[z&&/[A-Z]/.test(le)?`on:${le}`:toHandlerKey(le)]=$[le];return ie}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:ie,setupState:le,data:ue,props:pe,accessCache:_e,type:Ce,appContext:$e}=$;let xe;if(z[0]!=="$"){const qe=_e[z];if(qe!==void 0)switch(qe){case 1:return le[z];case 2:return ue[z];case 4:return ie[z];case 3:return pe[z]}else{if(hasSetupBinding(le,z))return _e[z]=1,le[z];if(ue!==EMPTY_OBJ$1&&hasOwn$4(ue,z))return _e[z]=2,ue[z];if((xe=$.propsOptions[0])&&hasOwn$4(xe,z))return _e[z]=3,pe[z];if(ie!==EMPTY_OBJ$1&&hasOwn$4(ie,z))return _e[z]=4,ie[z];shouldCacheAccess&&(_e[z]=0)}}const Ie=publicPropertiesMap[z];let ze,Ue;if(Ie)return z==="$attrs"&&track($,"get",z),Ie($);if((ze=Ce.__cssModules)&&(ze=ze[z]))return ze;if(ie!==EMPTY_OBJ$1&&hasOwn$4(ie,z))return _e[z]=4,ie[z];if(Ue=$e.config.globalProperties,hasOwn$4(Ue,z))return Ue[z]},set({_:$},z,ie){const{data:le,setupState:ue,ctx:pe}=$;return hasSetupBinding(ue,z)?(ue[z]=ie,!0):le!==EMPTY_OBJ$1&&hasOwn$4(le,z)?(le[z]=ie,!0):hasOwn$4($.props,z)||z[0]==="$"&&z.slice(1)in $?!1:(pe[z]=ie,!0)},has({_:{data:$,setupState:z,accessCache:ie,ctx:le,appContext:ue,propsOptions:pe}},_e){let Ce;return!!ie[_e]||$!==EMPTY_OBJ$1&&hasOwn$4($,_e)||hasSetupBinding(z,_e)||(Ce=pe[0])&&hasOwn$4(Ce,_e)||hasOwn$4(le,_e)||hasOwn$4(publicPropertiesMap,_e)||hasOwn$4(ue.config.globalProperties,_e)},defineProperty($,z,ie){return ie.get!=null?$._.accessCache[z]=0:hasOwn$4(ie,"value")&&this.set($,z,ie.value,null),Reflect.defineProperty($,z,ie)}},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,ie){const le=getCurrentInstance();if(ie&&ie.local){const ue=ref($[z]);return watch(()=>$[z],pe=>ue.value=pe),watch(ue,pe=>{pe!==$[z]&&le.emit(`update:${z}`,pe)}),ue}else return{__v_isRef:!0,get value(){return $[z]},set value(ue){le.emit(`update:${z}`,ue)}}}function getContext(){const $=getCurrentInstance();return $.setupContext||($.setupContext=createSetupContext($))}function normalizePropsOrEmits($){return isArray$c($)?$.reduce((z,ie)=>(z[ie]=null,z),{}):$}function mergeDefaults($,z){const ie=normalizePropsOrEmits($);for(const le in z){if(le.startsWith("__skip"))continue;let ue=ie[le];ue?isArray$c(ue)||isFunction$5(ue)?ue=ie[le]={type:ue,default:z[le]}:ue.default=z[le]:ue===null&&(ue=ie[le]={default:z[le]}),ue&&z[`__skip_${le}`]&&(ue.skipFactory=!0)}return ie}function mergeModels($,z){return!$||!z?$||z:isArray$c($)&&isArray$c(z)?$.concat(z):extend$2({},normalizePropsOrEmits($),normalizePropsOrEmits(z))}function createPropsRestProxy($,z){const ie={};for(const le in $)z.includes(le)||Object.defineProperty(ie,le,{enumerable:!0,get:()=>$[le]});return ie}function withAsyncContext($){const z=getCurrentInstance();let ie=$();return unsetCurrentInstance(),isPromise(ie)&&(ie=ie.catch(le=>{throw setCurrentInstance(z),le})),[ie,()=>setCurrentInstance(z)]}let shouldCacheAccess=!0;function applyOptions($){const z=resolveMergedOptions($),ie=$.proxy,le=$.ctx;shouldCacheAccess=!1,z.beforeCreate&&callHook$1(z.beforeCreate,$,"bc");const{data:ue,computed:pe,methods:_e,watch:Ce,provide:$e,inject:xe,created:Ie,beforeMount:ze,mounted:Ue,beforeUpdate:qe,updated:Et,activated:Lt,deactivated:hn,beforeDestroy:vn,beforeUnmount:_n,destroyed:bn,unmounted:Sn,render:Cn,renderTracked:En,renderTriggered:$n,errorCaptured:wn,serverPrefetch:Tn,expose:xn,inheritAttrs:Pn,components:kn,directives:An,filters:Nn}=z;if(xe&&resolveInjections(xe,le,null),_e)for(const In in _e){const Vn=_e[In];isFunction$5(Vn)&&(le[In]=Vn.bind(ie))}if(ue){const In=ue.call(ie,ie);isObject$8(In)&&($.data=reactive(In))}if(shouldCacheAccess=!0,pe)for(const In in pe){const Vn=pe[In],Mn=isFunction$5(Vn)?Vn.bind(ie,ie):isFunction$5(Vn.get)?Vn.get.bind(ie,ie):NOOP,zn=!isFunction$5(Vn)&&isFunction$5(Vn.set)?Vn.set.bind(ie):NOOP,qn=computed({get:Mn,set:zn});Object.defineProperty(le,In,{enumerable:!0,configurable:!0,get:()=>qn.value,set:Hn=>qn.value=Hn})}if(Ce)for(const In in Ce)createWatcher(Ce[In],le,ie,In);if($e){const In=isFunction$5($e)?$e.call(ie):$e;Reflect.ownKeys(In).forEach(Vn=>{provide(Vn,In[Vn])})}Ie&&callHook$1(Ie,$,"c");function Ln(In,Vn){isArray$c(Vn)?Vn.forEach(Mn=>In(Mn.bind(ie))):Vn&&In(Vn.bind(ie))}if(Ln(onBeforeMount,ze),Ln(onMounted,Ue),Ln(onBeforeUpdate,qe),Ln(onUpdated,Et),Ln(onActivated,Lt),Ln(onDeactivated,hn),Ln(onErrorCaptured,wn),Ln(onRenderTracked,En),Ln(onRenderTriggered,$n),Ln(onBeforeUnmount,_n),Ln(onUnmounted,Sn),Ln(onServerPrefetch,Tn),isArray$c(xn))if(xn.length){const In=$.exposed||($.exposed={});xn.forEach(Vn=>{Object.defineProperty(In,Vn,{get:()=>ie[Vn],set:Mn=>ie[Vn]=Mn})})}else $.exposed||($.exposed={});Cn&&$.render===NOOP&&($.render=Cn),Pn!=null&&($.inheritAttrs=Pn),kn&&($.components=kn),An&&($.directives=An)}function resolveInjections($,z,ie=NOOP){isArray$c($)&&($=normalizeInject($));for(const le in $){const ue=$[le];let pe;isObject$8(ue)?"default"in ue?pe=inject(ue.from||le,ue.default,!0):pe=inject(ue.from||le):pe=inject(ue),isRef(pe)?Object.defineProperty(z,le,{enumerable:!0,configurable:!0,get:()=>pe.value,set:_e=>pe.value=_e}):z[le]=pe}}function callHook$1($,z,ie){callWithAsyncErrorHandling(isArray$c($)?$.map(le=>le.bind(z.proxy)):$.bind(z.proxy),z,ie)}function createWatcher($,z,ie,le){const ue=le.includes(".")?createPathGetter(ie,le):()=>ie[le];if(isString$7($)){const pe=z[$];isFunction$5(pe)&&watch(ue,pe)}else if(isFunction$5($))watch(ue,$.bind(ie));else if(isObject$8($))if(isArray$c($))$.forEach(pe=>createWatcher(pe,z,ie,le));else{const pe=isFunction$5($.handler)?$.handler.bind(ie):z[$.handler];isFunction$5(pe)&&watch(ue,pe,$)}}function resolveMergedOptions($){const z=$.type,{mixins:ie,extends:le}=z,{mixins:ue,optionsCache:pe,config:{optionMergeStrategies:_e}}=$.appContext,Ce=pe.get(z);let $e;return Ce?$e=Ce:!ue.length&&!ie&&!le?$e=z:($e={},ue.length&&ue.forEach(xe=>mergeOptions$2($e,xe,_e,!0)),mergeOptions$2($e,z,_e)),isObject$8(z)&&pe.set(z,$e),$e}function mergeOptions$2($,z,ie,le=!1){const{mixins:ue,extends:pe}=z;pe&&mergeOptions$2($,pe,ie,!0),ue&&ue.forEach(_e=>mergeOptions$2($,_e,ie,!0));for(const _e in z)if(!(le&&_e==="expose")){const Ce=internalOptionMergeStrats[_e]||ie&&ie[_e];$[_e]=Ce?Ce($[_e],z[_e]):z[_e]}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 ie=0;ie<$.length;ie++)z[$[ie]]=$[ie];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 ie=extend$2(Object.create(null),$);for(const le in z)ie[le]=mergeAsArray($[le],z[le]);return ie}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(le,ue=null){isFunction$5(le)||(le=extend$2({},le)),ue!=null&&!isObject$8(ue)&&(ue=null);const pe=createAppContext(),_e=new Set;let Ce=!1;const $e=pe.app={_uid:uid$1++,_component:le,_props:ue,_container:null,_context:pe,_instance:null,version:version$3,get config(){return pe.config},set config(xe){},use(xe,...Ie){return _e.has(xe)||(xe&&isFunction$5(xe.install)?(_e.add(xe),xe.install($e,...Ie)):isFunction$5(xe)&&(_e.add(xe),xe($e,...Ie))),$e},mixin(xe){return pe.mixins.includes(xe)||pe.mixins.push(xe),$e},component(xe,Ie){return Ie?(pe.components[xe]=Ie,$e):pe.components[xe]},directive(xe,Ie){return Ie?(pe.directives[xe]=Ie,$e):pe.directives[xe]},mount(xe,Ie,ze){if(!Ce){const Ue=createVNode(le,ue);return Ue.appContext=pe,Ie&&z?z(Ue,xe):$(Ue,xe,ze),Ce=!0,$e._container=xe,xe.__vue_app__=$e,getExposeProxy(Ue.component)||Ue.component.proxy}},unmount(){Ce&&($(null,$e._container),delete $e._container.__vue_app__)},provide(xe,Ie){return pe.provides[xe]=Ie,$e},runWithContext(xe){currentApp=$e;try{return xe()}finally{currentApp=null}}};return $e}}let currentApp=null;function provide($,z){if(currentInstance){let ie=currentInstance.provides;const le=currentInstance.parent&&currentInstance.parent.provides;le===ie&&(ie=currentInstance.provides=Object.create(le)),ie[$]=z}}function inject($,z,ie=!1){const le=currentInstance||currentRenderingInstance;if(le||currentApp){const ue=le?le.parent==null?le.vnode.appContext&&le.vnode.appContext.provides:le.parent.provides:currentApp._context.provides;if(ue&&$ in ue)return ue[$];if(arguments.length>1)return ie&&isFunction$5(z)?z.call(le&&le.proxy):z}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps$1($,z,ie,le=!1){const ue={},pe={};def(pe,InternalObjectKey,1),$.propsDefaults=Object.create(null),setFullProps($,z,ue,pe);for(const _e in $.propsOptions[0])_e in ue||(ue[_e]=void 0);ie?$.props=le?ue:shallowReactive(ue):$.type.props?$.props=ue:$.props=pe,$.attrs=pe}function updateProps$2($,z,ie,le){const{props:ue,attrs:pe,vnode:{patchFlag:_e}}=$,Ce=toRaw(ue),[$e]=$.propsOptions;let xe=!1;if((le||_e>0)&&!(_e&16)){if(_e&8){const Ie=$.vnode.dynamicProps;for(let ze=0;ze<Ie.length;ze++){let Ue=Ie[ze];if(isEmitListener($.emitsOptions,Ue))continue;const qe=z[Ue];if($e)if(hasOwn$4(pe,Ue))qe!==pe[Ue]&&(pe[Ue]=qe,xe=!0);else{const Et=camelize(Ue);ue[Et]=resolvePropValue($e,Ce,Et,qe,$,!1)}else qe!==pe[Ue]&&(pe[Ue]=qe,xe=!0)}}}else{setFullProps($,z,ue,pe)&&(xe=!0);let Ie;for(const ze in Ce)(!z||!hasOwn$4(z,ze)&&((Ie=hyphenate(ze))===ze||!hasOwn$4(z,Ie)))&&($e?ie&&(ie[ze]!==void 0||ie[Ie]!==void 0)&&(ue[ze]=resolvePropValue($e,Ce,ze,void 0,$,!0)):delete ue[ze]);if(pe!==Ce)for(const ze in pe)(!z||!hasOwn$4(z,ze))&&(delete pe[ze],xe=!0)}xe&&trigger$2($,"set","$attrs")}function setFullProps($,z,ie,le){const[ue,pe]=$.propsOptions;let _e=!1,Ce;if(z)for(let $e in z){if(isReservedProp($e))continue;const xe=z[$e];let Ie;ue&&hasOwn$4(ue,Ie=camelize($e))?!pe||!pe.includes(Ie)?ie[Ie]=xe:(Ce||(Ce={}))[Ie]=xe:isEmitListener($.emitsOptions,$e)||(!($e in le)||xe!==le[$e])&&(le[$e]=xe,_e=!0)}if(pe){const $e=toRaw(ie),xe=Ce||EMPTY_OBJ$1;for(let Ie=0;Ie<pe.length;Ie++){const ze=pe[Ie];ie[ze]=resolvePropValue(ue,$e,ze,xe[ze],$,!hasOwn$4(xe,ze))}}return _e}function resolvePropValue($,z,ie,le,ue,pe){const _e=$[ie];if(_e!=null){const Ce=hasOwn$4(_e,"default");if(Ce&&le===void 0){const $e=_e.default;if(_e.type!==Function&&!_e.skipFactory&&isFunction$5($e)){const{propsDefaults:xe}=ue;ie in xe?le=xe[ie]:(setCurrentInstance(ue),le=xe[ie]=$e.call(null,z),unsetCurrentInstance())}else le=$e}_e[0]&&(pe&&!Ce?le=!1:_e[1]&&(le===""||le===hyphenate(ie))&&(le=!0))}return le}function normalizePropsOptions($,z,ie=!1){const le=z.propsCache,ue=le.get($);if(ue)return ue;const pe=$.props,_e={},Ce=[];let $e=!1;if(!isFunction$5($)){const Ie=ze=>{$e=!0;const[Ue,qe]=normalizePropsOptions(ze,z,!0);extend$2(_e,Ue),qe&&Ce.push(...qe)};!ie&&z.mixins.length&&z.mixins.forEach(Ie),$.extends&&Ie($.extends),$.mixins&&$.mixins.forEach(Ie)}if(!pe&&!$e)return isObject$8($)&&le.set($,EMPTY_ARR),EMPTY_ARR;if(isArray$c(pe))for(let Ie=0;Ie<pe.length;Ie++){const ze=camelize(pe[Ie]);validatePropName(ze)&&(_e[ze]=EMPTY_OBJ$1)}else if(pe)for(const Ie in pe){const ze=camelize(Ie);if(validatePropName(ze)){const Ue=pe[Ie],qe=_e[ze]=isArray$c(Ue)||isFunction$5(Ue)?{type:Ue}:extend$2({},Ue);if(qe){const Et=getTypeIndex(Boolean,qe.type),Lt=getTypeIndex(String,qe.type);qe[0]=Et>-1,qe[1]=Lt<0||Et<Lt,(Et>-1||hasOwn$4(qe,"default"))&&Ce.push(ze)}}}const xe=[_e,Ce];return isObject$8($)&&le.set($,xe),xe}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(ie=>isSameType(ie,$)):isFunction$5(z)&&isSameType(z,$)?0:-1}const isInternalKey=$=>$[0]==="_"||$==="$stable",normalizeSlotValue=$=>isArray$c($)?$.map(normalizeVNode):[normalizeVNode($)],normalizeSlot$1=($,z,ie)=>{if(z._n)return z;const le=withCtx((...ue)=>normalizeSlotValue(z(...ue)),ie);return le._c=!1,le},normalizeObjectSlots=($,z,ie)=>{const le=$._ctx;for(const ue in $){if(isInternalKey(ue))continue;const pe=$[ue];if(isFunction$5(pe))z[ue]=normalizeSlot$1(ue,pe,le);else if(pe!=null){const _e=normalizeSlotValue(pe);z[ue]=()=>_e}}},normalizeVNodeSlots=($,z)=>{const ie=normalizeSlotValue(z);$.slots.default=()=>ie},initSlots=($,z)=>{if($.vnode.shapeFlag&32){const ie=z._;ie?($.slots=toRaw(z),def(z,"_",ie)):normalizeObjectSlots(z,$.slots={})}else $.slots={},z&&normalizeVNodeSlots($,z);def($.slots,InternalObjectKey,1)},updateSlots=($,z,ie)=>{const{vnode:le,slots:ue}=$;let pe=!0,_e=EMPTY_OBJ$1;if(le.shapeFlag&32){const Ce=z._;Ce?ie&&Ce===1?pe=!1:(extend$2(ue,z),!ie&&Ce===1&&delete ue._):(pe=!z.$stable,normalizeObjectSlots(z,ue)),_e=z}else z&&(normalizeVNodeSlots($,z),_e={default:1});if(pe)for(const Ce in ue)!isInternalKey(Ce)&&!(Ce in _e)&&delete ue[Ce]};function setRef($,z,ie,le,ue=!1){if(isArray$c($)){$.forEach((Ue,qe)=>setRef(Ue,z&&(isArray$c(z)?z[qe]:z),ie,le,ue));return}if(isAsyncWrapper(le)&&!ue)return;const pe=le.shapeFlag&4?getExposeProxy(le.component)||le.component.proxy:le.el,_e=ue?null:pe,{i:Ce,r:$e}=$,xe=z&&z.r,Ie=Ce.refs===EMPTY_OBJ$1?Ce.refs={}:Ce.refs,ze=Ce.setupState;if(xe!=null&&xe!==$e&&(isString$7(xe)?(Ie[xe]=null,hasOwn$4(ze,xe)&&(ze[xe]=null)):isRef(xe)&&(xe.value=null)),isFunction$5($e))callWithErrorHandling($e,Ce,12,[_e,Ie]);else{const Ue=isString$7($e),qe=isRef($e);if(Ue||qe){const Et=()=>{if($.f){const Lt=Ue?hasOwn$4(ze,$e)?ze[$e]:Ie[$e]:$e.value;ue?isArray$c(Lt)&&remove(Lt,pe):isArray$c(Lt)?Lt.includes(pe)||Lt.push(pe):Ue?(Ie[$e]=[pe],hasOwn$4(ze,$e)&&(ze[$e]=Ie[$e])):($e.value=[pe],$.k&&(Ie[$.k]=$e.value))}else Ue?(Ie[$e]=_e,hasOwn$4(ze,$e)&&(ze[$e]=_e)):qe&&($e.value=_e,$.k&&(Ie[$.k]=_e))};_e?(Et.id=-1,queuePostRenderEffect(Et,ie)):Et()}}}let hasMismatch=!1;const isSVGContainer=$=>/svg/.test($.namespaceURI)&&$.tagName!=="foreignObject",isComment$1=$=>$.nodeType===8;function createHydrationFunctions($){const{mt:z,p:ie,o:{patchProp:le,createText:ue,nextSibling:pe,parentNode:_e,remove:Ce,insert:$e,createComment:xe}}=$,Ie=(vn,_n)=>{if(!_n.hasChildNodes()){ie(null,vn,_n),flushPostFlushCbs(),_n._vnode=vn;return}hasMismatch=!1,ze(_n.firstChild,vn,null,null,null),flushPostFlushCbs(),_n._vnode=vn,hasMismatch&&console.error("Hydration completed but contains mismatches.")},ze=(vn,_n,bn,Sn,Cn,En=!1)=>{const $n=isComment$1(vn)&&vn.data==="[",wn=()=>Lt(vn,_n,bn,Sn,Cn,$n),{type:Tn,ref:xn,shapeFlag:Pn,patchFlag:kn}=_n;let An=vn.nodeType;_n.el=vn,kn===-2&&(En=!1,_n.dynamicChildren=null);let Nn=null;switch(Tn){case Text$1:An!==3?_n.children===""?($e(_n.el=ue(""),_e(vn),vn),Nn=vn):Nn=wn():(vn.data!==_n.children&&(hasMismatch=!0,vn.data=_n.children),Nn=pe(vn));break;case Comment:An!==8||$n?Nn=wn():Nn=pe(vn);break;case Static:if($n&&(vn=pe(vn),An=vn.nodeType),An===1||An===3){Nn=vn;const Fn=!_n.children.length;for(let Ln=0;Ln<_n.staticCount;Ln++)Fn&&(_n.children+=Nn.nodeType===1?Nn.outerHTML:Nn.data),Ln===_n.staticCount-1&&(_n.anchor=Nn),Nn=pe(Nn);return $n?pe(Nn):Nn}else wn();break;case Fragment:$n?Nn=Et(vn,_n,bn,Sn,Cn,En):Nn=wn();break;default:if(Pn&1)An!==1||_n.type.toLowerCase()!==vn.tagName.toLowerCase()?Nn=wn():Nn=Ue(vn,_n,bn,Sn,Cn,En);else if(Pn&6){_n.slotScopeIds=Cn;const Fn=_e(vn);if(z(_n,Fn,null,bn,Sn,isSVGContainer(Fn),En),Nn=$n?hn(vn):pe(vn),Nn&&isComment$1(Nn)&&Nn.data==="teleport end"&&(Nn=pe(Nn)),isAsyncWrapper(_n)){let Ln;$n?(Ln=createVNode(Fragment),Ln.anchor=Nn?Nn.previousSibling:Fn.lastChild):Ln=vn.nodeType===3?createTextVNode(""):createVNode("div"),Ln.el=vn,_n.component.subTree=Ln}}else Pn&64?An!==8?Nn=wn():Nn=_n.type.hydrate(vn,_n,bn,Sn,Cn,En,$,qe):Pn&128&&(Nn=_n.type.hydrate(vn,_n,bn,Sn,isSVGContainer(_e(vn)),Cn,En,$,ze))}return xn!=null&&setRef(xn,null,Sn,_n),Nn},Ue=(vn,_n,bn,Sn,Cn,En)=>{En=En||!!_n.dynamicChildren;const{type:$n,props:wn,patchFlag:Tn,shapeFlag:xn,dirs:Pn}=_n,kn=$n==="input"&&Pn||$n==="option";if(kn||Tn!==-1){if(Pn&&invokeDirectiveHook(_n,null,bn,"created"),wn)if(kn||!En||Tn&48)for(const Nn in wn)(kn&&Nn.endsWith("value")||isOn(Nn)&&!isReservedProp(Nn))&&le(vn,Nn,null,wn[Nn],!1,void 0,bn);else wn.onClick&&le(vn,"onClick",null,wn.onClick,!1,void 0,bn);let An;if((An=wn&&wn.onVnodeBeforeMount)&&invokeVNodeHook(An,bn,_n),Pn&&invokeDirectiveHook(_n,null,bn,"beforeMount"),((An=wn&&wn.onVnodeMounted)||Pn)&&queueEffectWithSuspense(()=>{An&&invokeVNodeHook(An,bn,_n),Pn&&invokeDirectiveHook(_n,null,bn,"mounted")},Sn),xn&16&&!(wn&&(wn.innerHTML||wn.textContent))){let Nn=qe(vn.firstChild,_n,vn,bn,Sn,Cn,En);for(;Nn;){hasMismatch=!0;const Fn=Nn;Nn=Nn.nextSibling,Ce(Fn)}}else xn&8&&vn.textContent!==_n.children&&(hasMismatch=!0,vn.textContent=_n.children)}return vn.nextSibling},qe=(vn,_n,bn,Sn,Cn,En,$n)=>{$n=$n||!!_n.dynamicChildren;const wn=_n.children,Tn=wn.length;for(let xn=0;xn<Tn;xn++){const Pn=$n?wn[xn]:wn[xn]=normalizeVNode(wn[xn]);if(vn)vn=ze(vn,Pn,Sn,Cn,En,$n);else{if(Pn.type===Text$1&&!Pn.children)continue;hasMismatch=!0,ie(null,Pn,bn,null,Sn,Cn,isSVGContainer(bn),En)}}return vn},Et=(vn,_n,bn,Sn,Cn,En)=>{const{slotScopeIds:$n}=_n;$n&&(Cn=Cn?Cn.concat($n):$n);const wn=_e(vn),Tn=qe(pe(vn),_n,wn,bn,Sn,Cn,En);return Tn&&isComment$1(Tn)&&Tn.data==="]"?pe(_n.anchor=Tn):(hasMismatch=!0,$e(_n.anchor=xe("]"),wn,Tn),Tn)},Lt=(vn,_n,bn,Sn,Cn,En)=>{if(hasMismatch=!0,_n.el=null,En){const Tn=hn(vn);for(;;){const xn=pe(vn);if(xn&&xn!==Tn)Ce(xn);else break}}const $n=pe(vn),wn=_e(vn);return Ce(vn),ie(null,_n,wn,$n,bn,Sn,isSVGContainer(wn),Cn),$n},hn=vn=>{let _n=0;for(;vn;)if(vn=pe(vn),vn&&isComment$1(vn)&&(vn.data==="["&&_n++,vn.data==="]")){if(_n===0)return pe(vn);_n--}return vn};return[Ie,ze]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer($){return baseCreateRenderer($)}function createHydrationRenderer($){return baseCreateRenderer($,createHydrationFunctions)}function baseCreateRenderer($,z){const ie=getGlobalThis();ie.__VUE__=!0;const{insert:le,remove:ue,patchProp:pe,createElement:_e,createText:Ce,createComment:$e,setText:xe,setElementText:Ie,parentNode:ze,nextSibling:Ue,setScopeId:qe=NOOP,insertStaticContent:Et}=$,Lt=(Gn,Xn,or,vr=null,_r=null,ir=null,Pr=!1,gr=null,kr=!!Xn.dynamicChildren)=>{if(Gn===Xn)return;Gn&&!isSameVNodeType(Gn,Xn)&&(vr=Zn(Gn),Hn(Gn,_r,ir,!0),Gn=null),Xn.patchFlag===-2&&(kr=!1,Xn.dynamicChildren=null);const{type:pr,ref:lr,shapeFlag:dr}=Xn;switch(pr){case Text$1:hn(Gn,Xn,or,vr);break;case Comment:vn(Gn,Xn,or,vr);break;case Static:Gn==null&&_n(Xn,or,vr,Pr);break;case Fragment:kn(Gn,Xn,or,vr,_r,ir,Pr,gr,kr);break;default:dr&1?Cn(Gn,Xn,or,vr,_r,ir,Pr,gr,kr):dr&6?An(Gn,Xn,or,vr,_r,ir,Pr,gr,kr):(dr&64||dr&128)&&pr.process(Gn,Xn,or,vr,_r,ir,Pr,gr,kr,Wn)}lr!=null&&_r&&setRef(lr,Gn&&Gn.ref,ir,Xn||Gn,!Xn)},hn=(Gn,Xn,or,vr)=>{if(Gn==null)le(Xn.el=Ce(Xn.children),or,vr);else{const _r=Xn.el=Gn.el;Xn.children!==Gn.children&&xe(_r,Xn.children)}},vn=(Gn,Xn,or,vr)=>{Gn==null?le(Xn.el=$e(Xn.children||""),or,vr):Xn.el=Gn.el},_n=(Gn,Xn,or,vr)=>{[Gn.el,Gn.anchor]=Et(Gn.children,Xn,or,vr,Gn.el,Gn.anchor)},bn=({el:Gn,anchor:Xn},or,vr)=>{let _r;for(;Gn&&Gn!==Xn;)_r=Ue(Gn),le(Gn,or,vr),Gn=_r;le(Xn,or,vr)},Sn=({el:Gn,anchor:Xn})=>{let or;for(;Gn&&Gn!==Xn;)or=Ue(Gn),ue(Gn),Gn=or;ue(Xn)},Cn=(Gn,Xn,or,vr,_r,ir,Pr,gr,kr)=>{Pr=Pr||Xn.type==="svg",Gn==null?En(Xn,or,vr,_r,ir,Pr,gr,kr):Tn(Gn,Xn,_r,ir,Pr,gr,kr)},En=(Gn,Xn,or,vr,_r,ir,Pr,gr)=>{let kr,pr;const{type:lr,props:dr,shapeFlag:hr,transition:Or,dirs:Lr}=Gn;if(kr=Gn.el=_e(Gn.type,ir,dr&&dr.is,dr),hr&8?Ie(kr,Gn.children):hr&16&&wn(Gn.children,kr,null,vr,_r,ir&&lr!=="foreignObject",Pr,gr),Lr&&invokeDirectiveHook(Gn,null,vr,"created"),$n(kr,Gn,Gn.scopeId,Pr,vr),dr){for(const Rr in dr)Rr!=="value"&&!isReservedProp(Rr)&&pe(kr,Rr,null,dr[Rr],ir,Gn.children,vr,_r,sr);"value"in dr&&pe(kr,"value",null,dr.value),(pr=dr.onVnodeBeforeMount)&&invokeVNodeHook(pr,vr,Gn)}Lr&&invokeDirectiveHook(Gn,null,vr,"beforeMount");const Br=(!_r||_r&&!_r.pendingBranch)&&Or&&!Or.persisted;Br&&Or.beforeEnter(kr),le(kr,Xn,or),((pr=dr&&dr.onVnodeMounted)||Br||Lr)&&queuePostRenderEffect(()=>{pr&&invokeVNodeHook(pr,vr,Gn),Br&&Or.enter(kr),Lr&&invokeDirectiveHook(Gn,null,vr,"mounted")},_r)},$n=(Gn,Xn,or,vr,_r)=>{if(or&&qe(Gn,or),vr)for(let ir=0;ir<vr.length;ir++)qe(Gn,vr[ir]);if(_r){let ir=_r.subTree;if(Xn===ir){const Pr=_r.vnode;$n(Gn,Pr,Pr.scopeId,Pr.slotScopeIds,_r.parent)}}},wn=(Gn,Xn,or,vr,_r,ir,Pr,gr,kr=0)=>{for(let pr=kr;pr<Gn.length;pr++){const lr=Gn[pr]=gr?cloneIfMounted(Gn[pr]):normalizeVNode(Gn[pr]);Lt(null,lr,Xn,or,vr,_r,ir,Pr,gr)}},Tn=(Gn,Xn,or,vr,_r,ir,Pr)=>{const gr=Xn.el=Gn.el;let{patchFlag:kr,dynamicChildren:pr,dirs:lr}=Xn;kr|=Gn.patchFlag&16;const dr=Gn.props||EMPTY_OBJ$1,hr=Xn.props||EMPTY_OBJ$1;let Or;or&&toggleRecurse(or,!1),(Or=hr.onVnodeBeforeUpdate)&&invokeVNodeHook(Or,or,Xn,Gn),lr&&invokeDirectiveHook(Xn,Gn,or,"beforeUpdate"),or&&toggleRecurse(or,!0);const Lr=_r&&Xn.type!=="foreignObject";if(pr?xn(Gn.dynamicChildren,pr,gr,or,vr,Lr,ir):Pr||Vn(Gn,Xn,gr,null,or,vr,Lr,ir,!1),kr>0){if(kr&16)Pn(gr,Xn,dr,hr,or,vr,_r);else if(kr&2&&dr.class!==hr.class&&pe(gr,"class",null,hr.class,_r),kr&4&&pe(gr,"style",dr.style,hr.style,_r),kr&8){const Br=Xn.dynamicProps;for(let Rr=0;Rr<Br.length;Rr++){const Sr=Br[Rr],Er=dr[Sr],cr=hr[Sr];(cr!==Er||Sr==="value")&&pe(gr,Sr,Er,cr,_r,Gn.children,or,vr,sr)}}kr&1&&Gn.children!==Xn.children&&Ie(gr,Xn.children)}else!Pr&&pr==null&&Pn(gr,Xn,dr,hr,or,vr,_r);((Or=hr.onVnodeUpdated)||lr)&&queuePostRenderEffect(()=>{Or&&invokeVNodeHook(Or,or,Xn,Gn),lr&&invokeDirectiveHook(Xn,Gn,or,"updated")},vr)},xn=(Gn,Xn,or,vr,_r,ir,Pr)=>{for(let gr=0;gr<Xn.length;gr++){const kr=Gn[gr],pr=Xn[gr],lr=kr.el&&(kr.type===Fragment||!isSameVNodeType(kr,pr)||kr.shapeFlag&70)?ze(kr.el):or;Lt(kr,pr,lr,null,vr,_r,ir,Pr,!0)}},Pn=(Gn,Xn,or,vr,_r,ir,Pr)=>{if(or!==vr){if(or!==EMPTY_OBJ$1)for(const gr in or)!isReservedProp(gr)&&!(gr in vr)&&pe(Gn,gr,or[gr],null,Pr,Xn.children,_r,ir,sr);for(const gr in vr){if(isReservedProp(gr))continue;const kr=vr[gr],pr=or[gr];kr!==pr&&gr!=="value"&&pe(Gn,gr,pr,kr,Pr,Xn.children,_r,ir,sr)}"value"in vr&&pe(Gn,"value",or.value,vr.value)}},kn=(Gn,Xn,or,vr,_r,ir,Pr,gr,kr)=>{const pr=Xn.el=Gn?Gn.el:Ce(""),lr=Xn.anchor=Gn?Gn.anchor:Ce("");let{patchFlag:dr,dynamicChildren:hr,slotScopeIds:Or}=Xn;Or&&(gr=gr?gr.concat(Or):Or),Gn==null?(le(pr,or,vr),le(lr,or,vr),wn(Xn.children,or,lr,_r,ir,Pr,gr,kr)):dr>0&&dr&64&&hr&&Gn.dynamicChildren?(xn(Gn.dynamicChildren,hr,or,_r,ir,Pr,gr),(Xn.key!=null||_r&&Xn===_r.subTree)&&traverseStaticChildren(Gn,Xn,!0)):Vn(Gn,Xn,or,lr,_r,ir,Pr,gr,kr)},An=(Gn,Xn,or,vr,_r,ir,Pr,gr,kr)=>{Xn.slotScopeIds=gr,Gn==null?Xn.shapeFlag&512?_r.ctx.activate(Xn,or,vr,Pr,kr):Nn(Xn,or,vr,_r,ir,Pr,kr):Fn(Gn,Xn,kr)},Nn=(Gn,Xn,or,vr,_r,ir,Pr)=>{const gr=Gn.component=createComponentInstance(Gn,vr,_r);if(isKeepAlive(Gn)&&(gr.ctx.renderer=Wn),setupComponent(gr),gr.asyncDep){if(_r&&_r.registerDep(gr,Ln),!Gn.el){const kr=gr.subTree=createVNode(Comment);vn(null,kr,Xn,or)}return}Ln(gr,Gn,Xn,or,_r,ir,Pr)},Fn=(Gn,Xn,or)=>{const vr=Xn.component=Gn.component;if(shouldUpdateComponent(Gn,Xn,or))if(vr.asyncDep&&!vr.asyncResolved){In(vr,Xn,or);return}else vr.next=Xn,invalidateJob(vr.update),vr.update();else Xn.el=Gn.el,vr.vnode=Xn},Ln=(Gn,Xn,or,vr,_r,ir,Pr)=>{const gr=()=>{if(Gn.isMounted){let{next:lr,bu:dr,u:hr,parent:Or,vnode:Lr}=Gn,Br=lr,Rr;toggleRecurse(Gn,!1),lr?(lr.el=Lr.el,In(Gn,lr,Pr)):lr=Lr,dr&&invokeArrayFns(dr),(Rr=lr.props&&lr.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Rr,Or,lr,Lr),toggleRecurse(Gn,!0);const Sr=renderComponentRoot(Gn),Er=Gn.subTree;Gn.subTree=Sr,Lt(Er,Sr,ze(Er.el),Zn(Er),Gn,_r,ir),lr.el=Sr.el,Br===null&&updateHOCHostEl(Gn,Sr.el),hr&&queuePostRenderEffect(hr,_r),(Rr=lr.props&&lr.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Rr,Or,lr,Lr),_r)}else{let lr;const{el:dr,props:hr}=Xn,{bm:Or,m:Lr,parent:Br}=Gn,Rr=isAsyncWrapper(Xn);if(toggleRecurse(Gn,!1),Or&&invokeArrayFns(Or),!Rr&&(lr=hr&&hr.onVnodeBeforeMount)&&invokeVNodeHook(lr,Br,Xn),toggleRecurse(Gn,!0),dr&&fr){const Sr=()=>{Gn.subTree=renderComponentRoot(Gn),fr(dr,Gn.subTree,Gn,_r,null)};Rr?Xn.type.__asyncLoader().then(()=>!Gn.isUnmounted&&Sr()):Sr()}else{const Sr=Gn.subTree=renderComponentRoot(Gn);Lt(null,Sr,or,vr,Gn,_r,ir),Xn.el=Sr.el}if(Lr&&queuePostRenderEffect(Lr,_r),!Rr&&(lr=hr&&hr.onVnodeMounted)){const Sr=Xn;queuePostRenderEffect(()=>invokeVNodeHook(lr,Br,Sr),_r)}(Xn.shapeFlag&256||Br&&isAsyncWrapper(Br.vnode)&&Br.vnode.shapeFlag&256)&&Gn.a&&queuePostRenderEffect(Gn.a,_r),Gn.isMounted=!0,Xn=or=vr=null}},kr=Gn.effect=new ReactiveEffect(gr,()=>queueJob(pr),Gn.scope),pr=Gn.update=()=>kr.run();pr.id=Gn.uid,toggleRecurse(Gn,!0),pr()},In=(Gn,Xn,or)=>{Xn.component=Gn;const vr=Gn.vnode.props;Gn.vnode=Xn,Gn.next=null,updateProps$2(Gn,Xn.props,vr,or),updateSlots(Gn,Xn.children,or),pauseTracking(),flushPreFlushCbs(),resetTracking()},Vn=(Gn,Xn,or,vr,_r,ir,Pr,gr,kr=!1)=>{const pr=Gn&&Gn.children,lr=Gn?Gn.shapeFlag:0,dr=Xn.children,{patchFlag:hr,shapeFlag:Or}=Xn;if(hr>0){if(hr&128){zn(pr,dr,or,vr,_r,ir,Pr,gr,kr);return}else if(hr&256){Mn(pr,dr,or,vr,_r,ir,Pr,gr,kr);return}}Or&8?(lr&16&&sr(pr,_r,ir),dr!==pr&&Ie(or,dr)):lr&16?Or&16?zn(pr,dr,or,vr,_r,ir,Pr,gr,kr):sr(pr,_r,ir,!0):(lr&8&&Ie(or,""),Or&16&&wn(dr,or,vr,_r,ir,Pr,gr,kr))},Mn=(Gn,Xn,or,vr,_r,ir,Pr,gr,kr)=>{Gn=Gn||EMPTY_ARR,Xn=Xn||EMPTY_ARR;const pr=Gn.length,lr=Xn.length,dr=Math.min(pr,lr);let hr;for(hr=0;hr<dr;hr++){const Or=Xn[hr]=kr?cloneIfMounted(Xn[hr]):normalizeVNode(Xn[hr]);Lt(Gn[hr],Or,or,null,_r,ir,Pr,gr,kr)}pr>lr?sr(Gn,_r,ir,!0,!1,dr):wn(Xn,or,vr,_r,ir,Pr,gr,kr,dr)},zn=(Gn,Xn,or,vr,_r,ir,Pr,gr,kr)=>{let pr=0;const lr=Xn.length;let dr=Gn.length-1,hr=lr-1;for(;pr<=dr&&pr<=hr;){const Or=Gn[pr],Lr=Xn[pr]=kr?cloneIfMounted(Xn[pr]):normalizeVNode(Xn[pr]);if(isSameVNodeType(Or,Lr))Lt(Or,Lr,or,null,_r,ir,Pr,gr,kr);else break;pr++}for(;pr<=dr&&pr<=hr;){const Or=Gn[dr],Lr=Xn[hr]=kr?cloneIfMounted(Xn[hr]):normalizeVNode(Xn[hr]);if(isSameVNodeType(Or,Lr))Lt(Or,Lr,or,null,_r,ir,Pr,gr,kr);else break;dr--,hr--}if(pr>dr){if(pr<=hr){const Or=hr+1,Lr=Or<lr?Xn[Or].el:vr;for(;pr<=hr;)Lt(null,Xn[pr]=kr?cloneIfMounted(Xn[pr]):normalizeVNode(Xn[pr]),or,Lr,_r,ir,Pr,gr,kr),pr++}}else if(pr>hr)for(;pr<=dr;)Hn(Gn[pr],_r,ir,!0),pr++;else{const Or=pr,Lr=pr,Br=new Map;for(pr=Lr;pr<=hr;pr++){const Ir=Xn[pr]=kr?cloneIfMounted(Xn[pr]):normalizeVNode(Xn[pr]);Ir.key!=null&&Br.set(Ir.key,pr)}let Rr,Sr=0;const Er=hr-Lr+1;let cr=!1,Qn=0;const ar=new Array(Er);for(pr=0;pr<Er;pr++)ar[pr]=0;for(pr=Or;pr<=dr;pr++){const Ir=Gn[pr];if(Sr>=Er){Hn(Ir,_r,ir,!0);continue}let Hr;if(Ir.key!=null)Hr=Br.get(Ir.key);else for(Rr=Lr;Rr<=hr;Rr++)if(ar[Rr-Lr]===0&&isSameVNodeType(Ir,Xn[Rr])){Hr=Rr;break}Hr===void 0?Hn(Ir,_r,ir,!0):(ar[Hr-Lr]=pr+1,Hr>=Qn?Qn=Hr:cr=!0,Lt(Ir,Xn[Hr],or,null,_r,ir,Pr,gr,kr),Sr++)}const $r=cr?getSequence(ar):EMPTY_ARR;for(Rr=$r.length-1,pr=Er-1;pr>=0;pr--){const Ir=Lr+pr,Hr=Xn[Ir],br=Ir+1<lr?Xn[Ir+1].el:vr;ar[pr]===0?Lt(null,Hr,or,br,_r,ir,Pr,gr,kr):cr&&(Rr<0||pr!==$r[Rr]?qn(Hr,or,br,2):Rr--)}}},qn=(Gn,Xn,or,vr,_r=null)=>{const{el:ir,type:Pr,transition:gr,children:kr,shapeFlag:pr}=Gn;if(pr&6){qn(Gn.component.subTree,Xn,or,vr);return}if(pr&128){Gn.suspense.move(Xn,or,vr);return}if(pr&64){Pr.move(Gn,Xn,or,Wn);return}if(Pr===Fragment){le(ir,Xn,or);for(let dr=0;dr<kr.length;dr++)qn(kr[dr],Xn,or,vr);le(Gn.anchor,Xn,or);return}if(Pr===Static){bn(Gn,Xn,or);return}if(vr!==2&&pr&1&&gr)if(vr===0)gr.beforeEnter(ir),le(ir,Xn,or),queuePostRenderEffect(()=>gr.enter(ir),_r);else{const{leave:dr,delayLeave:hr,afterLeave:Or}=gr,Lr=()=>le(ir,Xn,or),Br=()=>{dr(ir,()=>{Lr(),Or&&Or()})};hr?hr(ir,Lr,Br):Br()}else le(ir,Xn,or)},Hn=(Gn,Xn,or,vr=!1,_r=!1)=>{const{type:ir,props:Pr,ref:gr,children:kr,dynamicChildren:pr,shapeFlag:lr,patchFlag:dr,dirs:hr}=Gn;if(gr!=null&&setRef(gr,null,or,Gn,!0),lr&256){Xn.ctx.deactivate(Gn);return}const Or=lr&1&&hr,Lr=!isAsyncWrapper(Gn);let Br;if(Lr&&(Br=Pr&&Pr.onVnodeBeforeUnmount)&&invokeVNodeHook(Br,Xn,Gn),lr&6)yr(Gn.component,or,vr);else{if(lr&128){Gn.suspense.unmount(or,vr);return}Or&&invokeDirectiveHook(Gn,null,Xn,"beforeUnmount"),lr&64?Gn.type.remove(Gn,Xn,or,_r,Wn,vr):pr&&(ir!==Fragment||dr>0&&dr&64)?sr(pr,Xn,or,!1,!0):(ir===Fragment&&dr&384||!_r&&lr&16)&&sr(kr,Xn,or),vr&&Jn(Gn)}(Lr&&(Br=Pr&&Pr.onVnodeUnmounted)||Or)&&queuePostRenderEffect(()=>{Br&&invokeVNodeHook(Br,Xn,Gn),Or&&invokeDirectiveHook(Gn,null,Xn,"unmounted")},or)},Jn=Gn=>{const{type:Xn,el:or,anchor:vr,transition:_r}=Gn;if(Xn===Fragment){ur(or,vr);return}if(Xn===Static){Sn(Gn);return}const ir=()=>{ue(or),_r&&!_r.persisted&&_r.afterLeave&&_r.afterLeave()};if(Gn.shapeFlag&1&&_r&&!_r.persisted){const{leave:Pr,delayLeave:gr}=_r,kr=()=>Pr(or,ir);gr?gr(Gn.el,ir,kr):kr()}else ir()},ur=(Gn,Xn)=>{let or;for(;Gn!==Xn;)or=Ue(Gn),ue(Gn),Gn=or;ue(Xn)},yr=(Gn,Xn,or)=>{const{bum:vr,scope:_r,update:ir,subTree:Pr,um:gr}=Gn;vr&&invokeArrayFns(vr),_r.stop(),ir&&(ir.active=!1,Hn(Pr,Gn,Xn,or)),gr&&queuePostRenderEffect(gr,Xn),queuePostRenderEffect(()=>{Gn.isUnmounted=!0},Xn),Xn&&Xn.pendingBranch&&!Xn.isUnmounted&&Gn.asyncDep&&!Gn.asyncResolved&&Gn.suspenseId===Xn.pendingId&&(Xn.deps--,Xn.deps===0&&Xn.resolve())},sr=(Gn,Xn,or,vr=!1,_r=!1,ir=0)=>{for(let Pr=ir;Pr<Gn.length;Pr++)Hn(Gn[Pr],Xn,or,vr,_r)},Zn=Gn=>Gn.shapeFlag&6?Zn(Gn.component.subTree):Gn.shapeFlag&128?Gn.suspense.next():Ue(Gn.anchor||Gn.el),Kn=(Gn,Xn,or)=>{Gn==null?Xn._vnode&&Hn(Xn._vnode,null,null,!0):Lt(Xn._vnode||null,Gn,Xn,null,null,null,or),flushPreFlushCbs(),flushPostFlushCbs(),Xn._vnode=Gn},Wn={p:Lt,um:Hn,m:qn,r:Jn,mt:Nn,mc:wn,pc:Vn,pbc:xn,n:Zn,o:$};let nr,fr;return z&&([nr,fr]=z(Wn)),{render:Kn,hydrate:nr,createApp:createAppAPI(Kn,nr)}}function toggleRecurse({effect:$,update:z},ie){$.allowRecurse=z.allowRecurse=ie}function traverseStaticChildren($,z,ie=!1){const le=$.children,ue=z.children;if(isArray$c(le)&&isArray$c(ue))for(let pe=0;pe<le.length;pe++){const _e=le[pe];let Ce=ue[pe];Ce.shapeFlag&1&&!Ce.dynamicChildren&&((Ce.patchFlag<=0||Ce.patchFlag===32)&&(Ce=ue[pe]=cloneIfMounted(ue[pe]),Ce.el=_e.el),ie||traverseStaticChildren(_e,Ce)),Ce.type===Text$1&&(Ce.el=_e.el)}}function getSequence($){const z=$.slice(),ie=[0];let le,ue,pe,_e,Ce;const $e=$.length;for(le=0;le<$e;le++){const xe=$[le];if(xe!==0){if(ue=ie[ie.length-1],$[ue]<xe){z[le]=ue,ie.push(le);continue}for(pe=0,_e=ie.length-1;pe<_e;)Ce=pe+_e>>1,$[ie[Ce]]<xe?pe=Ce+1:_e=Ce;xe<$[ie[pe]]&&(pe>0&&(z[le]=ie[pe-1]),ie[pe]=le)}}for(pe=ie.length,_e=ie[pe-1];pe-- >0;)ie[pe]=_e,_e=z[_e];return ie}const isTeleport=$=>$.__isTeleport,isTeleportDisabled=$=>$&&($.disabled||$.disabled===""),isTargetSVG=$=>typeof SVGElement<"u"&&$ instanceof SVGElement,resolveTarget=($,z)=>{const ie=$&&$.to;return isString$7(ie)?z?z(ie):null:ie},TeleportImpl={__isTeleport:!0,process($,z,ie,le,ue,pe,_e,Ce,$e,xe){const{mc:Ie,pc:ze,pbc:Ue,o:{insert:qe,querySelector:Et,createText:Lt,createComment:hn}}=xe,vn=isTeleportDisabled(z.props);let{shapeFlag:_n,children:bn,dynamicChildren:Sn}=z;if($==null){const Cn=z.el=Lt(""),En=z.anchor=Lt("");qe(Cn,ie,le),qe(En,ie,le);const $n=z.target=resolveTarget(z.props,Et),wn=z.targetAnchor=Lt("");$n&&(qe(wn,$n),_e=_e||isTargetSVG($n));const Tn=(xn,Pn)=>{_n&16&&Ie(bn,xn,Pn,ue,pe,_e,Ce,$e)};vn?Tn(ie,En):$n&&Tn($n,wn)}else{z.el=$.el;const Cn=z.anchor=$.anchor,En=z.target=$.target,$n=z.targetAnchor=$.targetAnchor,wn=isTeleportDisabled($.props),Tn=wn?ie:En,xn=wn?Cn:$n;if(_e=_e||isTargetSVG(En),Sn?(Ue($.dynamicChildren,Sn,Tn,ue,pe,_e,Ce),traverseStaticChildren($,z,!0)):$e||ze($,z,Tn,xn,ue,pe,_e,Ce,!1),vn)wn||moveTeleport(z,ie,Cn,xe,1);else if((z.props&&z.props.to)!==($.props&&$.props.to)){const Pn=z.target=resolveTarget(z.props,Et);Pn&&moveTeleport(z,Pn,null,xe,0)}else wn&&moveTeleport(z,En,$n,xe,1)}updateCssVars(z)},remove($,z,ie,le,{um:ue,o:{remove:pe}},_e){const{shapeFlag:Ce,children:$e,anchor:xe,targetAnchor:Ie,target:ze,props:Ue}=$;if(ze&&pe(Ie),(_e||!isTeleportDisabled(Ue))&&(pe(xe),Ce&16))for(let qe=0;qe<$e.length;qe++){const Et=$e[qe];ue(Et,z,ie,!0,!!Et.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport($,z,ie,{o:{insert:le},m:ue},pe=2){pe===0&&le($.targetAnchor,z,ie);const{el:_e,anchor:Ce,shapeFlag:$e,children:xe,props:Ie}=$,ze=pe===2;if(ze&&le(_e,z,ie),(!ze||isTeleportDisabled(Ie))&&$e&16)for(let Ue=0;Ue<xe.length;Ue++)ue(xe[Ue],z,ie,2);ze&&le(Ce,z,ie)}function hydrateTeleport($,z,ie,le,ue,pe,{o:{nextSibling:_e,parentNode:Ce,querySelector:$e}},xe){const Ie=z.target=resolveTarget(z.props,$e);if(Ie){const ze=Ie._lpa||Ie.firstChild;if(z.shapeFlag&16)if(isTeleportDisabled(z.props))z.anchor=xe(_e($),z,Ce($),ie,le,ue,pe),z.targetAnchor=ze;else{z.anchor=_e($);let Ue=ze;for(;Ue;)if(Ue=_e(Ue),Ue&&Ue.nodeType===8&&Ue.data==="teleport anchor"){z.targetAnchor=Ue,Ie._lpa=z.targetAnchor&&_e(z.targetAnchor);break}xe(ze,z,Ie,ie,le,ue,pe)}updateCssVars(z)}return z.anchor&&_e(z.anchor)}const Teleport=TeleportImpl;function updateCssVars($){const z=$.ctx;if(z&&z.ut){let ie=$.children[0].el;for(;ie!==$.targetAnchor;)ie.nodeType===1&&ie.setAttribute("data-v-owner",z.uid),ie=ie.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&&currentBlock&&currentBlock.push($),$}function createElementBlock($,z,ie,le,ue,pe){return setupBlock(createBaseVNode($,z,ie,le,ue,pe,!0))}function createBlock($,z,ie,le,ue){return setupBlock(createVNode($,z,ie,le,ue,!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:ie})=>(typeof $=="number"&&($=""+$),$!=null?isString$7($)||isRef($)||isFunction$5($)?{i:currentRenderingInstance,r:$,k:z,f:!!ie}:$:null);function createBaseVNode($,z=null,ie=null,le=0,ue=null,pe=$===Fragment?0:1,_e=!1,Ce=!1){const $e={__v_isVNode:!0,__v_skip:!0,type:$,props:z,key:z&&normalizeKey(z),ref:z&&normalizeRef(z),scopeId:currentScopeId,slotScopeIds:null,children:ie,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:pe,patchFlag:le,dynamicProps:ue,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Ce?(normalizeChildren($e,ie),pe&128&&$.normalize($e)):ie&&($e.shapeFlag|=isString$7(ie)?8:16),isBlockTreeEnabled>0&&!_e&&currentBlock&&($e.patchFlag>0||pe&6)&&$e.patchFlag!==32&&currentBlock.push($e),$e}const createVNode=_createVNode;function _createVNode($,z=null,ie=null,le=0,ue=null,pe=!1){if((!$||$===NULL_DYNAMIC_COMPONENT)&&($=Comment),isVNode$1($)){const Ce=cloneVNode($,z,!0);return ie&&normalizeChildren(Ce,ie),isBlockTreeEnabled>0&&!pe&&currentBlock&&(Ce.shapeFlag&6?currentBlock[currentBlock.indexOf($)]=Ce:currentBlock.push(Ce)),Ce.patchFlag|=-2,Ce}if(isClassComponent($)&&($=$.__vccOpts),z){z=guardReactiveProps(z);let{class:Ce,style:$e}=z;Ce&&!isString$7(Ce)&&(z.class=normalizeClass(Ce)),isObject$8($e)&&(isProxy($e)&&!isArray$c($e)&&($e=extend$2({},$e)),z.style=normalizeStyle$1($e))}const _e=isString$7($)?1:isSuspense($)?128:isTeleport($)?64:isObject$8($)?4:isFunction$5($)?2:0;return createBaseVNode($,z,ie,le,ue,_e,pe,!0)}function guardReactiveProps($){return $?isProxy($)||InternalObjectKey in $?extend$2({},$):$:null}function cloneVNode($,z,ie=!1){const{props:le,ref:ue,patchFlag:pe,children:_e}=$,Ce=z?mergeProps(le||{},z):le;return{__v_isVNode:!0,__v_skip:!0,type:$.type,props:Ce,key:Ce&&normalizeKey(Ce),ref:z&&z.ref?ie&&ue?isArray$c(ue)?ue.concat(normalizeRef(z)):[ue,normalizeRef(z)]:normalizeRef(z):ue,scopeId:$.scopeId,slotScopeIds:$.slotScopeIds,children:_e,target:$.target,targetAnchor:$.targetAnchor,staticCount:$.staticCount,shapeFlag:$.shapeFlag,patchFlag:z&&$.type!==Fragment?pe===-1?16:pe|16:pe,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 ie=createVNode(Static,null,$);return ie.staticCount=z,ie}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 ie=0;const{shapeFlag:le}=$;if(z==null)z=null;else if(isArray$c(z))ie=16;else if(typeof z=="object")if(le&65){const ue=z.default;ue&&(ue._c&&(ue._d=!1),normalizeChildren($,ue()),ue._c&&(ue._d=!0));return}else{ie=32;const ue=z._;!ue&&!(InternalObjectKey in z)?z._ctx=currentRenderingInstance:ue===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?z._=1:(z._=2,$.patchFlag|=1024))}else isFunction$5(z)?(z={default:z,_ctx:currentRenderingInstance},ie=32):(z=String(z),le&64?(ie=16,z=[createTextVNode(z)]):ie=8);$.children=z,$.shapeFlag|=ie}function mergeProps(...$){const z={};for(let ie=0;ie<$.length;ie++){const le=$[ie];for(const ue in le)if(ue==="class")z.class!==le.class&&(z.class=normalizeClass([z.class,le.class]));else if(ue==="style")z.style=normalizeStyle$1([z.style,le.style]);else if(isOn(ue)){const pe=z[ue],_e=le[ue];_e&&pe!==_e&&!(isArray$c(pe)&&pe.includes(_e))&&(z[ue]=pe?[].concat(pe,_e):_e)}else ue!==""&&(z[ue]=le[ue])}return z}function invokeVNodeHook($,z,ie,le=null){callWithAsyncErrorHandling($,z,7,[ie,le])}const emptyAppContext=createAppContext();let uid$2=0;function createComponentInstance($,z,ie){const le=$.type,ue=(z?z.appContext:$.appContext)||emptyAppContext,pe={uid:uid$2++,vnode:$,type:le,parent:z,appContext:ue,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(ue.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(le,ue),emitsOptions:normalizeEmitsOptions(le,ue),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:le.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:ie,suspenseId:ie?ie.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 pe.ctx={_:pe},pe.root=z?z.root:pe,pe.emit=emit.bind(null,pe),$.ce&&$.ce(pe),pe}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&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent($){return $.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent($,z=!1){isInSSRComponentSetup=z;const{props:ie,children:le}=$.vnode,ue=isStatefulComponent($);initProps$1($,ie,ue,z),initSlots($,le);const pe=ue?setupStatefulComponent($,z):void 0;return isInSSRComponentSetup=!1,pe}function setupStatefulComponent($,z){const ie=$.type;$.accessCache=Object.create(null),$.proxy=markRaw(new Proxy($.ctx,PublicInstanceProxyHandlers));const{setup:le}=ie;if(le){const ue=$.setupContext=le.length>1?createSetupContext($):null;setCurrentInstance($),pauseTracking();const pe=callWithErrorHandling(le,$,0,[$.props,ue]);if(resetTracking(),unsetCurrentInstance(),isPromise(pe)){if(pe.then(unsetCurrentInstance,unsetCurrentInstance),z)return pe.then(_e=>{handleSetupResult($,_e,z)}).catch(_e=>{handleError(_e,$,0)});$.asyncDep=pe}else handleSetupResult($,pe,z)}else finishComponentSetup($,z)}function handleSetupResult($,z,ie){isFunction$5(z)?$.type.__ssrInlineRender?$.ssrRender=z:$.render=z:isObject$8(z)&&($.setupState=proxyRefs(z)),finishComponentSetup($,ie)}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,ie){const le=$.type;if(!$.render){if(!z&&compile$1&&!le.render){const ue=le.template||resolveMergedOptions($).template;if(ue){const{isCustomElement:pe,compilerOptions:_e}=$.appContext.config,{delimiters:Ce,compilerOptions:$e}=le,xe=extend$2(extend$2({isCustomElement:pe,delimiters:Ce},_e),$e);le.render=compile$1(ue,xe)}}$.render=le.render||NOOP,installWithProxy&&installWithProxy($)}setCurrentInstance($),pauseTracking(),applyOptions($),resetTracking(),unsetCurrentInstance()}function getAttrsProxy($){return $.attrsProxy||($.attrsProxy=new Proxy($.attrs,{get(z,ie){return track($,"get","$attrs"),z[ie]}}))}function createSetupContext($){const z=ie=>{$.exposed=ie||{}};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,ie){if(ie in z)return z[ie];if(ie in publicPropertiesMap)return publicPropertiesMap[ie]($)},has(z,ie){return ie in z||ie 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,ie){const le=arguments.length;return le===2?isObject$8(z)&&!isArray$c(z)?isVNode$1(z)?createVNode($,null,[z]):createVNode($,z):createVNode($,null,z):(le>3?ie=Array.prototype.slice.call(arguments,2):le===3&&isVNode$1(ie)&&(ie=[ie]),createVNode($,z,ie))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo($,z,ie,le){const ue=ie[le];if(ue&&isMemoSame(ue,$))return ue;const pe=z();return pe.memo=$.slice(),ie[le]=pe}function isMemoSame($,z){const ie=$.memo;if(ie.length!=z.length)return!1;for(let le=0;le<ie.length;le++)if(hasChanged(ie[le],z[le]))return!1;return isBlockTreeEnabled>0&&currentBlock&&currentBlock.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,ie)=>{z.insertBefore($,ie||null)},remove:$=>{const z=$.parentNode;z&&z.removeChild($)},createElement:($,z,ie,le)=>{const ue=z?doc$1.createElementNS(svgNS,$):doc$1.createElement($,ie?{is:ie}:void 0);return $==="select"&&le&&le.multiple!=null&&ue.setAttribute("multiple",le.multiple),ue},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,ie,le,ue,pe){const _e=ie?ie.previousSibling:z.lastChild;if(ue&&(ue===pe||ue.nextSibling))for(;z.insertBefore(ue.cloneNode(!0),ie),!(ue===pe||!(ue=ue.nextSibling)););else{templateContainer.innerHTML=le?`<svg>${$}</svg>`:$;const Ce=templateContainer.content;if(le){const $e=Ce.firstChild;for(;$e.firstChild;)Ce.appendChild($e.firstChild);Ce.removeChild($e)}z.insertBefore(Ce,ie)}return[_e?_e.nextSibling:z.firstChild,ie?ie.previousSibling:z.lastChild]}};function patchClass($,z,ie){const le=$._vtc;le&&(z=(z?[z,...le]:[...le]).join(" ")),z==null?$.removeAttribute("class"):ie?$.setAttribute("class",z):$.className=z}function patchStyle($,z,ie){const le=$.style,ue=isString$7(ie);if(ie&&!ue){if(z&&!isString$7(z))for(const pe in z)ie[pe]==null&&setStyle(le,pe,"");for(const pe in ie)setStyle(le,pe,ie[pe])}else{const pe=le.display;ue?z!==ie&&(le.cssText=ie):z&&$.removeAttribute("style"),"_vod"in $&&(le.display=pe)}}const importantRE=/\s*!important$/;function setStyle($,z,ie){if(isArray$c(ie))ie.forEach(le=>setStyle($,z,le));else if(ie==null&&(ie=""),z.startsWith("--"))$.setProperty(z,ie);else{const le=autoPrefix($,z);importantRE.test(ie)?$.setProperty(hyphenate(le),ie.replace(importantRE,""),"important"):$[le]=ie}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix($,z){const ie=prefixCache[z];if(ie)return ie;let le=camelize(z);if(le!=="filter"&&le in $)return prefixCache[z]=le;le=capitalize$2(le);for(let ue=0;ue<prefixes.length;ue++){const pe=prefixes[ue]+le;if(pe in $)return prefixCache[z]=pe}return z}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr($,z,ie,le,ue){if(le&&z.startsWith("xlink:"))ie==null?$.removeAttributeNS(xlinkNS,z.slice(6,z.length)):$.setAttributeNS(xlinkNS,z,ie);else{const pe=isSpecialBooleanAttr(z);ie==null||pe&&!includeBooleanAttr(ie)?$.removeAttribute(z):$.setAttribute(z,pe?"":ie)}}function patchDOMProp($,z,ie,le,ue,pe,_e){if(z==="innerHTML"||z==="textContent"){le&&_e(le,ue,pe),$[z]=ie??"";return}const Ce=$.tagName;if(z==="value"&&Ce!=="PROGRESS"&&!Ce.includes("-")){$._value=ie;const xe=Ce==="OPTION"?$.getAttribute("value"):$.value,Ie=ie??"";xe!==Ie&&($.value=Ie),ie==null&&$.removeAttribute(z);return}let $e=!1;if(ie===""||ie==null){const xe=typeof $[z];xe==="boolean"?ie=includeBooleanAttr(ie):ie==null&&xe==="string"?(ie="",$e=!0):xe==="number"&&(ie=0,$e=!0)}try{$[z]=ie}catch{}$e&&$.removeAttribute(z)}function addEventListener$1($,z,ie,le){$.addEventListener(z,ie,le)}function removeEventListener$1($,z,ie,le){$.removeEventListener(z,ie,le)}function patchEvent($,z,ie,le,ue=null){const pe=$._vei||($._vei={}),_e=pe[z];if(le&&_e)_e.value=le;else{const[Ce,$e]=parseName(z);if(le){const xe=pe[z]=createInvoker(le,ue);addEventListener$1($,Ce,xe,$e)}else _e&&(removeEventListener$1($,Ce,_e,$e),pe[z]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName($){let z;if(optionsModifierRE.test($)){z={};let le;for(;le=$.match(optionsModifierRE);)$=$.slice(0,$.length-le[0].length),z[le[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 ie=le=>{if(!le._vts)le._vts=Date.now();else if(le._vts<=ie.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(le,ie.value),z,5,[le])};return ie.value=$,ie.attached=getNow(),ie}function patchStopImmediatePropagation($,z){if(isArray$c(z)){const ie=$.stopImmediatePropagation;return $.stopImmediatePropagation=()=>{ie.call($),$._stopped=!0},z.map(le=>ue=>!ue._stopped&&le&&le(ue))}else return z}const nativeOnRE=/^on[a-z]/,patchProp=($,z,ie,le,ue=!1,pe,_e,Ce,$e)=>{z==="class"?patchClass($,le,ue):z==="style"?patchStyle($,ie,le):isOn(z)?isModelListener(z)||patchEvent($,z,ie,le,_e):(z[0]==="."?(z=z.slice(1),!0):z[0]==="^"?(z=z.slice(1),!1):shouldSetAsProp($,z,le,ue))?patchDOMProp($,z,le,pe,_e,Ce,$e):(z==="true-value"?$._trueValue=le:z==="false-value"&&($._falseValue=le),patchAttr($,z,le,ue))};function shouldSetAsProp($,z,ie,le){return le?!!(z==="innerHTML"||z==="textContent"||z in $&&nativeOnRE.test(z)&&isFunction$5(ie)):z==="spellcheck"||z==="draggable"||z==="translate"||z==="form"||z==="list"&&$.tagName==="INPUT"||z==="type"&&$.tagName==="TEXTAREA"||nativeOnRE.test(z)&&isString$7(ie)?!1:z in $}function defineCustomElement($,z){const ie=defineComponent($);class le extends VueElement{constructor(pe){super(ie,pe,z)}}return le.def=ie,le}const defineSSRCustomElement=$=>defineCustomElement($,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(z,ie={},le){super(),this._def=z,this._props=ie,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&le?le(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 le=0;le<this.attributes.length;le++)this._setAttr(this.attributes[le].name);new MutationObserver(le=>{for(const ue of le)this._setAttr(ue.attributeName)}).observe(this,{attributes:!0});const z=(le,ue=!1)=>{const{props:pe,styles:_e}=le;let Ce;if(pe&&!isArray$c(pe))for(const $e in pe){const xe=pe[$e];(xe===Number||xe&&xe.type===Number)&&($e in this._props&&(this._props[$e]=toNumber$1(this._props[$e])),(Ce||(Ce=Object.create(null)))[camelize($e)]=!0)}this._numberProps=Ce,ue&&this._resolveProps(le),this._applyStyles(_e),this._update()},ie=this._def.__asyncLoader;ie?ie().then(le=>z(le,!0)):z(this._def)}_resolveProps(z){const{props:ie}=z,le=isArray$c(ie)?ie:Object.keys(ie||{});for(const ue of Object.keys(this))ue[0]!=="_"&&le.includes(ue)&&this._setProp(ue,this[ue],!0,!1);for(const ue of le.map(camelize))Object.defineProperty(this,ue,{get(){return this._getProp(ue)},set(pe){this._setProp(ue,pe)}})}_setAttr(z){let ie=this.getAttribute(z);const le=camelize(z);this._numberProps&&this._numberProps[le]&&(ie=toNumber$1(ie)),this._setProp(le,ie,!1)}_getProp(z){return this._props[z]}_setProp(z,ie,le=!0,ue=!0){ie!==this._props[z]&&(this._props[z]=ie,ue&&this._instance&&this._update(),le&&(ie===!0?this.setAttribute(hyphenate(z),""):typeof ie=="string"||typeof ie=="number"?this.setAttribute(hyphenate(z),ie+""):ie||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=ie=>{this._instance=ie,ie.isCE=!0;const le=(pe,_e)=>{this.dispatchEvent(new CustomEvent(pe,{detail:_e}))};ie.emit=(pe,..._e)=>{le(pe,_e),hyphenate(pe)!==pe&&le(hyphenate(pe),_e)};let ue=this;for(;ue=ue&&(ue.parentNode||ue.host);)if(ue instanceof VueElement){ie.parent=ue._instance,ie.provides=ue._instance.provides;break}}),z}_applyStyles(z){z&&z.forEach(ie=>{const le=document.createElement("style");le.textContent=ie,this.shadowRoot.appendChild(le)})}}function useCssModule($="$style"){{const z=getCurrentInstance();if(!z)return EMPTY_OBJ$1;const ie=z.type.__cssModules;if(!ie)return EMPTY_OBJ$1;const le=ie[$];return le||EMPTY_OBJ$1}}function useCssVars($){const z=getCurrentInstance();if(!z)return;const ie=z.ut=(ue=$(z.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${z.uid}"]`)).forEach(pe=>setVarsOnNode(pe,ue))},le=()=>{const ue=$(z.proxy);setVarsOnVNode(z.subTree,ue),ie(ue)};watchPostEffect(le),onMounted(()=>{const ue=new MutationObserver(le);ue.observe(z.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>ue.disconnect())})}function setVarsOnVNode($,z){if($.shapeFlag&128){const ie=$.suspense;$=ie.activeBranch,ie.pendingBranch&&!ie.isHydrating&&ie.effects.push(()=>{setVarsOnVNode(ie.activeBranch,z)})}for(;$.component;)$=$.component.subTree;if($.shapeFlag&1&&$.el)setVarsOnNode($.el,z);else if($.type===Fragment)$.children.forEach(ie=>setVarsOnVNode(ie,z));else if($.type===Static){let{el:ie,anchor:le}=$;for(;ie&&(setVarsOnNode(ie,z),ie!==le);)ie=ie.nextSibling}}function setVarsOnNode($,z){if($.nodeType===1){const ie=$.style;for(const le in z)ie.setProperty(`--${le}`,z[le])}}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(ie=>ie(...z)):$&&$(...z)},hasExplicitCallback=$=>$?isArray$c($)?$.some(z=>z.length>1):$.length>1:!1;function resolveTransitionProps($){const z={};for(const kn in $)kn in DOMTransitionPropsValidators||(z[kn]=$[kn]);if($.css===!1)return z;const{name:ie="v",type:le,duration:ue,enterFromClass:pe=`${ie}-enter-from`,enterActiveClass:_e=`${ie}-enter-active`,enterToClass:Ce=`${ie}-enter-to`,appearFromClass:$e=pe,appearActiveClass:xe=_e,appearToClass:Ie=Ce,leaveFromClass:ze=`${ie}-leave-from`,leaveActiveClass:Ue=`${ie}-leave-active`,leaveToClass:qe=`${ie}-leave-to`}=$,Et=normalizeDuration(ue),Lt=Et&&Et[0],hn=Et&&Et[1],{onBeforeEnter:vn,onEnter:_n,onEnterCancelled:bn,onLeave:Sn,onLeaveCancelled:Cn,onBeforeAppear:En=vn,onAppear:$n=_n,onAppearCancelled:wn=bn}=z,Tn=(kn,An,Nn)=>{removeTransitionClass(kn,An?Ie:Ce),removeTransitionClass(kn,An?xe:_e),Nn&&Nn()},xn=(kn,An)=>{kn._isLeaving=!1,removeTransitionClass(kn,ze),removeTransitionClass(kn,qe),removeTransitionClass(kn,Ue),An&&An()},Pn=kn=>(An,Nn)=>{const Fn=kn?$n:_n,Ln=()=>Tn(An,kn,Nn);callHook(Fn,[An,Ln]),nextFrame(()=>{removeTransitionClass(An,kn?$e:pe),addTransitionClass(An,kn?Ie:Ce),hasExplicitCallback(Fn)||whenTransitionEnds(An,le,Lt,Ln)})};return extend$2(z,{onBeforeEnter(kn){callHook(vn,[kn]),addTransitionClass(kn,pe),addTransitionClass(kn,_e)},onBeforeAppear(kn){callHook(En,[kn]),addTransitionClass(kn,$e),addTransitionClass(kn,xe)},onEnter:Pn(!1),onAppear:Pn(!0),onLeave(kn,An){kn._isLeaving=!0;const Nn=()=>xn(kn,An);addTransitionClass(kn,ze),forceReflow(),addTransitionClass(kn,Ue),nextFrame(()=>{kn._isLeaving&&(removeTransitionClass(kn,ze),addTransitionClass(kn,qe),hasExplicitCallback(Sn)||whenTransitionEnds(kn,le,hn,Nn))}),callHook(Sn,[kn,Nn])},onEnterCancelled(kn){Tn(kn,!1),callHook(bn,[kn])},onAppearCancelled(kn){Tn(kn,!0),callHook(wn,[kn])},onLeaveCancelled(kn){xn(kn),callHook(Cn,[kn])}})}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(ie=>ie&&$.classList.add(ie)),($._vtc||($._vtc=new Set)).add(z)}function removeTransitionClass($,z){z.split(/\s+/).forEach(le=>le&&$.classList.remove(le));const{_vtc:ie}=$;ie&&(ie.delete(z),ie.size||($._vtc=void 0))}function nextFrame($){requestAnimationFrame(()=>{requestAnimationFrame($)})}let endId=0;function whenTransitionEnds($,z,ie,le){const ue=$._endId=++endId,pe=()=>{ue===$._endId&&le()};if(ie)return setTimeout(pe,ie);const{type:_e,timeout:Ce,propCount:$e}=getTransitionInfo($,z);if(!_e)return le();const xe=_e+"end";let Ie=0;const ze=()=>{$.removeEventListener(xe,Ue),pe()},Ue=qe=>{qe.target===$&&++Ie>=$e&&ze()};setTimeout(()=>{Ie<$e&&ze()},Ce+1),$.addEventListener(xe,Ue)}function getTransitionInfo($,z){const ie=window.getComputedStyle($),le=Et=>(ie[Et]||"").split(", "),ue=le(`${TRANSITION}Delay`),pe=le(`${TRANSITION}Duration`),_e=getTimeout(ue,pe),Ce=le(`${ANIMATION}Delay`),$e=le(`${ANIMATION}Duration`),xe=getTimeout(Ce,$e);let Ie=null,ze=0,Ue=0;z===TRANSITION?_e>0&&(Ie=TRANSITION,ze=_e,Ue=pe.length):z===ANIMATION?xe>0&&(Ie=ANIMATION,ze=xe,Ue=$e.length):(ze=Math.max(_e,xe),Ie=ze>0?_e>xe?TRANSITION:ANIMATION:null,Ue=Ie?Ie===TRANSITION?pe.length:$e.length:0);const qe=Ie===TRANSITION&&/\b(transform|all)(,|$)/.test(le(`${TRANSITION}Property`).toString());return{type:Ie,timeout:ze,propCount:Ue,hasTransform:qe}}function getTimeout($,z){for(;$.length<z.length;)$=$.concat($);return Math.max(...z.map((ie,le)=>toMs(ie)+toMs($[le])))}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 ie=getCurrentInstance(),le=useTransitionState();let ue,pe;return onUpdated(()=>{if(!ue.length)return;const _e=$.moveClass||`${$.name||"v"}-move`;if(!hasCSSTransform(ue[0].el,ie.vnode.el,_e))return;ue.forEach(callPendingCbs),ue.forEach(recordPosition);const Ce=ue.filter(applyTranslation);forceReflow(),Ce.forEach($e=>{const xe=$e.el,Ie=xe.style;addTransitionClass(xe,_e),Ie.transform=Ie.webkitTransform=Ie.transitionDuration="";const ze=xe._moveCb=Ue=>{Ue&&Ue.target!==xe||(!Ue||/transform$/.test(Ue.propertyName))&&(xe.removeEventListener("transitionend",ze),xe._moveCb=null,removeTransitionClass(xe,_e))};xe.addEventListener("transitionend",ze)})}),()=>{const _e=toRaw($),Ce=resolveTransitionProps(_e);let $e=_e.tag||Fragment;ue=pe,pe=z.default?getTransitionRawChildren(z.default()):[];for(let xe=0;xe<pe.length;xe++){const Ie=pe[xe];Ie.key!=null&&setTransitionHooks(Ie,resolveTransitionHooks(Ie,Ce,le,ie))}if(ue)for(let xe=0;xe<ue.length;xe++){const Ie=ue[xe];setTransitionHooks(Ie,resolveTransitionHooks(Ie,Ce,le,ie)),positionMap.set(Ie,Ie.el.getBoundingClientRect())}return createVNode($e,null,pe)}}},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($),ie=newPositionMap.get($),le=z.left-ie.left,ue=z.top-ie.top;if(le||ue){const pe=$.el.style;return pe.transform=pe.webkitTransform=`translate(${le}px,${ue}px)`,pe.transitionDuration="0s",$}}function hasCSSTransform($,z,ie){const le=$.cloneNode();$._vtc&&$._vtc.forEach(_e=>{_e.split(/\s+/).forEach(Ce=>Ce&&le.classList.remove(Ce))}),ie.split(/\s+/).forEach(_e=>_e&&le.classList.add(_e)),le.style.display="none";const ue=z.nodeType===1?z:z.parentNode;ue.appendChild(le);const{hasTransform:pe}=getTransitionInfo(le);return ue.removeChild(le),pe}const getModelAssigner=$=>{const z=$.props["onUpdate:modelValue"]||!1;return isArray$c(z)?ie=>invokeArrayFns(z,ie):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:ie,number:le}},ue){$._assign=getModelAssigner(ue);const pe=le||ue.props&&ue.props.type==="number";addEventListener$1($,z?"change":"input",_e=>{if(_e.target.composing)return;let Ce=$.value;ie&&(Ce=Ce.trim()),pe&&(Ce=looseToNumber(Ce)),$._assign(Ce)}),ie&&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:ie,trim:le,number:ue}},pe){if($._assign=getModelAssigner(pe),$.composing||document.activeElement===$&&$.type!=="range"&&(ie||le&&$.value.trim()===z||(ue||$.type==="number")&&looseToNumber($.value)===z))return;const _e=z??"";$.value!==_e&&($.value=_e)}},vModelCheckbox={deep:!0,created($,z,ie){$._assign=getModelAssigner(ie),addEventListener$1($,"change",()=>{const le=$._modelValue,ue=getValue$2($),pe=$.checked,_e=$._assign;if(isArray$c(le)){const Ce=looseIndexOf(le,ue),$e=Ce!==-1;if(pe&&!$e)_e(le.concat(ue));else if(!pe&&$e){const xe=[...le];xe.splice(Ce,1),_e(xe)}}else if(isSet$3(le)){const Ce=new Set(le);pe?Ce.add(ue):Ce.delete(ue),_e(Ce)}else _e(getCheckboxValue($,pe))})},mounted:setChecked,beforeUpdate($,z,ie){$._assign=getModelAssigner(ie),setChecked($,z,ie)}};function setChecked($,{value:z,oldValue:ie},le){$._modelValue=z,isArray$c(z)?$.checked=looseIndexOf(z,le.props.value)>-1:isSet$3(z)?$.checked=z.has(le.props.value):z!==ie&&($.checked=looseEqual(z,getCheckboxValue($,!0)))}const vModelRadio={created($,{value:z},ie){$.checked=looseEqual(z,ie.props.value),$._assign=getModelAssigner(ie),addEventListener$1($,"change",()=>{$._assign(getValue$2($))})},beforeUpdate($,{value:z,oldValue:ie},le){$._assign=getModelAssigner(le),z!==ie&&($.checked=looseEqual(z,le.props.value))}},vModelSelect={deep:!0,created($,{value:z,modifiers:{number:ie}},le){const ue=isSet$3(z);addEventListener$1($,"change",()=>{const pe=Array.prototype.filter.call($.options,_e=>_e.selected).map(_e=>ie?looseToNumber(getValue$2(_e)):getValue$2(_e));$._assign($.multiple?ue?new Set(pe):pe:pe[0])}),$._assign=getModelAssigner(le)},mounted($,{value:z}){setSelected($,z)},beforeUpdate($,z,ie){$._assign=getModelAssigner(ie)},updated($,{value:z}){setSelected($,z)}};function setSelected($,z){const ie=$.multiple;if(!(ie&&!isArray$c(z)&&!isSet$3(z))){for(let le=0,ue=$.options.length;le<ue;le++){const pe=$.options[le],_e=getValue$2(pe);if(ie)isArray$c(z)?pe.selected=looseIndexOf(z,_e)>-1:pe.selected=z.has(_e);else if(looseEqual(getValue$2(pe),z)){$.selectedIndex!==le&&($.selectedIndex=le);return}}!ie&&$.selectedIndex!==-1&&($.selectedIndex=-1)}}function getValue$2($){return"_value"in $?$._value:$.value}function getCheckboxValue($,z){const ie=z?"_trueValue":"_falseValue";return ie in $?$[ie]:z}const vModelDynamic={created($,z,ie){callModelHook($,z,ie,null,"created")},mounted($,z,ie){callModelHook($,z,ie,null,"mounted")},beforeUpdate($,z,ie,le){callModelHook($,z,ie,le,"beforeUpdate")},updated($,z,ie,le){callModelHook($,z,ie,le,"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,ie,le,ue){const _e=resolveDynamicModel($.tagName,ie.props&&ie.props.type)[ue];_e&&_e($,z,ie,le)}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 ie=resolveDynamicModel(z.type.toUpperCase(),z.props&&z.props.type);if(ie.getSSRProps)return ie.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(ie=>$[`${ie}Key`]&&!z.includes(ie))},withModifiers=($,z)=>(ie,...le)=>{for(let ue=0;ue<z.length;ue++){const pe=modifierGuards[z[ue]];if(pe&&pe(ie,z))return}return $(ie,...le)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=($,z)=>ie=>{if(!("key"in ie))return;const le=hyphenate(ie.key);if(z.some(ue=>ue===le||keyNames[ue]===le))return $(ie)},vShow={beforeMount($,{value:z},{transition:ie}){$._vod=$.style.display==="none"?"":$.style.display,ie&&z?ie.beforeEnter($):setDisplay($,z)},mounted($,{value:z},{transition:ie}){ie&&z&&ie.enter($)},updated($,{value:z,oldValue:ie},{transition:le}){!z!=!ie&&(le?z?(le.beforeEnter($),setDisplay($,!0),le.enter($)):le.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:ie}=z;return z.mount=le=>{const ue=normalizeContainer(le);if(!ue)return;const pe=z._component;!isFunction$5(pe)&&!pe.render&&!pe.template&&(pe.template=ue.innerHTML),ue.innerHTML="";const _e=ie(ue,!1,ue instanceof SVGElement);return ue instanceof Element&&(ue.removeAttribute("v-cloak"),ue.setAttribute("data-v-app","")),_e},z},createSSRApp=(...$)=>{const z=ensureHydrationRenderer().createApp(...$),{mount:ie}=z;return z.mount=le=>{const ue=normalizeContainer(le);if(ue)return ie(ue,!0,ue 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,...ie){let le;z.includes("mouse")||z.includes("click")?le="MouseEvents":z.includes("key")?le="KeyboardEvent":le="HTMLEvents";const ue=document.createEvent(le);return ue.initEvent(z,...ie),$.dispatchEvent(ue),$},isLeaf=$=>!$.getAttribute("aria-owns"),getSibling=($,z,ie)=>{const{parentNode:le}=$;if(!le)return null;const ue=le.querySelectorAll(ie),pe=Array.prototype.indexOf.call(ue,$);return ue[pe+z]||null},focusNode=$=>{$&&($.focus(),!isLeaf($)&&$.click())},composeEventHandlers=($,z,{checkForDefaultPrevented:ie=!0}={})=>ue=>{const pe=$==null?void 0:$(ue);if(ie===!1||!pe)return z==null?void 0:z(ue)},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,ie)=>z in $?__defProp$9($,z,{enumerable:!0,configurable:!0,writable:!0,value:ie}):$[z]=ie,__spreadValues$9=($,z)=>{for(var ie in z||(z={}))__hasOwnProp$b.call(z,ie)&&__defNormalProp$9($,ie,z[ie]);if(__getOwnPropSymbols$b)for(var ie of __getOwnPropSymbols$b(z))__propIsEnum$b.call(z,ie)&&__defNormalProp$9($,ie,z[ie]);return $},__spreadProps$6=($,z)=>__defProps$6($,__getOwnPropDescs$6(z));function computedEager($,z){var ie;const le=shallowRef();return watchEffect(()=>{le.value=$()},__spreadProps$6(__spreadValues$9({},z),{flush:(ie=z==null?void 0:z.flush)!=null?ie:"sync"})),readonly(le)}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 ie(...le){return new Promise((ue,pe)=>{Promise.resolve($(()=>z.apply(this,le),{fn:z,thisArg:this,args:le})).then(ue).catch(pe)})}return ie}function debounceFilter$1($,z={}){let ie,le,ue=noop$7;const pe=Ce=>{clearTimeout(Ce),ue(),ue=noop$7};return Ce=>{const $e=resolveUnref($),xe=resolveUnref(z.maxWait);return ie&&pe(ie),$e<=0||xe!==void 0&&xe<=0?(le&&(pe(le),le=null),Promise.resolve(Ce())):new Promise((Ie,ze)=>{ue=z.rejectOnCancel?ze:Ie,xe&&!le&&(le=setTimeout(()=>{ie&&pe(ie),le=null,Ie(Ce())},xe)),ie=setTimeout(()=>{le&&pe(le),le=null,Ie(Ce())},$e)})}}function throttleFilter($,z=!0,ie=!0,le=!1){let ue=0,pe,_e=!0,Ce=noop$7,$e;const xe=()=>{pe&&(clearTimeout(pe),pe=void 0,Ce(),Ce=noop$7)};return ze=>{const Ue=resolveUnref($),qe=Date.now()-ue,Et=()=>$e=ze();return xe(),Ue<=0?(ue=Date.now(),Et()):(qe>Ue&&(ie||!_e)?(ue=Date.now(),Et()):z&&($e=new Promise((Lt,hn)=>{Ce=le?hn:Lt,pe=setTimeout(()=>{ue=Date.now(),_e=!0,Lt(Et()),xe()},Math.max(0,Ue-qe))})),!ie&&!pe&&(pe=setTimeout(()=>_e=!0,Ue)),_e=!1,$e)}}function identity$2($){return $}function tryOnScopeDispose$2($){return getCurrentScope()?(onScopeDispose($),!0):!1}function useDebounceFn$1($,z=200,ie={}){return createFilterWrapper$1(debounceFilter$1(z,ie),$)}function refDebounced($,z=200,ie={}){const le=ref($.value),ue=useDebounceFn$1(()=>{le.value=$.value},z,ie);return watch($,()=>ue()),le}function useThrottleFn($,z=200,ie=!1,le=!0,ue=!1){return createFilterWrapper$1(throttleFilter(z,ie,le,ue),$)}function tryOnMounted$1($,z=!0){getCurrentInstance()?onMounted($):z?$():nextTick($)}function useTimeoutFn$1($,z,ie={}){const{immediate:le=!0}=ie,ue=ref(!1);let pe=null;function _e(){pe&&(clearTimeout(pe),pe=null)}function Ce(){ue.value=!1,_e()}function $e(...xe){_e(),ue.value=!0,pe=setTimeout(()=>{ue.value=!1,pe=null,$(...xe)},resolveUnref(z))}return le&&(ue.value=!0,isClient$2&&$e()),tryOnScopeDispose$2(Ce),{isPending:readonly(ue),start:$e,stop:Ce}}function unrefElement$1($){var z;const ie=resolveUnref($);return(z=ie==null?void 0:ie.$el)!=null?z:ie}const defaultWindow$1=isClient$2?window:void 0,defaultDocument=isClient$2?window.document:void 0;function useEventListener$1(...$){let z,ie,le,ue;if(isString$6($[0])||Array.isArray($[0])?([ie,le,ue]=$,z=defaultWindow$1):[z,ie,le,ue]=$,!z)return noop$7;Array.isArray(ie)||(ie=[ie]),Array.isArray(le)||(le=[le]);const pe=[],_e=()=>{pe.forEach(Ie=>Ie()),pe.length=0},Ce=(Ie,ze,Ue,qe)=>(Ie.addEventListener(ze,Ue,qe),()=>Ie.removeEventListener(ze,Ue,qe)),$e=watch(()=>[unrefElement$1(z),resolveUnref(ue)],([Ie,ze])=>{_e(),Ie&&pe.push(...ie.flatMap(Ue=>le.map(qe=>Ce(Ie,Ue,qe,ze))))},{immediate:!0,flush:"post"}),xe=()=>{$e(),_e()};return tryOnScopeDispose$2(xe),xe}let _iOSWorkaround=!1;function onClickOutside($,z,ie={}){const{window:le=defaultWindow$1,ignore:ue=[],capture:pe=!0,detectIframe:_e=!1}=ie;if(!le)return;isIOS$1&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(le.document.body.children).forEach(Ue=>Ue.addEventListener("click",noop$7)));let Ce=!0;const $e=Ue=>ue.some(qe=>{if(typeof qe=="string")return Array.from(le.document.querySelectorAll(qe)).some(Et=>Et===Ue.target||Ue.composedPath().includes(Et));{const Et=unrefElement$1(qe);return Et&&(Ue.target===Et||Ue.composedPath().includes(Et))}}),Ie=[useEventListener$1(le,"click",Ue=>{const qe=unrefElement$1($);if(!(!qe||qe===Ue.target||Ue.composedPath().includes(qe))){if(Ue.detail===0&&(Ce=!$e(Ue)),!Ce){Ce=!0;return}z(Ue)}},{passive:!0,capture:pe}),useEventListener$1(le,"pointerdown",Ue=>{const qe=unrefElement$1($);qe&&(Ce=!Ue.composedPath().includes(qe)&&!$e(Ue))},{passive:!0}),_e&&useEventListener$1(le,"blur",Ue=>{var qe;const Et=unrefElement$1($);((qe=le.document.activeElement)==null?void 0:qe.tagName)==="IFRAME"&&!(Et!=null&&Et.contains(le.document.activeElement))&&z(Ue)})].filter(Boolean);return()=>Ie.forEach(Ue=>Ue())}function useSupported($,z=!1){const ie=ref(),le=()=>ie.value=!!$();return le(),tryOnMounted$1(le,z),ie}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:ie=defaultWindow$1,initialValue:le=""}={}){const ue=ref(le),pe=computed(()=>{var _e;return unrefElement$1(z)||((_e=ie==null?void 0:ie.document)==null?void 0:_e.documentElement)});return watch([pe,()=>resolveUnref($)],([_e,Ce])=>{var $e;if(_e&&ie){const xe=($e=ie.getComputedStyle(_e).getPropertyValue(Ce))==null?void 0:$e.trim();ue.value=xe||le}},{immediate:!0}),watch(ue,_e=>{var Ce;(Ce=pe.value)!=null&&Ce.style&&pe.value.style.setProperty(resolveUnref($),_e)}),ue}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 ie={};for(var le in $)__hasOwnProp$g.call($,le)&&z.indexOf(le)<0&&(ie[le]=$[le]);if($!=null&&__getOwnPropSymbols$g)for(var le of __getOwnPropSymbols$g($))z.indexOf(le)<0&&__propIsEnum$g.call($,le)&&(ie[le]=$[le]);return ie};function useResizeObserver($,z,ie={}){const le=ie,{window:ue=defaultWindow$1}=le,pe=__objRest$2(le,["window"]);let _e;const Ce=useSupported(()=>ue&&"ResizeObserver"in ue),$e=()=>{_e&&(_e.disconnect(),_e=void 0)},xe=watch(()=>unrefElement$1($),ze=>{$e(),Ce.value&&ue&&ze&&(_e=new ResizeObserver(z),_e.observe(ze,pe))},{immediate:!0,flush:"post"}),Ie=()=>{$e(),xe()};return tryOnScopeDispose$2(Ie),{isSupported:Ce,stop:Ie}}function useElementBounding($,z={}){const{reset:ie=!0,windowResize:le=!0,windowScroll:ue=!0,immediate:pe=!0}=z,_e=ref(0),Ce=ref(0),$e=ref(0),xe=ref(0),Ie=ref(0),ze=ref(0),Ue=ref(0),qe=ref(0);function Et(){const Lt=unrefElement$1($);if(!Lt){ie&&(_e.value=0,Ce.value=0,$e.value=0,xe.value=0,Ie.value=0,ze.value=0,Ue.value=0,qe.value=0);return}const hn=Lt.getBoundingClientRect();_e.value=hn.height,Ce.value=hn.bottom,$e.value=hn.left,xe.value=hn.right,Ie.value=hn.top,ze.value=hn.width,Ue.value=hn.x,qe.value=hn.y}return useResizeObserver($,Et),watch(()=>unrefElement$1($),Lt=>!Lt&&Et()),ue&&useEventListener$1("scroll",Et,{capture:!0,passive:!0}),le&&useEventListener$1("resize",Et,{passive:!0}),tryOnMounted$1(()=>{pe&&Et()}),{height:_e,bottom:Ce,left:$e,right:xe,top:Ie,width:ze,x:Ue,y:qe,update:Et}}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,ie)=>z in $?__defProp($,z,{enumerable:!0,configurable:!0,writable:!0,value:ie}):$[z]=ie,__spreadValues=($,z)=>{for(var ie in z||(z={}))__hasOwnProp.call(z,ie)&&__defNormalProp($,ie,z[ie]);if(__getOwnPropSymbols)for(var ie of __getOwnPropSymbols(z))__propIsEnum.call(z,ie)&&__defNormalProp($,ie,z[ie]);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,ie,le={}){var ue,pe,_e;const{clone:Ce=!1,passive:$e=!1,eventName:xe,deep:Ie=!1,defaultValue:ze}=le,Ue=getCurrentInstance(),qe=ie||(Ue==null?void 0:Ue.emit)||((ue=Ue==null?void 0:Ue.$emit)==null?void 0:ue.bind(Ue))||((_e=(pe=Ue==null?void 0:Ue.proxy)==null?void 0:pe.$emit)==null?void 0:_e.bind(Ue==null?void 0:Ue.proxy));let Et=xe;z||(z="modelValue"),Et=xe||Et||`update:${z.toString()}`;const Lt=vn=>Ce?isFunction$4(Ce)?Ce(vn):cloneFnJSON(vn):vn,hn=()=>isDef($[z])?Lt($[z]):ze;if($e){const vn=hn(),_n=ref(vn);return watch(()=>$[z],bn=>_n.value=Lt(bn)),watch(_n,bn=>{(bn!==$[z]||Ie)&&qe(Et,bn)},{deep:Ie}),_n}else return computed({get(){return hn()},set(vn){qe(Et,vn)}})}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:ie=1/0,initialHeight:le=1/0,listenOrientation:ue=!0,includeScrollbar:pe=!0}=$,_e=ref(ie),Ce=ref(le),$e=()=>{z&&(pe?(_e.value=z.innerWidth,Ce.value=z.innerHeight):(_e.value=z.document.documentElement.clientWidth,Ce.value=z.document.documentElement.clientHeight))};return $e(),tryOnMounted$1($e),useEventListener$1("resize",$e,{passive:!0}),ue&&useEventListener$1("orientationchange",$e,{passive:!0}),{width:_e,height:Ce}}const isFirefox=()=>isClient$2&&/firefox/i.test(window.navigator.userAgent),isInContainer=($,z)=>{if(!isClient$2||!$||!z)return!1;const ie=$.getBoundingClientRect();let le;return z instanceof Element?le=z.getBoundingClientRect():le={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},ie.top<le.bottom&&ie.bottom>le.top&&ie.right>le.left&&ie.left<le.right},getOffsetTop=$=>{let z=0,ie=$;for(;ie;)z+=ie.offsetTop,ie=ie.offsetParent;return z},getOffsetTopDistance=($,z)=>Math.abs(getOffsetTop($)-getOffsetTop(z)),getClientXY=$=>{let z,ie;return $.type==="touchend"?(ie=$.changedTouches[0].clientY,z=$.changedTouches[0].clientX):$.type.startsWith("touch")?(ie=$.touches[0].clientY,z=$.touches[0].clientX):(ie=$.clientY,z=$.clientX),{clientX:z,clientY:ie}};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),ie=$[symToStringTag$1];try{$[symToStringTag$1]=void 0;var le=!0}catch{}var ue=nativeObjectToString$1.call($);return le&&(z?$[symToStringTag$1]=ie:delete $[symToStringTag$1]),ue}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 ie=-1,le=$==null?0:$.length,ue=Array(le);++ie<le;)ue[ie]=z($[ie],ie,$);return ue}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 ie=reIsBinary.test($);return ie||reIsOctal.test($)?freeParseInt($.slice(2),ie?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 ie=getValue$1($,z);return baseIsNative(ie)?ie: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 ie=new $;return $.prototype=void 0,ie}}();const baseCreate$1=baseCreate;function apply$1($,z,ie){switch(ie.length){case 0:return $.call(z);case 1:return $.call(z,ie[0]);case 2:return $.call(z,ie[0],ie[1]);case 3:return $.call(z,ie[0],ie[1],ie[2])}return $.apply(z,ie)}function noop$6(){}function copyArray($,z){var ie=-1,le=$.length;for(z||(z=Array(le));++ie<le;)z[ie]=$[ie];return z}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut($){var z=0,ie=0;return function(){var le=nativeNow(),ue=HOT_SPAN-(le-ie);if(ie=le,ue>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 ie=-1,le=$==null?0:$.length;++ie<le&&z($[ie],ie,$)!==!1;);return $}function baseFindIndex($,z,ie,le){for(var ue=$.length,pe=ie+(le?1:-1);le?pe--:++pe<ue;)if(z($[pe],pe,$))return pe;return-1}function baseIsNaN($){return $!==$}function strictIndexOf($,z,ie){for(var le=ie-1,ue=$.length;++le<ue;)if($[le]===z)return le;return-1}function baseIndexOf($,z,ie){return z===z?strictIndexOf($,z,ie):baseFindIndex($,baseIsNaN,ie)}function arrayIncludes($,z){var ie=$==null?0:$.length;return!!ie&&baseIndexOf($,z,0)>-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex($,z){var ie=typeof $;return z=z??MAX_SAFE_INTEGER$2,!!z&&(ie=="number"||ie!="symbol"&&reIsUint.test($))&&$>-1&&$%1==0&&$<z}function baseAssignValue($,z,ie){z=="__proto__"&&defineProperty$1?defineProperty$1($,z,{configurable:!0,enumerable:!0,value:ie,writable:!0}):$[z]=ie}function eq($,z){return $===z||$!==$&&z!==z}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty;function assignValue($,z,ie){var le=$[z];(!(hasOwnProperty$c.call($,z)&&eq(le,ie))||ie===void 0&&!(z in $))&&baseAssignValue($,z,ie)}function copyObject($,z,ie,le){var ue=!ie;ie||(ie={});for(var pe=-1,_e=z.length;++pe<_e;){var Ce=z[pe],$e=le?le(ie[Ce],$[Ce],Ce,ie,$):void 0;$e===void 0&&($e=$[Ce]),ue?baseAssignValue(ie,Ce,$e):assignValue(ie,Ce,$e)}return ie}var nativeMax$1=Math.max;function overRest($,z,ie){return z=nativeMax$1(z===void 0?$.length-1:z,0),function(){for(var le=arguments,ue=-1,pe=nativeMax$1(le.length-z,0),_e=Array(pe);++ue<pe;)_e[ue]=le[z+ue];ue=-1;for(var Ce=Array(z+1);++ue<z;)Ce[ue]=le[ue];return Ce[z]=ie(_e),apply$1($,this,Ce)}}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,ie){if(!isObject$7(ie))return!1;var le=typeof z;return(le=="number"?isArrayLike$1(ie)&&isIndex(z,ie.length):le=="string"&&z in ie)?eq(ie[z],$):!1}function createAssigner($){return baseRest(function(z,ie){var le=-1,ue=ie.length,pe=ue>1?ie[ue-1]:void 0,_e=ue>2?ie[2]:void 0;for(pe=$.length>3&&typeof pe=="function"?(ue--,pe):void 0,_e&&isIterateeCall(ie[0],ie[1],_e)&&(pe=ue<3?void 0:pe,ue=1),z=Object(z);++le<ue;){var Ce=ie[le];Ce&&$(z,Ce,le,pe)}return z})}var objectProto$b=Object.prototype;function isPrototype($){var z=$&&$.constructor,ie=typeof z=="function"&&z.prototype||objectProto$b;return $===ie}function baseTimes($,z){for(var ie=-1,le=Array($);++ie<$;)le[ie]=z(ie);return le}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 ie=isArray$b($),le=!ie&&isArguments$1($),ue=!ie&&!le&&isBuffer$3($),pe=!ie&&!le&&!ue&&isTypedArray$3($),_e=ie||le||ue||pe,Ce=_e?baseTimes($.length,String):[],$e=Ce.length;for(var xe in $)(z||hasOwnProperty$a.call($,xe))&&!(_e&&(xe=="length"||ue&&(xe=="offset"||xe=="parent")||pe&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||isIndex(xe,$e)))&&Ce.push(xe);return Ce}function overArg($,z){return function(ie){return $(z(ie))}}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 ie in Object($))hasOwnProperty$9.call($,ie)&&ie!="constructor"&&z.push(ie);return z}function keys$1($){return isArrayLike$1($)?arrayLikeKeys($):baseKeys($)}function nativeKeysIn($){var z=[];if($!=null)for(var ie in Object($))z.push(ie);return z}var objectProto$7=Object.prototype,hasOwnProperty$8=objectProto$7.hasOwnProperty;function baseKeysIn($){if(!isObject$7($))return nativeKeysIn($);var z=isPrototype($),ie=[];for(var le in $)le=="constructor"&&(z||!hasOwnProperty$8.call($,le))||ie.push(le);return ie}function keysIn($){return isArrayLike$1($)?arrayLikeKeys($,!0):baseKeysIn($)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey($,z){if(isArray$b($))return!1;var ie=typeof $;return ie=="number"||ie=="symbol"||ie=="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 ie=z[$];return ie===HASH_UNDEFINED$2?void 0:ie}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 ie=this.__data__;return this.size+=this.has($)?0:1,ie[$]=nativeCreate$1&&z===void 0?HASH_UNDEFINED$1:z,this}function Hash($){var z=-1,ie=$==null?0:$.length;for(this.clear();++z<ie;){var le=$[z];this.set(le[0],le[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 ie=$.length;ie--;)if(eq($[ie][0],z))return ie;return-1}var arrayProto$1=Array.prototype,splice=arrayProto$1.splice;function listCacheDelete($){var z=this.__data__,ie=assocIndexOf(z,$);if(ie<0)return!1;var le=z.length-1;return ie==le?z.pop():splice.call(z,ie,1),--this.size,!0}function listCacheGet$1($){var z=this.__data__,ie=assocIndexOf(z,$);return ie<0?void 0:z[ie][1]}function listCacheHas($){return assocIndexOf(this.__data__,$)>-1}function listCacheSet$1($,z){var ie=this.__data__,le=assocIndexOf(ie,$);return le<0?(++this.size,ie.push([$,z])):ie[le][1]=z,this}function ListCache($){var z=-1,ie=$==null?0:$.length;for(this.clear();++z<ie;){var le=$[z];this.set(le[0],le[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 ie=$.__data__;return isKeyable(z)?ie[typeof z=="string"?"string":"hash"]:ie.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 ie=getMapData(this,$),le=ie.size;return ie.set($,z),this.size+=ie.size==le?0:1,this}function MapCache($){var z=-1,ie=$==null?0:$.length;for(this.clear();++z<ie;){var le=$[z];this.set(le[0],le[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 ie=function(){var le=arguments,ue=z?z.apply(this,le):le[0],pe=ie.cache;if(pe.has(ue))return pe.get(ue);var _e=$.apply(this,le);return ie.cache=pe.set(ue,_e)||pe,_e};return ie.cache=new(memoize.Cache||MapCache),ie}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped($){var z=memoize($,function(le){return ie.size===MAX_MEMOIZE_SIZE&&ie.clear(),le}),ie=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(ie,le,ue,pe){z.push(ue?pe.replace(reEscapeChar$1,"$1"):le||ie)}),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 ie=0,le=z.length;$!=null&&ie<le;)$=$[toKey(z[ie++])];return ie&&ie==le?$:void 0}function get$1($,z,ie){var le=$==null?void 0:baseGet($,z);return le===void 0?ie:le}function arrayPush($,z){for(var ie=-1,le=z.length,ue=$.length;++ie<le;)$[ue+ie]=z[ie];return $}var spreadableSymbol=Symbol$3?Symbol$3.isConcatSpreadable:void 0;function isFlattenable($){return isArray$b($)||isArguments$1($)||!!(spreadableSymbol&&$&&$[spreadableSymbol])}function baseFlatten($,z,ie,le,ue){var pe=-1,_e=$.length;for(ie||(ie=isFlattenable),ue||(ue=[]);++pe<_e;){var Ce=$[pe];z>0&&ie(Ce)?z>1?baseFlatten(Ce,z-1,ie,le,ue):arrayPush(ue,Ce):le||(ue[ue.length]=Ce)}return ue}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 ie=hasOwnProperty$5.call(z,"constructor")&&z.constructor;return typeof ie=="function"&&ie instanceof ie&&funcToString.call(ie)==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__,ie=z.delete($);return this.size=z.size,ie}function stackGet($){return this.__data__.get($)}function stackHas($){return this.__data__.has($)}var LARGE_ARRAY_SIZE$1=200;function stackSet($,z){var ie=this.__data__;if(ie instanceof ListCache){var le=ie.__data__;if(!Map$2||le.length<LARGE_ARRAY_SIZE$1-1)return le.push([$,z]),this.size=++ie.size,this;ie=this.__data__=new MapCache(le)}return ie.set($,z),this.size=ie.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 $&&copyObject(z,keys$1(z),$)}function baseAssignIn($,z){return $&&copyObject(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 ie=$.length,le=allocUnsafe?allocUnsafe(ie):new $.constructor(ie);return $.copy(le),le}function arrayFilter($,z){for(var ie=-1,le=$==null?0:$.length,ue=0,pe=[];++ie<le;){var _e=$[ie];z(_e,ie,$)&&(pe[ue++]=_e)}return pe}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,ie){var le=z($);return isArray$b($)?le:arrayPush(le,ie($))}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($),ie=z==objectTag$2?$.constructor:void 0,le=ie?toSource(ie):"";if(le)switch(le){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,ie=new $.constructor(z);return z&&typeof $[0]=="string"&&hasOwnProperty$4.call($,"index")&&(ie.index=$.index,ie.input=$.input),ie}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 ie=z?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(ie,$.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 ie=z?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(ie,$.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,ie){var le=$.constructor;switch(z){case arrayBufferTag$2:return cloneArrayBuffer($);case boolTag$2:case dateTag$2:return new le(+$);case dataViewTag$2:return cloneDataView($,ie);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($,ie);case mapTag$3:return new le;case numberTag$2:case stringTag$2:return new le($);case regexpTag$2:return cloneRegExp($);case setTag$3:return new le;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,ie,le,ue,pe){var _e,Ce=z&CLONE_DEEP_FLAG$1,$e=z&CLONE_FLAT_FLAG,xe=z&CLONE_SYMBOLS_FLAG$2;if(ie&&(_e=ue?ie($,le,ue,pe):ie($)),_e!==void 0)return _e;if(!isObject$7($))return $;var Ie=isArray$b($);if(Ie){if(_e=initCloneArray($),!Ce)return copyArray($,_e)}else{var ze=getTag$1($),Ue=ze==funcTag||ze==genTag;if(isBuffer$3($))return cloneBuffer($,Ce);if(ze==objectTag$1||ze==argsTag$1||Ue&&!ue){if(_e=$e||Ue?{}:initCloneObject($),!Ce)return $e?copySymbolsIn($,baseAssignIn(_e,$)):copySymbols($,baseAssign(_e,$))}else{if(!cloneableTags[ze])return ue?$:{};_e=initCloneByTag($,ze,Ce)}}pe||(pe=new Stack);var qe=pe.get($);if(qe)return qe;pe.set($,_e),isSet$2($)?$.forEach(function(hn){_e.add(baseClone(hn,z,ie,hn,$,pe))}):isMap$2($)&&$.forEach(function(hn,vn){_e.set(vn,baseClone(hn,z,ie,vn,$,pe))});var Et=xe?$e?getAllKeysIn:getAllKeys:$e?keysIn:keys$1,Lt=Ie?void 0:Et($);return arrayEach(Lt||$,function(hn,vn){Lt&&(vn=hn,hn=$[vn]),assignValue(_e,vn,baseClone(hn,z,ie,vn,$,pe))}),_e}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,ie=$==null?0:$.length;for(this.__data__=new MapCache;++z<ie;)this.add($[z])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome($,z){for(var ie=-1,le=$==null?0:$.length;++ie<le;)if(z($[ie],ie,$))return!0;return!1}function cacheHas($,z){return $.has(z)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays($,z,ie,le,ue,pe){var _e=ie&COMPARE_PARTIAL_FLAG$5,Ce=$.length,$e=z.length;if(Ce!=$e&&!(_e&&$e>Ce))return!1;var xe=pe.get($),Ie=pe.get(z);if(xe&&Ie)return xe==z&&Ie==$;var ze=-1,Ue=!0,qe=ie&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(pe.set($,z),pe.set(z,$);++ze<Ce;){var Et=$[ze],Lt=z[ze];if(le)var hn=_e?le(Lt,Et,ze,z,$,pe):le(Et,Lt,ze,$,z,pe);if(hn!==void 0){if(hn)continue;Ue=!1;break}if(qe){if(!arraySome(z,function(vn,_n){if(!cacheHas(qe,_n)&&(Et===vn||ue(Et,vn,ie,le,pe)))return qe.push(_n)})){Ue=!1;break}}else if(!(Et===Lt||ue(Et,Lt,ie,le,pe))){Ue=!1;break}}return pe.delete($),pe.delete(z),Ue}function mapToArray($){var z=-1,ie=Array($.size);return $.forEach(function(le,ue){ie[++z]=[ue,le]}),ie}function setToArray($){var z=-1,ie=Array($.size);return $.forEach(function(le){ie[++z]=le}),ie}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,ie,le,ue,pe,_e){switch(ie){case dataViewTag:if($.byteLength!=z.byteLength||$.byteOffset!=z.byteOffset)return!1;$=$.buffer,z=z.buffer;case arrayBufferTag:return!($.byteLength!=z.byteLength||!pe(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 Ce=mapToArray;case setTag:var $e=le&COMPARE_PARTIAL_FLAG$4;if(Ce||(Ce=setToArray),$.size!=z.size&&!$e)return!1;var xe=_e.get($);if(xe)return xe==z;le|=COMPARE_UNORDERED_FLAG$2,_e.set($,z);var Ie=equalArrays(Ce($),Ce(z),le,ue,pe,_e);return _e.delete($),Ie;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,ie,le,ue,pe){var _e=ie&COMPARE_PARTIAL_FLAG$3,Ce=getAllKeys($),$e=Ce.length,xe=getAllKeys(z),Ie=xe.length;if($e!=Ie&&!_e)return!1;for(var ze=$e;ze--;){var Ue=Ce[ze];if(!(_e?Ue in z:hasOwnProperty$3.call(z,Ue)))return!1}var qe=pe.get($),Et=pe.get(z);if(qe&&Et)return qe==z&&Et==$;var Lt=!0;pe.set($,z),pe.set(z,$);for(var hn=_e;++ze<$e;){Ue=Ce[ze];var vn=$[Ue],_n=z[Ue];if(le)var bn=_e?le(_n,vn,Ue,z,$,pe):le(vn,_n,Ue,$,z,pe);if(!(bn===void 0?vn===_n||ue(vn,_n,ie,le,pe):bn)){Lt=!1;break}hn||(hn=Ue=="constructor")}if(Lt&&!hn){var Sn=$.constructor,Cn=z.constructor;Sn!=Cn&&"constructor"in $&&"constructor"in z&&!(typeof Sn=="function"&&Sn instanceof Sn&&typeof Cn=="function"&&Cn instanceof Cn)&&(Lt=!1)}return pe.delete($),pe.delete(z),Lt}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,ie,le,ue,pe){var _e=isArray$b($),Ce=isArray$b(z),$e=_e?arrayTag:getTag$1($),xe=Ce?arrayTag:getTag$1(z);$e=$e==argsTag?objectTag:$e,xe=xe==argsTag?objectTag:xe;var Ie=$e==objectTag,ze=xe==objectTag,Ue=$e==xe;if(Ue&&isBuffer$3($)){if(!isBuffer$3(z))return!1;_e=!0,Ie=!1}if(Ue&&!Ie)return pe||(pe=new Stack),_e||isTypedArray$3($)?equalArrays($,z,ie,le,ue,pe):equalByTag($,z,$e,ie,le,ue,pe);if(!(ie&COMPARE_PARTIAL_FLAG$2)){var qe=Ie&&hasOwnProperty$2.call($,"__wrapped__"),Et=ze&&hasOwnProperty$2.call(z,"__wrapped__");if(qe||Et){var Lt=qe?$.value():$,hn=Et?z.value():z;return pe||(pe=new Stack),ue(Lt,hn,ie,le,pe)}}return Ue?(pe||(pe=new Stack),equalObjects($,z,ie,le,ue,pe)):!1}function baseIsEqual($,z,ie,le,ue){return $===z?!0:$==null||z==null||!isObjectLike($)&&!isObjectLike(z)?$!==$&&z!==z:baseIsEqualDeep($,z,ie,le,baseIsEqual,ue)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch($,z,ie,le){var ue=ie.length,pe=ue,_e=!le;if($==null)return!pe;for($=Object($);ue--;){var Ce=ie[ue];if(_e&&Ce[2]?Ce[1]!==$[Ce[0]]:!(Ce[0]in $))return!1}for(;++ue<pe;){Ce=ie[ue];var $e=Ce[0],xe=$[$e],Ie=Ce[1];if(_e&&Ce[2]){if(xe===void 0&&!($e in $))return!1}else{var ze=new Stack;if(le)var Ue=le(xe,Ie,$e,$,z,ze);if(!(Ue===void 0?baseIsEqual(Ie,xe,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,le,ze):Ue))return!1}}return!0}function isStrictComparable($){return $===$&&!isObject$7($)}function getMatchData($){for(var z=keys$1($),ie=z.length;ie--;){var le=z[ie],ue=$[le];z[ie]=[le,ue,isStrictComparable(ue)]}return z}function matchesStrictComparable($,z){return function(ie){return ie==null?!1:ie[$]===z&&(z!==void 0||$ in Object(ie))}}function baseMatches($){var z=getMatchData($);return z.length==1&&z[0][2]?matchesStrictComparable(z[0][0],z[0][1]):function(ie){return ie===$||baseIsMatch(ie,$,z)}}function baseHasIn($,z){return $!=null&&z in Object($)}function hasPath($,z,ie){z=castPath(z,$);for(var le=-1,ue=z.length,pe=!1;++le<ue;){var _e=toKey(z[le]);if(!(pe=$!=null&&ie($,_e)))break;$=$[_e]}return pe||++le!=ue?pe:(ue=$==null?0:$.length,!!ue&&isLength(ue)&&isIndex(_e,ue)&&(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(ie){var le=get$1(ie,$);return le===void 0&&le===z?hasIn(ie,$):baseIsEqual(z,le,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,ie,le){for(var ue=-1,pe=Object(z),_e=le(z),Ce=_e.length;Ce--;){var $e=_e[$?Ce:++ue];if(ie(pe[$e],$e,pe)===!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(ie,le){if(ie==null)return ie;if(!isArrayLike$1(ie))return $(ie,le);for(var ue=ie.length,pe=z?ue:-1,_e=Object(ie);(z?pe--:++pe<ue)&&le(_e[pe],pe,_e)!==!1;);return ie}}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,ie){var le,ue,pe,_e,Ce,$e,xe=0,Ie=!1,ze=!1,Ue=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT$1);z=toNumber(z)||0,isObject$7(ie)&&(Ie=!!ie.leading,ze="maxWait"in ie,pe=ze?nativeMax(toNumber(ie.maxWait)||0,z):pe,Ue="trailing"in ie?!!ie.trailing:Ue);function qe(En){var $n=le,wn=ue;return le=ue=void 0,xe=En,_e=$.apply(wn,$n),_e}function Et(En){return xe=En,Ce=setTimeout(vn,z),Ie?qe(En):_e}function Lt(En){var $n=En-$e,wn=En-xe,Tn=z-$n;return ze?nativeMin(Tn,pe-wn):Tn}function hn(En){var $n=En-$e,wn=En-xe;return $e===void 0||$n>=z||$n<0||ze&&wn>=pe}function vn(){var En=now$1();if(hn(En))return _n(En);Ce=setTimeout(vn,Lt(En))}function _n(En){return Ce=void 0,Ue&&le?qe(En):(le=ue=void 0,_e)}function bn(){Ce!==void 0&&clearTimeout(Ce),xe=0,le=$e=ue=Ce=void 0}function Sn(){return Ce===void 0?_e:_n(now$1())}function Cn(){var En=now$1(),$n=hn(En);if(le=arguments,ue=this,$e=En,$n){if(Ce===void 0)return Et($e);if(ze)return clearTimeout(Ce),Ce=setTimeout(vn,z),qe($e)}return Ce===void 0&&(Ce=setTimeout(vn,z)),_e}return Cn.cancel=bn,Cn.flush=Sn,Cn}function assignMergeValue($,z,ie){(ie!==void 0&&!eq($[z],ie)||ie===void 0&&!(z in $))&&baseAssignValue($,z,ie)}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,ie,le,ue,pe,_e){var Ce=safeGet($,ie),$e=safeGet(z,ie),xe=_e.get($e);if(xe){assignMergeValue($,ie,xe);return}var Ie=pe?pe(Ce,$e,ie+"",$,z,_e):void 0,ze=Ie===void 0;if(ze){var Ue=isArray$b($e),qe=!Ue&&isBuffer$3($e),Et=!Ue&&!qe&&isTypedArray$3($e);Ie=$e,Ue||qe||Et?isArray$b(Ce)?Ie=Ce:isArrayLikeObject(Ce)?Ie=copyArray(Ce):qe?(ze=!1,Ie=cloneBuffer($e,!0)):Et?(ze=!1,Ie=cloneTypedArray($e,!0)):Ie=[]:isPlainObject$3($e)||isArguments$1($e)?(Ie=Ce,isArguments$1(Ce)?Ie=toPlainObject(Ce):(!isObject$7(Ce)||isFunction$3(Ce))&&(Ie=initCloneObject($e))):ze=!1}ze&&(_e.set($e,Ie),ue(Ie,$e,le,pe,_e),_e.delete($e)),assignMergeValue($,ie,Ie)}function baseMerge($,z,ie,le,ue){$!==z&&baseFor$1(z,function(pe,_e){if(ue||(ue=new Stack),isObject$7(pe))baseMergeDeep($,z,_e,ie,baseMerge,le,ue);else{var Ce=le?le(safeGet($,_e),pe,_e+"",$,z,ue):void 0;Ce===void 0&&(Ce=pe),assignMergeValue($,_e,Ce)}},keysIn)}function arrayIncludesWith($,z,ie){for(var le=-1,ue=$==null?0:$.length;++le<ue;)if(ie(z,$[le]))return!0;return!1}function baseMap($,z){var ie=-1,le=isArrayLike$1($)?Array($.length):[];return baseEach$1($,function(ue,pe,_e){le[++ie]=z(ue,pe,_e)}),le}function map$3($,z){var ie=isArray$b($)?arrayMap:baseMap;return ie($,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,ie=$==null?0:$.length,le={};++z<ie;){var ue=$[z];le[ue[0]]=ue[1]}return le}function isEqual$1($,z){return baseIsEqual($,z)}function isNil($){return $==null}function isUndefined$2($){return $===void 0}var merge$3=createAssigner(function($,z,ie){baseMerge($,z,ie)});const merge$4=merge$3;function baseSet($,z,ie,le){if(!isObject$7($))return $;z=castPath(z,$);for(var ue=-1,pe=z.length,_e=pe-1,Ce=$;Ce!=null&&++ue<pe;){var $e=toKey(z[ue]),xe=ie;if($e==="__proto__"||$e==="constructor"||$e==="prototype")return $;if(ue!=_e){var Ie=Ce[$e];xe=le?le(Ie,$e,Ce):void 0,xe===void 0&&(xe=isObject$7(Ie)?Ie:isIndex(z[ue+1])?[]:{})}assignValue(Ce,$e,xe),Ce=Ce[$e]}return $}function basePickBy($,z,ie){for(var le=-1,ue=z.length,pe={};++le<ue;){var _e=z[le],Ce=baseGet($,_e);ie(Ce,_e)&&baseSet(pe,castPath(_e,$),Ce)}return pe}function basePick($,z){return basePickBy($,z,function(ie,le){return hasIn($,le)})}var pick=flatRest(function($,z){return $==null?{}:basePick($,z)});const pick$1=pick;function set$3($,z,ie){return $==null?$:baseSet($,z,ie)}var FUNC_ERROR_TEXT="Expected a function";function throttle$1($,z,ie){var le=!0,ue=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$7(ie)&&(le="leading"in ie?!!ie.leading:le,ue="trailing"in ie?!!ie.trailing:ue),debounce($,z,{leading:le,maxWait:z,trailing:ue})}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,ie){var le=-1,ue=arrayIncludes,pe=$.length,_e=!0,Ce=[],$e=Ce;if(ie)_e=!1,ue=arrayIncludesWith;else if(pe>=LARGE_ARRAY_SIZE){var xe=z?null:createSet$1($);if(xe)return setToArray(xe);_e=!1,ue=cacheHas,$e=new SetCache}else $e=z?[]:Ce;e:for(;++le<pe;){var Ie=$[le],ze=z?z(Ie):Ie;if(Ie=ie||Ie!==0?Ie:0,_e&&ze===ze){for(var Ue=$e.length;Ue--;)if($e[Ue]===ze)continue e;z&&$e.push(ze),Ce.push(Ie)}else ue($e,ze,ie)||($e!==Ce&&$e.push(ze),Ce.push(Ie))}return Ce}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,ie)=>({get value(){return get$1($,z,ie)},set value(le){set$3($,z,le)}});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 ie;if(!isClient$2||!$||!z)return"";let le=camelize(z);le==="float"&&(le="cssFloat");try{const ue=$.style[le];if(ue)return ue;const pe=(ie=document.defaultView)==null?void 0:ie.getComputedStyle($,"");return pe?pe[le]:""}catch{return $.style[le]}};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 ie={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(z)],le=getStyle$1($,ie);return["scroll","auto","overlay"].some(ue=>le.includes(ue))},getScrollContainer=($,z)=>{if(!isClient$2)return;let ie=$;for(;ie;){if([window,document,document.documentElement].includes(ie))return window;if(isScroll(ie,z))return ie;ie=ie.parentNode}return ie};let scrollBarWidth;const getScrollBarWidth=$=>{var z;if(!isClient$2)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const ie=document.createElement("div");ie.className=`${$}-scrollbar__wrap`,ie.style.visibility="hidden",ie.style.width="100px",ie.style.position="absolute",ie.style.top="-9999px",document.body.appendChild(ie);const le=ie.offsetWidth;ie.style.overflow="scroll";const ue=document.createElement("div");ue.style.width="100%",ie.appendChild(ue);const pe=ue.offsetWidth;return(z=ie.parentNode)==null||z.removeChild(ie),scrollBarWidth=le-pe,scrollBarWidth};function scrollIntoView($,z){if(!isClient$2)return;if(!z){$.scrollTop=0;return}const ie=[];let le=z.offsetParent;for(;le!==null&&$!==le&&$.contains(le);)ie.push(le),le=le.offsetParent;const ue=z.offsetTop+ie.reduce(($e,xe)=>$e+xe.offsetTop,0),pe=ue+z.offsetHeight,_e=$.scrollTop,Ce=_e+$.clientHeight;ue<_e?$.scrollTop=ue:pe>Ce&&($.scrollTop=pe-$.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=($,z)=>{let ie=$.__vccOpts||$;for(let[le,ue]of z)ie[le]=ue;return ie},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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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,ie,le,ue,pe){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:ie,required:le,default:ue,type:pe,validator:_e}=$,$e={type:pe,required:!!le,validator:ie||_e?xe=>{let Ie=!1,ze=[];if(ie&&(ze=Array.from(ie),hasOwn$4($,"default")&&ze.push(ue),Ie||(Ie=ze.includes(xe))),_e&&(Ie||(Ie=_e(xe))),!Ie&&ze.length>0){const Ue=[...new Set(ze)].map(qe=>JSON.stringify(qe)).join(", ");warn$2(`Invalid prop: validation failed${z?` for prop "${z}"`:""}. Expected one of [${Ue}], got value ${JSON.stringify(xe)}.`)}return Ie}:void 0,[epPropKey]:!0};return hasOwn$4($,"default")&&($e.default=ue),$e},buildProps=$=>fromPairs(Object.entries($).map(([z,ie])=>[z,buildProp(ie,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=ie=>{for(const le of[$,...Object.values(z??{})])ie.component(le.name,le)},z)for(const[ie,le]of Object.entries(z))$[ie]=le;return $},withInstallFunction=($,z)=>($.install=ie=>{$._context=ie._context,ie.config.globalProperties[z]=$},$),withInstallDirective=($,z)=>($.install=ie=>{ie.directive(z,$)},$),withNoopInstall=$=>($.install=NOOP,$),composeRefs=(...$)=>z=>{$.forEach(ie=>{isFunction$5(ie)?ie(z):ie.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||{},ie=(isVNode$1($.type)?$.type.props:void 0)||{},le={};return Object.keys(ie).forEach(ue=>{hasOwn$4(ie[ue],"default")&&(le[ue]=ie[ue].default)}),Object.keys(z).forEach(ue=>{le[camelize(ue)]=z[ue]}),le},ensureOnlyChild=$=>{if(!isArray$c($)||$.length>1)throw new Error("expect to receive a single Vue element child");return $[0]},flattedChildren=$=>{const z=isArray$c($)?$:[$],ie=[];return z.forEach(le=>{var ue;isArray$c(le)?ie.push(...flattedChildren(le)):isVNode$1(le)&&isArray$c(le.children)?ie.push(...flattedChildren(le.children)):(ie.push(le),isVNode$1(le)&&((ue=le.component)!=null&&ue.subTree)&&ie.push(...flattedChildren(le.component.subTree)))}),ie},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:ie}=$,le=computed(()=>((ie==null?void 0:ie.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),ue=getCurrentInstance();return computed(ue?()=>{var pe;return fromPairs(Object.entries((pe=ue.proxy)==null?void 0:pe.$attrs).filter(([_e])=>!le.value.includes(_e)&&!(z&&LISTENER_PREFIX.test(_e))))}:()=>({}))},useDeprecated=({from:$,replacement:z,scope:ie,version:le,ref:ue,type:pe="API"},_e)=>{watch(()=>unref(_e),Ce=>{},{immediate:!0})},useDraggable=($,z,ie)=>{let le={offsetX:0,offsetY:0};const ue=Ce=>{const $e=Ce.clientX,xe=Ce.clientY,{offsetX:Ie,offsetY:ze}=le,Ue=$.value.getBoundingClientRect(),qe=Ue.left,Et=Ue.top,Lt=Ue.width,hn=Ue.height,vn=document.documentElement.clientWidth,_n=document.documentElement.clientHeight,bn=-qe+Ie,Sn=-Et+ze,Cn=vn-qe-Lt+Ie,En=_n-Et-hn+ze,$n=Tn=>{const xn=Math.min(Math.max(Ie+Tn.clientX-$e,bn),Cn),Pn=Math.min(Math.max(ze+Tn.clientY-xe,Sn),En);le={offsetX:xn,offsetY:Pn},$.value.style.transform=`translate(${addUnit(xn)}, ${addUnit(Pn)})`},wn=()=>{document.removeEventListener("mousemove",$n),document.removeEventListener("mouseup",wn)};document.addEventListener("mousemove",$n),document.addEventListener("mouseup",wn)},pe=()=>{z.value&&$.value&&z.value.addEventListener("mousedown",ue)},_e=()=>{z.value&&$.value&&z.value.removeEventListener("mousedown",ue)};onMounted(()=>{watchEffect(()=>{ie.value?pe():_e()})}),onBeforeUnmount(()=>{_e()})},useFocus=$=>({focus:()=>{var z,ie;(ie=(z=$.value)==null?void 0:z.focus)==null||ie.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,ie)=>translate$2(z,ie,unref($)),translate$2=($,z,ie)=>get$1(ie,$,$).replace(/\{(\w+)\}/g,(le,ue)=>{var pe;return`${(pe=z==null?void 0:z[ue])!=null?pe:`{${ue}}`}`}),buildLocaleContext=$=>{const z=computed(()=>unref($).name),ie=isRef($)?$:ref($);return{lang:z,locale:ie,t:buildTranslator($)}},localeContextKey=Symbol("localeContextKey"),useLocale=$=>{const z=$||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>z.value||English))},defaultNamespace="el",statePrefix="is-",_bem=($,z,ie,le,ue)=>{let pe=`${$}-${z}`;return ie&&(pe+=`-${ie}`),le&&(pe+=`__${le}`),ue&&(pe+=`--${ue}`),pe},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=$=>{const z=$||inject(namespaceContextKey,ref(defaultNamespace));return computed(()=>unref(z)||defaultNamespace)},useNamespace=($,z)=>{const ie=useGetDerivedNamespace(z);return{namespace:ie,b:(Lt="")=>_bem(ie.value,$,Lt,"",""),e:Lt=>Lt?_bem(ie.value,$,"",Lt,""):"",m:Lt=>Lt?_bem(ie.value,$,"","",Lt):"",be:(Lt,hn)=>Lt&&hn?_bem(ie.value,$,Lt,hn,""):"",em:(Lt,hn)=>Lt&&hn?_bem(ie.value,$,"",Lt,hn):"",bm:(Lt,hn)=>Lt&&hn?_bem(ie.value,$,Lt,"",hn):"",bem:(Lt,hn,vn)=>Lt&&hn&&vn?_bem(ie.value,$,Lt,hn,vn):"",is:(Lt,...hn)=>{const vn=hn.length>=1?hn[0]:!0;return Lt&&vn?`${statePrefix}${Lt}`:""},cssVar:Lt=>{const hn={};for(const vn in Lt)Lt[vn]&&(hn[`--${ie.value}-${vn}`]=Lt[vn]);return hn},cssVarName:Lt=>`--${ie.value}-${Lt}`,cssVarBlock:Lt=>{const hn={};for(const vn in Lt)Lt[vn]&&(hn[`--${ie.value}-${$}-${vn}`]=Lt[vn]);return hn},cssVarBlockName:Lt=>`--${ie.value}-${$}-${Lt}`}},useLockscreen=($,z={})=>{isRef($)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const ie=z.ns||useNamespace("popup"),le=computed$1(()=>ie.bm("parent","hidden"));if(!isClient$2||hasClass(document.body,le.value))return;let ue=0,pe=!1,_e="0";const Ce=()=>{setTimeout(()=>{removeClass(document==null?void 0:document.body,le.value),pe&&document&&(document.body.style.width=_e)},200)};watch($,$e=>{if(!$e){Ce();return}pe=!hasClass(document.body,le.value),pe&&(_e=document.body.style.width),ue=getScrollBarWidth(ie.namespace.value);const xe=document.documentElement.clientHeight<document.body.scrollHeight,Ie=getStyle$1(document.body,"overflowY");ue>0&&(xe||Ie==="scroll")&&pe&&(document.body.style.width=`calc(100% - ${ue}px)`),addClass(document.body,le.value)}),onScopeDispose(()=>Ce())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=$=>{const z=`update:${$}`,ie=`onUpdate:${$}`,le=[z],ue={[$]:_prop,[ie]:_event};return{useModelToggle:({indicator:_e,toggleReason:Ce,shouldHideWhenRouteChanges:$e,shouldProceed:xe,onShow:Ie,onHide:ze})=>{const Ue=getCurrentInstance(),{emit:qe}=Ue,Et=Ue.props,Lt=computed(()=>isFunction$5(Et[ie])),hn=computed(()=>Et[$]===null),vn=$n=>{_e.value!==!0&&(_e.value=!0,Ce&&(Ce.value=$n),isFunction$5(Ie)&&Ie($n))},_n=$n=>{_e.value!==!1&&(_e.value=!1,Ce&&(Ce.value=$n),isFunction$5(ze)&&ze($n))},bn=$n=>{if(Et.disabled===!0||isFunction$5(xe)&&!xe())return;const wn=Lt.value&&isClient$2;wn&&qe(z,!0),(hn.value||!wn)&&vn($n)},Sn=$n=>{if(Et.disabled===!0||!isClient$2)return;const wn=Lt.value&&isClient$2;wn&&qe(z,!1),(hn.value||!wn)&&_n($n)},Cn=$n=>{isBoolean$3($n)&&(Et.disabled&&$n?Lt.value&&qe(z,!1):_e.value!==$n&&($n?vn():_n()))},En=()=>{_e.value?Sn():bn()};return watch(()=>Et[$],Cn),$e&&Ue.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...Ue.proxy.$route}),()=>{$e.value&&_e.value&&Sn()}),onMounted(()=>{Cn(Et[$])}),{hide:Sn,show:bn,toggle:En,hasUpdateHandler:Lt}},useModelToggleProps:ue,useModelToggleEmits:le}};createModelToggleComposable("modelValue");const useProp=$=>{const z=getCurrentInstance();return computed(()=>{var ie,le;return(le=(ie=z==null?void 0:z.proxy)==null?void 0:ie.$props)==null?void 0:le[$]})};var E$2="top",R$2="bottom",W$1="right",P$4="left",me$1="auto",G=[E$2,R$2,W$1,P$4],U$2="start",J="end",Xe="clippingParents",je$1="viewport",K$2="popper",Ye="reference",De=G.reduce(function($,z){return $.concat([z+"-"+U$2,z+"-"+J])},[]),Ee=[].concat(G,[me$1]).reduce(function($,z){return $.concat([z,z+"-"+U$2,z+"-"+J])},[]),Ge$1="beforeRead",Je="read",Ke$1="afterRead",Qe="beforeMain",Ze$1="main",et$1="afterMain",tt$1="beforeWrite",nt$1="write",rt$2="afterWrite",ot$1=[Ge$1,Je,Ke$1,Qe,Ze$1,et$1,tt$1,nt$1,rt$2];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($){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$1($){var z=$.state;Object.keys(z.elements).forEach(function(ie){var le=z.styles[ie]||{},ue=z.attributes[ie]||{},pe=z.elements[ie];!B(pe)||!C$2(pe)||(Object.assign(pe.style,le),Object.keys(ue).forEach(function(_e){var Ce=ue[_e];Ce===!1?pe.removeAttribute(_e):pe.setAttribute(_e,Ce===!0?"":Ce)}))})}function Rt($){var z=$.state,ie={popper:{position:z.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(z.elements.popper.style,ie.popper),z.styles=ie,z.elements.arrow&&Object.assign(z.elements.arrow.style,ie.arrow),function(){Object.keys(z.elements).forEach(function(le){var ue=z.elements[le],pe=z.attributes[le]||{},_e=Object.keys(z.styles.hasOwnProperty(le)?z.styles[le]:ie[le]),Ce=_e.reduce(function($e,xe){return $e[xe]="",$e},{});!B(ue)||!C$2(ue)||(Object.assign(ue.style,Ce),Object.keys(pe).forEach(function($e){ue.removeAttribute($e)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt$1,effect:Rt,requires:["computeStyles"]};function q$1($){return $.split("-")[0]}var X$1=Math.max,ve$1=Math.min,Z$1=Math.round;function ee($,z){z===void 0&&(z=!1);var ie=$.getBoundingClientRect(),le=1,ue=1;if(B($)&&z){var pe=$.offsetHeight,_e=$.offsetWidth;_e>0&&(le=Z$1(ie.width)/_e||1),pe>0&&(ue=Z$1(ie.height)/pe||1)}return{width:ie.width/le,height:ie.height/ue,top:ie.top/ue,right:ie.right/le,bottom:ie.bottom/ue,left:ie.left/le,x:ie.left/le,y:ie.top/ue}}function ke($){var z=ee($),ie=$.offsetWidth,le=$.offsetHeight;return Math.abs(z.width-ie)<=1&&(ie=z.width),Math.abs(z.height-le)<=1&&(le=z.height),{x:$.offsetLeft,y:$.offsetTop,width:ie,height:le}}function it$1($,z){var ie=z.getRootNode&&z.getRootNode();if($.contains(z))return!0;if(ie&&Pe(ie)){var le=z;do{if(le&&$.isSameNode(le))return!0;le=le.parentNode||le.host}while(le)}return!1}function N$1($){return H$3($).getComputedStyle($)}function Wt$1($){return["table","td","th"].indexOf(C$2($))>=0}function I$2($){return((Q($)?$.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$1($).position==="fixed"?null:$.offsetParent}function Bt$1($){var z=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,ie=navigator.userAgent.indexOf("Trident")!==-1;if(ie&&B($)){var le=N$1($);if(le.position==="fixed")return null}var ue=ge$1($);for(Pe(ue)&&(ue=ue.host);B(ue)&&["html","body"].indexOf(C$2(ue))<0;){var pe=N$1(ue);if(pe.transform!=="none"||pe.perspective!=="none"||pe.contain==="paint"||["transform","perspective"].indexOf(pe.willChange)!==-1||z&&pe.willChange==="filter"||z&&pe.filter&&pe.filter!=="none")return ue;ue=ue.parentNode}return null}function se($){for(var z=H$3($),ie=at$1($);ie&&Wt$1(ie)&&N$1(ie).position==="static";)ie=at$1(ie);return ie&&(C$2(ie)==="html"||C$2(ie)==="body"&&N$1(ie).position==="static")?z:ie||Bt$1($)||z}function Le$1($){return["top","bottom"].indexOf($)>=0?"x":"y"}function fe$1($,z,ie){return X$1($,ve$1(z,ie))}function St$1($,z,ie){var le=fe$1($,z,ie);return le>ie?ie:le}function st(){return{top:0,right:0,bottom:0,left:0}}function ft($){return Object.assign({},st(),$)}function ct($,z){return z.reduce(function(ie,le){return ie[le]=$,ie},{})}var Tt=function($,z){return $=typeof $=="function"?$(Object.assign({},z.rects,{placement:z.placement})):$,ft(typeof $!="number"?$:ct($,G))};function Ht$1($){var z,ie=$.state,le=$.name,ue=$.options,pe=ie.elements.arrow,_e=ie.modifiersData.popperOffsets,Ce=q$1(ie.placement),$e=Le$1(Ce),xe=[P$4,W$1].indexOf(Ce)>=0,Ie=xe?"height":"width";if(!(!pe||!_e)){var ze=Tt(ue.padding,ie),Ue=ke(pe),qe=$e==="y"?E$2:P$4,Et=$e==="y"?R$2:W$1,Lt=ie.rects.reference[Ie]+ie.rects.reference[$e]-_e[$e]-ie.rects.popper[Ie],hn=_e[$e]-ie.rects.reference[$e],vn=se(pe),_n=vn?$e==="y"?vn.clientHeight||0:vn.clientWidth||0:0,bn=Lt/2-hn/2,Sn=ze[qe],Cn=_n-Ue[Ie]-ze[Et],En=_n/2-Ue[Ie]/2+bn,$n=fe$1(Sn,En,Cn),wn=$e;ie.modifiersData[le]=(z={},z[wn]=$n,z.centerOffset=$n-En,z)}}function Ct($){var z=$.state,ie=$.options,le=ie.element,ue=le===void 0?"[data-popper-arrow]":le;ue!=null&&(typeof ue=="string"&&(ue=z.elements.popper.querySelector(ue),!ue)||!it$1(z.elements.popper,ue)||(z.elements.arrow=ue))}var pt$1={name:"arrow",enabled:!0,phase:"main",fn:Ht$1,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te($){return $.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt$1($){var z=$.x,ie=$.y,le=window,ue=le.devicePixelRatio||1;return{x:Z$1(z*ue)/ue||0,y:Z$1(ie*ue)/ue||0}}function ut$1($){var z,ie=$.popper,le=$.popperRect,ue=$.placement,pe=$.variation,_e=$.offsets,Ce=$.position,$e=$.gpuAcceleration,xe=$.adaptive,Ie=$.roundOffsets,ze=$.isFixed,Ue=_e.x,qe=Ue===void 0?0:Ue,Et=_e.y,Lt=Et===void 0?0:Et,hn=typeof Ie=="function"?Ie({x:qe,y:Lt}):{x:qe,y:Lt};qe=hn.x,Lt=hn.y;var vn=_e.hasOwnProperty("x"),_n=_e.hasOwnProperty("y"),bn=P$4,Sn=E$2,Cn=window;if(xe){var En=se(ie),$n="clientHeight",wn="clientWidth";if(En===H$3(ie)&&(En=I$2(ie),N$1(En).position!=="static"&&Ce==="absolute"&&($n="scrollHeight",wn="scrollWidth")),En=En,ue===E$2||(ue===P$4||ue===W$1)&&pe===J){Sn=R$2;var Tn=ze&&En===Cn&&Cn.visualViewport?Cn.visualViewport.height:En[$n];Lt-=Tn-le.height,Lt*=$e?1:-1}if(ue===P$4||(ue===E$2||ue===R$2)&&pe===J){bn=W$1;var xn=ze&&En===Cn&&Cn.visualViewport?Cn.visualViewport.width:En[wn];qe-=xn-le.width,qe*=$e?1:-1}}var Pn=Object.assign({position:Ce},xe&&qt),kn=Ie===!0?Vt$1({x:qe,y:Lt}):{x:qe,y:Lt};if(qe=kn.x,Lt=kn.y,$e){var An;return Object.assign({},Pn,(An={},An[Sn]=_n?"0":"",An[bn]=vn?"0":"",An.transform=(Cn.devicePixelRatio||1)<=1?"translate("+qe+"px, "+Lt+"px)":"translate3d("+qe+"px, "+Lt+"px, 0)",An))}return Object.assign({},Pn,(z={},z[Sn]=_n?Lt+"px":"",z[bn]=vn?qe+"px":"",z.transform="",z))}function Nt$1($){var z=$.state,ie=$.options,le=ie.gpuAcceleration,ue=le===void 0?!0:le,pe=ie.adaptive,_e=pe===void 0?!0:pe,Ce=ie.roundOffsets,$e=Ce===void 0?!0:Ce,xe={placement:q$1(z.placement),variation:te(z.placement),popper:z.elements.popper,popperRect:z.rects.popper,gpuAcceleration:ue,isFixed:z.options.strategy==="fixed"};z.modifiersData.popperOffsets!=null&&(z.styles.popper=Object.assign({},z.styles.popper,ut$1(Object.assign({},xe,{offsets:z.modifiersData.popperOffsets,position:z.options.strategy,adaptive:_e,roundOffsets:$e})))),z.modifiersData.arrow!=null&&(z.styles.arrow=Object.assign({},z.styles.arrow,ut$1(Object.assign({},xe,{offsets:z.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:$e})))),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,ie=$.instance,le=$.options,ue=le.scroll,pe=ue===void 0?!0:ue,_e=le.resize,Ce=_e===void 0?!0:_e,$e=H$3(z.elements.popper),xe=[].concat(z.scrollParents.reference,z.scrollParents.popper);return pe&&xe.forEach(function(Ie){Ie.addEventListener("scroll",ie.update,ye$1)}),Ce&&$e.addEventListener("resize",ie.update,ye$1),function(){pe&&xe.forEach(function(Ie){Ie.removeEventListener("scroll",ie.update,ye$1)}),Ce&&$e.removeEventListener("resize",ie.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($),ie=z.pageXOffset,le=z.pageYOffset;return{scrollLeft:ie,scrollTop:le}}function Be($){return ee(I$2($)).left+We($).scrollLeft}function Ft$1($){var z=H$3($),ie=I$2($),le=z.visualViewport,ue=ie.clientWidth,pe=ie.clientHeight,_e=0,Ce=0;return le&&(ue=le.width,pe=le.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(_e=le.offsetLeft,Ce=le.offsetTop)),{width:ue,height:pe,x:_e+Be($),y:Ce}}function Ut$1($){var z,ie=I$2($),le=We($),ue=(z=$.ownerDocument)==null?void 0:z.body,pe=X$1(ie.scrollWidth,ie.clientWidth,ue?ue.scrollWidth:0,ue?ue.clientWidth:0),_e=X$1(ie.scrollHeight,ie.clientHeight,ue?ue.scrollHeight:0,ue?ue.clientHeight:0),Ce=-le.scrollLeft+Be($),$e=-le.scrollTop;return N$1(ue||ie).direction==="rtl"&&(Ce+=X$1(ie.clientWidth,ue?ue.clientWidth:0)-pe),{width:pe,height:_e,x:Ce,y:$e}}function Se($){var z=N$1($),ie=z.overflow,le=z.overflowX,ue=z.overflowY;return/auto|scroll|overlay|hidden/.test(ie+ue+le)}function dt$1($){return["html","body","#document"].indexOf(C$2($))>=0?$.ownerDocument.body:B($)&&Se($)?$:dt$1(ge$1($))}function ce$1($,z){var ie;z===void 0&&(z=[]);var le=dt$1($),ue=le===((ie=$.ownerDocument)==null?void 0:ie.body),pe=H$3(le),_e=ue?[pe].concat(pe.visualViewport||[],Se(le)?le:[]):le,Ce=z.concat(_e);return ue?Ce:Ce.concat(ce$1(ge$1(_e)))}function Te($){return Object.assign({},$,{left:$.x,top:$.y,right:$.x+$.width,bottom:$.y+$.height})}function Xt$1($){var z=ee($);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(z)?Xt$1(z):Te(Ut$1(I$2($)))}function Yt($){var z=ce$1(ge$1($)),ie=["absolute","fixed"].indexOf(N$1($).position)>=0,le=ie&&B($)?se($):$;return Q(le)?z.filter(function(ue){return Q(ue)&&it$1(ue,le)&&C$2(ue)!=="body"}):[]}function Gt($,z,ie){var le=z==="clippingParents"?Yt($):[].concat(z),ue=[].concat(le,[ie]),pe=ue[0],_e=ue.reduce(function(Ce,$e){var xe=ht($,$e);return Ce.top=X$1(xe.top,Ce.top),Ce.right=ve$1(xe.right,Ce.right),Ce.bottom=ve$1(xe.bottom,Ce.bottom),Ce.left=X$1(xe.left,Ce.left),Ce},ht($,pe));return _e.width=_e.right-_e.left,_e.height=_e.bottom-_e.top,_e.x=_e.left,_e.y=_e.top,_e}function mt$1($){var z=$.reference,ie=$.element,le=$.placement,ue=le?q$1(le):null,pe=le?te(le):null,_e=z.x+z.width/2-ie.width/2,Ce=z.y+z.height/2-ie.height/2,$e;switch(ue){case E$2:$e={x:_e,y:z.y-ie.height};break;case R$2:$e={x:_e,y:z.y+z.height};break;case W$1:$e={x:z.x+z.width,y:Ce};break;case P$4:$e={x:z.x-ie.width,y:Ce};break;default:$e={x:z.x,y:z.y}}var xe=ue?Le$1(ue):null;if(xe!=null){var Ie=xe==="y"?"height":"width";switch(pe){case U$2:$e[xe]=$e[xe]-(z[Ie]/2-ie[Ie]/2);break;case J:$e[xe]=$e[xe]+(z[Ie]/2-ie[Ie]/2);break}}return $e}function ne$1($,z){z===void 0&&(z={});var ie=z,le=ie.placement,ue=le===void 0?$.placement:le,pe=ie.boundary,_e=pe===void 0?Xe:pe,Ce=ie.rootBoundary,$e=Ce===void 0?je$1:Ce,xe=ie.elementContext,Ie=xe===void 0?K$2:xe,ze=ie.altBoundary,Ue=ze===void 0?!1:ze,qe=ie.padding,Et=qe===void 0?0:qe,Lt=ft(typeof Et!="number"?Et:ct(Et,G)),hn=Ie===K$2?Ye:K$2,vn=$.rects.popper,_n=$.elements[Ue?hn:Ie],bn=Gt(Q(_n)?_n:_n.contextElement||I$2($.elements.popper),_e,$e),Sn=ee($.elements.reference),Cn=mt$1({reference:Sn,element:vn,strategy:"absolute",placement:ue}),En=Te(Object.assign({},vn,Cn)),$n=Ie===K$2?En:Sn,wn={top:bn.top-$n.top+Lt.top,bottom:$n.bottom-bn.bottom+Lt.bottom,left:bn.left-$n.left+Lt.left,right:$n.right-bn.right+Lt.right},Tn=$.modifiersData.offset;if(Ie===K$2&&Tn){var xn=Tn[ue];Object.keys(wn).forEach(function(Pn){var kn=[W$1,R$2].indexOf(Pn)>=0?1:-1,An=[E$2,R$2].indexOf(Pn)>=0?"y":"x";wn[Pn]+=xn[An]*kn})}return wn}function Jt($,z){z===void 0&&(z={});var ie=z,le=ie.placement,ue=ie.boundary,pe=ie.rootBoundary,_e=ie.padding,Ce=ie.flipVariations,$e=ie.allowedAutoPlacements,xe=$e===void 0?Ee:$e,Ie=te(le),ze=Ie?Ce?De:De.filter(function(Et){return te(Et)===Ie}):G,Ue=ze.filter(function(Et){return xe.indexOf(Et)>=0});Ue.length===0&&(Ue=ze);var qe=Ue.reduce(function(Et,Lt){return Et[Lt]=ne$1($,{placement:Lt,boundary:ue,rootBoundary:pe,padding:_e})[q$1(Lt)],Et},{});return Object.keys(qe).sort(function(Et,Lt){return qe[Et]-qe[Lt]})}function Kt($){if(q$1($)===me$1)return[];var z=be$1($);return[lt$2($),z,lt$2(z)]}function Qt($){var z=$.state,ie=$.options,le=$.name;if(!z.modifiersData[le]._skip){for(var ue=ie.mainAxis,pe=ue===void 0?!0:ue,_e=ie.altAxis,Ce=_e===void 0?!0:_e,$e=ie.fallbackPlacements,xe=ie.padding,Ie=ie.boundary,ze=ie.rootBoundary,Ue=ie.altBoundary,qe=ie.flipVariations,Et=qe===void 0?!0:qe,Lt=ie.allowedAutoPlacements,hn=z.options.placement,vn=q$1(hn),_n=vn===hn,bn=$e||(_n||!Et?[be$1(hn)]:Kt(hn)),Sn=[hn].concat(bn).reduce(function(ur,yr){return ur.concat(q$1(yr)===me$1?Jt(z,{placement:yr,boundary:Ie,rootBoundary:ze,padding:xe,flipVariations:Et,allowedAutoPlacements:Lt}):yr)},[]),Cn=z.rects.reference,En=z.rects.popper,$n=new Map,wn=!0,Tn=Sn[0],xn=0;xn<Sn.length;xn++){var Pn=Sn[xn],kn=q$1(Pn),An=te(Pn)===U$2,Nn=[E$2,R$2].indexOf(kn)>=0,Fn=Nn?"width":"height",Ln=ne$1(z,{placement:Pn,boundary:Ie,rootBoundary:ze,altBoundary:Ue,padding:xe}),In=Nn?An?W$1:P$4:An?R$2:E$2;Cn[Fn]>En[Fn]&&(In=be$1(In));var Vn=be$1(In),Mn=[];if(pe&&Mn.push(Ln[kn]<=0),Ce&&Mn.push(Ln[In]<=0,Ln[Vn]<=0),Mn.every(function(ur){return ur})){Tn=Pn,wn=!1;break}$n.set(Pn,Mn)}if(wn)for(var zn=Et?3:1,qn=function(ur){var yr=Sn.find(function(sr){var Zn=$n.get(sr);if(Zn)return Zn.slice(0,ur).every(function(Kn){return Kn})});if(yr)return Tn=yr,"break"},Hn=zn;Hn>0;Hn--){var Jn=qn(Hn);if(Jn==="break")break}z.placement!==Tn&&(z.modifiersData[le]._skip=!0,z.placement=Tn,z.reset=!0)}}var vt$1={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt$1($,z,ie){return ie===void 0&&(ie={x:0,y:0}),{top:$.top-z.height-ie.y,right:$.right-z.width+ie.x,bottom:$.bottom-z.height+ie.y,left:$.left-z.width-ie.x}}function yt($){return[E$2,W$1,R$2,P$4].some(function(z){return $[z]>=0})}function Zt($){var z=$.state,ie=$.name,le=z.rects.reference,ue=z.rects.popper,pe=z.modifiersData.preventOverflow,_e=ne$1(z,{elementContext:"reference"}),Ce=ne$1(z,{altBoundary:!0}),$e=gt$1(_e,le),xe=gt$1(Ce,ue,pe),Ie=yt($e),ze=yt(xe);z.modifiersData[ie]={referenceClippingOffsets:$e,popperEscapeOffsets:xe,isReferenceHidden:Ie,hasPopperEscaped:ze},z.attributes.popper=Object.assign({},z.attributes.popper,{"data-popper-reference-hidden":Ie,"data-popper-escaped":ze})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en$1($,z,ie){var le=q$1($),ue=[P$4,E$2].indexOf(le)>=0?-1:1,pe=typeof ie=="function"?ie(Object.assign({},z,{placement:$})):ie,_e=pe[0],Ce=pe[1];return _e=_e||0,Ce=(Ce||0)*ue,[P$4,W$1].indexOf(le)>=0?{x:Ce,y:_e}:{x:_e,y:Ce}}function tn$1($){var z=$.state,ie=$.options,le=$.name,ue=ie.offset,pe=ue===void 0?[0,0]:ue,_e=Ee.reduce(function(Ie,ze){return Ie[ze]=en$1(ze,z.rects,pe),Ie},{}),Ce=_e[z.placement],$e=Ce.x,xe=Ce.y;z.modifiersData.popperOffsets!=null&&(z.modifiersData.popperOffsets.x+=$e,z.modifiersData.popperOffsets.y+=xe),z.modifiersData[le]=_e}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn$1};function nn$1($){var z=$.state,ie=$.name;z.modifiersData[ie]=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$1,data:{}};function rn($){return $==="x"?"y":"x"}function on($){var z=$.state,ie=$.options,le=$.name,ue=ie.mainAxis,pe=ue===void 0?!0:ue,_e=ie.altAxis,Ce=_e===void 0?!1:_e,$e=ie.boundary,xe=ie.rootBoundary,Ie=ie.altBoundary,ze=ie.padding,Ue=ie.tether,qe=Ue===void 0?!0:Ue,Et=ie.tetherOffset,Lt=Et===void 0?0:Et,hn=ne$1(z,{boundary:$e,rootBoundary:xe,padding:ze,altBoundary:Ie}),vn=q$1(z.placement),_n=te(z.placement),bn=!_n,Sn=Le$1(vn),Cn=rn(Sn),En=z.modifiersData.popperOffsets,$n=z.rects.reference,wn=z.rects.popper,Tn=typeof Lt=="function"?Lt(Object.assign({},z.rects,{placement:z.placement})):Lt,xn=typeof Tn=="number"?{mainAxis:Tn,altAxis:Tn}:Object.assign({mainAxis:0,altAxis:0},Tn),Pn=z.modifiersData.offset?z.modifiersData.offset[z.placement]:null,kn={x:0,y:0};if(En){if(pe){var An,Nn=Sn==="y"?E$2:P$4,Fn=Sn==="y"?R$2:W$1,Ln=Sn==="y"?"height":"width",In=En[Sn],Vn=In+hn[Nn],Mn=In-hn[Fn],zn=qe?-wn[Ln]/2:0,qn=_n===U$2?$n[Ln]:wn[Ln],Hn=_n===U$2?-wn[Ln]:-$n[Ln],Jn=z.elements.arrow,ur=qe&&Jn?ke(Jn):{width:0,height:0},yr=z.modifiersData["arrow#persistent"]?z.modifiersData["arrow#persistent"].padding:st(),sr=yr[Nn],Zn=yr[Fn],Kn=fe$1(0,$n[Ln],ur[Ln]),Wn=bn?$n[Ln]/2-zn-Kn-sr-xn.mainAxis:qn-Kn-sr-xn.mainAxis,nr=bn?-$n[Ln]/2+zn+Kn+Zn+xn.mainAxis:Hn+Kn+Zn+xn.mainAxis,fr=z.elements.arrow&&se(z.elements.arrow),Gn=fr?Sn==="y"?fr.clientTop||0:fr.clientLeft||0:0,Xn=(An=Pn==null?void 0:Pn[Sn])!=null?An:0,or=In+Wn-Xn-Gn,vr=In+nr-Xn,_r=fe$1(qe?ve$1(Vn,or):Vn,In,qe?X$1(Mn,vr):Mn);En[Sn]=_r,kn[Sn]=_r-In}if(Ce){var ir,Pr=Sn==="x"?E$2:P$4,gr=Sn==="x"?R$2:W$1,kr=En[Cn],pr=Cn==="y"?"height":"width",lr=kr+hn[Pr],dr=kr-hn[gr],hr=[E$2,P$4].indexOf(vn)!==-1,Or=(ir=Pn==null?void 0:Pn[Cn])!=null?ir:0,Lr=hr?lr:kr-$n[pr]-wn[pr]-Or+xn.altAxis,Br=hr?kr+$n[pr]+wn[pr]-Or-xn.altAxis:dr,Rr=qe&&hr?St$1(Lr,kr,Br):fe$1(qe?Lr:lr,kr,qe?Br:dr);En[Cn]=Rr,kn[Cn]=Rr-kr}z.modifiersData[le]=kn}}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(),ie=Z$1(z.width)/$.offsetWidth||1,le=Z$1(z.height)/$.offsetHeight||1;return ie!==1||le!==1}function cn($,z,ie){ie===void 0&&(ie=!1);var le=B(z),ue=B(z)&&fn(z),pe=I$2(z),_e=ee($,ue),Ce={scrollLeft:0,scrollTop:0},$e={x:0,y:0};return(le||!le&&!ie)&&((C$2(z)!=="body"||Se(pe))&&(Ce=sn(z)),B(z)?($e=ee(z,!0),$e.x+=z.clientLeft,$e.y+=z.clientTop):pe&&($e.x=Be(pe))),{x:_e.left+Ce.scrollLeft-$e.x,y:_e.top+Ce.scrollTop-$e.y,width:_e.width,height:_e.height}}function pn($){var z=new Map,ie=new Set,le=[];$.forEach(function(pe){z.set(pe.name,pe)});function ue(pe){ie.add(pe.name);var _e=[].concat(pe.requires||[],pe.requiresIfExists||[]);_e.forEach(function(Ce){if(!ie.has(Ce)){var $e=z.get(Ce);$e&&ue($e)}}),le.push(pe)}return $.forEach(function(pe){ie.has(pe.name)||ue(pe)}),le}function un($){var z=pn($);return ot$1.reduce(function(ie,le){return ie.concat(z.filter(function(ue){return ue.phase===le}))},[])}function ln($){var z;return function(){return z||(z=new Promise(function(ie){Promise.resolve().then(function(){z=void 0,ie($())})})),z}}function dn($){var z=$.reduce(function(ie,le){var ue=ie[le.name];return ie[le.name]=ue?Object.assign({},ue,le,{options:Object.assign({},ue.options,le.options),data:Object.assign({},ue.data,le.data)}):le,ie},{});return Object.keys(z).map(function(ie){return z[ie]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t$2(){for(var $=arguments.length,z=new Array($),ie=0;ie<$;ie++)z[ie]=arguments[ie];return!z.some(function(le){return!(le&&typeof le.getBoundingClientRect=="function")})}function we($){$===void 0&&($={});var z=$,ie=z.defaultModifiers,le=ie===void 0?[]:ie,ue=z.defaultOptions,pe=ue===void 0?Ot:ue;return function(_e,Ce,$e){$e===void 0&&($e=pe);var xe={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,pe),modifiersData:{},elements:{reference:_e,popper:Ce},attributes:{},styles:{}},Ie=[],ze=!1,Ue={state:xe,setOptions:function(Lt){var hn=typeof Lt=="function"?Lt(xe.options):Lt;Et(),xe.options=Object.assign({},pe,xe.options,hn),xe.scrollParents={reference:Q(_e)?ce$1(_e):_e.contextElement?ce$1(_e.contextElement):[],popper:ce$1(Ce)};var vn=un(dn([].concat(le,xe.options.modifiers)));return xe.orderedModifiers=vn.filter(function(_n){return _n.enabled}),qe(),Ue.update()},forceUpdate:function(){if(!ze){var Lt=xe.elements,hn=Lt.reference,vn=Lt.popper;if($t$2(hn,vn)){xe.rects={reference:cn(hn,se(vn),xe.options.strategy==="fixed"),popper:ke(vn)},xe.reset=!1,xe.placement=xe.options.placement,xe.orderedModifiers.forEach(function(wn){return xe.modifiersData[wn.name]=Object.assign({},wn.data)});for(var _n=0;_n<xe.orderedModifiers.length;_n++){if(xe.reset===!0){xe.reset=!1,_n=-1;continue}var bn=xe.orderedModifiers[_n],Sn=bn.fn,Cn=bn.options,En=Cn===void 0?{}:Cn,$n=bn.name;typeof Sn=="function"&&(xe=Sn({state:xe,options:En,name:$n,instance:Ue})||xe)}}}},update:ln(function(){return new Promise(function(Lt){Ue.forceUpdate(),Lt(xe)})}),destroy:function(){Et(),ze=!0}};if(!$t$2(_e,Ce))return Ue;Ue.setOptions($e).then(function(Lt){!ze&&$e.onFirstUpdate&&$e.onFirstUpdate(Lt)});function qe(){xe.orderedModifiers.forEach(function(Lt){var hn=Lt.name,vn=Lt.options,_n=vn===void 0?{}:vn,bn=Lt.effect;if(typeof bn=="function"){var Sn=bn({state:xe,name:hn,instance:Ue,options:_n}),Cn=function(){};Ie.push(Sn||Cn)}})}function Et(){Ie.forEach(function(Lt){return Lt()}),Ie=[]}return Ue}}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,ie={})=>{const le={name:"updateState",enabled:!0,phase:"write",fn:({state:$e})=>{const xe=deriveState($e);Object.assign(_e.value,xe)},requires:["computeStyles"]},ue=computed(()=>{const{onFirstUpdate:$e,placement:xe,strategy:Ie,modifiers:ze}=unref(ie);return{onFirstUpdate:$e,placement:xe||"bottom",strategy:Ie||"absolute",modifiers:[...ze||[],le,{name:"applyStyles",enabled:!1}]}}),pe=shallowRef(),_e=ref({styles:{popper:{position:unref(ue).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),Ce=()=>{pe.value&&(pe.value.destroy(),pe.value=void 0)};return watch(ue,$e=>{const xe=unref(pe);xe&&xe.setOptions($e)},{deep:!0}),watch([$,z],([$e,xe])=>{Ce(),!(!$e||!xe)&&(pe.value=yn($e,xe,unref(ue)))}),onBeforeUnmount(()=>{Ce()}),{state:computed(()=>{var $e;return{...(($e=unref(pe))==null?void 0:$e.state)||{}}}),styles:computed(()=>unref(_e).styles),attributes:computed(()=>unref(_e).attributes),update:()=>{var $e;return($e=unref(pe))==null?void 0:$e.update()},forceUpdate:()=>{var $e;return($e=unref(pe))==null?void 0:$e.forceUpdate()},instanceRef:computed(()=>unref(pe))}};function deriveState($){const z=Object.keys($.elements),ie=fromPairs(z.map(ue=>[ue,$.styles[ue]||{}])),le=fromPairs(z.map(ue=>[ue,$.attributes[ue]]));return{styles:ie,attributes:le}}const useRestoreActive=($,z)=>{let ie;watch(()=>$.value,le=>{var ue,pe;le?(ie=document.activeElement,isRef(z)&&((pe=(ue=z.value).focus)==null||pe.call(ue))):ie.focus()})},useSameTarget=$=>{if(!$)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let z=!1,ie=!1;return{onClick:_e=>{z&&ie&&$(_e),z=ie=!1},onMousedown:_e=>{z=_e.target===_e.currentTarget},onMouseup:_e=>{ie=_e.target===_e.currentTarget}}},useThrottleRender=($,z=0)=>{if(z===0)return $;const ie=ref(!1);let le=0;const ue=()=>{le&&clearTimeout(le),le=window.setTimeout(()=>{ie.value=$.value},z)};return onMounted(ue),watch(()=>$.value,pe=>{pe?ue():ie.value=pe}),ie};function useTimeout(){let $;const z=(le,ue)=>{ie(),$=window.setTimeout(le,ue)},ie=()=>window.clearTimeout($);return tryOnScopeDispose$2(()=>ie()),{registerTimeout:z,cancelTimeout:ie}}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(),ie=useGetDerivedNamespace();return computed(()=>unref($)||`${ie.value}-id-${z.prefix}-${z.current++}`)};let registeredEscapeHandlers=[];const cachedHandler=$=>{const z=$;z.key===EVENT_CODE.esc&&registeredEscapeHandlers.forEach(ie=>ie(z))},useEscapeKeydown=$=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient$2&&registeredEscapeHandlers.push($)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(z=>z!==$),registeredEscapeHandlers.length===0&&isClient$2&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const usePopperContainerId=()=>{const $=useGetDerivedNamespace(),z=useIdInjection(),ie=computed(()=>`${$.value}-popper-container-${z.prefix}`),le=computed(()=>`#${ie.value}`);return{id:ie,selector:le}},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:ie,open:le,close:ue})=>{const{registerTimeout:pe}=useTimeout(),{registerTimeout:_e,cancelTimeout:Ce}=useTimeout();return{onOpen:Ie=>{pe(()=>{le(Ie);const ze=unref(ie);isNumber$5(ze)&&ze>0&&_e(()=>{ue(Ie)},ze)},unref($))},onClose:Ie=>{Ce(),pe(()=>{ue(Ie)},unref(z))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=$=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:ie=>{$.value=ie}})},useForwardRefDirective=$=>({mounted(z){$(z)},updated(z){$(z)},unmounted(){$(null)}}),zIndex=ref(0),defaultInitialZIndex=2e3,zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=$=>{const z=$||inject(zIndexContextKey,void 0),ie=computed(()=>{const pe=unref(z);return isNumber$5(pe)?pe:defaultInitialZIndex}),le=computed(()=>ie.value+zIndex.value);return{initialZIndex:ie,currentZIndex:le,nextZIndex:()=>(zIndex.value++,le.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,ie){let{reference:le,floating:ue}=$;const pe=le.x+le.width/2-ue.width/2,_e=le.y+le.height/2-ue.height/2,Ce=o$2(z),$e=e$1(Ce),xe=le[$e]/2-ue[$e]/2,Ie=Ce==="x";let ze;switch(n$2(z)){case"top":ze={x:pe,y:le.y-ue.height};break;case"bottom":ze={x:pe,y:le.y+le.height};break;case"right":ze={x:le.x+le.width,y:_e};break;case"left":ze={x:le.x-ue.width,y:_e};break;default:ze={x:le.x,y:le.y}}switch(t(z)){case"start":ze[Ce]-=xe*(ie&&Ie?-1:1);break;case"end":ze[Ce]+=xe*(ie&&Ie?-1:1)}return ze}const r$1=async($,z,ie)=>{const{placement:le="bottom",strategy:ue="absolute",middleware:pe=[],platform:_e}=ie,Ce=pe.filter(Boolean),$e=await(_e.isRTL==null?void 0:_e.isRTL(z));let xe=await _e.getElementRects({reference:$,floating:z,strategy:ue}),{x:Ie,y:ze}=i$2(xe,le,$e),Ue=le,qe={},Et=0;for(let Lt=0;Lt<Ce.length;Lt++){const{name:hn,fn:vn}=Ce[Lt],{x:_n,y:bn,data:Sn,reset:Cn}=await vn({x:Ie,y:ze,initialPlacement:le,placement:Ue,strategy:ue,middlewareData:qe,rects:xe,platform:_e,elements:{reference:$,floating:z}});Ie=_n??Ie,ze=bn??ze,qe={...qe,[hn]:{...qe[hn],...Sn}},Cn&&Et<=50&&(Et++,typeof Cn=="object"&&(Cn.placement&&(Ue=Cn.placement),Cn.rects&&(xe=Cn.rects===!0?await _e.getElementRects({reference:$,floating:z,strategy:ue}):Cn.rects),{x:Ie,y:ze}=i$2(xe,Ue,$e)),Lt=-1)}return{x:Ie,y:ze,placement:Ue,strategy:ue,middlewareData:qe}};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,ie){return f$3($,c$4(z,ie))}const u$3=$=>({name:"arrow",options:$,async fn(z){const{element:ie,padding:le=0}=$||{},{x:ue,y:pe,placement:_e,rects:Ce,platform:$e,elements:xe}=z;if(ie==null)return{};const Ie=a$3(le),ze={x:ue,y:pe},Ue=o$2(_e),qe=e$1(Ue),Et=await $e.getDimensions(ie),Lt=Ue==="y",hn=Lt?"top":"left",vn=Lt?"bottom":"right",_n=Lt?"clientHeight":"clientWidth",bn=Ce.reference[qe]+Ce.reference[Ue]-ze[Ue]-Ce.floating[qe],Sn=ze[Ue]-Ce.reference[Ue],Cn=await($e.getOffsetParent==null?void 0:$e.getOffsetParent(ie));let En=Cn?Cn[_n]:0;En&&await($e.isElement==null?void 0:$e.isElement(Cn))||(En=xe.floating[_n]||Ce.floating[qe]);const $n=bn/2-Sn/2,wn=Ie[hn],Tn=En-Et[qe]-Ie[vn],xn=En/2-Et[qe]/2+$n,Pn=m$5(wn,xn,Tn),kn=t(_e)!=null&&xn!=Pn&&Ce.reference[qe]/2-(xn<wn?Ie[hn]:Ie[vn])-Et[qe]/2<0;return{[Ue]:ze[Ue]-(kn?xn<wn?wn-xn:Tn-xn:0),data:{[Ue]:Pn,centerOffset:xn-Pn}}}}),g$2=["top","right","bottom","left"];g$2.reduce(($,z)=>$.concat(z,z+"-start",z+"-end"),[]);const D$2=function($){return $===void 0&&($=0),{name:"offset",options:$,async fn(z){const{x:ie,y:le}=z,ue=await async function(pe,_e){const{placement:Ce,platform:$e,elements:xe}=pe,Ie=await($e.isRTL==null?void 0:$e.isRTL(xe.floating)),ze=n$2(Ce),Ue=t(Ce),qe=o$2(Ce)==="x",Et=["left","top"].includes(ze)?-1:1,Lt=Ie&&qe?-1:1,hn=typeof _e=="function"?_e(pe):_e;let{mainAxis:vn,crossAxis:_n,alignmentAxis:bn}=typeof hn=="number"?{mainAxis:hn,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...hn};return Ue&&typeof bn=="number"&&(_n=Ue==="end"?-1*bn:bn),qe?{x:_n*Lt,y:vn*Et}:{x:vn*Et,y:_n*Lt}}(z,$);return{x:ie+ue.x,y:le+ue.y,data:ue}}}};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:ie,overflowY:le,display:ue}=o$1($);return/auto|scroll|overlay|hidden|clip/.test(z+le+ie)&&!["inline","contents"].includes(ue)}function d$2($){return["table","td","th"].includes(r($))}function h$2($){const z=/firefox/i.test(c$3()),ie=o$1($),le=ie.backdropFilter||ie.WebkitBackdropFilter;return ie.transform!=="none"||ie.perspective!=="none"||!!le&&le!=="none"||z&&ie.willChange==="filter"||z&&!!ie.filter&&ie.filter!=="none"||["transform","perspective"].some(ue=>ie.willChange.includes(ue))||["paint","layout","strict","content"].some(ue=>{const pe=ie.contain;return pe!=null&&pe.includes(ue)})}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 ie=parseFloat(z.width),le=parseFloat(z.height);const ue=s$1($),pe=ue?$.offsetWidth:ie,_e=ue?$.offsetHeight:le,Ce=x$1(ie)!==pe||x$1(le)!==_e;return Ce&&(ie=pe,le=_e),{width:ie,height:le,fallback:Ce}}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 ie=z.getBoundingClientRect(),{width:le,height:ue,fallback:pe}=w$1(z);let _e=(pe?x$1(ie.width):ie.width)/le,Ce=(pe?x$1(ie.height):ie.height)/ue;return _e&&Number.isFinite(_e)||(_e=1),Ce&&Number.isFinite(Ce)||(Ce=1),{x:_e,y:Ce}}function E$1($,z,ie,le){var ue,pe;z===void 0&&(z=!1),ie===void 0&&(ie=!1);const _e=$.getBoundingClientRect(),Ce=v$1($);let $e=b$2;z&&(le?f$2(le)&&($e=L$3(le)):$e=L$3($));const xe=Ce?n$1(Ce):window,Ie=p$2()&&ie;let ze=(_e.left+(Ie&&((ue=xe.visualViewport)==null?void 0:ue.offsetLeft)||0))/$e.x,Ue=(_e.top+(Ie&&((pe=xe.visualViewport)==null?void 0:pe.offsetTop)||0))/$e.y,qe=_e.width/$e.x,Et=_e.height/$e.y;if(Ce){const Lt=n$1(Ce),hn=le&&f$2(le)?n$1(le):le;let vn=Lt.frameElement;for(;vn&&le&&hn!==Lt;){const _n=L$3(vn),bn=vn.getBoundingClientRect(),Sn=getComputedStyle(vn);bn.x+=(vn.clientLeft+parseFloat(Sn.paddingLeft))*_n.x,bn.y+=(vn.clientTop+parseFloat(Sn.paddingTop))*_n.y,ze*=_n.x,Ue*=_n.y,qe*=_n.x,Et*=_n.y,ze+=bn.x,Ue+=bn.y,vn=n$1(vn).frameElement}}return l$2({width:qe,height:Et,x:ze,y:Ue})}function T$1($){return((i$1($)?$.ownerDocument:$.document)||window.document).documentElement}function R$1($){return f$2($)?{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}:{scrollLeft:$.pageXOffset,scrollTop:$.pageYOffset}}function C$1($){return E$1(T$1($)).left+R$1($).scrollLeft}function F$1($){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$1($);return g$1(z)?z.ownerDocument.body:s$1(z)&&a$2(z)?z:S$1(z)}function W($,z){var ie;z===void 0&&(z=[]);const le=S$1($),ue=le===((ie=$.ownerDocument)==null?void 0:ie.body),pe=n$1(le);return ue?z.concat(pe,pe.visualViewport||[],a$2(le)?le:[]):z.concat(le,W(le))}function D$1($,z,ie){let le;if(z==="viewport")le=function(_e,Ce){const $e=n$1(_e),xe=T$1(_e),Ie=$e.visualViewport;let ze=xe.clientWidth,Ue=xe.clientHeight,qe=0,Et=0;if(Ie){ze=Ie.width,Ue=Ie.height;const Lt=p$2();(!Lt||Lt&&Ce==="fixed")&&(qe=Ie.offsetLeft,Et=Ie.offsetTop)}return{width:ze,height:Ue,x:qe,y:Et}}($,ie);else if(z==="document")le=function(_e){const Ce=T$1(_e),$e=R$1(_e),xe=_e.ownerDocument.body,Ie=y$1(Ce.scrollWidth,Ce.clientWidth,xe.scrollWidth,xe.clientWidth),ze=y$1(Ce.scrollHeight,Ce.clientHeight,xe.scrollHeight,xe.clientHeight);let Ue=-$e.scrollLeft+C$1(_e);const qe=-$e.scrollTop;return o$1(xe).direction==="rtl"&&(Ue+=y$1(Ce.clientWidth,xe.clientWidth)-Ie),{width:Ie,height:ze,x:Ue,y:qe}}(T$1($));else if(f$2(z))le=function(_e,Ce){const $e=E$1(_e,!0,Ce==="fixed"),xe=$e.top+_e.clientTop,Ie=$e.left+_e.clientLeft,ze=s$1(_e)?L$3(_e):{x:1,y:1};return{width:_e.clientWidth*ze.x,height:_e.clientHeight*ze.y,x:Ie*ze.x,y:xe*ze.y}}(z,ie);else{const _e={...z};if(p$2()){var ue,pe;const Ce=n$1($);_e.x-=((ue=Ce.visualViewport)==null?void 0:ue.offsetLeft)||0,_e.y-=((pe=Ce.visualViewport)==null?void 0:pe.offsetTop)||0}le=_e}return l$2(le)}function V$1($,z){const ie=F$1($);return!(ie===z||!f$2(ie)||g$1(ie))&&(o$1(ie).position==="fixed"||V$1(ie,z))}function A$1($,z){return s$1($)&&o$1($).position!=="fixed"?z?z($):$.offsetParent:null}function H$2($,z){const ie=n$1($);if(!s$1($))return ie;let le=A$1($,z);for(;le&&d$2(le)&&o$1(le).position==="static";)le=A$1(le,z);return le&&(r(le)==="html"||r(le)==="body"&&o$1(le).position==="static"&&!h$2(le))?ie:le||function(ue){let pe=F$1(ue);for(;s$1(pe)&&!g$1(pe);){if(h$2(pe))return pe;pe=F$1(pe)}return null}($)||ie}function O$2($,z,ie){const le=s$1(z),ue=T$1(z),pe=E$1($,!0,ie==="fixed",z);let _e={scrollLeft:0,scrollTop:0};const Ce={x:0,y:0};if(le||!le&&ie!=="fixed")if((r(z)!=="body"||a$2(ue))&&(_e=R$1(z)),s$1(z)){const $e=E$1(z,!0);Ce.x=$e.x+z.clientLeft,Ce.y=$e.y+z.clientTop}else ue&&(Ce.x=C$1(ue));return{x:pe.left+_e.scrollLeft-Ce.x,y:pe.top+_e.scrollTop-Ce.y,width:pe.width,height:pe.height}}const P$3={getClippingRect:function($){let{element:z,boundary:ie,rootBoundary:le,strategy:ue}=$;const pe=ie==="clippingAncestors"?function(xe,Ie){const ze=Ie.get(xe);if(ze)return ze;let Ue=W(xe).filter(hn=>f$2(hn)&&r(hn)!=="body"),qe=null;const Et=o$1(xe).position==="fixed";let Lt=Et?F$1(xe):xe;for(;f$2(Lt)&&!g$1(Lt);){const hn=o$1(Lt),vn=h$2(Lt);vn||hn.position!=="fixed"||(qe=null),(Et?!vn&&!qe:!vn&&hn.position==="static"&&qe&&["absolute","fixed"].includes(qe.position)||a$2(Lt)&&!vn&&V$1(xe,Lt))?Ue=Ue.filter(_n=>_n!==Lt):qe=hn,Lt=F$1(Lt)}return Ie.set(xe,Ue),Ue}(z,this._c):[].concat(ie),_e=[...pe,le],Ce=_e[0],$e=_e.reduce((xe,Ie)=>{const ze=D$1(z,Ie,ue);return xe.top=y$1(ze.top,xe.top),xe.right=m$4(ze.right,xe.right),xe.bottom=m$4(ze.bottom,xe.bottom),xe.left=y$1(ze.left,xe.left),xe},D$1(z,Ce,ue));return{width:$e.right-$e.left,height:$e.bottom-$e.top,x:$e.left,y:$e.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function($){let{rect:z,offsetParent:ie,strategy:le}=$;const ue=s$1(ie),pe=T$1(ie);if(ie===pe)return z;let _e={scrollLeft:0,scrollTop:0},Ce={x:1,y:1};const $e={x:0,y:0};if((ue||!ue&&le!=="fixed")&&((r(ie)!=="body"||a$2(pe))&&(_e=R$1(ie)),s$1(ie))){const xe=E$1(ie);Ce=L$3(ie),$e.x=xe.x+ie.clientLeft,$e.y=xe.y+ie.clientTop}return{width:z.width*Ce.x,height:z.height*Ce.y,x:z.x*Ce.x-_e.scrollLeft*Ce.x+$e.x,y:z.y*Ce.y-_e.scrollTop*Ce.y+$e.y}},isElement:f$2,getDimensions:function($){return w$1($)},getOffsetParent:H$2,getDocumentElement:T$1,getScale:L$3,async getElementRects($){let{reference:z,floating:ie,strategy:le}=$;const ue=this.getOffsetParent||H$2,pe=this.getDimensions;return{reference:O$2(z,await ue(ie),le),floating:{x:0,y:0,...await pe(ie)}}},getClientRects:$=>Array.from($.getClientRects()),isRTL:$=>o$1($).direction==="rtl"},k$2=($,z,ie)=>{const le=new Map,ue={platform:P$3,...ie},pe={...ue.platform,_c:le};return r$1($,z,{...ue,platform:pe})};buildProps({});const unrefReference=$=>{if(!isClient$2)return;if(!$)return $;const z=unrefElement$1($);return z||(isRef($)?z:$)},useFloating=({middleware:$,placement:z,strategy:ie})=>{const le=ref(),ue=ref(),pe=ref(),_e=ref(),Ce=ref({}),$e={x:pe,y:_e,placement:z,strategy:ie,middlewareData:Ce},xe=async()=>{if(!isClient$2)return;const Ie=unrefReference(le),ze=unrefElement$1(ue);if(!Ie||!ze)return;const Ue=await k$2(Ie,ze,{placement:unref(z),strategy:unref(ie),middleware:unref($)});keysOf($e).forEach(qe=>{$e[qe].value=Ue[qe]})};return onMounted(()=>{watchEffect(()=>{xe()})}),{...$e,update:xe,referenceRef:le,contentRef:ue}},arrowMiddleware=({arrowRef:$,padding:z})=>({name:"arrow",options:{element:$,padding:z},fn(ie){const le=unref($);return le?u$3({element:le,padding:z}).fn(ie):{}}});function useCursor($){const z=ref();function ie(){if($.value==null)return;const{selectionStart:ue,selectionEnd:pe,value:_e}=$.value;if(ue==null||pe==null)return;const Ce=_e.slice(0,Math.max(0,ue)),$e=_e.slice(Math.max(0,pe));z.value={selectionStart:ue,selectionEnd:pe,value:_e,beforeTxt:Ce,afterTxt:$e}}function le(){if($.value==null||z.value==null)return;const{value:ue}=$.value,{beforeTxt:pe,afterTxt:_e,selectionStart:Ce}=z.value;if(pe==null||_e==null||Ce==null)return;let $e=ue.length;if(ue.endsWith(_e))$e=ue.length-_e.length;else if(ue.startsWith(pe))$e=pe.length;else{const xe=pe[Ce-1],Ie=ue.indexOf(xe,Ce-1);Ie!==-1&&($e=Ie+1)}$.value.setSelectionRange($e,$e)}return[ie,le]}const getOrderedChildren=($,z,ie)=>flattedChildren($.subTree).filter(pe=>{var _e;return isVNode$1(pe)&&((_e=pe.type)==null?void 0:_e.name)===z&&!!pe.component}).map(pe=>pe.component.uid).map(pe=>ie[pe]).filter(pe=>!!pe),useOrderedChildren=($,z)=>{const ie={},le=shallowRef([]);return{children:le,addChild:_e=>{ie[_e.uid]=_e,le.value=getOrderedChildren($,z,ie)},removeChild:_e=>{delete ie[_e],le.value=le.value.filter(Ce=>Ce.uid!==_e)}}},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 ie=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return $?computed(()=>{var le,ue;return(ue=(le=ie.value)==null?void 0:le[$])!=null?ue:z}):ie}function useGlobalComponentSettings($,z){const ie=useGlobalConfig(),le=useNamespace($,computed(()=>{var Ce;return((Ce=ie.value)==null?void 0:Ce.namespace)||defaultNamespace})),ue=useLocale(computed(()=>{var Ce;return(Ce=ie.value)==null?void 0:Ce.locale})),pe=useZIndex(computed(()=>{var Ce;return((Ce=ie.value)==null?void 0:Ce.zIndex)||defaultInitialZIndex})),_e=computed(()=>{var Ce;return unref(z)||((Ce=ie.value)==null?void 0:Ce.size)||""});return provideGlobalConfig(computed(()=>unref(ie)||{})),{ns:le,locale:ue,zIndex:pe,size:_e}}const provideGlobalConfig=($,z,ie=!1)=>{var le;const ue=!!getCurrentInstance(),pe=ue?useGlobalConfig():void 0,_e=(le=z==null?void 0:z.provide)!=null?le:ue?provide:void 0;if(!_e)return;const Ce=computed(()=>{const $e=unref($);return pe!=null&&pe.value?mergeConfig$1(pe.value,$e):$e});return _e(configProviderContextKey,Ce),_e(localeContextKey,computed(()=>Ce.value.locale)),_e(namespaceContextKey,computed(()=>Ce.value.namespace)),_e(zIndexContextKey,computed(()=>Ce.value.zIndex)),_e(SIZE_INJECTION_KEY,{size:computed(()=>Ce.value.size||"")}),(ie||!globalConfig.value)&&(globalConfig.value=Ce.value),Ce},mergeConfig$1=($,z)=>{var ie;const le=[...new Set([...keysOf($),...keysOf(z)])],ue={};for(const pe of le)ue[pe]=(ie=z[pe])!=null?ie:$[pe];return ue},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,le=>{Object.assign(messageConfig,le??{})},{immediate:!0,deep:!0});const ie=provideGlobalConfig($);return()=>renderSlot(z,"default",{config:ie==null?void 0:ie.value})}}),ElConfigProvider=withInstall(ConfigProvider),version$2="2.3.5",makeInstaller=($=[])=>({version:version$2,install:(ie,le)=>{ie[INSTALLED_KEY]||(ie[INSTALLED_KEY]=!0,$.forEach(ue=>ie.use(ue)),le&&provideGlobalConfig(le,ie,!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 ie=$.__vccOpts||$;for(const[le,ue]of z)ie[le]=ue;return ie};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:ie}){const le=$,ue=useNamespace("affix"),pe=shallowRef(),_e=shallowRef(),Ce=shallowRef(),{height:$e}=useWindowSize(),{height:xe,width:Ie,top:ze,bottom:Ue,update:qe}=useElementBounding(_e,{windowScroll:!1}),Et=useElementBounding(pe),Lt=ref(!1),hn=ref(0),vn=ref(0),_n=computed(()=>({height:Lt.value?`${xe.value}px`:"",width:Lt.value?`${Ie.value}px`:""})),bn=computed(()=>{if(!Lt.value)return{};const En=le.offset?addUnit(le.offset):0;return{height:`${xe.value}px`,width:`${Ie.value}px`,top:le.position==="top"?En:"",bottom:le.position==="bottom"?En:"",transform:vn.value?`translateY(${vn.value}px)`:"",zIndex:le.zIndex}}),Sn=()=>{if(Ce.value)if(hn.value=Ce.value instanceof Window?document.documentElement.scrollTop:Ce.value.scrollTop||0,le.position==="top")if(le.target){const En=Et.bottom.value-le.offset-xe.value;Lt.value=le.offset>ze.value&&Et.bottom.value>0,vn.value=En<0?En:0}else Lt.value=le.offset>ze.value;else if(le.target){const En=$e.value-Et.top.value-le.offset-xe.value;Lt.value=$e.value-le.offset<Ue.value&&$e.value>Et.top.value,vn.value=En<0?-En:0}else Lt.value=$e.value-le.offset<Ue.value},Cn=()=>{qe(),ie("scroll",{scrollTop:hn.value,fixed:Lt.value})};return watch(Lt,En=>ie("change",En)),onMounted(()=>{var En;le.target?(pe.value=(En=document.querySelector(le.target))!=null?En:void 0,pe.value||throwError$1(COMPONENT_NAME$n,`Target is not existed: ${le.target}`)):pe.value=document.documentElement,Ce.value=getScrollContainer(_e.value,!0),qe()}),useEventListener$1(Ce,"scroll",Cn),watchEffect(Sn),z({update:Sn,updateRoot:qe}),(En,$n)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:_e,class:normalizeClass(unref(ue).b()),style:normalizeStyle$1(unref(_n))},[createBaseVNode("div",{class:normalizeClass({[unref(ue).m("fixed")]:Lt.value}),style:normalizeStyle$1(unref(bn))},[renderSlot(En.$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=$,ie=useNamespace("icon"),le=computed(()=>{const{size:ue,color:pe}=z;return!ue&&!pe?{}:{fontSize:isUndefined$1(ue)?void 0:addUnit(ue),"--color":pe}});return(ue,pe)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(ie).b(),style:unref(le)},ue.$attrs),[renderSlot(ue.$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 ie=$,{Close:le}=TypeComponents,ue=useSlots(),pe=useNamespace("alert"),_e=ref(!0),Ce=computed(()=>TypeComponentsMap[ie.type]),$e=computed(()=>[pe.e("icon"),{[pe.is("big")]:!!ie.description||!!ue.default}]),xe=computed(()=>({[pe.is("bold")]:ie.description||ue.default})),Ie=ze=>{_e.value=!1,z("close",ze)};return(ze,Ue)=>(openBlock(),createBlock(Transition,{name:unref(pe).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(pe).b(),unref(pe).m(ze.type),unref(pe).is("center",ze.center),unref(pe).is(ze.effect)]),role:"alert"},[ze.showIcon&&unref(Ce)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($e))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ce))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).e("content"))},[ze.title||ze.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(pe).e("title"),unref(xe)])},[renderSlot(ze.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(ze.title),1)])],2)):createCommentVNode("v-if",!0),ze.$slots.default||ze.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(pe).e("description"))},[renderSlot(ze.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ze.description),1)])],2)):createCommentVNode("v-if",!0),ze.closable?(openBlock(),createElementBlock(Fragment,{key:2},[ze.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(pe).e("close-btn"),unref(pe).is("customed")]),onClick:Ie},toDisplayString$1(ze.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(pe).e("close-btn")),onClick:Ie},{default:withCtx(()=>[createVNode(unref(le))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,_e.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 ie=ref(void 0),le=z.prop?ie:useProp("size"),ue=z.global?ie:useGlobalSize(),pe=z.form?{size:void 0}:inject(formContextKey,void 0),_e=z.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>le.value||unref($)||(_e==null?void 0:_e.size)||(pe==null?void 0:pe.size)||ue.value||"")},useFormDisabled=$=>{const z=useProp("disabled"),ie=inject(formContextKey,void 0);return computed(()=>z.value||unref($)||(ie==null?void 0:ie.disabled)||!1)},useFormItem=()=>{const $=inject(formContextKey,void 0),z=inject(formItemContextKey,void 0);return{form:$,formItem:z}},useFormItemInputId=($,{formItemContext:z,disableIdGeneration:ie,disableIdManagement:le})=>{ie||(ie=ref(!1)),le||(le=ref(!1));const ue=ref();let pe;const _e=computed(()=>{var Ce;return!!(!$.label&&z&&z.inputIds&&((Ce=z.inputIds)==null?void 0:Ce.length)<=1)});return onMounted(()=>{pe=watch([toRef$1($,"id"),ie],([Ce,$e])=>{const xe=Ce??($e?void 0:useId().value);xe!==ue.value&&(z!=null&&z.removeInputId&&(ue.value&&z.removeInputId(ue.value),!(le!=null&&le.value)&&!$e&&xe&&z.addInputId(xe)),ue.value=xe)},{immediate:!0})}),onUnmounted(()=>{pe&&pe(),z!=null&&z.removeInputId&&ue.value&&z.removeInputId(ue.value)}),{isLabeledByFormItem:_e,inputId:ue}},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,ie)=>(isArray$c($)||isString$7($))&&isBoolean$3(z)&&isString$7(ie)};function useFormLabelWidth(){const $=ref([]),z=computed(()=>{if(!$.value.length)return"0";const pe=Math.max(...$.value);return pe?`${pe}px`:""});function ie(pe){const _e=$.value.indexOf(pe);return _e===-1&&z.value,_e}function le(pe,_e){if(pe&&_e){const Ce=ie(_e);$.value.splice(Ce,1,pe)}else pe&&$.value.push(pe)}function ue(pe){const _e=ie(pe);_e>-1&&$.value.splice(_e,1)}return{autoLabelWidth:z,registerLabelWidth:le,deregisterLabelWidth:ue}}const filterFields=($,z)=>{const ie=castArray$1(z);return ie.length>0?$.filter(le=>le.prop&&ie.includes(le.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:ie}){const le=$,ue=[],pe=useFormSize(),_e=useNamespace("form"),Ce=computed(()=>{const{labelPosition:_n,inline:bn}=le;return[_e.b(),_e.m(pe.value||"default"),{[_e.m(`label-${_n}`)]:_n,[_e.m("inline")]:bn}]}),$e=_n=>{ue.push(_n)},xe=_n=>{_n.prop&&ue.splice(ue.indexOf(_n),1)},Ie=(_n=[])=>{le.model&&filterFields(ue,_n).forEach(bn=>bn.resetField())},ze=(_n=[])=>{filterFields(ue,_n).forEach(bn=>bn.clearValidate())},Ue=computed(()=>!!le.model),qe=_n=>{if(ue.length===0)return[];const bn=filterFields(ue,_n);return bn.length?bn:[]},Et=async _n=>hn(void 0,_n),Lt=async(_n=[])=>{if(!Ue.value)return!1;const bn=qe(_n);if(bn.length===0)return!0;let Sn={};for(const Cn of bn)try{await Cn.validate("")}catch(En){Sn={...Sn,...En}}return Object.keys(Sn).length===0?!0:Promise.reject(Sn)},hn=async(_n=[],bn)=>{const Sn=!isFunction$5(bn);try{const Cn=await Lt(_n);return Cn===!0&&(bn==null||bn(Cn)),Cn}catch(Cn){if(Cn instanceof Error)throw Cn;const En=Cn;return le.scrollToError&&vn(Object.keys(En)[0]),bn==null||bn(!1,En),Sn&&Promise.reject(En)}},vn=_n=>{var bn;const Sn=filterFields(ue,_n)[0];Sn&&((bn=Sn.$el)==null||bn.scrollIntoView(le.scrollIntoViewOptions))};return watch(()=>le.rules,()=>{le.validateOnRuleChange&&Et().catch(_n=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(le),emit:ie,resetFields:Ie,clearValidate:ze,validateField:hn,addField:$e,removeField:xe,...useFormLabelWidth()})),z({validate:Et,validateField:hn,resetFields:Ie,clearValidate:ze,scrollToField:vn}),(_n,bn)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(Ce))},[renderSlot(_n.$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 ie=arguments[z];for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&($[le]=ie[le])}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(ie){return ie.__proto__||Object.getPrototypeOf(ie)},_getPrototypeOf($)}function _setPrototypeOf($,z){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(le,ue){return le.__proto__=ue,le},_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,ie){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(ue,pe,_e){var Ce=[null];Ce.push.apply(Ce,pe);var $e=Function.bind.apply(ue,Ce),xe=new $e;return _e&&_setPrototypeOf(xe,_e.prototype),xe},_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(le){if(le===null||!_isNativeFunction(le))return le;if(typeof le!="function")throw new TypeError("Super expression must either be null or a function");if(typeof z<"u"){if(z.has(le))return z.get(le);z.set(le,ue)}function ue(){return _construct(le,arguments,_getPrototypeOf(this).constructor)}return ue.prototype=Object.create(le.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(ue,le)},_wrapNativeSuper($)}var formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u"&&process.env;function convertFieldsError($){if(!$||!$.length)return null;var z={};return $.forEach(function(ie){var le=ie.field;z[le]=z[le]||[],z[le].push(ie)}),z}function format$2($){for(var z=arguments.length,ie=new Array(z>1?z-1:0),le=1;le<z;le++)ie[le-1]=arguments[le];var ue=0,pe=ie.length;if(typeof $=="function")return $.apply(null,ie);if(typeof $=="string"){var _e=$.replace(formatRegExp,function(Ce){if(Ce==="%%")return"%";if(ue>=pe)return Ce;switch(Ce){case"%s":return String(ie[ue++]);case"%d":return Number(ie[ue++]);case"%j":try{return JSON.stringify(ie[ue++])}catch{return"[Circular]"}break;default:return Ce}});return _e}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,ie){var le=[],ue=0,pe=$.length;function _e(Ce){le.push.apply(le,Ce||[]),ue++,ue===pe&&ie(le)}$.forEach(function(Ce){z(Ce,_e)})}function asyncSerialArray($,z,ie){var le=0,ue=$.length;function pe(_e){if(_e&&_e.length){ie(_e);return}var Ce=le;le=le+1,Ce<ue?z($[Ce],pe):ie([])}pe([])}function flattenObjArr($){var z=[];return Object.keys($).forEach(function(ie){z.push.apply(z,$[ie]||[])}),z}var AsyncValidationError=function($){_inheritsLoose(z,$);function z(ie,le){var ue;return ue=$.call(this,"Async Validation Error")||this,ue.errors=ie,ue.fields=le,ue}return z}(_wrapNativeSuper(Error));function asyncMap($,z,ie,le,ue){if(z.first){var pe=new Promise(function(Ue,qe){var Et=function(vn){return le(vn),vn.length?qe(new AsyncValidationError(vn,convertFieldsError(vn))):Ue(ue)},Lt=flattenObjArr($);asyncSerialArray(Lt,ie,Et)});return pe.catch(function(Ue){return Ue}),pe}var _e=z.firstFields===!0?Object.keys($):z.firstFields||[],Ce=Object.keys($),$e=Ce.length,xe=0,Ie=[],ze=new Promise(function(Ue,qe){var Et=function(hn){if(Ie.push.apply(Ie,hn),xe++,xe===$e)return le(Ie),Ie.length?qe(new AsyncValidationError(Ie,convertFieldsError(Ie))):Ue(ue)};Ce.length||(le(Ie),Ue(ue)),Ce.forEach(function(Lt){var hn=$[Lt];_e.indexOf(Lt)!==-1?asyncSerialArray(hn,ie,Et):asyncParallelArray(hn,ie,Et)})});return ze.catch(function(Ue){return Ue}),ze}function isErrorObj($){return!!($&&$.message!==void 0)}function getValue($,z){for(var ie=$,le=0;le<z.length;le++){if(ie==null)return ie;ie=ie[z[le]]}return ie}function complementError($,z){return function(ie){var le;return $.fullFields?le=getValue(z,$.fullFields):le=z[ie.field||$.fullField],isErrorObj(ie)?(ie.field=ie.field||$.fullField,ie.fieldValue=le,ie):{message:typeof ie=="function"?ie():ie,fieldValue:le,field:ie.field||$.fullField}}}function deepMerge($,z){if(z){for(var ie in z)if(z.hasOwnProperty(ie)){var le=z[ie];typeof le=="object"&&typeof $[ie]=="object"?$[ie]=_extends({},$[ie],le):$[ie]=le}}return $}var required$1=function(z,ie,le,ue,pe,_e){z.required&&(!le.hasOwnProperty(z.field)||isEmptyValue(ie,_e||z.type))&&ue.push(format$2(pe.messages.required,z.fullField))},whitespace=function(z,ie,le,ue,pe){(/^\s+$/.test(ie)||ie==="")&&ue.push(format$2(pe.messages.whitespace,z.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var $="[a-fA-F\\d:]",z=function(Sn){return Sn&&Sn.includeBoundaries?"(?:(?<=\\s|^)(?="+$+")|(?<="+$+")(?=\\s|$))":""},ie="(?: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}",le="[a-fA-F\\d]{1,4}",ue=(`
(?:
(?:`+le+":){7}(?:"+le+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+le+":){6}(?:"+ie+"|:"+le+`|:)| // 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
(?:`+le+":){5}(?::"+ie+"|(?::"+le+`){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
(?:`+le+":){4}(?:(?::"+le+"){0,1}:"+ie+"|(?::"+le+`){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
(?:`+le+":){3}(?:(?::"+le+"){0,2}:"+ie+"|(?::"+le+`){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
(?:`+le+":){2}(?:(?::"+le+"){0,3}:"+ie+"|(?::"+le+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+le+":){1}(?:(?::"+le+"){0,4}:"+ie+"|(?::"+le+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+le+"){0,5}:"+ie+"|(?::"+le+`){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(),pe=new RegExp("(?:^"+ie+"$)|(?:^"+ue+"$)"),_e=new RegExp("^"+ie+"$"),Ce=new RegExp("^"+ue+"$"),$e=function(Sn){return Sn&&Sn.exact?pe:new RegExp("(?:"+z(Sn)+ie+z(Sn)+")|(?:"+z(Sn)+ue+z(Sn)+")","g")};$e.v4=function(bn){return bn&&bn.exact?_e:new RegExp(""+z(bn)+ie+z(bn),"g")},$e.v6=function(bn){return bn&&bn.exact?Ce:new RegExp(""+z(bn)+ue+z(bn),"g")};var xe="(?:(?:[a-z]+:)?//)",Ie="(?:\\S+(?::\\S*)?@)?",ze=$e.v4().source,Ue=$e.v6().source,qe="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Et="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Lt="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",hn="(?::\\d{2,5})?",vn='(?:[/?#][^\\s"]*)?',_n="(?:"+xe+"|www\\.)"+Ie+"(?:localhost|"+ze+"|"+Ue+"|"+qe+Et+Lt+")"+hn+vn;return urlReg=new RegExp("(?:^"+_n+"$)","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,ie,le,ue,pe){if(z.required&&ie===void 0){required$1(z,ie,le,ue,pe);return}var _e=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Ce=z.type;_e.indexOf(Ce)>-1?types$1[Ce](ie)||ue.push(format$2(pe.messages.types[Ce],z.fullField,z.type)):Ce&&typeof ie!==z.type&&ue.push(format$2(pe.messages.types[Ce],z.fullField,z.type))},range=function(z,ie,le,ue,pe){var _e=typeof z.len=="number",Ce=typeof z.min=="number",$e=typeof z.max=="number",xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ie=ie,ze=null,Ue=typeof ie=="number",qe=typeof ie=="string",Et=Array.isArray(ie);if(Ue?ze="number":qe?ze="string":Et&&(ze="array"),!ze)return!1;Et&&(Ie=ie.length),qe&&(Ie=ie.replace(xe,"_").length),_e?Ie!==z.len&&ue.push(format$2(pe.messages[ze].len,z.fullField,z.len)):Ce&&!$e&&Ie<z.min?ue.push(format$2(pe.messages[ze].min,z.fullField,z.min)):$e&&!Ce&&Ie>z.max?ue.push(format$2(pe.messages[ze].max,z.fullField,z.max)):Ce&&$e&&(Ie<z.min||Ie>z.max)&&ue.push(format$2(pe.messages[ze].range,z.fullField,z.min,z.max))},ENUM$1="enum",enumerable$1=function(z,ie,le,ue,pe){z[ENUM$1]=Array.isArray(z[ENUM$1])?z[ENUM$1]:[],z[ENUM$1].indexOf(ie)===-1&&ue.push(format$2(pe.messages[ENUM$1],z.fullField,z[ENUM$1].join(", ")))},pattern$1=function(z,ie,le,ue,pe){if(z.pattern){if(z.pattern instanceof RegExp)z.pattern.lastIndex=0,z.pattern.test(ie)||ue.push(format$2(pe.messages.pattern.mismatch,z.fullField,ie,z.pattern));else if(typeof z.pattern=="string"){var _e=new RegExp(z.pattern);_e.test(ie)||ue.push(format$2(pe.messages.pattern.mismatch,z.fullField,ie,z.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie,"string")&&!z.required)return le();rules.required(z,ie,ue,_e,pe,"string"),isEmptyValue(ie,"string")||(rules.type(z,ie,ue,_e,pe),rules.range(z,ie,ue,_e,pe),rules.pattern(z,ie,ue,_e,pe),z.whitespace===!0&&rules.whitespace(z,ie,ue,_e,pe))}le(_e)},method=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),ie!==void 0&&rules.type(z,ie,ue,_e,pe)}le(_e)},number$3=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(ie===""&&(ie=void 0),isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),ie!==void 0&&(rules.type(z,ie,ue,_e,pe),rules.range(z,ie,ue,_e,pe))}le(_e)},_boolean=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),ie!==void 0&&rules.type(z,ie,ue,_e,pe)}le(_e)},regexp$1=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),isEmptyValue(ie)||rules.type(z,ie,ue,_e,pe)}le(_e)},integer=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),ie!==void 0&&(rules.type(z,ie,ue,_e,pe),rules.range(z,ie,ue,_e,pe))}le(_e)},floatFn=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),ie!==void 0&&(rules.type(z,ie,ue,_e,pe),rules.range(z,ie,ue,_e,pe))}le(_e)},array=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(ie==null&&!z.required)return le();rules.required(z,ie,ue,_e,pe,"array"),ie!=null&&(rules.type(z,ie,ue,_e,pe),rules.range(z,ie,ue,_e,pe))}le(_e)},object$1=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),ie!==void 0&&rules.type(z,ie,ue,_e,pe)}le(_e)},ENUM="enum",enumerable=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe),ie!==void 0&&rules[ENUM](z,ie,ue,_e,pe)}le(_e)},pattern=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie,"string")&&!z.required)return le();rules.required(z,ie,ue,_e,pe),isEmptyValue(ie,"string")||rules.pattern(z,ie,ue,_e,pe)}le(_e)},date$1=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie,"date")&&!z.required)return le();if(rules.required(z,ie,ue,_e,pe),!isEmptyValue(ie,"date")){var $e;ie instanceof Date?$e=ie:$e=new Date(ie),rules.type(z,$e,ue,_e,pe),$e&&rules.range(z,$e.getTime(),ue,_e,pe)}}le(_e)},required=function(z,ie,le,ue,pe){var _e=[],Ce=Array.isArray(ie)?"array":typeof ie;rules.required(z,ie,ue,_e,pe,Ce),le(_e)},type=function(z,ie,le,ue,pe){var _e=z.type,Ce=[],$e=z.required||!z.required&&ue.hasOwnProperty(z.field);if($e){if(isEmptyValue(ie,_e)&&!z.required)return le();rules.required(z,ie,ue,Ce,pe,_e),isEmptyValue(ie,_e)||rules.type(z,ie,ue,Ce,pe)}le(Ce)},any=function(z,ie,le,ue,pe){var _e=[],Ce=z.required||!z.required&&ue.hasOwnProperty(z.field);if(Ce){if(isEmptyValue(ie)&&!z.required)return le();rules.required(z,ie,ue,_e,pe)}le(_e)},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 $(ie){this.rules=null,this._messages=messages,this.define(ie)}var z=$.prototype;return z.define=function(le){var ue=this;if(!le)throw new Error("Cannot configure a schema with no rules");if(typeof le!="object"||Array.isArray(le))throw new Error("Rules must be an object");this.rules={},Object.keys(le).forEach(function(pe){var _e=le[pe];ue.rules[pe]=Array.isArray(_e)?_e:[_e]})},z.messages=function(le){return le&&(this._messages=deepMerge(newMessages(),le)),this._messages},z.validate=function(le,ue,pe){var _e=this;ue===void 0&&(ue={}),pe===void 0&&(pe=function(){});var Ce=le,$e=ue,xe=pe;if(typeof $e=="function"&&(xe=$e,$e={}),!this.rules||Object.keys(this.rules).length===0)return xe&&xe(null,Ce),Promise.resolve(Ce);function Ie(Lt){var hn=[],vn={};function _n(Sn){if(Array.isArray(Sn)){var Cn;hn=(Cn=hn).concat.apply(Cn,Sn)}else hn.push(Sn)}for(var bn=0;bn<Lt.length;bn++)_n(Lt[bn]);hn.length?(vn=convertFieldsError(hn),xe(hn,vn)):xe(null,Ce)}if($e.messages){var ze=this.messages();ze===messages&&(ze=newMessages()),deepMerge(ze,$e.messages),$e.messages=ze}else $e.messages=this.messages();var Ue={},qe=$e.keys||Object.keys(this.rules);qe.forEach(function(Lt){var hn=_e.rules[Lt],vn=Ce[Lt];hn.forEach(function(_n){var bn=_n;typeof bn.transform=="function"&&(Ce===le&&(Ce=_extends({},Ce)),vn=Ce[Lt]=bn.transform(vn)),typeof bn=="function"?bn={validator:bn}:bn=_extends({},bn),bn.validator=_e.getValidationMethod(bn),bn.validator&&(bn.field=Lt,bn.fullField=bn.fullField||Lt,bn.type=_e.getType(bn),Ue[Lt]=Ue[Lt]||[],Ue[Lt].push({rule:bn,value:vn,source:Ce,field:Lt}))})});var Et={};return asyncMap(Ue,$e,function(Lt,hn){var vn=Lt.rule,_n=(vn.type==="object"||vn.type==="array")&&(typeof vn.fields=="object"||typeof vn.defaultField=="object");_n=_n&&(vn.required||!vn.required&&Lt.value),vn.field=Lt.field;function bn(En,$n){return _extends({},$n,{fullField:vn.fullField+"."+En,fullFields:vn.fullFields?[].concat(vn.fullFields,[En]):[En]})}function Sn(En){En===void 0&&(En=[]);var $n=Array.isArray(En)?En:[En];!$e.suppressWarning&&$n.length&&$.warning("async-validator:",$n),$n.length&&vn.message!==void 0&&($n=[].concat(vn.message));var wn=$n.map(complementError(vn,Ce));if($e.first&&wn.length)return Et[vn.field]=1,hn(wn);if(!_n)hn(wn);else{if(vn.required&&!Lt.value)return vn.message!==void 0?wn=[].concat(vn.message).map(complementError(vn,Ce)):$e.error&&(wn=[$e.error(vn,format$2($e.messages.required,vn.field))]),hn(wn);var Tn={};vn.defaultField&&Object.keys(Lt.value).map(function(kn){Tn[kn]=vn.defaultField}),Tn=_extends({},Tn,Lt.rule.fields);var xn={};Object.keys(Tn).forEach(function(kn){var An=Tn[kn],Nn=Array.isArray(An)?An:[An];xn[kn]=Nn.map(bn.bind(null,kn))});var Pn=new $(xn);Pn.messages($e.messages),Lt.rule.options&&(Lt.rule.options.messages=$e.messages,Lt.rule.options.error=$e.error),Pn.validate(Lt.value,Lt.rule.options||$e,function(kn){var An=[];wn&&wn.length&&An.push.apply(An,wn),kn&&kn.length&&An.push.apply(An,kn),hn(An.length?An:null)})}}var Cn;if(vn.asyncValidator)Cn=vn.asyncValidator(vn,Lt.value,Sn,Lt.source,$e);else if(vn.validator){try{Cn=vn.validator(vn,Lt.value,Sn,Lt.source,$e)}catch(En){console.error==null||console.error(En),$e.suppressValidatorError||setTimeout(function(){throw En},0),Sn(En.message)}Cn===!0?Sn():Cn===!1?Sn(typeof vn.message=="function"?vn.message(vn.fullField||vn.field):vn.message||(vn.fullField||vn.field)+" fails"):Cn instanceof Array?Sn(Cn):Cn instanceof Error&&Sn(Cn.message)}Cn&&Cn.then&&Cn.then(function(){return Sn()},function(En){return Sn(En)})},function(Lt){Ie(Lt)},Ce)},z.getType=function(le){if(le.type===void 0&&le.pattern instanceof RegExp&&(le.type="pattern"),typeof le.validator!="function"&&le.type&&!validators$2.hasOwnProperty(le.type))throw new Error(format$2("Unknown rule type %s",le.type));return le.type||"string"},z.getValidationMethod=function(le){if(typeof le.validator=="function")return le.validator;var ue=Object.keys(le),pe=ue.indexOf("message");return pe!==-1&&ue.splice(pe,1),ue.length===1&&ue[0]==="required"?validators$2.required:validators$2[this.getType(le)]||void 0},$}();Schema.register=function(z,ie){if(typeof ie!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators$2[z]=ie};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 ie=inject(formContextKey,void 0),le=inject(formItemContextKey);le||throwError$1(COMPONENT_NAME$l,"usage: <el-form-item><label-wrap /></el-form-item>");const ue=useNamespace("form"),pe=ref(),_e=ref(0),Ce=()=>{var Ie;if((Ie=pe.value)!=null&&Ie.firstElementChild){const ze=window.getComputedStyle(pe.value.firstElementChild).width;return Math.ceil(Number.parseFloat(ze))}else return 0},$e=(Ie="update")=>{nextTick(()=>{z.default&&$.isAutoWidth&&(Ie==="update"?_e.value=Ce():Ie==="remove"&&(ie==null||ie.deregisterLabelWidth(_e.value)))})},xe=()=>$e("update");return onMounted(()=>{xe()}),onBeforeUnmount(()=>{$e("remove")}),onUpdated(()=>xe()),watch(_e,(Ie,ze)=>{$.updateAll&&(ie==null||ie.registerLabelWidth(Ie,ze))}),useResizeObserver(computed(()=>{var Ie,ze;return(ze=(Ie=pe.value)==null?void 0:Ie.firstElementChild)!=null?ze:null}),xe),()=>{var Ie,ze;if(!z)return null;const{isAutoWidth:Ue}=$;if(Ue){const qe=ie==null?void 0:ie.autoLabelWidth,Et=le==null?void 0:le.hasLabel,Lt={};if(Et&&qe&&qe!=="auto"){const hn=Math.max(0,Number.parseInt(qe,10)-_e.value),vn=ie.labelPosition==="left"?"marginRight":"marginLeft";hn&&(Lt[vn]=`${hn}px`)}return createVNode("div",{ref:pe,class:[ue.be("item","label-wrap")],style:Lt},[(Ie=z.default)==null?void 0:Ie.call(z)])}else return createVNode(Fragment,{ref:pe},[(ze=z.default)==null?void 0:ze.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 ie=$,le=useSlots(),ue=inject(formContextKey,void 0),pe=inject(formItemContextKey,void 0),_e=useFormSize(void 0,{formItem:!1}),Ce=useNamespace("form-item"),$e=useId().value,xe=ref([]),Ie=ref(""),ze=refDebounced(Ie,100),Ue=ref(""),qe=ref();let Et,Lt=!1;const hn=computed(()=>{if((ue==null?void 0:ue.labelPosition)==="top")return{};const Zn=addUnit(ie.labelWidth||(ue==null?void 0:ue.labelWidth)||"");return Zn?{width:Zn}:{}}),vn=computed(()=>{if((ue==null?void 0:ue.labelPosition)==="top"||ue!=null&&ue.inline)return{};if(!ie.label&&!ie.labelWidth&&Tn)return{};const Zn=addUnit(ie.labelWidth||(ue==null?void 0:ue.labelWidth)||"");return!ie.label&&!le.label?{marginLeft:Zn}:{}}),_n=computed(()=>[Ce.b(),Ce.m(_e.value),Ce.is("error",Ie.value==="error"),Ce.is("validating",Ie.value==="validating"),Ce.is("success",Ie.value==="success"),Ce.is("required",Nn.value||ie.required),Ce.is("no-asterisk",ue==null?void 0:ue.hideRequiredAsterisk),(ue==null?void 0:ue.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[Ce.m("feedback")]:ue==null?void 0:ue.statusIcon}]),bn=computed(()=>isBoolean$3(ie.inlineMessage)?ie.inlineMessage:(ue==null?void 0:ue.inlineMessage)||!1),Sn=computed(()=>[Ce.e("error"),{[Ce.em("error","inline")]:bn.value}]),Cn=computed(()=>ie.prop?isString$7(ie.prop)?ie.prop:ie.prop.join("."):""),En=computed(()=>!!(ie.label||le.label)),$n=computed(()=>ie.for||xe.value.length===1?xe.value[0]:void 0),wn=computed(()=>!$n.value&&En.value),Tn=!!pe,xn=computed(()=>{const Zn=ue==null?void 0:ue.model;if(!(!Zn||!ie.prop))return getProp(Zn,ie.prop).value}),Pn=computed(()=>{const{required:Zn}=ie,Kn=[];ie.rules&&Kn.push(...castArray$1(ie.rules));const Wn=ue==null?void 0:ue.rules;if(Wn&&ie.prop){const nr=getProp(Wn,ie.prop).value;nr&&Kn.push(...castArray$1(nr))}if(Zn!==void 0){const nr=Kn.map((fr,Gn)=>[fr,Gn]).filter(([fr])=>Object.keys(fr).includes("required"));if(nr.length>0)for(const[fr,Gn]of nr)fr.required!==Zn&&(Kn[Gn]={...fr,required:Zn});else Kn.push({required:Zn})}return Kn}),kn=computed(()=>Pn.value.length>0),An=Zn=>Pn.value.filter(Wn=>!Wn.trigger||!Zn?!0:Array.isArray(Wn.trigger)?Wn.trigger.includes(Zn):Wn.trigger===Zn).map(({trigger:Wn,...nr})=>nr),Nn=computed(()=>Pn.value.some(Zn=>Zn.required)),Fn=computed(()=>{var Zn;return ze.value==="error"&&ie.showMessage&&((Zn=ue==null?void 0:ue.showMessage)!=null?Zn:!0)}),Ln=computed(()=>`${ie.label||""}${(ue==null?void 0:ue.labelSuffix)||""}`),In=Zn=>{Ie.value=Zn},Vn=Zn=>{var Kn,Wn;const{errors:nr,fields:fr}=Zn;(!nr||!fr)&&console.error(Zn),In("error"),Ue.value=nr?(Wn=(Kn=nr==null?void 0:nr[0])==null?void 0:Kn.message)!=null?Wn:`${ie.prop} is required`:"",ue==null||ue.emit("validate",ie.prop,!1,Ue.value)},Mn=()=>{In("success"),ue==null||ue.emit("validate",ie.prop,!0,"")},zn=async Zn=>{const Kn=Cn.value;return new Schema({[Kn]:Zn}).validate({[Kn]:xn.value},{firstFields:!0}).then(()=>(Mn(),!0)).catch(nr=>(Vn(nr),Promise.reject(nr)))},qn=async(Zn,Kn)=>{if(Lt||!ie.prop)return!1;const Wn=isFunction$5(Kn);if(!kn.value)return Kn==null||Kn(!1),!1;const nr=An(Zn);return nr.length===0?(Kn==null||Kn(!0),!0):(In("validating"),zn(nr).then(()=>(Kn==null||Kn(!0),!0)).catch(fr=>{const{fields:Gn}=fr;return Kn==null||Kn(!1,Gn),Wn?!1:Promise.reject(Gn)}))},Hn=()=>{In(""),Ue.value="",Lt=!1},Jn=async()=>{const Zn=ue==null?void 0:ue.model;if(!Zn||!ie.prop)return;const Kn=getProp(Zn,ie.prop);Lt=!0,Kn.value=clone$4(Et),await nextTick(),Hn(),Lt=!1},ur=Zn=>{xe.value.includes(Zn)||xe.value.push(Zn)},yr=Zn=>{xe.value=xe.value.filter(Kn=>Kn!==Zn)};watch(()=>ie.error,Zn=>{Ue.value=Zn||"",In(Zn?"error":"")},{immediate:!0}),watch(()=>ie.validateStatus,Zn=>In(Zn||""));const sr=reactive({...toRefs(ie),$el:qe,size:_e,validateState:Ie,labelId:$e,inputIds:xe,isGroup:wn,hasLabel:En,addInputId:ur,removeInputId:yr,resetField:Jn,clearValidate:Hn,validate:qn});return provide(formItemContextKey,sr),onMounted(()=>{ie.prop&&(ue==null||ue.addField(sr),Et=clone$4(xn.value))}),onBeforeUnmount(()=>{ue==null||ue.removeField(sr)}),z({size:_e,validateMessage:Ue,validateState:Ie,validate:qn,clearValidate:Hn,resetField:Jn}),(Zn,Kn)=>{var Wn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:qe,class:normalizeClass(unref(_n)),role:unref(wn)?"group":void 0,"aria-labelledby":unref(wn)?unref($e):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(hn).width==="auto","update-all":((Wn=unref(ue))==null?void 0:Wn.labelWidth)==="auto"},{default:withCtx(()=>[unref(En)?(openBlock(),createBlock(resolveDynamicComponent(unref($n)?"label":"div"),{key:0,id:unref($e),for:unref($n),class:normalizeClass(unref(Ce).e("label")),style:normalizeStyle$1(unref(hn))},{default:withCtx(()=>[renderSlot(Zn.$slots,"label",{label:unref(Ln)},()=>[createTextVNode(toDisplayString$1(unref(Ln)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("content")),style:normalizeStyle$1(unref(vn))},[renderSlot(Zn.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(Ce).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(Fn)?renderSlot(Zn.$slots,"error",{key:0,error:Ue.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(Sn))},toDisplayString$1(Ue.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($),ie=z.getPropertyValue("box-sizing"),le=Number.parseFloat(z.getPropertyValue("padding-bottom"))+Number.parseFloat(z.getPropertyValue("padding-top")),ue=Number.parseFloat(z.getPropertyValue("border-bottom-width"))+Number.parseFloat(z.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(_e=>`${_e}:${z.getPropertyValue(_e)}`).join(";"),paddingSize:le,borderSize:ue,boxSizing:ie}}function calcTextareaHeight($,z=1,ie){var le;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:ue,borderSize:pe,boxSizing:_e,contextStyle:Ce}=calculateNodeStyling($);hiddenTextarea.setAttribute("style",`${Ce};${HIDDEN_STYLE}`),hiddenTextarea.value=$.value||$.placeholder||"";let $e=hiddenTextarea.scrollHeight;const xe={};_e==="border-box"?$e=$e+pe:_e==="content-box"&&($e=$e-ue),hiddenTextarea.value="";const Ie=hiddenTextarea.scrollHeight-ue;if(isNumber$5(z)){let ze=Ie*z;_e==="border-box"&&(ze=ze+ue+pe),$e=Math.max(ze,$e),xe.minHeight=`${ze}px`}if(isNumber$5(ie)){let ze=Ie*ie;_e==="border-box"&&(ze=ze+ue+pe),$e=Math.min(ze,$e)}return xe.height=`${$e}px`,(le=hiddenTextarea.parentNode)==null||le.removeChild(hiddenTextarea),hiddenTextarea=void 0,xe}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:ie}){const le=$,ue=useAttrs$1(),pe=useSlots(),_e=computed(()=>{const hr={};return le.containerRole==="combobox"&&(hr["aria-haspopup"]=ue["aria-haspopup"],hr["aria-owns"]=ue["aria-owns"],hr["aria-expanded"]=ue["aria-expanded"]),hr}),Ce=computed(()=>[le.type==="textarea"?hn.b():Lt.b(),Lt.m(qe.value),Lt.is("disabled",Et.value),Lt.is("exceed",qn.value),{[Lt.b("group")]:pe.prepend||pe.append,[Lt.bm("group","append")]:pe.append,[Lt.bm("group","prepend")]:pe.prepend,[Lt.m("prefix")]:pe.prefix||le.prefixIcon,[Lt.m("suffix")]:pe.suffix||le.suffixIcon||le.clearable||le.showPassword,[Lt.bm("suffix","password-clear")]:In.value&&Vn.value},ue.class]),$e=computed(()=>[Lt.e("wrapper"),Lt.is("focus",bn.value)]),xe=useAttrs({excludeKeys:computed(()=>Object.keys(_e.value))}),{form:Ie,formItem:ze}=useFormItem(),{inputId:Ue}=useFormItemInputId(le,{formItemContext:ze}),qe=useFormSize(),Et=useFormDisabled(),Lt=useNamespace("input"),hn=useNamespace("textarea"),vn=shallowRef(),_n=shallowRef(),bn=ref(!1),Sn=ref(!1),Cn=ref(!1),En=ref(!1),$n=ref(),wn=shallowRef(le.inputStyle),Tn=computed(()=>vn.value||_n.value),xn=computed(()=>{var hr;return(hr=Ie==null?void 0:Ie.statusIcon)!=null?hr:!1}),Pn=computed(()=>(ze==null?void 0:ze.validateState)||""),kn=computed(()=>Pn.value&&ValidateComponentsMap[Pn.value]),An=computed(()=>En.value?view_default:hide_default),Nn=computed(()=>[ue.style,le.inputStyle]),Fn=computed(()=>[le.inputStyle,wn.value,{resize:le.resize}]),Ln=computed(()=>isNil(le.modelValue)?"":String(le.modelValue)),In=computed(()=>le.clearable&&!Et.value&&!le.readonly&&!!Ln.value&&(bn.value||Sn.value)),Vn=computed(()=>le.showPassword&&!Et.value&&!le.readonly&&!!Ln.value&&(!!Ln.value||bn.value)),Mn=computed(()=>le.showWordLimit&&!!xe.value.maxlength&&(le.type==="text"||le.type==="textarea")&&!Et.value&&!le.readonly&&!le.showPassword),zn=computed(()=>Ln.value.length),qn=computed(()=>!!Mn.value&&zn.value>Number(xe.value.maxlength)),Hn=computed(()=>!!pe.suffix||!!le.suffixIcon||In.value||le.showPassword||Mn.value||!!Pn.value&&xn.value),[Jn,ur]=useCursor(vn);useResizeObserver(_n,hr=>{if(Zn(),!Mn.value||le.resize!=="both")return;const Or=hr[0],{width:Lr}=Or.contentRect;$n.value={right:`calc(100% - ${Lr+15+6}px)`}});const yr=()=>{const{type:hr,autosize:Or}=le;if(!(!isClient$2||hr!=="textarea"||!_n.value))if(Or){const Lr=isObject$8(Or)?Or.minRows:void 0,Br=isObject$8(Or)?Or.maxRows:void 0,Rr=calcTextareaHeight(_n.value,Lr,Br);wn.value={overflowY:"hidden",...Rr},nextTick(()=>{_n.value.offsetHeight,wn.value=Rr})}else wn.value={minHeight:calcTextareaHeight(_n.value).minHeight}},Zn=(hr=>{let Or=!1;return()=>{var Lr;if(Or||!le.autosize)return;((Lr=_n.value)==null?void 0:Lr.offsetParent)===null||(hr(),Or=!0)}})(yr),Kn=()=>{const hr=Tn.value;!hr||hr.value===Ln.value||(hr.value=Ln.value)},Wn=async hr=>{Jn();let{value:Or}=hr.target;if(le.formatter&&(Or=le.parser?le.parser(Or):Or,Or=le.formatter(Or)),!Cn.value){if(Or===Ln.value){Kn();return}ie(UPDATE_MODEL_EVENT,Or),ie("input",Or),await nextTick(),Kn(),ur()}},nr=hr=>{ie("change",hr.target.value)},fr=hr=>{ie("compositionstart",hr),Cn.value=!0},Gn=hr=>{var Or;ie("compositionupdate",hr);const Lr=(Or=hr.target)==null?void 0:Or.value,Br=Lr[Lr.length-1]||"";Cn.value=!isKorean(Br)},Xn=hr=>{ie("compositionend",hr),Cn.value&&(Cn.value=!1,Wn(hr))},or=()=>{En.value=!En.value,vr()},vr=async()=>{var hr;await nextTick(),(hr=Tn.value)==null||hr.focus()},_r=()=>{var hr;return(hr=Tn.value)==null?void 0:hr.blur()},ir=hr=>{bn.value=!0,ie("focus",hr)},Pr=hr=>{var Or;bn.value=!1,ie("blur",hr),le.validateEvent&&((Or=ze==null?void 0:ze.validate)==null||Or.call(ze,"blur").catch(Lr=>void 0))},gr=hr=>{Sn.value=!1,ie("mouseleave",hr)},kr=hr=>{Sn.value=!0,ie("mouseenter",hr)},pr=hr=>{ie("keydown",hr)},lr=()=>{var hr;(hr=Tn.value)==null||hr.select()},dr=()=>{ie(UPDATE_MODEL_EVENT,""),ie("change",""),ie("clear"),ie("input","")};return watch(()=>le.modelValue,()=>{var hr;nextTick(()=>yr()),le.validateEvent&&((hr=ze==null?void 0:ze.validate)==null||hr.call(ze,"change").catch(Or=>void 0))}),watch(Ln,()=>Kn()),watch(()=>le.type,async()=>{await nextTick(),Kn(),yr()}),onMounted(()=>{!le.formatter&&le.parser,Kn(),nextTick(yr)}),z({input:vn,textarea:_n,ref:Tn,textareaStyle:Fn,autosize:toRef$1(le,"autosize"),focus:vr,blur:_r,select:lr,clear:dr,resizeTextarea:yr}),(hr,Or)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(_e),{class:unref(Ce),style:unref(Nn),role:hr.containerRole,onMouseenter:kr,onMouseleave:gr}),[createCommentVNode(" input "),hr.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),hr.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Lt).be("group","prepend"))},[renderSlot(hr.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($e))},[createCommentVNode(" prefix slot "),hr.$slots.prefix||hr.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Lt).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("prefix-inner")),onClick:vr},[renderSlot(hr.$slots,"prefix"),hr.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Lt).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(hr.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(Ue),ref_key:"input",ref:vn,class:unref(Lt).e("inner")},unref(xe),{type:hr.showPassword?En.value?"text":"password":hr.type,disabled:unref(Et),formatter:hr.formatter,parser:hr.parser,readonly:hr.readonly,autocomplete:hr.autocomplete,tabindex:hr.tabindex,"aria-label":hr.label,placeholder:hr.placeholder,style:hr.inputStyle,form:le.form,onCompositionstart:fr,onCompositionupdate:Gn,onCompositionend:Xn,onInput:Wn,onFocus:ir,onBlur:Pr,onChange:nr,onKeydown:pr}),null,16,_hoisted_2$I),createCommentVNode(" suffix slot "),unref(Hn)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Lt).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("suffix-inner")),onClick:vr},[!unref(In)||!unref(Vn)||!unref(Mn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(hr.$slots,"suffix"),hr.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Lt).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(hr.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(In)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:dr},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Vn)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("password")]),onClick:or},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(An))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Mn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(Lt).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("count-inner"))},toDisplayString$1(unref(zn))+" / "+toDisplayString$1(unref(xe).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(Pn)&&unref(kn)&&unref(xn)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("validateIcon"),unref(Lt).is("loading",unref(Pn)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(kn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),hr.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(Lt).be("group","append"))},[renderSlot(hr.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(Ue),ref_key:"textarea",ref:_n,class:unref(hn).e("inner")},unref(xe),{tabindex:hr.tabindex,disabled:unref(Et),readonly:hr.readonly,autocomplete:hr.autocomplete,style:unref(Fn),"aria-label":hr.label,placeholder:hr.placeholder,form:le.form,onCompositionstart:fr,onCompositionupdate:Gn,onCompositionend:Xn,onInput:Wn,onFocus:ir,onBlur:Pr,onChange:nr,onKeydown:pr}),null,16,_hoisted_3$n),unref(Mn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1($n.value),class:normalizeClass(unref(Lt).e("count"))},toDisplayString$1(unref(zn))+" / "+toDisplayString$1(unref(xe).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$13)),[[vShow,hr.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:ie})=>({[ie.size]:z,transform:`translate${ie.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=$,ie=inject(scrollbarContextKey),le=useNamespace("scrollbar");ie||throwError$1(COMPONENT_NAME$k,"can not inject scrollbar context");const ue=ref(),pe=ref(),_e=ref({}),Ce=ref(!1);let $e=!1,xe=!1,Ie=isClient$2?document.onselectstart:null;const ze=computed(()=>BAR_MAP[z.vertical?"vertical":"horizontal"]),Ue=computed(()=>renderThumbStyle$1({size:z.size,move:z.move,bar:ze.value})),qe=computed(()=>ue.value[ze.value.offset]**2/ie.wrapElement[ze.value.scrollSize]/z.ratio/pe.value[ze.value.offset]),Et=En=>{var $n;if(En.stopPropagation(),En.ctrlKey||[1,2].includes(En.button))return;($n=window.getSelection())==null||$n.removeAllRanges(),hn(En);const wn=En.currentTarget;wn&&(_e.value[ze.value.axis]=wn[ze.value.offset]-(En[ze.value.client]-wn.getBoundingClientRect()[ze.value.direction]))},Lt=En=>{if(!pe.value||!ue.value||!ie.wrapElement)return;const $n=Math.abs(En.target.getBoundingClientRect()[ze.value.direction]-En[ze.value.client]),wn=pe.value[ze.value.offset]/2,Tn=($n-wn)*100*qe.value/ue.value[ze.value.offset];ie.wrapElement[ze.value.scroll]=Tn*ie.wrapElement[ze.value.scrollSize]/100},hn=En=>{En.stopImmediatePropagation(),$e=!0,document.addEventListener("mousemove",vn),document.addEventListener("mouseup",_n),Ie=document.onselectstart,document.onselectstart=()=>!1},vn=En=>{if(!ue.value||!pe.value||$e===!1)return;const $n=_e.value[ze.value.axis];if(!$n)return;const wn=(ue.value.getBoundingClientRect()[ze.value.direction]-En[ze.value.client])*-1,Tn=pe.value[ze.value.offset]-$n,xn=(wn-Tn)*100*qe.value/ue.value[ze.value.offset];ie.wrapElement[ze.value.scroll]=xn*ie.wrapElement[ze.value.scrollSize]/100},_n=()=>{$e=!1,_e.value[ze.value.axis]=0,document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",_n),Cn(),xe&&(Ce.value=!1)},bn=()=>{xe=!1,Ce.value=!!z.size},Sn=()=>{xe=!0,Ce.value=$e};onBeforeUnmount(()=>{Cn(),document.removeEventListener("mouseup",_n)});const Cn=()=>{document.onselectstart!==Ie&&(document.onselectstart=Ie)};return useEventListener$1(toRef$1(ie,"scrollbarElement"),"mousemove",bn),useEventListener$1(toRef$1(ie,"scrollbarElement"),"mouseleave",Sn),(En,$n)=>(openBlock(),createBlock(Transition,{name:unref(le).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:ue,class:normalizeClass([unref(le).e("bar"),unref(le).is(unref(ze).key)]),onMousedown:Lt},[createBaseVNode("div",{ref_key:"thumb",ref:pe,class:normalizeClass(unref(le).e("thumb")),style:normalizeStyle$1(unref(Ue)),onMousedown:Et},null,38)],34),[[vShow,En.always||Ce.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 ie=$,le=ref(0),ue=ref(0);return z({handleScroll:_e=>{if(_e){const Ce=_e.offsetHeight-GAP,$e=_e.offsetWidth-GAP;ue.value=_e.scrollTop*100/Ce*ie.ratioY,le.value=_e.scrollLeft*100/$e*ie.ratioX}}}),(_e,Ce)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:le.value,ratio:_e.ratioX,size:_e.width,always:_e.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:ue.value,ratio:_e.ratioY,size:_e.height,vertical:"",always:_e.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:ie}){const le=$,ue=useNamespace("scrollbar");let pe,_e;const Ce=ref(),$e=ref(),xe=ref(),Ie=ref("0"),ze=ref("0"),Ue=ref(),qe=ref(1),Et=ref(1),Lt=computed(()=>{const $n={};return le.height&&($n.height=addUnit(le.height)),le.maxHeight&&($n.maxHeight=addUnit(le.maxHeight)),[le.wrapStyle,$n]}),hn=computed(()=>[le.wrapClass,ue.e("wrap"),{[ue.em("wrap","hidden-default")]:!le.native}]),vn=computed(()=>[ue.e("view"),le.viewClass]),_n=()=>{var $n;$e.value&&(($n=Ue.value)==null||$n.handleScroll($e.value),ie("scroll",{scrollTop:$e.value.scrollTop,scrollLeft:$e.value.scrollLeft}))};function bn($n,wn){isObject$8($n)?$e.value.scrollTo($n):isNumber$5($n)&&isNumber$5(wn)&&$e.value.scrollTo($n,wn)}const Sn=$n=>{isNumber$5($n)&&($e.value.scrollTop=$n)},Cn=$n=>{isNumber$5($n)&&($e.value.scrollLeft=$n)},En=()=>{if(!$e.value)return;const $n=$e.value.offsetHeight-GAP,wn=$e.value.offsetWidth-GAP,Tn=$n**2/$e.value.scrollHeight,xn=wn**2/$e.value.scrollWidth,Pn=Math.max(Tn,le.minSize),kn=Math.max(xn,le.minSize);qe.value=Tn/($n-Tn)/(Pn/($n-Pn)),Et.value=xn/(wn-xn)/(kn/(wn-kn)),ze.value=Pn+GAP<$n?`${Pn}px`:"",Ie.value=kn+GAP<wn?`${kn}px`:""};return watch(()=>le.noresize,$n=>{$n?(pe==null||pe(),_e==null||_e()):({stop:pe}=useResizeObserver(xe,En),_e=useEventListener$1("resize",En))},{immediate:!0}),watch(()=>[le.maxHeight,le.height],()=>{le.native||nextTick(()=>{var $n;En(),$e.value&&(($n=Ue.value)==null||$n.handleScroll($e.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:Ce,wrapElement:$e})),onMounted(()=>{le.native||nextTick(()=>{En()})}),onUpdated(()=>En()),z({wrapRef:$e,update:En,scrollTo:bn,setScrollTop:Sn,setScrollLeft:Cn,handleScroll:_n}),($n,wn)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:Ce,class:normalizeClass(unref(ue).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:$e,class:normalizeClass(unref(hn)),style:normalizeStyle$1(unref(Lt)),onScroll:_n},[(openBlock(),createBlock(resolveDynamicComponent($n.tag),{ref_key:"resizeRef",ref:xe,class:normalizeClass(unref(vn)),style:normalizeStyle$1($n.viewStyle)},{default:withCtx(()=>[renderSlot($n.$slots,"default")]),_:3},8,["class","style"]))],38),$n.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:Ue,height:ze.value,width:Ie.value,always:$n.always,"ratio-x":Et.value,"ratio-y":qe.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 ie=$,le=ref(),ue=ref(),pe=ref(),_e=ref(),Ce=computed(()=>ie.role),$e={triggerRef:le,popperInstanceRef:ue,contentRef:pe,referenceRef:_e,role:Ce};return z($e),provide(POPPER_INJECTION_KEY,$e),(xe,Ie)=>renderSlot(xe.$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 ie=$,le=useNamespace("popper"),{arrowOffset:ue,arrowRef:pe,arrowStyle:_e}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>ie.arrowOffset,Ce=>{ue.value=Ce}),onBeforeUnmount(()=>{pe.value=void 0}),z({arrowRef:pe}),(Ce,$e)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:pe,class:normalizeClass(unref(le).e("arrow")),style:normalizeStyle$1(unref(_e)),"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:ie}){var le;const ue=inject(FORWARD_REF_INJECTION_KEY),pe=useForwardRefDirective((le=ue==null?void 0:ue.setForwardRef)!=null?le:NOOP);return()=>{var _e;const Ce=(_e=z.default)==null?void 0:_e.call(z,ie);if(!Ce||Ce.length>1)return null;const $e=findFirstLegitChild(Ce);return $e?withDirectives(cloneVNode($e,ie),[[pe]]):null}}});function findFirstLegitChild($){if(!$)return null;const z=$;for(const ie of z){if(isObject$8(ie))switch(ie.type){case Comment:continue;case Text$1:case"svg":return wrapTextContent(ie);case Fragment:return findFirstLegitChild(ie.children);default:return ie}return wrapTextContent(ie)}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 ie=$,{role:le,triggerRef:ue}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(ue);const pe=computed(()=>Ce.value?ie.id:void 0),_e=computed(()=>{if(le&&le.value==="tooltip")return ie.open&&ie.id?ie.id:void 0}),Ce=computed(()=>{if(le&&le.value!=="tooltip")return le.value}),$e=computed(()=>Ce.value?`${ie.open}`:void 0);let xe;return onMounted(()=>{watch(()=>ie.virtualRef,Ie=>{Ie&&(ue.value=unrefElement$1(Ie))},{immediate:!0}),watch(ue,(Ie,ze)=>{xe==null||xe(),xe=void 0,isElement$2(Ie)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(Ue=>{var qe;const Et=ie[Ue];Et&&(Ie.addEventListener(Ue.slice(2).toLowerCase(),Et),(qe=ze==null?void 0:ze.removeEventListener)==null||qe.call(ze,Ue.slice(2).toLowerCase(),Et))}),xe=watch([pe,_e,Ce,$e],Ue=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((qe,Et)=>{isNil(Ue[Et])?Ie.removeAttribute(qe):Ie.setAttribute(qe,Ue[Et])})},{immediate:!0})),isElement$2(ze)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(Ue=>ze.removeAttribute(Ue))},{immediate:!0})}),onBeforeUnmount(()=>{xe==null||xe(),xe=void 0}),z({triggerRef:ue}),(Ie,ze)=>Ie.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},Ie.$attrs,{"aria-controls":unref(pe),"aria-describedby":unref(_e),"aria-expanded":unref($e),"aria-haspopup":unref(Ce)}),{default:withCtx(()=>[renderSlot(Ie.$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=[],ie=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:le=>{const ue=le.tagName==="INPUT"&&le.type==="hidden";return le.disabled||le.hidden||ue?NodeFilter.FILTER_SKIP:le.tabIndex>=0||le===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;ie.nextNode();)z.push(ie.currentNode);return z},getVisibleElement=($,z)=>{for(const ie of $)if(!isHidden(ie,z))return ie},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($),ie=getVisibleElement(z,$),le=getVisibleElement(z.reverse(),$);return[ie,le]},isSelectable=$=>$ instanceof HTMLInputElement&&"select"in $,tryFocus=($,z)=>{if($&&$.focus){const ie=document.activeElement;$.focus({preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),$!==ie&&isSelectable($)&&z&&$.select()}};function removeFromStack($,z){const ie=[...$],le=$.indexOf(z);return le!==-1&&ie.splice(le,1),ie}const createFocusableStack=()=>{let $=[];return{push:le=>{const ue=$[0];ue&&le!==ue&&ue.pause(),$=removeFromStack($,le),$.unshift(le)},remove:le=>{var ue,pe;$=removeFromStack($,le),(pe=(ue=$[0])==null?void 0:ue.resume)==null||pe.call(ue)}}},focusFirstDescendant=($,z=!1)=>{const ie=document.activeElement;for(const le of $)if(tryFocus(le,z),document.activeElement!==ie)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 ie=ref();let le,ue;const{focusReason:pe}=useFocusReason();useEscapeKeydown(Et=>{$.trapped&&!_e.paused&&z("release-requested",Et)});const _e={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},Ce=Et=>{if(!$.loop&&!$.trapped||_e.paused)return;const{key:Lt,altKey:hn,ctrlKey:vn,metaKey:_n,currentTarget:bn,shiftKey:Sn}=Et,{loop:Cn}=$,En=Lt===EVENT_CODE.tab&&!hn&&!vn&&!_n,$n=document.activeElement;if(En&&$n){const wn=bn,[Tn,xn]=getEdges(wn);if(Tn&&xn){if(!Sn&&$n===xn){const kn=createFocusOutPreventedEvent({focusReason:pe.value});z("focusout-prevented",kn),kn.defaultPrevented||(Et.preventDefault(),Cn&&tryFocus(Tn,!0))}else if(Sn&&[Tn,wn].includes($n)){const kn=createFocusOutPreventedEvent({focusReason:pe.value});z("focusout-prevented",kn),kn.defaultPrevented||(Et.preventDefault(),Cn&&tryFocus(xn,!0))}}else if($n===wn){const kn=createFocusOutPreventedEvent({focusReason:pe.value});z("focusout-prevented",kn),kn.defaultPrevented||Et.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:ie,onKeydown:Ce}),watch(()=>$.focusTrapEl,Et=>{Et&&(ie.value=Et)},{immediate:!0}),watch([ie],([Et],[Lt])=>{Et&&(Et.addEventListener("keydown",Ce),Et.addEventListener("focusin",Ie),Et.addEventListener("focusout",ze)),Lt&&(Lt.removeEventListener("keydown",Ce),Lt.removeEventListener("focusin",Ie),Lt.removeEventListener("focusout",ze))});const $e=Et=>{z(ON_TRAP_FOCUS_EVT,Et)},xe=Et=>z(ON_RELEASE_FOCUS_EVT,Et),Ie=Et=>{const Lt=unref(ie);if(!Lt)return;const hn=Et.target,vn=Et.relatedTarget,_n=hn&&Lt.contains(hn);$.trapped||vn&&Lt.contains(vn)||(le=vn),_n&&z("focusin",Et),!_e.paused&&$.trapped&&(_n?ue=hn:tryFocus(ue,!0))},ze=Et=>{const Lt=unref(ie);if(!(_e.paused||!Lt))if($.trapped){const hn=Et.relatedTarget;!isNil(hn)&&!Lt.contains(hn)&&setTimeout(()=>{if(!_e.paused&&$.trapped){const vn=createFocusOutPreventedEvent({focusReason:pe.value});z("focusout-prevented",vn),vn.defaultPrevented||tryFocus(ue,!0)}},0)}else{const hn=Et.target;hn&&Lt.contains(hn)||z("focusout",Et)}};async function Ue(){await nextTick();const Et=unref(ie);if(Et){focusableStack.push(_e);const Lt=Et.contains(document.activeElement)?le:document.activeElement;if(le=Lt,!Et.contains(Lt)){const vn=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);Et.addEventListener(FOCUS_AFTER_TRAPPED,$e),Et.dispatchEvent(vn),vn.defaultPrevented||nextTick(()=>{let _n=$.focusStartEl;isString$7(_n)||(tryFocus(_n),document.activeElement!==_n&&(_n="first")),_n==="first"&&focusFirstDescendant(obtainAllFocusableElements(Et),!0),(document.activeElement===Lt||_n==="container")&&tryFocus(Et)})}}}function qe(){const Et=unref(ie);if(Et){Et.removeEventListener(FOCUS_AFTER_TRAPPED,$e);const Lt=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:pe.value}});Et.addEventListener(FOCUS_AFTER_RELEASED,xe),Et.dispatchEvent(Lt),!Lt.defaultPrevented&&(pe.value=="keyboard"||!isFocusCausedByUserEvent()||Et.contains(document.activeElement))&&tryFocus(le??document.body),Et.removeEventListener(FOCUS_AFTER_RELEASED,$e),focusableStack.remove(_e)}}return onMounted(()=>{$.trapped&&Ue(),watch(()=>$.trapped,Et=>{Et?Ue():qe()})}),onBeforeUnmount(()=>{$.trapped&&qe()}),{onKeydown:Ce}}});function _sfc_render$w($,z,ie,le,ue,pe){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:ie,strategy:le,popperOptions:ue}=$,pe={placement:ie,strategy:le,...ue,modifiers:[...genModifiers($),...z]};return deriveExtraModifiers(pe,ue==null?void 0:ue.modifiers),pe},unwrapMeasurableEl=$=>{if(isClient$2)return unrefElement$1($)};function genModifiers($){const{offset:z,gpuAcceleration:ie,fallbackPlacements:le}=$;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:le}},{name:"computeStyles",options:{gpuAcceleration:ie}}]}function deriveExtraModifiers($,z){z&&($.modifiers=[...$.modifiers,...z??[]])}const DEFAULT_ARROW_OFFSET=0,usePopperContent=$=>{const{popperInstanceRef:z,contentRef:ie,triggerRef:le,role:ue}=inject(POPPER_INJECTION_KEY,void 0),pe=ref(),_e=ref(),Ce=computed(()=>({name:"eventListeners",enabled:!!$.visible})),$e=computed(()=>{var vn;const _n=unref(pe),bn=(vn=unref(_e))!=null?vn:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(_n),options:{element:_n,padding:bn}}}),xe=computed(()=>({onFirstUpdate:()=>{Et()},...buildPopperOptions($,[unref($e),unref(Ce)])})),Ie=computed(()=>unwrapMeasurableEl($.referenceEl)||unref(le)),{attributes:ze,state:Ue,styles:qe,update:Et,forceUpdate:Lt,instanceRef:hn}=usePopper(Ie,ie,xe);return watch(hn,vn=>z.value=vn),onMounted(()=>{watch(()=>{var vn;return(vn=unref(Ie))==null?void 0:vn.getBoundingClientRect()},()=>{Et()})}),{attributes:ze,arrowRef:pe,contentRef:ie,instanceRef:hn,state:Ue,styles:qe,role:ue,forceUpdate:Lt,update:Et}},usePopperContentDOM=($,{attributes:z,styles:ie,role:le})=>{const{nextZIndex:ue}=useZIndex(),pe=useNamespace("popper"),_e=computed(()=>unref(z).popper),Ce=ref($.zIndex||ue()),$e=computed(()=>[pe.b(),pe.is("pure",$.pure),pe.is($.effect),$.popperClass]),xe=computed(()=>[{zIndex:unref(Ce)},$.popperStyle||{},unref(ie).popper]),Ie=computed(()=>le.value==="dialog"?"false":void 0),ze=computed(()=>unref(ie).arrow||{});return{ariaModal:Ie,arrowStyle:ze,contentAttrs:_e,contentClass:$e,contentStyle:xe,contentZIndex:Ce,updateZIndex:()=>{Ce.value=$.zIndex||ue()}}},usePopperContentFocusTrap=($,z)=>{const ie=ref(!1),le=ref();return{focusStartRef:le,trapped:ie,onFocusAfterReleased:xe=>{var Ie;((Ie=xe.detail)==null?void 0:Ie.focusReason)!=="pointer"&&(le.value="first",z("blur"))},onFocusAfterTrapped:()=>{z("focus")},onFocusInTrap:xe=>{$.visible&&!ie.value&&(xe.target&&(le.value=xe.target),ie.value=!0)},onFocusoutPrevented:xe=>{$.trapping||(xe.detail.focusReason==="pointer"&&xe.preventDefault(),ie.value=!1)},onReleaseRequested:()=>{ie.value=!1,z("close")}}},__default__$1s=defineComponent({name:"ElPopperContent"}),_sfc_main$27=defineComponent({...__default__$1s,props:popperContentProps,emits:popperContentEmits,setup($,{expose:z,emit:ie}){const le=$,{focusStartRef:ue,trapped:pe,onFocusAfterReleased:_e,onFocusAfterTrapped:Ce,onFocusInTrap:$e,onFocusoutPrevented:xe,onReleaseRequested:Ie}=usePopperContentFocusTrap(le,ie),{attributes:ze,arrowRef:Ue,contentRef:qe,styles:Et,instanceRef:Lt,role:hn,update:vn}=usePopperContent(le),{ariaModal:_n,arrowStyle:bn,contentAttrs:Sn,contentClass:Cn,contentStyle:En,updateZIndex:$n}=usePopperContentDOM(le,{styles:Et,attributes:ze,role:hn}),wn=inject(formItemContextKey,void 0),Tn=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:bn,arrowRef:Ue,arrowOffset:Tn}),wn&&(wn.addInputId||wn.removeInputId)&&provide(formItemContextKey,{...wn,addInputId:NOOP,removeInputId:NOOP});let xn;const Pn=(An=!0)=>{vn(),An&&$n()},kn=()=>{Pn(!1),le.visible&&le.focusOnShow?pe.value=!0:le.visible===!1&&(pe.value=!1)};return onMounted(()=>{watch(()=>le.triggerTargetEl,(An,Nn)=>{xn==null||xn(),xn=void 0;const Fn=unref(An||qe.value),Ln=unref(Nn||qe.value);isElement$2(Fn)&&(xn=watch([hn,()=>le.ariaLabel,_n,()=>le.id],In=>{["role","aria-label","aria-modal","id"].forEach((Vn,Mn)=>{isNil(In[Mn])?Fn.removeAttribute(Vn):Fn.setAttribute(Vn,In[Mn])})},{immediate:!0})),Ln!==Fn&&isElement$2(Ln)&&["role","aria-label","aria-modal","id"].forEach(In=>{Ln.removeAttribute(In)})},{immediate:!0}),watch(()=>le.visible,kn,{immediate:!0})}),onBeforeUnmount(()=>{xn==null||xn(),xn=void 0}),z({popperContentRef:qe,popperInstanceRef:Lt,updatePopper:Pn,contentStyle:En}),(An,Nn)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:qe},unref(Sn),{style:unref(En),class:unref(Cn),tabindex:"-1",onMouseenter:Nn[0]||(Nn[0]=Fn=>An.$emit("mouseenter",Fn)),onMouseleave:Nn[1]||(Nn[1]=Fn=>An.$emit("mouseleave",Fn))}),[createVNode(unref(ElFocusTrap),{trapped:unref(pe),"trap-on-focus-in":!0,"focus-trap-el":unref(qe),"focus-start-el":unref(ue),onFocusAfterTrapped:unref(Ce),onFocusAfterReleased:unref(_e),onFocusin:unref($e),onFocusoutPrevented:unref(xe),onReleaseRequested:unref(Ie)},{default:withCtx(()=>[renderSlot(An.$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,ie)=>le=>{isTriggerType(unref($),z)&&ie(le)},__default__$1r=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$26=defineComponent({...__default__$1r,props:useTooltipTriggerProps,setup($,{expose:z}){const ie=$,le=useNamespace("tooltip"),{controlled:ue,id:pe,open:_e,onOpen:Ce,onClose:$e,onToggle:xe}=inject(TOOLTIP_INJECTION_KEY,void 0),Ie=ref(null),ze=()=>{if(unref(ue)||ie.disabled)return!0},Ue=toRef$1(ie,"trigger"),qe=composeEventHandlers(ze,whenTrigger(Ue,"hover",Ce)),Et=composeEventHandlers(ze,whenTrigger(Ue,"hover",$e)),Lt=composeEventHandlers(ze,whenTrigger(Ue,"click",Sn=>{Sn.button===0&&xe(Sn)})),hn=composeEventHandlers(ze,whenTrigger(Ue,"focus",Ce)),vn=composeEventHandlers(ze,whenTrigger(Ue,"focus",$e)),_n=composeEventHandlers(ze,whenTrigger(Ue,"contextmenu",Sn=>{Sn.preventDefault(),xe(Sn)})),bn=composeEventHandlers(ze,Sn=>{const{code:Cn}=Sn;ie.triggerKeys.includes(Cn)&&(Sn.preventDefault(),xe(Sn))});return z({triggerRef:Ie}),(Sn,Cn)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(pe),"virtual-ref":Sn.virtualRef,open:unref(_e),"virtual-triggering":Sn.virtualTriggering,class:normalizeClass(unref(le).e("trigger")),onBlur:unref(vn),onClick:unref(Lt),onContextmenu:unref(_n),onFocus:unref(hn),onMouseenter:unref(qe),onMouseleave:unref(Et),onKeydown:unref(bn)},{default:withCtx(()=>[renderSlot(Sn.$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 ie=$,{selector:le}=usePopperContainerId(),ue=useNamespace("tooltip"),pe=ref(null),_e=ref(!1),{controlled:Ce,id:$e,open:xe,trigger:Ie,onClose:ze,onOpen:Ue,onShow:qe,onHide:Et,onBeforeShow:Lt,onBeforeHide:hn}=inject(TOOLTIP_INJECTION_KEY,void 0),vn=computed(()=>ie.transition||`${ue.namespace.value}-fade-in-linear`),_n=computed(()=>ie.persistent);onBeforeUnmount(()=>{_e.value=!0});const bn=computed(()=>unref(_n)?!0:unref(xe)),Sn=computed(()=>ie.disabled?!1:unref(xe)),Cn=computed(()=>ie.appendTo||le.value),En=computed(()=>{var In;return(In=ie.style)!=null?In:{}}),$n=computed(()=>!unref(xe)),wn=()=>{Et()},Tn=()=>{if(unref(Ce))return!0},xn=composeEventHandlers(Tn,()=>{ie.enterable&&unref(Ie)==="hover"&&Ue()}),Pn=composeEventHandlers(Tn,()=>{unref(Ie)==="hover"&&ze()}),kn=()=>{var In,Vn;(Vn=(In=pe.value)==null?void 0:In.updatePopper)==null||Vn.call(In),Lt==null||Lt()},An=()=>{hn==null||hn()},Nn=()=>{qe(),Ln=onClickOutside(computed(()=>{var In;return(In=pe.value)==null?void 0:In.popperContentRef}),()=>{if(unref(Ce))return;unref(Ie)!=="hover"&&ze()})},Fn=()=>{ie.virtualTriggering||ze()};let Ln;return watch(()=>unref(xe),In=>{In||Ln==null||Ln()},{flush:"post"}),watch(()=>ie.content,()=>{var In,Vn;(Vn=(In=pe.value)==null?void 0:In.updatePopper)==null||Vn.call(In)}),z({contentRef:pe}),(In,Vn)=>(openBlock(),createBlock(Teleport,{disabled:!In.teleported,to:unref(Cn)},[createVNode(Transition,{name:unref(vn),onAfterLeave:wn,onBeforeEnter:kn,onAfterEnter:Nn,onBeforeLeave:An},{default:withCtx(()=>[unref(bn)?withDirectives((openBlock(),createBlock(unref(ElPopperContent),mergeProps({key:0,id:unref($e),ref_key:"contentRef",ref:pe},In.$attrs,{"aria-label":In.ariaLabel,"aria-hidden":unref($n),"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(En)],"reference-el":In.referenceEl,"trigger-target-el":In.triggerTargetEl,visible:unref(Sn),"z-index":In.zIndex,onMouseenter:unref(xn),onMouseleave:unref(Pn),onBlur:Fn,onClose:unref(ze)}),{default:withCtx(()=>[_e.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(Sn)]]):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:ie}){const le=$;usePopperContainer();const ue=useId(),pe=ref(),_e=ref(),Ce=()=>{var vn;const _n=unref(pe);_n&&((vn=_n.popperInstanceRef)==null||vn.update())},$e=ref(!1),xe=ref(),{show:Ie,hide:ze,hasUpdateHandler:Ue}=useTooltipModelToggle({indicator:$e,toggleReason:xe}),{onOpen:qe,onClose:Et}=useDelayedToggle({showAfter:toRef$1(le,"showAfter"),hideAfter:toRef$1(le,"hideAfter"),autoClose:toRef$1(le,"autoClose"),open:Ie,close:ze}),Lt=computed(()=>isBoolean$3(le.visible)&&!Ue.value);provide(TOOLTIP_INJECTION_KEY,{controlled:Lt,id:ue,open:readonly($e),trigger:toRef$1(le,"trigger"),onOpen:vn=>{qe(vn)},onClose:vn=>{Et(vn)},onToggle:vn=>{unref($e)?Et(vn):qe(vn)},onShow:()=>{ie("show",xe.value)},onHide:()=>{ie("hide",xe.value)},onBeforeShow:()=>{ie("before-show",xe.value)},onBeforeHide:()=>{ie("before-hide",xe.value)},updatePopper:Ce}),watch(()=>le.disabled,vn=>{vn&&$e.value&&($e.value=!1)});const hn=()=>{var vn,_n;const bn=(_n=(vn=_e.value)==null?void 0:vn.contentRef)==null?void 0:_n.popperContentRef;return bn&&bn.contains(document.activeElement)};return onDeactivated(()=>$e.value&&ze()),z({popperRef:pe,contentRef:_e,isFocusInsideContent:hn,updatePopper:Ce,onOpen:qe,onClose:Et,hide:ze}),(vn,_n)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:pe,role:vn.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:vn.disabled,trigger:vn.trigger,"trigger-keys":vn.triggerKeys,"virtual-ref":vn.virtualRef,"virtual-triggering":vn.virtualTriggering},{default:withCtx(()=>[vn.$slots.default?renderSlot(vn.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:_e,"aria-label":vn.ariaLabel,"boundaries-padding":vn.boundariesPadding,content:vn.content,disabled:vn.disabled,effect:vn.effect,enterable:vn.enterable,"fallback-placements":vn.fallbackPlacements,"hide-after":vn.hideAfter,"gpu-acceleration":vn.gpuAcceleration,offset:vn.offset,persistent:vn.persistent,"popper-class":vn.popperClass,"popper-style":vn.popperStyle,placement:vn.placement,"popper-options":vn.popperOptions,pure:vn.pure,"raw-content":vn.rawContent,"reference-el":vn.referenceEl,"trigger-target-el":vn.triggerTargetEl,"show-after":vn.showAfter,strategy:vn.strategy,teleported:vn.teleported,transition:vn.transition,"virtual-triggering":vn.virtualTriggering,"z-index":vn.zIndex,"append-to":vn.appendTo},{default:withCtx(()=>[renderSlot(vn.$slots,"content",{},()=>[vn.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:vn.content},null,8,_hoisted_1$12)):(openBlock(),createElementBlock("span",_hoisted_2$H,toDisplayString$1(vn.content),1))]),vn.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0,"arrow-offset":vn.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:ie}){const le=$,ue=useAttrs(),pe=useAttrs$1(),_e=useFormDisabled(),Ce=useNamespace("autocomplete"),$e=ref(),xe=ref(),Ie=ref(),ze=ref();let Ue=!1,qe=!1;const Et=ref([]),Lt=ref(-1),hn=ref(""),vn=ref(!1),_n=ref(!1),bn=ref(!1),Sn=computed(()=>Ce.b(String(generateId()))),Cn=computed(()=>pe.style),En=computed(()=>(Et.value.length>0||bn.value)&&vn.value),$n=computed(()=>!le.hideLoading&&bn.value),wn=computed(()=>$e.value?Array.from($e.value.$el.querySelectorAll("input")):[]),Tn=async()=>{await nextTick(),En.value&&(hn.value=`${$e.value.$el.offsetWidth}px`)},xn=()=>{Lt.value=-1},kn=debounce(async sr=>{if(_n.value)return;const Zn=Kn=>{bn.value=!1,!_n.value&&(isArray$c(Kn)?(Et.value=Kn,Lt.value=le.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$i,"autocomplete suggestions must be an array"))};if(bn.value=!0,isArray$c(le.fetchSuggestions))Zn(le.fetchSuggestions);else{const Kn=await le.fetchSuggestions(sr,Zn);isArray$c(Kn)&&Zn(Kn)}},le.debounce),An=sr=>{const Zn=!!sr;if(ie(INPUT_EVENT,sr),ie(UPDATE_MODEL_EVENT,sr),_n.value=!1,vn.value||(vn.value=Zn),!le.triggerOnFocus&&!sr){_n.value=!0,Et.value=[];return}kn(sr)},Nn=sr=>{var Zn;_e.value||(((Zn=sr.target)==null?void 0:Zn.tagName)!=="INPUT"||wn.value.includes(document.activeElement))&&(vn.value=!0)},Fn=sr=>{ie(CHANGE_EVENT,sr)},Ln=sr=>{qe?qe=!1:(vn.value=!0,ie("focus",sr),le.triggerOnFocus&&!Ue&&kn(String(le.modelValue)))},In=sr=>{setTimeout(()=>{var Zn;if((Zn=Ie.value)!=null&&Zn.isFocusInsideContent()){qe=!0;return}vn.value&&qn(),ie("blur",sr)})},Vn=()=>{vn.value=!1,ie(UPDATE_MODEL_EVENT,""),ie("clear")},Mn=async()=>{En.value&&Lt.value>=0&&Lt.value<Et.value.length?ur(Et.value[Lt.value]):le.selectWhenUnmatched&&(ie("select",{value:le.modelValue}),Et.value=[],Lt.value=-1)},zn=sr=>{En.value&&(sr.preventDefault(),sr.stopPropagation(),qn())},qn=()=>{vn.value=!1},Hn=()=>{var sr;(sr=$e.value)==null||sr.focus()},Jn=()=>{var sr;(sr=$e.value)==null||sr.blur()},ur=async sr=>{ie(INPUT_EVENT,sr[le.valueKey]),ie(UPDATE_MODEL_EVENT,sr[le.valueKey]),ie("select",sr),Et.value=[],Lt.value=-1},yr=sr=>{if(!En.value||bn.value)return;if(sr<0){Lt.value=-1;return}sr>=Et.value.length&&(sr=Et.value.length-1);const Zn=xe.value.querySelector(`.${Ce.be("suggestion","wrap")}`),Wn=Zn.querySelectorAll(`.${Ce.be("suggestion","list")} li`)[sr],nr=Zn.scrollTop,{offsetTop:fr,scrollHeight:Gn}=Wn;fr+Gn>nr+Zn.clientHeight&&(Zn.scrollTop+=Gn),fr<nr&&(Zn.scrollTop-=Gn),Lt.value=sr,$e.value.ref.setAttribute("aria-activedescendant",`${Sn.value}-item-${Lt.value}`)};return onClickOutside(ze,()=>{En.value&&qn()}),onMounted(()=>{$e.value.ref.setAttribute("role","textbox"),$e.value.ref.setAttribute("aria-autocomplete","list"),$e.value.ref.setAttribute("aria-controls","id"),$e.value.ref.setAttribute("aria-activedescendant",`${Sn.value}-item-${Lt.value}`),Ue=$e.value.ref.hasAttribute("readonly")}),z({highlightedIndex:Lt,activated:vn,loading:bn,inputRef:$e,popperRef:Ie,suggestions:Et,handleSelect:ur,handleKeyEnter:Mn,focus:Hn,blur:Jn,close:qn,highlight:yr}),(sr,Zn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:Ie,visible:unref(En),placement:sr.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(Ce).e("popper"),sr.popperClass],teleported:sr.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(Ce).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:Tn,onHide:xn},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:xe,class:normalizeClass([unref(Ce).b("suggestion"),unref(Ce).is("loading",unref($n))]),style:normalizeStyle$1({[sr.fitInputWidth?"width":"minWidth"]:hn.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(Sn),tag:"ul","wrap-class":unref(Ce).be("suggestion","wrap"),"view-class":unref(Ce).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref($n)?(openBlock(),createElementBlock("li",_hoisted_2$G,[createVNode(unref(ElIcon),{class:normalizeClass(unref(Ce).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Et.value,(Kn,Wn)=>(openBlock(),createElementBlock("li",{id:`${unref(Sn)}-item-${Wn}`,key:Wn,class:normalizeClass({highlighted:Lt.value===Wn}),role:"option","aria-selected":Lt.value===Wn,onClick:nr=>ur(Kn)},[renderSlot(sr.$slots,"default",{item:Kn},()=>[createTextVNode(toDisplayString$1(Kn[sr.valueKey]),1)])],10,_hoisted_3$m))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:ze,class:normalizeClass([unref(Ce).b(),sr.$attrs.class]),style:normalizeStyle$1(unref(Cn)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref(En),"aria-owns":unref(Sn)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:$e},unref(ue),{clearable:sr.clearable,disabled:unref(_e),name:sr.name,"model-value":sr.modelValue,onInput:An,onChange:Fn,onFocus:Ln,onBlur:In,onClear:Vn,onKeydown:[Zn[0]||(Zn[0]=withKeys(withModifiers(Kn=>yr(Lt.value-1),["prevent"]),["up"])),Zn[1]||(Zn[1]=withKeys(withModifiers(Kn=>yr(Lt.value+1),["prevent"]),["down"])),withKeys(Mn,["enter"]),withKeys(qn,["tab"]),withKeys(zn,["esc"])],onMousedown:Nn}),createSlots({_:2},[sr.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(sr.$slots,"prepend")])}:void 0,sr.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(sr.$slots,"append")])}:void 0,sr.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(sr.$slots,"prefix")])}:void 0,sr.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(sr.$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 ie=$,le=useNamespace("avatar"),ue=ref(!1),pe=computed(()=>{const{size:xe,icon:Ie,shape:ze}=ie,Ue=[le.b()];return isString$7(xe)&&Ue.push(le.m(xe)),Ie&&Ue.push(le.m("icon")),ze&&Ue.push(le.m(ze)),Ue}),_e=computed(()=>{const{size:xe}=ie;return isNumber$5(xe)?le.cssVarBlock({size:addUnit(xe)||""}):void 0}),Ce=computed(()=>({objectFit:ie.fit}));watch(()=>ie.src,()=>ue.value=!1);function $e(xe){ue.value=!0,z("error",xe)}return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(_e))},[(xe.src||xe.srcSet)&&!ue.value?(openBlock(),createElementBlock("img",{key:0,src:xe.src,alt:xe.alt,srcset:xe.srcSet,style:normalizeStyle$1(unref(Ce)),onError:$e},null,44,_hoisted_1$10)):xe.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.icon)))]),_:1})):renderSlot(xe.$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,ie)=>{const le=shallowRef(),ue=shallowRef(),pe=ref(!1),_e=()=>{le.value&&(pe.value=le.value.scrollTop>=$.visibilityHeight)},Ce=xe=>{var Ie;(Ie=le.value)==null||Ie.scrollTo({top:0,behavior:"smooth"}),z("click",xe)},$e=useThrottleFn(_e,300,!0);return useEventListener$1(ue,"scroll",$e),onMounted(()=>{var xe;ue.value=document,le.value=document.documentElement,$.target&&(le.value=(xe=document.querySelector($.target))!=null?xe:void 0,le.value||throwError$1(ie,`target does not exist: ${$.target}`),ue.value=le.value)}),{visible:pe,handleClick:Ce}},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 ie=$,le=useNamespace("backtop"),{handleClick:ue,visible:pe}=useBackTop(ie,z,COMPONENT_NAME$h),_e=computed(()=>({right:`${ie.right}px`,bottom:`${ie.bottom}px`}));return(Ce,$e)=>(openBlock(),createBlock(Transition,{name:`${unref(le).namespace.value}-fade-in`},{default:withCtx(()=>[unref(pe)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(unref(_e)),class:normalizeClass(unref(le).b()),onClick:$e[0]||($e[0]=withModifiers((...xe)=>unref(ue)&&unref(ue)(...xe),["stop"]))},[renderSlot(Ce.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).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 ie=$,le=useNamespace("badge"),ue=computed(()=>ie.isDot?"":isNumber$5(ie.value)&&isNumber$5(ie.max)?ie.max<ie.value?`${ie.max}+`:`${ie.value}`:`${ie.value}`);return z({content:ue}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le).b())},[renderSlot(pe.$slots,"default"),createVNode(Transition,{name:`${unref(le).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(le).e("content"),unref(le).em("content",pe.type),unref(le).is("fixed",!!pe.$slots.default),unref(le).is("dot",pe.isDot)]),textContent:toDisplayString$1(unref(ue))},null,10,_hoisted_1$$),[[vShow,!pe.hidden&&(unref(ue)||pe.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=$,ie=useNamespace("breadcrumb"),le=ref();return provide(breadcrumbKey,z),onMounted(()=>{const ue=le.value.querySelectorAll(`.${ie.e("item")}`);ue.length&&ue[ue.length-1].setAttribute("aria-current","page")}),(ue,pe)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:le,class:normalizeClass(unref(ie).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot(ue.$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=$,ie=getCurrentInstance(),le=inject(breadcrumbKey,void 0),ue=useNamespace("breadcrumb"),{separator:pe,separatorIcon:_e}=toRefs(le),Ce=ie.appContext.config.globalProperties.$router,$e=ref(),xe=()=>{!z.to||!Ce||(z.replace?Ce.replace(z.to):Ce.push(z.to))};return(Ie,ze)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ue).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:$e,class:normalizeClass([unref(ue).e("inner"),unref(ue).is("link",!!Ie.to)]),role:"link",onClick:xe},[renderSlot(Ie.$slots,"default")],2),unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ue).e("separator")),role:"presentation"},toDisplayString$1(unref(pe)),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 ie=inject(buttonGroupContextKey,void 0),le=useGlobalConfig("button"),{form:ue}=useFormItem(),pe=useFormSize(computed(()=>ie==null?void 0:ie.size)),_e=useFormDisabled(),Ce=ref(),$e=useSlots(),xe=computed(()=>$.type||(ie==null?void 0:ie.type)||""),Ie=computed(()=>{var Et,Lt,hn;return(hn=(Lt=$.autoInsertSpace)!=null?Lt:(Et=le.value)==null?void 0:Et.autoInsertSpace)!=null?hn:!1}),ze=computed(()=>$.tag==="button"?{ariaDisabled:_e.value||$.loading,disabled:_e.value||$.loading,autofocus:$.autofocus,type:$.nativeType}:{}),Ue=computed(()=>{var Et;const Lt=(Et=$e.default)==null?void 0:Et.call($e);if(Ie.value&&(Lt==null?void 0:Lt.length)===1){const hn=Lt[0];if((hn==null?void 0:hn.type)===Text$1){const vn=hn.children;return/^\p{Unified_Ideograph}{2}$/u.test(vn.trim())}}return!1});return{_disabled:_e,_size:pe,_type:xe,_ref:Ce,_props:ze,shouldAddSpace:Ue,handleClick:Et=>{$.nativeType==="reset"&&(ue==null||ue.resetFields()),z("click",Et)}}},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 ie=isPercentage$1($);return $=z===360?$:Math.min(z,Math.max(0,parseFloat($))),ie&&($=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,ie){return{r:bound01$1($,255)*255,g:bound01$1(z,255)*255,b:bound01$1(ie,255)*255}}function rgbToHsl($,z,ie){$=bound01$1($,255),z=bound01$1(z,255),ie=bound01$1(ie,255);var le=Math.max($,z,ie),ue=Math.min($,z,ie),pe=0,_e=0,Ce=(le+ue)/2;if(le===ue)_e=0,pe=0;else{var $e=le-ue;switch(_e=Ce>.5?$e/(2-le-ue):$e/(le+ue),le){case $:pe=(z-ie)/$e+(z<ie?6:0);break;case z:pe=(ie-$)/$e+2;break;case ie:pe=($-z)/$e+4;break}pe/=6}return{h:pe,s:_e,l:Ce}}function hue2rgb($,z,ie){return ie<0&&(ie+=1),ie>1&&(ie-=1),ie<1/6?$+(z-$)*(6*ie):ie<1/2?z:ie<2/3?$+(z-$)*(2/3-ie)*6:$}function hslToRgb($,z,ie){var le,ue,pe;if($=bound01$1($,360),z=bound01$1(z,100),ie=bound01$1(ie,100),z===0)ue=ie,pe=ie,le=ie;else{var _e=ie<.5?ie*(1+z):ie+z-ie*z,Ce=2*ie-_e;le=hue2rgb(Ce,_e,$+1/3),ue=hue2rgb(Ce,_e,$),pe=hue2rgb(Ce,_e,$-1/3)}return{r:le*255,g:ue*255,b:pe*255}}function rgbToHsv($,z,ie){$=bound01$1($,255),z=bound01$1(z,255),ie=bound01$1(ie,255);var le=Math.max($,z,ie),ue=Math.min($,z,ie),pe=0,_e=le,Ce=le-ue,$e=le===0?0:Ce/le;if(le===ue)pe=0;else{switch(le){case $:pe=(z-ie)/Ce+(z<ie?6:0);break;case z:pe=(ie-$)/Ce+2;break;case ie:pe=($-z)/Ce+4;break}pe/=6}return{h:pe,s:$e,v:_e}}function hsvToRgb($,z,ie){$=bound01$1($,360)*6,z=bound01$1(z,100),ie=bound01$1(ie,100);var le=Math.floor($),ue=$-le,pe=ie*(1-z),_e=ie*(1-ue*z),Ce=ie*(1-(1-ue)*z),$e=le%6,xe=[ie,_e,pe,pe,Ce,ie][$e],Ie=[Ce,ie,ie,_e,pe,pe][$e],ze=[pe,pe,Ce,ie,ie,_e][$e];return{r:xe*255,g:Ie*255,b:ze*255}}function rgbToHex($,z,ie,le){var ue=[pad2(Math.round($).toString(16)),pad2(Math.round(z).toString(16)),pad2(Math.round(ie).toString(16))];return le&&ue[0].startsWith(ue[0].charAt(1))&&ue[1].startsWith(ue[1].charAt(1))&&ue[2].startsWith(ue[2].charAt(1))?ue[0].charAt(0)+ue[1].charAt(0)+ue[2].charAt(0):ue.join("")}function rgbaToHex($,z,ie,le,ue){var pe=[pad2(Math.round($).toString(16)),pad2(Math.round(z).toString(16)),pad2(Math.round(ie).toString(16)),pad2(convertDecimalToHex(le))];return ue&&pe[0].startsWith(pe[0].charAt(1))&&pe[1].startsWith(pe[1].charAt(1))&&pe[2].startsWith(pe[2].charAt(1))&&pe[3].startsWith(pe[3].charAt(1))?pe[0].charAt(0)+pe[1].charAt(0)+pe[2].charAt(0)+pe[3].charAt(0):pe.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},ie=1,le=null,ue=null,pe=null,_e=!1,Ce=!1;return typeof $=="string"&&($=stringInputToObject($)),typeof $=="object"&&(isValidCSSUnit($.r)&&isValidCSSUnit($.g)&&isValidCSSUnit($.b)?(z=rgbToRgb($.r,$.g,$.b),_e=!0,Ce=String($.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.v)?(le=convertToPercentage($.s),ue=convertToPercentage($.v),z=hsvToRgb($.h,le,ue),_e=!0,Ce="hsv"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.l)&&(le=convertToPercentage($.s),pe=convertToPercentage($.l),z=hslToRgb($.h,le,pe),_e=!0,Ce="hsl"),Object.prototype.hasOwnProperty.call($,"a")&&(ie=$.a)),ie=boundAlpha(ie),{ok:_e,format:$.format||Ce,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:ie}}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 ie=matchers.rgb.exec($);return ie?{r:ie[1],g:ie[2],b:ie[3]}:(ie=matchers.rgba.exec($),ie?{r:ie[1],g:ie[2],b:ie[3],a:ie[4]}:(ie=matchers.hsl.exec($),ie?{h:ie[1],s:ie[2],l:ie[3]}:(ie=matchers.hsla.exec($),ie?{h:ie[1],s:ie[2],l:ie[3],a:ie[4]}:(ie=matchers.hsv.exec($),ie?{h:ie[1],s:ie[2],v:ie[3]}:(ie=matchers.hsva.exec($),ie?{h:ie[1],s:ie[2],v:ie[3],a:ie[4]}:(ie=matchers.hex8.exec($),ie?{r:parseIntFromHex(ie[1]),g:parseIntFromHex(ie[2]),b:parseIntFromHex(ie[3]),a:convertHexToDecimal(ie[4]),format:z?"name":"hex8"}:(ie=matchers.hex6.exec($),ie?{r:parseIntFromHex(ie[1]),g:parseIntFromHex(ie[2]),b:parseIntFromHex(ie[3]),format:z?"name":"hex"}:(ie=matchers.hex4.exec($),ie?{r:parseIntFromHex(ie[1]+ie[1]),g:parseIntFromHex(ie[2]+ie[2]),b:parseIntFromHex(ie[3]+ie[3]),a:convertHexToDecimal(ie[4]+ie[4]),format:z?"name":"hex8"}:(ie=matchers.hex3.exec($),ie?{r:parseIntFromHex(ie[1]+ie[1]),g:parseIntFromHex(ie[2]+ie[2]),b:parseIntFromHex(ie[3]+ie[3]),format:z?"name":"hex"}:!1)))))))))}function isValidCSSUnit($){return!!matchers.CSS_UNIT.exec(String($))}var TinyColor=function(){function $(z,ie){z===void 0&&(z=""),ie===void 0&&(ie={});var le;if(z instanceof $)return z;typeof z=="number"&&(z=numberInputToObject(z)),this.originalInput=z;var ue=inputToRGB(z);this.originalInput=z,this.r=ue.r,this.g=ue.g,this.b=ue.b,this.a=ue.a,this.roundA=Math.round(100*this.a)/100,this.format=(le=ie.format)!==null&&le!==void 0?le:ue.format,this.gradientType=ie.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=ue.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(),ie,le,ue,pe=z.r/255,_e=z.g/255,Ce=z.b/255;return pe<=.03928?ie=pe/12.92:ie=Math.pow((pe+.055)/1.055,2.4),_e<=.03928?le=_e/12.92:le=Math.pow((_e+.055)/1.055,2.4),Ce<=.03928?ue=Ce/12.92:ue=Math.pow((Ce+.055)/1.055,2.4),.2126*ie+.7152*le+.0722*ue},$.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),ie=Math.round(z.h*360),le=Math.round(z.s*100),ue=Math.round(z.v*100);return this.a===1?"hsv(".concat(ie,", ").concat(le,"%, ").concat(ue,"%)"):"hsva(".concat(ie,", ").concat(le,"%, ").concat(ue,"%, ").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),ie=Math.round(z.h*360),le=Math.round(z.s*100),ue=Math.round(z.l*100);return this.a===1?"hsl(".concat(ie,", ").concat(le,"%, ").concat(ue,"%)"):"hsla(".concat(ie,", ").concat(le,"%, ").concat(ue,"%, ").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),ie=Math.round(this.g),le=Math.round(this.b);return this.a===1?"rgb(".concat(z,", ").concat(ie,", ").concat(le,")"):"rgba(".concat(z,", ").concat(ie,", ").concat(le,", ").concat(this.roundA,")")},$.prototype.toPercentageRgb=function(){var z=function(ie){return"".concat(Math.round(bound01$1(ie,255)*100),"%")};return{r:z(this.r),g:z(this.g),b:z(this.b),a:this.a}},$.prototype.toPercentageRgbString=function(){var z=function(ie){return Math.round(bound01$1(ie,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),ie=0,le=Object.entries(names);ie<le.length;ie++){var ue=le[ie],pe=ue[0],_e=ue[1];if(z===_e)return pe}return!1},$.prototype.toString=function(z){var ie=!!z;z=z??this.format;var le=!1,ue=this.a<1&&this.a>=0,pe=!ie&&ue&&(z.startsWith("hex")||z==="name");return pe?z==="name"&&this.a===0?this.toName():this.toRgbString():(z==="rgb"&&(le=this.toRgbString()),z==="prgb"&&(le=this.toPercentageRgbString()),(z==="hex"||z==="hex6")&&(le=this.toHexString()),z==="hex3"&&(le=this.toHexString(!0)),z==="hex4"&&(le=this.toHex8String(!0)),z==="hex8"&&(le=this.toHex8String()),z==="name"&&(le=this.toName()),z==="hsl"&&(le=this.toHslString()),z==="hsv"&&(le=this.toHsvString()),le||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 ie=this.toHsl();return ie.l+=z/100,ie.l=clamp01(ie.l),new $(ie)},$.prototype.brighten=function(z){z===void 0&&(z=10);var ie=this.toRgb();return ie.r=Math.max(0,Math.min(255,ie.r-Math.round(255*-(z/100)))),ie.g=Math.max(0,Math.min(255,ie.g-Math.round(255*-(z/100)))),ie.b=Math.max(0,Math.min(255,ie.b-Math.round(255*-(z/100)))),new $(ie)},$.prototype.darken=function(z){z===void 0&&(z=10);var ie=this.toHsl();return ie.l-=z/100,ie.l=clamp01(ie.l),new $(ie)},$.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 ie=this.toHsl();return ie.s-=z/100,ie.s=clamp01(ie.s),new $(ie)},$.prototype.saturate=function(z){z===void 0&&(z=10);var ie=this.toHsl();return ie.s+=z/100,ie.s=clamp01(ie.s),new $(ie)},$.prototype.greyscale=function(){return this.desaturate(100)},$.prototype.spin=function(z){var ie=this.toHsl(),le=(ie.h+z)%360;return ie.h=le<0?360+le:le,new $(ie)},$.prototype.mix=function(z,ie){ie===void 0&&(ie=50);var le=this.toRgb(),ue=new $(z).toRgb(),pe=ie/100,_e={r:(ue.r-le.r)*pe+le.r,g:(ue.g-le.g)*pe+le.g,b:(ue.b-le.b)*pe+le.b,a:(ue.a-le.a)*pe+le.a};return new $(_e)},$.prototype.analogous=function(z,ie){z===void 0&&(z=6),ie===void 0&&(ie=30);var le=this.toHsl(),ue=360/ie,pe=[this];for(le.h=(le.h-(ue*z>>1)+720)%360;--z;)le.h=(le.h+ue)%360,pe.push(new $(le));return pe},$.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 ie=this.toHsv(),le=ie.h,ue=ie.s,pe=ie.v,_e=[],Ce=1/z;z--;)_e.push(new $({h:le,s:ue,v:pe})),pe=(pe+Ce)%1;return _e},$.prototype.splitcomplement=function(){var z=this.toHsl(),ie=z.h;return[this,new $({h:(ie+72)%360,s:z.s,l:z.l}),new $({h:(ie+216)%360,s:z.s,l:z.l})]},$.prototype.onBackground=function(z){var ie=this.toRgb(),le=new $(z).toRgb(),ue=ie.a+le.a*(1-ie.a);return new $({r:(ie.r*ie.a+le.r*le.a*(1-ie.a))/ue,g:(ie.g*ie.a+le.g*le.a*(1-ie.a))/ue,b:(ie.b*ie.a+le.b*le.a*(1-ie.a))/ue,a:ue})},$.prototype.triad=function(){return this.polyad(3)},$.prototype.tetrad=function(){return this.polyad(4)},$.prototype.polyad=function(z){for(var ie=this.toHsl(),le=ie.h,ue=[this],pe=360/z,_e=1;_e<z;_e++)ue.push(new $({h:(le+_e*pe)%360,s:ie.s,l:ie.l}));return ue},$.prototype.equals=function(z){return this.toRgbString()===new $(z).toRgbString()},$}();function darken($,z=20){return $.mix("#141414",z).toString()}function useButtonCustomStyle($){const z=useFormDisabled(),ie=useNamespace("button");return computed(()=>{let le={};const ue=$.color;if(ue){const pe=new TinyColor(ue),_e=$.dark?pe.tint(20).toString():darken(pe,20);if($.plain)le=ie.cssVarBlock({"bg-color":$.dark?darken(pe,90):pe.tint(90).toString(),"text-color":ue,"border-color":$.dark?darken(pe,50):pe.tint(50).toString(),"hover-text-color":`var(${ie.cssVarName("color-white")})`,"hover-bg-color":ue,"hover-border-color":ue,"active-bg-color":_e,"active-text-color":`var(${ie.cssVarName("color-white")})`,"active-border-color":_e}),z.value&&(le[ie.cssVarBlockName("disabled-bg-color")]=$.dark?darken(pe,90):pe.tint(90).toString(),le[ie.cssVarBlockName("disabled-text-color")]=$.dark?darken(pe,50):pe.tint(50).toString(),le[ie.cssVarBlockName("disabled-border-color")]=$.dark?darken(pe,80):pe.tint(80).toString());else{const Ce=$.dark?darken(pe,30):pe.tint(30).toString(),$e=pe.isDark()?`var(${ie.cssVarName("color-white")})`:`var(${ie.cssVarName("color-black")})`;if(le=ie.cssVarBlock({"bg-color":ue,"text-color":$e,"border-color":ue,"hover-bg-color":Ce,"hover-text-color":$e,"hover-border-color":Ce,"active-bg-color":_e,"active-border-color":_e}),z.value){const xe=$.dark?darken(pe,50):pe.tint(50).toString();le[ie.cssVarBlockName("disabled-bg-color")]=xe,le[ie.cssVarBlockName("disabled-text-color")]=$.dark?"rgba(255, 255, 255, 0.5)":`var(${ie.cssVarName("color-white")})`,le[ie.cssVarBlockName("disabled-border-color")]=xe}}}return le})}const __default__$1i=defineComponent({name:"ElButton"}),_sfc_main$1Z=defineComponent({...__default__$1i,props:buttonProps,emits:buttonEmits,setup($,{expose:z,emit:ie}){const le=$,ue=useButtonCustomStyle(le),pe=useNamespace("button"),{_ref:_e,_size:Ce,_type:$e,_disabled:xe,_props:Ie,shouldAddSpace:ze,handleClick:Ue}=useButton(le,ie);return z({ref:_e,size:Ce,type:$e,disabled:xe,shouldAddSpace:ze}),(qe,Et)=>(openBlock(),createBlock(resolveDynamicComponent(qe.tag),mergeProps({ref_key:"_ref",ref:_e},unref(Ie),{class:[unref(pe).b(),unref(pe).m(unref($e)),unref(pe).m(unref(Ce)),unref(pe).is("disabled",unref(xe)),unref(pe).is("loading",qe.loading),unref(pe).is("plain",qe.plain),unref(pe).is("round",qe.round),unref(pe).is("circle",qe.circle),unref(pe).is("text",qe.text),unref(pe).is("link",qe.link),unref(pe).is("has-bg",qe.bg)],style:unref(ue),onClick:unref(Ue)}),{default:withCtx(()=>[qe.loading?(openBlock(),createElementBlock(Fragment,{key:0},[qe.$slots.loading?renderSlot(qe.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(pe).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(qe.loadingIcon)))]),_:1},8,["class"]))],64)):qe.icon||qe.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[qe.icon?(openBlock(),createBlock(resolveDynamicComponent(qe.icon),{key:0})):renderSlot(qe.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),qe.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(pe).em("text","expand")]:unref(ze)})},[renderSlot(qe.$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 ie=useNamespace("button");return(le,ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(ie).b("group")}`)},[renderSlot(le.$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 ie=function le(){if(this instanceof le){var ue=[null];ue.push.apply(ue,arguments);var pe=Function.bind.apply(z,ue);return new pe}return z.apply(this,arguments)};ie.prototype=z.prototype}else ie={};return Object.defineProperty(ie,"__esModule",{value:!0}),Object.keys($).forEach(function(le){var ue=Object.getOwnPropertyDescriptor($,le);Object.defineProperty(ie,le,ue.get?ue:{enumerable:!0,get:function(){return $[le]}})}),ie}var dayjs_min={exports:{}};(function($,z){(function(ie,le){$.exports=le()})(commonjsGlobal,function(){var ie=1e3,le=6e4,ue=36e5,pe="millisecond",_e="second",Ce="minute",$e="hour",xe="day",Ie="week",ze="month",Ue="quarter",qe="year",Et="date",Lt="Invalid Date",hn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vn=/\[([^\]]+)]|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,_n={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(An){var Nn=["th","st","nd","rd"],Fn=An%100;return"["+An+(Nn[(Fn-20)%10]||Nn[Fn]||Nn[0])+"]"}},bn=function(An,Nn,Fn){var Ln=String(An);return!Ln||Ln.length>=Nn?An:""+Array(Nn+1-Ln.length).join(Fn)+An},Sn={s:bn,z:function(An){var Nn=-An.utcOffset(),Fn=Math.abs(Nn),Ln=Math.floor(Fn/60),In=Fn%60;return(Nn<=0?"+":"-")+bn(Ln,2,"0")+":"+bn(In,2,"0")},m:function An(Nn,Fn){if(Nn.date()<Fn.date())return-An(Fn,Nn);var Ln=12*(Fn.year()-Nn.year())+(Fn.month()-Nn.month()),In=Nn.clone().add(Ln,ze),Vn=Fn-In<0,Mn=Nn.clone().add(Ln+(Vn?-1:1),ze);return+(-(Ln+(Fn-In)/(Vn?In-Mn:Mn-In))||0)},a:function(An){return An<0?Math.ceil(An)||0:Math.floor(An)},p:function(An){return{M:ze,y:qe,w:Ie,d:xe,D:Et,h:$e,m:Ce,s:_e,ms:pe,Q:Ue}[An]||String(An||"").toLowerCase().replace(/s$/,"")},u:function(An){return An===void 0}},Cn="en",En={};En[Cn]=_n;var $n=function(An){return An instanceof Pn},wn=function An(Nn,Fn,Ln){var In;if(!Nn)return Cn;if(typeof Nn=="string"){var Vn=Nn.toLowerCase();En[Vn]&&(In=Vn),Fn&&(En[Vn]=Fn,In=Vn);var Mn=Nn.split("-");if(!In&&Mn.length>1)return An(Mn[0])}else{var zn=Nn.name;En[zn]=Nn,In=zn}return!Ln&&In&&(Cn=In),In||!Ln&&Cn},Tn=function(An,Nn){if($n(An))return An.clone();var Fn=typeof Nn=="object"?Nn:{};return Fn.date=An,Fn.args=arguments,new Pn(Fn)},xn=Sn;xn.l=wn,xn.i=$n,xn.w=function(An,Nn){return Tn(An,{locale:Nn.$L,utc:Nn.$u,x:Nn.$x,$offset:Nn.$offset})};var Pn=function(){function An(Fn){this.$L=wn(Fn.locale,null,!0),this.parse(Fn)}var Nn=An.prototype;return Nn.parse=function(Fn){this.$d=function(Ln){var In=Ln.date,Vn=Ln.utc;if(In===null)return new Date(NaN);if(xn.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(hn);if(Mn){var zn=Mn[2]-1||0,qn=(Mn[7]||"0").substring(0,3);return Vn?new Date(Date.UTC(Mn[1],zn,Mn[3]||1,Mn[4]||0,Mn[5]||0,Mn[6]||0,qn)):new Date(Mn[1],zn,Mn[3]||1,Mn[4]||0,Mn[5]||0,Mn[6]||0,qn)}}return new Date(In)}(Fn),this.$x=Fn.x||{},this.init()},Nn.init=function(){var Fn=this.$d;this.$y=Fn.getFullYear(),this.$M=Fn.getMonth(),this.$D=Fn.getDate(),this.$W=Fn.getDay(),this.$H=Fn.getHours(),this.$m=Fn.getMinutes(),this.$s=Fn.getSeconds(),this.$ms=Fn.getMilliseconds()},Nn.$utils=function(){return xn},Nn.isValid=function(){return this.$d.toString()!==Lt},Nn.isSame=function(Fn,Ln){var In=Tn(Fn);return this.startOf(Ln)<=In&&In<=this.endOf(Ln)},Nn.isAfter=function(Fn,Ln){return Tn(Fn)<this.startOf(Ln)},Nn.isBefore=function(Fn,Ln){return this.endOf(Ln)<Tn(Fn)},Nn.$g=function(Fn,Ln,In){return xn.u(Fn)?this[Ln]:this.set(In,Fn)},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this.$d.getTime()},Nn.startOf=function(Fn,Ln){var In=this,Vn=!!xn.u(Ln)||Ln,Mn=xn.p(Fn),zn=function(Kn,Wn){var nr=xn.w(In.$u?Date.UTC(In.$y,Wn,Kn):new Date(In.$y,Wn,Kn),In);return Vn?nr:nr.endOf(xe)},qn=function(Kn,Wn){return xn.w(In.toDate()[Kn].apply(In.toDate("s"),(Vn?[0,0,0,0]:[23,59,59,999]).slice(Wn)),In)},Hn=this.$W,Jn=this.$M,ur=this.$D,yr="set"+(this.$u?"UTC":"");switch(Mn){case qe:return Vn?zn(1,0):zn(31,11);case ze:return Vn?zn(1,Jn):zn(0,Jn+1);case Ie:var sr=this.$locale().weekStart||0,Zn=(Hn<sr?Hn+7:Hn)-sr;return zn(Vn?ur-Zn:ur+(6-Zn),Jn);case xe:case Et:return qn(yr+"Hours",0);case $e:return qn(yr+"Minutes",1);case Ce:return qn(yr+"Seconds",2);case _e:return qn(yr+"Milliseconds",3);default:return this.clone()}},Nn.endOf=function(Fn){return this.startOf(Fn,!1)},Nn.$set=function(Fn,Ln){var In,Vn=xn.p(Fn),Mn="set"+(this.$u?"UTC":""),zn=(In={},In[xe]=Mn+"Date",In[Et]=Mn+"Date",In[ze]=Mn+"Month",In[qe]=Mn+"FullYear",In[$e]=Mn+"Hours",In[Ce]=Mn+"Minutes",In[_e]=Mn+"Seconds",In[pe]=Mn+"Milliseconds",In)[Vn],qn=Vn===xe?this.$D+(Ln-this.$W):Ln;if(Vn===ze||Vn===qe){var Hn=this.clone().set(Et,1);Hn.$d[zn](qn),Hn.init(),this.$d=Hn.set(Et,Math.min(this.$D,Hn.daysInMonth())).$d}else zn&&this.$d[zn](qn);return this.init(),this},Nn.set=function(Fn,Ln){return this.clone().$set(Fn,Ln)},Nn.get=function(Fn){return this[xn.p(Fn)]()},Nn.add=function(Fn,Ln){var In,Vn=this;Fn=Number(Fn);var Mn=xn.p(Ln),zn=function(Jn){var ur=Tn(Vn);return xn.w(ur.date(ur.date()+Math.round(Jn*Fn)),Vn)};if(Mn===ze)return this.set(ze,this.$M+Fn);if(Mn===qe)return this.set(qe,this.$y+Fn);if(Mn===xe)return zn(1);if(Mn===Ie)return zn(7);var qn=(In={},In[Ce]=le,In[$e]=ue,In[_e]=ie,In)[Mn]||1,Hn=this.$d.getTime()+Fn*qn;return xn.w(Hn,this)},Nn.subtract=function(Fn,Ln){return this.add(-1*Fn,Ln)},Nn.format=function(Fn){var Ln=this,In=this.$locale();if(!this.isValid())return In.invalidDate||Lt;var Vn=Fn||"YYYY-MM-DDTHH:mm:ssZ",Mn=xn.z(this),zn=this.$H,qn=this.$m,Hn=this.$M,Jn=In.weekdays,ur=In.months,yr=function(Wn,nr,fr,Gn){return Wn&&(Wn[nr]||Wn(Ln,Vn))||fr[nr].slice(0,Gn)},sr=function(Wn){return xn.s(zn%12||12,Wn,"0")},Zn=In.meridiem||function(Wn,nr,fr){var Gn=Wn<12?"AM":"PM";return fr?Gn.toLowerCase():Gn},Kn={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Hn+1,MM:xn.s(Hn+1,2,"0"),MMM:yr(In.monthsShort,Hn,ur,3),MMMM:yr(ur,Hn),D:this.$D,DD:xn.s(this.$D,2,"0"),d:String(this.$W),dd:yr(In.weekdaysMin,this.$W,Jn,2),ddd:yr(In.weekdaysShort,this.$W,Jn,3),dddd:Jn[this.$W],H:String(zn),HH:xn.s(zn,2,"0"),h:sr(1),hh:sr(2),a:Zn(zn,qn,!0),A:Zn(zn,qn,!1),m:String(qn),mm:xn.s(qn,2,"0"),s:String(this.$s),ss:xn.s(this.$s,2,"0"),SSS:xn.s(this.$ms,3,"0"),Z:Mn};return Vn.replace(vn,function(Wn,nr){return nr||Kn[Wn]||Mn.replace(":","")})},Nn.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Nn.diff=function(Fn,Ln,In){var Vn,Mn=xn.p(Ln),zn=Tn(Fn),qn=(zn.utcOffset()-this.utcOffset())*le,Hn=this-zn,Jn=xn.m(this,zn);return Jn=(Vn={},Vn[qe]=Jn/12,Vn[ze]=Jn,Vn[Ue]=Jn/3,Vn[Ie]=(Hn-qn)/6048e5,Vn[xe]=(Hn-qn)/864e5,Vn[$e]=Hn/ue,Vn[Ce]=Hn/le,Vn[_e]=Hn/ie,Vn)[Mn]||Hn,In?Jn:xn.a(Jn)},Nn.daysInMonth=function(){return this.endOf(ze).$D},Nn.$locale=function(){return En[this.$L]},Nn.locale=function(Fn,Ln){if(!Fn)return this.$L;var In=this.clone(),Vn=wn(Fn,Ln,!0);return Vn&&(In.$L=Vn),In},Nn.clone=function(){return xn.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()},An}(),kn=Pn.prototype;return Tn.prototype=kn,[["$ms",pe],["$s",_e],["$m",Ce],["$H",$e],["$W",xe],["$M",ze],["$y",qe],["$D",Et]].forEach(function(An){kn[An[1]]=function(Nn){return this.$g(Nn,An[0],An[1])}}),Tn.extend=function(An,Nn){return An.$i||(An(Nn,Pn,Tn),An.$i=!0),Tn},Tn.locale=wn,Tn.isDayjs=$n,Tn.unix=function(An){return Tn(1e3*An)},Tn.en=En[Cn],Tn.Ls=En,Tn.p={},Tn})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var customParseFormat$1={exports:{}};(function($,z){(function(ie,le){$.exports=le()})(commonjsGlobal,function(){var ie={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"},le=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,ue=/\d\d/,pe=/\d\d?/,_e=/\d*[^-_:/,()\s\d]+/,Ce={},$e=function(Lt){return(Lt=+Lt)+(Lt>68?1900:2e3)},xe=function(Lt){return function(hn){this[Lt]=+hn}},Ie=[/[+-]\d\d:?(\d\d)?|Z/,function(Lt){(this.zone||(this.zone={})).offset=function(hn){if(!hn||hn==="Z")return 0;var vn=hn.match(/([+-]|\d\d)/g),_n=60*vn[1]+(+vn[2]||0);return _n===0?0:vn[0]==="+"?-_n:_n}(Lt)}],ze=function(Lt){var hn=Ce[Lt];return hn&&(hn.indexOf?hn:hn.s.concat(hn.f))},Ue=function(Lt,hn){var vn,_n=Ce.meridiem;if(_n){for(var bn=1;bn<=24;bn+=1)if(Lt.indexOf(_n(bn,0,hn))>-1){vn=bn>12;break}}else vn=Lt===(hn?"pm":"PM");return vn},qe={A:[_e,function(Lt){this.afternoon=Ue(Lt,!1)}],a:[_e,function(Lt){this.afternoon=Ue(Lt,!0)}],S:[/\d/,function(Lt){this.milliseconds=100*+Lt}],SS:[ue,function(Lt){this.milliseconds=10*+Lt}],SSS:[/\d{3}/,function(Lt){this.milliseconds=+Lt}],s:[pe,xe("seconds")],ss:[pe,xe("seconds")],m:[pe,xe("minutes")],mm:[pe,xe("minutes")],H:[pe,xe("hours")],h:[pe,xe("hours")],HH:[pe,xe("hours")],hh:[pe,xe("hours")],D:[pe,xe("day")],DD:[ue,xe("day")],Do:[_e,function(Lt){var hn=Ce.ordinal,vn=Lt.match(/\d+/);if(this.day=vn[0],hn)for(var _n=1;_n<=31;_n+=1)hn(_n).replace(/\[|\]/g,"")===Lt&&(this.day=_n)}],M:[pe,xe("month")],MM:[ue,xe("month")],MMM:[_e,function(Lt){var hn=ze("months"),vn=(ze("monthsShort")||hn.map(function(_n){return _n.slice(0,3)})).indexOf(Lt)+1;if(vn<1)throw new Error;this.month=vn%12||vn}],MMMM:[_e,function(Lt){var hn=ze("months").indexOf(Lt)+1;if(hn<1)throw new Error;this.month=hn%12||hn}],Y:[/[+-]?\d+/,xe("year")],YY:[ue,function(Lt){this.year=$e(Lt)}],YYYY:[/\d{4}/,xe("year")],Z:Ie,ZZ:Ie};function Et(Lt){var hn,vn;hn=Lt,vn=Ce&&Ce.formats;for(var _n=(Lt=hn.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Tn,xn,Pn){var kn=Pn&&Pn.toUpperCase();return xn||vn[Pn]||ie[Pn]||vn[kn].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(An,Nn,Fn){return Nn||Fn.slice(1)})})).match(le),bn=_n.length,Sn=0;Sn<bn;Sn+=1){var Cn=_n[Sn],En=qe[Cn],$n=En&&En[0],wn=En&&En[1];_n[Sn]=wn?{regex:$n,parser:wn}:Cn.replace(/^\[|\]$/g,"")}return function(Tn){for(var xn={},Pn=0,kn=0;Pn<bn;Pn+=1){var An=_n[Pn];if(typeof An=="string")kn+=An.length;else{var Nn=An.regex,Fn=An.parser,Ln=Tn.slice(kn),In=Nn.exec(Ln)[0];Fn.call(xn,In),Tn=Tn.replace(In,"")}}return function(Vn){var Mn=Vn.afternoon;if(Mn!==void 0){var zn=Vn.hours;Mn?zn<12&&(Vn.hours+=12):zn===12&&(Vn.hours=0),delete Vn.afternoon}}(xn),xn}}return function(Lt,hn,vn){vn.p.customParseFormat=!0,Lt&&Lt.parseTwoDigitYear&&($e=Lt.parseTwoDigitYear);var _n=hn.prototype,bn=_n.parse;_n.parse=function(Sn){var Cn=Sn.date,En=Sn.utc,$n=Sn.args;this.$u=En;var wn=$n[1];if(typeof wn=="string"){var Tn=$n[2]===!0,xn=$n[3]===!0,Pn=Tn||xn,kn=$n[2];xn&&(kn=$n[2]),Ce=this.$locale(),!Tn&&kn&&(Ce=vn.Ls[kn]),this.$d=function(Ln,In,Vn){try{if(["x","X"].indexOf(In)>-1)return new Date((In==="X"?1e3:1)*Ln);var Mn=Et(In)(Ln),zn=Mn.year,qn=Mn.month,Hn=Mn.day,Jn=Mn.hours,ur=Mn.minutes,yr=Mn.seconds,sr=Mn.milliseconds,Zn=Mn.zone,Kn=new Date,Wn=Hn||(zn||qn?1:Kn.getDate()),nr=zn||Kn.getFullYear(),fr=0;zn&&!qn||(fr=qn>0?qn-1:Kn.getMonth());var Gn=Jn||0,Xn=ur||0,or=yr||0,vr=sr||0;return Zn?new Date(Date.UTC(nr,fr,Wn,Gn,Xn,or,vr+60*Zn.offset*1e3)):Vn?new Date(Date.UTC(nr,fr,Wn,Gn,Xn,or,vr)):new Date(nr,fr,Wn,Gn,Xn,or,vr)}catch{return new Date("")}}(Cn,wn,En),this.init(),kn&&kn!==!0&&(this.$L=this.locale(kn).$L),Pn&&Cn!=this.format(wn)&&(this.$d=new Date("")),Ce={}}else if(wn instanceof Array)for(var An=wn.length,Nn=1;Nn<=An;Nn+=1){$n[1]=wn[Nn-1];var Fn=vn.apply(this,$n);if(Fn.isValid()){this.$d=Fn.$d,this.$L=Fn.$L,this.init();break}Nn===An&&(this.$d=new Date(""))}else bn.call(this,Sn)}}})})(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 ie=isDate$3($),le=isDate$3(z);return ie&&le?$.getTime()===z.getTime():!ie&&!le?$===z:!1},valueEquals=function($,z){const ie=isArray$c($),le=isArray$c(z);return ie&&le?$.length!==z.length?!1:$.every((ue,pe)=>dateEquals(ue,z[pe])):!ie&&!le?dateEquals($,z):!1},parseDate$1=function($,z,ie){const le=isEmpty(z)||z==="x"?dayjs($).locale(ie):dayjs($,z).locale(ie);return le.isValid()?le:void 0},formatter=function($,z,ie){return isEmpty(z)?$:z==="x"?+$:dayjs($).locale(ie).format(z)},makeList=($,z)=>{var ie;const le=[],ue=z==null?void 0:z();for(let pe=0;pe<$;pe++)le.push((ie=ue==null?void 0:ue.includes(pe))!=null?ie:!1);return le},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:ie}){const le=$,{lang:ue}=useLocale(),pe=useNamespace("date"),_e=useNamespace("input"),Ce=useNamespace("range"),{form:$e,formItem:xe}=useFormItem(),Ie=inject("ElPopperOptions",{}),ze=ref(),Ue=ref(),qe=ref(!1),Et=ref(!1),Lt=ref(null);let hn=!1,vn=!1;watch(qe,Qn=>{Qn?nextTick(()=>{Qn&&(Lt.value=le.modelValue)}):(ir.value=null,nextTick(()=>{_n(le.modelValue)}))});const _n=(Qn,ar)=>{(ar||!valueEquals(Qn,Lt.value))&&(ie("change",Qn),le.validateEvent&&(xe==null||xe.validate("change").catch($r=>void 0)))},bn=Qn=>{if(!valueEquals(le.modelValue,Qn)){let ar;isArray$c(Qn)?ar=Qn.map($r=>formatter($r,le.valueFormat,ue.value)):Qn&&(ar=formatter(Qn,le.valueFormat,ue.value)),ie("update:modelValue",Qn&&ar,ue.value)}},Sn=Qn=>{ie("keydown",Qn)},Cn=computed(()=>{if(Ue.value){const Qn=Xn.value?Ue.value:Ue.value.$el;return Array.from(Qn.querySelectorAll("input"))}return[]}),En=(Qn,ar,$r)=>{const Ir=Cn.value;Ir.length&&(!$r||$r==="min"?(Ir[0].setSelectionRange(Qn,ar),Ir[0].focus()):$r==="max"&&(Ir[1].setSelectionRange(Qn,ar),Ir[1].focus()))},$n=()=>{Fn(!0,!0),nextTick(()=>{vn=!1})},wn=(Qn="",ar=!1)=>{ar||(vn=!0),qe.value=ar;let $r;isArray$c(Qn)?$r=Qn.map(Ir=>Ir.toDate()):$r=Qn&&Qn.toDate(),ir.value=null,bn($r)},Tn=()=>{Et.value=!0},xn=()=>{ie("visible-change",!0)},Pn=Qn=>{(Qn==null?void 0:Qn.key)===EVENT_CODE.esc&&Fn(!0,!0)},kn=()=>{Et.value=!1,qe.value=!1,vn=!1,ie("visible-change",!1)},An=()=>{qe.value=!0},Nn=()=>{qe.value=!1},Fn=(Qn=!0,ar=!1)=>{vn=ar;const[$r,Ir]=unref(Cn);let Hr=$r;!Qn&&Xn.value&&(Hr=Ir),Hr&&Hr.focus()},Ln=Qn=>{le.readonly||Mn.value||qe.value||vn||(qe.value=!0,ie("focus",Qn))};let In;const Vn=Qn=>{const ar=async()=>{setTimeout(()=>{var $r;In===ar&&(!(($r=ze.value)!=null&&$r.isFocusInsideContent()&&!hn)&&Cn.value.filter(Ir=>Ir.contains(document.activeElement)).length===0&&(Pr(),qe.value=!1,ie("blur",Qn),le.validateEvent&&(xe==null||xe.validate("blur").catch(Ir=>void 0))),hn=!1)},0)};In=ar,ar()},Mn=computed(()=>le.disabled||($e==null?void 0:$e.disabled)),zn=computed(()=>{let Qn;if(Kn.value?Rr.value.getDefaultValue&&(Qn=Rr.value.getDefaultValue()):isArray$c(le.modelValue)?Qn=le.modelValue.map(ar=>parseDate$1(ar,le.valueFormat,ue.value)):Qn=parseDate$1(le.modelValue,le.valueFormat,ue.value),Rr.value.getRangeAvailableTime){const ar=Rr.value.getRangeAvailableTime(Qn);isEqual$1(ar,Qn)||(Qn=ar,bn(isArray$c(Qn)?Qn.map($r=>$r.toDate()):Qn.toDate()))}return isArray$c(Qn)&&Qn.some(ar=>!ar)&&(Qn=[]),Qn}),qn=computed(()=>{if(!Rr.value.panelReady)return"";const Qn=kr(zn.value);return isArray$c(ir.value)?[ir.value[0]||Qn&&Qn[0]||"",ir.value[1]||Qn&&Qn[1]||""]:ir.value!==null?ir.value:!Jn.value&&Kn.value||!qe.value&&Kn.value?"":Qn?ur.value?Qn.join(", "):Qn:""}),Hn=computed(()=>le.type.includes("time")),Jn=computed(()=>le.type.startsWith("time")),ur=computed(()=>le.type==="dates"),yr=computed(()=>le.prefixIcon||(Hn.value?clock_default:calendar_default)),sr=ref(!1),Zn=Qn=>{le.readonly||Mn.value||sr.value&&(Qn.stopPropagation(),$n(),bn(null),_n(null,!0),sr.value=!1,qe.value=!1,Rr.value.handleClear&&Rr.value.handleClear())},Kn=computed(()=>{const{modelValue:Qn}=le;return!Qn||isArray$c(Qn)&&!Qn.filter(Boolean).length}),Wn=async Qn=>{var ar;le.readonly||Mn.value||(((ar=Qn.target)==null?void 0:ar.tagName)!=="INPUT"||Cn.value.includes(document.activeElement))&&(qe.value=!0)},nr=()=>{le.readonly||Mn.value||!Kn.value&&le.clearable&&(sr.value=!0)},fr=()=>{sr.value=!1},Gn=Qn=>{var ar;le.readonly||Mn.value||(((ar=Qn.touches[0].target)==null?void 0:ar.tagName)!=="INPUT"||Cn.value.includes(document.activeElement))&&(qe.value=!0)},Xn=computed(()=>le.type.includes("range")),or=useFormSize(),vr=computed(()=>{var Qn,ar;return(ar=(Qn=unref(ze))==null?void 0:Qn.popperRef)==null?void 0:ar.contentRef}),_r=computed(()=>{var Qn;return unref(Xn)?unref(Ue):(Qn=unref(Ue))==null?void 0:Qn.$el});onClickOutside(_r,Qn=>{const ar=unref(vr),$r=unref(_r);ar&&(Qn.target===ar||Qn.composedPath().includes(ar))||Qn.target===$r||Qn.composedPath().includes($r)||(qe.value=!1)});const ir=ref(null),Pr=()=>{if(ir.value){const Qn=gr(qn.value);Qn&&pr(Qn)&&(bn(isArray$c(Qn)?Qn.map(ar=>ar.toDate()):Qn.toDate()),ir.value=null)}ir.value===""&&(bn(null),_n(null),ir.value=null)},gr=Qn=>Qn?Rr.value.parseUserInput(Qn):null,kr=Qn=>Qn?Rr.value.formatToString(Qn):null,pr=Qn=>Rr.value.isValidValue(Qn),lr=async Qn=>{if(le.readonly||Mn.value)return;const{code:ar}=Qn;if(Sn(Qn),ar===EVENT_CODE.esc){qe.value===!0&&(qe.value=!1,Qn.preventDefault(),Qn.stopPropagation());return}if(ar===EVENT_CODE.down&&(Rr.value.handleFocusPicker&&(Qn.preventDefault(),Qn.stopPropagation()),qe.value===!1&&(qe.value=!0,await nextTick()),Rr.value.handleFocusPicker)){Rr.value.handleFocusPicker();return}if(ar===EVENT_CODE.tab){hn=!0;return}if(ar===EVENT_CODE.enter||ar===EVENT_CODE.numpadEnter){(ir.value===null||ir.value===""||pr(gr(qn.value)))&&(Pr(),qe.value=!1),Qn.stopPropagation();return}if(ir.value){Qn.stopPropagation();return}Rr.value.handleKeydownInput&&Rr.value.handleKeydownInput(Qn)},dr=Qn=>{ir.value=Qn,qe.value||(qe.value=!0)},hr=Qn=>{const ar=Qn.target;ir.value?ir.value=[ar.value,ir.value[1]]:ir.value=[ar.value,null]},Or=Qn=>{const ar=Qn.target;ir.value?ir.value=[ir.value[0],ar.value]:ir.value=[null,ar.value]},Lr=()=>{var Qn;const ar=ir.value,$r=gr(ar&&ar[0]),Ir=unref(zn);if($r&&$r.isValid()){ir.value=[kr($r),((Qn=qn.value)==null?void 0:Qn[1])||null];const Hr=[$r,Ir&&(Ir[1]||null)];pr(Hr)&&(bn(Hr),ir.value=null)}},Br=()=>{var Qn;const ar=unref(ir),$r=gr(ar&&ar[1]),Ir=unref(zn);if($r&&$r.isValid()){ir.value=[((Qn=unref(qn))==null?void 0:Qn[0])||null,kr($r)];const Hr=[Ir&&Ir[0],$r];pr(Hr)&&(bn(Hr),ir.value=null)}},Rr=ref({}),Sr=Qn=>{Rr.value[Qn[0]]=Qn[1],Rr.value.panelReady=!0},Er=Qn=>{ie("calendar-change",Qn)},cr=(Qn,ar,$r)=>{ie("panel-change",Qn,ar,$r)};return provide("EP_PICKER_BASE",{props:le}),z({focus:Fn,handleFocusInput:Ln,handleBlurInput:Vn,handleOpen:An,handleClose:Nn,onPick:wn}),(Qn,ar)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:ze,visible:qe.value,effect:"light",pure:"",trigger:"click"},Qn.$attrs,{role:"dialog",teleported:"",transition:`${unref(pe).namespace.value}-zoom-in-top`,"popper-class":[`${unref(pe).namespace.value}-picker__popper`,Qn.popperClass],"popper-options":unref(Ie),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:Tn,onShow:xn,onHide:kn}),{default:withCtx(()=>[unref(Xn)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:Ue,class:normalizeClass([unref(pe).b("editor"),unref(pe).bm("editor",Qn.type),unref(_e).e("wrapper"),unref(pe).is("disabled",unref(Mn)),unref(pe).is("active",qe.value),unref(Ce).b("editor"),unref(or)?unref(Ce).bm("editor",unref(or)):"",Qn.$attrs.class]),style:normalizeStyle$1(Qn.$attrs.style),onClick:Ln,onMouseenter:nr,onMouseleave:fr,onTouchstart:Gn,onKeydown:lr},[unref(yr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(_e).e("icon"),unref(Ce).e("icon")]),onMousedown:withModifiers(Wn,["prevent"]),onTouchstart:Gn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(yr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:Qn.id&&Qn.id[0],autocomplete:"off",name:Qn.name&&Qn.name[0],placeholder:Qn.startPlaceholder,value:unref(qn)&&unref(qn)[0],disabled:unref(Mn),readonly:!Qn.editable||Qn.readonly,class:normalizeClass(unref(Ce).b("input")),onMousedown:Wn,onInput:hr,onChange:Lr,onFocus:Ln,onBlur:Vn},null,42,_hoisted_1$_),renderSlot(Qn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(Ce).b("separator"))},toDisplayString$1(Qn.rangeSeparator),3)]),createBaseVNode("input",{id:Qn.id&&Qn.id[1],autocomplete:"off",name:Qn.name&&Qn.name[1],placeholder:Qn.endPlaceholder,value:unref(qn)&&unref(qn)[1],disabled:unref(Mn),readonly:!Qn.editable||Qn.readonly,class:normalizeClass(unref(Ce).b("input")),onMousedown:Wn,onFocus:Ln,onBlur:Vn,onInput:Or,onChange:Br},null,42,_hoisted_2$F),Qn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(_e).e("icon"),unref(Ce).e("close-icon"),{[unref(Ce).e("close-icon--hidden")]:!sr.value}]),onClick:Zn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Qn.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:Qn.id,ref_key:"inputRef",ref:Ue,"container-role":"combobox","model-value":unref(qn),name:Qn.name,size:unref(or),disabled:unref(Mn),placeholder:Qn.placeholder,class:normalizeClass([unref(pe).b("editor"),unref(pe).bm("editor",Qn.type),Qn.$attrs.class]),style:normalizeStyle$1(Qn.$attrs.style),readonly:!Qn.editable||Qn.readonly||unref(ur)||Qn.type==="week",label:Qn.label,tabindex:Qn.tabindex,"validate-event":!1,onInput:dr,onFocus:Ln,onBlur:Vn,onKeydown:lr,onChange:Pr,onMousedown:Wn,onMouseenter:nr,onMouseleave:fr,onTouchstart:Gn,onClick:ar[0]||(ar[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(yr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(_e).e("icon")),onMousedown:withModifiers(Wn,["prevent"]),onTouchstart:Gn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(yr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[sr.value&&Qn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(_e).e("icon")} clear-icon`),onClick:withModifiers(Zn,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Qn.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(Qn.$slots,"default",{visible:qe.value,actualVisible:Et.value,parsedValue:unref(zn),format:Qn.format,unlinkPanels:Qn.unlinkPanels,type:Qn.type,defaultValue:Qn.defaultValue,onPick:wn,onSelectRange:En,onSetPickerOption:Sr,onCalendarChange:Er,onPanelChange:cr,onKeydown:Pn,onMousedown:ar[1]||(ar[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:ie})=>{const le=(_e,Ce,$e,xe)=>{const Ie={hour:$,minute:z,second:ie};let ze=_e;return["hour","minute","second"].forEach(Ue=>{if(Ie[Ue]){let qe;const Et=Ie[Ue];switch(Ue){case"minute":{qe=Et(ze.hour(),Ce,xe);break}case"second":{qe=Et(ze.hour(),ze.minute(),Ce,xe);break}default:{qe=Et(Ce,xe);break}}if(qe!=null&&qe.length&&!qe.includes(ze[Ue]())){const Lt=$e?0:qe.length-1;ze=ze[Ue](qe[Lt])}}}),ze},ue={};return{timePickerOptions:ue,getAvailableTime:le,onSetOption:([_e,Ce])=>{ue[_e]=Ce}}},makeAvailableArr=$=>{const z=(le,ue)=>le||ue,ie=le=>le!==!0;return $.map(z).filter(ie)},getTimeLists=($,z,ie)=>({getHoursList:(_e,Ce)=>makeList(24,$&&(()=>$==null?void 0:$(_e,Ce))),getMinutesList:(_e,Ce,$e)=>makeList(60,z&&(()=>z==null?void 0:z(_e,Ce,$e))),getSecondsList:(_e,Ce,$e,xe)=>makeList(60,ie&&(()=>ie==null?void 0:ie(_e,Ce,$e,xe)))}),buildAvailableTimeSlotGetter=($,z,ie)=>{const{getHoursList:le,getMinutesList:ue,getSecondsList:pe}=getTimeLists($,z,ie);return{getAvailableHours:(xe,Ie)=>makeAvailableArr(le(xe,Ie)),getAvailableMinutes:(xe,Ie,ze)=>makeAvailableArr(ue(xe,Ie,ze)),getAvailableSeconds:(xe,Ie,ze,Ue)=>makeAvailableArr(pe(xe,Ie,ze,Ue))}},useOldValue=$=>{const z=ref($.parsedValue);return watch(()=>$.visible,ie=>{ie||(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:ie}of z)ie($,startClick)}));function createDocumentHandler($,z){let ie=[];return Array.isArray(z.arg)?ie=z.arg:isElement$2(z.arg)&&ie.push(z.arg),function(le,ue){const pe=z.instance.popperRef,_e=le.target,Ce=ue==null?void 0:ue.target,$e=!z||!z.instance,xe=!_e||!Ce,Ie=$.contains(_e)||$.contains(Ce),ze=$===_e,Ue=ie.length&&ie.some(Et=>Et==null?void 0:Et.contains(_e))||ie.length&&ie.includes(Ce),qe=pe&&(pe.contains(_e)||pe.contains(Ce));$e||xe||Ie||ze||Ue||qe||z.value(le,ue)}}const ClickOutside={beforeMount($,z){nodeList.has($)||nodeList.set($,[]),nodeList.get($).push({documentHandler:createDocumentHandler($,z),bindingFn:z.value})},updated($,z){nodeList.has($)||nodeList.set($,[]);const ie=nodeList.get($),le=ie.findIndex(pe=>pe.bindingFn===z.oldValue),ue={documentHandler:createDocumentHandler($,z),bindingFn:z.value};le>=0?ie.splice(le,1,ue):ie.push(ue)},unmounted($){nodeList.delete($)}},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount($,z){const ie=z.value,{interval:le=REPEAT_INTERVAL,delay:ue=REPEAT_DELAY}=isFunction$5(ie)?{}:ie;let pe,_e;const Ce=()=>isFunction$5(ie)?ie():ie.handler(),$e=()=>{_e&&(clearTimeout(_e),_e=void 0),pe&&(clearInterval(pe),pe=void 0)};$.addEventListener("mousedown",xe=>{xe.button===0&&($e(),Ce(),document.addEventListener("mouseup",()=>$e(),{once:!0}),_e=setTimeout(()=>{pe=setInterval(()=>{Ce()},le)},ue))})}},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 ie=$.shiftKey,le=$.target===z[0],ue=$.target===z[z.length-1];le&&ie&&($.preventDefault(),z[z.length-1].focus()),ue&&!ie&&($.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,l,p$1,m$3,w,D,x,E,M$1,F;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($),ie=/(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=/Mobile/i.exec($),D=!!/Win64/.exec($),z){o=z[1]?parseFloat(z[1]):z[5]?parseFloat(z[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var le=/(?:Trident\/(\d+.\d+))/.exec($);N=le?parseFloat(le[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(ie){if(ie[1]){var ue=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec($);l=ue?parseFloat(ue[1].replace("_",".")):!0}else l=!1;p$1=!!ie[2],m$3=!!ie[3]}else l=p$1=m$3=!1}}var _$2={ie:function(){return a$1()||o},ieCompatibilityMode:function(){return a$1()||N>o},ie64:function(){return _$2.ie()&&D},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},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;h$1.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S($,z){if(!h$1.canUseDOM||z&&!("addEventListener"in document))return!1;var ie="on"+$,le=ie in document;if(!le){var ue=document.createElement("div");ue.setAttribute(ie,"return;"),le=typeof ue[ie]=="function"}return!le&&X&&$==="wheel"&&(le=document.implementation.hasFeature("Events.wheel","3.0")),le}var b$1=S,O$1=10,I$1=40,P$2=800;function T($){var z=0,ie=0,le=0,ue=0;return"detail"in $&&(ie=$.detail),"wheelDelta"in $&&(ie=-$.wheelDelta/120),"wheelDeltaY"in $&&(ie=-$.wheelDeltaY/120),"wheelDeltaX"in $&&(z=-$.wheelDeltaX/120),"axis"in $&&$.axis===$.HORIZONTAL_AXIS&&(z=ie,ie=0),le=z*O$1,ue=ie*O$1,"deltaY"in $&&(ue=$.deltaY),"deltaX"in $&&(le=$.deltaX),(le||ue)&&$.deltaMode&&($.deltaMode==1?(le*=I$1,ue*=I$1):(le*=P$2,ue*=P$2)),le&&!z&&(z=le<1?-1:1),ue&&!ie&&(ie=ue<1?-1:1),{spinX:z,spinY:ie,pixelX:le,pixelY:ue}}T.getEventType=function(){return A.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y$1=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 ie=function(le){const ue=Y$1(le);z&&Reflect.apply(z,this,[le,ue])};$.addEventListener("wheel",ie,{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 ie=$,le=useNamespace("time"),{getHoursList:ue,getMinutesList:pe,getSecondsList:_e}=getTimeLists(ie.disabledHours,ie.disabledMinutes,ie.disabledSeconds);let Ce=!1;const $e=ref(),xe=ref(),Ie=ref(),ze=ref(),Ue={hours:xe,minutes:Ie,seconds:ze},qe=computed(()=>ie.showSeconds?timeUnits$2:timeUnits$2.slice(0,2)),Et=computed(()=>{const{spinnerDate:Mn}=ie,zn=Mn.hour(),qn=Mn.minute(),Hn=Mn.second();return{hours:zn,minutes:qn,seconds:Hn}}),Lt=computed(()=>{const{hours:Mn,minutes:zn}=unref(Et);return{hours:ue(ie.role),minutes:pe(Mn,ie.role),seconds:_e(Mn,zn,ie.role)}}),hn=computed(()=>{const{hours:Mn,minutes:zn,seconds:qn}=unref(Et);return{hours:buildTimeList(Mn,23),minutes:buildTimeList(zn,59),seconds:buildTimeList(qn,59)}}),vn=debounce(Mn=>{Ce=!1,Sn(Mn)},200),_n=Mn=>{if(!!!ie.amPmMode)return"";const qn=ie.amPmMode==="A";let Hn=Mn<12?" am":" pm";return qn&&(Hn=Hn.toUpperCase()),Hn},bn=Mn=>{let zn;switch(Mn){case"hours":zn=[0,2];break;case"minutes":zn=[3,5];break;case"seconds":zn=[6,8];break}const[qn,Hn]=zn;z("select-range",qn,Hn),$e.value=Mn},Sn=Mn=>{$n(Mn,unref(Et)[Mn])},Cn=()=>{Sn("hours"),Sn("minutes"),Sn("seconds")},En=Mn=>Mn.querySelector(`.${le.namespace.value}-scrollbar__wrap`),$n=(Mn,zn)=>{if(ie.arrowControl)return;const qn=unref(Ue[Mn]);qn&&qn.$el&&(En(qn.$el).scrollTop=Math.max(0,zn*wn(Mn)))},wn=Mn=>{const zn=unref(Ue[Mn]);return(zn==null?void 0:zn.$el.querySelector("li").offsetHeight)||0},Tn=()=>{Pn(1)},xn=()=>{Pn(-1)},Pn=Mn=>{$e.value||bn("hours");const zn=$e.value,qn=unref(Et)[zn],Hn=$e.value==="hours"?24:60,Jn=kn(zn,qn,Mn,Hn);An(zn,Jn),$n(zn,Jn),nextTick(()=>bn(zn))},kn=(Mn,zn,qn,Hn)=>{let Jn=(zn+qn+Hn)%Hn;const ur=unref(Lt)[Mn];for(;ur[Jn]&&Jn!==zn;)Jn=(Jn+qn+Hn)%Hn;return Jn},An=(Mn,zn)=>{if(unref(Lt)[Mn][zn])return;const{hours:Jn,minutes:ur,seconds:yr}=unref(Et);let sr;switch(Mn){case"hours":sr=ie.spinnerDate.hour(zn).minute(ur).second(yr);break;case"minutes":sr=ie.spinnerDate.hour(Jn).minute(zn).second(yr);break;case"seconds":sr=ie.spinnerDate.hour(Jn).minute(ur).second(zn);break}z("change",sr)},Nn=(Mn,{value:zn,disabled:qn})=>{qn||(An(Mn,zn),bn(Mn),$n(Mn,zn))},Fn=Mn=>{Ce=!0,vn(Mn);const zn=Math.min(Math.round((En(unref(Ue[Mn]).$el).scrollTop-(Ln(Mn)*.5-10)/wn(Mn)+3)/wn(Mn)),Mn==="hours"?23:59);An(Mn,zn)},Ln=Mn=>unref(Ue[Mn]).$el.offsetHeight,In=()=>{const Mn=zn=>{const qn=unref(Ue[zn]);qn&&qn.$el&&(En(qn.$el).onscroll=()=>{Fn(zn)})};Mn("hours"),Mn("minutes"),Mn("seconds")};onMounted(()=>{nextTick(()=>{!ie.arrowControl&&In(),Cn(),ie.role==="start"&&bn("hours")})});const Vn=(Mn,zn)=>{Ue[zn].value=Mn};return z("set-option",[`${ie.role}_scrollDown`,Pn]),z("set-option",[`${ie.role}_emitSelectRange`,bn]),watch(()=>ie.spinnerDate,()=>{Ce||Cn()}),(Mn,zn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b("spinner"),{"has-seconds":Mn.showSeconds}])},[Mn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(qe),qn=>(openBlock(),createBlock(unref(ElScrollbar),{key:qn,ref_for:!0,ref:Hn=>Vn(Hn,qn),class:normalizeClass(unref(le).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(le).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Hn=>bn(qn),onMousemove:Hn=>Sn(qn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Lt)[qn],(Hn,Jn)=>(openBlock(),createElementBlock("li",{key:Jn,class:normalizeClass([unref(le).be("spinner","item"),unref(le).is("active",Jn===unref(Et)[qn]),unref(le).is("disabled",Hn)]),onClick:ur=>Nn(qn,{value:Jn,disabled:Hn})},[qn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Mn.amPmMode?Jn%12||12:Jn)).slice(-2))+toDisplayString$1(_n(Jn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Jn).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(qe),qn=>(openBlock(),createElementBlock("div",{key:qn,class:normalizeClass([unref(le).be("spinner","wrapper"),unref(le).is("arrow")]),onMouseenter:Hn=>bn(qn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(le).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),xn]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(le).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),Tn]]),createBaseVNode("ul",{class:normalizeClass(unref(le).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(hn)[qn],(Hn,Jn)=>(openBlock(),createElementBlock("li",{key:Jn,class:normalizeClass([unref(le).be("spinner","item"),unref(le).is("active",Hn===unref(Et)[qn]),unref(le).is("disabled",unref(Lt)[qn][Hn])])},[typeof Hn=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[qn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Mn.amPmMode?Hn%12||12:Hn)).slice(-2))+toDisplayString$1(_n(Hn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Hn).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 ie=$,le=inject("EP_PICKER_BASE"),{arrowControl:ue,disabledHours:pe,disabledMinutes:_e,disabledSeconds:Ce,defaultValue:$e}=le.props,{getAvailableHours:xe,getAvailableMinutes:Ie,getAvailableSeconds:ze}=buildAvailableTimeSlotGetter(pe,_e,Ce),Ue=useNamespace("time"),{t:qe,lang:Et}=useLocale(),Lt=ref([0,2]),hn=useOldValue(ie),vn=computed(()=>isUndefined$1(ie.actualVisible)?`${Ue.namespace.value}-zoom-in-top`:""),_n=computed(()=>ie.format.includes("ss")),bn=computed(()=>ie.format.includes("A")?"A":ie.format.includes("a")?"a":""),Sn=Vn=>{const Mn=dayjs(Vn).locale(Et.value),zn=Nn(Mn);return Mn.isSame(zn)},Cn=()=>{z("pick",hn.value,!1)},En=(Vn=!1,Mn=!1)=>{Mn||z("pick",ie.parsedValue,Vn)},$n=Vn=>{if(!ie.visible)return;const Mn=Nn(Vn).millisecond(0);z("pick",Mn,!0)},wn=(Vn,Mn)=>{z("select-range",Vn,Mn),Lt.value=[Vn,Mn]},Tn=Vn=>{const Mn=[0,3].concat(_n.value?[6]:[]),zn=["hours","minutes"].concat(_n.value?["seconds"]:[]),Hn=(Mn.indexOf(Lt.value[0])+Vn+Mn.length)%Mn.length;Pn.start_emitSelectRange(zn[Hn])},xn=Vn=>{const Mn=Vn.code,{left:zn,right:qn,up:Hn,down:Jn}=EVENT_CODE;if([zn,qn].includes(Mn)){Tn(Mn===zn?-1:1),Vn.preventDefault();return}if([Hn,Jn].includes(Mn)){const ur=Mn===Hn?-1:1;Pn.start_scrollDown(ur),Vn.preventDefault();return}},{timePickerOptions:Pn,onSetOption:kn,getAvailableTime:An}=useTimePanel({getAvailableHours:xe,getAvailableMinutes:Ie,getAvailableSeconds:ze}),Nn=Vn=>An(Vn,ie.datetimeRole||"",!0),Fn=Vn=>Vn?dayjs(Vn,ie.format).locale(Et.value):null,Ln=Vn=>Vn?Vn.format(ie.format):null,In=()=>dayjs($e).locale(Et.value);return z("set-picker-option",["isValidValue",Sn]),z("set-picker-option",["formatToString",Ln]),z("set-picker-option",["parseUserInput",Fn]),z("set-picker-option",["handleKeydownInput",xn]),z("set-picker-option",["getRangeAvailableTime",Nn]),z("set-picker-option",["getDefaultValue",In]),(Vn,Mn)=>(openBlock(),createBlock(Transition,{name:unref(vn)},{default:withCtx(()=>[Vn.actualVisible||Vn.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ue).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(Ue).be("panel","content"),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Vn.datetimeRole||"start","arrow-control":unref(ue),"show-seconds":unref(_n),"am-pm-mode":unref(bn),"spinner-date":Vn.parsedValue,"disabled-hours":unref(pe),"disabled-minutes":unref(_e),"disabled-seconds":unref(Ce),onChange:$n,onSetOption:unref(kn),onSelectRange:wn},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(Ue).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ue).be("panel","btn"),"cancel"]),onClick:Cn},toDisplayString$1(unref(qe)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ue).be("panel","btn"),"confirm"]),onClick:Mn[0]||(Mn[0]=zn=>En())},toDisplayString$1(unref(qe)("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 ie=$,le=(Wn,nr)=>{const fr=[];for(let Gn=Wn;Gn<=nr;Gn++)fr.push(Gn);return fr},{t:ue,lang:pe}=useLocale(),_e=useNamespace("time"),Ce=useNamespace("picker"),$e=inject("EP_PICKER_BASE"),{arrowControl:xe,disabledHours:Ie,disabledMinutes:ze,disabledSeconds:Ue,defaultValue:qe}=$e.props,Et=computed(()=>ie.parsedValue[0]),Lt=computed(()=>ie.parsedValue[1]),hn=useOldValue(ie),vn=()=>{z("pick",hn.value,!1)},_n=computed(()=>ie.format.includes("ss")),bn=computed(()=>ie.format.includes("A")?"A":ie.format.includes("a")?"a":""),Sn=(Wn=!1)=>{z("pick",[Et.value,Lt.value],Wn)},Cn=Wn=>{wn(Wn.millisecond(0),Lt.value)},En=Wn=>{wn(Et.value,Wn.millisecond(0))},$n=Wn=>{const nr=Wn.map(Gn=>dayjs(Gn).locale(pe.value)),fr=Mn(nr);return nr[0].isSame(fr[0])&&nr[1].isSame(fr[1])},wn=(Wn,nr)=>{z("pick",[Wn,nr],!0)},Tn=computed(()=>Et.value>Lt.value),xn=ref([0,2]),Pn=(Wn,nr)=>{z("select-range",Wn,nr,"min"),xn.value=[Wn,nr]},kn=computed(()=>_n.value?11:8),An=(Wn,nr)=>{z("select-range",Wn,nr,"max");const fr=unref(kn);xn.value=[Wn+fr,nr+fr]},Nn=Wn=>{const nr=_n.value?[0,3,6,11,14,17]:[0,3,8,11],fr=["hours","minutes"].concat(_n.value?["seconds"]:[]),Xn=(nr.indexOf(xn.value[0])+Wn+nr.length)%nr.length,or=nr.length/2;Xn<or?Jn.start_emitSelectRange(fr[Xn]):Jn.end_emitSelectRange(fr[Xn-or])},Fn=Wn=>{const nr=Wn.code,{left:fr,right:Gn,up:Xn,down:or}=EVENT_CODE;if([fr,Gn].includes(nr)){Nn(nr===fr?-1:1),Wn.preventDefault();return}if([Xn,or].includes(nr)){const vr=nr===Xn?-1:1,_r=xn.value[0]<kn.value?"start":"end";Jn[`${_r}_scrollDown`](vr),Wn.preventDefault();return}},Ln=(Wn,nr)=>{const fr=Ie?Ie(Wn):[],Gn=Wn==="start",or=(nr||(Gn?Lt.value:Et.value)).hour(),vr=Gn?le(or+1,23):le(0,or-1);return union$1(fr,vr)},In=(Wn,nr,fr)=>{const Gn=ze?ze(Wn,nr):[],Xn=nr==="start",or=fr||(Xn?Lt.value:Et.value),vr=or.hour();if(Wn!==vr)return Gn;const _r=or.minute(),ir=Xn?le(_r+1,59):le(0,_r-1);return union$1(Gn,ir)},Vn=(Wn,nr,fr,Gn)=>{const Xn=Ue?Ue(Wn,nr,fr):[],or=fr==="start",vr=Gn||(or?Lt.value:Et.value),_r=vr.hour(),ir=vr.minute();if(Wn!==_r||nr!==ir)return Xn;const Pr=vr.second(),gr=or?le(Pr+1,59):le(0,Pr-1);return union$1(Xn,gr)},Mn=([Wn,nr])=>[ur(Wn,"start",!0,nr),ur(nr,"end",!1,Wn)],{getAvailableHours:zn,getAvailableMinutes:qn,getAvailableSeconds:Hn}=buildAvailableTimeSlotGetter(Ln,In,Vn),{timePickerOptions:Jn,getAvailableTime:ur,onSetOption:yr}=useTimePanel({getAvailableHours:zn,getAvailableMinutes:qn,getAvailableSeconds:Hn}),sr=Wn=>Wn?isArray$c(Wn)?Wn.map(nr=>dayjs(nr,ie.format).locale(pe.value)):dayjs(Wn,ie.format).locale(pe.value):null,Zn=Wn=>Wn?isArray$c(Wn)?Wn.map(nr=>nr.format(ie.format)):Wn.format(ie.format):null,Kn=()=>{if(isArray$c(qe))return qe.map(nr=>dayjs(nr).locale(pe.value));const Wn=dayjs(qe).locale(pe.value);return[Wn,Wn.add(60,"m")]};return z("set-picker-option",["formatToString",Zn]),z("set-picker-option",["parseUserInput",sr]),z("set-picker-option",["isValidValue",$n]),z("set-picker-option",["handleKeydownInput",Fn]),z("set-picker-option",["getDefaultValue",Kn]),z("set-picker-option",["getRangeAvailableTime",Mn]),(Wn,nr)=>Wn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(_e).b("range-picker"),unref(Ce).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","header"))},toDisplayString$1(unref(ue)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass([unref(_e).be("range-picker","body"),unref(_e).be("panel","content"),unref(_e).is("arrow",unref(xe)),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(_n),"am-pm-mode":unref(bn),"arrow-control":unref(xe),"spinner-date":unref(Et),"disabled-hours":Ln,"disabled-minutes":In,"disabled-seconds":Vn,onChange:Cn,onSetOption:unref(yr),onSelectRange:Pn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","header"))},toDisplayString$1(unref(ue)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass([unref(_e).be("range-picker","body"),unref(_e).be("panel","content"),unref(_e).is("arrow",unref(xe)),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(_n),"am-pm-mode":unref(bn),"arrow-control":unref(xe),"spinner-date":unref(Lt),"disabled-hours":Ln,"disabled-minutes":In,"disabled-seconds":Vn,onChange:En,onSetOption:unref(yr),onSelectRange:An},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(_e).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(_e).be("panel","btn"),"cancel"]),onClick:nr[0]||(nr[0]=fr=>vn())},toDisplayString$1(unref(ue)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_e).be("panel","btn"),"confirm"]),disabled:unref(Tn),onClick:nr[1]||(nr[1]=fr=>Sn())},toDisplayString$1(unref(ue)("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 ie=ref(),[le,ue]=$.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],pe=_e=>z.emit("update:modelValue",_e);return provide("ElPopperOptions",$.popperOptions),z.expose({focus:_e=>{var Ce;(Ce=ie.value)==null||Ce.handleFocusInput(_e)},blur:_e=>{var Ce;(Ce=ie.value)==null||Ce.handleBlurInput(_e)},handleOpen:()=>{var _e;(_e=ie.value)==null||_e.handleOpen()},handleClose:()=>{var _e;(_e=ie.value)==null||_e.handleClose()}}),()=>{var _e;const Ce=(_e=$.format)!=null?_e:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps($,{ref:ie,type:le,format:Ce,"onUpdate:modelValue":pe}),{default:$e=>createVNode(ue,$e,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=$=>{$.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=($,z)=>{const ie=$.subtract(1,"month").endOf("month").date();return rangeArr(z).map((le,ue)=>ie-(z-ue-1))},getMonthDays=$=>{const z=$.daysInMonth();return rangeArr(z).map((ie,le)=>le+1)},toNestedArr=$=>rangeArr($.length/7).map(z=>{const ie=z*7;return $.slice(ie,ie+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(ie,le){$.exports=le()})(commonjsGlobal,function(){return function(ie,le,ue){var pe=le.prototype,_e=function(ze){return ze&&(ze.indexOf?ze:ze.s)},Ce=function(ze,Ue,qe,Et,Lt){var hn=ze.name?ze:ze.$locale(),vn=_e(hn[Ue]),_n=_e(hn[qe]),bn=vn||_n.map(function(Cn){return Cn.slice(0,Et)});if(!Lt)return bn;var Sn=hn.weekStart;return bn.map(function(Cn,En){return bn[(En+(Sn||0))%7]})},$e=function(){return ue.Ls[ue.locale()]},xe=function(ze,Ue){return ze.formats[Ue]||function(qe){return qe.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Et,Lt,hn){return Lt||hn.slice(1)})}(ze.formats[Ue.toUpperCase()])},Ie=function(){var ze=this;return{months:function(Ue){return Ue?Ue.format("MMMM"):Ce(ze,"months")},monthsShort:function(Ue){return Ue?Ue.format("MMM"):Ce(ze,"monthsShort","months",3)},firstDayOfWeek:function(){return ze.$locale().weekStart||0},weekdays:function(Ue){return Ue?Ue.format("dddd"):Ce(ze,"weekdays")},weekdaysMin:function(Ue){return Ue?Ue.format("dd"):Ce(ze,"weekdaysMin","weekdays",2)},weekdaysShort:function(Ue){return Ue?Ue.format("ddd"):Ce(ze,"weekdaysShort","weekdays",3)},longDateFormat:function(Ue){return xe(ze.$locale(),Ue)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};pe.localeData=function(){return Ie.bind(this)()},ue.localeData=function(){var ze=$e();return{firstDayOfWeek:function(){return ze.weekStart||0},weekdays:function(){return ue.weekdays()},weekdaysShort:function(){return ue.weekdaysShort()},weekdaysMin:function(){return ue.weekdaysMin()},months:function(){return ue.months()},monthsShort:function(){return ue.monthsShort()},longDateFormat:function(Ue){return xe(ze,Ue)},meridiem:ze.meridiem,ordinal:ze.ordinal}},ue.months=function(){return Ce($e(),"months")},ue.monthsShort=function(){return Ce($e(),"monthsShort","months",3)},ue.weekdays=function(ze){return Ce($e(),"weekdays",null,null,ze)},ue.weekdaysShort=function(ze){return Ce($e(),"weekdaysShort","weekdays",3,ze)},ue.weekdaysMin=function(ze){return Ce($e(),"weekdaysMin","weekdays",2,ze)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),useDateTable=($,z)=>{dayjs.extend(localeData);const ie=dayjs.localeData().firstDayOfWeek(),{t:le,lang:ue}=useLocale(),pe=dayjs().locale(ue.value),_e=computed(()=>!!$.range&&!!$.range.length),Ce=computed(()=>{let Ue=[];if(_e.value){const[qe,Et]=$.range,Lt=rangeArr(Et.date()-qe.date()+1).map(_n=>({text:qe.date()+_n,type:"current"}));let hn=Lt.length%7;hn=hn===0?0:7-hn;const vn=rangeArr(hn).map((_n,bn)=>({text:bn+1,type:"next"}));Ue=Lt.concat(vn)}else{const qe=$.date.startOf("month").day(),Et=getPrevMonthLastDays($.date,(qe-ie+7)%7).map(_n=>({text:_n,type:"prev"})),Lt=getMonthDays($.date).map(_n=>({text:_n,type:"current"}));Ue=[...Et,...Lt];const hn=7-(Ue.length%7||7),vn=rangeArr(hn).map((_n,bn)=>({text:bn+1,type:"next"}));Ue=Ue.concat(vn)}return toNestedArr(Ue)}),$e=computed(()=>{const Ue=ie;return Ue===0?WEEK_DAYS.map(qe=>le(`el.datepicker.weeks.${qe}`)):WEEK_DAYS.slice(Ue).concat(WEEK_DAYS.slice(0,Ue)).map(qe=>le(`el.datepicker.weeks.${qe}`))}),xe=(Ue,qe)=>{switch(qe){case"prev":return $.date.startOf("month").subtract(1,"month").date(Ue);case"next":return $.date.startOf("month").add(1,"month").date(Ue);case"current":return $.date.date(Ue)}};return{now:pe,isInRange:_e,rows:Ce,weekDays:$e,getFormattedDate:xe,handlePickDay:({text:Ue,type:qe})=>{const Et=xe(Ue,qe);z("pick",Et)},getSlotData:({text:Ue,type:qe})=>{const Et=xe(Ue,qe);return{isSelected:Et.isSame($.selectedDay),type:`${qe}-month`,day:Et.format("YYYY-MM-DD"),date:Et.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:ie}){const le=$,{isInRange:ue,now:pe,rows:_e,weekDays:Ce,getFormattedDate:$e,handlePickDay:xe,getSlotData:Ie}=useDateTable(le,ie),ze=useNamespace("calendar-table"),Ue=useNamespace("calendar-day"),qe=({text:Et,type:Lt})=>{const hn=[Lt];if(Lt==="current"){const vn=$e(Et,Lt);vn.isSame(le.selectedDay,"day")&&hn.push(Ue.is("selected")),vn.isSame(pe,"day")&&hn.push(Ue.is("today"))}return hn};return z({getFormattedDate:$e}),(Et,Lt)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(ze).b(),unref(ze).is("range",unref(ue))]),cellspacing:"0",cellpadding:"0"},[Et.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$X,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ce),hn=>(openBlock(),createElementBlock("th",{key:hn},toDisplayString$1(hn),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),(hn,vn)=>(openBlock(),createElementBlock("tr",{key:vn,class:normalizeClass({[unref(ze).e("row")]:!0,[unref(ze).em("row","hide-border")]:vn===0&&Et.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(hn,(_n,bn)=>(openBlock(),createElementBlock("td",{key:bn,class:normalizeClass(qe(_n)),onClick:Sn=>unref(xe)(_n)},[createBaseVNode("div",{class:normalizeClass(unref(Ue).b())},[renderSlot(Et.$slots,"date-cell",{data:unref(Ie)(_n)},()=>[createBaseVNode("span",null,toDisplayString$1(_n.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 ie=$.endOf("month"),le=z.startOf("month"),pe=ie.isSame(le,"week")?le.add(1,"week"):le;return[[$,ie],[pe.startOf("week"),z]]},threeConsecutiveMonth=($,z)=>{const ie=$.endOf("month"),le=$.add(1,"month").startOf("month"),ue=ie.isSame(le,"week")?le.add(1,"week"):le,pe=ue.endOf("month"),_e=z.startOf("month"),Ce=pe.isSame(_e,"week")?_e.add(1,"week"):_e;return[[$,ie],[ue.startOf("week"),pe],[Ce.startOf("week"),z]]},useCalendar=($,z,ie)=>{const le=useSlots(),{lang:ue}=useLocale(),pe=ref(),_e=dayjs().locale(ue.value),Ce=computed({get(){return $.modelValue?xe.value:pe.value},set(vn){if(!vn)return;pe.value=vn;const _n=vn.toDate();z(INPUT_EVENT,_n),z(UPDATE_MODEL_EVENT,_n)}}),$e=computed(()=>{if(!$.range)return[];const vn=$.range.map(Sn=>dayjs(Sn).locale(ue.value)),[_n,bn]=vn;return _n.isAfter(bn)?[]:_n.isSame(bn,"month")?Et(_n,bn):_n.add(1,"month").month()!==bn.month()?[]:Et(_n,bn)}),xe=computed(()=>$.modelValue?dayjs($.modelValue).locale(ue.value):Ce.value||($e.value.length?$e.value[0][0]:_e)),Ie=computed(()=>xe.value.subtract(1,"month").date(1)),ze=computed(()=>xe.value.add(1,"month").date(1)),Ue=computed(()=>xe.value.subtract(1,"year").date(1)),qe=computed(()=>xe.value.add(1,"year").date(1)),Et=(vn,_n)=>{const bn=vn.startOf("week"),Sn=_n.endOf("week"),Cn=bn.get("month"),En=Sn.get("month");return Cn===En?[[bn,Sn]]:(Cn+1)%12===En?adjacentMonth(bn,Sn):Cn+2===En||(Cn+1)%11===En?threeConsecutiveMonth(bn,Sn):[]},Lt=vn=>{Ce.value=vn},hn=vn=>{const bn={"prev-month":Ie.value,"next-month":ze.value,"prev-year":Ue.value,"next-year":qe.value,today:_e}[vn];bn.isSame(xe.value,"day")||Lt(bn)};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(()=>!!le.dateCell)),{calculateValidatedDateRange:Et,date:xe,realSelectedDay:Ce,pickDay:Lt,selectDate:hn,validatedRange:$e}},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:ie}){const le=$,ue=useNamespace("calendar"),{calculateValidatedDateRange:pe,date:_e,pickDay:Ce,realSelectedDay:$e,selectDate:xe,validatedRange:Ie}=useCalendar(le,ie),{t:ze}=useLocale(),Ue=computed(()=>{const qe=`el.datepicker.month${_e.value.format("M")}`;return`${_e.value.year()} ${ze("el.datepicker.year")} ${ze(qe)}`});return z({selectedDay:$e,pickDay:Ce,selectDate:xe,calculateValidatedDateRange:pe}),(qe,Et)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue).b())},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("header"))},[renderSlot(qe.$slots,"header",{date:unref(Ue)},()=>[createBaseVNode("div",{class:normalizeClass(unref(ue).e("title"))},toDisplayString$1(unref(Ue)),3),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:Et[0]||(Et[0]=Lt=>unref(xe)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ze)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Et[1]||(Et[1]=Lt=>unref(xe)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ze)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Et[2]||(Et[2]=Lt=>unref(xe)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ze)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("body"))},[createVNode(DateTable$1,{date:unref(_e),"selected-day":unref($e),onPick:unref(Ce)},createSlots({_:2},[qe.$slots["date-cell"]||qe.$slots.dateCell?{name:"date-cell",fn:withCtx(Lt=>[qe.$slots["date-cell"]?renderSlot(qe.$slots,"date-cell",normalizeProps(mergeProps({key:0},Lt))):renderSlot(qe.$slots,"dateCell",normalizeProps(mergeProps({key:1},Lt)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ue).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(Lt,hn)=>(openBlock(),createBlock(DateTable$1,{key:hn,date:Lt[0],"selected-day":unref($e),range:Lt,"hide-header":hn!==0,onPick:unref(Ce)},createSlots({_:2},[qe.$slots["date-cell"]||qe.$slots.dateCell?{name:"date-cell",fn:withCtx(vn=>[qe.$slots["date-cell"]?renderSlot(qe.$slots,"date-cell",normalizeProps(mergeProps({key:0},vn))):renderSlot(qe.$slots,"dateCell",normalizeProps(mergeProps({key:1},vn)))])}: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(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(z).b(),unref(z).is(`${ie.shadow}-shadow`)])},[ie.$slots.header||ie.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(z).e("header"))},[renderSlot(ie.$slots,"header",{},()=>[createTextVNode(toDisplayString$1(ie.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(z).e("body")),style:normalizeStyle$1(ie.bodyStyle)},[renderSlot(ie.$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,ie)=>{const{children:le,addChild:ue,removeChild:pe}=useOrderedChildren(getCurrentInstance(),"ElCarouselItem"),_e=ref(-1),Ce=ref(null),$e=ref(!1),xe=ref(),Ie=ref(0),ze=computed(()=>$.arrow!=="never"&&!unref(Et)),Ue=computed(()=>le.value.some(Mn=>Mn.props.label.toString().length>0)),qe=computed(()=>$.type==="card"),Et=computed(()=>$.direction==="vertical"),Lt=computed(()=>$.height!=="auto"?{height:$.height}:{height:`${Ie.value}px`,overflow:"hidden"}),hn=throttle$1(Mn=>{Cn(Mn)},THROTTLE_TIME,{trailing:!0}),vn=throttle$1(Mn=>{An(Mn)},THROTTLE_TIME);function _n(){Ce.value&&(clearInterval(Ce.value),Ce.value=null)}function bn(){$.interval<=0||!$.autoplay||Ce.value||(Ce.value=setInterval(()=>Sn(),$.interval))}const Sn=()=>{_e.value<le.value.length-1?_e.value=_e.value+1:$.loop&&(_e.value=0)};function Cn(Mn){if(isString$7(Mn)){const Hn=le.value.filter(Jn=>Jn.props.name===Mn);Hn.length>0&&(Mn=le.value.indexOf(Hn[0]))}if(Mn=Number(Mn),Number.isNaN(Mn)||Mn!==Math.floor(Mn))return;const zn=le.value.length,qn=_e.value;Mn<0?_e.value=$.loop?zn-1:0:Mn>=zn?_e.value=$.loop?0:zn-1:_e.value=Mn,qn===_e.value&&En(qn),Ln()}function En(Mn){le.value.forEach((zn,qn)=>{zn.translateItem(qn,_e.value,Mn)})}function $n(Mn,zn){var qn,Hn,Jn,ur;const yr=unref(le),sr=yr.length;if(sr===0||!Mn.states.inStage)return!1;const Zn=zn+1,Kn=zn-1,Wn=sr-1,nr=yr[Wn].states.active,fr=yr[0].states.active,Gn=(Hn=(qn=yr[Zn])==null?void 0:qn.states)==null?void 0:Hn.active,Xn=(ur=(Jn=yr[Kn])==null?void 0:Jn.states)==null?void 0:ur.active;return zn===Wn&&fr||Gn?"left":zn===0&&nr||Xn?"right":!1}function wn(){$e.value=!0,$.pauseOnHover&&_n()}function Tn(){$e.value=!1,bn()}function xn(Mn){unref(Et)||le.value.forEach((zn,qn)=>{Mn===$n(zn,qn)&&(zn.states.hover=!0)})}function Pn(){unref(Et)||le.value.forEach(Mn=>{Mn.states.hover=!1})}function kn(Mn){_e.value=Mn}function An(Mn){$.trigger==="hover"&&Mn!==_e.value&&(_e.value=Mn)}function Nn(){Cn(_e.value-1)}function Fn(){Cn(_e.value+1)}function Ln(){_n(),bn()}function In(Mn){$.height==="auto"&&(Ie.value=Mn)}watch(()=>_e.value,(Mn,zn)=>{En(zn),zn>-1&&z("change",Mn,zn)}),watch(()=>$.autoplay,Mn=>{Mn?bn():_n()}),watch(()=>$.loop,()=>{Cn(_e.value)}),watch(()=>$.interval,()=>{Ln()}),watch(()=>le.value,()=>{le.value.length>0&&Cn($.initialIndex)});const Vn=shallowRef();return onMounted(()=>{Vn.value=useResizeObserver(xe.value,()=>{En()}),bn()}),onBeforeUnmount(()=>{_n(),xe.value&&Vn.value&&Vn.value.stop()}),provide(carouselContextKey,{root:xe,isCardType:qe,isVertical:Et,items:le,loop:$.loop,addItem:ue,removeItem:pe,setActiveItem:Cn,setContainerHeight:In}),{root:xe,activeIndex:_e,arrowDisplay:ze,hasLabel:Ue,hover:$e,isCardType:qe,items:le,isVertical:Et,containerStyle:Lt,handleButtonEnter:xn,handleButtonLeave:Pn,handleIndicatorClick:kn,handleMouseEnter:wn,handleMouseLeave:Tn,setActiveItem:Cn,prev:Nn,next:Fn,throttledArrowClick:hn,throttledIndicatorHover:vn}},_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:ie}){const le=$,{root:ue,activeIndex:pe,arrowDisplay:_e,hasLabel:Ce,hover:$e,isCardType:xe,items:Ie,isVertical:ze,containerStyle:Ue,handleButtonEnter:qe,handleButtonLeave:Et,handleIndicatorClick:Lt,handleMouseEnter:hn,handleMouseLeave:vn,setActiveItem:_n,prev:bn,next:Sn,throttledArrowClick:Cn,throttledIndicatorHover:En}=useCarousel(le,ie),$n=useNamespace("carousel"),wn=computed(()=>{const xn=[$n.b(),$n.m(le.direction)];return unref(xe)&&xn.push($n.m("card")),xn}),Tn=computed(()=>{const xn=[$n.e("indicators"),$n.em("indicators",le.direction)];return unref(Ce)&&xn.push($n.em("indicators","labels")),le.indicatorPosition==="outside"&&xn.push($n.em("indicators","outside")),unref(ze)&&xn.push($n.em("indicators","right")),xn});return z({setActiveItem:_n,prev:bn,next:Sn}),(xn,Pn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:ue,class:normalizeClass(unref(wn)),onMouseenter:Pn[6]||(Pn[6]=withModifiers((...kn)=>unref(hn)&&unref(hn)(...kn),["stop"])),onMouseleave:Pn[7]||(Pn[7]=withModifiers((...kn)=>unref(vn)&&unref(vn)(...kn),["stop"]))},[createBaseVNode("div",{class:normalizeClass(unref($n).e("container")),style:normalizeStyle$1(unref(Ue))},[unref(_e)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref($n).e("arrow"),unref($n).em("arrow","left")]),onMouseenter:Pn[0]||(Pn[0]=kn=>unref(qe)("left")),onMouseleave:Pn[1]||(Pn[1]=(...kn)=>unref(Et)&&unref(Et)(...kn)),onClick:Pn[2]||(Pn[2]=withModifiers(kn=>unref(Cn)(unref(pe)-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],34),[[vShow,(xn.arrow==="always"||unref($e))&&(le.loop||unref(pe)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(_e)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref($n).e("arrow"),unref($n).em("arrow","right")]),onMouseenter:Pn[3]||(Pn[3]=kn=>unref(qe)("right")),onMouseleave:Pn[4]||(Pn[4]=(...kn)=>unref(Et)&&unref(Et)(...kn)),onClick:Pn[5]||(Pn[5]=withModifiers(kn=>unref(Cn)(unref(pe)+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],34),[[vShow,(xn.arrow==="always"||unref($e))&&(le.loop||unref(pe)<unref(Ie).length-1)]])]),_:1})):createCommentVNode("v-if",!0),renderSlot(xn.$slots,"default")],6),xn.indicatorPosition!=="none"?(openBlock(),createElementBlock("ul",{key:0,class:normalizeClass(unref(Tn))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(kn,An)=>(openBlock(),createElementBlock("li",{key:An,class:normalizeClass([unref($n).e("indicator"),unref($n).em("indicator",xn.direction),unref($n).is("active",An===unref(pe))]),onMouseenter:Nn=>unref(En)(An),onClick:withModifiers(Nn=>unref(Lt)(An),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref($n).e("button"))},[unref(Ce)?(openBlock(),createElementBlock("span",_hoisted_2$C,toDisplayString$1(kn.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 ie=inject(carouselContextKey),le=getCurrentInstance(),ue=.83,pe=ref(),_e=ref(!1),Ce=ref(0),$e=ref(1),xe=ref(!1),Ie=ref(!1),ze=ref(!1),Ue=ref(!1),{isCardType:qe,isVertical:Et}=ie;function Lt(Sn,Cn,En){const $n=En-1,wn=Cn-1,Tn=Cn+1,xn=En/2;return Cn===0&&Sn===$n?-1:Cn===$n&&Sn===0?En:Sn<wn&&Cn-Sn>=xn?En+1:Sn>Tn&&Sn-Cn>=xn?-2:Sn}function hn(Sn,Cn){var En,$n;const wn=unref(Et)?((En=ie.root.value)==null?void 0:En.offsetHeight)||0:(($n=ie.root.value)==null?void 0:$n.offsetWidth)||0;return ze.value?wn*((2-ue)*(Sn-Cn)+1)/4:Sn<Cn?-(1+ue)*wn/4:(3+ue)*wn/4}function vn(Sn,Cn,En){const $n=ie.root.value;return $n?((En?$n.offsetHeight:$n.offsetWidth)||0)*(Sn-Cn):0}const _n=(Sn,Cn,En)=>{var $n;const wn=unref(qe),Tn=($n=ie.items.value.length)!=null?$n:Number.NaN,xn=Sn===Cn;!wn&&!isUndefined$1(En)&&(Ue.value=xn||Sn===En),!xn&&Tn>2&&ie.loop&&(Sn=Lt(Sn,Cn,Tn));const Pn=unref(Et);xe.value=xn,wn?(ze.value=Math.round(Math.abs(Sn-Cn))<=1,Ce.value=hn(Sn,Cn),$e.value=unref(xe)?1:ue):Ce.value=vn(Sn,Cn,Pn),Ie.value=!0,xn&&pe.value&&ie.setContainerHeight(pe.value.offsetHeight)};function bn(){if(ie&&unref(qe)){const Sn=ie.items.value.findIndex(({uid:Cn})=>Cn===le.uid);ie.setActiveItem(Sn)}}return onMounted(()=>{ie.addItem({props:$,states:reactive({hover:_e,translate:Ce,scale:$e,active:xe,ready:Ie,inStage:ze,animating:Ue}),uid:le.uid,translateItem:_n})}),onUnmounted(()=>{ie.removeItem(le.uid)}),{carouselItemRef:pe,active:xe,animating:Ue,hover:_e,inStage:ze,isVertical:Et,translate:Ce,isCardType:qe,scale:$e,ready:Ie,handleItemClick:bn}},__default__$1b=defineComponent({name:"ElCarouselItem"}),_sfc_main$1P=defineComponent({...__default__$1b,props:carouselItemProps,setup($){const z=$,ie=useNamespace("carousel"),{carouselItemRef:le,active:ue,animating:pe,hover:_e,inStage:Ce,isVertical:$e,translate:xe,isCardType:Ie,scale:ze,ready:Ue,handleItemClick:qe}=useCarouselItem(z),Et=computed(()=>{const hn=`${`translate${unref($e)?"Y":"X"}`}(${unref(xe)}px)`,vn=`scale(${unref(ze)})`;return{transform:[hn,vn].join(" ")}});return(Lt,hn)=>withDirectives((openBlock(),createElementBlock("div",{ref_key:"carouselItemRef",ref:le,class:normalizeClass([unref(ie).e("item"),unref(ie).is("active",unref(ue)),unref(ie).is("in-stage",unref(Ce)),unref(ie).is("hover",unref(_e)),unref(ie).is("animating",unref(pe)),{[unref(ie).em("item","card")]:unref(Ie),[unref(ie).em("item","card-vertical")]:unref(Ie)&&unref($e)}]),style:normalizeStyle$1(unref(Et)),onClick:hn[0]||(hn[0]=(...vn)=>unref(qe)&&unref(qe)(...vn))},[unref(Ie)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("mask"))},null,2)),[[vShow,!unref(ue)]]):createCommentVNode("v-if",!0),renderSlot(Lt.$slots,"default")],6)),[[vShow,unref(Ue)]])}});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 ie=inject(checkboxGroupContextKey,void 0),le=computed(()=>{var pe,_e;const Ce=(pe=ie==null?void 0:ie.max)==null?void 0:pe.value,$e=(_e=ie==null?void 0:ie.min)==null?void 0:_e.value;return!isUndefined$1(Ce)&&$.value.length>=Ce&&!z.value||!isUndefined$1($e)&&$.value.length<=$e&&z.value});return{isDisabled:useFormDisabled(computed(()=>(ie==null?void 0:ie.disabled.value)||le.value)),isLimitDisabled:le}},useCheckboxEvent=($,{model:z,isLimitExceeded:ie,hasOwnLabel:le,isDisabled:ue,isLabeledByFormItem:pe})=>{const _e=inject(checkboxGroupContextKey,void 0),{formItem:Ce}=useFormItem(),{emit:$e}=getCurrentInstance();function xe(Et){var Lt,hn;return Et===$.trueLabel||Et===!0?(Lt=$.trueLabel)!=null?Lt:!0:(hn=$.falseLabel)!=null?hn:!1}function Ie(Et,Lt){$e("change",xe(Et),Lt)}function ze(Et){if(ie.value)return;const Lt=Et.target;$e("change",xe(Lt.checked),Et)}async function Ue(Et){ie.value||!le.value&&!ue.value&&pe.value&&(Et.composedPath().some(vn=>vn.tagName==="LABEL")||(z.value=xe([!1,$.falseLabel].includes(z.value)),await nextTick(),Ie(z.value,Et)))}const qe=computed(()=>(_e==null?void 0:_e.validateEvent)||$.validateEvent);return watch(()=>$.modelValue,()=>{qe.value&&(Ce==null||Ce.validate("change").catch(Et=>void 0))}),{handleChange:ze,onClickRoot:Ue}},useCheckboxModel=$=>{const z=ref(!1),{emit:ie}=getCurrentInstance(),le=inject(checkboxGroupContextKey,void 0),ue=computed(()=>isUndefined$1(le)===!1),pe=ref(!1);return{model:computed({get(){var Ce,$e;return ue.value?(Ce=le==null?void 0:le.modelValue)==null?void 0:Ce.value:($e=$.modelValue)!=null?$e:z.value},set(Ce){var $e,xe;ue.value&&isArray$c(Ce)?(pe.value=(($e=le==null?void 0:le.max)==null?void 0:$e.value)!==void 0&&Ce.length>(le==null?void 0:le.max.value),pe.value===!1&&((xe=le==null?void 0:le.changeEvent)==null||xe.call(le,Ce))):(ie(UPDATE_MODEL_EVENT,Ce),z.value=Ce)}}),isGroup:ue,isLimitExceeded:pe}},useCheckboxStatus=($,z,{model:ie})=>{const le=inject(checkboxGroupContextKey,void 0),ue=ref(!1),pe=computed(()=>{const xe=ie.value;return isBoolean$3(xe)?xe:isArray$c(xe)?isObject$8($.label)?xe.map(toRaw).some(Ie=>isEqual$1(Ie,$.label)):xe.map(toRaw).includes($.label):xe!=null?xe===$.trueLabel:!!xe}),_e=useFormSize(computed(()=>{var xe;return(xe=le==null?void 0:le.size)==null?void 0:xe.value}),{prop:!0}),Ce=useFormSize(computed(()=>{var xe;return(xe=le==null?void 0:le.size)==null?void 0:xe.value})),$e=computed(()=>!!(z.default||$.label));return{checkboxButtonSize:_e,isChecked:pe,isFocused:ue,checkboxSize:Ce,hasOwnLabel:$e}},setStoreValue=($,{model:z})=>{function ie(){isArray$c(z.value)&&!z.value.includes($.label)?z.value.push($.label):z.value=$.trueLabel||!0}$.checked&&ie()},useCheckbox=($,z)=>{const{formItem:ie}=useFormItem(),{model:le,isGroup:ue,isLimitExceeded:pe}=useCheckboxModel($),{isFocused:_e,isChecked:Ce,checkboxButtonSize:$e,checkboxSize:xe,hasOwnLabel:Ie}=useCheckboxStatus($,z,{model:le}),{isDisabled:ze}=useCheckboxDisabled({model:le,isChecked:Ce}),{inputId:Ue,isLabeledByFormItem:qe}=useFormItemInputId($,{formItemContext:ie,disableIdGeneration:Ie,disableIdManagement:ue}),{handleChange:Et,onClickRoot:Lt}=useCheckboxEvent($,{model:le,isLimitExceeded:pe,hasOwnLabel:Ie,isDisabled:ze,isLabeledByFormItem:qe});return setStoreValue($,{model:le}),{inputId:Ue,isLabeledByFormItem:qe,isChecked:Ce,isDisabled:ze,isFocused:_e,checkboxButtonSize:$e,checkboxSize:xe,hasOwnLabel:Ie,model:le,handleChange:Et,onClickRoot:Lt}},_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=$,ie=useSlots(),{inputId:le,isLabeledByFormItem:ue,isChecked:pe,isDisabled:_e,isFocused:Ce,checkboxSize:$e,hasOwnLabel:xe,model:Ie,handleChange:ze,onClickRoot:Ue}=useCheckbox(z,ie),qe=useNamespace("checkbox"),Et=computed(()=>[qe.b(),qe.m($e.value),qe.is("disabled",_e.value),qe.is("bordered",z.border),qe.is("checked",pe.value)]),Lt=computed(()=>[qe.e("input"),qe.is("disabled",_e.value),qe.is("checked",pe.value),qe.is("indeterminate",z.indeterminate),qe.is("focus",Ce.value)]);return(hn,vn)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(xe)&&unref(ue)?"span":"label"),{class:normalizeClass(unref(Et)),"aria-controls":hn.indeterminate?hn.controls:null,onClick:unref(Ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(Lt)),tabindex:hn.indeterminate?0:void 0,role:hn.indeterminate?"checkbox":void 0,"aria-checked":hn.indeterminate?"mixed":void 0},[hn.trueLabel||hn.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(le),"onUpdate:modelValue":vn[0]||(vn[0]=_n=>isRef(Ie)?Ie.value=_n:null),class:normalizeClass(unref(qe).e("original")),type:"checkbox","aria-hidden":hn.indeterminate?"true":"false",name:hn.name,tabindex:hn.tabindex,disabled:unref(_e),"true-value":hn.trueLabel,"false-value":hn.falseLabel,onChange:vn[1]||(vn[1]=(..._n)=>unref(ze)&&unref(ze)(..._n)),onFocus:vn[2]||(vn[2]=_n=>Ce.value=!0),onBlur:vn[3]||(vn[3]=_n=>Ce.value=!1)},null,42,_hoisted_2$B)),[[vModelCheckbox,unref(Ie)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(le),"onUpdate:modelValue":vn[4]||(vn[4]=_n=>isRef(Ie)?Ie.value=_n:null),class:normalizeClass(unref(qe).e("original")),type:"checkbox","aria-hidden":hn.indeterminate?"true":"false",disabled:unref(_e),value:hn.label,name:hn.name,tabindex:hn.tabindex,onChange:vn[5]||(vn[5]=(..._n)=>unref(ze)&&unref(ze)(..._n)),onFocus:vn[6]||(vn[6]=_n=>Ce.value=!0),onBlur:vn[7]||(vn[7]=_n=>Ce.value=!1)},null,42,_hoisted_3$l)),[[vModelCheckbox,unref(Ie)]]),createBaseVNode("span",{class:normalizeClass(unref(qe).e("inner"))},null,2)],10,_hoisted_1$V),unref(xe)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(qe).e("label"))},[renderSlot(hn.$slots,"default"),hn.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(hn.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=$,ie=useSlots(),{isFocused:le,isChecked:ue,isDisabled:pe,checkboxButtonSize:_e,model:Ce,handleChange:$e}=useCheckbox(z,ie),xe=inject(checkboxGroupContextKey,void 0),Ie=useNamespace("checkbox"),ze=computed(()=>{var qe,Et,Lt,hn;const vn=(Et=(qe=xe==null?void 0:xe.fill)==null?void 0:qe.value)!=null?Et:"";return{backgroundColor:vn,borderColor:vn,color:(hn=(Lt=xe==null?void 0:xe.textColor)==null?void 0:Lt.value)!=null?hn:"",boxShadow:vn?`-1px 0 0 0 ${vn}`:void 0}}),Ue=computed(()=>[Ie.b("button"),Ie.bm("button",_e.value),Ie.is("disabled",pe.value),Ie.is("checked",ue.value),Ie.is("focus",le.value)]);return(qe,Et)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref(Ue))},[qe.trueLabel||qe.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Et[0]||(Et[0]=Lt=>isRef(Ce)?Ce.value=Lt:null),class:normalizeClass(unref(Ie).be("button","original")),type:"checkbox",name:qe.name,tabindex:qe.tabindex,disabled:unref(pe),"true-value":qe.trueLabel,"false-value":qe.falseLabel,onChange:Et[1]||(Et[1]=(...Lt)=>unref($e)&&unref($e)(...Lt)),onFocus:Et[2]||(Et[2]=Lt=>le.value=!0),onBlur:Et[3]||(Et[3]=Lt=>le.value=!1)},null,42,_hoisted_1$U)),[[vModelCheckbox,unref(Ce)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":Et[4]||(Et[4]=Lt=>isRef(Ce)?Ce.value=Lt:null),class:normalizeClass(unref(Ie).be("button","original")),type:"checkbox",name:qe.name,tabindex:qe.tabindex,disabled:unref(pe),value:qe.label,onChange:Et[5]||(Et[5]=(...Lt)=>unref($e)&&unref($e)(...Lt)),onFocus:Et[6]||(Et[6]=Lt=>le.value=!0),onBlur:Et[7]||(Et[7]=Lt=>le.value=!1)},null,42,_hoisted_2$A)),[[vModelCheckbox,unref(Ce)]]),qe.$slots.default||qe.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(Ie).be("button","inner")),style:normalizeStyle$1(unref(ue)?unref(ze):void 0)},[renderSlot(qe.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(qe.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 ie=$,le=useNamespace("checkbox"),{formItem:ue}=useFormItem(),{inputId:pe,isLabeledByFormItem:_e}=useFormItemInputId(ie,{formItemContext:ue}),Ce=async xe=>{z(UPDATE_MODEL_EVENT,xe),await nextTick(),z("change",xe)},$e=computed({get(){return ie.modelValue},set(xe){Ce(xe)}});return provide(checkboxGroupContextKey,{...pick$1(toRefs(ie),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:$e,changeEvent:Ce}),watch(()=>ie.modelValue,()=>{ie.validateEvent&&(ue==null||ue.validate("change").catch(xe=>void 0))}),(xe,Ie)=>{var ze;return openBlock(),createBlock(resolveDynamicComponent(xe.tag),{id:unref(pe),class:normalizeClass(unref(le).b("group")),role:"group","aria-label":unref(_e)?void 0:xe.label||"checkbox-group","aria-labelledby":unref(_e)?(ze=unref(ue))==null?void 0:ze.labelId:void 0},{default:withCtx(()=>[renderSlot(xe.$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 ie=ref(),le=inject(radioGroupKey,void 0),ue=computed(()=>!!le),pe=computed({get(){return ue.value?le.modelValue:$.modelValue},set(Ie){ue.value?le.changeEvent(Ie):z&&z(UPDATE_MODEL_EVENT,Ie),ie.value.checked=$.modelValue===$.label}}),_e=useFormSize(computed(()=>le==null?void 0:le.size)),Ce=useFormDisabled(computed(()=>le==null?void 0:le.disabled)),$e=ref(!1),xe=computed(()=>Ce.value||ue.value&&pe.value!==$.label?-1:0);return{radioRef:ie,isGroup:ue,radioGroup:le,focus:$e,size:_e,disabled:Ce,tabIndex:xe,modelValue:pe}},_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 ie=$,le=useNamespace("radio"),{radioRef:ue,radioGroup:pe,focus:_e,size:Ce,disabled:$e,modelValue:xe}=useRadio(ie,z);function Ie(){nextTick(()=>z("change",xe.value))}return(ze,Ue)=>{var qe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(le).b(),unref(le).is("disabled",unref($e)),unref(le).is("focus",unref(_e)),unref(le).is("bordered",ze.border),unref(le).is("checked",unref(xe)===ze.label),unref(le).m(unref(Ce))])},[createBaseVNode("span",{class:normalizeClass([unref(le).e("input"),unref(le).is("disabled",unref($e)),unref(le).is("checked",unref(xe)===ze.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:ue,"onUpdate:modelValue":Ue[0]||(Ue[0]=Et=>isRef(xe)?xe.value=Et:null),class:normalizeClass(unref(le).e("original")),value:ze.label,name:ze.name||((qe=unref(pe))==null?void 0:qe.name),disabled:unref($e),type:"radio",onFocus:Ue[1]||(Ue[1]=Et=>_e.value=!0),onBlur:Ue[2]||(Ue[2]=Et=>_e.value=!1),onChange:Ie},null,42,_hoisted_1$T),[[vModelRadio,unref(xe)]]),createBaseVNode("span",{class:normalizeClass(unref(le).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(le).e("label")),onKeydown:Ue[3]||(Ue[3]=withModifiers(()=>{},["stop"]))},[renderSlot(ze.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ze.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=$,ie=useNamespace("radio"),{radioRef:le,focus:ue,size:pe,disabled:_e,modelValue:Ce,radioGroup:$e}=useRadio(z),xe=computed(()=>({backgroundColor:($e==null?void 0:$e.fill)||"",borderColor:($e==null?void 0:$e.fill)||"",boxShadow:$e!=null&&$e.fill?`-1px 0 0 0 ${$e.fill}`:"",color:($e==null?void 0:$e.textColor)||""}));return(Ie,ze)=>{var Ue;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ie).b("button"),unref(ie).is("active",unref(Ce)===Ie.label),unref(ie).is("disabled",unref(_e)),unref(ie).is("focus",unref(ue)),unref(ie).bm("button",unref(pe))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:le,"onUpdate:modelValue":ze[0]||(ze[0]=qe=>isRef(Ce)?Ce.value=qe:null),class:normalizeClass(unref(ie).be("button","original-radio")),value:Ie.label,type:"radio",name:Ie.name||((Ue=unref($e))==null?void 0:Ue.name),disabled:unref(_e),onFocus:ze[1]||(ze[1]=qe=>ue.value=!0),onBlur:ze[2]||(ze[2]=qe=>ue.value=!1)},null,42,_hoisted_1$S),[[vModelRadio,unref(Ce)]]),createBaseVNode("span",{class:normalizeClass(unref(ie).be("button","inner")),style:normalizeStyle$1(unref(Ce)===Ie.label?unref(xe):{}),onKeydown:ze[3]||(ze[3]=withModifiers(()=>{},["stop"]))},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.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 ie=$,le=useNamespace("radio"),ue=useId(),pe=ref(),{formItem:_e}=useFormItem(),{inputId:Ce,isLabeledByFormItem:$e}=useFormItemInputId(ie,{formItemContext:_e}),xe=ze=>{z(UPDATE_MODEL_EVENT,ze),nextTick(()=>z("change",ze))};onMounted(()=>{const ze=pe.value.querySelectorAll("[type=radio]"),Ue=ze[0];!Array.from(ze).some(qe=>qe.checked)&&Ue&&(Ue.tabIndex=0)});const Ie=computed(()=>ie.name||ue.value);return provide(radioGroupKey,reactive({...toRefs(ie),changeEvent:xe,name:Ie})),watch(()=>ie.modelValue,()=>{ie.validateEvent&&(_e==null||_e.validate("change").catch(ze=>void 0))}),(ze,Ue)=>(openBlock(),createElementBlock("div",{id:unref(Ce),ref_key:"radioGroupRef",ref:pe,class:normalizeClass(unref(le).b("group")),role:"radiogroup","aria-label":unref($e)?void 0:ze.label||"radio-group","aria-labelledby":unref($e)?unref(_e).labelId:void 0},[renderSlot(ze.$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:ie}=this.$parent,{data:le,label:ue}=z,{renderLabelFn:pe}=ie;return h$3("span",{class:$.e("label")},pe?pe({node:z,data:le}):ue)}});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 ie=inject(CASCADER_PANEL_INJECTION_KEY),le=useNamespace("cascader-node"),ue=computed(()=>ie.isHoverMenu),pe=computed(()=>ie.config.multiple),_e=computed(()=>ie.config.checkStrictly),Ce=computed(()=>{var En;return(En=ie.checkedNodes[0])==null?void 0:En.uid}),$e=computed(()=>$.node.isDisabled),xe=computed(()=>$.node.isLeaf),Ie=computed(()=>_e.value&&!xe.value||!$e.value),ze=computed(()=>qe(ie.expandingNode)),Ue=computed(()=>_e.value&&ie.checkedNodes.some(qe)),qe=En=>{var $n;const{level:wn,uid:Tn}=$.node;return(($n=En==null?void 0:En.pathNodes[wn-1])==null?void 0:$n.uid)===Tn},Et=()=>{ze.value||ie.expandNode($.node)},Lt=En=>{const{node:$n}=$;En!==$n.checked&&ie.handleCheckChange($n,En)},hn=()=>{ie.lazyLoad($.node,()=>{xe.value||Et()})},vn=En=>{ue.value&&(_n(),!xe.value&&z("expand",En))},_n=()=>{const{node:En}=$;!Ie.value||En.loading||(En.loaded?Et():hn())},bn=()=>{ue.value&&!xe.value||(xe.value&&!$e.value&&!_e.value&&!pe.value?Cn(!0):_n())},Sn=En=>{_e.value?(Lt(En),$.node.loaded&&Et()):Cn(En)},Cn=En=>{$.node.loaded?(Lt(En),!_e.value&&Et()):hn()};return{panel:ie,isHoverMenu:ue,multiple:pe,checkStrictly:_e,checkedNodeId:Ce,isDisabled:$e,isLeaf:xe,expandable:Ie,inExpandingPath:ze,inCheckedPath:Ue,ns:le,handleHoverExpand:vn,handleExpand:_n,handleClick:bn,handleCheck:Cn,handleSelectCheck:Sn}}}),_hoisted_1$Q=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$z=createBaseVNode("span",null,null,-1);function _sfc_render$v($,z,ie,le,ue,pe){const _e=resolveComponent("el-checkbox"),Ce=resolveComponent("el-radio"),$e=resolveComponent("check"),xe=resolveComponent("el-icon"),Ie=resolveComponent("node-content"),ze=resolveComponent("loading"),Ue=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]=(...qe)=>$.handleHoverExpand&&$.handleHoverExpand(...qe)),onFocus:z[3]||(z[3]=(...qe)=>$.handleHoverExpand&&$.handleHoverExpand(...qe)),onClick:z[4]||(z[4]=(...qe)=>$.handleClick&&$.handleClick(...qe))},[createCommentVNode(" prefix "),$.multiple?(openBlock(),createBlock(_e,{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(Ce,{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(xe,{key:2,class:normalizeClass($.ns.e("prefix"))},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(Ie),createCommentVNode(" postfix "),$.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[$.node.loading?(openBlock(),createBlock(xe,{key:0,class:normalizeClass([$.ns.is("loading"),$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(ze)]),_:1},8,["class"])):(openBlock(),createBlock(xe,{key:1,class:normalizeClass(["arrow-right",$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Ue)]),_: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(),ie=useNamespace("cascader-menu"),{t:le}=useLocale(),ue=generateId();let pe=null,_e=null;const Ce=inject(CASCADER_PANEL_INJECTION_KEY),$e=ref(null),xe=computed(()=>!$.nodes.length),Ie=computed(()=>!Ce.initialLoaded),ze=computed(()=>`cascader-menu-${ue}-${$.index}`),Ue=hn=>{pe=hn.target},qe=hn=>{if(!(!Ce.isHoverMenu||!pe||!$e.value))if(pe.contains(hn.target)){Et();const vn=z.vnode.el,{left:_n}=vn.getBoundingClientRect(),{offsetWidth:bn,offsetHeight:Sn}=vn,Cn=hn.clientX-_n,En=pe.offsetTop,$n=En+pe.offsetHeight;$e.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${Cn} ${En} L${bn} 0 V${En} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${Cn} ${$n} L${bn} ${Sn} V${$n} Z" />
`}else _e||(_e=window.setTimeout(Lt,Ce.config.hoverThreshold))},Et=()=>{_e&&(clearTimeout(_e),_e=null)},Lt=()=>{$e.value&&($e.value.innerHTML="",Et())};return{ns:ie,panel:Ce,hoverZone:$e,isEmpty:xe,isLoading:Ie,menuId:ze,t:le,handleExpand:Ue,handleMouseMove:qe,clearHoverZone:Lt}}});function _sfc_render$u($,z,ie,le,ue,pe){const _e=resolveComponent("el-cascader-node"),Ce=resolveComponent("loading"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-scrollbar");return openBlock(),createBlock(xe,{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 Ie;return[(openBlock(!0),createElementBlock(Fragment,null,renderList($.nodes,ze=>(openBlock(),createBlock(_e,{key:ze.uid,node:ze,"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($e,{size:"14",class:normalizeClass($.ns.is("loading"))},{default:withCtx(()=>[createVNode(Ce)]),_: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)):(Ie=$.panel)!=null&&Ie.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:ie}=$;for(;ie;)z.unshift(ie),ie=ie.parent;return z};let Node$1=class _o{constructor(z,ie,le,ue=!1){this.data=z,this.config=ie,this.parent=le,this.root=ue,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:pe,label:_e,children:Ce}=ie,$e=z[Ce],xe=calculatePathNodes(this);this.level=ue?0:le?le.level+1:1,this.value=z[pe],this.label=z[_e],this.pathNodes=xe,this.pathValues=xe.map(Ie=>Ie.value),this.pathLabels=xe.map(Ie=>Ie.label),this.childrenData=$e,this.children=($e||[]).map(Ie=>new _o(Ie,ie,this)),this.loaded=!ie.lazy||this.isLeaf||!isEmpty($e)}get isDisabled(){const{data:z,parent:ie,config:le}=this,{disabled:ue,checkStrictly:pe}=le;return(isFunction$5(ue)?ue(z,this):!!z[ue])||!pe&&(ie==null?void 0:ie.isDisabled)}get isLeaf(){const{data:z,config:ie,childrenData:le,loaded:ue}=this,{lazy:pe,leaf:_e}=ie,Ce=isFunction$5(_e)?_e(z,this):z[_e];return isUndefined$1(Ce)?pe&&!ue?!1:!(Array.isArray(le)&&le.length):!!Ce}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(z){const{childrenData:ie,children:le}=this,ue=new _o(z,this.config,this);return Array.isArray(ie)?ie.push(z):this.childrenData=[z],le.push(ue),ue}calcText(z,ie){const le=z?this.pathLabels.join(ie):this.label;return this.text=le,le}broadcast(z,...ie){const le=`onParent${capitalize$1(z)}`;this.children.forEach(ue=>{ue&&(ue.broadcast(z,...ie),ue[le]&&ue[le](...ie))})}emit(z,...ie){const{parent:le}=this,ue=`onChild${capitalize$1(z)}`;le&&(le[ue]&&le[ue](...ie),le.emit(z,...ie))}onParentCheck(z){this.isDisabled||this.setCheckState(z)}onChildCheck(){const{children:z}=this,ie=z.filter(ue=>!ue.isDisabled),le=ie.length?ie.every(ue=>ue.checked):!1;this.setCheckState(le)}setCheckState(z){const ie=this.children.length,le=this.children.reduce((ue,pe)=>{const _e=pe.checked?1:pe.indeterminate?.5:0;return ue+_e},0);this.checked=this.loaded&&this.children.filter(ue=>!ue.isDisabled).every(ue=>ue.loaded&&ue.checked)&&z,this.indeterminate=this.loaded&&le!==ie&&le>0}doCheck(z){if(this.checked===z)return;const{checkStrictly:ie,multiple:le}=this.config;ie||!le?this.checked=z:(this.broadcast("check",z),this.setCheckState(z),this.emit("check"))}};const flatNodes=($,z)=>$.reduce((ie,le)=>(le.isLeaf?ie.push(le):(!z&&ie.push(le),ie=ie.concat(flatNodes(le.children,z))),ie),[]);class Store{constructor(z,ie){this.config=ie;const le=(z||[]).map(ue=>new Node$1(ue,this.config));this.nodes=le,this.allNodes=flatNodes(le,!1),this.leafNodes=flatNodes(le,!0)}getNodes(){return this.nodes}getFlattedNodes(z){return z?this.leafNodes:this.allNodes}appendNode(z,ie){const le=ie?ie.appendChild(z):new Node$1(z,this.config);ie||this.nodes.push(le),this.allNodes.push(le),le.isLeaf&&this.leafNodes.push(le)}appendNodes(z,ie){z.forEach(le=>this.appendNode(le,ie))}getNodeByValue(z,ie=!1){return!z&&z!==0?null:this.getFlattedNodes(ie).find(ue=>isEqual$1(ue.value,z)||isEqual$1(ue.pathValues,z))||null}getSameNode(z){return z&&this.getFlattedNodes(!1).find(({value:le,level:ue})=>isEqual$1(z.value,le)&&z.level===ue)||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 ie=z.slice(0),le=ie.map(pe=>pe.uid),ue=$.reduce((pe,_e)=>{const Ce=le.indexOf(_e.uid);return Ce>-1&&(pe.push(_e),ie.splice(Ce,1),le.splice(Ce,1)),pe},[]);return ue.push(...ie),ue},_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:ie}){let le=!1;const ue=useNamespace("cascader"),pe=useCascaderConfig($);let _e=null;const Ce=ref(!0),$e=ref([]),xe=ref(null),Ie=ref([]),ze=ref(null),Ue=ref([]),qe=computed(()=>pe.value.expandTrigger==="hover"),Et=computed(()=>$.renderLabel||ie.default),Lt=()=>{const{options:kn}=$,An=pe.value;le=!1,_e=new Store(kn,An),Ie.value=[_e.getNodes()],An.lazy&&isEmpty($.options)?(Ce.value=!1,hn(void 0,Nn=>{Nn&&(_e=new Store(Nn,An),Ie.value=[_e.getNodes()]),Ce.value=!0,wn(!1,!0)})):wn(!1,!0)},hn=(kn,An)=>{const Nn=pe.value;kn=kn||new Node$1({},Nn,void 0,!0),kn.loading=!0;const Fn=Ln=>{const In=kn,Vn=In.root?null:In;Ln&&(_e==null||_e.appendNodes(Ln,Vn)),In.loading=!1,In.loaded=!0,In.childrenData=In.childrenData||[],An&&An(Ln)};Nn.lazyLoad(kn,Fn)},vn=(kn,An)=>{var Nn;const{level:Fn}=kn,Ln=Ie.value.slice(0,Fn);let In;kn.isLeaf?In=kn.pathNodes[Fn-2]:(In=kn,Ln.push(kn.children)),((Nn=ze.value)==null?void 0:Nn.uid)!==(In==null?void 0:In.uid)&&(ze.value=kn,Ie.value=Ln,!An&&z("expand-change",(kn==null?void 0:kn.pathValues)||[]))},_n=(kn,An,Nn=!0)=>{const{checkStrictly:Fn,multiple:Ln}=pe.value,In=Ue.value[0];le=!0,!Ln&&(In==null||In.doCheck(!1)),kn.doCheck(An),$n(),Nn&&!Ln&&!Fn&&z("close"),!Nn&&!Ln&&!Fn&&bn(kn)},bn=kn=>{kn&&(kn=kn.parent,bn(kn),kn&&vn(kn))},Sn=kn=>_e==null?void 0:_e.getFlattedNodes(kn),Cn=kn=>{var An;return(An=Sn(kn))==null?void 0:An.filter(Nn=>Nn.checked!==!1)},En=()=>{Ue.value.forEach(kn=>kn.doCheck(!1)),$n(),Ie.value=Ie.value.slice(0,1),ze.value=null,z("expand-change",[])},$n=()=>{var kn;const{checkStrictly:An,multiple:Nn}=pe.value,Fn=Ue.value,Ln=Cn(!An),In=sortByOriginalOrder(Fn,Ln),Vn=In.map(Mn=>Mn.valueByOption);Ue.value=In,xe.value=Nn?Vn:(kn=Vn[0])!=null?kn:null},wn=(kn=!1,An=!1)=>{const{modelValue:Nn}=$,{lazy:Fn,multiple:Ln,checkStrictly:In}=pe.value,Vn=!In;if(!(!Ce.value||le||!An&&isEqual$1(Nn,xe.value)))if(Fn&&!kn){const zn=unique(flattenDeep(castArray(Nn))).map(qn=>_e==null?void 0:_e.getNodeByValue(qn)).filter(qn=>!!qn&&!qn.loaded&&!qn.loading);zn.length?zn.forEach(qn=>{hn(qn,()=>wn(!1,An))}):wn(!0,An)}else{const Mn=Ln?castArray(Nn):[Nn],zn=unique(Mn.map(qn=>_e==null?void 0:_e.getNodeByValue(qn,Vn)));Tn(zn,An),xe.value=cloneDeep(Nn)}},Tn=(kn,An=!0)=>{const{checkStrictly:Nn}=pe.value,Fn=Ue.value,Ln=kn.filter(Mn=>!!Mn&&(Nn||Mn.isLeaf)),In=_e==null?void 0:_e.getSameNode(ze.value),Vn=An&&In||Ln[0];Vn?Vn.pathNodes.forEach(Mn=>vn(Mn,!0)):ze.value=null,Fn.forEach(Mn=>Mn.doCheck(!1)),Ln.forEach(Mn=>Mn.doCheck(!0)),Ue.value=Ln,nextTick(xn)},xn=()=>{isClient$2&&$e.value.forEach(kn=>{const An=kn==null?void 0:kn.$el;if(An){const Nn=An.querySelector(`.${ue.namespace.value}-scrollbar__wrap`),Fn=An.querySelector(`.${ue.b("node")}.${ue.is("active")}`)||An.querySelector(`.${ue.b("node")}.in-active-path`);scrollIntoView(Nn,Fn)}})},Pn=kn=>{const An=kn.target,{code:Nn}=kn;switch(Nn){case EVENT_CODE.up:case EVENT_CODE.down:{kn.preventDefault();const Fn=Nn===EVENT_CODE.up?-1:1;focusNode(getSibling(An,Fn,`.${ue.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{kn.preventDefault();const Fn=$e.value[getMenuIndex(An)-1],Ln=Fn==null?void 0:Fn.$el.querySelector(`.${ue.b("node")}[aria-expanded="true"]`);focusNode(Ln);break}case EVENT_CODE.right:{kn.preventDefault();const Fn=$e.value[getMenuIndex(An)+1],Ln=Fn==null?void 0:Fn.$el.querySelector(`.${ue.b("node")}[tabindex="-1"]`);focusNode(Ln);break}case EVENT_CODE.enter:checkNode(An);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:pe,expandingNode:ze,checkedNodes:Ue,isHoverMenu:qe,initialLoaded:Ce,renderLabelFn:Et,lazyLoad:hn,expandNode:vn,handleCheckChange:_n})),watch([pe,()=>$.options],Lt,{deep:!0,immediate:!0}),watch(()=>$.modelValue,()=>{le=!1,wn()},{deep:!0}),watch(()=>xe.value,kn=>{isEqual$1(kn,$.modelValue)||(z(UPDATE_MODEL_EVENT,kn),z(CHANGE_EVENT,kn))}),onBeforeUpdate(()=>$e.value=[]),onMounted(()=>!isEmpty($.modelValue)&&wn()),{ns:ue,menuList:$e,menus:Ie,checkedNodes:Ue,handleKeyDown:Pn,handleCheckChange:_n,getFlattedNodes:Sn,getCheckedNodes:Cn,clearCheckedNodes:En,calculateCheckedValue:$n,scrollToExpandingNode:xn}}});function _sfc_render$t($,z,ie,le,ue,pe){const _e=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("panel"),$.ns.is("bordered",$.border)]),onKeydown:z[0]||(z[0]=(...Ce)=>$.handleKeyDown&&$.handleKeyDown(...Ce))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.menus,(Ce,$e)=>(openBlock(),createBlock(_e,{key:$e,ref_for:!0,ref:xe=>$.menuList[$e]=xe,index:$e,nodes:[...Ce]},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 ie=$,le=useFormSize(),ue=useNamespace("tag"),pe=computed(()=>{const{type:$e,hit:xe,effect:Ie,closable:ze,round:Ue}=ie;return[ue.b(),ue.is("closable",ze),ue.m($e),ue.m(le.value),ue.m(Ie),ue.is("hit",xe),ue.is("round",Ue)]}),_e=$e=>{z("close",$e)},Ce=$e=>{z("click",$e)};return($e,xe)=>$e.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe)),style:normalizeStyle$1({backgroundColor:$e.color}),onClick:Ce},[createBaseVNode("span",{class:normalizeClass(unref(ue).e("content"))},[renderSlot($e.$slots,"default")],2),$e.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).e("close")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(ue).namespace.value}-zoom-in-center`,appear:""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(pe)),style:normalizeStyle$1({backgroundColor:$e.color}),onClick:Ce},[createBaseVNode("span",{class:normalizeClass(unref(ue).e("content"))},[renderSlot($e.$slots,"default")],2),$e.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).e("close")),onClick:withModifiers(_e,["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:ie}){const le=$,ue={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:cr})=>{const{modifiersData:Qn,placement:ar}=cr;["right","left","bottom","top"].includes(ar)||(Qn.arrow.x=35)},requires:["arrow"]}]},pe=useAttrs$1();let _e=0,Ce=0;const $e=useNamespace("cascader"),xe=useNamespace("input"),{t:Ie}=useLocale(),{form:ze,formItem:Ue}=useFormItem(),qe=ref(null),Et=ref(null),Lt=ref(null),hn=ref(null),vn=ref(null),_n=ref(!1),bn=ref(!1),Sn=ref(!1),Cn=ref(!1),En=ref(""),$n=ref(""),wn=ref([]),Tn=ref([]),xn=ref([]),Pn=ref(!1),kn=computed(()=>pe.style),An=computed(()=>le.disabled||(ze==null?void 0:ze.disabled)),Nn=computed(()=>le.placeholder||Ie("el.cascader.placeholder")),Fn=computed(()=>$n.value||wn.value.length>0||Pn.value?"":Nn.value),Ln=useFormSize(),In=computed(()=>["small"].includes(Ln.value)?"small":"default"),Vn=computed(()=>!!le.props.multiple),Mn=computed(()=>!le.filterable||Vn.value),zn=computed(()=>Vn.value?$n.value:En.value),qn=computed(()=>{var cr;return((cr=hn.value)==null?void 0:cr.checkedNodes)||[]}),Hn=computed(()=>!le.clearable||An.value||Sn.value||!bn.value?!1:!!qn.value.length),Jn=computed(()=>{const{showAllLevels:cr,separator:Qn}=le,ar=qn.value;return ar.length?Vn.value?"":ar[0].calcText(cr,Qn):""}),ur=computed({get(){return cloneDeep(le.modelValue)},set(cr){ie(UPDATE_MODEL_EVENT,cr),ie(CHANGE_EVENT,cr),le.validateEvent&&(Ue==null||Ue.validate("change").catch(Qn=>void 0))}}),yr=computed(()=>[$e.b(),$e.m(Ln.value),$e.is("disabled",An.value),pe.class]),sr=computed(()=>[xe.e("icon"),"icon-arrow-down",$e.is("reverse",_n.value)]),Zn=computed(()=>$e.is("focus",_n.value||Cn.value)),Kn=computed(()=>{var cr,Qn;return(Qn=(cr=qe.value)==null?void 0:cr.popperRef)==null?void 0:Qn.contentRef}),Wn=cr=>{var Qn,ar,$r;An.value||(cr=cr??!_n.value,cr!==_n.value&&(_n.value=cr,(ar=(Qn=Et.value)==null?void 0:Qn.input)==null||ar.setAttribute("aria-expanded",`${cr}`),cr?(nr(),nextTick(($r=hn.value)==null?void 0:$r.scrollToExpandingNode)):le.filterable&&dr(),ie("visibleChange",cr)))},nr=()=>{nextTick(()=>{var cr;(cr=qe.value)==null||cr.updatePopper()})},fr=()=>{Sn.value=!1},Gn=cr=>{const{showAllLevels:Qn,separator:ar}=le;return{node:cr,key:cr.uid,text:cr.calcText(Qn,ar),hitState:!1,closable:!An.value&&!cr.isDisabled,isCollapseTag:!1}},Xn=cr=>{var Qn;const ar=cr.node;ar.doCheck(!1),(Qn=hn.value)==null||Qn.calculateCheckedValue(),ie("removeTag",ar.valueByOption)},or=()=>{if(!Vn.value)return;const cr=qn.value,Qn=[],ar=[];if(cr.forEach($r=>ar.push(Gn($r))),Tn.value=ar,cr.length){const[$r,...Ir]=cr,Hr=Ir.length;Qn.push(Gn($r)),Hr&&(le.collapseTags?Qn.push({key:-1,text:`+ ${Hr}`,closable:!1,isCollapseTag:!0}):Ir.forEach(br=>Qn.push(Gn(br))))}wn.value=Qn},vr=()=>{var cr,Qn;const{filterMethod:ar,showAllLevels:$r,separator:Ir}=le,Hr=(Qn=(cr=hn.value)==null?void 0:cr.getFlattedNodes(!le.props.checkStrictly))==null?void 0:Qn.filter(br=>br.isDisabled?!1:(br.calcText($r,Ir),ar(br,zn.value)));Vn.value&&(wn.value.forEach(br=>{br.hitState=!1}),Tn.value.forEach(br=>{br.hitState=!1})),Sn.value=!0,xn.value=Hr,nr()},_r=()=>{var cr;let Qn;Sn.value&&vn.value?Qn=vn.value.$el.querySelector(`.${$e.e("suggestion-item")}`):Qn=(cr=hn.value)==null?void 0:cr.$el.querySelector(`.${$e.b("node")}[tabindex="-1"]`),Qn&&(Qn.focus(),!Sn.value&&Qn.click())},ir=()=>{var cr,Qn;const ar=(cr=Et.value)==null?void 0:cr.input,$r=Lt.value,Ir=(Qn=vn.value)==null?void 0:Qn.$el;if(!(!isClient$2||!ar)){if(Ir){const Hr=Ir.querySelector(`.${$e.e("suggestion-list")}`);Hr.style.minWidth=`${ar.offsetWidth}px`}if($r){const{offsetHeight:Hr}=$r,br=wn.value.length>0?`${Math.max(Hr+6,_e)}px`:`${_e}px`;ar.style.height=br,nr()}}},Pr=cr=>{var Qn;return(Qn=hn.value)==null?void 0:Qn.getCheckedNodes(cr)},gr=cr=>{nr(),ie("expandChange",cr)},kr=cr=>{var Qn;const ar=(Qn=cr.target)==null?void 0:Qn.value;if(cr.type==="compositionend")Pn.value=!1,nextTick(()=>Er(ar));else{const $r=ar[ar.length-1]||"";Pn.value=!isKorean($r)}},pr=cr=>{if(!Pn.value)switch(cr.code){case EVENT_CODE.enter:Wn();break;case EVENT_CODE.down:Wn(!0),nextTick(_r),cr.preventDefault();break;case EVENT_CODE.esc:_n.value===!0&&(cr.preventDefault(),cr.stopPropagation(),Wn(!1));break;case EVENT_CODE.tab:Wn(!1);break}},lr=()=>{var cr;(cr=hn.value)==null||cr.clearCheckedNodes(),!_n.value&&le.filterable&&dr(),Wn(!1)},dr=()=>{const{value:cr}=Jn;En.value=cr,$n.value=cr},hr=cr=>{var Qn,ar;const{checked:$r}=cr;Vn.value?(Qn=hn.value)==null||Qn.handleCheckChange(cr,!$r,!1):(!$r&&((ar=hn.value)==null||ar.handleCheckChange(cr,!0,!1)),Wn(!1))},Or=cr=>{const Qn=cr.target,{code:ar}=cr;switch(ar){case EVENT_CODE.up:case EVENT_CODE.down:{const $r=ar===EVENT_CODE.up?-1:1;focusNode(getSibling(Qn,$r,`.${$e.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:Qn.click();break}},Lr=()=>{const cr=wn.value,Qn=cr[cr.length-1];Ce=$n.value?0:Ce+1,!(!Qn||!Ce||le.collapseTags&&cr.length>1)&&(Qn.hitState?Xn(Qn):Qn.hitState=!0)},Br=cr=>{const Qn=cr.target,ar=$e.e("search-input");Qn.className===ar&&(Cn.value=!0),ie("focus",cr)},Rr=cr=>{Cn.value=!1,ie("blur",cr)},Sr=debounce(()=>{const{value:cr}=zn;if(!cr)return;const Qn=le.beforeFilter(cr);isPromise(Qn)?Qn.then(vr).catch(()=>{}):Qn!==!1?vr():fr()},le.debounce),Er=(cr,Qn)=>{!_n.value&&Wn(!0),!(Qn!=null&&Qn.isComposing)&&(cr?Sr():fr())};return watch(Sn,nr),watch([qn,An],or),watch(wn,()=>{nextTick(()=>ir())}),watch(Jn,dr,{immediate:!0}),onMounted(()=>{const cr=Et.value.input,Qn=Number.parseFloat(useCssVar(xe.cssVarName("input-height"),cr).value)-2;_e=cr.offsetHeight||Qn,useResizeObserver(cr,ir)}),z({getCheckedNodes:Pr,cascaderPanelRef:hn,togglePopperVisible:Wn,contentRef:Kn}),(cr,Qn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:qe,visible:_n.value,teleported:cr.teleported,"popper-class":[unref($e).e("dropdown"),cr.popperClass],"popper-options":ue,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${unref($e).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:fr},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(unref(yr)),style:normalizeStyle$1(unref(kn)),onClick:Qn[5]||(Qn[5]=()=>Wn(unref(Mn)?void 0:!0)),onKeydown:pr,onMouseenter:Qn[6]||(Qn[6]=ar=>bn.value=!0),onMouseleave:Qn[7]||(Qn[7]=ar=>bn.value=!1)},[createVNode(unref(ElInput),{ref_key:"input",ref:Et,modelValue:En.value,"onUpdate:modelValue":Qn[1]||(Qn[1]=ar=>En.value=ar),placeholder:unref(Fn),readonly:unref(Mn),disabled:unref(An),"validate-event":!1,size:unref(Ln),class:normalizeClass(unref(Zn)),tabindex:unref(Vn)&&cr.filterable&&!unref(An)?-1:void 0,onCompositionstart:kr,onCompositionupdate:kr,onCompositionend:kr,onFocus:Br,onBlur:Rr,onInput:Er},{suffix:withCtx(()=>[unref(Hn)?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref(xe).e("icon"),"icon-circle-close"]),onClick:withModifiers(lr,["stop"])},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onClick"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(unref(sr)),onClick:Qn[0]||(Qn[0]=withModifiers(ar=>Wn(),["stop"]))},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),unref(Vn)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:Lt,class:normalizeClass(unref($e).e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(wn.value,ar=>(openBlock(),createBlock(unref(ElTag),{key:ar.key,type:cr.tagType,size:unref(In),hit:ar.hitState,closable:ar.closable,"disable-transitions":"",onClose:$r=>Xn(ar)},{default:withCtx(()=>[ar.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$P,toDisplayString$1(ar.text),1)):(openBlock(),createBlock(unref(ElTooltip),{key:1,disabled:_n.value||!cr.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(ar.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref($e).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Tn.value.slice(1),($r,Ir)=>(openBlock(),createElementBlock("div",{key:Ir,class:normalizeClass(unref($e).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:$r.key,class:"in-tooltip",type:cr.tagType,size:unref(In),hit:$r.hitState,closable:$r.closable,"disable-transitions":"",onClose:Hr=>Xn($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)),cr.filterable&&!unref(An)?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Qn[2]||(Qn[2]=ar=>$n.value=ar),type:"text",class:normalizeClass(unref($e).e("search-input")),placeholder:unref(Jn)?"":unref(Nn),onInput:Qn[3]||(Qn[3]=ar=>Er($n.value,ar)),onClick:Qn[4]||(Qn[4]=withModifiers(ar=>Wn(!0),["stop"])),onKeydown:withKeys(Lr,["delete"]),onCompositionstart:kr,onCompositionupdate:kr,onCompositionend:kr,onFocus:Br,onBlur:Rr},null,42,_hoisted_2$y)),[[vModelText,$n.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),()=>Wn(!1),unref(Kn)]])]),content:withCtx(()=>[withDirectives(createVNode(unref(_CascaderPanel),{ref_key:"cascaderPanelRef",ref:hn,modelValue:unref(ur),"onUpdate:modelValue":Qn[8]||(Qn[8]=ar=>isRef(ur)?ur.value=ar:null),options:cr.options,props:le.props,border:!1,"render-label":cr.$slots.default,onExpandChange:gr,onClose:Qn[9]||(Qn[9]=ar=>cr.$nextTick(()=>Wn(!1)))},null,8,["modelValue","options","props","render-label"]),[[vShow,!Sn.value]]),cr.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:0,ref_key:"suggestionPanel",ref:vn,tag:"ul",class:normalizeClass(unref($e).e("suggestion-panel")),"view-class":unref($e).e("suggestion-list"),onKeydown:Or},{default:withCtx(()=>[xn.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(xn.value,ar=>(openBlock(),createElementBlock("li",{key:ar.uid,class:normalizeClass([unref($e).e("suggestion-item"),unref($e).is("checked",ar.checked)]),tabindex:-1,onClick:$r=>hr(ar)},[createBaseVNode("span",null,toDisplayString$1(ar.text),1),ar.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$k))),128)):renderSlot(cr.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref($e).e("empty-text"))},toDisplayString$1(unref(Ie)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,Sn.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 ie=$,le=useNamespace("check-tag"),ue=computed(()=>[le.b(),le.is("checked",ie.checked)]),pe=()=>{const _e=!ie.checked;z(CHANGE_EVENT,_e),z("update:checked",_e)};return(_e,Ce)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ue)),onClick:pe},[renderSlot(_e.$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=$,ie=useNamespace("row"),le=computed(()=>z.gutter);provide(rowContextKey,{gutter:le});const ue=computed(()=>{const _e={};return z.gutter&&(_e.marginRight=_e.marginLeft=`-${z.gutter/2}px`),_e}),pe=computed(()=>[ie.b(),ie.is(`justify-${z.justify}`,z.justify!=="start"),ie.is(`align-${z.align}`,z.align!=="top")]);return(_e,Ce)=>(openBlock(),createBlock(resolveDynamicComponent(_e.tag),{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(ue))},{default:withCtx(()=>[renderSlot(_e.$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:ie}=inject(rowContextKey,{gutter:computed(()=>0)}),le=useNamespace("col"),ue=computed(()=>{const _e={};return ie.value&&(_e.paddingLeft=_e.paddingRight=`${ie.value/2}px`),_e}),pe=computed(()=>{const _e=[];return["span","offset","pull","push"].forEach(xe=>{const Ie=z[xe];isNumber$5(Ie)&&(xe==="span"?_e.push(le.b(`${z[xe]}`)):Ie>0&&_e.push(le.b(`${xe}-${z[xe]}`)))}),["xs","sm","md","lg","xl"].forEach(xe=>{isNumber$5(z[xe])?_e.push(le.b(`${xe}-${z[xe]}`)):isObject$8(z[xe])&&Object.entries(z[xe]).forEach(([Ie,ze])=>{_e.push(Ie!=="span"?le.b(`${xe}-${Ie}-${ze}`):le.b(`${xe}-${ze}`))})}),ie.value&&_e.push(le.is("guttered")),[le.b(),_e]});return(_e,Ce)=>(openBlock(),createBlock(resolveDynamicComponent(_e.tag),{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(ue))},{default:withCtx(()=>[renderSlot(_e.$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 ie=ref(castArray$1($.modelValue)),le=pe=>{ie.value=pe;const _e=$.accordion?ie.value[0]:ie.value;z(UPDATE_MODEL_EVENT,_e),z(CHANGE_EVENT,_e)},ue=pe=>{if($.accordion)le([ie.value[0]===pe?"":pe]);else{const _e=[...ie.value],Ce=_e.indexOf(pe);Ce>-1?_e.splice(Ce,1):_e.push(pe),le(_e)}};return watch(()=>$.modelValue,()=>ie.value=castArray$1($.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:ie,handleItemClick:ue}),{activeNames:ie,setActiveNames:le}},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:ie}){const le=$,{activeNames:ue,setActiveNames:pe}=useCollapse(le,ie),{rootKls:_e}=useCollapseDOM();return z({activeNames:ue,setActiveNames:pe}),(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e)),role:"tablist","aria-multiselectable":"true"},[renderSlot(Ce.$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"),ie={beforeEnter(le){le.dataset||(le.dataset={}),le.dataset.oldPaddingTop=le.style.paddingTop,le.dataset.oldPaddingBottom=le.style.paddingBottom,le.style.maxHeight=0,le.style.paddingTop=0,le.style.paddingBottom=0},enter(le){le.dataset.oldOverflow=le.style.overflow,le.scrollHeight!==0?(le.style.maxHeight=`${le.scrollHeight}px`,le.style.paddingTop=le.dataset.oldPaddingTop,le.style.paddingBottom=le.dataset.oldPaddingBottom):(le.style.maxHeight=0,le.style.paddingTop=le.dataset.oldPaddingTop,le.style.paddingBottom=le.dataset.oldPaddingBottom),le.style.overflow="hidden"},afterEnter(le){le.style.maxHeight="",le.style.overflow=le.dataset.oldOverflow},beforeLeave(le){le.dataset||(le.dataset={}),le.dataset.oldPaddingTop=le.style.paddingTop,le.dataset.oldPaddingBottom=le.style.paddingBottom,le.dataset.oldOverflow=le.style.overflow,le.style.maxHeight=`${le.scrollHeight}px`,le.style.overflow="hidden"},leave(le){le.scrollHeight!==0&&(le.style.maxHeight=0,le.style.paddingTop=0,le.style.paddingBottom=0)},afterLeave(le){le.style.maxHeight="",le.style.overflow=le.dataset.oldOverflow,le.style.paddingTop=le.dataset.oldPaddingTop,le.style.paddingBottom=le.dataset.oldPaddingBottom}};return(le,ue)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(z).b()},toHandlers(ie)),{default:withCtx(()=>[renderSlot(le.$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),ie=ref(!1),le=ref(!1),ue=ref(generateId()),pe=computed(()=>z==null?void 0:z.activeNames.value.includes($.name));return{focusing:ie,id:ue,isActive:pe,handleFocus:()=>{setTimeout(()=>{le.value?le.value=!1:ie.value=!0},50)},handleHeaderClick:()=>{$.disabled||(z==null||z.handleItemClick($.name),ie.value=!1,le.value=!0)},handleEnterClick:()=>{z==null||z.handleItemClick($.name)}}},useCollapseItemDOM=($,{focusing:z,isActive:ie,id:le})=>{const ue=useNamespace("collapse"),pe=computed(()=>[ue.b("item"),ue.is("active",unref(ie)),ue.is("disabled",$.disabled)]),_e=computed(()=>[ue.be("item","header"),ue.is("active",unref(ie)),{focusing:unref(z)&&!$.disabled}]),Ce=computed(()=>[ue.be("item","arrow"),ue.is("active",unref(ie))]),$e=computed(()=>ue.be("item","wrap")),xe=computed(()=>ue.be("item","content")),Ie=computed(()=>ue.b(`content-${unref(le)}`)),ze=computed(()=>ue.b(`head-${unref(le)}`));return{arrowKls:Ce,headKls:_e,rootKls:pe,itemWrapperKls:$e,itemContentKls:xe,scopedContentId:Ie,scopedHeadId:ze}},_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 ie=$,{focusing:le,id:ue,isActive:pe,handleFocus:_e,handleHeaderClick:Ce,handleEnterClick:$e}=useCollapseItem(ie),{arrowKls:xe,headKls:Ie,rootKls:ze,itemWrapperKls:Ue,itemContentKls:qe,scopedContentId:Et,scopedHeadId:Lt}=useCollapseItemDOM(ie,{focusing:le,isActive:pe,id:ue});return z({isActive:pe}),(hn,vn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ze))},[createBaseVNode("div",{role:"tab","aria-expanded":unref(pe),"aria-controls":unref(Et),"aria-describedby":unref(Et)},[createBaseVNode("div",{id:unref(Lt),class:normalizeClass(unref(Ie)),role:"button",tabindex:hn.disabled?-1:0,onClick:vn[0]||(vn[0]=(..._n)=>unref(Ce)&&unref(Ce)(..._n)),onKeypress:vn[1]||(vn[1]=withKeys(withModifiers((..._n)=>unref($e)&&unref($e)(..._n),["stop","prevent"]),["space","enter"])),onFocus:vn[2]||(vn[2]=(..._n)=>unref(_e)&&unref(_e)(..._n)),onBlur:vn[3]||(vn[3]=_n=>le.value=!1)},[renderSlot(hn.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(hn.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass(unref(xe))},{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(Et),class:normalizeClass(unref(Ue)),role:"tabpanel","aria-hidden":!unref(pe),"aria-labelledby":unref(Lt)},[createBaseVNode("div",{class:normalizeClass(unref(qe))},[renderSlot(hn.$slots,"default")],2)],10,_hoisted_3$j),[[vShow,unref(pe)]])]),_: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 ie=function(pe){var _e;(_e=z.drag)==null||_e.call(z,pe)},le=function(pe){var _e;document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",le),document.removeEventListener("touchmove",ie),document.removeEventListener("touchend",le),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(_e=z.end)==null||_e.call(z,pe)},ue=function(pe){var _e;isDragging||(pe.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",ie),document.addEventListener("mouseup",le),document.addEventListener("touchmove",ie),document.addEventListener("touchend",le),isDragging=!0,(_e=z.start)==null||_e.call(z,pe))};$.addEventListener("mousedown",ue),$.addEventListener("touchstart",ue)}const useAlphaSlider=$=>{const z=getCurrentInstance(),ie=shallowRef(),le=shallowRef();function ue(_e){_e.target!==ie.value&&pe(_e)}function pe(_e){if(!le.value||!ie.value)return;const $e=z.vnode.el.getBoundingClientRect(),{clientX:xe,clientY:Ie}=getClientXY(_e);if($.vertical){let ze=Ie-$e.top;ze=Math.max(ie.value.offsetHeight/2,ze),ze=Math.min(ze,$e.height-ie.value.offsetHeight/2),$.color.set("alpha",Math.round((ze-ie.value.offsetHeight/2)/($e.height-ie.value.offsetHeight)*100))}else{let ze=xe-$e.left;ze=Math.max(ie.value.offsetWidth/2,ze),ze=Math.min(ze,$e.width-ie.value.offsetWidth/2),$.color.set("alpha",Math.round((ze-ie.value.offsetWidth/2)/($e.width-ie.value.offsetWidth)*100))}}return{thumb:ie,bar:le,handleDrag:pe,handleClick:ue}},useAlphaSliderDOM=($,{bar:z,thumb:ie,handleDrag:le})=>{const ue=getCurrentInstance(),pe=useNamespace("color-alpha-slider"),_e=ref(0),Ce=ref(0),$e=ref();function xe(){if(!ie.value||$.vertical)return 0;const _n=ue.vnode.el,bn=$.color.get("alpha");return _n?Math.round(bn*(_n.offsetWidth-ie.value.offsetWidth/2)/100):0}function Ie(){if(!ie.value)return 0;const _n=ue.vnode.el;if(!$.vertical)return 0;const bn=$.color.get("alpha");return _n?Math.round(bn*(_n.offsetHeight-ie.value.offsetHeight/2)/100):0}function ze(){if($.color&&$.color.value){const{r:_n,g:bn,b:Sn}=$.color.toRgb();return`linear-gradient(to right, rgba(${_n}, ${bn}, ${Sn}, 0) 0%, rgba(${_n}, ${bn}, ${Sn}, 1) 100%)`}return""}function Ue(){_e.value=xe(),Ce.value=Ie(),$e.value=ze()}onMounted(()=>{if(!z.value||!ie.value)return;const _n={drag:bn=>{le(bn)},end:bn=>{le(bn)}};draggable(z.value,_n),draggable(ie.value,_n),Ue()}),watch(()=>$.color.get("alpha"),()=>Ue()),watch(()=>$.color.value,()=>Ue());const qe=computed(()=>[pe.b(),pe.is("vertical",$.vertical)]),Et=computed(()=>pe.e("bar")),Lt=computed(()=>pe.e("thumb")),hn=computed(()=>({background:$e.value})),vn=computed(()=>({left:addUnit(_e.value),top:addUnit(Ce.value)}));return{rootKls:qe,barKls:Et,barStyle:hn,thumbKls:Lt,thumbStyle:vn,update:Ue}},COMPONENT_NAME$d="ElColorAlphaSlider",__default__$Y=defineComponent({name:COMPONENT_NAME$d}),_sfc_main$1x=defineComponent({...__default__$Y,props:alphaSliderProps,setup($,{expose:z}){const ie=$,{bar:le,thumb:ue,handleDrag:pe,handleClick:_e}=useAlphaSlider(ie),{rootKls:Ce,barKls:$e,barStyle:xe,thumbKls:Ie,thumbStyle:ze,update:Ue}=useAlphaSliderDOM(ie,{bar:le,thumb:ue,handleDrag:pe});return z({update:Ue,bar:le,thumb:ue}),(qe,Et)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ce))},[createBaseVNode("div",{ref_key:"bar",ref:le,class:normalizeClass(unref($e)),style:normalizeStyle$1(unref(xe)),onClick:Et[0]||(Et[0]=(...Lt)=>unref(_e)&&unref(_e)(...Lt))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:ue,class:normalizeClass(unref(Ie)),style:normalizeStyle$1(unref(ze))},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"),ie=getCurrentInstance(),le=ref(),ue=ref(),pe=ref(0),_e=ref(0),Ce=computed(()=>$.color.get("hue"));watch(()=>Ce.value,()=>{Ue()});function $e(qe){qe.target!==le.value&&xe(qe)}function xe(qe){if(!ue.value||!le.value)return;const Lt=ie.vnode.el.getBoundingClientRect(),{clientX:hn,clientY:vn}=getClientXY(qe);let _n;if($.vertical){let bn=vn-Lt.top;bn=Math.min(bn,Lt.height-le.value.offsetHeight/2),bn=Math.max(le.value.offsetHeight/2,bn),_n=Math.round((bn-le.value.offsetHeight/2)/(Lt.height-le.value.offsetHeight)*360)}else{let bn=hn-Lt.left;bn=Math.min(bn,Lt.width-le.value.offsetWidth/2),bn=Math.max(le.value.offsetWidth/2,bn),_n=Math.round((bn-le.value.offsetWidth/2)/(Lt.width-le.value.offsetWidth)*360)}$.color.set("hue",_n)}function Ie(){if(!le.value)return 0;const qe=ie.vnode.el;if($.vertical)return 0;const Et=$.color.get("hue");return qe?Math.round(Et*(qe.offsetWidth-le.value.offsetWidth/2)/360):0}function ze(){if(!le.value)return 0;const qe=ie.vnode.el;if(!$.vertical)return 0;const Et=$.color.get("hue");return qe?Math.round(Et*(qe.offsetHeight-le.value.offsetHeight/2)/360):0}function Ue(){pe.value=Ie(),_e.value=ze()}return onMounted(()=>{if(!ue.value||!le.value)return;const qe={drag:Et=>{xe(Et)},end:Et=>{xe(Et)}};draggable(ue.value,qe),draggable(le.value,qe),Ue()}),{bar:ue,thumb:le,thumbLeft:pe,thumbTop:_e,hueValue:Ce,handleClick:$e,update:Ue,ns:z}}});function _sfc_render$s($,z,ie,le,ue,pe){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]=(..._e)=>$.handleClick&&$.handleClick(..._e))},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,ie){return[$,z*ie/(($=(2-z)*ie)<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 ie=isPercentage($);return $=Math.min(z,Math.max(0,Number.parseFloat(`${$}`))),ie&&($=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),ie=$%16;return`${INT_HEX_MAP[z]||z}${INT_HEX_MAP[ie]||ie}`},toHex$1=function({r:$,g:z,b:ie}){return Number.isNaN(+$)||Number.isNaN(+z)||Number.isNaN(+ie)?"":`#${hexOne($)}${hexOne(z)}${hexOne(ie)}`},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,ie){z=z/100,ie=ie/100;let le=z;const ue=Math.max(ie,.01);ie*=2,z*=ie<=1?ie:2-ie,le*=ue<=1?ue:2-ue;const pe=(ie+z)/2,_e=ie===0?2*le/(ue+le):2*z/(ie+z);return{h:$,s:_e*100,v:pe*100}},rgb2hsv=($,z,ie)=>{$=bound01($,255),z=bound01(z,255),ie=bound01(ie,255);const le=Math.max($,z,ie),ue=Math.min($,z,ie);let pe;const _e=le,Ce=le-ue,$e=le===0?0:Ce/le;if(le===ue)pe=0;else{switch(le){case $:{pe=(z-ie)/Ce+(z<ie?6:0);break}case z:{pe=(ie-$)/Ce+2;break}case ie:{pe=($-z)/Ce+4;break}}pe/=6}return{h:pe*360,s:$e*100,v:_e*100}},hsv2rgb=function($,z,ie){$=bound01($,360)*6,z=bound01(z,100),ie=bound01(ie,100);const le=Math.floor($),ue=$-le,pe=ie*(1-z),_e=ie*(1-ue*z),Ce=ie*(1-(1-ue)*z),$e=le%6,xe=[ie,_e,pe,pe,Ce,ie][$e],Ie=[Ce,ie,ie,_e,pe,pe][$e],ze=[pe,pe,Ce,ie,ie,_e][$e];return{r:Math.round(xe*255),g:Math.round(Ie*255),b:Math.round(ze*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 ie in z)hasOwn$4(z,ie)&&(this[ie]=z[ie]);z.value?this.fromString(z.value):this.doOnChange()}set(z,ie){if(arguments.length===1&&typeof z=="object"){for(const le in z)hasOwn$4(z,le)&&this.set(le,z[le]);return}this[`_${z}`]=ie,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 ie=(le,ue,pe)=>{this._hue=Math.max(0,Math.min(360,le)),this._saturation=Math.max(0,Math.min(100,ue)),this._value=Math.max(0,Math.min(100,pe)),this.doOnChange()};if(z.includes("hsl")){const le=z.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(ue=>ue!=="").map((ue,pe)=>pe>2?Number.parseFloat(ue):Number.parseInt(ue,10));if(le.length===4?this._alpha=Number.parseFloat(le[3])*100:le.length===3&&(this._alpha=100),le.length>=3){const{h:ue,s:pe,v:_e}=hsl2hsv(le[0],le[1],le[2]);ie(ue,pe,_e)}}else if(z.includes("hsv")){const le=z.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(ue=>ue!=="").map((ue,pe)=>pe>2?Number.parseFloat(ue):Number.parseInt(ue,10));le.length===4?this._alpha=Number.parseFloat(le[3])*100:le.length===3&&(this._alpha=100),le.length>=3&&ie(le[0],le[1],le[2])}else if(z.includes("rgb")){const le=z.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(ue=>ue!=="").map((ue,pe)=>pe>2?Number.parseFloat(ue):Number.parseInt(ue,10));if(le.length===4?this._alpha=Number.parseFloat(le[3])*100:le.length===3&&(this._alpha=100),le.length>=3){const{h:ue,s:pe,v:_e}=rgb2hsv(le[0],le[1],le[2]);ie(ue,pe,_e)}}else if(z.includes("#")){const le=z.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(le))return;let ue,pe,_e;le.length===3?(ue=parseHexChannel(le[0]+le[0]),pe=parseHexChannel(le[1]+le[1]),_e=parseHexChannel(le[2]+le[2])):(le.length===6||le.length===8)&&(ue=parseHexChannel(le.slice(0,2)),pe=parseHexChannel(le.slice(2,4)),_e=parseHexChannel(le.slice(4,6))),le.length===8?this._alpha=parseHexChannel(le.slice(6))/255*100:(le.length===3||le.length===6)&&(this._alpha=100);const{h:Ce,s:$e,v:xe}=rgb2hsv(ue,pe,_e);ie(Ce,$e,xe)}}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:ie,_value:le,_alpha:ue,format:pe}=this;if(this.enableAlpha)switch(pe){case"hsl":{const _e=hsv2hsl(z,ie/100,le/100);this.value=`hsla(${z}, ${Math.round(_e[1]*100)}%, ${Math.round(_e[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${z}, ${Math.round(ie)}%, ${Math.round(le)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex$1(hsv2rgb(z,ie,le))}${hexOne(ue*255/100)}`;break}default:{const{r:_e,g:Ce,b:$e}=hsv2rgb(z,ie,le);this.value=`rgba(${_e}, ${Ce}, ${$e}, ${this.get("alpha")/100})`}}else switch(pe){case"hsl":{const _e=hsv2hsl(z,ie/100,le/100);this.value=`hsl(${z}, ${Math.round(_e[1]*100)}%, ${Math.round(_e[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${z}, ${Math.round(ie)}%, ${Math.round(le)}%)`;break}case"rgb":{const{r:_e,g:Ce,b:$e}=hsv2rgb(z,ie,le);this.value=`rgb(${_e}, ${Ce}, ${$e})`;break}default:this.value=toHex$1(hsv2rgb(z,ie,le))}}}const _sfc_main$1v=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup($){const z=useNamespace("color-predefine"),{currentColor:ie}=inject(colorPickerContextKey),le=ref(pe($.colors,$.color));watch(()=>ie.value,_e=>{const Ce=new Color;Ce.fromString(_e),le.value.forEach($e=>{$e.selected=Ce.compare($e)})}),watchEffect(()=>{le.value=pe($.colors,$.color)});function ue(_e){$.color.fromString($.colors[_e])}function pe(_e,Ce){return _e.map($e=>{const xe=new Color;return xe.enableAlpha=!0,xe.format="rgba",xe.fromString($e),xe.selected=xe.value===Ce.value,xe})}return{rgbaColors:le,handleSelect:ue,ns:z}}}),_hoisted_1$N=["onClick"];function _sfc_render$r($,z,ie,le,ue,pe){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.rgbaColors,(_e,Ce)=>(openBlock(),createElementBlock("div",{key:$.colors[Ce],class:normalizeClass([$.ns.e("color-selector"),$.ns.is("alpha",_e._alpha<100),{selected:_e.selected}]),onClick:$e=>$.handleSelect(Ce)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:_e.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"),ie=getCurrentInstance(),le=ref(0),ue=ref(0),pe=ref("hsl(0, 100%, 50%)"),_e=computed(()=>{const xe=$.color.get("hue"),Ie=$.color.get("value");return{hue:xe,value:Ie}});function Ce(){const xe=$.color.get("saturation"),Ie=$.color.get("value"),ze=ie.vnode.el,{clientWidth:Ue,clientHeight:qe}=ze;ue.value=xe*Ue/100,le.value=(100-Ie)*qe/100,pe.value=`hsl(${$.color.get("hue")}, 100%, 50%)`}function $e(xe){const ze=ie.vnode.el.getBoundingClientRect(),{clientX:Ue,clientY:qe}=getClientXY(xe);let Et=Ue-ze.left,Lt=qe-ze.top;Et=Math.max(0,Et),Et=Math.min(Et,ze.width),Lt=Math.max(0,Lt),Lt=Math.min(Lt,ze.height),ue.value=Et,le.value=Lt,$.color.set({saturation:Et/ze.width*100,value:100-Lt/ze.height*100})}return watch(()=>_e.value,()=>{Ce()}),onMounted(()=>{draggable(ie.vnode.el,{drag:xe=>{$e(xe)},end:xe=>{$e(xe)}}),Ce()}),{cursorTop:le,cursorLeft:ue,background:pe,colorValue:_e,handleDrag:$e,update:Ce,ns:z}}}),_hoisted_1$M=createBaseVNode("div",null,null,-1),_hoisted_2$w=[_hoisted_1$M];function _sfc_render$q($,z,ie,le,ue,pe){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:ie}){const le=$,{t:ue}=useLocale(),pe=useNamespace("color"),{formItem:_e}=useFormItem(),Ce=useFormSize(),$e=useFormDisabled(),{inputId:xe,isLabeledByFormItem:Ie}=useFormItemInputId(le,{formItemContext:_e}),ze=ref(),Ue=ref(),qe=ref(),Et=ref();let Lt=!0;const hn=reactive(new Color({enableAlpha:le.showAlpha,format:le.colorFormat||"",value:le.modelValue})),vn=ref(!1),_n=ref(!1),bn=ref(""),Sn=computed(()=>!le.modelValue&&!_n.value?"transparent":Tn(hn,le.showAlpha)),Cn=computed(()=>!le.modelValue&&!_n.value?"":hn.value),En=computed(()=>Ie.value?void 0:le.label||ue("el.colorpicker.defaultLabel")),$n=computed(()=>Ie.value?_e==null?void 0:_e.labelId:void 0),wn=computed(()=>[pe.b("picker"),pe.is("disabled",$e.value),pe.bm("picker",Ce.value)]);function Tn(Mn,zn){if(!(Mn instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:qn,g:Hn,b:Jn}=Mn.toRgb();return zn?`rgba(${qn}, ${Hn}, ${Jn}, ${Mn.get("alpha")/100})`:`rgb(${qn}, ${Hn}, ${Jn})`}function xn(Mn){vn.value=Mn}const Pn=debounce(xn,100);function kn(){$e.value||xn(!0)}function An(){Pn(!1),Nn()}function Nn(){nextTick(()=>{le.modelValue?hn.fromString(le.modelValue):(hn.value="",nextTick(()=>{_n.value=!1}))})}function Fn(){$e.value||Pn(!vn.value)}function Ln(){hn.fromString(bn.value)}function In(){const Mn=hn.value;ie(UPDATE_MODEL_EVENT,Mn),ie("change",Mn),le.validateEvent&&(_e==null||_e.validate("change").catch(zn=>void 0)),Pn(!1),nextTick(()=>{const zn=new Color({enableAlpha:le.showAlpha,format:le.colorFormat||"",value:le.modelValue});hn.compare(zn)||Nn()})}function Vn(){Pn(!1),ie(UPDATE_MODEL_EVENT,null),ie("change",null),le.modelValue!==null&&le.validateEvent&&(_e==null||_e.validate("change").catch(Mn=>void 0)),Nn()}return onMounted(()=>{le.modelValue&&(bn.value=Cn.value)}),watch(()=>le.modelValue,Mn=>{Mn?Mn&&Mn!==hn.value&&(Lt=!1,hn.fromString(Mn)):_n.value=!1}),watch(()=>Cn.value,Mn=>{bn.value=Mn,Lt&&ie("activeChange",Mn),Lt=!0}),watch(()=>hn.value,()=>{!le.modelValue&&!_n.value&&(_n.value=!0)}),watch(()=>vn.value,()=>{nextTick(()=>{var Mn,zn,qn;(Mn=ze.value)==null||Mn.update(),(zn=Ue.value)==null||zn.update(),(qn=qe.value)==null||qn.update()})}),provide(colorPickerContextKey,{currentColor:Cn}),z({color:hn,show:kn,hide:An}),(Mn,zn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:Et,visible:vn.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(pe).be("picker","panel"),unref(pe).b("dropdown"),Mn.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${unref(pe).namespace.value}-zoom-in-top`,persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass(unref(pe).be("dropdown","main-wrapper"))},[createVNode(HueSlider,{ref_key:"hue",ref:ze,class:"hue-slider",color:unref(hn),vertical:""},null,8,["color"]),createVNode(SvPanel,{ref:"svPanel",color:unref(hn)},null,8,["color"])],2),Mn.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alpha",ref:qe,color:unref(hn)},null,8,["color"])):createCommentVNode("v-if",!0),Mn.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine",color:unref(hn),colors:Mn.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).be("dropdown","value"))},[createVNode(unref(ElInput),{modelValue:bn.value,"onUpdate:modelValue":zn[0]||(zn[0]=qn=>bn.value=qn),"validate-event":!1,size:"small",onKeyup:withKeys(Ln,["enter"]),onBlur:Ln},null,8,["modelValue","onKeyup"])],2),createVNode(unref(ElButton),{class:normalizeClass(unref(pe).be("dropdown","link-btn")),text:"",size:"small",onClick:Vn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ue)("el.colorpicker.clear")),1)]),_:1},8,["class"]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(pe).be("dropdown","btn")),onClick:In},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ue)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[unref(ClickOutside),An]])]),default:withCtx(()=>[createBaseVNode("div",{id:unref(xe),class:normalizeClass(unref(wn)),role:"button","aria-label":unref(En),"aria-labelledby":unref($n),"aria-description":unref(ue)("el.colorpicker.description",{color:Mn.modelValue||""}),tabindex:Mn.tabindex,onKeydown:withKeys(Fn,["enter"])},[unref($e)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).be("picker","trigger")),onClick:Fn},[createBaseVNode("span",{class:normalizeClass([unref(pe).be("picker","color"),unref(pe).is("alpha",Mn.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(pe).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:unref(Sn)})},[withDirectives(createVNode(unref(ElIcon),{class:normalizeClass([unref(pe).be("picker","icon"),unref(pe).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,Mn.modelValue||_n.value]]),!Mn.modelValue&&!_n.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(pe).be("picker","empty"),unref(pe).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=$,ie=useSlots(),le=useNamespace("container"),ue=computed(()=>z.direction==="vertical"?!0:z.direction==="horizontal"?!1:ie&&ie.default?ie.default().some(_e=>{const Ce=_e.type.name;return Ce==="ElHeader"||Ce==="ElFooter"}):!1);return(pe,_e)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(le).b(),unref(le).is("vertical",unref(ue))])},[renderSlot(pe.$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=$,ie=useNamespace("aside"),le=computed(()=>z.width?ie.cssVarBlock({width:z.width}):{});return(ue,pe)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(ie).b()),style:normalizeStyle$1(unref(le))},[renderSlot(ue.$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=$,ie=useNamespace("footer"),le=computed(()=>z.height?ie.cssVarBlock({height:z.height}):{});return(ue,pe)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(ie).b()),style:normalizeStyle$1(unref(le))},[renderSlot(ue.$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=$,ie=useNamespace("header"),le=computed(()=>z.height?ie.cssVarBlock({height:z.height}):{});return(ue,pe)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(ie).b()),style:normalizeStyle$1(unref(le))},[renderSlot(ue.$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(ie,le)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(z).b())},[renderSlot(ie.$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(ie,le){$.exports=le()})(commonjsGlobal,function(){return function(ie,le){var ue=le.prototype,pe=ue.format;ue.format=function(_e){var Ce=this,$e=this.$locale();if(!this.isValid())return pe.bind(this)(_e);var xe=this.$utils(),Ie=(_e||"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(ze){switch(ze){case"Q":return Math.ceil((Ce.$M+1)/3);case"Do":return $e.ordinal(Ce.$D);case"gggg":return Ce.weekYear();case"GGGG":return Ce.isoWeekYear();case"wo":return $e.ordinal(Ce.week(),"W");case"w":case"ww":return xe.s(Ce.week(),ze==="w"?1:2,"0");case"W":case"WW":return xe.s(Ce.isoWeek(),ze==="W"?1:2,"0");case"k":case"kk":return xe.s(String(Ce.$H===0?24:Ce.$H),ze==="k"?1:2,"0");case"X":return Math.floor(Ce.$d.getTime()/1e3);case"x":return Ce.$d.getTime();case"z":return"["+Ce.offsetName()+"]";case"zzz":return"["+Ce.offsetName("long")+"]";default:return ze}});return pe.bind(this)(Ie)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function($,z){(function(ie,le){$.exports=le()})(commonjsGlobal,function(){var ie="week",le="year";return function(ue,pe,_e){var Ce=pe.prototype;Ce.week=function($e){if($e===void 0&&($e=null),$e!==null)return this.add(7*($e-this.week()),"day");var xe=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var Ie=_e(this).startOf(le).add(1,le).date(xe),ze=_e(this).endOf(ie);if(Ie.isBefore(ze))return 1}var Ue=_e(this).startOf(le).date(xe).startOf(ie).subtract(1,"millisecond"),qe=this.diff(Ue,ie,!0);return qe<0?_e(this).startOf("week").week():Math.ceil(qe)},Ce.weeks=function($e){return $e===void 0&&($e=null),this.week($e)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function($,z){(function(ie,le){$.exports=le()})(commonjsGlobal,function(){return function(ie,le){le.prototype.weekYear=function(){var ue=this.month(),pe=this.week(),_e=this.year();return pe===1&&ue===11?_e+1:ue===0&&pe>=52?_e-1:_e}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function($,z){(function(ie,le){$.exports=le()})(commonjsGlobal,function(){return function(ie,le,ue){le.prototype.dayOfYear=function(pe){var _e=Math.round((ue(this).startOf("day")-ue(this).startOf("year"))/864e5)+1;return pe==null?_e:this.add(pe-_e,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function($,z){(function(ie,le){$.exports=le()})(commonjsGlobal,function(){return function(ie,le){le.prototype.isSameOrAfter=function(ue,pe){return this.isSame(ue,pe)||this.isAfter(ue,pe)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function($,z){(function(ie,le){$.exports=le()})(commonjsGlobal,function(){return function(ie,le){le.prototype.isSameOrBefore=function(ue,pe){return this.isSame(ue,pe)||this.isBefore(ue,pe)}}})})(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,ie]=$;return dayjs.isDayjs(z)&&dayjs.isDayjs(ie)&&z.isSameOrBefore(ie)},getDefaultValue=($,{lang:z,unit:ie,unlinkPanels:le})=>{let ue;if(isArray$c($)){let[pe,_e]=$.map(Ce=>dayjs(Ce).locale(z));return le||(_e=pe.add(1,ie)),[pe,_e]}else $?ue=dayjs($):ue=dayjs();return ue=ue.locale(z),[ue,ue.add(1,ie)]},buildPickerTable=($,z,{columnIndexOffset:ie,startDate:le,nextEndDate:ue,now:pe,unit:_e,relativeDateGetter:Ce,setCellMetadata:$e,setRowMetadata:xe})=>{for(let Ie=0;Ie<$.row;Ie++){const ze=z[Ie];for(let Ue=0;Ue<$.column;Ue++){let qe=ze[Ue+ie];qe||(qe={row:Ie,column:Ue,type:"normal",inRange:!1,start:!1,end:!1});const Et=Ie*$.column+Ue,Lt=Ce(Et);qe.dayjs=Lt,qe.date=Lt.toDate(),qe.timestamp=Lt.valueOf(),qe.type="normal",qe.inRange=!!(le&&Lt.isSameOrAfter(le,_e)&&ue&&Lt.isSameOrBefore(ue,_e))||!!(le&&Lt.isSameOrBefore(le,_e)&&ue&&Lt.isSameOrAfter(ue,_e)),le!=null&&le.isSameOrAfter(ue)?(qe.start=!!ue&&Lt.isSame(ue,_e),qe.end=le&&Lt.isSame(le,_e)):(qe.start=!!le&&Lt.isSame(le,_e),qe.end=!!ue&&Lt.isSame(ue,_e)),Lt.isSame(pe,_e)&&(qe.type="today"),$e==null||$e(qe,{rowIndex:Ie,columnIndex:Ue}),ze[Ue+ie]=qe}xe==null||xe(ze)}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup($){const z=useNamespace("date-table-cell"),{slots:ie}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:le}=$;if(ie.default){const ue=ie.default(le).filter(pe=>pe.patchFlag!==-2&&pe.type.toString()!=="Symbol(Comment)");if(ue.length)return ue}return createVNode("div",{class:z.b()},[createVNode("span",{class:z.e("text")},[le==null?void 0:le.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:ie}){const le=$,ue=useNamespace("date-table"),{t:pe,lang:_e}=useLocale(),Ce=ref(),$e=ref(),xe=ref(),Ie=ref(),ze=ref([[],[],[],[],[],[]]);let Ue=!1;const qe=le.date.$locale().weekStart||7,Et=le.date.locale("en").localeData().weekdaysShort().map(Hn=>Hn.toLowerCase()),Lt=computed(()=>qe>3?7-qe:-qe),hn=computed(()=>{const Hn=le.date.startOf("month");return Hn.subtract(Hn.day()||7,"day")}),vn=computed(()=>Et.concat(Et).slice(qe,qe+7)),_n=computed(()=>flatten(wn.value).some(Hn=>Hn.isCurrent)),bn=computed(()=>{const Hn=le.date.startOf("month"),Jn=Hn.day()||7,ur=Hn.daysInMonth(),yr=Hn.subtract(1,"month").daysInMonth();return{startOfMonthDay:Jn,dateCountOfMonth:ur,dateCountOfLastMonth:yr}}),Sn=computed(()=>le.selectionMode==="dates"?castArray(le.parsedValue):[]),Cn=(Hn,{count:Jn,rowIndex:ur,columnIndex:yr})=>{const{startOfMonthDay:sr,dateCountOfMonth:Zn,dateCountOfLastMonth:Kn}=unref(bn),Wn=unref(Lt);if(ur>=0&&ur<=1){const nr=sr+Wn<0?7+sr+Wn:sr+Wn;if(yr+ur*7>=nr)return Hn.text=Jn,!0;Hn.text=Kn-(nr-yr%7)+1+ur*7,Hn.type="prev-month"}else return Jn<=Zn?Hn.text=Jn:(Hn.text=Jn-Zn,Hn.type="next-month"),!0;return!1},En=(Hn,{columnIndex:Jn,rowIndex:ur},yr)=>{const{disabledDate:sr,cellClassName:Zn}=le,Kn=unref(Sn),Wn=Cn(Hn,{count:yr,rowIndex:ur,columnIndex:Jn}),nr=Hn.dayjs.toDate();return Hn.selected=Kn.find(fr=>fr.valueOf()===Hn.dayjs.valueOf()),Hn.isSelected=!!Hn.selected,Hn.isCurrent=Pn(Hn),Hn.disabled=sr==null?void 0:sr(nr),Hn.customClass=Zn==null?void 0:Zn(nr),Wn},$n=Hn=>{if(le.selectionMode==="week"){const[Jn,ur]=le.showWeekNumber?[1,7]:[0,6],yr=qn(Hn[Jn+1]);Hn[Jn].inRange=yr,Hn[Jn].start=yr,Hn[ur].inRange=yr,Hn[ur].end=yr}},wn=computed(()=>{const{minDate:Hn,maxDate:Jn,rangeState:ur,showWeekNumber:yr}=le,sr=Lt.value,Zn=ze.value,Kn="day";let Wn=1;if(yr)for(let nr=0;nr<6;nr++)Zn[nr][0]||(Zn[nr][0]={type:"week",text:hn.value.add(nr*7+1,Kn).week()});return buildPickerTable({row:6,column:7},Zn,{startDate:Hn,columnIndexOffset:yr?1:0,nextEndDate:ur.endDate||Jn||ur.selecting&&Hn||null,now:dayjs().locale(unref(_e)).startOf(Kn),unit:Kn,relativeDateGetter:nr=>hn.value.add(nr-sr,Kn),setCellMetadata:(...nr)=>{En(...nr,Wn)&&(Wn+=1)},setRowMetadata:$n}),Zn});watch(()=>le.date,async()=>{var Hn,Jn;(Hn=Ce.value)!=null&&Hn.contains(document.activeElement)&&(await nextTick(),(Jn=$e.value)==null||Jn.focus())});const Tn=async()=>{var Hn;(Hn=$e.value)==null||Hn.focus()},xn=(Hn="")=>["normal","today"].includes(Hn),Pn=Hn=>le.selectionMode==="date"&&xn(Hn.type)&&kn(Hn,le.parsedValue),kn=(Hn,Jn)=>Jn?dayjs(Jn).locale(_e.value).isSame(le.date.date(Number(Hn.text)),"day"):!1,An=Hn=>{const Jn=[];return xn(Hn.type)&&!Hn.disabled?(Jn.push("available"),Hn.type==="today"&&Jn.push("today")):Jn.push(Hn.type),Pn(Hn)&&Jn.push("current"),Hn.inRange&&(xn(Hn.type)||le.selectionMode==="week")&&(Jn.push("in-range"),Hn.start&&Jn.push("start-date"),Hn.end&&Jn.push("end-date")),Hn.disabled&&Jn.push("disabled"),Hn.selected&&Jn.push("selected"),Hn.customClass&&Jn.push(Hn.customClass),Jn.join(" ")},Nn=(Hn,Jn)=>{const ur=Hn*7+(Jn-(le.showWeekNumber?1:0))-Lt.value;return hn.value.add(ur,"day")},Fn=Hn=>{var Jn;if(!le.rangeState.selecting)return;let ur=Hn.target;if(ur.tagName==="SPAN"&&(ur=(Jn=ur.parentNode)==null?void 0:Jn.parentNode),ur.tagName==="DIV"&&(ur=ur.parentNode),ur.tagName!=="TD")return;const yr=ur.parentNode.rowIndex-1,sr=ur.cellIndex;wn.value[yr][sr].disabled||(yr!==xe.value||sr!==Ie.value)&&(xe.value=yr,Ie.value=sr,ie("changerange",{selecting:!0,endDate:Nn(yr,sr)}))},Ln=Hn=>!_n.value&&(Hn==null?void 0:Hn.text)===1&&Hn.type==="normal"||Hn.isCurrent,In=Hn=>{Ue||_n.value||le.selectionMode!=="date"||zn(Hn,!0)},Vn=Hn=>{Hn.target.closest("td")&&(Ue=!0)},Mn=Hn=>{Hn.target.closest("td")&&(Ue=!1)},zn=(Hn,Jn=!1)=>{const ur=Hn.target.closest("td");if(!ur)return;const yr=ur.parentNode.rowIndex-1,sr=ur.cellIndex,Zn=wn.value[yr][sr];if(Zn.disabled||Zn.type==="week")return;const Kn=Nn(yr,sr);if(le.selectionMode==="range")!le.rangeState.selecting||!le.minDate?(ie("pick",{minDate:Kn,maxDate:null}),ie("select",!0)):(Kn>=le.minDate?ie("pick",{minDate:le.minDate,maxDate:Kn}):ie("pick",{minDate:Kn,maxDate:le.minDate}),ie("select",!1));else if(le.selectionMode==="date")ie("pick",Kn,Jn);else if(le.selectionMode==="week"){const Wn=Kn.week(),nr=`${Kn.year()}w${Wn}`;ie("pick",{year:Kn.year(),week:Wn,value:nr,date:Kn.startOf("week")})}else if(le.selectionMode==="dates"){const Wn=Zn.selected?castArray(le.parsedValue).filter(nr=>(nr==null?void 0:nr.valueOf())!==Kn.valueOf()):castArray(le.parsedValue).concat([Kn]);ie("pick",Wn)}},qn=Hn=>{if(le.selectionMode!=="week")return!1;let Jn=le.date.startOf("day");if(Hn.type==="prev-month"&&(Jn=Jn.subtract(1,"month")),Hn.type==="next-month"&&(Jn=Jn.add(1,"month")),Jn=Jn.date(Number.parseInt(Hn.text,10)),le.parsedValue&&!Array.isArray(le.parsedValue)){const ur=(le.parsedValue.day()-qe+7)%7-1;return le.parsedValue.subtract(ur,"day").isSame(Jn,"day")}return!1};return z({focus:Tn}),(Hn,Jn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(pe)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref(ue).b(),{"is-week-mode":Hn.selectionMode==="week"}]),onClick:zn,onMousemove:Fn,onMousedown:withModifiers(Vn,["prevent"]),onMouseup:Mn},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:Ce},[createBaseVNode("tr",null,[Hn.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$v,toDisplayString$1(unref(pe)("el.datepicker.week")),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(vn),(ur,yr)=>(openBlock(),createElementBlock("th",{key:yr,scope:"col","aria-label":unref(pe)("el.datepicker.weeksFull."+ur)},toDisplayString$1(unref(pe)("el.datepicker.weeks."+ur)),9,_hoisted_3$i))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(wn),(ur,yr)=>(openBlock(),createElementBlock("tr",{key:yr,class:normalizeClass([unref(ue).e("row"),{current:qn(ur[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ur,(sr,Zn)=>(openBlock(),createElementBlock("td",{key:`${yr}.${Zn}`,ref_for:!0,ref:Kn=>Ln(sr)&&($e.value=Kn),class:normalizeClass(An(sr)),"aria-current":sr.isCurrent?"date":void 0,"aria-selected":sr.isCurrent,tabindex:Ln(sr)?0:-1,onFocus:In},[createVNode(unref(ElDatePickerCell),{cell:sr},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:ie}){const le=$,ue=(Sn,Cn,En)=>{const $n=dayjs().locale(En).startOf("month").month(Cn).year(Sn),wn=$n.daysInMonth();return rangeArr(wn).map(Tn=>$n.add(Tn,"day").toDate())},pe=useNamespace("month-table"),{t:_e,lang:Ce}=useLocale(),$e=ref(),xe=ref(),Ie=ref(le.date.locale("en").localeData().monthsShort().map(Sn=>Sn.toLowerCase())),ze=ref([[],[],[]]),Ue=ref(),qe=ref(),Et=computed(()=>{var Sn,Cn;const En=ze.value,$n=dayjs().locale(Ce.value).startOf("month");for(let wn=0;wn<3;wn++){const Tn=En[wn];for(let xn=0;xn<4;xn++){const Pn=Tn[xn]||(Tn[xn]={row:wn,column:xn,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});Pn.type="normal";const kn=wn*4+xn,An=le.date.startOf("year").month(kn),Nn=le.rangeState.endDate||le.maxDate||le.rangeState.selecting&&le.minDate||null;Pn.inRange=!!(le.minDate&&An.isSameOrAfter(le.minDate,"month")&&Nn&&An.isSameOrBefore(Nn,"month"))||!!(le.minDate&&An.isSameOrBefore(le.minDate,"month")&&Nn&&An.isSameOrAfter(Nn,"month")),(Sn=le.minDate)!=null&&Sn.isSameOrAfter(Nn)?(Pn.start=!!(Nn&&An.isSame(Nn,"month")),Pn.end=le.minDate&&An.isSame(le.minDate,"month")):(Pn.start=!!(le.minDate&&An.isSame(le.minDate,"month")),Pn.end=!!(Nn&&An.isSame(Nn,"month"))),$n.isSame(An)&&(Pn.type="today"),Pn.text=kn,Pn.disabled=((Cn=le.disabledDate)==null?void 0:Cn.call(le,An.toDate()))||!1}}return En}),Lt=()=>{var Sn;(Sn=xe.value)==null||Sn.focus()},hn=Sn=>{const Cn={},En=le.date.year(),$n=new Date,wn=Sn.text;return Cn.disabled=le.disabledDate?ue(En,wn,Ce.value).every(le.disabledDate):!1,Cn.current=castArray(le.parsedValue).findIndex(Tn=>dayjs.isDayjs(Tn)&&Tn.year()===En&&Tn.month()===wn)>=0,Cn.today=$n.getFullYear()===En&&$n.getMonth()===wn,Sn.inRange&&(Cn["in-range"]=!0,Sn.start&&(Cn["start-date"]=!0),Sn.end&&(Cn["end-date"]=!0)),Cn},vn=Sn=>{const Cn=le.date.year(),En=Sn.text;return castArray(le.date).findIndex($n=>$n.year()===Cn&&$n.month()===En)>=0},_n=Sn=>{var Cn;if(!le.rangeState.selecting)return;let En=Sn.target;if(En.tagName==="A"&&(En=(Cn=En.parentNode)==null?void 0:Cn.parentNode),En.tagName==="DIV"&&(En=En.parentNode),En.tagName!=="TD")return;const $n=En.parentNode.rowIndex,wn=En.cellIndex;Et.value[$n][wn].disabled||($n!==Ue.value||wn!==qe.value)&&(Ue.value=$n,qe.value=wn,ie("changerange",{selecting:!0,endDate:le.date.startOf("year").month($n*4+wn)}))},bn=Sn=>{var Cn;const En=(Cn=Sn.target)==null?void 0:Cn.closest("td");if((En==null?void 0:En.tagName)!=="TD"||hasClass(En,"disabled"))return;const $n=En.cellIndex,Tn=En.parentNode.rowIndex*4+$n,xn=le.date.startOf("year").month(Tn);le.selectionMode==="range"?le.rangeState.selecting?(le.minDate&&xn>=le.minDate?ie("pick",{minDate:le.minDate,maxDate:xn}):ie("pick",{minDate:xn,maxDate:le.minDate}),ie("select",!1)):(ie("pick",{minDate:xn,maxDate:null}),ie("select",!0)):ie("pick",Tn)};return watch(()=>le.date,async()=>{var Sn,Cn;(Sn=$e.value)!=null&&Sn.contains(document.activeElement)&&(await nextTick(),(Cn=xe.value)==null||Cn.focus())}),z({focus:Lt}),(Sn,Cn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(_e)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(pe).b()),onClick:bn,onMousemove:_n},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:$e},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Et),(En,$n)=>(openBlock(),createElementBlock("tr",{key:$n},[(openBlock(!0),createElementBlock(Fragment,null,renderList(En,(wn,Tn)=>(openBlock(),createElementBlock("td",{key:Tn,ref_for:!0,ref:xn=>vn(wn)&&(xe.value=xn),class:normalizeClass(hn(wn)),"aria-selected":`${vn(wn)}`,"aria-label":unref(_e)(`el.datepicker.month${+wn.text+1}`),tabindex:vn(wn)?0:-1,onKeydown:[withKeys(withModifiers(bn,["prevent","stop"]),["space"]),withKeys(withModifiers(bn,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$h,toDisplayString$1(unref(_e)("el.datepicker.months."+Ie.value[wn.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:ie}){const le=$,ue=(Lt,hn)=>{const vn=dayjs(String(Lt)).locale(hn).startOf("year"),bn=vn.endOf("year").dayOfYear();return rangeArr(bn).map(Sn=>vn.add(Sn,"day").toDate())},pe=useNamespace("year-table"),{t:_e,lang:Ce}=useLocale(),$e=ref(),xe=ref(),Ie=computed(()=>Math.floor(le.date.year()/10)*10),ze=()=>{var Lt;(Lt=xe.value)==null||Lt.focus()},Ue=Lt=>{const hn={},vn=dayjs().locale(Ce.value);return hn.disabled=le.disabledDate?ue(Lt,Ce.value).every(le.disabledDate):!1,hn.current=castArray(le.parsedValue).findIndex(_n=>_n.year()===Lt)>=0,hn.today=vn.year()===Lt,hn},qe=Lt=>Lt===Ie.value&&le.date.year()<Ie.value&&le.date.year()>Ie.value+9||castArray(le.date).findIndex(hn=>hn.year()===Lt)>=0,Et=Lt=>{const vn=Lt.target.closest("td");if(vn&&vn.textContent){if(hasClass(vn,"disabled"))return;const _n=vn.textContent||vn.innerText;ie("pick",Number(_n))}};return watch(()=>le.date,async()=>{var Lt,hn;(Lt=$e.value)!=null&&Lt.contains(document.activeElement)&&(await nextTick(),(hn=xe.value)==null||hn.focus())}),z({focus:ze}),(Lt,hn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(_e)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(pe).b()),onClick:Et},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:$e},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(vn,_n)=>createBaseVNode("tr",{key:_n},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(bn,Sn)=>(openBlock(),createElementBlock(Fragment,{key:_n+"_"+Sn},[_n*4+Sn<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:Cn=>qe(unref(Ie)+_n*4+Sn)&&(xe.value=Cn),class:normalizeClass(["available",Ue(unref(Ie)+_n*4+Sn)]),"aria-selected":`${qe(unref(Ie)+_n*4+Sn)}`,tabindex:qe(unref(Ie)+_n*4+Sn)?0:-1,onKeydown:[withKeys(withModifiers(Et,["prevent","stop"]),["space"]),withKeys(withModifiers(Et,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$g,toDisplayString$1(unref(Ie)+_n*4+Sn),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 ie=$,le=(Sr,Er,cr)=>!0,ue=useNamespace("picker-panel"),pe=useNamespace("date-picker"),_e=useAttrs$1(),Ce=useSlots(),{t:$e,lang:xe}=useLocale(),Ie=inject("EP_PICKER_BASE"),ze=inject(TOOLTIP_INJECTION_KEY),{shortcuts:Ue,disabledDate:qe,cellClassName:Et,defaultTime:Lt,arrowControl:hn}=Ie.props,vn=toRef$1(Ie.props,"defaultValue"),_n=ref(),bn=ref(dayjs().locale(xe.value)),Sn=ref(!1),Cn=computed(()=>dayjs(Lt).locale(xe.value)),En=computed(()=>bn.value.month()),$n=computed(()=>bn.value.year()),wn=ref([]),Tn=ref(null),xn=ref(null),Pn=Sr=>wn.value.length>0?le(Sr,wn.value,ie.format||"HH:mm:ss"):!0,kn=Sr=>Lt&&!Gn.value&&!Sn.value?Cn.value.year(Sr.year()).month(Sr.month()).date(Sr.date()):sr.value?Sr.millisecond(0):Sr.startOf("day"),An=(Sr,...Er)=>{if(!Sr)z("pick",Sr,...Er);else if(isArray$c(Sr)){const cr=Sr.map(kn);z("pick",cr,...Er)}else z("pick",kn(Sr),...Er);Tn.value=null,xn.value=null,Sn.value=!1},Nn=(Sr,Er)=>{if(zn.value==="date"){Sr=Sr;let cr=ie.parsedValue?ie.parsedValue.year(Sr.year()).month(Sr.month()).date(Sr.date()):Sr;Pn(cr)||(cr=wn.value[0][0].year(Sr.year()).month(Sr.month()).date(Sr.date())),bn.value=cr,An(cr,sr.value||Er)}else zn.value==="week"?An(Sr.date):zn.value==="dates"&&An(Sr,!0)},Fn=Sr=>{const Er=Sr?"add":"subtract";bn.value=bn.value[Er](1,"month"),Rr("month")},Ln=Sr=>{const Er=bn.value,cr=Sr?"add":"subtract";bn.value=In.value==="year"?Er[cr](10,"year"):Er[cr](1,"year"),Rr("year")},In=ref("date"),Vn=computed(()=>{const Sr=$e("el.datepicker.year");if(In.value==="year"){const Er=Math.floor($n.value/10)*10;return Sr?`${Er} ${Sr} - ${Er+9} ${Sr}`:`${Er} - ${Er+9}`}return`${$n.value} ${Sr}`}),Mn=Sr=>{const Er=isFunction$5(Sr.value)?Sr.value():Sr.value;if(Er){An(dayjs(Er).locale(xe.value));return}Sr.onClick&&Sr.onClick({attrs:_e,slots:Ce,emit:z})},zn=computed(()=>{const{type:Sr}=ie;return["week","month","year","dates"].includes(Sr)?Sr:"date"}),qn=computed(()=>zn.value==="date"?In.value:zn.value),Hn=computed(()=>!!Ue.length),Jn=async Sr=>{bn.value=bn.value.startOf("month").month(Sr),zn.value==="month"?An(bn.value,!1):(In.value="date",["month","year","date","week"].includes(zn.value)&&(An(bn.value,!0),await nextTick(),Or())),Rr("month")},ur=async Sr=>{zn.value==="year"?(bn.value=bn.value.startOf("year").year(Sr),An(bn.value,!1)):(bn.value=bn.value.year(Sr),In.value="month",["month","year","date","week"].includes(zn.value)&&(An(bn.value,!0),await nextTick(),Or())),Rr("year")},yr=async Sr=>{In.value=Sr,await nextTick(),Or()},sr=computed(()=>ie.type==="datetime"||ie.type==="datetimerange"),Zn=computed(()=>sr.value||zn.value==="dates"),Kn=()=>{if(zn.value==="dates")An(ie.parsedValue);else{let Sr=ie.parsedValue;if(!Sr){const Er=dayjs(Lt).locale(xe.value),cr=hr();Sr=Er.year(cr.year()).month(cr.month()).date(cr.date())}bn.value=Sr,An(Sr)}},Wn=()=>{const Er=dayjs().locale(xe.value).toDate();Sn.value=!0,(!qe||!qe(Er))&&Pn(Er)&&(bn.value=dayjs().locale(xe.value),An(bn.value))},nr=computed(()=>extractTimeFormat(ie.format)),fr=computed(()=>extractDateFormat(ie.format)),Gn=computed(()=>{if(xn.value)return xn.value;if(!(!ie.parsedValue&&!vn.value))return(ie.parsedValue||bn.value).format(nr.value)}),Xn=computed(()=>{if(Tn.value)return Tn.value;if(!(!ie.parsedValue&&!vn.value))return(ie.parsedValue||bn.value).format(fr.value)}),or=ref(!1),vr=()=>{or.value=!0},_r=()=>{or.value=!1},ir=Sr=>({hour:Sr.hour(),minute:Sr.minute(),second:Sr.second(),year:Sr.year(),month:Sr.month(),date:Sr.date()}),Pr=(Sr,Er,cr)=>{const{hour:Qn,minute:ar,second:$r}=ir(Sr),Ir=ie.parsedValue?ie.parsedValue.hour(Qn).minute(ar).second($r):Sr;bn.value=Ir,An(bn.value,!0),cr||(or.value=Er)},gr=Sr=>{const Er=dayjs(Sr,nr.value).locale(xe.value);if(Er.isValid()&&Pn(Er)){const{year:cr,month:Qn,date:ar}=ir(bn.value);bn.value=Er.year(cr).month(Qn).date(ar),xn.value=null,or.value=!1,An(bn.value,!0)}},kr=Sr=>{const Er=dayjs(Sr,fr.value).locale(xe.value);if(Er.isValid()){if(qe&&qe(Er.toDate()))return;const{hour:cr,minute:Qn,second:ar}=ir(bn.value);bn.value=Er.hour(cr).minute(Qn).second(ar),Tn.value=null,An(bn.value,!0)}},pr=Sr=>dayjs.isDayjs(Sr)&&Sr.isValid()&&(qe?!qe(Sr.toDate()):!0),lr=Sr=>zn.value==="dates"?Sr.map(Er=>Er.format(ie.format)):Sr.format(ie.format),dr=Sr=>dayjs(Sr,ie.format).locale(xe.value),hr=()=>{const Sr=dayjs(vn.value).locale(xe.value);if(!vn.value){const Er=Cn.value;return dayjs().hour(Er.hour()).minute(Er.minute()).second(Er.second()).locale(xe.value)}return Sr},Or=async()=>{var Sr;["week","month","year","date"].includes(zn.value)&&((Sr=_n.value)==null||Sr.focus(),zn.value==="week"&&Br(EVENT_CODE.down))},Lr=Sr=>{const{code:Er}=Sr;[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(Er)&&(Br(Er),Sr.stopPropagation(),Sr.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(Er)&&Tn.value===null&&xn.value===null&&(Sr.preventDefault(),An(bn.value,!1))},Br=Sr=>{var Er;const{up:cr,down:Qn,left:ar,right:$r,home:Ir,end:Hr,pageUp:br,pageDown:Mr}=EVENT_CODE,Ur={year:{[cr]:-4,[Qn]:4,[ar]:-1,[$r]:1,offset:(Wr,Zr)=>Wr.setFullYear(Wr.getFullYear()+Zr)},month:{[cr]:-4,[Qn]:4,[ar]:-1,[$r]:1,offset:(Wr,Zr)=>Wr.setMonth(Wr.getMonth()+Zr)},week:{[cr]:-1,[Qn]:1,[ar]:-1,[$r]:1,offset:(Wr,Zr)=>Wr.setDate(Wr.getDate()+Zr*7)},date:{[cr]:-7,[Qn]:7,[ar]:-1,[$r]:1,[Ir]:Wr=>-Wr.getDay(),[Hr]:Wr=>-Wr.getDay()+6,[br]:Wr=>-new Date(Wr.getFullYear(),Wr.getMonth(),0).getDate(),[Mr]:Wr=>new Date(Wr.getFullYear(),Wr.getMonth()+1,0).getDate(),offset:(Wr,Zr)=>Wr.setDate(Wr.getDate()+Zr)}},jr=bn.value.toDate();for(;Math.abs(bn.value.diff(jr,"year",!0))<1;){const Wr=Ur[qn.value];if(!Wr)return;if(Wr.offset(jr,isFunction$5(Wr[Sr])?Wr[Sr](jr):(Er=Wr[Sr])!=null?Er:0),qe&&qe(jr))break;const Zr=dayjs(jr).locale(xe.value);bn.value=Zr,z("pick",Zr,!0);break}},Rr=Sr=>{z("panel-change",bn.value.toDate(),Sr,In.value)};return watch(()=>zn.value,Sr=>{if(["month","year"].includes(Sr)){In.value=Sr;return}In.value="date"},{immediate:!0}),watch(()=>In.value,()=>{ze==null||ze.updatePopper()}),watch(()=>vn.value,Sr=>{Sr&&(bn.value=hr())},{immediate:!0}),watch(()=>ie.parsedValue,Sr=>{if(Sr){if(zn.value==="dates"||Array.isArray(Sr))return;bn.value=Sr}else bn.value=hr()},{immediate:!0}),z("set-picker-option",["isValidValue",pr]),z("set-picker-option",["formatToString",lr]),z("set-picker-option",["parseUserInput",dr]),z("set-picker-option",["handleFocusPicker",Or]),(Sr,Er)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ue).b(),unref(pe).b(),{"has-sidebar":Sr.$slots.sidebar||unref(Hn),"has-time":unref(sr)}])},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("body-wrapper"))},[renderSlot(Sr.$slots,"sidebar",{class:normalizeClass(unref(ue).e("sidebar"))}),unref(Hn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ue),(cr,Qn)=>(openBlock(),createElementBlock("button",{key:Qn,type:"button",class:normalizeClass(unref(ue).e("shortcut")),onClick:ar=>Mn(cr)},toDisplayString$1(cr.text),11,_hoisted_1$H))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ue).e("body"))},[unref(sr)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref($e)("el.datepicker.selectDate"),"model-value":unref(Xn),size:"small","validate-event":!1,onInput:Er[0]||(Er[0]=cr=>Tn.value=cr),onChange:kr},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(pe).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref($e)("el.datepicker.selectTime"),"model-value":unref(Gn),size:"small","validate-event":!1,onFocus:vr,onInput:Er[1]||(Er[1]=cr=>xn.value=cr),onChange:gr},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:or.value,format:unref(nr),"time-arrow-control":unref(hn),"parsed-value":bn.value,onPick:Pr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),_r]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(pe).e("header"),(In.value==="year"||In.value==="month")&&unref(pe).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(ue).e("icon-btn")]),onClick:Er[2]||(Er[2]=cr=>Ln(!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($e)("el.datepicker.prevMonth"),class:normalizeClass([unref(ue).e("icon-btn"),"arrow-left"]),onClick:Er[3]||(Er[3]=cr=>Fn(!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(pe).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Er[4]||(Er[4]=withKeys(cr=>yr("year"),["enter"])),onClick:Er[5]||(Er[5]=cr=>yr("year"))},toDisplayString$1(unref(Vn)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(pe).e("header-label"),{active:In.value==="month"}]),onKeydown:Er[6]||(Er[6]=withKeys(cr=>yr("month"),["enter"])),onClick:Er[7]||(Er[7]=cr=>yr("month"))},toDisplayString$1(unref($e)(`el.datepicker.month${unref(En)+1}`)),35),[[vShow,In.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(pe).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.nextMonth"),class:normalizeClass([unref(ue).e("icon-btn"),"arrow-right"]),onClick:Er[8]||(Er[8]=cr=>Fn(!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($e)("el.datepicker.nextYear"),class:normalizeClass([unref(ue).e("icon-btn"),"d-arrow-right"]),onClick:Er[9]||(Er[9]=cr=>Ln(!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(ue).e("content")),onKeydown:Lr},[In.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:_n,"selection-mode":unref(zn),date:bn.value,"parsed-value":Sr.parsedValue,"disabled-date":unref(qe),"cell-class-name":unref(Et),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:_n,date:bn.value,"disabled-date":unref(qe),"parsed-value":Sr.parsedValue,onPick:ur},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),In.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:_n,date:bn.value,"parsed-value":Sr.parsedValue,"disabled-date":unref(qe),onPick:Jn},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",!0)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ue).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref(ue).e("link-btn")),onClick:Wn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.now")),1)]),_:1},8,["class"]),[[vShow,unref(zn)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(ue).e("link-btn")),onClick:Kn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[vShow,unref(Zn)&&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(),ie=useAttrs$1(),le=useSlots();return pe=>{const _e=isFunction$5(pe.value)?pe.value():pe.value;if(_e){z("pick",[dayjs(_e[0]).locale($.value),dayjs(_e[1]).locale($.value)]);return}pe.onClick&&pe.onClick({attrs:ie,slots:le,emit:z})}},useRangePicker=($,{defaultValue:z,leftDate:ie,rightDate:le,unit:ue,onParsedValueChanged:pe})=>{const{emit:_e}=getCurrentInstance(),{pickerNs:Ce}=inject(ROOT_PICKER_INJECTION_KEY),$e=useNamespace("date-range-picker"),{t:xe,lang:Ie}=useLocale(),ze=useShortcut(Ie),Ue=ref(),qe=ref(),Et=ref({endDate:null,selecting:!1}),Lt=bn=>{Et.value=bn},hn=(bn=!1)=>{const Sn=unref(Ue),Cn=unref(qe);isValidRange([Sn,Cn])&&_e("pick",[Sn,Cn],bn)},vn=bn=>{Et.value.selecting=bn,bn||(Et.value.endDate=null)},_n=()=>{const[bn,Sn]=getDefaultValue(unref(z),{lang:unref(Ie),unit:ue,unlinkPanels:$.unlinkPanels});Ue.value=void 0,qe.value=void 0,ie.value=bn,le.value=Sn};return watch(z,bn=>{bn&&_n()},{immediate:!0}),watch(()=>$.parsedValue,bn=>{if(isArray$c(bn)&&bn.length===2){const[Sn,Cn]=bn;Ue.value=Sn,ie.value=Sn,qe.value=Cn,pe(unref(Ue),unref(qe))}else _n()},{immediate:!0}),{minDate:Ue,maxDate:qe,rangeState:Et,lang:Ie,ppNs:Ce,drpNs:$e,handleChangeRange:Lt,handleRangeConfirm:hn,handleShortcutClick:ze,onSelect:vn,t:xe}},_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 ie=$,le=inject("EP_PICKER_BASE"),{disabledDate:ue,cellClassName:pe,format:_e,defaultTime:Ce,arrowControl:$e,clearable:xe}=le.props,Ie=toRef$1(le.props,"shortcuts"),ze=toRef$1(le.props,"defaultValue"),{lang:Ue}=useLocale(),qe=ref(dayjs().locale(Ue.value)),Et=ref(dayjs().locale(Ue.value).add(1,unit$1)),{minDate:Lt,maxDate:hn,rangeState:vn,ppNs:_n,drpNs:bn,handleChangeRange:Sn,handleRangeConfirm:Cn,handleShortcutClick:En,onSelect:$n,t:wn}=useRangePicker(ie,{defaultValue:ze,leftDate:qe,rightDate:Et,unit:unit$1,onParsedValueChanged:Qn}),Tn=ref({min:null,max:null}),xn=ref({min:null,max:null}),Pn=computed(()=>`${qe.value.year()} ${wn("el.datepicker.year")} ${wn(`el.datepicker.month${qe.value.month()+1}`)}`),kn=computed(()=>`${Et.value.year()} ${wn("el.datepicker.year")} ${wn(`el.datepicker.month${Et.value.month()+1}`)}`),An=computed(()=>qe.value.year()),Nn=computed(()=>qe.value.month()),Fn=computed(()=>Et.value.year()),Ln=computed(()=>Et.value.month()),In=computed(()=>!!Ie.value.length),Vn=computed(()=>Tn.value.min!==null?Tn.value.min:Lt.value?Lt.value.format(Jn.value):""),Mn=computed(()=>Tn.value.max!==null?Tn.value.max:hn.value||Lt.value?(hn.value||Lt.value).format(Jn.value):""),zn=computed(()=>xn.value.min!==null?xn.value.min:Lt.value?Lt.value.format(Hn.value):""),qn=computed(()=>xn.value.max!==null?xn.value.max:hn.value||Lt.value?(hn.value||Lt.value).format(Hn.value):""),Hn=computed(()=>extractTimeFormat(_e)),Jn=computed(()=>extractDateFormat(_e)),ur=()=>{qe.value=qe.value.subtract(1,"year"),ie.unlinkPanels||(Et.value=qe.value.add(1,"month")),Gn("year")},yr=()=>{qe.value=qe.value.subtract(1,"month"),ie.unlinkPanels||(Et.value=qe.value.add(1,"month")),Gn("month")},sr=()=>{ie.unlinkPanels?Et.value=Et.value.add(1,"year"):(qe.value=qe.value.add(1,"year"),Et.value=qe.value.add(1,"month")),Gn("year")},Zn=()=>{ie.unlinkPanels?Et.value=Et.value.add(1,"month"):(qe.value=qe.value.add(1,"month"),Et.value=qe.value.add(1,"month")),Gn("month")},Kn=()=>{qe.value=qe.value.add(1,"year"),Gn("year")},Wn=()=>{qe.value=qe.value.add(1,"month"),Gn("month")},nr=()=>{Et.value=Et.value.subtract(1,"year"),Gn("year")},fr=()=>{Et.value=Et.value.subtract(1,"month"),Gn("month")},Gn=ar=>{z("panel-change",[qe.value.toDate(),Et.value.toDate()],ar)},Xn=computed(()=>{const ar=(Nn.value+1)%12,$r=Nn.value+1>=12?1:0;return ie.unlinkPanels&&new Date(An.value+$r,ar)<new Date(Fn.value,Ln.value)}),or=computed(()=>ie.unlinkPanels&&Fn.value*12+Ln.value-(An.value*12+Nn.value+1)>=12),vr=computed(()=>!(Lt.value&&hn.value&&!vn.value.selecting&&isValidRange([Lt.value,hn.value]))),_r=computed(()=>ie.type==="datetime"||ie.type==="datetimerange"),ir=(ar,$r)=>{if(ar)return Ce?dayjs(Ce[$r]||Ce).locale(Ue.value).year(ar.year()).month(ar.month()).date(ar.date()):ar},Pr=(ar,$r=!0)=>{const Ir=ar.minDate,Hr=ar.maxDate,br=ir(Ir,0),Mr=ir(Hr,1);hn.value===Mr&&Lt.value===br||(z("calendar-change",[Ir.toDate(),Hr&&Hr.toDate()]),hn.value=Mr,Lt.value=br,!(!$r||_r.value)&&Cn())},gr=ref(!1),kr=ref(!1),pr=()=>{gr.value=!1},lr=()=>{kr.value=!1},dr=(ar,$r)=>{Tn.value[$r]=ar;const Ir=dayjs(ar,Jn.value).locale(Ue.value);if(Ir.isValid()){if(ue&&ue(Ir.toDate()))return;$r==="min"?(qe.value=Ir,Lt.value=(Lt.value||qe.value).year(Ir.year()).month(Ir.month()).date(Ir.date()),ie.unlinkPanels||(Et.value=Ir.add(1,"month"),hn.value=Lt.value.add(1,"month"))):(Et.value=Ir,hn.value=(hn.value||Et.value).year(Ir.year()).month(Ir.month()).date(Ir.date()),ie.unlinkPanels||(qe.value=Ir.subtract(1,"month"),Lt.value=hn.value.subtract(1,"month")))}},hr=(ar,$r)=>{Tn.value[$r]=null},Or=(ar,$r)=>{xn.value[$r]=ar;const Ir=dayjs(ar,Hn.value).locale(Ue.value);Ir.isValid()&&($r==="min"?(gr.value=!0,Lt.value=(Lt.value||qe.value).hour(Ir.hour()).minute(Ir.minute()).second(Ir.second()),(!hn.value||hn.value.isBefore(Lt.value))&&(hn.value=Lt.value)):(kr.value=!0,hn.value=(hn.value||Et.value).hour(Ir.hour()).minute(Ir.minute()).second(Ir.second()),Et.value=hn.value,hn.value&&hn.value.isBefore(Lt.value)&&(Lt.value=hn.value)))},Lr=(ar,$r)=>{xn.value[$r]=null,$r==="min"?(qe.value=Lt.value,gr.value=!1):(Et.value=hn.value,kr.value=!1)},Br=(ar,$r,Ir)=>{xn.value.min||(ar&&(qe.value=ar,Lt.value=(Lt.value||qe.value).hour(ar.hour()).minute(ar.minute()).second(ar.second())),Ir||(gr.value=$r),(!hn.value||hn.value.isBefore(Lt.value))&&(hn.value=Lt.value,Et.value=ar))},Rr=(ar,$r,Ir)=>{xn.value.max||(ar&&(Et.value=ar,hn.value=(hn.value||Et.value).hour(ar.hour()).minute(ar.minute()).second(ar.second())),Ir||(kr.value=$r),hn.value&&hn.value.isBefore(Lt.value)&&(Lt.value=hn.value))},Sr=()=>{qe.value=getDefaultValue(unref(ze),{lang:unref(Ue),unit:"month",unlinkPanels:ie.unlinkPanels})[0],Et.value=qe.value.add(1,"month"),z("pick",null)},Er=ar=>isArray$c(ar)?ar.map($r=>$r.format(_e)):ar.format(_e),cr=ar=>isArray$c(ar)?ar.map($r=>dayjs($r,_e).locale(Ue.value)):dayjs(ar,_e).locale(Ue.value);function Qn(ar,$r){if(ie.unlinkPanels&&$r){const Ir=(ar==null?void 0:ar.year())||0,Hr=(ar==null?void 0:ar.month())||0,br=$r.year(),Mr=$r.month();Et.value=Ir===br&&Hr===Mr?$r.add(1,unit$1):$r}else Et.value=qe.value.add(1,unit$1),$r&&(Et.value=Et.value.hour($r.hour()).minute($r.minute()).second($r.second()))}return z("set-picker-option",["isValidValue",isValidRange]),z("set-picker-option",["parseUserInput",cr]),z("set-picker-option",["formatToString",Er]),z("set-picker-option",["handleClear",Sr]),(ar,$r)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(_n).b(),unref(bn).b(),{"has-sidebar":ar.$slots.sidebar||unref(In),"has-time":unref(_r)}])},[createBaseVNode("div",{class:normalizeClass(unref(_n).e("body-wrapper"))},[renderSlot(ar.$slots,"sidebar",{class:normalizeClass(unref(_n).e("sidebar"))}),unref(In)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_n).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(Ir,Hr)=>(openBlock(),createElementBlock("button",{key:Hr,type:"button",class:normalizeClass(unref(_n).e("shortcut")),onClick:br=>unref(En)(Ir)},toDisplayString$1(Ir.text),11,_hoisted_1$G))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(_n).e("body"))},[unref(_r)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(bn).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(vn).selecting,placeholder:unref(wn)("el.datepicker.startDate"),class:normalizeClass(unref(bn).e("editor")),"model-value":unref(Vn),"validate-event":!1,onInput:$r[0]||($r[0]=Ir=>dr(Ir,"min")),onChange:$r[1]||($r[1]=Ir=>hr(Ir,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(wn)("el.datepicker.startTime"),"model-value":unref(zn),"validate-event":!1,onFocus:$r[2]||($r[2]=Ir=>gr.value=!0),onInput:$r[3]||($r[3]=Ir=>Or(Ir,"min")),onChange:$r[4]||($r[4]=Ir=>Lr(Ir,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:gr.value,format:unref(Hn),"datetime-role":"start","time-arrow-control":unref($e),"parsed-value":qe.value,onPick:Br},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),pr]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(bn).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(wn)("el.datepicker.endDate"),"model-value":unref(Mn),readonly:!unref(Lt),"validate-event":!1,onInput:$r[5]||($r[5]=Ir=>dr(Ir,"max")),onChange:$r[6]||($r[6]=Ir=>hr(Ir,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(wn)("el.datepicker.endTime"),"model-value":unref(qn),readonly:!unref(Lt),"validate-event":!1,onFocus:$r[7]||($r[7]=Ir=>unref(Lt)&&(kr.value=!0)),onInput:$r[8]||($r[8]=Ir=>Or(Ir,"max")),onChange:$r[9]||($r[9]=Ir=>Lr(Ir,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:kr.value,format:unref(Hn),"time-arrow-control":unref($e),"parsed-value":Et.value,onPick:Rr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),lr]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(_n).e("content"),unref(bn).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(bn).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"d-arrow-left"]),onClick:ur},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"arrow-left"]),onClick:yr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(or),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(or)}],"d-arrow-right"]),onClick:Kn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$r)):createCommentVNode("v-if",!0),ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Xn),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(Xn)}],"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(Pn)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:qe.value,"min-date":unref(Lt),"max-date":unref(hn),"range-state":unref(vn),"disabled-date":unref(ue),"cell-class-name":unref(pe),onChangerange:unref(Sn),onPick:Pr,onSelect:unref($n)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(_n).e("content"),unref(bn).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(bn).e("header"))},[ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(or),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(or)}],"d-arrow-left"]),onClick:nr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_4$9)):createCommentVNode("v-if",!0),ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Xn),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(Xn)}],"arrow-left"]),onClick:fr},[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(_n).e("icon-btn"),"d-arrow-right"]),onClick:sr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"arrow-right"]),onClick:Zn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(kn)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:Et.value,"min-date":unref(Lt),"max-date":unref(hn),"range-state":unref(vn),"disabled-date":unref(ue),"cell-class-name":unref(pe),onChangerange:unref(Sn),onPick:Pr,onSelect:unref($n)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(_r)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_n).e("footer"))},[unref(xe)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(_n).e("link-btn")),onClick:Sr},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(wn)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(_n).e("link-btn")),disabled:unref(vr),onClick:$r[10]||($r[10]=Ir=>unref(Cn)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(wn)("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:ie})=>{const{t:le}=useLocale(),ue=()=>{z.value=z.value.subtract(1,"year"),$.value||(ie.value=ie.value.subtract(1,"year"))},pe=()=>{$.value||(z.value=z.value.add(1,"year")),ie.value=ie.value.add(1,"year")},_e=()=>{z.value=z.value.add(1,"year")},Ce=()=>{ie.value=ie.value.subtract(1,"year")},$e=computed(()=>`${z.value.year()} ${le("el.datepicker.year")}`),xe=computed(()=>`${ie.value.year()} ${le("el.datepicker.year")}`),Ie=computed(()=>z.value.year()),ze=computed(()=>ie.value.year()===z.value.year()?z.value.year()+1:ie.value.year());return{leftPrevYear:ue,rightNextYear:pe,leftNextYear:_e,rightPrevYear:Ce,leftLabel:$e,rightLabel:xe,leftYear:Ie,rightYear:ze}},_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 ie=$,{lang:le}=useLocale(),ue=inject("EP_PICKER_BASE"),{shortcuts:pe,disabledDate:_e,format:Ce}=ue.props,$e=toRef$1(ue.props,"defaultValue"),xe=ref(dayjs().locale(le.value)),Ie=ref(dayjs().locale(le.value).add(1,unit)),{minDate:ze,maxDate:Ue,rangeState:qe,ppNs:Et,drpNs:Lt,handleChangeRange:hn,handleRangeConfirm:vn,handleShortcutClick:_n,onSelect:bn}=useRangePicker(ie,{defaultValue:$e,leftDate:xe,rightDate:Ie,unit,onParsedValueChanged:Ln}),Sn=computed(()=>!!pe.length),{leftPrevYear:Cn,rightNextYear:En,leftNextYear:$n,rightPrevYear:wn,leftLabel:Tn,rightLabel:xn,leftYear:Pn,rightYear:kn}=useMonthRangeHeader({unlinkPanels:toRef$1(ie,"unlinkPanels"),leftDate:xe,rightDate:Ie}),An=computed(()=>ie.unlinkPanels&&kn.value>Pn.value+1),Nn=(In,Vn=!0)=>{const Mn=In.minDate,zn=In.maxDate;Ue.value===zn&&ze.value===Mn||(Ue.value=zn,ze.value=Mn,Vn&&vn())},Fn=In=>In.map(Vn=>Vn.format(Ce));function Ln(In,Vn){if(ie.unlinkPanels&&Vn){const Mn=(In==null?void 0:In.year())||0,zn=Vn.year();Ie.value=Mn===zn?Vn.add(1,unit):Vn}else Ie.value=xe.value.add(1,unit)}return z("set-picker-option",["formatToString",Fn]),(In,Vn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Et).b(),unref(Lt).b(),{"has-sidebar":!!In.$slots.sidebar||unref(Sn)}])},[createBaseVNode("div",{class:normalizeClass(unref(Et).e("body-wrapper"))},[renderSlot(In.$slots,"sidebar",{class:normalizeClass(unref(Et).e("sidebar"))}),unref(Sn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Et).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),(Mn,zn)=>(openBlock(),createElementBlock("button",{key:zn,type:"button",class:normalizeClass(unref(Et).e("shortcut")),onClick:qn=>unref(_n)(Mn)},toDisplayString$1(Mn.text),11,_hoisted_1$F))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Et).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(Et).e("content"),unref(Lt).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Lt).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Et).e("icon-btn"),"d-arrow-left"]),onClick:Vn[0]||(Vn[0]=(...Mn)=>unref(Cn)&&unref(Cn)(...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(An),class:normalizeClass([[unref(Et).e("icon-btn"),{[unref(Et).is("disabled")]:!unref(An)}],"d-arrow-right"]),onClick:Vn[1]||(Vn[1]=(...Mn)=>unref($n)&&unref($n)(...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(Tn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:xe.value,"min-date":unref(ze),"max-date":unref(Ue),"range-state":unref(qe),"disabled-date":unref(_e),onChangerange:unref(hn),onPick:Nn,onSelect:unref(bn)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(Et).e("content"),unref(Lt).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Lt).e("header"))},[In.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(An),class:normalizeClass([[unref(Et).e("icon-btn"),{"is-disabled":!unref(An)}],"d-arrow-left"]),onClick:Vn[2]||(Vn[2]=(...Mn)=>unref(wn)&&unref(wn)(...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(Et).e("icon-btn"),"d-arrow-right"]),onClick:Vn[3]||(Vn[3]=(...Mn)=>unref(En)&&unref(En)(...Mn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(xn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:Ie.value,"min-date":unref(ze),"max-date":unref(Ue),"range-state":unref(qe),"disabled-date":unref(_e),onChangerange:unref(hn),onPick:Nn,onSelect:unref(bn)},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:ie,slots:le}){const ue=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef$1($,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:le,pickerNs:ue});const pe=ref();z({focus:($e=!0)=>{var xe;(xe=pe.value)==null||xe.focus($e)},handleOpen:()=>{var $e;($e=pe.value)==null||$e.handleOpen()},handleClose:()=>{var $e;($e=pe.value)==null||$e.handleClose()}});const Ce=$e=>{ie("update:modelValue",$e)};return()=>{var $e;const xe=($e=$.format)!=null?$e:DEFAULT_FORMATS_DATEPICKER[$.type]||DEFAULT_FORMATS_DATE,Ie=getPanel($.type);return createVNode(CommonPicker,mergeProps($,{format:xe,type:$.type,ref:pe,"onUpdate:modelValue":Ce}),{default:ze=>createVNode(Ie,ze,null),"range-separator":le["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,ie,le,ue,pe;const _e=getNormalizedProps(this.cell),{border:Ce,direction:$e}=this.descriptions,xe=$e==="vertical",Ie=((ie=(z=($=this.cell)==null?void 0:$.children)==null?void 0:z.label)==null?void 0:ie.call(z))||_e.label,ze=(pe=(ue=(le=this.cell)==null?void 0:le.children)==null?void 0:ue.default)==null?void 0:pe.call(ue),Ue=_e.span,qe=_e.align?`is-${_e.align}`:"",Et=_e.labelAlign?`is-${_e.labelAlign}`:qe,Lt=_e.className,hn=_e.labelClassName,vn={width:addUnit(_e.width),minWidth:addUnit(_e.minWidth)},_n=useNamespace("descriptions");switch(this.type){case"label":return h$3(this.tag,{style:vn,class:[_n.e("cell"),_n.e("label"),_n.is("bordered-label",Ce),_n.is("vertical-label",xe),Et,hn],colSpan:xe?Ue:1},Ie);case"content":return h$3(this.tag,{style:vn,class:[_n.e("cell"),_n.e("content"),_n.is("bordered-content",Ce),_n.is("vertical-content",xe),qe,Lt],colSpan:xe?Ue:Ue*2-1},ze);default:return h$3("td",{style:vn,class:[_n.e("cell"),qe],colSpan:Ue},[isNil(Ie)?void 0:h$3("span",{class:[_n.e("label"),hn]},Ie),h$3("span",{class:[_n.e("content"),Lt]},ze)])}}});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(ie,le)=>unref(z).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.row,(ue,pe)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${pe}`,cell:ue,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.row,(ue,pe)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${pe}`,cell:ue,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$E,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.row,(ue,pe)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${pe}`},[unref(z).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(ElDescriptionsCell),{cell:ue,tag:"td",type:"label"},null,8,["cell"]),createVNode(unref(ElDescriptionsCell),{cell:ue,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:ue,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=$,ie=useNamespace("descriptions"),le=useFormSize(),ue=useSlots();provide(descriptionsKey,z);const pe=computed(()=>[ie.b(),ie.m(le.value)]),_e=($e,xe,Ie,ze=!1)=>($e.props||($e.props={}),xe>Ie&&($e.props.span=Ie),ze&&($e.props.span=xe),$e),Ce=()=>{var $e;const xe=flattedChildren(($e=ue.default)==null?void 0:$e.call(ue)).filter(Et=>{var Lt;return((Lt=Et==null?void 0:Et.type)==null?void 0:Lt.name)==="ElDescriptionsItem"}),Ie=[];let ze=[],Ue=z.column,qe=0;return xe.forEach((Et,Lt)=>{var hn;const vn=((hn=Et.props)==null?void 0:hn.span)||1;if(Lt<xe.length-1&&(qe+=vn>Ue?Ue:vn),Lt===xe.length-1){const _n=z.column-qe%z.column;ze.push(_e(Et,_n,Ue,!0)),Ie.push(ze);return}vn<Ue?(Ue-=vn,ze.push(Et)):(ze.push(_e(Et,vn,Ue)),Ie.push(ze),Ue=z.column,ze=[])}),Ie};return($e,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe))},[$e.title||$e.extra||$e.$slots.title||$e.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("title"))},[renderSlot($e.$slots,"title",{},()=>[createTextVNode(toDisplayString$1($e.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(ie).e("extra"))},[renderSlot($e.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1($e.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(ie).e("table"),unref(ie).is("bordered",$e.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ce(),(Ie,ze)=>(openBlock(),createBlock(ElDescriptionsRow,{key:ze,row:Ie},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:ie}){const le=useNamespace(BLOCK),ue=$e=>{ie("click",$e)},{onClick:pe,onMousedown:_e,onMouseup:Ce}=useSameTarget($.customMaskEvent?void 0:ue);return()=>$.mask?createVNode("div",{class:[le.b(),$.overlayClass],style:{zIndex:$.zIndex},onClick:pe,onMousedown:_e,onMouseup:Ce},[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:ie}=useLocale(),{Close:le}=CloseComponents,{dialogRef:ue,headerRef:pe,bodyId:_e,ns:Ce,style:$e}=inject(dialogInjectionKey),{focusTrapRef:xe}=inject(FOCUS_TRAP_INJECTION_KEY),Ie=composeRefs(xe,ue),ze=computed(()=>z.draggable);return useDraggable(ue,pe,ze),(Ue,qe)=>(openBlock(),createElementBlock("div",{ref:unref(Ie),class:normalizeClass([unref(Ce).b(),unref(Ce).is("fullscreen",Ue.fullscreen),unref(Ce).is("draggable",unref(ze)),unref(Ce).is("align-center",Ue.alignCenter),{[unref(Ce).m("center")]:Ue.center},Ue.customClass]),style:normalizeStyle$1(unref($e)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:pe,class:normalizeClass(unref(Ce).e("header"))},[renderSlot(Ue.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(Ce).e("title"))},toDisplayString$1(Ue.title),3)]),Ue.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(ie)("el.dialog.close"),class:normalizeClass(unref(Ce).e("headerbtn")),type:"button",onClick:qe[0]||(qe[0]=Et=>Ue.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(Ce).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ue.closeIcon||unref(le))))]),_:1},8,["class"])],10,_hoisted_1$D)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(_e),class:normalizeClass(unref(Ce).e("body"))},[renderSlot(Ue.$slots,"default")],10,_hoisted_2$p),Ue.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(Ce).e("footer"))},[renderSlot(Ue.$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 le=getCurrentInstance().emit,{nextZIndex:ue}=useZIndex();let pe="";const _e=useId(),Ce=useId(),$e=ref(!1),xe=ref(!1),Ie=ref(!1),ze=ref($.zIndex||ue());let Ue,qe;const Et=useGlobalConfig("namespace",defaultNamespace),Lt=computed(()=>{const Nn={},Fn=`--${Et.value}-dialog`;return $.fullscreen||($.top&&(Nn[`${Fn}-margin-top`]=$.top),$.width&&(Nn[`${Fn}-width`]=addUnit($.width))),Nn}),hn=computed(()=>$.alignCenter?{display:"flex"}:{});function vn(){le("opened")}function _n(){le("closed"),le(UPDATE_MODEL_EVENT,!1),$.destroyOnClose&&(Ie.value=!1)}function bn(){le("close")}function Sn(){qe==null||qe(),Ue==null||Ue(),$.openDelay&&$.openDelay>0?{stop:Ue}=useTimeoutFn$1(()=>wn(),$.openDelay):wn()}function Cn(){Ue==null||Ue(),qe==null||qe(),$.closeDelay&&$.closeDelay>0?{stop:qe}=useTimeoutFn$1(()=>Tn(),$.closeDelay):Tn()}function En(){function Nn(Fn){Fn||(xe.value=!0,$e.value=!1)}$.beforeClose?$.beforeClose(Nn):Cn()}function $n(){$.closeOnClickModal&&En()}function wn(){isClient$2&&($e.value=!0)}function Tn(){$e.value=!1}function xn(){le("openAutoFocus")}function Pn(){le("closeAutoFocus")}function kn(Nn){var Fn;((Fn=Nn.detail)==null?void 0:Fn.focusReason)==="pointer"&&Nn.preventDefault()}$.lockScroll&&useLockscreen($e);function An(){$.closeOnPressEscape&&En()}return watch(()=>$.modelValue,Nn=>{Nn?(xe.value=!1,Sn(),Ie.value=!0,ze.value=$.zIndex?ze.value++:ue(),nextTick(()=>{le("open"),z.value&&(z.value.scrollTop=0)})):$e.value&&Cn()}),watch(()=>$.fullscreen,Nn=>{z.value&&(Nn?(pe=z.value.style.transform,z.value.style.transform=""):z.value.style.transform=pe)}),onMounted(()=>{$.modelValue&&($e.value=!0,Ie.value=!0,Sn())}),{afterEnter:vn,afterLeave:_n,beforeLeave:bn,handleClose:En,onModalClick:$n,close:Cn,doClose:Tn,onOpenAutoFocus:xn,onCloseAutoFocus:Pn,onCloseRequested:An,onFocusoutPrevented:kn,titleId:_e,bodyId:Ce,closed:xe,style:Lt,overlayDialogStyle:hn,rendered:Ie,visible:$e,zIndex:ze}},_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 ie=$,le=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(()=>!!le.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(()=>!!ie.customClass));const ue=useNamespace("dialog"),pe=ref(),_e=ref(),Ce=ref(),{visible:$e,titleId:xe,bodyId:Ie,style:ze,overlayDialogStyle:Ue,rendered:qe,zIndex:Et,afterEnter:Lt,afterLeave:hn,beforeLeave:vn,handleClose:_n,onModalClick:bn,onOpenAutoFocus:Sn,onCloseAutoFocus:Cn,onCloseRequested:En,onFocusoutPrevented:$n}=useDialog(ie,pe);provide(dialogInjectionKey,{dialogRef:pe,headerRef:_e,bodyId:Ie,ns:ue,rendered:qe,style:ze});const wn=useSameTarget(bn),Tn=computed(()=>ie.draggable&&!ie.fullscreen);return z({visible:$e,dialogContentRef:Ce}),(xn,Pn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!xn.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(Lt),onAfterLeave:unref(hn),onBeforeLeave:unref(vn),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:xn.modal,"overlay-class":xn.modalClass,"z-index":unref(Et)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":xn.title||void 0,"aria-labelledby":xn.title?void 0:unref(xe),"aria-describedby":unref(Ie),class:normalizeClass(`${unref(ue).namespace.value}-overlay-dialog`),style:normalizeStyle$1(unref(Ue)),onClick:Pn[0]||(Pn[0]=(...kn)=>unref(wn).onClick&&unref(wn).onClick(...kn)),onMousedown:Pn[1]||(Pn[1]=(...kn)=>unref(wn).onMousedown&&unref(wn).onMousedown(...kn)),onMouseup:Pn[2]||(Pn[2]=(...kn)=>unref(wn).onMouseup&&unref(wn).onMouseup(...kn))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref($e),"focus-start-el":"container",onFocusAfterTrapped:unref(Sn),onFocusAfterReleased:unref(Cn),onFocusoutPrevented:unref($n),onReleaseRequested:unref(En)},{default:withCtx(()=>[unref(qe)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:Ce},xn.$attrs,{"custom-class":xn.customClass,center:xn.center,"align-center":xn.alignCenter,"close-icon":xn.closeIcon,draggable:unref(Tn),fullscreen:xn.fullscreen,"show-close":xn.showClose,title:xn.title,onClose:unref(_n)}),createSlots({header:withCtx(()=>[xn.$slots.title?renderSlot(xn.$slots,"title",{key:1}):renderSlot(xn.$slots,"header",{key:0,close:unref(_n),titleId:unref(xe),titleClass:unref(ue).e("title")})]),default:withCtx(()=>[renderSlot(xn.$slots,"default")]),_:2},[xn.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(xn.$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($e)]])]),_: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=$,ie=useNamespace("divider"),le=computed(()=>ie.cssVar({"border-style":z.borderStyle}));return(ue,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(ue.direction)]),style:normalizeStyle$1(unref(le)),role:"separator"},[ue.$slots.default&&ue.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(ie).e("text"),unref(ie).is(ue.contentPosition)])},[renderSlot(ue.$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 ie=ref(),le=ref(),ue=useNamespace("drawer"),{t:pe}=useLocale(),_e=computed(()=>$.direction==="rtl"||$.direction==="ltr"),Ce=computed(()=>addUnit($.size));return{...useDialog($,ie),drawerRef:ie,focusStartRef:le,isHorizontal:_e,drawerSize:Ce,ns:ue,t:pe}}}),_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,ie,le,ue,pe){const _e=resolveComponent("close"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-focus-trap"),xe=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(xe,{mask:$.modal,"overlay-class":$.modalClass,"z-index":$.zIndex,onClick:$.onModalClick},{default:withCtx(()=>[createVNode($e,{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]=(...Ie)=>$.handleClose&&$.handleClose(...Ie))},[createVNode(Ce,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(_e)]),_: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,ie,le,ue,pe){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,ie,le,ue,pe){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`,ie=`${z}Item`,le=Symbol(z),ue=Symbol(ie),pe={...Collection,name:z,setup(){const Ce=ref(null),$e=new Map;provide(le,{itemMap:$e,getItems:()=>{const Ie=unref(Ce);if(!Ie)return[];const ze=Array.from(Ie.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...$e.values()].sort((qe,Et)=>ze.indexOf(qe.ref)-ze.indexOf(Et.ref))},collectionRef:Ce})}},_e={...CollectionItem,name:ie,setup(Ce,{attrs:$e}){const xe=ref(null),Ie=inject(le,void 0);provide(ue,{collectionItemRef:xe}),onMounted(()=>{const ze=unref(xe);ze&&Ie.itemMap.set(ze,{ref:ze,...$e})}),onBeforeUnmount(()=>{const ze=unref(xe);Ie.itemMap.delete(ze)})}};return{COLLECTION_INJECTION_KEY:le,COLLECTION_ITEM_INJECTION_KEY:ue,ElCollection:pe,ElCollectionItem:_e}},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,ie)=>{const le=getDirectionAwareKey($.key,ie);if(!(z==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(le))&&!(z==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(le)))return MAP_KEY_TO_FOCUS_INTENT[le]},reorderArray=($,z)=>$.map((ie,le)=>$[(le+z)%$.length]),focusFirst=$=>{const{activeElement:z}=document;for(const ie of $)if(ie===z||(ie.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 ie;const le=ref((ie=$.currentTabId||$.defaultCurrentTabId)!=null?ie:null),ue=ref(!1),pe=ref(!1),_e=ref(null),{getItems:Ce}=inject(COLLECTION_INJECTION_KEY$1,void 0),$e=computed(()=>[{outline:"none"},$.style]),xe=Lt=>{z(CURRENT_TAB_ID_CHANGE_EVT,Lt)},Ie=()=>{ue.value=!0},ze=composeEventHandlers(Lt=>{var hn;(hn=$.onMousedown)==null||hn.call($,Lt)},()=>{pe.value=!0}),Ue=composeEventHandlers(Lt=>{var hn;(hn=$.onFocus)==null||hn.call($,Lt)},Lt=>{const hn=!unref(pe),{target:vn,currentTarget:_n}=Lt;if(vn===_n&&hn&&!unref(ue)){const bn=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(_n==null||_n.dispatchEvent(bn),!bn.defaultPrevented){const Sn=Ce().filter(Tn=>Tn.focusable),Cn=Sn.find(Tn=>Tn.active),En=Sn.find(Tn=>Tn.id===unref(le)),wn=[Cn,En,...Sn].filter(Boolean).map(Tn=>Tn.ref);focusFirst(wn)}}pe.value=!1}),qe=composeEventHandlers(Lt=>{var hn;(hn=$.onBlur)==null||hn.call($,Lt)},()=>{ue.value=!1}),Et=(...Lt)=>{z("entryFocus",...Lt)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(le),loop:toRef$1($,"loop"),tabIndex:computed(()=>unref(ue)?-1:0),rovingFocusGroupRef:_e,rovingFocusGroupRootStyle:$e,orientation:toRef$1($,"orientation"),dir:toRef$1($,"dir"),onItemFocus:xe,onItemShiftTab:Ie,onBlur:qe,onFocus:Ue,onMousedown:ze}),watch(()=>$.currentTabId,Lt=>{le.value=Lt??null}),useEventListener$1(_e,ENTRY_FOCUS_EVT,Et)}});function _sfc_render$m($,z,ie,le,ue,pe){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,ie,le,ue,pe){const _e=resolveComponent("el-roving-focus-group-impl"),Ce=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(Ce,null,{default:withCtx(()=>[createVNode(_e,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:ie,loop:le,onItemFocus:ue,onItemShiftTab:pe}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:_e}=inject(COLLECTION_INJECTION_KEY$1,void 0),Ce=useId(),$e=ref(null),xe=composeEventHandlers(qe=>{z("mousedown",qe)},qe=>{$.focusable?ue(unref(Ce)):qe.preventDefault()}),Ie=composeEventHandlers(qe=>{z("focus",qe)},()=>{ue(unref(Ce))}),ze=composeEventHandlers(qe=>{z("keydown",qe)},qe=>{const{key:Et,shiftKey:Lt,target:hn,currentTarget:vn}=qe;if(Et===EVENT_CODE.tab&&Lt){pe();return}if(hn!==vn)return;const _n=getFocusIntent(qe);if(_n){qe.preventDefault();let Sn=_e().filter(Cn=>Cn.focusable).map(Cn=>Cn.ref);switch(_n){case"last":{Sn.reverse();break}case"prev":case"next":{_n==="prev"&&Sn.reverse();const Cn=Sn.indexOf(vn);Sn=le.value?reorderArray(Sn,Cn+1):Sn.slice(Cn+1);break}}nextTick(()=>{focusFirst(Sn)})}}),Ue=computed(()=>ie.value===unref(Ce));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:$e,tabIndex:computed(()=>unref(Ue)?0:-1),handleMousedown:xe,handleFocus:Ie,handleKeydown:ze}),{id:Ce,handleKeydown:ze,handleFocus:Ie,handleMousedown:xe}}});function _sfc_render$k($,z,ie,le,ue,pe){const _e=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(_e,{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 ie=getCurrentInstance(),le=useNamespace("dropdown"),{t:ue}=useLocale(),pe=ref(),_e=ref(),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),ze=ref(!1),Ue=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],qe=computed(()=>({maxHeight:addUnit($.maxHeight)})),Et=computed(()=>[le.m(Sn.value)]),Lt=useId().value,hn=computed(()=>$.id||Lt);watch([pe,toRef$1($,"trigger")],([Ln,In],[Vn])=>{var Mn,zn,qn;const Hn=isArray$c(In)?In:[In];(Mn=Vn==null?void 0:Vn.$el)!=null&&Mn.removeEventListener&&Vn.$el.removeEventListener("pointerenter",En),(zn=Ln==null?void 0:Ln.$el)!=null&&zn.removeEventListener&&Ln.$el.removeEventListener("pointerenter",En),(qn=Ln==null?void 0:Ln.$el)!=null&&qn.addEventListener&&Hn.includes("hover")&&Ln.$el.addEventListener("pointerenter",En)},{immediate:!0}),onBeforeUnmount(()=>{var Ln,In;(In=(Ln=pe.value)==null?void 0:Ln.$el)!=null&&In.removeEventListener&&pe.value.$el.removeEventListener("pointerenter",En)});function vn(){_n()}function _n(){var Ln;(Ln=Ce.value)==null||Ln.onClose()}function bn(){var Ln;(Ln=Ce.value)==null||Ln.onOpen()}const Sn=useFormSize();function Cn(...Ln){z("command",...Ln)}function En(){var Ln,In;(In=(Ln=pe.value)==null?void 0:Ln.$el)==null||In.focus()}function $n(){}function wn(){const Ln=unref($e);Ln==null||Ln.focus(),Ie.value=null}function Tn(Ln){Ie.value=Ln}function xn(Ln){ze.value||(Ln.preventDefault(),Ln.stopImmediatePropagation())}function Pn(){z("visible-change",!0)}function kn(Ln){(Ln==null?void 0:Ln.type)==="keydown"&&$e.value.focus()}function An(){z("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:$e,role:computed(()=>$.role),triggerId:hn,isUsingKeyboard:ze,onItemEnter:$n,onItemLeave:wn}),provide("elDropdown",{instance:ie,dropdownSize:Sn,handleClick:vn,commandHandler:Cn,trigger:toRef$1($,"trigger"),hideOnClick:toRef$1($,"hideOnClick")}),{t:ue,ns:le,scrollbar:xe,wrapStyle:qe,dropdownTriggerKls:Et,dropdownSize:Sn,triggerId:hn,triggerKeys:Ue,currentTabId:Ie,handleCurrentTabIdChange:Tn,handlerMainButtonClick:Ln=>{z("click",Ln)},handleEntryFocus:xn,handleClose:_n,handleOpen:bn,handleBeforeShowTooltip:Pn,handleShowTooltip:kn,handleBeforeHideTooltip:An,onFocusAfterTrapped:Ln=>{var In,Vn;Ln.preventDefault(),(Vn=(In=$e.value)==null?void 0:In.focus)==null||Vn.call(In,{preventScroll:!0})},popperRef:Ce,contentRef:$e,triggeringElementRef:pe,referenceElementRef:_e}}});function _sfc_render$j($,z,ie,le,ue,pe){var _e;const Ce=resolveComponent("el-dropdown-collection"),$e=resolveComponent("el-roving-focus-group"),xe=resolveComponent("el-scrollbar"),Ie=resolveComponent("el-only-child"),ze=resolveComponent("el-tooltip"),Ue=resolveComponent("el-button"),qe=resolveComponent("arrow-down"),Et=resolveComponent("el-icon"),Lt=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("disabled",$.disabled)])},[createVNode(ze,{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":(_e=$.referenceElementRef)==null?void 0:_e.$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(xe,{ref:"scrollbar","wrap-style":$.wrapStyle,tag:"div","view-class":$.ns.e("list")},{default:withCtx(()=>[createVNode($e,{loop:$.loop,"current-tab-id":$.currentTabId,orientation:"horizontal",onCurrentTabIdChange:$.handleCurrentTabIdChange,onEntryFocus:$.handleEntryFocus},{default:withCtx(()=>[createVNode(Ce,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(Ie,{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(Lt,{key:0},{default:withCtx(()=>[createVNode(Ue,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(Ue,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(Et,{class:normalizeClass($.ns.e("icon"))},{default:withCtx(()=>[createVNode(qe)]),_: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 ie=useNamespace("dropdown"),{role:le}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:ue}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:pe}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:_e,tabIndex:Ce,handleFocus:$e,handleKeydown:xe,handleMousedown:Ie}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),ze=composeRefs(ue,pe,_e),Ue=computed(()=>le.value==="menu"?"menuitem":le.value==="navigation"?"link":"button"),qe=composeEventHandlers(Et=>{const{code:Lt}=Et;if(Lt===EVENT_CODE.enter||Lt===EVENT_CODE.space)return Et.preventDefault(),Et.stopImmediatePropagation(),z("clickimpl",Et),!0},xe);return{ns:ie,itemRef:ze,dataset:{[COLLECTION_ITEM_SIGN]:""},role:Ue,tabIndex:Ce,handleFocus:$e,handleKeydown:qe,handleMousedown:Ie}}}),_hoisted_1$A=["aria-disabled","tabindex","role"];function _sfc_render$i($,z,ie,le,ue,pe){const _e=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]=Ce=>$.$emit("clickimpl",Ce)),onFocus:z[1]||(z[1]=(...Ce)=>$.handleFocus&&$.handleFocus(...Ce)),onKeydown:z[2]||(z[2]=withModifiers((...Ce)=>$.handleKeydown&&$.handleKeydown(...Ce),["self"])),onMousedown:z[3]||(z[3]=(...Ce)=>$.handleMousedown&&$.handleMousedown(...Ce)),onPointermove:z[4]||(z[4]=Ce=>$.$emit("pointermove",Ce)),onPointerleave:z[5]||(z[5]=Ce=>$.$emit("pointerleave",Ce))}),[$.icon?(openBlock(),createBlock(_e,{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:ie}){const{elDropdown:le}=useDropdown(),ue=getCurrentInstance(),pe=ref(null),_e=computed(()=>{var qe,Et;return(Et=(qe=unref(pe))==null?void 0:qe.textContent)!=null?Et:""}),{onItemEnter:Ce,onItemLeave:$e}=inject(DROPDOWN_INJECTION_KEY,void 0),xe=composeEventHandlers(qe=>(z("pointermove",qe),qe.defaultPrevented),whenMouse(qe=>{if($.disabled){$e(qe);return}const Et=qe.currentTarget;Et===document.activeElement||Et.contains(document.activeElement)||(Ce(qe),qe.defaultPrevented||Et==null||Et.focus())})),Ie=composeEventHandlers(qe=>(z("pointerleave",qe),qe.defaultPrevented),whenMouse(qe=>{$e(qe)})),ze=composeEventHandlers(qe=>{if(!$.disabled)return z("click",qe),qe.type!=="keydown"&&qe.defaultPrevented},qe=>{var Et,Lt,hn;if($.disabled){qe.stopImmediatePropagation();return}(Et=le==null?void 0:le.hideOnClick)!=null&&Et.value&&((Lt=le.handleClick)==null||Lt.call(le)),(hn=le.commandHandler)==null||hn.call(le,$.command,ue,qe)}),Ue=computed(()=>({...$,...ie}));return{handleClick:ze,handlePointerMove:xe,handlePointerLeave:Ie,textContent:_e,propsAndAttrs:Ue}}});function _sfc_render$h($,z,ie,le,ue,pe){var _e;const Ce=resolveComponent("el-dropdown-item-impl"),$e=resolveComponent("el-roving-focus-item"),xe=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(xe,{disabled:$.disabled,"text-value":(_e=$.textValue)!=null?_e:$.textContent},{default:withCtx(()=>[createVNode($e,{focusable:!$.disabled},{default:withCtx(()=>[createVNode(Ce,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:ie}=useDropdown(),le=ie.value,{focusTrapRef:ue,onKeydown:pe}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:_e,role:Ce,triggerId:$e}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:xe,getItems:Ie}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:ze,rovingFocusGroupRootStyle:Ue,tabIndex:qe,onBlur:Et,onFocus:Lt,onMousedown:hn}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:vn}=inject(COLLECTION_INJECTION_KEY$1,void 0),_n=computed(()=>[z.b("menu"),z.bm("menu",le==null?void 0:le.value)]),bn=composeRefs(_e,xe,ue,ze,vn),Sn=composeEventHandlers(En=>{var $n;($n=$.onKeydown)==null||$n.call($,En)},En=>{const{currentTarget:$n,code:wn,target:Tn}=En;if($n.contains(Tn),EVENT_CODE.tab===wn&&En.stopImmediatePropagation(),En.preventDefault(),Tn!==unref(_e)||!FIRST_LAST_KEYS.includes(wn))return;const Pn=Ie().filter(kn=>!kn.disabled).map(kn=>kn.ref);LAST_KEYS.includes(wn)&&Pn.reverse(),focusFirst(Pn)});return{size:le,rovingFocusGroupRootStyle:Ue,tabIndex:qe,dropdownKls:_n,role:Ce,triggerId:$e,dropdownListWrapperRef:bn,handleKeydown:En=>{Sn(En),pe(En)},onBlur:Et,onFocus:Lt,onMousedown:hn}}}),_hoisted_1$z=["role","aria-labelledby"];function _sfc_render$g($,z,ie,le,ue,pe){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]=(..._e)=>$.onBlur&&$.onBlur(..._e)),onFocus:z[1]||(z[1]=(..._e)=>$.onFocus&&$.onFocus(..._e)),onKeydown:z[2]||(z[2]=withModifiers((..._e)=>$.handleKeydown&&$.handleKeydown(..._e),["self"])),onMousedown:z[3]||(z[3]=withModifiers((..._e)=>$.onMousedown&&$.onMousedown(..._e),["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"),ie=useId();return(le,ue)=>(openBlock(),createElementBlock("svg",_hoisted_1$y,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(ie)}`,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(ie)}`,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(ie)}`,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(ie)})`,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(ie)})`,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(ie)}`},null,8,_hoisted_21),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${unref(z).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(ie)})`,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:ie}=useLocale(),le=useNamespace("empty"),ue=computed(()=>z.description||ie("el.table.emptyText")),pe=computed(()=>({width:addUnit(z.imageSize)}));return(_e,Ce)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le).b())},[createBaseVNode("div",{class:normalizeClass(unref(le).e("image")),style:normalizeStyle$1(unref(pe))},[_e.image?(openBlock(),createElementBlock("img",{key:0,src:_e.image,ondragstart:"return false"},null,8,_hoisted_1$x)):renderSlot(_e.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(le).e("description"))},[_e.$slots.description?renderSlot(_e.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$m,toDisplayString$1(unref(ue)),1))],2),_e.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("bottom"))},[renderSlot(_e.$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:ie}){const le=$,ue={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},{t:pe}=useLocale(),_e=useNamespace("image-viewer"),{nextZIndex:Ce}=useZIndex(),$e=ref(),xe=ref([]),Ie=effectScope(),ze=ref(!0),Ue=ref(le.initialIndex),qe=shallowRef(ue.CONTAIN),Et=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Lt=computed(()=>{const{urlList:In}=le;return In.length<=1}),hn=computed(()=>Ue.value===0),vn=computed(()=>Ue.value===le.urlList.length-1),_n=computed(()=>le.urlList[Ue.value]),bn=computed(()=>{const{scale:In,deg:Vn,offsetX:Mn,offsetY:zn,enableTransition:qn}=Et.value;let Hn=Mn/In,Jn=zn/In;switch(Vn%360){case 90:case-270:[Hn,Jn]=[Jn,-Hn];break;case 180:case-180:[Hn,Jn]=[-Hn,-Jn];break;case 270:case-90:[Hn,Jn]=[-Jn,Hn];break}const ur={transform:`scale(${In}) rotate(${Vn}deg) translate(${Hn}px, ${Jn}px)`,transition:qn?"transform .3s":""};return qe.value.name===ue.CONTAIN.name&&(ur.maxWidth=ur.maxHeight="100%"),ur}),Sn=computed(()=>isNumber$5(le.zIndex)?le.zIndex:Ce());function Cn(){$n(),ie("close")}function En(){const In=throttle$1(Mn=>{switch(Mn.code){case EVENT_CODE.esc:le.closeOnPressEscape&&Cn();break;case EVENT_CODE.space:kn();break;case EVENT_CODE.left:Nn();break;case EVENT_CODE.up:Ln("zoomIn");break;case EVENT_CODE.right:Fn();break;case EVENT_CODE.down:Ln("zoomOut");break}}),Vn=throttle$1(Mn=>{const zn=Mn.deltaY||Mn.deltaX;Ln(zn<0?"zoomIn":"zoomOut",{zoomRate:le.zoomRate,enableTransition:!1})});Ie.run(()=>{useEventListener$1(document,"keydown",In),useEventListener$1(document,"wheel",Vn)})}function $n(){Ie.stop()}function wn(){ze.value=!1}function Tn(In){ze.value=!1,In.target.alt=pe("el.image.error")}function xn(In){if(ze.value||In.button!==0||!$e.value)return;Et.value.enableTransition=!1;const{offsetX:Vn,offsetY:Mn}=Et.value,zn=In.pageX,qn=In.pageY,Hn=throttle$1(ur=>{Et.value={...Et.value,offsetX:Vn+ur.pageX-zn,offsetY:Mn+ur.pageY-qn}}),Jn=useEventListener$1(document,"mousemove",Hn);useEventListener$1(document,"mouseup",()=>{Jn()}),In.preventDefault()}function Pn(){Et.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function kn(){if(ze.value)return;const In=keysOf(ue),Vn=Object.values(ue),Mn=qe.value.name,qn=(Vn.findIndex(Hn=>Hn.name===Mn)+1)%In.length;qe.value=ue[In[qn]],Pn()}function An(In){const Vn=le.urlList.length;Ue.value=(In+Vn)%Vn}function Nn(){hn.value&&!le.infinite||An(Ue.value-1)}function Fn(){vn.value&&!le.infinite||An(Ue.value+1)}function Ln(In,Vn={}){if(ze.value)return;const{zoomRate:Mn,rotateDeg:zn,enableTransition:qn}={zoomRate:le.zoomRate,rotateDeg:90,enableTransition:!0,...Vn};switch(In){case"zoomOut":Et.value.scale>.2&&(Et.value.scale=Number.parseFloat((Et.value.scale/Mn).toFixed(3)));break;case"zoomIn":Et.value.scale<7&&(Et.value.scale=Number.parseFloat((Et.value.scale*Mn).toFixed(3)));break;case"clockwise":Et.value.deg+=zn;break;case"anticlockwise":Et.value.deg-=zn;break}Et.value.enableTransition=qn}return watch(_n,()=>{nextTick(()=>{const In=xe.value[0];In!=null&&In.complete||(ze.value=!0)})}),watch(Ue,In=>{Pn(),ie("switch",In)}),onMounted(()=>{var In,Vn;En(),(Vn=(In=$e.value)==null?void 0:In.focus)==null||Vn.call(In)}),z({setActiveItem:An}),(In,Vn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!In.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:$e,tabindex:-1,class:normalizeClass(unref(_e).e("wrapper")),style:normalizeStyle$1({zIndex:unref(Sn)})},[createBaseVNode("div",{class:normalizeClass(unref(_e).e("mask")),onClick:Vn[0]||(Vn[0]=withModifiers(Mn=>In.hideOnClickModal&&Cn(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("close")]),onClick:Cn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(Lt)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("prev"),unref(_e).is("disabled",!In.infinite&&unref(hn))]),onClick:Nn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("next"),unref(_e).is("disabled",!In.infinite&&unref(vn))]),onClick:Fn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(_e).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:Vn[1]||(Vn[1]=Mn=>Ln("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Vn[2]||(Vn[2]=Mn=>Ln("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(_e).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:kn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(qe).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(_e).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Vn[3]||(Vn[3]=Mn=>Ln("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Vn[4]||(Vn[4]=Mn=>Ln("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(_e).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(In.urlList,(Mn,zn)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:qn=>xe.value[zn]=qn,key:Mn,src:Mn,style:normalizeStyle$1(unref(bn)),class:normalizeClass(unref(_e).e("img")),onLoad:wn,onError:Tn,onMousedown:xn},null,46,_hoisted_1$w)),[[vShow,zn===Ue.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 ie=$;let le="";const{t:ue}=useLocale(),pe=useNamespace("image"),_e=useAttrs$1(),Ce=useAttrs(),$e=ref(),xe=ref(!1),Ie=ref(!0),ze=ref(!1),Ue=ref(),qe=ref(),Et=isClient$2&&"loading"in HTMLImageElement.prototype;let Lt,hn;const vn=computed(()=>_e.style),_n=computed(()=>{const{fit:In}=ie;return isClient$2&&In?{objectFit:In}:{}}),bn=computed(()=>{const{previewSrcList:In}=ie;return Array.isArray(In)&&In.length>0}),Sn=computed(()=>{const{previewSrcList:In,initialIndex:Vn}=ie;let Mn=Vn;return Vn>In.length-1&&(Mn=0),Mn}),Cn=computed(()=>ie.loading==="eager"?!1:!Et&&ie.loading==="lazy"||ie.lazy),En=()=>{isClient$2&&(Ie.value=!0,xe.value=!1,$e.value=ie.src)};function $n(In){Ie.value=!1,xe.value=!1,z("load",In)}function wn(In){Ie.value=!1,xe.value=!0,z("error",In)}function Tn(){isInContainer(Ue.value,qe.value)&&(En(),kn())}const xn=useThrottleFn(Tn,200,!0);async function Pn(){var In;if(!isClient$2)return;await nextTick();const{scrollContainer:Vn}=ie;isElement$2(Vn)?qe.value=Vn:isString$7(Vn)&&Vn!==""?qe.value=(In=document.querySelector(Vn))!=null?In:void 0:Ue.value&&(qe.value=getScrollContainer(Ue.value)),qe.value&&(Lt=useEventListener$1(qe,"scroll",xn),setTimeout(()=>Tn(),100))}function kn(){!isClient$2||!qe.value||!xn||(Lt==null||Lt(),qe.value=void 0)}function An(In){if(In.ctrlKey){if(In.deltaY<0)return In.preventDefault(),!1;if(In.deltaY>0)return In.preventDefault(),!1}}function Nn(){bn.value&&(hn=useEventListener$1("wheel",An,{passive:!1}),le=document.body.style.overflow,document.body.style.overflow="hidden",ze.value=!0,z("show"))}function Fn(){hn==null||hn(),document.body.style.overflow=le,ze.value=!1,z("close")}function Ln(In){z("switch",In)}return watch(()=>ie.src,()=>{Cn.value?(Ie.value=!0,xe.value=!1,kn(),Pn()):En()}),onMounted(()=>{Cn.value?Pn():En()}),(In,Vn)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:Ue,class:normalizeClass([unref(pe).b(),In.$attrs.class]),style:normalizeStyle$1(unref(vn))},[xe.value?renderSlot(In.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(pe).e("error"))},toDisplayString$1(unref(ue)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[$e.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(Ce),{src:$e.value,loading:In.loading,style:unref(_n),class:[unref(pe).e("inner"),unref(bn)&&unref(pe).e("preview"),Ie.value&&unref(pe).is("loading")],onClick:Nn,onLoad:$n,onError:wn}),null,16,_hoisted_1$v)):createCommentVNode("v-if",!0),Ie.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(pe).e("wrapper"))},[renderSlot(In.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(pe).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),unref(bn)?(openBlock(),createElementBlock(Fragment,{key:2},[ze.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":In.zIndex,"initial-index":unref(Sn),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:Fn,onSwitch:Ln},{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:ie}){const le=$,{t:ue}=useLocale(),pe=useNamespace("input-number"),_e=ref(),Ce=reactive({currentValue:le.modelValue,userInput:null}),{formItem:$e}=useFormItem(),xe=computed(()=>isNumber$5(le.modelValue)&&le.modelValue<=le.min),Ie=computed(()=>isNumber$5(le.modelValue)&&le.modelValue>=le.max),ze=computed(()=>{const An=vn(le.step);return isUndefined$1(le.precision)?Math.max(vn(le.modelValue),An):(An>le.precision,le.precision)}),Ue=computed(()=>le.controls&&le.controlsPosition==="right"),qe=useFormSize(),Et=useFormDisabled(),Lt=computed(()=>{if(Ce.userInput!==null)return Ce.userInput;let An=Ce.currentValue;if(isNil(An))return"";if(isNumber$5(An)){if(Number.isNaN(An))return"";isUndefined$1(le.precision)||(An=An.toFixed(le.precision))}return An}),hn=(An,Nn)=>{if(isUndefined$1(Nn)&&(Nn=ze.value),Nn===0)return Math.round(An);let Fn=String(An);const Ln=Fn.indexOf(".");if(Ln===-1||!Fn.replace(".","").split("")[Ln+Nn])return An;const Mn=Fn.length;return Fn.charAt(Mn-1)==="5"&&(Fn=`${Fn.slice(0,Math.max(0,Mn-1))}6`),Number.parseFloat(Number(Fn).toFixed(Nn))},vn=An=>{if(isNil(An))return 0;const Nn=An.toString(),Fn=Nn.indexOf(".");let Ln=0;return Fn!==-1&&(Ln=Nn.length-Fn-1),Ln},_n=(An,Nn=1)=>isNumber$5(An)?hn(An+le.step*Nn):Ce.currentValue,bn=()=>{if(le.readonly||Et.value||Ie.value)return;const An=Number(Lt.value)||0,Nn=_n(An);En(Nn),ie(INPUT_EVENT,Ce.currentValue)},Sn=()=>{if(le.readonly||Et.value||xe.value)return;const An=Number(Lt.value)||0,Nn=_n(An,-1);En(Nn),ie(INPUT_EVENT,Ce.currentValue)},Cn=(An,Nn)=>{const{max:Fn,min:Ln,step:In,precision:Vn,stepStrictly:Mn,valueOnClear:zn}=le;Fn<Ln&&throwError$1("InputNumber","min should not be greater than max.");let qn=Number(An);if(isNil(An)||Number.isNaN(qn))return null;if(An===""){if(zn===null)return null;qn=isString$7(zn)?{min:Ln,max:Fn}[zn]:zn}return Mn&&(qn=hn(Math.round(qn/In)*In,Vn)),isUndefined$1(Vn)||(qn=hn(qn,Vn)),(qn>Fn||qn<Ln)&&(qn=qn>Fn?Fn:Ln,Nn&&ie(UPDATE_MODEL_EVENT,qn)),qn},En=(An,Nn=!0)=>{var Fn;const Ln=Ce.currentValue,In=Cn(An);if(!Nn){ie(UPDATE_MODEL_EVENT,In);return}Ln!==In&&(Ce.userInput=null,ie(UPDATE_MODEL_EVENT,In),ie(CHANGE_EVENT,In,Ln),le.validateEvent&&((Fn=$e==null?void 0:$e.validate)==null||Fn.call($e,"change").catch(Vn=>void 0)),Ce.currentValue=In)},$n=An=>{Ce.userInput=An;const Nn=An===""?null:Number(An);ie(INPUT_EVENT,Nn),En(Nn,!1)},wn=An=>{const Nn=An!==""?Number(An):"";(isNumber$5(Nn)&&!Number.isNaN(Nn)||An==="")&&En(Nn),Ce.userInput=null},Tn=()=>{var An,Nn;(Nn=(An=_e.value)==null?void 0:An.focus)==null||Nn.call(An)},xn=()=>{var An,Nn;(Nn=(An=_e.value)==null?void 0:An.blur)==null||Nn.call(An)},Pn=An=>{ie("focus",An)},kn=An=>{var Nn;ie("blur",An),le.validateEvent&&((Nn=$e==null?void 0:$e.validate)==null||Nn.call($e,"blur").catch(Fn=>void 0))};return watch(()=>le.modelValue,An=>{const Nn=Cn(Ce.userInput),Fn=Cn(An,!0);!isNumber$5(Nn)&&(!Nn||Nn!==Fn)&&(Ce.currentValue=Fn,Ce.userInput=null)},{immediate:!0}),onMounted(()=>{var An;const{min:Nn,max:Fn,modelValue:Ln}=le,In=(An=_e.value)==null?void 0:An.input;if(In.setAttribute("role","spinbutton"),Number.isFinite(Fn)?In.setAttribute("aria-valuemax",String(Fn)):In.removeAttribute("aria-valuemax"),Number.isFinite(Nn)?In.setAttribute("aria-valuemin",String(Nn)):In.removeAttribute("aria-valuemin"),In.setAttribute("aria-valuenow",String(Ce.currentValue)),In.setAttribute("aria-disabled",String(Et.value)),!isNumber$5(Ln)&&Ln!=null){let Vn=Number(Ln);Number.isNaN(Vn)&&(Vn=null),ie(UPDATE_MODEL_EVENT,Vn)}}),onUpdated(()=>{var An;const Nn=(An=_e.value)==null?void 0:An.input;Nn==null||Nn.setAttribute("aria-valuenow",`${Ce.currentValue}`)}),z({focus:Tn,blur:xn}),(An,Nn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(pe).b(),unref(pe).m(unref(qe)),unref(pe).is("disabled",unref(Et)),unref(pe).is("without-controls",!An.controls),unref(pe).is("controls-right",unref(Ue))]),onDragstart:Nn[1]||(Nn[1]=withModifiers(()=>{},["prevent"]))},[An.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref(ue)("el.inputNumber.decrease"),class:normalizeClass([unref(pe).e("decrease"),unref(pe).is("disabled",unref(xe))]),onKeydown:withKeys(Sn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Ue)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$u)),[[unref(vRepeatClick),Sn]]):createCommentVNode("v-if",!0),An.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref(ue)("el.inputNumber.increase"),class:normalizeClass([unref(pe).e("increase"),unref(pe).is("disabled",unref(Ie))]),onKeydown:withKeys(bn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Ue)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$k)),[[unref(vRepeatClick),bn]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:An.id,ref_key:"input",ref:_e,type:"number",step:An.step,"model-value":unref(Lt),placeholder:An.placeholder,readonly:An.readonly,disabled:unref(Et),size:unref(qe),max:An.max,min:An.min,name:An.name,label:An.label,"validate-event":!1,onWheel:Nn[0]||(Nn[0]=withModifiers(()=>{},["prevent"])),onKeydown:[withKeys(withModifiers(bn,["prevent"]),["up"]),withKeys(withModifiers(Sn,["prevent"]),["down"])],onBlur:kn,onFocus:Pn,onInput:$n,onChange:wn},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 ie=$,le=useNamespace("link"),ue=computed(()=>[le.b(),le.m(ie.type),le.is("disabled",ie.disabled),le.is("underline",ie.underline&&!ie.disabled)]);function pe(_e){ie.disabled||z("click",_e)}return(_e,Ce)=>(openBlock(),createElementBlock("a",{class:normalizeClass(unref(ue)),href:_e.disabled||!_e.href?void 0:_e.href,onClick:pe},[_e.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.icon)))]),_:1})):createCommentVNode("v-if",!0),_e.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(le).e("inner"))},[renderSlot(_e.$slots,"default")],2)):createCommentVNode("v-if",!0),_e.$slots.icon?renderSlot(_e.$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,ie){this.parent=z,this.domNode=ie,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,ie=>{ie.addEventListener("keydown",le=>{let ue=!1;switch(le.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),ue=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),ue=!0;break}case EVENT_CODE.tab:{triggerEvent(z,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{ue=!0,le.currentTarget.click();break}}return ue&&(le.preventDefault(),le.stopPropagation()),!1})})}},MenuItem$1=class{constructor(z,ie){this.domNode=z,this.submenu=null,this.submenu=null,this.init(ie)}init(z){this.domNode.setAttribute("tabindex","0");const ie=this.domNode.querySelector(`.${z}-menu`);ie&&(this.submenu=new SubMenu$1(this,ie)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",z=>{let ie=!1;switch(z.code){case EVENT_CODE.down:{triggerEvent(z.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),ie=!0;break}case EVENT_CODE.up:{triggerEvent(z.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),ie=!0;break}case EVENT_CODE.tab:{triggerEvent(z.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{ie=!0,z.currentTarget.click();break}}ie&&z.preventDefault()})}},Menu$1=class{constructor(z,ie){this.domNode=z,this.init(ie)}init(z){const ie=this.domNode.childNodes;Array.from(ie).forEach(le=>{le.nodeType===1&&new MenuItem$1(le,z)})}};const _sfc_main$Y=defineComponent({name:"ElMenuCollapseTransition",setup(){const $=useNamespace("menu");return{listeners:{onBeforeEnter:ie=>ie.style.opacity="0.2",onEnter(ie,le){addClass(ie,`${$.namespace.value}-opacity-transition`),ie.style.opacity="1",le()},onAfterEnter(ie){removeClass(ie,`${$.namespace.value}-opacity-transition`),ie.style.opacity=""},onBeforeLeave(ie){ie.dataset||(ie.dataset={}),hasClass(ie,$.m("collapse"))?(removeClass(ie,$.m("collapse")),ie.dataset.oldOverflow=ie.style.overflow,ie.dataset.scrollWidth=ie.clientWidth.toString(),addClass(ie,$.m("collapse"))):(addClass(ie,$.m("collapse")),ie.dataset.oldOverflow=ie.style.overflow,ie.dataset.scrollWidth=ie.clientWidth.toString(),removeClass(ie,$.m("collapse"))),ie.style.width=`${ie.scrollWidth}px`,ie.style.overflow="hidden"},onLeave(ie){addClass(ie,"horizontal-collapse-transition"),ie.style.width=`${ie.dataset.scrollWidth}px`}}}}});function _sfc_render$f($,z,ie,le,ue,pe){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 ie=computed(()=>{let ue=$.parent;const pe=[z.value];for(;ue.type.name!=="ElMenu";)ue.props.index&&pe.unshift(ue.props.index),ue=ue.parent;return pe});return{parentMenu:computed(()=>{let ue=$.parent;for(;ue&&!["ElMenu","ElSubMenu"].includes(ue.type.name);)ue=ue.parent;return ue}),indexPath:ie}}function useMenuColor($){return computed(()=>{const ie=$.backgroundColor;return ie?new TinyColor(ie).shade(20).toString():""})}const useMenuCssVar=($,z)=>{const ie=useNamespace("menu");return computed(()=>ie.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:ie}){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 le=getCurrentInstance(),{indexPath:ue,parentMenu:pe}=useMenu(le,computed(()=>$.index)),_e=useNamespace("menu"),Ce=useNamespace("sub-menu"),$e=inject("rootMenu");$e||throwError$1(COMPONENT_NAME$c,"can not inject root menu");const xe=inject(`subMenu:${pe.value.uid}`);xe||throwError$1(COMPONENT_NAME$c,"can not inject sub menu");const Ie=ref({}),ze=ref({});let Ue;const qe=ref(!1),Et=ref(),Lt=ref(null),hn=computed(()=>Pn.value==="horizontal"&&_n.value?"bottom-start":"right-start"),vn=computed(()=>Pn.value==="horizontal"&&_n.value||Pn.value==="vertical"&&!$e.props.collapse?$.expandCloseIcon&&$.expandOpenIcon?En.value?$.expandOpenIcon:$.expandCloseIcon:arrow_down_default:$.collapseCloseIcon&&$.collapseOpenIcon?En.value?$.collapseOpenIcon:$.collapseCloseIcon:arrow_right_default),_n=computed(()=>xe.level===0),bn=computed(()=>{var zn;const qn=(zn=$.teleported)!=null?zn:$.popperAppendToBody;return qn===void 0?_n.value:qn}),Sn=computed(()=>$e.props.collapse?`${_e.namespace.value}-zoom-in-left`:`${_e.namespace.value}-zoom-in-top`),Cn=computed(()=>Pn.value==="horizontal"&&_n.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"]),En=computed(()=>$e.openedMenus.includes($.index)),$n=computed(()=>{let zn=!1;return Object.values(Ie.value).forEach(qn=>{qn.active&&(zn=!0)}),Object.values(ze.value).forEach(qn=>{qn.active&&(zn=!0)}),zn}),wn=computed(()=>$e.props.backgroundColor||""),Tn=computed(()=>$e.props.activeTextColor||""),xn=computed(()=>$e.props.textColor||""),Pn=computed(()=>$e.props.mode),kn=reactive({index:$.index,indexPath:ue,active:$n}),An=useMenuCssVar($e.props,xe.level+1),Nn=computed(()=>Pn.value!=="horizontal"?{color:xn.value}:{borderBottomColor:$n.value?$e.props.activeTextColor?Tn.value:"":"transparent",color:$n.value?Tn.value:xn.value}),Fn=()=>{var zn,qn,Hn;return(Hn=(qn=(zn=Lt.value)==null?void 0:zn.popperRef)==null?void 0:qn.popperInstanceRef)==null?void 0:Hn.destroy()},Ln=zn=>{zn||Fn()},In=()=>{$e.props.menuTrigger==="hover"&&$e.props.mode==="horizontal"||$e.props.collapse&&$e.props.mode==="vertical"||$.disabled||$e.handleSubMenuClick({index:$.index,indexPath:ue.value,active:$n.value})},Vn=(zn,qn=$.showTimeout)=>{var Hn;zn.type!=="focus"&&($e.props.menuTrigger==="click"&&$e.props.mode==="horizontal"||!$e.props.collapse&&$e.props.mode==="vertical"||$.disabled||(xe.mouseInChild.value=!0,Ue==null||Ue(),{stop:Ue}=useTimeoutFn$1(()=>{$e.openMenu($.index,ue.value)},qn),bn.value&&((Hn=pe.value.vnode.el)==null||Hn.dispatchEvent(new MouseEvent("mouseenter")))))},Mn=(zn=!1)=>{var qn,Hn;$e.props.menuTrigger==="click"&&$e.props.mode==="horizontal"||!$e.props.collapse&&$e.props.mode==="vertical"||(Ue==null||Ue(),xe.mouseInChild.value=!1,{stop:Ue}=useTimeoutFn$1(()=>!qe.value&&$e.closeMenu($.index,ue.value),$.hideTimeout),bn.value&&zn&&((qn=le.parent)==null?void 0:qn.type.name)==="ElSubMenu"&&((Hn=xe.handleMouseleave)==null||Hn.call(xe,!0)))};watch(()=>$e.props.collapse,zn=>Ln(!!zn));{const zn=Hn=>{ze.value[Hn.index]=Hn},qn=Hn=>{delete ze.value[Hn.index]};provide(`subMenu:${le.uid}`,{addSubMenu:zn,removeSubMenu:qn,handleMouseleave:Mn,mouseInChild:qe,level:xe.level+1})}return ie({opened:En}),onMounted(()=>{$e.addSubMenu(kn),xe.addSubMenu(kn)}),onBeforeUnmount(()=>{xe.removeSubMenu(kn),$e.removeSubMenu(kn)}),()=>{var zn;const qn=[(zn=z.title)==null?void 0:zn.call(z),h$3(ElIcon,{class:Ce.e("icon-arrow"),style:{transform:En.value?$.expandCloseIcon&&$.expandOpenIcon||$.collapseCloseIcon&&$.collapseOpenIcon&&$e.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$7(vn.value)?h$3(le.appContext.components[vn.value]):h$3(vn.value)})],Hn=$e.isMenuPopup?h$3(ElTooltip,{ref:Lt,visible:En.value,effect:"light",pure:!0,offset:$.popperOffset,showArrow:!1,persistent:!0,popperClass:$.popperClass,placement:hn.value,teleported:bn.value,fallbackPlacements:Cn.value,transition:Sn.value,gpuAcceleration:!1},{content:()=>{var Jn;return h$3("div",{class:[_e.m(Pn.value),_e.m("popup-container"),$.popperClass],onMouseenter:ur=>Vn(ur,100),onMouseleave:()=>Mn(!0),onFocus:ur=>Vn(ur,100)},[h$3("ul",{class:[_e.b(),_e.m("popup"),_e.m(`popup-${hn.value}`)],style:An.value},[(Jn=z.default)==null?void 0:Jn.call(z)])])},default:()=>h$3("div",{class:Ce.e("title"),style:[Nn.value,{backgroundColor:wn.value}],onClick:In},qn)}):h$3(Fragment,{},[h$3("div",{class:Ce.e("title"),style:[Nn.value,{backgroundColor:wn.value}],ref:Et,onClick:In},qn),h$3(_CollapseTransition,{},{default:()=>{var Jn;return withDirectives(h$3("ul",{role:"menu",class:[_e.b(),_e.m("inline")],style:An.value},[(Jn=z.default)==null?void 0:Jn.call(z)]),[[vShow,En.value]])}})]);return h$3("li",{class:[Ce.b(),Ce.is("active",$n.value),Ce.is("opened",En.value),Ce.is("disabled",$.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:En.value,onMouseenter:Vn,onMouseleave:()=>Mn(!0),onFocus:Vn},[Hn])}}});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,ie,le)=>isString$7($)&&checkIndexPath(z)&&isObject$8(ie)&&(le===void 0||le instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup($,{emit:z,slots:ie,expose:le}){const ue=getCurrentInstance(),pe=ue.appContext.config.globalProperties.$router,_e=ref(),Ce=useNamespace("menu"),$e=useNamespace("sub-menu"),xe=ref(-1),Ie=ref($.defaultOpeneds&&!$.collapse?$.defaultOpeneds.slice(0):[]),ze=ref($.defaultActive),Ue=ref({}),qe=ref({}),Et=computed(()=>$.mode==="horizontal"||$.mode==="vertical"&&$.collapse),Lt=()=>{const Pn=ze.value&&Ue.value[ze.value];if(!Pn||$.mode==="horizontal"||$.collapse)return;Pn.indexPath.forEach(An=>{const Nn=qe.value[An];Nn&&hn(An,Nn.indexPath)})},hn=(Pn,kn)=>{Ie.value.includes(Pn)||($.uniqueOpened&&(Ie.value=Ie.value.filter(An=>kn.includes(An))),Ie.value.push(Pn),z("open",Pn,kn))},vn=Pn=>{const kn=Ie.value.indexOf(Pn);kn!==-1&&Ie.value.splice(kn,1)},_n=(Pn,kn)=>{vn(Pn),z("close",Pn,kn)},bn=({index:Pn,indexPath:kn})=>{Ie.value.includes(Pn)?_n(Pn,kn):hn(Pn,kn)},Sn=Pn=>{($.mode==="horizontal"||$.collapse)&&(Ie.value=[]);const{index:kn,indexPath:An}=Pn;if(!(isNil(kn)||isNil(An)))if($.router&&pe){const Nn=Pn.route||kn,Fn=pe.push(Nn).then(Ln=>(Ln||(ze.value=kn),Ln));z("select",kn,An,{index:kn,indexPath:An,route:Nn},Fn)}else ze.value=kn,z("select",kn,An,{index:kn,indexPath:An})},Cn=Pn=>{const kn=Ue.value,An=kn[Pn]||ze.value&&kn[ze.value]||kn[$.defaultActive];An?ze.value=An.index:ze.value=Pn},En=()=>{var Pn,kn;if(!_e.value)return-1;const An=Array.from((kn=(Pn=_e.value)==null?void 0:Pn.childNodes)!=null?kn:[]).filter(zn=>zn.nodeName!=="#comment"&&(zn.nodeName!=="#text"||zn.nodeValue)),Nn=64,Fn=Number.parseInt(getComputedStyle(_e.value).paddingLeft,10),Ln=Number.parseInt(getComputedStyle(_e.value).paddingRight,10),In=_e.value.clientWidth-Fn-Ln;let Vn=0,Mn=0;return An.forEach((zn,qn)=>{Vn+=zn.offsetWidth||0,Vn<=In-Nn&&(Mn=qn+1)}),Mn===An.length?-1:Mn},$n=(Pn,kn=33.34)=>{let An;return()=>{An&&clearTimeout(An),An=setTimeout(()=>{Pn()},kn)}};let wn=!0;const Tn=()=>{const Pn=()=>{xe.value=-1,nextTick(()=>{xe.value=En()})};wn?Pn():$n(Pn)(),wn=!1};watch(()=>$.defaultActive,Pn=>{Ue.value[Pn]||(ze.value=""),Cn(Pn)}),watch(()=>$.collapse,Pn=>{Pn&&(Ie.value=[])}),watch(Ue.value,Lt);let xn;watchEffect(()=>{$.mode==="horizontal"&&$.ellipsis?xn=useResizeObserver(_e,Tn).stop:xn==null||xn()});{const Pn=Fn=>{qe.value[Fn.index]=Fn},kn=Fn=>{delete qe.value[Fn.index]};provide("rootMenu",reactive({props:$,openedMenus:Ie,items:Ue,subMenus:qe,activeIndex:ze,isMenuPopup:Et,addMenuItem:Fn=>{Ue.value[Fn.index]=Fn},removeMenuItem:Fn=>{delete Ue.value[Fn.index]},addSubMenu:Pn,removeSubMenu:kn,openMenu:hn,closeMenu:_n,handleMenuItemClick:Sn,handleSubMenuClick:bn})),provide(`subMenu:${ue.uid}`,{addSubMenu:Pn,removeSubMenu:kn,mouseInChild:ref(!1),level:0})}return onMounted(()=>{$.mode==="horizontal"&&new Menu$1(ue.vnode.el,Ce.namespace.value)}),le({open:kn=>{const{indexPath:An}=qe.value[kn];An.forEach(Nn=>hn(Nn,An))},close:vn,handleResize:Tn}),()=>{var Pn,kn;let An=(kn=(Pn=ie.default)==null?void 0:Pn.call(ie))!=null?kn:[];const Nn=[];if($.mode==="horizontal"&&_e.value){const In=flattedChildren(An),Vn=xe.value===-1?In:In.slice(0,xe.value),Mn=xe.value===-1?[]:In.slice(xe.value);Mn!=null&&Mn.length&&$.ellipsis&&(An=Vn,Nn.push(h$3(SubMenu,{index:"sub-menu-more",class:$e.e("hide-arrow")},{title:()=>h$3(ElIcon,{class:$e.e("icon-more")},{default:()=>h$3(more_default)}),default:()=>Mn})))}const Fn=useMenuCssVar($,0),Ln=h$3("ul",{key:String($.collapse),role:"menubar",ref:_e,style:Fn.value,class:{[Ce.b()]:!0,[Ce.m($.mode)]:!0,[Ce.m("collapse")]:$.collapse}},[...An,...Nn]);return $.collapseTransition&&$.mode==="vertical"?h$3(ElMenuCollapseTransition,()=>Ln):Ln}}});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 ie=getCurrentInstance(),le=inject("rootMenu"),ue=useNamespace("menu"),pe=useNamespace("menu-item");le||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const{parentMenu:_e,indexPath:Ce}=useMenu(ie,toRef$1($,"index")),$e=inject(`subMenu:${_e.value.uid}`);$e||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const xe=computed(()=>$.index===le.activeIndex),Ie=reactive({index:$.index,indexPath:Ce,active:xe}),ze=()=>{$.disabled||(le.handleMenuItemClick({index:$.index,indexPath:Ce.value,route:$.route}),z("click",Ie))};return onMounted(()=>{$e.addSubMenu(Ie),le.addMenuItem(Ie)}),onBeforeUnmount(()=>{$e.removeSubMenu(Ie),le.removeMenuItem(Ie)}),{parentMenu:_e,rootMenu:le,active:xe,nsMenu:ue,nsMenuItem:pe,handleClick:ze}}});function _sfc_render$e($,z,ie,le,ue,pe){const _e=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]=(...Ce)=>$.handleClick&&$.handleClick(...Ce))},[$.parentMenu.type.name==="ElMenu"&&$.rootMenu.props.collapse&&$.$slots.title?(openBlock(),createBlock(_e,{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,ie,le,ue,pe){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 ie=useSlots(),{t:le}=useLocale(),ue=useNamespace("page-header"),pe=computed(()=>[ue.b(),{[ue.m("has-breadcrumb")]:!!ie.breadcrumb,[ue.m("has-extra")]:!!ie.extra,[ue.is("contentful")]:!!ie.default}]);function _e(){z("back")}return(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe))},[Ce.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("breadcrumb"))},[renderSlot(Ce.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ue).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("back")),role:"button",tabindex:"0",onClick:_e},[Ce.icon||Ce.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":Ce.title||unref(le)("el.pageHeader.title"),class:normalizeClass(unref(ue).e("icon"))},[renderSlot(Ce.$slots,"icon",{},()=>[Ce.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$s)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ue).e("title"))},[renderSlot(Ce.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ce.title||unref(le)("el.pageHeader.title")),1)])],2)],2),createVNode(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(ue).e("content"))},[renderSlot(Ce.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(Ce.content),1)])],2)],2),Ce.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("extra"))},[renderSlot(Ce.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),Ce.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ue).e("main"))},[renderSlot(Ce.$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:ie}=useLocale(),le=computed(()=>z.disabled||z.currentPage<=1);return(ue,pe)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(le),"aria-label":ue.prevText||unref(ie)("el.pagination.prev"),"aria-disabled":unref(le),onClick:pe[0]||(pe[0]=_e=>ue.$emit("click",_e))},[ue.prevText?(openBlock(),createElementBlock("span",_hoisted_2$j,toDisplayString$1(ue.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.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:ie}=useLocale(),le=computed(()=>z.disabled||z.currentPage===z.pageCount||z.pageCount===0);return(ue,pe)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(le),"aria-label":ue.nextText||unref(ie)("el.pagination.next"),"aria-disabled":unref(le),onClick:pe[0]||(pe[0]=_e=>ue.$emit("click",_e))},[ue.nextText?(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString$1(ue.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.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 ie=inject(selectKey),le=inject(selectGroupKey,{disabled:!1}),ue=computed(()=>Object.prototype.toString.call($.value).toLowerCase()==="[object object]"),pe=computed(()=>ie.props.multiple?ze(ie.props.modelValue,$.value):Ue($.value,ie.props.modelValue)),_e=computed(()=>{if(ie.props.multiple){const Lt=ie.props.modelValue||[];return!pe.value&&Lt.length>=ie.props.multipleLimit&&ie.props.multipleLimit>0}else return!1}),Ce=computed(()=>$.label||(ue.value?"":$.value)),$e=computed(()=>$.value||$.label||""),xe=computed(()=>$.disabled||z.groupDisabled||_e.value),Ie=getCurrentInstance(),ze=(Lt=[],hn)=>{if(ue.value){const vn=ie.props.valueKey;return Lt&&Lt.some(_n=>toRaw(get$1(_n,vn))===get$1(hn,vn))}else return Lt&&Lt.includes(hn)},Ue=(Lt,hn)=>{if(ue.value){const{valueKey:vn}=ie.props;return get$1(Lt,vn)===get$1(hn,vn)}else return Lt===hn},qe=()=>{!$.disabled&&!le.disabled&&(ie.hoverIndex=ie.optionsArray.indexOf(Ie.proxy))};watch(()=>Ce.value,()=>{!$.created&&!ie.props.remote&&ie.setSelected()}),watch(()=>$.value,(Lt,hn)=>{const{remote:vn,valueKey:_n}=ie.props;if(Object.is(Lt,hn)||(ie.onOptionDestroy(hn,Ie.proxy),ie.onOptionCreate(Ie.proxy)),!$.created&&!vn){if(_n&&typeof Lt=="object"&&typeof hn=="object"&&Lt[_n]===hn[_n])return;ie.setSelected()}}),watch(()=>le.disabled,()=>{z.groupDisabled=le.disabled},{immediate:!0});const{queryChange:Et}=toRaw(ie);return watch(Et,Lt=>{const{query:hn}=unref(Lt),vn=new RegExp(escapeStringRegexp(hn),"i");z.visible=vn.test(Ce.value)||$.created,z.visible||ie.filteredOptionsCount--},{immediate:!0}),{select:ie,currentLabel:Ce,currentValue:$e,itemSelected:pe,isDisabled:xe,hoverItem:qe}}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"),ie=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:le,itemSelected:ue,isDisabled:pe,select:_e,hoverItem:Ce}=useOption$1($,ie),{visible:$e,hover:xe}=toRefs(ie),Ie=getCurrentInstance().proxy;_e.onOptionCreate(Ie),onBeforeUnmount(()=>{const Ue=Ie.value,{selected:qe}=_e,Lt=(_e.props.multiple?qe:[qe]).some(hn=>hn.value===Ie.value);nextTick(()=>{_e.cachedOptions.get(Ue)===Ie&&!Lt&&_e.cachedOptions.delete(Ue)}),_e.onOptionDestroy(Ue,Ie)});function ze(){$.disabled!==!0&&ie.groupDisabled!==!0&&_e.handleOptionSelect(Ie,!0)}return{ns:z,currentLabel:le,itemSelected:ue,isDisabled:pe,select:_e,hoverItem:Ce,visible:$e,hover:xe,selectOptionClick:ze,states:ie}}});function _sfc_render$c($,z,ie,le,ue,pe){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([$.ns.be("dropdown","item"),$.ns.is("disabled",$.isDisabled),{selected:$.itemSelected,hover:$.hover}]),onMouseenter:z[0]||(z[0]=(..._e)=>$.hoverItem&&$.hoverItem(..._e)),onClick:z[1]||(z[1]=withModifiers((..._e)=>$.selectOptionClick&&$.selectOptionClick(..._e),["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"),ie=computed(()=>$.props.popperClass),le=computed(()=>$.props.multiple),ue=computed(()=>$.props.fitInputWidth),pe=ref("");function _e(){var Ce;pe.value=`${(Ce=$.selectWrapper)==null?void 0:Ce.offsetWidth}px`}return onMounted(()=>{_e(),useResizeObserver($.selectWrapper,_e)}),{ns:z,minWidth:pe,popperClass:ie,isMultiple:le,isFitInputWidth:ue}}});function _sfc_render$b($,z,ie,le,ue,pe){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,ie)=>{const{t:le}=useLocale(),ue=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 pe=ref(null),_e=ref(null),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),ze=ref(null),Ue=ref(-1),qe=shallowRef({query:""}),Et=shallowRef(""),Lt=ref([]);let hn=0;const{form:vn,formItem:_n}=useFormItem(),bn=computed(()=>!$.filterable||$.multiple||!z.visible),Sn=computed(()=>$.disabled||(vn==null?void 0:vn.disabled)),Cn=computed(()=>{const br=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:$.modelValue!==void 0&&$.modelValue!==null&&$.modelValue!=="";return $.clearable&&!Sn.value&&z.inputHovering&&br}),En=computed(()=>$.remote&&$.filterable&&!$.remoteShowSuffix?"":$.suffixIcon),$n=computed(()=>ue.is("reverse",En.value&&z.visible&&$.suffixTransition)),wn=computed(()=>$.remote?300:0),Tn=computed(()=>$.loading?$.loadingText||le("el.select.loading"):$.remote&&z.query===""&&z.options.size===0?!1:$.filterable&&z.query&&z.options.size>0&&z.filteredOptionsCount===0?$.noMatchText||le("el.select.noMatch"):z.options.size===0?$.noDataText||le("el.select.noData"):null),xn=computed(()=>{const br=Array.from(z.options.values()),Mr=[];return Lt.value.forEach(Ur=>{const jr=br.findIndex(Wr=>Wr.currentLabel===Ur);jr>-1&&Mr.push(br[jr])}),Mr.length?Mr:br}),Pn=computed(()=>Array.from(z.cachedOptions.values())),kn=computed(()=>{const br=xn.value.filter(Mr=>!Mr.created).some(Mr=>Mr.currentLabel===z.query);return $.filterable&&$.allowCreate&&z.query!==""&&!br}),An=useFormSize(),Nn=computed(()=>["small"].includes(An.value)?"small":"default"),Fn=computed({get(){return z.visible&&Tn.value!==!1},set(br){z.visible=br}});watch([()=>Sn.value,()=>An.value,()=>vn==null?void 0:vn.size],()=>{nextTick(()=>{Ln()})}),watch(()=>$.placeholder,br=>{z.cachedPlaceHolder=z.currentPlaceholder=br,$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(z.currentPlaceholder="")}),watch(()=>$.modelValue,(br,Mr)=>{$.multiple&&(Ln(),br&&br.length>0||_e.value&&z.query!==""?z.currentPlaceholder="":z.currentPlaceholder=z.cachedPlaceHolder,$.filterable&&!$.reserveKeyword&&(z.query="",In(z.query))),zn(),$.filterable&&!$.multiple&&(z.inputLength=20),!isEqual$1(br,Mr)&&$.validateEvent&&(_n==null||_n.validate("change").catch(Ur=>void 0))},{flush:"post",deep:!0}),watch(()=>z.visible,br=>{var Mr,Ur,jr,Wr,Zr;br?((Ur=(Mr=$e.value)==null?void 0:Mr.updatePopper)==null||Ur.call(Mr),$.filterable&&(z.filteredOptionsCount=z.optionsCount,z.query=$.remote?"":z.selectedLabel,(Wr=(jr=Ce.value)==null?void 0:jr.focus)==null||Wr.call(jr),$.multiple?(Zr=_e.value)==null||Zr.focus():z.selectedLabel&&(z.currentPlaceholder=`${z.selectedLabel}`,z.selectedLabel=""),In(z.query),!$.multiple&&!$.remote&&(qe.value.query="",triggerRef(qe),triggerRef(Et)))):($.filterable&&(isFunction$5($.filterMethod)&&$.filterMethod(""),isFunction$5($.remoteMethod)&&$.remoteMethod("")),_e.value&&_e.value.blur(),z.query="",z.previousQuery=null,z.selectedLabel="",z.inputLength=20,z.menuVisibleOnFocus=!1,Hn(),nextTick(()=>{_e.value&&_e.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))),ie.emit("visible-change",br)}),watch(()=>z.options.entries(),()=>{var br,Mr,Ur;if(!isClient$2)return;(Mr=(br=$e.value)==null?void 0:br.updatePopper)==null||Mr.call(br),$.multiple&&Ln();const jr=((Ur=Ie.value)==null?void 0:Ur.querySelectorAll("input"))||[];Array.from(jr).includes(document.activeElement)||zn(),$.defaultFirstOption&&($.filterable||$.remote)&&z.filteredOptionsCount&&Mn()},{flush:"post"}),watch(()=>z.hoverIndex,br=>{isNumber$5(br)&&br>-1?Ue.value=xn.value[br]||{}:Ue.value={},xn.value.forEach(Mr=>{Mr.hover=Ue.value===Mr})});const Ln=()=>{nextTick(()=>{var br,Mr;if(!pe.value)return;const Ur=pe.value.$el.querySelector("input");hn=hn||(Ur.clientHeight>0?Ur.clientHeight+2:0);const jr=xe.value,Wr=getComponentSize(An.value||(vn==null?void 0:vn.size)),Zr=An.value||Wr===hn||hn<=0?Wr:hn;!(Ur.offsetParent===null)&&(Ur.style.height=`${(z.selected.length===0?Zr:Math.max(jr?jr.clientHeight+(jr.clientHeight>Zr?6:0):0,Zr))-2}px`),z.tagInMultiLine=Number.parseFloat(Ur.style.height)>=Zr,z.visible&&Tn.value!==!1&&((Mr=(br=$e.value)==null?void 0:br.updatePopper)==null||Mr.call(br))})},In=async br=>{if(!(z.previousQuery===br||z.isOnComposition)){if(z.previousQuery===null&&(isFunction$5($.filterMethod)||isFunction$5($.remoteMethod))){z.previousQuery=br;return}z.previousQuery=br,nextTick(()=>{var Mr,Ur;z.visible&&((Ur=(Mr=$e.value)==null?void 0:Mr.updatePopper)==null||Ur.call(Mr))}),z.hoverIndex=-1,$.multiple&&$.filterable&&nextTick(()=>{const Mr=_e.value.value.length*15+20;z.inputLength=$.collapseTags?Math.min(50,Mr):Mr,Vn(),Ln()}),$.remote&&isFunction$5($.remoteMethod)?(z.hoverIndex=-1,$.remoteMethod(br)):isFunction$5($.filterMethod)?($.filterMethod(br),triggerRef(Et)):(z.filteredOptionsCount=z.optionsCount,qe.value.query=br,triggerRef(qe),triggerRef(Et)),$.defaultFirstOption&&($.filterable||$.remote)&&z.filteredOptionsCount&&(await nextTick(),Mn())}},Vn=()=>{z.currentPlaceholder!==""&&(z.currentPlaceholder=_e.value.value?"":z.cachedPlaceHolder)},Mn=()=>{const br=xn.value.filter(jr=>jr.visible&&!jr.disabled&&!jr.states.groupDisabled),Mr=br.find(jr=>jr.created),Ur=br[0];z.hoverIndex=Xn(xn.value,Mr||Ur)},zn=()=>{var br;if($.multiple)z.selectedLabel="";else{const Ur=qn($.modelValue);(br=Ur.props)!=null&&br.created?(z.createdLabel=Ur.props.value,z.createdSelected=!0):z.createdSelected=!1,z.selectedLabel=Ur.currentLabel,z.selected=Ur,$.filterable&&(z.query=z.selectedLabel);return}const Mr=[];Array.isArray($.modelValue)&&$.modelValue.forEach(Ur=>{Mr.push(qn(Ur))}),z.selected=Mr,nextTick(()=>{Ln()})},qn=br=>{let Mr;const Ur=toRawType(br).toLowerCase()==="object",jr=toRawType(br).toLowerCase()==="null",Wr=toRawType(br).toLowerCase()==="undefined";for(let Ar=z.cachedOptions.size-1;Ar>=0;Ar--){const Dr=Pn.value[Ar];if(Ur?get$1(Dr.value,$.valueKey)===get$1(br,$.valueKey):Dr.value===br){Mr={value:br,currentLabel:Dr.currentLabel,isDisabled:Dr.isDisabled};break}}if(Mr)return Mr;const Zr=Ur?br.label:!jr&&!Wr?br:"",Jr={value:br,currentLabel:Zr};return $.multiple&&(Jr.hitState=!1),Jr},Hn=()=>{setTimeout(()=>{const br=$.valueKey;$.multiple?z.selected.length>0?z.hoverIndex=Math.min.apply(null,z.selected.map(Mr=>xn.value.findIndex(Ur=>get$1(Ur,br)===get$1(Mr,br)))):z.hoverIndex=-1:z.hoverIndex=xn.value.findIndex(Mr=>Er(Mr)===Er(z.selected))},300)},Jn=()=>{var br,Mr;ur(),(Mr=(br=$e.value)==null?void 0:br.updatePopper)==null||Mr.call(br),$.multiple&&Ln()},ur=()=>{var br;z.inputWidth=(br=pe.value)==null?void 0:br.$el.offsetWidth},yr=()=>{$.filterable&&z.query!==z.selectedLabel&&(z.query=z.selectedLabel,In(z.query))},sr=debounce(()=>{yr()},wn.value),Zn=debounce(br=>{In(br.target.value)},wn.value),Kn=br=>{isEqual$1($.modelValue,br)||ie.emit(CHANGE_EVENT,br)},Wn=br=>{if(br.code!==EVENT_CODE.delete){if(br.target.value.length<=0&&!gr()){const Mr=$.modelValue.slice();Mr.pop(),ie.emit(UPDATE_MODEL_EVENT,Mr),Kn(Mr)}br.target.value.length===1&&$.modelValue.length===0&&(z.currentPlaceholder=z.cachedPlaceHolder)}},nr=(br,Mr)=>{const Ur=z.selected.indexOf(Mr);if(Ur>-1&&!Sn.value){const jr=$.modelValue.slice();jr.splice(Ur,1),ie.emit(UPDATE_MODEL_EVENT,jr),Kn(jr),ie.emit("remove-tag",Mr.value)}br.stopPropagation()},fr=br=>{br.stopPropagation();const Mr=$.multiple?[]:"";if(!isString$7(Mr))for(const Ur of z.selected)Ur.isDisabled&&Mr.push(Ur.value);ie.emit(UPDATE_MODEL_EVENT,Mr),Kn(Mr),z.hoverIndex=-1,z.visible=!1,ie.emit("clear")},Gn=(br,Mr)=>{var Ur;if($.multiple){const jr=($.modelValue||[]).slice(),Wr=Xn(jr,br.value);Wr>-1?jr.splice(Wr,1):($.multipleLimit<=0||jr.length<$.multipleLimit)&&jr.push(br.value),ie.emit(UPDATE_MODEL_EVENT,jr),Kn(jr),br.created&&(z.query="",In(""),z.inputLength=20),$.filterable&&((Ur=_e.value)==null||Ur.focus())}else ie.emit(UPDATE_MODEL_EVENT,br.value),Kn(br.value),z.visible=!1;z.isSilentBlur=Mr,or(),!z.visible&&nextTick(()=>{vr(br)})},Xn=(br=[],Mr)=>{if(!isObject$8(Mr))return br.indexOf(Mr);const Ur=$.valueKey;let jr=-1;return br.some((Wr,Zr)=>toRaw(get$1(Wr,Ur))===get$1(Mr,Ur)?(jr=Zr,!0):!1),jr},or=()=>{z.softFocus=!0;const br=_e.value||pe.value;br&&(br==null||br.focus())},vr=br=>{var Mr,Ur,jr,Wr,Zr;const Jr=Array.isArray(br)?br[0]:br;let Ar=null;if(Jr!=null&&Jr.value){const Dr=xn.value.filter(Yr=>Yr.value===Jr.value);Dr.length>0&&(Ar=Dr[0].$el)}if($e.value&&Ar){const Dr=(Wr=(jr=(Ur=(Mr=$e.value)==null?void 0:Mr.popperRef)==null?void 0:Ur.contentRef)==null?void 0:jr.querySelector)==null?void 0:Wr.call(jr,`.${ue.be("dropdown","wrap")}`);Dr&&scrollIntoView(Dr,Ar)}(Zr=ze.value)==null||Zr.handleScroll()},_r=br=>{z.optionsCount++,z.filteredOptionsCount++,z.options.set(br.value,br),z.cachedOptions.set(br.value,br)},ir=(br,Mr)=>{z.options.get(br)===Mr&&(z.optionsCount--,z.filteredOptionsCount--,z.options.delete(br))},Pr=br=>{br.code!==EVENT_CODE.backspace&&gr(!1),z.inputLength=_e.value.value.length*15+20,Ln()},gr=br=>{if(!Array.isArray(z.selected))return;const Mr=z.selected[z.selected.length-1];if(Mr)return br===!0||br===!1?(Mr.hitState=br,br):(Mr.hitState=!Mr.hitState,Mr.hitState)},kr=br=>{const Mr=br.target.value;if(br.type==="compositionend")z.isOnComposition=!1,nextTick(()=>In(Mr));else{const Ur=Mr[Mr.length-1]||"";z.isOnComposition=!isKorean(Ur)}},pr=()=>{nextTick(()=>vr(z.selected))},lr=br=>{z.softFocus?z.softFocus=!1:(($.automaticDropdown||$.filterable)&&($.filterable&&!z.visible&&(z.menuVisibleOnFocus=!0),z.visible=!0),ie.emit("focus",br))},dr=()=>{var br,Mr,Ur;z.visible=!1,(br=pe.value)==null||br.blur(),(Ur=(Mr=Ce.value)==null?void 0:Mr.blur)==null||Ur.call(Mr)},hr=br=>{nextTick(()=>{z.isSilentBlur?z.isSilentBlur=!1:ie.emit("blur",br)}),z.softFocus=!1},Or=br=>{fr(br)},Lr=()=>{z.visible=!1},Br=br=>{z.visible&&(br.preventDefault(),br.stopPropagation(),z.visible=!1)},Rr=br=>{var Mr;br&&!z.mouseEnter||Sn.value||(z.menuVisibleOnFocus?z.menuVisibleOnFocus=!1:(!$e.value||!$e.value.isFocusInsideContent())&&(z.visible=!z.visible),z.visible&&((Mr=_e.value||pe.value)==null||Mr.focus()))},Sr=()=>{z.visible?xn.value[z.hoverIndex]&&Gn(xn.value[z.hoverIndex],void 0):Rr()},Er=br=>isObject$8(br.value)?get$1(br.value,$.valueKey):br.value,cr=computed(()=>xn.value.filter(br=>br.visible).every(br=>br.disabled)),Qn=computed(()=>z.selected.slice(0,$.maxCollapseTags)),ar=computed(()=>z.selected.slice($.maxCollapseTags)),$r=br=>{if(!z.visible){z.visible=!0;return}if(!(z.options.size===0||z.filteredOptionsCount===0)&&!z.isOnComposition&&!cr.value){br==="next"?(z.hoverIndex++,z.hoverIndex===z.options.size&&(z.hoverIndex=0)):br==="prev"&&(z.hoverIndex--,z.hoverIndex<0&&(z.hoverIndex=z.options.size-1));const Mr=xn.value[z.hoverIndex];(Mr.disabled===!0||Mr.states.groupDisabled===!0||!Mr.visible)&&$r(br),nextTick(()=>vr(Ue.value))}};return{optionList:Lt,optionsArray:xn,selectSize:An,handleResize:Jn,debouncedOnInputChange:sr,debouncedQueryChange:Zn,deletePrevTag:Wn,deleteTag:nr,deleteSelected:fr,handleOptionSelect:Gn,scrollToOption:vr,readonly:bn,resetInputHeight:Ln,showClose:Cn,iconComponent:En,iconReverse:$n,showNewOption:kn,collapseTagSize:Nn,setSelected:zn,managePlaceholder:Vn,selectDisabled:Sn,emptyText:Tn,toggleLastOptionHitState:gr,resetInputState:Pr,handleComposition:kr,onOptionCreate:_r,onOptionDestroy:ir,handleMenuEnter:pr,handleFocus:lr,blur:dr,handleBlur:hr,handleClearClick:Or,handleClose:Lr,handleKeydownEscape:Br,toggleMenu:Rr,selectOption:Sr,getValueKey:Er,navigateOptions:$r,dropMenuVisible:Fn,queryChange:qe,groupQueryChange:Et,showTagList:Qn,collapseTagList:ar,reference:pe,input:_e,iOSInput:Ce,tooltipRef:$e,tags:xe,selectWrapper:Ie,scrollbar:ze,handleMouseEnter:()=>{z.mouseEnter=!0},handleMouseLeave:()=>{z.mouseEnter=!1}}};var ElOptions=defineComponent({name:"ElOptions",emits:["update-options"],setup($,{slots:z,emit:ie}){let le=[];function ue(pe,_e){if(pe.length!==_e.length)return!1;for(const[Ce]of pe.entries())if(pe[Ce]!=_e[Ce])return!1;return!0}return()=>{var pe,_e;const Ce=(pe=z.default)==null?void 0:pe.call(z),$e=[];function xe(Ie){Array.isArray(Ie)&&Ie.forEach(ze=>{var Ue,qe,Et,Lt;const hn=(Ue=(ze==null?void 0:ze.type)||{})==null?void 0:Ue.name;hn==="ElOptionGroup"?xe(!isString$7(ze.children)&&!Array.isArray(ze.children)&&isFunction$5((qe=ze.children)==null?void 0:qe.default)?(Et=ze.children)==null?void 0:Et.default():ze.children):hn==="ElOption"?$e.push((Lt=ze.props)==null?void 0:Lt.label):Array.isArray(ze.children)&&xe(ze.children)})}return Ce.length&&xe((_e=Ce[0])==null?void 0:_e.children),ue($e,le)||(le=$e,ie("update-options",$e)),Ce}}});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 ie=useNamespace("select"),le=useNamespace("input"),{t:ue}=useLocale(),pe=useSelectStates($),{optionList:_e,optionsArray:Ce,selectSize:$e,readonly:xe,handleResize:Ie,collapseTagSize:ze,debouncedOnInputChange:Ue,debouncedQueryChange:qe,deletePrevTag:Et,deleteTag:Lt,deleteSelected:hn,handleOptionSelect:vn,scrollToOption:_n,setSelected:bn,resetInputHeight:Sn,managePlaceholder:Cn,showClose:En,selectDisabled:$n,iconComponent:wn,iconReverse:Tn,showNewOption:xn,emptyText:Pn,toggleLastOptionHitState:kn,resetInputState:An,handleComposition:Nn,onOptionCreate:Fn,onOptionDestroy:Ln,handleMenuEnter:In,handleFocus:Vn,blur:Mn,handleBlur:zn,handleClearClick:qn,handleClose:Hn,handleKeydownEscape:Jn,toggleMenu:ur,selectOption:yr,getValueKey:sr,navigateOptions:Zn,dropMenuVisible:Kn,reference:Wn,input:nr,iOSInput:fr,tooltipRef:Gn,tags:Xn,selectWrapper:or,scrollbar:vr,queryChange:_r,groupQueryChange:ir,handleMouseEnter:Pr,handleMouseLeave:gr,showTagList:kr,collapseTagList:pr}=useSelect$2($,pe,z),{focus:lr}=useFocus(Wn),{inputWidth:dr,selected:hr,inputLength:Or,filteredOptionsCount:Lr,visible:Br,softFocus:Rr,selectedLabel:Sr,hoverIndex:Er,query:cr,inputHovering:Qn,currentPlaceholder:ar,menuVisibleOnFocus:$r,isOnComposition:Ir,isSilentBlur:Hr,options:br,cachedOptions:Mr,optionsCount:Ur,prefixWidth:jr,tagInMultiLine:Wr}=toRefs(pe),Zr=computed(()=>{const qr=[ie.b()],Vr=unref($e);return Vr&&qr.push(ie.m(Vr)),$.disabled&&qr.push(ie.m("disabled")),qr}),Jr=computed(()=>({maxWidth:`${unref(dr)-32}px`,width:"100%"})),Ar=computed(()=>({maxWidth:`${unref(dr)>123?unref(dr)-123:unref(dr)-75}px`}));provide(selectKey,reactive({props:$,options:br,optionsArray:Ce,cachedOptions:Mr,optionsCount:Ur,filteredOptionsCount:Lr,hoverIndex:Er,handleOptionSelect:vn,onOptionCreate:Fn,onOptionDestroy:Ln,selectWrapper:or,selected:hr,setSelected:bn,queryChange:_r,groupQueryChange:ir})),onMounted(()=>{pe.cachedPlaceHolder=ar.value=$.placeholder||(()=>ue("el.select.placeholder")),$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(ar.value=""),useResizeObserver(or,Ie),$.remote&&$.multiple&&Sn(),nextTick(()=>{const qr=Wn.value&&Wn.value.$el;if(qr&&(dr.value=qr.getBoundingClientRect().width,z.slots.prefix)){const Vr=qr.querySelector(`.${le.e("prefix")}`);jr.value=Math.max(Vr.getBoundingClientRect().width+5,30)}}),bn()}),$.multiple&&!Array.isArray($.modelValue)&&z.emit(UPDATE_MODEL_EVENT,[]),!$.multiple&&Array.isArray($.modelValue)&&z.emit(UPDATE_MODEL_EVENT,"");const Dr=computed(()=>{var qr,Vr;return(Vr=(qr=Gn.value)==null?void 0:qr.popperRef)==null?void 0:Vr.contentRef});return{isIOS:isIOS$1,onOptionsRendered:qr=>{_e.value=qr},tagInMultiLine:Wr,prefixWidth:jr,selectSize:$e,readonly:xe,handleResize:Ie,collapseTagSize:ze,debouncedOnInputChange:Ue,debouncedQueryChange:qe,deletePrevTag:Et,deleteTag:Lt,deleteSelected:hn,handleOptionSelect:vn,scrollToOption:_n,inputWidth:dr,selected:hr,inputLength:Or,filteredOptionsCount:Lr,visible:Br,softFocus:Rr,selectedLabel:Sr,hoverIndex:Er,query:cr,inputHovering:Qn,currentPlaceholder:ar,menuVisibleOnFocus:$r,isOnComposition:Ir,isSilentBlur:Hr,options:br,resetInputHeight:Sn,managePlaceholder:Cn,showClose:En,selectDisabled:$n,iconComponent:wn,iconReverse:Tn,showNewOption:xn,emptyText:Pn,toggleLastOptionHitState:kn,resetInputState:An,handleComposition:Nn,handleMenuEnter:In,handleFocus:Vn,blur:Mn,handleBlur:zn,handleClearClick:qn,handleClose:Hn,handleKeydownEscape:Jn,toggleMenu:ur,selectOption:yr,getValueKey:sr,navigateOptions:Zn,dropMenuVisible:Kn,focus:lr,reference:Wn,input:nr,iOSInput:fr,tooltipRef:Gn,popperPaneRef:Dr,tags:Xn,selectWrapper:or,scrollbar:vr,wrapperKls:Zr,selectTagsStyle:Jr,nsSelect:ie,tagTextStyle:Ar,handleMouseEnter:Pr,handleMouseLeave:gr,showTagList:kr,collapseTagList:pr}}}),_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,ie,le,ue,pe){const _e=resolveComponent("el-tag"),Ce=resolveComponent("el-tooltip"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-input"),Ie=resolveComponent("el-option"),ze=resolveComponent("el-options"),Ue=resolveComponent("el-scrollbar"),qe=resolveComponent("el-select-menu"),Et=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass($.wrapperKls),onMouseenter:z[21]||(z[21]=(...Lt)=>$.handleMouseEnter&&$.handleMouseEnter(...Lt)),onMouseleave:z[22]||(z[22]=(...Lt)=>$.handleMouseLeave&&$.handleMouseLeave(...Lt)),onClick:z[23]||(z[23]=withModifiers((...Lt)=>$.toggleMenu&&$.toggleMenu(...Lt),["stop"]))},[createVNode(Ce,{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]=Lt=>$.inputHovering=!0),onMouseleave:z[20]||(z[20]=Lt=>$.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,Lt=>(openBlock(),createBlock(_e,{key:$.getValueKey(Lt),closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1($.tagTextStyle)},toDisplayString$1(Lt.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),$.selected.length>$.maxCollapseTags?(openBlock(),createBlock(_e,{key:0,closable:!1,size:$.collapseTagSize,type:$.tagType,"disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(Ce,{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,Lt=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Lt),class:normalizeClass($.nsSelect.e("collapse-tag"))},[createVNode(_e,{class:"in-tooltip",closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(Lt.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,Lt=>(openBlock(),createBlock(_e,{key:$.getValueKey(Lt),closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(Lt.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]=Lt=>$.query=Lt),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]=(...Lt)=>$.handleFocus&&$.handleFocus(...Lt)),onBlur:z[2]||(z[2]=(...Lt)=>$.handleBlur&&$.handleBlur(...Lt)),onKeyup:z[3]||(z[3]=(...Lt)=>$.managePlaceholder&&$.managePlaceholder(...Lt)),onKeydown:[z[4]||(z[4]=(...Lt)=>$.resetInputState&&$.resetInputState(...Lt)),z[5]||(z[5]=withKeys(withModifiers(Lt=>$.navigateOptions("next"),["prevent"]),["down"])),z[6]||(z[6]=withKeys(withModifiers(Lt=>$.navigateOptions("prev"),["prevent"]),["up"])),z[7]||(z[7]=withKeys((...Lt)=>$.handleKeydownEscape&&$.handleKeydownEscape(...Lt),["esc"])),z[8]||(z[8]=withKeys(withModifiers((...Lt)=>$.selectOption&&$.selectOption(...Lt),["stop","prevent"]),["enter"])),z[9]||(z[9]=withKeys((...Lt)=>$.deletePrevTag&&$.deletePrevTag(...Lt),["delete"])),z[10]||(z[10]=withKeys(Lt=>$.visible=!1,["tab"]))],onCompositionstart:z[11]||(z[11]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onCompositionupdate:z[12]||(z[12]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onCompositionend:z[13]||(z[13]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onInput:z[14]||(z[14]=(...Lt)=>$.debouncedQueryChange&&$.debouncedQueryChange(...Lt))},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(xe,{id:$.id,ref:"reference",modelValue:$.selectedLabel,"onUpdate:modelValue":z[15]||(z[15]=Lt=>$.selectedLabel=Lt),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(Lt=>$.navigateOptions("next"),["stop","prevent"]),["down"])),z[17]||(z[17]=withKeys(withModifiers(Lt=>$.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers($.selectOption,["stop","prevent"]),["enter"]),withKeys($.handleKeydownEscape,["esc"]),z[18]||(z[18]=withKeys(Lt=>$.visible=!1,["tab"]))]},createSlots({suffix:withCtx(()=>[$.iconComponent&&!$.showClose?(openBlock(),createBlock($e,{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($e,{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(qe,null,{default:withCtx(()=>[withDirectives(createVNode(Ue,{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(Ie,{key:0,value:$.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode(ze,{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)),[[Et,$.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"),ie=ref(!0),le=getCurrentInstance(),ue=ref([]);provide(selectGroupKey,reactive({...toRefs($)}));const pe=inject(selectKey);onMounted(()=>{ue.value=_e(le.subTree)});const _e=$e=>{const xe=[];return Array.isArray($e.children)&&$e.children.forEach(Ie=>{var ze;Ie.type&&Ie.type.name==="ElOption"&&Ie.component&&Ie.component.proxy?xe.push(Ie.component.proxy):(ze=Ie.children)!=null&&ze.length&&xe.push(..._e(Ie))}),xe},{groupQueryChange:Ce}=toRaw(pe);return watch(Ce,()=>{ie.value=ue.value.some($e=>$e.visible===!0)},{flush:"post"}),{visible:ie,ns:z}}});function _sfc_render$9($,z,ie,le,ue,pe){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 ie=$,{t:le}=useLocale(),ue=useNamespace("pagination"),pe=usePagination(),_e=ref(ie.pageSize);watch(()=>ie.pageSizes,(xe,Ie)=>{if(!isEqual$1(xe,Ie)&&Array.isArray(xe)){const ze=xe.includes(ie.pageSize)?ie.pageSize:ie.pageSizes[0];z("page-size-change",ze)}}),watch(()=>ie.pageSize,xe=>{_e.value=xe});const Ce=computed(()=>ie.pageSizes);function $e(xe){var Ie;xe!==_e.value&&(_e.value=xe,(Ie=pe.handleSizeChange)==null||Ie.call(pe,Number(xe)))}return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ue).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":_e.value,disabled:xe.disabled,"popper-class":xe.popperClass,size:xe.size,"validate-event":!1,onChange:$e},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ce),ze=>(openBlock(),createBlock(unref(ElOption),{key:ze,value:ze,label:ze+unref(le)("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(),ie=useNamespace("pagination"),{pageCount:le,disabled:ue,currentPage:pe,changeEvent:_e}=usePagination(),Ce=ref(),$e=computed(()=>{var ze;return(ze=Ce.value)!=null?ze:pe==null?void 0:pe.value});function xe(ze){Ce.value=ze?+ze:""}function Ie(ze){ze=Math.trunc(+ze),_e==null||_e(ze),Ce.value=void 0}return(ze,Ue)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie).e("jump")),disabled:unref(ue)},[createBaseVNode("span",{class:normalizeClass([unref(ie).e("goto")])},toDisplayString$1(unref(z)("el.pagination.goto")),3),createVNode(unref(ElInput),{size:ze.size,class:normalizeClass([unref(ie).e("editor"),unref(ie).is("in-pagination")]),min:1,max:unref(le),disabled:unref(ue),"model-value":unref($e),"validate-event":!1,label:unref(z)("el.pagination.page"),type:"number","onUpdate:modelValue":xe,onChange:Ie},null,8,["size","class","max","disabled","model-value","label"]),createBaseVNode("span",{class:normalizeClass([unref(ie).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(),ie=useNamespace("pagination"),{disabled:le}=usePagination();return(ue,pe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie).e("total")),disabled:unref(le)},toDisplayString$1(unref(z)("el.pagination.total",{total:ue.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 ie=$,le=useNamespace("pager"),ue=useNamespace("icon"),{t:pe}=useLocale(),_e=ref(!1),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),ze=ref(!1),Ue=computed(()=>{const _n=ie.pagerCount,bn=(_n-1)/2,Sn=Number(ie.currentPage),Cn=Number(ie.pageCount);let En=!1,$n=!1;Cn>_n&&(Sn>_n-bn&&(En=!0),Sn<Cn-bn&&($n=!0));const wn=[];if(En&&!$n){const Tn=Cn-(_n-2);for(let xn=Tn;xn<Cn;xn++)wn.push(xn)}else if(!En&&$n)for(let Tn=2;Tn<_n;Tn++)wn.push(Tn);else if(En&&$n){const Tn=Math.floor(_n/2)-1;for(let xn=Sn-Tn;xn<=Sn+Tn;xn++)wn.push(xn)}else for(let Tn=2;Tn<Cn;Tn++)wn.push(Tn);return wn}),qe=computed(()=>ie.disabled?-1:0);watchEffect(()=>{const _n=(ie.pagerCount-1)/2;_e.value=!1,Ce.value=!1,ie.pageCount>ie.pagerCount&&(ie.currentPage>ie.pagerCount-_n&&(_e.value=!0),ie.currentPage<ie.pageCount-_n&&(Ce.value=!0))});function Et(_n=!1){ie.disabled||(_n?$e.value=!0:xe.value=!0)}function Lt(_n=!1){_n?Ie.value=!0:ze.value=!0}function hn(_n){const bn=_n.target;if(bn.tagName.toLowerCase()==="li"&&Array.from(bn.classList).includes("number")){const Sn=Number(bn.textContent);Sn!==ie.currentPage&&z("change",Sn)}else bn.tagName.toLowerCase()==="li"&&Array.from(bn.classList).includes("more")&&vn(_n)}function vn(_n){const bn=_n.target;if(bn.tagName.toLowerCase()==="ul"||ie.disabled)return;let Sn=Number(bn.textContent);const Cn=ie.pageCount,En=ie.currentPage,$n=ie.pagerCount-2;bn.className.includes("more")&&(bn.className.includes("quickprev")?Sn=En-$n:bn.className.includes("quicknext")&&(Sn=En+$n)),Number.isNaN(+Sn)||(Sn<1&&(Sn=1),Sn>Cn&&(Sn=Cn)),Sn!==En&&z("change",Sn)}return(_n,bn)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(le).b()),onClick:vn,onKeyup:withKeys(hn,["enter"])},[_n.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(le).is("active",_n.currentPage===1),unref(le).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===1,"aria-label":unref(pe)("el.pagination.currentPage",{pager:1}),tabindex:unref(qe)}," 1 ",10,_hoisted_2$g)):createCommentVNode("v-if",!0),_e.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",unref(ue).b(),unref(le).is("disabled",_n.disabled)]),tabindex:unref(qe),"aria-label":unref(pe)("el.pagination.prevPages",{pager:_n.pagerCount-2}),onMouseenter:bn[0]||(bn[0]=Sn=>Et(!0)),onMouseleave:bn[1]||(bn[1]=Sn=>$e.value=!1),onFocus:bn[2]||(bn[2]=Sn=>Lt(!0)),onBlur:bn[3]||(bn[3]=Sn=>Ie.value=!1)},[($e.value||Ie.value)&&!_n.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(Ue),Sn=>(openBlock(),createElementBlock("li",{key:Sn,class:normalizeClass([[unref(le).is("active",_n.currentPage===Sn),unref(le).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===Sn,"aria-label":unref(pe)("el.pagination.currentPage",{pager:Sn}),tabindex:unref(qe)},toDisplayString$1(Sn),11,_hoisted_4$6))),128)),Ce.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",unref(ue).b(),unref(le).is("disabled",_n.disabled)]),tabindex:unref(qe),"aria-label":unref(pe)("el.pagination.nextPages",{pager:_n.pagerCount-2}),onMouseenter:bn[4]||(bn[4]=Sn=>Et()),onMouseleave:bn[5]||(bn[5]=Sn=>xe.value=!1),onFocus:bn[6]||(bn[6]=Sn=>Lt()),onBlur:bn[7]||(bn[7]=Sn=>ze.value=!1)},[(xe.value||ze.value)&&!_n.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),_n.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(le).is("active",_n.currentPage===_n.pageCount),unref(le).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===_n.pageCount,"aria-label":unref(pe)("el.pagination.currentPage",{pager:_n.pageCount}),tabindex:unref(qe)},toDisplayString$1(_n.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:ie}){const{t:le}=useLocale(),ue=useNamespace("pagination"),pe=getCurrentInstance().vnode.props||{},_e="onUpdate:currentPage"in pe||"onUpdate:current-page"in pe||"onCurrentChange"in pe,Ce="onUpdate:pageSize"in pe||"onUpdate:page-size"in pe||"onSizeChange"in pe,$e=computed(()=>{if(isAbsent($.total)&&isAbsent($.pageCount)||!isAbsent($.currentPage)&&!_e)return!1;if($.layout.includes("sizes")){if(isAbsent($.pageCount)){if(!isAbsent($.total)&&!isAbsent($.pageSize)&&!Ce)return!1}else if(!Ce)return!1}return!0}),xe=ref(isAbsent($.defaultPageSize)?10:$.defaultPageSize),Ie=ref(isAbsent($.defaultCurrentPage)?1:$.defaultCurrentPage),ze=computed({get(){return isAbsent($.pageSize)?xe.value:$.pageSize},set(bn){isAbsent($.pageSize)&&(xe.value=bn),Ce&&(z("update:page-size",bn),z("size-change",bn))}}),Ue=computed(()=>{let bn=0;return isAbsent($.pageCount)?isAbsent($.total)||(bn=Math.max(1,Math.ceil($.total/ze.value))):bn=$.pageCount,bn}),qe=computed({get(){return isAbsent($.currentPage)?Ie.value:$.currentPage},set(bn){let Sn=bn;bn<1?Sn=1:bn>Ue.value&&(Sn=Ue.value),isAbsent($.currentPage)&&(Ie.value=Sn),_e&&(z("update:current-page",Sn),z("current-change",Sn))}});watch(Ue,bn=>{qe.value>bn&&(qe.value=bn)});function Et(bn){qe.value=bn}function Lt(bn){ze.value=bn;const Sn=Ue.value;qe.value>Sn&&(qe.value=Sn)}function hn(){$.disabled||(qe.value-=1,z("prev-click",qe.value))}function vn(){$.disabled||(qe.value+=1,z("next-click",qe.value))}function _n(bn,Sn){bn&&(bn.props||(bn.props={}),bn.props.class=[bn.props.class,Sn].join(" "))}return provide(elPaginationKey,{pageCount:Ue,disabled:computed(()=>$.disabled),currentPage:qe,changeEvent:Et,handleSizeChange:Lt}),()=>{var bn,Sn;if(!$e.value)return le("el.pagination.deprecationWarning"),null;if(!$.layout||$.hideOnSinglePage&&Ue.value<=1)return null;const Cn=[],En=[],$n=h$3("div",{class:ue.e("rightwrapper")},En),wn={prev:h$3(Prev,{disabled:$.disabled,currentPage:qe.value,prevText:$.prevText,prevIcon:$.prevIcon,onClick:hn}),jumper:h$3(Jumper,{size:$.small?"small":"default"}),pager:h$3(Pager,{currentPage:qe.value,pageCount:Ue.value,pagerCount:$.pagerCount,onChange:Et,disabled:$.disabled}),next:h$3(Next,{disabled:$.disabled,currentPage:qe.value,pageCount:Ue.value,nextText:$.nextText,nextIcon:$.nextIcon,onClick:vn}),sizes:h$3(Sizes,{pageSize:ze.value,pageSizes:$.pageSizes,popperClass:$.popperClass,disabled:$.disabled,size:$.small?"small":"default"}),slot:(Sn=(bn=ie==null?void 0:ie.default)==null?void 0:bn.call(ie))!=null?Sn:null,total:h$3(Total,{total:isAbsent($.total)?0:$.total})},Tn=$.layout.split(",").map(Pn=>Pn.trim());let xn=!1;return Tn.forEach(Pn=>{if(Pn==="->"){xn=!0;return}xn?En.push(wn[Pn]):Cn.push(wn[Pn])}),_n(Cn[0],ue.is("first")),_n(Cn[Cn.length-1],ue.is("last")),xn&&En.length>0&&(_n(En[0],ue.is("first")),_n(En[En.length-1],ue.is("last")),Cn.push($n)),h$3("div",{class:[ue.b(),ue.is("background",$.background),{[ue.m("small")]:$.small}]},Cn)}}});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 ie=$,{t:le}=useLocale(),ue=useNamespace("popconfirm"),pe=ref(),_e=()=>{var Ue,qe;(qe=(Ue=pe.value)==null?void 0:Ue.onClose)==null||qe.call(Ue)},Ce=computed(()=>({width:addUnit(ie.width)})),$e=Ue=>{z("confirm",Ue),_e()},xe=Ue=>{z("cancel",Ue),_e()},Ie=computed(()=>ie.confirmButtonText||le("el.popconfirm.confirmButtonText")),ze=computed(()=>ie.cancelButtonText||le("el.popconfirm.cancelButtonText"));return(Ue,qe)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:pe,trigger:"click",effect:"light"},Ue.$attrs,{"popper-class":`${unref(ue).namespace.value}-popover`,"popper-style":unref(Ce),teleported:Ue.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Ue.hideAfter,persistent:Ue.persistent}),{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(ue).b())},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("main"))},[!Ue.hideIcon&&Ue.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).e("icon")),style:normalizeStyle$1({color:Ue.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ue.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1(Ue.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(ue).e("action"))},[createVNode(unref(ElButton),{size:"small",type:Ue.cancelButtonType==="text"?"":Ue.cancelButtonType,text:Ue.cancelButtonType==="text",onClick:xe},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ze)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:Ue.confirmButtonType==="text"?"":Ue.confirmButtonType,text:Ue.confirmButtonType==="text",onClick:$e},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[Ue.$slots.reference?renderSlot(Ue.$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:ie}){const le=$,ue=computed(()=>le[updateEventKeyRaw]),pe=useNamespace("popover"),_e=ref(),Ce=computed(()=>{var hn;return(hn=unref(_e))==null?void 0:hn.popperRef}),$e=computed(()=>[{width:addUnit(le.width)},le.popperStyle]),xe=computed(()=>[pe.b(),le.popperClass,{[pe.m("plain")]:!!le.content}]),Ie=computed(()=>le.transition===`${pe.namespace.value}-fade-in-linear`),ze=()=>{var hn;(hn=_e.value)==null||hn.hide()},Ue=()=>{ie("before-enter")},qe=()=>{ie("before-leave")},Et=()=>{ie("after-enter")},Lt=()=>{ie("update:visible",!1),ie("after-leave")};return z({popperRef:Ce,hide:ze}),(hn,vn)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:_e},hn.$attrs,{trigger:hn.trigger,placement:hn.placement,disabled:hn.disabled,visible:hn.visible,transition:hn.transition,"popper-options":hn.popperOptions,tabindex:hn.tabindex,content:hn.content,offset:hn.offset,"show-after":hn.showAfter,"hide-after":hn.hideAfter,"auto-close":hn.autoClose,"show-arrow":hn.showArrow,"aria-label":hn.title,effect:hn.effect,enterable:hn.enterable,"popper-class":unref(xe),"popper-style":unref($e),teleported:hn.teleported,persistent:hn.persistent,"gpu-acceleration":unref(Ie),"onUpdate:visible":unref(ue),onBeforeShow:Ue,onBeforeHide:qe,onShow:Et,onHide:Lt}),{content:withCtx(()=>[hn.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).e("title")),role:"title"},toDisplayString$1(hn.title),3)):createCommentVNode("v-if",!0),renderSlot(hn.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(hn.content),1)])]),default:withCtx(()=>[hn.$slots.reference?renderSlot(hn.$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 ie=z.arg||z.value,le=ie==null?void 0:ie.popperRef;le&&(le.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=$,ie={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},le=useNamespace("progress"),ue=computed(()=>({width:`${z.percentage}%`,animationDuration:`${z.duration}s`,backgroundColor:_n(z.percentage)})),pe=computed(()=>(z.strokeWidth/z.width*100).toFixed(1)),_e=computed(()=>["circle","dashboard"].includes(z.type)?Number.parseInt(`${50-Number.parseFloat(pe.value)/2}`,10):0),Ce=computed(()=>{const bn=_e.value,Sn=z.type==="dashboard";return`
M 50 50
m 0 ${Sn?"":"-"}${bn}
a ${bn} ${bn} 0 1 1 0 ${Sn?"-":""}${bn*2}
a ${bn} ${bn} 0 1 1 0 ${Sn?"":"-"}${bn*2}
`}),$e=computed(()=>2*Math.PI*_e.value),xe=computed(()=>z.type==="dashboard"?.75:1),Ie=computed(()=>`${-1*$e.value*(1-xe.value)/2}px`),ze=computed(()=>({strokeDasharray:`${$e.value*xe.value}px, ${$e.value}px`,strokeDashoffset:Ie.value})),Ue=computed(()=>({strokeDasharray:`${$e.value*xe.value*(z.percentage/100)}px, ${$e.value}px`,strokeDashoffset:Ie.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),qe=computed(()=>{let bn;return z.color?bn=_n(z.percentage):bn=ie[z.status]||ie.default,bn}),Et=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),Lt=computed(()=>z.type==="line"?12+z.strokeWidth*.4:z.width*.111111+2),hn=computed(()=>z.format(z.percentage));function vn(bn){const Sn=100/bn.length;return bn.map((En,$n)=>isString$7(En)?{color:En,percentage:($n+1)*Sn}:En).sort((En,$n)=>En.percentage-$n.percentage)}const _n=bn=>{var Sn;const{color:Cn}=z;if(isFunction$5(Cn))return Cn(bn);if(isString$7(Cn))return Cn;{const En=vn(Cn);for(const $n of En)if($n.percentage>bn)return $n.color;return(Sn=En[En.length-1])==null?void 0:Sn.color}};return(bn,Sn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(le).m(bn.type),unref(le).is(bn.status),{[unref(le).m("without-text")]:!bn.showText,[unref(le).m("text-inside")]:bn.textInside}]),role:"progressbar","aria-valuenow":bn.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[bn.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(le).be("bar","outer")),style:normalizeStyle$1({height:`${bn.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(le).be("bar","inner"),{[unref(le).bem("bar","inner","indeterminate")]:bn.indeterminate},{[unref(le).bem("bar","inner","striped")]:bn.striped},{[unref(le).bem("bar","inner","striped-flow")]:bn.stripedFlow}]),style:normalizeStyle$1(unref(ue))},[(bn.showText||bn.$slots.default)&&bn.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).be("bar","innerText"))},[renderSlot(bn.$slots,"default",{percentage:bn.percentage},()=>[createBaseVNode("span",null,toDisplayString$1(unref(hn)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).b("circle")),style:normalizeStyle$1({height:`${bn.width}px`,width:`${bn.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$f,[createBaseVNode("path",{class:normalizeClass(unref(le).be("circle","track")),d:unref(Ce),stroke:`var(${unref(le).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":unref(pe),fill:"none",style:normalizeStyle$1(unref(ze))},null,14,_hoisted_3$8),createBaseVNode("path",{class:normalizeClass(unref(le).be("circle","path")),d:unref(Ce),stroke:unref(qe),fill:"none",opacity:bn.percentage?1:0,"stroke-linecap":bn.strokeLinecap,"stroke-width":unref(pe),style:normalizeStyle$1(unref(Ue))},null,14,_hoisted_4$5)]))],6)),(bn.showText||bn.$slots.default)&&!bn.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(le).e("text")),style:normalizeStyle$1({fontSize:`${unref(Lt)}px`})},[renderSlot(bn.$slots,"default",{percentage:bn.percentage},()=>[bn.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Et))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString$1(unref(hn)),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:ie}){const le=$;function ue(Ln,In){const Vn=qn=>isObject$8(qn),Mn=Object.keys(In).map(qn=>+qn).filter(qn=>{const Hn=In[qn];return(Vn(Hn)?Hn.excluded:!1)?Ln<qn:Ln<=qn}).sort((qn,Hn)=>qn-Hn),zn=In[Mn[0]];return Vn(zn)&&zn.value||zn}const pe=inject(formContextKey,void 0),_e=inject(formItemContextKey,void 0),Ce=useFormSize(),$e=useNamespace("rate"),{inputId:xe,isLabeledByFormItem:Ie}=useFormItemInputId(le,{formItemContext:_e}),ze=ref(le.modelValue),Ue=ref(-1),qe=ref(!0),Et=computed(()=>[$e.b(),$e.m(Ce.value)]),Lt=computed(()=>le.disabled||(pe==null?void 0:pe.disabled)),hn=computed(()=>$e.cssVarBlock({"void-color":le.voidColor,"disabled-void-color":le.disabledVoidColor,"fill-color":Sn.value})),vn=computed(()=>{let Ln="";return le.showScore?Ln=le.scoreTemplate.replace(/\{\s*value\s*\}/,Lt.value?`${le.modelValue}`:`${ze.value}`):le.showText&&(Ln=le.texts[Math.ceil(ze.value)-1]),Ln}),_n=computed(()=>le.modelValue*100-Math.floor(le.modelValue)*100),bn=computed(()=>isArray$c(le.colors)?{[le.lowThreshold]:le.colors[0],[le.highThreshold]:{value:le.colors[1],excluded:!0},[le.max]:le.colors[2]}:le.colors),Sn=computed(()=>{const Ln=ue(ze.value,bn.value);return isObject$8(Ln)?"":Ln}),Cn=computed(()=>{let Ln="";return Lt.value?Ln=`${_n.value}%`:le.allowHalf&&(Ln="50%"),{color:Sn.value,width:Ln}}),En=computed(()=>{let Ln=isArray$c(le.icons)?[...le.icons]:{...le.icons};return Ln=markRaw(Ln),isArray$c(Ln)?{[le.lowThreshold]:Ln[0],[le.highThreshold]:{value:Ln[1],excluded:!0},[le.max]:Ln[2]}:Ln}),$n=computed(()=>ue(le.modelValue,En.value)),wn=computed(()=>Lt.value?isString$7(le.disabledVoidIcon)?le.disabledVoidIcon:markRaw(le.disabledVoidIcon):isString$7(le.voidIcon)?le.voidIcon:markRaw(le.voidIcon)),Tn=computed(()=>ue(ze.value,En.value));function xn(Ln){const In=Lt.value&&_n.value>0&&Ln-1<le.modelValue&&Ln>le.modelValue,Vn=le.allowHalf&&qe.value&&Ln-.5<=ze.value&&Ln>ze.value;return In||Vn}function Pn(Ln){le.clearable&&Ln===le.modelValue&&(Ln=0),ie(UPDATE_MODEL_EVENT,Ln),le.modelValue!==Ln&&ie("change",Ln)}function kn(Ln){Lt.value||(le.allowHalf&&qe.value?Pn(ze.value):Pn(Ln))}function An(Ln){if(Lt.value)return;let In=ze.value;const Vn=Ln.code;return Vn===EVENT_CODE.up||Vn===EVENT_CODE.right?(le.allowHalf?In+=.5:In+=1,Ln.stopPropagation(),Ln.preventDefault()):(Vn===EVENT_CODE.left||Vn===EVENT_CODE.down)&&(le.allowHalf?In-=.5:In-=1,Ln.stopPropagation(),Ln.preventDefault()),In=In<0?0:In,In=In>le.max?le.max:In,ie(UPDATE_MODEL_EVENT,In),ie("change",In),In}function Nn(Ln,In){if(!Lt.value){if(le.allowHalf&&In){let Vn=In.target;hasClass(Vn,$e.e("item"))&&(Vn=Vn.querySelector(`.${$e.e("icon")}`)),(Vn.clientWidth===0||hasClass(Vn,$e.e("decimal")))&&(Vn=Vn.parentNode),qe.value=In.offsetX*2<=Vn.clientWidth,ze.value=qe.value?Ln-.5:Ln}else ze.value=Ln;Ue.value=Ln}}function Fn(){Lt.value||(le.allowHalf&&(qe.value=le.modelValue!==Math.floor(le.modelValue)),ze.value=le.modelValue,Ue.value=-1)}return watch(()=>le.modelValue,Ln=>{ze.value=Ln,qe.value=le.modelValue!==Math.floor(le.modelValue)}),le.modelValue||ie(UPDATE_MODEL_EVENT,0),z({setCurrentValue:Nn,resetCurrentValue:Fn}),(Ln,In)=>{var Vn;return openBlock(),createElementBlock("div",{id:unref(xe),class:normalizeClass([unref(Et),unref($e).is("disabled",unref(Lt))]),role:"slider","aria-label":unref(Ie)?void 0:Ln.label||"rating","aria-labelledby":unref(Ie)?(Vn=unref(_e))==null?void 0:Vn.labelId:void 0,"aria-valuenow":ze.value,"aria-valuetext":unref(vn)||void 0,"aria-valuemin":"0","aria-valuemax":Ln.max,tabindex:"0",style:normalizeStyle$1(unref(hn)),onKeydown:An},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ln.max,(Mn,zn)=>(openBlock(),createElementBlock("span",{key:zn,class:normalizeClass(unref($e).e("item")),onMousemove:qn=>Nn(Mn,qn),onMouseleave:Fn,onClick:qn=>kn(Mn)},[createVNode(unref(ElIcon),{class:normalizeClass([unref($e).e("icon"),{hover:Ue.value===Mn},unref($e).is("active",Mn<=ze.value)])},{default:withCtx(()=>[xn(Mn)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(Tn)),null,null,512)),[[vShow,Mn<=ze.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(wn)),null,null,512)),[[vShow,!(Mn<=ze.value)]])],64)),xn(Mn)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle$1(unref(Cn)),class:normalizeClass([unref($e).e("icon"),unref($e).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref($n))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$e))),128)),Ln.showText||Ln.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref($e).e("text"))},toDisplayString$1(unref(vn)),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=$,ie=useNamespace("result"),le=computed(()=>{const ue=z.icon,pe=ue&&IconMap[ue]?IconMap[ue]:"icon-info",_e=IconComponentMap[pe]||IconComponentMap["icon-info"];return{class:pe,component:_e}});return(ue,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("icon"))},[renderSlot(ue.$slots,"icon",{},()=>[unref(le).component?(openBlock(),createBlock(resolveDynamicComponent(unref(le).component),{key:0,class:normalizeClass(unref(le).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),ue.title||ue.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("title"))},[renderSlot(ue.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString$1(ue.title),1)])],2)):createCommentVNode("v-if",!0),ue.subTitle||ue.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("subtitle"))},[renderSlot(ue.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString$1(ue.subTitle),1)])],2)):createCommentVNode("v-if",!0),ue.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ie).e("extra"))},[renderSlot(ue.$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 ie=0;ie<$.length;ie++)if(!isEqual($[ie],z[ie]))return!1;return!0}function memoizeOne($,z){z===void 0&&(z=areInputsEqual);var ie=null;function le(){for(var ue=[],pe=0;pe<arguments.length;pe++)ue[pe]=arguments[pe];if(ie&&ie.lastThis===this&&z(ue,ie.lastArgs))return ie.lastResult;var _e=$.apply(this,ue);return ie={lastResult:_e,lastArgs:ue,lastThis:this},_e}return le.clear=function(){ie=null},le}const useCache=()=>{const z=getCurrentInstance().proxy.$props;return computed(()=>{const ie=(le,ue,pe)=>({});return z.perfMode?memoize(ie):memoizeOne(ie)})},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:ie},le)=>{let ue,pe=0;const _e=$e=>$e<0&&z.value||$e>0&&$.value;return{hasReachedEdge:_e,onWheel:$e=>{cAF(ue);const xe=$e[LayoutKeys[ie.value]];_e(pe)&&_e(pe+xe)||(pe+=xe,isFirefox()||$e.preventDefault(),ue=rAF(()=>{le(pe),pe=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"),ie=z.style;ie.width="50px",ie.height="50px",ie.overflow="scroll",ie.direction="rtl";const le=document.createElement("div"),ue=le.style;return ue.width="100px",ue.height="100px",z.appendChild(le),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:ie},le){const ue={},pe=`translate${ie.axis}(${$}px)`;return ue[ie.size]=z,ue.transform=pe,ue.msTransform=pe,ue.webkitTransform=pe,le==="horizontal"?ue.height="100%":ue.width="100%",ue}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup($,{emit:z}){const ie=computed(()=>$.startGap+$.endGap),le=useNamespace("virtual-scrollbar"),ue=useNamespace("scrollbar"),pe=ref(),_e=ref();let Ce=null,$e=null;const xe=reactive({isDragging:!1,traveled:0}),Ie=computed(()=>BAR_MAP[$.layout]),ze=computed(()=>$.clientSize-unref(ie)),Ue=computed(()=>({position:"absolute",width:`${HORIZONTAL$1===$.layout?ze.value:$.scrollbarSize}px`,height:`${HORIZONTAL$1===$.layout?$.scrollbarSize:ze.value}px`,[ScrollbarDirKey[$.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),qe=computed(()=>{const En=$.ratio,$n=$.clientSize;if(En>=100)return Number.POSITIVE_INFINITY;if(En>=50)return En*$n/100;const wn=$n/3;return Math.floor(Math.min(Math.max(En*$n,SCROLLBAR_MIN_SIZE),wn))}),Et=computed(()=>{if(!Number.isFinite(qe.value))return{display:"none"};const En=`${qe.value}px`;return renderThumbStyle({bar:Ie.value,size:En,move:xe.traveled},$.layout)}),Lt=computed(()=>Math.floor($.clientSize-qe.value-unref(ie))),hn=()=>{window.addEventListener("mousemove",Sn),window.addEventListener("mouseup",bn);const En=unref(_e);En&&($e=document.onselectstart,document.onselectstart=()=>!1,En.addEventListener("touchmove",Sn),En.addEventListener("touchend",bn))},vn=()=>{window.removeEventListener("mousemove",Sn),window.removeEventListener("mouseup",bn),document.onselectstart=$e,$e=null;const En=unref(_e);En&&(En.removeEventListener("touchmove",Sn),En.removeEventListener("touchend",bn))},_n=En=>{En.stopImmediatePropagation(),!(En.ctrlKey||[1,2].includes(En.button))&&(xe.isDragging=!0,xe[Ie.value.axis]=En.currentTarget[Ie.value.offset]-(En[Ie.value.client]-En.currentTarget.getBoundingClientRect()[Ie.value.direction]),z("start-move"),hn())},bn=()=>{xe.isDragging=!1,xe[Ie.value.axis]=0,z("stop-move"),vn()},Sn=En=>{const{isDragging:$n}=xe;if(!$n||!_e.value||!pe.value)return;const wn=xe[Ie.value.axis];if(!wn)return;cAF(Ce);const Tn=(pe.value.getBoundingClientRect()[Ie.value.direction]-En[Ie.value.client])*-1,xn=_e.value[Ie.value.offset]-wn,Pn=Tn-xn;Ce=rAF(()=>{xe.traveled=Math.max($.startGap,Math.min(Pn,Lt.value)),z("scroll",Pn,Lt.value)})},Cn=En=>{const $n=Math.abs(En.target.getBoundingClientRect()[Ie.value.direction]-En[Ie.value.client]),wn=_e.value[Ie.value.offset]/2,Tn=$n-wn;xe.traveled=Math.max(0,Math.min(Tn,Lt.value)),z("scroll",Tn,Lt.value)};return watch(()=>$.scrollFrom,En=>{xe.isDragging||(xe.traveled=Math.ceil(En*Lt.value))}),onBeforeUnmount(()=>{vn()}),()=>h$3("div",{role:"presentation",ref:pe,class:[le.b(),$.class,($.alwaysOn||xe.isDragging)&&"always-on"],style:Ue.value,onMousedown:withModifiers(Cn,["stop","prevent"]),onTouchstartPrevent:_n},h$3("div",{ref:_e,class:ue.e("thumb"),style:Et.value,onMousedown:_n},[]))}}),createList$1=({name:$,getOffset:z,getItemSize:ie,getItemOffset:le,getEstimatedTotalSize:ue,getStartIndexForOffset:pe,getStopIndexForStartIndex:_e,initCache:Ce,clearCache:$e,validateProps:xe})=>defineComponent({name:$??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Ie,{emit:ze,expose:Ue}){xe(Ie);const qe=getCurrentInstance(),Et=useNamespace("vl"),Lt=ref(Ce(Ie,qe)),hn=useCache(),vn=ref(),_n=ref(),bn=ref(),Sn=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$5(Ie.initScrollOffset)?Ie.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:Ie.scrollbarAlwaysOn}),Cn=computed(()=>{const{total:Jn,cache:ur}=Ie,{isScrolling:yr,scrollDir:sr,scrollOffset:Zn}=unref(Sn);if(Jn===0)return[0,0,0,0];const Kn=pe(Ie,Zn,unref(Lt)),Wn=_e(Ie,Kn,Zn,unref(Lt)),nr=!yr||sr===BACKWARD?Math.max(1,ur):1,fr=!yr||sr===FORWARD?Math.max(1,ur):1;return[Math.max(0,Kn-nr),Math.max(0,Math.min(Jn-1,Wn+fr)),Kn,Wn]}),En=computed(()=>ue(Ie,unref(Lt))),$n=computed(()=>isHorizontal(Ie.layout)),wn=computed(()=>[{position:"relative",[`overflow-${$n.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Ie.direction,height:isNumber$5(Ie.height)?`${Ie.height}px`:Ie.height,width:isNumber$5(Ie.width)?`${Ie.width}px`:Ie.width},Ie.style]),Tn=computed(()=>{const Jn=unref(En),ur=unref($n);return{height:ur?"100%":`${Jn}px`,pointerEvents:unref(Sn).isScrolling?"none":void 0,width:ur?`${Jn}px`:"100%"}}),xn=computed(()=>$n.value?Ie.width:Ie.height),{onWheel:Pn}=useWheel({atStartEdge:computed(()=>Sn.value.scrollOffset<=0),atEndEdge:computed(()=>Sn.value.scrollOffset>=En.value),layout:computed(()=>Ie.layout)},Jn=>{var ur,yr;(yr=(ur=bn.value).onMouseUp)==null||yr.call(ur),In(Math.min(Sn.value.scrollOffset+Jn,En.value-xn.value))}),kn=()=>{const{total:Jn}=Ie;if(Jn>0){const[Zn,Kn,Wn,nr]=unref(Cn);ze(ITEM_RENDER_EVT,Zn,Kn,Wn,nr)}const{scrollDir:ur,scrollOffset:yr,updateRequested:sr}=unref(Sn);ze(SCROLL_EVT,ur,yr,sr)},An=Jn=>{const{clientHeight:ur,scrollHeight:yr,scrollTop:sr}=Jn.currentTarget,Zn=unref(Sn);if(Zn.scrollOffset===sr)return;const Kn=Math.max(0,Math.min(sr,yr-ur));Sn.value={...Zn,isScrolling:!0,scrollDir:getScrollDir(Zn.scrollOffset,Kn),scrollOffset:Kn,updateRequested:!1},nextTick(zn)},Nn=Jn=>{const{clientWidth:ur,scrollLeft:yr,scrollWidth:sr}=Jn.currentTarget,Zn=unref(Sn);if(Zn.scrollOffset===yr)return;const{direction:Kn}=Ie;let Wn=yr;if(Kn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Wn=-yr;break}case RTL_OFFSET_POS_DESC:{Wn=sr-ur-yr;break}}Wn=Math.max(0,Math.min(Wn,sr-ur)),Sn.value={...Zn,isScrolling:!0,scrollDir:getScrollDir(Zn.scrollOffset,Wn),scrollOffset:Wn,updateRequested:!1},nextTick(zn)},Fn=Jn=>{unref($n)?Nn(Jn):An(Jn),kn()},Ln=(Jn,ur)=>{const yr=(En.value-xn.value)/ur*Jn;In(Math.min(En.value-xn.value,yr))},In=Jn=>{Jn=Math.max(Jn,0),Jn!==unref(Sn).scrollOffset&&(Sn.value={...unref(Sn),scrollOffset:Jn,scrollDir:getScrollDir(unref(Sn).scrollOffset,Jn),updateRequested:!0},nextTick(zn))},Vn=(Jn,ur=AUTO_ALIGNMENT)=>{const{scrollOffset:yr}=unref(Sn);Jn=Math.max(0,Math.min(Jn,Ie.total-1)),In(z(Ie,Jn,ur,yr,unref(Lt)))},Mn=Jn=>{const{direction:ur,itemSize:yr,layout:sr}=Ie,Zn=hn.value($e&&yr,$e&&sr,$e&&ur);let Kn;if(hasOwn$4(Zn,String(Jn)))Kn=Zn[Jn];else{const Wn=le(Ie,Jn,unref(Lt)),nr=ie(Ie,Jn,unref(Lt)),fr=unref($n),Gn=ur===RTL,Xn=fr?Wn:0;Zn[Jn]=Kn={position:"absolute",left:Gn?void 0:`${Xn}px`,right:Gn?`${Xn}px`:void 0,top:fr?0:`${Wn}px`,height:fr?"100%":`${nr}px`,width:fr?`${nr}px`:"100%"}}return Kn},zn=()=>{Sn.value.isScrolling=!1,nextTick(()=>{hn.value(-1,null,null)})},qn=()=>{const Jn=vn.value;Jn&&(Jn.scrollTop=0)};onMounted(()=>{if(!isClient$2)return;const{initScrollOffset:Jn}=Ie,ur=unref(vn);isNumber$5(Jn)&&ur&&(unref($n)?ur.scrollLeft=Jn:ur.scrollTop=Jn),kn()}),onUpdated(()=>{const{direction:Jn,layout:ur}=Ie,{scrollOffset:yr,updateRequested:sr}=unref(Sn),Zn=unref(vn);if(sr&&Zn)if(ur===HORIZONTAL$1)if(Jn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Zn.scrollLeft=-yr;break}case RTL_OFFSET_POS_ASC:{Zn.scrollLeft=yr;break}default:{const{clientWidth:Kn,scrollWidth:Wn}=Zn;Zn.scrollLeft=Wn-Kn-yr;break}}else Zn.scrollLeft=yr;else Zn.scrollTop=yr});const Hn={ns:Et,clientSize:xn,estimatedTotalSize:En,windowStyle:wn,windowRef:vn,innerRef:_n,innerStyle:Tn,itemsToRender:Cn,scrollbarRef:bn,states:Sn,getItemStyle:Mn,onScroll:Fn,onScrollbarScroll:Ln,onWheel:Pn,scrollTo:In,scrollToItem:Vn,resetScrollTop:qn};return Ue({windowRef:vn,innerRef:_n,getItemStyleCache:hn,scrollTo:In,scrollToItem:Vn,resetScrollTop:qn,states:Sn}),Hn},render(Ie){var ze;const{$slots:Ue,className:qe,clientSize:Et,containerElement:Lt,data:hn,getItemStyle:vn,innerElement:_n,itemsToRender:bn,innerStyle:Sn,layout:Cn,total:En,onScroll:$n,onScrollbarScroll:wn,onWheel:Tn,states:xn,useIsScrolling:Pn,windowStyle:kn,ns:An}=Ie,[Nn,Fn]=bn,Ln=resolveDynamicComponent(Lt),In=resolveDynamicComponent(_n),Vn=[];if(En>0)for(let Hn=Nn;Hn<=Fn;Hn++)Vn.push((ze=Ue.default)==null?void 0:ze.call(Ue,{data:hn,key:Hn,index:Hn,isScrolling:Pn?xn.isScrolling:void 0,style:vn(Hn)}));const Mn=[h$3(In,{style:Sn,ref:"innerRef"},isString$7(In)?Vn:{default:()=>Vn})],zn=h$3(ScrollBar,{ref:"scrollbarRef",clientSize:Et,layout:Cn,onScroll:wn,ratio:Et*100/this.estimatedTotalSize,scrollFrom:xn.scrollOffset/(this.estimatedTotalSize-Et),total:En}),qn=h$3(Ln,{class:[An.e("window"),qe],style:kn,onScroll:$n,onWheel:Tn,ref:"windowRef",key:0},isString$7(Ln)?[Mn]:{default:()=>[Mn]});return h$3("div",{key:0,class:[An.e("wrapper"),xn.scrollbarAlwaysOn?"always-on":""]},[qn,zn])}}),FixedSizeList=createList$1({name:"ElFixedSizeList",getItemOffset:({itemSize:$},z)=>z*$,getItemSize:({itemSize:$})=>$,getEstimatedTotalSize:({total:$,itemSize:z})=>z*$,getOffset:({height:$,total:z,itemSize:ie,layout:le,width:ue},pe,_e,Ce)=>{const $e=isHorizontal(le)?ue:$,xe=Math.max(0,z*ie-$e),Ie=Math.min(xe,pe*ie),ze=Math.max(0,(pe+1)*ie-$e);switch(_e===SMART_ALIGNMENT&&(Ce>=ze-$e&&Ce<=Ie+$e?_e=AUTO_ALIGNMENT:_e=CENTERED_ALIGNMENT),_e){case START_ALIGNMENT:return Ie;case END_ALIGNMENT:return ze;case CENTERED_ALIGNMENT:{const Ue=Math.round(ze+(Ie-ze)/2);return Ue<Math.ceil($e/2)?0:Ue>xe+Math.floor($e/2)?xe:Ue}case AUTO_ALIGNMENT:default:return Ce>=ze&&Ce<=Ie?Ce:Ce<ze?ze:Ie}},getStartIndexForOffset:({total:$,itemSize:z},ie)=>Math.max(0,Math.min($-1,Math.floor(ie/z))),getStopIndexForStartIndex:({height:$,total:z,itemSize:ie,layout:le,width:ue},pe,_e)=>{const Ce=pe*ie,$e=isHorizontal(le)?ue:$,xe=Math.ceil(($e+_e-Ce)/ie);return Math.max(0,Math.min(z-1,pe+xe-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=($,z,ie)=>{const{itemSize:le}=$,{items:ue,lastVisitedIndex:pe}=ie;if(z>pe){let _e=0;if(pe>=0){const Ce=ue[pe];_e=Ce.offset+Ce.size}for(let Ce=pe+1;Ce<=z;Ce++){const $e=le(Ce);ue[Ce]={offset:_e,size:$e},_e+=$e}ie.lastVisitedIndex=z}return ue[z]},findItem$1=($,z,ie)=>{const{items:le,lastVisitedIndex:ue}=z;return(ue>0?le[ue].offset:0)>=ie?bs$1($,z,0,ue,ie):es$1($,z,Math.max(0,ue),ie)},bs$1=($,z,ie,le,ue)=>{for(;ie<=le;){const pe=ie+Math.floor((le-ie)/2),_e=getItemFromCache$1($,pe,z).offset;if(_e===ue)return pe;_e<ue?ie=pe+1:_e>ue&&(le=pe-1)}return Math.max(0,ie-1)},es$1=($,z,ie,le)=>{const{total:ue}=$;let pe=1;for(;ie<ue&&getItemFromCache$1($,ie,z).offset<le;)ie+=pe,pe*=2;return bs$1($,z,Math.floor(ie/2),Math.min(ie,ue-1),le)},getEstimatedTotalSize=({total:$},{items:z,estimatedItemSize:ie,lastVisitedIndex:le})=>{let ue=0;if(le>=$&&(le=$-1),le>=0){const Ce=z[le];ue=Ce.offset+Ce.size}const _e=($-le-1)*ie;return ue+_e},DynamicSizeList=createList$1({name:"ElDynamicSizeList",getItemOffset:($,z,ie)=>getItemFromCache$1($,z,ie).offset,getItemSize:($,z,{items:ie})=>ie[z].size,getEstimatedTotalSize,getOffset:($,z,ie,le,ue)=>{const{height:pe,layout:_e,width:Ce}=$,$e=isHorizontal(_e)?Ce:pe,xe=getItemFromCache$1($,z,ue),Ie=getEstimatedTotalSize($,ue),ze=Math.max(0,Math.min(Ie-$e,xe.offset)),Ue=Math.max(0,xe.offset-$e+xe.size);switch(ie===SMART_ALIGNMENT&&(le>=Ue-$e&&le<=ze+$e?ie=AUTO_ALIGNMENT:ie=CENTERED_ALIGNMENT),ie){case START_ALIGNMENT:return ze;case END_ALIGNMENT:return Ue;case CENTERED_ALIGNMENT:return Math.round(Ue+(ze-Ue)/2);case AUTO_ALIGNMENT:default:return le>=Ue&&le<=ze?le:le<Ue?Ue:ze}},getStartIndexForOffset:($,z,ie)=>findItem$1($,ie,z),getStopIndexForStartIndex:($,z,ie,le)=>{const{height:ue,total:pe,layout:_e,width:Ce}=$,$e=isHorizontal(_e)?Ce:ue,xe=getItemFromCache$1($,z,le),Ie=ie+$e;let ze=xe.offset+xe.size,Ue=z;for(;Ue<pe-1&&ze<Ie;)Ue++,ze+=getItemFromCache$1($,Ue,le).size;return Ue},initCache({estimatedItemSize:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE},z){const ie={items:{},estimatedItemSize:$,lastVisitedIndex:-1};return ie.clearCacheAfterIndex=(le,ue=!0)=>{var pe,_e;ie.lastVisitedIndex=Math.min(ie.lastVisitedIndex,le-1),(pe=z.exposed)==null||pe.getItemStyleCache(-1),ue&&((_e=z.proxy)==null||_e.$forceUpdate())},ie},clearCache:!1,validateProps:({itemSize:$})=>{}}),useGridWheel=({atXEndEdge:$,atXStartEdge:z,atYEndEdge:ie,atYStartEdge:le},ue)=>{let pe=null,_e=0,Ce=0;const $e=(Ie,ze)=>{const Ue=Ie<=0&&z.value||Ie>=0&&$.value,qe=ze<=0&&le.value||ze>=0&&ie.value;return Ue&&qe};return{hasReachedEdge:$e,onWheel:Ie=>{cAF(pe);let ze=Ie.deltaX,Ue=Ie.deltaY;Math.abs(ze)>Math.abs(Ue)?Ue=0:ze=0,Ie.shiftKey&&Ue!==0&&(ze=Ue,Ue=0),!($e(_e,Ce)&&$e(_e+ze,Ce+Ue))&&(_e+=ze,Ce+=Ue,Ie.preventDefault(),pe=rAF(()=>{ue(_e,Ce),_e=0,Ce=0}))}}},createGrid=({name:$,clearCache:z,getColumnPosition:ie,getColumnStartIndexForOffset:le,getColumnStopIndexForStartIndex:ue,getEstimatedTotalHeight:pe,getEstimatedTotalWidth:_e,getColumnOffset:Ce,getRowOffset:$e,getRowPosition:xe,getRowStartIndexForOffset:Ie,getRowStopIndexForStartIndex:ze,initCache:Ue,injectToInstance:qe,validateProps:Et})=>defineComponent({name:$??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Lt,{emit:hn,expose:vn,slots:_n}){const bn=useNamespace("vl");Et(Lt);const Sn=getCurrentInstance(),Cn=ref(Ue(Lt,Sn));qe==null||qe(Sn,Cn);const En=ref(),$n=ref(),wn=ref(),Tn=ref(null),xn=ref({isScrolling:!1,scrollLeft:isNumber$5(Lt.initScrollLeft)?Lt.initScrollLeft:0,scrollTop:isNumber$5(Lt.initScrollTop)?Lt.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),Pn=useCache(),kn=computed(()=>Number.parseInt(`${Lt.height}`,10)),An=computed(()=>Number.parseInt(`${Lt.width}`,10)),Nn=computed(()=>{const{totalColumn:ir,totalRow:Pr,columnCache:gr}=Lt,{isScrolling:kr,xAxisScrollDir:pr,scrollLeft:lr}=unref(xn);if(ir===0||Pr===0)return[0,0,0,0];const dr=le(Lt,lr,unref(Cn)),hr=ue(Lt,dr,lr,unref(Cn)),Or=!kr||pr===BACKWARD?Math.max(1,gr):1,Lr=!kr||pr===FORWARD?Math.max(1,gr):1;return[Math.max(0,dr-Or),Math.max(0,Math.min(ir-1,hr+Lr)),dr,hr]}),Fn=computed(()=>{const{totalColumn:ir,totalRow:Pr,rowCache:gr}=Lt,{isScrolling:kr,yAxisScrollDir:pr,scrollTop:lr}=unref(xn);if(ir===0||Pr===0)return[0,0,0,0];const dr=Ie(Lt,lr,unref(Cn)),hr=ze(Lt,dr,lr,unref(Cn)),Or=!kr||pr===BACKWARD?Math.max(1,gr):1,Lr=!kr||pr===FORWARD?Math.max(1,gr):1;return[Math.max(0,dr-Or),Math.max(0,Math.min(Pr-1,hr+Lr)),dr,hr]}),Ln=computed(()=>pe(Lt,unref(Cn))),In=computed(()=>_e(Lt,unref(Cn))),Vn=computed(()=>{var ir;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Lt.direction,height:isNumber$5(Lt.height)?`${Lt.height}px`:Lt.height,width:isNumber$5(Lt.width)?`${Lt.width}px`:Lt.width},(ir=Lt.style)!=null?ir:{}]}),Mn=computed(()=>{const ir=`${unref(In)}px`;return{height:`${unref(Ln)}px`,pointerEvents:unref(xn).isScrolling?"none":void 0,width:ir}}),zn=()=>{const{totalColumn:ir,totalRow:Pr}=Lt;if(ir>0&&Pr>0){const[hr,Or,Lr,Br]=unref(Nn),[Rr,Sr,Er,cr]=unref(Fn);hn(ITEM_RENDER_EVT,{columnCacheStart:hr,columnCacheEnd:Or,rowCacheStart:Rr,rowCacheEnd:Sr,columnVisibleStart:Lr,columnVisibleEnd:Br,rowVisibleStart:Er,rowVisibleEnd:cr})}const{scrollLeft:gr,scrollTop:kr,updateRequested:pr,xAxisScrollDir:lr,yAxisScrollDir:dr}=unref(xn);hn(SCROLL_EVT,{xAxisScrollDir:lr,scrollLeft:gr,yAxisScrollDir:dr,scrollTop:kr,updateRequested:pr})},qn=ir=>{const{clientHeight:Pr,clientWidth:gr,scrollHeight:kr,scrollLeft:pr,scrollTop:lr,scrollWidth:dr}=ir.currentTarget,hr=unref(xn);if(hr.scrollTop===lr&&hr.scrollLeft===pr)return;let Or=pr;if(isRTL(Lt.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:Or=-pr;break;case RTL_OFFSET_POS_DESC:Or=dr-gr-pr;break}xn.value={...hr,isScrolling:!0,scrollLeft:Or,scrollTop:Math.max(0,Math.min(lr,kr-Pr)),updateRequested:!0,xAxisScrollDir:getScrollDir(hr.scrollLeft,Or),yAxisScrollDir:getScrollDir(hr.scrollTop,lr)},nextTick(()=>Kn()),Wn(),zn()},Hn=(ir,Pr)=>{const gr=unref(kn),kr=(Ln.value-gr)/Pr*ir;yr({scrollTop:Math.min(Ln.value-gr,kr)})},Jn=(ir,Pr)=>{const gr=unref(An),kr=(In.value-gr)/Pr*ir;yr({scrollLeft:Math.min(In.value-gr,kr)})},{onWheel:ur}=useGridWheel({atXStartEdge:computed(()=>xn.value.scrollLeft<=0),atXEndEdge:computed(()=>xn.value.scrollLeft>=In.value-unref(An)),atYStartEdge:computed(()=>xn.value.scrollTop<=0),atYEndEdge:computed(()=>xn.value.scrollTop>=Ln.value-unref(kn))},(ir,Pr)=>{var gr,kr,pr,lr;(kr=(gr=$n.value)==null?void 0:gr.onMouseUp)==null||kr.call(gr),(lr=(pr=$n.value)==null?void 0:pr.onMouseUp)==null||lr.call(pr);const dr=unref(An),hr=unref(kn);yr({scrollLeft:Math.min(xn.value.scrollLeft+ir,In.value-dr),scrollTop:Math.min(xn.value.scrollTop+Pr,Ln.value-hr)})}),yr=({scrollLeft:ir=xn.value.scrollLeft,scrollTop:Pr=xn.value.scrollTop})=>{ir=Math.max(ir,0),Pr=Math.max(Pr,0);const gr=unref(xn);Pr===gr.scrollTop&&ir===gr.scrollLeft||(xn.value={...gr,xAxisScrollDir:getScrollDir(gr.scrollLeft,ir),yAxisScrollDir:getScrollDir(gr.scrollTop,Pr),scrollLeft:ir,scrollTop:Pr,updateRequested:!0},nextTick(()=>Kn()),Wn(),zn())},sr=(ir=0,Pr=0,gr=AUTO_ALIGNMENT)=>{const kr=unref(xn);Pr=Math.max(0,Math.min(Pr,Lt.totalColumn-1)),ir=Math.max(0,Math.min(ir,Lt.totalRow-1));const pr=getScrollBarWidth(bn.namespace.value),lr=unref(Cn),dr=pe(Lt,lr),hr=_e(Lt,lr);yr({scrollLeft:Ce(Lt,Pr,gr,kr.scrollLeft,lr,hr>Lt.width?pr:0),scrollTop:$e(Lt,ir,gr,kr.scrollTop,lr,dr>Lt.height?pr:0)})},Zn=(ir,Pr)=>{const{columnWidth:gr,direction:kr,rowHeight:pr}=Lt,lr=Pn.value(z&&gr,z&&pr,z&&kr),dr=`${ir},${Pr}`;if(hasOwn$4(lr,dr))return lr[dr];{const[,hr]=ie(Lt,Pr,unref(Cn)),Or=unref(Cn),Lr=isRTL(kr),[Br,Rr]=xe(Lt,ir,Or),[Sr]=ie(Lt,Pr,Or);return lr[dr]={position:"absolute",left:Lr?void 0:`${hr}px`,right:Lr?`${hr}px`:void 0,top:`${Rr}px`,height:`${Br}px`,width:`${Sr}px`},lr[dr]}},Kn=()=>{xn.value.isScrolling=!1,nextTick(()=>{Pn.value(-1,null,null)})};onMounted(()=>{if(!isClient$2)return;const{initScrollLeft:ir,initScrollTop:Pr}=Lt,gr=unref(En);gr&&(isNumber$5(ir)&&(gr.scrollLeft=ir),isNumber$5(Pr)&&(gr.scrollTop=Pr)),zn()});const Wn=()=>{const{direction:ir}=Lt,{scrollLeft:Pr,scrollTop:gr,updateRequested:kr}=unref(xn),pr=unref(En);if(kr&&pr){if(ir===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{pr.scrollLeft=-Pr;break}case RTL_OFFSET_POS_ASC:{pr.scrollLeft=Pr;break}default:{const{clientWidth:lr,scrollWidth:dr}=pr;pr.scrollLeft=dr-lr-Pr;break}}else pr.scrollLeft=Math.max(0,Pr);pr.scrollTop=Math.max(0,gr)}},{resetAfterColumnIndex:nr,resetAfterRowIndex:fr,resetAfter:Gn}=Sn.proxy;vn({windowRef:En,innerRef:Tn,getItemStyleCache:Pn,scrollTo:yr,scrollToItem:sr,states:xn,resetAfterColumnIndex:nr,resetAfterRowIndex:fr,resetAfter:Gn});const Xn=()=>{const{scrollbarAlwaysOn:ir,scrollbarStartGap:Pr,scrollbarEndGap:gr,totalColumn:kr,totalRow:pr}=Lt,lr=unref(An),dr=unref(kn),hr=unref(In),Or=unref(Ln),{scrollLeft:Lr,scrollTop:Br}=unref(xn),Rr=h$3(ScrollBar,{ref:$n,alwaysOn:ir,startGap:Pr,endGap:gr,class:bn.e("horizontal"),clientSize:lr,layout:"horizontal",onScroll:Jn,ratio:lr*100/hr,scrollFrom:Lr/(hr-lr),total:pr,visible:!0}),Sr=h$3(ScrollBar,{ref:wn,alwaysOn:ir,startGap:Pr,endGap:gr,class:bn.e("vertical"),clientSize:dr,layout:"vertical",onScroll:Hn,ratio:dr*100/Or,scrollFrom:Br/(Or-dr),total:kr,visible:!0});return{horizontalScrollbar:Rr,verticalScrollbar:Sr}},or=()=>{var ir;const[Pr,gr]=unref(Nn),[kr,pr]=unref(Fn),{data:lr,totalColumn:dr,totalRow:hr,useIsScrolling:Or,itemKey:Lr}=Lt,Br=[];if(hr>0&&dr>0)for(let Rr=kr;Rr<=pr;Rr++)for(let Sr=Pr;Sr<=gr;Sr++)Br.push((ir=_n.default)==null?void 0:ir.call(_n,{columnIndex:Sr,data:lr,key:Lr({columnIndex:Sr,data:lr,rowIndex:Rr}),isScrolling:Or?unref(xn).isScrolling:void 0,style:Zn(Rr,Sr),rowIndex:Rr}));return Br},vr=()=>{const ir=resolveDynamicComponent(Lt.innerElement),Pr=or();return[h$3(ir,{style:unref(Mn),ref:Tn},isString$7(ir)?Pr:{default:()=>Pr})]};return()=>{const ir=resolveDynamicComponent(Lt.containerElement),{horizontalScrollbar:Pr,verticalScrollbar:gr}=Xn(),kr=vr();return h$3("div",{key:0,class:bn.e("wrapper"),role:Lt.role},[h$3(ir,{class:Lt.className,style:unref(Vn),onScroll:qn,onWheel:ur,ref:En},isString$7(ir)?kr:{default:()=>kr}),Pr,gr])}}}),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:ie},le,ue,pe,_e,Ce)=>{ie=Number(ie);const $e=Math.max(0,$*z-ie),xe=Math.min($e,le*z),Ie=Math.max(0,le*z-ie+Ce+z);switch(ue==="smart"&&(pe>=Ie-ie&&pe<=xe+ie?ue=AUTO_ALIGNMENT:ue=CENTERED_ALIGNMENT),ue){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const ze=Math.round(Ie+(xe-Ie)/2);return ze<Math.ceil(ie/2)?0:ze>$e+Math.floor(ie/2)?$e:ze}case AUTO_ALIGNMENT:default:return pe>=Ie&&pe<=xe?pe:Ie>xe||pe<Ie?Ie:xe}},getRowOffset:({rowHeight:$,height:z,totalRow:ie},le,ue,pe,_e,Ce)=>{z=Number(z);const $e=Math.max(0,ie*$-z),xe=Math.min($e,le*$),Ie=Math.max(0,le*$-z+Ce+$);switch(ue===SMART_ALIGNMENT&&(pe>=Ie-z&&pe<=xe+z?ue=AUTO_ALIGNMENT:ue=CENTERED_ALIGNMENT),ue){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const ze=Math.round(Ie+(xe-Ie)/2);return ze<Math.ceil(z/2)?0:ze>$e+Math.floor(z/2)?$e:ze}case AUTO_ALIGNMENT:default:return pe>=Ie&&pe<=xe?pe:Ie>xe||pe<Ie?Ie:xe}},getColumnStartIndexForOffset:({columnWidth:$,totalColumn:z},ie)=>Math.max(0,Math.min(z-1,Math.floor(ie/$))),getColumnStopIndexForStartIndex:({columnWidth:$,totalColumn:z,width:ie},le,ue)=>{const pe=le*$,_e=Math.ceil((ie+ue-pe)/$);return Math.max(0,Math.min(z-1,le+_e-1))},getRowStartIndexForOffset:({rowHeight:$,totalRow:z},ie)=>Math.max(0,Math.min(z-1,Math.floor(ie/$))),getRowStopIndexForStartIndex:({rowHeight:$,totalRow:z,height:ie},le,ue)=>{const pe=le*$,_e=Math.ceil((ie+ue-pe)/$);return Math.max(0,Math.min(z-1,le+_e-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,ie,le)=>{const[ue,pe,_e]=[ie[le],$[ACCESS_SIZER_KEY_MAP[le]],ie[ACCESS_LAST_VISITED_KEY_MAP[le]]];if(z>_e){let Ce=0;if(_e>=0){const $e=ue[_e];Ce=$e.offset+$e.size}for(let $e=_e+1;$e<=z;$e++){const xe=pe($e);ue[$e]={offset:Ce,size:xe},Ce+=xe}ie[ACCESS_LAST_VISITED_KEY_MAP[le]]=z}return ue[z]},bs=($,z,ie,le,ue,pe)=>{for(;ie<=le;){const _e=ie+floor((le-ie)/2),Ce=getItemFromCache($,_e,z,pe).offset;if(Ce===ue)return _e;Ce<ue?ie=_e+1:le=_e-1}return max$2(0,ie-1)},es=($,z,ie,le,ue)=>{const pe=ue==="column"?$.totalColumn:$.totalRow;let _e=1;for(;ie<pe&&getItemFromCache($,ie,z,ue).offset<le;)ie+=_e,_e*=2;return bs($,z,floor(ie/2),min$2(ie,pe-1),le,ue)},findItem=($,z,ie,le)=>{const[ue,pe]=[z[le],z[ACCESS_LAST_VISITED_KEY_MAP[le]]];return(pe>0?ue[pe].offset:0)>=ie?bs($,z,0,pe,ie,le):es($,z,max$2(0,pe),ie,le)},getEstimatedTotalHeight=({totalRow:$},{estimatedRowHeight:z,lastVisitedRowIndex:ie,row:le})=>{let ue=0;if(ie>=$&&(ie=$-1),ie>=0){const Ce=le[ie];ue=Ce.offset+Ce.size}const _e=($-ie-1)*z;return ue+_e},getEstimatedTotalWidth=({totalColumn:$},{column:z,estimatedColumnWidth:ie,lastVisitedColumnIndex:le})=>{let ue=0;if(le>$&&(le=$-1),le>=0){const Ce=z[le];ue=Ce.offset+Ce.size}const _e=($-le-1)*ie;return ue+_e},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=($,z,ie,le,ue,pe,_e)=>{const[Ce,$e]=[pe==="row"?$.height:$.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[pe]],xe=getItemFromCache($,z,ue,pe),Ie=$e($,ue),ze=max$2(0,min$2(Ie-Ce,xe.offset)),Ue=max$2(0,xe.offset-Ce+_e+xe.size);switch(ie===SMART_ALIGNMENT&&(le>=Ue-Ce&&le<=ze+Ce?ie=AUTO_ALIGNMENT:ie=CENTERED_ALIGNMENT),ie){case START_ALIGNMENT:return ze;case END_ALIGNMENT:return Ue;case CENTERED_ALIGNMENT:return Math.round(Ue+(ze-Ue)/2);case AUTO_ALIGNMENT:default:return le>=Ue&&le<=ze?le:Ue>ze||le<Ue?Ue:ze}},DynamicSizeGrid=createGrid({name:"ElDynamicSizeGrid",getColumnPosition:($,z,ie)=>{const le=getItemFromCache($,z,ie,"column");return[le.size,le.offset]},getRowPosition:($,z,ie)=>{const le=getItemFromCache($,z,ie,"row");return[le.size,le.offset]},getColumnOffset:($,z,ie,le,ue,pe)=>getOffset$1($,z,ie,le,ue,"column",pe),getRowOffset:($,z,ie,le,ue,pe)=>getOffset$1($,z,ie,le,ue,"row",pe),getColumnStartIndexForOffset:($,z,ie)=>findItem($,ie,z,"column"),getColumnStopIndexForStartIndex:($,z,ie,le)=>{const ue=getItemFromCache($,z,le,"column"),pe=ie+$.width;let _e=ue.offset+ue.size,Ce=z;for(;Ce<$.totalColumn-1&&_e<pe;)Ce++,_e+=getItemFromCache($,z,le,"column").size;return Ce},getEstimatedTotalHeight,getEstimatedTotalWidth,getRowStartIndexForOffset:($,z,ie)=>findItem($,ie,z,"row"),getRowStopIndexForStartIndex:($,z,ie,le)=>{const{totalRow:ue,height:pe}=$,_e=getItemFromCache($,z,le,"row"),Ce=ie+pe;let $e=_e.size+_e.offset,xe=z;for(;xe<ue-1&&$e<Ce;)xe++,$e+=getItemFromCache($,xe,le,"row").size;return xe},injectToInstance:($,z)=>{const ie=({columnIndex:pe,rowIndex:_e},Ce)=>{var $e,xe;Ce=isUndefined$1(Ce)?!0:Ce,isNumber$5(pe)&&(z.value.lastVisitedColumnIndex=Math.min(z.value.lastVisitedColumnIndex,pe-1)),isNumber$5(_e)&&(z.value.lastVisitedRowIndex=Math.min(z.value.lastVisitedRowIndex,_e-1)),($e=$.exposed)==null||$e.getItemStyleCache.value(-1,null,null),Ce&&((xe=$.proxy)==null||xe.$forceUpdate())},le=(pe,_e)=>{ie({columnIndex:pe},_e)},ue=(pe,_e)=>{ie({rowIndex:pe},_e)};Object.assign($.proxy,{resetAfterColumnIndex:le,resetAfterRowIndex:ue,resetAfter:ie})},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,ie,le,ue,pe){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 ie=useNamespace("select"),{hoverItem:le,selectOptionClick:ue}=useOption($,{emit:z});return{ns:ie,hoverItem:le,selectOptionClick:ue}}}),_hoisted_1$j=["aria-selected"];function _sfc_render$7($,z,ie,le,ue,pe){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]=(..._e)=>$.hoverItem&&$.hoverItem(..._e)),onClick:z[1]||(z[1]=withModifiers((..._e)=>$.selectOptionClick&&$.selectOptionClick(..._e),["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:ie}){const le=inject(selectV2InjectionKey),ue=useNamespace("select"),pe=ref([]),_e=ref(),Ce=computed(()=>$.data.length);watch(()=>Ce.value,()=>{var wn,Tn;(Tn=(wn=le.popper.value).updatePopper)==null||Tn.call(wn)});const $e=computed(()=>isUndefined$1(le.props.estimatedOptionHeight)),xe=computed(()=>$e.value?{itemSize:le.props.itemHeight}:{estimatedSize:le.props.estimatedOptionHeight,itemSize:wn=>pe.value[wn]}),Ie=(wn=[],Tn)=>{const{props:{valueKey:xn}}=le;return isObject$8(Tn)?wn&&wn.some(Pn=>get$1(Pn,xn)===get$1(Tn,xn)):wn.includes(Tn)},ze=(wn,Tn)=>{if(isObject$8(Tn)){const{valueKey:xn}=le.props;return get$1(wn,xn)===get$1(Tn,xn)}else return wn===Tn},Ue=(wn,Tn)=>{const{valueKey:xn}=le.props;return le.props.multiple?Ie(wn,get$1(Tn,xn)):ze(wn,get$1(Tn,xn))},qe=(wn,Tn)=>{const{disabled:xn,multiple:Pn,multipleLimit:kn}=le.props;return xn||!Tn&&(Pn?kn>0&&wn.length>=kn:!1)},Et=wn=>$.hoveringIndex===wn;ie({listRef:_e,isSized:$e,isItemDisabled:qe,isItemHovering:Et,isItemSelected:Ue,scrollToItem:wn=>{const Tn=_e.value;Tn&&Tn.scrollToItem(wn)},resetScrollTop:()=>{const wn=_e.value;wn&&wn.resetScrollTop()}});const vn=wn=>{const{index:Tn,data:xn,style:Pn}=wn,kn=unref($e),{itemSize:An,estimatedSize:Nn}=unref(xe),{modelValue:Fn}=le.props,{onSelect:Ln,onHover:In}=le,Vn=xn[Tn];if(Vn.type==="Group")return createVNode(GroupItem,{item:Vn,style:Pn,height:kn?An:Nn},null);const Mn=Ue(Fn,Vn),zn=qe(Fn,Mn),qn=Et(Tn);return createVNode(OptionItem,mergeProps(wn,{selected:Mn,disabled:Vn.disabled||zn,created:!!Vn.created,hovering:qn,item:Vn,onSelect:Ln,onHover:In}),{default:Hn=>{var Jn;return((Jn=z.default)==null?void 0:Jn.call(z,Hn))||createVNode("span",null,[Vn.label])}})},{onKeyboardNavigate:_n,onKeyboardSelect:bn}=le,Sn=()=>{_n("forward")},Cn=()=>{_n("backward")},En=()=>{le.expanded=!1},$n=wn=>{const{code:Tn}=wn,{tab:xn,esc:Pn,down:kn,up:An,enter:Nn}=EVENT_CODE;switch(Tn!==xn&&(wn.preventDefault(),wn.stopPropagation()),Tn){case xn:case Pn:{En();break}case kn:{Sn();break}case An:{Cn();break}case Nn:{bn();break}}};return()=>{var wn;const{data:Tn,width:xn}=$,{height:Pn,multiple:kn,scrollbarAlwaysOn:An}=le.props;if(Tn.length===0)return createVNode("div",{class:ue.b("dropdown"),style:{width:`${xn}px`}},[(wn=z.empty)==null?void 0:wn.call(z)]);const Nn=unref($e)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[ue.b("dropdown"),ue.is("multiple",kn)]},[createVNode(Nn,mergeProps({ref:_e},unref(xe),{className:ue.be("dropdown","list"),scrollbarAlwaysOn:An,data:Tn,height:Pn,width:xn,total:Tn.length,onKeydown:$n}),{default:Fn=>createVNode(vn,Fn,null)})])}}});function useAllowCreate($,z){const ie=ref(0),le=ref(null),ue=computed(()=>$.allowCreate&&$.filterable);function pe(Ie){const ze=Ue=>Ue.value===Ie;return $.options&&$.options.some(ze)||z.createdOptions.some(ze)}function _e(Ie){ue.value&&($.multiple&&Ie.created?ie.value++:le.value=Ie)}function Ce(Ie){if(ue.value)if(Ie&&Ie.length>0&&!pe(Ie)){const ze={value:Ie,label:Ie,created:!0,disabled:!1};z.createdOptions.length>=ie.value?z.createdOptions[ie.value]=ze:z.createdOptions.push(ze)}else if($.multiple)z.createdOptions.length=ie.value;else{const ze=le.value;z.createdOptions.length=0,ze&&ze.created&&z.createdOptions.push(ze)}}function $e(Ie){if(!ue.value||!Ie||!Ie.created||Ie.created&&$.reserveKeyword&&z.inputValue===Ie.label)return;const ze=z.createdOptions.findIndex(Ue=>Ue.value===Ie.value);~ze&&(z.createdOptions.splice(ze,1),ie.value--)}function xe(){ue.value&&(z.createdOptions.length=0,ie.value=0)}return{createNewOption:Ce,removeNewOption:$e,selectNewOption:_e,clearAllNewOption:xe}}const flattenOptions=$=>{const z=[];return $.forEach(ie=>{isArray$c(ie.options)?(z.push({label:ie.label,isTitle:!0,type:"Group"}),ie.options.forEach(le=>{z.push(le)}),z.push({type:"Group"})):z.push(ie)}),z};function useInput($){const z=ref(!1);return{handleCompositionStart:()=>{z.value=!0},handleCompositionUpdate:pe=>{const _e=pe.target.value,Ce=_e[_e.length-1]||"";z.value=!isKorean(Ce)},handleCompositionEnd:pe=>{z.value&&(z.value=!1,isFunction$5($)&&$(pe))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=($,z)=>{const{t:ie}=useLocale(),le=useNamespace("select-v2"),ue=useNamespace("input"),{form:pe,formItem:_e}=useFormItem(),Ce=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}),$e=ref(-1),xe=ref(-1),Ie=ref(null),ze=ref(null),Ue=ref(null),qe=ref(null),Et=ref(null),Lt=ref(null),hn=ref(null),vn=ref(!1),_n=computed(()=>$.disabled||(pe==null?void 0:pe.disabled)),bn=computed(()=>{const Ar=kn.value.length*34;return Ar>$.height?$.height:Ar}),Sn=computed(()=>!isNil($.modelValue)),Cn=computed(()=>{const Ar=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:Sn.value;return $.clearable&&!_n.value&&Ce.comboBoxHovering&&Ar}),En=computed(()=>$.remote&&$.filterable?"":arrow_up_default),$n=computed(()=>En.value&&le.is("reverse",vn.value)),wn=computed(()=>(_e==null?void 0:_e.validateState)||""),Tn=computed(()=>ValidateComponentsMap[wn.value]),xn=computed(()=>$.remote?300:0),Pn=computed(()=>{const Ar=kn.value;return $.loading?$.loadingText||ie("el.select.loading"):$.remote&&Ce.inputValue===""&&Ar.length===0?!1:$.filterable&&Ce.inputValue&&Ar.length>0?$.noMatchText||ie("el.select.noMatch"):Ar.length===0?$.noDataText||ie("el.select.noData"):null}),kn=computed(()=>{const Ar=Dr=>{const Yr=Ce.inputValue,qr=new RegExp(escapeStringRegexp(Yr),"i");return Yr?qr.test(Dr.label||""):!0};return $.loading?[]:flattenOptions($.options.concat(Ce.createdOptions).map(Dr=>{if(isArray$c(Dr.options)){const Yr=Dr.options.filter(Ar);if(Yr.length>0)return{...Dr,options:Yr}}else if($.remote||Ar(Dr))return Dr;return null}).filter(Dr=>Dr!==null))}),An=computed(()=>kn.value.every(Ar=>Ar.disabled)),Nn=useFormSize(),Fn=computed(()=>Nn.value==="small"?"small":"default"),Ln=computed(()=>{const Ar=Lt.value,Dr=Fn.value||"default",Yr=Ar?Number.parseInt(getComputedStyle(Ar).paddingLeft):0,qr=Ar?Number.parseInt(getComputedStyle(Ar).paddingRight):0;return Ce.selectWidth-qr-Yr-TAG_BASE_WIDTH[Dr]}),In=()=>{var Ar;xe.value=((Ar=Et.value)==null?void 0:Ar.offsetWidth)||200},Vn=computed(()=>({width:`${Ce.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(Ce.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),Mn=computed(()=>isArray$c($.modelValue)?$.modelValue.length===0&&!Ce.displayInputValue:$.filterable?Ce.displayInputValue.length===0:!0),zn=computed(()=>{const Ar=$.placeholder||ie("el.select.placeholder");return $.multiple||isNil($.modelValue)?Ar:Ce.selectedLabel}),qn=computed(()=>{var Ar,Dr;return(Dr=(Ar=qe.value)==null?void 0:Ar.popperRef)==null?void 0:Dr.contentRef}),Hn=computed(()=>{if($.multiple){const Ar=$.modelValue.length;if($.modelValue.length>0)return kn.value.findIndex(Dr=>Dr.value===$.modelValue[Ar-1])}else if($.modelValue)return kn.value.findIndex(Ar=>Ar.value===$.modelValue);return-1}),Jn=computed({get(){return vn.value&&Pn.value!==!1},set(Ar){vn.value=Ar}}),ur=computed(()=>Ce.cachedOptions.slice(0,$.maxCollapseTags)),yr=computed(()=>Ce.cachedOptions.slice($.maxCollapseTags)),{createNewOption:sr,removeNewOption:Zn,selectNewOption:Kn,clearAllNewOption:Wn}=useAllowCreate($,Ce),{handleCompositionStart:nr,handleCompositionUpdate:fr,handleCompositionEnd:Gn}=useInput(Ar=>Ur(Ar)),Xn=()=>{var Ar,Dr,Yr;(Dr=(Ar=ze.value)==null?void 0:Ar.focus)==null||Dr.call(Ar),(Yr=qe.value)==null||Yr.updatePopper()},or=()=>{if(!$.automaticDropdown&&!_n.value)return Ce.isComposing&&(Ce.softFocus=!0),nextTick(()=>{var Ar,Dr;vn.value=!vn.value,(Dr=(Ar=ze.value)==null?void 0:Ar.focus)==null||Dr.call(Ar)})},vr=()=>($.filterable&&Ce.inputValue!==Ce.selectedLabel&&(Ce.query=Ce.selectedLabel),ir(Ce.inputValue),nextTick(()=>{sr(Ce.inputValue)})),_r=debounce(vr,xn.value),ir=Ar=>{Ce.previousQuery!==Ar&&(Ce.previousQuery=Ar,$.filterable&&isFunction$5($.filterMethod)?$.filterMethod(Ar):$.filterable&&$.remote&&isFunction$5($.remoteMethod)&&$.remoteMethod(Ar))},Pr=Ar=>{isEqual$1($.modelValue,Ar)||z(CHANGE_EVENT,Ar)},gr=Ar=>{z(UPDATE_MODEL_EVENT,Ar),Pr(Ar),Ce.previousValue=Ar==null?void 0:Ar.toString()},kr=(Ar=[],Dr)=>{if(!isObject$8(Dr))return Ar.indexOf(Dr);const Yr=$.valueKey;let qr=-1;return Ar.some((Vr,eo)=>get$1(Vr,Yr)===get$1(Dr,Yr)?(qr=eo,!0):!1),qr},pr=Ar=>isObject$8(Ar)?get$1(Ar,$.valueKey):Ar,lr=Ar=>isObject$8(Ar)?Ar.label:Ar,dr=()=>nextTick(()=>{var Ar,Dr;if(!ze.value)return;const Yr=Lt.value;Et.value.height=Yr.offsetHeight,vn.value&&Pn.value!==!1&&((Dr=(Ar=qe.value)==null?void 0:Ar.updatePopper)==null||Dr.call(Ar))}),hr=()=>{var Ar,Dr;if(Or(),In(),(Dr=(Ar=qe.value)==null?void 0:Ar.updatePopper)==null||Dr.call(Ar),$.multiple)return dr()},Or=()=>{const Ar=Lt.value;Ar&&(Ce.selectWidth=Ar.getBoundingClientRect().width)},Lr=(Ar,Dr,Yr=!0)=>{var qr,Vr;if($.multiple){let eo=$.modelValue.slice();const ro=kr(eo,pr(Ar));ro>-1?(eo=[...eo.slice(0,ro),...eo.slice(ro+1)],Ce.cachedOptions.splice(ro,1),Zn(Ar)):($.multipleLimit<=0||eo.length<$.multipleLimit)&&(eo=[...eo,pr(Ar)],Ce.cachedOptions.push(Ar),Kn(Ar),Hr(Dr)),gr(eo),Ar.created&&(Ce.query="",ir(""),Ce.inputLength=20),$.filterable&&!$.reserveKeyword&&((Vr=(qr=ze.value).focus)==null||Vr.call(qr),ar("")),$.filterable&&(Ce.calculatedWidth=hn.value.getBoundingClientRect().width),dr(),Mr()}else $e.value=Dr,Ce.selectedLabel=Ar.label,gr(pr(Ar)),vn.value=!1,Ce.isComposing=!1,Ce.isSilentBlur=Yr,Kn(Ar),Ar.created||Wn(),Hr(Dr)},Br=(Ar,Dr)=>{const{valueKey:Yr}=$,qr=$.modelValue.indexOf(get$1(Dr,Yr));if(qr>-1&&!_n.value){const Vr=[...$.modelValue.slice(0,qr),...$.modelValue.slice(qr+1)];return Ce.cachedOptions.splice(qr,1),gr(Vr),z("remove-tag",get$1(Dr,Yr)),Ce.softFocus=!0,Zn(Dr),nextTick(Xn)}Ar.stopPropagation()},Rr=Ar=>{const Dr=Ce.isComposing;Ce.isComposing=!0,Ce.softFocus?Ce.softFocus=!1:Dr||z("focus",Ar)},Sr=Ar=>(Ce.softFocus=!1,nextTick(()=>{var Dr,Yr;(Yr=(Dr=ze.value)==null?void 0:Dr.blur)==null||Yr.call(Dr),hn.value&&(Ce.calculatedWidth=hn.value.getBoundingClientRect().width),Ce.isSilentBlur?Ce.isSilentBlur=!1:Ce.isComposing&&z("blur",Ar),Ce.isComposing=!1})),Er=()=>{Ce.displayInputValue.length>0?ar(""):vn.value=!1},cr=Ar=>{if(Ce.displayInputValue.length===0){Ar.preventDefault();const Dr=$.modelValue.slice();Dr.pop(),Zn(Ce.cachedOptions.pop()),gr(Dr)}},Qn=()=>{let Ar;return isArray$c($.modelValue)?Ar=[]:Ar=void 0,Ce.softFocus=!0,$.multiple?Ce.cachedOptions=[]:Ce.selectedLabel="",vn.value=!1,gr(Ar),z("clear"),Wn(),nextTick(Xn)},ar=Ar=>{Ce.displayInputValue=Ar,Ce.inputValue=Ar},$r=(Ar,Dr=void 0)=>{const Yr=kn.value;if(!["forward","backward"].includes(Ar)||_n.value||Yr.length<=0||An.value)return;if(!vn.value)return or();Dr===void 0&&(Dr=Ce.hoveringIndex);let qr=-1;Ar==="forward"?(qr=Dr+1,qr>=Yr.length&&(qr=0)):Ar==="backward"&&(qr=Dr-1,(qr<0||qr>=Yr.length)&&(qr=Yr.length-1));const Vr=Yr[qr];if(Vr.disabled||Vr.type==="Group")return $r(Ar,qr);Hr(qr),Zr(qr)},Ir=()=>{if(vn.value)~Ce.hoveringIndex&&kn.value[Ce.hoveringIndex]&&Lr(kn.value[Ce.hoveringIndex],Ce.hoveringIndex,!1);else return or()},Hr=Ar=>{Ce.hoveringIndex=Ar},br=()=>{Ce.hoveringIndex=-1},Mr=()=>{var Ar;const Dr=ze.value;Dr&&((Ar=Dr.focus)==null||Ar.call(Dr))},Ur=Ar=>{const Dr=Ar.target.value;if(ar(Dr),Ce.displayInputValue.length>0&&!vn.value&&(vn.value=!0),Ce.calculatedWidth=hn.value.getBoundingClientRect().width,$.multiple&&dr(),$.remote)_r();else return vr()},jr=()=>(vn.value=!1,Sr()),Wr=()=>(Ce.inputValue=Ce.displayInputValue,nextTick(()=>{~Hn.value&&(Hr(Hn.value),Zr(Ce.hoveringIndex))})),Zr=Ar=>{Ue.value.scrollToItem(Ar)},Jr=()=>{if(br(),$.multiple)if($.modelValue.length>0){let Ar=!1;Ce.cachedOptions.length=0,Ce.previousValue=$.modelValue.toString(),$.modelValue.forEach(Dr=>{const Yr=kn.value.findIndex(qr=>pr(qr)===Dr);~Yr&&(Ce.cachedOptions.push(kn.value[Yr]),Ar||Hr(Yr),Ar=!0)})}else Ce.cachedOptions=[],Ce.previousValue=void 0;else if(Sn.value){Ce.previousValue=$.modelValue;const Ar=kn.value,Dr=Ar.findIndex(Yr=>pr(Yr)===pr($.modelValue));~Dr?(Ce.selectedLabel=Ar[Dr].label,Hr(Dr)):Ce.selectedLabel=`${$.modelValue}`}else Ce.selectedLabel="",Ce.previousValue=void 0;Wn(),In()};return watch(vn,Ar=>{var Dr,Yr;z("visible-change",Ar),Ar?(Yr=(Dr=qe.value).update)==null||Yr.call(Dr):(Ce.displayInputValue="",Ce.previousQuery=null,sr(""))}),watch(()=>$.modelValue,(Ar,Dr)=>{var Yr;(!Ar||Ar.toString()!==Ce.previousValue)&&Jr(),!isEqual$1(Ar,Dr)&&$.validateEvent&&((Yr=_e==null?void 0:_e.validate)==null||Yr.call(_e,"change").catch(qr=>void 0))},{deep:!0}),watch(()=>$.options,()=>{const Ar=ze.value;(!Ar||Ar&&document.activeElement!==Ar)&&Jr()},{deep:!0}),watch(kn,()=>nextTick(Ue.value.resetScrollTop)),watch(()=>Jn.value,Ar=>{Ar||br()}),onMounted(()=>{Jr()}),useResizeObserver(Et,hr),{collapseTagSize:Fn,currentPlaceholder:zn,expanded:vn,emptyText:Pn,popupHeight:bn,debounce:xn,filteredOptions:kn,iconComponent:En,iconReverse:$n,inputWrapperStyle:Vn,popperSize:xe,dropdownMenuVisible:Jn,hasModelValue:Sn,shouldShowPlaceholder:Mn,selectDisabled:_n,selectSize:Nn,showClearBtn:Cn,states:Ce,tagMaxWidth:Ln,nsSelectV2:le,nsInput:ue,calculatorRef:hn,controlRef:Ie,inputRef:ze,menuRef:Ue,popper:qe,selectRef:Et,selectionRef:Lt,popperRef:qn,validateState:wn,validateIcon:Tn,showTagList:ur,collapseTagList:yr,debouncedOnInputChange:_r,deleteTag:Br,getLabel:lr,getValueKey:pr,handleBlur:Sr,handleClear:Qn,handleClickOutside:jr,handleDel:cr,handleEsc:Er,handleFocus:Rr,handleMenuEnter:Wr,handleResize:hr,toggleMenu:or,scrollTo:Zr,onInput:Ur,onKeyboardNavigate:$r,onKeyboardSelect:Ir,onSelect:Lr,onHover:Hr,onUpdateInputValue:ar,handleCompositionStart:nr,handleCompositionEnd:Gn,handleCompositionUpdate:fr}},_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 ie=computed(()=>{const{modelValue:ue,multiple:pe}=$,_e=pe?[]:void 0;return isArray$c(ue)?pe?ue:_e:pe?_e:ue}),le=useSelect$1(reactive({...toRefs($),modelValue:ie}),z);return provide(selectV2InjectionKey,{props:reactive({...toRefs($),height:le.popupHeight,modelValue:ie}),popper:le.popper,onSelect:le.onSelect,onHover:le.onHover,onKeyboardNavigate:le.onKeyboardNavigate,onKeyboardSelect:le.onKeyboardSelect}),{...le,modelValue:ie}}}),_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,ie,le,ue,pe){const _e=resolveComponent("el-tag"),Ce=resolveComponent("el-tooltip"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-select-menu"),Ie=resolveDirective("model-text"),ze=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([$.nsSelectV2.b(),$.nsSelectV2.m($.selectSize)]),onClick:z[24]||(z[24]=withModifiers((...Ue)=>$.toggleMenu&&$.toggleMenu(...Ue),["stop"])),onMouseenter:z[25]||(z[25]=Ue=>$.states.comboBoxHovering=!0),onMouseleave:z[26]||(z[26]=Ue=>$.states.comboBoxHovering=!1)},[createVNode(Ce,{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]=Ue=>$.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,Ue=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Ue),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!(Ue!=null&&Ue.disable),size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:qe=>$.deleteTag(qe,Ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1(Ue==null?void 0:Ue.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selected-item"))},[$.modelValue.length>$.maxCollapseTags?(openBlock(),createBlock(_e,{key:0,closable:!1,size:$.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(Ce,{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,Ue=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Ue),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!Ue.disabled,size:$.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:qe=>$.deleteTag(qe,Ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Ue)),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,Ue=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Ue),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!Ue.disabled,size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:qe=>$.deleteTag(qe,Ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Ue)),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]=(...Ue)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Ue)),onFocus:z[1]||(z[1]=(...Ue)=>$.handleFocus&&$.handleFocus(...Ue)),onBlur:z[2]||(z[2]=(...Ue)=>$.handleBlur&&$.handleBlur(...Ue)),onInput:z[3]||(z[3]=(...Ue)=>$.onInput&&$.onInput(...Ue)),onCompositionstart:z[4]||(z[4]=(...Ue)=>$.handleCompositionStart&&$.handleCompositionStart(...Ue)),onCompositionupdate:z[5]||(z[5]=(...Ue)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Ue)),onCompositionend:z[6]||(z[6]=(...Ue)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Ue)),onKeydown:[z[7]||(z[7]=withKeys(withModifiers(Ue=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),z[8]||(z[8]=withKeys(withModifiers(Ue=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),z[9]||(z[9]=withKeys(withModifiers((...Ue)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Ue),["stop","prevent"]),["enter"])),z[10]||(z[10]=withKeys(withModifiers((...Ue)=>$.handleEsc&&$.handleEsc(...Ue),["stop","prevent"]),["esc"])),z[11]||(z[11]=withKeys(withModifiers((...Ue)=>$.handleDel&&$.handleDel(...Ue),["stop"]),["delete"]))]},null,42,_hoisted_2$d),[[Ie,$.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]=(...Ue)=>$.handleCompositionStart&&$.handleCompositionStart(...Ue)),onCompositionupdate:z[13]||(z[13]=(...Ue)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Ue)),onCompositionend:z[14]||(z[14]=(...Ue)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Ue)),onFocus:z[15]||(z[15]=(...Ue)=>$.handleFocus&&$.handleFocus(...Ue)),onBlur:z[16]||(z[16]=(...Ue)=>$.handleBlur&&$.handleBlur(...Ue)),onInput:z[17]||(z[17]=(...Ue)=>$.onInput&&$.onInput(...Ue)),onKeydown:[z[18]||(z[18]=withKeys(withModifiers(Ue=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),z[19]||(z[19]=withKeys(withModifiers(Ue=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),z[20]||(z[20]=withKeys(withModifiers((...Ue)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Ue),["stop","prevent"]),["enter"])),z[21]||(z[21]=withKeys(withModifiers((...Ue)=>$.handleEsc&&$.handleEsc(...Ue),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":z[22]||(z[22]=(...Ue)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Ue))},null,42,_hoisted_4$4),[[Ie,$.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($e,{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($e,{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($e,{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(xe,{ref:"menuRef",data:$.filteredOptions,width:$.popperSize,"hovering-index":$.states.hoveringIndex,"scrollbar-always-on":$.scrollbarAlwaysOn},{default:withCtx(Ue=>[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps(Ue)))]),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)),[[ze,$.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(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(z).e("item"),unref(z).e(ie.variant)])},[ie.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 ie=$,le=useNamespace("skeleton"),ue=useThrottleRender(toRef$1(ie,"loading"),ie.throttle);return z({uiLoading:ue}),(pe,_e)=>unref(ue)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(le).b(),unref(le).is("animated",pe.animated)]},pe.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.count,Ce=>(openBlock(),createElementBlock(Fragment,{key:Ce},[pe.loading?renderSlot(pe.$slots,"template",{key:Ce},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(le).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.rows,$e=>(openBlock(),createBlock(SkeletonItem,{key:$e,class:normalizeClass([unref(le).e("paragraph"),unref(le).is("last",$e===pe.rows&&pe.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(pe.$slots,"default",normalizeProps(mergeProps({key:1},pe.$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,ie)=>{const le=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",ie),await nextTick(),ie()}),{sliderWrapper:le}},useMarks=$=>computed(()=>$.marks?Object.keys($.marks).map(Number.parseFloat).sort((ie,le)=>ie-le).filter(ie=>ie<=$.max&&ie>=$.min).map(ie=>({point:ie,position:(ie-$.min)*100/($.max-$.min),mark:$.marks[ie]})):[]),useSlide=($,z,ie)=>{const{form:le,formItem:ue}=useFormItem(),pe=shallowRef(),_e=ref(),Ce=ref(),$e={firstButton:_e,secondButton:Ce},xe=computed(()=>$.disabled||(le==null?void 0:le.disabled)||!1),Ie=computed(()=>Math.min(z.firstValue,z.secondValue)),ze=computed(()=>Math.max(z.firstValue,z.secondValue)),Ue=computed(()=>$.range?`${100*(ze.value-Ie.value)/($.max-$.min)}%`:`${100*(z.firstValue-$.min)/($.max-$.min)}%`),qe=computed(()=>$.range?`${100*(Ie.value-$.min)/($.max-$.min)}%`:"0%"),Et=computed(()=>$.vertical?{height:$.height}:{}),Lt=computed(()=>$.vertical?{height:Ue.value,bottom:qe.value}:{width:Ue.value,left:qe.value}),hn=()=>{pe.value&&(z.sliderSize=pe.value[`client${$.vertical?"Height":"Width"}`])},vn=Pn=>{const kn=$.min+Pn*($.max-$.min)/100;if(!$.range)return _e;let An;return Math.abs(Ie.value-kn)<Math.abs(ze.value-kn)?An=z.firstValue<z.secondValue?"firstButton":"secondButton":An=z.firstValue>z.secondValue?"firstButton":"secondButton",$e[An]},_n=Pn=>{const kn=vn(Pn);return kn.value.setPosition(Pn),kn},bn=Pn=>{z.firstValue=Pn,Cn($.range?[Ie.value,ze.value]:Pn)},Sn=Pn=>{z.secondValue=Pn,$.range&&Cn([Ie.value,ze.value])},Cn=Pn=>{ie(UPDATE_MODEL_EVENT,Pn),ie(INPUT_EVENT,Pn)},En=async()=>{await nextTick(),ie(CHANGE_EVENT,$.range?[Ie.value,ze.value]:$.modelValue)},$n=Pn=>{var kn,An,Nn,Fn,Ln,In;if(xe.value||z.dragging)return;hn();let Vn=0;if($.vertical){const Mn=(Nn=(An=(kn=Pn.touches)==null?void 0:kn.item(0))==null?void 0:An.clientY)!=null?Nn:Pn.clientY;Vn=(pe.value.getBoundingClientRect().bottom-Mn)/z.sliderSize*100}else{const Mn=(In=(Ln=(Fn=Pn.touches)==null?void 0:Fn.item(0))==null?void 0:Ln.clientX)!=null?In:Pn.clientX,zn=pe.value.getBoundingClientRect().left;Vn=(Mn-zn)/z.sliderSize*100}if(!(Vn<0||Vn>100))return _n(Vn)};return{elFormItem:ue,slider:pe,firstButton:_e,secondButton:Ce,sliderDisabled:xe,minValue:Ie,maxValue:ze,runwayStyle:Et,barStyle:Lt,resetSize:hn,setPosition:_n,emitChange:En,onSliderWrapperPrevent:Pn=>{var kn,An;((kn=$e.firstButton.value)!=null&&kn.dragging||(An=$e.secondButton.value)!=null&&An.dragging)&&Pn.preventDefault()},onSliderClick:Pn=>{$n(Pn)&&En()},onSliderDown:async Pn=>{const kn=$n(Pn);kn&&(await nextTick(),kn.value.onButtonDown(Pn))},setFirstValue:bn,setSecondValue:Sn}},{left,down,right,up,home:home$2,end:end$1,pageUp,pageDown}=EVENT_CODE,useTooltip=($,z,ie)=>{const le=ref(),ue=ref(!1),pe=computed(()=>z.value instanceof Function),_e=computed(()=>pe.value&&z.value($.modelValue)||$.modelValue),Ce=debounce(()=>{ie.value&&(ue.value=!0)},50),$e=debounce(()=>{ie.value&&(ue.value=!1)},50);return{tooltip:le,tooltipVisible:ue,formatValue:_e,displayTooltip:Ce,hideTooltip:$e}},useSliderButton=($,z,ie)=>{const{disabled:le,min:ue,max:pe,step:_e,showTooltip:Ce,precision:$e,sliderSize:xe,formatTooltip:Ie,emitChange:ze,resetSize:Ue,updateDragging:qe}=inject(sliderContextKey),{tooltip:Et,tooltipVisible:Lt,formatValue:hn,displayTooltip:vn,hideTooltip:_n}=useTooltip($,Ie,Ce),bn=ref(),Sn=computed(()=>`${($.modelValue-ue.value)/(pe.value-ue.value)*100}%`),Cn=computed(()=>$.vertical?{bottom:Sn.value}:{left:Sn.value}),En=()=>{z.hovering=!0,vn()},$n=()=>{z.hovering=!1,z.dragging||_n()},wn=Hn=>{le.value||(Hn.preventDefault(),Vn(Hn),window.addEventListener("mousemove",Mn),window.addEventListener("touchmove",Mn),window.addEventListener("mouseup",zn),window.addEventListener("touchend",zn),window.addEventListener("contextmenu",zn),bn.value.focus())},Tn=Hn=>{le.value||(z.newPosition=Number.parseFloat(Sn.value)+Hn/(pe.value-ue.value)*100,qn(z.newPosition),ze())},xn=()=>{Tn(-_e.value)},Pn=()=>{Tn(_e.value)},kn=()=>{Tn(-_e.value*4)},An=()=>{Tn(_e.value*4)},Nn=()=>{le.value||(qn(0),ze())},Fn=()=>{le.value||(qn(100),ze())},Ln=Hn=>{let Jn=!0;[left,down].includes(Hn.key)?xn():[right,up].includes(Hn.key)?Pn():Hn.key===home$2?Nn():Hn.key===end$1?Fn():Hn.key===pageDown?kn():Hn.key===pageUp?An():Jn=!1,Jn&&Hn.preventDefault()},In=Hn=>{let Jn,ur;return Hn.type.startsWith("touch")?(ur=Hn.touches[0].clientY,Jn=Hn.touches[0].clientX):(ur=Hn.clientY,Jn=Hn.clientX),{clientX:Jn,clientY:ur}},Vn=Hn=>{z.dragging=!0,z.isClick=!0;const{clientX:Jn,clientY:ur}=In(Hn);$.vertical?z.startY=ur:z.startX=Jn,z.startPosition=Number.parseFloat(Sn.value),z.newPosition=z.startPosition},Mn=Hn=>{if(z.dragging){z.isClick=!1,vn(),Ue();let Jn;const{clientX:ur,clientY:yr}=In(Hn);$.vertical?(z.currentY=yr,Jn=(z.startY-z.currentY)/xe.value*100):(z.currentX=ur,Jn=(z.currentX-z.startX)/xe.value*100),z.newPosition=z.startPosition+Jn,qn(z.newPosition)}},zn=()=>{z.dragging&&(setTimeout(()=>{z.dragging=!1,z.hovering||_n(),z.isClick||qn(z.newPosition),ze()},0),window.removeEventListener("mousemove",Mn),window.removeEventListener("touchmove",Mn),window.removeEventListener("mouseup",zn),window.removeEventListener("touchend",zn),window.removeEventListener("contextmenu",zn))},qn=async Hn=>{if(Hn===null||Number.isNaN(+Hn))return;Hn<0?Hn=0:Hn>100&&(Hn=100);const Jn=100/((pe.value-ue.value)/_e.value);let yr=Math.round(Hn/Jn)*Jn*(pe.value-ue.value)*.01+ue.value;yr=Number.parseFloat(yr.toFixed($e.value)),yr!==$.modelValue&&ie(UPDATE_MODEL_EVENT,yr),!z.dragging&&$.modelValue!==z.oldValue&&(z.oldValue=$.modelValue),await nextTick(),z.dragging&&vn(),Et.value.updatePopper()};return watch(()=>z.dragging,Hn=>{qe(Hn)}),{disabled:le,button:bn,tooltip:Et,tooltipVisible:Lt,showTooltip:Ce,wrapperStyle:Cn,formatValue:hn,handleMouseEnter:En,handleMouseLeave:$n,onButtonDown:wn,onKeyDown:Ln,setPosition:qn}},useStops=($,z,ie,le)=>({stops:computed(()=>{if(!$.showStops||$.min>$.max)return[];if($.step===0)return[];const _e=($.max-$.min)/$.step,Ce=100*$.step/($.max-$.min),$e=Array.from({length:_e-1}).map((xe,Ie)=>(Ie+1)*Ce);return $.range?$e.filter(xe=>xe<100*(ie.value-$.min)/($.max-$.min)||xe>100*(le.value-$.min)/($.max-$.min)):$e.filter(xe=>xe>100*(z.firstValue-$.min)/($.max-$.min))}),getStopStyle:_e=>$.vertical?{bottom:`${_e}%`}:{left:`${_e}%`}}),useWatch=($,z,ie,le,ue,pe)=>{const _e=xe=>{ue(UPDATE_MODEL_EVENT,xe),ue(INPUT_EVENT,xe)},Ce=()=>$.range?![ie.value,le.value].every((xe,Ie)=>xe===z.oldValue[Ie]):$.modelValue!==z.oldValue,$e=()=>{var xe,Ie;$.min>$.max&&throwError$1("Slider","min should not be greater than max.");const ze=$.modelValue;$.range&&Array.isArray(ze)?ze[1]<$.min?_e([$.min,$.min]):ze[0]>$.max?_e([$.max,$.max]):ze[0]<$.min?_e([$.min,ze[1]]):ze[1]>$.max?_e([ze[0],$.max]):(z.firstValue=ze[0],z.secondValue=ze[1],Ce()&&($.validateEvent&&((xe=pe==null?void 0:pe.validate)==null||xe.call(pe,"change").catch(Ue=>void 0)),z.oldValue=ze.slice())):!$.range&&typeof ze=="number"&&!Number.isNaN(ze)&&(ze<$.min?_e($.min):ze>$.max?_e($.max):(z.firstValue=ze,Ce()&&($.validateEvent&&((Ie=pe==null?void 0:pe.validate)==null||Ie.call(pe,"change").catch(Ue=>void 0)),z.oldValue=ze)))};$e(),watch(()=>z.dragging,xe=>{xe||$e()}),watch(()=>$.modelValue,(xe,Ie)=>{z.dragging||Array.isArray(xe)&&Array.isArray(Ie)&&xe.every((ze,Ue)=>ze===Ie[Ue])&&z.firstValue===xe[0]&&z.secondValue===xe[1]||$e()},{deep:!0}),watch(()=>[$.min,$.max],()=>{$e()})},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:ie}){const le=$,ue=useNamespace("slider"),pe=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:le.modelValue}),{disabled:_e,button:Ce,tooltip:$e,showTooltip:xe,tooltipVisible:Ie,wrapperStyle:ze,formatValue:Ue,handleMouseEnter:qe,handleMouseLeave:Et,onButtonDown:Lt,onKeyDown:hn,setPosition:vn}=useSliderButton(le,pe,ie),{hovering:_n,dragging:bn}=toRefs(pe);return z({onButtonDown:Lt,onKeyDown:hn,setPosition:vn,hovering:_n,dragging:bn}),(Sn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:Ce,class:normalizeClass([unref(ue).e("button-wrapper"),{hover:unref(_n),dragging:unref(bn)}]),style:normalizeStyle$1(unref(ze)),tabindex:unref(_e)?-1:0,onMouseenter:Cn[0]||(Cn[0]=(...En)=>unref(qe)&&unref(qe)(...En)),onMouseleave:Cn[1]||(Cn[1]=(...En)=>unref(Et)&&unref(Et)(...En)),onMousedown:Cn[2]||(Cn[2]=(...En)=>unref(Lt)&&unref(Lt)(...En)),onTouchstart:Cn[3]||(Cn[3]=(...En)=>unref(Lt)&&unref(Lt)(...En)),onFocus:Cn[4]||(Cn[4]=(...En)=>unref(qe)&&unref(qe)(...En)),onBlur:Cn[5]||(Cn[5]=(...En)=>unref(Et)&&unref(Et)(...En)),onKeydown:Cn[6]||(Cn[6]=(...En)=>unref(hn)&&unref(hn)(...En))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:$e,visible:unref(Ie),placement:Sn.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":Sn.tooltipClass,disabled:!unref(xe),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(unref(Ue)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref(ue).e("button"),{hover:unref(_n),dragging:unref(bn)}])},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"),ie=computed(()=>isString$7($.mark)?$.mark:$.mark.label),le=computed(()=>isString$7($.mark)?void 0:$.mark.style);return()=>h$3("div",{class:z.e("marks-text"),style:le.value},ie.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:ie}){const le=$,ue=useNamespace("slider"),{t:pe}=useLocale(),_e=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:Ce,slider:$e,firstButton:xe,secondButton:Ie,sliderDisabled:ze,minValue:Ue,maxValue:qe,runwayStyle:Et,barStyle:Lt,resetSize:hn,emitChange:vn,onSliderWrapperPrevent:_n,onSliderClick:bn,onSliderDown:Sn,setFirstValue:Cn,setSecondValue:En}=useSlide(le,_e,ie),{stops:$n,getStopStyle:wn}=useStops(le,_e,Ue,qe),{inputId:Tn,isLabeledByFormItem:xn}=useFormItemInputId(le,{formItemContext:Ce}),Pn=useFormSize(),kn=computed(()=>le.inputSize||Pn.value),An=computed(()=>le.label||pe("el.slider.defaultLabel",{min:le.min,max:le.max})),Nn=computed(()=>le.range?le.rangeStartLabel||pe("el.slider.defaultRangeStartLabel"):An.value),Fn=computed(()=>le.formatValueText?le.formatValueText(Hn.value):`${Hn.value}`),Ln=computed(()=>le.rangeEndLabel||pe("el.slider.defaultRangeEndLabel")),In=computed(()=>le.formatValueText?le.formatValueText(Jn.value):`${Jn.value}`),Vn=computed(()=>[ue.b(),ue.m(Pn.value),ue.is("vertical",le.vertical),{[ue.m("with-input")]:le.showInput}]),Mn=useMarks(le);useWatch(le,_e,Ue,qe,ie,Ce);const zn=computed(()=>{const sr=[le.min,le.max,le.step].map(Zn=>{const Kn=`${Zn}`.split(".")[1];return Kn?Kn.length:0});return Math.max.apply(null,sr)}),{sliderWrapper:qn}=useLifecycle(le,_e,hn),{firstValue:Hn,secondValue:Jn,sliderSize:ur}=toRefs(_e),yr=sr=>{_e.dragging=sr};return provide(sliderContextKey,{...toRefs(le),sliderSize:ur,disabled:ze,precision:zn,emitChange:vn,resetSize:hn,updateDragging:yr}),z({onSliderClick:bn}),(sr,Zn)=>{var Kn,Wn;return openBlock(),createElementBlock("div",{id:sr.range?unref(Tn):void 0,ref_key:"sliderWrapper",ref:qn,class:normalizeClass(unref(Vn)),role:sr.range?"group":void 0,"aria-label":sr.range&&!unref(xn)?unref(An):void 0,"aria-labelledby":sr.range&&unref(xn)?(Kn=unref(Ce))==null?void 0:Kn.labelId:void 0,onTouchstart:Zn[2]||(Zn[2]=(...nr)=>unref(_n)&&unref(_n)(...nr)),onTouchmove:Zn[3]||(Zn[3]=(...nr)=>unref(_n)&&unref(_n)(...nr))},[createBaseVNode("div",{ref_key:"slider",ref:$e,class:normalizeClass([unref(ue).e("runway"),{"show-input":sr.showInput&&!sr.range},unref(ue).is("disabled",unref(ze))]),style:normalizeStyle$1(unref(Et)),onMousedown:Zn[0]||(Zn[0]=(...nr)=>unref(Sn)&&unref(Sn)(...nr)),onTouchstart:Zn[1]||(Zn[1]=(...nr)=>unref(Sn)&&unref(Sn)(...nr))},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("bar")),style:normalizeStyle$1(unref(Lt))},null,6),createVNode(SliderButton,{id:sr.range?void 0:unref(Tn),ref_key:"firstButton",ref:xe,"model-value":unref(Hn),vertical:sr.vertical,"tooltip-class":sr.tooltipClass,placement:sr.placement,role:"slider","aria-label":sr.range||!unref(xn)?unref(Nn):void 0,"aria-labelledby":!sr.range&&unref(xn)?(Wn=unref(Ce))==null?void 0:Wn.labelId:void 0,"aria-valuemin":sr.min,"aria-valuemax":sr.range?unref(Jn):sr.max,"aria-valuenow":unref(Hn),"aria-valuetext":unref(Fn),"aria-orientation":sr.vertical?"vertical":"horizontal","aria-disabled":unref(ze),"onUpdate:modelValue":unref(Cn)},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"]),sr.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:Ie,"model-value":unref(Jn),vertical:sr.vertical,"tooltip-class":sr.tooltipClass,placement:sr.placement,role:"slider","aria-label":unref(Ln),"aria-valuemin":unref(Hn),"aria-valuemax":sr.max,"aria-valuenow":unref(Jn),"aria-valuetext":unref(In),"aria-orientation":sr.vertical?"vertical":"horizontal","aria-disabled":unref(ze),"onUpdate:modelValue":unref(En)},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),sr.showStops?(openBlock(),createElementBlock("div",_hoisted_2$c,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref($n),(nr,fr)=>(openBlock(),createElementBlock("div",{key:fr,class:normalizeClass(unref(ue).e("stop")),style:normalizeStyle$1(unref(wn)(nr))},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),(nr,fr)=>(openBlock(),createElementBlock("div",{key:fr,style:normalizeStyle$1(unref(wn)(nr.position)),class:normalizeClass([unref(ue).e("stop"),unref(ue).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref(ue).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Mn),(nr,fr)=>(openBlock(),createBlock(unref(SliderMarker),{key:fr,mark:nr.mark,style:normalizeStyle$1(unref(wn)(nr.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),sr.showInput&&!sr.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Hn),class:normalizeClass(unref(ue).e("input")),step:sr.step,disabled:unref(ze),controls:sr.showInputControls,min:sr.min,max:sr.max,debounce:sr.debounce,size:unref(kn),"onUpdate:modelValue":unref(Cn),onChange:unref(vn)},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 ie=useNamespace("space"),le=computed(()=>`${$.prefixCls||ie.b()}__item`);return()=>h$3("div",{class:le.value},renderSlot(z,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace($){const z=useNamespace("space"),ie=computed(()=>[z.b(),z.m($.direction),$.class]),le=ref(0),ue=ref(0),pe=computed(()=>{const Ce=$.wrap||$.fill?{flexWrap:"wrap",marginBottom:`-${ue.value}px`}:{},$e={alignItems:$.alignment};return[Ce,$e,$.style]}),_e=computed(()=>{const Ce={paddingBottom:`${ue.value}px`,marginRight:`${le.value}px`},$e=$.fill?{flexGrow:1,minWidth:`${$.fillRatio}%`}:{};return[Ce,$e]});return watchEffect(()=>{const{size:Ce="small",wrap:$e,direction:xe,fill:Ie}=$;if(isArray$c(Ce)){const[ze=0,Ue=0]=Ce;le.value=ze,ue.value=Ue}else{let ze;isNumber$5(Ce)?ze=Ce:ze=SIZE_MAP[Ce||"small"]||SIZE_MAP.small,($e||Ie)&&xe==="horizontal"?le.value=ue.value=ze:xe==="horizontal"?(le.value=ze,ue.value=0):(ue.value=ze,le.value=0)}}),{classes:ie,containerStyle:pe,itemStyle:_e}}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:ie,containerStyle:le,itemStyle:ue}=useSpace($);function pe(_e,Ce="",$e=[]){const{prefixCls:xe}=$;return _e.forEach((Ie,ze)=>{isFragment(Ie)?isArray$c(Ie.children)&&Ie.children.forEach((Ue,qe)=>{isFragment(Ue)&&isArray$c(Ue.children)?pe(Ue.children,`${Ce+qe}-`,$e):$e.push(createVNode(SpaceItem,{style:ue.value,prefixCls:xe,key:`nested-${Ce+qe}`},{default:()=>[Ue]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(Ie)&&$e.push(createVNode(SpaceItem,{style:ue.value,prefixCls:xe,key:`LoopKey${Ce+ze}`},{default:()=>[Ie]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),$e}return()=>{var _e;const{spacer:Ce,direction:$e}=$,xe=renderSlot(z,"default",{key:0},()=>[]);if(((_e=xe.children)!=null?_e:[]).length===0)return null;if(isArray$c(xe.children)){let Ie=pe(xe.children);if(Ce){const ze=Ie.length-1;Ie=Ie.reduce((Ue,qe,Et)=>{const Lt=[...Ue,qe];return Et!==ze&&Lt.push(createVNode("span",{style:[ue.value,$e==="vertical"?"width: 100%":null],key:Et},[isVNode$1(Ce)?Ce:createTextVNode(Ce,PatchFlags.TEXT)],PatchFlags.STYLE)),Lt},[])}return createVNode("div",{class:ie.value,style:le.value},Ie,PatchFlags.STYLE|PatchFlags.CLASS)}return xe.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 ie=$,le=useNamespace("statistic"),ue=computed(()=>{const{value:pe,formatter:_e,precision:Ce,decimalSeparator:$e,groupSeparator:xe}=ie;if(isFunction$5(_e))return _e(pe);if(!isNumber$5(pe))return pe;let[Ie,ze=""]=String(pe).split(".");return ze=ze.padEnd(Ce,"0").slice(0,Ce>0?Ce:0),Ie=Ie.replace(/\B(?=(\d{3})+(?!\d))/g,xe),[Ie,ze].join(ze?$e:"")});return z({displayValue:ue}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le).b())},[pe.$slots.title||pe.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("head"))},[renderSlot(pe.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(pe.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("content"))},[pe.$slots.prefix||pe.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("prefix"))},[renderSlot(pe.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString$1(pe.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(le).e("number")),style:normalizeStyle$1(pe.valueStyle)},toDisplayString$1(unref(ue)),7),pe.$slots.suffix||pe.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("suffix"))},[renderSlot(pe.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString$1(pe.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 ie=$;const le=/\[([^\]]*)]/g;return timeUnits$1.reduce((pe,[_e,Ce])=>{const $e=new RegExp(`${_e}+(?![^\\[\\]]*\\])`,"g");if($e.test(pe)){const xe=Math.floor(ie/Ce);return ie-=xe*Ce,pe.replace($e,Ie=>String(xe).padStart(Ie.length,"0"))}return pe},z).replace(le,"$1")},__default__$o=defineComponent({name:"ElCountdown"}),_sfc_main$x=defineComponent({...__default__$o,props:countdownProps,emits:countdownEmits,setup($,{expose:z,emit:ie}){const le=$;let ue;const pe=ref(getTime$1(le.value)-Date.now()),_e=computed(()=>formatTime$2(pe.value,le.format)),Ce=Ie=>formatTime$2(Ie,le.format),$e=()=>{ue&&(cAF(ue),ue=void 0)},xe=()=>{const Ie=getTime$1(le.value),ze=()=>{let Ue=Ie-Date.now();ie("change",Ue),Ue<=0?(Ue=0,$e(),ie("finish")):ue=rAF(ze),pe.value=Ue};ue=rAF(ze)};return watch(()=>[le.value,le.format],()=>{$e(),xe()},{immediate:!0}),onBeforeUnmount(()=>{$e()}),z({displayValue:_e}),(Ie,ze)=>(openBlock(),createBlock(unref(ElStatistic),{value:pe.value,title:Ie.title,prefix:Ie.prefix,suffix:Ie.suffix,"value-style":Ie.valueStyle,formatter:Ce},createSlots({_:2},[renderList(Ie.$slots,(Ue,qe)=>({name:qe,fn:withCtx(()=>[renderSlot(Ie.$slots,qe)])}))]),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 ie=$,le=useNamespace("steps"),ue=ref([]);return watch(ue,()=>{ue.value.forEach((pe,_e)=>{pe.setIndex(_e)})}),provide("ElSteps",{props:ie,steps:ue}),watch(()=>ie.active,(pe,_e)=>{z(CHANGE_EVENT,pe,_e)}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(le).m(pe.simple?"simple":pe.direction)])},[renderSlot(pe.$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=$,ie=useNamespace("step"),le=ref(-1),ue=ref({}),pe=ref(""),_e=inject("ElSteps"),Ce=getCurrentInstance();onMounted(()=>{watch([()=>_e.props.active,()=>_e.props.processStatus,()=>_e.props.finishStatus],([En])=>{Sn(En)},{immediate:!0})}),onBeforeUnmount(()=>{_e.steps.value=_e.steps.value.filter(En=>En.uid!==(Ce==null?void 0:Ce.uid))});const $e=computed(()=>z.status||pe.value),xe=computed(()=>{const En=_e.steps.value[le.value-1];return En?En.currentStatus:"wait"}),Ie=computed(()=>_e.props.alignCenter),ze=computed(()=>_e.props.direction==="vertical"),Ue=computed(()=>_e.props.simple),qe=computed(()=>_e.steps.value.length),Et=computed(()=>{var En;return((En=_e.steps.value[qe.value-1])==null?void 0:En.uid)===(Ce==null?void 0:Ce.uid)}),Lt=computed(()=>Ue.value?"":_e.props.space),hn=computed(()=>[ie.b(),ie.is(Ue.value?"simple":_e.props.direction),ie.is("flex",Et.value&&!Lt.value&&!Ie.value),ie.is("center",Ie.value&&!ze.value&&!Ue.value)]),vn=computed(()=>{const En={flexBasis:isNumber$5(Lt.value)?`${Lt.value}px`:Lt.value?Lt.value:`${100/(qe.value-(Ie.value?0:1))}%`};return ze.value||Et.value&&(En.maxWidth=`${100/qe.value}%`),En}),_n=En=>{le.value=En},bn=En=>{const $n=En==="wait",wn={transitionDelay:`${$n?"-":""}${150*le.value}ms`},Tn=En===_e.props.processStatus||$n?0:100;wn.borderWidth=Tn&&!Ue.value?"1px":0,wn[_e.props.direction==="vertical"?"height":"width"]=`${Tn}%`,ue.value=wn},Sn=En=>{En>le.value?pe.value=_e.props.finishStatus:En===le.value&&xe.value!=="error"?pe.value=_e.props.processStatus:pe.value="wait";const $n=_e.steps.value[le.value-1];$n&&$n.calcProgress(pe.value)},Cn=reactive({uid:computed(()=>Ce==null?void 0:Ce.uid),currentStatus:$e,setIndex:_n,calcProgress:bn});return _e.steps.value=[..._e.steps.value,Cn],(En,$n)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(unref(vn)),class:normalizeClass(unref(hn))},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(ie).e("head"),unref(ie).is(unref($e))])},[unref(Ue)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(ie).e("line-inner")),style:normalizeStyle$1(ue.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(ie).e("icon"),unref(ie).is(En.icon||En.$slots.icon?"icon":"text")])},[renderSlot(En.$slots,"icon",{},()=>[En.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.icon)))]),_:1},8,["class"])):unref($e)==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ie).e("icon-inner"),unref(ie).is("status")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):unref($e)==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(ie).e("icon-inner"),unref(ie).is("status")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):unref(Ue)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(ie).e("icon-inner"))},toDisplayString$1(le.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(ie).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(ie).e("title"),unref(ie).is(unref($e))])},[renderSlot(En.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(En.title),1)])],2),unref(Ue)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(ie).e("description"),unref(ie).is(unref($e))])},[renderSlot(En.$slots,"description",{},()=>[createTextVNode(toDisplayString$1(En.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:ie}){const le=$,ue=getCurrentInstance(),{formItem:pe}=useFormItem(),_e=useFormSize(),Ce=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 Cn;return!!((Cn=ue.vnode.props)!=null&&Cn.value)}));const{inputId:$e}=useFormItemInputId(le,{formItemContext:pe}),xe=useFormDisabled(computed(()=>le.loading)),Ie=ref(le.modelValue!==!1),ze=ref(),Ue=ref(),qe=computed(()=>[Ce.b(),Ce.m(_e.value),Ce.is("disabled",xe.value),Ce.is("checked",hn.value)]),Et=computed(()=>({width:addUnit(le.width)}));watch(()=>le.modelValue,()=>{Ie.value=!0}),watch(()=>le.value,()=>{Ie.value=!1});const Lt=computed(()=>Ie.value?le.modelValue:le.value),hn=computed(()=>Lt.value===le.activeValue);[le.activeValue,le.inactiveValue].includes(Lt.value)||(ie(UPDATE_MODEL_EVENT,le.inactiveValue),ie(CHANGE_EVENT,le.inactiveValue),ie(INPUT_EVENT,le.inactiveValue)),watch(hn,Cn=>{var En;ze.value.checked=Cn,le.validateEvent&&((En=pe==null?void 0:pe.validate)==null||En.call(pe,"change").catch($n=>void 0))});const vn=()=>{const Cn=hn.value?le.inactiveValue:le.activeValue;ie(UPDATE_MODEL_EVENT,Cn),ie(CHANGE_EVENT,Cn),ie(INPUT_EVENT,Cn),nextTick(()=>{ze.value.checked=hn.value})},_n=()=>{if(xe.value)return;const{beforeChange:Cn}=le;if(!Cn){vn();return}const En=Cn();[isPromise(En),isBoolean$3(En)].includes(!0)||throwError$1(COMPONENT_NAME$8,"beforeChange must return type `Promise<boolean>` or `boolean`"),isPromise(En)?En.then(wn=>{wn&&vn()}).catch(wn=>{}):En&&vn()},bn=computed(()=>Ce.cssVarBlock({...le.activeColor?{"on-color":le.activeColor}:null,...le.inactiveColor?{"off-color":le.inactiveColor}:null,...le.borderColor?{"border-color":le.borderColor}:null})),Sn=()=>{var Cn,En;(En=(Cn=ze.value)==null?void 0:Cn.focus)==null||En.call(Cn)};return onMounted(()=>{ze.value.checked=hn.value}),z({focus:Sn,checked:hn}),(Cn,En)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(qe)),style:normalizeStyle$1(unref(bn)),onClick:withModifiers(_n,["prevent"])},[createBaseVNode("input",{id:unref($e),ref_key:"input",ref:ze,class:normalizeClass(unref(Ce).e("input")),type:"checkbox",role:"switch","aria-checked":unref(hn),"aria-disabled":unref(xe),name:Cn.name,"true-value":Cn.activeValue,"false-value":Cn.inactiveValue,disabled:unref(xe),tabindex:Cn.tabindex,onChange:vn,onKeydown:withKeys(_n,["enter"])},null,42,_hoisted_2$b),!Cn.inlinePrompt&&(Cn.inactiveIcon||Cn.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(Ce).e("label"),unref(Ce).em("label","left"),unref(Ce).is("active",!unref(hn))])},[Cn.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Cn.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!Cn.inactiveIcon&&Cn.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":unref(hn)},toDisplayString$1(Cn.inactiveText),9,_hoisted_3$6)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref_key:"core",ref:Ue,class:normalizeClass(unref(Ce).e("core")),style:normalizeStyle$1(unref(Et))},[Cn.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ce).e("inner"))},[Cn.activeIcon||Cn.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce).is("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(hn)?Cn.activeIcon:Cn.inactiveIcon)))]),_:1},8,["class"])):Cn.activeText||Cn.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Ce).is("text")),"aria-hidden":!unref(hn)},toDisplayString$1(unref(hn)?Cn.activeText:Cn.inactiveText),11,_hoisted_4$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("action"))},[Cn.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],6),!Cn.inlinePrompt&&(Cn.activeIcon||Cn.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([unref(Ce).e("label"),unref(Ce).em("label","right"),unref(Ce).is("active",unref(hn))])},[Cn.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Cn.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!Cn.activeIcon&&Cn.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!unref(hn)},toDisplayString$1(Cn.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=""+$,ie=matchHtmlRegExp.exec(z);if(!ie)return z;var le,ue="",pe=0,_e=0;for(pe=ie.index;pe<z.length;pe++){switch(z.charCodeAt(pe)){case 34:le="&quot;";break;case 38:le="&amp;";break;case 39:le="&#39;";break;case 60:le="&lt;";break;case 62:le="&gt;";break;default:continue}_e!==pe&&(ue+=z.substring(_e,pe)),_e=pe+1,ue+=le}return _e!==pe?ue+z.substring(_e,pe):ue}const escapeHtml$2=getDefaultExportFromCjs(escapeHtml_1),getCell=function($){var z;return(z=$.target)==null?void 0:z.closest("td")},orderBy=function($,z,ie,le,ue){if(!z&&!le&&(!ue||Array.isArray(ue)&&!ue.length))return $;typeof ie=="string"?ie=ie==="descending"?-1:1:ie=ie&&ie<0?-1:1;const pe=le?null:function(Ce,$e){return ue?(Array.isArray(ue)||(ue=[ue]),ue.map(xe=>typeof xe=="string"?get$1(Ce,xe):xe(Ce,$e,$))):(z!=="$key"&&isObject$8(Ce)&&"$value"in Ce&&(Ce=Ce.$value),[isObject$8(Ce)?get$1(Ce,z):Ce])},_e=function(Ce,$e){if(le)return le(Ce.value,$e.value);for(let xe=0,Ie=Ce.key.length;xe<Ie;xe++){if(Ce.key[xe]<$e.key[xe])return-1;if(Ce.key[xe]>$e.key[xe])return 1}return 0};return $.map((Ce,$e)=>({value:Ce,index:$e,key:pe?pe(Ce,$e):null})).sort((Ce,$e)=>{let xe=_e(Ce,$e);return xe||(xe=Ce.index-$e.index),xe*+ie}).map(Ce=>Ce.value)},getColumnById=function($,z){let ie=null;return $.columns.forEach(le=>{le.id===z&&(ie=le)}),ie},getColumnByKey=function($,z){let ie=null;for(let le=0;le<$.columns.length;le++){const ue=$.columns[le];if(ue.columnKey===z){ie=ue;break}}return ie||throwError$1("ElTable",`No column matching with column-key: ${z}`),ie},getColumnByCell=function($,z,ie){const le=(z.className||"").match(new RegExp(`${ie}-table_[^\\s]+`,"gm"));return le?getColumnById($,le[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 ie=z.split(".");let le=$;for(const ue of ie)le=le[ue];return`${le}`}else if(typeof z=="function")return z.call(null,$)},getKeysMap=function($,z){const ie={};return($||[]).forEach((le,ue)=>{ie[getRowIdentity(le,z)]={row:le,index:ue}}),ie};function mergeOptions$1($,z){const ie={};let le;for(le in $)ie[le]=$[le];for(le in z)if(hasOwn$4(z,le)){const ue=z[le];typeof ue<"u"&&(ie[le]=ue)}return ie}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,ie)=>(...le)=>z(ie(...le)))}function toggleRowStatus($,z,ie){let le=!1;const ue=$.indexOf(z),pe=ue!==-1,_e=Ce=>{Ce==="add"?$.push(z):$.splice(ue,1),le=!0,isArray$c(z.children)&&z.children.forEach($e=>{toggleRowStatus($,$e,ie??!pe)})};return isBoolean$3(ie)?ie&&!pe?_e("add"):!ie&&pe&&_e("remove"):_e(pe?"remove":"add"),le}function walkTreeNode($,z,ie="children",le="hasChildren"){const ue=_e=>!(Array.isArray(_e)&&_e.length);function pe(_e,Ce,$e){z(_e,Ce,$e),Ce.forEach(xe=>{if(xe[le]){z(xe,null,$e+1);return}const Ie=xe[ie];ue(Ie)||pe(xe,Ie,$e+1)})}$.forEach(_e=>{if(_e[le]){z(_e,null,0);return}const Ce=_e[ie];ue(Ce)||pe(_e,Ce,0)})}let removePopper;function createTablePopper($,z,ie,le,ue){ue=merge$4({enterable:!0,showArrow:!0},ue);const pe=$==null?void 0:$.dataset.prefix,_e=$==null?void 0:$.querySelector(`.${pe}-scrollbar__wrap`);function Ce(){const hn=ue.effect==="light",vn=document.createElement("div");return vn.className=[`${pe}-popper`,hn?"is-light":"is-dark",ue.popperClass||""].join(" "),ie=escapeHtml$2(ie),vn.innerHTML=ie,vn.style.zIndex=String(le()),$==null||$.appendChild(vn),vn}function $e(){const hn=document.createElement("div");return hn.className=`${pe}-popper__arrow`,hn}function xe(){Ie&&Ie.update()}removePopper==null||removePopper(),removePopper=()=>{try{Ie&&Ie.destroy(),qe&&($==null||$.removeChild(qe)),z.removeEventListener("mouseenter",ze),z.removeEventListener("mouseleave",Ue),_e==null||_e.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let Ie=null,ze=xe,Ue=removePopper;ue.enterable&&({onOpen:ze,onClose:Ue}=useDelayedToggle({showAfter:ue.showAfter,hideAfter:ue.hideAfter,open:xe,close:removePopper}));const qe=Ce();qe.onmouseenter=ze,qe.onmouseleave=Ue;const Et=[];if(ue.offset&&Et.push({name:"offset",options:{offset:[0,ue.offset]}}),ue.showArrow){const hn=qe.appendChild($e());Et.push({name:"arrow",options:{element:hn,padding:10}})}const Lt=ue.popperOptions||{};return Ie=yn(z,qe,{placement:ue.placement||"top",strategy:"fixed",...Lt,modifiers:Lt.modifiers?Et.concat(Lt.modifiers):Et}),z.addEventListener("mouseenter",ze),z.addEventListener("mouseleave",Ue),_e==null||_e.addEventListener("scroll",removePopper),Ie}function getCurrentColumns($){return $.children?flatMap($.children,getCurrentColumns):[$]}function getColSpan($,z){return $+z.colSpan}const isFixedColumn=($,z,ie,le)=>{let ue=0,pe=$;const _e=ie.states.columns.value;if(le){const $e=getCurrentColumns(le[$]);ue=_e.slice(0,_e.indexOf($e[0])).reduce(getColSpan,0),pe=ue+$e.reduce(getColSpan,0)-1}else ue=$;let Ce;switch(z){case"left":pe<ie.states.fixedLeafColumnsLength.value&&(Ce="left");break;case"right":ue>=_e.length-ie.states.rightFixedLeafColumnsLength.value&&(Ce="right");break;default:pe<ie.states.fixedLeafColumnsLength.value?Ce="left":ue>=_e.length-ie.states.rightFixedLeafColumnsLength.value&&(Ce="right")}return Ce?{direction:Ce,start:ue,after:pe}:{}},getFixedColumnsClass=($,z,ie,le,ue,pe=0)=>{const _e=[],{direction:Ce,start:$e,after:xe}=isFixedColumn(z,ie,le,ue);if(Ce){const Ie=Ce==="left";_e.push(`${$}-fixed-column--${Ce}`),Ie&&xe+pe===le.states.fixedLeafColumnsLength.value-1?_e.push("is-last-column"):!Ie&&$e-pe===le.states.columns.value.length-le.states.rightFixedLeafColumnsLength.value&&_e.push("is-first-column")}return _e};function getOffset($,z){return $+(z.realWidth===null||Number.isNaN(z.realWidth)?Number(z.width):z.realWidth)}const getFixedColumnOffset=($,z,ie,le)=>{const{direction:ue,start:pe=0,after:_e=0}=isFixedColumn($,z,ie,le);if(!ue)return;const Ce={},$e=ue==="left",xe=ie.states.columns.value;return $e?Ce.left=xe.slice(0,pe).reduce(getOffset,0):Ce.right=xe.slice(_e+1).reverse().reduce(getOffset,0),Ce},ensurePosition=($,z)=>{$&&(Number.isNaN($[z])||($[z]=`${$[z]}px`))};function useExpand($){const z=getCurrentInstance(),ie=ref(!1),le=ref([]);return{updateExpandRows:()=>{const $e=$.data.value||[],xe=$.rowKey.value;if(ie.value)le.value=$e.slice();else if(xe){const Ie=getKeysMap(le.value,xe);le.value=$e.reduce((ze,Ue)=>{const qe=getRowIdentity(Ue,xe);return Ie[qe]&&ze.push(Ue),ze},[])}else le.value=[]},toggleRowExpansion:($e,xe)=>{toggleRowStatus(le.value,$e,xe)&&z.emit("expand-change",$e,le.value.slice())},setExpandRowKeys:$e=>{z.store.assertRowKey();const xe=$.data.value||[],Ie=$.rowKey.value,ze=getKeysMap(xe,Ie);le.value=$e.reduce((Ue,qe)=>{const Et=ze[qe];return Et&&Ue.push(Et.row),Ue},[])},isRowExpanded:$e=>{const xe=$.rowKey.value;return xe?!!getKeysMap(le.value,xe)[getRowIdentity($e,xe)]:le.value.includes($e)},states:{expandRows:le,defaultExpandAll:ie}}}function useCurrent($){const z=getCurrentInstance(),ie=ref(null),le=ref(null),ue=xe=>{z.store.assertRowKey(),ie.value=xe,_e(xe)},pe=()=>{ie.value=null},_e=xe=>{const{data:Ie,rowKey:ze}=$;let Ue=null;ze.value&&(Ue=(unref(Ie)||[]).find(qe=>getRowIdentity(qe,ze.value)===xe)),le.value=Ue,z.emit("current-change",le.value,null)};return{setCurrentRowKey:ue,restoreCurrentRowKey:pe,setCurrentRowByKey:_e,updateCurrentRow:xe=>{const Ie=le.value;if(xe&&xe!==Ie){le.value=xe,z.emit("current-change",le.value,Ie);return}!xe&&Ie&&(le.value=null,z.emit("current-change",null,Ie))},updateCurrentRowData:()=>{const xe=$.rowKey.value,Ie=$.data.value||[],ze=le.value;if(!Ie.includes(ze)&&ze){if(xe){const Ue=getRowIdentity(ze,xe);_e(Ue)}else le.value=null;le.value===null&&z.emit("current-change",null,ze)}else ie.value&&(_e(ie.value),pe())},states:{_currentRowKey:ie,currentRow:le}}}function useTree$2($){const z=ref([]),ie=ref({}),le=ref(16),ue=ref(!1),pe=ref({}),_e=ref("hasChildren"),Ce=ref("children"),$e=getCurrentInstance(),xe=computed(()=>{if(!$.rowKey.value)return{};const vn=$.data.value||[];return ze(vn)}),Ie=computed(()=>{const vn=$.rowKey.value,_n=Object.keys(pe.value),bn={};return _n.length&&_n.forEach(Sn=>{if(pe.value[Sn].length){const Cn={children:[]};pe.value[Sn].forEach(En=>{const $n=getRowIdentity(En,vn);Cn.children.push($n),En[_e.value]&&!bn[$n]&&(bn[$n]={children:[]})}),bn[Sn]=Cn}}),bn}),ze=vn=>{const _n=$.rowKey.value,bn={};return walkTreeNode(vn,(Sn,Cn,En)=>{const $n=getRowIdentity(Sn,_n);Array.isArray(Cn)?bn[$n]={children:Cn.map(wn=>getRowIdentity(wn,_n)),level:En}:ue.value&&(bn[$n]={children:[],lazy:!0,level:En})},Ce.value,_e.value),bn},Ue=(vn=!1,_n=(bn=>(bn=$e.store)==null?void 0:bn.states.defaultExpandAll.value)())=>{var bn;const Sn=xe.value,Cn=Ie.value,En=Object.keys(Sn),$n={};if(En.length){const wn=unref(ie),Tn=[],xn=(kn,An)=>{if(vn)return z.value?_n||z.value.includes(An):!!(_n||kn!=null&&kn.expanded);{const Nn=_n||z.value&&z.value.includes(An);return!!(kn!=null&&kn.expanded||Nn)}};En.forEach(kn=>{const An=wn[kn],Nn={...Sn[kn]};if(Nn.expanded=xn(An,kn),Nn.lazy){const{loaded:Fn=!1,loading:Ln=!1}=An||{};Nn.loaded=!!Fn,Nn.loading=!!Ln,Tn.push(kn)}$n[kn]=Nn});const Pn=Object.keys(Cn);ue.value&&Pn.length&&Tn.length&&Pn.forEach(kn=>{const An=wn[kn],Nn=Cn[kn].children;if(Tn.includes(kn)){if($n[kn].children.length!==0)throw new Error("[ElTable]children must be an empty array.");$n[kn].children=Nn}else{const{loaded:Fn=!1,loading:Ln=!1}=An||{};$n[kn]={lazy:!0,loaded:!!Fn,loading:!!Ln,expanded:xn(An,kn),children:Nn,level:""}}})}ie.value=$n,(bn=$e.store)==null||bn.updateTableScrollY()};watch(()=>z.value,()=>{Ue(!0)}),watch(()=>xe.value,()=>{Ue()}),watch(()=>Ie.value,()=>{Ue()});const qe=vn=>{z.value=vn,Ue()},Et=(vn,_n)=>{$e.store.assertRowKey();const bn=$.rowKey.value,Sn=getRowIdentity(vn,bn),Cn=Sn&&ie.value[Sn];if(Sn&&Cn&&"expanded"in Cn){const En=Cn.expanded;_n=typeof _n>"u"?!Cn.expanded:_n,ie.value[Sn].expanded=_n,En!==_n&&$e.emit("expand-change",vn,_n),$e.store.updateTableScrollY()}},Lt=vn=>{$e.store.assertRowKey();const _n=$.rowKey.value,bn=getRowIdentity(vn,_n),Sn=ie.value[bn];ue.value&&Sn&&"loaded"in Sn&&!Sn.loaded?hn(vn,bn,Sn):Et(vn,void 0)},hn=(vn,_n,bn)=>{const{load:Sn}=$e.props;Sn&&!ie.value[_n].loaded&&(ie.value[_n].loading=!0,Sn(vn,bn,Cn=>{if(!Array.isArray(Cn))throw new TypeError("[ElTable] data must be an array");ie.value[_n].loading=!1,ie.value[_n].loaded=!0,ie.value[_n].expanded=!0,Cn.length&&(pe.value[_n]=Cn),$e.emit("expand-change",vn,!0)}))};return{loadData:hn,loadOrToggle:Lt,toggleTreeExpansion:Et,updateTreeExpandKeys:qe,updateTreeData:Ue,normalize:ze,states:{expandRowKeys:z,treeData:ie,indent:le,lazy:ue,lazyTreeNodeMap:pe,lazyColumnIdentifier:_e,childrenColumnName:Ce}}}const sortData=($,z)=>{const ie=z.sortingColumn;return!ie||typeof ie.sortable=="string"?$:orderBy($,z.sortProp,z.sortOrder,ie.sortMethod,ie.sortBy)},doFlattenColumns=$=>{const z=[];return $.forEach(ie=>{ie.children?z.push.apply(z,doFlattenColumns(ie.children)):z.push(ie)}),z};function useWatcher$1(){var $;const z=getCurrentInstance(),{size:ie}=toRefs(($=z.proxy)==null?void 0:$.$props),le=ref(null),ue=ref([]),pe=ref([]),_e=ref(!1),Ce=ref([]),$e=ref([]),xe=ref([]),Ie=ref([]),ze=ref([]),Ue=ref([]),qe=ref([]),Et=ref([]),Lt=[],hn=ref(0),vn=ref(0),_n=ref(0),bn=ref(!1),Sn=ref([]),Cn=ref(!1),En=ref(!1),$n=ref(null),wn=ref({}),Tn=ref(null),xn=ref(null),Pn=ref(null),kn=ref(null),An=ref(null);watch(ue,()=>z.state&&In(!1),{deep:!0});const Nn=()=>{if(!le.value)throw new Error("[ElTable] prop row-key is required")},Fn=Er=>{var cr;(cr=Er.children)==null||cr.forEach(Qn=>{Qn.fixed=Er.fixed,Fn(Qn)})},Ln=()=>{Ce.value.forEach($r=>{Fn($r)}),Ie.value=Ce.value.filter($r=>$r.fixed===!0||$r.fixed==="left"),ze.value=Ce.value.filter($r=>$r.fixed==="right"),Ie.value.length>0&&Ce.value[0]&&Ce.value[0].type==="selection"&&!Ce.value[0].fixed&&(Ce.value[0].fixed=!0,Ie.value.unshift(Ce.value[0]));const Er=Ce.value.filter($r=>!$r.fixed);$e.value=[].concat(Ie.value).concat(Er).concat(ze.value);const cr=doFlattenColumns(Er),Qn=doFlattenColumns(Ie.value),ar=doFlattenColumns(ze.value);hn.value=cr.length,vn.value=Qn.length,_n.value=ar.length,xe.value=[].concat(Qn).concat(cr).concat(ar),_e.value=Ie.value.length>0||ze.value.length>0},In=(Er,cr=!1)=>{Er&&Ln(),cr?z.state.doLayout():z.state.debouncedUpdateLayout()},Vn=Er=>Sn.value.includes(Er),Mn=()=>{bn.value=!1,Sn.value.length&&(Sn.value=[],z.emit("selection-change",[]))},zn=()=>{let Er;if(le.value){Er=[];const cr=getKeysMap(Sn.value,le.value),Qn=getKeysMap(ue.value,le.value);for(const ar in cr)hasOwn$4(cr,ar)&&!Qn[ar]&&Er.push(cr[ar].row)}else Er=Sn.value.filter(cr=>!ue.value.includes(cr));if(Er.length){const cr=Sn.value.filter(Qn=>!Er.includes(Qn));Sn.value=cr,z.emit("selection-change",cr.slice())}},qn=()=>(Sn.value||[]).slice(),Hn=(Er,cr=void 0,Qn=!0)=>{if(toggleRowStatus(Sn.value,Er,cr)){const $r=(Sn.value||[]).slice();Qn&&z.emit("select",$r,Er),z.emit("selection-change",$r)}},Jn=()=>{var Er,cr;const Qn=En.value?!bn.value:!(bn.value||Sn.value.length);bn.value=Qn;let ar=!1,$r=0;const Ir=(cr=(Er=z==null?void 0:z.store)==null?void 0:Er.states)==null?void 0:cr.rowKey.value;ue.value.forEach((Hr,br)=>{const Mr=br+$r;$n.value?$n.value.call(null,Hr,Mr)&&toggleRowStatus(Sn.value,Hr,Qn)&&(ar=!0):toggleRowStatus(Sn.value,Hr,Qn)&&(ar=!0),$r+=sr(getRowIdentity(Hr,Ir))}),ar&&z.emit("selection-change",Sn.value?Sn.value.slice():[]),z.emit("select-all",Sn.value)},ur=()=>{const Er=getKeysMap(Sn.value,le.value);ue.value.forEach(cr=>{const Qn=getRowIdentity(cr,le.value),ar=Er[Qn];ar&&(Sn.value[ar.index]=cr)})},yr=()=>{var Er,cr,Qn;if(((Er=ue.value)==null?void 0:Er.length)===0){bn.value=!1;return}let ar;le.value&&(ar=getKeysMap(Sn.value,le.value));const $r=function(Mr){return ar?!!ar[getRowIdentity(Mr,le.value)]:Sn.value.includes(Mr)};let Ir=!0,Hr=0,br=0;for(let Mr=0,Ur=(ue.value||[]).length;Mr<Ur;Mr++){const jr=(Qn=(cr=z==null?void 0:z.store)==null?void 0:cr.states)==null?void 0:Qn.rowKey.value,Wr=Mr+br,Zr=ue.value[Mr],Jr=$n.value&&$n.value.call(null,Zr,Wr);if($r(Zr))Hr++;else if(!$n.value||Jr){Ir=!1;break}br+=sr(getRowIdentity(Zr,jr))}Hr===0&&(Ir=!1),bn.value=Ir},sr=Er=>{var cr;if(!z||!z.store)return 0;const{treeData:Qn}=z.store.states;let ar=0;const $r=(cr=Qn.value[Er])==null?void 0:cr.children;return $r&&(ar+=$r.length,$r.forEach(Ir=>{ar+=sr(Ir)})),ar},Zn=(Er,cr)=>{Array.isArray(Er)||(Er=[Er]);const Qn={};return Er.forEach(ar=>{wn.value[ar.id]=cr,Qn[ar.columnKey||ar.id]=cr}),Qn},Kn=(Er,cr,Qn)=>{xn.value&&xn.value!==Er&&(xn.value.order=null),xn.value=Er,Pn.value=cr,kn.value=Qn},Wn=()=>{let Er=unref(pe);Object.keys(wn.value).forEach(cr=>{const Qn=wn.value[cr];if(!Qn||Qn.length===0)return;const ar=getColumnById({columns:xe.value},cr);ar&&ar.filterMethod&&(Er=Er.filter($r=>Qn.some(Ir=>ar.filterMethod.call(null,Ir,$r,ar))))}),Tn.value=Er},nr=()=>{ue.value=sortData(Tn.value,{sortingColumn:xn.value,sortProp:Pn.value,sortOrder:kn.value})},fr=(Er=void 0)=>{Er&&Er.filter||Wn(),nr()},Gn=Er=>{const{tableHeaderRef:cr}=z.refs;if(!cr)return;const Qn=Object.assign({},cr.filterPanels),ar=Object.keys(Qn);if(ar.length)if(typeof Er=="string"&&(Er=[Er]),Array.isArray(Er)){const $r=Er.map(Ir=>getColumnByKey({columns:xe.value},Ir));ar.forEach(Ir=>{const Hr=$r.find(br=>br.id===Ir);Hr&&(Hr.filteredValue=[])}),z.store.commit("filterChange",{column:$r,values:[],silent:!0,multi:!0})}else ar.forEach($r=>{const Ir=xe.value.find(Hr=>Hr.id===$r);Ir&&(Ir.filteredValue=[])}),wn.value={},z.store.commit("filterChange",{column:{},values:[],silent:!0})},Xn=()=>{xn.value&&(Kn(null,null,null),z.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:or,toggleRowExpansion:vr,updateExpandRows:_r,states:ir,isRowExpanded:Pr}=useExpand({data:ue,rowKey:le}),{updateTreeExpandKeys:gr,toggleTreeExpansion:kr,updateTreeData:pr,loadOrToggle:lr,states:dr}=useTree$2({data:ue,rowKey:le}),{updateCurrentRowData:hr,updateCurrentRow:Or,setCurrentRowKey:Lr,states:Br}=useCurrent({data:ue,rowKey:le});return{assertRowKey:Nn,updateColumns:Ln,scheduleLayout:In,isSelected:Vn,clearSelection:Mn,cleanSelection:zn,getSelectionRows:qn,toggleRowSelection:Hn,_toggleAllSelection:Jn,toggleAllSelection:null,updateSelectionByRowKey:ur,updateAllSelected:yr,updateFilters:Zn,updateCurrentRow:Or,updateSort:Kn,execFilter:Wn,execSort:nr,execQuery:fr,clearFilter:Gn,clearSort:Xn,toggleRowExpansion:vr,setExpandRowKeysAdapter:Er=>{or(Er),gr(Er)},setCurrentRowKey:Lr,toggleRowExpansionAdapter:(Er,cr)=>{xe.value.some(({type:ar})=>ar==="expand")?vr(Er,cr):kr(Er,cr)},isRowExpanded:Pr,updateExpandRows:_r,updateCurrentRowData:hr,loadOrToggle:lr,updateTreeData:pr,states:{tableSize:ie,rowKey:le,data:ue,_data:pe,isComplex:_e,_columns:Ce,originColumns:$e,columns:xe,fixedColumns:Ie,rightFixedColumns:ze,leafColumns:Ue,fixedLeafColumns:qe,rightFixedLeafColumns:Et,updateOrderFns:Lt,leafColumnsLength:hn,fixedLeafColumnsLength:vn,rightFixedLeafColumnsLength:_n,isAllSelected:bn,selection:Sn,reserveSelection:Cn,selectOnIndeterminate:En,selectable:$n,filters:wn,filteredData:Tn,sortingColumn:xn,sortProp:Pn,sortOrder:kn,hoverRow:An,...ir,...dr,...Br}}}function replaceColumn($,z){return $.map(ie=>{var le;return ie.id===z.id?z:((le=ie.children)!=null&&le.length&&(ie.children=replaceColumn(ie.children,z)),ie)})}function sortColumn($){$.forEach(z=>{var ie,le;z.no=(ie=z.getColumnIndex)==null?void 0:ie.call(z),(le=z.children)!=null&&le.length&&sortColumn(z.children)}),$.sort((z,ie)=>z.no-ie.no)}function useStore(){const $=getCurrentInstance(),z=useWatcher$1();return{ns:useNamespace("table"),...z,mutations:{setData(_e,Ce){const $e=unref(_e._data)!==Ce;_e.data.value=Ce,_e._data.value=Ce,$.store.execQuery(),$.store.updateCurrentRowData(),$.store.updateExpandRows(),$.store.updateTreeData($.store.states.defaultExpandAll.value),unref(_e.reserveSelection)?($.store.assertRowKey(),$.store.updateSelectionByRowKey()):$e?$.store.clearSelection():$.store.cleanSelection(),$.store.updateAllSelected(),$.$ready&&$.store.scheduleLayout()},insertColumn(_e,Ce,$e,xe){const Ie=unref(_e._columns);let ze=[];$e?($e&&!$e.children&&($e.children=[]),$e.children.push(Ce),ze=replaceColumn(Ie,$e)):(Ie.push(Ce),ze=Ie),sortColumn(ze),_e._columns.value=ze,_e.updateOrderFns.push(xe),Ce.type==="selection"&&(_e.selectable.value=Ce.selectable,_e.reserveSelection.value=Ce.reserveSelection),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},updateColumnOrder(_e,Ce){var $e;(($e=Ce.getColumnIndex)==null?void 0:$e.call(Ce))!==Ce.no&&(sortColumn(_e._columns.value),$.$ready&&$.store.updateColumns())},removeColumn(_e,Ce,$e,xe){const Ie=unref(_e._columns)||[];if($e)$e.children.splice($e.children.findIndex(Ue=>Ue.id===Ce.id),1),nextTick(()=>{var Ue;((Ue=$e.children)==null?void 0:Ue.length)===0&&delete $e.children}),_e._columns.value=replaceColumn(Ie,$e);else{const Ue=Ie.indexOf(Ce);Ue>-1&&(Ie.splice(Ue,1),_e._columns.value=Ie)}const ze=_e.updateOrderFns.indexOf(xe);ze>-1&&_e.updateOrderFns.splice(ze,1),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},sort(_e,Ce){const{prop:$e,order:xe,init:Ie}=Ce;if($e){const ze=unref(_e.columns).find(Ue=>Ue.property===$e);ze&&(ze.order=xe,$.store.updateSort(ze,$e,xe),$.store.commit("changeSortCondition",{init:Ie}))}},changeSortCondition(_e,Ce){const{sortingColumn:$e,sortProp:xe,sortOrder:Ie}=_e,ze=unref($e),Ue=unref(xe),qe=unref(Ie);qe===null&&(_e.sortingColumn.value=null,_e.sortProp.value=null);const Et={filter:!0};$.store.execQuery(Et),(!Ce||!(Ce.silent||Ce.init))&&$.emit("sort-change",{column:ze,prop:Ue,order:qe}),$.store.updateTableScrollY()},filterChange(_e,Ce){const{column:$e,values:xe,silent:Ie}=Ce,ze=$.store.updateFilters($e,xe);$.store.execQuery(),Ie||$.emit("filter-change",ze),$.store.updateTableScrollY()},toggleAllSelection(){$.store.toggleAllSelection()},rowSelectedChanged(_e,Ce){$.store.toggleRowSelection(Ce),$.store.updateAllSelected()},setHoverRow(_e,Ce){_e.hoverRow.value=Ce},setCurrentRow(_e,Ce){$.store.updateCurrentRow(Ce)}},commit:function(_e,...Ce){const $e=$.store.mutations;if($e[_e])$e[_e].apply($,[$.store.states].concat(Ce));else throw new Error(`Action not found: ${_e}`)},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 ie=useStore();return ie.toggleAllSelection=debounce(ie._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(le=>{handleValue(getArrKeysValue(z,le),le,ie)}),proxyTableProps(ie,z),ie}function proxyTableProps($,z){Object.keys(InitialStateMap).forEach(ie=>{watch(()=>getArrKeysValue(z,ie),le=>{handleValue(le,ie,$)})})}function handleValue($,z,ie){let le=$,ue=InitialStateMap[z];typeof InitialStateMap[z]=="object"&&(ue=ue.key,le=le||InitialStateMap[z].default),ie.states[ue].value=le}function getArrKeysValue($,z){if(z.includes(".")){const ie=z.split(".");let le=$;return ie.forEach(ue=>{le=le[ue]}),le}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 ie in z)hasOwn$4(z,ie)&&(isRef(this[ie])?this[ie].value=z[ie]:this[ie]=z[ie]);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 ie=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(ie!=null&&ie.wrapRef)){let le=!0;const ue=this.scrollY.value;return le=ie.wrapRef.scrollHeight>ie.wrapRef.clientHeight,this.scrollY.value=le,ue!==le}return!1}setHeight(z,ie="height"){if(!isClient$2)return;const le=this.table.vnode.el;if(z=parseHeight(z),this.height.value=Number(z),!le&&(z||z===0))return nextTick(()=>this.setHeight(z,ie));typeof z=="number"?(le.style[ie]=`${z}px`,this.updateElsHeight()):typeof z=="string"&&(le.style[ie]=z,this.updateElsHeight())}setMaxHeight(z){this.setHeight(z,"max-height")}getFlattenColumns(){const z=[];return this.table.store.states.columns.value.forEach(le=>{le.isColumnGroup?z.push.apply(z,le.columns):z.push(le)}),z}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(z){if(!z)return!0;let ie=z;for(;ie.tagName!=="DIV";){if(getComputedStyle(ie).display==="none")return!0;ie=ie.parentElement}return!1}updateColumnsWidth(){if(!isClient$2)return;const z=this.fit,ie=this.table.vnode.el.clientWidth;let le=0;const ue=this.getFlattenColumns(),pe=ue.filter($e=>typeof $e.width!="number");if(ue.forEach($e=>{typeof $e.width=="number"&&$e.realWidth&&($e.realWidth=null)}),pe.length>0&&z){if(ue.forEach($e=>{le+=Number($e.width||$e.minWidth||80)}),le<=ie){this.scrollX.value=!1;const $e=ie-le;if(pe.length===1)pe[0].realWidth=Number(pe[0].minWidth||80)+$e;else{const xe=pe.reduce((Ue,qe)=>Ue+Number(qe.minWidth||80),0),Ie=$e/xe;let ze=0;pe.forEach((Ue,qe)=>{if(qe===0)return;const Et=Math.floor(Number(Ue.minWidth||80)*Ie);ze+=Et,Ue.realWidth=Number(Ue.minWidth||80)+Et}),pe[0].realWidth=Number(pe[0].minWidth||80)+$e-ze}}else this.scrollX.value=!0,pe.forEach($e=>{$e.realWidth=Number($e.minWidth)});this.bodyWidth.value=Math.max(le,ie),this.table.state.resizeState.value.width=this.bodyWidth.value}else ue.forEach($e=>{!$e.width&&!$e.minWidth?$e.realWidth=80:$e.realWidth=Number($e.width||$e.minWidth),le+=$e.realWidth}),this.scrollX.value=le>ie,this.bodyWidth.value=le;const _e=this.store.states.fixedColumns.value;if(_e.length>0){let $e=0;_e.forEach(xe=>{$e+=Number(xe.realWidth||xe.width)}),this.fixedWidth.value=$e}const Ce=this.store.states.rightFixedColumns.value;if(Ce.length>0){let $e=0;Ce.forEach(xe=>{$e+=Number(xe.realWidth||xe.width)}),this.rightFixedWidth.value=$e}this.notifyObservers("columns")}addObserver(z){this.observers.push(z)}removeObserver(z){const ie=this.observers.indexOf(z);ie!==-1&&this.observers.splice(ie,1)}notifyObservers(z){this.observers.forEach(le=>{var ue,pe;switch(z){case"columns":(ue=le.state)==null||ue.onColumnsChange(this);break;case"scrollable":(pe=le.state)==null||pe.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:ie}=useLocale(),le=useNamespace("table-filter"),ue=z==null?void 0:z.parent;ue.filterPanels.value[$.column.id]||(ue.filterPanels.value[$.column.id]=z);const pe=ref(!1),_e=ref(null),Ce=computed(()=>$.column&&$.column.filters),$e=computed({get:()=>{var Sn;return(((Sn=$.column)==null?void 0:Sn.filteredValue)||[])[0]},set:Sn=>{xe.value&&(typeof Sn<"u"&&Sn!==null?xe.value.splice(0,1,Sn):xe.value.splice(0,1))}}),xe=computed({get(){return $.column?$.column.filteredValue||[]:[]},set(Sn){$.column&&$.upDataColumn("filteredValue",Sn)}}),Ie=computed(()=>$.column?$.column.filterMultiple:!0),ze=Sn=>Sn.value===$e.value,Ue=()=>{pe.value=!1},qe=Sn=>{Sn.stopPropagation(),pe.value=!pe.value},Et=()=>{pe.value=!1},Lt=()=>{_n(xe.value),Ue()},hn=()=>{xe.value=[],_n(xe.value),Ue()},vn=Sn=>{$e.value=Sn,_n(typeof Sn<"u"&&Sn!==null?xe.value:[]),Ue()},_n=Sn=>{$.store.commit("filterChange",{column:$.column,values:Sn}),$.store.updateAllSelected()};watch(pe,Sn=>{$.column&&$.upDataColumn("filterOpened",Sn)},{immediate:!0});const bn=computed(()=>{var Sn,Cn;return(Cn=(Sn=_e.value)==null?void 0:Sn.popperRef)==null?void 0:Cn.contentRef});return{tooltipVisible:pe,multiple:Ie,filteredValue:xe,filterValue:$e,filters:Ce,handleConfirm:Lt,handleReset:hn,handleSelect:vn,isActive:ze,t:ie,ns:le,showFilterPanel:qe,hideFilterPanel:Et,popperPaneRef:bn,tooltip:_e}}}),_hoisted_1$e={key:0},_hoisted_2$a=["disabled"],_hoisted_3$5=["label","onClick"];function _sfc_render$5($,z,ie,le,ue,pe){const _e=resolveComponent("el-checkbox"),Ce=resolveComponent("el-checkbox-group"),$e=resolveComponent("el-scrollbar"),xe=resolveComponent("arrow-up"),Ie=resolveComponent("arrow-down"),ze=resolveComponent("el-icon"),Ue=resolveComponent("el-tooltip"),qe=resolveDirective("click-outside");return openBlock(),createBlock(Ue,{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($e,{"wrap-class":$.ns.e("wrap")},{default:withCtx(()=>[createVNode(Ce,{modelValue:$.filteredValue,"onUpdate:modelValue":z[0]||(z[0]=Et=>$.filteredValue=Et),class:normalizeClass($.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,Et=>(openBlock(),createBlock(_e,{key:Et.value,label:Et.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1(Et.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]=(...Et)=>$.handleConfirm&&$.handleConfirm(...Et))},toDisplayString$1($.t("el.table.confirmFilter")),11,_hoisted_2$a),createBaseVNode("button",{type:"button",onClick:z[2]||(z[2]=(...Et)=>$.handleReset&&$.handleReset(...Et))},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]=Et=>$.handleSelect(null))},toDisplayString$1($.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,Et=>(openBlock(),createElementBlock("li",{key:Et.value,class:normalizeClass([$.ns.e("list-item"),$.ns.is("active",$.isActive(Et))]),label:Et.value,onClick:Lt=>$.handleSelect(Et.value)},toDisplayString$1(Et.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]=(...Et)=>$.showFilterPanel&&$.showFilterPanel(...Et))},[createVNode(ze,null,{default:withCtx(()=>[$.column.filterOpened?(openBlock(),createBlock(xe,{key:0})):(openBlock(),createBlock(Ie,{key:1}))]),_:1})],2)),[[qe,$.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(()=>{ie.value.addObserver(z)}),onMounted(()=>{le(ie.value),ue(ie.value)}),onUpdated(()=>{le(ie.value),ue(ie.value)}),onUnmounted(()=>{ie.value.removeObserver(z)});const ie=computed(()=>{const pe=$.layout;if(!pe)throw new Error("Can not find table layout.");return pe}),le=pe=>{var _e;const Ce=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("colgroup > col"))||[];if(!Ce.length)return;const $e=pe.getFlattenColumns(),xe={};$e.forEach(Ie=>{xe[Ie.id]=Ie});for(let Ie=0,ze=Ce.length;Ie<ze;Ie++){const Ue=Ce[Ie],qe=Ue.getAttribute("name"),Et=xe[qe];Et&&Ue.setAttribute("width",Et.realWidth||Et.width)}},ue=pe=>{var _e,Ce;const $e=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let Ie=0,ze=$e.length;Ie<ze;Ie++)$e[Ie].setAttribute("width",pe.scrollY.value?pe.gutterWidth:"0");const xe=((Ce=$.vnode.el)==null?void 0:Ce.querySelectorAll("th.gutter"))||[];for(let Ie=0,ze=xe.length;Ie<ze;Ie++){const Ue=xe[Ie];Ue.style.width=pe.scrollY.value?`${pe.gutterWidth}px`:"0",Ue.style.display=pe.scrollY.value?"":"none"}};return{tableLayout:ie.value,onColumnsChange:le,onScrollableChange:ue}}const TABLE_INJECTION_KEY=Symbol("ElTable");function useEvent($,z){const ie=getCurrentInstance(),le=inject(TABLE_INJECTION_KEY),ue=Lt=>{Lt.stopPropagation()},pe=(Lt,hn)=>{!hn.filters&&hn.sortable?Et(Lt,hn,!1):hn.filterable&&!hn.sortable&&ue(Lt),le==null||le.emit("header-click",hn,Lt)},_e=(Lt,hn)=>{le==null||le.emit("header-contextmenu",hn,Lt)},Ce=ref(null),$e=ref(!1),xe=ref({}),Ie=(Lt,hn)=>{if(isClient$2&&!(hn.children&&hn.children.length>0)&&Ce.value&&$.border){$e.value=!0;const vn=le;z("set-drag-visible",!0);const bn=(vn==null?void 0:vn.vnode.el).getBoundingClientRect().left,Sn=ie.vnode.el.querySelector(`th.${hn.id}`),Cn=Sn.getBoundingClientRect(),En=Cn.left-bn+30;addClass(Sn,"noclick"),xe.value={startMouseLeft:Lt.clientX,startLeft:Cn.right-bn,startColumnLeft:Cn.left-bn,tableLeft:bn};const $n=vn==null?void 0:vn.refs.resizeProxy;$n.style.left=`${xe.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const wn=xn=>{const Pn=xn.clientX-xe.value.startMouseLeft,kn=xe.value.startLeft+Pn;$n.style.left=`${Math.max(En,kn)}px`},Tn=()=>{if($e.value){const{startColumnLeft:xn,startLeft:Pn}=xe.value,An=Number.parseInt($n.style.left,10)-xn;hn.width=hn.realWidth=An,vn==null||vn.emit("header-dragend",hn.width,Pn-xn,hn,Lt),requestAnimationFrame(()=>{$.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",$e.value=!1,Ce.value=null,xe.value={},z("set-drag-visible",!1)}document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",Tn),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(Sn,"noclick")},0)};document.addEventListener("mousemove",wn),document.addEventListener("mouseup",Tn)}},ze=(Lt,hn)=>{if(hn.children&&hn.children.length>0)return;const vn=Lt.target;if(!isElement$2(vn))return;const _n=vn==null?void 0:vn.closest("th");if(!(!hn||!hn.resizable)&&!$e.value&&$.border){const bn=_n.getBoundingClientRect(),Sn=document.body.style;bn.width>12&&bn.right-Lt.pageX<8?(Sn.cursor="col-resize",hasClass(_n,"is-sortable")&&(_n.style.cursor="col-resize"),Ce.value=hn):$e.value||(Sn.cursor="",hasClass(_n,"is-sortable")&&(_n.style.cursor="pointer"),Ce.value=null)}},Ue=()=>{isClient$2&&(document.body.style.cursor="")},qe=({order:Lt,sortOrders:hn})=>{if(Lt==="")return hn[0];const vn=hn.indexOf(Lt||null);return hn[vn>hn.length-2?0:vn+1]},Et=(Lt,hn,vn)=>{var _n;Lt.stopPropagation();const bn=hn.order===vn?null:vn||qe(hn),Sn=(_n=Lt.target)==null?void 0:_n.closest("th");if(Sn&&hasClass(Sn,"noclick")){removeClass(Sn,"noclick");return}if(!hn.sortable)return;const Cn=$.store.states;let En=Cn.sortProp.value,$n;const wn=Cn.sortingColumn.value;(wn!==hn||wn===hn&&wn.order===null)&&(wn&&(wn.order=null),Cn.sortingColumn.value=hn,En=hn.property),bn?$n=hn.order=bn:$n=hn.order=null,Cn.sortProp.value=En,Cn.sortOrder.value=$n,le==null||le.store.commit("changeSortCondition")};return{handleHeaderClick:pe,handleHeaderContextMenu:_e,handleMouseDown:Ie,handleMouseMove:ze,handleMouseOut:Ue,handleSortClick:Et,handleFilterClick:ue}}function useStyle$2($){const z=inject(TABLE_INJECTION_KEY),ie=useNamespace("table");return{getHeaderRowStyle:Ce=>{const $e=z==null?void 0:z.props.headerRowStyle;return typeof $e=="function"?$e.call(null,{rowIndex:Ce}):$e},getHeaderRowClass:Ce=>{const $e=[],xe=z==null?void 0:z.props.headerRowClassName;return typeof xe=="string"?$e.push(xe):typeof xe=="function"&&$e.push(xe.call(null,{rowIndex:Ce})),$e.join(" ")},getHeaderCellStyle:(Ce,$e,xe,Ie)=>{var ze;let Ue=(ze=z==null?void 0:z.props.headerCellStyle)!=null?ze:{};typeof Ue=="function"&&(Ue=Ue.call(null,{rowIndex:Ce,columnIndex:$e,row:xe,column:Ie}));const qe=getFixedColumnOffset($e,Ie.fixed,$.store,xe);return ensurePosition(qe,"left"),ensurePosition(qe,"right"),Object.assign({},Ue,qe)},getHeaderCellClass:(Ce,$e,xe,Ie)=>{const ze=getFixedColumnsClass(ie.b(),$e,Ie.fixed,$.store,xe),Ue=[Ie.id,Ie.order,Ie.headerAlign,Ie.className,Ie.labelClassName,...ze];Ie.children||Ue.push("is-leaf"),Ie.sortable&&Ue.push("is-sortable");const qe=z==null?void 0:z.props.headerCellClassName;return typeof qe=="string"?Ue.push(qe):typeof qe=="function"&&Ue.push(qe.call(null,{rowIndex:Ce,columnIndex:$e,row:xe,column:Ie})),Ue.push(ie.e("cell")),Ue.filter(Et=>!!Et).join(" ")}}}const getAllColumns=$=>{const z=[];return $.forEach(ie=>{ie.children?(z.push(ie),z.push.apply(z,getAllColumns(ie.children))):z.push(ie)}),z},convertToRows=$=>{let z=1;const ie=(pe,_e)=>{if(_e&&(pe.level=_e.level+1,z<pe.level&&(z=pe.level)),pe.children){let Ce=0;pe.children.forEach($e=>{ie($e,pe),Ce+=$e.colSpan}),pe.colSpan=Ce}else pe.colSpan=1};$.forEach(pe=>{pe.level=1,ie(pe,void 0)});const le=[];for(let pe=0;pe<z;pe++)le.push([]);return getAllColumns($).forEach(pe=>{pe.children?(pe.rowSpan=1,pe.children.forEach(_e=>_e.isSubColumn=!0)):pe.rowSpan=z-pe.level+1,le[pe.level-1].push(pe)}),le};function useUtils$1($){const z=inject(TABLE_INJECTION_KEY),ie=computed(()=>convertToRows($.store.states.originColumns.value));return{isGroup:computed(()=>{const pe=ie.value.length>1;return pe&&z&&(z.state.isGroup.value=!0),pe}),toggleAllSelection:pe=>{pe.stopPropagation(),z==null||z.store.commit("toggleAllSelection")},columnRows:ie}}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 ie=getCurrentInstance(),le=inject(TABLE_INJECTION_KEY),ue=useNamespace("table"),pe=ref({}),{onColumnsChange:_e,onScrollableChange:Ce}=useLayoutObserver(le);onMounted(async()=>{await nextTick(),await nextTick();const{prop:En,order:$n}=$.defaultSort;le==null||le.store.commit("sort",{prop:En,order:$n,init:!0})});const{handleHeaderClick:$e,handleHeaderContextMenu:xe,handleMouseDown:Ie,handleMouseMove:ze,handleMouseOut:Ue,handleSortClick:qe,handleFilterClick:Et}=useEvent($,z),{getHeaderRowStyle:Lt,getHeaderRowClass:hn,getHeaderCellStyle:vn,getHeaderCellClass:_n}=useStyle$2($),{isGroup:bn,toggleAllSelection:Sn,columnRows:Cn}=useUtils$1($);return ie.state={onColumnsChange:_e,onScrollableChange:Ce},ie.filterPanels=pe,{ns:ue,filterPanels:pe,onColumnsChange:_e,onScrollableChange:Ce,columnRows:Cn,getHeaderRowClass:hn,getHeaderRowStyle:Lt,getHeaderCellClass:_n,getHeaderCellStyle:vn,handleHeaderClick:$e,handleHeaderContextMenu:xe,handleMouseDown:Ie,handleMouseMove:ze,handleMouseOut:Ue,handleSortClick:qe,handleFilterClick:Et,isGroup:bn,toggleAllSelection:Sn}},render(){const{ns:$,isGroup:z,columnRows:ie,getHeaderCellStyle:le,getHeaderCellClass:ue,getHeaderRowClass:pe,getHeaderRowStyle:_e,handleHeaderClick:Ce,handleHeaderContextMenu:$e,handleMouseDown:xe,handleMouseMove:Ie,handleSortClick:ze,handleMouseOut:Ue,store:qe,$parent:Et}=this;let Lt=1;return h$3("thead",{class:{[$.is("group")]:z}},ie.map((hn,vn)=>h$3("tr",{class:pe(vn),key:vn,style:_e(vn)},hn.map((_n,bn)=>(_n.rowSpan>Lt&&(Lt=_n.rowSpan),h$3("th",{class:ue(vn,bn,hn,_n),colspan:_n.colSpan,key:`${_n.id}-thead`,rowspan:_n.rowSpan,style:le(vn,bn,hn,_n),onClick:Sn=>Ce(Sn,_n),onContextmenu:Sn=>$e(Sn,_n),onMousedown:Sn=>xe(Sn,_n),onMousemove:Sn=>Ie(Sn,_n),onMouseout:Ue},[h$3("div",{class:["cell",_n.filteredValue&&_n.filteredValue.length>0?"highlight":""]},[_n.renderHeader?_n.renderHeader({column:_n,$index:bn,store:qe,_self:Et}):_n.label,_n.sortable&&h$3("span",{onClick:Sn=>ze(Sn,_n),class:"caret-wrapper"},[h$3("i",{onClick:Sn=>ze(Sn,_n,"ascending"),class:"sort-caret ascending"}),h$3("i",{onClick:Sn=>ze(Sn,_n,"descending"),class:"sort-caret descending"})]),_n.filterable&&h$3(FilterPanel,{store:qe,placement:_n.filterPlacement||"bottom-start",column:_n,upDataColumn:(Sn,Cn)=>{_n[Sn]=Cn}})])]))))))}});function useEvents($){const z=inject(TABLE_INJECTION_KEY),ie=ref(""),le=ref(h$3("div")),{nextZIndex:ue}=useZIndex(),pe=(qe,Et,Lt)=>{var hn;const vn=z,_n=getCell(qe);let bn;const Sn=(hn=vn==null?void 0:vn.vnode.el)==null?void 0:hn.dataset.prefix;_n&&(bn=getColumnByCell({columns:$.store.states.columns.value},_n,Sn),bn&&(vn==null||vn.emit(`cell-${Lt}`,Et,bn,_n,qe))),vn==null||vn.emit(`row-${Lt}`,Et,bn,qe)},_e=(qe,Et)=>{pe(qe,Et,"dblclick")},Ce=(qe,Et)=>{$.store.commit("setCurrentRow",Et),pe(qe,Et,"click")},$e=(qe,Et)=>{pe(qe,Et,"contextmenu")},xe=debounce(qe=>{$.store.commit("setHoverRow",qe)},30),Ie=debounce(()=>{$.store.commit("setHoverRow",null)},30);return{handleDoubleClick:_e,handleClick:Ce,handleContextMenu:$e,handleMouseEnter:xe,handleMouseLeave:Ie,handleCellMouseEnter:(qe,Et,Lt)=>{var hn;const vn=z,_n=getCell(qe),bn=(hn=vn==null?void 0:vn.vnode.el)==null?void 0:hn.dataset.prefix;if(_n){const wn=getColumnByCell({columns:$.store.states.columns.value},_n,bn),Tn=vn.hoverState={cell:_n,column:wn,row:Et};vn==null||vn.emit("cell-mouse-enter",Tn.row,Tn.column,Tn.cell,qe)}if(!Lt)return;const Sn=qe.target.querySelector(".cell");if(!(hasClass(Sn,`${bn}-tooltip`)&&Sn.childNodes.length))return;const Cn=document.createRange();Cn.setStart(Sn,0),Cn.setEnd(Sn,Sn.childNodes.length);const En=Math.round(Cn.getBoundingClientRect().width),$n=(Number.parseInt(getStyle$1(Sn,"paddingLeft"),10)||0)+(Number.parseInt(getStyle$1(Sn,"paddingRight"),10)||0);(En+$n>Sn.offsetWidth||Sn.scrollWidth>Sn.offsetWidth)&&createTablePopper(z==null?void 0:z.refs.tableWrapper,_n,_n.innerText||_n.textContent,ue,Lt)},handleCellMouseLeave:qe=>{if(!getCell(qe))return;const Lt=z==null?void 0:z.hoverState;z==null||z.emit("cell-mouse-leave",Lt==null?void 0:Lt.row,Lt==null?void 0:Lt.column,Lt==null?void 0:Lt.cell,qe)},tooltipContent:ie,tooltipTrigger:le}}function useStyles$1($){const z=inject(TABLE_INJECTION_KEY),ie=useNamespace("table");return{getRowStyle:(xe,Ie)=>{const ze=z==null?void 0:z.props.rowStyle;return typeof ze=="function"?ze.call(null,{row:xe,rowIndex:Ie}):ze||null},getRowClass:(xe,Ie)=>{const ze=[ie.e("row")];z!=null&&z.props.highlightCurrentRow&&xe===$.store.states.currentRow.value&&ze.push("current-row"),$.stripe&&Ie%2===1&&ze.push(ie.em("row","striped"));const Ue=z==null?void 0:z.props.rowClassName;return typeof Ue=="string"?ze.push(Ue):typeof Ue=="function"&&ze.push(Ue.call(null,{row:xe,rowIndex:Ie})),ze},getCellStyle:(xe,Ie,ze,Ue)=>{const qe=z==null?void 0:z.props.cellStyle;let Et=qe??{};typeof qe=="function"&&(Et=qe.call(null,{rowIndex:xe,columnIndex:Ie,row:ze,column:Ue}));const Lt=getFixedColumnOffset(Ie,$==null?void 0:$.fixed,$.store);return ensurePosition(Lt,"left"),ensurePosition(Lt,"right"),Object.assign({},Et,Lt)},getCellClass:(xe,Ie,ze,Ue,qe)=>{const Et=getFixedColumnsClass(ie.b(),Ie,$==null?void 0:$.fixed,$.store,void 0,qe),Lt=[Ue.id,Ue.align,Ue.className,...Et],hn=z==null?void 0:z.props.cellClassName;return typeof hn=="string"?Lt.push(hn):typeof hn=="function"&&Lt.push(hn.call(null,{rowIndex:xe,columnIndex:Ie,row:ze,column:Ue})),Lt.push(ie.e("cell")),Lt.filter(vn=>!!vn).join(" ")},getSpan:(xe,Ie,ze,Ue)=>{let qe=1,Et=1;const Lt=z==null?void 0:z.props.spanMethod;if(typeof Lt=="function"){const hn=Lt({row:xe,column:Ie,rowIndex:ze,columnIndex:Ue});Array.isArray(hn)?(qe=hn[0],Et=hn[1]):typeof hn=="object"&&(qe=hn.rowspan,Et=hn.colspan)}return{rowspan:qe,colspan:Et}},getColspanRealWidth:(xe,Ie,ze)=>{if(Ie<1)return xe[ze].realWidth;const Ue=xe.map(({realWidth:qe,width:Et})=>qe||Et).slice(ze,ze+Ie);return Number(Ue.reduce((qe,Et)=>Number(qe)+Number(Et),-1))}}}function useRender$1($){const z=inject(TABLE_INJECTION_KEY),ie=useNamespace("table"),{handleDoubleClick:le,handleClick:ue,handleContextMenu:pe,handleMouseEnter:_e,handleMouseLeave:Ce,handleCellMouseEnter:$e,handleCellMouseLeave:xe,tooltipContent:Ie,tooltipTrigger:ze}=useEvents($),{getRowStyle:Ue,getRowClass:qe,getCellStyle:Et,getCellClass:Lt,getSpan:hn,getColspanRealWidth:vn}=useStyles$1($),_n=computed(()=>$.store.states.columns.value.findIndex(({type:$n})=>$n==="default")),bn=($n,wn)=>{const Tn=z.props.rowKey;return Tn?getRowIdentity($n,Tn):wn},Sn=($n,wn,Tn,xn=!1)=>{const{tooltipEffect:Pn,tooltipOptions:kn,store:An}=$,{indent:Nn,columns:Fn}=An.states,Ln=qe($n,wn);let In=!0;return Tn&&(Ln.push(ie.em("row",`level-${Tn.level}`)),In=Tn.display),h$3("tr",{style:[In?null:{display:"none"},Ue($n,wn)],class:Ln,key:bn($n,wn),onDblclick:Mn=>le(Mn,$n),onClick:Mn=>ue(Mn,$n),onContextmenu:Mn=>pe(Mn,$n),onMouseenter:()=>_e(wn),onMouseleave:Ce},Fn.value.map((Mn,zn)=>{const{rowspan:qn,colspan:Hn}=hn($n,Mn,wn,zn);if(!qn||!Hn)return null;const Jn={...Mn};Jn.realWidth=vn(Fn.value,Hn,zn);const ur={store:$.store,_self:$.context||z,column:Jn,row:$n,$index:wn,cellIndex:zn,expanded:xn};zn===_n.value&&Tn&&(ur.treeNode={indent:Tn.level*Nn.value,level:Tn.level},typeof Tn.expanded=="boolean"&&(ur.treeNode.expanded=Tn.expanded,"loading"in Tn&&(ur.treeNode.loading=Tn.loading),"noLazyChildren"in Tn&&(ur.treeNode.noLazyChildren=Tn.noLazyChildren)));const yr=`${wn},${zn}`,sr=Jn.columnKey||Jn.rawColumnKey||"",Zn=Cn(zn,Mn,ur),Kn=Mn.showOverflowTooltip&&merge$4({effect:Pn},kn,Mn.showOverflowTooltip);return h$3("td",{style:Et(wn,zn,$n,Mn),class:Lt(wn,zn,$n,Mn,Hn-1),key:`${sr}${yr}`,rowspan:qn,colspan:Hn,onMouseenter:Wn=>$e(Wn,$n,Kn),onMouseleave:xe},[Zn])}))},Cn=($n,wn,Tn)=>wn.renderCell(Tn);return{wrappedRowRender:($n,wn)=>{const Tn=$.store,{isRowExpanded:xn,assertRowKey:Pn}=Tn,{treeData:kn,lazyTreeNodeMap:An,childrenColumnName:Nn,rowKey:Fn}=Tn.states,Ln=Tn.states.columns.value;if(Ln.some(({type:Vn})=>Vn==="expand")){const Vn=xn($n),Mn=Sn($n,wn,void 0,Vn),zn=z.renderExpanded;return Vn?zn?[[Mn,h$3("tr",{key:`expanded-row__${Mn.key}`},[h$3("td",{colspan:Ln.length,class:`${ie.e("cell")} ${ie.e("expanded-cell")}`},[zn({row:$n,$index:wn,store:Tn,expanded:Vn})])])]]:(console.error("[Element Error]renderExpanded is required."),Mn):[[Mn]]}else if(Object.keys(kn.value).length){Pn();const Vn=getRowIdentity($n,Fn.value);let Mn=kn.value[Vn],zn=null;Mn&&(zn={expanded:Mn.expanded,level:Mn.level,display:!0},typeof Mn.lazy=="boolean"&&(typeof Mn.loaded=="boolean"&&Mn.loaded&&(zn.noLazyChildren=!(Mn.children&&Mn.children.length)),zn.loading=Mn.loading));const qn=[Sn($n,wn,zn)];if(Mn){let Hn=0;const Jn=(yr,sr)=>{yr&&yr.length&&sr&&yr.forEach(Zn=>{const Kn={display:sr.display&&sr.expanded,level:sr.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Wn=getRowIdentity(Zn,Fn.value);if(Wn==null)throw new Error("For nested data item, row-key is required.");if(Mn={...kn.value[Wn]},Mn&&(Kn.expanded=Mn.expanded,Mn.level=Mn.level||Kn.level,Mn.display=!!(Mn.expanded&&Kn.display),typeof Mn.lazy=="boolean"&&(typeof Mn.loaded=="boolean"&&Mn.loaded&&(Kn.noLazyChildren=!(Mn.children&&Mn.children.length)),Kn.loading=Mn.loading)),Hn++,qn.push(Sn(Zn,wn+Hn,Kn)),Mn){const nr=An.value[Wn]||Zn[Nn.value];Jn(nr,Mn)}})};Mn.display=!0;const ur=An.value[Vn]||$n[Nn.value];Jn(ur,Mn)}return qn}else return Sn($n,wn,void 0)},tooltipContent:Ie,tooltipTrigger:ze}}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(),ie=inject(TABLE_INJECTION_KEY),le=useNamespace("table"),{wrappedRowRender:ue,tooltipContent:pe,tooltipTrigger:_e}=useRender$1($),{onColumnsChange:Ce,onScrollableChange:$e}=useLayoutObserver(ie);return watch($.store.states.hoverRow,(xe,Ie)=>{if(!$.store.states.isComplex.value||!isClient$2)return;let ze=window.requestAnimationFrame;ze||(ze=Ue=>window.setTimeout(Ue,16)),ze(()=>{const Ue=z==null?void 0:z.vnode.el,qe=Array.from((Ue==null?void 0:Ue.children)||[]).filter(hn=>hn==null?void 0:hn.classList.contains(`${le.e("row")}`)),Et=qe[Ie],Lt=qe[xe];Et&&removeClass(Et,"hover-row"),Lt&&addClass(Lt,"hover-row")})}),onUnmounted(()=>{var xe;(xe=removePopper)==null||xe()}),{ns:le,onColumnsChange:Ce,onScrollableChange:$e,wrappedRowRender:ue,tooltipContent:pe,tooltipTrigger:_e}},render(){const{wrappedRowRender:$,store:z}=this,ie=z.states.data.value||[];return h$3("tbody",{},[ie.reduce((le,ue)=>le.concat($(ue,le.length)),[])])}});function hColgroup($){const z=$.tableLayout==="auto";let ie=$.columns||[];z&&ie.every(ue=>ue.width===void 0)&&(ie=[]);const le=ue=>{const pe={key:`${$.tableLayout}_${ue.id}`,style:{},name:void 0};return z?pe.style={width:`${ue.width}px`}:pe.name=ue.id,pe};return h$3("colgroup",{},ie.map(ue=>h$3("col",le(ue))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const $=inject(TABLE_INJECTION_KEY),z=$==null?void 0:$.store,ie=computed(()=>z.states.fixedLeafColumnsLength.value),le=computed(()=>z.states.rightFixedColumns.value.length),ue=computed(()=>z.states.columns.value.length),pe=computed(()=>z.states.fixedColumns.value.length),_e=computed(()=>z.states.rightFixedColumns.value.length);return{leftFixedLeafCount:ie,rightFixedLeafCount:le,columnsCount:ue,leftFixedCount:pe,rightFixedCount:_e,columns:z.states.columns}}function useStyle$1($){const{columns:z}=useMapState(),ie=useNamespace("table");return{getCellClasses:(pe,_e)=>{const Ce=pe[_e],$e=[ie.e("cell"),Ce.id,Ce.align,Ce.labelClassName,...getFixedColumnsClass(ie.b(),_e,Ce.fixed,$.store)];return Ce.className&&$e.push(Ce.className),Ce.children||$e.push(ie.is("leaf")),$e},getCellStyles:(pe,_e)=>{const Ce=getFixedColumnOffset(_e,pe.fixed,$.store);return ensurePosition(Ce,"left"),ensurePosition(Ce,"right"),Ce},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:ie,columns:le}=useStyle$1($);return{ns:useNamespace("table"),getCellClasses:z,getCellStyles:ie,columns:le}},render(){const{columns:$,getCellStyles:z,getCellClasses:ie,summaryMethod:le,sumText:ue,ns:pe}=this,_e=this.store.states.data.value;let Ce=[];return le?Ce=le({columns:$,data:_e}):$.forEach(($e,xe)=>{if(xe===0){Ce[xe]=ue;return}const Ie=_e.map(Et=>Number(Et[$e.property])),ze=[];let Ue=!0;Ie.forEach(Et=>{if(!Number.isNaN(+Et)){Ue=!1;const Lt=`${Et}`.split(".")[1];ze.push(Lt?Lt.length:0)}});const qe=Math.max.apply(null,ze);Ue?Ce[xe]="":Ce[xe]=Ie.reduce((Et,Lt)=>{const hn=Number(Lt);return Number.isNaN(+hn)?Et:Number.parseFloat((Et+Lt).toFixed(Math.min(qe,20)))},0)}),h$3("table",{class:pe.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:$}),h$3("tbody",[h$3("tr",{},[...$.map(($e,xe)=>h$3("td",{key:xe,colspan:$e.colSpan,rowspan:$e.rowSpan,class:ie($,xe),style:z($e,xe)},[h$3("div",{class:["cell",$e.labelClassName]},[Ce[xe]])]))])])])}});function useUtils($){return{setCurrentRow:Ie=>{$.commit("setCurrentRow",Ie)},getSelectionRows:()=>$.getSelectionRows(),toggleRowSelection:(Ie,ze)=>{$.toggleRowSelection(Ie,ze,!1),$.updateAllSelected()},clearSelection:()=>{$.clearSelection()},clearFilter:Ie=>{$.clearFilter(Ie)},toggleAllSelection:()=>{$.commit("toggleAllSelection")},toggleRowExpansion:(Ie,ze)=>{$.toggleRowExpansionAdapter(Ie,ze)},clearSort:()=>{$.clearSort()},sort:(Ie,ze)=>{$.commit("sort",{prop:Ie,order:ze})}}}function useStyle($,z,ie,le){const ue=ref(!1),pe=ref(null),_e=ref(!1),Ce=Vn=>{_e.value=Vn},$e=ref({width:null,height:null,headerHeight:null}),xe=ref(!1),Ie={display:"inline-block",verticalAlign:"middle"},ze=ref(),Ue=ref(0),qe=ref(0),Et=ref(0),Lt=ref(0);watchEffect(()=>{z.setHeight($.height)}),watchEffect(()=>{z.setMaxHeight($.maxHeight)}),watch(()=>[$.currentRowKey,ie.states.rowKey],([Vn,Mn])=>{!unref(Mn)||!unref(Vn)||ie.setCurrentRowKey(`${Vn}`)},{immediate:!0}),watch(()=>$.data,Vn=>{le.store.commit("setData",Vn)},{immediate:!0,deep:!0}),watchEffect(()=>{$.expandRowKeys&&ie.setExpandRowKeysAdapter($.expandRowKeys)});const hn=()=>{le.store.commit("setHoverRow",null),le.hoverState&&(le.hoverState=null)},vn=(Vn,Mn)=>{const{pixelX:zn,pixelY:qn}=Mn;Math.abs(zn)>=Math.abs(qn)&&(le.refs.bodyWrapper.scrollLeft+=Mn.pixelX/5)},_n=computed(()=>$.height||$.maxHeight||ie.states.fixedColumns.value.length>0||ie.states.rightFixedColumns.value.length>0),bn=computed(()=>({width:z.bodyWidth.value?`${z.bodyWidth.value}px`:""})),Sn=()=>{_n.value&&z.updateElsHeight(),z.updateColumnsWidth(),requestAnimationFrame(wn)};onMounted(async()=>{await nextTick(),ie.updateColumns(),Tn(),requestAnimationFrame(Sn);const Vn=le.vnode.el,Mn=le.refs.headerWrapper;$.flexible&&Vn&&Vn.parentElement&&(Vn.parentElement.style.minWidth="0"),$e.value={width:ze.value=Vn.offsetWidth,height:Vn.offsetHeight,headerHeight:$.showHeader&&Mn?Mn.offsetHeight:null},ie.states.columns.value.forEach(zn=>{zn.filteredValue&&zn.filteredValue.length&&le.store.commit("filterChange",{column:zn,values:zn.filteredValue,silent:!0})}),le.$ready=!0});const Cn=(Vn,Mn)=>{if(!Vn)return;const zn=Array.from(Vn.classList).filter(qn=>!qn.startsWith("is-scrolling-"));zn.push(z.scrollX.value?Mn:"is-scrolling-none"),Vn.className=zn.join(" ")},En=Vn=>{const{tableWrapper:Mn}=le.refs;Cn(Mn,Vn)},$n=Vn=>{const{tableWrapper:Mn}=le.refs;return!!(Mn&&Mn.classList.contains(Vn))},wn=function(){if(!le.refs.scrollBarRef)return;if(!z.scrollX.value){const yr="is-scrolling-none";$n(yr)||En(yr);return}const Vn=le.refs.scrollBarRef.wrapRef;if(!Vn)return;const{scrollLeft:Mn,offsetWidth:zn,scrollWidth:qn}=Vn,{headerWrapper:Hn,footerWrapper:Jn}=le.refs;Hn&&(Hn.scrollLeft=Mn),Jn&&(Jn.scrollLeft=Mn);const ur=qn-zn-1;Mn>=ur?En("is-scrolling-right"):En(Mn===0?"is-scrolling-left":"is-scrolling-middle")},Tn=()=>{le.refs.scrollBarRef&&(le.refs.scrollBarRef.wrapRef&&useEventListener$1(le.refs.scrollBarRef.wrapRef,"scroll",wn,{passive:!0}),$.fit?useResizeObserver(le.vnode.el,xn):useEventListener$1(window,"resize",xn),useResizeObserver(le.refs.bodyWrapper,()=>{var Vn,Mn;xn(),(Mn=(Vn=le.refs)==null?void 0:Vn.scrollBarRef)==null||Mn.update()}))},xn=()=>{var Vn,Mn,zn;const qn=le.vnode.el;if(!le.$ready||!qn)return;let Hn=!1;const{width:Jn,height:ur,headerHeight:yr}=$e.value,sr=ze.value=qn.offsetWidth;Jn!==sr&&(Hn=!0);const Zn=qn.offsetHeight;($.height||_n.value)&&ur!==Zn&&(Hn=!0);const Kn=$.tableLayout==="fixed"?le.refs.headerWrapper:(Vn=le.refs.tableHeaderRef)==null?void 0:Vn.$el;$.showHeader&&(Kn==null?void 0:Kn.offsetHeight)!==yr&&(Hn=!0),Ue.value=((Mn=le.refs.tableWrapper)==null?void 0:Mn.scrollHeight)||0,Et.value=(Kn==null?void 0:Kn.scrollHeight)||0,Lt.value=((zn=le.refs.footerWrapper)==null?void 0:zn.offsetHeight)||0,qe.value=Ue.value-Et.value-Lt.value,Hn&&($e.value={width:sr,height:Zn,headerHeight:$.showHeader&&(Kn==null?void 0:Kn.offsetHeight)||0},Sn())},Pn=useFormSize(),kn=computed(()=>{const{bodyWidth:Vn,scrollY:Mn,gutterWidth:zn}=z;return Vn.value?`${Vn.value-(Mn.value?zn:0)}px`:""}),An=computed(()=>$.maxHeight?"fixed":$.tableLayout),Nn=computed(()=>{if($.data&&$.data.length)return null;let Vn="100%";$.height&&qe.value&&(Vn=`${qe.value}px`);const Mn=ze.value;return{width:Mn?`${Mn}px`:"",height:Vn}}),Fn=computed(()=>$.height?{height:Number.isNaN(Number($.height))?$.height:`${$.height}px`}:$.maxHeight?{maxHeight:Number.isNaN(Number($.maxHeight))?$.maxHeight:`${$.maxHeight}px`}:{}),Ln=computed(()=>{if($.height)return{height:"100%"};if($.maxHeight){if(Number.isNaN(Number($.maxHeight)))return{maxHeight:`calc(${$.maxHeight} - ${Et.value+Lt.value}px)`};{const Vn=$.maxHeight;if(Ue.value>=Number(Vn))return{maxHeight:`${Ue.value-Et.value-Lt.value}px`}}}return{}});return{isHidden:ue,renderExpanded:pe,setDragVisible:Ce,isGroup:xe,handleMouseLeave:hn,handleHeaderFooterMousewheel:vn,tableSize:Pn,emptyBlockStyle:Nn,handleFixedMousewheel:(Vn,Mn)=>{const zn=le.refs.bodyWrapper;if(Math.abs(Mn.spinY)>0){const qn=zn.scrollTop;Mn.pixelY<0&&qn!==0&&Vn.preventDefault(),Mn.pixelY>0&&zn.scrollHeight-zn.clientHeight>qn&&Vn.preventDefault(),zn.scrollTop+=Math.ceil(Mn.pixelY/5)}else zn.scrollLeft+=Math.ceil(Mn.pixelX/5)},resizeProxyVisible:_e,bodyWidth:kn,resizeState:$e,doLayout:Sn,tableBodyStyles:bn,tableLayout:An,scrollbarViewStyle:Ie,tableInnerStyle:Fn,scrollbarStyle:Ln}}function useKeyRender($){const z=ref(),ie=()=>{const ue=$.vnode.el.querySelector(".hidden-columns"),pe={childList:!0,subtree:!0},_e=$.store.states.updateOrderFns;z.value=new MutationObserver(()=>{_e.forEach(Ce=>Ce())}),z.value.observe(ue,pe)};onMounted(()=>{ie()}),onUnmounted(()=>{var le;(le=z.value)==null||le.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=(pe,_e)=>{const Ce=$.value;Ce&&Ce.scrollTo(pe,_e)},ie=(pe,_e)=>{const Ce=$.value;Ce&&isNumber$5(_e)&&["Top","Left"].includes(pe)&&Ce[`setScroll${pe}`](_e)};return{scrollBarRef:$,scrollTo:z,setScrollTop:pe=>ie("Top",pe),setScrollLeft:pe=>ie("Left",pe)}};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(),ie=useNamespace("table"),le=getCurrentInstance();provide(TABLE_INJECTION_KEY,le);const ue=createStore(le,$);le.store=ue;const pe=new TableLayout({store:le.store,table:le,fit:$.fit,showHeader:$.showHeader});le.layout=pe;const _e=computed(()=>(ue.states.data.value||[]).length===0),{setCurrentRow:Ce,getSelectionRows:$e,toggleRowSelection:xe,clearSelection:Ie,clearFilter:ze,toggleAllSelection:Ue,toggleRowExpansion:qe,clearSort:Et,sort:Lt}=useUtils(ue),{isHidden:hn,renderExpanded:vn,setDragVisible:_n,isGroup:bn,handleMouseLeave:Sn,handleHeaderFooterMousewheel:Cn,tableSize:En,emptyBlockStyle:$n,handleFixedMousewheel:wn,resizeProxyVisible:Tn,bodyWidth:xn,resizeState:Pn,doLayout:kn,tableBodyStyles:An,tableLayout:Nn,scrollbarViewStyle:Fn,tableInnerStyle:Ln,scrollbarStyle:In}=useStyle($,pe,ue,le),{scrollBarRef:Vn,scrollTo:Mn,setScrollLeft:zn,setScrollTop:qn}=useScrollbar$1(),Hn=debounce(kn,50),Jn=`${ie.namespace.value}-table_${tableIdSeed++}`;le.tableId=Jn,le.state={isGroup:bn,resizeState:Pn,doLayout:kn,debouncedUpdateLayout:Hn};const ur=computed(()=>$.sumText||z("el.table.sumText")),yr=computed(()=>$.emptyText||z("el.table.emptyText"));return useKeyRender(le),{ns:ie,layout:pe,store:ue,handleHeaderFooterMousewheel:Cn,handleMouseLeave:Sn,tableId:Jn,tableSize:En,isHidden:hn,isEmpty:_e,renderExpanded:vn,resizeProxyVisible:Tn,resizeState:Pn,isGroup:bn,bodyWidth:xn,tableBodyStyles:An,emptyBlockStyle:$n,debouncedUpdateLayout:Hn,handleFixedMousewheel:wn,setCurrentRow:Ce,getSelectionRows:$e,toggleRowSelection:xe,clearSelection:Ie,clearFilter:ze,toggleAllSelection:Ue,toggleRowExpansion:qe,clearSort:Et,doLayout:kn,sort:Lt,t:z,setDragVisible:_n,context:le,computedSumText:ur,computedEmptyText:yr,tableLayout:Nn,scrollbarViewStyle:Fn,tableInnerStyle:Ln,scrollbarStyle:In,scrollBarRef:Vn,scrollTo:Mn,setScrollLeft:zn,setScrollTop:qn}}}),_hoisted_1$d=["data-prefix"],_hoisted_2$9={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$4($,z,ie,le,ue,pe){const _e=resolveComponent("hColgroup"),Ce=resolveComponent("table-header"),$e=resolveComponent("table-body"),xe=resolveComponent("el-scrollbar"),Ie=resolveComponent("table-footer"),ze=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]=(...Ue)=>$.handleMouseLeave&&$.handleMouseLeave(...Ue))},[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(_e,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),createVNode(Ce,{ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[ze,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass($.ns.e("body-wrapper"))},[createVNode(xe,{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(_e,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),$.showHeader&&$.tableLayout==="auto"?(openBlock(),createBlock(Ce,{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($e,{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(Ie,{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],[ze,$.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:ie,$index:le}){return h$3(ElCheckbox,{disabled:z.selectable?!z.selectable.call(null,$,le):!1,size:ie.states.tableSize.value,onChange:()=>{ie.commit("rowSelectedChanged",$)},onClick:ue=>ue.stopPropagation(),modelValue:ie.isSelected($)})},sortable:!1,resizable:!1},index:{renderHeader({column:$}){return $.label||"#"},renderCell({column:$,$index:z}){let ie=z+1;const le=$.index;return typeof le=="number"?ie=z+le:typeof le=="function"&&(ie=le(z)),h$3("div",{},[ie])},sortable:!1},expand:{renderHeader({column:$}){return $.label||""},renderCell({row:$,store:z,expanded:ie}){const{ns:le}=z,ue=[le.e("expand-icon")];return ie&&ue.push(le.em("expand-icon","expanded")),h$3("div",{class:ue,onClick:function(_e){_e.stopPropagation(),z.toggleRowExpansion($)}},{default:()=>[h$3(ElIcon,null,{default:()=>[h$3(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:$,column:z,$index:ie}){var le;const ue=z.property,pe=ue&&getProp($,ue).value;return z&&z.formatter?z.formatter($,z,pe,ie):((le=pe==null?void 0:pe.toString)==null?void 0:le.call(pe))||""}function treeCellPrefix({row:$,treeNode:z,store:ie},le=!1){const{ns:ue}=ie;if(!z)return le?[h$3("span",{class:ue.e("placeholder")})]:null;const pe=[],_e=function(Ce){Ce.stopPropagation(),!z.loading&&ie.loadOrToggle($)};if(z.indent&&pe.push(h$3("span",{class:ue.e("indent"),style:{"padding-left":`${z.indent}px`}})),typeof z.expanded=="boolean"&&!z.noLazyChildren){const Ce=[ue.e("expand-icon"),z.expanded?ue.em("expand-icon","expanded"):""];let $e=arrow_right_default;z.loading&&($e=loading_default),pe.push(h$3("div",{class:Ce,onClick:_e},{default:()=>[h$3(ElIcon,{class:{[ue.is("loading")]:z.loading}},{default:()=>[h$3($e)]})]}))}else pe.push(h$3("span",{class:ue.e("placeholder")}));return pe}function getAllAliases($,z){return $.reduce((ie,le)=>(ie[le]=le,ie),z)}function useWatcher($,z){const ie=getCurrentInstance();return{registerComplexWatchers:()=>{const pe=["fixed"],_e={realWidth:"width",realMinWidth:"minWidth"},Ce=getAllAliases(pe,_e);Object.keys(Ce).forEach($e=>{const xe=_e[$e];hasOwn$4(z,xe)&&watch(()=>z[xe],Ie=>{let ze=Ie;xe==="width"&&$e==="realWidth"&&(ze=parseWidth(Ie)),xe==="minWidth"&&$e==="realMinWidth"&&(ze=parseMinWidth(Ie)),ie.columnConfig.value[xe]=ze,ie.columnConfig.value[$e]=ze;const Ue=xe==="fixed";$.value.store.scheduleLayout(Ue)})})},registerNormalWatchers:()=>{const pe=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],_e={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},Ce=getAllAliases(pe,_e);Object.keys(Ce).forEach($e=>{const xe=_e[$e];hasOwn$4(z,xe)&&watch(()=>z[xe],Ie=>{ie.columnConfig.value[$e]=Ie})})}}}function useRender($,z,ie){const le=getCurrentInstance(),ue=ref(""),pe=ref(!1),_e=ref(),Ce=ref(),$e=useNamespace("table");watchEffect(()=>{_e.value=$.align?`is-${$.align}`:null,_e.value}),watchEffect(()=>{Ce.value=$.headerAlign?`is-${$.headerAlign}`:_e.value,Ce.value});const xe=computed(()=>{let Sn=le.vnode.vParent||le.parent;for(;Sn&&!Sn.tableId&&!Sn.columnId;)Sn=Sn.vnode.vParent||Sn.parent;return Sn}),Ie=computed(()=>{const{store:Sn}=le.parent;if(!Sn)return!1;const{treeData:Cn}=Sn.states,En=Cn.value;return En&&Object.keys(En).length>0}),ze=ref(parseWidth($.width)),Ue=ref(parseMinWidth($.minWidth)),qe=Sn=>(ze.value&&(Sn.width=ze.value),Ue.value&&(Sn.minWidth=Ue.value),!ze.value&&Ue.value&&(Sn.width=void 0),Sn.minWidth||(Sn.minWidth=80),Sn.realWidth=Number(Sn.width===void 0?Sn.minWidth:Sn.width),Sn),Et=Sn=>{const Cn=Sn.type,En=cellForced[Cn]||{};Object.keys(En).forEach(wn=>{const Tn=En[wn];wn!=="className"&&Tn!==void 0&&(Sn[wn]=Tn)});const $n=getDefaultClassName(Cn);if($n){const wn=`${unref($e.namespace)}-${$n}`;Sn.className=Sn.className?`${Sn.className} ${wn}`:wn}return Sn},Lt=Sn=>{Array.isArray(Sn)?Sn.forEach(En=>Cn(En)):Cn(Sn);function Cn(En){var $n;(($n=En==null?void 0:En.type)==null?void 0:$n.name)==="ElTableColumn"&&(En.vParent=le)}};return{columnId:ue,realAlign:_e,isSubColumn:pe,realHeaderAlign:Ce,columnOrTableParent:xe,setColumnWidth:qe,setColumnForcedProps:Et,setColumnRenders:Sn=>{$.renderHeader||Sn.type!=="selection"&&(Sn.renderHeader=En=>{le.columnConfig.value.label;const $n=z.header;return $n?$n(En):Sn.label});let Cn=Sn.renderCell;return Sn.type==="expand"?(Sn.renderCell=En=>h$3("div",{class:"cell"},[Cn(En)]),ie.value.renderExpanded=En=>z.default?z.default(En):z.default):(Cn=Cn||defaultRenderCell,Sn.renderCell=En=>{let $n=null;if(z.default){const An=z.default(En);$n=An.some(Nn=>Nn.type!==Comment)?An:Cn(En)}else $n=Cn(En);const{columns:wn}=ie.value.store.states,Tn=wn.value.findIndex(An=>An.type==="default"),xn=Ie.value&&En.cellIndex===Tn,Pn=treeCellPrefix(En,xn),kn={class:"cell",style:{}};return Sn.showOverflowTooltip&&(kn.class=`${kn.class} ${unref($e.namespace)}-tooltip`,kn.style={width:`${(En.column.realWidth||Number(En.column.width))-1}px`}),Lt($n),h$3("div",kn,[Pn,$n])}),Sn},getPropsData:(...Sn)=>Sn.reduce((Cn,En)=>(Array.isArray(En)&&En.forEach($n=>{Cn[$n]=$[$n]}),Cn),{}),getColumnElIndex:(Sn,Cn)=>Array.prototype.indexOf.call(Sn,Cn),updateColumnOrder:()=>{ie.value.store.commit("updateColumnOrder",le.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 ie=getCurrentInstance(),le=ref({}),ue=computed(()=>{let bn=ie.parent;for(;bn&&!bn.tableId;)bn=bn.parent;return bn}),{registerNormalWatchers:pe,registerComplexWatchers:_e}=useWatcher(ue,$),{columnId:Ce,isSubColumn:$e,realHeaderAlign:xe,columnOrTableParent:Ie,setColumnWidth:ze,setColumnForcedProps:Ue,setColumnRenders:qe,getPropsData:Et,getColumnElIndex:Lt,realAlign:hn,updateColumnOrder:vn}=useRender($,z,ue),_n=Ie.value;Ce.value=`${_n.tableId||_n.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{$e.value=ue.value!==_n;const bn=$.type||"default",Sn=$.sortable===""?!0:$.sortable,Cn={...cellStarts[bn],id:Ce.value,type:bn,property:$.prop||$.property,align:hn,headerAlign:xe,showOverflowTooltip:$.showOverflowTooltip,filterable:$.filters||$.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:Sn,index:$.index,rawColumnKey:ie.vnode.key};let xn=Et(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);xn=mergeOptions$1(Cn,xn),xn=compose(qe,ze,Ue)(xn),le.value=xn,pe(),_e()}),onMounted(()=>{var bn;const Sn=Ie.value,Cn=$e.value?Sn.vnode.el.children:(bn=Sn.refs.hiddenColumns)==null?void 0:bn.children,En=()=>Lt(Cn||[],ie.vnode.el);le.value.getColumnIndex=En,En()>-1&&ue.value.store.commit("insertColumn",le.value,$e.value?Sn.columnConfig.value:null,vn)}),onBeforeUnmount(()=>{ue.value.store.commit("removeColumn",le.value,$e.value?_n.columnConfig.value:null,vn)}),ie.columnId=Ce.value,ie.columnConfig=le},render(){var $,z,ie;try{const le=(z=($=this.$slots).default)==null?void 0:z.call($,{row:{},column:{},$index:-1}),ue=[];if(Array.isArray(le))for(const _e of le)((ie=_e.type)==null?void 0:ie.name)==="ElTableColumn"||_e.shapeFlag&2?ue.push(_e):_e.type===Fragment&&Array.isArray(_e.children)&&_e.children.forEach(Ce=>{(Ce==null?void 0:Ce.patchFlag)!==1024&&!isString$7(Ce==null?void 0:Ce.children)&&ue.push(Ce)});return h$3("div",ue)}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,ie)=>{var le;const ue={flexGrow:0,flexShrink:0,...ie?{}:{flexGrow:$.flexGrow||0,flexShrink:$.flexShrink||1}};ie||(ue.flexShrink=1);const pe={...(le=$.style)!=null?le:{},...ue,flexBasis:"auto",width:$.width};return z||($.maxWidth&&(pe.maxWidth=$.maxWidth),$.minWidth&&(pe.minWidth=$.minWidth)),pe};function useColumns($,z,ie){const le=computed(()=>unref(z).filter(Lt=>!Lt.hidden)),ue=computed(()=>unref(le).filter(Lt=>Lt.fixed==="left"||Lt.fixed===!0)),pe=computed(()=>unref(le).filter(Lt=>Lt.fixed==="right")),_e=computed(()=>unref(le).filter(Lt=>!Lt.fixed)),Ce=computed(()=>{const Lt=[];return unref(ue).forEach(hn=>{Lt.push({...hn,placeholderSign})}),unref(_e).forEach(hn=>{Lt.push(hn)}),unref(pe).forEach(hn=>{Lt.push({...hn,placeholderSign})}),Lt}),$e=computed(()=>unref(ue).length||unref(pe).length),xe=computed(()=>unref(z).reduce((hn,vn)=>(hn[vn.key]=calcColumnStyle(vn,unref(ie),$.fixed),hn),{})),Ie=computed(()=>unref(le).reduce((Lt,hn)=>Lt+hn.width,0)),ze=Lt=>unref(z).find(hn=>hn.key===Lt),Ue=Lt=>unref(xe)[Lt],qe=(Lt,hn)=>{Lt.width=hn};function Et(Lt){var hn;const{key:vn}=Lt.currentTarget.dataset;if(!vn)return;const{sortState:_n,sortBy:bn}=$;let Sn=SortOrder.ASC;isObject$8(_n)?Sn=oppositeOrderMap[_n[vn]]:Sn=oppositeOrderMap[bn.order],(hn=$.onColumnSort)==null||hn.call($,{column:ze(vn),key:vn,order:Sn})}return{columns:z,columnsStyles:xe,columnsTotalWidth:Ie,fixedColumnsOnLeft:ue,fixedColumnsOnRight:pe,hasFixedColumns:$e,mainColumns:Ce,normalColumns:_e,visibleColumns:le,getColumn:ze,getColumnStyle:Ue,updateColumnWidth:qe,onColumnSorted:Et}}const useScrollbar=($,{mainTableRef:z,leftTableRef:ie,rightTableRef:le,onMaybeEndReached:ue})=>{const pe=ref({scrollLeft:0,scrollTop:0});function _e(qe){var Et,Lt,hn;const{scrollTop:vn}=qe;(Et=z.value)==null||Et.scrollTo(qe),(Lt=ie.value)==null||Lt.scrollToTop(vn),(hn=le.value)==null||hn.scrollToTop(vn)}function Ce(qe){pe.value=qe,_e(qe)}function $e(qe){pe.value.scrollTop=qe,_e(unref(pe))}function xe(qe){var Et,Lt;pe.value.scrollLeft=qe,(Lt=(Et=z.value)==null?void 0:Et.scrollTo)==null||Lt.call(Et,unref(pe))}function Ie(qe){var Et;Ce(qe),(Et=$.onScroll)==null||Et.call($,qe)}function ze({scrollTop:qe}){const{scrollTop:Et}=unref(pe);qe!==Et&&$e(qe)}function Ue(qe,Et="auto"){var Lt;(Lt=z.value)==null||Lt.scrollToRow(qe,Et)}return watch(()=>unref(pe).scrollTop,(qe,Et)=>{qe>Et&&ue()}),{scrollPos:pe,scrollTo:Ce,scrollToLeft:xe,scrollToTop:$e,scrollToRow:Ue,onScroll:Ie,onVerticalScroll:ze}},useRow=($,{mainTableRef:z,leftTableRef:ie,rightTableRef:le})=>{const ue=getCurrentInstance(),{emit:pe}=ue,_e=shallowRef(!1),Ce=shallowRef(null),$e=ref($.defaultExpandedRowKeys||[]),xe=ref(-1),Ie=shallowRef(null),ze=ref({}),Ue=ref({}),qe=shallowRef({}),Et=shallowRef({}),Lt=shallowRef({}),hn=computed(()=>isNumber$5($.estimatedRowHeight));function vn(wn){var Tn;(Tn=$.onRowsRendered)==null||Tn.call($,wn),wn.rowCacheEnd>unref(xe)&&(xe.value=wn.rowCacheEnd)}function _n({hovered:wn,rowKey:Tn}){Ce.value=wn?Tn:null}function bn({expanded:wn,rowData:Tn,rowIndex:xn,rowKey:Pn}){var kn,An;const Nn=[...unref($e)],Fn=Nn.indexOf(Pn);wn?Fn===-1&&Nn.push(Pn):Fn>-1&&Nn.splice(Fn,1),$e.value=Nn,pe("update:expandedRowKeys",Nn),(kn=$.onRowExpand)==null||kn.call($,{expanded:wn,rowData:Tn,rowIndex:xn,rowKey:Pn}),(An=$.onExpandedRowsChange)==null||An.call($,Nn)}const Sn=debounce(()=>{var wn,Tn,xn,Pn;_e.value=!0,ze.value={...unref(ze),...unref(Ue)},Cn(unref(Ie),!1),Ue.value={},Ie.value=null,(wn=z.value)==null||wn.forceUpdate(),(Tn=ie.value)==null||Tn.forceUpdate(),(xn=le.value)==null||xn.forceUpdate(),(Pn=ue.proxy)==null||Pn.$forceUpdate(),_e.value=!1},0);function Cn(wn,Tn=!1){unref(hn)&&[z,ie,le].forEach(xn=>{const Pn=unref(xn);Pn&&Pn.resetAfterRowIndex(wn,Tn)})}function En(wn,Tn,xn){const Pn=unref(Ie);(Pn===null||Pn>xn)&&(Ie.value=xn),Ue.value[wn]=Tn}function $n({rowKey:wn,height:Tn,rowIndex:xn},Pn){Pn?Pn===FixedDir.RIGHT?Lt.value[wn]=Tn:qe.value[wn]=Tn:Et.value[wn]=Tn;const kn=Math.max(...[qe,Lt,Et].map(An=>An.value[wn]||0));unref(ze)[wn]!==kn&&(En(wn,kn,xn),Sn())}return{hoveringRowKey:Ce,expandedRowKeys:$e,lastRenderedRowIndex:xe,isDynamic:hn,isResetting:_e,rowHeights:ze,resetAfterIndex:Cn,onRowExpanded:bn,onRowHovered:_n,onRowsRendered:vn,onRowHeightChange:$n}},useData=($,{expandedRowKeys:z,lastRenderedRowIndex:ie,resetAfterIndex:le})=>{const ue=ref({}),pe=computed(()=>{const Ce={},{data:$e,rowKey:xe}=$,Ie=unref(z);if(!Ie||!Ie.length)return $e;const ze=[],Ue=new Set;Ie.forEach(Et=>Ue.add(Et));let qe=$e.slice();for(qe.forEach(Et=>Ce[Et[xe]]=0);qe.length>0;){const Et=qe.shift();ze.push(Et),Ue.has(Et[xe])&&Array.isArray(Et.children)&&Et.children.length>0&&(qe=[...Et.children,...qe],Et.children.forEach(Lt=>Ce[Lt[xe]]=Ce[Et[xe]]+1))}return ue.value=Ce,ze}),_e=computed(()=>{const{data:Ce,expandColumnKey:$e}=$;return $e?unref(pe):Ce});return watch(_e,(Ce,$e)=>{Ce!==$e&&(ie.value=-1,le(0,!0))}),{data:_e,depthMap:ue}},sumReducer=($,z)=>$+z,sum=$=>isArray$c($)?$.reduce(sumReducer,0):$,tryCall=($,z,ie={})=>isFunction$5($)?$(z):$??ie,enforceUnit=$=>(["width","maxWidth","minWidth","height"].forEach(z=>{$[z]=addUnit($[z])}),$),componentToSlot=$=>isVNode$1($)?z=>h$3($,z):$,useStyles=($,{columnsTotalWidth:z,data:ie,fixedColumnsOnLeft:le,fixedColumnsOnRight:ue})=>{const pe=computed(()=>{const{fixed:bn,width:Sn,vScrollbarSize:Cn}=$,En=Sn-Cn;return bn?Math.max(Math.round(unref(z)),En):En}),_e=computed(()=>unref(pe)+($.fixed?$.vScrollbarSize:0)),Ce=computed(()=>{const{height:bn=0,maxHeight:Sn=0,footerHeight:Cn,hScrollbarSize:En}=$;if(Sn>0){const $n=unref(Et),wn=unref($e),xn=unref(qe)+$n+wn+En;return Math.min(xn,Sn-Cn)}return bn-Cn}),$e=computed(()=>{const{rowHeight:bn,estimatedRowHeight:Sn}=$,Cn=unref(ie);return isNumber$5(Sn)?Cn.length*Sn:Cn.length*bn}),xe=computed(()=>{const{maxHeight:bn}=$,Sn=unref(Ce);if(isNumber$5(bn)&&bn>0)return Sn;const Cn=unref($e)+unref(qe)+unref(Et);return Math.min(Sn,Cn)}),Ie=bn=>bn.width,ze=computed(()=>sum(unref(le).map(Ie))),Ue=computed(()=>sum(unref(ue).map(Ie))),qe=computed(()=>sum($.headerHeight)),Et=computed(()=>{var bn;return(((bn=$.fixedData)==null?void 0:bn.length)||0)*$.rowHeight}),Lt=computed(()=>unref(Ce)-unref(qe)-unref(Et)),hn=computed(()=>{const{style:bn={},height:Sn,width:Cn}=$;return enforceUnit({...bn,height:Sn,width:Cn})}),vn=computed(()=>enforceUnit({height:$.footerHeight})),_n=computed(()=>({top:addUnit(unref(qe)),bottom:addUnit($.footerHeight),width:addUnit($.width)}));return{bodyWidth:pe,fixedTableHeight:xe,mainTableHeight:Ce,leftTableWidth:ze,rightTableWidth:Ue,headerWidth:_e,rowsHeight:$e,windowHeight:Lt,footerHeight:vn,emptyStyle:_n,rootStyle:hn,headerHeight:qe}},useAutoResize=$=>{const z=ref(),ie=ref(0),le=ref(0);let ue;return onMounted(()=>{ue=useResizeObserver(z,([pe])=>{const{width:_e,height:Ce}=pe.contentRect,{paddingLeft:$e,paddingRight:xe,paddingTop:Ie,paddingBottom:ze}=getComputedStyle(pe.target),Ue=Number.parseInt($e)||0,qe=Number.parseInt(xe)||0,Et=Number.parseInt(Ie)||0,Lt=Number.parseInt(ze)||0;ie.value=_e-Ue-qe,le.value=Ce-Et-Lt}).stop}),onBeforeUnmount(()=>{ue==null||ue()}),watch([ie,le],([pe,_e])=>{var Ce;(Ce=$.onResize)==null||Ce.call($,{width:pe,height:_e})}),{sizer:z,width:ie,height:le}};function useTable($){const z=ref(),ie=ref(),le=ref(),{columns:ue,columnsStyles:pe,columnsTotalWidth:_e,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e,hasFixedColumns:xe,mainColumns:Ie,onColumnSorted:ze}=useColumns($,toRef$1($,"columns"),toRef$1($,"fixed")),{scrollTo:Ue,scrollToLeft:qe,scrollToTop:Et,scrollToRow:Lt,onScroll:hn,onVerticalScroll:vn,scrollPos:_n}=useScrollbar($,{mainTableRef:z,leftTableRef:ie,rightTableRef:le,onMaybeEndReached:Gn}),{expandedRowKeys:bn,hoveringRowKey:Sn,lastRenderedRowIndex:Cn,isDynamic:En,isResetting:$n,rowHeights:wn,resetAfterIndex:Tn,onRowExpanded:xn,onRowHeightChange:Pn,onRowHovered:kn,onRowsRendered:An}=useRow($,{mainTableRef:z,leftTableRef:ie,rightTableRef:le}),{data:Nn,depthMap:Fn}=useData($,{expandedRowKeys:bn,lastRenderedRowIndex:Cn,resetAfterIndex:Tn}),{bodyWidth:Ln,fixedTableHeight:In,mainTableHeight:Vn,leftTableWidth:Mn,rightTableWidth:zn,headerWidth:qn,rowsHeight:Hn,windowHeight:Jn,footerHeight:ur,emptyStyle:yr,rootStyle:sr,headerHeight:Zn}=useStyles($,{columnsTotalWidth:_e,data:Nn,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e}),Kn=shallowRef(!1),Wn=ref(),nr=computed(()=>{const Xn=unref(Nn).length===0;return isArray$c($.fixedData)?$.fixedData.length===0&&Xn:Xn});function fr(Xn){const{estimatedRowHeight:or,rowHeight:vr,rowKey:_r}=$;return or?unref(wn)[unref(Nn)[Xn][_r]]||or:vr}function Gn(){const{onEndReached:Xn}=$;if(!Xn)return;const{scrollTop:or}=unref(_n),vr=unref(Hn),_r=unref(Jn),ir=vr-(or+_r)+$.hScrollbarSize;unref(Cn)>=0&&vr===or+unref(Vn)-unref(Zn)&&Xn(ir)}return watch(()=>$.expandedRowKeys,Xn=>bn.value=Xn,{deep:!0}),{columns:ue,containerRef:Wn,mainTableRef:z,leftTableRef:ie,rightTableRef:le,isDynamic:En,isResetting:$n,isScrolling:Kn,hoveringRowKey:Sn,hasFixedColumns:xe,columnsStyles:pe,columnsTotalWidth:_e,data:Nn,expandedRowKeys:bn,depthMap:Fn,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e,mainColumns:Ie,bodyWidth:Ln,emptyStyle:yr,rootStyle:sr,headerWidth:qn,footerHeight:ur,mainTableHeight:Vn,fixedTableHeight:In,leftTableWidth:Mn,rightTableWidth:zn,showEmpty:nr,getRowHeight:fr,onColumnSorted:ze,onRowHovered:kn,onRowExpanded:xn,onRowsRendered:An,onRowHeightChange:Pn,scrollTo:Ue,scrollToLeft:qe,scrollToTop:Et,scrollToRow:Lt,onScroll:hn,onVerticalScroll:vn}}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 ie;const{cellData:le,style:ue}=$,pe=((ie=le==null?void 0:le.toString)==null?void 0:ie.call(le))||"";return createVNode("div",{class:$.class,title:pe,style:ue},[z.default?z.default($):pe])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=($,{slots:z})=>{var ie,le;return z.default?z.default($):createVNode("div",{class:$.class,title:(ie=$.column)==null?void 0:ie.title},[(le=$.column)==null?void 0:le.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:ie,columnsStyles:le,headerIndex:ue,style:pe}=$;let _e=ie.map((Ce,$e)=>z.cell({columns:ie,column:Ce,columnIndex:$e,headerIndex:ue,style:le[Ce.key]}));return z.header&&(_e=z.header({cells:_e.map(Ce=>isArray$c(Ce)&&Ce.length===1?Ce[0]:Ce),columns:ie,headerIndex:ue})),createVNode("div",{class:$.class,style:pe,role:"row"},[_e])}}}),COMPONENT_NAME$7="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$7,props:tableV2HeaderProps,setup($,{slots:z,expose:ie}){const le=useNamespace("table-v2"),ue=ref(),pe=computed(()=>enforceUnit({width:$.width,height:$.height})),_e=computed(()=>enforceUnit({width:$.rowWidth,height:$.height})),Ce=computed(()=>castArray$1(unref($.headerHeight))),$e=ze=>{const Ue=unref(ue);nextTick(()=>{Ue!=null&&Ue.scroll&&Ue.scroll({left:ze})})},xe=()=>{const ze=le.e("fixed-header-row"),{columns:Ue,fixedHeaderData:qe,rowHeight:Et}=$;return qe==null?void 0:qe.map((Lt,hn)=>{var vn;const _n=enforceUnit({height:Et,width:"100%"});return(vn=z.fixed)==null?void 0:vn.call(z,{class:ze,columns:Ue,rowData:Lt,rowIndex:-(hn+1),style:_n})})},Ie=()=>{const ze=le.e("dynamic-header-row"),{columns:Ue}=$;return unref(Ce).map((qe,Et)=>{var Lt;const hn=enforceUnit({width:"100%",height:qe});return(Lt=z.dynamic)==null?void 0:Lt.call(z,{class:ze,columns:Ue,headerIndex:Et,style:hn})})};return ie({scrollToLeft:$e}),()=>{if(!($.height<=0))return createVNode("div",{ref:ue,class:$.class,style:unref(pe),role:"rowgroup"},[createVNode("div",{style:unref(_e),class:le.e("header")},[Ie(),xe()])])}}}),useTableRow=$=>{const{isScrolling:z}=inject(TableV2InjectionKey),ie=ref(!1),le=ref(),ue=computed(()=>isNumber$5($.estimatedRowHeight)&&$.rowIndex>=0),pe=($e=!1)=>{const xe=unref(le);if(!xe)return;const{columns:Ie,onRowHeightChange:ze,rowKey:Ue,rowIndex:qe,style:Et}=$,{height:Lt}=xe.getBoundingClientRect();ie.value=!0,nextTick(()=>{if($e||Lt!==Number.parseInt(Et.height)){const hn=Ie[0],vn=(hn==null?void 0:hn.placeholderSign)===placeholderSign;ze==null||ze({rowKey:Ue,height:Lt,rowIndex:qe},hn&&!vn&&hn.fixed)}})},_e=computed(()=>{const{rowData:$e,rowIndex:xe,rowKey:Ie,onRowHover:ze}=$,Ue=$.rowEventHandlers||{},qe={};return Object.entries(Ue).forEach(([Et,Lt])=>{isFunction$5(Lt)&&(qe[Et]=hn=>{Lt({event:hn,rowData:$e,rowIndex:xe,rowKey:Ie})})}),ze&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:Et,hovered:Lt})=>{const hn=qe[Et];qe[Et]=vn=>{ze({event:vn,hovered:Lt,rowData:$e,rowIndex:xe,rowKey:Ie}),hn==null||hn(vn)}}),qe}),Ce=$e=>{const{onRowExpand:xe,rowData:Ie,rowIndex:ze,rowKey:Ue}=$;xe==null||xe({expanded:$e,rowData:Ie,rowIndex:ze,rowKey:Ue})};return onMounted(()=>{unref(ue)&&pe(!0)}),{isScrolling:z,measurable:ue,measured:ie,rowRef:le,eventHandlers:_e,onExpand:Ce}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup($,{expose:z,slots:ie,attrs:le}){const{eventHandlers:ue,isScrolling:pe,measurable:_e,measured:Ce,rowRef:$e,onExpand:xe}=useTableRow($);return z({onExpand:xe}),()=>{const{columns:Ie,columnsStyles:ze,expandColumnKey:Ue,depth:qe,rowData:Et,rowIndex:Lt,style:hn}=$;let vn=Ie.map((_n,bn)=>{const Sn=isArray$c(Et.children)&&Et.children.length>0&&_n.key===Ue;return ie.cell({column:_n,columns:Ie,columnIndex:bn,depth:qe,style:ze[_n.key],rowData:Et,rowIndex:Lt,isScrolling:unref(pe),expandIconProps:Sn?{rowData:Et,rowIndex:Lt,onExpand:xe}:void 0})});if(ie.row&&(vn=ie.row({cells:vn.map(_n=>isArray$c(_n)&&_n.length===1?_n[0]:_n),style:hn,columns:Ie,depth:qe,rowData:Et,rowIndex:Lt,isScrolling:unref(pe)})),unref(_e)){const{height:_n,...bn}=hn||{},Sn=unref(Ce);return createVNode("div",mergeProps({ref:$e,class:$.class,style:Sn?hn:bn,role:"row"},le,unref(ue)),[vn])}return createVNode("div",mergeProps(le,{ref:$e,class:$.class,style:hn,role:"row"},unref(ue)),[vn])}}}),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:ie,onExpand:le,style:ue,size:pe}=$,_e={onClick:ie?()=>le(!z):void 0,class:$.class};return createVNode(ElIcon,mergeProps(_e,{size:pe,style:ue}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$5="ElTableV2Grid",useTableGrid=$=>{const z=ref(),ie=ref(),le=computed(()=>{const{data:Lt,rowHeight:hn,estimatedRowHeight:vn}=$;if(!vn)return Lt.length*hn}),ue=computed(()=>{const{fixedData:Lt,rowHeight:hn}=$;return((Lt==null?void 0:Lt.length)||0)*hn}),pe=computed(()=>sum($.headerHeight)),_e=computed(()=>{const{height:Lt}=$;return Math.max(0,Lt-unref(pe)-unref(ue))}),Ce=computed(()=>unref(pe)+unref(ue)>0),$e=({data:Lt,rowIndex:hn})=>Lt[hn][$.rowKey];function xe({rowCacheStart:Lt,rowCacheEnd:hn,rowVisibleStart:vn,rowVisibleEnd:_n}){var bn;(bn=$.onRowsRendered)==null||bn.call($,{rowCacheStart:Lt,rowCacheEnd:hn,rowVisibleStart:vn,rowVisibleEnd:_n})}function Ie(Lt,hn){var vn;(vn=ie.value)==null||vn.resetAfterRowIndex(Lt,hn)}function ze(Lt,hn){const vn=unref(z),_n=unref(ie);!vn||!_n||(isObject$8(Lt)?(vn.scrollToLeft(Lt.scrollLeft),_n.scrollTo(Lt)):(vn.scrollToLeft(Lt),_n.scrollTo({scrollLeft:Lt,scrollTop:hn})))}function Ue(Lt){var hn;(hn=unref(ie))==null||hn.scrollTo({scrollTop:Lt})}function qe(Lt,hn){var vn;(vn=unref(ie))==null||vn.scrollToItem(Lt,1,hn)}function Et(){var Lt,hn;(Lt=unref(ie))==null||Lt.$forceUpdate(),(hn=unref(z))==null||hn.$forceUpdate()}return{bodyRef:ie,forceUpdate:Et,fixedRowHeight:ue,gridHeight:_e,hasHeader:Ce,headerHeight:pe,headerRef:z,totalHeight:le,itemKey:$e,onItemRendered:xe,resetAfterRowIndex:Ie,scrollTo:ze,scrollToTop:Ue,scrollToRow:qe}},TableGrid=defineComponent({name:COMPONENT_NAME$5,props:tableV2GridProps,setup($,{slots:z,expose:ie}){const{ns:le}=inject(TableV2InjectionKey),{bodyRef:ue,fixedRowHeight:pe,gridHeight:_e,hasHeader:Ce,headerRef:$e,headerHeight:xe,totalHeight:Ie,forceUpdate:ze,itemKey:Ue,onItemRendered:qe,resetAfterRowIndex:Et,scrollTo:Lt,scrollToTop:hn,scrollToRow:vn}=useTableGrid($);ie({forceUpdate:ze,totalHeight:Ie,scrollTo:Lt,scrollToTop:hn,scrollToRow:vn,resetAfterRowIndex:Et});const _n=()=>$.bodyWidth;return()=>{const{cache:bn,columns:Sn,data:Cn,fixedData:En,useIsScrolling:$n,scrollbarAlwaysOn:wn,scrollbarEndGap:Tn,scrollbarStartGap:xn,style:Pn,rowHeight:kn,bodyWidth:An,estimatedRowHeight:Nn,headerWidth:Fn,height:Ln,width:In,getRowHeight:Vn,onScroll:Mn}=$,zn=isNumber$5(Nn),qn=zn?DynamicSizeGrid:FixedSizeGrid,Hn=unref(xe);return createVNode("div",{role:"table",class:[le.e("table"),$.class],style:Pn},[createVNode(qn,{ref:ue,data:Cn,useIsScrolling:$n,itemKey:Ue,columnCache:0,columnWidth:zn?_n:An,totalColumn:1,totalRow:Cn.length,rowCache:bn,rowHeight:zn?Vn:kn,width:In,height:unref(_e),class:le.e("body"),role:"rowgroup",scrollbarStartGap:xn,scrollbarEndGap:Tn,scrollbarAlwaysOn:wn,onScroll:Mn,onItemRendered:qe,perfMode:!1},{default:Jn=>{var ur;const yr=Cn[Jn.rowIndex];return(ur=z.row)==null?void 0:ur.call(z,{...Jn,columns:Sn,rowData:yr})}}),unref(Ce)&&createVNode(TableV2Header,{ref:$e,class:le.e("header-wrapper"),columns:Sn,headerData:Cn,headerHeight:$.headerHeight,fixedHeaderData:En,rowWidth:Fn,rowHeight:kn,width:In,height:Math.min(Hn+unref(pe),Ln)},{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:ie,...le}=$;return createVNode(TableGrid,mergeProps({ref:ie},le),_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:ie,...le}=$;return createVNode(TableGrid,mergeProps({ref:ie},le),_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:ie,...le}=$;return createVNode(TableGrid,mergeProps({ref:ie},le),_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:ie,columnsStyles:le,depthMap:ue,expandColumnKey:pe,expandedRowKeys:_e,estimatedRowHeight:Ce,hasFixedColumns:$e,hoveringRowKey:xe,rowData:Ie,rowIndex:ze,style:Ue,isScrolling:qe,rowProps:Et,rowClass:Lt,rowKey:hn,rowEventHandlers:vn,ns:_n,onRowHovered:bn,onRowExpanded:Sn}=$,Cn=tryCall(Lt,{columns:ie,rowData:Ie,rowIndex:ze},""),En=tryCall(Et,{columns:ie,rowData:Ie,rowIndex:ze}),$n=Ie[hn],wn=ue[$n]||0,Tn=!!pe,xn=ze<0,Pn=[_n.e("row"),Cn,{[_n.e(`row-depth-${wn}`)]:Tn&&ze>=0,[_n.is("expanded")]:Tn&&_e.includes($n),[_n.is("hovered")]:!qe&&$n===xe,[_n.is("fixed")]:!wn&&xn,[_n.is("customized")]:!!z.row}],kn=$e?bn:void 0,An={...En,columns:ie,columnsStyles:le,class:Pn,depth:wn,expandColumnKey:pe,estimatedRowHeight:xn?void 0:Ce,isScrolling:qe,rowIndex:ze,rowData:Ie,rowKey:$n,rowEventHandlers:vn,style:Ue};return createVNode(TableV2Row,mergeProps(An,{onRowHover:kn,onRowExpand:Sn}),_isSlot$2(z)?z:{default:()=>[z]})},CellRenderer=({columns:$,column:z,columnIndex:ie,depth:le,expandIconProps:ue,isScrolling:pe,rowData:_e,rowIndex:Ce,style:$e,expandedRowKeys:xe,ns:Ie,cellProps:ze,expandColumnKey:Ue,indentSize:qe,iconSize:Et,rowKey:Lt},{slots:hn})=>{const vn=enforceUnit($e);if(z.placeholderSign===placeholderSign)return createVNode("div",{class:Ie.em("row-cell","placeholder"),style:vn},null);const{cellRenderer:_n,dataKey:bn,dataGetter:Sn}=z,En=componentToSlot(_n)||hn.default||(Ln=>createVNode(TableV2Cell,Ln,null)),$n=isFunction$5(Sn)?Sn({columns:$,column:z,columnIndex:ie,rowData:_e,rowIndex:Ce}):get$1(_e,bn??""),wn=tryCall(ze,{cellData:$n,columns:$,column:z,columnIndex:ie,rowIndex:Ce,rowData:_e}),Tn={class:Ie.e("cell-text"),columns:$,column:z,columnIndex:ie,cellData:$n,isScrolling:pe,rowData:_e,rowIndex:Ce},xn=En(Tn),Pn=[Ie.e("row-cell"),z.class,z.align===Alignment.CENTER&&Ie.is("align-center"),z.align===Alignment.RIGHT&&Ie.is("align-right")],kn=Ce>=0&&Ue&&z.key===Ue,An=Ce>=0&&xe.includes(_e[Lt]);let Nn;const Fn=`margin-inline-start: ${le*qe}px;`;return kn&&(isObject$8(ue)?Nn=createVNode(ExpandIcon,mergeProps(ue,{class:[Ie.e("expand-icon"),Ie.is("expanded",An)],size:Et,expanded:An,style:Fn,expandable:!0}),null):Nn=createVNode("div",{style:[Fn,`width: ${Et}px; height: ${Et}px;`].join(" ")},null)),createVNode("div",mergeProps({class:Pn,style:vn},wn,{role:"cell"}),[Nn,xn])};CellRenderer.inheritAttrs=!1;function _isSlot$1($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const HeaderRenderer=({columns:$,columnsStyles:z,headerIndex:ie,style:le,headerClass:ue,headerProps:pe,ns:_e},{slots:Ce})=>{const $e={columns:$,headerIndex:ie},xe=[_e.e("header-row"),tryCall(ue,$e,""),{[_e.is("customized")]:!!Ce.header}],Ie={...tryCall(pe,$e),columnsStyles:z,class:xe,columns:$,headerIndex:ie,style:le};return createVNode(TableV2HeaderRow,Ie,_isSlot$1(Ce)?Ce:{default:()=>[Ce]})},HeaderCellRenderer=($,{slots:z})=>{const{column:ie,ns:le,style:ue,onColumnSorted:pe}=$,_e=enforceUnit(ue);if(ie.placeholderSign===placeholderSign)return createVNode("div",{class:le.em("header-row-cell","placeholder"),style:_e},null);const{headerCellRenderer:Ce,headerClass:$e,sortable:xe}=ie,Ie={...$,class:le.e("header-cell-text")},Ue=(componentToSlot(Ce)||z.default||(Sn=>createVNode(HeaderCell,Sn,null)))(Ie),{sortBy:qe,sortState:Et,headerCellProps:Lt}=$;let hn,vn;if(Et){const Sn=Et[ie.key];hn=!!oppositeOrderMap[Sn],vn=hn?Sn:SortOrder.ASC}else hn=ie.key===qe.key,vn=hn?qe.order:SortOrder.ASC;const _n=[le.e("header-cell"),tryCall($e,$,""),ie.align===Alignment.CENTER&&le.is("align-center"),ie.align===Alignment.RIGHT&&le.is("align-right"),xe&&le.is("sortable")],bn={...tryCall(Lt,$),onClick:ie.sortable?pe:void 0,class:_n,style:_e,["data-key"]:ie.key};return createVNode("div",mergeProps(bn,{role:"columnheader"}),[Ue,xe&&createVNode(SortIcon,{class:[le.e("sort-icon"),hn&&le.is("sorting")],sortOrder:vn},null)])},Footer$1=($,{slots:z})=>{var ie;return createVNode("div",{class:$.class,style:$.style},[(ie=z.default)==null?void 0:ie.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 ie;return createVNode("div",{class:$.class,style:$.style},[(ie=z.default)==null?void 0:ie.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:ie}){const le=useNamespace("table-v2"),{columnsStyles:ue,fixedColumnsOnLeft:pe,fixedColumnsOnRight:_e,mainColumns:Ce,mainTableHeight:$e,fixedTableHeight:xe,leftTableWidth:Ie,rightTableWidth:ze,data:Ue,depthMap:qe,expandedRowKeys:Et,hasFixedColumns:Lt,hoveringRowKey:hn,mainTableRef:vn,leftTableRef:_n,rightTableRef:bn,isDynamic:Sn,isResetting:Cn,isScrolling:En,bodyWidth:$n,emptyStyle:wn,rootStyle:Tn,headerWidth:xn,footerHeight:Pn,showEmpty:kn,scrollTo:An,scrollToLeft:Nn,scrollToTop:Fn,scrollToRow:Ln,getRowHeight:In,onColumnSorted:Vn,onRowHeightChange:Mn,onRowHovered:zn,onRowExpanded:qn,onRowsRendered:Hn,onScroll:Jn,onVerticalScroll:ur}=useTable($);return ie({scrollTo:An,scrollToLeft:Nn,scrollToTop:Fn,scrollToRow:Ln}),provide(TableV2InjectionKey,{ns:le,isResetting:Cn,hoveringRowKey:hn,isScrolling:En}),()=>{const{cache:yr,cellProps:sr,estimatedRowHeight:Zn,expandColumnKey:Kn,fixedData:Wn,headerHeight:nr,headerClass:fr,headerProps:Gn,headerCellProps:Xn,sortBy:or,sortState:vr,rowHeight:_r,rowClass:ir,rowEventHandlers:Pr,rowKey:gr,rowProps:kr,scrollbarAlwaysOn:pr,indentSize:lr,iconSize:dr,useIsScrolling:hr,vScrollbarSize:Or,width:Lr}=$,Br=unref(Ue),Rr={cache:yr,class:le.e("main"),columns:unref(Ce),data:Br,fixedData:Wn,estimatedRowHeight:Zn,bodyWidth:unref($n),headerHeight:nr,headerWidth:unref(xn),height:unref($e),mainTableRef:vn,rowKey:gr,rowHeight:_r,scrollbarAlwaysOn:pr,scrollbarStartGap:2,scrollbarEndGap:Or,useIsScrolling:hr,width:Lr,getRowHeight:In,onRowsRendered:Hn,onScroll:Jn},Sr=unref(Ie),Er=unref(xe),cr={cache:yr,class:le.e("left"),columns:unref(pe),data:Br,estimatedRowHeight:Zn,leftTableRef:_n,rowHeight:_r,bodyWidth:Sr,headerWidth:Sr,headerHeight:nr,height:Er,rowKey:gr,scrollbarAlwaysOn:pr,scrollbarStartGap:2,scrollbarEndGap:Or,useIsScrolling:hr,width:Sr,getRowHeight:In,onScroll:ur},ar=unref(ze)+Or,$r={cache:yr,class:le.e("right"),columns:unref(_e),data:Br,estimatedRowHeight:Zn,rightTableRef:bn,rowHeight:_r,bodyWidth:ar,headerWidth:ar,headerHeight:nr,height:Er,rowKey:gr,scrollbarAlwaysOn:pr,scrollbarStartGap:2,scrollbarEndGap:Or,width:ar,style:`--${unref(le.namespace)}-table-scrollbar-size: ${Or}px`,useIsScrolling:hr,getRowHeight:In,onScroll:ur},Ir=unref(ue),Hr={ns:le,depthMap:unref(qe),columnsStyles:Ir,expandColumnKey:Kn,expandedRowKeys:unref(Et),estimatedRowHeight:Zn,hasFixedColumns:unref(Lt),hoveringRowKey:unref(hn),rowProps:kr,rowClass:ir,rowKey:gr,rowEventHandlers:Pr,onRowHovered:zn,onRowExpanded:qn,onRowHeightChange:Mn},br={cellProps:sr,expandColumnKey:Kn,indentSize:lr,iconSize:dr,rowKey:gr,expandedRowKeys:unref(Et),ns:le},Mr={ns:le,headerClass:fr,headerProps:Gn,columnsStyles:Ir},Ur={ns:le,sortBy:or,sortState:vr,headerCellProps:Xn,onColumnSorted:Vn},jr={row:Jr=>createVNode(RowRenderer,mergeProps(Jr,Hr),{row:z.row,cell:Ar=>{let Dr;return z.cell?createVNode(CellRenderer,mergeProps(Ar,br,{style:Ir[Ar.column.key]}),_isSlot(Dr=z.cell(Ar))?Dr:{default:()=>[Dr]}):createVNode(CellRenderer,mergeProps(Ar,br,{style:Ir[Ar.column.key]}),null)}}),header:Jr=>createVNode(HeaderRenderer,mergeProps(Jr,Mr),{header:z.header,cell:Ar=>{let Dr;return z["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(Ar,Ur,{style:Ir[Ar.column.key]}),_isSlot(Dr=z["header-cell"](Ar))?Dr:{default:()=>[Dr]}):createVNode(HeaderCellRenderer,mergeProps(Ar,Ur,{style:Ir[Ar.column.key]}),null)}})},Wr=[$.class,le.b(),le.e("root"),{[le.is("dynamic")]:unref(Sn)}],Zr={class:le.e("footer"),style:unref(Pn)};return createVNode("div",{class:Wr,style:unref(Tn)},[createVNode(MainTable,Rr,_isSlot(jr)?jr:{default:()=>[jr]}),createVNode(LeftTable$1,cr,_isSlot(jr)?jr:{default:()=>[jr]}),createVNode(LeftTable,$r,_isSlot(jr)?jr:{default:()=>[jr]}),z.footer&&createVNode(Footer$1,Zr,{default:z.footer}),unref(kn)&&createVNode(Footer,{class:le.e("empty"),style:unref(wn)},{default:z.empty}),z.overlay&&createVNode(Overlay,{class:le.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 ie=useNamespace("auto-resizer"),{height:le,width:ue,sizer:pe}=useAutoResize($),_e={width:"100%",height:"100%"};return()=>{var Ce;return createVNode("div",{ref:pe,class:ie.b(),style:_e},[(Ce=z.default)==null?void 0:Ce.call(z,{height:le.value,width:ue.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 ie=$,le=getCurrentInstance(),ue=inject(tabsRootContextKey);ue||throwError$1(COMPONENT_NAME$3,"<el-tabs><el-tab-bar /></el-tabs>");const pe=useNamespace("tabs"),_e=ref(),Ce=ref(),$e=()=>{let Ie=0,ze=0;const Ue=["top","bottom"].includes(ue.props.tabPosition)?"width":"height",qe=Ue==="width"?"x":"y",Et=qe==="x"?"left":"top";return ie.tabs.every(Lt=>{var hn,vn;const _n=(vn=(hn=le.parent)==null?void 0:hn.refs)==null?void 0:vn[`tab-${Lt.uid}`];if(!_n)return!1;if(!Lt.active)return!0;Ie=_n[`offset${capitalize$1(Et)}`],ze=_n[`client${capitalize$1(Ue)}`];const bn=window.getComputedStyle(_n);return Ue==="width"&&(ie.tabs.length>1&&(ze-=Number.parseFloat(bn.paddingLeft)+Number.parseFloat(bn.paddingRight)),Ie+=Number.parseFloat(bn.paddingLeft)),!1}),{[Ue]:`${ze}px`,transform:`translate${capitalize$1(qe)}(${Ie}px)`}},xe=()=>Ce.value=$e();return watch(()=>ie.tabs,async()=>{await nextTick(),xe()},{immediate:!0}),useResizeObserver(_e,()=>xe()),z({ref:_e,update:xe}),(Ie,ze)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:_e,class:normalizeClass([unref(pe).e("active-bar"),unref(pe).is(unref(ue).props.tabPosition)]),style:normalizeStyle$1(Ce.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,ie)=>ie 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:ie}){const le=getCurrentInstance(),ue=inject(tabsRootContextKey);ue||throwError$1(COMPONENT_NAME$2,"<el-tabs><tab-nav /></el-tabs>");const pe=useNamespace("tabs"),_e=useDocumentVisibility(),Ce=useWindowFocus(),$e=ref(),xe=ref(),Ie=ref(),ze=ref(),Ue=ref(!1),qe=ref(0),Et=ref(!1),Lt=ref(!0),hn=computed(()=>["top","bottom"].includes(ue.props.tabPosition)?"width":"height"),vn=computed(()=>({transform:`translate${hn.value==="width"?"X":"Y"}(-${qe.value}px)`})),_n=()=>{if(!$e.value)return;const Tn=$e.value[`offset${capitalize$1(hn.value)}`],xn=qe.value;if(!xn)return;const Pn=xn>Tn?xn-Tn:0;qe.value=Pn},bn=()=>{if(!$e.value||!xe.value)return;const Tn=xe.value[`offset${capitalize$1(hn.value)}`],xn=$e.value[`offset${capitalize$1(hn.value)}`],Pn=qe.value;if(Tn-Pn<=xn)return;const kn=Tn-Pn>xn*2?Pn+xn:Tn-xn;qe.value=kn},Sn=async()=>{const Tn=xe.value;if(!Ue.value||!Ie.value||!$e.value||!Tn)return;await nextTick();const xn=Ie.value.querySelector(".is-active");if(!xn)return;const Pn=$e.value,kn=["top","bottom"].includes(ue.props.tabPosition),An=xn.getBoundingClientRect(),Nn=Pn.getBoundingClientRect(),Fn=kn?Tn.offsetWidth-Nn.width:Tn.offsetHeight-Nn.height,Ln=qe.value;let In=Ln;kn?(An.left<Nn.left&&(In=Ln-(Nn.left-An.left)),An.right>Nn.right&&(In=Ln+An.right-Nn.right)):(An.top<Nn.top&&(In=Ln-(Nn.top-An.top)),An.bottom>Nn.bottom&&(In=Ln+(An.bottom-Nn.bottom))),In=Math.max(In,0),qe.value=Math.min(In,Fn)},Cn=()=>{var Tn;if(!xe.value||!$e.value)return;$.stretch&&((Tn=ze.value)==null||Tn.update());const xn=xe.value[`offset${capitalize$1(hn.value)}`],Pn=$e.value[`offset${capitalize$1(hn.value)}`],kn=qe.value;Pn<xn?(Ue.value=Ue.value||{},Ue.value.prev=kn,Ue.value.next=kn+Pn<xn,xn-kn<Pn&&(qe.value=xn-Pn)):(Ue.value=!1,kn>0&&(qe.value=0))},En=Tn=>{const xn=Tn.code,{up:Pn,down:kn,left:An,right:Nn}=EVENT_CODE;if(![Pn,kn,An,Nn].includes(xn))return;const Fn=Array.from(Tn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Ln=Fn.indexOf(Tn.target);let In;xn===An||xn===Pn?Ln===0?In=Fn.length-1:In=Ln-1:Ln<Fn.length-1?In=Ln+1:In=0,Fn[In].focus({preventScroll:!0}),Fn[In].click(),$n()},$n=()=>{Lt.value&&(Et.value=!0)},wn=()=>Et.value=!1;return watch(_e,Tn=>{Tn==="hidden"?Lt.value=!1:Tn==="visible"&&setTimeout(()=>Lt.value=!0,50)}),watch(Ce,Tn=>{Tn?setTimeout(()=>Lt.value=!0,50):Lt.value=!1}),useResizeObserver(Ie,Cn),onMounted(()=>setTimeout(()=>Sn(),0)),onUpdated(()=>Cn()),z({scrollToActiveTab:Sn,removeFocus:wn}),watch(()=>$.panes,()=>le.update(),{flush:"post",deep:!0}),()=>{const Tn=Ue.value?[createVNode("span",{class:[pe.e("nav-prev"),pe.is("disabled",!Ue.value.prev)],onClick:_n},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[pe.e("nav-next"),pe.is("disabled",!Ue.value.next)],onClick:bn},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,xn=$.panes.map((Pn,kn)=>{var An,Nn,Fn,Ln;const In=Pn.uid,Vn=Pn.props.disabled,Mn=(Nn=(An=Pn.props.name)!=null?An:Pn.index)!=null?Nn:`${kn}`,zn=!Vn&&(Pn.isClosable||$.editable);Pn.index=`${kn}`;const qn=zn?createVNode(ElIcon,{class:"is-icon-close",onClick:ur=>ie("tabRemove",Pn,ur)},{default:()=>[createVNode(close_default,null,null)]}):null,Hn=((Ln=(Fn=Pn.slots).label)==null?void 0:Ln.call(Fn))||Pn.props.label,Jn=!Vn&&Pn.active?0:-1;return createVNode("div",{ref:`tab-${In}`,class:[pe.e("item"),pe.is(ue.props.tabPosition),pe.is("active",Pn.active),pe.is("disabled",Vn),pe.is("closable",zn),pe.is("focus",Et.value)],id:`tab-${Mn}`,key:`tab-${In}`,"aria-controls":`pane-${Mn}`,role:"tab","aria-selected":Pn.active,tabindex:Jn,onFocus:()=>$n(),onBlur:()=>wn(),onClick:ur=>{wn(),ie("tabClick",Pn,Mn,ur)},onKeydown:ur=>{zn&&(ur.code===EVENT_CODE.delete||ur.code===EVENT_CODE.backspace)&&ie("tabRemove",Pn,ur)}},[Hn,qn])});return createVNode("div",{ref:Ie,class:[pe.e("nav-wrap"),pe.is("scrollable",!!Ue.value),pe.is(ue.props.tabPosition)]},[Tn,createVNode("div",{class:pe.e("nav-scroll"),ref:$e},[createVNode("div",{class:[pe.e("nav"),pe.is(ue.props.tabPosition),pe.is("stretch",$.stretch&&["top","bottom"].includes(ue.props.tabPosition))],ref:xe,style:vn.value,role:"tablist",onKeydown:En},[$.type?null:createVNode(TabBar,{ref:ze,tabs:[...$.panes]},null),xn])])])}}}),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:ie,expose:le}){var ue,pe;const _e=useNamespace("tabs"),{children:Ce,addChild:$e,removeChild:xe}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),Ie=ref(),ze=ref((pe=(ue=$.modelValue)!=null?ue:$.activeName)!=null?pe:"0"),Ue=vn=>{ze.value=vn,z(UPDATE_MODEL_EVENT,vn),z("tabChange",vn)},qe=async vn=>{var _n,bn,Sn;if(!(ze.value===vn||isUndefined$1(vn)))try{await((_n=$.beforeLeave)==null?void 0:_n.call($,vn,ze.value))!==!1&&(Ue(vn),(Sn=(bn=Ie.value)==null?void 0:bn.removeFocus)==null||Sn.call(bn))}catch{}},Et=(vn,_n,bn)=>{vn.props.disabled||(qe(_n),z("tabClick",vn,bn))},Lt=(vn,_n)=>{vn.props.disabled||isUndefined$1(vn.props.name)||(_n.stopPropagation(),z("edit",vn.props.name,"remove"),z("tabRemove",vn.props.name))},hn=()=>{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,vn=>qe(vn)),watch(()=>$.modelValue,vn=>qe(vn)),watch(ze,async()=>{var vn;await nextTick(),(vn=Ie.value)==null||vn.scrollToActiveTab()}),provide(tabsRootContextKey,{props:$,currentName:ze,registerPane:$e,unregisterPane:xe}),le({currentName:ze}),()=>{const vn=$.editable||$.addable?createVNode("span",{class:_e.e("new-tab"),tabindex:"0",onClick:hn,onKeydown:Sn=>{Sn.code===EVENT_CODE.enter&&hn()}},[createVNode(ElIcon,{class:_e.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,_n=createVNode("div",{class:[_e.e("header"),_e.is($.tabPosition)]},[vn,createVNode(TabNav,{ref:Ie,currentName:ze.value,editable:$.editable,type:$.type,panes:Ce.value,stretch:$.stretch,onTabClick:Et,onTabRemove:Lt},null)]),bn=createVNode("div",{class:_e.e("content")},[renderSlot(ie,"default")]);return createVNode("div",{class:[_e.b(),_e.m($.tabPosition),{[_e.m("card")]:$.type==="card",[_e.m("border-card")]:$.type==="border-card"}]},[...$.tabPosition!=="bottom"?[_n,bn]:[bn,_n]])}}});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=$,ie=getCurrentInstance(),le=useSlots(),ue=inject(tabsRootContextKey);ue||throwError$1(COMPONENT_NAME$1,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const pe=useNamespace("tab-pane"),_e=ref(),Ce=computed(()=>z.closable||ue.props.closable),$e=computedEager(()=>{var qe;return ue.currentName.value===((qe=z.name)!=null?qe:_e.value)}),xe=ref($e.value),Ie=computed(()=>{var qe;return(qe=z.name)!=null?qe:_e.value}),ze=computedEager(()=>!z.lazy||xe.value||$e.value);watch($e,qe=>{qe&&(xe.value=!0)});const Ue=reactive({uid:ie.uid,slots:le,props:z,paneName:Ie,active:$e,index:_e,isClosable:Ce});return onMounted(()=>{ue.registerPane(Ue)}),onUnmounted(()=>{ue.unregisterPane(Ue.uid)}),(qe,Et)=>unref(ze)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(Ie)}`,class:normalizeClass(unref(pe).b()),role:"tabpanel","aria-hidden":!unref($e),"aria-labelledby":`tab-${unref(Ie)}`},[renderSlot(qe.$slots,"default")],10,_hoisted_1$c)),[[vShow,unref($e)]]):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=$,ie=useFormSize(),le=useNamespace("text"),ue=computed(()=>[le.b(),le.m(z.type),le.m(ie.value),le.is("truncated",z.truncated)]);return(pe,_e)=>(openBlock(),createBlock(resolveDynamicComponent(pe.tag),{class:normalizeClass(unref(ue))},{default:withCtx(()=>[renderSlot(pe.$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 ie=Number.parseInt(z[0],10);const le=Number.parseInt(z[1],10),ue=$.toUpperCase();return ue.includes("AM")&&ie===12?ie=0:ue.includes("PM")&&ie!==12&&(ie+=12),{hours:ie,minutes:le}}return null},compareTime=($,z)=>{const ie=parseTime($);if(!ie)return-1;const le=parseTime(z);if(!le)return-1;const ue=ie.minutes+ie.hours*60,pe=le.minutes+le.hours*60;return ue===pe?0:ue>pe?1:-1},padTime=$=>`${$}`.padStart(2,"0"),formatTime$1=$=>`${padTime($.hours)}:${padTime($.minutes)}`,nextTime=($,z)=>{const ie=parseTime($);if(!ie)return"";const le=parseTime(z);if(!le)return"";const ue={hours:ie.hours,minutes:ie.minutes};return ue.minutes+=le.minutes,ue.hours+=le.hours,ue.hours+=Math.floor(ue.minutes/60),ue.minutes=ue.minutes%60,formatTime$1(ue)},__default__$h=defineComponent({name:"ElTimeSelect"}),_sfc_main$o=defineComponent({...__default__$h,props:timeSelectProps,emits:["change","blur","focus","update:modelValue"],setup($,{expose:z}){const ie=$;dayjs.extend(customParseFormat);const{Option:le}=ElSelect,ue=useNamespace("input"),pe=ref(),_e=useFormDisabled(),Ce=computed(()=>ie.modelValue),$e=computed(()=>{const hn=parseTime(ie.start);return hn?formatTime$1(hn):null}),xe=computed(()=>{const hn=parseTime(ie.end);return hn?formatTime$1(hn):null}),Ie=computed(()=>{const hn=parseTime(ie.step);return hn?formatTime$1(hn):null}),ze=computed(()=>{const hn=parseTime(ie.minTime||"");return hn?formatTime$1(hn):null}),Ue=computed(()=>{const hn=parseTime(ie.maxTime||"");return hn?formatTime$1(hn):null}),qe=computed(()=>{const hn=[];if(ie.start&&ie.end&&ie.step){let vn=$e.value,_n;for(;vn&&xe.value&&compareTime(vn,xe.value)<=0;)_n=dayjs(vn,"HH:mm").format(ie.format),hn.push({value:_n,disabled:compareTime(vn,ze.value||"-1:-1")<=0||compareTime(vn,Ue.value||"100:100")>=0}),vn=nextTime(vn,Ie.value)}return hn});return z({blur:()=>{var hn,vn;(vn=(hn=pe.value)==null?void 0:hn.blur)==null||vn.call(hn)},focus:()=>{var hn,vn;(vn=(hn=pe.value)==null?void 0:hn.focus)==null||vn.call(hn)}}),(hn,vn)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:pe,"model-value":unref(Ce),disabled:unref(_e),clearable:hn.clearable,"clear-icon":hn.clearIcon,size:hn.size,effect:hn.effect,placeholder:hn.placeholder,"default-first-option":"",filterable:hn.editable,"onUpdate:modelValue":vn[0]||(vn[0]=_n=>hn.$emit("update:modelValue",_n)),onChange:vn[1]||(vn[1]=_n=>hn.$emit("change",_n)),onBlur:vn[2]||(vn[2]=_n=>hn.$emit("blur",_n)),onFocus:vn[3]||(vn[3]=_n=>hn.$emit("focus",_n))},{prefix:withCtx(()=>[hn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(hn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qe),_n=>(openBlock(),createBlock(unref(le),{key:_n.value,label:_n.value,value:_n.value,disabled:_n.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 ie=useNamespace("timeline");return provide("timeline",z),()=>h$3("ul",{class:[ie.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=$,ie=useNamespace("timeline-item"),le=computed(()=>[ie.e("node"),ie.em("node",z.size||""),ie.em("node",z.type||""),ie.is("hollow",z.hollow)]);return(ue,pe)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(ie).b(),{[unref(ie).e("center")]:ue.center}])},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("tail"))},null,2),ue.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le)),style:normalizeStyle$1({backgroundColor:ue.color})},[ue.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),ue.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("dot"))},[renderSlot(ue.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("wrapper"))},[!ue.hideTimestamp&&ue.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(ie).e("timestamp"),unref(ie).is("top")])},toDisplayString$1(ue.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content"))},[renderSlot(ue.$slots,"default")],2),!ue.hideTimestamp&&ue.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(ie).e("timestamp"),unref(ie).is("bottom")])},toDisplayString$1(ue.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 ie=$,le=ref(ie.defaultOpen),ue=ref(null),pe=computed({get:()=>isPropAbsent(ie.open)?le.value:ie.open,set:hn=>{var vn;le.value=hn,(vn=ie["onUpdate:open"])==null||vn.call(ie,hn)}}),_e=computed(()=>isNumber$5(ie.delayDuration)&&ie.delayDuration>0),{start:Ce,stop:$e}=useTimeoutFn$1(()=>{pe.value=!0},computed(()=>ie.delayDuration),{immediate:!1}),xe=useNamespace("tooltip-v2"),Ie=useId(),ze=()=>{$e(),pe.value=!0},Ue=()=>{unref(_e)?Ce():ze()},qe=ze,Et=()=>{$e(),pe.value=!1};return watch(pe,hn=>{var vn;hn&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),qe()),(vn=ie.onOpenChange)==null||vn.call(ie,hn)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,Et)}),onBeforeUnmount(()=>{$e(),document.removeEventListener(TOOLTIP_V2_OPEN,Et)}),provide(tooltipV2RootKey,{contentId:Ie,triggerRef:ue,ns:xe,onClose:Et,onDelayOpen:Ue,onOpen:qe}),z({onOpen:qe,onClose:Et}),(hn,vn)=>renderSlot(hn.$slots,"default",{open:unref(pe)})}});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:ie}=inject(tooltipV2RootKey),{arrowRef:le}=inject(tooltipV2ContentKey),ue=computed(()=>{const{style:pe,width:_e,height:Ce}=z,$e=ie.namespace.value;return{[`--${$e}-tooltip-v2-arrow-width`]:`${_e}px`,[`--${$e}-tooltip-v2-arrow-height`]:`${Ce}px`,[`--${$e}-tooltip-v2-arrow-border-width`]:`${_e/2}px`,[`--${$e}-tooltip-v2-arrow-cover-width`]:_e/2-1,...pe||{}}});return(pe,_e)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:le,style:normalizeStyle$1(unref(ue)),class:normalizeClass(unref(ie).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=$,ie=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(le,ue)=>(openBlock(),createElementBlock("span",mergeProps(le.$attrs,{style:unref(ie)}),[renderSlot(le.$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:ie,contentId:le}=inject(tooltipV2RootKey),ue=ref(z.placement),pe=ref(z.strategy),_e=ref(null),{referenceRef:Ce,contentRef:$e,middlewareData:xe,x:Ie,y:ze,update:Ue}=useFloating({placement:ue,strategy:pe,middleware:computed(()=>{const bn=[D$2(z.offset)];return z.showArrow&&bn.push(arrowMiddleware({arrowRef:_e})),bn})}),qe=useZIndex().nextZIndex(),Et=useNamespace("tooltip-v2"),Lt=computed(()=>ue.value.split("-")[0]),hn=computed(()=>({position:unref(pe),top:`${unref(ze)||0}px`,left:`${unref(Ie)||0}px`,zIndex:qe})),vn=computed(()=>{if(!z.showArrow)return{};const{arrow:bn}=unref(xe);return{[`--${Et.namespace.value}-tooltip-v2-arrow-x`]:`${bn==null?void 0:bn.x}px`||"",[`--${Et.namespace.value}-tooltip-v2-arrow-y`]:`${bn==null?void 0:bn.y}px`||""}}),_n=computed(()=>[Et.e("content"),Et.is("dark",z.effect==="dark"),Et.is(unref(pe)),z.contentClass]);return watch(_e,()=>Ue()),watch(()=>z.placement,bn=>ue.value=bn),onMounted(()=>{watch(()=>z.reference||ie.value,bn=>{Ce.value=bn||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:_e}),(bn,Sn)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:$e,style:normalizeStyle$1(unref(hn)),"data-tooltip-v2-root":""},[bn.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(Lt),class:normalizeClass(unref(_n))},[renderSlot(bn.$slots,"default",{contentStyle:unref(hn),contentClass:unref(_n)}),createVNode(unref(ElVisuallyHidden),{id:unref(le),role:"tooltip"},{default:withCtx(()=>[bn.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(bn.ariaLabel),1)],64)):renderSlot(bn.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(bn.$slots,"arrow",{style:normalizeStyle$1(unref(vn)),side:unref(Lt)})],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 ie=ref(),le=composeRefs(ie,ue=>{ue?$.setRef(ue.nextElementSibling):$.setRef(null)});return()=>{var ue;const[pe]=((ue=z.default)==null?void 0:ue.call(z))||[],_e=$.onlyChild?ensureOnlyChild(pe.children):pe.children;return createVNode(Fragment,{ref:le},[_e])}}});const __default__$b=defineComponent({name:"ElTooltipV2Trigger"}),_sfc_main$i=defineComponent({...__default__$b,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup($){const z=$,{onClose:ie,onOpen:le,onDelayOpen:ue,triggerRef:pe,contentId:_e}=inject(tooltipV2RootKey);let Ce=!1;const $e=_n=>{pe.value=_n},xe=()=>{Ce=!1},Ie=composeEventHandlers(z.onMouseEnter,ue),ze=composeEventHandlers(z.onMouseLeave,ie),Ue=composeEventHandlers(z.onMouseDown,()=>{ie(),Ce=!0,document.addEventListener("mouseup",xe,{once:!0})}),qe=composeEventHandlers(z.onFocus,()=>{Ce||le()}),Et=composeEventHandlers(z.onBlur,ie),Lt=composeEventHandlers(z.onClick,_n=>{_n.detail===0&&ie()}),hn={blur:Et,click:Lt,focus:qe,mousedown:Ue,mouseenter:Ie,mouseleave:ze},vn=(_n,bn,Sn)=>{_n&&Object.entries(bn).forEach(([Cn,En])=>{_n[Sn](Cn,En)})};return watch(pe,(_n,bn)=>{vn(_n,hn,"addEventListener"),vn(bn,hn,"removeEventListener"),_n&&_n.setAttribute("aria-describedby",_e.value)}),onBeforeUnmount(()=>{vn(pe.value,hn,"removeEventListener"),document.removeEventListener("mouseup",xe)}),(_n,bn)=>_n.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":$e,"only-child":""},{default:withCtx(()=>[renderSlot(_n.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:pe},_n.$attrs),[renderSlot(_n.$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 ie=toRefs($),le=reactive(pick$1(ie,Object.keys(tooltipV2ArrowProps))),ue=reactive(pick$1(ie,Object.keys(tooltipV2ContentProps))),pe=reactive(pick$1(ie,Object.keys(tooltipV2RootProps))),_e=reactive(pick$1(ie,Object.keys(tooltipV2TriggerProps)));return(Ce,$e)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(pe)),{default:withCtx(({open:xe})=>[createVNode(TooltipV2Trigger,mergeProps(_e,{nowrap:""}),{default:withCtx(()=>[renderSlot(Ce.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:Ce.to,disabled:!Ce.teleported},[Ce.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},Ce.transitionProps)),{default:withCtx(()=>[Ce.alwaysOn||xe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},ue)),{arrow:withCtx(({style:Ie,side:ze})=>[Ce.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},le,{style:Ie,side:ze}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(Ce.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[Ce.alwaysOn||xe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},ue)),{arrow:withCtx(({style:Ie,side:ze})=>[Ce.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},le,{style:Ie,side:ze}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(Ce.$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,ie)=>[$,ie].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,ie)=>{const le=usePropsAlias($),ue=computed(()=>$.data.filter(Ie=>isFunction$5($.filterMethod)?$.filterMethod(z.query,Ie):String(Ie[le.value.label]||Ie[le.value.key]).toLowerCase().includes(z.query.toLowerCase()))),pe=computed(()=>ue.value.filter(Ie=>!Ie[le.value.disabled])),_e=computed(()=>{const Ie=z.checked.length,ze=$.data.length,{noChecked:Ue,hasChecked:qe}=$.format;return Ue&&qe?Ie>0?qe.replace(/\${checked}/g,Ie.toString()).replace(/\${total}/g,ze.toString()):Ue.replace(/\${total}/g,ze.toString()):`${Ie}/${ze}`}),Ce=computed(()=>{const Ie=z.checked.length;return Ie>0&&Ie<pe.value.length}),$e=()=>{const Ie=pe.value.map(ze=>ze[le.value.key]);z.allChecked=Ie.length>0&&Ie.every(ze=>z.checked.includes(ze))},xe=Ie=>{z.checked=Ie?pe.value.map(ze=>ze[le.value.key]):[]};return watch(()=>z.checked,(Ie,ze)=>{if($e(),z.checkChangeByUser){const Ue=Ie.concat(ze).filter(qe=>!Ie.includes(qe)||!ze.includes(qe));ie(CHECKED_CHANGE_EVENT,Ie,Ue)}else ie(CHECKED_CHANGE_EVENT,Ie),z.checkChangeByUser=!0}),watch(pe,()=>{$e()}),watch(()=>$.data,()=>{const Ie=[],ze=ue.value.map(Ue=>Ue[le.value.key]);z.checked.forEach(Ue=>{ze.includes(Ue)&&Ie.push(Ue)}),z.checkChangeByUser=!1,z.checked=Ie}),watch(()=>$.defaultChecked,(Ie,ze)=>{if(ze&&Ie.length===ze.length&&Ie.every(Et=>ze.includes(Et)))return;const Ue=[],qe=pe.value.map(Et=>Et[le.value.key]);Ie.forEach(Et=>{qe.includes(Et)&&Ue.push(Et)}),z.checkChangeByUser=!1,z.checked=Ue},{immediate:!0}),{filteredData:ue,checkableData:pe,checkedSummary:_e,isIndeterminate:Ce,updateAllChecked:$e,handleAllCheckedChange:xe}},useCheckedChange=($,z)=>({onSourceCheckedChange:(ue,pe)=>{$.leftChecked=ue,pe&&z(LEFT_CHECK_CHANGE_EVENT,ue,pe)},onTargetCheckedChange:(ue,pe)=>{$.rightChecked=ue,pe&&z(RIGHT_CHECK_CHANGE_EVENT,ue,pe)}}),useComputedData=$=>{const z=usePropsAlias($),ie=computed(()=>$.data.reduce((pe,_e)=>(pe[_e[z.value.key]]=_e)&&pe,{})),le=computed(()=>$.data.filter(pe=>!$.modelValue.includes(pe[z.value.key]))),ue=computed(()=>$.targetOrder==="original"?$.data.filter(pe=>$.modelValue.includes(pe[z.value.key])):$.modelValue.reduce((pe,_e)=>{const Ce=ie.value[_e];return Ce&&pe.push(Ce),pe},[]));return{sourceData:le,targetData:ue}},useMove=($,z,ie)=>{const le=usePropsAlias($),ue=(Ce,$e,xe)=>{ie(UPDATE_MODEL_EVENT,Ce),ie(CHANGE_EVENT,Ce,$e,xe)};return{addToLeft:()=>{const Ce=$.modelValue.slice();z.rightChecked.forEach($e=>{const xe=Ce.indexOf($e);xe>-1&&Ce.splice(xe,1)}),ue(Ce,"left",z.rightChecked)},addToRight:()=>{let Ce=$.modelValue.slice();const $e=$.data.filter(xe=>{const Ie=xe[le.value.key];return z.leftChecked.includes(Ie)&&!$.modelValue.includes(Ie)}).map(xe=>xe[le.value.key]);Ce=$.targetOrder==="unshift"?$e.concat(Ce):Ce.concat($e),$.targetOrder==="original"&&(Ce=$.data.filter(xe=>Ce.includes(xe[le.value.key])).map(xe=>xe[le.value.key])),ue(Ce,"right",z.leftChecked)}}},__default__$9=defineComponent({name:"ElTransferPanel"}),_sfc_main$g=defineComponent({...__default__$9,props:transferPanelProps,emits:transferPanelEmits,setup($,{expose:z,emit:ie}){const le=$,ue=useSlots(),pe=({option:bn})=>bn,{t:_e}=useLocale(),Ce=useNamespace("transfer"),$e=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),xe=usePropsAlias(le),{filteredData:Ie,checkedSummary:ze,isIndeterminate:Ue,handleAllCheckedChange:qe}=useCheck$1(le,$e,ie),Et=computed(()=>!isEmpty($e.query)&&isEmpty(Ie.value)),Lt=computed(()=>!isEmpty(ue.default()[0].children)),{checked:hn,allChecked:vn,query:_n}=toRefs($e);return z({query:_n}),(bn,Sn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ce).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(Ce).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(vn),"onUpdate:modelValue":Sn[0]||(Sn[0]=Cn=>isRef(vn)?vn.value=Cn:null),indeterminate:unref(Ue),"validate-event":!1,onChange:unref(qe)},{default:withCtx(()=>[createTextVNode(toDisplayString$1(bn.title)+" ",1),createBaseVNode("span",null,toDisplayString$1(unref(ze)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(Ce).be("panel","body"),unref(Ce).is("with-footer",unref(Lt))])},[bn.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(_n),"onUpdate:modelValue":Sn[1]||(Sn[1]=Cn=>isRef(_n)?_n.value=Cn:null),class:normalizeClass(unref(Ce).be("panel","filter")),size:"default",placeholder:bn.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(hn),"onUpdate:modelValue":Sn[2]||(Sn[2]=Cn=>isRef(hn)?hn.value=Cn:null),"validate-event":!1,class:normalizeClass([unref(Ce).is("filterable",bn.filterable),unref(Ce).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),Cn=>(openBlock(),createBlock(unref(ElCheckbox),{key:Cn[unref(xe).key],class:normalizeClass(unref(Ce).be("panel","item")),label:Cn[unref(xe).key],disabled:Cn[unref(xe).disabled],"validate-event":!1},{default:withCtx(()=>{var En;return[createVNode(pe,{option:(En=bn.optionRender)==null?void 0:En.call(bn,Cn)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(Et)&&!unref(isEmpty)(bn.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(Ce).be("panel","empty"))},toDisplayString$1(unref(Et)?unref(_e)("el.transfer.noMatch"):unref(_e)("el.transfer.noData")),3),[[vShow,unref(Et)||unref(isEmpty)(bn.data)]])],2),unref(Lt)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(Ce).be("panel","footer"))},[renderSlot(bn.$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:ie}){const le=$,ue=useSlots(),{t:pe}=useLocale(),_e=useNamespace("transfer"),{formItem:Ce}=useFormItem(),$e=reactive({leftChecked:[],rightChecked:[]}),xe=usePropsAlias(le),{sourceData:Ie,targetData:ze}=useComputedData(le),{onSourceCheckedChange:Ue,onTargetCheckedChange:qe}=useCheckedChange($e,ie),{addToLeft:Et,addToRight:Lt}=useMove(le,$e,ie),hn=ref(),vn=ref(),_n=wn=>{switch(wn){case"left":hn.value.query="";break;case"right":vn.value.query="";break}},bn=computed(()=>le.buttonTexts.length===2),Sn=computed(()=>le.titles[0]||pe("el.transfer.titles.0")),Cn=computed(()=>le.titles[1]||pe("el.transfer.titles.1")),En=computed(()=>le.filterPlaceholder||pe("el.transfer.filterPlaceholder"));watch(()=>le.modelValue,()=>{var wn;le.validateEvent&&((wn=Ce==null?void 0:Ce.validate)==null||wn.call(Ce,"change").catch(Tn=>void 0))});const $n=computed(()=>wn=>le.renderContent?le.renderContent(h$3,wn):ue.default?ue.default({option:wn}):h$3("span",wn[xe.value.label]||wn[xe.value.key]));return z({clearQuery:_n,leftPanel:hn,rightPanel:vn}),(wn,Tn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:hn,data:unref(Ie),"option-render":unref($n),placeholder:unref(En),title:unref(Sn),filterable:wn.filterable,format:wn.format,"filter-method":wn.filterMethod,"default-checked":wn.leftDefaultChecked,props:le.props,onCheckedChange:unref(Ue)},{default:withCtx(()=>[renderSlot(wn.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(_e).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(_e).e("button"),unref(_e).is("with-texts",unref(bn))]),disabled:unref(isEmpty)($e.rightChecked),onClick:unref(Et)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(wn.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$a,toDisplayString$1(wn.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(_e).e("button"),unref(_e).is("with-texts",unref(bn))]),disabled:unref(isEmpty)($e.leftChecked),onClick:unref(Lt)},{default:withCtx(()=>[unref(isUndefined$1)(wn.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$8,toDisplayString$1(wn.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:vn,data:unref(ze),"option-render":unref($n),placeholder:unref(En),filterable:wn.filterable,format:wn.format,"filter-method":wn.filterMethod,title:unref(Cn),"default-checked":wn.rightDefaultChecked,props:le.props,onCheckedChange:unref(qe)},{default:withCtx(()=>[renderSlot(wn.$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,ie)=>{const le=$.value.currentNode;ie();const ue=$.value.currentNode;le!==ue&&z("current-change",ue?ue.data:null,ue)},getChildState=$=>{let z=!0,ie=!0,le=!0;for(let ue=0,pe=$.length;ue<pe;ue++){const _e=$[ue];(_e.checked!==!0||_e.indeterminate)&&(z=!1,_e.disabled||(le=!1)),(_e.checked!==!1||_e.indeterminate)&&(ie=!1)}return{all:z,none:ie,allWithoutDisable:le,half:!z&&!ie}},reInitChecked=function($){if($.childNodes.length===0||$.loading)return;const{all:z,none:ie,half:le}=getChildState($.childNodes);z?($.checked=!0,$.indeterminate=!1):le?($.checked=!1,$.indeterminate=!0):ie&&($.checked=!1,$.indeterminate=!1);const ue=$.parent;!ue||ue.level===0||$.store.checkStrictly||reInitChecked(ue)},getPropertyFromData=function($,z){const ie=$.store.props,le=$.data||{},ue=ie[z];if(typeof ue=="function")return ue(le,$);if(typeof ue=="string")return le[ue];if(typeof ue>"u"){const pe=le[z];return pe===void 0?"":pe}};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 ie in z)hasOwn$4(z,ie)&&(this[ie]=z[ie]);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 ie=z.props;if(ie&&typeof ie.isLeaf<"u"){const pe=getPropertyFromData(this,"isLeaf");typeof pe=="boolean"&&(this.isLeafByUser=pe)}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 le=z.defaultExpandedKeys,ue=z.key;ue&&le&&le.includes(this.key)&&this.expand(null,z.autoExpandParent),ue&&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 ie;this.level===0&&Array.isArray(this.data)?ie=this.data:ie=getPropertyFromData(this,"children")||[];for(let le=0,ue=ie.length;le<ue;le++)this.insertChild({data:ie[le]})}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 ie=z.childNodes.indexOf(this);if(ie>-1)return z.childNodes[ie+1]}return null}get previousSibling(){const z=this.parent;if(z){const ie=z.childNodes.indexOf(this);if(ie>-1)return ie>0?z.childNodes[ie-1]:null}return null}contains(z,ie=!0){return(this.childNodes||[]).some(le=>le===z||ie&&le.contains(z))}remove(){const z=this.parent;z&&z.removeChild(this)}insertChild(z,ie,le){if(!z)throw new Error("InsertChild error: child is required.");if(!(z instanceof Node)){if(!le){const ue=this.getChildren(!0);ue.includes(z.data)||(typeof ie>"u"||ie<0?ue.push(z.data):ue.splice(ie,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 ie>"u"||ie<0?this.childNodes.push(z):this.childNodes.splice(ie,0,z),this.updateLeafState()}insertBefore(z,ie){let le;ie&&(le=this.childNodes.indexOf(ie)),this.insertChild(z,le)}insertAfter(z,ie){let le;ie&&(le=this.childNodes.indexOf(ie),le!==-1&&(le+=1)),this.insertChild(z,le)}removeChild(z){const ie=this.getChildren()||[],le=ie.indexOf(z.data);le>-1&&ie.splice(le,1);const ue=this.childNodes.indexOf(z);ue>-1&&(this.store&&this.store.deregisterNode(z),z.parent=null,this.childNodes.splice(ue,1)),this.updateLeafState()}removeChildByData(z){let ie=null;for(let le=0;le<this.childNodes.length;le++)if(this.childNodes[le].data===z){ie=this.childNodes[le];break}ie&&this.removeChild(ie)}expand(z,ie){const le=()=>{if(ie){let ue=this.parent;for(;ue.level>0;)ue.expanded=!0,ue=ue.parent}this.expanded=!0,z&&z(),this.childNodes.forEach(ue=>{ue.canFocus=!0})};this.shouldLoadData()?this.loadData(ue=>{Array.isArray(ue)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),le())}):le()}doCreateChildren(z,ie={}){z.forEach(le=>{this.insertChild(Object.assign({data:le},ie),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,ie,le,ue){if(this.indeterminate=z==="half",this.checked=z===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:_e,allWithoutDisable:Ce}=getChildState(this.childNodes);!this.isLeaf&&!_e&&Ce&&(this.checked=!1,z=!1);const $e=()=>{if(ie){const xe=this.childNodes;for(let Ue=0,qe=xe.length;Ue<qe;Ue++){const Et=xe[Ue];ue=ue||z!==!1;const Lt=Et.disabled?Et.checked:ue;Et.setChecked(Lt,ie,!0,ue)}const{half:Ie,all:ze}=getChildState(xe);ze||(this.checked=ze,this.indeterminate=Ie)}};if(this.shouldLoadData()){this.loadData(()=>{$e(),reInitChecked(this)},{checked:z!==!1});return}else $e()}const pe=this.parent;!pe||pe.level===0||le||reInitChecked(pe)}getChildren(z=!1){if(this.level===0)return this.data;const ie=this.data;if(!ie)return null;const le=this.store.props;let ue="children";return le&&(ue=le.children||"children"),ie[ue]===void 0&&(ie[ue]=null),z&&!ie[ue]&&(ie[ue]=[]),ie[ue]}updateChildren(){const z=this.getChildren()||[],ie=this.childNodes.map(pe=>pe.data),le={},ue=[];z.forEach((pe,_e)=>{const Ce=pe[NODE_KEY];!!Ce&&ie.findIndex(xe=>xe[NODE_KEY]===Ce)>=0?le[Ce]={index:_e,data:pe}:ue.push({index:_e,data:pe})}),this.store.lazy||ie.forEach(pe=>{le[pe[NODE_KEY]]||this.removeChildByData(pe)}),ue.forEach(({index:pe,data:_e})=>{this.insertChild({data:_e},pe)}),this.updateLeafState()}loadData(z,ie={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(ie).length)){this.loading=!0;const le=ue=>{this.childNodes=[],this.doCreateChildren(ue,ie),this.loaded=!0,this.loading=!1,this.updateLeafState(),z&&z.call(this,ue)};this.store.load(this,le)}else z&&z.call(this)}}class TreeStore{constructor(z){this.currentNode=null,this.currentNodeKey=null;for(const ie in z)hasOwn$4(z,ie)&&(this[ie]=z[ie]);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,ie=>{this.root.doCreateChildren(ie),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(z){const ie=this.filterNodeMethod,le=this.lazy,ue=function(pe){const _e=pe.root?pe.root.childNodes:pe.childNodes;if(_e.forEach(Ce=>{Ce.visible=ie.call(Ce,z,Ce.data,Ce),ue(Ce)}),!pe.visible&&_e.length){let Ce=!0;Ce=!_e.some($e=>$e.visible),pe.root?pe.root.visible=Ce===!1:pe.visible=Ce===!1}z&&pe.visible&&!pe.isLeaf&&!le&&pe.expand()};ue(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 ie=isObject$8(z)?getNodeKey(this.key,z):z;return this.nodesMap[ie]||null}insertBefore(z,ie){const le=this.getNode(ie);le.parent.insertBefore({data:z},le)}insertAfter(z,ie){const le=this.getNode(ie);le.parent.insertAfter({data:z},le)}remove(z){const ie=this.getNode(z);ie&&ie.parent&&(ie===this.currentNode&&(this.currentNode=null),ie.parent.removeChild(ie))}append(z,ie){const le=ie?this.getNode(ie):this.root;le&&le.insertChild({data:z})}_initDefaultCheckedNodes(){const z=this.defaultCheckedKeys||[],ie=this.nodesMap;z.forEach(le=>{const ue=ie[le];ue&&ue.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 ie=this.key;!z||!z.data||(ie?z.key!==void 0&&(this.nodesMap[z.key]=z):this.nodesMap[z.id]=z)}deregisterNode(z){!this.key||!z||!z.data||(z.childNodes.forEach(le=>{this.deregisterNode(le)}),delete this.nodesMap[z.key])}getCheckedNodes(z=!1,ie=!1){const le=[],ue=function(pe){(pe.root?pe.root.childNodes:pe.childNodes).forEach(Ce=>{(Ce.checked||ie&&Ce.indeterminate)&&(!z||z&&Ce.isLeaf)&&le.push(Ce.data),ue(Ce)})};return ue(this),le}getCheckedKeys(z=!1){return this.getCheckedNodes(z).map(ie=>(ie||{})[this.key])}getHalfCheckedNodes(){const z=[],ie=function(le){(le.root?le.root.childNodes:le.childNodes).forEach(pe=>{pe.indeterminate&&z.push(pe.data),ie(pe)})};return ie(this),z}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(z=>(z||{})[this.key])}_getAllNodes(){const z=[],ie=this.nodesMap;for(const le in ie)hasOwn$4(ie,le)&&z.push(ie[le]);return z}updateChildren(z,ie){const le=this.nodesMap[z];if(!le)return;const ue=le.childNodes;for(let pe=ue.length-1;pe>=0;pe--){const _e=ue[pe];this.remove(_e.data)}for(let pe=0,_e=ie.length;pe<_e;pe++){const Ce=ie[pe];this.append(Ce,le.data)}}_setCheckedKeys(z,ie=!1,le){const ue=this._getAllNodes().sort((Ce,$e)=>$e.level-Ce.level),pe=Object.create(null),_e=Object.keys(le);ue.forEach(Ce=>Ce.setChecked(!1,!1));for(let Ce=0,$e=ue.length;Ce<$e;Ce++){const xe=ue[Ce],Ie=xe.data[z].toString();if(!_e.includes(Ie)){xe.checked&&!pe[Ie]&&xe.setChecked(!1,!1);continue}let Ue=xe.parent;for(;Ue&&Ue.level>0;)pe[Ue.data[z]]=!0,Ue=Ue.parent;if(xe.isLeaf||this.checkStrictly){xe.setChecked(!0,!1);continue}if(xe.setChecked(!0,!0),ie){xe.setChecked(!1,!1);const qe=function(Et){Et.childNodes.forEach(hn=>{hn.isLeaf||hn.setChecked(!1,!1),qe(hn)})};qe(xe)}}}setCheckedNodes(z,ie=!1){const le=this.key,ue={};z.forEach(pe=>{ue[(pe||{})[le]]=!0}),this._setCheckedKeys(le,ie,ue)}setCheckedKeys(z,ie=!1){this.defaultCheckedKeys=z;const le=this.key,ue={};z.forEach(pe=>{ue[pe]=!0}),this._setCheckedKeys(le,ie,ue)}setDefaultExpandedKeys(z){z=z||[],this.defaultExpandedKeys=z,z.forEach(ie=>{const le=this.getNode(ie);le&&le.expand(null,this.autoExpandParent)})}setChecked(z,ie,le){const ue=this.getNode(z);ue&&ue.setChecked(!!ie,le)}getCurrentNode(){return this.currentNode}setCurrentNode(z){const ie=this.currentNode;ie&&(ie.isCurrent=!1),this.currentNode=z,this.currentNode.isCurrent=!0}setUserCurrentNode(z,ie=!0){const le=z[this.key],ue=this.nodesMap[le];this.setCurrentNode(ue),ie&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(z,ie=!0){if(z==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const le=this.getNode(z);le&&(this.setCurrentNode(le),ie&&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"),ie=inject("NodeInstance"),le=inject("RootTree");return()=>{const ue=$.node,{data:pe,store:_e}=ue;return $.renderContent?$.renderContent(h$3,{_self:ie,node:ue,data:pe,store:_e}):le.ctx.slots.default?le.ctx.slots.default({node:ue,data:pe}):h$3("span",{class:z.be("node","label")},[ue.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),ie={treeNodeExpand:le=>{$.node!==le&&$.node.collapse()},children:[]};return z&&z.children.push(ie),provide("TreeNodeMap",ie),{broadcastExpanded:le=>{if($.accordion)for(const ue of ie.children)ue.treeNodeExpand(le)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:$,ctx:z,el$:ie,dropIndicator$:le,store:ue}){const pe=useNamespace("tree"),_e=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:Ie,treeNode:ze})=>{if(typeof $.allowDrag=="function"&&!$.allowDrag(ze.node))return Ie.preventDefault(),!1;Ie.dataTransfer.effectAllowed="move";try{Ie.dataTransfer.setData("text/plain","")}catch{}_e.value.draggingNode=ze,z.emit("node-drag-start",ze.node,Ie)},treeNodeDragOver:({event:Ie,treeNode:ze})=>{const Ue=ze,qe=_e.value.dropNode;qe&&qe.node.id!==Ue.node.id&&removeClass(qe.$el,pe.is("drop-inner"));const Et=_e.value.draggingNode;if(!Et||!Ue)return;let Lt=!0,hn=!0,vn=!0,_n=!0;typeof $.allowDrop=="function"&&(Lt=$.allowDrop(Et.node,Ue.node,"prev"),_n=hn=$.allowDrop(Et.node,Ue.node,"inner"),vn=$.allowDrop(Et.node,Ue.node,"next")),Ie.dataTransfer.dropEffect=hn||Lt||vn?"move":"none",(Lt||hn||vn)&&(qe==null?void 0:qe.node.id)!==Ue.node.id&&(qe&&z.emit("node-drag-leave",Et.node,qe.node,Ie),z.emit("node-drag-enter",Et.node,Ue.node,Ie)),(Lt||hn||vn)&&(_e.value.dropNode=Ue),Ue.node.nextSibling===Et.node&&(vn=!1),Ue.node.previousSibling===Et.node&&(Lt=!1),Ue.node.contains(Et.node,!1)&&(hn=!1),(Et.node===Ue.node||Et.node.contains(Ue.node))&&(Lt=!1,hn=!1,vn=!1);const bn=Ue.$el.getBoundingClientRect(),Sn=ie.value.getBoundingClientRect();let Cn;const En=Lt?hn?.25:vn?.45:1:-1,$n=vn?hn?.75:Lt?.55:0:1;let wn=-9999;const Tn=Ie.clientY-bn.top;Tn<bn.height*En?Cn="before":Tn>bn.height*$n?Cn="after":hn?Cn="inner":Cn="none";const xn=Ue.$el.querySelector(`.${pe.be("node","expand-icon")}`).getBoundingClientRect(),Pn=le.value;Cn==="before"?wn=xn.top-Sn.top:Cn==="after"&&(wn=xn.bottom-Sn.top),Pn.style.top=`${wn}px`,Pn.style.left=`${xn.right-Sn.left}px`,Cn==="inner"?addClass(Ue.$el,pe.is("drop-inner")):removeClass(Ue.$el,pe.is("drop-inner")),_e.value.showDropIndicator=Cn==="before"||Cn==="after",_e.value.allowDrop=_e.value.showDropIndicator||_n,_e.value.dropType=Cn,z.emit("node-drag-over",Et.node,Ue.node,Ie)},treeNodeDragEnd:Ie=>{const{draggingNode:ze,dropType:Ue,dropNode:qe}=_e.value;if(Ie.preventDefault(),Ie.dataTransfer.dropEffect="move",ze&&qe){const Et={data:ze.node.data};Ue!=="none"&&ze.node.remove(),Ue==="before"?qe.node.parent.insertBefore(Et,qe.node):Ue==="after"?qe.node.parent.insertAfter(Et,qe.node):Ue==="inner"&&qe.node.insertChild(Et),Ue!=="none"&&ue.value.registerNode(Et),removeClass(qe.$el,pe.is("drop-inner")),z.emit("node-drag-end",ze.node,qe.node,Ue,Ie),Ue!=="none"&&z.emit("node-drop",ze.node,qe.node,Ue,Ie)}ze&&!qe&&z.emit("node-drag-end",ze.node,null,Ue,Ie),_e.value.showDropIndicator=!1,_e.value.draggingNode=null,_e.value.dropNode=null,_e.value.allowDrop=!0}}),{dragState:_e}}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 ie=useNamespace("tree"),{broadcastExpanded:le}=useNodeExpandEventBroadcast($),ue=inject("RootTree"),pe=ref(!1),_e=ref(!1),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=inject(dragEventsKey),ze=getCurrentInstance();provide("NodeInstance",ze),$.node.expanded&&(pe.value=!0,_e.value=!0);const Ue=ue.props.children||"children";watch(()=>{const Tn=$.node.data[Ue];return Tn&&[...Tn]},()=>{$.node.updateChildren()}),watch(()=>$.node.indeterminate,Tn=>{Lt($.node.checked,Tn)}),watch(()=>$.node.checked,Tn=>{Lt(Tn,$.node.indeterminate)}),watch(()=>$.node.expanded,Tn=>{nextTick(()=>pe.value=Tn),Tn&&(_e.value=!0)});const qe=Tn=>getNodeKey(ue.props.nodeKey,Tn.data),Et=Tn=>{const xn=$.props.class;if(!xn)return{};let Pn;if(isFunction$5(xn)){const{data:kn}=Tn;Pn=xn(kn,Tn)}else Pn=xn;return isString$7(Pn)?{[Pn]:!0}:Pn},Lt=(Tn,xn)=>{(Ce.value!==Tn||$e.value!==xn)&&ue.ctx.emit("check-change",$.node.data,Tn,xn),Ce.value=Tn,$e.value=xn},hn=Tn=>{handleCurrentChange(ue.store,ue.ctx.emit,()=>ue.store.value.setCurrentNode($.node)),ue.currentNode.value=$.node,ue.props.expandOnClickNode&&_n(),ue.props.checkOnClickNode&&!$.node.disabled&&bn(null,{target:{checked:!$.node.checked}}),ue.ctx.emit("node-click",$.node.data,$.node,ze,Tn)},vn=Tn=>{ue.instance.vnode.props.onNodeContextmenu&&(Tn.stopPropagation(),Tn.preventDefault()),ue.ctx.emit("node-contextmenu",Tn,$.node.data,$.node,ze)},_n=()=>{$.node.isLeaf||(pe.value?(ue.ctx.emit("node-collapse",$.node.data,$.node,ze),$.node.collapse()):($.node.expand(),z.emit("node-expand",$.node.data,$.node,ze)))},bn=(Tn,xn)=>{$.node.setChecked(xn.target.checked,!ue.props.checkStrictly),nextTick(()=>{const Pn=ue.store.value;ue.ctx.emit("check",$.node.data,{checkedNodes:Pn.getCheckedNodes(),checkedKeys:Pn.getCheckedKeys(),halfCheckedNodes:Pn.getHalfCheckedNodes(),halfCheckedKeys:Pn.getHalfCheckedKeys()})})};return{ns:ie,node$:xe,tree:ue,expanded:pe,childNodeRendered:_e,oldChecked:Ce,oldIndeterminate:$e,getNodeKey:qe,getNodeClass:Et,handleSelectChange:Lt,handleClick:hn,handleContextMenu:vn,handleExpandIconClick:_n,handleCheckChange:bn,handleChildNodeExpand:(Tn,xn,Pn)=>{le(xn),ue.ctx.emit("node-expand",Tn,xn,Pn)},handleDragStart:Tn=>{ue.props.draggable&&Ie.treeNodeDragStart({event:Tn,treeNode:$})},handleDragOver:Tn=>{Tn.preventDefault(),ue.props.draggable&&Ie.treeNodeDragOver({event:Tn,treeNode:{$el:xe.value,node:$.node}})},handleDrop:Tn=>{Tn.preventDefault()},handleDragEnd:Tn=>{ue.props.draggable&&Ie.treeNodeDragEnd(Tn)},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,ie,le,ue,pe){const _e=resolveComponent("el-icon"),Ce=resolveComponent("el-checkbox"),$e=resolveComponent("loading"),xe=resolveComponent("node-content"),Ie=resolveComponent("el-tree-node"),ze=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((...Ue)=>$.handleClick&&$.handleClick(...Ue),["stop"])),onContextmenu:z[2]||(z[2]=(...Ue)=>$.handleContextMenu&&$.handleContextMenu(...Ue)),onDragstart:z[3]||(z[3]=withModifiers((...Ue)=>$.handleDragStart&&$.handleDragStart(...Ue),["stop"])),onDragover:z[4]||(z[4]=withModifiers((...Ue)=>$.handleDragOver&&$.handleDragOver(...Ue),["stop"])),onDragend:z[5]||(z[5]=withModifiers((...Ue)=>$.handleDragEnd&&$.handleDragEnd(...Ue),["stop"])),onDrop:z[6]||(z[6]=withModifiers((...Ue)=>$.handleDrop&&$.handleDrop(...Ue),["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(_e,{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(Ce,{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(_e,{key:2,class:normalizeClass([$.ns.be("node","loading-icon"),$.ns.is("loading")])},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(xe,{node:$.node,"render-content":$.renderContent},null,8,["node","render-content"])],6),createVNode(ze,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,Ue=>(openBlock(),createBlock(Ie,{key:$.getNodeKey(Ue),"render-content":$.renderContent,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,node:Ue,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 ie=useNamespace("tree"),le=shallowRef([]),ue=shallowRef([]);onMounted(()=>{_e()}),onUpdated(()=>{le.value=Array.from($.value.querySelectorAll("[role=treeitem]")),ue.value=Array.from($.value.querySelectorAll("input[type=checkbox]"))}),watch(ue,Ce=>{Ce.forEach($e=>{$e.setAttribute("tabindex","-1")})}),useEventListener$1($,"keydown",Ce=>{const $e=Ce.target;if(!$e.className.includes(ie.b("node")))return;const xe=Ce.code;le.value=Array.from($.value.querySelectorAll(`.${ie.is("focusable")}[role=treeitem]`));const Ie=le.value.indexOf($e);let ze;if([EVENT_CODE.up,EVENT_CODE.down].includes(xe)){if(Ce.preventDefault(),xe===EVENT_CODE.up){ze=Ie===-1?0:Ie!==0?Ie-1:le.value.length-1;const qe=ze;for(;!z.value.getNode(le.value[ze].dataset.key).canFocus;){if(ze--,ze===qe){ze=-1;break}ze<0&&(ze=le.value.length-1)}}else{ze=Ie===-1?0:Ie<le.value.length-1?Ie+1:0;const qe=ze;for(;!z.value.getNode(le.value[ze].dataset.key).canFocus;){if(ze++,ze===qe){ze=-1;break}ze>=le.value.length&&(ze=0)}}ze!==-1&&le.value[ze].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(xe)&&(Ce.preventDefault(),$e.click());const Ue=$e.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes(xe)&&Ue&&(Ce.preventDefault(),Ue.click())});const _e=()=>{var Ce;le.value=Array.from($.value.querySelectorAll(`.${ie.is("focusable")}[role=treeitem]`)),ue.value=Array.from($.value.querySelectorAll("input[type=checkbox]"));const $e=$.value.querySelectorAll(`.${ie.is("checked")}[role=treeitem]`);if($e.length){$e[0].setAttribute("tabindex","0");return}(Ce=le.value[0])==null||Ce.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:ie}=useLocale(),le=useNamespace("tree"),ue=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}));ue.value.initialize();const pe=ref(ue.value.root),_e=ref(null),Ce=ref(null),$e=ref(null),{broadcastExpanded:xe}=useNodeExpandEventBroadcast($),{dragState:Ie}=useDragNodeHandler({props:$,ctx:z,el$:Ce,dropIndicator$:$e,store:ue});useKeydown({el$:Ce},ue);const ze=computed(()=>{const{childNodes:In}=pe.value;return!In||In.length===0||In.every(({visible:Vn})=>!Vn)});watch(()=>$.currentNodeKey,In=>{ue.value.setCurrentNodeKey(In)}),watch(()=>$.defaultCheckedKeys,In=>{ue.value.setDefaultCheckedKey(In)}),watch(()=>$.defaultExpandedKeys,In=>{ue.value.setDefaultExpandedKeys(In)}),watch(()=>$.data,In=>{ue.value.setData(In)},{deep:!0}),watch(()=>$.checkStrictly,In=>{ue.value.checkStrictly=In});const Ue=In=>{if(!$.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");ue.value.filter(In)},qe=In=>getNodeKey($.nodeKey,In.data),Et=In=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Vn=ue.value.getNode(In);if(!Vn)return[];const Mn=[Vn.data];let zn=Vn.parent;for(;zn&&zn!==pe.value;)Mn.push(zn.data),zn=zn.parent;return Mn.reverse()},Lt=(In,Vn)=>ue.value.getCheckedNodes(In,Vn),hn=In=>ue.value.getCheckedKeys(In),vn=()=>{const In=ue.value.getCurrentNode();return In?In.data:null},_n=()=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const In=vn();return In?In[$.nodeKey]:null},bn=(In,Vn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");ue.value.setCheckedNodes(In,Vn)},Sn=(In,Vn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");ue.value.setCheckedKeys(In,Vn)},Cn=(In,Vn,Mn)=>{ue.value.setChecked(In,Vn,Mn)},En=()=>ue.value.getHalfCheckedNodes(),$n=()=>ue.value.getHalfCheckedKeys(),wn=(In,Vn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");handleCurrentChange(ue,z.emit,()=>ue.value.setUserCurrentNode(In,Vn))},Tn=(In,Vn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");handleCurrentChange(ue,z.emit,()=>ue.value.setCurrentNodeKey(In,Vn))},xn=In=>ue.value.getNode(In),Pn=In=>{ue.value.remove(In)},kn=(In,Vn)=>{ue.value.append(In,Vn)},An=(In,Vn)=>{ue.value.insertBefore(In,Vn)},Nn=(In,Vn)=>{ue.value.insertAfter(In,Vn)},Fn=(In,Vn,Mn)=>{xe(Vn),z.emit("node-expand",In,Vn,Mn)},Ln=(In,Vn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");ue.value.updateChildren(In,Vn)};return provide("RootTree",{ctx:z,props:$,store:ue,root:pe,currentNode:_e,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:le,store:ue,root:pe,currentNode:_e,dragState:Ie,el$:Ce,dropIndicator$:$e,isEmpty:ze,filter:Ue,getNodeKey:qe,getNodePath:Et,getCheckedNodes:Lt,getCheckedKeys:hn,getCurrentNode:vn,getCurrentKey:_n,setCheckedNodes:bn,setCheckedKeys:Sn,setChecked:Cn,getHalfCheckedNodes:En,getHalfCheckedKeys:$n,setCurrentNode:wn,setCurrentKey:Tn,t:ie,getNode:xn,remove:Pn,append:kn,insertBefore:An,insertAfter:Nn,handleNodeExpand:Fn,updateKeyChildren:Ln}}});function _sfc_render$2($,z,ie,le,ue,pe){const _e=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,Ce=>(openBlock(),createBlock(_e,{key:$.getNodeKey(Ce),node:Ce,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 Ce;return[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1((Ce=$.emptyText)!=null?Ce:$.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:ie,key:le})=>{const ue=useNamespace("tree-select"),pe={...pick$1(toRefs($),Object.keys(ElSelect.props)),...z,valueKey:le,popperClass:computed(()=>{const _e=[ue.e("popper")];return $.popperClass&&_e.push($.popperClass),_e.join(" ")}),filterMethod:(_e="")=>{$.filterMethod&&$.filterMethod(_e),nextTick(()=>{var Ce;(Ce=ie.value)==null||Ce.filter(_e)})},onVisibleChange:_e=>{var Ce;(Ce=z.onVisibleChange)==null||Ce.call(z,_e),$.filterable&&_e&&pe.filterMethod()}};return pe},component=defineComponent({extends:ElOption,setup($,z){const ie=ElOption.setup($,z);delete ie.selectOptionClick;const le=getCurrentInstance().proxy;return nextTick(()=>{ie.select.cachedOptions.get(le.value)||ie.select.onOptionCreate(le)}),ie},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,ie,le,ue){for(let pe=0;pe<$.length;pe++){const _e=$[pe];if(z(_e,pe,$,ue))return le?le(_e,pe,$,ue):_e;{const Ce=ie(_e);if(isValidArray(Ce)){const $e=treeFind(Ce,z,ie,le,_e);if($e)return $e}}}}function treeEach($,z,ie,le){for(let ue=0;ue<$.length;ue++){const pe=$[ue];z(pe,ue,$,le);const _e=ie(pe);isValidArray(_e)&&treeEach(_e,z,ie,pe)}}const useTree$1=($,{attrs:z,slots:ie,emit:le},{select:ue,tree:pe,key:_e})=>{watch(()=>$.modelValue,()=>{$.showCheckbox&&nextTick(()=>{const Ue=pe.value;Ue&&!isEqual$1(Ue.getCheckedKeys(),toValidArray($.modelValue))&&Ue.setCheckedKeys(toValidArray($.modelValue))})},{immediate:!0,deep:!0});const Ce=computed(()=>({value:_e.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...$.props})),$e=(Ue,qe)=>{var Et;const Lt=Ce.value[Ue];return isFunction$5(Lt)?Lt(qe,(Et=pe.value)==null?void 0:Et.getNode($e("value",qe))):qe[Lt]},xe=toValidArray($.modelValue).map(Ue=>treeFind($.data||[],qe=>$e("value",qe)===Ue,qe=>$e("children",qe),(qe,Et,Lt,hn)=>hn&&$e("value",hn))).filter(Ue=>isValidValue(Ue)),Ie=computed(()=>{if(!$.renderAfterExpand&&!$.lazy)return[];const Ue=[];return treeEach($.data.concat($.cacheData),qe=>{const Et=$e("value",qe);Ue.push({value:Et,currentLabel:$e("label",qe),isDisabled:$e("disabled",qe)})},qe=>$e("children",qe)),Ue}),ze=computed(()=>Ie.value.reduce((Ue,qe)=>({...Ue,[qe.value]:qe}),{}));return{...pick$1(toRefs($),Object.keys(_Tree.props)),...z,nodeKey:_e,expandOnClickNode:computed(()=>!$.checkStrictly&&$.expandOnClickNode),defaultExpandedKeys:computed(()=>$.defaultExpandedKeys?$.defaultExpandedKeys.concat(xe):xe),renderContent:(Ue,{node:qe,data:Et,store:Lt})=>Ue(component,{value:$e("value",Et),label:$e("label",Et),disabled:$e("disabled",Et)},$.renderContent?()=>$.renderContent(Ue,{node:qe,data:Et,store:Lt}):ie.default?()=>ie.default({node:qe,data:Et,store:Lt}):void 0),filterNodeMethod:(Ue,qe,Et)=>{var Lt;return $.filterNodeMethod?$.filterNodeMethod(Ue,qe,Et):Ue?(Lt=$e("label",qe))==null?void 0:Lt.includes(Ue):!0},onNodeClick:(Ue,qe,Et)=>{var Lt,hn,vn;if((Lt=z.onNodeClick)==null||Lt.call(z,Ue,qe,Et),!($.showCheckbox&&$.checkOnClickNode))if(!$.showCheckbox&&($.checkStrictly||qe.isLeaf)){if(!$e("disabled",Ue)){const _n=(hn=ue.value)==null?void 0:hn.options.get($e("value",Ue));(vn=ue.value)==null||vn.handleOptionSelect(_n,!0)}}else $.expandOnClickNode&&Et.proxy.handleExpandIconClick()},onCheck:(Ue,qe)=>{if(!$.showCheckbox)return;const Et=$e("value",Ue),Lt=qe.checkedKeys,hn=$.multiple?toValidArray($.modelValue).filter(_n=>_n in ze.value&&!pe.value.getNode(_n)&&!Lt.includes(_n)):[],vn=Lt.concat(hn);if($.checkStrictly)le(UPDATE_MODEL_EVENT,$.multiple?vn:vn.includes(Et)?Et:void 0);else if($.multiple)le(UPDATE_MODEL_EVENT,pe.value.getCheckedKeys(!0));else{const _n=treeFind([Ue],Cn=>!isValidArray($e("children",Cn))&&!$e("disabled",Cn),Cn=>$e("children",Cn)),bn=_n?$e("value",_n):void 0,Sn=isValidValue($.modelValue)&&!!treeFind([Ue],Cn=>$e("value",Cn)===$.modelValue,Cn=>$e("children",Cn));le(UPDATE_MODEL_EVENT,bn===$.modelValue||Sn?void 0:bn)}nextTick(()=>{var _n;const bn=toValidArray($.modelValue);pe.value.setCheckedKeys(bn),(_n=z.onCheck)==null||_n.call(z,Ue,{checkedKeys:pe.value.getCheckedKeys(),checkedNodes:pe.value.getCheckedNodes(),halfCheckedKeys:pe.value.getHalfCheckedKeys(),halfCheckedNodes:pe.value.getHalfCheckedNodes()})})},cacheOptions:Ie}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup($){const z=inject(selectKey);return watch(()=>$.data,()=>{var ie;$.data.forEach(ue=>{z.cachedOptions.has(ue.value)||z.cachedOptions.set(ue.value,ue)});const le=((ie=z.selectWrapper)==null?void 0:ie.querySelectorAll("input"))||[];Array.from(le).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:ie,expose:le}=z,ue=ref(),pe=ref(),_e=computed(()=>$.nodeKey||$.valueKey||"value"),Ce=useSelect($,z,{select:ue,tree:pe,key:_e}),{cacheOptions:$e,...xe}=useTree$1($,z,{select:ue,tree:pe,key:_e}),Ie=reactive({});return le(Ie),onMounted(()=>{Object.assign(Ie,{...pick$1(pe.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(ue.value,["focus","blur"])})}),()=>h$3(ElSelect,reactive({...Ce,ref:ze=>ue.value=ze}),{...ie,default:()=>[h$3(CacheOptions,{data:$e.value}),h$3(_Tree,reactive({...xe,ref:ze=>pe.value=ze}))]})}});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,ie)=>$&&z&&ie,[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,ie)=>$&&z&&ie},treeNodeEmits={click:($,z)=>!!($&&z),toggle:$=>!!$,check:($,z)=>$&&typeof z=="boolean"};function useCheck($,z){const ie=ref(new Set),le=ref(new Set),{emit:ue}=getCurrentInstance();watch([()=>z.value,()=>$.defaultCheckedKeys],()=>nextTick(()=>{_n($.defaultCheckedKeys)}),{immediate:!0});const pe=()=>{if(!z.value||!$.showCheckbox||$.checkStrictly)return;const{levelTreeNodeMap:bn,maxLevel:Sn}=z.value,Cn=ie.value,En=new Set;for(let $n=Sn-1;$n>=1;--$n){const wn=bn.get($n);wn&&wn.forEach(Tn=>{const xn=Tn.children;if(xn){let Pn=!0,kn=!1;for(const An of xn){const Nn=An.key;if(Cn.has(Nn))kn=!0;else if(En.has(Nn)){Pn=!1,kn=!0;break}else Pn=!1}Pn?Cn.add(Tn.key):kn?(En.add(Tn.key),Cn.delete(Tn.key)):(Cn.delete(Tn.key),En.delete(Tn.key))}})}le.value=En},_e=bn=>ie.value.has(bn.key),Ce=bn=>le.value.has(bn.key),$e=(bn,Sn,Cn=!0)=>{const En=ie.value,$n=(wn,Tn)=>{En[Tn?SetOperationEnum.ADD:SetOperationEnum.DELETE](wn.key);const xn=wn.children;!$.checkStrictly&&xn&&xn.forEach(Pn=>{Pn.disabled||$n(Pn,Tn)})};$n(bn,Sn),pe(),Cn&&xe(bn,Sn)},xe=(bn,Sn)=>{const{checkedNodes:Cn,checkedKeys:En}=Et(),{halfCheckedNodes:$n,halfCheckedKeys:wn}=Lt();ue(NODE_CHECK,bn.data,{checkedKeys:En,checkedNodes:Cn,halfCheckedKeys:wn,halfCheckedNodes:$n}),ue(NODE_CHECK_CHANGE,bn.data,Sn)};function Ie(bn=!1){return Et(bn).checkedKeys}function ze(bn=!1){return Et(bn).checkedNodes}function Ue(){return Lt().halfCheckedKeys}function qe(){return Lt().halfCheckedNodes}function Et(bn=!1){const Sn=[],Cn=[];if(z!=null&&z.value&&$.showCheckbox){const{treeNodeMap:En}=z.value;ie.value.forEach($n=>{const wn=En.get($n);wn&&(!bn||bn&&wn.isLeaf)&&(Cn.push($n),Sn.push(wn.data))})}return{checkedKeys:Cn,checkedNodes:Sn}}function Lt(){const bn=[],Sn=[];if(z!=null&&z.value&&$.showCheckbox){const{treeNodeMap:Cn}=z.value;le.value.forEach(En=>{const $n=Cn.get(En);$n&&(Sn.push(En),bn.push($n.data))})}return{halfCheckedNodes:bn,halfCheckedKeys:Sn}}function hn(bn){ie.value.clear(),le.value.clear(),_n(bn)}function vn(bn,Sn){if(z!=null&&z.value&&$.showCheckbox){const Cn=z.value.treeNodeMap.get(bn);Cn&&$e(Cn,Sn,!1)}}function _n(bn){if(z!=null&&z.value){const{treeNodeMap:Sn}=z.value;if($.showCheckbox&&Sn&&bn)for(const Cn of bn){const En=Sn.get(Cn);En&&!_e(En)&&$e(En,!0,!1)}}}return{updateCheckedKeys:pe,toggleCheckbox:$e,isChecked:_e,isIndeterminate:Ce,getCheckedKeys:Ie,getCheckedNodes:ze,getHalfCheckedKeys:Ue,getHalfCheckedNodes:qe,setChecked:vn,setCheckedKeys:hn}}function useFilter($,z){const ie=ref(new Set([])),le=ref(new Set([])),ue=computed(()=>isFunction$5($.filterMethod));function pe(Ce){var $e;if(!ue.value)return;const xe=new Set,Ie=le.value,ze=ie.value,Ue=[],qe=(($e=z.value)==null?void 0:$e.treeNodes)||[],Et=$.filterMethod;ze.clear();function Lt(hn){hn.forEach(vn=>{Ue.push(vn),Et!=null&&Et(Ce,vn.data)?Ue.forEach(bn=>{xe.add(bn.key)}):vn.isLeaf&&ze.add(vn.key);const _n=vn.children;if(_n&&Lt(_n),!vn.isLeaf){if(!xe.has(vn.key))ze.add(vn.key);else if(_n){let bn=!0;for(const Sn of _n)if(!ze.has(Sn.key)){bn=!1;break}bn?Ie.add(vn.key):Ie.delete(vn.key)}}Ue.pop()})}return Lt(qe),xe}function _e(Ce){return le.value.has(Ce.key)}return{hiddenExpandIconKeySet:le,hiddenNodeKeySet:ie,doFilter:pe,isForceHiddenExpandIcon:_e}}function useTree($,z){const ie=ref(new Set($.defaultExpandedKeys)),le=ref(),ue=shallowRef();watch(()=>$.currentNodeKey,Kn=>{le.value=Kn},{immediate:!0}),watch(()=>$.data,Kn=>{sr(Kn)},{immediate:!0});const{isIndeterminate:pe,isChecked:_e,toggleCheckbox:Ce,getCheckedKeys:$e,getCheckedNodes:xe,getHalfCheckedKeys:Ie,getHalfCheckedNodes:ze,setChecked:Ue,setCheckedKeys:qe}=useCheck($,ue),{doFilter:Et,hiddenNodeKeySet:Lt,isForceHiddenExpandIcon:hn}=useFilter($,ue),vn=computed(()=>{var Kn;return((Kn=$.props)==null?void 0:Kn.value)||TreeOptionsEnum.KEY}),_n=computed(()=>{var Kn;return((Kn=$.props)==null?void 0:Kn.children)||TreeOptionsEnum.CHILDREN}),bn=computed(()=>{var Kn;return((Kn=$.props)==null?void 0:Kn.disabled)||TreeOptionsEnum.DISABLED}),Sn=computed(()=>{var Kn;return((Kn=$.props)==null?void 0:Kn.label)||TreeOptionsEnum.LABEL}),Cn=computed(()=>{const Kn=ie.value,Wn=Lt.value,nr=[],fr=ue.value&&ue.value.treeNodes||[];function Gn(){const Xn=[];for(let or=fr.length-1;or>=0;--or)Xn.push(fr[or]);for(;Xn.length;){const or=Xn.pop();if(or&&(Wn.has(or.key)||nr.push(or),Kn.has(or.key))){const vr=or.children;if(vr){const _r=vr.length;for(let ir=_r-1;ir>=0;--ir)Xn.push(vr[ir])}}}}return Gn(),nr}),En=computed(()=>Cn.value.length>0);function $n(Kn){const Wn=new Map,nr=new Map;let fr=1;function Gn(or,vr=1,_r=void 0){var ir;const Pr=[];for(const gr of or){const kr=xn(gr),pr={level:vr,key:kr,data:gr};pr.label=kn(gr),pr.parent=_r;const lr=Tn(gr);pr.disabled=Pn(gr),pr.isLeaf=!lr||lr.length===0,lr&&lr.length&&(pr.children=Gn(lr,vr+1,pr)),Pr.push(pr),Wn.set(kr,pr),nr.has(vr)||nr.set(vr,[]),(ir=nr.get(vr))==null||ir.push(pr)}return vr>fr&&(fr=vr),Pr}const Xn=Gn(Kn);return{treeNodeMap:Wn,levelTreeNodeMap:nr,maxLevel:fr,treeNodes:Xn}}function wn(Kn){const Wn=Et(Kn);Wn&&(ie.value=Wn)}function Tn(Kn){return Kn[_n.value]}function xn(Kn){return Kn?Kn[vn.value]:""}function Pn(Kn){return Kn[bn.value]}function kn(Kn){return Kn[Sn.value]}function An(Kn){ie.value.has(Kn.key)?Mn(Kn):Vn(Kn)}function Nn(Kn){ie.value=new Set(Kn)}function Fn(Kn,Wn){z(NODE_CLICK,Kn.data,Kn,Wn),Ln(Kn),$.expandOnClickNode&&An(Kn),$.showCheckbox&&$.checkOnClickNode&&!Kn.disabled&&Ce(Kn,!_e(Kn),!0)}function Ln(Kn){Hn(Kn)||(le.value=Kn.key,z(CURRENT_CHANGE,Kn.data,Kn))}function In(Kn,Wn){Ce(Kn,Wn)}function Vn(Kn){const Wn=ie.value;if(ue.value&&$.accordion){const{treeNodeMap:nr}=ue.value;Wn.forEach(fr=>{const Gn=nr.get(fr);Kn&&Kn.level===(Gn==null?void 0:Gn.level)&&Wn.delete(fr)})}Wn.add(Kn.key),z(NODE_EXPAND,Kn.data,Kn)}function Mn(Kn){ie.value.delete(Kn.key),z(NODE_COLLAPSE,Kn.data,Kn)}function zn(Kn){return ie.value.has(Kn.key)}function qn(Kn){return!!Kn.disabled}function Hn(Kn){const Wn=le.value;return!!Wn&&Wn===Kn.key}function Jn(){var Kn,Wn;if(le.value)return(Wn=(Kn=ue.value)==null?void 0:Kn.treeNodeMap.get(le.value))==null?void 0:Wn.data}function ur(){return le.value}function yr(Kn){le.value=Kn}function sr(Kn){nextTick(()=>ue.value=$n(Kn))}function Zn(Kn){var Wn;const nr=isObject$8(Kn)?xn(Kn):Kn;return(Wn=ue.value)==null?void 0:Wn.treeNodeMap.get(nr)}return{tree:ue,flattenTree:Cn,isNotEmpty:En,getKey:xn,getChildren:Tn,toggleExpand:An,toggleCheckbox:Ce,isExpanded:zn,isChecked:_e,isIndeterminate:pe,isDisabled:qn,isCurrent:Hn,isForceHiddenExpandIcon:hn,handleNodeClick:Fn,handleNodeCheck:In,getCurrentNode:Jn,getCurrentKey:ur,setCurrentKey:yr,getCheckedKeys:$e,getCheckedNodes:xe,getHalfCheckedKeys:Ie,getHalfCheckedNodes:ze,setChecked:Ue,setCheckedKeys:qe,filter:wn,setData:sr,getNode:Zn,expandNode:Vn,collapseNode:Mn,setExpandedKeys:Nn}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup($){const z=inject(ROOT_TREE_INJECTION_KEY),ie=useNamespace("tree");return()=>{const le=$.node,{data:ue}=le;return z!=null&&z.ctx.slots.default?z.ctx.slots.default({node:le,data:ue}):h$3("span",{class:ie.be("node","label")},[le==null?void 0:le.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 ie=$,le=inject(ROOT_TREE_INJECTION_KEY),ue=useNamespace("tree"),pe=computed(()=>{var ze;return(ze=le==null?void 0:le.props.indent)!=null?ze:16}),_e=computed(()=>{var ze;return(ze=le==null?void 0:le.props.icon)!=null?ze:caret_right_default}),Ce=ze=>{z("click",ie.node,ze)},$e=()=>{z("toggle",ie.node)},xe=ze=>{z("check",ie.node,ze)},Ie=ze=>{var Ue,qe,Et,Lt;(Et=(qe=(Ue=le==null?void 0:le.instance)==null?void 0:Ue.vnode)==null?void 0:qe.props)!=null&&Et.onNodeContextmenu&&(ze.stopPropagation(),ze.preventDefault()),le==null||le.ctx.emit(NODE_CONTEXTMENU,ze,(Lt=ie.node)==null?void 0:Lt.data,ie.node)};return(ze,Ue)=>{var qe,Et,Lt;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref(ue).b("node"),unref(ue).is("expanded",ze.expanded),unref(ue).is("current",ze.current),unref(ue).is("focusable",!ze.disabled),unref(ue).is("checked",!ze.disabled&&ze.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":ze.expanded,"aria-disabled":ze.disabled,"aria-checked":ze.checked,"data-key":(qe=ze.node)==null?void 0:qe.key,onClick:withModifiers(Ce,["stop"]),onContextmenu:Ie},[createBaseVNode("div",{class:normalizeClass(unref(ue).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(ze.node.level-1)*unref(pe)}px`,height:ze.itemSize+"px"})},[unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ue).is("leaf",!!((Et=ze.node)!=null&&Et.isLeaf)),unref(ue).is("hidden",ze.hiddenExpandIcon),{expanded:!((Lt=ze.node)!=null&&Lt.isLeaf)&&ze.expanded},unref(ue).be("node","expand-icon")]),onClick:withModifiers($e,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),ze.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":ze.checked,indeterminate:ze.indeterminate,disabled:ze.disabled,onChange:xe,onClick:Ue[0]||(Ue[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode(unref(ElNodeContent),{node:ze.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:ie}){const le=$,ue=useSlots(),pe=computed(()=>le.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:ie,slots:ue},props:le,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:_e}=useLocale(),Ce=useNamespace("tree"),{flattenTree:$e,isNotEmpty:xe,toggleExpand:Ie,isExpanded:ze,isIndeterminate:Ue,isChecked:qe,isDisabled:Et,isCurrent:Lt,isForceHiddenExpandIcon:hn,handleNodeClick:vn,handleNodeCheck:_n,toggleCheckbox:bn,getCurrentNode:Sn,getCurrentKey:Cn,setCurrentKey:En,getCheckedKeys:$n,getCheckedNodes:wn,getHalfCheckedKeys:Tn,getHalfCheckedNodes:xn,setChecked:Pn,setCheckedKeys:kn,filter:An,setData:Nn,getNode:Fn,expandNode:Ln,collapseNode:In,setExpandedKeys:Vn}=useTree(le,ie);return z({toggleCheckbox:bn,getCurrentNode:Sn,getCurrentKey:Cn,setCurrentKey:En,getCheckedKeys:$n,getCheckedNodes:wn,getHalfCheckedKeys:Tn,getHalfCheckedNodes:xn,setChecked:Pn,setCheckedKeys:kn,filter:An,setData:Nn,getNode:Fn,expandNode:Ln,collapseNode:In,setExpandedKeys:Vn}),(Mn,zn)=>{var qn;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ce).b(),{[unref(Ce).m("highlight-current")]:Mn.highlightCurrent}]),role:"tree"},[unref(xe)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,"class-name":unref(Ce).b("virtual-list"),data:unref($e),total:unref($e).length,height:Mn.height,"item-size":unref(pe),"perf-mode":Mn.perfMode},{default:withCtx(({data:Hn,index:Jn,style:ur})=>[(openBlock(),createBlock(ElTreeNode,{key:Hn[Jn].key,style:normalizeStyle$1(ur),node:Hn[Jn],expanded:unref(ze)(Hn[Jn]),"show-checkbox":Mn.showCheckbox,checked:unref(qe)(Hn[Jn]),indeterminate:unref(Ue)(Hn[Jn]),"item-size":unref(pe),disabled:unref(Et)(Hn[Jn]),current:unref(Lt)(Hn[Jn]),"hidden-expand-icon":unref(hn)(Hn[Jn]),onClick:unref(vn),onToggle:unref(Ie),onCheck:unref(_n)},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(Ce).e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(unref(Ce).e("empty-text"))},toDisplayString$1((qn=Mn.emptyText)!=null?qn:unref(_e)("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,ie,le,ue){super(z),this.name="UploadAjaxError",this.status=ie,this.method=le,this.url=ue}}function getError($,z,ie){let le;return ie.response?le=`${ie.response.error||ie.response}`:ie.responseText?le=`${ie.responseText}`:le=`fail to ${z.method} ${$} ${ie.status}`,new UploadAjaxError(le,ie.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,ie=$.action;z.upload&&z.upload.addEventListener("progress",pe=>{const _e=pe;_e.percent=pe.total>0?pe.loaded/pe.total*100:0,$.onProgress(_e)});const le=new FormData;if($.data)for(const[pe,_e]of Object.entries($.data))Array.isArray(_e)?le.append(pe,..._e):le.append(pe,_e);le.append($.filename,$.file,$.file.name),z.addEventListener("error",()=>{$.onError(getError(ie,$,z))}),z.addEventListener("load",()=>{if(z.status<200||z.status>=300)return $.onError(getError(ie,$,z));$.onSuccess(getBody(z))}),z.open($.method,ie,!0),$.withCredentials&&"withCredentials"in z&&(z.withCredentials=!0);const ue=$.headers||{};if(ue instanceof Headers)ue.forEach((pe,_e)=>z.setRequestHeader(_e,pe));else for(const[pe,_e]of Object.entries(ue))isNil(_e)||z.setRequestHeader(pe,String(_e));return z.send(le),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:ie}=useLocale(),le=useNamespace("upload"),ue=useNamespace("icon"),pe=useNamespace("list"),_e=useFormDisabled(),Ce=ref(!1),$e=xe=>{z("remove",xe)};return(xe,Ie)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(le).b("list"),unref(le).bm("list",xe.listType),unref(le).is("disabled",unref(_e))]),name:unref(pe).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(xe.files,ze=>(openBlock(),createElementBlock("li",{key:ze.uid||ze.name,class:normalizeClass([unref(le).be("list","item"),unref(le).is(ze.status),{focusing:Ce.value}]),tabindex:"0",onKeydown:withKeys(Ue=>!unref(_e)&&$e(ze),["delete"]),onFocus:Ie[0]||(Ie[0]=Ue=>Ce.value=!0),onBlur:Ie[1]||(Ie[1]=Ue=>Ce.value=!1),onClick:Ie[2]||(Ie[2]=Ue=>Ce.value=!1)},[renderSlot(xe.$slots,"default",{file:ze},()=>[xe.listType==="picture"||ze.status!=="uploading"&&xe.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(le).be("list","item-thumbnail")),src:ze.url,alt:""},null,10,_hoisted_2$6)):createCommentVNode("v-if",!0),ze.status==="uploading"||xe.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(le).be("list","item-name")),onClick:withModifiers(Ue=>xe.handlePreview(ze),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ue).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(le).be("list","item-file-name"))},toDisplayString$1(ze.name),3)],10,_hoisted_3$4),ze.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:xe.listType==="picture-card"?"circle":"line","stroke-width":xe.listType==="picture-card"?6:2,percentage:Number(ze.percentage),style:normalizeStyle$1(xe.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(le).be("list","item-status-label"))},[xe.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ue).m("upload-success"),unref(ue).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(xe.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ue).m("upload-success"),unref(ue).m("check")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(ue).m("close")),onClick:Ue=>$e(ze)},{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(_e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(ue).m("close-tip"))},toDisplayString$1(unref(ie)("el.upload.deleteTip")),3)),xe.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(le).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(le).be("list","item-preview")),onClick:Ue=>xe.handlePreview(ze)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ue).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_4$2),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(le).be("list","item-delete")),onClick:Ue=>$e(ze)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ue).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(xe.$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 ie=inject(uploadContextKey);ie||throwError$1(COMPONENT_NAME,"usage: <el-upload><el-upload-dragger /></el-upload>");const le=useNamespace("upload"),ue=ref(!1),pe=useFormDisabled(),_e=$e=>{if(pe.value)return;ue.value=!1,$e.stopPropagation();const xe=Array.from($e.dataTransfer.files),Ie=ie.accept.value;if(!Ie){z("file",xe);return}const ze=xe.filter(Ue=>{const{type:qe,name:Et}=Ue,Lt=Et.includes(".")?`.${Et.split(".").pop()}`:"",hn=qe.replace(/\/.*$/,"");return Ie.split(",").map(vn=>vn.trim()).filter(vn=>vn).some(vn=>vn.startsWith(".")?Lt===vn:/\/\*$/.test(vn)?hn===vn.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(vn)?qe===vn:!1)});z("file",ze)},Ce=()=>{pe.value||(ue.value=!0)};return($e,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b("dragger"),unref(le).is("dragover",ue.value)]),onDrop:withModifiers(_e,["prevent"]),onDragover:withModifiers(Ce,["prevent"]),onDragleave:xe[0]||(xe[0]=withModifiers(Ie=>ue.value=!1,["prevent"]))},[renderSlot($e.$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 ie=$,le=useNamespace("upload"),ue=useFormDisabled(),pe=shallowRef({}),_e=shallowRef(),Ce=Et=>{if(Et.length===0)return;const{autoUpload:Lt,limit:hn,fileList:vn,multiple:_n,onStart:bn,onExceed:Sn}=ie;if(hn&&vn.length+Et.length>hn){Sn(Et,vn);return}_n||(Et=Et.slice(0,1));for(const Cn of Et){const En=Cn;En.uid=genFileId(),bn(En),Lt&&$e(En)}},$e=async Et=>{if(_e.value.value="",!ie.beforeUpload)return xe(Et);let Lt,hn={};try{const _n=ie.data,bn=ie.beforeUpload(Et);hn=isObject$8(ie.data)?cloneDeep(ie.data):ie.data,Lt=await bn,isObject$8(ie.data)&&isEqual$1(_n,hn)&&(hn=cloneDeep(ie.data))}catch{Lt=!1}if(Lt===!1){ie.onRemove(Et);return}let vn=Et;Lt instanceof Blob&&(Lt instanceof File?vn=Lt:vn=new File([Lt],Et.name,{type:Et.type})),xe(Object.assign(vn,{uid:Et.uid}),hn)},xe=(Et,Lt)=>{const{headers:hn,data:vn,method:_n,withCredentials:bn,name:Sn,action:Cn,onProgress:En,onSuccess:$n,onError:wn,httpRequest:Tn}=ie,{uid:xn}=Et,Pn={headers:hn||{},withCredentials:bn,file:Et,data:Lt??vn,method:_n,filename:Sn,action:Cn,onProgress:An=>{En(An,Et)},onSuccess:An=>{$n(An,Et),delete pe.value[xn]},onError:An=>{wn(An,Et),delete pe.value[xn]}},kn=Tn(Pn);pe.value[xn]=kn,kn instanceof Promise&&kn.then(Pn.onSuccess,Pn.onError)},Ie=Et=>{const Lt=Et.target.files;Lt&&Ce(Array.from(Lt))},ze=()=>{ue.value||(_e.value.value="",_e.value.click())},Ue=()=>{ze()};return z({abort:Et=>{entriesOf(pe.value).filter(Et?([hn])=>String(Et.uid)===hn:()=>!0).forEach(([hn,vn])=>{vn instanceof XMLHttpRequest&&vn.abort(),delete pe.value[hn]})},upload:$e}),(Et,Lt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(le).m(Et.listType),unref(le).is("drag",Et.drag)]),tabindex:"0",onClick:ze,onKeydown:withKeys(withModifiers(Ue,["self"]),["enter","space"])},[Et.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(ue),onFile:Ce},{default:withCtx(()=>[renderSlot(Et.$slots,"default")]),_:3},8,["disabled"])):renderSlot(Et.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:_e,class:normalizeClass(unref(le).e("input")),name:Et.name,multiple:Et.multiple,accept:Et.accept,type:"file",onChange:Ie,onClick:Lt[0]||(Lt[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 ie=useVModel($,"fileList",void 0,{passive:!0}),le=Ue=>ie.value.find(qe=>qe.uid===Ue.uid);function ue(Ue){var qe;(qe=z.value)==null||qe.abort(Ue)}function pe(Ue=["ready","uploading","success","fail"]){ie.value=ie.value.filter(qe=>!Ue.includes(qe.status))}const _e=(Ue,qe)=>{const Et=le(qe);Et&&(console.error(Ue),Et.status="fail",ie.value.splice(ie.value.indexOf(Et),1),$.onError(Ue,Et,ie.value),$.onChange(Et,ie.value))},Ce=(Ue,qe)=>{const Et=le(qe);Et&&($.onProgress(Ue,Et,ie.value),Et.status="uploading",Et.percentage=Math.round(Ue.percent))},$e=(Ue,qe)=>{const Et=le(qe);Et&&(Et.status="success",Et.response=Ue,$.onSuccess(Ue,Et,ie.value),$.onChange(Et,ie.value))},xe=Ue=>{isNil(Ue.uid)&&(Ue.uid=genFileId());const qe={name:Ue.name,percentage:0,status:"ready",size:Ue.size,raw:Ue,uid:Ue.uid};if($.listType==="picture-card"||$.listType==="picture")try{qe.url=URL.createObjectURL(Ue)}catch(Et){Et.message,$.onError(Et,qe,ie.value)}ie.value=[...ie.value,qe],$.onChange(qe,ie.value)},Ie=async Ue=>{const qe=Ue instanceof File?le(Ue):Ue;qe||throwError$1(SCOPE$1,"file to be removed not found");const Et=Lt=>{ue(Lt);const hn=ie.value;hn.splice(hn.indexOf(Lt),1),$.onRemove(Lt,hn),revokeObjectURL(Lt)};$.beforeRemove?await $.beforeRemove(qe,ie.value)!==!1&&Et(qe):Et(qe)};function ze(){ie.value.filter(({status:Ue})=>Ue==="ready").forEach(({raw:Ue})=>{var qe;return Ue&&((qe=z.value)==null?void 0:qe.upload(Ue))})}return watch(()=>$.listType,Ue=>{Ue!=="picture-card"&&Ue!=="picture"||(ie.value=ie.value.map(qe=>{const{raw:Et,url:Lt}=qe;if(!Lt&&Et)try{qe.url=URL.createObjectURL(Et)}catch(hn){$.onError(hn,qe,ie.value)}return qe}))}),watch(ie,Ue=>{for(const qe of Ue)qe.uid||(qe.uid=genFileId()),qe.status||(qe.status="success")},{immediate:!0,deep:!0}),{uploadFiles:ie,abort:ue,clearFiles:pe,handleError:_e,handleProgress:Ce,handleStart:xe,handleSuccess:$e,handleRemove:Ie,submit:ze}},__default__$2=defineComponent({name:"ElUpload"}),_sfc_main$5=defineComponent({...__default__$2,props:uploadProps,setup($,{expose:z}){const ie=$,le=useSlots(),ue=useFormDisabled(),pe=shallowRef(),{abort:_e,submit:Ce,clearFiles:$e,uploadFiles:xe,handleStart:Ie,handleError:ze,handleRemove:Ue,handleSuccess:qe,handleProgress:Et}=useHandlers(ie,pe),Lt=computed(()=>ie.listType==="picture-card"),hn=computed(()=>({...ie,fileList:xe.value,onStart:Ie,onProgress:Et,onSuccess:qe,onError:ze,onRemove:Ue}));return onBeforeUnmount(()=>{xe.value.forEach(({url:vn})=>{vn!=null&&vn.startsWith("blob:")&&URL.revokeObjectURL(vn)})}),provide(uploadContextKey,{accept:toRef$1(ie,"accept")}),z({abort:_e,submit:Ce,clearFiles:$e,handleStart:Ie,handleRemove:Ue}),(vn,_n)=>(openBlock(),createElementBlock("div",null,[unref(Lt)&&vn.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(ue),"list-type":vn.listType,files:unref(xe),"handle-preview":vn.onPreview,onRemove:unref(Ue)},createSlots({append:withCtx(()=>[createVNode(UploadContent,mergeProps({ref_key:"uploadRef",ref:pe},unref(hn)),{default:withCtx(()=>[unref(le).trigger?renderSlot(vn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(le).trigger&&unref(le).default?renderSlot(vn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[vn.$slots.file?{name:"default",fn:withCtx(({file:bn})=>[renderSlot(vn.$slots,"file",{file:bn})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!unref(Lt)||unref(Lt)&&!vn.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:pe},unref(hn)),{default:withCtx(()=>[unref(le).trigger?renderSlot(vn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(le).trigger&&unref(le).default?renderSlot(vn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),vn.$slots.trigger?renderSlot(vn.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(vn.$slots,"tip"),!unref(Lt)&&vn.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(ue),"list-type":vn.listType,files:unref(xe),"handle-preview":vn.onPreview,onRemove:unref(Ue)},createSlots({_:2},[vn.$slots.file?{name:"default",fn:withCtx(({file:bn})=>[renderSlot(vn.$slots,"file",{file:bn})])}: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((ie,[le,ue])=>{var pe,_e;const{type:Ce,default:$e}=ue,xe=$.getAttribute(`infinite-scroll-${le}`);let Ie=(_e=(pe=z[xe])!=null?pe:xe)!=null?_e:$e;return Ie=Ie==="false"?!1:Ie,Ie=Ce(Ie),ie[le]=Number.isNaN(Ie)?$e:Ie,ie},{}),destroyObserver=$=>{const{observer:z}=$[SCOPE];z&&(z.disconnect(),delete $[SCOPE].observer)},handleScroll=($,z)=>{const{container:ie,containerEl:le,instance:ue,observer:pe,lastScrollTop:_e}=$[SCOPE],{disabled:Ce,distance:$e}=getScrollOptions($,ue),{clientHeight:xe,scrollHeight:Ie,scrollTop:ze}=le,Ue=ze-_e;if($[SCOPE].lastScrollTop=ze,pe||Ce||Ue<0)return;let qe=!1;if(ie===$)qe=Ie-(xe+ze)<=$e;else{const{clientTop:Et,scrollHeight:Lt}=$,hn=getOffsetTopDistance($,le);qe=ze+xe>=hn+Et+Lt-$e}qe&&z.call(ue)};function checkFull($,z){const{containerEl:ie,instance:le}=$[SCOPE],{disabled:ue}=getScrollOptions($,le);ue||ie.clientHeight===0||(ie.scrollHeight<=ie.clientHeight?z.call(le):destroyObserver($))}const InfiniteScroll={async mounted($,z){const{instance:ie,value:le}=z;isFunction$5(le)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:ue,immediate:pe}=getScrollOptions($,ie),_e=getScrollContainer($,!0),Ce=_e===window?document.documentElement:_e,$e=throttle$1(handleScroll.bind(null,$,le),ue);if(_e){if($[SCOPE]={instance:ie,container:_e,containerEl:Ce,delay:ue,cb:le,onScroll:$e,lastScrollTop:Ce.scrollTop},pe){const xe=new MutationObserver(throttle$1(checkFull.bind(null,$,le),CHECK_INTERVAL));$[SCOPE].observer=xe,xe.observe($,{childList:!0,subtree:!0}),checkFull($,le)}_e.addEventListener("scroll",$e)}},unmounted($){const{container:z,onScroll:ie}=$[SCOPE];z==null||z.removeEventListener("scroll",ie),destroyObserver($)},async updated($){if(!$[SCOPE])await nextTick();else{const{containerEl:z,cb:ie,observer:le}=$[SCOPE];z.clientHeight&&le&&checkFull($,ie)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=$=>{$.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent($){let z;const ie=ref(!1),le=reactive({...$,originalPosition:"",originalOverflow:"",visible:!1});function ue(Ue){le.text=Ue}function pe(){const Ue=le.parent,qe=ze.ns;if(!Ue.vLoadingAddClassList){let Et=Ue.getAttribute("loading-number");Et=Number.parseInt(Et)-1,Et?Ue.setAttribute("loading-number",Et.toString()):(removeClass(Ue,qe.bm("parent","relative")),Ue.removeAttribute("loading-number")),removeClass(Ue,qe.bm("parent","hidden"))}_e(),Ie.unmount()}function _e(){var Ue,qe;(qe=(Ue=ze.$el)==null?void 0:Ue.parentNode)==null||qe.removeChild(ze.$el)}function Ce(){var Ue;$.beforeClose&&!$.beforeClose()||(ie.value=!0,clearTimeout(z),z=window.setTimeout($e,400),le.visible=!1,(Ue=$.closed)==null||Ue.call($))}function $e(){if(!ie.value)return;const Ue=le.parent;ie.value=!1,Ue.vLoadingAddClassList=void 0,pe()}const xe=defineComponent({name:"ElLoading",setup(Ue,{expose:qe}){const{ns:Et,zIndex:Lt}=useGlobalComponentSettings("loading");return qe({ns:Et,zIndex:Lt}),()=>{const hn=le.spinner||le.svg,vn=h$3("svg",{class:"circular",viewBox:le.svgViewBox?le.svgViewBox:"0 0 50 50",...hn?{innerHTML:hn}:{}},[h$3("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_n=le.text?h$3("p",{class:Et.b("text")},[le.text]):void 0;return h$3(Transition,{name:Et.b("fade"),onAfterLeave:$e},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:le.background||""},class:[Et.b("mask"),le.customClass,le.fullscreen?"is-fullscreen":""]},[h$3("div",{class:Et.b("spinner")},[vn,_n])]),[[vShow,le.visible]])])})}}}),Ie=createApp(xe),ze=Ie.mount(document.createElement("div"));return{...toRefs(le),setText:ue,removeElLoadingChild:_e,close:Ce,handleAfterLeave:$e,vm:ze,get $el(){return ze.$el}}}let fullscreenInstance;const Loading=function($={}){if(!isClient$2)return;const z=resolveOptions($);if(z.fullscreen&&fullscreenInstance)return fullscreenInstance;const ie=createLoadingComponent({...z,closed:()=>{var ue;(ue=z.closed)==null||ue.call(z),z.fullscreen&&(fullscreenInstance=void 0)}});addStyle(z,z.parent,ie),addClassList(z,z.parent,ie),z.parent.vLoadingAddClassList=()=>addClassList(z,z.parent,ie);let le=z.parent.getAttribute("loading-number");return le?le=`${Number.parseInt(le)+1}`:le="1",z.parent.setAttribute("loading-number",le),z.parent.appendChild(ie.$el),nextTick(()=>ie.visible.value=z.visible),z.fullscreen&&(fullscreenInstance=ie),ie},resolveOptions=$=>{var z,ie,le,ue;let pe;return isString$7($.target)?pe=(z=document.querySelector($.target))!=null?z:document.body:pe=$.target||document.body,{parent:pe===document.body||$.body?document.body:pe,background:$.background||"",svg:$.svg||"",svgViewBox:$.svgViewBox||"",spinner:$.spinner||!1,text:$.text||"",fullscreen:pe===document.body&&((ie=$.fullscreen)!=null?ie:!0),lock:(le=$.lock)!=null?le:!1,customClass:$.customClass||"",visible:(ue=$.visible)!=null?ue:!0,target:pe}},addStyle=async($,z,ie)=>{const{nextZIndex:le}=ie.vm.zIndex||ie.vm._.exposed.zIndex,ue={};if($.fullscreen)ie.originalPosition.value=getStyle$1(document.body,"position"),ie.originalOverflow.value=getStyle$1(document.body,"overflow"),ue.zIndex=le();else if($.parent===document.body){ie.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const pe of["top","left"]){const _e=pe==="top"?"scrollTop":"scrollLeft";ue[pe]=`${$.target.getBoundingClientRect()[pe]+document.body[_e]+document.documentElement[_e]-Number.parseInt(getStyle$1(document.body,`margin-${pe}`),10)}px`}for(const pe of["height","width"])ue[pe]=`${$.target.getBoundingClientRect()[pe]}px`}else ie.originalPosition.value=getStyle$1(z,"position");for(const[pe,_e]of Object.entries(ue))ie.$el.style[pe]=_e},addClassList=($,z,ie)=>{const le=ie.vm.ns||ie.vm._.exposed.ns;["absolute","fixed","sticky"].includes(ie.originalPosition.value)?removeClass(z,le.bm("parent","relative")):addClass(z,le.bm("parent","relative")),$.fullscreen&&$.lock?addClass(z,le.bm("parent","hidden")):removeClass(z,le.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance$1=($,z)=>{var ie,le,ue,pe;const _e=z.instance,Ce=Ue=>isObject$8(z.value)?z.value[Ue]:void 0,$e=Ue=>{const qe=isString$7(Ue)&&(_e==null?void 0:_e[Ue])||Ue;return qe&&ref(qe)},xe=Ue=>$e(Ce(Ue)||$.getAttribute(`element-loading-${hyphenate(Ue)}`)),Ie=(ie=Ce("fullscreen"))!=null?ie:z.modifiers.fullscreen,ze={text:xe("text"),svg:xe("svg"),svgViewBox:xe("svgViewBox"),spinner:xe("spinner"),background:xe("background"),customClass:xe("customClass"),fullscreen:Ie,target:(le=Ce("target"))!=null?le:Ie?void 0:$,body:(ue=Ce("body"))!=null?ue:z.modifiers.body,lock:(pe=Ce("lock"))!=null?pe:z.modifiers.lock};$[INSTANCE_KEY]={options:ze,instance:Loading(ze)}},updateOptions=($,z)=>{for(const ie of Object.keys(z))isRef(z[ie])&&(z[ie].value=$[ie])},vLoading={mounted($,z){z.value&&createInstance$1($,z)},updated($,z){const ie=$[INSTANCE_KEY];z.oldValue!==z.value&&(z.value&&!z.oldValue?createInstance$1($,z):z.value&&z.oldValue?isObject$8(z.value)&&updateOptions(z.value,ie.options):ie==null||ie.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(ue=>ue.id===$),ie=instances$2[z];let le;return z>0&&(le=instances$2[z-1]),{current:ie,prev:le}},getLastOffset=$=>{const{prev:z}=getInstance$1($);return z?z.vm.exposed.bottom.value:0},getOffsetOrSpace=($,z)=>instances$2.findIndex(le=>le.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 ie=$,{Close:le}=TypeComponents,{ns:ue,zIndex:pe}=useGlobalComponentSettings("message"),{currentZIndex:_e,nextZIndex:Ce}=pe,$e=ref(),xe=ref(!1),Ie=ref(0);let ze;const Ue=computed(()=>ie.type?ie.type==="error"?"danger":ie.type:"info"),qe=computed(()=>{const $n=ie.type;return{[ue.bm("icon",$n)]:$n&&TypeComponentsMap[$n]}}),Et=computed(()=>ie.icon||TypeComponentsMap[ie.type]||""),Lt=computed(()=>getLastOffset(ie.id)),hn=computed(()=>getOffsetOrSpace(ie.id,ie.offset)+Lt.value),vn=computed(()=>Ie.value+hn.value),_n=computed(()=>({top:`${hn.value}px`,zIndex:_e.value}));function bn(){ie.duration!==0&&({stop:ze}=useTimeoutFn$1(()=>{Cn()},ie.duration))}function Sn(){ze==null||ze()}function Cn(){xe.value=!1}function En({code:$n}){$n===EVENT_CODE.esc&&Cn()}return onMounted(()=>{bn(),Ce(),xe.value=!0}),watch(()=>ie.repeatNum,()=>{Sn(),bn()}),useEventListener$1(document,"keydown",En),useResizeObserver($e,()=>{Ie.value=$e.value.getBoundingClientRect().height}),z({visible:xe,bottom:vn,close:Cn}),($n,wn)=>(openBlock(),createBlock(Transition,{name:unref(ue).b("fade"),onBeforeLeave:$n.onClose,onAfterLeave:wn[0]||(wn[0]=Tn=>$n.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:$n.id,ref_key:"messageRef",ref:$e,class:normalizeClass([unref(ue).b(),{[unref(ue).m($n.type)]:$n.type&&!$n.icon},unref(ue).is("center",$n.center),unref(ue).is("closable",$n.showClose),$n.customClass]),style:normalizeStyle$1(unref(_n)),role:"alert",onMouseenter:Sn,onMouseleave:bn},[$n.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:$n.repeatNum,type:unref(Ue),class:normalizeClass(unref(ue).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(Et)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ue).e("icon"),unref(qe)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Et))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot($n.$slots,"default",{},()=>[$n.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(ue).e("content")),innerHTML:$n.message},null,10,_hoisted_2$4)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(ue).e("content"))},toDisplayString$1($n.message),3))]),$n.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(ue).e("closeBtn")),onClick:withModifiers(Cn,["stop"])},{default:withCtx(()=>[createVNode(unref(le))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$4),[[vShow,xe.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:$}:$,ie={...messageDefaults,...z};if(!ie.appendTo)ie.appendTo=document.body;else if(isString$7(ie.appendTo)){let le=document.querySelector(ie.appendTo);isElement$2(le)||(le=document.body),ie.appendTo=le}return ie},closeMessage=$=>{const z=instances$2.indexOf($);if(z===-1)return;instances$2.splice(z,1);const{handler:ie}=$;ie.close()},createMessage=({appendTo:$,...z},ie)=>{const le=`message_${seed$1++}`,ue=z.onClose,pe=document.createElement("div"),_e={...z,id:le,onClose:()=>{ue==null||ue(),closeMessage(Ie)},onDestroy:()=>{render$4(null,pe)}},Ce=createVNode(MessageConstructor,_e,isFunction$5(_e.message)||isVNode$1(_e.message)?{default:isFunction$5(_e.message)?_e.message:()=>_e.message}:null);Ce.appContext=ie||message._context,render$4(Ce,pe),$.appendChild(pe.firstElementChild);const $e=Ce.component,Ie={id:le,vnode:Ce,vm:$e,handler:{close:()=>{$e.exposed.visible.value=!1}},props:Ce.component.props};return Ie},message=($={},z)=>{if(!isClient$2)return{close:()=>{}};if(isNumber$5(messageConfig.max)&&instances$2.length>=messageConfig.max)return{close:()=>{}};const ie=normalizeOptions($);if(ie.grouping&&instances$2.length){const ue=instances$2.find(({vnode:pe})=>{var _e;return((_e=pe.props)==null?void 0:_e.message)===ie.message});if(ue)return ue.props.repeatNum+=1,ue.props.type=ie.type,ue.handler}const le=createMessage(ie,z);return instances$2.push(le),le.handler};messageTypes.forEach($=>{message[$]=(z={},ie)=>{const le=normalizeOptions(z);return message({...le,type:$},ie)}});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:ie,zIndex:le,ns:ue,size:pe}=useGlobalComponentSettings("message-box",computed(()=>$.buttonSize)),{t:_e}=ie,{nextZIndex:Ce}=le,$e=ref(!1),xe=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:Ce()}),Ie=computed(()=>{const Fn=xe.type;return{[ue.bm("icon",Fn)]:Fn&&TypeComponentsMap[Fn]}}),ze=useId(),Ue=useId(),qe=computed(()=>xe.icon||TypeComponentsMap[xe.type]||""),Et=computed(()=>!!xe.message),Lt=ref(),hn=ref(),vn=ref(),_n=ref(),bn=ref(),Sn=computed(()=>xe.confirmButtonClass);watch(()=>xe.inputValue,async Fn=>{await nextTick(),$.boxType==="prompt"&&Fn!==null&&Pn()},{immediate:!0}),watch(()=>$e.value,Fn=>{var Ln,In;Fn&&($.boxType!=="prompt"&&(xe.autofocus?vn.value=(In=(Ln=bn.value)==null?void 0:Ln.$el)!=null?In:Lt.value:vn.value=Lt.value),xe.zIndex=Ce()),$.boxType==="prompt"&&(Fn?nextTick().then(()=>{var Vn;_n.value&&_n.value.$el&&(xe.autofocus?vn.value=(Vn=kn())!=null?Vn:Lt.value:vn.value=Lt.value)}):(xe.editorErrorMessage="",xe.validateError=!1))});const Cn=computed(()=>$.draggable);useDraggable(Lt,hn,Cn),onMounted(async()=>{await nextTick(),$.closeOnHashChange&&window.addEventListener("hashchange",En)}),onBeforeUnmount(()=>{$.closeOnHashChange&&window.removeEventListener("hashchange",En)});function En(){$e.value&&($e.value=!1,nextTick(()=>{xe.action&&z("action",xe.action)}))}const $n=()=>{$.closeOnClickModal&&xn(xe.distinguishCancelAndClose?"close":"cancel")},wn=useSameTarget($n),Tn=Fn=>{if(xe.inputType!=="textarea")return Fn.preventDefault(),xn("confirm")},xn=Fn=>{var Ln;$.boxType==="prompt"&&Fn==="confirm"&&!Pn()||(xe.action=Fn,xe.beforeClose?(Ln=xe.beforeClose)==null||Ln.call(xe,Fn,xe,En):En())},Pn=()=>{if($.boxType==="prompt"){const Fn=xe.inputPattern;if(Fn&&!Fn.test(xe.inputValue||""))return xe.editorErrorMessage=xe.inputErrorMessage||_e("el.messagebox.error"),xe.validateError=!0,!1;const Ln=xe.inputValidator;if(typeof Ln=="function"){const In=Ln(xe.inputValue);if(In===!1)return xe.editorErrorMessage=xe.inputErrorMessage||_e("el.messagebox.error"),xe.validateError=!0,!1;if(typeof In=="string")return xe.editorErrorMessage=In,xe.validateError=!0,!1}}return xe.editorErrorMessage="",xe.validateError=!1,!0},kn=()=>{const Fn=_n.value.$refs;return Fn.input||Fn.textarea},An=()=>{xn("close")},Nn=()=>{$.closeOnPressEscape&&An()};return $.lockScroll&&useLockscreen($e),useRestoreActive($e),{...toRefs(xe),ns:ue,overlayEvent:wn,visible:$e,hasMessage:Et,typeClass:Ie,contentId:ze,inputId:Ue,btnSize:pe,iconComponent:qe,confirmButtonClasses:Sn,rootRef:Lt,focusStartRef:vn,headerRef:hn,inputRef:_n,confirmRef:bn,doClose:En,handleClose:An,onCloseRequested:Nn,handleWrapperClick:$n,handleInputEnter:Tn,handleAction:xn,t:_e}}}),_hoisted_1$3=["aria-label","aria-describedby"],_hoisted_2$3=["aria-label"],_hoisted_3$3=["id"];function _sfc_render$1($,z,ie,le,ue,pe){const _e=resolveComponent("el-icon"),Ce=resolveComponent("close"),$e=resolveComponent("el-input"),xe=resolveComponent("el-button"),Ie=resolveComponent("el-focus-trap"),ze=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:z[11]||(z[11]=Ue=>$.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(ze,{"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]=(...Ue)=>$.overlayEvent.onClick&&$.overlayEvent.onClick(...Ue)),onMousedown:z[9]||(z[9]=(...Ue)=>$.overlayEvent.onMousedown&&$.overlayEvent.onMousedown(...Ue)),onMouseup:z[10]||(z[10]=(...Ue)=>$.overlayEvent.onMouseup&&$.overlayEvent.onMouseup(...Ue))},[createVNode(Ie,{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(_e,{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]=Ue=>$.handleAction($.distinguishCancelAndClose?"close":"cancel")),onKeydown:z[1]||(z[1]=withKeys(withModifiers(Ue=>$.handleAction($.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(_e,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(Ce)]),_: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(_e,{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($e,{id:$.inputId,ref:"inputRef",modelValue:$.inputValue,"onUpdate:modelValue":z[2]||(z[2]=Ue=>$.inputValue=Ue),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(xe,{key:0,loading:$.cancelButtonLoading,class:normalizeClass([$.cancelButtonClass]),round:$.roundButton,size:$.btnSize,onClick:z[3]||(z[3]=Ue=>$.handleAction("cancel")),onKeydown:z[4]||(z[4]=withKeys(withModifiers(Ue=>$.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(xe,{ref:"confirmRef",type:"primary",loading:$.confirmButtonLoading,class:normalizeClass([$.confirmButtonClasses]),round:$.roundButton,disabled:$.confirmButtonDisabled,size:$.btnSize,onClick:z[5]||(z[5]=Ue=>$.handleAction("confirm")),onKeydown:z[6]||(z[6]=withKeys(withModifiers(Ue=>$.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,ie=null)=>{const le=createVNode(MessageBoxConstructor,$,isFunction$5($.message)||isVNode$1($.message)?{default:isFunction$5($.message)?$.message:()=>$.message}:null);return le.appContext=ie,render$4(le,z),getAppendToElement($).appendChild(z.firstElementChild),le.component},genContainer=()=>document.createElement("div"),showMessage=($,z)=>{const ie=genContainer();$.onVanish=()=>{render$4(null,ie),messageInstance.delete(ue)},$.onAction=pe=>{const _e=messageInstance.get(ue);let Ce;$.showInput?Ce={value:ue.inputValue,action:pe}:Ce=pe,$.callback?$.callback(Ce,le.proxy):pe==="cancel"||pe==="close"?$.distinguishCancelAndClose&&pe!=="cancel"?_e.reject("close"):_e.reject("cancel"):_e.resolve(Ce)};const le=initInstance($,ie,z),ue=le.proxy;for(const pe in $)hasOwn$4($,pe)&&!hasOwn$4(ue.$props,pe)&&(ue[pe]=$[pe]);return ue.visible=!0,ue};function MessageBox($,z=null){if(!isClient$2)return Promise.reject();let ie;return isString$7($)||isVNode$1($)?$={message:$}:ie=$.callback,new Promise((le,ue)=>{const pe=showMessage($,z??MessageBox._context);messageInstance.set(pe,{options:$,callback:ie,resolve:le,reject:ue})})}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,ie,le,ue)=>{let pe="";return isObject$8(ie)?(le=ie,pe=""):isUndefined$1(ie)?pe="":pe=ie,MessageBox(Object.assign({title:pe,message:z,type:"",...MESSAGE_BOX_DEFAULT_OPTS[$]},le,{boxType:$}),ue)}}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 ie=$,{ns:le,zIndex:ue}=useGlobalComponentSettings("notification"),{nextZIndex:pe,currentZIndex:_e}=ue,{Close:Ce}=CloseComponents,$e=ref(!1);let xe;const Ie=computed(()=>{const bn=ie.type;return bn&&TypeComponentsMap[ie.type]?le.m(bn):""}),ze=computed(()=>ie.type&&TypeComponentsMap[ie.type]||ie.icon),Ue=computed(()=>ie.position.endsWith("right")?"right":"left"),qe=computed(()=>ie.position.startsWith("top")?"top":"bottom"),Et=computed(()=>({[qe.value]:`${ie.offset}px`,zIndex:_e.value}));function Lt(){ie.duration>0&&({stop:xe}=useTimeoutFn$1(()=>{$e.value&&vn()},ie.duration))}function hn(){xe==null||xe()}function vn(){$e.value=!1}function _n({code:bn}){bn===EVENT_CODE.delete||bn===EVENT_CODE.backspace?hn():bn===EVENT_CODE.esc?$e.value&&vn():Lt()}return onMounted(()=>{Lt(),pe(),$e.value=!0}),useEventListener$1(document,"keydown",_n),z({visible:$e,close:vn}),(bn,Sn)=>(openBlock(),createBlock(Transition,{name:unref(le).b("fade"),onBeforeLeave:bn.onClose,onAfterLeave:Sn[1]||(Sn[1]=Cn=>bn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:bn.id,class:normalizeClass([unref(le).b(),bn.customClass,unref(Ue)]),style:normalizeStyle$1(unref(Et)),role:"alert",onMouseenter:hn,onMouseleave:Lt,onClick:Sn[0]||(Sn[0]=(...Cn)=>bn.onClick&&bn.onClick(...Cn))},[unref(ze)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).e("icon"),unref(Ie)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ze))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(le).e("title")),textContent:toDisplayString$1(bn.title)},null,10,_hoisted_2$2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(le).e("content")),style:normalizeStyle$1(bn.title?void 0:{margin:0})},[renderSlot(bn.$slots,"default",{},()=>[bn.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:bn.message},null,8,_hoisted_4$1)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$2,toDisplayString$1(bn.message),1))])],6),[[vShow,bn.message]]),bn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("closeBtn")),onClick:withModifiers(vn,["stop"])},{default:withCtx(()=>[createVNode(unref(Ce))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$2),[[vShow,$e.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 ie=$.position||"top-right";let le=$.offset||0;notifications[ie].forEach(({vm:Ie})=>{var ze;le+=(((ze=Ie.el)==null?void 0:ze.offsetHeight)||0)+GAP_SIZE}),le+=GAP_SIZE;const ue=`notification_${seed++}`,pe=$.onClose,_e={...$,offset:le,id:ue,onClose:()=>{close(ue,ie,pe)}};let Ce=document.body;isElement$2($.appendTo)?Ce=$.appendTo:isString$7($.appendTo)&&(Ce=document.querySelector($.appendTo)),isElement$2(Ce)||(Ce=document.body);const $e=document.createElement("div"),xe=createVNode(NotificationConstructor,_e,isVNode$1(_e.message)?{default:()=>_e.message}:null);return xe.appContext=z??notify._context,xe.props.onDestroy=()=>{render$4(null,$e)},render$4(xe,$e),notifications[ie].push({vm:xe}),Ce.appendChild($e.firstElementChild),{close:()=>{xe.component.exposed.visible.value=!1}}};notificationTypes.forEach($=>{notify[$]=(z={})=>((typeof z=="string"||isVNode$1(z))&&(z={message:z}),notify({...z,type:$}))});function close($,z,ie){const le=notifications[z],ue=le.findIndex(({vm:xe})=>{var Ie;return((Ie=xe.component)==null?void 0:Ie.props.id)===$});if(ue===-1)return;const{vm:pe}=le[ue];if(!pe)return;ie==null||ie(pe);const _e=pe.el.offsetHeight,Ce=z.split("-")[0];le.splice(ue,1);const $e=le.length;if(!($e<1))for(let xe=ue;xe<$e;xe++){const{el:Ie,component:ze}=le[xe].vm,Ue=Number.parseInt(Ie.style[Ce],10)-_e-GAP_SIZE;ze.props.offset=Ue}}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={};(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);const enLocale=getDefaultExportFromCjs(en);var at=Object.defineProperty,$t$1=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,It=($,z)=>{for(var ie in z)at($,ie,{get:z[ie],enumerable:!0})},it=($,z,ie,le)=>{if(z&&typeof z=="object"||typeof z=="function")for(let ue of kt(z))!Dt.call($,ue)&&ue!==ie&&at($,ue,{get:()=>z[ue],enumerable:!(le=$t$1(z,ue))||le.enumerable});return $},K$1=($,z,ie)=>(it($,z,"default"),ie&&it(ie,z,"default"));function ut($){let z=$.split(","),ie=z[0].match(/:(.*?);/)[1],le=window.atob(z[1]),ue=le.length,pe=new Uint8Array(ue);for(;ue--;)pe[ue]=le.charCodeAt(ue);return new Blob([pe],{type:ie})}function lt$1($,z,ie){return new Promise((le,ue)=>{let pe=document.createElement("CANVAS"),_e=pe.getContext("2d"),Ce=new Image;Ce.crossOrigin="",Ce.onload=function(){if(!pe||!_e)return ue();pe.height=Ce.height,pe.width=Ce.width,_e.drawImage(Ce,0,0);let $e=pe.toDataURL(z||"image/png",ie);pe=null,le($e)},Ce.src=$})}var Pt=Object.prototype.toString;function O($,z){return Pt.call($)===`[object ${z}]`}function j$2($){return $!==null&&O($,"Object")}function R($){return typeof $<"u"}function pt($){return!R($)}function mt($){return $===null}function Ut($){return mt($)||pt($)}function Bt($){return tt($)||C($)?$.length===0:$ instanceof Map||$ instanceof Set?$.size===0:j$2($)?Object.keys($).length===0:!1}function P$1($){return!!(Bt($)||Ut($))}function dt($){return O($,"Number")}function C($){return O($,"String")}function H$1($){return typeof $=="function"}function Le($){return O($,"Boolean")}function tt($){return $&&Array.isArray($)}var et=typeof window>"u",nt=!et;function gt($){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 Ne($){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 Fe($){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($)}var Y=($,z)=>!!($!=null&&$.className.match(new RegExp("(\\s|^)"+z+"(\\s|$)"))),Ve=($,z,ie)=>{Y($,z)||($.className+=" "+z),ie&&!Y($,ie)&&($.className+=" "+ie)},Ze=($,z,ie)=>{if(Y($,z)){let le=new RegExp("(\\s|^)"+z+"(\\s|$)");$.className=$.className.replace(le," ").trim()}if(ie&&Y($,ie)){let le=new RegExp("(\\s|^)"+ie+"(\\s|$)");$.className=$.className.replace(le," ").trim()}},Ge=($,z,ie)=>{let le=ie||document.body,{className:ue}=le,pe=ue.replace(z,"").trim().split(/\s+/).join(" ");le.className=$?`${pe} ${z}`:pe},Nt=Object.prototype.toString;function Ft($,z){return $&&$.hasOwnProperty?$.hasOwnProperty(z):!1}function Ht($,z,ie){if($)if($.forEach)$.forEach(z,ie);else for(let le=0,ue=$.length;le<ue;le++)z.call(ie,$[le],le,$)}function jt($,z,ie){if($)for(let le in $)Ft($,le)&&z.call(ie,$[le],le,$)}function rt$1($,z){let ie=$.__proto__.constructor;return z?new ie(z):new ie}function q($,z){return z?ot($,z):$}function ot($,z){if($)switch(Nt.call($)){case"[object Object]":{let ie=Object.create($.__proto__);return jt($,function(le,ue){ie[ue]=q(le,z)}),ie}case"[object Date]":case"[object RegExp]":return rt$1($,$.valueOf());case"[object Array]":case"[object Arguments]":{let ie=[];return Ht($,function(le){ie.push(q(le,z))}),ie}case"[object Set]":{let ie=rt$1($);return ie.forEach(function(le){ie.add(q(le,z))}),ie}case"[object Map]":{let ie=rt$1($);return ie.forEach(function(le){ie.set(q(le,z))}),ie}}return $}function Ke($,z){return $&&ot($,z)}function tn($){return $&&ot($,!0)}var nn=$=>{let z=($==null?void 0:$.type)??"rgb",ie=($==null?void 0:$.num)??0;if(ie===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 le=[];for(let _e=0;_e<ie;_e++)le.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return le;case"hex":let ue=[];for(let _e=0;_e<ie;_e++)ue.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return ue;case"hsl":let pe=[];for(let _e=0;_e<ie;_e++)pe.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return pe}},k$1=($=20)=>new Promise(z=>setTimeout(z,$)),vt=($,z=200,ie=!1)=>{let le,ue=z,pe;return function(){le&&clearTimeout(le),ie?(le||$.call(pe,...arguments),le=setTimeout(()=>le=null,ue)):le=setTimeout(()=>$.call(pe,...arguments),ue)}},On=($,z=1e3)=>{let ie;return function(){ie||(ie=setTimeout(()=>{$.call(void 0,...arguments),ie=null},z))}},Rn=()=>{let $=navigator.userAgent.toLowerCase(),z=$.match(/midp/i)=="midp",ie=$.match(/ucweb/i)=="ucweb",le=$.match(/android/i)=="android",ue=$.match(/iphone os/i)=="iphone os",pe=$.match(/windows ce/i)=="windows ce",_e=$.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",Ce=$.match(/windows mobile/i)=="windows mobile";return z||ie||le||ue||pe||_e||Ce},Mt=($,z="_blank")=>{let ie=document.createElement("a");ie.setAttribute("href",$),ie.setAttribute("target",z),ie.setAttribute("rel","noreferrer noopener"),ie.setAttribute("id","external");let le=document.getElementById("external");le&&document.body.removeChild(le),document.body.appendChild(ie),ie.click(),ie.remove()};function Un($,z,ie,le){lt$1($).then(ue=>{zt(ue,z,ie,le)})}function zt($,z,ie,le){let ue=ut($);_t(ue,z,ie,le)}function _t($,z,ie,le){let ue=typeof le<"u"?[le,$]:[$],pe=new Blob(ue,{type:ie||"application/octet-stream"}),_e=window.URL.createObjectURL(pe),Ce=document.createElement("a");Ce.style.display="none",Ce.href=_e,Ce.setAttribute("download",z),typeof Ce.download>"u"&&Ce.setAttribute("target","_blank"),document.body.appendChild(Ce),Ce.click(),document.body.removeChild(Ce),window.URL.revokeObjectURL(_e)}function Bn($,z,ie="_self"){let le=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,ue=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(le||ue){let pe=document.createElement("a");if(pe.href=$,pe.target=ie,pe.download!==void 0&&(pe.download=z||$.substring($.lastIndexOf("/")+1,$.length)),document.createEvent){let _e=document.createEvent("MouseEvents");return _e.initEvent("click",!0,!0),pe.dispatchEvent(_e),!0}}return $.indexOf("?")===-1&&($+="?download"),Mt($,ie),!0}function Wt($,z){if(!$||!z||$.length!==z.length)return!1;for(let ie of Object.keys($))if(!St($[ie],z[ie]))return!1;return!0}function Xt($,z){if(!$||!z)return!1;let{length:ie}=$;if(ie!==z.length)return!1;for(let le=0;le<ie;le++)if(!St($[le],z[le]))return!1;return!0}function St($,z){let ie=Object.prototype.toString.call($);return ie!==Object.prototype.toString.call(z)?!1:ie==="[object Object]"?Wt($,z):ie==="[object Array]"?Xt($,z):ie==="[object Function]"?$===z?!0:$.toString()===z.toString():$===z}var Yn=($,z)=>{if($.install=ie=>{for(let le of[$,...Object.values(z??{})])ie.component(le.name,le)},z)for(let[ie,le]of Object.entries(z))$[ie]=le;return $},U=class{constructor($){oo(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()}},Z=class extends U{constructor($){super($)}},tr=()=>nt?new Z(window.localStorage):new Z(""),er=()=>nt?new U(window.sessionStorage):new U("");function Vt($,z){return C(z)?$.substring(0,$.indexOf(z)):""}function mr($){if(!gt($))return console.error(`${$}不符合超链接规范`),{};let z=$.indexOf("?"),ie=$.slice(z+1).split("&"),le={};for(let ue=0;ue<ie.length;ue++)le[ie[ue].split("=")[0]]=ie[ue].split("=")[1];return le}function xr($,z){return $.every(ie=>z.some(le=>le===ie))}var wr=(...$)=>[...$].reduce((z,ie)=>z.filter(le=>ie.includes(le)));function Tr($,z){let ie=[];for(let le of $)le[z]&&ie.push(le[z]);return Array.from(new Set(ie))}var i={};It(i,{Vue:()=>vue_runtime_esmBundler});K$1(i,vue_runtime_esmBundler);var ne=["class","style"],re=/^on[A-Z]/;function oe($){return Object.keys($).map(z=>[z,$[z]])}function Cr($={}){let z=(0,i.getCurrentInstance)();if(!z)return{};let{excludeListeners:ie=!1,excludeKeys:le=[]}=$,ue=(0,i.shallowRef)({}),pe=le.concat(ne);return z.attrs=(0,i.reactive)(z.attrs),(0,i.watchEffect)(()=>{let _e=oe(z.attrs).reduce((Ce,[$e,xe])=>(!pe.includes($e)&&!(ie&&re.test($e))&&(Ce[$e]=xe),Ce),{});ue.value=_e}),ue}function L$2($){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)($)}var Fr=()=>{let $=(0,i.shallowRef)(!1),z,ie=()=>{$.value=document.documentElement.classList.contains("dark")};return L$2(()=>{z.takeRecords(),z.disconnect()}),(0,i.onBeforeMount)(()=>{ie(),z=new MutationObserver(ie),z.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:$}};function At(){let{appContext:{config:{globalProperties:$}}}=(0,i.getCurrentInstance)();return $}var Qr=($,z)=>{let ie=(z==null?void 0:z.theme)??(0,i.ref)("default"),le=(z==null?void 0:z.tooltipId)??"tooltipElement",ue=At().$echarts,pe=null,_e=(0,i.ref)({}),Ce=(0,i.ref)(),$e=(0,i.computed)(()=>ie.value!=="dark"?_e.value:{backgroundColor:"transparent",..._e.value});function xe(Tn){let xn=(0,i.unref)($);!xn||!(0,i.unref)(xn)||(pe=ue.init(xn,Tn))}function Ie(Tn,...xn){var Pn;if(_e.value=Tn,Ce.value=xn,((Pn=(0,i.unref)($))==null?void 0:Pn.offsetHeight)===0){k$1().then(()=>Ie((0,i.unref)($e),...xn));return}(0,i.nextTick)(()=>{k$1().then(()=>{!pe&&xe(ie.value),(Tn.clear??!0)&&ze(),pe==null||pe.setOption((0,i.unref)($e)),xn&&xn.map(kn=>{(kn==null?void 0:kn.type)!=="zrender"&&typeof(kn==null?void 0:kn.callback)=="function"&&(pe==null||pe.on(kn==null?void 0:kn.name,kn!=null&&kn.query?kn==null?void 0:kn.query:"",An=>{kn==null||kn.callback(An)})),(kn==null?void 0:kn.type)==="zrender"&&typeof(kn==null?void 0:kn.callback)=="function"&&(pe==null||pe.getZr().on(kn==null?void 0:kn.name,An=>{An.target||(kn==null||kn.callback(An))}))}),Tn!=null&&Tn.addTooltip&&$n(Tn.addTooltip)})})}function ze(){pe&&pe.clear()}function Ue(){pe.resize()}function qe(Tn){let xn=(Tn==null?void 0:Tn.type)??"default",Pn=(Tn==null?void 0:Tn.opts)??{};pe.showLoading(xn,Pn)}function Et(){pe.hideLoading()}function Lt(Tn){pe.appendData(Tn)}function hn(){return pe.getWidth()}function vn(){return pe.getHeight()}function _n(){return pe||xe(ie.value),pe}function bn(){return pe.getDom()}function Sn(){return pe.getOption()}function Cn(Tn){return pe.getDataURL(Tn)}function En(Tn){return pe.getConnectedDataURL(Tn)}function $n(Tn){if(!Tn)return;let xn=document.querySelector("html");if(!document.getElementById(le)){let An=document.createElement("div");An.setAttribute("id",le),An.style.display="block",xn.appendChild(An)}let Pn=document.querySelector(`#${le}`),kn=An=>{if((An==null?void 0:An.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;
`;Pn.style.cssText=Nn,Pn.innerHTML=An==null?void 0:An.value,xn.onmousemove=Fn=>{let Ln=Fn.pageX-10,In=Fn.pageY+15;Pn.style.top=In+"px",Pn.style.left=Ln+"px"}};pe==null||pe.on("mouseover",An=>{(Tn==="x"&&An.componentType=="xAxis"||Tn==="y"&&An.componentType=="yAxis"||Tn.toString()==="true"&&An.componentType.includes("Axis"))&&kn(An)}),pe==null||pe.on("mouseout",()=>{xn.onmousemove=null,Pn.style.cssText="display:none"})}(0,i.watch)(()=>ie.value,Tn=>{pe&&(pe.dispose(),xe(Tn),Ie(_e.value,...Ce.value))});function wn(){var Tn;!pe||k$1(((Tn=_e.value)==null?void 0:Tn.delay)??300).then(()=>{Ue()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",wn)})}),L$2(()=>{var Tn;window.removeEventListener("resize",wn),pe&&(pe.dispose(),pe=null,(Tn=document.querySelector(`#${le}`))==null||Tn.remove())}),{echarts:ue,clear:ze,resize:Ue,getDom:bn,getWidth:hn,getOption:Sn,getHeight:vn,addTooltip:$n,getDataURL:Cn,setOptions:Ie,appendData:Lt,getInstance:_n,showLoading:qe,hideLoading:Et,getConnectedDataURL:En}},ae=Symbol("watermark-dom"),lo=($=(0,i.ref)(document.body))=>{let z=ae.toString(),ie=(0,i.shallowRef)(),le=()=>{let ze=(0,i.unref)(ie);ie.value=void 0;let Ue=(0,i.unref)($);!Ue||ze&&Ue.removeChild(ze)};function ue(ze,Ue){let qe=document.createElement("canvas"),Et=(Ue==null?void 0:Ue.width)??250,Lt=(Ue==null?void 0:Ue.height)??100;Object.assign(qe,{width:Et,height:Lt});let hn=qe.getContext("2d");if(hn){if(hn.rotate(((Ue==null?void 0:Ue.rotate)??-10*Math.PI)/120),hn.font=(Ue==null?void 0:Ue.font)??"15px Reggae One",(Ue==null?void 0:Ue.gradient)&&tt(Ue==null?void 0:Ue.gradient)){let vn=hn.createLinearGradient(0,0,Et,0);Ue==null||Ue.gradient.forEach(_n=>{vn.addColorStop(_n.value,_n.color)}),hn.fillStyle=vn}else hn.fillStyle=(Ue==null?void 0:Ue.fillStyle)??"rgba(0, 0, 0, 0.15)";if(hn.textAlign="left",hn.textBaseline="middle",Ue!=null&&Ue.globalAlpha&&(hn.globalAlpha=Ue.globalAlpha),Ue==null?void 0:Ue.shadowConfig){let{shadowConfig:vn}=Ue;hn.shadowBlur=vn[0],hn.shadowColor=(vn==null?void 0:vn[1])??"#000000",hn.shadowOffsetX=(vn==null?void 0:vn[2])??0,hn.shadowOffsetY=(vn==null?void 0:vn[3])??0}hn.fillText(ze,Et/((Ue==null?void 0:Ue.fillTextWidth)??20),Lt/((Ue==null?void 0:Ue.fillTextHeight)??2))}return qe.toDataURL("image/png")}function pe(ze={}){let Ue=(0,i.unref)(ie);!Ue||(R(ze.width)&&(Ue.style.width=`${ze.width}px`),R(ze.height)&&(Ue.style.height=`${ze.height}px`),R(ze.str)&&(Ue.style.background=`url(${ue(ze.str,ze.attr)}) left top repeat`))}let _e=vt(()=>{let ze=(0,i.unref)($);if(!ze)return;let{clientHeight:Ue,clientWidth:qe}=ze;pe({height:Ue,width:qe})}),Ce=(ze,Ue)=>{var vn;if((0,i.unref)(ie))return pe({str:ze,attr:Ue}),z;let qe=document.createElement("div");ie.value=qe,qe.id=z,qe.style.pointerEvents="none",qe.style.top="0px",qe.style.left="0px",qe.style.position="absolute",qe.style.zIndex=(Ue==null?void 0:Ue.zIndex)??"100000";let Et=(0,i.unref)($);if(!Et)return z;let{clientHeight:Lt,clientWidth:hn}=Et;return pe({str:ze,width:hn,height:Lt,attr:Ue}),(vn=Et==null?void 0:Et.style)!=null&&vn.position||(Et.style.position="relative"),Et.appendChild(qe),z};function $e(ze,{str:Ue,attr:qe}){ze[0].removedNodes[0]&&ze[0].removedNodes[0].id===z&&(ie.value=void 0,Ce(Ue,qe))}function xe(ze,Ue){let qe={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(Et=>$e(Et,{str:ze,attr:Ue})).observe((0,i.unref)($),qe)}function Ie(ze,Ue){Ce(ze,Ue),window.addEventListener("resize",_e),Ue!=null&&Ue.forever&&xe(ze,Ue),(0,i.getCurrentInstance)()&&le&&le()}return L$2(()=>{window.removeEventListener("resize",_e)}),{clear:le,setWatermark:Ie}};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),ie=computed(()=>_e=>{var Ce;return((Ce=_e==null?void 0:_e.footerButtons)==null?void 0:Ce.length)>0?_e.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:$e,index:xe}})=>{const Ie=()=>closeDialog($e,xe,{command:"cancel"});$e!=null&&$e.beforeCancel&&H$1($e==null?void 0:$e.beforeCancel)?$e.beforeCancel(Ie,{options:$e,index:xe}):Ie()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:$e,index:xe}})=>{const Ie=()=>closeDialog($e,xe,{command:"sure"});$e!=null&&$e.beforeSure&&H$1($e==null?void 0:$e.beforeSure)?$e.beforeSure(Ie,{options:$e,index:xe}):Ie()}}]}),le=computed(()=>["el-icon","el-dialog__close","-translate-x-2","cursor-pointer","hover:!text-[red]"]);function ue(_e,Ce,$e){if(z.value=(Ce==null?void 0:Ce.fullscreen)??!1,Ce!=null&&Ce[_e]&&H$1(Ce==null?void 0:Ce[_e]))return Ce==null?void 0:Ce[_e]({options:Ce,index:$e})}function pe(_e,Ce,$e={command:"close"}){closeDialog(_e,Ce,$e),ue("close",_e,Ce)}return(_e,Ce)=>{const $e=resolveComponent("IconifyIconOffline"),xe=resolveComponent("el-button"),Ie=resolveComponent("el-dialog");return openBlock(!0),createElementBlock(Fragment,null,renderList(unref(dialogStore),(ze,Ue)=>(openBlock(),createBlock(Ie,mergeProps({class:"pure-dialog",key:Ue},ze,{modelValue:ze.visible,"onUpdate:modelValue":qe=>ze.visible=qe,fullscreen:z.value?!0:!!(ze!=null&&ze.fullscreen),onClose:qe=>pe(ze,Ue),onOpened:qe=>ue("open",ze,Ue),onOpenAutoFocus:qe=>ue("openAutoFocus",ze,Ue),onCloseAutoFocus:qe=>ue("closeAutoFocus",ze,Ue)}),createSlots({default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ze.contentRenderer({options:ze,index:Ue})),mergeProps(ze==null?void 0:ze.props,{onClose:qe=>pe(ze,Ue,qe)}),null,16,["onClose"]))]),_:2},[ze!=null&&ze.fullscreenIcon||ze!=null&&ze.headerRenderer?{name:"header",fn:withCtx(({close:qe,titleId:Et,titleClass:Lt})=>[ze!=null&&ze.fullscreenIcon?(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("span",{id:Et,class:normalizeClass(Lt)},toDisplayString$1(ze==null?void 0:ze.title),11,_hoisted_2$1),ze!=null&&ze.fullscreen?createCommentVNode("",!0):(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(le.value),onClick:Ce[0]||(Ce[0]=hn=>z.value=!z.value)},[createVNode($e,{class:"pure-dialog-svg",icon:ze!=null&&ze.fullscreen||z.value?unref(data):unref(data$1)},null,8,["icon"])],2))])):(openBlock(),createBlock(resolveDynamicComponent(ze==null?void 0:ze.headerRenderer({close:qe,titleId:Et,titleClass:Lt})),{key:1}))]),key:"0"}:void 0,ze!=null&&ze.hideFooter?void 0:{name:"footer",fn:withCtx(()=>[ze!=null&&ze.footerRenderer?(openBlock(),createBlock(resolveDynamicComponent(ze==null?void 0:ze.footerRenderer({options:ze,index:Ue})),{key:0})):(openBlock(),createElementBlock("span",_hoisted_3$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.value(ze),(qe,Et)=>(openBlock(),createBlock(xe,mergeProps({key:Et},qe,{onClick:Lt=>qe.btnClick({dialog:{options:ze,index:Ue},button:{btn:qe,index:Et}})}),{default:withCtx(()=>[createTextVNode(toDisplayString$1(qe==null?void 0:qe.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 ie(...le){return new Promise((ue,pe)=>{Promise.resolve($(()=>z.apply(this,le),{fn:z,thisArg:this,args:le})).then(ue).catch(pe)})}return ie}function debounceFilter($,z={}){let ie,le,ue=noop$5;const pe=Ce=>{clearTimeout(Ce),ue(),ue=noop$5};return Ce=>{const $e=toValue($),xe=toValue(z.maxWait);return ie&&pe(ie),$e<=0||xe!==void 0&&xe<=0?(le&&(pe(le),le=null),Promise.resolve(Ce())):new Promise((Ie,ze)=>{ue=z.rejectOnCancel?ze:Ie,xe&&!le&&(le=setTimeout(()=>{ie&&pe(ie),le=null,Ie(Ce())},xe)),ie=setTimeout(()=>{le&&pe(le),le=null,Ie(Ce())},$e)})}}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,ie={}){return createFilterWrapper(debounceFilter(z,ie),$)}function tryOnMounted($,z=!0){getCurrentInstance()?onMounted($):z?$():nextTick($)}function tryOnUnmounted$1($){getCurrentInstance()&&onUnmounted($)}function useIntervalFn($,z=1e3,ie={}){const{immediate:le=!0,immediateCallback:ue=!1}=ie;let pe=null;const _e=ref(!1);function Ce(){pe&&(clearInterval(pe),pe=null)}function $e(){_e.value=!1,Ce()}function xe(){const Ie=toValue(z);Ie<=0||(_e.value=!0,ue&&$(),Ce(),pe=setInterval($,Ie))}if(le&&isClient$1&&xe(),isRef(z)||typeof z=="function"){const Ie=watch(z,()=>{_e.value&&isClient$1&&xe()});tryOnScopeDispose$1(Ie)}return tryOnScopeDispose$1($e),{isActive:_e,pause:$e,resume:xe}}function useTimeoutFn($,z,ie={}){const{immediate:le=!0}=ie,ue=ref(!1);let pe=null;function _e(){pe&&(clearTimeout(pe),pe=null)}function Ce(){ue.value=!1,_e()}function $e(...xe){_e(),ue.value=!0,pe=setTimeout(()=>{ue.value=!1,pe=null,$(...xe)},toValue(z))}return le&&(ue.value=!0,isClient$1&&$e()),tryOnScopeDispose$1(Ce),{isPending:readonly(ue),start:$e,stop:Ce}}function set$2($,z,ie){return Array.isArray($)?($.length=Math.max($.length,z),$.splice(z,1,ie),ie):($[z]=ie,ie)}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,ie)=>{dialogStore.value.splice(z,1),$.closeCallBack&&$.closeCallBack({options:$,index:z,args:ie})},updateDialog=($,z="title",ie=0)=>{dialogStore.value[ie][z]=$},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Yn(_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 ie=$.__vccOpts||$;for(const[le,ue]of z)ie[le]=ue;return ie};function _sfc_render($,z,ie,le,ue,pe){const _e=resolveComponent("router-view"),Ce=resolveComponent("ReDialog"),$e=resolveComponent("el-config-provider");return openBlock(),createBlock($e,{locale:$.currentLocale},{default:withCtx(()=>[createVNode(_e),createVNode(Ce)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function($){return"/vue-pure-admin/"+$},seen={},__vitePreload=function(z,ie,le){if(!ie||ie.length===0)return z();const ue=document.getElementsByTagName("link");return Promise.all(ie.map(pe=>{if(pe=assetsURL(pe),pe in seen)return;seen[pe]=!0;const _e=pe.endsWith(".css"),Ce=_e?'[rel="stylesheet"]':"";if(!!le)for(let Ie=ue.length-1;Ie>=0;Ie--){const ze=ue[Ie];if(ze.href===pe&&(!_e||ze.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${pe}"]${Ce}`))return;const xe=document.createElement("link");if(xe.rel=_e?"stylesheet":scriptRel,_e||(xe.as="script",xe.crossOrigin=""),xe.href=pe,document.head.appendChild(xe),_e)return new Promise((Ie,ze)=>{xe.addEventListener("load",Ie),xe.addEventListener("error",()=>ze(new Error(`Unable to preload CSS for ${pe}`)))})})).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,ie)=>friendlyJSONstringify({l:$,k:z,s:ie}),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,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}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,ie={}){const{domain:le,messages:ue,args:pe}=ie,_e=$,Ce=new SyntaxError(String(_e));return Ce.code=$,z&&(Ce.location=z),Ce.domain=le,Ce}/*!
* 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),ie=$.charCodeAt($.length-1);return z===ie&&(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 ie=-1,le=0,ue=0,pe,_e,Ce,$e,xe,Ie,ze;const Ue=[];Ue[0]=()=>{_e===void 0?_e=Ce:_e+=Ce},Ue[1]=()=>{_e!==void 0&&(z.push(_e),_e=void 0)},Ue[2]=()=>{Ue[0](),ue++},Ue[3]=()=>{if(ue>0)ue--,le=4,Ue[0]();else{if(ue=0,_e===void 0||(_e=formatSubPath(_e),_e===!1))return!1;Ue[1]()}};function qe(){const Et=$[ie+1];if(le===5&&Et==="'"||le===6&&Et==='"')return ie++,Ce="\\"+Et,Ue[0](),!0}for(;le!==null;)if(ie++,pe=$[ie],!(pe==="\\"&&qe())){if($e=getPathCharType(pe),ze=pathStateMachine[le],xe=ze[$e]||ze.l||8,xe===8||(le=xe[0],xe[1]!==void 0&&(Ie=Ue[xe[1]],Ie&&(Ce=pe,Ie()===!1))))return;if(le===7)return z}}const cache=new Map;function resolveWithKeyValue($,z){return isObject$6($)?$[z]:null}function resolveValue($,z){if(!isObject$6($))return null;let ie=cache.get(z);if(ie||(ie=parse$5(z),ie&&cache.set(z,ie)),!ie)return null;const le=ie.length;let ue=$,pe=0;for(;pe<le;){const _e=ue[ie[pe]];if(_e===void 0)return null;ue=_e,pe++}return ue}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,ie=getPluralIndex($),le=isObject$6($.pluralRules)&&isString$5(z)&&isFunction$2($.pluralRules[z])?$.pluralRules[z]:pluralDefault,ue=isObject$6($.pluralRules)&&isString$5(z)&&isFunction$2($.pluralRules[z])?pluralDefault:void 0,pe=vn=>vn[le(ie,vn.length,ue)],_e=$.list||[],Ce=vn=>_e[vn],$e=$.named||{};isNumber$4($.pluralIndex)&&normalizeNamed(ie,$e);const xe=vn=>$e[vn];function Ie(vn){const _n=isFunction$2($.messages)?$.messages(vn):isObject$6($.messages)?$.messages[vn]:!1;return _n||($.parent?$.parent.message(vn):DEFAULT_MESSAGE)}const ze=vn=>$.modifiers?$.modifiers[vn]:DEFAULT_MODIFIER,Ue=isPlainObject$2($.processor)&&isFunction$2($.processor.normalize)?$.processor.normalize:DEFAULT_NORMALIZE,qe=isPlainObject$2($.processor)&&isFunction$2($.processor.interpolate)?$.processor.interpolate:DEFAULT_INTERPOLATE,Et=isPlainObject$2($.processor)&&isString$5($.processor.type)?$.processor.type:DEFAULT_MESSAGE_DATA_TYPE,hn={list:Ce,named:xe,plural:pe,linked:(vn,..._n)=>{const[bn,Sn]=_n;let Cn="text",En="";_n.length===1?isObject$6(bn)?(En=bn.modifier||En,Cn=bn.type||Cn):isString$5(bn)&&(En=bn||En):_n.length===2&&(isString$5(bn)&&(En=bn||En),isString$5(Sn)&&(Cn=Sn||Cn));let $n=Ie(vn)(hn);return Cn==="vnode"&&isArray$9($n)&&En&&($n=$n[0]),En?ze(En)($n,Cn):$n},message:Ie,type:Et,interpolate:qe,normalize:Ue};return hn}function fallbackWithSimple($,z,ie){return[...new Set([ie,...isArray$9(z)?z:isObject$6(z)?Object.keys(z):isString$5(z)?[z]:[ie]])]}function fallbackWithLocaleChain($,z,ie){const le=isString$5(ie)?ie:DEFAULT_LOCALE$1,ue=$;ue.__localeChainCache||(ue.__localeChainCache=new Map);let pe=ue.__localeChainCache.get(le);if(!pe){pe=[];let _e=[ie];for(;isArray$9(_e);)_e=appendBlockToChain(pe,_e,z);const Ce=isArray$9(z)||!isPlainObject$2(z)?z:z.default?z.default:null;_e=isString$5(Ce)?[Ce]:Ce,isArray$9(_e)&&appendBlockToChain(pe,_e,!1),ue.__localeChainCache.set(le,pe)}return pe}function appendBlockToChain($,z,ie){let le=!0;for(let ue=0;ue<z.length&&isBoolean$2(le);ue++){const pe=z[ue];isString$5(pe)&&(le=appendLocaleToChain($,z[ue],ie))}return le}function appendLocaleToChain($,z,ie){let le;const ue=z.split("-");do{const pe=ue.join("-");le=appendItemToChain($,pe,ie),ue.splice(-1,1)}while(ue.length&&le===!0);return le}function appendItemToChain($,z,ie){let le=!1;if(!$.includes(z)&&(le=!0,z)){le=z[z.length-1]!=="!";const ue=z.replace(/!/g,"");$.push(ue),(isArray$9(ie)||isPlainObject$2(ie))&&ie[ue]&&(le=ie[ue])}return le}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,ie=isString$5($.locale)?$.locale:DEFAULT_LOCALE$1,le=isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||isString$5($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:ie,ue=isPlainObject$2($.messages)?$.messages:{[ie]:{}},pe=isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[ie]:{}},_e=isPlainObject$2($.numberFormats)?$.numberFormats:{[ie]:{}},Ce=assign$4({},$.modifiers||{},getDefaultLinkedModifiers()),$e=$.pluralRules||{},xe=isFunction$2($.missing)?$.missing:null,Ie=isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,ze=isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Ue=!!$.fallbackFormat,qe=!!$.unresolving,Et=isFunction$2($.postTranslation)?$.postTranslation:null,Lt=isPlainObject$2($.processor)?$.processor:null,hn=isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,vn=!!$.escapeParameter,_n=isFunction$2($.messageCompiler)?$.messageCompiler:_compiler,bn=isFunction$2($.messageResolver)?$.messageResolver:_resolver||resolveWithKeyValue,Sn=isFunction$2($.localeFallbacker)?$.localeFallbacker:_fallbacker||fallbackWithSimple,Cn=isObject$6($.fallbackContext)?$.fallbackContext:void 0,En=isFunction$2($.onWarn)?$.onWarn:warn$1,$n=$,wn=isObject$6($n.__datetimeFormatters)?$n.__datetimeFormatters:new Map,Tn=isObject$6($n.__numberFormatters)?$n.__numberFormatters:new Map,xn=isObject$6($n.__meta)?$n.__meta:{};_cid++;const Pn={version:z,cid:_cid,locale:ie,fallbackLocale:le,messages:ue,modifiers:Ce,pluralRules:$e,missing:xe,missingWarn:Ie,fallbackWarn:ze,fallbackFormat:Ue,unresolving:qe,postTranslation:Et,processor:Lt,warnHtmlMessage:hn,escapeParameter:vn,messageCompiler:_n,messageResolver:bn,localeFallbacker:Sn,fallbackContext:Cn,onWarn:En,__meta:xn};return Pn.datetimeFormats=pe,Pn.numberFormats=_e,Pn.__datetimeFormatters=wn,Pn.__numberFormatters=Tn,Pn}function handleMissing($,z,ie,le,ue){const{missing:pe,onWarn:_e}=$;if(pe!==null){const Ce=pe($,ie,z,ue);return isString$5(Ce)?Ce:z}else return z}function updateFallbackLocale($,z,ie){const le=$;le.__localeChainCache=new Map,$.localeFallbacker($,ie,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:ie,postTranslation:le,unresolving:ue,messageCompiler:pe,fallbackLocale:_e,messages:Ce}=$,[$e,xe]=parseTranslateArgs(...z),Ie=isBoolean$2(xe.missingWarn)?xe.missingWarn:$.missingWarn,ze=isBoolean$2(xe.fallbackWarn)?xe.fallbackWarn:$.fallbackWarn,Ue=isBoolean$2(xe.escapeParameter)?xe.escapeParameter:$.escapeParameter,qe=!!xe.resolvedMessage,Et=isString$5(xe.default)||isBoolean$2(xe.default)?isBoolean$2(xe.default)?pe?$e:()=>$e:xe.default:ie?pe?$e:()=>$e:"",Lt=ie||Et!=="",hn=isString$5(xe.locale)?xe.locale:$.locale;Ue&&escapeParams(xe);let[vn,_n,bn]=qe?[$e,hn,Ce[hn]||{}]:resolveMessageFormat($,$e,hn,_e,ze,Ie),Sn=vn,Cn=$e;if(!qe&&!(isString$5(Sn)||isMessageFunction(Sn))&&Lt&&(Sn=Et,Cn=Sn),!qe&&(!(isString$5(Sn)||isMessageFunction(Sn))||!isString$5(_n)))return ue?NOT_REOSLVED:$e;let En=!1;const $n=()=>{En=!0},wn=isMessageFunction(Sn)?Sn:compileMessageFormat($,$e,_n,Sn,Cn,$n);if(En)return Sn;const Tn=getMessageContextOptions($,_n,bn,xe),xn=createMessageContext(Tn),Pn=evaluateMessage($,wn,xn);return le?le(Pn,$e):Pn}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,ie,le,ue,pe){const{messages:_e,onWarn:Ce,messageResolver:$e,localeFallbacker:xe}=$,Ie=xe($,le,ie);let ze={},Ue,qe=null;const Et="translate";for(let Lt=0;Lt<Ie.length&&(Ue=Ie[Lt],ze=_e[Ue]||{},(qe=$e(ze,z))===null&&(qe=ze[z]),!(isString$5(qe)||isFunction$2(qe)));Lt++){const hn=handleMissing($,z,Ue,pe,Et);hn!==z&&(qe=hn)}return[qe,Ue,ze]}function compileMessageFormat($,z,ie,le,ue,pe){const{messageCompiler:_e,warnHtmlMessage:Ce}=$;if(isMessageFunction(le)){const xe=le;return xe.locale=xe.locale||ie,xe.key=xe.key||z,xe}if(_e==null){const xe=()=>le;return xe.locale=ie,xe.key=z,xe}const $e=_e(le,getCompileOptions($,ie,ue,le,Ce,pe));return $e.locale=ie,$e.key=z,$e.source=le,$e}function evaluateMessage($,z,ie){return z(ie)}function parseTranslateArgs(...$){const[z,ie,le]=$,ue={};if(!isString$5(z)&&!isNumber$4(z)&&!isMessageFunction(z))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const pe=isNumber$4(z)?String(z):(isMessageFunction(z),z);return isNumber$4(ie)?ue.plural=ie:isString$5(ie)?ue.default=ie:isPlainObject$2(ie)&&!isEmptyObject(ie)?ue.named=ie:isArray$9(ie)&&(ue.list=ie),isNumber$4(le)?ue.plural=le:isString$5(le)?ue.default=le:isPlainObject$2(le)&&assign$4(ue,le),[pe,ue]}function getCompileOptions($,z,ie,le,ue,pe){return{warnHtmlMessage:ue,onError:_e=>{throw pe&&pe(_e),_e},onCacheKey:_e=>generateFormatCacheKey(z,ie,_e)}}function getMessageContextOptions($,z,ie,le){const{modifiers:ue,pluralRules:pe,messageResolver:_e,fallbackLocale:Ce,fallbackWarn:$e,missingWarn:xe,fallbackContext:Ie}=$,Ue={locale:z,modifiers:ue,pluralRules:pe,messages:qe=>{let Et=_e(ie,qe);if(Et==null&&Ie){const[,,Lt]=resolveMessageFormat(Ie,qe,z,Ce,$e,xe);Et=_e(Lt,qe)}if(isString$5(Et)){let Lt=!1;const vn=compileMessageFormat($,qe,z,Et,qe,()=>{Lt=!0});return Lt?NOOP_MESSAGE_FUNCTION:vn}else return isMessageFunction(Et)?Et:NOOP_MESSAGE_FUNCTION}};return $.processor&&(Ue.processor=$.processor),le.list&&(Ue.list=le.list),le.named&&(Ue.named=le.named),isNumber$4(le.plural)&&(Ue.pluralIndex=le.plural),Ue}function datetime($,...z){const{datetimeFormats:ie,unresolving:le,fallbackLocale:ue,onWarn:pe,localeFallbacker:_e}=$,{__datetimeFormatters:Ce}=$,[$e,xe,Ie,ze]=parseDateTimeArgs(...z),Ue=isBoolean$2(Ie.missingWarn)?Ie.missingWarn:$.missingWarn;isBoolean$2(Ie.fallbackWarn)?Ie.fallbackWarn:$.fallbackWarn;const qe=!!Ie.part,Et=isString$5(Ie.locale)?Ie.locale:$.locale,Lt=_e($,ue,Et);if(!isString$5($e)||$e==="")return new Intl.DateTimeFormat(Et,ze).format(xe);let hn={},vn,_n=null;const bn="datetime format";for(let En=0;En<Lt.length&&(vn=Lt[En],hn=ie[vn]||{},_n=hn[$e],!isPlainObject$2(_n));En++)handleMissing($,$e,vn,Ue,bn);if(!isPlainObject$2(_n)||!isString$5(vn))return le?NOT_REOSLVED:$e;let Sn=`${vn}__${$e}`;isEmptyObject(ze)||(Sn=`${Sn}__${JSON.stringify(ze)}`);let Cn=Ce.get(Sn);return Cn||(Cn=new Intl.DateTimeFormat(vn,assign$4({},_n,ze)),Ce.set(Sn,Cn)),qe?Cn.formatToParts(xe):Cn.format(xe)}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,ie,le,ue]=$,pe={};let _e={},Ce;if(isString$5(z)){const $e=z.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!$e)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const xe=$e[3]?$e[3].trim().startsWith("T")?`${$e[1].trim()}${$e[3].trim()}`:`${$e[1].trim()}T${$e[3].trim()}`:$e[1].trim();Ce=new Date(xe);try{Ce.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$2(z)){if(isNaN(z.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);Ce=z}else if(isNumber$4(z))Ce=z;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$5(ie)?pe.key=ie:isPlainObject$2(ie)&&Object.keys(ie).forEach($e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes($e)?_e[$e]=ie[$e]:pe[$e]=ie[$e]}),isString$5(le)?pe.locale=le:isPlainObject$2(le)&&(_e=le),isPlainObject$2(ue)&&(_e=ue),[pe.key||"",Ce,pe,_e]}function clearDateTimeFormat($,z,ie){const le=$;for(const ue in ie){const pe=`${z}__${ue}`;le.__datetimeFormatters.has(pe)&&le.__datetimeFormatters.delete(pe)}}function number$2($,...z){const{numberFormats:ie,unresolving:le,fallbackLocale:ue,onWarn:pe,localeFallbacker:_e}=$,{__numberFormatters:Ce}=$,[$e,xe,Ie,ze]=parseNumberArgs(...z),Ue=isBoolean$2(Ie.missingWarn)?Ie.missingWarn:$.missingWarn;isBoolean$2(Ie.fallbackWarn)?Ie.fallbackWarn:$.fallbackWarn;const qe=!!Ie.part,Et=isString$5(Ie.locale)?Ie.locale:$.locale,Lt=_e($,ue,Et);if(!isString$5($e)||$e==="")return new Intl.NumberFormat(Et,ze).format(xe);let hn={},vn,_n=null;const bn="number format";for(let En=0;En<Lt.length&&(vn=Lt[En],hn=ie[vn]||{},_n=hn[$e],!isPlainObject$2(_n));En++)handleMissing($,$e,vn,Ue,bn);if(!isPlainObject$2(_n)||!isString$5(vn))return le?NOT_REOSLVED:$e;let Sn=`${vn}__${$e}`;isEmptyObject(ze)||(Sn=`${Sn}__${JSON.stringify(ze)}`);let Cn=Ce.get(Sn);return Cn||(Cn=new Intl.NumberFormat(vn,assign$4({},_n,ze)),Ce.set(Sn,Cn)),qe?Cn.formatToParts(xe):Cn.format(xe)}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,ie,le,ue]=$,pe={};let _e={};if(!isNumber$4(z))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const Ce=z;return isString$5(ie)?pe.key=ie:isPlainObject$2(ie)&&Object.keys(ie).forEach($e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes($e)?_e[$e]=ie[$e]:pe[$e]=ie[$e]}),isString$5(le)?pe.locale=le:isPlainObject$2(le)&&(_e=le),isPlainObject$2(ue)&&(_e=ue),[pe.key||"",Ce,pe,_e]}function clearNumberFormat($,z,ie){const le=$;for(const ue in ie){const pe=`${z}__${ue}`;le.__numberFormatters.has(pe)&&le.__numberFormatters.delete(pe)}}/*!
* 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 ie=z.split("."),le=ie.length-1;let ue=$;for(let pe=0;pe<le;pe++)ie[pe]in ue||(ue[ie[pe]]={}),ue=ue[ie[pe]];ue[ie[le]]=$[z],delete $[z],isObject$6(ue[ie[le]])&&handleFlatJson(ue[ie[le]])}return $}function getLocaleMessages($,z){const{messages:ie,__i18n:le,messageResolver:ue,flatJson:pe}=z,_e=isPlainObject$2(ie)?ie:isArray$9(le)?{}:{[$]:{}};if(isArray$9(le)&&le.forEach(Ce=>{if("locale"in Ce&&"resource"in Ce){const{locale:$e,resource:xe}=Ce;$e?(_e[$e]=_e[$e]||{},deepCopy(xe,_e[$e])):deepCopy(xe,_e)}else isString$5(Ce)&&deepCopy(JSON.parse(Ce),_e)}),ue==null&&pe)for(const Ce in _e)hasOwn$3(_e,Ce)&&handleFlatJson(_e[Ce]);return _e}const isNotObjectOrIsArray=$=>!isObject$6($)||isArray$9($);function deepCopy($,z){if(isNotObjectOrIsArray($)||isNotObjectOrIsArray(z))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const ie in $)hasOwn$3($,ie)&&(isNotObjectOrIsArray($[ie])||isNotObjectOrIsArray(z[ie])?z[ie]=$[ie]:deepCopy($[ie],z[ie]))}function getComponentOptions($){return $.type}function adjustI18nResources($,z,ie){let le=isObject$6(z.messages)?z.messages:{};"__i18nGlobal"in ie&&(le=getLocaleMessages($.locale.value,{messages:le,__i18n:ie.__i18nGlobal}));const ue=Object.keys(le);ue.length&&ue.forEach(pe=>{$.mergeLocaleMessage(pe,le[pe])});{if(isObject$6(z.datetimeFormats)){const pe=Object.keys(z.datetimeFormats);pe.length&&pe.forEach(_e=>{$.mergeDateTimeFormat(_e,z.datetimeFormats[_e])})}if(isObject$6(z.numberFormats)){const pe=Object.keys(z.numberFormats);pe.length&&pe.forEach(_e=>{$.mergeNumberFormat(_e,z.numberFormats[_e])})}}}function createTextNode($){return createVNode(Text$1,null,$,0)}let composerID=0;function defineCoreMissingHandler($){return(z,ie,le,ue)=>$(ie,le,getCurrentInstance()||void 0,ue)}function createComposer($={},z){const{__root:ie}=$,le=ie===void 0;let ue=isBoolean$2($.inheritLocale)?$.inheritLocale:!0;const pe=ref(ie&&ue?ie.locale.value:isString$5($.locale)?$.locale:DEFAULT_LOCALE$1),_e=ref(ie&&ue?ie.fallbackLocale.value:isString$5($.fallbackLocale)||isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:pe.value),Ce=ref(getLocaleMessages(pe.value,$)),$e=ref(isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[pe.value]:{}}),xe=ref(isPlainObject$2($.numberFormats)?$.numberFormats:{[pe.value]:{}});let Ie=ie?ie.missingWarn:isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,ze=ie?ie.fallbackWarn:isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Ue=ie?ie.fallbackRoot:isBoolean$2($.fallbackRoot)?$.fallbackRoot:!0,qe=!!$.fallbackFormat,Et=isFunction$2($.missing)?$.missing:null,Lt=isFunction$2($.missing)?defineCoreMissingHandler($.missing):null,hn=isFunction$2($.postTranslation)?$.postTranslation:null,vn=ie?ie.warnHtmlMessage:isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,_n=!!$.escapeParameter;const bn=ie?ie.modifiers:isPlainObject$2($.modifiers)?$.modifiers:{};let Sn=$.pluralRules||ie&&ie.pluralRules,Cn;Cn=(()=>{const lr={version:VERSION$1,locale:pe.value,fallbackLocale:_e.value,messages:Ce.value,modifiers:bn,pluralRules:Sn,missing:Lt===null?void 0:Lt,missingWarn:Ie,fallbackWarn:ze,fallbackFormat:qe,unresolving:!0,postTranslation:hn===null?void 0:hn,warnHtmlMessage:vn,escapeParameter:_n,messageResolver:$.messageResolver,__meta:{framework:"vue"}};return lr.datetimeFormats=$e.value,lr.numberFormats=xe.value,lr.__datetimeFormatters=isPlainObject$2(Cn)?Cn.__datetimeFormatters:void 0,lr.__numberFormatters=isPlainObject$2(Cn)?Cn.__numberFormatters:void 0,createCoreContext(lr)})(),updateFallbackLocale(Cn,pe.value,_e.value);function $n(){return[pe.value,_e.value,Ce.value,$e.value,xe.value]}const wn=computed({get:()=>pe.value,set:lr=>{pe.value=lr,Cn.locale=pe.value}}),Tn=computed({get:()=>_e.value,set:lr=>{_e.value=lr,Cn.fallbackLocale=_e.value,updateFallbackLocale(Cn,pe.value,lr)}}),xn=computed(()=>Ce.value),Pn=computed(()=>$e.value),kn=computed(()=>xe.value);function An(){return isFunction$2(hn)?hn:null}function Nn(lr){hn=lr,Cn.postTranslation=lr}function Fn(){return Et}function Ln(lr){lr!==null&&(Lt=defineCoreMissingHandler(lr)),Et=lr,Cn.missing=Lt}const In=(lr,dr,hr,Or,Lr,Br)=>{$n();let Rr;if(Rr=lr(Cn),isNumber$4(Rr)&&Rr===NOT_REOSLVED){const[Sr,Er]=dr();return ie&&Ue?Or(ie):Lr(Sr)}else{if(Br(Rr))return Rr;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Vn(...lr){return In(dr=>Reflect.apply(translate$1,null,[dr,...lr]),()=>parseTranslateArgs(...lr),"translate",dr=>Reflect.apply(dr.t,dr,[...lr]),dr=>dr,dr=>isString$5(dr))}function Mn(...lr){const[dr,hr,Or]=lr;if(Or&&!isObject$6(Or))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Vn(dr,hr,assign$4({resolvedMessage:!0},Or||{}))}function zn(...lr){return In(dr=>Reflect.apply(datetime,null,[dr,...lr]),()=>parseDateTimeArgs(...lr),"datetime format",dr=>Reflect.apply(dr.d,dr,[...lr]),()=>MISSING_RESOLVE_VALUE,dr=>isString$5(dr))}function qn(...lr){return In(dr=>Reflect.apply(number$2,null,[dr,...lr]),()=>parseNumberArgs(...lr),"number format",dr=>Reflect.apply(dr.n,dr,[...lr]),()=>MISSING_RESOLVE_VALUE,dr=>isString$5(dr))}function Hn(lr){return lr.map(dr=>isString$5(dr)||isNumber$4(dr)||isBoolean$2(dr)?createTextNode(String(dr)):dr)}const ur={normalize:Hn,interpolate:lr=>lr,type:"vnode"};function yr(...lr){return In(dr=>{let hr;const Or=dr;try{Or.processor=ur,hr=Reflect.apply(translate$1,null,[Or,...lr])}finally{Or.processor=null}return hr},()=>parseTranslateArgs(...lr),"translate",dr=>dr[TransrateVNodeSymbol](...lr),dr=>[createTextNode(dr)],dr=>isArray$9(dr))}function sr(...lr){return In(dr=>Reflect.apply(number$2,null,[dr,...lr]),()=>parseNumberArgs(...lr),"number format",dr=>dr[NumberPartsSymbol](...lr),()=>[],dr=>isString$5(dr)||isArray$9(dr))}function Zn(...lr){return In(dr=>Reflect.apply(datetime,null,[dr,...lr]),()=>parseDateTimeArgs(...lr),"datetime format",dr=>dr[DatetimePartsSymbol](...lr),()=>[],dr=>isString$5(dr)||isArray$9(dr))}function Kn(lr){Sn=lr,Cn.pluralRules=Sn}function Wn(lr,dr){const hr=isString$5(dr)?dr:pe.value,Or=Gn(hr);return Cn.messageResolver(Or,lr)!==null}function nr(lr){let dr=null;const hr=fallbackWithLocaleChain(Cn,_e.value,pe.value);for(let Or=0;Or<hr.length;Or++){const Lr=Ce.value[hr[Or]]||{},Br=Cn.messageResolver(Lr,lr);if(Br!=null){dr=Br;break}}return dr}function fr(lr){const dr=nr(lr);return dr??(ie?ie.tm(lr)||{}:{})}function Gn(lr){return Ce.value[lr]||{}}function Xn(lr,dr){Ce.value[lr]=dr,Cn.messages=Ce.value}function or(lr,dr){Ce.value[lr]=Ce.value[lr]||{},deepCopy(dr,Ce.value[lr]),Cn.messages=Ce.value}function vr(lr){return $e.value[lr]||{}}function _r(lr,dr){$e.value[lr]=dr,Cn.datetimeFormats=$e.value,clearDateTimeFormat(Cn,lr,dr)}function ir(lr,dr){$e.value[lr]=assign$4($e.value[lr]||{},dr),Cn.datetimeFormats=$e.value,clearDateTimeFormat(Cn,lr,dr)}function Pr(lr){return xe.value[lr]||{}}function gr(lr,dr){xe.value[lr]=dr,Cn.numberFormats=xe.value,clearNumberFormat(Cn,lr,dr)}function kr(lr,dr){xe.value[lr]=assign$4(xe.value[lr]||{},dr),Cn.numberFormats=xe.value,clearNumberFormat(Cn,lr,dr)}composerID++,ie&&inBrowser&&(watch(ie.locale,lr=>{ue&&(pe.value=lr,Cn.locale=lr,updateFallbackLocale(Cn,pe.value,_e.value))}),watch(ie.fallbackLocale,lr=>{ue&&(_e.value=lr,Cn.fallbackLocale=lr,updateFallbackLocale(Cn,pe.value,_e.value))}));const pr={id:composerID,locale:wn,fallbackLocale:Tn,get inheritLocale(){return ue},set inheritLocale(lr){ue=lr,lr&&ie&&(pe.value=ie.locale.value,_e.value=ie.fallbackLocale.value,updateFallbackLocale(Cn,pe.value,_e.value))},get availableLocales(){return Object.keys(Ce.value).sort()},messages:xn,get modifiers(){return bn},get pluralRules(){return Sn||{}},get isGlobal(){return le},get missingWarn(){return Ie},set missingWarn(lr){Ie=lr,Cn.missingWarn=Ie},get fallbackWarn(){return ze},set fallbackWarn(lr){ze=lr,Cn.fallbackWarn=ze},get fallbackRoot(){return Ue},set fallbackRoot(lr){Ue=lr},get fallbackFormat(){return qe},set fallbackFormat(lr){qe=lr,Cn.fallbackFormat=qe},get warnHtmlMessage(){return vn},set warnHtmlMessage(lr){vn=lr,Cn.warnHtmlMessage=lr},get escapeParameter(){return _n},set escapeParameter(lr){_n=lr,Cn.escapeParameter=lr},t:Vn,getLocaleMessage:Gn,setLocaleMessage:Xn,mergeLocaleMessage:or,getPostTranslationHandler:An,setPostTranslationHandler:Nn,getMissingHandler:Fn,setMissingHandler:Ln,[SetPluralRulesSymbol]:Kn};return pr.datetimeFormats=Pn,pr.numberFormats=kn,pr.rt=Mn,pr.te=Wn,pr.tm=fr,pr.d=zn,pr.n=qn,pr.getDateTimeFormat=vr,pr.setDateTimeFormat=_r,pr.mergeDateTimeFormat=ir,pr.getNumberFormat=Pr,pr.setNumberFormat=gr,pr.mergeNumberFormat=kr,pr[InejctWithOption]=$.__injectWithOption,pr[TransrateVNodeSymbol]=yr,pr[DatetimePartsSymbol]=Zn,pr[NumberPartsSymbol]=sr,pr}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((le,ue)=>le=[...le,...isArray$9(ue.children)?ue.children:[ue]],[]):z.reduce((ie,le)=>{const ue=$[le];return ue&&(ie[le]=ue()),ie},{})}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:ie,attrs:le}=z,ue=$.i18n||useI18n$1({useScope:$.scope,__useComponent:!0});return()=>{const pe=Object.keys(ie).filter(ze=>ze!=="_"),_e={};$.locale&&(_e.locale=$.locale),$.plural!==void 0&&(_e.plural=isString$5($.plural)?+$.plural:$.plural);const Ce=getInterpolateArg(z,pe),$e=ue[TransrateVNodeSymbol]($.keypath,Ce,_e),xe=assign$4({},le),Ie=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(Ie,xe,$e)}}};function isVNode($){return isArray$9($)&&!isString$5($[0])}function renderFormatter($,z,ie,le){const{slots:ue,attrs:pe}=z;return()=>{const _e={part:!0};let Ce={};$.locale&&(_e.locale=$.locale),isString$5($.format)?_e.key=$.format:isObject$6($.format)&&(isString$5($.format.key)&&(_e.key=$.format.key),Ce=Object.keys($.format).reduce((Ue,qe)=>ie.includes(qe)?assign$4({},Ue,{[qe]:$.format[qe]}):Ue,{}));const $e=le($.value,_e,Ce);let xe=[_e.key];isArray$9($e)?xe=$e.map((Ue,qe)=>{const Et=ue[Ue.type],Lt=Et?Et({[Ue.type]:Ue.value,index:qe,parts:$e}):[Ue.value];return isVNode(Lt)&&(Lt[0].key=`${Ue.type}-${qe}`),Lt}):isString$5($e)&&(xe=[$e]);const Ie=assign$4({},pe),ze=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(ze,Ie,xe)}}const NumberFormat={name:"i18n-n",props:assign$4({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,z){const ie=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,z,NUMBER_FORMAT_OPTIONS_KEYS,(...le)=>ie[NumberPartsSymbol](...le))}},DatetimeFormat={name:"i18n-d",props:assign$4({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,z){const ie=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,z,DATETIME_FORMAT_OPTIONS_KEYS,(...le)=>ie[DatetimePartsSymbol](...le))}};function getComposer$2($,z){const ie=$;if($.mode==="composition")return ie.__getInstance(z)||$.global;{const le=ie.__getInstance(z);return le!=null?le.__composer:$.global.__composer}}function vTDirective($){const z=_e=>{const{instance:Ce,modifiers:$e,value:xe}=_e;if(!Ce||!Ce.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const Ie=getComposer$2($,Ce.$),ze=parseValue(xe);return[Reflect.apply(Ie.t,Ie,[...makeParams(ze)]),Ie]};return{created:(_e,Ce)=>{const[$e,xe]=z(Ce);inBrowser&&$.global===xe&&(_e.__i18nWatcher=watch(xe.locale,()=>{Ce.instance&&Ce.instance.$forceUpdate()})),_e.__composer=xe,_e.textContent=$e},unmounted:_e=>{inBrowser&&_e.__i18nWatcher&&(_e.__i18nWatcher(),_e.__i18nWatcher=void 0,delete _e.__i18nWatcher),_e.__composer&&(_e.__composer=void 0,delete _e.__composer)},beforeUpdate:(_e,{value:Ce})=>{if(_e.__composer){const $e=_e.__composer,xe=parseValue(Ce);_e.textContent=Reflect.apply($e.t,$e,[...makeParams(xe)])}},getSSRProps:_e=>{const[Ce]=z(_e);return{textContent:Ce}}}}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:ie,args:le,choice:ue,plural:pe}=$,_e={},Ce=le||{};return isString$5(ie)&&(_e.locale=ie),isNumber$4(ue)&&(_e.plural=ue),isNumber$4(pe)&&(_e.plural=pe),[z,Ce,_e]}function apply($,z,...ie){const le=isPlainObject$2(ie[0])?ie[0]:{},ue=!!le.useI18nComponentName;(isBoolean$2(le.globalInstall)?le.globalInstall:!0)&&($.component(ue?"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 ie=isBoolean$2($.globalInjection)?$.globalInjection:!0,le=!0,ue=new Map,[pe,_e]=createGlobal($),Ce=makeSymbol("");function $e(ze){return ue.get(ze)||null}function xe(ze,Ue){ue.set(ze,Ue)}function Ie(ze){ue.delete(ze)}{const ze={get mode(){return"composition"},get allowComposition(){return le},async install(Ue,...qe){Ue.__VUE_I18N_SYMBOL__=Ce,Ue.provide(Ue.__VUE_I18N_SYMBOL__,ze),ie&&injectGlobalFields(Ue,ze.global),apply(Ue,ze,...qe);const Et=Ue.unmount;Ue.unmount=()=>{ze.dispose(),Et()}},get global(){return _e},dispose(){pe.stop()},__instances:ue,__getInstance:$e,__setInstance:xe,__deleteInstance:Ie};return ze}}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 ie=getI18nInstance(z),le=getGlobalComposer(ie),ue=getComponentOptions(z),pe=getScope($,ue);if(pe==="global")return adjustI18nResources(le,$,ue),le;if(pe==="parent"){let $e=getComposer(ie,z,$.__useComponent);return $e==null&&($e=le),$e}const _e=ie;let Ce=_e.__getInstance(z);if(Ce==null){const $e=assign$4({},$);"__i18n"in ue&&($e.__i18n=ue.__i18n),le&&($e.__root=le),Ce=createComposer($e),setupLifeCycle(_e,z),_e.__setInstance(z,Ce)}return Ce}function createGlobal($,z,ie){const le=effectScope();{const ue=le.run(()=>createComposer($));if(ue==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[le,ue]}}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,ie=!1){let le=null;const ue=z.root;let pe=z.parent;for(;pe!=null;){const _e=$;if($.mode==="composition"&&(le=_e.__getInstance(pe)),le!=null||ue===pe)break;pe=pe.parent}return le}function setupLifeCycle($,z,ie){onMounted(()=>{},z),onUnmounted(()=>{$.__deleteInstance(z)},z)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields($,z){const ie=Object.create(null);globalExportProps.forEach(le=>{const ue=Object.getOwnPropertyDescriptor(z,le);if(!ue)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const pe=isRef(ue.value)?{get(){return ue.value.value},set(_e){ue.value.value=_e}}:{get(){return ue.get&&ue.get()}};Object.defineProperty(ie,le,pe)}),$.config.globalProperties.$i18n=ie,globalExportMethods.forEach(le=>{const ue=Object.getOwnPropertyDescriptor(z,le);if(!ue||!ue.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty($.config.globalProperties,`$${le}`,ue)})}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 ie=toString$1.call(z);return $[ie]||($[ie]=ie.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:ie=!1}={}){if($===null||typeof $>"u")return;let le,ue;if(typeof $!="object"&&($=[$]),isArray$8($))for(le=0,ue=$.length;le<ue;le++)z.call(null,$[le],le,$);else{const pe=ie?Object.getOwnPropertyNames($):Object.keys($),_e=pe.length;let Ce;for(le=0;le<_e;le++)Ce=pe[le],z.call(null,$[Ce],Ce,$)}}function findKey($,z){z=z.toLowerCase();const ie=Object.keys($);let le=ie.length,ue;for(;le-- >0;)if(ue=ie[le],z===ue.toLowerCase())return ue;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={},ie=(le,ue)=>{const pe=$&&findKey(z,ue)||ue;isPlainObject$1(z[pe])&&isPlainObject$1(le)?z[pe]=merge$2(z[pe],le):isPlainObject$1(le)?z[pe]=merge$2({},le):isArray$8(le)?z[pe]=le.slice():z[pe]=le};for(let le=0,ue=arguments.length;le<ue;le++)arguments[le]&&forEach$2(arguments[le],ie);return z}const extend$1=($,z,ie,{allOwnKeys:le}={})=>(forEach$2(z,(ue,pe)=>{ie&&isFunction$1(ue)?$[pe]=bind$4(ue,ie):$[pe]=ue},{allOwnKeys:le}),$),stripBOM=$=>($.charCodeAt(0)===65279&&($=$.slice(1)),$),inherits$1=($,z,ie,le)=>{$.prototype=Object.create(z.prototype,le),$.prototype.constructor=$,Object.defineProperty($,"super",{value:z.prototype}),ie&&Object.assign($.prototype,ie)},toFlatObject=($,z,ie,le)=>{let ue,pe,_e;const Ce={};if(z=z||{},$==null)return z;do{for(ue=Object.getOwnPropertyNames($),pe=ue.length;pe-- >0;)_e=ue[pe],(!le||le(_e,$,z))&&!Ce[_e]&&(z[_e]=$[_e],Ce[_e]=!0);$=ie!==!1&&getPrototypeOf($)}while($&&(!ie||ie($,z))&&$!==Object.prototype);return z},endsWith=($,z,ie)=>{$=String($),(ie===void 0||ie>$.length)&&(ie=$.length),ie-=z.length;const le=$.indexOf(z,ie);return le!==-1&&le===ie},toArray$1=$=>{if(!$)return null;if(isArray$8($))return $;let z=$.length;if(!isNumber$3(z))return null;const ie=new Array(z);for(;z-- >0;)ie[z]=$[z];return ie},isTypedArray$1=($=>z=>$&&z instanceof $)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=($,z)=>{const le=($&&$[Symbol.iterator]).call($);let ue;for(;(ue=le.next())&&!ue.done;){const pe=ue.value;z.call($,pe[0],pe[1])}},matchAll=($,z)=>{let ie;const le=[];for(;(ie=$.exec(z))!==null;)le.push(ie);return le},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=$=>$.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(ie,le,ue){return le.toUpperCase()+ue}),hasOwnProperty=(({hasOwnProperty:$})=>(z,ie)=>$.call(z,ie))(Object.prototype),isRegExp$3=kindOfTest("RegExp"),reduceDescriptors=($,z)=>{const ie=Object.getOwnPropertyDescriptors($),le={};forEach$2(ie,(ue,pe)=>{z(ue,pe,$)!==!1&&(le[pe]=ue)}),Object.defineProperties($,le)},freezeMethods=$=>{reduceDescriptors($,(z,ie)=>{if(isFunction$1($)&&["arguments","caller","callee"].indexOf(ie)!==-1)return!1;const le=$[ie];if(isFunction$1(le)){if(z.enumerable=!1,"writable"in z){z.writable=!1;return}z.set||(z.set=()=>{throw Error("Can not rewrite read-only method '"+ie+"'")})}})},toObjectSet=($,z)=>{const ie={},le=ue=>{ue.forEach(pe=>{ie[pe]=!0})};return isArray$8($)?le($):le(String($).split(z)),ie},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 ie="";const{length:le}=z;for(;$--;)ie+=z[Math.random()*le|0];return ie};function isSpecCompliantForm($){return!!($&&isFunction$1($.append)&&$[Symbol.toStringTag]==="FormData"&&$[Symbol.iterator])}const toJSONObject=$=>{const z=new Array(10),ie=(le,ue)=>{if(isObject$5(le)){if(z.indexOf(le)>=0)return;if(!("toJSON"in le)){z[ue]=le;const pe=isArray$8(le)?[]:{};return forEach$2(le,(_e,Ce)=>{const $e=ie(_e,ue+1);!isUndefined($e)&&(pe[Ce]=$e)}),z[ue]=void 0,pe}}return le};return ie($,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,ie,le,ue){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=$,this.name="AxiosError",z&&(this.code=z),ie&&(this.config=ie),le&&(this.request=le),ue&&(this.response=ue)}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,ie,le,ue,pe)=>{const _e=Object.create(prototype$1);return utils$8.toFlatObject($,_e,function($e){return $e!==Error.prototype},Ce=>Ce!=="isAxiosError"),AxiosError.call(_e,$.message,z,ie,le,ue),_e.cause=$,_e.name=$.name,pe&&Object.assign(_e,pe),_e};const httpAdapter=null;function isVisitable($){return utils$8.isPlainObject($)||utils$8.isArray($)}function removeBrackets($){return utils$8.endsWith($,"[]")?$.slice(0,-2):$}function renderKey($,z,ie){return $?$.concat(z).map(function(ue,pe){return ue=removeBrackets(ue),!ie&&pe?"["+ue+"]":ue}).join(ie?".":""):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,ie){if(!utils$8.isObject($))throw new TypeError("target must be an object");z=z||new FormData,ie=utils$8.toFlatObject(ie,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Lt,hn){return!utils$8.isUndefined(hn[Lt])});const le=ie.metaTokens,ue=ie.visitor||Ie,pe=ie.dots,_e=ie.indexes,$e=(ie.Blob||typeof Blob<"u"&&Blob)&&utils$8.isSpecCompliantForm(z);if(!utils$8.isFunction(ue))throw new TypeError("visitor must be a function");function xe(Et){if(Et===null)return"";if(utils$8.isDate(Et))return Et.toISOString();if(!$e&&utils$8.isBlob(Et))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$8.isArrayBuffer(Et)||utils$8.isTypedArray(Et)?$e&&typeof Blob=="function"?new Blob([Et]):Buffer.from(Et):Et}function Ie(Et,Lt,hn){let vn=Et;if(Et&&!hn&&typeof Et=="object"){if(utils$8.endsWith(Lt,"{}"))Lt=le?Lt:Lt.slice(0,-2),Et=JSON.stringify(Et);else if(utils$8.isArray(Et)&&isFlatArray(Et)||(utils$8.isFileList(Et)||utils$8.endsWith(Lt,"[]"))&&(vn=utils$8.toArray(Et)))return Lt=removeBrackets(Lt),vn.forEach(function(bn,Sn){!(utils$8.isUndefined(bn)||bn===null)&&z.append(_e===!0?renderKey([Lt],Sn,pe):_e===null?Lt:Lt+"[]",xe(bn))}),!1}return isVisitable(Et)?!0:(z.append(renderKey(hn,Lt,pe),xe(Et)),!1)}const ze=[],Ue=Object.assign(predicates,{defaultVisitor:Ie,convertValue:xe,isVisitable});function qe(Et,Lt){if(!utils$8.isUndefined(Et)){if(ze.indexOf(Et)!==-1)throw Error("Circular reference detected in "+Lt.join("."));ze.push(Et),utils$8.forEach(Et,function(vn,_n){(!(utils$8.isUndefined(vn)||vn===null)&&ue.call(z,vn,utils$8.isString(_n)?_n.trim():_n,Lt,Ue))===!0&&qe(vn,Lt?Lt.concat(_n):[_n])}),ze.pop()}}if(!utils$8.isObject($))throw new TypeError("data must be an object");return qe($),z}function encode$2($){const z={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(le){return z[le]})}function AxiosURLSearchParams($,z){this._pairs=[],$&&toFormData($,this,z)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(z,ie){this._pairs.push([z,ie])};prototype.toString=function(z){const ie=z?function(le){return z.call(this,le,encode$2)}:encode$2;return this._pairs.map(function(ue){return ie(ue[0])+"="+ie(ue[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,ie){if(!z)return $;const le=ie&&ie.encode||encode$1,ue=ie&&ie.serialize;let pe;if(ue?pe=ue(z,ie):pe=utils$8.isURLSearchParams(z)?z.toString():new AxiosURLSearchParams(z,ie).toString(le),pe){const _e=$.indexOf("#");_e!==-1&&($=$.slice(0,_e)),$+=($.indexOf("?")===-1?"?":"&")+pe}return $}class InterceptorManager{constructor(){this.handlers=[]}use(z,ie,le){return this.handlers.push({fulfilled:z,rejected:ie,synchronous:le?le.synchronous:!1,runWhen:le?le.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(le){le!==null&&z(le)})}}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(ie,le,ue,pe){return platform$1.isNode&&utils$8.isBuffer(ie)?(this.append(le,ie.toString("base64")),!1):pe.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={},ie=Object.keys($);let le;const ue=ie.length;let pe;for(le=0;le<ue;le++)pe=ie[le],z[pe]=$[pe];return z}function formDataToJSON($){function z(ie,le,ue,pe){let _e=ie[pe++];const Ce=Number.isFinite(+_e),$e=pe>=ie.length;return _e=!_e&&utils$8.isArray(ue)?ue.length:_e,$e?(utils$8.hasOwnProp(ue,_e)?ue[_e]=[ue[_e],le]:ue[_e]=le,!Ce):((!ue[_e]||!utils$8.isObject(ue[_e]))&&(ue[_e]=[]),z(ie,le,ue[_e],pe)&&utils$8.isArray(ue[_e])&&(ue[_e]=arrayToObject$1(ue[_e])),!Ce)}if(utils$8.isFormData($)&&utils$8.isFunction($.entries)){const ie={};return utils$8.forEachEntry($,(le,ue)=>{z(parsePropPath(le),ue,ie,0)}),ie}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely($,z,ie){if(utils$8.isString($))try{return(z||JSON.parse)($),utils$8.trim($)}catch(le){if(le.name!=="SyntaxError")throw le}return(ie||JSON.stringify)($)}const defaults$3={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(z,ie){const le=ie.getContentType()||"",ue=le.indexOf("application/json")>-1,pe=utils$8.isObject(z);if(pe&&utils$8.isHTMLForm(z)&&(z=new FormData(z)),utils$8.isFormData(z))return ue&&ue?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 ie.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),z.toString();let Ce;if(pe){if(le.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(z,this.formSerializer).toString();if((Ce=utils$8.isFileList(z))||le.indexOf("multipart/form-data")>-1){const $e=this.env&&this.env.FormData;return toFormData(Ce?{"files[]":z}:z,$e&&new $e,this.formSerializer)}}return pe||ue?(ie.setContentType("application/json",!1),stringifySafely(z)):z}],transformResponse:[function(z){const ie=this.transitional||defaults$3.transitional,le=ie&&ie.forcedJSONParsing,ue=this.responseType==="json";if(z&&utils$8.isString(z)&&(le&&!this.responseType||ue)){const _e=!(ie&&ie.silentJSONParsing)&&ue;try{return JSON.parse(z)}catch(Ce){if(_e)throw Ce.name==="SyntaxError"?AxiosError.from(Ce,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):Ce}}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 ie,le,ue;return $&&$.split(`
`).forEach(function(_e){ue=_e.indexOf(":"),ie=_e.substring(0,ue).trim().toLowerCase(),le=_e.substring(ue+1).trim(),!(!ie||z[ie]&&ignoreDuplicateOf[ie])&&(ie==="set-cookie"?z[ie]?z[ie].push(le):z[ie]=[le]:z[ie]=z[ie]?z[ie]+", "+le:le)}),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),ie=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let le;for(;le=ie.exec($);)z[le[1]]=le[2];return z}const isValidHeaderName=$=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());function matchHeaderValue($,z,ie,le,ue){if(utils$8.isFunction(le))return le.call(this,z,ie);if(ue&&(z=ie),!!utils$8.isString(z)){if(utils$8.isString(le))return z.indexOf(le)!==-1;if(utils$8.isRegExp(le))return le.test(z)}}function formatHeader($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(z,ie,le)=>ie.toUpperCase()+le)}function buildAccessors($,z){const ie=utils$8.toCamelCase(" "+z);["get","set","has"].forEach(le=>{Object.defineProperty($,le+ie,{value:function(ue,pe,_e){return this[le].call(this,z,ue,pe,_e)},configurable:!0})})}class AxiosHeaders{constructor(z){z&&this.set(z)}set(z,ie,le){const ue=this;function pe(Ce,$e,xe){const Ie=normalizeHeader($e);if(!Ie)throw new Error("header name must be a non-empty string");const ze=utils$8.findKey(ue,Ie);(!ze||ue[ze]===void 0||xe===!0||xe===void 0&&ue[ze]!==!1)&&(ue[ze||$e]=normalizeValue(Ce))}const _e=(Ce,$e)=>utils$8.forEach(Ce,(xe,Ie)=>pe(xe,Ie,$e));return utils$8.isPlainObject(z)||z instanceof this.constructor?_e(z,ie):utils$8.isString(z)&&(z=z.trim())&&!isValidHeaderName(z)?_e(parseHeaders(z),ie):z!=null&&pe(ie,z,le),this}get(z,ie){if(z=normalizeHeader(z),z){const le=utils$8.findKey(this,z);if(le){const ue=this[le];if(!ie)return ue;if(ie===!0)return parseTokens(ue);if(utils$8.isFunction(ie))return ie.call(this,ue,le);if(utils$8.isRegExp(ie))return ie.exec(ue);throw new TypeError("parser must be boolean|regexp|function")}}}has(z,ie){if(z=normalizeHeader(z),z){const le=utils$8.findKey(this,z);return!!(le&&this[le]!==void 0&&(!ie||matchHeaderValue(this,this[le],le,ie)))}return!1}delete(z,ie){const le=this;let ue=!1;function pe(_e){if(_e=normalizeHeader(_e),_e){const Ce=utils$8.findKey(le,_e);Ce&&(!ie||matchHeaderValue(le,le[Ce],Ce,ie))&&(delete le[Ce],ue=!0)}}return utils$8.isArray(z)?z.forEach(pe):pe(z),ue}clear(z){const ie=Object.keys(this);let le=ie.length,ue=!1;for(;le--;){const pe=ie[le];(!z||matchHeaderValue(this,this[pe],pe,z,!0))&&(delete this[pe],ue=!0)}return ue}normalize(z){const ie=this,le={};return utils$8.forEach(this,(ue,pe)=>{const _e=utils$8.findKey(le,pe);if(_e){ie[_e]=normalizeValue(ue),delete ie[pe];return}const Ce=z?formatHeader(pe):String(pe).trim();Ce!==pe&&delete ie[pe],ie[Ce]=normalizeValue(ue),le[Ce]=!0}),this}concat(...z){return this.constructor.concat(this,...z)}toJSON(z){const ie=Object.create(null);return utils$8.forEach(this,(le,ue)=>{le!=null&&le!==!1&&(ie[ue]=z&&utils$8.isArray(le)?le.join(", "):le)}),ie}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([z,ie])=>z+": "+ie).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(z){return z instanceof this?z:new this(z)}static concat(z,...ie){const le=new this(z);return ie.forEach(ue=>le.set(ue)),le}static accessor(z){const le=(this[$internals]=this[$internals]={accessors:{}}).accessors,ue=this.prototype;function pe(_e){const Ce=normalizeHeader(_e);le[Ce]||(buildAccessors(ue,_e),le[Ce]=!0)}return utils$8.isArray(z)?z.forEach(pe):pe(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 ie=this||defaults$4,le=z||ie,ue=AxiosHeaders$1.from(le.headers);let pe=le.data;return utils$8.forEach($,function(Ce){pe=Ce.call(ie,pe,ue.normalize(),z?z.status:void 0)}),ue.normalize(),pe}function isCancel($){return!!($&&$.__CANCEL__)}function CanceledError($,z,ie){AxiosError.call(this,$??"canceled",AxiosError.ERR_CANCELED,z,ie),this.name="CanceledError"}utils$8.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle($,z,ie){const le=ie.config.validateStatus;!ie.status||!le||le(ie.status)?$(ie):z(new AxiosError("Request failed with status code "+ie.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(ie.status/100)-4],ie.config,ie.request,ie))}const cookies=platform$1.isStandardBrowserEnv?function(){return{write:function(ie,le,ue,pe,_e,Ce){const $e=[];$e.push(ie+"="+encodeURIComponent(le)),utils$8.isNumber(ue)&&$e.push("expires="+new Date(ue).toGMTString()),utils$8.isString(pe)&&$e.push("path="+pe),utils$8.isString(_e)&&$e.push("domain="+_e),Ce===!0&&$e.push("secure"),document.cookie=$e.join("; ")},read:function(ie){const le=document.cookie.match(new RegExp("(^|;\\s*)("+ie+")=([^;]*)"));return le?decodeURIComponent(le[3]):null},remove:function(ie){this.write(ie,"",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),ie=document.createElement("a");let le;function ue(pe){let _e=pe;return z&&(ie.setAttribute("href",_e),_e=ie.href),ie.setAttribute("href",_e),{href:ie.href,protocol:ie.protocol?ie.protocol.replace(/:$/,""):"",host:ie.host,search:ie.search?ie.search.replace(/^\?/,""):"",hash:ie.hash?ie.hash.replace(/^#/,""):"",hostname:ie.hostname,port:ie.port,pathname:ie.pathname.charAt(0)==="/"?ie.pathname:"/"+ie.pathname}}return le=ue(window.location.href),function(_e){const Ce=utils$8.isString(_e)?ue(_e):_e;return Ce.protocol===le.protocol&&Ce.host===le.host}}():function(){return function(){return!0}}();function parseProtocol($){const z=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return z&&z[1]||""}function speedometer($,z){$=$||10;const ie=new Array($),le=new Array($);let ue=0,pe=0,_e;return z=z!==void 0?z:1e3,function($e){const xe=Date.now(),Ie=le[pe];_e||(_e=xe),ie[ue]=$e,le[ue]=xe;let ze=pe,Ue=0;for(;ze!==ue;)Ue+=ie[ze++],ze=ze%$;if(ue=(ue+1)%$,ue===pe&&(pe=(pe+1)%$),xe-_e<z)return;const qe=Ie&&xe-Ie;return qe?Math.round(Ue*1e3/qe):void 0}}function progressEventReducer($,z){let ie=0;const le=speedometer(50,250);return ue=>{const pe=ue.loaded,_e=ue.lengthComputable?ue.total:void 0,Ce=pe-ie,$e=le(Ce),xe=pe<=_e;ie=pe;const Ie={loaded:pe,total:_e,progress:_e?pe/_e:void 0,bytes:Ce,rate:$e||void 0,estimated:$e&&_e&&xe?(_e-pe)/$e:void 0,event:ue};Ie[z?"download":"upload"]=!0,$(Ie)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function($){return new Promise(function(ie,le){let ue=$.data;const pe=AxiosHeaders$1.from($.headers).normalize(),_e=$.responseType;let Ce;function $e(){$.cancelToken&&$.cancelToken.unsubscribe(Ce),$.signal&&$.signal.removeEventListener("abort",Ce)}utils$8.isFormData(ue)&&(platform$1.isStandardBrowserEnv||platform$1.isStandardBrowserWebWorkerEnv?pe.setContentType(!1):pe.setContentType("multipart/form-data;",!1));let xe=new XMLHttpRequest;if($.auth){const qe=$.auth.username||"",Et=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";pe.set("Authorization","Basic "+btoa(qe+":"+Et))}const Ie=buildFullPath($.baseURL,$.url);xe.open($.method.toUpperCase(),buildURL(Ie,$.params,$.paramsSerializer),!0),xe.timeout=$.timeout;function ze(){if(!xe)return;const qe=AxiosHeaders$1.from("getAllResponseHeaders"in xe&&xe.getAllResponseHeaders()),Lt={data:!_e||_e==="text"||_e==="json"?xe.responseText:xe.response,status:xe.status,statusText:xe.statusText,headers:qe,config:$,request:xe};settle(function(vn){ie(vn),$e()},function(vn){le(vn),$e()},Lt),xe=null}if("onloadend"in xe?xe.onloadend=ze:xe.onreadystatechange=function(){!xe||xe.readyState!==4||xe.status===0&&!(xe.responseURL&&xe.responseURL.indexOf("file:")===0)||setTimeout(ze)},xe.onabort=function(){xe&&(le(new AxiosError("Request aborted",AxiosError.ECONNABORTED,$,xe)),xe=null)},xe.onerror=function(){le(new AxiosError("Network Error",AxiosError.ERR_NETWORK,$,xe)),xe=null},xe.ontimeout=function(){let Et=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded";const Lt=$.transitional||transitionalDefaults;$.timeoutErrorMessage&&(Et=$.timeoutErrorMessage),le(new AxiosError(Et,Lt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,$,xe)),xe=null},platform$1.isStandardBrowserEnv){const qe=($.withCredentials||isURLSameOrigin(Ie))&&$.xsrfCookieName&&cookies.read($.xsrfCookieName);qe&&pe.set($.xsrfHeaderName,qe)}ue===void 0&&pe.setContentType(null),"setRequestHeader"in xe&&utils$8.forEach(pe.toJSON(),function(Et,Lt){xe.setRequestHeader(Lt,Et)}),utils$8.isUndefined($.withCredentials)||(xe.withCredentials=!!$.withCredentials),_e&&_e!=="json"&&(xe.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&xe.addEventListener("progress",progressEventReducer($.onDownloadProgress,!0)),typeof $.onUploadProgress=="function"&&xe.upload&&xe.upload.addEventListener("progress",progressEventReducer($.onUploadProgress)),($.cancelToken||$.signal)&&(Ce=qe=>{xe&&(le(!qe||qe.type?new CanceledError(null,$,xe):qe),xe.abort(),xe=null)},$.cancelToken&&$.cancelToken.subscribe(Ce),$.signal&&($.signal.aborted?Ce():$.signal.addEventListener("abort",Ce)));const Ue=parseProtocol(Ie);if(Ue&&platform$1.protocols.indexOf(Ue)===-1){le(new AxiosError("Unsupported protocol "+Ue+":",AxiosError.ERR_BAD_REQUEST,$));return}xe.send(ue||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 ie,le;for(let ue=0;ue<z&&(ie=$[ue],!(le=utils$8.isString(ie)?knownAdapters[ie.toLowerCase()]:ie));ue++);if(!le)throw le===!1?new AxiosError(`Adapter ${ie} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(utils$8.hasOwnProp(knownAdapters,ie)?`Adapter '${ie}' is not available in the build`:`Unknown adapter '${ie}'`);if(!utils$8.isFunction(le))throw new TypeError("adapter is not a function");return le},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(le){return throwIfCancellationRequested($),le.data=transformData.call($,$.transformResponse,le),le.headers=AxiosHeaders$1.from(le.headers),le},function(le){return isCancel(le)||(throwIfCancellationRequested($),le&&le.response&&(le.response.data=transformData.call($,$.transformResponse,le.response),le.response.headers=AxiosHeaders$1.from(le.response.headers))),Promise.reject(le)})}const headersToObject=$=>$ instanceof AxiosHeaders$1?$.toJSON():$;function mergeConfig($,z){z=z||{};const ie={};function le(xe,Ie,ze){return utils$8.isPlainObject(xe)&&utils$8.isPlainObject(Ie)?utils$8.merge.call({caseless:ze},xe,Ie):utils$8.isPlainObject(Ie)?utils$8.merge({},Ie):utils$8.isArray(Ie)?Ie.slice():Ie}function ue(xe,Ie,ze){if(utils$8.isUndefined(Ie)){if(!utils$8.isUndefined(xe))return le(void 0,xe,ze)}else return le(xe,Ie,ze)}function pe(xe,Ie){if(!utils$8.isUndefined(Ie))return le(void 0,Ie)}function _e(xe,Ie){if(utils$8.isUndefined(Ie)){if(!utils$8.isUndefined(xe))return le(void 0,xe)}else return le(void 0,Ie)}function Ce(xe,Ie,ze){if(ze in z)return le(xe,Ie);if(ze in $)return le(void 0,xe)}const $e={url:pe,method:pe,data:pe,baseURL:_e,transformRequest:_e,transformResponse:_e,paramsSerializer:_e,timeout:_e,timeoutMessage:_e,withCredentials:_e,adapter:_e,responseType:_e,xsrfCookieName:_e,xsrfHeaderName:_e,onUploadProgress:_e,onDownloadProgress:_e,decompress:_e,maxContentLength:_e,maxBodyLength:_e,beforeRedirect:_e,transport:_e,httpAgent:_e,httpsAgent:_e,cancelToken:_e,socketPath:_e,responseEncoding:_e,validateStatus:Ce,headers:(xe,Ie)=>ue(headersToObject(xe),headersToObject(Ie),!0)};return utils$8.forEach(Object.keys(Object.assign({},$,z)),function(Ie){const ze=$e[Ie]||ue,Ue=ze($[Ie],z[Ie],Ie);utils$8.isUndefined(Ue)&&ze!==Ce||(ie[Ie]=Ue)}),ie}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach(($,z)=>{validators$1[$]=function(le){return typeof le===$||"a"+(z<1?"n ":" ")+$}});const deprecatedWarnings={};validators$1.transitional=function(z,ie,le){function ue(pe,_e){return"[Axios v"+VERSION+"] Transitional option '"+pe+"'"+_e+(le?". "+le:"")}return(pe,_e,Ce)=>{if(z===!1)throw new AxiosError(ue(_e," has been removed"+(ie?" in "+ie:"")),AxiosError.ERR_DEPRECATED);return ie&&!deprecatedWarnings[_e]&&(deprecatedWarnings[_e]=!0,console.warn(ue(_e," has been deprecated since v"+ie+" and will be removed in the near future"))),z?z(pe,_e,Ce):!0}};function assertOptions($,z,ie){if(typeof $!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const le=Object.keys($);let ue=le.length;for(;ue-- >0;){const pe=le[ue],_e=z[pe];if(_e){const Ce=$[pe],$e=Ce===void 0||_e(Ce,pe,$);if($e!==!0)throw new AxiosError("option "+pe+" must be "+$e,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(ie!==!0)throw new AxiosError("Unknown option "+pe,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,ie){typeof z=="string"?(ie=ie||{},ie.url=z):ie=z||{},ie=mergeConfig(this.defaults,ie);const{transitional:le,paramsSerializer:ue,headers:pe}=ie;le!==void 0&&validator.assertOptions(le,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ue!=null&&(utils$8.isFunction(ue)?ie.paramsSerializer={serialize:ue}:validator.assertOptions(ue,{encode:validators.function,serialize:validators.function},!0)),ie.method=(ie.method||this.defaults.method||"get").toLowerCase();let _e;_e=pe&&utils$8.merge(pe.common,pe[ie.method]),_e&&utils$8.forEach(["delete","get","head","post","put","patch","common"],Et=>{delete pe[Et]}),ie.headers=AxiosHeaders$1.concat(_e,pe);const Ce=[];let $e=!0;this.interceptors.request.forEach(function(Lt){typeof Lt.runWhen=="function"&&Lt.runWhen(ie)===!1||($e=$e&&Lt.synchronous,Ce.unshift(Lt.fulfilled,Lt.rejected))});const xe=[];this.interceptors.response.forEach(function(Lt){xe.push(Lt.fulfilled,Lt.rejected)});let Ie,ze=0,Ue;if(!$e){const Et=[dispatchRequest.bind(this),void 0];for(Et.unshift.apply(Et,Ce),Et.push.apply(Et,xe),Ue=Et.length,Ie=Promise.resolve(ie);ze<Ue;)Ie=Ie.then(Et[ze++],Et[ze++]);return Ie}Ue=Ce.length;let qe=ie;for(ze=0;ze<Ue;){const Et=Ce[ze++],Lt=Ce[ze++];try{qe=Et(qe)}catch(hn){Lt.call(this,hn);break}}try{Ie=dispatchRequest.call(this,qe)}catch(Et){return Promise.reject(Et)}for(ze=0,Ue=xe.length;ze<Ue;)Ie=Ie.then(xe[ze++],xe[ze++]);return Ie}getUri(z){z=mergeConfig(this.defaults,z);const ie=buildFullPath(z.baseURL,z.url);return buildURL(ie,z.params,z.paramsSerializer)}}utils$8.forEach(["delete","get","head","options"],function(z){Axios.prototype[z]=function(ie,le){return this.request(mergeConfig(le||{},{method:z,url:ie,data:(le||{}).data}))}});utils$8.forEach(["post","put","patch"],function(z){function ie(le){return function(pe,_e,Ce){return this.request(mergeConfig(Ce||{},{method:z,headers:le?{"Content-Type":"multipart/form-data"}:{},url:pe,data:_e}))}}Axios.prototype[z]=ie(),Axios.prototype[z+"Form"]=ie(!0)});const Axios$1=Axios;class CancelToken{constructor(z){if(typeof z!="function")throw new TypeError("executor must be a function.");let ie;this.promise=new Promise(function(pe){ie=pe});const le=this;this.promise.then(ue=>{if(!le._listeners)return;let pe=le._listeners.length;for(;pe-- >0;)le._listeners[pe](ue);le._listeners=null}),this.promise.then=ue=>{let pe;const _e=new Promise(Ce=>{le.subscribe(Ce),pe=Ce}).then(ue);return _e.cancel=function(){le.unsubscribe(pe)},_e},z(function(pe,_e,Ce){le.reason||(le.reason=new CanceledError(pe,_e,Ce),ie(le.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 ie=this._listeners.indexOf(z);ie!==-1&&this._listeners.splice(ie,1)}static source(){let z;return{token:new CancelToken(function(ue){z=ue}),cancel:z}}}const CancelToken$1=CancelToken;function spread($){return function(ie){return $.apply(null,ie)}}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($),ie=bind$4(Axios$1.prototype.request,z);return utils$8.extend(ie,Axios$1.prototype,z,{allOwnKeys:!0}),utils$8.extend(ie,z,null,{allOwnKeys:!0}),ie.create=function(ue){return createInstance(mergeConfig($,ue))},ie}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 ie=config;return z.forEach(le=>{ie&&typeof ie[le]<"u"?ie=ie[le]:ie=null}),ie}}return config},getServerConfig=async $=>($.config.globalProperties.$config=getConfig(),axios$1({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:z})=>{let ie=$.config.globalProperties.$config;return $&&ie&&typeof z=="object"&&(ie=Object.assign(ie,z),$.config.globalProperties.$config=ie,setConfig(ie)),ie}).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,ie])=>[z.match(/([A-Za-z0-9-_]+)\./i)[1],ie.default]))[$]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhLocale},en:{...siphonI18n("en"),...enLocale}};function transformI18n($=""){var ie;if(!$)return"";if(typeof $=="object"){const le=i18n.global.locale;return $[le==null?void 0:le.value]}const z=(ie=$.match(/(\S*)\./))==null?void 0:ie[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 ea;const i18n=createI18n({legacy:!1,locale:((ea=tr().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:ea.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-5529281a.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-15303a74.js"),["static/js/print-15303a74.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-6ac7d253.js","static/js/app-59bc21db.js","static/css/print-8831c8b6.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-90998e07.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-830f9d31.js"),["static/js/icon-select-830f9d31.js","static/css/icon-select-e8efdfdc.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-e8d6f764.js"),["static/js/timeline-e8d6f764.js","static/js/index-fc14d474.js","static/css/index-18417f34.css","static/js/hooks-aba0b55f.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-a329583d.js"),["static/js/menu-tree-a329583d.js","static/js/hooks-aba0b55f.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-82d20b37.js"),["static/js/line-tree-82d20b37.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-f0d731d0.js"),["static/js/debounce-f0d731d0.js","static/js/message-e7058037.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-ea76ce3b.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-d9861f77.js"),["static/js/qrcode-d9861f77.js","static/js/message-e7058037.js","static/js/index-6e426a04.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-f7f17e44.js"),["static/js/cascader-f7f17e44.js","static/css/cascader-843853c0.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-bdcf73a0.js"),["static/js/swiper-bdcf73a0.js","static/css/swiper-4182dcb7.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-bdde1346.js"),["static/js/index-bdde1346.js","static/js/vertical-ab01501e.js","static/js/vue-virtual-scroller.esm-64a4eed5.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-aa81093a.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-271849a8.js"),["static/js/pdf-271849a8.js","static/js/vue.runtime.esm-bundler-cd1dc4b3.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-9fac3487.js"),["static/js/execl-9fac3487.js","static/js/xlsx-f5126985.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-77d289ef.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-7ab02b68.js"),["static/js/index-7ab02b68.js","static/js/columns-1d400cfc.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-2becfc6d.js"),["static/js/index-2becfc6d.js","static/js/message-e7058037.js","static/js/form.vue_vue_type_script_setup_true_lang-09c1a908.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-f3f5de95.js"),["static/js/index-f3f5de95.js","static/js/message-e7058037.js","static/js/hooks-aba0b55f.js","static/js/check-3815600c.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/segmented",name:"Segmented",component:()=>__vitePreload(()=>import("./index-c4027c2d.js"),["static/js/index-c4027c2d.js","static/js/message-e7058037.js","static/js/home-filled-05cc090c.js","static/js/hooks-aba0b55f.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-88a29dad.js"),["static/js/index-88a29dad.js","static/js/back_top-42f00038.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-c4f55e18.js"),["static/js/index-c4f55e18.js","static/js/hooks-aba0b55f.js","static/css/index-12dd4e77.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"MapPage",component:()=>__vitePreload(()=>import("./index-e1b3e99c.js"),["static/js/index-e1b3e99c.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-5d9c3f8a.js"),["static/js/index-5d9c3f8a.js","static/js/sortable.esm-e674cde8.js","static/js/app-59bc21db.js","static/js/hooks-aba0b55f.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-8d237a93.js"),["static/js/index-8d237a93.js","static/css/index-e0a7f2a0.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"ButtonPage",component:()=>__vitePreload(()=>import("./index-d17ce183.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-0cf61326.js"),["static/js/index-0cf61326.js","static/css/index-fdfcfa11.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-2de6cbba.js"),["static/js/index-2de6cbba.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-edce80ce.js"),["static/js/index-edce80ce.js","static/css/index-ea4ab5c7.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-9fbe6251.js"),["static/js/index-9fbe6251.js","static/js/index-a673ae73.js","static/css/index-53a917f7.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-a03a5871.js"),["static/js/index-a03a5871.js","static/js/basic-bf78b1ac.js","static/js/index.esm-5f7e82d9.js","static/css/basic-d842f1a0.css","static/js/menuGroup-d8f55573.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-74ca40c3.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-2a5eb939.js"),["static/js/index-2a5eb939.js","static/js/index-72429d40.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-41e47172.js"),["static/js/index-41e47172.js","static/js/styles-acfc4bb0.js","static/js/vue.runtime.esm-bundler-cd1dc4b3.js","static/css/styles-670012e0.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index-6db1a671.js"),["static/js/index-6db1a671.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-91b10e66.js"),["static/js/index-91b10e66.js","static/js/base.vue_vue_type_script_setup_true_lang-782aaf52.js","static/js/index.esm-c84bd949.js","static/css/index-f38a3df6.css","static/js/multi.vue_vue_type_script_setup_true_lang-132bea65.js","static/js/index-f9da324a.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-f0cf7e5a.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-eeb076fc.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-c2220151.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-fc188382.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-0f59b6e1.js"),["static/js/index-0f59b6e1.js","static/js/hooks-aba0b55f.js","static/js/styles-acfc4bb0.js","static/js/vue.runtime.esm-bundler-cd1dc4b3.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-c2ebce59.js"),["static/js/frameView-c2ebce59.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-97309e90.js"),["static/js/index-97309e90.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-60a51931.js"),["static/js/index-60a51931.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-6a623626.js","static/js/epTheme-0ad53906.js","static/js/app-59bc21db.js","static/js/index-a673ae73.js","static/js/hooks-aba0b55f.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-42f00038.js","static/css/index-06b0d3b7.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-d1e136ae.js"),["static/js/index-d1e136ae.js","static/js/Bar.vue_vue_type_script_setup_true_lang-11253865.js","static/js/app-59bc21db.js","static/js/Pie.vue_vue_type_script_setup_true_lang-17e99927.js","static/js/Line.vue_vue_type_script_setup_true_lang-6ac7d253.js","static/js/list-ce288a5a.js","static/js/index-72429d40.js","static/js/index-a673ae73.js","static/js/Github.vue_vue_type_script_setup_true_lang-65e20b0c.js","static/js/columns-abd9d140.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-fc14d474.js","static/css/index-18417f34.css","static/css/index-dba21543.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-9a2b331d.js"),["static/js/index-9a2b331d.js","static/js/Card-71b1b1ef.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/list-ce288a5a.js","static/js/message-e7058037.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-71c976cb.js","static/js/hooks-aba0b55f.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-3d9435eb.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-3fa7f047.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-cb3494da.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-b58762c8.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-528e5c54.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-3223da36.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-c2ebce59.js"),["static/js/frameView-c2ebce59.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-c2ebce59.js"),["static/js/frameView-c2ebce59.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-c2ebce59.js"),["static/js/frameView-c2ebce59.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-8e62f1c1.js"),["static/js/success-8e62f1c1.js","static/css/success-42084dfc.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-2ce50e6f.js"),["static/js/fail-2ce50e6f.js","static/js/columns-150910e5.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-d835e6f7.js"),["static/js/index-d835e6f7.js","static/js/list-bef68747.js","static/js/base.vue_vue_type_script_setup_true_lang-56153894.js","static/js/data-ac1b689a.js","static/js/stripe.vue_vue_type_script_setup_true_lang-4c4cfe98.js","static/js/border.vue_vue_type_script_setup_true_lang-4ff0e291.js","static/js/status.vue_vue_type_style_index_0_lang-21a7995e.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c0b42908.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-58e6ed4c.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-a11ea56f.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-75edba8f.js","static/js/radio.vue_vue_type_script_setup_true_lang-cfe034ce.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-9bc3e2bc.js","static/js/sortable.vue_vue_type_script_setup_true_lang-87f3ac9f.js","static/js/filters.vue_vue_type_script_setup_true_lang-029b1d22.js","static/js/index.vue_vue_type_script_setup_true_lang-9586efcb.js","static/js/columns-0783f035.js","static/js/message-e7058037.js","static/js/index.vue_vue_type_script_setup_true_lang-926f7de3.js","static/js/columns-6124126a.js","static/js/expand.vue_vue_type_script_setup_true_lang-233fe03e.js","static/js/tree.vue_vue_type_script_setup_true_lang-3594308f.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-701c627a.js","static/js/merge.vue_vue_type_script_setup_true_lang-1738cce8.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e7ae3570.js","static/js/layout.vue_vue_type_script_setup_true_lang-05aed511.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-1753c229.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-ab742354.js","static/css/index-c6b6432d.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-3663acb2.js"),["static/js/high-3663acb2.js","static/js/list-0fe5ef18.js","static/js/index.vue_vue_type_script_setup_true_lang-caeb6083.js","static/js/columns-6f507ddb.js","static/js/data-a73659d8.js","static/js/index.vue_vue_type_script_setup_true_lang-0a161e46.js","static/js/columns-079b79dd.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-89887d61.js","static/js/columns-07d341af.js","static/js/index.vue_vue_type_script_setup_true_lang-e81f1b88.js","static/js/columns-7c3d99e7.js","static/js/message-e7058037.js","static/js/index.vue_vue_type_script_setup_true_lang-3db1ea12.js","static/js/columns-534299f5.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-17fd2412.js","static/js/columns-14ebc97b.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-730b6882.js","static/js/columns-66b9d12a.js","static/js/index.vue_vue_type_script_setup_true_lang-3968bff6.js","static/js/columns-479202be.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-a22d6ed4.js","static/js/columns-5fb3cfd4.js","static/js/index-a673ae73.js","static/js/index.vue_vue_type_script_setup_true_lang-ab5f51ef.js","static/js/index.vue_vue_type_script_setup_true_lang-099b02b1.js","static/js/columns-0f4e8632.js","static/js/index.vue_vue_type_script_setup_true_lang-5f187337.js","static/js/columns-60da8c7b.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 ie=arguments[z];for(var le in ie)$[le]=ie[le]}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 ie(ue,pe,_e){if(!(typeof document>"u")){_e=assign$3({},z,_e),typeof _e.expires=="number"&&(_e.expires=new Date(Date.now()+_e.expires*864e5)),_e.expires&&(_e.expires=_e.expires.toUTCString()),ue=encodeURIComponent(ue).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var Ce="";for(var $e in _e)_e[$e]&&(Ce+="; "+$e,_e[$e]!==!0&&(Ce+="="+_e[$e].split(";")[0]));return document.cookie=ue+"="+$.write(pe,ue)+Ce}}function le(ue){if(!(typeof document>"u"||arguments.length&&!ue)){for(var pe=document.cookie?document.cookie.split("; "):[],_e={},Ce=0;Ce<pe.length;Ce++){var $e=pe[Ce].split("="),xe=$e.slice(1).join("=");try{var Ie=decodeURIComponent($e[0]);if(_e[Ie]=$.read(xe,Ie),ue===Ie)break}catch{}}return ue?_e[ue]:_e}}return Object.create({set:ie,get:le,remove:function(ue,pe){ie(ue,"",assign$3({},pe,{expires:-1}))},withAttributes:function(ue){return init$2(this.converter,assign$3({},this.attributes,ue))},withConverter:function(ue){return init$2(assign$3({},this.converter,ue),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 ie=[],le=[];const ue=markRaw({install(pe){setActivePinia(ue),ue._a=pe,pe.provide(piniaSymbol,ue),pe.config.globalProperties.$pinia=ue,le.forEach(_e=>ie.push(_e)),le=[]},use(pe){return!this._a&&!isVue2?le.push(pe):ie.push(pe),this},_p:ie,_a:null,_e:$,_s:new Map,state:z});return ue}const noop$3=()=>{};function addSubscription($,z,ie,le=noop$3){$.push(z);const ue=()=>{const pe=$.indexOf(z);pe>-1&&($.splice(pe,1),le())};return!ie&&getCurrentScope()&&onScopeDispose(ue),ue}function triggerSubscriptions($,...z){$.slice().forEach(ie=>{ie(...z)})}const fallbackRunWithContext=$=>$();function mergeReactiveObjects($,z){$ instanceof Map&&z instanceof Map&&z.forEach((ie,le)=>$.set(le,ie)),$ instanceof Set&&z instanceof Set&&z.forEach($.add,$);for(const ie in z){if(!z.hasOwnProperty(ie))continue;const le=z[ie],ue=$[ie];isPlainObject(ue)&&isPlainObject(le)&&$.hasOwnProperty(ie)&&!isRef(le)&&!isReactive(le)?$[ie]=mergeReactiveObjects(ue,le):$[ie]=le}return $}const skipHydrateSymbol=Symbol();function shouldHydrate($){return!isPlainObject($)||!$.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed($){return!!(isRef($)&&$.effect)}function createOptionsStore($,z,ie,le){const{state:ue,actions:pe,getters:_e}=z,Ce=ie.state.value[$];let $e;function xe(){Ce||(ie.state.value[$]=ue?ue():{});const Ie=toRefs(ie.state.value[$]);return assign$2(Ie,pe,Object.keys(_e||{}).reduce((ze,Ue)=>(ze[Ue]=markRaw(computed(()=>{setActivePinia(ie);const qe=ie._s.get($);return _e[Ue].call(qe,qe)})),ze),{}))}return $e=createSetupStore($,xe,z,ie,le,!0),$e}function createSetupStore($,z,ie={},le,ue,pe){let _e;const Ce=assign$2({actions:{}},ie),$e={deep:!0};let xe,Ie,ze=[],Ue=[],qe;const Et=le.state.value[$];!pe&&!Et&&(le.state.value[$]={}),ref({});let Lt;function hn(wn){let Tn;xe=Ie=!1,typeof wn=="function"?(wn(le.state.value[$]),Tn={type:MutationType.patchFunction,storeId:$,events:qe}):(mergeReactiveObjects(le.state.value[$],wn),Tn={type:MutationType.patchObject,payload:wn,storeId:$,events:qe});const xn=Lt=Symbol();nextTick().then(()=>{Lt===xn&&(xe=!0)}),Ie=!0,triggerSubscriptions(ze,Tn,le.state.value[$])}const vn=pe?function(){const{state:Tn}=ie,xn=Tn?Tn():{};this.$patch(Pn=>{assign$2(Pn,xn)})}:noop$3;function _n(){_e.stop(),ze=[],Ue=[],le._s.delete($)}function bn(wn,Tn){return function(){setActivePinia(le);const xn=Array.from(arguments),Pn=[],kn=[];function An(Ln){Pn.push(Ln)}function Nn(Ln){kn.push(Ln)}triggerSubscriptions(Ue,{args:xn,name:wn,store:Cn,after:An,onError:Nn});let Fn;try{Fn=Tn.apply(this&&this.$id===$?this:Cn,xn)}catch(Ln){throw triggerSubscriptions(kn,Ln),Ln}return Fn instanceof Promise?Fn.then(Ln=>(triggerSubscriptions(Pn,Ln),Ln)).catch(Ln=>(triggerSubscriptions(kn,Ln),Promise.reject(Ln))):(triggerSubscriptions(Pn,Fn),Fn)}}const Sn={_p:le,$id:$,$onAction:addSubscription.bind(null,Ue),$patch:hn,$reset:vn,$subscribe(wn,Tn={}){const xn=addSubscription(ze,wn,Tn.detached,()=>Pn()),Pn=_e.run(()=>watch(()=>le.state.value[$],kn=>{(Tn.flush==="sync"?Ie:xe)&&wn({storeId:$,type:MutationType.direct,events:qe},kn)},assign$2({},$e,Tn)));return xn},$dispose:_n},Cn=reactive(Sn);le._s.set($,Cn);const En=le._a&&le._a.runWithContext||fallbackRunWithContext,$n=le._e.run(()=>(_e=effectScope(),En(()=>_e.run(z))));for(const wn in $n){const Tn=$n[wn];if(isRef(Tn)&&!isComputed(Tn)||isReactive(Tn))pe||(Et&&shouldHydrate(Tn)&&(isRef(Tn)?Tn.value=Et[wn]:mergeReactiveObjects(Tn,Et[wn])),le.state.value[$][wn]=Tn);else if(typeof Tn=="function"){const xn=bn(wn,Tn);$n[wn]=xn,Ce.actions[wn]=Tn}}return assign$2(Cn,$n),assign$2(toRaw(Cn),$n),Object.defineProperty(Cn,"$state",{get:()=>le.state.value[$],set:wn=>{hn(Tn=>{assign$2(Tn,wn)})}}),le._p.forEach(wn=>{assign$2(Cn,_e.run(()=>wn({store:Cn,app:le._a,pinia:le,options:Ce})))}),Et&&pe&&ie.hydrate&&ie.hydrate(Cn.$state,Et),xe=!0,Ie=!0,Cn}function defineStore($,z,ie){let le,ue;const pe=typeof z=="function";typeof $=="string"?(le=$,ue=pe?ie:z):(ue=$,le=$.id);function _e(Ce,$e){const xe=hasInjectionContext();return Ce=Ce||(xe?inject(piniaSymbol,null):null),Ce&&setActivePinia(Ce),Ce=activePinia,Ce._s.has(le)||(pe?createSetupStore(le,z,ue,Ce):createOptionsStore(le,ue,Ce)),Ce._s.get(le)}return _e.$id=le,_e}function storeToRefs($){{$=toRaw($);const z={};for(const ie in $){const le=$[ie];(isRef(le)||isReactive(le))&&(z[ie]=toRef$1($,ie))}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={},ie=Symbol("test"),le=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(le)!=="[object Symbol]")return!1;var ue=42;z[ie]=ue;for(ie 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 pe=Object.getOwnPropertySymbols(z);if(pe.length!==1||pe[0]!==ie||!Object.prototype.propertyIsEnumerable.call(z,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var _e=Object.getOwnPropertyDescriptor(z,ie);if(_e.value!==ue||_e.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 ie=this;if(typeof ie!="function"||toStr$1.call(ie)!==funcType)throw new TypeError(ERROR_MESSAGE+ie);for(var le=slice$1.call(arguments,1),ue,pe=function(){if(this instanceof ue){var Ie=ie.apply(this,le.concat(slice$1.call(arguments)));return Object(Ie)===Ie?Ie:this}else return ie.apply(z,le.concat(slice$1.call(arguments)))},_e=Math.max(0,ie.length-le.length),Ce=[],$e=0;$e<_e;$e++)Ce.push("$"+$e);if(ue=Function("binder","return function ("+Ce.join(",")+"){ return binder.apply(this,arguments); }")(pe),ie.prototype){var xe=function(){};xe.prototype=ie.prototype,ue.prototype=new xe,xe.prototype=null}return ue},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 ie;if(z==="%AsyncFunction%")ie=getEvalledConstructor("async function () {}");else if(z==="%GeneratorFunction%")ie=getEvalledConstructor("function* () {}");else if(z==="%AsyncGeneratorFunction%")ie=getEvalledConstructor("async function* () {}");else if(z==="%AsyncGenerator%"){var le=$("%AsyncGeneratorFunction%");le&&(ie=le.prototype)}else if(z==="%AsyncIteratorPrototype%"){var ue=$("%AsyncGenerator%");ue&&(ie=getProto(ue.prototype))}return INTRINSICS[z]=ie,ie},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 ie=$strSlice(z,0,1),le=$strSlice(z,-1);if(ie==="%"&&le!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(le==="%"&&ie!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var ue=[];return $replace$1(z,rePropName,function(pe,_e,Ce,$e){ue[ue.length]=Ce?$replace$1($e,reEscapeChar,"$1"):_e||pe}),ue},getBaseIntrinsic=function(z,ie){var le=z,ue;if(hasOwn$2(LEGACY_ALIASES,le)&&(ue=LEGACY_ALIASES[le],le="%"+ue[0]+"%"),hasOwn$2(INTRINSICS,le)){var pe=INTRINSICS[le];if(pe===needsEval&&(pe=doEval(le)),typeof pe>"u"&&!ie)throw new $TypeError$1("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:ue,name:le,value:pe}}throw new $SyntaxError("intrinsic "+z+" does not exist!")},getIntrinsic=function(z,ie){if(typeof z!="string"||z.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ie!="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 le=stringToPath(z),ue=le.length>0?le[0]:"",pe=getBaseIntrinsic("%"+ue+"%",ie),_e=pe.name,Ce=pe.value,$e=!1,xe=pe.alias;xe&&(ue=xe[0],$spliceApply(le,$concat$1([0,1],xe)));for(var Ie=1,ze=!0;Ie<le.length;Ie+=1){var Ue=le[Ie],qe=$strSlice(Ue,0,1),Et=$strSlice(Ue,-1);if((qe==='"'||qe==="'"||qe==="`"||Et==='"'||Et==="'"||Et==="`")&&qe!==Et)throw new $SyntaxError("property names with quotes must have matching quotes");if((Ue==="constructor"||!ze)&&($e=!0),ue+="."+Ue,_e="%"+ue+"%",hasOwn$2(INTRINSICS,_e))Ce=INTRINSICS[_e];else if(Ce!=null){if(!(Ue in Ce)){if(!ie)throw new $TypeError$1("base intrinsic for "+z+" exists, but the property is not available.");return}if($gOPD&&Ie+1>=le.length){var Lt=$gOPD(Ce,Ue);ze=!!Lt,ze&&"get"in Lt&&!("originalValue"in Lt.get)?Ce=Lt.get:Ce=Ce[Ue]}else ze=hasOwn$2(Ce,Ue),Ce=Ce[Ue];ze&&!$e&&(INTRINSICS[_e]=Ce)}}return Ce},callBind$1={exports:{}};(function($){var z=functionBind,ie=getIntrinsic,le=ie("%Function.prototype.apply%"),ue=ie("%Function.prototype.call%"),pe=ie("%Reflect.apply%",!0)||z.call(ue,le),_e=ie("%Object.getOwnPropertyDescriptor%",!0),Ce=ie("%Object.defineProperty%",!0),$e=ie("%Math.max%");if(Ce)try{Ce({},"a",{value:1})}catch{Ce=null}$.exports=function(ze){var Ue=pe(z,ue,arguments);if(_e&&Ce){var qe=_e(Ue,"length");qe.configurable&&Ce(Ue,"length",{value:1+$e(0,ze.length-(arguments.length-1))})}return Ue};var xe=function(){return pe(z,le,arguments)};Ce?Ce($.exports,"apply",{value:xe}):$.exports.apply=xe})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(z,ie){var le=GetIntrinsic$1(z,!!ie);return typeof le=="function"&&$indexOf(z,".prototype.")>-1?callBind(le):le};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 ie=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var le=$<0?-$floor(-$):$floor($);if(le!==$){var ue=String(le),pe=$slice.call(z,ue.length+1);return $replace.call(ue,ie,"$&_")+"."+$replace.call($replace.call(pe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(z,ie,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function $(z,ie,le,ue){var pe=ie||{};if(has$4(pe,"quoteStyle")&&pe.quoteStyle!=="single"&&pe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(pe,"maxStringLength")&&(typeof pe.maxStringLength=="number"?pe.maxStringLength<0&&pe.maxStringLength!==1/0:pe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _e=has$4(pe,"customInspect")?pe.customInspect:!0;if(typeof _e!="boolean"&&_e!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(pe,"indent")&&pe.indent!==null&&pe.indent!==" "&&!(parseInt(pe.indent,10)===pe.indent&&pe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(pe,"numericSeparator")&&typeof pe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ce=pe.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,pe);if(typeof z=="number"){if(z===0)return 1/0/z>0?"0":"-0";var $e=String(z);return Ce?addNumericSeparator(z,$e):$e}if(typeof z=="bigint"){var xe=String(z)+"n";return Ce?addNumericSeparator(z,xe):xe}var Ie=typeof pe.depth>"u"?5:pe.depth;if(typeof le>"u"&&(le=0),le>=Ie&&Ie>0&&typeof z=="object")return isArray$7(z)?"[Array]":"[Object]";var ze=getIndent(pe,le);if(typeof ue>"u")ue=[];else if(indexOf$1(ue,z)>=0)return"[Circular]";function Ue(An,Nn,Fn){if(Nn&&(ue=$arrSlice.call(ue),ue.push(Nn)),Fn){var Ln={depth:pe.depth};return has$4(pe,"quoteStyle")&&(Ln.quoteStyle=pe.quoteStyle),$(An,Ln,le+1,ue)}return $(An,pe,le+1,ue)}if(typeof z=="function"&&!isRegExp$2(z)){var qe=nameOf(z),Et=arrObjKeys(z,Ue);return"[Function"+(qe?": "+qe:" (anonymous)")+"]"+(Et.length>0?" { "+$join.call(Et,", ")+" }":"")}if(isSymbol(z)){var Lt=hasShammedSymbols?$replace.call(String(z),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(z);return typeof z=="object"&&!hasShammedSymbols?markBoxed(Lt):Lt}if(isElement$1(z)){for(var hn="<"+$toLowerCase.call(String(z.nodeName)),vn=z.attributes||[],_n=0;_n<vn.length;_n++)hn+=" "+vn[_n].name+"="+wrapQuotes(quote(vn[_n].value),"double",pe);return hn+=">",z.childNodes&&z.childNodes.length&&(hn+="..."),hn+="</"+$toLowerCase.call(String(z.nodeName))+">",hn}if(isArray$7(z)){if(z.length===0)return"[]";var bn=arrObjKeys(z,Ue);return ze&&!singleLineValues(bn)?"["+indentedJoin(bn,ze)+"]":"[ "+$join.call(bn,", ")+" ]"}if(isError(z)){var Sn=arrObjKeys(z,Ue);return!("cause"in Error.prototype)&&"cause"in z&&!isEnumerable.call(z,"cause")?"{ ["+String(z)+"] "+$join.call($concat.call("[cause]: "+Ue(z.cause),Sn),", ")+" }":Sn.length===0?"["+String(z)+"]":"{ ["+String(z)+"] "+$join.call(Sn,", ")+" }"}if(typeof z=="object"&&_e){if(inspectSymbol&&typeof z[inspectSymbol]=="function"&&utilInspect)return utilInspect(z,{depth:Ie-le});if(_e!=="symbol"&&typeof z.inspect=="function")return z.inspect()}if(isMap(z)){var Cn=[];return mapForEach&&mapForEach.call(z,function(An,Nn){Cn.push(Ue(Nn,z,!0)+" => "+Ue(An,z))}),collectionOf("Map",mapSize.call(z),Cn,ze)}if(isSet(z)){var En=[];return setForEach&&setForEach.call(z,function(An){En.push(Ue(An,z))}),collectionOf("Set",setSize.call(z),En,ze)}if(isWeakMap(z))return weakCollectionOf("WeakMap");if(isWeakSet(z))return weakCollectionOf("WeakSet");if(isWeakRef(z))return weakCollectionOf("WeakRef");if(isNumber$2(z))return markBoxed(Ue(Number(z)));if(isBigInt(z))return markBoxed(Ue(bigIntValueOf.call(z)));if(isBoolean(z))return markBoxed(booleanValueOf.call(z));if(isString$3(z))return markBoxed(Ue(String(z)));if(!isDate(z)&&!isRegExp$2(z)){var $n=arrObjKeys(z,Ue),wn=gPO?gPO(z)===Object.prototype:z instanceof Object||z.constructor===Object,Tn=z instanceof Object?"":"null prototype",xn=!wn&&toStringTag&&Object(z)===z&&toStringTag in z?$slice.call(toStr(z),8,-1):Tn?"Object":"",Pn=wn||typeof z.constructor!="function"?"":z.constructor.name?z.constructor.name+" ":"",kn=Pn+(xn||Tn?"["+$join.call($concat.call([],xn||[],Tn||[]),": ")+"] ":"");return $n.length===0?kn+"{}":ze?kn+"{"+indentedJoin($n,ze)+"}":kn+"{ "+$join.call($n,", ")+" }"}return String(z)};function wrapQuotes($,z,ie){var le=(ie.quoteStyle||z)==="double"?'"':"'";return le+$+le}function quote($){return $replace.call(String($),/"/g,"&quot;")}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 ie=0,le=$.length;ie<le;ie++)if($[ie]===z)return ie;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 ie=$.length-z.maxStringLength,le="... "+ie+" more character"+(ie>1?"s":"");return inspectString($slice.call($,0,z.maxStringLength),z)+le}var ue=$replace.call($replace.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(ue,"single",z)}function lowbyte($){var z=$.charCodeAt(0),ie={8:"b",9:"t",10:"n",12:"f",13:"r"}[z];return ie?"\\"+ie:"\\x"+(z<16?"0":"")+$toUpperCase.call(z.toString(16))}function markBoxed($){return"Object("+$+")"}function weakCollectionOf($){return $+" { ? }"}function collectionOf($,z,ie,le){var ue=le?indentedJoin(ie,le):$join.call(ie,", ");return $+" ("+z+") {"+ue+"}"}function singleLineValues($){for(var z=0;z<$.length;z++)if(indexOf$1($[z],`
`)>=0)return!1;return!0}function getIndent($,z){var ie;if($.indent===" ")ie=" ";else if(typeof $.indent=="number"&&$.indent>0)ie=$join.call(Array($.indent+1)," ");else return null;return{base:ie,prev:$join.call(Array(z+1),ie)}}function indentedJoin($,z){if($.length===0)return"";var ie=`
`+z.prev+z.base;return ie+$join.call($,","+ie)+`
`+z.prev}function arrObjKeys($,z){var ie=isArray$7($),le=[];if(ie){le.length=$.length;for(var ue=0;ue<$.length;ue++)le[ue]=has$4($,ue)?z($[ue],$):""}var pe=typeof gOPS=="function"?gOPS($):[],_e;if(hasShammedSymbols){_e={};for(var Ce=0;Ce<pe.length;Ce++)_e["$"+pe[Ce]]=pe[Ce]}for(var $e in $)has$4($,$e)&&(ie&&String(Number($e))===$e&&$e<$.length||hasShammedSymbols&&_e["$"+$e]instanceof Symbol||($test.call(/[^\w$]/,$e)?le.push(z($e,$)+": "+z($[$e],$)):le.push($e+": "+z($[$e],$))));if(typeof gOPS=="function")for(var xe=0;xe<pe.length;xe++)isEnumerable.call($,pe[xe])&&le.push("["+z(pe[xe])+"]: "+z($[pe[xe]],$));return le}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 ie=$,le;(le=ie.next)!==null;ie=le)if(le.key===z)return ie.next=le.next,le.next=$.next,$.next=le,le},listGet=function($,z){var ie=listGetNode($,z);return ie&&ie.value},listSet=function($,z,ie){var le=listGetNode($,z);le?le.value=ie:$.next={key:z,next:$.next,value:ie}},listHas=function($,z){return!!listGetNode($,z)},sideChannel=function(){var z,ie,le,ue={assert:function(pe){if(!ue.has(pe))throw new $TypeError("Side channel does not contain "+inspect(pe))},get:function(pe){if($WeakMap&&pe&&(typeof pe=="object"||typeof pe=="function")){if(z)return $weakMapGet(z,pe)}else if($Map){if(ie)return $mapGet(ie,pe)}else if(le)return listGet(le,pe)},has:function(pe){if($WeakMap&&pe&&(typeof pe=="object"||typeof pe=="function")){if(z)return $weakMapHas(z,pe)}else if($Map){if(ie)return $mapHas(ie,pe)}else if(le)return listHas(le,pe);return!1},set:function(pe,_e){$WeakMap&&pe&&(typeof pe=="object"||typeof pe=="function")?(z||(z=new $WeakMap),$weakMapSet(z,pe,_e)):$Map?(ie||(ie=new $Map),$mapSet(ie,pe,_e)):(le||(le={key:{},next:null}),listSet(le,pe,_e))}};return ue},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 ie=z.pop(),le=ie.obj[ie.prop];if(isArray$6(le)){for(var ue=[],pe=0;pe<le.length;++pe)typeof le[pe]<"u"&&ue.push(le[pe]);ie.obj[ie.prop]=ue}}},arrayToObject=function(z,ie){for(var le=ie&&ie.plainObjects?Object.create(null):{},ue=0;ue<z.length;++ue)typeof z[ue]<"u"&&(le[ue]=z[ue]);return le},merge$1=function $(z,ie,le){if(!ie)return z;if(typeof ie!="object"){if(isArray$6(z))z.push(ie);else if(z&&typeof z=="object")(le&&(le.plainObjects||le.allowPrototypes)||!has$3.call(Object.prototype,ie))&&(z[ie]=!0);else return[z,ie];return z}if(!z||typeof z!="object")return[z].concat(ie);var ue=z;return isArray$6(z)&&!isArray$6(ie)&&(ue=arrayToObject(z,le)),isArray$6(z)&&isArray$6(ie)?(ie.forEach(function(pe,_e){if(has$3.call(z,_e)){var Ce=z[_e];Ce&&typeof Ce=="object"&&pe&&typeof pe=="object"?z[_e]=$(Ce,pe,le):z.push(pe)}else z[_e]=pe}),z):Object.keys(ie).reduce(function(pe,_e){var Ce=ie[_e];return has$3.call(pe,_e)?pe[_e]=$(pe[_e],Ce,le):pe[_e]=Ce,pe},ue)},assign$1=function(z,ie){return Object.keys(ie).reduce(function(le,ue){return le[ue]=ie[ue],le},z)},decode$2=function($,z,ie){var le=$.replace(/\+/g," ");if(ie==="iso-8859-1")return le.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(le)}catch{return le}},encode=function(z,ie,le,ue,pe){if(z.length===0)return z;var _e=z;if(typeof z=="symbol"?_e=Symbol.prototype.toString.call(z):typeof z!="string"&&(_e=String(z)),le==="iso-8859-1")return escape(_e).replace(/%u[0-9a-f]{4}/gi,function(Ie){return"%26%23"+parseInt(Ie.slice(2),16)+"%3B"});for(var Ce="",$e=0;$e<_e.length;++$e){var xe=_e.charCodeAt($e);if(xe===45||xe===46||xe===95||xe===126||xe>=48&&xe<=57||xe>=65&&xe<=90||xe>=97&&xe<=122||pe===formats$2.RFC1738&&(xe===40||xe===41)){Ce+=_e.charAt($e);continue}if(xe<128){Ce=Ce+hexTable[xe];continue}if(xe<2048){Ce=Ce+(hexTable[192|xe>>6]+hexTable[128|xe&63]);continue}if(xe<55296||xe>=57344){Ce=Ce+(hexTable[224|xe>>12]+hexTable[128|xe>>6&63]+hexTable[128|xe&63]);continue}$e+=1,xe=65536+((xe&1023)<<10|_e.charCodeAt($e)&1023),Ce+=hexTable[240|xe>>18]+hexTable[128|xe>>12&63]+hexTable[128|xe>>6&63]+hexTable[128|xe&63]}return Ce},compact=function(z){for(var ie=[{obj:{o:z},prop:"o"}],le=[],ue=0;ue<ie.length;++ue)for(var pe=ie[ue],_e=pe.obj[pe.prop],Ce=Object.keys(_e),$e=0;$e<Ce.length;++$e){var xe=Ce[$e],Ie=_e[xe];typeof Ie=="object"&&Ie!==null&&le.indexOf(Ie)===-1&&(ie.push({obj:_e,prop:xe}),le.push(Ie))}return compactQueue(ie),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,ie){return[].concat(z,ie)},maybeMap=function(z,ie){if(isArray$6(z)){for(var le=[],ue=0;ue<z.length;ue+=1)le.push(ie(z[ue]));return le}return ie(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,ie){return z+"["+ie+"]"},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,ie,le,ue,pe,_e,Ce,$e,xe,Ie,ze,Ue,qe,Et,Lt,hn){for(var vn=z,_n=hn,bn=0,Sn=!1;(_n=_n.get(sentinel))!==void 0&&!Sn;){var Cn=_n.get(z);if(bn+=1,typeof Cn<"u"){if(Cn===bn)throw new RangeError("Cyclic object value");Sn=!0}typeof _n.get(sentinel)>"u"&&(bn=0)}if(typeof $e=="function"?vn=$e(ie,vn):vn instanceof Date?vn=ze(vn):le==="comma"&&isArray$5(vn)&&(vn=utils$5.maybeMap(vn,function(Ln){return Ln instanceof Date?ze(Ln):Ln})),vn===null){if(pe)return Ce&&!Et?Ce(ie,defaults$2.encoder,Lt,"key",Ue):ie;vn=""}if(isNonNullishPrimitive(vn)||utils$5.isBuffer(vn)){if(Ce){var En=Et?ie:Ce(ie,defaults$2.encoder,Lt,"key",Ue);return[qe(En)+"="+qe(Ce(vn,defaults$2.encoder,Lt,"value",Ue))]}return[qe(ie)+"="+qe(String(vn))]}var $n=[];if(typeof vn>"u")return $n;var wn;if(le==="comma"&&isArray$5(vn))Et&&Ce&&(vn=utils$5.maybeMap(vn,Ce)),wn=[{value:vn.length>0?vn.join(",")||null:void 0}];else if(isArray$5($e))wn=$e;else{var Tn=Object.keys(vn);wn=xe?Tn.sort(xe):Tn}for(var xn=ue&&isArray$5(vn)&&vn.length===1?ie+"[]":ie,Pn=0;Pn<wn.length;++Pn){var kn=wn[Pn],An=typeof kn=="object"&&typeof kn.value<"u"?kn.value:vn[kn];if(!(_e&&An===null)){var Nn=isArray$5(vn)?typeof le=="function"?le(xn,kn):xn:xn+(Ie?"."+kn:"["+kn+"]");hn.set(z,bn);var Fn=getSideChannel();Fn.set(sentinel,hn),pushToArray($n,$(An,Nn,le,ue,pe,_e,le==="comma"&&Et&&isArray$5(vn)?null:Ce,$e,xe,Ie,ze,Ue,qe,Et,Lt,Fn))}}return $n},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 ie=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 le=formats$1.default;if(typeof z.format<"u"){if(!has$2.call(formats$1.formatters,z.format))throw new TypeError("Unknown format option provided.");le=z.format}var ue=formats$1.formatters[le],pe=defaults$2.filter;return(typeof z.filter=="function"||isArray$5(z.filter))&&(pe=z.filter),{addQueryPrefix:typeof z.addQueryPrefix=="boolean"?z.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof z.allowDots>"u"?defaults$2.allowDots:!!z.allowDots,charset:ie,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:pe,format:le,formatter:ue,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 ie=$,le=normalizeStringifyOptions(z),ue,pe;typeof le.filter=="function"?(pe=le.filter,ie=pe("",ie)):isArray$5(le.filter)&&(pe=le.filter,ue=pe);var _e=[];if(typeof ie!="object"||ie===null)return"";var Ce;z&&z.arrayFormat in arrayPrefixGenerators?Ce=z.arrayFormat:z&&"indices"in z?Ce=z.indices?"indices":"repeat":Ce="indices";var $e=arrayPrefixGenerators[Ce];if(z&&"commaRoundTrip"in z&&typeof z.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var xe=$e==="comma"&&z&&z.commaRoundTrip;ue||(ue=Object.keys(ie)),le.sort&&ue.sort(le.sort);for(var Ie=getSideChannel(),ze=0;ze<ue.length;++ze){var Ue=ue[ze];le.skipNulls&&ie[Ue]===null||pushToArray(_e,stringify$2(ie[Ue],Ue,$e,xe,le.strictNullHandling,le.skipNulls,le.encode?le.encoder:null,le.filter,le.sort,le.allowDots,le.serializeDate,le.format,le.formatter,le.encodeValuesOnly,le.charset,Ie))}var qe=_e.join(le.delimiter),Et=le.addQueryPrefix===!0?"?":"";return le.charsetSentinel&&(le.charset==="iso-8859-1"?Et+="utf8=%26%2310003%3B&":Et+="utf8=%E2%9C%93&"),qe.length>0?Et+qe:""},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,ie){return String.fromCharCode(parseInt(ie,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,ie){var le={},ue=ie.ignoreQueryPrefix?z.replace(/^\?/,""):z,pe=ie.parameterLimit===1/0?void 0:ie.parameterLimit,_e=ue.split(ie.delimiter,pe),Ce=-1,$e,xe=ie.charset;if(ie.charsetSentinel)for($e=0;$e<_e.length;++$e)_e[$e].indexOf("utf8=")===0&&(_e[$e]===charsetSentinel?xe="utf-8":_e[$e]===isoSentinel&&(xe="iso-8859-1"),Ce=$e,$e=_e.length);for($e=0;$e<_e.length;++$e)if($e!==Ce){var Ie=_e[$e],ze=Ie.indexOf("]="),Ue=ze===-1?Ie.indexOf("="):ze+1,qe,Et;Ue===-1?(qe=ie.decoder(Ie,defaults$1.decoder,xe,"key"),Et=ie.strictNullHandling?null:""):(qe=ie.decoder(Ie.slice(0,Ue),defaults$1.decoder,xe,"key"),Et=utils$4.maybeMap(parseArrayValue(Ie.slice(Ue+1),ie),function(Lt){return ie.decoder(Lt,defaults$1.decoder,xe,"value")})),Et&&ie.interpretNumericEntities&&xe==="iso-8859-1"&&(Et=interpretNumericEntities(Et)),Ie.indexOf("[]=")>-1&&(Et=isArray$4(Et)?[Et]:Et),has$1.call(le,qe)?le[qe]=utils$4.combine(le[qe],Et):le[qe]=Et}return le},parseObject=function($,z,ie,le){for(var ue=le?z:parseArrayValue(z,ie),pe=$.length-1;pe>=0;--pe){var _e,Ce=$[pe];if(Ce==="[]"&&ie.parseArrays)_e=[].concat(ue);else{_e=ie.plainObjects?Object.create(null):{};var $e=Ce.charAt(0)==="["&&Ce.charAt(Ce.length-1)==="]"?Ce.slice(1,-1):Ce,xe=parseInt($e,10);!ie.parseArrays&&$e===""?_e={0:ue}:!isNaN(xe)&&Ce!==$e&&String(xe)===$e&&xe>=0&&ie.parseArrays&&xe<=ie.arrayLimit?(_e=[],_e[xe]=ue):$e!=="__proto__"&&(_e[$e]=ue)}ue=_e}return ue},parseKeys=function(z,ie,le,ue){if(z){var pe=le.allowDots?z.replace(/\.([^.[]+)/g,"[$1]"):z,_e=/(\[[^[\]]*])/,Ce=/(\[[^[\]]*])/g,$e=le.depth>0&&_e.exec(pe),xe=$e?pe.slice(0,$e.index):pe,Ie=[];if(xe){if(!le.plainObjects&&has$1.call(Object.prototype,xe)&&!le.allowPrototypes)return;Ie.push(xe)}for(var ze=0;le.depth>0&&($e=Ce.exec(pe))!==null&&ze<le.depth;){if(ze+=1,!le.plainObjects&&has$1.call(Object.prototype,$e[1].slice(1,-1))&&!le.allowPrototypes)return;Ie.push($e[1])}return $e&&Ie.push("["+pe.slice($e.index)+"]"),parseObject(Ie,ie,le,ue)}},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 ie=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:ie,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 ie=normalizeParseOptions(z);if($===""||$===null||typeof $>"u")return ie.plainObjects?Object.create(null):{};for(var le=typeof $=="string"?parseValues($,ie):$,ue=ie.plainObjects?Object.create(null):{},pe=Object.keys(le),_e=0;_e<pe.length;++_e){var Ce=pe[_e],$e=parseKeys(Ce,le[Ce],ie,typeof $=="string");ue=utils$4.merge(ue,$e,ie)}return ie.allowSparse===!0?ue:utils$4.compact(ue)},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(ie,le){$.exports=le()})(commonjsGlobal,function(){var ie={};ie.version="0.2.0";var le=ie.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>'};ie.configure=function(Et){var Lt,hn;for(Lt in Et)hn=Et[Lt],hn!==void 0&&Et.hasOwnProperty(Lt)&&(le[Lt]=hn);return this},ie.status=null,ie.set=function(Et){var Lt=ie.isStarted();Et=ue(Et,le.minimum,1),ie.status=Et===1?null:Et;var hn=ie.render(!Lt),vn=hn.querySelector(le.barSelector),_n=le.speed,bn=le.easing;return hn.offsetWidth,Ce(function(Sn){le.positionUsing===""&&(le.positionUsing=ie.getPositioningCSS()),$e(vn,_e(Et,_n,bn)),Et===1?($e(hn,{transition:"none",opacity:1}),hn.offsetWidth,setTimeout(function(){$e(hn,{transition:"all "+_n+"ms linear",opacity:0}),setTimeout(function(){ie.remove(),Sn()},_n)},_n)):setTimeout(Sn,_n)}),this},ie.isStarted=function(){return typeof ie.status=="number"},ie.start=function(){ie.status||ie.set(0);var Et=function(){setTimeout(function(){ie.status&&(ie.trickle(),Et())},le.trickleSpeed)};return le.trickle&&Et(),this},ie.done=function(Et){return!Et&&!ie.status?this:ie.inc(.3+.5*Math.random()).set(1)},ie.inc=function(Et){var Lt=ie.status;return Lt?(typeof Et!="number"&&(Et=(1-Lt)*ue(Math.random()*Lt,.1,.95)),Lt=ue(Lt+Et,0,.994),ie.set(Lt)):ie.start()},ie.trickle=function(){return ie.inc(Math.random()*le.trickleRate)},function(){var Et=0,Lt=0;ie.promise=function(hn){return!hn||hn.state()==="resolved"?this:(Lt===0&&ie.start(),Et++,Lt++,hn.always(function(){Lt--,Lt===0?(Et=0,ie.done()):ie.set((Et-Lt)/Et)}),this)}}(),ie.render=function(Et){if(ie.isRendered())return document.getElementById("nprogress");Ie(document.documentElement,"nprogress-busy");var Lt=document.createElement("div");Lt.id="nprogress",Lt.innerHTML=le.template;var hn=Lt.querySelector(le.barSelector),vn=Et?"-100":pe(ie.status||0),_n=document.querySelector(le.parent),bn;return $e(hn,{transition:"all 0 linear",transform:"translate3d("+vn+"%,0,0)"}),le.showSpinner||(bn=Lt.querySelector(le.spinnerSelector),bn&&qe(bn)),_n!=document.body&&Ie(_n,"nprogress-custom-parent"),_n.appendChild(Lt),Lt},ie.remove=function(){ze(document.documentElement,"nprogress-busy"),ze(document.querySelector(le.parent),"nprogress-custom-parent");var Et=document.getElementById("nprogress");Et&&qe(Et)},ie.isRendered=function(){return!!document.getElementById("nprogress")},ie.getPositioningCSS=function(){var Et=document.body.style,Lt="WebkitTransform"in Et?"Webkit":"MozTransform"in Et?"Moz":"msTransform"in Et?"ms":"OTransform"in Et?"O":"";return Lt+"Perspective"in Et?"translate3d":Lt+"Transform"in Et?"translate":"margin"};function ue(Et,Lt,hn){return Et<Lt?Lt:Et>hn?hn:Et}function pe(Et){return(-1+Et)*100}function _e(Et,Lt,hn){var vn;return le.positionUsing==="translate3d"?vn={transform:"translate3d("+pe(Et)+"%,0,0)"}:le.positionUsing==="translate"?vn={transform:"translate("+pe(Et)+"%,0)"}:vn={"margin-left":pe(Et)+"%"},vn.transition="all "+Lt+"ms "+hn,vn}var Ce=function(){var Et=[];function Lt(){var hn=Et.shift();hn&&hn(Lt)}return function(hn){Et.push(hn),Et.length==1&&Lt()}}(),$e=function(){var Et=["Webkit","O","Moz","ms"],Lt={};function hn(Sn){return Sn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Cn,En){return En.toUpperCase()})}function vn(Sn){var Cn=document.body.style;if(Sn in Cn)return Sn;for(var En=Et.length,$n=Sn.charAt(0).toUpperCase()+Sn.slice(1),wn;En--;)if(wn=Et[En]+$n,wn in Cn)return wn;return Sn}function _n(Sn){return Sn=hn(Sn),Lt[Sn]||(Lt[Sn]=vn(Sn))}function bn(Sn,Cn,En){Cn=_n(Cn),Sn.style[Cn]=En}return function(Sn,Cn){var En=arguments,$n,wn;if(En.length==2)for($n in Cn)wn=Cn[$n],wn!==void 0&&Cn.hasOwnProperty($n)&&bn(Sn,$n,wn);else bn(Sn,En[1],En[2])}}();function xe(Et,Lt){var hn=typeof Et=="string"?Et:Ue(Et);return hn.indexOf(" "+Lt+" ")>=0}function Ie(Et,Lt){var hn=Ue(Et),vn=hn+Lt;xe(hn,Lt)||(Et.className=vn.substring(1))}function ze(Et,Lt){var hn=Ue(Et),vn;xe(Et,Lt)&&(vn=hn.replace(" "+Lt+" "," "),Et.className=vn.substring(1,vn.length-1))}function Ue(Et){return(" "+(Et.className||"")+" ").replace(/\s+/gi," ")}function qe(Et){Et&&Et.parentNode&&Et.parentNode.removeChild(Et)}return ie})})(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}},to=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(z){return new Promise(ie=>{to.requests.push(le=>{z.headers.Authorization=formatToken(le),ie(z)})})}httpInterceptorsRequest(){to.axiosInstance.interceptors.request.use(async z=>(NProgress.start(),typeof z.beforeRequestCallback=="function"?(z.beforeRequestCallback(z),z):to.initConfig.beforeRequestCallback?(to.initConfig.beforeRequestCallback(z),z):["/refreshToken","/login"].some(le=>z.url.indexOf(le)>-1)?z:new Promise(le=>{const ue=getToken();if(ue){const pe=new Date().getTime();parseInt(ue.expires)-pe<=0?(to.isRefreshing||(to.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:ue.refreshToken}).then(Ce=>{const $e=Ce.data.accessToken;z.headers.Authorization=formatToken($e),to.requests.forEach(xe=>xe($e)),to.requests=[]}).finally(()=>{to.isRefreshing=!1})),le(to.retryOriginalRequest(z))):(z.headers.Authorization=formatToken(ue.accessToken),le(z))}else le(z)})),z=>Promise.reject(z))}httpInterceptorsResponse(){to.axiosInstance.interceptors.response.use(ie=>{const le=ie.config;return NProgress.done(),typeof le.beforeResponseCallback=="function"?(le.beforeResponseCallback(ie),ie.data):(to.initConfig.beforeResponseCallback&&to.initConfig.beforeResponseCallback(ie),ie.data)},ie=>{const le=ie;return le.isCancelRequest=axios$1.isCancel(le),NProgress.done(),Promise.reject(le)})}request(z,ie,le,ue){const pe={method:z,url:ie,...le,...ue};return new Promise((_e,Ce)=>{to.axiosInstance.request(pe).then($e=>{_e($e)}).catch($e=>{Ce($e)})})}post(z,ie,le){return this.request("post",z,ie,le)}get(z,ie,le){return this.request("get",z,ie,le)}};let PureHttp=to;oo(PureHttp,"requests",[]),oo(PureHttp,"isRefreshing",!1),oo(PureHttp,"initConfig",{}),oo(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:($=tr().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&$.multiTagsCache?tr().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(z=tr().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:z.multiTagsCache}},getters:{getMultiTagsCache($){return $.multiTagsCache}},actions:{multiTagsCacheChange($){this.multiTagsCache=$,$?tr().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):tr().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache($){this.getMultiTagsCache&&tr().setItem(`${responsiveStorageNameSpace()}tags`,$)},handleTags($,z,ie){var le,ue,pe,_e,Ce;switch($){case"equal":this.multiTags=z,this.tagsCache(this.multiTags);break;case"push":{const $e=z;if((le=$e==null?void 0:$e.meta)!=null&&le.hiddenTag||gt($e==null?void 0:$e.name)||((ue=$e==null?void 0:$e.meta)==null?void 0:ue.title.length)===0||Le((pe=$e==null?void 0:$e.meta)==null?void 0:pe.showLink)&&!((_e=$e==null?void 0:$e.meta)!=null&&_e.showLink))return;const xe=$e.path,Ie=this.multiTags.some(Et=>Et.path===xe),ze=this.multiTags.some(Et=>St(Et==null?void 0:Et.query,$e==null?void 0:$e.query)),Ue=this.multiTags.some(Et=>St(Et==null?void 0:Et.params,$e==null?void 0:$e.params));if(Ie&&ze&&Ue)return;const qe=((Ce=$e==null?void 0:$e.meta)==null?void 0:Ce.dynamicLevel)??-1;if(qe>0&&this.multiTags.filter(Et=>(Et==null?void 0:Et.path)===xe).length>=qe){const Et=this.multiTags.findIndex(Lt=>(Lt==null?void 0:Lt.path)===xe);Et!==-1&&this.multiTags.splice(Et,1)}this.multiTags.push(z),this.tagsCache(this.multiTags)}break;case"splice":if(ie)this.multiTags.splice(ie==null?void 0:ie.startIndex,ie==null?void 0:ie.length);else{const $e=this.multiTags.findIndex(xe=>xe.path===z);if($e===-1)return;this.multiTags.splice($e,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:(($=er().getItem(sessionKey))==null?void 0:$.username)??"",roles:((z=er().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,ie)=>{getLogin($).then(le=>{le&&(setToken(le.data),z(le))}).catch(le=>{ie(le)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken($){return new Promise((z,ie)=>{refreshTokenApi($).then(le=>{le&&(setToken(le.data),z(le))}).catch(le=>{ie(le)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):er().getItem(sessionKey)}function setToken($){var _e,Ce;let z=0;const{accessToken:ie,refreshToken:le}=$;z=new Date($.expires).getTime();const ue=JSON.stringify({accessToken:ie,expires:z});z>0?api.set(TokenKey,ue,{expires:(z-Date.now())/864e5}):api.set(TokenKey,ue);function pe($e,xe){useUserStoreHook().SET_USERNAME($e),useUserStoreHook().SET_ROLES(xe),er().setItem(sessionKey,{refreshToken:le,expires:z,username:$e,roles:xe})}if($.username&&$.roles){const{username:$e,roles:xe}=$;pe($e,xe)}else{const $e=((_e=er().getItem(sessionKey))==null?void 0:_e.username)??"",xe=((Ce=er().getItem(sessionKey))==null?void 0:Ce.roles)??[];pe($e,xe)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=$=>"Bearer "+$;(function(){const $=mr(location.href),z=["username","roles","accessToken"],ie=z.length;if(Object.keys($).length!==ie)return;let le=[],ue=0;for(;ue<ie;)Object.keys($).includes(z[ue])&&le.length<=ie?le.push(z[ue]):le=[],ue++;if(le.length===ie){removeToken(),setToken($),delete $.roles,delete $.accessToken;const pe=`${location.origin}${location.pathname}${Vt(location.hash,"?")}?${JSON.stringify($).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(pe)}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 ie={};for(const le in z){const ue=z[le];ie[le]=isArray$3(ue)?ue.map($):$(ue)}return ie}const noop$2=()=>{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=$=>$.replace(TRAILING_SLASH_RE,"");function parseURL($,z,ie="/"){let le,ue={},pe="",_e="";const Ce=z.indexOf("#");let $e=z.indexOf("?");return Ce<$e&&Ce>=0&&($e=-1),$e>-1&&(le=z.slice(0,$e),pe=z.slice($e+1,Ce>-1?Ce:z.length),ue=$(pe)),Ce>-1&&(le=le||z.slice(0,Ce),_e=z.slice(Ce,z.length)),le=resolveRelativePath(le??z,ie),{fullPath:le+(pe&&"?")+pe+_e,path:le,query:ue,hash:_e}}function stringifyURL($,z){const ie=z.query?$(z.query):"";return z.path+(ie&&"?")+ie+(z.hash||"")}function stripBase($,z){return!z||!$.toLowerCase().startsWith(z.toLowerCase())?$:$.slice(z.length)||"/"}function isSameRouteLocation($,z,ie){const le=z.matched.length-1,ue=ie.matched.length-1;return le>-1&&le===ue&&isSameRouteRecord(z.matched[le],ie.matched[ue])&&isSameRouteLocationParams(z.params,ie.params)&&$(z.query)===$(ie.query)&&z.hash===ie.hash}function isSameRouteRecord($,z){return($.aliasOf||$)===(z.aliasOf||z)}function isSameRouteLocationParams($,z){if(Object.keys($).length!==Object.keys(z).length)return!1;for(const ie in $)if(!isSameRouteLocationParamsValue($[ie],z[ie]))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((ie,le)=>ie===z[le]):$.length===1&&$[0]===z}function resolveRelativePath($,z){if($.startsWith("/"))return $;if(!$)return z;const ie=z.split("/"),le=$.split("/"),ue=le[le.length-1];(ue===".."||ue===".")&&le.push("");let pe=ie.length-1,_e,Ce;for(_e=0;_e<le.length;_e++)if(Ce=le[_e],Ce!==".")if(Ce==="..")pe>1&&pe--;else break;return ie.slice(0,pe).join("/")+"/"+le.slice(_e-(_e===le.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 ie=document.documentElement.getBoundingClientRect(),le=$.getBoundingClientRect();return{behavior:z.behavior,left:le.left-ie.left-(z.left||0),top:le.top-ie.top-(z.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition($){let z;if("el"in $){const ie=$.el,le=typeof ie=="string"&&ie.startsWith("#"),ue=typeof ie=="string"?le?document.getElementById(ie.slice(1)):document.querySelector(ie):ie;if(!ue)return;z=getElementPosition(ue,$)}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:ie,search:le,hash:ue}=z,pe=$.indexOf("#");if(pe>-1){let Ce=ue.includes($.slice(pe))?$.slice(pe).length:1,$e=ue.slice(Ce);return $e[0]!=="/"&&($e="/"+$e),stripBase($e,"")}return stripBase(ie,$)+le+ue}function useHistoryListeners($,z,ie,le){let ue=[],pe=[],_e=null;const Ce=({state:Ue})=>{const qe=createCurrentLocation($,location),Et=ie.value,Lt=z.value;let hn=0;if(Ue){if(ie.value=qe,z.value=Ue,_e&&_e===Et){_e=null;return}hn=Lt?Ue.position-Lt.position:0}else le(qe);ue.forEach(vn=>{vn(ie.value,Et,{delta:hn,type:NavigationType.pop,direction:hn?hn>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function $e(){_e=ie.value}function xe(Ue){ue.push(Ue);const qe=()=>{const Et=ue.indexOf(Ue);Et>-1&&ue.splice(Et,1)};return pe.push(qe),qe}function Ie(){const{history:Ue}=window;Ue.state&&Ue.replaceState(assign({},Ue.state,{scroll:computeScrollPosition()}),"")}function ze(){for(const Ue of pe)Ue();pe=[],window.removeEventListener("popstate",Ce),window.removeEventListener("beforeunload",Ie)}return window.addEventListener("popstate",Ce),window.addEventListener("beforeunload",Ie,{passive:!0}),{pauseListeners:$e,listen:xe,destroy:ze}}function buildState($,z,ie,le=!1,ue=!1){return{back:$,current:z,forward:ie,replaced:le,position:window.history.length,scroll:ue?computeScrollPosition():null}}function useHistoryStateNavigation($){const{history:z,location:ie}=window,le={value:createCurrentLocation($,ie)},ue={value:z.state};ue.value||pe(le.value,{back:null,current:le.value,forward:null,position:z.length-1,replaced:!0,scroll:null},!0);function pe($e,xe,Ie){const ze=$.indexOf("#"),Ue=ze>-1?(ie.host&&document.querySelector("base")?$:$.slice(ze))+$e:createBaseLocation()+$+$e;try{z[Ie?"replaceState":"pushState"](xe,"",Ue),ue.value=xe}catch(qe){console.error(qe),ie[Ie?"replace":"assign"](Ue)}}function _e($e,xe){const Ie=assign({},z.state,buildState(ue.value.back,$e,ue.value.forward,!0),xe,{position:ue.value.position});pe($e,Ie,!0),le.value=$e}function Ce($e,xe){const Ie=assign({},ue.value,z.state,{forward:$e,scroll:computeScrollPosition()});pe(Ie.current,Ie,!0);const ze=assign({},buildState(le.value,$e,null),{position:Ie.position+1},xe);pe($e,ze,!1),le.value=$e}return{location:le,state:ue,push:Ce,replace:_e}}function createWebHistory($){$=normalizeBase($);const z=useHistoryStateNavigation($),ie=useHistoryListeners($,z.state,z.location,z.replace);function le(pe,_e=!0){_e||ie.pauseListeners(),history.go(pe)}const ue=assign({location:"",base:$,go:le,createHref:createHref.bind(null,$)},z,ie);return Object.defineProperty(ue,"location",{enumerable:!0,get:()=>z.location.value}),Object.defineProperty(ue,"state",{enumerable:!0,get:()=>z.state.value}),ue}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 ie=assign({},BASE_PATH_PARSER_OPTIONS,z),le=[];let ue=ie.start?"^":"";const pe=[];for(const xe of $){const Ie=xe.length?[]:[90];ie.strict&&!xe.length&&(ue+="/");for(let ze=0;ze<xe.length;ze++){const Ue=xe[ze];let qe=40+(ie.sensitive?.25:0);if(Ue.type===0)ze||(ue+="/"),ue+=Ue.value.replace(REGEX_CHARS_RE,"\\$&"),qe+=40;else if(Ue.type===1){const{value:Et,repeatable:Lt,optional:hn,regexp:vn}=Ue;pe.push({name:Et,repeatable:Lt,optional:hn});const _n=vn||BASE_PARAM_PATTERN;if(_n!==BASE_PARAM_PATTERN){qe+=10;try{new RegExp(`(${_n})`)}catch(Sn){throw new Error(`Invalid custom RegExp for param "${Et}" (${_n}): `+Sn.message)}}let bn=Lt?`((?:${_n})(?:/(?:${_n}))*)`:`(${_n})`;ze||(bn=hn&&xe.length<2?`(?:/${bn})`:"/"+bn),hn&&(bn+="?"),ue+=bn,qe+=20,hn&&(qe+=-8),Lt&&(qe+=-20),_n===".*"&&(qe+=-50)}Ie.push(qe)}le.push(Ie)}if(ie.strict&&ie.end){const xe=le.length-1;le[xe][le[xe].length-1]+=.7000000000000001}ie.strict||(ue+="/?"),ie.end?ue+="$":ie.strict&&(ue+="(?:/|$)");const _e=new RegExp(ue,ie.sensitive?"":"i");function Ce(xe){const Ie=xe.match(_e),ze={};if(!Ie)return null;for(let Ue=1;Ue<Ie.length;Ue++){const qe=Ie[Ue]||"",Et=pe[Ue-1];ze[Et.name]=qe&&Et.repeatable?qe.split("/"):qe}return ze}function $e(xe){let Ie="",ze=!1;for(const Ue of $){(!ze||!Ie.endsWith("/"))&&(Ie+="/"),ze=!1;for(const qe of Ue)if(qe.type===0)Ie+=qe.value;else if(qe.type===1){const{value:Et,repeatable:Lt,optional:hn}=qe,vn=Et in xe?xe[Et]:"";if(isArray$3(vn)&&!Lt)throw new Error(`Provided param "${Et}" is an array but it is not repeatable (* or + modifiers)`);const _n=isArray$3(vn)?vn.join("/"):vn;if(!_n)if(hn)Ue.length<2&&(Ie.endsWith("/")?Ie=Ie.slice(0,-1):ze=!0);else throw new Error(`Missing required param "${Et}"`);Ie+=_n}}return Ie||"/"}return{re:_e,score:le,keys:pe,parse:Ce,stringify:$e}}function compareScoreArray($,z){let ie=0;for(;ie<$.length&&ie<z.length;){const le=z[ie]-$[ie];if(le)return le;ie++}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 ie=0;const le=$.score,ue=z.score;for(;ie<le.length&&ie<ue.length;){const pe=compareScoreArray(le[ie],ue[ie]);if(pe)return pe;ie++}if(Math.abs(ue.length-le.length)===1){if(isLastScoreNegative(le))return 1;if(isLastScoreNegative(ue))return-1}return ue.length-le.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(qe){throw new Error(`ERR (${ie})/"${xe}": ${qe}`)}let ie=0,le=ie;const ue=[];let pe;function _e(){pe&&ue.push(pe),pe=[]}let Ce=0,$e,xe="",Ie="";function ze(){xe&&(ie===0?pe.push({type:0,value:xe}):ie===1||ie===2||ie===3?(pe.length>1&&($e==="*"||$e==="+")&&z(`A repeatable param (${xe}) must be alone in its segment. eg: '/:ids+.`),pe.push({type:1,value:xe,regexp:Ie,repeatable:$e==="*"||$e==="+",optional:$e==="*"||$e==="?"})):z("Invalid state to consume buffer"),xe="")}function Ue(){xe+=$e}for(;Ce<$.length;){if($e=$[Ce++],$e==="\\"&&ie!==2){le=ie,ie=4;continue}switch(ie){case 0:$e==="/"?(xe&&ze(),_e()):$e===":"?(ze(),ie=1):Ue();break;case 4:Ue(),ie=le;break;case 1:$e==="("?ie=2:VALID_PARAM_RE.test($e)?Ue():(ze(),ie=0,$e!=="*"&&$e!=="?"&&$e!=="+"&&Ce--);break;case 2:$e===")"?Ie[Ie.length-1]=="\\"?Ie=Ie.slice(0,-1)+$e:ie=3:Ie+=$e;break;case 3:ze(),ie=0,$e!=="*"&&$e!=="?"&&$e!=="+"&&Ce--,Ie="";break;default:z("Unknown state");break}}return ie===2&&z(`Unfinished custom RegExp for param "${xe}"`),ze(),_e(),ue}function createRouteRecordMatcher($,z,ie){const le=tokensToParser(tokenizePath($.path),ie),ue=assign(le,{record:$,parent:z,children:[],alias:[]});return z&&!ue.record.aliasOf==!z.record.aliasOf&&z.children.push(ue),ue}function createRouterMatcher($,z){const ie=[],le=new Map;z=mergeOptions({strict:!1,end:!0,sensitive:!1},z);function ue(Ie){return le.get(Ie)}function pe(Ie,ze,Ue){const qe=!Ue,Et=normalizeRouteRecord(Ie);Et.aliasOf=Ue&&Ue.record;const Lt=mergeOptions(z,Ie),hn=[Et];if("alias"in Ie){const bn=typeof Ie.alias=="string"?[Ie.alias]:Ie.alias;for(const Sn of bn)hn.push(assign({},Et,{components:Ue?Ue.record.components:Et.components,path:Sn,aliasOf:Ue?Ue.record:Et}))}let vn,_n;for(const bn of hn){const{path:Sn}=bn;if(ze&&Sn[0]!=="/"){const Cn=ze.record.path,En=Cn[Cn.length-1]==="/"?"":"/";bn.path=ze.record.path+(Sn&&En+Sn)}if(vn=createRouteRecordMatcher(bn,ze,Lt),Ue?Ue.alias.push(vn):(_n=_n||vn,_n!==vn&&_n.alias.push(vn),qe&&Ie.name&&!isAliasRecord(vn)&&_e(Ie.name)),Et.children){const Cn=Et.children;for(let En=0;En<Cn.length;En++)pe(Cn[En],vn,Ue&&Ue.children[En])}Ue=Ue||vn,(vn.record.components&&Object.keys(vn.record.components).length||vn.record.name||vn.record.redirect)&&$e(vn)}return _n?()=>{_e(_n)}:noop$2}function _e(Ie){if(isRouteName(Ie)){const ze=le.get(Ie);ze&&(le.delete(Ie),ie.splice(ie.indexOf(ze),1),ze.children.forEach(_e),ze.alias.forEach(_e))}else{const ze=ie.indexOf(Ie);ze>-1&&(ie.splice(ze,1),Ie.record.name&&le.delete(Ie.record.name),Ie.children.forEach(_e),Ie.alias.forEach(_e))}}function Ce(){return ie}function $e(Ie){let ze=0;for(;ze<ie.length&&comparePathParserScore(Ie,ie[ze])>=0&&(Ie.record.path!==ie[ze].record.path||!isRecordChildOf(Ie,ie[ze]));)ze++;ie.splice(ze,0,Ie),Ie.record.name&&!isAliasRecord(Ie)&&le.set(Ie.record.name,Ie)}function xe(Ie,ze){let Ue,qe={},Et,Lt;if("name"in Ie&&Ie.name){if(Ue=le.get(Ie.name),!Ue)throw createRouterError(1,{location:Ie});Lt=Ue.record.name,qe=assign(paramsFromLocation(ze.params,Ue.keys.filter(_n=>!_n.optional).map(_n=>_n.name)),Ie.params&&paramsFromLocation(Ie.params,Ue.keys.map(_n=>_n.name))),Et=Ue.stringify(qe)}else if("path"in Ie)Et=Ie.path,Ue=ie.find(_n=>_n.re.test(Et)),Ue&&(qe=Ue.parse(Et),Lt=Ue.record.name);else{if(Ue=ze.name?le.get(ze.name):ie.find(_n=>_n.re.test(ze.path)),!Ue)throw createRouterError(1,{location:Ie,currentLocation:ze});Lt=Ue.record.name,qe=assign({},ze.params,Ie.params),Et=Ue.stringify(qe)}const hn=[];let vn=Ue;for(;vn;)hn.unshift(vn.record),vn=vn.parent;return{name:Lt,path:Et,params:qe,matched:hn,meta:mergeMetaFields(hn)}}return $.forEach(Ie=>pe(Ie)),{addRoute:pe,resolve:xe,removeRoute:_e,getRoutes:Ce,getRecordMatcher:ue}}function paramsFromLocation($,z){const ie={};for(const le of z)le in $&&(ie[le]=$[le]);return ie}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={},ie=$.props||!1;if("component"in $)z.default=ie;else for(const le in $.components)z[le]=typeof ie=="boolean"?ie:ie[le];return z}function isAliasRecord($){for(;$;){if($.record.aliasOf)return!0;$=$.parent}return!1}function mergeMetaFields($){return $.reduce((z,ie)=>assign(z,ie.meta),{})}function mergeOptions($,z){const ie={};for(const le in $)ie[le]=le in z?z[le]:$[le];return ie}function isRecordChildOf($,z){return z.children.some(ie=>ie===$||isRecordChildOf($,ie))}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 le=($[0]==="?"?$.slice(1):$).split("&");for(let ue=0;ue<le.length;++ue){const pe=le[ue].replace(PLUS_RE," "),_e=pe.indexOf("="),Ce=decode$1(_e<0?pe:pe.slice(0,_e)),$e=_e<0?null:decode$1(pe.slice(_e+1));if(Ce in z){let xe=z[Ce];isArray$3(xe)||(xe=z[Ce]=[xe]),xe.push($e)}else z[Ce]=$e}return z}function stringifyQuery($){let z="";for(let ie in $){const le=$[ie];if(ie=encodeQueryKey(ie),le==null){le!==void 0&&(z+=(z.length?"&":"")+ie);continue}(isArray$3(le)?le.map(pe=>pe&&encodeQueryValue(pe)):[le&&encodeQueryValue(le)]).forEach(pe=>{pe!==void 0&&(z+=(z.length?"&":"")+ie,pe!=null&&(z+="="+pe))})}return z}function normalizeQuery($){const z={};for(const ie in $){const le=$[ie];le!==void 0&&(z[ie]=isArray$3(le)?le.map(ue=>ue==null?null:""+ue):le==null?le:""+le)}return z}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let $=[];function z(le){return $.push(le),()=>{const ue=$.indexOf(le);ue>-1&&$.splice(ue,1)}}function ie(){$=[]}return{add:z,list:()=>$,reset:ie}}function guardToPromiseFn($,z,ie,le,ue){const pe=le&&(le.enterCallbacks[ue]=le.enterCallbacks[ue]||[]);return()=>new Promise((_e,Ce)=>{const $e=ze=>{ze===!1?Ce(createRouterError(4,{from:ie,to:z})):ze instanceof Error?Ce(ze):isRouteLocation(ze)?Ce(createRouterError(2,{from:z,to:ze})):(pe&&le.enterCallbacks[ue]===pe&&typeof ze=="function"&&pe.push(ze),_e())},xe=$.call(le&&le.instances[ue],z,ie,$e);let Ie=Promise.resolve(xe);$.length<3&&(Ie=Ie.then($e)),Ie.catch(ze=>Ce(ze))})}function extractComponentsGuards($,z,ie,le){const ue=[];for(const pe of $)for(const _e in pe.components){let Ce=pe.components[_e];if(!(z!=="beforeRouteEnter"&&!pe.instances[_e]))if(isRouteComponent(Ce)){const xe=(Ce.__vccOpts||Ce)[z];xe&&ue.push(guardToPromiseFn(xe,ie,le,pe,_e))}else{let $e=Ce();ue.push(()=>$e.then(xe=>{if(!xe)return Promise.reject(new Error(`Couldn't resolve component "${_e}" at "${pe.path}"`));const Ie=isESModule(xe)?xe.default:xe;pe.components[_e]=Ie;const Ue=(Ie.__vccOpts||Ie)[z];return Ue&&guardToPromiseFn(Ue,ie,le,pe,_e)()}))}}return ue}function isRouteComponent($){return typeof $=="object"||"displayName"in $||"props"in $||"__vccOpts"in $}function useLink($){const z=inject(routerKey),ie=inject(routeLocationKey),le=computed(()=>z.resolve(unref($.to))),ue=computed(()=>{const{matched:$e}=le.value,{length:xe}=$e,Ie=$e[xe-1],ze=ie.matched;if(!Ie||!ze.length)return-1;const Ue=ze.findIndex(isSameRouteRecord.bind(null,Ie));if(Ue>-1)return Ue;const qe=getOriginalPath($e[xe-2]);return xe>1&&getOriginalPath(Ie)===qe&&ze[ze.length-1].path!==qe?ze.findIndex(isSameRouteRecord.bind(null,$e[xe-2])):Ue}),pe=computed(()=>ue.value>-1&&includesParams(ie.params,le.value.params)),_e=computed(()=>ue.value>-1&&ue.value===ie.matched.length-1&&isSameRouteLocationParams(ie.params,le.value.params));function Ce($e={}){return guardEvent($e)?z[unref($.replace)?"replace":"push"](unref($.to)).catch(noop$2):Promise.resolve()}return{route:le,href:computed(()=>le.value.href),isActive:pe,isExactActive:_e,navigate:Ce}}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 ie=reactive(useLink($)),{options:le}=inject(routerKey),ue=computed(()=>({[getLinkClass($.activeClass,le.linkActiveClass,"router-link-active")]:ie.isActive,[getLinkClass($.exactActiveClass,le.linkExactActiveClass,"router-link-exact-active")]:ie.isExactActive}));return()=>{const pe=z.default&&z.default(ie);return $.custom?pe:h$3("a",{"aria-current":ie.isExactActive?$.ariaCurrentValue:null,href:ie.href,onClick:ie.navigate,class:ue.value},pe)}}}),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 ie in z){const le=z[ie],ue=$[ie];if(typeof le=="string"){if(le!==ue)return!1}else if(!isArray$3(ue)||ue.length!==le.length||le.some((pe,_e)=>pe!==ue[_e]))return!1}return!0}function getOriginalPath($){return $?$.aliasOf?$.aliasOf.path:$.path:""}const getLinkClass=($,z,ie)=>$??z??ie,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup($,{attrs:z,slots:ie}){const le=inject(routerViewLocationKey),ue=computed(()=>$.route||le.value),pe=inject(viewDepthKey,0),_e=computed(()=>{let xe=unref(pe);const{matched:Ie}=ue.value;let ze;for(;(ze=Ie[xe])&&!ze.components;)xe++;return xe}),Ce=computed(()=>ue.value.matched[_e.value]);provide(viewDepthKey,computed(()=>_e.value+1)),provide(matchedRouteKey,Ce),provide(routerViewLocationKey,ue);const $e=ref();return watch(()=>[$e.value,Ce.value,$.name],([xe,Ie,ze],[Ue,qe,Et])=>{Ie&&(Ie.instances[ze]=xe,qe&&qe!==Ie&&xe&&xe===Ue&&(Ie.leaveGuards.size||(Ie.leaveGuards=qe.leaveGuards),Ie.updateGuards.size||(Ie.updateGuards=qe.updateGuards))),xe&&Ie&&(!qe||!isSameRouteRecord(Ie,qe)||!Ue)&&(Ie.enterCallbacks[ze]||[]).forEach(Lt=>Lt(xe))},{flush:"post"}),()=>{const xe=ue.value,Ie=$.name,ze=Ce.value,Ue=ze&&ze.components[Ie];if(!Ue)return normalizeSlot(ie.default,{Component:Ue,route:xe});const qe=ze.props[Ie],Et=qe?qe===!0?xe.params:typeof qe=="function"?qe(xe):qe:null,hn=h$3(Ue,assign({},Et,z,{onVnodeUnmounted:vn=>{vn.component.isUnmounted&&(ze.instances[Ie]=null)},ref:$e}));return normalizeSlot(ie.default,{Component:hn,route:xe})||hn}}});function normalizeSlot($,z){if(!$)return null;const ie=$(z);return ie.length===1?ie[0]:ie}const RouterView=RouterViewImpl;function createRouter($){const z=createRouterMatcher($.routes,$),ie=$.parseQuery||parseQuery,le=$.stringifyQuery||stringifyQuery,ue=$.history,pe=useCallbacks(),_e=useCallbacks(),Ce=useCallbacks(),$e=shallowRef(START_LOCATION_NORMALIZED);let xe=START_LOCATION_NORMALIZED;isBrowser$1&&$.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const Ie=applyToParams.bind(null,Zn=>""+Zn),ze=applyToParams.bind(null,encodeParam),Ue=applyToParams.bind(null,decode$1);function qe(Zn,Kn){let Wn,nr;return isRouteName(Zn)?(Wn=z.getRecordMatcher(Zn),nr=Kn):nr=Zn,z.addRoute(nr,Wn)}function Et(Zn){const Kn=z.getRecordMatcher(Zn);Kn&&z.removeRoute(Kn)}function Lt(){return z.getRoutes().map(Zn=>Zn.record)}function hn(Zn){return!!z.getRecordMatcher(Zn)}function vn(Zn,Kn){if(Kn=assign({},Kn||$e.value),typeof Zn=="string"){const or=parseURL(ie,Zn,Kn.path),vr=z.resolve({path:or.path},Kn),_r=ue.createHref(or.fullPath);return assign(or,vr,{params:Ue(vr.params),hash:decode$1(or.hash),redirectedFrom:void 0,href:_r})}let Wn;if("path"in Zn)Wn=assign({},Zn,{path:parseURL(ie,Zn.path,Kn.path).path});else{const or=assign({},Zn.params);for(const vr in or)or[vr]==null&&delete or[vr];Wn=assign({},Zn,{params:ze(or)}),Kn.params=ze(Kn.params)}const nr=z.resolve(Wn,Kn),fr=Zn.hash||"";nr.params=Ie(Ue(nr.params));const Gn=stringifyURL(le,assign({},Zn,{hash:encodeHash(fr),path:nr.path})),Xn=ue.createHref(Gn);return assign({fullPath:Gn,hash:fr,query:le===stringifyQuery?normalizeQuery(Zn.query):Zn.query||{}},nr,{redirectedFrom:void 0,href:Xn})}function _n(Zn){return typeof Zn=="string"?parseURL(ie,Zn,$e.value.path):assign({},Zn)}function bn(Zn,Kn){if(xe!==Zn)return createRouterError(8,{from:Kn,to:Zn})}function Sn(Zn){return $n(Zn)}function Cn(Zn){return Sn(assign(_n(Zn),{replace:!0}))}function En(Zn){const Kn=Zn.matched[Zn.matched.length-1];if(Kn&&Kn.redirect){const{redirect:Wn}=Kn;let nr=typeof Wn=="function"?Wn(Zn):Wn;return typeof nr=="string"&&(nr=nr.includes("?")||nr.includes("#")?nr=_n(nr):{path:nr},nr.params={}),assign({query:Zn.query,hash:Zn.hash,params:"path"in nr?{}:Zn.params},nr)}}function $n(Zn,Kn){const Wn=xe=vn(Zn),nr=$e.value,fr=Zn.state,Gn=Zn.force,Xn=Zn.replace===!0,or=En(Wn);if(or)return $n(assign(_n(or),{state:typeof or=="object"?assign({},fr,or.state):fr,force:Gn,replace:Xn}),Kn||Wn);const vr=Wn;vr.redirectedFrom=Kn;let _r;return!Gn&&isSameRouteLocation(le,nr,Wn)&&(_r=createRouterError(16,{to:vr,from:nr}),qn(nr,nr,!0,!1)),(_r?Promise.resolve(_r):xn(vr,nr)).catch(ir=>isNavigationFailure(ir)?isNavigationFailure(ir,2)?ir:zn(ir):Vn(ir,vr,nr)).then(ir=>{if(ir){if(isNavigationFailure(ir,2))return $n(assign({replace:Xn},_n(ir.to),{state:typeof ir.to=="object"?assign({},fr,ir.to.state):fr,force:Gn}),Kn||vr)}else ir=kn(vr,nr,!0,Xn,fr);return Pn(vr,nr,ir),ir})}function wn(Zn,Kn){const Wn=bn(Zn,Kn);return Wn?Promise.reject(Wn):Promise.resolve()}function Tn(Zn){const Kn=ur.values().next().value;return Kn&&typeof Kn.runWithContext=="function"?Kn.runWithContext(Zn):Zn()}function xn(Zn,Kn){let Wn;const[nr,fr,Gn]=extractChangingRecords(Zn,Kn);Wn=extractComponentsGuards(nr.reverse(),"beforeRouteLeave",Zn,Kn);for(const or of nr)or.leaveGuards.forEach(vr=>{Wn.push(guardToPromiseFn(vr,Zn,Kn))});const Xn=wn.bind(null,Zn,Kn);return Wn.push(Xn),sr(Wn).then(()=>{Wn=[];for(const or of pe.list())Wn.push(guardToPromiseFn(or,Zn,Kn));return Wn.push(Xn),sr(Wn)}).then(()=>{Wn=extractComponentsGuards(fr,"beforeRouteUpdate",Zn,Kn);for(const or of fr)or.updateGuards.forEach(vr=>{Wn.push(guardToPromiseFn(vr,Zn,Kn))});return Wn.push(Xn),sr(Wn)}).then(()=>{Wn=[];for(const or of Zn.matched)if(or.beforeEnter&&!Kn.matched.includes(or))if(isArray$3(or.beforeEnter))for(const vr of or.beforeEnter)Wn.push(guardToPromiseFn(vr,Zn,Kn));else Wn.push(guardToPromiseFn(or.beforeEnter,Zn,Kn));return Wn.push(Xn),sr(Wn)}).then(()=>(Zn.matched.forEach(or=>or.enterCallbacks={}),Wn=extractComponentsGuards(Gn,"beforeRouteEnter",Zn,Kn),Wn.push(Xn),sr(Wn))).then(()=>{Wn=[];for(const or of _e.list())Wn.push(guardToPromiseFn(or,Zn,Kn));return Wn.push(Xn),sr(Wn)}).catch(or=>isNavigationFailure(or,8)?or:Promise.reject(or))}function Pn(Zn,Kn,Wn){for(const nr of Ce.list())Tn(()=>nr(Zn,Kn,Wn))}function kn(Zn,Kn,Wn,nr,fr){const Gn=bn(Zn,Kn);if(Gn)return Gn;const Xn=Kn===START_LOCATION_NORMALIZED,or=isBrowser$1?history.state:{};Wn&&(nr||Xn?ue.replace(Zn.fullPath,assign({scroll:Xn&&or&&or.scroll},fr)):ue.push(Zn.fullPath,fr)),$e.value=Zn,qn(Zn,Kn,Wn,Xn),zn()}let An;function Nn(){An||(An=ue.listen((Zn,Kn,Wn)=>{if(!yr.listening)return;const nr=vn(Zn),fr=En(nr);if(fr){$n(assign(fr,{replace:!0}),nr).catch(noop$2);return}xe=nr;const Gn=$e.value;isBrowser$1&&saveScrollPosition(getScrollKey(Gn.fullPath,Wn.delta),computeScrollPosition()),xn(nr,Gn).catch(Xn=>isNavigationFailure(Xn,12)?Xn:isNavigationFailure(Xn,2)?($n(Xn.to,nr).then(or=>{isNavigationFailure(or,20)&&!Wn.delta&&Wn.type===NavigationType.pop&&ue.go(-1,!1)}).catch(noop$2),Promise.reject()):(Wn.delta&&ue.go(-Wn.delta,!1),Vn(Xn,nr,Gn))).then(Xn=>{Xn=Xn||kn(nr,Gn,!1),Xn&&(Wn.delta&&!isNavigationFailure(Xn,8)?ue.go(-Wn.delta,!1):Wn.type===NavigationType.pop&&isNavigationFailure(Xn,20)&&ue.go(-1,!1)),Pn(nr,Gn,Xn)}).catch(noop$2)}))}let Fn=useCallbacks(),Ln=useCallbacks(),In;function Vn(Zn,Kn,Wn){zn(Zn);const nr=Ln.list();return nr.length?nr.forEach(fr=>fr(Zn,Kn,Wn)):console.error(Zn),Promise.reject(Zn)}function Mn(){return In&&$e.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Zn,Kn)=>{Fn.add([Zn,Kn])})}function zn(Zn){return In||(In=!Zn,Nn(),Fn.list().forEach(([Kn,Wn])=>Zn?Wn(Zn):Kn()),Fn.reset()),Zn}function qn(Zn,Kn,Wn,nr){const{scrollBehavior:fr}=$;if(!isBrowser$1||!fr)return Promise.resolve();const Gn=!Wn&&getSavedScrollPosition(getScrollKey(Zn.fullPath,0))||(nr||!Wn)&&history.state&&history.state.scroll||null;return nextTick().then(()=>fr(Zn,Kn,Gn)).then(Xn=>Xn&&scrollToPosition(Xn)).catch(Xn=>Vn(Xn,Zn,Kn))}const Hn=Zn=>ue.go(Zn);let Jn;const ur=new Set,yr={currentRoute:$e,listening:!0,addRoute:qe,removeRoute:Et,hasRoute:hn,getRoutes:Lt,resolve:vn,options:$,push:Sn,replace:Cn,go:Hn,back:()=>Hn(-1),forward:()=>Hn(1),beforeEach:pe.add,beforeResolve:_e.add,afterEach:Ce.add,onError:Ln.add,isReady:Mn,install(Zn){const Kn=this;Zn.component("RouterLink",RouterLink),Zn.component("RouterView",RouterView),Zn.config.globalProperties.$router=Kn,Object.defineProperty(Zn.config.globalProperties,"$route",{enumerable:!0,get:()=>unref($e)}),isBrowser$1&&!Jn&&$e.value===START_LOCATION_NORMALIZED&&(Jn=!0,Sn(ue.location).catch(fr=>{}));const Wn={};for(const fr in START_LOCATION_NORMALIZED)Wn[fr]=computed(()=>$e.value[fr]);Zn.provide(routerKey,Kn),Zn.provide(routeLocationKey,reactive(Wn)),Zn.provide(routerViewLocationKey,$e);const nr=Zn.unmount;ur.add(Zn),Zn.unmount=function(){ur.delete(Zn),ur.size<1&&(xe=START_LOCATION_NORMALIZED,An&&An(),An=null,$e.value=START_LOCATION_NORMALIZED,Jn=!1,In=!1),nr()}}};function sr(Zn){return Zn.reduce((Kn,Wn)=>Kn.then(()=>Tn(Wn)),Promise.resolve())}return yr}function extractChangingRecords($,z){const ie=[],le=[],ue=[],pe=Math.max(z.matched.length,$.matched.length);for(let _e=0;_e<pe;_e++){const Ce=z.matched[_e];Ce&&($.matched.find(xe=>isSameRouteRecord(xe,Ce))?le.push(Ce):ie.push(Ce));const $e=$.matched[_e];$e&&(z.matched.find(xe=>isSameRouteRecord(xe,$e))||ue.push($e))}return[ie,le,ue]}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 ie of $)ie.children&&ie.children.length>0&&extractPathList(ie.children),z.push(ie.uniqueId);return z},deleteChildren=($,z=[])=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const[ie,le]of $.entries())le.children&&le.children.length===1&&delete le.children,le.id=ie,le.parentId=z.length?z[z.length-1]:null,le.pathList=[...z,le.id],le.uniqueId=le.pathList.length>1?le.pathList.join("-"):le.pathList[0],le.children&&le.children.length>0&&deleteChildren(le.children,le.pathList);return $},buildHierarchyTree=($,z=[])=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];for(const[ie,le]of $.entries())le.id=ie,le.parentId=z.length?z[z.length-1]:null,le.pathList=[...z,le.id],le.children&&le.children.length>0&&buildHierarchyTree(le.children,le.pathList);return $},getNodeByUniqueId=($,z)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];const ie=$.find(ue=>ue.uniqueId===z);if(ie)return ie;const le=$.filter(ue=>ue.children).map(ue=>ue.children).flat(1);return getNodeByUniqueId(le,z)},appendFieldByUniqueId=($,z,ie)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const le of $){const ue=le.children&&le.children.length>0;le.uniqueId===z&&Object.prototype.toString.call(ie)==="[object Object]"&&Object.assign(le,ie),ue&&appendFieldByUniqueId(le.children,z,ie)}return $},handleTree=($,z,ie,le)=>{if(!Array.isArray($))return console.warn("data must be an array"),[];const ue={id:z||"id",parentId:ie||"parentId",childrenList:le||"children"},pe={},_e={},Ce=[];for(const xe of $){const Ie=xe[ue.parentId];pe[Ie]==null&&(pe[Ie]=[]),_e[xe[ue.id]]=xe,pe[Ie].push(xe)}for(const xe of $){const Ie=xe[ue.parentId];_e[Ie]==null&&Ce.push(xe)}for(const xe of Ce)$e(xe);function $e(xe){if(pe[xe[ue.id]]!==null&&(xe[ue.childrenList]=pe[xe[ue.id]]),xe[ue.childrenList])for(const Ie of xe[ue.childrenList])$e(Ie)}return Ce},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-c2ebce59.js"),["static/js/frameView-c2ebce59.js","static/css/frameView-ed080731.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-ea76ce3b.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-f7f17e44.js"),["static/js/cascader-f7f17e44.js","static/css/cascader-843853c0.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-f0d731d0.js"),["static/js/debounce-f0d731d0.js","static/js/message-e7058037.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-90998e07.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-9fac3487.js"),["static/js/execl-9fac3487.js","static/js/xlsx-f5126985.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-830f9d31.js"),["static/js/icon-select-830f9d31.js","static/css/icon-select-e8efdfdc.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-77d289ef.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-82d20b37.js"),["static/js/line-tree-82d20b37.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-a329583d.js"),["static/js/menu-tree-a329583d.js","static/js/hooks-aba0b55f.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-271849a8.js"),["static/js/pdf-271849a8.js","static/js/vue.runtime.esm-bundler-cd1dc4b3.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-15303a74.js"),["static/js/print-15303a74.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-6ac7d253.js","static/js/app-59bc21db.js","static/css/print-8831c8b6.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-d9861f77.js"),["static/js/qrcode-d9861f77.js","static/js/message-e7058037.js","static/js/index-6e426a04.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-bdcf73a0.js"),["static/js/swiper-bdcf73a0.js","static/css/swiper-4182dcb7.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-e8d6f764.js"),["static/js/timeline-e8d6f764.js","static/js/index-fc14d474.js","static/css/index-18417f34.css","static/js/hooks-aba0b55f.js","static/js/iphone-bcaa848c.js","static/css/timeline-12434188.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-aa81093a.js"),["static/js/horizontal-aa81093a.js","static/js/vue-virtual-scroller.esm-64a4eed5.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-bdde1346.js"),["static/js/index-bdde1346.js","static/js/vertical-ab01501e.js","static/js/vue-virtual-scroller.esm-64a4eed5.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-aa81093a.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-ab01501e.js"),["static/js/vertical-ab01501e.js","static/js/vue-virtual-scroller.esm-64a4eed5.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-5529281a.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-1d400cfc.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-7ab02b68.js"),["static/js/index-7ab02b68.js","static/js/columns-1d400cfc.js","static/css/index-cb8197dd.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-d17ce183.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-bf78b1ac.js"),["static/js/basic-bf78b1ac.js","static/js/index.esm-5f7e82d9.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-a03a5871.js"),["static/js/index-a03a5871.js","static/js/basic-bf78b1ac.js","static/js/index.esm-5f7e82d9.js","static/css/basic-d842f1a0.css","static/js/menuGroup-d8f55573.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-74ca40c3.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-74ca40c3.js"),["static/js/menuDynamic-74ca40c3.js","static/js/index.esm-5f7e82d9.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-d8f55573.js"),["static/js/menuGroup-d8f55573.js","static/js/index.esm-5f7e82d9.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-2de6cbba.js"),["static/js/index-2de6cbba.js","static/js/propTypes-3b04af70.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-0cf61326.js"),["static/js/index-0cf61326.js","static/css/index-fdfcfa11.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-6db1a671.js"),["static/js/index-6db1a671.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form-3db79974.js"),["static/js/form-3db79974.js","static/js/form.vue_vue_type_script_setup_true_lang-09c1a908.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-2becfc6d.js"),["static/js/index-2becfc6d.js","static/js/message-e7058037.js","static/js/form.vue_vue_type_script_setup_true_lang-09c1a908.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-5d9c3f8a.js"),["static/js/index-5d9c3f8a.js","static/js/sortable.esm-e674cde8.js","static/js/app-59bc21db.js","static/js/hooks-aba0b55f.js","static/css/index-b2ddca14.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-41e47172.js"),["static/js/index-41e47172.js","static/js/styles-acfc4bb0.js","static/js/vue.runtime.esm-bundler-cd1dc4b3.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-e1b3e99c.js"),["static/js/index-e1b3e99c.js","static/css/index-c6f744fa.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-f3f5de95.js"),["static/js/index-f3f5de95.js","static/js/message-e7058037.js","static/js/hooks-aba0b55f.js","static/js/check-3815600c.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-9fbe6251.js"),["static/js/index-9fbe6251.js","static/js/index-a673ae73.js","static/css/index-53a917f7.css"]),"/src/views/components/segmented/index.vue":()=>__vitePreload(()=>import("./index-c4027c2d.js"),["static/js/index-c4027c2d.js","static/js/message-e7058037.js","static/js/home-filled-05cc090c.js","static/js/hooks-aba0b55f.js","static/css/index-fa517f4b.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-edce80ce.js"),["static/js/index-edce80ce.js","static/css/index-ea4ab5c7.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-8d237a93.js"),["static/js/index-8d237a93.js","static/css/index-e0a7f2a0.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-2a5eb939.js"),["static/js/index-2a5eb939.js","static/js/index-72429d40.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-c4f55e18.js"),["static/js/index-c4f55e18.js","static/js/hooks-aba0b55f.js","static/css/index-12dd4e77.css"]),"/src/views/components/waterfall/index.vue":()=>__vitePreload(()=>import("./index-88a29dad.js"),["static/js/index-88a29dad.js","static/js/back_top-42f00038.js","static/css/index-d102724b.css"]),"/src/views/editor/components/base.vue":()=>__vitePreload(()=>import("./base-6ea1d807.js"),["static/js/base-6ea1d807.js","static/js/base.vue_vue_type_script_setup_true_lang-782aaf52.js","static/js/index.esm-c84bd949.js","static/css/index-f38a3df6.css"]),"/src/views/editor/components/multi.vue":()=>__vitePreload(()=>import("./multi-e2f6da52.js"),["static/js/multi-e2f6da52.js","static/js/multi.vue_vue_type_script_setup_true_lang-132bea65.js","static/js/index-f9da324a.js","static/js/index.esm-c84bd949.js","static/css/index-f38a3df6.css"]),"/src/views/editor/components/picUpload.vue":()=>__vitePreload(()=>import("./picUpload-c572d1a9.js"),["static/js/picUpload-c572d1a9.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-f0cf7e5a.js","static/js/index.esm-c84bd949.js","static/css/index-f38a3df6.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-91b10e66.js"),["static/js/index-91b10e66.js","static/js/base.vue_vue_type_script_setup_true_lang-782aaf52.js","static/js/index.esm-c84bd949.js","static/css/index-f38a3df6.css","static/js/multi.vue_vue_type_script_setup_true_lang-132bea65.js","static/js/index-f9da324a.js","static/js/picUpload.vue_vue_type_script_setup_true_lang-f0cf7e5a.js","static/css/index-2bb08053.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-3dc16716.js"),["static/js/index-3dc16716.js","static/css/index-18755a0a.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-eeb076fc.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-c2220151.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-fc188382.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-0f59b6e1.js"),["static/js/index-0f59b6e1.js","static/js/hooks-aba0b55f.js","static/js/styles-acfc4bb0.js","static/js/vue.runtime.esm-bundler-cd1dc4b3.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-97309e90.js"),["static/js/index-97309e90.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-71b1b1ef.js"),["static/js/Card-71b1b1ef.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-3504961e.js"),["static/js/DialogForm-3504961e.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-71c976cb.js","static/js/message-e7058037.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-9a2b331d.js"),["static/js/index-9a2b331d.js","static/js/Card-71b1b1ef.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/list-ce288a5a.js","static/js/message-e7058037.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-71c976cb.js","static/js/hooks-aba0b55f.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-c49144af.js"),["static/js/phone-c49144af.js","static/js/phone.vue_vue_type_script_setup_true_lang-d111fd25.js","static/js/motion-6a0054db.js","static/js/message-e7058037.js","static/js/verifyCode-61f1ffa1.js","static/js/hooks-aba0b55f.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-c06e39d5.js"),["static/js/qrCode-c06e39d5.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-022ca68f.js","static/js/motion-6a0054db.js","static/js/index-6e426a04.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-692ce82e.js"),["static/js/regist-692ce82e.js","static/js/regist.vue_vue_type_script_setup_true_lang-2e0a181f.js","static/js/motion-6a0054db.js","static/js/message-e7058037.js","static/js/verifyCode-61f1ffa1.js","static/js/hooks-aba0b55f.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-1b2ef83d.js"),["static/js/update-1b2ef83d.js","static/js/update.vue_vue_type_script_setup_true_lang-f9c65d5c.js","static/js/motion-6a0054db.js","static/js/message-e7058037.js","static/js/verifyCode-61f1ffa1.js","static/js/hooks-aba0b55f.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-934f9bd8.js"),["static/js/index-934f9bd8.js","static/js/motion-6a0054db.js","static/js/message-e7058037.js","static/js/verifyCode-61f1ffa1.js","static/js/phone.vue_vue_type_script_setup_true_lang-d111fd25.js","static/js/hooks-aba0b55f.js","static/js/iphone-bcaa848c.js","static/js/index-72429d40.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-022ca68f.js","static/js/index-6e426a04.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-2e0a181f.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-f9c65d5c.js","static/js/dark-6a623626.js","static/js/epTheme-0ad53906.js","static/js/app-59bc21db.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-3d9435eb.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-3fa7f047.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-cb3494da.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-b58762c8.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-528e5c54.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-3223da36.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-607c7ac8.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-de6009f8.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-efb32869.js"),["static/js/base-efb32869.js","static/js/base.vue_vue_type_script_setup_true_lang-56153894.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-0e4b40b2.js"),["static/js/border-0e4b40b2.js","static/js/border.vue_vue_type_script_setup_true_lang-4ff0e291.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-0783f035.js"),["static/js/columns-0783f035.js","static/js/message-e7058037.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-06bdd1e0.js"),["static/js/index-06bdd1e0.js","static/js/index.vue_vue_type_script_setup_true_lang-9586efcb.js","static/js/columns-0783f035.js","static/js/message-e7058037.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-bd3605f0.js"),["static/js/customIndex-bd3605f0.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e7ae3570.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-794639e9.js"),["static/js/expand-794639e9.js","static/js/expand.vue_vue_type_script_setup_true_lang-233fe03e.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters-96086864.js"),["static/js/filters-96086864.js","static/js/filters.vue_vue_type_script_setup_true_lang-029b1d22.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn-fbf13fcb.js"),["static/js/fixColumn-fbf13fcb.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-58e6ed4c.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-462070cb.js"),["static/js/fixHeader-462070cb.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c0b42908.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-0504f95a.js"),["static/js/fluidHeight-0504f95a.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-a11ea56f.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-f4663891.js"),["static/js/groupHeader-f4663891.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-75edba8f.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-6124126a.js"),["static/js/columns-6124126a.js","static/js/message-e7058037.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-20f8e998.js"),["static/js/index-20f8e998.js","static/js/index.vue_vue_type_script_setup_true_lang-926f7de3.js","static/js/columns-6124126a.js","static/js/message-e7058037.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-63987b6c.js"),["static/js/imgPreview-63987b6c.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-ab742354.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-6c6824a5.js"),["static/js/layout-6c6824a5.js","static/js/layout.vue_vue_type_script_setup_true_lang-05aed511.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-bef68747.js"),["static/js/list-bef68747.js","static/js/base.vue_vue_type_script_setup_true_lang-56153894.js","static/js/data-ac1b689a.js","static/js/stripe.vue_vue_type_script_setup_true_lang-4c4cfe98.js","static/js/border.vue_vue_type_script_setup_true_lang-4ff0e291.js","static/js/status.vue_vue_type_style_index_0_lang-21a7995e.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c0b42908.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-58e6ed4c.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-a11ea56f.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-75edba8f.js","static/js/radio.vue_vue_type_script_setup_true_lang-cfe034ce.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-9bc3e2bc.js","static/js/sortable.vue_vue_type_script_setup_true_lang-87f3ac9f.js","static/js/filters.vue_vue_type_script_setup_true_lang-029b1d22.js","static/js/index.vue_vue_type_script_setup_true_lang-9586efcb.js","static/js/columns-0783f035.js","static/js/message-e7058037.js","static/js/index.vue_vue_type_script_setup_true_lang-926f7de3.js","static/js/columns-6124126a.js","static/js/expand.vue_vue_type_script_setup_true_lang-233fe03e.js","static/js/tree.vue_vue_type_script_setup_true_lang-3594308f.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-701c627a.js","static/js/merge.vue_vue_type_script_setup_true_lang-1738cce8.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e7ae3570.js","static/js/layout.vue_vue_type_script_setup_true_lang-05aed511.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-1753c229.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-ab742354.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge-0d5f1490.js"),["static/js/merge-0d5f1490.js","static/js/merge.vue_vue_type_script_setup_true_lang-1738cce8.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice-0cc25834.js"),["static/js/multipleChoice-0cc25834.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-9bc3e2bc.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp-c041e079.js"),["static/js/nestProp-c041e079.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-1753c229.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio-fe4f529d.js"),["static/js/radio-fe4f529d.js","static/js/radio.vue_vue_type_script_setup_true_lang-cfe034ce.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-99da459e.js"),["static/js/sortable-99da459e.js","static/js/sortable.vue_vue_type_script_setup_true_lang-87f3ac9f.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-d54e9067.js"),["static/js/status-d54e9067.js","static/js/status.vue_vue_type_style_index_0_lang-21a7995e.js","static/js/data-ac1b689a.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-8f590957.js"),["static/js/stripe-8f590957.js","static/js/stripe.vue_vue_type_script_setup_true_lang-4c4cfe98.js","static/js/data-ac1b689a.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow-58c8e2e7.js"),["static/js/totalRow-58c8e2e7.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-701c627a.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree-8926452a.js"),["static/js/tree-8926452a.js","static/js/tree.vue_vue_type_script_setup_true_lang-3594308f.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high-3663acb2.js"),["static/js/high-3663acb2.js","static/js/list-0fe5ef18.js","static/js/index.vue_vue_type_script_setup_true_lang-caeb6083.js","static/js/columns-6f507ddb.js","static/js/data-a73659d8.js","static/js/index.vue_vue_type_script_setup_true_lang-0a161e46.js","static/js/columns-079b79dd.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-89887d61.js","static/js/columns-07d341af.js","static/js/index.vue_vue_type_script_setup_true_lang-e81f1b88.js","static/js/columns-7c3d99e7.js","static/js/message-e7058037.js","static/js/index.vue_vue_type_script_setup_true_lang-3db1ea12.js","static/js/columns-534299f5.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-17fd2412.js","static/js/columns-14ebc97b.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-730b6882.js","static/js/columns-66b9d12a.js","static/js/index.vue_vue_type_script_setup_true_lang-3968bff6.js","static/js/columns-479202be.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-a22d6ed4.js","static/js/columns-5fb3cfd4.js","static/js/index-a673ae73.js","static/js/index.vue_vue_type_script_setup_true_lang-ab5f51ef.js","static/js/index.vue_vue_type_script_setup_true_lang-099b02b1.js","static/js/columns-0f4e8632.js","static/js/index.vue_vue_type_script_setup_true_lang-5f187337.js","static/js/columns-60da8c7b.js","static/css/high-5bc3f1f1.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-7c3d99e7.js"),["static/js/columns-7c3d99e7.js","static/js/data-a73659d8.js","static/js/message-e7058037.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-b8220f88.js"),["static/js/index-b8220f88.js","static/js/index.vue_vue_type_script_setup_true_lang-e81f1b88.js","static/js/columns-7c3d99e7.js","static/js/data-a73659d8.js","static/js/message-e7058037.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-07d341af.js"),["static/js/columns-07d341af.js","static/js/sortable.esm-e674cde8.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-2ee2f62b.js"),["static/js/index-2ee2f62b.js","static/js/index.vue_vue_type_script_setup_true_lang-89887d61.js","static/js/columns-07d341af.js","static/js/sortable.esm-e674cde8.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-079b79dd.js"),["static/js/columns-079b79dd.js","static/js/sortable.esm-e674cde8.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-abc56e93.js"),["static/js/index-abc56e93.js","static/js/index.vue_vue_type_script_setup_true_lang-0a161e46.js","static/js/columns-079b79dd.js","static/js/sortable.esm-e674cde8.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-5fb3cfd4.js"),["static/js/columns-5fb3cfd4.js","static/js/data-a73659d8.js","static/js/message-e7058037.js","static/js/index-a673ae73.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-046f7907.js"),["static/js/index-046f7907.js","static/js/index.vue_vue_type_script_setup_true_lang-a22d6ed4.js","static/js/columns-5fb3cfd4.js","static/js/data-a73659d8.js","static/js/message-e7058037.js","static/js/index-a673ae73.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-14ebc97b.js"),["static/js/columns-14ebc97b.js","static/js/data-a73659d8.js","static/js/message-e7058037.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-4f16f4f5.js"),["static/js/index-4f16f4f5.js","static/js/index.vue_vue_type_script_setup_true_lang-17fd2412.js","static/js/columns-14ebc97b.js","static/js/data-a73659d8.js","static/js/message-e7058037.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-534299f5.js"),["static/js/columns-534299f5.js","static/js/xlsx-f5126985.js","static/js/data-a73659d8.js","static/js/message-e7058037.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-97abe9c0.js"),["static/js/index-97abe9c0.js","static/js/index.vue_vue_type_script_setup_true_lang-3db1ea12.js","static/js/columns-534299f5.js","static/js/xlsx-f5126985.js","static/js/data-a73659d8.js","static/js/message-e7058037.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-0fe5ef18.js"),["static/js/list-0fe5ef18.js","static/js/index.vue_vue_type_script_setup_true_lang-caeb6083.js","static/js/columns-6f507ddb.js","static/js/data-a73659d8.js","static/js/index.vue_vue_type_script_setup_true_lang-0a161e46.js","static/js/columns-079b79dd.js","static/js/sortable.esm-e674cde8.js","static/js/index.vue_vue_type_script_setup_true_lang-89887d61.js","static/js/columns-07d341af.js","static/js/index.vue_vue_type_script_setup_true_lang-e81f1b88.js","static/js/columns-7c3d99e7.js","static/js/message-e7058037.js","static/js/index.vue_vue_type_script_setup_true_lang-3db1ea12.js","static/js/columns-534299f5.js","static/js/xlsx-f5126985.js","static/js/index.vue_vue_type_script_setup_true_lang-17fd2412.js","static/js/columns-14ebc97b.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-730b6882.js","static/js/columns-66b9d12a.js","static/js/index.vue_vue_type_script_setup_true_lang-3968bff6.js","static/js/columns-479202be.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-a22d6ed4.js","static/js/columns-5fb3cfd4.js","static/js/index-a673ae73.js","static/js/index.vue_vue_type_script_setup_true_lang-ab5f51ef.js","static/js/index.vue_vue_type_script_setup_true_lang-099b02b1.js","static/js/columns-0f4e8632.js","static/js/index.vue_vue_type_script_setup_true_lang-5f187337.js","static/js/columns-60da8c7b.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-6f507ddb.js"),["static/js/columns-6f507ddb.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-4e7c459a.js"),["static/js/index-4e7c459a.js","static/js/index.vue_vue_type_script_setup_true_lang-caeb6083.js","static/js/columns-6f507ddb.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-479202be.js"),["static/js/columns-479202be.js","static/js/print-a6e42845.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-18d7ee5d.js"),["static/js/index-18d7ee5d.js","static/js/index.vue_vue_type_script_setup_true_lang-3968bff6.js","static/js/columns-479202be.js","static/js/print-a6e42845.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-af5c4c25.js"),["static/js/index-af5c4c25.js","static/js/index.vue_vue_type_script_setup_true_lang-ab5f51ef.js","static/js/index.vue_vue_type_script_setup_true_lang-099b02b1.js","static/js/columns-0f4e8632.js","static/js/message-e7058037.js","static/js/data-a73659d8.js","static/js/index.vue_vue_type_script_setup_true_lang-5f187337.js","static/js/columns-60da8c7b.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-60da8c7b.js"),["static/js/columns-60da8c7b.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-faaad993.js"),["static/js/index-faaad993.js","static/js/index.vue_vue_type_script_setup_true_lang-5f187337.js","static/js/columns-60da8c7b.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-0f4e8632.js"),["static/js/columns-0f4e8632.js","static/js/message-e7058037.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-524e1d36.js"),["static/js/index-524e1d36.js","static/js/index.vue_vue_type_script_setup_true_lang-099b02b1.js","static/js/columns-0f4e8632.js","static/js/message-e7058037.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-66b9d12a.js"),["static/js/columns-66b9d12a.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-2f85c064.js"),["static/js/index-2f85c064.js","static/js/index.vue_vue_type_script_setup_true_lang-730b6882.js","static/js/columns-66b9d12a.js","static/js/data-a73659d8.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-d835e6f7.js"),["static/js/index-d835e6f7.js","static/js/list-bef68747.js","static/js/base.vue_vue_type_script_setup_true_lang-56153894.js","static/js/data-ac1b689a.js","static/js/stripe.vue_vue_type_script_setup_true_lang-4c4cfe98.js","static/js/border.vue_vue_type_script_setup_true_lang-4ff0e291.js","static/js/status.vue_vue_type_style_index_0_lang-21a7995e.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c0b42908.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-58e6ed4c.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-a11ea56f.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-75edba8f.js","static/js/radio.vue_vue_type_script_setup_true_lang-cfe034ce.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-9bc3e2bc.js","static/js/sortable.vue_vue_type_script_setup_true_lang-87f3ac9f.js","static/js/filters.vue_vue_type_script_setup_true_lang-029b1d22.js","static/js/index.vue_vue_type_script_setup_true_lang-9586efcb.js","static/js/columns-0783f035.js","static/js/message-e7058037.js","static/js/index.vue_vue_type_script_setup_true_lang-926f7de3.js","static/js/columns-6124126a.js","static/js/expand.vue_vue_type_script_setup_true_lang-233fe03e.js","static/js/tree.vue_vue_type_script_setup_true_lang-3594308f.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-701c627a.js","static/js/merge.vue_vue_type_script_setup_true_lang-1738cce8.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e7ae3570.js","static/js/layout.vue_vue_type_script_setup_true_lang-05aed511.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-1753c229.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-ab742354.js","static/css/index-c6b6432d.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns-150910e5.js"),["static/js/columns-150910e5.js","static/js/arrow-right-s-line-2977cc7e.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail-2ce50e6f.js"),["static/js/fail-2ce50e6f.js","static/js/columns-150910e5.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-8e62f1c1.js"),["static/js/success-8e62f1c1.js","static/css/success-42084dfc.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form-82e10073.js"),["static/js/form-82e10073.js","static/js/form.vue_vue_type_script_setup_true_lang-cb0817c3.js","static/js/index-f9da324a.js","static/js/hooks-f6c304d3.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-d61b3489.js"),["static/js/index-d61b3489.js","static/js/hook-953b023b.js","static/js/form.vue_vue_type_script_setup_true_lang-cb0817c3.js","static/js/index-f9da324a.js","static/js/hooks-f6c304d3.js","static/js/message-e7058037.js","static/js/system-d8bb4726.js","static/js/refresh-e7b2b705.js","static/js/epTheme-0ad53906.js","static/js/sortable.esm-e674cde8.js","static/js/hooks-aba0b55f.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-953b023b.js"),["static/js/hook-953b023b.js","static/js/form.vue_vue_type_script_setup_true_lang-cb0817c3.js","static/js/index-f9da324a.js","static/js/hooks-f6c304d3.js","static/js/message-e7058037.js","static/js/system-d8bb4726.js"]),"/src/views/system/role/form.vue":()=>__vitePreload(()=>import("./form-002553c5.js"),["static/js/form-002553c5.js","static/js/form.vue_vue_type_script_setup_true_lang-61f553a8.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-4ca6a0d7.js"),["static/js/index-4ca6a0d7.js","static/js/hook-5d64d9ce.js","static/js/form.vue_vue_type_script_setup_true_lang-61f553a8.js","static/js/message-e7058037.js","static/js/system-d8bb4726.js","static/js/hooks-f6c304d3.js","static/js/refresh-e7b2b705.js","static/js/epTheme-0ad53906.js","static/js/sortable.esm-e674cde8.js","static/js/hooks-aba0b55f.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-5d64d9ce.js"),["static/js/hook-5d64d9ce.js","static/js/form.vue_vue_type_script_setup_true_lang-61f553a8.js","static/js/message-e7058037.js","static/js/system-d8bb4726.js","static/js/hooks-f6c304d3.js"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-b856ce65.js"),["static/js/hook-b856ce65.js","static/js/message-e7058037.js","static/js/system-d8bb4726.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-91049f58.js"),["static/js/index-91049f58.js","static/js/tree-b97ce4e2.js","static/js/system-d8bb4726.js","static/js/hooks-aba0b55f.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-b856ce65.js","static/js/message-e7058037.js","static/js/refresh-e7b2b705.js","static/js/epTheme-0ad53906.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-b97ce4e2.js"),["static/js/tree-b97ce4e2.js","static/js/system-d8bb4726.js","static/js/hooks-aba0b55f.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-c1968f23.js"),["static/js/index-c1968f23.js","static/js/hooks-b2a88ad3.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-97cad927.js"),["static/js/params-detail-97cad927.js","static/js/hooks-b2a88ad3.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-2ea49d0e.js"),["static/js/query-detail-2ea49d0e.js","static/js/hooks-b2a88ad3.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-a1e876f3.js"),["static/js/Bar-a1e876f3.js","static/js/Bar.vue_vue_type_script_setup_true_lang-11253865.js","static/js/app-59bc21db.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github-a3181ab9.js"),["static/js/Github-a3181ab9.js","static/js/Github.vue_vue_type_script_setup_true_lang-65e20b0c.js","static/js/columns-abd9d140.js","static/js/index-72429d40.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-2d46c428.js"),["static/js/Line-2d46c428.js","static/js/Line.vue_vue_type_script_setup_true_lang-6ac7d253.js","static/js/app-59bc21db.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-6e043599.js"),["static/js/Pie-6e043599.js","static/js/Pie.vue_vue_type_script_setup_true_lang-17e99927.js","static/js/app-59bc21db.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns-abd9d140.js"),["static/js/columns-abd9d140.js","static/js/index-72429d40.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-d1e136ae.js"),["static/js/index-d1e136ae.js","static/js/Bar.vue_vue_type_script_setup_true_lang-11253865.js","static/js/app-59bc21db.js","static/js/Pie.vue_vue_type_script_setup_true_lang-17e99927.js","static/js/Line.vue_vue_type_script_setup_true_lang-6ac7d253.js","static/js/list-ce288a5a.js","static/js/index-72429d40.js","static/js/index-a673ae73.js","static/js/Github.vue_vue_type_script_setup_true_lang-65e20b0c.js","static/js/columns-abd9d140.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-fc14d474.js","static/css/index-18417f34.css","static/css/index-dba21543.css"])});function handRank($){const{name:z,path:ie,parentId:le,meta:ue}=$;return P$1(le)?!!(P$1(ue==null?void 0:ue.rank)||(ue==null?void 0:ue.rank)===0&&z!=="Home"&&ie!=="/"):!1}function ascending($){return $.forEach((z,ie)=>{handRank(z)&&(z.meta.rank=ie+2)}),$.sort((z,ie)=>(z==null?void 0:z.meta.rank)-(ie==null?void 0:ie.meta.rank))}function filterTree($){const z=tn($).filter(ie=>{var le;return((le=ie.meta)==null?void 0:le.showLink)!==!1});return z.forEach(ie=>ie.children&&(ie.children=filterTree(ie.children))),z}function filterChildrenTree($){const z=tn($).filter(ie=>{var le;return((le=ie==null?void 0:ie.children)==null?void 0:le.length)!==0});return z.forEach(ie=>ie.children&&(ie.children=filterTree(ie.children))),z}function isOneOfArray($,z){return Array.isArray($)&&Array.isArray(z)?wr($,z).length>0:!0}function filterNoPermissionTree($){var le;const z=((le=er().getItem(sessionKey))==null?void 0:le.roles)??[],ie=tn($).filter(ue=>{var pe;return isOneOfArray((pe=ue.meta)==null?void 0:pe.roles,z)});return ie.forEach(ue=>ue.children&&(ue.children=filterNoPermissionTree(ue.children))),filterChildrenTree(ie)}function getParentPaths($,z,ie="path"){function le(ue,pe,_e){for(let Ce=0;Ce<ue.length;Ce++){const $e=ue[Ce];if($e[ie]===pe)return _e;if(!(!$e.children||!$e.children.length)){if(_e.push($e.path),le($e.children,pe,_e).length)return _e;_e.pop()}}return[]}return le(z,$,[])}function findRouteByPath($,z){let ie=z.find(le=>le.path==$);if(ie)return isProxy(ie)?toRaw(ie):ie;for(let le=0;le<z.length;le++)if(z[le].children instanceof Array&&z[le].children.length>0&&(ie=findRouteByPath($,z[le].children),ie))return isProxy(ie)?toRaw(ie):ie;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(ie=>ie.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 ie=router.getRoutes().find(le=>le.path==="/");router.addRoute(ie)}}),usePermissionStoreHook().handleWholeMenus($),addPathMatch()}function initRouter(){var $;if(($=getConfig())!=null&&$.CachingAsyncRoutes){const z="async-routes",ie=er().getItem(z);return ie&&(ie==null?void 0:ie.length)>0?new Promise(le=>{handleAsyncRoutes(ie),le(router)}):new Promise(le=>{getAsyncRoutes().then(({data:ue})=>{handleAsyncRoutes(tn(ue)),er().setItem(z,ue),le(router)})})}else return new Promise(z=>{getAsyncRoutes().then(({data:ie})=>{handleAsyncRoutes(tn(ie)),z(router)})})}function formatFlatteningRoutes($){if($.length===0)return $;let z=buildHierarchyTree($);for(let ie=0;ie<z.length;ie++)z[ie].children&&(z=z.slice(0,ie+1).concat(z[ie].children,z.slice(ie+1)));return z}function formatTwoStageRoutes($){if($.length===0)return $;const z=[];return $.forEach(ie=>{var le;ie.path==="/"?z.push({component:ie.component,name:ie.name,path:ie.path,redirect:ie.redirect,meta:ie.meta,children:[]}):(le=z[0])==null||le.children.push({...ie})}),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(ie=>{var le;if(ie.meta.backstage=!0,ie!=null&&ie.children&&ie.children.length&&!ie.redirect&&(ie.redirect=ie.children[0].path),ie!=null&&ie.children&&ie.children.length&&!ie.name&&(ie.name=ie.children[0].name+"Parent"),(le=ie.meta)!=null&&le.frameSrc)ie.component=IFrame;else{const ue=ie!=null&&ie.component?z.findIndex(pe=>pe.includes(ie.component)):z.findIndex(pe=>pe.includes(ie.path));ie.component=modulesRoutes[z[ue]]}ie!=null&&ie.children&&ie.children.length&&addAsyncRoutes(ie.children)}),$}function getHistoryMode($){const z=$.split(","),ie=z[0],le=z[1];if(z.length===1){if(ie==="hash")return createWebHashHistory("");if(ie==="h5")return createWebHistory("")}else if(z.length===2){if(ie==="hash")return createWebHashHistory(le);if(ie==="h5")return createWebHistory(le)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth($){if(!$)return!1;const z=getAuths();return z?!!(C($)?z.includes($):xr($,z)):!1}function getTopMenu($=!1){var ie;const z=(ie=usePermissionStoreHook().wholeMenus[0])==null?void 0:ie.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 ie=this.cachePageList.findIndex(le=>le===z);switch($){case"refresh":this.cachePageList=this.cachePageList.filter(le=>le!==z);break;case"add":this.cachePageList.push(z);break;case"delete":ie!==-1&&this.cachePageList.splice(ie,1);break}(()=>{let le=this.cachePageList.length;const ue=Tr(useMultiTagsStoreHook().multiTags,"name");for(;le>0;)ue.findIndex(pe=>pe===this.cachePageList[le-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[le-1]),1),le--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-60a51931.js"),["static/js/index-60a51931.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-6a623626.js","static/js/epTheme-0ad53906.js","static/js/app-59bc21db.js","static/js/index-a673ae73.js","static/js/hooks-aba0b55f.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-42f00038.js","static/css/index-06b0d3b7.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-934f9bd8.js"),["static/js/index-934f9bd8.js","static/js/motion-6a0054db.js","static/js/message-e7058037.js","static/js/verifyCode-61f1ffa1.js","static/js/phone.vue_vue_type_script_setup_true_lang-d111fd25.js","static/js/hooks-aba0b55f.js","static/js/iphone-bcaa848c.js","static/js/index-72429d40.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-022ca68f.js","static/js/index-6e426a04.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-2e0a181f.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-f9c65d5c.js","static/js/dark-6a623626.js","static/js/epTheme-0ad53906.js","static/js/app-59bc21db.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-f75ce780.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-3dc16716.js"),["static/js/index-3dc16716.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,ie){return new Promise(le=>{if(ie)return ie;if(z.meta.saveSrollTop){const ue=document.documentElement.scrollTop||document.body.scrollTop;le({left:0,top:ue})}})}});function resetRouter(){router.getRoutes().forEach($=>{const{name:z,meta:ie}=$;z&&router.hasRoute(z)&&(ie!=null&&ie.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,ie)=>{var _e,Ce,$e;(_e=$.meta)!=null&&_e.keepAlive&&(handleAliveRoute($,"add"),(z.name===void 0||z.name==="Redirect")&&handleAliveRoute($));const le=er().getItem(sessionKey);NProgress.start();const ue=gt($==null?void 0:$.name);ue||$.matched.some(xe=>{if(!xe.meta.title)return"";const Ie=getConfig().Title;Ie?document.title=`${transformI18n(xe.meta.title)} | ${Ie}`:document.title=transformI18n(xe.meta.title)});function pe(){whiteList.includes($.fullPath)?ie(z.fullPath):ie()}le?((Ce=$.meta)!=null&&Ce.roles&&!isOneOfArray(($e=$.meta)==null?void 0:$e.roles,le==null?void 0:le.roles)&&ie({path:"/error/403"}),VITE_HIDE_HOME==="true"&&$.fullPath==="/welcome"&&ie({path:"/error/404"}),z!=null&&z.name?ue?(Mt($==null?void 0:$.name),NProgress.done()):pe():(usePermissionStoreHook().wholeMenus.length===0&&$.path!=="/login"&&initRouter().then(xe=>{var Ie,ze;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:Ue}=$,qe=findRouteByPath(Ue,xe.options.routes[0].children);if(getTopMenu(!0),qe&&((Ie=qe.meta)!=null&&Ie.title))if(P$1(qe.parentId)&&((ze=qe.meta)!=null&&ze.backstage)){const{path:Et,name:Lt,meta:hn}=qe.children[0];useMultiTagsStoreHook().handleTags("push",{path:Et,name:Lt,meta:hn})}else{const{path:Et,name:Lt,meta:hn}=qe;useMultiTagsStoreHook().handleTags("push",{path:Et,name:Lt,meta:hn})}}xe.push($.fullPath)}),pe())):$.path!=="/login"?whiteList.indexOf($.path)!==-1?ie():ie({path:"/login"}):ie()});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 ie=unref($);return(z=ie==null?void 0:ie.$el)!=null?z:ie}const defaultWindow=isClient?window:void 0;function useEventListener(...$){let z,ie,le,ue;if(isString$2($[0])?([ie,le,ue]=$,z=defaultWindow):[z,ie,le,ue]=$,!z)return noop$1;let pe=noop$1;const _e=watch(()=>unrefElement(z),$e=>{pe(),$e&&($e.addEventListener(ie,le,ue),pe=()=>{$e.removeEventListener(ie,le,ue),pe=noop$1})},{immediate:!0,flush:"post"}),Ce=()=>{_e(),pe()};return tryOnScopeDispose(Ce),Ce}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,ie={}){const{root:le,rootMargin:ue="0px",threshold:pe=.1,window:_e=defaultWindow}=ie,Ce=_e&&"IntersectionObserver"in _e;let $e=noop$1;const xe=Ce?watch(()=>({el:unrefElement($),root:unrefElement(le)}),({el:ze,root:Ue})=>{if($e(),!ze)return;const qe=new IntersectionObserver(z,{root:Ue,rootMargin:ue,threshold:pe});qe.observe(ze),$e=()=>{qe.disconnect(),$e=noop$1}},{immediate:!0,flush:"post"}):noop$1,Ie=()=>{$e(),xe()};return tryOnScopeDispose(Ie),{isSupported:Ce,stop:Ie}}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=[],ie=[],le=0,ue=!1,pe=!1;const _e=new WeakSet,Ce={schedule:($e,xe=!1,Ie=!1)=>{const ze=Ie&&ue,Ue=ze?z:ie;return xe&&_e.add($e),Ue.indexOf($e)===-1&&(Ue.push($e),ze&&ue&&(le=z.length)),$e},cancel:$e=>{const xe=ie.indexOf($e);xe!==-1&&ie.splice(xe,1),_e.delete($e)},process:$e=>{if(ue){pe=!0;return}if(ue=!0,[z,ie]=[ie,z],ie.length=0,le=z.length,le)for(let xe=0;xe<le;xe++){const Ie=z[xe];Ie($e),_e.has(Ie)&&(Ce.schedule(Ie),$())}ue=!1,pe&&(pe=!1,Ce.process($e))}};return Ce}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 ie=steps[z];return $[z]=(le,ue=!1,pe=!1)=>(runNextFrame||startLoop(),ie.schedule(le,ue,pe)),$},{}),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 ie={};for(var le in $)Object.prototype.hasOwnProperty.call($,le)&&z.indexOf(le)<0&&(ie[le]=$[le]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,le=Object.getOwnPropertySymbols($);ue<le.length;ue++)z.indexOf(le[ue])<0&&Object.prototype.propertyIsEnumerable.call($,le[ue])&&(ie[le[ue]]=$[le[ue]]);return ie}var warning=function(){},invariant=function(){};const clamp$2=($,z,ie)=>Math.min(Math.max(ie,$),z),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:$=800,bounce:z=.25,velocity:ie=0,mass:le=1}){let ue,pe;warning($<=maxDuration*1e3);let _e=1-z;_e=clamp$2(minDamping,maxDamping,_e),$=clamp$2(minDuration,maxDuration,$/1e3),_e<1?(ue=xe=>{const Ie=xe*_e,ze=Ie*$,Ue=Ie-ie,qe=calcAngularFreq(xe,_e),Et=Math.exp(-ze);return safeMin-Ue/qe*Et},pe=xe=>{const ze=xe*_e*$,Ue=ze*ie+ie,qe=Math.pow(_e,2)*Math.pow(xe,2)*$,Et=Math.exp(-ze),Lt=calcAngularFreq(Math.pow(xe,2),_e);return(-ue(xe)+safeMin>0?-1:1)*((Ue-qe)*Et)/Lt}):(ue=xe=>{const Ie=Math.exp(-xe*$),ze=(xe-ie)*$+1;return-safeMin+Ie*ze},pe=xe=>{const Ie=Math.exp(-xe*$),ze=(ie-xe)*($*$);return Ie*ze});const Ce=5/$,$e=approximateRoot(ue,pe,Ce);if($=$*1e3,isNaN($e))return{stiffness:100,damping:10,duration:$};{const xe=Math.pow($e,2)*le;return{stiffness:xe,damping:_e*2*Math.sqrt(le*xe),duration:$}}}const rootIterations=12;function approximateRoot($,z,ie){let le=ie;for(let ue=1;ue<rootIterations;ue++)le=le-$(le)/z(le);return le}function calcAngularFreq($,z){return $*Math.sqrt(1-z*z)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType($,z){return z.some(ie=>$[ie]!==void 0)}function getSpringOptions($){let z=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},$);if(!isSpringType($,physicsKeys)&&isSpringType($,durationKeys)){const ie=findSpring($);z=Object.assign(Object.assign(Object.assign({},z),ie),{velocity:0,mass:1}),z.isResolvedFromDuration=!0}return z}function spring($){var{from:z=0,to:ie=1,restSpeed:le=2,restDelta:ue}=$,pe=__rest($,["from","to","restSpeed","restDelta"]);const _e={done:!1,value:z};let{stiffness:Ce,damping:$e,mass:xe,velocity:Ie,duration:ze,isResolvedFromDuration:Ue}=getSpringOptions(pe),qe=zero,Et=zero;function Lt(){const hn=Ie?-(Ie/1e3):0,vn=ie-z,_n=$e/(2*Math.sqrt(Ce*xe)),bn=Math.sqrt(Ce/xe)/1e3;if(ue===void 0&&(ue=Math.min(Math.abs(ie-z)/100,.4)),_n<1){const Sn=calcAngularFreq(bn,_n);qe=Cn=>{const En=Math.exp(-_n*bn*Cn);return ie-En*((hn+_n*bn*vn)/Sn*Math.sin(Sn*Cn)+vn*Math.cos(Sn*Cn))},Et=Cn=>{const En=Math.exp(-_n*bn*Cn);return _n*bn*En*(Math.sin(Sn*Cn)*(hn+_n*bn*vn)/Sn+vn*Math.cos(Sn*Cn))-En*(Math.cos(Sn*Cn)*(hn+_n*bn*vn)-Sn*vn*Math.sin(Sn*Cn))}}else if(_n===1)qe=Sn=>ie-Math.exp(-bn*Sn)*(vn+(hn+bn*vn)*Sn);else{const Sn=bn*Math.sqrt(_n*_n-1);qe=Cn=>{const En=Math.exp(-_n*bn*Cn),$n=Math.min(Sn*Cn,300);return ie-En*((hn+_n*bn*vn)*Math.sinh($n)+Sn*vn*Math.cosh($n))/Sn}}}return Lt(),{next:hn=>{const vn=qe(hn);if(Ue)_e.done=hn>=ze;else{const _n=Et(hn)*1e3,bn=Math.abs(_n)<=le,Sn=Math.abs(ie-vn)<=ue;_e.done=bn&&Sn}return _e.value=_e.done?ie:vn,_e},flipTarget:()=>{Ie=-Ie,[z,ie]=[ie,z],Lt()}}}spring.needsInterpolation=($,z)=>typeof $=="string"||typeof z=="string";const zero=$=>0,progress=($,z,ie)=>{const le=z-$;return le===0?1:(ie-$)/le},mix=($,z,ie)=>-ie*$+ie*z+$,clamp$1=($,z)=>ie=>Math.max(Math.min(ie,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)=>ie=>!!(isString$1(ie)&&singleColorRegex.test(ie)&&ie.startsWith($)||z&&Object.prototype.hasOwnProperty.call(ie,z)),splitColor=($,z,ie)=>le=>{if(!isString$1(le))return le;const[ue,pe,_e,Ce]=le.match(floatRegex);return{[$]:parseFloat(ue),[z]:parseFloat(pe),[ie]:parseFloat(_e),alpha:Ce!==void 0?parseFloat(Ce):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:$,saturation:z,lightness:ie,alpha:le=1})=>"hsla("+Math.round($)+", "+percent.transform(sanitize(z))+", "+percent.transform(sanitize(ie))+", "+sanitize(alpha.transform(le))+")"},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:ie,alpha:le=1})=>"rgba("+rgbUnit.transform($)+", "+rgbUnit.transform(z)+", "+rgbUnit.transform(ie)+", "+sanitize(alpha.transform(le))+")"};function parseHex($){let z="",ie="",le="",ue="";return $.length>5?(z=$.substr(1,2),ie=$.substr(3,2),le=$.substr(5,2),ue=$.substr(7,2)):(z=$.substr(1,1),ie=$.substr(2,1),le=$.substr(3,1),ue=$.substr(4,1),z+=z,ie+=ie,le+=le,ue+=ue),{red:parseInt(z,16),green:parseInt(ie,16),blue:parseInt(le,16),alpha:ue?parseInt(ue,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,ie,le,ue;return isNaN($)&&isString$1($)&&((ie=(z=$.match(floatRegex))===null||z===void 0?void 0:z.length)!==null&&ie!==void 0?ie:0)+((ue=(le=$.match(colorRegex))===null||le===void 0?void 0:le.length)!==null&&ue!==void 0?ue:0)>0}function analyse$1($){typeof $=="number"&&($=`${$}`);const z=[];let ie=0;const le=$.match(colorRegex);le&&(ie=le.length,$=$.replace(colorRegex,colorToken),z.push(...le.map(color$1.parse)));const ue=$.match(floatRegex);return ue&&($=$.replace(floatRegex,numberToken),z.push(...ue.map(number$1.parse))),{values:z,numColors:ie,tokenised:$}}function parse$2($){return analyse$1($).values}function createTransformer($){const{values:z,numColors:ie,tokenised:le}=analyse$1($),ue=z.length;return pe=>{let _e=le;for(let Ce=0;Ce<ue;Ce++)_e=_e.replace(Ce<ie?colorToken:numberToken,Ce<ie?color$1.transform(pe[Ce]):sanitize(pe[Ce]));return _e}}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,ie]=$.slice(0,-1).split("(");if(z==="drop-shadow")return $;const[le]=ie.match(floatRegex)||[];if(!le)return $;const ue=ie.replace(le,"");let pe=maxDefaults.has(z)?1:0;return le!==ie&&(pe*=100),z+"("+pe+ue+")"}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,ie){return ie<0&&(ie+=1),ie>1&&(ie-=1),ie<1/6?$+(z-$)*6*ie:ie<1/2?z:ie<2/3?$+(z-$)*(2/3-ie)*6:$}function hslaToRgba({hue:$,saturation:z,lightness:ie,alpha:le}){$/=360,z/=100,ie/=100;let ue=0,pe=0,_e=0;if(!z)ue=pe=_e=ie;else{const Ce=ie<.5?ie*(1+z):ie+z-ie*z,$e=2*ie-Ce;ue=hueToRgb($e,Ce,$+1/3),pe=hueToRgb($e,Ce,$),_e=hueToRgb($e,Ce,$-1/3)}return{red:Math.round(ue*255),green:Math.round(pe*255),blue:Math.round(_e*255),alpha:le}}const mixLinearColor=($,z,ie)=>{const le=$*$,ue=z*z;return Math.sqrt(Math.max(0,ie*(ue-le)+le))},colorTypes=[hex,rgba,hsla],getColorType=$=>colorTypes.find(z=>z.test($)),mixColor=($,z)=>{let ie=getColorType($),le=getColorType(z),ue=ie.parse($),pe=le.parse(z);ie===hsla&&(ue=hslaToRgba(ue),ie=rgba),le===hsla&&(pe=hslaToRgba(pe),le=rgba);const _e=Object.assign({},ue);return Ce=>{for(const $e in _e)$e!=="alpha"&&(_e[$e]=mixLinearColor(ue[$e],pe[$e],Ce));return _e.alpha=mix(ue.alpha,pe.alpha,Ce),ie.transform(_e)}},isNum=$=>typeof $=="number",combineFunctions=($,z)=>ie=>z($(ie)),pipe=(...$)=>$.reduce(combineFunctions);function getMixer($,z){return isNum($)?ie=>mix($,z,ie):color$1.test($)?mixColor($,z):mixComplex($,z)}const mixArray=($,z)=>{const ie=[...$],le=ie.length,ue=$.map((pe,_e)=>getMixer(pe,z[_e]));return pe=>{for(let _e=0;_e<le;_e++)ie[_e]=ue[_e](pe);return ie}},mixObject=($,z)=>{const ie=Object.assign(Object.assign({},$),z),le={};for(const ue in ie)$[ue]!==void 0&&z[ue]!==void 0&&(le[ue]=getMixer($[ue],z[ue]));return ue=>{for(const pe in le)ie[pe]=le[pe](ue);return ie}};function analyse($){const z=complex.parse($),ie=z.length;let le=0,ue=0,pe=0;for(let _e=0;_e<ie;_e++)le||typeof z[_e]=="number"?le++:z[_e].hue!==void 0?pe++:ue++;return{parsed:z,numNumbers:le,numRGB:ue,numHSL:pe}}const mixComplex=($,z)=>{const ie=complex.createTransformer(z),le=analyse($),ue=analyse(z);return le.numHSL===ue.numHSL&&le.numRGB===ue.numRGB&&le.numNumbers>=ue.numNumbers?pipe(mixArray(le.parsed,ue.parsed),ie):_e=>`${_e>0?z:$}`},mixNumber=($,z)=>ie=>mix($,z,ie);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,ie){const le=[],ue=ie||detectMixerFactory($[0]),pe=$.length-1;for(let _e=0;_e<pe;_e++){let Ce=ue($[_e],$[_e+1]);if(z){const $e=Array.isArray(z)?z[_e]:z;Ce=pipe($e,Ce)}le.push(Ce)}return le}function fastInterpolate([$,z],[ie]){return le=>ie(progress($,z,le))}function slowInterpolate($,z){const ie=$.length,le=ie-1;return ue=>{let pe=0,_e=!1;if(ue<=$[0]?_e=!0:ue>=$[le]&&(pe=le-1,_e=!0),!_e){let $e=1;for(;$e<ie&&!($[$e]>ue||$e===le);$e++);pe=$e-1}const Ce=progress($[pe],$[pe+1],ue);return z[pe](Ce)}}function interpolate($,z,{clamp:ie=!0,ease:le,mixer:ue}={}){const pe=$.length;invariant(pe===z.length),invariant(!le||!Array.isArray(le)||le.length===pe-1),$[0]>$[pe-1]&&($=[].concat($),z=[].concat(z),$.reverse(),z.reverse());const _e=createMixers(z,le,ue),Ce=pe===2?fastInterpolate($,_e):slowInterpolate($,_e);return ie?$e=>Ce(clamp$2($[0],$[pe-1],$e)):Ce}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 ie=>(ie*=2)<1?.5*z(ie):.5*(2-Math.pow(2,-10*(ie-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((ie,le)=>le!==0?le/(z-1):0)}function convertOffsetToTimes($,z){return $.map(ie=>ie*z)}function keyframes$1({from:$=0,to:z=1,ease:ie,offset:le,duration:ue=300}){const pe={done:!1,value:$},_e=Array.isArray(z)?z:[$,z],Ce=convertOffsetToTimes(le&&le.length===_e.length?le:defaultOffset(_e),ue);function $e(){return interpolate(Ce,_e,{ease:Array.isArray(ie)?ie:defaultEasing(_e,ie)})}let xe=$e();return{next:Ie=>(pe.value=xe(Ie),pe.done=Ie>=ue,pe),flipTarget:()=>{_e.reverse(),xe=$e()}}}function decay({velocity:$=0,from:z=0,power:ie=.8,timeConstant:le=350,restDelta:ue=.5,modifyTarget:pe}){const _e={done:!1,value:z};let Ce=ie*$;const $e=z+Ce,xe=pe===void 0?$e:pe($e);return xe!==$e&&(Ce=xe-z),{next:Ie=>{const ze=-Ce*Math.exp(-Ie/le);return _e.done=!(ze>ue||ze<-ue),_e.value=_e.done?xe:xe+ze,_e},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,ie=0){return $-z-ie}function reverseElapsed($,z,ie=0,le=!0){return le?loopElapsed(z+-$,z,ie):z-($-z)+ie}function hasRepeatDelayElapsed($,z,ie,le){return le?$>=z+ie:$<=-ie}const framesync=$=>{const z=({delta:ie})=>$(ie);return{start:()=>sync.update(z,!0),stop:()=>cancelSync.update(z)}};function animate($){var z,ie,{from:le,autoplay:ue=!0,driver:pe=framesync,elapsed:_e=0,repeat:Ce=0,repeatType:$e="loop",repeatDelay:xe=0,onPlay:Ie,onStop:ze,onComplete:Ue,onRepeat:qe,onUpdate:Et}=$,Lt=__rest($,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:hn}=Lt,vn,_n=0,bn=Lt.duration,Sn,Cn=!1,En=!0,$n;const wn=detectAnimationFromOptions(Lt);!((ie=(z=wn).needsInterpolation)===null||ie===void 0)&&ie.call(z,le,hn)&&($n=interpolate([0,100],[le,hn],{clamp:!1}),le=0,hn=100);const Tn=wn(Object.assign(Object.assign({},Lt),{from:le,to:hn}));function xn(){_n++,$e==="reverse"?(En=_n%2===0,_e=reverseElapsed(_e,bn,xe,En)):(_e=loopElapsed(_e,bn,xe),$e==="mirror"&&Tn.flipTarget()),Cn=!1,qe&&qe()}function Pn(){vn.stop(),Ue&&Ue()}function kn(Nn){if(En||(Nn=-Nn),_e+=Nn,!Cn){const Fn=Tn.next(Math.max(0,_e));Sn=Fn.value,$n&&(Sn=$n(Sn)),Cn=En?Fn.done:_e<=0}Et==null||Et(Sn),Cn&&(_n===0&&(bn??(bn=_e)),_n<Ce?hasRepeatDelayElapsed(_e,bn,xe,En)&&xn():Pn())}function An(){Ie==null||Ie(),vn=pe(kn),vn.start()}return ue&&An(),{stop:()=>{ze==null||ze(),vn.stop()}}}function velocityPerSecond($,z){return z?$*(1e3/z):0}function inertia({from:$=0,velocity:z=0,min:ie,max:le,power:ue=.8,timeConstant:pe=750,bounceStiffness:_e=500,bounceDamping:Ce=10,restDelta:$e=1,modifyTarget:xe,driver:Ie,onUpdate:ze,onComplete:Ue,onStop:qe}){let Et;function Lt(bn){return ie!==void 0&&bn<ie||le!==void 0&&bn>le}function hn(bn){return ie===void 0?le:le===void 0||Math.abs(ie-bn)<Math.abs(le-bn)?ie:le}function vn(bn){Et==null||Et.stop(),Et=animate(Object.assign(Object.assign({},bn),{driver:Ie,onUpdate:Sn=>{var Cn;ze==null||ze(Sn),(Cn=bn.onUpdate)===null||Cn===void 0||Cn.call(bn,Sn)},onComplete:Ue,onStop:qe}))}function _n(bn){vn(Object.assign({type:"spring",stiffness:_e,damping:Ce,restDelta:$e},bn))}if(Lt($))_n({from:$,velocity:z,to:hn($)});else{let bn=ue*z+$;typeof xe<"u"&&(bn=xe(bn));const Sn=hn(bn),Cn=Sn===ie?-1:1;let En,$n;const wn=Tn=>{En=$n,$n=Tn,z=velocityPerSecond(Tn-En,getFrameData().delta),(Cn===1&&Tn>Sn||Cn===-1&&Tn<Sn)&&_n({from:Tn,to:Sn,velocity:z})};vn({type:"decay",from:$,velocity:z,timeConstant:pe,power:ue,restDelta:$e,modifyTarget:xe,onUpdate:Lt(bn)?wn:void 0})}return{stop:()=>Et==null?void 0:Et.stop()}}const a=($,z)=>1-3*z+3*$,b=($,z)=>3*z-6*$,c$1=$=>3*$,calcBezier=($,z,ie)=>((a(z,ie)*$+b(z,ie))*$+c$1(z))*$,getSlope=($,z,ie)=>3*a(z,ie)*$*$+2*b(z,ie)*$+c$1(z),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide($,z,ie,le,ue){let pe,_e,Ce=0;do _e=z+(ie-z)/2,pe=calcBezier(_e,le,ue)-$,pe>0?ie=_e:z=_e;while(Math.abs(pe)>subdivisionPrecision&&++Ce<subdivisionMaxIterations);return _e}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate($,z,ie,le){for(let ue=0;ue<newtonIterations;++ue){const pe=getSlope(z,ie,le);if(pe===0)return z;const _e=calcBezier(z,ie,le)-$;z-=_e/pe}return z}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier($,z,ie,le){if($===z&&ie===le)return linear;const ue=new Float32Array(kSplineTableSize);for(let _e=0;_e<kSplineTableSize;++_e)ue[_e]=calcBezier(_e*kSampleStepSize,$,ie);function pe(_e){let Ce=0,$e=1;const xe=kSplineTableSize-1;for(;$e!==xe&&ue[$e]<=_e;++$e)Ce+=kSampleStepSize;--$e;const Ie=(_e-ue[$e])/(ue[$e+1]-ue[$e]),ze=Ce+Ie*kSampleStepSize,Ue=getSlope(ze,$,ie);return Ue>=newtonMinSlope?newtonRaphsonIterate(_e,ze,$,ie):Ue===0?ze:binarySubdivide(_e,Ce,Ce+kSampleStepSize,$,ie)}return _e=>_e===0||_e===1?_e:calcBezier(pe(_e),z,le)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(z){return this.subscriptions.add(z),()=>this.subscriptions.delete(z)}notify(z,ie,le){if(this.subscriptions.size)for(const ue of this.subscriptions)ue(z,ie,le)}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=ie=>{this.prev=this.current,this.current=ie;const{delta:le,timestamp:ue}=getFrameData();this.lastUpdated!==ue&&(this.timeDelta=le,this.lastUpdated=ue),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:ie})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),ie!==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(ie=>{const{stop:le}=z(ie);this.stopAnimation=le}).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=le=>{const ue=pe=>{$.value[pe]&&($.value[pe].stop(),$.value[pe].destroy(),del($.value,pe))};le?isArray$2(le)?le.forEach(ue):ue(le):Object.keys($.value).forEach(ue)},ie=(le,ue,pe)=>{if($.value[le])return $.value[le];const _e=getMotionValue(ue);return _e.onChange(Ce=>{set$2(pe,le,Ce)}),set$2($.value,le,_e),_e};return tryOnUnmounted(z),{motionValues:$,get:ie,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 ie;return isKeyframesTarget(z)?ie=keyframes:ie=defaultTransitions[$]||defaultTransitions.default,{to:z,...ie(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 ie=getValueType($);return ie!==filter$1&&(ie=complex),ie.getAnimatableNone?ie.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,ie,le,ue]=$;return cubicBezier(z,ie,le,ue)}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:ie,...le}){const ue={...le};return z&&(ue.offset=z),$&&(ue.ease=isEasingArray($)?$.map(easingDefinitionToFunction):easingDefinitionToFunction($)),ie&&(ue.elapsed=-ie),ue}function getPopmotionAnimationOptions($,z,ie){return Array.isArray(z.to)&&($.duration||($.duration=800)),hydrateKeyframes(z),isTransitionDefined($)||($={...$,...getDefaultTransition(ie,z.to)}),{...z,...convertTransitionToAnimationOptions($)}}function isTransitionDefined({delay:$,repeat:z,repeatType:ie,repeatDelay:le,from:ue,...pe}){return!!Object.keys(pe).length}function getValueTransition($,z){return $[z]||$.default||$}function getAnimation($,z,ie,le,ue){const pe=getValueTransition(le,$);let _e=pe.from===null||pe.from===void 0?z.get():pe.from;const Ce=isAnimatable($,ie);_e==="none"&&Ce&&typeof ie=="string"&&(_e=getAnimatableNone($,ie));const $e=isAnimatable($,_e);function xe(ze){const Ue={from:_e,to:ie,velocity:le.velocity?le.velocity:z.getVelocity(),onUpdate:qe=>z.set(qe)};return pe.type==="inertia"||pe.type==="decay"?inertia({...Ue,...pe}):animate({...getPopmotionAnimationOptions(pe,Ue,$),onUpdate:qe=>{Ue.onUpdate(qe),pe.onUpdate&&pe.onUpdate(qe)},onComplete:()=>{le.onComplete&&le.onComplete(),ue&&ue(),ze&&ze()}})}function Ie(ze){return z.set(ie),le.onComplete&&le.onComplete(),ue&&ue(),ze&&ze(),{stop:()=>{}}}return!$e||!Ce||pe.type===!1?Ie:xe}function useMotionTransitions(){const{motionValues:$,stop:z,get:ie}=useMotionValues();return{motionValues:$,stop:z,push:(ue,pe,_e,Ce={},$e)=>{const xe=_e[ue],Ie=ie(ue,xe,_e);if(Ce&&Ce.immediate){Ie.set(pe);return}const ze=getAnimation(ue,Ie,pe,Ce,$e);Ie.start(ze)}}}function useMotionControls($,z={},{motionValues:ie,push:le,stop:ue}=useMotionTransitions()){const pe=unref(z),_e=ref(!1),Ce=watch(ie,Ue=>{_e.value=Object.values(Ue).filter(qe=>qe.isAnimating()).length>0},{immediate:!0,deep:!0}),$e=Ue=>{if(!pe||!pe[Ue])throw new Error(`The variant ${Ue} does not exist.`);return pe[Ue]},xe=Ue=>(typeof Ue=="string"&&(Ue=$e(Ue)),Promise.all(Object.entries(Ue).map(([qe,Et])=>{if(qe!=="transition")return new Promise(Lt=>{le(qe,Et,$,Ue.transition||getDefaultTransition(qe,Ue[qe]),Lt)})}).filter(Boolean)));return{isAnimating:_e,apply:xe,set:Ue=>{const qe=isObject$4(Ue)?Ue:$e(Ue);Object.entries(qe).forEach(([Et,Lt])=>{Et!=="transition"&&le(Et,Lt,$,{immediate:!0})})},stopTransitions:()=>{Ce(),ue()},leave:async Ue=>{let qe;if(pe&&(pe.leave&&(qe=pe.leave),!pe.leave&&pe.initial&&(qe=pe.initial)),!qe){Ue();return}await xe(qe),Ue()}}}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:ie,apply:le}){const ue=unref(ie),pe=[],_e=(...Et)=>{const Lt=useEventListener.apply(null,Et);return pe.push(Lt),Lt},Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=computed(()=>{let Et=[];return ue&&(ue.hovered&&(Et=[...Et,...Object.keys(ue.hovered)]),ue.tapped&&(Et=[...Et,...Object.keys(ue.tapped)]),ue.focused&&(Et=[...Et,...Object.keys(ue.focused)])),Et}),ze=computed(()=>{const Et={};Object.assign(Et,z.value),Ce.value&&ue.hovered&&Object.assign(Et,ue.hovered),$e.value&&ue.tapped&&Object.assign(Et,ue.tapped),xe.value&&ue.focused&&Object.assign(Et,ue.focused);for(const Lt in Et)Ie.value.includes(Lt)||delete Et[Lt];return Et});ue.hovered&&(_e($,"mouseenter",()=>{Ce.value=!0}),_e($,"mouseleave",()=>{Ce.value=!1,$e.value=!1}),_e($,"mouseout",()=>{Ce.value=!1,$e.value=!1})),ue.tapped&&(supportsMouseEvents()&&(_e($,"mousedown",()=>{$e.value=!0}),_e($,"mouseup",()=>{$e.value=!1})),supportsPointerEvents()&&(_e($,"pointerdown",()=>{$e.value=!0}),_e($,"pointerup",()=>{$e.value=!1})),supportsTouchEvents()&&(_e($,"touchstart",()=>{$e.value=!0}),_e($,"touchend",()=>{$e.value=!1}))),ue.focused&&(_e($,"focus",()=>{xe.value=!0}),_e($,"blur",()=>{xe.value=!1}));const Ue=watch(ze,le);return{stop:()=>{pe.forEach(Et=>Et()),Ue()}}}function registerLifeCycleHooks({set:$,target:z,variants:ie,variant:le}){const ue=unref(ie);return{stop:watch(()=>z,()=>{ue&&(ue.initial&&$("initial"),ue.enter&&(le.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:$,apply:z}){return{stop:watch($,le=>{le&&z(le)},{immediate:!0})}}function registerVisibilityHooks({target:$,variants:z,variant:ie}){const le=unref(z);let ue=noop$1;if(le&&(le.visible||le.visibleOnce)){const{stop:pe}=useIntersectionObserver($,([{isIntersecting:_e}])=>{le.visible?_e?ie.value="visible":ie.value="initial":le.visibleOnce&&(_e?ie.value!=="visibleOnce"&&(ie.value="visibleOnce"):ie.value||(ie.value="initial"))});ue=pe}return{stop:ue}}function useMotionFeatures($,z={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const ie=ref([]);if(z.lifeCycleHooks){const{stop:ue}=registerLifeCycleHooks($);ie.value.push(ue)}if(z.syncVariants){const{stop:ue}=registerVariantsSync($);ie.value.push(ue)}if(z.visibilityHooks){const{stop:ue}=registerVisibilityHooks($);ie.value.push(ue)}if(z.eventListeners){const{stop:ue}=registerEventListeners($);ie.value.push(ue)}const le=()=>ie.value.forEach(ue=>ue());return tryOnUnmounted(le),{stop:le}}function reactiveStyle($={}){const z=reactive({...$}),ie=ref({});return watch(z,()=>{const le={};for(const[ue,pe]of Object.entries(z)){const _e=getValueType(ue),Ce=getValueAsType(pe,_e);le[ue]=Ce}ie.value=le},{immediate:!0,deep:!0}),{state:z,style:ie}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach($=>{transformAxes.forEach(z=>{const ie=$+z;transformProps.push(ie)})});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={},ie={};return Object.entries($).forEach(([le,ue])=>{isTransformProp(le)||isTransformOriginProp(le)?z[le]=ue:ie[le]=ue}),{transform:z,style:ie}}function useElementStyle($,z){let ie,le;const{state:ue,style:pe}=reactiveStyle(),_e=watch(()=>unrefElement($),xe=>{if(xe){le=xe;for(const Ie of Object.keys(valueTypes))xe.style[Ie]===null||xe.style[Ie]===""||isTransformProp(Ie)||isTransformOriginProp(Ie)||set$2(ue,Ie,xe.style[Ie]);ie&&Object.entries(ie).forEach(([Ie,ze])=>set$2(xe.style,Ie,ze)),z&&z(ue)}},{immediate:!0}),Ce=watch(pe,xe=>{if(!le){ie=xe;return}for(const Ie in xe)set$2(le.style,Ie,xe[Ie])},{immediate:!0});return{style:ue,stop:()=>{le=void 0,ie=void 0,_e(),Ce()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform($={},z=!0){const ie=reactive({...$}),le=ref("");return watch(ie,ue=>{let pe="",_e=!1;if(z&&(ue.x||ue.y||ue.z)){const Ce=[ue.x||0,ue.y||0,ue.z||0].map(px.transform).join(",");pe+=`translate3d(${Ce}) `,_e=!0}for(const[Ce,$e]of Object.entries(ue)){if(z&&(Ce==="x"||Ce==="y"||Ce==="z"))continue;const xe=getValueType(Ce),Ie=getValueAsType($e,xe);pe+=`${translateAlias[Ce]||Ce}(${Ie}) `}z&&!_e&&(pe+="translateZ(0px) "),le.value=pe.trim()},{immediate:!0,deep:!0}),{state:ie,transform:le}}function parseTransform($){const z=$.trim().split(/\) |\)/);if(z.length===1)return{};const ie=le=>le.endsWith("px")||le.endsWith("deg")?parseFloat(le):isNaN(Number(le))?Number(le):le;return z.reduce((le,ue)=>{if(!ue)return le;const[pe,_e]=ue.split("("),$e=_e.split(",").map(Ie=>ie(Ie.endsWith(")")?Ie.replace(")",""):Ie.trim())),xe=$e.length===1?$e[0]:$e;return{...le,[pe]:xe}},{})}function stateFromTransform($,z){Object.entries(parseTransform(z)).forEach(([ie,le])=>{le=parseFloat(le);const ue=["x","y","z"];if(ie==="translate3d"){if(le===0){ue.forEach(pe=>{set$2($,pe,0)});return}le.forEach((pe,_e)=>{set$2($,ue[_e],pe)});return}if(ie==="translateX"){set$2($,"x",le);return}if(ie==="translateY"){set$2($,"y",le);return}if(ie==="translateZ"){set$2($,"z",le);return}set$2($,ie,le)})}function useElementTransform($,z){let ie,le;const{state:ue,transform:pe}=reactiveTransform(),_e=watch(()=>unrefElement($),xe=>{xe&&(le=xe,xe.style.transform&&stateFromTransform(ue,xe.style.transform),ie&&(xe.style.transform=ie),z&&z(ue))},{immediate:!0}),Ce=watch(pe,xe=>{if(!le){ie=xe;return}le.style.transform=xe},{immediate:!0});return{transform:ue,stop:()=>{ie=void 0,le=void 0,_e(),Ce()}}}function useMotionProperties($,z){const ie=reactive({}),le=ze=>{Object.entries(ze).forEach(([Ue,qe])=>{set$2(ie,Ue,qe)})},{style:ue,stop:pe}=useElementStyle($,le),{transform:_e,stop:Ce}=useElementTransform($,le),$e=watch(ie,ze=>{Object.entries(ze).forEach(([Ue,qe])=>{const Et=isTransformProp(Ue)?_e:ue;Et[Ue]&&Et[Ue]===qe||set$2(Et,Ue,qe)})},{immediate:!0,deep:!0}),xe=watch(()=>unrefElement($),ze=>{ze&&z&&le(z)},{immediate:!0});return{motionProperties:ie,style:ue,transform:_e,stop:()=>{pe(),Ce(),$e(),xe()}}}function useMotionVariants($={}){const z=unref($),ie=ref();return{state:computed(()=>{if(ie.value)return z[ie.value]}),variant:ie}}function useMotion($,z={},ie){const{motionProperties:le,stop:ue}=useMotionProperties($),{variant:pe,state:_e}=useMotionVariants(z),Ce=useMotionControls(le,z),$e={target:$,variant:pe,variants:z,state:_e,motionProperties:le,...Ce,stop:(Ie=!1)=>{}},{stop:xe}=useMotionFeatures($e,ie);return $e.stop=(Ie=!1)=>{const ze=()=>{$e.stopTransitions(),ue(),xe()};if(!Ie&&z.value&&z.value.leave){const Ue=watch($e.isAnimating,qe=>{qe||(Ue(),ze())})}else ze()},tryOnUnmounted(()=>$e.stop()),$e}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=($,z)=>{const ie=$.props?$.props:$.data&&$.data.attrs?$.data.attrs:{};ie&&(ie.variants&&isObject$4(ie.variants)&&(z.value={...z.value,...ie.variants}),directivePropsKeys.forEach(le=>{if(le==="delay"){if(ie&&ie[le]&&isNumber$1(ie[le])){const ue=ie[le];z&&z.value&&(z.value.enter&&(z.value.enter.transition||(z.value.enter.transition={}),z.value.enter.transition={...z.value.enter.transition,delay:ue}),z.value.visible&&(z.value.visible.transition||(z.value.visible.transition={}),z.value.visible.transition={...z.value.visible.transition,delay:ue}),z.value.visibleOnce&&(z.value.visibleOnce.transition||(z.value.visibleOnce.transition={}),z.value.visibleOnce.transition={...z.value.visibleOnce.transition,delay:ue}))}return}le==="visible-once"&&(le="visibleOnce"),ie&&ie[le]&&isObject$4(ie[le])&&(z.value[le]=ie[le])}))},directive=$=>{const z=(le,ue,pe)=>{const _e=ue.value&&typeof ue.value=="string"?ue.value:pe.key;_e&&motionState[_e]&&motionState[_e].stop();const Ce=ref($||{});typeof ue.value=="object"&&(Ce.value=ue.value),resolveVariants(pe,Ce);const $e=useMotion(le,Ce);le.motionInstance=$e,_e&&set$2(motionState,_e,$e)},ie=le=>{le.motionInstance&&le.motionInstance.stop()};return{created:z,unmounted:ie,bind:z,unbind:ie,getSSRProps(le,ue){const{initial:pe}=le.value||ue.props||{};if(!pe||Object.keys(pe).length===0)return;const{transform:_e,style:Ce}=splitValues(pe),{transform:$e}=reactiveTransform(_e),{style:xe}=reactiveStyle(Ce);return $e.value&&(xe.value.transform=$e.value),{style:xe.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="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",ie="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",le=new RegExp(z.split("").join("|"),"g");return $.toString().replace(/[A-Z]/g,ue=>`-${ue}`).toLowerCase().replace(/\s+/g,"-").replace(le,ue=>ie.charAt(z.indexOf(ue))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install($,z){if($.directive("motion",directive()),!z||z&&!z.excludePresets)for(const ie in presets){const le=presets[ie];$.directive(`motion-${slugify(ie)}`,directive(le))}if(z&&z.directives)for(const ie in z.directives){const le=z.directives[ie];!le.initial&&__DEV__&&console.warn(`Your directive v-motion-${ie} is missing initial variant!`),$.directive(`motion-${ie}`,directive(le))}}};/*! *****************************************************************************
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(ie,le){ie.__proto__=le}||function(ie,le){for(var ue in le)Object.prototype.hasOwnProperty.call(le,ue)&&(ie[ue]=le[ue])},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 ie(){this.constructor=$}$.prototype=z===null?Object.create(z):(ie.prototype=z.prototype,new ie)}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 ie=z.browser,le=$.match(/Firefox\/([\d.]+)/),ue=$.match(/MSIE\s([\d.]+)/)||$.match(/Trident\/.+?rv:(([\d.]+))/),pe=$.match(/Edge?\/([\d.]+)/),_e=/micromessenger/i.test($);le&&(ie.firefox=!0,ie.version=le[1]),ue&&(ie.ie=!0,ie.version=ue[1]),pe&&(ie.edge=!0,ie.version=pe[1],ie.newEdge=+pe[1].split(".")[0]>18),_e&&(ie.weChat=!0),z.svgSupported=typeof SVGRect<"u",z.touchEventsSupported="ontouchstart"in window&&!ie.ie&&!ie.edge,z.pointerEventsSupported="onpointerdown"in window&&(ie.edge||ie.ie&&+ie.version>=11),z.domSupported=typeof document<"u";var Ce=document.documentElement.style;z.transform3dSupported=(ie.ie&&"transition"in Ce||ie.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Ce)&&!("OTransition"in Ce),z.transformSupported=z.transform3dSupported||ie.ie&&+ie.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 ie=0;ie<$.length;ie++){var le=String.fromCharCode(ie+32),ue=($.charCodeAt(ie)-OFFSET)/SCALE;z[le]=ue}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(ie,le){if(!$){var ue=platformApi.createCanvas();$=ue&&ue.getContext("2d")}if($)return z!==le&&(z=$.font=le||DEFAULT_FONT),$.measureText(ie);ie=ie||"",le=le||DEFAULT_FONT;var pe=/(\d+)px/.exec(le),_e=pe&&+pe[1]||DEFAULT_FONT_SIZE,Ce=0;if(le.indexOf("mono")>=0)Ce=_e*ie.length;else for(var $e=0;$e<ie.length;$e++){var xe=DEFAULT_TEXT_WIDTH_MAP[ie[$e]];Ce+=xe==null?_e:xe*_e}return{width:Ce}}}(),loadImage:function($,z,ie){var le=new Image;return le.onload=z,le.onerror=ie,le.src=$,le}};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=$,ie=objToString.call($);if(ie==="[object Array]"){if(!isPrimitive($)){z=[];for(var le=0,ue=$.length;le<ue;le++)z[le]=clone$3($[le])}}else if(TYPED_ARRAY[ie]){if(!isPrimitive($)){var pe=$.constructor;if(pe.from)z=pe.from($);else{z=new pe($.length);for(var le=0,ue=$.length;le<ue;le++)z[le]=$[le]}}}else if(!BUILTIN_OBJECT[ie]&&!isPrimitive($)&&!isDom($)){z={};for(var _e in $)$.hasOwnProperty(_e)&&_e!==protoKey&&(z[_e]=clone$3($[_e]))}return z}function merge($,z,ie){if(!isObject$3(z)||!isObject$3($))return ie?clone$3(z):$;for(var le in z)if(z.hasOwnProperty(le)&&le!==protoKey){var ue=$[le],pe=z[le];isObject$3(pe)&&isObject$3(ue)&&!isArray$1(pe)&&!isArray$1(ue)&&!isDom(pe)&&!isDom(ue)&&!isBuiltInObject(pe)&&!isBuiltInObject(ue)&&!isPrimitive(pe)&&!isPrimitive(ue)?merge(ue,pe,ie):(ie||!(le in $))&&($[le]=clone$3(z[le]))}return $}function mergeAll($,z){for(var ie=$[0],le=1,ue=$.length;le<ue;le++)ie=merge(ie,$[le],z);return ie}function extend($,z){if(Object.assign)Object.assign($,z);else for(var ie in z)z.hasOwnProperty(ie)&&ie!==protoKey&&($[ie]=z[ie]);return $}function defaults($,z,ie){for(var le=keys(z),ue=0;ue<le.length;ue++){var pe=le[ue];(ie?z[pe]!=null:$[pe]==null)&&($[pe]=z[pe])}return $}var createCanvas=platformApi.createCanvas;function indexOf($,z){if($){if($.indexOf)return $.indexOf(z);for(var ie=0,le=$.length;ie<le;ie++)if($[ie]===z)return ie}return-1}function inherits($,z){var ie=$.prototype;function le(){}le.prototype=z.prototype,$.prototype=new le;for(var ue in ie)ie.hasOwnProperty(ue)&&($.prototype[ue]=ie[ue]);$.prototype.constructor=$,$.superClass=z}function mixin($,z,ie){if($="prototype"in $?$.prototype:$,z="prototype"in z?z.prototype:z,Object.getOwnPropertyNames)for(var le=Object.getOwnPropertyNames(z),ue=0;ue<le.length;ue++){var pe=le[ue];pe!=="constructor"&&(ie?z[pe]!=null:$[pe]==null)&&($[pe]=z[pe])}else defaults($,z,ie)}function isArrayLike($){return!$||typeof $=="string"?!1:typeof $.length=="number"}function each$c($,z,ie){if($&&z)if($.forEach&&$.forEach===nativeForEach)$.forEach(z,ie);else if($.length===+$.length)for(var le=0,ue=$.length;le<ue;le++)z.call(ie,$[le],le,$);else for(var pe in $)$.hasOwnProperty(pe)&&z.call(ie,$[pe],pe,$)}function map$2($,z,ie){if(!$)return[];if(!z)return slice($);if($.map&&$.map===nativeMap)return $.map(z,ie);for(var le=[],ue=0,pe=$.length;ue<pe;ue++)le.push(z.call(ie,$[ue],ue,$));return le}function reduce($,z,ie,le){if($&&z){for(var ue=0,pe=$.length;ue<pe;ue++)ie=z.call(le,ie,$[ue],ue,$);return ie}}function filter($,z,ie){if(!$)return[];if(!z)return slice($);if($.filter&&$.filter===nativeFilter)return $.filter(z,ie);for(var le=[],ue=0,pe=$.length;ue<pe;ue++)z.call(ie,$[ue],ue,$)&&le.push($[ue]);return le}function find($,z,ie){if($&&z){for(var le=0,ue=$.length;le<ue;le++)if(z.call(ie,$[le],le,$))return $[le]}}function keys($){if(!$)return[];if(Object.keys)return Object.keys($);var z=[];for(var ie in $)$.hasOwnProperty(ie)&&z.push(ie);return z}function bindPolyfill($,z){for(var ie=[],le=2;le<arguments.length;le++)ie[le-2]=arguments[le];return function(){return $.apply(z,ie.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1($){for(var z=[],ie=1;ie<arguments.length;ie++)z[ie-1]=arguments[ie];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 ie=0,le=$.length;ie<le;ie++)if($[ie]!=null)return $[ie]}function retrieve2($,z){return $??z}function retrieve3($,z,ie){return $??z??ie}function slice($){for(var z=[],ie=1;ie<arguments.length;ie++)z[ie-1]=arguments[ie];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 ie=this.has(z);return ie&&delete this.data[z],ie},$.prototype.has=function(z){return this.data.hasOwnProperty(z)},$.prototype.get=function(z){return this.data[z]},$.prototype.set=function(z,ie){return this.data[z]=ie,this},$.prototype.keys=function(){return keys(this.data)},$.prototype.forEach=function(z){var ie=this.data;for(var le in ie)ie.hasOwnProperty(le)&&z(ie[le],le)},$}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function $(z){var ie=isArray$1(z);this.data=maybeNativeMap();var le=this;z instanceof $?z.each(ue):z&&each$c(z,ue);function ue(pe,_e){ie?le.set(pe,_e):le.set(_e,pe)}}return $.prototype.hasKey=function(z){return this.data.has(z)},$.prototype.get=function(z){return this.data.get(z)},$.prototype.set=function(z,ie){return this.data.set(z,ie),ie},$.prototype.each=function(z,ie){this.data.forEach(function(le,ue){z.call(ie,le,ue)})},$.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 ie=new $.constructor($.length+z.length),le=0;le<$.length;le++)ie[le]=$[le];for(var ue=$.length,le=0;le<z.length;le++)ie[le+ue]=z[le];return ie}function createObject($,z){var ie;if(Object.create)ie=Object.create($);else{var le=function(){};le.prototype=$,ie=new le}return z&&extend(ie,z),ie}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,ie){return $[0]=z,$[1]=ie,$}function add($,z,ie){return $[0]=z[0]+ie[0],$[1]=z[1]+ie[1],$}function scaleAndAdd($,z,ie,le){return $[0]=z[0]+ie[0]*le,$[1]=z[1]+ie[1]*le,$}function sub($,z,ie){return $[0]=z[0]-ie[0],$[1]=z[1]-ie[1],$}function len($){return Math.sqrt(lenSquare($))}var length=len;function lenSquare($){return $[0]*$[0]+$[1]*$[1]}var lengthSquare=lenSquare;function mul$1($,z,ie){return $[0]=z[0]*ie[0],$[1]=z[1]*ie[1],$}function div($,z,ie){return $[0]=z[0]/ie[0],$[1]=z[1]/ie[1],$}function dot($,z){return $[0]*z[0]+$[1]*z[1]}function scale$2($,z,ie){return $[0]=z[0]*ie,$[1]=z[1]*ie,$}function normalize$1($,z){var ie=len(z);return ie===0?($[0]=0,$[1]=0):($[0]=z[0]/ie,$[1]=z[1]/ie),$}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,ie,le){return $[0]=z[0]+le*(ie[0]-z[0]),$[1]=z[1]+le*(ie[1]-z[1]),$}function applyTransform$1($,z,ie){var le=z[0],ue=z[1];return $[0]=ie[0]*le+ie[2]*ue+ie[4],$[1]=ie[1]*le+ie[3]*ue+ie[5],$}function min$1($,z,ie){return $[0]=Math.min(z[0],ie[0]),$[1]=Math.min(z[1],ie[1]),$}function max$1($,z,ie){return $[0]=Math.max(z[0],ie[0]),$[1]=Math.max(z[1],ie[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,ie){this.target=z,this.topTarget=ie&&ie.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 ie=z.target;ie&&!ie.draggable;)ie=ie.parent||ie.__hostTarget;ie&&(this._draggingTarget=ie,ie.dragging=!0,this._x=z.offsetX,this._y=z.offsetY,this.handler.dispatchToElement(new Param(ie,z),"dragstart",z.event))},$.prototype._drag=function(z){var ie=this._draggingTarget;if(ie){var le=z.offsetX,ue=z.offsetY,pe=le-this._x,_e=ue-this._y;this._x=le,this._y=ue,ie.drift(pe,_e,z),this.handler.dispatchToElement(new Param(ie,z),"drag",z.event);var Ce=this.handler.findHover(le,ue,ie).target,$e=this._dropTarget;this._dropTarget=Ce,ie!==Ce&&($e&&Ce!==$e&&this.handler.dispatchToElement(new Param($e,z),"dragleave",z.event),Ce&&Ce!==$e&&this.handler.dispatchToElement(new Param(Ce,z),"dragenter",z.event))}},$.prototype._dragEnd=function(z){var ie=this._draggingTarget;ie&&(ie.dragging=!1),this.handler.dispatchToElement(new Param(ie,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,ie,le,ue){this._$handlers||(this._$handlers={});var pe=this._$handlers;if(typeof ie=="function"&&(ue=le,le=ie,ie=null),!le||!z)return this;var _e=this._$eventProcessor;ie!=null&&_e&&_e.normalizeQuery&&(ie=_e.normalizeQuery(ie)),pe[z]||(pe[z]=[]);for(var Ce=0;Ce<pe[z].length;Ce++)if(pe[z][Ce].h===le)return this;var $e={h:le,query:ie,ctx:ue||this,callAtLast:le.zrEventfulCallAtLast},xe=pe[z].length-1,Ie=pe[z][xe];return Ie&&Ie.callAtLast?pe[z].splice(xe,0,$e):pe[z].push($e),this},$.prototype.isSilent=function(z){var ie=this._$handlers;return!ie||!ie[z]||!ie[z].length},$.prototype.off=function(z,ie){var le=this._$handlers;if(!le)return this;if(!z)return this._$handlers={},this;if(ie){if(le[z]){for(var ue=[],pe=0,_e=le[z].length;pe<_e;pe++)le[z][pe].h!==ie&&ue.push(le[z][pe]);le[z]=ue}le[z]&&le[z].length===0&&delete le[z]}else delete le[z];return this},$.prototype.trigger=function(z){for(var ie=[],le=1;le<arguments.length;le++)ie[le-1]=arguments[le];if(!this._$handlers)return this;var ue=this._$handlers[z],pe=this._$eventProcessor;if(ue)for(var _e=ie.length,Ce=ue.length,$e=0;$e<Ce;$e++){var xe=ue[$e];if(!(pe&&pe.filter&&xe.query!=null&&!pe.filter(z,xe.query)))switch(_e){case 0:xe.h.call(xe.ctx);break;case 1:xe.h.call(xe.ctx,ie[0]);break;case 2:xe.h.call(xe.ctx,ie[0],ie[1]);break;default:xe.h.apply(xe.ctx,ie);break}}return pe&&pe.afterTrigger&&pe.afterTrigger(z),this},$.prototype.triggerWithContext=function(z){for(var ie=[],le=1;le<arguments.length;le++)ie[le-1]=arguments[le];if(!this._$handlers)return this;var ue=this._$handlers[z],pe=this._$eventProcessor;if(ue)for(var _e=ie.length,Ce=ie[_e-1],$e=ue.length,xe=0;xe<$e;xe++){var Ie=ue[xe];if(!(pe&&pe.filter&&Ie.query!=null&&!pe.filter(z,Ie.query)))switch(_e){case 0:Ie.h.call(Ce);break;case 1:Ie.h.call(Ce,ie[0]);break;case 2:Ie.h.call(Ce,ie[0],ie[1]);break;default:Ie.h.apply(Ce,ie.slice(1,_e-1));break}}return pe&&pe.afterTrigger&&pe.afterTrigger(z),this},$}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant($,z,ie,le,ue,pe){var _e=le+"-"+ue,Ce=$.length;if(pe.hasOwnProperty(_e))return pe[_e];if(z===1){var $e=Math.round(Math.log((1<<Ce)-1&~ue)/LN2);return $[ie][$e]}for(var xe=le|1<<ie,Ie=ie+1;le&1<<Ie;)Ie++;for(var ze=0,Ue=0,qe=0;Ue<Ce;Ue++){var Et=1<<Ue;Et&ue||(ze+=(qe%2?-1:1)*$[ie][Ue]*determinant($,z-1,Ie,xe,ue|Et,pe),qe++)}return pe[_e]=ze,ze}function buildTransformer($,z){var ie=[[$[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]]],le={},ue=determinant(ie,8,0,0,0,le);if(ue!==0){for(var pe=[],_e=0;_e<8;_e++)for(var Ce=0;Ce<8;Ce++)pe[Ce]==null&&(pe[Ce]=0),pe[Ce]+=((_e+Ce)%2?-1:1)*determinant(ie,7,_e===0?1:0,1<<_e,1<<Ce,le)/ue*z[_e];return function($e,xe,Ie){var ze=xe*pe[6]+Ie*pe[7]+1;$e[0]=(xe*pe[0]+Ie*pe[1]+pe[2])/ze,$e[1]=(xe*pe[3]+Ie*pe[4]+pe[5])/ze}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord($,z,ie,le,ue){return transformCoordWithViewport(_calcOut$1,z,le,ue,!0)&&transformCoordWithViewport($,ie,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport($,z,ie,le,ue){if(z.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(z)){var pe=z[EVENT_SAVED_PROP]||(z[EVENT_SAVED_PROP]={}),_e=prepareCoordMarkers(z,pe),Ce=preparePointerTransformer(_e,pe,ue);if(Ce)return Ce($,ie,le),!0}return!1}function prepareCoordMarkers($,z){var ie=z.markers;if(ie)return ie;ie=z.markers=[];for(var le=["left","right"],ue=["top","bottom"],pe=0;pe<4;pe++){var _e=document.createElement("div"),Ce=_e.style,$e=pe%2,xe=(pe>>1)%2;Ce.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",le[$e]+":0",ue[xe]+":0",le[1-$e]+":auto",ue[1-xe]+":auto",""].join("!important;"),$.appendChild(_e),ie.push(_e)}return ie}function preparePointerTransformer($,z,ie){for(var le=ie?"invTrans":"trans",ue=z[le],pe=z.srcCoords,_e=[],Ce=[],$e=!0,xe=0;xe<4;xe++){var Ie=$[xe].getBoundingClientRect(),ze=2*xe,Ue=Ie.left,qe=Ie.top;_e.push(Ue,qe),$e=$e&&pe&&Ue===pe[ze]&&qe===pe[ze+1],Ce.push($[xe].offsetLeft,$[xe].offsetTop)}return $e&&ue?ue:(z.srcCoords=_e,z[le]=ie?buildTransformer(Ce,_e):buildTransformer(_e,Ce))}function isCanvasEl($){return $.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function encodeHTML($){return $==null?"":($+"").replace(replaceReg,function(z,ie){return replaceMap[ie]})}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,ie,le){return ie=ie||{},le?calculateZrXY($,z,ie):firefoxNotSupportOffsetXY&&z.layerX!=null&&z.layerX!==z.offsetX?(ie.zrX=z.layerX,ie.zrY=z.layerY):z.offsetX!=null?(ie.zrX=z.offsetX,ie.zrY=z.offsetY):calculateZrXY($,z,ie),ie}function calculateZrXY($,z,ie){if(env$1.domSupported&&$.getBoundingClientRect){var le=z.clientX,ue=z.clientY;if(isCanvasEl($)){var pe=$.getBoundingClientRect();ie.zrX=le-pe.left,ie.zrY=ue-pe.top;return}else if(transformCoordWithViewport(_calcOut,$,le,ue)){ie.zrX=_calcOut[0],ie.zrY=_calcOut[1];return}}ie.zrX=ie.zrY=0}function getNativeEvent($){return $||window.event}function normalizeEvent($,z,ie){if(z=getNativeEvent(z),z.zrX!=null)return z;var le=z.type,ue=le&&le.indexOf("touch")>=0;if(ue){var _e=le!=="touchend"?z.targetTouches[0]:z.changedTouches[0];_e&&clientToLocal($,_e,z,ie)}else{clientToLocal($,z,z,ie);var pe=getWheelDeltaMayPolyfill(z);z.zrDelta=pe?pe/120:-(z.detail||0)/3}var Ce=z.button;return z.which==null&&Ce!==void 0&&MOUSE_EVENT_REG.test(z.type)&&(z.which=Ce&1?1:Ce&2?3:Ce&4?2:0),z}function getWheelDeltaMayPolyfill($){var z=$.wheelDelta;if(z)return z;var ie=$.deltaX,le=$.deltaY;if(ie==null||le==null)return z;var ue=Math.abs(le!==0?le:ie),pe=le>0?-1:le<0?1:ie>0?-1:1;return 3*ue*pe}function addEventListener($,z,ie,le){$.addEventListener(z,ie,le)}function removeEventListener($,z,ie,le){$.removeEventListener(z,ie,le)}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,ie,le){return this._doTrack(z,ie,le),this._recognize(z)},$.prototype.clear=function(){return this._track.length=0,this},$.prototype._doTrack=function(z,ie,le){var ue=z.touches;if(ue){for(var pe={points:[],touches:[],target:ie,event:z},_e=0,Ce=ue.length;_e<Ce;_e++){var $e=ue[_e],xe=clientToLocal(le,$e,{});pe.points.push([xe.zrX,xe.zrY]),pe.touches.push($e)}this._track.push(pe)}},$.prototype._recognize=function(z){for(var ie in recognizers)if(recognizers.hasOwnProperty(ie)){var le=recognizers[ie](this._track,z);if(le)return le}},$}();function dist($){var z=$[1][0]-$[0][0],ie=$[1][1]-$[0][1];return Math.sqrt(z*z+ie*ie)}function center($){return[($[0][0]+$[1][0])/2,($[0][1]+$[1][1])/2]}var recognizers={pinch:function($,z){var ie=$.length;if(ie){var le=($[ie-1]||{}).points,ue=($[ie-2]||{}).points||le;if(ue&&ue.length>1&&le&&le.length>1){var pe=dist(le)/dist(ue);!isFinite(pe)&&(pe=1),z.pinchScale=pe;var _e=center(le);return z.pinchX=_e[0],z.pinchY=_e[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,ie){var le=z[0]*ie[0]+z[2]*ie[1],ue=z[1]*ie[0]+z[3]*ie[1],pe=z[0]*ie[2]+z[2]*ie[3],_e=z[1]*ie[2]+z[3]*ie[3],Ce=z[0]*ie[4]+z[2]*ie[5]+z[4],$e=z[1]*ie[4]+z[3]*ie[5]+z[5];return $[0]=le,$[1]=ue,$[2]=pe,$[3]=_e,$[4]=Ce,$[5]=$e,$}function translate($,z,ie){return $[0]=z[0],$[1]=z[1],$[2]=z[2],$[3]=z[3],$[4]=z[4]+ie[0],$[5]=z[5]+ie[1],$}function rotate($,z,ie){var le=z[0],ue=z[2],pe=z[4],_e=z[1],Ce=z[3],$e=z[5],xe=Math.sin(ie),Ie=Math.cos(ie);return $[0]=le*Ie+_e*xe,$[1]=-le*xe+_e*Ie,$[2]=ue*Ie+Ce*xe,$[3]=-ue*xe+Ie*Ce,$[4]=Ie*pe+xe*$e,$[5]=Ie*$e-xe*pe,$}function scale$1($,z,ie){var le=ie[0],ue=ie[1];return $[0]=z[0]*le,$[1]=z[1]*ue,$[2]=z[2]*le,$[3]=z[3]*ue,$[4]=z[4]*le,$[5]=z[5]*ue,$}function invert($,z){var ie=z[0],le=z[2],ue=z[4],pe=z[1],_e=z[3],Ce=z[5],$e=ie*_e-pe*le;return $e?($e=1/$e,$[0]=_e*$e,$[1]=-pe*$e,$[2]=-le*$e,$[3]=ie*$e,$[4]=(le*Ce-_e*ue)*$e,$[5]=(pe*ue-ie*Ce)*$e,$):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,ie){this.x=z||0,this.y=ie||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,ie){return this.x=z,this.y=ie,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,ie){this.x+=z.x*ie,this.y+=z.y*ie},$.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 ie=this.x-z.x,le=this.y-z.y;return Math.sqrt(ie*ie+le*le)},$.prototype.distanceSquare=function(z){var ie=this.x-z.x,le=this.y-z.y;return ie*ie+le*le},$.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},$.prototype.transform=function(z){if(z){var ie=this.x,le=this.y;return this.x=z[0]*ie+z[2]*le+z[4],this.y=z[1]*ie+z[3]*le+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,ie,le){z.x=ie,z.y=le},$.copy=function(z,ie){z.x=ie.x,z.y=ie.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,ie){return z.x*ie.x+z.y*ie.y},$.add=function(z,ie,le){z.x=ie.x+le.x,z.y=ie.y+le.y},$.sub=function(z,ie,le){z.x=ie.x-le.x,z.y=ie.y-le.y},$.scale=function(z,ie,le){z.x=ie.x*le,z.y=ie.y*le},$.scaleAndAdd=function(z,ie,le,ue){z.x=ie.x+le.x*ue,z.y=ie.y+le.y*ue},$.lerp=function(z,ie,le,ue){var pe=1-ue;z.x=pe*ie.x+ue*le.x,z.y=pe*ie.y+ue*le.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,ie,le,ue){le<0&&(z=z+le,le=-le),ue<0&&(ie=ie+ue,ue=-ue),this.x=z,this.y=ie,this.width=le,this.height=ue}return $.prototype.union=function(z){var ie=mathMin$8(z.x,this.x),le=mathMin$8(z.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(z.x+z.width,this.x+this.width)-ie:this.width=z.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(z.y+z.height,this.y+this.height)-le:this.height=z.height,this.x=ie,this.y=le},$.prototype.applyTransform=function(z){$.applyTransform(this,this,z)},$.prototype.calculateTransform=function(z){var ie=this,le=z.width/ie.width,ue=z.height/ie.height,pe=create();return translate(pe,pe,[-ie.x,-ie.y]),scale$1(pe,pe,[le,ue]),translate(pe,pe,[z.x,z.y]),pe},$.prototype.intersect=function(z,ie){if(!z)return!1;z instanceof $||(z=$.create(z));var le=this,ue=le.x,pe=le.x+le.width,_e=le.y,Ce=le.y+le.height,$e=z.x,xe=z.x+z.width,Ie=z.y,ze=z.y+z.height,Ue=!(pe<$e||xe<ue||Ce<Ie||ze<_e);if(ie){var qe=1/0,Et=0,Lt=Math.abs(pe-$e),hn=Math.abs(xe-ue),vn=Math.abs(Ce-Ie),_n=Math.abs(ze-_e),bn=Math.min(Lt,hn),Sn=Math.min(vn,_n);pe<$e||xe<ue?bn>Et&&(Et=bn,Lt<hn?Point$1.set(maxTv$1,-Lt,0):Point$1.set(maxTv$1,hn,0)):bn<qe&&(qe=bn,Lt<hn?Point$1.set(minTv$1,Lt,0):Point$1.set(minTv$1,-hn,0)),Ce<Ie||ze<_e?Sn>Et&&(Et=Sn,vn<_n?Point$1.set(maxTv$1,0,-vn):Point$1.set(maxTv$1,0,_n)):bn<qe&&(qe=bn,vn<_n?Point$1.set(minTv$1,0,vn):Point$1.set(minTv$1,0,-_n))}return ie&&Point$1.copy(ie,Ue?minTv$1:maxTv$1),Ue},$.prototype.contain=function(z,ie){var le=this;return z>=le.x&&z<=le.x+le.width&&ie>=le.y&&ie<=le.y+le.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,ie){z.x=ie.x,z.y=ie.y,z.width=ie.width,z.height=ie.height},$.applyTransform=function(z,ie,le){if(!le){z!==ie&&$.copy(z,ie);return}if(le[1]<1e-5&&le[1]>-1e-5&&le[2]<1e-5&&le[2]>-1e-5){var ue=le[0],pe=le[3],_e=le[4],Ce=le[5];z.x=ie.x*ue+_e,z.y=ie.y*pe+Ce,z.width=ie.width*ue,z.height=ie.height*pe,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=ie.x,lt.y=rt.y=ie.y,rb.x=rt.x=ie.x+ie.width,rb.y=lb.y=ie.y+ie.height,lt.transform(le),rt.transform(le),rb.transform(le),lb.transform(le),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 $e=mathMax$8(lt.x,rb.x,lb.x,rt.x),xe=mathMax$8(lt.y,rb.y,lb.y,rt.y);z.width=$e-z.x,z.height=xe-z.y},$}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket($,z,ie){return{type:$,event:ie,target:z.target,topTarget:z.topTarget,cancelBubble:!1,offsetX:ie.zrX,offsetY:ie.zrY,gestureEvent:ie.gestureEvent,pinchX:ie.pinchX,pinchY:ie.pinchY,pinchScale:ie.pinchScale,wheelDelta:ie.zrDelta,zrByTouch:ie.zrByTouch,which:ie.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.handler=null,ie}return z.prototype.dispose=function(){},z.prototype.setCursor=function(){},z}(Eventful$1),HoveredResult=function(){function $(z,ie){this.x=z,this.y=ie}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(ie,le,ue,pe,_e){var Ce=$.call(this)||this;return Ce._hovered=new HoveredResult(0,0),Ce.storage=ie,Ce.painter=le,Ce.painterRoot=pe,Ce._pointerSize=_e,ue=ue||new EmptyProxy,Ce.proxy=null,Ce.setHandlerProxy(ue),Ce._draggingMgr=new Draggable$1(Ce),Ce}return z.prototype.setHandlerProxy=function(ie){this.proxy&&this.proxy.dispose(),ie&&(each$c(handlerNames,function(le){ie.on&&ie.on(le,this[le],this)},this),ie.handler=this),this.proxy=ie},z.prototype.mousemove=function(ie){var le=ie.zrX,ue=ie.zrY,pe=isOutsideBoundary(this,le,ue),_e=this._hovered,Ce=_e.target;Ce&&!Ce.__zr&&(_e=this.findHover(_e.x,_e.y),Ce=_e.target);var $e=this._hovered=pe?new HoveredResult(le,ue):this.findHover(le,ue),xe=$e.target,Ie=this.proxy;Ie.setCursor&&Ie.setCursor(xe?xe.cursor:"default"),Ce&&xe!==Ce&&this.dispatchToElement(_e,"mouseout",ie),this.dispatchToElement($e,"mousemove",ie),xe&&xe!==Ce&&this.dispatchToElement($e,"mouseover",ie)},z.prototype.mouseout=function(ie){var le=ie.zrEventControl;le!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",ie),le!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:ie})},z.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},z.prototype.dispatch=function(ie,le){var ue=this[ie];ue&&ue.call(this,le)},z.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},z.prototype.setCursorStyle=function(ie){var le=this.proxy;le.setCursor&&le.setCursor(ie)},z.prototype.dispatchToElement=function(ie,le,ue){ie=ie||{};var pe=ie.target;if(!(pe&&pe.silent)){for(var _e="on"+le,Ce=makeEventPacket(le,ie,ue);pe&&(pe[_e]&&(Ce.cancelBubble=!!pe[_e].call(pe,Ce)),pe.trigger(le,Ce),pe=pe.__hostTarget?pe.__hostTarget:pe.parent,!Ce.cancelBubble););Ce.cancelBubble||(this.trigger(le,Ce),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function($e){typeof $e[_e]=="function"&&$e[_e].call($e,Ce),$e.trigger&&$e.trigger(le,Ce)}))}},z.prototype.findHover=function(ie,le,ue){var pe=this.storage.getDisplayList(),_e=new HoveredResult(ie,le);if(setHoverTarget(pe,_e,ie,le,ue),this._pointerSize&&!_e.target){for(var Ce=[],$e=this._pointerSize,xe=$e/2,Ie=new BoundingRect$1(ie-xe,le-xe,$e,$e),ze=pe.length-1;ze>=0;ze--){var Ue=pe[ze];Ue!==ue&&!Ue.ignore&&!Ue.ignoreCoarsePointer&&(!Ue.parent||!Ue.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(Ue.getBoundingRect()),Ue.transform&&tmpRect$1.applyTransform(Ue.transform),tmpRect$1.intersect(Ie)&&Ce.push(Ue))}if(Ce.length)for(var qe=4,Et=Math.PI/12,Lt=Math.PI*2,hn=0;hn<xe;hn+=qe)for(var vn=0;vn<Lt;vn+=Et){var _n=ie+hn*Math.cos(vn),bn=le+hn*Math.sin(vn);if(setHoverTarget(Ce,_e,_n,bn,ue),_e.target)return _e}}return _e},z.prototype.processGesture=function(ie,le){this._gestureMgr||(this._gestureMgr=new GestureMgr);var ue=this._gestureMgr;le==="start"&&ue.clear();var pe=ue.recognize(ie,this.findHover(ie.zrX,ie.zrY,null).target,this.proxy.dom);if(le==="end"&&ue.clear(),pe){var _e=pe.type;ie.gestureEvent=_e;var Ce=new HoveredResult;Ce.target=pe.target,this.dispatchToElement(Ce,_e,pe.event)}},z}(Eventful$1);each$c(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function($){Handler.prototype[$]=function(z){var ie=z.zrX,le=z.zrY,ue=isOutsideBoundary(this,ie,le),pe,_e;if(($!=="mouseup"||!ue)&&(pe=this.findHover(ie,le),_e=pe.target),$==="mousedown")this._downEl=_e,this._downPoint=[z.zrX,z.zrY],this._upEl=_e;else if($==="mouseup")this._upEl=_e;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(pe,$,z)}});function isHover($,z,ie){if($[$.rectHover?"rectContain":"contain"](z,ie)){for(var le=$,ue=void 0,pe=!1;le;){if(le.ignoreClip&&(pe=!0),!pe){var _e=le.getClipPath();if(_e&&!_e.contain(z,ie))return!1;le.silent&&(ue=!0)}var Ce=le.__hostTarget;le=Ce||le.parent}return ue?SILENT:!0}return!1}function setHoverTarget($,z,ie,le,ue){for(var pe=$.length-1;pe>=0;pe--){var _e=$[pe],Ce=void 0;if(_e!==ue&&!_e.ignore&&(Ce=isHover(_e,ie,le))&&(!z.topTarget&&(z.topTarget=_e),Ce!==SILENT)){z.target=_e;break}}}function isOutsideBoundary($,z,ie){var le=$.painter;return z<0||z>le.getWidth()||ie<0||ie>le.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,ie,le){var ue=z+1;if(ue===ie)return 1;if(le($[ue++],$[z])<0){for(;ue<ie&&le($[ue],$[ue-1])<0;)ue++;reverseRun($,z,ue)}else for(;ue<ie&&le($[ue],$[ue-1])>=0;)ue++;return ue-z}function reverseRun($,z,ie){for(ie--;z<ie;){var le=$[z];$[z++]=$[ie],$[ie--]=le}}function binaryInsertionSort($,z,ie,le,ue){for(le===z&&le++;le<ie;le++){for(var pe=$[le],_e=z,Ce=le,$e;_e<Ce;)$e=_e+Ce>>>1,ue(pe,$[$e])<0?Ce=$e:_e=$e+1;var xe=le-_e;switch(xe){case 3:$[_e+3]=$[_e+2];case 2:$[_e+2]=$[_e+1];case 1:$[_e+1]=$[_e];break;default:for(;xe>0;)$[_e+xe]=$[_e+xe-1],xe--}$[_e]=pe}}function gallopLeft($,z,ie,le,ue,pe){var _e=0,Ce=0,$e=1;if(pe($,z[ie+ue])>0){for(Ce=le-ue;$e<Ce&&pe($,z[ie+ue+$e])>0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce),_e+=ue,$e+=ue}else{for(Ce=ue+1;$e<Ce&&pe($,z[ie+ue-$e])<=0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce);var xe=_e;_e=ue-$e,$e=ue-xe}for(_e++;_e<$e;){var Ie=_e+($e-_e>>>1);pe($,z[ie+Ie])>0?_e=Ie+1:$e=Ie}return $e}function gallopRight($,z,ie,le,ue,pe){var _e=0,Ce=0,$e=1;if(pe($,z[ie+ue])<0){for(Ce=ue+1;$e<Ce&&pe($,z[ie+ue-$e])<0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce);var xe=_e;_e=ue-$e,$e=ue-xe}else{for(Ce=le-ue;$e<Ce&&pe($,z[ie+ue+$e])>=0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce),_e+=ue,$e+=ue}for(_e++;_e<$e;){var Ie=_e+($e-_e>>>1);pe($,z[ie+Ie])<0?$e=Ie:_e=Ie+1}return $e}function TimSort($,z){var ie=DEFAULT_MIN_GALLOPING,le,ue,pe=0;$.length;var _e=[];le=[],ue=[];function Ce(qe,Et){le[pe]=qe,ue[pe]=Et,pe+=1}function $e(){for(;pe>1;){var qe=pe-2;if(qe>=1&&ue[qe-1]<=ue[qe]+ue[qe+1]||qe>=2&&ue[qe-2]<=ue[qe]+ue[qe-1])ue[qe-1]<ue[qe+1]&&qe--;else if(ue[qe]>ue[qe+1])break;Ie(qe)}}function xe(){for(;pe>1;){var qe=pe-2;qe>0&&ue[qe-1]<ue[qe+1]&&qe--,Ie(qe)}}function Ie(qe){var Et=le[qe],Lt=ue[qe],hn=le[qe+1],vn=ue[qe+1];ue[qe]=Lt+vn,qe===pe-3&&(le[qe+1]=le[qe+2],ue[qe+1]=ue[qe+2]),pe--;var _n=gallopRight($[hn],$,Et,Lt,0,z);Et+=_n,Lt-=_n,Lt!==0&&(vn=gallopLeft($[Et+Lt-1],$,hn,vn,vn-1,z),vn!==0&&(Lt<=vn?ze(Et,Lt,hn,vn):Ue(Et,Lt,hn,vn)))}function ze(qe,Et,Lt,hn){var vn=0;for(vn=0;vn<Et;vn++)_e[vn]=$[qe+vn];var _n=0,bn=Lt,Sn=qe;if($[Sn++]=$[bn++],--hn===0){for(vn=0;vn<Et;vn++)$[Sn+vn]=_e[_n+vn];return}if(Et===1){for(vn=0;vn<hn;vn++)$[Sn+vn]=$[bn+vn];$[Sn+hn]=_e[_n];return}for(var Cn=ie,En,$n,wn;;){En=0,$n=0,wn=!1;do if(z($[bn],_e[_n])<0){if($[Sn++]=$[bn++],$n++,En=0,--hn===0){wn=!0;break}}else if($[Sn++]=_e[_n++],En++,$n=0,--Et===1){wn=!0;break}while((En|$n)<Cn);if(wn)break;do{if(En=gallopRight($[bn],_e,_n,Et,0,z),En!==0){for(vn=0;vn<En;vn++)$[Sn+vn]=_e[_n+vn];if(Sn+=En,_n+=En,Et-=En,Et<=1){wn=!0;break}}if($[Sn++]=$[bn++],--hn===0){wn=!0;break}if($n=gallopLeft(_e[_n],$,bn,hn,0,z),$n!==0){for(vn=0;vn<$n;vn++)$[Sn+vn]=$[bn+vn];if(Sn+=$n,bn+=$n,hn-=$n,hn===0){wn=!0;break}}if($[Sn++]=_e[_n++],--Et===1){wn=!0;break}Cn--}while(En>=DEFAULT_MIN_GALLOPING||$n>=DEFAULT_MIN_GALLOPING);if(wn)break;Cn<0&&(Cn=0),Cn+=2}if(ie=Cn,ie<1&&(ie=1),Et===1){for(vn=0;vn<hn;vn++)$[Sn+vn]=$[bn+vn];$[Sn+hn]=_e[_n]}else{if(Et===0)throw new Error;for(vn=0;vn<Et;vn++)$[Sn+vn]=_e[_n+vn]}}function Ue(qe,Et,Lt,hn){var vn=0;for(vn=0;vn<hn;vn++)_e[vn]=$[Lt+vn];var _n=qe+Et-1,bn=hn-1,Sn=Lt+hn-1,Cn=0,En=0;if($[Sn--]=$[_n--],--Et===0){for(Cn=Sn-(hn-1),vn=0;vn<hn;vn++)$[Cn+vn]=_e[vn];return}if(hn===1){for(Sn-=Et,_n-=Et,En=Sn+1,Cn=_n+1,vn=Et-1;vn>=0;vn--)$[En+vn]=$[Cn+vn];$[Sn]=_e[bn];return}for(var $n=ie;;){var wn=0,Tn=0,xn=!1;do if(z(_e[bn],$[_n])<0){if($[Sn--]=$[_n--],wn++,Tn=0,--Et===0){xn=!0;break}}else if($[Sn--]=_e[bn--],Tn++,wn=0,--hn===1){xn=!0;break}while((wn|Tn)<$n);if(xn)break;do{if(wn=Et-gallopRight(_e[bn],$,qe,Et,Et-1,z),wn!==0){for(Sn-=wn,_n-=wn,Et-=wn,En=Sn+1,Cn=_n+1,vn=wn-1;vn>=0;vn--)$[En+vn]=$[Cn+vn];if(Et===0){xn=!0;break}}if($[Sn--]=_e[bn--],--hn===1){xn=!0;break}if(Tn=hn-gallopLeft($[_n],_e,0,hn,hn-1,z),Tn!==0){for(Sn-=Tn,bn-=Tn,hn-=Tn,En=Sn+1,Cn=bn+1,vn=0;vn<Tn;vn++)$[En+vn]=_e[Cn+vn];if(hn<=1){xn=!0;break}}if($[Sn--]=$[_n--],--Et===0){xn=!0;break}$n--}while(wn>=DEFAULT_MIN_GALLOPING||Tn>=DEFAULT_MIN_GALLOPING);if(xn)break;$n<0&&($n=0),$n+=2}if(ie=$n,ie<1&&(ie=1),hn===1){for(Sn-=Et,_n-=Et,En=Sn+1,Cn=_n+1,vn=Et-1;vn>=0;vn--)$[En+vn]=$[Cn+vn];$[Sn]=_e[bn]}else{if(hn===0)throw new Error;for(Cn=Sn-(hn-1),vn=0;vn<hn;vn++)$[Cn+vn]=_e[vn]}}return{mergeRuns:$e,forceMergeRuns:xe,pushRun:Ce}}function sort($,z,ie,le){ie||(ie=0),le||(le=$.length);var ue=le-ie;if(!(ue<2)){var pe=0;if(ue<DEFAULT_MIN_MERGE){pe=makeAscendingRun($,ie,le,z),binaryInsertionSort($,ie,le,ie+pe,z);return}var _e=TimSort($,z),Ce=minRunLength(ue);do{if(pe=makeAscendingRun($,ie,le,z),pe<Ce){var $e=ue;$e>Ce&&($e=Ce),binaryInsertionSort($,ie,ie+$e,ie+pe,z),pe=$e}_e.pushRun(ie,pe),_e.mergeRuns(),ue-=pe,ie+=pe}while(ue!==0);_e.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,ie){for(var le=0;le<this._roots.length;le++)this._roots[le].traverse(z,ie)},$.prototype.getDisplayList=function(z,ie){ie=ie||!1;var le=this._displayList;return(z||!le.length)&&this.updateDisplayList(ie),le},$.prototype.updateDisplayList=function(z){this._displayListLen=0;for(var ie=this._roots,le=this._displayList,ue=0,pe=ie.length;ue<pe;ue++)this._updateAndAddDisplayable(ie[ue],null,z);le.length=this._displayListLen,sort(le,shapeCompareFunc)},$.prototype._updateAndAddDisplayable=function(z,ie,le){if(!(z.ignore&&!le)){z.beforeUpdate(),z.update(),z.afterUpdate();var ue=z.getClipPath();if(z.ignoreClip)ie=null;else if(ue){ie?ie=ie.slice():ie=[];for(var pe=ue,_e=z;pe;)pe.parent=_e,pe.updateTransform(),ie.push(pe),_e=pe,pe=pe.getClipPath()}if(z.childrenRef){for(var Ce=z.childrenRef(),$e=0;$e<Ce.length;$e++){var xe=Ce[$e];z.__dirty&&(xe.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(xe,ie,le)}z.__dirty=0}else{var Ie=z;ie&&ie.length?Ie.__clipPaths=ie:Ie.__clipPaths&&Ie.__clipPaths.length>0&&(Ie.__clipPaths=[]),isNaN(Ie.z)&&(logInvalidZError(),Ie.z=0),isNaN(Ie.z2)&&(logInvalidZError(),Ie.z2=0),isNaN(Ie.zlevel)&&(logInvalidZError(),Ie.zlevel=0),this._displayList[this._displayListLen++]=Ie}var ze=z.getDecalElement&&z.getDecalElement();ze&&this._updateAndAddDisplayable(ze,ie,le);var Ue=z.getTextGuideLine();Ue&&this._updateAndAddDisplayable(Ue,ie,le);var qe=z.getTextContent();qe&&this._updateAndAddDisplayable(qe,ie,le)}},$.prototype.addRoot=function(z){z.__zr&&z.__zr.storage===this||this._roots.push(z)},$.prototype.delRoot=function(z){if(z instanceof Array){for(var ie=0,le=z.length;ie<le;ie++)this.delRoot(z[ie]);return}var ue=indexOf(this._roots,z);ue>=0&&this._roots.splice(ue,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,ie=.1,le=.4;return $===0?0:$===1?1:(!ie||ie<1?(ie=1,z=le/4):z=le*Math.asin(1/ie)/(2*Math.PI),-(ie*Math.pow(2,10*($-=1))*Math.sin(($-z)*(2*Math.PI)/le)))},elasticOut:function($){var z,ie=.1,le=.4;return $===0?0:$===1?1:(!ie||ie<1?(ie=1,z=le/4):z=le*Math.asin(1/ie)/(2*Math.PI),ie*Math.pow(2,-10*$)*Math.sin(($-z)*(2*Math.PI)/le)+1)},elasticInOut:function($){var z,ie=.1,le=.4;return $===0?0:$===1?1:(!ie||ie<1?(ie=1,z=le/4):z=le*Math.asin(1/ie)/(2*Math.PI),($*=2)<1?-.5*(ie*Math.pow(2,10*($-=1))*Math.sin(($-z)*(2*Math.PI)/le)):ie*Math.pow(2,-10*($-=1))*Math.sin(($-z)*(2*Math.PI)/le)*.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,ie,le,ue){var pe=1-ue;return pe*pe*(pe*$+3*ue*z)+ue*ue*(ue*le+3*pe*ie)}function cubicDerivativeAt($,z,ie,le,ue){var pe=1-ue;return 3*(((z-$)*pe+2*(ie-z)*ue)*pe+(le-ie)*ue*ue)}function cubicRootAt($,z,ie,le,ue,pe){var _e=le+3*(z-ie)-$,Ce=3*(ie-z*2+$),$e=3*(z-$),xe=$-ue,Ie=Ce*Ce-3*_e*$e,ze=Ce*$e-9*_e*xe,Ue=$e*$e-3*Ce*xe,qe=0;if(isAroundZero(Ie)&&isAroundZero(ze))if(isAroundZero(Ce))pe[0]=0;else{var Et=-$e/Ce;Et>=0&&Et<=1&&(pe[qe++]=Et)}else{var Lt=ze*ze-4*Ie*Ue;if(isAroundZero(Lt)){var hn=ze/Ie,Et=-Ce/_e+hn,vn=-hn/2;Et>=0&&Et<=1&&(pe[qe++]=Et),vn>=0&&vn<=1&&(pe[qe++]=vn)}else if(Lt>0){var _n=mathSqrt$3(Lt),bn=Ie*Ce+1.5*_e*(-ze+_n),Sn=Ie*Ce+1.5*_e*(-ze-_n);bn<0?bn=-mathPow$2(-bn,ONE_THIRD):bn=mathPow$2(bn,ONE_THIRD),Sn<0?Sn=-mathPow$2(-Sn,ONE_THIRD):Sn=mathPow$2(Sn,ONE_THIRD);var Et=(-Ce-(bn+Sn))/(3*_e);Et>=0&&Et<=1&&(pe[qe++]=Et)}else{var Cn=(2*Ie*Ce-3*_e*ze)/(2*mathSqrt$3(Ie*Ie*Ie)),En=Math.acos(Cn)/3,$n=mathSqrt$3(Ie),wn=Math.cos(En),Et=(-Ce-2*$n*wn)/(3*_e),vn=(-Ce+$n*(wn+THREE_SQRT*Math.sin(En)))/(3*_e),Tn=(-Ce+$n*(wn-THREE_SQRT*Math.sin(En)))/(3*_e);Et>=0&&Et<=1&&(pe[qe++]=Et),vn>=0&&vn<=1&&(pe[qe++]=vn),Tn>=0&&Tn<=1&&(pe[qe++]=Tn)}}return qe}function cubicExtrema($,z,ie,le,ue){var pe=6*ie-12*z+6*$,_e=9*z+3*le-3*$-9*ie,Ce=3*z-3*$,$e=0;if(isAroundZero(_e)){if(isNotAroundZero$1(pe)){var xe=-Ce/pe;xe>=0&&xe<=1&&(ue[$e++]=xe)}}else{var Ie=pe*pe-4*_e*Ce;if(isAroundZero(Ie))ue[0]=-pe/(2*_e);else if(Ie>0){var ze=mathSqrt$3(Ie),xe=(-pe+ze)/(2*_e),Ue=(-pe-ze)/(2*_e);xe>=0&&xe<=1&&(ue[$e++]=xe),Ue>=0&&Ue<=1&&(ue[$e++]=Ue)}}return $e}function cubicSubdivide($,z,ie,le,ue,pe){var _e=(z-$)*ue+$,Ce=(ie-z)*ue+z,$e=(le-ie)*ue+ie,xe=(Ce-_e)*ue+_e,Ie=($e-Ce)*ue+Ce,ze=(Ie-xe)*ue+xe;pe[0]=$,pe[1]=_e,pe[2]=xe,pe[3]=ze,pe[4]=ze,pe[5]=Ie,pe[6]=$e,pe[7]=le}function cubicProjectPoint($,z,ie,le,ue,pe,_e,Ce,$e,xe,Ie){var ze,Ue=.005,qe=1/0,Et,Lt,hn,vn;_v0[0]=$e,_v0[1]=xe;for(var _n=0;_n<1;_n+=.05)_v1[0]=cubicAt($,ie,ue,_e,_n),_v1[1]=cubicAt(z,le,pe,Ce,_n),hn=distSquare(_v0,_v1),hn<qe&&(ze=_n,qe=hn);qe=1/0;for(var bn=0;bn<32&&!(Ue<EPSILON_NUMERIC);bn++)Et=ze-Ue,Lt=ze+Ue,_v1[0]=cubicAt($,ie,ue,_e,Et),_v1[1]=cubicAt(z,le,pe,Ce,Et),hn=distSquare(_v1,_v0),Et>=0&&hn<qe?(ze=Et,qe=hn):(_v2[0]=cubicAt($,ie,ue,_e,Lt),_v2[1]=cubicAt(z,le,pe,Ce,Lt),vn=distSquare(_v2,_v0),Lt<=1&&vn<qe?(ze=Lt,qe=vn):Ue*=.5);return Ie&&(Ie[0]=cubicAt($,ie,ue,_e,ze),Ie[1]=cubicAt(z,le,pe,Ce,ze)),mathSqrt$3(qe)}function cubicLength($,z,ie,le,ue,pe,_e,Ce,$e){for(var xe=$,Ie=z,ze=0,Ue=1/$e,qe=1;qe<=$e;qe++){var Et=qe*Ue,Lt=cubicAt($,ie,ue,_e,Et),hn=cubicAt(z,le,pe,Ce,Et),vn=Lt-xe,_n=hn-Ie;ze+=Math.sqrt(vn*vn+_n*_n),xe=Lt,Ie=hn}return ze}function quadraticAt($,z,ie,le){var ue=1-le;return ue*(ue*$+2*le*z)+le*le*ie}function quadraticDerivativeAt($,z,ie,le){return 2*((1-le)*(z-$)+le*(ie-z))}function quadraticRootAt($,z,ie,le,ue){var pe=$-2*z+ie,_e=2*(z-$),Ce=$-le,$e=0;if(isAroundZero(pe)){if(isNotAroundZero$1(_e)){var xe=-Ce/_e;xe>=0&&xe<=1&&(ue[$e++]=xe)}}else{var Ie=_e*_e-4*pe*Ce;if(isAroundZero(Ie)){var xe=-_e/(2*pe);xe>=0&&xe<=1&&(ue[$e++]=xe)}else if(Ie>0){var ze=mathSqrt$3(Ie),xe=(-_e+ze)/(2*pe),Ue=(-_e-ze)/(2*pe);xe>=0&&xe<=1&&(ue[$e++]=xe),Ue>=0&&Ue<=1&&(ue[$e++]=Ue)}}return $e}function quadraticExtremum($,z,ie){var le=$+ie-2*z;return le===0?.5:($-z)/le}function quadraticSubdivide($,z,ie,le,ue){var pe=(z-$)*le+$,_e=(ie-z)*le+z,Ce=(_e-pe)*le+pe;ue[0]=$,ue[1]=pe,ue[2]=Ce,ue[3]=Ce,ue[4]=_e,ue[5]=ie}function quadraticProjectPoint($,z,ie,le,ue,pe,_e,Ce,$e){var xe,Ie=.005,ze=1/0;_v0[0]=_e,_v0[1]=Ce;for(var Ue=0;Ue<1;Ue+=.05){_v1[0]=quadraticAt($,ie,ue,Ue),_v1[1]=quadraticAt(z,le,pe,Ue);var qe=distSquare(_v0,_v1);qe<ze&&(xe=Ue,ze=qe)}ze=1/0;for(var Et=0;Et<32&&!(Ie<EPSILON_NUMERIC);Et++){var Lt=xe-Ie,hn=xe+Ie;_v1[0]=quadraticAt($,ie,ue,Lt),_v1[1]=quadraticAt(z,le,pe,Lt);var qe=distSquare(_v1,_v0);if(Lt>=0&&qe<ze)xe=Lt,ze=qe;else{_v2[0]=quadraticAt($,ie,ue,hn),_v2[1]=quadraticAt(z,le,pe,hn);var vn=distSquare(_v2,_v0);hn<=1&&vn<ze?(xe=hn,ze=vn):Ie*=.5}}return $e&&($e[0]=quadraticAt($,ie,ue,xe),$e[1]=quadraticAt(z,le,pe,xe)),mathSqrt$3(ze)}function quadraticLength($,z,ie,le,ue,pe,_e){for(var Ce=$,$e=z,xe=0,Ie=1/_e,ze=1;ze<=_e;ze++){var Ue=ze*Ie,qe=quadraticAt($,ie,ue,Ue),Et=quadraticAt(z,le,pe,Ue),Lt=qe-Ce,hn=Et-$e;xe+=Math.sqrt(Lt*Lt+hn*hn),Ce=qe,$e=Et}return xe}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc($){var z=$&&regexp.exec($);if(z){var ie=z[1].split(","),le=+trim$1(ie[0]),ue=+trim$1(ie[1]),pe=+trim$1(ie[2]),_e=+trim$1(ie[3]);if(isNaN(le+ue+pe+_e))return;var Ce=[];return function($e){return $e<=0?0:$e>=1?1:cubicRootAt(0,le,pe,1,$e,Ce)&&cubicAt(0,ue,_e,1,Ce[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,ie){if(this._inited||(this._startTime=z+this._delay,this._inited=!0),this._paused){this._pausedTime+=ie;return}var le=this._life,ue=z-this._startTime-this._pausedTime,pe=ue/le;pe<0&&(pe=0),pe=Math.min(pe,1);var _e=this.easingFunc,Ce=_e?_e(pe):pe;if(this.onframe(Ce),pe===1)if(this.loop){var $e=ue%le;this._startTime=z-$e,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 ie=new Entry(z);return this.insertEntry(ie),ie},$.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 ie=z.prev,le=z.next;ie?ie.next=le:this.head=le,le?le.prev=ie:this.tail=ie,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,ie){var le=this._list,ue=this._map,pe=null;if(ue[z]==null){var _e=le.len(),Ce=this._lastRemovedEntry;if(_e>=this._maxSize&&_e>0){var $e=le.head;le.remove($e),delete ue[$e.key],pe=$e.value,this._lastRemovedEntry=$e}Ce?Ce.value=ie:Ce=new Entry(ie),Ce.key=z,le.insertEntry(Ce),ue[z]=Ce}return pe},$.prototype.get=function(z){var ie=this._map[z],le=this._list;if(ie!=null)return ie!==le.tail&&(le.remove(ie),le.insertEntry(ie)),ie.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,ie){return ie<0?ie+=1:ie>1&&(ie-=1),ie*6<1?$+(z-$)*ie*6:ie*2<1?z:ie*3<2?$+(z-$)*(2/3-ie)*6:$}function lerpNumber($,z,ie){return $+(z-$)*ie}function setRgba($,z,ie,le,ue){return $[0]=z,$[1]=ie,$[2]=le,$[3]=ue,$}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&&copyRgba(lastRemovedArr,z),lastRemovedArr=colorCache.put($,lastRemovedArr||z.slice())}function parse$1($,z){if($){z=z||[];var ie=colorCache.get($);if(ie)return copyRgba(z,ie);$=$+"";var le=$.replace(/ /g,"").toLowerCase();if(le in kCSSColorTable)return copyRgba(z,kCSSColorTable[le]),putToCache($,z),z;var ue=le.length;if(le.charAt(0)==="#"){if(ue===4||ue===5){var pe=parseInt(le.slice(1,4),16);if(!(pe>=0&&pe<=4095)){setRgba(z,0,0,0,1);return}return setRgba(z,(pe&3840)>>4|(pe&3840)>>8,pe&240|(pe&240)>>4,pe&15|(pe&15)<<4,ue===5?parseInt(le.slice(4),16)/15:1),putToCache($,z),z}else if(ue===7||ue===9){var pe=parseInt(le.slice(1,7),16);if(!(pe>=0&&pe<=16777215)){setRgba(z,0,0,0,1);return}return setRgba(z,(pe&16711680)>>16,(pe&65280)>>8,pe&255,ue===9?parseInt(le.slice(7),16)/255:1),putToCache($,z),z}return}var _e=le.indexOf("("),Ce=le.indexOf(")");if(_e!==-1&&Ce+1===ue){var $e=le.substr(0,_e),xe=le.substr(_e+1,Ce-(_e+1)).split(","),Ie=1;switch($e){case"rgba":if(xe.length!==4)return xe.length===3?setRgba(z,+xe[0],+xe[1],+xe[2],1):setRgba(z,0,0,0,1);Ie=parseCssFloat(xe.pop());case"rgb":if(xe.length>=3)return setRgba(z,parseCssInt(xe[0]),parseCssInt(xe[1]),parseCssInt(xe[2]),xe.length===3?Ie:parseCssFloat(xe[3])),putToCache($,z),z;setRgba(z,0,0,0,1);return;case"hsla":if(xe.length!==4){setRgba(z,0,0,0,1);return}return xe[3]=parseCssFloat(xe[3]),hsla2rgba(xe,z),putToCache($,z),z;case"hsl":if(xe.length!==3){setRgba(z,0,0,0,1);return}return hsla2rgba(xe,z),putToCache($,z),z;default:return}}setRgba(z,0,0,0,1)}}function hsla2rgba($,z){var ie=(parseFloat($[0])%360+360)%360/360,le=parseCssFloat($[1]),ue=parseCssFloat($[2]),pe=ue<=.5?ue*(le+1):ue+le-ue*le,_e=ue*2-pe;return z=z||[],setRgba(z,clampCssByte(cssHueToRgb(_e,pe,ie+1/3)*255),clampCssByte(cssHueToRgb(_e,pe,ie)*255),clampCssByte(cssHueToRgb(_e,pe,ie-1/3)*255),1),$.length===4&&(z[3]=$[3]),z}function rgba2hsla($){if($){var z=$[0]/255,ie=$[1]/255,le=$[2]/255,ue=Math.min(z,ie,le),pe=Math.max(z,ie,le),_e=pe-ue,Ce=(pe+ue)/2,$e,xe;if(_e===0)$e=0,xe=0;else{Ce<.5?xe=_e/(pe+ue):xe=_e/(2-pe-ue);var Ie=((pe-z)/6+_e/2)/_e,ze=((pe-ie)/6+_e/2)/_e,Ue=((pe-le)/6+_e/2)/_e;z===pe?$e=Ue-ze:ie===pe?$e=1/3+Ie-Ue:le===pe&&($e=2/3+ze-Ie),$e<0&&($e+=1),$e>1&&($e-=1)}var qe=[$e*360,xe,Ce];return $[3]!=null&&qe.push($[3]),qe}}function lift($,z){var ie=parse$1($);if(ie){for(var le=0;le<3;le++)z<0?ie[le]=ie[le]*(1-z)|0:ie[le]=(255-ie[le])*z+ie[le]|0,ie[le]>255?ie[le]=255:ie[le]<0&&(ie[le]=0);return stringify(ie,ie.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,ie){if(!(!(z&&z.length)||!($>=0&&$<=1))){ie=ie||[];var le=$*(z.length-1),ue=Math.floor(le),pe=Math.ceil(le),_e=z[ue],Ce=z[pe],$e=le-ue;return ie[0]=clampCssByte(lerpNumber(_e[0],Ce[0],$e)),ie[1]=clampCssByte(lerpNumber(_e[1],Ce[1],$e)),ie[2]=clampCssByte(lerpNumber(_e[2],Ce[2],$e)),ie[3]=clampCssFloat(lerpNumber(_e[3],Ce[3],$e)),ie}}var fastMapToColor=fastLerp;function lerp($,z,ie){if(!(!(z&&z.length)||!($>=0&&$<=1))){var le=$*(z.length-1),ue=Math.floor(le),pe=Math.ceil(le),_e=parse$1(z[ue]),Ce=parse$1(z[pe]),$e=le-ue,xe=stringify([clampCssByte(lerpNumber(_e[0],Ce[0],$e)),clampCssByte(lerpNumber(_e[1],Ce[1],$e)),clampCssByte(lerpNumber(_e[2],Ce[2],$e)),clampCssFloat(lerpNumber(_e[3],Ce[3],$e))],"rgba");return ie?{color:xe,leftIndex:ue,rightIndex:pe,value:le}:xe}}var mapToColor=lerp;function modifyHSL($,z,ie,le){var ue=parse$1($);if($)return ue=rgba2hsla(ue),z!=null&&(ue[0]=clampCssAngle(z)),ie!=null&&(ue[1]=parseCssFloat(ie)),le!=null&&(ue[2]=parseCssFloat(le)),stringify(hsla2rgba(ue),"rgba")}function modifyAlpha($,z){var ie=parse$1($);if(ie&&z!=null)return ie[3]=clampCssFloat(z),stringify(ie,"rgba")}function stringify($,z){if(!(!$||!$.length)){var ie=$[0]+","+$[1]+","+$[2];return(z==="rgba"||z==="hsva"||z==="hsla")&&(ie+=","+$[3]),z+"("+ie+")"}}function lum($,z){var ie=parse$1($);return ie?(.299*ie[0]+.587*ie[1]+.114*ie[2])*ie[3]/255+(1-ie[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,ie){return(z-$)*ie+$}function interpolate1DArray($,z,ie,le){for(var ue=z.length,pe=0;pe<ue;pe++)$[pe]=interpolateNumber$1(z[pe],ie[pe],le);return $}function interpolate2DArray($,z,ie,le){for(var ue=z.length,pe=ue&&z[0].length,_e=0;_e<ue;_e++){$[_e]||($[_e]=[]);for(var Ce=0;Ce<pe;Ce++)$[_e][Ce]=interpolateNumber$1(z[_e][Ce],ie[_e][Ce],le)}return $}function add1DArray($,z,ie,le){for(var ue=z.length,pe=0;pe<ue;pe++)$[pe]=z[pe]+ie[pe]*le;return $}function add2DArray($,z,ie,le){for(var ue=z.length,pe=ue&&z[0].length,_e=0;_e<ue;_e++){$[_e]||($[_e]=[]);for(var Ce=0;Ce<pe;Ce++)$[_e][Ce]=z[_e][Ce]+ie[_e][Ce]*le}return $}function fillColorStops($,z){for(var ie=$.length,le=z.length,ue=ie>le?z:$,pe=Math.min(ie,le),_e=ue[pe-1]||{color:[0,0,0,0],offset:0},Ce=pe;Ce<Math.max(ie,le);Ce++)ue.push({offset:_e.offset,color:_e.color.slice()})}function fillArray($,z,ie){var le=$,ue=z;if(!(!le.push||!ue.push)){var pe=le.length,_e=ue.length;if(pe!==_e){var Ce=pe>_e;if(Ce)le.length=_e;else for(var $e=pe;$e<_e;$e++)le.push(ie===1?ue[$e]:arraySlice.call(ue[$e]))}for(var xe=le[0]&&le[0].length,$e=0;$e<le.length;$e++)if(ie===1)isNaN(le[$e])&&(le[$e]=ue[$e]);else for(var Ie=0;Ie<xe;Ie++)isNaN(le[$e][Ie])&&(le[$e][Ie]=ue[$e][Ie])}}function cloneValue($){if(isArrayLike($)){var z=$.length;if(isArrayLike($[0])){for(var ie=[],le=0;le<z;le++)ie.push(arraySlice.call($[le]));return ie}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,ie,le){this._needsSort=!0;var ue=this.keyframes,pe=ue.length,_e=!1,Ce=VALUE_TYPE_UNKOWN,$e=ie;if(isArrayLike(ie)){var xe=guessArrayDim(ie);Ce=xe,(xe===1&&!isNumber(ie[0])||xe===2&&!isNumber(ie[0][0]))&&(_e=!0)}else if(isNumber(ie)&&!eqNaN(ie))Ce=VALUE_TYPE_NUMBER;else if(isString(ie))if(!isNaN(+ie))Ce=VALUE_TYPE_NUMBER;else{var Ie=parse$1(ie);Ie&&($e=Ie,Ce=VALUE_TYPE_COLOR)}else if(isGradientObject(ie)){var ze=extend({},$e);ze.colorStops=map$2(ie.colorStops,function(qe){return{offset:qe.offset,color:parse$1(qe.color)}}),isLinearGradient(ie)?Ce=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(ie)&&(Ce=VALUE_TYPE_RADIAL_GRADIENT),$e=ze}pe===0?this.valType=Ce:(Ce!==this.valType||Ce===VALUE_TYPE_UNKOWN)&&(_e=!0),this.discrete=this.discrete||_e;var Ue={time:z,value:$e,rawValue:ie,percent:0};return le&&(Ue.easing=le,Ue.easingFunc=isFunction(le)?le:easingFuncs$1[le]||createCubicEasingFunc(le)),ue.push(Ue),Ue},$.prototype.prepare=function(z,ie){var le=this.keyframes;this._needsSort&&le.sort(function(Lt,hn){return Lt.time-hn.time});for(var ue=this.valType,pe=le.length,_e=le[pe-1],Ce=this.discrete,$e=isArrayValueType(ue),xe=isGradientValueType(ue),Ie=0;Ie<pe;Ie++){var ze=le[Ie],Ue=ze.value,qe=_e.value;ze.percent=ze.time/z,Ce||($e&&Ie!==pe-1?fillArray(Ue,qe,ue):xe&&fillColorStops(Ue.colorStops,qe.colorStops))}if(!Ce&&ue!==VALUE_TYPE_RADIAL_GRADIENT&&ie&&this.needsAnimate()&&ie.needsAnimate()&&ue===ie.valType&&!ie._finished){this._additiveTrack=ie;for(var Et=le[0].value,Ie=0;Ie<pe;Ie++)ue===VALUE_TYPE_NUMBER?le[Ie].additiveValue=le[Ie].value-Et:ue===VALUE_TYPE_COLOR?le[Ie].additiveValue=add1DArray([],le[Ie].value,Et,-1):isArrayValueType(ue)&&(le[Ie].additiveValue=ue===VALUE_TYPE_1D_ARRAY?add1DArray([],le[Ie].value,Et,-1):add2DArray([],le[Ie].value,Et,-1))}},$.prototype.step=function(z,ie){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var le=this._additiveTrack!=null,ue=le?"additiveValue":"value",pe=this.valType,_e=this.keyframes,Ce=_e.length,$e=this.propName,xe=pe===VALUE_TYPE_COLOR,Ie,ze=this._lastFr,Ue=Math.min,qe,Et;if(Ce===1)qe=Et=_e[0];else{if(ie<0)Ie=0;else if(ie<this._lastFrP){var Lt=Ue(ze+1,Ce-1);for(Ie=Lt;Ie>=0&&!(_e[Ie].percent<=ie);Ie--);Ie=Ue(Ie,Ce-2)}else{for(Ie=ze;Ie<Ce&&!(_e[Ie].percent>ie);Ie++);Ie=Ue(Ie-1,Ce-2)}Et=_e[Ie+1],qe=_e[Ie]}if(qe&&Et){this._lastFr=Ie,this._lastFrP=ie;var hn=Et.percent-qe.percent,vn=hn===0?1:Ue((ie-qe.percent)/hn,1);Et.easingFunc&&(vn=Et.easingFunc(vn));var _n=le?this._additiveValue:xe?tmpRgba:z[$e];if((isArrayValueType(pe)||xe)&&!_n&&(_n=this._additiveValue=[]),this.discrete)z[$e]=vn<1?qe.rawValue:Et.rawValue;else if(isArrayValueType(pe))pe===VALUE_TYPE_1D_ARRAY?interpolate1DArray(_n,qe[ue],Et[ue],vn):interpolate2DArray(_n,qe[ue],Et[ue],vn);else if(isGradientValueType(pe)){var bn=qe[ue],Sn=Et[ue],Cn=pe===VALUE_TYPE_LINEAR_GRADIENT;z[$e]={type:Cn?"linear":"radial",x:interpolateNumber$1(bn.x,Sn.x,vn),y:interpolateNumber$1(bn.y,Sn.y,vn),colorStops:map$2(bn.colorStops,function($n,wn){var Tn=Sn.colorStops[wn];return{offset:interpolateNumber$1($n.offset,Tn.offset,vn),color:rgba2String(interpolate1DArray([],$n.color,Tn.color,vn))}}),global:Sn.global},Cn?(z[$e].x2=interpolateNumber$1(bn.x2,Sn.x2,vn),z[$e].y2=interpolateNumber$1(bn.y2,Sn.y2,vn)):z[$e].r=interpolateNumber$1(bn.r,Sn.r,vn)}else if(xe)interpolate1DArray(_n,qe[ue],Et[ue],vn),le||(z[$e]=rgba2String(_n));else{var En=interpolateNumber$1(qe[ue],Et[ue],vn);le?this._additiveValue=En:z[$e]=En}le&&this._addToTarget(z)}}},$.prototype._addToTarget=function(z){var ie=this.valType,le=this.propName,ue=this._additiveValue;ie===VALUE_TYPE_NUMBER?z[le]=z[le]+ue:ie===VALUE_TYPE_COLOR?(parse$1(z[le],tmpRgba),add1DArray(tmpRgba,tmpRgba,ue,1),z[le]=rgba2String(tmpRgba)):ie===VALUE_TYPE_1D_ARRAY?add1DArray(z[le],z[le],ue,1):ie===VALUE_TYPE_2D_ARRAY&&add2DArray(z[le],z[le],ue,1)},$}(),Animator=function(){function $(z,ie,le,ue){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=z,this._loop=ie,ie&&ue){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=ue,this._allowDiscrete=le}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,ie,le){return this.whenWithKeys(z,ie,keys(ie),le)},$.prototype.whenWithKeys=function(z,ie,le,ue){for(var pe=this._tracks,_e=0;_e<le.length;_e++){var Ce=le[_e],$e=pe[Ce];if(!$e){$e=pe[Ce]=new Track(Ce);var xe=void 0,Ie=this._getAdditiveTrack(Ce);if(Ie){var ze=Ie.keyframes,Ue=ze[ze.length-1];xe=Ue&&Ue.value,Ie.valType===VALUE_TYPE_COLOR&&xe&&(xe=rgba2String(xe))}else xe=this._target[Ce];if(xe==null)continue;z>0&&$e.addKeyframe(0,cloneValue(xe),ue),this._trackKeys.push(Ce)}$e.addKeyframe(z,cloneValue(ie[Ce]),ue)}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 ie=z.length,le=0;le<ie;le++)z[le].call(this)},$.prototype._abortedCallback=function(){this._setTracksFinished();var z=this.animation,ie=this._abortedCbs;if(z&&z.removeClip(this._clip),this._clip=null,ie)for(var le=0;le<ie.length;le++)ie[le].call(this)},$.prototype._setTracksFinished=function(){for(var z=this._tracks,ie=this._trackKeys,le=0;le<ie.length;le++)z[ie[le]].setFinished()},$.prototype._getAdditiveTrack=function(z){var ie,le=this._additiveAnimators;if(le)for(var ue=0;ue<le.length;ue++){var pe=le[ue].getTrack(z);pe&&(ie=pe)}return ie},$.prototype.start=function(z){if(!(this._started>0)){this._started=1;for(var ie=this,le=[],ue=this._maxTime||0,pe=0;pe<this._trackKeys.length;pe++){var _e=this._trackKeys[pe],Ce=this._tracks[_e],$e=this._getAdditiveTrack(_e),xe=Ce.keyframes,Ie=xe.length;if(Ce.prepare(ue,$e),Ce.needsAnimate())if(!this._allowDiscrete&&Ce.discrete){var ze=xe[Ie-1];ze&&(ie._target[Ce.propName]=ze.rawValue),Ce.setFinished()}else le.push(Ce)}if(le.length||this._force){var Ue=new Clip$1({life:ue,loop:this._loop,delay:this._delay||0,onframe:function(qe){ie._started=2;var Et=ie._additiveAnimators;if(Et){for(var Lt=!1,hn=0;hn<Et.length;hn++)if(Et[hn]._clip){Lt=!0;break}Lt||(ie._additiveAnimators=null)}for(var hn=0;hn<le.length;hn++)le[hn].step(ie._target,qe);var vn=ie._onframeCbs;if(vn)for(var hn=0;hn<vn.length;hn++)vn[hn](ie._target,qe)},ondestroy:function(){ie._doneCallback()}});this._clip=Ue,this.animation&&this.animation.addClip(Ue),z&&Ue.setEasing(z)}else this._doneCallback();return this}},$.prototype.stop=function(z){if(this._clip){var ie=this._clip;z&&ie.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(ie){return z._tracks[ie]})},$.prototype.stopTracks=function(z,ie){if(!z.length||!this._clip)return!0;for(var le=this._tracks,ue=this._trackKeys,pe=0;pe<z.length;pe++){var _e=le[z[pe]];_e&&!_e.isFinished()&&(ie?_e.step(this._target,1):this._started===1&&_e.step(this._target,0),_e.setFinished())}for(var Ce=!0,pe=0;pe<ue.length;pe++)if(!le[ue[pe]].isFinished()){Ce=!1;break}return Ce&&this._abortedCallback(),Ce},$.prototype.saveTo=function(z,ie,le){if(z){ie=ie||this._trackKeys;for(var ue=0;ue<ie.length;ue++){var pe=ie[ue],_e=this._tracks[pe];if(!(!_e||_e.isFinished())){var Ce=_e.keyframes,$e=Ce[le?0:Ce.length-1];$e&&(z[pe]=cloneValue($e.rawValue))}}}},$.prototype.__changeFinalValue=function(z,ie){ie=ie||keys(z);for(var le=0;le<ie.length;le++){var ue=ie[le],pe=this._tracks[ue];if(pe){var _e=pe.keyframes;if(_e.length>1){var Ce=_e.pop();pe.addKeyframe(Ce.time,z[ue]),pe.prepare(this._maxTime,pe.getAdditiveTrack())}}}},$}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function($){__extends(z,$);function z(ie){var le=$.call(this)||this;return le._running=!1,le._time=0,le._pausedTime=0,le._pauseStart=0,le._paused=!1,ie=ie||{},le.stage=ie.stage||{},le}return z.prototype.addClip=function(ie){ie.animation&&this.removeClip(ie),this._head?(this._tail.next=ie,ie.prev=this._tail,ie.next=null,this._tail=ie):this._head=this._tail=ie,ie.animation=this},z.prototype.addAnimator=function(ie){ie.animation=this;var le=ie.getClip();le&&this.addClip(le)},z.prototype.removeClip=function(ie){if(ie.animation){var le=ie.prev,ue=ie.next;le?le.next=ue:this._head=ue,ue?ue.prev=le:this._tail=le,ie.next=ie.prev=ie.animation=null}},z.prototype.removeAnimator=function(ie){var le=ie.getClip();le&&this.removeClip(le),ie.animation=null},z.prototype.update=function(ie){for(var le=getTime()-this._pausedTime,ue=le-this._time,pe=this._head;pe;){var _e=pe.next,Ce=pe.step(le,ue);Ce&&(pe.ondestroy(),this.removeClip(pe)),pe=_e}this._time=le,ie||(this.trigger("frame",ue),this.stage.update&&this.stage.update())},z.prototype._startLoop=function(){var ie=this;this._running=!0;function le(){ie._running&&(requestAnimationFrame$2(le),!ie._paused&&ie.update())}requestAnimationFrame$2(le)},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 ie=this._head;ie;){var le=ie.next;ie.prev=ie.next=ie.animation=null,ie=le}this._head=this._tail=null},z.prototype.isFinished=function(){return this._head==null},z.prototype.animate=function(ie,le){le=le||{},this.start();var ue=new Animator$1(ie,le.loop);return this.addAnimator(ue),ue},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"],ie={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},le=map$2($,function(ue){var pe=ue.replace("mouse","pointer");return ie.hasOwnProperty(pe)?pe:ue});return{mouse:$,touch:z,pointer:le}}(),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 ie=z,le=!1;ie&&ie.nodeType!==9&&!(le=ie.domBelongToZr||ie!==z&&ie===$.painterRoot);)ie=ie.parentNode;return le}var FakeGlobalEvent=function(){function $(z,ie){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=ie.type,this.target=this.currentTarget=z.dom,this.pointerType=ie.pointerType,this.clientX=ie.clientX,this.clientY=ie.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 ie=z.domHandlers;env$1.pointerEventsSupported?each$c(localNativeListenerNames.pointer,function(le){mountSingleDOMEventListener(z,le,function(ue){ie[le].call($,ue)})}):(env$1.touchEventsSupported&&each$c(localNativeListenerNames.touch,function(le){mountSingleDOMEventListener(z,le,function(ue){ie[le].call($,ue),setTouchTimer(z)})}),each$c(localNativeListenerNames.mouse,function(le){mountSingleDOMEventListener(z,le,function(ue){ue=getNativeEvent(ue),z.touching||ie[le].call($,ue)})}))}function mountGlobalDOMEventListeners($,z){env$1.pointerEventsSupported?each$c(globalNativeListenerNames.pointer,ie):env$1.touchEventsSupported||each$c(globalNativeListenerNames.mouse,ie);function ie(le){function ue(pe){pe=getNativeEvent(pe),isLocalEl($,pe.target)||(pe=normalizeGlobalEvent($,pe),z.domHandlers[le].call($,pe))}mountSingleDOMEventListener(z,le,ue,{capture:!0})}}function mountSingleDOMEventListener($,z,ie,le){$.mounted[z]=ie,$.listenerOpts[z]=le,addEventListener($.domTarget,z,ie,le)}function unmountDOMEventListeners($){var z=$.mounted;for(var ie in z)z.hasOwnProperty(ie)&&removeEventListener($.domTarget,ie,z[ie],$.listenerOpts[ie]);$.mounted={}}var DOMHandlerScope=function(){function $(z,ie){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=z,this.domHandlers=ie}return $}(),HandlerDomProxy=function($){__extends(z,$);function z(ie,le){var ue=$.call(this)||this;return ue.__pointerCapturing=!1,ue.dom=ie,ue.painterRoot=le,ue._localHandlerScope=new DOMHandlerScope(ie,localDOMHandlers),globalEventSupported&&(ue._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(ue,ue._localHandlerScope),ue}return z.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},z.prototype.setCursor=function(ie){this.dom.style&&(this.dom.style.cursor=ie||"default")},z.prototype.__togglePointerCapture=function(ie){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+ie){this.__pointerCapturing=ie;var le=this._globalHandlerScope;ie?mountGlobalDOMEventListeners(this,le):unmountDOMEventListeners(le)}},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,ie=this.needLocalTransform(),le=this.transform;if(!(ie||z)){le&&mIdentity(le);return}le=le||create(),ie?this.getLocalTransform(le):mIdentity(le),z&&(ie?mul(le,z,le):copy(le,z)),this.transform=le,this._resolveGlobalScaleRatio(le)},$.prototype._resolveGlobalScaleRatio=function(z){var ie=this.globalScaleRatio;if(ie!=null&&ie!==1){this.getGlobalScale(scaleTmp);var le=scaleTmp[0]<0?-1:1,ue=scaleTmp[1]<0?-1:1,pe=((scaleTmp[0]-le)*ie+le)/scaleTmp[0]||0,_e=((scaleTmp[1]-ue)*ie+ue)/scaleTmp[1]||0;z[0]*=pe,z[1]*=pe,z[2]*=_e,z[3]*=_e}this.invTransform=this.invTransform||create(),invert(this.invTransform,z)},$.prototype.getComputedTransform=function(){for(var z=this,ie=[];z;)ie.push(z),z=z.parent;for(;z=ie.pop();)z.updateTransform();return this.transform},$.prototype.setLocalTransform=function(z){if(z){var ie=z[0]*z[0]+z[1]*z[1],le=z[2]*z[2]+z[3]*z[3],ue=Math.atan2(z[1],z[0]),pe=Math.PI/2+ue-Math.atan2(z[3],z[2]);le=Math.sqrt(le)*Math.cos(pe),ie=Math.sqrt(ie),this.skewX=pe,this.skewY=0,this.rotation=-ue,this.x=+z[4],this.y=+z[5],this.scaleX=ie,this.scaleY=le,this.originX=0,this.originY=0}},$.prototype.decomposeTransform=function(){if(this.transform){var z=this.parent,ie=this.transform;z&&z.transform&&(mul(tmpTransform,z.invTransform,ie),ie=tmpTransform);var le=this.originX,ue=this.originY;(le||ue)&&(originTransform[4]=le,originTransform[5]=ue,mul(tmpTransform,ie,originTransform),tmpTransform[4]-=le,tmpTransform[5]-=ue,ie=tmpTransform),this.setLocalTransform(ie)}},$.prototype.getGlobalScale=function(z){var ie=this.transform;return z=z||[],ie?(z[0]=Math.sqrt(ie[0]*ie[0]+ie[1]*ie[1]),z[1]=Math.sqrt(ie[2]*ie[2]+ie[3]*ie[3]),ie[0]<0&&(z[0]=-z[0]),ie[3]<0&&(z[1]=-z[1]),z):(z[0]=1,z[1]=1,z)},$.prototype.transformCoordToLocal=function(z,ie){var le=[z,ie],ue=this.invTransform;return ue&&applyTransform$1(le,le,ue),le},$.prototype.transformCoordToGlobal=function(z,ie){var le=[z,ie],ue=this.transform;return ue&&applyTransform$1(le,le,ue),le},$.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,ie){ie=ie||[];var le=z.originX||0,ue=z.originY||0,pe=z.scaleX,_e=z.scaleY,Ce=z.anchorX,$e=z.anchorY,xe=z.rotation||0,Ie=z.x,ze=z.y,Ue=z.skewX?Math.tan(z.skewX):0,qe=z.skewY?Math.tan(-z.skewY):0;if(le||ue||Ce||$e){var Et=le+Ce,Lt=ue+$e;ie[4]=-Et*pe-Ue*Lt*_e,ie[5]=-Lt*_e-qe*Et*pe}else ie[4]=ie[5]=0;return ie[0]=pe,ie[3]=_e,ie[1]=qe*pe,ie[2]=Ue*_e,xe&&rotate(ie,ie,xe),ie[4]+=le+Ie,ie[5]+=ue+ze,ie},$.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 ie=0;ie<TRANSFORMABLE_PROPS.length;ie++){var le=TRANSFORMABLE_PROPS[ie];$[le]=z[le]}}const Transformable$1=Transformable;var textWidthCache={};function getWidth($,z){z=z||DEFAULT_FONT;var ie=textWidthCache[z];ie||(ie=textWidthCache[z]=new LRU$1(500));var le=ie.get($);return le==null&&(le=platformApi.measureText($,z).width,ie.put($,le)),le}function innerGetBoundingRect($,z,ie,le){var ue=getWidth($,z),pe=getLineHeight(z),_e=adjustTextX(0,ue,ie),Ce=adjustTextY(0,pe,le),$e=new BoundingRect$1(_e,Ce,ue,pe);return $e}function getBoundingRect($,z,ie,le){var ue=(($||"")+"").split(`
`),pe=ue.length;if(pe===1)return innerGetBoundingRect(ue[0],z,ie,le);for(var _e=new BoundingRect$1(0,0,0,0),Ce=0;Ce<ue.length;Ce++){var $e=innerGetBoundingRect(ue[Ce],z,ie,le);Ce===0?_e.copy($e):_e.union($e)}return _e}function adjustTextX($,z,ie){return ie==="right"?$-=z:ie==="center"&&($-=z/2),$}function adjustTextY($,z,ie){return ie==="middle"?$-=z/2:ie==="bottom"&&($-=z),$}function getLineHeight($){return getWidth("国",$)}function parsePercent$1($,z){return typeof $=="string"?$.lastIndexOf("%")>=0?parseFloat($)/100*z:parseFloat($):$}function calculateTextPosition($,z,ie){var le=z.position||"inside",ue=z.distance!=null?z.distance:5,pe=ie.height,_e=ie.width,Ce=pe/2,$e=ie.x,xe=ie.y,Ie="left",ze="top";if(le instanceof Array)$e+=parsePercent$1(le[0],ie.width),xe+=parsePercent$1(le[1],ie.height),Ie=null,ze=null;else switch(le){case"left":$e-=ue,xe+=Ce,Ie="right",ze="middle";break;case"right":$e+=ue+_e,xe+=Ce,ze="middle";break;case"top":$e+=_e/2,xe-=ue,Ie="center",ze="bottom";break;case"bottom":$e+=_e/2,xe+=pe+ue,Ie="center";break;case"inside":$e+=_e/2,xe+=Ce,Ie="center",ze="middle";break;case"insideLeft":$e+=ue,xe+=Ce,ze="middle";break;case"insideRight":$e+=_e-ue,xe+=Ce,Ie="right",ze="middle";break;case"insideTop":$e+=_e/2,xe+=ue,Ie="center";break;case"insideBottom":$e+=_e/2,xe+=pe-ue,Ie="center",ze="bottom";break;case"insideTopLeft":$e+=ue,xe+=ue;break;case"insideTopRight":$e+=_e-ue,xe+=ue,Ie="right";break;case"insideBottomLeft":$e+=ue,xe+=pe-ue,ze="bottom";break;case"insideBottomRight":$e+=_e-ue,xe+=pe-ue,Ie="right",ze="bottom";break}return $=$||{},$.x=$e,$.y=xe,$.align=Ie,$.verticalAlign=ze,$}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,ie,le){switch(this.draggable){case"horizontal":ie=0;break;case"vertical":z=0;break}var ue=this.transform;ue||(ue=this.transform=[1,0,0,1,0,0]),ue[4]+=z,ue[5]+=ie,this.decomposeTransform(),this.markRedraw()},$.prototype.beforeUpdate=function(){},$.prototype.afterUpdate=function(){},$.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},$.prototype.updateInnerText=function(z){var ie=this._textContent;if(ie&&(!ie.ignore||z)){this.textConfig||(this.textConfig={});var le=this.textConfig,ue=le.local,pe=ie.innerTransformable,_e=void 0,Ce=void 0,$e=!1;pe.parent=ue?this:null;var xe=!1;if(pe.copyTransform(ie),le.position!=null){var Ie=tmpBoundingRect;le.layoutRect?Ie.copy(le.layoutRect):Ie.copy(this.getBoundingRect()),ue||Ie.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,le,Ie):calculateTextPosition(tmpTextPosCalcRes,le,Ie),pe.x=tmpTextPosCalcRes.x,pe.y=tmpTextPosCalcRes.y,_e=tmpTextPosCalcRes.align,Ce=tmpTextPosCalcRes.verticalAlign;var ze=le.origin;if(ze&&le.rotation!=null){var Ue=void 0,qe=void 0;ze==="center"?(Ue=Ie.width*.5,qe=Ie.height*.5):(Ue=parsePercent$1(ze[0],Ie.width),qe=parsePercent$1(ze[1],Ie.height)),xe=!0,pe.originX=-pe.x+Ue+(ue?0:Ie.x),pe.originY=-pe.y+qe+(ue?0:Ie.y)}}le.rotation!=null&&(pe.rotation=le.rotation);var Et=le.offset;Et&&(pe.x+=Et[0],pe.y+=Et[1],xe||(pe.originX=-Et[0],pe.originY=-Et[1]));var Lt=le.inside==null?typeof le.position=="string"&&le.position.indexOf("inside")>=0:le.inside,hn=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),vn=void 0,_n=void 0,bn=void 0;Lt&&this.canBeInsideText()?(vn=le.insideFill,_n=le.insideStroke,(vn==null||vn==="auto")&&(vn=this.getInsideTextFill()),(_n==null||_n==="auto")&&(_n=this.getInsideTextStroke(vn),bn=!0)):(vn=le.outsideFill,_n=le.outsideStroke,(vn==null||vn==="auto")&&(vn=this.getOutsideFill()),(_n==null||_n==="auto")&&(_n=this.getOutsideStroke(vn),bn=!0)),vn=vn||"#000",(vn!==hn.fill||_n!==hn.stroke||bn!==hn.autoStroke||_e!==hn.align||Ce!==hn.verticalAlign)&&($e=!0,hn.fill=vn,hn.stroke=_n,hn.autoStroke=bn,hn.align=_e,hn.verticalAlign=Ce,ie.setDefaultTextStyle(hn)),ie.__dirty|=REDRAW_BIT,$e&&ie.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 ie=this.__zr&&this.__zr.getBackgroundColor(),le=typeof ie=="string"&&parse$1(ie);le||(le=[255,255,255,1]);for(var ue=le[3],pe=this.__zr.isDarkMode(),_e=0;_e<3;_e++)le[_e]=le[_e]*ue+(pe?0:255)*(1-ue);return le[3]=1,stringify(le,"rgba")},$.prototype.traverse=function(z,ie){},$.prototype.attrKV=function(z,ie){z==="textConfig"?this.setTextConfig(ie):z==="textContent"?this.setTextContent(ie):z==="clipPath"?this.setClipPath(ie):z==="extra"?(this.extra=this.extra||{},extend(this.extra,ie)):this[z]=ie},$.prototype.hide=function(){this.ignore=!0,this.markRedraw()},$.prototype.show=function(){this.ignore=!1,this.markRedraw()},$.prototype.attr=function(z,ie){if(typeof z=="string")this.attrKV(z,ie);else if(isObject$3(z))for(var le=z,ue=keys(le),pe=0;pe<ue.length;pe++){var _e=ue[pe];this.attrKV(_e,z[_e])}return this.markRedraw(),this},$.prototype.saveCurrentToNormalState=function(z){this._innerSaveToNormal(z);for(var ie=this._normalState,le=0;le<this.animators.length;le++){var ue=this.animators[le],pe=ue.__fromStateTransition;if(!(ue.getLoop()||pe&&pe!==PRESERVED_NORMAL_STATE)){var _e=ue.targetName,Ce=_e?ie[_e]:ie;ue.saveTo(Ce)}}},$.prototype._innerSaveToNormal=function(z){var ie=this._normalState;ie||(ie=this._normalState={}),z.textConfig&&!ie.textConfig&&(ie.textConfig=this.textConfig),this._savePrimaryToNormal(z,ie,PRIMARY_STATES_KEYS$1)},$.prototype._savePrimaryToNormal=function(z,ie,le){for(var ue=0;ue<le.length;ue++){var pe=le[ue];z[pe]!=null&&!(pe in ie)&&(ie[pe]=this[pe])}},$.prototype.hasState=function(){return this.currentStates.length>0},$.prototype.getState=function(z){return this.states[z]},$.prototype.ensureState=function(z){var ie=this.states;return ie[z]||(ie[z]={}),ie[z]},$.prototype.clearStates=function(z){this.useState(PRESERVED_NORMAL_STATE,!1,z)},$.prototype.useState=function(z,ie,le,ue){var pe=z===PRESERVED_NORMAL_STATE,_e=this.hasState();if(!(!_e&&pe)){var Ce=this.currentStates,$e=this.stateTransition;if(!(indexOf(Ce,z)>=0&&(ie||Ce.length===1))){var xe;if(this.stateProxy&&!pe&&(xe=this.stateProxy(z)),xe||(xe=this.states&&this.states[z]),!xe&&!pe){logError("State "+z+" not exists.");return}pe||this.saveCurrentToNormalState(xe);var Ie=!!(xe&&xe.hoverLayer||ue);Ie&&this._toggleHoverLayerFlag(!0),this._applyStateObj(z,xe,this._normalState,ie,!le&&!this.__inHover&&$e&&$e.duration>0,$e);var ze=this._textContent,Ue=this._textGuide;return ze&&ze.useState(z,ie,le,Ie),Ue&&Ue.useState(z,ie,le,Ie),pe?(this.currentStates=[],this._normalState={}):ie?this.currentStates.push(z):this.currentStates=[z],this._updateAnimationTargets(),this.markRedraw(),!Ie&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),xe}}},$.prototype.useStates=function(z,ie,le){if(!z.length)this.clearStates();else{var ue=[],pe=this.currentStates,_e=z.length,Ce=_e===pe.length;if(Ce){for(var $e=0;$e<_e;$e++)if(z[$e]!==pe[$e]){Ce=!1;break}}if(Ce)return;for(var $e=0;$e<_e;$e++){var xe=z[$e],Ie=void 0;this.stateProxy&&(Ie=this.stateProxy(xe,z)),Ie||(Ie=this.states[xe]),Ie&&ue.push(Ie)}var ze=ue[_e-1],Ue=!!(ze&&ze.hoverLayer||le);Ue&&this._toggleHoverLayerFlag(!0);var qe=this._mergeStates(ue),Et=this.stateTransition;this.saveCurrentToNormalState(qe),this._applyStateObj(z.join(","),qe,this._normalState,!1,!ie&&!this.__inHover&&Et&&Et.duration>0,Et);var Lt=this._textContent,hn=this._textGuide;Lt&&Lt.useStates(z,ie,Ue),hn&&hn.useStates(z,ie,Ue),this._updateAnimationTargets(),this.currentStates=z.slice(),this.markRedraw(),!Ue&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},$.prototype._updateAnimationTargets=function(){for(var z=0;z<this.animators.length;z++){var ie=this.animators[z];ie.targetName&&ie.changeTarget(this[ie.targetName])}},$.prototype.removeState=function(z){var ie=indexOf(this.currentStates,z);if(ie>=0){var le=this.currentStates.slice();le.splice(ie,1),this.useStates(le)}},$.prototype.replaceState=function(z,ie,le){var ue=this.currentStates.slice(),pe=indexOf(ue,z),_e=indexOf(ue,ie)>=0;pe>=0?_e?ue.splice(pe,1):ue[pe]=ie:le&&!_e&&ue.push(ie),this.useStates(ue)},$.prototype.toggleState=function(z,ie){ie?this.useState(z,!0):this.removeState(z)},$.prototype._mergeStates=function(z){for(var ie={},le,ue=0;ue<z.length;ue++){var pe=z[ue];extend(ie,pe),pe.textConfig&&(le=le||{},extend(le,pe.textConfig))}return le&&(ie.textConfig=le),ie},$.prototype._applyStateObj=function(z,ie,le,ue,pe,_e){var Ce=!(ie&&ue);ie&&ie.textConfig?(this.textConfig=extend({},ue?this.textConfig:le.textConfig),extend(this.textConfig,ie.textConfig)):Ce&&le.textConfig&&(this.textConfig=le.textConfig);for(var $e={},xe=!1,Ie=0;Ie<PRIMARY_STATES_KEYS$1.length;Ie++){var ze=PRIMARY_STATES_KEYS$1[Ie],Ue=pe&&DEFAULT_ANIMATABLE_MAP[ze];ie&&ie[ze]!=null?Ue?(xe=!0,$e[ze]=ie[ze]):this[ze]=ie[ze]:Ce&&le[ze]!=null&&(Ue?(xe=!0,$e[ze]=le[ze]):this[ze]=le[ze])}if(!pe)for(var Ie=0;Ie<this.animators.length;Ie++){var qe=this.animators[Ie],Et=qe.targetName;qe.getLoop()||qe.__changeFinalValue(Et?(ie||le)[Et]:ie||le)}xe&&this._transitionState(z,$e,_e)},$.prototype._attachComponent=function(z){if(!(z.__zr&&!z.__hostTarget)&&z!==this){var ie=this.__zr;ie&&z.addSelfToZr(ie),z.__zr=ie,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 ie=this._textContent;ie!==z&&(ie&&ie!==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 ie=this._textContent,le=this._textGuide;ie&&(ie.__inHover=z),le&&(le.__inHover=z)},$.prototype.addSelfToZr=function(z){if(this.__zr!==z){this.__zr=z;var ie=this.animators;if(ie)for(var le=0;le<ie.length;le++)z.animation.addAnimator(ie[le]);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 ie=this.animators;if(ie)for(var le=0;le<ie.length;le++)z.animation.removeAnimator(ie[le]);this._clipPath&&this._clipPath.removeSelfFromZr(z),this._textContent&&this._textContent.removeSelfFromZr(z),this._textGuide&&this._textGuide.removeSelfFromZr(z)}},$.prototype.animate=function(z,ie,le){var ue=z?this[z]:this,pe=new Animator$1(ue,ie,le);return z&&(pe.targetName=z),this.addAnimator(pe,z),pe},$.prototype.addAnimator=function(z,ie){var le=this.__zr,ue=this;z.during(function(){ue.updateDuringAnimation(ie)}).done(function(){var pe=ue.animators,_e=indexOf(pe,z);_e>=0&&pe.splice(_e,1)}),this.animators.push(z),le&&le.animation.addAnimator(z),le&&le.wakeUp()},$.prototype.updateDuringAnimation=function(z){this.markRedraw()},$.prototype.stopAnimation=function(z,ie){for(var le=this.animators,ue=le.length,pe=[],_e=0;_e<ue;_e++){var Ce=le[_e];!z||z===Ce.scope?Ce.stop(ie):pe.push(Ce)}return this.animators=pe,this},$.prototype.animateTo=function(z,ie,le){animateTo(this,z,ie,le)},$.prototype.animateFrom=function(z,ie,le){animateTo(this,z,ie,le,!0)},$.prototype._transitionState=function(z,ie,le,ue){for(var pe=animateTo(this,ie,le,ue),_e=0;_e<pe.length;_e++)pe[_e].__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 ie(le,ue,pe,_e){Object.defineProperty(z,le,{get:function(){if(!this[ue]){var $e=this[ue]=[];Ce(this,$e)}return this[ue]},set:function($e){this[pe]=$e[0],this[_e]=$e[1],this[ue]=$e,Ce(this,$e)}});function Ce($e,xe){Object.defineProperty(xe,0,{get:function(){return $e[pe]},set:function(Ie){$e[pe]=Ie}}),Object.defineProperty(xe,1,{get:function(){return $e[_e]},set:function(Ie){$e[_e]=Ie}})}}Object.defineProperty&&(ie("position","_legacyPos","x","y"),ie("scale","_legacyScale","scaleX","scaleY"),ie("origin","_legacyOrigin","originX","originY"))}(),$}();mixin(Element$1,Eventful$1);mixin(Element$1,Transformable$1);function animateTo($,z,ie,le,ue){ie=ie||{};var pe=[];animateToShallow($,"",$,z,ie,le,pe,ue);var _e=pe.length,Ce=!1,$e=ie.done,xe=ie.aborted,Ie=function(){Ce=!0,_e--,_e<=0&&(Ce?$e&&$e():xe&&xe())},ze=function(){_e--,_e<=0&&(Ce?$e&&$e():xe&&xe())};_e||$e&&$e(),pe.length>0&&ie.during&&pe[0].during(function(Et,Lt){ie.during(Lt)});for(var Ue=0;Ue<pe.length;Ue++){var qe=pe[Ue];Ie&&qe.done(Ie),ze&&qe.aborted(ze),ie.force&&qe.duration(ie.duration),qe.start(ie.easing)}return pe}function copyArrShallow($,z,ie){for(var le=0;le<ie;le++)$[le]=z[le]}function is2DArray($){return isArrayLike($[0])}function copyValue($,z,ie){if(isArrayLike(z[ie]))if(isArrayLike($[ie])||($[ie]=[]),isTypedArray(z[ie])){var le=z[ie].length;$[ie].length!==le&&($[ie]=new z[ie].constructor(le),copyArrShallow($[ie],z[ie],le))}else{var ue=z[ie],pe=$[ie],_e=ue.length;if(is2DArray(ue))for(var Ce=ue[0].length,$e=0;$e<_e;$e++)pe[$e]?copyArrShallow(pe[$e],ue[$e],Ce):pe[$e]=Array.prototype.slice.call(ue[$e]);else copyArrShallow(pe,ue,_e);pe.length=ue.length}else $[ie]=z[ie]}function isValueSame($,z){return $===z||isArrayLike($)&&isArrayLike(z)&&is1DArraySame($,z)}function is1DArraySame($,z){var ie=$.length;if(ie!==z.length)return!1;for(var le=0;le<ie;le++)if($[le]!==z[le])return!1;return!0}function animateToShallow($,z,ie,le,ue,pe,_e,Ce){for(var $e=keys(le),xe=ue.duration,Ie=ue.delay,ze=ue.additive,Ue=ue.setToFinal,qe=!isObject$3(pe),Et=$.animators,Lt=[],hn=0;hn<$e.length;hn++){var vn=$e[hn],_n=le[vn];if(_n!=null&&ie[vn]!=null&&(qe||pe[vn]))if(isObject$3(_n)&&!isArrayLike(_n)&&!isGradientObject(_n)){if(z){Ce||(ie[vn]=_n,$.updateDuringAnimation(z));continue}animateToShallow($,vn,ie[vn],_n,ue,pe&&pe[vn],_e,Ce)}else Lt.push(vn);else Ce||(ie[vn]=_n,$.updateDuringAnimation(z),Lt.push(vn))}var bn=Lt.length;if(!ze&&bn)for(var Sn=0;Sn<Et.length;Sn++){var Cn=Et[Sn];if(Cn.targetName===z){var En=Cn.stopTracks(Lt);if(En){var $n=indexOf(Et,Cn);Et.splice($n,1)}}}if(ue.force||(Lt=filter(Lt,function(Pn){return!isValueSame(le[Pn],ie[Pn])}),bn=Lt.length),bn>0||ue.force&&!_e.length){var wn=void 0,Tn=void 0,xn=void 0;if(Ce){Tn={},Ue&&(wn={});for(var Sn=0;Sn<bn;Sn++){var vn=Lt[Sn];Tn[vn]=ie[vn],Ue?wn[vn]=le[vn]:ie[vn]=le[vn]}}else if(Ue){xn={};for(var Sn=0;Sn<bn;Sn++){var vn=Lt[Sn];xn[vn]=cloneValue(ie[vn]),copyValue(ie,le,vn)}}var Cn=new Animator$1(ie,!1,!1,ze?filter(Et,function(kn){return kn.targetName===z}):null);Cn.targetName=z,ue.scope&&(Cn.scope=ue.scope),Ue&&wn&&Cn.whenWithKeys(0,wn,Lt),xn&&Cn.whenWithKeys(0,xn,Lt),Cn.whenWithKeys(xe??500,Ce?Tn:le,Lt).delay(Ie||0),$.addAnimator(Cn,z),_e.push(Cn)}}const Element$2=Element$1;var Group$2=function($){__extends(z,$);function z(ie){var le=$.call(this)||this;return le.isGroup=!0,le._children=[],le.attr(ie),le}return z.prototype.childrenRef=function(){return this._children},z.prototype.children=function(){return this._children.slice()},z.prototype.childAt=function(ie){return this._children[ie]},z.prototype.childOfName=function(ie){for(var le=this._children,ue=0;ue<le.length;ue++)if(le[ue].name===ie)return le[ue]},z.prototype.childCount=function(){return this._children.length},z.prototype.add=function(ie){return ie&&ie!==this&&ie.parent!==this&&(this._children.push(ie),this._doAdd(ie)),this},z.prototype.addBefore=function(ie,le){if(ie&&ie!==this&&ie.parent!==this&&le&&le.parent===this){var ue=this._children,pe=ue.indexOf(le);pe>=0&&(ue.splice(pe,0,ie),this._doAdd(ie))}return this},z.prototype.replace=function(ie,le){var ue=indexOf(this._children,ie);return ue>=0&&this.replaceAt(le,ue),this},z.prototype.replaceAt=function(ie,le){var ue=this._children,pe=ue[le];if(ie&&ie!==this&&ie.parent!==this&&ie!==pe){ue[le]=ie,pe.parent=null;var _e=this.__zr;_e&&pe.removeSelfFromZr(_e),this._doAdd(ie)}return this},z.prototype._doAdd=function(ie){ie.parent&&ie.parent.remove(ie),ie.parent=this;var le=this.__zr;le&&le!==ie.__zr&&ie.addSelfToZr(le),le&&le.refresh()},z.prototype.remove=function(ie){var le=this.__zr,ue=this._children,pe=indexOf(ue,ie);return pe<0?this:(ue.splice(pe,1),ie.parent=null,le&&ie.removeSelfFromZr(le),le&&le.refresh(),this)},z.prototype.removeAll=function(){for(var ie=this._children,le=this.__zr,ue=0;ue<ie.length;ue++){var pe=ie[ue];le&&pe.removeSelfFromZr(le),pe.parent=null}return ie.length=0,this},z.prototype.eachChild=function(ie,le){for(var ue=this._children,pe=0;pe<ue.length;pe++){var _e=ue[pe];ie.call(le,_e,pe)}return this},z.prototype.traverse=function(ie,le){for(var ue=0;ue<this._children.length;ue++){var pe=this._children[ue],_e=ie.call(le,pe);pe.isGroup&&!_e&&pe.traverse(ie,le)}return this},z.prototype.addSelfToZr=function(ie){$.prototype.addSelfToZr.call(this,ie);for(var le=0;le<this._children.length;le++){var ue=this._children[le];ue.addSelfToZr(ie)}},z.prototype.removeSelfFromZr=function(ie){$.prototype.removeSelfFromZr.call(this,ie);for(var le=0;le<this._children.length;le++){var ue=this._children[le];ue.removeSelfFromZr(ie)}},z.prototype.getBoundingRect=function(ie){for(var le=new BoundingRect$1(0,0,0,0),ue=ie||this._children,pe=[],_e=null,Ce=0;Ce<ue.length;Ce++){var $e=ue[Ce];if(!($e.ignore||$e.invisible)){var xe=$e.getBoundingRect(),Ie=$e.getLocalTransform(pe);Ie?(BoundingRect$1.applyTransform(le,xe,Ie),_e=_e||le.clone(),_e.union(le)):(_e=_e||xe.clone(),_e.union(xe))}}return _e||le},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,ie=0,le=z.length,ue=0;ue<le;ue++)ie+=lum(z[ue].color,1);return ie/=le,ie<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function $(z,ie,le){var ue=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,le=le||{},this.dom=ie,this.id=z;var pe=new Storage$1,_e=le.renderer||"canvas";painterCtors[_e]||(_e=keys(painterCtors)[0]),le.useDirtyRect=le.useDirtyRect==null?!1:le.useDirtyRect;var Ce=new painterCtors[_e](ie,pe,le,z),$e=le.ssr||Ce.ssrOnly;this.storage=pe,this.painter=Ce;var xe=!env$1.node&&!env$1.worker&&!$e?new HandlerProxy(Ce.getViewportRoot(),Ce.root):null,Ie=le.useCoarsePointer,ze=Ie==null||Ie==="auto"?env$1.touchEventsSupported:!!Ie,Ue=44,qe;ze&&(qe=retrieve2(le.pointerSize,Ue)),this.handler=new Handler$1(pe,Ce,xe,Ce.root,qe),this.animation=new Animation$1({stage:{update:$e?null:function(){return ue._flush(!0)}}}),$e||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,ie){this.painter.configLayer&&this.painter.configLayer(z,ie),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 ie,le=getTime();this._needsRefresh&&(ie=!0,this.refreshImmediately(z)),this._needsRefreshHover&&(ie=!0,this.refreshHoverImmediately());var ue=getTime();ie?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:ue-le})):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,ie){return this.handler.findHover(z,ie)},$.prototype.on=function(z,ie,le){return this.handler.on(z,ie,le),this},$.prototype.off=function(z,ie){this.handler.off(z,ie)},$.prototype.trigger=function(z,ie){this.handler.trigger(z,ie)},$.prototype.clear=function(){for(var z=this.storage.getRoots(),ie=0;ie<z.length;ie++)z[ie]instanceof Group$3&&z[ie].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 ie=new ZRender(guid(),$,z);return instances$1[ie.id]=ie,ie}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,ie,le){var ue=z[0],pe=z[1],_e=ie[0],Ce=ie[1],$e=pe-ue,xe=Ce-_e;if($e===0)return xe===0?_e:(_e+Ce)/2;if(le)if($e>0){if($<=ue)return _e;if($>=pe)return Ce}else{if($>=ue)return _e;if($<=pe)return Ce}else{if($===ue)return _e;if($===pe)return Ce}return($-ue)/$e*xe+_e}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,ie){return z==null&&(z=10),z=Math.min(Math.max(0,z),ROUND_SUPPORTED_PRECISION_MAX),$=(+$).toFixed(z),ie?$:+$}function asc$2($){return $.sort(function(z,ie){return z-ie}),$}function getPrecision($){if($=+$,isNaN($))return 0;if($>1e-14){for(var z=1,ie=0;ie<15;ie++,z*=10)if(Math.round($*z)/z===$)return ie}return getPrecisionSafe($)}function getPrecisionSafe($){var z=$.toString().toLowerCase(),ie=z.indexOf("e"),le=ie>0?+z.slice(ie+1):0,ue=ie>0?ie:z.length,pe=z.indexOf("."),_e=pe<0?0:ue-1-pe;return Math.max(0,_e-le)}function getPixelPrecision($,z){var ie=Math.log,le=Math.LN10,ue=Math.floor(ie($[1]-$[0])/le),pe=Math.round(ie(Math.abs(z[1]-z[0]))/le),_e=Math.min(Math.max(-ue+pe,0),20);return isFinite(_e)?_e:20}function getPercentWithPrecision($,z,ie){if(!$[z])return 0;var le=getPercentSeats($,ie);return le[z]||0}function getPercentSeats($,z){var ie=reduce($,function(qe,Et){return qe+(isNaN(Et)?0:Et)},0);if(ie===0)return[];for(var le=Math.pow(10,z),ue=map$2($,function(qe){return(isNaN(qe)?0:qe)/ie*le*100}),pe=le*100,_e=map$2(ue,function(qe){return Math.floor(qe)}),Ce=reduce(_e,function(qe,Et){return qe+Et},0),$e=map$2(ue,function(qe,Et){return qe-_e[Et]});Ce<pe;){for(var xe=Number.NEGATIVE_INFINITY,Ie=null,ze=0,Ue=$e.length;ze<Ue;++ze)$e[ze]>xe&&(xe=$e[ze],Ie=ze);++_e[Ie],$e[Ie]=0,++Ce}return map$2(_e,function(qe){return qe/le})}function addSafe($,z){var ie=Math.max(getPrecision($),getPrecision(z)),le=$+z;return ie>ROUND_SUPPORTED_PRECISION_MAX?le:round$1(le,ie)}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 ie=+z[4]||0;return z[8].toUpperCase()!=="Z"&&(ie-=+z[8].slice(0,3)),new Date(Date.UTC(+z[1],+(z[2]||1)-1,+z[3]||1,ie,+(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 ie=quantityExponent($),le=Math.pow(10,ie),ue=$/le,pe;return z?ue<1.5?pe=1:ue<2.5?pe=2:ue<4?pe=3:ue<7?pe=5:pe=10:ue<1?pe=1:ue<2?pe=2:ue<3?pe=3:ue<5?pe=5:pe=10,$=pe*le,ie>=-20?+$.toFixed(ie<0?-ie:0):$}function quantile($,z){var ie=($.length-1)*z+1,le=Math.floor(ie),ue=+$[le-1],pe=ie-le;return pe?ue+pe*($[le]-ue):ue}function reformIntervals($){$.sort(function($e,xe){return Ce($e,xe,0)?-1:1});for(var z=-1/0,ie=1,le=0;le<$.length;){for(var ue=$[le].interval,pe=$[le].close,_e=0;_e<2;_e++)ue[_e]<=z&&(ue[_e]=z,pe[_e]=_e?1:1-ie),z=ue[_e],ie=pe[_e];ue[0]===ue[1]&&pe[0]*pe[1]!==1?$.splice(le,1):le++}return $;function Ce($e,xe,Ie){return $e.interval[Ie]<xe.interval[Ie]||$e.interval[Ie]===xe.interval[Ie]&&($e.close[Ie]-xe.close[Ie]===(Ie?-1:1)||!Ie&&Ce($e,xe,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,ie){if(hasConsole){if(ie){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,ie){return(z-$)*ie+$}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray($){return $ instanceof Array?$:$==null?[]:[$]}function defaultEmphasis($,z,ie){if($){$[z]=$[z]||{},$.emphasis=$.emphasis||{},$.emphasis[z]=$.emphasis[z]||{};for(var le=0,ue=ie.length;le<ue;le++){var pe=ie[le];!$.emphasis[z].hasOwnProperty(pe)&&$[z].hasOwnProperty(pe)&&($.emphasis[z][pe]=$[z][pe])}}}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,ie){var le=ie==="normalMerge",ue=ie==="replaceMerge",pe=ie==="replaceAll";$=$||[],z=(z||[]).slice();var _e=createHashMap();each$c(z,function($e,xe){if(!isObject$3($e)){z[xe]=null;return}});var Ce=prepareResult($,_e,ie);return(le||ue)&&mappingById(Ce,$,_e,z),le&&mappingByName(Ce,z),le||ue?mappingByIndex(Ce,z,ue):pe&&mappingInReplaceAllMode(Ce,z),makeIdAndName(Ce),Ce}function prepareResult($,z,ie){var le=[];if(ie==="replaceAll")return le;for(var ue=0;ue<$.length;ue++){var pe=$[ue];pe&&pe.id!=null&&z.set(pe.id,ue),le.push({existing:ie==="replaceMerge"||isComponentIdInternal(pe)?null:pe,newOption:null,keyInfo:null,brandNew:null})}return le}function mappingById($,z,ie,le){each$c(le,function(ue,pe){if(!(!ue||ue.id==null)){var _e=makeComparableKey(ue.id),Ce=ie.get(_e);if(Ce!=null){var $e=$[Ce];assert(!$e.newOption,'Duplicated option on id "'+_e+'".'),$e.newOption=ue,$e.existing=z[Ce],le[pe]=null}}})}function mappingByName($,z){each$c(z,function(ie,le){if(!(!ie||ie.name==null))for(var ue=0;ue<$.length;ue++){var pe=$[ue].existing;if(!$[ue].newOption&&pe&&(pe.id==null||ie.id==null)&&!isComponentIdInternal(ie)&&!isComponentIdInternal(pe)&&keyExistAndEqual("name",pe,ie)){$[ue].newOption=ie,z[le]=null;return}}})}function mappingByIndex($,z,ie){each$c(z,function(le){if(le){for(var ue,pe=0;(ue=$[pe])&&(ue.newOption||isComponentIdInternal(ue.existing)||ue.existing&&le.id!=null&&!keyExistAndEqual("id",le,ue.existing));)pe++;ue?(ue.newOption=le,ue.brandNew=ie):$.push({newOption:le,brandNew:ie,existing:null,keyInfo:null}),pe++}})}function mappingInReplaceAllMode($,z){each$c(z,function(ie){$.push({newOption:ie,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName($){var z=createHashMap();each$c($,function(ie){var le=ie.existing;le&&z.set(le.id,ie)}),each$c($,function(ie){var le=ie.newOption;assert(!le||le.id==null||!z.get(le.id)||z.get(le.id)===ie,"id duplicates: "+(le&&le.id)),le&&le.id!=null&&z.set(le.id,ie),!ie.keyInfo&&(ie.keyInfo={})}),each$c($,function(ie,le){var ue=ie.existing,pe=ie.newOption,_e=ie.keyInfo;if(isObject$3(pe)){if(_e.name=pe.name!=null?makeComparableKey(pe.name):ue?ue.name:DUMMY_COMPONENT_NAME_PREFIX+le,ue)_e.id=makeComparableKey(ue.id);else if(pe.id!=null)_e.id=makeComparableKey(pe.id);else{var Ce=0;do _e.id="\0"+_e.name+"\0"+Ce++;while(z.get(_e.id))}z.set(_e.id,ie)}})}function keyExistAndEqual($,z,ie){var le=convertOptionIdName(z[$],null),ue=convertOptionIdName(ie[$],null);return le!=null&&ue!=null&&le===ue}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,ie){each$c($,function(le){var ue=le.newOption;isObject$3(ue)&&(le.keyInfo.mainType=z,le.keyInfo.subType=determineSubType(z,ue,le.existing,ie))})}function determineSubType($,z,ie,le){var ue=z.type?z.type:ie?ie.subType:le.determineSubType($,z);return ue}function compressBatches($,z){var ie={},le={};return ue($||[],ie),ue(z||[],le,ie),[pe(ie),pe(le)];function ue(_e,Ce,$e){for(var xe=0,Ie=_e.length;xe<Ie;xe++){var ze=convertOptionIdName(_e[xe].seriesId,null);if(ze==null)return;for(var Ue=normalizeToArray(_e[xe].dataIndex),qe=$e&&$e[ze],Et=0,Lt=Ue.length;Et<Lt;Et++){var hn=Ue[Et];qe&&qe[hn]?qe[hn]=null:(Ce[ze]||(Ce[ze]={}))[hn]=1}}}function pe(_e,Ce){var $e=[];for(var xe in _e)if(_e.hasOwnProperty(xe)&&_e[xe]!=null)if(Ce)$e.push(+xe);else{var Ie=pe(_e[xe],!0);Ie.length&&$e.push({seriesId:xe,dataIndex:Ie})}return $e}}function queryDataIndex($,z){if(z.dataIndexInside!=null)return z.dataIndexInside;if(z.dataIndex!=null)return isArray$1(z.dataIndex)?map$2(z.dataIndex,function(ie){return $.indexOfRawIndex(ie)}):$.indexOfRawIndex(z.dataIndex);if(z.name!=null)return isArray$1(z.name)?map$2(z.name,function(ie){return $.indexOfName(ie)}):$.indexOfName(z.name)}function makeInner(){var $="__ec_inner_"+innerUniqueIndex++;return function(z){return z[$]||(z[$]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1($,z,ie){var le=preParseFinder(z,ie),ue=le.mainTypeSpecified,pe=le.queryOptionMap,_e=le.others,Ce=_e,$e=ie?ie.defaultMainType:null;return!ue&&$e&&pe.set($e,{}),pe.each(function(xe,Ie){var ze=queryReferringComponents($,Ie,xe,{useDefault:$e===Ie,enableAll:ie&&ie.enableAll!=null?ie.enableAll:!0,enableNone:ie&&ie.enableNone!=null?ie.enableNone:!0});Ce[Ie+"Models"]=ze.models,Ce[Ie+"Model"]=ze.models[0]}),Ce}function preParseFinder($,z){var ie;if(isString($)){var le={};le[$+"Index"]=0,ie=le}else ie=$;var ue=createHashMap(),pe={},_e=!1;return each$c(ie,function(Ce,$e){if($e==="dataIndex"||$e==="dataIndexInside"){pe[$e]=Ce;return}var xe=$e.match(/^(\w+)(Index|Id|Name)$/)||[],Ie=xe[1],ze=(xe[2]||"").toLowerCase();if(!(!Ie||!ze||z&&z.includeMainTypes&&indexOf(z.includeMainTypes,Ie)<0)){_e=_e||!!Ie;var Ue=ue.get(Ie)||ue.set(Ie,{});Ue[ze]=Ce}}),{mainTypeSpecified:_e,queryOptionMap:ue,others:pe}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents($,z,ie,le){le=le||SINGLE_REFERRING;var ue=ie.index,pe=ie.id,_e=ie.name,Ce={models:null,specified:ue!=null||pe!=null||_e!=null};if(!Ce.specified){var $e=void 0;return Ce.models=le.useDefault&&($e=$.getComponent(z))?[$e]:[],Ce}return ue==="none"||ue===!1?(assert(le.enableNone,'`"none"` or `false` is not a valid value on index option.'),Ce.models=[],Ce):(ue==="all"&&(assert(le.enableAll,'`"all"` is not a valid value on index option.'),ue=pe=_e=null),Ce.models=$.queryComponents({mainType:z,index:ue,id:pe,name:_e}),Ce)}function setAttribute($,z,ie){$.setAttribute?$.setAttribute(z,ie):$[z]=ie}function getAttribute($,z){return $.getAttribute?$.getAttribute(z):$[z]}function getTooltipRenderMode($){return $==="auto"?env$1.domSupported?"html":"richText":$||"html"}function interpolateRawValues($,z,ie,le,ue){var pe=z==null||z==="auto";if(le==null)return le;if(isNumber(le)){var _e=interpolateNumber(ie||0,le,ue);return round$1(_e,pe?Math.max(getPrecision(ie||0),getPrecision(le)):z)}else{if(isString(le))return ue<1?ie:le;for(var Ce=[],$e=ie,xe=le,Ie=Math.max($e?$e.length:0,xe.length),ze=0;ze<Ie;++ze){var Ue=$.getDimensionInfo(ze);if(Ue&&Ue.type==="ordinal")Ce[ze]=(ue<1&&$e?$e:xe)[ze];else{var qe=$e&&$e[ze]?$e[ze]:0,Et=xe[ze],_e=interpolateNumber(qe,Et,ue);Ce[ze]=round$1(_e,pe?Math.max(getPrecision(qe),getPrecision(Et)):z)}}return Ce}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType($){var z={main:"",sub:""};if($){var ie=$.split(TYPE_DELIMITER);z.main=ie[0]||"",z.sub=ie[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(ie){var le=this,ue;return isESClass(le)?ue=function(pe){__extends(_e,pe);function _e(){return pe.apply(this,arguments)||this}return _e}(le):(ue=function(){(ie.$constructor||le).apply(this,arguments)},inherits(ue,this)),extend(ue.prototype,ie),ue[IS_EXTENDED_CLASS]=!0,ue.extend=this.extend,ue.superCall=superCall,ue.superApply=superApply,ue.superClass=le,ue}}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(ie){return!!(ie&&ie[z])}}function superCall($,z){for(var ie=[],le=2;le<arguments.length;le++)ie[le-2]=arguments[le];return this.superClass.prototype[z].apply($,ie)}function superApply($,z,ie){return this.superClass.prototype[z].apply($,ie)}function enableClassManagement($){var z={};$.registerClass=function(le){var ue=le.type||le.prototype.type;if(ue){checkClassType(ue),le.prototype.type=ue;var pe=parseClassType(ue);if(!pe.sub)z[pe.main]=le;else if(pe.sub!==IS_CONTAINER){var _e=ie(pe);_e[pe.sub]=le}}return le},$.getClass=function(le,ue,pe){var _e=z[le];if(_e&&_e[IS_CONTAINER]&&(_e=ue?_e[ue]:null),pe&&!_e)throw new Error(ue?"Component "+le+"."+(ue||"")+" is used but not imported.":le+".type should be specified.");return _e},$.getClassesByMainType=function(le){var ue=parseClassType(le),pe=[],_e=z[ue.main];return _e&&_e[IS_CONTAINER]?each$c(_e,function(Ce,$e){$e!==IS_CONTAINER&&pe.push(Ce)}):pe.push(_e),pe},$.hasClass=function(le){var ue=parseClassType(le);return!!z[ue.main]},$.getAllClassMainTypes=function(){var le=[];return each$c(z,function(ue,pe){le.push(pe)}),le},$.hasSubTypes=function(le){var ue=parseClassType(le),pe=z[ue.main];return pe&&pe[IS_CONTAINER]};function ie(le){var ue=z[le.main];return(!ue||!ue[IS_CONTAINER])&&(ue=z[le.main]={},ue[IS_CONTAINER]=!0),ue}}function makeStyleMapper($,z){for(var ie=0;ie<$.length;ie++)$[ie][1]||($[ie][1]=$[ie][0]);return z=z||!1,function(le,ue,pe){for(var _e={},Ce=0;Ce<$.length;Ce++){var $e=$[Ce][1];if(!(ue&&indexOf(ue,$e)>=0||pe&&indexOf(pe,$e)<0)){var xe=le.getShallow($e,z);xe!=null&&(_e[$[Ce][0]]=xe)}}return _e}}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,ie){return getAreaStyle(this,z,ie)},$}(),globalImageCache=new LRU$1(50);function findExistImage($){if(typeof $=="string"){var z=globalImageCache.get($);return z&&z.image}else return $}function createOrUpdateImage($,z,ie,le,ue){if($)if(typeof $=="string"){if(z&&z.__zrImageSrc===$||!ie)return z;var pe=globalImageCache.get($),_e={hostEl:ie,cb:le,cbPayload:ue};return pe?(z=pe.image,!isImageReady(z)&&pe.pending.push(_e)):(z=platformApi.loadImage($,imageOnLoad,imageOnLoad),z.__zrImageSrc=$,globalImageCache.put($,z.__cachedImgObj={image:z,pending:[_e]})),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 ie=$.pending[z],le=ie.cb;le&&le(this,ie.cbPayload),ie.hostEl.dirty()}$.pending.length=0}function isImageReady($){return $&&$.width&&$.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText($,z,ie,le,ue){if(!z)return"";var pe=($+"").split(`
`);ue=prepareTruncateOptions(z,ie,le,ue);for(var _e=0,Ce=pe.length;_e<Ce;_e++)pe[_e]=truncateSingleLine(pe[_e],ue);return pe.join(`
`)}function prepareTruncateOptions($,z,ie,le){le=le||{};var ue=extend({},le);ue.font=z,ie=retrieve2(ie,"..."),ue.maxIterations=retrieve2(le.maxIterations,2);var pe=ue.minChar=retrieve2(le.minChar,0);ue.cnCharWidth=getWidth("国",z);var _e=ue.ascCharWidth=getWidth("a",z);ue.placeholder=retrieve2(le.placeholder,"");for(var Ce=$=Math.max(0,$-1),$e=0;$e<pe&&Ce>=_e;$e++)Ce-=_e;var xe=getWidth(ie,z);return xe>Ce&&(ie="",xe=0),Ce=$-xe,ue.ellipsis=ie,ue.ellipsisWidth=xe,ue.contentWidth=Ce,ue.containerWidth=$,ue}function truncateSingleLine($,z){var ie=z.containerWidth,le=z.font,ue=z.contentWidth;if(!ie)return"";var pe=getWidth($,le);if(pe<=ie)return $;for(var _e=0;;_e++){if(pe<=ue||_e>=z.maxIterations){$+=z.ellipsis;break}var Ce=_e===0?estimateLength($,ue,z.ascCharWidth,z.cnCharWidth):pe>0?Math.floor($.length*ue/pe):0;$=$.substr(0,Ce),pe=getWidth($,le)}return $===""&&($=z.placeholder),$}function estimateLength($,z,ie,le){for(var ue=0,pe=0,_e=$.length;pe<_e&&ue<z;pe++){var Ce=$.charCodeAt(pe);ue+=0<=Ce&&Ce<=127?ie:le}return pe}function parsePlainText($,z){$!=null&&($+="");var ie=z.overflow,le=z.padding,ue=z.font,pe=ie==="truncate",_e=getLineHeight(ue),Ce=retrieve2(z.lineHeight,_e),$e=!!z.backgroundColor,xe=z.lineOverflow==="truncate",Ie=z.width,ze;Ie!=null&&(ie==="break"||ie==="breakAll")?ze=$?wrapText($,z.font,Ie,ie==="breakAll",0).lines:[]:ze=$?$.split(`
`):[];var Ue=ze.length*Ce,qe=retrieve2(z.height,Ue);if(Ue>qe&&xe){var Et=Math.floor(qe/Ce);ze=ze.slice(0,Et)}if($&&pe&&Ie!=null)for(var Lt=prepareTruncateOptions(Ie,ue,z.ellipsis,{minChar:z.truncateMinChar,placeholder:z.placeholder}),hn=0;hn<ze.length;hn++)ze[hn]=truncateSingleLine(ze[hn],Lt);for(var vn=qe,_n=0,hn=0;hn<ze.length;hn++)_n=Math.max(getWidth(ze[hn],ue),_n);Ie==null&&(Ie=_n);var bn=_n;return le&&(vn+=le[0]+le[2],bn+=le[1]+le[3],Ie+=le[1]+le[3]),$e&&(bn=Ie),{lines:ze,height:qe,outerWidth:bn,outerHeight:vn,lineHeight:Ce,calculatedLineHeight:_e,contentWidth:_n,contentHeight:Ue,width:Ie}}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 ie=new RichTextContentBlock;if($!=null&&($+=""),!$)return ie;for(var le=z.width,ue=z.height,pe=z.overflow,_e=(pe==="break"||pe==="breakAll")&&le!=null?{width:le,accumWidth:0,breakAll:pe==="breakAll"}:null,Ce=STYLE_REG.lastIndex=0,$e;($e=STYLE_REG.exec($))!=null;){var xe=$e.index;xe>Ce&&pushTokens(ie,$.substring(Ce,xe),z,_e),pushTokens(ie,$e[2],z,_e,$e[1]),Ce=STYLE_REG.lastIndex}Ce<$.length&&pushTokens(ie,$.substring(Ce,$.length),z,_e);var Ie=[],ze=0,Ue=0,qe=z.padding,Et=pe==="truncate",Lt=z.lineOverflow==="truncate";function hn(Vn,Mn,zn){Vn.width=Mn,Vn.lineHeight=zn,ze+=zn,Ue=Math.max(Ue,Mn)}e:for(var vn=0;vn<ie.lines.length;vn++){for(var _n=ie.lines[vn],bn=0,Sn=0,Cn=0;Cn<_n.tokens.length;Cn++){var En=_n.tokens[Cn],$n=En.styleName&&z.rich[En.styleName]||{},wn=En.textPadding=$n.padding,Tn=wn?wn[1]+wn[3]:0,xn=En.font=$n.font||z.font;En.contentHeight=getLineHeight(xn);var Pn=retrieve2($n.height,En.contentHeight);if(En.innerHeight=Pn,wn&&(Pn+=wn[0]+wn[2]),En.height=Pn,En.lineHeight=retrieve3($n.lineHeight,z.lineHeight,Pn),En.align=$n&&$n.align||z.align,En.verticalAlign=$n&&$n.verticalAlign||"middle",Lt&&ue!=null&&ze+En.lineHeight>ue){Cn>0?(_n.tokens=_n.tokens.slice(0,Cn),hn(_n,Sn,bn),ie.lines=ie.lines.slice(0,vn+1)):ie.lines=ie.lines.slice(0,vn);break e}var kn=$n.width,An=kn==null||kn==="auto";if(typeof kn=="string"&&kn.charAt(kn.length-1)==="%")En.percentWidth=kn,Ie.push(En),En.contentWidth=getWidth(En.text,xn);else{if(An){var Nn=$n.backgroundColor,Fn=Nn&&Nn.image;Fn&&(Fn=findExistImage(Fn),isImageReady(Fn)&&(En.width=Math.max(En.width,Fn.width*Pn/Fn.height)))}var Ln=Et&&le!=null?le-Sn:null;Ln!=null&&Ln<En.width?!An||Ln<Tn?(En.text="",En.width=En.contentWidth=0):(En.text=truncateText(En.text,Ln-Tn,xn,z.ellipsis,{minChar:z.truncateMinChar}),En.width=En.contentWidth=getWidth(En.text,xn)):En.contentWidth=getWidth(En.text,xn)}En.width+=Tn,Sn+=En.width,$n&&(bn=Math.max(bn,En.lineHeight))}hn(_n,Sn,bn)}ie.outerWidth=ie.width=retrieve2(le,Ue),ie.outerHeight=ie.height=retrieve2(ue,ze),ie.contentHeight=ze,ie.contentWidth=Ue,qe&&(ie.outerWidth+=qe[1]+qe[3],ie.outerHeight+=qe[0]+qe[2]);for(var vn=0;vn<Ie.length;vn++){var En=Ie[vn],In=En.percentWidth;En.width=parseInt(In,10)/100*ie.width}return ie}function pushTokens($,z,ie,le,ue){var pe=z==="",_e=ue&&ie.rich[ue]||{},Ce=$.lines,$e=_e.font||ie.font,xe=!1,Ie,ze;if(le){var Ue=_e.padding,qe=Ue?Ue[1]+Ue[3]:0;if(_e.width!=null&&_e.width!=="auto"){var Et=parsePercent$1(_e.width,le.width)+qe;Ce.length>0&&Et+le.accumWidth>le.width&&(Ie=z.split(`
`),xe=!0),le.accumWidth=Et}else{var Lt=wrapText(z,$e,le.width,le.breakAll,le.accumWidth);le.accumWidth=Lt.accumWidth+qe,ze=Lt.linesWidths,Ie=Lt.lines}}else Ie=z.split(`
`);for(var hn=0;hn<Ie.length;hn++){var vn=Ie[hn],_n=new RichTextToken;if(_n.styleName=ue,_n.text=vn,_n.isLineHolder=!vn&&!pe,typeof _e.width=="number"?_n.width=_e.width:_n.width=ze?ze[hn]:getWidth(vn,$e),!hn&&!xe){var bn=(Ce[Ce.length-1]||(Ce[0]=new RichTextLine)).tokens,Sn=bn.length;Sn===1&&bn[0].isLineHolder?bn[0]=_n:(vn||!Sn||pe)&&bn.push(_n)}else Ce.push(new RichTextLine([_n]))}}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,ie,le,ue){for(var pe=[],_e=[],Ce="",$e="",xe=0,Ie=0,ze=0;ze<$.length;ze++){var Ue=$.charAt(ze);if(Ue===`
`){$e&&(Ce+=$e,Ie+=xe),pe.push(Ce),_e.push(Ie),Ce="",$e="",xe=0,Ie=0;continue}var qe=getWidth(Ue,z),Et=le?!1:!isWordBreakChar(Ue);if(pe.length?Ie+qe>ie:ue+Ie+qe>ie){Ie?(Ce||$e)&&(Et?(Ce||(Ce=$e,$e="",xe=0,Ie=xe),pe.push(Ce),_e.push(Ie-xe),$e+=Ue,xe+=qe,Ce="",Ie=xe):($e&&(Ce+=$e,$e="",xe=0),pe.push(Ce),_e.push(Ie),Ce=Ue,Ie=qe)):Et?(pe.push($e),_e.push(xe),$e=Ue,xe=qe):(pe.push(Ue),_e.push(qe));continue}Ie+=qe,Et?($e+=Ue,xe+=qe):($e&&(Ce+=$e,$e="",xe=0),Ce+=Ue)}return!pe.length&&!Ce&&(Ce=$,$e="",xe=0),$e&&(Ce+=$e),Ce&&(pe.push(Ce),_e.push(Ie)),pe.length===1&&(Ie+=ue),{accumWidth:Ie,lines:pe,linesWidths:_e}}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(ie){return $.call(this,ie)||this}return z.prototype._init=function(ie){for(var le=keys(ie),ue=0;ue<le.length;ue++){var pe=le[ue];pe==="style"?this.useStyle(ie[pe]):$.prototype.attrKV.call(this,pe,ie[pe])}this.style||this.useStyle({})},z.prototype.beforeBrush=function(){},z.prototype.afterBrush=function(){},z.prototype.innerBeforeBrush=function(){},z.prototype.innerAfterBrush=function(){},z.prototype.shouldBePainted=function(ie,le,ue,pe){var _e=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,ie,le)||_e&&!_e[0]&&!_e[3])return!1;if(ue&&this.__clipPaths){for(var Ce=0;Ce<this.__clipPaths.length;++Ce)if(this.__clipPaths[Ce].isZeroArea())return!1}if(pe&&this.parent)for(var $e=this.parent;$e;){if($e.ignore)return!1;$e=$e.parent}return!0},z.prototype.contain=function(ie,le){return this.rectContain(ie,le)},z.prototype.traverse=function(ie,le){ie.call(le,this)},z.prototype.rectContain=function(ie,le){var ue=this.transformCoordToLocal(ie,le),pe=this.getBoundingRect();return pe.contain(ue[0],ue[1])},z.prototype.getPaintRect=function(){var ie=this._paintRect;if(!this._paintRect||this.__dirty){var le=this.transform,ue=this.getBoundingRect(),pe=this.style,_e=pe.shadowBlur||0,Ce=pe.shadowOffsetX||0,$e=pe.shadowOffsetY||0;ie=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),le?BoundingRect$1.applyTransform(ie,ue,le):ie.copy(ue),(_e||Ce||$e)&&(ie.width+=_e*2+Math.abs(Ce),ie.height+=_e*2+Math.abs($e),ie.x=Math.min(ie.x,ie.x+Ce-_e),ie.y=Math.min(ie.y,ie.y+$e-_e));var xe=this.dirtyRectTolerance;ie.isZero()||(ie.x=Math.floor(ie.x-xe),ie.y=Math.floor(ie.y-xe),ie.width=Math.ceil(ie.width+1+xe*2),ie.height=Math.ceil(ie.height+1+xe*2))}return ie},z.prototype.setPrevPaintRect=function(ie){ie?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(ie)):this._prevPaintRect=null},z.prototype.getPrevPaintRect=function(){return this._prevPaintRect},z.prototype.animateStyle=function(ie){return this.animate("style",ie)},z.prototype.updateDuringAnimation=function(ie){ie==="style"?this.dirtyStyle():this.markRedraw()},z.prototype.attrKV=function(ie,le){ie!=="style"?$.prototype.attrKV.call(this,ie,le):this.style?this.setStyle(le):this.useStyle(le)},z.prototype.setStyle=function(ie,le){return typeof ie=="string"?this.style[ie]=le:extend(this.style,ie),this.dirtyStyle(),this},z.prototype.dirtyStyle=function(ie){ie||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(ie){return createObject(DEFAULT_COMMON_STYLE,ie)},z.prototype.useStyle=function(ie){ie[STYLE_MAGIC_KEY]||(ie=this.createStyle(ie)),this.__inHover?this.__hoverStyle=ie:this.style=ie,this.dirtyStyle()},z.prototype.isStyleObject=function(ie){return ie[STYLE_MAGIC_KEY]},z.prototype._innerSaveToNormal=function(ie){$.prototype._innerSaveToNormal.call(this,ie);var le=this._normalState;ie.style&&!le.style&&(le.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(ie,le,PRIMARY_STATES_KEYS)},z.prototype._applyStateObj=function(ie,le,ue,pe,_e,Ce){$.prototype._applyStateObj.call(this,ie,le,ue,pe,_e,Ce);var $e=!(le&&pe),xe;if(le&&le.style?_e?pe?xe=le.style:(xe=this._mergeStyle(this.createStyle(),ue.style),this._mergeStyle(xe,le.style)):(xe=this._mergeStyle(this.createStyle(),pe?this.style:ue.style),this._mergeStyle(xe,le.style)):$e&&(xe=ue.style),xe)if(_e){var Ie=this.style;if(this.style=this.createStyle($e?{}:Ie),$e)for(var ze=keys(Ie),Ue=0;Ue<ze.length;Ue++){var qe=ze[Ue];qe in xe&&(xe[qe]=xe[qe],this.style[qe]=Ie[qe])}for(var Et=keys(xe),Ue=0;Ue<Et.length;Ue++){var qe=Et[Ue];this.style[qe]=this.style[qe]}this._transitionState(ie,{style:xe},Ce,this.getAnimationStyleProps())}else this.useStyle(xe);for(var Lt=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,Ue=0;Ue<Lt.length;Ue++){var qe=Lt[Ue];le&&le[qe]!=null?this[qe]=le[qe]:$e&&ue[qe]!=null&&(this[qe]=ue[qe])}},z.prototype._mergeStates=function(ie){for(var le=$.prototype._mergeStates.call(this,ie),ue,pe=0;pe<ie.length;pe++){var _e=ie[pe];_e.style&&(ue=ue||{},this._mergeStyle(ue,_e.style))}return ue&&(le.style=ue),le},z.prototype._mergeStyle=function(ie,le){return extend(ie,le),ie},z.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},z.initDefaultProps=function(){var ie=z.prototype;ie.type="displayable",ie.invisible=!1,ie.z=0,ie.z2=0,ie.zlevel=0,ie.culling=!1,ie.cursor="pointer",ie.rectHover=!1,ie.incremental=!1,ie._rect=null,ie.dirtyRectTolerance=0,ie.__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,ie){return tmpRect.copy($.getBoundingRect()),$.transform&&tmpRect.applyTransform($.transform),viewRect.width=z,viewRect.height=ie,!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,ie,le,ue,pe){ue[0]=mathMin$7($,ie),ue[1]=mathMin$7(z,le),pe[0]=mathMax$7($,ie),pe[1]=mathMax$7(z,le)}var xDim=[],yDim=[];function fromCubic($,z,ie,le,ue,pe,_e,Ce,$e,xe){var Ie=cubicExtrema,ze=cubicAt,Ue=Ie($,ie,ue,_e,xDim);$e[0]=1/0,$e[1]=1/0,xe[0]=-1/0,xe[1]=-1/0;for(var qe=0;qe<Ue;qe++){var Et=ze($,ie,ue,_e,xDim[qe]);$e[0]=mathMin$7(Et,$e[0]),xe[0]=mathMax$7(Et,xe[0])}Ue=Ie(z,le,pe,Ce,yDim);for(var qe=0;qe<Ue;qe++){var Lt=ze(z,le,pe,Ce,yDim[qe]);$e[1]=mathMin$7(Lt,$e[1]),xe[1]=mathMax$7(Lt,xe[1])}$e[0]=mathMin$7($,$e[0]),xe[0]=mathMax$7($,xe[0]),$e[0]=mathMin$7(_e,$e[0]),xe[0]=mathMax$7(_e,xe[0]),$e[1]=mathMin$7(z,$e[1]),xe[1]=mathMax$7(z,xe[1]),$e[1]=mathMin$7(Ce,$e[1]),xe[1]=mathMax$7(Ce,xe[1])}function fromQuadratic($,z,ie,le,ue,pe,_e,Ce){var $e=quadraticExtremum,xe=quadraticAt,Ie=mathMax$7(mathMin$7($e($,ie,ue),1),0),ze=mathMax$7(mathMin$7($e(z,le,pe),1),0),Ue=xe($,ie,ue,Ie),qe=xe(z,le,pe,ze);_e[0]=mathMin$7($,ue,Ue),_e[1]=mathMin$7(z,pe,qe),Ce[0]=mathMax$7($,ue,Ue),Ce[1]=mathMax$7(z,pe,qe)}function fromArc($,z,ie,le,ue,pe,_e,Ce,$e){var xe=min$1,Ie=max$1,ze=Math.abs(ue-pe);if(ze%PI2$6<1e-4&&ze>1e-4){Ce[0]=$-ie,Ce[1]=z-le,$e[0]=$+ie,$e[1]=z+le;return}if(start[0]=mathCos$3(ue)*ie+$,start[1]=mathSin$3(ue)*le+z,end[0]=mathCos$3(pe)*ie+$,end[1]=mathSin$3(pe)*le+z,xe(Ce,start,end),Ie($e,start,end),ue=ue%PI2$6,ue<0&&(ue=ue+PI2$6),pe=pe%PI2$6,pe<0&&(pe=pe+PI2$6),ue>pe&&!_e?pe+=PI2$6:ue<pe&&_e&&(ue+=PI2$6),_e){var Ue=pe;pe=ue,ue=Ue}for(var qe=0;qe<pe;qe+=Math.PI/2)qe>ue&&(extremity[0]=mathCos$3(qe)*ie+$,extremity[1]=mathSin$3(qe)*le+z,xe(Ce,extremity,Ce),Ie($e,extremity,$e))}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 ie=modPI2($[0]);ie<0&&(ie+=PI2$5);var le=ie-$[0],ue=$[1];ue+=le,!z&&ue-ie>=PI2$5?ue=ie+PI2$5:z&&ie-ue>=PI2$5?ue=ie-PI2$5:!z&&ie>ue?ue=ie+(PI2$5-modPI2(ie-ue)):z&&ie<ue&&(ue=ie-(PI2$5-modPI2(ue-ie))),$[0]=ie,$[1]=ue}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,ie,le){le=le||0,le>0&&(this._ux=mathAbs$1(le/devicePixelRatio/z)||0,this._uy=mathAbs$1(le/devicePixelRatio/ie)||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,ie){return this._drawPendingPt(),this.addData(CMD$2.M,z,ie),this._ctx&&this._ctx.moveTo(z,ie),this._x0=z,this._y0=ie,this._xi=z,this._yi=ie,this},$.prototype.lineTo=function(z,ie){var le=mathAbs$1(z-this._xi),ue=mathAbs$1(ie-this._yi),pe=le>this._ux||ue>this._uy;if(this.addData(CMD$2.L,z,ie),this._ctx&&pe&&this._ctx.lineTo(z,ie),pe)this._xi=z,this._yi=ie,this._pendingPtDist=0;else{var _e=le*le+ue*ue;_e>this._pendingPtDist&&(this._pendingPtX=z,this._pendingPtY=ie,this._pendingPtDist=_e)}return this},$.prototype.bezierCurveTo=function(z,ie,le,ue,pe,_e){return this._drawPendingPt(),this.addData(CMD$2.C,z,ie,le,ue,pe,_e),this._ctx&&this._ctx.bezierCurveTo(z,ie,le,ue,pe,_e),this._xi=pe,this._yi=_e,this},$.prototype.quadraticCurveTo=function(z,ie,le,ue){return this._drawPendingPt(),this.addData(CMD$2.Q,z,ie,le,ue),this._ctx&&this._ctx.quadraticCurveTo(z,ie,le,ue),this._xi=le,this._yi=ue,this},$.prototype.arc=function(z,ie,le,ue,pe,_e){this._drawPendingPt(),tmpAngles[0]=ue,tmpAngles[1]=pe,normalizeArcAngles(tmpAngles,_e),ue=tmpAngles[0],pe=tmpAngles[1];var Ce=pe-ue;return this.addData(CMD$2.A,z,ie,le,le,ue,Ce,0,_e?0:1),this._ctx&&this._ctx.arc(z,ie,le,ue,pe,_e),this._xi=mathCos$2(pe)*le+z,this._yi=mathSin$2(pe)*le+ie,this},$.prototype.arcTo=function(z,ie,le,ue,pe){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(z,ie,le,ue,pe),this},$.prototype.rect=function(z,ie,le,ue){return this._drawPendingPt(),this._ctx&&this._ctx.rect(z,ie,le,ue),this.addData(CMD$2.R,z,ie,le,ue),this},$.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var z=this._ctx,ie=this._x0,le=this._y0;return z&&z.closePath(),this._xi=ie,this._yi=le,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 ie=z.length;!(this.data&&this.data.length===ie)&&hasTypedArray&&(this.data=new Float32Array(ie));for(var le=0;le<ie;le++)this.data[le]=z[le];this._len=ie},$.prototype.appendPath=function(z){z instanceof Array||(z=[z]);for(var ie=z.length,le=0,ue=this._len,pe=0;pe<ie;pe++)le+=z[pe].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(ue+le));for(var pe=0;pe<ie;pe++)for(var _e=z[pe].data,Ce=0;Ce<_e.length;Ce++)this.data[ue++]=_e[Ce];this._len=ue},$.prototype.addData=function(z,ie,le,ue,pe,_e,Ce,$e,xe){if(this._saveData){var Ie=this.data;this._len+arguments.length>Ie.length&&(this._expandData(),Ie=this.data);for(var ze=0;ze<arguments.length;ze++)Ie[this._len++]=arguments[ze]}},$.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=[],ie=0;ie<this._len;ie++)z[ie]=this.data[ie];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,ie=0,le=0,ue=0,pe=0,_e;for(_e=0;_e<this._len;){var Ce=z[_e++],$e=_e===1;switch($e&&(ie=z[_e],le=z[_e+1],ue=ie,pe=le),Ce){case CMD$2.M:ie=ue=z[_e++],le=pe=z[_e++],min2[0]=ue,min2[1]=pe,max2[0]=ue,max2[1]=pe;break;case CMD$2.L:fromLine(ie,le,z[_e],z[_e+1],min2,max2),ie=z[_e++],le=z[_e++];break;case CMD$2.C:fromCubic(ie,le,z[_e++],z[_e++],z[_e++],z[_e++],z[_e],z[_e+1],min2,max2),ie=z[_e++],le=z[_e++];break;case CMD$2.Q:fromQuadratic(ie,le,z[_e++],z[_e++],z[_e],z[_e+1],min2,max2),ie=z[_e++],le=z[_e++];break;case CMD$2.A:var xe=z[_e++],Ie=z[_e++],ze=z[_e++],Ue=z[_e++],qe=z[_e++],Et=z[_e++]+qe;_e+=1;var Lt=!z[_e++];$e&&(ue=mathCos$2(qe)*ze+xe,pe=mathSin$2(qe)*Ue+Ie),fromArc(xe,Ie,ze,Ue,qe,Et,Lt,min2,max2),ie=mathCos$2(Et)*ze+xe,le=mathSin$2(Et)*Ue+Ie;break;case CMD$2.R:ue=ie=z[_e++],pe=le=z[_e++];var hn=z[_e++],vn=z[_e++];fromLine(ue,pe,ue+hn,pe+vn,min2,max2);break;case CMD$2.Z:ie=ue,le=pe;break}min$1(min,min,min2),max$1(max,max,max2)}return _e===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,ie=this._len,le=this._ux,ue=this._uy,pe=0,_e=0,Ce=0,$e=0;this._pathSegLen||(this._pathSegLen=[]);for(var xe=this._pathSegLen,Ie=0,ze=0,Ue=0;Ue<ie;){var qe=z[Ue++],Et=Ue===1;Et&&(pe=z[Ue],_e=z[Ue+1],Ce=pe,$e=_e);var Lt=-1;switch(qe){case CMD$2.M:pe=Ce=z[Ue++],_e=$e=z[Ue++];break;case CMD$2.L:{var hn=z[Ue++],vn=z[Ue++],_n=hn-pe,bn=vn-_e;(mathAbs$1(_n)>le||mathAbs$1(bn)>ue||Ue===ie-1)&&(Lt=Math.sqrt(_n*_n+bn*bn),pe=hn,_e=vn);break}case CMD$2.C:{var Sn=z[Ue++],Cn=z[Ue++],hn=z[Ue++],vn=z[Ue++],En=z[Ue++],$n=z[Ue++];Lt=cubicLength(pe,_e,Sn,Cn,hn,vn,En,$n,10),pe=En,_e=$n;break}case CMD$2.Q:{var Sn=z[Ue++],Cn=z[Ue++],hn=z[Ue++],vn=z[Ue++];Lt=quadraticLength(pe,_e,Sn,Cn,hn,vn,10),pe=hn,_e=vn;break}case CMD$2.A:var wn=z[Ue++],Tn=z[Ue++],xn=z[Ue++],Pn=z[Ue++],kn=z[Ue++],An=z[Ue++],Nn=An+kn;Ue+=1,z[Ue++],Et&&(Ce=mathCos$2(kn)*xn+wn,$e=mathSin$2(kn)*Pn+Tn),Lt=mathMax$6(xn,Pn)*mathMin$6(PI2$5,Math.abs(An)),pe=mathCos$2(Nn)*xn+wn,_e=mathSin$2(Nn)*Pn+Tn;break;case CMD$2.R:{Ce=pe=z[Ue++],$e=_e=z[Ue++];var Fn=z[Ue++],Ln=z[Ue++];Lt=Fn*2+Ln*2;break}case CMD$2.Z:{var _n=Ce-pe,bn=$e-_e;Lt=Math.sqrt(_n*_n+bn*bn),pe=Ce,_e=$e;break}}Lt>=0&&(xe[ze++]=Lt,Ie+=Lt)}return this._pathLen=Ie,Ie},$.prototype.rebuildPath=function(z,ie){var le=this.data,ue=this._ux,pe=this._uy,_e=this._len,Ce,$e,xe,Ie,ze,Ue,qe=ie<1,Et,Lt,hn=0,vn=0,_n,bn=0,Sn,Cn;if(!(qe&&(this._pathSegLen||this._calculateLength(),Et=this._pathSegLen,Lt=this._pathLen,_n=ie*Lt,!_n)))e:for(var En=0;En<_e;){var $n=le[En++],wn=En===1;switch(wn&&(xe=le[En],Ie=le[En+1],Ce=xe,$e=Ie),$n!==CMD$2.L&&bn>0&&(z.lineTo(Sn,Cn),bn=0),$n){case CMD$2.M:Ce=xe=le[En++],$e=Ie=le[En++],z.moveTo(xe,Ie);break;case CMD$2.L:{ze=le[En++],Ue=le[En++];var Tn=mathAbs$1(ze-xe),xn=mathAbs$1(Ue-Ie);if(Tn>ue||xn>pe){if(qe){var Pn=Et[vn++];if(hn+Pn>_n){var kn=(_n-hn)/Pn;z.lineTo(xe*(1-kn)+ze*kn,Ie*(1-kn)+Ue*kn);break e}hn+=Pn}z.lineTo(ze,Ue),xe=ze,Ie=Ue,bn=0}else{var An=Tn*Tn+xn*xn;An>bn&&(Sn=ze,Cn=Ue,bn=An)}break}case CMD$2.C:{var Nn=le[En++],Fn=le[En++],Ln=le[En++],In=le[En++],Vn=le[En++],Mn=le[En++];if(qe){var Pn=Et[vn++];if(hn+Pn>_n){var kn=(_n-hn)/Pn;cubicSubdivide(xe,Nn,Ln,Vn,kn,tmpOutX),cubicSubdivide(Ie,Fn,In,Mn,kn,tmpOutY),z.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}hn+=Pn}z.bezierCurveTo(Nn,Fn,Ln,In,Vn,Mn),xe=Vn,Ie=Mn;break}case CMD$2.Q:{var Nn=le[En++],Fn=le[En++],Ln=le[En++],In=le[En++];if(qe){var Pn=Et[vn++];if(hn+Pn>_n){var kn=(_n-hn)/Pn;quadraticSubdivide(xe,Nn,Ln,kn,tmpOutX),quadraticSubdivide(Ie,Fn,In,kn,tmpOutY),z.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}hn+=Pn}z.quadraticCurveTo(Nn,Fn,Ln,In),xe=Ln,Ie=In;break}case CMD$2.A:var zn=le[En++],qn=le[En++],Hn=le[En++],Jn=le[En++],ur=le[En++],yr=le[En++],sr=le[En++],Zn=!le[En++],Kn=Hn>Jn?Hn:Jn,Wn=mathAbs$1(Hn-Jn)>.001,nr=ur+yr,fr=!1;if(qe){var Pn=Et[vn++];hn+Pn>_n&&(nr=ur+yr*(_n-hn)/Pn,fr=!0),hn+=Pn}if(Wn&&z.ellipse?z.ellipse(zn,qn,Hn,Jn,sr,ur,nr,Zn):z.arc(zn,qn,Kn,ur,nr,Zn),fr)break e;wn&&(Ce=mathCos$2(ur)*Hn+zn,$e=mathSin$2(ur)*Jn+qn),xe=mathCos$2(nr)*Hn+zn,Ie=mathSin$2(nr)*Jn+qn;break;case CMD$2.R:Ce=xe=le[En],$e=Ie=le[En+1],ze=le[En++],Ue=le[En++];var Gn=le[En++],Xn=le[En++];if(qe){var Pn=Et[vn++];if(hn+Pn>_n){var or=_n-hn;z.moveTo(ze,Ue),z.lineTo(ze+mathMin$6(or,Gn),Ue),or-=Gn,or>0&&z.lineTo(ze+Gn,Ue+mathMin$6(or,Xn)),or-=Xn,or>0&&z.lineTo(ze+mathMax$6(Gn-or,0),Ue+Xn),or-=Gn,or>0&&z.lineTo(ze,Ue+mathMax$6(Xn-or,0));break e}hn+=Pn}z.rect(ze,Ue,Gn,Xn);break;case CMD$2.Z:if(qe){var Pn=Et[vn++];if(hn+Pn>_n){var kn=(_n-hn)/Pn;z.lineTo(xe*(1-kn)+Ce*kn,Ie*(1-kn)+$e*kn);break e}hn+=Pn}z.closePath(),xe=Ce,Ie=$e}}},$.prototype.clone=function(){var z=new $,ie=this.data;return z.data=ie.slice?ie.slice():Array.prototype.slice.call(ie),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,ie,le,ue,pe,_e){if(ue===0)return!1;var Ce=ue,$e=0,xe=$;if(_e>z+Ce&&_e>le+Ce||_e<z-Ce&&_e<le-Ce||pe>$+Ce&&pe>ie+Ce||pe<$-Ce&&pe<ie-Ce)return!1;if($!==ie)$e=(z-le)/($-ie),xe=($*le-ie*z)/($-ie);else return Math.abs(pe-$)<=Ce/2;var Ie=$e*pe-_e+xe,ze=Ie*Ie/($e*$e+1);return ze<=Ce/2*Ce/2}function containStroke$3($,z,ie,le,ue,pe,_e,Ce,$e,xe,Ie){if($e===0)return!1;var ze=$e;if(Ie>z+ze&&Ie>le+ze&&Ie>pe+ze&&Ie>Ce+ze||Ie<z-ze&&Ie<le-ze&&Ie<pe-ze&&Ie<Ce-ze||xe>$+ze&&xe>ie+ze&&xe>ue+ze&&xe>_e+ze||xe<$-ze&&xe<ie-ze&&xe<ue-ze&&xe<_e-ze)return!1;var Ue=cubicProjectPoint($,z,ie,le,ue,pe,_e,Ce,xe,Ie,null);return Ue<=ze/2}function containStroke$2($,z,ie,le,ue,pe,_e,Ce,$e){if(_e===0)return!1;var xe=_e;if($e>z+xe&&$e>le+xe&&$e>pe+xe||$e<z-xe&&$e<le-xe&&$e<pe-xe||Ce>$+xe&&Ce>ie+xe&&Ce>ue+xe||Ce<$-xe&&Ce<ie-xe&&Ce<ue-xe)return!1;var Ie=quadraticProjectPoint($,z,ie,le,ue,pe,Ce,$e,null);return Ie<=xe/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,ie,le,ue,pe,_e,Ce,$e){if(_e===0)return!1;var xe=_e;Ce-=$,$e-=z;var Ie=Math.sqrt(Ce*Ce+$e*$e);if(Ie-xe>ie||Ie+xe<ie)return!1;if(Math.abs(le-ue)%PI2$3<1e-4)return!0;if(pe){var ze=le;le=normalizeRadian(ue),ue=normalizeRadian(ze)}else le=normalizeRadian(le),ue=normalizeRadian(ue);le>ue&&(ue+=PI2$3);var Ue=Math.atan2($e,Ce);return Ue<0&&(Ue+=PI2$3),Ue>=le&&Ue<=ue||Ue+PI2$3>=le&&Ue+PI2$3<=ue}function windingLine($,z,ie,le,ue,pe){if(pe>z&&pe>le||pe<z&&pe<le||le===z)return 0;var _e=(pe-z)/(le-z),Ce=le<z?1:-1;(_e===1||_e===0)&&(Ce=le<z?.5:-.5);var $e=_e*(ie-$)+$;return $e===ue?1/0:$e>ue?Ce: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,ie,le,ue,pe,_e,Ce,$e,xe){if(xe>z&&xe>le&&xe>pe&&xe>Ce||xe<z&&xe<le&&xe<pe&&xe<Ce)return 0;var Ie=cubicRootAt(z,le,pe,Ce,xe,roots);if(Ie===0)return 0;for(var ze=0,Ue=-1,qe=void 0,Et=void 0,Lt=0;Lt<Ie;Lt++){var hn=roots[Lt],vn=hn===0||hn===1?.5:1,_n=cubicAt($,ie,ue,_e,hn);_n<$e||(Ue<0&&(Ue=cubicExtrema(z,le,pe,Ce,extrema),extrema[1]<extrema[0]&&Ue>1&&swapExtrema(),qe=cubicAt(z,le,pe,Ce,extrema[0]),Ue>1&&(Et=cubicAt(z,le,pe,Ce,extrema[1]))),Ue===2?hn<extrema[0]?ze+=qe<z?vn:-vn:hn<extrema[1]?ze+=Et<qe?vn:-vn:ze+=Ce<Et?vn:-vn:hn<extrema[0]?ze+=qe<z?vn:-vn:ze+=Ce<qe?vn:-vn)}return ze}function windingQuadratic($,z,ie,le,ue,pe,_e,Ce){if(Ce>z&&Ce>le&&Ce>pe||Ce<z&&Ce<le&&Ce<pe)return 0;var $e=quadraticRootAt(z,le,pe,Ce,roots);if($e===0)return 0;var xe=quadraticExtremum(z,le,pe);if(xe>=0&&xe<=1){for(var Ie=0,ze=quadraticAt(z,le,pe,xe),Ue=0;Ue<$e;Ue++){var qe=roots[Ue]===0||roots[Ue]===1?.5:1,Et=quadraticAt($,ie,ue,roots[Ue]);Et<_e||(roots[Ue]<xe?Ie+=ze<z?qe:-qe:Ie+=pe<ze?qe:-qe)}return Ie}else{var qe=roots[0]===0||roots[0]===1?.5:1,Et=quadraticAt($,ie,ue,roots[0]);return Et<_e?0:pe<z?qe:-qe}}function windingArc($,z,ie,le,ue,pe,_e,Ce){if(Ce-=z,Ce>ie||Ce<-ie)return 0;var $e=Math.sqrt(ie*ie-Ce*Ce);roots[0]=-$e,roots[1]=$e;var xe=Math.abs(le-ue);if(xe<1e-4)return 0;if(xe>=PI2$2-1e-4){le=0,ue=PI2$2;var Ie=pe?1:-1;return _e>=roots[0]+$&&_e<=roots[1]+$?Ie:0}if(le>ue){var ze=le;le=ue,ue=ze}le<0&&(le+=PI2$2,ue+=PI2$2);for(var Ue=0,qe=0;qe<2;qe++){var Et=roots[qe];if(Et+$>_e){var Lt=Math.atan2(Ce,Et),Ie=pe?1:-1;Lt<0&&(Lt=PI2$2+Lt),(Lt>=le&&Lt<=ue||Lt+PI2$2>=le&&Lt+PI2$2<=ue)&&(Lt>Math.PI/2&&Lt<Math.PI*1.5&&(Ie=-Ie),Ue+=Ie)}}return Ue}function containPath($,z,ie,le,ue){for(var pe=$.data,_e=$.len(),Ce=0,$e=0,xe=0,Ie=0,ze=0,Ue,qe,Et=0;Et<_e;){var Lt=pe[Et++],hn=Et===1;switch(Lt===CMD$1.M&&Et>1&&(ie||(Ce+=windingLine($e,xe,Ie,ze,le,ue))),hn&&($e=pe[Et],xe=pe[Et+1],Ie=$e,ze=xe),Lt){case CMD$1.M:Ie=pe[Et++],ze=pe[Et++],$e=Ie,xe=ze;break;case CMD$1.L:if(ie){if(containStroke$4($e,xe,pe[Et],pe[Et+1],z,le,ue))return!0}else Ce+=windingLine($e,xe,pe[Et],pe[Et+1],le,ue)||0;$e=pe[Et++],xe=pe[Et++];break;case CMD$1.C:if(ie){if(containStroke$3($e,xe,pe[Et++],pe[Et++],pe[Et++],pe[Et++],pe[Et],pe[Et+1],z,le,ue))return!0}else Ce+=windingCubic($e,xe,pe[Et++],pe[Et++],pe[Et++],pe[Et++],pe[Et],pe[Et+1],le,ue)||0;$e=pe[Et++],xe=pe[Et++];break;case CMD$1.Q:if(ie){if(containStroke$2($e,xe,pe[Et++],pe[Et++],pe[Et],pe[Et+1],z,le,ue))return!0}else Ce+=windingQuadratic($e,xe,pe[Et++],pe[Et++],pe[Et],pe[Et+1],le,ue)||0;$e=pe[Et++],xe=pe[Et++];break;case CMD$1.A:var vn=pe[Et++],_n=pe[Et++],bn=pe[Et++],Sn=pe[Et++],Cn=pe[Et++],En=pe[Et++];Et+=1;var $n=!!(1-pe[Et++]);Ue=Math.cos(Cn)*bn+vn,qe=Math.sin(Cn)*Sn+_n,hn?(Ie=Ue,ze=qe):Ce+=windingLine($e,xe,Ue,qe,le,ue);var wn=(le-vn)*Sn/bn+vn;if(ie){if(containStroke$1(vn,_n,Sn,Cn,Cn+En,$n,z,wn,ue))return!0}else Ce+=windingArc(vn,_n,Sn,Cn,Cn+En,$n,wn,ue);$e=Math.cos(Cn+En)*bn+vn,xe=Math.sin(Cn+En)*Sn+_n;break;case CMD$1.R:Ie=$e=pe[Et++],ze=xe=pe[Et++];var Tn=pe[Et++],xn=pe[Et++];if(Ue=Ie+Tn,qe=ze+xn,ie){if(containStroke$4(Ie,ze,Ue,ze,z,le,ue)||containStroke$4(Ue,ze,Ue,qe,z,le,ue)||containStroke$4(Ue,qe,Ie,qe,z,le,ue)||containStroke$4(Ie,qe,Ie,ze,z,le,ue))return!0}else Ce+=windingLine(Ue,ze,Ue,qe,le,ue),Ce+=windingLine(Ie,qe,Ie,ze,le,ue);break;case CMD$1.Z:if(ie){if(containStroke$4($e,xe,Ie,ze,z,le,ue))return!0}else Ce+=windingLine($e,xe,Ie,ze,le,ue);$e=Ie,xe=ze;break}}return!ie&&!isAroundEqual$1(xe,ze)&&(Ce+=windingLine($e,xe,Ie,ze,le,ue)||0),Ce!==0}function contain$2($,z,ie){return containPath($,0,!1,z,ie)}function containStroke($,z,ie,le){return containPath($,z,!0,ie,le)}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(ie){return $.call(this,ie)||this}return z.prototype.update=function(){var ie=this;$.prototype.update.call(this);var le=this.style;if(le.decal){var ue=this._decalEl=this._decalEl||new z;ue.buildPath===z.prototype.buildPath&&(ue.buildPath=function($e){ie.buildPath($e,ie.shape)}),ue.silent=!0;var pe=ue.style;for(var _e in le)pe[_e]!==le[_e]&&(pe[_e]=le[_e]);pe.fill=le.fill?le.decal:null,pe.decal=null,pe.shadowColor=null,le.strokeFirst&&(pe.stroke=null);for(var Ce=0;Ce<pathCopyParams.length;++Ce)ue[pathCopyParams[Ce]]=this[pathCopyParams[Ce]];ue.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},z.prototype.getDecalElement=function(){return this._decalEl},z.prototype._init=function(ie){var le=keys(ie);this.shape=this.getDefaultShape();var ue=this.getDefaultStyle();ue&&this.useStyle(ue);for(var pe=0;pe<le.length;pe++){var _e=le[pe],Ce=ie[_e];_e==="style"?this.style?extend(this.style,Ce):this.useStyle(Ce):_e==="shape"?extend(this.shape,Ce):$.prototype.attrKV.call(this,_e,Ce)}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 ie=this.style.fill;if(ie!=="none"){if(isString(ie)){var le=lum(ie,0);return le>.5?DARK_LABEL_COLOR:le>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(ie)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},z.prototype.getInsideTextStroke=function(ie){var le=this.style.fill;if(isString(le)){var ue=this.__zr,pe=!!(ue&&ue.isDarkMode()),_e=lum(ie,0)<DARK_MODE_THRESHOLD;if(pe===_e)return le}},z.prototype.buildPath=function(ie,le,ue){},z.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},z.prototype.getUpdatedPathProxy=function(ie){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,ie),this.path},z.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},z.prototype.hasStroke=function(){var ie=this.style,le=ie.stroke;return!(le==null||le==="none"||!(ie.lineWidth>0))},z.prototype.hasFill=function(){var ie=this.style,le=ie.fill;return le!=null&&le!=="none"},z.prototype.getBoundingRect=function(){var ie=this._rect,le=this.style,ue=!ie;if(ue){var pe=!1;this.path||(pe=!0,this.createPathProxy());var _e=this.path;(pe||this.__dirty&SHAPE_CHANGED_BIT)&&(_e.beginPath(),this.buildPath(_e,this.shape,!1),this.pathUpdated()),ie=_e.getBoundingRect()}if(this._rect=ie,this.hasStroke()&&this.path&&this.path.len()>0){var Ce=this._rectStroke||(this._rectStroke=ie.clone());if(this.__dirty||ue){Ce.copy(ie);var $e=le.strokeNoScale?this.getLineScale():1,xe=le.lineWidth;if(!this.hasFill()){var Ie=this.strokeContainThreshold;xe=Math.max(xe,Ie??4)}$e>1e-10&&(Ce.width+=xe/$e,Ce.height+=xe/$e,Ce.x-=xe/$e/2,Ce.y-=xe/$e/2)}return Ce}return ie},z.prototype.contain=function(ie,le){var ue=this.transformCoordToLocal(ie,le),pe=this.getBoundingRect(),_e=this.style;if(ie=ue[0],le=ue[1],pe.contain(ie,le)){var Ce=this.path;if(this.hasStroke()){var $e=_e.lineWidth,xe=_e.strokeNoScale?this.getLineScale():1;if(xe>1e-10&&(this.hasFill()||($e=Math.max($e,this.strokeContainThreshold)),containStroke(Ce,$e/xe,ie,le)))return!0}if(this.hasFill())return contain$2(Ce,ie,le)}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(ie){return this.animate("shape",ie)},z.prototype.updateDuringAnimation=function(ie){ie==="style"?this.dirtyStyle():ie==="shape"?this.dirtyShape():this.markRedraw()},z.prototype.attrKV=function(ie,le){ie==="shape"?this.setShape(le):$.prototype.attrKV.call(this,ie,le)},z.prototype.setShape=function(ie,le){var ue=this.shape;return ue||(ue=this.shape={}),typeof ie=="string"?ue[ie]=le:extend(ue,ie),this.dirtyShape(),this},z.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},z.prototype.createStyle=function(ie){return createObject(DEFAULT_PATH_STYLE,ie)},z.prototype._innerSaveToNormal=function(ie){$.prototype._innerSaveToNormal.call(this,ie);var le=this._normalState;ie.shape&&!le.shape&&(le.shape=extend({},this.shape))},z.prototype._applyStateObj=function(ie,le,ue,pe,_e,Ce){$.prototype._applyStateObj.call(this,ie,le,ue,pe,_e,Ce);var $e=!(le&&pe),xe;if(le&&le.shape?_e?pe?xe=le.shape:(xe=extend({},ue.shape),extend(xe,le.shape)):(xe=extend({},pe?this.shape:ue.shape),extend(xe,le.shape)):$e&&(xe=ue.shape),xe)if(_e){this.shape=extend({},this.shape);for(var Ie={},ze=keys(xe),Ue=0;Ue<ze.length;Ue++){var qe=ze[Ue];typeof xe[qe]=="object"?this.shape[qe]=xe[qe]:Ie[qe]=xe[qe]}this._transitionState(ie,{shape:Ie},Ce)}else this.shape=xe,this.dirtyShape()},z.prototype._mergeStates=function(ie){for(var le=$.prototype._mergeStates.call(this,ie),ue,pe=0;pe<ie.length;pe++){var _e=ie[pe];_e.shape&&(ue=ue||{},this._mergeStyle(ue,_e.shape))}return ue&&(le.shape=ue),le},z.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},z.prototype.isZeroArea=function(){return!1},z.extend=function(ie){var le=function(pe){__extends(_e,pe);function _e(Ce){var $e=pe.call(this,Ce)||this;return ie.init&&ie.init.call($e,Ce),$e}return _e.prototype.getDefaultStyle=function(){return clone$3(ie.style)},_e.prototype.getDefaultShape=function(){return clone$3(ie.shape)},_e}(z);for(var ue in ie)typeof ie[ue]=="function"&&(le.prototype[ue]=ie[ue]);return le},z.initDefaultProps=function(){var ie=z.prototype;ie.type="path",ie.strokeContainThreshold=5,ie.segmentIgnoreThreshold=0,ie.subPixelOptimize=!1,ie.autoBatch=!1,ie.__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 ie=this.style,le=ie.stroke;return le!=null&&le!=="none"&&ie.lineWidth>0},z.prototype.hasFill=function(){var ie=this.style,le=ie.fill;return le!=null&&le!=="none"},z.prototype.createStyle=function(ie){return createObject(DEFAULT_TSPAN_STYLE,ie)},z.prototype.setBoundingRect=function(ie){this._rect=ie},z.prototype.getBoundingRect=function(){var ie=this.style;if(!this._rect){var le=ie.text;le!=null?le+="":le="";var ue=getBoundingRect(le,ie.font,ie.textAlign,ie.textBaseline);if(ue.x+=ie.x||0,ue.y+=ie.y||0,this.hasStroke()){var pe=ie.lineWidth;ue.x-=pe/2,ue.y-=pe/2,ue.width+=pe,ue.height+=pe}this._rect=ue}return this._rect},z.initDefaultProps=function(){var ie=z.prototype;ie.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(ie){return createObject(DEFAULT_IMAGE_STYLE,ie)},z.prototype._getSize=function(ie){var le=this.style,ue=le[ie];if(ue!=null)return ue;var pe=isImageLike(le.image)?le.image:this.__image;if(!pe)return 0;var _e=ie==="width"?"height":"width",Ce=le[_e];return Ce==null?pe[ie]:pe[ie]/pe[_e]*Ce},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 ie=this.style;return this._rect||(this._rect=new BoundingRect$1(ie.x||0,ie.y||0,this.getWidth(),this.getHeight())),this._rect},z}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2($,z){var ie=z.x,le=z.y,ue=z.width,pe=z.height,_e=z.r,Ce,$e,xe,Ie;ue<0&&(ie=ie+ue,ue=-ue),pe<0&&(le=le+pe,pe=-pe),typeof _e=="number"?Ce=$e=xe=Ie=_e:_e instanceof Array?_e.length===1?Ce=$e=xe=Ie=_e[0]:_e.length===2?(Ce=xe=_e[0],$e=Ie=_e[1]):_e.length===3?(Ce=_e[0],$e=Ie=_e[1],xe=_e[2]):(Ce=_e[0],$e=_e[1],xe=_e[2],Ie=_e[3]):Ce=$e=xe=Ie=0;var ze;Ce+$e>ue&&(ze=Ce+$e,Ce*=ue/ze,$e*=ue/ze),xe+Ie>ue&&(ze=xe+Ie,xe*=ue/ze,Ie*=ue/ze),$e+xe>pe&&(ze=$e+xe,$e*=pe/ze,xe*=pe/ze),Ce+Ie>pe&&(ze=Ce+Ie,Ce*=pe/ze,Ie*=pe/ze),$.moveTo(ie+Ce,le),$.lineTo(ie+ue-$e,le),$e!==0&&$.arc(ie+ue-$e,le+$e,$e,-Math.PI/2,0),$.lineTo(ie+ue,le+pe-xe),xe!==0&&$.arc(ie+ue-xe,le+pe-xe,xe,0,Math.PI/2),$.lineTo(ie+Ie,le+pe),Ie!==0&&$.arc(ie+Ie,le+pe-Ie,Ie,Math.PI/2,Math.PI),$.lineTo(ie,le+Ce),Ce!==0&&$.arc(ie+Ce,le+Ce,Ce,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1($,z,ie){if(z){var le=z.x1,ue=z.x2,pe=z.y1,_e=z.y2;$.x1=le,$.x2=ue,$.y1=pe,$.y2=_e;var Ce=ie&&ie.lineWidth;return Ce&&(round(le*2)===round(ue*2)&&($.x1=$.x2=subPixelOptimize$1(le,Ce,!0)),round(pe*2)===round(_e*2)&&($.y1=$.y2=subPixelOptimize$1(pe,Ce,!0))),$}}function subPixelOptimizeRect$1($,z,ie){if(z){var le=z.x,ue=z.y,pe=z.width,_e=z.height;$.x=le,$.y=ue,$.width=pe,$.height=_e;var Ce=ie&&ie.lineWidth;return Ce&&($.x=subPixelOptimize$1(le,Ce,!0),$.y=subPixelOptimize$1(ue,Ce,!0),$.width=Math.max(subPixelOptimize$1(le+pe,Ce,!1)-$.x,pe===0?0:1),$.height=Math.max(subPixelOptimize$1(ue+_e,Ce,!1)-$.y,_e===0?0:1)),$}}function subPixelOptimize$1($,z,ie){if(!z)return $;var le=round($*2);return(le+round(z))%2===0?le/2:(le+(ie?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(ie){return $.call(this,ie)||this}return z.prototype.getDefaultShape=function(){return new RectShape},z.prototype.buildPath=function(ie,le){var ue,pe,_e,Ce;if(this.subPixelOptimize){var $e=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,le,this.style);ue=$e.x,pe=$e.y,_e=$e.width,Ce=$e.height,$e.r=le.r,le=$e}else ue=le.x,pe=le.y,_e=le.width,Ce=le.height;le.r?buildPath$2(ie,le):ie.rect(ue,pe,_e,Ce)},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(ie){var le=$.call(this)||this;return le.type="text",le._children=[],le._defaultStyle=DEFAULT_RICH_TEXT_COLOR,le.attr(ie),le}return z.prototype.childrenRef=function(){return this._children},z.prototype.update=function(){$.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var ie=0;ie<this._children.length;ie++){var le=this._children[ie];le.zlevel=this.zlevel,le.z=this.z,le.z2=this.z2,le.culling=this.culling,le.cursor=this.cursor,le.invisible=this.invisible}},z.prototype.updateTransform=function(){var ie=this.innerTransformable;ie?(ie.updateTransform(),ie.transform&&(this.transform=ie.transform)):$.prototype.updateTransform.call(this)},z.prototype.getLocalTransform=function(ie){var le=this.innerTransformable;return le?le.getLocalTransform(ie):$.prototype.getLocalTransform.call(this,ie)},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(ie){$.prototype.addSelfToZr.call(this,ie);for(var le=0;le<this._children.length;le++)this._children[le].__zr=ie},z.prototype.removeSelfFromZr=function(ie){$.prototype.removeSelfFromZr.call(this,ie);for(var le=0;le<this._children.length;le++)this._children[le].__zr=null},z.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var ie=new BoundingRect$1(0,0,0,0),le=this._children,ue=[],pe=null,_e=0;_e<le.length;_e++){var Ce=le[_e],$e=Ce.getBoundingRect(),xe=Ce.getLocalTransform(ue);xe?(ie.copy($e),ie.applyTransform(xe),pe=pe||ie.clone(),pe.union(ie)):(pe=pe||$e.clone(),pe.union($e))}this._rect=pe||ie}return this._rect},z.prototype.setDefaultTextStyle=function(ie){this._defaultStyle=ie||DEFAULT_RICH_TEXT_COLOR},z.prototype.setTextContent=function(ie){},z.prototype._mergeStyle=function(ie,le){if(!le)return ie;var ue=le.rich,pe=ie.rich||ue&&{};return extend(ie,le),ue&&pe?(this._mergeRich(pe,ue),ie.rich=pe):pe&&(ie.rich=pe),ie},z.prototype._mergeRich=function(ie,le){for(var ue=keys(le),pe=0;pe<ue.length;pe++){var _e=ue[pe];ie[_e]=ie[_e]||{},extend(ie[_e],le[_e])}},z.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},z.prototype._getOrCreateChild=function(ie){var le=this._children[this._childCursor];return(!le||!(le instanceof ie))&&(le=new ie),this._children[this._childCursor++]=le,le.__zr=this.__zr,le.parent=this,le},z.prototype._updatePlainTexts=function(){var ie=this.style,le=ie.font||DEFAULT_FONT,ue=ie.padding,pe=getStyleText(ie),_e=parsePlainText(pe,ie),Ce=needDrawBackground(ie),$e=!!ie.backgroundColor,xe=_e.outerHeight,Ie=_e.outerWidth,ze=_e.contentWidth,Ue=_e.lines,qe=_e.lineHeight,Et=this._defaultStyle,Lt=ie.x||0,hn=ie.y||0,vn=ie.align||Et.align||"left",_n=ie.verticalAlign||Et.verticalAlign||"top",bn=Lt,Sn=adjustTextY(hn,_e.contentHeight,_n);if(Ce||ue){var Cn=adjustTextX(Lt,Ie,vn),En=adjustTextY(hn,xe,_n);Ce&&this._renderBackground(ie,ie,Cn,En,Ie,xe)}Sn+=qe/2,ue&&(bn=getTextXForPadding(Lt,vn,ue),_n==="top"?Sn+=ue[0]:_n==="bottom"&&(Sn-=ue[2]));for(var $n=0,wn=!1,Tn=getFill("fill"in ie?ie.fill:(wn=!0,Et.fill)),xn=getStroke("stroke"in ie?ie.stroke:!$e&&(!Et.autoStroke||wn)?($n=DEFAULT_STROKE_LINE_WIDTH,Et.stroke):null),Pn=ie.textShadowBlur>0,kn=ie.width!=null&&(ie.overflow==="truncate"||ie.overflow==="break"||ie.overflow==="breakAll"),An=_e.calculatedLineHeight,Nn=0;Nn<Ue.length;Nn++){var Fn=this._getOrCreateChild(TSpan$1),Ln=Fn.createStyle();Fn.useStyle(Ln),Ln.text=Ue[Nn],Ln.x=bn,Ln.y=Sn,vn&&(Ln.textAlign=vn),Ln.textBaseline="middle",Ln.opacity=ie.opacity,Ln.strokeFirst=!0,Pn&&(Ln.shadowBlur=ie.textShadowBlur||0,Ln.shadowColor=ie.textShadowColor||"transparent",Ln.shadowOffsetX=ie.textShadowOffsetX||0,Ln.shadowOffsetY=ie.textShadowOffsetY||0),Ln.stroke=xn,Ln.fill=Tn,xn&&(Ln.lineWidth=ie.lineWidth||$n,Ln.lineDash=ie.lineDash,Ln.lineDashOffset=ie.lineDashOffset||0),Ln.font=le,setSeparateFont(Ln,ie),Sn+=qe,kn&&Fn.setBoundingRect(new BoundingRect$1(adjustTextX(Ln.x,ie.width,Ln.textAlign),adjustTextY(Ln.y,An,Ln.textBaseline),ze,An))}},z.prototype._updateRichTexts=function(){var ie=this.style,le=getStyleText(ie),ue=parseRichText(le,ie),pe=ue.width,_e=ue.outerWidth,Ce=ue.outerHeight,$e=ie.padding,xe=ie.x||0,Ie=ie.y||0,ze=this._defaultStyle,Ue=ie.align||ze.align,qe=ie.verticalAlign||ze.verticalAlign,Et=adjustTextX(xe,_e,Ue),Lt=adjustTextY(Ie,Ce,qe),hn=Et,vn=Lt;$e&&(hn+=$e[3],vn+=$e[0]);var _n=hn+pe;needDrawBackground(ie)&&this._renderBackground(ie,ie,Et,Lt,_e,Ce);for(var bn=!!ie.backgroundColor,Sn=0;Sn<ue.lines.length;Sn++){for(var Cn=ue.lines[Sn],En=Cn.tokens,$n=En.length,wn=Cn.lineHeight,Tn=Cn.width,xn=0,Pn=hn,kn=_n,An=$n-1,Nn=void 0;xn<$n&&(Nn=En[xn],!Nn.align||Nn.align==="left");)this._placeToken(Nn,ie,wn,vn,Pn,"left",bn),Tn-=Nn.width,Pn+=Nn.width,xn++;for(;An>=0&&(Nn=En[An],Nn.align==="right");)this._placeToken(Nn,ie,wn,vn,kn,"right",bn),Tn-=Nn.width,kn-=Nn.width,An--;for(Pn+=(pe-(Pn-hn)-(_n-kn)-Tn)/2;xn<=An;)Nn=En[xn],this._placeToken(Nn,ie,wn,vn,Pn+Nn.width/2,"center",bn),Pn+=Nn.width,xn++;vn+=wn}},z.prototype._placeToken=function(ie,le,ue,pe,_e,Ce,$e){var xe=le.rich[ie.styleName]||{};xe.text=ie.text;var Ie=ie.verticalAlign,ze=pe+ue/2;Ie==="top"?ze=pe+ie.height/2:Ie==="bottom"&&(ze=pe+ue-ie.height/2);var Ue=!ie.isLineHolder&&needDrawBackground(xe);Ue&&this._renderBackground(xe,le,Ce==="right"?_e-ie.width:Ce==="center"?_e-ie.width/2:_e,ze-ie.height/2,ie.width,ie.height);var qe=!!xe.backgroundColor,Et=ie.textPadding;Et&&(_e=getTextXForPadding(_e,Ce,Et),ze-=ie.height/2-Et[0]-ie.innerHeight/2);var Lt=this._getOrCreateChild(TSpan$1),hn=Lt.createStyle();Lt.useStyle(hn);var vn=this._defaultStyle,_n=!1,bn=0,Sn=getFill("fill"in xe?xe.fill:"fill"in le?le.fill:(_n=!0,vn.fill)),Cn=getStroke("stroke"in xe?xe.stroke:"stroke"in le?le.stroke:!qe&&!$e&&(!vn.autoStroke||_n)?(bn=DEFAULT_STROKE_LINE_WIDTH,vn.stroke):null),En=xe.textShadowBlur>0||le.textShadowBlur>0;hn.text=ie.text,hn.x=_e,hn.y=ze,En&&(hn.shadowBlur=xe.textShadowBlur||le.textShadowBlur||0,hn.shadowColor=xe.textShadowColor||le.textShadowColor||"transparent",hn.shadowOffsetX=xe.textShadowOffsetX||le.textShadowOffsetX||0,hn.shadowOffsetY=xe.textShadowOffsetY||le.textShadowOffsetY||0),hn.textAlign=Ce,hn.textBaseline="middle",hn.font=ie.font||DEFAULT_FONT,hn.opacity=retrieve3(xe.opacity,le.opacity,1),setSeparateFont(hn,xe),Cn&&(hn.lineWidth=retrieve3(xe.lineWidth,le.lineWidth,bn),hn.lineDash=retrieve2(xe.lineDash,le.lineDash),hn.lineDashOffset=le.lineDashOffset||0,hn.stroke=Cn),Sn&&(hn.fill=Sn);var $n=ie.contentWidth,wn=ie.contentHeight;Lt.setBoundingRect(new BoundingRect$1(adjustTextX(hn.x,$n,hn.textAlign),adjustTextY(hn.y,wn,hn.textBaseline),$n,wn))},z.prototype._renderBackground=function(ie,le,ue,pe,_e,Ce){var $e=ie.backgroundColor,xe=ie.borderWidth,Ie=ie.borderColor,ze=$e&&$e.image,Ue=$e&&!ze,qe=ie.borderRadius,Et=this,Lt,hn;if(Ue||ie.lineHeight||xe&&Ie){Lt=this._getOrCreateChild(Rect$2),Lt.useStyle(Lt.createStyle()),Lt.style.fill=null;var vn=Lt.shape;vn.x=ue,vn.y=pe,vn.width=_e,vn.height=Ce,vn.r=qe,Lt.dirtyShape()}if(Ue){var _n=Lt.style;_n.fill=$e||null,_n.fillOpacity=retrieve2(ie.fillOpacity,1)}else if(ze){hn=this._getOrCreateChild(ZRImage$1),hn.onload=function(){Et.dirtyStyle()};var bn=hn.style;bn.image=$e.image,bn.x=ue,bn.y=pe,bn.width=_e,bn.height=Ce}if(xe&&Ie){var _n=Lt.style;_n.lineWidth=xe,_n.stroke=Ie,_n.strokeOpacity=retrieve2(ie.strokeOpacity,1),_n.lineDash=ie.borderDash,_n.lineDashOffset=ie.borderDashOffset||0,Lt.strokeContainThreshold=0,Lt.hasFill()&&Lt.hasStroke()&&(_n.strokeFirst=!0,_n.lineWidth*=2)}var Sn=(Lt||hn).style;Sn.shadowBlur=ie.shadowBlur||0,Sn.shadowColor=ie.shadowColor||"transparent",Sn.shadowOffsetX=ie.shadowOffsetX||0,Sn.shadowOffsetY=ie.shadowOffsetY||0,Sn.opacity=retrieve3(ie.opacity,le.opacity,1)},z.makeFont=function(ie){var le="";return hasSeparateFont(ie)&&(le=[ie.fontStyle,ie.fontWeight,parseFontSize(ie.fontSize),ie.fontFamily||"sans-serif"].join(" ")),le&&trim$1(le)||ie.textFont||ie.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 ie=0;ie<FONT_PARTS.length;ie++){var le=FONT_PARTS[ie],ue=z[le];ue!=null&&($[le]=ue)}}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 ie=$.verticalAlign;ie==="center"&&(ie="middle"),$.verticalAlign=ie==null||VALID_TEXT_VERTICAL_ALIGN[ie]?ie:"top";var le=$.padding;le&&($.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,ie){return z==="right"?$-ie[1]:z==="center"?$+ie[3]/2-ie[1]/2:$+ie[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,ie,le){if(le){var ue=getECData(le);ue.dataIndex=ie,ue.dataType=z,ue.seriesIndex=$,le.type==="group"&&le.traverse(function(pe){var _e=getECData(pe);_e.seriesIndex=$,_e.dataIndex=ie,_e.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 ie=extend({},$);return ie.colorStops=map$2($.colorStops,function(le){return{offset:le.offset,color:lift(le.color,-.1)}}),ie}return $}function doChangeHoverState($,z,ie){$.onHoverStateChange&&($.hoverState||0)!==ie&&$.onHoverStateChange(z),$.hoverState=ie}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,ie){z($,ie)}function traverseUpdateState($,z,ie){updateElementState($,z,ie),$.isGroup&&$.traverse(function(le){updateElementState(le,z,ie)})}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,ie,le){for(var ue=$.style,pe={},_e=0;_e<z.length;_e++){var Ce=z[_e],$e=ue[Ce];pe[Ce]=$e??(le&&le[Ce])}for(var _e=0;_e<$.animators.length;_e++){var xe=$.animators[_e];xe.__fromStateTransition&&xe.__fromStateTransition.indexOf(ie)<0&&xe.targetName==="style"&&xe.saveTo(pe,z)}return pe}function createEmphasisDefaultState($,z,ie,le){var ue=ie&&indexOf(ie,"select")>=0,pe=!1;if($ instanceof Path$1){var _e=getSavedStates($),Ce=ue&&_e.selectFill||_e.normalFill,$e=ue&&_e.selectStroke||_e.normalStroke;if(hasFillOrStroke(Ce)||hasFillOrStroke($e)){le=le||{};var xe=le.style||{};xe.fill==="inherit"?(pe=!0,le=extend({},le),xe=extend({},xe),xe.fill=Ce):!hasFillOrStroke(xe.fill)&&hasFillOrStroke(Ce)?(pe=!0,le=extend({},le),xe=extend({},xe),xe.fill=liftColor(Ce)):!hasFillOrStroke(xe.stroke)&&hasFillOrStroke($e)&&(pe||(le=extend({},le),xe=extend({},xe)),xe.stroke=liftColor($e)),le.style=xe}}if(le&&le.z2==null){pe||(le=extend({},le));var Ie=$.z2EmphasisLift;le.z2=$.z2+(Ie??Z2_EMPHASIS_LIFT)}return le}function createSelectDefaultState($,z,ie){if(ie&&ie.z2==null){ie=extend({},ie);var le=$.z2SelectLift;ie.z2=$.z2+(le??Z2_SELECT_LIFT)}return ie}function createBlurDefaultState($,z,ie){var le=indexOf($.currentStates,z)>=0,ue=$.style.opacity,pe=le?null:getFromStateStyle($,["opacity"],z,{opacity:1});ie=ie||{};var _e=ie.style||{};return _e.opacity==null&&(ie=extend({},ie),_e=extend({opacity:le?ue:pe.opacity*.1},_e),ie.style=_e),ie}function elementStateProxy($,z){var ie=this.states[$];if(this.style){if($==="emphasis")return createEmphasisDefaultState(this,$,z,ie);if($==="blur")return createBlurDefaultState(this,$,ie);if($==="select")return createSelectDefaultState(this,$,ie)}return ie}function setDefaultStateProxy($){$.stateProxy=elementStateProxy;var z=$.getTextContent(),ie=$.getTextGuideLine();z&&(z.stateProxy=elementStateProxy),ie&&(ie.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(),ie=[],le=[];z.eachComponent(function(ue,pe){var _e=getComponentStates(pe),Ce=ue==="series",$e=Ce?$.getViewOfSeriesModel(pe):$.getViewOfComponentModel(pe);!Ce&&le.push($e),_e.isBlured&&($e.group.traverse(function(xe){singleLeaveBlur(xe)}),Ce&&ie.push(pe)),_e.isBlured=!1}),each$c(le,function(ue){ue&&ue.toggleBlurSeries&&ue.toggleBlurSeries(ie,!1,z)})}function blurSeries($,z,ie,le){var ue=le.getModel();ie=ie||"coordinateSystem";function pe(xe,Ie){for(var ze=0;ze<Ie.length;ze++){var Ue=xe.getItemGraphicEl(Ie[ze]);Ue&&leaveBlur(Ue)}}if($!=null&&!(!z||z==="none")){var _e=ue.getSeriesByIndex($),Ce=_e.coordinateSystem;Ce&&Ce.master&&(Ce=Ce.master);var $e=[];ue.eachSeries(function(xe){var Ie=_e===xe,ze=xe.coordinateSystem;ze&&ze.master&&(ze=ze.master);var Ue=ze&&Ce?ze===Ce:Ie;if(!(ie==="series"&&!Ie||ie==="coordinateSystem"&&!Ue||z==="series"&&Ie)){var qe=le.getViewOfSeriesModel(xe);if(qe.group.traverse(function(hn){singleEnterBlur(hn)}),isArrayLike(z))pe(xe.getData(),z);else if(isObject$3(z))for(var Et=keys(z),Lt=0;Lt<Et.length;Lt++)pe(xe.getData(Et[Lt]),z[Et[Lt]]);$e.push(xe),getComponentStates(xe).isBlured=!0}}),ue.eachComponent(function(xe,Ie){if(xe!=="series"){var ze=le.getViewOfComponentModel(Ie);ze&&ze.toggleBlurSeries&&ze.toggleBlurSeries($e,!0,ue)}})}}function blurComponent($,z,ie){if(!($==null||z==null)){var le=ie.getModel().getComponent($,z);if(le){getComponentStates(le).isBlured=!0;var ue=ie.getViewOfComponentModel(le);!ue||!ue.focusBlurEnabled||ue.group.traverse(function(pe){singleEnterBlur(pe)})}}}function blurSeriesFromHighlightPayload($,z,ie){var le=$.seriesIndex,ue=$.getData(z.dataType);if(ue){var pe=queryDataIndex(ue,z);pe=(isArray$1(pe)?pe[0]:pe)||0;var _e=ue.getItemGraphicEl(pe);if(!_e)for(var Ce=ue.count(),$e=0;!_e&&$e<Ce;)_e=ue.getItemGraphicEl($e++);if(_e){var xe=getECData(_e);blurSeries(le,xe.focus,xe.blurScope,ie)}else{var Ie=$.get(["emphasis","focus"]),ze=$.get(["emphasis","blurScope"]);Ie!=null&&blurSeries(le,Ie,ze,ie)}}}function findComponentHighDownDispatchers($,z,ie,le){var ue={focusSelf:!1,dispatchers:null};if($==null||$==="series"||z==null||ie==null)return ue;var pe=le.getModel().getComponent($,z);if(!pe)return ue;var _e=le.getViewOfComponentModel(pe);if(!_e||!_e.findHighDownDispatchers)return ue;for(var Ce=_e.findHighDownDispatchers(ie),$e,xe=0;xe<Ce.length;xe++)if(getECData(Ce[xe]).focus==="self"){$e=!0;break}return{focusSelf:$e,dispatchers:Ce}}function handleGlobalMouseOverForHighDown($,z,ie){var le=getECData($),ue=findComponentHighDownDispatchers(le.componentMainType,le.componentIndex,le.componentHighDownName,ie),pe=ue.dispatchers,_e=ue.focusSelf;pe?(_e&&blurComponent(le.componentMainType,le.componentIndex,ie),each$c(pe,function(Ce){return enterEmphasisWhenMouseOver(Ce,z)})):(blurSeries(le.seriesIndex,le.focus,le.blurScope,ie),le.focus==="self"&&blurComponent(le.componentMainType,le.componentIndex,ie),enterEmphasisWhenMouseOver($,z))}function handleGlobalMouseOutForHighDown($,z,ie){allLeaveBlur(ie);var le=getECData($),ue=findComponentHighDownDispatchers(le.componentMainType,le.componentIndex,le.componentHighDownName,ie).dispatchers;ue?each$c(ue,function(pe){return leaveEmphasisWhenMouseOut(pe,z)}):leaveEmphasisWhenMouseOut($,z)}function toggleSelectionFromPayload($,z,ie){if(isSelectChangePayload(z)){var le=z.dataType,ue=$.getData(le),pe=queryDataIndex(ue,z);isArray$1(pe)||(pe=[pe]),$[z.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":z.type===SELECT_ACTION_TYPE?"select":"unselect"](pe,le)}}function updateSeriesElementSelection($){var z=$.getAllData();each$c(z,function(ie){var le=ie.data,ue=ie.type;le.eachItemGraphicEl(function(pe,_e){$.isSelected(_e,ue)?enterSelect(pe):leaveSelect(pe)})})}function getAllSelectedIndices($){var z=[];return $.eachSeries(function(ie){var le=ie.getAllData();each$c(le,function(ue){ue.data;var pe=ue.type,_e=ie.getSelectedDataIndices();if(_e.length>0){var Ce={dataIndex:_e,seriesIndex:ie.seriesIndex};pe!=null&&(Ce.dataType=pe),z.push(Ce)}})}),z}function enableHoverEmphasis($,z,ie){setAsHighDownDispatcher($,!0),traverseUpdateState($,setDefaultStateProxy),enableHoverFocus($,z,ie)}function disableHoverEmphasis($){setAsHighDownDispatcher($,!1)}function toggleHoverEmphasis($,z,ie,le){le?disableHoverEmphasis($):enableHoverEmphasis($,z,ie)}function enableHoverFocus($,z,ie){var le=getECData($);z!=null?(le.focus=z,le.blurScope=ie):le.focus&&(le.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel($,z,ie,le){ie=ie||"itemStyle";for(var ue=0;ue<OTHER_STATES.length;ue++){var pe=OTHER_STATES[ue],_e=z.getModel([pe,ie]),Ce=$.ensureState(pe);Ce.style=le?le(_e):_e[defaultStyleGetterMap[ie]]()}}function setAsHighDownDispatcher($,z){var ie=z===!1,le=$;$.highDownSilentOnTouch&&(le.__highDownSilentOnTouch=$.highDownSilentOnTouch),(!ie||le.__highDownDispatcher)&&(le.__highByOuter=le.__highByOuter||0,le.__highDownDispatcher=!ie)}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 ie=$.states.select||{};z.selectFill=ie.style&&ie.style.fill||null,z.selectStroke=ie.style&&ie.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath($,z){if(z){var ie=$.data,le=$.len(),ue,pe,_e,Ce,$e,xe,Ie=CMD.M,ze=CMD.C,Ue=CMD.L,qe=CMD.R,Et=CMD.A,Lt=CMD.Q;for(_e=0,Ce=0;_e<le;){switch(ue=ie[_e++],Ce=_e,pe=0,ue){case Ie:pe=1;break;case Ue:pe=1;break;case ze:pe=3;break;case Lt:pe=2;break;case Et:var hn=z[4],vn=z[5],_n=mathSqrt$2(z[0]*z[0]+z[1]*z[1]),bn=mathSqrt$2(z[2]*z[2]+z[3]*z[3]),Sn=mathAtan2(-z[1]/bn,z[0]/_n);ie[_e]*=_n,ie[_e++]+=hn,ie[_e]*=bn,ie[_e++]+=vn,ie[_e++]*=_n,ie[_e++]*=bn,ie[_e++]+=Sn,ie[_e++]+=Sn,_e+=2,Ce=_e;break;case qe:xe[0]=ie[_e++],xe[1]=ie[_e++],applyTransform$1(xe,xe,z),ie[Ce++]=xe[0],ie[Ce++]=xe[1],xe[0]+=ie[_e++],xe[1]+=ie[_e++],applyTransform$1(xe,xe,z),ie[Ce++]=xe[0],ie[Ce++]=xe[1]}for($e=0;$e<pe;$e++){var Cn=points[$e];Cn[0]=ie[_e++],Cn[1]=ie[_e++],applyTransform$1(Cn,Cn,z),ie[Ce++]=Cn[0],ie[Ce++]=Cn[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,ie,le,ue,pe,_e,Ce,$e,xe,Ie){var ze=$e*(PI$3/180),Ue=mathCos$1(ze)*($-ie)/2+mathSin$1(ze)*(z-le)/2,qe=-1*mathSin$1(ze)*($-ie)/2+mathCos$1(ze)*(z-le)/2,Et=Ue*Ue/(_e*_e)+qe*qe/(Ce*Ce);Et>1&&(_e*=mathSqrt$1(Et),Ce*=mathSqrt$1(Et));var Lt=(ue===pe?-1:1)*mathSqrt$1((_e*_e*(Ce*Ce)-_e*_e*(qe*qe)-Ce*Ce*(Ue*Ue))/(_e*_e*(qe*qe)+Ce*Ce*(Ue*Ue)))||0,hn=Lt*_e*qe/Ce,vn=Lt*-Ce*Ue/_e,_n=($+ie)/2+mathCos$1(ze)*hn-mathSin$1(ze)*vn,bn=(z+le)/2+mathSin$1(ze)*hn+mathCos$1(ze)*vn,Sn=vAngle([1,0],[(Ue-hn)/_e,(qe-vn)/Ce]),Cn=[(Ue-hn)/_e,(qe-vn)/Ce],En=[(-1*Ue-hn)/_e,(-1*qe-vn)/Ce],$n=vAngle(Cn,En);if(vRatio(Cn,En)<=-1&&($n=PI$3),vRatio(Cn,En)>=1&&($n=0),$n<0){var wn=Math.round($n/PI$3*1e6)/1e6;$n=PI$3*2+wn%2*PI$3}Ie.addData(xe,_n,bn,_e,Ce,Sn,$n,ze,pe)}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 ie=0,le=0,ue=ie,pe=le,_e,Ce=PathProxy$1.CMD,$e=$.match(commandReg);if(!$e)return z;for(var xe=0;xe<$e.length;xe++){for(var Ie=$e[xe],ze=Ie.charAt(0),Ue=void 0,qe=Ie.match(numberReg)||[],Et=qe.length,Lt=0;Lt<Et;Lt++)qe[Lt]=parseFloat(qe[Lt]);for(var hn=0;hn<Et;){var vn=void 0,_n=void 0,bn=void 0,Sn=void 0,Cn=void 0,En=void 0,$n=void 0,wn=ie,Tn=le,xn=void 0,Pn=void 0;switch(ze){case"l":ie+=qe[hn++],le+=qe[hn++],Ue=Ce.L,z.addData(Ue,ie,le);break;case"L":ie=qe[hn++],le=qe[hn++],Ue=Ce.L,z.addData(Ue,ie,le);break;case"m":ie+=qe[hn++],le+=qe[hn++],Ue=Ce.M,z.addData(Ue,ie,le),ue=ie,pe=le,ze="l";break;case"M":ie=qe[hn++],le=qe[hn++],Ue=Ce.M,z.addData(Ue,ie,le),ue=ie,pe=le,ze="L";break;case"h":ie+=qe[hn++],Ue=Ce.L,z.addData(Ue,ie,le);break;case"H":ie=qe[hn++],Ue=Ce.L,z.addData(Ue,ie,le);break;case"v":le+=qe[hn++],Ue=Ce.L,z.addData(Ue,ie,le);break;case"V":le=qe[hn++],Ue=Ce.L,z.addData(Ue,ie,le);break;case"C":Ue=Ce.C,z.addData(Ue,qe[hn++],qe[hn++],qe[hn++],qe[hn++],qe[hn++],qe[hn++]),ie=qe[hn-2],le=qe[hn-1];break;case"c":Ue=Ce.C,z.addData(Ue,qe[hn++]+ie,qe[hn++]+le,qe[hn++]+ie,qe[hn++]+le,qe[hn++]+ie,qe[hn++]+le),ie+=qe[hn-2],le+=qe[hn-1];break;case"S":vn=ie,_n=le,xn=z.len(),Pn=z.data,_e===Ce.C&&(vn+=ie-Pn[xn-4],_n+=le-Pn[xn-3]),Ue=Ce.C,wn=qe[hn++],Tn=qe[hn++],ie=qe[hn++],le=qe[hn++],z.addData(Ue,vn,_n,wn,Tn,ie,le);break;case"s":vn=ie,_n=le,xn=z.len(),Pn=z.data,_e===Ce.C&&(vn+=ie-Pn[xn-4],_n+=le-Pn[xn-3]),Ue=Ce.C,wn=ie+qe[hn++],Tn=le+qe[hn++],ie+=qe[hn++],le+=qe[hn++],z.addData(Ue,vn,_n,wn,Tn,ie,le);break;case"Q":wn=qe[hn++],Tn=qe[hn++],ie=qe[hn++],le=qe[hn++],Ue=Ce.Q,z.addData(Ue,wn,Tn,ie,le);break;case"q":wn=qe[hn++]+ie,Tn=qe[hn++]+le,ie+=qe[hn++],le+=qe[hn++],Ue=Ce.Q,z.addData(Ue,wn,Tn,ie,le);break;case"T":vn=ie,_n=le,xn=z.len(),Pn=z.data,_e===Ce.Q&&(vn+=ie-Pn[xn-4],_n+=le-Pn[xn-3]),ie=qe[hn++],le=qe[hn++],Ue=Ce.Q,z.addData(Ue,vn,_n,ie,le);break;case"t":vn=ie,_n=le,xn=z.len(),Pn=z.data,_e===Ce.Q&&(vn+=ie-Pn[xn-4],_n+=le-Pn[xn-3]),ie+=qe[hn++],le+=qe[hn++],Ue=Ce.Q,z.addData(Ue,vn,_n,ie,le);break;case"A":bn=qe[hn++],Sn=qe[hn++],Cn=qe[hn++],En=qe[hn++],$n=qe[hn++],wn=ie,Tn=le,ie=qe[hn++],le=qe[hn++],Ue=Ce.A,processArc(wn,Tn,ie,le,En,$n,bn,Sn,Cn,Ue,z);break;case"a":bn=qe[hn++],Sn=qe[hn++],Cn=qe[hn++],En=qe[hn++],$n=qe[hn++],wn=ie,Tn=le,ie+=qe[hn++],le+=qe[hn++],Ue=Ce.A,processArc(wn,Tn,ie,le,En,$n,bn,Sn,Cn,Ue,z);break}}(ze==="z"||ze==="Z")&&(Ue=Ce.Z,z.addData(Ue),ie=ue,le=pe),_e=Ue}return z.toStatic(),z}var SVGPath=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.applyTransform=function(ie){},z}(Path$1);function isPathProxy($){return $.setData!=null}function createPathOptions($,z){var ie=createPathProxyFromString($),le=extend({},z);return le.buildPath=function(ue){if(isPathProxy(ue)){ue.setData(ie.data);var pe=ue.getContext();pe&&ue.rebuildPath(pe,1)}else{var pe=ue;ie.rebuildPath(pe,1)}},le.applyTransform=function(ue){transformPath(ie,ue),this.dirtyShape()},le}function createFromString($,z){return new SVGPath(createPathOptions($,z))}function extendFromString($,z){var ie=createPathOptions($,z),le=function(ue){__extends(pe,ue);function pe(_e){var Ce=ue.call(this,_e)||this;return Ce.applyTransform=ie.applyTransform,Ce.buildPath=ie.buildPath,Ce}return pe}(SVGPath);return le}function mergePath$1($,z){for(var ie=[],le=$.length,ue=0;ue<le;ue++){var pe=$[ue];ie.push(pe.getUpdatedPathProxy(!0))}var _e=new Path$1(z);return _e.createPathProxy(),_e.buildPath=function(Ce){if(isPathProxy(Ce)){Ce.appendPath(ie);var $e=Ce.getContext();$e&&Ce.rebuildPath($e,1)}},_e}var CircleShape=function(){function $(){this.cx=0,this.cy=0,this.r=0}return $}(),Circle=function($){__extends(z,$);function z(ie){return $.call(this,ie)||this}return z.prototype.getDefaultShape=function(){return new CircleShape},z.prototype.buildPath=function(ie,le){ie.moveTo(le.cx+le.r,le.cy),ie.arc(le.cx,le.cy,le.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(ie){return $.call(this,ie)||this}return z.prototype.getDefaultShape=function(){return new EllipseShape},z.prototype.buildPath=function(ie,le){var ue=.5522848,pe=le.cx,_e=le.cy,Ce=le.rx,$e=le.ry,xe=Ce*ue,Ie=$e*ue;ie.moveTo(pe-Ce,_e),ie.bezierCurveTo(pe-Ce,_e-Ie,pe-xe,_e-$e,pe,_e-$e),ie.bezierCurveTo(pe+xe,_e-$e,pe+Ce,_e-Ie,pe+Ce,_e),ie.bezierCurveTo(pe+Ce,_e+Ie,pe+xe,_e+$e,pe,_e+$e),ie.bezierCurveTo(pe-xe,_e+$e,pe-Ce,_e+Ie,pe-Ce,_e),ie.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,ie,le,ue,pe,_e,Ce){var $e=ie-$,xe=le-z,Ie=_e-ue,ze=Ce-pe,Ue=ze*$e-Ie*xe;if(!(Ue*Ue<e))return Ue=(Ie*(z-pe)-ze*($-ue))/Ue,[$+Ue*$e,z+Ue*xe]}function computeCornerTangents($,z,ie,le,ue,pe,_e){var Ce=$-ie,$e=z-le,xe=(_e?pe:-pe)/mathSqrt(Ce*Ce+$e*$e),Ie=xe*$e,ze=-xe*Ce,Ue=$+Ie,qe=z+ze,Et=ie+Ie,Lt=le+ze,hn=(Ue+Et)/2,vn=(qe+Lt)/2,_n=Et-Ue,bn=Lt-qe,Sn=_n*_n+bn*bn,Cn=ue-pe,En=Ue*Lt-Et*qe,$n=(bn<0?-1:1)*mathSqrt(mathMax$5(0,Cn*Cn*Sn-En*En)),wn=(En*bn-_n*$n)/Sn,Tn=(-En*_n-bn*$n)/Sn,xn=(En*bn+_n*$n)/Sn,Pn=(-En*_n+bn*$n)/Sn,kn=wn-hn,An=Tn-vn,Nn=xn-hn,Fn=Pn-vn;return kn*kn+An*An>Nn*Nn+Fn*Fn&&(wn=xn,Tn=Pn),{cx:wn,cy:Tn,x0:-Ie,y0:-ze,x1:wn*(ue/Cn-1),y1:Tn*(ue/Cn-1)}}function normalizeCornerRadius($){var z;if(isArray$1($)){var ie=$.length;if(!ie)return $;ie===1?z=[$[0],$[0],0,0]:ie===2?z=[$[0],$[0],$[1],$[1]]:ie===3?z=$.concat($[2]):z=$}else z=[$,$,$,$];return z}function buildPath$1($,z){var ie,le=mathMax$5(z.r,0),ue=mathMax$5(z.r0||0,0),pe=le>0,_e=ue>0;if(!(!pe&&!_e)){if(pe||(le=ue,ue=0),ue>le){var Ce=le;le=ue,ue=Ce}var $e=z.startAngle,xe=z.endAngle;if(!(isNaN($e)||isNaN(xe))){var Ie=z.cx,ze=z.cy,Ue=!!z.clockwise,qe=mathAbs(xe-$e),Et=qe>PI2$1&&qe%PI2$1;if(Et>e&&(qe=Et),!(le>e))$.moveTo(Ie,ze);else if(qe>PI2$1-e)$.moveTo(Ie+le*mathCos($e),ze+le*mathSin($e)),$.arc(Ie,ze,le,$e,xe,!Ue),ue>e&&($.moveTo(Ie+ue*mathCos(xe),ze+ue*mathSin(xe)),$.arc(Ie,ze,ue,xe,$e,Ue));else{var 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,Pn=void 0,kn=void 0,An=void 0,Nn=void 0,Fn=le*mathCos($e),Ln=le*mathSin($e),In=ue*mathCos(xe),Vn=ue*mathSin(xe),Mn=qe>e;if(Mn){var zn=z.cornerRadius;zn&&(ie=normalizeCornerRadius(zn),Lt=ie[0],hn=ie[1],vn=ie[2],_n=ie[3]);var qn=mathAbs(le-ue)/2;if(bn=mathMin$5(qn,vn),Sn=mathMin$5(qn,_n),Cn=mathMin$5(qn,Lt),En=mathMin$5(qn,hn),Tn=$n=mathMax$5(bn,Sn),xn=wn=mathMax$5(Cn,En),($n>e||wn>e)&&(Pn=le*mathCos(xe),kn=le*mathSin(xe),An=ue*mathCos($e),Nn=ue*mathSin($e),qe<PI$2)){var Hn=intersect(Fn,Ln,An,Nn,Pn,kn,In,Vn);if(Hn){var Jn=Fn-Hn[0],ur=Ln-Hn[1],yr=Pn-Hn[0],sr=kn-Hn[1],Zn=1/mathSin(mathACos((Jn*yr+ur*sr)/(mathSqrt(Jn*Jn+ur*ur)*mathSqrt(yr*yr+sr*sr)))/2),Kn=mathSqrt(Hn[0]*Hn[0]+Hn[1]*Hn[1]);Tn=mathMin$5($n,(le-Kn)/(Zn+1)),xn=mathMin$5(wn,(ue-Kn)/(Zn-1))}}}if(!Mn)$.moveTo(Ie+Fn,ze+Ln);else if(Tn>e){var Wn=mathMin$5(vn,Tn),nr=mathMin$5(_n,Tn),fr=computeCornerTangents(An,Nn,Fn,Ln,le,Wn,Ue),Gn=computeCornerTangents(Pn,kn,In,Vn,le,nr,Ue);$.moveTo(Ie+fr.cx+fr.x0,ze+fr.cy+fr.y0),Tn<$n&&Wn===nr?$.arc(Ie+fr.cx,ze+fr.cy,Tn,mathATan2(fr.y0,fr.x0),mathATan2(Gn.y0,Gn.x0),!Ue):(Wn>0&&$.arc(Ie+fr.cx,ze+fr.cy,Wn,mathATan2(fr.y0,fr.x0),mathATan2(fr.y1,fr.x1),!Ue),$.arc(Ie,ze,le,mathATan2(fr.cy+fr.y1,fr.cx+fr.x1),mathATan2(Gn.cy+Gn.y1,Gn.cx+Gn.x1),!Ue),nr>0&&$.arc(Ie+Gn.cx,ze+Gn.cy,nr,mathATan2(Gn.y1,Gn.x1),mathATan2(Gn.y0,Gn.x0),!Ue))}else $.moveTo(Ie+Fn,ze+Ln),$.arc(Ie,ze,le,$e,xe,!Ue);if(!(ue>e)||!Mn)$.lineTo(Ie+In,ze+Vn);else if(xn>e){var Wn=mathMin$5(Lt,xn),nr=mathMin$5(hn,xn),fr=computeCornerTangents(In,Vn,Pn,kn,ue,-nr,Ue),Gn=computeCornerTangents(Fn,Ln,An,Nn,ue,-Wn,Ue);$.lineTo(Ie+fr.cx+fr.x0,ze+fr.cy+fr.y0),xn<wn&&Wn===nr?$.arc(Ie+fr.cx,ze+fr.cy,xn,mathATan2(fr.y0,fr.x0),mathATan2(Gn.y0,Gn.x0),!Ue):(nr>0&&$.arc(Ie+fr.cx,ze+fr.cy,nr,mathATan2(fr.y0,fr.x0),mathATan2(fr.y1,fr.x1),!Ue),$.arc(Ie,ze,ue,mathATan2(fr.cy+fr.y1,fr.cx+fr.x1),mathATan2(Gn.cy+Gn.y1,Gn.cx+Gn.x1),Ue),Wn>0&&$.arc(Ie+Gn.cx,ze+Gn.cy,Wn,mathATan2(Gn.y1,Gn.x1),mathATan2(Gn.y0,Gn.x0),!Ue))}else $.lineTo(Ie+In,ze+Vn),$.arc(Ie,ze,ue,xe,$e,Ue)}$.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(ie){return $.call(this,ie)||this}return z.prototype.getDefaultShape=function(){return new SectorShape},z.prototype.buildPath=function(ie,le){buildPath$1(ie,le)},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(ie){return $.call(this,ie)||this}return z.prototype.getDefaultShape=function(){return new RingShape},z.prototype.buildPath=function(ie,le){var ue=le.cx,pe=le.cy,_e=Math.PI*2;ie.moveTo(ue+le.r,pe),ie.arc(ue,pe,le.r,0,_e,!1),ie.moveTo(ue+le.r0,pe),ie.arc(ue,pe,le.r0,0,_e,!0)},z}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier($,z,ie,le){var ue=[],pe=[],_e=[],Ce=[],$e,xe,Ie,ze;if(le){Ie=[1/0,1/0],ze=[-1/0,-1/0];for(var Ue=0,qe=$.length;Ue<qe;Ue++)min$1(Ie,Ie,$[Ue]),max$1(ze,ze,$[Ue]);min$1(Ie,Ie,le[0]),max$1(ze,ze,le[1])}for(var Ue=0,qe=$.length;Ue<qe;Ue++){var Et=$[Ue];if(ie)$e=$[Ue?Ue-1:qe-1],xe=$[(Ue+1)%qe];else if(Ue===0||Ue===qe-1){ue.push(clone$2($[Ue]));continue}else $e=$[Ue-1],xe=$[Ue+1];sub(pe,xe,$e),scale$2(pe,pe,z);var Lt=distance(Et,$e),hn=distance(Et,xe),vn=Lt+hn;vn!==0&&(Lt/=vn,hn/=vn),scale$2(_e,pe,-Lt),scale$2(Ce,pe,hn);var _n=add([],Et,_e),bn=add([],Et,Ce);le&&(max$1(_n,_n,Ie),min$1(_n,_n,ze),max$1(bn,bn,Ie),min$1(bn,bn,ze)),ue.push(_n),ue.push(bn)}return ie&&ue.push(ue.shift()),ue}function buildPath($,z,ie){var le=z.smooth,ue=z.points;if(ue&&ue.length>=2){if(le){var pe=smoothBezier(ue,le,ie,z.smoothConstraint);$.moveTo(ue[0][0],ue[0][1]);for(var _e=ue.length,Ce=0;Ce<(ie?_e:_e-1);Ce++){var $e=pe[Ce*2],xe=pe[Ce*2+1],Ie=ue[(Ce+1)%_e];$.bezierCurveTo($e[0],$e[1],xe[0],xe[1],Ie[0],Ie[1])}}else{$.moveTo(ue[0][0],ue[0][1]);for(var Ce=1,ze=ue.length;Ce<ze;Ce++)$.lineTo(ue[Ce][0],ue[Ce][1])}ie&&$.closePath()}}var PolygonShape=function(){function $(){this.points=null,this.smooth=0,this.smoothConstraint=null}return $}(),Polygon=function($){__extends(z,$);function z(ie){return $.call(this,ie)||this}return z.prototype.getDefaultShape=function(){return new PolygonShape},z.prototype.buildPath=function(ie,le){buildPath(ie,le,!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(ie){return $.call(this,ie)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new PolylineShape},z.prototype.buildPath=function(ie,le){buildPath(ie,le,!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(ie){return $.call(this,ie)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new LineShape},z.prototype.buildPath=function(ie,le){var ue,pe,_e,Ce;if(this.subPixelOptimize){var $e=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,le,this.style);ue=$e.x1,pe=$e.y1,_e=$e.x2,Ce=$e.y2}else ue=le.x1,pe=le.y1,_e=le.x2,Ce=le.y2;var xe=le.percent;xe!==0&&(ie.moveTo(ue,pe),xe<1&&(_e=ue*(1-xe)+_e*xe,Ce=pe*(1-xe)+Ce*xe),ie.lineTo(_e,Ce))},z.prototype.pointAt=function(ie){var le=this.shape;return[le.x1*(1-ie)+le.x2*ie,le.y1*(1-ie)+le.y2*ie]},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,ie){var le=$.cpx2,ue=$.cpy2;return le!=null||ue!=null?[(ie?cubicDerivativeAt:cubicAt)($.x1,$.cpx1,$.cpx2,$.x2,z),(ie?cubicDerivativeAt:cubicAt)($.y1,$.cpy1,$.cpy2,$.y2,z)]:[(ie?quadraticDerivativeAt:quadraticAt)($.x1,$.cpx1,$.x2,z),(ie?quadraticDerivativeAt:quadraticAt)($.y1,$.cpy1,$.y2,z)]}var BezierCurve=function($){__extends(z,$);function z(ie){return $.call(this,ie)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new BezierCurveShape},z.prototype.buildPath=function(ie,le){var ue=le.x1,pe=le.y1,_e=le.x2,Ce=le.y2,$e=le.cpx1,xe=le.cpy1,Ie=le.cpx2,ze=le.cpy2,Ue=le.percent;Ue!==0&&(ie.moveTo(ue,pe),Ie==null||ze==null?(Ue<1&&(quadraticSubdivide(ue,$e,_e,Ue,out),$e=out[1],_e=out[2],quadraticSubdivide(pe,xe,Ce,Ue,out),xe=out[1],Ce=out[2]),ie.quadraticCurveTo($e,xe,_e,Ce)):(Ue<1&&(cubicSubdivide(ue,$e,Ie,_e,Ue,out),$e=out[1],Ie=out[2],_e=out[3],cubicSubdivide(pe,xe,ze,Ce,Ue,out),xe=out[1],ze=out[2],Ce=out[3]),ie.bezierCurveTo($e,xe,Ie,ze,_e,Ce)))},z.prototype.pointAt=function(ie){return someVectorAt(this.shape,ie,!1)},z.prototype.tangentAt=function(ie){var le=someVectorAt(this.shape,ie,!0);return normalize$1(le,le)},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(ie){return $.call(this,ie)||this}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new ArcShape},z.prototype.buildPath=function(ie,le){var ue=le.cx,pe=le.cy,_e=Math.max(le.r,0),Ce=le.startAngle,$e=le.endAngle,xe=le.clockwise,Ie=Math.cos(Ce),ze=Math.sin(Ce);ie.moveTo(Ie*_e+ue,ze*_e+pe),ie.arc(ue,pe,_e,Ce,$e,!xe)},z}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type="compound",ie}return z.prototype._updatePathDirty=function(){for(var ie=this.shape.paths,le=this.shapeChanged(),ue=0;ue<ie.length;ue++)le=le||ie[ue].shapeChanged();le&&this.dirtyShape()},z.prototype.beforeBrush=function(){this._updatePathDirty();for(var ie=this.shape.paths||[],le=this.getGlobalScale(),ue=0;ue<ie.length;ue++)ie[ue].path||ie[ue].createPathProxy(),ie[ue].path.setScale(le[0],le[1],ie[ue].segmentIgnoreThreshold)},z.prototype.buildPath=function(ie,le){for(var ue=le.paths||[],pe=0;pe<ue.length;pe++)ue[pe].buildPath(ie,ue[pe].shape,!0)},z.prototype.afterBrush=function(){for(var ie=this.shape.paths||[],le=0;le<ie.length;le++)ie[le].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,ie){this.colorStops.push({offset:z,color:ie})},$}();const Gradient$1=Gradient;var LinearGradient=function($){__extends(z,$);function z(ie,le,ue,pe,_e,Ce){var $e=$.call(this,_e)||this;return $e.x=ie??0,$e.y=le??0,$e.x2=ue??1,$e.y2=pe??0,$e.type="linear",$e.global=Ce||!1,$e}return z}(Gradient$1);const LinearGradient$1=LinearGradient;var RadialGradient=function($){__extends(z,$);function z(ie,le,ue,pe,_e){var Ce=$.call(this,pe)||this;return Ce.x=ie??.5,Ce.y=le??.5,Ce.r=ue??.5,Ce.type="radial",Ce.global=_e||!1,Ce}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,ie){this._corners=[],this._axes=[],this._origin=[0,0];for(var le=0;le<4;le++)this._corners[le]=new Point$1;for(var le=0;le<2;le++)this._axes[le]=new Point$1;z&&this.fromBoundingRect(z,ie)}return $.prototype.fromBoundingRect=function(z,ie){var le=this._corners,ue=this._axes,pe=z.x,_e=z.y,Ce=pe+z.width,$e=_e+z.height;if(le[0].set(pe,_e),le[1].set(Ce,_e),le[2].set(Ce,$e),le[3].set(pe,$e),ie)for(var xe=0;xe<4;xe++)le[xe].transform(ie);Point$1.sub(ue[0],le[1],le[0]),Point$1.sub(ue[1],le[3],le[0]),ue[0].normalize(),ue[1].normalize();for(var xe=0;xe<2;xe++)this._origin[xe]=ue[xe].dot(le[0])},$.prototype.intersect=function(z,ie){var le=!0,ue=!ie;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,z,minTv,maxTv,ue,1)&&(le=!1,ue)||!this._intersectCheckOneSide(z,this,minTv,maxTv,ue,-1)&&(le=!1,ue)||ue||Point$1.copy(ie,le?minTv:maxTv),le},$.prototype._intersectCheckOneSide=function(z,ie,le,ue,pe,_e){for(var Ce=!0,$e=0;$e<2;$e++){var xe=this._axes[$e];if(this._getProjMinMaxOnAxis($e,z._corners,extent),this._getProjMinMaxOnAxis($e,ie._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(Ce=!1,pe)return Ce;var Ie=Math.abs(extent2[0]-extent[1]),ze=Math.abs(extent[0]-extent2[1]);Math.min(Ie,ze)>ue.len()&&(Ie<ze?Point$1.scale(ue,xe,-Ie*_e):Point$1.scale(ue,xe,ze*_e))}else if(le){var Ie=Math.abs(extent2[0]-extent[1]),ze=Math.abs(extent[0]-extent2[1]);Math.min(Ie,ze)<le.len()&&(Ie<ze?Point$1.scale(le,xe,Ie*_e):Point$1.scale(le,xe,-ze*_e))}}return Ce},$.prototype._getProjMinMaxOnAxis=function(z,ie,le){for(var ue=this._axes[z],pe=this._origin,_e=ie[0].dot(ue)+pe[z],Ce=_e,$e=_e,xe=1;xe<ie.length;xe++){var Ie=ie[xe].dot(ue)+pe[z];Ce=Math.min(Ie,Ce),$e=Math.max(Ie,$e)}le[0]=Ce,le[1]=$e},$}();const OrientedBoundingRect$1=OrientedBoundingRect;var m$2=[],IncrementalDisplayable=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.notClear=!0,ie.incremental=!0,ie._displayables=[],ie._temporaryDisplayables=[],ie._cursor=0,ie}return z.prototype.traverse=function(ie,le){ie.call(le,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(ie,le){le?this._temporaryDisplayables.push(ie):this._displayables.push(ie),this.markRedraw()},z.prototype.addDisplayables=function(ie,le){le=le||!1;for(var ue=0;ue<ie.length;ue++)this.addDisplayable(ie[ue],le)},z.prototype.getDisplayables=function(){return this._displayables},z.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},z.prototype.eachPendingDisplayable=function(ie){for(var le=this._cursor;le<this._displayables.length;le++)ie&&ie(this._displayables[le]);for(var le=0;le<this._temporaryDisplayables.length;le++)ie&&ie(this._temporaryDisplayables[le])},z.prototype.update=function(){this.updateTransform();for(var ie=this._cursor;ie<this._displayables.length;ie++){var le=this._displayables[ie];le.parent=this,le.update(),le.parent=null}for(var ie=0;ie<this._temporaryDisplayables.length;ie++){var le=this._temporaryDisplayables[ie];le.parent=this,le.update(),le.parent=null}},z.prototype.getBoundingRect=function(){if(!this._rect){for(var ie=new BoundingRect$1(1/0,1/0,-1/0,-1/0),le=0;le<this._displayables.length;le++){var ue=this._displayables[le],pe=ue.getBoundingRect().clone();ue.needLocalTransform()&&pe.applyTransform(ue.getLocalTransform(m$2)),ie.union(pe)}this._rect=ie}return this._rect},z.prototype.contain=function(ie,le){var ue=this.transformCoordToLocal(ie,le),pe=this.getBoundingRect();if(pe.contain(ue[0],ue[1]))for(var _e=0;_e<this._displayables.length;_e++){var Ce=this._displayables[_e];if(Ce.contain(ie,le))return!0}return!1},z}(Displayable$1);const IncrementalDisplayable$1=IncrementalDisplayable;var transitionStore=makeInner();function getAnimationConfig($,z,ie,le,ue){var pe;if(z&&z.ecModel){var _e=z.ecModel.getUpdatePayload();pe=_e&&_e.animation}var Ce=z&&z.isAnimationEnabled(),$e=$==="update";if(Ce){var xe=void 0,Ie=void 0,ze=void 0;le?(xe=retrieve2(le.duration,200),Ie=retrieve2(le.easing,"cubicOut"),ze=0):(xe=z.getShallow($e?"animationDurationUpdate":"animationDuration"),Ie=z.getShallow($e?"animationEasingUpdate":"animationEasing"),ze=z.getShallow($e?"animationDelayUpdate":"animationDelay")),pe&&(pe.duration!=null&&(xe=pe.duration),pe.easing!=null&&(Ie=pe.easing),pe.delay!=null&&(ze=pe.delay)),isFunction(ze)&&(ze=ze(ie,ue)),isFunction(xe)&&(xe=xe(ie));var Ue={duration:xe||0,delay:ze,easing:Ie};return Ue}else return null}function animateOrSetProps($,z,ie,le,ue,pe,_e){var Ce=!1,$e;isFunction(ue)?(_e=pe,pe=ue,ue=null):isObject$3(ue)&&(pe=ue.cb,_e=ue.during,Ce=ue.isFrom,$e=ue.removeOpt,ue=ue.dataIndex);var xe=$==="leave";xe||z.stopAnimation("leave");var Ie=getAnimationConfig($,le,ue,xe?$e||{}:null,le&&le.getAnimationDelayParams?le.getAnimationDelayParams(z,ue):null);if(Ie&&Ie.duration>0){var ze=Ie.duration,Ue=Ie.delay,qe=Ie.easing,Et={duration:ze,delay:Ue||0,easing:qe,done:pe,force:!!pe||!!_e,setToFinal:!xe,scope:$,during:_e};Ce?z.animateFrom(ie,Et):z.animateTo(ie,Et)}else z.stopAnimation(),!Ce&&z.attr(ie),_e&&_e(1),pe&&pe()}function updateProps$1($,z,ie,le,ue,pe){animateOrSetProps("update",$,z,ie,le,ue,pe)}function initProps($,z,ie,le,ue,pe){animateOrSetProps("enter",$,z,ie,le,ue,pe)}function isElementRemoved($){if(!$.__zr)return!0;for(var z=0;z<$.animators.length;z++){var ie=$.animators[z];if(ie.scope==="leave")return!0}return!1}function removeElement($,z,ie,le,ue,pe){isElementRemoved($)||animateOrSetProps("leave",$,z,ie,le,ue,pe)}function fadeOutDisplayable($,z,ie,le){$.removeTextContent(),$.removeTextGuideLine(),removeElement($,{style:{opacity:0}},z,ie,le)}function removeElementWithFadeOut($,z,ie){function le(){$.parent&&$.parent.remove($)}$.isGroup?$.traverse(function(ue){ue.isGroup||fadeOutDisplayable(ue,z,ie,le)}):fadeOutDisplayable($,z,ie,le)}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,ie,le){var ue=createFromString($,z);return ie&&(le==="center"&&(ie=centerGraphic(ie,ue.getBoundingRect())),resizePath(ue,ie)),ue}function makeImage($,z,ie){var le=new ZRImage$1({style:{image:$,x:z.x,y:z.y,width:z.width,height:z.height},onload:function(ue){if(ie==="center"){var pe={width:ue.width,height:ue.height};le.setStyle(centerGraphic(z,pe))}}});return le}function centerGraphic($,z){var ie=z.width/z.height,le=$.height*ie,ue;le<=$.width?ue=$.height:(le=$.width,ue=le/ie);var pe=$.x+$.width/2,_e=$.y+$.height/2;return{x:pe-le/2,y:_e-ue/2,width:le,height:ue}}var mergePath=mergePath$1;function resizePath($,z){if($.applyTransform){var ie=$.getBoundingRect(),le=ie.calculateTransform(z);$.applyTransform(le)}}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 ie=identity([]);$&&$!==z;)mul(ie,$.getLocalTransform(),ie),$=$.parent;return ie}function applyTransform($,z,ie){return z&&!isArrayLike(z)&&(z=Transformable$1.getLocalTransform(z)),ie&&(z=invert([],z)),applyTransform$1([],$,z)}function transformDirection($,z,ie){var le=z[4]===0||z[5]===0||z[0]===0?1:Math.abs(2*z[4]/z[0]),ue=z[4]===0||z[5]===0||z[2]===0?1:Math.abs(2*z[4]/z[2]),pe=[$==="left"?-le:$==="right"?le:0,$==="top"?-ue:$==="bottom"?ue:0];return pe=applyTransform(pe,z,ie),Math.abs(pe[0])>Math.abs(pe[1])?pe[0]>0?"right":"left":pe[1]>0?"bottom":"top"}function isNotGroup($){return!$.isGroup}function isPath($){return $.shape!=null}function groupTransition($,z,ie){if(!$||!z)return;function le(_e){var Ce={};return _e.traverse(function($e){isNotGroup($e)&&$e.anid&&(Ce[$e.anid]=$e)}),Ce}function ue(_e){var Ce={x:_e.x,y:_e.y,rotation:_e.rotation};return isPath(_e)&&(Ce.shape=extend({},_e.shape)),Ce}var pe=le($);z.traverse(function(_e){if(isNotGroup(_e)&&_e.anid){var Ce=pe[_e.anid];if(Ce){var $e=ue(_e);_e.attr(ue(Ce)),updateProps$1(_e,$e,ie,getECData(_e).dataIndex)}}})}function clipPointsByRect($,z){return map$2($,function(ie){var le=ie[0];le=mathMax$4(le,z.x),le=mathMin$4(le,z.x+z.width);var ue=ie[1];return ue=mathMax$4(ue,z.y),ue=mathMin$4(ue,z.y+z.height),[le,ue]})}function clipRectByRect($,z){var ie=mathMax$4($.x,z.x),le=mathMin$4($.x+$.width,z.x+z.width),ue=mathMax$4($.y,z.y),pe=mathMin$4($.y+$.height,z.y+z.height);if(le>=ie&&pe>=ue)return{x:ie,y:ue,width:le-ie,height:pe-ue}}function createIcon($,z,ie){var le=extend({rectHover:!0},z),ue=le.style={strokeNoScale:!0};if(ie=ie||{x:-1,y:-1,width:2,height:2},$)return $.indexOf("image://")===0?(ue.image=$.slice(8),defaults(ue,ie),new ZRImage$1(le)):makePath($.replace("path://",""),le,ie,"center")}function linePolygonIntersect($,z,ie,le,ue){for(var pe=0,_e=ue[ue.length-1];pe<ue.length;pe++){var Ce=ue[pe];if(lineLineIntersect($,z,ie,le,Ce[0],Ce[1],_e[0],_e[1]))return!0;_e=Ce}}function lineLineIntersect($,z,ie,le,ue,pe,_e,Ce){var $e=ie-$,xe=le-z,Ie=_e-ue,ze=Ce-pe,Ue=crossProduct2d(Ie,ze,$e,xe);if(nearZero(Ue))return!1;var qe=$-ue,Et=z-pe,Lt=crossProduct2d(qe,Et,$e,xe)/Ue;if(Lt<0||Lt>1)return!1;var hn=crossProduct2d(qe,Et,Ie,ze)/Ue;return!(hn<0||hn>1)}function crossProduct2d($,z,ie,le){return $*le-ie*z}function nearZero($){return $<=1e-6&&$>=-1e-6}function setTooltipConfig($){var z=$.itemTooltipOption,ie=$.componentModel,le=$.itemName,ue=isString(z)?{formatter:z}:z,pe=ie.mainType,_e=ie.componentIndex,Ce={componentType:pe,name:le,$vars:["name"]};Ce[pe+"Index"]=_e;var $e=$.formatterParamsExtra;$e&&each$c(keys($e),function(Ie){hasOwn(Ce,Ie)||(Ce[Ie]=$e[Ie],Ce.$vars.push(Ie))});var xe=getECData($.el);xe.componentMainType=pe,xe.componentIndex=_e,xe.tooltipConfig={name:le,option:defaults({content:le,formatterParams:Ce},ue)}}function traverseElement($,z){var ie;$.isGroup&&(ie=z($)),ie||$.traverse(z)}function traverseElements($,z){if($)if(isArray$1($))for(var ie=0;ie<$.length;ie++)traverseElement($[ie],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 ie=0;ie<SPECIAL_STATES.length;ie++){var le=SPECIAL_STATES[ie],ue=z[le],pe=$.ensureState(le);pe.style=pe.style||{},pe.style.text=ue}var _e=$.currentStates.slice();$.clearStates(!0),$.setStyle({text:z.normal}),$.useStates(_e,!0)}function getLabelText($,z,ie){var le=$.labelFetcher,ue=$.labelDataIndex,pe=$.labelDimIndex,_e=z.normal,Ce;le&&(Ce=le.getFormattedLabel(ue,"normal",null,pe,_e&&_e.get("formatter"),ie!=null?{interpolatedValue:ie}:null)),Ce==null&&(Ce=isFunction($.defaultText)?$.defaultText(ue,$,ie):$.defaultText);for(var $e={normal:Ce},xe=0;xe<SPECIAL_STATES.length;xe++){var Ie=SPECIAL_STATES[xe],ze=z[Ie];$e[Ie]=retrieve2(le?le.getFormattedLabel(ue,Ie,null,pe,ze&&ze.get("formatter")):null,Ce)}return $e}function setLabelStyle($,z,ie,le){ie=ie||EMPTY_OBJ;for(var ue=$ instanceof ZRText$1,pe=!1,_e=0;_e<DISPLAY_STATES.length;_e++){var Ce=z[DISPLAY_STATES[_e]];if(Ce&&Ce.getShallow("show")){pe=!0;break}}var $e=ue?$:$.getTextContent();if(pe){ue||($e||($e=new ZRText$1,$.setTextContent($e)),$.stateProxy&&($e.stateProxy=$.stateProxy));var xe=getLabelText(ie,z),Ie=z.normal,ze=!!Ie.getShallow("show"),Ue=createTextStyle$1(Ie,le&&le.normal,ie,!1,!ue);Ue.text=xe.normal,ue||$.setTextConfig(createTextConfig(Ie,ie,!1));for(var _e=0;_e<SPECIAL_STATES.length;_e++){var qe=SPECIAL_STATES[_e],Ce=z[qe];if(Ce){var Et=$e.ensureState(qe),Lt=!!retrieve2(Ce.getShallow("show"),ze);if(Lt!==ze&&(Et.ignore=!Lt),Et.style=createTextStyle$1(Ce,le&&le[qe],ie,!0,!ue),Et.style.text=xe[qe],!ue){var hn=$.ensureState(qe);hn.textConfig=createTextConfig(Ce,ie,!0)}}}$e.silent=!!Ie.getShallow("silent"),$e.style.x!=null&&(Ue.x=$e.style.x),$e.style.y!=null&&(Ue.y=$e.style.y),$e.ignore=!ze,$e.useStyle(Ue),$e.dirty(),ie.enableTextSetter&&(labelInner($e).setLabelText=function(vn){var _n=getLabelText(ie,z,vn);setLabelText($e,_n)})}else $e&&($e.ignore=!0);$.dirty()}function getLabelStatesModels($,z){z=z||"label";for(var ie={normal:$.getModel(z)},le=0;le<SPECIAL_STATES.length;le++){var ue=SPECIAL_STATES[le];ie[ue]=$.getModel([ue,z])}return ie}function createTextStyle$1($,z,ie,le,ue){var pe={};return setTextStyleCommon(pe,$,ie,le,ue),z&&extend(pe,z),pe}function createTextConfig($,z,ie){z=z||{};var le={},ue,pe=$.getShallow("rotate"),_e=retrieve2($.getShallow("distance"),ie?null:5),Ce=$.getShallow("offset");return ue=$.getShallow("position")||(ie?null:"inside"),ue==="outside"&&(ue=z.defaultOutsidePosition||"top"),ue!=null&&(le.position=ue),Ce!=null&&(le.offset=Ce),pe!=null&&(pe*=Math.PI/180,le.rotation=pe),_e!=null&&(le.distance=_e),le.outsideFill=$.get("color")==="inherit"?z.inheritColor||null:"auto",le}function setTextStyleCommon($,z,ie,le,ue){ie=ie||EMPTY_OBJ;var pe=z.ecModel,_e=pe&&pe.option.textStyle,Ce=getRichItemNames(z),$e;if(Ce){$e={};for(var xe in Ce)if(Ce.hasOwnProperty(xe)){var Ie=z.getModel(["rich",xe]);setTokenTextStyle($e[xe]={},Ie,_e,ie,le,ue,!1,!0)}}$e&&($.rich=$e);var ze=z.get("overflow");ze&&($.overflow=ze);var Ue=z.get("minMargin");Ue!=null&&($.margin=Ue),setTokenTextStyle($,z,_e,ie,le,ue,!0,!1)}function getRichItemNames($){for(var z;$&&$!==$.ecModel;){var ie=($.option||EMPTY_OBJ).rich;if(ie){z=z||{};for(var le=keys(ie),ue=0;ue<le.length;ue++){var pe=le[ue];z[pe]=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,ie,le,ue,pe,_e,Ce){ie=!ue&&ie||EMPTY_OBJ;var $e=le&&le.inheritColor,xe=z.getShallow("color"),Ie=z.getShallow("textBorderColor"),ze=retrieve2(z.getShallow("opacity"),ie.opacity);(xe==="inherit"||xe==="auto")&&($e?xe=$e:xe=null),(Ie==="inherit"||Ie==="auto")&&($e?Ie=$e:Ie=null),pe||(xe=xe||ie.color,Ie=Ie||ie.textBorderColor),xe!=null&&($.fill=xe),Ie!=null&&($.stroke=Ie);var Ue=retrieve2(z.getShallow("textBorderWidth"),ie.textBorderWidth);Ue!=null&&($.lineWidth=Ue);var qe=retrieve2(z.getShallow("textBorderType"),ie.textBorderType);qe!=null&&($.lineDash=qe);var Et=retrieve2(z.getShallow("textBorderDashOffset"),ie.textBorderDashOffset);Et!=null&&($.lineDashOffset=Et),!ue&&ze==null&&!Ce&&(ze=le&&le.defaultOpacity),ze!=null&&($.opacity=ze),!ue&&!pe&&$.fill==null&&le.inheritColor&&($.fill=le.inheritColor);for(var Lt=0;Lt<TEXT_PROPS_WITH_GLOBAL.length;Lt++){var hn=TEXT_PROPS_WITH_GLOBAL[Lt],vn=retrieve2(z.getShallow(hn),ie[hn]);vn!=null&&($[hn]=vn)}for(var Lt=0;Lt<TEXT_PROPS_SELF.length;Lt++){var hn=TEXT_PROPS_SELF[Lt],vn=z.getShallow(hn);vn!=null&&($[hn]=vn)}if($.verticalAlign==null){var _n=z.getShallow("baseline");_n!=null&&($.verticalAlign=_n)}if(!_e||!le.disableBox){for(var Lt=0;Lt<TEXT_PROPS_BOX.length;Lt++){var hn=TEXT_PROPS_BOX[Lt],vn=z.getShallow(hn);vn!=null&&($[hn]=vn)}var bn=z.getShallow("borderType");bn!=null&&($.borderDash=bn),($.backgroundColor==="auto"||$.backgroundColor==="inherit")&&$e&&($.backgroundColor=$e),($.borderColor==="auto"||$.borderColor==="inherit")&&$e&&($.borderColor=$e)}}function getFont($,z){var ie=z&&z.getModel("textStyle");return trim$1([$.fontStyle||ie&&ie.getShallow("fontStyle")||"",$.fontWeight||ie&&ie.getShallow("fontWeight")||"",($.fontSize||ie&&ie.getShallow("fontSize")||12)+"px",$.fontFamily||ie&&ie.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation($,z,ie,le){if($){var ue=labelInner($);ue.prevValue=ue.value,ue.value=ie;var pe=z.normal;ue.valueAnimation=pe.get("valueAnimation"),ue.valueAnimation&&(ue.precision=pe.get("precision"),ue.defaultInterpolatedText=le,ue.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 ie=this.ecModel;return this.getShallow("color")||(!z&&ie?ie.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 ie={text:z,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},le=0;le<textStyleParams.length;le++)ie[textStyleParams[le]]=this.getShallow(textStyleParams[le]);return tmpText.useStyle(ie),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,ie){return getItemStyle(this,z,ie)},$}(),Model=function(){function $(z,ie,le){this.parentModel=ie,this.ecModel=le,this.option=z}return $.prototype.init=function(z,ie,le){},$.prototype.mergeOption=function(z,ie){merge(this.option,z,!0)},$.prototype.get=function(z,ie){return z==null?this.option:this._doGet(this.parsePath(z),!ie&&this.parentModel)},$.prototype.getShallow=function(z,ie){var le=this.option,ue=le==null?le:le[z];if(ue==null&&!ie){var pe=this.parentModel;pe&&(ue=pe.getShallow(z))}return ue},$.prototype.getModel=function(z,ie){var le=z!=null,ue=le?this.parsePath(z):null,pe=le?this._doGet(ue):this.option;return ie=ie||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(ue)),new $(pe,ie,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,ie){var le=this.option;if(!z)return le;for(var ue=0;ue<z.length&&!(z[ue]&&(le=le&&typeof le=="object"?le[z[ue]]:null,le==null));ue++);return le==null&&ie&&(le=ie._doGet(this.resolveParentPath(z),ie.parentModel)),le},$}();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(ie,le){var ue=parseClassType(ie);z[ue.main]=le},$.determineSubType=function(ie,le){var ue=le.type;if(!ue){var pe=parseClassType(ie).main;$.hasSubTypes(ie)&&z[pe]&&(ue=z[pe](le))}return ue}}function enableTopologicalTravel($,z){$.topologicalTravel=function(pe,_e,Ce,$e){if(!pe.length)return;var xe=ie(_e),Ie=xe.graph,ze=xe.noEntryList,Ue={};for(each$c(pe,function(_n){Ue[_n]=!0});ze.length;){var qe=ze.pop(),Et=Ie[qe],Lt=!!Ue[qe];Lt&&(Ce.call($e,qe,Et.originalDeps.slice()),delete Ue[qe]),each$c(Et.successor,Lt?vn:hn)}each$c(Ue,function(){var _n="";throw new Error(_n)});function hn(_n){Ie[_n].entryCount--,Ie[_n].entryCount===0&&ze.push(_n)}function vn(_n){Ue[_n]=!0,hn(_n)}};function ie(pe){var _e={},Ce=[];return each$c(pe,function($e){var xe=le(_e,$e),Ie=xe.originalDeps=z($e),ze=ue(Ie,pe);xe.entryCount=ze.length,xe.entryCount===0&&Ce.push($e),each$c(ze,function(Ue){indexOf(xe.predecessor,Ue)<0&&xe.predecessor.push(Ue);var qe=le(_e,Ue);indexOf(qe.successor,Ue)<0&&qe.successor.push($e)})}),{graph:_e,noEntryList:Ce}}function le(pe,_e){return pe[_e]||(pe[_e]={predecessor:[],successor:[]}),pe[_e]}function ue(pe,_e){var Ce=[];return each$c(pe,function($e){indexOf(_e,$e)>=0&&Ce.push($e)}),Ce}}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,ie,le){var ue=parseDate($),pe=ue[fullYearGetterName(ie)](),_e=ue[monthGetterName(ie)]()+1,Ce=Math.floor((_e-1)/3)+1,$e=ue[dateGetterName(ie)](),xe=ue["get"+(ie?"UTC":"")+"Day"](),Ie=ue[hoursGetterName(ie)](),ze=(Ie-1)%12+1,Ue=ue[minutesGetterName(ie)](),qe=ue[secondsGetterName(ie)](),Et=ue[millisecondsGetterName(ie)](),Lt=le instanceof Model$1?le:getLocaleModel(le||SYSTEM_LANG)||getDefaultLocaleModel(),hn=Lt.getModel("time"),vn=hn.get("month"),_n=hn.get("monthAbbr"),bn=hn.get("dayOfWeek"),Sn=hn.get("dayOfWeekAbbr");return(z||"").replace(/{yyyy}/g,pe+"").replace(/{yy}/g,pe%100+"").replace(/{Q}/g,Ce+"").replace(/{MMMM}/g,vn[_e-1]).replace(/{MMM}/g,_n[_e-1]).replace(/{MM}/g,pad(_e,2)).replace(/{M}/g,_e+"").replace(/{dd}/g,pad($e,2)).replace(/{d}/g,$e+"").replace(/{eeee}/g,bn[xe]).replace(/{ee}/g,Sn[xe]).replace(/{e}/g,xe+"").replace(/{HH}/g,pad(Ie,2)).replace(/{H}/g,Ie+"").replace(/{hh}/g,pad(ze+"",2)).replace(/{h}/g,ze+"").replace(/{mm}/g,pad(Ue,2)).replace(/{m}/g,Ue+"").replace(/{ss}/g,pad(qe,2)).replace(/{s}/g,qe+"").replace(/{SSS}/g,pad(Et,3)).replace(/{S}/g,Et+"")}function leveledFormat($,z,ie,le,ue){var pe=null;if(isString(ie))pe=ie;else if(isFunction(ie))pe=ie($.value,z,{level:$.level});else{var _e=extend({},defaultLeveledFormatter);if($.level>0)for(var Ce=0;Ce<primaryTimeUnits.length;++Ce)_e[primaryTimeUnits[Ce]]="{primary|"+_e[primaryTimeUnits[Ce]]+"}";var $e=ie?ie.inherit===!1?ie:defaults(ie,_e):_e,xe=getUnitFromValue($.value,ue);if($e[xe])pe=$e[xe];else if($e.inherit){for(var Ie=timeUnits.indexOf(xe),Ce=Ie-1;Ce>=0;--Ce)if($e[xe]){pe=$e[xe];break}pe=pe||_e.none}if(isArray$1(pe)){var ze=$.level==null?0:$.level>=0?$.level:pe.length+$.level;ze=Math.min(ze,pe.length-1),pe=pe[ze]}}return format$1(new Date($.value),pe,ue,le)}function getUnitFromValue($,z){var ie=parseDate($),le=ie[monthGetterName(z)]()+1,ue=ie[dateGetterName(z)](),pe=ie[hoursGetterName(z)](),_e=ie[minutesGetterName(z)](),Ce=ie[secondsGetterName(z)](),$e=ie[millisecondsGetterName(z)](),xe=$e===0,Ie=xe&&Ce===0,ze=Ie&&_e===0,Ue=ze&&pe===0,qe=Ue&&ue===1,Et=qe&&le===1;return Et?"year":qe?"month":Ue?"day":ze?"hour":Ie?"minute":xe?"second":"millisecond"}function getUnitValue($,z,ie){var le=isNumber($)?parseDate($):$;switch(z=z||getUnitFromValue($,ie),z){case"year":return le[fullYearGetterName(ie)]();case"half-year":return le[monthGetterName(ie)]()>=6?1:0;case"quarter":return Math.floor((le[monthGetterName(ie)]()+1)/4);case"month":return le[monthGetterName(ie)]();case"day":return le[dateGetterName(ie)]();case"half-day":return le[hoursGetterName(ie)]()/24;case"hour":return le[hoursGetterName(ie)]();case"minute":return le[minutesGetterName(ie)]();case"second":return le[secondsGetterName(ie)]();case"millisecond":return le[millisecondsGetterName(ie)]()}}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,ie,le,ue,pe,_e,Ce){var $e=new ZRText$1({style:{text:$,font:z,align:ie,verticalAlign:le,padding:ue,rich:pe,overflow:_e?"truncate":null,lineHeight:Ce}});return $e.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(ie,le){return le.toUpperCase()}),z&&$&&($=$.charAt(0).toUpperCase()+$.slice(1)),$}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable($,z,ie){var le="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function ue(Ie){return Ie&&trim$1(Ie)?Ie:"-"}function pe(Ie){return!!(Ie!=null&&!isNaN(Ie)&&isFinite(Ie))}var _e=z==="time",Ce=$ instanceof Date;if(_e||Ce){var $e=_e?parseDate($):$;if(isNaN(+$e)){if(Ce)return"-"}else return format$1($e,le,ie)}if(z==="ordinal")return isStringSafe($)?ue($):isNumber($)&&pe($)?$+"":"-";var xe=numericToNumber($);return pe(xe)?addCommas(xe):isStringSafe($)?ue($):typeof $=="boolean"?$+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function($,z){return"{"+$+(z??"")+"}"};function formatTpl($,z,ie){isArray$1(z)||(z=[z]);var le=z.length;if(!le)return"";for(var ue=z[0].$vars||[],pe=0;pe<ue.length;pe++){var _e=TPL_VAR_ALIAS[pe];$=$.replace(wrapVar(_e),wrapVar(_e,0))}for(var Ce=0;Ce<le;Ce++)for(var $e=0;$e<ue.length;$e++){var xe=z[Ce][ue[$e]];$=$.replace(wrapVar(TPL_VAR_ALIAS[$e],Ce),ie?encodeHTML(xe):xe)}return $}function getTooltipMarker($,z){var ie=isString($)?{color:$,extraCssText:z}:$||{},le=ie.color,ue=ie.type;z=ie.extraCssText;var pe=ie.renderMode||"html";if(!le)return"";if(pe==="html")return ue==="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(le)+";"+(z||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(le)+";"+(z||"")+'"></span>';var _e=ie.markerId||"markerX";return{renderMode:pe,content:"{"+_e+"|} ",style:ue==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:le}:{width:10,height:10,borderRadius:5,backgroundColor:le}}}function formatTime($,z,ie){($==="week"||$==="month"||$==="quarter"||$==="half-year"||$==="year")&&($=`MM-dd
yyyy`);var le=parseDate(z),ue=ie?"getUTC":"get",pe=le[ue+"FullYear"](),_e=le[ue+"Month"]()+1,Ce=le[ue+"Date"](),$e=le[ue+"Hours"](),xe=le[ue+"Minutes"](),Ie=le[ue+"Seconds"](),ze=le[ue+"Milliseconds"]();return $=$.replace("MM",pad(_e,2)).replace("M",_e).replace("yyyy",pe).replace("yy",pad(pe%100+"",2)).replace("dd",pad(Ce,2)).replace("d",Ce).replace("hh",pad($e,2)).replace("h",$e).replace("mm",pad(xe,2)).replace("m",xe).replace("ss",pad(Ie,2)).replace("s",Ie).replace("SSS",pad(ze,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 ie=window.open();ie.opener=null,ie.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,ie,le,ue){var pe=0,_e=0;le==null&&(le=1/0),ue==null&&(ue=1/0);var Ce=0;z.eachChild(function($e,xe){var Ie=$e.getBoundingRect(),ze=z.childAt(xe+1),Ue=ze&&ze.getBoundingRect(),qe,Et;if($==="horizontal"){var Lt=Ie.width+(Ue?-Ue.x+Ie.x:0);qe=pe+Lt,qe>le||$e.newline?(pe=0,qe=Lt,_e+=Ce+ie,Ce=Ie.height):Ce=Math.max(Ce,Ie.height)}else{var hn=Ie.height+(Ue?-Ue.y+Ie.y:0);Et=_e+hn,Et>ue||$e.newline?(pe+=Ce+ie,_e=0,Et=hn,Ce=Ie.width):Ce=Math.max(Ce,Ie.width)}$e.newline||($e.x=pe,$e.y=_e,$e.markRedraw(),$==="horizontal"?pe=qe+ie:_e=Et+ie)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect($,z,ie){ie=normalizeCssArray(ie||0);var le=z.width,ue=z.height,pe=parsePercent($.left,le),_e=parsePercent($.top,ue),Ce=parsePercent($.right,le),$e=parsePercent($.bottom,ue),xe=parsePercent($.width,le),Ie=parsePercent($.height,ue),ze=ie[2]+ie[0],Ue=ie[1]+ie[3],qe=$.aspect;switch(isNaN(xe)&&(xe=le-Ce-Ue-pe),isNaN(Ie)&&(Ie=ue-$e-ze-_e),qe!=null&&(isNaN(xe)&&isNaN(Ie)&&(qe>le/ue?xe=le*.8:Ie=ue*.8),isNaN(xe)&&(xe=qe*Ie),isNaN(Ie)&&(Ie=xe/qe)),isNaN(pe)&&(pe=le-Ce-xe-Ue),isNaN(_e)&&(_e=ue-$e-Ie-ze),$.left||$.right){case"center":pe=le/2-xe/2-ie[3];break;case"right":pe=le-xe-Ue;break}switch($.top||$.bottom){case"middle":case"center":_e=ue/2-Ie/2-ie[0];break;case"bottom":_e=ue-Ie-ze;break}pe=pe||0,_e=_e||0,isNaN(xe)&&(xe=le-Ue-pe-(Ce||0)),isNaN(Ie)&&(Ie=ue-ze-_e-($e||0));var Et=new BoundingRect$1(pe+ie[3],_e+ie[0],xe,Ie);return Et.margin=ie,Et}function positionElement($,z,ie,le,ue,pe){var _e=!ue||!ue.hv||ue.hv[0],Ce=!ue||!ue.hv||ue.hv[1],$e=ue&&ue.boundingMode||"all";if(pe=pe||$,pe.x=$.x,pe.y=$.y,!_e&&!Ce)return!1;var xe;if($e==="raw")xe=$.type==="group"?new BoundingRect$1(0,0,+z.width||0,+z.height||0):$.getBoundingRect();else if(xe=$.getBoundingRect(),$.needLocalTransform()){var Ie=$.getLocalTransform();xe=xe.clone(),xe.applyTransform(Ie)}var ze=getLayoutRect(defaults({width:xe.width,height:xe.height},z),ie,le),Ue=_e?ze.x-xe.x:0,qe=Ce?ze.y-xe.y:0;return $e==="raw"?(pe.x=Ue,pe.y=qe):(pe.x+=Ue,pe.y+=qe),pe===$&&$.markRedraw(),!0}function fetchLayoutMode($){var z=$.layoutMode||$.constructor.layoutMode;return isObject$3(z)?z:z?{type:z}:null}function mergeLayoutParam($,z,ie){var le=ie&&ie.ignoreSize;!isArray$1(le)&&(le=[le,le]);var ue=_e(HV_NAMES[0],0),pe=_e(HV_NAMES[1],1);xe(HV_NAMES[0],$,ue),xe(HV_NAMES[1],$,pe);function _e(Ie,ze){var Ue={},qe=0,Et={},Lt=0,hn=2;if(each$b(Ie,function(bn){Et[bn]=$[bn]}),each$b(Ie,function(bn){Ce(z,bn)&&(Ue[bn]=Et[bn]=z[bn]),$e(Ue,bn)&&qe++,$e(Et,bn)&&Lt++}),le[ze])return $e(z,Ie[1])?Et[Ie[2]]=null:$e(z,Ie[2])&&(Et[Ie[1]]=null),Et;if(Lt===hn||!qe)return Et;if(qe>=hn)return Ue;for(var vn=0;vn<Ie.length;vn++){var _n=Ie[vn];if(!Ce(Ue,_n)&&Ce($,_n)){Ue[_n]=$[_n];break}}return Ue}function Ce(Ie,ze){return Ie.hasOwnProperty(ze)}function $e(Ie,ze){return Ie[ze]!=null&&Ie[ze]!=="auto"}function xe(Ie,ze,Ue){each$b(Ie,function(qe){ze[qe]=Ue[qe]})}}function getLayoutParams($){return copyLayoutParams({},$)}function copyLayoutParams($,z){return z&&$&&each$b(LOCATION_PARAMS,function(ie){z.hasOwnProperty(ie)&&($[ie]=z[ie])}),$}var inner$c=makeInner(),ComponentModel=function($){__extends(z,$);function z(ie,le,ue){var pe=$.call(this,ie,le,ue)||this;return pe.uid=getUID("ec_cpt_model"),pe}return z.prototype.init=function(ie,le,ue){this.mergeDefaultAndTheme(ie,ue)},z.prototype.mergeDefaultAndTheme=function(ie,le){var ue=fetchLayoutMode(this),pe=ue?getLayoutParams(ie):{},_e=le.getTheme();merge(ie,_e.get(this.mainType)),merge(ie,this.getDefaultOption()),ue&&mergeLayoutParam(ie,pe,ue)},z.prototype.mergeOption=function(ie,le){merge(this.option,ie,!0);var ue=fetchLayoutMode(this);ue&&mergeLayoutParam(this.option,ie,ue)},z.prototype.optionUpdated=function(ie,le){},z.prototype.getDefaultOption=function(){var ie=this.constructor;if(!isExtendedClass(ie))return ie.defaultOption;var le=inner$c(this);if(!le.defaultOption){for(var ue=[],pe=ie;pe;){var _e=pe.prototype.defaultOption;_e&&ue.push(_e),pe=pe.superClass}for(var Ce={},$e=ue.length-1;$e>=0;$e--)Ce=merge(Ce,ue[$e],!0);le.defaultOption=Ce}return le.defaultOption},z.prototype.getReferringComponents=function(ie,le){var ue=ie+"Index",pe=ie+"Id";return queryReferringComponents(this.ecModel,ie,{index:this.get(ue,!0),id:this.get(pe,!0)},le)},z.prototype.getBoxLayoutParams=function(){var ie=this;return{left:ie.get("left"),top:ie.get("top"),right:ie.get("right"),bottom:ie.get("bottom"),width:ie.get("width"),height:ie.get("height")}},z.prototype.getZLevelKey=function(){return""},z.prototype.setZLevel=function(ie){this.option.zlevel=ie},z.protoInitialize=function(){var ie=z.prototype;ie.type="component",ie.id="",ie.name="",ie.mainType="",ie.subType="",ie.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(ie){z=z.concat(ie.dependencies||ie.prototype.dependencies||[])}),z=map$2(z,function(ie){return parseClassType(ie).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,ie){var le={},ue=querySeriesUpstreamDatasetModel(z);if(!ue||!$)return le;var pe=[],_e=[],Ce=z.ecModel,$e=innerGlobalModel(Ce).datasetMap,xe=ue.uid+"_"+ie.seriesLayoutBy,Ie,ze;$=$.slice(),each$c($,function(Lt,hn){var vn=isObject$3(Lt)?Lt:$[hn]={name:Lt};vn.type==="ordinal"&&Ie==null&&(Ie=hn,ze=Et(vn)),le[vn.name]=[]});var Ue=$e.get(xe)||$e.set(xe,{categoryWayDim:ze,valueWayDim:0});each$c($,function(Lt,hn){var vn=Lt.name,_n=Et(Lt);if(Ie==null){var bn=Ue.valueWayDim;qe(le[vn],bn,_n),qe(_e,bn,_n),Ue.valueWayDim+=_n}else if(Ie===hn)qe(le[vn],0,_n),qe(pe,0,_n);else{var bn=Ue.categoryWayDim;qe(le[vn],bn,_n),qe(_e,bn,_n),Ue.categoryWayDim+=_n}});function qe(Lt,hn,vn){for(var _n=0;_n<vn;_n++)Lt.push(hn+_n)}function Et(Lt){var hn=Lt.dimsDef;return hn?hn.length:1}return pe.length&&(le.itemName=pe),_e.length&&(le.seriesName=_e),le}function makeSeriesEncodeForNameBased($,z,ie){var le={},ue=querySeriesUpstreamDatasetModel($);if(!ue)return le;var pe=z.sourceFormat,_e=z.dimensionsDefine,Ce;(pe===SOURCE_FORMAT_OBJECT_ROWS||pe===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(_e,function(Ie,ze){(isObject$3(Ie)?Ie.name:Ie)==="name"&&(Ce=ze)});var $e=function(){for(var Ie={},ze={},Ue=[],qe=0,Et=Math.min(5,ie);qe<Et;qe++){var Lt=doGuessOrdinal(z.data,pe,z.seriesLayoutBy,_e,z.startIndex,qe);Ue.push(Lt);var hn=Lt===BE_ORDINAL.Not;if(hn&&Ie.v==null&&qe!==Ce&&(Ie.v=qe),(Ie.n==null||Ie.n===Ie.v||!hn&&Ue[Ie.n]===BE_ORDINAL.Not)&&(Ie.n=qe),vn(Ie)&&Ue[Ie.n]!==BE_ORDINAL.Not)return Ie;hn||(Lt===BE_ORDINAL.Might&&ze.v==null&&qe!==Ce&&(ze.v=qe),(ze.n==null||ze.n===ze.v)&&(ze.n=qe))}function vn(_n){return _n.v!=null&&_n.n!=null}return vn(Ie)?Ie:vn(ze)?ze:null}();if($e){le.value=[$e.v];var xe=Ce??$e.n;le.itemName=[xe],le.seriesName=[xe]}return le}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,ie,le,ue,pe){var _e,Ce=5;if(isTypedArray($))return BE_ORDINAL.Not;var $e,xe;if(le){var Ie=le[pe];isObject$3(Ie)?($e=Ie.name,xe=Ie.type):isString(Ie)&&($e=Ie)}if(xe!=null)return xe==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(z===SOURCE_FORMAT_ARRAY_ROWS){var ze=$;if(ie===SERIES_LAYOUT_BY_ROW){for(var Ue=ze[pe],qe=0;qe<(Ue||[]).length&&qe<Ce;qe++)if((_e=Sn(Ue[ue+qe]))!=null)return _e}else for(var qe=0;qe<ze.length&&qe<Ce;qe++){var Et=ze[ue+qe];if(Et&&(_e=Sn(Et[pe]))!=null)return _e}}else if(z===SOURCE_FORMAT_OBJECT_ROWS){var Lt=$;if(!$e)return BE_ORDINAL.Not;for(var qe=0;qe<Lt.length&&qe<Ce;qe++){var hn=Lt[qe];if(hn&&(_e=Sn(hn[$e]))!=null)return _e}}else if(z===SOURCE_FORMAT_KEYED_COLUMNS){var vn=$;if(!$e)return BE_ORDINAL.Not;var Ue=vn[$e];if(!Ue||isTypedArray(Ue))return BE_ORDINAL.Not;for(var qe=0;qe<Ue.length&&qe<Ce;qe++)if((_e=Sn(Ue[qe]))!=null)return _e}else if(z===SOURCE_FORMAT_ORIGINAL)for(var _n=$,qe=0;qe<_n.length&&qe<Ce;qe++){var hn=_n[qe],bn=getDataItemValue(hn);if(!isArray$1(bn))return BE_ORDINAL.Not;if((_e=Sn(bn[pe]))!=null)return _e}function Sn(Cn){var En=isString(Cn);if(Cn!=null&&isFinite(Cn)&&Cn!=="")return En?BE_ORDINAL.Might:BE_ORDINAL.Not;if(En&&Cn!=="-")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,ie){var le=internalOptionCreatorMap.get(z);if(!le)return ie;var ue=le($);return ue?ie.concat(ue):ie}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function $(){}return $.prototype.getColorFromPalette=function(z,ie,le){var ue=normalizeToArray(this.get("color",!0)),pe=this.get("colorLayer",!0);return getFromPalette(this,innerColor,ue,pe,z,ie,le)},$.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},$}();function getNearestPalette($,z){for(var ie=$.length,le=0;le<ie;le++)if($[le].length>z)return $[le];return $[ie-1]}function getFromPalette($,z,ie,le,ue,pe,_e){pe=pe||$;var Ce=z(pe),$e=Ce.paletteIdx||0,xe=Ce.paletteNameMap=Ce.paletteNameMap||{};if(xe.hasOwnProperty(ue))return xe[ue];var Ie=_e==null||!le?ie:getNearestPalette(le,_e);if(Ie=Ie||ie,!(!Ie||!Ie.length)){var ze=Ie[$e];return ue&&(xe[ue]=ze),Ce.paletteIdx=($e+1)%Ie.length,ze}}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(ie,le,ue,pe,_e,Ce){pe=pe||{},this.option=null,this._theme=new Model$1(pe),this._locale=new Model$1(_e),this._optionManager=Ce},z.prototype.setOption=function(ie,le,ue){var pe=normalizeSetOptionInput(le);this._optionManager.setOption(ie,ue,pe),this._resetOption(null,pe)},z.prototype.resetOption=function(ie,le){return this._resetOption(ie,normalizeSetOptionInput(le))},z.prototype._resetOption=function(ie,le){var ue=!1,pe=this._optionManager;if(!ie||ie==="recreate"){var _e=pe.mountOption(ie==="recreate");!this.option||ie==="recreate"?initBase(this,_e):(this.restoreData(),this._mergeOption(_e,le)),ue=!0}if((ie==="timeline"||ie==="media")&&this.restoreData(),!ie||ie==="recreate"||ie==="timeline"){var Ce=pe.getTimelineOption(this);Ce&&(ue=!0,this._mergeOption(Ce,le))}if(!ie||ie==="recreate"||ie==="media"){var $e=pe.getMediaOption(this);$e.length&&each$c($e,function(xe){ue=!0,this._mergeOption(xe,le)},this)}return ue},z.prototype.mergeOption=function(ie){this._mergeOption(ie,null)},z.prototype._mergeOption=function(ie,le){var ue=this.option,pe=this._componentsMap,_e=this._componentsCount,Ce=[],$e=createHashMap(),xe=le&&le.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(ie,function(ze,Ue){ze!=null&&(ComponentModel$1.hasClass(Ue)?Ue&&(Ce.push(Ue),$e.set(Ue,!0)):ue[Ue]=ue[Ue]==null?clone$3(ze):merge(ue[Ue],ze,!0))}),xe&&xe.each(function(ze,Ue){ComponentModel$1.hasClass(Ue)&&!$e.get(Ue)&&(Ce.push(Ue),$e.set(Ue,!0))}),ComponentModel$1.topologicalTravel(Ce,ComponentModel$1.getAllClassMainTypes(),Ie,this);function Ie(ze){var Ue=concatInternalOptions(this,ze,normalizeToArray(ie[ze])),qe=pe.get(ze),Et=qe?xe&&xe.get(ze)?"replaceMerge":"normalMerge":"replaceAll",Lt=mappingToExists(qe,Ue,Et);setComponentTypeToKeyInfo(Lt,ze,ComponentModel$1),ue[ze]=null,pe.set(ze,null),_e.set(ze,0);var hn=[],vn=[],_n=0,bn;each$c(Lt,function(Sn,Cn){var En=Sn.existing,$n=Sn.newOption;if(!$n)En&&(En.mergeOption({},this),En.optionUpdated({},!1));else{var wn=ze==="series",Tn=ComponentModel$1.getClass(ze,Sn.keyInfo.subType,!wn);if(!Tn)return;if(ze==="tooltip"){if(bn)return;bn=!0}if(En&&En.constructor===Tn)En.name=Sn.keyInfo.name,En.mergeOption($n,this),En.optionUpdated($n,!1);else{var xn=extend({componentIndex:Cn},Sn.keyInfo);En=new Tn($n,this,this,xn),extend(En,xn),Sn.brandNew&&(En.__requireNewView=!0),En.init($n,this,this),En.optionUpdated(null,!0)}}En?(hn.push(En.option),vn.push(En),_n++):(hn.push(void 0),vn.push(void 0))},this),ue[ze]=hn,pe.set(ze,vn),_e.set(ze,_n),ze==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},z.prototype.getOption=function(){var ie=clone$3(this.option);return each$c(ie,function(le,ue){if(ComponentModel$1.hasClass(ue)){for(var pe=normalizeToArray(le),_e=pe.length,Ce=!1,$e=_e-1;$e>=0;$e--)pe[$e]&&!isComponentIdInternal(pe[$e])?Ce=!0:(pe[$e]=null,!Ce&&_e--);pe.length=_e,ie[ue]=pe}}),delete ie[OPTION_INNER_KEY],ie},z.prototype.getTheme=function(){return this._theme},z.prototype.getLocaleModel=function(){return this._locale},z.prototype.setUpdatePayload=function(ie){this._payload=ie},z.prototype.getUpdatePayload=function(){return this._payload},z.prototype.getComponent=function(ie,le){var ue=this._componentsMap.get(ie);if(ue){var pe=ue[le||0];if(pe)return pe;if(le==null){for(var _e=0;_e<ue.length;_e++)if(ue[_e])return ue[_e]}}},z.prototype.queryComponents=function(ie){var le=ie.mainType;if(!le)return[];var ue=ie.index,pe=ie.id,_e=ie.name,Ce=this._componentsMap.get(le);if(!Ce||!Ce.length)return[];var $e;return ue!=null?($e=[],each$c(normalizeToArray(ue),function(xe){Ce[xe]&&$e.push(Ce[xe])})):pe!=null?$e=queryByIdOrName("id",pe,Ce):_e!=null?$e=queryByIdOrName("name",_e,Ce):$e=filter(Ce,function(xe){return!!xe}),filterBySubType($e,ie)},z.prototype.findComponents=function(ie){var le=ie.query,ue=ie.mainType,pe=Ce(le),_e=pe?this.queryComponents(pe):filter(this._componentsMap.get(ue),function(xe){return!!xe});return $e(filterBySubType(_e,ie));function Ce(xe){var Ie=ue+"Index",ze=ue+"Id",Ue=ue+"Name";return xe&&(xe[Ie]!=null||xe[ze]!=null||xe[Ue]!=null)?{mainType:ue,index:xe[Ie],id:xe[ze],name:xe[Ue]}:null}function $e(xe){return ie.filter?filter(xe,ie.filter):xe}},z.prototype.eachComponent=function(ie,le,ue){var pe=this._componentsMap;if(isFunction(ie)){var _e=le,Ce=ie;pe.each(function(ze,Ue){for(var qe=0;ze&&qe<ze.length;qe++){var Et=ze[qe];Et&&Ce.call(_e,Ue,Et,Et.componentIndex)}})}else for(var $e=isString(ie)?pe.get(ie):isObject$3(ie)?this.findComponents(ie):null,xe=0;$e&&xe<$e.length;xe++){var Ie=$e[xe];Ie&&le.call(ue,Ie,Ie.componentIndex)}},z.prototype.getSeriesByName=function(ie){var le=convertOptionIdName(ie,null);return filter(this._componentsMap.get("series"),function(ue){return!!ue&&le!=null&&ue.name===le})},z.prototype.getSeriesByIndex=function(ie){return this._componentsMap.get("series")[ie]},z.prototype.getSeriesByType=function(ie){return filter(this._componentsMap.get("series"),function(le){return!!le&&le.subType===ie})},z.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(ie){return!!ie})},z.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},z.prototype.eachSeries=function(ie,le){assertSeriesInitialized(this),each$c(this._seriesIndices,function(ue){var pe=this._componentsMap.get("series")[ue];ie.call(le,pe,ue)},this)},z.prototype.eachRawSeries=function(ie,le){each$c(this._componentsMap.get("series"),function(ue){ue&&ie.call(le,ue,ue.componentIndex)})},z.prototype.eachSeriesByType=function(ie,le,ue){assertSeriesInitialized(this),each$c(this._seriesIndices,function(pe){var _e=this._componentsMap.get("series")[pe];_e.subType===ie&&le.call(ue,_e,pe)},this)},z.prototype.eachRawSeriesByType=function(ie,le,ue){return each$c(this.getSeriesByType(ie),le,ue)},z.prototype.isSeriesFiltered=function(ie){return assertSeriesInitialized(this),this._seriesIndicesMap.get(ie.componentIndex)==null},z.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},z.prototype.filterSeries=function(ie,le){assertSeriesInitialized(this);var ue=[];each$c(this._seriesIndices,function(pe){var _e=this._componentsMap.get("series")[pe];ie.call(le,_e,pe)&&ue.push(pe)},this),this._seriesIndices=ue,this._seriesIndicesMap=createHashMap(ue)},z.prototype.restoreData=function(ie){reCreateSeriesIndices(this);var le=this._componentsMap,ue=[];le.each(function(pe,_e){ComponentModel$1.hasClass(_e)&&ue.push(_e)}),ComponentModel$1.topologicalTravel(ue,ComponentModel$1.getAllClassMainTypes(),function(pe){each$c(le.get(pe),function(_e){_e&&(pe!=="series"||!isNotTargetSeries(_e,ie))&&_e.restoreData()})})},z.internalField=function(){reCreateSeriesIndices=function(ie){var le=ie._seriesIndices=[];each$c(ie._componentsMap.get("series"),function(ue){ue&&le.push(ue.componentIndex)}),ie._seriesIndicesMap=createHashMap(le)},assertSeriesInitialized=function(ie){},initBase=function(ie,le){ie.option={},ie.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,ie._componentsMap=createHashMap({series:[]}),ie._componentsCount=createHashMap();var ue=le.aria;isObject$3(ue)&&ue.enabled==null&&(ue.enabled=!0),mergeTheme(le,ie._theme.option),merge(le,globalDefault,!1),ie._mergeOption(le,null)}}(),z}(Model$1);function isNotTargetSeries($,z){if(z){var ie=z.seriesIndex,le=z.seriesId,ue=z.seriesName;return ie!=null&&$.componentIndex!==ie||le!=null&&$.id!==le||ue!=null&&$.name!==ue}}function mergeTheme($,z){var ie=$.color&&!$.colorLayer;each$c(z,function(le,ue){ue==="colorLayer"&&ie||ComponentModel$1.hasClass(ue)||(typeof le=="object"?$[ue]=$[ue]?merge($[ue],le,!1):clone$3(le):$[ue]==null&&($[ue]=le))})}function queryByIdOrName($,z,ie){if(isArray$1(z)){var le=createHashMap();return each$c(z,function(pe){if(pe!=null){var _e=convertOptionIdName(pe,null);_e!=null&&le.set(pe,!0)}}),filter(ie,function(pe){return pe&&le.get(pe[$])})}else{var ue=convertOptionIdName(z,null);return filter(ie,function(pe){return pe&&ue!=null&&pe[$]===ue})}}function filterBySubType($,z){return z.hasOwnProperty("subType")?filter($,function(ie){return ie&&ie.subType===z.subType}):$}function normalizeSetOptionInput($){var z=createHashMap();return $&&each$c(normalizeToArray($.replaceMerge),function(ie){z.set(ie,!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(ie){this[ie]=bind$1(z[ie],z)},this)}return $}();const ExtensionAPI$1=ExtensionAPI;var coordinateSystemCreators={},CoordinateSystemManager=function(){function $(){this._coordinateSystems=[]}return $.prototype.create=function(z,ie){var le=[];each$c(coordinateSystemCreators,function(ue,pe){var _e=ue.create(z,ie);le=le.concat(_e||[])}),this._coordinateSystems=le},$.prototype.update=function(z,ie){each$c(this._coordinateSystems,function(le){le.update&&le.update(z,ie)})},$.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},$.register=function(z,ie){coordinateSystemCreators[z]=ie},$.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,ie,le){z&&(each$c(normalizeToArray(z.series),function(_e){_e&&_e.data&&isTypedArray(_e.data)&&setAsPrimitive(_e.data)}),each$c(normalizeToArray(z.dataset),function(_e){_e&&_e.source&&isTypedArray(_e.source)&&setAsPrimitive(_e.source)})),z=clone$3(z);var ue=this._optionBackup,pe=parseRawOption(z,ie,!ue);this._newBaseOption=pe.baseOption,ue?(pe.timelineOptions.length&&(ue.timelineOptions=pe.timelineOptions),pe.mediaList.length&&(ue.mediaList=pe.mediaList),pe.mediaDefault&&(ue.mediaDefault=pe.mediaDefault)):this._optionBackup=pe},$.prototype.mountOption=function(z){var ie=this._optionBackup;return this._timelineOptions=ie.timelineOptions,this._mediaList=ie.mediaList,this._mediaDefault=ie.mediaDefault,this._currentMediaIndices=[],clone$3(z?ie.baseOption:this._newBaseOption)},$.prototype.getTimelineOption=function(z){var ie,le=this._timelineOptions;if(le.length){var ue=z.getComponent("timeline");ue&&(ie=clone$3(le[ue.getCurrentIndex()]))}return ie},$.prototype.getMediaOption=function(z){var ie=this._api.getWidth(),le=this._api.getHeight(),ue=this._mediaList,pe=this._mediaDefault,_e=[],Ce=[];if(!ue.length&&!pe)return Ce;for(var $e=0,xe=ue.length;$e<xe;$e++)applyMediaQuery(ue[$e].query,ie,le)&&_e.push($e);return!_e.length&&pe&&(_e=[-1]),_e.length&&!indicesEquals(_e,this._currentMediaIndices)&&(Ce=map$2(_e,function(Ie){return clone$3(Ie===-1?pe.option:ue[Ie].option)})),this._currentMediaIndices=_e,Ce},$}();function parseRawOption($,z,ie){var le=[],ue,pe,_e=$.baseOption,Ce=$.timeline,$e=$.options,xe=$.media,Ie=!!$.media,ze=!!($e||Ce||_e&&_e.timeline);_e?(pe=_e,pe.timeline||(pe.timeline=Ce)):((ze||Ie)&&($.options=$.media=null),pe=$),Ie&&isArray$1(xe)&&each$c(xe,function(qe){qe&&qe.option&&(qe.query?le.push(qe):ue||(ue=qe))}),Ue(pe),each$c($e,function(qe){return Ue(qe)}),each$c(le,function(qe){return Ue(qe.option)});function Ue(qe){each$c(z,function(Et){Et(qe,ie)})}return{baseOption:pe,timelineOptions:$e||[],mediaDefault:ue,mediaList:le}}function applyMediaQuery($,z,ie){var le={width:z,height:ie,aspectratio:z/ie},ue=!0;return each$c($,function(pe,_e){var Ce=_e.match(QUERY_REG);if(!(!Ce||!Ce[1]||!Ce[2])){var $e=Ce[1],xe=Ce[2].toLowerCase();compare(le[xe],pe,$e)||(ue=!1)}}),ue}function compare($,z,ie){return ie==="min"?$>=z:ie==="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 ie=0,le=POSSIBLE_STYLES.length;ie<le;ie++){var ue=POSSIBLE_STYLES[ie],pe=z.normal,_e=z.emphasis;pe&&pe[ue]&&($[ue]=$[ue]||{},$[ue].normal?merge($[ue].normal,pe[ue]):$[ue].normal=pe[ue],pe[ue]=null),_e&&_e[ue]&&($[ue]=$[ue]||{},$[ue].emphasis?merge($[ue].emphasis,_e[ue]):$[ue].emphasis=_e[ue],_e[ue]=null)}}function convertNormalEmphasis($,z,ie){if($&&$[z]&&($[z].normal||$[z].emphasis)){var le=$[z].normal,ue=$[z].emphasis;le&&(ie?($[z].normal=$[z].emphasis=null,defaults($[z],le)):$[z]=le),ue&&($.emphasis=$.emphasis||{},$.emphasis[z]=ue,ue.focus&&($.emphasis.focus=ue.focus),ue.blurScope&&($.emphasis.blurScope=ue.blurScope))}}function removeEC3NormalStatus($){convertNormalEmphasis($,"itemStyle"),convertNormalEmphasis($,"lineStyle"),convertNormalEmphasis($,"areaStyle"),convertNormalEmphasis($,"label"),convertNormalEmphasis($,"labelLine"),convertNormalEmphasis($,"upperLabel"),convertNormalEmphasis($,"edgeLabel")}function compatTextStyle($,z){var ie=isObject$2($)&&$[z],le=isObject$2(ie)&&ie.textStyle;if(le)for(var ue=0,pe=TEXT_STYLE_OPTIONS.length;ue<pe;ue++){var _e=TEXT_STYLE_OPTIONS[ue];le.hasOwnProperty(_e)&&(ie[_e]=le[_e])}}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 ie=$.markLine;ie&&(compatEC2ItemStyle(ie),compatEC3CommonStyles(ie));var le=$.markArea;le&&compatEC3CommonStyles(le);var ue=$.data;if($.type==="graph"){ue=ue||$.nodes;var pe=$.links||$.edges;if(pe&&!isTypedArray(pe))for(var _e=0;_e<pe.length;_e++)compatEC3CommonStyles(pe[_e]);each$c($.categories,function(xe){removeEC3NormalStatus(xe)})}if(ue&&!isTypedArray(ue))for(var _e=0;_e<ue.length;_e++)compatEC3CommonStyles(ue[_e]);if(z=$.markPoint,z&&z.data)for(var Ce=z.data,_e=0;_e<Ce.length;_e++)compatEC3CommonStyles(Ce[_e]);if(ie=$.markLine,ie&&ie.data)for(var $e=ie.data,_e=0;_e<$e.length;_e++)isArray$1($e[_e])?(compatEC3CommonStyles($e[_e][0]),compatEC3CommonStyles($e[_e][1])):compatEC3CommonStyles($e[_e]);$.type==="gauge"?(compatTextStyle($,"axisLabel"),compatTextStyle($,"title"),compatTextStyle($,"detail")):$.type==="treemap"?(convertNormalEmphasis($.breadcrumb,"itemStyle"),each$c($.levels,function(xe){removeEC3NormalStatus(xe)})):$.type==="tree"&&removeEC3NormalStatus($.leaves)}}function toArr($){return isArray$1($)?$:$?[$]:[]}function toObj($){return(isArray$1($)?$[0]:$)||{}}function globalCompatStyle($,z){each$a(toArr($.series),function(le){isObject$2(le)&&processSeries(le)});var ie=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];z&&ie.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$a(ie,function(le){each$a(toArr($[le]),function(ue){ue&&(compatTextStyle(ue,"axisLabel"),compatTextStyle(ue.axisPointer,"label"))})}),each$a(toArr($.parallel),function(le){var ue=le&&le.parallelAxisDefault;compatTextStyle(ue,"axisLabel"),compatTextStyle(ue&&ue.axisPointer,"label")}),each$a(toArr($.calendar),function(le){convertNormalEmphasis(le,"itemStyle"),compatTextStyle(le,"dayLabel"),compatTextStyle(le,"monthLabel"),compatTextStyle(le,"yearLabel")}),each$a(toArr($.radar),function(le){compatTextStyle(le,"name"),le.name&&le.axisName==null&&(le.axisName=le.name,delete le.name),le.nameGap!=null&&le.axisNameGap==null&&(le.axisNameGap=le.nameGap,delete le.nameGap)}),each$a(toArr($.geo),function(le){isObject$2(le)&&(compatEC3CommonStyles(le),each$a(toArr(le.regions),function(ue){compatEC3CommonStyles(ue)}))}),each$a(toArr($.timeline),function(le){compatEC3CommonStyles(le),convertNormalEmphasis(le,"label"),convertNormalEmphasis(le,"itemStyle"),convertNormalEmphasis(le,"controlStyle",!0);var ue=le.data;isArray$1(ue)&&each$c(ue,function(pe){isObject$3(pe)&&(convertNormalEmphasis(pe,"label"),convertNormalEmphasis(pe,"itemStyle"))})}),each$a(toArr($.toolbox),function(le){convertNormalEmphasis(le,"iconStyle"),each$a(le.feature,function(ue){convertNormalEmphasis(ue,"iconStyle")})}),compatTextStyle(toObj($.axisPointer),"label"),compatTextStyle(toObj($.tooltip).axisPointer,"label")}function get($,z){for(var ie=z.split(","),le=$,ue=0;ue<ie.length&&(le=le&&le[ie[ue]],le!=null);ue++);return le}function set($,z,ie,le){for(var ue=z.split(","),pe=$,_e,Ce=0;Ce<ue.length-1;Ce++)_e=ue[Ce],pe[_e]==null&&(pe[_e]={}),pe=pe[_e];(le||pe[ue[Ce]]==null)&&(pe[ue[Ce]]=ie)}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 ie=0;ie<BAR_ITEM_STYLE_MAP.length;ie++){var le=BAR_ITEM_STYLE_MAP[ie][1],ue=BAR_ITEM_STYLE_MAP[ie][0];z[le]!=null&&(z[ue]=z[le])}}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 ie=0;ie<$.length;ie++)z($[ie]),$[ie]&&traverseTree($[ie].children,z)}function globalBackwardCompat($,z){globalCompatStyle($,z),$.series=normalizeToArray($.series),each$c($.series,function(ie){if(isObject$3(ie)){var le=ie.type;if(le==="line")ie.clipOverflow!=null&&(ie.clip=ie.clipOverflow);else if(le==="pie"||le==="gauge"){ie.clockWise!=null&&(ie.clockwise=ie.clockWise),compatPieLabel(ie.label);var ue=ie.data;if(ue&&!isTypedArray(ue))for(var pe=0;pe<ue.length;pe++)compatPieLabel(ue[pe]);ie.hoverOffset!=null&&(ie.emphasis=ie.emphasis||{},(ie.emphasis.scaleSize=null)&&(ie.emphasis.scaleSize=ie.hoverOffset))}else if(le==="gauge"){var _e=get(ie,"pointer.color");_e!=null&&set(ie,"itemStyle.color",_e)}else if(le==="bar"){compatBarItemStyle(ie),compatBarItemStyle(ie.backgroundStyle),compatBarItemStyle(ie.emphasis);var ue=ie.data;if(ue&&!isTypedArray(ue))for(var pe=0;pe<ue.length;pe++)typeof ue[pe]=="object"&&(compatBarItemStyle(ue[pe]),compatBarItemStyle(ue[pe]&&ue[pe].emphasis))}else if(le==="sunburst"){var Ce=ie.highlightPolicy;Ce&&(ie.emphasis=ie.emphasis||{},ie.emphasis.focus||(ie.emphasis.focus=Ce)),compatSunburstState(ie),traverseTree(ie.data,compatSunburstState)}else le==="graph"||le==="sankey"?compatGraphFocus(ie):le==="map"&&(ie.mapType&&!ie.map&&(ie.map=ie.mapType),ie.mapLocation&&defaults(ie,ie.mapLocation));ie.hoverAnimation!=null&&(ie.emphasis=ie.emphasis||{},ie.emphasis&&ie.emphasis.scale==null&&(ie.emphasis.scale=ie.hoverAnimation)),compatLayoutProperties(ie)}}),$.dataRange&&($.visualMap=$.dataRange),each$c(COMPATITABLE_COMPONENTS,function(ie){var le=$[ie];le&&(isArray$1(le)||(le=[le]),each$c(le,function(ue){compatLayoutProperties(ue)}))})}function dataStack$1($){var z=createHashMap();$.eachSeries(function(ie){var le=ie.get("stack");if(le){var ue=z.get(le)||z.set(le,[]),pe=ie.getData(),_e={stackResultDimension:pe.getCalculationInfo("stackResultDimension"),stackedOverDimension:pe.getCalculationInfo("stackedOverDimension"),stackedDimension:pe.getCalculationInfo("stackedDimension"),stackedByDimension:pe.getCalculationInfo("stackedByDimension"),isStackedByIndex:pe.getCalculationInfo("isStackedByIndex"),data:pe,seriesModel:ie};if(!_e.stackedDimension||!(_e.isStackedByIndex||_e.stackedByDimension))return;ue.length&&pe.setCalculationInfo("stackedOnSeries",ue[ue.length-1].seriesModel),ue.push(_e)}}),z.each(calculateStack)}function calculateStack($){each$c($,function(z,ie){var le=[],ue=[NaN,NaN],pe=[z.stackResultDimension,z.stackedOverDimension],_e=z.data,Ce=z.isStackedByIndex,$e=z.seriesModel.get("stackStrategy")||"samesign";_e.modify(pe,function(xe,Ie,ze){var Ue=_e.get(z.stackedDimension,ze);if(isNaN(Ue))return ue;var qe,Et;Ce?Et=_e.getRawIndex(ze):qe=_e.get(z.stackedByDimension,ze);for(var Lt=NaN,hn=ie-1;hn>=0;hn--){var vn=$[hn];if(Ce||(Et=vn.data.rawIndexOf(vn.stackedByDimension,qe)),Et>=0){var _n=vn.data.getByRawIndex(vn.stackResultDimension,Et);if($e==="all"||$e==="positive"&&_n>0||$e==="negative"&&_n<0||$e==="samesign"&&Ue>=0&&_n>0||$e==="samesign"&&Ue<=0&&_n<0){Ue=addSafe(Ue,_n),Lt=_n;break}}}return le[0]=Ue,le[1]=Lt,le})})}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 ie=this.dimensionsDefine=z.dimensionsDefine;if(ie)for(var le=0;le<ie.length;le++){var ue=ie[le];ue.type==null&&guessOrdinal(this,le)===BE_ORDINAL.Must&&(ue.type="ordinal")}}return $}();function isSourceInstance($){return $ instanceof SourceImpl}function createSource($,z,ie){ie=ie||detectSourceFormat($);var le=z.seriesLayoutBy,ue=determineSourceDimensions($,ie,le,z.sourceHeader,z.dimensions),pe=new SourceImpl({data:$,sourceFormat:ie,seriesLayoutBy:le,dimensionsDefine:ue.dimensionsDefine,startIndex:ue.startIndex,dimensionsDetectedCount:ue.dimensionsDetectedCount,metaRawOption:clone$3(z)});return pe}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 ie=0,le=$.length;ie<le;ie++){var ue=$[ie];if(ue!=null){if(isArray$1(ue)){z=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(ue)){z=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3($)){for(var pe in $)if(hasOwn($,pe)&&isArrayLike($[pe])){z=SOURCE_FORMAT_KEYED_COLUMNS;break}}return z}function determineSourceDimensions($,z,ie,le,ue){var pe,_e;if(!$)return{dimensionsDefine:normalizeDimensionsOption(ue),startIndex:_e,dimensionsDetectedCount:pe};if(z===SOURCE_FORMAT_ARRAY_ROWS){var Ce=$;le==="auto"||le==null?arrayRowsTravelFirst(function(xe){xe!=null&&xe!=="-"&&(isString(xe)?_e==null&&(_e=1):_e=0)},ie,Ce,10):_e=isNumber(le)?le:le?1:0,!ue&&_e===1&&(ue=[],arrayRowsTravelFirst(function(xe,Ie){ue[Ie]=xe!=null?xe+"":""},ie,Ce,1/0)),pe=ue?ue.length:ie===SERIES_LAYOUT_BY_ROW?Ce.length:Ce[0]?Ce[0].length:null}else if(z===SOURCE_FORMAT_OBJECT_ROWS)ue||(ue=objectRowsCollectDimensions($));else if(z===SOURCE_FORMAT_KEYED_COLUMNS)ue||(ue=[],each$c($,function(xe,Ie){ue.push(Ie)}));else if(z===SOURCE_FORMAT_ORIGINAL){var $e=getDataItemValue($[0]);pe=isArray$1($e)&&$e.length||1}return{startIndex:_e,dimensionsDefine:normalizeDimensionsOption(ue),dimensionsDetectedCount:pe}}function objectRowsCollectDimensions($){for(var z=0,ie;z<$.length&&!(ie=$[z++]););if(ie)return keys(ie)}function normalizeDimensionsOption($){if($){var z=createHashMap();return map$2($,function(ie,le){ie=isObject$3(ie)?ie:{name:ie};var ue={name:ie.name,displayName:ie.displayName,type:ie.type};if(ue.name==null)return ue;ue.name+="",ue.displayName==null&&(ue.displayName=ue.name);var pe=z.get(ue.name);return pe?ue.name+="-"+pe.count++:z.set(ue.name,{count:1}),ue})}}function arrayRowsTravelFirst($,z,ie,le){if(z===SERIES_LAYOUT_BY_ROW)for(var ue=0;ue<ie.length&&ue<le;ue++)$(ie[ue]?ie[ue][0]:null,ue);else for(var pe=ie[0]||[],ue=0;ue<pe.length&&ue<le;ue++)$(pe[ue],ue)}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,ie){var le=isSourceInstance(z)?z:createSourceFromSeriesDataOption(z);this._source=le;var ue=this._data=le.data;le.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=ie,this._data=ue),mountMethods(this,ue,le)}return $.prototype.getSource=function(){return this._source},$.prototype.count=function(){return 0},$.prototype.getItem=function(z,ie){},$.prototype.appendData=function(z){},$.prototype.clean=function(){},$.protoInitialize=function(){var z=$.prototype;z.pure=!1,z.persistent=!0}(),$.internalField=function(){var z;mountMethods=function(_e,Ce,$e){var xe=$e.sourceFormat,Ie=$e.seriesLayoutBy,ze=$e.startIndex,Ue=$e.dimensionsDefine,qe=providerMethods[getMethodMapKey(xe,Ie)];if(extend(_e,qe),xe===SOURCE_FORMAT_TYPED_ARRAY)_e.getItem=ie,_e.count=ue,_e.fillStorage=le;else{var Et=getRawSourceItemGetter(xe,Ie);_e.getItem=bind$1(Et,null,Ce,ze,Ue);var Lt=getRawSourceDataCounter(xe,Ie);_e.count=bind$1(Lt,null,Ce,ze,Ue)}};var ie=function(_e,Ce){_e=_e-this._offset,Ce=Ce||[];for(var $e=this._data,xe=this._dimSize,Ie=xe*_e,ze=0;ze<xe;ze++)Ce[ze]=$e[Ie+ze];return Ce},le=function(_e,Ce,$e,xe){for(var Ie=this._data,ze=this._dimSize,Ue=0;Ue<ze;Ue++){for(var qe=xe[Ue],Et=qe[0]==null?1/0:qe[0],Lt=qe[1]==null?-1/0:qe[1],hn=Ce-_e,vn=$e[Ue],_n=0;_n<hn;_n++){var bn=Ie[_n*ze+Ue];vn[_e+_n]=bn,bn<Et&&(Et=bn),bn>Lt&&(Lt=bn)}qe[0]=Et,qe[1]=Lt}},ue=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(z={},z[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:pe},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:pe},z[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(_e){var Ce=this._data;each$c(_e,function($e,xe){for(var Ie=Ce[xe]||(Ce[xe]=[]),ze=0;ze<($e||[]).length;ze++)Ie.push($e[ze])})}},z[SOURCE_FORMAT_ORIGINAL]={appendData:pe},z[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(_e){this._data=_e},clean:function(){this._offset+=this.count(),this._data=null}},z);function pe(_e){for(var Ce=0;Ce<_e.length;Ce++)this._data.push(_e[Ce])}}(),$}(),getItemSimply=function($,z,ie,le){return $[le]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,z,ie,le){return $[le+z]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,z,ie,le,ue){le+=z;for(var pe=ue||[],_e=$,Ce=0;Ce<_e.length;Ce++){var $e=_e[Ce];pe[Ce]=$e?$e[le]:null}return pe},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function($,z,ie,le,ue){for(var pe=ue||[],_e=0;_e<ie.length;_e++){var Ce=ie[_e].name,$e=$[Ce];pe[_e]=$e?$e[le]:null}return pe},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter($,z){var ie=rawSourceItemGetterMap[getMethodMapKey($,z)];return ie}var countSimply=function($,z,ie){return $.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,z,ie){return Math.max(0,$.length-z)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,z,ie){var le=$[0];return le?Math.max(0,le.length-z):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function($,z,ie){var le=ie[0].name,ue=$[le];return ue?ue.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter($,z){var ie=rawSourceDataCounterMap[getMethodMapKey($,z)];return ie}var getRawValueSimply=function($,z,ie){return $[z]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function($,z,ie){return $[ie]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function($,z,ie){var le=getDataItemValue($);return le instanceof Array?le[z]:le},_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,ie){if($){var le=$.getRawDataItem(z);if(le!=null){var ue=$.getStore(),pe=ue.getSource().sourceFormat;if(ie!=null){var _e=$.getDimensionIndex(ie),Ce=ue.getDimensionProperty(_e);return getRawSourceValueGetter(pe)(le,_e,Ce)}else{var $e=le;return pe===SOURCE_FORMAT_ORIGINAL&&($e=getDataItemValue(le)),$e}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function $(){}return $.prototype.getDataParams=function(z,ie){var le=this.getData(ie),ue=this.getRawValue(z,ie),pe=le.getRawIndex(z),_e=le.getName(z),Ce=le.getRawDataItem(z),$e=le.getItemVisual(z,"style"),xe=$e&&$e[le.getItemVisual(z,"drawType")||"fill"],Ie=$e&&$e.stroke,ze=this.mainType,Ue=ze==="series",qe=le.userOutput&&le.userOutput.get();return{componentType:ze,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:Ue?this.subType:null,seriesIndex:this.seriesIndex,seriesId:Ue?this.id:null,seriesName:Ue?this.name:null,name:_e,dataIndex:pe,data:Ce,dataType:ie,value:ue,color:xe,borderColor:Ie,dimensionNames:qe?qe.fullDimensions:null,encode:qe?qe.encode:null,$vars:["seriesName","name","value"]}},$.prototype.getFormattedLabel=function(z,ie,le,ue,pe,_e){ie=ie||"normal";var Ce=this.getData(le),$e=this.getDataParams(z,le);if(_e&&($e.value=_e.interpolatedValue),ue!=null&&isArray$1($e.value)&&($e.value=$e.value[ue]),!pe){var xe=Ce.getItemModel(z);pe=xe.get(ie==="normal"?["label","formatter"]:[ie,"label","formatter"])}if(isFunction(pe))return $e.status=ie,$e.dimensionIndex=ue,pe($e);if(isString(pe)){var Ie=formatTpl(pe,$e);return Ie.replace(DIMENSION_LABEL_REG,function(ze,Ue){var qe=Ue.length,Et=Ue;Et.charAt(0)==="["&&Et.charAt(qe-1)==="]"&&(Et=+Et.slice(1,qe-1));var Lt=retrieveRawValue(Ce,z,Et);if(_e&&isArray$1(_e.interpolatedValue)){var hn=Ce.getDimensionIndex(Et);hn>=0&&(Lt=_e.interpolatedValue[hn])}return Lt!=null?Lt+"":""})}},$.prototype.getRawValue=function(z,ie){return retrieveRawValue(this.getData(ie),z)},$.prototype.formatTooltip=function(z,ie,le){},$}();function normalizeTooltipFormatResult($){var z,ie;return isObject$3($)?$.type&&(ie=$):z=$,{text:z,frag:ie}}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 ie=this._upstream,le=z&&z.skip;if(this._dirty&&ie){var ue=this.context;ue.data=ue.outputData=ie.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var pe;this._plan&&!le&&(pe=this._plan(this.context));var _e=Ie(this._modBy),Ce=this._modDataCount||0,$e=Ie(z&&z.modBy),xe=z&&z.modDataCount||0;(_e!==$e||Ce!==xe)&&(pe="reset");function Ie(_n){return!(_n>=1)&&(_n=1),_n}var ze;(this._dirty||pe==="reset")&&(this._dirty=!1,ze=this._doReset(le)),this._modBy=$e,this._modDataCount=xe;var Ue=z&&z.step;if(ie?this._dueEnd=ie._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var qe=this._dueIndex,Et=Math.min(Ue!=null?this._dueIndex+Ue:1/0,this._dueEnd);if(!le&&(ze||qe<Et)){var Lt=this._progress;if(isArray$1(Lt))for(var hn=0;hn<Lt.length;hn++)this._doProgress(Lt[hn],qe,Et,$e,xe);else this._doProgress(Lt,qe,Et,$e,xe)}this._dueIndex=Et;var vn=this._settedOutputEnd!=null?this._settedOutputEnd:Et;this._outputDueEnd=vn}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,ie,le,ue,pe){iterator.reset(ie,le,ue,pe),this._callingProgress=z,this._callingProgress({start:ie,end:le,count:le-ie,next:iterator.next},this.context)},$.prototype._doReset=function(z){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var ie,le;!z&&this._reset&&(ie=this._reset(this.context),ie&&ie.progress&&(le=ie.forceFirstProgress,ie=ie.progress),isArray$1(ie)&&!ie.length&&(ie=null)),this._progress=ie,this._modBy=this._modDataCount=null;var ue=this._downstream;return ue&&ue.dirty(),le},$.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,ie,le,ue,pe={reset:function($e,xe,Ie,ze){z=$e,$=xe,ie=Ie,le=ze,ue=Math.ceil(le/ie),pe.next=ie>1&&le>0?Ce:_e}};return pe;function _e(){return z<$?z++:null}function Ce(){var $e=z%ue*ie+Math.ceil(z/ue),xe=z>=$?null:$e<le?$e:z;return z++,xe}}();function parseDataValue($,z){var ie=z&&z.type;return ie==="ordinal"?$:(ie==="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,ie){var le=z==="desc";this._resultLT=le?1:-1,ie==null&&(ie=le?"min":"max"),this._incomparable=ie==="min"?-1/0:1/0}return $.prototype.evaluate=function(z,ie){var le=isNumber(z)?z:numericToNumber(z),ue=isNumber(ie)?ie:numericToNumber(ie),pe=isNaN(le),_e=isNaN(ue);if(pe&&(le=this._incomparable),_e&&(ue=this._incomparable),pe&&_e){var Ce=isString(z),$e=isString(ie);Ce&&(le=$e?z:0),$e&&(ue=Ce?ie:0)}return le<ue?this._resultLT:le>ue?-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,ie){},$.prototype.retrieveValueFromItem=function(z,ie){},$.prototype.convertValue=function(z,ie){return parseDataValue(z,ie)},$}();function createExternalSource($,z){var ie=new ExternalSource,le=$.data,ue=ie.sourceFormat=$.sourceFormat,pe=$.startIndex,_e="";$.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(_e);var Ce=[],$e={},xe=$.dimensionsDefine;if(xe)each$c(xe,function(Lt,hn){var vn=Lt.name,_n={index:hn,name:vn,displayName:Lt.displayName};if(Ce.push(_n),vn!=null){var bn="";hasOwn($e,vn)&&throwError(bn),$e[vn]=_n}});else for(var Ie=0;Ie<$.dimensionsDetectedCount;Ie++)Ce.push({index:Ie});var ze=getRawSourceItemGetter(ue,SERIES_LAYOUT_BY_COLUMN);z.__isBuiltIn&&(ie.getRawDataItem=function(Lt){return ze(le,pe,Ce,Lt)},ie.getRawData=bind$1(getRawData,null,$)),ie.cloneRawData=bind$1(cloneRawData,null,$);var Ue=getRawSourceDataCounter(ue,SERIES_LAYOUT_BY_COLUMN);ie.count=bind$1(Ue,null,le,pe,Ce);var qe=getRawSourceValueGetter(ue);ie.retrieveValue=function(Lt,hn){var vn=ze(le,pe,Ce,Lt);return Et(vn,hn)};var Et=ie.retrieveValueFromItem=function(Lt,hn){if(Lt!=null){var vn=Ce[hn];if(vn)return qe(Lt,hn,vn.name)}};return ie.getDimensionInfo=bind$1(getDimensionInfo,null,Ce,$e),ie.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,Ce),ie}function getRawData($){var z=$.sourceFormat;if(!isSupportedSourceFormat(z)){var ie="";throwError(ie)}return $.data}function cloneRawData($){var z=$.sourceFormat,ie=$.data;if(!isSupportedSourceFormat(z)){var le="";throwError(le)}if(z===SOURCE_FORMAT_ARRAY_ROWS){for(var ue=[],pe=0,_e=ie.length;pe<_e;pe++)ue.push(ie[pe].slice());return ue}else if(z===SOURCE_FORMAT_OBJECT_ROWS){for(var ue=[],pe=0,_e=ie.length;pe<_e;pe++)ue.push(extend({},ie[pe]));return ue}}function getDimensionInfo($,z,ie){if(ie!=null){if(isNumber(ie)||!isNaN(ie)&&!hasOwn(z,ie))return $[ie];if(hasOwn(z,ie))return z[ie]}}function cloneAllDimensionInfo($){return clone$3($)}var externalTransformMap=createHashMap();function registerExternalTransform($){$=clone$3($);var z=$.type,ie="";z||throwError(ie);var le=z.split(":");le.length!==2&&throwError(ie);var ue=!1;le[0]==="echarts"&&(z=le[1],ue=!0),$.__isBuiltIn=ue,externalTransformMap.set(z,$)}function applyDataTransform($,z,ie){var le=normalizeToArray($),ue=le.length,pe="";ue||throwError(pe);for(var _e=0,Ce=ue;_e<Ce;_e++){var $e=le[_e];z=applySingleDataTransform($e,z),_e!==Ce-1&&(z.length=Math.max(z.length,1))}return z}function applySingleDataTransform($,z,ie,le){var ue="";z.length||throwError(ue),isObject$3($)||throwError(ue);var pe=$.type,_e=externalTransformMap.get(pe);_e||throwError(ue);var Ce=map$2(z,function(xe){return createExternalSource(xe,_e)}),$e=normalizeToArray(_e.transform({upstream:Ce[0],upstreamList:Ce,config:clone$3($.config)}));return map$2($e,function(xe,Ie){var ze="";isObject$3(xe)||throwError(ze),xe.data||throwError(ze);var Ue=detectSourceFormat(xe.data);isSupportedSourceFormat(Ue)||throwError(ze);var qe,Et=z[0];if(Et&&Ie===0&&!xe.dimensions){var Lt=Et.startIndex;Lt&&(xe.data=Et.data.slice(0,Lt).concat(xe.data)),qe={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:Lt,dimensions:Et.metaRawOption.dimensions}}else qe={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:xe.dimensions};return createSource(xe.data,qe,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,ie,le,ue){var pe=dataCtors[ie||"float"];if(ue){var _e=$[z],Ce=_e&&_e.length;if(Ce!==le){for(var $e=new pe(le),xe=0;xe<Ce;xe++)$e[xe]=_e[xe];$[z]=$e}}else $[z]=new pe(le)}var DataStore=function(){function $(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return $.prototype.initData=function(z,ie,le){this._provider=z,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var ue=z.getSource(),pe=this.defaultDimValueGetter=defaultDimValueGetters[ue.sourceFormat];this._dimValueGetter=le||pe,this._rawExtent=[],shouldRetrieveDataByName(ue),this._dimensions=map$2(ie,function(_e){return{type:_e.type,property:_e.property}}),this._initDataFromProvider(0,z.count())},$.prototype.getProvider=function(){return this._provider},$.prototype.getSource=function(){return this._provider.getSource()},$.prototype.ensureCalculationDimension=function(z,ie){var le=this._calcDimNameToIdx,ue=this._dimensions,pe=le.get(z);if(pe!=null){if(ue[pe].type===ie)return pe}else pe=ue.length;return ue[pe]={type:ie},le.set(z,pe),this._chunks[pe]=new dataCtors[ie||"float"](this._rawCount),this._rawExtent[pe]=getInitialExtent(),pe},$.prototype.collectOrdinalMeta=function(z,ie){var le=this._chunks[z],ue=this._dimensions[z],pe=this._rawExtent,_e=ue.ordinalOffset||0,Ce=le.length;_e===0&&(pe[z]=getInitialExtent());for(var $e=pe[z],xe=_e;xe<Ce;xe++){var Ie=le[xe]=ie.parseAndCollect(le[xe]);isNaN(Ie)||($e[0]=Math.min(Ie,$e[0]),$e[1]=Math.max(Ie,$e[1]))}ue.ordinalMeta=ie,ue.ordinalOffset=Ce,ue.type="ordinal"},$.prototype.getOrdinalMeta=function(z){var ie=this._dimensions[z],le=ie.ordinalMeta;return le},$.prototype.getDimensionProperty=function(z){var ie=this._dimensions[z];return ie&&ie.property},$.prototype.appendData=function(z){var ie=this._provider,le=this.count();ie.appendData(z);var ue=ie.count();return ie.persistent||(ue+=le),le<ue&&this._initDataFromProvider(le,ue,!0),[le,ue]},$.prototype.appendValues=function(z,ie){for(var le=this._chunks,ue=this._dimensions,pe=ue.length,_e=this._rawExtent,Ce=this.count(),$e=Ce+Math.max(z.length,ie||0),xe=0;xe<pe;xe++){var Ie=ue[xe];prepareStore(le,xe,Ie.type,$e,!0)}for(var ze=[],Ue=Ce;Ue<$e;Ue++)for(var qe=Ue-Ce,Et=0;Et<pe;Et++){var Ie=ue[Et],Lt=defaultDimValueGetters.arrayRows.call(this,z[qe]||ze,Ie.property,qe,Et);le[Et][Ue]=Lt;var hn=_e[Et];Lt<hn[0]&&(hn[0]=Lt),Lt>hn[1]&&(hn[1]=Lt)}return this._rawCount=this._count=$e,{start:Ce,end:$e}},$.prototype._initDataFromProvider=function(z,ie,le){for(var ue=this._provider,pe=this._chunks,_e=this._dimensions,Ce=_e.length,$e=this._rawExtent,xe=map$2(_e,function(_n){return _n.property}),Ie=0;Ie<Ce;Ie++){var ze=_e[Ie];$e[Ie]||($e[Ie]=getInitialExtent()),prepareStore(pe,Ie,ze.type,ie,le)}if(ue.fillStorage)ue.fillStorage(z,ie,pe,$e);else for(var Ue=[],qe=z;qe<ie;qe++){Ue=ue.getItem(qe,Ue);for(var Et=0;Et<Ce;Et++){var Lt=pe[Et],hn=this._dimValueGetter(Ue,xe[Et],qe,Et);Lt[qe]=hn;var vn=$e[Et];hn<vn[0]&&(vn[0]=hn),hn>vn[1]&&(vn[1]=hn)}}!ue.persistent&&ue.clean&&ue.clean(),this._rawCount=this._count=ie,this._extent=[]},$.prototype.count=function(){return this._count},$.prototype.get=function(z,ie){if(!(ie>=0&&ie<this._count))return NaN;var le=this._chunks[z];return le?le[this.getRawIndex(ie)]:NaN},$.prototype.getValues=function(z,ie){var le=[],ue=[];if(ie==null){ie=z,z=[];for(var pe=0;pe<this._dimensions.length;pe++)ue.push(pe)}else ue=z;for(var pe=0,_e=ue.length;pe<_e;pe++)le.push(this.get(ue[pe],ie));return le},$.prototype.getByRawIndex=function(z,ie){if(!(ie>=0&&ie<this._rawCount))return NaN;var le=this._chunks[z];return le?le[ie]:NaN},$.prototype.getSum=function(z){var ie=this._chunks[z],le=0;if(ie)for(var ue=0,pe=this.count();ue<pe;ue++){var _e=this.get(z,ue);isNaN(_e)||(le+=_e)}return le},$.prototype.getMedian=function(z){var ie=[];this.each([z],function(pe){isNaN(pe)||ie.push(pe)});var le=ie.sort(function(pe,_e){return pe-_e}),ue=this.count();return ue===0?0:ue%2===1?le[(ue-1)/2]:(le[ue/2]+le[ue/2-1])/2},$.prototype.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var ie=this._indices,le=ie[z];if(le!=null&&le<this._count&&le===z)return z;for(var ue=0,pe=this._count-1;ue<=pe;){var _e=(ue+pe)/2|0;if(ie[_e]<z)ue=_e+1;else if(ie[_e]>z)pe=_e-1;else return _e}return-1},$.prototype.indicesOfNearest=function(z,ie,le){var ue=this._chunks,pe=ue[z],_e=[];if(!pe)return _e;le==null&&(le=1/0);for(var Ce=1/0,$e=-1,xe=0,Ie=0,ze=this.count();Ie<ze;Ie++){var Ue=this.getRawIndex(Ie),qe=ie-pe[Ue],Et=Math.abs(qe);Et<=le&&((Et<Ce||Et===Ce&&qe>=0&&$e<0)&&(Ce=Et,$e=qe,xe=0),qe===$e&&(_e[xe++]=Ie))}return _e.length=xe,_e},$.prototype.getIndices=function(){var z,ie=this._indices;if(ie){var le=ie.constructor,ue=this._count;if(le===Array){z=new le(ue);for(var pe=0;pe<ue;pe++)z[pe]=ie[pe]}else z=new le(ie.buffer,0,ue)}else{var le=getIndicesCtor(this._rawCount);z=new le(this.count());for(var pe=0;pe<z.length;pe++)z[pe]=pe}return z},$.prototype.filter=function(z,ie){if(!this._count)return this;for(var le=this.clone(),ue=le.count(),pe=getIndicesCtor(le._rawCount),_e=new pe(ue),Ce=[],$e=z.length,xe=0,Ie=z[0],ze=le._chunks,Ue=0;Ue<ue;Ue++){var qe=void 0,Et=le.getRawIndex(Ue);if($e===0)qe=ie(Ue);else if($e===1){var Lt=ze[Ie][Et];qe=ie(Lt,Ue)}else{for(var hn=0;hn<$e;hn++)Ce[hn]=ze[z[hn]][Et];Ce[hn]=Ue,qe=ie.apply(null,Ce)}qe&&(_e[xe++]=Et)}return xe<ue&&(le._indices=_e),le._count=xe,le._extent=[],le._updateGetRawIdx(),le},$.prototype.selectRange=function(z){var ie=this.clone(),le=ie._count;if(!le)return this;var ue=keys(z),pe=ue.length;if(!pe)return this;var _e=ie.count(),Ce=getIndicesCtor(ie._rawCount),$e=new Ce(_e),xe=0,Ie=ue[0],ze=z[Ie][0],Ue=z[Ie][1],qe=ie._chunks,Et=!1;if(!ie._indices){var Lt=0;if(pe===1){for(var hn=qe[ue[0]],vn=0;vn<le;vn++){var _n=hn[vn];(_n>=ze&&_n<=Ue||isNaN(_n))&&($e[xe++]=Lt),Lt++}Et=!0}else if(pe===2){for(var hn=qe[ue[0]],bn=qe[ue[1]],Sn=z[ue[1]][0],Cn=z[ue[1]][1],vn=0;vn<le;vn++){var _n=hn[vn],En=bn[vn];(_n>=ze&&_n<=Ue||isNaN(_n))&&(En>=Sn&&En<=Cn||isNaN(En))&&($e[xe++]=Lt),Lt++}Et=!0}}if(!Et)if(pe===1)for(var vn=0;vn<_e;vn++){var $n=ie.getRawIndex(vn),_n=qe[ue[0]][$n];(_n>=ze&&_n<=Ue||isNaN(_n))&&($e[xe++]=$n)}else for(var vn=0;vn<_e;vn++){for(var wn=!0,$n=ie.getRawIndex(vn),Tn=0;Tn<pe;Tn++){var xn=ue[Tn],_n=qe[xn][$n];(_n<z[xn][0]||_n>z[xn][1])&&(wn=!1)}wn&&($e[xe++]=ie.getRawIndex(vn))}return xe<_e&&(ie._indices=$e),ie._count=xe,ie._extent=[],ie._updateGetRawIdx(),ie},$.prototype.map=function(z,ie){var le=this.clone(z);return this._updateDims(le,z,ie),le},$.prototype.modify=function(z,ie){this._updateDims(this,z,ie)},$.prototype._updateDims=function(z,ie,le){for(var ue=z._chunks,pe=[],_e=ie.length,Ce=z.count(),$e=[],xe=z._rawExtent,Ie=0;Ie<ie.length;Ie++)xe[ie[Ie]]=getInitialExtent();for(var ze=0;ze<Ce;ze++){for(var Ue=z.getRawIndex(ze),qe=0;qe<_e;qe++)$e[qe]=ue[ie[qe]][Ue];$e[_e]=ze;var Et=le&&le.apply(null,$e);if(Et!=null){typeof Et!="object"&&(pe[0]=Et,Et=pe);for(var Ie=0;Ie<Et.length;Ie++){var Lt=ie[Ie],hn=Et[Ie],vn=xe[Lt],_n=ue[Lt];_n&&(_n[Ue]=hn),hn<vn[0]&&(vn[0]=hn),hn>vn[1]&&(vn[1]=hn)}}}},$.prototype.lttbDownSample=function(z,ie){var le=this.clone([z],!0),ue=le._chunks,pe=ue[z],_e=this.count(),Ce=0,$e=Math.floor(1/ie),xe=this.getRawIndex(0),Ie,ze,Ue,qe=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(_e/$e)+2)*2,_e));qe[Ce++]=xe;for(var Et=1;Et<_e-1;Et+=$e){for(var Lt=Math.min(Et+$e,_e-1),hn=Math.min(Et+$e*2,_e),vn=(hn+Lt)/2,_n=0,bn=Lt;bn<hn;bn++){var Sn=this.getRawIndex(bn),Cn=pe[Sn];isNaN(Cn)||(_n+=Cn)}_n/=hn-Lt;var En=Et,$n=Math.min(Et+$e,_e),wn=Et-1,Tn=pe[xe];Ie=-1,Ue=En;for(var xn=-1,Pn=0,bn=En;bn<$n;bn++){var Sn=this.getRawIndex(bn),Cn=pe[Sn];if(isNaN(Cn)){Pn++,xn<0&&(xn=Sn);continue}ze=Math.abs((wn-vn)*(Cn-Tn)-(wn-bn)*(_n-Tn)),ze>Ie&&(Ie=ze,Ue=Sn)}Pn>0&&Pn<$n-En&&(qe[Ce++]=Math.min(xn,Ue),Ue=Math.max(xn,Ue)),qe[Ce++]=Ue,xe=Ue}return qe[Ce++]=this.getRawIndex(_e-1),le._count=Ce,le._indices=qe,le.getRawIndex=this._getRawIdx,le},$.prototype.downSample=function(z,ie,le,ue){for(var pe=this.clone([z],!0),_e=pe._chunks,Ce=[],$e=Math.floor(1/ie),xe=_e[z],Ie=this.count(),ze=pe._rawExtent[z]=getInitialExtent(),Ue=new(getIndicesCtor(this._rawCount))(Math.ceil(Ie/$e)),qe=0,Et=0;Et<Ie;Et+=$e){$e>Ie-Et&&($e=Ie-Et,Ce.length=$e);for(var Lt=0;Lt<$e;Lt++){var hn=this.getRawIndex(Et+Lt);Ce[Lt]=xe[hn]}var vn=le(Ce),_n=this.getRawIndex(Math.min(Et+ue(Ce,vn)||0,Ie-1));xe[_n]=vn,vn<ze[0]&&(ze[0]=vn),vn>ze[1]&&(ze[1]=vn),Ue[qe++]=_n}return pe._count=qe,pe._indices=Ue,pe._updateGetRawIdx(),pe},$.prototype.each=function(z,ie){if(this._count)for(var le=z.length,ue=this._chunks,pe=0,_e=this.count();pe<_e;pe++){var Ce=this.getRawIndex(pe);switch(le){case 0:ie(pe);break;case 1:ie(ue[z[0]][Ce],pe);break;case 2:ie(ue[z[0]][Ce],ue[z[1]][Ce],pe);break;default:for(var $e=0,xe=[];$e<le;$e++)xe[$e]=ue[z[$e]][Ce];xe[$e]=pe,ie.apply(null,xe)}}},$.prototype.getDataExtent=function(z){var ie=this._chunks[z],le=getInitialExtent();if(!ie)return le;var ue=this.count(),pe=!this._indices,_e;if(pe)return this._rawExtent[z].slice();if(_e=this._extent[z],_e)return _e.slice();_e=le;for(var Ce=_e[0],$e=_e[1],xe=0;xe<ue;xe++){var Ie=this.getRawIndex(xe),ze=ie[Ie];ze<Ce&&(Ce=ze),ze>$e&&($e=ze)}return _e=[Ce,$e],this._extent[z]=_e,_e},$.prototype.getRawDataItem=function(z){var ie=this.getRawIndex(z);if(this._provider.persistent)return this._provider.getItem(ie);for(var le=[],ue=this._chunks,pe=0;pe<ue.length;pe++)le.push(ue[pe][ie]);return le},$.prototype.clone=function(z,ie){var le=new $,ue=this._chunks,pe=z&&reduce(z,function(Ce,$e){return Ce[$e]=!0,Ce},{});if(pe)for(var _e=0;_e<ue.length;_e++)le._chunks[_e]=pe[_e]?cloneChunk(ue[_e]):ue[_e];else le._chunks=ue;return this._copyCommonProps(le),ie||(le._indices=this._cloneIndices()),le._updateGetRawIdx(),le},$.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,ie=void 0;if(z===Array){var le=this._indices.length;ie=new z(le);for(var ue=0;ue<le;ue++)ie[ue]=this._indices[ue]}else ie=new z(this._indices);return ie}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(ie,le,ue,pe){return parseDataValue(ie[pe],this._dimensions[pe])}defaultDimValueGetters={arrayRows:z,objectRows:function(ie,le,ue,pe){return parseDataValue(ie[le],this._dimensions[pe])},keyedColumns:z,original:function(ie,le,ue,pe){var _e=ie&&(ie.value==null?ie:ie.value);return parseDataValue(_e instanceof Array?_e[pe]:_e,this._dimensions[pe])},typedArray:function(ie,le,ue,pe){return ie[pe]}}}(),$}();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,ie){this._sourceList=z,this._upstreamSignList=ie,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,ie=this._getUpstreamSourceManagers(),le=!!ie.length,ue,pe;if(isSeries(z)){var _e=z,Ce=void 0,$e=void 0,xe=void 0;if(le){var Ie=ie[0];Ie.prepareSource(),xe=Ie.getSource(),Ce=xe.data,$e=xe.sourceFormat,pe=[Ie._getVersionSign()]}else Ce=_e.get("data",!0),$e=isTypedArray(Ce)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,pe=[];var ze=this._getSourceMetaRawOption()||{},Ue=xe&&xe.metaRawOption||{},qe=retrieve2(ze.seriesLayoutBy,Ue.seriesLayoutBy)||null,Et=retrieve2(ze.sourceHeader,Ue.sourceHeader),Lt=retrieve2(ze.dimensions,Ue.dimensions),hn=qe!==Ue.seriesLayoutBy||!!Et!=!!Ue.sourceHeader||Lt;ue=hn?[createSource(Ce,{seriesLayoutBy:qe,sourceHeader:Et,dimensions:Lt},$e)]:[]}else{var vn=z;if(le){var _n=this._applyTransform(ie);ue=_n.sourceList,pe=_n.upstreamSignList}else{var bn=vn.get("source",!0);ue=[createSource(bn,this._getSourceMetaRawOption(),null)],pe=[]}}this._setLocalSource(ue,pe)},$.prototype._applyTransform=function(z){var ie=this._sourceHost,le=ie.get("transform",!0),ue=ie.get("fromTransformResult",!0);if(ue!=null){var pe="";z.length!==1&&doThrow(pe)}var _e,Ce=[],$e=[];return each$c(z,function(xe){xe.prepareSource();var Ie=xe.getSource(ue||0),ze="";ue!=null&&!Ie&&doThrow(ze),Ce.push(Ie),$e.push(xe._getVersionSign())}),le?_e=applyDataTransform(le,Ce,{datasetIndex:ie.componentIndex}):ue!=null&&(_e=[cloneSourceShallow(Ce[0])]),{sourceList:_e,upstreamSignList:$e}},$.prototype._isDirty=function(){if(this._dirty)return!0;for(var z=this._getUpstreamSourceManagers(),ie=0;ie<z.length;ie++){var le=z[ie];if(le._isDirty()||this._upstreamSignList[ie]!==le._getVersionSign())return!0}},$.prototype.getSource=function(z){z=z||0;var ie=this._sourceList[z];if(!ie){var le=this._getUpstreamSourceManagers();return le[0]&&le[0].getSource(z)}return ie},$.prototype.getSharedDataStore=function(z){var ie=z.makeStoreSchema();return this._innerGetDataStore(ie.dimensions,z.source,ie.hash)},$.prototype._innerGetDataStore=function(z,ie,le){var ue=0,pe=this._storeList,_e=pe[ue];_e||(_e=pe[ue]={});var Ce=_e[le];if(!Ce){var $e=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&$e?Ce=$e._innerGetDataStore(z,ie,le):(Ce=new DataStore$1,Ce.initData(new DefaultDataProvider(ie,z.length),z)),_e[le]=Ce}return Ce},$.prototype._getUpstreamSourceManagers=function(){var z=this._sourceHost;if(isSeries(z)){var ie=querySeriesUpstreamDatasetModel(z);return ie?[ie.getSourceManager()]:[]}else return map$2(queryDatasetUpstreamDatasetModels(z),function(le){return le.getSourceManager()})},$.prototype._getSourceMetaRawOption=function(){var z=this._sourceHost,ie,le,ue;if(isSeries(z))ie=z.get("seriesLayoutBy",!0),le=z.get("sourceHeader",!0),ue=z.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var pe=z;ie=pe.get("seriesLayoutBy",!0),le=pe.get("sourceHeader",!0),ue=pe.get("dimensions",!0)}return{seriesLayoutBy:ie,sourceHeader:le,dimensions:ue}},$}();function isSeries($){return $.mainType==="series"}function doThrow($){throw new Error($)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle($,z){var ie=$.color||"#6e7079",le=$.fontSize||12,ue=$.fontWeight||"400",pe=$.color||"#464646",_e=$.fontSize||14,Ce=$.fontWeight||"900";return z==="html"?{nameStyle:"font-size:"+encodeHTML(le+"")+"px;color:"+encodeHTML(ie)+";font-weight:"+encodeHTML(ue+""),valueStyle:"font-size:"+encodeHTML(_e+"")+"px;color:"+encodeHTML(pe)+";font-weight:"+encodeHTML(Ce+"")}:{nameStyle:{fontSize:le,fill:ie,fontWeight:ue},valueStyle:{fontSize:_e,fill:pe,fontWeight:Ce}}}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,ie=$.blocks.length,le=ie>1||ie>0&&!$.noHeader;return each$c($.blocks,function(ue){var pe=getBlockGapLevel(ue);pe>=z&&(z=pe+ +(le&&(!pe||isSectionFragment(ue)&&!ue.noHeader)))}),z}return 0}function buildSection($,z,ie,le){var ue=z.noHeader,pe=getGap(getBlockGapLevel(z)),_e=[],Ce=z.blocks||[];assert(!Ce||isArray$1(Ce)),Ce=Ce||[];var $e=$.orderMode;if(z.sortBlocks&&$e){Ce=Ce.slice();var xe={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(xe,$e)){var Ie=new SortOrderComparator(xe[$e],null);Ce.sort(function(Et,Lt){return Ie.evaluate(Et.sortParam,Lt.sortParam)})}else $e==="seriesDesc"&&Ce.reverse()}each$c(Ce,function(Et,Lt){var hn=z.valueFormatter,vn=getBuilder(Et)(hn?extend(extend({},$),{valueFormatter:hn}):$,Et,Lt>0?pe.html:0,le);vn!=null&&_e.push(vn)});var ze=$.renderMode==="richText"?_e.join(pe.richText):wrapBlockHTML(_e.join(""),ue?ie:pe.html);if(ue)return ze;var Ue=makeValueReadable(z.header,"ordinal",$.useUTC),qe=getTooltipTextStyle(le,$.renderMode).nameStyle;return $.renderMode==="richText"?wrapInlineNameRichText($,Ue,qe)+pe.richText+ze:wrapBlockHTML('<div style="'+qe+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(Ue)+"</div>"+ze,ie)}function buildNameValue($,z,ie,le){var ue=$.renderMode,pe=z.noName,_e=z.noValue,Ce=!z.markerType,$e=z.name,xe=$.useUTC,Ie=z.valueFormatter||$.valueFormatter||function(Sn){return Sn=isArray$1(Sn)?Sn:[Sn],map$2(Sn,function(Cn,En){return makeValueReadable(Cn,isArray$1(qe)?qe[En]:qe,xe)})};if(!(pe&&_e)){var ze=Ce?"":$.markupStyleCreator.makeTooltipMarker(z.markerType,z.markerColor||"#333",ue),Ue=pe?"":makeValueReadable($e,"ordinal",xe),qe=z.valueType,Et=_e?[]:Ie(z.value),Lt=!Ce||!pe,hn=!Ce&&pe,vn=getTooltipTextStyle(le,ue),_n=vn.nameStyle,bn=vn.valueStyle;return ue==="richText"?(Ce?"":ze)+(pe?"":wrapInlineNameRichText($,Ue,_n))+(_e?"":wrapInlineValueRichText($,Et,Lt,hn,bn)):wrapBlockHTML((Ce?"":ze)+(pe?"":wrapInlineNameHTML(Ue,!Ce,_n))+(_e?"":wrapInlineValueHTML(Et,Lt,hn,bn)),ie)}}function buildTooltipMarkup($,z,ie,le,ue,pe){if($){var _e=getBuilder($),Ce={useUTC:ue,renderMode:ie,orderMode:le,markupStyleCreator:z,valueFormatter:$.valueFormatter};return _e(Ce,$,0,pe)}}function getGap($){return{html:HTML_GAPS[$],richText:RICH_TEXT_GAPS[$]}}function wrapBlockHTML($,z){var ie='<div style="clear:both"></div>',le="margin: "+z+"px 0 0";return'<div style="'+le+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+$+ie+"</div>"}function wrapInlineNameHTML($,z,ie){var le=z?"margin-left:2px":"";return'<span style="'+ie+";"+le+'">'+encodeHTML($)+"</span>"}function wrapInlineValueHTML($,z,ie,le){var ue=ie?"10px":"20px",pe=z?"float:right;margin-left:"+ue:"";return $=isArray$1($)?$:[$],'<span style="'+pe+";"+le+'">'+map$2($,function(_e){return encodeHTML(_e)}).join("&nbsp;&nbsp;")+"</span>"}function wrapInlineNameRichText($,z,ie){return $.markupStyleCreator.wrapRichTextStyle(z,ie)}function wrapInlineValueRichText($,z,ie,le,ue){var pe=[ue],_e=le?10:20;return ie&&pe.push({padding:[0,0,0,_e],align:"right"}),$.markupStyleCreator.wrapRichTextStyle(isArray$1(z)?z.join(" "):z,pe)}function retrieveVisualColorForTooltipMarker($,z){var ie=$.getData().getItemVisual(z,"style"),le=ie[$.visualDrawType];return convertToColorString(le)}function getPaddingFromTooltipModel($,z){var ie=$.get("padding");return ie??(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,ie,le){var ue=le==="richText"?this._generateStyleName():null,pe=getTooltipMarker({color:ie,type:z,renderMode:le,markerId:ue});return isString(pe)?pe:(this.richTextStyles[ue]=pe.style,pe.content)},$.prototype.wrapRichTextStyle=function(z,ie){var le={};isArray$1(ie)?each$c(ie,function(pe){return extend(le,pe)}):extend(le,ie);var ue=this._generateStyleName();return this.richTextStyles[ue]=le,"{"+ue+"|"+z+"}"},$}();function defaultSeriesFormatTooltip($){var z=$.series,ie=$.dataIndex,le=$.multipleSeries,ue=z.getData(),pe=ue.mapDimensionsAll("defaultedTooltip"),_e=pe.length,Ce=z.getRawValue(ie),$e=isArray$1(Ce),xe=retrieveVisualColorForTooltipMarker(z,ie),Ie,ze,Ue,qe;if(_e>1||$e&&!_e){var Et=formatTooltipArrayValue(Ce,z,ie,pe,xe);Ie=Et.inlineValues,ze=Et.inlineValueTypes,Ue=Et.blocks,qe=Et.inlineValues[0]}else if(_e){var Lt=ue.getDimensionInfo(pe[0]);qe=Ie=retrieveRawValue(ue,ie,pe[0]),ze=Lt.type}else qe=Ie=$e?Ce[0]:Ce;var hn=isNameSpecified(z),vn=hn&&z.name||"",_n=ue.getName(ie),bn=le?vn:_n;return createTooltipMarkup("section",{header:vn,noHeader:le||!hn,sortParam:qe,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:xe,name:bn,noName:!trim$1(bn),value:Ie,valueType:ze})].concat(Ue||[])})}function formatTooltipArrayValue($,z,ie,le,ue){var pe=z.getData(),_e=reduce($,function(ze,Ue,qe){var Et=pe.getDimensionInfo(qe);return ze=ze||Et&&Et.tooltip!==!1&&Et.displayName!=null},!1),Ce=[],$e=[],xe=[];le.length?each$c(le,function(ze){Ie(retrieveRawValue(pe,ie,ze),ze)}):each$c($,Ie);function Ie(ze,Ue){var qe=pe.getDimensionInfo(Ue);!qe||qe.otherDims.tooltip===!1||(_e?xe.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:ue,name:qe.displayName,value:ze,valueType:qe.type})):(Ce.push(ze),$e.push(qe.type)))}return{inlineValues:Ce,inlineValueTypes:$e,blocks:xe}}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 ie=$!==null&&$.apply(this,arguments)||this;return ie._selectedDataIndicesMap={},ie}return z.prototype.init=function(ie,le,ue){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(ie,ue);var pe=inner$b(this).sourceManager=new SourceManager(this);pe.prepareSource();var _e=this.getInitialData(ie,ue);wrapData(_e,this),this.dataTask.context.data=_e,inner$b(this).dataBeforeProcessed=_e,autoSeriesName(this),this._initSelectedMapFromData(_e)},z.prototype.mergeDefaultAndTheme=function(ie,le){var ue=fetchLayoutMode(this),pe=ue?getLayoutParams(ie):{},_e=this.subType;ComponentModel$1.hasClass(_e)&&(_e+="Series"),merge(ie,le.getTheme().get(this.subType)),merge(ie,this.getDefaultOption()),defaultEmphasis(ie,"label",["show"]),this.fillDataTextStyle(ie.data),ue&&mergeLayoutParam(ie,pe,ue)},z.prototype.mergeOption=function(ie,le){ie=merge(this.option,ie,!0),this.fillDataTextStyle(ie.data);var ue=fetchLayoutMode(this);ue&&mergeLayoutParam(this.option,ie,ue);var pe=inner$b(this).sourceManager;pe.dirty(),pe.prepareSource();var _e=this.getInitialData(ie,le);wrapData(_e,this),this.dataTask.dirty(),this.dataTask.context.data=_e,inner$b(this).dataBeforeProcessed=_e,autoSeriesName(this),this._initSelectedMapFromData(_e)},z.prototype.fillDataTextStyle=function(ie){if(ie&&!isTypedArray(ie))for(var le=["show"],ue=0;ue<ie.length;ue++)ie[ue]&&ie[ue].label&&defaultEmphasis(ie[ue],"label",le)},z.prototype.getInitialData=function(ie,le){},z.prototype.appendData=function(ie){var le=this.getRawData();le.appendData(ie.data)},z.prototype.getData=function(ie){var le=getCurrentTask(this);if(le){var ue=le.context.data;return ie==null?ue:ue.getLinkedData(ie)}else return inner$b(this).data},z.prototype.getAllData=function(){var ie=this.getData();return ie&&ie.getLinkedDataAll?ie.getLinkedDataAll():[{data:ie}]},z.prototype.setData=function(ie){var le=getCurrentTask(this);if(le){var ue=le.context;ue.outputData=ie,le!==this.dataTask&&(ue.data=ie)}inner$b(this).data=ie},z.prototype.getEncode=function(){var ie=this.get("encode",!0);if(ie)return createHashMap(ie)},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 ie=this.get("colorBy");return ie||"series"},z.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},z.prototype.getBaseAxis=function(){var ie=this.coordinateSystem;return ie&&ie.getBaseAxis&&ie.getBaseAxis()},z.prototype.formatTooltip=function(ie,le,ue){return defaultSeriesFormatTooltip({series:this,dataIndex:ie,multipleSeries:le})},z.prototype.isAnimationEnabled=function(){var ie=this.ecModel;if(env$1.node&&!(ie&&ie.ssr))return!1;var le=this.getShallow("animation");return le&&this.getData().count()>this.getShallow("animationThreshold")&&(le=!1),!!le},z.prototype.restoreData=function(){this.dataTask.dirty()},z.prototype.getColorFromPalette=function(ie,le,ue){var pe=this.ecModel,_e=PaletteMixin.prototype.getColorFromPalette.call(this,ie,le,ue);return _e||(_e=pe.getColorFromPalette(ie,le,ue)),_e},z.prototype.coordDimToDataDim=function(ie){return this.getRawData().mapDimensionsAll(ie)},z.prototype.getProgressive=function(){return this.get("progressive")},z.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},z.prototype.select=function(ie,le){this._innerSelect(this.getData(le),ie)},z.prototype.unselect=function(ie,le){var ue=this.option.selectedMap;if(ue){var pe=this.option.selectedMode,_e=this.getData(le);if(pe==="series"||ue==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var Ce=0;Ce<ie.length;Ce++){var $e=ie[Ce],xe=getSelectionKey(_e,$e);ue[xe]=!1,this._selectedDataIndicesMap[xe]=-1}}},z.prototype.toggleSelect=function(ie,le){for(var ue=[],pe=0;pe<ie.length;pe++)ue[0]=ie[pe],this.isSelected(ie[pe],le)?this.unselect(ue,le):this.select(ue,le)},z.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var ie=this._selectedDataIndicesMap,le=keys(ie),ue=[],pe=0;pe<le.length;pe++){var _e=ie[le[pe]];_e>=0&&ue.push(_e)}return ue},z.prototype.isSelected=function(ie,le){var ue=this.option.selectedMap;if(!ue)return!1;var pe=this.getData(le);return(ue==="all"||ue[getSelectionKey(pe,ie)])&&!pe.getItemModel(ie).get(["select","disabled"])},z.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var ie=this.option.universalTransition;return ie?ie===!0?!0:ie&&ie.enabled:!1},z.prototype._innerSelect=function(ie,le){var ue,pe,_e=this.option,Ce=_e.selectedMode,$e=le.length;if(!(!Ce||!$e)){if(Ce==="series")_e.selectedMap="all";else if(Ce==="multiple"){isObject$3(_e.selectedMap)||(_e.selectedMap={});for(var xe=_e.selectedMap,Ie=0;Ie<$e;Ie++){var ze=le[Ie],Ue=getSelectionKey(ie,ze);xe[Ue]=!0,this._selectedDataIndicesMap[Ue]=ie.getRawIndex(ze)}}else if(Ce==="single"||Ce===!0){var qe=le[$e-1],Ue=getSelectionKey(ie,qe);_e.selectedMap=(ue={},ue[Ue]=!0,ue),this._selectedDataIndicesMap=(pe={},pe[Ue]=ie.getRawIndex(qe),pe)}}},z.prototype._initSelectedMapFromData=function(ie){if(!this.option.selectedMap){var le=[];ie.hasItemOption&&ie.each(function(ue){var pe=ie.getRawDataItem(ue);pe&&pe.selected&&le.push(ue)}),le.length>0&&this._innerSelect(ie,le)}},z.registerClass=function(ie){return ComponentModel$1.registerClass(ie)},z.protoInitialize=function(){var ie=z.prototype;ie.type="series.__base__",ie.seriesIndex=0,ie.ignoreStyleOnData=!1,ie.hasSymbolVisual=!1,ie.defaultSymbol="circle",ie.visualStyleAccessPath="itemStyle",ie.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(),ie=z.mapDimensionsAll("seriesName"),le=[];return each$c(ie,function(ue){var pe=z.getDimensionInfo(ue);pe.displayName&&le.push(pe.displayName)}),le.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(ie){$.wrapMethod(ie,curry$1(onDataChange,z))})}function onDataChange($,z){var ie=getCurrentTask($);return ie&&ie.setOutputEnd((z||this).count()),z}function getCurrentTask($){var z=($.ecModel||{}).scheduler,ie=z&&z.getPipeline($.uid);if(ie){var le=ie.currentTask;if(le){var ue=le.agentStubMap;ue&&(le=ue.get($.uid))}return le}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewComponent")}return $.prototype.init=function(z,ie){},$.prototype.render=function(z,ie,le,ue){},$.prototype.dispose=function(z,ie){},$.prototype.updateView=function(z,ie,le,ue){},$.prototype.updateLayout=function(z,ie,le,ue){},$.prototype.updateVisual=function(z,ie,le,ue){},$.prototype.toggleBlurSeries=function(z,ie,le){},$.prototype.eachRendered=function(z){var ie=this.group;ie&&ie.traverse(z)},$}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var $=makeInner();return function(z){var ie=$(z),le=z.pipelineContext,ue=!!ie.large,pe=!!ie.progressiveRender,_e=ie.large=!!(le&&le.large),Ce=ie.progressiveRender=!!(le&&le.progressiveRender);return(ue!==_e||pe!==Ce)&&"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,ie){},$.prototype.render=function(z,ie,le,ue){},$.prototype.highlight=function(z,ie,le,ue){var pe=z.getData(ue&&ue.dataType);pe&&toggleHighlight(pe,ue,"emphasis")},$.prototype.downplay=function(z,ie,le,ue){var pe=z.getData(ue&&ue.dataType);pe&&toggleHighlight(pe,ue,"normal")},$.prototype.remove=function(z,ie){this.group.removeAll()},$.prototype.dispose=function(z,ie){},$.prototype.updateView=function(z,ie,le,ue){this.render(z,ie,le,ue)},$.prototype.updateLayout=function(z,ie,le,ue){this.render(z,ie,le,ue)},$.prototype.updateVisual=function(z,ie,le,ue){this.render(z,ie,le,ue)},$.prototype.eachRendered=function(z){traverseElements(this.group,z)},$.markUpdateMethod=function(z,ie){inner$a(z).updateMethod=ie},$.protoInitialize=function(){var z=$.prototype;z.type="chart"}(),$}();function elSetState($,z,ie){$&&isHighDownDispatcher($)&&(z==="emphasis"?enterEmphasis:leaveEmphasis)($,ie)}function toggleHighlight($,z,ie){var le=queryDataIndex($,z),ue=z&&z.highlightKey!=null?getHighlightDigit(z.highlightKey):null;le!=null?each$c(normalizeToArray(le),function(pe){elSetState($.getItemGraphicEl(pe),ie,ue)}):$.eachItemGraphicEl(function(pe){elSetState(pe,ie,ue)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan($){return renderPlanner($.model)}function renderTaskReset($){var z=$.model,ie=$.ecModel,le=$.api,ue=$.payload,pe=z.pipelineContext.progressiveRender,_e=$.view,Ce=ue&&inner$a(ue).updateMethod,$e=pe?"incrementalPrepareRender":Ce&&_e[Ce]?Ce:"render";return $e!=="render"&&_e[$e](z,ie,le,ue),progressMethodMap[$e]}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,ie){var le,ue=0,pe=0,_e=null,Ce,$e,xe,Ie;z=z||0;function ze(){pe=new Date().getTime(),_e=null,$.apply($e,xe||[])}var Ue=function(){for(var qe=[],Et=0;Et<arguments.length;Et++)qe[Et]=arguments[Et];le=new Date().getTime(),$e=this,xe=qe;var Lt=Ie||z,hn=Ie||ie;Ie=null,Ce=le-(hn?ue:pe)-Lt,clearTimeout(_e),hn?_e=setTimeout(ze,Lt):Ce>=0?ze():_e=setTimeout(ze,-Ce),ue=le};return Ue.clear=function(){_e&&(clearTimeout(_e),_e=null)},Ue.debounceNextCall=function(qe){Ie=qe},Ue}function createOrUpdate($,z,ie,le){var ue=$[z];if(ue){var pe=ue[ORIGIN_METHOD]||ue,_e=ue[THROTTLE_TYPE],Ce=ue[RATE];if(Ce!==ie||_e!==le){if(ie==null||!le)return $[z]=pe;ue=$[z]=throttle(pe,ie,le==="debounce"),ue[ORIGIN_METHOD]=pe,ue[THROTTLE_TYPE]=le,ue[RATE]=ie}return ue}}function clear$1($,z){var ie=$[z];ie&&ie[ORIGIN_METHOD]&&(ie.clear&&ie.clear(),$[z]=ie[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 ie=$.visualStyleMapper||defaultStyleMappers[z];return ie||(console.warn("Unknown style type '"+z+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey($,z){var ie=$.visualDrawType||defaultColorKey[z];return ie||(console.warn("Unknown style type '"+z+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){var ie=$.getData(),le=$.visualStyleAccessPath||"itemStyle",ue=$.getModel(le),pe=getStyleMapper($,le),_e=pe(ue),Ce=ue.getShallow("decal");Ce&&(ie.setVisual("decal",Ce),Ce.dirty=!0);var $e=getDefaultColorKey($,le),xe=_e[$e],Ie=isFunction(xe)?xe:null,ze=_e.fill==="auto"||_e.stroke==="auto";if(!_e[$e]||Ie||ze){var Ue=$.getColorFromPalette($.name,null,z.getSeriesCount());_e[$e]||(_e[$e]=Ue,ie.setVisual("colorFromPalette",!0)),_e.fill=_e.fill==="auto"||isFunction(_e.fill)?Ue:_e.fill,_e.stroke=_e.stroke==="auto"||isFunction(_e.stroke)?Ue:_e.stroke}if(ie.setVisual("style",_e),ie.setVisual("drawType",$e),!z.isSeriesFiltered($)&&Ie)return ie.setVisual("colorFromPalette",!1),{dataEach:function(qe,Et){var Lt=$.getDataParams(Et),hn=extend({},_e);hn[$e]=Ie(Lt),qe.setItemVisual(Et,"style",hn)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){if(!($.ignoreStyleOnData||z.isSeriesFiltered($))){var ie=$.getData(),le=$.visualStyleAccessPath||"itemStyle",ue=getStyleMapper($,le),pe=ie.getVisual("drawType");return{dataEach:ie.hasItemOption?function(_e,Ce){var $e=_e.getRawDataItem(Ce);if($e&&$e[le]){sharedModel.option=$e[le];var xe=ue(sharedModel),Ie=_e.ensureUniqueItemVisual(Ce,"style");extend(Ie,xe),sharedModel.option.decal&&(_e.setItemVisual(Ce,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),pe in xe&&_e.setItemVisual(Ce,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function($){var z=createHashMap();$.eachSeries(function(ie){var le=ie.getColorBy();if(!ie.isColorBySeries()){var ue=ie.type+"-"+le,pe=z.get(ue);pe||(pe={},z.set(ue,pe)),inner$9(ie).scope=pe}}),$.eachSeries(function(ie){if(!(ie.isColorBySeries()||$.isSeriesFiltered(ie))){var le=ie.getRawData(),ue={},pe=ie.getData(),_e=inner$9(ie).scope,Ce=ie.visualStyleAccessPath||"itemStyle",$e=getDefaultColorKey(ie,Ce);pe.each(function(xe){var Ie=pe.getRawIndex(xe);ue[Ie]=xe}),le.each(function(xe){var Ie=ue[xe],ze=pe.getItemVisual(Ie,"colorFromPalette");if(ze){var Ue=pe.ensureUniqueItemVisual(Ie,"style"),qe=le.getName(xe)||xe+"",Et=le.count();Ue[$e]=ie.getColorFromPalette(qe,_e,Et)}})}})}},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 ie=new Group$3,le=new Rect$2({style:{fill:z.maskColor},zlevel:z.zlevel,z:1e4});ie.add(le);var ue=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}),pe=new Rect$2({style:{fill:"none"},textContent:ue,textConfig:{position:"right",distance:10},zlevel:z.zlevel,z:10001});ie.add(pe);var _e;return z.showSpinner&&(_e=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}),_e.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),_e.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),ie.add(_e)),ie.resize=function(){var Ce=ue.getBoundingRect().width,$e=z.showSpinner?z.spinnerRadius:0,xe=($.getWidth()-$e*2-(z.showSpinner&&Ce?10:0)-Ce)/2-(z.showSpinner&&Ce?0:5+Ce/2)+(z.showSpinner?0:Ce/2)+(Ce?0:$e),Ie=$.getHeight()/2;z.showSpinner&&_e.setShape({cx:xe,cy:Ie}),pe.setShape({x:xe-$e,y:Ie-$e,width:$e*2,height:$e*2}),le.setShape({x:0,y:0,width:$.getWidth(),height:$.getHeight()})},ie.resize(),ie}var Scheduler=function(){function $(z,ie,le,ue){this._stageTaskMap=createHashMap(),this.ecInstance=z,this.api=ie,le=this._dataProcessorHandlers=le.slice(),ue=this._visualHandlers=ue.slice(),this._allHandlers=le.concat(ue)}return $.prototype.restoreData=function(z,ie){z.restoreData(ie),this._stageTaskMap.each(function(le){var ue=le.overallTask;ue&&ue.dirty()})},$.prototype.getPerformArgs=function(z,ie){if(z.__pipeline){var le=this._pipelineMap.get(z.__pipeline.id),ue=le.context,pe=!ie&&le.progressiveEnabled&&(!ue||ue.progressiveRender)&&z.__idxInPipeline>le.blockIndex,_e=pe?le.step:null,Ce=ue&&ue.modDataCount,$e=Ce!=null?Math.ceil(Ce/_e):null;return{step:_e,modBy:$e,modDataCount:Ce}}},$.prototype.getPipeline=function(z){return this._pipelineMap.get(z)},$.prototype.updateStreamModes=function(z,ie){var le=this._pipelineMap.get(z.uid),ue=z.getData(),pe=ue.count(),_e=le.progressiveEnabled&&ie.incrementalPrepareRender&&pe>=le.threshold,Ce=z.get("large")&&pe>=z.get("largeThreshold"),$e=z.get("progressiveChunkMode")==="mod"?pe:null;z.pipelineContext=le.context={progressiveRender:_e,modDataCount:$e,large:Ce}},$.prototype.restorePipelines=function(z){var ie=this,le=ie._pipelineMap=createHashMap();z.eachSeries(function(ue){var pe=ue.getProgressive(),_e=ue.uid;le.set(_e,{id:_e,head:null,tail:null,threshold:ue.getProgressiveThreshold(),progressiveEnabled:pe&&!(ue.preventIncremental&&ue.preventIncremental()),blockIndex:-1,step:Math.round(pe||700),count:0}),ie._pipe(ue,ue.dataTask)})},$.prototype.prepareStageTasks=function(){var z=this._stageTaskMap,ie=this.api.getModel(),le=this.api;each$c(this._allHandlers,function(ue){var pe=z.get(ue.uid)||z.set(ue.uid,{}),_e="";assert(!(ue.reset&&ue.overallReset),_e),ue.reset&&this._createSeriesStageTask(ue,pe,ie,le),ue.overallReset&&this._createOverallStageTask(ue,pe,ie,le)},this)},$.prototype.prepareView=function(z,ie,le,ue){var pe=z.renderTask,_e=pe.context;_e.model=ie,_e.ecModel=le,_e.api=ue,pe.__block=!z.incrementalPrepareRender,this._pipe(ie,pe)},$.prototype.performDataProcessorTasks=function(z,ie){this._performStageTasks(this._dataProcessorHandlers,z,ie,{block:!0})},$.prototype.performVisualTasks=function(z,ie,le){this._performStageTasks(this._visualHandlers,z,ie,le)},$.prototype._performStageTasks=function(z,ie,le,ue){ue=ue||{};var pe=!1,_e=this;each$c(z,function($e,xe){if(!(ue.visualType&&ue.visualType!==$e.visualType)){var Ie=_e._stageTaskMap.get($e.uid),ze=Ie.seriesTaskMap,Ue=Ie.overallTask;if(Ue){var qe,Et=Ue.agentStubMap;Et.each(function(hn){Ce(ue,hn)&&(hn.dirty(),qe=!0)}),qe&&Ue.dirty(),_e.updatePayload(Ue,le);var Lt=_e.getPerformArgs(Ue,ue.block);Et.each(function(hn){hn.perform(Lt)}),Ue.perform(Lt)&&(pe=!0)}else ze&&ze.each(function(hn,vn){Ce(ue,hn)&&hn.dirty();var _n=_e.getPerformArgs(hn,ue.block);_n.skip=!$e.performRawSeries&&ie.isSeriesFiltered(hn.context.model),_e.updatePayload(hn,le),hn.perform(_n)&&(pe=!0)})}});function Ce($e,xe){return $e.setDirty&&(!$e.dirtyMap||$e.dirtyMap.get(xe.__pipeline.id))}this.unfinished=pe||this.unfinished},$.prototype.performSeriesTasks=function(z){var ie;z.eachSeries(function(le){ie=le.dataTask.perform()||ie}),this.unfinished=ie||this.unfinished},$.prototype.plan=function(){this._pipelineMap.each(function(z){var ie=z.tail;do{if(ie.__block){z.blockIndex=ie.__idxInPipeline;break}ie=ie.getUpstream()}while(ie)})},$.prototype.updatePayload=function(z,ie){ie!=="remain"&&(z.context.payload=ie)},$.prototype._createSeriesStageTask=function(z,ie,le,ue){var pe=this,_e=ie.seriesTaskMap,Ce=ie.seriesTaskMap=createHashMap(),$e=z.seriesType,xe=z.getTargetSeries;z.createOnAllSeries?le.eachRawSeries(Ie):$e?le.eachRawSeriesByType($e,Ie):xe&&xe(le,ue).each(Ie);function Ie(ze){var Ue=ze.uid,qe=Ce.set(Ue,_e&&_e.get(Ue)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));qe.context={model:ze,ecModel:le,api:ue,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:pe},pe._pipe(ze,qe)}},$.prototype._createOverallStageTask=function(z,ie,le,ue){var pe=this,_e=ie.overallTask=ie.overallTask||createTask({reset:overallTaskReset});_e.context={ecModel:le,api:ue,overallReset:z.overallReset,scheduler:pe};var Ce=_e.agentStubMap,$e=_e.agentStubMap=createHashMap(),xe=z.seriesType,Ie=z.getTargetSeries,ze=!0,Ue=!1,qe="";assert(!z.createOnAllSeries,qe),xe?le.eachRawSeriesByType(xe,Et):Ie?Ie(le,ue).each(Et):(ze=!1,each$c(le.getSeries(),Et));function Et(Lt){var hn=Lt.uid,vn=$e.set(hn,Ce&&Ce.get(hn)||(Ue=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));vn.context={model:Lt,overallProgress:ze},vn.agent=_e,vn.__block=ze,pe._pipe(Lt,vn)}Ue&&_e.dirty()},$.prototype._pipe=function(z,ie){var le=z.uid,ue=this._pipelineMap.get(le);!ue.head&&(ue.head=ie),ue.tail&&ue.tail.pipe(ie),ue.tail=ie,ie.__idxInPipeline=ue.count++,ie.__pipeline=ue},$.wrapStageHandler=function(z,ie){return isFunction(z)&&(z={overallReset:z,seriesType:detectSeriseType(z)}),z.uid=getUID("stageHandler"),ie&&(z.visualType=ie),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(ie,le){return makeSeriesTaskProgress(le)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress($){return function(z,ie){var le=ie.data,ue=ie.resetDefines[$];if(ue&&ue.dataEach)for(var pe=z.start;pe<z.end;pe++)ue.dataEach(le,pe);else ue&&ue.progress&&ue.progress(z,le)}}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 ie in z.prototype)$[ie]=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 ie={},le={},ue={};if(isString(z)){var pe=parseClassType(z);ie.mainType=pe.main||null,ie.subType=pe.sub||null}else{var _e=["Index","Name","Id"],Ce={name:1,dataIndex:1,dataType:1};each$c(z,function($e,xe){for(var Ie=!1,ze=0;ze<_e.length;ze++){var Ue=_e[ze],qe=xe.lastIndexOf(Ue);if(qe>0&&qe===xe.length-Ue.length){var Et=xe.slice(0,qe);Et!=="data"&&(ie.mainType=Et,ie[Ue.toLowerCase()]=$e,Ie=!0)}}Ce.hasOwnProperty(xe)&&(le[xe]=$e,Ie=!0),Ie||(ue[xe]=$e)})}return{cptQuery:ie,dataQuery:le,otherQuery:ue}},$.prototype.filter=function(z,ie){var le=this.eventInfo;if(!le)return!0;var ue=le.targetEl,pe=le.packedEvent,_e=le.model,Ce=le.view;if(!_e||!Ce)return!0;var $e=ie.cptQuery,xe=ie.dataQuery;return Ie($e,_e,"mainType")&&Ie($e,_e,"subType")&&Ie($e,_e,"index","componentIndex")&&Ie($e,_e,"name")&&Ie($e,_e,"id")&&Ie(xe,pe,"name")&&Ie(xe,pe,"dataIndex")&&Ie(xe,pe,"dataType")&&(!Ce.filterForExposedEvent||Ce.filterForExposedEvent(z,ie.otherQuery,ue,pe));function Ie(ze,Ue,qe,Et){return ze[qe]==null||Ue[Et||qe]===ze[qe]}},$.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 ie=$.getData();if($.legendIcon&&ie.setVisual("legendIcon",$.legendIcon),!$.hasSymbolVisual)return;for(var le={},ue={},pe=!1,_e=0;_e<SYMBOL_PROPS_WITH_CB.length;_e++){var Ce=SYMBOL_PROPS_WITH_CB[_e],$e=$.get(Ce);isFunction($e)?(pe=!0,ue[Ce]=$e):le[Ce]=$e}if(le.symbol=le.symbol||$.defaultSymbol,ie.setVisual(extend({legendIcon:$.legendIcon||le.symbol,symbolKeepAspect:$.get("symbolKeepAspect")},le)),z.isSeriesFiltered($))return;var xe=keys(ue);function Ie(ze,Ue){for(var qe=$.getRawValue(Ue),Et=$.getDataParams(Ue),Lt=0;Lt<xe.length;Lt++){var hn=xe[Lt];ze.setItemVisual(Ue,hn,ue[hn](qe,Et))}}return{dataEach:pe?Ie:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,z){if(!$.hasSymbolVisual||z.isSeriesFiltered($))return;var ie=$.getData();function le(ue,pe){for(var _e=ue.getItemModel(pe),Ce=0;Ce<SYMBOL_PROPS.length;Ce++){var $e=SYMBOL_PROPS[Ce],xe=_e.getShallow($e,!0);xe!=null&&ue.setItemVisual(pe,$e,xe)}}return{dataEach:ie.hasItemOption?le:null}}};function getItemVisualFromData($,z,ie){switch(ie){case"color":var le=$.getItemVisual(z,"style");return le[$.getVisual("drawType")];case"opacity":return $.getItemVisual(z,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getItemVisual(z,ie)}}function getVisualFromData($,z){switch(z){case"color":var ie=$.getVisual("style");return ie[$.getVisual("drawType")];case"opacity":return $.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getVisual(z)}}function setItemVisualFromData($,z,ie,le){switch(ie){case"color":var ue=$.ensureUniqueItemVisual(z,"style");ue[$.getVisual("drawType")]=le,$.setItemVisual(z,"colorFromPalette",!1);break;case"opacity":$.ensureUniqueItemVisual(z,"style").opacity=le;break;case"symbol":case"symbolSize":case"liftZ":$.setItemVisual(z,ie,le);break}}function createLegacyDataSelectAction($,z){function ie(le,ue){var pe=[];return le.eachComponent({mainType:"series",subType:$,query:ue},function(_e){pe.push(_e.seriesIndex)}),pe}each$c([[$+"ToggleSelect","toggleSelect"],[$+"Select","select"],[$+"UnSelect","unselect"]],function(le){z(le[0],function(ue,pe,_e){ue=extend({},ue),_e.dispatchAction(extend(ue,{type:le[1],seriesIndex:ie(pe,ue)}))})})}function handleSeriesLegacySelectEvents($,z,ie,le,ue){var pe=$+z;ie.isSilent(pe)||le.eachComponent({mainType:"series",subType:"pie"},function(_e){for(var Ce=_e.seriesIndex,$e=_e.option.selectedMap,xe=ue.selected,Ie=0;Ie<xe.length;Ie++)if(xe[Ie].seriesIndex===Ce){var ze=_e.getData(),Ue=queryDataIndex(ze,ue.fromActionPayload);ie.trigger(pe,{type:pe,seriesId:_e.id,name:isArray$1(Ue)?ze.getName(Ue[0]):ze.getName(Ue),selected:isString($e)?$e:extend({},$e)})}})}function handleLegacySelectEvents($,z,ie){$.on("selectchanged",function(le){var ue=ie.getModel();le.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",z,ue,le),handleSeriesLegacySelectEvents("pie","selectchanged",z,ue,le)):le.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",z,ue,le),handleSeriesLegacySelectEvents("pie","selected",z,ue,le)):le.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",z,ue,le),handleSeriesLegacySelectEvents("pie","unselected",z,ue,le))})}function findEventDispatcher($,z,ie){for(var le;$&&!(z($)&&(le=$,ie));)$=$.__hostTarget||$.parent;return le}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,ie){var le=this._guard(z);return supportDefineProperty?Object.defineProperty(le,this._id,{value:ie,enumerable:!1,configurable:!0}):le[this._id]=ie,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 ie=z.cx,le=z.cy,ue=z.width/2,pe=z.height/2;$.moveTo(ie,le-pe),$.lineTo(ie+ue,le+pe),$.lineTo(ie-ue,le+pe),$.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function($,z){var ie=z.cx,le=z.cy,ue=z.width/2,pe=z.height/2;$.moveTo(ie,le-pe),$.lineTo(ie+ue,le),$.lineTo(ie,le+pe),$.lineTo(ie-ue,le),$.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function($,z){var ie=z.x,le=z.y,ue=z.width/5*3,pe=Math.max(ue,z.height),_e=ue/2,Ce=_e*_e/(pe-_e),$e=le-pe+_e+Ce,xe=Math.asin(Ce/_e),Ie=Math.cos(xe)*_e,ze=Math.sin(xe),Ue=Math.cos(xe),qe=_e*.6,Et=_e*.7;$.moveTo(ie-Ie,$e+Ce),$.arc(ie,$e,_e,Math.PI-xe,Math.PI*2+xe),$.bezierCurveTo(ie+Ie-ze*qe,$e+Ce+Ue*qe,ie,le-Et,ie,le),$.bezierCurveTo(ie,le-Et,ie-Ie+ze*qe,$e+Ce+Ue*qe,ie-Ie,$e+Ce),$.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function($,z){var ie=z.height,le=z.width,ue=z.x,pe=z.y,_e=le/3*2;$.moveTo(ue,pe),$.lineTo(ue+_e,pe+ie),$.lineTo(ue,pe+ie/4*3),$.lineTo(ue-_e,pe+ie),$.lineTo(ue,pe),$.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,ie,le,ue){ue.x1=$,ue.y1=z+le/2,ue.x2=$+ie,ue.y2=z+le/2},rect:function($,z,ie,le,ue){ue.x=$,ue.y=z,ue.width=ie,ue.height=le},roundRect:function($,z,ie,le,ue){ue.x=$,ue.y=z,ue.width=ie,ue.height=le,ue.r=Math.min(ie,le)/4},square:function($,z,ie,le,ue){var pe=Math.min(ie,le);ue.x=$,ue.y=z,ue.width=pe,ue.height=pe},circle:function($,z,ie,le,ue){ue.cx=$+ie/2,ue.cy=z+le/2,ue.r=Math.min(ie,le)/2},diamond:function($,z,ie,le,ue){ue.cx=$+ie/2,ue.cy=z+le/2,ue.width=ie,ue.height=le},pin:function($,z,ie,le,ue){ue.x=$+ie/2,ue.y=z+le/2,ue.width=ie,ue.height=le},arrow:function($,z,ie,le,ue){ue.x=$+ie/2,ue.y=z+le/2,ue.width=ie,ue.height=le},triangle:function($,z,ie,le,ue){ue.cx=$+ie/2,ue.cy=z+le/2,ue.width=ie,ue.height=le}},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,ie){var le=calculateTextPosition($,z,ie),ue=this.shape;return ue&&ue.symbolType==="pin"&&z.position==="inside"&&(le.y=ie.y+ie.height*.4),le},buildPath:function($,z,ie){var le=z.symbolType;if(le!=="none"){var ue=symbolBuildProxies[le];ue||(le="rect",ue=symbolBuildProxies[le]),symbolShapeMakers[le](z.x,z.y,z.width,z.height,ue.shape),ue.buildPath($,ue.shape,ie)}}});function symbolPathSetColor($,z){if(this.type!=="image"){var ie=this.style;this.__isEmptyBrush?(ie.stroke=$,ie.fill=z||"#fff",ie.lineWidth=2):this.shape.symbolType==="line"?ie.stroke=$:ie.fill=$,this.markRedraw()}}function createSymbol($,z,ie,le,ue,pe,_e){var Ce=$.indexOf("empty")===0;Ce&&($=$.substr(5,1).toLowerCase()+$.substr(6));var $e;return $.indexOf("image://")===0?$e=makeImage($.slice(8),new BoundingRect$1(z,ie,le,ue),_e?"center":"cover"):$.indexOf("path://")===0?$e=makePath($.slice(7),{},new BoundingRect$1(z,ie,le,ue),_e?"center":"cover"):$e=new SymbolClz$1({shape:{symbolType:$,x:z,y:ie,width:le,height:ue}}),$e.__isEmptyBrush=Ce,$e.setColor=symbolPathSetColor,pe&&$e.setColor(pe),$e}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,ie){var le=z.x==null?0:z.x,ue=z.x2==null?1:z.x2,pe=z.y==null?0:z.y,_e=z.y2==null?0:z.y2;z.global||(le=le*ie.width+ie.x,ue=ue*ie.width+ie.x,pe=pe*ie.height+ie.y,_e=_e*ie.height+ie.y),le=isSafeNum(le)?le:0,ue=isSafeNum(ue)?ue:1,pe=isSafeNum(pe)?pe:0,_e=isSafeNum(_e)?_e:0;var Ce=$.createLinearGradient(le,pe,ue,_e);return Ce}function createRadialGradient($,z,ie){var le=ie.width,ue=ie.height,pe=Math.min(le,ue),_e=z.x==null?.5:z.x,Ce=z.y==null?.5:z.y,$e=z.r==null?.5:z.r;z.global||(_e=_e*le+ie.x,Ce=Ce*ue+ie.y,$e=$e*pe),_e=isSafeNum(_e)?_e:.5,Ce=isSafeNum(Ce)?Ce:.5,$e=$e>=0&&isSafeNum($e)?$e:.5;var xe=$.createRadialGradient(_e,Ce,0,_e,Ce,$e);return xe}function getCanvasGradient($,z,ie){for(var le=z.type==="radial"?createRadialGradient($,z,ie):createLinearGradient($,z,ie),ue=z.colorStops,pe=0;pe<ue.length;pe++)le.addColorStop(ue[pe].offset,ue[pe].color);return le}function isClipPathChanged($,z){if($===z||!$&&!z)return!1;if(!$||!z||$.length!==z.length)return!0;for(var ie=0;ie<$.length;ie++)if($[ie]!==z[ie])return!0;return!1}function parseInt10($){return parseInt($,10)}function getSize$1($,z,ie){var le=["width","height"][z],ue=["clientWidth","clientHeight"][z],pe=["paddingLeft","paddingTop"][z],_e=["paddingRight","paddingBottom"][z];if(ie[le]!=null&&ie[le]!=="auto")return parseFloat(ie[le]);var Ce=document.defaultView.getComputedStyle($);return($[ue]||parseInt10(Ce[le])||parseInt10($.style[le]))-(parseInt10(Ce[pe])||0)-(parseInt10(Ce[_e])||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,ie=z.lineDash&&z.lineWidth>0&&normalizeLineDash(z.lineDash,z.lineWidth),le=z.lineDashOffset;if(ie){var ue=z.strokeNoScale&&$.getLineScale?$.getLineScale():1;ue&&ue!==1&&(ie=map$2(ie,function(pe){return pe/ue}),le/=ue)}return[ie,le]}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 ie=$.globalAlpha;$.globalAlpha=z.fillOpacity*z.opacity,$.fill(),$.globalAlpha=ie}else $.fill()}function doStrokePath($,z){if(z.strokeOpacity!=null&&z.strokeOpacity!==1){var ie=$.globalAlpha;$.globalAlpha=z.strokeOpacity*z.opacity,$.stroke(),$.globalAlpha=ie}else $.stroke()}function createCanvasPattern($,z,ie){var le=createOrUpdateImage(z.image,z.__image,ie);if(isImageReady(le)){var ue=$.createPattern(le,z.repeat||"repeat");if(typeof DOMMatrix=="function"&&ue&&ue.setTransform){var pe=new DOMMatrix;pe.translateSelf(z.x||0,z.y||0),pe.rotateSelf(0,0,(z.rotation||0)*RADIAN_TO_DEGREE),pe.scaleSelf(z.scaleX||1,z.scaleY||1),ue.setTransform(pe)}return ue}}function brushPath($,z,ie,le){var ue,pe=styleHasStroke(ie),_e=styleHasFill(ie),Ce=ie.strokePercent,$e=Ce<1,xe=!z.path;(!z.silent||$e)&&xe&&z.createPathProxy();var Ie=z.path||pathProxyForDraw,ze=z.__dirty;if(!le){var Ue=ie.fill,qe=ie.stroke,Et=_e&&!!Ue.colorStops,Lt=pe&&!!qe.colorStops,hn=_e&&!!Ue.image,vn=pe&&!!qe.image,_n=void 0,bn=void 0,Sn=void 0,Cn=void 0,En=void 0;(Et||Lt)&&(En=z.getBoundingRect()),Et&&(_n=ze?getCanvasGradient($,Ue,En):z.__canvasFillGradient,z.__canvasFillGradient=_n),Lt&&(bn=ze?getCanvasGradient($,qe,En):z.__canvasStrokeGradient,z.__canvasStrokeGradient=bn),hn&&(Sn=ze||!z.__canvasFillPattern?createCanvasPattern($,Ue,z):z.__canvasFillPattern,z.__canvasFillPattern=Sn),vn&&(Cn=ze||!z.__canvasStrokePattern?createCanvasPattern($,qe,z):z.__canvasStrokePattern,z.__canvasStrokePattern=Sn),Et?$.fillStyle=_n:hn&&(Sn?$.fillStyle=Sn:_e=!1),Lt?$.strokeStyle=bn:vn&&(Cn?$.strokeStyle=Cn:pe=!1)}var $n=z.getGlobalScale();Ie.setScale($n[0],$n[1],z.segmentIgnoreThreshold);var wn,Tn;$.setLineDash&&ie.lineDash&&(ue=getLineDash(z),wn=ue[0],Tn=ue[1]);var xn=!0;(xe||ze&SHAPE_CHANGED_BIT)&&(Ie.setDPR($.dpr),$e?Ie.setContext(null):(Ie.setContext($),xn=!1),Ie.reset(),z.buildPath(Ie,z.shape,le),Ie.toStatic(),z.pathUpdated()),xn&&Ie.rebuildPath($,$e?Ce:1),wn&&($.setLineDash(wn),$.lineDashOffset=Tn),le||(ie.strokeFirst?(pe&&doStrokePath($,ie),_e&&doFillPath($,ie)):(_e&&doFillPath($,ie),pe&&doStrokePath($,ie))),wn&&$.setLineDash([])}function brushImage($,z,ie){var le=z.__image=createOrUpdateImage(ie.image,z.__image,z,z.onload);if(!(!le||!isImageReady(le))){var ue=ie.x||0,pe=ie.y||0,_e=z.getWidth(),Ce=z.getHeight(),$e=le.width/le.height;if(_e==null&&Ce!=null?_e=Ce*$e:Ce==null&&_e!=null?Ce=_e/$e:_e==null&&Ce==null&&(_e=le.width,Ce=le.height),ie.sWidth&&ie.sHeight){var xe=ie.sx||0,Ie=ie.sy||0;$.drawImage(le,xe,Ie,ie.sWidth,ie.sHeight,ue,pe,_e,Ce)}else if(ie.sx&&ie.sy){var xe=ie.sx,Ie=ie.sy,ze=_e-xe,Ue=Ce-Ie;$.drawImage(le,xe,Ie,ze,Ue,ue,pe,_e,Ce)}else $.drawImage(le,ue,pe,_e,Ce)}}function brushText($,z,ie){var le,ue=ie.text;if(ue!=null&&(ue+=""),ue){$.font=ie.font||DEFAULT_FONT,$.textAlign=ie.textAlign,$.textBaseline=ie.textBaseline;var pe=void 0,_e=void 0;$.setLineDash&&ie.lineDash&&(le=getLineDash(z),pe=le[0],_e=le[1]),pe&&($.setLineDash(pe),$.lineDashOffset=_e),ie.strokeFirst?(styleHasStroke(ie)&&$.strokeText(ue,ie.x,ie.y),styleHasFill(ie)&&$.fillText(ue,ie.x,ie.y)):(styleHasFill(ie)&&$.fillText(ue,ie.x,ie.y),styleHasStroke(ie)&&$.strokeText(ue,ie.x,ie.y)),pe&&$.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps($,z,ie,le,ue){var pe=!1;if(!le&&(ie=ie||{},z===ie))return!1;if(le||z.opacity!==ie.opacity){flushPathDrawn($,ue),pe=!0;var _e=Math.max(Math.min(z.opacity,1),0);$.globalAlpha=isNaN(_e)?DEFAULT_COMMON_STYLE.opacity:_e}(le||z.blend!==ie.blend)&&(pe||(flushPathDrawn($,ue),pe=!0),$.globalCompositeOperation=z.blend||DEFAULT_COMMON_STYLE.blend);for(var Ce=0;Ce<SHADOW_NUMBER_PROPS.length;Ce++){var $e=SHADOW_NUMBER_PROPS[Ce];(le||z[$e]!==ie[$e])&&(pe||(flushPathDrawn($,ue),pe=!0),$[$e]=$.dpr*(z[$e]||0))}return(le||z.shadowColor!==ie.shadowColor)&&(pe||(flushPathDrawn($,ue),pe=!0),$.shadowColor=z.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),pe}function bindPathAndTextCommonStyle($,z,ie,le,ue){var pe=getStyle(z,ue.inHover),_e=le?null:ie&&getStyle(ie,ue.inHover)||{};if(pe===_e)return!1;var Ce=bindCommonProps($,pe,_e,le,ue);if((le||pe.fill!==_e.fill)&&(Ce||(flushPathDrawn($,ue),Ce=!0),isValidStrokeFillStyle(pe.fill)&&($.fillStyle=pe.fill)),(le||pe.stroke!==_e.stroke)&&(Ce||(flushPathDrawn($,ue),Ce=!0),isValidStrokeFillStyle(pe.stroke)&&($.strokeStyle=pe.stroke)),(le||pe.opacity!==_e.opacity)&&(Ce||(flushPathDrawn($,ue),Ce=!0),$.globalAlpha=pe.opacity==null?1:pe.opacity),z.hasStroke()){var $e=pe.lineWidth,xe=$e/(pe.strokeNoScale&&z.getLineScale?z.getLineScale():1);$.lineWidth!==xe&&(Ce||(flushPathDrawn($,ue),Ce=!0),$.lineWidth=xe)}for(var Ie=0;Ie<STROKE_PROPS.length;Ie++){var ze=STROKE_PROPS[Ie],Ue=ze[0];(le||pe[Ue]!==_e[Ue])&&(Ce||(flushPathDrawn($,ue),Ce=!0),$[Ue]=pe[Ue]||ze[1])}return Ce}function bindImageStyle($,z,ie,le,ue){return bindCommonProps($,getStyle(z,ue.inHover),ie&&getStyle(ie,ue.inHover),le,ue)}function setContextTransform($,z){var ie=z.transform,le=$.dpr||1;ie?$.setTransform(le*ie[0],le*ie[1],le*ie[2],le*ie[3],le*ie[4],le*ie[5]):$.setTransform(le,0,0,le,0,0)}function updateClipStatus($,z,ie){for(var le=!1,ue=0;ue<$.length;ue++){var pe=$[ue];le=le||pe.isZeroArea(),setContextTransform(z,pe),z.beginPath(),pe.buildPath(z,pe.shape),z.clip()}ie.allClipped=le}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($),ie=styleHasStroke($);return!($.lineDash||!(+z^+ie)||z&&typeof $.fill!="string"||ie&&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,ie,le){var ue=z.transform;if(!z.shouldBePainted(ie.viewWidth,ie.viewHeight,!1,!1)){z.__dirty&=~REDRAW_BIT,z.__isRendered=!1;return}var pe=z.__clipPaths,_e=ie.prevElClipPaths,Ce=!1,$e=!1;if((!_e||isClipPathChanged(pe,_e))&&(_e&&_e.length&&(flushPathDrawn($,ie),$.restore(),$e=Ce=!0,ie.prevElClipPaths=null,ie.allClipped=!1,ie.prevEl=null),pe&&pe.length&&(flushPathDrawn($,ie),$.save(),updateClipStatus(pe,$,ie),Ce=!0),ie.prevElClipPaths=pe),ie.allClipped){z.__isRendered=!1;return}z.beforeBrush&&z.beforeBrush(),z.innerBeforeBrush();var xe=ie.prevEl;xe||($e=Ce=!0);var Ie=z instanceof Path$1&&z.autoBatch&&canPathBatch(z.style);Ce||isTransformChanged(ue,xe.transform)?(flushPathDrawn($,ie),setContextTransform($,z)):Ie||flushPathDrawn($,ie);var ze=getStyle(z,ie.inHover);z instanceof Path$1?(ie.lastDrawType!==DRAW_TYPE_PATH&&($e=!0,ie.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle($,z,xe,$e,ie),(!Ie||!ie.batchFill&&!ie.batchStroke)&&$.beginPath(),brushPath($,z,ze,Ie),Ie&&(ie.batchFill=ze.fill||"",ie.batchStroke=ze.stroke||"")):z instanceof TSpan$1?(ie.lastDrawType!==DRAW_TYPE_TEXT&&($e=!0,ie.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle($,z,xe,$e,ie),brushText($,z,ze)):z instanceof ZRImage$1?(ie.lastDrawType!==DRAW_TYPE_IMAGE&&($e=!0,ie.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle($,z,xe,$e,ie),brushImage($,z,ze)):z.getTemporalDisplayables&&(ie.lastDrawType!==DRAW_TYPE_INCREMENTAL&&($e=!0,ie.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental($,z,ie)),Ie&&le&&flushPathDrawn($,ie),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),ie.prevEl=z,z.__dirty=0,z.__isRendered=!0}function brushIncremental($,z,ie){var le=z.getDisplayables(),ue=z.getTemporalDisplayables();$.save();var pe={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:ie.viewWidth,viewHeight:ie.viewHeight,inHover:ie.inHover},_e,Ce;for(_e=z.getCursor(),Ce=le.length;_e<Ce;_e++){var $e=le[_e];$e.beforeBrush&&$e.beforeBrush(),$e.innerBeforeBrush(),brush($,$e,pe,_e===Ce-1),$e.innerAfterBrush(),$e.afterBrush&&$e.afterBrush(),pe.prevEl=$e}for(var xe=0,Ie=ue.length;xe<Ie;xe++){var $e=ue[xe];$e.beforeBrush&&$e.beforeBrush(),$e.innerBeforeBrush(),brush($,$e,pe,xe===Ie-1),$e.innerAfterBrush(),$e.afterBrush&&$e.afterBrush(),pe.prevEl=$e}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 ie=z.getDevicePixelRatio(),le=z.getZr(),ue=le.painter.type==="svg";$.dirty&&decalMap.delete($);var pe=decalMap.get($);if(pe)return pe;var _e=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});_e.backgroundColor==="none"&&(_e.backgroundColor=null);var Ce={repeat:"repeat"};return $e(Ce),Ce.rotation=_e.rotation,Ce.scaleX=Ce.scaleY=ue?1:1/ie,decalMap.set($,Ce),$.dirty=!1,Ce;function $e(xe){for(var Ie=[ie],ze=!0,Ue=0;Ue<decalKeys.length;++Ue){var qe=_e[decalKeys[Ue]];if(qe!=null&&!isArray$1(qe)&&!isString(qe)&&!isNumber(qe)&&typeof qe!="boolean"){ze=!1;break}Ie.push(qe)}var Et;if(ze){Et=Ie.join(",")+(ue?"-svg":"");var Lt=decalCache.get(Et);Lt&&(ue?xe.svgElement=Lt:xe.image=Lt)}var hn=normalizeDashArrayX(_e.dashArrayX),vn=normalizeDashArrayY(_e.dashArrayY),_n=normalizeSymbolArray(_e.symbol),bn=getLineBlockLengthX(hn),Sn=getLineBlockLengthY(vn),Cn=!ue&&platformApi.createCanvas(),En=ue&&{tag:"g",attrs:{},key:"dcl",children:[]},$n=Tn(),wn;Cn&&(Cn.width=$n.width*ie,Cn.height=$n.height*ie,wn=Cn.getContext("2d")),xn(),ze&&decalCache.put(Et,Cn||En),xe.image=Cn,xe.svgElement=En,xe.svgWidth=$n.width,xe.svgHeight=$n.height;function Tn(){for(var Pn=1,kn=0,An=bn.length;kn<An;++kn)Pn=getLeastCommonMultiple(Pn,bn[kn]);for(var Nn=1,kn=0,An=_n.length;kn<An;++kn)Nn=getLeastCommonMultiple(Nn,_n[kn].length);Pn*=Nn;var Fn=Sn*bn.length*_n.length;return{width:Math.max(1,Math.min(Pn,_e.maxTileWidth)),height:Math.max(1,Math.min(Fn,_e.maxTileHeight))}}function xn(){wn&&(wn.clearRect(0,0,Cn.width,Cn.height),_e.backgroundColor&&(wn.fillStyle=_e.backgroundColor,wn.fillRect(0,0,Cn.width,Cn.height)));for(var Pn=0,kn=0;kn<vn.length;++kn)Pn+=vn[kn];if(Pn<=0)return;for(var An=-Sn,Nn=0,Fn=0,Ln=0;An<$n.height;){if(Nn%2===0){for(var In=Fn/2%_n.length,Vn=0,Mn=0,zn=0;Vn<$n.width*2;){for(var qn=0,kn=0;kn<hn[Ln].length;++kn)qn+=hn[Ln][kn];if(qn<=0)break;if(Mn%2===0){var Hn=(1-_e.symbolSize)*.5,Jn=Vn+hn[Ln][Mn]*Hn,ur=An+vn[Nn]*Hn,yr=hn[Ln][Mn]*_e.symbolSize,sr=vn[Nn]*_e.symbolSize,Zn=zn/2%_n[In].length;Kn(Jn,ur,yr,sr,_n[In][Zn])}Vn+=hn[Ln][Mn],++zn,++Mn,Mn===hn[Ln].length&&(Mn=0)}++Ln,Ln===hn.length&&(Ln=0)}An+=vn[Nn],++Fn,++Nn,Nn===vn.length&&(Nn=0)}function Kn(Wn,nr,fr,Gn,Xn){var or=ue?1:ie,vr=createSymbol(Xn,Wn*or,nr*or,fr*or,Gn*or,_e.color,_e.symbolKeepAspect);if(ue){var _r=le.painter.renderOneToVNode(vr);_r&&En.children.push(_r)}else brushSingle(wn,vr)}}}}function normalizeSymbolArray($){if(!$||$.length===0)return[["rect"]];if(isString($))return[[$]];for(var z=!0,ie=0;ie<$.length;++ie)if(!isString($[ie])){z=!1;break}if(z)return normalizeSymbolArray([$]);for(var le=[],ie=0;ie<$.length;++ie)isString($[ie])?le.push([$[ie]]):le.push($[ie]);return le}function normalizeDashArrayX($){if(!$||$.length===0)return[[0,0]];if(isNumber($)){var z=Math.ceil($);return[[z,z]]}for(var ie=!0,le=0;le<$.length;++le)if(!isNumber($[le])){ie=!1;break}if(ie)return normalizeDashArrayX([$]);for(var ue=[],le=0;le<$.length;++le)if(isNumber($[le])){var z=Math.ceil($[le]);ue.push([z,z])}else{var z=map$2($[le],function(Ce){return Math.ceil(Ce)});z.length%2===1?ue.push(z.concat(z)):ue.push(z)}return ue}function normalizeDashArrayY($){if(!$||typeof $=="object"&&$.length===0)return[0,0];if(isNumber($)){var z=Math.ceil($);return[z,z]}var ie=map$2($,function(le){return Math.ceil(le)});return $.length%2?ie.concat(ie):ie}function getLineBlockLengthX($){return map$2($,function(z){return getLineBlockLengthY(z)})}function getLineBlockLengthY($){for(var z=0,ie=0;ie<$.length;++ie)z+=$[ie];return $.length%2===1?z*2:z}function decalVisual($,z){$.eachRawSeries(function(ie){if(!$.isSeriesFiltered(ie)){var le=ie.getData();le.hasItemVisual()&&le.each(function(_e){var Ce=le.getItemVisual(_e,"decal");if(Ce){var $e=le.ensureUniqueItemVisual(_e,"style");$e.decal=createOrUpdatePatternFromDecal(Ce,z)}});var ue=le.getVisual("decal");if(ue){var pe=le.getVisual("style");pe.decal=createOrUpdatePatternFromDecal(ue,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=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,$,z)}}function createRegisterEventWithLowercaseMessageCenter($){return function(){for(var z=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];return toLowercaseNameAndCallEventful(this,$,z)}}function toLowercaseNameAndCallEventful($,z,ie){return ie[0]=ie[0]&&ie[0].toLowerCase(),Eventful$1.prototype[z].apply($,ie)}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(ie,le,ue){var pe=$.call(this,new ECEventProcessor)||this;pe._chartsViews=[],pe._chartsMap={},pe._componentsViews=[],pe._componentsMap={},pe._pendingActions=[],ue=ue||{},isString(le)&&(le=themeStorage[le]),pe._dom=ie;var _e="canvas",Ce="auto",$e=!1,xe=pe._zr=init$1(ie,{renderer:ue.renderer||_e,devicePixelRatio:ue.devicePixelRatio,width:ue.width,height:ue.height,ssr:ue.ssr,useDirtyRect:retrieve2(ue.useDirtyRect,$e),useCoarsePointer:retrieve2(ue.useCoarsePointer,Ce),pointerSize:ue.pointerSize});pe._ssr=ue.ssr,pe._throttledZrFlush=throttle(bind$1(xe.flush,xe),17),le=clone$3(le),le&&globalBackwardCompat(le,!0),pe._theme=le,pe._locale=createLocaleObject(ue.locale||SYSTEM_LANG),pe._coordSysMgr=new CoordinateSystem;var Ie=pe._api=createExtensionAPI(pe);function ze(Ue,qe){return Ue.__prio-qe.__prio}return sort(visualFuncs,ze),sort(dataProcessorFuncs,ze),pe._scheduler=new Scheduler$1(pe,Ie,dataProcessorFuncs,visualFuncs),pe._messageCenter=new MessageCenter,pe._initEvents(),pe.resize=bind$1(pe.resize,pe),xe.animation.on("frame",pe._onframe,pe),bindRenderedEvent(xe,pe),bindMouseEvent(xe,pe),setAsPrimitive(pe),pe}return z.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var ie=this._scheduler;if(this[PENDING_UPDATE]){var le=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare$1(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch($e){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,$e}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}else if(ie.unfinished){var ue=TEST_FRAME_REMAIN_TIME,pe=this._model,_e=this._api;ie.unfinished=!1;do{var Ce=+new Date;ie.performSeriesTasks(pe),ie.performDataProcessorTasks(pe),updateStreamModes(this,pe),ie.performVisualTasks(pe),renderSeries(this,this._model,_e,"remain",{}),ue-=+new Date-Ce}while(ue>0&&ie.unfinished);ie.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(ie,le,ue){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var pe,_e,Ce;if(isObject$3(le)&&(ue=le.lazyUpdate,pe=le.silent,_e=le.replaceMerge,Ce=le.transition,le=le.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||le){var $e=new OptionManager$1(this._api),xe=this._theme,Ie=this._model=new GlobalModel$1;Ie.scheduler=this._scheduler,Ie.ssr=this._ssr,Ie.init(null,null,null,xe,this._locale,$e)}this._model.setOption(ie,{replaceMerge:_e},optionPreprocessorFuncs);var ze={seriesTransition:Ce,optionChanged:!0};if(ue)this[PENDING_UPDATE]={silent:pe,updateParams:ze},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,ze)}catch(Ue){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,Ue}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,pe),triggerUpdatedEvent.call(this,pe)}}},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(ie){return this.renderToCanvas(ie)},z.prototype.renderToCanvas=function(ie){ie=ie||{};var le=this._zr.painter;return le.getRenderedCanvas({backgroundColor:ie.backgroundColor||this._model.get("backgroundColor"),pixelRatio:ie.pixelRatio||this.getDevicePixelRatio()})},z.prototype.renderToSVGString=function(ie){ie=ie||{};var le=this._zr.painter;return le.renderToString({useViewBox:ie.useViewBox})},z.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var ie=this._zr,le=ie.storage.getDisplayList();return each$c(le,function(ue){ue.stopAnimation(null,!0)}),ie.painter.toDataURL()}},z.prototype.getDataURL=function(ie){if(this._disposed){this.id;return}ie=ie||{};var le=ie.excludeComponents,ue=this._model,pe=[],_e=this;each$c(le,function($e){ue.eachComponent({mainType:$e},function(xe){var Ie=_e._componentsMap[xe.__viewId];Ie.group.ignore||(pe.push(Ie),Ie.group.ignore=!0)})});var Ce=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(ie).toDataURL("image/"+(ie&&ie.type||"png"));return each$c(pe,function($e){$e.group.ignore=!1}),Ce},z.prototype.getConnectedDataURL=function(ie){if(this._disposed){this.id;return}var le=ie.type==="svg",ue=this.group,pe=Math.min,_e=Math.max,Ce=1/0;if(connectedGroups[ue]){var $e=Ce,xe=Ce,Ie=-Ce,ze=-Ce,Ue=[],qe=ie&&ie.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(bn,Sn){if(bn.group===ue){var Cn=le?bn.getZr().painter.getSvgDom().innerHTML:bn.renderToCanvas(clone$3(ie)),En=bn.getDom().getBoundingClientRect();$e=pe(En.left,$e),xe=pe(En.top,xe),Ie=_e(En.right,Ie),ze=_e(En.bottom,ze),Ue.push({dom:Cn,left:En.left,top:En.top})}}),$e*=qe,xe*=qe,Ie*=qe,ze*=qe;var Et=Ie-$e,Lt=ze-xe,hn=platformApi.createCanvas(),vn=init$1(hn,{renderer:le?"svg":"canvas"});if(vn.resize({width:Et,height:Lt}),le){var _n="";return each$c(Ue,function(bn){var Sn=bn.left-$e,Cn=bn.top-xe;_n+='<g transform="translate('+Sn+","+Cn+')">'+bn.dom+"</g>"}),vn.painter.getSvgRoot().innerHTML=_n,ie.connectedBackgroundColor&&vn.painter.setBackgroundColor(ie.connectedBackgroundColor),vn.refreshImmediately(),vn.painter.toDataURL()}else return ie.connectedBackgroundColor&&vn.add(new Rect$2({shape:{x:0,y:0,width:Et,height:Lt},style:{fill:ie.connectedBackgroundColor}})),each$c(Ue,function(bn){var Sn=new ZRImage$1({style:{x:bn.left*qe-$e,y:bn.top*qe-xe,image:bn.dom}});vn.add(Sn)}),vn.refreshImmediately(),hn.toDataURL("image/"+(ie&&ie.type||"png"))}else return this.getDataURL(ie)},z.prototype.convertToPixel=function(ie,le){return doConvertPixel(this,"convertToPixel",ie,le)},z.prototype.convertFromPixel=function(ie,le){return doConvertPixel(this,"convertFromPixel",ie,le)},z.prototype.containPixel=function(ie,le){if(this._disposed){this.id;return}var ue=this._model,pe,_e=parseFinder$1(ue,ie);return each$c(_e,function(Ce,$e){$e.indexOf("Models")>=0&&each$c(Ce,function(xe){var Ie=xe.coordinateSystem;if(Ie&&Ie.containPoint)pe=pe||!!Ie.containPoint(le);else if($e==="seriesModels"){var ze=this._chartsMap[xe.__viewId];ze&&ze.containPoint&&(pe=pe||ze.containPoint(le,xe))}},this)},this),!!pe},z.prototype.getVisual=function(ie,le){var ue=this._model,pe=parseFinder$1(ue,ie,{defaultMainType:"series"}),_e=pe.seriesModel,Ce=_e.getData(),$e=pe.hasOwnProperty("dataIndexInside")?pe.dataIndexInside:pe.hasOwnProperty("dataIndex")?Ce.indexOfRawIndex(pe.dataIndex):null;return $e!=null?getItemVisualFromData(Ce,$e,le):getVisualFromData(Ce,le)},z.prototype.getViewOfComponentModel=function(ie){return this._componentsMap[ie.__viewId]},z.prototype.getViewOfSeriesModel=function(ie){return this._chartsMap[ie.__viewId]},z.prototype._initEvents=function(){var ie=this;each$c(MOUSE_EVENT_NAMES,function(le){var ue=function(pe){var _e=ie.getModel(),Ce=pe.target,$e,xe=le==="globalout";if(xe?$e={}:Ce&&findEventDispatcher(Ce,function(Et){var Lt=getECData(Et);if(Lt&&Lt.dataIndex!=null){var hn=Lt.dataModel||_e.getSeriesByIndex(Lt.seriesIndex);return $e=hn&&hn.getDataParams(Lt.dataIndex,Lt.dataType)||{},!0}else if(Lt.eventData)return $e=extend({},Lt.eventData),!0},!0),$e){var Ie=$e.componentType,ze=$e.componentIndex;(Ie==="markLine"||Ie==="markPoint"||Ie==="markArea")&&(Ie="series",ze=$e.seriesIndex);var Ue=Ie&&ze!=null&&_e.getComponent(Ie,ze),qe=Ue&&ie[Ue.mainType==="series"?"_chartsMap":"_componentsMap"][Ue.__viewId];$e.event=pe,$e.type=le,ie._$eventProcessor.eventInfo={targetEl:Ce,packedEvent:$e,model:Ue,view:qe},ie.trigger(le,$e)}};ue.zrEventfulCallAtLast=!0,ie._zr.on(le,ue,ie)}),each$c(eventActionMap,function(le,ue){ie._messageCenter.on(ue,function(pe){this.trigger(ue,pe)},ie)}),each$c(["selectchanged"],function(le){ie._messageCenter.on(le,function(ue){this.trigger(le,ue)},ie)}),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 ie=this.getDom();ie&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var le=this,ue=le._api,pe=le._model;each$c(le._componentsViews,function(_e){_e.dispose(pe,ue)}),each$c(le._chartsViews,function(_e){_e.dispose(pe,ue)}),le._zr.dispose(),le._dom=le._model=le._chartsMap=le._componentsMap=le._chartsViews=le._componentsViews=le._scheduler=le._api=le._zr=le._throttledZrFlush=le._theme=le._coordSysMgr=le._messageCenter=null,delete instances[le.id]},z.prototype.resize=function(ie){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(ie);var le=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!le){var ue=le.resetOption("media"),pe=ie&&ie.silent;this[PENDING_UPDATE]&&(pe==null&&(pe=this[PENDING_UPDATE].silent),ue=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{ue&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},ie&&ie.animation)})}catch(_e){throw this[IN_MAIN_PROCESS_KEY]=!1,_e}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,pe),triggerUpdatedEvent.call(this,pe)}}},z.prototype.showLoading=function(ie,le){if(this._disposed){this.id;return}if(isObject$3(ie)&&(le=ie,ie=""),ie=ie||"default",this.hideLoading(),!!loadingEffects[ie]){var ue=loadingEffects[ie](this._api,le),pe=this._zr;this._loadingFX=ue,pe.add(ue)}},z.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},z.prototype.makeActionFromEvent=function(ie){var le=extend({},ie);return le.type=eventActionMap[ie.type],le},z.prototype.dispatchAction=function(ie,le){if(this._disposed){this.id;return}if(isObject$3(le)||(le={silent:!!le}),!!actions[ie.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(ie);return}var ue=le.silent;doDispatchAction.call(this,ie,ue);var pe=le.flush;pe?this._zr.flush():pe!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,ue),triggerUpdatedEvent.call(this,ue)}},z.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},z.prototype.appendData=function(ie){if(this._disposed){this.id;return}var le=ie.seriesIndex,ue=this.getModel(),pe=ue.getSeriesByIndex(le);pe.appendData(ie),this._scheduler.unfinished=!0,this.getZr().wakeUp()},z.internalField=function(){prepare$1=function(ze){var Ue=ze._scheduler;Ue.restorePipelines(ze._model),Ue.prepareStageTasks(),prepareView(ze,!0),prepareView(ze,!1),Ue.plan()},prepareView=function(ze,Ue){for(var qe=ze._model,Et=ze._scheduler,Lt=Ue?ze._componentsViews:ze._chartsViews,hn=Ue?ze._componentsMap:ze._chartsMap,vn=ze._zr,_n=ze._api,bn=0;bn<Lt.length;bn++)Lt[bn].__alive=!1;Ue?qe.eachComponent(function(En,$n){En!=="series"&&Sn($n)}):qe.eachSeries(Sn);function Sn(En){var $n=En.__requireNewView;En.__requireNewView=!1;var wn="_ec_"+En.id+"_"+En.type,Tn=!$n&&hn[wn];if(!Tn){var xn=parseClassType(En.type),Pn=Ue?ComponentView$1.getClass(xn.main,xn.sub):ChartView$1.getClass(xn.sub);Tn=new Pn,Tn.init(qe,_n),hn[wn]=Tn,Lt.push(Tn),vn.add(Tn.group)}En.__viewId=Tn.__id=wn,Tn.__alive=!0,Tn.__model=En,Tn.group.__ecComponentInfo={mainType:En.mainType,index:En.componentIndex},!Ue&&Et.prepareView(Tn,En,qe,_n)}for(var bn=0;bn<Lt.length;){var Cn=Lt[bn];Cn.__alive?bn++:(!Ue&&Cn.renderTask.dispose(),vn.remove(Cn.group),Cn.dispose(qe,_n),Lt.splice(bn,1),hn[Cn.__id]===Cn&&delete hn[Cn.__id],Cn.__id=Cn.group.__ecComponentInfo=null)}},updateDirectly=function(ze,Ue,qe,Et,Lt){var hn=ze._model;if(hn.setUpdatePayload(qe),!Et){each$c([].concat(ze._componentsViews).concat(ze._chartsViews),Cn);return}var vn={};vn[Et+"Id"]=qe[Et+"Id"],vn[Et+"Index"]=qe[Et+"Index"],vn[Et+"Name"]=qe[Et+"Name"];var _n={mainType:Et,query:vn};Lt&&(_n.subType=Lt);var bn=qe.excludeSeriesId,Sn;bn!=null&&(Sn=createHashMap(),each$c(normalizeToArray(bn),function(En){var $n=convertOptionIdName(En,null);$n!=null&&Sn.set($n,!0)})),hn&&hn.eachComponent(_n,function(En){var $n=Sn&&Sn.get(En.id)!=null;if(!$n)if(isHighDownPayload(qe))if(En instanceof SeriesModel$1)qe.type===HIGHLIGHT_ACTION_TYPE&&!qe.notBlur&&!En.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(En,qe,ze._api);else{var wn=findComponentHighDownDispatchers(En.mainType,En.componentIndex,qe.name,ze._api),Tn=wn.focusSelf,xn=wn.dispatchers;qe.type===HIGHLIGHT_ACTION_TYPE&&Tn&&!qe.notBlur&&blurComponent(En.mainType,En.componentIndex,ze._api),xn&&each$c(xn,function(Pn){qe.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(Pn):leaveEmphasis(Pn)})}else isSelectChangePayload(qe)&&En instanceof SeriesModel$1&&(toggleSelectionFromPayload(En,qe,ze._api),updateSeriesElementSelection(En),markStatusToUpdate(ze))},ze),hn&&hn.eachComponent(_n,function(En){var $n=Sn&&Sn.get(En.id)!=null;$n||Cn(ze[Et==="series"?"_chartsMap":"_componentsMap"][En.__viewId])},ze);function Cn(En){En&&En.__alive&&En[Ue]&&En[Ue](En.__model,hn,ze._api,qe)}},updateMethods={prepareAndUpdate:function(ze){prepare$1(this),updateMethods.update.call(this,ze,{optionChanged:ze.newOption!=null})},update:function(ze,Ue){var qe=this._model,Et=this._api,Lt=this._zr,hn=this._coordSysMgr,vn=this._scheduler;if(qe){qe.setUpdatePayload(ze),vn.restoreData(qe,ze),vn.performSeriesTasks(qe),hn.create(qe,Et),vn.performDataProcessorTasks(qe,ze),updateStreamModes(this,qe),hn.update(qe,Et),ie(qe),vn.performVisualTasks(qe,ze),render$2(this,qe,Et,ze,Ue);var _n=qe.get("backgroundColor")||"transparent",bn=qe.get("darkMode");Lt.setBackgroundColor(_n),bn!=null&&bn!=="auto"&&Lt.setDarkMode(bn),lifecycle$1.trigger("afterupdate",qe,Et)}},updateTransform:function(ze){var Ue=this,qe=this._model,Et=this._api;if(qe){qe.setUpdatePayload(ze);var Lt=[];qe.eachComponent(function(vn,_n){if(vn!=="series"){var bn=Ue.getViewOfComponentModel(_n);if(bn&&bn.__alive)if(bn.updateTransform){var Sn=bn.updateTransform(_n,qe,Et,ze);Sn&&Sn.update&&Lt.push(bn)}else Lt.push(bn)}});var hn=createHashMap();qe.eachSeries(function(vn){var _n=Ue._chartsMap[vn.__viewId];if(_n.updateTransform){var bn=_n.updateTransform(vn,qe,Et,ze);bn&&bn.update&&hn.set(vn.uid,1)}else hn.set(vn.uid,1)}),ie(qe),this._scheduler.performVisualTasks(qe,ze,{setDirty:!0,dirtyMap:hn}),renderSeries(this,qe,Et,ze,{},hn),lifecycle$1.trigger("afterupdate",qe,Et)}},updateView:function(ze){var Ue=this._model;Ue&&(Ue.setUpdatePayload(ze),ChartView$1.markUpdateMethod(ze,"updateView"),ie(Ue),this._scheduler.performVisualTasks(Ue,ze,{setDirty:!0}),render$2(this,Ue,this._api,ze,{}),lifecycle$1.trigger("afterupdate",Ue,this._api))},updateVisual:function(ze){var Ue=this,qe=this._model;qe&&(qe.setUpdatePayload(ze),qe.eachSeries(function(Et){Et.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(ze,"updateVisual"),ie(qe),this._scheduler.performVisualTasks(qe,ze,{visualType:"visual",setDirty:!0}),qe.eachComponent(function(Et,Lt){if(Et!=="series"){var hn=Ue.getViewOfComponentModel(Lt);hn&&hn.__alive&&hn.updateVisual(Lt,qe,Ue._api,ze)}}),qe.eachSeries(function(Et){var Lt=Ue._chartsMap[Et.__viewId];Lt.updateVisual(Et,qe,Ue._api,ze)}),lifecycle$1.trigger("afterupdate",qe,this._api))},updateLayout:function(ze){updateMethods.update.call(this,ze)}},doConvertPixel=function(ze,Ue,qe,Et){if(ze._disposed){ze.id;return}for(var Lt=ze._model,hn=ze._coordSysMgr.getCoordinateSystems(),vn,_n=parseFinder$1(Lt,qe),bn=0;bn<hn.length;bn++){var Sn=hn[bn];if(Sn[Ue]&&(vn=Sn[Ue](Lt,_n,Et))!=null)return vn}},updateStreamModes=function(ze,Ue){var qe=ze._chartsMap,Et=ze._scheduler;Ue.eachSeries(function(Lt){Et.updateStreamModes(Lt,qe[Lt.__viewId])})},doDispatchAction=function(ze,Ue){var qe=this,Et=this.getModel(),Lt=ze.type,hn=ze.escapeConnect,vn=actions[Lt],_n=vn.actionInfo,bn=(_n.update||"update").split(":"),Sn=bn.pop(),Cn=bn[0]!=null&&parseClassType(bn[0]);this[IN_MAIN_PROCESS_KEY]=!0;var En=[ze],$n=!1;ze.batch&&($n=!0,En=map$2(ze.batch,function(Nn){return Nn=defaults(extend({},Nn),ze),Nn.batch=null,Nn}));var wn=[],Tn,xn=isSelectChangePayload(ze),Pn=isHighDownPayload(ze);if(Pn&&allLeaveBlur(this._api),each$c(En,function(Nn){if(Tn=vn.action(Nn,qe._model,qe._api),Tn=Tn||extend({},Nn),Tn.type=_n.event||Tn.type,wn.push(Tn),Pn){var Fn=preParseFinder(ze),Ln=Fn.queryOptionMap,In=Fn.mainTypeSpecified,Vn=In?Ln.keys()[0]:"series";updateDirectly(qe,Sn,Nn,Vn),markStatusToUpdate(qe)}else xn?(updateDirectly(qe,Sn,Nn,"series"),markStatusToUpdate(qe)):Cn&&updateDirectly(qe,Sn,Nn,Cn.main,Cn.sub)}),Sn!=="none"&&!Pn&&!xn&&!Cn)try{this[PENDING_UPDATE]?(prepare$1(this),updateMethods.update.call(this,ze),this[PENDING_UPDATE]=null):updateMethods[Sn].call(this,ze)}catch(Nn){throw this[IN_MAIN_PROCESS_KEY]=!1,Nn}if($n?Tn={type:_n.event||Lt,escapeConnect:hn,batch:wn}:Tn=wn[0],this[IN_MAIN_PROCESS_KEY]=!1,!Ue){var kn=this._messageCenter;if(kn.trigger(Tn.type,Tn),xn){var An={type:"selectchanged",escapeConnect:hn,selected:getAllSelectedIndices(Et),isFromClick:ze.isFromClick||!1,fromAction:ze.type,fromActionPayload:ze};kn.trigger(An.type,An)}}},flushPendingActions=function(ze){for(var Ue=this._pendingActions;Ue.length;){var qe=Ue.shift();doDispatchAction.call(this,qe,ze)}},triggerUpdatedEvent=function(ze){!ze&&this.trigger("updated")},bindRenderedEvent=function(ze,Ue){ze.on("rendered",function(qe){Ue.trigger("rendered",qe),ze.animation.isFinished()&&!Ue[PENDING_UPDATE]&&!Ue._scheduler.unfinished&&!Ue._pendingActions.length&&Ue.trigger("finished")})},bindMouseEvent=function(ze,Ue){ze.on("mouseover",function(qe){var Et=qe.target,Lt=findEventDispatcher(Et,isHighDownDispatcher);Lt&&(handleGlobalMouseOverForHighDown(Lt,qe,Ue._api),markStatusToUpdate(Ue))}).on("mouseout",function(qe){var Et=qe.target,Lt=findEventDispatcher(Et,isHighDownDispatcher);Lt&&(handleGlobalMouseOutForHighDown(Lt,qe,Ue._api),markStatusToUpdate(Ue))}).on("click",function(qe){var Et=qe.target,Lt=findEventDispatcher(Et,function(_n){return getECData(_n).dataIndex!=null},!0);if(Lt){var hn=Lt.selected?"unselect":"select",vn=getECData(Lt);Ue._api.dispatchAction({type:hn,dataType:vn.dataType,dataIndexInside:vn.dataIndex,seriesIndex:vn.seriesIndex,isFromClick:!0})}})};function ie(ze){ze.clearColorPalette(),ze.eachSeries(function(Ue){Ue.clearColorPalette()})}function le(ze){var Ue=[],qe=[],Et=!1;if(ze.eachComponent(function(_n,bn){var Sn=bn.get("zlevel")||0,Cn=bn.get("z")||0,En=bn.getZLevelKey();Et=Et||!!En,(_n==="series"?qe:Ue).push({zlevel:Sn,z:Cn,idx:bn.componentIndex,type:_n,key:En})}),Et){var Lt=Ue.concat(qe),hn,vn;sort(Lt,function(_n,bn){return _n.zlevel===bn.zlevel?_n.z-bn.z:_n.zlevel-bn.zlevel}),each$c(Lt,function(_n){var bn=ze.getComponent(_n.type,_n.idx),Sn=_n.zlevel,Cn=_n.key;hn!=null&&(Sn=Math.max(hn,Sn)),Cn?(Sn===hn&&Cn!==vn&&Sn++,vn=Cn):vn&&(Sn===hn&&Sn++,vn=""),hn=Sn,bn.setZLevel(Sn)})}}render$2=function(ze,Ue,qe,Et,Lt){le(Ue),renderComponents(ze,Ue,qe,Et,Lt),each$c(ze._chartsViews,function(hn){hn.__alive=!1}),renderSeries(ze,Ue,qe,Et,Lt),each$c(ze._chartsViews,function(hn){hn.__alive||hn.remove(Ue,qe)})},renderComponents=function(ze,Ue,qe,Et,Lt,hn){each$c(hn||ze._componentsViews,function(vn){var _n=vn.__model;xe(_n,vn),vn.render(_n,Ue,qe,Et),Ce(_n,vn),Ie(_n,vn)})},renderSeries=function(ze,Ue,qe,Et,Lt,hn){var vn=ze._scheduler;Lt=extend(Lt||{},{updatedSeries:Ue.getSeries()}),lifecycle$1.trigger("series:beforeupdate",Ue,qe,Lt);var _n=!1;Ue.eachSeries(function(bn){var Sn=ze._chartsMap[bn.__viewId];Sn.__alive=!0;var Cn=Sn.renderTask;vn.updatePayload(Cn,Et),xe(bn,Sn),hn&&hn.get(bn.uid)&&Cn.dirty(),Cn.perform(vn.getPerformArgs(Cn))&&(_n=!0),Sn.group.silent=!!bn.get("silent"),_e(bn,Sn),updateSeriesElementSelection(bn)}),vn.unfinished=_n||vn.unfinished,lifecycle$1.trigger("series:layoutlabels",Ue,qe,Lt),lifecycle$1.trigger("series:transition",Ue,qe,Lt),Ue.eachSeries(function(bn){var Sn=ze._chartsMap[bn.__viewId];Ce(bn,Sn),Ie(bn,Sn)}),pe(ze,Ue),lifecycle$1.trigger("series:afterupdate",Ue,qe,Lt)},markStatusToUpdate=function(ze){ze[STATUS_NEEDS_UPDATE_KEY]=!0,ze.getZr().wakeUp()},applyChangedStates=function(ze){ze[STATUS_NEEDS_UPDATE_KEY]&&(ze.getZr().storage.traverse(function(Ue){isElementRemoved(Ue)||ue(Ue)}),ze[STATUS_NEEDS_UPDATE_KEY]=!1)};function ue(ze){for(var Ue=[],qe=ze.currentStates,Et=0;Et<qe.length;Et++){var Lt=qe[Et];Lt==="emphasis"||Lt==="blur"||Lt==="select"||Ue.push(Lt)}ze.selected&&ze.states.select&&Ue.push("select"),ze.hoverState===HOVER_STATE_EMPHASIS&&ze.states.emphasis?Ue.push("emphasis"):ze.hoverState===HOVER_STATE_BLUR&&ze.states.blur&&Ue.push("blur"),ze.useStates(Ue)}function pe(ze,Ue){var qe=ze._zr,Et=qe.storage,Lt=0;Et.traverse(function(hn){hn.isGroup||Lt++}),Lt>Ue.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&Ue.eachSeries(function(hn){if(!hn.preventUsingHoverLayer){var vn=ze._chartsMap[hn.__viewId];vn.__alive&&vn.eachRendered(function(_n){_n.states.emphasis&&(_n.states.emphasis.hoverLayer=!0)})}})}function _e(ze,Ue){var qe=ze.get("blendMode")||null;Ue.eachRendered(function(Et){Et.isGroup||(Et.style.blend=qe)})}function Ce(ze,Ue){if(!ze.preventAutoZ){var qe=ze.get("z")||0,Et=ze.get("zlevel")||0;Ue.eachRendered(function(Lt){return $e(Lt,qe,Et,-1/0),!0})}}function $e(ze,Ue,qe,Et){var Lt=ze.getTextContent(),hn=ze.getTextGuideLine(),vn=ze.isGroup;if(vn)for(var _n=ze.childrenRef(),bn=0;bn<_n.length;bn++)Et=Math.max($e(_n[bn],Ue,qe,Et),Et);else ze.z=Ue,ze.zlevel=qe,Et=Math.max(ze.z2,Et);if(Lt&&(Lt.z=Ue,Lt.zlevel=qe,isFinite(Et)&&(Lt.z2=Et+2)),hn){var Sn=ze.textGuideLineConfig;hn.z=Ue,hn.zlevel=qe,isFinite(Et)&&(hn.z2=Et+(Sn&&Sn.showAbove?1:-1))}return Et}function xe(ze,Ue){Ue.eachRendered(function(qe){if(!isElementRemoved(qe)){var Et=qe.getTextContent(),Lt=qe.getTextGuideLine();qe.stateTransition&&(qe.stateTransition=null),Et&&Et.stateTransition&&(Et.stateTransition=null),Lt&&Lt.stateTransition&&(Lt.stateTransition=null),qe.hasState()?(qe.prevStates=qe.currentStates,qe.clearStates()):qe.prevStates&&(qe.prevStates=null)}})}function Ie(ze,Ue){var qe=ze.getModel("stateAnimation"),Et=ze.isAnimationEnabled(),Lt=qe.get("duration"),hn=Lt>0?{duration:Lt,delay:qe.get("delay"),easing:qe.get("easing")}:null;Ue.eachRendered(function(vn){if(vn.states&&vn.states.emphasis){if(isElementRemoved(vn))return;if(vn instanceof Path$1&&savePathStates(vn),vn.__dirty){var _n=vn.prevStates;_n&&vn.useStates(_n)}if(Et){vn.stateTransition=hn;var bn=vn.getTextContent(),Sn=vn.getTextGuideLine();bn&&(bn.stateTransition=hn),Sn&&(Sn.stateTransition=hn)}vn.__dirty&&ue(vn)}})}createExtensionAPI=function(ze){return new(function(Ue){__extends(qe,Ue);function qe(){return Ue!==null&&Ue.apply(this,arguments)||this}return qe.prototype.getCoordinateSystems=function(){return ze._coordSysMgr.getCoordinateSystems()},qe.prototype.getComponentByElement=function(Et){for(;Et;){var Lt=Et.__ecComponentInfo;if(Lt!=null)return ze._model.getComponent(Lt.mainType,Lt.index);Et=Et.parent}},qe.prototype.enterEmphasis=function(Et,Lt){enterEmphasis(Et,Lt),markStatusToUpdate(ze)},qe.prototype.leaveEmphasis=function(Et,Lt){leaveEmphasis(Et,Lt),markStatusToUpdate(ze)},qe.prototype.enterBlur=function(Et){enterBlur(Et),markStatusToUpdate(ze)},qe.prototype.leaveBlur=function(Et){leaveBlur(Et),markStatusToUpdate(ze)},qe.prototype.enterSelect=function(Et){enterSelect(Et),markStatusToUpdate(ze)},qe.prototype.leaveSelect=function(Et){leaveSelect(Et),markStatusToUpdate(ze)},qe.prototype.getModel=function(){return ze.getModel()},qe.prototype.getViewOfComponentModel=function(Et){return ze.getViewOfComponentModel(Et)},qe.prototype.getViewOfSeriesModel=function(Et){return ze.getViewOfSeriesModel(Et)},qe}(ExtensionAPI$1))(ze)},enableConnect=function(ze){function Ue(qe,Et){for(var Lt=0;Lt<qe.length;Lt++){var hn=qe[Lt];hn[CONNECT_STATUS_KEY]=Et}}each$c(eventActionMap,function(qe,Et){ze._messageCenter.on(Et,function(Lt){if(connectedGroups[ze.group]&&ze[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(Lt&&Lt.escapeConnect)return;var hn=ze.makeActionFromEvent(Lt),vn=[];each$c(instances,function(_n){_n!==ze&&_n.group===ze.group&&vn.push(_n)}),Ue(vn,CONNECT_STATUS_PENDING),each$c(vn,function(_n){_n[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&_n.dispatchAction(hn)}),Ue(vn,CONNECT_STATUS_UPDATED)}})})}}(),z}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function($,z,ie){var le=this;function ue(){for(var pe=[],_e=0;_e<arguments.length;_e++)pe[_e]=arguments[_e];z&&z.apply&&z.apply(this,pe),le.off($,ue)}this.on.call(this,$,ue,ie)};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,ie){var le=!(ie&&ie.ssr);if(le){var ue=getInstanceByDom($);if(ue)return ue}var pe=new ECharts($,z,ie);return pe.id="ec_"+idBase++,instances[pe.id]=pe,le&&setAttribute($,DOM_ATTRIBUTE_KEY,pe.id),enableConnect(pe),lifecycle$1.trigger("afterinit",pe),pe}function connect($){if(isArray$1($)){var z=$;$=null,each$c(z,function(ie){ie.group!=null&&($=ie.group)}),$=$||"g_"+groupIdBase++,each$c(z,function(ie){ie.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,ie){isFunction(z)&&(ie=z,z="");var le=isObject$3($)?$.type:[$,$={event:z}][0];$.event=($.event||le).toLowerCase(),z=$.event,!eventActionMap[z]&&(assert(ACTION_REG.test(le)&&ACTION_REG.test(z)),actions[le]||(actions[le]={action:ie,actionInfo:$}),eventActionMap[z]=le)}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,ie,le,ue){if((isFunction(z)||isObject$3(z))&&(ie=z,z=le),!(indexOf(registeredTasks,ie)>=0)){registeredTasks.push(ie);var pe=Scheduler$1.wrapStageHandler(ie,ue);pe.__prio=z,pe.__raw=ie,$.push(pe)}}function registerLoading($,z){loadingEffects[$]=z}function setCanvasCreator($){setPlatformAPI({createCanvas:$})}function registerMap($,z,ie){var le=getImpl("registerMap");le&&le($,z,ie)}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,ie,le,ue,pe,_e){this._old=z,this._new=ie,this._oldKeyGetter=le||defaultKeyGetter,this._newKeyGetter=ue||defaultKeyGetter,this.context=pe,this._diffModeMultiple=_e==="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,ie=this._new,le={},ue=new Array(z.length),pe=new Array(ie.length);this._initIndexMap(z,null,ue,"_oldKeyGetter"),this._initIndexMap(ie,le,pe,"_newKeyGetter");for(var _e=0;_e<z.length;_e++){var Ce=ue[_e],$e=le[Ce],xe=dataIndexMapValueLength($e);if(xe>1){var Ie=$e.shift();$e.length===1&&(le[Ce]=$e[0]),this._update&&this._update(Ie,_e)}else xe===1?(le[Ce]=null,this._update&&this._update($e,_e)):this._remove&&this._remove(_e)}this._performRestAdd(pe,le)},$.prototype._executeMultiple=function(){var z=this._old,ie=this._new,le={},ue={},pe=[],_e=[];this._initIndexMap(z,le,pe,"_oldKeyGetter"),this._initIndexMap(ie,ue,_e,"_newKeyGetter");for(var Ce=0;Ce<pe.length;Ce++){var $e=pe[Ce],xe=le[$e],Ie=ue[$e],ze=dataIndexMapValueLength(xe),Ue=dataIndexMapValueLength(Ie);if(ze>1&&Ue===1)this._updateManyToOne&&this._updateManyToOne(Ie,xe),ue[$e]=null;else if(ze===1&&Ue>1)this._updateOneToMany&&this._updateOneToMany(Ie,xe),ue[$e]=null;else if(ze===1&&Ue===1)this._update&&this._update(Ie,xe),ue[$e]=null;else if(ze>1&&Ue>1)this._updateManyToMany&&this._updateManyToMany(Ie,xe),ue[$e]=null;else if(ze>1)for(var qe=0;qe<ze;qe++)this._remove&&this._remove(xe[qe]);else this._remove&&this._remove(xe)}this._performRestAdd(_e,ue)},$.prototype._performRestAdd=function(z,ie){for(var le=0;le<z.length;le++){var ue=z[le],pe=ie[ue],_e=dataIndexMapValueLength(pe);if(_e>1)for(var Ce=0;Ce<_e;Ce++)this._add&&this._add(pe[Ce]);else _e===1&&this._add&&this._add(pe);ie[ue]=null}},$.prototype._initIndexMap=function(z,ie,le,ue){for(var pe=this._diffModeMultiple,_e=0;_e<z.length;_e++){var Ce="_ec_"+this[ue](z[_e],_e);if(pe||(le[_e]=Ce),!!ie){var $e=ie[Ce],xe=dataIndexMapValueLength($e);xe===0?(ie[Ce]=_e,pe&&le.push(Ce)):xe===1?ie[Ce]=[$e,_e]:$e.push(_e)}}},$}();const DataDiffer$1=DataDiffer;var DimensionUserOuput=function(){function $(z,ie){this._encode=z,this._schema=ie}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 ie={},le=ie.encode={},ue=createHashMap(),pe=[],_e=[],Ce={};each$c($.dimensions,function(Ue){var qe=$.getDimensionInfo(Ue),Et=qe.coordDim;if(Et){var Lt=qe.coordDimIndex;getOrCreateEncodeArr(le,Et)[Lt]=Ue,qe.isExtraCoord||(ue.set(Et,1),mayLabelDimType(qe.type)&&(pe[0]=Ue),getOrCreateEncodeArr(Ce,Et)[Lt]=$.getDimensionIndex(qe.name)),qe.defaultTooltip&&_e.push(Ue)}VISUAL_DIMENSIONS.each(function(hn,vn){var _n=getOrCreateEncodeArr(le,vn),bn=qe.otherDims[vn];bn!=null&&bn!==!1&&(_n[bn]=qe.name)})});var $e=[],xe={};ue.each(function(Ue,qe){var Et=le[qe];xe[qe]=Et[0],$e=$e.concat(Et)}),ie.dataDimsOnCoord=$e,ie.dataDimIndicesOnCoord=map$2($e,function(Ue){return $.getDimensionInfo(Ue).storeDimIndex}),ie.encodeFirstDimNotExtra=xe;var Ie=le.label;Ie&&Ie.length&&(pe=Ie.slice());var ze=le.tooltip;return ze&&ze.length?_e=ze.slice():_e.length||(_e=pe.slice()),le.defaultedLabel=pe,le.defaultedTooltip=_e,ie.userOutput=new DimensionUserOuput(Ce,z),ie}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 ie=this.source.dimensionsDefine;if(ie)return ie[z]},$.prototype.makeStoreSchema=function(){for(var z=this._fullDimCount,ie=shouldRetrieveDataByName(this.source),le=!shouldOmitUnusedDimensions(z),ue="",pe=[],_e=0,Ce=0;_e<z;_e++){var $e=void 0,xe=void 0,Ie=void 0,ze=this.dimensions[Ce];if(ze&&ze.storeDimIndex===_e)$e=ie?ze.name:null,xe=ze.type,Ie=ze.ordinalMeta,Ce++;else{var Ue=this.getSourceDimension(_e);Ue&&($e=ie?Ue.name:null,xe=Ue.type)}pe.push({property:$e,type:xe,ordinalMeta:Ie}),ie&&$e!=null&&(!ze||!ze.isCalculationCoord)&&(ue+=le?$e.replace(/\`/g,"`1").replace(/\$/g,"`2"):$e),ue+="$",ue+=dimTypeShort[xe]||"f",Ie&&(ue+=Ie.uid),ue+="$"}var qe=this.source,Et=[qe.seriesLayoutBy,qe.startIndex,ue].join("$$");return{dimensions:pe,hash:Et}},$.prototype.makeOutputDimensionNames=function(){for(var z=[],ie=0,le=0;ie<this._fullDimCount;ie++){var ue=void 0,pe=this.dimensions[le];if(pe&&pe.storeDimIndex===ie)pe.isCalculationCoord||(ue=pe.name),le++;else{var _e=this.getSourceDimension(ie);_e&&(ue=_e.name)}z.push(ue)}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(),ie=0;ie<($||[]).length;ie++){var le=$[ie],ue=isObject$3(le)?le.name:le;ue!=null&&z.get(ue)==null&&z.set(ue,ie)}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,ie){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 le,ue=!1;isSeriesDataSchema(z)?(le=z.dimensions,this._dimOmitted=z.isDimensionOmitted(),this._schema=z):(ue=!0,le=z),le=le||["x","y"];for(var pe={},_e=[],Ce={},$e=!1,xe={},Ie=0;Ie<le.length;Ie++){var ze=le[Ie],Ue=isString(ze)?new SeriesDimensionDefine$1({name:ze}):ze instanceof SeriesDimensionDefine$1?ze:new SeriesDimensionDefine$1(ze),qe=Ue.name;Ue.type=Ue.type||"float",Ue.coordDim||(Ue.coordDim=qe,Ue.coordDimIndex=0);var Et=Ue.otherDims=Ue.otherDims||{};_e.push(qe),pe[qe]=Ue,xe[qe]!=null&&($e=!0),Ue.createInvertedIndices&&(Ce[qe]=[]),Et.itemName===0&&(this._nameDimIdx=Ie),Et.itemId===0&&(this._idDimIdx=Ie),ue&&(Ue.storeDimIndex=Ie)}if(this.dimensions=_e,this._dimInfos=pe,this._initGetDimensionInfo($e),this.hostModel=ie,this._invertedIndicesMap=Ce,this._dimOmitted){var Lt=this._dimIdxToName=createHashMap();each$c(_e,function(hn){Lt.set(pe[hn].storeDimIndex,hn)})}}return $.prototype.getDimension=function(z){var ie=this._recognizeDimIndex(z);if(ie==null)return z;if(ie=z,!this._dimOmitted)return this.dimensions[ie];var le=this._dimIdxToName.get(ie);if(le!=null)return le;var ue=this._schema.getSourceDimension(ie);if(ue)return ue.name},$.prototype.getDimensionIndex=function(z){var ie=this._recognizeDimIndex(z);if(ie!=null)return ie;if(z==null)return-1;var le=this._getDimInfo(z);return le?le.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 ie=this.getDimensionIndex(z);return ie},$.prototype.getDimensionInfo=function(z){return this._getDimInfo(this.getDimension(z))},$.prototype._initGetDimensionInfo=function(z){var ie=this._dimInfos;this._getDimInfo=z?function(le){return ie.hasOwnProperty(le)?ie[le]:void 0}:function(le){return ie[le]}},$.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},$.prototype.mapDimension=function(z,ie){var le=this._dimSummary;if(ie==null)return le.encodeFirstDimNotExtra[z];var ue=le.encode[z];return ue?ue[ie]:null},$.prototype.mapDimensionsAll=function(z){var ie=this._dimSummary,le=ie.encode[z];return(le||[]).slice()},$.prototype.getStore=function(){return this._store},$.prototype.initData=function(z,ie,le){var ue=this,pe;if(z instanceof DataStore$1&&(pe=z),!pe){var _e=this.dimensions,Ce=isSourceInstance(z)||isArrayLike(z)?new DefaultDataProvider(z,_e.length):z;pe=new DataStore$1;var $e=map$1(_e,function(xe){return{type:ue._dimInfos[xe].type,property:xe}});pe.initData(Ce,$e,le)}this._store=pe,this._nameList=(ie||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,pe.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},$.prototype.appendData=function(z){var ie=this._store.appendData(z);this._doInit(ie[0],ie[1])},$.prototype.appendValues=function(z,ie){var le=this._store.appendValues(z,ie.length),ue=le.start,pe=le.end,_e=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),ie)for(var Ce=ue;Ce<pe;Ce++){var $e=Ce-ue;this._nameList[Ce]=ie[$e],_e&&makeIdFromName(this,Ce)}},$.prototype._updateOrdinalMeta=function(){for(var z=this._store,ie=this.dimensions,le=0;le<ie.length;le++){var ue=this._dimInfos[ie[le]];ue.ordinalMeta&&z.collectOrdinalMeta(ue.storeDimIndex,ue.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,ie){if(!(z>=ie)){var le=this._store,ue=le.getProvider();this._updateOrdinalMeta();var pe=this._nameList,_e=this._idList,Ce=ue.getSource().sourceFormat,$e=Ce===SOURCE_FORMAT_ORIGINAL;if($e&&!ue.pure)for(var xe=[],Ie=z;Ie<ie;Ie++){var ze=ue.getItem(Ie,xe);if(!this.hasItemOption&&isDataItemOption(ze)&&(this.hasItemOption=!0),ze){var Ue=ze.name;pe[Ie]==null&&Ue!=null&&(pe[Ie]=convertOptionIdName(Ue,null));var qe=ze.id;_e[Ie]==null&&qe!=null&&(_e[Ie]=convertOptionIdName(qe,null))}}if(this._shouldMakeIdFromName())for(var Ie=z;Ie<ie;Ie++)makeIdFromName(this,Ie);prepareInvertedIndex(this)}},$.prototype.getApproximateExtent=function(z){return this._approximateExtent[z]||this._store.getDataExtent(this._getStoreDimIndex(z))},$.prototype.setApproximateExtent=function(z,ie){ie=this.getDimension(ie),this._approximateExtent[ie]=z.slice()},$.prototype.getCalculationInfo=function(z){return this._calculationInfo[z]},$.prototype.setCalculationInfo=function(z,ie){isObject$1(z)?extend(this._calculationInfo,z):this._calculationInfo[z]=ie},$.prototype.getName=function(z){var ie=this.getRawIndex(z),le=this._nameList[ie];return le==null&&this._nameDimIdx!=null&&(le=getIdNameFromStore(this,this._nameDimIdx,ie)),le==null&&(le=""),le},$.prototype._getCategory=function(z,ie){var le=this._store.get(z,ie),ue=this._store.getOrdinalMeta(z);return ue?ue.categories[le]:le},$.prototype.getId=function(z){return getId(this,this.getRawIndex(z))},$.prototype.count=function(){return this._store.count()},$.prototype.get=function(z,ie){var le=this._store,ue=this._dimInfos[z];if(ue)return le.get(ue.storeDimIndex,ie)},$.prototype.getByRawIndex=function(z,ie){var le=this._store,ue=this._dimInfos[z];if(ue)return le.getByRawIndex(ue.storeDimIndex,ie)},$.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,ie){var le=this,ue=this._store;return isArray$1(z)?ue.getValues(map$1(z,function(pe){return le._getStoreDimIndex(pe)}),ie):ue.getValues(z)},$.prototype.hasValue=function(z){for(var ie=this._dimSummary.dataDimIndicesOnCoord,le=0,ue=ie.length;le<ue;le++)if(isNaN(this._store.get(ie[le],z)))return!1;return!0},$.prototype.indexOfName=function(z){for(var ie=0,le=this._store.count();ie<le;ie++)if(this.getName(ie)===z)return ie;return-1},$.prototype.getRawIndex=function(z){return this._store.getRawIndex(z)},$.prototype.indexOfRawIndex=function(z){return this._store.indexOfRawIndex(z)},$.prototype.rawIndexOf=function(z,ie){var le=z&&this._invertedIndicesMap[z],ue=le[ie];return ue==null||isNaN(ue)?INDEX_NOT_FOUND:ue},$.prototype.indicesOfNearest=function(z,ie,le){return this._store.indicesOfNearest(this._getStoreDimIndex(z),ie,le)},$.prototype.each=function(z,ie,le){isFunction(z)&&(le=ie,ie=z,z=[]);var ue=le||this,pe=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);this._store.each(pe,ue?bind$1(ie,ue):ie)},$.prototype.filterSelf=function(z,ie,le){isFunction(z)&&(le=ie,ie=z,z=[]);var ue=le||this,pe=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);return this._store=this._store.filter(pe,ue?bind$1(ie,ue):ie),this},$.prototype.selectRange=function(z){var ie=this,le={},ue=keys(z);return each$c(ue,function(pe){var _e=ie._getStoreDimIndex(pe);le[_e]=z[pe]}),this._store=this._store.selectRange(le),this},$.prototype.mapArray=function(z,ie,le){isFunction(z)&&(le=ie,ie=z,z=[]),le=le||this;var ue=[];return this.each(z,function(){ue.push(ie&&ie.apply(this,arguments))},le),ue},$.prototype.map=function(z,ie,le,ue){var pe=le||ue||this,_e=map$1(normalizeDimensions(z),this._getStoreDimIndex,this),Ce=cloneListForMapAndSample(this);return Ce._store=this._store.map(_e,pe?bind$1(ie,pe):ie),Ce},$.prototype.modify=function(z,ie,le,ue){var pe=le||ue||this,_e=map$1(normalizeDimensions(z),this._getStoreDimIndex,this);this._store.modify(_e,pe?bind$1(ie,pe):ie)},$.prototype.downSample=function(z,ie,le,ue){var pe=cloneListForMapAndSample(this);return pe._store=this._store.downSample(this._getStoreDimIndex(z),ie,le,ue),pe},$.prototype.lttbDownSample=function(z,ie){var le=cloneListForMapAndSample(this);return le._store=this._store.lttbDownSample(this._getStoreDimIndex(z),ie),le},$.prototype.getRawDataItem=function(z){return this._store.getRawDataItem(z)},$.prototype.getItemModel=function(z){var ie=this.hostModel,le=this.getRawDataItem(z);return new Model$1(le,ie,ie&&ie.ecModel)},$.prototype.diff=function(z){var ie=this;return new DataDiffer$1(z?z.getStore().getIndices():[],this.getStore().getIndices(),function(le){return getId(z,le)},function(le){return getId(ie,le)})},$.prototype.getVisual=function(z){var ie=this._visual;return ie&&ie[z]},$.prototype.setVisual=function(z,ie){this._visual=this._visual||{},isObject$1(z)?extend(this._visual,z):this._visual[z]=ie},$.prototype.getItemVisual=function(z,ie){var le=this._itemVisuals[z],ue=le&&le[ie];return ue??this.getVisual(ie)},$.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},$.prototype.ensureUniqueItemVisual=function(z,ie){var le=this._itemVisuals,ue=le[z];ue||(ue=le[z]={});var pe=ue[ie];return pe==null&&(pe=this.getVisual(ie),isArray$1(pe)?pe=pe.slice():isObject$1(pe)&&(pe=extend({},pe)),ue[ie]=pe),pe},$.prototype.setItemVisual=function(z,ie,le){var ue=this._itemVisuals[z]||{};this._itemVisuals[z]=ue,isObject$1(ie)?extend(ue,ie):ue[ie]=le},$.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},$.prototype.setLayout=function(z,ie){isObject$1(z)?extend(this._layout,z):this._layout[z]=ie},$.prototype.getLayout=function(z){return this._layout[z]},$.prototype.getItemLayout=function(z){return this._itemLayouts[z]},$.prototype.setItemLayout=function(z,ie,le){this._itemLayouts[z]=le?extend(this._itemLayouts[z]||{},ie):ie},$.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},$.prototype.setItemGraphicEl=function(z,ie){var le=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(le,this.dataType,z,ie),this._graphicEls[z]=ie},$.prototype.getItemGraphicEl=function(z){return this._graphicEls[z]},$.prototype.eachItemGraphicEl=function(z,ie){each$c(this._graphicEls,function(le,ue){le&&z&&z.call(ie,le,ue)})},$.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,ie){var le=this[z];isFunction(le)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var ue=le.apply(this,arguments);return ie.apply(this,[ue].concat(slice(arguments)))})},$.internalField=function(){prepareInvertedIndex=function(z){var ie=z._invertedIndicesMap;each$c(ie,function(le,ue){var pe=z._dimInfos[ue],_e=pe.ordinalMeta,Ce=z._store;if(_e){le=ie[ue]=new CtorInt32Array(_e.categories.length);for(var $e=0;$e<le.length;$e++)le[$e]=INDEX_NOT_FOUND;for(var $e=0;$e<Ce.count();$e++)le[Ce.get(pe.storeDimIndex,$e)]=$e}})},getIdNameFromStore=function(z,ie,le){return convertOptionIdName(z._getCategory(ie,le),null)},getId=function(z,ie){var le=z._idList[ie];return le==null&&z._idDimIdx!=null&&(le=getIdNameFromStore(z,z._idDimIdx,ie)),le==null&&(le=ID_PREFIX+ie),le},normalizeDimensions=function(z){return isArray$1(z)||(z=z!=null?[z]:[]),z},cloneListForMapAndSample=function(z){var ie=new $(z._schema?z._schema:map$1(z.dimensions,z._getDimInfo,z),z.hostModel);return transferProperties(ie,z),ie},transferProperties=function(z,ie){each$c(TRANSFERABLE_PROPERTIES.concat(ie.__wrappedMethods||[]),function(le){ie.hasOwnProperty(le)&&(z[le]=ie[le])}),z.__wrappedMethods=ie.__wrappedMethods,each$c(CLONE_PROPERTIES,function(le){z[le]=clone$3(ie[le])}),z._calculationInfo=extend({},ie._calculationInfo)},makeIdFromName=function(z,ie){var le=z._nameList,ue=z._idList,pe=z._nameDimIdx,_e=z._idDimIdx,Ce=le[ie],$e=ue[ie];if(Ce==null&&pe!=null&&(le[ie]=Ce=getIdNameFromStore(z,pe,ie)),$e==null&&_e!=null&&(ue[ie]=$e=getIdNameFromStore(z,_e,ie)),$e==null&&Ce!=null){var xe=z._nameRepeatCount,Ie=xe[Ce]=(xe[Ce]||0)+1;$e=Ce,Ie>1&&($e+="__ec__"+Ie),ue[ie]=$e}}}(),$}();const SeriesData$1=SeriesData;function createDimensions($,z){return prepareSeriesDataSchema($,z).dimensions}function prepareSeriesDataSchema($,z){isSourceInstance($)||($=createSourceFromSeriesDataOption($)),z=z||{};var ie=z.coordDimensions||[],le=z.dimensionsDefine||$.dimensionsDefine||[],ue=createHashMap(),pe=[],_e=getDimCount($,ie,le,z.dimensionsCount),Ce=z.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(_e),$e=le===$.dimensionsDefine,xe=$e?ensureSourceDimNameMap($):createDimNameMap(le),Ie=z.encodeDefine;!Ie&&z.encodeDefaulter&&(Ie=z.encodeDefaulter($,_e));for(var ze=createHashMap(Ie),Ue=new CtorInt32Array$1(_e),qe=0;qe<Ue.length;qe++)Ue[qe]=-1;function Et(Tn){var xn=Ue[Tn];if(xn<0){var Pn=le[Tn],kn=isObject$3(Pn)?Pn:{name:Pn},An=new SeriesDimensionDefine$1,Nn=kn.name;Nn!=null&&xe.get(Nn)!=null&&(An.name=An.displayName=Nn),kn.type!=null&&(An.type=kn.type),kn.displayName!=null&&(An.displayName=kn.displayName);var Fn=pe.length;return Ue[Tn]=Fn,An.storeDimIndex=Tn,pe.push(An),An}return pe[xn]}if(!Ce)for(var qe=0;qe<_e;qe++)Et(qe);ze.each(function(Tn,xn){var Pn=normalizeToArray(Tn).slice();if(Pn.length===1&&!isString(Pn[0])&&Pn[0]<0){ze.set(xn,!1);return}var kn=ze.set(xn,[]);each$c(Pn,function(An,Nn){var Fn=isString(An)?xe.get(An):An;Fn!=null&&Fn<_e&&(kn[Nn]=Fn,hn(Et(Fn),xn,Nn))})});var Lt=0;each$c(ie,function(Tn){var xn,Pn,kn,An;if(isString(Tn))xn=Tn,An={};else{An=Tn,xn=An.name;var Nn=An.ordinalMeta;An.ordinalMeta=null,An=extend({},An),An.ordinalMeta=Nn,Pn=An.dimsDef,kn=An.otherDims,An.name=An.coordDim=An.coordDimIndex=An.dimsDef=An.otherDims=null}var Fn=ze.get(xn);if(Fn!==!1){if(Fn=normalizeToArray(Fn),!Fn.length)for(var Ln=0;Ln<(Pn&&Pn.length||1);Ln++){for(;Lt<_e&&Et(Lt).coordDim!=null;)Lt++;Lt<_e&&Fn.push(Lt++)}each$c(Fn,function(In,Vn){var Mn=Et(In);if($e&&An.type!=null&&(Mn.type=An.type),hn(defaults(Mn,An),xn,Vn),Mn.name==null&&Pn){var zn=Pn[Vn];!isObject$3(zn)&&(zn={name:zn}),Mn.name=Mn.displayName=zn.name,Mn.defaultTooltip=zn.defaultTooltip}kn&&defaults(Mn.otherDims,kn)})}});function hn(Tn,xn,Pn){VISUAL_DIMENSIONS.get(xn)!=null?Tn.otherDims[xn]=Pn:(Tn.coordDim=xn,Tn.coordDimIndex=Pn,ue.set(xn,!0))}var vn=z.generateCoord,_n=z.generateCoordCount,bn=_n!=null;_n=vn?_n||1:0;var Sn=vn||"value";function Cn(Tn){Tn.name==null&&(Tn.name=Tn.coordDim)}if(Ce)each$c(pe,function(Tn){Cn(Tn)}),pe.sort(function(Tn,xn){return Tn.storeDimIndex-xn.storeDimIndex});else for(var En=0;En<_e;En++){var $n=Et(En),wn=$n.coordDim;wn==null&&($n.coordDim=genCoordDimName(Sn,ue,bn),$n.coordDimIndex=0,(!vn||_n<=0)&&($n.isExtraCoord=!0),_n--),Cn($n),$n.type==null&&(guessOrdinal($,En)===BE_ORDINAL.Must||$n.isExtraCoord&&($n.otherDims.itemName!=null||$n.otherDims.seriesName!=null))&&($n.type="ordinal")}return removeDuplication(pe),new SeriesDataSchema({source:$,dimensions:pe,fullDimensionCount:_e,dimensionOmitted:Ce})}function removeDuplication($){for(var z=createHashMap(),ie=0;ie<$.length;ie++){var le=$[ie],ue=le.name,pe=z.get(ue)||0;pe>0&&(le.name=ue+(pe-1)),pe++,z.set(ue,pe)}}function getDimCount($,z,ie,le){var ue=Math.max($.dimensionsDetectedCount||1,z.length,ie.length,le||0);return each$c(z,function(pe){var _e;isObject$3(pe)&&(_e=pe.dimsDef)&&(ue=Math.max(ue,_e.length))}),ue}function genCoordDimName($,z,ie){if(ie||z.hasKey($)){for(var le=0;z.hasKey($+le);)le++;$+=le}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"),ie=new CoordSysInfo(z),le=fetchers[z];if(le)return le($,ie,ie.axisMap,ie.categoryAxisMap),ie}var fetchers={cartesian2d:function($,z,ie,le){var ue=$.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],pe=$.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];z.coordSysDims=["x","y"],ie.set("x",ue),ie.set("y",pe),isCategory(ue)&&(le.set("x",ue),z.firstCategoryDimIndex=0),isCategory(pe)&&(le.set("y",pe),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=1))},singleAxis:function($,z,ie,le){var ue=$.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];z.coordSysDims=["single"],ie.set("single",ue),isCategory(ue)&&(le.set("single",ue),z.firstCategoryDimIndex=0)},polar:function($,z,ie,le){var ue=$.getReferringComponents("polar",SINGLE_REFERRING).models[0],pe=ue.findAxisModel("radiusAxis"),_e=ue.findAxisModel("angleAxis");z.coordSysDims=["radius","angle"],ie.set("radius",pe),ie.set("angle",_e),isCategory(pe)&&(le.set("radius",pe),z.firstCategoryDimIndex=0),isCategory(_e)&&(le.set("angle",_e),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=1))},geo:function($,z,ie,le){z.coordSysDims=["lng","lat"]},parallel:function($,z,ie,le){var ue=$.ecModel,pe=ue.getComponent("parallel",$.get("parallelIndex")),_e=z.coordSysDims=pe.dimensions.slice();each$c(pe.parallelAxisIndex,function(Ce,$e){var xe=ue.getComponent("parallelAxis",Ce),Ie=_e[$e];ie.set(Ie,xe),isCategory(xe)&&(le.set(Ie,xe),z.firstCategoryDimIndex==null&&(z.firstCategoryDimIndex=$e))})}};function isCategory($){return $.get("type")==="category"}function enableDataStack($,z,ie){ie=ie||{};var le=ie.byIndex,ue=ie.stackedCoordDimension,pe,_e,Ce;isLegacyDimensionsInput(z)?pe=z:(_e=z.schema,pe=_e.dimensions,Ce=z.store);var $e=!!($&&$.get("stack")),xe,Ie,ze,Ue;if(each$c(pe,function(_n,bn){isString(_n)&&(pe[bn]=_n={name:_n}),$e&&!_n.isExtraCoord&&(!le&&!xe&&_n.ordinalMeta&&(xe=_n),!Ie&&_n.type!=="ordinal"&&_n.type!=="time"&&(!ue||ue===_n.coordDim)&&(Ie=_n))}),Ie&&!le&&!xe&&(le=!0),Ie){ze="__\0ecstackresult_"+$.id,Ue="__\0ecstackedover_"+$.id,xe&&(xe.createInvertedIndices=!0);var qe=Ie.coordDim,Et=Ie.type,Lt=0;each$c(pe,function(_n){_n.coordDim===qe&&Lt++});var hn={name:ze,coordDim:qe,coordDimIndex:Lt,type:Et,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:pe.length},vn={name:Ue,coordDim:Ue,coordDimIndex:Lt+1,type:Et,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:pe.length+1};_e?(Ce&&(hn.storeDimIndex=Ce.ensureCalculationDimension(Ue,Et),vn.storeDimIndex=Ce.ensureCalculationDimension(ze,Et)),_e.appendCalculationDimension(hn),_e.appendCalculationDimension(vn)):(pe.push(hn),pe.push(vn))}return{stackedDimension:Ie&&Ie.name,stackedByDimension:xe&&xe.name,isStackedByIndex:le,stackedOverDimension:Ue,stackResultDimension:ze}}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 ie=$.get("coordinateSystem"),le=CoordinateSystem.get(ie),ue;return z&&z.coordSysDims&&(ue=map$2(z.coordSysDims,function(pe){var _e={name:pe},Ce=z.axisMap.get(pe);if(Ce){var $e=Ce.get("type");_e.type=getDimensionTypeByAxis($e)}return _e})),ue||(ue=le&&(le.getDimensionsInfo?le.getDimensionsInfo():le.dimensions.slice())||["x","y"]),ue}function injectOrdinalMeta($,z,ie){var le,ue;return ie&&each$c($,function(pe,_e){var Ce=pe.coordDim,$e=ie.categoryAxisMap.get(Ce);$e&&(le==null&&(le=_e),pe.ordinalMeta=$e.getOrdinalMeta(),z&&(pe.createInvertedIndices=!0)),pe.otherDims.itemName!=null&&(ue=!0)}),!ue&&le!=null&&($[le].otherDims.itemName=0),le}function createSeriesData($,z,ie){ie=ie||{};var le=z.getSourceManager(),ue,pe=!1;$?(pe=!0,ue=createSourceFromSeriesDataOption($)):(ue=le.getSource(),pe=ue.sourceFormat===SOURCE_FORMAT_ORIGINAL);var _e=getCoordSysInfoBySeries(z),Ce=getCoordSysDimDefs(z,_e),$e=ie.useEncodeDefaulter,xe=isFunction($e)?$e:$e?curry$1(makeSeriesEncodeForAxisCoordSys,Ce,z):null,Ie={coordDimensions:Ce,generateCoord:ie.generateCoord,encodeDefine:z.getEncode(),encodeDefaulter:xe,canOmitUnusedDimensions:!pe},ze=prepareSeriesDataSchema(ue,Ie),Ue=injectOrdinalMeta(ze.dimensions,ie.createInvertedIndices,_e),qe=pe?null:le.getSharedDataStore(ze),Et=enableDataStack(z,{schema:ze,store:qe}),Lt=new SeriesData$1(ze,z);Lt.setCalculationInfo(Et);var hn=Ue!=null&&isNeedCompleteOrdinalData(ue)?function(vn,_n,bn,Sn){return Sn===Ue?bn:this.defaultDimValueGetter(vn,_n,bn,Sn)}:null;return Lt.hasItemOption=!1,Lt.initData(pe?ue:qe,null,hn),Lt}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 ie=this._extent;z[0]<ie[0]&&(ie[0]=z[0]),z[1]>ie[1]&&(ie[1]=z[1])},$.prototype.unionExtentFromData=function(z,ie){this.unionExtent(z.getApproximateExtent(ie))},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.setExtent=function(z,ie){var le=this._extent;isNaN(z)||(le[0]=z),isNaN(ie)||(le[1]=ie)},$.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 ie=z.option,le=ie.data,ue=le&&map$2(le,getName);return new $({categories:ue,needCollect:!ue,deduplication:ie.dedplication!==!1})},$.prototype.getOrdinal=function(z){return this._getOrCreateMap().get(z)},$.prototype.parseAndCollect=function(z){var ie,le=this._needCollect;if(!isString(z)&&!le)return z;if(le&&!this._deduplication)return ie=this.categories.length,this.categories[ie]=z,ie;var ue=this._getOrCreateMap();return ie=ue.get(z),ie==null&&(le?(ie=this.categories.length,this.categories[ie]=z,ue.set(z,ie)):ie=NaN),ie},$.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,ie,le){var ue={},pe=$[1]-$[0],_e=ue.interval=nice(pe/z,!0);ie!=null&&_e<ie&&(_e=ue.interval=ie),le!=null&&_e>le&&(_e=ue.interval=le);var Ce=ue.intervalPrecision=getIntervalPrecision(_e),$e=ue.niceTickExtent=[round$1(Math.ceil($[0]/_e)*_e,Ce),round$1(Math.floor($[1]/_e)*_e,Ce)];return fixExtent($e,$),ue}function increaseInterval($){var z=Math.pow(10,quantityExponent($)),ie=$/z;return ie?ie===2?ie=3:ie===3?ie=5:ie*=2:ie=1,round$1(ie*z)}function getIntervalPrecision($){return getPrecision($)+2}function clamp($,z,ie){$[z]=Math.max(Math.min($[z],ie[1]),ie[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(ie){var le=$.call(this,ie)||this;le.type="ordinal";var ue=le.getSetting("ordinalMeta");return ue||(ue=new OrdinalMeta$1({})),isArray$1(ue)&&(ue=new OrdinalMeta$1({categories:map$2(ue,function(pe){return isObject$3(pe)?pe.value:pe})})),le._ordinalMeta=ue,le._extent=le.getSetting("extent")||[0,ue.categories.length-1],le}return z.prototype.parse=function(ie){return ie==null?NaN:isString(ie)?this._ordinalMeta.getOrdinal(ie):Math.round(ie)},z.prototype.contain=function(ie){return ie=this.parse(ie),contain$1(ie,this._extent)&&this._ordinalMeta.categories[ie]!=null},z.prototype.normalize=function(ie){return ie=this._getTickNumber(this.parse(ie)),normalize(ie,this._extent)},z.prototype.scale=function(ie){return ie=Math.round(scale(ie,this._extent)),this.getRawOrdinalNumber(ie)},z.prototype.getTicks=function(){for(var ie=[],le=this._extent,ue=le[0];ue<=le[1];)ie.push({value:ue}),ue++;return ie},z.prototype.getMinorTicks=function(ie){},z.prototype.setSortInfo=function(ie){if(ie==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var le=ie.ordinalNumbers,ue=this._ordinalNumbersByTick=[],pe=this._ticksByOrdinalNumber=[],_e=0,Ce=this._ordinalMeta.categories.length,$e=Math.min(Ce,le.length);_e<$e;++_e){var xe=le[_e];ue[_e]=xe,pe[xe]=_e}for(var Ie=0;_e<Ce;++_e){for(;pe[Ie]!=null;)Ie++;ue.push(Ie),pe[Ie]=_e}},z.prototype._getTickNumber=function(ie){var le=this._ticksByOrdinalNumber;return le&&ie>=0&&ie<le.length?le[ie]:ie},z.prototype.getRawOrdinalNumber=function(ie){var le=this._ordinalNumbersByTick;return le&&ie>=0&&ie<le.length?le[ie]:ie},z.prototype.getLabel=function(ie){if(!this.isBlank()){var le=this.getRawOrdinalNumber(ie.value),ue=this._ordinalMeta.categories[le];return ue==null?"":ue+""}},z.prototype.count=function(){return this._extent[1]-this._extent[0]+1},z.prototype.unionExtentFromData=function(ie,le){this.unionExtent(ie.getApproximateExtent(le))},z.prototype.isInExtentRange=function(ie){return ie=this._getTickNumber(ie),this._extent[0]<=ie&&this._extent[1]>=ie},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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type="interval",ie._interval=0,ie._intervalPrecision=2,ie}return z.prototype.parse=function(ie){return ie},z.prototype.contain=function(ie){return contain$1(ie,this._extent)},z.prototype.normalize=function(ie){return normalize(ie,this._extent)},z.prototype.scale=function(ie){return scale(ie,this._extent)},z.prototype.setExtent=function(ie,le){var ue=this._extent;isNaN(ie)||(ue[0]=parseFloat(ie)),isNaN(le)||(ue[1]=parseFloat(le))},z.prototype.unionExtent=function(ie){var le=this._extent;ie[0]<le[0]&&(le[0]=ie[0]),ie[1]>le[1]&&(le[1]=ie[1]),this.setExtent(le[0],le[1])},z.prototype.getInterval=function(){return this._interval},z.prototype.setInterval=function(ie){this._interval=ie,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(ie)},z.prototype.getTicks=function(ie){var le=this._interval,ue=this._extent,pe=this._niceExtent,_e=this._intervalPrecision,Ce=[];if(!le)return Ce;var $e=1e4;ue[0]<pe[0]&&(ie?Ce.push({value:roundNumber(pe[0]-le,_e)}):Ce.push({value:ue[0]}));for(var xe=pe[0];xe<=pe[1]&&(Ce.push({value:xe}),xe=roundNumber(xe+le,_e),xe!==Ce[Ce.length-1].value);)if(Ce.length>$e)return[];var Ie=Ce.length?Ce[Ce.length-1].value:pe[1];return ue[1]>Ie&&(ie?Ce.push({value:roundNumber(Ie+le,_e)}):Ce.push({value:ue[1]})),Ce},z.prototype.getMinorTicks=function(ie){for(var le=this.getTicks(!0),ue=[],pe=this.getExtent(),_e=1;_e<le.length;_e++){for(var Ce=le[_e],$e=le[_e-1],xe=0,Ie=[],ze=Ce.value-$e.value,Ue=ze/ie;xe<ie-1;){var qe=roundNumber($e.value+(xe+1)*Ue);qe>pe[0]&&qe<pe[1]&&Ie.push(qe),xe++}ue.push(Ie)}return ue},z.prototype.getLabel=function(ie,le){if(ie==null)return"";var ue=le&&le.precision;ue==null?ue=getPrecision(ie.value)||0:ue==="auto"&&(ue=this._intervalPrecision);var pe=roundNumber(ie.value,ue,!0);return addCommas(pe)},z.prototype.calcNiceTicks=function(ie,le,ue){ie=ie||5;var pe=this._extent,_e=pe[1]-pe[0];if(isFinite(_e)){_e<0&&(_e=-_e,pe.reverse());var Ce=intervalScaleNiceTicks(pe,ie,le,ue);this._intervalPrecision=Ce.intervalPrecision,this._interval=Ce.interval,this._niceExtent=Ce.niceTickExtent}},z.prototype.calcNiceExtent=function(ie){var le=this._extent;if(le[0]===le[1])if(le[0]!==0){var ue=Math.abs(le[0]);ie.fixMax||(le[1]+=ue/2),le[0]-=ue/2}else le[1]=1;var pe=le[1]-le[0];isFinite(pe)||(le[0]=0,le[1]=1),this.calcNiceTicks(ie.splitNumber,ie.minInterval,ie.maxInterval);var _e=this._interval;ie.fixMin||(le[0]=roundNumber(Math.floor(le[0]/_e)*_e)),ie.fixMax||(le[1]=roundNumber(Math.ceil(le[1]/_e)*_e))},z.prototype.setNiceExtent=function(ie,le){this._niceExtent=[ie,le]},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 ie=[];return z.eachSeriesByType($,function(le){isOnCartesian(le)&&ie.push(le)}),ie}function getValueAxesMinGaps($){var z={};each$c($,function($e){var xe=$e.coordinateSystem,Ie=xe.getBaseAxis();if(!(Ie.type!=="time"&&Ie.type!=="value"))for(var ze=$e.getData(),Ue=Ie.dim+"_"+Ie.index,qe=ze.getDimensionIndex(ze.mapDimension(Ie.dim)),Et=ze.getStore(),Lt=0,hn=Et.count();Lt<hn;++Lt){var vn=Et.get(qe,Lt);z[Ue]?z[Ue].push(vn):z[Ue]=[vn]}});var ie={};for(var le in z)if(z.hasOwnProperty(le)){var ue=z[le];if(ue){ue.sort(function($e,xe){return $e-xe});for(var pe=null,_e=1;_e<ue.length;++_e){var Ce=ue[_e]-ue[_e-1];Ce>0&&(pe=pe===null?Ce:Math.min(pe,Ce))}ie[le]=pe}}return ie}function makeColumnLayout($){var z=getValueAxesMinGaps($),ie=[];return each$c($,function(le){var ue=le.coordinateSystem,pe=ue.getBaseAxis(),_e=pe.getExtent(),Ce;if(pe.type==="category")Ce=pe.getBandWidth();else if(pe.type==="value"||pe.type==="time"){var $e=pe.dim+"_"+pe.index,xe=z[$e],Ie=Math.abs(_e[1]-_e[0]),ze=pe.scale.getExtent(),Ue=Math.abs(ze[1]-ze[0]);Ce=xe?Ie/Ue*xe:Ie}else{var qe=le.getData();Ce=Math.abs(_e[1]-_e[0])/qe.count()}var Et=parsePercent(le.get("barWidth"),Ce),Lt=parsePercent(le.get("barMaxWidth"),Ce),hn=parsePercent(le.get("barMinWidth")||(isInLargeMode(le)?.5:1),Ce),vn=le.get("barGap"),_n=le.get("barCategoryGap");ie.push({bandWidth:Ce,barWidth:Et,barMaxWidth:Lt,barMinWidth:hn,barGap:vn,barCategoryGap:_n,axisKey:getAxisKey(pe),stackId:getSeriesStackId(le)})}),doCalBarWidthAndOffset(ie)}function doCalBarWidthAndOffset($){var z={};each$c($,function(le,ue){var pe=le.axisKey,_e=le.bandWidth,Ce=z[pe]||{bandWidth:_e,remainedWidth:_e,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},$e=Ce.stacks;z[pe]=Ce;var xe=le.stackId;$e[xe]||Ce.autoWidthCount++,$e[xe]=$e[xe]||{width:0,maxWidth:0};var Ie=le.barWidth;Ie&&!$e[xe].width&&($e[xe].width=Ie,Ie=Math.min(Ce.remainedWidth,Ie),Ce.remainedWidth-=Ie);var ze=le.barMaxWidth;ze&&($e[xe].maxWidth=ze);var Ue=le.barMinWidth;Ue&&($e[xe].minWidth=Ue);var qe=le.barGap;qe!=null&&(Ce.gap=qe);var Et=le.barCategoryGap;Et!=null&&(Ce.categoryGap=Et)});var ie={};return each$c(z,function(le,ue){ie[ue]={};var pe=le.stacks,_e=le.bandWidth,Ce=le.categoryGap;if(Ce==null){var $e=keys(pe).length;Ce=Math.max(35-$e*4,15)+"%"}var xe=parsePercent(Ce,_e),Ie=parsePercent(le.gap,1),ze=le.remainedWidth,Ue=le.autoWidthCount,qe=(ze-xe)/(Ue+(Ue-1)*Ie);qe=Math.max(qe,0),each$c(pe,function(vn){var _n=vn.maxWidth,bn=vn.minWidth;if(vn.width){var Sn=vn.width;_n&&(Sn=Math.min(Sn,_n)),bn&&(Sn=Math.max(Sn,bn)),vn.width=Sn,ze-=Sn+Ie*Sn,Ue--}else{var Sn=qe;_n&&_n<Sn&&(Sn=Math.min(_n,ze)),bn&&bn>Sn&&(Sn=bn),Sn!==qe&&(vn.width=Sn,ze-=Sn+Ie*Sn,Ue--)}}),qe=(ze-xe)/(Ue+(Ue-1)*Ie),qe=Math.max(qe,0);var Et=0,Lt;each$c(pe,function(vn,_n){vn.width||(vn.width=qe),Lt=vn,Et+=vn.width*(1+Ie)}),Lt&&(Et-=Lt.width*Ie);var hn=-Et/2;each$c(pe,function(vn,_n){ie[ue][_n]=ie[ue][_n]||{bandWidth:_e,offset:hn,width:vn.width},hn+=vn.width*(1+Ie)})}),ie}function retrieveColumnLayout($,z,ie){if($&&z){var le=$[getAxisKey(z)];return le!=null&&ie!=null?le[getSeriesStackId(ie)]:le}}function layout$2($,z){var ie=prepareLayoutBarSeries($,z),le=makeColumnLayout(ie);each$c(ie,function(ue){var pe=ue.getData(),_e=ue.coordinateSystem,Ce=_e.getBaseAxis(),$e=getSeriesStackId(ue),xe=le[getAxisKey(Ce)][$e],Ie=xe.offset,ze=xe.width;pe.setLayout({bandWidth:xe.bandWidth,offset:Ie,size:ze})})}function createProgressiveLayout($){return{seriesType:$,plan:createRenderPlanner(),reset:function(z){if(isOnCartesian(z)){var ie=z.getData(),le=z.coordinateSystem,ue=le.getBaseAxis(),pe=le.getOtherAxis(ue),_e=ie.getDimensionIndex(ie.mapDimension(pe.dim)),Ce=ie.getDimensionIndex(ie.mapDimension(ue.dim)),$e=z.get("showBackground",!0),xe=ie.mapDimension(pe.dim),Ie=ie.getCalculationInfo("stackResultDimension"),ze=isDimensionStacked(ie,xe)&&!!ie.getCalculationInfo("stackedOnSeries"),Ue=pe.isHorizontal(),qe=getValueAxisStart(ue,pe),Et=isInLargeMode(z),Lt=z.get("barMinHeight")||0,hn=Ie&&ie.getDimensionIndex(Ie),vn=ie.getLayout("size"),_n=ie.getLayout("offset");return{progress:function(bn,Sn){for(var Cn=bn.count,En=Et&&createFloat32Array(Cn*3),$n=Et&&$e&&createFloat32Array(Cn*3),wn=Et&&createFloat32Array(Cn),Tn=le.master.getRect(),xn=Ue?Tn.width:Tn.height,Pn,kn=Sn.getStore(),An=0;(Pn=bn.next())!=null;){var Nn=kn.get(ze?hn:_e,Pn),Fn=kn.get(Ce,Pn),Ln=qe,In=void 0;ze&&(In=+Nn-kn.get(_e,Pn));var Vn=void 0,Mn=void 0,zn=void 0,qn=void 0;if(Ue){var Hn=le.dataToPoint([Nn,Fn]);if(ze){var Jn=le.dataToPoint([In,Fn]);Ln=Jn[0]}Vn=Ln,Mn=Hn[1]+_n,zn=Hn[0]-Ln,qn=vn,Math.abs(zn)<Lt&&(zn=(zn<0?-1:1)*Lt)}else{var Hn=le.dataToPoint([Fn,Nn]);if(ze){var Jn=le.dataToPoint([Fn,In]);Ln=Jn[1]}Vn=Hn[0]+_n,Mn=Ln,zn=vn,qn=Hn[1]-Ln,Math.abs(qn)<Lt&&(qn=(qn<=0?-1:1)*Lt)}Et?(En[An]=Vn,En[An+1]=Mn,En[An+2]=Ue?zn:qn,$n&&($n[An]=Ue?Tn.x:Vn,$n[An+1]=Ue?Mn:Tn.y,$n[An+2]=xn),wn[Pn]=Pn):Sn.setItemLayout(Pn,{x:Vn,y:Mn,width:zn,height:qn}),An+=3}Et&&Sn.setLayout({largePoints:En,largeDataIndices:wn,largeBackgroundPoints:$n,valueAxisHorizontal:Ue})}}}}}}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,ie,le){for(;ie<le;){var ue=ie+le>>>1;$[ue][1]<z?ie=ue+1:le=ue}return ie},TimeScale=function($){__extends(z,$);function z(ie){var le=$.call(this,ie)||this;return le.type="time",le}return z.prototype.getLabel=function(ie){var le=this.getSetting("useUTC");return format$1(ie.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,le,this.getSetting("locale"))},z.prototype.getFormattedLabel=function(ie,le,ue){var pe=this.getSetting("useUTC"),_e=this.getSetting("locale");return leveledFormat(ie,le,ue,_e,pe)},z.prototype.getTicks=function(){var ie=this._interval,le=this._extent,ue=[];if(!ie)return ue;ue.push({value:le[0],level:0});var pe=this.getSetting("useUTC"),_e=getIntervalTicks(this._minLevelUnit,this._approxInterval,pe,le);return ue=ue.concat(_e),ue.push({value:le[1],level:0}),ue},z.prototype.calcNiceExtent=function(ie){var le=this._extent;if(le[0]===le[1]&&(le[0]-=ONE_DAY,le[1]+=ONE_DAY),le[1]===-1/0&&le[0]===1/0){var ue=new Date;le[1]=+new Date(ue.getFullYear(),ue.getMonth(),ue.getDate()),le[0]=le[1]-ONE_DAY}this.calcNiceTicks(ie.splitNumber,ie.minInterval,ie.maxInterval)},z.prototype.calcNiceTicks=function(ie,le,ue){ie=ie||10;var pe=this._extent,_e=pe[1]-pe[0];this._approxInterval=_e/ie,le!=null&&this._approxInterval<le&&(this._approxInterval=le),ue!=null&&this._approxInterval>ue&&(this._approxInterval=ue);var Ce=scaleIntervals.length,$e=Math.min(bisect(scaleIntervals,this._approxInterval,0,Ce),Ce-1);this._interval=scaleIntervals[$e][1],this._minLevelUnit=scaleIntervals[Math.max($e-1,0)][0]},z.prototype.parse=function(ie){return isNumber(ie)?ie:+parseDate(ie)},z.prototype.contain=function(ie){return contain$1(this.parse(ie),this._extent)},z.prototype.normalize=function(ie){return normalize(this.parse(ie),this._extent)},z.prototype.scale=function(ie){return scale(ie,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,ie,le){var ue=parseDate(z),pe=parseDate(ie),_e=function(Et){return getUnitValue(ue,Et,le)===getUnitValue(pe,Et,le)},Ce=function(){return _e("year")},$e=function(){return Ce()&&_e("month")},xe=function(){return $e()&&_e("day")},Ie=function(){return xe()&&_e("hour")},ze=function(){return Ie()&&_e("minute")},Ue=function(){return ze()&&_e("second")},qe=function(){return Ue()&&_e("millisecond")};switch($){case"year":return Ce();case"month":return $e();case"day":return xe();case"hour":return Ie();case"minute":return ze();case"second":return Ue();case"millisecond":return qe()}}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,ie){var le=new Date($);switch(getPrimaryTimeUnit(z)){case"year":case"month":le[monthSetterName(ie)](0);case"day":le[dateSetterName(ie)](1);case"hour":le[hoursSetterName(ie)](0);case"minute":le[minutesSetterName(ie)](0);case"second":le[secondsSetterName(ie)](0),le[millisecondsSetterName(ie)](0)}return le.getTime()}function getIntervalTicks($,z,ie,le){var ue=1e4,pe=timeUnits,_e=0;function Ce(xn,Pn,kn,An,Nn,Fn,Ln){for(var In=new Date(Pn),Vn=Pn,Mn=In[An]();Vn<kn&&Vn<=le[1];)Ln.push({value:Vn}),Mn+=xn,In[Nn](Mn),Vn=In.getTime();Ln.push({value:Vn,notAdd:!0})}function $e(xn,Pn,kn){var An=[],Nn=!Pn.length;if(!isUnitValueSame(getPrimaryTimeUnit(xn),le[0],le[1],ie)){Nn&&(Pn=[{value:getFirstTimestampOfUnit(new Date(le[0]),xn,ie)},{value:le[1]}]);for(var Fn=0;Fn<Pn.length-1;Fn++){var Ln=Pn[Fn].value,In=Pn[Fn+1].value;if(Ln!==In){var Vn=void 0,Mn=void 0,zn=void 0,qn=!1;switch(xn){case"year":Vn=Math.max(1,Math.round(z/ONE_DAY/365)),Mn=fullYearGetterName(ie),zn=fullYearSetterName(ie);break;case"half-year":case"quarter":case"month":Vn=getMonthInterval(z),Mn=monthGetterName(ie),zn=monthSetterName(ie);break;case"week":case"half-week":case"day":Vn=getDateInterval(z),Mn=dateGetterName(ie),zn=dateSetterName(ie),qn=!0;break;case"half-day":case"quarter-day":case"hour":Vn=getHourInterval(z),Mn=hoursGetterName(ie),zn=hoursSetterName(ie);break;case"minute":Vn=getMinutesAndSecondsInterval(z,!0),Mn=minutesGetterName(ie),zn=minutesSetterName(ie);break;case"second":Vn=getMinutesAndSecondsInterval(z,!1),Mn=secondsGetterName(ie),zn=secondsSetterName(ie);break;case"millisecond":Vn=getMillisecondsInterval(z),Mn=millisecondsGetterName(ie),zn=millisecondsSetterName(ie);break}Ce(Vn,Ln,In,Mn,zn,qn,An),xn==="year"&&kn.length>1&&Fn===0&&kn.unshift({value:kn[0].value-Vn})}}for(var Fn=0;Fn<An.length;Fn++)kn.push(An[Fn]);return An}}for(var xe=[],Ie=[],ze=0,Ue=0,qe=0;qe<pe.length&&_e++<ue;++qe){var Et=getPrimaryTimeUnit(pe[qe]);if(isPrimaryTimeUnit(pe[qe])){$e(pe[qe],xe[xe.length-1]||[],Ie);var Lt=pe[qe+1]?getPrimaryTimeUnit(pe[qe+1]):null;if(Et!==Lt){if(Ie.length){Ue=ze,Ie.sort(function(xn,Pn){return xn.value-Pn.value});for(var hn=[],vn=0;vn<Ie.length;++vn){var _n=Ie[vn].value;(vn===0||Ie[vn-1].value!==_n)&&(hn.push(Ie[vn]),_n>=le[0]&&_n<=le[1]&&ze++)}var bn=(le[1]-le[0])/z;if(ze>bn*1.5&&Ue>bn/1.5||(xe.push(hn),ze>bn||$===pe[qe]))break}Ie=[]}}}for(var Sn=filter(map$2(xe,function(xn){return filter(xn,function(Pn){return Pn.value>=le[0]&&Pn.value<=le[1]&&!Pn.notAdd})}),function(xn){return xn.length>0}),Cn=[],En=Sn.length-1,qe=0;qe<Sn.length;++qe)for(var $n=Sn[qe],wn=0;wn<$n.length;++wn)Cn.push({value:$n[wn].value,level:En-qe});Cn.sort(function(xn,Pn){return xn.value-Pn.value});for(var Tn=[],qe=0;qe<Cn.length;++qe)(qe===0||Cn[qe].value!==Cn[qe-1].value)&&Tn.push(Cn[qe]);return Tn}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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type="log",ie.base=10,ie._originalScale=new IntervalScale$1,ie._interval=0,ie}return z.prototype.getTicks=function(ie){var le=this._originalScale,ue=this._extent,pe=le.getExtent(),_e=intervalScaleProto.getTicks.call(this,ie);return map$2(_e,function(Ce){var $e=Ce.value,xe=round$1(mathPow$1(this.base,$e));return xe=$e===ue[0]&&this._fixMin?fixRoundingError(xe,pe[0]):xe,xe=$e===ue[1]&&this._fixMax?fixRoundingError(xe,pe[1]):xe,{value:xe}},this)},z.prototype.setExtent=function(ie,le){var ue=mathLog$1(this.base);ie=mathLog$1(Math.max(0,ie))/ue,le=mathLog$1(Math.max(0,le))/ue,intervalScaleProto.setExtent.call(this,ie,le)},z.prototype.getExtent=function(){var ie=this.base,le=scaleProto.getExtent.call(this);le[0]=mathPow$1(ie,le[0]),le[1]=mathPow$1(ie,le[1]);var ue=this._originalScale,pe=ue.getExtent();return this._fixMin&&(le[0]=fixRoundingError(le[0],pe[0])),this._fixMax&&(le[1]=fixRoundingError(le[1],pe[1])),le},z.prototype.unionExtent=function(ie){this._originalScale.unionExtent(ie);var le=this.base;ie[0]=mathLog$1(ie[0])/mathLog$1(le),ie[1]=mathLog$1(ie[1])/mathLog$1(le),scaleProto.unionExtent.call(this,ie)},z.prototype.unionExtentFromData=function(ie,le){this.unionExtent(ie.getApproximateExtent(le))},z.prototype.calcNiceTicks=function(ie){ie=ie||10;var le=this._extent,ue=le[1]-le[0];if(!(ue===1/0||ue<=0)){var pe=quantity(ue),_e=ie/ue*pe;for(_e<=.5&&(pe*=10);!isNaN(pe)&&Math.abs(pe)<1&&Math.abs(pe)>0;)pe*=10;var Ce=[round$1(mathCeil(le[0]/pe)*pe),round$1(mathFloor(le[1]/pe)*pe)];this._interval=pe,this._niceExtent=Ce}},z.prototype.calcNiceExtent=function(ie){intervalScaleProto.calcNiceExtent.call(this,ie),this._fixMin=ie.fixMin,this._fixMax=ie.fixMax},z.prototype.parse=function(ie){return ie},z.prototype.contain=function(ie){return ie=mathLog$1(ie)/mathLog$1(this.base),contain$1(ie,this._extent)},z.prototype.normalize=function(ie){return ie=mathLog$1(ie)/mathLog$1(this.base),normalize(ie,this._extent)},z.prototype.scale=function(ie){return ie=scale(ie,this._extent),mathPow$1(this.base,ie)},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,ie,le){this._prepareParams(z,ie,le)}return $.prototype._prepareParams=function(z,ie,le){le[1]<le[0]&&(le=[NaN,NaN]),this._dataMin=le[0],this._dataMax=le[1];var ue=this._isOrdinal=z.type==="ordinal";this._needCrossZero=z.type==="interval"&&ie.getNeedCrossZero&&ie.getNeedCrossZero();var pe=this._modelMinRaw=ie.get("min",!0);isFunction(pe)?this._modelMinNum=parseAxisModelMinMax(z,pe({min:le[0],max:le[1]})):pe!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(z,pe));var _e=this._modelMaxRaw=ie.get("max",!0);if(isFunction(_e)?this._modelMaxNum=parseAxisModelMinMax(z,_e({min:le[0],max:le[1]})):_e!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(z,_e)),ue)this._axisDataLen=ie.getCategories().length;else{var Ce=ie.get("boundaryGap"),$e=isArray$1(Ce)?Ce:[Ce||0,Ce||0];typeof $e[0]=="boolean"||typeof $e[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1($e[0],1),parsePercent$1($e[1],1)]}},$.prototype.calculate=function(){var z=this._isOrdinal,ie=this._dataMin,le=this._dataMax,ue=this._axisDataLen,pe=this._boundaryGapInner,_e=z?null:le-ie||Math.abs(ie),Ce=this._modelMinRaw==="dataMin"?ie:this._modelMinNum,$e=this._modelMaxRaw==="dataMax"?le:this._modelMaxNum,xe=Ce!=null,Ie=$e!=null;Ce==null&&(Ce=z?ue?0:NaN:ie-pe[0]*_e),$e==null&&($e=z?ue?ue-1:NaN:le+pe[1]*_e),(Ce==null||!isFinite(Ce))&&(Ce=NaN),($e==null||!isFinite($e))&&($e=NaN);var ze=eqNaN(Ce)||eqNaN($e)||z&&!ue;this._needCrossZero&&(Ce>0&&$e>0&&!xe&&(Ce=0),Ce<0&&$e<0&&!Ie&&($e=0));var Ue=this._determinedMin,qe=this._determinedMax;return Ue!=null&&(Ce=Ue,xe=!0),qe!=null&&($e=qe,Ie=!0),{min:Ce,max:$e,minFixed:xe,maxFixed:Ie,isBlank:ze}},$.prototype.modifyDataMinMax=function(z,ie){this[DATA_MIN_MAX_ATTR[z]]=ie},$.prototype.setDeterminedMinMax=function(z,ie){var le=DETERMINED_MIN_MAX_ATTR[z];this[le]=ie},$.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,ie){var le=$.rawExtentInfo;return le||(le=new ScaleRawExtentInfo($,z,ie),$.rawExtentInfo=le,le)}function parseAxisModelMinMax($,z){return z==null?null:eqNaN(z)?NaN:$.parse(z)}function getScaleExtent($,z){var ie=$.type,le=ensureScaleRawExtentInfo($,z,$.getExtent()).calculate();$.setBlank(le.isBlank);var ue=le.min,pe=le.max,_e=z.ecModel;if(_e&&ie==="time"){var Ce=prepareLayoutBarSeries("bar",_e),$e=!1;if(each$c(Ce,function(ze){$e=$e||ze.getBaseAxis()===z.axis}),$e){var xe=makeColumnLayout(Ce),Ie=adjustScaleForOverflow(ue,pe,z,xe);ue=Ie.min,pe=Ie.max}}return{extent:[ue,pe],fixMin:le.minFixed,fixMax:le.maxFixed}}function adjustScaleForOverflow($,z,ie,le){var ue=ie.axis.getExtent(),pe=ue[1]-ue[0],_e=retrieveColumnLayout(le,ie.axis);if(_e===void 0)return{min:$,max:z};var Ce=1/0;each$c(_e,function(qe){Ce=Math.min(qe.offset,Ce)});var $e=-1/0;each$c(_e,function(qe){$e=Math.max(qe.offset+qe.width,$e)}),Ce=Math.abs(Ce),$e=Math.abs($e);var xe=Ce+$e,Ie=z-$,ze=1-(Ce+$e)/pe,Ue=Ie/ze-Ie;return z+=Ue*($e/xe),$-=Ue*(Ce/xe),{min:$,max:z}}function niceScaleExtent($,z){var ie=z,le=getScaleExtent($,ie),ue=le.extent,pe=ie.get("splitNumber");$ instanceof LogScale$1&&($.base=ie.get("logBase"));var _e=$.type,Ce=ie.get("interval"),$e=_e==="interval"||_e==="time";$.setExtent(ue[0],ue[1]),$.calcNiceExtent({splitNumber:pe,fixMin:le.fixMin,fixMax:le.fixMax,minInterval:$e?ie.get("minInterval"):null,maxInterval:$e?ie.get("maxInterval"):null}),Ce!=null&&$.setInterval&&$.setInterval(Ce)}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(),ie=z[0],le=z[1];return!(ie>0&&le>0||ie<0&&le<0)}function makeLabelFormatter($){var z=$.getLabelModel().get("formatter"),ie=$.type==="category"?$.scale.getExtent()[0]:null;return $.scale.type==="time"?function(le){return function(ue,pe){return $.scale.getFormattedLabel(ue,pe,le)}}(z):isString(z)?function(le){return function(ue){var pe=$.scale.getLabel(ue),_e=le.replace("{value}",pe??"");return _e}}(z):isFunction(z)?function(le){return function(ue,pe){return ie!=null&&(pe=ue.value-ie),le(getAxisRawValue($,ue),pe,ue.level!=null?{level:ue.level}:null)}}(z):function(le){return $.scale.getLabel(le)}}function getAxisRawValue($,z){return $.type==="category"?$.scale.getLabel(z):z.value}function estimateLabelUnionRect($){var z=$.model,ie=$.scale;if(!(!z.get(["axisLabel","show"])||ie.isBlank())){var le,ue,pe=ie.getExtent();ie instanceof OrdinalScale$1?ue=ie.count():(le=ie.getTicks(),ue=le.length);var _e=$.getLabelModel(),Ce=makeLabelFormatter($),$e,xe=1;ue>40&&(xe=Math.ceil(ue/40));for(var Ie=0;Ie<ue;Ie+=xe){var ze=le?le[Ie]:{value:pe[0]+Ie},Ue=Ce(ze,Ie),qe=_e.getTextRect(Ue),Et=rotateTextRect(qe,_e.get("rotate")||0);$e?$e.union(Et):$e=Et}return $e}}function rotateTextRect($,z){var ie=z*Math.PI/180,le=$.width,ue=$.height,pe=le*Math.abs(Math.cos(ie))+Math.abs(ue*Math.sin(ie)),_e=le*Math.abs(Math.sin(ie))+Math.abs(ue*Math.cos(ie)),Ce=new BoundingRect$1($.x,$.y,pe,_e);return Ce}function getOptionCategoryInterval($){var z=$.get("interval");return z??"auto"}function shouldShowAllLabels($){return $.type==="category"&&getOptionCategoryInterval($.getLabelModel())===0}function getDataDimensionsOnAxis($,z){var ie={};return each$c($.mapDimensionsAll(z),function(le){ie[getStackedDimension($,le)]=!0}),keys(ie)}function unionAxisExtentFromData($,z,ie){z&&each$c(getDataDimensionsOnAxis(z,ie),function(le){var ue=z.getApproximateExtent(le);ue[0]<$[0]&&($[0]=ue[0]),ue[1]>$[1]&&($[1]=ue[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 ie=z;z instanceof Model$1||(ie=new Model$1(z));var le=createScaleByModel(ie);return le.setExtent($[0],$[1]),niceScaleExtent(le,ie),le}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,ie){var le=0,ue=$[0];if(!ue)return!1;for(var pe=1;pe<$.length;pe++){var _e=$[pe];le+=windingLine(ue[0],ue[1],_e[0],_e[1],z,ie),ue=_e}var Ce=$[0];return(!isAroundEqual(ue[0],Ce[0])||!isAroundEqual(ue[1],Ce[1]))&&(le+=windingLine(ue[0],ue[1],Ce[0],Ce[1],z,ie)),le!==0}var TMP_TRANSFORM=[];function transformPoints($,z){for(var ie=0;ie<$.length;ie++)applyTransform$1($[ie],$[ie],z)}function updateBBoxFromPoints($,z,ie,le){for(var ue=0;ue<$.length;ue++){var pe=$[ue];le&&(pe=le.project(pe)),pe&&isFinite(pe[0])&&isFinite(pe[1])&&(min$1(z,z,pe),max$1(ie,ie,pe))}}function centroid($){for(var z=0,ie=0,le=0,ue=$.length,pe=$[ue-1][0],_e=$[ue-1][1],Ce=0;Ce<ue;Ce++){var $e=$[Ce][0],xe=$[Ce][1],Ie=pe*xe-$e*_e;z+=Ie,ie+=(pe+$e)*Ie,le+=(_e+xe)*Ie,pe=$e,_e=xe}return z?[ie/z/3,le/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,ie){this.type="polygon",this.exterior=z,this.interiors=ie}return $}(),GeoJSONLineStringGeometry=function(){function $(z){this.type="linestring",this.points=z}return $}(),GeoJSONRegion=function($){__extends(z,$);function z(ie,le,ue){var pe=$.call(this,ie)||this;return pe.type="geoJSON",pe.geometries=le,pe._center=ue&&[ue[0],ue[1]],pe}return z.prototype.calcCenter=function(){for(var ie=this.geometries,le,ue=0,pe=0;pe<ie.length;pe++){var _e=ie[pe],Ce=_e.exterior,$e=Ce&&Ce.length;$e>ue&&(le=_e,ue=$e)}if(le)return centroid(le.exterior);var xe=this.getBoundingRect();return[xe.x+xe.width/2,xe.y+xe.height/2]},z.prototype.getBoundingRect=function(ie){var le=this._rect;if(le&&!ie)return le;var ue=[1/0,1/0],pe=[-1/0,-1/0],_e=this.geometries;return each$c(_e,function(Ce){Ce.type==="polygon"?updateBBoxFromPoints(Ce.exterior,ue,pe,ie):each$c(Ce.points,function($e){updateBBoxFromPoints($e,ue,pe,ie)})}),isFinite(ue[0])&&isFinite(ue[1])&&isFinite(pe[0])&&isFinite(pe[1])||(ue[0]=ue[1]=pe[0]=pe[1]=0),le=new BoundingRect$1(ue[0],ue[1],pe[0]-ue[0],pe[1]-ue[1]),ie||(this._rect=le),le},z.prototype.contain=function(ie){var le=this.getBoundingRect(),ue=this.geometries;if(!le.contain(ie[0],ie[1]))return!1;e:for(var pe=0,_e=ue.length;pe<_e;pe++){var Ce=ue[pe];if(Ce.type==="polygon"){var $e=Ce.exterior,xe=Ce.interiors;if(contain($e,ie[0],ie[1])){for(var Ie=0;Ie<(xe?xe.length:0);Ie++)if(contain(xe[Ie],ie[0],ie[1]))continue e;return!0}}}return!1},z.prototype.transformTo=function(ie,le,ue,pe){var _e=this.getBoundingRect(),Ce=_e.width/_e.height;ue?pe||(pe=ue/Ce):ue=Ce*pe;for(var $e=new BoundingRect$1(ie,le,ue,pe),xe=_e.calculateTransform($e),Ie=this.geometries,ze=0;ze<Ie.length;ze++){var Ue=Ie[ze];Ue.type==="polygon"?(transformPoints(Ue.exterior,xe),each$c(Ue.interiors,function(qe){transformPoints(qe,xe)})):each$c(Ue.points,function(qe){transformPoints(qe,xe)})}_e=this._rect,_e.copy($e),this._center=[_e.x+_e.width/2,_e.y+_e.height/2]},z.prototype.cloneShallow=function(ie){ie==null&&(ie=this.name);var le=new z(ie,this.geometries,this._center);return le._rect=this._rect,le.transformTo=null,le},z}(Region);(function($){__extends(z,$);function z(ie,le){var ue=$.call(this,ie)||this;return ue.type="geoSVG",ue._elOnlyForCalculate=le,ue}return z.prototype.calcCenter=function(){for(var ie=this._elOnlyForCalculate,le=ie.getBoundingRect(),ue=[le.x+le.width/2,le.y+le.height/2],pe=identity(TMP_TRANSFORM),_e=ie;_e&&!_e.isGeoSVGGraphicRoot;)mul(pe,_e.getLocalTransform(),pe),_e=_e.parent;return invert(pe,pe),applyTransform$1(ue,ue,pe),ue},z})(Region);function decode($){if(!$.UTF8Encoding)return $;var z=$,ie=z.UTF8Scale;ie==null&&(ie=1024);var le=z.features;return each$c(le,function(ue){var pe=ue.geometry,_e=pe.encodeOffsets,Ce=pe.coordinates;if(_e)switch(pe.type){case"LineString":pe.coordinates=decodeRing(Ce,_e,ie);break;case"Polygon":decodeRings(Ce,_e,ie);break;case"MultiLineString":decodeRings(Ce,_e,ie);break;case"MultiPolygon":each$c(Ce,function($e,xe){return decodeRings($e,_e[xe],ie)})}}),z.UTF8Encoding=!1,z}function decodeRings($,z,ie){for(var le=0;le<$.length;le++)$[le]=decodeRing($[le],z[le],ie)}function decodeRing($,z,ie){for(var le=[],ue=z[0],pe=z[1],_e=0;_e<$.length;_e+=2){var Ce=$.charCodeAt(_e)-64,$e=$.charCodeAt(_e+1)-64;Ce=Ce>>1^-(Ce&1),$e=$e>>1^-($e&1),Ce+=ue,$e+=pe,ue=Ce,pe=$e,le.push([Ce/ie,$e/ie])}return le}function parseGeoJSON($,z){return $=decode($),map$2(filter($.features,function(ie){return ie.geometry&&ie.properties&&ie.geometry.coordinates.length>0}),function(ie){var le=ie.properties,ue=ie.geometry,pe=[];switch(ue.type){case"Polygon":var _e=ue.coordinates;pe.push(new GeoJSONPolygonGeometry(_e[0],_e.slice(1)));break;case"MultiPolygon":each$c(ue.coordinates,function($e){$e[0]&&pe.push(new GeoJSONPolygonGeometry($e[0],$e.slice(1)))});break;case"LineString":pe.push(new GeoJSONLineStringGeometry([ue.coordinates]));break;case"MultiLineString":pe.push(new GeoJSONLineStringGeometry(ue.coordinates))}var Ce=new GeoJSONRegion(le[z||"name"],pe,le.cp);return Ce.properties=le,Ce})}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(ie){return ie.value})}}function makeCategoryLabels($){var z=$.getLabelModel(),ie=makeCategoryLabelsActually($,z);return!z.get("show")||$.scale.isBlank()?{labels:[],labelCategoryInterval:ie.labelCategoryInterval}:ie}function makeCategoryLabelsActually($,z){var ie=getListCache($,"labels"),le=getOptionCategoryInterval(z),ue=listCacheGet(ie,le);if(ue)return ue;var pe,_e;return isFunction(le)?pe=makeLabelsByCustomizedCategoryInterval($,le):(_e=le==="auto"?makeAutoCategoryInterval($):le,pe=makeLabelsByNumericCategoryInterval($,_e)),listCacheSet(ie,le,{labels:pe,labelCategoryInterval:_e})}function makeCategoryTicks($,z){var ie=getListCache($,"ticks"),le=getOptionCategoryInterval(z),ue=listCacheGet(ie,le);if(ue)return ue;var pe,_e;if((!z.get("show")||$.scale.isBlank())&&(pe=[]),isFunction(le))pe=makeLabelsByCustomizedCategoryInterval($,le,!0);else if(le==="auto"){var Ce=makeCategoryLabelsActually($,$.getLabelModel());_e=Ce.labelCategoryInterval,pe=map$2(Ce.labels,function($e){return $e.tickValue})}else _e=le,pe=makeLabelsByNumericCategoryInterval($,_e,!0);return listCacheSet(ie,le,{ticks:pe,tickCategoryInterval:_e})}function makeRealNumberLabels($){var z=$.scale.getTicks(),ie=makeLabelFormatter($);return{labels:map$2(z,function(le,ue){return{level:le.level,formattedLabel:ie(le,ue),rawLabel:$.scale.getLabel(le),tickValue:le.value}})}}function getListCache($,z){return inner$7($)[z]||(inner$7($)[z]=[])}function listCacheGet($,z){for(var ie=0;ie<$.length;ie++)if($[ie].key===z)return $[ie].value}function listCacheSet($,z,ie){return $.push({key:z,value:ie}),ie}function makeAutoCategoryInterval($){var z=inner$7($).autoInterval;return z??(inner$7($).autoInterval=$.calculateCategoryInterval())}function calculateCategoryInterval($){var z=fetchAutoCategoryIntervalCalculationParams($),ie=makeLabelFormatter($),le=(z.axisRotate-z.labelRotate)/180*Math.PI,ue=$.scale,pe=ue.getExtent(),_e=ue.count();if(pe[1]-pe[0]<1)return 0;var Ce=1;_e>40&&(Ce=Math.max(1,Math.floor(_e/40)));for(var $e=pe[0],xe=$.dataToCoord($e+1)-$.dataToCoord($e),Ie=Math.abs(xe*Math.cos(le)),ze=Math.abs(xe*Math.sin(le)),Ue=0,qe=0;$e<=pe[1];$e+=Ce){var Et=0,Lt=0,hn=getBoundingRect(ie({value:$e}),z.font,"center","top");Et=hn.width*1.3,Lt=hn.height*1.3,Ue=Math.max(Ue,Et,7),qe=Math.max(qe,Lt,7)}var vn=Ue/Ie,_n=qe/ze;isNaN(vn)&&(vn=1/0),isNaN(_n)&&(_n=1/0);var bn=Math.max(0,Math.floor(Math.min(vn,_n))),Sn=inner$7($.model),Cn=$.getExtent(),En=Sn.lastAutoInterval,$n=Sn.lastTickCount;return En!=null&&$n!=null&&Math.abs(En-bn)<=1&&Math.abs($n-_e)<=1&&En>bn&&Sn.axisExtent0===Cn[0]&&Sn.axisExtent1===Cn[1]?bn=En:(Sn.lastTickCount=_e,Sn.lastAutoInterval=bn,Sn.axisExtent0=Cn[0],Sn.axisExtent1=Cn[1]),bn}function fetchAutoCategoryIntervalCalculationParams($){var z=$.getLabelModel();return{axisRotate:$.getRotate?$.getRotate():$.isHorizontal&&!$.isHorizontal()?90:0,labelRotate:z.get("rotate")||0,font:z.getFont()}}function makeLabelsByNumericCategoryInterval($,z,ie){var le=makeLabelFormatter($),ue=$.scale,pe=ue.getExtent(),_e=$.getLabelModel(),Ce=[],$e=Math.max((z||0)+1,1),xe=pe[0],Ie=ue.count();xe!==0&&$e>1&&Ie/$e>2&&(xe=Math.round(Math.ceil(xe/$e)*$e));var ze=shouldShowAllLabels($),Ue=_e.get("showMinLabel")||ze,qe=_e.get("showMaxLabel")||ze;Ue&&xe!==pe[0]&&Lt(pe[0]);for(var Et=xe;Et<=pe[1];Et+=$e)Lt(Et);qe&&Et-$e!==pe[1]&&Lt(pe[1]);function Lt(hn){var vn={value:hn};Ce.push(ie?hn:{formattedLabel:le(vn),rawLabel:ue.getLabel(vn),tickValue:hn})}return Ce}function makeLabelsByCustomizedCategoryInterval($,z,ie){var le=$.scale,ue=makeLabelFormatter($),pe=[];return each$c(le.getTicks(),function(_e){var Ce=le.getLabel(_e),$e=_e.value;z(_e.value,Ce)&&pe.push(ie?$e:{formattedLabel:ue(_e),rawLabel:Ce,tickValue:$e})}),pe}var NORMALIZED_EXTENT=[0,1],Axis=function(){function $(z,ie,le){this.onBand=!1,this.inverse=!1,this.dim=z,this.scale=ie,this._extent=le||[0,0]}return $.prototype.contain=function(z){var ie=this._extent,le=Math.min(ie[0],ie[1]),ue=Math.max(ie[0],ie[1]);return z>=le&&z<=ue},$.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,ie){var le=this._extent;le[0]=z,le[1]=ie},$.prototype.dataToCoord=function(z,ie){var le=this._extent,ue=this.scale;return z=ue.normalize(z),this.onBand&&ue.type==="ordinal"&&(le=le.slice(),fixExtentWithBands(le,ue.count())),linearMap$2(z,NORMALIZED_EXTENT,le,ie)},$.prototype.coordToData=function(z,ie){var le=this._extent,ue=this.scale;this.onBand&&ue.type==="ordinal"&&(le=le.slice(),fixExtentWithBands(le,ue.count()));var pe=linearMap$2(z,le,NORMALIZED_EXTENT,ie);return this.scale.scale(pe)},$.prototype.pointToData=function(z,ie){},$.prototype.getTicksCoords=function(z){z=z||{};var ie=z.tickModel||this.getTickModel(),le=createAxisTicks(this,ie),ue=le.ticks,pe=map$2(ue,function(Ce){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(Ce):Ce),tickValue:Ce}},this),_e=ie.get("alignWithLabel");return fixOnBandTicksCoords(this,pe,_e,z.clamp),pe},$.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var z=this.model.getModel("minorTick"),ie=z.get("splitNumber");ie>0&&ie<100||(ie=5);var le=this.scale.getMinorTicks(ie),ue=map$2(le,function(pe){return map$2(pe,function(_e){return{coord:this.dataToCoord(_e),tickValue:_e}},this)},this);return ue},$.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,ie=this.scale.getExtent(),le=ie[1]-ie[0]+(this.onBand?1:0);le===0&&(le=1);var ue=Math.abs(z[1]-z[0]);return Math.abs(ue)/le},$.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},$}();function fixExtentWithBands($,z){var ie=$[1]-$[0],le=z,ue=ie/le/2;$[0]+=ue,$[1]-=ue}function fixOnBandTicksCoords($,z,ie,le){var ue=z.length;if(!$.onBand||ie||!ue)return;var pe=$.getExtent(),_e,Ce;if(ue===1)z[0].coord=pe[0],_e=z[1]={coord:pe[0]};else{var $e=z[ue-1].tickValue-z[0].tickValue,xe=(z[ue-1].coord-z[0].coord)/$e;each$c(z,function(qe){qe.coord-=xe/2});var Ie=$.scale.getExtent();Ce=1+Ie[1]-z[ue-1].tickValue,_e={coord:z[ue-1].coord+xe*Ce},z.push(_e)}var ze=pe[0]>pe[1];Ue(z[0].coord,pe[0])&&(le?z[0].coord=pe[0]:z.shift()),le&&Ue(pe[0],z[0].coord)&&z.unshift({coord:pe[0]}),Ue(pe[1],_e.coord)&&(le?_e.coord=pe[1]:z.pop()),le&&Ue(_e.coord,pe[1])&&z.push({coord:pe[1]});function Ue(qe,Et){return qe=round$1(qe),Et=round$1(Et),ze?qe>Et:qe<Et}}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,ie,le,ue,pe,_e,Ce){var $e=ue-$,xe=pe-z,Ie=ie-$,ze=le-z,Ue=Math.sqrt(Ie*Ie+ze*ze);Ie/=Ue,ze/=Ue;var qe=$e*Ie+xe*ze,Et=qe/Ue;Ce&&(Et=Math.min(Math.max(Et,0),1)),Et*=Ue;var Lt=_e[0]=$+Et*Ie,hn=_e[1]=z+Et*ze;return Math.sqrt((Lt-ue)*(Lt-ue)+(hn-pe)*(hn-pe))}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 ie=dir.len(),le=dir2.len();if(!(ie<.001||le<.001)){dir.scale(1/ie),dir2.scale(1/le);var ue=dir.dot(dir2),pe=Math.cos(z);if(pe<ue){var _e=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,_e/Math.tan(Math.PI-z));var Ce=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(Ce))return;Ce<0?Point$1.copy(tmpProjPoint,pt1):Ce>1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray($[1])}}}}function limitSurfaceAngle($,z,ie){if(ie<=180&&ie>0){ie=ie/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 le=dir.len(),ue=dir2.len();if(!(le<.001||ue<.001)){dir.scale(1/le),dir2.scale(1/ue);var pe=dir.dot(z),_e=Math.cos(ie);if(pe<_e){var Ce=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var $e=Math.PI/2,xe=Math.acos(dir2.dot(z)),Ie=$e+xe-ie;if(Ie>=$e)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,Ce/Math.tan(Math.PI/2-Ie));var ze=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(ze))return;ze<0?Point$1.copy(tmpProjPoint,pt1):ze>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray($[1])}}}}function setLabelLineState($,z,ie,le){var ue=ie==="normal",pe=ue?$:$.ensureState(ie);pe.ignore=z;var _e=le.get("smooth");_e&&_e===!0&&(_e=.3),pe.shape=pe.shape||{},_e>0&&(pe.shape.smooth=_e);var Ce=le.getModel("lineStyle").getLineStyle();ue?$.useStyle(Ce):pe.style=Ce}function buildLabelLinePath($,z){var ie=z.smooth,le=z.points;if(le)if($.moveTo(le[0][0],le[0][1]),ie>0&&le.length>=3){var ue=dist$1(le[0],le[1]),pe=dist$1(le[1],le[2]);if(!ue||!pe){$.lineTo(le[1][0],le[1][1]),$.lineTo(le[2][0],le[2][1]);return}var _e=Math.min(ue,pe)*ie,Ce=lerp$1([],le[1],le[0],_e/ue),$e=lerp$1([],le[1],le[2],_e/pe),xe=lerp$1([],Ce,$e,.5);$.bezierCurveTo(Ce[0],Ce[1],Ce[0],Ce[1],xe[0],xe[1]),$.bezierCurveTo($e[0],$e[1],$e[0],$e[1],le[2][0],le[2][1])}else for(var Ie=1;Ie<le.length;Ie++)$.lineTo(le[Ie][0],le[Ie][1])}function setLabelLineStyle($,z,ie){var le=$.getTextGuideLine(),ue=$.getTextContent();if(!ue){le&&$.removeTextGuideLine();return}for(var pe=z.normal,_e=pe.get("show"),Ce=ue.ignore,$e=0;$e<DISPLAY_STATES.length;$e++){var xe=DISPLAY_STATES[$e],Ie=z[xe],ze=xe==="normal";if(Ie){var Ue=Ie.get("show"),qe=ze?Ce:retrieve2(ue.states[xe]&&ue.states[xe].ignore,Ce);if(qe||!retrieve2(Ue,_e)){var Et=ze?le:le&&le.states[xe];Et&&(Et.ignore=!0);continue}le||(le=new Polyline$1,$.setTextGuideLine(le),!ze&&(Ce||!_e)&&setLabelLineState(le,!0,"normal",z.normal),$.stateProxy&&(le.stateProxy=$.stateProxy)),setLabelLineState(le,!1,xe,Ie)}}if(le){defaults(le.style,ie),le.style.fill=null;var Lt=pe.get("showAbove"),hn=$.textGuideLineConfig=$.textGuideLineConfig||{};hn.showAbove=Lt||!1,le.buildPath=buildLabelLinePath}}function getLabelLineStatesModels($,z){z=z||"labelLine";for(var ie={normal:$.getModel(z)},le=0;le<SPECIAL_STATES.length;le++){var ue=SPECIAL_STATES[le];ie[ue]=$.getModel([ue,z])}return ie}function prepareLayoutList($){for(var z=[],ie=0;ie<$.length;ie++){var le=$[ie];if(!le.defaultAttr.ignore){var ue=le.label,pe=ue.getComputedTransform(),_e=ue.getBoundingRect(),Ce=!pe||pe[1]<1e-5&&pe[2]<1e-5,$e=ue.style.margin||0,xe=_e.clone();xe.applyTransform(pe),xe.x-=$e/2,xe.y-=$e/2,xe.width+=$e,xe.height+=$e;var Ie=Ce?new OrientedBoundingRect$1(_e,pe):null;z.push({label:ue,labelLine:le.labelLine,rect:xe,localRect:_e,obb:Ie,priority:le.priority,defaultAttr:le.defaultAttr,layoutOption:le.computedLayoutOption,axisAligned:Ce,transform:pe})}}return z}function shiftLayout($,z,ie,le,ue,pe){var _e=$.length;if(_e<2)return;$.sort(function(wn,Tn){return wn.rect[z]-Tn.rect[z]});for(var Ce=0,$e,xe=!1,Ie=0,ze=0;ze<_e;ze++){var Ue=$[ze],qe=Ue.rect;$e=qe[z]-Ce,$e<0&&(qe[z]-=$e,Ue.label[z]-=$e,xe=!0);var Et=Math.max(-$e,0);Ie+=Et,Ce=qe[z]+qe[ie]}Ie>0&&pe&&Cn(-Ie/_e,0,_e);var Lt=$[0],hn=$[_e-1],vn,_n;bn(),vn<0&&En(-vn,.8),_n<0&&En(_n,.8),bn(),Sn(vn,_n,1),Sn(_n,vn,-1),bn(),vn<0&&$n(-vn),_n<0&&$n(_n);function bn(){vn=Lt.rect[z]-le,_n=ue-hn.rect[z]-hn.rect[ie]}function Sn(wn,Tn,xn){if(wn<0){var Pn=Math.min(Tn,-wn);if(Pn>0){Cn(Pn*xn,0,_e);var kn=Pn+wn;kn<0&&En(-kn*xn,1)}else En(-wn*xn,1)}}function Cn(wn,Tn,xn){wn!==0&&(xe=!0);for(var Pn=Tn;Pn<xn;Pn++){var kn=$[Pn],An=kn.rect;An[z]+=wn,kn.label[z]+=wn}}function En(wn,Tn){for(var xn=[],Pn=0,kn=1;kn<_e;kn++){var An=$[kn-1].rect,Nn=Math.max($[kn].rect[z]-An[z]-An[ie],0);xn.push(Nn),Pn+=Nn}if(Pn){var Fn=Math.min(Math.abs(wn)/Pn,Tn);if(wn>0)for(var kn=0;kn<_e-1;kn++){var Ln=xn[kn]*Fn;Cn(Ln,0,kn+1)}else for(var kn=_e-1;kn>0;kn--){var Ln=xn[kn-1]*Fn;Cn(-Ln,kn,_e)}}}function $n(wn){var Tn=wn<0?-1:1;wn=Math.abs(wn);for(var xn=Math.ceil(wn/(_e-1)),Pn=0;Pn<_e-1;Pn++)if(Tn>0?Cn(xn,0,Pn+1):Cn(-xn,_e-Pn-1,_e),wn-=xn,wn<=0)return}return xe}function shiftLayoutOnY($,z,ie,le){return shiftLayout($,"y","height",z,ie,le)}function hideOverlap($){var z=[];$.sort(function(Lt,hn){return hn.priority-Lt.priority});var ie=new BoundingRect$1(0,0,0,0);function le(Lt){if(!Lt.ignore){var hn=Lt.ensureState("emphasis");hn.ignore==null&&(hn.ignore=!1)}Lt.ignore=!0}for(var ue=0;ue<$.length;ue++){var pe=$[ue],_e=pe.axisAligned,Ce=pe.localRect,$e=pe.transform,xe=pe.label,Ie=pe.labelLine;ie.copy(pe.rect),ie.width-=.1,ie.height-=.1,ie.x+=.05,ie.y+=.05;for(var ze=pe.obb,Ue=!1,qe=0;qe<z.length;qe++){var Et=z[qe];if(ie.intersect(Et.rect)){if(_e&&Et.axisAligned){Ue=!0;break}if(Et.obb||(Et.obb=new OrientedBoundingRect$1(Et.localRect,Et.transform)),ze||(ze=new OrientedBoundingRect$1(Ce,$e)),ze.intersect(Et.obb)){Ue=!0;break}}}Ue?(le(xe),Ie&&le(Ie)):(xe.attr("ignore",pe.defaultAttr.ignore),Ie&&Ie.attr("ignore",pe.defaultAttr.labelGuideIgnore),z.push(pe))}}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,ie){var le=platformApi.createCanvas(),ue=z.getWidth(),pe=z.getHeight(),_e=le.style;return _e&&(_e.position="absolute",_e.left="0",_e.top="0",_e.width=ue+"px",_e.height=pe+"px",le.setAttribute("data-zr-dom-id",$)),le.width=ue*ie,le.height=pe*ie,le}var Layer=function($){__extends(z,$);function z(ie,le,ue){var pe=$.call(this)||this;pe.motionBlur=!1,pe.lastFrameAlpha=.7,pe.dpr=1,pe.virtual=!1,pe.config={},pe.incremental=!1,pe.zlevel=0,pe.maxRepaintRectCount=5,pe.__dirty=!0,pe.__firstTimePaint=!0,pe.__used=!1,pe.__drawIndex=0,pe.__startIndex=0,pe.__endIndex=0,pe.__prevStartIndex=null,pe.__prevEndIndex=null;var _e;ue=ue||devicePixelRatio,typeof ie=="string"?_e=createDom(ie,le,ue):isObject$3(ie)&&(_e=ie,ie=_e.id),pe.id=ie,pe.dom=_e;var Ce=_e.style;return Ce&&(disableUserSelect(_e),_e.onselectstart=function(){return!1},Ce.padding="0",Ce.margin="0",Ce.borderWidth="0"),pe.painter=le,pe.dpr=ue,pe}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 ie=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,ie),this.ctxBack=this.domBack.getContext("2d"),ie!==1&&this.ctxBack.scale(ie,ie)},z.prototype.createRepaintRects=function(ie,le,ue,pe){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var _e=[],Ce=this.maxRepaintRectCount,$e=!1,xe=new BoundingRect$1(0,0,0,0);function Ie(_n){if(!(!_n.isFinite()||_n.isZero()))if(_e.length===0){var bn=new BoundingRect$1(0,0,0,0);bn.copy(_n),_e.push(bn)}else{for(var Sn=!1,Cn=1/0,En=0,$n=0;$n<_e.length;++$n){var wn=_e[$n];if(wn.intersect(_n)){var Tn=new BoundingRect$1(0,0,0,0);Tn.copy(wn),Tn.union(_n),_e[$n]=Tn,Sn=!0;break}else if($e){xe.copy(_n),xe.union(wn);var xn=_n.width*_n.height,Pn=wn.width*wn.height,kn=xe.width*xe.height,An=kn-xn-Pn;An<Cn&&(Cn=An,En=$n)}}if($e&&(_e[En].union(_n),Sn=!0),!Sn){var bn=new BoundingRect$1(0,0,0,0);bn.copy(_n),_e.push(bn)}$e||($e=_e.length>=Ce)}}for(var ze=this.__startIndex;ze<this.__endIndex;++ze){var Ue=ie[ze];if(Ue){var qe=Ue.shouldBePainted(ue,pe,!0,!0),Et=Ue.__isRendered&&(Ue.__dirty&REDRAW_BIT||!qe)?Ue.getPrevPaintRect():null;Et&&Ie(Et);var Lt=qe&&(Ue.__dirty&REDRAW_BIT||!Ue.__isRendered)?Ue.getPaintRect():null;Lt&&Ie(Lt)}}for(var ze=this.__prevStartIndex;ze<this.__prevEndIndex;++ze){var Ue=le[ze],qe=Ue.shouldBePainted(ue,pe,!0,!0);if(Ue&&(!qe||!Ue.__zr)&&Ue.__isRendered){var Et=Ue.getPrevPaintRect();Et&&Ie(Et)}}var hn;do{hn=!1;for(var ze=0;ze<_e.length;){if(_e[ze].isZero()){_e.splice(ze,1);continue}for(var vn=ze+1;vn<_e.length;)_e[ze].intersect(_e[vn])?(hn=!0,_e[ze].union(_e[vn]),_e.splice(vn,1)):vn++;ze++}}while(hn);return this._paintRects=_e,_e},z.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},z.prototype.resize=function(ie,le){var ue=this.dpr,pe=this.dom,_e=pe.style,Ce=this.domBack;_e&&(_e.width=ie+"px",_e.height=le+"px"),pe.width=ie*ue,pe.height=le*ue,Ce&&(Ce.width=ie*ue,Ce.height=le*ue,ue!==1&&this.ctxBack.scale(ue,ue))},z.prototype.clear=function(ie,le,ue){var pe=this.dom,_e=this.ctx,Ce=pe.width,$e=pe.height;le=le||this.clearColor;var xe=this.motionBlur&&!ie,Ie=this.lastFrameAlpha,ze=this.dpr,Ue=this;xe&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(pe,0,0,Ce/ze,$e/ze));var qe=this.domBack;function Et(Lt,hn,vn,_n){if(_e.clearRect(Lt,hn,vn,_n),le&&le!=="transparent"){var bn=void 0;if(isGradientObject(le)){var Sn=le.global||le.__width===vn&&le.__height===_n;bn=Sn&&le.__canvasGradient||getCanvasGradient(_e,le,{x:0,y:0,width:vn,height:_n}),le.__canvasGradient=bn,le.__width=vn,le.__height=_n}else isImagePatternObject(le)&&(le.scaleX=le.scaleX||ze,le.scaleY=le.scaleY||ze,bn=createCanvasPattern(_e,le,{dirty:function(){Ue.setUnpainted(),Ue.__painter.refresh()}}));_e.save(),_e.fillStyle=bn||le,_e.fillRect(Lt,hn,vn,_n),_e.restore()}xe&&(_e.save(),_e.globalAlpha=Ie,_e.drawImage(qe,Lt,hn,vn,_n),_e.restore())}!ue||xe?Et(0,0,Ce,$e):ue.length&&each$c(ue,function(Lt){Et(Lt.x*ze,Lt.y*ze,Lt.width*ze,Lt.height*ze)})},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 ie=document.createElement("div");return ie.style.cssText=["position:relative","width:"+$+"px","height:"+z+"px","padding:0","margin:0","border-width:0"].join(";")+";",ie}var CanvasPainter=function(){function $(z,ie,le,ue){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var pe=!z.nodeName||z.nodeName.toUpperCase()==="CANVAS";this._opts=le=extend({},le||{}),this.dpr=le.devicePixelRatio||devicePixelRatio,this._singleCanvas=pe,this.root=z;var _e=z.style;_e&&(disableUserSelect(z),z.innerHTML=""),this.storage=ie;var Ce=this._zlevelList;this._prevDisplayList=[];var $e=this._layers;if(pe){var Ie=z,ze=Ie.width,Ue=Ie.height;le.width!=null&&(ze=le.width),le.height!=null&&(Ue=le.height),this.dpr=le.devicePixelRatio||1,Ie.width=ze*this.dpr,Ie.height=Ue*this.dpr,this._width=ze,this._height=Ue;var qe=new Layer$1(Ie,this,this.dpr);qe.__builtin__=!0,qe.initContext(),$e[CANVAS_ZLEVEL]=qe,qe.zlevel=CANVAS_ZLEVEL,Ce.push(CANVAS_ZLEVEL),this._domRoot=z}else{this._width=getSize$1(z,0,le),this._height=getSize$1(z,1,le);var xe=this._domRoot=createRoot(this._width,this._height);z.appendChild(xe)}}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 ie=this.storage.getDisplayList(!0),le=this._prevDisplayList,ue=this._zlevelList;this._redrawId=Math.random(),this._paintList(ie,le,z,this._redrawId);for(var pe=0;pe<ue.length;pe++){var _e=ue[pe],Ce=this._layers[_e];if(!Ce.__builtin__&&Ce.refresh){var $e=pe===0?this._backgroundColor:null;Ce.refresh($e)}}return this._opts.useDirtyRect&&(this._prevDisplayList=ie.slice()),this},$.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},$.prototype._paintHoverList=function(z){var ie=z.length,le=this._hoverlayer;if(le&&le.clear(),!!ie){for(var ue={inHover:!0,viewWidth:this._width,viewHeight:this._height},pe,_e=0;_e<ie;_e++){var Ce=z[_e];Ce.__inHover&&(le||(le=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),pe||(pe=le.ctx,pe.save()),brush(pe,Ce,ue,_e===ie-1))}pe&&pe.restore()}},$.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},$.prototype.paintOne=function(z,ie){brushSingle(z,ie)},$.prototype._paintList=function(z,ie,le,ue){if(this._redrawId===ue){le=le||!1,this._updateLayerStatus(z);var pe=this._doPaintList(z,ie,le),_e=pe.finished,Ce=pe.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),Ce&&this._paintHoverList(z),_e)this.eachLayer(function(xe){xe.afterBrush&&xe.afterBrush()});else{var $e=this;requestAnimationFrame$2(function(){$e._paintList(z,ie,le,ue)})}}},$.prototype._compositeManually=function(){var z=this.getLayer(CANVAS_ZLEVEL).ctx,ie=this._domRoot.width,le=this._domRoot.height;z.clearRect(0,0,ie,le),this.eachBuiltinLayer(function(ue){ue.virtual&&z.drawImage(ue.dom,0,0,ie,le)})},$.prototype._doPaintList=function(z,ie,le){for(var ue=this,pe=[],_e=this._opts.useDirtyRect,Ce=0;Ce<this._zlevelList.length;Ce++){var $e=this._zlevelList[Ce],xe=this._layers[$e];xe.__builtin__&&xe!==this._hoverlayer&&(xe.__dirty||le)&&pe.push(xe)}for(var Ie=!0,ze=!1,Ue=function(Lt){var hn=pe[Lt],vn=hn.ctx,_n=_e&&hn.createRepaintRects(z,ie,qe._width,qe._height),bn=le?hn.__startIndex:hn.__drawIndex,Sn=!le&&hn.incremental&&Date.now,Cn=Sn&&Date.now(),En=hn.zlevel===qe._zlevelList[0]?qe._backgroundColor:null;if(hn.__startIndex===hn.__endIndex)hn.clear(!1,En,_n);else if(bn===hn.__startIndex){var $n=z[bn];(!$n.incremental||!$n.notClear||le)&&hn.clear(!1,En,_n)}bn===-1&&(console.error("For some unknown reason. drawIndex is -1"),bn=hn.__startIndex);var wn,Tn=function(An){var Nn={inHover:!1,allClipped:!1,prevEl:null,viewWidth:ue._width,viewHeight:ue._height};for(wn=bn;wn<hn.__endIndex;wn++){var Fn=z[wn];if(Fn.__inHover&&(ze=!0),ue._doPaintEl(Fn,hn,_e,An,Nn,wn===hn.__endIndex-1),Sn){var Ln=Date.now()-Cn;if(Ln>15)break}}Nn.prevElClipPaths&&vn.restore()};if(_n)if(_n.length===0)wn=hn.__endIndex;else for(var xn=qe.dpr,Pn=0;Pn<_n.length;++Pn){var kn=_n[Pn];vn.save(),vn.beginPath(),vn.rect(kn.x*xn,kn.y*xn,kn.width*xn,kn.height*xn),vn.clip(),Tn(kn),vn.restore()}else vn.save(),Tn(),vn.restore();hn.__drawIndex=wn,hn.__drawIndex<hn.__endIndex&&(Ie=!1)},qe=this,Et=0;Et<pe.length;Et++)Ue(Et);return env$1.wxa&&each$c(this._layers,function(Lt){Lt&&Lt.ctx&&Lt.ctx.draw&&Lt.ctx.draw()}),{finished:Ie,needsRefreshHover:ze}},$.prototype._doPaintEl=function(z,ie,le,ue,pe,_e){var Ce=ie.ctx;if(le){var $e=z.getPaintRect();(!ue||$e&&$e.intersect(ue))&&(brush(Ce,z,pe,_e),z.setPrevPaintRect($e))}else brush(Ce,z,pe,_e)},$.prototype.getLayer=function(z,ie){this._singleCanvas&&!this._needsManuallyCompositing&&(z=CANVAS_ZLEVEL);var le=this._layers[z];return le||(le=new Layer$1("zr_"+z,this,this.dpr),le.zlevel=z,le.__builtin__=!0,this._layerConfig[z]?merge(le,this._layerConfig[z],!0):this._layerConfig[z-EL_AFTER_INCREMENTAL_INC]&&merge(le,this._layerConfig[z-EL_AFTER_INCREMENTAL_INC],!0),ie&&(le.virtual=ie),this.insertLayer(z,le),le.initContext()),le},$.prototype.insertLayer=function(z,ie){var le=this._layers,ue=this._zlevelList,pe=ue.length,_e=this._domRoot,Ce=null,$e=-1;if(!le[z]&&isLayerValid(ie)){if(pe>0&&z>ue[0]){for($e=0;$e<pe-1&&!(ue[$e]<z&&ue[$e+1]>z);$e++);Ce=le[ue[$e]]}if(ue.splice($e+1,0,z),le[z]=ie,!ie.virtual)if(Ce){var xe=Ce.dom;xe.nextSibling?_e.insertBefore(ie.dom,xe.nextSibling):_e.appendChild(ie.dom)}else _e.firstChild?_e.insertBefore(ie.dom,_e.firstChild):_e.appendChild(ie.dom);ie.__painter=this}},$.prototype.eachLayer=function(z,ie){for(var le=this._zlevelList,ue=0;ue<le.length;ue++){var pe=le[ue];z.call(ie,this._layers[pe],pe)}},$.prototype.eachBuiltinLayer=function(z,ie){for(var le=this._zlevelList,ue=0;ue<le.length;ue++){var pe=le[ue],_e=this._layers[pe];_e.__builtin__&&z.call(ie,_e,pe)}},$.prototype.eachOtherLayer=function(z,ie){for(var le=this._zlevelList,ue=0;ue<le.length;ue++){var pe=le[ue],_e=this._layers[pe];_e.__builtin__||z.call(ie,_e,pe)}},$.prototype.getLayers=function(){return this._layers},$.prototype._updateLayerStatus=function(z){this.eachBuiltinLayer(function(ze,Ue){ze.__dirty=ze.__used=!1});function ie(ze){pe&&(pe.__endIndex!==ze&&(pe.__dirty=!0),pe.__endIndex=ze)}if(this._singleCanvas)for(var le=1;le<z.length;le++){var ue=z[le];if(ue.zlevel!==z[le-1].zlevel||ue.incremental){this._needsManuallyCompositing=!0;break}}var pe=null,_e=0,Ce,$e;for($e=0;$e<z.length;$e++){var ue=z[$e],xe=ue.zlevel,Ie=void 0;Ce!==xe&&(Ce=xe,_e=0),ue.incremental?(Ie=this.getLayer(xe+INCREMENTAL_INC,this._needsManuallyCompositing),Ie.incremental=!0,_e=1):Ie=this.getLayer(xe+(_e>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),Ie.__builtin__||logError("ZLevel "+xe+" has been used by unkown layer "+Ie.id),Ie!==pe&&(Ie.__used=!0,Ie.__startIndex!==$e&&(Ie.__dirty=!0),Ie.__startIndex=$e,Ie.incremental?Ie.__drawIndex=-1:Ie.__drawIndex=$e,ie($e),pe=Ie),ue.__dirty&REDRAW_BIT&&!ue.__inHover&&(Ie.__dirty=!0,Ie.incremental&&Ie.__drawIndex<0&&(Ie.__drawIndex=$e))}ie($e),this.eachBuiltinLayer(function(ze,Ue){!ze.__used&&ze.getElementCount()>0&&(ze.__dirty=!0,ze.__startIndex=ze.__endIndex=ze.__drawIndex=0),ze.__dirty&&ze.__drawIndex<0&&(ze.__drawIndex=ze.__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(ie){ie.setUnpainted()})},$.prototype.configLayer=function(z,ie){if(ie){var le=this._layerConfig;le[z]?merge(le[z],ie,!0):le[z]=ie;for(var ue=0;ue<this._zlevelList.length;ue++){var pe=this._zlevelList[ue];if(pe===z||pe===z+EL_AFTER_INCREMENTAL_INC){var _e=this._layers[pe];merge(_e,le[z],!0)}}}},$.prototype.delLayer=function(z){var ie=this._layers,le=this._zlevelList,ue=ie[z];ue&&(ue.dom.parentNode.removeChild(ue.dom),delete ie[z],le.splice(indexOf(le,z),1))},$.prototype.resize=function(z,ie){if(this._domRoot.style){var le=this._domRoot;le.style.display="none";var ue=this._opts,pe=this.root;if(z!=null&&(ue.width=z),ie!=null&&(ue.height=ie),z=getSize$1(pe,0,ue),ie=getSize$1(pe,1,ue),le.style.display="",this._width!==z||ie!==this._height){le.style.width=z+"px",le.style.height=ie+"px";for(var _e in this._layers)this._layers.hasOwnProperty(_e)&&this._layers[_e].resize(z,ie);this.refresh(!0)}this._width=z,this._height=ie}else{if(z==null||ie==null)return;this._width=z,this._height=ie,this.getLayer(CANVAS_ZLEVEL).resize(z,ie)}return this},$.prototype.clearLayer=function(z){var ie=this._layers[z];ie&&ie.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 ie=new Layer$1("image",this,z.pixelRatio||this.dpr);ie.initContext(),ie.clear(!1,z.backgroundColor||this._backgroundColor);var le=ie.ctx;if(z.pixelRatio<=this.dpr){this.refresh();var ue=ie.dom.width,pe=ie.dom.height;this.eachLayer(function(ze){ze.__builtin__?le.drawImage(ze.dom,0,0,ue,pe):ze.renderToCanvas&&(le.save(),ze.renderToCanvas(le),le.restore())})}else for(var _e={inHover:!1,viewWidth:this._width,viewHeight:this._height},Ce=this.storage.getDisplayList(!0),$e=0,xe=Ce.length;$e<xe;$e++){var Ie=Ce[$e];brush(le,Ie,_e,$e===xe-1)}return ie.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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.hasSymbolVisual=!0,ie}return z.prototype.getInitialData=function(ie){return createSeriesData(null,this,{useEncodeDefaulter:!0})},z.prototype.getLegendIcon=function(ie){var le=new Group$3,ue=createSymbol("line",0,ie.itemHeight/2,ie.itemWidth,0,ie.lineStyle.stroke,!1);le.add(ue),ue.setStyle(ie.lineStyle);var pe=this.getData().getVisual("symbol"),_e=this.getData().getVisual("symbolRotate"),Ce=pe==="none"?"circle":pe,$e=ie.itemHeight*.8,xe=createSymbol(Ce,(ie.itemWidth-$e)/2,(ie.itemHeight-$e)/2,$e,$e,ie.itemStyle.fill);le.add(xe),xe.setStyle(ie.itemStyle);var Ie=ie.iconRotate==="inherit"?_e:ie.iconRotate||0;return xe.rotation=Ie*Math.PI/180,xe.setOrigin([ie.itemWidth/2,ie.itemHeight/2]),Ce.indexOf("empty")>-1&&(xe.style.stroke=xe.style.fill,xe.style.fill="#fff",xe.style.lineWidth=2),le},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 ie=$.mapDimensionsAll("defaultedLabel"),le=ie.length;if(le===1){var ue=retrieveRawValue($,z,ie[0]);return ue!=null?ue+"":null}else if(le){for(var pe=[],_e=0;_e<ie.length;_e++)pe.push(retrieveRawValue($,z,ie[_e]));return pe.join(" ")}}function getDefaultInterpolatedLabel($,z){var ie=$.mapDimensionsAll("defaultedLabel");if(!isArray$1(z))return z+"";for(var le=[],ue=0;ue<ie.length;ue++){var pe=$.getDimensionIndex(ie[ue]);pe>=0&&le.push(z[pe])}return le.join(" ")}var Symbol$1=function($){__extends(z,$);function z(ie,le,ue,pe){var _e=$.call(this)||this;return _e.updateData(ie,le,ue,pe),_e}return z.prototype._createSymbol=function(ie,le,ue,pe,_e){this.removeAll();var Ce=createSymbol(ie,-1,-1,2,2,null,_e);Ce.attr({z2:100,culling:!0,scaleX:pe[0]/2,scaleY:pe[1]/2}),Ce.drift=driftSymbol,this._symbolType=ie,this.add(Ce)},z.prototype.stopSymbolAnimation=function(ie){this.childAt(0).stopAnimation(null,ie)},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(ie,le){var ue=this.childAt(0);ue.zlevel=ie,ue.z=le},z.prototype.setDraggable=function(ie,le){var ue=this.childAt(0);ue.draggable=ie,ue.cursor=!le&&ie?"move":ue.cursor},z.prototype.updateData=function(ie,le,ue,pe){this.silent=!1;var _e=ie.getItemVisual(le,"symbol")||"circle",Ce=ie.hostModel,$e=z.getSymbolSize(ie,le),xe=_e!==this._symbolType,Ie=pe&&pe.disableAnimation;if(xe){var ze=ie.getItemVisual(le,"symbolKeepAspect");this._createSymbol(_e,ie,le,$e,ze)}else{var Ue=this.childAt(0);Ue.silent=!1;var qe={scaleX:$e[0]/2,scaleY:$e[1]/2};Ie?Ue.attr(qe):updateProps$1(Ue,qe,Ce,le),saveOldStyle(Ue)}if(this._updateCommon(ie,le,$e,ue,pe),xe){var Ue=this.childAt(0);if(!Ie){var qe={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:Ue.style.opacity}};Ue.scaleX=Ue.scaleY=0,Ue.style.opacity=0,initProps(Ue,qe,Ce,le)}}Ie&&this.childAt(0).stopAnimation("leave")},z.prototype._updateCommon=function(ie,le,ue,pe,_e){var Ce=this.childAt(0),$e=ie.hostModel,xe,Ie,ze,Ue,qe,Et,Lt,hn,vn;if(pe&&(xe=pe.emphasisItemStyle,Ie=pe.blurItemStyle,ze=pe.selectItemStyle,Ue=pe.focus,qe=pe.blurScope,Lt=pe.labelStatesModels,hn=pe.hoverScale,vn=pe.cursorStyle,Et=pe.emphasisDisabled),!pe||ie.hasItemOption){var _n=pe&&pe.itemModel?pe.itemModel:ie.getItemModel(le),bn=_n.getModel("emphasis");xe=bn.getModel("itemStyle").getItemStyle(),ze=_n.getModel(["select","itemStyle"]).getItemStyle(),Ie=_n.getModel(["blur","itemStyle"]).getItemStyle(),Ue=bn.get("focus"),qe=bn.get("blurScope"),Et=bn.get("disabled"),Lt=getLabelStatesModels(_n),hn=bn.getShallow("scale"),vn=_n.getShallow("cursor")}var Sn=ie.getItemVisual(le,"symbolRotate");Ce.attr("rotation",(Sn||0)*Math.PI/180||0);var Cn=normalizeSymbolOffset(ie.getItemVisual(le,"symbolOffset"),ue);Cn&&(Ce.x=Cn[0],Ce.y=Cn[1]),vn&&Ce.attr("cursor",vn);var En=ie.getItemVisual(le,"style"),$n=En.fill;if(Ce instanceof ZRImage$1){var wn=Ce.style;Ce.useStyle(extend({image:wn.image,x:wn.x,y:wn.y,width:wn.width,height:wn.height},En))}else Ce.__isEmptyBrush?Ce.useStyle(extend({},En)):Ce.useStyle(En),Ce.style.decal=null,Ce.setColor($n,_e&&_e.symbolInnerColor),Ce.style.strokeNoScale=!0;var Tn=ie.getItemVisual(le,"liftZ"),xn=this._z2;Tn!=null?xn==null&&(this._z2=Ce.z2,Ce.z2+=Tn):xn!=null&&(Ce.z2=xn,this._z2=null);var Pn=_e&&_e.useNameLabel;setLabelStyle(Ce,Lt,{labelFetcher:$e,labelDataIndex:le,defaultText:kn,inheritColor:$n,defaultOpacity:En.opacity});function kn(Fn){return Pn?ie.getName(Fn):getDefaultLabel(ie,Fn)}this._sizeX=ue[0]/2,this._sizeY=ue[1]/2;var An=Ce.ensureState("emphasis");An.style=xe,Ce.ensureState("select").style=ze,Ce.ensureState("blur").style=Ie;var Nn=hn==null||hn===!0?Math.max(1.1,3/this._sizeY):isFinite(hn)&&hn>0?+hn:1;An.scaleX=this._sizeX*Nn,An.scaleY=this._sizeY*Nn,this.setSymbolScale(1),toggleHoverEmphasis(this,Ue,qe,Et)},z.prototype.setSymbolScale=function(ie){this.scaleX=this.scaleY=ie},z.prototype.fadeOut=function(ie,le,ue){var pe=this.childAt(0),_e=getECData(this).dataIndex,Ce=ue&&ue.animation;if(this.silent=pe.silent=!0,ue&&ue.fadeLabel){var $e=pe.getTextContent();$e&&removeElement($e,{style:{opacity:0}},le,{dataIndex:_e,removeOpt:Ce,cb:function(){pe.removeTextContent()}})}else pe.removeTextContent();removeElement(pe,{style:{opacity:0},scaleX:0,scaleY:0},le,{dataIndex:_e,cb:ie,removeOpt:Ce})},z.getSymbolSize=function(ie,le){return normalizeSymbolSize(ie.getItemVisual(le,"symbolSize"))},z}(Group$3);function driftSymbol($,z){this.parent.drift($,z)}const SymbolClz=Symbol$1;function symbolNeedsDraw($,z,ie,le){return z&&!isNaN(z[0])&&!isNaN(z[1])&&!(le.isIgnore&&le.isIgnore(ie))&&!(le.clipShape&&!le.clipShape.contain(z[0],z[1]))&&$.getItemVisual(ie,"symbol")!=="none"}function normalizeUpdateOpt($){return $!=null&&!isObject$3($)&&($={isIgnore:$}),$||{}}function makeSeriesScope($){var z=$.hostModel,ie=z.getModel("emphasis");return{emphasisItemStyle:ie.getModel("itemStyle").getItemStyle(),blurItemStyle:z.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:z.getModel(["select","itemStyle"]).getItemStyle(),focus:ie.get("focus"),blurScope:ie.get("blurScope"),emphasisDisabled:ie.get("disabled"),hoverScale:ie.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,ie){this._progressiveEls=null,ie=normalizeUpdateOpt(ie);var le=this.group,ue=z.hostModel,pe=this._data,_e=this._SymbolCtor,Ce=ie.disableAnimation,$e=makeSeriesScope(z),xe={disableAnimation:Ce},Ie=ie.getSymbolPoint||function(ze){return z.getItemLayout(ze)};pe||le.removeAll(),z.diff(pe).add(function(ze){var Ue=Ie(ze);if(symbolNeedsDraw(z,Ue,ze,ie)){var qe=new _e(z,ze,$e,xe);qe.setPosition(Ue),z.setItemGraphicEl(ze,qe),le.add(qe)}}).update(function(ze,Ue){var qe=pe.getItemGraphicEl(Ue),Et=Ie(ze);if(!symbolNeedsDraw(z,Et,ze,ie)){le.remove(qe);return}var Lt=z.getItemVisual(ze,"symbol")||"circle",hn=qe&&qe.getSymbolType&&qe.getSymbolType();if(!qe||hn&&hn!==Lt)le.remove(qe),qe=new _e(z,ze,$e,xe),qe.setPosition(Et);else{qe.updateData(z,ze,$e,xe);var vn={x:Et[0],y:Et[1]};Ce?qe.attr(vn):updateProps$1(qe,vn,ue)}le.add(qe),z.setItemGraphicEl(ze,qe)}).remove(function(ze){var Ue=pe.getItemGraphicEl(ze);Ue&&Ue.fadeOut(function(){le.remove(Ue)},ue)}).execute(),this._getSymbolPoint=Ie,this._data=z},$.prototype.updateLayout=function(){var z=this,ie=this._data;ie&&ie.eachItemGraphicEl(function(le,ue){var pe=z._getSymbolPoint(ue);le.setPosition(pe),le.markRedraw()})},$.prototype.incrementalPrepareUpdate=function(z){this._seriesScope=makeSeriesScope(z),this._data=null,this.group.removeAll()},$.prototype.incrementalUpdate=function(z,ie,le){this._progressiveEls=[],le=normalizeUpdateOpt(le);function ue($e){$e.isGroup||($e.incremental=!0,$e.ensureState("emphasis").hoverLayer=!0)}for(var pe=z.start;pe<z.end;pe++){var _e=ie.getItemLayout(pe);if(symbolNeedsDraw(ie,_e,pe,le)){var Ce=new this._SymbolCtor(ie,pe,this._seriesScope);Ce.traverse(ue),Ce.setPosition(_e),this.group.add(Ce),ie.setItemGraphicEl(pe,Ce),this._progressiveEls.push(Ce)}}},$.prototype.eachRendered=function(z){traverseElements(this._progressiveEls||this.group,z)},$.prototype.remove=function(z){var ie=this.group,le=this._data;le&&z?le.eachItemGraphicEl(function(ue){ue.fadeOut(function(){ie.remove(ue)},le.hostModel)}):ie.removeAll()},$}();const SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo($,z,ie){var le=$.getBaseAxis(),ue=$.getOtherAxis(le),pe=getValueStart(ue,ie),_e=le.dim,Ce=ue.dim,$e=z.mapDimension(Ce),xe=z.mapDimension(_e),Ie=Ce==="x"||Ce==="radius"?1:0,ze=map$2($.dimensions,function(Et){return z.mapDimension(Et)}),Ue=!1,qe=z.getCalculationInfo("stackResultDimension");return isDimensionStacked(z,ze[0])&&(Ue=!0,ze[0]=qe),isDimensionStacked(z,ze[1])&&(Ue=!0,ze[1]=qe),{dataDimsForPoint:ze,valueStart:pe,valueAxisDim:Ce,baseAxisDim:_e,stacked:!!Ue,valueDim:$e,baseDim:xe,baseDataOffset:Ie,stackedOverDimension:z.getCalculationInfo("stackedOverDimension")}}function getValueStart($,z){var ie=0,le=$.scale.getExtent();return z==="start"?ie=le[0]:z==="end"?ie=le[1]:isNumber(z)&&!isNaN(z)?ie=z:le[0]>0?ie=le[0]:le[1]<0&&(ie=le[1]),ie}function getStackedOnPoint($,z,ie,le){var ue=NaN;$.stacked&&(ue=ie.get(ie.getCalculationInfo("stackedOverDimension"),le)),isNaN(ue)&&(ue=$.valueStart);var pe=$.baseDataOffset,_e=[];return _e[pe]=ie.get($.baseDim,le),_e[1-pe]=ue,z.dataToPoint(_e)}function diffData($,z){var ie=[];return z.diff($).add(function(le){ie.push({cmd:"+",idx:le})}).update(function(le,ue){ie.push({cmd:"=",idx:ue,idx1:le})}).remove(function(le){ie.push({cmd:"-",idx:le})}).execute(),ie}function lineAnimationDiff($,z,ie,le,ue,pe,_e,Ce){for(var $e=diffData($,z),xe=[],Ie=[],ze=[],Ue=[],qe=[],Et=[],Lt=[],hn=prepareDataCoordInfo(ue,z,_e),vn=$.getLayout("points")||[],_n=z.getLayout("points")||[],bn=0;bn<$e.length;bn++){var Sn=$e[bn],Cn=!0,En=void 0,$n=void 0;switch(Sn.cmd){case"=":En=Sn.idx*2,$n=Sn.idx1*2;var wn=vn[En],Tn=vn[En+1],xn=_n[$n],Pn=_n[$n+1];(isNaN(wn)||isNaN(Tn))&&(wn=xn,Tn=Pn),xe.push(wn,Tn),Ie.push(xn,Pn),ze.push(ie[En],ie[En+1]),Ue.push(le[$n],le[$n+1]),Lt.push(z.getRawIndex(Sn.idx1));break;case"+":var kn=Sn.idx,An=hn.dataDimsForPoint,Nn=ue.dataToPoint([z.get(An[0],kn),z.get(An[1],kn)]);$n=kn*2,xe.push(Nn[0],Nn[1]),Ie.push(_n[$n],_n[$n+1]);var Fn=getStackedOnPoint(hn,ue,z,kn);ze.push(Fn[0],Fn[1]),Ue.push(le[$n],le[$n+1]),Lt.push(z.getRawIndex(kn));break;case"-":Cn=!1}Cn&&(qe.push(Sn),Et.push(Et.length))}Et.sort(function(yr,sr){return Lt[yr]-Lt[sr]});for(var Ln=xe.length,In=createFloat32Array(Ln),Vn=createFloat32Array(Ln),Mn=createFloat32Array(Ln),zn=createFloat32Array(Ln),qn=[],bn=0;bn<Et.length;bn++){var Hn=Et[bn],Jn=bn*2,ur=Hn*2;In[Jn]=xe[ur],In[Jn+1]=xe[ur+1],Vn[Jn]=Ie[ur],Vn[Jn+1]=Ie[ur+1],Mn[Jn]=ze[ur],Mn[Jn+1]=ze[ur+1],zn[Jn]=Ue[ur],zn[Jn+1]=Ue[ur+1],qn[bn]=qe[Hn]}return{current:In,next:Vn,stackedOnCurrent:Mn,stackedOnNext:zn,status:qn}}var mathMin$3=Math.min,mathMax$3=Math.max;function isPointNull$1($,z){return isNaN($)||isNaN(z)}function drawSegment($,z,ie,le,ue,pe,_e,Ce,$e){for(var xe,Ie,ze,Ue,qe,Et,Lt=ie,hn=0;hn<le;hn++){var vn=z[Lt*2],_n=z[Lt*2+1];if(Lt>=ue||Lt<0)break;if(isPointNull$1(vn,_n)){if($e){Lt+=pe;continue}break}if(Lt===ie)$[pe>0?"moveTo":"lineTo"](vn,_n),ze=vn,Ue=_n;else{var bn=vn-xe,Sn=_n-Ie;if(bn*bn+Sn*Sn<.5){Lt+=pe;continue}if(_e>0){for(var Cn=Lt+pe,En=z[Cn*2],$n=z[Cn*2+1];En===vn&&$n===_n&&hn<le;)hn++,Cn+=pe,Lt+=pe,En=z[Cn*2],$n=z[Cn*2+1],vn=z[Lt*2],_n=z[Lt*2+1],bn=vn-xe,Sn=_n-Ie;var wn=hn+1;if($e)for(;isPointNull$1(En,$n)&&wn<le;)wn++,Cn+=pe,En=z[Cn*2],$n=z[Cn*2+1];var Tn=.5,xn=0,Pn=0,kn=void 0,An=void 0;if(wn>=le||isPointNull$1(En,$n))qe=vn,Et=_n;else{xn=En-xe,Pn=$n-Ie;var Nn=vn-xe,Fn=En-vn,Ln=_n-Ie,In=$n-_n,Vn=void 0,Mn=void 0;if(Ce==="x"){Vn=Math.abs(Nn),Mn=Math.abs(Fn);var zn=xn>0?1:-1;qe=vn-zn*Vn*_e,Et=_n,kn=vn+zn*Mn*_e,An=_n}else if(Ce==="y"){Vn=Math.abs(Ln),Mn=Math.abs(In);var qn=Pn>0?1:-1;qe=vn,Et=_n-qn*Vn*_e,kn=vn,An=_n+qn*Mn*_e}else Vn=Math.sqrt(Nn*Nn+Ln*Ln),Mn=Math.sqrt(Fn*Fn+In*In),Tn=Mn/(Mn+Vn),qe=vn-xn*_e*(1-Tn),Et=_n-Pn*_e*(1-Tn),kn=vn+xn*_e*Tn,An=_n+Pn*_e*Tn,kn=mathMin$3(kn,mathMax$3(En,vn)),An=mathMin$3(An,mathMax$3($n,_n)),kn=mathMax$3(kn,mathMin$3(En,vn)),An=mathMax$3(An,mathMin$3($n,_n)),xn=kn-vn,Pn=An-_n,qe=vn-xn*Vn/Mn,Et=_n-Pn*Vn/Mn,qe=mathMin$3(qe,mathMax$3(xe,vn)),Et=mathMin$3(Et,mathMax$3(Ie,_n)),qe=mathMax$3(qe,mathMin$3(xe,vn)),Et=mathMax$3(Et,mathMin$3(Ie,_n)),xn=vn-qe,Pn=_n-Et,kn=vn+xn*Mn/Vn,An=_n+Pn*Mn/Vn}$.bezierCurveTo(ze,Ue,qe,Et,vn,_n),ze=kn,Ue=An}else $.lineTo(vn,_n)}xe=vn,Ie=_n,Lt+=pe}return hn}var ECPolylineShape=function(){function $(){this.smooth=0,this.smoothConstraint=!0}return $}(),ECPolyline=function($){__extends(z,$);function z(ie){var le=$.call(this,ie)||this;return le.type="ec-polyline",le}return z.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},z.prototype.getDefaultShape=function(){return new ECPolylineShape},z.prototype.buildPath=function(ie,le){var ue=le.points,pe=0,_e=ue.length/2;if(le.connectNulls){for(;_e>0&&isPointNull$1(ue[_e*2-2],ue[_e*2-1]);_e--);for(;pe<_e&&isPointNull$1(ue[pe*2],ue[pe*2+1]);pe++);}for(;pe<_e;)pe+=drawSegment(ie,ue,pe,_e,_e,1,le.smooth,le.smoothMonotone,le.connectNulls)+1},z.prototype.getPointOn=function(ie,le){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var ue=this.path,pe=ue.data,_e=PathProxy$1.CMD,Ce,$e,xe=le==="x",Ie=[],ze=0;ze<pe.length;){var Ue=pe[ze++],qe=void 0,Et=void 0,Lt=void 0,hn=void 0,vn=void 0,_n=void 0,bn=void 0;switch(Ue){case _e.M:Ce=pe[ze++],$e=pe[ze++];break;case _e.L:if(qe=pe[ze++],Et=pe[ze++],bn=xe?(ie-Ce)/(qe-Ce):(ie-$e)/(Et-$e),bn<=1&&bn>=0){var Sn=xe?(Et-$e)*bn+$e:(qe-Ce)*bn+Ce;return xe?[ie,Sn]:[Sn,ie]}Ce=qe,$e=Et;break;case _e.C:qe=pe[ze++],Et=pe[ze++],Lt=pe[ze++],hn=pe[ze++],vn=pe[ze++],_n=pe[ze++];var Cn=xe?cubicRootAt(Ce,qe,Lt,vn,ie,Ie):cubicRootAt($e,Et,hn,_n,ie,Ie);if(Cn>0)for(var En=0;En<Cn;En++){var $n=Ie[En];if($n<=1&&$n>=0){var Sn=xe?cubicAt($e,Et,hn,_n,$n):cubicAt(Ce,qe,Lt,vn,$n);return xe?[ie,Sn]:[Sn,ie]}}Ce=vn,$e=_n;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(ie){var le=$.call(this,ie)||this;return le.type="ec-polygon",le}return z.prototype.getDefaultShape=function(){return new ECPolygonShape},z.prototype.buildPath=function(ie,le){var ue=le.points,pe=le.stackedOnPoints,_e=0,Ce=ue.length/2,$e=le.smoothMonotone;if(le.connectNulls){for(;Ce>0&&isPointNull$1(ue[Ce*2-2],ue[Ce*2-1]);Ce--);for(;_e<Ce&&isPointNull$1(ue[_e*2],ue[_e*2+1]);_e++);}for(;_e<Ce;){var xe=drawSegment(ie,ue,_e,Ce,Ce,1,le.smooth,$e,le.connectNulls);drawSegment(ie,pe,_e+xe-1,xe,Ce,-1,le.stackedOnSmooth,$e,le.connectNulls),_e+=xe+1,ie.closePath()}},z}(Path$1);function createGridClipPath($,z,ie,le,ue){var pe=$.getArea(),_e=pe.x,Ce=pe.y,$e=pe.width,xe=pe.height,Ie=ie.get(["lineStyle","width"])||2;_e-=Ie/2,Ce-=Ie/2,$e+=Ie,xe+=Ie,_e=Math.floor(_e),$e=Math.round($e);var ze=new Rect$2({shape:{x:_e,y:Ce,width:$e,height:xe}});if(z){var Ue=$.getBaseAxis(),qe=Ue.isHorizontal(),Et=Ue.inverse;qe?(Et&&(ze.shape.x+=$e),ze.shape.width=0):(Et||(ze.shape.y+=xe),ze.shape.height=0);var Lt=isFunction(ue)?function(hn){ue(hn,ze)}:null;initProps(ze,{shape:{width:$e,height:xe,x:_e,y:Ce}},ie,null,le,Lt)}return ze}function createPolarClipPath($,z,ie){var le=$.getArea(),ue=round$1(le.r0,1),pe=round$1(le.r,1),_e=new Sector$1({shape:{cx:round$1($.cx,1),cy:round$1($.cy,1),r0:ue,r:pe,startAngle:le.startAngle,endAngle:le.endAngle,clockwise:le.clockwise}});if(z){var Ce=$.getBaseAxis().dim==="angle";Ce?_e.shape.endAngle=le.startAngle:_e.shape.r=ue,initProps(_e,{shape:{endAngle:le.endAngle,r:pe}},ie)}return _e}function createClipPath($,z,ie,le,ue){if($){if($.type==="polar")return createPolarClipPath($,z,ie);if($.type==="cartesian2d")return createGridClipPath($,z,ie,le,ue)}else return null;return null}function isCoordinateSystemType($,z){return $.type===z}function isPointsSame($,z){if($.length===z.length){for(var ie=0;ie<$.length;ie++)if($[ie]!==z[ie])return;return!0}}function bboxFromPoints($){for(var z=1/0,ie=1/0,le=-1/0,ue=-1/0,pe=0;pe<$.length;){var _e=$[pe++],Ce=$[pe++];isNaN(_e)||(z=Math.min(_e,z),le=Math.max(_e,le)),isNaN(Ce)||(ie=Math.min(Ce,ie),ue=Math.max(Ce,ue))}return[[z,ie],[le,ue]]}function getBoundingDiff($,z){var ie=bboxFromPoints($),le=ie[0],ue=ie[1],pe=bboxFromPoints(z),_e=pe[0],Ce=pe[1];return Math.max(Math.abs(le[0]-_e[0]),Math.abs(le[1]-_e[1]),Math.abs(ue[0]-Ce[0]),Math.abs(ue[1]-Ce[1]))}function getSmooth($){return isNumber($)?$:$?.5:0}function getStackedOnPoints($,z,ie){if(!ie.valueDim)return[];for(var le=z.count(),ue=createFloat32Array(le*2),pe=0;pe<le;pe++){var _e=getStackedOnPoint(ie,$,z,pe);ue[pe*2]=_e[0],ue[pe*2+1]=_e[1]}return ue}function turnPointsIntoStep($,z,ie,le){var ue=z.getBaseAxis(),pe=ue.dim==="x"||ue.dim==="radius"?0:1,_e=[],Ce=0,$e=[],xe=[],Ie=[],ze=[];if(le){for(Ce=0;Ce<$.length;Ce+=2)!isNaN($[Ce])&&!isNaN($[Ce+1])&&ze.push($[Ce],$[Ce+1]);$=ze}for(Ce=0;Ce<$.length-2;Ce+=2)switch(Ie[0]=$[Ce+2],Ie[1]=$[Ce+3],xe[0]=$[Ce],xe[1]=$[Ce+1],_e.push(xe[0],xe[1]),ie){case"end":$e[pe]=Ie[pe],$e[1-pe]=xe[1-pe],_e.push($e[0],$e[1]);break;case"middle":var Ue=(xe[pe]+Ie[pe])/2,qe=[];$e[pe]=qe[pe]=Ue,$e[1-pe]=xe[1-pe],qe[1-pe]=Ie[1-pe],_e.push($e[0],$e[1]),_e.push(qe[0],qe[1]);break;default:$e[pe]=xe[pe],$e[1-pe]=Ie[1-pe],_e.push($e[0],$e[1])}return _e.push($[Ce++],$[Ce++]),_e}function clipColorStops($,z){var ie=[],le=$.length,ue,pe;function _e(Ie,ze,Ue){var qe=Ie.coord,Et=(Ue-qe)/(ze.coord-qe),Lt=lerp(Et,[Ie.color,ze.color]);return{coord:Ue,color:Lt}}for(var Ce=0;Ce<le;Ce++){var $e=$[Ce],xe=$e.coord;if(xe<0)ue=$e;else if(xe>z){pe?ie.push(_e(pe,$e,z)):ue&&ie.push(_e(ue,$e,0),_e(ue,$e,z));break}else ue&&(ie.push(_e(ue,$e,0)),ue=null),ie.push($e),pe=$e}return ie}function getVisualGradient($,z,ie){var le=$.getVisual("visualMeta");if(!(!le||!le.length||!$.count())&&z.type==="cartesian2d"){for(var ue,pe,_e=le.length-1;_e>=0;_e--){var Ce=$.getDimensionInfo(le[_e].dimension);if(ue=Ce&&Ce.coordDim,ue==="x"||ue==="y"){pe=le[_e];break}}if(pe){var $e=z.getAxis(ue),xe=map$2(pe.stops,function(bn){return{coord:$e.toGlobalCoord($e.dataToCoord(bn.value)),color:bn.color}}),Ie=xe.length,ze=pe.outerColors.slice();Ie&&xe[0].coord>xe[Ie-1].coord&&(xe.reverse(),ze.reverse());var Ue=clipColorStops(xe,ue==="x"?ie.getWidth():ie.getHeight()),qe=Ue.length;if(!qe&&Ie)return xe[0].coord<0?ze[1]?ze[1]:xe[Ie-1].color:ze[0]?ze[0]:xe[0].color;var Et=10,Lt=Ue[0].coord-Et,hn=Ue[qe-1].coord+Et,vn=hn-Lt;if(vn<.001)return"transparent";each$c(Ue,function(bn){bn.offset=(bn.coord-Lt)/vn}),Ue.push({offset:qe?Ue[qe-1].offset:.5,color:ze[1]||"transparent"}),Ue.unshift({offset:qe?Ue[0].offset:.5,color:ze[0]||"transparent"});var _n=new LinearGradient$1(0,0,0,0,Ue,!0);return _n[ue]=Lt,_n[ue+"2"]=hn,_n}}}function getIsIgnoreFunc($,z,ie){var le=$.get("showAllSymbol"),ue=le==="auto";if(!(le&&!ue)){var pe=ie.getAxesByScale("ordinal")[0];if(pe&&!(ue&&canShowAllSymbolForCategory(pe,z))){var _e=z.mapDimension(pe.dim),Ce={};return each$c(pe.getViewLabels(),function($e){var xe=pe.scale.getRawOrdinalNumber($e.tickValue);Ce[xe]=1}),function($e){return!Ce.hasOwnProperty(z.get(_e,$e))}}}}function canShowAllSymbolForCategory($,z){var ie=$.getExtent(),le=Math.abs(ie[1]-ie[0])/$.scale.count();isNaN(le)&&(le=0);for(var ue=z.count(),pe=Math.max(1,Math.round(ue/5)),_e=0;_e<ue;_e+=pe)if(SymbolClz.getSymbolSize(z,_e)[$.isHorizontal()?1:0]*1.5>le)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,ie){for(var le=$.length/2,ue=ie==="x"?0:1,pe,_e,Ce=0,$e=-1,xe=0;xe<le;xe++)if(_e=$[xe*2+ue],!(isNaN(_e)||isNaN($[xe*2+1-ue]))){if(xe===0){pe=_e;continue}if(pe<=z&&_e>=z||pe>=z&&_e<=z){$e=xe;break}Ce=xe,pe=_e}return{range:[Ce,$e],t:(z-pe)/(_e-pe)}}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,ie,le){if(isCoordinateSystemType(z,"cartesian2d")){var ue=le.getModel("endLabel"),pe=ue.get("valueAnimation"),_e=le.getData(),Ce={lastFrameIndex:0},$e=anyStateShowEndLabel(le)?function(qe,Et){$._endLabelOnDuring(qe,Et,_e,Ce,pe,ue,z)}:null,xe=z.getBaseAxis().isHorizontal(),Ie=createGridClipPath(z,ie,le,function(){var qe=$._endLabel;qe&&ie&&Ce.originalX!=null&&qe.attr({x:Ce.originalX,y:Ce.originalY})},$e);if(!le.get("clip",!0)){var ze=Ie.shape,Ue=Math.max(ze.width,ze.height);xe?(ze.y-=Ue,ze.height+=Ue*2):(ze.x-=Ue,ze.width+=Ue*2)}return $e&&$e(1,Ie),Ie}else return createPolarClipPath(z,ie,le)}function getEndLabelStateSpecified($,z){var ie=z.getBaseAxis(),le=ie.isHorizontal(),ue=ie.inverse,pe=le?ue?"right":"left":"center",_e=le?"middle":ue?"top":"bottom";return{normal:{align:$.get("align")||pe,verticalAlign:$.get("verticalAlign")||_e}}}var LineView=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(){var ie=new Group$3,le=new SymbolDraw$1;this.group.add(le.group),this._symbolDraw=le,this._lineGroup=ie},z.prototype.render=function(ie,le,ue){var pe=this,_e=ie.coordinateSystem,Ce=this.group,$e=ie.getData(),xe=ie.getModel("lineStyle"),Ie=ie.getModel("areaStyle"),ze=$e.getLayout("points")||[],Ue=_e.type==="polar",qe=this._coordSys,Et=this._symbolDraw,Lt=this._polyline,hn=this._polygon,vn=this._lineGroup,_n=!le.ssr&&ie.isAnimationEnabled(),bn=!Ie.isEmpty(),Sn=Ie.get("origin"),Cn=prepareDataCoordInfo(_e,$e,Sn),En=bn&&getStackedOnPoints(_e,$e,Cn),$n=ie.get("showSymbol"),wn=ie.get("connectNulls"),Tn=$n&&!Ue&&getIsIgnoreFunc(ie,$e,_e),xn=this._data;xn&&xn.eachItemGraphicEl(function(sr,Zn){sr.__temp&&(Ce.remove(sr),xn.setItemGraphicEl(Zn,null))}),$n||Et.remove(),Ce.add(vn);var Pn=Ue?!1:ie.get("step"),kn;_e&&_e.getArea&&ie.get("clip",!0)&&(kn=_e.getArea(),kn.width!=null?(kn.x-=.1,kn.y-=.1,kn.width+=.2,kn.height+=.2):kn.r0&&(kn.r0-=.5,kn.r+=.5)),this._clipShapeForSymbol=kn;var An=getVisualGradient($e,_e,ue)||$e.getVisual("style")[$e.getVisual("drawType")];if(!(Lt&&qe.type===_e.type&&Pn===this._step))$n&&Et.updateData($e,{isIgnore:Tn,clipShape:kn,disableAnimation:!0,getSymbolPoint:function(sr){return[ze[sr*2],ze[sr*2+1]]}}),_n&&this._initSymbolLabelAnimation($e,_e,kn),Pn&&(ze=turnPointsIntoStep(ze,_e,Pn,wn),En&&(En=turnPointsIntoStep(En,_e,Pn,wn))),Lt=this._newPolyline(ze),bn?hn=this._newPolygon(ze,En):hn&&(vn.remove(hn),hn=this._polygon=null),Ue||this._initOrUpdateEndLabel(ie,_e,convertToColorString(An)),vn.setClipPath(createLineClipPath(this,_e,!0,ie));else{bn&&!hn?hn=this._newPolygon(ze,En):hn&&!bn&&(vn.remove(hn),hn=this._polygon=null),Ue||this._initOrUpdateEndLabel(ie,_e,convertToColorString(An));var Nn=vn.getClipPath();if(Nn){var Fn=createLineClipPath(this,_e,!1,ie);initProps(Nn,{shape:Fn.shape},ie)}else vn.setClipPath(createLineClipPath(this,_e,!0,ie));$n&&Et.updateData($e,{isIgnore:Tn,clipShape:kn,disableAnimation:!0,getSymbolPoint:function(sr){return[ze[sr*2],ze[sr*2+1]]}}),(!isPointsSame(this._stackedOnPoints,En)||!isPointsSame(this._points,ze))&&(_n?this._doUpdateAnimation($e,En,_e,ue,Pn,Sn,wn):(Pn&&(ze=turnPointsIntoStep(ze,_e,Pn,wn),En&&(En=turnPointsIntoStep(En,_e,Pn,wn))),Lt.setShape({points:ze}),hn&&hn.setShape({points:ze,stackedOnPoints:En})))}var Ln=ie.getModel("emphasis"),In=Ln.get("focus"),Vn=Ln.get("blurScope"),Mn=Ln.get("disabled");if(Lt.useStyle(defaults(xe.getLineStyle(),{fill:"none",stroke:An,lineJoin:"bevel"})),setStatesStylesFromModel(Lt,ie,"lineStyle"),Lt.style.lineWidth>0&&ie.get(["emphasis","lineStyle","width"])==="bolder"){var zn=Lt.getState("emphasis").style;zn.lineWidth=+Lt.style.lineWidth+1}getECData(Lt).seriesIndex=ie.seriesIndex,toggleHoverEmphasis(Lt,In,Vn,Mn);var qn=getSmooth(ie.get("smooth")),Hn=ie.get("smoothMonotone");if(Lt.setShape({smooth:qn,smoothMonotone:Hn,connectNulls:wn}),hn){var Jn=$e.getCalculationInfo("stackedOnSeries"),ur=0;hn.useStyle(defaults(Ie.getAreaStyle(),{fill:An,opacity:.7,lineJoin:"bevel",decal:$e.getVisual("style").decal})),Jn&&(ur=getSmooth(Jn.get("smooth"))),hn.setShape({smooth:qn,stackedOnSmooth:ur,smoothMonotone:Hn,connectNulls:wn}),setStatesStylesFromModel(hn,ie,"areaStyle"),getECData(hn).seriesIndex=ie.seriesIndex,toggleHoverEmphasis(hn,In,Vn,Mn)}var yr=function(sr){pe._changePolyState(sr)};$e.eachItemGraphicEl(function(sr){sr&&(sr.onHoverStateChange=yr)}),this._polyline.onHoverStateChange=yr,this._data=$e,this._coordSys=_e,this._stackedOnPoints=En,this._points=ze,this._step=Pn,this._valueOrigin=Sn,ie.get("triggerLineEvent")&&(this.packEventData(ie,Lt),hn&&this.packEventData(ie,hn))},z.prototype.packEventData=function(ie,le){getECData(le).eventData={componentType:"series",componentSubType:"line",componentIndex:ie.componentIndex,seriesIndex:ie.seriesIndex,seriesName:ie.name,seriesType:"line"}},z.prototype.highlight=function(ie,le,ue,pe){var _e=ie.getData(),Ce=queryDataIndex(_e,pe);if(this._changePolyState("emphasis"),!(Ce instanceof Array)&&Ce!=null&&Ce>=0){var $e=_e.getLayout("points"),xe=_e.getItemGraphicEl(Ce);if(!xe){var Ie=$e[Ce*2],ze=$e[Ce*2+1];if(isNaN(Ie)||isNaN(ze)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(Ie,ze))return;var Ue=ie.get("zlevel")||0,qe=ie.get("z")||0;xe=new SymbolClz(_e,Ce),xe.x=Ie,xe.y=ze,xe.setZ(Ue,qe);var Et=xe.getSymbolPath().getTextContent();Et&&(Et.zlevel=Ue,Et.z=qe,Et.z2=this._polyline.z2+1),xe.__temp=!0,_e.setItemGraphicEl(Ce,xe),xe.stopSymbolAnimation(!0),this.group.add(xe)}xe.highlight()}else ChartView$1.prototype.highlight.call(this,ie,le,ue,pe)},z.prototype.downplay=function(ie,le,ue,pe){var _e=ie.getData(),Ce=queryDataIndex(_e,pe);if(this._changePolyState("normal"),Ce!=null&&Ce>=0){var $e=_e.getItemGraphicEl(Ce);$e&&($e.__temp?(_e.setItemGraphicEl(Ce,null),this.group.remove($e)):$e.downplay())}else ChartView$1.prototype.downplay.call(this,ie,le,ue,pe)},z.prototype._changePolyState=function(ie){var le=this._polygon;setStatesFlag(this._polyline,ie),le&&setStatesFlag(le,ie)},z.prototype._newPolyline=function(ie){var le=this._polyline;return le&&this._lineGroup.remove(le),le=new ECPolyline({shape:{points:ie},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(le),this._polyline=le,le},z.prototype._newPolygon=function(ie,le){var ue=this._polygon;return ue&&this._lineGroup.remove(ue),ue=new ECPolygon({shape:{points:ie,stackedOnPoints:le},segmentIgnoreThreshold:2}),this._lineGroup.add(ue),this._polygon=ue,ue},z.prototype._initSymbolLabelAnimation=function(ie,le,ue){var pe,_e,Ce=le.getBaseAxis(),$e=Ce.inverse;le.type==="cartesian2d"?(pe=Ce.isHorizontal(),_e=!1):le.type==="polar"&&(pe=Ce.dim==="angle",_e=!0);var xe=ie.hostModel,Ie=xe.get("animationDuration");isFunction(Ie)&&(Ie=Ie(null));var ze=xe.get("animationDelay")||0,Ue=isFunction(ze)?ze(null):ze;ie.eachItemGraphicEl(function(qe,Et){var Lt=qe;if(Lt){var hn=[qe.x,qe.y],vn=void 0,_n=void 0,bn=void 0;if(ue)if(_e){var Sn=ue,Cn=le.pointToCoord(hn);pe?(vn=Sn.startAngle,_n=Sn.endAngle,bn=-Cn[1]/180*Math.PI):(vn=Sn.r0,_n=Sn.r,bn=Cn[0])}else{var En=ue;pe?(vn=En.x,_n=En.x+En.width,bn=qe.x):(vn=En.y+En.height,_n=En.y,bn=qe.y)}var $n=_n===vn?0:(bn-vn)/(_n-vn);$e&&($n=1-$n);var wn=isFunction(ze)?ze(Et):Ie*$n+Ue,Tn=Lt.getSymbolPath(),xn=Tn.getTextContent();Lt.attr({scaleX:0,scaleY:0}),Lt.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:wn}),xn&&xn.animateFrom({style:{opacity:0}},{duration:300,delay:wn}),Tn.disableLabelAnimation=!0}})},z.prototype._initOrUpdateEndLabel=function(ie,le,ue){var pe=ie.getModel("endLabel");if(anyStateShowEndLabel(ie)){var _e=ie.getData(),Ce=this._polyline,$e=_e.getLayout("points");if(!$e){Ce.removeTextContent(),this._endLabel=null;return}var xe=this._endLabel;xe||(xe=this._endLabel=new ZRText$1({z2:200}),xe.ignoreClip=!0,Ce.setTextContent(this._endLabel),Ce.disableLabelAnimation=!0);var Ie=getLastIndexNotNull($e);Ie>=0&&(setLabelStyle(Ce,getLabelStatesModels(ie,"endLabel"),{inheritColor:ue,labelFetcher:ie,labelDataIndex:Ie,defaultText:function(ze,Ue,qe){return qe!=null?getDefaultInterpolatedLabel(_e,qe):getDefaultLabel(_e,ze)},enableTextSetter:!0},getEndLabelStateSpecified(pe,le)),Ce.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},z.prototype._endLabelOnDuring=function(ie,le,ue,pe,_e,Ce,$e){var xe=this._endLabel,Ie=this._polyline;if(xe){ie<1&&pe.originalX==null&&(pe.originalX=xe.x,pe.originalY=xe.y);var ze=ue.getLayout("points"),Ue=ue.hostModel,qe=Ue.get("connectNulls"),Et=Ce.get("precision"),Lt=Ce.get("distance")||0,hn=$e.getBaseAxis(),vn=hn.isHorizontal(),_n=hn.inverse,bn=le.shape,Sn=_n?vn?bn.x:bn.y+bn.height:vn?bn.x+bn.width:bn.y,Cn=(vn?Lt:0)*(_n?-1:1),En=(vn?0:-Lt)*(_n?-1:1),$n=vn?"x":"y",wn=getIndexRange(ze,Sn,$n),Tn=wn.range,xn=Tn[1]-Tn[0],Pn=void 0;if(xn>=1){if(xn>1&&!qe){var kn=getPointAtIndex(ze,Tn[0]);xe.attr({x:kn[0]+Cn,y:kn[1]+En}),_e&&(Pn=Ue.getRawValue(Tn[0]))}else{var kn=Ie.getPointOn(Sn,$n);kn&&xe.attr({x:kn[0]+Cn,y:kn[1]+En});var An=Ue.getRawValue(Tn[0]),Nn=Ue.getRawValue(Tn[1]);_e&&(Pn=interpolateRawValues(ue,Et,An,Nn,wn.t))}pe.lastFrameIndex=Tn[0]}else{var Fn=ie===1||pe.lastFrameIndex>0?Tn[0]:0,kn=getPointAtIndex(ze,Fn);_e&&(Pn=Ue.getRawValue(Fn)),xe.attr({x:kn[0]+Cn,y:kn[1]+En})}_e&&labelInner(xe).setLabelText(Pn)}},z.prototype._doUpdateAnimation=function(ie,le,ue,pe,_e,Ce,$e){var xe=this._polyline,Ie=this._polygon,ze=ie.hostModel,Ue=lineAnimationDiff(this._data,ie,this._stackedOnPoints,le,this._coordSys,ue,this._valueOrigin),qe=Ue.current,Et=Ue.stackedOnCurrent,Lt=Ue.next,hn=Ue.stackedOnNext;if(_e&&(qe=turnPointsIntoStep(Ue.current,ue,_e,$e),Et=turnPointsIntoStep(Ue.stackedOnCurrent,ue,_e,$e),Lt=turnPointsIntoStep(Ue.next,ue,_e,$e),hn=turnPointsIntoStep(Ue.stackedOnNext,ue,_e,$e)),getBoundingDiff(qe,Lt)>3e3||Ie&&getBoundingDiff(Et,hn)>3e3){xe.stopAnimation(),xe.setShape({points:Lt}),Ie&&(Ie.stopAnimation(),Ie.setShape({points:Lt,stackedOnPoints:hn}));return}xe.shape.__points=Ue.current,xe.shape.points=qe;var vn={shape:{points:Lt}};Ue.current!==qe&&(vn.shape.__points=Ue.next),xe.stopAnimation(),updateProps$1(xe,vn,ze),Ie&&(Ie.setShape({points:qe,stackedOnPoints:Et}),Ie.stopAnimation(),updateProps$1(Ie,{shape:{stackedOnPoints:hn}},ze),xe.shape.points!==Ie.shape.points&&(Ie.shape.points=xe.shape.points));for(var _n=[],bn=Ue.status,Sn=0;Sn<bn.length;Sn++){var Cn=bn[Sn].cmd;if(Cn==="="){var En=ie.getItemGraphicEl(bn[Sn].idx1);En&&_n.push({el:En,ptIdx:Sn})}}xe.animators&&xe.animators.length&&xe.animators[0].during(function(){Ie&&Ie.dirtyShape();for(var $n=xe.shape.__points,wn=0;wn<_n.length;wn++){var Tn=_n[wn].el,xn=_n[wn].ptIdx*2;Tn.x=$n[xn],Tn.y=$n[xn+1],Tn.markRedraw()}})},z.prototype.remove=function(ie){var le=this.group,ue=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),ue&&ue.eachItemGraphicEl(function(pe,_e){pe.__temp&&(le.remove(pe),ue.setItemGraphicEl(_e,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(ie){var le=ie.getData(),ue=ie.coordinateSystem,pe=ie.pipelineContext,_e=z||pe.large;if(ue){var Ce=map$2(ue.dimensions,function(qe){return le.mapDimension(qe)}).slice(0,2),$e=Ce.length,xe=le.getCalculationInfo("stackResultDimension");isDimensionStacked(le,Ce[0])&&(Ce[0]=xe),isDimensionStacked(le,Ce[1])&&(Ce[1]=xe);var Ie=le.getStore(),ze=le.getDimensionIndex(Ce[0]),Ue=le.getDimensionIndex(Ce[1]);return $e&&{progress:function(qe,Et){for(var Lt=qe.end-qe.start,hn=_e&&createFloat32Array(Lt*$e),vn=[],_n=[],bn=qe.start,Sn=0;bn<qe.end;bn++){var Cn=void 0;if($e===1){var En=Ie.get(ze,bn);Cn=ue.dataToPoint(En,null,_n)}else vn[0]=Ie.get(ze,bn),vn[1]=Ie.get(Ue,bn),Cn=ue.dataToPoint(vn,null,_n);_e?(hn[Sn++]=Cn[0],hn[Sn++]=Cn[1]):Et.setItemLayout(bn,Cn.slice())}_e&&Et.setLayout("points",hn)}}}}}}var samplers={average:function($){for(var z=0,ie=0,le=0;le<$.length;le++)isNaN($[le])||(z+=$[le],ie++);return ie===0?NaN:z/ie},sum:function($){for(var z=0,ie=0;ie<$.length;ie++)z+=$[ie]||0;return z},max:function($){for(var z=-1/0,ie=0;ie<$.length;ie++)$[ie]>z&&(z=$[ie]);return isFinite(z)?z:NaN},min:function($){for(var z=1/0,ie=0;ie<$.length;ie++)$[ie]<z&&(z=$[ie]);return isFinite(z)?z:NaN},nearest:function($){return $[0]}},indexSampler=function($){return Math.round($.length/2)};function dataSample($){return{seriesType:$,reset:function(z,ie,le){var ue=z.getData(),pe=z.get("sampling"),_e=z.coordinateSystem,Ce=ue.count();if(Ce>10&&_e.type==="cartesian2d"&&pe){var $e=_e.getBaseAxis(),xe=_e.getOtherAxis($e),Ie=$e.getExtent(),ze=le.getDevicePixelRatio(),Ue=Math.abs(Ie[1]-Ie[0])*(ze||1),qe=Math.round(Ce/Ue);if(isFinite(qe)&&qe>1){pe==="lttb"&&z.setData(ue.lttbDownSample(ue.mapDimension(xe.dim),1/qe));var Et=void 0;isString(pe)?Et=samplers[pe]:isFunction(pe)&&(Et=pe),Et&&z.setData(ue.downSample(ue.mapDimension(xe.dim),1/qe,Et,indexSampler))}}}}}function install$j($){$.registerChartView(LineView$1),$.registerSeriesModel(LineSeries),$.registerLayout(pointsLayout("line",!0)),$.registerVisual({seriesType:"line",reset:function(z){var ie=z.getData(),le=z.getModel("lineStyle").getLineStyle();le&&!le.stroke&&(le.stroke=ie.getVisual("style").fill),ie.setVisual("legendLineStyle",le)}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.getInitialData=function(ie,le){return createSeriesData(null,this,{useEncodeDefaulter:!0})},z.prototype.getMarkerPosition=function(ie,le,ue){var pe=this.coordinateSystem;if(pe&&pe.clampData){var _e=pe.clampData(ie),Ce=pe.dataToPoint(_e);if(ue)each$c(pe.getAxes(),function(Ue,qe){if(Ue.type==="category"&&le!=null){var Et=Ue.getTicksCoords(),Lt=_e[qe],hn=le[qe]==="x1"||le[qe]==="y1";if(hn&&(Lt+=1),Et.length<2)return;if(Et.length===2){Ce[qe]=Ue.toGlobalCoord(Ue.getExtent()[hn?1:0]);return}for(var vn=void 0,_n=void 0,bn=1,Sn=0;Sn<Et.length;Sn++){var Cn=Et[Sn].coord,En=Sn===Et.length-1?Et[Sn-1].tickValue+bn:Et[Sn].tickValue;if(En===Lt){_n=Cn;break}else if(En<Lt)vn=Cn;else if(vn!=null&&En>Lt){_n=(Cn+vn)/2;break}Sn===1&&(bn=En-Et[0].tickValue)}_n==null&&(vn?vn&&(_n=Et[Et.length-1].coord):_n=Et[0].coord),Ce[qe]=Ue.toGlobalCoord(_n)}});else{var $e=this.getData(),xe=$e.getLayout("offset"),Ie=$e.getLayout("size"),ze=pe.getBaseAxis().isHorizontal()?0:1;Ce[ze]+=xe+Ie/2}return Ce}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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}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 ie=this.get("progressiveThreshold"),le=this.get("largeThreshold");return le>ie&&(ie=le),ie},z.prototype.brushSelector=function(ie,le,ue){return ue.rect(le.getItemLayout(ie))},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(ie){var le=$.call(this,ie)||this;return le.type="sausage",le}return z.prototype.getDefaultShape=function(){return new SausageShape},z.prototype.buildPath=function(ie,le){var ue=le.cx,pe=le.cy,_e=Math.max(le.r0||0,0),Ce=Math.max(le.r,0),$e=(Ce-_e)*.5,xe=_e+$e,Ie=le.startAngle,ze=le.endAngle,Ue=le.clockwise,qe=Math.PI*2,Et=Ue?ze-Ie<qe:Ie-ze<qe;Et||(Ie=ze-(Ue?qe:-qe));var Lt=Math.cos(Ie),hn=Math.sin(Ie),vn=Math.cos(ze),_n=Math.sin(ze);Et?(ie.moveTo(Lt*_e+ue,hn*_e+pe),ie.arc(Lt*xe+ue,hn*xe+pe,$e,-Math.PI+Ie,Ie,!Ue)):ie.moveTo(Lt*Ce+ue,hn*Ce+pe),ie.arc(ue,pe,Ce,Ie,ze,!Ue),ie.arc(vn*xe+ue,_n*xe+pe,$e,ze-Math.PI*2,ze-Math.PI,!Ue),_e!==0&&ie.arc(ue,pe,_e,ze,Ie,Ue)},z}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition($,z){z=z||{};var ie=z.isRoundCap;return function(le,ue,pe){var _e=ue.position;if(!_e||_e instanceof Array)return calculateTextPosition(le,ue,pe);var Ce=$(_e),$e=ue.distance!=null?ue.distance:5,xe=this.shape,Ie=xe.cx,ze=xe.cy,Ue=xe.r,qe=xe.r0,Et=(Ue+qe)/2,Lt=xe.startAngle,hn=xe.endAngle,vn=(Lt+hn)/2,_n=ie?Math.abs(Ue-qe)/2:0,bn=Math.cos,Sn=Math.sin,Cn=Ie+Ue*bn(Lt),En=ze+Ue*Sn(Lt),$n="left",wn="top";switch(Ce){case"startArc":Cn=Ie+(qe-$e)*bn(vn),En=ze+(qe-$e)*Sn(vn),$n="center",wn="top";break;case"insideStartArc":Cn=Ie+(qe+$e)*bn(vn),En=ze+(qe+$e)*Sn(vn),$n="center",wn="bottom";break;case"startAngle":Cn=Ie+Et*bn(Lt)+adjustAngleDistanceX(Lt,$e+_n,!1),En=ze+Et*Sn(Lt)+adjustAngleDistanceY(Lt,$e+_n,!1),$n="right",wn="middle";break;case"insideStartAngle":Cn=Ie+Et*bn(Lt)+adjustAngleDistanceX(Lt,-$e+_n,!1),En=ze+Et*Sn(Lt)+adjustAngleDistanceY(Lt,-$e+_n,!1),$n="left",wn="middle";break;case"middle":Cn=Ie+Et*bn(vn),En=ze+Et*Sn(vn),$n="center",wn="middle";break;case"endArc":Cn=Ie+(Ue+$e)*bn(vn),En=ze+(Ue+$e)*Sn(vn),$n="center",wn="bottom";break;case"insideEndArc":Cn=Ie+(Ue-$e)*bn(vn),En=ze+(Ue-$e)*Sn(vn),$n="center",wn="top";break;case"endAngle":Cn=Ie+Et*bn(hn)+adjustAngleDistanceX(hn,$e+_n,!0),En=ze+Et*Sn(hn)+adjustAngleDistanceY(hn,$e+_n,!0),$n="left",wn="middle";break;case"insideEndAngle":Cn=Ie+Et*bn(hn)+adjustAngleDistanceX(hn,-$e+_n,!0),En=ze+Et*Sn(hn)+adjustAngleDistanceY(hn,-$e+_n,!0),$n="right",wn="middle";break;default:return calculateTextPosition(le,ue,pe)}return le=le||{},le.x=Cn,le.y=En,le.align=$n,le.verticalAlign=wn,le}}function setSectorTextRotation($,z,ie,le){if(isNumber(le)){$.setTextConfig({rotation:le});return}else if(isArray$1(z)){$.setTextConfig({rotation:0});return}var ue=$.shape,pe=ue.clockwise?ue.startAngle:ue.endAngle,_e=ue.clockwise?ue.endAngle:ue.startAngle,Ce=(pe+_e)/2,$e,xe=ie(z);switch(xe){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":$e=Ce;break;case"startAngle":case"insideStartAngle":$e=pe;break;case"endAngle":case"insideEndAngle":$e=_e;break;default:$.setTextConfig({rotation:0});return}var Ie=Math.PI*1.5-$e;xe==="middle"&&Ie>Math.PI/2&&Ie<Math.PI*1.5&&(Ie-=Math.PI),$.setTextConfig({rotation:Ie})}function adjustAngleDistanceX($,z,ie){return z*Math.sin($)*(ie?-1:1)}function adjustAngleDistanceY($,z,ie){return z*Math.cos($)*(ie?1:-1)}function getSectorCornerRadius($,z,ie){var le=$.get("borderRadius");if(le==null)return ie?{cornerRadius:0}:null;isArray$1(le)||(le=[le,le,le,le]);var ue=Math.abs(z.r||0-z.r0||0);return{cornerRadius:map$2(le,function(pe){return parsePercent$1(pe,ue)})}}var mathMax$2=Math.max,mathMin$2=Math.min;function getClipArea($,z){var ie=$.getArea&&$.getArea();if(isCoordinateSystemType($,"cartesian2d")){var le=$.getBaseAxis();if(le.type!=="category"||!le.onBand){var ue=z.getLayout("bandWidth");le.isHorizontal()?(ie.x-=ue,ie.width+=ue*2):(ie.y-=ue,ie.height+=ue*2)}}return ie}var BarView=function($){__extends(z,$);function z(){var ie=$.call(this)||this;return ie.type=z.type,ie._isFirstFrame=!0,ie}return z.prototype.render=function(ie,le,ue,pe){this._model=ie,this._removeOnRenderedListener(ue),this._updateDrawMode(ie);var _e=ie.get("coordinateSystem");(_e==="cartesian2d"||_e==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(ie,le,ue):this._renderNormal(ie,le,ue,pe))},z.prototype.incrementalPrepareRender=function(ie){this._clear(),this._updateDrawMode(ie),this._updateLargeClip(ie)},z.prototype.incrementalRender=function(ie,le){this._progressiveEls=[],this._incrementalRenderLarge(ie,le)},z.prototype.eachRendered=function(ie){traverseElements(this._progressiveEls||this.group,ie)},z.prototype._updateDrawMode=function(ie){var le=ie.pipelineContext.large;(this._isLargeDraw==null||le!==this._isLargeDraw)&&(this._isLargeDraw=le,this._clear())},z.prototype._renderNormal=function(ie,le,ue,pe){var _e=this.group,Ce=ie.getData(),$e=this._data,xe=ie.coordinateSystem,Ie=xe.getBaseAxis(),ze;xe.type==="cartesian2d"?ze=Ie.isHorizontal():xe.type==="polar"&&(ze=Ie.dim==="angle");var Ue=ie.isAnimationEnabled()?ie:null,qe=shouldRealtimeSort(ie,xe);qe&&this._enableRealtimeSort(qe,Ce,ue);var Et=ie.get("clip",!0)||qe,Lt=getClipArea(xe,Ce);_e.removeClipPath();var hn=ie.get("roundCap",!0),vn=ie.get("showBackground",!0),_n=ie.getModel("backgroundStyle"),bn=_n.get("borderRadius")||0,Sn=[],Cn=this._backgroundEls,En=pe&&pe.isInitSort,$n=pe&&pe.type==="changeAxisOrder";function wn(Pn){var kn=getLayout[xe.type](Ce,Pn),An=createBackgroundEl(xe,ze,kn);return An.useStyle(_n.getItemStyle()),xe.type==="cartesian2d"?An.setShape("r",bn):An.setShape("cornerRadius",bn),Sn[Pn]=An,An}Ce.diff($e).add(function(Pn){var kn=Ce.getItemModel(Pn),An=getLayout[xe.type](Ce,Pn,kn);if(vn&&wn(Pn),!(!Ce.hasValue(Pn)||!isValidLayout[xe.type](An))){var Nn=!1;Et&&(Nn=clip[xe.type](Lt,An));var Fn=elementCreator[xe.type](ie,Ce,Pn,An,ze,Ue,Ie.model,!1,hn);qe&&(Fn.forceLabelAnimation=!0),updateStyle(Fn,Ce,Pn,kn,An,ie,ze,xe.type==="polar"),En?Fn.attr({shape:An}):qe?updateRealtimeAnimation(qe,Ue,Fn,An,Pn,ze,!1,!1):initProps(Fn,{shape:An},ie,Pn),Ce.setItemGraphicEl(Pn,Fn),_e.add(Fn),Fn.ignore=Nn}}).update(function(Pn,kn){var An=Ce.getItemModel(Pn),Nn=getLayout[xe.type](Ce,Pn,An);if(vn){var Fn=void 0;Cn.length===0?Fn=wn(kn):(Fn=Cn[kn],Fn.useStyle(_n.getItemStyle()),xe.type==="cartesian2d"?Fn.setShape("r",bn):Fn.setShape("cornerRadius",bn),Sn[Pn]=Fn);var Ln=getLayout[xe.type](Ce,Pn),In=createBackgroundShape(ze,Ln,xe);updateProps$1(Fn,{shape:In},Ue,Pn)}var Vn=$e.getItemGraphicEl(kn);if(!Ce.hasValue(Pn)||!isValidLayout[xe.type](Nn)){_e.remove(Vn);return}var Mn=!1;if(Et&&(Mn=clip[xe.type](Lt,Nn),Mn&&_e.remove(Vn)),Vn?saveOldStyle(Vn):Vn=elementCreator[xe.type](ie,Ce,Pn,Nn,ze,Ue,Ie.model,!!Vn,hn),qe&&(Vn.forceLabelAnimation=!0),$n){var zn=Vn.getTextContent();if(zn){var qn=labelInner(zn);qn.prevValue!=null&&(qn.prevValue=qn.value)}}else updateStyle(Vn,Ce,Pn,An,Nn,ie,ze,xe.type==="polar");En?Vn.attr({shape:Nn}):qe?updateRealtimeAnimation(qe,Ue,Vn,Nn,Pn,ze,!0,$n):updateProps$1(Vn,{shape:Nn},ie,Pn,null),Ce.setItemGraphicEl(Pn,Vn),Vn.ignore=Mn,_e.add(Vn)}).remove(function(Pn){var kn=$e.getItemGraphicEl(Pn);kn&&removeElementWithFadeOut(kn,ie,Pn)}).execute();var Tn=this._backgroundGroup||(this._backgroundGroup=new Group$3);Tn.removeAll();for(var xn=0;xn<Sn.length;++xn)Tn.add(Sn[xn]);_e.add(Tn),this._backgroundEls=Sn,this._data=Ce},z.prototype._renderLarge=function(ie,le,ue){this._clear(),createLarge(ie,this.group),this._updateLargeClip(ie)},z.prototype._incrementalRenderLarge=function(ie,le){this._removeBackground(),createLarge(le,this.group,this._progressiveEls,!0)},z.prototype._updateLargeClip=function(ie){var le=ie.get("clip",!0)&&createClipPath(ie.coordinateSystem,!1,ie),ue=this.group;le?ue.setClipPath(le):ue.removeClipPath()},z.prototype._enableRealtimeSort=function(ie,le,ue){var pe=this;if(le.count()){var _e=ie.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(le,ie,ue),this._isFirstFrame=!1;else{var Ce=function($e){var xe=le.getItemGraphicEl($e),Ie=xe&&xe.shape;return Ie&&Math.abs(_e.isHorizontal()?Ie.height:Ie.width)||0};this._onRendered=function(){pe._updateSortWithinSameData(le,Ce,_e,ue)},ue.getZr().on("rendered",this._onRendered)}}},z.prototype._dataSort=function(ie,le,ue){var pe=[];return ie.each(ie.mapDimension(le.dim),function(_e,Ce){var $e=ue(Ce);$e=$e??NaN,pe.push({dataIndex:Ce,mappedValue:$e,ordinalNumber:_e})}),pe.sort(function(_e,Ce){return Ce.mappedValue-_e.mappedValue}),{ordinalNumbers:map$2(pe,function(_e){return _e.ordinalNumber})}},z.prototype._isOrderChangedWithinSameData=function(ie,le,ue){for(var pe=ue.scale,_e=ie.mapDimension(ue.dim),Ce=Number.MAX_VALUE,$e=0,xe=pe.getOrdinalMeta().categories.length;$e<xe;++$e){var Ie=ie.rawIndexOf(_e,pe.getRawOrdinalNumber($e)),ze=Ie<0?Number.MIN_VALUE:le(ie.indexOfRawIndex(Ie));if(ze>Ce)return!0;Ce=ze}return!1},z.prototype._isOrderDifferentInView=function(ie,le){for(var ue=le.scale,pe=ue.getExtent(),_e=Math.max(0,pe[0]),Ce=Math.min(pe[1],ue.getOrdinalMeta().categories.length-1);_e<=Ce;++_e)if(ie.ordinalNumbers[_e]!==ue.getRawOrdinalNumber(_e))return!0},z.prototype._updateSortWithinSameData=function(ie,le,ue,pe){if(this._isOrderChangedWithinSameData(ie,le,ue)){var _e=this._dataSort(ie,ue,le);this._isOrderDifferentInView(_e,ue)&&(this._removeOnRenderedListener(pe),pe.dispatchAction({type:"changeAxisOrder",componentType:ue.dim+"Axis",axisId:ue.index,sortInfo:_e}))}},z.prototype._dispatchInitSort=function(ie,le,ue){var pe=le.baseAxis,_e=this._dataSort(ie,pe,function(Ce){return ie.get(ie.mapDimension(le.otherAxis.dim),Ce)});ue.dispatchAction({type:"changeAxisOrder",componentType:pe.dim+"Axis",isInitSort:!0,axisId:pe.index,sortInfo:_e})},z.prototype.remove=function(ie,le){this._clear(this._model),this._removeOnRenderedListener(le)},z.prototype.dispose=function(ie,le){this._removeOnRenderedListener(le)},z.prototype._removeOnRenderedListener=function(ie){this._onRendered&&(ie.getZr().off("rendered",this._onRendered),this._onRendered=null)},z.prototype._clear=function(ie){var le=this.group,ue=this._data;ie&&ie.isAnimationEnabled()&&ue&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],ue.eachItemGraphicEl(function(pe){removeElementWithFadeOut(pe,ie,getECData(pe).dataIndex)})):le.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 ie=z.width<0?-1:1,le=z.height<0?-1:1;ie<0&&(z.x+=z.width,z.width=-z.width),le<0&&(z.y+=z.height,z.height=-z.height);var ue=$.x+$.width,pe=$.y+$.height,_e=mathMax$2(z.x,$.x),Ce=mathMin$2(z.x+z.width,ue),$e=mathMax$2(z.y,$.y),xe=mathMin$2(z.y+z.height,pe),Ie=Ce<_e,ze=xe<$e;return z.x=Ie&&_e>ue?Ce:_e,z.y=ze&&$e>pe?xe:$e,z.width=Ie?0:Ce-_e,z.height=ze?0:xe-$e,ie<0&&(z.x+=z.width,z.width=-z.width),le<0&&(z.y+=z.height,z.height=-z.height),Ie||ze},polar:function($,z){var ie=z.r0<=z.r?1:-1;if(ie<0){var le=z.r;z.r=z.r0,z.r0=le}var ue=mathMin$2(z.r,$.r),pe=mathMax$2(z.r0,$.r0);z.r=ue,z.r0=pe;var _e=ue-pe<0;if(ie<0){var le=z.r;z.r=z.r0,z.r0=le}return _e}},elementCreator={cartesian2d:function($,z,ie,le,ue,pe,_e,Ce,$e){var xe=new Rect$2({shape:extend({},le),z2:1});if(xe.__dataIndex=ie,xe.name="item",pe){var Ie=xe.shape,ze=ue?"height":"width";Ie[ze]=0}return xe},polar:function($,z,ie,le,ue,pe,_e,Ce,$e){var xe=!ue&&$e?Sausage:Sector$1,Ie=new xe({shape:le,z2:1});Ie.name="item";var ze=createPolarPositionMapping(ue);if(Ie.calculateTextPosition=createSectorCalculateTextPosition(ze,{isRoundCap:xe===Sausage}),pe){var Ue=Ie.shape,qe=ue?"r":"endAngle",Et={};Ue[qe]=ue?le.r0:le.startAngle,Et[qe]=le[qe],(Ce?updateProps$1:initProps)(Ie,{shape:Et},pe)}return Ie}};function shouldRealtimeSort($,z){var ie=$.get("realtimeSort",!0),le=z.getBaseAxis();if(ie&&le.type==="category"&&z.type==="cartesian2d")return{baseAxis:le,otherAxis:z.getOtherAxis(le)}}function updateRealtimeAnimation($,z,ie,le,ue,pe,_e,Ce){var $e,xe;pe?(xe={x:le.x,width:le.width},$e={y:le.y,height:le.height}):(xe={y:le.y,height:le.height},$e={x:le.x,width:le.width}),Ce||(_e?updateProps$1:initProps)(ie,{shape:$e},z,ue,null);var Ie=z?$.baseAxis.model:null;(_e?updateProps$1:initProps)(ie,{shape:xe},Ie,ue)}function checkPropertiesNotValid($,z){for(var ie=0;ie<z.length;ie++)if(!isFinite($[z[ie]]))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,ie){var le=$.getItemLayout(z),ue=ie?getLineWidth(ie,le):0,pe=le.width>0?1:-1,_e=le.height>0?1:-1;return{x:le.x+pe*ue/2,y:le.y+_e*ue/2,width:le.width-pe*ue,height:le.height-_e*ue}},polar:function($,z,ie){var le=$.getItemLayout(z);return{cx:le.cx,cy:le.cy,r0:le.r0,r:le.r,startAngle:le.startAngle,endAngle:le.endAngle,clockwise:le.clockwise}}};function isZeroOnPolar($){return $.startAngle!=null&&$.endAngle!=null&&$.startAngle===$.endAngle}function createPolarPositionMapping($){return function(z){var ie=z?"Arc":"Angle";return function(le){switch(le){case"start":case"insideStart":case"end":case"insideEnd":return le+ie;default:return le}}}($)}function updateStyle($,z,ie,le,ue,pe,_e,Ce){var $e=z.getItemVisual(ie,"style");if(Ce){if(!pe.get("roundCap")){var Ie=$.shape,ze=getSectorCornerRadius(le.getModel("itemStyle"),Ie,!0);extend(Ie,ze),$.setShape(Ie)}}else{var xe=le.get(["itemStyle","borderRadius"])||0;$.setShape("r",xe)}$.useStyle($e);var Ue=le.getShallow("cursor");Ue&&$.attr("cursor",Ue);var qe=Ce?_e?ue.r>=ue.r0?"endArc":"startArc":ue.endAngle>=ue.startAngle?"endAngle":"startAngle":_e?ue.height>=0?"bottom":"top":ue.width>=0?"right":"left",Et=getLabelStatesModels(le);setLabelStyle($,Et,{labelFetcher:pe,labelDataIndex:ie,defaultText:getDefaultLabel(pe.getData(),ie),inheritColor:$e.fill,defaultOpacity:$e.opacity,defaultOutsidePosition:qe});var Lt=$.getTextContent();if(Ce&&Lt){var hn=le.get(["label","position"]);$.textConfig.inside=hn==="middle"?!0:null,setSectorTextRotation($,hn==="outside"?qe:hn,createPolarPositionMapping(_e),le.get(["label","rotate"]))}setLabelValueAnimation(Lt,Et,pe.getRawValue(ie),function(_n){return getDefaultInterpolatedLabel(z,_n)});var vn=le.getModel(["emphasis"]);toggleHoverEmphasis($,vn.get("focus"),vn.get("blurScope"),vn.get("disabled")),setStatesStylesFromModel($,le),isZeroOnPolar(ue)&&($.style.fill="none",$.style.stroke="none",each$c($.states,function(_n){_n.style&&(_n.style.fill=_n.style.stroke="none")}))}function getLineWidth($,z){var ie=$.get(["itemStyle","borderColor"]);if(!ie||ie==="none")return 0;var le=$.get(["itemStyle","borderWidth"])||0,ue=isNaN(z.width)?Number.MAX_VALUE:Math.abs(z.width),pe=isNaN(z.height)?Number.MAX_VALUE:Math.abs(z.height);return Math.min(le,ue,pe)}var LagePathShape=function(){function $(){}return $}(),LargePath=function($){__extends(z,$);function z(ie){var le=$.call(this,ie)||this;return le.type="largeBar",le}return z.prototype.getDefaultShape=function(){return new LagePathShape},z.prototype.buildPath=function(ie,le){for(var ue=le.points,pe=this.baseDimIdx,_e=1-this.baseDimIdx,Ce=[],$e=[],xe=this.barWidth,Ie=0;Ie<ue.length;Ie+=3)$e[pe]=xe,$e[_e]=ue[Ie+2],Ce[pe]=ue[Ie+pe],Ce[_e]=ue[Ie+_e],ie.rect(Ce[0],Ce[1],$e[0],$e[1])},z}(Path$1);function createLarge($,z,ie,le){var ue=$.getData(),pe=ue.getLayout("valueAxisHorizontal")?1:0,_e=ue.getLayout("largeDataIndices"),Ce=ue.getLayout("size"),$e=$.getModel("backgroundStyle"),xe=ue.getLayout("largeBackgroundPoints");if(xe){var Ie=new LargePath({shape:{points:xe},incremental:!!le,silent:!0,z2:0});Ie.baseDimIdx=pe,Ie.largeDataIndices=_e,Ie.barWidth=Ce,Ie.useStyle($e.getItemStyle()),z.add(Ie),ie&&ie.push(Ie)}var ze=new LargePath({shape:{points:ue.getLayout("largePoints")},incremental:!!le,ignoreCoarsePointer:!0,z2:1});ze.baseDimIdx=pe,ze.largeDataIndices=_e,ze.barWidth=Ce,z.add(ze),ze.useStyle(ue.getVisual("style")),getECData(ze).seriesIndex=$.seriesIndex,$.get("silent")||(ze.on("mousedown",largePathUpdateDataIndex),ze.on("mousemove",largePathUpdateDataIndex)),ie&&ie.push(ze)}var largePathUpdateDataIndex=throttle(function($){var z=this,ie=largePathFindDataIndex(z,$.offsetX,$.offsetY);getECData(z).dataIndex=ie>=0?ie:null},30,!1);function largePathFindDataIndex($,z,ie){for(var le=$.baseDimIdx,ue=1-le,pe=$.shape.points,_e=$.largeDataIndices,Ce=[],$e=[],xe=$.barWidth,Ie=0,ze=pe.length/3;Ie<ze;Ie++){var Ue=Ie*3;if($e[le]=xe,$e[ue]=pe[Ue+2],Ce[le]=pe[Ue+le],Ce[ue]=pe[Ue+ue],$e[ue]<0&&(Ce[ue]+=$e[ue],$e[ue]=-$e[ue]),z>=Ce[0]&&z<=Ce[0]+$e[0]&&ie>=Ce[1]&&ie<=Ce[1]+$e[1])return _e[Ie]}return-1}function createBackgroundShape($,z,ie){if(isCoordinateSystemType(ie,"cartesian2d")){var le=z,ue=ie.getArea();return{x:$?le.x:ue.x,y:$?ue.y:le.y,width:$?le.width:ue.width,height:$?ue.height:le.height}}else{var ue=ie.getArea(),pe=z;return{cx:ue.cx,cy:ue.cy,r0:$?ue.r0:pe.r0,r:$?ue.r:pe.r,startAngle:$?pe.startAngle:0,endAngle:$?pe.endAngle:Math.PI*2}}}function createBackgroundEl($,z,ie){var le=$.type==="polar"?Sector$1:Rect$2;return new le({shape:createBackgroundShape(z,ie,$),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,ie){var le=z.componentType||"series";ie.eachComponent({mainType:le,query:z},function(ue){z.sortInfo&&ue.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 ie=getViewRect($,z),le=$.get("center"),ue=$.get("radius");isArray$1(ue)||(ue=[0,ue]);var pe=parsePercent(ie.width,z.getWidth()),_e=parsePercent(ie.height,z.getHeight()),Ce=Math.min(pe,_e),$e=parsePercent(ue[0],Ce/2),xe=parsePercent(ue[1],Ce/2),Ie,ze,Ue=$.coordinateSystem;if(Ue){var qe=Ue.dataToPoint(le);Ie=qe[0]||0,ze=qe[1]||0}else isArray$1(le)||(le=[le,le]),Ie=parsePercent(le[0],pe)+ie.x,ze=parsePercent(le[1],_e)+ie.y;return{cx:Ie,cy:ze,r0:$e,r:xe}}function pieLayout($,z,ie){z.eachSeriesByType($,function(le){var ue=le.getData(),pe=ue.mapDimension("value"),_e=getViewRect(le,ie),Ce=getBasicPieLayout(le,ie),$e=Ce.cx,xe=Ce.cy,Ie=Ce.r,ze=Ce.r0,Ue=-le.get("startAngle")*RADIAN$1,qe=le.get("minAngle")*RADIAN$1,Et=0;ue.each(pe,function(xn){!isNaN(xn)&&Et++});var Lt=ue.getSum(pe),hn=Math.PI/(Lt||Et)*2,vn=le.get("clockwise"),_n=le.get("roseType"),bn=le.get("stillShowZeroSum"),Sn=ue.getDataExtent(pe);Sn[0]=0;var Cn=PI2,En=0,$n=Ue,wn=vn?1:-1;if(ue.setLayout({viewRect:_e,r:Ie}),ue.each(pe,function(xn,Pn){var kn;if(isNaN(xn)){ue.setItemLayout(Pn,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:vn,cx:$e,cy:xe,r0:ze,r:_n?NaN:Ie});return}_n!=="area"?kn=Lt===0&&bn?hn:xn*hn:kn=PI2/Et,kn<qe?(kn=qe,Cn-=qe):En+=xn;var An=$n+wn*kn;ue.setItemLayout(Pn,{angle:kn,startAngle:$n,endAngle:An,clockwise:vn,cx:$e,cy:xe,r0:ze,r:_n?linearMap$2(xn,Sn,[ze,Ie]):Ie}),$n=An}),Cn<PI2&&Et)if(Cn<=.001){var Tn=PI2/Et;ue.each(pe,function(xn,Pn){if(!isNaN(xn)){var kn=ue.getItemLayout(Pn);kn.angle=Tn,kn.startAngle=Ue+wn*Pn*Tn,kn.endAngle=Ue+wn*(Pn+1)*Tn}})}else hn=Cn/En,$n=Ue,ue.each(pe,function(xn,Pn){if(!isNaN(xn)){var kn=ue.getItemLayout(Pn),An=kn.angle===qe?qe:xn*hn;kn.startAngle=$n,kn.endAngle=$n+wn*An,$n+=wn*An}})})}function dataFilter($){return{seriesType:$,reset:function(z,ie){var le=ie.findComponents({mainType:"legend"});if(!(!le||!le.length)){var ue=z.getData();ue.filterSelf(function(pe){for(var _e=ue.getName(pe),Ce=0;Ce<le.length;Ce++)if(!le[Ce].isSelected(_e))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide($,z,ie,le,ue,pe,_e,Ce,$e,xe){if($.length<2)return;function Ie(Lt){for(var hn=Lt.rB,vn=hn*hn,_n=0;_n<Lt.list.length;_n++){var bn=Lt.list[_n],Sn=Math.abs(bn.label.y-ie),Cn=le+bn.len,En=Cn*Cn,$n=Math.sqrt((1-Math.abs(Sn*Sn/vn))*En),wn=z+($n+bn.len2)*ue,Tn=wn-bn.label.x,xn=bn.targetTextWidth-Tn*ue;constrainTextWidth(bn,xn,!0),bn.label.x=wn}}function ze(Lt){for(var hn={list:[],maxY:0},vn={list:[],maxY:0},_n=0;_n<Lt.length;_n++)if(Lt[_n].labelAlignTo==="none"){var bn=Lt[_n],Sn=bn.label.y>ie?vn:hn,Cn=Math.abs(bn.label.y-ie);if(Cn>=Sn.maxY){var En=bn.label.x-z-bn.len2*ue,$n=le+bn.len,wn=Math.abs(En)<$n?Math.sqrt(Cn*Cn/(1-En*En/$n/$n)):$n;Sn.rB=wn,Sn.maxY=Cn}Sn.list.push(bn)}Ie(hn),Ie(vn)}for(var Ue=$.length,qe=0;qe<Ue;qe++)if($[qe].position==="outer"&&$[qe].labelAlignTo==="labelLine"){var Et=$[qe].label.x-xe;$[qe].linePoints[1][0]+=Et,$[qe].label.x=xe}shiftLayoutOnY($,$e,$e+_e)&&ze($)}function avoidOverlap($,z,ie,le,ue,pe,_e,Ce){for(var $e=[],xe=[],Ie=Number.MAX_VALUE,ze=-Number.MAX_VALUE,Ue=0;Ue<$.length;Ue++){var qe=$[Ue].label;isPositionCenter($[Ue])||(qe.x<z?(Ie=Math.min(Ie,qe.x),$e.push($[Ue])):(ze=Math.max(ze,qe.x),xe.push($[Ue])))}for(var Ue=0;Ue<$.length;Ue++){var Et=$[Ue];if(!isPositionCenter(Et)&&Et.linePoints){if(Et.labelStyleWidth!=null)continue;var qe=Et.label,Lt=Et.linePoints,hn=void 0;Et.labelAlignTo==="edge"?qe.x<z?hn=Lt[2][0]-Et.labelDistance-_e-Et.edgeDistance:hn=_e+ue-Et.edgeDistance-Lt[2][0]-Et.labelDistance:Et.labelAlignTo==="labelLine"?qe.x<z?hn=Ie-_e-Et.bleedMargin:hn=_e+ue-ze-Et.bleedMargin:qe.x<z?hn=qe.x-_e-Et.bleedMargin:hn=_e+ue-qe.x-Et.bleedMargin,Et.targetTextWidth=hn,constrainTextWidth(Et,hn)}}adjustSingleSide(xe,z,ie,le,1,ue,pe,_e,Ce,ze),adjustSingleSide($e,z,ie,le,-1,ue,pe,_e,Ce,Ie);for(var Ue=0;Ue<$.length;Ue++){var Et=$[Ue];if(!isPositionCenter(Et)&&Et.linePoints){var qe=Et.label,Lt=Et.linePoints,vn=Et.labelAlignTo==="edge",_n=qe.style.padding,bn=_n?_n[1]+_n[3]:0,Sn=qe.style.backgroundColor?0:bn,Cn=Et.rect.width+Sn,En=Lt[1][0]-Lt[2][0];vn?qe.x<z?Lt[2][0]=_e+Et.edgeDistance+Cn+Et.labelDistance:Lt[2][0]=_e+ue-Et.edgeDistance-Cn-Et.labelDistance:(qe.x<z?Lt[2][0]=qe.x+Et.labelDistance:Lt[2][0]=qe.x-Et.labelDistance,Lt[1][0]=Lt[2][0]+En),Lt[1][1]=Lt[2][1]=qe.y}}}function constrainTextWidth($,z,ie){if(ie===void 0&&(ie=!1),$.labelStyleWidth==null){var le=$.label,ue=le.style,pe=$.rect,_e=ue.backgroundColor,Ce=ue.padding,$e=Ce?Ce[1]+Ce[3]:0,xe=ue.overflow,Ie=pe.width+(_e?0:$e);if(z<Ie||ie){var ze=pe.height;if(xe&&xe.match("break")){le.setStyle("backgroundColor",null),le.setStyle("width",z-$e);var Ue=le.getBoundingRect();le.setStyle("width",Math.ceil(Ue.width)),le.setStyle("backgroundColor",_e)}else{var qe=z-$e,Et=z<Ie?qe:ie?qe>$.unconstrainedWidth?null:qe:null;le.setStyle("width",Et)}var Lt=le.getBoundingRect();pe.width=Lt.width;var hn=(le.style.margin||0)+2.1;pe.height=Lt.height+hn,pe.y-=(pe.height-ze)/2}}}function isPositionCenter($){return $.position==="center"}function pieLabelLayout($){var z=$.getData(),ie=[],le,ue,pe=!1,_e=($.get("minShowLabelAngle")||0)*RADIAN,Ce=z.getLayout("viewRect"),$e=z.getLayout("r"),xe=Ce.width,Ie=Ce.x,ze=Ce.y,Ue=Ce.height;function qe(En){En.ignore=!0}function Et(En){if(!En.ignore)return!0;for(var $n in En.states)if(En.states[$n].ignore===!1)return!0;return!1}z.each(function(En){var $n=z.getItemGraphicEl(En),wn=$n.shape,Tn=$n.getTextContent(),xn=$n.getTextGuideLine(),Pn=z.getItemModel(En),kn=Pn.getModel("label"),An=kn.get("position")||Pn.get(["emphasis","label","position"]),Nn=kn.get("distanceToLabelLine"),Fn=kn.get("alignTo"),Ln=parsePercent(kn.get("edgeDistance"),xe),In=kn.get("bleedMargin"),Vn=Pn.getModel("labelLine"),Mn=Vn.get("length");Mn=parsePercent(Mn,xe);var zn=Vn.get("length2");if(zn=parsePercent(zn,xe),Math.abs(wn.endAngle-wn.startAngle)<_e){each$c(Tn.states,qe),Tn.ignore=!0,xn&&(each$c(xn.states,qe),xn.ignore=!0);return}if(Et(Tn)){var qn=(wn.startAngle+wn.endAngle)/2,Hn=Math.cos(qn),Jn=Math.sin(qn),ur,yr,sr,Zn;le=wn.cx,ue=wn.cy;var Kn=An==="inside"||An==="inner";if(An==="center")ur=wn.cx,yr=wn.cy,Zn="center";else{var Wn=(Kn?(wn.r+wn.r0)/2*Hn:wn.r*Hn)+le,nr=(Kn?(wn.r+wn.r0)/2*Jn:wn.r*Jn)+ue;if(ur=Wn+Hn*3,yr=nr+Jn*3,!Kn){var fr=Wn+Hn*(Mn+$e-wn.r),Gn=nr+Jn*(Mn+$e-wn.r),Xn=fr+(Hn<0?-1:1)*zn,or=Gn;Fn==="edge"?ur=Hn<0?Ie+Ln:Ie+xe-Ln:ur=Xn+(Hn<0?-Nn:Nn),yr=or,sr=[[Wn,nr],[fr,Gn],[Xn,or]]}Zn=Kn?"center":Fn==="edge"?Hn>0?"right":"left":Hn>0?"left":"right"}var vr=Math.PI,_r=0,ir=kn.get("rotate");if(isNumber(ir))_r=ir*(vr/180);else if(An==="center")_r=0;else if(ir==="radial"||ir===!0){var Pr=Hn<0?-qn+vr:-qn;_r=Pr}else if(ir==="tangential"&&An!=="outside"&&An!=="outer"){var gr=Math.atan2(Hn,Jn);gr<0&&(gr=vr*2+gr);var kr=Jn>0;kr&&(gr=vr+gr),_r=gr-vr}if(pe=!!_r,Tn.x=ur,Tn.y=yr,Tn.rotation=_r,Tn.setStyle({verticalAlign:"middle"}),Kn){Tn.setStyle({align:Zn});var dr=Tn.states.select;dr&&(dr.x+=Tn.x,dr.y+=Tn.y)}else{var pr=Tn.getBoundingRect().clone();pr.applyTransform(Tn.getComputedTransform());var lr=(Tn.style.margin||0)+2.1;pr.y-=lr/2,pr.height+=lr,ie.push({label:Tn,labelLine:xn,position:An,len:Mn,len2:zn,minTurnAngle:Vn.get("minTurnAngle"),maxSurfaceAngle:Vn.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Hn,Jn),linePoints:sr,textAlign:Zn,labelDistance:Nn,labelAlignTo:Fn,edgeDistance:Ln,bleedMargin:In,rect:pr,unconstrainedWidth:pr.width,labelStyleWidth:Tn.style.width})}$n.setTextConfig({inside:Kn})}}),!pe&&$.get("avoidLabelOverlap")&&avoidOverlap(ie,le,ue,$e,xe,Ue,Ie,ze);for(var Lt=0;Lt<ie.length;Lt++){var hn=ie[Lt],vn=hn.label,_n=hn.labelLine,bn=isNaN(vn.x)||isNaN(vn.y);if(vn){vn.setStyle({align:hn.textAlign}),bn&&(each$c(vn.states,qe),vn.ignore=!0);var Sn=vn.states.select;Sn&&(Sn.x+=vn.x,Sn.y+=vn.y)}if(_n){var Cn=hn.linePoints;bn||!Cn?(each$c(_n.states,qe),_n.ignore=!0):(limitTurnAngle(Cn,hn.minTurnAngle),limitSurfaceAngle(Cn,hn.surfaceNormal,hn.maxSurfaceAngle),_n.setShape({points:Cn}),vn.__hostTarget.textGuideLineConfig={anchor:new Point$1(Cn[0][0],Cn[0][1])})}}}var PiePiece=function($){__extends(z,$);function z(ie,le,ue){var pe=$.call(this)||this;pe.z2=2;var _e=new ZRText$1;return pe.setTextContent(_e),pe.updateData(ie,le,ue,!0),pe}return z.prototype.updateData=function(ie,le,ue,pe){var _e=this,Ce=ie.hostModel,$e=ie.getItemModel(le),xe=$e.getModel("emphasis"),Ie=ie.getItemLayout(le),ze=extend(getSectorCornerRadius($e.getModel("itemStyle"),Ie,!0),Ie);if(isNaN(ze.startAngle)){_e.setShape(ze);return}if(pe){_e.setShape(ze);var Ue=Ce.getShallow("animationType");Ce.ecModel.ssr?(initProps(_e,{scaleX:0,scaleY:0},Ce,{dataIndex:le,isFrom:!0}),_e.originX=ze.cx,_e.originY=ze.cy):Ue==="scale"?(_e.shape.r=Ie.r0,initProps(_e,{shape:{r:Ie.r}},Ce,le)):ue!=null?(_e.setShape({startAngle:ue,endAngle:ue}),initProps(_e,{shape:{startAngle:Ie.startAngle,endAngle:Ie.endAngle}},Ce,le)):(_e.shape.endAngle=Ie.startAngle,updateProps$1(_e,{shape:{endAngle:Ie.endAngle}},Ce,le))}else saveOldStyle(_e),updateProps$1(_e,{shape:ze},Ce,le);_e.useStyle(ie.getItemVisual(le,"style")),setStatesStylesFromModel(_e,$e);var qe=(Ie.startAngle+Ie.endAngle)/2,Et=Ce.get("selectedOffset"),Lt=Math.cos(qe)*Et,hn=Math.sin(qe)*Et,vn=$e.getShallow("cursor");vn&&_e.attr("cursor",vn),this._updateLabel(Ce,ie,le),_e.ensureState("emphasis").shape=extend({r:Ie.r+(xe.get("scale")&&xe.get("scaleSize")||0)},getSectorCornerRadius(xe.getModel("itemStyle"),Ie)),extend(_e.ensureState("select"),{x:Lt,y:hn,shape:getSectorCornerRadius($e.getModel(["select","itemStyle"]),Ie)}),extend(_e.ensureState("blur"),{shape:getSectorCornerRadius($e.getModel(["blur","itemStyle"]),Ie)});var _n=_e.getTextGuideLine(),bn=_e.getTextContent();_n&&extend(_n.ensureState("select"),{x:Lt,y:hn}),extend(bn.ensureState("select"),{x:Lt,y:hn}),toggleHoverEmphasis(this,xe.get("focus"),xe.get("blurScope"),xe.get("disabled"))},z.prototype._updateLabel=function(ie,le,ue){var pe=this,_e=le.getItemModel(ue),Ce=_e.getModel("labelLine"),$e=le.getItemVisual(ue,"style"),xe=$e&&$e.fill,Ie=$e&&$e.opacity;setLabelStyle(pe,getLabelStatesModels(_e),{labelFetcher:le.hostModel,labelDataIndex:ue,inheritColor:xe,defaultOpacity:Ie,defaultText:ie.getFormattedLabel(ue,"normal")||le.getName(ue)});var ze=pe.getTextContent();pe.setTextConfig({position:null,rotation:null}),ze.attr({z2:10});var Ue=ie.get(["label","position"]);if(Ue!=="outside"&&Ue!=="outer")pe.removeTextGuideLine();else{var qe=this.getTextGuideLine();qe||(qe=new Polyline$1,this.setTextGuideLine(qe)),setLabelLineStyle(this,getLabelLineStatesModels(_e),{stroke:xe,opacity:retrieve3(Ce.get(["lineStyle","opacity"]),Ie,1)})}},z}(Sector$1),PieView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.ignoreLabelLineUpdate=!0,ie}return z.prototype.render=function(ie,le,ue,pe){var _e=ie.getData(),Ce=this._data,$e=this.group,xe;if(!Ce&&_e.count()>0){for(var Ie=_e.getItemLayout(0),ze=1;isNaN(Ie&&Ie.startAngle)&&ze<_e.count();++ze)Ie=_e.getItemLayout(ze);Ie&&(xe=Ie.startAngle)}if(this._emptyCircleSector&&$e.remove(this._emptyCircleSector),_e.count()===0&&ie.get("showEmptyCircle")){var Ue=new Sector$1({shape:getBasicPieLayout(ie,ue)});Ue.useStyle(ie.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=Ue,$e.add(Ue)}_e.diff(Ce).add(function(qe){var Et=new PiePiece(_e,qe,xe);_e.setItemGraphicEl(qe,Et),$e.add(Et)}).update(function(qe,Et){var Lt=Ce.getItemGraphicEl(Et);Lt.updateData(_e,qe,xe),Lt.off("click"),$e.add(Lt),_e.setItemGraphicEl(qe,Lt)}).remove(function(qe){var Et=Ce.getItemGraphicEl(qe);removeElementWithFadeOut(Et,ie,qe)}).execute(),pieLabelLayout(ie),ie.get("animationTypeUpdate")!=="expansion"&&(this._data=_e)},z.prototype.dispose=function(){},z.prototype.containPoint=function(ie,le){var ue=le.getData(),pe=ue.getItemLayout(0);if(pe){var _e=ie[0]-pe.cx,Ce=ie[1]-pe.cy,$e=Math.sqrt(_e*_e+Ce*Ce);return $e<=pe.r&&$e>=pe.r0}},z.type="pie",z}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply($,z,ie){z=isArray$1(z)&&{coordDimensions:z}||extend({encodeDefine:$.getEncode()},z);var le=$.getSource(),ue=prepareSeriesDataSchema(le,z).dimensions,pe=new SeriesData$1(ue,$);return pe.initData(le,ie),pe}var LegendVisualProvider=function(){function $(z,ie){this._getDataWithEncodedVisual=z,this._getRawData=ie}return $.prototype.getAllNames=function(){var z=this._getRawData();return z.mapArray(z.getName)},$.prototype.containName=function(z){var ie=this._getRawData();return ie.indexOfName(z)>=0},$.prototype.indexOfName=function(z){var ie=this._getDataWithEncodedVisual();return ie.indexOfName(z)},$.prototype.getItemVisual=function(z,ie){var le=this._getDataWithEncodedVisual();return le.getItemVisual(z,ie)},$}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.init=function(ie){$.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(ie)},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(ie){var le=this.getData(),ue=innerData(le),pe=ue.seats;if(!pe){var _e=[];le.each(le.mapDimension("value"),function($e){_e.push($e)}),pe=ue.seats=getPercentSeats(_e,le.hostModel.get("percentPrecision"))}var Ce=$.prototype.getDataParams.call(this,ie);return Ce.percent=pe[ie]||0,Ce.$vars.push("percent"),Ce},z.prototype._defaultLabelLine=function(ie){defaultEmphasis(ie,"labelLine",["show"]);var le=ie.labelLine,ue=ie.emphasis.labelLine;le.show=le.show&&ie.label.show,ue.show=ue.show&&ie.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,ie){var le=z.getData();le.filterSelf(function(ue){var pe=le.mapDimension("value"),_e=le.get(pe,ue);return!(isNumber(_e)&&!isNaN(_e)&&_e<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,ie,le){each$c(AXIS_TYPES,function(ue,pe){var _e=merge(merge({},axisDefault[pe],!0),le,!0),Ce=function($e){__extends(xe,$e);function xe(){var Ie=$e!==null&&$e.apply(this,arguments)||this;return Ie.type=z+"Axis."+pe,Ie}return xe.prototype.mergeDefaultAndTheme=function(Ie,ze){var Ue=fetchLayoutMode(this),qe=Ue?getLayoutParams(Ie):{},Et=ze.getTheme();merge(Ie,Et.get(pe+"Axis")),merge(Ie,this.getDefaultOption()),Ie.type=getAxisType(Ie),Ue&&mergeLayoutParam(Ie,qe,Ue)},xe.prototype.optionUpdated=function(){var Ie=this.option;Ie.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},xe.prototype.getCategories=function(Ie){var ze=this.option;if(ze.type==="category")return Ie?ze.data:this.__ordinalMeta.categories},xe.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},xe.type=z+"Axis."+pe,xe.defaultOption=_e,xe}(ie);$.registerComponentModel(Ce)}),$.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(ie){return ie.scale.type===z})},$.prototype.addAxis=function(z){var ie=z.dim;this._axes[ie]=z,this._dimList.push(ie)},$}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform($){return $.type==="interval"||$.type==="time"}var Cartesian2D=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type="cartesian2d",ie.dimensions=cartesian2DDimensions,ie}return z.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var ie=this.getAxis("x").scale,le=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(ie)||!canCalculateAffineTransform(le))){var ue=ie.getExtent(),pe=le.getExtent(),_e=this.dataToPoint([ue[0],pe[0]]),Ce=this.dataToPoint([ue[1],pe[1]]),$e=ue[1]-ue[0],xe=pe[1]-pe[0];if(!(!$e||!xe)){var Ie=(Ce[0]-_e[0])/$e,ze=(Ce[1]-_e[1])/xe,Ue=_e[0]-ue[0]*Ie,qe=_e[1]-pe[0]*ze,Et=this._transform=[Ie,0,0,ze,Ue,qe];this._invTransform=invert([],Et)}}},z.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},z.prototype.containPoint=function(ie){var le=this.getAxis("x"),ue=this.getAxis("y");return le.contain(le.toLocalCoord(ie[0]))&&ue.contain(ue.toLocalCoord(ie[1]))},z.prototype.containData=function(ie){return this.getAxis("x").containData(ie[0])&&this.getAxis("y").containData(ie[1])},z.prototype.containZone=function(ie,le){var ue=this.dataToPoint(ie),pe=this.dataToPoint(le),_e=this.getArea(),Ce=new BoundingRect$1(ue[0],ue[1],pe[0]-ue[0],pe[1]-ue[1]);return _e.intersect(Ce)},z.prototype.dataToPoint=function(ie,le,ue){ue=ue||[];var pe=ie[0],_e=ie[1];if(this._transform&&pe!=null&&isFinite(pe)&&_e!=null&&isFinite(_e))return applyTransform$1(ue,ie,this._transform);var Ce=this.getAxis("x"),$e=this.getAxis("y");return ue[0]=Ce.toGlobalCoord(Ce.dataToCoord(pe,le)),ue[1]=$e.toGlobalCoord($e.dataToCoord(_e,le)),ue},z.prototype.clampData=function(ie,le){var ue=this.getAxis("x").scale,pe=this.getAxis("y").scale,_e=ue.getExtent(),Ce=pe.getExtent(),$e=ue.parse(ie[0]),xe=pe.parse(ie[1]);return le=le||[],le[0]=Math.min(Math.max(Math.min(_e[0],_e[1]),$e),Math.max(_e[0],_e[1])),le[1]=Math.min(Math.max(Math.min(Ce[0],Ce[1]),xe),Math.max(Ce[0],Ce[1])),le},z.prototype.pointToData=function(ie,le){var ue=[];if(this._invTransform)return applyTransform$1(ue,ie,this._invTransform);var pe=this.getAxis("x"),_e=this.getAxis("y");return ue[0]=pe.coordToData(pe.toLocalCoord(ie[0]),le),ue[1]=_e.coordToData(_e.toLocalCoord(ie[1]),le),ue},z.prototype.getOtherAxis=function(ie){return this.getAxis(ie.dim==="x"?"y":"x")},z.prototype.getArea=function(){var ie=this.getAxis("x").getGlobalExtent(),le=this.getAxis("y").getGlobalExtent(),ue=Math.min(ie[0],ie[1]),pe=Math.min(le[0],le[1]),_e=Math.max(ie[0],ie[1])-ue,Ce=Math.max(le[0],le[1])-pe;return new BoundingRect$1(ue,pe,_e,Ce)},z}(Cartesian$1),Axis2D=function($){__extends(z,$);function z(ie,le,ue,pe,_e){var Ce=$.call(this,ie,le,ue)||this;return Ce.index=0,Ce.type=pe||"value",Ce.position=_e||"bottom",Ce}return z.prototype.isHorizontal=function(){var ie=this.position;return ie==="top"||ie==="bottom"},z.prototype.getGlobalExtent=function(ie){var le=this.getExtent();return le[0]=this.toGlobalCoord(le[0]),le[1]=this.toGlobalCoord(le[1]),ie&&le[0]>le[1]&&le.reverse(),le},z.prototype.pointToData=function(ie,le){return this.coordToData(this.toLocalCoord(ie[this.dim==="x"?0:1]),le)},z.prototype.setCategorySortInfo=function(ie){if(this.type!=="category")return!1;this.model.option.categorySortInfo=ie,this.scale.setSortInfo(ie)},z}(Axis$1);const Axis2D$1=Axis2D;function layout$1($,z,ie){ie=ie||{};var le=$.coordinateSystem,ue=z.axis,pe={},_e=ue.getAxesOnZeroOf()[0],Ce=ue.position,$e=_e?"onZero":Ce,xe=ue.dim,Ie=le.getRect(),ze=[Ie.x,Ie.x+Ie.width,Ie.y,Ie.y+Ie.height],Ue={left:0,right:1,top:0,bottom:1,onZero:2},qe=z.get("offset")||0,Et=xe==="x"?[ze[2]-qe,ze[3]+qe]:[ze[0]-qe,ze[1]+qe];if(_e){var Lt=_e.toGlobalCoord(_e.dataToCoord(0));Et[Ue.onZero]=Math.max(Math.min(Lt,Et[1]),Et[0])}pe.position=[xe==="y"?Et[Ue[$e]]:ze[0],xe==="x"?Et[Ue[$e]]:ze[3]],pe.rotation=Math.PI/2*(xe==="x"?0:1);var hn={top:-1,bottom:1,left:-1,right:1};pe.labelDirection=pe.tickDirection=pe.nameDirection=hn[Ce],pe.labelOffset=_e?Et[Ue[Ce]]-Et[Ue.onZero]:0,z.get(["axisTick","inside"])&&(pe.tickDirection=-pe.tickDirection),retrieve(ie.labelInside,z.get(["axisLabel","inside"]))&&(pe.labelDirection=-pe.labelDirection);var vn=z.get(["axisLabel","rotate"]);return pe.labelRotate=$e==="top"?-vn:vn,pe.z2=1,pe}function isCartesian2DSeries($){return $.get("coordinateSystem")==="cartesian2d"}function findAxisModels($){var z={xAxisModel:null,yAxisModel:null};return each$c(z,function(ie,le){var ue=le.replace(/Model$/,""),pe=$.getReferringComponents(ue,SINGLE_REFERRING).models[0];z[le]=pe}),z}var mathLog=Math.log;function alignScaleTicks($,z,ie){var le=IntervalScale$1.prototype,ue=le.getTicks.call(ie),pe=le.getTicks.call(ie,!0),_e=ue.length-1,Ce=le.getInterval.call(ie),$e=getScaleExtent($,z),xe=$e.extent,Ie=$e.fixMin,ze=$e.fixMax;if($.type==="log"){var Ue=mathLog($.base);xe=[mathLog(xe[0])/Ue,mathLog(xe[1])/Ue]}$.setExtent(xe[0],xe[1]),$.calcNiceExtent({splitNumber:_e,fixMin:Ie,fixMax:ze});var qe=le.getExtent.call($);Ie&&(xe[0]=qe[0]),ze&&(xe[1]=qe[1]);var Et=le.getInterval.call($),Lt=xe[0],hn=xe[1];if(Ie&&ze)Et=(hn-Lt)/_e;else if(Ie)for(hn=xe[0]+Et*_e;hn<xe[1]&&isFinite(hn)&&isFinite(xe[1]);)Et=increaseInterval(Et),hn=xe[0]+Et*_e;else if(ze)for(Lt=xe[1]-Et*_e;Lt>xe[0]&&isFinite(Lt)&&isFinite(xe[0]);)Et=increaseInterval(Et),Lt=xe[1]-Et*_e;else{var vn=$.getTicks().length-1;vn>_e&&(Et=increaseInterval(Et));var _n=Et*_e;hn=Math.ceil(xe[1]/Et)*Et,Lt=round$1(hn-_n),Lt<0&&xe[0]>=0?(Lt=0,hn=round$1(_n)):hn>0&&xe[1]<=0&&(hn=0,Lt=-round$1(_n))}var bn=(ue[0].value-pe[0].value)/Ce,Sn=(ue[_e].value-pe[_e].value)/Ce;le.setExtent.call($,Lt+Et*bn,hn+Et*Sn),le.setInterval.call($,Et),(bn||Sn)&&le.setNiceExtent.call($,Lt+Et,hn-Et)}var Grid=function(){function $(z,ie,le){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(z,ie,le),this.model=z}return $.prototype.getRect=function(){return this._rect},$.prototype.update=function(z,ie){var le=this._axesMap;this._updateScale(z,this.model);function ue(_e){var Ce,$e=keys(_e),xe=$e.length;if(xe){for(var Ie=[],ze=xe-1;ze>=0;ze--){var Ue=+$e[ze],qe=_e[Ue],Et=qe.model,Lt=qe.scale;isIntervalOrLogScale(Lt)&&Et.get("alignTicks")&&Et.get("interval")==null?Ie.push(qe):(niceScaleExtent(Lt,Et),isIntervalOrLogScale(Lt)&&(Ce=qe))}Ie.length&&(Ce||(Ce=Ie.pop(),niceScaleExtent(Ce.scale,Ce.model)),each$c(Ie,function(hn){alignScaleTicks(hn.scale,hn.model,Ce.scale)}))}}ue(le.x),ue(le.y);var pe={};each$c(le.x,function(_e){fixAxisOnZero(le,"y",_e,pe)}),each$c(le.y,function(_e){fixAxisOnZero(le,"x",_e,pe)}),this.resize(this.model,ie)},$.prototype.resize=function(z,ie,le){var ue=z.getBoxLayoutParams(),pe=!le&&z.get("containLabel"),_e=getLayoutRect(ue,{width:ie.getWidth(),height:ie.getHeight()});this._rect=_e;var Ce=this._axesList;$e(),pe&&(each$c(Ce,function(xe){if(!xe.model.get(["axisLabel","inside"])){var Ie=estimateLabelUnionRect(xe);if(Ie){var ze=xe.isHorizontal()?"height":"width",Ue=xe.model.get(["axisLabel","margin"]);_e[ze]-=Ie[ze]+Ue,xe.position==="top"?_e.y+=Ie.height+Ue:xe.position==="left"&&(_e.x+=Ie.width+Ue)}}}),$e()),each$c(this._coordsList,function(xe){xe.calcAffineTransform()});function $e(){each$c(Ce,function(xe){var Ie=xe.isHorizontal(),ze=Ie?[0,_e.width]:[0,_e.height],Ue=xe.inverse?1:0;xe.setExtent(ze[Ue],ze[1-Ue]),updateAxisTransform(xe,Ie?_e.x:_e.y)})}},$.prototype.getAxis=function(z,ie){var le=this._axesMap[z];if(le!=null)return le[ie||0]},$.prototype.getAxes=function(){return this._axesList.slice()},$.prototype.getCartesian=function(z,ie){if(z!=null&&ie!=null){var le="x"+z+"y"+ie;return this._coordsMap[le]}isObject$3(z)&&(ie=z.yAxisIndex,z=z.xAxisIndex);for(var ue=0,pe=this._coordsList;ue<pe.length;ue++)if(pe[ue].getAxis("x").index===z||pe[ue].getAxis("y").index===ie)return pe[ue]},$.prototype.getCartesians=function(){return this._coordsList.slice()},$.prototype.convertToPixel=function(z,ie,le){var ue=this._findConvertTarget(ie);return ue.cartesian?ue.cartesian.dataToPoint(le):ue.axis?ue.axis.toGlobalCoord(ue.axis.dataToCoord(le)):null},$.prototype.convertFromPixel=function(z,ie,le){var ue=this._findConvertTarget(ie);return ue.cartesian?ue.cartesian.pointToData(le):ue.axis?ue.axis.coordToData(ue.axis.toLocalCoord(le)):null},$.prototype._findConvertTarget=function(z){var ie=z.seriesModel,le=z.xAxisModel||ie&&ie.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],ue=z.yAxisModel||ie&&ie.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],pe=z.gridModel,_e=this._coordsList,Ce,$e;if(ie)Ce=ie.coordinateSystem,indexOf(_e,Ce)<0&&(Ce=null);else if(le&&ue)Ce=this.getCartesian(le.componentIndex,ue.componentIndex);else if(le)$e=this.getAxis("x",le.componentIndex);else if(ue)$e=this.getAxis("y",ue.componentIndex);else if(pe){var xe=pe.coordinateSystem;xe===this&&(Ce=this._coordsList[0])}return{cartesian:Ce,axis:$e}},$.prototype.containPoint=function(z){var ie=this._coordsList[0];if(ie)return ie.containPoint(z)},$.prototype._initCartesian=function(z,ie,le){var ue=this,pe=this,_e={left:!1,right:!1,top:!1,bottom:!1},Ce={x:{},y:{}},$e={x:0,y:0};if(ie.eachComponent("xAxis",xe("x"),this),ie.eachComponent("yAxis",xe("y"),this),!$e.x||!$e.y){this._axesMap={},this._axesList=[];return}this._axesMap=Ce,each$c(Ce.x,function(Ie,ze){each$c(Ce.y,function(Ue,qe){var Et="x"+ze+"y"+qe,Lt=new Cartesian2D(Et);Lt.master=ue,Lt.model=z,ue._coordsMap[Et]=Lt,ue._coordsList.push(Lt),Lt.addAxis(Ie),Lt.addAxis(Ue)})});function xe(Ie){return function(ze,Ue){if(isAxisUsedInTheGrid(ze,z)){var qe=ze.get("position");Ie==="x"?qe!=="top"&&qe!=="bottom"&&(qe=_e.bottom?"top":"bottom"):qe!=="left"&&qe!=="right"&&(qe=_e.left?"right":"left"),_e[qe]=!0;var Et=new Axis2D$1(Ie,createScaleByModel(ze),[0,0],ze.get("type"),qe),Lt=Et.type==="category";Et.onBand=Lt&&ze.get("boundaryGap"),Et.inverse=ze.get("inverse"),ze.axis=Et,Et.model=ze,Et.grid=pe,Et.index=Ue,pe._axesList.push(Et),Ce[Ie][Ue]=Et,$e[Ie]++}}}},$.prototype._updateScale=function(z,ie){each$c(this._axesList,function(ue){if(ue.scale.setExtent(1/0,-1/0),ue.type==="category"){var pe=ue.model.get("categorySortInfo");ue.scale.setSortInfo(pe)}}),z.eachSeries(function(ue){if(isCartesian2DSeries(ue)){var pe=findAxisModels(ue),_e=pe.xAxisModel,Ce=pe.yAxisModel;if(!isAxisUsedInTheGrid(_e,ie)||!isAxisUsedInTheGrid(Ce,ie))return;var $e=this.getCartesian(_e.componentIndex,Ce.componentIndex),xe=ue.getData(),Ie=$e.getAxis("x"),ze=$e.getAxis("y");le(xe,Ie),le(xe,ze)}},this);function le(ue,pe){each$c(getDataDimensionsOnAxis(ue,pe.dim),function(_e){pe.scale.unionExtentFromData(ue,_e)})}},$.prototype.getTooltipAxes=function(z){var ie=[],le=[];return each$c(this.getCartesians(),function(ue){var pe=z!=null&&z!=="auto"?ue.getAxis(z):ue.getBaseAxis(),_e=ue.getOtherAxis(pe);indexOf(ie,pe)<0&&ie.push(pe),indexOf(le,_e)<0&&le.push(_e)}),{baseAxes:ie,otherAxes:le}},$.create=function(z,ie){var le=[];return z.eachComponent("grid",function(ue,pe){var _e=new $(ue,z,ie);_e.name="grid_"+pe,_e.resize(ue,ie,!0),ue.coordinateSystem=_e,le.push(_e)}),z.eachSeries(function(ue){if(isCartesian2DSeries(ue)){var pe=findAxisModels(ue),_e=pe.xAxisModel,Ce=pe.yAxisModel,$e=_e.getCoordSysModel(),xe=$e.coordinateSystem;ue.coordinateSystem=xe.getCartesian(_e.componentIndex,Ce.componentIndex)}}),le},$.dimensions=cartesian2DDimensions,$}();function isAxisUsedInTheGrid($,z){return $.getCoordSysModel()===z}function fixAxisOnZero($,z,ie,le){ie.getAxesOnZeroOf=function(){return pe?[pe]:[]};var ue=$[z],pe,_e=ie.model,Ce=_e.get(["axisLine","onZero"]),$e=_e.get(["axisLine","onZeroAxisIndex"]);if(!Ce)return;if($e!=null)canOnZeroToAxis(ue[$e])&&(pe=ue[$e]);else for(var xe in ue)if(ue.hasOwnProperty(xe)&&canOnZeroToAxis(ue[xe])&&!le[Ie(ue[xe])]){pe=ue[xe];break}pe&&(le[Ie(pe)]=!0);function Ie(ze){return ze.dim+"_"+ze.index}}function canOnZeroToAxis($){return $&&$.type!=="category"&&$.type!=="time"&&ifAxisCrossZero($)}function updateAxisTransform($,z){var ie=$.getExtent(),le=ie[0]+ie[1];$.toGlobalCoord=$.dim==="x"?function(ue){return ue+z}:function(ue){return le-ue+z},$.toLocalCoord=$.dim==="x"?function(ue){return ue-z}:function(ue){return le-ue+z}}const Grid$1=Grid;var PI=Math.PI,AxisBuilder=function(){function $(z,ie){this.group=new Group$3,this.opt=ie,this.axisModel=z,defaults(ie,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var le=new Group$3({x:ie.position[0],y:ie.position[1],rotation:ie.rotation});le.updateTransform(),this._transformGroup=le}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,ie,le){var ue=remRadian(ie-z),pe,_e;return isRadianAroundZero(ue)?(_e=le>0?"top":"bottom",pe="center"):isRadianAroundZero(ue-PI)?(_e=le>0?"bottom":"top",pe="center"):(_e="middle",ue>0&&ue<PI?pe=le>0?"right":"left":pe=le>0?"left":"right"),{rotation:ue,textAlign:pe,textVerticalAlign:_e}},$.makeAxisEventDataBase=function(z){var ie={componentType:z.mainType,componentIndex:z.componentIndex};return ie[z.mainType+"Index"]=z.componentIndex,ie},$.isLabelSilent=function(z){var ie=z.get("tooltip");return z.get("silent")||!(z.get("triggerEvent")||ie&&ie.show)},$}(),builders={axisLine:function($,z,ie,le){var ue=z.get(["axisLine","show"]);if(ue==="auto"&&$.handleAutoShown&&(ue=$.handleAutoShown("axisLine")),!!ue){var pe=z.axis.getExtent(),_e=le.transform,Ce=[pe[0],0],$e=[pe[1],0],xe=Ce[0]>$e[0];_e&&(applyTransform$1(Ce,Ce,_e),applyTransform$1($e,$e,_e));var Ie=extend({lineCap:"round"},z.getModel(["axisLine","lineStyle"]).getLineStyle()),ze=new Line$1({shape:{x1:Ce[0],y1:Ce[1],x2:$e[0],y2:$e[1]},style:Ie,strokeContainThreshold:$.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(ze.shape,ze.style.lineWidth),ze.anid="line",ie.add(ze);var Ue=z.get(["axisLine","symbol"]);if(Ue!=null){var qe=z.get(["axisLine","symbolSize"]);isString(Ue)&&(Ue=[Ue,Ue]),(isString(qe)||isNumber(qe))&&(qe=[qe,qe]);var Et=normalizeSymbolOffset(z.get(["axisLine","symbolOffset"])||0,qe),Lt=qe[0],hn=qe[1];each$c([{rotate:$.rotation+Math.PI/2,offset:Et[0],r:0},{rotate:$.rotation-Math.PI/2,offset:Et[1],r:Math.sqrt((Ce[0]-$e[0])*(Ce[0]-$e[0])+(Ce[1]-$e[1])*(Ce[1]-$e[1]))}],function(vn,_n){if(Ue[_n]!=="none"&&Ue[_n]!=null){var bn=createSymbol(Ue[_n],-Lt/2,-hn/2,Lt,hn,Ie.stroke,!0),Sn=vn.r+vn.offset,Cn=xe?$e:Ce;bn.attr({rotation:vn.rotate,x:Cn[0]+Sn*Math.cos($.rotation),y:Cn[1]-Sn*Math.sin($.rotation),silent:!0,z2:11}),ie.add(bn)}})}}},axisTickLabel:function($,z,ie,le){var ue=buildAxisMajorTicks(ie,le,z,$),pe=buildAxisLabel(ie,le,z,$);if(fixMinMaxLabelShow(z,pe,ue),buildAxisMinorTicks(ie,le,z,$.tickDirection),z.get(["axisLabel","hideOverlap"])){var _e=prepareLayoutList(map$2(pe,function(Ce){return{label:Ce,priority:Ce.z2,defaultAttr:{ignore:Ce.ignore}}}));hideOverlap(_e)}},axisName:function($,z,ie,le){var ue=retrieve($.axisName,z.get("name"));if(ue){var pe=z.get("nameLocation"),_e=$.nameDirection,Ce=z.getModel("nameTextStyle"),$e=z.get("nameGap")||0,xe=z.axis.getExtent(),Ie=xe[0]>xe[1]?-1:1,ze=[pe==="start"?xe[0]-Ie*$e:pe==="end"?xe[1]+Ie*$e:(xe[0]+xe[1])/2,isNameLocationCenter(pe)?$.labelOffset+_e*$e:0],Ue,qe=z.get("nameRotate");qe!=null&&(qe=qe*PI/180);var Et;isNameLocationCenter(pe)?Ue=AxisBuilder.innerTextLayout($.rotation,qe??$.rotation,_e):(Ue=endTextLayout($.rotation,pe,qe||0,xe),Et=$.axisNameAvailableWidth,Et!=null&&(Et=Math.abs(Et/Math.sin(Ue.rotation)),!isFinite(Et)&&(Et=null)));var Lt=Ce.getFont(),hn=z.get("nameTruncate",!0)||{},vn=hn.ellipsis,_n=retrieve($.nameTruncateMaxWidth,hn.maxWidth,Et),bn=new ZRText$1({x:ze[0],y:ze[1],rotation:Ue.rotation,silent:AxisBuilder.isLabelSilent(z),style:createTextStyle$1(Ce,{text:ue,font:Lt,overflow:"truncate",width:_n,ellipsis:vn,fill:Ce.getTextColor()||z.get(["axisLine","lineStyle","color"]),align:Ce.get("align")||Ue.textAlign,verticalAlign:Ce.get("verticalAlign")||Ue.textVerticalAlign}),z2:1});if(setTooltipConfig({el:bn,componentModel:z,itemName:ue}),bn.__fullText=ue,bn.anid="name",z.get("triggerEvent")){var Sn=AxisBuilder.makeAxisEventDataBase(z);Sn.targetType="axisName",Sn.name=ue,getECData(bn).eventData=Sn}le.add(bn),bn.updateTransform(),ie.add(bn),bn.decomposeTransform()}}};function endTextLayout($,z,ie,le){var ue=remRadian(ie-$),pe,_e,Ce=le[0]>le[1],$e=z==="start"&&!Ce||z!=="start"&&Ce;return isRadianAroundZero(ue-PI/2)?(_e=$e?"bottom":"top",pe="center"):isRadianAroundZero(ue-PI*1.5)?(_e=$e?"top":"bottom",pe="center"):(_e="middle",ue<PI*1.5&&ue>PI/2?pe=$e?"left":"right":pe=$e?"right":"left"),{rotation:ue,textAlign:pe,textVerticalAlign:_e}}function fixMinMaxLabelShow($,z,ie){if(!shouldShowAllLabels($.axis)){var le=$.get(["axisLabel","showMinLabel"]),ue=$.get(["axisLabel","showMaxLabel"]);z=z||[],ie=ie||[];var pe=z[0],_e=z[1],Ce=z[z.length-1],$e=z[z.length-2],xe=ie[0],Ie=ie[1],ze=ie[ie.length-1],Ue=ie[ie.length-2];le===!1?(ignoreEl(pe),ignoreEl(xe)):isTwoLabelOverlapped(pe,_e)&&(le?(ignoreEl(_e),ignoreEl(Ie)):(ignoreEl(pe),ignoreEl(xe))),ue===!1?(ignoreEl(Ce),ignoreEl(ze)):isTwoLabelOverlapped($e,Ce)&&(ue?(ignoreEl($e),ignoreEl(Ue)):(ignoreEl(Ce),ignoreEl(ze)))}}function ignoreEl($){$&&($.ignore=!0)}function isTwoLabelOverlapped($,z){var ie=$&&$.getBoundingRect().clone(),le=z&&z.getBoundingRect().clone();if(!(!ie||!le)){var ue=identity([]);return rotate(ue,ue,-$.rotation),ie.applyTransform(mul([],ue,$.getLocalTransform())),le.applyTransform(mul([],ue,z.getLocalTransform())),ie.intersect(le)}}function isNameLocationCenter($){return $==="middle"||$==="center"}function createTicks($,z,ie,le,ue){for(var pe=[],_e=[],Ce=[],$e=0;$e<$.length;$e++){var xe=$[$e].coord;_e[0]=xe,_e[1]=0,Ce[0]=xe,Ce[1]=ie,z&&(applyTransform$1(_e,_e,z),applyTransform$1(Ce,Ce,z));var Ie=new Line$1({shape:{x1:_e[0],y1:_e[1],x2:Ce[0],y2:Ce[1]},style:le,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(Ie.shape,Ie.style.lineWidth),Ie.anid=ue+"_"+$[$e].tickValue,pe.push(Ie)}return pe}function buildAxisMajorTicks($,z,ie,le){var ue=ie.axis,pe=ie.getModel("axisTick"),_e=pe.get("show");if(_e==="auto"&&le.handleAutoShown&&(_e=le.handleAutoShown("axisTick")),!(!_e||ue.scale.isBlank())){for(var Ce=pe.getModel("lineStyle"),$e=le.tickDirection*pe.get("length"),xe=ue.getTicksCoords(),Ie=createTicks(xe,z.transform,$e,defaults(Ce.getLineStyle(),{stroke:ie.get(["axisLine","lineStyle","color"])}),"ticks"),ze=0;ze<Ie.length;ze++)$.add(Ie[ze]);return Ie}}function buildAxisMinorTicks($,z,ie,le){var ue=ie.axis,pe=ie.getModel("minorTick");if(!(!pe.get("show")||ue.scale.isBlank())){var _e=ue.getMinorTicksCoords();if(_e.length)for(var Ce=pe.getModel("lineStyle"),$e=le*pe.get("length"),xe=defaults(Ce.getLineStyle(),defaults(ie.getModel("axisTick").getLineStyle(),{stroke:ie.get(["axisLine","lineStyle","color"])})),Ie=0;Ie<_e.length;Ie++)for(var ze=createTicks(_e[Ie],z.transform,$e,xe,"minorticks_"+Ie),Ue=0;Ue<ze.length;Ue++)$.add(ze[Ue])}}function buildAxisLabel($,z,ie,le){var ue=ie.axis,pe=retrieve(le.axisLabelShow,ie.get(["axisLabel","show"]));if(!(!pe||ue.scale.isBlank())){var _e=ie.getModel("axisLabel"),Ce=_e.get("margin"),$e=ue.getViewLabels(),xe=(retrieve(le.labelRotate,_e.get("rotate"))||0)*PI/180,Ie=AxisBuilder.innerTextLayout(le.rotation,xe,le.labelDirection),ze=ie.getCategories&&ie.getCategories(!0),Ue=[],qe=AxisBuilder.isLabelSilent(ie),Et=ie.get("triggerEvent");return each$c($e,function(Lt,hn){var vn=ue.scale.type==="ordinal"?ue.scale.getRawOrdinalNumber(Lt.tickValue):Lt.tickValue,_n=Lt.formattedLabel,bn=Lt.rawLabel,Sn=_e;if(ze&&ze[vn]){var Cn=ze[vn];isObject$3(Cn)&&Cn.textStyle&&(Sn=new Model$1(Cn.textStyle,_e,ie.ecModel))}var En=Sn.getTextColor()||ie.get(["axisLine","lineStyle","color"]),$n=ue.dataToCoord(vn),wn=new ZRText$1({x:$n,y:le.labelOffset+le.labelDirection*Ce,rotation:Ie.rotation,silent:qe,z2:10+(Lt.level||0),style:createTextStyle$1(Sn,{text:_n,align:Sn.getShallow("align",!0)||Ie.textAlign,verticalAlign:Sn.getShallow("verticalAlign",!0)||Sn.getShallow("baseline",!0)||Ie.textVerticalAlign,fill:isFunction(En)?En(ue.type==="category"?bn:ue.type==="value"?vn+"":vn,hn):En})});if(wn.anid="label_"+vn,Et){var Tn=AxisBuilder.makeAxisEventDataBase(ie);Tn.targetType="axisLabel",Tn.value=bn,Tn.tickIndex=hn,ue.type==="category"&&(Tn.dataIndex=vn),getECData(wn).eventData=Tn}z.add(wn),wn.updateTransform(),Ue.push(wn),$.add(wn),wn.decomposeTransform()}),Ue}}const AxisBuilder$1=AxisBuilder;function collect($,z){var ie={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(ie,$,z),ie.seriesInvolved&&collectSeriesInfo(ie,$),ie}function collectAxesInfo($,z,ie){var le=z.getComponent("tooltip"),ue=z.getComponent("axisPointer"),pe=ue.get("link",!0)||[],_e=[];each$c(ie.getCoordinateSystems(),function(Ce){if(!Ce.axisPointerEnabled)return;var $e=makeKey(Ce.model),xe=$.coordSysAxesInfo[$e]={};$.coordSysMap[$e]=Ce;var Ie=Ce.model,ze=Ie.getModel("tooltip",le);if(each$c(Ce.getAxes(),curry$1(Lt,!1,null)),Ce.getTooltipAxes&&le&&ze.get("show")){var Ue=ze.get("trigger")==="axis",qe=ze.get(["axisPointer","type"])==="cross",Et=Ce.getTooltipAxes(ze.get(["axisPointer","axis"]));(Ue||qe)&&each$c(Et.baseAxes,curry$1(Lt,qe?"cross":!0,Ue)),qe&&each$c(Et.otherAxes,curry$1(Lt,"cross",!1))}function Lt(hn,vn,_n){var bn=_n.model.getModel("axisPointer",ue),Sn=bn.get("show");if(!(!Sn||Sn==="auto"&&!hn&&!isHandleTrigger(bn))){vn==null&&(vn=bn.get("triggerTooltip")),bn=hn?makeAxisPointerModel(_n,ze,ue,z,hn,vn):bn;var Cn=bn.get("snap"),En=makeKey(_n.model),$n=vn||Cn||_n.type==="category",wn=$.axesInfo[En]={key:En,axis:_n,coordSys:Ce,axisPointerModel:bn,triggerTooltip:vn,involveSeries:$n,snap:Cn,useHandle:isHandleTrigger(bn),seriesModels:[],linkGroup:null};xe[En]=wn,$.seriesInvolved=$.seriesInvolved||$n;var Tn=getLinkGroupIndex(pe,_n);if(Tn!=null){var xn=_e[Tn]||(_e[Tn]={axesInfo:{}});xn.axesInfo[En]=wn,xn.mapper=pe[Tn].mapper,wn.linkGroup=xn}}}})}function makeAxisPointerModel($,z,ie,le,ue,pe){var _e=z.getModel("axisPointer"),Ce=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],$e={};each$c(Ce,function(Ue){$e[Ue]=clone$3(_e.get(Ue))}),$e.snap=$.type!=="category"&&!!pe,_e.get("type")==="cross"&&($e.type="line");var xe=$e.label||($e.label={});if(xe.show==null&&(xe.show=!1),ue==="cross"){var Ie=_e.get(["label","show"]);if(xe.show=Ie??!0,!pe){var ze=$e.lineStyle=_e.get("crossStyle");ze&&defaults(xe,ze.textStyle)}}return $.model.getModel("axisPointer",new Model$1($e,ie,le))}function collectSeriesInfo($,z){z.eachSeries(function(ie){var le=ie.coordinateSystem,ue=ie.get(["tooltip","trigger"],!0),pe=ie.get(["tooltip","show"],!0);!le||ue==="none"||ue===!1||ue==="item"||pe===!1||ie.get(["axisPointer","show"],!0)===!1||each$c($.coordSysAxesInfo[makeKey(le.model)],function(_e){var Ce=_e.axis;le.getAxis(Ce.dim)===Ce&&(_e.seriesModels.push(ie),_e.seriesDataCount==null&&(_e.seriesDataCount=0),_e.seriesDataCount+=ie.getData().count())})})}function getLinkGroupIndex($,z){for(var ie=z.model,le=z.dim,ue=0;ue<$.length;ue++){var pe=$[ue]||{};if(checkPropInLink(pe[le+"AxisId"],ie.id)||checkPropInLink(pe[le+"AxisIndex"],ie.componentIndex)||checkPropInLink(pe[le+"AxisName"],ie.name))return ue}}function checkPropInLink($,z){return $==="all"||isArray$1($)&&indexOf($,z)>=0||$===z}function fixValue($){var z=getAxisInfo($);if(z){var ie=z.axisPointerModel,le=z.axis.scale,ue=ie.option,pe=ie.get("status"),_e=ie.get("value");_e!=null&&(_e=le.parse(_e));var Ce=isHandleTrigger(ie);pe==null&&(ue.status=Ce?"show":"hide");var $e=le.getExtent().slice();$e[0]>$e[1]&&$e.reverse(),(_e==null||_e>$e[1])&&(_e=$e[1]),_e<$e[0]&&(_e=$e[0]),ue.value=_e,Ce&&(ue.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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.render=function(ie,le,ue,pe){this.axisPointerClass&&fixValue(ie),$.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(ie,ue,!0)},z.prototype.updateAxisPointer=function(ie,le,ue,pe){this._doUpdateAxisPointerClass(ie,ue,!1)},z.prototype.remove=function(ie,le){var ue=this._axisPointer;ue&&ue.remove(le)},z.prototype.dispose=function(ie,le){this._disposeAxisPointer(le),$.prototype.dispose.apply(this,arguments)},z.prototype._doUpdateAxisPointerClass=function(ie,le,ue){var pe=z.getAxisPointerClass(this.axisPointerClass);if(pe){var _e=getAxisPointerModel(ie);_e?(this._axisPointer||(this._axisPointer=new pe)).render(ie,_e,le,ue):this._disposeAxisPointer(le)}},z.prototype._disposeAxisPointer=function(ie){this._axisPointer&&this._axisPointer.dispose(ie),this._axisPointer=null},z.registerAxisPointerClass=function(ie,le){axisPointerClazz[ie]=le},z.getAxisPointerClass=function(ie){return ie&&axisPointerClazz[ie]},z.type="axis",z}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea($,z,ie,le){var ue=ie.axis;if(!ue.scale.isBlank()){var pe=ie.getModel("splitArea"),_e=pe.getModel("areaStyle"),Ce=_e.get("color"),$e=le.coordinateSystem.getRect(),xe=ue.getTicksCoords({tickModel:pe,clamp:!0});if(xe.length){var Ie=Ce.length,ze=inner$6($).splitAreaColors,Ue=createHashMap(),qe=0;if(ze)for(var Et=0;Et<xe.length;Et++){var Lt=ze.get(xe[Et].tickValue);if(Lt!=null){qe=(Lt+(Ie-1)*Et)%Ie;break}}var hn=ue.toGlobalCoord(xe[0].coord),vn=_e.getAreaStyle();Ce=isArray$1(Ce)?Ce:[Ce];for(var Et=1;Et<xe.length;Et++){var _n=ue.toGlobalCoord(xe[Et].coord),bn=void 0,Sn=void 0,Cn=void 0,En=void 0;ue.isHorizontal()?(bn=hn,Sn=$e.y,Cn=_n-bn,En=$e.height,hn=bn+Cn):(bn=$e.x,Sn=hn,Cn=$e.width,En=_n-Sn,hn=Sn+En);var $n=xe[Et-1].tickValue;$n!=null&&Ue.set($n,qe),z.add(new Rect$2({anid:$n!=null?"area_"+$n:null,shape:{x:bn,y:Sn,width:Cn,height:En},style:defaults({fill:Ce[qe]},vn),autoBatch:!0,silent:!0})),qe=(qe+1)%Ie}inner$6($).splitAreaColors=Ue}}}function rectCoordAxisHandleRemove($){inner$6($).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.axisPointerClass="CartesianAxisPointer",ie}return z.prototype.render=function(ie,le,ue,pe){this.group.removeAll();var _e=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!ie.get("show")){var Ce=ie.getCoordSysModel(),$e=layout$1(Ce,ie),xe=new AxisBuilder$1(ie,extend({handleAutoShown:function(ze){for(var Ue=Ce.coordinateSystem.getCartesians(),qe=0;qe<Ue.length;qe++)if(isIntervalOrLogScale(Ue[qe].getOtherAxis(ie.axis).scale))return!0;return!1}},$e));each$c(axisBuilderAttrs,xe.add,xe),this._axisGroup.add(xe.getGroup()),each$c(selfBuilderAttrs,function(ze){ie.get([ze,"show"])&&axisElementBuilders[ze](this,this._axisGroup,ie,Ce)},this);var Ie=pe&&pe.type==="changeAxisOrder"&&pe.isInitSort;Ie||groupTransition(_e,this._axisGroup,ie),$.prototype.render.call(this,ie,le,ue,pe)}},z.prototype.remove=function(){rectCoordAxisHandleRemove(this)},z.type="cartesianAxis",z}(AxisView$1),axisElementBuilders={splitLine:function($,z,ie,le){var ue=ie.axis;if(!ue.scale.isBlank()){var pe=ie.getModel("splitLine"),_e=pe.getModel("lineStyle"),Ce=_e.get("color");Ce=isArray$1(Ce)?Ce:[Ce];for(var $e=le.coordinateSystem.getRect(),xe=ue.isHorizontal(),Ie=0,ze=ue.getTicksCoords({tickModel:pe}),Ue=[],qe=[],Et=_e.getLineStyle(),Lt=0;Lt<ze.length;Lt++){var hn=ue.toGlobalCoord(ze[Lt].coord);xe?(Ue[0]=hn,Ue[1]=$e.y,qe[0]=hn,qe[1]=$e.y+$e.height):(Ue[0]=$e.x,Ue[1]=hn,qe[0]=$e.x+$e.width,qe[1]=hn);var vn=Ie++%Ce.length,_n=ze[Lt].tickValue,bn=new Line$1({anid:_n!=null?"line_"+ze[Lt].tickValue:null,autoBatch:!0,shape:{x1:Ue[0],y1:Ue[1],x2:qe[0],y2:qe[1]},style:defaults({stroke:Ce[vn]},Et),silent:!0});subPixelOptimizeLine(bn.shape,Et.lineWidth),z.add(bn)}}},minorSplitLine:function($,z,ie,le){var ue=ie.axis,pe=ie.getModel("minorSplitLine"),_e=pe.getModel("lineStyle"),Ce=le.coordinateSystem.getRect(),$e=ue.isHorizontal(),xe=ue.getMinorTicksCoords();if(xe.length)for(var Ie=[],ze=[],Ue=_e.getLineStyle(),qe=0;qe<xe.length;qe++)for(var Et=0;Et<xe[qe].length;Et++){var Lt=ue.toGlobalCoord(xe[qe][Et].coord);$e?(Ie[0]=Lt,Ie[1]=Ce.y,ze[0]=Lt,ze[1]=Ce.y+Ce.height):(Ie[0]=Ce.x,Ie[1]=Lt,ze[0]=Ce.x+Ce.width,ze[1]=Lt);var hn=new Line$1({anid:"minor_line_"+xe[qe][Et].tickValue,autoBatch:!0,shape:{x1:Ie[0],y1:Ie[1],x2:ze[0],y2:ze[1]},style:Ue,silent:!0});subPixelOptimizeLine(hn.shape,Ue.lineWidth),z.add(hn)}},splitArea:function($,z,ie,le){rectCoordAxisBuildSplitArea($,z,ie,le)}},CartesianXAxisView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.type="xAxis",z}(CartesianAxisView),CartesianYAxisView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=CartesianXAxisView.type,ie}return z.type="yAxis",z}(CartesianAxisView),GridView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type="grid",ie}return z.prototype.render=function(ie,le){this.group.removeAll(),ie.get("show")&&this.group.add(new Rect$2({shape:ie.coordinateSystem.getRect(),style:defaults({fill:ie.get("backgroundColor")},ie.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,ie){var le=getStore($);le[z]=ie}function release($,z,ie){var le=getStore($),ue=le[z];ue===ie&&(le[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(ie){var le=$.call(this)||this;le._zr=ie;var ue=bind$1(le._mousedownHandler,le),pe=bind$1(le._mousemoveHandler,le),_e=bind$1(le._mouseupHandler,le),Ce=bind$1(le._mousewheelHandler,le),$e=bind$1(le._pinchHandler,le);return le.enable=function(xe,Ie){this.disable(),this._opt=defaults(clone$3(Ie)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),xe==null&&(xe=!0),(xe===!0||xe==="move"||xe==="pan")&&(ie.on("mousedown",ue),ie.on("mousemove",pe),ie.on("mouseup",_e)),(xe===!0||xe==="scale"||xe==="zoom")&&(ie.on("mousewheel",Ce),ie.on("pinch",$e))},le.disable=function(){ie.off("mousedown",ue),ie.off("mousemove",pe),ie.off("mouseup",_e),ie.off("mousewheel",Ce),ie.off("pinch",$e)},le}return z.prototype.isDragging=function(){return this._dragging},z.prototype.isPinching=function(){return this._pinching},z.prototype.setPointerChecker=function(ie){this.pointerChecker=ie},z.prototype.dispose=function(){this.disable()},z.prototype._mousedownHandler=function(ie){if(!isMiddleOrRightButtonOnMouseUpDown(ie)){for(var le=ie.target;le;){if(le.draggable)return;le=le.__hostTarget||le.parent}var ue=ie.offsetX,pe=ie.offsetY;this.pointerChecker&&this.pointerChecker(ie,ue,pe)&&(this._x=ue,this._y=pe,this._dragging=!0)}},z.prototype._mousemoveHandler=function(ie){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",ie,this._opt)||ie.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var le=ie.offsetX,ue=ie.offsetY,pe=this._x,_e=this._y,Ce=le-pe,$e=ue-_e;this._x=le,this._y=ue,this._opt.preventDefaultMouseMove&&stop(ie.event),trigger$1(this,"pan","moveOnMouseMove",ie,{dx:Ce,dy:$e,oldX:pe,oldY:_e,newX:le,newY:ue,isAvailableBehavior:null})}},z.prototype._mouseupHandler=function(ie){isMiddleOrRightButtonOnMouseUpDown(ie)||(this._dragging=!1)},z.prototype._mousewheelHandler=function(ie){var le=isAvailableBehavior("zoomOnMouseWheel",ie,this._opt),ue=isAvailableBehavior("moveOnMouseWheel",ie,this._opt),pe=ie.wheelDelta,_e=Math.abs(pe),Ce=ie.offsetX,$e=ie.offsetY;if(!(pe===0||!le&&!ue)){if(le){var xe=_e>3?1.4:_e>1?1.2:1.1,Ie=pe>0?xe:1/xe;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",ie,{scale:Ie,originX:Ce,originY:$e,isAvailableBehavior:null})}if(ue){var ze=Math.abs(pe),Ue=(pe>0?1:-1)*(ze>3?.4:ze>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",ie,{scrollDelta:Ue,originX:Ce,originY:$e,isAvailableBehavior:null})}}},z.prototype._pinchHandler=function(ie){if(!isTaken(this._zr,"globalPan")){var le=ie.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,ie,{scale:le,originX:ie.pinchX,originY:ie.pinchY,isAvailableBehavior:null})}},z}(Eventful$1);function checkPointerAndTrigger($,z,ie,le,ue){$.pointerChecker&&$.pointerChecker(le,ue.originX,ue.originY)&&(stop(le.event),trigger$1($,z,ie,le,ue))}function trigger$1($,z,ie,le,ue){ue.isAvailableBehavior=bind$1(isAvailableBehavior,null,ie,le),$.trigger(z,ue)}function isAvailableBehavior($,z,ie){var le=ie[$];return!$||le&&(!isString(le)||z.event[le+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement($,z,ie){var le=z.getComponentByElement($.topTarget),ue=le&&le.coordinateSystem;return le&&le!==ie&&!IRRELEVANT_EXCLUDES.hasOwnProperty(le.mainType)&&ue&&ue.model!==ie}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function $(z){var ie=z.mappingMethod,le=z.type,ue=this.option=clone$3(z);this.type=le,this.mappingMethod=ie,this._normalizeData=normalizers[ie];var pe=$.visualHandlers[le];this.applyVisual=pe.applyVisual,this.getColorMapper=pe.getColorMapper,this._normalizedToVisual=pe._normalizedToVisual[ie],ie==="piecewise"?(normalizeVisualRange(ue),preprocessForPiecewise(ue)):ie==="category"?ue.categories?preprocessForSpecifiedCategory(ue):normalizeVisualRange(ue,!0):(assert(ie!=="linear"||ue.dataExtent),normalizeVisualRange(ue))}return $.prototype.mapValueToVisual=function(z){var ie=this._normalizeData(z);return this._normalizedToVisual(ie,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,ie,le){isObject$3(z)?each$c(z,ie,le):ie.call(le,z)},$.mapVisual=function(z,ie,le){var ue,pe=isArray$1(z)?[]:isObject$3(z)?{}:(ue=!0,null);return $.eachVisual(z,function(_e,Ce){var $e=ie.call(le,_e,Ce);ue?pe=$e:pe[Ce]=$e}),pe},$.retrieveVisuals=function(z){var ie={},le;return z&&each$9($.visualHandlers,function(ue,pe){z.hasOwnProperty(pe)&&(ie[pe]=z[pe],le=!0)}),le?ie:null},$.prepareVisualTypes=function(z){if(isArray$1(z))z=z.slice();else if(isObject(z)){var ie=[];each$9(z,function(le,ue){ie.push(ue)}),z=ie}else return[];return z.sort(function(le,ue){return ue==="color"&&le!=="color"&&le.indexOf("color")===0?1:-1}),z},$.dependsOn=function(z,ie){return ie==="color"?!!(z&&z.indexOf(ie)===0):z===ie},$.findPieceIndex=function(z,ie,le){for(var ue,pe=1/0,_e=0,Ce=ie.length;_e<Ce;_e++){var $e=ie[_e].value;if($e!=null){if($e===z||isString($e)&&$e===z+"")return _e;le&&Ue($e,_e)}}for(var _e=0,Ce=ie.length;_e<Ce;_e++){var xe=ie[_e],Ie=xe.interval,ze=xe.close;if(Ie){if(Ie[0]===-1/0){if(littleThan(ze[1],z,Ie[1]))return _e}else if(Ie[1]===1/0){if(littleThan(ze[0],Ie[0],z))return _e}else if(littleThan(ze[0],Ie[0],z)&&littleThan(ze[1],z,Ie[1]))return _e;le&&Ue(Ie[0],_e),le&&Ue(Ie[1],_e)}}if(le)return z===1/0?ie.length-1:z===-1/0?0:ue;function Ue(qe,Et){var Lt=Math.abs(qe-z);Lt<pe&&(pe=Lt,ue=Et)}},$.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var z=this.option;return bind$1(z.mappingMethod==="category"?function(ie,le){return!le&&(ie=this._normalizeData(ie)),doMapCategory.call(this,ie)}:function(ie,le,ue){var pe=!!ue;return!le&&(ie=this._normalizeData(ie)),ue=fastLerp(ie,z.parsedVisual,ue),pe?ue:stringify(ue,"rgba")},this)},_normalizedToVisual:{linear:function(z){return stringify(fastLerp(z,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(z,ie){var le=getSpecifiedVisual.call(this,ie);return le==null&&(le=stringify(fastLerp(z,this.option.parsedVisual),"rgba")),le},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(z,ie){return modifyHSL(z,ie)}),colorSaturation:makePartialColorVisualHandler(function(z,ie){return modifyHSL(z,null,ie)}),colorLightness:makePartialColorVisualHandler(function(z,ie){return modifyHSL(z,null,null,ie)}),colorAlpha:makePartialColorVisualHandler(function(z,ie){return modifyAlpha(z,ie)}),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,ie,le){var ue=this.mapValueToVisual(z);le("symbol",ue)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(z,ie){var le=getSpecifiedVisual.call(this,ie);return le==null&&(le=doMapToArray.call(this,z)),le},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},$}();function preprocessForPiecewise($){var z=$.pieceList;$.hasSpecialVisual=!1,each$c(z,function(ie,le){ie.originIndex=le,ie.visual!=null&&($.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory($){var z=$.categories,ie=$.categoryMap={},le=$.visual;if(each$9(z,function(_e,Ce){ie[_e]=Ce}),!isArray$1(le)){var ue=[];isObject$3(le)?each$9(le,function(_e,Ce){var $e=ie[Ce];ue[$e??CATEGORY_DEFAULT_VISUAL_INDEX]=_e}):ue[CATEGORY_DEFAULT_VISUAL_INDEX]=le,le=setVisualToOption($,ue)}for(var pe=z.length-1;pe>=0;pe--)le[pe]==null&&(delete ie[z[pe]],z.pop())}function normalizeVisualRange($,z){var ie=$.visual,le=[];isObject$3(ie)?each$9(ie,function(pe){le.push(pe)}):ie!=null&&le.push(ie);var ue={color:1,symbol:1};!z&&le.length===1&&!ue.hasOwnProperty($.type)&&(le[1]=le[0]),setVisualToOption($,le)}function makePartialColorVisualHandler($){return{applyVisual:function(z,ie,le){var ue=this.mapValueToVisual(z);le("color",$(ie("color"),ue))},_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,ie,le){le($,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,ie){var le=getSpecifiedVisual.call(this,ie);return le==null&&(le=linearMap$2(z,$,this.option.visual,!0)),le},fixed:doMapFixed}}function getSpecifiedVisual($){var z=this.option,ie=z.pieceList;if(z.hasSpecialVisual){var le=VisualMapping.findPieceIndex($,ie),ue=ie[le];if(ue&&ue.visual)return ue.visual[this.type]}}function setVisualToOption($,z){return $.visual=z,$.type==="color"&&($.parsedVisual=map$2(z,function(ie){var le=parse$1(ie);return le||[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,ie=VisualMapping.findPieceIndex($,z,!0);if(ie!=null)return linearMap$2(ie,[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,ie){return $?z<=ie:z<ie}const VisualMapping$1=VisualMapping;function sliderMove($,z,ie,le,ue,pe){$=$||0;var _e=ie[1]-ie[0];if(ue!=null&&(ue=restrict(ue,[0,_e])),pe!=null&&(pe=Math.max(pe,ue??0)),le==="all"){var Ce=Math.abs(z[1]-z[0]);Ce=restrict(Ce,[0,_e]),ue=pe=restrict(Ce,[ue,pe]),le=0}z[0]=restrict(z[0],ie),z[1]=restrict(z[1],ie);var $e=getSpanSign(z,le);z[le]+=$;var xe=ue||0,Ie=ie.slice();$e.sign<0?Ie[0]+=xe:Ie[1]-=xe,z[le]=restrict(z[le],Ie);var ze;return ze=getSpanSign(z,le),ue!=null&&(ze.sign!==$e.sign||ze.span<ue)&&(z[1-le]=z[le]+$e.sign*ue),ze=getSpanSign(z,le),pe!=null&&ze.span>pe&&(z[1-le]=z[le]+ze.sign*pe),z}function getSpanSign($,z){var ie=$[z]-$[1-z];return{span:Math.abs(ie),sign:ie>0?-1:ie<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(ie){var le=$.call(this)||this;return le._track=[],le._covers=[],le._handlers={},le._zr=ie,le.group=new Group$3,le._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(ue,pe){this._handlers[pe]=bind$1(ue,this)},le),le}return z.prototype.enableBrush=function(ie){return this._brushType&&this._doDisableBrush(),ie.brushType&&this._doEnableBrush(ie),this},z.prototype._doEnableBrush=function(ie){var le=this._zr;this._enableGlobalPan||take(le,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(ue,pe){le.on(pe,ue)}),this._brushType=ie.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),ie,!0)},z.prototype._doDisableBrush=function(){var ie=this._zr;release(ie,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(le,ue){ie.off(ue,le)}),this._brushType=this._brushOption=null},z.prototype.setPanels=function(ie){if(ie&&ie.length){var le=this._panels={};each$c(ie,function(ue){le[ue.panelId]=clone$3(ue)})}else this._panels=null;return this},z.prototype.mount=function(ie){ie=ie||{},this._enableGlobalPan=ie.enableGlobalPan;var le=this.group;return this._zr.add(le),le.attr({x:ie.x||0,y:ie.y||0,rotation:ie.rotation||0,scaleX:ie.scaleX||1,scaleY:ie.scaleY||1}),this._transform=le.getLocalTransform(),this},z.prototype.updateCovers=function(ie){ie=map$2(ie,function(Ue){return merge(clone$3(DEFAULT_BRUSH_OPT),Ue,!0)});var le="\0-brush-index-",ue=this._covers,pe=this._covers=[],_e=this,Ce=this._creatingCover;return new DataDiffer$1(ue,ie,xe,$e).add(Ie).update(Ie).remove(ze).execute(),this;function $e(Ue,qe){return(Ue.id!=null?Ue.id:le+qe)+"-"+Ue.brushType}function xe(Ue,qe){return $e(Ue.__brushOption,qe)}function Ie(Ue,qe){var Et=ie[Ue];if(qe!=null&&ue[qe]===Ce)pe[Ue]=ue[qe];else{var Lt=pe[Ue]=qe!=null?(ue[qe].__brushOption=Et,ue[qe]):endCreating(_e,createCover(_e,Et));updateCoverAfterCreation(_e,Lt)}}function ze(Ue){ue[Ue]!==Ce&&_e.group.remove(ue[Ue])}},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 ie=coverRenderers[z.brushType].createCover($,z);return ie.__brushOption=z,updateZ(ie,z),$.group.add(ie),ie}function endCreating($,z){var ie=getCoverRenderer(z);return ie.endCreating&&(ie.endCreating($,z),updateZ(z,z.__brushOption)),z}function updateCoverShape($,z){var ie=z.__brushOption;getCoverRenderer(z).updateCoverShape($,z,ie.range,ie)}function updateZ($,z){var ie=z.z;ie==null&&(ie=COVER_Z),$.traverse(function(le){le.z=ie,le.z2=ie})}function updateCoverAfterCreation($,z){getCoverRenderer(z).updateCommon($,z),updateCoverShape($,z)}function getCoverRenderer($){return coverRenderers[$.__brushOption.brushType]}function getPanelByPoint($,z,ie){var le=$._panels;if(!le)return BRUSH_PANEL_GLOBAL;var ue,pe=$._transform;return each$c(le,function(_e){_e.isTargetByCursor(z,ie,pe)&&(ue=_e)}),ue}function getPanelByCover($,z){var ie=$._panels;if(!ie)return BRUSH_PANEL_GLOBAL;var le=z.__brushOption.panelId;return le!=null?ie[le]:BRUSH_PANEL_GLOBAL}function clearCovers($){var z=$._covers,ie=z.length;return each$c(z,function(le){$.group.remove(le)},$),z.length=0,!!ie}function trigger($,z){var ie=map$2($._covers,function(le){var ue=le.__brushOption,pe=clone$3(ue.range);return{brushType:ue.brushType,panelId:ue.panelId,range:pe}});$.trigger("brush",{areas:ie,isEnd:!!z.isEnd,removeOnClick:!!z.removeOnClick})}function shouldShowCover($){var z=$._track;if(!z.length)return!1;var ie=z[z.length-1],le=z[0],ue=ie[0]-le[0],pe=ie[1]-le[1],_e=mathPow(ue*ue+pe*pe,.5);return _e>UNSELECT_THRESHOLD}function getTrackEnds($){var z=$.length-1;return z<0&&(z=0),[$[0],$[z]]}function createBaseRectCover($,z,ie,le){var ue=new Group$3;return ue.add(new Rect$2({name:"main",style:makeStyle(ie),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,$,z,ue,["n","s","w","e"]),ondragend:curry$1(trigger,z,{isEnd:!0})})),each$c(le,function(pe){ue.add(new Rect$2({name:pe.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,$,z,ue,pe),ondragend:curry$1(trigger,z,{isEnd:!0})}))}),ue}function updateBaseRect($,z,ie,le){var ue=le.brushStyle.lineWidth||0,pe=mathMax$1(ue,MIN_RESIZE_LINE_WIDTH),_e=ie[0][0],Ce=ie[1][0],$e=_e-ue/2,xe=Ce-ue/2,Ie=ie[0][1],ze=ie[1][1],Ue=Ie-pe+ue/2,qe=ze-pe+ue/2,Et=Ie-_e,Lt=ze-Ce,hn=Et+ue,vn=Lt+ue;updateRectShape($,z,"main",_e,Ce,Et,Lt),le.transformable&&(updateRectShape($,z,"w",$e,xe,pe,vn),updateRectShape($,z,"e",Ue,xe,pe,vn),updateRectShape($,z,"n",$e,xe,hn,pe),updateRectShape($,z,"s",$e,qe,hn,pe),updateRectShape($,z,"nw",$e,xe,pe,pe),updateRectShape($,z,"ne",Ue,xe,pe,pe),updateRectShape($,z,"sw",$e,qe,pe,pe),updateRectShape($,z,"se",Ue,qe,pe,pe))}function updateCommon($,z){var ie=z.__brushOption,le=ie.transformable,ue=z.childAt(0);ue.useStyle(makeStyle(ie)),ue.attr({silent:!le,cursor:le?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(pe){var _e=z.childOfName(pe.join("")),Ce=pe.length===1?getGlobalDirection1($,pe[0]):getGlobalDirection2($,pe);_e&&_e.attr({silent:!le,invisible:!le,cursor:le?CURSOR_MAP[Ce]+"-resize":null})})}function updateRectShape($,z,ie,le,ue,pe,_e){var Ce=z.childOfName(ie);Ce&&Ce.setShape(pointsToRect(clipByPanel($,z,[[le,ue],[le+pe,ue+_e]])))}function makeStyle($){return defaults({strokeNoScale:!0},$.brushStyle)}function formatRectRange($,z,ie,le){var ue=[mathMin$1($,ie),mathMin$1(z,le)],pe=[mathMax$1($,ie),mathMax$1(z,le)];return[[ue[0],pe[0]],[ue[1],pe[1]]]}function getTransform($){return getTransform$1($.group)}function getGlobalDirection1($,z){var ie={w:"left",e:"right",n:"top",s:"bottom"},le={left:"w",right:"e",top:"n",bottom:"s"},ue=transformDirection(ie[z],getTransform($));return le[ue]}function getGlobalDirection2($,z){var ie=[getGlobalDirection1($,z[0]),getGlobalDirection1($,z[1])];return(ie[0]==="e"||ie[0]==="w")&&ie.reverse(),ie.join("")}function driftRect($,z,ie,le,ue,pe){var _e=ie.__brushOption,Ce=$.toRectRange(_e.range),$e=toLocalDelta(z,ue,pe);each$c(le,function(xe){var Ie=DIRECTION_MAP[xe];Ce[Ie[0]][Ie[1]]+=$e[Ie[0]]}),_e.range=$.fromRectRange(formatRectRange(Ce[0][0],Ce[1][0],Ce[0][1],Ce[1][1])),updateCoverAfterCreation(z,ie),trigger(z,{isEnd:!1})}function driftPolygon($,z,ie,le){var ue=z.__brushOption.range,pe=toLocalDelta($,ie,le);each$c(ue,function(_e){_e[0]+=pe[0],_e[1]+=pe[1]}),updateCoverAfterCreation($,z),trigger($,{isEnd:!1})}function toLocalDelta($,z,ie){var le=$.group,ue=le.transformCoordToLocal(z,ie),pe=le.transformCoordToLocal(0,0);return[ue[0]-pe[0],ue[1]-pe[1]]}function clipByPanel($,z,ie){var le=getPanelByCover($,z);return le&&le!==BRUSH_PANEL_GLOBAL?le.clipPath(ie,$._transform):clone$3(ie)}function pointsToRect($){var z=mathMin$1($[0][0],$[1][0]),ie=mathMin$1($[0][1],$[1][1]),le=mathMax$1($[0][0],$[1][0]),ue=mathMax$1($[0][1],$[1][1]);return{x:z,y:ie,width:le-z,height:ue-ie}}function resetCursor($,z,ie){if(!(!$._brushType||isOutsideZrArea($,z.offsetX,z.offsetY))){var le=$._zr,ue=$._covers,pe=getPanelByPoint($,z,ie);if(!$._dragging)for(var _e=0;_e<ue.length;_e++){var Ce=ue[_e].__brushOption;if(pe&&(pe===BRUSH_PANEL_GLOBAL||Ce.panelId===pe.panelId)&&coverRenderers[Ce.brushType].contain(ue[_e],ie[0],ie[1]))return}pe&&le.setCursorStyle("crosshair")}}function preventDefault($){var z=$.event;z.preventDefault&&z.preventDefault()}function mainShapeContain($,z,ie){return $.childOfName("main").contain(z,ie)}function updateCoverByMouse($,z,ie,le){var ue=$._creatingCover,pe=$._creatingPanel,_e=$._brushOption,Ce;if($._track.push(ie.slice()),shouldShowCover($)||ue){if(pe&&!ue){_e.brushMode==="single"&&clearCovers($);var $e=clone$3(_e);$e.brushType=determineBrushType($e.brushType,pe),$e.panelId=pe===BRUSH_PANEL_GLOBAL?null:pe.panelId,ue=$._creatingCover=createCover($,$e),$._covers.push(ue)}if(ue){var xe=coverRenderers[determineBrushType($._brushType,pe)],Ie=ue.__brushOption;Ie.range=xe.getCreatingRange(clipByPanel($,ue,$._track)),le&&(endCreating($,ue),xe.updateCommon($,ue)),updateCoverShape($,ue),Ce={isEnd:le}}}else le&&_e.brushMode==="single"&&_e.removeOnClick&&getPanelByPoint($,z,ie)&&clearCovers($)&&(Ce={isEnd:le,removeOnClick:!0});return Ce}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 ie=this._creatingPanel=getPanelByPoint(this,$,z);ie&&(this._dragging=!0,this._track=[z.slice()])}},mousemove:function($){var z=$.offsetX,ie=$.offsetY,le=this.group.transformCoordToLocal(z,ie);if(resetCursor(this,$,le),this._dragging){preventDefault($);var ue=updateCoverByMouse(this,$,le,!1);ue&&trigger(this,ue)}},mouseup:function($){handleDragEnd(this,$)}};function handleDragEnd($,z){if($._dragging){preventDefault(z);var ie=z.offsetX,le=z.offsetY,ue=$.group.transformCoordToLocal(ie,le),pe=updateCoverByMouse($,z,ue,!0);$._dragging=!1,$._track=[],$._creatingCover=null,pe&&trigger($,pe)}}function isOutsideZrArea($,z,ie){var le=$._zr;return z<0||z>le.getWidth()||ie<0||ie>le.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function($,z){function ie(le){return le}return createBaseRectCover({toRectRange:ie,fromRectRange:ie},$,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,ie,le){updateBaseRect($,z,ie,le)},updateCommon,contain:mainShapeContain},polygon:{createCover:function($,z){var ie=new Group$3;return ie.add(new Polyline$1({name:"main",style:makeStyle(z),silent:!0})),ie},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,ie,le){z.childAt(0).setShape({points:clipByPanel($,z,ie)})},updateCommon,contain:mainShapeContain}};function getLineRenderer($){return{createCover:function(z,ie){return createBaseRectCover({toRectRange:function(le){var ue=[le,[0,100]];return $&&ue.reverse(),ue},fromRectRange:function(le){return le[$]}},z,ie,[[["w"],["e"]],[["n"],["s"]]][$])},getCreatingRange:function(z){var ie=getTrackEnds(z),le=mathMin$1(ie[0][$],ie[1][$]),ue=mathMax$1(ie[0][$],ie[1][$]);return[le,ue]},updateCoverShape:function(z,ie,le,ue){var pe,_e=getPanelByCover(z,ie);if(_e!==BRUSH_PANEL_GLOBAL&&_e.getLinearBrushOtherExtent)pe=_e.getLinearBrushOtherExtent($);else{var Ce=z._zr;pe=[0,[Ce.getWidth(),Ce.getHeight()][1-$]]}var $e=[le,pe];$&&$e.reverse(),updateBaseRect(z,ie,$e,ue)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath($){return $=normalizeRect($),function(z){return clipPointsByRect(z,$)}}function makeLinearBrushOtherExtent($,z){return $=normalizeRect($),function(ie){var le=z??ie,ue=le?$.width:$.height,pe=le?$.x:$.y;return[pe,pe+(ue||0)]}}function makeRectIsTargetByCursor($,z,ie){var le=normalizeRect($);return function(ue,pe){return le.contain(pe[0],pe[1])&&!onIrrelevantElement(ue,z,ie)}}function normalizeRect($){return BoundingRect$1.create($)}function isEC4CompatibleStyle($,z,ie,le){return $&&($.legacy||$.legacy!==!1&&!ie&&!le&&z!=="tspan"&&(z==="text"||hasOwn($,"text")))}function convertFromEC4CompatibleStyle($,z,ie){var le=$,ue,pe,_e;if(z==="text")_e=le;else{_e={},hasOwn(le,"text")&&(_e.text=le.text),hasOwn(le,"rich")&&(_e.rich=le.rich),hasOwn(le,"textFill")&&(_e.fill=le.textFill),hasOwn(le,"textStroke")&&(_e.stroke=le.textStroke),hasOwn(le,"fontFamily")&&(_e.fontFamily=le.fontFamily),hasOwn(le,"fontSize")&&(_e.fontSize=le.fontSize),hasOwn(le,"fontStyle")&&(_e.fontStyle=le.fontStyle),hasOwn(le,"fontWeight")&&(_e.fontWeight=le.fontWeight),pe={type:"text",style:_e,silent:!0},ue={};var Ce=hasOwn(le,"textPosition");ie?ue.position=Ce?le.textPosition:"inside":Ce&&(ue.position=le.textPosition),hasOwn(le,"textPosition")&&(ue.position=le.textPosition),hasOwn(le,"textOffset")&&(ue.offset=le.textOffset),hasOwn(le,"textRotation")&&(ue.rotation=le.textRotation),hasOwn(le,"textDistance")&&(ue.distance=le.textDistance)}return convertEC4CompatibleRichItem(_e,$),each$c(_e.rich,function($e){convertEC4CompatibleRichItem($e,$e)}),{textConfig:ue,textContent:pe}}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,ie,le,ue){var pe=$+"Animation",_e=getAnimationConfig($,le,ue)||{},Ce=transitionInnerStore(z).userDuring;return _e.duration>0&&(_e.during=Ce?bind$1(duringCall,{el:z,userDuring:Ce}):null,_e.setToFinal=!0,_e.scope=$),extend(_e,ie[pe]),_e}function applyUpdateTransition($,z,ie,le){le=le||{};var ue=le.dataIndex,pe=le.isInit,_e=le.clearStyle,Ce=ie.isAnimationEnabled(),$e=transitionInnerStore($),xe=z.style;$e.userDuring=z.during;var Ie={},ze={};if(prepareTransformAllPropsFinal($,z,ze),prepareShapeOrExtraAllPropsFinal("shape",z,ze),prepareShapeOrExtraAllPropsFinal("extra",z,ze),!pe&&Ce&&(prepareTransformTransitionFrom($,z,Ie),prepareShapeOrExtraTransitionFrom("shape",$,z,Ie),prepareShapeOrExtraTransitionFrom("extra",$,z,Ie),prepareStyleTransitionFrom($,z,xe,Ie)),ze.style=xe,applyPropsDirectly($,ze,_e),applyMiscProps($,z),Ce)if(pe){var Ue={};each$c(ELEMENT_ANIMATABLE_PROPS,function(Et){var Lt=Et?z[Et]:z;Lt&&Lt.enterFrom&&(Et&&(Ue[Et]=Ue[Et]||{}),extend(Et?Ue[Et]:Ue,Lt.enterFrom))});var qe=getElementAnimationConfig("enter",$,z,ie,ue);qe.duration>0&&$.animateFrom(Ue,qe)}else applyPropsTransition($,z,ue||0,ie,Ie);updateLeaveTo($,z),xe?$.dirty():$.markRedraw()}function updateLeaveTo($,z){for(var ie=transitionInnerStore($).leaveToProps,le=0;le<ELEMENT_ANIMATABLE_PROPS.length;le++){var ue=ELEMENT_ANIMATABLE_PROPS[le],pe=ue?z[ue]:z;pe&&pe.leaveTo&&(ie||(ie=transitionInnerStore($).leaveToProps={}),ue&&(ie[ue]=ie[ue]||{}),extend(ue?ie[ue]:ie,pe.leaveTo))}}function applyLeaveTransition($,z,ie,le){if($){var ue=$.parent,pe=transitionInnerStore($).leaveToProps;if(pe){var _e=getElementAnimationConfig("update",$,z,ie,0);_e.done=function(){ue.remove($),le&&le()},$.animateTo(pe,_e)}else ue.remove($),le&&le()}}function isTransitionAll($){return $==="all"}function applyPropsDirectly($,z,ie){var le=z.style;if(!$.isGroup&&le){if(ie){$.useStyle({});for(var ue=$.animators,pe=0;pe<ue.length;pe++){var _e=ue[pe];_e.targetName==="style"&&_e.changeTarget($.style)}}$.setStyle(le)}z&&(z.style=null,z&&$.attr(z),z.style=le)}function applyPropsTransition($,z,ie,le,ue){if(ue){var pe=getElementAnimationConfig("update",$,z,le,ie);pe.duration>0&&$.animateFrom(ue,pe)}}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 ie=tmpDuringScope.el,le=ie.shape||(ie.shape={});return le[$]=z,ie.dirtyShape&&ie.dirtyShape(),this},getShape:function($){var z=tmpDuringScope.el.shape;if(z)return z[$]},setStyle:function($,z){var ie=tmpDuringScope.el,le=ie.style;return le&&(le[$]=z,ie.dirtyStyle&&ie.dirtyStyle()),this},getStyle:function($){var z=tmpDuringScope.el.style;if(z)return z[$]},setExtra:function($,z){var ie=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return ie[$]=z,this},getExtra:function($){var z=tmpDuringScope.el.extra;if(z)return z[$]}};function duringCall(){var $=this,z=$.el;if(z){var ie=transitionInnerStore(z).userDuring,le=$.userDuring;if(ie!==le){$.el=$.userDuring=null;return}tmpDuringScope.el=z,le(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom($,z,ie,le){var ue=ie[$];if(ue){var pe=z[$],_e;if(pe){var Ce=ie.transition,$e=ue.transition;if($e)if(!_e&&(_e=le[$]={}),isTransitionAll($e))extend(_e,pe);else for(var xe=normalizeToArray($e),Ie=0;Ie<xe.length;Ie++){var ze=xe[Ie],Ue=pe[ze];_e[ze]=Ue}else if(isTransitionAll(Ce)||indexOf(Ce,$)>=0){!_e&&(_e=le[$]={});for(var qe=keys(pe),Ie=0;Ie<qe.length;Ie++){var ze=qe[Ie],Ue=pe[ze];isNonStyleTransitionEnabled(ue[ze],Ue)&&(_e[ze]=Ue)}}}}}function prepareShapeOrExtraAllPropsFinal($,z,ie){var le=z[$];if(le)for(var ue=ie[$]={},pe=keys(le),_e=0;_e<pe.length;_e++){var Ce=pe[_e];ue[Ce]=cloneValue(le[Ce])}}function prepareTransformTransitionFrom($,z,ie){for(var le=z.transition,ue=isTransitionAll(le)?TRANSFORMABLE_PROPS:normalizeToArray(le||[]),pe=0;pe<ue.length;pe++){var _e=ue[pe];if(!(_e==="style"||_e==="shape"||_e==="extra")){var Ce=$[_e];ie[_e]=Ce}}}function prepareTransformAllPropsFinal($,z,ie){for(var le=0;le<LEGACY_TRANSFORM_PROPS.length;le++){var ue=LEGACY_TRANSFORM_PROPS[le],pe=LEGACY_TRANSFORM_PROPS_MAP[ue],_e=z[ue];_e&&(ie[pe[0]]=_e[0],ie[pe[1]]=_e[1])}for(var le=0;le<TRANSFORMABLE_PROPS.length;le++){var Ce=TRANSFORMABLE_PROPS[le];z[Ce]!=null&&(ie[Ce]=z[Ce])}}function prepareStyleTransitionFrom($,z,ie,le){if(ie){var ue=$.style,pe;if(ue){var _e=ie.transition,Ce=z.transition;if(_e&&!isTransitionAll(_e)){var $e=normalizeToArray(_e);!pe&&(pe=le.style={});for(var xe=0;xe<$e.length;xe++){var Ie=$e[xe],ze=ue[Ie];pe[Ie]=ze}}else if($.getAnimationStyleProps&&(isTransitionAll(Ce)||isTransitionAll(_e)||indexOf(Ce,"style")>=0)){var Ue=$.getAnimationStyleProps(),qe=Ue?Ue.style:null;if(qe){!pe&&(pe=le.style={});for(var Et=keys(ie),xe=0;xe<Et.length;xe++){var Ie=Et[xe];if(qe[Ie]){var ze=ue[Ie];pe[Ie]=ze}}}}}}}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,ie){if(!(!ie.isAnimationEnabled()||!z)){if(isArray$1(z)){each$c(z,function(Ce){applyKeyframeAnimation($,Ce,ie)});return}var le=z.keyframes,ue=z.duration;if(ie&&ue==null){var pe=getAnimationConfig("enter",ie,0);ue=pe&&pe.duration}if(!(!le||!ue)){var _e=getStateToRestore($);each$c(ELEMENT_ANIMATABLE_PROPS,function(Ce){if(!(Ce&&!$[Ce])){var $e;le.sort(function(xe,Ie){return xe.percent-Ie.percent}),each$c(le,function(xe){var Ie=$.animators,ze=Ce?xe[Ce]:xe;if(ze){var Ue=keys(ze);if(Ce||(Ue=filter(Ue,function(Lt){return indexOf(KEYFRAME_EXCLUDE_KEYS,Lt)<0})),!!Ue.length){$e||($e=$.animate(Ce,z.loop,!0),$e.scope="keyframe");for(var qe=0;qe<Ie.length;qe++)Ie[qe]!==$e&&Ie[qe].targetName===$e.targetName&&Ie[qe].stopTracks(Ue);Ce&&(_e[Ce]=_e[Ce]||{});var Et=Ce?_e[Ce]:_e;each$c(Ue,function(Lt){Et[Lt]=((Ce?$[Ce]:$)||{})[Lt]}),$e.whenWithKeys(ue*xe.percent,ze,Ue,xe.easing)}}}),$e&&$e.delay(z.delay||0).duration(ue).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,ie,le,ue){var pe=ie.get("value"),_e=ie.get("status");if(this._axisModel=z,this._axisPointerModel=ie,this._api=le,!(!ue&&this._lastValue===pe&&this._lastStatus===_e)){this._lastValue=pe,this._lastStatus=_e;var Ce=this._group,$e=this._handle;if(!_e||_e==="hide"){Ce&&Ce.hide(),$e&&$e.hide();return}Ce&&Ce.show(),$e&&$e.show();var xe={};this.makeElOption(xe,pe,z,ie,le);var Ie=xe.graphicKey;Ie!==this._lastGraphicKey&&this.clear(le),this._lastGraphicKey=Ie;var ze=this._moveAnimation=this.determineAnimation(z,ie);if(!Ce)Ce=this._group=new Group$3,this.createPointerEl(Ce,xe,z,ie),this.createLabelEl(Ce,xe,z,ie),le.getZr().add(Ce);else{var Ue=curry$1(updateProps,ie,ze);this.updatePointerEl(Ce,xe,Ue),this.updateLabelEl(Ce,xe,Ue,ie)}updateMandatoryProps(Ce,ie,!0),this._renderHandle(pe)}},$.prototype.remove=function(z){this.clear(z)},$.prototype.dispose=function(z){this.clear(z)},$.prototype.determineAnimation=function(z,ie){var le=ie.get("animation"),ue=z.axis,pe=ue.type==="category",_e=ie.get("snap");if(!_e&&!pe)return!1;if(le==="auto"||le==null){var Ce=this.animationThreshold;if(pe&&ue.getBandWidth()>Ce)return!0;if(_e){var $e=getAxisInfo(z).seriesDataCount,xe=ue.getExtent();return Math.abs(xe[0]-xe[1])/$e>Ce}return!1}return le===!0},$.prototype.makeElOption=function(z,ie,le,ue,pe){},$.prototype.createPointerEl=function(z,ie,le,ue){var pe=ie.pointer;if(pe){var _e=inner$5(z).pointerEl=new graphic$1[pe.type](clone(ie.pointer));z.add(_e)}},$.prototype.createLabelEl=function(z,ie,le,ue){if(ie.label){var pe=inner$5(z).labelEl=new ZRText$1(clone(ie.label));z.add(pe),updateLabelShowHide(pe,ue)}},$.prototype.updatePointerEl=function(z,ie,le){var ue=inner$5(z).pointerEl;ue&&ie.pointer&&(ue.setStyle(ie.pointer.style),le(ue,{shape:ie.pointer.shape}))},$.prototype.updateLabelEl=function(z,ie,le,ue){var pe=inner$5(z).labelEl;pe&&(pe.setStyle(ie.label.style),le(pe,{x:ie.label.x,y:ie.label.y}),updateLabelShowHide(pe,ue))},$.prototype._renderHandle=function(z){if(!(this._dragging||!this.updateHandleTransform)){var ie=this._axisPointerModel,le=this._api.getZr(),ue=this._handle,pe=ie.getModel("handle"),_e=ie.get("status");if(!pe.get("show")||!_e||_e==="hide"){ue&&le.remove(ue),this._handle=null;return}var Ce;this._handle||(Ce=!0,ue=this._handle=createIcon(pe.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(xe){stop(xe.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),le.add(ue)),updateMandatoryProps(ue,ie,!1),ue.setStyle(pe.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var $e=pe.get("size");isArray$1($e)||($e=[$e,$e]),ue.scaleX=$e[0]/2,ue.scaleY=$e[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",pe.get("throttle")||0,"fixRate"),this._moveHandleToValue(z,Ce)}},$.prototype._moveHandleToValue=function(z,ie){updateProps(this._axisPointerModel,!ie&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(z,this._axisModel,this._axisPointerModel)))},$.prototype._onHandleDragMove=function(z,ie){var le=this._handle;if(le){this._dragging=!0;var ue=this.updateHandleTransform(getHandleTransProps(le),[z,ie],this._axisModel,this._axisPointerModel);this._payloadInfo=ue,le.stopAnimation(),le.attr(getHandleTransProps(ue)),inner$5(le).lastProp=null,this._doDispatchAxisPointer()}},$.prototype._doDispatchAxisPointer=function(){var z=this._handle;if(z){var ie=this._payloadInfo,le=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:ie.cursorPoint[0],y:ie.cursorPoint[1],tooltipOption:ie.tooltipOption,axesInfo:[{axisDim:le.axis.dim,axisIndex:le.componentIndex}]})}},$.prototype._onHandleDragEnd=function(){this._dragging=!1;var z=this._handle;if(z){var ie=this._axisPointerModel.get("value");this._moveHandleToValue(ie),this._api.dispatchAction({type:"hideTip"})}},$.prototype.clear=function(z){this._lastValue=null,this._lastStatus=null;var ie=z.getZr(),le=this._group,ue=this._handle;ie&&le&&(this._lastGraphicKey=null,le&&ie.remove(le),ue&&ie.remove(ue),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},$.prototype.doClear=function(){},$.prototype.buildLabel=function(z,ie,le){return le=le||0,{x:z[le],y:z[1-le],width:ie[le],height:ie[1-le]}},$}();function updateProps($,z,ie,le){propsEqual(inner$5(ie).lastProp,le)||(inner$5(ie).lastProp=le,z?updateProps$1(ie,le,$):(ie.stopAnimation(),ie.attr(le)))}function propsEqual($,z){if(isObject$3($)&&isObject$3(z)){var ie=!0;return each$c(z,function(le,ue){ie=ie&&propsEqual($[ue],le)}),!!ie}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,ie){var le=z.get("z"),ue=z.get("zlevel");$&&$.traverse(function(pe){pe.type!=="group"&&(le!=null&&(pe.z=le),ue!=null&&(pe.zlevel=ue),pe.silent=ie)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle($){var z=$.get("type"),ie=$.getModel(z+"Style"),le;return z==="line"?(le=ie.getLineStyle(),le.fill=null):z==="shadow"&&(le=ie.getAreaStyle(),le.stroke=null),le}function buildLabelElOption($,z,ie,le,ue){var pe=ie.get("value"),_e=getValueLabel(pe,z.axis,z.ecModel,ie.get("seriesDataIndices"),{precision:ie.get(["label","precision"]),formatter:ie.get(["label","formatter"])}),Ce=ie.getModel("label"),$e=normalizeCssArray(Ce.get("padding")||0),xe=Ce.getFont(),Ie=getBoundingRect(_e,xe),ze=ue.position,Ue=Ie.width+$e[1]+$e[3],qe=Ie.height+$e[0]+$e[2],Et=ue.align;Et==="right"&&(ze[0]-=Ue),Et==="center"&&(ze[0]-=Ue/2);var Lt=ue.verticalAlign;Lt==="bottom"&&(ze[1]-=qe),Lt==="middle"&&(ze[1]-=qe/2),confineInContainer(ze,Ue,qe,le);var hn=Ce.get("backgroundColor");(!hn||hn==="auto")&&(hn=z.get(["axisLine","lineStyle","color"])),$.label={x:ze[0],y:ze[1],style:createTextStyle$1(Ce,{text:_e,font:xe,fill:Ce.getTextColor(),padding:$e,backgroundColor:hn}),z2:10}}function confineInContainer($,z,ie,le){var ue=le.getWidth(),pe=le.getHeight();$[0]=Math.min($[0]+z,ue)-z,$[1]=Math.min($[1]+ie,pe)-ie,$[0]=Math.max($[0],0),$[1]=Math.max($[1],0)}function getValueLabel($,z,ie,le,ue){$=z.scale.parse($);var pe=z.scale.getLabel({value:$},{precision:ue.precision}),_e=ue.formatter;if(_e){var Ce={value:getAxisRawValue(z,{value:$}),axisDimension:z.dim,axisIndex:z.index,seriesData:[]};each$c(le,function($e){var xe=ie.getSeriesByIndex($e.seriesIndex),Ie=$e.dataIndexInside,ze=xe&&xe.getDataParams(Ie);ze&&Ce.seriesData.push(ze)}),isString(_e)?pe=_e.replace("{value}",pe):isFunction(_e)&&(pe=_e(Ce))}return pe}function getTransformedPosition($,z,ie){var le=create();return rotate(le,le,ie.rotation),translate(le,le,ie.position),applyTransform([$.dataToCoord(z),(ie.labelOffset||0)+(ie.labelDirection||1)*(ie.labelMargin||0)],le)}function buildCartesianSingleLabelElOption($,z,ie,le,ue,pe){var _e=AxisBuilder$1.innerTextLayout(ie.rotation,0,ie.labelDirection);ie.labelMargin=ue.get(["label","margin"]),buildLabelElOption(z,le,ue,pe,{position:getTransformedPosition(le.axis,$,ie),align:_e.textAlign,verticalAlign:_e.textVerticalAlign})}function makeLineShape($,z,ie){return ie=ie||0,{x1:$[ie],y1:$[1-ie],x2:z[ie],y2:z[1-ie]}}function makeRectShape($,z,ie){return ie=ie||0,{x:$[ie],y:$[1-ie],width:z[ie],height:z[1-ie]}}var CartesianAxisPointer=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.makeElOption=function(ie,le,ue,pe,_e){var Ce=ue.axis,$e=Ce.grid,xe=pe.get("type"),Ie=getCartesian($e,Ce).getOtherAxis(Ce).getGlobalExtent(),ze=Ce.toGlobalCoord(Ce.dataToCoord(le,!0));if(xe&&xe!=="none"){var Ue=buildElStyle(pe),qe=pointerShapeBuilder[xe](Ce,ze,Ie);qe.style=Ue,ie.graphicKey=qe.type,ie.pointer=qe}var Et=layout$1($e.model,ue);buildCartesianSingleLabelElOption(le,ie,Et,ue,pe,_e)},z.prototype.getHandleTransform=function(ie,le,ue){var pe=layout$1(le.axis.grid.model,le,{labelInside:!1});pe.labelMargin=ue.get(["handle","margin"]);var _e=getTransformedPosition(le.axis,ie,pe);return{x:_e[0],y:_e[1],rotation:pe.rotation+(pe.labelDirection<0?Math.PI:0)}},z.prototype.updateHandleTransform=function(ie,le,ue,pe){var _e=ue.axis,Ce=_e.grid,$e=_e.getGlobalExtent(!0),xe=getCartesian(Ce,_e).getOtherAxis(_e).getGlobalExtent(),Ie=_e.dim==="x"?0:1,ze=[ie.x,ie.y];ze[Ie]+=le[Ie],ze[Ie]=Math.min($e[1],ze[Ie]),ze[Ie]=Math.max($e[0],ze[Ie]);var Ue=(xe[1]+xe[0])/2,qe=[Ue,Ue];qe[Ie]=ze[Ie];var Et=[{verticalAlign:"middle"},{align:"center"}];return{x:ze[0],y:ze[1],rotation:ie.rotation,cursorPoint:qe,tooltipOption:Et[Ie]}},z}(BaseAxisPointer$1);function getCartesian($,z){var ie={};return ie[z.dim+"AxisIndex"]=z.index,$.getCartesian(ie)}var pointerShapeBuilder={line:function($,z,ie){var le=makeLineShape([z,ie[0]],[z,ie[1]],getAxisDimIndex($));return{type:"Line",subPixelOptimize:!0,shape:le}},shadow:function($,z,ie){var le=Math.max(1,$.getBandWidth()),ue=ie[1]-ie[0];return{type:"Rect",shape:makeRectShape([z-le/2,ie[0]],[le,ue],getAxisDimIndex($))}}};function getAxisDimIndex($){return $.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}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,ie){if(!env$1.node){var le=z.getZr();inner$4(le).records||(inner$4(le).records={}),initGlobalListeners(le,z);var ue=inner$4(le).records[$]||(inner$4(le).records[$]={});ue.handler=ie}}function initGlobalListeners($,z){if(inner$4($).initialized)return;inner$4($).initialized=!0,ie("click",curry$1(doEnter,"click")),ie("mousemove",curry$1(doEnter,"mousemove")),ie("globalout",onLeave);function ie(le,ue){$.on(le,function(pe){var _e=makeDispatchAction$1(z);each$8(inner$4($).records,function(Ce){Ce&&ue(Ce,pe,_e.dispatchAction)}),dispatchTooltipFinally(_e.pendings,z)})}}function dispatchTooltipFinally($,z){var ie=$.showTip.length,le=$.hideTip.length,ue;ie?ue=$.showTip[ie-1]:le&&(ue=$.hideTip[le-1]),ue&&(ue.dispatchAction=null,z.dispatchAction(ue))}function onLeave($,z,ie){$.handler("leave",null,ie)}function doEnter($,z,ie,le){z.handler($,ie,le)}function makeDispatchAction$1($){var z={showTip:[],hideTip:[]},ie=function(le){var ue=z[le.type];ue?ue.push(le):(le.dispatchAction=ie,$.dispatchAction(le))};return{dispatchAction:ie,pendings:z}}function unregister($,z){if(!env$1.node){var ie=z.getZr(),le=(inner$4(ie).records||{})[$];le&&(inner$4(ie).records[$]=null)}}var AxisPointerView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.render=function(ie,le,ue){var pe=le.getComponent("tooltip"),_e=ie.get("triggerOn")||pe&&pe.get("triggerOn")||"mousemove|click";register("axisPointer",ue,function(Ce,$e,xe){_e!=="none"&&(Ce==="leave"||_e.indexOf(Ce)>=0)&&xe({type:"updateAxisPointer",currTrigger:Ce,x:$e&&$e.offsetX,y:$e&&$e.offsetY})})},z.prototype.remove=function(ie,le){unregister("axisPointer",le)},z.prototype.dispose=function(ie,le){unregister("axisPointer",le)},z.type="axisPointer",z}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries($,z){var ie=[],le=$.seriesIndex,ue;if(le==null||!(ue=z.getSeriesByIndex(le)))return{point:[]};var pe=ue.getData(),_e=queryDataIndex(pe,$);if(_e==null||_e<0||isArray$1(_e))return{point:[]};var Ce=pe.getItemGraphicEl(_e),$e=ue.coordinateSystem;if(ue.getTooltipPosition)ie=ue.getTooltipPosition(_e)||[];else if($e&&$e.dataToPoint)if($.isStacked){var xe=$e.getBaseAxis(),Ie=$e.getOtherAxis(xe),ze=Ie.dim,Ue=xe.dim,qe=ze==="x"||ze==="radius"?1:0,Et=pe.mapDimension(Ue),Lt=[];Lt[qe]=pe.get(Et,_e),Lt[1-qe]=pe.get(pe.getCalculationInfo("stackResultDimension"),_e),ie=$e.dataToPoint(Lt)||[]}else ie=$e.dataToPoint(pe.getValues(map$2($e.dimensions,function(vn){return pe.mapDimension(vn)}),_e))||[];else if(Ce){var hn=Ce.getBoundingRect().clone();hn.applyTransform(Ce.transform),ie=[hn.x+hn.width/2,hn.y+hn.height/2]}return{point:ie,el:Ce}}var inner$3=makeInner();function axisTrigger($,z,ie){var le=$.currTrigger,ue=[$.x,$.y],pe=$,_e=$.dispatchAction||bind$1(ie.dispatchAction,ie),Ce=z.getComponent("axisPointer").coordSysAxesInfo;if(Ce){illegalPoint(ue)&&(ue=findPointFromSeries({seriesIndex:pe.seriesIndex,dataIndex:pe.dataIndex},z).point);var $e=illegalPoint(ue),xe=pe.axesInfo,Ie=Ce.axesInfo,ze=le==="leave"||illegalPoint(ue),Ue={},qe={},Et={list:[],map:{}},Lt={showPointer:curry$1(showPointer,qe),showTooltip:curry$1(showTooltip,Et)};each$c(Ce.coordSysMap,function(vn,_n){var bn=$e||vn.containPoint(ue);each$c(Ce.coordSysAxesInfo[_n],function(Sn,Cn){var En=Sn.axis,$n=findInputAxisInfo(xe,Sn);if(!ze&&bn&&(!xe||$n)){var wn=$n&&$n.value;wn==null&&!$e&&(wn=En.pointToData(ue)),wn!=null&&processOnAxis(Sn,wn,Lt,!1,Ue)}})});var hn={};return each$c(Ie,function(vn,_n){var bn=vn.linkGroup;bn&&!qe[_n]&&each$c(bn.axesInfo,function(Sn,Cn){var En=qe[Cn];if(Sn!==vn&&En){var $n=En.value;bn.mapper&&($n=vn.axis.scale.parse(bn.mapper($n,makeMapperParam(Sn),makeMapperParam(vn)))),hn[vn.key]=$n}})}),each$c(hn,function(vn,_n){processOnAxis(Ie[_n],vn,Lt,!0,Ue)}),updateModelActually(qe,Ie,Ue),dispatchTooltipActually(Et,ue,$,_e),dispatchHighDownActually(Ie,_e,ie),Ue}}function processOnAxis($,z,ie,le,ue){var pe=$.axis;if(!(pe.scale.isBlank()||!pe.containData(z))){if(!$.involveSeries){ie.showPointer($,z);return}var _e=buildPayloadsBySeries(z,$),Ce=_e.payloadBatch,$e=_e.snapToValue;Ce[0]&&ue.seriesIndex==null&&extend(ue,Ce[0]),!le&&$.snap&&pe.containData($e)&&$e!=null&&(z=$e),ie.showPointer($,z,Ce),ie.showTooltip($,_e,$e)}}function buildPayloadsBySeries($,z){var ie=z.axis,le=ie.dim,ue=$,pe=[],_e=Number.MAX_VALUE,Ce=-1;return each$c(z.seriesModels,function($e,xe){var Ie=$e.getData().mapDimensionsAll(le),ze,Ue;if($e.getAxisTooltipData){var qe=$e.getAxisTooltipData(Ie,$,ie);Ue=qe.dataIndices,ze=qe.nestestValue}else{if(Ue=$e.getData().indicesOfNearest(Ie[0],$,ie.type==="category"?.5:null),!Ue.length)return;ze=$e.getData().get(Ie[0],Ue[0])}if(!(ze==null||!isFinite(ze))){var Et=$-ze,Lt=Math.abs(Et);Lt<=_e&&((Lt<_e||Et>=0&&Ce<0)&&(_e=Lt,Ce=Et,ue=ze,pe.length=0),each$c(Ue,function(hn){pe.push({seriesIndex:$e.seriesIndex,dataIndexInside:hn,dataIndex:$e.getData().getRawIndex(hn)})}))}}),{payloadBatch:pe,snapToValue:ue}}function showPointer($,z,ie,le){$[z.key]={value:ie,payloadBatch:le}}function showTooltip($,z,ie,le){var ue=ie.payloadBatch,pe=z.axis,_e=pe.model,Ce=z.axisPointerModel;if(!(!z.triggerTooltip||!ue.length)){var $e=z.coordSys.model,xe=makeKey($e),Ie=$.map[xe];Ie||(Ie=$.map[xe]={coordSysId:$e.id,coordSysIndex:$e.componentIndex,coordSysType:$e.type,coordSysMainType:$e.mainType,dataByAxis:[]},$.list.push(Ie)),Ie.dataByAxis.push({axisDim:pe.dim,axisIndex:_e.componentIndex,axisType:_e.type,axisId:_e.id,value:le,valueLabelOpt:{precision:Ce.get(["label","precision"]),formatter:Ce.get(["label","formatter"])},seriesDataIndices:ue.slice()})}}function updateModelActually($,z,ie){var le=ie.axesInfo=[];each$c(z,function(ue,pe){var _e=ue.axisPointerModel.option,Ce=$[pe];Ce?(!ue.useHandle&&(_e.status="show"),_e.value=Ce.value,_e.seriesDataIndices=(Ce.payloadBatch||[]).slice()):!ue.useHandle&&(_e.status="hide"),_e.status==="show"&&le.push({axisDim:ue.axis.dim,axisIndex:ue.axis.model.componentIndex,value:_e.value})})}function dispatchTooltipActually($,z,ie,le){if(illegalPoint(z)||!$.list.length){le({type:"hideTip"});return}var ue=(($.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};le({type:"showTip",escapeConnect:!0,x:z[0],y:z[1],tooltipOption:ie.tooltipOption,position:ie.position,dataIndexInside:ue.dataIndexInside,dataIndex:ue.dataIndex,seriesIndex:ue.seriesIndex,dataByCoordSys:$.list})}function dispatchHighDownActually($,z,ie){var le=ie.getZr(),ue="axisPointerLastHighlights",pe=inner$3(le)[ue]||{},_e=inner$3(le)[ue]={};each$c($,function(xe,Ie){var ze=xe.axisPointerModel.option;ze.status==="show"&&each$c(ze.seriesDataIndices,function(Ue){var qe=Ue.seriesIndex+" | "+Ue.dataIndex;_e[qe]=Ue})});var Ce=[],$e=[];each$c(pe,function(xe,Ie){!_e[Ie]&&$e.push(xe)}),each$c(_e,function(xe,Ie){!pe[Ie]&&Ce.push(xe)}),$e.length&&ie.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:$e}),Ce.length&&ie.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:Ce})}function findInputAxisInfo($,z){for(var ie=0;ie<($||[]).length;ie++){var le=$[ie];if(z.axis.dim===le.axisDim&&z.axis.model.componentIndex===le.axisIndex)return le}}function makeMapperParam($){var z=$.axis.model,ie={},le=ie.axisDim=$.axis.dim;return ie.axisIndex=ie[le+"AxisIndex"]=z.componentIndex,ie.axisName=ie[le+"AxisName"]=z.name,ie.axisId=ie[le+"AxisId"]=z.id,ie}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 ie=z.axisPointer.link;ie&&!isArray$1(ie)&&(z.axisPointer.link=[ie])}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,function(z,ie){z.getComponent("axisPointer").coordSysAxesInfo=collect(z,ie)}),$.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e($){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption($,z){var ie=$.existing;if(z.id=$.keyInfo.id,!z.type&&ie&&(z.type=ie.type),z.parentId==null){var le=z.parentOption;le?z.parentId=le.id:ie&&(z.parentId=ie.parentId)}z.parentOption=null}function isSetLoc($,z){var ie;return each$c(z,function(le){$[le]!=null&&$[le]!=="auto"&&(ie=!0)}),ie}function mergeNewElOptionToExist($,z,ie){var le=extend({},ie),ue=$[z],pe=ie.$action||"merge";pe==="merge"?ue?(merge(ue,le,!0),mergeLayoutParam(ue,le,{ignoreSize:!0}),copyLayoutParams(ie,ue),copyTransitionInfo(ie,ue),copyTransitionInfo(ie,ue,"shape"),copyTransitionInfo(ie,ue,"style"),copyTransitionInfo(ie,ue,"extra"),ie.clipPath=ue.clipPath):$[z]=le:pe==="replace"?$[z]=le:pe==="remove"&&ue&&($[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,ie){if(ie&&(!$[ie]&&z[ie]&&($[ie]={}),$=$[ie],z=z[ie]),!(!$||!z))for(var le=ie?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,ue=0;ue<le.length;ue++){var pe=le[ue];$[pe]==null&&z[pe]!=null&&($[pe]=z[pe])}}function setLayoutInfoToExist($,z){if($&&($.hv=z.hv=[isSetLoc(z,["left","right"]),isSetLoc(z,["top","bottom"])],$.type==="group")){var ie=$,le=z;ie.width==null&&(ie.width=le.width=0),ie.height==null&&(ie.height=le.height=0)}}var GraphicComponentModel=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.preventAutoZ=!0,ie}return z.prototype.mergeOption=function(ie,le){var ue=this.option.elements;this.option.elements=null,$.prototype.mergeOption.call(this,ie,le),this.option.elements=ue},z.prototype.optionUpdated=function(ie,le){var ue=this.option,pe=(le?ue:ie).elements,_e=ue.elements=le?[]:ue.elements,Ce=[];this._flatten(pe,Ce,null);var $e=mappingToExists(_e,Ce,"normalMerge"),xe=this._elOptionsToUpdate=[];each$c($e,function(Ie,ze){var Ue=Ie.newOption;Ue&&(xe.push(Ue),setKeyInfoToNewElOption(Ie,Ue),mergeNewElOptionToExist(_e,ze,Ue),setLayoutInfoToExist(_e[ze],Ue))},this),ue.elements=filter(_e,function(Ie){return Ie&&delete Ie.$action,Ie!=null})},z.prototype._flatten=function(ie,le,ue){each$c(ie,function(pe){if(pe){ue&&(pe.parentOption=ue),le.push(pe);var _e=pe.children;_e&&_e.length&&this._flatten(_e,le,pe),delete pe.children}},this)},z.prototype.useElOptionsToUpdate=function(){var ie=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,ie},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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.init=function(){this._elMap=createHashMap()},z.prototype.render=function(ie,le,ue){ie!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=ie,this._updateElements(ie),this._relocate(ie,ue)},z.prototype._updateElements=function(ie){var le=ie.useElOptionsToUpdate();if(le){var ue=this._elMap,pe=this.group,_e=ie.get("z"),Ce=ie.get("zlevel");each$c(le,function($e){var xe=convertOptionIdName($e.id,null),Ie=xe!=null?ue.get(xe):null,ze=convertOptionIdName($e.parentId,null),Ue=ze!=null?ue.get(ze):pe,qe=$e.type,Et=$e.style;qe==="text"&&Et&&$e.hv&&$e.hv[1]&&(Et.textVerticalAlign=Et.textBaseline=Et.verticalAlign=Et.align=null);var Lt=$e.textContent,hn=$e.textConfig;if(Et&&isEC4CompatibleStyle(Et,qe,!!hn,!!Lt)){var vn=convertFromEC4CompatibleStyle(Et,qe,!0);!hn&&vn.textConfig&&(hn=$e.textConfig=vn.textConfig),!Lt&&vn.textContent&&(Lt=vn.textContent)}var _n=getCleanedElOption($e),bn=$e.$action||"merge",Sn=bn==="merge",Cn=bn==="replace";if(Sn){var En=!Ie,$n=Ie;En?$n=createEl(xe,Ue,$e.type,ue):($n&&(inner$2($n).isNew=!1),stopPreviousKeyframeAnimationAndRestore($n)),$n&&(applyUpdateTransition($n,_n,ie,{isInit:En}),updateCommonAttrs($n,$e,_e,Ce))}else if(Cn){removeEl(Ie,$e,ue,ie);var wn=createEl(xe,Ue,$e.type,ue);wn&&(applyUpdateTransition(wn,_n,ie,{isInit:!0}),updateCommonAttrs(wn,$e,_e,Ce))}else bn==="remove"&&(updateLeaveTo(Ie,$e),removeEl(Ie,$e,ue,ie));var Tn=ue.get(xe);if(Tn&&Lt)if(Sn){var xn=Tn.getTextContent();xn?xn.attr(Lt):Tn.setTextContent(new ZRText$1(Lt))}else Cn&&Tn.setTextContent(new ZRText$1(Lt));if(Tn){var Pn=$e.clipPath;if(Pn){var kn=Pn.type,An=void 0,En=!1;if(Sn){var Nn=Tn.getClipPath();En=!Nn||inner$2(Nn).type!==kn,An=En?newEl(kn):Nn}else Cn&&(En=!0,An=newEl(kn));Tn.setClipPath(An),applyUpdateTransition(An,Pn,ie,{isInit:En}),applyKeyframeAnimation(An,Pn.keyframeAnimation,ie)}var Fn=inner$2(Tn);Tn.setTextConfig(hn),Fn.option=$e,setEventData(Tn,ie,$e),setTooltipConfig({el:Tn,componentModel:ie,itemName:Tn.name,itemTooltipOption:$e.tooltip}),applyKeyframeAnimation(Tn,$e.keyframeAnimation,ie)}})}},z.prototype._relocate=function(ie,le){for(var ue=ie.option.elements,pe=this.group,_e=this._elMap,Ce=le.getWidth(),$e=le.getHeight(),xe=["x","y"],Ie=0;Ie<ue.length;Ie++){var ze=ue[Ie],Ue=convertOptionIdName(ze.id,null),qe=Ue!=null?_e.get(Ue):null;if(!(!qe||!qe.isGroup)){var Et=qe.parent,Lt=Et===pe,hn=inner$2(qe),vn=inner$2(Et);hn.width=parsePercent(hn.option.width,Lt?Ce:vn.width)||0,hn.height=parsePercent(hn.option.height,Lt?$e:vn.height)||0}}for(var Ie=ue.length-1;Ie>=0;Ie--){var ze=ue[Ie],Ue=convertOptionIdName(ze.id,null),qe=Ue!=null?_e.get(Ue):null;if(qe){var Et=qe.parent,vn=inner$2(Et),_n=Et===pe?{width:Ce,height:$e}:{width:vn.width,height:vn.height},bn={},Sn=positionElement(qe,ze,_n,null,{hv:ze.hv,boundingMode:ze.bounding},bn);if(!inner$2(qe).isNew&&Sn){for(var Cn=ze.transition,En={},$n=0;$n<xe.length;$n++){var wn=xe[$n],Tn=bn[wn];Cn&&(isTransitionAll(Cn)||indexOf(Cn,wn)>=0)?En[wn]=Tn:qe[wn]=Tn}updateProps$1(qe,En,ie,0)}else qe.attr(bn)}}},z.prototype._clear=function(){var ie=this,le=this._elMap;le.each(function(ue){removeEl(ue,inner$2(ue).option,le,ie._lastGraphicModel)}),this._elMap=createHashMap()},z.prototype.dispose=function(){this._clear()},z.type="graphic",z}(ComponentView$1);function newEl($){var z=hasOwn(nonShapeGraphicElements,$)?nonShapeGraphicElements[$]:getShapeClass($),ie=new z({});return inner$2(ie).type=$,ie}function createEl($,z,ie,le){var ue=newEl(ie);return z.add(ue),le.set($,ue),inner$2(ue).id=$,inner$2(ue).isNew=!0,ue}function removeEl($,z,ie,le){var ue=$&&$.parent;ue&&($.type==="group"&&$.traverse(function(pe){removeEl(pe,z,ie,le)}),applyLeaveTransition($,z,le),ie.removeKey(inner$2($).id))}function updateCommonAttrs($,z,ie,le){$.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",le||0],["z",ie||0],["z2",0]],function(ue){var pe=ue[0];hasOwn(z,pe)?$[pe]=retrieve2(z[pe],ue[1]):$[pe]==null&&($[pe]=ue[1])}),each$c(keys(z),function(ue){if(ue.indexOf("on")===0){var pe=z[ue];$[ue]=isFunction(pe)?pe: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,ie){var le=getECData($).eventData;!$.silent&&!$.ignore&&!le&&(le=getECData($).eventData={componentType:"graphic",componentIndex:z.componentIndex,name:$.name}),le&&(le.info=ie.info)}function install$d($){$.registerComponentModel(GraphicComponentModel),$.registerComponentView(GraphicComponentView),$.registerPreprocessor(function(z){var ie=z.graphic;isArray$1(ie)?!ie[0]||!ie[0].elements?z.graphic=[{elements:ie}]:z.graphic=[z.graphic[0]]:ie&&!ie.elements&&(z.graphic=[{elements:[ie]}])})}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 ie=createHashMap(),le=[],ue=createHashMap();$.eachComponent({mainType:"dataZoom",query:z},function(Ie){ue.get(Ie.uid)||Ce(Ie)});var pe;do pe=!1,$.eachComponent("dataZoom",_e);while(pe);function _e(Ie){!ue.get(Ie.uid)&&$e(Ie)&&(Ce(Ie),pe=!0)}function Ce(Ie){ue.set(Ie.uid,!0),le.push(Ie),xe(Ie)}function $e(Ie){var ze=!1;return Ie.eachTargetAxis(function(Ue,qe){var Et=ie.get(Ue);Et&&Et[qe]&&(ze=!0)}),ze}function xe(Ie){Ie.eachTargetAxis(function(ze,Ue){(ie.get(ze)||ie.set(ze,[]))[Ue]=!0})}return le}function collectReferCoordSysModelInfo($){var z=$.ecModel,ie={infoList:[],infoMap:createHashMap()};return $.eachTargetAxis(function(le,ue){var pe=z.getComponent(getAxisMainType(le),ue);if(pe){var _e=pe.getCoordSysModel();if(_e){var Ce=_e.uid,$e=ie.infoMap.get(Ce);$e||($e={model:_e,axisModels:[]},ie.infoList.push($e),ie.infoMap.set(Ce,$e)),$e.axisModels.push(pe)}}}),ie}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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie._autoThrottle=!0,ie._noTarget=!0,ie._rangePropMode=["percent","percent"],ie}return z.prototype.init=function(ie,le,ue){var pe=retrieveRawOption(ie);this.settledOption=pe,this.mergeDefaultAndTheme(ie,ue),this._doInit(pe)},z.prototype.mergeOption=function(ie){var le=retrieveRawOption(ie);merge(this.option,ie,!0),merge(this.settledOption,le,!0),this._doInit(le)},z.prototype._doInit=function(ie){var le=this.option;this._setDefaultThrottle(ie),this._updateRangeUse(ie);var ue=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(pe,_e){this._rangePropMode[_e]==="value"&&(le[pe[0]]=ue[pe[0]]=null)},this),this._resetTarget()},z.prototype._resetTarget=function(){var ie=this.get("orient",!0),le=this._targetAxisInfoMap=createHashMap(),ue=this._fillSpecifiedTargetAxis(le);ue?this._orient=ie||this._makeAutoOrientByTargetAxis():(this._orient=ie||"horizontal",this._fillAutoTargetAxisByOrient(le,this._orient)),this._noTarget=!0,le.each(function(pe){pe.indexList.length&&(this._noTarget=!1)},this)},z.prototype._fillSpecifiedTargetAxis=function(ie){var le=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(ue){var pe=this.getReferringComponents(getAxisMainType(ue),MULTIPLE_REFERRING);if(pe.specified){le=!0;var _e=new DataZoomAxisInfo;each$c(pe.models,function(Ce){_e.add(Ce.componentIndex)}),ie.set(ue,_e)}},this),le},z.prototype._fillAutoTargetAxisByOrient=function(ie,le){var ue=this.ecModel,pe=!0;if(pe){var _e=le==="vertical"?"y":"x",Ce=ue.findComponents({mainType:_e+"Axis"});$e(Ce,_e)}if(pe){var Ce=ue.findComponents({mainType:"singleAxis",filter:function(Ie){return Ie.get("orient",!0)===le}});$e(Ce,"single")}function $e(xe,Ie){var ze=xe[0];if(ze){var Ue=new DataZoomAxisInfo;if(Ue.add(ze.componentIndex),ie.set(Ie,Ue),pe=!1,Ie==="x"||Ie==="y"){var qe=ze.getReferringComponents("grid",SINGLE_REFERRING).models[0];qe&&each$c(xe,function(Et){ze.componentIndex!==Et.componentIndex&&qe===Et.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&Ue.add(Et.componentIndex)})}}}pe&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(xe){if(pe){var Ie=ue.findComponents({mainType:getAxisMainType(xe),filter:function(Ue){return Ue.get("type",!0)==="category"}});if(Ie[0]){var ze=new DataZoomAxisInfo;ze.add(Ie[0].componentIndex),ie.set(xe,ze),pe=!1}}},this)},z.prototype._makeAutoOrientByTargetAxis=function(){var ie;return this.eachTargetAxis(function(le){!ie&&(ie=le)},this),ie==="y"?"vertical":"horizontal"},z.prototype._setDefaultThrottle=function(ie){if(ie.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var le=this.ecModel.option;this.option.throttle=le.animation&&le.animationDurationUpdate>0?100:20}},z.prototype._updateRangeUse=function(ie){var le=this._rangePropMode,ue=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(pe,_e){var Ce=ie[pe[0]]!=null,$e=ie[pe[1]]!=null;Ce&&!$e?le[_e]="percent":!Ce&&$e?le[_e]="value":ue?le[_e]=ue[_e]:Ce&&(le[_e]="percent")})},z.prototype.noTarget=function(){return this._noTarget},z.prototype.getFirstTargetAxisModel=function(){var ie;return this.eachTargetAxis(function(le,ue){ie==null&&(ie=this.ecModel.getComponent(getAxisMainType(le),ue))},this),ie},z.prototype.eachTargetAxis=function(ie,le){this._targetAxisInfoMap.each(function(ue,pe){each$c(ue.indexList,function(_e){ie.call(le,pe,_e)})})},z.prototype.getAxisProxy=function(ie,le){var ue=this.getAxisModel(ie,le);if(ue)return ue.__dzAxisProxy},z.prototype.getAxisModel=function(ie,le){var ue=this._targetAxisInfoMap.get(ie);if(ue&&ue.indexMap[le])return this.ecModel.getComponent(getAxisMainType(ie),le)},z.prototype.setRawRange=function(ie){var le=this.option,ue=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(pe){(ie[pe[0]]!=null||ie[pe[1]]!=null)&&(le[pe[0]]=ue[pe[0]]=ie[pe[0]],le[pe[1]]=ue[pe[1]]=ie[pe[1]])},this),this._updateRangeUse(ie)},z.prototype.setCalculatedRange=function(ie){var le=this.option;each$c(["start","startValue","end","endValue"],function(ue){le[ue]=ie[ue]})},z.prototype.getPercentRange=function(){var ie=this.findRepresentativeAxisProxy();if(ie)return ie.getDataPercentWindow()},z.prototype.getValueRange=function(ie,le){if(ie==null&&le==null){var ue=this.findRepresentativeAxisProxy();if(ue)return ue.getDataValueWindow()}else return this.getAxisProxy(ie,le).getDataValueWindow()},z.prototype.findRepresentativeAxisProxy=function(ie){if(ie)return ie.__dzAxisProxy;for(var le,ue=this._targetAxisInfoMap.keys(),pe=0;pe<ue.length;pe++)for(var _e=ue[pe],Ce=this._targetAxisInfoMap.get(_e),$e=0;$e<Ce.indexList.length;$e++){var xe=this.getAxisProxy(_e,Ce.indexList[$e]);if(xe.hostedBy(this))return xe;le||(le=xe)}return le},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(ie){$.hasOwnProperty(ie)&&(z[ie]=$[ie])}),z}const DataZoomModel$1=DataZoomModel;var SelectDataZoomModel=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.type="dataZoom.select",z}(DataZoomModel$1);const SelectZoomModel=SelectDataZoomModel;var DataZoomView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.render=function(ie,le,ue,pe){this.dataZoomModel=ie,this.ecModel=le,this.api=ue},z.type="dataZoom",z}(ComponentView$1);const DataZoomView$1=DataZoomView;var SelectDataZoomView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.type="dataZoom.select",z}(DataZoomView$1);const SelectZoomView=SelectDataZoomView;var each$7=each$c,asc$1=asc$2,AxisProxy=function(){function $(z,ie,le,ue){this._dimName=z,this._axisIndex=ie,this.ecModel=ue,this._dataZoomModel=le}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(ie){if(isCoordSupported(ie)){var le=getAxisMainType(this._dimName),ue=ie.getReferringComponents(le,SINGLE_REFERRING).models[0];ue&&this._axisIndex===ue.componentIndex&&z.push(ie)}},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 ie=this._dataExtent,le=this.getAxisModel(),ue=le.axis.scale,pe=this._dataZoomModel.getRangePropMode(),_e=[0,100],Ce=[],$e=[],xe;each$7(["start","end"],function(Ue,qe){var Et=z[Ue],Lt=z[Ue+"Value"];pe[qe]==="percent"?(Et==null&&(Et=_e[qe]),Lt=ue.parse(linearMap$2(Et,_e,ie))):(xe=!0,Lt=Lt==null?ie[qe]:ue.parse(Lt),Et=linearMap$2(Lt,ie,_e)),$e[qe]=Lt==null||isNaN(Lt)?ie[qe]:Lt,Ce[qe]=Et==null||isNaN(Et)?_e[qe]:Et}),asc$1($e),asc$1(Ce);var Ie=this._minMaxSpan;xe?ze($e,Ce,ie,_e,!1):ze(Ce,$e,_e,ie,!0);function ze(Ue,qe,Et,Lt,hn){var vn=hn?"Span":"ValueSpan";sliderMove(0,Ue,Et,"all",Ie["min"+vn],Ie["max"+vn]);for(var _n=0;_n<2;_n++)qe[_n]=linearMap$2(Ue[_n],Et,Lt,!0),hn&&(qe[_n]=ue.parse(qe[_n]))}return{valueWindow:$e,percentWindow:Ce}},$.prototype.reset=function(z){if(z===this._dataZoomModel){var ie=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,ie),this._updateMinMaxSpan();var le=this.calculateDataWindow(z.settledOption);this._valueWindow=le.valueWindow,this._percentWindow=le.percentWindow,this._setAxisModel()}},$.prototype.filterData=function(z,ie){if(z!==this._dataZoomModel)return;var le=this._dimName,ue=this.getTargetSeriesModels(),pe=z.get("filterMode"),_e=this._valueWindow;if(pe==="none")return;each$7(ue,function($e){var xe=$e.getData(),Ie=xe.mapDimensionsAll(le);if(Ie.length){if(pe==="weakFilter"){var ze=xe.getStore(),Ue=map$2(Ie,function(qe){return xe.getDimensionIndex(qe)},xe);xe.filterSelf(function(qe){for(var Et,Lt,hn,vn=0;vn<Ie.length;vn++){var _n=ze.get(Ue[vn],qe),bn=!isNaN(_n),Sn=_n<_e[0],Cn=_n>_e[1];if(bn&&!Sn&&!Cn)return!0;bn&&(hn=!0),Sn&&(Et=!0),Cn&&(Lt=!0)}return hn&&Et&&Lt})}else each$7(Ie,function(qe){if(pe==="empty")$e.setData(xe=xe.map(qe,function(Lt){return Ce(Lt)?Lt:NaN}));else{var Et={};Et[qe]=_e,xe.selectRange(Et)}});each$7(Ie,function(qe){xe.setApproximateExtent(_e,qe)})}});function Ce($e){return $e>=_e[0]&&$e<=_e[1]}},$.prototype._updateMinMaxSpan=function(){var z=this._minMaxSpan={},ie=this._dataZoomModel,le=this._dataExtent;each$7(["min","max"],function(ue){var pe=ie.get(ue+"Span"),_e=ie.get(ue+"ValueSpan");_e!=null&&(_e=this.getAxisModel().axis.scale.parse(_e)),_e!=null?pe=linearMap$2(le[0]+_e,le,[0,100],!0):pe!=null&&(_e=linearMap$2(pe,[0,100],le,!0)-le[0]),z[ue+"Span"]=pe,z[ue+"ValueSpan"]=_e},this)},$.prototype._setAxisModel=function(){var z=this.getAxisModel(),ie=this._percentWindow,le=this._valueWindow;if(ie){var ue=getPixelPrecision(le,[0,500]);ue=Math.min(ue,20);var pe=z.axis.scale.rawExtentInfo;ie[0]!==0&&pe.setDeterminedMinMax("min",+le[0].toFixed(ue)),ie[1]!==100&&pe.setDeterminedMinMax("max",+le[1].toFixed(ue)),pe.freeze()}},$}();function calculateDataExtent($,z,ie){var le=[1/0,-1/0];each$7(ie,function(_e){unionAxisExtentFromData(le,_e.getData(),z)});var ue=$.getAxisModel(),pe=ensureScaleRawExtentInfo(ue.axis.scale,ue,le).calculate();return[pe.min,pe.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function($){function z(ue){$.eachComponent("dataZoom",function(pe){pe.eachTargetAxis(function(_e,Ce){var $e=$.getComponent(getAxisMainType(_e),Ce);ue(_e,Ce,$e,pe)})})}z(function(ue,pe,_e,Ce){_e.__dzAxisProxy=null});var ie=[];z(function(ue,pe,_e,Ce){_e.__dzAxisProxy||(_e.__dzAxisProxy=new AxisProxy$1(ue,pe,Ce,$),ie.push(_e.__dzAxisProxy))});var le=createHashMap();return each$c(ie,function(ue){each$c(ue.getTargetSeriesModels(),function(pe){le.set(pe.uid,pe)})}),le},overallReset:function($,z){$.eachComponent("dataZoom",function(ie){ie.eachTargetAxis(function(le,ue){ie.getAxisProxy(le,ue).reset(ie)}),ie.eachTargetAxis(function(le,ue){ie.getAxisProxy(le,ue).filterData(ie,z)})}),$.eachComponent("dataZoom",function(ie){var le=ie.findRepresentativeAxisProxy();if(le){var ue=le.getDataPercentWindow(),pe=le.getDataValueWindow();ie.setCalculatedRange({start:ue[0],end:ue[1],startValue:pe[0],endValue:pe[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction($){$.registerAction("dataZoom",function(z,ie){var le=findEffectedDataZooms(ie,z);each$c(le,function(ue){ue.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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.optionUpdated=function(){$.prototype.optionUpdated.apply(this,arguments);var ie=this.ecModel;each$c(this.option.feature,function(le,ue){var pe=getFeature(ue);pe&&(pe.getDefaultOption&&(pe.defaultOption=pe.getDefaultOption(ie)),merge(le,pe.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,ie){var le=z.getBoxLayoutParams(),ue=z.get("padding"),pe={width:ie.getWidth(),height:ie.getHeight()},_e=getLayoutRect(le,pe,ue);box(z.get("orient"),$,z.get("itemGap"),_e.width,_e.height),positionElement($,le,pe,ue)}function makeBackground($,z){var ie=normalizeCssArray(z.get("padding")),le=z.getItemStyle(["color","opacity"]);return le.fill=z.get("backgroundColor"),$=new Rect$2({shape:{x:$.x-ie[3],y:$.y-ie[0],width:$.width+ie[1]+ie[3],height:$.height+ie[0]+ie[2],r:z.get("borderRadius")},style:le,silent:!0,z2:-1}),$}var ToolboxView=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.render=function(ie,le,ue,pe){var _e=this.group;if(_e.removeAll(),!ie.get("show"))return;var Ce=+ie.get("itemSize"),$e=ie.get("orient")==="vertical",xe=ie.get("feature")||{},Ie=this._features||(this._features={}),ze=[];each$c(xe,function(Et,Lt){ze.push(Lt)}),new DataDiffer$1(this._featureNames||[],ze).add(Ue).update(Ue).remove(curry$1(Ue,null)).execute(),this._featureNames=ze;function Ue(Et,Lt){var hn=ze[Et],vn=ze[Lt],_n=xe[hn],bn=new Model$1(_n,ie,ie.ecModel),Sn;if(pe&&pe.newTitle!=null&&pe.featureName===hn&&(_n.title=pe.newTitle),hn&&!vn){if(isUserFeatureName(hn))Sn={onclick:bn.option.onclick,featureName:hn};else{var Cn=getFeature(hn);if(!Cn)return;Sn=new Cn}Ie[hn]=Sn}else if(Sn=Ie[vn],!Sn)return;Sn.uid=getUID("toolbox-feature"),Sn.model=bn,Sn.ecModel=le,Sn.api=ue;var En=Sn instanceof ToolboxFeature;if(!hn&&vn){En&&Sn.dispose&&Sn.dispose(le,ue);return}if(!bn.get("show")||En&&Sn.unusable){En&&Sn.remove&&Sn.remove(le,ue);return}qe(bn,Sn,hn),bn.setIconStatus=function($n,wn){var Tn=this.option,xn=this.iconPaths;Tn.iconStatus=Tn.iconStatus||{},Tn.iconStatus[$n]=wn,xn[$n]&&(wn==="emphasis"?enterEmphasis:leaveEmphasis)(xn[$n])},Sn instanceof ToolboxFeature&&Sn.render&&Sn.render(bn,le,ue,pe)}function qe(Et,Lt,hn){var vn=Et.getModel("iconStyle"),_n=Et.getModel(["emphasis","iconStyle"]),bn=Lt instanceof ToolboxFeature&&Lt.getIcons?Lt.getIcons():Et.get("icon"),Sn=Et.get("title")||{},Cn,En;isString(bn)?(Cn={},Cn[hn]=bn):Cn=bn,isString(Sn)?(En={},En[hn]=Sn):En=Sn;var $n=Et.iconPaths={};each$c(Cn,function(wn,Tn){var xn=createIcon(wn,{},{x:-Ce/2,y:-Ce/2,width:Ce,height:Ce});xn.setStyle(vn.getItemStyle());var Pn=xn.ensureState("emphasis");Pn.style=_n.getItemStyle();var kn=new ZRText$1({style:{text:En[Tn],align:_n.get("textAlign"),borderRadius:_n.get("textBorderRadius"),padding:_n.get("textPadding"),fill:null},ignore:!0});xn.setTextContent(kn),setTooltipConfig({el:xn,componentModel:ie,itemName:Tn,formatterParamsExtra:{title:En[Tn]}}),xn.__title=En[Tn],xn.on("mouseover",function(){var An=_n.getItemStyle(),Nn=$e?ie.get("right")==null&&ie.get("left")!=="right"?"right":"left":ie.get("bottom")==null&&ie.get("top")!=="bottom"?"bottom":"top";kn.setStyle({fill:_n.get("textFill")||An.fill||An.stroke||"#000",backgroundColor:_n.get("textBackgroundColor")}),xn.setTextConfig({position:_n.get("textPosition")||Nn}),kn.ignore=!ie.get("showTitle"),ue.enterEmphasis(this)}).on("mouseout",function(){Et.get(["iconStatus",Tn])!=="emphasis"&&ue.leaveEmphasis(this),kn.hide()}),(Et.get(["iconStatus",Tn])==="emphasis"?enterEmphasis:leaveEmphasis)(xn),_e.add(xn),xn.on("click",bind$1(Lt.onclick,Lt,le,ue,Tn)),$n[Tn]=xn})}layout(_e,ie,ue),_e.add(makeBackground(_e.getBoundingRect(),ie)),$e||_e.eachChild(function(Et){var Lt=Et.__title,hn=Et.ensureState("emphasis"),vn=hn.textConfig||(hn.textConfig={}),_n=Et.getTextContent(),bn=_n&&_n.ensureState("emphasis");if(bn&&!isFunction(bn)&&Lt){var Sn=bn.style||(bn.style={}),Cn=getBoundingRect(Lt,ZRText$1.makeFont(Sn)),En=Et.x+_e.x,$n=Et.y+_e.y+Ce,wn=!1;$n+Cn.height>ue.getHeight()&&(vn.position="top",wn=!0);var Tn=wn?-5-Cn.height:Ce+10;En+Cn.width/2>ue.getWidth()?(vn.position=["100%",Tn],Sn.align="right"):En-Cn.width/2<0&&(vn.position=[0,Tn],Sn.align="left")}})},z.prototype.updateView=function(ie,le,ue,pe){each$c(this._features,function(_e){_e instanceof ToolboxFeature&&_e.updateView&&_e.updateView(_e.model,le,ue,pe)})},z.prototype.remove=function(ie,le){each$c(this._features,function(ue){ue instanceof ToolboxFeature&&ue.remove&&ue.remove(ie,le)}),this.group.removeAll()},z.prototype.dispose=function(ie,le){each$c(this._features,function(ue){ue instanceof ToolboxFeature&&ue.dispose&&ue.dispose(ie,le)})},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(ie,le){var ue=this.model,pe=ue.get("name")||ie.get("title.0.text")||"echarts",_e=le.getZr().painter.getType()==="svg",Ce=_e?"svg":ue.get("type",!0)||"png",$e=le.getConnectedDataURL({type:Ce,backgroundColor:ue.get("backgroundColor",!0)||ie.get("backgroundColor")||"#fff",connectedBackgroundColor:ue.get("connectedBackgroundColor"),excludeComponents:ue.get("excludeComponents"),pixelRatio:ue.get("pixelRatio")}),xe=env$1.browser;if(isFunction(MouseEvent)&&(xe.newEdge||!xe.ie&&!xe.edge)){var Ie=document.createElement("a");Ie.download=pe+"."+Ce,Ie.target="_blank",Ie.href=$e;var ze=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});Ie.dispatchEvent(ze)}else if(window.navigator.msSaveOrOpenBlob||_e){var Ue=$e.split(","),qe=Ue[0].indexOf("base64")>-1,Et=_e?decodeURIComponent(Ue[1]):Ue[1];qe&&(Et=window.atob(Et));var Lt=pe+"."+Ce;if(window.navigator.msSaveOrOpenBlob){for(var hn=Et.length,vn=new Uint8Array(hn);hn--;)vn[hn]=Et.charCodeAt(hn);var _n=new Blob([vn]);window.navigator.msSaveOrOpenBlob(_n,Lt)}else{var bn=document.createElement("iframe");document.body.appendChild(bn);var Sn=bn.contentWindow,Cn=Sn.document;Cn.open("image/svg+xml","replace"),Cn.write(Et),Cn.close(),Sn.focus(),Cn.execCommand("SaveAs",!0,Lt),document.body.removeChild(bn)}}else{var En=ue.get("lang"),$n='<body style="margin:0;"><img src="'+$e+'" style="max-width:100%;" title="'+(En&&En[0]||"")+'" /></body>',wn=window.open();wn.document.write($n),wn.document.title=pe}},z.getDefaultOption=function(ie){var le={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:ie.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:ie.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return le},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 ie=this.model,le=ie.get("icon"),ue={};return each$c(ie.get("type"),function(pe){le[pe]&&(ue[pe]=le[pe])}),ue},z.getDefaultOption=function(ie){var le={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:ie.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return le},z.prototype.onclick=function(ie,le,ue){var pe=this.model,_e=pe.get(["seriesIndex",ue]);if(seriesOptGenreator[ue]){var Ce={series:[]},$e=function(ze){var Ue=ze.subType,qe=ze.id,Et=seriesOptGenreator[ue](Ue,qe,ze,pe);Et&&(defaults(Et,ze.option),Ce.series.push(Et));var Lt=ze.coordinateSystem;if(Lt&&Lt.type==="cartesian2d"&&(ue==="line"||ue==="bar")){var hn=Lt.getAxesByScale("ordinal")[0];if(hn){var vn=hn.dim,_n=vn+"Axis",bn=ze.getReferringComponents(_n,SINGLE_REFERRING).models[0],Sn=bn.componentIndex;Ce[_n]=Ce[_n]||[];for(var Cn=0;Cn<=Sn;Cn++)Ce[_n][Sn]=Ce[_n][Sn]||{};Ce[_n][Sn].boundaryGap=ue==="bar"}}};each$c(radioTypes,function(ze){indexOf(ze,ue)>=0&&each$c(ze,function(Ue){pe.setIconStatus(Ue,"normal")})}),pe.setIconStatus(ue,"emphasis"),ie.eachComponent({mainType:"series",query:_e==null?null:{seriesIndex:_e}},$e);var xe,Ie=ue;ue==="stack"&&(xe=merge({stack:pe.option.title.tiled,tiled:pe.option.title.stack},pe.option.title),pe.get(["iconStatus",ue])!=="emphasis"&&(Ie="tiled")),le.dispatchAction({type:"changeMagicType",currentType:Ie,newOption:Ce,newTitle:xe,featureName:"magicType"})}},z}(ToolboxFeature),seriesOptGenreator={line:function($,z,ie,le){if($==="bar")return merge({id:z,type:"line",data:ie.get("data"),stack:ie.get("stack"),markPoint:ie.get("markPoint"),markLine:ie.get("markLine")},le.get(["option","line"])||{},!0)},bar:function($,z,ie,le){if($==="line")return merge({id:z,type:"bar",data:ie.get("data"),stack:ie.get("stack"),markPoint:ie.get("markPoint"),markLine:ie.get("markLine")},le.get(["option","bar"])||{},!0)},stack:function($,z,ie,le){var ue=ie.get("stack")===INNER_STACK_KEYWORD;if($==="line"||$==="bar")return le.setIconStatus("stack",ue?"normal":"emphasis"),merge({id:z,stack:ue?"":INNER_STACK_KEYWORD},le.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={},ie=[],le=[];return $.eachRawSeries(function(ue){var pe=ue.coordinateSystem;if(pe&&(pe.type==="cartesian2d"||pe.type==="polar")){var _e=pe.getBaseAxis();if(_e.type==="category"){var Ce=_e.dim+"_"+_e.index;z[Ce]||(z[Ce]={categoryAxis:_e,valueAxis:pe.getOtherAxis(_e),series:[]},le.push({axisDim:_e.dim,axisIndex:_e.index})),z[Ce].series.push(ue)}else ie.push(ue)}else ie.push(ue)}),{seriesGroupByCategoryAxis:z,other:ie,meta:le}}function assembleSeriesWithCategoryAxis($){var z=[];return each$c($,function(ie,le){var ue=ie.categoryAxis,pe=ie.valueAxis,_e=pe.dim,Ce=[" "].concat(map$2(ie.series,function(qe){return qe.name})),$e=[ue.model.getCategories()];each$c(ie.series,function(qe){var Et=qe.getRawData();$e.push(qe.getRawData().mapArray(Et.mapDimension(_e),function(Lt){return Lt}))});for(var xe=[Ce.join(ITEM_SPLITER)],Ie=0;Ie<$e[0].length;Ie++){for(var ze=[],Ue=0;Ue<$e.length;Ue++)ze.push($e[Ue][Ie]);xe.push(ze.join(ITEM_SPLITER))}z.push(xe.join(`
`))}),z.join(`
`+BLOCK_SPLITER+`
`)}function assembleOtherSeries($){return map$2($,function(z){var ie=z.getRawData(),le=[z.name],ue=[];return ie.each(ie.dimensions,function(){for(var pe=arguments.length,_e=arguments[pe-1],Ce=ie.getName(_e),$e=0;$e<pe-1;$e++)ue[$e]=arguments[$e];le.push((Ce?Ce+ITEM_SPLITER:"")+ue.join(ITEM_SPLITER))}),le.join(`
`)}).join(`
`+BLOCK_SPLITER+`
`)}function getContentFromModel($){var z=groupSeries($);return{value:filter([assembleSeriesWithCategoryAxis(z.seriesGroupByCategoryAxis),assembleOtherSeries(z.other)],function(ie){return!!ie.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),ie=trim(z.shift()).split(itemSplitRegex),le=[],ue=map$2(ie,function($e){return{name:$e,data:[]}}),pe=0;pe<z.length;pe++){var _e=trim(z[pe]).split(itemSplitRegex);le.push(_e.shift());for(var Ce=0;Ce<_e.length;Ce++)ue[Ce]&&(ue[Ce].data[pe]=_e[Ce])}return{series:ue,categories:le}}function parseListContents($){for(var z=$.split(/\n+/g),ie=trim(z.shift()),le=[],ue=0;ue<z.length;ue++){var pe=trim(z[ue]);if(pe){var _e=pe.split(itemSplitRegex),Ce="",$e=void 0,xe=!1;isNaN(_e[0])?(xe=!0,Ce=_e[0],_e=_e.slice(1),le[ue]={name:Ce,value:[]},$e=le[ue].value):$e=le[ue]=[];for(var Ie=0;Ie<_e.length;Ie++)$e.push(+_e[Ie]);$e.length===1&&(xe?le[ue].value=$e[0]:le[ue]=$e[0])}}return{name:ie,data:le}}function parseContents($,z){var ie=$.split(new RegExp(`
*`+BLOCK_SPLITER+`
*`,"g")),le={series:[]};return each$c(ie,function(ue,pe){if(isTSVFormat(ue)){var _e=parseTSVContents(ue),Ce=z[pe],$e=Ce.axisDim+"Axis";Ce&&(le[$e]=le[$e]||[],le[$e][Ce.axisIndex]={data:_e.categories},le.series=le.series.concat(_e.series))}else{var _e=parseListContents(ue);le.series.push(_e)}}),le}var DataView$1=function($){__extends(z,$);function z(){return $!==null&&$.apply(this,arguments)||this}return z.prototype.onclick=function(ie,le){setTimeout(function(){le.dispatchAction({type:"hideTip"})});var ue=le.getDom(),pe=this.model;this._dom&&ue.removeChild(this._dom);var _e=document.createElement("div");_e.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",_e.style.backgroundColor=pe.get("backgroundColor")||"#fff";var Ce=document.createElement("h4"),$e=pe.get("lang")||[];Ce.innerHTML=$e[0]||pe.get("title"),Ce.style.cssText="margin:10px 20px",Ce.style.color=pe.get("textColor");var xe=document.createElement("div"),Ie=document.createElement("textarea");xe.style.cssText="overflow:auto";var ze=pe.get("optionToContent"),Ue=pe.get("contentToOption"),qe=getContentFromModel(ie);if(isFunction(ze)){var Et=ze(le.getOption());isString(Et)?xe.innerHTML=Et:isDom(Et)&&xe.appendChild(Et)}else{Ie.readOnly=pe.get("readOnly");var Lt=Ie.style;Lt.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",Lt.color=pe.get("textColor"),Lt.borderColor=pe.get("textareaBorderColor"),Lt.backgroundColor=pe.get("textareaColor"),Ie.value=qe.value,xe.appendChild(Ie)}var hn=qe.meta,vn=document.createElement("div");vn.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _n="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",bn=document.createElement("div"),Sn=document.createElement("div");_n+=";background-color:"+pe.get("buttonColor"),_n+=";color:"+pe.get("buttonTextColor");var Cn=this;function En(){ue.removeChild(_e),Cn._dom=null}addEventListener(bn,"click",En),addEventListener(Sn,"click",function(){if(Ue==null&&ze!=null||Ue!=null&&ze==null){En();return}var $n;try{isFunction(Ue)?$n=Ue(xe,le.getOption()):$n=parseContents(Ie.value,hn)}catch(wn){throw En(),new Error("Data view format error "+wn)}$n&&le.dispatchAction({type:"changeDataView",newOption:$n}),En()}),bn.innerHTML=$e[1],Sn.innerHTML=$e[2],Sn.style.cssText=bn.style.cssText=_n,!pe.get("readOnly")&&vn.appendChild(Sn),vn.appendChild(bn),_e.appendChild(Ce),_e.appendChild(xe),_e.appendChild(vn),xe.style.height=ue.clientHeight-80+"px",ue.appendChild(_e),this._dom=_e},z.prototype.remove=function(ie,le){this._dom&&le.getDom().removeChild(this._dom)},z.prototype.dispose=function(ie,le){this.remove(ie,le)},z.getDefaultOption=function(ie){var le={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:ie.getLocaleModel().get(["toolbox","dataView","title"]),lang:ie.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return le},z}(ToolboxFeature);function tryMergeDataOption($,z){return map$2($,function(ie,le){var ue=z&&z[le];if(isObject$3(ue)&&!isArray$1(ue)){var pe=isObject$3(ie)&&!isArray$1(ie);pe||(ie={value:ie});var _e=ue.name!=null&&ie.name==null;return ie=defaults(ie,ue),_e&&delete ie.name,ie}else return ie})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function($,z){var ie=[];each$c($.newOption.series,function(le){var ue=z.getSeriesByName(le.name)[0];if(!ue)ie.push(extend({type:"scatter"},le));else{var pe=ue.get("data");ie.push({name:le.name,data:tryMergeDataOption(le.data,pe)})}}),z.mergeOption(defaults({series:ie},$.newOption))});const DataView$2=DataView$1;var each$6=each$c,inner$1=makeInner();function push($,z){var ie=getStoreSnapshots($);each$6(z,function(le,ue){for(var pe=ie.length-1;pe>=0;pe--){var _e=ie[pe];if(_e[ue])break}if(pe<0){var Ce=$.queryComponents({mainType:"dataZoom",subType:"select",id:ue})[0];if(Ce){var $e=Ce.getPercentRange();ie[0][ue]={dataZoomId:ue,start:$e[0],end:$e[1]}}}}),ie.push(z)}function pop($){var z=getStoreSnapshots($),ie=z[z.length-1];z.length>1&&z.pop();var le={};return each$6(ie,function(ue,pe){for(var _e=z.length-1;_e>=0;_e--)if(ue=z[_e][pe],ue){le[pe]=ue;break}}),le}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(ie,le){clear(ie),le.dispatchAction({type:"restore",from:this.uid})},z.getDefaultOption=function(ie){var le={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:ie.getLocaleModel().get(["toolbox","restore","title"])};return le},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,ie,le){var ue=this;this._targetInfoList=[];var pe=parseFinder(ie,z);each$c(targetInfoBuilders,function(_e,Ce){(!le||!le.include||indexOf(le.include,Ce)>=0)&&_e(pe,ue._targetInfoList)})}return $.prototype.setOutputRanges=function(z,ie){return this.matchOutputRanges(z,ie,function(le,ue,pe){if((le.coordRanges||(le.coordRanges=[])).push(ue),!le.coordRange){le.coordRange=ue;var _e=coordConvert[le.brushType](0,pe,ue);le.__rangeOffset={offset:diffProcessor[le.brushType](_e.values,le.range,[1,1]),xyMinMax:_e.xyMinMax}}}),z},$.prototype.matchOutputRanges=function(z,ie,le){each$c(z,function(ue){var pe=this.findTargetInfo(ue,ie);pe&&pe!==!0&&each$c(pe.coordSyses,function(_e){var Ce=coordConvert[ue.brushType](1,_e,ue.range,!0);le(ue,Ce.values,_e,ie)})},this)},$.prototype.setInputRanges=function(z,ie){each$c(z,function(le){var ue=this.findTargetInfo(le,ie);if(le.range=le.range||[],ue&&ue!==!0){le.panelId=ue.panelId;var pe=coordConvert[le.brushType](0,ue.coordSys,le.coordRange),_e=le.__rangeOffset;le.range=_e?diffProcessor[le.brushType](pe.values,_e.offset,getScales(pe.xyMinMax,_e.xyMinMax)):pe.values}},this)},$.prototype.makePanelOpts=function(z,ie){return map$2(this._targetInfoList,function(le){var ue=le.getPanelRect();return{panelId:le.panelId,defaultBrushType:ie?ie(le):null,clipPath:makeRectPanelClipPath(ue),isTargetByCursor:makeRectIsTargetByCursor(ue,z,le.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(ue)}})},$.prototype.controlSeries=function(z,ie,le){var ue=this.findTargetInfo(z,le);return ue===!0||ue&&indexOf(ue.coordSyses,ie.coordinateSystem)>=0},$.prototype.findTargetInfo=function(z,ie){for(var le=this._targetInfoList,ue=parseFinder(ie,z),pe=0;pe<le.length;pe++){var _e=le[pe],Ce=z.panelId;if(Ce){if(_e.panelId===Ce)return _e}else for(var $e=0;$e<targetInfoMatchers.length;$e++)if(targetInfoMatchers[$e](ue,_e))return _e}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 ie=$.xAxisModels,le=$.yAxisModels,ue=$.gridModels,pe=createHashMap(),_e={},Ce={};!ie&&!le&&!ue||(each$c(ie,function($e){var xe=$e.axis.grid.model;pe.set(xe.id,xe),_e[xe.id]=!0}),each$c(le,function($e){var xe=$e.axis.grid.model;pe.set(xe.id,xe),Ce[xe.id]=!0}),each$c(ue,function($e){pe.set($e.id,$e),_e[$e.id]=!0,Ce[$e.id]=!0}),pe.each(function($e){var xe=$e.coordinateSystem,Ie=[];each$c(xe.getCartesians(),function(ze,Ue){(indexOf(ie,ze.getAxis("x").model)>=0||indexOf(le,ze.getAxis("y").model)>=0)&&Ie.push(ze)}),z.push({panelId:"grid--"+$e.id,gridModel:$e,coordSysModel:$e,coordSys:Ie[0],coordSyses:Ie,getPanelRect:panelRectBuilders.grid,xAxisDeclared:_e[$e.id],yAxisDeclared:Ce[$e.id]})}))},geo:function($,z){each$c($.geoModels,function(ie){var le=ie.coordinateSystem;z.push({panelId:"geo--"+ie.id,geoModel:ie,coordSysModel:ie,coordSys:le,coordSyses:[le],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function($,z){var ie=$.xAxisModel,le=$.yAxisModel,ue=$.gridModel;return!ue&&ie&&(ue=ie.axis.grid.model),!ue&&le&&(ue=le.axis.grid.model),ue&&ue===z.gridModel},function($,z){var ie=$.geoModel;return ie&&ie===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,ie,le){var ue=$?z.pointToData([ie[0][0],ie[1][0]],le):z.dataToPoint([ie[0][0],ie[1][0]],le),pe=$?z.pointToData([ie[0][1],ie[1][1]],le):z.dataToPoint([ie[0][1],ie[1][1]],le),_e=[formatMinMax([ue[0],pe[0]]),formatMinMax([ue[1],pe[1]])];return{values:_e,xyMinMax:_e}},polygon:function($,z,ie,le){var ue=[[1/0,-1/0],[1/0,-1/0]],pe=map$2(ie,function(_e){var Ce=$?z.pointToData(_e,le):z.dataToPoint(_e,le);return ue[0][0]=Math.min(ue[0][0],Ce[0]),ue[1][0]=Math.min(ue[1][0],Ce[1]),ue[0][1]=Math.max(ue[0][1],Ce[0]),ue[1][1]=Math.max(ue[1][1],Ce[1]),Ce});return{values:pe,xyMinMax:ue}}};function axisConvert($,z,ie,le){var ue=ie.getAxis(["x","y"][$]),pe=formatMinMax(map$2([0,1],function(Ce){return z?ue.coordToData(ue.toLocalCoord(le[Ce]),!0):ue.toGlobalCoord(ue.dataToCoord(le[Ce]))})),_e=[];return _e[$]=pe,_e[1-$]=[NaN,NaN],{values:pe,xyMinMax:_e}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function($,z,ie){return[[$[0][0]-ie[0]*z[0][0],$[0][1]-ie[0]*z[0][1]],[$[1][0]-ie[1]*z[1][0],$[1][1]-ie[1]*z[1][1]]]},polygon:function($,z,ie){return map$2($,function(le,ue){return[le[0]-ie[0]*z[ue][0],le[1]-ie[1]*z[ue][1]]})}};function axisDiffProcessor($,z,ie,le){return[z[0]-le[$]*ie[0],z[1]-le[$]*ie[1]]}function getScales($,z){var ie=getSize($),le=getSize(z),ue=[ie[0]/le[0],ie[1]/le[1]];return isNaN(ue[0])&&(ue[0]=1),isNaN(ue[1])&&(ue[1]=1),ue}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(ie,le,ue,pe){this._brushController||(this._brushController=new BrushController$1(ue.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(ie,le,this,pe,ue),updateBackBtnStatus(ie,le)},z.prototype.onclick=function(ie,le,ue){handlers[ue].call(this)},z.prototype.remove=function(ie,le){this._brushController&&this._brushController.unmount()},z.prototype.dispose=function(ie,le){this._brushController&&this._brushController.dispose()},z.prototype._onBrush=function(ie){var le=ie.areas;if(!ie.isEnd||!le.length)return;var ue={},pe=this.ecModel;this._brushController.updateCovers([]);var _e=new BrushTargetManager$1(makeAxisFinder(this.model),pe,{include:["grid"]});_e.matchOutputRanges(le,pe,function(xe,Ie,ze){if(ze.type==="cartesian2d"){var Ue=xe.brushType;Ue==="rect"?(Ce("x",ze,Ie[0]),Ce("y",ze,Ie[1])):Ce({lineX:"x",lineY:"y"}[Ue],ze,Ie)}}),push(pe,ue),this._dispatchZoomAction(ue);function Ce(xe,Ie,ze){var Ue=Ie.getAxis(xe),qe=Ue.model,Et=$e(xe,qe,pe),Lt=Et.findRepresentativeAxisProxy(qe).getMinMaxSpan();(Lt.minValueSpan!=null||Lt.maxValueSpan!=null)&&(ze=sliderMove(0,ze.slice(),Ue.scale.getExtent(),0,Lt.minValueSpan,Lt.maxValueSpan)),Et&&(ue[Et.id]={dataZoomId:Et.id,startValue:ze[0],endValue:ze[1]})}function $e(xe,Ie,ze){var Ue;return ze.eachComponent({mainType:"dataZoom",subType:"select"},function(qe){var Et=qe.getAxisModel(xe,Ie.componentIndex);Et&&(Ue=qe)}),Ue}},z.prototype._dispatchZoomAction=function(ie){var le=[];each$5(ie,function(ue,pe){le.push(clone$3(ue))}),le.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:le})},z.getDefaultOption=function(ie){var le={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:ie.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return le},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,ie,le,ue){var pe=ie._isZoomActive;le&&le.type==="takeGlobalCursor"&&(pe=le.key==="dataZoomSelect"?le.dataZoomSelectActive:!1),ie._isZoomActive=pe,$.setIconStatus("zoom",pe?"emphasis":"normal");var _e=new BrushTargetManager$1(makeAxisFinder($),z,{include:["grid"]}),Ce=_e.makePanelOpts(ue,function($e){return $e.xAxisDeclared&&!$e.yAxisDeclared?"lineX":!$e.xAxisDeclared&&$e.yAxisDeclared?"lineY":"rect"});ie._brushController.setPanels(Ce).enableBrush(pe&&Ce.length?{brushType:"auto",brushStyle:$.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function($){var z=$.getComponent("toolbox",0),ie=["feature","dataZoom"];if(!z||z.get(ie)==null)return;var le=z.getModel(ie),ue=[],pe=makeAxisFinder(le),_e=parseFinder$1($,pe);each$5(_e.xAxisModels,function($e){return Ce($e,"xAxis","xAxisIndex")}),each$5(_e.yAxisModels,function($e){return Ce($e,"yAxis","yAxisIndex")});function Ce($e,xe,Ie){var ze=$e.componentIndex,Ue={type:"select",$fromToolbox:!0,filterMode:le.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+xe+ze};Ue[Ie]=ze,ue.push(Ue)}return ue});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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}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,ie=0,le=$.length;ie<le;ie++)if($[ie]in z)return $[ie]}}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 ie=$.indexOf(z);return $=ie===-1?z:"-"+$.slice(0,ie)+"-"+z,$.toLowerCase()}function getComputedStyle$1($,z){var ie=$.currentStyle||document.defaultView&&document.defaultView.getComputedStyle($);return ie?z?ie[z]:ie: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,ie){if(!isString(ie)||ie==="inside")return"";var le=$.get("backgroundColor"),ue=$.get("borderWidth");z=convertToColorString(z);var pe=mirrorPos(ie),_e=Math.max(Math.round(ue)*1.5,6),Ce="",$e=CSS_TRANSFORM_VENDOR+":",xe;indexOf(["left","right"],pe)>-1?(Ce+="top:50%",$e+="translateY(-50%) rotate("+(xe=pe==="left"?-225:-45)+"deg)"):(Ce+="left:50%",$e+="translateX(-50%) rotate("+(xe=pe==="top"?225:45)+"deg)");var Ie=xe*Math.PI/180,ze=_e+ue,Ue=ze*Math.abs(Math.cos(Ie))+ze*Math.abs(Math.sin(Ie)),qe=Math.round(((Ue-Math.SQRT2*ue)/2+Math.SQRT2*ue-(Ue-ze)/2)*100)/100;Ce+=";"+pe+":-"+qe+"px";var Et=z+" solid "+ue+"px;",Lt=["position:absolute;width:"+_e+"px;height:"+_e+"px;z-index:-1;",Ce+";"+$e+";","border-bottom:"+Et,"border-right:"+Et,"background-color:"+le+";"];return'<div style="'+Lt.join("")+'"></div>'}function assembleTransition($,z){var ie="cubic-bezier(0.23,1,0.32,1)",le=" "+$/2+"s "+ie,ue="opacity"+le+",visibility"+le;return z||(le=" "+$+"s "+ie,ue+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+le:",left"+le+",top"+le),CSS_TRANSITION_VENDOR+":"+ue}function assembleTransform($,z,ie){var le=$.toFixed(0)+"px",ue=z.toFixed(0)+"px";if(!env$1.transformSupported)return ie?"top:"+ue+";left:"+le+";":[["top",ue],["left",le]];var pe=env$1.transform3dSupported,_e="translate"+(pe?"3d":"")+"("+le+","+ue+(pe?",0":"")+")";return ie?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+_e+";":[["top",0],["left",0],[TRANSFORM_VENDOR,_e]]}function assembleFont($){var z=[],ie=$.get("fontSize"),le=$.getTextColor();le&&z.push("color:"+le),z.push("font:"+$.getFont()),ie&&z.push("line-height:"+Math.round(ie*3/2)+"px");var ue=$.get("textShadowColor"),pe=$.get("textShadowBlur")||0,_e=$.get("textShadowOffsetX")||0,Ce=$.get("textShadowOffsetY")||0;return ue&&pe&&z.push("text-shadow:"+_e+"px "+Ce+"px "+pe+"px "+ue),each$c(["decoration","align"],function($e){var xe=$.get($e);xe&&z.push("text-"+$e+":"+xe)}),z.join(";")}function assembleCssText($,z,ie){var le=[],ue=$.get("transitionDuration"),pe=$.get("backgroundColor"),_e=$.get("shadowBlur"),Ce=$.get("shadowColor"),$e=$.get("shadowOffsetX"),xe=$.get("shadowOffsetY"),Ie=$.getModel("textStyle"),ze=getPaddingFromTooltipModel($,"html"),Ue=$e+"px "+xe+"px "+_e+"px "+Ce;return le.push("box-shadow:"+Ue),z&&ue&&le.push(assembleTransition(ue,ie)),pe&&le.push("background-color:"+pe),each$c(["width","color","radius"],function(qe){var Et="border-"+qe,Lt=toCamelCase(Et),hn=$.get(Lt);hn!=null&&le.push(Et+":"+hn+(qe==="color"?"":"px"))}),le.push(assembleFont(Ie)),ze!=null&&le.push("padding:"+normalizeCssArray(ze).join("px ")+"px"),le.join(";")+";"}function makeStyleCoord$1($,z,ie,le,ue){var pe=z&&z.painter;if(ie){var _e=pe&&pe.getViewportRoot();_e&&transformLocalCoord($,_e,document.body,le,ue)}else{$[0]=le,$[1]=ue;var Ce=pe&&pe.getViewportRootOffset();Ce&&($[0]+=Ce.offsetLeft,$[1]+=Ce.offsetTop)}$[2]=$[0]/z.getWidth(),$[3]=$[1]/z.getHeight()}var TooltipHTMLContent=function(){function $(z,ie,le){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 ue=document.createElement("div");ue.domBelongToZr=!0,this.el=ue;var pe=this._zr=ie.getZr(),_e=this._appendToBody=le&&le.appendToBody;makeStyleCoord$1(this._styleCoord,pe,_e,ie.getWidth()/2,ie.getHeight()/2),_e?document.body.appendChild(ue):z.appendChild(ue),this._container=z;var Ce=this;ue.onmouseenter=function(){Ce._enterable&&(clearTimeout(Ce._hideTimeout),Ce._show=!0),Ce._inContent=!0},ue.onmousemove=function($e){if($e=$e||window.event,!Ce._enterable){var xe=pe.handler,Ie=pe.painter.getViewportRoot();normalizeEvent(Ie,$e,!0),xe.dispatch("mousemove",$e)}},ue.onmouseleave=function(){Ce._inContent=!1,Ce._enterable&&Ce._show&&Ce.hideLater(Ce._hideDelay)}}return $.prototype.update=function(z){var ie=this._container,le=getComputedStyle$1(ie,"position"),ue=ie.style;ue.position!=="absolute"&&le!=="absolute"&&(ue.position="relative");var pe=z.get("alwaysShowContent");pe&&this._moveIfResized(),this._alwaysShowContent=pe,this.el.className=z.get("className")||""},$.prototype.show=function(z,ie){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var le=this.el,ue=le.style,pe=this._styleCoord;le.innerHTML?ue.cssText=gCssText+assembleCssText(z,!this._firstShow,this._longHide)+assembleTransform(pe[0],pe[1],!0)+("border-color:"+convertToColorString(ie)+";")+(z.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):ue.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},$.prototype.setContent=function(z,ie,le,ue,pe){var _e=this.el;if(z==null){_e.innerHTML="";return}var Ce="";if(isString(pe)&&le.get("trigger")==="item"&&!shouldTooltipConfine(le)&&(Ce=assembleArrow(le,ue,pe)),isString(z))_e.innerHTML=z+Ce;else if(z){_e.innerHTML="",isArray$1(z)||(z=[z]);for(var $e=0;$e<z.length;$e++)isDom(z[$e])&&z[$e].parentNode!==_e&&_e.appendChild(z[$e]);if(Ce&&_e.childNodes.length){var xe=document.createElement("div");xe.innerHTML=Ce,_e.appendChild(xe)}}},$.prototype.setEnterable=function(z){this._enterable=z},$.prototype.getSize=function(){var z=this.el;return[z.offsetWidth,z.offsetHeight]},$.prototype.moveTo=function(z,ie){var le=this._styleCoord;if(makeStyleCoord$1(le,this._zr,this._appendToBody,z,ie),le[0]!=null&&le[1]!=null){var ue=this.el.style,pe=assembleTransform(le[0],le[1]);each$c(pe,function(_e){ue[_e[0]]=_e[1]})}},$.prototype._moveIfResized=function(){var z=this._styleCoord[2],ie=this._styleCoord[3];this.moveTo(z*this._zr.getWidth(),ie*this._zr.getHeight())},$.prototype.hide=function(){var z=this,ie=this.el.style;ie.visibility="hidden",ie.opacity="0",env$1.transform3dSupported&&(ie.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 ie=z.get("alwaysShowContent");ie&&this._moveIfResized(),this._alwaysShowContent=ie},$.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},$.prototype.setContent=function(z,ie,le,ue,pe){var _e=this;isObject$3(z)&&throwError(""),this.el&&this._zr.remove(this.el);var Ce=le.getModel("textStyle");this.el=new ZRText$1({style:{rich:ie.richTextStyles,text:z,lineHeight:22,borderWidth:1,borderColor:ue,textShadowColor:Ce.get("textShadowColor"),fill:le.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(le,"richText"),verticalAlign:"top",align:"left"},z:le.get("z")}),each$c(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(xe){_e.el.style[xe]=le.get(xe)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(xe){_e.el.style[xe]=Ce.get(xe)||0}),this._zr.add(this.el);var $e=this;this.el.on("mouseover",function(){$e._enterable&&(clearTimeout($e._hideTimeout),$e._show=!0),$e._inContent=!0}),this.el.on("mouseout",function(){$e._enterable&&$e._show&&$e.hideLater($e._hideDelay),$e._inContent=!1})},$.prototype.setEnterable=function(z){this._enterable=z},$.prototype.getSize=function(){var z=this.el,ie=this.el.getBoundingRect(),le=calcShadowOuterSize(z.style);return[ie.width+le.left+le.right,ie.height+le.top+le.bottom]},$.prototype.moveTo=function(z,ie){var le=this.el;if(le){var ue=this._styleCoord;makeStyleCoord(ue,this._zr,z,ie),z=ue[0],ie=ue[1];var pe=le.style,_e=mathMaxWith0(pe.borderWidth||0),Ce=calcShadowOuterSize(pe);le.x=z+_e+Ce.left,le.y=ie+_e+Ce.top,le.markRedraw()}},$.prototype._moveIfResized=function(){var z=this._styleCoord[2],ie=this._styleCoord[3];this.moveTo(z*this._zr.getWidth(),ie*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),ie=mathMaxWith0($.shadowOffsetX||0),le=mathMaxWith0($.shadowOffsetY||0);return{left:mathMaxWith0(z-ie),right:mathMaxWith0(z+ie),top:mathMaxWith0(z-le),bottom:mathMaxWith0(z+le)}}function makeStyleCoord($,z,ie,le){$[0]=ie,$[1]=le,$[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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.init=function(ie,le){if(!(env$1.node||!le.getDom())){var ue=ie.getComponent("tooltip"),pe=this._renderMode=getTooltipRenderMode(ue.get("renderMode"));this._tooltipContent=pe==="richText"?new TooltipRichContent$1(le):new TooltipHTMLContent$1(le.getDom(),le,{appendToBody:ue.get("appendToBody",!0)})}},z.prototype.render=function(ie,le,ue){if(!(env$1.node||!ue.getDom())){this.group.removeAll(),this._tooltipModel=ie,this._ecModel=le,this._api=ue;var pe=this._tooltipContent;pe.update(ie),pe.setEnterable(ie.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&ie.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},z.prototype._initGlobalListener=function(){var ie=this._tooltipModel,le=ie.get("triggerOn");register("itemTooltip",this._api,bind$1(function(ue,pe,_e){le!=="none"&&(le.indexOf(ue)>=0?this._tryShow(pe,_e):ue==="leave"&&this._hide(_e))},this))},z.prototype._keepShow=function(){var ie=this._tooltipModel,le=this._ecModel,ue=this._api,pe=ie.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&pe!=="none"&&pe!=="click"){var _e=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!ue.isDisposed()&&_e.manuallyShowTip(ie,le,ue,{x:_e._lastX,y:_e._lastY,dataByCoordSys:_e._lastDataByCoordSys})})}},z.prototype.manuallyShowTip=function(ie,le,ue,pe){if(!(pe.from===this.uid||env$1.node||!ue.getDom())){var _e=makeDispatchAction(pe,ue);this._ticket="";var Ce=pe.dataByCoordSys,$e=findComponentReference(pe,le,ue);if($e){var xe=$e.el.getBoundingRect().clone();xe.applyTransform($e.el.transform),this._tryShow({offsetX:xe.x+xe.width/2,offsetY:xe.y+xe.height/2,target:$e.el,position:pe.position,positionDefault:"bottom"},_e)}else if(pe.tooltip&&pe.x!=null&&pe.y!=null){var Ie=proxyRect;Ie.x=pe.x,Ie.y=pe.y,Ie.update(),getECData(Ie).tooltipConfig={name:null,option:pe.tooltip},this._tryShow({offsetX:pe.x,offsetY:pe.y,target:Ie},_e)}else if(Ce)this._tryShow({offsetX:pe.x,offsetY:pe.y,position:pe.position,dataByCoordSys:Ce,tooltipOption:pe.tooltipOption},_e);else if(pe.seriesIndex!=null){if(this._manuallyAxisShowTip(ie,le,ue,pe))return;var ze=findPointFromSeries(pe,le),Ue=ze.point[0],qe=ze.point[1];Ue!=null&&qe!=null&&this._tryShow({offsetX:Ue,offsetY:qe,target:ze.el,position:pe.position,positionDefault:"bottom"},_e)}else pe.x!=null&&pe.y!=null&&(ue.dispatchAction({type:"updateAxisPointer",x:pe.x,y:pe.y}),this._tryShow({offsetX:pe.x,offsetY:pe.y,position:pe.position,target:ue.getZr().findHover(pe.x,pe.y).target},_e))}},z.prototype.manuallyHideTip=function(ie,le,ue,pe){var _e=this._tooltipContent;this._tooltipModel&&_e.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,pe.from!==this.uid&&this._hide(makeDispatchAction(pe,ue))},z.prototype._manuallyAxisShowTip=function(ie,le,ue,pe){var _e=pe.seriesIndex,Ce=pe.dataIndex,$e=le.getComponent("axisPointer").coordSysAxesInfo;if(!(_e==null||Ce==null||$e==null)){var xe=le.getSeriesByIndex(_e);if(xe){var Ie=xe.getData(),ze=buildTooltipModel([Ie.getItemModel(Ce),xe,(xe.coordinateSystem||{}).model],this._tooltipModel);if(ze.get("trigger")==="axis")return ue.dispatchAction({type:"updateAxisPointer",seriesIndex:_e,dataIndex:Ce,position:pe.position}),!0}}},z.prototype._tryShow=function(ie,le){var ue=ie.target,pe=this._tooltipModel;if(pe){this._lastX=ie.offsetX,this._lastY=ie.offsetY;var _e=ie.dataByCoordSys;if(_e&&_e.length)this._showAxisTooltip(_e,ie);else if(ue){this._lastDataByCoordSys=null;var Ce,$e;findEventDispatcher(ue,function(xe){if(getECData(xe).dataIndex!=null)return Ce=xe,!0;if(getECData(xe).tooltipConfig!=null)return $e=xe,!0},!0),Ce?this._showSeriesItemTooltip(ie,Ce,le):$e?this._showComponentItemTooltip(ie,$e,le):this._hide(le)}else this._lastDataByCoordSys=null,this._hide(le)}},z.prototype._showOrMove=function(ie,le){var ue=ie.get("showDelay");le=bind$1(le,this),clearTimeout(this._showTimout),ue>0?this._showTimout=setTimeout(le,ue):le()},z.prototype._showAxisTooltip=function(ie,le){var ue=this._ecModel,pe=this._tooltipModel,_e=[le.offsetX,le.offsetY],Ce=buildTooltipModel([le.tooltipOption],pe),$e=this._renderMode,xe=[],Ie=createTooltipMarkup("section",{blocks:[],noHeader:!0}),ze=[],Ue=new TooltipMarkupStyleCreator;each$c(ie,function(_n){each$c(_n.dataByAxis,function(bn){var Sn=ue.getComponent(bn.axisDim+"Axis",bn.axisIndex),Cn=bn.value;if(!(!Sn||Cn==null)){var En=getValueLabel(Cn,Sn.axis,ue,bn.seriesDataIndices,bn.valueLabelOpt),$n=createTooltipMarkup("section",{header:En,noHeader:!trim$1(En),sortBlocks:!0,blocks:[]});Ie.blocks.push($n),each$c(bn.seriesDataIndices,function(wn){var Tn=ue.getSeriesByIndex(wn.seriesIndex),xn=wn.dataIndexInside,Pn=Tn.getDataParams(xn);if(!(Pn.dataIndex<0)){Pn.axisDim=bn.axisDim,Pn.axisIndex=bn.axisIndex,Pn.axisType=bn.axisType,Pn.axisId=bn.axisId,Pn.axisValue=getAxisRawValue(Sn.axis,{value:Cn}),Pn.axisValueLabel=En,Pn.marker=Ue.makeTooltipMarker("item",convertToColorString(Pn.color),$e);var kn=normalizeTooltipFormatResult(Tn.formatTooltip(xn,!0,null)),An=kn.frag;if(An){var Nn=buildTooltipModel([Tn],pe).get("valueFormatter");$n.blocks.push(Nn?extend({valueFormatter:Nn},An):An)}kn.text&&ze.push(kn.text),xe.push(Pn)}})}})}),Ie.blocks.reverse(),ze.reverse();var qe=le.position,Et=Ce.get("order"),Lt=buildTooltipMarkup(Ie,Ue,$e,Et,ue.get("useUTC"),Ce.get("textStyle"));Lt&&ze.unshift(Lt);var hn=$e==="richText"?`
`:"<br/>",vn=ze.join(hn);this._showOrMove(Ce,function(){this._updateContentNotChangedOnAxis(ie,xe)?this._updatePosition(Ce,qe,_e[0],_e[1],this._tooltipContent,xe):this._showTooltipContent(Ce,vn,xe,Math.random()+"",_e[0],_e[1],qe,null,Ue)})},z.prototype._showSeriesItemTooltip=function(ie,le,ue){var pe=this._ecModel,_e=getECData(le),Ce=_e.seriesIndex,$e=pe.getSeriesByIndex(Ce),xe=_e.dataModel||$e,Ie=_e.dataIndex,ze=_e.dataType,Ue=xe.getData(ze),qe=this._renderMode,Et=ie.positionDefault,Lt=buildTooltipModel([Ue.getItemModel(Ie),xe,$e&&($e.coordinateSystem||{}).model],this._tooltipModel,Et?{position:Et}:null),hn=Lt.get("trigger");if(!(hn!=null&&hn!=="item")){var vn=xe.getDataParams(Ie,ze),_n=new TooltipMarkupStyleCreator;vn.marker=_n.makeTooltipMarker("item",convertToColorString(vn.color),qe);var bn=normalizeTooltipFormatResult(xe.formatTooltip(Ie,!1,ze)),Sn=Lt.get("order"),Cn=Lt.get("valueFormatter"),En=bn.frag,$n=En?buildTooltipMarkup(Cn?extend({valueFormatter:Cn},En):En,_n,qe,Sn,pe.get("useUTC"),Lt.get("textStyle")):bn.text,wn="item_"+xe.name+"_"+Ie;this._showOrMove(Lt,function(){this._showTooltipContent(Lt,$n,vn,wn,ie.offsetX,ie.offsetY,ie.position,ie.target,_n)}),ue({type:"showTip",dataIndexInside:Ie,dataIndex:Ue.getRawIndex(Ie),seriesIndex:Ce,from:this.uid})}},z.prototype._showComponentItemTooltip=function(ie,le,ue){var pe=getECData(le),_e=pe.tooltipConfig,Ce=_e.option||{};if(isString(Ce)){var $e=Ce;Ce={content:$e,formatter:$e}}var xe=[Ce],Ie=this._ecModel.getComponent(pe.componentMainType,pe.componentIndex);Ie&&xe.push(Ie),xe.push({formatter:Ce.content});var ze=ie.positionDefault,Ue=buildTooltipModel(xe,this._tooltipModel,ze?{position:ze}:null),qe=Ue.get("content"),Et=Math.random()+"",Lt=new TooltipMarkupStyleCreator;this._showOrMove(Ue,function(){var hn=clone$3(Ue.get("formatterParams")||{});this._showTooltipContent(Ue,qe,hn,Et,ie.offsetX,ie.offsetY,ie.position,le,Lt)}),ue({type:"showTip",from:this.uid})},z.prototype._showTooltipContent=function(ie,le,ue,pe,_e,Ce,$e,xe,Ie){if(this._ticket="",!(!ie.get("showContent")||!ie.get("show"))){var ze=this._tooltipContent;ze.setEnterable(ie.get("enterable"));var Ue=ie.get("formatter");$e=$e||ie.get("position");var qe=le,Et=this._getNearestPoint([_e,Ce],ue,ie.get("trigger"),ie.get("borderColor")),Lt=Et.color;if(Ue)if(isString(Ue)){var hn=ie.ecModel.get("useUTC"),vn=isArray$1(ue)?ue[0]:ue,_n=vn&&vn.axisType&&vn.axisType.indexOf("time")>=0;qe=Ue,_n&&(qe=format$1(vn.axisValue,qe,hn)),qe=formatTpl(qe,ue,!0)}else if(isFunction(Ue)){var bn=bind$1(function(Sn,Cn){Sn===this._ticket&&(ze.setContent(Cn,Ie,ie,Lt,$e),this._updatePosition(ie,$e,_e,Ce,ze,ue,xe))},this);this._ticket=pe,qe=Ue(ue,pe,bn)}else qe=Ue;ze.setContent(qe,Ie,ie,Lt,$e),ze.show(ie,Lt),this._updatePosition(ie,$e,_e,Ce,ze,ue,xe)}},z.prototype._getNearestPoint=function(ie,le,ue,pe){if(ue==="axis"||isArray$1(le))return{color:pe||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(le))return{color:pe||le.color||le.borderColor}},z.prototype._updatePosition=function(ie,le,ue,pe,_e,Ce,$e){var xe=this._api.getWidth(),Ie=this._api.getHeight();le=le||ie.get("position");var ze=_e.getSize(),Ue=ie.get("align"),qe=ie.get("verticalAlign"),Et=$e&&$e.getBoundingRect().clone();if($e&&Et.applyTransform($e.transform),isFunction(le)&&(le=le([ue,pe],Ce,_e.el,Et,{viewSize:[xe,Ie],contentSize:ze.slice()})),isArray$1(le))ue=parsePercent(le[0],xe),pe=parsePercent(le[1],Ie);else if(isObject$3(le)){var Lt=le;Lt.width=ze[0],Lt.height=ze[1];var hn=getLayoutRect(Lt,{width:xe,height:Ie});ue=hn.x,pe=hn.y,Ue=null,qe=null}else if(isString(le)&&$e){var vn=calcTooltipPosition(le,Et,ze,ie.get("borderWidth"));ue=vn[0],pe=vn[1]}else{var vn=refixTooltipPosition(ue,pe,_e,xe,Ie,Ue?null:20,qe?null:20);ue=vn[0],pe=vn[1]}if(Ue&&(ue-=isCenterAlign(Ue)?ze[0]/2:Ue==="right"?ze[0]:0),qe&&(pe-=isCenterAlign(qe)?ze[1]/2:qe==="bottom"?ze[1]:0),shouldTooltipConfine(ie)){var vn=confineTooltipPosition(ue,pe,_e,xe,Ie);ue=vn[0],pe=vn[1]}_e.moveTo(ue,pe)},z.prototype._updateContentNotChangedOnAxis=function(ie,le){var ue=this._lastDataByCoordSys,pe=this._cbParamsList,_e=!!ue&&ue.length===ie.length;return _e&&each$c(ue,function(Ce,$e){var xe=Ce.dataByAxis||[],Ie=ie[$e]||{},ze=Ie.dataByAxis||[];_e=_e&&xe.length===ze.length,_e&&each$c(xe,function(Ue,qe){var Et=ze[qe]||{},Lt=Ue.seriesDataIndices||[],hn=Et.seriesDataIndices||[];_e=_e&&Ue.value===Et.value&&Ue.axisType===Et.axisType&&Ue.axisId===Et.axisId&&Lt.length===hn.length,_e&&each$c(Lt,function(vn,_n){var bn=hn[_n];_e=_e&&vn.seriesIndex===bn.seriesIndex&&vn.dataIndex===bn.dataIndex}),pe&&each$c(Ue.seriesDataIndices,function(vn){var _n=vn.seriesIndex,bn=le[_n],Sn=pe[_n];bn&&Sn&&Sn.data!==bn.data&&(_e=!1)})})}),this._lastDataByCoordSys=ie,this._cbParamsList=le,!!_e},z.prototype._hide=function(ie){this._lastDataByCoordSys=null,ie({type:"hideTip",from:this.uid})},z.prototype.dispose=function(ie,le){env$1.node||!le.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",le))},z.type="tooltip",z}(ComponentView$1);function buildTooltipModel($,z,ie){var le=z.ecModel,ue;ie?(ue=new Model$1(ie,le,le),ue=new Model$1(z.option,ue,le)):ue=z;for(var pe=$.length-1;pe>=0;pe--){var _e=$[pe];_e&&(_e instanceof Model$1&&(_e=_e.get("tooltip",!0)),isString(_e)&&(_e={formatter:_e}),_e&&(ue=new Model$1(_e,ue,le)))}return ue}function makeDispatchAction($,z){return $.dispatchAction||bind$1(z.dispatchAction,z)}function refixTooltipPosition($,z,ie,le,ue,pe,_e){var Ce=ie.getSize(),$e=Ce[0],xe=Ce[1];return pe!=null&&($+$e+pe+2>le?$-=$e+pe:$+=pe),_e!=null&&(z+xe+_e>ue?z-=xe+_e:z+=_e),[$,z]}function confineTooltipPosition($,z,ie,le,ue){var pe=ie.getSize(),_e=pe[0],Ce=pe[1];return $=Math.min($+_e,le)-_e,z=Math.min(z+Ce,ue)-Ce,$=Math.max($,0),z=Math.max(z,0),[$,z]}function calcTooltipPosition($,z,ie,le){var ue=ie[0],pe=ie[1],_e=Math.ceil(Math.SQRT2*le)+8,Ce=0,$e=0,xe=z.width,Ie=z.height;switch($){case"inside":Ce=z.x+xe/2-ue/2,$e=z.y+Ie/2-pe/2;break;case"top":Ce=z.x+xe/2-ue/2,$e=z.y-pe-_e;break;case"bottom":Ce=z.x+xe/2-ue/2,$e=z.y+Ie+_e;break;case"left":Ce=z.x-ue-_e,$e=z.y+Ie/2-pe/2;break;case"right":Ce=z.x+xe+_e,$e=z.y+Ie/2-pe/2}return[Ce,$e]}function isCenterAlign($){return $==="center"||$==="middle"}function findComponentReference($,z,ie){var le=preParseFinder($).queryOptionMap,ue=le.keys()[0];if(!(!ue||ue==="series")){var pe=queryReferringComponents(z,ue,le.get(ue),{useDefault:!1,enableAll:!1,enableNone:!1}),_e=pe.models[0];if(_e){var Ce=ie.getViewOfComponentModel(_e),$e;if(Ce.group.traverse(function(xe){var Ie=getECData(xe).tooltipConfig;if(Ie&&Ie.name===$.name)return $e=xe,!0}),$e)return{componentMainType:ue,componentIndex:_e.componentIndex,el:$e}}}}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,ie){var le={};return each$4(z,function(pe){var _e=le[pe]=ue();each$4($[pe],function(Ce,$e){if(VisualMapping$1.isValidType($e)){var xe={type:$e,visual:Ce};ie&&ie(xe,pe),_e[$e]=new VisualMapping$1(xe),$e==="opacity"&&(xe=clone$3(xe),xe.type="colorAlpha",_e.__hidden.__alphaForOpacity=new VisualMapping$1(xe))}})}),le;function ue(){var pe=function(){};pe.prototype.__hidden=pe.prototype;var _e=new pe;return _e}}function replaceVisualOption($,z,ie){var le;each$c(ie,function(ue){z.hasOwnProperty(ue)&&hasKeys(z[ue])&&(le=!0)}),le&&each$c(ie,function(ue){z.hasOwnProperty(ue)&&hasKeys(z[ue])?$[ue]=clone$3(z[ue]):delete $[ue]})}function incrementalApplyVisual($,z,ie,le){var ue={};return each$c($,function(pe){var _e=VisualMapping$1.prepareVisualTypes(z[pe]);ue[pe]=_e}),{progress:function(_e,Ce){var $e;le!=null&&($e=Ce.getDimensionIndex(le));function xe(Cn){return getItemVisualFromData(Ce,ze,Cn)}function Ie(Cn,En){setItemVisualFromData(Ce,ze,Cn,En)}for(var ze,Ue=Ce.getStore();(ze=_e.next())!=null;){var qe=Ce.getRawDataItem(ze);if(!(qe&&qe.visualMap===!1))for(var Et=le!=null?Ue.get($e,ze):ze,Lt=ie(Et),hn=z[Lt],vn=ue[Lt],_n=0,bn=vn.length;_n<bn;_n++){var Sn=vn[_n];hn[Sn]&&hn[Sn].applyVisual(Et,xe,Ie)}}}}}var TitleModel=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.layoutMode={type:"box",ignoreSize:!0},ie}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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.render=function(ie,le,ue){if(this.group.removeAll(),!!ie.get("show")){var pe=this.group,_e=ie.getModel("textStyle"),Ce=ie.getModel("subtextStyle"),$e=ie.get("textAlign"),xe=retrieve2(ie.get("textBaseline"),ie.get("textVerticalAlign")),Ie=new ZRText$1({style:createTextStyle$1(_e,{text:ie.get("text"),fill:_e.getTextColor()},{disableBox:!0}),z2:10}),ze=Ie.getBoundingRect(),Ue=ie.get("subtext"),qe=new ZRText$1({style:createTextStyle$1(Ce,{text:Ue,fill:Ce.getTextColor(),y:ze.height+ie.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),Et=ie.get("link"),Lt=ie.get("sublink"),hn=ie.get("triggerEvent",!0);Ie.silent=!Et&&!hn,qe.silent=!Lt&&!hn,Et&&Ie.on("click",function(){windowOpen(Et,"_"+ie.get("target"))}),Lt&&qe.on("click",function(){windowOpen(Lt,"_"+ie.get("subtarget"))}),getECData(Ie).eventData=getECData(qe).eventData=hn?{componentType:"title",componentIndex:ie.componentIndex}:null,pe.add(Ie),Ue&&pe.add(qe);var vn=pe.getBoundingRect(),_n=ie.getBoxLayoutParams();_n.width=vn.width,_n.height=vn.height;var bn=getLayoutRect(_n,{width:ue.getWidth(),height:ue.getHeight()},ie.get("padding"));$e||($e=ie.get("left")||ie.get("right"),$e==="middle"&&($e="center"),$e==="right"?bn.x+=bn.width:$e==="center"&&(bn.x+=bn.width/2)),xe||(xe=ie.get("top")||ie.get("bottom"),xe==="center"&&(xe="middle"),xe==="bottom"?bn.y+=bn.height:xe==="middle"&&(bn.y+=bn.height/2),xe=xe||"top"),pe.x=bn.x,pe.y=bn.y,pe.markRedraw();var Sn={align:$e,verticalAlign:xe};Ie.setStyle(Sn),qe.setStyle(Sn),vn=pe.getBoundingRect();var Cn=bn.margin,En=ie.getItemStyle(["color","opacity"]);En.fill=ie.get("backgroundColor");var $n=new Rect$2({shape:{x:vn.x-Cn[3],y:vn.y-Cn[0],width:vn.width+Cn[1]+Cn[3],height:vn.height+Cn[0]+Cn[2],r:ie.get("borderRadius")},style:En,subPixelOptimize:!0,silent:!0});pe.add($n)}},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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.layoutMode={type:"box",ignoreSize:!0},ie}return z.prototype.init=function(ie,le,ue){this.mergeDefaultAndTheme(ie,ue),ie.selected=ie.selected||{},this._updateSelector(ie)},z.prototype.mergeOption=function(ie,le){$.prototype.mergeOption.call(this,ie,le),this._updateSelector(ie)},z.prototype._updateSelector=function(ie){var le=ie.selector,ue=this.ecModel;le===!0&&(le=ie.selector=["all","inverse"]),isArray$1(le)&&each$c(le,function(pe,_e){isString(pe)&&(pe={type:pe}),le[_e]=merge(pe,getDefaultSelectorOptions(ue,pe.type))})},z.prototype.optionUpdated=function(){this._updateData(this.ecModel);var ie=this._data;if(ie[0]&&this.get("selectedMode")==="single"){for(var le=!1,ue=0;ue<ie.length;ue++){var pe=ie[ue].get("name");if(this.isSelected(pe)){this.select(pe),le=!0;break}}!le&&this.select(ie[0].get("name"))}},z.prototype._updateData=function(ie){var le=[],ue=[];ie.eachRawSeries(function($e){var xe=$e.name;ue.push(xe);var Ie;if($e.legendVisualProvider){var ze=$e.legendVisualProvider,Ue=ze.getAllNames();ie.isSeriesFiltered($e)||(ue=ue.concat(Ue)),Ue.length?le=le.concat(Ue):Ie=!0}else Ie=!0;Ie&&isNameSpecified($e)&&le.push($e.name)}),this._availableNames=ue;var pe=this.get("data")||le,_e=createHashMap(),Ce=map$2(pe,function($e){return(isString($e)||isNumber($e))&&($e={name:$e}),_e.get($e.name)?null:(_e.set($e.name,!0),new Model$1($e,this,this.ecModel))},this);this._data=filter(Ce,function($e){return!!$e})},z.prototype.getData=function(){return this._data},z.prototype.select=function(ie){var le=this.option.selected,ue=this.get("selectedMode");if(ue==="single"){var pe=this._data;each$c(pe,function(_e){le[_e.get("name")]=!1})}le[ie]=!0},z.prototype.unSelect=function(ie){this.get("selectedMode")!=="single"&&(this.option.selected[ie]=!1)},z.prototype.toggleSelected=function(ie){var le=this.option.selected;le.hasOwnProperty(ie)||(le[ie]=!0),this[le[ie]?"unSelect":"select"](ie)},z.prototype.allSelect=function(){var ie=this._data,le=this.option.selected;each$c(ie,function(ue){le[ue.get("name",!0)]=!0})},z.prototype.inverseSelect=function(){var ie=this._data,le=this.option.selected;each$c(ie,function(ue){var pe=ue.get("name",!0);le.hasOwnProperty(pe)||(le[pe]=!0),le[pe]=!le[pe]})},z.prototype.isSelected=function(ie){var le=this.option.selected;return!(le.hasOwnProperty(ie)&&!le[ie])&&indexOf(this._availableNames,ie)>=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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.newlineDisabled=!1,ie}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(ie,le,ue){var pe=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!ie.get("show",!0)){var _e=ie.get("align"),Ce=ie.get("orient");(!_e||_e==="auto")&&(_e=ie.get("left")==="right"&&Ce==="vertical"?"right":"left");var $e=ie.get("selector",!0),xe=ie.get("selectorPosition",!0);$e&&(!xe||xe==="auto")&&(xe=Ce==="horizontal"?"end":"start"),this.renderInner(_e,ie,le,ue,$e,Ce,xe);var Ie=ie.getBoxLayoutParams(),ze={width:ue.getWidth(),height:ue.getHeight()},Ue=ie.get("padding"),qe=getLayoutRect(Ie,ze,Ue),Et=this.layoutInner(ie,_e,qe,pe,$e,xe),Lt=getLayoutRect(defaults({width:Et.width,height:Et.height},Ie),ze,Ue);this.group.x=Lt.x-Et.x,this.group.y=Lt.y-Et.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(Et,ie))}},z.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},z.prototype.renderInner=function(ie,le,ue,pe,_e,Ce,$e){var xe=this.getContentGroup(),Ie=createHashMap(),ze=le.get("selectedMode"),Ue=[];ue.eachRawSeries(function(qe){!qe.get("legendHoverLink")&&Ue.push(qe.id)}),each$3(le.getData(),function(qe,Et){var Lt=qe.get("name");if(!this.newlineDisabled&&(Lt===""||Lt===`
`)){var hn=new Group$1;hn.newline=!0,xe.add(hn);return}var vn=ue.getSeriesByName(Lt)[0];if(!Ie.get(Lt))if(vn){var _n=vn.getData(),bn=_n.getVisual("legendLineStyle")||{},Sn=_n.getVisual("legendIcon"),Cn=_n.getVisual("style"),En=this._createItem(vn,Lt,Et,qe,le,ie,bn,Cn,Sn,ze,pe);En.on("click",curry(dispatchSelectAction,Lt,null,pe,Ue)).on("mouseover",curry(dispatchHighlightAction,vn.name,null,pe,Ue)).on("mouseout",curry(dispatchDownplayAction,vn.name,null,pe,Ue)),Ie.set(Lt,!0)}else ue.eachRawSeries(function($n){if(!Ie.get(Lt)&&$n.legendVisualProvider){var wn=$n.legendVisualProvider;if(!wn.containName(Lt))return;var Tn=wn.indexOfName(Lt),xn=wn.getItemVisual(Tn,"style"),Pn=wn.getItemVisual(Tn,"legendIcon"),kn=parse$1(xn.fill);kn&&kn[3]===0&&(kn[3]=.2,xn=extend(extend({},xn),{fill:stringify(kn,"rgba")}));var An=this._createItem($n,Lt,Et,qe,le,ie,{},xn,Pn,ze,pe);An.on("click",curry(dispatchSelectAction,null,Lt,pe,Ue)).on("mouseover",curry(dispatchHighlightAction,null,Lt,pe,Ue)).on("mouseout",curry(dispatchDownplayAction,null,Lt,pe,Ue)),Ie.set(Lt,!0)}},this)},this),_e&&this._createSelector(_e,le,pe,Ce,$e)},z.prototype._createSelector=function(ie,le,ue,pe,_e){var Ce=this.getSelectorGroup();each$3(ie,function(xe){var Ie=xe.type,ze=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){ue.dispatchAction({type:Ie==="all"?"legendAllSelect":"legendInverseSelect"})}});Ce.add(ze);var Ue=le.getModel("selectorLabel"),qe=le.getModel(["emphasis","selectorLabel"]);setLabelStyle(ze,{normal:Ue,emphasis:qe},{defaultText:xe.title}),enableHoverEmphasis(ze)})},z.prototype._createItem=function(ie,le,ue,pe,_e,Ce,$e,xe,Ie,ze,Ue){var qe=ie.visualDrawType,Et=_e.get("itemWidth"),Lt=_e.get("itemHeight"),hn=_e.isSelected(le),vn=pe.get("symbolRotate"),_n=pe.get("symbolKeepAspect"),bn=pe.get("icon");Ie=bn||Ie||"roundRect";var Sn=getLegendStyle(Ie,pe,$e,xe,qe,hn,Ue),Cn=new Group$1,En=pe.getModel("textStyle");if(isFunction(ie.getLegendIcon)&&(!bn||bn==="inherit"))Cn.add(ie.getLegendIcon({itemWidth:Et,itemHeight:Lt,icon:Ie,iconRotate:vn,itemStyle:Sn.itemStyle,lineStyle:Sn.lineStyle,symbolKeepAspect:_n}));else{var $n=bn==="inherit"&&ie.getData().getVisual("symbol")?vn==="inherit"?ie.getData().getVisual("symbolRotate"):vn:0;Cn.add(getDefaultLegendIcon({itemWidth:Et,itemHeight:Lt,icon:Ie,iconRotate:$n,itemStyle:Sn.itemStyle,lineStyle:Sn.lineStyle,symbolKeepAspect:_n}))}var wn=Ce==="left"?Et+5:-5,Tn=Ce,xn=_e.get("formatter"),Pn=le;isString(xn)&&xn?Pn=xn.replace("{name}",le??""):isFunction(xn)&&(Pn=xn(le));var kn=pe.get("inactiveColor");Cn.add(new ZRText$1({style:createTextStyle$1(En,{text:Pn,x:wn,y:Lt/2,fill:hn?En.getTextColor():kn,align:Tn,verticalAlign:"middle"})}));var An=new Rect$2({shape:Cn.getBoundingRect(),invisible:!0}),Nn=pe.getModel("tooltip");return Nn.get("show")&&setTooltipConfig({el:An,componentModel:_e,itemName:le,itemTooltipOption:Nn.option}),Cn.add(An),Cn.eachChild(function(Fn){Fn.silent=!0}),An.silent=!ze,this.getContentGroup().add(Cn),enableHoverEmphasis(Cn),Cn.__legendDataIndex=ue,Cn},z.prototype.layoutInner=function(ie,le,ue,pe,_e,Ce){var $e=this.getContentGroup(),xe=this.getSelectorGroup();box(ie.get("orient"),$e,ie.get("itemGap"),ue.width,ue.height);var Ie=$e.getBoundingRect(),ze=[-Ie.x,-Ie.y];if(xe.markRedraw(),$e.markRedraw(),_e){box("horizontal",xe,ie.get("selectorItemGap",!0));var Ue=xe.getBoundingRect(),qe=[-Ue.x,-Ue.y],Et=ie.get("selectorButtonGap",!0),Lt=ie.getOrient().index,hn=Lt===0?"width":"height",vn=Lt===0?"height":"width",_n=Lt===0?"y":"x";Ce==="end"?qe[Lt]+=Ie[hn]+Et:ze[Lt]+=Ue[hn]+Et,qe[1-Lt]+=Ie[vn]/2-Ue[vn]/2,xe.x=qe[0],xe.y=qe[1],$e.x=ze[0],$e.y=ze[1];var bn={x:0,y:0};return bn[hn]=Ie[hn]+Et+Ue[hn],bn[vn]=Math.max(Ie[vn],Ue[vn]),bn[_n]=Math.min(0,Ue[_n]+qe[1-Lt]),bn}else return $e.x=ze[0],$e.y=ze[1],this.group.getBoundingRect()},z.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},z.type="legend.plain",z}(ComponentView$1);function getLegendStyle($,z,ie,le,ue,pe,_e){function Ce(hn,vn){hn.lineWidth==="auto"&&(hn.lineWidth=vn.lineWidth>0?2:0),each$3(hn,function(_n,bn){hn[bn]==="inherit"&&(hn[bn]=vn[bn])})}var $e=z.getModel("itemStyle"),xe=$e.getItemStyle(),Ie=$.lastIndexOf("empty",0)===0?"fill":"stroke",ze=$e.getShallow("decal");xe.decal=!ze||ze==="inherit"?le.decal:createOrUpdatePatternFromDecal(ze,_e),xe.fill==="inherit"&&(xe.fill=le[ue]),xe.stroke==="inherit"&&(xe.stroke=le[Ie]),xe.opacity==="inherit"&&(xe.opacity=(ue==="fill"?le:ie).opacity),Ce(xe,le);var Ue=z.getModel("lineStyle"),qe=Ue.getLineStyle();if(Ce(qe,ie),xe.fill==="auto"&&(xe.fill=le.fill),xe.stroke==="auto"&&(xe.stroke=le.fill),qe.stroke==="auto"&&(qe.stroke=le.fill),!pe){var Et=z.get("inactiveBorderWidth"),Lt=xe[Ie];xe.lineWidth=Et==="auto"?le.lineWidth>0&&Lt?2:0:xe.lineWidth,xe.fill=z.get("inactiveColor"),xe.stroke=z.get("inactiveBorderColor"),qe.stroke=Ue.get("inactiveColor"),qe.lineWidth=Ue.get("inactiveWidth")}return{itemStyle:xe,lineStyle:qe}}function getDefaultLegendIcon($){var z=$.icon||"roundRect",ie=createSymbol(z,0,0,$.itemWidth,$.itemHeight,$.itemStyle.fill,$.symbolKeepAspect);return ie.setStyle($.itemStyle),ie.rotation=($.iconRotate||0)*Math.PI/180,ie.setOrigin([$.itemWidth/2,$.itemHeight/2]),z.indexOf("empty")>-1&&(ie.style.stroke=ie.style.fill,ie.style.fill="#fff",ie.style.lineWidth=2),ie}function dispatchSelectAction($,z,ie,le){dispatchDownplayAction($,z,ie,le),ie.dispatchAction({type:"legendToggleSelect",name:$??z}),dispatchHighlightAction($,z,ie,le)}function isUseHoverLayer($){for(var z=$.getZr().storage.getDisplayList(),ie,le=0,ue=z.length;le<ue&&!(ie=z[le].states.emphasis);)le++;return ie&&ie.hoverLayer}function dispatchHighlightAction($,z,ie,le){isUseHoverLayer(ie)||ie.dispatchAction({type:"highlight",seriesName:$,name:z,excludeSeriesId:le})}function dispatchDownplayAction($,z,ie,le){isUseHoverLayer(ie)||ie.dispatchAction({type:"downplay",seriesName:$,name:z,excludeSeriesId:le})}const LegendView$1=LegendView;function legendFilter($){var z=$.findComponents({mainType:"legend"});z&&z.length&&$.filterSeries(function(ie){for(var le=0;le<z.length;le++)if(!z[le].isSelected(ie.name))return!1;return!0})}function legendSelectActionHandler($,z,ie){var le={},ue=$==="toggleSelected",pe;return ie.eachComponent("legend",function(_e){ue&&pe!=null?_e[pe?"select":"unSelect"](z.name):$==="allSelect"||$==="inverseSelect"?_e[$]():(_e[$](z.name),pe=_e.isSelected(z.name));var Ce=_e.getData();each$c(Ce,function($e){var xe=$e.get("name");if(!(xe===`
`||xe==="")){var Ie=_e.isSelected(xe);le.hasOwnProperty(xe)?le[xe]=le[xe]&&Ie:le[xe]=Ie}})}),$==="allSelect"||$==="inverseSelect"?{selected:le}:{name:z.name,selected:le}}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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.setScrollDataIndex=function(ie){this.option.scrollDataIndex=ie},z.prototype.init=function(ie,le,ue){var pe=getLayoutParams(ie);$.prototype.init.call(this,ie,le,ue),mergeAndNormalizeLayoutParams(this,ie,pe)},z.prototype.mergeOption=function(ie,le){$.prototype.mergeOption.call(this,ie,le),mergeAndNormalizeLayoutParams(this,this.option,ie)},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,ie){var le=$.getOrient(),ue=[1,1];ue[le.index]=0,mergeLayoutParam(z,ie,{type:"box",ignoreSize:!!ue})}const ScrollableLegendModel$1=ScrollableLegendModel;var Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.newlineDisabled=!0,ie._currentIndex=0,ie}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(ie,le,ue,pe,_e,Ce,$e){var xe=this;$.prototype.renderInner.call(this,ie,le,ue,pe,_e,Ce,$e);var Ie=this._controllerGroup,ze=le.get("pageIconSize",!0),Ue=isArray$1(ze)?ze:[ze,ze];Et("pagePrev",0);var qe=le.getModel("pageTextStyle");Ie.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:qe.getTextColor(),font:qe.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),Et("pageNext",1);function Et(Lt,hn){var vn=Lt+"DataIndex",_n=createIcon(le.get("pageIcons",!0)[le.getOrient().name][hn],{onclick:bind$1(xe._pageGo,xe,vn,le,pe)},{x:-Ue[0]/2,y:-Ue[1]/2,width:Ue[0],height:Ue[1]});_n.name=Lt,Ie.add(_n)}},z.prototype.layoutInner=function(ie,le,ue,pe,_e,Ce){var $e=this.getSelectorGroup(),xe=ie.getOrient().index,Ie=WH[xe],ze=XY[xe],Ue=WH[1-xe],qe=XY[1-xe];_e&&box("horizontal",$e,ie.get("selectorItemGap",!0));var Et=ie.get("selectorButtonGap",!0),Lt=$e.getBoundingRect(),hn=[-Lt.x,-Lt.y],vn=clone$3(ue);_e&&(vn[Ie]=ue[Ie]-Lt[Ie]-Et);var _n=this._layoutContentAndController(ie,pe,vn,xe,Ie,Ue,qe,ze);if(_e){if(Ce==="end")hn[xe]+=_n[Ie]+Et;else{var bn=Lt[Ie]+Et;hn[xe]-=bn,_n[ze]-=bn}_n[Ie]+=Lt[Ie]+Et,hn[1-xe]+=_n[qe]+_n[Ue]/2-Lt[Ue]/2,_n[Ue]=Math.max(_n[Ue],Lt[Ue]),_n[qe]=Math.min(_n[qe],Lt[qe]+hn[1-xe]),$e.x=hn[0],$e.y=hn[1],$e.markRedraw()}return _n},z.prototype._layoutContentAndController=function(ie,le,ue,pe,_e,Ce,$e,xe){var Ie=this.getContentGroup(),ze=this._containerGroup,Ue=this._controllerGroup;box(ie.get("orient"),Ie,ie.get("itemGap"),pe?ue.width:null,pe?null:ue.height),box("horizontal",Ue,ie.get("pageButtonItemGap",!0));var qe=Ie.getBoundingRect(),Et=Ue.getBoundingRect(),Lt=this._showController=qe[_e]>ue[_e],hn=[-qe.x,-qe.y];le||(hn[pe]=Ie[xe]);var vn=[0,0],_n=[-Et.x,-Et.y],bn=retrieve2(ie.get("pageButtonGap",!0),ie.get("itemGap",!0));if(Lt){var Sn=ie.get("pageButtonPosition",!0);Sn==="end"?_n[pe]+=ue[_e]-Et[_e]:vn[pe]+=Et[_e]+bn}_n[1-pe]+=qe[Ce]/2-Et[Ce]/2,Ie.setPosition(hn),ze.setPosition(vn),Ue.setPosition(_n);var Cn={x:0,y:0};if(Cn[_e]=Lt?ue[_e]:qe[_e],Cn[Ce]=Math.max(qe[Ce],Et[Ce]),Cn[$e]=Math.min(0,Et[$e]+_n[1-pe]),ze.__rectSize=ue[_e],Lt){var En={x:0,y:0};En[_e]=Math.max(ue[_e]-Et[_e]-bn,0),En[Ce]=Cn[Ce],ze.setClipPath(new Rect$2({shape:En})),ze.__rectSize=En[_e]}else Ue.eachChild(function(wn){wn.attr({invisible:!0,silent:!0})});var $n=this._getPageInfo(ie);return $n.pageIndex!=null&&updateProps$1(Ie,{x:$n.contentPosition[0],y:$n.contentPosition[1]},Lt?ie:null),this._updatePageInfoView(ie,$n),Cn},z.prototype._pageGo=function(ie,le,ue){var pe=this._getPageInfo(le)[ie];pe!=null&&ue.dispatchAction({type:"legendScroll",scrollDataIndex:pe,legendId:le.id})},z.prototype._updatePageInfoView=function(ie,le){var ue=this._controllerGroup;each$c(["pagePrev","pageNext"],function(Ie){var ze=Ie+"DataIndex",Ue=le[ze]!=null,qe=ue.childOfName(Ie);qe&&(qe.setStyle("fill",Ue?ie.get("pageIconColor",!0):ie.get("pageIconInactiveColor",!0)),qe.cursor=Ue?"pointer":"default")});var pe=ue.childOfName("pageText"),_e=ie.get("pageFormatter"),Ce=le.pageIndex,$e=Ce!=null?Ce+1:0,xe=le.pageCount;pe&&_e&&pe.setStyle("text",isString(_e)?_e.replace("{current}",$e==null?"":$e+"").replace("{total}",xe==null?"":xe+""):_e({current:$e,total:xe}))},z.prototype._getPageInfo=function(ie){var le=ie.get("scrollDataIndex",!0),ue=this.getContentGroup(),pe=this._containerGroup.__rectSize,_e=ie.getOrient().index,Ce=WH[_e],$e=XY[_e],xe=this._findTargetItemIndex(le),Ie=ue.children(),ze=Ie[xe],Ue=Ie.length,qe=Ue?1:0,Et={contentPosition:[ue.x,ue.y],pageCount:qe,pageIndex:qe-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!ze)return Et;var Lt=Sn(ze);Et.contentPosition[_e]=-Lt.s;for(var hn=xe+1,vn=Lt,_n=Lt,bn=null;hn<=Ue;++hn)bn=Sn(Ie[hn]),(!bn&&_n.e>vn.s+pe||bn&&!Cn(bn,vn.s))&&(_n.i>vn.i?vn=_n:vn=bn,vn&&(Et.pageNextDataIndex==null&&(Et.pageNextDataIndex=vn.i),++Et.pageCount)),_n=bn;for(var hn=xe-1,vn=Lt,_n=Lt,bn=null;hn>=-1;--hn)bn=Sn(Ie[hn]),(!bn||!Cn(_n,bn.s))&&vn.i<_n.i&&(_n=vn,Et.pagePrevDataIndex==null&&(Et.pagePrevDataIndex=vn.i),++Et.pageCount,++Et.pageIndex),vn=bn;return Et;function Sn(En){if(En){var $n=En.getBoundingRect(),wn=$n[$e]+En[$e];return{s:wn,e:wn+$n[Ce],i:En.__legendDataIndex}}}function Cn(En,$n){return En.e>=$n&&En.s<=$n+pe}},z.prototype._findTargetItemIndex=function(ie){if(!this._showController)return 0;var le,ue=this.getContentGroup(),pe;return ue.eachChild(function(_e,Ce){var $e=_e.__legendDataIndex;pe==null&&$e!=null&&(pe=Ce),$e===ie&&(le=Ce)}),le??pe},z.type="legend.scroll",z}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction($){$.registerAction("legendScroll","legendscroll",function(z,ie){var le=z.scrollDataIndex;le!=null&&ie.eachComponent({mainType:"legend",subType:"scroll",query:z},function(ue){ue.setScrollDataIndex(le)})})}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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}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,ie){inner($).coordSysRecordMap.each(function(le){var ue=le.dataZoomInfoMap.get(z.uid);ue&&(ue.getRange=ie)})}function disposeCoordSysRecordIfNeeded($,z){for(var ie=inner($).coordSysRecordMap,le=ie.keys(),ue=0;ue<le.length;ue++){var pe=le[ue],_e=ie.get(pe),Ce=_e.dataZoomInfoMap;if(Ce){var $e=z.uid,xe=Ce.get($e);xe&&(Ce.removeKey($e),Ce.keys().length||disposeCoordSysRecord(ie,_e))}}}function disposeCoordSysRecord($,z){if(z){$.removeKey(z.model.uid);var ie=z.controller;ie&&ie.dispose()}}function createCoordSysRecord($,z){var ie={model:z,containsPoint:curry$1(containsPoint,z),dispatchAction:curry$1(dispatchAction,$),dataZoomInfoMap:null,controller:null},le=ie.controller=new RoamController$1($.getZr());return each$c(["pan","zoom","scrollMove"],function(ue){le.on(ue,function(pe){var _e=[];ie.dataZoomInfoMap.each(function(Ce){if(pe.isAvailableBehavior(Ce.model.option)){var $e=(Ce.getRange||{})[ue],xe=$e&&$e(Ce.dzReferCoordSysInfo,ie.model.mainType,ie.controller,pe);!Ce.model.get("disabled",!0)&&xe&&_e.push({dataZoomId:Ce.model.id,start:xe[0],end:xe[1]})}}),_e.length&&ie.dispatchAction(_e)})}),ie}function dispatchAction($,z){$.isDisposed()||$.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:z})}function containsPoint($,z,ie,le){return $.coordinateSystem.containPoint([ie,le])}function mergeControllerParams($){var z,ie="type_",le={type_true:2,type_move:1,type_false:0,type_undefined:-1},ue=!0;return $.each(function(pe){var _e=pe.model,Ce=_e.get("disabled",!0)?!1:_e.get("zoomLock",!0)?"move":!0;le[ie+Ce]>le[ie+z]&&(z=Ce),ue=ue&&_e.get("preventDefaultMouseMove",!0)}),{controlType:z,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!ue}}}function installDataZoomRoamProcessor($){$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,function(z,ie){var le=inner(ie),ue=le.coordSysRecordMap||(le.coordSysRecordMap=createHashMap());ue.each(function(pe){pe.dataZoomInfoMap=null}),z.eachComponent({mainType:"dataZoom",subType:"inside"},function(pe){var _e=collectReferCoordSysModelInfo(pe);each$c(_e.infoList,function(Ce){var $e=Ce.model.uid,xe=ue.get($e)||ue.set($e,createCoordSysRecord(ie,Ce.model)),Ie=xe.dataZoomInfoMap||(xe.dataZoomInfoMap=createHashMap());Ie.set(pe.uid,{dzReferCoordSysInfo:Ce,model:pe,getRange:null})})}),ue.each(function(pe){var _e=pe.controller,Ce,$e=pe.dataZoomInfoMap;if($e){var xe=$e.keys()[0];xe!=null&&(Ce=$e.get(xe))}if(!Ce){disposeCoordSysRecord(ue,pe);return}var Ie=mergeControllerParams($e);_e.enable(Ie.controlType,Ie.opt),_e.setPointerChecker(pe.containsPoint),createOrUpdate(pe,"dispatchAction",Ce.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type="dataZoom.inside",ie}return z.prototype.render=function(ie,le,ue){if($.prototype.render.apply(this,arguments),ie.noTarget()){this._clear();return}this.range=ie.getPercentRange(),setViewInfoToCoordSysRecord(ue,ie,{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,ie,le){var ue=this.range,pe=ue.slice(),_e=$.axisModels[0];if(_e){var Ce=getDirectionInfo[z](null,[le.originX,le.originY],_e,ie,$),$e=(Ce.signal>0?Ce.pixelStart+Ce.pixelLength-Ce.pixel:Ce.pixel-Ce.pixelStart)/Ce.pixelLength*(pe[1]-pe[0])+pe[0],xe=Math.max(1/le.scale,0);pe[0]=(pe[0]-$e)*xe+$e,pe[1]=(pe[1]-$e)*xe+$e;var Ie=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,pe,[0,100],0,Ie.minSpan,Ie.maxSpan),this.range=pe,ue[0]!==pe[0]||ue[1]!==pe[1])return pe}},pan:makeMover(function($,z,ie,le,ue,pe){var _e=getDirectionInfo[le]([pe.oldX,pe.oldY],[pe.newX,pe.newY],z,ue,ie);return _e.signal*($[1]-$[0])*_e.pixel/_e.pixelLength}),scrollMove:makeMover(function($,z,ie,le,ue,pe){var _e=getDirectionInfo[le]([0,0],[pe.scrollDelta,pe.scrollDelta],z,ue,ie);return _e.signal*($[1]-$[0])*pe.scrollDelta})};function makeMover($){return function(z,ie,le,ue){var pe=this.range,_e=pe.slice(),Ce=z.axisModels[0];if(Ce){var $e=$(_e,Ce,z,ie,le,ue);if(sliderMove($e,_e,[0,100],"all"),this.range=_e,pe[0]!==_e[0]||pe[1]!==_e[1])return _e}}}var getDirectionInfo={grid:function($,z,ie,le,ue){var pe=ie.axis,_e={},Ce=ue.model.coordinateSystem.getRect();return $=$||[0,0],pe.dim==="x"?(_e.pixel=z[0]-$[0],_e.pixelLength=Ce.width,_e.pixelStart=Ce.x,_e.signal=pe.inverse?1:-1):(_e.pixel=z[1]-$[1],_e.pixelLength=Ce.height,_e.pixelStart=Ce.y,_e.signal=pe.inverse?-1:1),_e},polar:function($,z,ie,le,ue){var pe=ie.axis,_e={},Ce=ue.model.coordinateSystem,$e=Ce.getRadiusAxis().getExtent(),xe=Ce.getAngleAxis().getExtent();return $=$?Ce.pointToCoord($):[0,0],z=Ce.pointToCoord(z),ie.mainType==="radiusAxis"?(_e.pixel=z[0]-$[0],_e.pixelLength=$e[1]-$e[0],_e.pixelStart=$e[0],_e.signal=pe.inverse?1:-1):(_e.pixel=z[1]-$[1],_e.pixelLength=xe[1]-xe[0],_e.pixelStart=xe[0],_e.signal=pe.inverse?-1:1),_e},singleAxis:function($,z,ie,le,ue){var pe=ie.axis,_e=ue.model.coordinateSystem.getRect(),Ce={};return $=$||[0,0],pe.orient==="horizontal"?(Ce.pixel=z[0]-$[0],Ce.pixelLength=_e.width,Ce.pixelStart=_e.x,Ce.signal=pe.inverse?1:-1):(Ce.pixel=z[1]-$[1],Ce.pixelLength=_e.height,Ce.pixelStart=_e.y,Ce.signal=pe.inverse?-1:1),Ce}};const InsideZoomView$1=InsideZoomView;function install$5($){installCommon$1($),$.registerComponentModel(InsideZoomModel$1),$.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor($)}var SliderZoomModel=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie._displayables={},ie}return z.prototype.init=function(ie,le){this.api=le,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},z.prototype.render=function(ie,le,ue,pe){if($.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",ie.get("throttle"),"fixRate"),this._orient=ie.getOrient(),ie.get("show")===!1){this.group.removeAll();return}if(ie.noTarget()){this._clear(),this.group.removeAll();return}(!pe||pe.type!=="dataZoom"||pe.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 ie=this.api.getZr();ie.off("mousemove",this._onBrush),ie.off("mouseup",this._onBrushEnd)},z.prototype._buildView=function(){var ie=this.group;ie.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var le=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),ie.add(le),this._positionGroup()},z.prototype._resetLocation=function(){var ie=this.dataZoomModel,le=this.api,ue=ie.get("brushSelect"),pe=ue?DEFAULT_MOVE_HANDLE_SIZE:0,_e=this._findCoordRect(),Ce={width:le.getWidth(),height:le.getHeight()},$e=this._orient===HORIZONTAL?{right:Ce.width-_e.x-_e.width,top:Ce.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-pe,width:_e.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:_e.y,width:DEFAULT_FILLER_SIZE,height:_e.height},xe=getLayoutParams(ie.option);each$c(["right","top","width","height"],function(ze){xe[ze]==="ph"&&(xe[ze]=$e[ze])});var Ie=getLayoutRect(xe,Ce);this._location={x:Ie.x,y:Ie.y},this._size=[Ie.width,Ie.height],this._orient===VERTICAL&&this._size.reverse()},z.prototype._positionGroup=function(){var ie=this.group,le=this._location,ue=this._orient,pe=this.dataZoomModel.getFirstTargetAxisModel(),_e=pe&&pe.get("inverse"),Ce=this._displayables.sliderGroup,$e=(this._dataShadowInfo||{}).otherAxisInverse;Ce.attr(ue===HORIZONTAL&&!_e?{scaleY:$e?1:-1,scaleX:1}:ue===HORIZONTAL&&_e?{scaleY:$e?1:-1,scaleX:-1}:ue===VERTICAL&&!_e?{scaleY:$e?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:$e?-1:1,scaleX:-1,rotation:Math.PI/2});var xe=ie.getBoundingRect([Ce]);ie.x=le.x-xe.x,ie.y=le.y-xe.y,ie.markRedraw()},z.prototype._getViewExtent=function(){return[0,this._size[0]]},z.prototype._renderBackground=function(){var ie=this.dataZoomModel,le=this._size,ue=this._displayables.sliderGroup,pe=ie.get("brushSelect");ue.add(new Rect({silent:!0,shape:{x:0,y:0,width:le[0],height:le[1]},style:{fill:ie.get("backgroundColor")},z2:-40}));var _e=new Rect({shape:{x:0,y:0,width:le[0],height:le[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),Ce=this.api.getZr();pe?(_e.on("mousedown",this._onBrushStart,this),_e.cursor="crosshair",Ce.on("mousemove",this._onBrush),Ce.on("mouseup",this._onBrushEnd)):(Ce.off("mousemove",this._onBrush),Ce.off("mouseup",this._onBrushEnd)),ue.add(_e)},z.prototype._renderDataShadow=function(){var ie=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!ie)return;var le=this._size,ue=this._shadowSize||[],pe=ie.series,_e=pe.getRawData(),Ce=pe.getShadowDim&&pe.getShadowDim(),$e=Ce&&_e.getDimensionInfo(Ce)?pe.getShadowDim():ie.otherDim;if($e==null)return;var xe=this._shadowPolygonPts,Ie=this._shadowPolylinePts;if(_e!==this._shadowData||$e!==this._shadowDim||le[0]!==ue[0]||le[1]!==ue[1]){var ze=_e.getDataExtent($e),Ue=(ze[1]-ze[0])*.3;ze=[ze[0]-Ue,ze[1]+Ue];var qe=[0,le[1]],Et=[0,le[0]],Lt=[[le[0],0],[0,0]],hn=[],vn=Et[1]/(_e.count()-1),_n=0,bn=Math.round(_e.count()/le[0]),Sn;_e.each([$e],function(Tn,xn){if(bn>0&&xn%bn){_n+=vn;return}var Pn=Tn==null||isNaN(Tn)||Tn==="",kn=Pn?0:linearMap$2(Tn,ze,qe,!0);Pn&&!Sn&&xn?(Lt.push([Lt[Lt.length-1][0],0]),hn.push([hn[hn.length-1][0],0])):!Pn&&Sn&&(Lt.push([_n,0]),hn.push([_n,0])),Lt.push([_n,kn]),hn.push([_n,kn]),_n+=vn,Sn=Pn}),xe=this._shadowPolygonPts=Lt,Ie=this._shadowPolylinePts=hn}this._shadowData=_e,this._shadowDim=$e,this._shadowSize=[le[0],le[1]];var Cn=this.dataZoomModel;function En(Tn){var xn=Cn.getModel(Tn?"selectedDataBackground":"dataBackground"),Pn=new Group$3,kn=new Polygon$1({shape:{points:xe},segmentIgnoreThreshold:1,style:xn.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),An=new Polyline$1({shape:{points:Ie},segmentIgnoreThreshold:1,style:xn.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Pn.add(kn),Pn.add(An),Pn}for(var $n=0;$n<3;$n++){var wn=En($n===1);this._displayables.sliderGroup.add(wn),this._displayables.dataShadowSegs.push(wn)}},z.prototype._prepareDataShadowInfo=function(){var ie=this.dataZoomModel,le=ie.get("showDataShadow");if(le!==!1){var ue,pe=this.ecModel;return ie.eachTargetAxis(function(_e,Ce){var $e=ie.getAxisProxy(_e,Ce).getTargetSeriesModels();each$c($e,function(xe){if(!ue&&!(le!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,xe.get("type"))<0)){var Ie=pe.getComponent(getAxisMainType(_e),Ce).axis,ze=getOtherDim(_e),Ue,qe=xe.coordinateSystem;ze!=null&&qe.getOtherAxis&&(Ue=qe.getOtherAxis(Ie).inverse),ze=xe.getData().mapDimension(ze),ue={thisAxis:Ie,series:xe,thisDim:_e,otherDim:ze,otherAxisInverse:Ue}}},this)},this),ue}},z.prototype._renderHandle=function(){var ie=this.group,le=this._displayables,ue=le.handles=[null,null],pe=le.handleLabels=[null,null],_e=this._displayables.sliderGroup,Ce=this._size,$e=this.dataZoomModel,xe=this.api,Ie=$e.get("borderRadius")||0,ze=$e.get("brushSelect"),Ue=le.filler=new Rect({silent:ze,style:{fill:$e.get("fillerColor")},textConfig:{position:"inside"}});_e.add(Ue),_e.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:Ce[0],height:Ce[1],r:Ie},style:{stroke:$e.get("dataBackgroundColor")||$e.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(bn){var Sn=$e.get("handleIcon");!symbolBuildProxies[Sn]&&Sn.indexOf("path://")<0&&Sn.indexOf("image://")<0&&(Sn="path://"+Sn);var Cn=createSymbol(Sn,-1,0,2,2,null,!0);Cn.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,bn),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var En=Cn.getBoundingRect(),$n=$e.get("handleSize");this._handleHeight=parsePercent($n,this._size[1]),this._handleWidth=En.width/En.height*this._handleHeight,Cn.setStyle($e.getModel("handleStyle").getItemStyle()),Cn.style.strokeNoScale=!0,Cn.rectHover=!0,Cn.ensureState("emphasis").style=$e.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(Cn);var wn=$e.get("handleColor");wn!=null&&(Cn.style.fill=wn),_e.add(ue[bn]=Cn);var Tn=$e.getModel("textStyle");ie.add(pe[bn]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(Tn,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Tn.getTextColor(),font:Tn.getFont()}),z2:10}))},this);var qe=Ue;if(ze){var Et=parsePercent($e.get("moveHandleSize"),Ce[1]),Lt=le.moveHandle=new Rect$2({style:$e.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:Ce[1]-.5,height:Et}}),hn=Et*.8,vn=le.moveHandleIcon=createSymbol($e.get("moveHandleIcon"),-hn/2,-hn/2,hn,hn,"#fff",!0);vn.silent=!0,vn.y=Ce[1]+Et/2-.5,Lt.ensureState("emphasis").style=$e.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _n=Math.min(Ce[1]/2,Math.max(Et,10));qe=le.moveZone=new Rect$2({invisible:!0,shape:{y:Ce[1]-_n,height:Et+_n}}),qe.on("mouseover",function(){xe.enterEmphasis(Lt)}).on("mouseout",function(){xe.leaveEmphasis(Lt)}),_e.add(Lt),_e.add(vn),_e.add(qe)}qe.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 ie=this._range=this.dataZoomModel.getPercentRange(),le=this._getViewExtent();this._handleEnds=[linearMap$2(ie[0],[0,100],le,!0),linearMap$2(ie[1],[0,100],le,!0)]},z.prototype._updateInterval=function(ie,le){var ue=this.dataZoomModel,pe=this._handleEnds,_e=this._getViewExtent(),Ce=ue.findRepresentativeAxisProxy().getMinMaxSpan(),$e=[0,100];sliderMove(le,pe,_e,ue.get("zoomLock")?"all":ie,Ce.minSpan!=null?linearMap$2(Ce.minSpan,$e,_e,!0):null,Ce.maxSpan!=null?linearMap$2(Ce.maxSpan,$e,_e,!0):null);var xe=this._range,Ie=this._range=asc$2([linearMap$2(pe[0],_e,$e,!0),linearMap$2(pe[1],_e,$e,!0)]);return!xe||xe[0]!==Ie[0]||xe[1]!==Ie[1]},z.prototype._updateView=function(ie){var le=this._displayables,ue=this._handleEnds,pe=asc$2(ue.slice()),_e=this._size;each$c([0,1],function(qe){var Et=le.handles[qe],Lt=this._handleHeight;Et.attr({scaleX:Lt/2,scaleY:Lt/2,x:ue[qe]+(qe?-1:1),y:_e[1]/2-Lt/2})},this),le.filler.setShape({x:pe[0],y:0,width:pe[1]-pe[0],height:_e[1]});var Ce={x:pe[0],width:pe[1]-pe[0]};le.moveHandle&&(le.moveHandle.setShape(Ce),le.moveZone.setShape(Ce),le.moveZone.getBoundingRect(),le.moveHandleIcon&&le.moveHandleIcon.attr("x",Ce.x+Ce.width/2));for(var $e=le.dataShadowSegs,xe=[0,pe[0],pe[1],_e[0]],Ie=0;Ie<$e.length;Ie++){var ze=$e[Ie],Ue=ze.getClipPath();Ue||(Ue=new Rect$2,ze.setClipPath(Ue)),Ue.setShape({x:xe[Ie],y:0,width:xe[Ie+1]-xe[Ie],height:_e[1]})}this._updateDataInfo(ie)},z.prototype._updateDataInfo=function(ie){var le=this.dataZoomModel,ue=this._displayables,pe=ue.handleLabels,_e=this._orient,Ce=["",""];if(le.get("showDetail")){var $e=le.findRepresentativeAxisProxy();if($e){var xe=$e.getAxisModel().axis,Ie=this._range,ze=ie?$e.calculateDataWindow({start:Ie[0],end:Ie[1]}).valueWindow:$e.getDataValueWindow();Ce=[this._formatLabel(ze[0],xe),this._formatLabel(ze[1],xe)]}}var Ue=asc$2(this._handleEnds.slice());qe.call(this,0),qe.call(this,1);function qe(Et){var Lt=getTransform$1(ue.handles[Et].parent,this.group),hn=transformDirection(Et===0?"right":"left",Lt),vn=this._handleWidth/2+LABEL_GAP,_n=applyTransform([Ue[Et]+(Et===0?-vn:vn),this._size[1]/2],Lt);pe[Et].setStyle({x:_n[0],y:_n[1],verticalAlign:_e===HORIZONTAL?"middle":hn,align:_e===HORIZONTAL?hn:"center",text:Ce[Et]})}},z.prototype._formatLabel=function(ie,le){var ue=this.dataZoomModel,pe=ue.get("labelFormatter"),_e=ue.get("labelPrecision");(_e==null||_e==="auto")&&(_e=le.getPixelPrecision());var Ce=ie==null||isNaN(ie)?"":le.type==="category"||le.type==="time"?le.scale.getLabel({value:Math.round(ie)}):ie.toFixed(Math.min(_e,20));return isFunction(pe)?pe(ie,Ce):isString(pe)?pe.replace("{value}",Ce):Ce},z.prototype._showDataInfo=function(ie){ie=this._dragging||ie;var le=this._displayables,ue=le.handleLabels;ue[0].attr("invisible",!ie),ue[1].attr("invisible",!ie),le.moveHandle&&this.api[ie?"enterEmphasis":"leaveEmphasis"](le.moveHandle,1)},z.prototype._onDragMove=function(ie,le,ue,pe){this._dragging=!0,stop(pe.event);var _e=this._displayables.sliderGroup.getLocalTransform(),Ce=applyTransform([le,ue],_e,!0),$e=this._updateInterval(ie,Ce[0]),xe=this.dataZoomModel.get("realtime");this._updateView(!xe),$e&&xe&&this._dispatchZoomAction(!0)},z.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var ie=this.dataZoomModel.get("realtime");!ie&&this._dispatchZoomAction(!1)},z.prototype._onClickPanel=function(ie){var le=this._size,ue=this._displayables.sliderGroup.transformCoordToLocal(ie.offsetX,ie.offsetY);if(!(ue[0]<0||ue[0]>le[0]||ue[1]<0||ue[1]>le[1])){var pe=this._handleEnds,_e=(pe[0]+pe[1])/2,Ce=this._updateInterval("all",ue[0]-_e);this._updateView(),Ce&&this._dispatchZoomAction(!1)}},z.prototype._onBrushStart=function(ie){var le=ie.offsetX,ue=ie.offsetY;this._brushStart=new Point$1(le,ue),this._brushing=!0,this._brushStartTime=+new Date},z.prototype._onBrushEnd=function(ie){if(this._brushing){var le=this._displayables.brushRect;if(this._brushing=!1,!!le){le.attr("ignore",!0);var ue=le.shape,pe=+new Date;if(!(pe-this._brushStartTime<200&&Math.abs(ue.width)<5)){var _e=this._getViewExtent(),Ce=[0,100];this._range=asc$2([linearMap$2(ue.x,_e,Ce,!0),linearMap$2(ue.x+ue.width,_e,Ce,!0)]),this._handleEnds=[ue.x,ue.x+ue.width],this._updateView(),this._dispatchZoomAction(!1)}}}},z.prototype._onBrush=function(ie){this._brushing&&(stop(ie.event),this._updateBrushRect(ie.offsetX,ie.offsetY))},z.prototype._updateBrushRect=function(ie,le){var ue=this._displayables,pe=this.dataZoomModel,_e=ue.brushRect;_e||(_e=ue.brushRect=new Rect({silent:!0,style:pe.getModel("brushStyle").getItemStyle()}),ue.sliderGroup.add(_e)),_e.attr("ignore",!1);var Ce=this._brushStart,$e=this._displayables.sliderGroup,xe=$e.transformCoordToLocal(ie,le),Ie=$e.transformCoordToLocal(Ce.x,Ce.y),ze=this._size;xe[0]=Math.max(Math.min(ze[0],xe[0]),0),_e.setShape({x:Ie[0],y:0,width:xe[0]-Ie[0],height:ze[1]})},z.prototype._dispatchZoomAction=function(ie){var le=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:ie?REALTIME_ANIMATION_CONFIG:null,start:le[0],end:le[1]})},z.prototype._findCoordRect=function(){var ie,le=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!ie&&le.length){var ue=le[0].model.coordinateSystem;ie=ue.getRect&&ue.getRect()}if(!ie){var pe=this.api.getWidth(),_e=this.api.getHeight();ie={x:pe*.2,y:_e*.2,width:pe*.6,height:_e*.6}}return ie},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,ie){var le=clone$3((defaultOption[$]||{})[z]);return ie&&isArray$1(le)?le[le.length-1]:le}},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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.stateList=["inRange","outOfRange"],ie.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],ie.layoutMode={type:"box",ignoreSize:!0},ie.dataBound=[-1/0,1/0],ie.targetVisuals={},ie.controllerVisuals={},ie}return z.prototype.init=function(ie,le,ue){this.mergeDefaultAndTheme(ie,ue)},z.prototype.optionUpdated=function(ie,le){var ue=this.option;!le&&replaceVisualOption(ue,ie,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},z.prototype.resetVisual=function(ie){var le=this.stateList;ie=bind$1(ie,this),this.controllerVisuals=createVisualMappings(this.option.controller,le,ie),this.targetVisuals=createVisualMappings(this.option.target,le,ie)},z.prototype.getItemSymbol=function(){return null},z.prototype.getTargetSeriesIndices=function(){var ie=this.option.seriesIndex,le=[];return ie==null||ie==="all"?this.ecModel.eachSeries(function(ue,pe){le.push(pe)}):le=normalizeToArray(ie),le},z.prototype.eachTargetSeries=function(ie,le){each$c(this.getTargetSeriesIndices(),function(ue){var pe=this.ecModel.getSeriesByIndex(ue);pe&&ie.call(le,pe)},this)},z.prototype.isTargetSeries=function(ie){var le=!1;return this.eachTargetSeries(function(ue){ue===ie&&(le=!0)}),le},z.prototype.formatValueText=function(ie,le,ue){var pe=this.option,_e=pe.precision,Ce=this.dataBound,$e=pe.formatter,xe;ue=ue||["<",">"],isArray$1(ie)&&(ie=ie.slice(),xe=!0);var Ie=le?ie:xe?[ze(ie[0]),ze(ie[1])]:ze(ie);if(isString($e))return $e.replace("{value}",xe?Ie[0]:Ie).replace("{value2}",xe?Ie[1]:Ie);if(isFunction($e))return xe?$e(ie[0],ie[1]):$e(ie);if(xe)return ie[0]===Ce[0]?ue[0]+" "+Ie[1]:ie[1]===Ce[1]?ue[1]+" "+Ie[0]:Ie[0]+" - "+Ie[1];return Ie;function ze(Ue){return Ue===Ce[0]?"min":Ue===Ce[1]?"max":(+Ue).toFixed(Math.min(_e,20))}},z.prototype.resetExtent=function(){var ie=this.option,le=asc([ie.min,ie.max]);this._dataExtent=le},z.prototype.getDataDimensionIndex=function(ie){var le=this.option.dimension;if(le!=null)return ie.getDimensionIndex(le);for(var ue=ie.dimensions,pe=ue.length-1;pe>=0;pe--){var _e=ue[pe],Ce=ie.getDimensionInfo(_e);if(!Ce.isCalculationCoord)return Ce.storeDimIndex}},z.prototype.getExtent=function(){return this._dataExtent.slice()},z.prototype.completeVisualOption=function(){var ie=this.ecModel,le=this.option,ue={inRange:le.inRange,outOfRange:le.outOfRange},pe=le.target||(le.target={}),_e=le.controller||(le.controller={});merge(pe,ue),merge(_e,ue);var Ce=this.isCategory();$e.call(this,pe),$e.call(this,_e),xe.call(this,pe,"inRange","outOfRange"),Ie.call(this,_e);function $e(ze){isArray(le.color)&&!ze.inRange&&(ze.inRange={color:le.color.slice().reverse()}),ze.inRange=ze.inRange||{color:ie.get("gradientColor")}}function xe(ze,Ue,qe){var Et=ze[Ue],Lt=ze[qe];Et&&!Lt&&(Lt=ze[qe]={},each$2(Et,function(hn,vn){if(VisualMapping$1.isValidType(vn)){var _n=visualDefault$1.get(vn,"inactive",Ce);_n!=null&&(Lt[vn]=_n,vn==="color"&&!Lt.hasOwnProperty("opacity")&&!Lt.hasOwnProperty("colorAlpha")&&(Lt.opacity=[0,0]))}}))}function Ie(ze){var Ue=(ze.inRange||{}).symbol||(ze.outOfRange||{}).symbol,qe=(ze.inRange||{}).symbolSize||(ze.outOfRange||{}).symbolSize,Et=this.get("inactiveColor"),Lt=this.getItemSymbol(),hn=Lt||"roundRect";each$2(this.stateList,function(vn){var _n=this.itemSize,bn=ze[vn];bn||(bn=ze[vn]={color:Ce?Et:[Et]}),bn.symbol==null&&(bn.symbol=Ue&&clone$3(Ue)||(Ce?hn:[hn])),bn.symbolSize==null&&(bn.symbolSize=qe&&clone$3(qe)||(Ce?_n[0]:[_n[0],_n[0]])),bn.symbol=mapVisual(bn.symbol,function(En){return En==="none"?hn:En});var Sn=bn.symbolSize;if(Sn!=null){var Cn=-1/0;eachVisual(Sn,function(En){En>Cn&&(Cn=En)}),bn.symbolSize=mapVisual(Sn,function(En){return linearMap$1(En,[0,Cn],[0,_n[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(ie){},z.prototype.getSelected=function(){return null},z.prototype.getValueState=function(ie){return null},z.prototype.getVisualMeta=function(ie){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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.optionUpdated=function(ie,le){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(ue){ue.mappingMethod="linear",ue.dataExtent=this.getExtent()}),this._resetRange()},z.prototype.resetItemSize=function(){$.prototype.resetItemSize.apply(this,arguments);var ie=this.itemSize;(ie[0]==null||isNaN(ie[0]))&&(ie[0]=DEFAULT_BAR_BOUND[0]),(ie[1]==null||isNaN(ie[1]))&&(ie[1]=DEFAULT_BAR_BOUND[1])},z.prototype._resetRange=function(){var ie=this.getExtent(),le=this.option.range;!le||le.auto?(ie.auto=1,this.option.range=ie):isArray$1(le)&&(le[0]>le[1]&&le.reverse(),le[0]=Math.max(le[0],ie[0]),le[1]=Math.min(le[1],ie[1]))},z.prototype.completeVisualOption=function(){$.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(ie){var le=this.option.controller[ie].symbolSize;le&&le[0]!==le[1]&&(le[0]=le[1]/3)},this)},z.prototype.setSelected=function(ie){this.option.range=ie.slice(),this._resetRange()},z.prototype.getSelected=function(){var ie=this.getExtent(),le=asc$2((this.get("range")||[]).slice());return le[0]>ie[1]&&(le[0]=ie[1]),le[1]>ie[1]&&(le[1]=ie[1]),le[0]<ie[0]&&(le[0]=ie[0]),le[1]<ie[0]&&(le[1]=ie[0]),le},z.prototype.getValueState=function(ie){var le=this.option.range,ue=this.getExtent();return(le[0]<=ue[0]||le[0]<=ie)&&(le[1]>=ue[1]||ie<=le[1])?"inRange":"outOfRange"},z.prototype.findTargetDataIndices=function(ie){var le=[];return this.eachTargetSeries(function(ue){var pe=[],_e=ue.getData();_e.each(this.getDataDimensionIndex(_e),function(Ce,$e){ie[0]<=Ce&&Ce<=ie[1]&&pe.push($e)},this),le.push({seriesId:ue.id,dataIndex:pe})},this),le},z.prototype.getVisualMeta=function(ie){var le=getColorStopValues(this,"outOfRange",this.getExtent()),ue=getColorStopValues(this,"inRange",this.option.range.slice()),pe=[];function _e(qe,Et){pe.push({value:qe,color:ie(qe,Et)})}for(var Ce=0,$e=0,xe=ue.length,Ie=le.length;$e<Ie&&(!ue.length||le[$e]<=ue[0]);$e++)le[$e]<ue[Ce]&&_e(le[$e],"outOfRange");for(var ze=1;Ce<xe;Ce++,ze=0)ze&&pe.length&&_e(ue[Ce],"outOfRange"),_e(ue[Ce],"inRange");for(var ze=1;$e<Ie;$e++)(!ue.length||ue[ue.length-1]<le[$e])&&(ze&&(pe.length&&_e(pe[pe.length-1].value,"outOfRange"),ze=0),_e(le[$e],"outOfRange"));var Ue=pe.length;return{stops:pe,outerColors:[Ue?pe[0].color:"transparent",Ue?pe[Ue-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,ie){if(ie[0]===ie[1])return ie.slice();for(var le=200,ue=(ie[1]-ie[0])/le,pe=ie[0],_e=[],Ce=0;Ce<=le&&pe<ie[1];Ce++)_e.push(pe),pe+=ue;return _e.push(ie[1]),_e}const ContinuousModel$1=ContinuousModel;var VisualMapView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie.autoPositionValues={left:1,right:1,top:1,bottom:1},ie}return z.prototype.init=function(ie,le){this.ecModel=ie,this.api=le},z.prototype.render=function(ie,le,ue,pe){if(this.visualMapModel=ie,ie.get("show")===!1){this.group.removeAll();return}this.doRender(ie,le,ue,pe)},z.prototype.renderBackground=function(ie){var le=this.visualMapModel,ue=normalizeCssArray(le.get("padding")||0),pe=ie.getBoundingRect();ie.add(new Rect$2({z2:-1,silent:!0,shape:{x:pe.x-ue[3],y:pe.y-ue[0],width:pe.width+ue[3]+ue[1],height:pe.height+ue[0]+ue[2]},style:{fill:le.get("backgroundColor"),stroke:le.get("borderColor"),lineWidth:le.get("borderWidth")}}))},z.prototype.getControllerVisual=function(ie,le,ue){ue=ue||{};var pe=ue.forceState,_e=this.visualMapModel,Ce={};if(le==="color"){var $e=_e.get("contentColor");Ce.color=$e}function xe(qe){return Ce[qe]}function Ie(qe,Et){Ce[qe]=Et}var ze=_e.controllerVisuals[pe||_e.getValueState(ie)],Ue=VisualMapping$1.prepareVisualTypes(ze);return each$c(Ue,function(qe){var Et=ze[qe];ue.convertOpacityToAlpha&&qe==="opacity"&&(qe="colorAlpha",Et=ze.__alphaForOpacity),VisualMapping$1.dependsOn(qe,le)&&Et&&Et.applyVisual(ie,xe,Ie)}),Ce[le]},z.prototype.positionGroup=function(ie){var le=this.visualMapModel,ue=this.api;positionElement(ie,le.getBoxLayoutParams(),{width:ue.getWidth(),height:ue.getHeight()})},z.prototype.doRender=function(ie,le,ue,pe){},z.type="visualMap",z}(ComponentView$1);const VisualMapView$1=VisualMapView;var paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign($,z,ie){var le=$.option,ue=le.align;if(ue!=null&&ue!=="auto")return ue;for(var pe={width:z.getWidth(),height:z.getHeight()},_e=le.orient==="horizontal"?1:0,Ce=paramsSet[_e],$e=[0,null,10],xe={},Ie=0;Ie<3;Ie++)xe[paramsSet[1-_e][Ie]]=$e[Ie],xe[Ce[Ie]]=Ie===2?ie[0]:le[Ce[Ie]];var ze=[["x","width",3],["y","height",0]][_e],Ue=getLayoutRect(xe,pe,le.padding);return Ce[(Ue.margin[ze[2]]||0)+Ue[ze[0]]+Ue[ze[1]]*.5<pe[ze[1]]*.5?0:1]}function makeHighDownBatch($,z){return each$c($||[],function(ie){ie.dataIndex!=null&&(ie.dataIndexInside=ie.dataIndex,ie.dataIndex=null),ie.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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie._shapes={},ie._dataInterval=[],ie._handleEnds=[],ie._hoverLinkDataIndices=[],ie}return z.prototype.doRender=function(ie,le,ue,pe){this._api=ue,(!pe||pe.type!=="selectDataRange"||pe.from!==this.uid)&&this._buildView()},z.prototype._buildView=function(){this.group.removeAll();var ie=this.visualMapModel,le=this.group;this._orient=ie.get("orient"),this._useHandle=ie.get("calculable"),this._resetInterval(),this._renderBar(le);var ue=ie.get("text");this._renderEndsText(le,ue,0),this._renderEndsText(le,ue,1),this._updateView(!0),this.renderBackground(le),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(le)},z.prototype._renderEndsText=function(ie,le,ue){if(le){var pe=le[1-ue];pe=pe!=null?pe+"":"";var _e=this.visualMapModel,Ce=_e.get("textGap"),$e=_e.itemSize,xe=this._shapes.mainGroup,Ie=this._applyTransform([$e[0]/2,ue===0?-Ce:$e[1]+Ce],xe),ze=this._applyTransform(ue===0?"bottom":"top",xe),Ue=this._orient,qe=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(qe,{x:Ie[0],y:Ie[1],verticalAlign:Ue==="horizontal"?"middle":ze,align:Ue==="horizontal"?ze:"center",text:pe})}))}},z.prototype._renderBar=function(ie){var le=this.visualMapModel,ue=this._shapes,pe=le.itemSize,_e=this._orient,Ce=this._useHandle,$e=getItemAlign(le,this.api,pe),xe=ue.mainGroup=this._createBarGroup($e),Ie=new Group$3;xe.add(Ie),Ie.add(ue.outOfRange=createPolygon()),Ie.add(ue.inRange=createPolygon(null,Ce?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),Ie.setClipPath(new Rect$2({shape:{x:0,y:0,width:pe[0],height:pe[1],r:3}}));var ze=le.textStyleModel.getTextRect("国"),Ue=mathMax(ze.width,ze.height);Ce&&(ue.handleThumbs=[],ue.handleLabels=[],ue.handleLabelPoints=[],this._createHandle(le,xe,0,pe,Ue,_e),this._createHandle(le,xe,1,pe,Ue,_e)),this._createIndicator(le,xe,pe,Ue,_e),ie.add(xe)},z.prototype._createHandle=function(ie,le,ue,pe,_e,Ce){var $e=bind$1(this._dragHandle,this,ue,!1),xe=bind$1(this._dragHandle,this,ue,!0),Ie=parsePercent$1(ie.get("handleSize"),pe[0]),ze=createSymbol(ie.get("handleIcon"),-Ie/2,-Ie/2,Ie,Ie,null,!0),Ue=getCursor(this._orient);ze.attr({cursor:Ue,draggable:!0,drift:$e,ondragend:xe,onmousemove:function(vn){stop(vn.event)}}),ze.x=pe[0]/2,ze.useStyle(ie.getModel("handleStyle").getItemStyle()),ze.setStyle({strokeNoScale:!0,strokeFirst:!0}),ze.style.lineWidth*=2,ze.ensureState("emphasis").style=ie.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(ze,!0),le.add(ze);var qe=this.visualMapModel.textStyleModel,Et=new ZRText$1({cursor:Ue,draggable:!0,drift:$e,onmousemove:function(vn){stop(vn.event)},ondragend:xe,style:createTextStyle$1(qe,{x:0,y:0,text:""})});Et.ensureState("blur").style={opacity:.1},Et.stateTransition={duration:200},this.group.add(Et);var Lt=[Ie,0],hn=this._shapes;hn.handleThumbs[ue]=ze,hn.handleLabelPoints[ue]=Lt,hn.handleLabels[ue]=Et},z.prototype._createIndicator=function(ie,le,ue,pe,_e){var Ce=parsePercent$1(ie.get("indicatorSize"),ue[0]),$e=createSymbol(ie.get("indicatorIcon"),-Ce/2,-Ce/2,Ce,Ce,null,!0);$e.attr({cursor:"move",invisible:!0,silent:!0,x:ue[0]/2});var xe=ie.getModel("indicatorStyle").getItemStyle();if($e instanceof ZRImage$1){var Ie=$e.style;$e.useStyle(extend({image:Ie.image,x:Ie.x,y:Ie.y,width:Ie.width,height:Ie.height},xe))}else $e.useStyle(xe);le.add($e);var ze=this.visualMapModel.textStyleModel,Ue=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(ze,{x:0,y:0,text:""})});this.group.add(Ue);var qe=[(_e==="horizontal"?pe/2:HOVER_LINK_OUT)+ue[0]/2,0],Et=this._shapes;Et.indicator=$e,Et.indicatorLabel=Ue,Et.indicatorLabelPoint=qe,this._firstShowIndicator=!0},z.prototype._dragHandle=function(ie,le,ue,pe){if(this._useHandle){if(this._dragging=!le,!le){var _e=this._applyTransform([ue,pe],this._shapes.mainGroup,!0);this._updateInterval(ie,_e[1]),this._hideIndicator(),this._updateView()}le===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),le?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[ie],!1)}},z.prototype._resetInterval=function(){var ie=this.visualMapModel,le=this._dataInterval=ie.getSelected(),ue=ie.getExtent(),pe=[0,ie.itemSize[1]];this._handleEnds=[linearMap(le[0],ue,pe,!0),linearMap(le[1],ue,pe,!0)]},z.prototype._updateInterval=function(ie,le){le=le||0;var ue=this.visualMapModel,pe=this._handleEnds,_e=[0,ue.itemSize[1]];sliderMove(le,pe,_e,ie,0);var Ce=ue.getExtent();this._dataInterval=[linearMap(pe[0],_e,Ce,!0),linearMap(pe[1],_e,Ce,!0)]},z.prototype._updateView=function(ie){var le=this.visualMapModel,ue=le.getExtent(),pe=this._shapes,_e=[0,le.itemSize[1]],Ce=ie?_e:this._handleEnds,$e=this._createBarVisual(this._dataInterval,ue,Ce,"inRange"),xe=this._createBarVisual(ue,ue,_e,"outOfRange");pe.inRange.setStyle({fill:$e.barColor}).setShape("points",$e.barPoints),pe.outOfRange.setStyle({fill:xe.barColor}).setShape("points",xe.barPoints),this._updateHandle(Ce,$e)},z.prototype._createBarVisual=function(ie,le,ue,pe){var _e={forceState:pe,convertOpacityToAlpha:!0},Ce=this._makeColorGradient(ie,_e),$e=[this.getControllerVisual(ie[0],"symbolSize",_e),this.getControllerVisual(ie[1],"symbolSize",_e)],xe=this._createBarPoints(ue,$e);return{barColor:new LinearGradient$1(0,0,0,1,Ce),barPoints:xe,handlesColor:[Ce[0].color,Ce[Ce.length-1].color]}},z.prototype._makeColorGradient=function(ie,le){var ue=100,pe=[],_e=(ie[1]-ie[0])/ue;pe.push({color:this.getControllerVisual(ie[0],"color",le),offset:0});for(var Ce=1;Ce<ue;Ce++){var $e=ie[0]+_e*Ce;if($e>ie[1])break;pe.push({color:this.getControllerVisual($e,"color",le),offset:Ce/ue})}return pe.push({color:this.getControllerVisual(ie[1],"color",le),offset:1}),pe},z.prototype._createBarPoints=function(ie,le){var ue=this.visualMapModel.itemSize;return[[ue[0]-le[0],ie[0]],[ue[0],ie[0]],[ue[0],ie[1]],[ue[0]-le[1],ie[1]]]},z.prototype._createBarGroup=function(ie){var le=this._orient,ue=this.visualMapModel.get("inverse");return new Group$3(le==="horizontal"&&!ue?{scaleX:ie==="bottom"?1:-1,rotation:Math.PI/2}:le==="horizontal"&&ue?{scaleX:ie==="bottom"?-1:1,rotation:-Math.PI/2}:le==="vertical"&&!ue?{scaleX:ie==="left"?1:-1,scaleY:-1}:{scaleX:ie==="left"?1:-1})},z.prototype._updateHandle=function(ie,le){if(this._useHandle){var ue=this._shapes,pe=this.visualMapModel,_e=ue.handleThumbs,Ce=ue.handleLabels,$e=pe.itemSize,xe=pe.getExtent();each$1([0,1],function(Ie){var ze=_e[Ie];ze.setStyle("fill",le.handlesColor[Ie]),ze.y=ie[Ie];var Ue=linearMap(ie[Ie],[0,$e[1]],xe,!0),qe=this.getControllerVisual(Ue,"symbolSize");ze.scaleX=ze.scaleY=qe/$e[0],ze.x=$e[0]-qe/2;var Et=applyTransform(ue.handleLabelPoints[Ie],getTransform$1(ze,this.group));Ce[Ie].setStyle({x:Et[0],y:Et[1],text:pe.formatValueText(this._dataInterval[Ie]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",ue.mainGroup):"center"})},this)}},z.prototype._showIndicator=function(ie,le,ue,pe){var _e=this.visualMapModel,Ce=_e.getExtent(),$e=_e.itemSize,xe=[0,$e[1]],Ie=this._shapes,ze=Ie.indicator;if(ze){ze.attr("invisible",!1);var Ue={convertOpacityToAlpha:!0},qe=this.getControllerVisual(ie,"color",Ue),Et=this.getControllerVisual(ie,"symbolSize"),Lt=linearMap(ie,Ce,xe,!0),hn=$e[0]-Et/2,vn={x:ze.x,y:ze.y};ze.y=Lt,ze.x=hn;var _n=applyTransform(Ie.indicatorLabelPoint,getTransform$1(ze,this.group)),bn=Ie.indicatorLabel;bn.attr("invisible",!1);var Sn=this._applyTransform("left",Ie.mainGroup),Cn=this._orient,En=Cn==="horizontal";bn.setStyle({text:(ue||"")+_e.formatValueText(le),verticalAlign:En?Sn:"middle",align:En?"center":Sn});var $n={x:hn,y:Lt,style:{fill:qe}},wn={style:{x:_n[0],y:_n[1]}};if(_e.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Tn={duration:100,easing:"cubicInOut",additive:!0};ze.x=vn.x,ze.y=vn.y,ze.animateTo($n,Tn),bn.animateTo(wn,Tn)}else ze.attr($n),bn.attr(wn);this._firstShowIndicator=!1;var xn=this._shapes.handleLabels;if(xn)for(var Pn=0;Pn<xn.length;Pn++)this._api.enterBlur(xn[Pn])}},z.prototype._enableHoverLinkToSeries=function(){var ie=this;this._shapes.mainGroup.on("mousemove",function(le){if(ie._hovering=!0,!ie._dragging){var ue=ie.visualMapModel.itemSize,pe=ie._applyTransform([le.offsetX,le.offsetY],ie._shapes.mainGroup,!0,!0);pe[1]=mathMin(mathMax(0,pe[1]),ue[1]),ie._doHoverLinkToSeries(pe[1],0<=pe[0]&&pe[0]<=ue[0])}}).on("mouseout",function(){ie._hovering=!1,!ie._dragging&&ie._clearHoverLinkToSeries()})},z.prototype._enableHoverLinkFromSeries=function(){var ie=this.api.getZr();this.visualMapModel.option.hoverLink?(ie.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),ie.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},z.prototype._doHoverLinkToSeries=function(ie,le){var ue=this.visualMapModel,pe=ue.itemSize;if(ue.option.hoverLink){var _e=[0,pe[1]],Ce=ue.getExtent();ie=mathMin(mathMax(_e[0],ie),_e[1]);var $e=getHalfHoverLinkSize(ue,Ce,_e),xe=[ie-$e,ie+$e],Ie=linearMap(ie,_e,Ce,!0),ze=[linearMap(xe[0],_e,Ce,!0),linearMap(xe[1],_e,Ce,!0)];xe[0]<_e[0]&&(ze[0]=-1/0),xe[1]>_e[1]&&(ze[1]=1/0),le&&(ze[0]===-1/0?this._showIndicator(Ie,ze[1],"< ",$e):ze[1]===1/0?this._showIndicator(Ie,ze[0],"> ",$e):this._showIndicator(Ie,Ie,"≈ ",$e));var Ue=this._hoverLinkDataIndices,qe=[];(le||useHoverLinkOnHandle(ue))&&(qe=this._hoverLinkDataIndices=ue.findTargetDataIndices(ze));var Et=compressBatches(Ue,qe);this._dispatchHighDown("downplay",makeHighDownBatch(Et[0],ue)),this._dispatchHighDown("highlight",makeHighDownBatch(Et[1],ue))}},z.prototype._hoverLinkFromSeriesMouseOver=function(ie){var le;if(findEventDispatcher(ie.target,function($e){var xe=getECData($e);if(xe.dataIndex!=null)return le=xe,!0},!0),!!le){var ue=this.ecModel.getSeriesByIndex(le.seriesIndex),pe=this.visualMapModel;if(pe.isTargetSeries(ue)){var _e=ue.getData(le.dataType),Ce=_e.getStore().get(pe.getDataDimensionIndex(_e),le.dataIndex);isNaN(Ce)||this._showIndicator(Ce,Ce)}}},z.prototype._hideIndicator=function(){var ie=this._shapes;ie.indicator&&ie.indicator.attr("invisible",!0),ie.indicatorLabel&&ie.indicatorLabel.attr("invisible",!0);var le=this._shapes.handleLabels;if(le)for(var ue=0;ue<le.length;ue++)this._api.leaveBlur(le[ue])},z.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var ie=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(ie,this.visualMapModel)),ie.length=0},z.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var ie=this.api.getZr();ie.off("mouseover",this._hoverLinkFromSeriesMouseOver),ie.off("mouseout",this._hideIndicator)},z.prototype._applyTransform=function(ie,le,ue,pe){var _e=getTransform$1(le,pe?null:this.group);return isArray$1(ie)?applyTransform(ie,_e,ue):transformDirection(ie,_e,ue)},z.prototype._dispatchHighDown=function(ie,le){le&&le.length&&this.api.dispatchAction({type:ie,batch:le})},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,ie,le){return new Polygon$1({shape:{points:$},draggable:!!ie,cursor:z,drift:ie,onmousemove:function(ue){stop(ue.event)},ondragend:le})}function getHalfHoverLinkSize($,z,ie){var le=HOVER_LINK_SIZE/2,ue=$.get("hoverLinkDataSize");return ue&&(le=linearMap(ue,z,ie,!0)/2),le}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(ie){ie.setSelected($.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function($,z){var ie=[];return z.eachComponent("visualMap",function(le){var ue=$.pipelineContext;!le.isTargetSeries($)||ue&&ue.large||ie.push(incrementalApplyVisual(le.stateList,le.targetVisuals,bind$1(le.getValueState,le),le.getDataDimensionIndex($.getData())))}),ie}},{createOnAllSeries:!0,reset:function($,z){var ie=$.getData(),le=[];z.eachComponent("visualMap",function(ue){if(ue.isTargetSeries($)){var pe=ue.getVisualMeta(bind$1(getColorVisual,null,$,ue))||{stops:[],outerColors:[]},_e=ue.getDataDimensionIndex(ie);_e>=0&&(pe.dimension=_e,le.push(pe))}}),$.getData().setVisual("visualMeta",le)}}];function getColorVisual($,z,ie,le){for(var ue=z.targetVisuals[le],pe=VisualMapping$1.prepareVisualTypes(ue),_e={color:getVisualFromData($.getData(),"color")},Ce=0,$e=pe.length;Ce<$e;Ce++){var xe=pe[Ce],Ie=ue[xe==="opacity"?"__alphaForOpacity":xe];Ie&&Ie.applyVisual(ie,ze,Ue)}return _e.color;function ze(qe){return _e[qe]}function Ue(qe,Et){_e[qe]=Et}}var each=each$c;function visualMapPreprocessor($){var z=$&&$.visualMap;isArray$1(z)||(z=z?[z]:[]),each(z,function(ie){if(ie){has(ie,"splitList")&&!has(ie,"pieces")&&(ie.pieces=ie.splitList,delete ie.splitList);var le=ie.pieces;le&&isArray$1(le)&&each(le,function(ue){isObject$3(ue)&&(has(ue,"start")&&!has(ue,"min")&&(ue.min=ue.start),has(ue,"end")&&!has(ue,"max")&&(ue.max=ue.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 ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie._pieceList=[],ie}return z.prototype.optionUpdated=function(ie,le){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var ue=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(ie,le);var pe=this.option.categories;this.resetVisual(function(_e,Ce){ue==="categories"?(_e.mappingMethod="category",_e.categories=clone$3(pe)):(_e.dataExtent=this.getExtent(),_e.mappingMethod="piecewise",_e.pieceList=map$2(this._pieceList,function($e){return $e=clone$3($e),Ce!=="inRange"&&($e.visual=null),$e}))})},z.prototype.completeVisualOption=function(){var ie=this.option,le={},ue=VisualMapping$1.listVisualTypes(),pe=this.isCategory();each$c(ie.pieces,function(Ce){each$c(ue,function($e){Ce.hasOwnProperty($e)&&(le[$e]=1)})}),each$c(le,function(Ce,$e){var xe=!1;each$c(this.stateList,function(Ie){xe=xe||_e(ie,Ie,$e)||_e(ie.target,Ie,$e)},this),!xe&&each$c(this.stateList,function(Ie){(ie[Ie]||(ie[Ie]={}))[$e]=visualDefault$1.get($e,Ie==="inRange"?"active":"inactive",pe)})},this);function _e(Ce,$e,xe){return Ce&&Ce[$e]&&Ce[$e].hasOwnProperty(xe)}$.prototype.completeVisualOption.apply(this,arguments)},z.prototype._resetSelected=function(ie,le){var ue=this.option,pe=this._pieceList,_e=(le?ue:ie).selected||{};if(ue.selected=_e,each$c(pe,function($e,xe){var Ie=this.getSelectedMapKey($e);_e.hasOwnProperty(Ie)||(_e[Ie]=!0)},this),ue.selectedMode==="single"){var Ce=!1;each$c(pe,function($e,xe){var Ie=this.getSelectedMapKey($e);_e[Ie]&&(Ce?_e[Ie]=!1:Ce=!0)},this)}},z.prototype.getItemSymbol=function(){return this.get("itemSymbol")},z.prototype.getSelectedMapKey=function(ie){return this._mode==="categories"?ie.value+"":ie.index+""},z.prototype.getPieceList=function(){return this._pieceList},z.prototype._determineMode=function(){var ie=this.option;return ie.pieces&&ie.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},z.prototype.setSelected=function(ie){this.option.selected=clone$3(ie)},z.prototype.getValueState=function(ie){var le=VisualMapping$1.findPieceIndex(ie,this._pieceList);return le!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[le])]?"inRange":"outOfRange"},z.prototype.findTargetDataIndices=function(ie){var le=[],ue=this._pieceList;return this.eachTargetSeries(function(pe){var _e=[],Ce=pe.getData();Ce.each(this.getDataDimensionIndex(Ce),function($e,xe){var Ie=VisualMapping$1.findPieceIndex($e,ue);Ie===ie&&_e.push(xe)},this),le.push({seriesId:pe.id,dataIndex:_e})},this),le},z.prototype.getRepresentValue=function(ie){var le;if(this.isCategory())le=ie.value;else if(ie.value!=null)le=ie.value;else{var ue=ie.interval||[];le=ue[0]===-1/0&&ue[1]===1/0?0:(ue[0]+ue[1])/2}return le},z.prototype.getVisualMeta=function(ie){if(this.isCategory())return;var le=[],ue=["",""],pe=this;function _e(Ie,ze){var Ue=pe.getRepresentValue({interval:Ie});ze||(ze=pe.getValueState(Ue));var qe=ie(Ue,ze);Ie[0]===-1/0?ue[0]=qe:Ie[1]===1/0?ue[1]=qe:le.push({value:Ie[0],color:qe},{value:Ie[1],color:qe})}var Ce=this._pieceList.slice();if(!Ce.length)Ce.push({interval:[-1/0,1/0]});else{var $e=Ce[0].interval[0];$e!==-1/0&&Ce.unshift({interval:[-1/0,$e]}),$e=Ce[Ce.length-1].interval[1],$e!==1/0&&Ce.push({interval:[$e,1/0]})}var xe=-1/0;return each$c(Ce,function(Ie){var ze=Ie.interval;ze&&(ze[0]>xe&&_e([xe,ze[0]],"outOfRange"),_e(ze.slice()),xe=ze[1])},this),{stops:le,outerColors:ue}},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,ie=Math.min(z.precision,20),le=this.getExtent(),ue=z.splitNumber;ue=Math.max(parseInt(ue,10),1),z.splitNumber=ue;for(var pe=(le[1]-le[0])/ue;+pe.toFixed(ie)!==pe&&ie<5;)ie++;z.precision=ie,pe=+pe.toFixed(ie),z.minOpen&&$.push({interval:[-1/0,le[0]],close:[0,0]});for(var _e=0,Ce=le[0];_e<ue;Ce+=pe,_e++){var $e=_e===ue-1?le[1]:Ce+pe;$.push({interval:[Ce,$e],close:[1,1]})}z.maxOpen&&$.push({interval:[le[1],1/0],close:[0,0]}),reformIntervals($),each$c($,function(xe,Ie){xe.index=Ie,xe.text=this.formatValueText(xe.interval)},this)},categories:function($){var z=this.option;each$c(z.categories,function(ie){$.push({text:this.formatValueText(ie,!0),value:ie})},this),normalizeReverse(z,$)},pieces:function($){var z=this.option;each$c(z.pieces,function(ie,le){isObject$3(ie)||(ie={value:ie});var ue={text:"",index:le};if(ie.label!=null&&(ue.text=ie.label),ie.hasOwnProperty("value")){var pe=ue.value=ie.value;ue.interval=[pe,pe],ue.close=[1,1]}else{for(var _e=ue.interval=[],Ce=ue.close=[0,0],$e=[1,0,1],xe=[-1/0,1/0],Ie=[],ze=0;ze<2;ze++){for(var Ue=[["gte","gt","min"],["lte","lt","max"]][ze],qe=0;qe<3&&_e[ze]==null;qe++)_e[ze]=ie[Ue[qe]],Ce[ze]=$e[qe],Ie[ze]=qe===2;_e[ze]==null&&(_e[ze]=xe[ze])}Ie[0]&&_e[1]===1/0&&(Ce[0]=0),Ie[1]&&_e[0]===-1/0&&(Ce[1]=0),_e[0]===_e[1]&&Ce[0]&&Ce[1]&&(ue.value=_e[0])}ue.visual=VisualMapping$1.retrieveVisuals(ie),$.push(ue)},this),normalizeReverse(z,$),reformIntervals($),each$c($,function(ie){var le=ie.close,ue=[["<","≤"][le[1]],[">","≥"][le[0]]];ie.text=ie.text||this.formatValueText(ie.value!=null?ie.value:ie.interval,!1,ue)},this)}};function normalizeReverse($,z){var ie=$.inverse;($.orient==="vertical"?!ie:ie)&&z.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function($){__extends(z,$);function z(){var ie=$!==null&&$.apply(this,arguments)||this;return ie.type=z.type,ie}return z.prototype.doRender=function(){var ie=this.group;ie.removeAll();var le=this.visualMapModel,ue=le.get("textGap"),pe=le.textStyleModel,_e=pe.getFont(),Ce=pe.getTextColor(),$e=this._getItemAlign(),xe=le.itemSize,Ie=this._getViewData(),ze=Ie.endsText,Ue=retrieve(le.get("showLabel",!0),!ze);ze&&this._renderEndsText(ie,ze[0],xe,Ue,$e),each$c(Ie.viewPieceList,function(qe){var Et=qe.piece,Lt=new Group$3;Lt.onclick=bind$1(this._onItemClick,this,Et),this._enableHoverLink(Lt,qe.indexInModelPieceList);var hn=le.getRepresentValue(Et);if(this._createItemSymbol(Lt,hn,[0,0,xe[0],xe[1]]),Ue){var vn=this.visualMapModel.getValueState(hn);Lt.add(new ZRText$1({style:{x:$e==="right"?-ue:xe[0]+ue,y:xe[1]/2,text:Et.text,verticalAlign:"middle",align:$e,font:_e,fill:Ce,opacity:vn==="outOfRange"?.5:1}}))}ie.add(Lt)},this),ze&&this._renderEndsText(ie,ze[1],xe,Ue,$e),box(le.get("orient"),ie,le.get("itemGap")),this.renderBackground(ie),this.positionGroup(ie)},z.prototype._enableHoverLink=function(ie,le){var ue=this;ie.on("mouseover",function(){return pe("highlight")}).on("mouseout",function(){return pe("downplay")});var pe=function(_e){var Ce=ue.visualMapModel;Ce.option.hoverLink&&ue.api.dispatchAction({type:_e,batch:makeHighDownBatch(Ce.findTargetDataIndices(le),Ce)})}},z.prototype._getItemAlign=function(){var ie=this.visualMapModel,le=ie.option;if(le.orient==="vertical")return getItemAlign(ie,this.api,ie.itemSize);var ue=le.align;return(!ue||ue==="auto")&&(ue="left"),ue},z.prototype._renderEndsText=function(ie,le,ue,pe,_e){if(le){var Ce=new Group$3,$e=this.visualMapModel.textStyleModel;Ce.add(new ZRText$1({style:createTextStyle$1($e,{x:pe?_e==="right"?ue[0]:0:ue[0]/2,y:ue[1]/2,verticalAlign:"middle",align:pe?_e:"center",text:le})})),ie.add(Ce)}},z.prototype._getViewData=function(){var ie=this.visualMapModel,le=map$2(ie.getPieceList(),function(Ce,$e){return{piece:Ce,indexInModelPieceList:$e}}),ue=ie.get("text"),pe=ie.get("orient"),_e=ie.get("inverse");return(pe==="horizontal"?_e:!_e)?le.reverse():ue&&(ue=ue.slice().reverse()),{viewPieceList:le,endsText:ue}},z.prototype._createItemSymbol=function(ie,le,ue){ie.add(createSymbol(this.getControllerVisual(le,"symbol"),ue[0],ue[1],ue[2],ue[3],this.getControllerVisual(le,"color")))},z.prototype._onItemClick=function(ie){var le=this.visualMapModel,ue=le.option,pe=ue.selectedMode;if(pe){var _e=clone$3(ue.selected),Ce=le.getSelectedMapKey(ie);pe==="single"||pe===!0?(_e[Ce]=!0,each$c(_e,function($e,xe){_e[xe]=xe===Ce})):_e[Ce]=!_e[Ce],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:_e})}},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,ie)=>z in $?p($,z,{enumerable:!0,configurable:!0,writable:!0,value:ie}):$[z]=ie,P=($,z)=>{for(var ie in z)p($,ie,{get:z[ie],enumerable:!0})},y=($,z,ie,le)=>{if(z&&typeof z=="object"||typeof z=="function")for(let ue of u(z))!j$1.call($,ue)&&ue!==ie&&p($,ue,{get:()=>z[ue],enumerable:!(le=d(z,ue))||le.enumerable});return $},m$1=($,z,ie)=>(y($,z,"default"),ie&&y(ie,z,"default")),f=($,z,ie)=>(_$1($,typeof z!="symbol"?z+"":z,ie),ie),c={};P(c,{Vue:()=>vue_runtime_esmBundler});m$1(c,vue_runtime_esmBundler);var g=class{static install($,z){let{nameSpace:ie=this._nameSpace,memory:le}=z;return le&&this.clearAll(ie,le),new g($,z)}static clearAll($,z){Object.keys(z).forEach(ie=>{let le=$+ie;Object.prototype.hasOwnProperty.call(window.localStorage,le)&&window.localStorage.removeItem(le)})}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 ie=g,{version:le=3,nameSpace:ue=ie._nameSpace,memory:pe}=z,_e=xe=>ue+xe,Ce=le===3?(0,c.reactive)(pe):pe;Object.keys(Ce).length===0&&console.warn("key cannot be empty"),Object.keys(Ce).forEach(xe=>{let Ie=Ce[xe];ie.set(_e(xe),Ie),Reflect.defineProperty(Ce,xe,{get:()=>ie.get(_e(xe)),set:ze=>ie.set(_e(xe),ze),configurable:!0}),le===2&&$.util.defineReactive(Ce,xe,Ce[xe])});let $e=le===3?$.config.globalProperties:$.prototype;Reflect.defineProperty($e,"$storage",{get:()=>Ce})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",($,z)=>`${$??g._nameSpace}${z}`);const injectResponsiveStorage=($,z)=>{const ie=responsiveStorageNameSpace(),le=Object.assign({locale:n.getData("locale",ie)??{locale:z.Locale??"zh"},layout:n.getData("layout",ie)??{layout:z.Layout??"vertical",theme:z.Theme??"default",darkMode:z.DarkMode??!1,sidebarStatus:z.SidebarStatus??!0,epThemeColor:z.EpThemeColor??"#409EFF"},configure:n.getData("configure",ie)??{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",ie)??routerArrays}:{});$.use(n,{nameSpace:ie,memory:le})},de=Object.prototype.hasOwnProperty,_=($,z)=>de.call($,z),H=$=>$!==null&&typeof $=="object",ce=(($,z)=>{if(!H($)||H(ie=$)&&ie.__epPropKey)return $;var ie;const{values:le,required:ue,default:pe,type:_e,validator:Ce}=$,$e=le||Ce?Ie=>{let ze=!1,Ue=[];if(le&&(Ue=Array.from(le),_($,"default")&&Ue.push(pe),ze||(ze=Ue.includes(Ie))),Ce&&(ze||(ze=Ce(Ie))),!ze&&Ue.length>0){const qe=[...new Set(Ue)].map(Et=>JSON.stringify(Et)).join(", ");warn$2(`Invalid prop: validation failed${z?` for prop "${z}"`:""}. Expected one of [${qe}], got value ${JSON.stringify(Ie)}.`)}return ze}:void 0,xe={type:_e,required:!!ue,validator:$e,__epPropKey:!0};return _($,"default")&&(xe.default=pe),xe})({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,ie,le)=>{if(z&&typeof z=="object"||typeof z=="function")for(let ue of me(z))!be.call($,ue)&&ue!==ie&&L$1($,ue,{get:()=>z[ue],enumerable:!(le=ye(z,ue))||le.enumerable});return $},he=Object.prototype.toString;function V($){return typeof $=="function"}function Oe($){return function(z,ie){return he.call(z)===`[object ${ie}]`}($,"Boolean")}var h={};(($,z)=>{for(var ie in z)L$1($,ie,{get:z[ie],enumerable:!0})})(h,{Vue:()=>vue_runtime_esmBundler}),M(h,vue_runtime_esmBundler,"default");var ve=()=>{let $,z=(0,h.ref)(!1),ie=()=>{z.value=document.documentElement.classList.contains("dark")};return function(le){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(le)}(()=>{$.takeRecords(),$.disconnect()}),(0,h.onBeforeMount)(()=>{ie(),$=new MutationObserver(ie),$.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:ie,emit:le,expose:ue}){const{isDark:pe}=ve(),_e=getCurrentInstance();function Ce(){var En;return(En=_e==null?void 0:_e.proxy)==null?void 0:En.$refs[`TableRef${$.key}`]}function $e(){return Ce().$refs}onMounted(()=>{nextTick(()=>{$.rowHoverBgColor&&$e().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",$.rowHoverBgColor,"important")})});const{columns:xe,loading:Ie,loadingConfig:ze,alignWhole:Ue,headerAlign:qe,showOverflowTooltip:Et,pagination:Lt}=toRefs($);let hn=computed(()=>{if(!unref(ze))return;let{text:En,spinner:$n,svg:wn,viewBox:Tn}=unref(ze);return{"element-loading-text":En,"element-loading-spinner":$n,"element-loading-svg":wn,"element-loading-svg-view-box":Tn}});const vn=computed(()=>{var En,$n;if(unref(Ie))return{"element-loading-background":(($n=(En=unref(ze))==null?void 0:En.background)!=null?$n:pe.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),_n=computed(()=>{var En;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:unref(Lt).align==="left"?"flex-start":unref(Lt).align==="center"?"center":"flex-end"},(En=unref(Lt).style)!=null?En:{})});let bn=unref(Lt)&&unref(Lt).currentPage&&unref(Lt).pageSize;const Sn=(En,$n)=>{const{cellRenderer:wn,slot:Tn,headerRenderer:xn,headerSlot:Pn,hide:kn,children:An,prop:Nn,...Fn}=En;if(V(kn)&&kn(ie))return kn(ie);if(Oe(kn)&&kn)return kn;const Ln={default:Mn=>{var zn;return wn?createVNode(K,{render:wn,params:Object.assign(Mn,{index:Mn.$index,props:$,attrs:ie})},null):Tn?(zn=z==null?void 0:z[Tn])==null?void 0:zn.call(z,Object.assign(Mn,{index:Mn.$index,props:$,attrs:ie})):void 0}};let In=xn?{header:Mn=>createVNode(K,{render:xn,params:Object.assign(Mn,{index:Mn.$index,props:$,attrs:ie})},null),...Ln}:z!=null&&z[Pn]?{header:Mn=>{var zn;return(zn=z==null?void 0:z[Pn])==null?void 0:zn.call(z,Object.assign(Mn,{index:Mn.$index,props:$,attrs:ie}))},...Ln}:Ln;return(An==null?void 0:An.length)>0&&(In=An.map(Sn)),createVNode(ElTableColumn,mergeProps({key:$n},Fn,{prop:V(Nn)&&Nn($n)?Nn($n):Nn,align:En!=null&&En.align?En.align:unref(Ue),headerAlign:En!=null&&En.headerAlign?En.headerAlign:unref(qe),showOverflowTooltip:En!=null&&En.showOverflowTooltip?En.showOverflowTooltip:unref(Et)}),typeof(Vn=In)=="function"||Object.prototype.toString.call(Vn)==="[object Object]"&&!isVNode$1(Vn)?In:{default:()=>[In]});var Vn};ue({getTableRef:Ce,getTableDoms:$e});let Cn=()=>{var En,$n;return createVNode(Fragment,null,[createVNode(ElTable,mergeProps($,ie,{ref:`TableRef${$.key}`}),{default:()=>unref(xe).map(Sn),append:()=>z.append&&z.append(),empty:()=>z.empty&&z.empty()}),bn?createVNode(ElPagination,mergeProps(ie,{class:"pure-pagination",style:unref(_n)},unref(Lt),{small:$!=null&&$.paginationSmall?$==null?void 0:$.paginationSmall:!!unref(Lt).small&&unref(Lt).small,layout:(En=unref(Lt).layout)!=null?En:"total, sizes, prev, pager, next, jumper",pageSizes:($n=unref(Lt).pageSizes)!=null?$n:[5,10,15,20],onSizeChange:wn=>(Tn=>{unref(Lt).pageSize=Tn,le("page-size-change",Tn)})(wn),onCurrentChange:wn=>(Tn=>{unref(Lt).currentPage=Tn,le("page-current-change",Tn)})(wn)}),null):null])};return()=>withDirectives(createVNode("div",mergeProps({class:"pure-table",style:"width:100%"},unref(vn),unref(hn)),[Cn()]),[[resolveDirective("loading"),unref(Ie)]])}}),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:ie}){const{data:le,columns:ue,align:pe,labelAlign:_e,loading:Ce}=toRefs($),$e={title:()=>(z==null?void 0:z.title)&&z.title({props:$,attrs:ie})},xe={extra:()=>(z==null?void 0:z.extra)&&z.extra({props:$,attrs:ie})},Ie=z!=null&&z.title&&!(z!=null&&z.extra)?$e:z!=null&&z.extra&&!(z!=null&&z.title)?xe:z!=null&&z.title&&(z!=null&&z.extra)?Object.assign($e,xe):null;return()=>{var ze;return withDirectives(createVNode(ElDescriptions,mergeProps($,ie,{"element-loading-text":(ze=unref(Ce).text)!=null?ze:"Loading...","element-loading-svg":unref(Ce).svg,"element-loading-spinner":unref(Ce).spinner,"element-loading-svg-view-box":unref(Ce).svgViewBox,"element-loading-background":unref(Ce).background}),{default:()=>[unref(ue).map((Ue,qe)=>{let Et=unref(le).map(bn=>bn[Ue==null?void 0:Ue.prop]);const Lt={default:()=>{var bn;return Ue!=null&&Ue.cellRenderer?createVNode(j,{render:Ue.cellRenderer,params:{props:$,attrs:ie,index:qe,value:Et[0]}},null):Ue!=null&&Ue.slot?(bn=z==null?void 0:z[Ue.slot])==null?void 0:bn.call(z,{props:$,attrs:ie,index:qe,value:Et[0]}):createVNode(Fragment,null,Ue!=null&&Ue.value?[unref(Ue.value)]:[Et])}},hn=Ue!=null&&Ue.labelRenderer?{label:()=>createVNode(j,{render:Ue.labelRenderer,params:{props:$,attrs:ie,index:qe,value:Et[0]}},null),...Lt}:Lt;return vn=Ue==null?void 0:Ue.hide,typeof vn=="function"&&(Ue!=null&&Ue.hide(ie))?Ue==null?void 0:Ue.hide(ie):createVNode(ElDescriptionsItem,mergeProps(Ue,{key:qe,align:Ue.align?Ue.align:unref(pe),labelAlign:Ue.labelAlign?Ue.labelAlign:unref(_e)}),typeof(_n=hn)=="function"||Object.prototype.toString.call(_n)==="[object Object]"&&!isVNode$1(_n)?hn:{default:()=>[hn]});var vn,_n})],...Ie}),[[resolveDirective("loading"),unref(Ce).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 ie=(ie=document.getElementsByTagName("script"))[ie.length-1],z=ie.getAttribute("data-injectcss"),ie=ie.getAttribute("data-disable-injectsvg");if(!ie){var le,ue,pe,_e,Ce,$e=function(ze,Ue){Ue.parentNode.insertBefore(ze,Ue)};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(ze){console&&console.log(ze)}}le=function(){var ze,Ue=document.createElement("div");Ue.innerHTML=$._iconfont_svg_string_2208059,(Ue=Ue.getElementsByTagName("svg")[0])&&(Ue.setAttribute("aria-hidden","true"),Ue.style.position="absolute",Ue.style.width=0,Ue.style.height=0,Ue.style.overflow="hidden",Ue=Ue,(ze=document.body).firstChild?$e(Ue,ze.firstChild):ze.appendChild(Ue))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(le,0):(ue=function(){document.removeEventListener("DOMContentLoaded",ue,!1),le()},document.addEventListener("DOMContentLoaded",ue,!1)):document.attachEvent&&(pe=le,_e=$.document,Ce=!1,Ie(),_e.onreadystatechange=function(){_e.readyState=="complete"&&(_e.onreadystatechange=null,xe())})}function xe(){Ce||(Ce=!0,pe())}function Ie(){try{_e.documentElement.doScroll("left")}catch{return void setTimeout(Ie,50)}xe()}}(window);const iconfont="",auth$1={mounted($,z){var le;const{value:ie}=z;if(ie)!hasAuth(ie)&&((le=$.parentNode)==null||le.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 ie=0;ie<$.length;ie++){var le=z($[ie]);if(le)return le}};var collectionUtilsExports=collectionUtils.exports,elementUtils=function($){var z=$.stateHandler.getState;function ie(_e){var Ce=z(_e);return Ce&&!!Ce.isDetectable}function le(_e){z(_e).isDetectable=!0}function ue(_e){return!!z(_e).busy}function pe(_e,Ce){z(_e).busy=!!Ce}return{isDetectable:ie,markAsDetectable:le,isBusy:ue,markBusy:pe}},listenerHandler=function($){var z={};function ie(_e){var Ce=$.get(_e);return Ce===void 0?[]:z[Ce]||[]}function le(_e,Ce){var $e=$.get(_e);z[$e]||(z[$e]=[]),z[$e].push(Ce)}function ue(_e,Ce){for(var $e=ie(_e),xe=0,Ie=$e.length;xe<Ie;++xe)if($e[xe]===Ce){$e.splice(xe,1);break}}function pe(_e){var Ce=ie(_e);Ce&&(Ce.length=0)}return{get:ie,add:le,removeListener:ue,removeAllListeners:pe}},idGenerator=function(){var $=1;function z(){return $++}return{generate:z}},idHandler=function($){var z=$.idGenerator,ie=$.stateHandler.getState;function le(pe){var _e=ie(pe);return _e&&_e.id!==void 0?_e.id:null}function ue(pe){var _e=ie(pe);if(!_e)throw new Error("setId required the element to have a resize detection state.");var Ce=z.generate();return _e.id=Ce,Ce}return{get:le,set:ue}},reporter=function($){function z(){}var ie={log:z,warn:z,error:z};if(!$&&window.console){var le=function(ue,pe){ue[pe]=function(){var Ce=console[pe];if(Ce.apply)Ce.apply(console,arguments);else for(var $e=0;$e<arguments.length;$e++)Ce(arguments[$e])}};le(ie,"log"),le(ie,"warn"),le(ie,"error")}return ie},browserDetector$2={exports:{}},detector=browserDetector$2.exports={};detector.isIE=function($){function z(){var le=navigator.userAgent.toLowerCase();return le.indexOf("msie")!==-1||le.indexOf("trident")!==-1||le.indexOf(" edge/")!==-1}if(!z())return!1;if(!$)return!0;var ie=function(){var le,ue=3,pe=document.createElement("div"),_e=pe.getElementsByTagName("i");do pe.innerHTML="<!--[if gt IE "+ ++ue+"]><i></i><![endif]-->";while(_e[0]);return ue>4?ue:le}();return $===ie};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,ie){var le=$[z];return le==null&&ie!==void 0?ie:le}var utilsExports=utils$2.exports,utils=utilsExports,batchProcessor=function(z){z=z||{};var ie=z.reporter,le=utils.getOption(z,"async",!0),ue=utils.getOption(z,"auto",!0);ue&&!le&&(ie&&ie.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),le=!0);var pe=Batch(),_e,Ce=!1;function $e(Et,Lt){!Ce&&ue&&le&&pe.size()===0&&ze(),pe.add(Et,Lt)}function xe(){for(Ce=!0;pe.size();){var Et=pe;pe=Batch(),Et.process()}Ce=!1}function Ie(Et){Ce||(Et===void 0&&(Et=le),_e&&(Ue(_e),_e=null),Et?ze():xe())}function ze(){_e=qe(xe)}function Ue(Et){var Lt=clearTimeout;return Lt(Et)}function qe(Et){var Lt=function(hn){return setTimeout(hn,0)};return Lt(Et)}return{add:$e,force:Ie}};function Batch(){var $={},z=0,ie=0,le=0;function ue(Ce,$e){$e||($e=Ce,Ce=0),Ce>ie?ie=Ce:Ce<le&&(le=Ce),$[Ce]||($[Ce]=[]),$[Ce].push($e),z++}function pe(){for(var Ce=le;Ce<=ie;Ce++)for(var $e=$[Ce],xe=0;xe<$e.length;xe++){var Ie=$e[xe];Ie()}}function _e(){return z}return{add:ue,process:pe,size:_e}}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,ie=$.batchProcessor,le=$.stateHandler.getState;if(!z)throw new Error("Missing required dependency: reporter.");function ue(xe,Ie){function ze(){Ie(xe)}if(browserDetector$1.isIE(8))le(xe).object={proxy:ze},xe.attachEvent("onresize",ze);else{var Ue=Ce(xe);if(!Ue)throw new Error("Element is not detectable by this strategy.");Ue.contentDocument.defaultView.addEventListener("resize",ze)}}function pe(xe){var Ie=$.important?" !important; ":"; ";return(xe.join(Ie)+Ie).trim()}function _e(xe,Ie,ze){ze||(ze=Ie,Ie=xe,xe=null),xe=xe||{},xe.debug;function Ue(qe,Et){var Lt=pe(["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"]),hn=!1,vn=window.getComputedStyle(qe),_n=qe.offsetWidth,bn=qe.offsetHeight;le(qe).startSize={width:_n,height:bn};function Sn(){function Cn(){if(vn.position==="static"){qe.style.setProperty("position","relative",xe.important?"important":"");var wn=function(Tn,xn,Pn,kn){function An(Fn){return Fn.replace(/[^-\d\.]/g,"")}var Nn=Pn[kn];Nn!=="auto"&&An(Nn)!=="0"&&(Tn.warn("An element that is positioned static has style."+kn+"="+Nn+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+kn+" will be set to 0. Element: ",xn),xn.style.setProperty(kn,"0",xe.important?"important":""))};wn(z,qe,vn,"top"),wn(z,qe,vn,"right"),wn(z,qe,vn,"bottom"),wn(z,qe,vn,"left")}}function En(){hn||Cn();function wn(xn,Pn){if(!xn.contentDocument){var kn=le(xn);kn.checkForObjectDocumentTimeoutId&&window.clearTimeout(kn.checkForObjectDocumentTimeoutId),kn.checkForObjectDocumentTimeoutId=setTimeout(function(){kn.checkForObjectDocumentTimeoutId=0,wn(xn,Pn)},100);return}Pn(xn.contentDocument)}var Tn=this;wn(Tn,function(Pn){Et(qe)})}vn.position!==""&&(Cn(),hn=!0);var $n=document.createElement("object");$n.style.cssText=Lt,$n.tabIndex=-1,$n.type="text/html",$n.setAttribute("aria-hidden","true"),$n.onload=En,browserDetector$1.isIE()||($n.data="about:blank"),le(qe)&&(qe.appendChild($n),le(qe).object=$n,browserDetector$1.isIE()&&($n.data="about:blank"))}ie?ie.add(Sn):Sn()}browserDetector$1.isIE(8)?ze(Ie):Ue(Ie,ze)}function Ce(xe){return le(xe).object}function $e(xe){if(le(xe)){var Ie=Ce(xe);Ie&&(browserDetector$1.isIE(8)?xe.detachEvent("onresize",Ie.proxy):xe.removeChild(Ie),le(xe).checkForObjectDocumentTimeoutId&&window.clearTimeout(le(xe).checkForObjectDocumentTimeoutId),delete le(xe).object)}}return{makeDetectable:_e,addListener:ue,uninstall:$e}},forEach$1=collectionUtilsExports.forEach,scroll=function($){$=$||{};var z=$.reporter,ie=$.batchProcessor,le=$.stateHandler.getState;$.stateHandler.hasState;var ue=$.idHandler;if(!ie)throw new Error("Missing required dependency: batchProcessor");if(!z)throw new Error("Missing required dependency: reporter.");var pe=Ie(),_e="erd_scroll_detection_scrollbar_style",Ce="erd_scroll_detection_container";function $e(Sn){ze(Sn,_e,Ce)}$e(window.document);function xe(Sn){var Cn=$.important?" !important; ":"; ";return(Sn.join(Cn)+Cn).trim()}function Ie(){var Sn=500,Cn=500,En=document.createElement("div");En.style.cssText=xe(["position: absolute","width: "+Sn*2+"px","height: "+Cn*2+"px","visibility: hidden","margin: 0","padding: 0"]);var $n=document.createElement("div");$n.style.cssText=xe(["position: absolute","width: "+Sn+"px","height: "+Cn+"px","overflow: scroll","visibility: none","top: "+-Sn*3+"px","left: "+-Cn*3+"px","visibility: hidden","margin: 0","padding: 0"]),$n.appendChild(En),document.body.insertBefore($n,document.body.firstChild);var wn=Sn-$n.clientWidth,Tn=Cn-$n.clientHeight;return document.body.removeChild($n),{width:wn,height:Tn}}function ze(Sn,Cn,En){function $n(Pn,kn){kn=kn||function(Nn){Sn.head.appendChild(Nn)};var An=Sn.createElement("style");return An.innerHTML=Pn,An.id=Cn,kn(An),An}if(!Sn.getElementById(Cn)){var wn=En+"_animation",Tn=En+"_animation_active",xn=`/* Created by the element-resize-detector library. */
`;xn+="."+En+" > div::-webkit-scrollbar { "+xe(["display: none"])+` }
`,xn+="."+Tn+" { "+xe(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+wn,"animation-name: "+wn])+` }
`,xn+="@-webkit-keyframes "+wn+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,xn+="@keyframes "+wn+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",$n(xn)}}function Ue(Sn){Sn.className+=" "+Ce+"_animation_active"}function qe(Sn,Cn,En){if(Sn.addEventListener)Sn.addEventListener(Cn,En);else if(Sn.attachEvent)Sn.attachEvent("on"+Cn,En);else return z.error("[scroll] Don't know how to add event listeners.")}function Et(Sn,Cn,En){if(Sn.removeEventListener)Sn.removeEventListener(Cn,En);else if(Sn.detachEvent)Sn.detachEvent("on"+Cn,En);else return z.error("[scroll] Don't know how to remove event listeners.")}function Lt(Sn){return le(Sn).container.childNodes[0].childNodes[0].childNodes[0]}function hn(Sn){return le(Sn).container.childNodes[0].childNodes[0].childNodes[1]}function vn(Sn,Cn){var En=le(Sn).listeners;if(!En.push)throw new Error("Cannot add listener to an element that is not detectable.");le(Sn).listeners.push(Cn)}function _n(Sn,Cn,En){En||(En=Cn,Cn=Sn,Sn=null),Sn=Sn||{};function $n(){if(Sn.debug){var Wn=Array.prototype.slice.call(arguments);if(Wn.unshift(ue.get(Cn),"Scroll: "),z.log.apply)z.log.apply(null,Wn);else for(var nr=0;nr<Wn.length;nr++)z.log(Wn[nr])}}function wn(Wn){function nr(fr){var Gn=fr.getRootNode&&fr.getRootNode().contains(fr);return fr===fr.ownerDocument.body||fr.ownerDocument.body.contains(fr)||Gn}return!nr(Wn)||window.getComputedStyle(Wn)===null}function Tn(Wn){var nr=le(Wn).container.childNodes[0],fr=window.getComputedStyle(nr);return!fr.width||fr.width.indexOf("px")===-1}function xn(){var Wn=window.getComputedStyle(Cn),nr={};return nr.position=Wn.position,nr.width=Cn.offsetWidth,nr.height=Cn.offsetHeight,nr.top=Wn.top,nr.right=Wn.right,nr.bottom=Wn.bottom,nr.left=Wn.left,nr.widthCSS=Wn.width,nr.heightCSS=Wn.height,nr}function Pn(){var Wn=xn();le(Cn).startSize={width:Wn.width,height:Wn.height},$n("Element start size",le(Cn).startSize)}function kn(){le(Cn).listeners=[]}function An(){if($n("storeStyle invoked."),!le(Cn)){$n("Aborting because element has been uninstalled");return}var Wn=xn();le(Cn).style=Wn}function Nn(Wn,nr,fr){le(Wn).lastWidth=nr,le(Wn).lastHeight=fr}function Fn(Wn){return Lt(Wn).childNodes[0]}function Ln(){return 2*pe.width+1}function In(){return 2*pe.height+1}function Vn(Wn){return Wn+10+Ln()}function Mn(Wn){return Wn+10+In()}function zn(Wn){return Wn*2+Ln()}function qn(Wn){return Wn*2+In()}function Hn(Wn,nr,fr){var Gn=Lt(Wn),Xn=hn(Wn),or=Vn(nr),vr=Mn(fr),_r=zn(nr),ir=qn(fr);Gn.scrollLeft=or,Gn.scrollTop=vr,Xn.scrollLeft=_r,Xn.scrollTop=ir}function Jn(){var Wn=le(Cn).container;if(!Wn){Wn=document.createElement("div"),Wn.className=Ce,Wn.style.cssText=xe(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),le(Cn).container=Wn,Ue(Wn),Cn.appendChild(Wn);var nr=function(){le(Cn).onRendered&&le(Cn).onRendered()};qe(Wn,"animationstart",nr),le(Cn).onAnimationStart=nr}return Wn}function ur(){function Wn(){var Rr=le(Cn).style;if(Rr.position==="static"){Cn.style.setProperty("position","relative",Sn.important?"important":"");var Sr=function(Er,cr,Qn,ar){function $r(Hr){return Hr.replace(/[^-\d\.]/g,"")}var Ir=Qn[ar];Ir!=="auto"&&$r(Ir)!=="0"&&(Er.warn("An element that is positioned static has style."+ar+"="+Ir+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+ar+" will be set to 0. Element: ",cr),cr.style[ar]=0)};Sr(z,Cn,Rr,"top"),Sr(z,Cn,Rr,"right"),Sr(z,Cn,Rr,"bottom"),Sr(z,Cn,Rr,"left")}}function nr(Rr,Sr,Er,cr){return Rr=Rr?Rr+"px":"0",Sr=Sr?Sr+"px":"0",Er=Er?Er+"px":"0",cr=cr?cr+"px":"0",["left: "+Rr,"top: "+Sr,"right: "+cr,"bottom: "+Er]}if($n("Injecting elements"),!le(Cn)){$n("Aborting because element has been uninstalled");return}Wn();var fr=le(Cn).container;fr||(fr=Jn());var Gn=pe.width,Xn=pe.height,or=xe(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),vr=xe(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(nr(-(1+Gn),-(1+Xn),-Xn,-Gn))),_r=xe(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),ir=xe(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Pr=xe(["position: absolute","left: 0","top: 0"]),gr=xe(["position: absolute","width: 200%","height: 200%"]),kr=document.createElement("div"),pr=document.createElement("div"),lr=document.createElement("div"),dr=document.createElement("div"),hr=document.createElement("div"),Or=document.createElement("div");kr.dir="ltr",kr.style.cssText=or,kr.className=Ce,pr.className=Ce,pr.style.cssText=vr,lr.style.cssText=_r,dr.style.cssText=Pr,hr.style.cssText=ir,Or.style.cssText=gr,lr.appendChild(dr),hr.appendChild(Or),pr.appendChild(lr),pr.appendChild(hr),kr.appendChild(pr),fr.appendChild(kr);function Lr(){var Rr=le(Cn);Rr&&Rr.onExpand?Rr.onExpand():$n("Aborting expand scroll handler: element has been uninstalled")}function Br(){var Rr=le(Cn);Rr&&Rr.onShrink?Rr.onShrink():$n("Aborting shrink scroll handler: element has been uninstalled")}qe(lr,"scroll",Lr),qe(hr,"scroll",Br),le(Cn).onExpandScroll=Lr,le(Cn).onShrinkScroll=Br}function yr(){function Wn(_r,ir,Pr){var gr=Fn(_r),kr=Vn(ir),pr=Mn(Pr);gr.style.setProperty("width",kr+"px",Sn.important?"important":""),gr.style.setProperty("height",pr+"px",Sn.important?"important":"")}function nr(_r){var ir=Cn.offsetWidth,Pr=Cn.offsetHeight,gr=ir!==le(Cn).lastWidth||Pr!==le(Cn).lastHeight;$n("Storing current size",ir,Pr),Nn(Cn,ir,Pr),ie.add(0,function(){if(gr){if(!le(Cn)){$n("Aborting because element has been uninstalled");return}if(!fr()){$n("Aborting because element container has not been initialized");return}if(Sn.debug){var pr=Cn.offsetWidth,lr=Cn.offsetHeight;(pr!==ir||lr!==Pr)&&z.warn(ue.get(Cn),"Scroll: Size changed before updating detector elements.")}Wn(Cn,ir,Pr)}}),ie.add(1,function(){if(!le(Cn)){$n("Aborting because element has been uninstalled");return}if(!fr()){$n("Aborting because element container has not been initialized");return}Hn(Cn,ir,Pr)}),gr&&_r&&ie.add(2,function(){if(!le(Cn)){$n("Aborting because element has been uninstalled");return}if(!fr()){$n("Aborting because element container has not been initialized");return}_r()})}function fr(){return!!le(Cn).container}function Gn(){function _r(){return le(Cn).lastNotifiedWidth===void 0}$n("notifyListenersIfNeeded invoked");var ir=le(Cn);if(_r()&&ir.lastWidth===ir.startSize.width&&ir.lastHeight===ir.startSize.height)return $n("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(ir.lastWidth===ir.lastNotifiedWidth&&ir.lastHeight===ir.lastNotifiedHeight)return $n("Not notifying: Size already notified");$n("Current size not notified, notifying..."),ir.lastNotifiedWidth=ir.lastWidth,ir.lastNotifiedHeight=ir.lastHeight,forEach$1(le(Cn).listeners,function(Pr){Pr(Cn)})}function Xn(){if($n("startanimation triggered."),Tn(Cn)){$n("Ignoring since element is still unrendered...");return}$n("Element rendered.");var _r=Lt(Cn),ir=hn(Cn);(_r.scrollLeft===0||_r.scrollTop===0||ir.scrollLeft===0||ir.scrollTop===0)&&($n("Scrollbars out of sync. Updating detector elements..."),nr(Gn))}function or(){if($n("Scroll detected."),Tn(Cn)){$n("Scroll event fired while unrendered. Ignoring...");return}nr(Gn)}if($n("registerListenersAndPositionElements invoked."),!le(Cn)){$n("Aborting because element has been uninstalled");return}le(Cn).onRendered=Xn,le(Cn).onExpand=or,le(Cn).onShrink=or;var vr=le(Cn).style;Wn(Cn,vr.width,vr.height)}function sr(){if($n("finalizeDomMutation invoked."),!le(Cn)){$n("Aborting because element has been uninstalled");return}var Wn=le(Cn).style;Nn(Cn,Wn.width,Wn.height),Hn(Cn,Wn.width,Wn.height)}function Zn(){En(Cn)}function Kn(){$n("Installing..."),kn(),Pn(),ie.add(0,An),ie.add(1,ur),ie.add(2,yr),ie.add(3,sr),ie.add(4,Zn)}$n("Making detectable..."),wn(Cn)?($n("Element is detached"),Jn(),$n("Waiting until element is attached..."),le(Cn).onRendered=function(){$n("Element is now attached"),Kn()}):Kn()}function bn(Sn){var Cn=le(Sn);Cn&&(Cn.onExpandScroll&&Et(Lt(Sn),"scroll",Cn.onExpandScroll),Cn.onShrinkScroll&&Et(hn(Sn),"scroll",Cn.onShrinkScroll),Cn.onAnimationStart&&Et(Cn.container,"animationstart",Cn.onAnimationStart),Cn.container&&Sn.removeChild(Cn.container))}return{makeDetectable:_n,addListener:vn,uninstall:bn,initDocument:$e}},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(ie){z.push(ie)}),z}function isElement($){return $&&$.nodeType===1}var elementResizeDetector=function($){$=$||{};var z;if($.idHandler)z={get:function(_n){return $.idHandler.get(_n,!0)},set:$.idHandler.set};else{var ie=idGeneratorMaker(),le=idHandlerMaker({idGenerator:ie,stateHandler});z=le}var ue=$.reporter;if(!ue){var pe=ue===!1;ue=reporterMaker(pe)}var _e=getOption($,"batchProcessor",batchProcessorMaker({reporter:ue})),Ce={};Ce.callOnAdd=!!getOption($,"callOnAdd",!0),Ce.debug=!!getOption($,"debug",!1);var $e=listenerHandlerMaker(z),xe=elementUtilsMaker({stateHandler}),Ie,ze=getOption($,"strategy","object"),Ue=getOption($,"important",!1),qe={reporter:ue,batchProcessor:_e,stateHandler,idHandler:z,important:Ue};if(ze==="scroll"&&(browserDetector.isLegacyOpera()?(ue.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),ze="object"):browserDetector.isIE(9)&&(ue.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),ze="object")),ze==="scroll")Ie=scrollStrategyMaker(qe);else if(ze==="object")Ie=objectStrategyMaker(qe);else throw new Error("Invalid strategy name: "+ze);var Et={};function Lt(_n,bn,Sn){function Cn(Pn){var kn=$e.get(Pn);forEach(kn,function(Nn){Nn(Pn)})}function En(Pn,kn,An){$e.add(kn,An),Pn&&An(kn)}if(Sn||(Sn=bn,bn=_n,_n={}),!bn)throw new Error("At least one element required.");if(!Sn)throw new Error("Listener required.");if(isElement(bn))bn=[bn];else if(isCollection(bn))bn=toArray(bn);else return ue.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var $n=0,wn=getOption(_n,"callOnAdd",Ce.callOnAdd),Tn=getOption(_n,"onReady",function(){}),xn=getOption(_n,"debug",Ce.debug);forEach(bn,function(kn){stateHandler.getState(kn)||(stateHandler.initState(kn),z.set(kn));var An=z.get(kn);if(xn&&ue.log("Attaching listener to element",An,kn),!xe.isDetectable(kn)){if(xn&&ue.log(An,"Not detectable."),xe.isBusy(kn)){xn&&ue.log(An,"System busy making it detectable"),En(wn,kn,Sn),Et[An]=Et[An]||[],Et[An].push(function(){$n++,$n===bn.length&&Tn()});return}return xn&&ue.log(An,"Making detectable..."),xe.markBusy(kn,!0),Ie.makeDetectable({debug:xn,important:Ue},kn,function(Fn){if(xn&&ue.log(An,"onElementDetectable"),stateHandler.getState(Fn)){xe.markAsDetectable(Fn),xe.markBusy(Fn,!1),Ie.addListener(Fn,Cn),En(wn,Fn,Sn);var Ln=stateHandler.getState(Fn);if(Ln&&Ln.startSize){var In=Fn.offsetWidth,Vn=Fn.offsetHeight;(Ln.startSize.width!==In||Ln.startSize.height!==Vn)&&Cn(Fn)}Et[An]&&forEach(Et[An],function(Mn){Mn()})}else xn&&ue.log(An,"Element uninstalled before being detectable.");delete Et[An],$n++,$n===bn.length&&Tn()})}xn&&ue.log(An,"Already detecable, adding listener."),En(wn,kn,Sn),$n++}),$n===bn.length&&Tn()}function hn(_n){if(!_n)return ue.error("At least one element is required.");if(isElement(_n))_n=[_n];else if(isCollection(_n))_n=toArray(_n);else return ue.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(_n,function(bn){$e.removeAllListeners(bn),Ie.uninstall(bn),stateHandler.cleanState(bn)})}function vn(_n){Ie.initDocument&&Ie.initDocument(_n)}return{listenTo:Lt,removeListener:$e.removeListener,removeAllListeners:$e.removeAllListeners,uninstall:hn,initDocument:vn}};function getOption($,z,ie){var le=$[z];return le==null&&ie!==void 0?ie:le}const elementResizeDetectorMaker=getDefaultExportFromCjs(elementResizeDetector);function mitt($){return{all:$=$||new Map,on:function(z,ie){var le=$.get(z);le?le.push(ie):$.set(z,[ie])},off:function(z,ie){var le=$.get(z);le&&(ie?le.splice(le.indexOf(ie)>>>0,1):$.set(z,[]))},emit:function(z,ie){var le=$.get(z);le&&le.slice().map(function(ue){ue(ie)}),(le=$.get("*"))&&le.slice().map(function(ue){ue(z,ie)})}}}const emitter=mitt(),erd=elementResizeDetectorMaker({strategy:"scroll"}),resize={mounted($,z,ie){erd.listenTo($,le=>{const ue=le.offsetWidth,pe=le.offsetHeight;z!=null&&z.instance?emitter.emit("resize",{detail:{width:ue,height:pe}}):ie.el.dispatchEvent(new CustomEvent("resize",{detail:{width:ue,height:pe}}))})},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 ie={...$};for(const le in z){const ue=z[le],pe=typeof ue;le in defaultIconSizeCustomisations$1?(ue===null||ue&&(pe==="string"||pe==="number"))&&(ie[le]=ue):pe===typeof ie[le]&&(ie[le]=le==="rotate"?ue%4:ue)}return ie}const separator$1=/[\s,]+/;function flipFromString$1($,z){z.split(separator$1).forEach(ie=>{switch(ie.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString$1($,z=0){const ie=$.replace(/^-?[0-9.]*/,"");function le(ue){for(;ue<0;)ue+=4;return ue%4}if(ie===""){const ue=parseInt($);return isNaN(ue)?0:le(ue)}else if(ie!==$){let ue=0;switch(ie){case"%":ue=25;break;case"deg":ue=90}if(ue){let pe=parseFloat($.slice(0,$.length-ie.length));return isNaN(pe)?0:(pe=pe/ue,pe%1===0?le(pe):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,ie){if(z===1)return $;if(ie=ie||100,typeof $=="number")return Math.ceil($*z*ie)/ie;if(typeof $!="string")return $;const le=$.split(unitsSplit$1);if(le===null||!le.length)return $;const ue=[];let pe=le.shift(),_e=unitsTest$1.test(pe);for(;;){if(_e){const Ce=parseFloat(pe);isNaN(Ce)?ue.push(pe):ue.push(Math.ceil(Ce*z*ie)/ie)}else ue.push(pe);if(pe=le.shift(),pe===void 0)return ue.join("");_e=!_e}}const isUnsetKeyword$1=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG$1($,z){const ie={...defaultIconProps$1,...$},le={...defaultIconCustomisations$1,...z},ue={left:ie.left,top:ie.top,width:ie.width,height:ie.height};let pe=ie.body;[ie,le].forEach(Et=>{const Lt=[],hn=Et.hFlip,vn=Et.vFlip;let _n=Et.rotate;hn?vn?_n+=2:(Lt.push("translate("+(ue.width+ue.left).toString()+" "+(0-ue.top).toString()+")"),Lt.push("scale(-1 1)"),ue.top=ue.left=0):vn&&(Lt.push("translate("+(0-ue.left).toString()+" "+(ue.height+ue.top).toString()+")"),Lt.push("scale(1 -1)"),ue.top=ue.left=0);let bn;switch(_n<0&&(_n-=Math.floor(_n/4)*4),_n=_n%4,_n){case 1:bn=ue.height/2+ue.top,Lt.unshift("rotate(90 "+bn.toString()+" "+bn.toString()+")");break;case 2:Lt.unshift("rotate(180 "+(ue.width/2+ue.left).toString()+" "+(ue.height/2+ue.top).toString()+")");break;case 3:bn=ue.width/2+ue.left,Lt.unshift("rotate(-90 "+bn.toString()+" "+bn.toString()+")");break}_n%2===1&&(ue.left!==ue.top&&(bn=ue.left,ue.left=ue.top,ue.top=bn),ue.width!==ue.height&&(bn=ue.width,ue.width=ue.height,ue.height=bn)),Lt.length&&(pe='<g transform="'+Lt.join(" ")+'">'+pe+"</g>")});const _e=le.width,Ce=le.height,$e=ue.width,xe=ue.height;let Ie,ze;_e===null?(ze=Ce===null?"1em":Ce==="auto"?xe:Ce,Ie=calculateSize$1(ze,$e/xe)):(Ie=_e==="auto"?$e:_e,ze=Ce===null?calculateSize$1(Ie,xe/$e):Ce==="auto"?xe:Ce);const Ue={},qe=(Et,Lt)=>{isUnsetKeyword$1(Lt)||(Ue[Et]=Lt.toString())};return qe("width",Ie),qe("height",ze),Ue.viewBox=ue.left.toString()+" "+ue.top.toString()+" "+$e.toString()+" "+xe.toString(),{attributes:Ue,body:pe}}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 ie=[];let le;for(;le=regex$1.exec($);)ie.push(le[1]);if(!ie.length)return $;const ue="suffix"+(Math.random()*16777216|Date.now()).toString(16);return ie.forEach(pe=>{const _e=typeof z=="function"?z(pe):z+(counter$1++).toString(),Ce=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+Ce+')([")]|\\.[a-z])',"g"),"$1"+_e+ue+"$3")}),$=$.replace(new RegExp(ue,"g"),""),$}function iconToHTML$1($,z){let ie=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const le in z)ie+=" "+le+'="'+z[le]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+ie+">"+$+"</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 ie in propsToAdd$1)z[$+ie]=propsToAdd$1[ie]}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 ie=mergeCustomisations$1(defaultExtendedIconCustomisations$1,z),le={...svgDefaults$1},ue=z.mode||"svg",pe={},_e=z.style,Ce=typeof _e=="object"&&!(_e instanceof Array)?_e:{};for(let Lt in z){const hn=z[Lt];if(hn!==void 0)switch(Lt){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":ie[Lt]=hn===!0||hn==="true"||hn===1;break;case"flip":typeof hn=="string"&&flipFromString$1(ie,hn);break;case"color":pe.color=hn;break;case"rotate":typeof hn=="string"?ie[Lt]=rotateFromString$1(hn):typeof hn=="number"&&(ie[Lt]=hn);break;case"ariaHidden":case"aria-hidden":hn!==!0&&hn!=="true"&&delete le["aria-hidden"];break;default:{const vn=customisationAliases$1[Lt];vn?(hn===!0||hn==="true"||hn===1)&&(ie[vn]=!0):defaultExtendedIconCustomisations$1[Lt]===void 0&&(le[Lt]=hn)}}}const $e=iconToSVG$1($,ie),xe=$e.attributes;if(ie.inline&&(pe.verticalAlign="-0.125em"),ue==="svg"){le.style={...pe,...Ce},Object.assign(le,xe);let Lt=0,hn=z.id;return typeof hn=="string"&&(hn=hn.replace(/-/g,"_")),le.innerHTML=replaceIDs$1($e.body,hn?()=>hn+"ID"+Lt++:"iconifyVue"),h$3("svg",le)}const{body:Ie,width:ze,height:Ue}=$,qe=ue==="mask"||(ue==="bg"?!1:Ie.indexOf("currentColor")!==-1),Et=iconToHTML$1(Ie,{...xe,width:ze+"",height:Ue+""});return le.style={...pe,"--svg":svgToURL$1(Et),width:fixSize$1(xe.width),height:fixSize$1(xe.height),...commonProps$1,...qe?monotoneProps$1:coloredProps$1,...Ce},h$3("span",le)},storage$1=Object.create(null);function addIcon$1($,z){storage$1[$]=z}const Icon$1=defineComponent({inheritAttrs:!1,render(){const $=this.$attrs,z=$.icon,ie=typeof z=="string"?storage$1[z]:typeof z=="object"?z:null;return ie===null||typeof ie!="object"||typeof ie.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...ie},$)}}),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,ie,le="")=>{const ue=$.split(":");if($.slice(0,1)==="@"){if(ue.length<2||ue.length>3)return null;le=ue.shift().slice(1)}if(ue.length>3||!ue.length)return null;if(ue.length>1){const Ce=ue.pop(),$e=ue.pop(),xe={provider:ue.length>0?ue[0]:le,prefix:$e,name:Ce};return z&&!validateIconName(xe)?null:xe}const pe=ue[0],_e=pe.split("-");if(_e.length>1){const Ce={provider:le,prefix:_e.shift(),name:_e.join("-")};return z&&!validateIconName(Ce)?null:Ce}if(ie&&le===""){const Ce={provider:le,prefix:"",name:pe};return z&&!validateIconName(Ce,ie)?null:Ce}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 ie={};!$.hFlip!=!z.hFlip&&(ie.hFlip=!0),!$.vFlip!=!z.vFlip&&(ie.vFlip=!0);const le=(($.rotate||0)+(z.rotate||0))%4;return le&&(ie.rotate=le),ie}function mergeIconData($,z){const ie=mergeIconTransformations($,z);for(const le in defaultExtendedIconProps)le in defaultIconTransformations?le in $&&!(le in ie)&&(ie[le]=defaultIconTransformations[le]):le in z?ie[le]=z[le]:le in $&&(ie[le]=$[le]);return ie}function getIconsTree($,z){const ie=$.icons,le=$.aliases||Object.create(null),ue=Object.create(null);function pe(_e){if(ie[_e])return ue[_e]=[];if(!(_e in ue)){ue[_e]=null;const Ce=le[_e]&&le[_e].parent,$e=Ce&&pe(Ce);$e&&(ue[_e]=[Ce].concat($e))}return ue[_e]}return(z||Object.keys(ie).concat(Object.keys(le))).forEach(pe),ue}function internalGetIconData($,z,ie){const le=$.icons,ue=$.aliases||Object.create(null);let pe={};function _e(Ce){pe=mergeIconData(le[Ce]||ue[Ce],pe)}return _e(z),ie.forEach(_e),mergeIconData($,pe)}function parseIconSet($,z){const ie=[];if(typeof $!="object"||typeof $.icons!="object")return ie;$.not_found instanceof Array&&$.not_found.forEach(ue=>{z(ue,null),ie.push(ue)});const le=getIconsTree($);for(const ue in le){const pe=le[ue];pe&&(z(ue,internalGetIconData($,ue,pe)),ie.push(ue))}return ie}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps($,z){for(const ie in z)if(ie in $&&typeof $[ie]!=typeof z[ie])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 ie=z.icons;for(const ue in ie){const pe=ie[ue];if(!ue.match(matchIconName)||typeof pe.body!="string"||!checkOptionalProps(pe,defaultExtendedIconProps))return null}const le=z.aliases||Object.create(null);for(const ue in le){const pe=le[ue],_e=pe.parent;if(!ue.match(matchIconName)||typeof _e!="string"||!ie[_e]&&!le[_e]||!checkOptionalProps(pe,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 ie=dataStorage[$]||(dataStorage[$]=Object.create(null));return ie[z]||(ie[z]=newStorage($,z))}function addIconSet($,z){return quicklyValidateIconSet(z)?parseIconSet(z,(ie,le)=>{le?$.icons[ie]=le:$.missing.add(ie)}):[]}function addIconToStorage($,z,ie){try{if(typeof ie.body=="string")return $.icons[z]={...ie},!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 ie=getStorage(z.provider,z.prefix),le=z.name;return ie.icons[le]||(ie.missing.has(le)?null:void 0)}}function addIcon($,z){const ie=stringToIcon($,!0,simpleNames);if(!ie)return!1;const le=getStorage(ie.provider,ie.prefix);return addIconToStorage(le,ie.name,z)}function addCollection($,z){if(typeof $!="object")return!1;if(typeof z!="string"&&(z=$.provider||""),simpleNames&&!z&&!$.prefix){let ue=!1;return quicklyValidateIconSet($)&&($.prefix="",parseIconSet($,(pe,_e)=>{_e&&addIcon(pe,_e)&&(ue=!0)})),ue}const ie=$.prefix;if(!validateIconName({provider:z,prefix:ie,name:"a"}))return!1;const le=getStorage(z,ie);return!!addIconSet(le,$)}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,ie){if(z===1)return $;if(ie=ie||100,typeof $=="number")return Math.ceil($*z*ie)/ie;if(typeof $!="string")return $;const le=$.split(unitsSplit);if(le===null||!le.length)return $;const ue=[];let pe=le.shift(),_e=unitsTest.test(pe);for(;;){if(_e){const Ce=parseFloat(pe);isNaN(Ce)?ue.push(pe):ue.push(Math.ceil(Ce*z*ie)/ie)}else ue.push(pe);if(pe=le.shift(),pe===void 0)return ue.join("");_e=!_e}}const isUnsetKeyword=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG($,z){const ie={...defaultIconProps,...$},le={...defaultIconCustomisations,...z},ue={left:ie.left,top:ie.top,width:ie.width,height:ie.height};let pe=ie.body;[ie,le].forEach(Et=>{const Lt=[],hn=Et.hFlip,vn=Et.vFlip;let _n=Et.rotate;hn?vn?_n+=2:(Lt.push("translate("+(ue.width+ue.left).toString()+" "+(0-ue.top).toString()+")"),Lt.push("scale(-1 1)"),ue.top=ue.left=0):vn&&(Lt.push("translate("+(0-ue.left).toString()+" "+(ue.height+ue.top).toString()+")"),Lt.push("scale(1 -1)"),ue.top=ue.left=0);let bn;switch(_n<0&&(_n-=Math.floor(_n/4)*4),_n=_n%4,_n){case 1:bn=ue.height/2+ue.top,Lt.unshift("rotate(90 "+bn.toString()+" "+bn.toString()+")");break;case 2:Lt.unshift("rotate(180 "+(ue.width/2+ue.left).toString()+" "+(ue.height/2+ue.top).toString()+")");break;case 3:bn=ue.width/2+ue.left,Lt.unshift("rotate(-90 "+bn.toString()+" "+bn.toString()+")");break}_n%2===1&&(ue.left!==ue.top&&(bn=ue.left,ue.left=ue.top,ue.top=bn),ue.width!==ue.height&&(bn=ue.width,ue.width=ue.height,ue.height=bn)),Lt.length&&(pe='<g transform="'+Lt.join(" ")+'">'+pe+"</g>")});const _e=le.width,Ce=le.height,$e=ue.width,xe=ue.height;let Ie,ze;_e===null?(ze=Ce===null?"1em":Ce==="auto"?xe:Ce,Ie=calculateSize(ze,$e/xe)):(Ie=_e==="auto"?$e:_e,ze=Ce===null?calculateSize(Ie,xe/$e):Ce==="auto"?xe:Ce);const Ue={},qe=(Et,Lt)=>{isUnsetKeyword(Lt)||(Ue[Et]=Lt.toString())};return qe("width",Ie),qe("height",ze),Ue.viewBox=ue.left.toString()+" "+ue.top.toString()+" "+$e.toString()+" "+xe.toString(),{attributes:Ue,body:pe}}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 ie=[];let le;for(;le=regex.exec($);)ie.push(le[1]);if(!ie.length)return $;const ue="suffix"+(Math.random()*16777216|Date.now()).toString(16);return ie.forEach(pe=>{const _e=typeof z=="function"?z(pe):z+(counter++).toString(),Ce=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+Ce+')([")]|\\.[a-z])',"g"),"$1"+_e+ue+"$3")}),$=$.replace(new RegExp(ue,"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 ie=createAPIConfig(z);return ie===null?!1:(configStorage[$]=ie,!0)}function getAPIConfig($){return configStorage[$]}const detectFetch=()=>{let $;try{if($=fetch,typeof $=="function")return $}catch{}};let fetchModule=detectFetch();function calculateMaxLength($,z){const ie=getAPIConfig($);if(!ie)return 0;let le;if(!ie.maxURL)le=0;else{let ue=0;ie.resources.forEach(_e=>{ue=Math.max(ue,_e.length)});const pe=z+".json?icons=";le=ie.maxURL-ue-ie.path.length-pe.length}return le}function shouldAbort($){return $===404}const prepare=($,z,ie)=>{const le=[],ue=calculateMaxLength($,z),pe="icons";let _e={type:pe,provider:$,prefix:z,icons:[]},Ce=0;return ie.forEach(($e,xe)=>{Ce+=$e.length+1,Ce>=ue&&xe>0&&(le.push(_e),_e={type:pe,provider:$,prefix:z,icons:[]},Ce=$e.length),_e.icons.push($e)}),le.push(_e),le};function getPath($){if(typeof $=="string"){const z=getAPIConfig($);if(z)return z.path}return"/"}const send=($,z,ie)=>{if(!fetchModule){ie("abort",424);return}let le=getPath(z.provider);switch(z.type){case"icons":{const pe=z.prefix,Ce=z.icons.join(","),$e=new URLSearchParams({icons:Ce});le+=pe+".json?"+$e.toString();break}case"custom":{const pe=z.uri;le+=pe.slice(0,1)==="/"?pe.slice(1):pe;break}default:ie("abort",400);return}let ue=503;fetchModule($+le).then(pe=>{const _e=pe.status;if(_e!==200){setTimeout(()=>{ie(shouldAbort(_e)?"abort":"next",_e)});return}return ue=501,pe.json()}).then(pe=>{if(typeof pe!="object"||pe===null){setTimeout(()=>{pe===404?ie("abort",pe):ie("next",ue)});return}setTimeout(()=>{ie("success",pe)})}).catch(()=>{ie("next",ue)})},fetchAPIModule={prepare,send};function sortIcons($){const z={loaded:[],missing:[],pending:[]},ie=Object.create(null);$.sort((ue,pe)=>ue.provider!==pe.provider?ue.provider.localeCompare(pe.provider):ue.prefix!==pe.prefix?ue.prefix.localeCompare(pe.prefix):ue.name.localeCompare(pe.name));let le={provider:"",prefix:"",name:""};return $.forEach(ue=>{if(le.name===ue.name&&le.prefix===ue.prefix&&le.provider===ue.provider)return;le=ue;const pe=ue.provider,_e=ue.prefix,Ce=ue.name,$e=ie[pe]||(ie[pe]=Object.create(null)),xe=$e[_e]||($e[_e]=getStorage(pe,_e));let Ie;Ce in xe.icons?Ie=z.loaded:_e===""||xe.missing.has(Ce)?Ie=z.missing:Ie=z.pending;const ze={provider:pe,prefix:_e,name:Ce};Ie.push(ze)}),z}function removeCallback($,z){$.forEach(ie=>{const le=ie.loaderCallbacks;le&&(ie.loaderCallbacks=le.filter(ue=>ue.id!==z))})}function updateCallbacks($){$.pendingCallbacksFlag||($.pendingCallbacksFlag=!0,setTimeout(()=>{$.pendingCallbacksFlag=!1;const z=$.loaderCallbacks?$.loaderCallbacks.slice(0):[];if(!z.length)return;let ie=!1;const le=$.provider,ue=$.prefix;z.forEach(pe=>{const _e=pe.icons,Ce=_e.pending.length;_e.pending=_e.pending.filter($e=>{if($e.prefix!==ue)return!0;const xe=$e.name;if($.icons[xe])_e.loaded.push({provider:le,prefix:ue,name:xe});else if($.missing.has(xe))_e.missing.push({provider:le,prefix:ue,name:xe});else return ie=!0,!0;return!1}),_e.pending.length!==Ce&&(ie||removeCallback([$],pe.id),pe.callback(_e.loaded.slice(0),_e.missing.slice(0),_e.pending.slice(0),pe.abort))})}))}let idCounter=0;function storeCallback($,z,ie){const le=idCounter++,ue=removeCallback.bind(null,ie,le);if(!z.pending.length)return ue;const pe={id:le,icons:z,callback:$,abort:ue};return ie.forEach(_e=>{(_e.loaderCallbacks||(_e.loaderCallbacks=[])).push(pe)}),ue}function listToIcons($,z=!0,ie=!1){const le=[];return $.forEach(ue=>{const pe=typeof ue=="string"?stringToIcon(ue,z,ie):ue;pe&&le.push(pe)}),le}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery($,z,ie,le){const ue=$.resources.length,pe=$.random?Math.floor(Math.random()*ue):$.index;let _e;if($.random){let En=$.resources.slice(0);for(_e=[];En.length>1;){const $n=Math.floor(Math.random()*En.length);_e.push(En[$n]),En=En.slice(0,$n).concat(En.slice($n+1))}_e=_e.concat(En)}else _e=$.resources.slice(pe).concat($.resources.slice(0,pe));const Ce=Date.now();let $e="pending",xe=0,Ie,ze=null,Ue=[],qe=[];typeof le=="function"&&qe.push(le);function Et(){ze&&(clearTimeout(ze),ze=null)}function Lt(){$e==="pending"&&($e="aborted"),Et(),Ue.forEach(En=>{En.status==="pending"&&(En.status="aborted")}),Ue=[]}function hn(En,$n){$n&&(qe=[]),typeof En=="function"&&qe.push(En)}function vn(){return{startTime:Ce,payload:z,status:$e,queriesSent:xe,queriesPending:Ue.length,subscribe:hn,abort:Lt}}function _n(){$e="failed",qe.forEach(En=>{En(void 0,Ie)})}function bn(){Ue.forEach(En=>{En.status==="pending"&&(En.status="aborted")}),Ue=[]}function Sn(En,$n,wn){const Tn=$n!=="success";switch(Ue=Ue.filter(xn=>xn!==En),$e){case"pending":break;case"failed":if(Tn||!$.dataAfterTimeout)return;break;default:return}if($n==="abort"){Ie=wn,_n();return}if(Tn){Ie=wn,Ue.length||(_e.length?Cn():_n());return}if(Et(),bn(),!$.random){const xn=$.resources.indexOf(En.resource);xn!==-1&&xn!==$.index&&($.index=xn)}$e="completed",qe.forEach(xn=>{xn(wn)})}function Cn(){if($e!=="pending")return;Et();const En=_e.shift();if(En===void 0){if(Ue.length){ze=setTimeout(()=>{Et(),$e==="pending"&&(bn(),_n())},$.timeout);return}_n();return}const $n={status:"pending",resource:En,callback:(wn,Tn)=>{Sn($n,wn,Tn)}};Ue.push($n),xe++,ze=setTimeout(Cn,$.rotate),ie(En,z,$n.callback)}return setTimeout(Cn),vn}function initRedundancy($){const z={...defaultConfig,...$};let ie=[];function le(){ie=ie.filter(Ce=>Ce().status==="pending")}function ue(Ce,$e,xe){const Ie=sendQuery(z,Ce,$e,(ze,Ue)=>{le(),xe&&xe(ze,Ue)});return ie.push(Ie),Ie}function pe(Ce){return ie.find($e=>Ce($e))||null}return{query:ue,find:pe,setIndex:Ce=>{z.index=Ce},getIndex:()=>z.index,cleanup:le}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache($){if(!redundancyCache[$]){const z=getAPIConfig($);if(!z)return;const ie=initRedundancy(z),le={config:z,redundancy:ie};redundancyCache[$]=le}return redundancyCache[$]}function sendAPIQuery($,z,ie){let le,ue;if(typeof $=="string"){const pe=getAPIModule($);if(!pe)return ie(void 0,424),emptyCallback$1;ue=pe.send;const _e=getRedundancyCache($);_e&&(le=_e.redundancy)}else{const pe=createAPIConfig($);if(pe){le=initRedundancy(pe);const _e=$.resources?$.resources[0]:"",Ce=getAPIModule(_e);Ce&&(ue=Ce.send)}}return!le||!ue?(ie(void 0,424),emptyCallback$1):le.query(z,ue,ie)().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,ie){try{return $.setItem(z,ie),!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 ie=getBrowserStorage($);if(!ie)return;const le=getStoredItem(ie,browserCacheVersionKey);if(le!==browserCacheVersion){if(le){const Ce=getBrowserStorageItemsCount(ie);for(let $e=0;$e<Ce;$e++)removeStoredItem(ie,browserCachePrefix+$e.toString())}setStoredItem(ie,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(ie,0);return}const ue=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,pe=Ce=>{const $e=browserCachePrefix+Ce.toString(),xe=getStoredItem(ie,$e);if(typeof xe=="string"){try{const Ie=JSON.parse(xe);if(typeof Ie=="object"&&typeof Ie.cached=="number"&&Ie.cached>ue&&typeof Ie.provider=="string"&&typeof Ie.data=="object"&&typeof Ie.data.prefix=="string"&&z(Ie,Ce))return!0}catch{}removeStoredItem(ie,$e)}};let _e=getBrowserStorageItemsCount(ie);for(let Ce=_e-1;Ce>=0;Ce--)pe(Ce)||(Ce===_e-1?(_e--,setBrowserStorageItemsCount(ie,_e)):browserStorageEmptyItems[$].add(Ce))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const $ in browserStorageConfig)iterateBrowserStorage($,z=>{const ie=z.data,le=z.provider,ue=ie.prefix,pe=getStorage(le,ue);if(!addIconSet(pe,ie).length)return!1;const _e=ie.lastModified||-1;return pe.lastModifiedCached=pe.lastModifiedCached?Math.min(pe.lastModifiedCached,_e):_e,!0})}}function updateLastModified($,z){const ie=$.lastModifiedCached;if(ie&&ie>=z)return ie===z;if($.lastModifiedCached=z,ie)for(const le in browserStorageConfig)iterateBrowserStorage(le,ue=>{const pe=ue.data;return ue.provider!==$.provider||pe.prefix!==$.prefix||pe.lastModified===z});return!0}function storeInBrowserStorage($,z){browserStorageStatus||initBrowserStorage();function ie(le){let ue;if(!browserStorageConfig[le]||!(ue=getBrowserStorage(le)))return;const pe=browserStorageEmptyItems[le];let _e;if(pe.size)pe.delete(_e=Array.from(pe).shift());else if(_e=getBrowserStorageItemsCount(ue),!setBrowserStorageItemsCount(ue,_e+1))return;const Ce={cached:Math.floor(Date.now()/browserStorageHour),provider:$.provider,data:z};return setStoredItem(ue,browserCachePrefix+_e.toString(),JSON.stringify(Ce))}z.lastModified&&!updateLastModified($,z.lastModified)||Object.keys(z.icons).length&&(z.not_found&&(z=Object.assign({},z),delete z.not_found),ie("local")||ie("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:ie,prefix:le}=$,ue=$.iconsToLoad;delete $.iconsToLoad;let pe;if(!ue||!(pe=getAPIModule(ie)))return;pe.prepare(ie,le,ue).forEach(Ce=>{sendAPIQuery(ie,Ce,$e=>{if(typeof $e!="object")Ce.icons.forEach(xe=>{$.missing.add(xe)});else try{const xe=addIconSet($,$e);if(!xe.length)return;const Ie=$.pendingIcons;Ie&&xe.forEach(ze=>{Ie.delete(ze)}),storeInBrowserStorage($,$e)}catch(xe){console.error(xe)}loadedNewIcons($)})})}))}const loadIcons=($,z)=>{const ie=listToIcons($,!0,allowSimpleNames()),le=sortIcons(ie);if(!le.pending.length){let $e=!0;return z&&setTimeout(()=>{$e&&z(le.loaded,le.missing,le.pending,emptyCallback)}),()=>{$e=!1}}const ue=Object.create(null),pe=[];let _e,Ce;return le.pending.forEach($e=>{const{provider:xe,prefix:Ie}=$e;if(Ie===Ce&&xe===_e)return;_e=xe,Ce=Ie,pe.push(getStorage(xe,Ie));const ze=ue[xe]||(ue[xe]=Object.create(null));ze[Ie]||(ze[Ie]=[])}),le.pending.forEach($e=>{const{provider:xe,prefix:Ie,name:ze}=$e,Ue=getStorage(xe,Ie),qe=Ue.pendingIcons||(Ue.pendingIcons=new Set);qe.has(ze)||(qe.add(ze),ue[xe][Ie].push(ze))}),pe.forEach($e=>{const{provider:xe,prefix:Ie}=$e;ue[xe][Ie].length&&loadNewIcons($e,ue[xe][Ie])}),z?storeCallback(z,le,pe):emptyCallback};function mergeCustomisations($,z){const ie={...$};for(const le in z){const ue=z[le],pe=typeof ue;le in defaultIconSizeCustomisations?(ue===null||ue&&(pe==="string"||pe==="number"))&&(ie[le]=ue):pe===typeof ie[le]&&(ie[le]=le==="rotate"?ue%4:ue)}return ie}const separator=/[\s,]+/;function flipFromString($,z){z.split(separator).forEach(ie=>{switch(ie.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString($,z=0){const ie=$.replace(/^-?[0-9.]*/,"");function le(ue){for(;ue<0;)ue+=4;return ue%4}if(ie===""){const ue=parseInt($);return isNaN(ue)?0:le(ue)}else if(ie!==$){let ue=0;switch(ie){case"%":ue=25;break;case"deg":ue=90}if(ue){let pe=parseFloat($.slice(0,$.length-ie.length));return isNaN(pe)?0:(pe=pe/ue,pe%1===0?le(pe):0)}}return z}function iconToHTML($,z){let ie=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const le in z)ie+=" "+le+'="'+z[le]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+ie+">"+$+"</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 ie in propsToAdd)z[$+ie]=propsToAdd[ie]}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 ie=mergeCustomisations(defaultExtendedIconCustomisations,z),le={...svgDefaults},ue=z.mode||"svg",pe={},_e=z.style,Ce=typeof _e=="object"&&!(_e instanceof Array)?_e:{};for(let Lt in z){const hn=z[Lt];if(hn!==void 0)switch(Lt){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":ie[Lt]=hn===!0||hn==="true"||hn===1;break;case"flip":typeof hn=="string"&&flipFromString(ie,hn);break;case"color":pe.color=hn;break;case"rotate":typeof hn=="string"?ie[Lt]=rotateFromString(hn):typeof hn=="number"&&(ie[Lt]=hn);break;case"ariaHidden":case"aria-hidden":hn!==!0&&hn!=="true"&&delete le["aria-hidden"];break;default:{const vn=customisationAliases[Lt];vn?(hn===!0||hn==="true"||hn===1)&&(ie[vn]=!0):defaultExtendedIconCustomisations[Lt]===void 0&&(le[Lt]=hn)}}}const $e=iconToSVG($,ie),xe=$e.attributes;if(ie.inline&&(pe.verticalAlign="-0.125em"),ue==="svg"){le.style={...pe,...Ce},Object.assign(le,xe);let Lt=0,hn=z.id;return typeof hn=="string"&&(hn=hn.replace(/-/g,"_")),le.innerHTML=replaceIDs($e.body,hn?()=>hn+"ID"+Lt++:"iconifyVue"),h$3("svg",le)}const{body:Ie,width:ze,height:Ue}=$,qe=ue==="mask"||(ue==="bg"?!1:Ie.indexOf("currentColor")!==-1),Et=iconToHTML(Ie,{...xe,width:ze+"",height:Ue+""});return le.style={...pe,"--svg":svgToURL(Et),width:fixSize(xe.width),height:fixSize(xe.height),...commonProps,...qe?monotoneProps:coloredProps,...Ce},h$3("span",le)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const $=window;if($.IconifyPreload!==void 0){const z=$.IconifyPreload,ie="Invalid IconifyPreload syntax.";typeof z=="object"&&z!==null&&(z instanceof Array?z:[z]).forEach(le=>{try{(typeof le!="object"||le===null||le instanceof Array||typeof le.icons!="object"||typeof le.prefix!="string"||!addCollection(le))&&console.error(ie)}catch{console.error(ie)}})}if($.IconifyProviders!==void 0){const z=$.IconifyProviders;if(typeof z=="object"&&z!==null)for(let ie in z){const le="IconifyProviders["+ie+"] is invalid.";try{const ue=z[ie];if(typeof ue!="object"||!ue||ue.resources===void 0)continue;addAPIProvider(ie,ue)||console.error(le)}catch{console.error(le)}}}}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 ie;if(typeof $!="string"||(ie=stringToIcon($,!1,!0))===null)return this.abortLoading(),null;const le=getIconData(ie);if(!le)return(!this._loadingIcon||this._loadingIcon.name!==$)&&(this.abortLoading(),this._name="",le!==null&&(this._loadingIcon={name:$,abort:loadIcons([ie],()=>{this.counter++})})),null;this.abortLoading(),this._name!==$&&(this._name=$,z&&z($));const ue=["iconify"];return ie.prefix!==""&&ue.push("iconify--"+ie.prefix),ie.provider!==""&&ue.push("iconify--"+ie.provider),{data:le,classes:ue}}},render(){this.counter;const $=this.$attrs,z=this.iconMounted?this.getIcon($.icon,$.onLoad):null;if(!z)return render(emptyIcon,$);let ie=$;return z.classes&&(ie={...$,class:(typeof $.class=="string"?$.class+" ":"")+z.classes.join(" ")}),render({...defaultIconProps,...z.data},ie)}}),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 ie;return z&&hasAuth($.value)?createVNode(Fragment,null,[(ie=z.default)==null?void 0:ie.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证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"}]}})},{url:"/releases",method:"get",response:()=>({success:!0,data:{list:[{created_at:"2023-05-15T07:03:57Z",published_at:"2023-05-15T07:04:54Z",body:"# 4.2.0 (2023-05-15)\r\n\r\n### 🎫 Feat\r\n\r\n- 新增分段控制器组件并适配暗黑模式\r\n- 静态路由支持配置数组格式\r\n- 函数式弹框组件添加全屏、退出全屏操作按钮\r\n- 新增组件-瀑布流 `demo`\r\n- 添加 `Exclusive` 类型互斥语法糖\r\n\r\n### 🍏 Perf\r\n\r\n- 规范 `template` 模版中路由写法,不再使用 `$route` 和 `$router`,此写法 `vue-tsc` 编译不通过"},{created_at:"2023-05-11T17:45:43Z",published_at:"2023-05-11T17:47:10Z",body:"# 4.1.0 (2023-05-12)\r\n\r\n### 🎫 Feat\r\n\r\n- 函数式弹框组件添加结合 `Form` 的 `demo` 示例\r\n- 封装 `element-plus` 的 `el-col` 组件\r\n- 函数式弹框组件添加 `beforeCancel` 和 `beforeSure` 回调,可暂停弹框的关闭\r\n- 完善 `系统管理-部门管理` 页面\r\n- 优化 `PureTableBar` 组件,列展示添加拖拽功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复开启 `keepAlive` 后点击标签页的重新加载,页面缓存还存在的问题\r\n- 修复混合模式菜单下刷新页签后左侧菜单会闪烁一下的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化首页布局\r\n- 依赖更新到 `vue3.3+` 以及删除 `unplugin-vue-define-options` 插件"},{created_at:"2023-05-09T08:11:28Z",published_at:"2023-05-09T08:14:55Z",body:'# 4.0.0 (2023-05-09)\r\n\r\n[查看 4.0.0 版本优化细节](https://github.com/pure-admin/vue-pure-admin/issues/428#issuecomment-1422191158)\r\n\r\n### ✔️ refactor\r\n\r\n- 采用 `css` 伪类 `before` 写法重构菜单的激活背景,类似于 [ant.design-menu](https://ant.design/components/menu-cn#components-menu-demo-inline-collapsed)\r\n\r\n### 🎫 Feat\r\n\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 可配置首页菜单显示与隐藏\r\n- 将本地响应式存储的命名空间提升到全局配置中\r\n- 新增函数式弹框组件以及 `demo` 示例,使用更便捷\r\n- `PureTableBar` 组件添加列展示功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复当菜单折叠或展开时首页 `echarts` 图表未自适应容器\r\n- 修复当只有一个子菜单时,搜索功能搜索不到该子菜单问题\r\n- 修复全局配置 `Theme` 为 `light` 清空缓存重新登录主题配置不生效的问题\r\n- 修复菜单搜索功能弹框打开后搜索框未自动聚集的问题\r\n- 修复按 `ESC` 退出全屏后,工具栏按钮文案展示问题\r\n- 修复移动端通知栏 `tooltip` 点击穿透问题\r\n- 修复当左侧菜单收起后,切换到 `horizontal` 导航模式时文字不展示的问题\r\n- 修复导航 `tab` 关闭其他标签页无法重置状态问题\r\n- 修复 `getHistoryMode` 函数中环境变量未初始化带来的页面热更新报错\r\n- 修复导航 `tab` 过多导致关闭左侧标签页无法正常显示\r\n- 修复点击内容区全屏报错问题\r\n- 修复混合导航下打开 `showLink:false` 页面并刷新后,左侧导航栏一直处于加载状态的问题\r\n- 修复混合模式导航下调用 `initRouter` 函数导致左侧导航内存溢出问题\r\n- 修复关闭左侧、右侧、其他、全部标签页操作时缓存页面并没有销毁问题\r\n- 修复路由通过 `query` 或 `params` 传参,开启缓存后关闭标签页缓存失效问题\r\n- 修复 `params` 路由传参模式下,面包屑无法找到父级路径问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `RePureTableBar` 组件的 `buttons` 具名插槽\r\n- 优化导航样式以及菜单折叠动画\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 优化 `logo` 图和文字布局以及统一配置\r\n- 路由信息 `showLink` 设置成 `false` 后,当前路由信息不添加到标签页\r\n- 导出 `addPathMatch` 函数\r\n- `pinia` 中所有 `getters` 改为官方推荐写法,`this` 改成 `state` 可自动推导类型\r\n- 适配最新版 `pure-table` 的 `api`\r\n- 忽略 `sourcemap-codec` 和 `stable` 依赖包的 `deprecation` 警告\r\n- 从 `tsconfig.json` 文件中移除 `"incremental": true`\r\n- 更新 `stylelint` 以及相关配置至最新,强化样式校验\r\n- 面包屑去首页化,根据选择的菜单对应显示,首页不在固定到面包屑里,并优化面包屑页面的路由监听'},{created_at:"2022-12-26T06:31:04Z",published_at:"2022-12-26T06:32:38Z",body:"# 3.9.7 (2022-12-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 使用 `path.posix.resolve` 替代 `path.resolve` 避免 `windows` 环境下使用 `electron` 出现盘符问题\r\n- 默认关闭 `CachingAsyncRoutes` 动态路由缓存本地,使其在开发环境下调试更方便,不用每次修改动态路由都要先清空本地缓存的动态路由,更推荐在生产环境开启"},{created_at:"2022-12-19T04:14:18Z",published_at:"2022-12-19T04:15:41Z",body:`# 3.9.6 (2022-12-19)\r
\r
### 🎫 Chores\r
\r
- 升级 \`vite4\` 版本\r
\r
### 🐞 Bug fixes\r
\r
- 修复 \`tailwind.css\` 错误的引入方式导致 \`vite\` 的 \`hmr\` 慢的问题\r
\r
### 🍏 Perf\r
\r
- 更新 [@pureadmin/theme](https://github.com/pure-admin/pure-admin-theme) 至最新版,带来更友好的类型提示\r
- 优化 [PureTableBar](https://github.com/xiaoxian521/vue-pure-admin/tree/main/src/components/RePureTableBar) 组件\r
- 优化系统管理页面业务代码,带来更好的代码参考`},{created_at:"2022-12-13T06:19:31Z",published_at:"2022-12-13T06:20:30Z",body:`# 3.9.5 (2022-12-13)\r
\r
### ✔️ refactor\r
\r
- 完全移除了 \`lodash\` 和其相关库\r
[点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-5-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-lodash-%E5%92%8C%E5%85%B6%E7%9B%B8%E5%85%B3%E5%BA%93-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r
\r
### 🎫 Feat\r
\r
- 添加 \`@pureadmin/table\` 表格动态列示例\r
\r
### 🐞 Bug fixes\r
\r
- 修复动态路由 \`rank\` 问题\r
- 修复暗黑主题样式问题\r
\r
### 🍏 Perf\r
\r
- 优化路由 \`rank\` ,当 \`rank\` 不存在时,根据顺序自动创建,首页路由永远在第一位`},{created_at:"2022-12-05T05:59:54Z",published_at:"2022-12-05T06:04:01Z",body:`# 3.9.4 (2022-12-05)\r
\r
### ✔️ refactor\r
\r
- 完全移除了 \`vxe-table\`,移除后,完整版整体打包大小减少 \`1.82MB\`,首启动时长基本和精简版持平 🐮\r
[点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-4-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-vxe-table-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r
\r
### 🎫 Feat\r
\r
- 添加 \`@pureadmin/table\` 表格选择器(单选、多选)示例`},{created_at:"2022-12-04T08:45:47Z",published_at:"2022-12-04T08:46:59Z",body:`# 3.9.3 (2022-12-04)\r
\r
### 🎫 Feat\r
\r
- 添加 \`@pureadmin/table\` 分页和加载动画示例\r
\r
### 🐞 Bug fixes\r
\r
- 修复开启 \`CachingAsyncRoutes\` 后,存入本地存储的动态路由改变造成刷新页面空白的问题\r
- 修复菜单折叠后 \`Tooltip\` 显示异常\r
\r
### 🍏 Perf\r
\r
- 扩展本地图标使用方式,完整版首启动再次减少 \`13\` 个请求\r
- 当菜单加载慢时,添加 \`loading\` 动画,优化用户体验\r
- 主题初始化放在 \`onBeforeMount\` 里,避免初始化页面闪烁`},{created_at:"2022-12-03T07:02:17Z",published_at:"2022-12-03T07:03:09Z",body:"# 3.9.2 (2022-12-03)\r\n\r\n### 🍏 Perf\r\n\r\n- 全局覆盖 `element-plus` 的 `el-dialog`、`el-drawer`、`el-message-box`、`el-notification` 组件右上角关闭图标的样式,使其表现更鲜明 [具体代码修改记录](https://github.com/xiaoxian521/vue-pure-admin/commit/c80818d792276666aaea4b18413a0f08777f2ed1)\r\n- 打包输出信息兼容不同打包输出路径\r\n- 优化一些动画"},{created_at:"2022-12-02T11:32:48Z",published_at:"2022-12-02T11:33:45Z",body:"# 3.9.1 (2022-12-02)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `CachingAsyncRoutes` 是否开启动态路由缓存本地的全局配置,默认 `true`\r\n- 添加 `TooltipEffect` 全局配置,可配置平台主体所有 `el-tooltip` 的 `effect` 属性,默认 `light`,不影响业务代码\r\n- 添加目录、菜单文字超出显示 `Tooltip` 文字提示演示\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `initRouter` 方法,兼容 `sso` 场景\r\n- 面包屑动画样式优化"},{created_at:"2022-11-30T06:11:08Z",published_at:"2022-11-30T06:12:32Z",body:`# 3.9.0 (2022-11-30)\r
\r
### 🐞 Bug fixes\r
\r
- 修复退出全屏时文字过长导致页面出现滚动条后带来的抖动问题\r
- 修复一些类型错误\r
\r
### 🍏 Perf\r
\r
- perf: 首屏加载大优化,对比 \`3.9.0\` 之前版本,首屏请求减少 \`71\` 个,首屏加载资源减少 \`4.1 MB\``},{created_at:"2022-11-27T17:25:43Z",published_at:"2022-11-27T17:27:59Z",body:"# 3.8.7 (2022-11-28)\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 打包大优化,请务必升级!使用 `unplugin-vue-define-options` 替换 `unplugin-vue-macros` ,打包速度提升数倍,使用 `unplugin-vue-macros` 以性能中等偏上的 `mac` 为例完整版打包时长为 `6` 分钟 😭,使用 `unplugin-vue-define-options` 替换后,相同电脑下打包时长为 `50` 秒 ☺️"},{created_at:"2022-11-27T08:34:46Z",published_at:"2022-11-27T08:35:49Z",body:"# 3.8.6 (2022-11-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `message` 消息提示函数,兼容 `Element Plus` 和 `Ant Design` 两种 `Message` 样式风格,使用和打包大小成本极低并适配暗黑模式,真香 😂\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 无需安装 `@vue/runtime-core` ,兼容所有 `element-plus` 组件的 `volar` 提示"},{created_at:"2022-11-26T16:03:19Z",published_at:"2022-11-26T16:04:41Z",body:"# 3.8.5 (2022-11-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 大优化,移除 `@pureadmin/components` 并采用兼容写法,平台打包大小在未启用压缩前对比优化前减少 `0.4` MB , 首屏请求减少 `2.3` MB 的资源,这对于 [精简版](https://github.com/xiaoxian521/pure-admin-thin) 来说是非常大的优化,精简版已经同步代码"},{created_at:"2022-11-26T07:07:07Z",published_at:"2022-11-26T07:08:11Z",body:"# 3.8.0 (2022-11-26)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `@pureadmin/table` 多种数据格式(深层结构)示例\r\n- 添加 `@pureadmin/table` 图像预览示例\r\n- 添加 `@pureadmin/table` 行、列拖拽示例\r\n- 添加 `@pureadmin/table` 右键菜单示例\r\n- 添加 `@pureadmin/table` 导出 `Excel` 示例\r\n- 添加 `@pureadmin/table` 编辑单元格示例\r\n- 添加 `@pureadmin/table` 水印示例\r\n- 添加 `@pureadmin/table` 打印示例\r\n- 添加 `@pureadmin/table` 内嵌 `echarts` 图表示例\r\n- 添加 `svgo` 压缩平台所有 `svg` 文件,减少体积\r\n\r\n### 🍏 Perf\r\n\r\n- 静态路由平台自动导入,无需手动引入\r\n- 更完善的全局类型提示\r\n- 优化 `vite` 依赖预构建在平台里的配置,页面切换加载速度显著加快"},{created_at:"2022-11-21T17:00:04Z",published_at:"2022-11-21T17:00:42Z",body:`# 3.7.1 (2022-11-22)\r
\r
### 🔥 hotfix\r
\r
- 修复在未开启标签页缓存时退出登录,可能存在标签页未重置的问题`},{created_at:"2022-11-21T09:14:22Z",published_at:"2022-11-21T09:15:24Z",body:"# 3.7.0 (2022-11-21)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `intro.js` 替换 `driver.js`\r\n\r\n### 🎫 Feat\r\n\r\n- 添加前端单点登录,测试地址 https://yiming_chang.gitee.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin\r\n- 为 [@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table) 添加更多的示例和 `element-plus` 的 [table](https://element-plus.org/zh-CN/component/table.html) 示例保持一致\r\n- 丰富水印功能页面(支持自定义各种颜色、阴影、文字、额外属性、设置不可删除水印以及给指定元素设置水印)\r\n- 优化菜单,添加 `MenuArrowIconNoTransition` 全局配置,在 `public/serverConfig.json` 中配置即可,对于出现左侧菜单模式,菜单展开卡顿的可设置 `MenuArrowIconNoTransition: true` 即可解决\r\n- 更换表单设计器组件演示\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复页内菜单带参互相跳转,标签没有选中高亮\r\n\r\n### 🍏 Perf\r\n\r\n- 删除已废弃的 `$baseUrl`\r\n- 兼容引入某个库导致 `global is not defined` 报错,将 `src/utils/globalPolyfills.ts` 文件引入 `src/main.ts` 即可解决\r\n- 删除 `@vitejs/plugin-legacy``vue3` 无法通过任何工具使其支持 `ie`"},{created_at:"2022-11-10T04:17:05Z",published_at:"2022-11-10T04:18:18Z",body:`# 3.6.4 (2022-11-10)\r
\r
### 🎫 Feat\r
\r
- 菜单图标 \`icon\` 支持使用在线图标\r
\r
### 🐞 Bug fixes\r
\r
- 修复 \`vxe-button\` 鼠标覆盖后字体颜色问题以及一些别的样式问题\r
\r
### 🍏 Perf\r
\r
- 优化路由守卫,如果已经登录并存在登录信息后不能跳转到路由白名单,而是继续保持在当前页面\r
- 将 \`baseURL\` 和全局环境代理删除,可直接在 \`vite.config.ts\` 编写,即方便又支持多个代理地址`},{created_at:"2022-11-01T08:18:12Z",published_at:"2022-11-01T08:19:22Z",body:"# 3.6.3 (2022-11-01)\r\n\r\n### 🎫 Feat\r\n\r\n- 静态资源分类打包\r\n- 添加弹幕组件 `demo`\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复 `tailwindcss` 最新版新增的 `collapse` 属性与平台 `class` 类名冲突\r\n- 修复当 `token` 过期后,如果页面有多个请求会重复刷新 `token`"},{created_at:"2022-10-27T04:58:44Z",published_at:"2022-10-27T04:59:32Z",body:"# 3.6.2 (2022-10-27)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用`@/`别名替换`/@/`别名"},{created_at:"2022-10-26T18:42:33Z",published_at:"2022-10-26T18:43:31Z",body:"# 3.6.1 (2022-10-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加打包是否启动`cdn`替换本地库配置,默认`false`不启动\r\n- 添加打包构建可选`gzip`与`brotli`压缩模式\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复`title`过长显示样式问题\r\n- 修复路由中父级`name`不应和子级`name`重复,会造成重定向跳转`404`问题\r\n\r\n### 🍏 Perf\r\n\r\n- 升级`axios`至最新版"},{created_at:"2022-10-25T05:07:18Z",published_at:"2022-10-25T05:08:18Z",body:"# 3.6.0 (2022-10-25)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加文件下载`demo`\r\n- 添加打字机组件`demo`\r\n- 添加`json`编辑器`demo`\r\n\r\n### ✔️ refactor\r\n\r\n- 重构权限模块,采用目前最常用的`RBAC`Role-Based Access List: 基于角色的权限控制( 用户 -> 角色 -> 权限 ),并更新页面权限和按钮权限`demo`示例,按钮权限支持三种操作模式(组件方式判断权限、函数方式判断权限、指令方式判断权限)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复清空缓存并返回登录页时未清空主题\r\n- 修复`horizontal`模式下`menu`在生产环境显示问题\r\n- 修复`mix`混合模式导航在生产环境左侧菜单一定机率不显示的问题\r\n- `token`过期后调用刷新`token`接口会无限循环的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 从`tailwind.css`中移除不常用的`@apply`\r\n- 使用`/** */`替换`//`注释,对编辑器的智能提示更友好\r\n- 优化登录回车事件\r\n- 简化了一些函数,剔除了无用函数,优化了页面加载速度"},{created_at:"2022-09-10T13:44:17Z",published_at:"2022-09-10T13:46:11Z",body:"# 3.5.0 (2022-9-10)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `cssnano` ,打包时压缩 `css` 体积\r\n- 添加 `element-plus` 无缝滚动 `Table` 页面 demo\r\n- 开启 `vscode` 括号对指南\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `tailwindcss` 替换 `unocss`,新增 `tailwindcss` [使用文档](http://yiming_chang.gitee.io/pure-admin-doc/pages/39156f/)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `token` 过期,刷新死循环\r\n\r\n### 🍏 Perf\r\n\r\n- 重置路由时,清空缓存页面"},{created_at:"2022-08-23T02:31:44Z",published_at:"2022-08-23T02:32:49Z",body:"# 3.4.6 (2022-8-23)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `process` is not defined in path\r\n- 修复动态路由`children`为空数组时报错\r\n- 修复`iframe`加载失败"},{created_at:"2022-08-22T12:21:53Z",published_at:"2022-08-22T12:23:21Z",body:`# 3.4.5 (2022-8-22)\r
\r
### 🐞 Bug fixes\r
\r
- 修复本地响应式存储对象设置问题`},{created_at:"2022-08-22T09:21:18Z",published_at:"2022-08-22T09:22:26Z",body:"# 3.4.0 (2022-8-22)\r\n\r\n### 🍏 Perf\r\n\r\n- 优化路由\r\n- 优化移动端兼容性\r\n- 优化路由传参(`query`、`params` 方式刷新页面不需要再开启标签页缓存也能保留参数在`url`和`标签页`上)"},{created_at:"2022-08-19T07:29:06Z",published_at:"2022-08-19T07:31:08Z",body:`# 3.3.5 (2022-8-19)\r
\r
### 🎫 Feat\r
\r
- 将 \`element-plus\` 的 \`Table\` 二次封装到[@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table),提供灵活的配置项并集成到平台里\r
- 将 \`element-plus\` 的 \`Descriptions\` 二次封装到[@pureadmin/descriptions](https://github.com/xiaoxian521/pure-admin-descriptions),提供灵活的配置项并集成到平台里\r
- 将平台的大部分工具以及 hooks 都集中到[@pureadmin/utils](https://pure-admin-utils-docs.vercel.app/),并删除集中到这个库里的代码,减少平台体积\r
- 添加[unplugin-vue-define-options](https://www.npmjs.com/package/unplugin-vue-define-options)插件,页面可直接写 \`defineOptions({name: 自定义名称})\`\r
- 添加项目文件、语言分析工具 [cloc](https://www.npmjs.com/package/cloc)\r
- 添加登陆页国际化\r
- 添加完整路由配置表类型声明\r
- 添加虚拟列表页面 demo\r
- 添加 \`PDF\` 预览页面 demo\r
- 添加导出 \`execl\` 页面 demo\r
- 添加无 \`Layout\` 的空白页面 demo\r
\r
### ✔️ refactor\r
\r
- 重构主题色,适配 \`element-plus\` 暗黑模式(同时也解决了 \`3.3.0\` 及更低版本中同样的元素 \`css\` 被多次覆盖,导致样式不好调试的问题)\r
- 重构路由重置功能\r
\r
### 🍏 Perf\r
\r
- 兼容项目存放目录以中文命名,但我们真心不推荐中文命名,因为可能某个库没有对中文路径做转义处理,导致项目奔溃\r
- 优化接口类型\r
\r
### 🐞 Bug fixes\r
\r
- 修复路由 \`showlink\` 为 \`false\` 的异步路由,刷新后不显示\r
- 修复当没有 \`icon\` 时,垂直导航菜单折叠后文字被隐藏`},{created_at:"2022-05-11T07:51:38Z",published_at:"2022-05-11T07:52:31Z",body:`# 3.3.0 (2022-5-11)\r
\r
### 🎫 Feat\r
\r
- 添加用户管理页面 demo\r
- 添加角色管理页面 demo\r
- 添加部门管理页面 demo\r
- 添加卡片列表页面 demo\r
- 集成表单设计器\r
- 新增\`PPT\`demo\r
- 在功能菜单中新增防抖截流 demo\r
- 升级\`wangeditorV5\`(并支持国际化和自定义主题)\r
- 集成\`tauri\`版本\r
- 新增条形码功能\r
- 新增二维码功能\r
- 使用\`element-plus\`中的\`Cascader\`级联选择器编写中国省市区三级、二级联动 demo\r
- 集成\`Swiper\`插件\r
- 路由支持传\`component\`,代表组件路径\r
- 添加预发布打包模式\r
- 添加关闭某个标签的[hooks](https://github.com/xiaoxian521/vue-pure-admin/commit/5e8723a031923e79f507e5a17151d3bd88a51523)\r
\r
### ✔️ refactor\r
\r
- 重构登陆页,更偏向实际业务场景\r
- 使用\`unocss\`替换\`windicss\`\`unocss\`开发环境下性能更好,没有内存泄露,而且\`api\`使用上兼容\`windicss\`\r
\r
### 🍏 Perf\r
\r
- 优化平台的\`split-pane\`组件样式\r
- 优化国际化,路由不再传\`i18n\`字段,平台自动读取根目录\`locales\`文件夹下文件进行国际化匹配\r
- 优化图标选择器\r
- 优化\`layout\`显示用户信息[commit](https://github.com/xiaoxian521/vue-pure-admin/commit/56f9dc85e7fbe0637605c43577c794de9f8968aa)\r
\r
### 🐞 Bug fixes\r
\r
- 修复路由初始化问题Cannot access 'constantRoutes' before initialization`},{created_at:"2022-03-21T16:25:55Z",published_at:"2022-03-21T16:27:00Z",body:`# 3.2.0 (2022-3-22)\r
\r
### 🎫 Feat\r
\r
- 图标选择组件\r
- 菜单搜索功能\r
- 添加结果页面\r
- 扩展\`element-plus\`时间线组件\r
- 扩展\`element-plus\`树组件,支持连接线\r
- 添加树形选择器,支持单选和多选\r
\r
### 🍏 Perf\r
\r
- 优化错误页面 UI\r
- 优化国际化功能\r
- 优化路由\`rank\`排序,兼容路由\`meta\`中\`rank\`字段值为\`null\`的情况\r
\r
### 🐞 Bug fixes\r
\r
- 修复菜单展开折叠在部分电脑出现卡顿的情况`},{created_at:"2022-03-03T14:57:11Z",published_at:"2022-03-03T14:57:55Z",body:`# 3.1.0 (2022-3-3)\r
\r
### 🎫 Feat\r
\r
- iframe 支持动态加载\r
- 水印示例\r
- 打印示例图片、表格、echarts\r
- 添加运行、打包信息, 使用\`lodash-unified\`替换\`lodash-es\`,\`lodash-unified\`支持\`ESM\`同时兼容\`CJS\`\r
\r
### 🐞 Bug fixes\r
\r
- 修复在一个菜单页面内单独跳转到另一个菜单页面,路由页面跳转了但是标签页不显示的情况\r
- 修复后台返回动态三级及以上的路由,出现菜单与页面不对应的情况`},{created_at:"2022-02-14T15:19:32Z",published_at:"2022-02-14T15:20:32Z",body:`# 3.0 (2022-2-14)\r
\r
### 🎫 Feat\r
\r
- 添加混合导航\r
\r
### 🐞 Bug fixes\r
\r
- 修复标签页 bug`},{created_at:"2022-02-05T09:36:21Z",published_at:"2022-02-05T09:38:09Z",body:`# 2.9.0(2022-2-5)\r
\r
### 🎫 Feat\r
\r
- 添加打包大小分析,命令\`pnpm report\`\r
\r
### 🍏 Perf\r
\r
- 采用\`iconify\`按需引入图标,优化图标大小,减少网络请求\r
- 优化路由,路由可不传\`showLink: true\`,默认显示`},{created_at:"2022-01-21T08:46:48Z",published_at:"2022-01-21T08:49:38Z",body:`# 2.8.5(2022-1-21)\r
\r
### 🎫 Feat\r
\r
- 添加 \`WindiCSS\` 支持\r
- 添加线上环境删 console 插件\`vite-plugin-remove-console\`\r
\r
### ✔️ refactor\r
\r
- 使用\`@iconify-icons/ep\`替换\`@element-plus/icons-vue\``},{created_at:"2022-01-04T11:52:05Z",published_at:"2022-01-04T11:53:17Z",body:`# 2.8.0(2022-1-4)\r
\r
### 🎫 Feat\r
\r
- 添加暗黑主题\r
- 添加 element-plus 自定义主题\r
- 添加引导页\r
\r
### 🍏 Perf\r
\r
- 优化国际化,兼容 vscode 插件 i18n Ally 智能提醒\r
- 优化后端返回路由结构\r
- 优化本地存储,内置四个键\`responsive-configure\`、\`responsive-locale\`、\`responsive-layout\`、\`responsive-tags\`,分别为基本配置、国际化配置、布局配置、标签页持久化配置`},{created_at:"2021-12-18T05:56:21Z",published_at:"2021-12-18T05:57:55Z",body:`# 2.7.0(2021-12-18)\r
\r
### 🎫 Feat\r
\r
- 新增标签页复用\r
- 新增消息提醒模版\r
- 新增前端菜单树结构例子\r
- 重构路由,优化权限模块,带来更方便的体验\r
- 重构 env 环境和 http 请求,带来更方便的体验\r
- 目前平台的标签页强制关联了本地存储,下一步标签页默认放到内存中并支持可配置持久化标签页\r
- 导航菜单图标支持 fontawesome、iconfont、remixicon、element-plus/icons、自定义 svg\r
- 更新 font-awesome 到 5.0 版本,因为 5.0 以下的版本官方不再维护,但平台依旧会兼容 font-awesome4 版本\r
\r
### 🍏 Perf\r
\r
- 优化标签页,带来更好的交互体验\r
- 路由 title 支持直接写中文,可脱离国际化\r
- 路由历史模式从 env 读取并支持 base 参数\r
- 打包后的文件提供传统浏览器兼容性支持,配置 VITE_LEGACY 为 true`},{created_at:"2021-11-10T05:30:48Z",published_at:"2021-11-10T05:33:37Z",body:`# 2.6.0(2021-11-10)\r
\r
### 🎫 Feat\r
\r
- 重构导航主题色,支持多种配色\r
- 重构登录页,插画风格\r
\r
### 🍏 Perf\r
\r
- 优化导航样式\r
- 剔除导航强依赖 vxe-table\r
- 同步更新 element-plus使用 SVG Icon 替换 Font Icon`},{created_at:"2021-10-14T09:50:03Z",published_at:"2021-10-14T09:52:01Z",body:`# 2.1.0(2021-10-14)\r
\r
### 🎫 Feat\r
\r
- 路由动画(每个路由都可添加不同动画)\r
- 额外图标(比如这个是新加的页面,路由菜单右上角显示个新图标)\r
- 抽离默认配置选项\r
- 完善类型文件\r
\r
### 🐞 Bug fixes\r
\r
- 修复 element-plus 国际化使用问题\r
- 修复路由问题\r
- 修复导航适配问题`},{created_at:"2021-09-28T18:32:30Z",published_at:"2021-09-28T18:35:41Z",body:`# 2.0.1(2021-9-29)\r
\r
### 🎫 Feat\r
\r
- 添加 horizontal 水平模式导航`},{created_at:"2021-04-13T10:53:29Z",published_at:"2021-04-13T10:57:50Z",body:`# 2.0.0(2021-4-13)\r
\r
### 🎫 Chores\r
\r
- 发布 2.0.0 版本`}]}})}],__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(ie=>ie.name.includes($==null?void 0:$.name)),z=z.filter(ie=>String(ie.status).includes(String($==null?void 0:$.status))),$.code&&(z=z.filter(ie=>ie.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,ie){module.exports=ie()})(commonjsGlobal,function(){return function($){var z={};function ie(le){if(z[le])return z[le].exports;var ue=z[le]={exports:{},id:le,loaded:!1};return $[le].call(ue.exports,ue,ue.exports,ie),ue.loaded=!0,ue.exports}return ie.m=$,ie.c=z,ie.p="",ie(0)}([function($,z,ie){var le=ie(1),ue=ie(3),pe=ie(5),_e=ie(20),Ce=ie(23),$e=ie(25),xe;typeof window<"u"&&(xe=ie(27));/*!
Mock - 模拟请求 & 模拟数据
https://github.com/nuysoft/Mock
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
*/var Ie={Handler:le,Random:pe,Util:ue,XHR:xe,RE:_e,toJSONSchema:Ce,valid:$e,heredoc:ue.heredoc,setup:function(ze){return xe.setup(ze)},_mocked:{}};Ie.version="1.0.1-beta3",xe&&(xe.Mock=Ie),Ie.mock=function(ze,Ue,qe){return arguments.length===1?le.gen(ze):(arguments.length===2&&(qe=Ue,Ue=void 0),xe&&(window.XMLHttpRequest=xe),Ie._mocked[ze+(Ue||"")]={rurl:ze,rtype:Ue,template:qe},Ie)},$.exports=Ie},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,ie){z=z==null?"":z+"",ie=ie||{},ie={path:ie.path||[Constant.GUID],templatePath:ie.templatePath||[Constant.GUID++],currentContext:ie.currentContext,templateCurrentContext:ie.templateCurrentContext||$,root:ie.root||ie.currentContext,templateRoot:ie.templateRoot||ie.templateCurrentContext||$};var le=Parser.parse(z),ue=Util.type($),pe;return Handler[ue]?(pe=Handler[ue]({type:ue,template:$,name:z,parsedName:z&&z.replace(Constant.RE_KEY,"$1"),rule:le,context:ie}),ie.root||(ie.root=pe),pe):$},Handler.extend({array:function($){var z=[],ie,le;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(ie=0;ie<$.rule.count;ie++)for(le=0;le<$.template.length;le++)$.context.path.push(z.length),$.context.templatePath.push(le),z.push(Handler.gen($.template[le],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(ie=0;ie<$.template.length;ie++)$.context.path.push(ie),$.context.templatePath.push(ie),z.push(Handler.gen($.template[ie],ie,{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={},ie,le,ue,pe,_e,Ce;if($.rule.min!=null)for(ie=Util.keys($.template),ie=Random.shuffle(ie),ie=ie.slice(0,$.rule.count),Ce=0;Ce<ie.length;Ce++)ue=ie[Ce],pe=ue.replace(Constant.RE_KEY,"$1"),$.context.path.push(pe),$.context.templatePath.push(ue),z[pe]=Handler.gen($.template[ue],ue,{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{ie=[],le=[];for(ue in $.template)(typeof $.template[ue]=="function"?le:ie).push(ue);for(ie=ie.concat(le),Ce=0;Ce<ie.length;Ce++)ue=ie[Ce],pe=ue.replace(Constant.RE_KEY,"$1"),$.context.path.push(pe),$.context.templatePath.push(ue),z[pe]=Handler.gen($.template[ue],ue,{path:$.context.path,templatePath:$.context.templatePath,currentContext:z,templateCurrentContext:$.template,root:$.context.root||z,templateRoot:$.context.templateRoot||$.template}),$.context.path.pop(),$.context.templatePath.pop(),_e=ue.match(Constant.RE_KEY),_e&&_e[2]&&Util.type($.template[ue])==="number"&&($.template[ue]+=parseInt(_e[2],10))}return z},number:function($){var z,ie;if($.rule.decimal){for($.template+="",ie=$.template.split("."),ie[0]=$.rule.range?$.rule.count:ie[0],ie[1]=(ie[1]||"").slice(0,$.rule.dcount);ie[1].length<$.rule.dcount;)ie[1]+=ie[1].length<$.rule.dcount-1?Random.character("number"):Random.character("123456789");z=parseFloat(ie.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="",ie,le,ue,pe;if($.template.length){for($.rule.count==null&&(z+=$.template),ie=0;ie<$.rule.count;ie++)z+=$.template;for(le=z.match(Constant.RE_PLACEHOLDER)||[],ie=0;ie<le.length;ie++){if(ue=le[ie],/^\\/.test(ue)){le.splice(ie--,1);continue}if(pe=Handler.placeholder(ue,$.context.currentContext,$.context.templateCurrentContext,$),le.length===1&&ue===z&&typeof pe!=typeof z){z=pe;break}z=z.replace(ue,pe)}}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 ie=0;ie<$.rule.count;ie++)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 ie=$,le=this.splitPathToArray($),ue=[];$.charAt(0)==="/"?ue=[z.context.path[0]].concat(this.normalizePath(le)):le.length>1&&(ue=z.context.path.slice(0),ue.pop(),ue=this.normalizePath(ue.concat(le)));try{$=le[le.length-1];for(var pe=z.context.root,_e=z.context.templateRoot,Ce=1;Ce<ue.length-1;Ce++)pe=pe[ue[Ce]],_e=_e[ue[Ce]];if(pe&&$ in pe)return pe[$];if(_e&&typeof _e=="object"&&$ in _e&&ie!==_e[$])return _e[$]=Handler.gen(_e[$],$,{currentContext:pe,templateCurrentContext:_e}),_e[$]}catch{}return"@"+le.join("/")},normalizePath:function($){for(var z=[],ie=0;ie<$.length;ie++)switch($[ie]){case"..":z.pop();break;case".":break;default:z.push($[ie])}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 ie={};ie.extend=function(){var ue=arguments[0]||{},pe=1,_e=arguments.length,Ce,$e,xe,Ie,ze;for(_e===1&&(ue=this,pe=0);pe<_e;pe++)if(Ce=arguments[pe],!!Ce)for($e in Ce)xe=ue[$e],Ie=Ce[$e],ue!==Ie&&Ie!==void 0&&(ie.isArray(Ie)||ie.isObject(Ie)?(ie.isArray(Ie)&&(ze=xe&&ie.isArray(xe)?xe:[]),ie.isObject(Ie)&&(ze=xe&&ie.isObject(xe)?xe:{}),ue[$e]=ie.extend(ze,Ie)):ue[$e]=Ie);return ue},ie.each=function(ue,pe,_e){var Ce,$e;if(this.type(ue)==="number")for(Ce=0;Ce<ue;Ce++)pe(Ce,Ce);else if(ue.length===+ue.length)for(Ce=0;Ce<ue.length&&pe.call(_e,ue[Ce],Ce,ue)!==!1;Ce++);else for($e in ue)if(pe.call(_e,ue[$e],$e,ue)===!1)break},ie.type=function(ue){return ue==null?String(ue):Object.prototype.toString.call(ue).match(/\[object (\w+)\]/)[1].toLowerCase()},ie.each("String Object Array RegExp Function".split(" "),function(le){ie["is"+le]=function(ue){return ie.type(ue)===le.toLowerCase()}}),ie.isObjectOrArray=function(le){return ie.isObject(le)||ie.isArray(le)},ie.isNumeric=function(le){return!isNaN(parseFloat(le))&&isFinite(le)},ie.keys=function(le){var ue=[];for(var pe in le)le.hasOwnProperty(pe)&&ue.push(pe);return ue},ie.values=function(le){var ue=[];for(var pe in le)le.hasOwnProperty(pe)&&ue.push(le[pe]);return ue},ie.heredoc=function(ue){return ue.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},ie.noop=function(){},$.exports=ie},function($,z,ie){var le=ie(2),ue=ie(5);$.exports={parse:function(pe){pe=pe==null?"":pe+"";var _e=(pe||"").match(le.RE_KEY),Ce=_e&&_e[3]&&_e[3].match(le.RE_RANGE),$e=Ce&&Ce[1]&&parseInt(Ce[1],10),xe=Ce&&Ce[2]&&parseInt(Ce[2],10),Ie=Ce?Ce[2]?ue.integer($e,xe):parseInt(Ce[1],10):void 0,ze=_e&&_e[4]&&_e[4].match(le.RE_RANGE),Ue=ze&&ze[1]&&parseInt(ze[1],10),qe=ze&&ze[2]&&parseInt(ze[2],10),Et=ze?!ze[2]&&parseInt(ze[1],10)||ue.integer(Ue,qe):void 0,Lt={parameters:_e,range:Ce,min:$e,max:xe,count:Ie,decimal:ze,dmin:Ue,dmax:qe,dcount:Et};for(var hn in Lt)if(Lt[hn]!=null)return Lt;return{}}}},function($,z,ie){var le=ie(3),ue={extend:le.extend};ue.extend(ie(6)),ue.extend(ie(7)),ue.extend(ie(8)),ue.extend(ie(10)),ue.extend(ie(13)),ue.extend(ie(15)),ue.extend(ie(16)),ue.extend(ie(17)),ue.extend(ie(14)),ue.extend(ie(19)),$.exports=ue},function($,z){$.exports={boolean:function(ie,le,ue){return ue!==void 0?(ie=typeof ie<"u"&&!isNaN(ie)?parseInt(ie,10):1,le=typeof le<"u"&&!isNaN(le)?parseInt(le,10):1,Math.random()>1/(ie+le)*ie?!ue:ue):Math.random()>=.5},bool:function(ie,le,ue){return this.boolean(ie,le,ue)},natural:function(ie,le){return ie=typeof ie<"u"?parseInt(ie,10):0,le=typeof le<"u"?parseInt(le,10):9007199254740992,Math.round(Math.random()*(le-ie))+ie},integer:function(ie,le){return ie=typeof ie<"u"?parseInt(ie,10):-9007199254740992,le=typeof le<"u"?parseInt(le,10):9007199254740992,Math.round(Math.random()*(le-ie))+ie},int:function(ie,le){return this.integer(ie,le)},float:function(ie,le,ue,pe){ue=ue===void 0?0:ue,ue=Math.max(Math.min(ue,17),0),pe=pe===void 0?17:pe,pe=Math.max(Math.min(pe,17),0);for(var _e=this.integer(ie,le)+".",Ce=0,$e=this.natural(ue,pe);Ce<$e;Ce++)_e+=Ce<$e-1?this.character("number"):this.character("123456789");return parseFloat(_e,10)},character:function(ie){var le={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return le.alpha=le.lower+le.upper,le.undefined=le.lower+le.upper+le.number+le.symbol,ie=le[(""+ie).toLowerCase()]||ie,ie.charAt(this.natural(0,ie.length-1))},char:function(ie){return this.character(ie)},string:function(ie,le,ue){var pe;switch(arguments.length){case 0:pe=this.natural(3,7);break;case 1:pe=ie,ie=void 0;break;case 2:typeof arguments[0]=="string"?pe=le:(pe=this.natural(ie,le),ie=void 0);break;case 3:pe=this.natural(le,ue);break}for(var _e="",Ce=0;Ce<pe;Ce++)_e+=this.character(ie);return _e},str:function(){return this.string.apply(this,arguments)},range:function(ie,le,ue){arguments.length<=1&&(le=ie||0,ie=0),ue=arguments[2]||1,ie=+ie,le=+le,ue=+ue;for(var pe=Math.max(Math.ceil((le-ie)/ue),0),_e=0,Ce=new Array(pe);_e<pe;)Ce[_e++]=ie,ie+=ue;return Ce}}},function($,z){var ie={yyyy:"getFullYear",yy:function(le){return(""+le.getFullYear()).slice(2)},y:"yy",MM:function(le){var ue=le.getMonth()+1;return ue<10?"0"+ue:ue},M:function(le){return le.getMonth()+1},dd:function(le){var ue=le.getDate();return ue<10?"0"+ue:ue},d:"getDate",HH:function(le){var ue=le.getHours();return ue<10?"0"+ue:ue},H:"getHours",hh:function(le){var ue=le.getHours()%12;return ue<10?"0"+ue:ue},h:function(le){return le.getHours()%12},mm:function(le){var ue=le.getMinutes();return ue<10?"0"+ue:ue},m:"getMinutes",ss:function(le){var ue=le.getSeconds();return ue<10?"0"+ue:ue},s:"getSeconds",SS:function(le){var ue=le.getMilliseconds();return ue<10&&"00"+ue||ue<100&&"0"+ue||ue},S:"getMilliseconds",A:function(le){return le.getHours()<12?"AM":"PM"},a:function(le){return le.getHours()<12?"am":"pm"},T:"getTime"};$.exports={_patternLetters:ie,_rformat:new RegExp(function(){var le=[];for(var ue in ie)le.push(ue);return"("+le.join("|")+")"}(),"g"),_formatDate:function(le,ue){return ue.replace(this._rformat,function pe(_e,Ce){return typeof ie[Ce]=="function"?ie[Ce](le):ie[Ce]in ie?pe(_e,ie[Ce]):le[ie[Ce]]()})},_randomDate:function(le,ue){return le=le===void 0?new Date(0):le,ue=ue===void 0?new Date:ue,new Date(Math.random()*(ue.getTime()-le.getTime()))},date:function(le){return le=le||"yyyy-MM-dd",this._formatDate(this._randomDate(),le)},time:function(le){return le=le||"HH:mm:ss",this._formatDate(this._randomDate(),le)},datetime:function(le){return le=le||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),le)},now:function(le,ue){arguments.length===1&&(/year|month|day|hour|minute|second|week/.test(le)||(ue=le,le="")),le=(le||"").toLowerCase(),ue=ue||"yyyy-MM-dd HH:mm:ss";var pe=new Date;switch(le){case"year":pe.setMonth(0);case"month":pe.setDate(1);case"week":case"day":pe.setHours(0);case"hour":pe.setMinutes(0);case"minute":pe.setSeconds(0);case"second":pe.setMilliseconds(0)}switch(le){case"week":pe.setDate(pe.getDate()-pe.getDay())}return this._formatDate(pe,ue)}}},function($,z,ie){(function(le){le.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(ue,pe,_e,Ce,$e){return arguments.length===4&&($e=Ce,Ce=void 0),arguments.length===3&&($e=_e,_e=void 0),ue||(ue=this.pick(this._adSize)),pe&&~pe.indexOf("#")&&(pe=pe.slice(1)),_e&&~_e.indexOf("#")&&(_e=_e.slice(1)),"http://dummyimage.com/"+ue+(pe?"/"+pe:"")+(_e?"/"+_e:"")+(Ce?"."+Ce:"")+($e?"&text="+$e:"")},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 ue=[];for(var pe in this._brandColors)ue.push(pe);return ue},dataImage:function(ue,pe){var _e;if(typeof document<"u")_e=document.createElement("canvas");else{var Ce=le.require("canvas");_e=new Ce}var $e=_e&&_e.getContext&&_e.getContext("2d");if(!_e||!$e)return"";ue||(ue=this.pick(this._adSize)),pe=pe!==void 0?pe:ue,ue=ue.split("x");var xe=parseInt(ue[0],10),Ie=parseInt(ue[1],10),ze=this._brandColors[this.pick(this._brandNames())],Ue="#FFF",qe=14,Et="sans-serif";return _e.width=xe,_e.height=Ie,$e.textAlign="center",$e.textBaseline="middle",$e.fillStyle=ze,$e.fillRect(0,0,xe,Ie),$e.fillStyle=Ue,$e.font="bold "+qe+"px "+Et,$e.fillText(pe,xe/2,Ie/2,xe),_e.toDataURL("image/png")}}}).call(z,ie(9)($))},function($,z){$.exports=function(ie){return ie.webpackPolyfill||(ie.deprecate=function(){},ie.paths=[],ie.children=[],ie.webpackPolyfill=1),ie}},function($,z,ie){var le=ie(11),ue=ie(12);$.exports={color:function(pe){return pe||ue[pe]?ue[pe].nicer:this.hex()},hex:function(){var pe=this._goldenRatioColor(),_e=le.hsv2rgb(pe),Ce=le.rgb2hex(_e[0],_e[1],_e[2]);return Ce},rgb:function(){var pe=this._goldenRatioColor(),_e=le.hsv2rgb(pe);return"rgb("+parseInt(_e[0],10)+", "+parseInt(_e[1],10)+", "+parseInt(_e[2],10)+")"},rgba:function(){var pe=this._goldenRatioColor(),_e=le.hsv2rgb(pe);return"rgba("+parseInt(_e[0],10)+", "+parseInt(_e[1],10)+", "+parseInt(_e[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var pe=this._goldenRatioColor(),_e=le.hsv2hsl(pe);return"hsl("+parseInt(_e[0],10)+", "+parseInt(_e[1],10)+", "+parseInt(_e[2],10)+")"},_goldenRatioColor:function(pe,_e){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof pe!="number"&&(pe=.5),typeof _e!="number"&&(_e=.95),[this._hue*360,pe*100,_e*100]}}},function($,z){$.exports={rgb2hsl:function(le){var ue=le[0]/255,pe=le[1]/255,_e=le[2]/255,Ce=Math.min(ue,pe,_e),$e=Math.max(ue,pe,_e),xe=$e-Ce,Ie,ze,Ue;return $e==Ce?Ie=0:ue==$e?Ie=(pe-_e)/xe:pe==$e?Ie=2+(_e-ue)/xe:_e==$e&&(Ie=4+(ue-pe)/xe),Ie=Math.min(Ie*60,360),Ie<0&&(Ie+=360),Ue=(Ce+$e)/2,$e==Ce?ze=0:Ue<=.5?ze=xe/($e+Ce):ze=xe/(2-$e-Ce),[Ie,ze*100,Ue*100]},rgb2hsv:function(le){var ue=le[0],pe=le[1],_e=le[2],Ce=Math.min(ue,pe,_e),$e=Math.max(ue,pe,_e),xe=$e-Ce,Ie,ze,Ue;return $e===0?ze=0:ze=xe/$e*1e3/10,$e==Ce?Ie=0:ue==$e?Ie=(pe-_e)/xe:pe==$e?Ie=2+(_e-ue)/xe:_e==$e&&(Ie=4+(ue-pe)/xe),Ie=Math.min(Ie*60,360),Ie<0&&(Ie+=360),Ue=$e/255*1e3/10,[Ie,ze,Ue]},hsl2rgb:function(le){var ue=le[0]/360,pe=le[1]/100,_e=le[2]/100,Ce,$e,xe,Ie,ze;if(pe===0)return ze=_e*255,[ze,ze,ze];_e<.5?$e=_e*(1+pe):$e=_e+pe-_e*pe,Ce=2*_e-$e,Ie=[0,0,0];for(var Ue=0;Ue<3;Ue++)xe=ue+1/3*-(Ue-1),xe<0&&xe++,xe>1&&xe--,6*xe<1?ze=Ce+($e-Ce)*6*xe:2*xe<1?ze=$e:3*xe<2?ze=Ce+($e-Ce)*(2/3-xe)*6:ze=Ce,Ie[Ue]=ze*255;return Ie},hsl2hsv:function(le){var ue=le[0],pe=le[1]/100,_e=le[2]/100,Ce,$e;return _e*=2,pe*=_e<=1?_e:2-_e,$e=(_e+pe)/2,Ce=2*pe/(_e+pe),[ue,Ce*100,$e*100]},hsv2rgb:function(le){var ue=le[0]/60,pe=le[1]/100,_e=le[2]/100,Ce=Math.floor(ue)%6,$e=ue-Math.floor(ue),xe=255*_e*(1-pe),Ie=255*_e*(1-pe*$e),ze=255*_e*(1-pe*(1-$e));switch(_e=255*_e,Ce){case 0:return[_e,ze,xe];case 1:return[Ie,_e,xe];case 2:return[xe,_e,ze];case 3:return[xe,Ie,_e];case 4:return[ze,xe,_e];case 5:return[_e,xe,Ie]}},hsv2hsl:function(le){var ue=le[0],pe=le[1]/100,_e=le[2]/100,Ce,$e;return $e=(2-pe)*_e,Ce=pe*_e,Ce/=$e<=1?$e:2-$e,$e/=2,[ue,Ce*100,$e*100]},rgb2hex:function(ie,le,ue){return"#"+((256+ie<<8|le)<<8|ue).toString(16).slice(1)},hex2rgb:function(ie){return ie="0x"+ie.slice(1).replace(ie.length>4?ie:/./g,"$&$&")|0,[ie>>16,ie>>8&255,ie&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,ie){var le=ie(6),ue=ie(14);function pe(_e,Ce,$e,xe){return $e===void 0?le.natural(_e,Ce):xe===void 0?$e:le.natural(parseInt($e,10),parseInt(xe,10))}$.exports={paragraph:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.sentence());return xe.join(" ")},cparagraph:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.csentence());return xe.join("")},sentence:function(_e,Ce){for(var $e=pe(12,18,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.word());return ue.capitalize(xe.join(" "))+"."},csentence:function(_e,Ce){for(var $e=pe(12,18,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.cword());return xe.join("")+"。"},word:function(_e,Ce){for(var $e=pe(3,10,_e,Ce),xe="",Ie=0;Ie<$e;Ie++)xe+=le.character("lower");return xe},cword:function(_e,Ce,$e){var xe="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",Ie;switch(arguments.length){case 0:_e=xe,Ie=1;break;case 1:typeof arguments[0]=="string"?Ie=1:(Ie=_e,_e=xe);break;case 2:typeof arguments[0]=="string"?Ie=Ce:(Ie=this.natural(_e,Ce),_e=xe);break;case 3:Ie=this.natural(Ce,$e);break}for(var ze="",Ue=0;Ue<Ie;Ue++)ze+=_e.charAt(this.natural(0,_e.length-1));return ze},title:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.capitalize(this.word()));return xe.join(" ")},ctitle:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.cword());return xe.join("")}}},function($,z,ie){var le=ie(3);$.exports={capitalize:function(ue){return(ue+"").charAt(0).toUpperCase()+(ue+"").substr(1)},upper:function(ue){return(ue+"").toUpperCase()},lower:function(ue){return(ue+"").toLowerCase()},pick:function(pe,_e,Ce){return le.isArray(pe)?(_e===void 0&&(_e=1),Ce===void 0&&(Ce=_e)):(pe=[].slice.call(arguments),_e=1,Ce=1),_e===1&&Ce===1?pe[this.natural(0,pe.length-1)]:this.shuffle(pe,_e,Ce)},shuffle:function(pe,_e,Ce){pe=pe||[];for(var $e=pe.slice(0),xe=[],Ie=0,ze=$e.length,Ue=0;Ue<ze;Ue++)Ie=this.natural(0,$e.length-1),xe.push($e[Ie]),$e.splice(Ie,1);switch(arguments.length){case 0:case 1:return xe;case 2:Ce=_e;case 3:return _e=parseInt(_e,10),Ce=parseInt(Ce,10),xe.slice(0,this.natural(_e,Ce))}},order:function ue(pe){ue.cache=ue.cache||{},arguments.length>1&&(pe=[].slice.call(arguments,0));var _e=ue.options,Ce=_e.context.templatePath.join("."),$e=ue.cache[Ce]=ue.cache[Ce]||{index:0,array:pe};return $e.array[$e.index++%$e.array.length]}}},function($,z){$.exports={first:function(){var ie=["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(ie)},last:function(){var ie=["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(ie)},name:function(ie){return this.first()+" "+(ie?this.first()+" ":"")+this.last()},cfirst:function(){var ie="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(ie)},clast:function(){var ie="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(ie)},cname:function(){return this.cfirst()+this.clast()}}},function($,z){$.exports={url:function(ie,le){return(ie||this.protocol())+"://"+(le||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(ie){return this.word()+"."+(ie||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(ie){return this.character("lower")+"."+this.word()+"@"+(ie||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,ie){var le=ie(18),ue=["东北","华北","华东","华中","华南","西南","西北"];$.exports={region:function(){return this.pick(ue)},province:function(){return this.pick(le).name},city:function(pe){var _e=this.pick(le),Ce=this.pick(_e.children);return pe?[_e.name,Ce.name].join(" "):Ce.name},county:function(pe){var _e=this.pick(le),Ce=this.pick(_e.children),$e=this.pick(Ce.children)||{name:"-"};return pe?[_e.name,Ce.name,$e.name].join(" "):$e.name},zip:function(pe){for(var _e="",Ce=0;Ce<(pe||6);Ce++)_e+=this.natural(0,9);return _e}}},function($,z){var ie={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 le(pe){for(var _e={},Ce=0,$e;Ce<pe.length;Ce++)$e=pe[Ce],!(!$e||!$e.id)&&(_e[$e.id]=$e);for(var xe=[],Ie=0;Ie<pe.length;Ie++)if($e=pe[Ie],!!$e){if($e.pid==null&&$e.parentId==null){xe.push($e);continue}var ze=_e[$e.pid]||_e[$e.parentId];ze&&(ze.children||(ze.children=[]),ze.children.push($e))}return xe}var ue=function(){var pe=[];for(var _e in ie){var Ce=_e.slice(2,6)==="0000"?void 0:_e.slice(4,6)=="00"?_e.slice(0,2)+"0000":_e.slice(0,4)+"00";pe.push({id:_e,pid:Ce,name:ie[_e]})}return le(pe)}();$.exports=ue},function($,z,ie){var le=ie(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 ue="abcdefABCDEF1234567890",pe=this.string(ue,8)+"-"+this.string(ue,4)+"-"+this.string(ue,4)+"-"+this.string(ue,4)+"-"+this.string(ue,12);return pe},uuid:function(){return this.guid()},id:function(){var ue,pe=0,_e=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],Ce=["1","0","X","9","8","7","6","5","4","3","2"];ue=this.pick(le).id+this.date("yyyyMMdd")+this.string("number",3);for(var $e=0;$e<ue.length;$e++)pe+=ue[$e]*_e[$e];return ue+=Ce[pe%11],ue},increment:function(){var ue=0;return function(pe){return ue+=+pe||1}}(),inc:function(ue){return this.increment(ue)}}},function($,z,ie){var le=ie(21),ue=ie(22);$.exports={Parser:le,Handler:ue}},function($,z){function ie(Sn){this.type=Sn,this.offset=ie.offset(),this.text=ie.text()}function le(Sn,Cn){ie.call(this,"alternate"),this.left=Sn,this.right=Cn}function ue(Sn){ie.call(this,"match"),this.body=Sn.filter(Boolean)}function pe(Sn,Cn){ie.call(this,Sn),this.body=Cn}function _e(Sn){pe.call(this,"capture-group"),this.index=bn[this.offset]||(bn[this.offset]=_n++),this.body=Sn}function Ce(Sn,Cn){ie.call(this,"quantified"),this.body=Sn,this.quantifier=Cn}function $e(Sn,Cn){ie.call(this,"quantifier"),this.min=Sn,this.max=Cn,this.greedy=!0}function xe(Sn,Cn){ie.call(this,"charset"),this.invert=Sn,this.body=Cn}function Ie(Sn,Cn){ie.call(this,"range"),this.start=Sn,this.end=Cn}function ze(Sn){ie.call(this,"literal"),this.body=Sn,this.escaped=this.body!=this.text}function Ue(Sn){ie.call(this,"unicode"),this.code=Sn.toUpperCase()}function qe(Sn){ie.call(this,"hex"),this.code=Sn.toUpperCase()}function Et(Sn){ie.call(this,"octal"),this.code=Sn.toUpperCase()}function Lt(Sn){ie.call(this,"back-reference"),this.code=Sn.toUpperCase()}function hn(Sn){ie.call(this,"control-character"),this.code=Sn.toUpperCase()}var vn=function(){function Sn($n,wn){function Tn(){this.constructor=$n}Tn.prototype=wn.prototype,$n.prototype=new Tn}function Cn($n,wn,Tn,xn,Pn){function kn(An,Nn){function Fn(Vn){function Mn(zn){return zn.charCodeAt(0).toString(16).toUpperCase()}return Vn.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(zn){return"\\x0"+Mn(zn)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(zn){return"\\x"+Mn(zn)}).replace(/[\u0180-\u0FFF]/g,function(zn){return"\\u0"+Mn(zn)}).replace(/[\u1080-\uFFFF]/g,function(zn){return"\\u"+Mn(zn)})}var Ln,In;switch(An.length){case 0:Ln="end of input";break;case 1:Ln=An[0];break;default:Ln=An.slice(0,-1).join(", ")+" or "+An[An.length-1]}return In=Nn?'"'+Fn(Nn)+'"':"end of input","Expected "+Ln+" but "+In+" found."}this.expected=$n,this.found=wn,this.offset=Tn,this.line=xn,this.column=Pn,this.name="SyntaxError",this.message=kn($n,wn)}function En($n){function wn(){return $n.substring(Kr,rr)}function Tn(){return Kr}function xn(Dn){function jn(Nr,Gr,Xr){var no,io;for(no=Gr;Xr>no;no++)io=$n.charAt(no),io===`
`?(Nr.seenCR||Nr.line++,Nr.column=1,Nr.seenCR=!1):io==="\r"||io==="\u2028"||io==="\u2029"?(Nr.line++,Nr.column=1,Nr.seenCR=!0):(Nr.column++,Nr.seenCR=!1)}return ao!==Dn&&(ao>Dn&&(ao=0,yo={line:1,column:1,seenCR:!1}),jn(yo,ao,Dn),ao=Dn),yo}function Pn(Dn){po>rr||(rr>po&&(po=rr,ho=[]),ho.push(Dn))}function kn(Dn){var jn=0;for(Dn.sort();jn<Dn.length;)Dn[jn-1]===Dn[jn]?Dn.splice(jn,1):jn++}function An(){var Dn,jn,Nr,Gr,Xr;return Dn=rr,jn=Nn(),jn!==null?(Nr=rr,$n.charCodeAt(rr)===124?(Gr=ro,rr++):(Gr=null,zr===0&&Pn(ta)),Gr!==null?(Xr=An(),Xr!==null?(Gr=[Gr,Xr],Nr=Gr):(rr=Nr,Nr=Vr)):(rr=Nr,Nr=Vr),Nr===null&&(Nr=eo),Nr!==null?(Kr=Dn,jn=na(jn,Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Nn(){var Dn,jn,Nr,Gr,Xr;if(Dn=rr,jn=Ln(),jn===null&&(jn=eo),jn!==null)if(Nr=rr,zr++,Gr=Mn(),zr--,Gr===null?Nr=eo:(rr=Nr,Nr=Vr),Nr!==null){for(Gr=[],Xr=Vn(),Xr===null&&(Xr=Fn());Xr!==null;)Gr.push(Xr),Xr=Vn(),Xr===null&&(Xr=Fn());Gr!==null?(Xr=In(),Xr===null&&(Xr=eo),Xr!==null?(Kr=Dn,jn=ra(jn,Gr,Xr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)}else rr=Dn,Dn=Vr;else rr=Dn,Dn=Vr;return Dn}function Fn(){var Dn;return Dn=Wn(),Dn===null&&(Dn=or(),Dn===null&&(Dn=gr())),Dn}function Ln(){var Dn,jn;return Dn=rr,$n.charCodeAt(rr)===94?(jn=bo,rr++):(jn=null,zr===0&&Pn(So)),jn!==null&&(Kr=Dn,jn=oa()),jn===null&&(rr=Dn),Dn=jn,Dn}function In(){var Dn,jn;return Dn=rr,$n.charCodeAt(rr)===36?(jn=aa,rr++):(jn=null,zr===0&&Pn(ia)),jn!==null&&(Kr=Dn,jn=sa()),jn===null&&(rr=Dn),Dn=jn,Dn}function Vn(){var Dn,jn,Nr;return Dn=rr,jn=Fn(),jn!==null?(Nr=Mn(),Nr!==null?(Kr=Dn,jn=la(jn,Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Mn(){var Dn,jn,Nr;return zr++,Dn=rr,jn=zn(),jn!==null?(Nr=Zn(),Nr===null&&(Nr=eo),Nr!==null?(Kr=Dn,jn=da(jn,Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),zr--,Dn===null&&(jn=null,zr===0&&Pn(ua)),Dn}function zn(){var Dn;return Dn=qn(),Dn===null&&(Dn=Hn(),Dn===null&&(Dn=Jn(),Dn===null&&(Dn=ur(),Dn===null&&(Dn=yr(),Dn===null&&(Dn=sr()))))),Dn}function qn(){var Dn,jn,Nr,Gr,Xr,no;return Dn=rr,$n.charCodeAt(rr)===123?(jn=mo,rr++):(jn=null,zr===0&&Pn(vo)),jn!==null?(Nr=Kn(),Nr!==null?($n.charCodeAt(rr)===44?(Gr=fa,rr++):(Gr=null,zr===0&&Pn(pa)),Gr!==null?(Xr=Kn(),Xr!==null?($n.charCodeAt(rr)===125?(no=Co,rr++):(no=null,zr===0&&Pn(Eo)),no!==null?(Kr=Dn,jn=ha(Nr,Xr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Hn(){var Dn,jn,Nr,Gr;return Dn=rr,$n.charCodeAt(rr)===123?(jn=mo,rr++):(jn=null,zr===0&&Pn(vo)),jn!==null?(Nr=Kn(),Nr!==null?($n.substr(rr,2)===$o?(Gr=$o,rr+=2):(Gr=null,zr===0&&Pn(ma)),Gr!==null?(Kr=Dn,jn=va(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Jn(){var Dn,jn,Nr,Gr;return Dn=rr,$n.charCodeAt(rr)===123?(jn=mo,rr++):(jn=null,zr===0&&Pn(vo)),jn!==null?(Nr=Kn(),Nr!==null?($n.charCodeAt(rr)===125?(Gr=Co,rr++):(Gr=null,zr===0&&Pn(Eo)),Gr!==null?(Kr=Dn,jn=ga(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function ur(){var Dn,jn;return Dn=rr,$n.charCodeAt(rr)===43?(jn=ya,rr++):(jn=null,zr===0&&Pn(ba)),jn!==null&&(Kr=Dn,jn=Sa()),jn===null&&(rr=Dn),Dn=jn,Dn}function yr(){var Dn,jn;return Dn=rr,$n.charCodeAt(rr)===42?(jn=Ca,rr++):(jn=null,zr===0&&Pn(Ea)),jn!==null&&(Kr=Dn,jn=$a()),jn===null&&(rr=Dn),Dn=jn,Dn}function sr(){var Dn,jn;return Dn=rr,$n.charCodeAt(rr)===63?(jn=wo,rr++):(jn=null,zr===0&&Pn(To)),jn!==null&&(Kr=Dn,jn=wa()),jn===null&&(rr=Dn),Dn=jn,Dn}function Zn(){var Dn;return $n.charCodeAt(rr)===63?(Dn=wo,rr++):(Dn=null,zr===0&&Pn(To)),Dn}function Kn(){var Dn,jn,Nr;if(Dn=rr,jn=[],xo.test($n.charAt(rr))?(Nr=$n.charAt(rr),rr++):(Nr=null,zr===0&&Pn(Po)),Nr!==null)for(;Nr!==null;)jn.push(Nr),xo.test($n.charAt(rr))?(Nr=$n.charAt(rr),rr++):(Nr=null,zr===0&&Pn(Po));else jn=Vr;return jn!==null&&(Kr=Dn,jn=Ta(jn)),jn===null&&(rr=Dn),Dn=jn,Dn}function Wn(){var Dn,jn,Nr,Gr;return Dn=rr,$n.charCodeAt(rr)===40?(jn=xa,rr++):(jn=null,zr===0&&Pn(Pa)),jn!==null?(Nr=Gn(),Nr===null&&(Nr=Xn(),Nr===null&&(Nr=fr(),Nr===null&&(Nr=nr()))),Nr!==null?($n.charCodeAt(rr)===41?(Gr=ka,rr++):(Gr=null,zr===0&&Pn(Aa)),Gr!==null?(Kr=Dn,jn=Oa(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function nr(){var Dn,jn;return Dn=rr,jn=An(),jn!==null&&(Kr=Dn,jn=Ia(jn)),jn===null&&(rr=Dn),Dn=jn,Dn}function fr(){var Dn,jn,Nr;return Dn=rr,$n.substr(rr,2)===ko?(jn=ko,rr+=2):(jn=null,zr===0&&Pn(Na)),jn!==null?(Nr=An(),Nr!==null?(Kr=Dn,jn=Ma(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Gn(){var Dn,jn,Nr;return Dn=rr,$n.substr(rr,2)===Ao?(jn=Ao,rr+=2):(jn=null,zr===0&&Pn(Ra)),jn!==null?(Nr=An(),Nr!==null?(Kr=Dn,jn=Da(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Xn(){var Dn,jn,Nr;return Dn=rr,$n.substr(rr,2)===Oo?(jn=Oo,rr+=2):(jn=null,zr===0&&Pn(La)),jn!==null?(Nr=An(),Nr!==null?(Kr=Dn,jn=Ba(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function or(){var Dn,jn,Nr,Gr,Xr;if(zr++,Dn=rr,$n.charCodeAt(rr)===91?(jn=Fa,rr++):(jn=null,zr===0&&Pn(za)),jn!==null)if($n.charCodeAt(rr)===94?(Nr=bo,rr++):(Nr=null,zr===0&&Pn(So)),Nr===null&&(Nr=eo),Nr!==null){for(Gr=[],Xr=vr(),Xr===null&&(Xr=_r());Xr!==null;)Gr.push(Xr),Xr=vr(),Xr===null&&(Xr=_r());Gr!==null?($n.charCodeAt(rr)===93?(Xr=Ha,rr++):(Xr=null,zr===0&&Pn(Ua)),Xr!==null?(Kr=Dn,jn=ja(Nr,Gr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)}else rr=Dn,Dn=Vr;else rr=Dn,Dn=Vr;return zr--,Dn===null&&(jn=null,zr===0&&Pn(Va)),Dn}function vr(){var Dn,jn,Nr,Gr;return zr++,Dn=rr,jn=_r(),jn!==null?($n.charCodeAt(rr)===45?(Nr=Wa,rr++):(Nr=null,zr===0&&Pn(Ka)),Nr!==null?(Gr=_r(),Gr!==null?(Kr=Dn,jn=Ya(jn,Gr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),zr--,Dn===null&&(jn=null,zr===0&&Pn(Ga)),Dn}function _r(){var Dn;return zr++,Dn=Pr(),Dn===null&&(Dn=ir()),zr--,Dn===null&&zr===0&&Pn(qa),Dn}function ir(){var Dn,jn;return Dn=rr,Za.test($n.charAt(rr))?(jn=$n.charAt(rr),rr++):(jn=null,zr===0&&Pn(Xa)),jn!==null&&(Kr=Dn,jn=go(jn)),jn===null&&(rr=Dn),Dn=jn,Dn}function Pr(){var Dn;return Dn=dr(),Dn===null&&(Dn=br(),Dn===null&&(Dn=Lr(),Dn===null&&(Dn=Br(),Dn===null&&(Dn=Rr(),Dn===null&&(Dn=Sr(),Dn===null&&(Dn=Er(),Dn===null&&(Dn=cr(),Dn===null&&(Dn=Qn(),Dn===null&&(Dn=ar(),Dn===null&&(Dn=$r(),Dn===null&&(Dn=Ir(),Dn===null&&(Dn=Hr(),Dn===null&&(Dn=Ur(),Dn===null&&(Dn=jr(),Dn===null&&(Dn=Wr(),Dn===null&&(Dn=Zr(),Dn===null&&(Dn=Jr()))))))))))))))))),Dn}function gr(){var Dn;return Dn=kr(),Dn===null&&(Dn=lr(),Dn===null&&(Dn=pr())),Dn}function kr(){var Dn,jn;return Dn=rr,$n.charCodeAt(rr)===46?(jn=Ja,rr++):(jn=null,zr===0&&Pn(Qa)),jn!==null&&(Kr=Dn,jn=ei()),jn===null&&(rr=Dn),Dn=jn,Dn}function pr(){var Dn,jn;return zr++,Dn=rr,ni.test($n.charAt(rr))?(jn=$n.charAt(rr),rr++):(jn=null,zr===0&&Pn(ri)),jn!==null&&(Kr=Dn,jn=go(jn)),jn===null&&(rr=Dn),Dn=jn,zr--,Dn===null&&(jn=null,zr===0&&Pn(ti)),Dn}function lr(){var Dn;return Dn=hr(),Dn===null&&(Dn=Or(),Dn===null&&(Dn=br(),Dn===null&&(Dn=Lr(),Dn===null&&(Dn=Br(),Dn===null&&(Dn=Rr(),Dn===null&&(Dn=Sr(),Dn===null&&(Dn=Er(),Dn===null&&(Dn=cr(),Dn===null&&(Dn=Qn(),Dn===null&&(Dn=ar(),Dn===null&&(Dn=$r(),Dn===null&&(Dn=Ir(),Dn===null&&(Dn=Hr(),Dn===null&&(Dn=Mr(),Dn===null&&(Dn=Ur(),Dn===null&&(Dn=jr(),Dn===null&&(Dn=Wr(),Dn===null&&(Dn=Zr(),Dn===null&&(Dn=Jr()))))))))))))))))))),Dn}function dr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===so?(jn=so,rr+=2):(jn=null,zr===0&&Pn(Io)),jn!==null&&(Kr=Dn,jn=oi()),jn===null&&(rr=Dn),Dn=jn,Dn}function hr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===so?(jn=so,rr+=2):(jn=null,zr===0&&Pn(Io)),jn!==null&&(Kr=Dn,jn=ai()),jn===null&&(rr=Dn),Dn=jn,Dn}function Or(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===No?(jn=No,rr+=2):(jn=null,zr===0&&Pn(ii)),jn!==null&&(Kr=Dn,jn=si()),jn===null&&(rr=Dn),Dn=jn,Dn}function Lr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Mo?(jn=Mo,rr+=2):(jn=null,zr===0&&Pn(li)),jn!==null&&(Kr=Dn,jn=ui()),jn===null&&(rr=Dn),Dn=jn,Dn}function Br(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Ro?(jn=Ro,rr+=2):(jn=null,zr===0&&Pn(ci)),jn!==null&&(Kr=Dn,jn=di()),jn===null&&(rr=Dn),Dn=jn,Dn}function Rr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Do?(jn=Do,rr+=2):(jn=null,zr===0&&Pn(fi)),jn!==null&&(Kr=Dn,jn=pi()),jn===null&&(rr=Dn),Dn=jn,Dn}function Sr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Lo?(jn=Lo,rr+=2):(jn=null,zr===0&&Pn(hi)),jn!==null&&(Kr=Dn,jn=mi()),jn===null&&(rr=Dn),Dn=jn,Dn}function Er(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Bo?(jn=Bo,rr+=2):(jn=null,zr===0&&Pn(vi)),jn!==null&&(Kr=Dn,jn=gi()),jn===null&&(rr=Dn),Dn=jn,Dn}function cr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Vo?(jn=Vo,rr+=2):(jn=null,zr===0&&Pn(yi)),jn!==null&&(Kr=Dn,jn=_i()),jn===null&&(rr=Dn),Dn=jn,Dn}function Qn(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Fo?(jn=Fo,rr+=2):(jn=null,zr===0&&Pn(bi)),jn!==null&&(Kr=Dn,jn=Si()),jn===null&&(rr=Dn),Dn=jn,Dn}function ar(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===zo?(jn=zo,rr+=2):(jn=null,zr===0&&Pn(Ci)),jn!==null&&(Kr=Dn,jn=Ei()),jn===null&&(rr=Dn),Dn=jn,Dn}function $r(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Ho?(jn=Ho,rr+=2):(jn=null,zr===0&&Pn($i)),jn!==null&&(Kr=Dn,jn=wi()),jn===null&&(rr=Dn),Dn=jn,Dn}function Ir(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===Uo?(jn=Uo,rr+=2):(jn=null,zr===0&&Pn(Ti)),jn!==null&&(Kr=Dn,jn=xi()),jn===null&&(rr=Dn),Dn=jn,Dn}function Hr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===jo?(jn=jo,rr+=2):(jn=null,zr===0&&Pn(Pi)),jn!==null&&(Kr=Dn,jn=ki()),jn===null&&(rr=Dn),Dn=jn,Dn}function br(){var Dn,jn,Nr;return Dn=rr,$n.substr(rr,2)===Go?(jn=Go,rr+=2):(jn=null,zr===0&&Pn(Ai)),jn!==null?($n.length>rr?(Nr=$n.charAt(rr),rr++):(Nr=null,zr===0&&Pn(Wo)),Nr!==null?(Kr=Dn,jn=Oi(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Mr(){var Dn,jn,Nr;return Dn=rr,$n.charCodeAt(rr)===92?(jn=Ko,rr++):(jn=null,zr===0&&Pn(Yo)),jn!==null?(Ii.test($n.charAt(rr))?(Nr=$n.charAt(rr),rr++):(Nr=null,zr===0&&Pn(Ni)),Nr!==null?(Kr=Dn,jn=Mi(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}function Ur(){var Dn,jn,Nr,Gr;if(Dn=rr,$n.substr(rr,2)===uo?(jn=uo,rr+=2):(jn=null,zr===0&&Pn(qo)),jn!==null){if(Nr=[],Zo.test($n.charAt(rr))?(Gr=$n.charAt(rr),rr++):(Gr=null,zr===0&&Pn(Xo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),Zo.test($n.charAt(rr))?(Gr=$n.charAt(rr),rr++):(Gr=null,zr===0&&Pn(Xo));else Nr=Vr;Nr!==null?(Kr=Dn,jn=Ri(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)}else rr=Dn,Dn=Vr;return Dn}function jr(){var Dn,jn,Nr,Gr;if(Dn=rr,$n.substr(rr,2)===Jo?(jn=Jo,rr+=2):(jn=null,zr===0&&Pn(Di)),jn!==null){if(Nr=[],co.test($n.charAt(rr))?(Gr=$n.charAt(rr),rr++):(Gr=null,zr===0&&Pn(fo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),co.test($n.charAt(rr))?(Gr=$n.charAt(rr),rr++):(Gr=null,zr===0&&Pn(fo));else Nr=Vr;Nr!==null?(Kr=Dn,jn=Li(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)}else rr=Dn,Dn=Vr;return Dn}function Wr(){var Dn,jn,Nr,Gr;if(Dn=rr,$n.substr(rr,2)===Qo?(jn=Qo,rr+=2):(jn=null,zr===0&&Pn(Bi)),jn!==null){if(Nr=[],co.test($n.charAt(rr))?(Gr=$n.charAt(rr),rr++):(Gr=null,zr===0&&Pn(fo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),co.test($n.charAt(rr))?(Gr=$n.charAt(rr),rr++):(Gr=null,zr===0&&Pn(fo));else Nr=Vr;Nr!==null?(Kr=Dn,jn=Vi(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)}else rr=Dn,Dn=Vr;return Dn}function Zr(){var Dn,jn;return Dn=rr,$n.substr(rr,2)===uo?(jn=uo,rr+=2):(jn=null,zr===0&&Pn(qo)),jn!==null&&(Kr=Dn,jn=Fi()),jn===null&&(rr=Dn),Dn=jn,Dn}function Jr(){var Dn,jn,Nr;return Dn=rr,$n.charCodeAt(rr)===92?(jn=Ko,rr++):(jn=null,zr===0&&Pn(Yo)),jn!==null?($n.length>rr?(Nr=$n.charAt(rr),rr++):(Nr=null,zr===0&&Pn(Wo)),Nr!==null?(Kr=Dn,jn=go(Nr),jn===null&&(rr=Dn),Dn=jn):(rr=Dn,Dn=Vr)):(rr=Dn,Dn=Vr),Dn}var Ar,Dr=arguments.length>1?arguments[1]:{},Yr={regexp:An},qr=An,Vr=null,eo="",ro="|",ta='"|"',na=function(Dn,jn){return jn?new le(Dn,jn[1]):Dn},ra=function(Dn,jn,Nr){return new ue([Dn].concat(jn).concat([Nr]))},bo="^",So='"^"',oa=function(){return new ie("start")},aa="$",ia='"$"',sa=function(){return new ie("end")},la=function(Dn,jn){return new Ce(Dn,jn)},ua="Quantifier",da=function(Dn,jn){return jn&&(Dn.greedy=!1),Dn},mo="{",vo='"{"',fa=",",pa='","',Co="}",Eo='"}"',ha=function(Dn,jn){return new $e(Dn,jn)},$o=",}",ma='",}"',va=function(Dn){return new $e(Dn,1/0)},ga=function(Dn){return new $e(Dn,Dn)},ya="+",ba='"+"',Sa=function(){return new $e(1,1/0)},Ca="*",Ea='"*"',$a=function(){return new $e(0,1/0)},wo="?",To='"?"',wa=function(){return new $e(0,1)},xo=/^[0-9]/,Po="[0-9]",Ta=function(Dn){return+Dn.join("")},xa="(",Pa='"("',ka=")",Aa='")"',Oa=function(Dn){return Dn},Ia=function(Dn){return new _e(Dn)},ko="?:",Na='"?:"',Ma=function(Dn){return new pe("non-capture-group",Dn)},Ao="?=",Ra='"?="',Da=function(Dn){return new pe("positive-lookahead",Dn)},Oo="?!",La='"?!"',Ba=function(Dn){return new pe("negative-lookahead",Dn)},Va="CharacterSet",Fa="[",za='"["',Ha="]",Ua='"]"',ja=function(Dn,jn){return new xe(!!Dn,jn)},Ga="CharacterRange",Wa="-",Ka='"-"',Ya=function(Dn,jn){return new Ie(Dn,jn)},qa="Character",Za=/^[^\\\]]/,Xa="[^\\\\\\]]",go=function(Dn){return new ze(Dn)},Ja=".",Qa='"."',ei=function(){return new ie("any-character")},ti="Literal",ni=/^[^|\\\/.[()?+*$\^]/,ri="[^|\\\\\\/.[()?+*$\\^]",so="\\b",Io='"\\\\b"',oi=function(){return new ie("backspace")},ai=function(){return new ie("word-boundary")},No="\\B",ii='"\\\\B"',si=function(){return new ie("non-word-boundary")},Mo="\\d",li='"\\\\d"',ui=function(){return new ie("digit")},Ro="\\D",ci='"\\\\D"',di=function(){return new ie("non-digit")},Do="\\f",fi='"\\\\f"',pi=function(){return new ie("form-feed")},Lo="\\n",hi='"\\\\n"',mi=function(){return new ie("line-feed")},Bo="\\r",vi='"\\\\r"',gi=function(){return new ie("carriage-return")},Vo="\\s",yi='"\\\\s"',_i=function(){return new ie("white-space")},Fo="\\S",bi='"\\\\S"',Si=function(){return new ie("non-white-space")},zo="\\t",Ci='"\\\\t"',Ei=function(){return new ie("tab")},Ho="\\v",$i='"\\\\v"',wi=function(){return new ie("vertical-tab")},Uo="\\w",Ti='"\\\\w"',xi=function(){return new ie("word")},jo="\\W",Pi='"\\\\W"',ki=function(){return new ie("non-word")},Go="\\c",Ai='"\\\\c"',Wo="any character",Oi=function(Dn){return new hn(Dn)},Ko="\\",Yo='"\\\\"',Ii=/^[1-9]/,Ni="[1-9]",Mi=function(Dn){return new Lt(Dn)},uo="\\0",qo='"\\\\0"',Zo=/^[0-7]/,Xo="[0-7]",Ri=function(Dn){return new Et(Dn.join(""))},Jo="\\x",Di='"\\\\x"',co=/^[0-9a-fA-F]/,fo="[0-9a-fA-F]",Li=function(Dn){return new qe(Dn.join(""))},Qo="\\u",Bi='"\\\\u"',Vi=function(Dn){return new Ue(Dn.join(""))},Fi=function(){return new ie("null-character")},rr=0,Kr=0,ao=0,yo={line:1,column:1,seenCR:!1},po=0,ho=[],zr=0;if("startRule"in Dr){if(!(Dr.startRule in Yr))throw new Error(`Can't start parsing from rule "`+Dr.startRule+'".');qr=Yr[Dr.startRule]}if(ie.offset=Tn,ie.text=wn,Ar=qr(),Ar!==null&&rr===$n.length)return Ar;throw kn(ho),Kr=Math.max(rr,po),new Cn(ho,Kr<$n.length?$n.charAt(Kr):null,Kr,xn(Kr).line,xn(Kr).column)}return Sn(Cn,Error),{SyntaxError:Cn,parse:En}}(),_n=1,bn={};$.exports=vn},function($,z,ie){var le=ie(3),ue=ie(5),pe={extend:le.extend},_e=qe(97,122),Ce=qe(65,90),$e=qe(48,57),xe=qe(32,47)+qe(58,64)+qe(91,96)+qe(123,126),Ie=qe(32,126),ze=` \f
\r \v \u2028\u2029`,Ue={"\\w":_e+Ce+$e+"_","\\W":xe.replace("_",""),"\\s":ze,"\\S":function(){for(var Et=Ie,Lt=0;Lt<ze.length;Lt++)Et=Et.replace(ze[Lt],"");return Et}(),"\\d":$e,"\\D":_e+Ce+xe};function qe(Et,Lt){for(var hn="",vn=Et;vn<=Lt;vn++)hn+=String.fromCharCode(vn);return hn}pe.gen=function(Et,Lt,hn){return hn=hn||{guid:1},pe[Et.type]?pe[Et.type](Et,Lt,hn):pe.token(Et,Lt,hn)},pe.extend({token:function(Et,Lt,hn){switch(Et.type){case"start":case"end":return"";case"any-character":return ue.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return ue.pick($e.split(""));case"non-digit":return ue.pick((_e+Ce+xe).split(""));case"form-feed":break;case"line-feed":return Et.body||Et.text;case"carriage-return":break;case"white-space":return ue.pick(ze.split(""));case"non-white-space":return ue.pick((_e+Ce+$e).split(""));case"tab":break;case"vertical-tab":break;case"word":return ue.pick((_e+Ce+$e).split(""));case"non-word":return ue.pick(xe.replace("_","").split(""))}return Et.body||Et.text},alternate:function(Et,Lt,hn){return this.gen(ue.boolean()?Et.left:Et.right,Lt,hn)},match:function(Et,Lt,hn){Lt="";for(var vn=0;vn<Et.body.length;vn++)Lt+=this.gen(Et.body[vn],Lt,hn);return Lt},"capture-group":function(Et,Lt,hn){return Lt=this.gen(Et.body,Lt,hn),hn[hn.guid++]=Lt,Lt},"non-capture-group":function(Et,Lt,hn){return this.gen(Et.body,Lt,hn)},"positive-lookahead":function(Et,Lt,hn){return this.gen(Et.body,Lt,hn)},"negative-lookahead":function(Et,Lt,hn){return""},quantified:function(Et,Lt,hn){Lt="";for(var vn=this.quantifier(Et.quantifier),_n=0;_n<vn;_n++)Lt+=this.gen(Et.body,Lt,hn);return Lt},quantifier:function(Et,Lt,hn){var vn=Math.max(Et.min,0),_n=isFinite(Et.max)?Et.max:vn+ue.integer(3,7);return ue.integer(vn,_n)},charset:function(Et,Lt,hn){if(Et.invert)return this["invert-charset"](Et,Lt,hn);var vn=ue.pick(Et.body);return this.gen(vn,Lt,hn)},"invert-charset":function(Et,Lt,hn){for(var vn=Ie,_n=0,bn;_n<Et.body.length;_n++)switch(bn=Et.body[_n],bn.type){case"literal":vn=vn.replace(bn.body,"");break;case"range":for(var Sn=this.gen(bn.start,Lt,hn).charCodeAt(),Cn=this.gen(bn.end,Lt,hn).charCodeAt(),En=Sn;En<=Cn;En++)vn=vn.replace(String.fromCharCode(En),"");default:var $n=Ue[bn.text];if($n)for(var wn=0;wn<=$n.length;wn++)vn=vn.replace($n[wn],"")}return ue.pick(vn.split(""))},range:function(Et,Lt,hn){var vn=this.gen(Et.start,Lt,hn).charCodeAt(),_n=this.gen(Et.end,Lt,hn).charCodeAt();return String.fromCharCode(ue.integer(vn,_n))},literal:function(Et,Lt,hn){return Et.escaped?Et.body:Et.text},unicode:function(Et,Lt,hn){return String.fromCharCode(parseInt(Et.code,16))},hex:function(Et,Lt,hn){return String.fromCharCode(parseInt(Et.code,16))},octal:function(Et,Lt,hn){return String.fromCharCode(parseInt(Et.code,8))},"back-reference":function(Et,Lt,hn){return hn[Et.code]||""},CONTROL_CHARACTER_MAP:function(){for(var Et="@ 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(" "),Lt=`\0       \x07 \b
\v \f \r              \x1B    `.split(" "),hn={},vn=0;vn<Et.length;vn++)hn[Et[vn]]=Lt[vn];return hn}(),"control-character":function(Et,Lt,hn){return this.CONTROL_CHARACTER_MAP[Et.code]}}),$.exports=pe},function($,z,ie){$.exports=ie(24)},function($,z,ie){var le=ie(2),ue=ie(3),pe=ie(4);function _e(Ce,$e,xe){xe=xe||[];var Ie={name:typeof $e=="string"?$e.replace(le.RE_KEY,"$1"):$e,template:Ce,type:ue.type(Ce),rule:pe.parse($e)};switch(Ie.path=xe.slice(0),Ie.path.push($e===void 0?"ROOT":Ie.name),Ie.type){case"array":Ie.items=[],ue.each(Ce,function(ze,Ue){Ie.items.push(_e(ze,Ue,Ie.path))});break;case"object":Ie.properties=[],ue.each(Ce,function(ze,Ue){Ie.properties.push(_e(ze,Ue,Ie.path))});break}return Ie}$.exports=_e},function($,z,ie){$.exports=ie(26)},function($,z,ie){var le=ie(2),ue=ie(3),pe=ie(23);function _e(xe,Ie){for(var ze=pe(xe),Ue=Ce.diff(ze,Ie),qe=0;qe<Ue.length;qe++);return Ue}var Ce={diff:function(Ie,ze,Ue){var qe=[];return this.name(Ie,ze,Ue,qe)&&this.type(Ie,ze,Ue,qe)&&(this.value(Ie,ze,Ue,qe),this.properties(Ie,ze,Ue,qe),this.items(Ie,ze,Ue,qe)),qe},name:function(xe,Ie,ze,Ue){var qe=Ue.length;return $e.equal("name",xe.path,ze+"",xe.name+"",Ue),Ue.length===qe},type:function(xe,Ie,ze,Ue){var qe=Ue.length;switch(xe.type){case"string":if(xe.template.match(le.RE_PLACEHOLDER))return!0;break;case"array":if(xe.rule.parameters&&(xe.rule.min!==void 0&&xe.rule.max===void 0&&xe.rule.count===1||xe.rule.parameters[2]))return!0;break;case"function":return!0}return $e.equal("type",xe.path,ue.type(Ie),xe.type,Ue),Ue.length===qe},value:function(xe,Ie,ze,Ue){var qe=Ue.length,Et=xe.rule,Lt=xe.type;if(Lt==="object"||Lt==="array"||Lt==="function")return!0;if(!Et.parameters){switch(Lt){case"regexp":return $e.match("value",xe.path,Ie,xe.template,Ue),Ue.length===qe;case"string":if(xe.template.match(le.RE_PLACEHOLDER))return Ue.length===qe;break}return $e.equal("value",xe.path,Ie,xe.template,Ue),Ue.length===qe}var hn;switch(Lt){case"number":var vn=(Ie+"").split(".");vn[0]=+vn[0],Et.min!==void 0&&Et.max!==void 0&&($e.greaterThanOrEqualTo("value",xe.path,vn[0],Math.min(Et.min,Et.max),Ue),$e.lessThanOrEqualTo("value",xe.path,vn[0],Math.max(Et.min,Et.max),Ue)),Et.min!==void 0&&Et.max===void 0&&$e.equal("value",xe.path,vn[0],Et.min,Ue,"[value] "+ze),Et.decimal&&(Et.dmin!==void 0&&Et.dmax!==void 0&&($e.greaterThanOrEqualTo("value",xe.path,vn[1].length,Et.dmin,Ue),$e.lessThanOrEqualTo("value",xe.path,vn[1].length,Et.dmax,Ue)),Et.dmin!==void 0&&Et.dmax===void 0&&$e.equal("value",xe.path,vn[1].length,Et.dmin,Ue));break;case"boolean":break;case"string":hn=Ie.match(new RegExp(xe.template,"g")),hn=hn?hn.length:0,Et.min!==void 0&&Et.max!==void 0&&($e.greaterThanOrEqualTo("repeat count",xe.path,hn,Et.min,Ue),$e.lessThanOrEqualTo("repeat count",xe.path,hn,Et.max,Ue)),Et.min!==void 0&&Et.max===void 0&&$e.equal("repeat count",xe.path,hn,Et.min,Ue);break;case"regexp":hn=Ie.match(new RegExp(xe.template.source.replace(/^\^|\$$/g,""),"g")),hn=hn?hn.length:0,Et.min!==void 0&&Et.max!==void 0&&($e.greaterThanOrEqualTo("repeat count",xe.path,hn,Et.min,Ue),$e.lessThanOrEqualTo("repeat count",xe.path,hn,Et.max,Ue)),Et.min!==void 0&&Et.max===void 0&&$e.equal("repeat count",xe.path,hn,Et.min,Ue);break}return Ue.length===qe},properties:function(xe,Ie,ze,Ue){var qe=Ue.length,Et=xe.rule,Lt=ue.keys(Ie);if(xe.properties){if(xe.rule.parameters?(Et.min!==void 0&&Et.max!==void 0&&($e.greaterThanOrEqualTo("properties length",xe.path,Lt.length,Math.min(Et.min,Et.max),Ue),$e.lessThanOrEqualTo("properties length",xe.path,Lt.length,Math.max(Et.min,Et.max),Ue)),Et.min!==void 0&&Et.max===void 0&&Et.count!==1&&$e.equal("properties length",xe.path,Lt.length,Et.min,Ue)):$e.equal("properties length",xe.path,Lt.length,xe.properties.length,Ue),Ue.length!==qe)return!1;for(var hn=0;hn<Lt.length;hn++)Ue.push.apply(Ue,this.diff(function(){var vn;return ue.each(xe.properties,function(_n){_n.name===Lt[hn]&&(vn=_n)}),vn||xe.properties[hn]}(),Ie[Lt[hn]],Lt[hn]));return Ue.length===qe}},items:function(xe,Ie,ze,Ue){var qe=Ue.length;if(xe.items){var Et=xe.rule;if(!xe.rule.parameters)$e.equal("items length",xe.path,Ie.length,xe.items.length,Ue);else{if(Et.min!==void 0&&Et.max!==void 0&&($e.greaterThanOrEqualTo("items",xe.path,Ie.length,Math.min(Et.min,Et.max)*xe.items.length,Ue,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),$e.lessThanOrEqualTo("items",xe.path,Ie.length,Math.max(Et.min,Et.max)*xe.items.length,Ue,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),Et.min!==void 0&&Et.max===void 0){if(Et.count===1)return Ue.length===qe;$e.equal("items length",xe.path,Ie.length,Et.min*xe.items.length,Ue)}if(Et.parameters[2])return Ue.length===qe}if(Ue.length!==qe)return!1;for(var Lt=0;Lt<Ie.length;Lt++)Ue.push.apply(Ue,this.diff(xe.items[Lt%xe.items.length],Ie[Lt],Lt%xe.items.length));return Ue.length===qe}}},$e={message:function(xe){return(xe.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",xe.type.toUpperCase()).replace("{ltype}",xe.type.toLowerCase()).replace("{path}",ue.isArray(xe.path)&&xe.path.join(".")||xe.path).replace("{action}",xe.action).replace("{expected}",xe.expected).replace("{actual}",xe.actual)},equal:function(xe,Ie,ze,Ue,qe,Et){if(ze===Ue)return!0;switch(xe){case"type":if(Ue==="regexp"&&ze==="string")return!0;break}var Lt={path:Ie,type:xe,actual:ze,expected:Ue,action:"is equal to",message:Et};return Lt.message=$e.message(Lt),qe.push(Lt),!1},match:function(xe,Ie,ze,Ue,qe,Et){if(Ue.test(ze))return!0;var Lt={path:Ie,type:xe,actual:ze,expected:Ue,action:"matches",message:Et};return Lt.message=$e.message(Lt),qe.push(Lt),!1},notEqual:function(xe,Ie,ze,Ue,qe,Et){if(ze!==Ue)return!0;var Lt={path:Ie,type:xe,actual:ze,expected:Ue,action:"is not equal to",message:Et};return Lt.message=$e.message(Lt),qe.push(Lt),!1},greaterThan:function(xe,Ie,ze,Ue,qe,Et){if(ze>Ue)return!0;var Lt={path:Ie,type:xe,actual:ze,expected:Ue,action:"is greater than",message:Et};return Lt.message=$e.message(Lt),qe.push(Lt),!1},lessThan:function(xe,Ie,ze,Ue,qe,Et){if(ze<Ue)return!0;var Lt={path:Ie,type:xe,actual:ze,expected:Ue,action:"is less to",message:Et};return Lt.message=$e.message(Lt),qe.push(Lt),!1},greaterThanOrEqualTo:function(xe,Ie,ze,Ue,qe,Et){if(ze>=Ue)return!0;var Lt={path:Ie,type:xe,actual:ze,expected:Ue,action:"is greater than or equal to",message:Et};return Lt.message=$e.message(Lt),qe.push(Lt),!1},lessThanOrEqualTo:function(xe,Ie,ze,Ue,qe,Et){if(ze<=Ue)return!0;var Lt={path:Ie,type:xe,actual:ze,expected:Ue,action:"is less than or equal to",message:Et};return Lt.message=$e.message(Lt),qe.push(Lt),!1}};_e.Diff=Ce,_e.Assert=$e,$.exports=_e},function($,z,ie){$.exports=ie(28)},function($,z,ie){var le=ie(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(Et,Lt,hn,vn){var _n=document.createEvent("CustomEvent");return _n.initCustomEvent(Et,Lt,hn,vn),_n}}var ue={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},pe="readystatechange loadstart progress abort error load timeout loadend".split(" "),_e="timeout withCredentials".split(" "),Ce="readyState responseURL status statusText responseType response responseText responseXML".split(" "),$e={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 xe(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}xe._settings={timeout:"10-100"},xe.setup=function(qe){return le.extend(xe._settings,qe),xe._settings},le.extend(xe,ue),le.extend(xe.prototype,ue),xe.prototype.mock=!0,xe.prototype.match=!1,le.extend(xe.prototype,{open:function(qe,Et,Lt,hn,vn){var _n=this;le.extend(this.custom,{method:qe,url:Et,async:typeof Lt=="boolean"?Lt:!0,username:hn,password:vn,options:{url:Et,type:qe}}),this.custom.timeout=function(wn){if(typeof wn=="number")return wn;if(typeof wn=="string"&&!~wn.indexOf("-"))return parseInt(wn,10);if(typeof wn=="string"&&~wn.indexOf("-")){var Tn=wn.split("-"),xn=parseInt(Tn[0],10),Pn=parseInt(Tn[1],10);return Math.round(Math.random()*(Pn-xn))+xn}}(xe._settings.timeout);var bn=ze(this.custom.options);function Sn(wn){for(var Tn=0;Tn<Ce.length;Tn++)try{_n[Ce[Tn]]=Cn[Ce[Tn]]}catch{}_n.dispatchEvent(new Event(wn.type))}if(!bn){var Cn=Ie();this.custom.xhr=Cn;for(var En=0;En<pe.length;En++)Cn.addEventListener(pe[En],Sn);hn?Cn.open(qe,Et,Lt,hn,vn):Cn.open(qe,Et,Lt);for(var $n=0;$n<_e.length;$n++)try{Cn[_e[$n]]=_n[_e[$n]]}catch{}return}this.match=!0,this.custom.template=bn,this.readyState=xe.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(qe,Et){if(!this.match){this.custom.xhr.setRequestHeader(qe,Et);return}var Lt=this.custom.requestHeaders;Lt[qe]?Lt[qe]+=","+Et:Lt[qe]=Et},timeout:0,withCredentials:!1,upload:{},send:function(Et){var Lt=this;if(this.custom.options.body=Et,!this.match){this.custom.xhr.send(Et);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(hn,this.custom.timeout):hn();function hn(){Lt.readyState=xe.HEADERS_RECEIVED,Lt.dispatchEvent(new Event("readystatechange")),Lt.readyState=xe.LOADING,Lt.dispatchEvent(new Event("readystatechange")),Lt.status=200,Lt.statusText=$e[200],Lt.response=Lt.responseText=JSON.stringify(Ue(Lt.custom.template,Lt.custom.options),null,4),Lt.readyState=xe.DONE,Lt.dispatchEvent(new Event("readystatechange")),Lt.dispatchEvent(new Event("load")),Lt.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=xe.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),le.extend(xe.prototype,{responseURL:"",status:xe.UNSENT,statusText:"",getResponseHeader:function(qe){return this.match?this.custom.responseHeaders[qe.toLowerCase()]:this.custom.xhr.getResponseHeader(qe)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var qe=this.custom.responseHeaders,Et="";for(var Lt in qe)qe.hasOwnProperty(Lt)&&(Et+=Lt+": "+qe[Lt]+`\r
`);return Et},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),le.extend(xe.prototype,{addEventListener:function(Et,Lt){var hn=this.custom.events;hn[Et]||(hn[Et]=[]),hn[Et].push(Lt)},removeEventListener:function(Et,Lt){for(var hn=this.custom.events[Et]||[],vn=0;vn<hn.length;vn++)hn[vn]===Lt&&hn.splice(vn--,1)},dispatchEvent:function(Et){for(var Lt=this.custom.events[Et.type]||[],hn=0;hn<Lt.length;hn++)Lt[hn].call(this,Et);var vn="on"+Et.type;this[vn]&&this[vn](Et)}});function Ie(){var qe=function(){var hn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,vn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,_n=location.href,bn=vn.exec(_n.toLowerCase())||[];return hn.test(bn[1])}();return window.ActiveXObject?!qe&&Et()||Lt():Et();function Et(){try{return new window._XMLHttpRequest}catch{}}function Lt(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function ze(qe){for(var Et in xe.Mock._mocked){var Lt=xe.Mock._mocked[Et];if((!Lt.rurl||hn(Lt.rurl,qe.url))&&(!Lt.rtype||hn(Lt.rtype,qe.type.toLowerCase())))return Lt}function hn(vn,_n){if(le.type(vn)==="string")return vn===_n;if(le.type(vn)==="regexp")return vn.test(_n)}}function Ue(qe,Et){return le.isFunction(qe.template)?qe.template(Et):xe.Mock.mock(qe.template)}$.exports=xe}])})})(mock);var mockExports=mock.exports;const mockJs=getDefaultExportFromCjs(mockExports);function lexer($){for(var z=[],ie=0;ie<$.length;){var le=$[ie];if(le==="*"||le==="+"||le==="?"){z.push({type:"MODIFIER",index:ie,value:$[ie++]});continue}if(le==="\\"){z.push({type:"ESCAPED_CHAR",index:ie++,value:$[ie++]});continue}if(le==="{"){z.push({type:"OPEN",index:ie,value:$[ie++]});continue}if(le==="}"){z.push({type:"CLOSE",index:ie,value:$[ie++]});continue}if(le===":"){for(var ue="",pe=ie+1;pe<$.length;){var _e=$.charCodeAt(pe);if(_e>=48&&_e<=57||_e>=65&&_e<=90||_e>=97&&_e<=122||_e===95){ue+=$[pe++];continue}break}if(!ue)throw new TypeError("Missing parameter name at ".concat(ie));z.push({type:"NAME",index:ie,value:ue}),ie=pe;continue}if(le==="("){var Ce=1,$e="",pe=ie+1;if($[pe]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(pe));for(;pe<$.length;){if($[pe]==="\\"){$e+=$[pe++]+$[pe++];continue}if($[pe]===")"){if(Ce--,Ce===0){pe++;break}}else if($[pe]==="("&&(Ce++,$[pe+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(pe));$e+=$[pe++]}if(Ce)throw new TypeError("Unbalanced pattern at ".concat(ie));if(!$e)throw new TypeError("Missing pattern at ".concat(ie));z.push({type:"PATTERN",index:ie,value:$e}),ie=pe;continue}z.push({type:"CHAR",index:ie,value:$[ie++]})}return z.push({type:"END",index:ie,value:""}),z}function parse($,z){z===void 0&&(z={});for(var ie=lexer($),le=z.prefixes,ue=le===void 0?"./":le,pe="[^".concat(escapeString(z.delimiter||"/#?"),"]+?"),_e=[],Ce=0,$e=0,xe="",Ie=function(En){if($e<ie.length&&ie[$e].type===En)return ie[$e++].value},ze=function(En){var $n=Ie(En);if($n!==void 0)return $n;var wn=ie[$e],Tn=wn.type,xn=wn.index;throw new TypeError("Unexpected ".concat(Tn," at ").concat(xn,", expected ").concat(En))},Ue=function(){for(var En="",$n;$n=Ie("CHAR")||Ie("ESCAPED_CHAR");)En+=$n;return En};$e<ie.length;){var qe=Ie("CHAR"),Et=Ie("NAME"),Lt=Ie("PATTERN");if(Et||Lt){var hn=qe||"";ue.indexOf(hn)===-1&&(xe+=hn,hn=""),xe&&(_e.push(xe),xe=""),_e.push({name:Et||Ce++,prefix:hn,suffix:"",pattern:Lt||pe,modifier:Ie("MODIFIER")||""});continue}var vn=qe||Ie("ESCAPED_CHAR");if(vn){xe+=vn;continue}xe&&(_e.push(xe),xe="");var _n=Ie("OPEN");if(_n){var hn=Ue(),bn=Ie("NAME")||"",Sn=Ie("PATTERN")||"",Cn=Ue();ze("CLOSE"),_e.push({name:bn||(Sn?Ce++:""),pattern:bn&&!Sn?pe:Sn,prefix:hn,suffix:Cn,modifier:Ie("MODIFIER")||""});continue}ze("END")}return _e}function escapeString($){return $.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags($){return $&&$.sensitive?"":"i"}function regexpToRegexp($,z){if(!z)return $;for(var ie=/\((?:\?<(.*?)>)?(?!\?)/g,le=0,ue=ie.exec($.source);ue;)z.push({name:ue[1]||le++,prefix:"",suffix:"",modifier:"",pattern:""}),ue=ie.exec($.source);return $}function arrayToRegexp($,z,ie){var le=$.map(function(ue){return pathToRegexp(ue,z,ie).source});return new RegExp("(?:".concat(le.join("|"),")"),flags(ie))}function stringToRegexp($,z,ie){return tokensToRegexp(parse($,ie),z,ie)}function tokensToRegexp($,z,ie){ie===void 0&&(ie={});for(var le=ie.strict,ue=le===void 0?!1:le,pe=ie.start,_e=pe===void 0?!0:pe,Ce=ie.end,$e=Ce===void 0?!0:Ce,xe=ie.encode,Ie=xe===void 0?function(xn){return xn}:xe,ze=ie.delimiter,Ue=ze===void 0?"/#?":ze,qe=ie.endsWith,Et=qe===void 0?"":qe,Lt="[".concat(escapeString(Et),"]|$"),hn="[".concat(escapeString(Ue),"]"),vn=_e?"^":"",_n=0,bn=$;_n<bn.length;_n++){var Sn=bn[_n];if(typeof Sn=="string")vn+=escapeString(Ie(Sn));else{var Cn=escapeString(Ie(Sn.prefix)),En=escapeString(Ie(Sn.suffix));if(Sn.pattern)if(z&&z.push(Sn),Cn||En)if(Sn.modifier==="+"||Sn.modifier==="*"){var $n=Sn.modifier==="*"?"?":"";vn+="(?:".concat(Cn,"((?:").concat(Sn.pattern,")(?:").concat(En).concat(Cn,"(?:").concat(Sn.pattern,"))*)").concat(En,")").concat($n)}else vn+="(?:".concat(Cn,"(").concat(Sn.pattern,")").concat(En,")").concat(Sn.modifier);else Sn.modifier==="+"||Sn.modifier==="*"?vn+="((?:".concat(Sn.pattern,")").concat(Sn.modifier,")"):vn+="(".concat(Sn.pattern,")").concat(Sn.modifier);else vn+="(?:".concat(Cn).concat(En,")").concat(Sn.modifier)}}if($e)ue||(vn+="".concat(hn,"?")),vn+=ie.endsWith?"(?=".concat(Lt,")"):"$";else{var wn=$[$.length-1],Tn=typeof wn=="string"?hn.indexOf(wn[wn.length-1])>-1:wn===void 0;ue||(vn+="(?:".concat(hn,"(?=").concat(Lt,"))?")),Tn||(vn+="(?=".concat(hn,"|").concat(Lt,")"))}return new RegExp(vn,flags(ie))}function pathToRegexp($,z,ie){return $ instanceof RegExp?regexpToRegexp($,z):Array.isArray($)?arrayToRegexp($,z,ie):stringToRegexp($,z,ie)}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 ie in this.custom.requestHeaders)z[ie.toString().toLowerCase()]=this.custom.requestHeaders[ie];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:ie,response:le,timeout:ue}of $)__setupMock__(ue),Mock.mock(pathToRegexp(z,void 0,{end:!1}),ie||"get",__XHR2ExpressReqWrapper__(le))}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 ie=null;if(typeof $=="function"){const{body:le,type:ue,url:pe,headers:_e}=z;let Ce=le;try{Ce=JSON.parse(le)}catch{}ie=$({method:ue,body:Ce,query:__param2Obj__(pe),headers:_e})}else ie=$;return Mock.mock(ie)}}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 $,watch as A,Bn as B,normalizeStyle$1 as C,markRaw as D,toDisplayString$1 as E,Fragment as F,usePermissionStoreHook as G,extractPathList as H,transformI18n as I,deleteChildren as J,Ke as K,h$3 as L,H$1 as M,vt as N,On as O,getDefaultExportFromCjs as P,resolveDynamicComponent as Q,onUpdated as R,provide as S,onBeforeUpdate as T,Un as U,normalizeProps as V,guardReactiveProps as W,useI18n$1 as X,Yn 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,Fr as a6,getCurrentInstance as a7,toRefs as a8,onUnmounted as a9,k$1 as aA,defineStore as aB,tr 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,Rn as ak,http as al,onBeforeMount as am,TransitionGroup as an,normalizeClass as ao,vShow as ap,Cr as aq,dt as ar,Ge as as,Ve as at,Ze as au,tryOnMounted as av,tryOnUnmounted$1 as aw,useDebounceFn as ax,Qr 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,Ne as bC,initRouter as bD,getAuths as bE,hasAuth as bF,Fe as bG,handleTree as bH,Tr as bI,appendFieldByUniqueId as bJ,getNodeByUniqueId as bK,St as ba,$t as bb,data$1 as bc,Le as bd,Y as be,getTopMenu as bf,emitter as bg,Transition as bh,handleAliveRoute as bi,P$1 as bj,data as bk,routerArrays as bl,At as bm,KeepAlive as bn,removeToken as bo,er 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,nn as by,LinearGradient$1 as bz,createBlock as c,defineComponent as d,openBlock as e,createVNode as f,createTextVNode as g,createBaseVNode as h,resolveDirective as i,createElementBlock as j,renderList as k,lo 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,unref as u,toRef$1 as v,withCtx as w,tn as x,computed as y,zt as z};