diff --git a/public/CHANGELOG.md b/public/CHANGELOG.md index 2fb3ccd7..12062269 100644 --- a/public/CHANGELOG.md +++ b/public/CHANGELOG.md @@ -2,6 +2,7 @@ ## Core - replacer %n option noLocaleNumber deprecated -> removed! - bugfix for update readings directly +- bugfix for change imageGradient in case of changing theme ## Panel - bugfix for hide/show Levels # v4.0.26-beta (13.03.2024) diff --git a/src/components/OptionsMenu.vue b/src/components/OptionsMenu.vue index e7613cfe..77a14071 100644 --- a/src/components/OptionsMenu.vue +++ b/src/components/OptionsMenu.vue @@ -2,13 +2,10 @@ import { computed } from 'vue' import { useFhemStore } from '@/stores/fhem' import router from '@/router' - import { useTheme } from 'vuetify' import { useI18n } from 'vue-i18n' const fhem = useFhemStore() - const theme = useTheme() - const i18n = useI18n() const options = computed(() => { @@ -40,10 +37,8 @@ if(option.name === 'settings') router.push({ name: 'settings', query: router.currentRoute.value.query }) - if(option.name === 'darkMode') { - theme.global.name.value = theme.global.name.value === 'dark' ? 'light' : 'dark' - } - + if(option.name === 'darkMode') fhem.changeDarkMode() + if(option.cmd) fhem.request('text', option.cmd) } diff --git a/src/stores/fhem.js b/src/stores/fhem.js index b3049261..d2799c1b 100644 --- a/src/stores/fhem.js +++ b/src/stores/fhem.js @@ -142,14 +142,28 @@ export const useFhemStore = defineStore('fhem', () => { window.open(app.helpURL + anchor, '_blank') } + //coreFunction to switch darkMode + function changeDarkMode(mode) { + let primaryColor + + if(mode !== theme.global.name.value) { + theme.global.name.value = theme.global.name.value === 'dark'? 'light' : 'dark' + + if(!app.config.header.imageGradient) { + primaryColor = theme.global.current.value.colors.primary + app.header.imageGradient = "to top ," + hexToRgbA(primaryColor, 0.6) + ", " + hexToRgbA(primaryColor, 0.6) + } + } + } + //coreFunction to change darkMode function initDarkMode() { let darkMode = window.matchMedia('(prefers-color-scheme: dark') - theme.global.name.value = darkMode.matches ? 'dark' : 'light' + changeDarkMode(darkMode.matches ? 'dark' : 'light') darkMode.addEventListener('change', (obj) => { - if(!app.settings.dark) theme.global.name.value = obj.matches ? 'dark' : 'light' + if(!app.settings.dark) changeDarkMode(obj.matches ? 'dark' : 'light') }) } @@ -945,7 +959,7 @@ export const useFhemStore = defineStore('fhem', () => { let res = handleURL(to) if(res.langChanged) i18n.locale.value = app.settings.lang - if(res.darkChanged) theme.global.name.value = app.settings.dark === '0' ? 'light' : 'dark' + if(res.darkChanged) changeDarkMode(app.settings.dark === '0' ? 'light' : 'dark') if(res.connChanged || !app.isReady) return createSession(true) if(res.configChanged) return location.reload() if(res.routeChanged) loadPanelView() @@ -955,5 +969,5 @@ export const useFhemStore = defineStore('fhem', () => { //FHEMApp entryPoint router.isReady().then(init()) - return { app, getEl, handleDefs, getIcon, replacer, createSession, request, thread, stringToJson, log, help } + return { app, getEl, handleDefs, getIcon, replacer, createSession, request, thread, stringToJson, log, help, changeDarkMode } }) \ No newline at end of file diff --git a/www/fhemapp4/CHANGELOG.md b/www/fhemapp4/CHANGELOG.md index 2fb3ccd7..12062269 100644 --- a/www/fhemapp4/CHANGELOG.md +++ b/www/fhemapp4/CHANGELOG.md @@ -2,6 +2,7 @@ ## Core - replacer %n option noLocaleNumber deprecated -> removed! - bugfix for update readings directly +- bugfix for change imageGradient in case of changing theme ## Panel - bugfix for hide/show Levels # v4.0.26-beta (13.03.2024) diff --git a/www/fhemapp4/assets/DevicesView-ee2916a1.js b/www/fhemapp4/assets/DevicesView-19ff0647.js similarity index 86% rename from www/fhemapp4/assets/DevicesView-ee2916a1.js rename to www/fhemapp4/assets/DevicesView-19ff0647.js index 8209affc..799671d8 100644 --- a/www/fhemapp4/assets/DevicesView-ee2916a1.js +++ b/www/fhemapp4/assets/DevicesView-19ff0647.js @@ -1 +1 @@ -import{u as f,c as p,r as c,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-f08ede37.js";import{_ as x}from"./PanelCard-8f1b1033.js";const b={__name:"DevicesView",setup(g){const s=f(),m=p(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const a of s.app.panelView)s.handleDefs(s.app.panelList[a].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[a]);e.sort((a,t)=>o(a)>o(t)?1:o(t)>o(a)?-1:0)}return e}),l=p(()=>{let e={cols:12,sm:6,lg:4};return s.app.panelMaximized&&(e={cols:12}),e});function o(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,a)=>{const t=c("v-col"),_=c("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(t,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{b as default}; +import{u as f,c as p,r as c,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-1b2ccf17.js";import{_ as x}from"./PanelCard-bac08c4a.js";const b={__name:"DevicesView",setup(g){const s=f(),m=p(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const a of s.app.panelView)s.handleDefs(s.app.panelList[a].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[a]);e.sort((a,t)=>o(a)>o(t)?1:o(t)>o(a)?-1:0)}return e}),l=p(()=>{let e={cols:12,sm:6,lg:4};return s.app.panelMaximized&&(e={cols:12}),e});function o(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,a)=>{const t=c("v-col"),_=c("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(t,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{b as default}; diff --git a/www/fhemapp4/assets/InternalsView-7d458d8e.js b/www/fhemapp4/assets/InternalsView-06962020.js similarity index 90% rename from www/fhemapp4/assets/InternalsView-7d458d8e.js rename to www/fhemapp4/assets/InternalsView-06962020.js index b837ec79..c2833d70 100644 --- a/www/fhemapp4/assets/InternalsView-7d458d8e.js +++ b/www/fhemapp4/assets/InternalsView-06962020.js @@ -1 +1 @@ -import{u as x,V as C}from"./index-e00a95bd.js";import{f as k,u as B,r as e,o as N,a as S,w as o,e as t,j as p,t as i,q as $,h as r}from"./index-f08ede37.js";const O={__name:"InternalsView",setup(I){const n=k(!0),a=B(),{toClipboard:u}=x();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),V=e("v-card-text"),y=e("v-card");return N(),S(y,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(V,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,$(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{O as default}; +import{u as x,V as C}from"./index-769e4e34.js";import{f as k,u as B,r as e,o as N,a as S,w as o,e as t,j as p,t as i,q as $,h as r}from"./index-1b2ccf17.js";const O={__name:"InternalsView",setup(I){const n=k(!0),a=B(),{toClipboard:u}=x();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),V=e("v-card-text"),y=e("v-card");return N(),S(y,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(V,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,$(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{O as default}; diff --git a/www/fhemapp4/assets/PanelCard-8f1b1033.js b/www/fhemapp4/assets/PanelCard-bac08c4a.js similarity index 99% rename from www/fhemapp4/assets/PanelCard-8f1b1033.js rename to www/fhemapp4/assets/PanelCard-bac08c4a.js index b869f0df..f8fe0405 100644 --- a/www/fhemapp4/assets/PanelCard-8f1b1033.js +++ b/www/fhemapp4/assets/PanelCard-bac08c4a.js @@ -1,4 +1,4 @@ -import{u as G,c as S,r as b,o as m,b as V,y as q,t as F,k,a as E,w as z,j as J,z as De,F as Z,e as y,A as we,f as N,q as te,d as ve,l as Re,B as ne,C as ae,D as Me,E as Pe,s as Q,G as ze,x as me,H as Oe,m as ke,I as Te,J as Ve,h as K,K as je,L as Ie,i as Fe,p as Ne,M as Ue,N as He,O as qe,P as Be}from"./index-f08ede37.js";const We={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=G(),o=S(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),u=S(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=S(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),i=S(()=>{let a=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),r=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a});return(a,l)=>{const c=b("v-icon"),_=b("v-progress-circular"),C=b("v-progress-linear");return m(),V(Z,null,[e.el.text?(m(),V("div",{key:0,class:q(o.value.format)},F(o.value.text),3)):k("",!0),e.el.icon?(m(),E(c,{key:1,color:i.value.color,size:i.value.size},{default:z(()=>[J(F(i.value.icon),1)]),_:1},8,["color","size"])):k("",!0),e.el.status&&!r.value.linear?(m(),E(_,{key:2,width:"4",modelValue:r.value.level,"onUpdate:modelValue":l[0]||(l[0]=w=>r.value.level=w),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):k("",!0),e.el.status&&r.value.linear?(m(),E(C,{key:3,height:"7",rounded:"",modelValue:r.value.level,"onUpdate:modelValue":l[1]||(l[1]=w=>r.value.level=w),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):k("",!0),De("div",{class:q(e.el.text2?u.value.format:s.value.format)},[e.el.text2?(m(),V("span",{key:0,class:q(u.value.format)},F(u.value.text),3)):k("",!0),e.el.text3?(m(),V("span",{key:1,class:q(s.value.format)},F(s.value.text),3)):k("",!0)],2)],64)}}},Ke={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=S(()=>{let a=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),u=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a}),s={timer:!1,long:!1};function i(a){let l=[],c=a.cmd;if(a.type==="cmd"){for(const _ of t.devices)l=_.split(":"),RegExp(l[0]).test(c)&&(c=c.replace(l[0],l[1]));n.request("text",c)}a.type==="route"&&we.push({name:"devices",params:{view:a.cmd},query:we.currentRoute.value.query}),a.type==="url"&&window.open(a.cmd,"_self")}function r(a){let l=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),_=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0);a==="mouseStart"&&(s.timer=setTimeout(()=>{s.long=!0,c.cmd&&i(c)},1e3)),a==="mouseEnd"&&(s.long?_.cmd&&i(_):l.cmd&&i(l),clearTimeout(s.timer),s.long=!1)}return(a,l)=>{const c=b("v-progress-linear"),_=b("v-icon"),C=b("v-btn");return m(),V(Z,null,[e.el.status?(m(),E(c,{key:0,height:"4",modelValue:u.value.level,"onUpdate:modelValue":l[0]||(l[0]=w=>u.value.level=w),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])):k("",!0),y(C,{icon:"",variant:o.value.variant,disabled:o.value.disabled,color:o.value.color,onMousedown:l[1]||(l[1]=w=>r("mouseStart")),onMouseup:l[2]||(l[2]=w=>r("mouseEnd")),class:"my-2"},{default:z(()=>[y(_,{size:"large"},{default:z(()=>[J(F(o.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Je={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=N();function u(a){o.value=a}const s=S(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",o.value)),u(a.current),a});let i=null;function r(a){let l=s.value.cmd,c=/\./.exec(s.value.steps),_=0,C=[];c&&(_=s.value.steps.slice(c.index).length-1),l=l.replace("%v",a.toFixed(_));for(const w of t.devices)C=w.split(":"),RegExp(C[0]).test(l)&&(l=l.replace(C[0],C[1]));clearTimeout(i),i=setTimeout(()=>{n.request("text",l)},500)}return(a,l)=>{const c=b("v-slider");return m(),E(c,{modelValue:o.value,"onUpdate:modelValue":[l[0]||(l[0]=_=>o.value=_),l[1]||(l[1]=_=>r(_))],min:s.value.min,max:s.value.max,step:s.value.steps,reverse:s.value.reverse,direction:s.value.vertical?"vertical":"horizontal","track-size":s.value.size,color:s.value.color,"hide-details":"","thumb-label":""},null,8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},Ge={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=N(!1),u=S(()=>n.handleDefs(t.el.image,["source","height"],["",null]));return(s,i)=>{const r=b("v-skeleton-loader"),a=b("v-img");return m(),V(Z,null,[o.value?k("",!0):(m(),E(r,{key:0,type:"image"})),y(a,{src:u.value.source,height:u.value.height,onLoad:i[0]||(i[0]=l=>o.value=!0)},null,8,["src","height"])],64)}}},Ye={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=S(()=>{let i=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return i.icon&&(i.icon=n.getIcon(i.icon,t.iconmap)),i}),u=S(()=>{let i=[],r=n.handleDefs(t.el.menu,["name","cmd"],["",""],!0,","),a={};for(const l of r)a={name:/:/.test(l.name)?l.name.split(":")[0]:l.name,cmd:/:/.test(l.cmd)?l.cmd.split(":")[1]:l.cmd},i.push(a);return i});function s(i){let r=[];for(const a of t.devices)r=a.split(":"),RegExp(r[0]).test(i)&&(i=i.replace(r[0],r[1]));n.request("text",i)}return(i,r)=>{const a=b("v-icon"),l=b("v-btn"),c=b("v-list-item-title"),_=b("v-list-item"),C=b("v-list"),w=b("v-menu");return m(),E(w,null,{activator:z(({props:h})=>[y(l,te(h,{icon:"",variant:o.value.variant,disabled:o.value.disabled||u.value.length<1,color:o.value.color,class:"my-2"}),{default:z(()=>[y(a,{size:"large"},{default:z(()=>[J(F(o.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:z(()=>[y(C,null,{default:z(()=>[(m(!0),V(Z,null,ve(u.value,(h,f)=>(m(),E(_,{key:f,value:f,onClick:v=>s(h.cmd)},{default:z(()=>[y(c,null,{default:z(()=>[J(F(h.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var ue=null;function Ze(e){return ue||(ue=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),ue(e)}var ce=null;function Xe(e){ce||(ce=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),ce(e)}function Qe(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function re(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(o){n[o]=t[o]}),n}function Le(e,t,n){var o=window.getComputedStyle(e,n||null)||{display:"none"};return o[t]}function fe(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Le(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var $e='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',_e=0,le=null;function et(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=at.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var o=e.offsetWidth,u=e.offsetHeight,s=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===o&&e.offsetHeight===u)||ie(e)}),i=fe(e),r=i.detached,a=i.rendered;e.__resize_observer_triggered__=r===!1&&a===!1,e.__resize_observer__=s,s.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ie(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(_e||(le=Qe($e)),rt(e),e.__resize_rendered__=fe(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(t),_e++}function tt(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",he),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--_e&&le&&le.parentNode.removeChild(le)}}function nt(e){var t=e.__resize_last__,n=t.width,o=t.height,u=e.offsetWidth,s=e.offsetHeight;return u!==n||s!==o?{width:u,height:s}:null}function at(){var e=fe(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(pe(this),this.addEventListener("scroll",he,!0)),this.__resize_rendered__=t,ie(this))}function he(){var e=this;pe(this),this.__resize_raf__&&Xe(this.__resize_raf__),this.__resize_raf__=Ze(function(){var t=nt(e);t&&(e.__resize_last__=t,ie(e))})}function ie(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function rt(e){var t=Le(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=re("div",{className:"resize-triggers"}),o=re("div",{className:"resize-expand-trigger"}),u=re("div"),s=re("div",{className:"resize-contract-trigger"});o.appendChild(u),n.appendChild(o),n.appendChild(s),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:o,expandChild:u,contract:s},pe(e),e.addEventListener("scroll",he,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function pe(e){var t=e.__resize_triggers__,n=t.expand,o=t.expandChild,u=t.contract,s=u.scrollWidth,i=u.scrollHeight,r=n.offsetWidth,a=n.offsetHeight,l=n.scrollWidth,c=n.scrollHeight;u.scrollLeft=s,u.scrollTop=i,o.style.width=r+1+"px",o.style.height=a+1+"px",n.scrollLeft=l,n.scrollTop=c}var W=function(){return W=Object.assign||function(e){for(var t,n=1,o=arguments.length;nn.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),u=S(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=S(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),i=S(()=>{let a=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),r=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a});return(a,l)=>{const c=b("v-icon"),_=b("v-progress-circular"),C=b("v-progress-linear");return m(),V(Z,null,[e.el.text?(m(),V("div",{key:0,class:q(o.value.format)},F(o.value.text),3)):k("",!0),e.el.icon?(m(),E(c,{key:1,color:i.value.color,size:i.value.size},{default:z(()=>[J(F(i.value.icon),1)]),_:1},8,["color","size"])):k("",!0),e.el.status&&!r.value.linear?(m(),E(_,{key:2,width:"4",modelValue:r.value.level,"onUpdate:modelValue":l[0]||(l[0]=w=>r.value.level=w),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):k("",!0),e.el.status&&r.value.linear?(m(),E(C,{key:3,height:"7",rounded:"",modelValue:r.value.level,"onUpdate:modelValue":l[1]||(l[1]=w=>r.value.level=w),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):k("",!0),De("div",{class:q(e.el.text2?u.value.format:s.value.format)},[e.el.text2?(m(),V("span",{key:0,class:q(u.value.format)},F(u.value.text),3)):k("",!0),e.el.text3?(m(),V("span",{key:1,class:q(s.value.format)},F(s.value.text),3)):k("",!0)],2)],64)}}},Ke={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=S(()=>{let a=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),u=S(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a}),s={timer:!1,long:!1};function i(a){let l=[],c=a.cmd;if(a.type==="cmd"){for(const _ of t.devices)l=_.split(":"),RegExp(l[0]).test(c)&&(c=c.replace(l[0],l[1]));n.request("text",c)}a.type==="route"&&we.push({name:"devices",params:{view:a.cmd},query:we.currentRoute.value.query}),a.type==="url"&&window.open(a.cmd,"_self")}function r(a){let l=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),_=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0);a==="mouseStart"&&(s.timer=setTimeout(()=>{s.long=!0,c.cmd&&i(c)},1e3)),a==="mouseEnd"&&(s.long?_.cmd&&i(_):l.cmd&&i(l),clearTimeout(s.timer),s.long=!1)}return(a,l)=>{const c=b("v-progress-linear"),_=b("v-icon"),C=b("v-btn");return m(),V(Z,null,[e.el.status?(m(),E(c,{key:0,height:"4",modelValue:u.value.level,"onUpdate:modelValue":l[0]||(l[0]=w=>u.value.level=w),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])):k("",!0),y(C,{icon:"",variant:o.value.variant,disabled:o.value.disabled,color:o.value.color,onMousedown:l[1]||(l[1]=w=>r("mouseStart")),onMouseup:l[2]||(l[2]=w=>r("mouseEnd")),class:"my-2"},{default:z(()=>[y(_,{size:"large"},{default:z(()=>[J(F(o.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Je={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=N();function u(a){o.value=a}const s=S(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",o.value)),u(a.current),a});let i=null;function r(a){let l=s.value.cmd,c=/\./.exec(s.value.steps),_=0,C=[];c&&(_=s.value.steps.slice(c.index).length-1),l=l.replace("%v",a.toFixed(_));for(const w of t.devices)C=w.split(":"),RegExp(C[0]).test(l)&&(l=l.replace(C[0],C[1]));clearTimeout(i),i=setTimeout(()=>{n.request("text",l)},500)}return(a,l)=>{const c=b("v-slider");return m(),E(c,{modelValue:o.value,"onUpdate:modelValue":[l[0]||(l[0]=_=>o.value=_),l[1]||(l[1]=_=>r(_))],min:s.value.min,max:s.value.max,step:s.value.steps,reverse:s.value.reverse,direction:s.value.vertical?"vertical":"horizontal","track-size":s.value.size,color:s.value.color,"hide-details":"","thumb-label":""},null,8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},Ge={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=N(!1),u=S(()=>n.handleDefs(t.el.image,["source","height"],["",null]));return(s,i)=>{const r=b("v-skeleton-loader"),a=b("v-img");return m(),V(Z,null,[o.value?k("",!0):(m(),E(r,{key:0,type:"image"})),y(a,{src:u.value.source,height:u.value.height,onLoad:i[0]||(i[0]=l=>o.value=!0)},null,8,["src","height"])],64)}}},Ye={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),o=S(()=>{let i=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return i.icon&&(i.icon=n.getIcon(i.icon,t.iconmap)),i}),u=S(()=>{let i=[],r=n.handleDefs(t.el.menu,["name","cmd"],["",""],!0,","),a={};for(const l of r)a={name:/:/.test(l.name)?l.name.split(":")[0]:l.name,cmd:/:/.test(l.cmd)?l.cmd.split(":")[1]:l.cmd},i.push(a);return i});function s(i){let r=[];for(const a of t.devices)r=a.split(":"),RegExp(r[0]).test(i)&&(i=i.replace(r[0],r[1]));n.request("text",i)}return(i,r)=>{const a=b("v-icon"),l=b("v-btn"),c=b("v-list-item-title"),_=b("v-list-item"),C=b("v-list"),w=b("v-menu");return m(),E(w,null,{activator:z(({props:h})=>[y(l,te(h,{icon:"",variant:o.value.variant,disabled:o.value.disabled||u.value.length<1,color:o.value.color,class:"my-2"}),{default:z(()=>[y(a,{size:"large"},{default:z(()=>[J(F(o.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:z(()=>[y(C,null,{default:z(()=>[(m(!0),V(Z,null,ve(u.value,(h,f)=>(m(),E(_,{key:f,value:f,onClick:v=>s(h.cmd)},{default:z(()=>[y(c,null,{default:z(()=>[J(F(h.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var ue=null;function Ze(e){return ue||(ue=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),ue(e)}var ce=null;function Xe(e){ce||(ce=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),ce(e)}function Qe(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function re(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(o){n[o]=t[o]}),n}function Le(e,t,n){var o=window.getComputedStyle(e,n||null)||{display:"none"};return o[t]}function fe(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Le(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var $e='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',_e=0,le=null;function et(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=at.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var o=e.offsetWidth,u=e.offsetHeight,s=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===o&&e.offsetHeight===u)||ie(e)}),i=fe(e),r=i.detached,a=i.rendered;e.__resize_observer_triggered__=r===!1&&a===!1,e.__resize_observer__=s,s.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ie(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(_e||(le=Qe($e)),rt(e),e.__resize_rendered__=fe(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(t),_e++}function tt(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",he),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--_e&&le&&le.parentNode.removeChild(le)}}function nt(e){var t=e.__resize_last__,n=t.width,o=t.height,u=e.offsetWidth,s=e.offsetHeight;return u!==n||s!==o?{width:u,height:s}:null}function at(){var e=fe(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(pe(this),this.addEventListener("scroll",he,!0)),this.__resize_rendered__=t,ie(this))}function he(){var e=this;pe(this),this.__resize_raf__&&Xe(this.__resize_raf__),this.__resize_raf__=Ze(function(){var t=nt(e);t&&(e.__resize_last__=t,ie(e))})}function ie(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function rt(e){var t=Le(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=re("div",{className:"resize-triggers"}),o=re("div",{className:"resize-expand-trigger"}),u=re("div"),s=re("div",{className:"resize-contract-trigger"});o.appendChild(u),n.appendChild(o),n.appendChild(s),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:o,expandChild:u,contract:s},pe(e),e.addEventListener("scroll",he,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function pe(e){var t=e.__resize_triggers__,n=t.expand,o=t.expandChild,u=t.contract,s=u.scrollWidth,i=u.scrollHeight,r=n.offsetWidth,a=n.offsetHeight,l=n.scrollWidth,c=n.scrollHeight;u.scrollLeft=s,u.scrollTop=i,o.style.width=r+1+"px",o.style.height=a+1+"px",n.scrollLeft=l,n.scrollTop=c}var W=function(){return W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n"u"||typeof customElements>"u")return $=!1;try{new Function("tag",`class EChartsElement extends HTMLElement { __dispose = null; diff --git a/www/fhemapp4/assets/SettingsView-81bbd48a.js b/www/fhemapp4/assets/SettingsView-83a39733.js similarity index 99% rename from www/fhemapp4/assets/SettingsView-81bbd48a.js rename to www/fhemapp4/assets/SettingsView-83a39733.js index 2da4f7c1..50d945fc 100644 --- a/www/fhemapp4/assets/SettingsView-81bbd48a.js +++ b/www/fhemapp4/assets/SettingsView-83a39733.js @@ -1,4 +1,4 @@ -import{u as tt,f as Ne,g as ar,r as V,o as G,a as X,w as T,e as E,h as z,b as ze,F as Xe,d as st,i as Nn,j as _e,t as et,k as re,l as Or,m as mt,c as De,n as Cr,v as Tr,p as ir,q as lr,s as wr,x as Pr}from"./index-f08ede37.js";import{c as An,g as Dr,r as Ar,a as $r,u as Fr,V as Rr}from"./index-e00a95bd.js";import{_ as Vr}from"./PanelCard-8f1b1033.js";const de="_app.settings.header.",jr={__name:"SettingsHeader",setup(s){const t=tt(),n={required:r=>!!r||t.replacer("%t(_app.settings.rules.required)")},i=Ne(),o=ar({name:"",title:"",icon:"",cmd:""});function u(){t.app.config.header.commands||(t.app.config.header.commands=[]),t.app.config.header.commands.push(JSON.parse(JSON.stringify(o))),i.value.reset()}function e(r){t.app.config.header.commands.splice(r,1)}return(r,a)=>{const l=V("v-btn"),d=V("v-list-item"),c=V("v-text-field"),v=V("v-col"),m=V("v-checkbox"),f=V("v-row"),g=V("v-divider"),y=V("v-form"),S=V("v-list");return G(),X(S,null,{default:T(()=>[E(d,{title:r.$t(de+"barTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[0]||(a[0]=p=>z(t).help("kopfzeile"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageUrlPlaceholder"),label:r.$t(de+"imageUrl"),modelValue:z(t).app.config.header.imageUrl,"onUpdate:modelValue":a[1]||(a[1]=p=>z(t).app.config.header.imageUrl=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageGradientPlaceholder"),label:r.$t(de+"imageGradient"),modelValue:z(t).app.config.header.imageGradient,"onUpdate:modelValue":a[2]||(a[2]=p=>z(t).app.config.header.imageGradient=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTimeHint"),label:r.$t(de+"showTime"),modelValue:z(t).app.config.header.showTime,"onUpdate:modelValue":a[3]||(a[3]=p=>z(t).app.config.header.showTime=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showDateHint"),label:r.$t(de+"showDate"),modelValue:z(t).app.config.header.showDate,"onUpdate:modelValue":a[4]||(a[4]=p=>z(t).app.config.header.showDate=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTitleHint"),label:r.$t(de+"showTitle"),modelValue:z(t).app.config.header.showTitle,"onUpdate:modelValue":a[5]||(a[5]=p=>z(t).app.config.header.showTitle=p)},null,8,["hint","label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[6]||(a[6]=p=>z(t).help("optionsmenü"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showDarkMode"),modelValue:z(t).app.config.header.showDarkMode,"onUpdate:modelValue":a[7]||(a[7]=p=>z(t).app.config.header.showDarkMode=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showReloadPage"),modelValue:z(t).app.config.header.showReloadPage,"onUpdate:modelValue":a[8]||(a[8]=p=>z(t).app.config.header.showReloadPage=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showSettings"),modelValue:z(t).app.config.header.showSettings,"onUpdate:modelValue":a[9]||(a[9]=p=>z(t).app.config.header.showSettings=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showLanguages"),modelValue:z(t).app.config.header.showLanguages,"onUpdate:modelValue":a[10]||(a[10]=p=>z(t).app.config.header.showLanguages=p)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsCommandTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[11]||(a[11]=p=>z(t).help("optionsmenü-fhem-befehle"))})]),_:1},8,["title"]),(G(!0),ze(Xe,null,st(z(t).app.config.header.commands,(p,h)=>(G(),X(d,{key:h},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:p.name,"onUpdate:modelValue":x=>p.name=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:p.title,"onUpdate:modelValue":x=>p.title=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":p.icon,modelValue:p.icon,"onUpdate:modelValue":x=>p.icon=x},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"10",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:p.cmd,"onUpdate:modelValue":x=>p.cmd=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-delete",onClick:x=>e(h)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),E(d,null,{default:T(()=>[E(y,{ref_key:"form",ref:i},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:o.name,"onUpdate:modelValue":a[12]||(a[12]=p=>o.name=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:o.title,"onUpdate:modelValue":a[13]||(a[13]=p=>o.title=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":o.icon,modelValue:o.icon,"onUpdate:modelValue":a[14]||(a[14]=p=>o.icon=p)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(v,{cols:"9",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:o.cmd,"onUpdate:modelValue":a[15]||(a[15]=p=>o.cmd=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-cancel",onClick:a[16]||(a[16]=p=>i.value.reset())}),E(l,{variant:"text",icon:"mdi-plus",disabled:!o.name||!o.title||!o.cmd,onClick:a[17]||(a[17]=p=>u())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}},be="_app.settings.navigation.",Nr={__name:"SettingsNavigation",setup(s){const{mobile:t}=Nn(),n=tt(),i=ar({path:[],route:["navigation"],items:[],newItem:{name:null,title:null,icon:null,divider:!1,groupAsChips:!1,sort:!1,group:[]}}),o=Ne(),u={required:c=>!!c||n.replacer("%t(_app.settings.rules.required)")};function e(c){typeof c<"u"&&(i.path.push(c,"group"),i.route.push(i.items[c].name)),i.items=n.getEl(n.app.config.navigation,i.path)}function r(){let c=JSON.parse(JSON.stringify(i.newItem));n.getEl(n.app.config.navigation,i.path).push(c),e(),o.value.reset()}function a(c){n.getEl(n.app.config.navigation,i.path).splice(c,1)}function l(c){return(n.getEl(i.items[c],["group"])||[]).length}function d(){i.route.pop(),i.path.splice(-2,2),e()}return e(),(c,v)=>{const m=V("v-btn"),f=V("v-list-item"),g=V("v-text-field"),y=V("v-col"),S=V("v-checkbox"),p=V("v-icon"),h=V("v-badge"),x=V("v-row"),C=V("v-divider"),I=V("v-form"),D=V("v-list");return G(),X(D,null,{default:T(()=>[E(f,{title:c.$t(be+"title")},{append:T(()=>[E(m,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:v[0]||(v[0]=O=>z(n).help("navigation"))})]),_:1},8,["title"]),i.path.length>0?(G(),X(f,{key:0},{default:T(()=>[E(m,{variant:"text",icon:"mdi-arrow-up-left",onClick:v[1]||(v[1]=O=>d())}),_e(" "+et(i.route.join(" > ")),1)]),_:1})):re("",!0),(G(!0),ze(Xe,null,st(i.items,(O,b)=>(G(),X(f,{key:b},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:O.name,"onUpdate:modelValue":$=>O.name=$},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:O.title,"onUpdate:modelValue":$=>O.title=$},null,8,["placeholder","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":O.icon,modelValue:O.icon,"onUpdate:modelValue":$=>O.icon=$},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:O.groupAsChips,"onUpdate:modelValue":$=>O.groupAsChips=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:O.sort,"onUpdate:modelValue":$=>O.sort=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:O.divider,"onUpdate:modelValue":$=>O.divider=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"",onClick:$=>e(b)},{default:T(()=>[l(b)>0?(G(),X(h,{key:0,color:"success",content:l(b)},{default:T(()=>[E(p,{icon:"mdi-arrow-down-right"})]),_:2},1032,["content"])):re("",!0),l(b)===0?(G(),X(p,{key:1,icon:"mdi-arrow-down-right"})):re("",!0)]),_:2},1032,["onClick"]),E(m,{variant:"text",icon:"mdi-delete",onClick:$=>a(b)},null,8,["onClick"])]),_:2},1024)]),_:2},1024),z(t)?(G(),X(C,{key:0})):re("",!0)]),_:2},1024))),128)),E(f,null,{default:T(()=>[E(I,{ref_key:"form",ref:o},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:i.newItem.name,"onUpdate:modelValue":v[2]||(v[2]=O=>i.newItem.name=O)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:i.newItem.title,"onUpdate:modelValue":v[3]||(v[3]=O=>i.newItem.title=O)},null,8,["placeholder","label","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":i.newItem.icon,modelValue:i.newItem.icon,"onUpdate:modelValue":v[4]||(v[4]=O=>i.newItem.icon=O)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:i.newItem.groupAsChips,"onUpdate:modelValue":v[5]||(v[5]=O=>i.newItem.groupAsChips=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:i.newItem.sort,"onUpdate:modelValue":v[6]||(v[6]=O=>i.newItem.sort=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:i.newItem.divider,"onUpdate:modelValue":v[7]||(v[7]=O=>i.newItem.divider=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"mdi-cancel",onClick:v[8]||(v[8]=O=>o.value.reset())}),E(m,{variant:"text",icon:"mdi-plus",disabled:!i.newItem.name,onClick:v[9]||(v[9]=O=>r())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}};function Gt(){return Gt=Object.assign||function(s){for(var t=1;t";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),i=window.getComputedStyle(t);this.$nextTick(function(){var o="border-top-left-radius",u="border-bottom-left-radius";if(n){n.style[o]=i[o],n.style[u]=i[u],t.style[o]="0",t.style[u]="0";var e=["background-color","margin-top","padding-top","font-family","font-size","line-height"];e.forEach(function(r){n.style[r]=i[r]}),n.style["margin-bottom"]="-"+i["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,i=t.selectionStart,o=t.selectionEnd;this._recordChange({value:n,selectionStart:i,selectionEnd:o})}},_getLines:function(t,n){return t.substring(0,n).split(` +import{u as tt,f as Ne,g as ar,r as V,o as G,a as X,w as T,e as E,h as z,b as ze,F as Xe,d as st,i as Nn,j as _e,t as et,k as re,l as Or,m as mt,c as De,n as Cr,v as Tr,p as ir,q as lr,s as wr,x as Pr}from"./index-1b2ccf17.js";import{c as An,g as Dr,r as Ar,a as $r,u as Fr,V as Rr}from"./index-769e4e34.js";import{_ as Vr}from"./PanelCard-bac08c4a.js";const de="_app.settings.header.",jr={__name:"SettingsHeader",setup(s){const t=tt(),n={required:r=>!!r||t.replacer("%t(_app.settings.rules.required)")},i=Ne(),o=ar({name:"",title:"",icon:"",cmd:""});function u(){t.app.config.header.commands||(t.app.config.header.commands=[]),t.app.config.header.commands.push(JSON.parse(JSON.stringify(o))),i.value.reset()}function e(r){t.app.config.header.commands.splice(r,1)}return(r,a)=>{const l=V("v-btn"),d=V("v-list-item"),c=V("v-text-field"),v=V("v-col"),m=V("v-checkbox"),f=V("v-row"),g=V("v-divider"),y=V("v-form"),S=V("v-list");return G(),X(S,null,{default:T(()=>[E(d,{title:r.$t(de+"barTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[0]||(a[0]=p=>z(t).help("kopfzeile"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageUrlPlaceholder"),label:r.$t(de+"imageUrl"),modelValue:z(t).app.config.header.imageUrl,"onUpdate:modelValue":a[1]||(a[1]=p=>z(t).app.config.header.imageUrl=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageGradientPlaceholder"),label:r.$t(de+"imageGradient"),modelValue:z(t).app.config.header.imageGradient,"onUpdate:modelValue":a[2]||(a[2]=p=>z(t).app.config.header.imageGradient=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTimeHint"),label:r.$t(de+"showTime"),modelValue:z(t).app.config.header.showTime,"onUpdate:modelValue":a[3]||(a[3]=p=>z(t).app.config.header.showTime=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showDateHint"),label:r.$t(de+"showDate"),modelValue:z(t).app.config.header.showDate,"onUpdate:modelValue":a[4]||(a[4]=p=>z(t).app.config.header.showDate=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTitleHint"),label:r.$t(de+"showTitle"),modelValue:z(t).app.config.header.showTitle,"onUpdate:modelValue":a[5]||(a[5]=p=>z(t).app.config.header.showTitle=p)},null,8,["hint","label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[6]||(a[6]=p=>z(t).help("optionsmenü"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showDarkMode"),modelValue:z(t).app.config.header.showDarkMode,"onUpdate:modelValue":a[7]||(a[7]=p=>z(t).app.config.header.showDarkMode=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showReloadPage"),modelValue:z(t).app.config.header.showReloadPage,"onUpdate:modelValue":a[8]||(a[8]=p=>z(t).app.config.header.showReloadPage=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showSettings"),modelValue:z(t).app.config.header.showSettings,"onUpdate:modelValue":a[9]||(a[9]=p=>z(t).app.config.header.showSettings=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showLanguages"),modelValue:z(t).app.config.header.showLanguages,"onUpdate:modelValue":a[10]||(a[10]=p=>z(t).app.config.header.showLanguages=p)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsCommandTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[11]||(a[11]=p=>z(t).help("optionsmenü-fhem-befehle"))})]),_:1},8,["title"]),(G(!0),ze(Xe,null,st(z(t).app.config.header.commands,(p,h)=>(G(),X(d,{key:h},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:p.name,"onUpdate:modelValue":x=>p.name=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:p.title,"onUpdate:modelValue":x=>p.title=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":p.icon,modelValue:p.icon,"onUpdate:modelValue":x=>p.icon=x},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"10",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:p.cmd,"onUpdate:modelValue":x=>p.cmd=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-delete",onClick:x=>e(h)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),E(d,null,{default:T(()=>[E(y,{ref_key:"form",ref:i},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:o.name,"onUpdate:modelValue":a[12]||(a[12]=p=>o.name=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:o.title,"onUpdate:modelValue":a[13]||(a[13]=p=>o.title=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":o.icon,modelValue:o.icon,"onUpdate:modelValue":a[14]||(a[14]=p=>o.icon=p)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(v,{cols:"9",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:o.cmd,"onUpdate:modelValue":a[15]||(a[15]=p=>o.cmd=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-cancel",onClick:a[16]||(a[16]=p=>i.value.reset())}),E(l,{variant:"text",icon:"mdi-plus",disabled:!o.name||!o.title||!o.cmd,onClick:a[17]||(a[17]=p=>u())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}},be="_app.settings.navigation.",Nr={__name:"SettingsNavigation",setup(s){const{mobile:t}=Nn(),n=tt(),i=ar({path:[],route:["navigation"],items:[],newItem:{name:null,title:null,icon:null,divider:!1,groupAsChips:!1,sort:!1,group:[]}}),o=Ne(),u={required:c=>!!c||n.replacer("%t(_app.settings.rules.required)")};function e(c){typeof c<"u"&&(i.path.push(c,"group"),i.route.push(i.items[c].name)),i.items=n.getEl(n.app.config.navigation,i.path)}function r(){let c=JSON.parse(JSON.stringify(i.newItem));n.getEl(n.app.config.navigation,i.path).push(c),e(),o.value.reset()}function a(c){n.getEl(n.app.config.navigation,i.path).splice(c,1)}function l(c){return(n.getEl(i.items[c],["group"])||[]).length}function d(){i.route.pop(),i.path.splice(-2,2),e()}return e(),(c,v)=>{const m=V("v-btn"),f=V("v-list-item"),g=V("v-text-field"),y=V("v-col"),S=V("v-checkbox"),p=V("v-icon"),h=V("v-badge"),x=V("v-row"),C=V("v-divider"),I=V("v-form"),D=V("v-list");return G(),X(D,null,{default:T(()=>[E(f,{title:c.$t(be+"title")},{append:T(()=>[E(m,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:v[0]||(v[0]=O=>z(n).help("navigation"))})]),_:1},8,["title"]),i.path.length>0?(G(),X(f,{key:0},{default:T(()=>[E(m,{variant:"text",icon:"mdi-arrow-up-left",onClick:v[1]||(v[1]=O=>d())}),_e(" "+et(i.route.join(" > ")),1)]),_:1})):re("",!0),(G(!0),ze(Xe,null,st(i.items,(O,b)=>(G(),X(f,{key:b},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:O.name,"onUpdate:modelValue":$=>O.name=$},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:O.title,"onUpdate:modelValue":$=>O.title=$},null,8,["placeholder","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":O.icon,modelValue:O.icon,"onUpdate:modelValue":$=>O.icon=$},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:O.groupAsChips,"onUpdate:modelValue":$=>O.groupAsChips=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:O.sort,"onUpdate:modelValue":$=>O.sort=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:O.divider,"onUpdate:modelValue":$=>O.divider=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"",onClick:$=>e(b)},{default:T(()=>[l(b)>0?(G(),X(h,{key:0,color:"success",content:l(b)},{default:T(()=>[E(p,{icon:"mdi-arrow-down-right"})]),_:2},1032,["content"])):re("",!0),l(b)===0?(G(),X(p,{key:1,icon:"mdi-arrow-down-right"})):re("",!0)]),_:2},1032,["onClick"]),E(m,{variant:"text",icon:"mdi-delete",onClick:$=>a(b)},null,8,["onClick"])]),_:2},1024)]),_:2},1024),z(t)?(G(),X(C,{key:0})):re("",!0)]),_:2},1024))),128)),E(f,null,{default:T(()=>[E(I,{ref_key:"form",ref:o},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:i.newItem.name,"onUpdate:modelValue":v[2]||(v[2]=O=>i.newItem.name=O)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:i.newItem.title,"onUpdate:modelValue":v[3]||(v[3]=O=>i.newItem.title=O)},null,8,["placeholder","label","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":i.newItem.icon,modelValue:i.newItem.icon,"onUpdate:modelValue":v[4]||(v[4]=O=>i.newItem.icon=O)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:i.newItem.groupAsChips,"onUpdate:modelValue":v[5]||(v[5]=O=>i.newItem.groupAsChips=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:i.newItem.sort,"onUpdate:modelValue":v[6]||(v[6]=O=>i.newItem.sort=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:i.newItem.divider,"onUpdate:modelValue":v[7]||(v[7]=O=>i.newItem.divider=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"mdi-cancel",onClick:v[8]||(v[8]=O=>o.value.reset())}),E(m,{variant:"text",icon:"mdi-plus",disabled:!i.newItem.name,onClick:v[9]||(v[9]=O=>r())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}};function Gt(){return Gt=Object.assign||function(s){for(var t=1;t";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),i=window.getComputedStyle(t);this.$nextTick(function(){var o="border-top-left-radius",u="border-bottom-left-radius";if(n){n.style[o]=i[o],n.style[u]=i[u],t.style[o]="0",t.style[u]="0";var e=["background-color","margin-top","padding-top","font-family","font-size","line-height"];e.forEach(function(r){n.style[r]=i[r]}),n.style["margin-bottom"]="-"+i["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,i=t.selectionStart,o=t.selectionEnd;this._recordChange({value:n,selectionStart:i,selectionEnd:o})}},_getLines:function(t,n){return t.substring(0,n).split(` `)},_applyEdits:function(t){var n=this.$refs.textarea,i=this.history.stack[this.history.offset];i&&n&&(this.history.stack[this.history.offset]=Gt({},i,{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),this._recordChange(t),this._updateInput(t)},_recordChange:function(t,n){n===void 0&&(n=!1);var i=this.history,o=i.stack,u=i.offset;if(o.length&&u>-1){this.history.stack=o.slice(0,u+1);var e=this.history.stack.length;if(e>Wn){var r=e-Wn;this.history.stack=o.slice(r,e),this.history.offset=Math.max(this.history.offset-r,0)}}var a=Date.now();if(n){var l=this.history.stack[this.history.offset];if(l&&a-l.timestamp=c&&F<=v&&K.startsWith(l)?K.substring(l.length):K}).join(` `);if(e!==m){var f=d[c];this._applyEdits({value:m,selectionStart:f.startsWith(l)?r-l.length:r,selectionEnd:a-(e.length-m.length)})}}else if(r!==a){var g=this._getLines(e,r),y=g.length-1,S=this._getLines(e,a).length-1,p=g[y];this._applyEdits({value:e.split(` diff --git a/www/fhemapp4/assets/index-f08ede37.js b/www/fhemapp4/assets/index-1b2ccf17.js similarity index 52% rename from www/fhemapp4/assets/index-f08ede37.js rename to www/fhemapp4/assets/index-1b2ccf17.js index a89dfce7..b0053fdd 100644 --- a/www/fhemapp4/assets/index-f08ede37.js +++ b/www/fhemapp4/assets/index-1b2ccf17.js @@ -2,31 +2,31 @@ * @vue/shared v3.4.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Bm(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Pt={},sc=[],jn=()=>{},eU=()=>!1,Vv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bw=e=>e.startsWith("onUpdate:"),Wt=Object.assign,Sw=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},tU=Object.prototype.hasOwnProperty,mt=(e,t)=>tU.call(e,t),Ne=Array.isArray,lc=e=>Fc(e)==="[object Map]",su=e=>Fc(e)==="[object Set]",JA=e=>Fc(e)==="[object Date]",nU=e=>Fc(e)==="[object RegExp]",qe=e=>typeof e=="function",Ut=e=>typeof e=="string",rs=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",xw=e=>(Vt(e)||qe(e))&&qe(e.then)&&qe(e.catch),RV=Object.prototype.toString,Fc=e=>RV.call(e),rU=e=>Fc(e).slice(8,-1),VV=e=>Fc(e)==="[object Object]",ww=e=>Ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fd=Bm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aU=/-(\w)/g,Kn=zm(e=>e.replace(aU,(t,n)=>n?n.toUpperCase():"")),iU=/\B([A-Z])/g,Or=zm(e=>e.replace(iU,"-$1").toLowerCase()),Ii=zm(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hg=zm(e=>e?`on${Ii(e)}`:""),$a=(e,t)=>!Object.is(e,t),uc=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},yp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_p=e=>{const t=Ut(e)?Number(e):NaN;return isNaN(t)?e:t};let QA;const OV=()=>QA||(QA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),oU="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,Error",sU=Bm(oU);function Fm(e){if(Ne(e)){const t={};for(let n=0;n{if(n){const r=n.split(uU);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function $m(e){let t="";if(Ut(e))t=e;else if(Ne(e))for(let n=0;nas(n,t))}const gl=e=>Ut(e)?e:e==null?"":Ne(e)||Vt(e)&&(e.toString===RV||!qe(e.toString))?JSON.stringify(e,BV,2):String(e),BV=(e,t)=>t&&t.__v_isRef?BV(e,t.value):lc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a],i)=>(n[w0(r,i)+" =>"]=a,n),{})}:su(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>w0(n))}:rs(t)?w0(t):Vt(t)&&!Ne(t)&&!VV(t)?String(t):t,w0=(e,t="")=>{var n;return rs(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**/function Bm(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Pt={},sc=[],jn=()=>{},eU=()=>!1,Vv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_w=e=>e.startsWith("onUpdate:"),Wt=Object.assign,bw=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},tU=Object.prototype.hasOwnProperty,mt=(e,t)=>tU.call(e,t),Ne=Array.isArray,lc=e=>Fc(e)==="[object Map]",su=e=>Fc(e)==="[object Set]",JA=e=>Fc(e)==="[object Date]",nU=e=>Fc(e)==="[object RegExp]",qe=e=>typeof e=="function",Ut=e=>typeof e=="string",rs=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",Sw=e=>(Vt(e)||qe(e))&&qe(e.then)&&qe(e.catch),RV=Object.prototype.toString,Fc=e=>RV.call(e),rU=e=>Fc(e).slice(8,-1),VV=e=>Fc(e)==="[object Object]",xw=e=>Ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fd=Bm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aU=/-(\w)/g,Kn=zm(e=>e.replace(aU,(t,n)=>n?n.toUpperCase():"")),iU=/\B([A-Z])/g,Or=zm(e=>e.replace(iU,"-$1").toLowerCase()),Ii=zm(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hg=zm(e=>e?`on${Ii(e)}`:""),$a=(e,t)=>!Object.is(e,t),uc=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},yp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_p=e=>{const t=Ut(e)?Number(e):NaN;return isNaN(t)?e:t};let QA;const OV=()=>QA||(QA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),oU="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,Error",sU=Bm(oU);function Fm(e){if(Ne(e)){const t={};for(let n=0;n{if(n){const r=n.split(uU);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function $m(e){let t="";if(Ut(e))t=e;else if(Ne(e))for(let n=0;nas(n,t))}const gl=e=>Ut(e)?e:e==null?"":Ne(e)||Vt(e)&&(e.toString===RV||!qe(e.toString))?JSON.stringify(e,BV,2):String(e),BV=(e,t)=>t&&t.__v_isRef?BV(e,t.value):lc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a],i)=>(n[x0(r,i)+" =>"]=a,n),{})}:su(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>x0(n))}:rs(t)?x0(t):Vt(t)&&!Ne(t)&&!VV(t)?String(t):t,x0=(e,t="")=>{var n;return rs(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Rr;class zV{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rr,!t&&Rr&&(this.index=(Rr.scopes||(Rr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Rr;try{return Rr=this,t()}finally{Rr=n}}}on(){Rr=this}off(){Rr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=2))break;uu(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ko,n=Pl;try{return Ko=!0,Pl=this,this._runnings++,eI(this),this.fn()}finally{tI(this),this._runnings--,Pl=n,Ko=t}}stop(){var t;this.active&&(eI(this),tI(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function gU(e){return e.value}function eI(e){e._trackId++,e._depsLength=0}function tI(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(Wt(n,t),t.scope&&FV(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function dCe(e){e.effect.stop()}let Ko=!0,pS=0;const HV=[];function lu(){HV.push(Ko),Ko=!1}function uu(){const e=HV.pop();Ko=e===void 0?!0:e}function Cw(){pS++}function Tw(){for(pS--;!pS&&mS.length;)mS.shift()()}function WV(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&GV(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const mS=[];function UV(e,t,n){Cw();for(const r of e.keys())if(!(!r.allowRecurse&&r._runnings)&&r._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},bp=new WeakMap,Dl=Symbol(""),yS=Symbol("");function Ir(e,t,n){if(Ko&&Pl){let r=bp.get(e);r||bp.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=YV(()=>r.delete(n))),WV(Pl,a)}}function Gi(e,t,n,r,a,i){const o=bp.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&Ne(e)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||!rs(c)&&c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),t){case"add":Ne(e)?ww(n)&&s.push(o.get("length")):(s.push(o.get(Dl)),lc(e)&&s.push(o.get(yS)));break;case"delete":Ne(e)||(s.push(o.get(Dl)),lc(e)&&s.push(o.get(yS)));break;case"set":lc(e)&&s.push(o.get(Dl));break}Cw();for(const l of s)l&&UV(l,3);Tw()}function pU(e,t){var n;return(n=bp.get(e))==null?void 0:n.get(t)}const mU=Bm("__proto__,__v_isRef,__isVue"),XV=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rs)),nI=yU();function yU(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=rt(this);for(let i=0,o=this.length;i{e[t]=function(...n){lu(),Cw();const r=rt(this)[t].apply(this,n);return Tw(),uu(),r}}),e}function _U(e){const t=rt(this);return Ir(t,"has",e),t.hasOwnProperty(e)}class ZV{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const a=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(a?i?eO:QV:i?JV:qV).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Ne(t);if(!a){if(o&&mt(nI,n))return Reflect.get(nI,n,r);if(n==="hasOwnProperty")return _U}const s=Reflect.get(t,n,r);return(rs(n)?XV.has(n):mU(n))||(a||Ir(t,"get",n),i)?s:Ft(s)?o&&ww(n)?s:s.value:Vt(s)?a?Ov(s):In(s):s}}class jV extends ZV{constructor(t=!1){super(!1,t)}set(t,n,r,a){let i=t[n];if(!this._shallow){const l=yc(i);if(!Sp(r)&&!yc(r)&&(i=rt(i),r=rt(r)),!Ne(t)&&Ft(i)&&!Ft(r))return l?!1:(i.value=r,!0)}const o=Ne(t)&&ww(n)?Number(n)e,Hm=e=>Reflect.getPrototypeOf(e);function xh(e,t,n=!1,r=!1){e=e.__v_raw;const a=rt(e),i=rt(t);n||($a(t,i)&&Ir(a,"get",t),Ir(a,"get",i));const{has:o}=Hm(a),s=r?Aw:n?Iw:Nd;if(o.call(a,t))return s(e.get(t));if(o.call(a,i))return s(e.get(i));e!==a&&e.get(t)}function wh(e,t=!1){const n=this.__v_raw,r=rt(n),a=rt(e);return t||($a(e,a)&&Ir(r,"has",e),Ir(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ch(e,t=!1){return e=e.__v_raw,!t&&Ir(rt(e),"iterate",Dl),Reflect.get(e,"size",e)}function rI(e){e=rt(e);const t=rt(this);return Hm(t).has.call(t,e)||(t.add(e),Gi(t,"add",e,e)),this}function aI(e,t){t=rt(t);const n=rt(this),{has:r,get:a}=Hm(n);let i=r.call(n,e);i||(e=rt(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?$a(t,o)&&Gi(n,"set",e,t):Gi(n,"add",e,t),this}function iI(e){const t=rt(this),{has:n,get:r}=Hm(t);let a=n.call(t,e);a||(e=rt(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&Gi(t,"delete",e,void 0),i}function oI(){const e=rt(this),t=e.size!==0,n=e.clear();return t&&Gi(e,"clear",void 0,void 0),n}function Th(e,t){return function(r,a){const i=this,o=i.__v_raw,s=rt(o),l=t?Aw:e?Iw:Nd;return!e&&Ir(s,"iterate",Dl),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Ah(e,t,n){return function(...r){const a=this.__v_raw,i=rt(a),o=lc(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?Aw:t?Iw:Nd;return!t&&Ir(i,"iterate",l?yS:Dl),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function po(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function CU(){const e={get(i){return xh(this,i)},get size(){return Ch(this)},has:wh,add:rI,set:aI,delete:iI,clear:oI,forEach:Th(!1,!1)},t={get(i){return xh(this,i,!1,!0)},get size(){return Ch(this)},has:wh,add:rI,set:aI,delete:iI,clear:oI,forEach:Th(!1,!0)},n={get(i){return xh(this,i,!0)},get size(){return Ch(this,!0)},has(i){return wh.call(this,i,!0)},add:po("add"),set:po("set"),delete:po("delete"),clear:po("clear"),forEach:Th(!0,!1)},r={get(i){return xh(this,i,!0,!0)},get size(){return Ch(this,!0)},has(i){return wh.call(this,i,!0)},add:po("add"),set:po("set"),delete:po("delete"),clear:po("clear"),forEach:Th(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ah(i,!1,!1),n[i]=Ah(i,!0,!1),t[i]=Ah(i,!1,!0),r[i]=Ah(i,!0,!0)}),[e,n,t,r]}const[TU,AU,IU,PU]=CU();function Wm(e,t){const n=t?e?PU:IU:e?AU:TU;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(mt(n,a)&&a in r?n:r,a,i)}const DU={get:Wm(!1,!1)},MU={get:Wm(!1,!0)},kU={get:Wm(!0,!1)},LU={get:Wm(!0,!0)},qV=new WeakMap,JV=new WeakMap,QV=new WeakMap,eO=new WeakMap;function EU(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function RU(e){return e.__v_skip||!Object.isExtensible(e)?0:EU(rU(e))}function In(e){return yc(e)?e:Um(e,!1,bU,DU,qV)}function tO(e){return Um(e,!1,xU,MU,JV)}function Ov(e){return Um(e,!0,SU,kU,QV)}function vCe(e){return Um(e,!0,wU,LU,eO)}function Um(e,t,n,r,a){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=RU(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function qo(e){return yc(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function yc(e){return!!(e&&e.__v_isReadonly)}function Sp(e){return!!(e&&e.__v_isShallow)}function nO(e){return qo(e)||yc(e)}function rt(e){const t=e&&e.__v_raw;return t?rt(t):e}function Ym(e){return mp(e,"__v_skip",!0),e}const Nd=e=>Vt(e)?In(e):e,Iw=e=>Vt(e)?Ov(e):e;class rO{constructor(t,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Od(()=>t(this._value),()=>Bd(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=rt(this);return Pw(t),(!t._cacheable||t.effect.dirty)&&$a(t._value,t._value=t.effect.run())&&Bd(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function VU(e,t,n=!1){let r,a;const i=qe(e);return i?(r=e,a=jn):(r=e.get,a=e.set),new rO(r,a,i||!a,n)}function Pw(e){Ko&&Pl&&(e=rt(e),WV(Pl,e.dep||(e.dep=YV(()=>e.dep=void 0,e instanceof rO?e:void 0))))}function Bd(e,t=3,n){e=rt(e);const r=e.dep;r&&UV(r,t)}function Ft(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return aO(e,!1)}function xe(e){return aO(e,!0)}function aO(e,t){return Ft(e)?e:new OU(e,t)}class OU{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:rt(t),this._value=n?t:Nd(t)}get value(){return Pw(this),this._value}set value(t){const n=this.__v_isShallow||Sp(t)||yc(t);t=n?t:rt(t),$a(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Nd(t),Bd(this,3))}}function hCe(e){Bd(e,3)}function Ge(e){return Ft(e)?e.value:e}function gCe(e){return qe(e)?e():Ge(e)}const NU={get:(e,t,n)=>Ge(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Ft(a)&&!Ft(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function iO(e){return qo(e)?e:new Proxy(e,NU)}class BU{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Pw(this),()=>Bd(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function zU(e){return new BU(e)}function Nv(e){const t=Ne(e)?new Array(e.length):{};for(const n in e)t[n]=oO(e,n);return t}class FU{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pU(rt(this._object),this._key)}}class $U{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function se(e,t,n){return Ft(e)?e:qe(e)?new $U(e):Vt(e)&&arguments.length>1?oO(e,t,n):pe(e)}function oO(e,t,n){const r=e[t];return Ft(r)?r:new FU(e,t,n)}const pCe={GET:"get",HAS:"has",ITERATE:"iterate"},mCe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** +**/let Rr;class zV{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rr,!t&&Rr&&(this.index=(Rr.scopes||(Rr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Rr;try{return Rr=this,t()}finally{Rr=n}}}on(){Rr=this}off(){Rr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=2))break;uu(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ko,n=Pl;try{return Ko=!0,Pl=this,this._runnings++,eI(this),this.fn()}finally{tI(this),this._runnings--,Pl=n,Ko=t}}stop(){var t;this.active&&(eI(this),tI(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function gU(e){return e.value}function eI(e){e._trackId++,e._depsLength=0}function tI(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(Wt(n,t),t.scope&&FV(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function dCe(e){e.effect.stop()}let Ko=!0,gS=0;const HV=[];function lu(){HV.push(Ko),Ko=!1}function uu(){const e=HV.pop();Ko=e===void 0?!0:e}function ww(){gS++}function Cw(){for(gS--;!gS&&pS.length;)pS.shift()()}function WV(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&GV(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const pS=[];function UV(e,t,n){ww();for(const r of e.keys())if(!(!r.allowRecurse&&r._runnings)&&r._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},bp=new WeakMap,Dl=Symbol(""),mS=Symbol("");function Ir(e,t,n){if(Ko&&Pl){let r=bp.get(e);r||bp.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=YV(()=>r.delete(n))),WV(Pl,a)}}function Gi(e,t,n,r,a,i){const o=bp.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&Ne(e)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||!rs(c)&&c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),t){case"add":Ne(e)?xw(n)&&s.push(o.get("length")):(s.push(o.get(Dl)),lc(e)&&s.push(o.get(mS)));break;case"delete":Ne(e)||(s.push(o.get(Dl)),lc(e)&&s.push(o.get(mS)));break;case"set":lc(e)&&s.push(o.get(Dl));break}ww();for(const l of s)l&&UV(l,3);Cw()}function pU(e,t){var n;return(n=bp.get(e))==null?void 0:n.get(t)}const mU=Bm("__proto__,__v_isRef,__isVue"),XV=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rs)),nI=yU();function yU(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=rt(this);for(let i=0,o=this.length;i{e[t]=function(...n){lu(),ww();const r=rt(this)[t].apply(this,n);return Cw(),uu(),r}}),e}function _U(e){const t=rt(this);return Ir(t,"has",e),t.hasOwnProperty(e)}class ZV{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const a=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(a?i?eO:QV:i?JV:qV).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Ne(t);if(!a){if(o&&mt(nI,n))return Reflect.get(nI,n,r);if(n==="hasOwnProperty")return _U}const s=Reflect.get(t,n,r);return(rs(n)?XV.has(n):mU(n))||(a||Ir(t,"get",n),i)?s:Ft(s)?o&&xw(n)?s:s.value:Vt(s)?a?Ov(s):In(s):s}}class jV extends ZV{constructor(t=!1){super(!1,t)}set(t,n,r,a){let i=t[n];if(!this._shallow){const l=yc(i);if(!Sp(r)&&!yc(r)&&(i=rt(i),r=rt(r)),!Ne(t)&&Ft(i)&&!Ft(r))return l?!1:(i.value=r,!0)}const o=Ne(t)&&xw(n)?Number(n)e,Hm=e=>Reflect.getPrototypeOf(e);function xh(e,t,n=!1,r=!1){e=e.__v_raw;const a=rt(e),i=rt(t);n||($a(t,i)&&Ir(a,"get",t),Ir(a,"get",i));const{has:o}=Hm(a),s=r?Tw:n?Aw:Nd;if(o.call(a,t))return s(e.get(t));if(o.call(a,i))return s(e.get(i));e!==a&&e.get(t)}function wh(e,t=!1){const n=this.__v_raw,r=rt(n),a=rt(e);return t||($a(e,a)&&Ir(r,"has",e),Ir(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ch(e,t=!1){return e=e.__v_raw,!t&&Ir(rt(e),"iterate",Dl),Reflect.get(e,"size",e)}function rI(e){e=rt(e);const t=rt(this);return Hm(t).has.call(t,e)||(t.add(e),Gi(t,"add",e,e)),this}function aI(e,t){t=rt(t);const n=rt(this),{has:r,get:a}=Hm(n);let i=r.call(n,e);i||(e=rt(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?$a(t,o)&&Gi(n,"set",e,t):Gi(n,"add",e,t),this}function iI(e){const t=rt(this),{has:n,get:r}=Hm(t);let a=n.call(t,e);a||(e=rt(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&Gi(t,"delete",e,void 0),i}function oI(){const e=rt(this),t=e.size!==0,n=e.clear();return t&&Gi(e,"clear",void 0,void 0),n}function Th(e,t){return function(r,a){const i=this,o=i.__v_raw,s=rt(o),l=t?Tw:e?Aw:Nd;return!e&&Ir(s,"iterate",Dl),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Ah(e,t,n){return function(...r){const a=this.__v_raw,i=rt(a),o=lc(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?Tw:t?Aw:Nd;return!t&&Ir(i,"iterate",l?mS:Dl),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function po(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function CU(){const e={get(i){return xh(this,i)},get size(){return Ch(this)},has:wh,add:rI,set:aI,delete:iI,clear:oI,forEach:Th(!1,!1)},t={get(i){return xh(this,i,!1,!0)},get size(){return Ch(this)},has:wh,add:rI,set:aI,delete:iI,clear:oI,forEach:Th(!1,!0)},n={get(i){return xh(this,i,!0)},get size(){return Ch(this,!0)},has(i){return wh.call(this,i,!0)},add:po("add"),set:po("set"),delete:po("delete"),clear:po("clear"),forEach:Th(!0,!1)},r={get(i){return xh(this,i,!0,!0)},get size(){return Ch(this,!0)},has(i){return wh.call(this,i,!0)},add:po("add"),set:po("set"),delete:po("delete"),clear:po("clear"),forEach:Th(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ah(i,!1,!1),n[i]=Ah(i,!0,!1),t[i]=Ah(i,!1,!0),r[i]=Ah(i,!0,!0)}),[e,n,t,r]}const[TU,AU,IU,PU]=CU();function Wm(e,t){const n=t?e?PU:IU:e?AU:TU;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(mt(n,a)&&a in r?n:r,a,i)}const DU={get:Wm(!1,!1)},MU={get:Wm(!1,!0)},kU={get:Wm(!0,!1)},LU={get:Wm(!0,!0)},qV=new WeakMap,JV=new WeakMap,QV=new WeakMap,eO=new WeakMap;function EU(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function RU(e){return e.__v_skip||!Object.isExtensible(e)?0:EU(rU(e))}function In(e){return yc(e)?e:Um(e,!1,bU,DU,qV)}function tO(e){return Um(e,!1,xU,MU,JV)}function Ov(e){return Um(e,!0,SU,kU,QV)}function vCe(e){return Um(e,!0,wU,LU,eO)}function Um(e,t,n,r,a){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=RU(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function qo(e){return yc(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function yc(e){return!!(e&&e.__v_isReadonly)}function Sp(e){return!!(e&&e.__v_isShallow)}function nO(e){return qo(e)||yc(e)}function rt(e){const t=e&&e.__v_raw;return t?rt(t):e}function Ym(e){return mp(e,"__v_skip",!0),e}const Nd=e=>Vt(e)?In(e):e,Aw=e=>Vt(e)?Ov(e):e;class rO{constructor(t,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Od(()=>t(this._value),()=>Bd(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=rt(this);return Iw(t),(!t._cacheable||t.effect.dirty)&&$a(t._value,t._value=t.effect.run())&&Bd(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function VU(e,t,n=!1){let r,a;const i=qe(e);return i?(r=e,a=jn):(r=e.get,a=e.set),new rO(r,a,i||!a,n)}function Iw(e){Ko&&Pl&&(e=rt(e),WV(Pl,e.dep||(e.dep=YV(()=>e.dep=void 0,e instanceof rO?e:void 0))))}function Bd(e,t=3,n){e=rt(e);const r=e.dep;r&&UV(r,t)}function Ft(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return aO(e,!1)}function xe(e){return aO(e,!0)}function aO(e,t){return Ft(e)?e:new OU(e,t)}class OU{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:rt(t),this._value=n?t:Nd(t)}get value(){return Iw(this),this._value}set value(t){const n=this.__v_isShallow||Sp(t)||yc(t);t=n?t:rt(t),$a(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Nd(t),Bd(this,3))}}function hCe(e){Bd(e,3)}function Ge(e){return Ft(e)?e.value:e}function gCe(e){return qe(e)?e():Ge(e)}const NU={get:(e,t,n)=>Ge(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Ft(a)&&!Ft(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function iO(e){return qo(e)?e:new Proxy(e,NU)}class BU{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Iw(this),()=>Bd(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function zU(e){return new BU(e)}function Nv(e){const t=Ne(e)?new Array(e.length):{};for(const n in e)t[n]=oO(e,n);return t}class FU{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pU(rt(this._object),this._key)}}class $U{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function se(e,t,n){return Ft(e)?e:qe(e)?new $U(e):Vt(e)&&arguments.length>1?oO(e,t,n):pe(e)}function oO(e,t,n){const r=e[t];return Ft(r)?r:new FU(e,t,n)}const pCe={GET:"get",HAS:"has",ITERATE:"iterate"},mCe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** * @vue/runtime-core v3.4.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function yCe(e,t){}const _Ce={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},GU={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Jo(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){Gc(i,t,n)}return a}function va(e,t,n,r){if(qe(e)){const i=Jo(e,t,n,r);return i&&xw(i)&&i.catch(o=>{Gc(o,t,n)}),i}const a=[];for(let i=0;i>>1,a=Zn[r],i=Fd(a);ioi&&Zn.splice(t,1)}function bS(e){Ne(e)?cc.push(...e):(!Ro||!Ro.includes(e,e.allowRecurse?cl+1:cl))&&cc.push(e),lO()}function sI(e,t,n=zd?oi+1:0){for(;nFd(n)-Fd(r));if(cc.length=0,Ro){Ro.push(...t);return}for(Ro=t,cl=0;cle.id==null?1/0:e.id,YU=(e,t)=>{const n=Fd(e)-Fd(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function uO(e){_S=!1,zd=!0,Zn.sort(YU);const t=jn;try{for(oi=0;oiUt(v)?v.trim():v)),f&&(a=n.map(yp))}let s,l=r[s=Hg(t)]||r[s=Hg(Kn(t))];!l&&i&&(l=r[s=Hg(Or(t))]),l&&va(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,va(u,e,6,a)}}function cO(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!qe(e)){const l=u=>{const c=cO(u,t,!0);c&&(s=!0,Wt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Vt(e)&&r.set(e,null),null):(Ne(i)?i.forEach(l=>o[l]=null):Wt(o,i),Vt(e)&&r.set(e,o),o)}function Zm(e,t){return!e||!Vv(t)?!1:(t=t.slice(2).replace(/Once$/,""),mt(e,t[0].toLowerCase()+t.slice(1))||mt(e,Or(t))||mt(e,t))}let dn=null,jm=null;function $d(e){const t=dn;return dn=e,jm=e&&e.type.__scopeId||null,t}function bCe(e){jm=e}function SCe(){jm=null}const xCe=e=>zt;function zt(e,t=dn,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&SI(-1);const i=$d(t);let o;try{o=e(...a)}finally{$d(i),r._d&&SI(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Wg(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:v,ctx:h,inheritAttrs:g}=e;let p,m;const y=$d(e);try{if(n.shapeFlag&4){const b=a||r,x=b;p=Vr(c.call(x,b,f,i,v,d,h)),m=l}else{const b=t;p=Vr(b.length>1?b(i,{attrs:l,slots:s,emit:u}):b(i,null)),m=t.props?l:jU(l)}}catch(b){hd.length=0,Gc(b,e,1),p=I(qn)}let _=p;if(m&&g!==!1){const b=Object.keys(m),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(bw)&&(m=KU(m,o)),_=mi(_,m))}return n.dirs&&(_=mi(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),p=_,$d(y),p}function ZU(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Vv(n))&&((t||(t={}))[n]=e[n]);return t},KU=(e,t)=>{const n={};for(const r in e)(!bw(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qU(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?lI(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let SS=0;const e6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,a,i,o,s,l,u){e==null?t6(t,n,r,a,i,o,s,l,u):n6(e,t,n,r,a,o,s,l,u)},hydrate:r6,create:Ew,normalize:a6},wCe=e6;function Gd(e,t){const n=e.props&&e.props[t];qe(n)&&n()}function t6(e,t,n,r,a,i,o,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Ew(e,a,r,t,f,n,i,o,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,o),d.deps>0?(Gd(e,"onPending"),Gd(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),fc(d,e.ssFallback)):d.resolve(!1,!0)}function n6(e,t,n,r,a,i,o,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,v=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:p,isHydrating:m}=f;if(g)f.pendingBranch=d,Ea(d,g)?(l(g,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():p&&(m||(l(h,v,n,r,a,null,i,o,s),fc(f,v)))):(f.pendingId=SS++,m?(f.isHydrating=!1,f.activeBranch=g):u(g,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),p?(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():(l(h,v,n,r,a,null,i,o,s),fc(f,v))):h&&Ea(d,h)?(l(h,d,n,r,a,f,i,o,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0&&f.resolve()));else if(h&&Ea(d,h))l(h,d,n,r,a,f,i,o,s),fc(f,d);else if(Gd(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=SS++,l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:_}=f;y>0?setTimeout(()=>{f.pendingId===_&&f.fallback(v)},y):y===0&&f.fallback(v)}}function Ew(e,t,n,r,a,i,o,s,l,u,c=!1){const{p:f,m:d,um:v,n:h,o:{parentNode:g,remove:p}}=u;let m;const y=i6(e);y&&t!=null&&t.pendingBranch&&(m=t.pendingId,t.deps++);const _=e.props?_p(e.props.timeout):void 0,b=i,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:a,deps:0,pendingId:SS++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,w=!1){const{vnode:C,activeBranch:T,pendingBranch:A,pendingId:P,effects:D,parentComponent:M,container:L}=x;let R=!1;x.isHydrating?x.isHydrating=!1:S||(R=T&&A.transition&&A.transition.mode==="out-in",R&&(T.transition.afterLeave=()=>{P===x.pendingId&&(d(A,L,i===b?h(T):i,0),bS(D))}),T&&(g(T.el)!==x.hiddenContainer&&(i=h(T)),v(T,M,x,!0)),R||d(A,L,i,0)),fc(x,A),x.pendingBranch=null,x.isInFallback=!1;let O=x.parent,W=!1;for(;O;){if(O.pendingBranch){O.effects.push(...D),W=!0;break}O=O.parent}!W&&!R&&bS(D),x.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),Gd(C,"onResolve")},fallback(S){if(!x.pendingBranch)return;const{vnode:w,activeBranch:C,parentComponent:T,container:A,namespace:P}=x;Gd(w,"onFallback");const D=h(C),M=()=>{x.isInFallback&&(f(null,S,A,D,T,null,P,s,l),fc(x,S))},L=S.transition&&S.transition.mode==="out-in";L&&(C.transition.afterLeave=M),x.isInFallback=!0,v(C,T,null,!0),L||M()},move(S,w,C){x.activeBranch&&d(x.activeBranch,S,w,C),x.container=S},next(){return x.activeBranch&&h(x.activeBranch)},registerDep(S,w){const C=!!x.pendingBranch;C&&x.deps++;const T=S.vnode.el;S.asyncDep.catch(A=>{Gc(A,S,0)}).then(A=>{if(S.isUnmounted||x.isUnmounted||x.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:P}=S;kS(S,A,!1),T&&(P.el=T);const D=!T&&S.subTree.el;w(S,P,g(T||S.subTree.el),T?null:h(S.subTree),x,o,l),D&&p(D),Mw(S,P.el),C&&--x.deps===0&&x.resolve()})},unmount(S,w){x.isUnmounted=!0,x.activeBranch&&v(x.activeBranch,n,S,w),x.pendingBranch&&v(x.pendingBranch,n,S,w)}};return x}function r6(e,t,n,r,a,i,o,s,l){const u=t.suspense=Ew(t,r,n,e.parentNode,document.createElement("div"),null,a,i,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function a6(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=cI(r?n.default:n),e.ssFallback=r?cI(n.fallback):I(qn)}function cI(e){let t;if(qe(e)){const n=Ul&&e._c;n&&(e._d=!1,en()),e=e(),n&&(e._d=!0,t=Tr,VO())}return Ne(e)&&(e=ZU(e)),e=Vr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function vO(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):bS(e)}function fc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;n.el=a,r&&r.subTree===n&&(r.vnode.el=a,Mw(r,a))}function i6(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const o6=Symbol.for("v-scx"),s6=()=>nt(o6);function Ln(e,t){return Bv(e,null,t)}function l6(e,t){return Bv(e,null,{flush:"post"})}function u6(e,t){return Bv(e,null,{flush:"sync"})}const Ih={};function Se(e,t,n){return Bv(e,t,n)}function Bv(e,t,{immediate:n,deep:r,flush:a,once:i,onTrack:o,onTrigger:s}=Pt){if(t&&i){const S=t;t=(...w)=>{S(...w),x()}}const l=yn,u=S=>r===!0?S:pl(S,r===!1?1:void 0);let c,f=!1,d=!1;if(Ft(e)?(c=()=>e.value,f=Sp(e)):qo(e)?(c=()=>u(e),f=!0):Ne(e)?(d=!0,f=e.some(S=>qo(S)||Sp(S)),c=()=>e.map(S=>{if(Ft(S))return S.value;if(qo(S))return u(S);if(qe(S))return Jo(S,l,2)})):qe(e)?t?c=()=>Jo(e,l,2):c=()=>(v&&v(),va(e,l,3,[h])):c=jn,t&&r){const S=c;c=()=>pl(S())}let v,h=S=>{v=_.onStop=()=>{Jo(S,l,4),v=_.onStop=void 0}},g;if($v)if(h=jn,t?n&&va(t,l,3,[c(),d?[]:void 0,h]):c(),a==="sync"){const S=s6();g=S.__watcherHandles||(S.__watcherHandles=[])}else return jn;let p=d?new Array(e.length).fill(Ih):Ih;const m=()=>{if(!(!_.active||!_.dirty))if(t){const S=_.run();(r||f||(d?S.some((w,C)=>$a(w,p[C])):$a(S,p)))&&(v&&v(),va(t,l,3,[S,p===Ih?void 0:d&&p[0]===Ih?[]:p,h]),p=S)}else _.run()};m.allowRecurse=!!t;let y;a==="sync"?y=m:a==="post"?y=()=>Nn(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),y=()=>Xm(m));const _=new Od(c,jn,y),b=$V(),x=()=>{_.stop(),b&&Sw(b.effects,_)};return t?n?m():p=_.run():a==="post"?Nn(_.run.bind(_),l&&l.suspense):_.run(),g&&g.push(x),x}function c6(e,t,n){const r=this.proxy,a=Ut(e)?e.includes(".")?hO(r,e):()=>r[e]:e.bind(r,r);let i;qe(t)?i=t:(i=t.handler,n=t);const o=Yl(this),s=Bv(a,i.bind(r),n);return o(),s}function hO(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Ft(e))pl(e.value,t,n,r);else if(Ne(e))for(let a=0;a{pl(a,t,n,r)});else if(VV(e))for(const a in e)pl(e[a],t,n,r);return e}function Yt(e,t){if(dn===null)return e;const n=Qm(dn)||dn.proxy,r=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0}),En(()=>{e.isUnmounting=!0}),e}const Xr=[Function,Array],pO={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xr,onEnter:Xr,onAfterEnter:Xr,onEnterCancelled:Xr,onBeforeLeave:Xr,onLeave:Xr,onAfterLeave:Xr,onLeaveCancelled:Xr,onBeforeAppear:Xr,onAppear:Xr,onAfterAppear:Xr,onAppearCancelled:Xr},f6={name:"BaseTransition",props:pO,setup(e,{slots:t}){const n=ba(),r=gO();let a;return()=>{const i=t.default&&Rw(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const g of i)if(g.type!==qn){o=g;break}}const s=rt(e),{mode:l}=s;if(r.isLeaving)return C0(o);const u=fI(o);if(!u)return C0(o);const c=Hd(u,s,r,n);_c(u,c);const f=n.subTree,d=f&&fI(f);let v=!1;const{getTransitionKey:h}=u.type;if(h){const g=h();a===void 0?a=g:g!==a&&(a=g,v=!0)}if(d&&d.type!==qn&&(!Ea(u,d)||v)){const g=Hd(d,s,r,n);if(_c(d,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},C0(o);l==="in-out"&&u.type!==qn&&(g.delayLeave=(p,m,y)=>{const _=mO(r,d);_[String(d.key)]=d,p[Vo]=()=>{m(),p[Vo]=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},d6=f6;function mO(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Hd(e,t,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:g,onAppear:p,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=mO(n,e),x=(C,T)=>{C&&va(C,r,9,T)},S=(C,T)=>{const A=T[1];x(C,T),Ne(C)?C.every(P=>P.length<=1)&&A():C.length<=1&&A()},w={mode:i,persisted:o,beforeEnter(C){let T=s;if(!n.isMounted)if(a)T=g||s;else return;C[Vo]&&C[Vo](!0);const A=b[_];A&&Ea(e,A)&&A.el[Vo]&&A.el[Vo](),x(T,[C])},enter(C){let T=l,A=u,P=c;if(!n.isMounted)if(a)T=p||l,A=m||u,P=y||c;else return;let D=!1;const M=C[Ph]=L=>{D||(D=!0,L?x(P,[C]):x(A,[C]),w.delayedLeave&&w.delayedLeave(),C[Ph]=void 0)};T?S(T,[C,M]):M()},leave(C,T){const A=String(e.key);if(C[Ph]&&C[Ph](!0),n.isUnmounting)return T();x(f,[C]);let P=!1;const D=C[Vo]=M=>{P||(P=!0,T(),M?x(h,[C]):x(v,[C]),C[Vo]=void 0,b[A]===e&&delete b[A])};b[A]=e,d?S(d,[C,D]):D()},clone(C){return Hd(C,t,n,r)}};return w}function C0(e){if(zv(e))return e=mi(e),e.children=null,e}function fI(e){return zv(e)?e.children?e.children[0]:void 0:e}function _c(e,t){e.shapeFlag&6&&e.component?_c(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Rw(e,t=!1,n){let r=[],a=0;for(let i=0;i1)for(let i=0;iWt({name:e.name},t,{setup:e}))():e}const Ml=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function CCe(e){qe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:a=200,timeout:i,suspensible:o=!0,onError:s}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let v;return l||(v=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),s)return new Promise((g,p)=>{s(h,()=>g(f()),()=>p(h),c+1)});throw h}).then(h=>v!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return ys({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const v=yn;if(u)return()=>T0(u,v);const h=y=>{l=null,Gc(y,v,13,!r)};if(o&&v.suspense||$v)return d().then(y=>()=>T0(y,v)).catch(y=>(h(y),()=>r?I(r,{error:y}):null));const g=pe(!1),p=pe(),m=pe(!!a);return a&&setTimeout(()=>{m.value=!1},a),i!=null&&setTimeout(()=>{if(!g.value&&!p.value){const y=new Error(`Async component timed out after ${i}ms.`);h(y),p.value=y}},i),d().then(()=>{g.value=!0,v.parent&&zv(v.parent.vnode)&&(v.parent.effect.dirty=!0,Xm(v.parent.update))}).catch(y=>{h(y),p.value=y}),()=>{if(g.value&&u)return T0(u,v);if(p.value&&r)return I(r,{error:p.value});if(n&&!m.value)return I(n)}}})}function T0(e,t){const{ref:n,props:r,children:a,ce:i}=t.vnode,o=I(e,r,a);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const zv=e=>e.type.__isKeepAlive,v6={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ba(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const a=new Map,i=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(y,_,b,x,S)=>{const w=y.component;u(y,_,b,0,s),l(w.vnode,y,_,b,w,s,x,y.slotScopeIds,S),Nn(()=>{w.isDeactivated=!1,w.a&&uc(w.a);const C=y.props&&y.props.onVnodeMounted;C&&_r(C,w.parent,y)},s)},r.deactivate=y=>{const _=y.component;u(y,d,null,1,s),Nn(()=>{_.da&&uc(_.da);const b=y.props&&y.props.onVnodeUnmounted;b&&_r(b,_.parent,y),_.isDeactivated=!0},s)};function v(y){A0(y),c(y,n,s,!0)}function h(y){a.forEach((_,b)=>{const x=ES(_.type);x&&(!y||!y(x))&&g(b)})}function g(y){const _=a.get(y);!o||!Ea(_,o)?v(_):o&&A0(o),a.delete(y),i.delete(y)}Se(()=>[e.include,e.exclude],([y,_])=>{y&&h(b=>Kf(y,b)),_&&h(b=>!Kf(_,b))},{flush:"post",deep:!0});let p=null;const m=()=>{p!=null&&a.set(p,I0(n.subTree))};return ln(m),Vw(m),En(()=>{a.forEach(y=>{const{subTree:_,suspense:b}=n,x=I0(_);if(y.type===x.type&&y.key===x.key){A0(x);const S=x.component.da;S&&Nn(S,b);return}v(y)})}),()=>{if(p=null,!t.default)return null;const y=t.default(),_=y[0];if(y.length>1)return o=null,y;if(!os(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let b=I0(_);const x=b.type,S=ES(Ml(b)?b.type.__asyncResolved||{}:x),{include:w,exclude:C,max:T}=e;if(w&&(!S||!Kf(w,S))||C&&S&&Kf(C,S))return o=b,_;const A=b.key==null?x:b.key,P=a.get(A);return b.el&&(b=mi(b),_.shapeFlag&128&&(_.ssContent=b)),p=A,P?(b.el=P.el,b.component=P.component,b.transition&&_c(b,b.transition),b.shapeFlag|=512,i.delete(A),i.add(A)):(i.add(A),T&&i.size>parseInt(T,10)&&g(i.values().next().value)),b.shapeFlag|=256,o=b,dO(_.type)?_:b}}},TCe=v6;function Kf(e,t){return Ne(e)?e.some(n=>Kf(n,t)):Ut(e)?e.split(",").includes(t):nU(e)?e.test(t):!1}function yO(e,t){bO(e,"a",t)}function _O(e,t){bO(e,"da",t)}function bO(e,t,n=yn){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Km(t,r,n),n){let a=n.parent;for(;a&&a.parent;)zv(a.parent.vnode)&&h6(r,t,n,a),a=a.parent}}function h6(e,t,n,r){const a=Km(t,e,r,!0);Fv(()=>{Sw(r[t],a)},n)}function A0(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function I0(e){return e.shapeFlag&128?e.ssContent:e}function Km(e,t,n=yn,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;lu();const s=Yl(n),l=va(t,n,e,o);return s(),uu(),l});return r?a.unshift(i):a.push(i),i}}const ao=e=>(t,n=yn)=>(!$v||e==="sp")&&Km(e,(...r)=>t(...r),n),qm=ao("bm"),ln=ao("m"),SO=ao("bu"),Vw=ao("u"),En=ao("bum"),Fv=ao("um"),g6=ao("sp"),p6=ao("rtg"),m6=ao("rtc");function y6(e,t=yn){Km("ec",e,t)}function xS(e,t,n,r){let a;const i=n&&n[r];if(Ne(e)||Ut(e)){a=new Array(e.length);for(let o=0,s=e.length;ot(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function ACe(e,t,n={},r,a){if(dn.isCE||dn.parent&&Ml(dn.parent)&&dn.parent.isCE)return t!=="default"&&(n.name=t),I("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),en();const o=i&&xO(i(n)),s=wr(ke,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function xO(e){return e.some(t=>os(t)?!(t.type===qn||t.type===ke&&!xO(t.children)):!0)?e:null}function ICe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hg(r)]=e[r];return n}const wS=e=>e?FO(e)?Qm(e)||e.proxy:wS(e.parent):null,dd=Wt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wS(e.parent),$root:e=>wS(e.root),$emit:e=>e.emit,$options:e=>Ow(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Xm(e.update)}),$nextTick:e=>e.n||(e.n=dt.bind(e.proxy)),$watch:e=>c6.bind(e)}),P0=(e,t)=>e!==Pt&&!e.__isScriptSetup&&mt(e,t),CS={get({_:e},t){const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(P0(r,t))return o[t]=1,r[t];if(a!==Pt&&mt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&mt(u,t))return o[t]=3,i[t];if(n!==Pt&&mt(n,t))return o[t]=4,n[t];TS&&(o[t]=0)}}const c=dd[t];let f,d;if(c)return t==="$attrs"&&Ir(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Pt&&mt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,mt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return P0(a,t)?(a[t]=n,!0):r!==Pt&&mt(r,t)?(r[t]=n,!0):mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==Pt&&mt(e,o)||P0(t,o)||(s=i[0])&&mt(s,o)||mt(r,o)||mt(dd,o)||mt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},b6=Wt({},CS,{get(e,t){if(t!==Symbol.unscopables)return CS.get(e,t,e)},has(e,t){return t[0]!=="_"&&!sU(t)}});function PCe(){return null}function DCe(){return null}function MCe(e){}function kCe(e){}function LCe(){return null}function ECe(){}function RCe(e,t){return null}function VCe(){return wO().slots}function OCe(){return wO().attrs}function NCe(e,t,n=Pt){const r=ba(),a=Kn(t),i=Or(t),o=zU((l,u)=>{let c;return u6(()=>{const f=e[t];$a(c,f)&&(c=f,u())}),{get(){return l(),n.get?n.get(c):c},set(f){const d=r.vnode.props;!(d&&(t in d||a in d||i in d)&&(`onUpdate:${t}`in d||`onUpdate:${a}`in d||`onUpdate:${i}`in d))&&$a(f,c)&&(c=f,u()),r.emit(`update:${t}`,n.set?n.set(f):f)}}}),s=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[s]||{}:o,done:!1}:{done:!0}}}},o}function wO(){const e=ba();return e.setupContext||(e.setupContext=HO(e))}function Wd(e){return Ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function BCe(e,t){const n=Wd(e);for(const r in t){if(r.startsWith("__skip"))continue;let a=n[r];a?Ne(a)||qe(a)?a=n[r]={type:a,default:t[r]}:a.default=t[r]:a===null&&(a=n[r]={default:t[r]}),a&&t[`__skip_${r}`]&&(a.skipFactory=!0)}return n}function zCe(e,t){return!e||!t?e||t:Ne(e)&&Ne(t)?e.concat(t):Wt({},Wd(e),Wd(t))}function FCe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function $Ce(e){const t=ba();let n=e();return MS(),xw(n)&&(n=n.catch(r=>{throw Yl(t),r})),[n,()=>Yl(t)]}let TS=!0;function S6(e){const t=Ow(e),n=e.proxy,r=e.ctx;TS=!1,t.beforeCreate&&dI(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:v,updated:h,activated:g,deactivated:p,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:S,renderTriggered:w,errorCaptured:C,serverPrefetch:T,expose:A,inheritAttrs:P,components:D,directives:M,filters:L}=t;if(u&&x6(u,r,null),o)for(const W in o){const V=o[W];qe(V)&&(r[W]=V.bind(n))}if(a){const W=a.call(n,n);Vt(W)&&(e.data=In(W))}if(TS=!0,i)for(const W in i){const V=i[W],G=qe(V)?V.bind(n,n):qe(V.get)?V.get.bind(n,n):jn,X=!qe(V)&&qe(V.set)?V.set.bind(n):jn,Z=E({get:G,set:X});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>Z.value,set:J=>Z.value=J})}if(s)for(const W in s)CO(s[W],r,n,W);if(l){const W=qe(l)?l.call(n):l;Reflect.ownKeys(W).forEach(V=>{Tt(V,W[V])})}c&&dI(c,e,"c");function O(W,V){Ne(V)?V.forEach(G=>W(G.bind(n))):V&&W(V.bind(n))}if(O(qm,f),O(ln,d),O(SO,v),O(Vw,h),O(yO,g),O(_O,p),O(y6,C),O(m6,S),O(p6,w),O(En,y),O(Fv,b),O(g6,T),Ne(A))if(A.length){const W=e.exposed||(e.exposed={});A.forEach(V=>{Object.defineProperty(W,V,{get:()=>n[V],set:G=>n[V]=G})})}else e.exposed||(e.exposed={});x&&e.render===jn&&(e.render=x),P!=null&&(e.inheritAttrs=P),D&&(e.components=D),M&&(e.directives=M)}function x6(e,t,n=jn){Ne(e)&&(e=AS(e));for(const r in e){const a=e[r];let i;Vt(a)?"default"in a?i=nt(a.from||r,a.default,!0):i=nt(a.from||r):i=nt(a),Ft(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function dI(e,t,n){va(Ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function CO(e,t,n,r){const a=r.includes(".")?hO(n,r):()=>n[r];if(Ut(e)){const i=t[e];qe(i)&&Se(a,i)}else if(qe(e))Se(a,e.bind(n));else if(Vt(e))if(Ne(e))e.forEach(i=>CO(i,t,n,r));else{const i=qe(e.handler)?e.handler.bind(n):t[e.handler];qe(i)&&Se(a,i,e)}}function Ow(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>wp(l,u,o,!0)),wp(l,t,o)),Vt(t)&&i.set(t,l),l}function wp(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&wp(e,i,n,!0),a&&a.forEach(o=>wp(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=w6[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const w6={data:vI,props:hI,emits:hI,methods:qf,computed:qf,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:qf,directives:qf,watch:T6,provide:vI,inject:C6};function vI(e,t){return t?e?function(){return Wt(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function C6(e,t){return qf(AS(e),AS(t))}function AS(e){if(Ne(e)){const t={};for(let n=0;n1)return n&&qe(t)?t.call(r&&r.proxy):t}}function P6(){return!!(yn||dn||Ud)}function D6(e,t,n,r=!1){const a={},i={};mp(i,Jm,1),e.propsDefaults=Object.create(null),AO(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:tO(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function M6(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=rt(a),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,v]=IO(f,t,!0);Wt(o,d),v&&s.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Vt(e)&&r.set(e,sc),sc;if(Ne(i))for(let c=0;c-1,v[1]=g<0||h-1||mt(v,"default"))&&s.push(f)}}}const u=[o,s];return Vt(e)&&r.set(e,u),u}function gI(e){return e[0]!=="$"}function pI(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function mI(e,t){return pI(e)===pI(t)}function yI(e,t){return Ne(t)?t.findIndex(n=>mI(n,e)):qe(t)&&mI(t,e)?0:-1}const PO=e=>e[0]==="_"||e==="$stable",Nw=e=>Ne(e)?e.map(Vr):[Vr(e)],k6=(e,t,n)=>{if(t._n)return t;const r=zt((...a)=>Nw(t(...a)),n);return r._c=!1,r},DO=(e,t,n)=>{const r=e._ctx;for(const a in e){if(PO(a))continue;const i=e[a];if(qe(i))t[a]=k6(a,i,r);else if(i!=null){const o=Nw(i);t[a]=()=>o}}},MO=(e,t)=>{const n=Nw(t);e.slots.default=()=>n},L6=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=rt(t),mp(t,"_",n)):DO(t,e.slots={})}else e.slots={},t&&MO(e,t);mp(e.slots,Jm,1)},E6=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Pt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Wt(a,t),!n&&s===1&&delete a._):(i=!t.$stable,DO(t,a)),o=t}else t&&(MO(e,t),o={default:1});if(i)for(const s in a)!PO(s)&&o[s]==null&&delete a[s]};function Cp(e,t,n,r,a=!1){if(Ne(e)){e.forEach((d,v)=>Cp(d,t&&(Ne(t)?t[v]:t),n,r,a));return}if(Ml(r)&&!a)return;const i=r.shapeFlag&4?Qm(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Pt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Ut(u)?(c[u]=null,mt(f,u)&&(f[u]=null)):Ft(u)&&(u.value=null)),qe(l))Jo(l,s,12,[o,c]);else{const d=Ut(l),v=Ft(l);if(d||v){const h=()=>{if(e.f){const g=d?mt(f,l)?f[l]:c[l]:l.value;a?Ne(g)&&Sw(g,i):Ne(g)?g.includes(i)||g.push(i):d?(c[l]=[i],mt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,mt(f,l)&&(f[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};o?(h.id=-1,Nn(h,n)):h()}}}let mo=!1;const R6=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",V6=e=>e.namespaceURI.includes("MathML"),Dh=e=>{if(R6(e))return"svg";if(V6(e))return"mathml"},Mh=e=>e.nodeType===8;function O6(e){const{mt:t,p:n,o:{patchProp:r,createText:a,nextSibling:i,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(_,b)=>{if(!b.hasChildNodes()){n(null,_,b),xp(),b._vnode=_;return}mo=!1,f(b.firstChild,_,null,null,null),xp(),b._vnode=_,mo&&console.error("Hydration completed but contains mismatches.")},f=(_,b,x,S,w,C=!1)=>{const T=Mh(_)&&_.data==="[",A=()=>g(_,b,x,S,w,T),{type:P,ref:D,shapeFlag:M,patchFlag:L}=b;let R=_.nodeType;b.el=_,L===-2&&(C=!1,b.dynamicChildren=null);let O=null;switch(P){case is:R!==3?b.children===""?(l(b.el=a(""),o(_),_),O=_):O=A():(_.data!==b.children&&(mo=!0,_.data=b.children),O=i(_));break;case qn:y(_)?(O=i(_),m(b.el=_.content.firstChild,_,x)):R!==8||T?O=A():O=i(_);break;case dc:if(T&&(_=i(_),R=_.nodeType),R===1||R===3){O=_;const W=!b.children.length;for(let V=0;V{C=C||!!b.dynamicChildren;const{type:T,props:A,patchFlag:P,shapeFlag:D,dirs:M,transition:L}=b,R=T==="input"||T==="option";if(R||P!==-1){M&&ai(b,null,x,"created");let O=!1;if(y(_)){O=LO(S,L)&&x&&x.vnode.props&&x.vnode.props.appear;const V=_.content.firstChild;O&&L.beforeEnter(V),m(V,_,x),b.el=_=V}if(D&16&&!(A&&(A.innerHTML||A.textContent))){let V=v(_.firstChild,b,_,x,S,w,C);for(;V;){mo=!0;const G=V;V=V.nextSibling,s(G)}}else D&8&&_.textContent!==b.children&&(mo=!0,_.textContent=b.children);if(A)if(R||!C||P&48)for(const V in A)(R&&(V.endsWith("value")||V==="indeterminate")||Vv(V)&&!fd(V)||V[0]===".")&&r(_,V,null,A[V],void 0,void 0,x);else A.onClick&&r(_,"onClick",null,A.onClick,void 0,void 0,x);let W;(W=A&&A.onVnodeBeforeMount)&&_r(W,x,b),M&&ai(b,null,x,"beforeMount"),((W=A&&A.onVnodeMounted)||M||O)&&vO(()=>{W&&_r(W,x,b),O&&L.enter(_),M&&ai(b,null,x,"mounted")},S)}return _.nextSibling},v=(_,b,x,S,w,C,T)=>{T=T||!!b.dynamicChildren;const A=b.children,P=A.length;for(let D=0;D{const{slotScopeIds:T}=b;T&&(w=w?w.concat(T):T);const A=o(_),P=v(i(_),b,A,x,S,w,C);return P&&Mh(P)&&P.data==="]"?i(b.anchor=P):(mo=!0,l(b.anchor=u("]"),A,P),P)},g=(_,b,x,S,w,C)=>{if(mo=!0,b.el=null,C){const P=p(_);for(;;){const D=i(_);if(D&&D!==P)s(D);else break}}const T=i(_),A=o(_);return s(_),n(null,b,A,T,x,S,Dh(A),w),T},p=(_,b="[",x="]")=>{let S=0;for(;_;)if(_=i(_),_&&Mh(_)&&(_.data===b&&S++,_.data===x)){if(S===0)return i(_);S--}return _},m=(_,b,x)=>{const S=b.parentNode;S&&S.replaceChild(_,b);let w=x;for(;w;)w.vnode.el===b&&(w.vnode.el=w.subTree.el=_),w=w.parent},y=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[c,f]}const Nn=vO;function N6(e){return kO(e)}function B6(e){return kO(e,O6)}function kO(e,t){const n=OV();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:v=jn,insertStaticContent:h}=e,g=(N,B,K,ae=null,ie=null,ve=null,ye=void 0,me=null,_e=!!B.dynamicChildren)=>{if(N===B)return;N&&!Ea(N,B)&&(ae=z(N),J(N,ie,ve,!0),N=null),B.patchFlag===-2&&(_e=!1,B.dynamicChildren=null);const{type:he,ref:De,shapeFlag:Me}=B;switch(he){case is:p(N,B,K,ae);break;case qn:m(N,B,K,ae);break;case dc:N==null&&y(B,K,ae,ye);break;case ke:D(N,B,K,ae,ie,ve,ye,me,_e);break;default:Me&1?x(N,B,K,ae,ie,ve,ye,me,_e):Me&6?M(N,B,K,ae,ie,ve,ye,me,_e):(Me&64||Me&128)&&he.process(N,B,K,ae,ie,ve,ye,me,_e,Y)}De!=null&&ie&&Cp(De,N&&N.ref,ve,B||N,!B)},p=(N,B,K,ae)=>{if(N==null)r(B.el=s(B.children),K,ae);else{const ie=B.el=N.el;B.children!==N.children&&u(ie,B.children)}},m=(N,B,K,ae)=>{N==null?r(B.el=l(B.children||""),K,ae):B.el=N.el},y=(N,B,K,ae)=>{[N.el,N.anchor]=h(N.children,B,K,ae,N.el,N.anchor)},_=({el:N,anchor:B},K,ae)=>{let ie;for(;N&&N!==B;)ie=d(N),r(N,K,ae),N=ie;r(B,K,ae)},b=({el:N,anchor:B})=>{let K;for(;N&&N!==B;)K=d(N),a(N),N=K;a(B)},x=(N,B,K,ae,ie,ve,ye,me,_e)=>{B.type==="svg"?ye="svg":B.type==="math"&&(ye="mathml"),N==null?S(B,K,ae,ie,ve,ye,me,_e):T(N,B,ie,ve,ye,me,_e)},S=(N,B,K,ae,ie,ve,ye,me)=>{let _e,he;const{props:De,shapeFlag:Me,transition:re,dirs:ce}=N;if(_e=N.el=o(N.type,ve,De&&De.is,De),Me&8?c(_e,N.children):Me&16&&C(N.children,_e,null,ae,ie,D0(N,ve),ye,me),ce&&ai(N,null,ae,"created"),w(_e,N,N.scopeId,ye,ae),De){for(const Ze in De)Ze!=="value"&&!fd(Ze)&&i(_e,Ze,null,De[Ze],ve,N.children,ae,ie,$);"value"in De&&i(_e,"value",null,De.value,ve),(he=De.onVnodeBeforeMount)&&_r(he,ae,N)}ce&&ai(N,null,ae,"beforeMount");const Oe=LO(ie,re);Oe&&re.beforeEnter(_e),r(_e,B,K),((he=De&&De.onVnodeMounted)||Oe||ce)&&Nn(()=>{he&&_r(he,ae,N),Oe&&re.enter(_e),ce&&ai(N,null,ae,"mounted")},ie)},w=(N,B,K,ae,ie)=>{if(K&&v(N,K),ae)for(let ve=0;ve{for(let he=_e;he{const me=B.el=N.el;let{patchFlag:_e,dynamicChildren:he,dirs:De}=B;_e|=N.patchFlag&16;const Me=N.props||Pt,re=B.props||Pt;let ce;if(K&&Ps(K,!1),(ce=re.onVnodeBeforeUpdate)&&_r(ce,K,B,N),De&&ai(B,N,K,"beforeUpdate"),K&&Ps(K,!0),he?A(N.dynamicChildren,he,me,K,ae,D0(B,ie),ve):ye||V(N,B,me,null,K,ae,D0(B,ie),ve,!1),_e>0){if(_e&16)P(me,B,Me,re,K,ae,ie);else if(_e&2&&Me.class!==re.class&&i(me,"class",null,re.class,ie),_e&4&&i(me,"style",Me.style,re.style,ie),_e&8){const Oe=B.dynamicProps;for(let Ze=0;Ze{ce&&_r(ce,K,B,N),De&&ai(B,N,K,"updated")},ae)},A=(N,B,K,ae,ie,ve,ye)=>{for(let me=0;me{if(K!==ae){if(K!==Pt)for(const me in K)!fd(me)&&!(me in ae)&&i(N,me,K[me],null,ye,B.children,ie,ve,$);for(const me in ae){if(fd(me))continue;const _e=ae[me],he=K[me];_e!==he&&me!=="value"&&i(N,me,he,_e,ye,B.children,ie,ve,$)}"value"in ae&&i(N,"value",K.value,ae.value,ye)}},D=(N,B,K,ae,ie,ve,ye,me,_e)=>{const he=B.el=N?N.el:s(""),De=B.anchor=N?N.anchor:s("");let{patchFlag:Me,dynamicChildren:re,slotScopeIds:ce}=B;ce&&(me=me?me.concat(ce):ce),N==null?(r(he,K,ae),r(De,K,ae),C(B.children||[],K,De,ie,ve,ye,me,_e)):Me>0&&Me&64&&re&&N.dynamicChildren?(A(N.dynamicChildren,re,K,ie,ve,ye,me),(B.key!=null||ie&&B===ie.subTree)&&Bw(N,B,!0)):V(N,B,K,De,ie,ve,ye,me,_e)},M=(N,B,K,ae,ie,ve,ye,me,_e)=>{B.slotScopeIds=me,N==null?B.shapeFlag&512?ie.ctx.activate(B,K,ae,ye,_e):L(B,K,ae,ie,ve,ye,_e):R(N,B,_e)},L=(N,B,K,ae,ie,ve,ye)=>{const me=N.component=zO(N,ae,ie);if(zv(N)&&(me.ctx.renderer=Y),$O(me),me.asyncDep){if(ie&&ie.registerDep(me,O),!N.el){const _e=me.subTree=I(qn);m(null,_e,B,K)}}else O(me,N,B,K,ie,ve,ye)},R=(N,B,K)=>{const ae=B.component=N.component;if(qU(N,B,K))if(ae.asyncDep&&!ae.asyncResolved){W(ae,B,K);return}else ae.next=B,UU(ae.update),ae.effect.dirty=!0,ae.update();else B.el=N.el,ae.vnode=B},O=(N,B,K,ae,ie,ve,ye)=>{const me=()=>{if(N.isMounted){let{next:De,bu:Me,u:re,parent:ce,vnode:Oe}=N;{const go=EO(N);if(go){De&&(De.el=Oe.el,W(N,De,ye)),go.asyncDep.then(()=>{N.isUnmounted||me()});return}}let Ze=De,_t;Ps(N,!1),De?(De.el=Oe.el,W(N,De,ye)):De=Oe,Me&&uc(Me),(_t=De.props&&De.props.onVnodeBeforeUpdate)&&_r(_t,ce,De,Oe),Ps(N,!0);const jt=Wg(N),Tn=N.subTree;N.subTree=jt,g(Tn,jt,f(Tn.el),z(Tn),N,ie,ve),De.el=jt.el,Ze===null&&Mw(N,jt.el),re&&Nn(re,ie),(_t=De.props&&De.props.onVnodeUpdated)&&Nn(()=>_r(_t,ce,De,Oe),ie)}else{let De;const{el:Me,props:re}=B,{bm:ce,m:Oe,parent:Ze}=N,_t=Ml(B);if(Ps(N,!1),ce&&uc(ce),!_t&&(De=re&&re.onVnodeBeforeMount)&&_r(De,Ze,B),Ps(N,!0),Me&&te){const jt=()=>{N.subTree=Wg(N),te(Me,N.subTree,N,ie,null)};_t?B.type.__asyncLoader().then(()=>!N.isUnmounted&&jt()):jt()}else{const jt=N.subTree=Wg(N);g(null,jt,K,ae,N,ie,ve),B.el=jt.el}if(Oe&&Nn(Oe,ie),!_t&&(De=re&&re.onVnodeMounted)){const jt=B;Nn(()=>_r(De,Ze,jt),ie)}(B.shapeFlag&256||Ze&&Ml(Ze.vnode)&&Ze.vnode.shapeFlag&256)&&N.a&&Nn(N.a,ie),N.isMounted=!0,B=K=ae=null}},_e=N.effect=new Od(me,jn,()=>Xm(he),N.scope),he=N.update=()=>{_e.dirty&&_e.run()};he.id=N.uid,Ps(N,!0),he()},W=(N,B,K)=>{B.component=N;const ae=N.vnode.props;N.vnode=B,N.next=null,M6(N,B.props,ae,K),E6(N,B.children,K),lu(),sI(N),uu()},V=(N,B,K,ae,ie,ve,ye,me,_e=!1)=>{const he=N&&N.children,De=N?N.shapeFlag:0,Me=B.children,{patchFlag:re,shapeFlag:ce}=B;if(re>0){if(re&128){X(he,Me,K,ae,ie,ve,ye,me,_e);return}else if(re&256){G(he,Me,K,ae,ie,ve,ye,me,_e);return}}ce&8?(De&16&&$(he,ie,ve),Me!==he&&c(K,Me)):De&16?ce&16?X(he,Me,K,ae,ie,ve,ye,me,_e):$(he,ie,ve,!0):(De&8&&c(K,""),ce&16&&C(Me,K,ae,ie,ve,ye,me,_e))},G=(N,B,K,ae,ie,ve,ye,me,_e)=>{N=N||sc,B=B||sc;const he=N.length,De=B.length,Me=Math.min(he,De);let re;for(re=0;reDe?$(N,ie,ve,!0,!1,Me):C(B,K,ae,ie,ve,ye,me,_e,Me)},X=(N,B,K,ae,ie,ve,ye,me,_e)=>{let he=0;const De=B.length;let Me=N.length-1,re=De-1;for(;he<=Me&&he<=re;){const ce=N[he],Oe=B[he]=_e?Oo(B[he]):Vr(B[he]);if(Ea(ce,Oe))g(ce,Oe,K,null,ie,ve,ye,me,_e);else break;he++}for(;he<=Me&&he<=re;){const ce=N[Me],Oe=B[re]=_e?Oo(B[re]):Vr(B[re]);if(Ea(ce,Oe))g(ce,Oe,K,null,ie,ve,ye,me,_e);else break;Me--,re--}if(he>Me){if(he<=re){const ce=re+1,Oe=cere)for(;he<=Me;)J(N[he],ie,ve,!0),he++;else{const ce=he,Oe=he,Ze=new Map;for(he=Oe;he<=re;he++){const Lr=B[he]=_e?Oo(B[he]):Vr(B[he]);Lr.key!=null&&Ze.set(Lr.key,he)}let _t,jt=0;const Tn=re-Oe+1;let go=!1,x0=0;const gf=new Array(Tn);for(he=0;he=Tn){J(Lr,ie,ve,!0);continue}let Ka;if(Lr.key!=null)Ka=Ze.get(Lr.key);else for(_t=Oe;_t<=re;_t++)if(gf[_t-Oe]===0&&Ea(Lr,B[_t])){Ka=_t;break}Ka===void 0?J(Lr,ie,ve,!0):(gf[Ka-Oe]=he+1,Ka>=x0?x0=Ka:go=!0,g(Lr,B[Ka],K,null,ie,ve,ye,me,_e),jt++)}const KA=go?z6(gf):sc;for(_t=KA.length-1,he=Tn-1;he>=0;he--){const Lr=Oe+he,Ka=B[Lr],qA=Lr+1{const{el:ve,type:ye,transition:me,children:_e,shapeFlag:he}=N;if(he&6){Z(N.component.subTree,B,K,ae);return}if(he&128){N.suspense.move(B,K,ae);return}if(he&64){ye.move(N,B,K,Y);return}if(ye===ke){r(ve,B,K);for(let Me=0;Me<_e.length;Me++)Z(_e[Me],B,K,ae);r(N.anchor,B,K);return}if(ye===dc){_(N,B,K);return}if(ae!==2&&he&1&&me)if(ae===0)me.beforeEnter(ve),r(ve,B,K),Nn(()=>me.enter(ve),ie);else{const{leave:Me,delayLeave:re,afterLeave:ce}=me,Oe=()=>r(ve,B,K),Ze=()=>{Me(ve,()=>{Oe(),ce&&ce()})};re?re(ve,Oe,Ze):Ze()}else r(ve,B,K)},J=(N,B,K,ae=!1,ie=!1)=>{const{type:ve,props:ye,ref:me,children:_e,dynamicChildren:he,shapeFlag:De,patchFlag:Me,dirs:re}=N;if(me!=null&&Cp(me,null,K,N,!0),De&256){B.ctx.deactivate(N);return}const ce=De&1&&re,Oe=!Ml(N);let Ze;if(Oe&&(Ze=ye&&ye.onVnodeBeforeUnmount)&&_r(Ze,B,N),De&6)U(N.component,K,ae);else{if(De&128){N.suspense.unmount(K,ae);return}ce&&ai(N,null,B,"beforeUnmount"),De&64?N.type.remove(N,B,K,ie,Y,ae):he&&(ve!==ke||Me>0&&Me&64)?$(he,B,K,!1,!0):(ve===ke&&Me&384||!ie&&De&16)&&$(_e,B,K),ae&&ee(N)}(Oe&&(Ze=ye&&ye.onVnodeUnmounted)||ce)&&Nn(()=>{Ze&&_r(Ze,B,N),ce&&ai(N,null,B,"unmounted")},K)},ee=N=>{const{type:B,el:K,anchor:ae,transition:ie}=N;if(B===ke){F(K,ae);return}if(B===dc){b(N);return}const ve=()=>{a(K),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(N.shapeFlag&1&&ie&&!ie.persisted){const{leave:ye,delayLeave:me}=ie,_e=()=>ye(K,ve);me?me(N.el,ve,_e):_e()}else ve()},F=(N,B)=>{let K;for(;N!==B;)K=d(N),a(N),N=K;a(B)},U=(N,B,K)=>{const{bum:ae,scope:ie,update:ve,subTree:ye,um:me}=N;ae&&uc(ae),ie.stop(),ve&&(ve.active=!1,J(ye,N,B,K)),me&&Nn(me,B),Nn(()=>{N.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},$=(N,B,K,ae=!1,ie=!1,ve=0)=>{for(let ye=ve;yeN.shapeFlag&6?z(N.component.subTree):N.shapeFlag&128?N.suspense.next():d(N.anchor||N.el);let H=!1;const j=(N,B,K)=>{N==null?B._vnode&&J(B._vnode,null,null,!0):g(B._vnode||null,N,B,null,null,null,K),H||(H=!0,sI(),xp(),H=!1),B._vnode=N},Y={p:g,um:J,m:Z,r:ee,mt:L,mc:C,pc:V,pbc:A,n:z,o:e};let q,te;return t&&([q,te]=t(Y)),{render:j,hydrate:q,createApp:I6(j,q)}}function D0({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ps({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function LO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Bw(e,t,n=!1){const r=e.children,a=t.children;if(Ne(r)&&Ne(a))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function EO(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:EO(t)}const F6=e=>e.__isTeleport,vd=e=>e&&(e.disabled||e.disabled===""),_I=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bI=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,PS=(e,t)=>{const n=e&&e.to;return Ut(n)?t?t(n):null:n},$6={name:"Teleport",__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:v,querySelector:h,createText:g,createComment:p}}=u,m=vd(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=g(""),S=t.anchor=g("");v(x,n,r),v(S,n,r);const w=t.target=PS(t.props,h),C=t.targetAnchor=g("");w&&(v(C,w),o==="svg"||_I(w)?o="svg":(o==="mathml"||bI(w))&&(o="mathml"));const T=(A,P)=>{y&16&&c(_,A,P,a,i,o,s,l)};m?T(n,S):w&&T(w,C)}else{t.el=e.el;const x=t.anchor=e.anchor,S=t.target=e.target,w=t.targetAnchor=e.targetAnchor,C=vd(e.props),T=C?n:S,A=C?x:w;if(o==="svg"||_I(S)?o="svg":(o==="mathml"||bI(S))&&(o="mathml"),b?(d(e.dynamicChildren,b,T,a,i,o,s),Bw(e,t,!0)):l||f(e,t,T,A,a,i,o,s,!1),m)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):kh(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=PS(t.props,h);P&&kh(t,P,null,u,0)}else C&&kh(t,S,w,u,1)}RO(t)},remove(e,t,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),o&&i(u),s&16){const v=o||!vd(d);for(let h=0;h0?Tr||sc:null,VO(),Ul>0&&Tr&&Tr.push(e),e}function kl(e,t,n,r,a,i){return OO(BO(e,t,n,r,a,i,!0))}function wr(e,t,n,r,a){return OO(I(e,t,n,r,a,!0))}function os(e){return e?e.__v_isVNode===!0:!1}function Ea(e,t){return e.type===t.type&&e.key===t.key}function GCe(e){}const Jm="__vInternal",NO=({key:e})=>e??null,Ug=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ut(e)||Ft(e)||qe(e)?{i:dn,r:e,k:t,f:!!n}:e:null);function BO(e,t=null,n=null,r=0,a=null,i=e===ke?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&NO(t),ref:t&&Ug(t),scopeId:jm,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:dn};return s?(zw(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Ut(n)?8:16),Ul>0&&!o&&Tr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Tr.push(l),l}const I=W6;function W6(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===fO)&&(e=qn),os(e)){const s=mi(e,t,!0);return n&&zw(s,n),Ul>0&&!i&&Tr&&(s.shapeFlag&6?Tr[Tr.indexOf(e)]=s:Tr.push(s)),s.patchFlag|=-2,s}if(K6(e)&&(e=e.__vccOpts),t){t=U6(t);let{class:s,style:l}=t;s&&!Ut(s)&&(t.class=$m(s)),Vt(l)&&(nO(l)&&!Ne(l)&&(l=Wt({},l)),t.style=Fm(l))}const o=Ut(e)?1:dO(e)?128:F6(e)?64:Vt(e)?4:qe(e)?2:0;return BO(e,t,n,r,a,o,i,!0)}function U6(e){return e?nO(e)||Jm in e?Wt({},e):e:null}function mi(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?ge(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&NO(s),ref:t&&t.ref?n&&a?Ne(a)?a.concat(Ug(t)):[a,Ug(t)]:Ug(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mi(e.ssContent),ssFallback:e.ssFallback&&mi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function $r(e=" ",t=0){return I(is,null,e,t)}function HCe(e,t){const n=I(dc,null,e);return n.staticCount=t,n}function oa(e="",t=!1){return t?(en(),wr(qn,null,e)):I(qn,null,e)}function Vr(e){return e==null||typeof e=="boolean"?I(qn):Ne(e)?I(ke,null,e.slice()):typeof e=="object"?Oo(e):I(is,null,String(e))}function Oo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mi(e)}function zw(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ne(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),zw(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Jm in t)?t._ctx=dn:a===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:dn},n=32):(t=String(t),r&64?(n=16,t=[$r(t)]):n=8);e.children=t,e.shapeFlag|=n}function ge(...e){const t={};for(let n=0;nyn||dn;let Tp,DS;{const e=OV(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};Tp=t("__VUE_INSTANCE_SETTERS__",n=>yn=n),DS=t("__VUE_SSR_SETTERS__",n=>$v=n)}const Yl=e=>{const t=yn;return Tp(e),e.scope.on(),()=>{e.scope.off(),Tp(t)}},MS=()=>{yn&&yn.scope.off(),Tp(null)};function FO(e){return e.vnode.shapeFlag&4}let $v=!1;function $O(e,t=!1){t&&DS(t);const{props:n,children:r}=e.vnode,a=FO(e);D6(e,n,a,t),L6(e,r);const i=a?Z6(e,t):void 0;return t&&DS(!1),i}function Z6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ym(new Proxy(e.ctx,CS));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?HO(e):null,i=Yl(e);lu();const o=Jo(r,e,0,[e.props,a]);if(uu(),i(),xw(o)){if(o.then(MS,MS),t)return o.then(s=>{kS(e,s,t)}).catch(s=>{Gc(s,e,0)});e.asyncDep=o}else kS(e,o,t)}else GO(e,t)}function kS(e,t,n){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=iO(t)),GO(e,n)}let Ap,LS;function WCe(e){Ap=e,LS=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,b6))}}const UCe=()=>!Ap;function GO(e,t,n){const r=e.type;if(!e.render){if(!t&&Ap&&!r.render){const a=r.template||Ow(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Wt(Wt({isCustomElement:i,delimiters:s},o),l);r.render=Ap(a,u)}}e.render=r.render||jn,LS&&LS(e)}{const a=Yl(e);lu();try{S6(e)}finally{uu(),a()}}}function j6(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ir(e,"get","$attrs"),t[n]}}))}function HO(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return j6(e)},slots:e.slots,emit:e.emit,expose:t}}function Qm(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(iO(Ym(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dd)return dd[n](e)},has(t,n){return n in t||n in dd}}))}function ES(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function K6(e){return qe(e)&&"__vccOpts"in e}const E=(e,t)=>VU(e,t,$v);function Sa(e,t,n){const r=arguments.length;return r===2?Vt(t)&&!Ne(t)?os(t)?I(e,null,[t]):I(e,t):I(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&os(n)&&(n=[n]),I(e,t,n))}function YCe(){}function XCe(e,t,n,r){const a=n[r];if(a&&q6(a,e))return a;const i=t();return i.memo=e.slice(),n[r]=i}function q6(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Tr&&Tr.push(e),!0}const J6="3.4.8",ZCe=jn,jCe=GU,KCe=void 0,qCe=jn,Q6={createComponentInstance:zO,setupComponent:$O,renderComponentRoot:Wg,setCurrentRenderingInstance:$d,isVNode:os,normalizeVNode:Vr},JCe=Q6,QCe=null,eTe=null,tTe=null;/** +**/function yCe(e,t){}const _Ce={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},GU={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Jo(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){Gc(i,t,n)}return a}function va(e,t,n,r){if(qe(e)){const i=Jo(e,t,n,r);return i&&Sw(i)&&i.catch(o=>{Gc(o,t,n)}),i}const a=[];for(let i=0;i>>1,a=Zn[r],i=Fd(a);ioi&&Zn.splice(t,1)}function _S(e){Ne(e)?cc.push(...e):(!Ro||!Ro.includes(e,e.allowRecurse?cl+1:cl))&&cc.push(e),lO()}function sI(e,t,n=zd?oi+1:0){for(;nFd(n)-Fd(r));if(cc.length=0,Ro){Ro.push(...t);return}for(Ro=t,cl=0;cle.id==null?1/0:e.id,YU=(e,t)=>{const n=Fd(e)-Fd(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function uO(e){yS=!1,zd=!0,Zn.sort(YU);const t=jn;try{for(oi=0;oiUt(v)?v.trim():v)),f&&(a=n.map(yp))}let s,l=r[s=Hg(t)]||r[s=Hg(Kn(t))];!l&&i&&(l=r[s=Hg(Or(t))]),l&&va(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,va(u,e,6,a)}}function cO(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!qe(e)){const l=u=>{const c=cO(u,t,!0);c&&(s=!0,Wt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Vt(e)&&r.set(e,null),null):(Ne(i)?i.forEach(l=>o[l]=null):Wt(o,i),Vt(e)&&r.set(e,o),o)}function Zm(e,t){return!e||!Vv(t)?!1:(t=t.slice(2).replace(/Once$/,""),mt(e,t[0].toLowerCase()+t.slice(1))||mt(e,Or(t))||mt(e,t))}let dn=null,jm=null;function $d(e){const t=dn;return dn=e,jm=e&&e.type.__scopeId||null,t}function bCe(e){jm=e}function SCe(){jm=null}const xCe=e=>zt;function zt(e,t=dn,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&SI(-1);const i=$d(t);let o;try{o=e(...a)}finally{$d(i),r._d&&SI(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Wg(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:v,ctx:h,inheritAttrs:g}=e;let p,m;const y=$d(e);try{if(n.shapeFlag&4){const b=a||r,x=b;p=Vr(c.call(x,b,f,i,v,d,h)),m=l}else{const b=t;p=Vr(b.length>1?b(i,{attrs:l,slots:s,emit:u}):b(i,null)),m=t.props?l:jU(l)}}catch(b){hd.length=0,Gc(b,e,1),p=I(qn)}let _=p;if(m&&g!==!1){const b=Object.keys(m),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(_w)&&(m=KU(m,o)),_=mi(_,m))}return n.dirs&&(_=mi(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),p=_,$d(y),p}function ZU(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Vv(n))&&((t||(t={}))[n]=e[n]);return t},KU=(e,t)=>{const n={};for(const r in e)(!_w(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qU(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?lI(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let bS=0;const e6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,a,i,o,s,l,u){e==null?t6(t,n,r,a,i,o,s,l,u):n6(e,t,n,r,a,o,s,l,u)},hydrate:r6,create:Lw,normalize:a6},wCe=e6;function Gd(e,t){const n=e.props&&e.props[t];qe(n)&&n()}function t6(e,t,n,r,a,i,o,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Lw(e,a,r,t,f,n,i,o,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,o),d.deps>0?(Gd(e,"onPending"),Gd(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),fc(d,e.ssFallback)):d.resolve(!1,!0)}function n6(e,t,n,r,a,i,o,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,v=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:p,isHydrating:m}=f;if(g)f.pendingBranch=d,Ea(d,g)?(l(g,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():p&&(m||(l(h,v,n,r,a,null,i,o,s),fc(f,v)))):(f.pendingId=bS++,m?(f.isHydrating=!1,f.activeBranch=g):u(g,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),p?(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():(l(h,v,n,r,a,null,i,o,s),fc(f,v))):h&&Ea(d,h)?(l(h,d,n,r,a,f,i,o,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0&&f.resolve()));else if(h&&Ea(d,h))l(h,d,n,r,a,f,i,o,s),fc(f,d);else if(Gd(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=bS++,l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:_}=f;y>0?setTimeout(()=>{f.pendingId===_&&f.fallback(v)},y):y===0&&f.fallback(v)}}function Lw(e,t,n,r,a,i,o,s,l,u,c=!1){const{p:f,m:d,um:v,n:h,o:{parentNode:g,remove:p}}=u;let m;const y=i6(e);y&&t!=null&&t.pendingBranch&&(m=t.pendingId,t.deps++);const _=e.props?_p(e.props.timeout):void 0,b=i,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:a,deps:0,pendingId:bS++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,w=!1){const{vnode:C,activeBranch:T,pendingBranch:A,pendingId:P,effects:D,parentComponent:M,container:L}=x;let R=!1;x.isHydrating?x.isHydrating=!1:S||(R=T&&A.transition&&A.transition.mode==="out-in",R&&(T.transition.afterLeave=()=>{P===x.pendingId&&(d(A,L,i===b?h(T):i,0),_S(D))}),T&&(g(T.el)!==x.hiddenContainer&&(i=h(T)),v(T,M,x,!0)),R||d(A,L,i,0)),fc(x,A),x.pendingBranch=null,x.isInFallback=!1;let O=x.parent,H=!1;for(;O;){if(O.pendingBranch){O.effects.push(...D),H=!0;break}O=O.parent}!H&&!R&&_S(D),x.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),Gd(C,"onResolve")},fallback(S){if(!x.pendingBranch)return;const{vnode:w,activeBranch:C,parentComponent:T,container:A,namespace:P}=x;Gd(w,"onFallback");const D=h(C),M=()=>{x.isInFallback&&(f(null,S,A,D,T,null,P,s,l),fc(x,S))},L=S.transition&&S.transition.mode==="out-in";L&&(C.transition.afterLeave=M),x.isInFallback=!0,v(C,T,null,!0),L||M()},move(S,w,C){x.activeBranch&&d(x.activeBranch,S,w,C),x.container=S},next(){return x.activeBranch&&h(x.activeBranch)},registerDep(S,w){const C=!!x.pendingBranch;C&&x.deps++;const T=S.vnode.el;S.asyncDep.catch(A=>{Gc(A,S,0)}).then(A=>{if(S.isUnmounted||x.isUnmounted||x.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:P}=S;MS(S,A,!1),T&&(P.el=T);const D=!T&&S.subTree.el;w(S,P,g(T||S.subTree.el),T?null:h(S.subTree),x,o,l),D&&p(D),Dw(S,P.el),C&&--x.deps===0&&x.resolve()})},unmount(S,w){x.isUnmounted=!0,x.activeBranch&&v(x.activeBranch,n,S,w),x.pendingBranch&&v(x.pendingBranch,n,S,w)}};return x}function r6(e,t,n,r,a,i,o,s,l){const u=t.suspense=Lw(t,r,n,e.parentNode,document.createElement("div"),null,a,i,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function a6(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=cI(r?n.default:n),e.ssFallback=r?cI(n.fallback):I(qn)}function cI(e){let t;if(qe(e)){const n=Ul&&e._c;n&&(e._d=!1,en()),e=e(),n&&(e._d=!0,t=Tr,VO())}return Ne(e)&&(e=ZU(e)),e=Vr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function vO(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):_S(e)}function fc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;n.el=a,r&&r.subTree===n&&(r.vnode.el=a,Dw(r,a))}function i6(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const o6=Symbol.for("v-scx"),s6=()=>nt(o6);function Ln(e,t){return Bv(e,null,t)}function l6(e,t){return Bv(e,null,{flush:"post"})}function u6(e,t){return Bv(e,null,{flush:"sync"})}const Ih={};function Se(e,t,n){return Bv(e,t,n)}function Bv(e,t,{immediate:n,deep:r,flush:a,once:i,onTrack:o,onTrigger:s}=Pt){if(t&&i){const S=t;t=(...w)=>{S(...w),x()}}const l=yn,u=S=>r===!0?S:pl(S,r===!1?1:void 0);let c,f=!1,d=!1;if(Ft(e)?(c=()=>e.value,f=Sp(e)):qo(e)?(c=()=>u(e),f=!0):Ne(e)?(d=!0,f=e.some(S=>qo(S)||Sp(S)),c=()=>e.map(S=>{if(Ft(S))return S.value;if(qo(S))return u(S);if(qe(S))return Jo(S,l,2)})):qe(e)?t?c=()=>Jo(e,l,2):c=()=>(v&&v(),va(e,l,3,[h])):c=jn,t&&r){const S=c;c=()=>pl(S())}let v,h=S=>{v=_.onStop=()=>{Jo(S,l,4),v=_.onStop=void 0}},g;if($v)if(h=jn,t?n&&va(t,l,3,[c(),d?[]:void 0,h]):c(),a==="sync"){const S=s6();g=S.__watcherHandles||(S.__watcherHandles=[])}else return jn;let p=d?new Array(e.length).fill(Ih):Ih;const m=()=>{if(!(!_.active||!_.dirty))if(t){const S=_.run();(r||f||(d?S.some((w,C)=>$a(w,p[C])):$a(S,p)))&&(v&&v(),va(t,l,3,[S,p===Ih?void 0:d&&p[0]===Ih?[]:p,h]),p=S)}else _.run()};m.allowRecurse=!!t;let y;a==="sync"?y=m:a==="post"?y=()=>Nn(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),y=()=>Xm(m));const _=new Od(c,jn,y),b=$V(),x=()=>{_.stop(),b&&bw(b.effects,_)};return t?n?m():p=_.run():a==="post"?Nn(_.run.bind(_),l&&l.suspense):_.run(),g&&g.push(x),x}function c6(e,t,n){const r=this.proxy,a=Ut(e)?e.includes(".")?hO(r,e):()=>r[e]:e.bind(r,r);let i;qe(t)?i=t:(i=t.handler,n=t);const o=Yl(this),s=Bv(a,i.bind(r),n);return o(),s}function hO(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Ft(e))pl(e.value,t,n,r);else if(Ne(e))for(let a=0;a{pl(a,t,n,r)});else if(VV(e))for(const a in e)pl(e[a],t,n,r);return e}function Yt(e,t){if(dn===null)return e;const n=Qm(dn)||dn.proxy,r=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0}),En(()=>{e.isUnmounting=!0}),e}const Xr=[Function,Array],pO={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xr,onEnter:Xr,onAfterEnter:Xr,onEnterCancelled:Xr,onBeforeLeave:Xr,onLeave:Xr,onAfterLeave:Xr,onLeaveCancelled:Xr,onBeforeAppear:Xr,onAppear:Xr,onAfterAppear:Xr,onAppearCancelled:Xr},f6={name:"BaseTransition",props:pO,setup(e,{slots:t}){const n=ba(),r=gO();let a;return()=>{const i=t.default&&Ew(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const g of i)if(g.type!==qn){o=g;break}}const s=rt(e),{mode:l}=s;if(r.isLeaving)return w0(o);const u=fI(o);if(!u)return w0(o);const c=Hd(u,s,r,n);_c(u,c);const f=n.subTree,d=f&&fI(f);let v=!1;const{getTransitionKey:h}=u.type;if(h){const g=h();a===void 0?a=g:g!==a&&(a=g,v=!0)}if(d&&d.type!==qn&&(!Ea(u,d)||v)){const g=Hd(d,s,r,n);if(_c(d,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},w0(o);l==="in-out"&&u.type!==qn&&(g.delayLeave=(p,m,y)=>{const _=mO(r,d);_[String(d.key)]=d,p[Vo]=()=>{m(),p[Vo]=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},d6=f6;function mO(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Hd(e,t,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:g,onAppear:p,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=mO(n,e),x=(C,T)=>{C&&va(C,r,9,T)},S=(C,T)=>{const A=T[1];x(C,T),Ne(C)?C.every(P=>P.length<=1)&&A():C.length<=1&&A()},w={mode:i,persisted:o,beforeEnter(C){let T=s;if(!n.isMounted)if(a)T=g||s;else return;C[Vo]&&C[Vo](!0);const A=b[_];A&&Ea(e,A)&&A.el[Vo]&&A.el[Vo](),x(T,[C])},enter(C){let T=l,A=u,P=c;if(!n.isMounted)if(a)T=p||l,A=m||u,P=y||c;else return;let D=!1;const M=C[Ph]=L=>{D||(D=!0,L?x(P,[C]):x(A,[C]),w.delayedLeave&&w.delayedLeave(),C[Ph]=void 0)};T?S(T,[C,M]):M()},leave(C,T){const A=String(e.key);if(C[Ph]&&C[Ph](!0),n.isUnmounting)return T();x(f,[C]);let P=!1;const D=C[Vo]=M=>{P||(P=!0,T(),M?x(h,[C]):x(v,[C]),C[Vo]=void 0,b[A]===e&&delete b[A])};b[A]=e,d?S(d,[C,D]):D()},clone(C){return Hd(C,t,n,r)}};return w}function w0(e){if(zv(e))return e=mi(e),e.children=null,e}function fI(e){return zv(e)?e.children?e.children[0]:void 0:e}function _c(e,t){e.shapeFlag&6&&e.component?_c(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ew(e,t=!1,n){let r=[],a=0;for(let i=0;i1)for(let i=0;iWt({name:e.name},t,{setup:e}))():e}const Ml=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function CCe(e){qe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:a=200,timeout:i,suspensible:o=!0,onError:s}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let v;return l||(v=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),s)return new Promise((g,p)=>{s(h,()=>g(f()),()=>p(h),c+1)});throw h}).then(h=>v!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return ys({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const v=yn;if(u)return()=>C0(u,v);const h=y=>{l=null,Gc(y,v,13,!r)};if(o&&v.suspense||$v)return d().then(y=>()=>C0(y,v)).catch(y=>(h(y),()=>r?I(r,{error:y}):null));const g=pe(!1),p=pe(),m=pe(!!a);return a&&setTimeout(()=>{m.value=!1},a),i!=null&&setTimeout(()=>{if(!g.value&&!p.value){const y=new Error(`Async component timed out after ${i}ms.`);h(y),p.value=y}},i),d().then(()=>{g.value=!0,v.parent&&zv(v.parent.vnode)&&(v.parent.effect.dirty=!0,Xm(v.parent.update))}).catch(y=>{h(y),p.value=y}),()=>{if(g.value&&u)return C0(u,v);if(p.value&&r)return I(r,{error:p.value});if(n&&!m.value)return I(n)}}})}function C0(e,t){const{ref:n,props:r,children:a,ce:i}=t.vnode,o=I(e,r,a);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const zv=e=>e.type.__isKeepAlive,v6={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ba(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const a=new Map,i=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(y,_,b,x,S)=>{const w=y.component;u(y,_,b,0,s),l(w.vnode,y,_,b,w,s,x,y.slotScopeIds,S),Nn(()=>{w.isDeactivated=!1,w.a&&uc(w.a);const C=y.props&&y.props.onVnodeMounted;C&&_r(C,w.parent,y)},s)},r.deactivate=y=>{const _=y.component;u(y,d,null,1,s),Nn(()=>{_.da&&uc(_.da);const b=y.props&&y.props.onVnodeUnmounted;b&&_r(b,_.parent,y),_.isDeactivated=!0},s)};function v(y){T0(y),c(y,n,s,!0)}function h(y){a.forEach((_,b)=>{const x=LS(_.type);x&&(!y||!y(x))&&g(b)})}function g(y){const _=a.get(y);!o||!Ea(_,o)?v(_):o&&T0(o),a.delete(y),i.delete(y)}Se(()=>[e.include,e.exclude],([y,_])=>{y&&h(b=>Kf(y,b)),_&&h(b=>!Kf(_,b))},{flush:"post",deep:!0});let p=null;const m=()=>{p!=null&&a.set(p,A0(n.subTree))};return ln(m),Rw(m),En(()=>{a.forEach(y=>{const{subTree:_,suspense:b}=n,x=A0(_);if(y.type===x.type&&y.key===x.key){T0(x);const S=x.component.da;S&&Nn(S,b);return}v(y)})}),()=>{if(p=null,!t.default)return null;const y=t.default(),_=y[0];if(y.length>1)return o=null,y;if(!os(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let b=A0(_);const x=b.type,S=LS(Ml(b)?b.type.__asyncResolved||{}:x),{include:w,exclude:C,max:T}=e;if(w&&(!S||!Kf(w,S))||C&&S&&Kf(C,S))return o=b,_;const A=b.key==null?x:b.key,P=a.get(A);return b.el&&(b=mi(b),_.shapeFlag&128&&(_.ssContent=b)),p=A,P?(b.el=P.el,b.component=P.component,b.transition&&_c(b,b.transition),b.shapeFlag|=512,i.delete(A),i.add(A)):(i.add(A),T&&i.size>parseInt(T,10)&&g(i.values().next().value)),b.shapeFlag|=256,o=b,dO(_.type)?_:b}}},TCe=v6;function Kf(e,t){return Ne(e)?e.some(n=>Kf(n,t)):Ut(e)?e.split(",").includes(t):nU(e)?e.test(t):!1}function yO(e,t){bO(e,"a",t)}function _O(e,t){bO(e,"da",t)}function bO(e,t,n=yn){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Km(t,r,n),n){let a=n.parent;for(;a&&a.parent;)zv(a.parent.vnode)&&h6(r,t,n,a),a=a.parent}}function h6(e,t,n,r){const a=Km(t,e,r,!0);Fv(()=>{bw(r[t],a)},n)}function T0(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function A0(e){return e.shapeFlag&128?e.ssContent:e}function Km(e,t,n=yn,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;lu();const s=Yl(n),l=va(t,n,e,o);return s(),uu(),l});return r?a.unshift(i):a.push(i),i}}const ao=e=>(t,n=yn)=>(!$v||e==="sp")&&Km(e,(...r)=>t(...r),n),qm=ao("bm"),ln=ao("m"),SO=ao("bu"),Rw=ao("u"),En=ao("bum"),Fv=ao("um"),g6=ao("sp"),p6=ao("rtg"),m6=ao("rtc");function y6(e,t=yn){Km("ec",e,t)}function SS(e,t,n,r){let a;const i=n&&n[r];if(Ne(e)||Ut(e)){a=new Array(e.length);for(let o=0,s=e.length;ot(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function ACe(e,t,n={},r,a){if(dn.isCE||dn.parent&&Ml(dn.parent)&&dn.parent.isCE)return t!=="default"&&(n.name=t),I("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),en();const o=i&&xO(i(n)),s=wr(ke,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function xO(e){return e.some(t=>os(t)?!(t.type===qn||t.type===ke&&!xO(t.children)):!0)?e:null}function ICe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hg(r)]=e[r];return n}const xS=e=>e?FO(e)?Qm(e)||e.proxy:xS(e.parent):null,dd=Wt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xS(e.parent),$root:e=>xS(e.root),$emit:e=>e.emit,$options:e=>Vw(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Xm(e.update)}),$nextTick:e=>e.n||(e.n=dt.bind(e.proxy)),$watch:e=>c6.bind(e)}),I0=(e,t)=>e!==Pt&&!e.__isScriptSetup&&mt(e,t),wS={get({_:e},t){const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(I0(r,t))return o[t]=1,r[t];if(a!==Pt&&mt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&mt(u,t))return o[t]=3,i[t];if(n!==Pt&&mt(n,t))return o[t]=4,n[t];CS&&(o[t]=0)}}const c=dd[t];let f,d;if(c)return t==="$attrs"&&Ir(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Pt&&mt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,mt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return I0(a,t)?(a[t]=n,!0):r!==Pt&&mt(r,t)?(r[t]=n,!0):mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==Pt&&mt(e,o)||I0(t,o)||(s=i[0])&&mt(s,o)||mt(r,o)||mt(dd,o)||mt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},b6=Wt({},wS,{get(e,t){if(t!==Symbol.unscopables)return wS.get(e,t,e)},has(e,t){return t[0]!=="_"&&!sU(t)}});function PCe(){return null}function DCe(){return null}function MCe(e){}function kCe(e){}function LCe(){return null}function ECe(){}function RCe(e,t){return null}function VCe(){return wO().slots}function OCe(){return wO().attrs}function NCe(e,t,n=Pt){const r=ba(),a=Kn(t),i=Or(t),o=zU((l,u)=>{let c;return u6(()=>{const f=e[t];$a(c,f)&&(c=f,u())}),{get(){return l(),n.get?n.get(c):c},set(f){const d=r.vnode.props;!(d&&(t in d||a in d||i in d)&&(`onUpdate:${t}`in d||`onUpdate:${a}`in d||`onUpdate:${i}`in d))&&$a(f,c)&&(c=f,u()),r.emit(`update:${t}`,n.set?n.set(f):f)}}}),s=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[s]||{}:o,done:!1}:{done:!0}}}},o}function wO(){const e=ba();return e.setupContext||(e.setupContext=HO(e))}function Wd(e){return Ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function BCe(e,t){const n=Wd(e);for(const r in t){if(r.startsWith("__skip"))continue;let a=n[r];a?Ne(a)||qe(a)?a=n[r]={type:a,default:t[r]}:a.default=t[r]:a===null&&(a=n[r]={default:t[r]}),a&&t[`__skip_${r}`]&&(a.skipFactory=!0)}return n}function zCe(e,t){return!e||!t?e||t:Ne(e)&&Ne(t)?e.concat(t):Wt({},Wd(e),Wd(t))}function FCe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function $Ce(e){const t=ba();let n=e();return DS(),Sw(n)&&(n=n.catch(r=>{throw Yl(t),r})),[n,()=>Yl(t)]}let CS=!0;function S6(e){const t=Vw(e),n=e.proxy,r=e.ctx;CS=!1,t.beforeCreate&&dI(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:v,updated:h,activated:g,deactivated:p,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:S,renderTriggered:w,errorCaptured:C,serverPrefetch:T,expose:A,inheritAttrs:P,components:D,directives:M,filters:L}=t;if(u&&x6(u,r,null),o)for(const H in o){const V=o[H];qe(V)&&(r[H]=V.bind(n))}if(a){const H=a.call(n,n);Vt(H)&&(e.data=In(H))}if(CS=!0,i)for(const H in i){const V=i[H],G=qe(V)?V.bind(n,n):qe(V.get)?V.get.bind(n,n):jn,X=!qe(V)&&qe(V.set)?V.set.bind(n):jn,Z=E({get:G,set:X});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>Z.value,set:q=>Z.value=q})}if(s)for(const H in s)CO(s[H],r,n,H);if(l){const H=qe(l)?l.call(n):l;Reflect.ownKeys(H).forEach(V=>{Tt(V,H[V])})}c&&dI(c,e,"c");function O(H,V){Ne(V)?V.forEach(G=>H(G.bind(n))):V&&H(V.bind(n))}if(O(qm,f),O(ln,d),O(SO,v),O(Rw,h),O(yO,g),O(_O,p),O(y6,C),O(m6,S),O(p6,w),O(En,y),O(Fv,b),O(g6,T),Ne(A))if(A.length){const H=e.exposed||(e.exposed={});A.forEach(V=>{Object.defineProperty(H,V,{get:()=>n[V],set:G=>n[V]=G})})}else e.exposed||(e.exposed={});x&&e.render===jn&&(e.render=x),P!=null&&(e.inheritAttrs=P),D&&(e.components=D),M&&(e.directives=M)}function x6(e,t,n=jn){Ne(e)&&(e=TS(e));for(const r in e){const a=e[r];let i;Vt(a)?"default"in a?i=nt(a.from||r,a.default,!0):i=nt(a.from||r):i=nt(a),Ft(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function dI(e,t,n){va(Ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function CO(e,t,n,r){const a=r.includes(".")?hO(n,r):()=>n[r];if(Ut(e)){const i=t[e];qe(i)&&Se(a,i)}else if(qe(e))Se(a,e.bind(n));else if(Vt(e))if(Ne(e))e.forEach(i=>CO(i,t,n,r));else{const i=qe(e.handler)?e.handler.bind(n):t[e.handler];qe(i)&&Se(a,i,e)}}function Vw(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>wp(l,u,o,!0)),wp(l,t,o)),Vt(t)&&i.set(t,l),l}function wp(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&wp(e,i,n,!0),a&&a.forEach(o=>wp(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=w6[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const w6={data:vI,props:hI,emits:hI,methods:qf,computed:qf,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:qf,directives:qf,watch:T6,provide:vI,inject:C6};function vI(e,t){return t?e?function(){return Wt(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function C6(e,t){return qf(TS(e),TS(t))}function TS(e){if(Ne(e)){const t={};for(let n=0;n1)return n&&qe(t)?t.call(r&&r.proxy):t}}function P6(){return!!(yn||dn||Ud)}function D6(e,t,n,r=!1){const a={},i={};mp(i,Jm,1),e.propsDefaults=Object.create(null),AO(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:tO(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function M6(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=rt(a),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,v]=IO(f,t,!0);Wt(o,d),v&&s.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Vt(e)&&r.set(e,sc),sc;if(Ne(i))for(let c=0;c-1,v[1]=g<0||h-1||mt(v,"default"))&&s.push(f)}}}const u=[o,s];return Vt(e)&&r.set(e,u),u}function gI(e){return e[0]!=="$"}function pI(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function mI(e,t){return pI(e)===pI(t)}function yI(e,t){return Ne(t)?t.findIndex(n=>mI(n,e)):qe(t)&&mI(t,e)?0:-1}const PO=e=>e[0]==="_"||e==="$stable",Ow=e=>Ne(e)?e.map(Vr):[Vr(e)],k6=(e,t,n)=>{if(t._n)return t;const r=zt((...a)=>Ow(t(...a)),n);return r._c=!1,r},DO=(e,t,n)=>{const r=e._ctx;for(const a in e){if(PO(a))continue;const i=e[a];if(qe(i))t[a]=k6(a,i,r);else if(i!=null){const o=Ow(i);t[a]=()=>o}}},MO=(e,t)=>{const n=Ow(t);e.slots.default=()=>n},L6=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=rt(t),mp(t,"_",n)):DO(t,e.slots={})}else e.slots={},t&&MO(e,t);mp(e.slots,Jm,1)},E6=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Pt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Wt(a,t),!n&&s===1&&delete a._):(i=!t.$stable,DO(t,a)),o=t}else t&&(MO(e,t),o={default:1});if(i)for(const s in a)!PO(s)&&o[s]==null&&delete a[s]};function Cp(e,t,n,r,a=!1){if(Ne(e)){e.forEach((d,v)=>Cp(d,t&&(Ne(t)?t[v]:t),n,r,a));return}if(Ml(r)&&!a)return;const i=r.shapeFlag&4?Qm(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Pt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Ut(u)?(c[u]=null,mt(f,u)&&(f[u]=null)):Ft(u)&&(u.value=null)),qe(l))Jo(l,s,12,[o,c]);else{const d=Ut(l),v=Ft(l);if(d||v){const h=()=>{if(e.f){const g=d?mt(f,l)?f[l]:c[l]:l.value;a?Ne(g)&&bw(g,i):Ne(g)?g.includes(i)||g.push(i):d?(c[l]=[i],mt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,mt(f,l)&&(f[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};o?(h.id=-1,Nn(h,n)):h()}}}let mo=!1;const R6=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",V6=e=>e.namespaceURI.includes("MathML"),Dh=e=>{if(R6(e))return"svg";if(V6(e))return"mathml"},Mh=e=>e.nodeType===8;function O6(e){const{mt:t,p:n,o:{patchProp:r,createText:a,nextSibling:i,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(_,b)=>{if(!b.hasChildNodes()){n(null,_,b),xp(),b._vnode=_;return}mo=!1,f(b.firstChild,_,null,null,null),xp(),b._vnode=_,mo&&console.error("Hydration completed but contains mismatches.")},f=(_,b,x,S,w,C=!1)=>{const T=Mh(_)&&_.data==="[",A=()=>g(_,b,x,S,w,T),{type:P,ref:D,shapeFlag:M,patchFlag:L}=b;let R=_.nodeType;b.el=_,L===-2&&(C=!1,b.dynamicChildren=null);let O=null;switch(P){case is:R!==3?b.children===""?(l(b.el=a(""),o(_),_),O=_):O=A():(_.data!==b.children&&(mo=!0,_.data=b.children),O=i(_));break;case qn:y(_)?(O=i(_),m(b.el=_.content.firstChild,_,x)):R!==8||T?O=A():O=i(_);break;case dc:if(T&&(_=i(_),R=_.nodeType),R===1||R===3){O=_;const H=!b.children.length;for(let V=0;V{C=C||!!b.dynamicChildren;const{type:T,props:A,patchFlag:P,shapeFlag:D,dirs:M,transition:L}=b,R=T==="input"||T==="option";if(R||P!==-1){M&&ai(b,null,x,"created");let O=!1;if(y(_)){O=LO(S,L)&&x&&x.vnode.props&&x.vnode.props.appear;const V=_.content.firstChild;O&&L.beforeEnter(V),m(V,_,x),b.el=_=V}if(D&16&&!(A&&(A.innerHTML||A.textContent))){let V=v(_.firstChild,b,_,x,S,w,C);for(;V;){mo=!0;const G=V;V=V.nextSibling,s(G)}}else D&8&&_.textContent!==b.children&&(mo=!0,_.textContent=b.children);if(A)if(R||!C||P&48)for(const V in A)(R&&(V.endsWith("value")||V==="indeterminate")||Vv(V)&&!fd(V)||V[0]===".")&&r(_,V,null,A[V],void 0,void 0,x);else A.onClick&&r(_,"onClick",null,A.onClick,void 0,void 0,x);let H;(H=A&&A.onVnodeBeforeMount)&&_r(H,x,b),M&&ai(b,null,x,"beforeMount"),((H=A&&A.onVnodeMounted)||M||O)&&vO(()=>{H&&_r(H,x,b),O&&L.enter(_),M&&ai(b,null,x,"mounted")},S)}return _.nextSibling},v=(_,b,x,S,w,C,T)=>{T=T||!!b.dynamicChildren;const A=b.children,P=A.length;for(let D=0;D{const{slotScopeIds:T}=b;T&&(w=w?w.concat(T):T);const A=o(_),P=v(i(_),b,A,x,S,w,C);return P&&Mh(P)&&P.data==="]"?i(b.anchor=P):(mo=!0,l(b.anchor=u("]"),A,P),P)},g=(_,b,x,S,w,C)=>{if(mo=!0,b.el=null,C){const P=p(_);for(;;){const D=i(_);if(D&&D!==P)s(D);else break}}const T=i(_),A=o(_);return s(_),n(null,b,A,T,x,S,Dh(A),w),T},p=(_,b="[",x="]")=>{let S=0;for(;_;)if(_=i(_),_&&Mh(_)&&(_.data===b&&S++,_.data===x)){if(S===0)return i(_);S--}return _},m=(_,b,x)=>{const S=b.parentNode;S&&S.replaceChild(_,b);let w=x;for(;w;)w.vnode.el===b&&(w.vnode.el=w.subTree.el=_),w=w.parent},y=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[c,f]}const Nn=vO;function N6(e){return kO(e)}function B6(e){return kO(e,O6)}function kO(e,t){const n=OV();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:v=jn,insertStaticContent:h}=e,g=(N,B,K,re=null,ie=null,de=null,_e=void 0,me=null,ye=!!B.dynamicChildren)=>{if(N===B)return;N&&!Ea(N,B)&&(re=z(N),q(N,ie,de,!0),N=null),B.patchFlag===-2&&(ye=!1,B.dynamicChildren=null);const{type:he,ref:Ie,shapeFlag:Me}=B;switch(he){case is:p(N,B,K,re);break;case qn:m(N,B,K,re);break;case dc:N==null&&y(B,K,re,_e);break;case ke:D(N,B,K,re,ie,de,_e,me,ye);break;default:Me&1?x(N,B,K,re,ie,de,_e,me,ye):Me&6?M(N,B,K,re,ie,de,_e,me,ye):(Me&64||Me&128)&&he.process(N,B,K,re,ie,de,_e,me,ye,Y)}Ie!=null&&ie&&Cp(Ie,N&&N.ref,de,B||N,!B)},p=(N,B,K,re)=>{if(N==null)r(B.el=s(B.children),K,re);else{const ie=B.el=N.el;B.children!==N.children&&u(ie,B.children)}},m=(N,B,K,re)=>{N==null?r(B.el=l(B.children||""),K,re):B.el=N.el},y=(N,B,K,re)=>{[N.el,N.anchor]=h(N.children,B,K,re,N.el,N.anchor)},_=({el:N,anchor:B},K,re)=>{let ie;for(;N&&N!==B;)ie=d(N),r(N,K,re),N=ie;r(B,K,re)},b=({el:N,anchor:B})=>{let K;for(;N&&N!==B;)K=d(N),a(N),N=K;a(B)},x=(N,B,K,re,ie,de,_e,me,ye)=>{B.type==="svg"?_e="svg":B.type==="math"&&(_e="mathml"),N==null?S(B,K,re,ie,de,_e,me,ye):T(N,B,ie,de,_e,me,ye)},S=(N,B,K,re,ie,de,_e,me)=>{let ye,he;const{props:Ie,shapeFlag:Me,transition:ne,dirs:ce}=N;if(ye=N.el=o(N.type,de,Ie&&Ie.is,Ie),Me&8?c(ye,N.children):Me&16&&C(N.children,ye,null,re,ie,P0(N,de),_e,me),ce&&ai(N,null,re,"created"),w(ye,N,N.scopeId,_e,re),Ie){for(const Ze in Ie)Ze!=="value"&&!fd(Ze)&&i(ye,Ze,null,Ie[Ze],de,N.children,re,ie,F);"value"in Ie&&i(ye,"value",null,Ie.value,de),(he=Ie.onVnodeBeforeMount)&&_r(he,re,N)}ce&&ai(N,null,re,"beforeMount");const Oe=LO(ie,ne);Oe&&ne.beforeEnter(ye),r(ye,B,K),((he=Ie&&Ie.onVnodeMounted)||Oe||ce)&&Nn(()=>{he&&_r(he,re,N),Oe&&ne.enter(ye),ce&&ai(N,null,re,"mounted")},ie)},w=(N,B,K,re,ie)=>{if(K&&v(N,K),re)for(let de=0;de{for(let he=ye;he{const me=B.el=N.el;let{patchFlag:ye,dynamicChildren:he,dirs:Ie}=B;ye|=N.patchFlag&16;const Me=N.props||Pt,ne=B.props||Pt;let ce;if(K&&Ps(K,!1),(ce=ne.onVnodeBeforeUpdate)&&_r(ce,K,B,N),Ie&&ai(B,N,K,"beforeUpdate"),K&&Ps(K,!0),he?A(N.dynamicChildren,he,me,K,re,P0(B,ie),de):_e||V(N,B,me,null,K,re,P0(B,ie),de,!1),ye>0){if(ye&16)P(me,B,Me,ne,K,re,ie);else if(ye&2&&Me.class!==ne.class&&i(me,"class",null,ne.class,ie),ye&4&&i(me,"style",Me.style,ne.style,ie),ye&8){const Oe=B.dynamicProps;for(let Ze=0;Ze{ce&&_r(ce,K,B,N),Ie&&ai(B,N,K,"updated")},re)},A=(N,B,K,re,ie,de,_e)=>{for(let me=0;me{if(K!==re){if(K!==Pt)for(const me in K)!fd(me)&&!(me in re)&&i(N,me,K[me],null,_e,B.children,ie,de,F);for(const me in re){if(fd(me))continue;const ye=re[me],he=K[me];ye!==he&&me!=="value"&&i(N,me,he,ye,_e,B.children,ie,de,F)}"value"in re&&i(N,"value",K.value,re.value,_e)}},D=(N,B,K,re,ie,de,_e,me,ye)=>{const he=B.el=N?N.el:s(""),Ie=B.anchor=N?N.anchor:s("");let{patchFlag:Me,dynamicChildren:ne,slotScopeIds:ce}=B;ce&&(me=me?me.concat(ce):ce),N==null?(r(he,K,re),r(Ie,K,re),C(B.children||[],K,Ie,ie,de,_e,me,ye)):Me>0&&Me&64&&ne&&N.dynamicChildren?(A(N.dynamicChildren,ne,K,ie,de,_e,me),(B.key!=null||ie&&B===ie.subTree)&&Nw(N,B,!0)):V(N,B,K,Ie,ie,de,_e,me,ye)},M=(N,B,K,re,ie,de,_e,me,ye)=>{B.slotScopeIds=me,N==null?B.shapeFlag&512?ie.ctx.activate(B,K,re,_e,ye):L(B,K,re,ie,de,_e,ye):R(N,B,ye)},L=(N,B,K,re,ie,de,_e)=>{const me=N.component=zO(N,re,ie);if(zv(N)&&(me.ctx.renderer=Y),$O(me),me.asyncDep){if(ie&&ie.registerDep(me,O),!N.el){const ye=me.subTree=I(qn);m(null,ye,B,K)}}else O(me,N,B,K,ie,de,_e)},R=(N,B,K)=>{const re=B.component=N.component;if(qU(N,B,K))if(re.asyncDep&&!re.asyncResolved){H(re,B,K);return}else re.next=B,UU(re.update),re.effect.dirty=!0,re.update();else B.el=N.el,re.vnode=B},O=(N,B,K,re,ie,de,_e)=>{const me=()=>{if(N.isMounted){let{next:Ie,bu:Me,u:ne,parent:ce,vnode:Oe}=N;{const go=EO(N);if(go){Ie&&(Ie.el=Oe.el,H(N,Ie,_e)),go.asyncDep.then(()=>{N.isUnmounted||me()});return}}let Ze=Ie,_t;Ps(N,!1),Ie?(Ie.el=Oe.el,H(N,Ie,_e)):Ie=Oe,Me&&uc(Me),(_t=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&_r(_t,ce,Ie,Oe),Ps(N,!0);const jt=Wg(N),Tn=N.subTree;N.subTree=jt,g(Tn,jt,f(Tn.el),z(Tn),N,ie,de),Ie.el=jt.el,Ze===null&&Dw(N,jt.el),ne&&Nn(ne,ie),(_t=Ie.props&&Ie.props.onVnodeUpdated)&&Nn(()=>_r(_t,ce,Ie,Oe),ie)}else{let Ie;const{el:Me,props:ne}=B,{bm:ce,m:Oe,parent:Ze}=N,_t=Ml(B);if(Ps(N,!1),ce&&uc(ce),!_t&&(Ie=ne&&ne.onVnodeBeforeMount)&&_r(Ie,Ze,B),Ps(N,!0),Me&&te){const jt=()=>{N.subTree=Wg(N),te(Me,N.subTree,N,ie,null)};_t?B.type.__asyncLoader().then(()=>!N.isUnmounted&&jt()):jt()}else{const jt=N.subTree=Wg(N);g(null,jt,K,re,N,ie,de),B.el=jt.el}if(Oe&&Nn(Oe,ie),!_t&&(Ie=ne&&ne.onVnodeMounted)){const jt=B;Nn(()=>_r(Ie,Ze,jt),ie)}(B.shapeFlag&256||Ze&&Ml(Ze.vnode)&&Ze.vnode.shapeFlag&256)&&N.a&&Nn(N.a,ie),N.isMounted=!0,B=K=re=null}},ye=N.effect=new Od(me,jn,()=>Xm(he),N.scope),he=N.update=()=>{ye.dirty&&ye.run()};he.id=N.uid,Ps(N,!0),he()},H=(N,B,K)=>{B.component=N;const re=N.vnode.props;N.vnode=B,N.next=null,M6(N,B.props,re,K),E6(N,B.children,K),lu(),sI(N),uu()},V=(N,B,K,re,ie,de,_e,me,ye=!1)=>{const he=N&&N.children,Ie=N?N.shapeFlag:0,Me=B.children,{patchFlag:ne,shapeFlag:ce}=B;if(ne>0){if(ne&128){X(he,Me,K,re,ie,de,_e,me,ye);return}else if(ne&256){G(he,Me,K,re,ie,de,_e,me,ye);return}}ce&8?(Ie&16&&F(he,ie,de),Me!==he&&c(K,Me)):Ie&16?ce&16?X(he,Me,K,re,ie,de,_e,me,ye):F(he,ie,de,!0):(Ie&8&&c(K,""),ce&16&&C(Me,K,re,ie,de,_e,me,ye))},G=(N,B,K,re,ie,de,_e,me,ye)=>{N=N||sc,B=B||sc;const he=N.length,Ie=B.length,Me=Math.min(he,Ie);let ne;for(ne=0;neIe?F(N,ie,de,!0,!1,Me):C(B,K,re,ie,de,_e,me,ye,Me)},X=(N,B,K,re,ie,de,_e,me,ye)=>{let he=0;const Ie=B.length;let Me=N.length-1,ne=Ie-1;for(;he<=Me&&he<=ne;){const ce=N[he],Oe=B[he]=ye?Oo(B[he]):Vr(B[he]);if(Ea(ce,Oe))g(ce,Oe,K,null,ie,de,_e,me,ye);else break;he++}for(;he<=Me&&he<=ne;){const ce=N[Me],Oe=B[ne]=ye?Oo(B[ne]):Vr(B[ne]);if(Ea(ce,Oe))g(ce,Oe,K,null,ie,de,_e,me,ye);else break;Me--,ne--}if(he>Me){if(he<=ne){const ce=ne+1,Oe=cene)for(;he<=Me;)q(N[he],ie,de,!0),he++;else{const ce=he,Oe=he,Ze=new Map;for(he=Oe;he<=ne;he++){const Lr=B[he]=ye?Oo(B[he]):Vr(B[he]);Lr.key!=null&&Ze.set(Lr.key,he)}let _t,jt=0;const Tn=ne-Oe+1;let go=!1,S0=0;const gf=new Array(Tn);for(he=0;he=Tn){q(Lr,ie,de,!0);continue}let Ka;if(Lr.key!=null)Ka=Ze.get(Lr.key);else for(_t=Oe;_t<=ne;_t++)if(gf[_t-Oe]===0&&Ea(Lr,B[_t])){Ka=_t;break}Ka===void 0?q(Lr,ie,de,!0):(gf[Ka-Oe]=he+1,Ka>=S0?S0=Ka:go=!0,g(Lr,B[Ka],K,null,ie,de,_e,me,ye),jt++)}const KA=go?z6(gf):sc;for(_t=KA.length-1,he=Tn-1;he>=0;he--){const Lr=Oe+he,Ka=B[Lr],qA=Lr+1{const{el:de,type:_e,transition:me,children:ye,shapeFlag:he}=N;if(he&6){Z(N.component.subTree,B,K,re);return}if(he&128){N.suspense.move(B,K,re);return}if(he&64){_e.move(N,B,K,Y);return}if(_e===ke){r(de,B,K);for(let Me=0;Meme.enter(de),ie);else{const{leave:Me,delayLeave:ne,afterLeave:ce}=me,Oe=()=>r(de,B,K),Ze=()=>{Me(de,()=>{Oe(),ce&&ce()})};ne?ne(de,Oe,Ze):Ze()}else r(de,B,K)},q=(N,B,K,re=!1,ie=!1)=>{const{type:de,props:_e,ref:me,children:ye,dynamicChildren:he,shapeFlag:Ie,patchFlag:Me,dirs:ne}=N;if(me!=null&&Cp(me,null,K,N,!0),Ie&256){B.ctx.deactivate(N);return}const ce=Ie&1&&ne,Oe=!Ml(N);let Ze;if(Oe&&(Ze=_e&&_e.onVnodeBeforeUnmount)&&_r(Ze,B,N),Ie&6)W(N.component,K,re);else{if(Ie&128){N.suspense.unmount(K,re);return}ce&&ai(N,null,B,"beforeUnmount"),Ie&64?N.type.remove(N,B,K,ie,Y,re):he&&(de!==ke||Me>0&&Me&64)?F(he,B,K,!1,!0):(de===ke&&Me&384||!ie&&Ie&16)&&F(ye,B,K),re&&Q(N)}(Oe&&(Ze=_e&&_e.onVnodeUnmounted)||ce)&&Nn(()=>{Ze&&_r(Ze,B,N),ce&&ai(N,null,B,"unmounted")},K)},Q=N=>{const{type:B,el:K,anchor:re,transition:ie}=N;if(B===ke){ae(K,re);return}if(B===dc){b(N);return}const de=()=>{a(K),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(N.shapeFlag&1&&ie&&!ie.persisted){const{leave:_e,delayLeave:me}=ie,ye=()=>_e(K,de);me?me(N.el,de,ye):ye()}else de()},ae=(N,B)=>{let K;for(;N!==B;)K=d(N),a(N),N=K;a(B)},W=(N,B,K)=>{const{bum:re,scope:ie,update:de,subTree:_e,um:me}=N;re&&uc(re),ie.stop(),de&&(de.active=!1,q(_e,N,B,K)),me&&Nn(me,B),Nn(()=>{N.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},F=(N,B,K,re=!1,ie=!1,de=0)=>{for(let _e=de;_eN.shapeFlag&6?z(N.component.subTree):N.shapeFlag&128?N.suspense.next():d(N.anchor||N.el);let $=!1;const U=(N,B,K)=>{N==null?B._vnode&&q(B._vnode,null,null,!0):g(B._vnode||null,N,B,null,null,null,K),$||($=!0,sI(),xp(),$=!1),B._vnode=N},Y={p:g,um:q,m:Z,r:Q,mt:L,mc:C,pc:V,pbc:A,n:z,o:e};let j,te;return t&&([j,te]=t(Y)),{render:U,hydrate:j,createApp:I6(U,j)}}function P0({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ps({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function LO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nw(e,t,n=!1){const r=e.children,a=t.children;if(Ne(r)&&Ne(a))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function EO(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:EO(t)}const F6=e=>e.__isTeleport,vd=e=>e&&(e.disabled||e.disabled===""),_I=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bI=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,IS=(e,t)=>{const n=e&&e.to;return Ut(n)?t?t(n):null:n},$6={name:"Teleport",__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:v,querySelector:h,createText:g,createComment:p}}=u,m=vd(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=g(""),S=t.anchor=g("");v(x,n,r),v(S,n,r);const w=t.target=IS(t.props,h),C=t.targetAnchor=g("");w&&(v(C,w),o==="svg"||_I(w)?o="svg":(o==="mathml"||bI(w))&&(o="mathml"));const T=(A,P)=>{y&16&&c(_,A,P,a,i,o,s,l)};m?T(n,S):w&&T(w,C)}else{t.el=e.el;const x=t.anchor=e.anchor,S=t.target=e.target,w=t.targetAnchor=e.targetAnchor,C=vd(e.props),T=C?n:S,A=C?x:w;if(o==="svg"||_I(S)?o="svg":(o==="mathml"||bI(S))&&(o="mathml"),b?(d(e.dynamicChildren,b,T,a,i,o,s),Nw(e,t,!0)):l||f(e,t,T,A,a,i,o,s,!1),m)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):kh(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=IS(t.props,h);P&&kh(t,P,null,u,0)}else C&&kh(t,S,w,u,1)}RO(t)},remove(e,t,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),o&&i(u),s&16){const v=o||!vd(d);for(let h=0;h0?Tr||sc:null,VO(),Ul>0&&Tr&&Tr.push(e),e}function kl(e,t,n,r,a,i){return OO(BO(e,t,n,r,a,i,!0))}function wr(e,t,n,r,a){return OO(I(e,t,n,r,a,!0))}function os(e){return e?e.__v_isVNode===!0:!1}function Ea(e,t){return e.type===t.type&&e.key===t.key}function GCe(e){}const Jm="__vInternal",NO=({key:e})=>e??null,Ug=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ut(e)||Ft(e)||qe(e)?{i:dn,r:e,k:t,f:!!n}:e:null);function BO(e,t=null,n=null,r=0,a=null,i=e===ke?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&NO(t),ref:t&&Ug(t),scopeId:jm,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:dn};return s?(Bw(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Ut(n)?8:16),Ul>0&&!o&&Tr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Tr.push(l),l}const I=W6;function W6(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===fO)&&(e=qn),os(e)){const s=mi(e,t,!0);return n&&Bw(s,n),Ul>0&&!i&&Tr&&(s.shapeFlag&6?Tr[Tr.indexOf(e)]=s:Tr.push(s)),s.patchFlag|=-2,s}if(K6(e)&&(e=e.__vccOpts),t){t=U6(t);let{class:s,style:l}=t;s&&!Ut(s)&&(t.class=$m(s)),Vt(l)&&(nO(l)&&!Ne(l)&&(l=Wt({},l)),t.style=Fm(l))}const o=Ut(e)?1:dO(e)?128:F6(e)?64:Vt(e)?4:qe(e)?2:0;return BO(e,t,n,r,a,o,i,!0)}function U6(e){return e?nO(e)||Jm in e?Wt({},e):e:null}function mi(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?ge(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&NO(s),ref:t&&t.ref?n&&a?Ne(a)?a.concat(Ug(t)):[a,Ug(t)]:Ug(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mi(e.ssContent),ssFallback:e.ssFallback&&mi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function $r(e=" ",t=0){return I(is,null,e,t)}function HCe(e,t){const n=I(dc,null,e);return n.staticCount=t,n}function oa(e="",t=!1){return t?(en(),wr(qn,null,e)):I(qn,null,e)}function Vr(e){return e==null||typeof e=="boolean"?I(qn):Ne(e)?I(ke,null,e.slice()):typeof e=="object"?Oo(e):I(is,null,String(e))}function Oo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mi(e)}function Bw(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ne(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),Bw(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Jm in t)?t._ctx=dn:a===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:dn},n=32):(t=String(t),r&64?(n=16,t=[$r(t)]):n=8);e.children=t,e.shapeFlag|=n}function ge(...e){const t={};for(let n=0;nyn||dn;let Tp,PS;{const e=OV(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};Tp=t("__VUE_INSTANCE_SETTERS__",n=>yn=n),PS=t("__VUE_SSR_SETTERS__",n=>$v=n)}const Yl=e=>{const t=yn;return Tp(e),e.scope.on(),()=>{e.scope.off(),Tp(t)}},DS=()=>{yn&&yn.scope.off(),Tp(null)};function FO(e){return e.vnode.shapeFlag&4}let $v=!1;function $O(e,t=!1){t&&PS(t);const{props:n,children:r}=e.vnode,a=FO(e);D6(e,n,a,t),L6(e,r);const i=a?Z6(e,t):void 0;return t&&PS(!1),i}function Z6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ym(new Proxy(e.ctx,wS));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?HO(e):null,i=Yl(e);lu();const o=Jo(r,e,0,[e.props,a]);if(uu(),i(),Sw(o)){if(o.then(DS,DS),t)return o.then(s=>{MS(e,s,t)}).catch(s=>{Gc(s,e,0)});e.asyncDep=o}else MS(e,o,t)}else GO(e,t)}function MS(e,t,n){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=iO(t)),GO(e,n)}let Ap,kS;function WCe(e){Ap=e,kS=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,b6))}}const UCe=()=>!Ap;function GO(e,t,n){const r=e.type;if(!e.render){if(!t&&Ap&&!r.render){const a=r.template||Vw(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Wt(Wt({isCustomElement:i,delimiters:s},o),l);r.render=Ap(a,u)}}e.render=r.render||jn,kS&&kS(e)}{const a=Yl(e);lu();try{S6(e)}finally{uu(),a()}}}function j6(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ir(e,"get","$attrs"),t[n]}}))}function HO(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return j6(e)},slots:e.slots,emit:e.emit,expose:t}}function Qm(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(iO(Ym(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dd)return dd[n](e)},has(t,n){return n in t||n in dd}}))}function LS(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function K6(e){return qe(e)&&"__vccOpts"in e}const E=(e,t)=>VU(e,t,$v);function Sa(e,t,n){const r=arguments.length;return r===2?Vt(t)&&!Ne(t)?os(t)?I(e,null,[t]):I(e,t):I(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&os(n)&&(n=[n]),I(e,t,n))}function YCe(){}function XCe(e,t,n,r){const a=n[r];if(a&&q6(a,e))return a;const i=t();return i.memo=e.slice(),n[r]=i}function q6(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Tr&&Tr.push(e),!0}const J6="3.4.8",ZCe=jn,jCe=GU,KCe=void 0,qCe=jn,Q6={createComponentInstance:zO,setupComponent:$O,renderComponentRoot:Wg,setCurrentRenderingInstance:$d,isVNode:os,normalizeVNode:Vr},JCe=Q6,QCe=null,eTe=null,tTe=null;/** * @vue/runtime-dom v3.4.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const e8="http://www.w3.org/2000/svg",t8="http://www.w3.org/1998/Math/MathML",No=typeof document<"u"?document:null,xI=No&&No.createElement("template"),n8={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a=t==="svg"?No.createElementNS(e8,e):t==="mathml"?No.createElementNS(t8,e):No.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>No.createTextNode(e),createComment:e=>No.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>No.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,i){const o=n?n.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{xI.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const s=xI.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},yo="transition",pf="animation",bc=Symbol("_vtc"),yi=(e,{slots:t})=>Sa(d6,UO(e),t);yi.displayName="Transition";const WO={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},r8=yi.props=Wt({},pO,WO),Ds=(e,t=[])=>{Ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},wI=e=>e?Ne(e)?e.some(t=>t.length>1):e.length>1:!1;function UO(e){const t={};for(const D in e)D in WO||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,h=a8(a),g=h&&h[0],p=h&&h[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=m,onAppear:w=y,onAppearCancelled:C=_}=t,T=(D,M,L)=>{Mo(D,M?c:s),Mo(D,M?u:o),L&&L()},A=(D,M)=>{D._isLeaving=!1,Mo(D,f),Mo(D,v),Mo(D,d),M&&M()},P=D=>(M,L)=>{const R=D?w:y,O=()=>T(M,D,L);Ds(R,[M,O]),CI(()=>{Mo(M,D?l:i),Vi(M,D?c:s),wI(R)||TI(M,r,g,O)})};return Wt(t,{onBeforeEnter(D){Ds(m,[D]),Vi(D,i),Vi(D,o)},onBeforeAppear(D){Ds(S,[D]),Vi(D,l),Vi(D,u)},onEnter:P(!1),onAppear:P(!0),onLeave(D,M){D._isLeaving=!0;const L=()=>A(D,M);Vi(D,f),XO(),Vi(D,d),CI(()=>{D._isLeaving&&(Mo(D,f),Vi(D,v),wI(b)||TI(D,r,p,L))}),Ds(b,[D,L])},onEnterCancelled(D){T(D,!1),Ds(_,[D])},onAppearCancelled(D){T(D,!0),Ds(C,[D])},onLeaveCancelled(D){A(D),Ds(x,[D])}})}function a8(e){if(e==null)return null;if(Vt(e))return[M0(e.enter),M0(e.leave)];{const t=M0(e);return[t,t]}}function M0(e){return _p(e)}function Vi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bc]||(e[bc]=new Set)).add(t)}function Mo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[bc];n&&(n.delete(t),n.size||(e[bc]=void 0))}function CI(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let i8=0;function TI(e,t,n,r){const a=e._endId=++i8,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=YO(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=v=>{v.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[h]||"").split(", "),a=r(`${yo}Delay`),i=r(`${yo}Duration`),o=AI(a,i),s=r(`${pf}Delay`),l=r(`${pf}Duration`),u=AI(s,l);let c=null,f=0,d=0;t===yo?o>0&&(c=yo,f=o,d=i.length):t===pf?u>0&&(c=pf,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?yo:pf:null,d=c?c===yo?i.length:l.length:0);const v=c===yo&&/\b(transform|all)(,|$)/.test(r(`${yo}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:v}}function AI(e,t){for(;e.lengthII(n)+II(e[r])))}function II(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function XO(){return document.body.offsetHeight}function o8(e,t,n){const r=e[bc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Fw=Symbol("_vod"),Ya={beforeMount(e,{value:t},{transition:n}){e[Fw]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mf(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),mf(e,!0),r.enter(e)):r.leave(e,()=>{mf(e,!1)}):mf(e,t))},beforeUnmount(e,{value:t}){mf(e,t)}};function mf(e,t){e.style.display=t?e[Fw]:"none"}function s8(){Ya.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const ZO=Symbol("");function nTe(e){const t=ba();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>VS(i,a))},r=()=>{const a=e(t.proxy);RS(t.subTree,a),n(a)};l6(r),ln(()=>{const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),Fv(()=>a.disconnect())})}function RS(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{RS(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)VS(e.el,t);else if(e.type===ke)e.children.forEach(n=>RS(n,t));else if(e.type===dc){let{el:n,anchor:r}=e;for(;n&&(VS(n,t),n!==r);)n=n.nextSibling}}function VS(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const a in t)n.setProperty(`--${a}`,t[a]),r+=`--${a}: ${t[a]};`;n[ZO]=r}}function l8(e,t,n){const r=e.style,a=Ut(n);if(n&&!a){if(t&&!Ut(t))for(const i in t)n[i]==null&&OS(r,i,"");for(const i in n)OS(r,i,n[i])}else{const i=r.display;if(a){if(t!==n){const o=r[ZO];o&&(n+=";"+o),r.cssText=n}}else t&&e.removeAttribute("style");Fw in e&&(r.display=i)}}const PI=/\s*!important$/;function OS(e,t,n){if(Ne(n))n.forEach(r=>OS(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=u8(e,t);PI.test(n)?e.setProperty(Or(r),n.replace(PI,""),"important"):e[r]=n}}const DI=["Webkit","Moz","ms"],k0={};function u8(e,t){const n=k0[t];if(n)return n;let r=Kn(t);if(r!=="filter"&&r in e)return k0[t]=r;r=Ii(r);for(let a=0;aL0||(g8.then(()=>L0=0),L0=Date.now());function m8(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;va(y8(r,n.value),t,5,[r])};return n.value=e,n.attached=p8(),n}function y8(e,t){if(Ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const EI=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_8=(e,t,n,r,a,i,o,s,l)=>{const u=a==="svg";t==="class"?o8(e,r,u):t==="style"?l8(e,n,r):Vv(t)?bw(t)||v8(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):b8(e,t,r,u))?f8(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),c8(e,t,r,u))};function b8(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&EI(t)&&qe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return EI(t)&&Ut(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function S8(e,t){const n=ys(e);class r extends $w{constructor(i){super(n,i,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const rTe=e=>S8(e,O8),x8=typeof HTMLElement<"u"?HTMLElement:class{};class $w extends x8{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(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,this._ob&&(this._ob.disconnect(),this._ob=null),dt(()=>{this._connected||(zI(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const a of r)this._setAttr(a.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,a=!1)=>{const{props:i,styles:o}=r;let s;if(i&&!Ne(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=_p(this._props[l])),(s||(s=Object.create(null)))[Kn(l)]=!0)}this._numberProps=s,a&&this._resolveProps(r),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=Ne(n)?n:Object.keys(n||{});for(const a of Object.keys(this))a[0]!=="_"&&r.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of r.map(Kn))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(i){this._setProp(a,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=Kn(t);this._numberProps&&this._numberProps[r]&&(n=_p(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,a=!0){n!==this._props[t]&&(this._props[t]=n,a&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Or(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Or(t),n+""):n||this.removeAttribute(Or(t))))}_update(){zI(this._createVNode(),this.shadowRoot)}_createVNode(){const t=I(this._def,Wt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,{detail:o}))};n.emit=(i,...o)=>{r(i,o),Or(i)!==i&&r(Or(i),o)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof $w){n.parent=a._instance,n.provides=a._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function aTe(e="$style"){{const t=ba();if(!t)return Pt;const n=t.type.__cssModules;if(!n)return Pt;const r=n[e];return r||Pt}}const jO=new WeakMap,KO=new WeakMap,Ip=Symbol("_moveCb"),RI=Symbol("_enterCb"),qO={name:"TransitionGroup",props:Wt({},r8,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ba(),r=gO();let a,i;return Vw(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!P8(a[0].el,n.vnode.el,o))return;a.forEach(T8),a.forEach(A8);const s=a.filter(I8);XO(),s.forEach(l=>{const u=l.el,c=u.style;Vi(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Ip]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[Ip]=null,Mo(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=rt(e),s=UO(o);let l=o.tag||ke;a=i,i=t.default?Rw(t.default()):[];for(let u=0;udelete e.mode;qO.props;const C8=qO;function T8(e){const t=e.el;t[Ip]&&t[Ip](),t[RI]&&t[RI]()}function A8(e){KO.set(e,e.el.getBoundingClientRect())}function I8(e){const t=jO.get(e),n=KO.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",e}}function P8(e,t,n){const r=e.cloneNode(),a=e[bc];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=YO(r);return i.removeChild(r),o}const ss=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?n=>uc(t,n):t};function D8(e){e.target.composing=!0}function VI(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ha=Symbol("_assign"),Pp={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e[ha]=ss(a);const i=r||a.props&&a.props.type==="number";Bi(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=yp(s)),e[ha](s)}),n&&Bi(e,"change",()=>{e.value=e.value.trim()}),t||(Bi(e,"compositionstart",D8),Bi(e,"compositionend",VI),Bi(e,"change",VI))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e[ha]=ss(i),e.composing)return;const o=a||e.type==="number"?yp(e.value):e.value,s=t??"";o!==s&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===s)||(e.value=s))}},JO={deep:!0,created(e,t,n){e[ha]=ss(n),Bi(e,"change",()=>{const r=e._modelValue,a=Sc(e),i=e.checked,o=e[ha];if(Ne(r)){const s=Gm(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const u=[...r];u.splice(s,1),o(u)}}else if(su(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(eN(e,i))})},mounted:OI,beforeUpdate(e,t,n){e[ha]=ss(n),OI(e,t,n)}};function OI(e,{value:t,oldValue:n},r){e._modelValue=t,Ne(t)?e.checked=Gm(t,r.props.value)>-1:su(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=as(t,eN(e,!0)))}const QO={created(e,{value:t},n){e.checked=as(t,n.props.value),e[ha]=ss(n),Bi(e,"change",()=>{e[ha](Sc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ha]=ss(r),t!==n&&(e.checked=as(t,r.props.value))}},M8={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const a=su(t);Bi(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?yp(Sc(o)):Sc(o));e[ha](e.multiple?a?new Set(i):i:i[0])}),e[ha]=ss(r)},mounted(e,{value:t}){NI(e,t)},beforeUpdate(e,t,n){e[ha]=ss(n)},updated(e,{value:t}){NI(e,t)}};function NI(e,t){const n=e.multiple;if(!(n&&!Ne(t)&&!su(t))){for(let r=0,a=e.options.length;r-1:i.selected=t.has(o);else if(as(Sc(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Sc(e){return"_value"in e?e._value:e.value}function eN(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const k8={created(e,t,n){Lh(e,t,n,null,"created")},mounted(e,t,n){Lh(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Lh(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Lh(e,t,n,r,"updated")}};function tN(e,t){switch(e){case"SELECT":return M8;case"TEXTAREA":return Pp;default:switch(t){case"checkbox":return JO;case"radio":return QO;default:return Pp}}}function Lh(e,t,n,r,a){const o=tN(e.tagName,n.props&&n.props.type)[a];o&&o(e,t,n,r)}function L8(){Pp.getSSRProps=({value:e})=>({value:e}),QO.getSSRProps=({value:e},t)=>{if(t.props&&as(t.props.value,e))return{checked:!0}},JO.getSSRProps=({value:e},t)=>{if(Ne(e)){if(t.props&&Gm(e,t.props.value)>-1)return{checked:!0}}else if(su(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},k8.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=tN(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const E8=["ctrl","shift","alt","meta"],R8={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>E8.some(n=>e[`${n}Key`]&&!t.includes(n))},NS=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(a,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=a=>{if(!("key"in a))return;const i=Or(a.key);if(t.some(o=>o===i||V8[o]===i))return e(a)})},nN=Wt({patchProp:_8},n8);let gd,BI=!1;function rN(){return gd||(gd=N6(nN))}function aN(){return gd=BI?gd:B6(nN),BI=!0,gd}const zI=(...e)=>{rN().render(...e)},O8=(...e)=>{aN().hydrate(...e)},N8=(...e)=>{const t=rN().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=oN(r);if(!a)return;const i=t._component;!qe(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,iN(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t},oTe=(...e)=>{const t=aN().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=oN(r);if(a)return n(a,!0,iN(a))},t};function iN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function oN(e){return Ut(e)?document.querySelector(e):e}let FI=!1;const sTe=()=>{FI||(FI=!0,L8(),s8())};var B8=!1;/*! +**/const e8="http://www.w3.org/2000/svg",t8="http://www.w3.org/1998/Math/MathML",No=typeof document<"u"?document:null,xI=No&&No.createElement("template"),n8={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a=t==="svg"?No.createElementNS(e8,e):t==="mathml"?No.createElementNS(t8,e):No.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>No.createTextNode(e),createComment:e=>No.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>No.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,i){const o=n?n.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{xI.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const s=xI.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},yo="transition",pf="animation",bc=Symbol("_vtc"),yi=(e,{slots:t})=>Sa(d6,UO(e),t);yi.displayName="Transition";const WO={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},r8=yi.props=Wt({},pO,WO),Ds=(e,t=[])=>{Ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},wI=e=>e?Ne(e)?e.some(t=>t.length>1):e.length>1:!1;function UO(e){const t={};for(const D in e)D in WO||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,h=a8(a),g=h&&h[0],p=h&&h[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=m,onAppear:w=y,onAppearCancelled:C=_}=t,T=(D,M,L)=>{Mo(D,M?c:s),Mo(D,M?u:o),L&&L()},A=(D,M)=>{D._isLeaving=!1,Mo(D,f),Mo(D,v),Mo(D,d),M&&M()},P=D=>(M,L)=>{const R=D?w:y,O=()=>T(M,D,L);Ds(R,[M,O]),CI(()=>{Mo(M,D?l:i),Vi(M,D?c:s),wI(R)||TI(M,r,g,O)})};return Wt(t,{onBeforeEnter(D){Ds(m,[D]),Vi(D,i),Vi(D,o)},onBeforeAppear(D){Ds(S,[D]),Vi(D,l),Vi(D,u)},onEnter:P(!1),onAppear:P(!0),onLeave(D,M){D._isLeaving=!0;const L=()=>A(D,M);Vi(D,f),XO(),Vi(D,d),CI(()=>{D._isLeaving&&(Mo(D,f),Vi(D,v),wI(b)||TI(D,r,p,L))}),Ds(b,[D,L])},onEnterCancelled(D){T(D,!1),Ds(_,[D])},onAppearCancelled(D){T(D,!0),Ds(C,[D])},onLeaveCancelled(D){A(D),Ds(x,[D])}})}function a8(e){if(e==null)return null;if(Vt(e))return[D0(e.enter),D0(e.leave)];{const t=D0(e);return[t,t]}}function D0(e){return _p(e)}function Vi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bc]||(e[bc]=new Set)).add(t)}function Mo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[bc];n&&(n.delete(t),n.size||(e[bc]=void 0))}function CI(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let i8=0;function TI(e,t,n,r){const a=e._endId=++i8,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=YO(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=v=>{v.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[h]||"").split(", "),a=r(`${yo}Delay`),i=r(`${yo}Duration`),o=AI(a,i),s=r(`${pf}Delay`),l=r(`${pf}Duration`),u=AI(s,l);let c=null,f=0,d=0;t===yo?o>0&&(c=yo,f=o,d=i.length):t===pf?u>0&&(c=pf,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?yo:pf:null,d=c?c===yo?i.length:l.length:0);const v=c===yo&&/\b(transform|all)(,|$)/.test(r(`${yo}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:v}}function AI(e,t){for(;e.lengthII(n)+II(e[r])))}function II(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function XO(){return document.body.offsetHeight}function o8(e,t,n){const r=e[bc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zw=Symbol("_vod"),Ya={beforeMount(e,{value:t},{transition:n}){e[zw]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mf(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),mf(e,!0),r.enter(e)):r.leave(e,()=>{mf(e,!1)}):mf(e,t))},beforeUnmount(e,{value:t}){mf(e,t)}};function mf(e,t){e.style.display=t?e[zw]:"none"}function s8(){Ya.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const ZO=Symbol("");function nTe(e){const t=ba();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>RS(i,a))},r=()=>{const a=e(t.proxy);ES(t.subTree,a),n(a)};l6(r),ln(()=>{const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),Fv(()=>a.disconnect())})}function ES(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ES(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)RS(e.el,t);else if(e.type===ke)e.children.forEach(n=>ES(n,t));else if(e.type===dc){let{el:n,anchor:r}=e;for(;n&&(RS(n,t),n!==r);)n=n.nextSibling}}function RS(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const a in t)n.setProperty(`--${a}`,t[a]),r+=`--${a}: ${t[a]};`;n[ZO]=r}}function l8(e,t,n){const r=e.style,a=Ut(n);if(n&&!a){if(t&&!Ut(t))for(const i in t)n[i]==null&&VS(r,i,"");for(const i in n)VS(r,i,n[i])}else{const i=r.display;if(a){if(t!==n){const o=r[ZO];o&&(n+=";"+o),r.cssText=n}}else t&&e.removeAttribute("style");zw in e&&(r.display=i)}}const PI=/\s*!important$/;function VS(e,t,n){if(Ne(n))n.forEach(r=>VS(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=u8(e,t);PI.test(n)?e.setProperty(Or(r),n.replace(PI,""),"important"):e[r]=n}}const DI=["Webkit","Moz","ms"],M0={};function u8(e,t){const n=M0[t];if(n)return n;let r=Kn(t);if(r!=="filter"&&r in e)return M0[t]=r;r=Ii(r);for(let a=0;ak0||(g8.then(()=>k0=0),k0=Date.now());function m8(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;va(y8(r,n.value),t,5,[r])};return n.value=e,n.attached=p8(),n}function y8(e,t){if(Ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const EI=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_8=(e,t,n,r,a,i,o,s,l)=>{const u=a==="svg";t==="class"?o8(e,r,u):t==="style"?l8(e,n,r):Vv(t)?_w(t)||v8(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):b8(e,t,r,u))?f8(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),c8(e,t,r,u))};function b8(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&EI(t)&&qe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return EI(t)&&Ut(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function S8(e,t){const n=ys(e);class r extends Fw{constructor(i){super(n,i,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const rTe=e=>S8(e,O8),x8=typeof HTMLElement<"u"?HTMLElement:class{};class Fw extends x8{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(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,this._ob&&(this._ob.disconnect(),this._ob=null),dt(()=>{this._connected||(zI(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const a of r)this._setAttr(a.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,a=!1)=>{const{props:i,styles:o}=r;let s;if(i&&!Ne(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=_p(this._props[l])),(s||(s=Object.create(null)))[Kn(l)]=!0)}this._numberProps=s,a&&this._resolveProps(r),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=Ne(n)?n:Object.keys(n||{});for(const a of Object.keys(this))a[0]!=="_"&&r.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of r.map(Kn))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(i){this._setProp(a,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=Kn(t);this._numberProps&&this._numberProps[r]&&(n=_p(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,a=!0){n!==this._props[t]&&(this._props[t]=n,a&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Or(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Or(t),n+""):n||this.removeAttribute(Or(t))))}_update(){zI(this._createVNode(),this.shadowRoot)}_createVNode(){const t=I(this._def,Wt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,{detail:o}))};n.emit=(i,...o)=>{r(i,o),Or(i)!==i&&r(Or(i),o)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof Fw){n.parent=a._instance,n.provides=a._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function aTe(e="$style"){{const t=ba();if(!t)return Pt;const n=t.type.__cssModules;if(!n)return Pt;const r=n[e];return r||Pt}}const jO=new WeakMap,KO=new WeakMap,Ip=Symbol("_moveCb"),RI=Symbol("_enterCb"),qO={name:"TransitionGroup",props:Wt({},r8,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ba(),r=gO();let a,i;return Rw(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!P8(a[0].el,n.vnode.el,o))return;a.forEach(T8),a.forEach(A8);const s=a.filter(I8);XO(),s.forEach(l=>{const u=l.el,c=u.style;Vi(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Ip]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[Ip]=null,Mo(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=rt(e),s=UO(o);let l=o.tag||ke;a=i,i=t.default?Ew(t.default()):[];for(let u=0;udelete e.mode;qO.props;const C8=qO;function T8(e){const t=e.el;t[Ip]&&t[Ip](),t[RI]&&t[RI]()}function A8(e){KO.set(e,e.el.getBoundingClientRect())}function I8(e){const t=jO.get(e),n=KO.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",e}}function P8(e,t,n){const r=e.cloneNode(),a=e[bc];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=YO(r);return i.removeChild(r),o}const ss=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?n=>uc(t,n):t};function D8(e){e.target.composing=!0}function VI(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ha=Symbol("_assign"),Pp={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e[ha]=ss(a);const i=r||a.props&&a.props.type==="number";Bi(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=yp(s)),e[ha](s)}),n&&Bi(e,"change",()=>{e.value=e.value.trim()}),t||(Bi(e,"compositionstart",D8),Bi(e,"compositionend",VI),Bi(e,"change",VI))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e[ha]=ss(i),e.composing)return;const o=a||e.type==="number"?yp(e.value):e.value,s=t??"";o!==s&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===s)||(e.value=s))}},JO={deep:!0,created(e,t,n){e[ha]=ss(n),Bi(e,"change",()=>{const r=e._modelValue,a=Sc(e),i=e.checked,o=e[ha];if(Ne(r)){const s=Gm(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const u=[...r];u.splice(s,1),o(u)}}else if(su(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(eN(e,i))})},mounted:OI,beforeUpdate(e,t,n){e[ha]=ss(n),OI(e,t,n)}};function OI(e,{value:t,oldValue:n},r){e._modelValue=t,Ne(t)?e.checked=Gm(t,r.props.value)>-1:su(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=as(t,eN(e,!0)))}const QO={created(e,{value:t},n){e.checked=as(t,n.props.value),e[ha]=ss(n),Bi(e,"change",()=>{e[ha](Sc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ha]=ss(r),t!==n&&(e.checked=as(t,r.props.value))}},M8={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const a=su(t);Bi(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?yp(Sc(o)):Sc(o));e[ha](e.multiple?a?new Set(i):i:i[0])}),e[ha]=ss(r)},mounted(e,{value:t}){NI(e,t)},beforeUpdate(e,t,n){e[ha]=ss(n)},updated(e,{value:t}){NI(e,t)}};function NI(e,t){const n=e.multiple;if(!(n&&!Ne(t)&&!su(t))){for(let r=0,a=e.options.length;r-1:i.selected=t.has(o);else if(as(Sc(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Sc(e){return"_value"in e?e._value:e.value}function eN(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const k8={created(e,t,n){Lh(e,t,n,null,"created")},mounted(e,t,n){Lh(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Lh(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Lh(e,t,n,r,"updated")}};function tN(e,t){switch(e){case"SELECT":return M8;case"TEXTAREA":return Pp;default:switch(t){case"checkbox":return JO;case"radio":return QO;default:return Pp}}}function Lh(e,t,n,r,a){const o=tN(e.tagName,n.props&&n.props.type)[a];o&&o(e,t,n,r)}function L8(){Pp.getSSRProps=({value:e})=>({value:e}),QO.getSSRProps=({value:e},t)=>{if(t.props&&as(t.props.value,e))return{checked:!0}},JO.getSSRProps=({value:e},t)=>{if(Ne(e)){if(t.props&&Gm(e,t.props.value)>-1)return{checked:!0}}else if(su(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},k8.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=tN(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const E8=["ctrl","shift","alt","meta"],R8={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>E8.some(n=>e[`${n}Key`]&&!t.includes(n))},OS=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(a,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=a=>{if(!("key"in a))return;const i=Or(a.key);if(t.some(o=>o===i||V8[o]===i))return e(a)})},nN=Wt({patchProp:_8},n8);let gd,BI=!1;function rN(){return gd||(gd=N6(nN))}function aN(){return gd=BI?gd:B6(nN),BI=!0,gd}const zI=(...e)=>{rN().render(...e)},O8=(...e)=>{aN().hydrate(...e)},N8=(...e)=>{const t=rN().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=oN(r);if(!a)return;const i=t._component;!qe(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,iN(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t},oTe=(...e)=>{const t=aN().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=oN(r);if(a)return n(a,!0,iN(a))},t};function iN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function oN(e){return Ut(e)?document.querySelector(e):e}let FI=!1;const sTe=()=>{FI||(FI=!0,L8(),s8())};var B8=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let sN;const ey=e=>sN=e,lN=Symbol();function BS(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var pd;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(pd||(pd={}));function z8(){const e=$c(!0),t=e.run(()=>pe({}));let n=[],r=[];const a=Ym({install(i){ey(a),a._a=i,i.provide(lN,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!B8?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}const uN=()=>{};function $I(e,t,n,r=uN){e.push(t);const a=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&$V()&&nr(a),a}function Cu(e,...t){e.slice().forEach(n=>{n(...t)})}const F8=e=>e();function zS(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],a=e[n];BS(a)&&BS(r)&&e.hasOwnProperty(n)&&!Ft(r)&&!qo(r)?e[n]=zS(a,r):e[n]=r}return e}const $8=Symbol();function G8(e){return!BS(e)||!e.hasOwnProperty($8)}const{assign:ko}=Object;function H8(e){return!!(Ft(e)&&e.effect)}function W8(e,t,n,r){const{state:a,actions:i,getters:o}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=a?a():{});const c=Nv(n.state.value[e]);return ko(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=Ym(E(()=>{ey(n);const v=n._s.get(e);return o[d].call(v,v)})),f),{}))}return l=cN(e,u,t,n,r,!0),l}function cN(e,t,n={},r,a,i){let o;const s=ko({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],v;const h=r.state.value[e];!i&&!h&&(r.state.value[e]={}),pe({});let g;function p(C){let T;u=c=!1,typeof C=="function"?(C(r.state.value[e]),T={type:pd.patchFunction,storeId:e,events:v}):(zS(r.state.value[e],C),T={type:pd.patchObject,payload:C,storeId:e,events:v});const A=g=Symbol();dt().then(()=>{g===A&&(u=!0)}),c=!0,Cu(f,T,r.state.value[e])}const m=i?function(){const{state:T}=n,A=T?T():{};this.$patch(P=>{ko(P,A)})}:uN;function y(){o.stop(),f=[],d=[],r._s.delete(e)}function _(C,T){return function(){ey(r);const A=Array.from(arguments),P=[],D=[];function M(O){P.push(O)}function L(O){D.push(O)}Cu(d,{args:A,name:C,store:x,after:M,onError:L});let R;try{R=T.apply(this&&this.$id===e?this:x,A)}catch(O){throw Cu(D,O),O}return R instanceof Promise?R.then(O=>(Cu(P,O),O)).catch(O=>(Cu(D,O),Promise.reject(O))):(Cu(P,R),R)}}const b={_p:r,$id:e,$onAction:$I.bind(null,d),$patch:p,$reset:m,$subscribe(C,T={}){const A=$I(f,C,T.detached,()=>P()),P=o.run(()=>Se(()=>r.state.value[e],D=>{(T.flush==="sync"?c:u)&&C({storeId:e,type:pd.direct,events:v},D)},ko({},l,T)));return A},$dispose:y},x=In(b);r._s.set(e,x);const w=(r._a&&r._a.runWithContext||F8)(()=>r._e.run(()=>(o=$c()).run(t)));for(const C in w){const T=w[C];if(Ft(T)&&!H8(T)||qo(T))i||(h&&G8(T)&&(Ft(T)?T.value=h[C]:zS(T,h[C])),r.state.value[e][C]=T);else if(typeof T=="function"){const A=_(C,T);w[C]=A,s.actions[C]=T}}return ko(x,w),ko(rt(x),w),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:C=>{p(T=>{ko(T,C)})}}),r._p.forEach(C=>{ko(x,o.run(()=>C({store:x,app:r._a,pinia:r,options:s})))}),h&&i&&n.hydrate&&n.hydrate(x.$state,h),u=!0,c=!0,x}function U8(e,t,n){let r,a;const i=typeof t=="function";typeof e=="string"?(r=e,a=i?n:t):(a=e,r=e.id);function o(s,l){const u=P6();return s=s||(u?nt(lN,null):null),s&&ey(s),s=sN,s._s.has(r)||(i?cN(r,t,a,s):W8(r,a,s)),s._s.get(r)}return o.$id=r,o}const Y8="modulepreload",X8=function(e,t){return new URL(e,t).href},GI={},Eh=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=X8(i,r),i in GI)return;GI[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const f=a[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Y8,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};/*! + */let sN;const ey=e=>sN=e,lN=Symbol();function NS(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var pd;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(pd||(pd={}));function z8(){const e=$c(!0),t=e.run(()=>pe({}));let n=[],r=[];const a=Ym({install(i){ey(a),a._a=i,i.provide(lN,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!B8?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}const uN=()=>{};function $I(e,t,n,r=uN){e.push(t);const a=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&$V()&&nr(a),a}function Cu(e,...t){e.slice().forEach(n=>{n(...t)})}const F8=e=>e();function BS(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],a=e[n];NS(a)&&NS(r)&&e.hasOwnProperty(n)&&!Ft(r)&&!qo(r)?e[n]=BS(a,r):e[n]=r}return e}const $8=Symbol();function G8(e){return!NS(e)||!e.hasOwnProperty($8)}const{assign:ko}=Object;function H8(e){return!!(Ft(e)&&e.effect)}function W8(e,t,n,r){const{state:a,actions:i,getters:o}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=a?a():{});const c=Nv(n.state.value[e]);return ko(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=Ym(E(()=>{ey(n);const v=n._s.get(e);return o[d].call(v,v)})),f),{}))}return l=cN(e,u,t,n,r,!0),l}function cN(e,t,n={},r,a,i){let o;const s=ko({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],v;const h=r.state.value[e];!i&&!h&&(r.state.value[e]={}),pe({});let g;function p(C){let T;u=c=!1,typeof C=="function"?(C(r.state.value[e]),T={type:pd.patchFunction,storeId:e,events:v}):(BS(r.state.value[e],C),T={type:pd.patchObject,payload:C,storeId:e,events:v});const A=g=Symbol();dt().then(()=>{g===A&&(u=!0)}),c=!0,Cu(f,T,r.state.value[e])}const m=i?function(){const{state:T}=n,A=T?T():{};this.$patch(P=>{ko(P,A)})}:uN;function y(){o.stop(),f=[],d=[],r._s.delete(e)}function _(C,T){return function(){ey(r);const A=Array.from(arguments),P=[],D=[];function M(O){P.push(O)}function L(O){D.push(O)}Cu(d,{args:A,name:C,store:x,after:M,onError:L});let R;try{R=T.apply(this&&this.$id===e?this:x,A)}catch(O){throw Cu(D,O),O}return R instanceof Promise?R.then(O=>(Cu(P,O),O)).catch(O=>(Cu(D,O),Promise.reject(O))):(Cu(P,R),R)}}const b={_p:r,$id:e,$onAction:$I.bind(null,d),$patch:p,$reset:m,$subscribe(C,T={}){const A=$I(f,C,T.detached,()=>P()),P=o.run(()=>Se(()=>r.state.value[e],D=>{(T.flush==="sync"?c:u)&&C({storeId:e,type:pd.direct,events:v},D)},ko({},l,T)));return A},$dispose:y},x=In(b);r._s.set(e,x);const w=(r._a&&r._a.runWithContext||F8)(()=>r._e.run(()=>(o=$c()).run(t)));for(const C in w){const T=w[C];if(Ft(T)&&!H8(T)||qo(T))i||(h&&G8(T)&&(Ft(T)?T.value=h[C]:BS(T,h[C])),r.state.value[e][C]=T);else if(typeof T=="function"){const A=_(C,T);w[C]=A,s.actions[C]=T}}return ko(x,w),ko(rt(x),w),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:C=>{p(T=>{ko(T,C)})}}),r._p.forEach(C=>{ko(x,o.run(()=>C({store:x,app:r._a,pinia:r,options:s})))}),h&&i&&n.hydrate&&n.hydrate(x.$state,h),u=!0,c=!0,x}function U8(e,t,n){let r,a;const i=typeof t=="function";typeof e=="string"?(r=e,a=i?n:t):(a=e,r=e.id);function o(s,l){const u=P6();return s=s||(u?nt(lN,null):null),s&&ey(s),s=sN,s._s.has(r)||(i?cN(r,t,a,s):W8(r,a,s)),s._s.get(r)}return o.$id=r,o}const Y8="modulepreload",X8=function(e,t){return new URL(e,t).href},GI={},Eh=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=X8(i,r),i in GI)return;GI[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const f=a[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Y8,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Ku=typeof window<"u";function Z8(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const At=Object.assign;function E0(e,t){const n={};for(const r in t){const a=t[r];n[r]=Ga(a)?a.map(e):e(a)}return n}const md=()=>{},Ga=Array.isArray,j8=/\/$/,K8=e=>e.replace(j8,"");function R0(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=eY(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function q8(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function HI(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function J8(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&xc(t.matched[r],n.matched[a])&&fN(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fN(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Q8(e[n],t[n]))return!1;return!0}function Q8(e,t){return Ga(e)?WI(e,t):Ga(t)?WI(t,e):e===t}function WI(e,t){return Ga(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function eY(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let i=n.length-1,o,s;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Yd;(function(e){e.pop="pop",e.push="push"})(Yd||(Yd={}));var yd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yd||(yd={}));function tY(e){if(!e)if(Ku){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),K8(e)}const nY=/^[^#]+#/;function rY(e,t){return e.replace(nY,"#")+t}function aY(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ty=()=>({left:window.pageXOffset,top:window.pageYOffset});function iY(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=aY(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function UI(e,t){return(history.state?history.state.position-t:-1)+e}const FS=new Map;function oY(e,t){FS.set(e,t)}function sY(e){const t=FS.get(e);return FS.delete(e),t}let lY=()=>location.protocol+"//"+location.host;function dN(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),HI(l,"")}return HI(n,e)+r+a}function uY(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const v=dN(e,location),h=n.value,g=t.value;let p=0;if(d){if(n.value=v,t.value=d,o&&o===h){o=null;return}p=g?d.position-g.position:0}else r(v);a.forEach(m=>{m(n.value,h,{delta:p,type:Yd.pop,direction:p?p>0?yd.forward:yd.back:yd.unknown})})};function l(){o=n.value}function u(d){a.push(d);const v=()=>{const h=a.indexOf(d);h>-1&&a.splice(h,1)};return i.push(v),v}function c(){const{history:d}=window;d.state&&d.replaceState(At({},d.state,{scroll:ty()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function YI(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?ty():null}}function cY(e){const{history:t,location:n}=window,r={value:dN(e,n)},a={value:t.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:lY()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(v){console.error(v),n[c?"replace":"assign"](d)}}function o(l,u){const c=At({},t.state,YI(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=At({},a.value,t.state,{forward:l,scroll:ty()});i(c.current,c,!0);const f=At({},YI(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function fY(e){e=tY(e);const t=cY(e),n=uY(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=At({location:"",base:e,go:r,createHref:rY.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function dY(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),fY(e)}function vY(e){return typeof e=="string"||e&&typeof e=="object"}function vN(e){return typeof e=="string"||typeof e=="symbol"}const _o={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},hN=Symbol("");var XI;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(XI||(XI={}));function wc(e,t){return At(new Error,{type:e,[hN]:!0},t)}function ki(e,t){return e instanceof Error&&hN in e&&(t==null||!!(e.type&t))}const ZI="[^/]+?",hY={sensitive:!1,strict:!1,start:!0,end:!0},gY=/[.+*?^${}()[\]/\\]/g;function pY(e,t){const n=At({},hY,t),r=[];let a=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function yY(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const _Y={type:0,value:""},bY=/[a-zA-Z0-9_]/;function SY(e){if(!e)return[[]];if(e==="/")return[[_Y]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${u}": ${v}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(y)}:md}function o(c){if(vN(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!gN(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!qI(c)&&r.set(c.record.name,c)}function u(c,f){let d,v={},h,g;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw wc(1,{location:c});g=d.record.name,v=At(KI(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&KI(c.params,d.keys.map(y=>y.name))),h=d.stringify(v)}else if("path"in c)h=c.path,d=n.find(y=>y.re.test(h)),d&&(v=d.parse(h),g=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw wc(1,{location:c,currentLocation:f});g=d.record.name,v=At({},f.params,c.params),h=d.stringify(v)}const p=[];let m=d;for(;m;)p.unshift(m.record),m=m.parent;return{name:g,path:h,params:v,matched:p,meta:AY(p)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function KI(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function CY(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:TY(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function TY(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function qI(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function AY(e){return e.reduce((t,n)=>At(t,n.meta),{})}function JI(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function gN(e,t){return t.children.some(n=>n===e||gN(e,n))}const pN=/#/g,IY=/&/g,PY=/\//g,DY=/=/g,MY=/\?/g,mN=/\+/g,kY=/%5B/g,LY=/%5D/g,yN=/%5E/g,EY=/%60/g,_N=/%7B/g,RY=/%7C/g,bN=/%7D/g,VY=/%20/g;function Gw(e){return encodeURI(""+e).replace(RY,"|").replace(kY,"[").replace(LY,"]")}function OY(e){return Gw(e).replace(_N,"{").replace(bN,"}").replace(yN,"^")}function $S(e){return Gw(e).replace(mN,"%2B").replace(VY,"+").replace(pN,"%23").replace(IY,"%26").replace(EY,"`").replace(_N,"{").replace(bN,"}").replace(yN,"^")}function NY(e){return $S(e).replace(DY,"%3D")}function BY(e){return Gw(e).replace(pN,"%23").replace(MY,"%3F")}function zY(e){return e==null?"":BY(e).replace(PY,"%2F")}function Dp(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function FY(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ai&&$S(i)):[r&&$S(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function $Y(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ga(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const GY=Symbol(""),eP=Symbol(""),Hw=Symbol(""),SN=Symbol(""),GS=Symbol("");function yf(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Bo(e,t,n,r,a){const i=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(wc(4,{from:n,to:t})):f instanceof Error?s(f):vY(f)?s(wc(2,{from:t,to:f})):(i&&r.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(r&&r.instances[a],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function V0(e,t,n,r){const a=[];for(const i of e)for(const o in i.components){let s=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(HY(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Bo(u,n,r,i,o))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=Z8(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Bo(d,n,r,i,o)()}))}}return a}function HY(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tP(e){const t=nt(Hw),n=nt(SN),r=E(()=>t.resolve(Ge(e.to))),a=E(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(xc.bind(null,c));if(d>-1)return d;const v=nP(l[u-2]);return u>1&&nP(c)===v&&f[f.length-1].path!==v?f.findIndex(xc.bind(null,l[u-2])):d}),i=E(()=>a.value>-1&&XY(n.params,r.value.params)),o=E(()=>a.value>-1&&a.value===n.matched.length-1&&fN(n.params,r.value.params));function s(l={}){return YY(l)?t[Ge(e.replace)?"replace":"push"](Ge(e.to)).catch(md):Promise.resolve()}return{route:r,href:E(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const WY=ys({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:tP,setup(e,{slots:t}){const n=In(tP(e)),{options:r}=nt(Hw),a=E(()=>({[rP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[rP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Sa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),UY=WY;function YY(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function XY(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Ga(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function nP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rP=(e,t,n)=>e??t??n,ZY=ys({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=nt(GS),a=E(()=>e.route||r.value),i=nt(eP,0),o=E(()=>{let u=Ge(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=E(()=>a.value.matched[o.value]);Tt(eP,E(()=>o.value+1)),Tt(GY,s),Tt(GS,a);const l=pe();return Se(()=>[l.value,s.value,e.name],([u,c,f],[d,v,h])=>{c&&(c.instances[f]=u,v&&v!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),u&&c&&(!v||!xc(c,v)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return aP(n.default,{Component:d,route:u});const v=f.props[c],h=v?v===!0?u.params:typeof v=="function"?v(u):v:null,p=Sa(d,At({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return aP(n.default,{Component:p,route:u})||p}}});function aP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jY=ZY;function KY(e){const t=wY(e.routes,e),n=e.parseQuery||FY,r=e.stringifyQuery||QI,a=e.history,i=yf(),o=yf(),s=yf(),l=xe(_o);let u=_o;Ku&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=E0.bind(null,z=>""+z),f=E0.bind(null,zY),d=E0.bind(null,Dp);function v(z,H){let j,Y;return vN(z)?(j=t.getRecordMatcher(z),Y=H):Y=z,t.addRoute(Y,j)}function h(z){const H=t.getRecordMatcher(z);H&&t.removeRoute(H)}function g(){return t.getRoutes().map(z=>z.record)}function p(z){return!!t.getRecordMatcher(z)}function m(z,H){if(H=At({},H||l.value),typeof z=="string"){const B=R0(n,z,H.path),K=t.resolve({path:B.path},H),ae=a.createHref(B.fullPath);return At(B,K,{params:d(K.params),hash:Dp(B.hash),redirectedFrom:void 0,href:ae})}let j;if("path"in z)j=At({},z,{path:R0(n,z.path,H.path).path});else{const B=At({},z.params);for(const K in B)B[K]==null&&delete B[K];j=At({},z,{params:f(B)}),H.params=f(H.params)}const Y=t.resolve(j,H),q=z.hash||"";Y.params=c(d(Y.params));const te=q8(r,At({},z,{hash:OY(q),path:Y.path})),N=a.createHref(te);return At({fullPath:te,hash:q,query:r===QI?$Y(z.query):z.query||{}},Y,{redirectedFrom:void 0,href:N})}function y(z){return typeof z=="string"?R0(n,z,l.value.path):At({},z)}function _(z,H){if(u!==z)return wc(8,{from:H,to:z})}function b(z){return w(z)}function x(z){return b(At(y(z),{replace:!0}))}function S(z){const H=z.matched[z.matched.length-1];if(H&&H.redirect){const{redirect:j}=H;let Y=typeof j=="function"?j(z):j;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),At({query:z.query,hash:z.hash,params:"path"in Y?{}:z.params},Y)}}function w(z,H){const j=u=m(z),Y=l.value,q=z.state,te=z.force,N=z.replace===!0,B=S(j);if(B)return w(At(y(B),{state:typeof B=="object"?At({},q,B.state):q,force:te,replace:N}),H||j);const K=j;K.redirectedFrom=H;let ae;return!te&&J8(r,Y,j)&&(ae=wc(16,{to:K,from:Y}),Z(Y,Y,!0,!1)),(ae?Promise.resolve(ae):A(K,Y)).catch(ie=>ki(ie)?ki(ie,2)?ie:X(ie):V(ie,K,Y)).then(ie=>{if(ie){if(ki(ie,2))return w(At({replace:N},y(ie.to),{state:typeof ie.to=="object"?At({},q,ie.to.state):q,force:te}),H||K)}else ie=D(K,Y,!0,N,q);return P(K,Y,ie),ie})}function C(z,H){const j=_(z,H);return j?Promise.reject(j):Promise.resolve()}function T(z){const H=F.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(z):z()}function A(z,H){let j;const[Y,q,te]=qY(z,H);j=V0(Y.reverse(),"beforeRouteLeave",z,H);for(const B of Y)B.leaveGuards.forEach(K=>{j.push(Bo(K,z,H))});const N=C.bind(null,z,H);return j.push(N),$(j).then(()=>{j=[];for(const B of i.list())j.push(Bo(B,z,H));return j.push(N),$(j)}).then(()=>{j=V0(q,"beforeRouteUpdate",z,H);for(const B of q)B.updateGuards.forEach(K=>{j.push(Bo(K,z,H))});return j.push(N),$(j)}).then(()=>{j=[];for(const B of te)if(B.beforeEnter)if(Ga(B.beforeEnter))for(const K of B.beforeEnter)j.push(Bo(K,z,H));else j.push(Bo(B.beforeEnter,z,H));return j.push(N),$(j)}).then(()=>(z.matched.forEach(B=>B.enterCallbacks={}),j=V0(te,"beforeRouteEnter",z,H),j.push(N),$(j))).then(()=>{j=[];for(const B of o.list())j.push(Bo(B,z,H));return j.push(N),$(j)}).catch(B=>ki(B,8)?B:Promise.reject(B))}function P(z,H,j){s.list().forEach(Y=>T(()=>Y(z,H,j)))}function D(z,H,j,Y,q){const te=_(z,H);if(te)return te;const N=H===_o,B=Ku?history.state:{};j&&(Y||N?a.replace(z.fullPath,At({scroll:N&&B&&B.scroll},q)):a.push(z.fullPath,q)),l.value=z,Z(z,H,j,N),X()}let M;function L(){M||(M=a.listen((z,H,j)=>{if(!U.listening)return;const Y=m(z),q=S(Y);if(q){w(At(q,{replace:!0}),Y).catch(md);return}u=Y;const te=l.value;Ku&&oY(UI(te.fullPath,j.delta),ty()),A(Y,te).catch(N=>ki(N,12)?N:ki(N,2)?(w(N.to,Y).then(B=>{ki(B,20)&&!j.delta&&j.type===Yd.pop&&a.go(-1,!1)}).catch(md),Promise.reject()):(j.delta&&a.go(-j.delta,!1),V(N,Y,te))).then(N=>{N=N||D(Y,te,!1),N&&(j.delta&&!ki(N,8)?a.go(-j.delta,!1):j.type===Yd.pop&&ki(N,20)&&a.go(-1,!1)),P(Y,te,N)}).catch(md)}))}let R=yf(),O=yf(),W;function V(z,H,j){X(z);const Y=O.list();return Y.length?Y.forEach(q=>q(z,H,j)):console.error(z),Promise.reject(z)}function G(){return W&&l.value!==_o?Promise.resolve():new Promise((z,H)=>{R.add([z,H])})}function X(z){return W||(W=!z,L(),R.list().forEach(([H,j])=>z?j(z):H()),R.reset()),z}function Z(z,H,j,Y){const{scrollBehavior:q}=e;if(!Ku||!q)return Promise.resolve();const te=!j&&sY(UI(z.fullPath,0))||(Y||!j)&&history.state&&history.state.scroll||null;return dt().then(()=>q(z,H,te)).then(N=>N&&iY(N)).catch(N=>V(N,z,H))}const J=z=>a.go(z);let ee;const F=new Set,U={currentRoute:l,listening:!0,addRoute:v,removeRoute:h,hasRoute:p,getRoutes:g,resolve:m,options:e,push:b,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:G,install(z){const H=this;z.component("RouterLink",UY),z.component("RouterView",jY),z.config.globalProperties.$router=H,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Ge(l)}),Ku&&!ee&&l.value===_o&&(ee=!0,b(a.location).catch(q=>{}));const j={};for(const q in _o)Object.defineProperty(j,q,{get:()=>l.value[q],enumerable:!0});z.provide(Hw,H),z.provide(SN,tO(j)),z.provide(GS,l);const Y=z.unmount;F.add(z),z.unmount=function(){F.delete(z),F.size<1&&(u=_o,M&&M(),M=null,l.value=_o,ee=!1,W=!1),Y()}}};function $(z){return z.reduce((H,j)=>H.then(()=>T(j)),Promise.resolve())}return U}function qY(e,t){const n=[],r=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oxc(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>xc(u,l))||a.push(l))}return[n,r,a]}const Ra=KY({history:dY("./"),routes:[{path:"/:config",name:"home",component:()=>Eh(()=>import("./DevicesView-ee2916a1.js"),["./DevicesView-ee2916a1.js","./PanelCard-8f1b1033.js","./PanelCard-1a80a520.css"],import.meta.url)},{path:"/:config/devices/:view",name:"devices",component:()=>Eh(()=>import("./DevicesView-ee2916a1.js"),["./DevicesView-ee2916a1.js","./PanelCard-8f1b1033.js","./PanelCard-1a80a520.css"],import.meta.url)},{path:"/:config/settings",name:"settings",component:()=>Eh(()=>import("./SettingsView-81bbd48a.js"),["./SettingsView-81bbd48a.js","./index-e00a95bd.js","./index-c6b58a67.css","./PanelCard-8f1b1033.js","./PanelCard-1a80a520.css","./SettingsView-3f514416.css"],import.meta.url)},{path:"/:config/internals",name:"internals",component:()=>Eh(()=>import("./InternalsView-7d458d8e.js"),["./InternalsView-7d458d8e.js","./index-e00a95bd.js","./index-c6b58a67.css"],import.meta.url)}]});/*! + */const Ku=typeof window<"u";function Z8(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const At=Object.assign;function L0(e,t){const n={};for(const r in t){const a=t[r];n[r]=Ga(a)?a.map(e):e(a)}return n}const md=()=>{},Ga=Array.isArray,j8=/\/$/,K8=e=>e.replace(j8,"");function E0(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=eY(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function q8(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function HI(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function J8(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&xc(t.matched[r],n.matched[a])&&fN(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fN(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Q8(e[n],t[n]))return!1;return!0}function Q8(e,t){return Ga(e)?WI(e,t):Ga(t)?WI(t,e):e===t}function WI(e,t){return Ga(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function eY(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let i=n.length-1,o,s;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Yd;(function(e){e.pop="pop",e.push="push"})(Yd||(Yd={}));var yd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yd||(yd={}));function tY(e){if(!e)if(Ku){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),K8(e)}const nY=/^[^#]+#/;function rY(e,t){return e.replace(nY,"#")+t}function aY(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ty=()=>({left:window.pageXOffset,top:window.pageYOffset});function iY(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=aY(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function UI(e,t){return(history.state?history.state.position-t:-1)+e}const zS=new Map;function oY(e,t){zS.set(e,t)}function sY(e){const t=zS.get(e);return zS.delete(e),t}let lY=()=>location.protocol+"//"+location.host;function dN(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),HI(l,"")}return HI(n,e)+r+a}function uY(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const v=dN(e,location),h=n.value,g=t.value;let p=0;if(d){if(n.value=v,t.value=d,o&&o===h){o=null;return}p=g?d.position-g.position:0}else r(v);a.forEach(m=>{m(n.value,h,{delta:p,type:Yd.pop,direction:p?p>0?yd.forward:yd.back:yd.unknown})})};function l(){o=n.value}function u(d){a.push(d);const v=()=>{const h=a.indexOf(d);h>-1&&a.splice(h,1)};return i.push(v),v}function c(){const{history:d}=window;d.state&&d.replaceState(At({},d.state,{scroll:ty()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function YI(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?ty():null}}function cY(e){const{history:t,location:n}=window,r={value:dN(e,n)},a={value:t.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:lY()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(v){console.error(v),n[c?"replace":"assign"](d)}}function o(l,u){const c=At({},t.state,YI(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=At({},a.value,t.state,{forward:l,scroll:ty()});i(c.current,c,!0);const f=At({},YI(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function fY(e){e=tY(e);const t=cY(e),n=uY(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=At({location:"",base:e,go:r,createHref:rY.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function dY(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),fY(e)}function vY(e){return typeof e=="string"||e&&typeof e=="object"}function vN(e){return typeof e=="string"||typeof e=="symbol"}const _o={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},hN=Symbol("");var XI;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(XI||(XI={}));function wc(e,t){return At(new Error,{type:e,[hN]:!0},t)}function ki(e,t){return e instanceof Error&&hN in e&&(t==null||!!(e.type&t))}const ZI="[^/]+?",hY={sensitive:!1,strict:!1,start:!0,end:!0},gY=/[.+*?^${}()[\]/\\]/g;function pY(e,t){const n=At({},hY,t),r=[];let a=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function yY(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const _Y={type:0,value:""},bY=/[a-zA-Z0-9_]/;function SY(e){if(!e)return[[]];if(e==="/")return[[_Y]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${u}": ${v}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(y)}:md}function o(c){if(vN(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!gN(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!qI(c)&&r.set(c.record.name,c)}function u(c,f){let d,v={},h,g;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw wc(1,{location:c});g=d.record.name,v=At(KI(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&KI(c.params,d.keys.map(y=>y.name))),h=d.stringify(v)}else if("path"in c)h=c.path,d=n.find(y=>y.re.test(h)),d&&(v=d.parse(h),g=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw wc(1,{location:c,currentLocation:f});g=d.record.name,v=At({},f.params,c.params),h=d.stringify(v)}const p=[];let m=d;for(;m;)p.unshift(m.record),m=m.parent;return{name:g,path:h,params:v,matched:p,meta:AY(p)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function KI(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function CY(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:TY(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function TY(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function qI(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function AY(e){return e.reduce((t,n)=>At(t,n.meta),{})}function JI(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function gN(e,t){return t.children.some(n=>n===e||gN(e,n))}const pN=/#/g,IY=/&/g,PY=/\//g,DY=/=/g,MY=/\?/g,mN=/\+/g,kY=/%5B/g,LY=/%5D/g,yN=/%5E/g,EY=/%60/g,_N=/%7B/g,RY=/%7C/g,bN=/%7D/g,VY=/%20/g;function $w(e){return encodeURI(""+e).replace(RY,"|").replace(kY,"[").replace(LY,"]")}function OY(e){return $w(e).replace(_N,"{").replace(bN,"}").replace(yN,"^")}function FS(e){return $w(e).replace(mN,"%2B").replace(VY,"+").replace(pN,"%23").replace(IY,"%26").replace(EY,"`").replace(_N,"{").replace(bN,"}").replace(yN,"^")}function NY(e){return FS(e).replace(DY,"%3D")}function BY(e){return $w(e).replace(pN,"%23").replace(MY,"%3F")}function zY(e){return e==null?"":BY(e).replace(PY,"%2F")}function Dp(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function FY(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ai&&FS(i)):[r&&FS(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function $Y(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ga(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const GY=Symbol(""),eP=Symbol(""),Gw=Symbol(""),SN=Symbol(""),$S=Symbol("");function yf(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Bo(e,t,n,r,a){const i=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(wc(4,{from:n,to:t})):f instanceof Error?s(f):vY(f)?s(wc(2,{from:t,to:f})):(i&&r.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(r&&r.instances[a],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function R0(e,t,n,r){const a=[];for(const i of e)for(const o in i.components){let s=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(HY(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Bo(u,n,r,i,o))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=Z8(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Bo(d,n,r,i,o)()}))}}return a}function HY(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tP(e){const t=nt(Gw),n=nt(SN),r=E(()=>t.resolve(Ge(e.to))),a=E(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(xc.bind(null,c));if(d>-1)return d;const v=nP(l[u-2]);return u>1&&nP(c)===v&&f[f.length-1].path!==v?f.findIndex(xc.bind(null,l[u-2])):d}),i=E(()=>a.value>-1&&XY(n.params,r.value.params)),o=E(()=>a.value>-1&&a.value===n.matched.length-1&&fN(n.params,r.value.params));function s(l={}){return YY(l)?t[Ge(e.replace)?"replace":"push"](Ge(e.to)).catch(md):Promise.resolve()}return{route:r,href:E(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const WY=ys({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:tP,setup(e,{slots:t}){const n=In(tP(e)),{options:r}=nt(Gw),a=E(()=>({[rP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[rP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Sa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),UY=WY;function YY(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function XY(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Ga(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function nP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rP=(e,t,n)=>e??t??n,ZY=ys({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=nt($S),a=E(()=>e.route||r.value),i=nt(eP,0),o=E(()=>{let u=Ge(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=E(()=>a.value.matched[o.value]);Tt(eP,E(()=>o.value+1)),Tt(GY,s),Tt($S,a);const l=pe();return Se(()=>[l.value,s.value,e.name],([u,c,f],[d,v,h])=>{c&&(c.instances[f]=u,v&&v!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),u&&c&&(!v||!xc(c,v)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return aP(n.default,{Component:d,route:u});const v=f.props[c],h=v?v===!0?u.params:typeof v=="function"?v(u):v:null,p=Sa(d,At({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return aP(n.default,{Component:p,route:u})||p}}});function aP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jY=ZY;function KY(e){const t=wY(e.routes,e),n=e.parseQuery||FY,r=e.stringifyQuery||QI,a=e.history,i=yf(),o=yf(),s=yf(),l=xe(_o);let u=_o;Ku&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=L0.bind(null,z=>""+z),f=L0.bind(null,zY),d=L0.bind(null,Dp);function v(z,$){let U,Y;return vN(z)?(U=t.getRecordMatcher(z),Y=$):Y=z,t.addRoute(Y,U)}function h(z){const $=t.getRecordMatcher(z);$&&t.removeRoute($)}function g(){return t.getRoutes().map(z=>z.record)}function p(z){return!!t.getRecordMatcher(z)}function m(z,$){if($=At({},$||l.value),typeof z=="string"){const B=E0(n,z,$.path),K=t.resolve({path:B.path},$),re=a.createHref(B.fullPath);return At(B,K,{params:d(K.params),hash:Dp(B.hash),redirectedFrom:void 0,href:re})}let U;if("path"in z)U=At({},z,{path:E0(n,z.path,$.path).path});else{const B=At({},z.params);for(const K in B)B[K]==null&&delete B[K];U=At({},z,{params:f(B)}),$.params=f($.params)}const Y=t.resolve(U,$),j=z.hash||"";Y.params=c(d(Y.params));const te=q8(r,At({},z,{hash:OY(j),path:Y.path})),N=a.createHref(te);return At({fullPath:te,hash:j,query:r===QI?$Y(z.query):z.query||{}},Y,{redirectedFrom:void 0,href:N})}function y(z){return typeof z=="string"?E0(n,z,l.value.path):At({},z)}function _(z,$){if(u!==z)return wc(8,{from:$,to:z})}function b(z){return w(z)}function x(z){return b(At(y(z),{replace:!0}))}function S(z){const $=z.matched[z.matched.length-1];if($&&$.redirect){const{redirect:U}=$;let Y=typeof U=="function"?U(z):U;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),At({query:z.query,hash:z.hash,params:"path"in Y?{}:z.params},Y)}}function w(z,$){const U=u=m(z),Y=l.value,j=z.state,te=z.force,N=z.replace===!0,B=S(U);if(B)return w(At(y(B),{state:typeof B=="object"?At({},j,B.state):j,force:te,replace:N}),$||U);const K=U;K.redirectedFrom=$;let re;return!te&&J8(r,Y,U)&&(re=wc(16,{to:K,from:Y}),Z(Y,Y,!0,!1)),(re?Promise.resolve(re):A(K,Y)).catch(ie=>ki(ie)?ki(ie,2)?ie:X(ie):V(ie,K,Y)).then(ie=>{if(ie){if(ki(ie,2))return w(At({replace:N},y(ie.to),{state:typeof ie.to=="object"?At({},j,ie.to.state):j,force:te}),$||K)}else ie=D(K,Y,!0,N,j);return P(K,Y,ie),ie})}function C(z,$){const U=_(z,$);return U?Promise.reject(U):Promise.resolve()}function T(z){const $=ae.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(z):z()}function A(z,$){let U;const[Y,j,te]=qY(z,$);U=R0(Y.reverse(),"beforeRouteLeave",z,$);for(const B of Y)B.leaveGuards.forEach(K=>{U.push(Bo(K,z,$))});const N=C.bind(null,z,$);return U.push(N),F(U).then(()=>{U=[];for(const B of i.list())U.push(Bo(B,z,$));return U.push(N),F(U)}).then(()=>{U=R0(j,"beforeRouteUpdate",z,$);for(const B of j)B.updateGuards.forEach(K=>{U.push(Bo(K,z,$))});return U.push(N),F(U)}).then(()=>{U=[];for(const B of te)if(B.beforeEnter)if(Ga(B.beforeEnter))for(const K of B.beforeEnter)U.push(Bo(K,z,$));else U.push(Bo(B.beforeEnter,z,$));return U.push(N),F(U)}).then(()=>(z.matched.forEach(B=>B.enterCallbacks={}),U=R0(te,"beforeRouteEnter",z,$),U.push(N),F(U))).then(()=>{U=[];for(const B of o.list())U.push(Bo(B,z,$));return U.push(N),F(U)}).catch(B=>ki(B,8)?B:Promise.reject(B))}function P(z,$,U){s.list().forEach(Y=>T(()=>Y(z,$,U)))}function D(z,$,U,Y,j){const te=_(z,$);if(te)return te;const N=$===_o,B=Ku?history.state:{};U&&(Y||N?a.replace(z.fullPath,At({scroll:N&&B&&B.scroll},j)):a.push(z.fullPath,j)),l.value=z,Z(z,$,U,N),X()}let M;function L(){M||(M=a.listen((z,$,U)=>{if(!W.listening)return;const Y=m(z),j=S(Y);if(j){w(At(j,{replace:!0}),Y).catch(md);return}u=Y;const te=l.value;Ku&&oY(UI(te.fullPath,U.delta),ty()),A(Y,te).catch(N=>ki(N,12)?N:ki(N,2)?(w(N.to,Y).then(B=>{ki(B,20)&&!U.delta&&U.type===Yd.pop&&a.go(-1,!1)}).catch(md),Promise.reject()):(U.delta&&a.go(-U.delta,!1),V(N,Y,te))).then(N=>{N=N||D(Y,te,!1),N&&(U.delta&&!ki(N,8)?a.go(-U.delta,!1):U.type===Yd.pop&&ki(N,20)&&a.go(-1,!1)),P(Y,te,N)}).catch(md)}))}let R=yf(),O=yf(),H;function V(z,$,U){X(z);const Y=O.list();return Y.length?Y.forEach(j=>j(z,$,U)):console.error(z),Promise.reject(z)}function G(){return H&&l.value!==_o?Promise.resolve():new Promise((z,$)=>{R.add([z,$])})}function X(z){return H||(H=!z,L(),R.list().forEach(([$,U])=>z?U(z):$()),R.reset()),z}function Z(z,$,U,Y){const{scrollBehavior:j}=e;if(!Ku||!j)return Promise.resolve();const te=!U&&sY(UI(z.fullPath,0))||(Y||!U)&&history.state&&history.state.scroll||null;return dt().then(()=>j(z,$,te)).then(N=>N&&iY(N)).catch(N=>V(N,z,$))}const q=z=>a.go(z);let Q;const ae=new Set,W={currentRoute:l,listening:!0,addRoute:v,removeRoute:h,hasRoute:p,getRoutes:g,resolve:m,options:e,push:b,replace:x,go:q,back:()=>q(-1),forward:()=>q(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:G,install(z){const $=this;z.component("RouterLink",UY),z.component("RouterView",jY),z.config.globalProperties.$router=$,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Ge(l)}),Ku&&!Q&&l.value===_o&&(Q=!0,b(a.location).catch(j=>{}));const U={};for(const j in _o)Object.defineProperty(U,j,{get:()=>l.value[j],enumerable:!0});z.provide(Gw,$),z.provide(SN,tO(U)),z.provide($S,l);const Y=z.unmount;ae.add(z),z.unmount=function(){ae.delete(z),ae.size<1&&(u=_o,M&&M(),M=null,l.value=_o,Q=!1,H=!1),Y()}}};function F(z){return z.reduce(($,U)=>$.then(()=>T(U)),Promise.resolve())}return W}function qY(e,t){const n=[],r=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oxc(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>xc(u,l))||a.push(l))}return[n,r,a]}const Ra=KY({history:dY("./"),routes:[{path:"/:config",name:"home",component:()=>Eh(()=>import("./DevicesView-19ff0647.js"),["./DevicesView-19ff0647.js","./PanelCard-bac08c4a.js","./PanelCard-1a80a520.css"],import.meta.url)},{path:"/:config/devices/:view",name:"devices",component:()=>Eh(()=>import("./DevicesView-19ff0647.js"),["./DevicesView-19ff0647.js","./PanelCard-bac08c4a.js","./PanelCard-1a80a520.css"],import.meta.url)},{path:"/:config/settings",name:"settings",component:()=>Eh(()=>import("./SettingsView-83a39733.js"),["./SettingsView-83a39733.js","./index-769e4e34.js","./index-c6b58a67.css","./PanelCard-bac08c4a.js","./PanelCard-1a80a520.css","./SettingsView-3f514416.css"],import.meta.url)},{path:"/:config/internals",name:"internals",component:()=>Eh(()=>import("./InternalsView-06962020.js"),["./InternalsView-06962020.js","./index-769e4e34.js","./index-c6b58a67.css"],import.meta.url)}]});/*! * shared v9.9.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const Mp=typeof window<"u",_s=(e,t=!1)=>t?Symbol.for(e):Symbol(e),JY=(e,t,n)=>QY({l:e,k:t,s:n}),QY=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Pn=e=>typeof e=="number"&&isFinite(e),e7=e=>wN(e)==="[object Date]",kp=e=>wN(e)==="[object RegExp]",ny=e=>pt(e)&&Object.keys(e).length===0,Jn=Object.assign;let iP;const Ww=()=>iP||(iP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function oP(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const t7=Object.prototype.hasOwnProperty;function Lp(e,t){return t7.call(e,t)}const _n=Array.isArray,Qt=e=>typeof e=="function",Fe=e=>typeof e=="string",tn=e=>typeof e=="boolean",wt=e=>e!==null&&typeof e=="object",n7=e=>wt(e)&&Qt(e.then)&&Qt(e.catch),xN=Object.prototype.toString,wN=e=>xN.call(e),pt=e=>{if(!wt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},r7=e=>e==null?"":_n(e)||pt(e)&&e.toString===xN?JSON.stringify(e,null,2):String(e);function a7(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}function Uw(e){let t=e;return()=>++t}function i7(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Rh=e=>!wt(e)||_n(e);function Yg(e,t){if(Rh(e)||Rh(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(i=>{Rh(r[i])||Rh(a[i])?a[i]=r[i]:n.push({src:r[i],des:a[i]})})}}/*! + */const Mp=typeof window<"u",_s=(e,t=!1)=>t?Symbol.for(e):Symbol(e),JY=(e,t,n)=>QY({l:e,k:t,s:n}),QY=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Pn=e=>typeof e=="number"&&isFinite(e),e7=e=>wN(e)==="[object Date]",kp=e=>wN(e)==="[object RegExp]",ny=e=>pt(e)&&Object.keys(e).length===0,Jn=Object.assign;let iP;const Hw=()=>iP||(iP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function oP(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const t7=Object.prototype.hasOwnProperty;function Lp(e,t){return t7.call(e,t)}const _n=Array.isArray,Qt=e=>typeof e=="function",Fe=e=>typeof e=="string",tn=e=>typeof e=="boolean",wt=e=>e!==null&&typeof e=="object",n7=e=>wt(e)&&Qt(e.then)&&Qt(e.catch),xN=Object.prototype.toString,wN=e=>xN.call(e),pt=e=>{if(!wt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},r7=e=>e==null?"":_n(e)||pt(e)&&e.toString===xN?JSON.stringify(e,null,2):String(e);function a7(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}function Ww(e){let t=e;return()=>++t}function i7(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Rh=e=>!wt(e)||_n(e);function Yg(e,t){if(Rh(e)||Rh(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(i=>{Rh(r[i])||Rh(a[i])?a[i]=r[i]:n.push({src:r[i],des:a[i]})})}}/*! * message-compiler v9.9.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. @@ -34,18 +34,18 @@ * core-base v9.9.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function c7(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ww().__INTLIFY_PROD_DEVTOOLS__=!1)}const bs=[];bs[0]={w:[0],i:[3,0],"[":[4],o:[7]};bs[1]={w:[1],".":[2],"[":[4],o:[7]};bs[2]={w:[2],i:[3,0],0:[3,0]};bs[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};bs[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};bs[5]={"'":[4,0],o:8,l:[5,0]};bs[6]={'"':[4,0],o:8,l:[6,0]};const f7=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function d7(e){return f7.test(e)}function v7(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function h7(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;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 g7(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:d7(t)?v7(t):"*"+t}function p7(e){const t=[];let n=-1,r=0,a=0,i,o,s,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=s:o+=s},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),a++},d[3]=()=>{if(a>0)a--,r=4,d[0]();else{if(a=0,o===void 0||(o=g7(o),o===!1))return!1;d[1]()}};function v(){const h=e[n+1];if(r===5&&h==="'"||r===6&&h==='"')return n++,s="\\"+h,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&v())){if(l=h7(i),f=bs[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=i,c()===!1))))return;if(r===7)return t}}const sP=new Map;function m7(e,t){return wt(e)?e[t]:null}function y7(e,t){if(!wt(e))return null;let n=sP.get(t);if(n||(n=p7(t),n&&sP.set(t,n)),!n)return null;const r=n.length;let a=e,i=0;for(;ie,b7=e=>"",S7="text",x7=e=>e.length===0?"":a7(e),w7=r7;function lP(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function C7(e){const t=Pn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Pn(e.named.count)||Pn(e.named.n))?Pn(e.named.count)?e.named.count:Pn(e.named.n)?e.named.n:t:t}function T7(e,t){t.count||(t.count=e),t.n||(t.n=e)}function A7(e={}){const t=e.locale,n=C7(e),r=wt(e.pluralRules)&&Fe(t)&&Qt(e.pluralRules[t])?e.pluralRules[t]:lP,a=wt(e.pluralRules)&&Fe(t)&&Qt(e.pluralRules[t])?lP:void 0,i=m=>m[r(n,m.length,a)],o=e.list||[],s=m=>o[m],l=e.named||{};Pn(e.pluralIndex)&&T7(n,l);const u=m=>l[m];function c(m){const y=Qt(e.messages)?e.messages(m):wt(e.messages)?e.messages[m]:!1;return y||(e.parent?e.parent.message(m):b7)}const f=m=>e.modifiers?e.modifiers[m]:_7,d=pt(e.processor)&&Qt(e.processor.normalize)?e.processor.normalize:x7,v=pt(e.processor)&&Qt(e.processor.interpolate)?e.processor.interpolate:w7,h=pt(e.processor)&&Fe(e.processor.type)?e.processor.type:S7,p={list:s,named:u,plural:i,linked:(m,...y)=>{const[_,b]=y;let x="text",S="";y.length===1?wt(_)?(S=_.modifier||S,x=_.type||x):Fe(_)&&(S=_||S):y.length===2&&(Fe(_)&&(S=_||S),Fe(b)&&(x=b||x));const w=c(m)(p),C=x==="vnode"&&_n(w)&&S?w[0]:w;return S?f(S)(C,x):C},message:c,type:h,interpolate:v,normalize:d,values:Jn({},o,l)};return p}let Xd=null;function I7(e){Xd=e}function P7(e,t,n){Xd&&Xd.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const D7=M7("function:translate");function M7(e){return t=>Xd&&Xd.emit(e,t)}const k7={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},TN=On.__EXTEND_POINT__,Ms=Uw(TN),ui={INVALID_ARGUMENT:TN,INVALID_DATE_ARGUMENT:Ms(),INVALID_ISO_DATE_ARGUMENT:Ms(),NOT_SUPPORT_NON_STRING_MESSAGE:Ms(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ms(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ms(),NOT_SUPPORT_LOCALE_TYPE:Ms(),__EXTEND_POINT__:Ms()};function zi(e){return CN(e,null,void 0)}function Yw(e,t){return t.locale!=null?uP(t.locale):uP(e.locale)}let O0;function uP(e){if(Fe(e))return e;if(Qt(e)){if(e.resolvedOnce&&O0!=null)return O0;if(e.constructor.name==="Function"){const t=e();if(n7(t))throw zi(ui.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return O0=t}else throw zi(ui.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw zi(ui.NOT_SUPPORT_LOCALE_TYPE)}function L7(e,t,n){return[...new Set([n,..._n(t)?t:wt(t)?Object.keys(t):Fe(t)?[t]:[n]])]}function AN(e,t,n){const r=Fe(n)?n:Ep,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;_n(o);)o=cP(i,o,t);const s=_n(t)||!pt(t)?t:t.default?t.default:null;o=Fe(s)?[s]:s,_n(o)&&cP(i,o,!1),a.__localeChainCache.set(r,i)}return i}function cP(e,t,n){let r=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function O7(){return{upper:(e,t)=>t==="text"&&Fe(e)?e.toUpperCase():t==="vnode"&&wt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Fe(e)?e.toLowerCase():t==="vnode"&&wt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Fe(e)?dP(e):t==="vnode"&&wt(e)&&"__v_isVNode"in e?dP(e.children):e}}let N7,IN;function B7(e){IN=e}let PN;function z7(e){PN=e}let DN=null;const F7=e=>{DN=e},$7=()=>DN;let MN=null;const vP=e=>{MN=e},G7=()=>MN;let hP=0;function H7(e={}){const t=Qt(e.onWarn)?e.onWarn:i7,n=Fe(e.version)?e.version:V7,r=Fe(e.locale)||Qt(e.locale)?e.locale:Ep,a=Qt(r)?Ep:r,i=_n(e.fallbackLocale)||pt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=pt(e.messages)?e.messages:{[a]:{}},s=pt(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},l=pt(e.numberFormats)?e.numberFormats:{[a]:{}},u=Jn({},e.modifiers||{},O7()),c=e.pluralRules||{},f=Qt(e.missing)?e.missing:null,d=tn(e.missingWarn)||kp(e.missingWarn)?e.missingWarn:!0,v=tn(e.fallbackWarn)||kp(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,g=!!e.unresolving,p=Qt(e.postTranslation)?e.postTranslation:null,m=pt(e.processor)?e.processor:null,y=tn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,b=Qt(e.messageCompiler)?e.messageCompiler:N7,x=Qt(e.messageResolver)?e.messageResolver:IN||m7,S=Qt(e.localeFallbacker)?e.localeFallbacker:PN||L7,w=wt(e.fallbackContext)?e.fallbackContext:void 0,C=e,T=wt(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,A=wt(C.__numberFormatters)?C.__numberFormatters:new Map,P=wt(C.__meta)?C.__meta:{};hP++;const D={version:n,cid:hP,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:v,fallbackFormat:h,unresolving:g,postTranslation:p,processor:m,warnHtmlMessage:y,escapeParameter:_,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:w,onWarn:t,__meta:P};return D.datetimeFormats=s,D.numberFormats=l,D.__datetimeFormatters=T,D.__numberFormatters=A,__INTLIFY_PROD_DEVTOOLS__&&P7(D,n,P),D}function Xw(e,t,n,r,a){const{missing:i,onWarn:o}=e;if(i!==null){const s=i(e,n,t,a);return Fe(s)?s:t}else return t}function _f(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Cc=e=>wt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e),gP=()=>"",ra=e=>Qt(e);function pP(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=e,[l,u]=HS(...t),c=tn(u.missingWarn)?u.missingWarn:e.missingWarn,f=tn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=tn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,h=Fe(u.default)||tn(u.default)?tn(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",g=n||h!=="",p=Yw(e,u);d&&W7(u);let[m,y,_]=v?[l,p,s[p]||{}]:kN(e,l,p,o,f,c),b=m,x=l;if(!v&&!(Fe(b)||Cc(b)||ra(b))&&g&&(b=h,x=b),!v&&(!(Fe(b)||Cc(b)||ra(b))||!Fe(y)))return a?ry:l;let S=!1;const w=()=>{S=!0},C=ra(b)?b:LN(e,l,y,b,x,w);if(S)return b;const T=X7(e,y,_,u),A=A7(T),P=U7(e,C,A),D=r?r(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const M={timestamp:Date.now(),key:Fe(l)?l:ra(b)?b.key:"",locale:y||(ra(b)?b.locale:""),format:Fe(b)?b:ra(b)?b.source:"",message:D};M.meta=Jn({},e.__meta,$7()||{}),D7(M)}return D}function W7(e){_n(e.list)?e.list=e.list.map(t=>Fe(t)?oP(t):t):wt(e.named)&&Object.keys(e.named).forEach(t=>{Fe(e.named[t])&&(e.named[t]=oP(e.named[t]))})}function kN(e,t,n,r,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f={},d,v=null;const h="translate";for(let g=0;gr;return u.locale=n,u.key=t,u}const l=o(r,Y7(e,n,a,r,s,i));return l.locale=n,l.key=t,l.source=r,l}function U7(e,t,n){return t(n)}function HS(...e){const[t,n,r]=e,a={};if(!Fe(t)&&!Pn(t)&&!ra(t)&&!Cc(t))throw zi(ui.INVALID_ARGUMENT);const i=Pn(t)?String(t):(ra(t),t);return Pn(n)?a.plural=n:Fe(n)?a.default=n:pt(n)&&!ny(n)?a.named=n:_n(n)&&(a.list=n),Pn(r)?a.plural=r:Fe(r)?a.default=r:pt(r)&&Jn(a,r),[i,a]}function Y7(e,t,n,r,a,i){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>JY(t,n,o)}}function X7(e,t,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:a,pluralRules:i,messages:v=>{let h=o(n,v);if(h==null&&c){const[,,g]=kN(c,v,t,s,l,u);h=o(g,v)}if(Fe(h)||Cc(h)){let g=!1;const m=LN(e,v,t,h,v,()=>{g=!0});return g?gP:m}else return ra(h)?h:gP}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Pn(r.plural)&&(d.pluralIndex=r.plural),d}function mP(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=WS(...t),d=tn(c.missingWarn)?c.missingWarn:e.missingWarn;tn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,h=Yw(e,c),g=o(e,a,h);if(!Fe(l)||l==="")return new Intl.DateTimeFormat(h,f).format(u);let p={},m,y=null;const _="datetime format";for(let S=0;S{EN.includes(l)?o[l]=n[l]:i[l]=n[l]}),Fe(r)?i.locale=r:pt(r)&&(o=r),pt(a)&&(o=a),[i.key||"",s,i,o]}function yP(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function _P(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=US(...t),d=tn(c.missingWarn)?c.missingWarn:e.missingWarn;tn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,h=Yw(e,c),g=o(e,a,h);if(!Fe(l)||l==="")return new Intl.NumberFormat(h,f).format(u);let p={},m,y=null;const _="number format";for(let S=0;S{RN.includes(l)?o[l]=n[l]:i[l]=n[l]}),Fe(r)?i.locale=r:pt(r)&&(o=r),pt(a)&&(o=a),[i.key||"",s,i,o]}function bP(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}c7();/*! + */function c7(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hw().__INTLIFY_PROD_DEVTOOLS__=!1)}const bs=[];bs[0]={w:[0],i:[3,0],"[":[4],o:[7]};bs[1]={w:[1],".":[2],"[":[4],o:[7]};bs[2]={w:[2],i:[3,0],0:[3,0]};bs[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};bs[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};bs[5]={"'":[4,0],o:8,l:[5,0]};bs[6]={'"':[4,0],o:8,l:[6,0]};const f7=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function d7(e){return f7.test(e)}function v7(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function h7(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;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 g7(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:d7(t)?v7(t):"*"+t}function p7(e){const t=[];let n=-1,r=0,a=0,i,o,s,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=s:o+=s},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),a++},d[3]=()=>{if(a>0)a--,r=4,d[0]();else{if(a=0,o===void 0||(o=g7(o),o===!1))return!1;d[1]()}};function v(){const h=e[n+1];if(r===5&&h==="'"||r===6&&h==='"')return n++,s="\\"+h,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&v())){if(l=h7(i),f=bs[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=i,c()===!1))))return;if(r===7)return t}}const sP=new Map;function m7(e,t){return wt(e)?e[t]:null}function y7(e,t){if(!wt(e))return null;let n=sP.get(t);if(n||(n=p7(t),n&&sP.set(t,n)),!n)return null;const r=n.length;let a=e,i=0;for(;ie,b7=e=>"",S7="text",x7=e=>e.length===0?"":a7(e),w7=r7;function lP(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function C7(e){const t=Pn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Pn(e.named.count)||Pn(e.named.n))?Pn(e.named.count)?e.named.count:Pn(e.named.n)?e.named.n:t:t}function T7(e,t){t.count||(t.count=e),t.n||(t.n=e)}function A7(e={}){const t=e.locale,n=C7(e),r=wt(e.pluralRules)&&Fe(t)&&Qt(e.pluralRules[t])?e.pluralRules[t]:lP,a=wt(e.pluralRules)&&Fe(t)&&Qt(e.pluralRules[t])?lP:void 0,i=m=>m[r(n,m.length,a)],o=e.list||[],s=m=>o[m],l=e.named||{};Pn(e.pluralIndex)&&T7(n,l);const u=m=>l[m];function c(m){const y=Qt(e.messages)?e.messages(m):wt(e.messages)?e.messages[m]:!1;return y||(e.parent?e.parent.message(m):b7)}const f=m=>e.modifiers?e.modifiers[m]:_7,d=pt(e.processor)&&Qt(e.processor.normalize)?e.processor.normalize:x7,v=pt(e.processor)&&Qt(e.processor.interpolate)?e.processor.interpolate:w7,h=pt(e.processor)&&Fe(e.processor.type)?e.processor.type:S7,p={list:s,named:u,plural:i,linked:(m,...y)=>{const[_,b]=y;let x="text",S="";y.length===1?wt(_)?(S=_.modifier||S,x=_.type||x):Fe(_)&&(S=_||S):y.length===2&&(Fe(_)&&(S=_||S),Fe(b)&&(x=b||x));const w=c(m)(p),C=x==="vnode"&&_n(w)&&S?w[0]:w;return S?f(S)(C,x):C},message:c,type:h,interpolate:v,normalize:d,values:Jn({},o,l)};return p}let Xd=null;function I7(e){Xd=e}function P7(e,t,n){Xd&&Xd.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const D7=M7("function:translate");function M7(e){return t=>Xd&&Xd.emit(e,t)}const k7={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},TN=On.__EXTEND_POINT__,Ms=Ww(TN),ui={INVALID_ARGUMENT:TN,INVALID_DATE_ARGUMENT:Ms(),INVALID_ISO_DATE_ARGUMENT:Ms(),NOT_SUPPORT_NON_STRING_MESSAGE:Ms(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ms(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ms(),NOT_SUPPORT_LOCALE_TYPE:Ms(),__EXTEND_POINT__:Ms()};function zi(e){return CN(e,null,void 0)}function Uw(e,t){return t.locale!=null?uP(t.locale):uP(e.locale)}let V0;function uP(e){if(Fe(e))return e;if(Qt(e)){if(e.resolvedOnce&&V0!=null)return V0;if(e.constructor.name==="Function"){const t=e();if(n7(t))throw zi(ui.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return V0=t}else throw zi(ui.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw zi(ui.NOT_SUPPORT_LOCALE_TYPE)}function L7(e,t,n){return[...new Set([n,..._n(t)?t:wt(t)?Object.keys(t):Fe(t)?[t]:[n]])]}function AN(e,t,n){const r=Fe(n)?n:Ep,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;_n(o);)o=cP(i,o,t);const s=_n(t)||!pt(t)?t:t.default?t.default:null;o=Fe(s)?[s]:s,_n(o)&&cP(i,o,!1),a.__localeChainCache.set(r,i)}return i}function cP(e,t,n){let r=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function O7(){return{upper:(e,t)=>t==="text"&&Fe(e)?e.toUpperCase():t==="vnode"&&wt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Fe(e)?e.toLowerCase():t==="vnode"&&wt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Fe(e)?dP(e):t==="vnode"&&wt(e)&&"__v_isVNode"in e?dP(e.children):e}}let N7,IN;function B7(e){IN=e}let PN;function z7(e){PN=e}let DN=null;const F7=e=>{DN=e},$7=()=>DN;let MN=null;const vP=e=>{MN=e},G7=()=>MN;let hP=0;function H7(e={}){const t=Qt(e.onWarn)?e.onWarn:i7,n=Fe(e.version)?e.version:V7,r=Fe(e.locale)||Qt(e.locale)?e.locale:Ep,a=Qt(r)?Ep:r,i=_n(e.fallbackLocale)||pt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=pt(e.messages)?e.messages:{[a]:{}},s=pt(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},l=pt(e.numberFormats)?e.numberFormats:{[a]:{}},u=Jn({},e.modifiers||{},O7()),c=e.pluralRules||{},f=Qt(e.missing)?e.missing:null,d=tn(e.missingWarn)||kp(e.missingWarn)?e.missingWarn:!0,v=tn(e.fallbackWarn)||kp(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,g=!!e.unresolving,p=Qt(e.postTranslation)?e.postTranslation:null,m=pt(e.processor)?e.processor:null,y=tn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,b=Qt(e.messageCompiler)?e.messageCompiler:N7,x=Qt(e.messageResolver)?e.messageResolver:IN||m7,S=Qt(e.localeFallbacker)?e.localeFallbacker:PN||L7,w=wt(e.fallbackContext)?e.fallbackContext:void 0,C=e,T=wt(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,A=wt(C.__numberFormatters)?C.__numberFormatters:new Map,P=wt(C.__meta)?C.__meta:{};hP++;const D={version:n,cid:hP,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:v,fallbackFormat:h,unresolving:g,postTranslation:p,processor:m,warnHtmlMessage:y,escapeParameter:_,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:w,onWarn:t,__meta:P};return D.datetimeFormats=s,D.numberFormats=l,D.__datetimeFormatters=T,D.__numberFormatters=A,__INTLIFY_PROD_DEVTOOLS__&&P7(D,n,P),D}function Yw(e,t,n,r,a){const{missing:i,onWarn:o}=e;if(i!==null){const s=i(e,n,t,a);return Fe(s)?s:t}else return t}function _f(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Cc=e=>wt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e),gP=()=>"",ra=e=>Qt(e);function pP(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=e,[l,u]=GS(...t),c=tn(u.missingWarn)?u.missingWarn:e.missingWarn,f=tn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=tn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,h=Fe(u.default)||tn(u.default)?tn(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",g=n||h!=="",p=Uw(e,u);d&&W7(u);let[m,y,_]=v?[l,p,s[p]||{}]:kN(e,l,p,o,f,c),b=m,x=l;if(!v&&!(Fe(b)||Cc(b)||ra(b))&&g&&(b=h,x=b),!v&&(!(Fe(b)||Cc(b)||ra(b))||!Fe(y)))return a?ry:l;let S=!1;const w=()=>{S=!0},C=ra(b)?b:LN(e,l,y,b,x,w);if(S)return b;const T=X7(e,y,_,u),A=A7(T),P=U7(e,C,A),D=r?r(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const M={timestamp:Date.now(),key:Fe(l)?l:ra(b)?b.key:"",locale:y||(ra(b)?b.locale:""),format:Fe(b)?b:ra(b)?b.source:"",message:D};M.meta=Jn({},e.__meta,$7()||{}),D7(M)}return D}function W7(e){_n(e.list)?e.list=e.list.map(t=>Fe(t)?oP(t):t):wt(e.named)&&Object.keys(e.named).forEach(t=>{Fe(e.named[t])&&(e.named[t]=oP(e.named[t]))})}function kN(e,t,n,r,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f={},d,v=null;const h="translate";for(let g=0;gr;return u.locale=n,u.key=t,u}const l=o(r,Y7(e,n,a,r,s,i));return l.locale=n,l.key=t,l.source=r,l}function U7(e,t,n){return t(n)}function GS(...e){const[t,n,r]=e,a={};if(!Fe(t)&&!Pn(t)&&!ra(t)&&!Cc(t))throw zi(ui.INVALID_ARGUMENT);const i=Pn(t)?String(t):(ra(t),t);return Pn(n)?a.plural=n:Fe(n)?a.default=n:pt(n)&&!ny(n)?a.named=n:_n(n)&&(a.list=n),Pn(r)?a.plural=r:Fe(r)?a.default=r:pt(r)&&Jn(a,r),[i,a]}function Y7(e,t,n,r,a,i){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>JY(t,n,o)}}function X7(e,t,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:a,pluralRules:i,messages:v=>{let h=o(n,v);if(h==null&&c){const[,,g]=kN(c,v,t,s,l,u);h=o(g,v)}if(Fe(h)||Cc(h)){let g=!1;const m=LN(e,v,t,h,v,()=>{g=!0});return g?gP:m}else return ra(h)?h:gP}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Pn(r.plural)&&(d.pluralIndex=r.plural),d}function mP(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=HS(...t),d=tn(c.missingWarn)?c.missingWarn:e.missingWarn;tn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,h=Uw(e,c),g=o(e,a,h);if(!Fe(l)||l==="")return new Intl.DateTimeFormat(h,f).format(u);let p={},m,y=null;const _="datetime format";for(let S=0;S{EN.includes(l)?o[l]=n[l]:i[l]=n[l]}),Fe(r)?i.locale=r:pt(r)&&(o=r),pt(a)&&(o=a),[i.key||"",s,i,o]}function yP(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function _P(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=WS(...t),d=tn(c.missingWarn)?c.missingWarn:e.missingWarn;tn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,h=Uw(e,c),g=o(e,a,h);if(!Fe(l)||l==="")return new Intl.NumberFormat(h,f).format(u);let p={},m,y=null;const _="number format";for(let S=0;S{RN.includes(l)?o[l]=n[l]:i[l]=n[l]}),Fe(r)?i.locale=r:pt(r)&&(o=r),pt(a)&&(o=a),[i.key||"",s,i,o]}function bP(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}c7();/*! * vue-i18n v9.9.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const Z7="9.9.0";function j7(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ww().__INTLIFY_PROD_DEVTOOLS__=!1)}const VN=k7.__EXTEND_POINT__,bo=Uw(VN);bo(),bo(),bo(),bo(),bo(),bo(),bo(),bo();const ON=ui.__EXTEND_POINT__,pr=Uw(ON),pa={UNEXPECTED_RETURN_TYPE:ON,INVALID_ARGUMENT:pr(),MUST_BE_CALL_SETUP_TOP:pr(),NOT_INSTALLED:pr(),NOT_AVAILABLE_IN_LEGACY_MODE:pr(),REQUIRED_VALUE:pr(),INVALID_VALUE:pr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pr(),NOT_INSTALLED_WITH_PROVIDE:pr(),UNEXPECTED_ERROR:pr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pr(),BRIDGE_SUPPORT_VUE_2_ONLY:pr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pr(),__EXTEND_POINT__:pr()};function Ha(e,...t){return CN(e,null,void 0)}const YS=_s("__translateVNode"),XS=_s("__datetimeParts"),ZS=_s("__numberParts"),K7=_s("__setPluralRules"),q7=_s("__injectWithOption"),jS=_s("__dispose");function Zd(e){if(!wt(e))return e;for(const t in e)if(Lp(e,t))if(!t.includes("."))wt(e[t])&&Zd(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,i=!1;for(let o=0;o{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Yg(u,o[l])):Yg(u,o)}else Fe(s)&&Yg(JSON.parse(s),o)}),a==null&&i)for(const s in o)Lp(o,s)&&Zd(o[s]);return o}function BN(e){return e.type}function J7(e,t,n){let r=wt(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=NN(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(wt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(wt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function SP(e){return I(is,null,e,0)}const xP="__INTLIFY_META__",wP=()=>[],Q7=()=>!1;let CP=0;function TP(e){return(t,n,r,a)=>e(n,r,ba()||void 0,a)}const e9=()=>{const e=ba();let t=null;return e&&(t=BN(e)[xP])?{[xP]:t}:null};function zN(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,i=e.flatJson,o=Mp?pe:xe;let s=tn(e.inheritLocale)?e.inheritLocale:!0;const l=o(n&&s?n.locale.value:Fe(e.locale)?e.locale:Ep),u=o(n&&s?n.fallbackLocale.value:Fe(e.fallbackLocale)||_n(e.fallbackLocale)||pt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=o(NN(l.value,e)),f=o(pt(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),d=o(pt(e.numberFormats)?e.numberFormats:{[l.value]:{}});let v=n?n.missingWarn:tn(e.missingWarn)||kp(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:tn(e.fallbackWarn)||kp(e.fallbackWarn)?e.fallbackWarn:!0,g=n?n.fallbackRoot:tn(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,m=Qt(e.missing)?e.missing:null,y=Qt(e.missing)?TP(e.missing):null,_=Qt(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:tn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const S=n?n.modifiers:pt(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,C;C=(()=>{a&&vP(null);const re={version:Z7,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:S,pluralRules:w,missing:y===null?void 0:y,missingWarn:v,fallbackWarn:h,fallbackFormat:p,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:b,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};re.datetimeFormats=f.value,re.numberFormats=d.value,re.__datetimeFormatters=pt(C)?C.__datetimeFormatters:void 0,re.__numberFormatters=pt(C)?C.__numberFormatters:void 0;const ce=H7(re);return a&&vP(ce),ce})(),_f(C,l.value,u.value);function A(){return[l.value,u.value,c.value,f.value,d.value]}const P=E({get:()=>l.value,set:re=>{l.value=re,C.locale=l.value}}),D=E({get:()=>u.value,set:re=>{u.value=re,C.fallbackLocale=u.value,_f(C,l.value,re)}}),M=E(()=>c.value),L=E(()=>f.value),R=E(()=>d.value);function O(){return Qt(_)?_:null}function W(re){_=re,C.postTranslation=re}function V(){return m}function G(re){re!==null&&(y=TP(re)),m=re,C.missing=y}const X=(re,ce,Oe,Ze,_t,jt)=>{A();let Tn;try{__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=n?G7():void 0),Tn=re(C)}finally{__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=void 0)}if(Oe!=="translate exists"&&Pn(Tn)&&Tn===ry||Oe==="translate exists"&&!Tn){const[go,x0]=ce();return n&&g?Ze(n):_t(go)}else{if(jt(Tn))return Tn;throw Ha(pa.UNEXPECTED_RETURN_TYPE)}};function Z(...re){return X(ce=>Reflect.apply(pP,null,[ce,...re]),()=>HS(...re),"translate",ce=>Reflect.apply(ce.t,ce,[...re]),ce=>ce,ce=>Fe(ce))}function J(...re){const[ce,Oe,Ze]=re;if(Ze&&!wt(Ze))throw Ha(pa.INVALID_ARGUMENT);return Z(ce,Oe,Jn({resolvedMessage:!0},Ze||{}))}function ee(...re){return X(ce=>Reflect.apply(mP,null,[ce,...re]),()=>WS(...re),"datetime format",ce=>Reflect.apply(ce.d,ce,[...re]),()=>fP,ce=>Fe(ce))}function F(...re){return X(ce=>Reflect.apply(_P,null,[ce,...re]),()=>US(...re),"number format",ce=>Reflect.apply(ce.n,ce,[...re]),()=>fP,ce=>Fe(ce))}function U(re){return re.map(ce=>Fe(ce)||Pn(ce)||tn(ce)?SP(String(ce)):ce)}const z={normalize:U,interpolate:re=>re,type:"vnode"};function H(...re){return X(ce=>{let Oe;const Ze=ce;try{Ze.processor=z,Oe=Reflect.apply(pP,null,[Ze,...re])}finally{Ze.processor=null}return Oe},()=>HS(...re),"translate",ce=>ce[YS](...re),ce=>[SP(ce)],ce=>_n(ce))}function j(...re){return X(ce=>Reflect.apply(_P,null,[ce,...re]),()=>US(...re),"number format",ce=>ce[ZS](...re),wP,ce=>Fe(ce)||_n(ce))}function Y(...re){return X(ce=>Reflect.apply(mP,null,[ce,...re]),()=>WS(...re),"datetime format",ce=>ce[XS](...re),wP,ce=>Fe(ce)||_n(ce))}function q(re){w=re,C.pluralRules=w}function te(re,ce){return X(()=>{if(!re)return!1;const Oe=Fe(ce)?ce:l.value,Ze=K(Oe),_t=C.messageResolver(Ze,re);return Cc(_t)||ra(_t)||Fe(_t)},()=>[re],"translate exists",Oe=>Reflect.apply(Oe.te,Oe,[re,ce]),Q7,Oe=>tn(Oe))}function N(re){let ce=null;const Oe=AN(C,u.value,l.value);for(let Ze=0;Ze{s&&(l.value=re,C.locale=re,_f(C,l.value,u.value))}),Se(n.fallbackLocale,re=>{s&&(u.value=re,C.fallbackLocale=re,_f(C,l.value,u.value))}));const Me={id:CP,locale:P,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(re){s=re,re&&n&&(l.value=n.locale.value,u.value=n.fallbackLocale.value,_f(C,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:M,get modifiers(){return S},get pluralRules(){return w||{}},get isGlobal(){return a},get missingWarn(){return v},set missingWarn(re){v=re,C.missingWarn=v},get fallbackWarn(){return h},set fallbackWarn(re){h=re,C.fallbackWarn=h},get fallbackRoot(){return g},set fallbackRoot(re){g=re},get fallbackFormat(){return p},set fallbackFormat(re){p=re,C.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(re){b=re,C.warnHtmlMessage=re},get escapeParameter(){return x},set escapeParameter(re){x=re,C.escapeParameter=re},t:Z,getLocaleMessage:K,setLocaleMessage:ae,mergeLocaleMessage:ie,getPostTranslationHandler:O,setPostTranslationHandler:W,getMissingHandler:V,setMissingHandler:G,[K7]:q};return Me.datetimeFormats=L,Me.numberFormats=R,Me.rt=J,Me.te=te,Me.tm=B,Me.d=ee,Me.n=F,Me.getDateTimeFormat=ve,Me.setDateTimeFormat=ye,Me.mergeDateTimeFormat=me,Me.getNumberFormat=_e,Me.setNumberFormat=he,Me.mergeNumberFormat=De,Me[q7]=r,Me[YS]=H,Me[XS]=Y,Me[ZS]=j,Me}const Zw={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function t9({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===ke?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function FN(e){return ke}const n9=ys({name:"i18n-t",props:Jn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Pn(e)||!isNaN(e)}},Zw),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Gv({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Fe(e.plural)?+e.plural:e.plural);const s=t9(t,i),l=a[YS](e.keypath,s,o),u=Jn({},r),c=Fe(e.tag)||wt(e.tag)?e.tag:FN();return Sa(c,u,l)}}}),AP=n9;function r9(e){return _n(e)&&!Fe(e[0])}function $N(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),Fe(e.format)?o.key=e.format:wt(e.format)&&(Fe(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((d,v)=>n.includes(v)?Jn({},d,{[v]:e.format[v]}):d,{}));const l=r(e.value,o,s);let u=[o.key];_n(l)?u=l.map((d,v)=>{const h=a[d.type],g=h?h({[d.type]:d.value,index:v,parts:l}):[d.value];return r9(g)&&(g[0].key=`${d.type}-${v}`),g}):Fe(l)&&(u=[l]);const c=Jn({},i),f=Fe(e.tag)||wt(e.tag)?e.tag:FN();return Sa(f,c,u)}}const a9=ys({name:"i18n-n",props:Jn({value:{type:Number,required:!0},format:{type:[String,Object]}},Zw),setup(e,t){const n=e.i18n||Gv({useScope:"parent",__useComponent:!0});return $N(e,t,RN,(...r)=>n[ZS](...r))}}),IP=a9,i9=ys({name:"i18n-d",props:Jn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zw),setup(e,t){const n=e.i18n||Gv({useScope:"parent",__useComponent:!0});return $N(e,t,EN,(...r)=>n[XS](...r))}}),PP=i9;function o9(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function s9(e){const t=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw Ha(pa.UNEXPECTED_ERROR);const c=o9(e,s.$),f=DP(u);return[Reflect.apply(c.t,c,[...MP(f)]),c]};return{created:(o,s)=>{const[l,u]=t(s);Mp&&e.global===u&&(o.__i18nWatcher=Se(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Mp&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=DP(s);o.textContent=Reflect.apply(l.t,l,[...MP(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function DP(e){if(Fe(e))return{path:e};if(pt(e)){if(!("path"in e))throw Ha(pa.REQUIRED_VALUE,"path");return e}else throw Ha(pa.INVALID_VALUE)}function MP(e){const{path:t,locale:n,args:r,choice:a,plural:i}=e,o={},s=r||{};return Fe(n)&&(o.locale=n),Pn(a)&&(o.plural=a),Pn(i)&&(o.plural=i),[t,s,o]}function l9(e,t,...n){const r=pt(n[0])?n[0]:{},a=!!r.useI18nComponentName;(tn(r.globalInstall)?r.globalInstall:!0)&&([a?"i18n":AP.name,"I18nT"].forEach(o=>e.component(o,AP)),[IP.name,"I18nN"].forEach(o=>e.component(o,IP)),[PP.name,"I18nD"].forEach(o=>e.component(o,PP))),e.directive("t",s9(t))}const u9=_s("global-vue-i18n");function c9(e={},t){const n=tn(e.globalInjection)?e.globalInjection:!0,r=!0,a=new Map,[i,o]=f9(e),s=_s("");function l(f){return a.get(f)||null}function u(f,d){a.set(f,d)}function c(f){a.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return r},async install(d,...v){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,f),pt(v[0])){const p=v[0];f.__composerExtend=p.__composerExtend,f.__vueI18nExtend=p.__vueI18nExtend}let h=null;n&&(h=_9(d,f.global)),l9(d,f,...v);const g=d.unmount;d.unmount=()=>{h&&h(),f.dispose(),g()}},get global(){return o},dispose(){i.stop()},__instances:a,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}}function Gv(e={}){const t=ba();if(t==null)throw Ha(pa.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ha(pa.NOT_INSTALLED);const n=d9(t),r=h9(n),a=BN(t),i=v9(e,a);if(i==="global")return J7(r,e,a),r;if(i==="parent"){let l=g9(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(t);if(s==null){const l=Jn({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=zN(l),o.__composerExtend&&(s[jS]=o.__composerExtend(s)),m9(o,t,s),o.__setInstance(t,s)}return s}function f9(e,t,n){const r=$c();{const a=r.run(()=>zN(e));if(a==null)throw Ha(pa.UNEXPECTED_ERROR);return[r,a]}}function d9(e){{const t=nt(e.isCE?u9:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ha(e.isCE?pa.NOT_INSTALLED_WITH_PROVIDE:pa.UNEXPECTED_ERROR);return t}}function v9(e,t){return ny(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function h9(e){return e.mode==="composition"?e.global:e.global.__composer}function g9(e,t,n=!1){let r=null;const a=t.root;let i=p9(t,n);for(;i!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(i)),r!=null||a===i)break;i=i.parent}return r}function p9(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function m9(e,t,n){ln(()=>{},t),Fv(()=>{const r=n;e.__deleteInstance(t);const a=r[jS];a&&(a(),delete r[jS])},t)}const y9=["locale","fallbackLocale","availableLocales"],kP=["t","rt","d","n","tm","te"];function _9(e,t){const n=Object.create(null);return y9.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw Ha(pa.UNEXPECTED_ERROR);const o=Ft(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,kP.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw Ha(pa.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,kP.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}j7();B7(y7);z7(AN);if(__INTLIFY_PROD_DEVTOOLS__){const e=Ww();e.__INTLIFY__=!0,I7(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const b9={badge:"Abzeichen",open:"Öffnen",close:"Schließen",confirmEdit:{ok:"OK",cancel:"Abbrechen"},dataIterator:{noResultsText:"Keine Elemente gefunden",loadingText:"Lade Elemente..."},dataTable:{itemsPerPageText:"Zeilen pro Seite:",ariaLabel:{sortDescending:"Absteigend sortiert.",sortAscending:"Aufsteigend sortiert.",sortNone:"Nicht sortiert.",activateNone:"Aktivieren um Sortierung zu entfernen.",activateDescending:"Aktivieren um absteigend zu sortieren.",activateAscending:"Aktivieren um aufsteigend zu sortieren."},sortBy:"Sortiere nach"},dataFooter:{itemsPerPageText:"Elemente pro Seite:",itemsPerPageAll:"Alle",nextPage:"Nächste Seite",prevPage:"Vorherige Seite",firstPage:"Erste Seite",lastPage:"Letzte Seite",pageText:"{0}-{1} von {2}"},dateRangeInput:{divider:"bis"},datePicker:{itemsSelected:"{0} selected",range:{title:"Daten auswählen",header:"Daten eingeben"},title:"Datum auswählen",header:"Datum eingeben",input:{placeholder:"Datum eingeben"}},noDataText:"Keine Daten vorhanden",carousel:{prev:"Vorheriges Bild",next:"Nächstes Bild",ariaLabel:{delimiter:"Element {0} von {1}"}},calendar:{moreEvents:"{0} mehr",today:"Today"},input:{clear:"{0} leeren",prependAction:"{0} vorangestellte Aktion",appendAction:"{0} angehängte Aktion",otp:"Bitte OTP-Zeichen {0} eingeben"},fileInput:{counter:"{0} Dateien",counterSize:"{0} Dateien ({1} gesamt)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Seitennavigation",next:"Nächste Seite",previous:"Vorherige Seite",page:"Gehe zu Seite {0}",currentPage:"Aktuelle Seite, Seite {0}",first:"Erste Seite",last:"Letzte Seite"}},stepper:{next:"Weiter",prev:"Zurück"},rating:{ariaLabel:{item:"Bewertung {0} von {1}"}},loading:"Laden...",infiniteScroll:{loadMore:"Mehr laden",empty:"Nichts weiteres"}},GN={badge:"Badge",open:"Open",close:"Close",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},S9={badge:"Placa",open:"Open",close:"Cerrar",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"Ningún elemento coincide con la búsqueda",loadingText:"Cargando..."},dataTable:{itemsPerPageText:"Filas por página:",ariaLabel:{sortDescending:"Orden descendente.",sortAscending:"Orden ascendente.",sortNone:"Sin ordenar.",activateNone:"Pulse para quitar orden.",activateDescending:"Pulse para ordenar de forma descendente.",activateAscending:"Pulse para ordenar de forma ascendente."},sortBy:"Ordenado por"},dataFooter:{itemsPerPageText:"Elementos por página:",itemsPerPageAll:"Todos",nextPage:"Página siguiente",prevPage:"Página anterior",firstPage:"Primera página",lastPage:"Última página",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No hay datos disponibles",carousel:{prev:"Visual anterior",next:"Visual siguiente",ariaLabel:{delimiter:"Visual {0} de {1}"}},calendar:{moreEvents:"{0} más",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} archivos",counterSize:"{0} archivos ({1} en total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Navegación de paginación",next:"Página siguiente",previous:"Página anterior",page:"Ir a la página {0}",currentPage:"Página actual, página {0}",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Puntuación {0} de {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},x9={badge:"Badge",open:"Ouvrir",close:"Fermer",confirmEdit:{ok:"OK",cancel:"Annuler"},dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant."},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Éléments par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"à"},datePicker:{itemsSelected:"{0} selected",range:{title:"Sélectionner des dates",header:"Entrer des dates"},title:"Sélectionner une date",header:"Entrer une date",input:{placeholder:"Entrer une date"}},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus",today:"Today"},input:{clear:"Vider {0}",prependAction:"{0} action avant",appendAction:"{0} action après",otp:"Caractère {0} du mot de passe à usage unique"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}",first:"Première page",last:"Dernière page"}},stepper:{next:"Suivant",prev:"Précédent"},rating:{ariaLabel:{item:"Note de {0} sur {1}"}},loading:"Chargement...",infiniteScroll:{loadMore:"Charger plus",empty:"Aucune donnée supplémentaire"}},w9={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1};function Ba(e,t){let n;function r(){n=$c(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Se(e,a=>{a&&!n?r():a||(n==null||n.stop(),n=void 0)},{immediate:!0}),nr(()=>{n==null||n.stop()})}const Mt=typeof window<"u",jw=Mt&&"IntersectionObserver"in window,C9=Mt&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),LP=Mt&&"EyeDropper"in window;function EP(e,t,n){T9(e,t),t.set(e,n)}function T9(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function A9(e,t,n){var r=HN(e,t,"set");return I9(e,r,n),n}function I9(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ks(e,t){var n=HN(e,t,"get");return P9(e,n)}function HN(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function P9(e,t){return t.get?t.get.call(e):t.value}function WN(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let a=0;aio(e[r],t[r]))}function Xl(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),WN(e,t.split("."),n))}function Dn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const a=t(e,n);return typeof a>"u"?n:a}if(typeof t=="string")return Xl(e,t,n);if(Array.isArray(t))return WN(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function ci(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function Ae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function Rp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jd(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const RP=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),KS=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function UN(e){return Object.keys(e)}function ml(e,t){return t.every(n=>e.hasOwnProperty(n))}function YN(e,t){const n={},r=new Set(Object.keys(e));for(const a of t)r.has(a)&&(n[a]=e[a]);return n}function qS(e,t,n){const r=Object.create(null),a=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(n!=null&&n.some(o=>o===i))?r[i]=e[i]:a[i]=e[i];return[r,a]}function Sn(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function XN(e,t){const n={};return t.forEach(r=>n[r]=e[r]),n}const ZN=/^on[^a-z]/,ay=e=>ZN.test(e),D9=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],M9=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function k9(e){return e.isComposing&&M9.includes(e.key)}function Ss(e){const[t,n]=qS(e,[ZN]),r=Sn(t,D9),[a,i]=qS(n,["class","style","id",/^data-/]);return Object.assign(a,t),Object.assign(i,r),[a,i]}function nn(e){return e==null?[]:Array.isArray(e)?e:[e]}function L9(e,t){let n=0;const r=function(){for(var a=arguments.length,i=new Array(a),o=0;oe(...i),Ge(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function vn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function VP(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function OP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function NP(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function E9(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const a in e)r[a]=e[a];for(const a in t){const i=e[a],o=t[a];if(Rp(i)&&Rp(o)){r[a]=ua(i,o,n);continue}if(Array.isArray(i)&&Array.isArray(o)&&n){r[a]=n(i,o);continue}r[a]=o}return r}function jN(e){return e.map(t=>t.type===ke?jN(t.children):t).flat()}function Ll(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ll.cache.has(e))return Ll.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ll.cache.set(e,t),t}Ll.cache=new Map;function _d(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>_d(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>_d(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return _d(e,t.component.subTree).flat(1)}return[]}var Vh=new WeakMap,Tu=new WeakMap;class R9{constructor(t){EP(this,Vh,{writable:!0,value:[]}),EP(this,Tu,{writable:!0,value:0}),this.size=t}push(t){ks(this,Vh)[ks(this,Tu)]=t,A9(this,Tu,(ks(this,Tu)+1)%this.size)}values(){return ks(this,Vh).slice(ks(this,Tu)).concat(ks(this,Vh).slice(0,ks(this,Tu)))}}function V9(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function Kw(e){const t=In({}),n=E(e);return Ln(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),Nv(t)}function Vp(e,t){return e.includes(t)}function KN(e){return e[2].toLowerCase()+e.slice(3)}const Ar=()=>[Function,Array];function zP(e,t){return t="on"+Ii(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function qw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function qN(e,t,n){let r,a=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do a+=i,r=e[a];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&a=0);return r}function Tc(e,t){var r,a,i,o;const n=Kd(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(a=n[0])==null||a.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const s=qN(n,t);s?s.focus():Tc(e,t==="next"?"first":"last")}}function Oh(e){return e==null||typeof e=="string"&&e.trim()===""}function JN(){}function Ac(e,t){if(!(Mt&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function iy(e){return e.some(t=>os(t)?t.type===qn?!1:t.type!==ke||iy(t.children):!0)?e:null}function O9(e,t){if(!Mt||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}const QN=["top","bottom"],N9=["start","end","left","right"];function JS(e,t){let[n,r]=e.split(" ");return r||(r=Vp(QN,n)?"start":Vp(N9,n)?"top":"center"),{side:QS(n,t),align:QS(r,t)}}function QS(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function N0(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function B0(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function FP(e){return{side:e.align,align:e.side}}function $P(e){return Vp(QN,e.side)?"y":"x"}class El{constructor(t){let{x:n,y:r,width:a,height:i}=t;this.x=n,this.y=r,this.width=a,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function GP(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function eB(e){return Array.isArray(e)?new El({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Jw(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let a,i,o,s,l;if(r.startsWith("matrix3d("))a=r.slice(9,-1).split(/, /),i=+a[0],o=+a[5],s=+a[12],l=+a[13];else if(r.startsWith("matrix("))a=r.slice(7,-1).split(/, /),i=+a[0],o=+a[3],s=+a[4],l=+a[5];else return new El(t);const u=n.transformOrigin,c=t.x-s-(1-i)*parseFloat(u),f=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),d=i?t.width/i:e.offsetWidth+1,v=o?t.height/o:e.offsetHeight+1;return new El({x:c,y:f,width:d,height:v})}else return new El(t)}function yl(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(a=>{r.onfinish=()=>{a(r)}})),r}const Xg=new WeakMap;function B9(e,t){Object.keys(t).forEach(n=>{if(ay(n)){const r=KN(n),a=Xg.get(e);if(t[n]==null)a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))});else if(!a||![...a].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=a||new Set;i.add([r,t[n]]),Xg.has(e)||Xg.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function z9(e,t){Object.keys(t).forEach(n=>{if(ay(n)){const r=KN(n),a=Xg.get(e);a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))})}else e.removeAttribute(n)})}const Au=2.4,HP=.2126729,WP=.7151522,UP=.072175,F9=.55,$9=.58,G9=.57,H9=.62,Nh=.03,YP=1.45,W9=5e-4,U9=1.25,Y9=1.25,XP=.078,ZP=12.82051282051282,Bh=.06,jP=.001;function KP(e,t){const n=(e.r/255)**Au,r=(e.g/255)**Au,a=(e.b/255)**Au,i=(t.r/255)**Au,o=(t.g/255)**Au,s=(t.b/255)**Au;let l=n*HP+r*WP+a*UP,u=i*HP+o*WP+s*UP;if(l<=Nh&&(l+=(Nh-l)**YP),u<=Nh&&(u+=(Nh-u)**YP),Math.abs(u-l)l){const f=(u**F9-l**$9)*U9;c=f-jP?0:f>-XP?f-f*ZP*Bh:f+Bh}return c*100}function X9(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Op=.20689655172413793,Z9=e=>e>Op**3?Math.cbrt(e):e/(3*Op**2)+4/29,j9=e=>e>Op?e**3:3*Op**2*(e-4/29);function tB(e){const t=Z9,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function nB(e){const t=j9,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const K9=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],q9=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,J9=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Q9=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function rB(e){const t=Array(3),n=q9,r=K9;for(let a=0;a<3;++a)t[a]=Math.round(vn(n(r[a][0]*e[0]+r[a][1]*e[1]+r[a][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Qw(e){let{r:t,g:n,b:r}=e;const a=[0,0,0],i=Q9,o=J9;t=i(t/255),n=i(n/255),r=i(r/255);for(let s=0;s<3;++s)a[s]=o[s][0]*t+o[s][1]*n+o[s][2]*r;return a}function e1(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function eX(e){return e1(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const qP=/^(?(?:rgb|hsl)a?)\((?.+)\)/,tX={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>JP({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>JP({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Zi({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Zi({h:e,s:t,v:n,a:r})};function ca(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&qP.test(e)){const{groups:t}=e.match(qP),{fn:n,values:r}=t,a=r.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return tX[n](...a)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),lB(t)}else if(typeof e=="object"){if(ml(e,["r","g","b"]))return e;if(ml(e,["h","s","l"]))return Zi(eC(e));if(ml(e,["h","s","v"]))return Zi(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Zi(e){const{h:t,s:n,v:r,a}=e,i=s=>{const l=(s+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(s=>Math.round(s*255));return{r:o[0],g:o[1],b:o[2],a}}function JP(e){return Zi(eC(e))}function oy(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,a=Math.max(t,n,r),i=Math.min(t,n,r);let o=0;a!==i&&(a===t?o=60*(0+(n-r)/(a-i)):a===n?o=60*(2+(r-t)/(a-i)):a===r&&(o=60*(4+(t-n)/(a-i)))),o<0&&(o=o+360);const s=a===0?0:(a-i)/a,l=[o,s,a];return{h:l[0],s:l[1],v:l[2],a:e.a}}function aB(e){const{h:t,s:n,v:r,a}=e,i=r-r*n/2,o=i===1||i===0?0:(r-i)/Math.min(i,1-i);return{h:t,s:o,l:i,a}}function eC(e){const{h:t,s:n,l:r,a}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a}}function iB(e){let{r:t,g:n,b:r,a}=e;return a===void 0?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${a})`}function oB(e){return iB(Zi(e))}function zh(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function sB(e){let{r:t,g:n,b:r,a}=e;return`#${[zh(t),zh(n),zh(r),a!==void 0?zh(Math.round(a*255)):""].join("")}`}function lB(e){e=nX(e);let[t,n,r,a]=E9(e,2).map(i=>parseInt(i,16));return a=a===void 0?a:a/255,{r:t,g:n,b:r,a}}function uB(e){const t=lB(e);return oy(t)}function cB(e){return sB(Zi(e))}function nX(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=OP(OP(e,6),8,"F")),e}function rX(e,t){const n=tB(Qw(e));return n[0]=n[0]+t*10,rB(nB(n))}function aX(e,t){const n=tB(Qw(e));return n[0]=n[0]-t*10,rB(nB(n))}function t1(e){const t=ca(e);return Qw(t)[1]}function iX(e,t){const n=t1(e),r=t1(t),a=Math.max(n,r),i=Math.min(n,r);return(a+.05)/(i+.05)}function fB(e){const t=Math.abs(KP(ca(0),ca(e)));return Math.abs(KP(ca(16777215),ca(e)))>Math.min(t,50)?"#fff":"#000"}function Q(e,t){return n=>Object.keys(e).reduce((r,a)=>{const o=typeof e[a]=="object"&&e[a]!=null&&!Array.isArray(e[a])?e[a]:{type:e[a]};return n&&a in n?r[a]={...o,default:n[a]}:r[a]=o,t&&!r[a].source&&(r[a].source=t),r},{})}const Ie=Q({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),Ic=Symbol.for("vuetify:defaults");function oX(e){return pe(e)}function tC(){const e=nt(Ic);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Gt(e,t){const n=tC(),r=pe(e),a=E(()=>{if(Ge(t==null?void 0:t.disabled))return n.value;const o=Ge(t==null?void 0:t.scoped),s=Ge(t==null?void 0:t.reset),l=Ge(t==null?void 0:t.root);if(r.value==null&&!(o||s||l))return n.value;let u=ua(r.value,{prev:n.value});if(o)return u;if(s||l){const c=Number(s||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=ua(ua(u,{prev:u}),u[l])),u}return u.prev?ua(u.prev,u):u});return Tt(Ic,a),a}function sX(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[Ll(t)])<"u"}function lX(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tC();const r=un("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const a=E(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),i=new Proxy(e,{get(l,u){var f,d,v,h;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(f=a.value)==null?void 0:f[u],c].filter(g=>g!=null):typeof u=="string"&&!sX(r.vnode,u)?((d=a.value)==null?void 0:d[u])??((h=(v=n.value)==null?void 0:v.global)==null?void 0:h[u])??c:c}}),o=xe();Ln(()=>{if(a.value){const l=Object.entries(a.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function s(){const l=vX(Ic,r);Tt(Ic,E(()=>o.value?ua((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:s}}function Hr(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=Q(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return YN(r,t)},e.props._as=String,e.setup=function(r,a){const i=tC();if(!i.value)return e._setup(r,a);const{props:o,provideSubDefaults:s}=lX(r,r._as??e.name,i),l=e._setup(o,a);return s(),l}}return e}function le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Hr:ys)(t)}function uX(e,t){return t.props=e,t}function Wr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return le()({name:n??Ii(Kn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Ie()},setup(r,a){let{slots:i}=a;return()=>{var o;return Sa(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function dB(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const qd="cubic-bezier(0.4, 0, 0.2, 1)",cX="cubic-bezier(0.0, 0, 0.2, 1)",fX="cubic-bezier(0.4, 0, 1, 1)";function QP(e,t,n){return Object.keys(e).filter(r=>ay(r)&&r.endsWith(t)).reduce((r,a)=>(r[a.slice(0,-t.length)]=i=>e[a](i,n(i)),r),{})}function un(e,t){const n=ba();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function Pi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=un(e).type;return Ll((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let vB=0,Zg=new WeakMap;function rr(){const e=un("getUid");if(Zg.has(e))return Zg.get(e);{const t=vB++;return Zg.set(e,t),t}}rr.reset=()=>{vB=0,Zg=new WeakMap};function nC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?dX(e):rC(e))return e;e=e.parentElement}return document.scrollingElement}function Np(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(rC(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function rC(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function dX(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function vX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}function hX(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function de(e){const t=un("useRender");t.render=e}function ze(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const i=un("useProxiedModel"),o=pe(e[t]!==void 0?e[t]:n),s=Ll(t),u=E(s!==t?()=>{var f,d,v,h;return e[t],!!(((f=i.vnode.props)!=null&&f.hasOwnProperty(t)||(d=i.vnode.props)!=null&&d.hasOwnProperty(s))&&((v=i.vnode.props)!=null&&v.hasOwnProperty(`onUpdate:${t}`)||(h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${s}`)))}:()=>{var f,d;return e[t],!!((f=i.vnode.props)!=null&&f.hasOwnProperty(t)&&((d=i.vnode.props)!=null&&d.hasOwnProperty(`onUpdate:${t}`)))});Ba(()=>!u.value,()=>{Se(()=>e[t],f=>{o.value=f})});const c=E({get(){const f=e[t];return r(u.value?f:o.value)},set(f){const d=a(f),v=rt(u.value?e[t]:o.value);v===d||r(v)===f||(o.value=d,i==null||i.emit(`update:${t}`,d))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const eD="$vuetify.",tD=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),hB=(e,t,n)=>function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function z0(e,t,n){const r=ze(e,t,e[t]??n.value);return r.value=e[t]??n.value,Se(n,a=>{e[t]==null&&(r.value=n.value)}),r}function pB(e){return t=>{const n=z0(t,"locale",e.current),r=z0(t,"fallback",e.fallback),a=z0(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:a,t:hB(n,r,a),n:gB(n,r),provide:pB({current:n,fallback:r,messages:a})}}}function gX(e){const t=xe((e==null?void 0:e.locale)??"en"),n=xe((e==null?void 0:e.fallback)??"en"),r=pe({en:GN,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:hB(t,n,r),n:gB(t,n),provide:pB({current:t,fallback:n,messages:r})}}const Pc=Symbol.for("vuetify:locale");function pX(e){return e.name!=null}function mX(e){const t=e!=null&&e.adapter&&pX(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:gX(e),n=_X(t,e);return{...t,...n}}function cn(){const e=nt(Pc);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function yX(e){const t=nt(Pc);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),r=bX(n,t.rtl,e),a={...n,...r};return Tt(Pc,a),a}function _X(e,t){const n=pe((t==null?void 0:t.rtl)??w9),r=E(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:E(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function bX(e,t,n){const r=E(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:r,rtl:t,rtlClasses:E(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Rn(){const e=nt(Pc);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const n1={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function SX(e,t){const n=[];let r=[];const a=mB(e),i=yB(e),o=(a.getDay()-n1[t.slice(-2).toUpperCase()]+7)%7,s=(i.getDay()-n1[t.slice(-2).toUpperCase()]+7)%7;for(let l=0;l0&&n.push(r),n}function xX(e){const t=new Date(e);for(;t.getDay()!==0;)t.setDate(t.getDate()-1);return t}function wX(e){const t=new Date(e);for(;t.getDay()!==6;)t.setDate(t.getDate()+1);return t}function mB(e){return new Date(e.getFullYear(),e.getMonth(),1)}function yB(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function CX(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const TX=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function _B(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(TX.test(e))return CX(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const nD=new Date(2e3,0,2);function AX(e){const t=n1[e.slice(-2).toUpperCase()];return ci(7).map(n=>{const r=new Date(nD);r.setDate(nD.getDate()+t+n);const a=new Intl.DateTimeFormat(e,{weekday:"short"}).format(r);return a.charAt(0).toUpperCase()+a.slice(1)})}function IX(e,t,n,r){const a=_B(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(a,t,n);let o={};switch(t){case"fullDateWithWeekday":o={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"hours12h":o={hour:"numeric",hour12:!0};break;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":o={day:"2-digit",month:"2-digit",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"dayOfMonth":o={day:"numeric"};break;case"shortDate":o={year:"2-digit",month:"numeric",day:"numeric"};break;case"weekdayShort":o={weekday:"short"};break;case"year":o={year:"numeric"};break;default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(a)}function PX(e,t){const n=e.toJsDate(t),r=n.getFullYear(),a=NP(String(n.getMonth()+1),2,"0"),i=NP(String(n.getDate()),2,"0");return`${r}-${a}-${i}`}function DX(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function MX(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function kX(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function LX(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function EX(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function RX(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function VX(e){return e.getFullYear()}function OX(e){return e.getMonth()}function NX(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function BX(e){return e.getHours()}function zX(e){return e.getMinutes()}function FX(e){return new Date(e.getFullYear(),0,1)}function $X(e){return new Date(e.getFullYear(),11,31)}function GX(e,t){return r1(e,t[0])&&WX(e,t[1])}function HX(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function r1(e,t){return e.getTime()>t.getTime()}function WX(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function Hv(){const e=nt(bB);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=cn();return SB(e,t)}function nZ(e,t){const n=e.toJsDate(t);let r=e.getYear(n),a=e.startOfYear(n);if(n=s&&(r=r+1,a=s)}const i=Math.abs(n.getTime()-a.getTime()),o=Math.ceil(i/(1e3*60*60*24));return Math.floor(o/7)+1}const sy=["sm","md","lg","xl","xxl"],a1=Symbol.for("vuetify:display"),iD={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},rZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iD;return ua(iD,e)};function oD(e){return Mt&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function sD(e){return Mt&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function lD(e){const t=Mt&&!e?window.navigator.userAgent:"ssr";function n(h){return!!t.match(h)}const r=n(/android/i),a=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),s=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),f=n(/win/i),d=n(/mac/i),v=n(/linux/i);return{android:r,ios:a,cordova:i,electron:o,chrome:s,edge:l,firefox:u,opera:c,win:f,mac:d,linux:v,touch:C9,ssr:t==="ssr"}}function aZ(e,t){const{thresholds:n,mobileBreakpoint:r}=rZ(e),a=xe(sD(t)),i=xe(lD(t)),o=In({}),s=xe(oD(t));function l(){a.value=sD(),s.value=oD()}function u(){l(),i.value=lD()}return Ln(()=>{const c=s.value=n.xxl,p=c?"xs":f?"sm":d?"md":v?"lg":h?"xl":"xxl",m=typeof r=="number"?r:n[r],y=s.value0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();const n=nt(a1);if(!n)throw new Error("Could not find Vuetify display injection");const r=E(()=>{if(!e.mobileBreakpoint)return n.mobile.value;const i=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:a,mobile:r}}const iZ={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",eyeDropper:"mdi-eyedropper"},oZ={component:e=>Sa(oC,{...e,class:"mdi"})},Je=[String,Function,Object,Array],i1=Symbol.for("vuetify:icons"),ly=Q({icon:{type:Je},tag:{type:String,required:!0}},"icon"),o1=le()({name:"VComponentIcon",props:ly(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return I(e.tag,null,{default:()=>{var a;return[e.icon?I(r,null,null):(a=n.default)==null?void 0:a.call(n)]}})}}}),iC=Hr({name:"VSvgIcon",inheritAttrs:!1,props:ly(),setup(e,t){let{attrs:n}=t;return()=>I(e.tag,ge(n,{style:null}),{default:()=>[I("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?I("path",{d:r[0],"fill-opacity":r[1]},null):I("path",{d:r},null)):I("path",{d:e.icon},null)])]})}}),sZ=Hr({name:"VLigatureIcon",props:ly(),setup(e){return()=>I(e.tag,null,{default:()=>[e.icon]})}}),oC=Hr({name:"VClassIcon",props:ly(),setup(e){return()=>I(e.tag,{class:e.icon},null)}}),lZ={svg:{component:iC},class:{component:oC}};function uZ(e){return ua({defaultSet:"mdi",sets:{...lZ,mdi:oZ},aliases:{...iZ,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},e)}const cZ=e=>{const t=nt(i1);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:E(()=>{var l;const r=Ge(e);if(!r)return{component:o1};let a=r;if(typeof a=="string"&&(a=a.trim(),a.startsWith("$")&&(a=(l=t.aliases)==null?void 0:l[a.slice(1)])),!a)throw new Error(`Could not find aliased icon "${r}"`);if(Array.isArray(a))return{component:iC,icon:a};if(typeof a!="string")return{component:o1,icon:a};const i=Object.keys(t.sets).find(u=>typeof a=="string"&&a.startsWith(`${u}:`)),o=i?a.slice(i.length+1):a;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},Jd=Symbol.for("vuetify:theme"),vt=Q({theme:String},"theme");function uD(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function fZ(){var r,a;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uD();const t=uD();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const s=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(a=t.themes)==null?void 0:a.light;n[i]=ua(s,o)}return ua(t,{...e,themes:n})}function dZ(e){const t=fZ(e),n=pe(t.defaultTheme),r=pe(t.themes),a=E(()=>{const c={};for(const[f,d]of Object.entries(r.value)){const v=c[f]={...d,colors:{...d.colors}};if(t.variations)for(const h of t.variations.colors){const g=v.colors[h];if(g)for(const p of["lighten","darken"]){const m=p==="lighten"?rX:aX;for(const y of ci(t.variations[p],1))v.colors[`${h}-${p}-${y}`]=sB(m(ca(g),y))}}for(const h of Object.keys(v.colors)){if(/^on-[a-z]/.test(h)||v.colors[`on-${h}`])continue;const g=`on-${h}`,p=ca(v.colors[h]);v.colors[g]=fB(p)}}return c}),i=E(()=>a.value[n.value]),o=E(()=>{const c=[];i.value.dark&&Ls(c,":root",["color-scheme: dark"]),Ls(c,":root",cD(i.value));for(const[h,g]of Object.entries(a.value))Ls(c,`.v-theme--${h}`,[`color-scheme: ${g.dark?"dark":"normal"}`,...cD(g)]);const f=[],d=[],v=new Set(Object.values(a.value).flatMap(h=>Object.keys(h.colors)));for(const h of v)/^on-[a-z]/.test(h)?Ls(d,`.${h}`,[`color: rgb(var(--v-theme-${h})) !important`]):(Ls(f,`.bg-${h}`,[`--v-theme-overlay-multiplier: var(--v-theme-${h}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${h})) !important`,`color: rgb(var(--v-theme-on-${h})) !important`]),Ls(d,`.text-${h}`,[`color: rgb(var(--v-theme-${h})) !important`]),Ls(d,`.border-${h}`,[`--v-border-color: var(--v-theme-${h})`]));return c.push(...f,...d),c.map((h,g)=>g===0?h:` ${h}`).join("")});function s(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const f=c._context.provides.usehead;if(f)if(f.push){const d=f.push(s);Mt&&Se(o,()=>{d.patch(s)})}else Mt?(f.addHeadObjs(E(s)),Ln(()=>f.updateDOM())):f.addHeadObjs(s());else{let v=function(){if(typeof document<"u"&&!d){const h=document.createElement("style");h.type="text/css",h.id="vuetify-theme-stylesheet",t.cspNonce&&h.setAttribute("nonce",t.cspNonce),d=h,document.head.appendChild(d)}d&&(d.innerHTML=o.value)},d=Mt?document.getElementById("vuetify-theme-stylesheet"):null;Mt?Se(o,v,{immediate:!0}):v()}}const u=E(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:r,current:i,computedThemes:a,themeClasses:u,styles:o,global:{name:n,current:i}}}function St(e){un("provideTheme");const t=nt(Jd,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=E(()=>e.theme??t.name.value),r=E(()=>t.themes.value[n.value]),a=E(()=>t.isDisabled?void 0:`v-theme--${n.value}`),i={...t,name:n,current:r,themeClasses:a};return Tt(Jd,i),i}function uy(){un("useTheme");const e=nt(Jd,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function Ls(e,t,n){e.push(`${t} { + */const Z7="9.9.0";function j7(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hw().__INTLIFY_PROD_DEVTOOLS__=!1)}const VN=k7.__EXTEND_POINT__,bo=Ww(VN);bo(),bo(),bo(),bo(),bo(),bo(),bo(),bo();const ON=ui.__EXTEND_POINT__,pr=Ww(ON),pa={UNEXPECTED_RETURN_TYPE:ON,INVALID_ARGUMENT:pr(),MUST_BE_CALL_SETUP_TOP:pr(),NOT_INSTALLED:pr(),NOT_AVAILABLE_IN_LEGACY_MODE:pr(),REQUIRED_VALUE:pr(),INVALID_VALUE:pr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pr(),NOT_INSTALLED_WITH_PROVIDE:pr(),UNEXPECTED_ERROR:pr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pr(),BRIDGE_SUPPORT_VUE_2_ONLY:pr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pr(),__EXTEND_POINT__:pr()};function Ha(e,...t){return CN(e,null,void 0)}const US=_s("__translateVNode"),YS=_s("__datetimeParts"),XS=_s("__numberParts"),K7=_s("__setPluralRules"),q7=_s("__injectWithOption"),ZS=_s("__dispose");function Zd(e){if(!wt(e))return e;for(const t in e)if(Lp(e,t))if(!t.includes("."))wt(e[t])&&Zd(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,i=!1;for(let o=0;o{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Yg(u,o[l])):Yg(u,o)}else Fe(s)&&Yg(JSON.parse(s),o)}),a==null&&i)for(const s in o)Lp(o,s)&&Zd(o[s]);return o}function BN(e){return e.type}function J7(e,t,n){let r=wt(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=NN(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(wt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(wt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function SP(e){return I(is,null,e,0)}const xP="__INTLIFY_META__",wP=()=>[],Q7=()=>!1;let CP=0;function TP(e){return(t,n,r,a)=>e(n,r,ba()||void 0,a)}const e9=()=>{const e=ba();let t=null;return e&&(t=BN(e)[xP])?{[xP]:t}:null};function zN(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,i=e.flatJson,o=Mp?pe:xe;let s=tn(e.inheritLocale)?e.inheritLocale:!0;const l=o(n&&s?n.locale.value:Fe(e.locale)?e.locale:Ep),u=o(n&&s?n.fallbackLocale.value:Fe(e.fallbackLocale)||_n(e.fallbackLocale)||pt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=o(NN(l.value,e)),f=o(pt(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),d=o(pt(e.numberFormats)?e.numberFormats:{[l.value]:{}});let v=n?n.missingWarn:tn(e.missingWarn)||kp(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:tn(e.fallbackWarn)||kp(e.fallbackWarn)?e.fallbackWarn:!0,g=n?n.fallbackRoot:tn(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,m=Qt(e.missing)?e.missing:null,y=Qt(e.missing)?TP(e.missing):null,_=Qt(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:tn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const S=n?n.modifiers:pt(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,C;C=(()=>{a&&vP(null);const ne={version:Z7,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:S,pluralRules:w,missing:y===null?void 0:y,missingWarn:v,fallbackWarn:h,fallbackFormat:p,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:b,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ne.datetimeFormats=f.value,ne.numberFormats=d.value,ne.__datetimeFormatters=pt(C)?C.__datetimeFormatters:void 0,ne.__numberFormatters=pt(C)?C.__numberFormatters:void 0;const ce=H7(ne);return a&&vP(ce),ce})(),_f(C,l.value,u.value);function A(){return[l.value,u.value,c.value,f.value,d.value]}const P=E({get:()=>l.value,set:ne=>{l.value=ne,C.locale=l.value}}),D=E({get:()=>u.value,set:ne=>{u.value=ne,C.fallbackLocale=u.value,_f(C,l.value,ne)}}),M=E(()=>c.value),L=E(()=>f.value),R=E(()=>d.value);function O(){return Qt(_)?_:null}function H(ne){_=ne,C.postTranslation=ne}function V(){return m}function G(ne){ne!==null&&(y=TP(ne)),m=ne,C.missing=y}const X=(ne,ce,Oe,Ze,_t,jt)=>{A();let Tn;try{__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=n?G7():void 0),Tn=ne(C)}finally{__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=void 0)}if(Oe!=="translate exists"&&Pn(Tn)&&Tn===ry||Oe==="translate exists"&&!Tn){const[go,S0]=ce();return n&&g?Ze(n):_t(go)}else{if(jt(Tn))return Tn;throw Ha(pa.UNEXPECTED_RETURN_TYPE)}};function Z(...ne){return X(ce=>Reflect.apply(pP,null,[ce,...ne]),()=>GS(...ne),"translate",ce=>Reflect.apply(ce.t,ce,[...ne]),ce=>ce,ce=>Fe(ce))}function q(...ne){const[ce,Oe,Ze]=ne;if(Ze&&!wt(Ze))throw Ha(pa.INVALID_ARGUMENT);return Z(ce,Oe,Jn({resolvedMessage:!0},Ze||{}))}function Q(...ne){return X(ce=>Reflect.apply(mP,null,[ce,...ne]),()=>HS(...ne),"datetime format",ce=>Reflect.apply(ce.d,ce,[...ne]),()=>fP,ce=>Fe(ce))}function ae(...ne){return X(ce=>Reflect.apply(_P,null,[ce,...ne]),()=>WS(...ne),"number format",ce=>Reflect.apply(ce.n,ce,[...ne]),()=>fP,ce=>Fe(ce))}function W(ne){return ne.map(ce=>Fe(ce)||Pn(ce)||tn(ce)?SP(String(ce)):ce)}const z={normalize:W,interpolate:ne=>ne,type:"vnode"};function $(...ne){return X(ce=>{let Oe;const Ze=ce;try{Ze.processor=z,Oe=Reflect.apply(pP,null,[Ze,...ne])}finally{Ze.processor=null}return Oe},()=>GS(...ne),"translate",ce=>ce[US](...ne),ce=>[SP(ce)],ce=>_n(ce))}function U(...ne){return X(ce=>Reflect.apply(_P,null,[ce,...ne]),()=>WS(...ne),"number format",ce=>ce[XS](...ne),wP,ce=>Fe(ce)||_n(ce))}function Y(...ne){return X(ce=>Reflect.apply(mP,null,[ce,...ne]),()=>HS(...ne),"datetime format",ce=>ce[YS](...ne),wP,ce=>Fe(ce)||_n(ce))}function j(ne){w=ne,C.pluralRules=w}function te(ne,ce){return X(()=>{if(!ne)return!1;const Oe=Fe(ce)?ce:l.value,Ze=K(Oe),_t=C.messageResolver(Ze,ne);return Cc(_t)||ra(_t)||Fe(_t)},()=>[ne],"translate exists",Oe=>Reflect.apply(Oe.te,Oe,[ne,ce]),Q7,Oe=>tn(Oe))}function N(ne){let ce=null;const Oe=AN(C,u.value,l.value);for(let Ze=0;Ze{s&&(l.value=ne,C.locale=ne,_f(C,l.value,u.value))}),Se(n.fallbackLocale,ne=>{s&&(u.value=ne,C.fallbackLocale=ne,_f(C,l.value,u.value))}));const Me={id:CP,locale:P,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(ne){s=ne,ne&&n&&(l.value=n.locale.value,u.value=n.fallbackLocale.value,_f(C,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:M,get modifiers(){return S},get pluralRules(){return w||{}},get isGlobal(){return a},get missingWarn(){return v},set missingWarn(ne){v=ne,C.missingWarn=v},get fallbackWarn(){return h},set fallbackWarn(ne){h=ne,C.fallbackWarn=h},get fallbackRoot(){return g},set fallbackRoot(ne){g=ne},get fallbackFormat(){return p},set fallbackFormat(ne){p=ne,C.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(ne){b=ne,C.warnHtmlMessage=ne},get escapeParameter(){return x},set escapeParameter(ne){x=ne,C.escapeParameter=ne},t:Z,getLocaleMessage:K,setLocaleMessage:re,mergeLocaleMessage:ie,getPostTranslationHandler:O,setPostTranslationHandler:H,getMissingHandler:V,setMissingHandler:G,[K7]:j};return Me.datetimeFormats=L,Me.numberFormats=R,Me.rt=q,Me.te=te,Me.tm=B,Me.d=Q,Me.n=ae,Me.getDateTimeFormat=de,Me.setDateTimeFormat=_e,Me.mergeDateTimeFormat=me,Me.getNumberFormat=ye,Me.setNumberFormat=he,Me.mergeNumberFormat=Ie,Me[q7]=r,Me[US]=$,Me[YS]=Y,Me[XS]=U,Me}const Xw={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function t9({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===ke?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function FN(e){return ke}const n9=ys({name:"i18n-t",props:Jn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Pn(e)||!isNaN(e)}},Xw),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Gv({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Fe(e.plural)?+e.plural:e.plural);const s=t9(t,i),l=a[US](e.keypath,s,o),u=Jn({},r),c=Fe(e.tag)||wt(e.tag)?e.tag:FN();return Sa(c,u,l)}}}),AP=n9;function r9(e){return _n(e)&&!Fe(e[0])}function $N(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),Fe(e.format)?o.key=e.format:wt(e.format)&&(Fe(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((d,v)=>n.includes(v)?Jn({},d,{[v]:e.format[v]}):d,{}));const l=r(e.value,o,s);let u=[o.key];_n(l)?u=l.map((d,v)=>{const h=a[d.type],g=h?h({[d.type]:d.value,index:v,parts:l}):[d.value];return r9(g)&&(g[0].key=`${d.type}-${v}`),g}):Fe(l)&&(u=[l]);const c=Jn({},i),f=Fe(e.tag)||wt(e.tag)?e.tag:FN();return Sa(f,c,u)}}const a9=ys({name:"i18n-n",props:Jn({value:{type:Number,required:!0},format:{type:[String,Object]}},Xw),setup(e,t){const n=e.i18n||Gv({useScope:"parent",__useComponent:!0});return $N(e,t,RN,(...r)=>n[XS](...r))}}),IP=a9,i9=ys({name:"i18n-d",props:Jn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xw),setup(e,t){const n=e.i18n||Gv({useScope:"parent",__useComponent:!0});return $N(e,t,EN,(...r)=>n[YS](...r))}}),PP=i9;function o9(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function s9(e){const t=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw Ha(pa.UNEXPECTED_ERROR);const c=o9(e,s.$),f=DP(u);return[Reflect.apply(c.t,c,[...MP(f)]),c]};return{created:(o,s)=>{const[l,u]=t(s);Mp&&e.global===u&&(o.__i18nWatcher=Se(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Mp&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=DP(s);o.textContent=Reflect.apply(l.t,l,[...MP(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function DP(e){if(Fe(e))return{path:e};if(pt(e)){if(!("path"in e))throw Ha(pa.REQUIRED_VALUE,"path");return e}else throw Ha(pa.INVALID_VALUE)}function MP(e){const{path:t,locale:n,args:r,choice:a,plural:i}=e,o={},s=r||{};return Fe(n)&&(o.locale=n),Pn(a)&&(o.plural=a),Pn(i)&&(o.plural=i),[t,s,o]}function l9(e,t,...n){const r=pt(n[0])?n[0]:{},a=!!r.useI18nComponentName;(tn(r.globalInstall)?r.globalInstall:!0)&&([a?"i18n":AP.name,"I18nT"].forEach(o=>e.component(o,AP)),[IP.name,"I18nN"].forEach(o=>e.component(o,IP)),[PP.name,"I18nD"].forEach(o=>e.component(o,PP))),e.directive("t",s9(t))}const u9=_s("global-vue-i18n");function c9(e={},t){const n=tn(e.globalInjection)?e.globalInjection:!0,r=!0,a=new Map,[i,o]=f9(e),s=_s("");function l(f){return a.get(f)||null}function u(f,d){a.set(f,d)}function c(f){a.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return r},async install(d,...v){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,f),pt(v[0])){const p=v[0];f.__composerExtend=p.__composerExtend,f.__vueI18nExtend=p.__vueI18nExtend}let h=null;n&&(h=_9(d,f.global)),l9(d,f,...v);const g=d.unmount;d.unmount=()=>{h&&h(),f.dispose(),g()}},get global(){return o},dispose(){i.stop()},__instances:a,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}}function Gv(e={}){const t=ba();if(t==null)throw Ha(pa.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ha(pa.NOT_INSTALLED);const n=d9(t),r=h9(n),a=BN(t),i=v9(e,a);if(i==="global")return J7(r,e,a),r;if(i==="parent"){let l=g9(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(t);if(s==null){const l=Jn({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=zN(l),o.__composerExtend&&(s[ZS]=o.__composerExtend(s)),m9(o,t,s),o.__setInstance(t,s)}return s}function f9(e,t,n){const r=$c();{const a=r.run(()=>zN(e));if(a==null)throw Ha(pa.UNEXPECTED_ERROR);return[r,a]}}function d9(e){{const t=nt(e.isCE?u9:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ha(e.isCE?pa.NOT_INSTALLED_WITH_PROVIDE:pa.UNEXPECTED_ERROR);return t}}function v9(e,t){return ny(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function h9(e){return e.mode==="composition"?e.global:e.global.__composer}function g9(e,t,n=!1){let r=null;const a=t.root;let i=p9(t,n);for(;i!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(i)),r!=null||a===i)break;i=i.parent}return r}function p9(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function m9(e,t,n){ln(()=>{},t),Fv(()=>{const r=n;e.__deleteInstance(t);const a=r[ZS];a&&(a(),delete r[ZS])},t)}const y9=["locale","fallbackLocale","availableLocales"],kP=["t","rt","d","n","tm","te"];function _9(e,t){const n=Object.create(null);return y9.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw Ha(pa.UNEXPECTED_ERROR);const o=Ft(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,kP.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw Ha(pa.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,kP.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}j7();B7(y7);z7(AN);if(__INTLIFY_PROD_DEVTOOLS__){const e=Hw();e.__INTLIFY__=!0,I7(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const b9={badge:"Abzeichen",open:"Öffnen",close:"Schließen",confirmEdit:{ok:"OK",cancel:"Abbrechen"},dataIterator:{noResultsText:"Keine Elemente gefunden",loadingText:"Lade Elemente..."},dataTable:{itemsPerPageText:"Zeilen pro Seite:",ariaLabel:{sortDescending:"Absteigend sortiert.",sortAscending:"Aufsteigend sortiert.",sortNone:"Nicht sortiert.",activateNone:"Aktivieren um Sortierung zu entfernen.",activateDescending:"Aktivieren um absteigend zu sortieren.",activateAscending:"Aktivieren um aufsteigend zu sortieren."},sortBy:"Sortiere nach"},dataFooter:{itemsPerPageText:"Elemente pro Seite:",itemsPerPageAll:"Alle",nextPage:"Nächste Seite",prevPage:"Vorherige Seite",firstPage:"Erste Seite",lastPage:"Letzte Seite",pageText:"{0}-{1} von {2}"},dateRangeInput:{divider:"bis"},datePicker:{itemsSelected:"{0} selected",range:{title:"Daten auswählen",header:"Daten eingeben"},title:"Datum auswählen",header:"Datum eingeben",input:{placeholder:"Datum eingeben"}},noDataText:"Keine Daten vorhanden",carousel:{prev:"Vorheriges Bild",next:"Nächstes Bild",ariaLabel:{delimiter:"Element {0} von {1}"}},calendar:{moreEvents:"{0} mehr",today:"Today"},input:{clear:"{0} leeren",prependAction:"{0} vorangestellte Aktion",appendAction:"{0} angehängte Aktion",otp:"Bitte OTP-Zeichen {0} eingeben"},fileInput:{counter:"{0} Dateien",counterSize:"{0} Dateien ({1} gesamt)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Seitennavigation",next:"Nächste Seite",previous:"Vorherige Seite",page:"Gehe zu Seite {0}",currentPage:"Aktuelle Seite, Seite {0}",first:"Erste Seite",last:"Letzte Seite"}},stepper:{next:"Weiter",prev:"Zurück"},rating:{ariaLabel:{item:"Bewertung {0} von {1}"}},loading:"Laden...",infiniteScroll:{loadMore:"Mehr laden",empty:"Nichts weiteres"}},GN={badge:"Badge",open:"Open",close:"Close",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},S9={badge:"Placa",open:"Open",close:"Cerrar",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"Ningún elemento coincide con la búsqueda",loadingText:"Cargando..."},dataTable:{itemsPerPageText:"Filas por página:",ariaLabel:{sortDescending:"Orden descendente.",sortAscending:"Orden ascendente.",sortNone:"Sin ordenar.",activateNone:"Pulse para quitar orden.",activateDescending:"Pulse para ordenar de forma descendente.",activateAscending:"Pulse para ordenar de forma ascendente."},sortBy:"Ordenado por"},dataFooter:{itemsPerPageText:"Elementos por página:",itemsPerPageAll:"Todos",nextPage:"Página siguiente",prevPage:"Página anterior",firstPage:"Primera página",lastPage:"Última página",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No hay datos disponibles",carousel:{prev:"Visual anterior",next:"Visual siguiente",ariaLabel:{delimiter:"Visual {0} de {1}"}},calendar:{moreEvents:"{0} más",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} archivos",counterSize:"{0} archivos ({1} en total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Navegación de paginación",next:"Página siguiente",previous:"Página anterior",page:"Ir a la página {0}",currentPage:"Página actual, página {0}",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Puntuación {0} de {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},x9={badge:"Badge",open:"Ouvrir",close:"Fermer",confirmEdit:{ok:"OK",cancel:"Annuler"},dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant."},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Éléments par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"à"},datePicker:{itemsSelected:"{0} selected",range:{title:"Sélectionner des dates",header:"Entrer des dates"},title:"Sélectionner une date",header:"Entrer une date",input:{placeholder:"Entrer une date"}},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus",today:"Today"},input:{clear:"Vider {0}",prependAction:"{0} action avant",appendAction:"{0} action après",otp:"Caractère {0} du mot de passe à usage unique"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}",first:"Première page",last:"Dernière page"}},stepper:{next:"Suivant",prev:"Précédent"},rating:{ariaLabel:{item:"Note de {0} sur {1}"}},loading:"Chargement...",infiniteScroll:{loadMore:"Charger plus",empty:"Aucune donnée supplémentaire"}},w9={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1};function Ba(e,t){let n;function r(){n=$c(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Se(e,a=>{a&&!n?r():a||(n==null||n.stop(),n=void 0)},{immediate:!0}),nr(()=>{n==null||n.stop()})}const Mt=typeof window<"u",Zw=Mt&&"IntersectionObserver"in window,C9=Mt&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),LP=Mt&&"EyeDropper"in window;function EP(e,t,n){T9(e,t),t.set(e,n)}function T9(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function A9(e,t,n){var r=HN(e,t,"set");return I9(e,r,n),n}function I9(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ks(e,t){var n=HN(e,t,"get");return P9(e,n)}function HN(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function P9(e,t){return t.get?t.get.call(e):t.value}function WN(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let a=0;aio(e[r],t[r]))}function Xl(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),WN(e,t.split("."),n))}function Dn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const a=t(e,n);return typeof a>"u"?n:a}if(typeof t=="string")return Xl(e,t,n);if(Array.isArray(t))return WN(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function ci(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function Ae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function Rp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jd(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const RP=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),jS=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function UN(e){return Object.keys(e)}function ml(e,t){return t.every(n=>e.hasOwnProperty(n))}function YN(e,t){const n={},r=new Set(Object.keys(e));for(const a of t)r.has(a)&&(n[a]=e[a]);return n}function KS(e,t,n){const r=Object.create(null),a=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(n!=null&&n.some(o=>o===i))?r[i]=e[i]:a[i]=e[i];return[r,a]}function Sn(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function XN(e,t){const n={};return t.forEach(r=>n[r]=e[r]),n}const ZN=/^on[^a-z]/,ay=e=>ZN.test(e),D9=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],M9=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function k9(e){return e.isComposing&&M9.includes(e.key)}function Ss(e){const[t,n]=KS(e,[ZN]),r=Sn(t,D9),[a,i]=KS(n,["class","style","id",/^data-/]);return Object.assign(a,t),Object.assign(i,r),[a,i]}function nn(e){return e==null?[]:Array.isArray(e)?e:[e]}function L9(e,t){let n=0;const r=function(){for(var a=arguments.length,i=new Array(a),o=0;oe(...i),Ge(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function vn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function VP(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function OP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function NP(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function E9(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const a in e)r[a]=e[a];for(const a in t){const i=e[a],o=t[a];if(Rp(i)&&Rp(o)){r[a]=ua(i,o,n);continue}if(Array.isArray(i)&&Array.isArray(o)&&n){r[a]=n(i,o);continue}r[a]=o}return r}function jN(e){return e.map(t=>t.type===ke?jN(t.children):t).flat()}function Ll(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ll.cache.has(e))return Ll.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ll.cache.set(e,t),t}Ll.cache=new Map;function _d(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>_d(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>_d(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return _d(e,t.component.subTree).flat(1)}return[]}var Vh=new WeakMap,Tu=new WeakMap;class R9{constructor(t){EP(this,Vh,{writable:!0,value:[]}),EP(this,Tu,{writable:!0,value:0}),this.size=t}push(t){ks(this,Vh)[ks(this,Tu)]=t,A9(this,Tu,(ks(this,Tu)+1)%this.size)}values(){return ks(this,Vh).slice(ks(this,Tu)).concat(ks(this,Vh).slice(0,ks(this,Tu)))}}function V9(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function jw(e){const t=In({}),n=E(e);return Ln(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),Nv(t)}function Vp(e,t){return e.includes(t)}function KN(e){return e[2].toLowerCase()+e.slice(3)}const Ar=()=>[Function,Array];function zP(e,t){return t="on"+Ii(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function Kw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function qN(e,t,n){let r,a=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do a+=i,r=e[a];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&a=0);return r}function Tc(e,t){var r,a,i,o;const n=Kd(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(a=n[0])==null||a.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const s=qN(n,t);s?s.focus():Tc(e,t==="next"?"first":"last")}}function Oh(e){return e==null||typeof e=="string"&&e.trim()===""}function JN(){}function Ac(e,t){if(!(Mt&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function iy(e){return e.some(t=>os(t)?t.type===qn?!1:t.type!==ke||iy(t.children):!0)?e:null}function O9(e,t){if(!Mt||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}const QN=["top","bottom"],N9=["start","end","left","right"];function qS(e,t){let[n,r]=e.split(" ");return r||(r=Vp(QN,n)?"start":Vp(N9,n)?"top":"center"),{side:JS(n,t),align:JS(r,t)}}function JS(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function O0(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function N0(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function FP(e){return{side:e.align,align:e.side}}function $P(e){return Vp(QN,e.side)?"y":"x"}class El{constructor(t){let{x:n,y:r,width:a,height:i}=t;this.x=n,this.y=r,this.width=a,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function GP(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function eB(e){return Array.isArray(e)?new El({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function qw(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let a,i,o,s,l;if(r.startsWith("matrix3d("))a=r.slice(9,-1).split(/, /),i=+a[0],o=+a[5],s=+a[12],l=+a[13];else if(r.startsWith("matrix("))a=r.slice(7,-1).split(/, /),i=+a[0],o=+a[3],s=+a[4],l=+a[5];else return new El(t);const u=n.transformOrigin,c=t.x-s-(1-i)*parseFloat(u),f=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),d=i?t.width/i:e.offsetWidth+1,v=o?t.height/o:e.offsetHeight+1;return new El({x:c,y:f,width:d,height:v})}else return new El(t)}function yl(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(a=>{r.onfinish=()=>{a(r)}})),r}const Xg=new WeakMap;function B9(e,t){Object.keys(t).forEach(n=>{if(ay(n)){const r=KN(n),a=Xg.get(e);if(t[n]==null)a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))});else if(!a||![...a].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=a||new Set;i.add([r,t[n]]),Xg.has(e)||Xg.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function z9(e,t){Object.keys(t).forEach(n=>{if(ay(n)){const r=KN(n),a=Xg.get(e);a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))})}else e.removeAttribute(n)})}const Au=2.4,HP=.2126729,WP=.7151522,UP=.072175,F9=.55,$9=.58,G9=.57,H9=.62,Nh=.03,YP=1.45,W9=5e-4,U9=1.25,Y9=1.25,XP=.078,ZP=12.82051282051282,Bh=.06,jP=.001;function KP(e,t){const n=(e.r/255)**Au,r=(e.g/255)**Au,a=(e.b/255)**Au,i=(t.r/255)**Au,o=(t.g/255)**Au,s=(t.b/255)**Au;let l=n*HP+r*WP+a*UP,u=i*HP+o*WP+s*UP;if(l<=Nh&&(l+=(Nh-l)**YP),u<=Nh&&(u+=(Nh-u)**YP),Math.abs(u-l)l){const f=(u**F9-l**$9)*U9;c=f-jP?0:f>-XP?f-f*ZP*Bh:f+Bh}return c*100}function X9(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Op=.20689655172413793,Z9=e=>e>Op**3?Math.cbrt(e):e/(3*Op**2)+4/29,j9=e=>e>Op?e**3:3*Op**2*(e-4/29);function tB(e){const t=Z9,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function nB(e){const t=j9,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const K9=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],q9=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,J9=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Q9=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function rB(e){const t=Array(3),n=q9,r=K9;for(let a=0;a<3;++a)t[a]=Math.round(vn(n(r[a][0]*e[0]+r[a][1]*e[1]+r[a][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Jw(e){let{r:t,g:n,b:r}=e;const a=[0,0,0],i=Q9,o=J9;t=i(t/255),n=i(n/255),r=i(r/255);for(let s=0;s<3;++s)a[s]=o[s][0]*t+o[s][1]*n+o[s][2]*r;return a}function QS(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function eX(e){return QS(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const qP=/^(?(?:rgb|hsl)a?)\((?.+)\)/,tX={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>JP({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>JP({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Zi({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Zi({h:e,s:t,v:n,a:r})};function ca(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&qP.test(e)){const{groups:t}=e.match(qP),{fn:n,values:r}=t,a=r.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return tX[n](...a)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),lB(t)}else if(typeof e=="object"){if(ml(e,["r","g","b"]))return e;if(ml(e,["h","s","l"]))return Zi(Qw(e));if(ml(e,["h","s","v"]))return Zi(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Zi(e){const{h:t,s:n,v:r,a}=e,i=s=>{const l=(s+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(s=>Math.round(s*255));return{r:o[0],g:o[1],b:o[2],a}}function JP(e){return Zi(Qw(e))}function oy(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,a=Math.max(t,n,r),i=Math.min(t,n,r);let o=0;a!==i&&(a===t?o=60*(0+(n-r)/(a-i)):a===n?o=60*(2+(r-t)/(a-i)):a===r&&(o=60*(4+(t-n)/(a-i)))),o<0&&(o=o+360);const s=a===0?0:(a-i)/a,l=[o,s,a];return{h:l[0],s:l[1],v:l[2],a:e.a}}function aB(e){const{h:t,s:n,v:r,a}=e,i=r-r*n/2,o=i===1||i===0?0:(r-i)/Math.min(i,1-i);return{h:t,s:o,l:i,a}}function Qw(e){const{h:t,s:n,l:r,a}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a}}function iB(e){let{r:t,g:n,b:r,a}=e;return a===void 0?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${a})`}function oB(e){return iB(Zi(e))}function zh(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function sB(e){let{r:t,g:n,b:r,a}=e;return`#${[zh(t),zh(n),zh(r),a!==void 0?zh(Math.round(a*255)):""].join("")}`}function lB(e){e=nX(e);let[t,n,r,a]=E9(e,2).map(i=>parseInt(i,16));return a=a===void 0?a:a/255,{r:t,g:n,b:r,a}}function uB(e){const t=lB(e);return oy(t)}function cB(e){return sB(Zi(e))}function nX(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=OP(OP(e,6),8,"F")),e}function rX(e,t){const n=tB(Jw(e));return n[0]=n[0]+t*10,rB(nB(n))}function aX(e,t){const n=tB(Jw(e));return n[0]=n[0]-t*10,rB(nB(n))}function e1(e){const t=ca(e);return Jw(t)[1]}function iX(e,t){const n=e1(e),r=e1(t),a=Math.max(n,r),i=Math.min(n,r);return(a+.05)/(i+.05)}function fB(e){const t=Math.abs(KP(ca(0),ca(e)));return Math.abs(KP(ca(16777215),ca(e)))>Math.min(t,50)?"#fff":"#000"}function J(e,t){return n=>Object.keys(e).reduce((r,a)=>{const o=typeof e[a]=="object"&&e[a]!=null&&!Array.isArray(e[a])?e[a]:{type:e[a]};return n&&a in n?r[a]={...o,default:n[a]}:r[a]=o,t&&!r[a].source&&(r[a].source=t),r},{})}const Pe=J({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),Ic=Symbol.for("vuetify:defaults");function oX(e){return pe(e)}function eC(){const e=nt(Ic);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Gt(e,t){const n=eC(),r=pe(e),a=E(()=>{if(Ge(t==null?void 0:t.disabled))return n.value;const o=Ge(t==null?void 0:t.scoped),s=Ge(t==null?void 0:t.reset),l=Ge(t==null?void 0:t.root);if(r.value==null&&!(o||s||l))return n.value;let u=ua(r.value,{prev:n.value});if(o)return u;if(s||l){const c=Number(s||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=ua(ua(u,{prev:u}),u[l])),u}return u.prev?ua(u.prev,u):u});return Tt(Ic,a),a}function sX(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[Ll(t)])<"u"}function lX(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eC();const r=un("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const a=E(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),i=new Proxy(e,{get(l,u){var f,d,v,h;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(f=a.value)==null?void 0:f[u],c].filter(g=>g!=null):typeof u=="string"&&!sX(r.vnode,u)?((d=a.value)==null?void 0:d[u])??((h=(v=n.value)==null?void 0:v.global)==null?void 0:h[u])??c:c}}),o=xe();Ln(()=>{if(a.value){const l=Object.entries(a.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function s(){const l=vX(Ic,r);Tt(Ic,E(()=>o.value?ua((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:s}}function Hr(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=J(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return YN(r,t)},e.props._as=String,e.setup=function(r,a){const i=eC();if(!i.value)return e._setup(r,a);const{props:o,provideSubDefaults:s}=lX(r,r._as??e.name,i),l=e._setup(o,a);return s(),l}}return e}function le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Hr:ys)(t)}function uX(e,t){return t.props=e,t}function Wr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return le()({name:n??Ii(Kn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Pe()},setup(r,a){let{slots:i}=a;return()=>{var o;return Sa(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function dB(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const qd="cubic-bezier(0.4, 0, 0.2, 1)",cX="cubic-bezier(0.0, 0, 0.2, 1)",fX="cubic-bezier(0.4, 0, 1, 1)";function QP(e,t,n){return Object.keys(e).filter(r=>ay(r)&&r.endsWith(t)).reduce((r,a)=>(r[a.slice(0,-t.length)]=i=>e[a](i,n(i)),r),{})}function un(e,t){const n=ba();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function Pi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=un(e).type;return Ll((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let vB=0,Zg=new WeakMap;function rr(){const e=un("getUid");if(Zg.has(e))return Zg.get(e);{const t=vB++;return Zg.set(e,t),t}}rr.reset=()=>{vB=0,Zg=new WeakMap};function tC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?dX(e):nC(e))return e;e=e.parentElement}return document.scrollingElement}function Np(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(nC(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function nC(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function dX(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function vX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}function hX(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ve(e){const t=un("useRender");t.render=e}function ze(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const i=un("useProxiedModel"),o=pe(e[t]!==void 0?e[t]:n),s=Ll(t),u=E(s!==t?()=>{var f,d,v,h;return e[t],!!(((f=i.vnode.props)!=null&&f.hasOwnProperty(t)||(d=i.vnode.props)!=null&&d.hasOwnProperty(s))&&((v=i.vnode.props)!=null&&v.hasOwnProperty(`onUpdate:${t}`)||(h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${s}`)))}:()=>{var f,d;return e[t],!!((f=i.vnode.props)!=null&&f.hasOwnProperty(t)&&((d=i.vnode.props)!=null&&d.hasOwnProperty(`onUpdate:${t}`)))});Ba(()=>!u.value,()=>{Se(()=>e[t],f=>{o.value=f})});const c=E({get(){const f=e[t];return r(u.value?f:o.value)},set(f){const d=a(f),v=rt(u.value?e[t]:o.value);v===d||r(v)===f||(o.value=d,i==null||i.emit(`update:${t}`,d))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const eD="$vuetify.",tD=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),hB=(e,t,n)=>function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function B0(e,t,n){const r=ze(e,t,e[t]??n.value);return r.value=e[t]??n.value,Se(n,a=>{e[t]==null&&(r.value=n.value)}),r}function pB(e){return t=>{const n=B0(t,"locale",e.current),r=B0(t,"fallback",e.fallback),a=B0(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:a,t:hB(n,r,a),n:gB(n,r),provide:pB({current:n,fallback:r,messages:a})}}}function gX(e){const t=xe((e==null?void 0:e.locale)??"en"),n=xe((e==null?void 0:e.fallback)??"en"),r=pe({en:GN,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:hB(t,n,r),n:gB(t,n),provide:pB({current:t,fallback:n,messages:r})}}const Pc=Symbol.for("vuetify:locale");function pX(e){return e.name!=null}function mX(e){const t=e!=null&&e.adapter&&pX(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:gX(e),n=_X(t,e);return{...t,...n}}function cn(){const e=nt(Pc);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function yX(e){const t=nt(Pc);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),r=bX(n,t.rtl,e),a={...n,...r};return Tt(Pc,a),a}function _X(e,t){const n=pe((t==null?void 0:t.rtl)??w9),r=E(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:E(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function bX(e,t,n){const r=E(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:r,rtl:t,rtlClasses:E(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Rn(){const e=nt(Pc);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const t1={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function SX(e,t){const n=[];let r=[];const a=mB(e),i=yB(e),o=(a.getDay()-t1[t.slice(-2).toUpperCase()]+7)%7,s=(i.getDay()-t1[t.slice(-2).toUpperCase()]+7)%7;for(let l=0;l0&&n.push(r),n}function xX(e){const t=new Date(e);for(;t.getDay()!==0;)t.setDate(t.getDate()-1);return t}function wX(e){const t=new Date(e);for(;t.getDay()!==6;)t.setDate(t.getDate()+1);return t}function mB(e){return new Date(e.getFullYear(),e.getMonth(),1)}function yB(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function CX(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const TX=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function _B(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(TX.test(e))return CX(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const nD=new Date(2e3,0,2);function AX(e){const t=t1[e.slice(-2).toUpperCase()];return ci(7).map(n=>{const r=new Date(nD);r.setDate(nD.getDate()+t+n);const a=new Intl.DateTimeFormat(e,{weekday:"short"}).format(r);return a.charAt(0).toUpperCase()+a.slice(1)})}function IX(e,t,n,r){const a=_B(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(a,t,n);let o={};switch(t){case"fullDateWithWeekday":o={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"hours12h":o={hour:"numeric",hour12:!0};break;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":o={day:"2-digit",month:"2-digit",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"dayOfMonth":o={day:"numeric"};break;case"shortDate":o={year:"2-digit",month:"numeric",day:"numeric"};break;case"weekdayShort":o={weekday:"short"};break;case"year":o={year:"numeric"};break;default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(a)}function PX(e,t){const n=e.toJsDate(t),r=n.getFullYear(),a=NP(String(n.getMonth()+1),2,"0"),i=NP(String(n.getDate()),2,"0");return`${r}-${a}-${i}`}function DX(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function MX(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function kX(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function LX(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function EX(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function RX(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function VX(e){return e.getFullYear()}function OX(e){return e.getMonth()}function NX(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function BX(e){return e.getHours()}function zX(e){return e.getMinutes()}function FX(e){return new Date(e.getFullYear(),0,1)}function $X(e){return new Date(e.getFullYear(),11,31)}function GX(e,t){return n1(e,t[0])&&WX(e,t[1])}function HX(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function n1(e,t){return e.getTime()>t.getTime()}function WX(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function Hv(){const e=nt(bB);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=cn();return SB(e,t)}function nZ(e,t){const n=e.toJsDate(t);let r=e.getYear(n),a=e.startOfYear(n);if(n=s&&(r=r+1,a=s)}const i=Math.abs(n.getTime()-a.getTime()),o=Math.ceil(i/(1e3*60*60*24));return Math.floor(o/7)+1}const sy=["sm","md","lg","xl","xxl"],r1=Symbol.for("vuetify:display"),iD={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},rZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iD;return ua(iD,e)};function oD(e){return Mt&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function sD(e){return Mt&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function lD(e){const t=Mt&&!e?window.navigator.userAgent:"ssr";function n(h){return!!t.match(h)}const r=n(/android/i),a=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),s=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),f=n(/win/i),d=n(/mac/i),v=n(/linux/i);return{android:r,ios:a,cordova:i,electron:o,chrome:s,edge:l,firefox:u,opera:c,win:f,mac:d,linux:v,touch:C9,ssr:t==="ssr"}}function aZ(e,t){const{thresholds:n,mobileBreakpoint:r}=rZ(e),a=xe(sD(t)),i=xe(lD(t)),o=In({}),s=xe(oD(t));function l(){a.value=sD(),s.value=oD()}function u(){l(),i.value=lD()}return Ln(()=>{const c=s.value=n.xxl,p=c?"xs":f?"sm":d?"md":v?"lg":h?"xl":"xxl",m=typeof r=="number"?r:n[r],y=s.value0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();const n=nt(r1);if(!n)throw new Error("Could not find Vuetify display injection");const r=E(()=>{if(!e.mobileBreakpoint)return n.mobile.value;const i=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:a,mobile:r}}const iZ={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",eyeDropper:"mdi-eyedropper"},oZ={component:e=>Sa(iC,{...e,class:"mdi"})},Je=[String,Function,Object,Array],a1=Symbol.for("vuetify:icons"),ly=J({icon:{type:Je},tag:{type:String,required:!0}},"icon"),i1=le()({name:"VComponentIcon",props:ly(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return I(e.tag,null,{default:()=>{var a;return[e.icon?I(r,null,null):(a=n.default)==null?void 0:a.call(n)]}})}}}),aC=Hr({name:"VSvgIcon",inheritAttrs:!1,props:ly(),setup(e,t){let{attrs:n}=t;return()=>I(e.tag,ge(n,{style:null}),{default:()=>[I("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?I("path",{d:r[0],"fill-opacity":r[1]},null):I("path",{d:r},null)):I("path",{d:e.icon},null)])]})}}),sZ=Hr({name:"VLigatureIcon",props:ly(),setup(e){return()=>I(e.tag,null,{default:()=>[e.icon]})}}),iC=Hr({name:"VClassIcon",props:ly(),setup(e){return()=>I(e.tag,{class:e.icon},null)}}),lZ={svg:{component:aC},class:{component:iC}};function uZ(e){return ua({defaultSet:"mdi",sets:{...lZ,mdi:oZ},aliases:{...iZ,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},e)}const cZ=e=>{const t=nt(a1);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:E(()=>{var l;const r=Ge(e);if(!r)return{component:i1};let a=r;if(typeof a=="string"&&(a=a.trim(),a.startsWith("$")&&(a=(l=t.aliases)==null?void 0:l[a.slice(1)])),!a)throw new Error(`Could not find aliased icon "${r}"`);if(Array.isArray(a))return{component:aC,icon:a};if(typeof a!="string")return{component:i1,icon:a};const i=Object.keys(t.sets).find(u=>typeof a=="string"&&a.startsWith(`${u}:`)),o=i?a.slice(i.length+1):a;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},Jd=Symbol.for("vuetify:theme"),vt=J({theme:String},"theme");function uD(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function fZ(){var r,a;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uD();const t=uD();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const s=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(a=t.themes)==null?void 0:a.light;n[i]=ua(s,o)}return ua(t,{...e,themes:n})}function dZ(e){const t=fZ(e),n=pe(t.defaultTheme),r=pe(t.themes),a=E(()=>{const c={};for(const[f,d]of Object.entries(r.value)){const v=c[f]={...d,colors:{...d.colors}};if(t.variations)for(const h of t.variations.colors){const g=v.colors[h];if(g)for(const p of["lighten","darken"]){const m=p==="lighten"?rX:aX;for(const y of ci(t.variations[p],1))v.colors[`${h}-${p}-${y}`]=sB(m(ca(g),y))}}for(const h of Object.keys(v.colors)){if(/^on-[a-z]/.test(h)||v.colors[`on-${h}`])continue;const g=`on-${h}`,p=ca(v.colors[h]);v.colors[g]=fB(p)}}return c}),i=E(()=>a.value[n.value]),o=E(()=>{const c=[];i.value.dark&&Ls(c,":root",["color-scheme: dark"]),Ls(c,":root",cD(i.value));for(const[h,g]of Object.entries(a.value))Ls(c,`.v-theme--${h}`,[`color-scheme: ${g.dark?"dark":"normal"}`,...cD(g)]);const f=[],d=[],v=new Set(Object.values(a.value).flatMap(h=>Object.keys(h.colors)));for(const h of v)/^on-[a-z]/.test(h)?Ls(d,`.${h}`,[`color: rgb(var(--v-theme-${h})) !important`]):(Ls(f,`.bg-${h}`,[`--v-theme-overlay-multiplier: var(--v-theme-${h}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${h})) !important`,`color: rgb(var(--v-theme-on-${h})) !important`]),Ls(d,`.text-${h}`,[`color: rgb(var(--v-theme-${h})) !important`]),Ls(d,`.border-${h}`,[`--v-border-color: var(--v-theme-${h})`]));return c.push(...f,...d),c.map((h,g)=>g===0?h:` ${h}`).join("")});function s(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const f=c._context.provides.usehead;if(f)if(f.push){const d=f.push(s);Mt&&Se(o,()=>{d.patch(s)})}else Mt?(f.addHeadObjs(E(s)),Ln(()=>f.updateDOM())):f.addHeadObjs(s());else{let v=function(){if(typeof document<"u"&&!d){const h=document.createElement("style");h.type="text/css",h.id="vuetify-theme-stylesheet",t.cspNonce&&h.setAttribute("nonce",t.cspNonce),d=h,document.head.appendChild(d)}d&&(d.innerHTML=o.value)},d=Mt?document.getElementById("vuetify-theme-stylesheet"):null;Mt?Se(o,v,{immediate:!0}):v()}}const u=E(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:r,current:i,computedThemes:a,themeClasses:u,styles:o,global:{name:n,current:i}}}function St(e){un("provideTheme");const t=nt(Jd,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=E(()=>e.theme??t.name.value),r=E(()=>t.themes.value[n.value]),a=E(()=>t.isDisabled?void 0:`v-theme--${n.value}`),i={...t,name:n,current:r,themeClasses:a};return Tt(Jd,i),i}function oC(){un("useTheme");const e=nt(Jd,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function Ls(e,t,n){e.push(`${t} { `,...n.map(r=>` ${r}; `),`} -`)}function cD(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[a,i]of Object.entries(e.colors)){const o=ca(i);r.push(`--v-theme-${a}: ${o.r},${o.g},${o.b}`),a.startsWith("on-")||r.push(`--v-theme-${a}-overlay-multiplier: ${t1(i)>.18?t:n}`)}for(const[a,i]of Object.entries(e.variables)){const o=typeof i=="string"&&i.startsWith("#")?ca(i):void 0,s=o?`${o.r}, ${o.g}, ${o.b}`:void 0;r.push(`--v-${a}: ${s??i}`)}return r}function _i(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=pe(),r=pe();if(Mt){const a=new ResizeObserver(i=>{e==null||e(i,a),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});En(()=>{a.disconnect()}),Se(n,(i,o)=>{o&&(a.unobserve(jd(o)),r.value=void 0),i&&a.observe(jd(i))},{flush:"post"})}return{resizeRef:n,contentRect:Ov(r)}}const Bp=Symbol.for("vuetify:layout"),xB=Symbol.for("vuetify:layout-item"),fD=1e3,wB=Q({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),Hc=Q({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function vZ(){const e=nt(Bp);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function Wc(e){const t=nt(Bp);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${rr()}`,r=un("useLayoutItem");Tt(xB,{id:n});const a=xe(!1);_O(()=>a.value=!0),yO(()=>a.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:E(()=>a.value?!1:e.active.value),id:n});return En(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const hZ=(e,t,n,r)=>{let a={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...a}}];for(const o of e){const s=t.get(o),l=n.get(o),u=r.get(o);if(!s||!l||!u)continue;const c={...a,[s.value]:parseInt(a[s.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),a=c}return i};function CB(e){const t=nt(Bp,null),n=E(()=>t?t.rootZIndex.value-100:fD),r=pe([]),a=In(new Map),i=In(new Map),o=In(new Map),s=In(new Map),l=In(new Map),{resizeRef:u,contentRect:c}=_i(),f=E(()=>{const S=new Map,w=e.overlaps??[];for(const C of w.filter(T=>T.includes(":"))){const[T,A]=C.split(":");if(!r.value.includes(T)||!r.value.includes(A))continue;const P=a.get(T),D=a.get(A),M=i.get(T),L=i.get(A);!P||!D||!M||!L||(S.set(A,{position:P.value,amount:parseInt(M.value,10)}),S.set(T,{position:D.value,amount:-parseInt(L.value,10)}))}return S}),d=E(()=>{const S=[...new Set([...o.values()].map(C=>C.value))].sort((C,T)=>C-T),w=[];for(const C of S){const T=r.value.filter(A=>{var P;return((P=o.get(A))==null?void 0:P.value)===C});w.push(...T)}return hZ(w,a,i,s)}),v=E(()=>!Array.from(l.values()).some(S=>S.value)),h=E(()=>d.value[d.value.length-1].layer),g=E(()=>({"--v-layout-left":Ae(h.value.left),"--v-layout-right":Ae(h.value.right),"--v-layout-top":Ae(h.value.top),"--v-layout-bottom":Ae(h.value.bottom),...v.value?void 0:{transition:"none"}})),p=E(()=>d.value.slice(1).map((S,w)=>{let{id:C}=S;const{layer:T}=d.value[w],A=i.get(C),P=a.get(C);return{id:C,...T,size:Number(A.value),position:P.value}})),m=S=>p.value.find(w=>w.id===S),y=un("createLayout"),_=xe(!1);ln(()=>{_.value=!0}),Tt(Bp,{register:(S,w)=>{let{id:C,order:T,position:A,layoutSize:P,elementSize:D,active:M,disableTransitions:L,absolute:R}=w;o.set(C,T),a.set(C,A),i.set(C,P),s.set(C,M),L&&l.set(C,L);const W=_d(xB,y==null?void 0:y.vnode).indexOf(S);W>-1?r.value.splice(W,0,C):r.value.push(C);const V=E(()=>p.value.findIndex(J=>J.id===C)),G=E(()=>n.value+d.value.length*2-V.value*2),X=E(()=>{const J=A.value==="left"||A.value==="right",ee=A.value==="right",F=A.value==="bottom",U={[A.value]:0,zIndex:G.value,transform:`translate${J?"X":"Y"}(${(M.value?0:-110)*(ee||F?-1:1)}%)`,position:R.value||n.value!==fD?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!_.value)return U;const $=p.value[V.value];if(!$)throw new Error(`[Vuetify] Could not find layout item "${C}"`);const z=f.value.get(C);return z&&($[z.position]+=z.amount),{...U,height:J?`calc(100% - ${$.top}px - ${$.bottom}px)`:D.value?`${D.value}px`:void 0,left:ee?void 0:`${$.left}px`,right:ee?`${$.right}px`:void 0,top:A.value!=="bottom"?`${$.top}px`:void 0,bottom:A.value!=="top"?`${$.bottom}px`:void 0,width:J?D.value?`${D.value}px`:void 0:`calc(100% - ${$.left}px - ${$.right}px)`}}),Z=E(()=>({zIndex:G.value-1}));return{layoutItemStyles:X,layoutItemScrimStyles:Z,zIndex:G}},unregister:S=>{o.delete(S),a.delete(S),i.delete(S),s.delete(S),l.delete(S),r.value=r.value.filter(w=>w!==S)},mainRect:h,mainStyles:g,getLayoutItem:m,items:p,layoutRect:c,rootZIndex:n});const b=E(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),x=E(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:b,layoutStyles:x,getLayoutItem:m,items:p,layoutRect:c,layoutRef:u}}function TB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=ua(t,n),{aliases:a={},components:i={},directives:o={}}=r,s=oX(r.defaults),l=aZ(r.display,r.ssr),u=dZ(r.theme),c=uZ(r.icons),f=mX(r.locale),d=tZ(r.date,f);return{install:h=>{for(const g in o)h.directive(g,o[g]);for(const g in i)h.component(g,i[g]);for(const g in a)h.component(g,Hr({...a[g],name:g,aliasName:a[g].name}));if(u.install(h),h.provide(Ic,s),h.provide(a1,l),h.provide(Jd,u),h.provide(i1,c),h.provide(Pc,f),h.provide(bB,d.options),h.provide(aD,d.instance),Mt&&r.ssr)if(h.$nuxt)h.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:g}=h;h.mount=function(){const p=g(...arguments);return dt(()=>l.update()),h.mount=g,p}}rr.reset(),h.mixin({computed:{$vuetify(){return In({defaults:Iu.call(this,Ic),display:Iu.call(this,a1),theme:Iu.call(this,Jd),icons:Iu.call(this,i1),locale:Iu.call(this,Pc),date:Iu.call(this,aD)})}}})},defaults:s,display:l,theme:u,icons:c,locale:f,date:d}}const gZ="3.4.10";TB.version=gZ;function Iu(e){var r,a;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((a=t.vnode.appContext)==null?void 0:a.provides);if(n&&e in n)return n[e]}const sC=U8("fhem",()=>{const e=Gv(),t=uy(),n=In({settings:{protocol:window.location.protocol.replace(":",""),server:window.location.hostname,port:window.location.port,path:window.location.pathname.replace("/","").split("/")[0],xhr:!1,lang:e.locale.value,dark:!1,loglevel:1},config:{header:{},navigation:[],panels:[],templates:[],content:{},colors:{}},header:{title:null,time:new Date,timeFormat:{hour:"2-digit",minute:"2-digit"},dateFormat:{weekday:"long",year:"numeric",month:"long",day:"numeric"},showTime:!1,showDate:!1,showTitle:!0,showHomeBtn:!1,imageUrl:null,imageGradient:null,showDarkMode:!1,showReloadPage:!1,showSettings:!1,commands:[]},fhemDevice:null,panelView:[],panelList:[],navigation:[],panelMaximized:!1,threads:[],distTemplates:[],noConfig:null,isReady:!1,message:!1,currentView:null,version:null,helpURL:"https://github.com/jemu75/fhemApp/tree/dev-v4?tab=readme-ov-file#"}),r={csrf:null,conn:null,xhrOffset:0,xhrBuffer:"",evtBuffer:[],panelMap:[]};function a(F,U,$,z){let H={lang:window.navigator.language||"en-EN",format:{hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3}},j={ts:new Date().toLocaleString(H.lang,H.format),text:U,details:n.settings.loglevel<7?"":$||""};z&&!n.message&&(n.message={type:F===2?"error":F===3?"warning":"info",title:"_app.messages."+z+".title",text:"_app.messages."+z+".text"}),F<=n.settings.loglevel&&(F===2?console.error(j.ts,j.text,j.details):F===3?console.warn(j.ts,j.text,j.details):console.info(j.ts,j.text,j.details))}function i(){setInterval(()=>{n.header.time=new Date},1e3)}async function o(){let F=new Headers;F.append("pragma","no-cache"),F.append("cache-control","no-cache");let $=await fetch("CHANGELOG.md",{method:"GET",headers:F}).then(z=>z.text());n.version=await $.split(` -`)[0].split(" ")[1].trim()}function s(F){return F?n.threads.splice(n.threads.indexOf(F),1):n.threads.push((n.threads.slice(-1)[0]||0)+1),n.threads.slice(-1)[0]}function l(F){window.open(n.helpURL+F,"_blank")}function u(){let F=window.matchMedia("(prefers-color-scheme: dark");t.global.name.value=F.matches?"dark":"light",F.addEventListener("change",U=>{n.settings.dark||(t.global.name.value=U.matches?"dark":"light")})}function c(F){let U={connChanged:!1,routeChanged:!1,configChanged:!1,langChanged:!1,darkChanged:!1};if(F.query)for(const $ of Object.keys(n.settings))F.query[$]&&F.query[$]!==n.settings[$]&&(n.settings[$]=F.query[$],["protocol","server","port","path"].indexOf($)!==-1&&(U.connChanged=!0),$==="lang"&&(U.langChanged=!0),$==="dark"&&(U.darkChanged=!0));return F.params&&(F.params.config&&F.params.config!==n.fhemDevice&&(n.fhemDevice=F.params.config,U.configChanged=!0),F.params.view&&F.params.view!==n.currentView&&(n.currentView=F.params.view,U.routeChanged=!0)),n.message=!1,n.panelMaximized=!1,a(4,"URL processed.",F),U}function f(F){let U=n.settings,$=U.protocol+"://"+U.server+":"+U.port+(U.path?"/"+U.path:"");return $+=F||"",$}async function d(F,U){let $="?XHR=1",z={method:"POST"},H=[],j;return F!=="token"&&r.csrf&&($+="&fwcsrf="+r.csrf),U&&(z.body="cmd="+U),/^set.*/.test(U)&&(H=U.split(" "),H.length>2&&(r.evtBuffer.push({reading:H.slice(1,3).join("-"),value:H.slice(-1)}),x(!0))),a(4,"Request send to FHEM.",{url:f($),options:z}),await fetch(f($),z).then(Y=>(F==="token"&&(j={token:Y.headers.get("x-fhem-csrftoken")}),F==="json"&&(j=Y.json()),F==="text"&&(j=Y.text()),j)).catch(Y=>{a(2,"Connection to FHEM failed.",Y,"request")})}async function v(){let F=await d("token");return F?(r.csrf=F.token,!0):!1}function h(F,U){try{const $=JSON.parse(F);if($&&typeof $=="object")return U?{result:$,error:!1}:$}catch($){return U||a(2,"JSON parsing failed.",{input:F,error:$.message},"jsonParse"),U?{result:null,error:$.message}:!1}return a(3,"Unhandled state during JSON parsing.",null,"jsonParse"),!1}function g(F){try{const U=atob(F);if(U&&typeof U=="string")return U}catch{return a(2,"Base64 decode failed.",F,"base64"),!1}return a(3,"Unhandled state during Base64 Decoding.",null,"base64"),!1}function p(F,U){let $;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(F))return $=F.substring(1).split(""),$.length===3&&($=[$[0],$[0],$[1],$[1],$[2],$[2]]),$="0x"+$.join(""),"rgba("+[$>>16&255,$>>8&255,$&255].join(",")+","+U+")"}async function m(F){let U=new Headers;U.append("pragma","no-cache"),U.append("cache-control","no-cache");let z=await fetch(F,{method:"GET",headers:U}).then(H=>H.json()).catch(H=>a(2,"Loading JSON-File "+F+" failed.",{file:F,err:H}));return z&&a(4,"JSON-File "+F+" was successful loaded.",{file:F,result:z}),await z}async function y(){let F=await d("text","get "+n.fhemDevice+" config"),U,$,z;if(RegExp("Please define "+n.fhemDevice+" first").test(F))return a(2,"Wrong FHEM Config-Device in URL.",{fhemResult:F},"wrongDevice"),!1;if(U=g(F),$=typeof U=="string"?h(U):!1,n.noConfig=!1,!$)return a(2,"Loading the Configuration of FHEM failed.",F,"config"),!1;$.error&&($.error==="No config found!"?(n.noConfig=!0,Ra.push({name:"settings",query:Ra.currentRoute.value.query}),a(3,$.error,null)):console.log($.error));for(const H of Object.keys(n.config))$[H]&&$[H]!==n.config[H]&&(n.config[H].length>0&&n.config[H].splice(0),Object.assign(n.config[H],$[H]));for(const[H,j]of Object.entries(n.config.content))e.messages.value[H]||(e.messages.value[H]={}),Object.assign(e.messages.value[H],j);return n.config.colors.light&&Object.assign(t.themes.value.light.colors,n.config.colors.light),n.config.colors.dark&&Object.assign(t.themes.value.dark.colors,n.config.colors.dark),Object.assign(n.header,JSON.parse(JSON.stringify(n.config.header))),n.header.imageGradient||(z=t.global.current.value.colors.primary,n.header.imageGradient="to top ,"+p(z,.6)+", "+p(z,.6)),a(4,"Config loaded.",$),!0}async function _(){let F;n.distTemplates=await m("./templates/templates.json"),n.distTemplates.sort((U,$)=>U>$?1:$>U?-1:0);for(const U of n.config.panels)U.template&&n.config.templates.map($=>$.name).indexOf(U.template)===-1&&n.distTemplates.indexOf(U.template)!==-1&&(F=await m("./templates/"+U.template+".json"),F&&n.config.templates.push(F));return!0}function b(F,U,$){let z;U.length>1?b(F[U[0]],U.slice(1),$):(z=F[U].split(":"),z[0]=/:/.test($)?$.replace(/:/g,":"):$,F[U]=z.join(":"))}function x(F){let U,$=r.evtBuffer.length;if(!(!n.isReady||$===0)){for(const z of r.evtBuffer)if(U=r.panelMap.map(H=>H.reading).indexOf(z.reading),U!==-1){F||a(6,"Data from FHEM handled.",z);for(const H of r.panelMap[U].items)b(n.panelList,H,z.value)}else F||a(8,"Data from FHEM received.",z);r.evtBuffer.splice(0,$)}}function S(F){let U=[],$;n.settings.xhr?(r.xhrBuffer+=F.substr(r.xhrOffset,F.length-r.xhrOffset),r.xhrBuffer.slice(-2).match("]")&&(U=r.xhrBuffer.split(` -`),r.xhrBuffer=""),r.xhrOffset=F.length):U=F.data.split(` -`);for(const z of U)z.length>0&&($=h(z),/-/.test($[0])&&r.evtBuffer.push({reading:$[0],value:$[1]}));x()}function w(){let F=f("?inform=type=status;filter=.*;fmt=JSON&XHR=1");return r.evtBuffer=[],!n.settings.xhr&&typeof WebSocket=="function"?(r.conn=new WebSocket(F.replace(/^http/i,"ws")),r.conn.onopen=()=>{a(4,"Websocket Connection opened.")},r.conn.onmessage=U=>S(U),r.conn.onerror=()=>C(),r.conn.onclose=()=>C()):(r.conn=new XMLHttpRequest,r.conn.open("GET",F,!0),r.conn.onloadstart=()=>{n.settings.xhr||(n.settings.xhr=!0,a(3,"Websocket is not supported by the browser. Fallback to longpoll connection.",null,"websocket")),a(4,"Longpoll Connection opened.")},r.conn.onerror=()=>C(),r.conn.onloadend=()=>C(),r.conn.onreadystatechange=()=>{r.conn.status===200&&r.conn.readyState===3&&S(r.conn.responseText)},r.conn.send()),!0}function C(F){let U;r.conn=null,n.isReady=!1,setTimeout(async()=>{U=await J(!0),U||(n.message=!1,a(3,"Connection to FHEM was interrupted. Try to reconnect in 3 seconds.",null,"reconnect"),C(3e3))},F)}function T(F,U){let $=U.trim().split("-"),z=F.map(H=>H.key).indexOf($[0]);return z!==-1?$[0]=F[z].name:$.unshift(F[0].name),$.join("-")}function A(F,U,$){let z,H,j;if(U)for(const[Y,q]of Object.entries(U))typeof U[Y]=="object"?A(F,U[Y],[...$,Y]):typeof q=="string"&&(z=q.replace(/\\:/g,":"),!/^::/.test(z)&&/.*:.*:.*/.test(z)&&(H=T(F,z.split(":")[0]),j=r.panelMap.map(te=>te.reading).indexOf(H),j===-1?r.panelMap.push({reading:H,items:[[...$,Y]]}):r.panelMap[j].items.push([...$,Y])))}function P(F){let U=[],$;if(!Array.isArray(F)||Array.isArray(F)&&F.length===0)return!1;for(const z of F)$=z.split(":"),U.push({key:$[0],name:$[1]||$[0]});return U}function D(){let F,U,$=JSON.parse(JSON.stringify(n.config.panels)),z=JSON.parse(JSON.stringify(n.config.templates)),H;n.config.panels.length===0&&a(3,"No Panels defined.",null,"noPanels"),n.panelList=[];for(const[j,Y]of Object.entries($)){if(F={},H=Y.template?z.map(q=>q.name).indexOf(Y.template):-1,H!==-1){F=JSON.parse(JSON.stringify(z[H]));for(const q of Object.keys(Y))if(q==="main"){for(const[te,N]of Object.entries(Y.main))for(const B of Object.keys(N.level))if(N.level[B]){F.main[te]=N;break}}else typeof Y[q]=="object"&&F[q]&&Object.assign(F[q],Y[q]);F.name=Y.name}else F=Y;U=P(F.panel?F.panel.devices:[]),U?(A(U,F,[j]),n.panelList.push(F)):a(3,"No Devices defined in Panel "+F.name)}return a(4,"PanelList and PanelMapping created.",{panelList:n.panelList,panelMap:r.panelMap}),!0}function M(F,U){return U.reduce(($,z)=>$&&$[z],F)}async function L(){let F=[],U=JSON.parse(JSON.stringify(n.panelList)),$,z,H,j,Y,q;for(const te of r.panelMap)$=te.reading.split("-")[0],F.indexOf($)===-1&&F.push($);if(F.length===0)return a(3,"No Devices in Panels defined.",null,"noPanels"),!0;if(z=await d("json","jsonlist2 "+F.join(",")),!!z){for(const te of r.panelMap){H=te.reading.split("-"),j=z.Results.map(N=>N.Name).indexOf(H[0]),Y=[],q=null,H[1]==="i"?Y=["Internals",H[2]]:H[1]==="a"?Y=["Attributes",H[2]]:H[H.length-1]==="ts"?(H.pop(),H.shift(),Y=["Readings",H.join("-"),"Time"]):(H.shift(),Y=["Readings",H.join("-"),"Value"]),q=M(z.Results[j],Y);for(const N of te.items)b(U,N,q)}return n.panelList=U,a(4,"Devices from FHEM loaded.",z),!0}}function R(F,U){let $=null;if(!U||!Array.isArray(U)||U.length<1)return F;for(const z of U)if(/.*:.*/.test(z)&&($=z.split(":"),RegExp($[0]).test(F)))return $[1];return F}function O(F,U,$){let z=F;if(typeof F!="string")return F;if(/:/.test(U)&&(U=U.replace(/:/g,":")),/:/.test(z)&&(z=z.replace(/:/g,":")),/%s/.test(z)&&(z=z.replace(/%s/g,U)),/%n\(.*\)/.test(z)){z=z.replace("%n()","%n(0)");let H=/%n\(.*\)/.exec(z),j=/-?[0-9]/.exec(U);if(!j)return null;let Y=H[0].slice(3,-1).split(","),q=parseFloat(Y[1]||0),te=parseFloat(Y[0]||0),N=parseFloat(U.slice(j.index))+q;z=H.input.replace(H[0],$?N.toFixed(te):e.n(N,{minimumFractionDigits:te,maximumFractionDigits:te}))}if(/%d\(.*\)/.test(z)){let H=/%d\(.*\)/.exec(z),j=H[0].slice(3,-1),Y={dateStyle:"short",timeStyle:"medium"},q=U.replace(" ","T"),te=/^(\d{1,2})\.(\d{1,2})\.(\d{2,4})/.exec(q);j==="time"&&(Y={hour:"numeric",minute:"numeric",second:"numeric"}),j==="date"&&(Y={dateStyle:"short"}),/{.*}/.test(j)&&(Y=h(j)),te&&(q=q.replace(te[0],[te[3],te[2],te[1]].join("-"))),/(T|Z)/.test(q)||(q+="T00:00:00"),/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/.test(q)?z=H.input.replace(H[0],e.d(q,Y)).replace(", "," "):z=H.input.replace(H[0],q+" -> is no ISO-Date/Time!")}if(/%t\(.*\)/.test(z)){let H=/%t\(.*\)/.exec(z);z=H.input.replace(H[0],e.t(H[0].slice(3,-1)))}return z}function W(F,U,$,z,H,j){let Y=z?[]:{},q,te,N,B,K,ae={},ie=U&&Array.isArray(U),ve=$&&Array.isArray($),ye;if(ie)for(const[me,_e]of Object.entries(U))ae[_e]=ve?$[me]:null;if(!F)return z?Y:ae;q=JSON.parse(JSON.stringify(F));for(let me of q){if(me=me.replace(/\\:/g,":"),/.*:.*:.*/.test(me)||(me="::"+me),te=me.split(":"),N=!0,H&&te[0].split(H).length>1){for(const _e of te[0].split(H))q.push([_e,...te.slice(1)].join(":"));continue}if(te[1]&&(N=!1,B=parseFloat(te[1]),isNaN(B)?RegExp(te[1]?te[1]:".").test(te[0])&&(N=!0):(K=/-?[0-9]/.exec(te[0]),K&&K.index!==-1&&parseFloat(te[0].slice(K.index))>=B&&(N=!0))),N){ye=Object.assign({},ae);for(let[_e,he]of Object.entries(te.slice(2)))he==="true"&&(he=!0),he==="false"&&(he=!1),he!==""&&(ye[ie&&U[_e]?U[_e]:[_e]]=O(he,te[0],j));if(z)Y.push(ye);else{Y=ye;break}}}return Y}function V(F,U){let $=F.split("->"),z={name:$[0],title:$[0]},H=U.map(j=>j.name).indexOf(z.name);return H!==-1&&Object.assign(z,U[H]),$.length>1&&(z.group=V($.slice(1).join("->"),z.group||[])),H!==-1?U[H]=z:U.push(z),U}function G(F){for(const U of F)U.sort&&U.group&&U.group.length>1&&U.group.sort(($,z)=>$.title.toUpperCase()>z.title.toUpperCase()?1:z.title.toUpperCase()>$.title.toUpperCase()?-1:0),U.group&&G(U.group)}function X(){let F=[];n.navigation=JSON.parse(JSON.stringify(n.config.navigation));for(const U of n.panelList)if(U.panel.navigation&&(F=W(U.panel.navigation,["route"],[""],!0,","),W(U.panel.show,["show"],[!0]).show))for(const $ of F)V($.route,n.navigation);return G(n.navigation),a(4,"Navigation loaded.",n.navigation),!0}function Z(){let F,U=s();n.panelView=[];for(const[$,z]of Object.entries(n.panelList))z.panel.navigation&&(F=W(z.panel.navigation,["route"],[""],!0,","),F.map(H=>H.route).indexOf(n.currentView)!==-1&&n.panelView.push($));return x(),a("4","PanelView loaded.",{view:n.currentView}),s(U),!0}async function J(F){let U=!0,$=s();return a(4,F?"Create Session...":"Refresh Session..."),n.isReady=!1,r.panelMap=[],U&&F&&(U=await v()),U&&F&&(U=w()),U&&(U=await y()),U&&(U=await _()),U&&(U=D()),U&&(U=await L()),U&&(U=X()),U&&(U=Z()),U?(n.message=!1,n.isReady=!0,a(1,F?"FHEMApp launched.":"Session refreshed.",n)):a(3,"FHEMApp launching failed."),s($),U}function ee(){a(1,"FHEMApp launching..."),o(),u(),i(),Ra.afterEach(F=>{let U=c(F);if(U.langChanged&&(e.locale.value=n.settings.lang),U.darkChanged&&(t.global.name.value=n.settings.dark==="0"?"light":"dark"),U.connChanged||!n.isReady)return J(!0);if(U.configChanged)return location.reload();U.routeChanged&&Z()})}return Ra.isReady().then(ee()),{app:n,getEl:M,handleDefs:W,getIcon:R,replacer:O,createSession:J,request:d,thread:s,stringToJson:h,log:a,help:l}}),AB={__name:"AppNavigation",props:{items:Array,path:String,isChip:Boolean},setup(e){const t=e,n=sC(),r=i=>t.path?t.path+"->"+i:i,a=i=>{n.app.header.title=n.replacer(t.items[i].title,""),Ra.push({name:"devices",params:{view:r(t.items[i].name)},query:Ra.currentRoute.value.query})};return(i,o)=>{const s=Rt("v-list-item"),l=Rt("v-chip"),u=Rt("v-list-group"),c=Rt("v-divider");return en(!0),kl(ke,null,xS(e.items,(f,d)=>(en(),kl("span",{key:f.name},[(!f.group||f.group.length<1)&&!e.isChip?(en(),wr(s,{key:d,title:Ge(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill",onClick:v=>a(d)},null,8,["title","prepend-icon","onClick"])):oa("",!0),(!f.group||f.group.length<1)&&e.isChip?(en(),wr(l,{class:"my-1 ml-2","prepend-icon":f.icon,key:d,onClick:v=>a(d)},{default:zt(()=>[$r(gl(Ge(n).replacer(f.title,"")||f.name),1)]),_:2},1032,["prepend-icon","onClick"])):oa("",!0),f.group&&f.group.length>0?(en(),wr(u,{key:2,value:f.name},{activator:zt(({props:v})=>[I(s,ge(v,{title:Ge(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill"}),null,16,["title","prepend-icon"])]),default:zt(()=>[I(AB,{items:f.group,isChip:f.groupAsChips,path:r(f.name)},null,8,["items","isChip","path"])]),_:2},1032,["value"])):oa("",!0),f.divider?(en(),wr(c,{key:3})):oa("",!0)]))),128)}}},pZ={__name:"OptionsMenu",setup(e){const t=sC(),n=uy(),r=Gv(),a=E(()=>{let s=[],l=t.app.header,u={darkMode:{name:"darkMode",title:"%t(_app.options.darkMode)",icon:"mdi-theme-light-dark"},reloadPage:{name:"reloadPage",title:"%t(_app.options.reload)",icon:"mdi-reload"},settings:{name:"settings",title:"%t(_app.options.settings)",icon:"mdi-cogs"}};return l.showDarkMode&&s.push(u.darkMode),l.showReloadPage&&s.push(u.reloadPage),l.showSettings&&s.push(u.settings),s.push(...l.commands),s}),i=E(()=>Object.keys(r.messages.value));function o(s){let l=a.value[s];l.name==="reloadPage"&&location.reload(),l.name==="settings"&&Ra.push({name:"settings",query:Ra.currentRoute.value.query}),l.name==="darkMode"&&(n.global.name.value=n.global.name.value==="dark"?"light":"dark"),l.cmd&&t.request("text",l.cmd)}return(s,l)=>{const u=Rt("v-btn"),c=Rt("v-list-item"),f=Rt("v-divider"),d=Rt("v-btn-toggle"),v=Rt("v-list"),h=Rt("v-menu");return a.value.length>0?(en(),wr(h,{key:0},{activator:zt(({props:g})=>[I(u,ge({icon:"mdi-dots-vertical"},g),null,16)]),default:zt(()=>[I(v,null,{default:zt(()=>[(en(!0),kl(ke,null,xS(a.value,(g,p)=>(en(),wr(c,{rounded:"pill",key:p,"prepend-icon":g.icon,title:Ge(t).replacer(g.title,""),onClick:m=>o(p)},null,8,["prepend-icon","title","onClick"]))),128)),a.value.length>0&&Ge(t).app.header.showLanguages?(en(),wr(f,{key:0,class:"pb-2"})):oa("",!0),Ge(t).app.header.showLanguages?(en(),wr(c,{key:1,class:"text-center"},{default:zt(()=>[I(d,{modelValue:Ge(r).locale.value,"onUpdate:modelValue":l[0]||(l[0]=g=>Ge(r).locale.value=g),divided:"",density:"compact"},{default:zt(()=>[(en(!0),kl(ke,null,xS(i.value,g=>(en(),wr(u,{value:g,size:"small",key:g},{default:zt(()=>[$r(gl(g),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})):oa("",!0)]),_:1})]),_:1})):oa("",!0)}}},mZ=""+new URL("logo_v4-a31de70f.png",import.meta.url).href,yZ={key:0,class:"text-h5"},_Z={key:0,class:"text-h5"},bZ={key:1,class:"text-h5"},SZ={__name:"App",setup(e){const t=sC(),{mobile:n}=xs(),r=pe(!0);function a(){Ra.push({name:"internals",query:Ra.currentRoute.value.query})}return(i,o)=>{const s=Rt("v-progress-circular"),l=Rt("v-overlay"),u=Rt("v-img"),c=Rt("v-divider"),f=Rt("v-list"),d=Rt("v-col"),v=Rt("v-icon"),h=Rt("v-row"),g=Rt("v-navigation-drawer"),p=Rt("v-app-bar-nav-icon"),m=Rt("v-btn"),y=Rt("v-app-bar"),_=Rt("v-alert"),b=Rt("RouterView"),x=Rt("v-container"),S=Rt("v-main"),w=Rt("v-layout"),C=Rt("v-app");return en(),wr(C,{class:"noselect"},{default:zt(()=>[I(w,null,{default:zt(()=>[I(l,{"model-value":Ge(t).app.threads.length>0,class:"align-center justify-center"},{default:zt(()=>[I(s,{indeterminate:"",size:"64"})]),_:1},8,["model-value"]),I(g,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=T=>r.value=T),color:"secondary"},{prepend:zt(()=>[I(u,{src:Ge(mZ)},null,8,["src"]),I(c)]),default:zt(()=>[I(f,null,{default:zt(()=>[I(AB,{items:Ge(t).app.navigation},null,8,["items"])]),_:1}),I(c),I(h,{"no-gutters":"",class:"mx-2 my-1"},{default:zt(()=>[I(d,null,{default:zt(()=>[$r(gl(Ge(t).app.version),1)]),_:1}),I(d,{cols:"2",class:"text-right"},{default:zt(()=>[I(v,{icon:Ge(t).app.isReady?"mdi-sync":"mdi-alert",size:"small"},null,8,["icon"])]),_:1})]),_:1}),I(c)]),_:1},8,["modelValue"]),I(y,{order:Ge(n)?0:-1,color:Ge(t).app.settings.loglevel>6?"error":"primary"},_6({prepend:zt(()=>[I(p,{class:"d-lg-none",onClick:o[1]||(o[1]=NS(T=>r.value=!r.value,["stop"]))}),!Ge(n)&&Ge(t).app.header.showTime?(en(),kl("div",yZ,gl(i.$d(Ge(t).app.header.time,Ge(t).app.header.timeFormat)),1)):oa("",!0)]),append:zt(()=>[Ge(t).app.settings.loglevel>6?(en(),wr(m,{key:0,icon:"mdi-information",onClick:o[2]||(o[2]=T=>a())})):oa("",!0),I(pZ)]),default:zt(()=>[!Ge(n)&&Ge(t).app.header.showDate?(en(),kl("div",_Z,gl(i.$d(Ge(t).app.header.time,Ge(t).app.header.dateFormat)),1)):oa("",!0),Ge(n)&&Ge(t).app.header.showTitle?(en(),kl("div",bZ,gl(Ge(t).app.header.title),1)):oa("",!0)]),_:2},[Ge(t).app.header.imageUrl&&Ge(t).app.settings.loglevel<7?{name:"image",fn:zt(()=>[I(u,{src:Ge(t).app.header.imageUrl,cover:"",gradient:Ge(t).app.header.imageGradient},null,8,["src","gradient"])]),key:"0"}:void 0]),1032,["order","color"]),I(S,null,{default:zt(()=>[I(x,{fluid:"",class:"pa-2"},{default:zt(()=>[Ge(t).app.message?(en(),wr(_,{key:0,closable:"",type:Ge(t).app.message.type,title:i.$t(Ge(t).app.message.title),text:i.$t(Ge(t).app.message.text),class:"mb-2 mx-1","onClick:close":o[3]||(o[3]=T=>Ge(t).app.message=!1)},null,8,["type","title","text"])):oa("",!0),I(b)]),_:1})]),_:1})]),_:1})]),_:1})}}};const xZ=Q({...Ie(),...wB({fullHeight:!0}),...vt()},"VApp"),wZ=le()({name:"VApp",props:xZ(),setup(e,t){let{slots:n}=t;const r=St(e),{layoutClasses:a,getLayoutItem:i,items:o,layoutRef:s}=CB(e),{rtlClasses:l}=Rn();return de(()=>{var u;return I("div",{ref:s,class:["v-application",r.themeClasses.value,a.value,l.value,e.class],style:[e.style]},[I("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}});const et=Q({tag:{type:String,default:"div"}},"tag"),IB=Q({text:String,...Ie(),...et()},"VToolbarTitle"),lC=le()({name:"VToolbarTitle",props:IB(),setup(e,t){let{slots:n}=t;return de(()=>{const r=!!(n.default||n.text||e.text);return I(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var a;return[r&&I("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(a=n.default)==null?void 0:a.call(n)])]}})}),{}}}),CZ=Q({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Ur(e,t,n){return le()({name:e,props:CZ({mode:n,origin:t}),setup(r,a){let{slots:i}=a;const o={onBeforeEnter(s){r.origin&&(s.style.transformOrigin=r.origin)},onLeave(s){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:f}=s;s._transitionInitialStyles={position:s.style.position,top:s.style.top,left:s.style.left,width:s.style.width,height:s.style.height},s.style.position="absolute",s.style.top=`${l}px`,s.style.left=`${u}px`,s.style.width=`${c}px`,s.style.height=`${f}px`}r.hideOnLeave&&s.style.setProperty("display","none","important")},onAfterLeave(s){if(r.leaveAbsolute&&(s!=null&&s._transitionInitialStyles)){const{position:l,top:u,left:c,width:f,height:d}=s._transitionInitialStyles;delete s._transitionInitialStyles,s.style.position=l||"",s.style.top=u||"",s.style.left=c||"",s.style.width=f||"",s.style.height=d||""}}};return()=>{const s=r.group?C8:yi;return Sa(s,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function PB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return le()({name:e,props:{mode:{type:String,default:n},disabled:Boolean},setup(r,a){let{slots:i}=a;return()=>Sa(yi,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function DB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Kn(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const s=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=s.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:a,onLeaveCancelled:a};function a(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){const s=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,s!=null&&(o.style[n]=s),delete o._initialStyle}}const TZ=Q({target:[Object,Array]},"v-dialog-transition"),cy=le()({name:"VDialogTransition",props:TZ(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,i){var d;await new Promise(v=>requestAnimationFrame(v)),await new Promise(v=>requestAnimationFrame(v)),a.style.visibility="";const{x:o,y:s,sx:l,sy:u,speed:c}=vD(e.target,a),f=yl(a,[{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:cX});(d=dD(a))==null||d.forEach(v=>{yl(v,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:qd})}),f.finished.then(()=>i())},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,i){var d;await new Promise(v=>requestAnimationFrame(v));const{x:o,y:s,sx:l,sy:u,speed:c}=vD(e.target,a);yl(a,[{},{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:fX}).finished.then(()=>i()),(d=dD(a))==null||d.forEach(v=>{yl(v,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:qd})})},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?I(yi,ge({name:"dialog-transition"},r,{css:!1}),n):I(yi,{name:"dialog-transition"},n)}});function dD(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function vD(e,t){const n=eB(e),r=Jw(t),[a,i]=getComputedStyle(t).transformOrigin.split(" ").map(m=>parseFloat(m)),[o,s]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||s==="left"?l-=n.width/2:(o==="right"||s==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||s==="top"?u-=n.height/2:(o==="bottom"||s==="bottom")&&(u+=n.height/2);const c=n.width/r.width,f=n.height/r.height,d=Math.max(1,c,f),v=c/d||0,h=f/d||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),p=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(a+r.left),y:u-(i+r.top),sx:v,sy:h,speed:p}}const AZ=Ur("fab-transition","center center","out-in"),IZ=Ur("dialog-bottom-transition"),PZ=Ur("dialog-top-transition"),zp=Ur("fade-transition"),uC=Ur("scale-transition"),DZ=Ur("scroll-x-transition"),MZ=Ur("scroll-x-reverse-transition"),kZ=Ur("scroll-y-transition"),LZ=Ur("scroll-y-reverse-transition"),EZ=Ur("slide-x-transition"),RZ=Ur("slide-x-reverse-transition"),cC=Ur("slide-y-transition"),VZ=Ur("slide-y-reverse-transition"),fy=PB("expand-transition",DB()),fC=PB("expand-x-transition",DB("",!0)),OZ=Q({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ht=le(!1)({name:"VDefaultsProvider",props:OZ(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:a,reset:i,root:o,scoped:s}=Nv(e);return Gt(r,{reset:i,root:o,scoped:s,disabled:a}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}});const hr=Q({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function gr(e){return{dimensionStyles:E(()=>({height:Ae(e.height),maxHeight:Ae(e.maxHeight),maxWidth:Ae(e.maxWidth),minHeight:Ae(e.minHeight),minWidth:Ae(e.minWidth),width:Ae(e.width)}))}}function NZ(e){return{aspectStyles:E(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const MB=Q({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...Ie(),...hr()},"VResponsive"),s1=le()({name:"VResponsive",props:MB(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=NZ(e),{dimensionStyles:a}=gr(e);return de(()=>{var i;return I("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[a.value,e.style]},[I("div",{class:"v-responsive__sizer",style:r.value},null),(i=n.additional)==null?void 0:i.call(n),n.default&&I("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),oo=Q({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),fa=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:a,...i}=e,{component:o=yi,...s}=typeof r=="object"?r:{};return Sa(o,ge(typeof r=="string"?{name:a?"":r}:s,i,{disabled:a}),n)};function BZ(e,t){if(!jw)return;const n=t.modifiers||{},r=t.value,{handler:a,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var f;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const c=s.some(d=>d.isIntersecting);a&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&a(c,s,l),c&&n.once?kB(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function kB(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Wv={mounted:BZ,unmounted:kB},LB=Q({alt:String,cover:Boolean,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...MB(),...Ie(),...oo()},"VImg"),Zl=le()({name:"VImg",directives:{intersect:Wv},props:LB(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=un("VImg"),i=xe(""),o=pe(),s=xe(e.eager?"loading":"idle"),l=xe(),u=xe(),c=E(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),f=E(()=>c.value.aspect||l.value/u.value||0);Se(()=>e.src,()=>{d(s.value!=="idle")}),Se(f,(T,A)=>{!T&&A&&o.value&&m(o.value)}),qm(()=>d());function d(T){if(!(e.eager&&T)&&!(jw&&!T&&!e.eager)){if(s.value="loading",c.value.lazySrc){const A=new Image;A.src=c.value.lazySrc,m(A,null)}c.value.src&&dt(()=>{var A;n("loadstart",((A=o.value)==null?void 0:A.currentSrc)||c.value.src),setTimeout(()=>{var P;if(!a.isUnmounted)if((P=o.value)!=null&&P.complete){if(o.value.naturalWidth||h(),s.value==="error")return;f.value||m(o.value,null),s.value==="loading"&&v()}else f.value||m(o.value),g()})})}}function v(){var T;a.isUnmounted||(g(),m(o.value),s.value="loaded",n("load",((T=o.value)==null?void 0:T.currentSrc)||c.value.src))}function h(){var T;a.isUnmounted||(s.value="error",n("error",((T=o.value)==null?void 0:T.currentSrc)||c.value.src))}function g(){const T=o.value;T&&(i.value=T.currentSrc||T.src)}let p=-1;En(()=>{clearTimeout(p)});function m(T){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const P=()=>{if(clearTimeout(p),a.isUnmounted)return;const{naturalHeight:D,naturalWidth:M}=T;D||M?(l.value=M,u.value=D):!T.complete&&s.value==="loading"&&A!=null?p=window.setTimeout(P,A):(T.currentSrc.endsWith(".svg")||T.currentSrc.startsWith("data:image/svg+xml"))&&(l.value=1,u.value=1)};P()}const y=E(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),_=()=>{var P;if(!c.value.src||s.value==="idle")return null;const T=I("img",{class:["v-img__img",y.value],style:{objectPosition:e.position},src:c.value.src,srcset:c.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:o,onLoad:v,onError:h},null),A=(P=r.sources)==null?void 0:P.call(r);return I(fa,{transition:e.transition,appear:!0},{default:()=>[Yt(A?I("picture",{class:"v-img__picture"},[A,T]):T,[[Ya,s.value==="loaded"]])]})},b=()=>I(fa,{transition:e.transition},{default:()=>[c.value.lazySrc&&s.value!=="loaded"&&I("img",{class:["v-img__img","v-img__img--preload",y.value],style:{objectPosition:e.position},src:c.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),x=()=>r.placeholder?I(fa,{transition:e.transition,appear:!0},{default:()=>[(s.value==="loading"||s.value==="error"&&!r.error)&&I("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,S=()=>r.error?I(fa,{transition:e.transition,appear:!0},{default:()=>[s.value==="error"&&I("div",{class:"v-img__error"},[r.error()])]}):null,w=()=>e.gradient?I("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,C=xe(!1);{const T=Se(f,A=>{A&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{C.value=!0})}),T())})}return de(()=>{const T=s1.filterProps(e);return Yt(I(s1,ge({class:["v-img",{"v-img--booting":!C.value},e.class],style:[{width:Ae(e.width==="auto"?l.value:e.width)},e.style]},T,{aspectRatio:f.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>I(ke,null,[I(_,null,null),I(b,null,null),I(w,null,null),I(x,null,null),I(S,null,null)]),default:r.default}),[[Mr("intersect"),{handler:d,options:e.options},null,{once:!0}]])}),{currentSrc:i,image:o,state:s,naturalWidth:l,naturalHeight:u}}}),Yr=Q({border:[Boolean,Number,String]},"border");function xa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{borderClasses:E(()=>{const r=Ft(e)?e.value:e.border,a=[];if(r===!0||r==="")a.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))a.push(`border-${i}`);return a})}}function dC(e){return Kw(()=>{const t=[],n={};if(e.value.background)if(e1(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&eX(e.value.background)){const r=ca(e.value.background);if(r.a==null||r.a===1){const a=fB(r);n.color=a,n.caretColor=a}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(e1(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Qn(e,t){const n=E(()=>({text:Ft(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=dC(n);return{textColorClasses:r,textColorStyles:a}}function Bt(e,t){const n=E(()=>({background:Ft(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=dC(n);return{backgroundColorClasses:r,backgroundColorStyles:a}}const pn=Q({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Vn(e){return{elevationClasses:E(()=>{const n=Ft(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Ht=Q({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function qt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{roundedClasses:E(()=>{const r=Ft(e)?e.value:e.rounded,a=[];if(r===!0||r==="")a.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))a.push(`rounded-${i}`);return a})}}const zZ=[null,"prominent","default","comfortable","compact"],EB=Q({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>zZ.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Yr(),...Ie(),...pn(),...Ht(),...et({tag:"header"}),...vt()},"VToolbar"),l1=le()({name:"VToolbar",props:EB(),setup(e,t){var v;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"color")),{borderClasses:i}=xa(e),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e),{themeClasses:l}=St(e),{rtlClasses:u}=Rn(),c=xe(!!(e.extended||(v=n.extension)!=null&&v.call(n))),f=E(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),d=E(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Gt({VBtn:{variant:"text"}}),de(()=>{var m;const h=!!(e.title||n.title),g=!!(n.image||e.image),p=(m=n.extension)==null?void 0:m.call(n);return c.value=!!(e.extended||p),I(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,i.value,o.value,s.value,l.value,u.value,e.class],style:[a.value,e.style]},{default:()=>[g&&I("div",{key:"image",class:"v-toolbar__image"},[n.image?I(ht,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):I(Zl,{key:"image-img",cover:!0,src:e.image},null)]),I(ht,{defaults:{VTabs:{height:Ae(f.value)}}},{default:()=>{var y,_,b;return[I("div",{class:"v-toolbar__content",style:{height:Ae(f.value)}},[n.prepend&&I("div",{class:"v-toolbar__prepend"},[(y=n.prepend)==null?void 0:y.call(n)]),h&&I(lC,{key:"title",text:e.title},{text:n.title}),(_=n.default)==null?void 0:_.call(n),n.append&&I("div",{class:"v-toolbar__append"},[(b=n.append)==null?void 0:b.call(n)])])]}}),I(ht,{defaults:{VTabs:{height:Ae(d.value)}}},{default:()=>[I(fy,null,{default:()=>[c.value&&I("div",{class:"v-toolbar__extension",style:{height:Ae(d.value)}},[p])]})]})]})}),{contentHeight:f,extensionHeight:d}}}),FZ=Q({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function $Z(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let r=0;const a=pe(null),i=xe(0),o=xe(0),s=xe(0),l=xe(!1),u=xe(!1),c=E(()=>Number(e.scrollThreshold)),f=E(()=>vn((c.value-i.value)/c.value||0)),d=()=>{const v=a.value;!v||n&&!n.value||(r=i.value,i.value="window"in v?v.pageYOffset:v.scrollTop,u.value=i.value{o.value=o.value||i.value}),Se(l,()=>{o.value=0}),ln(()=>{Se(()=>e.scrollTarget,v=>{var g;const h=v?document.querySelector(v):window;h&&h!==a.value&&((g=a.value)==null||g.removeEventListener("scroll",d),a.value=h,a.value.addEventListener("scroll",d,{passive:!0}))},{immediate:!0})}),En(()=>{var v;(v=a.value)==null||v.removeEventListener("scroll",d)}),n&&Se(n,d,{immediate:!0}),{scrollThreshold:c,currentScroll:i,currentThreshold:s,isScrollActive:l,scrollRatio:f,isScrollingUp:u,savedScroll:o}}function cu(){const e=xe(!1);return ln(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:E(()=>e.value?void 0:{transition:"none !important"}),isBooted:Ov(e)}}const GZ=Q({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...EB(),...Hc(),...FZ(),height:{type:[Number,String],default:64}},"VAppBar"),HZ=le()({name:"VAppBar",props:GZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=pe(),a=ze(e,"modelValue"),i=E(()=>{var y;const m=new Set(((y=e.scrollBehavior)==null?void 0:y.split(" "))??[]);return{hide:m.has("hide"),inverted:m.has("inverted"),collapse:m.has("collapse"),elevate:m.has("elevate"),fadeImage:m.has("fade-image")}}),o=E(()=>{const m=i.value;return m.hide||m.inverted||m.collapse||m.elevate||m.fadeImage||!a.value}),{currentScroll:s,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=$Z(e,{canScroll:o}),f=E(()=>e.collapse||i.value.collapse&&(i.value.inverted?c.value>0:c.value===0)),d=E(()=>e.flat||i.value.elevate&&(i.value.inverted?s.value>0:s.value===0)),v=E(()=>i.value.fadeImage?i.value.inverted?1-c.value:c.value:void 0),h=E(()=>{var _,b;if(i.value.hide&&i.value.inverted)return 0;const m=((_=r.value)==null?void 0:_.contentHeight)??0,y=((b=r.value)==null?void 0:b.extensionHeight)??0;return m+y});Ba(E(()=>!!e.scrollBehavior),()=>{Ln(()=>{i.value.hide?i.value.inverted?a.value=s.value>l.value:a.value=u.value||s.valueparseInt(e.order,10)),position:se(e,"location"),layoutSize:h,elementSize:xe(void 0),active:a,absolute:se(e,"absolute")});return de(()=>{const m=l1.filterProps(e);return I(l1,ge({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...p.value,"--v-toolbar-image-opacity":v.value,height:void 0,...g.value},e.style]},m,{collapse:f.value,flat:d.value}),n)}),{}}});const WZ=[null,"default","comfortable","compact"],Cn=Q({density:{type:String,default:"default",validator:e=>WZ.includes(e)}},"density");function ar(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{densityClasses:E(()=>`${t}--density-${e.density}`)}}const UZ=["elevated","flat","tonal","outlined","text","plain"];function fu(e,t){return I(ke,null,[e&&I("span",{key:"overlay",class:`${t}__overlay`},null),I("span",{key:"underlay",class:`${t}__underlay`},null)])}const wa=Q({color:String,variant:{type:String,default:"elevated",validator:e=>UZ.includes(e)}},"variant");function du(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();const n=E(()=>{const{variant:i}=Ge(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:a}=dC(E(()=>{const{variant:i,color:o}=Ge(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}}));return{colorClasses:r,colorStyles:a,variantClasses:n}}const RB=Q({divided:Boolean,...Yr(),...Ie(),...Cn(),...pn(),...Ht(),...et(),...vt(),...wa()},"VBtnGroup"),u1=le()({name:"VBtnGroup",props:RB(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{densityClasses:a}=ar(e),{borderClasses:i}=xa(e),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e);Gt({VBtn:{height:"auto",color:se(e,"color"),density:se(e,"density"),flat:!0,variant:se(e,"variant")}}),de(()=>I(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,i.value,a.value,o.value,s.value,e.class],style:e.style},n))}}),vu=Q({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),hu=Q({value:null,disabled:Boolean,selectedClass:String},"group-item");function gu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=un("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const a=rr();Tt(Symbol.for(`${t.description}:id`),a);const i=nt(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=se(e,"value"),s=E(()=>!!(i.disabled.value||e.disabled));i.register({id:a,value:o,disabled:s},r),En(()=>{i.unregister(a)});const l=E(()=>i.isSelected(a)),u=E(()=>l.value&&[i.selectedClass.value,e.selectedClass]);return Se(l,c=>{r.emit("group:selected",{value:c})}),{id:a,isSelected:l,toggle:()=>i.select(a,!l.value),select:c=>i.select(a,c),selectedClass:u,value:o,disabled:s,group:i}}function ws(e,t){let n=!1;const r=In([]),a=ze(e,"modelValue",[],d=>d==null?[]:VB(r,nn(d)),d=>{const v=XZ(r,d);return e.multiple?v:v[0]}),i=un("useGroup");function o(d,v){const h=d,g=Symbol.for(`${t.description}:id`),m=_d(g,i==null?void 0:i.vnode).indexOf(v);m>-1?r.splice(m,0,h):r.push(h)}function s(d){if(n)return;l();const v=r.findIndex(h=>h.id===d);r.splice(v,1)}function l(){const d=r.find(v=>!v.disabled);d&&e.mandatory==="force"&&!a.value.length&&(a.value=[d.id])}ln(()=>{l()}),En(()=>{n=!0});function u(d,v){const h=r.find(g=>g.id===d);if(!(v&&(h!=null&&h.disabled)))if(e.multiple){const g=a.value.slice(),p=g.findIndex(y=>y===d),m=~p;if(v=v??!m,m&&e.mandatory&&g.length<=1||!m&&e.max!=null&&g.length+1>e.max)return;p<0&&v?g.push(d):p>=0&&!v&&g.splice(p,1),a.value=g}else{const g=a.value.includes(d);if(e.mandatory&&g)return;a.value=v??!g?[d]:[]}}function c(d){if(e.multiple,a.value.length){const v=a.value[0],h=r.findIndex(m=>m.id===v);let g=(h+d)%r.length,p=r[g];for(;p.disabled&&g!==h;)g=(g+d)%r.length,p=r[g];if(p.disabled)return;a.value=[r[g].id]}else{const v=r.find(h=>!h.disabled);v&&(a.value=[v.id])}}const f={register:o,unregister:s,selected:a,select:u,disabled:se(e,"disabled"),prev:()=>c(r.length-1),next:()=>c(1),isSelected:d=>a.value.includes(d),selectedClass:E(()=>e.selectedClass),items:E(()=>r),getItemIndex:d=>YZ(r,d)};return Tt(t,f),f}function YZ(e,t){const n=VB(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function VB(e,t){const n=[];return t.forEach(r=>{const a=e.find(o=>io(r,o.value)),i=e[r];(a==null?void 0:a.value)!=null?n.push(a.id):i!=null&&n.push(i.id)}),n}function XZ(e,t){const n=[];return t.forEach(r=>{const a=e.findIndex(i=>i.id===r);if(~a){const i=e[a];n.push(i.value!=null?i.value:a)}}),n}const vC=Symbol.for("vuetify:v-btn-toggle"),ZZ=Q({...RB(),...vu()},"VBtnToggle"),jZ=le()({name:"VBtnToggle",props:ZZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:a,prev:i,select:o,selected:s}=ws(e,vC);return de(()=>{const l=u1.filterProps(e);return I(u1,ge({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:a,prev:i,select:o,selected:s})]}})}),{next:a,prev:i,select:o}}});const KZ=["x-small","small","default","large","x-large"],so=Q({size:{type:[String,Number],default:"default"}},"size");function Uc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return Kw(()=>{let n,r;return Vp(KZ,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:Ae(e.size),height:Ae(e.size)}),{sizeClasses:n,sizeStyles:r}})}const qZ=Q({color:String,start:Boolean,end:Boolean,icon:Je,...Ie(),...so(),...et({tag:"i"}),...vt()},"VIcon"),Ct=le()({name:"VIcon",props:qZ(),setup(e,t){let{attrs:n,slots:r}=t;const a=pe(),{themeClasses:i}=St(e),{iconData:o}=cZ(E(()=>a.value||e.icon)),{sizeClasses:s}=Uc(e),{textColorClasses:l,textColorStyles:u}=Qn(se(e,"color"));return de(()=>{var f,d;const c=(f=r.default)==null?void 0:f.call(r);return c&&(a.value=(d=jN(c).filter(v=>v.type===is&&v.children&&typeof v.children=="string")[0])==null?void 0:d.children),I(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",i.value,s.value,l.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[s.value?void 0:{fontSize:Ae(e.size),height:Ae(e.size),width:Ae(e.size)},u.value,e.style],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>[c]})}),{}}});function dy(e,t){const n=pe(),r=xe(!1);if(jw){const a=new IntersectionObserver(i=>{e==null||e(i,a),r.value=!!i.find(o=>o.isIntersecting)},t);En(()=>{a.disconnect()}),Se(n,(i,o)=>{o&&(a.unobserve(o),r.value=!1),i&&a.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const JZ=Q({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Ie(),...so(),...et({tag:"div"}),...vt()},"VProgressCircular"),Dc=le()({name:"VProgressCircular",props:JZ(),setup(e,t){let{slots:n}=t;const r=20,a=2*Math.PI*r,i=pe(),{themeClasses:o}=St(e),{sizeClasses:s,sizeStyles:l}=Uc(e),{textColorClasses:u,textColorStyles:c}=Qn(se(e,"color")),{textColorClasses:f,textColorStyles:d}=Qn(se(e,"bgColor")),{intersectionRef:v,isIntersecting:h}=dy(),{resizeRef:g,contentRect:p}=_i(),m=E(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),y=E(()=>Number(e.width)),_=E(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(y.value,32)),b=E(()=>r/(1-y.value/_.value)*2),x=E(()=>y.value/_.value*b.value),S=E(()=>Ae((100-m.value)/100*a));return Ln(()=>{v.value=i.value,g.value=i.value}),de(()=>I(e.tag,{ref:i,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":h.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},o.value,s.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:m.value},{default:()=>[I("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${b.value} ${b.value}`},[I("circle",{class:["v-progress-circular__underlay",f.value],style:d.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":0},null),I("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":S.value},null)]),n.default&&I("div",{class:"v-progress-circular__content"},[n.default({value:m.value})])]})),{}}});const hD={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Cs=Q({location:String},"location");function Ts(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Rn();return{locationStyles:E(()=>{if(!e.location)return{};const{side:i,align:o}=JS(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function s(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[hD[i]]=`calc(100% - ${s(i)}px)`:l[i]=0),o!=="center"?t?l[hD[o]]=`calc(100% - ${s(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const QZ=Q({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Ie(),...Cs({location:"top"}),...Ht(),...et(),...vt()},"VProgressLinear"),vy=le()({name:"VProgressLinear",props:QZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{isRtl:a,rtlClasses:i}=Rn(),{themeClasses:o}=St(e),{locationStyles:s}=Ts(e),{textColorClasses:l,textColorStyles:u}=Qn(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:f}=Bt(E(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:v}=Bt(e,"color"),{roundedClasses:h}=qt(e),{intersectionRef:g,isIntersecting:p}=dy(),m=E(()=>parseInt(e.max,10)),y=E(()=>parseInt(e.height,10)),_=E(()=>parseFloat(e.bufferValue)/m.value*100),b=E(()=>parseFloat(r.value)/m.value*100),x=E(()=>a.value!==e.reverse),S=E(()=>e.indeterminate?"fade-transition":"slide-x-transition"),w=E(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function C(T){if(!g.value)return;const{left:A,right:P,width:D}=g.value.getBoundingClientRect(),M=x.value?D-T.clientX+(P-D):T.clientX-A;r.value=Math.round(M/D*m.value)}return de(()=>I(e.tag,{ref:g,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&p.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},h.value,o.value,i.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Ae(y.value):0,"--v-progress-linear-height":Ae(y.value),...s.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:b.value,onClick:e.clickable&&C},{default:()=>[e.stream&&I("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[x.value?"left":"right"]:Ae(-y.value),borderTop:`${Ae(y.value/2)} dotted`,opacity:w.value,top:`calc(50% - ${Ae(y.value/4)})`,width:Ae(100-_.value,"%"),"--v-progress-linear-stream-to":Ae(y.value*(x.value?1:-1))}},null),I("div",{class:["v-progress-linear__background",c.value],style:[f.value,{opacity:w.value,width:Ae(e.stream?_.value:100,"%")}]},null),I(yi,{name:S.value},{default:()=>[e.indeterminate?I("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(T=>I("div",{key:T,class:["v-progress-linear__indeterminate",T,d.value],style:v.value},null))]):I("div",{class:["v-progress-linear__determinate",d.value],style:[v.value,{width:Ae(b.value,"%")}]},null)]}),n.default&&I("div",{class:"v-progress-linear__content"},[n.default({value:b.value,buffer:_.value})])]})),{}}}),hy=Q({loading:[Boolean,String]},"loader");function Uv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{loaderClasses:E(()=>({[`${t}--loading`]:e.loading}))}}function gy(e,t){var r;let{slots:n}=t;return I("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||I(vy,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const ej=["static","relative","fixed","absolute","sticky"],Yc=Q({position:{type:String,validator:e=>ej.includes(e)}},"position");function Xc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{positionClasses:E(()=>e.position?`${t}--${e.position}`:void 0)}}function tj(){const e=un("useRoute");return E(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function OB(){var e,t;return(t=(e=un("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Yv(e,t){const n=QU("RouterLink"),r=E(()=>!!(e.href||e.to)),a=E(()=>(r==null?void 0:r.value)||zP(t,"click")||zP(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:a,href:se(e,"href")};const i=e.to?n.useLink(e):void 0,o=tj();return{isLink:r,isClickable:a,route:i==null?void 0:i.route,navigate:i==null?void 0:i.navigate,isActive:i&&E(()=>{var s,l,u;return e.exact?o.value?((u=i.isExactActive)==null?void 0:u.value)&&io(i.route.value.query,o.value.query):(l=i.isExactActive)==null?void 0:l.value:(s=i.isActive)==null?void 0:s.value}),href:E(()=>e.to?i==null?void 0:i.route.value.href:e.href)}}const Xv=Q({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let F0=!1;function nj(e,t){let n=!1,r,a;Mt&&(dt(()=>{window.addEventListener("popstate",i),r=e==null?void 0:e.beforeEach((o,s,l)=>{F0?n?t(l):l():setTimeout(()=>n?t(l):l()),F0=!0}),a=e==null?void 0:e.afterEach(()=>{F0=!1})}),nr(()=>{window.removeEventListener("popstate",i),r==null||r(),a==null||a()}));function i(o){var s;(s=o.state)!=null&&s.replaced||(n=!0,setTimeout(()=>n=!1))}}function rj(e,t){Se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&dt(()=>{t(!0)})},{immediate:!0})}const c1=Symbol("rippleStop"),aj=80;function gD(e,t){e.style.transform=t,e.style.webkitTransform=t}function f1(e){return e.constructor.name==="TouchEvent"}function NB(e){return e.constructor.name==="KeyboardEvent"}const ij=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,a=0;if(!NB(e)){const d=t.getBoundingClientRect(),v=f1(e)?e.touches[e.touches.length-1]:e;r=v.clientX-d.left,a=v.clientY-d.top}let i=0,o=.3;(f=t._ripple)!=null&&f.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(a-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?s:`${r-i}px`,c=n.center?l:`${a-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:s,centerY:l}},Fp={show(e,t){var v;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((v=t==null?void 0:t._ripple)!=null&&v.enabled))return;const r=document.createElement("span"),a=document.createElement("span");r.appendChild(a),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:s,y:l,centerX:u,centerY:c}=ij(e,t,n),f=`${i*2}px`;a.className="v-ripple__animation",a.style.width=f,a.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),a.classList.add("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--visible"),gD(a,`translate(${s}, ${l}) scale3d(${o},${o},${o})`),a.dataset.activated=String(performance.now()),setTimeout(()=>{a.classList.remove("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--in"),gD(a,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),a=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var s;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=n.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(n.parentNode)},300)},a)}};function BB(e){return typeof e>"u"||!!e}function Qd(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[c1])){if(e[c1]=!0,f1(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||NB(e),n._ripple.class&&(t.class=n._ripple.class),f1(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Fp.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},aj)}else Fp.show(e,n,t)}}function pD(e){e[c1]=!0}function Nr(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Nr(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Fp.hide(t)}}function zB(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ev=!1;function FB(e){!ev&&(e.keyCode===RP.enter||e.keyCode===RP.space)&&(ev=!0,Qd(e))}function $B(e){ev=!1,Nr(e)}function GB(e){ev&&(ev=!1,Nr(e))}function HB(e,t,n){const{value:r,modifiers:a}=t,i=BB(r);if(i||Fp.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=a.center,e._ripple.circle=a.circle,Rp(r)&&r.class&&(e._ripple.class=r.class),i&&!n){if(a.stop){e.addEventListener("touchstart",pD,{passive:!0}),e.addEventListener("mousedown",pD);return}e.addEventListener("touchstart",Qd,{passive:!0}),e.addEventListener("touchend",Nr,{passive:!0}),e.addEventListener("touchmove",zB,{passive:!0}),e.addEventListener("touchcancel",Nr),e.addEventListener("mousedown",Qd),e.addEventListener("mouseup",Nr),e.addEventListener("mouseleave",Nr),e.addEventListener("keydown",FB),e.addEventListener("keyup",$B),e.addEventListener("blur",GB),e.addEventListener("dragstart",Nr,{passive:!0})}else!i&&n&&WB(e)}function WB(e){e.removeEventListener("mousedown",Qd),e.removeEventListener("touchstart",Qd),e.removeEventListener("touchend",Nr),e.removeEventListener("touchmove",zB),e.removeEventListener("touchcancel",Nr),e.removeEventListener("mouseup",Nr),e.removeEventListener("mouseleave",Nr),e.removeEventListener("keydown",FB),e.removeEventListener("keyup",$B),e.removeEventListener("dragstart",Nr),e.removeEventListener("blur",GB)}function oj(e,t){HB(e,t,!1)}function sj(e){delete e._ripple,WB(e)}function lj(e,t){if(t.value===t.oldValue)return;const n=BB(t.oldValue);HB(e,t,n)}const lo={mounted:oj,unmounted:sj,updated:lj},hC=Q({active:{type:Boolean,default:void 0},symbol:{type:null,default:vC},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Je,appendIcon:Je,block:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Yr(),...Ie(),...Cn(),...hr(),...pn(),...hu(),...hy(),...Cs(),...Yc(),...Ht(),...Xv(),...so(),...et({tag:"button"}),...vt(),...wa({variant:"elevated"})},"VBtn"),Dt=le()({name:"VBtn",directives:{Ripple:lo},props:hC(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=St(e),{borderClasses:i}=xa(e),{colorClasses:o,colorStyles:s,variantClasses:l}=du(e),{densityClasses:u}=ar(e),{dimensionStyles:c}=gr(e),{elevationClasses:f}=Vn(e),{loaderClasses:d}=Uv(e),{locationStyles:v}=Ts(e),{positionClasses:h}=Xc(e),{roundedClasses:g}=qt(e),{sizeClasses:p,sizeStyles:m}=Uc(e),y=gu(e,e.symbol,!1),_=Yv(e,n),b=E(()=>{var T;return e.active!==void 0?e.active:_.isLink.value?(T=_.isActive)==null?void 0:T.value:y==null?void 0:y.isSelected.value}),x=E(()=>(y==null?void 0:y.disabled.value)||e.disabled),S=E(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),w=E(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function C(T){var A;x.value||_.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||n.target==="_blank")||((A=_.navigate)==null||A.call(_,T),y==null||y.toggle())}return rj(_,y==null?void 0:y.select),de(()=>{var L,R;const T=_.isLink.value?"a":e.tag,A=!!(e.prependIcon||r.prepend),P=!!(e.appendIcon||r.append),D=!!(e.icon&&e.icon!==!0),M=(y==null?void 0:y.isSelected.value)&&(!_.isLink.value||((L=_.isActive)==null?void 0:L.value))||!y||((R=_.isActive)==null?void 0:R.value);return Yt(I(T,{type:T==="a"?void 0:"button",class:["v-btn",y==null?void 0:y.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":e.block,"v-btn--disabled":x.value,"v-btn--elevated":S.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},a.value,i.value,M?o.value:void 0,u.value,f.value,d.value,h.value,g.value,p.value,l.value,e.class],style:[M?s.value:void 0,c.value,v.value,m.value,e.style],disabled:x.value||void 0,href:_.href.value,onClick:C,value:w.value},{default:()=>{var O;return[fu(!0,"v-btn"),!e.icon&&A&&I("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?I(ht,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):I(Ct,{key:"prepend-icon",icon:e.prependIcon},null)]),I("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&D?I(Ct,{key:"content-icon",icon:e.icon},null):I(ht,{key:"content-defaults",disabled:!D,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var W;return[((W=r.default)==null?void 0:W.call(r))??e.text]}})]),!e.icon&&P&&I("span",{key:"append",class:"v-btn__append"},[r.append?I(ht,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):I(Ct,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&I("span",{key:"loader",class:"v-btn__loader"},[((O=r.loader)==null?void 0:O.call(r))??I(Dc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[Mr("ripple"),!x.value&&e.ripple,null]])}),{}}}),uj=Q({...hC({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),cj=le()({name:"VAppBarNavIcon",props:uj(),setup(e,t){let{slots:n}=t;return de(()=>I(Dt,ge(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),fj=le()({name:"VAppBarTitle",props:IB(),setup(e,t){let{slots:n}=t;return de(()=>I(lC,ge(e,{class:"v-app-bar-title"}),n)),{}}});const UB=Wr("v-alert-title"),dj=["success","info","warning","error"],vj=Q({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Je,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>dj.includes(e)},...Ie(),...Cn(),...hr(),...pn(),...Cs(),...Yc(),...Ht(),...et(),...vt(),...wa({variant:"flat"})},"VAlert"),hj=le()({name:"VAlert",props:vj(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ze(e,"modelValue"),i=E(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=E(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:s}=St(e),{colorClasses:l,colorStyles:u,variantClasses:c}=du(o),{densityClasses:f}=ar(e),{dimensionStyles:d}=gr(e),{elevationClasses:v}=Vn(e),{locationStyles:h}=Ts(e),{positionClasses:g}=Xc(e),{roundedClasses:p}=qt(e),{textColorClasses:m,textColorStyles:y}=Qn(se(e,"borderColor")),{t:_}=cn(),b=E(()=>({"aria-label":_(e.closeLabel),onClick(x){a.value=!1,n("click:close",x)}}));return()=>{const x=!!(r.prepend||i.value),S=!!(r.title||e.title),w=!!(r.close||e.closable);return a.value&&I(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,f.value,v.value,g.value,p.value,c.value,e.class],style:[u.value,d.value,h.value,e.style],role:"alert"},{default:()=>{var C,T;return[fu(!1,"v-alert"),e.border&&I("div",{key:"border",class:["v-alert__border",m.value],style:y.value},null),x&&I("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?I(ht,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{density:e.density,icon:i.value,size:e.prominent?44:28}}},r.prepend):I(Ct,{key:"prepend-icon",density:e.density,icon:i.value,size:e.prominent?44:28},null)]),I("div",{class:"v-alert__content"},[S&&I(UB,{key:"title"},{default:()=>{var A;return[((A=r.title)==null?void 0:A.call(r))??e.title]}}),((C=r.text)==null?void 0:C.call(r))??e.text,(T=r.default)==null?void 0:T.call(r)]),r.append&&I("div",{key:"append",class:"v-alert__append"},[r.append()]),w&&I("div",{key:"close",class:"v-alert__close"},[r.close?I(ht,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var A;return[(A=r.close)==null?void 0:A.call(r,{props:b.value})]}}):I(Dt,ge({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},b.value),null)])]}})}}});const gj=Q({start:Boolean,end:Boolean,icon:Je,image:String,text:String,...Ie(),...Cn(),...Ht(),...so(),...et(),...vt(),...wa({variant:"flat"})},"VAvatar"),ma=le()({name:"VAvatar",props:gj(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{colorClasses:a,colorStyles:i,variantClasses:o}=du(e),{densityClasses:s}=ar(e),{roundedClasses:l}=qt(e),{sizeClasses:u,sizeStyles:c}=Uc(e);return de(()=>I(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,a.value,s.value,l.value,u.value,o.value,e.class],style:[i.value,c.value,e.style]},{default:()=>{var f;return[e.image?I(Zl,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?I(Ct,{key:"icon",icon:e.icon},null):((f=n.default)==null?void 0:f.call(n))??e.text,fu(!1,"v-avatar")]}})),{}}});const pj=Q({text:String,clickable:Boolean,...Ie(),...vt()},"VLabel"),Zc=le()({name:"VLabel",props:pj(),setup(e,t){let{slots:n}=t;return de(()=>{var r;return I("label",{class:["v-label",{"v-label--clickable":e.clickable},e.class],style:e.style},[e.text,(r=n.default)==null?void 0:r.call(n)])}),{}}});const YB=Symbol.for("vuetify:selection-control-group"),gC=Q({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Je,trueIcon:Je,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:io},...Ie(),...Cn(),...vt()},"SelectionControlGroup"),mj=Q({...gC({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),XB=le()({name:"VSelectionControlGroup",props:mj(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),a=rr(),i=E(()=>e.id||`v-selection-control-group-${a}`),o=E(()=>e.name||i.value),s=new Set;return Tt(YB,{modelValue:r,forceUpdate:()=>{s.forEach(l=>l())},onForceUpdate:l=>{s.add(l),nr(()=>{s.delete(l)})}}),Gt({[e.defaultsTarget]:{color:se(e,"color"),disabled:se(e,"disabled"),density:se(e,"density"),error:se(e,"error"),inline:se(e,"inline"),modelValue:r,multiple:E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:o,falseIcon:se(e,"falseIcon"),trueIcon:se(e,"trueIcon"),readonly:se(e,"readonly"),ripple:se(e,"ripple"),type:se(e,"type"),valueComparator:se(e,"valueComparator")}}),de(()=>{var l;return I("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}}),py=Q({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Ie(),...gC()},"VSelectionControl");function yj(e){const t=nt(YB,void 0),{densityClasses:n}=ar(e),r=ze(e,"modelValue"),a=E(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),i=E(()=>e.falseValue!==void 0?e.falseValue:!1),o=E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),s=E({get(){const v=t?t.modelValue.value:r.value;return o.value?nn(v).some(h=>e.valueComparator(h,a.value)):e.valueComparator(v,a.value)},set(v){if(e.readonly)return;const h=v?a.value:i.value;let g=h;o.value&&(g=v?[...nn(r.value),h]:nn(r.value).filter(p=>!e.valueComparator(p,a.value))),t?t.modelValue.value=g:r.value=g}}),{textColorClasses:l,textColorStyles:u}=Qn(E(()=>{if(!(e.error||e.disabled))return s.value?e.color:e.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:f}=Bt(E(()=>s.value&&!e.error&&!e.disabled?e.color:void 0)),d=E(()=>s.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:a,falseValue:i,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,icon:d}}const jl=le()({name:"VSelectionControl",directives:{Ripple:lo},inheritAttrs:!1,props:py(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:a,densityClasses:i,icon:o,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,trueValue:d}=yj(e),v=rr(),h=E(()=>e.id||`input-${v}`),g=xe(!1),p=xe(!1),m=pe();a==null||a.onForceUpdate(()=>{m.value&&(m.value.checked=s.value)});function y(x){g.value=!0,Ac(x.target,":focus-visible")!==!1&&(p.value=!0)}function _(){g.value=!1,p.value=!1}function b(x){e.readonly&&a&&dt(()=>a.forceUpdate()),s.value=x.target.checked}return de(()=>{var T,A;const x=r.label?r.label({label:e.label,props:{for:h.value}}):e.label,[S,w]=Ss(n),C=I("input",ge({ref:m,checked:s.value,disabled:!!(e.readonly||e.disabled),id:h.value,onBlur:_,onFocus:y,onInput:b,"aria-disabled":!!(e.readonly||e.disabled),type:e.type,value:d.value,name:e.name,"aria-checked":e.type==="checkbox"?s.value:void 0},w),null);return I("div",ge({class:["v-selection-control",{"v-selection-control--dirty":s.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":p.value,"v-selection-control--inline":e.inline},i.value,e.class]},S,{style:e.style}),[I("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(T=r.default)==null?void 0:T.call(r,{backgroundColorClasses:c,backgroundColorStyles:f}),Yt(I("div",{class:["v-selection-control__input"]},[((A=r.input)==null?void 0:A.call(r,{model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,inputNode:C,icon:o.value,props:{onFocus:y,onBlur:_,id:h.value}}))??I(ke,null,[o.value&&I(Ct,{key:"icon",icon:o.value},null),C])]),[[Mr("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),x&&I(Zc,{for:h.value,clickable:!0,onClick:P=>P.stopPropagation()},{default:()=>[x]})])}),{isFocused:g,input:m}}}),ZB=Q({indeterminate:Boolean,indeterminateIcon:{type:Je,default:"$checkboxIndeterminate"},...py({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),ji=le()({name:"VCheckboxBtn",props:ZB(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"indeterminate"),a=ze(e,"modelValue");function i(l){r.value&&(r.value=!1)}const o=E(()=>r.value?e.indeterminateIcon:e.falseIcon),s=E(()=>r.value?e.indeterminateIcon:e.trueIcon);return de(()=>{const l=Sn(jl.filterProps(e),["modelValue"]);return I(jl,ge(l,{modelValue:a.value,"onUpdate:modelValue":[u=>a.value=u,i],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}});function jB(e){const{t}=cn();function n(r){let{name:a}=r;const i={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],o=e[`onClick:${a}`],s=o&&i?t(`$vuetify.input.${i}`,e.label??""):void 0;return I(Ct,{icon:e[`${a}Icon`],"aria-label":s,onClick:o},null)}return{InputIcon:n}}const _j=Q({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Ie(),...oo({transition:{component:cC,leaveAbsolute:!0,group:!0}})},"VMessages"),KB=le()({name:"VMessages",props:_j(),setup(e,t){let{slots:n}=t;const r=E(()=>nn(e.messages)),{textColorClasses:a,textColorStyles:i}=Qn(E(()=>e.color));return de(()=>I(fa,{transition:e.transition,tag:"div",class:["v-messages",a.value,e.class],style:[i.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&r.value.map((o,s)=>I("div",{class:"v-messages__message",key:`${s}-${r.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),Zv=Q({focused:Boolean,"onUpdate:focused":Ar()},"focus");function uo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();const n=ze(e,"focused"),r=E(()=>({[`${t}--focused`]:n.value}));function a(){n.value=!0}function i(){n.value=!1}return{focusClasses:r,isFocused:n,focus:a,blur:i}}const qB=Symbol.for("vuetify:form"),bj=Q({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Sj(e){const t=ze(e,"modelValue"),n=E(()=>e.disabled),r=E(()=>e.readonly),a=xe(!1),i=pe([]),o=pe([]);async function s(){const c=[];let f=!0;o.value=[],a.value=!0;for(const d of i.value){const v=await d.validate();if(v.length>0&&(f=!1,c.push({id:d.id,errorMessages:v})),!f&&e.fastFail)break}return o.value=c,a.value=!1,{valid:f,errors:o.value}}function l(){i.value.forEach(c=>c.reset())}function u(){i.value.forEach(c=>c.resetValidation())}return Se(i,()=>{let c=0,f=0;const d=[];for(const v of i.value)v.isValid===!1?(f++,d.push({id:v.id,errorMessages:v.errorMessages})):v.isValid===!0&&c++;o.value=d,t.value=f>0?!1:c===i.value.length?!0:null},{deep:!0}),Tt(qB,{register:c=>{let{id:f,validate:d,reset:v,resetValidation:h}=c;i.value.some(g=>g.id===f),i.value.push({id:f,validate:d,reset:v,resetValidation:h,isValid:null,errorMessages:[]})},unregister:c=>{i.value=i.value.filter(f=>f.id!==c)},update:(c,f,d)=>{const v=i.value.find(h=>h.id===c);v&&(v.isValid=f,v.errorMessages=d)},isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validateOn:se(e,"validateOn")}),{errors:o,isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validate:s,reset:l,resetValidation:u}}function my(){return nt(qB,null)}const JB=Q({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Zv()},"validation");function QB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr();const r=ze(e,"modelValue"),a=E(()=>e.validationValue===void 0?r.value:e.validationValue),i=my(),o=pe([]),s=xe(!0),l=E(()=>!!(nn(r.value===""?null:r.value).length||nn(a.value===""?null:a.value).length)),u=E(()=>!!(e.disabled??(i==null?void 0:i.isDisabled.value))),c=E(()=>!!(e.readonly??(i==null?void 0:i.isReadonly.value))),f=E(()=>{var b;return(b=e.errorMessages)!=null&&b.length?nn(e.errorMessages).concat(o.value).slice(0,Math.max(0,+e.maxErrors)):o.value}),d=E(()=>{let b=(e.validateOn??(i==null?void 0:i.validateOn.value))||"input";b==="lazy"&&(b="input lazy");const x=new Set((b==null?void 0:b.split(" "))??[]);return{blur:x.has("blur")||x.has("input"),input:x.has("input"),submit:x.has("submit"),lazy:x.has("lazy")}}),v=E(()=>{var b;return e.error||(b=e.errorMessages)!=null&&b.length?!1:e.rules.length?s.value?o.value.length||d.value.lazy?null:!0:!o.value.length:!0}),h=xe(!1),g=E(()=>({[`${t}--error`]:v.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:u.value,[`${t}--readonly`]:c.value})),p=E(()=>e.name??Ge(n));qm(()=>{i==null||i.register({id:p.value,validate:_,reset:m,resetValidation:y})}),En(()=>{i==null||i.unregister(p.value)}),ln(async()=>{d.value.lazy||await _(!0),i==null||i.update(p.value,v.value,f.value)}),Ba(()=>d.value.input,()=>{Se(a,()=>{if(a.value!=null)_();else if(e.focused){const b=Se(()=>e.focused,x=>{x||_(),b()})}})}),Ba(()=>d.value.blur,()=>{Se(()=>e.focused,b=>{b||_()})}),Se(v,()=>{i==null||i.update(p.value,v.value,f.value)});function m(){r.value=null,dt(y)}function y(){s.value=!0,d.value.lazy?o.value=[]:_(!0)}async function _(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const x=[];h.value=!0;for(const S of e.rules){if(x.length>=+(e.maxErrors??1))break;const C=await(typeof S=="function"?S:()=>S)(a.value);if(C!==!0){if(C!==!1&&typeof C!="string"){console.warn(`${C} is not a valid value. Rule functions must return boolean true or a string.`);continue}x.push(C||"")}}return o.value=x,h.value=!1,s.value=b,o.value}return{errorMessages:f,isDirty:l,isDisabled:u,isReadonly:c,isPristine:s,isValid:v,isValidating:h,reset:m,resetValidation:y,validate:_,validationClasses:g}}const co=Q({id:String,appendIcon:Je,centerAffix:{type:Boolean,default:!0},prependIcon:Je,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Ar(),"onClick:append":Ar(),...Ie(),...Cn(),...JB()},"VInput"),$n=le()({name:"VInput",props:{...co()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{densityClasses:i}=ar(e),{rtlClasses:o}=Rn(),{InputIcon:s}=jB(e),l=rr(),u=E(()=>e.id||`input-${l}`),c=E(()=>`${u.value}-messages`),{errorMessages:f,isDirty:d,isDisabled:v,isReadonly:h,isPristine:g,isValid:p,isValidating:m,reset:y,resetValidation:_,validate:b,validationClasses:x}=QB(e,"v-input",u),S=E(()=>({id:u,messagesId:c,isDirty:d,isDisabled:v,isReadonly:h,isPristine:g,isValid:p,isValidating:m,reset:y,resetValidation:_,validate:b})),w=E(()=>{var C;return(C=e.errorMessages)!=null&&C.length||!g.value&&f.value.length?f.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return de(()=>{var D,M,L,R;const C=!!(r.prepend||e.prependIcon),T=!!(r.append||e.appendIcon),A=w.value.length>0,P=!e.hideDetails||e.hideDetails==="auto"&&(A||!!r.details);return I("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},i.value,o.value,x.value,e.class],style:e.style},[C&&I("div",{key:"prepend",class:"v-input__prepend"},[(D=r.prepend)==null?void 0:D.call(r,S.value),e.prependIcon&&I(s,{key:"prepend-icon",name:"prepend"},null)]),r.default&&I("div",{class:"v-input__control"},[(M=r.default)==null?void 0:M.call(r,S.value)]),T&&I("div",{key:"append",class:"v-input__append"},[e.appendIcon&&I(s,{key:"append-icon",name:"append"},null),(L=r.append)==null?void 0:L.call(r,S.value)]),P&&I("div",{class:"v-input__details"},[I(KB,{id:c.value,active:A,messages:w.value},{message:r.message}),(R=r.details)==null?void 0:R.call(r,S.value)])])}),{reset:y,resetValidation:_,validate:b,isValid:p,errorMessages:f}}}),xj=Q({...co(),...Sn(ZB(),["inline"])},"VCheckbox"),wj=le()({name:"VCheckbox",inheritAttrs:!1,props:xj(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ze(e,"modelValue"),{isFocused:i,focus:o,blur:s}=uo(e),l=rr(),u=E(()=>e.id||`checkbox-${l}`);return de(()=>{const[c,f]=Ss(n),d=$n.filterProps(e),v=ji.filterProps(e);return I($n,ge({class:["v-checkbox",e.class]},c,d,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,id:u.value,focused:i.value,style:e.style}),{...r,default:h=>{let{id:g,messagesId:p,isDisabled:m,isReadonly:y}=h;return I(ji,ge(v,{id:g.value,"aria-describedby":p.value,disabled:m.value,readonly:y.value},f,{modelValue:a.value,"onUpdate:modelValue":_=>a.value=_,onFocus:o,onBlur:s}),r)}})}),{}}});const ez=Symbol.for("vuetify:v-chip-group"),Cj=Q({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:io},...Ie(),...vu({selectedClass:"v-chip--selected"}),...et(),...vt(),...wa({variant:"tonal"})},"VChipGroup"),Tj=le()({name:"VChipGroup",props:Cj(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=ws(e,ez);return Gt({VChip:{color:se(e,"color"),disabled:se(e,"disabled"),filter:se(e,"filter"),variant:se(e,"variant")}}),de(()=>I(e.tag,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})),{}}}),Aj=Q({activeClass:String,appendAvatar:String,appendIcon:Je,closable:Boolean,closeIcon:{type:Je,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Je,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Ar(),onClickOnce:Ar(),...Yr(),...Ie(),...Cn(),...pn(),...hu(),...Ht(),...Xv(),...so(),...et({tag:"span"}),...vt(),...wa({variant:"tonal"})},"VChip"),jv=le()({name:"VChip",directives:{Ripple:lo},props:Aj(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=cn(),{borderClasses:o}=xa(e),{colorClasses:s,colorStyles:l,variantClasses:u}=du(e),{densityClasses:c}=ar(e),{elevationClasses:f}=Vn(e),{roundedClasses:d}=qt(e),{sizeClasses:v}=Uc(e),{themeClasses:h}=St(e),g=ze(e,"modelValue"),p=gu(e,ez,!1),m=Yv(e,n),y=E(()=>e.link!==!1&&m.isLink.value),_=E(()=>!e.disabled&&e.link!==!1&&(!!p||e.link||m.isClickable.value)),b=E(()=>({"aria-label":i(e.closeLabel),onClick(w){w.stopPropagation(),g.value=!1,r("click:close",w)}}));function x(w){var C;r("click",w),_.value&&((C=m.navigate)==null||C.call(m,w),p==null||p.toggle())}function S(w){(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),x(w))}return()=>{const w=m.isLink.value?"a":e.tag,C=!!(e.appendIcon||e.appendAvatar),T=!!(C||a.append),A=!!(a.close||e.closable),P=!!(a.filter||e.filter)&&p,D=!!(e.prependIcon||e.prependAvatar),M=!!(D||a.prepend),L=!p||p.isSelected.value;return g.value&&Yt(I(w,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":_.value,"v-chip--filter":P,"v-chip--pill":e.pill},h.value,o.value,L?s.value:void 0,c.value,f.value,d.value,v.value,u.value,p==null?void 0:p.selectedClass.value,e.class],style:[L?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:m.href.value,tabindex:_.value?0:void 0,onClick:x,onKeydown:_.value&&!y.value&&S},{default:()=>{var R;return[fu(_.value,"v-chip"),P&&I(fC,{key:"filter"},{default:()=>[Yt(I("div",{class:"v-chip__filter"},[a.filter?I(ht,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},a.filter):I(Ct,{key:"filter-icon",icon:e.filterIcon},null)]),[[Ya,p.isSelected.value]])]}),M&&I("div",{key:"prepend",class:"v-chip__prepend"},[a.prepend?I(ht,{key:"prepend-defaults",disabled:!D,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},a.prepend):I(ke,null,[e.prependIcon&&I(Ct,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&I(ma,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),I("div",{class:"v-chip__content"},[((R=a.default)==null?void 0:R.call(a,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:e.disabled}))??e.text]),T&&I("div",{key:"append",class:"v-chip__append"},[a.append?I(ht,{key:"append-defaults",disabled:!C,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},a.append):I(ke,null,[e.appendIcon&&I(Ct,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&I(ma,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),A&&I("button",ge({key:"close",class:"v-chip__close",type:"button"},b.value),[a.close?I(ht,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},a.close):I(Ct,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[Mr("ripple"),_.value&&e.ripple,null]])}}});const d1=Symbol.for("vuetify:list");function tz(){const e=nt(d1,{hasPrepend:xe(!1),updateHasPrepend:()=>null}),t={hasPrepend:xe(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Tt(d1,t),e}function nz(){return nt(d1,null)}const Ij={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){const i=new Set;i.add(t);let o=a.get(t);for(;o!=null;)i.add(o),o=a.get(o);return i}else return r.delete(t),r},select:()=>null},rz={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){let i=a.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=a.get(i);return r}else r.delete(t);return r},select:()=>null},Pj={open:rz.open,select:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(!n)return r;const i=[];let o=a.get(t);for(;o!=null;)i.push(o),o=a.get(o);return new Set(i)}},pC=e=>{const t={select:n=>{let{id:r,value:a,selected:i}=n;if(r=rt(r),e&&!a){const o=Array.from(i.entries()).reduce((s,l)=>{let[u,c]=l;return c==="on"?[...s,u]:s},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,a?"on":"off"),i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:n=>{const r=[];for(const[a,i]of n.entries())i==="on"&&r.push(a);return r}};return t},az=e=>{const t=pC(e);return{select:r=>{let{selected:a,id:i,...o}=r;i=rt(i);const s=a.has(i)?new Map([[i,a.get(i)]]):new Map;return t.select({...o,id:i,selected:s})},in:(r,a,i)=>{let o=new Map;return r!=null&&r.length&&(o=t.in(r.slice(0,1),a,i)),o},out:(r,a,i)=>t.out(r,a,i)}},Dj=e=>{const t=pC(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=rt(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},Mj=e=>{const t=az(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=rt(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},kj=e=>{const t={select:n=>{let{id:r,value:a,selected:i,children:o,parents:s}=n;r=rt(r);const l=new Map(i),u=[r];for(;u.length;){const f=u.shift();i.set(f,a?"on":"off"),o.has(f)&&u.push(...o.get(f))}let c=s.get(r);for(;c;){const f=o.get(c),d=f.every(h=>i.get(h)==="on"),v=f.every(h=>!i.has(h)||i.get(h)==="off");i.set(c,d?"on":v?"off":"indeterminate"),c=s.get(c)}return e&&!a&&Array.from(i.entries()).reduce((d,v)=>{let[h,g]=v;return g==="on"?[...d,h]:d},[]).length===0?l:i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:(n,r)=>{const a=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&a.push(i);return a}};return t},tv=Symbol.for("vuetify:nested"),iz={id:xe(),root:{register:()=>null,unregister:()=>null,parents:pe(new Map),children:pe(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:pe(new Set),selected:pe(new Map),selectedValues:pe([])}},Lj=Q({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),Ej=e=>{let t=!1;const n=pe(new Map),r=pe(new Map),a=ze(e,"opened",e.opened,f=>new Set(f),f=>[...f.values()]),i=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return Mj(e.mandatory);case"leaf":return Dj(e.mandatory);case"independent":return pC(e.mandatory);case"single-independent":return az(e.mandatory);case"classic":default:return kj(e.mandatory)}}),o=E(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Pj;case"single":return Ij;case"multiple":default:return rz}}),s=ze(e,"selected",e.selected,f=>i.value.in(f,n.value,r.value),f=>i.value.out(f,n.value,r.value));En(()=>{t=!0});function l(f){const d=[];let v=f;for(;v!=null;)d.unshift(v),v=r.value.get(v);return d}const u=un("nested"),c={id:xe(),root:{opened:a,selected:s,selectedValues:E(()=>{const f=[];for(const[d,v]of s.value.entries())v==="on"&&f.push(d);return f}),register:(f,d,v)=>{d&&f!==d&&r.value.set(f,d),v&&n.value.set(f,[]),d!=null&&n.value.set(d,[...n.value.get(d)||[],f])},unregister:f=>{if(t)return;n.value.delete(f);const d=r.value.get(f);if(d){const v=n.value.get(d)??[];n.value.set(d,v.filter(h=>h!==f))}r.value.delete(f),a.value.delete(f)},open:(f,d,v)=>{u.emit("click:open",{id:f,value:d,path:l(f),event:v});const h=o.value.open({id:f,value:d,opened:new Set(a.value),children:n.value,parents:r.value,event:v});h&&(a.value=h)},openOnSelect:(f,d,v)=>{const h=o.value.select({id:f,value:d,selected:new Map(s.value),opened:new Set(a.value),children:n.value,parents:r.value,event:v});h&&(a.value=h)},select:(f,d,v)=>{u.emit("click:select",{id:f,value:d,path:l(f),event:v});const h=i.value.select({id:f,value:d,selected:new Map(s.value),children:n.value,parents:r.value,event:v});h&&(s.value=h),c.root.openOnSelect(f,d,v)},children:n,parents:r}};return Tt(tv,c),c.root},oz=(e,t)=>{const n=nt(tv,iz),r=Symbol(rr()),a=E(()=>e.value!==void 0?e.value:r),i={...n,id:a,open:(o,s)=>n.root.open(a.value,o,s),openOnSelect:(o,s)=>n.root.openOnSelect(a.value,o,s),isOpen:E(()=>n.root.opened.value.has(a.value)),parent:E(()=>n.root.parents.value.get(a.value)),select:(o,s)=>n.root.select(a.value,o,s),isSelected:E(()=>n.root.selected.value.get(rt(a.value))==="on"),isIndeterminate:E(()=>n.root.selected.value.get(a.value)==="indeterminate"),isLeaf:E(()=>!n.root.children.value.get(a.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(a.value,n.id.value,t),En(()=>{!n.isGroupActivator&&n.root.unregister(a.value)}),t&&Tt(tv,i),i},Rj=()=>{const e=nt(tv,iz);Tt(tv,{...e,isGroupActivator:!0})},Vj=Hr({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Rj(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),Oj=Q({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Je,default:"$collapse"},expandIcon:{type:Je,default:"$expand"},prependIcon:Je,appendIcon:Je,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Ie(),...et()},"VListGroup"),v1=le()({name:"VListGroup",props:Oj(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:a,id:i}=oz(se(e,"value"),!0),o=E(()=>`v-list-group--id-${String(i.value)}`),s=nz(),{isBooted:l}=cu();function u(v){a(!r.value,v)}const c=E(()=>({onClick:u,class:"v-list-group__header",id:o.value})),f=E(()=>r.value?e.collapseIcon:e.expandIcon),d=E(()=>({VListItem:{active:r.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&f.value,appendIcon:e.appendIcon||!e.subgroup&&f.value,title:e.title,value:e.value}}));return de(()=>I(e.tag,{class:["v-list-group",{"v-list-group--prepend":s==null?void 0:s.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class],style:e.style},{default:()=>[n.activator&&I(ht,{defaults:d.value},{default:()=>[I(Vj,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),I(fa,{transition:{component:fy},disabled:!l.value},{default:()=>{var v;return[Yt(I("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)]),[[Ya,r.value]])]}})]})),{}}});const sz=Wr("v-list-item-subtitle"),lz=Wr("v-list-item-title"),Nj=Q({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Je,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Je,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Ar(),onClickOnce:Ar(),...Yr(),...Ie(),...Cn(),...hr(),...pn(),...Ht(),...Xv(),...et(),...vt(),...wa({variant:"text"})},"VListItem"),Ki=le()({name:"VListItem",directives:{Ripple:lo},props:Nj(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const i=Yv(e,n),o=E(()=>e.value===void 0?i.href.value:e.value),{select:s,isSelected:l,isIndeterminate:u,isGroupActivator:c,root:f,parent:d,openOnSelect:v}=oz(o,!1),h=nz(),g=E(()=>{var V;return e.active!==!1&&(e.active||((V=i.isActive)==null?void 0:V.value)||l.value)}),p=E(()=>e.link!==!1&&i.isLink.value),m=E(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||e.value!=null&&!!h)),y=E(()=>e.rounded||e.nav),_=E(()=>e.color??e.activeColor),b=E(()=>({color:g.value?_.value??e.baseColor:e.baseColor,variant:e.variant}));Se(()=>{var V;return(V=i.isActive)==null?void 0:V.value},V=>{V&&d.value!=null&&f.open(d.value,!0),V&&v(V)},{immediate:!0});const{themeClasses:x}=St(e),{borderClasses:S}=xa(e),{colorClasses:w,colorStyles:C,variantClasses:T}=du(b),{densityClasses:A}=ar(e),{dimensionStyles:P}=gr(e),{elevationClasses:D}=Vn(e),{roundedClasses:M}=qt(y),L=E(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),R=E(()=>({isActive:g.value,select:s,isSelected:l.value,isIndeterminate:u.value}));function O(V){var G;a("click",V),!(c||!m.value)&&((G=i.navigate)==null||G.call(i,V),e.value!=null&&s(!l.value,V))}function W(V){(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),O(V))}return de(()=>{const V=p.value?"a":e.tag,G=r.title||e.title!=null,X=r.subtitle||e.subtitle!=null,Z=!!(e.appendAvatar||e.appendIcon),J=!!(Z||r.append),ee=!!(e.prependAvatar||e.prependIcon),F=!!(ee||r.prepend);return h==null||h.updateHasPrepend(F),e.activeColor&&X9("active-color",["color","base-color"]),Yt(I(V,{class:["v-list-item",{"v-list-item--active":g.value,"v-list-item--disabled":e.disabled,"v-list-item--link":m.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!F&&(h==null?void 0:h.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&g.value},x.value,S.value,w.value,A.value,D.value,L.value,M.value,T.value,e.class],style:[C.value,P.value,e.style],href:i.href.value,tabindex:m.value?h?-2:0:void 0,onClick:O,onKeydown:m.value&&!p.value&&W},{default:()=>{var U;return[fu(m.value||g.value,"v-list-item"),F&&I("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?I(ht,{key:"prepend-defaults",disabled:!ee,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var $;return[($=r.prepend)==null?void 0:$.call(r,R.value)]}}):I(ke,null,[e.prependAvatar&&I(ma,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(Ct,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),I("div",{class:"v-list-item__spacer"},null)]),I("div",{class:"v-list-item__content","data-no-activator":""},[G&&I(lz,{key:"title"},{default:()=>{var $;return[(($=r.title)==null?void 0:$.call(r,{title:e.title}))??e.title]}}),X&&I(sz,{key:"subtitle"},{default:()=>{var $;return[(($=r.subtitle)==null?void 0:$.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(U=r.default)==null?void 0:U.call(r,R.value)]),J&&I("div",{key:"append",class:"v-list-item__append"},[r.append?I(ht,{key:"append-defaults",disabled:!Z,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var $;return[($=r.append)==null?void 0:$.call(r,R.value)]}}):I(ke,null,[e.appendIcon&&I(Ct,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(ma,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),I("div",{class:"v-list-item__spacer"},null)])]}}),[[Mr("ripple"),m.value&&e.ripple]])}),{}}}),Bj=Q({color:String,inset:Boolean,sticky:Boolean,title:String,...Ie(),...et()},"VListSubheader"),uz=le()({name:"VListSubheader",props:Bj(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Qn(se(e,"color"));return de(()=>{const i=!!(n.default||e.title);return I(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class],style:[{textColorStyles:a},e.style]},{default:()=>{var o;return[i&&I("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}});const zj=Q({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...Ie(),...vt()},"VDivider"),yy=le()({name:"VDivider",props:zj(),setup(e,t){let{attrs:n}=t;const{themeClasses:r}=St(e),{textColorClasses:a,textColorStyles:i}=Qn(se(e,"color")),o=E(()=>{const s={};return e.length&&(s[e.vertical?"maxHeight":"maxWidth"]=Ae(e.length)),e.thickness&&(s[e.vertical?"borderRightWidth":"borderTopWidth"]=Ae(e.thickness)),s});return de(()=>I("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},r.value,a.value,e.class],style:[o.value,i.value,e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null)),{}}}),Fj=Q({items:Array,returnObject:Boolean},"VListChildren"),cz=le()({name:"VListChildren",props:Fj(),setup(e,t){let{slots:n}=t;return tz(),()=>{var r,a;return((r=n.default)==null?void 0:r.call(n))??((a=e.items)==null?void 0:a.map(i=>{var d,v;let{children:o,props:s,type:l,raw:u}=i;if(l==="divider")return((d=n.divider)==null?void 0:d.call(n,{props:s}))??I(yy,s,null);if(l==="subheader")return((v=n.subheader)==null?void 0:v.call(n,{props:s}))??I(uz,s,null);const c={subtitle:n.subtitle?h=>{var g;return(g=n.subtitle)==null?void 0:g.call(n,{...h,item:u})}:void 0,prepend:n.prepend?h=>{var g;return(g=n.prepend)==null?void 0:g.call(n,{...h,item:u})}:void 0,append:n.append?h=>{var g;return(g=n.append)==null?void 0:g.call(n,{...h,item:u})}:void 0,title:n.title?h=>{var g;return(g=n.title)==null?void 0:g.call(n,{...h,item:u})}:void 0},f=v1.filterProps(s);return o?I(v1,ge({value:s==null?void 0:s.value},f),{activator:h=>{let{props:g}=h;const p={...s,...g,value:e.returnObject?u:s.value};return n.header?n.header({props:p}):I(Ki,p,c)},default:()=>I(cz,{items:o},n)}):n.item?n.item({props:s}):I(Ki,ge(s,{value:e.returnObject?u:s.value}),c)}))}}}),fz=Q({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:io}},"list-items");function _l(e,t){const n=Dn(t,e.itemTitle,t),r=Dn(t,e.itemValue,n),a=Dn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Sn(t,["children"]):t:void 0:Dn(t,e.itemProps),o={title:n,value:r,...i};return{title:String(o.title??""),value:o.value,props:o,children:Array.isArray(a)?dz(e,a):void 0,raw:t}}function dz(e,t){const n=[];for(const r of t)n.push(_l(e,r));return n}function mC(e){const t=E(()=>dz(e,e.items)),n=E(()=>t.value.some(i=>i.value===null));function r(i){return n.value||(i=i.filter(o=>o!==null)),i.map(o=>e.returnObject&&typeof o=="string"?_l(e,o):t.value.find(s=>e.valueComparator(o,s.value))||_l(e,o))}function a(i){return e.returnObject?i.map(o=>{let{raw:s}=o;return s}):i.map(o=>{let{value:s}=o;return s})}return{items:t,transformIn:r,transformOut:a}}function $j(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Gj(e,t){const n=Dn(t,e.itemType,"item"),r=$j(t)?t:Dn(t,e.itemTitle),a=Dn(t,e.itemValue,void 0),i=Dn(t,e.itemChildren),o=e.itemProps===!0?Sn(t,["children"]):Dn(t,e.itemProps),s={title:r,value:a,...o};return{type:n,title:s.title,value:s.value,props:s,children:n==="item"&&i?vz(e,i):void 0,raw:t}}function vz(e,t){const n=[];for(const r of t)n.push(Gj(e,r));return n}function Hj(e){return{items:E(()=>vz(e,e.items))}}const Wj=Q({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,...Lj({selectStrategy:"single-leaf",openStrategy:"list"}),...Yr(),...Ie(),...Cn(),...hr(),...pn(),itemType:{type:String,default:"type"},...fz(),...Ht(),...et(),...vt(),...wa({variant:"text"})},"VList"),_y=le()({name:"VList",props:Wj(),emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=Hj(e),{themeClasses:a}=St(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Bt(se(e,"bgColor")),{borderClasses:s}=xa(e),{densityClasses:l}=ar(e),{dimensionStyles:u}=gr(e),{elevationClasses:c}=Vn(e),{roundedClasses:f}=qt(e),{open:d,select:v}=Ej(e),h=E(()=>e.lines?`v-list--${e.lines}-line`:void 0),g=se(e,"activeColor"),p=se(e,"baseColor"),m=se(e,"color");tz(),Gt({VListGroup:{activeColor:g,baseColor:p,color:m},VListItem:{activeClass:se(e,"activeClass"),activeColor:g,baseColor:p,color:m,density:se(e,"density"),disabled:se(e,"disabled"),lines:se(e,"lines"),nav:se(e,"nav"),slim:se(e,"slim"),variant:se(e,"variant")}});const y=xe(!1),_=pe();function b(A){y.value=!0}function x(A){y.value=!1}function S(A){var P;!y.value&&!(A.relatedTarget&&((P=_.value)!=null&&P.contains(A.relatedTarget)))&&T()}function w(A){if(_.value){if(A.key==="ArrowDown")T("next");else if(A.key==="ArrowUp")T("prev");else if(A.key==="Home")T("first");else if(A.key==="End")T("last");else return;A.preventDefault()}}function C(A){y.value=!0}function T(A){if(_.value)return Tc(_.value,A)}return de(()=>I(e.tag,{ref:_,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},a.value,i.value,s.value,l.value,c.value,h.value,f.value,e.class],style:[o.value,u.value,e.style],tabindex:e.disabled||y.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:b,onFocusout:x,onFocus:S,onKeydown:w,onMousedown:C},{default:()=>[I(cz,{items:r.value,returnObject:e.returnObject},n)]})),{open:d,select:v,focus:T}}}),Uj=Wr("v-list-img"),Yj=Q({start:Boolean,end:Boolean,...Ie(),...et()},"VListItemAction"),Xj=le()({name:"VListItemAction",props:Yj(),setup(e,t){let{slots:n}=t;return de(()=>I(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),Zj=Q({start:Boolean,end:Boolean,...Ie(),...et()},"VListItemMedia"),jj=le()({name:"VListItemMedia",props:Zj(),setup(e,t){let{slots:n}=t;return de(()=>I(e.tag,{class:["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class],style:e.style},n)),{}}});function $0(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Kj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mD(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,a=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return $0({x:a,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,a=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return $0({x:a,y:i},t)}return $0({x:t.width/2,y:t.height/2},t)}const hz={static:Qj,connected:tK},qj=Q({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in hz},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Jj(e,t){const n=pe({}),r=pe();Mt&&Ba(()=>!!(t.isActive.value&&e.locationStrategy),i=>{var o,s;Se(()=>e.locationStrategy,i),nr(()=>{window.removeEventListener("resize",a),r.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(o=e.locationStrategy(t,e,n))==null?void 0:o.updateLocation:r.value=(s=hz[e.locationStrategy](t,e,n))==null?void 0:s.updateLocation});function a(i){var o;(o=r.value)==null||o.call(r,i)}return{contentStyles:n,updateLocation:r}}function Qj(){}function eK(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=Jw(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function tK(e,t,n){(Array.isArray(e.target.value)||hX(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:i}=Kw(()=>{const h=JS(t.location,e.isRtl.value),g=t.origin==="overlap"?h:t.origin==="auto"?N0(h):JS(t.origin,e.isRtl.value);return h.side===g.side&&h.align===B0(g).align?{preferredAnchor:FP(h),preferredOrigin:FP(g)}:{preferredAnchor:h,preferredOrigin:g}}),[o,s,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(h=>E(()=>{const g=parseFloat(t[h]);return isNaN(g)?1/0:g})),c=E(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const h=t.offset.split(" ").map(parseFloat);return h.length<2&&h.push(0),h}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1;const d=new ResizeObserver(()=>{f&&v()});Se([e.target,e.contentEl],(h,g)=>{let[p,m]=h,[y,_]=g;y&&!Array.isArray(y)&&d.unobserve(y),p&&!Array.isArray(p)&&d.observe(p),_&&d.unobserve(_),m&&d.observe(m)},{immediate:!0}),nr(()=>{d.disconnect()});function v(){if(f=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>f=!0)}),!e.target.value||!e.contentEl.value)return;const h=eB(e.target.value),g=eK(e.contentEl.value,e.isRtl.value),p=Np(e.contentEl.value),m=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const y=p.reduce((P,D)=>{const M=D.getBoundingClientRect(),L=new El({x:D===document.documentElement?0:M.x,y:D===document.documentElement?0:M.y,width:D.clientWidth,height:D.clientHeight});return P?new El({x:Math.max(P.left,L.left),y:Math.max(P.top,L.top),width:Math.min(P.right,L.right)-Math.max(P.left,L.left),height:Math.min(P.bottom,L.bottom)-Math.max(P.top,L.top)}):L},void 0);y.x+=m,y.y+=m,y.width-=m*2,y.height-=m*2;let _={anchor:a.value,origin:i.value};function b(P){const D=new El(g),M=mD(P.anchor,h),L=mD(P.origin,D);let{x:R,y:O}=Kj(M,L);switch(P.anchor.side){case"top":O-=c.value[0];break;case"bottom":O+=c.value[0];break;case"left":R-=c.value[0];break;case"right":R+=c.value[0];break}switch(P.anchor.align){case"top":O-=c.value[1];break;case"bottom":O+=c.value[1];break;case"left":R-=c.value[1];break;case"right":R+=c.value[1];break}return D.x+=R,D.y+=O,D.width=Math.min(D.width,l.value),D.height=Math.min(D.height,u.value),{overflows:GP(D,y),x:R,y:O}}let x=0,S=0;const w={x:0,y:0},C={x:!1,y:!1};let T=-1;for(;!(T++>10);){const{x:P,y:D,overflows:M}=b(_);x+=P,S+=D,g.x+=P,g.y+=D;{const L=$P(_.anchor),R=M.x.before||M.x.after,O=M.y.before||M.y.after;let W=!1;if(["x","y"].forEach(V=>{if(V==="x"&&R&&!C.x||V==="y"&&O&&!C.y){const G={anchor:{..._.anchor},origin:{..._.origin}},X=V==="x"?L==="y"?B0:N0:L==="y"?N0:B0;G.anchor=X(G.anchor),G.origin=X(G.origin);const{overflows:Z}=b(G);(Z[V].before<=M[V].before&&Z[V].after<=M[V].after||Z[V].before+Z[V].after<(M[V].before+M[V].after)/2)&&(_=G,W=C[V]=!0)}}),W)continue}M.x.before&&(x+=M.x.before,g.x+=M.x.before),M.x.after&&(x-=M.x.after,g.x-=M.x.after),M.y.before&&(S+=M.y.before,g.y+=M.y.before),M.y.after&&(S-=M.y.after,g.y-=M.y.after);{const L=GP(g,y);w.x=y.width-L.x.before-L.x.after,w.y=y.height-L.y.before-L.y.after,x+=L.x.before,g.x+=L.x.before,S+=L.y.before,g.y+=L.y.before}break}const A=$P(_.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${_.anchor.side} ${_.anchor.align}`,transformOrigin:`${_.origin.side} ${_.origin.align}`,top:Ae(G0(S)),left:e.isRtl.value?void 0:Ae(G0(x)),right:e.isRtl.value?Ae(G0(-x)):void 0,minWidth:Ae(A==="y"?Math.min(o.value,h.width):o.value),maxWidth:Ae(yD(vn(w.x,o.value===1/0?0:o.value,l.value))),maxHeight:Ae(yD(vn(w.y,s.value===1/0?0:s.value,u.value)))}),{available:w,contentBox:g}}return Se(()=>[a.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>v()),dt(()=>{const h=v();if(!h)return;const{available:g,contentBox:p}=h;p.height>g.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function G0(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function yD(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let h1=!0;const $p=[];function nK(e){!h1||$p.length?($p.push(e),g1()):(h1=!1,e(),g1())}let _D=-1;function g1(){cancelAnimationFrame(_D),_D=requestAnimationFrame(()=>{const e=$p.shift();e&&e(),$p.length?g1():h1=!0})}const jg={none:null,close:iK,block:oK,reposition:sK},rK=Q({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in jg}},"VOverlay-scroll-strategies");function aK(e,t){if(!Mt)return;let n;Ln(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=$c(),await dt(),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=jg[e.scrollStrategy])==null||r.call(jg,t,e,n)}))}),nr(()=>{n==null||n.stop()})}function iK(e){function t(n){e.isActive.value=!1}gz(e.targetEl.value??e.contentEl.value,t)}function oK(e,t){var o;const n=(o=e.root.value)==null?void 0:o.offsetParent,r=[...new Set([...Np(e.targetEl.value,t.contained?n:void 0),...Np(e.contentEl.value,t.contained?n:void 0)])].filter(s=>!s.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,i=(s=>rC(s)&&s)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((s,l)=>{s.style.setProperty("--v-body-scroll-x",Ae(-s.scrollLeft)),s.style.setProperty("--v-body-scroll-y",Ae(-s.scrollTop)),s!==document.documentElement&&s.style.setProperty("--v-scrollbar-offset",Ae(a)),s.classList.add("v-overlay-scroll-blocked")}),nr(()=>{r.forEach((s,l)=>{const u=parseFloat(s.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(s.style.getPropertyValue("--v-body-scroll-y"));s.style.removeProperty("--v-body-scroll-x"),s.style.removeProperty("--v-body-scroll-y"),s.style.removeProperty("--v-scrollbar-offset"),s.classList.remove("v-overlay-scroll-blocked"),s.scrollLeft=-u,s.scrollTop=-c}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function sK(e,t,n){let r=!1,a=-1,i=-1;function o(s){nK(()=>{var c,f;const l=performance.now();(f=(c=e.updateLocation).value)==null||f.call(c,s),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?s=>s():requestIdleCallback)(()=>{n.run(()=>{gz(e.targetEl.value??e.contentEl.value,s=>{r?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{o(s)})})):o(s)})})}),nr(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(a)})}function gz(e,t){const n=[document,...Np(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),nr(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const p1=Symbol.for("vuetify:v-menu"),pz=Q({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function mz(e,t){let n=()=>{};function r(o){n==null||n();const s=Number(o?e.openDelay:e.closeDelay);return new Promise(l=>{n=O9(s,()=>{t==null||t(o),l(o)})})}function a(){return r(!0)}function i(){return r(!1)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:i}}const lK=Q({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...pz()},"VOverlay-activator");function uK(e,t){let{isActive:n,isTop:r}=t;const a=un("useActivator"),i=pe();let o=!1,s=!1,l=!0;const u=E(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),c=E(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:f,runCloseDelay:d}=mz(e,w=>{w===(e.openOnHover&&o||u.value&&s)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==w&&(l=!0),n.value=w)}),v=pe(),h={onClick:w=>{w.stopPropagation(),i.value=w.currentTarget||w.target,n.value||(v.value=[w.clientX,w.clientY]),n.value=!n.value},onMouseenter:w=>{var C;(C=w.sourceCapabilities)!=null&&C.firesTouchEvents||(o=!0,i.value=w.currentTarget||w.target,f())},onMouseleave:w=>{o=!1,d()},onFocus:w=>{Ac(w.target,":focus-visible")!==!1&&(s=!0,w.stopPropagation(),i.value=w.currentTarget||w.target,f())},onBlur:w=>{s=!1,w.stopPropagation(),d()}},g=E(()=>{const w={};return c.value&&(w.onClick=h.onClick),e.openOnHover&&(w.onMouseenter=h.onMouseenter,w.onMouseleave=h.onMouseleave),u.value&&(w.onFocus=h.onFocus,w.onBlur=h.onBlur),w}),p=E(()=>{const w={};if(e.openOnHover&&(w.onMouseenter=()=>{o=!0,f()},w.onMouseleave=()=>{o=!1,d()}),u.value&&(w.onFocusin=()=>{s=!0,f()},w.onFocusout=()=>{s=!1,d()}),e.closeOnContentClick){const C=nt(p1,null);w.onClick=()=>{n.value=!1,C==null||C.closeParents()}}return w}),m=E(()=>{const w={};return e.openOnHover&&(w.onMouseenter=()=>{l&&(o=!0,l=!1,f())},w.onMouseleave=()=>{o=!1,d()}),w});Se(r,w=>{w&&(e.openOnHover&&!o&&(!u.value||!s)||u.value&&!s&&(!e.openOnHover||!o))&&(n.value=!1)}),Se(n,w=>{w||setTimeout(()=>{v.value=void 0})},{flush:"post"});const y=pe();Ln(()=>{y.value&&dt(()=>{i.value=jd(y.value)})});const _=pe(),b=E(()=>e.target==="cursor"&&v.value?v.value:_.value?jd(_.value):yz(e.target,a)||i.value),x=E(()=>Array.isArray(b.value)?void 0:b.value);let S;return Se(()=>!!e.activator,w=>{w&&Mt?(S=$c(),S.run(()=>{cK(e,a,{activatorEl:i,activatorEvents:g})})):S&&S.stop()},{flush:"post",immediate:!0}),nr(()=>{S==null||S.stop()}),{activatorEl:i,activatorRef:y,target:b,targetEl:x,targetRef:_,activatorEvents:g,contentEvents:p,scrimEvents:m}}function cK(e,t,n){let{activatorEl:r,activatorEvents:a}=n;Se(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=s(u);c&&o(c)}l&&dt(()=>i())},{immediate:!0}),Se(()=>e.activatorProps,()=>{i()}),nr(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&B9(l,ge(a.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&z9(l,ge(a.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=yz(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function yz(e,t){var r,a;if(!e)return;let n;if(e==="parent"){let i=(a=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:a.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function _z(){if(!Mt)return xe(!1);const{ssr:e}=xs();if(e){const t=xe(!1);return ln(()=>{t.value=!0}),t}else return xe(!0)}const by=Q({eager:Boolean},"lazy");function yC(e,t){const n=xe(!1),r=E(()=>n.value||e.eager||t.value);Se(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:a}}function jc(){const t=un("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const bD=Symbol.for("vuetify:stack"),bf=In([]);function fK(e,t,n){const r=un("useStack"),a=!n,i=nt(bD,void 0),o=In({activeChildren:new Set});Tt(bD,o);const s=xe(+t.value);Ba(e,()=>{var f;const c=(f=bf.at(-1))==null?void 0:f[1];s.value=c?c+10:+t.value,a&&bf.push([r.uid,s.value]),i==null||i.activeChildren.add(r.uid),nr(()=>{if(a){const d=rt(bf).findIndex(v=>v[0]===r.uid);bf.splice(d,1)}i==null||i.activeChildren.delete(r.uid)})});const l=xe(!0);a&&Ln(()=>{var f;const c=((f=bf.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>l.value=c)});const u=E(()=>!o.activeChildren.size);return{globalTop:Ov(l),localTop:u,stackStyles:E(()=>({zIndex:s.value}))}}function dK(e){return{teleportTarget:E(()=>{const n=e.value;if(n===!0||!Mt)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let a=r.querySelector(":scope > .v-overlay-container");return a||(a=document.createElement("div"),a.className="v-overlay-container",r.appendChild(a)),a})}}function vK(){return!0}function bz(e,t,n){if(!e||Sz(e,n)===!1)return!1;const r=dB(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(i=>i==null?void 0:i.contains(e.target))}function Sz(e,t){return(typeof t.value=="object"&&t.value.closeConditional||vK)(e)}function hK(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&bz(e,t,n)&&setTimeout(()=>{Sz(e,n)&&r&&r(e)},0)}function SD(e,t){const n=dB(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const xz={mounted(e,t){const n=a=>hK(a,e,t),r=a=>{e._clickOutside.lastMousedownWasOutside=bz(a,e,t)};SD(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(SD(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function gK(e){const{modelValue:t,color:n,...r}=e;return I(yi,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&I("div",ge({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const Kv=Q({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...lK(),...Ie(),...hr(),...by(),...qj(),...rK(),...vt(),...oo()},"VOverlay"),bi=le()({name:"VOverlay",directives:{ClickOutside:xz},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Kv()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:a}=t;const i=ze(e,"modelValue"),o=E({get:()=>i.value,set:ee=>{ee&&e.disabled||(i.value=ee)}}),{teleportTarget:s}=dK(E(()=>e.attach||e.contained)),{themeClasses:l}=St(e),{rtlClasses:u,isRtl:c}=Rn(),{hasContent:f,onAfterLeave:d}=yC(e,o),v=Bt(E(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:h,localTop:g,stackStyles:p}=fK(o,se(e,"zIndex"),e._disableGlobalStack),{activatorEl:m,activatorRef:y,target:_,targetEl:b,targetRef:x,activatorEvents:S,contentEvents:w,scrimEvents:C}=uK(e,{isActive:o,isTop:g}),{dimensionStyles:T}=gr(e),A=_z(),{scopeId:P}=jc();Se(()=>e.disabled,ee=>{ee&&(o.value=!1)});const D=pe(),M=pe(),{contentStyles:L,updateLocation:R}=Jj(e,{isRtl:c,contentEl:M,target:_,isActive:o});aK(e,{root:D,contentEl:M,targetEl:b,isActive:o,updateLocation:R});function O(ee){a("click:outside",ee),e.persistent?Z():o.value=!1}function W(){return o.value&&h.value}Mt&&Se(o,ee=>{ee?window.addEventListener("keydown",V):window.removeEventListener("keydown",V)},{immediate:!0}),En(()=>{Mt&&window.removeEventListener("keydown",V)});function V(ee){var F,U;ee.key==="Escape"&&h.value&&(e.persistent?Z():(o.value=!1,(F=M.value)!=null&&F.contains(document.activeElement)&&((U=m.value)==null||U.focus())))}const G=OB();Ba(()=>e.closeOnBack,()=>{nj(G,ee=>{h.value&&o.value?(ee(!1),e.persistent?Z():o.value=!1):ee()})});const X=pe();Se(()=>o.value&&(e.absolute||e.contained)&&s.value==null,ee=>{if(ee){const F=nC(D.value);F&&F!==document.scrollingElement&&(X.value=F.scrollTop)}});function Z(){e.noClickAnimation||M.value&&yl(M.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:qd})}function J(){d(),a("afterLeave")}return de(()=>{var ee;return I(ke,null,[(ee=n.activator)==null?void 0:ee.call(n,{isActive:o.value,props:ge({ref:y,targetRef:x},S.value,e.activatorProps)}),!e.disabled&&A.value&&f.value&&I(H6,{disabled:!s.value,to:s.value},{default:()=>[I("div",ge({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":o.value,"v-overlay--contained":e.contained},l.value,u.value,e.class],style:[p.value,{top:Ae(X.value)},e.style],ref:D},P,r),[I(gK,ge({color:v,modelValue:!!e.scrim&&o.value},C.value),null),I(fa,{appear:!0,persisted:!0,transition:e.transition,target:_.value,onAfterLeave:J},{default:()=>{var F;return[Yt(I("div",ge({ref:M,class:["v-overlay__content",e.contentClass],style:[T.value,L.value]},w.value,e.contentProps),[(F=n.default)==null?void 0:F.call(n,{isActive:o})]),[[Ya,o.value],[Mr("click-outside"),{handler:O,closeConditional:W,include:()=>[m.value]}]])]}})])]})])}),{activatorEl:m,target:_,animateClick:Z,contentEl:M,globalTop:h,localTop:g,updateLocation:R}}}),H0=Symbol("Forwarded refs");function W0(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Xa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{scopeId:a}=jc(),i=rr(),o=E(()=>e.id||`v-menu-${i}`),s=pe(),l=nt(p1,null),u=xe(0);Tt(p1,{register(){++u.value},unregister(){--u.value},closeParents(){setTimeout(()=>{u.value||(r.value=!1,l==null||l.closeParents())},40)}});async function c(g){var y,_,b;const p=g.relatedTarget,m=g.target;await dt(),r.value&&p!==m&&((y=s.value)!=null&&y.contentEl)&&((_=s.value)!=null&&_.globalTop)&&![document,s.value.contentEl].includes(m)&&!s.value.contentEl.contains(m)&&((b=Kd(s.value.contentEl)[0])==null||b.focus())}Se(r,g=>{g?(l==null||l.register(),document.addEventListener("focusin",c,{once:!0})):(l==null||l.unregister(),document.removeEventListener("focusin",c))});function f(){l==null||l.closeParents()}function d(g){var p,m,y;e.disabled||g.key==="Tab"&&(qN(Kd((p=s.value)==null?void 0:p.contentEl,!1),g.shiftKey?"prev":"next",b=>b.tabIndex>=0)||(r.value=!1,(y=(m=s.value)==null?void 0:m.activatorEl)==null||y.focus()))}function v(g){var m;if(e.disabled)return;const p=(m=s.value)==null?void 0:m.contentEl;p&&r.value?g.key==="ArrowDown"?(g.preventDefault(),Tc(p,"next")):g.key==="ArrowUp"&&(g.preventDefault(),Tc(p,"prev")):["ArrowDown","ArrowUp"].includes(g.key)&&(r.value=!0,g.preventDefault(),setTimeout(()=>setTimeout(()=>v(g))))}const h=E(()=>ge({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":o.value,onKeydown:v},e.activatorProps));return de(()=>{const g=bi.filterProps(e);return I(bi,ge({ref:s,class:["v-menu",e.class],style:e.style},g,{modelValue:r.value,"onUpdate:modelValue":p=>r.value=p,absolute:!0,activatorProps:h.value,"onClick:outside":f,onKeydown:d},a),{activator:n.activator,default:function(){for(var p=arguments.length,m=new Array(p),y=0;y{var _;return[(_=n.default)==null?void 0:_.call(n,...m)]}})}})}),Xa({id:o,ΨopenChildren:u},s)}});const mK=Q({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Ie(),...oo({transition:{component:cC}})},"VCounter"),xy=le()({name:"VCounter",functional:!0,props:mK(),setup(e,t){let{slots:n}=t;const r=E(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return de(()=>I(fa,{transition:e.transition},{default:()=>[Yt(I("div",{class:["v-counter",e.class],style:e.style},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[Ya,e.active]])]})),{}}});const yK=Q({floating:Boolean,...Ie()},"VFieldLabel"),Jf=le()({name:"VFieldLabel",props:yK(),setup(e,t){let{slots:n}=t;return de(()=>I(Zc,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),_K=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],qv=Q({appendInnerIcon:Je,bgColor:String,clearable:Boolean,clearIcon:{type:Je,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Je,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>_K.includes(e)},"onClick:clear":Ar(),"onClick:appendInner":Ar(),"onClick:prependInner":Ar(),...Ie(),...hy(),...Ht(),...vt()},"VField"),Kc=le()({name:"VField",inheritAttrs:!1,props:{id:String,...Zv(),...qv()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{themeClasses:i}=St(e),{loaderClasses:o}=Uv(e),{focusClasses:s,isFocused:l,focus:u,blur:c}=uo(e),{InputIcon:f}=jB(e),{roundedClasses:d}=qt(e),{rtlClasses:v}=Rn(),h=E(()=>e.dirty||e.active),g=E(()=>!e.singleLine&&!!(e.label||a.label)),p=rr(),m=E(()=>e.id||`input-${p}`),y=E(()=>`${m.value}-messages`),_=pe(),b=pe(),x=pe(),S=E(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:w,backgroundColorStyles:C}=Bt(se(e,"bgColor")),{textColorClasses:T,textColorStyles:A}=Qn(E(()=>e.error||e.disabled?void 0:h.value&&l.value?e.color:e.baseColor));Se(h,M=>{if(g.value){const L=_.value.$el,R=b.value.$el;requestAnimationFrame(()=>{const O=Jw(L),W=R.getBoundingClientRect(),V=W.x-O.x,G=W.y-O.y-(O.height/2-W.height/2),X=W.width/.75,Z=Math.abs(X-O.width)>1?{maxWidth:Ae(X)}:void 0,J=getComputedStyle(L),ee=getComputedStyle(R),F=parseFloat(J.transitionDuration)*1e3||150,U=parseFloat(ee.getPropertyValue("--v-field-label-scale")),$=ee.getPropertyValue("color");L.style.visibility="visible",R.style.visibility="hidden",yl(L,{transform:`translate(${V}px, ${G}px) scale(${U})`,color:$,...Z},{duration:F,easing:qd,direction:M?"normal":"reverse"}).finished.then(()=>{L.style.removeProperty("visibility"),R.style.removeProperty("visibility")})})}},{flush:"post"});const P=E(()=>({isActive:h,isFocused:l,controlRef:x,blur:c,focus:u}));function D(M){M.target!==document.activeElement&&M.preventDefault()}return de(()=>{var V,G,X;const M=e.variant==="outlined",L=a["prepend-inner"]||e.prependInnerIcon,R=!!(e.clearable||a.clear),O=!!(a["append-inner"]||e.appendInnerIcon||R),W=()=>a.label?a.label({...P.value,label:e.label,props:{for:m.value}}):e.label;return I("div",ge({class:["v-field",{"v-field--active":h.value,"v-field--appended":O,"v-field--center-affix":e.centerAffix??!S.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":L,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!W(),[`v-field--variant-${e.variant}`]:!0},i.value,w.value,s.value,o.value,d.value,v.value,e.class],style:[C.value,e.style],onClick:D},n),[I("div",{class:"v-field__overlay"},null),I(gy,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),L&&I("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&I(f,{key:"prepend-icon",name:"prependInner"},null),(V=a["prepend-inner"])==null?void 0:V.call(a,P.value)]),I("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&I(Jf,{key:"floating-label",ref:b,class:[T.value],floating:!0,for:m.value,style:A.value},{default:()=>[W()]}),I(Jf,{ref:_,for:m.value},{default:()=>[W()]}),(G=a.default)==null?void 0:G.call(a,{...P.value,props:{id:m.value,class:"v-field__input","aria-describedby":y.value},focus:u,blur:c})]),R&&I(fC,{key:"clear"},{default:()=>[Yt(I("div",{class:"v-field__clearable",onMousedown:Z=>{Z.preventDefault(),Z.stopPropagation()}},[a.clear?a.clear():I(f,{name:"clear"},null)]),[[Ya,e.dirty]])]}),O&&I("div",{key:"append",class:"v-field__append-inner"},[(X=a["append-inner"])==null?void 0:X.call(a,P.value),e.appendInnerIcon&&I(f,{key:"append-icon",name:"appendInner"},null)]),I("div",{class:["v-field__outline",T.value],style:A.value},[M&&I(ke,null,[I("div",{class:"v-field__outline__start"},null),g.value&&I("div",{class:"v-field__outline__notch"},[I(Jf,{ref:b,floating:!0,for:m.value},{default:()=>[W()]})]),I("div",{class:"v-field__outline__end"},null)]),S.value&&g.value&&I(Jf,{ref:b,floating:!0,for:m.value},{default:()=>[W()]})])])}),{controlRef:x}}});function _C(e){const t=Object.keys(Kc.props).filter(n=>!ay(n)&&n!=="class"&&n!=="style");return YN(e,t)}const bK=["color","file","time","date","datetime-local","week","month"],wy=Q({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...co(),...qv()},"VTextField"),Kl=le()({name:"VTextField",directives:{Intersect:Wv},inheritAttrs:!1,props:wy(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=ze(e,"modelValue"),{isFocused:o,focus:s,blur:l}=uo(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:(i.value??"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),f=E(()=>["plain","underlined"].includes(e.variant));function d(S,w){var C,T;!e.autofocus||!S||(T=(C=w[0].target)==null?void 0:C.focus)==null||T.call(C)}const v=pe(),h=pe(),g=pe(),p=E(()=>bK.includes(e.type)||e.persistentPlaceholder||o.value||e.active);function m(){var S;g.value!==document.activeElement&&((S=g.value)==null||S.focus()),o.value||s()}function y(S){r("mousedown:control",S),S.target!==g.value&&(m(),S.preventDefault())}function _(S){m(),r("click:control",S)}function b(S){S.stopPropagation(),m(),dt(()=>{i.value=null,qw(e["onClick:clear"],S)})}function x(S){var C;const w=S.target;if(i.value=w.value,(C=e.modelModifiers)!=null&&C.trim&&["text","search","password","tel","url"].includes(e.type)){const T=[w.selectionStart,w.selectionEnd];dt(()=>{w.selectionStart=T[0],w.selectionEnd=T[1]})}}return de(()=>{const S=!!(a.counter||e.counter!==!1&&e.counter!=null),w=!!(S||a.details),[C,T]=Ss(n),{modelValue:A,...P}=$n.filterProps(e),D=_C(e);return I($n,ge({ref:v,modelValue:i.value,"onUpdate:modelValue":M=>i.value=M,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":f.value},e.class],style:e.style},C,P,{centerAffix:!f.value,focused:o.value}),{...a,default:M=>{let{id:L,isDisabled:R,isDirty:O,isReadonly:W,isValid:V}=M;return I(Kc,ge({ref:h,onMousedown:y,onClick:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},D,{id:L.value,active:p.value||O.value,dirty:O.value||e.dirty,disabled:R.value,focused:o.value,error:V.value===!1}),{...a,default:G=>{let{props:{class:X,...Z}}=G;const J=Yt(I("input",ge({ref:g,value:i.value,onInput:x,autofocus:e.autofocus,readonly:W.value,disabled:R.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:m,onBlur:l},Z,T),null),[[Mr("intersect"),{handler:d},null,{once:!0}]]);return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[I("span",{class:"v-text-field__prefix__text"},[e.prefix])]),a.default?I("div",{class:X,"data-no-activator":""},[a.default(),J]):mi(J,{class:X}),e.suffix&&I("span",{class:"v-text-field__suffix"},[I("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:w?M=>{var L;return I(ke,null,[(L=a.details)==null?void 0:L.call(a,M),S&&I(ke,null,[I("span",null,null),I(xy,{active:e.persistentCounter||o.value,value:u.value,max:c.value},a.counter)])])}:void 0})}),Xa({},v,h,g)}});const SK=Q({renderless:Boolean,...Ie()},"VVirtualScrollItem"),wz=le()({name:"VVirtualScrollItem",inheritAttrs:!1,props:SK(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{resizeRef:i,contentRect:o}=_i(void 0,"border");Se(()=>{var s;return(s=o.value)==null?void 0:s.height},s=>{s!=null&&r("update:height",s)}),de(()=>{var s,l;return e.renderless?I(ke,null,[(s=a.default)==null?void 0:s.call(a,{itemRef:i})]):I("div",ge({ref:i,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=a.default)==null?void 0:l.call(a)])})}}),xK=-1,wK=1,U0=100,Cz=Q({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function Tz(e,t){const n=xs(),r=xe(0);Ln(()=>{r.value=parseFloat(e.itemHeight||0)});const a=xe(0),i=xe(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),o=xe(0),s=xe(0),l=pe(),u=pe();let c=0;const{resizeRef:f,contentRect:d}=_i();Ln(()=>{f.value=l.value});const v=E(()=>{var G;return l.value===document.documentElement?n.height.value:((G=d.value)==null?void 0:G.height)||parseInt(e.height)||0}),h=E(()=>!!(l.value&&u.value&&v.value&&r.value));let g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length});const m=xe(0);let y=-1;function _(G){return g[G]||r.value}const b=L9(()=>{const G=performance.now();p[0]=0;const X=t.value.length;for(let Z=1;Z<=X-1;Z++)p[Z]=(p[Z-1]||0)+_(Z-1);m.value=Math.max(m.value,performance.now()-G)},m),x=Se(h,G=>{G&&(x(),c=u.value.offsetTop,b.immediate(),R(),~y&&dt(()=>{Mt&&window.requestAnimationFrame(()=>{W(y),y=-1})}))});Se(v,(G,X)=>{X&&R()}),nr(()=>{b.clear()});function S(G,X){const Z=g[G],J=r.value;r.value=J?Math.min(r.value,X):X,(Z!==X||J!==r.value)&&(g[G]=X,b())}function w(G){return G=vn(G,0,t.value.length-1),p[G]||0}function C(G){return CK(p,G)}let T=0,A=0,P=0;function D(){if(!l.value||!u.value)return;const G=l.value.scrollTop,X=performance.now();X-P>500?(A=Math.sign(G-T),c=u.value.offsetTop):A=G-T,T=G,P=X,R()}function M(){!l.value||!u.value||(A=0,P=0,R())}let L=-1;function R(){cancelAnimationFrame(L),L=requestAnimationFrame(O)}function O(){if(!l.value||!v.value)return;const G=T-c,X=Math.sign(A),Z=Math.max(0,G-U0),J=vn(C(Z),0,t.value.length),ee=G+v.value+U0,F=vn(C(ee)+1,J+1,t.value.length);if((X!==xK||Ji.value)){const U=w(a.value)-w(J),$=w(F)-w(i.value);Math.max(U,$)>U0?(a.value=J,i.value=F):(J<=0&&(a.value=J),F>=t.value.length&&(i.value=F))}o.value=w(a.value),s.value=w(t.value.length)-w(i.value)}function W(G){const X=w(G);!l.value||G&&!X?y=G:l.value.scrollTop=X}const V=E(()=>t.value.slice(a.value,i.value).map((G,X)=>({raw:G,index:X+a.value})));return Se(t,()=>{g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length}),b.immediate(),R()},{deep:!0}),{containerRef:l,markerRef:u,computedItems:V,paddingTop:o,paddingBottom:s,scrollToIndex:W,handleScroll:D,handleScrollend:M,handleItemResize:S}}function CK(e,t){let n=e.length-1,r=0,a=0,i=null,o=-1;if(e[n]>1,i=e[a],i>t)n=a-1;else if(i[]},renderless:Boolean,...Cz(),...Ie(),...hr()},"VVirtualScroll"),Cy=le()({name:"VVirtualScroll",props:TK(),setup(e,t){let{slots:n}=t;const r=un("VVirtualScroll"),{dimensionStyles:a}=gr(e),{containerRef:i,markerRef:o,handleScroll:s,handleScrollend:l,handleItemResize:u,scrollToIndex:c,paddingTop:f,paddingBottom:d,computedItems:v}=Tz(e,se(e,"items"));return Ba(()=>e.renderless,()=>{function h(){var m,y;const p=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";i.value===document.documentElement?(document[p]("scroll",s,{passive:!0}),document[p]("scrollend",l)):((m=i.value)==null||m[p]("scroll",s,{passive:!0}),(y=i.value)==null||y[p]("scrollend",l))}ln(()=>{i.value=nC(r.vnode.el,!0),h(!0)}),nr(h)}),de(()=>{const h=v.value.map(g=>I(wz,{key:g.index,renderless:e.renderless,"onUpdate:height":p=>u(g.index,p)},{default:p=>{var m;return(m=n.default)==null?void 0:m.call(n,{item:g.raw,index:g.index,...p})}}));return e.renderless?I(ke,null,[I("div",{ref:o,class:"v-virtual-scroll__spacer",style:{paddingTop:Ae(f.value)}},null),h,I("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Ae(d.value)}},null)]):I("div",{ref:i,class:["v-virtual-scroll",e.class],onScrollPassive:s,onScrollend:l,style:[a.value,e.style]},[I("div",{ref:o,class:"v-virtual-scroll__container",style:{paddingTop:Ae(f.value),paddingBottom:Ae(d.value)}},[h])])}),{scrollToIndex:c}}});function bC(e,t){const n=xe(!1);let r;function a(s){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function i(){await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>{if(n.value){const l=Se(n,()=>{l(),s()})}else s()})}async function o(s){var c,f;if(s.key==="Tab"&&((c=t.value)==null||c.focus()),!["PageDown","PageUp","Home","End"].includes(s.key))return;const l=(f=e.value)==null?void 0:f.$el;if(!l)return;(s.key==="Home"||s.key==="End")&&l.scrollTo({top:s.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await i();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(s.key==="PageDown"||s.key==="Home"){const d=l.getBoundingClientRect().top;for(const v of u)if(v.getBoundingClientRect().top>=d){v.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const v of[...u].reverse())if(v.getBoundingClientRect().bottom<=d){v.focus();break}}}return{onListScroll:a,onListKeydown:o}}const SC=Q({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:Je,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...fz({itemChildren:!1})},"Select"),AK=Q({...SC(),...Sn(wy({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...oo({transition:{component:cy}})},"VSelect"),Az=le()({name:"VSelect",props:AK(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=cn(),a=pe(),i=pe(),o=pe(),s=ze(e,"menu"),l=E({get:()=>s.value,set:V=>{var G;s.value&&!V&&((G=i.value)!=null&&G.ΨopenChildren)||(s.value=V)}}),{items:u,transformIn:c,transformOut:f}=mC(e),d=ze(e,"modelValue",[],V=>c(V===null?[null]:nn(V)),V=>{const G=f(V);return e.multiple?G:G[0]??null}),v=E(()=>typeof e.counterValue=="function"?e.counterValue(d.value):typeof e.counterValue=="number"?e.counterValue:d.value.length),h=my(),g=E(()=>d.value.map(V=>V.value)),p=xe(!1),m=E(()=>l.value?e.closeText:e.openText);let y="",_;const b=E(()=>e.hideSelected?u.value.filter(V=>!d.value.some(G=>G===V)):u.value),x=E(()=>e.hideNoData&&!b.value.length||e.readonly||(h==null?void 0:h.isReadonly.value)),S=E(()=>{var V;return{...e.menuProps,activatorProps:{...((V=e.menuProps)==null?void 0:V.activatorProps)||{},"aria-haspopup":"listbox"}}}),w=pe(),{onListScroll:C,onListKeydown:T}=bC(w,a);function A(V){e.openOnClear&&(l.value=!0)}function P(){x.value||(l.value=!l.value)}function D(V){var ee,F;if(!V.key||e.readonly||h!=null&&h.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(V.key)&&V.preventDefault(),["Enter","ArrowDown"," "].includes(V.key)&&(l.value=!0),["Escape","Tab"].includes(V.key)&&(l.value=!1),V.key==="Home"?(ee=w.value)==null||ee.focus("first"):V.key==="End"&&((F=w.value)==null||F.focus("last"));const G=1e3;function X(U){const $=U.key.length===1,z=!U.ctrlKey&&!U.metaKey&&!U.altKey;return $&&z}if(e.multiple||!X(V))return;const Z=performance.now();Z-_>G&&(y=""),y+=V.key.toLowerCase(),_=Z;const J=u.value.find(U=>U.title.toLowerCase().startsWith(y));J!==void 0&&(d.value=[J])}function M(V){if(e.multiple){const G=d.value.findIndex(X=>e.valueComparator(X.value,V.value));if(G===-1)d.value=[...d.value,V];else{const X=[...d.value];X.splice(G,1),d.value=X}}else d.value=[V],l.value=!1}function L(V){var G;(G=w.value)!=null&&G.$el.contains(V.relatedTarget)||(l.value=!1)}function R(){var V;p.value&&((V=a.value)==null||V.focus())}function O(V){p.value=!0}function W(V){if(V==null)d.value=[];else if(Ac(a.value,":autofill")||Ac(a.value,":-webkit-autofill")){const G=u.value.find(X=>X.title===V);G&&M(G)}else a.value&&(a.value.value="")}return Se(l,()=>{if(!e.hideSelected&&l.value&&d.value.length){const V=b.value.findIndex(G=>d.value.some(X=>e.valueComparator(X.value,G.value)));Mt&&window.requestAnimationFrame(()=>{var G;V>=0&&((G=o.value)==null||G.scrollToIndex(V))})}}),Se(b,(V,G)=>{p.value&&(!V.length&&e.hideNoData&&(l.value=!1),!G.length&&V.length&&(l.value=!0))}),de(()=>{const V=!!(e.chips||n.chip),G=!!(!e.hideNoData||b.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),X=d.value.length>0,Z=Kl.filterProps(e),J=X||!p.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return I(Kl,ge({ref:a},Z,{modelValue:d.value.map(ee=>ee.props.value).join(", "),"onUpdate:modelValue":W,focused:p.value,"onUpdate:focused":ee=>p.value=ee,validationValue:d.externalValue,counterValue:v.value,dirty:X,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":d.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:J,"onClick:clear":A,"onMousedown:control":P,onBlur:L,onKeydown:D,"aria-label":r(m.value),title:r(m.value)}),{...n,default:()=>I(ke,null,[I(Sy,ge({ref:i,modelValue:l.value,"onUpdate:modelValue":ee=>l.value=ee,activator:"parent",contentClass:"v-select__content",disabled:x.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:R},S.value),{default:()=>[G&&I(_y,{ref:w,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:ee=>ee.preventDefault(),onKeydown:T,onFocusin:O,onScrollPassive:C,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var ee,F,U;return[(ee=n["prepend-item"])==null?void 0:ee.call(n),!b.value.length&&!e.hideNoData&&(((F=n["no-data"])==null?void 0:F.call(n))??I(Ki,{title:r(e.noDataText)},null)),I(Cy,{ref:o,renderless:!0,items:b.value},{default:$=>{var q;let{item:z,index:H,itemRef:j}=$;const Y=ge(z.props,{ref:j,key:H,onClick:()=>M(z)});return((q=n.item)==null?void 0:q.call(n,{item:z,index:H,props:Y}))??I(Ki,ge(Y,{role:"option"}),{prepend:te=>{let{isSelected:N}=te;return I(ke,null,[e.multiple&&!e.hideSelected?I(ji,{key:z.value,modelValue:N,ripple:!1,tabindex:"-1"},null):void 0,z.props.prependAvatar&&I(ma,{image:z.props.prependAvatar},null),z.props.prependIcon&&I(Ct,{icon:z.props.prependIcon},null)])}})}}),(U=n["append-item"])==null?void 0:U.call(n)]}})]}),d.value.map((ee,F)=>{function U(j){j.stopPropagation(),j.preventDefault(),M(ee)}const $={"onClick:close":U,onMousedown(j){j.preventDefault(),j.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},z=V?!!n.chip:!!n.selection,H=z?iy(V?n.chip({item:ee,index:F,props:$}):n.selection({item:ee,index:F})):void 0;if(!(z&&!H))return I("div",{key:ee.value,class:"v-select__selection"},[V?n.chip?I(ht,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:ee.title}}},{default:()=>[H]}):I(jv,ge({key:"chip",closable:e.closableChips,size:"small",text:ee.title,disabled:ee.props.disabled},$),null):H??I("span",{class:"v-select__selection-text"},[ee.title,e.multiple&&Fe==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),Jv=Q({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function PK(e,t,n){var s;const r=[],a=(n==null?void 0:n.default)??IK,i=n!=null&&n.filterKeys?nn(n.filterKeys):!1,o=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return r;e:for(let l=0;lr!=null&&r.transform?Ge(t).map(l=>[l,r.transform(l)]):Ge(t));Ln(()=>{const l=typeof n=="function"?n():Ge(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=PK(o.value,u,{customKeyFilter:{...e.customKeyFilter,...Ge(r==null?void 0:r.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),f=Ge(t),d=[],v=new Map;c.forEach(h=>{let{index:g,matches:p}=h;const m=f[g];d.push(m),v.set(m.value,p)}),a.value=d,i.value=v});function s(l){return i.value.get(l.value)}return{filteredItems:a,filteredMatches:i,getMatches:s}}function DK(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),I("span",{class:"v-autocomplete__mask"},[e.substr(t,n)]),I("span",{class:"v-autocomplete__unmask"},[e.substr(t+n)])]):e}const MK=Q({autoSelectFirst:{type:[Boolean,String]},search:String,...Jv({filterKeys:["title"]}),...SC(),...Sn(wy({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...oo({transition:!1})},"VAutocomplete"),kK=le()({name:"VAutocomplete",props:MK(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=cn(),a=pe(),i=xe(!1),o=xe(!0),s=xe(!1),l=pe(),u=pe(),c=ze(e,"menu"),f=E({get:()=>c.value,set:H=>{var j;c.value&&!H&&((j=l.value)!=null&&j.ΨopenChildren)||(c.value=H)}}),d=xe(-1),v=E(()=>{var H;return(H=a.value)==null?void 0:H.color}),h=E(()=>f.value?e.closeText:e.openText),{items:g,transformIn:p,transformOut:m}=mC(e),{textColorClasses:y,textColorStyles:_}=Qn(v),b=ze(e,"search",""),x=ze(e,"modelValue",[],H=>p(H===null?[null]:nn(H)),H=>{const j=m(H);return e.multiple?j:j[0]??null}),S=E(()=>typeof e.counterValue=="function"?e.counterValue(x.value):typeof e.counterValue=="number"?e.counterValue:x.value.length),w=my(),{filteredItems:C,getMatches:T}=Qv(e,g,()=>o.value?"":b.value),A=E(()=>e.hideSelected?C.value.filter(H=>!x.value.some(j=>j.value===H.value)):C.value),P=E(()=>x.value.map(H=>H.props.value)),D=E(()=>{var j;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&b.value===((j=A.value[0])==null?void 0:j.title))&&A.value.length>0&&!o.value&&!s.value}),M=E(()=>e.hideNoData&&!A.value.length||e.readonly||(w==null?void 0:w.isReadonly.value)),L=pe(),{onListScroll:R,onListKeydown:O}=bC(L,a);function W(H){e.openOnClear&&(f.value=!0),b.value=""}function V(){M.value||(f.value=!0)}function G(H){M.value||(i.value&&(H.preventDefault(),H.stopPropagation()),f.value=!f.value)}function X(H){var q,te,N;if(e.readonly||w!=null&&w.isReadonly.value)return;const j=a.value.selectionStart,Y=x.value.length;if((d.value>-1||["Enter","ArrowDown","ArrowUp"].includes(H.key))&&H.preventDefault(),["Enter","ArrowDown"].includes(H.key)&&(f.value=!0),["Escape"].includes(H.key)&&(f.value=!1),D.value&&["Enter","Tab"].includes(H.key)&&z(A.value[0]),H.key==="ArrowDown"&&D.value&&((q=L.value)==null||q.focus("next")),!!e.multiple){if(["Backspace","Delete"].includes(H.key)){if(d.value<0){H.key==="Backspace"&&!b.value&&(d.value=Y-1);return}const B=d.value,K=x.value[d.value];K&&!K.props.disabled&&z(K),d.value=B>=Y-1?Y-2:B}if(H.key==="ArrowLeft"){if(d.value<0&&j>0)return;const B=d.value>-1?d.value-1:Y-1;x.value[B]?d.value=B:(d.value=-1,a.value.setSelectionRange((te=b.value)==null?void 0:te.length,(N=b.value)==null?void 0:N.length))}if(H.key==="ArrowRight"){if(d.value<0)return;const B=d.value+1;x.value[B]?d.value=B:(d.value=-1,a.value.setSelectionRange(0,0))}}}function Z(H){if(Ac(a.value,":autofill")||Ac(a.value,":-webkit-autofill")){const j=g.value.find(Y=>Y.title===H.target.value);j&&z(j)}}function J(){var H;i.value&&(o.value=!0,(H=a.value)==null||H.focus())}function ee(H){i.value=!0,setTimeout(()=>{s.value=!0})}function F(H){s.value=!1}function U(H){(H==null||H===""&&!e.multiple)&&(x.value=[])}const $=xe(!1);function z(H){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!H.props.disabled)if(e.multiple){const Y=x.value.findIndex(q=>e.valueComparator(q.value,H.value));if(Y===-1)x.value=[...x.value,H];else{const q=[...x.value];q.splice(Y,1),x.value=q}}else x.value=j?[H]:[],$.value=!0,b.value=j?H.title:"",f.value=!1,o.value=!0,dt(()=>$.value=!1)}return Se(i,(H,j)=>{var Y;H!==j&&(H?($.value=!0,b.value=e.multiple?"":String(((Y=x.value.at(-1))==null?void 0:Y.props.title)??""),o.value=!0,dt(()=>$.value=!1)):(!e.multiple&&b.value==null?x.value=[]:D.value&&!s.value&&!x.value.some(q=>{let{value:te}=q;return te===A.value[0].value})&&z(A.value[0]),f.value=!1,b.value="",d.value=-1))}),Se(b,H=>{!i.value||$.value||(H&&(f.value=!0),o.value=!H)}),Se(f,()=>{if(!e.hideSelected&&f.value&&x.value.length){const H=A.value.findIndex(j=>x.value.some(Y=>j.value===Y.value));Mt&&window.requestAnimationFrame(()=>{var j;H>=0&&((j=u.value)==null||j.scrollToIndex(H))})}}),Se(A,(H,j)=>{i.value&&(!H.length&&e.hideNoData&&(f.value=!1),!j.length&&H.length&&(f.value=!0))}),de(()=>{const H=!!(e.chips||n.chip),j=!!(!e.hideNoData||A.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Y=x.value.length>0,q=Kl.filterProps(e);return I(Kl,ge({ref:a},q,{modelValue:b.value,"onUpdate:modelValue":[te=>b.value=te,U],focused:i.value,"onUpdate:focused":te=>i.value=te,validationValue:x.externalValue,counterValue:S.value,dirty:Y,onChange:Z,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":f.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!n.selection,"v-autocomplete--selecting-index":d.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:Y?void 0:e.placeholder,"onClick:clear":W,"onMousedown:control":V,onKeydown:X}),{...n,default:()=>I(ke,null,[I(Sy,ge({ref:l,modelValue:f.value,"onUpdate:modelValue":te=>f.value=te,activator:"parent",contentClass:"v-autocomplete__content",disabled:M.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:J},e.menuProps),{default:()=>[j&&I(_y,{ref:L,selected:P.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:O,onFocusin:ee,onFocusout:F,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var te,N,B;return[(te=n["prepend-item"])==null?void 0:te.call(n),!A.value.length&&!e.hideNoData&&(((N=n["no-data"])==null?void 0:N.call(n))??I(Ki,{title:r(e.noDataText)},null)),I(Cy,{ref:u,renderless:!0,items:A.value},{default:K=>{var me;let{item:ae,index:ie,itemRef:ve}=K;const ye=ge(ae.props,{ref:ve,key:ie,active:D.value&&ie===0?!0:void 0,onClick:()=>z(ae)});return((me=n.item)==null?void 0:me.call(n,{item:ae,index:ie,props:ye}))??I(Ki,ye,{prepend:_e=>{let{isSelected:he}=_e;return I(ke,null,[e.multiple&&!e.hideSelected?I(ji,{key:ae.value,modelValue:he,ripple:!1,tabindex:"-1"},null):void 0,ae.props.prependAvatar&&I(ma,{image:ae.props.prependAvatar},null),ae.props.prependIcon&&I(Ct,{icon:ae.props.prependIcon},null)])},title:()=>{var _e,he;return o.value?ae.title:DK(ae.title,(_e=T(ae))==null?void 0:_e.title,((he=b.value)==null?void 0:he.length)??0)}})}}),(B=n["append-item"])==null?void 0:B.call(n)]}})]}),x.value.map((te,N)=>{function B(ve){ve.stopPropagation(),ve.preventDefault(),z(te,!1)}const K={"onClick:close":B,onMousedown(ve){ve.preventDefault(),ve.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ae=H?!!n.chip:!!n.selection,ie=ae?iy(H?n.chip({item:te,index:N,props:K}):n.selection({item:te,index:N})):void 0;if(!(ae&&!ie))return I("div",{key:te.value,class:["v-autocomplete__selection",N===d.value&&["v-autocomplete__selection--selected",y.value]],style:N===d.value?_.value:{}},[H?n.chip?I(ht,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:te.title}}},{default:()=>[ie]}):I(jv,ge({key:"chip",closable:e.closableChips,size:"small",text:te.title,disabled:te.props.disabled},K),null):ie??I("span",{class:"v-autocomplete__selection-text"},[te.title,e.multiple&&N(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(c)?+(e.offsetY??0):["left","right"].includes(c)?+(e.offsetX??0):0));return de(()=>{const c=Number(e.content),f=!e.max||isNaN(c)?e.content:c<=+e.max?c:`${e.max}+`,[d,v]=qS(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return I(e.tag,ge({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},v,{style:e.style}),{default:()=>{var h,g;return[I("div",{class:"v-badge__wrapper"},[(g=(h=t.slots).default)==null?void 0:g.call(h),I(fa,{transition:e.transition},{default:()=>{var p,m;return[Yt(I("span",ge({class:["v-badge__badge",l.value,n.value,a.value,o.value],style:[r.value,s.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":i(e.label,c),"aria-live":"polite",role:"status"},d),[e.dot?void 0:t.slots.badge?(m=(p=t.slots).badge)==null?void 0:m.call(p):e.icon?I(Ct,{icon:e.icon},null):f]),[[Ya,e.modelValue]])]}})])]}})}),{}}});const RK=Q({color:String,density:String,...Ie()},"VBannerActions"),Iz=le()({name:"VBannerActions",props:RK(),setup(e,t){let{slots:n}=t;return Gt({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),de(()=>{var r;return I("div",{class:["v-banner-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Pz=Wr("v-banner-text"),VK=Q({avatar:String,bgColor:String,color:String,icon:Je,lines:String,stacked:Boolean,sticky:Boolean,text:String,...Yr(),...Ie(),...Cn(),...hr(),...aC(),...pn(),...Cs(),...Yc(),...Ht(),...et(),...vt()},"VBanner"),OK=le()({name:"VBanner",props:VK(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(e,"bgColor"),{borderClasses:i}=xa(e),{densityClasses:o}=ar(e),{displayClasses:s,mobile:l}=xs(e),{dimensionStyles:u}=gr(e),{elevationClasses:c}=Vn(e),{locationStyles:f}=Ts(e),{positionClasses:d}=Xc(e),{roundedClasses:v}=qt(e),{themeClasses:h}=St(e),g=se(e,"color"),p=se(e,"density");Gt({VBannerActions:{color:g,density:p}}),de(()=>{const m=!!(e.text||n.text),y=!!(e.avatar||e.icon),_=!!(y||n.prepend);return I(e.tag,{class:["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},h.value,r.value,i.value,o.value,s.value,c.value,d.value,v.value,e.class],style:[a.value,u.value,f.value,e.style],role:"banner"},{default:()=>{var b;return[_&&I("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?I(ht,{key:"prepend-defaults",disabled:!y,defaults:{VAvatar:{color:g.value,density:p.value,icon:e.icon,image:e.avatar}}},n.prepend):I(ma,{key:"prepend-avatar",color:g.value,density:p.value,icon:e.icon,image:e.avatar},null)]),I("div",{class:"v-banner__content"},[m&&I(Pz,{key:"text"},{default:()=>{var x;return[((x=n.text)==null?void 0:x.call(n))??e.text]}}),(b=n.default)==null?void 0:b.call(n)]),n.actions&&I(Iz,{key:"actions"},n.actions)]}})})}});const NK=Q({bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...Yr(),...Ie(),...Cn(),...pn(),...Ht(),...Hc({name:"bottom-navigation"}),...et({tag:"header"}),...vu({modelValue:!0,selectedClass:"v-btn--selected"}),...vt()},"VBottomNavigation"),BK=le()({name:"VBottomNavigation",props:NK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=uy(),{borderClasses:a}=xa(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Bt(se(e,"bgColor")),{densityClasses:s}=ar(e),{elevationClasses:l}=Vn(e),{roundedClasses:u}=qt(e),{ssrBootStyles:c}=cu(),f=E(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),d=se(e,"active"),{layoutItemStyles:v}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:E(()=>d.value?f.value:0),elementSize:f,active:d,absolute:se(e,"absolute")});return ws(e,vC),Gt({VBtn:{color:se(e,"color"),density:se(e,"density"),stacked:E(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),de(()=>I(e.tag,{class:["v-bottom-navigation",{"v-bottom-navigation--active":d.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},r.value,i.value,a.value,s.value,l.value,u.value,e.class],style:[o.value,v.value,{height:Ae(f.value),transform:`translateY(${Ae(d.value?0:100,"%")})`},c.value,e.style]},{default:()=>[n.default&&I("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}});const Dz=Q({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Kv({origin:"center center",scrollStrategy:"block",transition:{component:cy},zIndex:2400})},"VDialog"),m1=le()({name:"VDialog",props:Dz(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{scopeId:a}=jc(),i=pe();function o(l){var f,d;const u=l.relatedTarget,c=l.target;if(u!==c&&((f=i.value)!=null&&f.contentEl)&&((d=i.value)!=null&&d.globalTop)&&![document,i.value.contentEl].includes(c)&&!i.value.contentEl.contains(c)){const v=Kd(i.value.contentEl);if(!v.length)return;const h=v[0],g=v[v.length-1];u===h?g.focus():h.focus()}}Mt&&Se(()=>r.value&&e.retainFocus,l=>{l?document.addEventListener("focusin",o):document.removeEventListener("focusin",o)},{immediate:!0}),Se(r,async l=>{var u,c;await dt(),l?(u=i.value.contentEl)==null||u.focus({preventScroll:!0}):(c=i.value.activatorEl)==null||c.focus({preventScroll:!0})});const s=E(()=>ge({"aria-haspopup":"dialog","aria-expanded":String(r.value)},e.activatorProps));return de(()=>{const l=bi.filterProps(e);return I(bi,ge({ref:i,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},l,{modelValue:r.value,"onUpdate:modelValue":u=>r.value=u,"aria-modal":"true",activatorProps:s.value,role:"dialog"},a),{activator:n.activator,default:function(){for(var u=arguments.length,c=new Array(u),f=0;f{var d;return[(d=n.default)==null?void 0:d.call(n,...c)]}})}})}),Xa({},i)}}),zK=Q({inset:Boolean,...Dz({transition:"bottom-sheet-transition"})},"VBottomSheet"),FK=le()({name:"VBottomSheet",props:zK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue");return de(()=>{const a=m1.filterProps(e);return I(m1,ge(a,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}});const $K=Q({divider:[Number,String],...Ie()},"VBreadcrumbsDivider"),Mz=le()({name:"VBreadcrumbsDivider",props:$K(),setup(e,t){let{slots:n}=t;return de(()=>{var r;return I("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((r=n==null?void 0:n.default)==null?void 0:r.call(n))??e.divider])}),{}}}),GK=Q({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...Ie(),...Xv(),...et({tag:"li"})},"VBreadcrumbsItem"),kz=le()({name:"VBreadcrumbsItem",props:GK(),setup(e,t){let{slots:n,attrs:r}=t;const a=Yv(e,r),i=E(()=>{var u;return e.active||((u=a.isActive)==null?void 0:u.value)}),o=E(()=>i.value?e.activeColor:e.color),{textColorClasses:s,textColorStyles:l}=Qn(o);return de(()=>I(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":i.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:i.value&&e.activeClass},s.value,e.class],style:[l.value,e.style],"aria-current":i.value?"page":void 0},{default:()=>{var u,c;return[a.isLink.value?I("a",{class:"v-breadcrumbs-item--link",href:a.href.value,"aria-current":i.value?"page":void 0,onClick:a.navigate},[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),HK=Q({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Je,items:{type:Array,default:()=>[]},...Ie(),...Cn(),...Ht(),...et({tag:"ul"})},"VBreadcrumbs"),WK=le()({name:"VBreadcrumbs",props:HK(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"bgColor")),{densityClasses:i}=ar(e),{roundedClasses:o}=qt(e);Gt({VBreadcrumbsDivider:{divider:se(e,"divider")},VBreadcrumbsItem:{activeClass:se(e,"activeClass"),activeColor:se(e,"activeColor"),color:se(e,"color"),disabled:se(e,"disabled")}});const s=E(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return de(()=>{const l=!!(n.prepend||e.icon);return I(e.tag,{class:["v-breadcrumbs",r.value,i.value,o.value,e.class],style:[a.value,e.style]},{default:()=>{var u;return[l&&I("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?I(ht,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):I(Ct,{key:"prepend-icon",start:!0,icon:e.icon},null)]),s.value.map((c,f,d)=>{var g;let{item:v,raw:h}=c;return I(ke,null,[((g=n.item)==null?void 0:g.call(n,{item:v,index:f}))??I(kz,ge({key:f,disabled:f>=d.length-1},typeof v=="string"?{title:v}:v),{default:n.title?()=>{var p;return(p=n.title)==null?void 0:p.call(n,{item:v,index:f})}:void 0}),f{var p;return(p=n.divider)==null?void 0:p.call(n,{item:h,index:f})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}});const Lz=le()({name:"VCardActions",props:Ie(),setup(e,t){let{slots:n}=t;return Gt({VBtn:{slim:!0,variant:"text"}}),de(()=>{var r;return I("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Ez=Wr("v-card-subtitle"),Rz=Wr("v-card-title"),UK=Q({appendAvatar:String,appendIcon:Je,prependAvatar:String,prependIcon:Je,subtitle:[String,Number],title:[String,Number],...Ie(),...Cn()},"VCardItem"),Vz=le()({name:"VCardItem",props:UK(),setup(e,t){let{slots:n}=t;return de(()=>{var u;const r=!!(e.prependAvatar||e.prependIcon),a=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),s=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return I("div",{class:["v-card-item",e.class],style:e.style},[a&&I("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?I(ht,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},n.prepend):r&&I(ma,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),I("div",{class:"v-card-item__content"},[s&&I(Rz,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&I(Ez,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&I("div",{key:"append",class:"v-card-item__append"},[n.append?I(ht,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},n.append):i&&I(ma,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),Oz=Wr("v-card-text"),YK=Q({appendAvatar:String,appendIcon:Je,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Je,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...Yr(),...Ie(),...Cn(),...hr(),...pn(),...hy(),...Cs(),...Yc(),...Ht(),...Xv(),...et(),...vt(),...wa({variant:"elevated"})},"VCard"),XK=le()({name:"VCard",directives:{Ripple:lo},props:YK(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=St(e),{borderClasses:i}=xa(e),{colorClasses:o,colorStyles:s,variantClasses:l}=du(e),{densityClasses:u}=ar(e),{dimensionStyles:c}=gr(e),{elevationClasses:f}=Vn(e),{loaderClasses:d}=Uv(e),{locationStyles:v}=Ts(e),{positionClasses:h}=Xc(e),{roundedClasses:g}=qt(e),p=Yv(e,n),m=E(()=>e.link!==!1&&p.isLink.value),y=E(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return de(()=>{const _=m.value?"a":e.tag,b=!!(r.title||e.title!=null),x=!!(r.subtitle||e.subtitle!=null),S=b||x,w=!!(r.append||e.appendAvatar||e.appendIcon),C=!!(r.prepend||e.prependAvatar||e.prependIcon),T=!!(r.image||e.image),A=S||C||w,P=!!(r.text||e.text!=null);return Yt(I(_,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":y.value},a.value,i.value,o.value,u.value,f.value,d.value,h.value,g.value,l.value,e.class],style:[s.value,c.value,v.value,e.style],href:p.href.value,onClick:y.value&&p.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var D;return[T&&I("div",{key:"image",class:"v-card__image"},[r.image?I(ht,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):I(Zl,{key:"image-img",cover:!0,src:e.image},null)]),I(gy,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),A&&I(Vz,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),P&&I(Oz,{key:"text"},{default:()=>{var M;return[((M=r.text)==null?void 0:M.call(r))??e.text]}}),(D=r.default)==null?void 0:D.call(r),r.actions&&I(Lz,null,{default:r.actions}),fu(y.value,"v-card")]}}),[[Mr("ripple"),y.value&&e.ripple]])}),{}}});const ZK=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:a}=e,i=.5,o=16;e.offsetX=n-t,e.offsetY=a-r,Math.abs(e.offsetY)t+o&&e.right(e)),Math.abs(e.offsetX)r+o&&e.down(e))};function jK(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function KK(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),ZK(t)}function qK(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function JK(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>jK(n,t),touchend:n=>KK(n,t),touchmove:n=>qK(n,t)}}function QK(e,t){var s;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,a=(n==null?void 0:n.options)??{passive:!0},i=(s=t.instance)==null?void 0:s.$.uid;if(!r||!i)return;const o=JK(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[i]=o,UN(o).forEach(l=>{r.addEventListener(l,o[l],a)})}function eq(e,t){var i,o;const n=(i=t.value)!=null&&i.parent?e.parentElement:e,r=(o=t.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const a=n._touchHandlers[r];UN(a).forEach(s=>{n.removeEventListener(s,a[s])}),delete n._touchHandlers[r]}const xC={mounted:QK,unmounted:eq},Nz=Symbol.for("vuetify:v-window"),Bz=Symbol.for("vuetify:v-window-group"),wC=Q({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...Ie(),...et(),...vt()},"VWindow"),nv=le()({name:"VWindow",directives:{Touch:xC},props:wC(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{isRtl:a}=Rn(),{t:i}=cn(),o=ws(e,Bz),s=pe(),l=E(()=>a.value?!e.reverse:e.reverse),u=xe(!1),c=E(()=>{const b=e.direction==="vertical"?"y":"x",S=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${b}${S}-transition`}),f=xe(0),d=pe(void 0),v=E(()=>o.items.value.findIndex(b=>o.selected.value.includes(b.id)));Se(v,(b,x)=>{const S=o.items.value.length,w=S-1;S<=2?u.value=be.continuous||v.value!==0),g=E(()=>e.continuous||v.value!==o.items.value.length-1);function p(){h.value&&o.prev()}function m(){g.value&&o.next()}const y=E(()=>{const b=[],x={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:o.prev,ariaLabel:i("$vuetify.carousel.prev")};b.push(h.value?n.prev?n.prev({props:x}):I(Dt,x,null):I("div",null,null));const S={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:o.next,ariaLabel:i("$vuetify.carousel.next")};return b.push(g.value?n.next?n.next({props:S}):I(Dt,S,null):I("div",null,null)),b}),_=E(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?p():m()},right:()=>{l.value?m():p()},start:x=>{let{originalEvent:S}=x;S.stopPropagation()}},...e.touch===!0?{}:e.touch});return de(()=>Yt(I(e.tag,{ref:s,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},r.value,e.class],style:e.style},{default:()=>{var b,x;return[I("div",{class:"v-window__container",style:{height:d.value}},[(b=n.default)==null?void 0:b.call(n,{group:o}),e.showArrows!==!1&&I("div",{class:"v-window__controls"},[y.value])]),(x=n.additional)==null?void 0:x.call(n,{group:o})]}}),[[Mr("touch"),_.value]])),{group:o}}}),tq=Q({color:String,cycle:Boolean,delimiterIcon:{type:Je,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...wC({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),nq=le()({name:"VCarousel",props:tq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{t:a}=cn(),i=pe();let o=-1;Se(r,l),Se(()=>e.interval,l),Se(()=>e.cycle,u=>{u?l():window.clearTimeout(o)}),ln(s);function s(){!e.cycle||!i.value||(o=window.setTimeout(i.value.group.next,+e.interval>0?+e.interval:6e3))}function l(){window.clearTimeout(o),window.requestAnimationFrame(s)}return de(()=>{const u=nv.filterProps(e);return I(nv,ge({ref:i},u,{modelValue:r.value,"onUpdate:modelValue":c=>r.value=c,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:Ae(e.height)},e.style]}),{default:n.default,additional:c=>{let{group:f}=c;return I(ke,null,[!e.hideDelimiters&&I("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[f.items.value.length>0&&I(ht,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[f.items.value.map((d,v)=>{const h={id:`carousel-item-${d.id}`,"aria-label":a("$vuetify.carousel.ariaLabel.delimiter",v+1,f.items.value.length),class:["v-carousel__controls__item",f.isSelected(d.id)&&"v-btn--active"],onClick:()=>f.select(d.id,!0)};return n.item?n.item({props:h,item:d}):I(Dt,ge(d,h),null)})]})]),e.progress&&I(vy,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(f.getItemIndex(r.value)+1)/f.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),CC=Q({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Ie(),...hu(),...by()},"VWindowItem"),rv=le()({name:"VWindowItem",directives:{Touch:xC},props:CC(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=nt(Nz),a=gu(e,Bz),{isBooted:i}=cu();if(!r||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=xe(!1),s=E(()=>i.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!o.value||!r||(o.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){var h;o.value||!r||(o.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=Ae((h=r.rootRef.value)==null?void 0:h.clientHeight)),r.transitionCount.value+=1)}function c(){l()}function f(h){o.value&&dt(()=>{!s.value||!o.value||!r||(r.transitionHeight.value=Ae(h.clientHeight))})}const d=E(()=>{const h=r.isReversed.value?e.reverseTransition:e.transition;return s.value?{name:typeof h!="string"?r.transition.value:h,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:f}:!1}),{hasContent:v}=yC(e,a.isSelected);return de(()=>I(fa,{transition:d.value,disabled:!i.value},{default:()=>{var h;return[Yt(I("div",{class:["v-window-item",a.selectedClass.value,e.class],style:e.style},[v.value&&((h=n.default)==null?void 0:h.call(n))]),[[Ya,a.isSelected.value]])]}})),{groupItem:a}}}),rq=Q({...LB(),...CC()},"VCarouselItem"),aq=le()({name:"VCarouselItem",inheritAttrs:!1,props:rq(),setup(e,t){let{slots:n,attrs:r}=t;de(()=>{const a=Zl.filterProps(e),i=rv.filterProps(e);return I(rv,ge({class:"v-carousel-item"},i),{default:()=>[I(Zl,ge(r,a),n)]})})}});const iq=Wr("v-code");const oq=Q({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...Ie()},"VColorPickerCanvas"),sq=Hr({name:"VColorPickerCanvas",props:oq(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=xe(!1),a=pe(),i=xe(parseFloat(e.width)),o=xe(parseFloat(e.height)),s=pe({x:0,y:0}),l=E({get:()=>s.value,set(p){var _,b;if(!a.value)return;const{x:m,y}=p;s.value=p,n("update:color",{h:((_=e.color)==null?void 0:_.h)??0,s:vn(m,0,i.value)/i.value,v:1-vn(y,0,o.value)/o.value,a:((b=e.color)==null?void 0:b.a)??1})}}),u=E(()=>{const{x:p,y:m}=l.value,y=parseInt(e.dotSize,10)/2;return{width:Ae(e.dotSize),height:Ae(e.dotSize),transform:`translate(${Ae(p-y)}, ${Ae(m-y)})`}}),{resizeRef:c}=_i(p=>{var _;if(!((_=c.value)!=null&&_.offsetParent))return;const{width:m,height:y}=p[0].contentRect;i.value=m,o.value=y});function f(p,m,y){const{left:_,top:b,width:x,height:S}=y;l.value={x:vn(p-_,0,x),y:vn(m-b,0,S)}}function d(p){p.type==="mousedown"&&p.preventDefault(),!e.disabled&&(v(p),window.addEventListener("mousemove",v),window.addEventListener("mouseup",h),window.addEventListener("touchmove",v),window.addEventListener("touchend",h))}function v(p){if(e.disabled||!a.value)return;r.value=!0;const m=V9(p);f(m.clientX,m.clientY,a.value.getBoundingClientRect())}function h(){window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",h),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",h)}function g(){var b;if(!a.value)return;const p=a.value,m=p.getContext("2d");if(!m)return;const y=m.createLinearGradient(0,0,p.width,0);y.addColorStop(0,"hsla(0, 0%, 100%, 1)"),y.addColorStop(1,`hsla(${((b=e.color)==null?void 0:b.h)??0}, 100%, 50%, 1)`),m.fillStyle=y,m.fillRect(0,0,p.width,p.height);const _=m.createLinearGradient(0,0,0,p.height);_.addColorStop(0,"hsla(0, 0%, 100%, 0)"),_.addColorStop(1,"hsla(0, 0%, 0%, 1)"),m.fillStyle=_,m.fillRect(0,0,p.width,p.height)}return Se(()=>{var p;return(p=e.color)==null?void 0:p.h},g,{immediate:!0}),Se(()=>[i.value,o.value],(p,m)=>{g(),s.value={x:l.value.x*p[0]/m[0],y:l.value.y*p[1]/m[1]}},{flush:"post"}),Se(()=>e.color,()=>{if(r.value){r.value=!1;return}s.value=e.color?{x:e.color.s*i.value,y:(1-e.color.v)*o.value}:{x:0,y:0}},{deep:!0,immediate:!0}),ln(()=>g()),de(()=>I("div",{ref:c,class:["v-color-picker-canvas",e.class],style:e.style,onMousedown:d,onTouchstartPassive:d},[I("canvas",{ref:a,width:i.value,height:o.value},null),e.color&&I("div",{class:["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}],style:u.value},null)])),{}}});function lq(e,t){if(t){const{a:n,...r}=e;return r}return e}function uq(e,t){if(t==null||typeof t=="string"){const n=cB(e);return e.a===1?n.slice(0,7):n}if(typeof t=="object"){let n;return ml(t,["r","g","b"])?n=Zi(e):ml(t,["h","s","l"])?n=aB(e):ml(t,["h","s","v"])&&(n=e),lq(n,!ml(t,["a"])&&e.a===1)}return e}const nc={h:0,s:0,v:1,a:1},y1={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)})},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)})},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:Zi,from:oy};var EV;const cq={...y1,inputs:(EV=y1.inputs)==null?void 0:EV.slice(0,3)},_1={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)})},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)})},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:aB,from:eC},fq={..._1,inputs:_1.inputs.slice(0,3)},zz={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t}],to:cB,from:uB},dq={...zz,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t}]},Rl={rgb:cq,rgba:y1,hsl:fq,hsla:_1,hex:dq,hexa:zz},vq=e=>{let{label:t,...n}=e;return I("div",{class:"v-color-picker-edit__input"},[I("input",n,null),I("span",null,[t])])},hq=Q({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Rl).includes(e)},modes:{type:Array,default:()=>Object.keys(Rl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Rl).includes(t))},...Ie()},"VColorPickerEdit"),gq=Hr({name:"VColorPickerEdit",props:hq(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>e.modes.map(i=>({...Rl[i],name:i}))),a=E(()=>{var s;const i=r.value.find(l=>l.name===e.mode);if(!i)return[];const o=e.color?i.to(e.color):null;return(s=i.inputs)==null?void 0:s.map(l=>{let{getValue:u,getColor:c,...f}=l;return{...i.inputProps,...f,disabled:e.disabled,value:o&&u(o),onChange:d=>{const v=d.target;v&&n("update:color",i.from(c(o??nc,v.value)))}}})});return de(()=>{var i;return I("div",{class:["v-color-picker-edit",e.class],style:e.style},[(i=a.value)==null?void 0:i.map(o=>I(vq,o,null)),r.value.length>1&&I(Dt,{icon:"$unfold",size:"x-small",variant:"plain",onClick:()=>{const o=r.value.findIndex(s=>s.name===e.mode);n("update:mode",r.value[(o+1)%r.value.length].name)}},null)])}),{}}});const TC=Symbol.for("vuetify:v-slider");function b1(e,t,n){const r=n==="vertical",a=t.getBoundingClientRect(),i="touches"in e?e.touches[0]:e;return r?i.clientY-(a.top+a.height/2):i.clientX-(a.left+a.width/2)}function pq(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Fz=Q({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...Ht(),...pn({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),$z=e=>{const t=E(()=>parseFloat(e.min)),n=E(()=>parseFloat(e.max)),r=E(()=>+e.step>0?parseFloat(e.step):0),a=E(()=>Math.max(VP(r.value),VP(t.value)));function i(o){if(o=parseFloat(o),r.value<=0)return o;const s=vn(o,t.value,n.value),l=t.value%r.value,u=Math.round((s-l)/r.value)*r.value+l;return parseFloat(Math.min(u,n.value).toFixed(a.value))}return{min:t,max:n,step:r,decimals:a,roundValue:i}},Gz=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:a,onSliderEnd:i,getActiveThumb:o}=e;const{isRtl:s}=Rn(),l=se(t,"reverse"),u=E(()=>t.direction==="vertical"),c=E(()=>u.value!==l.value),{min:f,max:d,step:v,decimals:h,roundValue:g}=n,p=E(()=>parseInt(t.thumbSize,10)),m=E(()=>parseInt(t.tickSize,10)),y=E(()=>parseInt(t.trackSize,10)),_=E(()=>(d.value-f.value)/v.value),b=se(t,"disabled"),x=E(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),S=E(()=>t.error||t.disabled?void 0:t.trackColor??t.color),w=E(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),C=xe(!1),T=xe(0),A=pe(),P=pe();function D($){var K;const z=t.direction==="vertical",H=z?"top":"left",j=z?"height":"width",Y=z?"clientY":"clientX",{[H]:q,[j]:te}=(K=A.value)==null?void 0:K.$el.getBoundingClientRect(),N=pq($,Y);let B=Math.min(Math.max((N-q-T.value)/te,0),1)||0;return(z?c.value:c.value!==s.value)&&(B=1-B),g(f.value+B*(d.value-f.value))}const M=$=>{i({value:D($)}),C.value=!1,T.value=0},L=$=>{P.value=o($),P.value&&(P.value.focus(),C.value=!0,P.value.contains($.target)?T.value=b1($,P.value,t.direction):(T.value=0,a({value:D($)})),r({value:D($)}))},R={passive:!0,capture:!0};function O($){a({value:D($)})}function W($){$.stopPropagation(),$.preventDefault(),M($),window.removeEventListener("mousemove",O,R),window.removeEventListener("mouseup",W)}function V($){var z;M($),window.removeEventListener("touchmove",O,R),(z=$.target)==null||z.removeEventListener("touchend",V)}function G($){var z;L($),window.addEventListener("touchmove",O,R),(z=$.target)==null||z.addEventListener("touchend",V,{passive:!1})}function X($){$.preventDefault(),L($),window.addEventListener("mousemove",O,R),window.addEventListener("mouseup",W,{passive:!1})}const Z=$=>{const z=($-f.value)/(d.value-f.value)*100;return vn(isNaN(z)?0:z,0,100)},J=se(t,"showTicks"),ee=E(()=>J.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map($=>({value:$,position:Z($),label:$.toString()})):Object.keys(t.ticks).map($=>({value:parseFloat($),position:Z(parseFloat($)),label:t.ticks[$]})):_.value!==1/0?ci(_.value+1).map($=>{const z=f.value+$*v.value;return{value:z,position:Z(z)}}):[]:[]),F=E(()=>ee.value.some($=>{let{label:z}=$;return!!z})),U={activeThumbRef:P,color:se(t,"color"),decimals:h,disabled:b,direction:se(t,"direction"),elevation:se(t,"elevation"),hasLabels:F,isReversed:l,indexFromEnd:c,min:f,max:d,mousePressed:C,numTicks:_,onSliderMousedown:X,onSliderTouchstart:G,parsedTicks:ee,parseMouseMove:D,position:Z,readonly:se(t,"readonly"),rounded:se(t,"rounded"),roundValue:g,showTicks:J,startOffset:T,step:v,thumbSize:p,thumbColor:x,thumbLabel:se(t,"thumbLabel"),ticks:se(t,"ticks"),tickSize:m,trackColor:S,trackContainerRef:A,trackFillColor:w,trackSize:y,vertical:u};return Tt(TC,U),U},mq=Q({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...Ie()},"VSliderThumb"),S1=le()({name:"VSliderThumb",directives:{Ripple:lo},props:mq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=nt(TC),{isRtl:i,rtlClasses:o}=Rn();if(!a)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:s,step:l,disabled:u,thumbSize:c,thumbLabel:f,direction:d,isReversed:v,vertical:h,readonly:g,elevation:p,mousePressed:m,decimals:y,indexFromEnd:_}=a,{textColorClasses:b,textColorStyles:x}=Qn(s),{pageup:S,pagedown:w,end:C,home:T,left:A,right:P,down:D,up:M}=KS,L=[S,w,C,T,A,P,D,M],R=E(()=>l.value?[1,2,3]:[1,5,10]);function O(V,G){if(!L.includes(V.key))return;V.preventDefault();const X=l.value||.1,Z=(e.max-e.min)/X;if([A,P,D,M].includes(V.key)){const ee=(h.value?[i.value?A:P,v.value?D:M]:_.value!==i.value?[A,M]:[P,M]).includes(V.key)?1:-1,F=V.shiftKey?2:V.ctrlKey?1:0;G=G+ee*X*R.value[F]}else if(V.key===T)G=e.min;else if(V.key===C)G=e.max;else{const J=V.key===w?1:-1;G=G-J*X*(Z>100?Z/10:10)}return Math.max(e.min,Math.min(e.max,G))}function W(V){const G=O(V,e.modelValue);G!=null&&r("update:modelValue",G)}return de(()=>{const V=Ae(_.value?100-e.position:e.position,"%"),{elevationClasses:G}=Vn(E(()=>u.value?void 0:p.value));return I("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&m.value},e.class,o.value],style:[{"--v-slider-thumb-position":V,"--v-slider-thumb-size":Ae(c.value)},e.style],role:"slider",tabindex:u.value?-1:0,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!g.value,"aria-orientation":d.value,onKeydown:g.value?void 0:W},[I("div",{class:["v-slider-thumb__surface",b.value,G.value],style:{...x.value}},null),Yt(I("div",{class:["v-slider-thumb__ripple",b.value],style:x.value},null),[[Mr("ripple"),e.ripple,null,{circle:!0,center:!0}]]),I(uC,{origin:"bottom center"},{default:()=>{var X;return[Yt(I("div",{class:"v-slider-thumb__label-container"},[I("div",{class:["v-slider-thumb__label"]},[I("div",null,[((X=n["thumb-label"])==null?void 0:X.call(n,{modelValue:e.modelValue}))??e.modelValue.toFixed(l.value?y.value:1)])])]),[[Ya,f.value&&e.focused||f.value==="always"]])]}})])}),{}}});const yq=Q({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Ie()},"VSliderTrack"),Hz=le()({name:"VSliderTrack",props:yq(),emits:{},setup(e,t){let{slots:n}=t;const r=nt(TC);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:a,parsedTicks:i,rounded:o,showTicks:s,tickSize:l,trackColor:u,trackFillColor:c,trackSize:f,vertical:d,min:v,max:h,indexFromEnd:g}=r,{roundedClasses:p}=qt(o),{backgroundColorClasses:m,backgroundColorStyles:y}=Bt(c),{backgroundColorClasses:_,backgroundColorStyles:b}=Bt(u),x=E(()=>`inset-${d.value?"block":"inline"}-${g.value?"end":"start"}`),S=E(()=>d.value?"height":"width"),w=E(()=>({[x.value]:"0%",[S.value]:"100%"})),C=E(()=>e.stop-e.start),T=E(()=>({[x.value]:Ae(e.start,"%"),[S.value]:Ae(C.value,"%")})),A=E(()=>s.value?(d.value?i.value.slice().reverse():i.value).map((D,M)=>{var R;const L=D.value!==v.value&&D.value!==h.value?Ae(D.position,"%"):void 0;return I("div",{key:D.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":D.position>=e.start&&D.position<=e.stop,"v-slider-track__tick--first":D.value===v.value,"v-slider-track__tick--last":D.value===h.value}],style:{[x.value]:L}},[(D.label||n["tick-label"])&&I("div",{class:"v-slider-track__tick-label"},[((R=n["tick-label"])==null?void 0:R.call(n,{tick:D,index:M}))??D.label])])}):[]);return de(()=>I("div",{class:["v-slider-track",p.value,e.class],style:[{"--v-slider-track-size":Ae(f.value),"--v-slider-tick-size":Ae(l.value)},e.style]},[I("div",{class:["v-slider-track__background",_.value,{"v-slider-track__background--opacity":!!a.value||!c.value}],style:{...w.value,...b.value}},null),I("div",{class:["v-slider-track__fill",m.value],style:{...T.value,...y.value}},null),s.value&&I("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":s.value==="always"}]},[A.value])])),{}}}),_q=Q({...Zv(),...Fz(),...co(),modelValue:{type:[Number,String],default:0}},"VSlider"),x1=le()({name:"VSlider",props:_q(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=pe(),{rtlClasses:i}=Rn(),o=$z(e),s=ze(e,"modelValue",void 0,S=>o.roundValue(S??o.min.value)),{min:l,max:u,mousePressed:c,roundValue:f,onSliderMousedown:d,onSliderTouchstart:v,trackContainerRef:h,position:g,hasLabels:p,readonly:m}=Gz({props:e,steps:o,onSliderStart:()=>{r("start",s.value)},onSliderEnd:S=>{let{value:w}=S;const C=f(w);s.value=C,r("end",C)},onSliderMove:S=>{let{value:w}=S;return s.value=f(w)},getActiveThumb:()=>{var S;return(S=a.value)==null?void 0:S.$el}}),{isFocused:y,focus:_,blur:b}=uo(e),x=E(()=>g(s.value));return de(()=>{const S=$n.filterProps(e),w=!!(e.label||n.label||n.prepend);return I($n,ge({class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||p.value,"v-slider--focused":y.value,"v-slider--pressed":c.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},S,{focused:y.value}),{...n,prepend:w?C=>{var T,A;return I(ke,null,[((T=n.label)==null?void 0:T.call(n,C))??(e.label?I(Zc,{id:C.id.value,class:"v-slider__label",text:e.label},null):void 0),(A=n.prepend)==null?void 0:A.call(n,C)])}:void 0,default:C=>{let{id:T,messagesId:A}=C;return I("div",{class:"v-slider__container",onMousedown:m.value?void 0:d,onTouchstartPassive:m.value?void 0:v},[I("input",{id:T.value,name:e.name||T.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:s.value},null),I(Hz,{ref:h,start:0,stop:x.value},{"tick-label":n["tick-label"]}),I(S1,{ref:a,"aria-describedby":A.value,focused:y.value,min:l.value,max:u.value,modelValue:s.value,"onUpdate:modelValue":P=>s.value=P,position:x.value,elevation:e.elevation,onFocus:_,onBlur:b,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}}),bq=Q({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,...Ie()},"VColorPickerPreview"),Sq=Hr({name:"VColorPickerPreview",props:bq(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const r=new AbortController;Fv(()=>r.abort());async function a(){if(!LP)return;const i=new window.EyeDropper;try{const o=await i.open({signal:r.signal}),s=uB(o.sRGBHex);n("update:color",{...e.color??nc,...s})}catch{}}return de(()=>{var i,o;return I("div",{class:["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class],style:e.style},[LP&&I("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[I(Dt,{onClick:a,icon:"$eyeDropper",variant:"plain",density:"comfortable"},null)]),I("div",{class:"v-color-picker-preview__dot"},[I("div",{style:{background:oB(e.color??nc)}},null)]),I("div",{class:"v-color-picker-preview__sliders"},[I(x1,{class:"v-color-picker-preview__track v-color-picker-preview__hue",modelValue:(i=e.color)==null?void 0:i.h,"onUpdate:modelValue":s=>n("update:color",{...e.color??nc,h:s}),step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&I(x1,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",modelValue:((o=e.color)==null?void 0:o.a)??1,"onUpdate:modelValue":s=>n("update:color",{...e.color??nc,a:s}),step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}});const xq={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},wq={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},Cq={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},Tq={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},Aq={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},Iq={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},Pq={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},Dq={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},Mq={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},kq={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},Lq={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},Eq={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},Rq={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},Vq={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},Oq={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},Nq={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},Bq={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},zq={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},Fq={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},$q={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},Gq={red:xq,pink:wq,purple:Cq,deepPurple:Tq,indigo:Aq,blue:Iq,lightBlue:Pq,cyan:Dq,teal:Mq,green:kq,lightGreen:Lq,lime:Eq,yellow:Rq,amber:Vq,orange:Oq,deepOrange:Nq,brown:Bq,blueGrey:zq,grey:Fq,shades:$q},Hq=Q({swatches:{type:Array,default:()=>Wq(Gq)},disabled:Boolean,color:Object,maxHeight:[Number,String],...Ie()},"VColorPickerSwatches");function Wq(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const Uq=Hr({name:"VColorPickerSwatches",props:Hq(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;return de(()=>I("div",{class:["v-color-picker-swatches",e.class],style:[{maxHeight:Ae(e.maxHeight)},e.style]},[I("div",null,[e.swatches.map(r=>I("div",{class:"v-color-picker-swatches__swatch"},[r.map(a=>{const i=ca(a),o=oy(i),s=iB(i);return I("div",{class:"v-color-picker-swatches__color",onClick:()=>o&&n("update:color",o)},[I("div",{style:{background:s}},[e.color&&io(e.color,o)?I(Ct,{size:"x-small",icon:"$success",color:iX(a,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}});const Ty=Q({color:String,...Yr(),...Ie(),...hr(),...pn(),...Cs(),...Yc(),...Ht(),...et(),...vt()},"VSheet"),ql=le()({name:"VSheet",props:Ty(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(se(e,"color")),{borderClasses:o}=xa(e),{dimensionStyles:s}=gr(e),{elevationClasses:l}=Vn(e),{locationStyles:u}=Ts(e),{positionClasses:c}=Xc(e),{roundedClasses:f}=qt(e);return de(()=>I(e.tag,{class:["v-sheet",r.value,a.value,o.value,l.value,c.value,f.value,e.class],style:[i.value,s.value,u.value,e.style]},n)),{}}}),Yq=Q({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Rl).includes(e)},modes:{type:Array,default:()=>Object.keys(Rl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Rl).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...Sn(Ty({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker"),Xq=Hr({name:"VColorPicker",props:Yq(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const t=ze(e,"mode"),n=pe(null),r=ze(e,"modelValue",void 0,o=>{if(o==null||o==="")return null;let s;try{s=oy(ca(o))}catch{return null}return n.value&&(s={...s,h:n.value.h},n.value=null),s},o=>o?uq(o,e.modelValue):null),{rtlClasses:a}=Rn(),i=o=>{r.value=o,n.value=o};return ln(()=>{e.modes.includes(t.value)||(t.value=e.modes[0])}),Gt({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),de(()=>{const o=ql.filterProps(e);return I(ql,ge({rounded:e.rounded,elevation:e.elevation,theme:e.theme,class:["v-color-picker",a.value,e.class],style:[{"--v-color-picker-color-hsv":oB({...r.value??nc,a:1})},e.style]},o,{maxWidth:e.width}),{default:()=>[!e.hideCanvas&&I(sq,{key:"canvas",color:r.value,"onUpdate:color":i,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&I("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&I(Sq,{key:"preview",color:r.value,"onUpdate:color":i,hideAlpha:!t.value.endsWith("a"),disabled:e.disabled},null),!e.hideInputs&&I(gq,{key:"edit",modes:e.modes,mode:t.value,"onUpdate:mode":s=>t.value=s,color:r.value,"onUpdate:color":i,disabled:e.disabled},null)]),e.showSwatches&&I(Uq,{key:"swatches",color:r.value,"onUpdate:color":i,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)]})}),{}}});function Zq(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),I("span",{class:"v-combobox__mask"},[e.substr(t,n)]),I("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const jq=Q({autoSelectFirst:{type:[Boolean,String]},delimiters:Array,...Jv({filterKeys:["title"]}),...SC({hideNoData:!0,returnObject:!0}),...Sn(wy({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...oo({transition:!1})},"VCombobox"),Kq=le()({name:"VCombobox",props:jq(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var j;let{emit:n,slots:r}=t;const{t:a}=cn(),i=pe(),o=xe(!1),s=xe(!0),l=xe(!1),u=pe(),c=pe(),f=ze(e,"menu"),d=E({get:()=>f.value,set:Y=>{var q;f.value&&!Y&&((q=u.value)!=null&&q.ΨopenChildren)||(f.value=Y)}}),v=xe(-1);let h=!1;const g=E(()=>{var Y;return(Y=i.value)==null?void 0:Y.color}),p=E(()=>d.value?e.closeText:e.openText),{items:m,transformIn:y,transformOut:_}=mC(e),{textColorClasses:b,textColorStyles:x}=Qn(g),S=ze(e,"modelValue",[],Y=>y(nn(Y)),Y=>{const q=_(Y);return e.multiple?q:q[0]??null}),w=my(),C=xe(e.multiple?"":((j=S.value[0])==null?void 0:j.title)??""),T=E({get:()=>C.value,set:Y=>{var q;if(C.value=Y??"",e.multiple||(S.value=[_l(e,Y)]),Y&&e.multiple&&((q=e.delimiters)!=null&&q.length)){const te=Y.split(new RegExp(`(?:${e.delimiters.join("|")})+`));te.length>1&&(te.forEach(N=>{N=N.trim(),N&&U(_l(e,N))}),C.value="")}Y||(v.value=-1),s.value=!Y}}),A=E(()=>typeof e.counterValue=="function"?e.counterValue(S.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?S.value.length:T.value.length);Se(C,Y=>{h?dt(()=>h=!1):o.value&&!d.value&&(d.value=!0),n("update:search",Y)}),Se(S,Y=>{var q;e.multiple||(C.value=((q=Y[0])==null?void 0:q.title)??"")});const{filteredItems:P,getMatches:D}=Qv(e,m,()=>s.value?"":T.value),M=E(()=>e.hideSelected?P.value.filter(Y=>!S.value.some(q=>q.value===Y.value)):P.value),L=E(()=>S.value.map(Y=>Y.value)),R=E(()=>{var q;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&T.value===((q=M.value[0])==null?void 0:q.title))&&M.value.length>0&&!s.value&&!l.value}),O=E(()=>e.hideNoData&&!M.value.length||e.readonly||(w==null?void 0:w.isReadonly.value)),W=pe(),{onListScroll:V,onListKeydown:G}=bC(W,i);function X(Y){h=!0,e.openOnClear&&(d.value=!0)}function Z(){O.value||(d.value=!0)}function J(Y){O.value||(o.value&&(Y.preventDefault(),Y.stopPropagation()),d.value=!d.value)}function ee(Y){var N;if(k9(Y)||e.readonly||w!=null&&w.isReadonly.value)return;const q=i.value.selectionStart,te=S.value.length;if((v.value>-1||["Enter","ArrowDown","ArrowUp"].includes(Y.key))&&Y.preventDefault(),["Enter","ArrowDown"].includes(Y.key)&&(d.value=!0),["Escape"].includes(Y.key)&&(d.value=!1),["Enter","Escape","Tab"].includes(Y.key)&&(R.value&&["Enter","Tab"].includes(Y.key)&&U(P.value[0]),s.value=!0),Y.key==="ArrowDown"&&R.value&&((N=W.value)==null||N.focus("next")),!!e.multiple){if(["Backspace","Delete"].includes(Y.key)){if(v.value<0){Y.key==="Backspace"&&!T.value&&(v.value=te-1);return}const B=v.value,K=S.value[v.value];K&&!K.props.disabled&&U(K,!1),v.value=B>=te-1?te-2:B}if(Y.key==="ArrowLeft"){if(v.value<0&&q>0)return;const B=v.value>-1?v.value-1:te-1;S.value[B]?v.value=B:(v.value=-1,i.value.setSelectionRange(T.value.length,T.value.length))}if(Y.key==="ArrowRight"){if(v.value<0)return;const B=v.value+1;S.value[B]?v.value=B:(v.value=-1,i.value.setSelectionRange(0,0))}Y.key==="Enter"&&T.value&&(U(_l(e,T.value)),T.value="")}}function F(){var Y;o.value&&(s.value=!0,(Y=i.value)==null||Y.focus())}function U(Y){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.multiple){const te=S.value.findIndex(B=>e.valueComparator(B.value,Y.value)),N=q??!~te;if(~te){const B=N?[...S.value,Y]:[...S.value];B.splice(te,1),S.value=B}else N&&(S.value=[...S.value,Y]);T.value=""}else{const te=q!==!1;S.value=te?[Y]:[],C.value=te?Y.title:"",dt(()=>{d.value=!1,s.value=!0})}}function $(Y){o.value=!0,setTimeout(()=>{l.value=!0})}function z(Y){l.value=!1}function H(Y){(Y==null||Y===""&&!e.multiple)&&(S.value=[])}return Se(o,(Y,q)=>{Y||Y===q||(v.value=-1,d.value=!1,R.value&&!l.value&&!S.value.some(te=>{let{value:N}=te;return N===M.value[0].value})?U(M.value[0]):e.multiple&&T.value&&U(_l(e,T.value)))}),Se(d,()=>{if(!e.hideSelected&&d.value&&S.value.length){const Y=M.value.findIndex(q=>S.value.some(te=>e.valueComparator(te.value,q.value)));Mt&&window.requestAnimationFrame(()=>{var q;Y>=0&&((q=c.value)==null||q.scrollToIndex(Y))})}}),Se(M,(Y,q)=>{o.value&&(!Y.length&&e.hideNoData&&(d.value=!1),!q.length&&Y.length&&(d.value=!0))}),de(()=>{const Y=!!(e.chips||r.chip),q=!!(!e.hideNoData||M.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),te=S.value.length>0,N=Kl.filterProps(e);return I(Kl,ge({ref:i},N,{modelValue:T.value,"onUpdate:modelValue":[B=>T.value=B,H],focused:o.value,"onUpdate:focused":B=>o.value=B,validationValue:S.externalValue,counterValue:A.value,dirty:te,class:["v-combobox",{"v-combobox--active-menu":d.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!r.selection,"v-combobox--selecting-index":v.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:te?void 0:e.placeholder,"onClick:clear":X,"onMousedown:control":Z,onKeydown:ee}),{...r,default:()=>I(ke,null,[I(Sy,ge({ref:u,modelValue:d.value,"onUpdate:modelValue":B=>d.value=B,activator:"parent",contentClass:"v-combobox__content",disabled:O.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:F},e.menuProps),{default:()=>[q&&I(_y,{ref:W,selected:L.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:B=>B.preventDefault(),onKeydown:G,onFocusin:$,onFocusout:z,onScrollPassive:V,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var B,K,ae;return[(B=r["prepend-item"])==null?void 0:B.call(r),!M.value.length&&!e.hideNoData&&(((K=r["no-data"])==null?void 0:K.call(r))??I(Ki,{title:a(e.noDataText)},null)),I(Cy,{ref:c,renderless:!0,items:M.value},{default:ie=>{var he;let{item:ve,index:ye,itemRef:me}=ie;const _e=ge(ve.props,{ref:me,key:ye,active:R.value&&ye===0?!0:void 0,onClick:()=>U(ve,null)});return((he=r.item)==null?void 0:he.call(r,{item:ve,index:ye,props:_e}))??I(Ki,_e,{prepend:De=>{let{isSelected:Me}=De;return I(ke,null,[e.multiple&&!e.hideSelected?I(ji,{key:ve.value,modelValue:Me,ripple:!1,tabindex:"-1"},null):void 0,ve.props.prependAvatar&&I(ma,{image:ve.props.prependAvatar},null),ve.props.prependIcon&&I(Ct,{icon:ve.props.prependIcon},null)])},title:()=>{var De,Me;return s.value?ve.title:Zq(ve.title,(De=D(ve))==null?void 0:De.title,((Me=T.value)==null?void 0:Me.length)??0)}})}}),(ae=r["append-item"])==null?void 0:ae.call(r)]}})]}),S.value.map((B,K)=>{function ae(me){me.stopPropagation(),me.preventDefault(),U(B,!1)}const ie={"onClick:close":ae,onMousedown(me){me.preventDefault(),me.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ve=Y?!!r.chip:!!r.selection,ye=ve?iy(Y?r.chip({item:B,index:K,props:ie}):r.selection({item:B,index:K})):void 0;if(!(ve&&!ye))return I("div",{key:B.value,class:["v-combobox__selection",K===v.value&&["v-combobox__selection--selected",b.value]],style:K===v.value?x.value:{}},[Y?r.chip?I(ht,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:B.title}}},{default:()=>[ye]}):I(jv,ge({key:"chip",closable:e.closableChips,size:"small",text:B.title,disabled:B.props.disabled},ie),null):ye??I("span",{class:"v-combobox__selection-text"},[B.title,e.multiple&&K[]}},"DataTable-expand"),Uz=Symbol.for("vuetify:datatable:expanded");function Ay(e){const t=se(e,"expandOnClick"),n=ze(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function r(s,l){const u=new Set(n.value);l?u.add(s.value):u.delete(s.value),n.value=u}function a(s){return n.value.has(s.value)}function i(s){r(s,!a(s))}const o={expand:r,expanded:n,expandOnClick:t,isExpanded:a,toggleExpand:i};return Tt(Uz,o),o}function Yz(){const e=nt(Uz);if(!e)throw new Error("foo");return e}const AC=Q({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Xz=Symbol.for("vuetify:data-table-group");function IC(e){return{groupBy:ze(e,"groupBy")}}function Iy(e){const{groupBy:t,sortBy:n}=e,r=pe(new Set),a=E(()=>t.value.map(u=>({...u,order:u.order??!1})).concat(n.value));function i(u){return r.value.has(u.id)}function o(u){const c=new Set(r.value);i(u)?c.delete(u.id):c.add(u.id),r.value=c}function s(u){function c(f){const d=[];for(const v of f.items)"type"in v&&v.type==="group"?d.push(...c(v)):d.push(v);return d}return c({type:"group",items:u,id:"dummy",key:"dummy",value:"dummy",depth:0})}const l={sortByWithGroups:a,toggleGroup:o,opened:r,groupBy:t,extractRows:s,isGroupOpen:i};return Tt(Xz,l),l}function Zz(){const e=nt(Xz);if(!e)throw new Error("Missing group!");return e}function qq(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const a=Xl(r.raw,t);n.has(a)||n.set(a,[]),n.get(a).push(r)}return n}function jz(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const a=qq(e,t[0]),i=[],o=t.slice(1);return a.forEach((s,l)=>{const u=t[0],c=`${r}_${u}_${l}`;i.push({depth:n,id:c,key:u,value:l,items:o.length?jz(s,o,n+1,c):s,type:"group"})}),i}function Kz(e,t){const n=[];for(const r of e)"type"in r&&r.type==="group"?(r.value!=null&&n.push(r),(t.has(r.id)||r.value==null)&&n.push(...Kz(r.items,t))):n.push(r);return n}function Py(e,t,n){return{flatItems:E(()=>{if(!t.value.length)return e.value;const a=jz(e.value,t.value.map(i=>i.key));return Kz(a,n.value)})}}function Dy(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:a,search:i}=e;const o=un("VDataTable"),s=E(()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:a.value,search:i.value}));let l=null;Se(s,()=>{io(l,s.value)||((l==null?void 0:l.search)!==s.value.search&&(t.value=1),o.emit("update:options",s.value),l=s.value)},{deep:!0,immediate:!0})}const PC=Q({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),qz=Symbol.for("vuetify:data-table-pagination");function DC(e){const t=ze(e,"page",void 0,r=>+(r??1)),n=ze(e,"itemsPerPage",void 0,r=>+(r??10));return{page:t,itemsPerPage:n}}function MC(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,a=E(()=>n.value===-1?0:n.value*(t.value-1)),i=E(()=>n.value===-1?r.value:Math.min(r.value,a.value+n.value)),o=E(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));Ln(()=>{t.value>o.value&&(t.value=o.value)});function s(d){n.value=d,t.value=1}function l(){t.value=vn(t.value+1,1,o.value)}function u(){t.value=vn(t.value-1,1,o.value)}function c(d){t.value=vn(d,1,o.value)}const f={page:t,itemsPerPage:n,startIndex:a,stopIndex:i,pageCount:o,itemsLength:r,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:s};return Tt(qz,f),f}function Jq(){const e=nt(qz);if(!e)throw new Error("Missing pagination!");return e}function Jz(e){const{items:t,startIndex:n,stopIndex:r,itemsPerPage:a}=e;return{paginatedItems:E(()=>a.value<=0?t.value:t.value.slice(n.value,r.value))}}const Qq={showSelectAll:!1,allSelected:()=>[],select:e=>{var r;let{items:t,value:n}=e;return new Set(n?[(r=t[0])==null?void 0:r.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},Qz={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return Qz.select({items:n,value:t,selected:r})}},eF={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,allItems:n,selected:r}=e;return eF.select({items:n,value:t,selected:r})}},tF=Q({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:io}},"DataTable-select"),nF=Symbol.for("vuetify:data-table-selection");function My(e,t){let{allItems:n,currentPage:r}=t;const a=ze(e,"modelValue",e.modelValue,p=>new Set(nn(p).map(m=>{var y;return((y=n.value.find(_=>e.valueComparator(m,_.value)))==null?void 0:y.value)??m})),p=>[...p.values()]),i=E(()=>n.value.filter(p=>p.selectable)),o=E(()=>r.value.filter(p=>p.selectable)),s=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Qq;case"all":return eF;case"page":default:return Qz}});function l(p){return nn(p).every(m=>a.value.has(m.value))}function u(p){return nn(p).some(m=>a.value.has(m.value))}function c(p,m){const y=s.value.select({items:p,value:m,selected:new Set(a.value)});a.value=y}function f(p){c([p],!l([p]))}function d(p){const m=s.value.selectAll({value:p,allItems:i.value,currentPage:o.value,selected:new Set(a.value)});a.value=m}const v=E(()=>a.value.size>0),h=E(()=>{const p=s.value.allSelected({allItems:i.value,currentPage:o.value});return!!p.length&&l(p)}),g={toggleSelect:f,select:c,selectAll:d,isSelected:l,isSomeSelected:u,someSelected:v,allSelected:h,showSelectAll:s.value.showSelectAll};return Tt(nF,g),g}function ky(){const e=nt(nF);if(!e)throw new Error("Missing selection!");return e}const rF=Q({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),aF=Symbol.for("vuetify:data-table-sort");function Ly(e){const t=ze(e,"sortBy"),n=se(e,"mustSort"),r=se(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:r}}function Ey(e){const{sortBy:t,mustSort:n,multiSort:r,page:a}=e,i=l=>{if(l.key==null)return;let u=t.value.map(f=>({...f}))??[];const c=u.find(f=>f.key===l.key);c?c.order==="desc"?n.value?c.order="asc":u=u.filter(f=>f.key!==l.key):c.order="desc":r.value?u=[...u,{key:l.key,order:"asc"}]:u=[{key:l.key,order:"asc"}],t.value=u,a&&(a.value=1)};function o(l){return!!t.value.find(u=>u.key===l.key)}const s={sortBy:t,toggleSort:i,isSorted:o};return Tt(aF,s),s}function eJ(){const e=nt(aF);if(!e)throw new Error("Missing sort!");return e}function kC(e,t,n,r){const a=cn();return{sortedItems:E(()=>n.value.length?tJ(t.value,n.value,a.current.value,{...e.customKeySort,...r==null?void 0:r.value}):t.value)}}function tJ(e,t,n,r){const a=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return[...e].sort((i,o)=>{for(let s=0;sd!=null?d.toString().toLocaleLowerCase():d),c!==f)return Oh(c)&&Oh(f)?0:Oh(c)?-1:Oh(f)?1:!isNaN(c)&&!isNaN(f)?Number(c)-Number(f):a.compare(c,f)}return 0})}const nJ=Q({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function rJ(e,t){const n=e.returnObject?t:Dn(t,e.itemValue),r=Dn(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:r,raw:t}}function aJ(e,t){const n=[];for(const r of t)n.push(rJ(e,r));return n}function iJ(e){return{items:E(()=>aJ(e,e.items))}}const oJ=Q({search:String,loading:Boolean,...Ie(),...nJ(),...tF(),...rF(),...PC({itemsPerPage:5}),...Wz(),...AC(),...Jv(),...et()},"VDataIterator"),sJ=le()({name:"VDataIterator",props:oJ(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"groupBy"),a=se(e,"search"),{items:i}=iJ(e),{filteredItems:o}=Qv(e,i,a,{transform:Z=>Z.raw}),{sortBy:s,multiSort:l,mustSort:u}=Ly(e),{page:c,itemsPerPage:f}=DC(e),{toggleSort:d}=Ey({sortBy:s,multiSort:l,mustSort:u,page:c}),{sortByWithGroups:v,opened:h,extractRows:g,isGroupOpen:p,toggleGroup:m}=Iy({groupBy:r,sortBy:s}),{sortedItems:y}=kC(e,o,v),{flatItems:_}=Py(y,r,h),b=E(()=>_.value.length),{startIndex:x,stopIndex:S,pageCount:w,prevPage:C,nextPage:T,setItemsPerPage:A,setPage:P}=MC({page:c,itemsPerPage:f,itemsLength:b}),{paginatedItems:D}=Jz({items:_,startIndex:x,stopIndex:S,itemsPerPage:f}),M=E(()=>g(D.value)),{isSelected:L,select:R,selectAll:O,toggleSelect:W}=My(e,{allItems:i,currentPage:M}),{isExpanded:V,toggleExpand:G}=Ay(e);Dy({page:c,itemsPerPage:f,sortBy:s,groupBy:r,search:a});const X=E(()=>({page:c.value,itemsPerPage:f.value,sortBy:s.value,pageCount:w.value,toggleSort:d,prevPage:C,nextPage:T,setPage:P,setItemsPerPage:A,isSelected:L,select:R,selectAll:O,toggleSelect:W,isExpanded:V,toggleExpand:G,isGroupOpen:p,toggleGroup:m,items:M.value,groupedItems:D.value}));return de(()=>I(e.tag,{class:["v-data-iterator",e.class],style:e.style},{default:()=>{var Z,J,ee,F;return[(Z=n.header)==null?void 0:Z.call(n,X.value),D.value.length?(ee=n.default)==null?void 0:ee.call(n,X.value):(J=n["no-data"])==null?void 0:J.call(n),(F=n.footer)==null?void 0:F.call(n,X.value)]}})),{}}});function lJ(){const e=pe([]);SO(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const uJ=Q({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:Je,default:"$first"},prevIcon:{type:Je,default:"$prev"},nextIcon:{type:Je,default:"$next"},lastIcon:{type:Je,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...Yr(),...Ie(),...Cn(),...pn(),...Ht(),...so(),...et({tag:"nav"}),...vt(),...wa({variant:"text"})},"VPagination"),w1=le()({name:"VPagination",props:uJ(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ze(e,"modelValue"),{t:i,n:o}=cn(),{isRtl:s}=Rn(),{themeClasses:l}=St(e),{width:u}=xs(),c=xe(-1);Gt(void 0,{scoped:!0});const{resizeRef:f}=_i(C=>{if(!C.length)return;const{target:T,contentRect:A}=C[0],P=T.querySelector(".v-pagination__list > *");if(!P)return;const D=A.width,M=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;c.value=g(D,M)}),d=E(()=>parseInt(e.length,10)),v=E(()=>parseInt(e.start,10)),h=E(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:g(u.value,58));function g(C,T){const A=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((C-T*A)/T).toFixed(2)))}const p=E(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[a.value];if(d.value<=h.value)return ci(d.value,v.value);const C=h.value%2===0,T=C?h.value/2:Math.floor(h.value/2),A=C?T:T+1,P=d.value-T;if(A-a.value>=0)return[...ci(Math.max(1,h.value-1),v.value),e.ellipsis,d.value];if(a.value-P>=(C?1:0)){const D=h.value-1,M=d.value-D+v.value;return[v.value,e.ellipsis,...ci(D,M)]}else{const D=Math.max(1,h.value-3),M=D===1?a.value:a.value-Math.ceil(D/2)+v.value;return[v.value,e.ellipsis,...ci(D,M),e.ellipsis,d.value]}});function m(C,T,A){C.preventDefault(),a.value=T,A&&r(A,T)}const{refs:y,updateRef:_}=lJ();Gt({VPaginationBtn:{color:se(e,"color"),border:se(e,"border"),density:se(e,"density"),size:se(e,"size"),variant:se(e,"variant"),rounded:se(e,"rounded"),elevation:se(e,"elevation")}});const b=E(()=>p.value.map((C,T)=>{const A=P=>_(P,T);if(typeof C=="string")return{isActive:!1,key:`ellipsis-${T}`,page:C,props:{ref:A,ellipsis:!0,icon:!0,disabled:!0}};{const P=C===a.value;return{isActive:P,key:C,page:o(C),props:{ref:A,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:P?e.activeColor:e.color,ariaCurrent:P,ariaLabel:i(P?e.currentPageAriaLabel:e.pageAriaLabel,C),onClick:D=>m(D,C)}}}})),x=E(()=>{const C=!!e.disabled||a.value<=v.value,T=!!e.disabled||a.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:A=>m(A,v.value,"first"),disabled:C,ariaLabel:i(e.firstAriaLabel),ariaDisabled:C}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:A=>m(A,a.value-1,"prev"),disabled:C,ariaLabel:i(e.previousAriaLabel),ariaDisabled:C},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:A=>m(A,a.value+1,"next"),disabled:T,ariaLabel:i(e.nextAriaLabel),ariaDisabled:T},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:A=>m(A,v.value+d.value-1,"last"),disabled:T,ariaLabel:i(e.lastAriaLabel),ariaDisabled:T}:void 0}});function S(){var T;const C=a.value-v.value;(T=y.value[C])==null||T.$el.focus()}function w(C){C.key===KS.left&&!e.disabled&&a.value>+e.start?(a.value=a.value-1,dt(S)):C.key===KS.right&&!e.disabled&&a.valueI(e.tag,{ref:f,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":i(e.ariaLabel),onKeydown:w,"data-test":"v-pagination-root"},{default:()=>[I("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&I("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(x.value.first):I(Dt,ge({_as:"VPaginationBtn"},x.value.first),null)]),I("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(x.value.prev):I(Dt,ge({_as:"VPaginationBtn"},x.value.prev),null)]),b.value.map((C,T)=>I("li",{key:C.key,class:["v-pagination__item",{"v-pagination__item--is-active":C.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(C):I(Dt,ge({_as:"VPaginationBtn"},C.props),{default:()=>[C.page]})])),I("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(x.value.next):I(Dt,ge({_as:"VPaginationBtn"},x.value.next),null)]),e.showFirstLastPage&&I("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(x.value.last):I(Dt,ge({_as:"VPaginationBtn"},x.value.last),null)])])]})),{}}}),LC=Q({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),av=le()({name:"VDataTableFooter",props:LC(),setup(e,t){let{slots:n}=t;const{t:r}=cn(),{page:a,pageCount:i,startIndex:o,stopIndex:s,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=Jq(),f=E(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:r(d.title)}));return de(()=>{var v;const d=w1.filterProps(e);return I("div",{class:"v-data-table-footer"},[(v=n.prepend)==null?void 0:v.call(n),I("div",{class:"v-data-table-footer__items-per-page"},[I("span",null,[r(e.itemsPerPageText)]),I(Az,{items:f.value,modelValue:u.value,"onUpdate:modelValue":h=>c(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),I("div",{class:"v-data-table-footer__info"},[I("div",null,[r(e.pageText,l.value?o.value+1:0,s.value,l.value)])]),I("div",{class:"v-data-table-footer__pagination"},[I(w1,ge({modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:i.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),EC=uX({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(e,t)=>{let{slots:n}=t;const r=e.tag??"td";return I(r,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding},`v-data-table-column--align-${e.align}`],style:{height:Ae(e.height),width:Ae(e.width),left:Ae(e.fixedOffset||null)}},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}),cJ=Q({headers:Array},"DataTable-header"),iF=Symbol.for("vuetify:data-table-headers"),oF={title:"",sortable:!1},fJ={...oF,width:48};function dJ(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let a=!1;for(let i=0;ir){t.splice(i,0,{element:n,priority:r}),a=!0;break}a||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let a=0;at.shift()}}function C1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)C1(n,t);return t}function sF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&sF(n.children,t);return t}function vJ(e){if(e.key){if(e.key==="data-table-group")return oF;if(["data-table-expand","data-table-select"].includes(e.key))return fJ}}function RC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>RC(n,t+1))):t}function hJ(e){let t=!1;function n(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i)if(o&&(i.fixed=!0),i.fixed)if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s],!0);else t?isNaN(+i.width)&&(`${i.key}`,void 0):i.lastFixed=!0,t=!0;else if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s]);else t=!1}for(let i=e.length-1;i>=0;i--)n(e[i]);function r(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!i)return o;if(i.children){i.fixedOffset=o;for(const s of i.children)o=r(s,o)}else i.fixed&&(i.fixedOffset=o,o+=parseFloat(i.width||"0")||0);return o}let a=0;for(const i of e)a=r(i,a)}function gJ(e,t){const n=[];let r=0;const a=dJ(e);for(;a.size()>0;){let o=a.count();const s=[];let l=1;for(;o>0;){const{element:u,priority:c}=a.dequeue(),f=t-r-RC(u);if(s.push({...u,rowspan:f??1,colspan:u.children?C1(u).length:1}),u.children)for(const d of u.children){const v=c%1+l/Math.pow(10,r+2);a.enqueue(d,r+f+v)}l+=1,o-=1}r+=1,n.push(s)}return{columns:e.map(o=>C1(o)).flat(),headers:n}}function lF(e){const t=[];for(const n of e){const r={...vJ(n),...n},a=r.key??(typeof r.value=="string"?r.value:null),i=r.value??a??null,o={...r,key:a,value:i,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?lF(r.children):void 0};t.push(o)}return t}function VC(e,t){const n=pe([]),r=pe([]),a=pe(),i=pe();Ln(()=>{var h,g,p;const l=(e.headers||Object.keys(e.items[0]??{}).map(m=>({key:m,title:Ii(m)}))).slice(),u=sF(l);(h=t==null?void 0:t.groupBy)!=null&&h.value.length&&!u.has("data-table-group")&&l.unshift({key:"data-table-group",title:"Group"}),(g=t==null?void 0:t.showSelect)!=null&&g.value&&!u.has("data-table-select")&&l.unshift({key:"data-table-select"}),(p=t==null?void 0:t.showExpand)!=null&&p.value&&!u.has("data-table-expand")&&l.push({key:"data-table-expand"});const c=lF(l);hJ(c);const f=Math.max(...c.map(m=>RC(m)))+1,d=gJ(c,f);n.value=d.headers,r.value=d.columns;const v=d.headers.flat(1);a.value=v.reduce((m,y)=>(y.sortable&&y.key&&y.sort&&(m[y.key]=y.sort),m),{}),i.value=v.reduce((m,y)=>(y.key&&y.filter&&(m[y.key]=y.filter),m),{})});const o={headers:n,columns:r,sortFunctions:a,filterFunctions:i};return Tt(iF,o),o}function Ry(){const e=nt(iF);if(!e)throw new Error("Missing headers!");return e}const uF=Q({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:Je,default:"$sortAsc"},sortDescIcon:{type:Je,default:"$sortDesc"},...hy()},"VDataTableHeaders"),Mc=le()({name:"VDataTableHeaders",props:uF(),setup(e,t){let{slots:n}=t;const{toggleSort:r,sortBy:a,isSorted:i}=eJ(),{someSelected:o,allSelected:s,selectAll:l,showSelectAll:u}=ky(),{columns:c,headers:f}=Ry(),{loaderClasses:d}=Uv(e);function v(_,b){if(!(!e.sticky&&!_.fixed))return{position:"sticky",left:_.fixed?Ae(_.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${b})`:void 0}}function h(_){const b=a.value.find(x=>x.key===_.key);return b?b.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:g,backgroundColorStyles:p}=Bt(e,"color"),m=E(()=>({headers:f.value,columns:c.value,toggleSort:r,isSorted:i,sortBy:a.value,someSelected:o.value,allSelected:s.value,selectAll:l,getSortIcon:h})),y=_=>{let{column:b,x,y:S}=_;const w=b.key==="data-table-select"||b.key==="data-table-expand";return I(EC,ge({tag:"th",align:b.align,class:["v-data-table__th",{"v-data-table__th--sortable":b.sortable,"v-data-table__th--sorted":i(b),"v-data-table__th--fixed":b.fixed,"v-data-table__th--sticky":e.sticky},d.value],style:{width:Ae(b.width),minWidth:Ae(b.minWidth),...v(b,S)},colspan:b.colspan,rowspan:b.rowspan,onClick:b.sortable?()=>r(b):void 0,fixed:b.fixed,lastFixed:b.lastFixed,noPadding:w},b.headerProps),{default:()=>{var A;const C=`header.${b.key}`,T={column:b,selectAll:l,isSorted:i,toggleSort:r,sortBy:a.value,someSelected:o.value,allSelected:s.value,getSortIcon:h};return n[C]?n[C](T):b.key==="data-table-select"?((A=n["header.data-table-select"])==null?void 0:A.call(n,T))??(u&&I(ji,{modelValue:s.value,indeterminate:o.value&&!s.value,"onUpdate:modelValue":l},null)):I("div",{class:"v-data-table-header__content"},[I("span",null,[b.title]),b.sortable&&I(Ct,{key:"icon",class:"v-data-table-header__sort-icon",icon:h(b)},null),e.multiSort&&i(b)&&I("div",{key:"badge",class:["v-data-table-header__sort-badge",...g.value],style:p.value},[a.value.findIndex(P=>P.key===b.key)+1])])}})};de(()=>I(ke,null,[n.headers?n.headers(m.value):f.value.map((_,b)=>I("tr",null,[_.map((x,S)=>I(y,{column:x,x:S,y:b},null))])),e.loading&&I("tr",{class:"v-data-table-progress"},[I("th",{colspan:c.value.length},[I(gy,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),pJ=Q({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),mJ=le()({name:"VDataTableGroupHeaderRow",props:pJ(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:a,extractRows:i}=Zz(),{isSelected:o,isSomeSelected:s,select:l}=ky(),{columns:u}=Ry(),c=E(()=>i([e.item]));return()=>I("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(f=>{var d,v;if(f.key==="data-table-group"){const h=r(e.item)?"$expand":"$next",g=()=>a(e.item);return((d=n["data-table-group"])==null?void 0:d.call(n,{item:e.item,count:c.value.length,props:{icon:h,onClick:g}}))??I(EC,{class:"v-data-table-group-header-row__column"},{default:()=>[I(Dt,{size:"small",variant:"text",icon:h,onClick:g},null),I("span",null,[e.item.value]),I("span",null,[$r("("),c.value.length,$r(")")])]})}if(f.key==="data-table-select"){const h=o(c.value),g=s(c.value)&&!h,p=m=>l(c.value,m);return((v=n["data-table-select"])==null?void 0:v.call(n,{props:{modelValue:h,indeterminate:g,"onUpdate:modelValue":p}}))??I("td",null,[I(ji,{modelValue:h,indeterminate:g,"onUpdate:modelValue":p},null)])}return I("td",null,null)})])}}),yJ=Q({index:Number,item:Object,cellProps:[Object,Function],onClick:Ar(),onContextmenu:Ar(),onDblclick:Ar()},"VDataTableRow"),OC=le()({name:"VDataTableRow",props:yJ(),setup(e,t){let{slots:n}=t;const{isSelected:r,toggleSelect:a}=ky(),{isExpanded:i,toggleExpand:o}=Yz(),{columns:s}=Ry();de(()=>I("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)}],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&s.value.map((l,u)=>{const c=e.item,f=`item.${l.key}`,d={index:e.index,item:c.raw,internalItem:c,value:Xl(c.columns,l.key),column:l,isSelected:r,toggleSelect:a,isExpanded:i,toggleExpand:o},v=typeof e.cellProps=="function"?e.cellProps({index:d.index,item:d.item,internalItem:d.internalItem,value:d.value,column:l}):e.cellProps,h=typeof l.cellProps=="function"?l.cellProps({index:d.index,item:d.item,internalItem:d.internalItem,value:d.value}):l.cellProps;return I(EC,ge({align:l.align,fixed:l.fixed,fixedOffset:l.fixedOffset,lastFixed:l.lastFixed,noPadding:l.key==="data-table-select"||l.key==="data-table-expand",width:l.width},v,h),{default:()=>{var g,p;return n[f]?n[f](d):l.key==="data-table-select"?((g=n["item.data-table-select"])==null?void 0:g.call(n,d))??I(ji,{disabled:!c.selectable,modelValue:r([c]),onClick:NS(()=>a(c),["stop"])},null):l.key==="data-table-expand"?((p=n["item.data-table-expand"])==null?void 0:p.call(n,d))??I(Dt,{icon:i(c)?"$collapse":"$expand",size:"small",variant:"text",onClick:NS(()=>o(c),["stop"])},null):gl(d.value)}})})]))}}),cF=Q({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function]},"VDataTableRows"),Jl=le()({name:"VDataTableRows",inheritAttrs:!1,props:cF(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:a}=Ry(),{expandOnClick:i,toggleExpand:o,isExpanded:s}=Yz(),{isSelected:l,toggleSelect:u}=ky(),{toggleGroup:c,isGroupOpen:f}=Zz(),{t:d}=cn();return de(()=>{var v,h;return e.loading&&(!e.items.length||r.loading)?I("tr",{class:"v-data-table-rows-loading",key:"loading"},[I("td",{colspan:a.value.length},[((v=r.loading)==null?void 0:v.call(r))??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?I("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[I("td",{colspan:a.value.length},[((h=r["no-data"])==null?void 0:h.call(r))??d(e.noDataText)])]):I(ke,null,[e.items.map((g,p)=>{var _;if(g.type==="group"){const b={index:p,item:g,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:f};return r["group-header"]?r["group-header"](b):I(mJ,ge({key:`group-header_${g.id}`,item:g},QP(n,":group-header",()=>b)),r)}const m={index:p,item:g.raw,internalItem:g,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u},y={...m,props:ge({key:`item_${g.key??g.index}`,onClick:i.value?()=>{o(g)}:void 0,index:p,item:g,cellProps:e.cellProps},QP(n,":row",()=>m),typeof e.rowProps=="function"?e.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):e.rowProps)};return I(ke,{key:y.props.key},[r.item?r.item(y):I(OC,y.props,r),s(g)&&((_=r["expanded-row"])==null?void 0:_.call(r,m))])})])}),{}}});const fF=Q({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Ie(),...Cn(),...et(),...vt()},"VTable"),Ql=le()({name:"VTable",props:fF(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:a}=St(e),{densityClasses:i}=ar(e);return de(()=>I(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},a.value,i.value,e.class],style:e.style},{default:()=>{var o,s,l;return[(o=n.top)==null?void 0:o.call(n),n.default?I("div",{class:"v-table__wrapper",style:{height:Ae(e.height)}},[I("table",null,[n.default()])]):(s=n.wrapper)==null?void 0:s.call(n),(l=n.bottom)==null?void 0:l.call(n)]}})),{}}}),_J=Q({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function bJ(e,t,n,r){const a=e.returnObject?t:Dn(t,e.itemValue),i=Dn(t,e.itemSelectable,!0),o=r.reduce((s,l)=>(l.key!=null&&(s[l.key]=Dn(t,l.value)),s),{});return{type:"item",key:e.returnObject?Dn(t,e.itemValue):a,index:n,value:a,selectable:i,columns:o,raw:t}}function SJ(e,t,n){return t.map((r,a)=>bJ(e,r,a,n))}function NC(e,t){return{items:E(()=>SJ(e,e.items,t.value))}}const BC=Q({...cF(),width:[String,Number],search:String,...Wz(),...AC(),...cJ(),..._J(),...tF(),...rF(),...uF(),...fF()},"DataTable"),xJ=Q({...PC(),...BC(),...Jv(),...LC()},"VDataTable"),wJ=le()({name:"VDataTable",props:xJ(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IC(e),{sortBy:i,multiSort:o,mustSort:s}=Ly(e),{page:l,itemsPerPage:u}=DC(e),{columns:c,headers:f,sortFunctions:d,filterFunctions:v}=VC(e,{groupBy:a,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:h}=NC(e,c),g=se(e,"search"),{filteredItems:p}=Qv(e,h,g,{transform:U=>U.columns,customKeyFilter:v}),{toggleSort:m}=Ey({sortBy:i,multiSort:o,mustSort:s,page:l}),{sortByWithGroups:y,opened:_,extractRows:b,isGroupOpen:x,toggleGroup:S}=Iy({groupBy:a,sortBy:i}),{sortedItems:w}=kC(e,p,y,d),{flatItems:C}=Py(w,a,_),T=E(()=>C.value.length),{startIndex:A,stopIndex:P,pageCount:D,setItemsPerPage:M}=MC({page:l,itemsPerPage:u,itemsLength:T}),{paginatedItems:L}=Jz({items:C,startIndex:A,stopIndex:P,itemsPerPage:u}),R=E(()=>b(L.value)),{isSelected:O,select:W,selectAll:V,toggleSelect:G,someSelected:X,allSelected:Z}=My(e,{allItems:h,currentPage:R}),{isExpanded:J,toggleExpand:ee}=Ay(e);Dy({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:g}),Gt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const F=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:D.value,toggleSort:m,setItemsPerPage:M,someSelected:X.value,allSelected:Z.value,isSelected:O,select:W,selectAll:V,toggleSelect:G,isExpanded:J,toggleExpand:ee,isGroupOpen:x,toggleGroup:S,items:R.value.map(U=>U.raw),internalItems:R.value,groupedItems:L.value,columns:c.value,headers:f.value}));return de(()=>{const U=av.filterProps(e),$=Mc.filterProps(e),z=Jl.filterProps(e),H=Ql.filterProps(e);return I(Ql,ge({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},H),{top:()=>{var j;return(j=r.top)==null?void 0:j.call(r,F.value)},default:()=>{var j,Y,q,te,N,B;return r.default?r.default(F.value):I(ke,null,[(j=r.colgroup)==null?void 0:j.call(r,F.value),I("thead",null,[I(Mc,$,r)]),(Y=r.thead)==null?void 0:Y.call(r,F.value),I("tbody",null,[(q=r["body.prepend"])==null?void 0:q.call(r,F.value),r.body?r.body(F.value):I(Jl,ge(n,z,{items:L.value}),r),(te=r["body.append"])==null?void 0:te.call(r,F.value)]),(N=r.tbody)==null?void 0:N.call(r,F.value),(B=r.tfoot)==null?void 0:B.call(r,F.value)])},bottom:()=>r.bottom?r.bottom(F.value):I(ke,null,[I(yy,null,null),I(av,U,{prepend:r["footer.prepend"]})])})}),{}}}),CJ=Q({...BC(),...AC(),...Cz(),...Jv()},"VDataTableVirtual"),TJ=le()({name:"VDataTableVirtual",props:CJ(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IC(e),{sortBy:i,multiSort:o,mustSort:s}=Ly(e),{columns:l,headers:u,sortFunctions:c,filterFunctions:f}=VC(e,{groupBy:a,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:d}=NC(e,l),v=se(e,"search"),{filteredItems:h}=Qv(e,d,v,{transform:$=>$.columns,customKeyFilter:f}),{toggleSort:g}=Ey({sortBy:i,multiSort:o,mustSort:s}),{sortByWithGroups:p,opened:m,extractRows:y,isGroupOpen:_,toggleGroup:b}=Iy({groupBy:a,sortBy:i}),{sortedItems:x}=kC(e,h,p,c),{flatItems:S}=Py(x,a,m),w=E(()=>y(S.value)),{isSelected:C,select:T,selectAll:A,toggleSelect:P,someSelected:D,allSelected:M}=My(e,{allItems:w,currentPage:w}),{isExpanded:L,toggleExpand:R}=Ay(e),{containerRef:O,markerRef:W,paddingTop:V,paddingBottom:G,computedItems:X,handleItemResize:Z,handleScroll:J,handleScrollend:ee}=Tz(e,S),F=E(()=>X.value.map($=>$.raw));Dy({sortBy:i,page:xe(1),itemsPerPage:xe(-1),groupBy:a,search:v}),Gt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const U=E(()=>({sortBy:i.value,toggleSort:g,someSelected:D.value,allSelected:M.value,isSelected:C,select:T,selectAll:A,toggleSelect:P,isExpanded:L,toggleExpand:R,isGroupOpen:_,toggleGroup:b,items:w.value.map($=>$.raw),internalItems:w.value,groupedItems:S.value,columns:l.value,headers:u.value}));de(()=>{const $=Mc.filterProps(e),z=Jl.filterProps(e),H=Ql.filterProps(e);return I(Ql,ge({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},H),{top:()=>{var j;return(j=r.top)==null?void 0:j.call(r,U.value)},wrapper:()=>{var j,Y;return I("div",{ref:O,onScrollPassive:J,onScrollend:ee,class:"v-table__wrapper",style:{height:Ae(e.height)}},[I("table",null,[I("thead",null,[I(Mc,ge($,{sticky:e.fixedHeader}),r)]),I("tbody",null,[I("tr",{ref:W,style:{height:Ae(V.value),border:0}},[I("td",{colspan:l.value.length,style:{height:0,border:0}},null)]),(j=r["body.prepend"])==null?void 0:j.call(r,U.value),I(Jl,ge(n,z,{items:F.value}),{...r,item:q=>I(wz,{key:q.internalItem.index,renderless:!0,"onUpdate:height":te=>Z(q.internalItem.index,te)},{default:te=>{var B;let{itemRef:N}=te;return((B=r.item)==null?void 0:B.call(r,{...q,itemRef:N}))??I(OC,ge(q.props,{ref:N,key:q.internalItem.index,index:q.internalItem.index}),r)}})}),(Y=r["body.append"])==null?void 0:Y.call(r,U.value),I("tr",{style:{height:Ae(G.value),border:0}},[I("td",{colspan:l.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var j;return(j=r.bottom)==null?void 0:j.call(r,U.value)}})})}}),AJ=Q({itemsLength:{type:[Number,String],required:!0},...PC(),...BC(),...LC()},"VDataTableServer"),IJ=le()({name:"VDataTableServer",props:AJ(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IC(e),{sortBy:i,multiSort:o,mustSort:s}=Ly(e),{page:l,itemsPerPage:u}=DC(e),c=E(()=>parseInt(e.itemsLength,10)),{columns:f,headers:d}=VC(e,{groupBy:a,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:v}=NC(e,f),{toggleSort:h}=Ey({sortBy:i,multiSort:o,mustSort:s,page:l}),{opened:g,isGroupOpen:p,toggleGroup:m,extractRows:y}=Iy({groupBy:a,sortBy:i}),{pageCount:_,setItemsPerPage:b}=MC({page:l,itemsPerPage:u,itemsLength:c}),{flatItems:x}=Py(v,a,g),{isSelected:S,select:w,selectAll:C,toggleSelect:T,someSelected:A,allSelected:P}=My(e,{allItems:v,currentPage:v}),{isExpanded:D,toggleExpand:M}=Ay(e),L=E(()=>y(v.value));Dy({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:se(e,"search")}),Tt("v-data-table",{toggleSort:h,sortBy:i}),Gt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const R=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:_.value,toggleSort:h,setItemsPerPage:b,someSelected:A.value,allSelected:P.value,isSelected:S,select:w,selectAll:C,toggleSelect:T,isExpanded:D,toggleExpand:M,isGroupOpen:p,toggleGroup:m,items:L.value.map(O=>O.raw),internalItems:L.value,groupedItems:x.value,columns:f.value,headers:d.value}));de(()=>{const O=av.filterProps(e),W=Mc.filterProps(e),V=Jl.filterProps(e),G=Ql.filterProps(e);return I(Ql,ge({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},G),{top:()=>{var X;return(X=r.top)==null?void 0:X.call(r,R.value)},default:()=>{var X,Z,J,ee,F,U;return r.default?r.default(R.value):I(ke,null,[(X=r.colgroup)==null?void 0:X.call(r,R.value),I("thead",{class:"v-data-table__thead",role:"rowgroup"},[I(Mc,ge(W,{sticky:e.fixedHeader}),r)]),(Z=r.thead)==null?void 0:Z.call(r,R.value),I("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(J=r["body.prepend"])==null?void 0:J.call(r,R.value),r.body?r.body(R.value):I(Jl,ge(n,V,{items:x.value}),r),(ee=r["body.append"])==null?void 0:ee.call(r,R.value)]),(F=r.tbody)==null?void 0:F.call(r,R.value),(U=r.tfoot)==null?void 0:U.call(r,R.value)])},bottom:()=>r.bottom?r.bottom(R.value):I(av,O,{prepend:r["footer.prepend"]})})})}});const PJ=Q({fluid:{type:Boolean,default:!1},...Ie(),...et()},"VContainer"),DJ=le()({name:"VContainer",props:PJ(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Rn();return de(()=>I(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},r.value,e.class],style:e.style},n)),{}}}),dF=(()=>sy.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),vF=(()=>sy.reduce((e,t)=>{const n="offset"+Ii(t);return e[n]={type:[String,Number],default:null},e},{}))(),hF=(()=>sy.reduce((e,t)=>{const n="order"+Ii(t);return e[n]={type:[String,Number],default:null},e},{}))(),xD={col:Object.keys(dF),offset:Object.keys(vF),order:Object.keys(hF)};function MJ(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const a=t.replace(e,"");r+=`-${a}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const kJ=["auto","start","end","center","baseline","stretch"],LJ=Q({cols:{type:[Boolean,String,Number],default:!1},...dF,offset:{type:[String,Number],default:null},...vF,order:{type:[String,Number],default:null},...hF,alignSelf:{type:String,default:null,validator:e=>kJ.includes(e)},...Ie(),...et()},"VCol"),EJ=le()({name:"VCol",props:LJ(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in xD)xD[i].forEach(s=>{const l=e[s],u=MJ(i,s,l);u&&a.push(u)});const o=a.some(s=>s.startsWith("v-col-"));return a.push({"v-col":!o||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),a});return()=>{var a;return Sa(e.tag,{class:[r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),zC=["start","end","center"],gF=["space-between","space-around","space-evenly"];function FC(e,t){return sy.reduce((n,r)=>{const a=e+Ii(r);return n[a]=t(),n},{})}const RJ=[...zC,"baseline","stretch"],pF=e=>RJ.includes(e),mF=FC("align",()=>({type:String,default:null,validator:pF})),VJ=[...zC,...gF],yF=e=>VJ.includes(e),_F=FC("justify",()=>({type:String,default:null,validator:yF})),OJ=[...zC,...gF,"stretch"],bF=e=>OJ.includes(e),SF=FC("alignContent",()=>({type:String,default:null,validator:bF})),wD={align:Object.keys(mF),justify:Object.keys(_F),alignContent:Object.keys(SF)},NJ={align:"align",justify:"justify",alignContent:"align-content"};function BJ(e,t,n){let r=NJ[e];if(n!=null){if(t){const a=t.replace(e,"");r+=`-${a}`}return r+=`-${n}`,r.toLowerCase()}}const zJ=Q({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:pF},...mF,justify:{type:String,default:null,validator:yF},..._F,alignContent:{type:String,default:null,validator:bF},...SF,...Ie(),...et()},"VRow"),FJ=le()({name:"VRow",props:zJ(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in wD)wD[i].forEach(o=>{const s=e[o],l=BJ(i,o,s);l&&a.push(l)});return a.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),a});return()=>{var a;return Sa(e.tag,{class:["v-row",r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),xF=Wr("v-spacer","div","VSpacer"),wF=Q({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:[String],default:"$next"},prevIcon:{type:[String],default:"$prev"},modeIcon:{type:[String],default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),T1=le()({name:"VDatePickerControls",props:wF(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),a=E(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),i=E(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),o=E(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function s(){n("click:prev")}function l(){n("click:next")}function u(){n("click:year")}function c(){n("click:month")}return de(()=>I("div",{class:["v-date-picker-controls"]},[I(Dt,{class:"v-date-picker-controls__month-btn",disabled:r.value,text:e.text,variant:"text",rounded:!0,onClick:c},null),I(Dt,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:a.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:u},null),I(xF,{key:"mode-spacer"},null),I("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[I(Dt,{disabled:i.value,icon:e.prevIcon,variant:"text",onClick:s},null),I(Dt,{disabled:o.value,icon:e.nextIcon,variant:"text",onClick:l},null)])])),{}}});const $J=Q({appendIcon:String,color:String,header:String,transition:String,onClick:Ar()},"VDatePickerHeader"),A1=le()({name:"VDatePickerHeader",props:$J(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(e,"color");function o(){n("click")}function s(){n("click:append")}return de(()=>{const l=!!(r.default||e.header),u=!!(r.append||e.appendIcon);return I("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},a.value],style:i.value,onClick:o},[r.prepend&&I("div",{key:"prepend",class:"v-date-picker-header__prepend"},[r.prepend()]),l&&I(fa,{key:"content",name:e.transition},{default:()=>{var c;return[I("div",{key:e.header,class:"v-date-picker-header__content"},[((c=r.default)==null?void 0:c.call(r))??e.header])]}}),u&&I("div",{class:"v-date-picker-header__append"},[r.append?I(ht,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var c;return[(c=r.append)==null?void 0:c.call(r)]}}):I(Dt,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:s},null)])])}),{}}});const GJ=Q({allowedDates:[Array,Function],disabled:Boolean,displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]}},"calendar");function HJ(e){const t=Hv(),n=ze(e,"modelValue",[],d=>nn(d)),r=E(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),a=ze(e,"year",void 0,d=>{const v=d!=null?Number(d):t.getYear(r.value);return t.startOfYear(t.setYear(t.date(),v))},d=>t.getYear(d)),i=ze(e,"month",void 0,d=>{const v=d!=null?Number(d):t.getMonth(r.value),h=t.setYear(t.date(),t.getYear(a.value));return t.setMonth(h,v)},d=>t.getMonth(d)),o=E(()=>{const d=t.getWeekArray(i.value),v=d.flat(),h=6*7;if(v.lengthe.weekdays.includes(h.getDay())).map((h,g)=>{const p=t.toISO(h),m=!t.isSameMonth(h,i.value),y=t.isSameDay(h,t.startOfMonth(i.value)),_=t.isSameDay(h,t.endOfMonth(i.value)),b=t.isSameDay(h,i.value);return{date:h,isoDate:p,formatted:t.format(h,"keyboardDate"),year:t.getYear(h),month:t.getMonth(h),isDisabled:f(h),isWeekStart:g%7===0,isWeekEnd:g%7===6,isToday:t.isSameDay(h,v),isAdjacent:m,isHidden:m&&!e.showAdjacentMonths,isStart:y,isSelected:n.value.some(x=>t.isSameDay(h,x)),isEnd:_,isSame:b,localized:t.format(h,"dayOfMonth")}})}const l=E(()=>{const d=t.startOfWeek(n.value),v=[];for(let p=0;p<=6;p++)v.push(t.addDays(d,p));const h=v,g=t.date();return s(h,g)}),u=E(()=>{const d=o.value.flat(),v=t.date();return s(d,v)}),c=E(()=>o.value.map(d=>d.length?nZ(t,d[0]):null));function f(d){if(e.disabled)return!0;const v=t.date(d);return e.min&&t.isAfter(t.date(e.min),v)||e.max&&t.isAfter(v,t.date(e.max))?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(h=>t.isSameDay(t.date(h),v)):typeof e.allowedDates=="function"?!e.allowedDates(v):!1}return{displayValue:r,daysInMonth:u,daysInWeek:l,genDays:s,model:n,weeksInMonth:o,weekNumbers:c}}const CF=Q({color:String,hideWeekdays:Boolean,multiple:Boolean,showWeek:Boolean,...GJ()},"VDatePickerMonth"),I1=le()({name:"VDatePickerMonth",props:CF(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=pe(),{daysInMonth:i,model:o,weekNumbers:s}=HJ(e),l=Hv();function u(c){if(e.multiple){const f=o.value.findIndex(d=>l.isSameDay(d,c));if(f===-1)o.value=[...o.value,c];else{const d=[...o.value];d.splice(f,1),o.value=d}}else o.value=[c]}return()=>I("div",{class:"v-date-picker-month"},[e.showWeek&&I("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&I("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[$r(" ")]),s.value.map(c=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[c]))]),I("div",{ref:a,class:"v-date-picker-month__days"},[!e.hideWeekdays&&l.getWeekdays().map(c=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[c[0]])),i.value.map((c,f)=>{const d={props:{onClick:()=>u(c.date)},item:c,i:f};return I("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":c.isAdjacent,"v-date-picker-month__day--hide-adjacent":c.isHidden,"v-date-picker-month__day--selected":c.isSelected,"v-date-picker-month__day--week-end":c.isWeekEnd,"v-date-picker-month__day--week-start":c.isWeekStart}],"data-v-date":c.isDisabled?void 0:c.isoDate},[(e.showAdjacentMonths||!c.isAdjacent)&&I(ht,{defaults:{VBtn:{color:(c.isSelected||c.isToday)&&!c.isDisabled?e.color:void 0,disabled:c.isDisabled,icon:!0,ripple:!1,text:c.localized,variant:c.isDisabled?"text":c.isToday&&!c.isSelected?"outlined":"flat",onClick:()=>u(c.date)}}},{default:()=>{var v;return[((v=r.day)==null?void 0:v.call(r,d))??I(Dt,d.props,null)]}})])})])])}});const TF=Q({color:String,height:[String,Number],modelValue:Number},"VDatePickerMonths"),P1=le()({name:"VDatePickerMonths",props:TF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Hv(),a=ze(e,"modelValue"),i=E(()=>{let o=r.startOfYear(r.date());return ci(12).map(s=>{const l=r.format(o,"monthShort");return o=r.getNextMonth(o),{text:l,value:s}})});return Ln(()=>{a.value=a.value??r.getMonth(r.date())}),de(()=>I("div",{class:"v-date-picker-months",style:{height:Ae(e.height)}},[I("div",{class:"v-date-picker-months__content"},[i.value.map((o,s)=>{var c;const l={active:a.value===s,color:a.value===s?e.color:void 0,rounded:!0,text:o.text,variant:a.value===o.value?"flat":"text",onClick:()=>u(s)};function u(f){a.value=f}return((c=n.month)==null?void 0:c.call(n,{month:o,i:s,props:l}))??I(Dt,ge({key:"month"},l,{onClick:()=>u(s)}),null)})])])),{}}});const AF=Q({color:String,height:[String,Number],min:null,max:null,modelValue:Number},"VDatePickerYears"),D1=le()({name:"VDatePickerYears",props:AF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Hv(),a=ze(e,"modelValue"),i=E(()=>{const s=r.getYear(r.date());let l=s-100,u=s+52;e.min&&(l=r.getYear(r.date(e.min))),e.max&&(u=r.getYear(r.date(e.max)));let c=r.startOfYear(r.date());return c=r.setYear(c,l),ci(u-l+1,l).map(f=>{const d=r.format(c,"year");return c=r.setYear(c,r.getYear(c)+1),{text:d,value:f}})});Ln(()=>{a.value=a.value??r.getYear(r.date())});const o=pe();return ln(async()=>{var s;await dt(),(s=o.value)==null||s.$el.scrollIntoView({block:"center"})}),de(()=>I("div",{class:"v-date-picker-years",style:{height:Ae(e.height)}},[I("div",{class:"v-date-picker-years__content"},[i.value.map((s,l)=>{var c;const u={ref:a.value===s.value?o:void 0,active:a.value===s.value,color:a.value===s.value?e.color:void 0,rounded:!0,text:s.text,variant:a.value===s.value?"flat":"text",onClick:()=>a.value=s.value};return((c=n.year)==null?void 0:c.call(n,{year:s,i:l,props:u}))??I(Dt,ge({key:"month"},u),null)})])])),{}}});const WJ=Wr("v-picker-title"),IF=Q({bgColor:String,landscape:Boolean,title:String,hideHeader:Boolean,...Ty()},"VPicker"),CD=le()({name:"VPicker",props:IF(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"color"));return de(()=>{const i=ql.filterProps(e),o=!!(e.title||n.title);return I(ql,ge(i,{color:e.bgColor,class:["v-picker",{"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>{var s;return[!e.hideHeader&&I("div",{key:"header",class:[r.value],style:[a.value]},[o&&I(WJ,{key:"picker-title"},{default:()=>{var l;return[((l=n.title)==null?void 0:l.call(n))??e.title]}}),n.header&&I("div",{class:"v-picker__header"},[n.header()])]),I("div",{class:"v-picker__body"},[(s=n.default)==null?void 0:s.call(n)]),n.actions&&I(ht,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[I("div",{class:"v-picker__actions"},[n.actions()])]})]}})}),{}}}),UJ=Q({header:{type:String,default:"$vuetify.datePicker.header"},...wF(),...CF(),...Sn(TF(),["modelValue"]),...Sn(AF(),["modelValue"]),...IF({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),YJ=le()({name:"VDatePicker",props:UJ(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Hv(),{t:i}=cn(),o=ze(e,"modelValue",void 0,w=>nn(w),w=>e.multiple?w:w[0]),s=ze(e,"viewMode"),l=E(()=>{var C;const w=a.date((C=o.value)==null?void 0:C[0]);return w&&a.isValid(w)?w:a.date()}),u=pe(Number(e.month??a.getMonth(a.startOfMonth(l.value)))),c=pe(Number(e.year??a.getYear(a.startOfYear(a.setMonth(l.value,u.value))))),f=xe(!1),d=E(()=>e.multiple&&o.value.length>1?i("$vuetify.datePicker.itemsSelected",o.value.length):o.value[0]&&a.isValid(o.value[0])?a.format(o.value[0],"normalDateWithWeekday"):i(e.header)),v=E(()=>a.format(a.setYear(a.setMonth(a.date(),u.value),c.value),"monthAndYear")),h=E(()=>`date-picker-header${f.value?"-reverse":""}-transition`),g=E(()=>{const w=a.date(e.min);return e.min&&a.isValid(w)?w:null}),p=E(()=>{const w=a.date(e.max);return e.max&&a.isValid(w)?w:null}),m=E(()=>{if(e.disabled)return!0;const w=[];if(s.value!=="month")w.push("prev","next");else{let C=a.date();if(C=a.setYear(C,c.value),C=a.setMonth(C,u.value),g.value){const T=a.addDays(a.startOfMonth(C),-1);a.isAfter(g.value,T)&&w.push("prev")}if(p.value){const T=a.addDays(a.endOfMonth(C),1);a.isAfter(T,p.value)&&w.push("next")}}return w});function y(){u.value<11?u.value++:(c.value++,u.value=0)}function _(){u.value>0?u.value--:(c.value--,u.value=11)}function b(){s.value="month"}function x(){s.value=s.value==="months"?"month":"months"}function S(){s.value=s.value==="year"?"month":"year"}return Se(u,()=>{s.value==="months"&&x(),n("update:month",u.value)}),Se(c,()=>{s.value==="year"&&S(),n("update:year",c.value)}),Se(o,(w,C)=>{const T=a.date(nn(w)[0]),A=a.date(nn(C)[0]);f.value=a.isBefore(T,A)}),de(()=>{const w=CD.filterProps(e),C=T1.filterProps(e),T=A1.filterProps(e),A=I1.filterProps(e),P=Sn(P1.filterProps(e),["modelValue"]),D=Sn(D1.filterProps(e),["modelValue"]),M={header:d.value,transition:h.value};return I(CD,ge(w,{class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},e.class],style:e.style}),{title:()=>{var L;return((L=r.title)==null?void 0:L.call(r))??I("div",{class:"v-date-picker__title"},[i(e.title)])},header:()=>r.header?I(ht,{defaults:{VDatePickerHeader:{...M}}},{default:()=>{var L;return[(L=r.header)==null?void 0:L.call(r,M)]}}):I(A1,ge({key:"header"},T,M,{onClick:s.value!=="month"?b:void 0}),{...r,default:void 0}),default:()=>I(ke,null,[I(T1,ge(C,{disabled:m.value,text:v.value,"onClick:next":y,"onClick:prev":_,"onClick:month":x,"onClick:year":S}),null),I(zp,{hideOnLeave:!0},{default:()=>[s.value==="months"?I(P1,ge({key:"date-picker-months"},P,{modelValue:u.value,"onUpdate:modelValue":L=>u.value=L,min:g.value,max:p.value}),null):s.value==="year"?I(D1,ge({key:"date-picker-years"},D,{modelValue:c.value,"onUpdate:modelValue":L=>c.value=L,min:g.value,max:p.value}),null):I(I1,ge({key:"date-picker-month"},A,{modelValue:o.value,"onUpdate:modelValue":L=>o.value=L,month:u.value,"onUpdate:month":L=>u.value=L,year:c.value,"onUpdate:year":L=>c.value=L,min:g.value,max:p.value}),null)]})]),actions:r.actions})}),{}}});const iv=Symbol.for("vuetify:v-expansion-panel"),XJ=["default","accordion","inset","popout"],ZJ=Q({color:String,static:Boolean,variant:{type:String,default:"default",validator:e=>XJ.includes(e)},readonly:Boolean,...Ie(),...vu(),...et(),...vt()},"VExpansionPanels"),jJ=le()({name:"VExpansionPanels",props:ZJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;ws(e,iv);const{themeClasses:r}=St(e),a=E(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Gt({VExpansionPanel:{color:se(e,"color"),readonly:se(e,"readonly"),static:se(e,"static")}}),de(()=>I(e.tag,{class:["v-expansion-panels",r.value,a.value,e.class],style:e.style},n)),{}}}),KJ=Q({...Ie(),...by()},"VExpansionPanelText"),PF=le()({name:"VExpansionPanelText",props:KJ(),setup(e,t){let{slots:n}=t;const r=nt(iv);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:a,onAfterLeave:i}=yC(e,r.isSelected);return de(()=>I(fy,{onAfterLeave:i},{default:()=>{var o;return[Yt(I("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&a.value&&I("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[Ya,r.isSelected.value]])]}})),{}}}),DF=Q({color:String,expandIcon:{type:Je,default:"$expand"},collapseIcon:{type:Je,default:"$collapse"},hideActions:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Ie()},"VExpansionPanelTitle"),MF=le()({name:"VExpansionPanelTitle",directives:{Ripple:lo},props:DF(),setup(e,t){let{slots:n}=t;const r=nt(iv);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(e,"color"),o=E(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}));return de(()=>{var s;return Yt(I("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--static":e.static},a.value,e.class],style:[i.value,e.style],type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[I("span",{class:"v-expansion-panel-title__overlay"},null),(s=n.default)==null?void 0:s.call(n,o.value),!e.hideActions&&I("span",{class:"v-expansion-panel-title__icon"},[n.actions?n.actions(o.value):I(Ct,{icon:r.isSelected.value?e.collapseIcon:e.expandIcon},null)])]),[[Mr("ripple"),e.ripple]])}),{}}}),qJ=Q({title:String,text:String,bgColor:String,...Ie(),...pn(),...hu(),...by(),...Ht(),...et(),...DF()},"VExpansionPanel"),JJ=le()({name:"VExpansionPanel",props:qJ(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=gu(e,iv),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(e,"bgColor"),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e),l=E(()=>(r==null?void 0:r.disabled.value)||e.disabled),u=E(()=>r.group.items.value.reduce((d,v,h)=>(r.group.selected.value.includes(v.id)&&d.push(h),d),[])),c=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===1)}),f=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===-1)});return Tt(iv,r),Gt({VExpansionPanelText:{eager:se(e,"eager")},VExpansionPanelTitle:{readonly:se(e,"readonly")}}),de(()=>{const d=!!(n.text||e.text),v=!!(n.title||e.title);return I(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":l.value},s.value,a.value,e.class],style:[i.value,e.style]},{default:()=>{var h;return[I("div",{class:["v-expansion-panel__shadow",...o.value]},null),v&&I(MF,{key:"title",collapseIcon:e.collapseIcon,color:e.color,expandIcon:e.expandIcon,hideActions:e.hideActions,ripple:e.ripple},{default:()=>[n.title?n.title():e.title]}),d&&I(PF,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(h=n.default)==null?void 0:h.call(n)]}})}),{}}});const QJ=Q({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},multiple:Boolean,showSize:{type:[Boolean,Number],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(e)},...co({prependIcon:"$file"}),modelValue:{type:Array,default:()=>[],validator:e=>nn(e).every(t=>t!=null&&typeof t=="object")},...qv({clearable:!0})},"VFileInput"),eQ=le()({name:"VFileInput",inheritAttrs:!1,props:QJ(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=cn(),o=ze(e,"modelValue"),{isFocused:s,focus:l,blur:u}=uo(e),c=E(()=>typeof e.showSize!="boolean"?e.showSize:void 0),f=E(()=>(o.value??[]).reduce((T,A)=>{let{size:P=0}=A;return T+P},0)),d=E(()=>BP(f.value,c.value)),v=E(()=>(o.value??[]).map(T=>{const{name:A="",size:P=0}=T;return e.showSize?`${A} (${BP(P,c.value)})`:A})),h=E(()=>{var A;const T=((A=o.value)==null?void 0:A.length)??0;return e.showSize?i(e.counterSizeString,T,d.value):i(e.counterString,T)}),g=pe(),p=pe(),m=pe(),y=E(()=>s.value||e.active),_=E(()=>["plain","underlined"].includes(e.variant));function b(){var T;m.value!==document.activeElement&&((T=m.value)==null||T.focus()),s.value||l()}function x(T){w(T)}function S(T){r("mousedown:control",T)}function w(T){var A;(A=m.value)==null||A.click(),r("click:control",T)}function C(T){T.stopPropagation(),b(),dt(()=>{o.value=[],qw(e["onClick:clear"],T)})}return Se(o,T=>{(!Array.isArray(T)||!T.length)&&m.value&&(m.value.value="")}),de(()=>{const T=!!(a.counter||e.counter),A=!!(T||a.details),[P,D]=Ss(n),{modelValue:M,...L}=$n.filterProps(e),R=_C(e);return I($n,ge({ref:g,modelValue:o.value,"onUpdate:modelValue":O=>o.value=O,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-input--plain-underlined":_.value},e.class],style:e.style,"onClick:prepend":x},P,L,{centerAffix:!_.value,focused:s.value}),{...a,default:O=>{let{id:W,isDisabled:V,isDirty:G,isReadonly:X,isValid:Z}=O;return I(Kc,ge({ref:p,"prepend-icon":e.prependIcon,onMousedown:S,onClick:w,"onClick:clear":C,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},R,{id:W.value,active:y.value||G.value,dirty:G.value,disabled:V.value,focused:s.value,error:Z.value===!1}),{...a,default:J=>{var U;let{props:{class:ee,...F}}=J;return I(ke,null,[I("input",ge({ref:m,type:"file",readonly:X.value,disabled:V.value,multiple:e.multiple,name:e.name,onClick:$=>{$.stopPropagation(),X.value&&$.preventDefault(),b()},onChange:$=>{if(!$.target)return;const z=$.target;o.value=[...z.files??[]]},onFocus:b,onBlur:u},F,D),null),I("div",{class:ee},[!!((U=o.value)!=null&&U.length)&&(a.selection?a.selection({fileNames:v.value,totalBytes:f.value,totalBytesReadable:d.value}):e.chips?v.value.map($=>I(jv,{key:$,size:"small",color:e.color},{default:()=>[$]})):v.value.join(", "))])])}})},details:A?O=>{var W,V;return I(ke,null,[(W=a.details)==null?void 0:W.call(a,O),T&&I(ke,null,[I("span",null,null),I(xy,{active:!!((V=o.value)!=null&&V.length),value:h.value},a.counter)])])}:void 0})}),Xa({},g,p,m)}});const tQ=Q({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Yr(),...Ie(),...pn(),...Hc(),...Ht(),...et({tag:"footer"}),...vt()},"VFooter"),nQ=le()({name:"VFooter",props:tQ(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(se(e,"color")),{borderClasses:o}=xa(e),{elevationClasses:s}=Vn(e),{roundedClasses:l}=qt(e),u=xe(32),{resizeRef:c}=_i(v=>{v.length&&(u.value=v[0].target.clientHeight)}),f=E(()=>e.height==="auto"?u.value:parseInt(e.height,10)),{layoutItemStyles:d}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:f,elementSize:E(()=>e.height==="auto"?void 0:f.value),active:E(()=>e.app),absolute:se(e,"absolute")});return de(()=>I(e.tag,{ref:c,class:["v-footer",r.value,a.value,o.value,s.value,l.value,e.class],style:[i.value,e.app?d.value:{height:Ae(e.height)},e.style]},n)),{}}}),rQ=Q({...Ie(),...bj()},"VForm"),aQ=le()({name:"VForm",props:rQ(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=Sj(e),i=pe();function o(l){l.preventDefault(),a.reset()}function s(l){const u=l,c=a.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(f=>{var v;let{valid:d}=f;d&&((v=i.value)==null||v.submit())}),u.preventDefault()}return de(()=>{var l;return I("form",{ref:i,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:o,onSubmit:s},[(l=n.default)==null?void 0:l.call(n,a)])}),Xa(a,i)}}),iQ=Q({disabled:Boolean,modelValue:{type:Boolean,default:void 0},...pz()},"VHover"),oQ=le()({name:"VHover",props:iQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{runOpenDelay:a,runCloseDelay:i}=mz(e,o=>!e.disabled&&(r.value=o));return()=>{var o;return(o=n.default)==null?void 0:o.call(n,{isHovering:r.value,props:{onMouseenter:a,onMouseleave:i}})}}});const sQ=Q({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...hr(),...et()},"VInfiniteScroll"),TD=Hr({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootRef:null,rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:r,isIntersecting:a}=dy(i=>{},e.rootMargin?{rootMargin:e.rootMargin}:void 0);return Se(a,async i=>{n("intersect",e.side,i)}),de(()=>I("div",{class:"v-infinite-scroll-intersect",ref:r},[$r(" ")])),{}}}),lQ=le()({name:"VInfiniteScroll",props:sQ(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=pe(),i=xe("ok"),o=xe("ok"),s=E(()=>Ae(e.margin)),l=xe(!1);function u(x){if(!a.value)return;const S=e.direction==="vertical"?"scrollTop":"scrollLeft";a.value[S]=x}function c(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return a.value[x]}function f(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return a.value[x]}function d(){if(!a.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return a.value[x]}ln(()=>{a.value&&(e.side==="start"?u(f()):e.side==="both"&&u(f()/2-d()/2))});function v(x,S){x==="start"?i.value=S:x==="end"&&(o.value=S)}function h(x){return x==="start"?i.value:o.value}let g=0;function p(x,S){l.value=S,l.value&&m(x)}function m(x){if(e.mode!=="manual"&&!l.value)return;const S=h(x);if(!a.value||S==="loading")return;g=f(),v(x,"loading");function w(C){v(x,C),dt(()=>{C==="empty"||C==="error"||(C==="ok"&&x==="start"&&u(f()-g+c()),e.mode!=="manual"&&dt(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{m(x)})})})}))})}r("load",{side:x,done:w})}const{t:y}=cn();function _(x,S){var T,A,P,D,M;if(e.side!==x&&e.side!=="both")return;const w=()=>m(x),C={side:x,props:{onClick:w,color:e.color}};return S==="error"?(T=n.error)==null?void 0:T.call(n,C):S==="empty"?((A=n.empty)==null?void 0:A.call(n,C))??I("div",null,[y(e.emptyText)]):e.mode==="manual"?S==="loading"?((P=n.loading)==null?void 0:P.call(n,C))??I(Dc,{indeterminate:!0,color:e.color},null):((D=n["load-more"])==null?void 0:D.call(n,C))??I(Dt,{variant:"outlined",color:e.color,onClick:w},{default:()=>[y(e.loadMoreText)]}):((M=n.loading)==null?void 0:M.call(n,C))??I(Dc,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:b}=gr(e);de(()=>{const x=e.tag,S=e.side==="start"||e.side==="both",w=e.side==="end"||e.side==="both",C=e.mode==="intersect";return I(x,{ref:a,class:["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":S,"v-infinite-scroll--end":w}],style:b.value},{default:()=>{var T;return[I("div",{class:"v-infinite-scroll__side"},[_("start",i.value)]),a.value&&S&&C&&I(TD,{key:"start",side:"start",onIntersect:p,rootRef:a.value,rootMargin:s.value},null),(T=n.default)==null?void 0:T.call(n),a.value&&w&&C&&I(TD,{key:"end",side:"end",onIntersect:p,rootRef:a.value,rootMargin:s.value},null),I("div",{class:"v-infinite-scroll__side"},[_("end",o.value)])]}})})}});const kF=Symbol.for("vuetify:v-item-group"),uQ=Q({...Ie(),...vu({selectedClass:"v-item--selected"}),...et(),...vt()},"VItemGroup"),cQ=le()({name:"VItemGroup",props:uQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=ws(e,kF);return()=>I(e.tag,{class:["v-item-group",r.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})}}),fQ=le()({name:"VItem",props:hu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:a,toggle:i,selectedClass:o,value:s,disabled:l}=gu(e,kF);return()=>{var u;return(u=n.default)==null?void 0:u.call(n,{isSelected:r.value,selectedClass:o.value,select:a,toggle:i,value:s.value,disabled:l.value})}}});const dQ=Wr("v-kbd");const vQ=Q({...Ie(),...wB()},"VLayout"),hQ=le()({name:"VLayout",props:vQ(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:a,getLayoutItem:i,items:o,layoutRef:s}=CB(e);return de(()=>{var l;return I("div",{ref:s,class:[r.value,e.class],style:[a.value,e.style]},[(l=n.default)==null?void 0:l.call(n)])}),{getLayoutItem:i,items:o}}});const gQ=Q({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...Ie(),...Hc()},"VLayoutItem"),pQ=le()({name:"VLayoutItem",props:gQ(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:r}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:se(e,"position"),elementSize:se(e,"size"),layoutSize:se(e,"size"),active:se(e,"modelValue"),absolute:se(e,"absolute")});return()=>{var a;return I("div",{class:["v-layout-item",e.class],style:[r.value,e.style]},[(a=n.default)==null?void 0:a.call(n)])}}}),mQ=Q({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...Ie(),...hr(),...et(),...oo({transition:"fade-transition"})},"VLazy"),yQ=le()({name:"VLazy",directives:{intersect:Wv},props:mQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=gr(e),a=ze(e,"modelValue");function i(o){a.value||(a.value=o)}return de(()=>Yt(I(e.tag,{class:["v-lazy",e.class],style:[r.value,e.style]},{default:()=>[a.value&&I(fa,{transition:e.transition,appear:!0},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n)]}})]}),[[Mr("intersect"),{handler:i,options:e.options},null]])),{}}});const _Q=Q({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...Ie()},"VLocaleProvider"),bQ=le()({name:"VLocaleProvider",props:_Q(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=yX(e);return de(()=>{var a;return I("div",{class:["v-locale-provider",r.value,e.class],style:e.style},[(a=n.default)==null?void 0:a.call(n)])}),{}}});const SQ=Q({scrollable:Boolean,...Ie(),...et({tag:"main"})},"VMain"),xQ=le()({name:"VMain",props:SQ(),setup(e,t){let{slots:n}=t;const{mainStyles:r}=vZ(),{ssrBootStyles:a}=cu();return de(()=>I(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[r.value,a.value,e.style]},{default:()=>{var i,o;return[e.scrollable?I("div",{class:"v-main__scroller"},[(i=n.default)==null?void 0:i.call(n)]):(o=n.default)==null?void 0:o.call(n)]}})),{}}});function wQ(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const a=xe(!1),i=xe(0),o=E(()=>{const u=typeof a.value=="boolean"?"top":a.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[u]:Ae(i.value)}:{top:r.value.top}]});ln(()=>{Se(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),En(()=>{window.removeEventListener("scroll",l)});let s=0;function l(){const u=s>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),f=parseFloat(r.value.top??0),d=window.scrollY-Math.max(0,i.value-f),v=c.height+Math.max(i.value,f)-window.scrollY-window.innerHeight,h=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=AD(t),a=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(a-r)*Math.abs(a),n===e.length-1&&(t*=.5)}return AD(t)*1e3}function AQ(){const e={};function t(a){Array.from(a.changedTouches).forEach(i=>{(e[i.identifier]??(e[i.identifier]=new R9(TQ))).push([a.timeStamp,i])})}function n(a){Array.from(a.changedTouches).forEach(i=>{delete e[i.identifier]})}function r(a){var u;const i=(u=e[a])==null?void 0:u.values().reverse();if(!i)throw new Error(`No samples for touch id ${a}`);const o=i[0],s=[],l=[];for(const c of i){if(o[0]-c[0]>CQ)break;s.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:ID(s),y:ID(l),get direction(){const{x:c,y:f}=this,[d,v]=[Math.abs(c),Math.abs(f)];return d>v&&c>=0?"right":d>v&&c<=0?"left":v>d&&f>=0?"down":v>d&&f<=0?"up":IQ()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function IQ(){throw new Error}function PQ(e){let{isActive:t,isTemporary:n,width:r,touchless:a,position:i}=e;ln(()=>{window.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("touchmove",y,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),En(()=>{window.removeEventListener("touchstart",m),window.removeEventListener("touchmove",y),window.removeEventListener("touchend",_)});const o=E(()=>["left","right"].includes(i.value)),{addMovement:s,endTouch:l,getVelocity:u}=AQ();let c=!1;const f=xe(!1),d=xe(0),v=xe(0);let h;function g(x,S){return(i.value==="left"?x:i.value==="right"?document.documentElement.clientWidth-x:i.value==="top"?x:i.value==="bottom"?document.documentElement.clientHeight-x:Pu())-(S?r.value:0)}function p(x){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const w=i.value==="left"?(x-v.value)/r.value:i.value==="right"?(document.documentElement.clientWidth-x-v.value)/r.value:i.value==="top"?(x-v.value)/r.value:i.value==="bottom"?(document.documentElement.clientHeight-x-v.value)/r.value:Pu();return S?Math.max(0,Math.min(1,w)):w}function m(x){if(a.value)return;const S=x.changedTouches[0].clientX,w=x.changedTouches[0].clientY,C=25,T=i.value==="left"?Sdocument.documentElement.clientWidth-C:i.value==="top"?wdocument.documentElement.clientHeight-C:Pu(),A=t.value&&(i.value==="left"?Sdocument.documentElement.clientWidth-r.value:i.value==="top"?wdocument.documentElement.clientHeight-r.value:Pu());(T||A||t.value&&n.value)&&(c=!0,h=[S,w],v.value=g(o.value?S:w,t.value),d.value=p(o.value?S:w),l(x),s(x))}function y(x){const S=x.changedTouches[0].clientX,w=x.changedTouches[0].clientY;if(c){if(!x.cancelable){c=!1;return}const T=Math.abs(S-h[0]),A=Math.abs(w-h[1]);(o.value?T>A&&T>3:A>T&&A>3)?(f.value=!0,c=!1):(o.value?A:T)>3&&(c=!1)}if(!f.value)return;x.preventDefault(),s(x);const C=p(o.value?S:w,!1);d.value=Math.max(0,Math.min(1,C)),C>1?v.value=g(o.value?S:w,!0):C<0&&(v.value=g(o.value?S:w,!1))}function _(x){if(c=!1,!f.value)return;s(x),f.value=!1;const S=u(x.changedTouches[0].identifier),w=Math.abs(S.x),C=Math.abs(S.y);(o.value?w>C&&w>400:C>w&&C>3)?t.value=S.direction===({left:"right",right:"left",top:"down",bottom:"up"}[i.value]||Pu()):t.value=d.value>.5}const b=E(()=>f.value?{transform:i.value==="left"?`translateX(calc(-100% + ${d.value*r.value}px))`:i.value==="right"?`translateX(calc(100% - ${d.value*r.value}px))`:i.value==="top"?`translateY(calc(-100% + ${d.value*r.value}px))`:i.value==="bottom"?`translateY(calc(100% - ${d.value*r.value}px))`:Pu(),transition:"none"}:void 0);return{isDragging:f,dragProgress:d,dragStyles:b}}function Pu(){throw new Error}const DQ=["start","end","left","right","top","bottom"],MQ=Q({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>DQ.includes(e)},sticky:Boolean,...Yr(),...Ie(),...aC(),...pn(),...Hc(),...Ht(),...et({tag:"nav"}),...vt()},"VNavigationDrawer"),kQ=le()({name:"VNavigationDrawer",props:MQ(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{isRtl:i}=Rn(),{themeClasses:o}=St(e),{borderClasses:s}=xa(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Bt(se(e,"color")),{elevationClasses:c}=Vn(e),{displayClasses:f,mobile:d}=xs(e),{roundedClasses:v}=qt(e),h=OB(),g=ze(e,"modelValue",null,X=>!!X),{ssrBootStyles:p}=cu(),{scopeId:m}=jc(),y=pe(),_=xe(!1),b=E(()=>e.rail&&e.expandOnHover&&_.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),x=E(()=>QS(e.location,i.value)),S=E(()=>!e.permanent&&(d.value||e.temporary)),w=E(()=>e.sticky&&!S.value&&x.value!=="bottom");Ba(()=>e.expandOnHover&&e.rail!=null,()=>{Se(_,X=>r("update:rail",!X))}),Ba(()=>!e.disableResizeWatcher,()=>{Se(S,X=>!e.permanent&&dt(()=>g.value=!X))}),Ba(()=>!e.disableRouteWatcher&&!!h,()=>{Se(h.currentRoute,()=>S.value&&(g.value=!1))}),Se(()=>e.permanent,X=>{X&&(g.value=!0)}),qm(()=>{e.modelValue!=null||S.value||(g.value=e.permanent||!d.value)});const{isDragging:C,dragProgress:T,dragStyles:A}=PQ({isActive:g,isTemporary:S,width:b,touchless:se(e,"touchless"),position:x}),P=E(()=>{const X=S.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):b.value;return C.value?X*T.value:X}),{layoutItemStyles:D,layoutItemScrimStyles:M}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:x,layoutSize:P,elementSize:b,active:E(()=>g.value||C.value),disableTransitions:E(()=>C.value),absolute:E(()=>e.absolute||w.value&&typeof L.value!="string")}),{isStuck:L,stickyStyles:R}=wQ({rootEl:y,isSticky:w,layoutItemStyles:D}),O=Bt(E(()=>typeof e.scrim=="string"?e.scrim:null)),W=E(()=>({...C.value?{opacity:T.value*.2,transition:"none"}:void 0,...M.value}));Gt({VList:{bgColor:"transparent"}});function V(){_.value=!0}function G(){_.value=!1}return de(()=>{const X=a.image||e.image;return I(ke,null,[I(e.tag,ge({ref:y,onMouseenter:V,onMouseleave:G,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":_.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":S.value,"v-navigation-drawer--active":g.value,"v-navigation-drawer--sticky":w.value},o.value,l.value,s.value,f.value,c.value,v.value,e.class],style:[u.value,D.value,A.value,p.value,R.value,e.style]},m,n),{default:()=>{var Z,J,ee,F;return[X&&I("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?(Z=a.image)==null?void 0:Z.call(a,{image:e.image}):I("img",{src:e.image,alt:""},null)]),a.prepend&&I("div",{class:"v-navigation-drawer__prepend"},[(J=a.prepend)==null?void 0:J.call(a)]),I("div",{class:"v-navigation-drawer__content"},[(ee=a.default)==null?void 0:ee.call(a)]),a.append&&I("div",{class:"v-navigation-drawer__append"},[(F=a.append)==null?void 0:F.call(a)])]}}),I(yi,{name:"fade-transition"},{default:()=>[S.value&&(C.value||g.value)&&!!e.scrim&&I("div",ge({class:["v-navigation-drawer__scrim",O.backgroundColorClasses.value],style:[W.value,O.backgroundColorStyles.value],onClick:()=>g.value=!1},m),null)]})])}),{isStuck:L}}}),LQ=Hr({name:"VNoSsr",setup(e,t){let{slots:n}=t;const r=_z();return()=>{var a;return r.value&&((a=n.default)==null?void 0:a.call(n))}}});const EQ=Q({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...hr(),...Zv(),...XN(qv({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),RQ=le()({name:"VOtpInput",props:EQ(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{dimensionStyles:i}=gr(e),{isFocused:o,focus:s,blur:l}=uo(e),u=ze(e,"modelValue","",w=>String(w).split(""),w=>w.join("")),{t:c}=cn(),f=E(()=>Number(e.length)),d=E(()=>Array(f.value).fill(0)),v=pe(-1),h=pe(),g=pe([]),p=E(()=>g.value[v.value]);function m(){if(e.type==="number"&&/[^0-9]/g.test(p.value.value)){p.value.value="";return}const w=u.value.slice(),C=p.value.value;w[v.value]=C;let T=null;v.value>u.value.length?T=u.value.length+1:v.value+1!==f.value&&(T="next"),u.value=w,T&&Tc(h.value,T)}function y(w){const C=u.value.slice(),T=v.value;let A=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(w.key)&&(w.preventDefault(),w.key==="ArrowLeft"?A="prev":w.key==="ArrowRight"?A="next":["Backspace","Delete"].includes(w.key)&&(C[v.value]="",u.value=C,v.value>0&&w.key==="Backspace"?A="prev":requestAnimationFrame(()=>{var P;(P=g.value[T])==null||P.select()})),requestAnimationFrame(()=>{A!=null&&Tc(h.value,A)}))}function _(w,C){var T,A;C.preventDefault(),C.stopPropagation(),u.value=(((T=C==null?void 0:C.clipboardData)==null?void 0:T.getData("Text"))??"").split(""),(A=g.value)==null||A[w].blur()}function b(){u.value=[]}function x(w,C){s(),v.value=C}function S(){l(),v.value=-1}return Gt({VField:{color:E(()=>e.color),bgColor:E(()=>e.color),baseColor:E(()=>e.baseColor),disabled:E(()=>e.disabled),error:E(()=>e.error),variant:E(()=>e.variant)}},{scoped:!0}),Se(u,w=>{w.length===f.value&&r("finish",w.join(""))},{deep:!0}),Se(v,w=>{w<0||dt(()=>{var C;(C=g.value[w])==null||C.select()})}),de(()=>{var T;const[w,C]=Ss(n);return I("div",ge({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},w),[I("div",{ref:h,class:"v-otp-input__content",style:[i.value]},[d.value.map((A,P)=>I(ke,null,[e.divider&&P!==0&&I("span",{class:"v-otp-input__divider"},[e.divider]),I(Kc,{focused:o.value&&e.focusAll||v.value===P,key:P},{...a,loader:void 0,default:()=>I("input",{ref:D=>g.value[P]=D,"aria-label":c(e.label,P+1),autofocus:P===0&&e.autofocus,autocomplete:"one-time-code",class:["v-otp-input__field"],disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:"1",placeholder:e.placeholder,type:e.type==="number"?"text":e.type,value:u.value[P],onInput:m,onFocus:D=>x(D,P),onBlur:S,onKeydown:y,onPaste:D=>_(P,D)},null)})])),I("input",ge({class:"v-otp-input-input",type:"hidden"},C,{value:u.value.join("")}),null),I(bi,{contained:!0,"content-class":"v-otp-input__loader","model-value":!!e.loading,persistent:!0},{default:()=>{var A;return[((A=a.loader)==null?void 0:A.call(a))??I(Dc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),(T=a.default)==null?void 0:T.call(a)])])}),{blur:()=>{var w;(w=g.value)==null||w.some(C=>C.blur())},focus:()=>{var w;(w=g.value)==null||w[0].focus()},reset:b,isFocused:o}}});function VQ(e){return Math.floor(Math.abs(e))*Math.sign(e)}const OQ=Q({scale:{type:[Number,String],default:.5},...Ie()},"VParallax"),NQ=le()({name:"VParallax",props:OQ(),setup(e,t){let{slots:n}=t;const{intersectionRef:r,isIntersecting:a}=dy(),{resizeRef:i,contentRect:o}=_i(),{height:s}=xs(),l=pe();Ln(()=>{var v;r.value=i.value=(v=l.value)==null?void 0:v.$el});let u;Se(a,v=>{v?(u=nC(r.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",d,{passive:!0}),d()):u.removeEventListener("scroll",d)}),En(()=>{u==null||u.removeEventListener("scroll",d)}),Se(s,d),Se(()=>{var v;return(v=o.value)==null?void 0:v.height},d);const c=E(()=>1-vn(+e.scale));let f=-1;function d(){a.value&&(cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;const v=((x=l.value)==null?void 0:x.$el).querySelector(".v-img__img");if(!v)return;const h=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,g=u instanceof Document?window.scrollY:u.scrollTop,p=r.value.getBoundingClientRect().top+g,m=o.value.height,y=p+(m-h)/2,_=VQ((g-y)*c.value),b=Math.max(1,(c.value*(h-m)+m)/m);v.style.setProperty("transform",`translateY(${_}px) scale(${b})`)}))}return de(()=>I(Zl,{class:["v-parallax",{"v-parallax--active":a.value},e.class],style:e.style,ref:l,cover:!0,onLoadstart:d,onLoad:d},n)),{}}}),BQ=Q({...py({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),zQ=le()({name:"VRadio",props:BQ(),setup(e,t){let{slots:n}=t;return de(()=>I(jl,ge(e,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)),{}}});const FQ=Q({height:{type:[Number,String],default:"auto"},...co(),...Sn(gC(),["multiple"]),trueIcon:{type:Je,default:"$radioOn"},falseIcon:{type:Je,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),$Q=le()({name:"VRadioGroup",inheritAttrs:!1,props:FQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=rr(),i=E(()=>e.id||`radio-group-${a}`),o=ze(e,"modelValue");return de(()=>{const[s,l]=Ss(n),u=$n.filterProps(e),c=jl.filterProps(e),f=r.label?r.label({label:e.label,props:{for:i.value}}):e.label;return I($n,ge({class:["v-radio-group",e.class],style:e.style},s,u,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,id:i.value}),{...r,default:d=>{let{id:v,messagesId:h,isDisabled:g,isReadonly:p}=d;return I(ke,null,[f&&I(Zc,{id:v.value},{default:()=>[f]}),I(XB,ge(c,{id:v.value,"aria-describedby":h.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:g.value,readonly:p.value,"aria-labelledby":f?v.value:void 0,multiple:!1},l,{modelValue:o.value,"onUpdate:modelValue":m=>o.value=m}),r)])}})}),{}}}),GQ=Q({...Zv(),...co(),...Fz(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),HQ=le()({name:"VRangeSlider",props:GQ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=pe(),i=pe(),o=pe(),{rtlClasses:s}=Rn();function l(T){if(!a.value||!i.value)return;const A=b1(T,a.value.$el,e.direction),P=b1(T,i.value.$el,e.direction),D=Math.abs(A),M=Math.abs(P);return DT!=null&&T.length?T.map(A=>u.roundValue(A)):[0,0]),{activeThumbRef:f,hasLabels:d,max:v,min:h,mousePressed:g,onSliderMousedown:p,onSliderTouchstart:m,position:y,trackContainerRef:_}=Gz({props:e,steps:u,onSliderStart:()=>{r("start",c.value)},onSliderEnd:T=>{var D;let{value:A}=T;const P=f.value===((D=a.value)==null?void 0:D.$el)?[A,c.value[1]]:[c.value[0],A];!e.strict&&P[0]{var M,L,R,O;let{value:A}=T;const[P,D]=c.value;!e.strict&&P===D&&P!==h.value&&(f.value=A>P?(M=i.value)==null?void 0:M.$el:(L=a.value)==null?void 0:L.$el,(R=f.value)==null||R.focus()),f.value===((O=a.value)==null?void 0:O.$el)?c.value=[Math.min(A,D),D]:c.value=[P,Math.max(P,A)]},getActiveThumb:l}),{isFocused:b,focus:x,blur:S}=uo(e),w=E(()=>y(c.value[0])),C=E(()=>y(c.value[1]));return de(()=>{const T=$n.filterProps(e),A=!!(e.label||n.label||n.prepend);return I($n,ge({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||d.value,"v-slider--focused":b.value,"v-slider--pressed":g.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style,ref:o},T,{focused:b.value}),{...n,prepend:A?P=>{var D,M;return I(ke,null,[((D=n.label)==null?void 0:D.call(n,P))??(e.label?I(Zc,{class:"v-slider__label",text:e.label},null):void 0),(M=n.prepend)==null?void 0:M.call(n,P)])}:void 0,default:P=>{var L,R;let{id:D,messagesId:M}=P;return I("div",{class:"v-slider__container",onMousedown:p,onTouchstartPassive:m},[I("input",{id:`${D.value}_start`,name:e.name||D.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),I("input",{id:`${D.value}_stop`,name:e.name||D.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),I(Hz,{ref:_,start:w.value,stop:C.value},{"tick-label":n["tick-label"]}),I(S1,{ref:a,"aria-describedby":M.value,focused:b&&f.value===((L=a.value)==null?void 0:L.$el),modelValue:c.value[0],"onUpdate:modelValue":O=>c.value=[O,c.value[1]],onFocus:O=>{var W,V,G,X;x(),f.value=(W=a.value)==null?void 0:W.$el,c.value[0]===c.value[1]&&c.value[1]===h.value&&O.relatedTarget!==((V=i.value)==null?void 0:V.$el)&&((G=a.value)==null||G.$el.blur(),(X=i.value)==null||X.$el.focus())},onBlur:()=>{S(),f.value=void 0},min:h.value,max:c.value[1],position:w.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]}),I(S1,{ref:i,"aria-describedby":M.value,focused:b&&f.value===((R=i.value)==null?void 0:R.$el),modelValue:c.value[1],"onUpdate:modelValue":O=>c.value=[c.value[0],O],onFocus:O=>{var W,V,G,X;x(),f.value=(W=i.value)==null?void 0:W.$el,c.value[0]===c.value[1]&&c.value[0]===v.value&&O.relatedTarget!==((V=a.value)==null?void 0:V.$el)&&((G=i.value)==null||G.$el.blur(),(X=a.value)==null||X.$el.focus())},onBlur:()=>{S(),f.value=void 0},min:c.value[0],max:v.value,position:C.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}});const WQ=Q({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Je,default:"$ratingEmpty"},fullIcon:{type:Je,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...Ie(),...Cn(),...so(),...et(),...vt()},"VRating"),UQ=le()({name:"VRating",props:WQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=cn(),{themeClasses:a}=St(e),i=ze(e,"modelValue"),o=E(()=>vn(parseFloat(i.value),0,+e.length)),s=E(()=>ci(Number(e.length),1)),l=E(()=>s.value.flatMap(g=>e.halfIncrements?[g-.5,g]:[g])),u=xe(-1),c=E(()=>l.value.map(g=>{const p=e.hover&&u.value>-1,m=o.value>=g,y=u.value>=g,b=(p?y:m)?e.fullIcon:e.emptyIcon,x=e.activeColor??e.color,S=m||y?x:e.color;return{isFilled:m,isHovered:y,icon:b,color:S}})),f=E(()=>[0,...l.value].map(g=>{function p(){u.value=g}function m(){u.value=-1}function y(){e.disabled||e.readonly||(i.value=o.value===g&&e.clearable?0:g)}return{onMouseenter:e.hover?p:void 0,onMouseleave:e.hover?m:void 0,onClick:y}})),d=E(()=>e.name??`v-rating-${rr()}`);function v(g){var C,T;let{value:p,index:m,showStar:y=!0}=g;const{onMouseenter:_,onMouseleave:b,onClick:x}=f.value[m+1],S=`${d.value}-${String(p).replace(".","-")}`,w={color:(C=c.value[m])==null?void 0:C.color,density:e.density,disabled:e.disabled,icon:(T=c.value[m])==null?void 0:T.icon,ripple:e.ripple,size:e.size,variant:"plain"};return I(ke,null,[I("label",{for:S,class:{"v-rating__item--half":e.halfIncrements&&p%1>0,"v-rating__item--full":e.halfIncrements&&p%1===0},onMouseenter:_,onMouseleave:b,onClick:x},[I("span",{class:"v-rating__hidden"},[r(e.itemAriaLabel,p,e.length)]),y?n.item?n.item({...c.value[m],props:w,value:p,index:m,rating:o.value}):I(Dt,ge({"aria-label":r(e.itemAriaLabel,p,e.length)},w),null):void 0]),I("input",{class:"v-rating__hidden",name:d.value,id:S,type:"radio",value:p,checked:o.value===p,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function h(g){return n["item-label"]?n["item-label"](g):g.label?I("span",null,[g.label]):I("span",null,[$r(" ")])}return de(()=>{var p;const g=!!((p=e.itemLabels)!=null&&p.length)||n["item-label"];return I(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},a.value,e.class],style:e.style},{default:()=>[I(v,{value:0,index:-1,showStar:!1},null),s.value.map((m,y)=>{var _,b;return I("div",{class:"v-rating__wrapper"},[g&&e.itemLabelPosition==="top"?h({value:m,index:y,label:(_=e.itemLabels)==null?void 0:_[y]}):void 0,I("div",{class:"v-rating__item"},[e.halfIncrements?I(ke,null,[I(v,{value:m-.5,index:y*2},null),I(v,{value:m,index:y*2+1},null)]):I(v,{value:m,index:y},null)]),g&&e.itemLabelPosition==="bottom"?h({value:m,index:y,label:(b=e.itemLabels)==null?void 0:b[y]}):void 0])})]})}),{}}});const YQ={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function XQ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return I("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${e}`]},[t])}function PD(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>Vy(t))}function Vy(e){let t=[];if(!e)return t;const n=YQ[e];if(e!==n){if(e.includes(","))return DD(e);if(e.includes("@"))return PD(e);n.includes(",")?t=DD(n):n.includes("@")?t=PD(n):n&&t.push(Vy(n))}return[XQ(e,t)]}function DD(e){return e.replace(/\s/g,"").split(",").map(Vy)}const ZQ=Q({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...hr(),...pn(),...vt()},"VSkeletonLoader"),jQ=le()({name:"VSkeletonLoader",props:ZQ(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"color")),{dimensionStyles:i}=gr(e),{elevationClasses:o}=Vn(e),{themeClasses:s}=St(e),{t:l}=cn(),u=E(()=>Vy(nn(e.type).join(",")));return de(()=>{var f;const c=!n.default||e.loading;return I("div",{class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},s.value,r.value,o.value],style:[a.value,c?i.value:{}],"aria-busy":e.boilerplate?void 0:c,"aria-live":e.boilerplate?void 0:"polite","aria-label":e.boilerplate?void 0:l(e.loadingText),role:e.boilerplate?void 0:"alert"},[c?u.value:(f=n.default)==null?void 0:f.call(n)])}),{}}});function MD(e){const n=Math.abs(e);return Math.sign(e)*(n/((1/.501-2)*(1-n)+1))}function kD(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:a,currentScrollOffset:i,isHorizontal:o}=e;const s=o?t.clientWidth:t.clientHeight,l=o?t.offsetLeft:t.offsetTop,u=a&&o?r-l-s:l,c=n+i,f=s+u,d=s*.4;return u<=i?i=Math.max(u-d,0):c<=f&&(i=Math.min(i-(c-f-d),r-n)),i}function KQ(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:a,isHorizontal:i}=e;const o=i?t.clientWidth:t.clientHeight,s=i?t.offsetLeft:t.offsetTop,l=a&&i?r-s-o/2-n/2:s+o/2-n/2;return Math.min(r-n,Math.max(0,l))}const LF=Symbol.for("vuetify:v-slide-group"),EF=Q({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:LF},nextIcon:{type:Je,default:"$next"},prevIcon:{type:Je,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Ie(),...aC(),...et(),...vu({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),M1=le()({name:"VSlideGroup",props:EF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Rn(),{displayClasses:a,mobile:i}=xs(e),o=ws(e,e.symbol),s=xe(!1),l=xe(0),u=xe(0),c=xe(0),f=E(()=>e.direction==="horizontal"),{resizeRef:d,contentRect:v}=_i(),{resizeRef:h,contentRect:g}=_i(),p=E(()=>o.selected.value.length?o.items.value.findIndex(Z=>Z.id===o.selected.value[0]):-1),m=E(()=>o.selected.value.length?o.items.value.findIndex(Z=>Z.id===o.selected.value[o.selected.value.length-1]):-1);if(Mt){let Z=-1;Se(()=>[o.selected.value,v.value,g.value,f.value],()=>{cancelAnimationFrame(Z),Z=requestAnimationFrame(()=>{if(v.value&&g.value){const J=f.value?"width":"height";u.value=v.value[J],c.value=g.value[J],s.value=u.value+1=0&&h.value){const J=h.value.children[m.value];p.value===0||!s.value?l.value=0:e.centerActive?l.value=KQ({selectedElement:J,containerSize:u.value,contentSize:c.value,isRtl:r.value,isHorizontal:f.value}):s.value&&(l.value=kD({selectedElement:J,containerSize:u.value,contentSize:c.value,isRtl:r.value,currentScrollOffset:l.value,isHorizontal:f.value}))}})})}const y=xe(!1);let _=0,b=0;function x(Z){const J=f.value?"clientX":"clientY";b=(r.value&&f.value?-1:1)*l.value,_=Z.touches[0][J],y.value=!0}function S(Z){if(!s.value)return;const J=f.value?"clientX":"clientY",ee=r.value&&f.value?-1:1;l.value=ee*(b+_-Z.touches[0][J])}function w(Z){const J=c.value-u.value;l.value<0||!s.value?l.value=0:l.value>=J&&(l.value=J),y.value=!1}function C(){d.value&&(d.value[f.value?"scrollLeft":"scrollTop"]=0)}const T=xe(!1);function A(Z){if(T.value=!0,!(!s.value||!h.value)){for(const J of Z.composedPath())for(const ee of h.value.children)if(ee===J){l.value=kD({selectedElement:ee,containerSize:u.value,contentSize:c.value,isRtl:r.value,currentScrollOffset:l.value,isHorizontal:f.value});return}}}function P(Z){T.value=!1}function D(Z){var J;!T.value&&!(Z.relatedTarget&&((J=h.value)!=null&&J.contains(Z.relatedTarget)))&&L()}function M(Z){h.value&&(f.value?Z.key==="ArrowRight"?L(r.value?"prev":"next"):Z.key==="ArrowLeft"&&L(r.value?"next":"prev"):Z.key==="ArrowDown"?L("next"):Z.key==="ArrowUp"&&L("prev"),Z.key==="Home"?L("first"):Z.key==="End"&&L("last"))}function L(Z){var J,ee,F,U,$;if(h.value)if(!Z)(J=Kd(h.value)[0])==null||J.focus();else if(Z==="next"){const z=(ee=h.value.querySelector(":focus"))==null?void 0:ee.nextElementSibling;z?z.focus():L("first")}else if(Z==="prev"){const z=(F=h.value.querySelector(":focus"))==null?void 0:F.previousElementSibling;z?z.focus():L("last")}else Z==="first"?(U=h.value.firstElementChild)==null||U.focus():Z==="last"&&(($=h.value.lastElementChild)==null||$.focus())}function R(Z){const J=l.value+(Z==="prev"?-1:1)*u.value;l.value=vn(J,0,c.value-u.value)}const O=E(()=>{let Z=l.value>c.value-u.value?-(c.value-u.value)+MD(c.value-u.value-l.value):-l.value;l.value<=0&&(Z=MD(-l.value));const J=r.value&&f.value?-1:1;return{transform:`translate${f.value?"X":"Y"}(${J*Z}px)`,transition:y.value?"none":"",willChange:y.value?"transform":""}}),W=E(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),V=E(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return s.value||Math.abs(l.value)>0;case"mobile":return i.value||s.value||Math.abs(l.value)>0;default:return!i.value&&(s.value||Math.abs(l.value)>0)}}),G=E(()=>Math.abs(l.value)>0),X=E(()=>c.value>Math.abs(l.value)+u.value);return de(()=>I(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":V.value,"v-slide-group--is-overflowing":s.value},a.value,e.class],style:e.style,tabindex:T.value||o.selected.value.length?-1:0,onFocus:D},{default:()=>{var Z,J,ee;return[V.value&&I("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!G.value}],onClick:()=>G.value&&R("prev")},[((Z=n.prev)==null?void 0:Z.call(n,W.value))??I(zp,null,{default:()=>[I(Ct,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),I("div",{key:"container",ref:d,class:"v-slide-group__container",onScroll:C},[I("div",{ref:h,class:"v-slide-group__content",style:O.value,onTouchstartPassive:x,onTouchmovePassive:S,onTouchendPassive:w,onFocusin:A,onFocusout:P,onKeydown:M},[(J=n.default)==null?void 0:J.call(n,W.value)])]),V.value&&I("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!X.value}],onClick:()=>X.value&&R("next")},[((ee=n.next)==null?void 0:ee.call(n,W.value))??I(zp,null,{default:()=>[I(Ct,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:R,scrollOffset:l,focus:L}}}),qQ=le()({name:"VSlideGroupItem",props:hu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=gu(e,LF);return()=>{var a;return(a=n.default)==null?void 0:a.call(n,{isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}}});function JQ(e){const t=xe(e);let n=-1;function r(){clearInterval(n)}function a(){r(),dt(()=>t.value=e)}function i(o){const s=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(s.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e-c,0),t.value<=0&&r()},l)}return nr(r),{clear:r,time:t,start:i,reset:a}}const QQ=Q({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Cs({location:"bottom"}),...Yc(),...Ht(),...wa(),...vt(),...Sn(Kv({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),eee=le()({name:"VSnackbar",props:QQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{locationStyles:a}=Ts(e),{positionClasses:i}=Xc(e),{scopeId:o}=jc(),{themeClasses:s}=St(e),{colorClasses:l,colorStyles:u,variantClasses:c}=du(e),{roundedClasses:f}=qt(e),d=JQ(Number(e.timeout)),v=pe(),h=pe(),g=xe(!1);Se(r,m),Se(()=>e.timeout,m),ln(()=>{r.value&&m()});let p=-1;function m(){d.reset(),window.clearTimeout(p);const x=Number(e.timeout);if(!r.value||x===-1)return;const S=jd(h.value);d.start(S),p=window.setTimeout(()=>{r.value=!1},x)}function y(){d.reset(),window.clearTimeout(p)}function _(){g.value=!0,y()}function b(){g.value=!1,m()}return de(()=>{const x=bi.filterProps(e),S=!!(n.default||n.text||e.text);return I(bi,ge({ref:v,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},i.value,e.class],style:e.style},x,{modelValue:r.value,"onUpdate:modelValue":w=>r.value=w,contentProps:ge({class:["v-snackbar__wrapper",s.value,l.value,f.value,c.value],style:[a.value,u.value],onPointerenter:_,onPointerleave:b},x.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0},o),{default:()=>{var w,C;return[fu(!1,"v-snackbar"),e.timer&&I("div",{key:"timer",class:"v-snackbar__timer"},[I(vy,{ref:h,active:!g.value,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":d.time.value},null)]),S&&I("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((w=n.text)==null?void 0:w.call(n))??e.text,(C=n.default)==null?void 0:C.call(n)]),n.actions&&I(ht,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[I("div",{class:"v-snackbar__actions"},[n.actions()])]})]},activator:n.activator})}),Xa({},v)}});const RF=Q({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),VF=le()({name:"VStepperActions",props:RF(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=cn();function i(){n("click:prev")}function o(){n("click:next")}return de(()=>{const s={onClick:i},l={onClick:o};return I("div",{class:"v-stepper-actions"},[I(ht,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:a(e.prevText),variant:"text"}}},{default:()=>{var u;return[((u=r.prev)==null?void 0:u.call(r,{props:s}))??I(Dt,s,null)]}}),I(ht,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:a(e.nextText),variant:"tonal"}}},{default:()=>{var u;return[((u=r.next)==null?void 0:u.call(r,{props:l}))??I(Dt,l,null)]}})])}),{}}}),OF=Wr("v-stepper-header");const tee=Q({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},error:Boolean,errorIcon:{type:String,default:"$error"},icon:String,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]},...hu()},"VStepperItem"),NF=le()({name:"VStepperItem",directives:{Ripple:lo},props:tee(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=gu(e,FF,!0),a=E(()=>(r==null?void 0:r.value.value)??e.value),i=E(()=>e.rules.every(f=>f()===!0)),o=E(()=>!e.disabled&&e.editable),s=E(()=>e.error||!i.value),l=E(()=>e.complete||e.rules.length>0&&i.value),u=E(()=>s.value?e.errorIcon:l.value?e.completeIcon:e.editable?e.editIcon:e.icon),c=E(()=>({canEdit:o.value,hasError:s.value,hasCompleted:l.value,title:e.title,subtitle:e.subtitle,step:a.value,value:e.value}));return de(()=>{var g,p,m;const f=(!r||r.isSelected.value||l.value||o.value)&&!s.value&&!e.disabled,d=!!(e.title!=null||n.title),v=!!(e.subtitle!=null||n.subtitle);function h(){r==null||r.toggle()}return Yt(I("button",{class:["v-stepper-item",{"v-stepper-item--complete":l.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":s.value},r==null?void 0:r.selectedClass.value],disabled:!e.editable,onClick:h},[I(ma,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:f?e.color:void 0,size:24},{default:()=>{var y;return[((y=n.icon)==null?void 0:y.call(n,c.value))??(u.value?I(Ct,{icon:u.value},null):a.value)]}}),I("div",{class:"v-stepper-item__content"},[d&&I("div",{key:"title",class:"v-stepper-item__title"},[((g=n.title)==null?void 0:g.call(n,c.value))??e.title]),v&&I("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((p=n.subtitle)==null?void 0:p.call(n,c.value))??e.subtitle]),(m=n.default)==null?void 0:m.call(n,c.value)])]),[[Mr("ripple"),e.ripple&&e.editable,null]])}),{}}}),nee=Symbol.for("vuetify:v-stepper"),ree=Q({...Sn(wC(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),BF=le()({name:"VStepperWindow",props:ree(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=nt(nee,null),a=ze(e,"modelValue"),i=E({get(){var o;return a.value!=null||!r?a.value:(o=r.items.value.find(s=>r.selected.value.includes(s.id)))==null?void 0:o.value},set(o){a.value=o}});return de(()=>{const o=nv.filterProps(e);return I(nv,ge({_as:"VStepperWindow"},o,{modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,class:"v-stepper-window",mandatory:!1,touch:!1}),n)}),{}}}),aee=Q({...CC()},"VStepperWindowItem"),zF=le()({name:"VStepperWindowItem",props:aee(),setup(e,t){let{slots:n}=t;return de(()=>{const r=rv.filterProps(e);return I(rv,ge({_as:"VStepperWindowItem"},r,{class:"v-stepper-window-item"}),n)}),{}}}),FF=Symbol.for("vuetify:v-stepper"),iee=Q({altLabels:Boolean,bgColor:String,editable:Boolean,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},mobile:Boolean,nonLinear:Boolean,flat:Boolean,...vu({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...Ty(),...XN(RF(),["prevText","nextText"])},"VStepper"),oee=le()({name:"VStepper",props:iee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:a,prev:i,selected:o}=ws(e,FF),{color:s,editable:l,prevText:u,nextText:c}=Nv(e),f=E(()=>e.items.map((h,g)=>{const p=Dn(h,e.itemTitle,h),m=Dn(h,e.itemValue,g+1);return{title:p,value:m,raw:h}})),d=E(()=>r.value.findIndex(h=>o.value.includes(h.id))),v=E(()=>e.disabled?e.disabled:d.value===0?"prev":d.value===r.value.length-1?"next":!1);return Gt({VStepperItem:{editable:l,prevText:u,nextText:c},VStepperActions:{color:s,disabled:v,prevText:u,nextText:c}}),de(()=>{const h=ql.filterProps(e),g=!!(n.header||e.items.length),p=e.items.length>0,m=!e.hideActions&&!!(p||n.actions);return I(ql,ge(h,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":e.mobile},e.class],style:e.style}),{default:()=>{var y,_;return[g&&I(OF,{key:"stepper-header"},{default:()=>[f.value.map((b,x)=>I(ke,null,[!!x&&I(yy,null,null),I(NF,b,{default:n[`header-item.${b.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})]))]}),p&&I(BF,{key:"stepper-window"},{default:()=>[f.value.map(b=>I(zF,{value:b.value},{default:()=>{var x,S;return((x=n[`item.${b.value}`])==null?void 0:x.call(n,b))??((S=n.item)==null?void 0:S.call(n,b))}}))]}),(y=n.default)==null?void 0:y.call(n,{prev:i,next:a}),m&&(((_=n.actions)==null?void 0:_.call(n,{next:a,prev:i}))??I(VF,{key:"stepper-actions","onClick:prev":i,"onClick:next":a},n))]}})}),{prev:i,next:a}}});const see=Q({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...co(),...py()},"VSwitch"),lee=le()({name:"VSwitch",inheritAttrs:!1,props:see(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ze(e,"indeterminate"),i=ze(e,"modelValue"),{loaderClasses:o}=Uv(e),{isFocused:s,focus:l,blur:u}=uo(e),c=pe(),f=E(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),d=rr(),v=E(()=>e.id||`switch-${d}`);function h(){a.value&&(a.value=!1)}function g(p){var m,y;p.stopPropagation(),p.preventDefault(),(y=(m=c.value)==null?void 0:m.input)==null||y.click()}return de(()=>{const[p,m]=Ss(n),y=$n.filterProps(e),_=jl.filterProps(e);return I($n,ge({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},o.value,e.class]},p,y,{modelValue:i.value,"onUpdate:modelValue":b=>i.value=b,id:v.value,focused:s.value,style:e.style}),{...r,default:b=>{let{id:x,messagesId:S,isDisabled:w,isReadonly:C,isValid:T}=b;return I(jl,ge({ref:c},_,{modelValue:i.value,"onUpdate:modelValue":[A=>i.value=A,h],id:x.value,"aria-describedby":S.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:w.value,readonly:C.value,onFocus:l,onBlur:u},m),{...r,default:A=>{let{backgroundColorClasses:P,backgroundColorStyles:D}=A;return I("div",{class:["v-switch__track",...P.value],style:D.value,onClick:g},null)},input:A=>{let{inputNode:P,icon:D,backgroundColorClasses:M,backgroundColorStyles:L}=A;return I(ke,null,[P,I("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||e.loading},e.inset?void 0:M.value],style:e.inset?void 0:L.value},[I(uC,null,{default:()=>[e.loading?I(gy,{name:"v-switch",active:!0,color:T.value===!1?void 0:f.value},{default:R=>r.loader?r.loader(R):I(Dc,{active:R.isActive,color:R.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&I(Ct,{key:D,icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const uee=Q({color:String,height:[Number,String],window:Boolean,...Ie(),...pn(),...Hc(),...Ht(),...et(),...vt()},"VSystemBar"),cee=le()({name:"VSystemBar",props:uee(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(se(e,"color")),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e),{ssrBootStyles:l}=cu(),u=E(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:xe("top"),layoutSize:u,elementSize:u,active:E(()=>!0),absolute:se(e,"absolute")});return de(()=>I(e.tag,{class:["v-system-bar",{"v-system-bar--window":e.window},r.value,a.value,o.value,s.value,e.class],style:[i.value,c.value,l.value,e.style]},n)),{}}});const $F=Symbol.for("vuetify:v-tabs"),fee=Q({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Sn(hC({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),GF=le()({name:"VTab",props:fee(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:a,textColorStyles:i}=Qn(e,"sliderColor"),o=E(()=>e.direction==="horizontal"),s=xe(!1),l=pe(),u=pe();function c(f){var v,h;let{value:d}=f;if(s.value=d,d){const g=(h=(v=l.value)==null?void 0:v.$el.parentElement)==null?void 0:h.querySelector(".v-tab--selected .v-tab__slider"),p=u.value;if(!g||!p)return;const m=getComputedStyle(g).color,y=g.getBoundingClientRect(),_=p.getBoundingClientRect(),b=o.value?"x":"y",x=o.value?"X":"Y",S=o.value?"right":"bottom",w=o.value?"width":"height",C=y[b],T=_[b],A=C>T?y[S]-_[S]:y[b]-_[b],P=Math.sign(A)>0?o.value?"right":"bottom":Math.sign(A)<0?o.value?"left":"top":"center",M=(Math.abs(A)+(Math.sign(A)<0?y[w]:_[w]))/Math.max(y[w],_[w])||0,L=y[w]/_[w]||0,R=1.5;yl(p,{backgroundColor:[m,"currentcolor"],transform:[`translate${x}(${A}px) scale${x}(${L})`,`translate${x}(${A/R}px) scale${x}(${(M-1)/R+1})`,"none"],transformOrigin:Array(3).fill(P)},{duration:225,easing:qd})}}return de(()=>{const f=Dt.filterProps(e);return I(Dt,ge({symbol:$F,ref:l,class:["v-tab",e.class],style:e.style,tabindex:s.value?0:-1,role:"tab","aria-selected":String(s.value),active:!1},f,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>{var d;return I(ke,null,[((d=n.default)==null?void 0:d.call(n))??e.text,!e.hideSlider&&I("div",{ref:u,class:["v-tab__slider",a.value],style:i.value},null)])}})}),{}}});function dee(e){return e?e.map(t=>Rp(t)?t:{text:t,value:t}):[]}const vee=Q({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...EF({mandatory:"force"}),...Cn(),...et()},"VTabs"),hee=le()({name:"VTabs",props:vee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),a=E(()=>dee(e.items)),{densityClasses:i}=ar(e),{backgroundColorClasses:o,backgroundColorStyles:s}=Bt(se(e,"bgColor"));return Gt({VTab:{color:se(e,"color"),direction:se(e,"direction"),stacked:se(e,"stacked"),fixed:se(e,"fixedTabs"),sliderColor:se(e,"sliderColor"),hideSlider:se(e,"hideSlider")}}),de(()=>{const l=M1.filterProps(e);return I(M1,ge(l,{modelValue:r.value,"onUpdate:modelValue":u=>r.value=u,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},i.value,o.value,e.class],style:[{"--v-tabs-height":Ae(e.height)},s.value,e.style],role:"tablist",symbol:$F}),{default:()=>[n.default?n.default():a.value.map(u=>I(GF,ge(u,{key:u.text}),null))]})}),{}}});const gee=Q({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...co(),...qv()},"VTextarea"),pee=le()({name:"VTextarea",directives:{Intersect:Wv},inheritAttrs:!1,props:gee(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=ze(e,"modelValue"),{isFocused:o,focus:s,blur:l}=uo(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):(i.value||"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function f(P,D){var M,L;!e.autofocus||!P||(L=(M=D[0].target)==null?void 0:M.focus)==null||L.call(M)}const d=pe(),v=pe(),h=xe(""),g=pe(),p=E(()=>e.persistentPlaceholder||o.value||e.active);function m(){var P;g.value!==document.activeElement&&((P=g.value)==null||P.focus()),o.value||s()}function y(P){m(),r("click:control",P)}function _(P){r("mousedown:control",P)}function b(P){P.stopPropagation(),m(),dt(()=>{i.value="",qw(e["onClick:clear"],P)})}function x(P){var M;const D=P.target;if(i.value=D.value,(M=e.modelModifiers)!=null&&M.trim){const L=[D.selectionStart,D.selectionEnd];dt(()=>{D.selectionStart=L[0],D.selectionEnd=L[1]})}}const S=pe(),w=pe(+e.rows),C=E(()=>["plain","underlined"].includes(e.variant));Ln(()=>{e.autoGrow||(w.value=+e.rows)});function T(){e.autoGrow&&dt(()=>{if(!S.value||!v.value)return;const P=getComputedStyle(S.value),D=getComputedStyle(v.value.$el),M=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),L=S.value.scrollHeight,R=parseFloat(P.lineHeight),O=Math.max(parseFloat(e.rows)*R+M,parseFloat(D.getPropertyValue("--v-input-control-height"))),W=parseFloat(e.maxRows)*R+M||1/0,V=vn(L??0,O,W);w.value=Math.floor((V-M)/R),h.value=Ae(V)})}ln(T),Se(i,T),Se(()=>e.rows,T),Se(()=>e.maxRows,T),Se(()=>e.density,T);let A;return Se(S,P=>{P?(A=new ResizeObserver(T),A.observe(S.value)):A==null||A.disconnect()}),En(()=>{A==null||A.disconnect()}),de(()=>{const P=!!(a.counter||e.counter||e.counterValue),D=!!(P||a.details),[M,L]=Ss(n),{modelValue:R,...O}=$n.filterProps(e),W=_C(e);return I($n,ge({ref:d,modelValue:i.value,"onUpdate:modelValue":V=>i.value=V,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":C.value},e.class],style:e.style},M,O,{centerAffix:w.value===1&&!C.value,focused:o.value}),{...a,default:V=>{let{id:G,isDisabled:X,isDirty:Z,isReadonly:J,isValid:ee}=V;return I(Kc,ge({ref:v,style:{"--v-textarea-control-height":h.value},onClick:y,onMousedown:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},W,{id:G.value,active:p.value||Z.value,centerAffix:w.value===1&&!C.value,dirty:Z.value||e.dirty,disabled:X.value,focused:o.value,error:ee.value===!1}),{...a,default:F=>{let{props:{class:U,...$}}=F;return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[e.prefix]),Yt(I("textarea",ge({ref:g,class:U,value:i.value,onInput:x,autofocus:e.autofocus,readonly:J.value,disabled:X.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:m,onBlur:l},$,L),null),[[Mr("intersect"),{handler:f},null,{once:!0}]]),e.autoGrow&&Yt(I("textarea",{class:[U,"v-textarea__sizer"],id:`${$.id}-sizer`,"onUpdate:modelValue":z=>i.value=z,ref:S,readonly:!0,"aria-hidden":"true"},null),[[Pp,i.value]]),e.suffix&&I("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:D?V=>{var G;return I(ke,null,[(G=a.details)==null?void 0:G.call(a,V),P&&I(ke,null,[I("span",null,null),I(xy,{active:e.persistentCounter||o.value,value:u.value,max:c.value},a.counter)])])}:void 0})}),Xa({},d,v,g)}});const mee=Q({withBackground:Boolean,...Ie(),...vt(),...et()},"VThemeProvider"),yee=le()({name:"VThemeProvider",props:mee(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e);return()=>{var a;return e.withBackground?I(e.tag,{class:["v-theme-provider",r.value,e.class],style:e.style},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}}):(a=n.default)==null?void 0:a.call(n)}}});const _ee=Q({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineInset:{type:[String,Number],default:0},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...Ie(),...Cn(),...et(),...vt()},"VTimeline"),bee=le()({name:"VTimeline",props:_ee(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{densityClasses:a}=ar(e),{rtlClasses:i}=Rn();Gt({VTimelineDivider:{lineColor:se(e,"lineColor")},VTimelineItem:{density:se(e,"density"),lineInset:se(e,"lineInset")}});const o=E(()=>{const l=e.side?e.side:e.density!=="default"?"end":null;return l&&`v-timeline--side-${l}`}),s=E(()=>{const l=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return l;case"start":return l[0];case"end":return l[1];default:return null}});return de(()=>I(e.tag,{class:["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,s.value,{"v-timeline--inset-line":!!e.lineInset},r.value,a.value,o.value,i.value,e.class],style:[{"--v-timeline-line-thickness":Ae(e.lineThickness)},e.style]},n)),{}}}),See=Q({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:Je,iconColor:String,lineColor:String,...Ie(),...Ht(),...so(),...pn()},"VTimelineDivider"),xee=le()({name:"VTimelineDivider",props:See(),setup(e,t){let{slots:n}=t;const{sizeClasses:r,sizeStyles:a}=Uc(e,"v-timeline-divider__dot"),{backgroundColorStyles:i,backgroundColorClasses:o}=Bt(se(e,"dotColor")),{roundedClasses:s}=qt(e,"v-timeline-divider__dot"),{elevationClasses:l}=Vn(e),{backgroundColorClasses:u,backgroundColorStyles:c}=Bt(se(e,"lineColor"));return de(()=>I("div",{class:["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class],style:e.style},[I("div",{class:["v-timeline-divider__before",u.value],style:c.value},null),!e.hideDot&&I("div",{key:"dot",class:["v-timeline-divider__dot",l.value,s.value,r.value],style:a.value},[I("div",{class:["v-timeline-divider__inner-dot",o.value,s.value],style:i.value},[n.default?I(ht,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):I(Ct,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),I("div",{class:["v-timeline-divider__after",u.value],style:c.value},null)])),{}}}),wee=Q({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:Je,iconColor:String,lineInset:[Number,String],...Ie(),...hr(),...pn(),...Ht(),...so(),...et()},"VTimelineItem"),Cee=le()({name:"VTimelineItem",props:wee(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=gr(e),a=xe(0),i=pe();return Se(i,o=>{var s;o&&(a.value=((s=o.$el.querySelector(".v-timeline-divider__dot"))==null?void 0:s.getBoundingClientRect().width)??0)},{flush:"post"}),de(()=>{var o,s;return I("div",{class:["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot},e.class],style:[{"--v-timeline-dot-size":Ae(a.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${Ae(e.lineInset)})`:Ae(0)},e.style]},[I("div",{class:"v-timeline-item__body",style:r.value},[(o=n.default)==null?void 0:o.call(n)]),I(xee,{ref:i,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&I("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&((s=n.opposite)==null?void 0:s.call(n))])])}),{}}}),Tee=Q({...Ie(),...wa({variant:"text"})},"VToolbarItems"),Aee=le()({name:"VToolbarItems",props:Tee(),setup(e,t){let{slots:n}=t;return Gt({VBtn:{color:se(e,"color"),height:"inherit",variant:se(e,"variant")}}),de(()=>{var r;return I("div",{class:["v-toolbar-items",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}});const Iee=Q({id:String,text:String,...Sn(Kv({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Pee=le()({name:"VTooltip",props:Iee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{scopeId:a}=jc(),i=rr(),o=E(()=>e.id||`v-tooltip-${i}`),s=pe(),l=E(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=E(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=E(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),f=E(()=>ge({"aria-describedby":o.value},e.activatorProps));return de(()=>{const d=bi.filterProps(e);return I(bi,ge({ref:s,class:["v-tooltip",e.class],style:e.style,id:o.value},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},a),{activator:n.activator,default:function(){var p;for(var v=arguments.length,h=new Array(v),g=0;g!0},setup(e,t){let{slots:n}=t;const r=QB(e,"validation");return()=>{var a;return(a=n.default)==null?void 0:a.call(n,r)}}}),Mee=Object.freeze(Object.defineProperty({__proto__:null,VAlert:hj,VAlertTitle:UB,VApp:wZ,VAppBar:HZ,VAppBarNavIcon:cj,VAppBarTitle:fj,VAutocomplete:kK,VAvatar:ma,VBadge:EK,VBanner:OK,VBannerActions:Iz,VBannerText:Pz,VBottomNavigation:BK,VBottomSheet:FK,VBreadcrumbs:WK,VBreadcrumbsDivider:Mz,VBreadcrumbsItem:kz,VBtn:Dt,VBtnGroup:u1,VBtnToggle:jZ,VCard:XK,VCardActions:Lz,VCardItem:Vz,VCardSubtitle:Ez,VCardText:Oz,VCardTitle:Rz,VCarousel:nq,VCarouselItem:aq,VCheckbox:wj,VCheckboxBtn:ji,VChip:jv,VChipGroup:Tj,VClassIcon:oC,VCode:iq,VCol:EJ,VColorPicker:Xq,VCombobox:Kq,VComponentIcon:o1,VContainer:DJ,VCounter:xy,VDataIterator:sJ,VDataTable:wJ,VDataTableFooter:av,VDataTableRow:OC,VDataTableRows:Jl,VDataTableServer:IJ,VDataTableVirtual:TJ,VDatePicker:YJ,VDatePickerControls:T1,VDatePickerHeader:A1,VDatePickerMonth:I1,VDatePickerMonths:P1,VDatePickerYears:D1,VDefaultsProvider:ht,VDialog:m1,VDialogBottomTransition:IZ,VDialogTopTransition:PZ,VDialogTransition:cy,VDivider:yy,VExpandTransition:fy,VExpandXTransition:fC,VExpansionPanel:JJ,VExpansionPanelText:PF,VExpansionPanelTitle:MF,VExpansionPanels:jJ,VFabTransition:AZ,VFadeTransition:zp,VField:Kc,VFieldLabel:Jf,VFileInput:eQ,VFooter:nQ,VForm:aQ,VHover:oQ,VIcon:Ct,VImg:Zl,VInfiniteScroll:lQ,VInput:$n,VItem:fQ,VItemGroup:cQ,VKbd:dQ,VLabel:Zc,VLayout:hQ,VLayoutItem:pQ,VLazy:yQ,VLigatureIcon:sZ,VList:_y,VListGroup:v1,VListImg:Uj,VListItem:Ki,VListItemAction:Xj,VListItemMedia:jj,VListItemSubtitle:sz,VListItemTitle:lz,VListSubheader:uz,VLocaleProvider:bQ,VMain:xQ,VMenu:Sy,VMessages:KB,VNavigationDrawer:kQ,VNoSsr:LQ,VOtpInput:RQ,VOverlay:bi,VPagination:w1,VParallax:NQ,VProgressCircular:Dc,VProgressLinear:vy,VRadio:zQ,VRadioGroup:$Q,VRangeSlider:HQ,VRating:UQ,VResponsive:s1,VRow:FJ,VScaleTransition:uC,VScrollXReverseTransition:MZ,VScrollXTransition:DZ,VScrollYReverseTransition:LZ,VScrollYTransition:kZ,VSelect:Az,VSelectionControl:jl,VSelectionControlGroup:XB,VSheet:ql,VSkeletonLoader:jQ,VSlideGroup:M1,VSlideGroupItem:qQ,VSlideXReverseTransition:RZ,VSlideXTransition:EZ,VSlideYReverseTransition:VZ,VSlideYTransition:cC,VSlider:x1,VSnackbar:eee,VSpacer:xF,VStepper:oee,VStepperActions:VF,VStepperHeader:OF,VStepperItem:NF,VStepperWindow:BF,VStepperWindowItem:zF,VSvgIcon:iC,VSwitch:lee,VSystemBar:cee,VTab:GF,VTable:Ql,VTabs:hee,VTextField:Kl,VTextarea:pee,VThemeProvider:yee,VTimeline:bee,VTimelineItem:Cee,VToolbar:l1,VToolbarItems:Aee,VToolbarTitle:lC,VTooltip:Pee,VValidation:Dee,VVirtualScroll:Cy,VWindow:nv,VWindowItem:rv},Symbol.toStringTag,{value:"Module"}));function kee(e,t){const n=t.modifiers||{},r=t.value,{once:a,immediate:i,...o}=n,s=!Object.keys(o).length,{handler:l,options:u}=typeof r=="object"?r:{handler:r,options:{attributes:(o==null?void 0:o.attr)??s,characterData:(o==null?void 0:o.char)??s,childList:(o==null?void 0:o.child)??s,subtree:(o==null?void 0:o.sub)??s}},c=new MutationObserver(function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1?arguments[1]:void 0;l==null||l(f,d),a&&HF(e,t)});i&&(l==null||l([],c)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function HF(e,t){var n;(n=e._mutate)!=null&&n[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const Lee={mounted:kee,unmounted:HF};function Eee(e,t){var a,i;const n=t.value,r={passive:!((a=t.modifiers)!=null&&a.active)};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:r},(i=t.modifiers)!=null&&i.quiet||n()}function Ree(e,t){var a;if(!((a=e._onResize)!=null&&a[t.instance.$.uid]))return;const{handler:n,options:r}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,r),delete e._onResize[t.instance.$.uid]}const Vee={mounted:Eee,unmounted:Ree};function WF(e,t){const{self:n=!1}=t.modifiers??{},r=t.value,a=typeof r=="object"&&r.options||{passive:!0},i=typeof r=="function"||"handleEvent"in r?r:r.handler,o=n?e:t.arg?document.querySelector(t.arg):window;o&&(o.addEventListener("scroll",i,a),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:i,options:a,target:n?void 0:o})}function UF(e,t){var i;if(!((i=e._onScroll)!=null&&i[t.instance.$.uid]))return;const{handler:n,options:r,target:a=e}=e._onScroll[t.instance.$.uid];a.removeEventListener("scroll",n,r),delete e._onScroll[t.instance.$.uid]}function Oee(e,t){t.value!==t.oldValue&&(UF(e,t),WF(e,t))}const Nee={mounted:WF,unmounted:UF,updated:Oee},Bee=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:xz,Intersect:Wv,Mutate:Lee,Resize:Vee,Ripple:lo,Scroll:Nee,Touch:xC},Symbol.toStringTag,{value:"Module"})),zee="dark",Fee={dark:{colors:{primary:"#212121",secondary:"#424242",accent:"#4caf50",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#8bc34a"}},light:{colors:{primary:"#37474F",secondary:"#90A4AE",accent:"#4caf50",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#8bc34a"}}},$ee={defaultTheme:zee,themes:Fee},Y0=e=>e&&typeof e=="object"&&!Array.isArray(e),k1=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(Y0(e)&&Y0(n))for(const r in n)Y0(n[r])?(e[r]||Object.assign(e,{[r]:{}}),k1(e[r],n[r])):Object.assign(e,{[r]:n[r]});return k1(e,...t)},Gee=k1({},{de:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Einstellungen"])},header:{title:e=>{const{normalize:t}=e;return t(["Kopfzeile"])},barTitle:e=>{const{normalize:t}=e;return t(["Kopfzeile"])},imageUrl:e=>{const{normalize:t}=e;return t(["URL für Hintergrundbild"])},imageUrlPlaceholder:e=>{const{normalize:t}=e;return t(["https://picsum.photos/1920/1080?random"])},imageGradient:e=>{const{normalize:t}=e;return t(["Farbverlauf (CSS Linear Gradient Definition)"])},imageGradientPlaceholder:e=>{const{normalize:t}=e;return t(["to top, rgba(33, 33, 33, 0.6), rgba(33, 33, 33, 0.6)"])},showTime:e=>{const{normalize:t}=e;return t(["Uhrzeit"])},showTimeHint:e=>{const{normalize:t}=e;return t(["Anzeige der Uhrzeit in der Kopfzeile"])},showDate:e=>{const{normalize:t}=e;return t(["Datum"])},showDateHint:e=>{const{normalize:t}=e;return t(["Anzeige des Datums in der Kopfzeile"])},showTitle:e=>{const{normalize:t}=e;return t(["Navigation"])},showTitleHint:e=>{const{normalize:t}=e;return t(["Anzeige des aktuellen Navigationspunktes in der Kopfzeile"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Optionsmenü"])},showDarkMode:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},showDarkModeHint:e=>{const{normalize:t}=e;return t([])},showReloadPage:e=>{const{normalize:t}=e;return t(["Seite aktualsieren"])},showReloadPageHint:e=>{const{normalize:t}=e;return t([])},showSettings:e=>{const{normalize:t}=e;return t(["Einstellungen"])},showSettingsHint:e=>{const{normalize:t}=e;return t([])},showLanguages:e=>{const{normalize:t}=e;return t(["Sprachen"])},showLanguagesHint:e=>{const{normalize:t}=e;return t([])},optionsCommandTitle:e=>{const{normalize:t}=e;return t(["Optionsmenü FHEM Befehle"])},commandName:e=>{const{normalize:t}=e;return t(["Name"])},commandNamePlaceholder:e=>{const{normalize:t}=e;return t(["restart"])},commandNameRules:e=>{const{normalize:t}=e;return t(["Eingabe erforderlich!"])},commandTitle:e=>{const{normalize:t}=e;return t(["Beschriftung"])},commandTitlePlaceholder:e=>{const{normalize:t}=e;return t(["FHEM Neustart od. %t(optionRestart)"])},commandIcon:e=>{const{normalize:t}=e;return t(["Icon"])},commandIconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-rocket"])},commandCmd:e=>{const{normalize:t}=e;return t(["FHEM Befehl"])},commandCmdPlaceholder:e=>{const{normalize:t}=e;return t(["shutdown restart"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Beschriftung"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Startseite od. %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},groupAsChips:e=>{const{normalize:t}=e;return t(["Kompakt"])},groupAsChipsHint:e=>{const{normalize:t}=e;return t(["Kompakte Darstellung untergeordneter Navigationspunkte"])},sort:e=>{const{normalize:t}=e;return t(["sortiert"])},sortHint:e=>{const{normalize:t}=e;return t(["Sortiert untergeordneter Navigationspunkte aufsteigend"])},divider:e=>{const{normalize:t}=e;return t(["Trennlinie"])},dividerHint:e=>{const{normalize:t}=e;return t(["Trennlinie unterhalb des Navigationspunktes"])}},props:{panel:e=>{const{normalize:t}=e;return t(["Allgemein"])},status:e=>{const{normalize:t}=e;return t(["Statuszeile"])},level:e=>{const{normalize:t}=e;return t(["Ebene allgemein"])},main:e=>{const{normalize:t}=e;return t(["Ebenen"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infozeile"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["erweitert"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Vorschau"])},search:e=>{const{normalize:t}=e;return t(["Panel suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neues Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Vorlage"]),t(["Vorlagen"])])},search:e=>{const{normalize:t}=e;return t(["Vorlage suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neue Vorlage"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Farben"])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Sprache"]),t(["Sprachen"])])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])},newLang:e=>{const{normalize:t}=e;return t(["neue Sprache (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Variable suchen"])},key:e=>{const{normalize:t}=e;return t(["Variable"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Erforderlich!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel ist bereits vorhanden!"])},iso639code:e=>{const{normalize:t}=e;return t(["Eingabe muss ISO-639-1-Code entsprechen!"])},langUnique:e=>{const{normalize:t}=e;return t(["Sprache ist bereits vorhanden!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Variable ist bereits vorhanden!"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},reload:e=>{const{normalize:t}=e;return t(["Aktualisieren"])},settings:e=>{const{normalize:t}=e;return t(["Einstellungen"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Systeminformationen"])},onlyConfig:e=>{const{normalize:t}=e;return t(["nur Config anzeigen"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Prüfe ob FHEM erreichbar ist oder die URL Verbindungsparameter (?protocol=...&server=...&port=...&path=...) korrekt sind, falls diese angegeben wurden."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device nicht gefunden"])},text:e=>{const{normalize:t}=e;return t(["Das FHEM Device das in der URL angegeben wurde (http://url/index.html#/fhemappdevice/...) konnte nicht gefunden werden."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Bei der Verarbeitung einer JSON Definition ist ein Fehler aufgetreten. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Fehler bei der Verarbeitung der Konfiguration. Die Decodierung der base64-codierten Konfiguarationsdaten ist fehlgeschlagen. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["Keine Einstellungen gefunden"])},text:e=>{const{normalize:t}=e;return t(["Für diese Instanz wurden noch keine Einstellungen vorgenommen. Bitte zuerst die Grundeinstellungen für FHEMapp vornehmen und speichern."])}},config:{title:e=>{const{normalize:t}=e;return t(["Laden der Konfiguration fehalgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Es konnten keine Konfiguationsdaten verarbeitet werden. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket Verbidnung fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Der verwendete Browser unterstützt keine WEBSocket-Verbidnungen. Es wurde deshalb eine Longpoll-Verbindung zu FHEM hergestellt. Zum Deaktivieren dieser Meldung solltest du den URL Parameter für Longpoll-Verbindungen (?xhr=1) verwenden."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM wurde unterbrochen"])},text:e=>{const{normalize:t}=e;return t(["Neuer Verbindungsversuch erfolgt in 3 Sekunden... Prüfe ob FHEM erreichbar ist, wenn der Fehler weiterhin auftritt."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Konfiguration enthält keine Panels"])},text:e=>{const{normalize:t}=e;return t(["Bitte erstelle zuerst Panels in den Einstellungen von FHEMapp."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Daten wurden in die Zwischenablage kopiert."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Prüfe die Reihenfolge der Definitionen. Die Definition ohne Bedingung sollte immer am Ende stehen."])}}},default:e=>{const{normalize:t}=e;return t(["Standard"])}}}},{en:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Settings"])},header:{title:e=>{const{normalize:t}=e;return t(["Header"])},barTitle:e=>{const{normalize:t}=e;return t(["Header"])},imageUrl:e=>{const{normalize:t}=e;return t(["URL for background image"])},imageUrlPlaceholder:e=>{const{normalize:t}=e;return t(["https://picsum.photos/1920/1080?random"])},imageGradient:e=>{const{normalize:t}=e;return t(["Color gradient (CSS Linear Gradient Definition)"])},imageGradientPlaceholder:e=>{const{normalize:t}=e;return t(["to top, rgba(33, 33, 33, 0.6), rgba(33, 33, 33, 0.6)"])},showTime:e=>{const{normalize:t}=e;return t(["Time"])},showTimeHint:e=>{const{normalize:t}=e;return t(["Show time in the header"])},showDate:e=>{const{normalize:t}=e;return t(["Date"])},showDateHint:e=>{const{normalize:t}=e;return t(["Show date in the header"])},showTitle:e=>{const{normalize:t}=e;return t(["Navigation"])},showTitleHint:e=>{const{normalize:t}=e;return t(["Show navigationpoint in the header"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Optionsmenu"])},showDarkMode:e=>{const{normalize:t}=e;return t(["Day/Night mode"])},showDarkModeHint:e=>{const{normalize:t}=e;return t([])},showReloadPage:e=>{const{normalize:t}=e;return t(["Page refresh"])},showReloadPageHint:e=>{const{normalize:t}=e;return t([])},showSettings:e=>{const{normalize:t}=e;return t(["Sesstings"])},showSettingsHint:e=>{const{normalize:t}=e;return t([])},showLanguages:e=>{const{normalize:t}=e;return t(["Languages"])},showLanguagesHint:e=>{const{normalize:t}=e;return t([])},optionsCommandTitle:e=>{const{normalize:t}=e;return t(["Optionsmenu FHEM Commands"])},commandName:e=>{const{normalize:t}=e;return t(["Name"])},commandNamePlaceholder:e=>{const{normalize:t}=e;return t(["restart"])},commandNameRules:e=>{const{normalize:t}=e;return t(["Input required!"])},commandTitle:e=>{const{normalize:t}=e;return t(["Label"])},commandTitlePlaceholder:e=>{const{normalize:t}=e;return t(["FHEM Restart or %t(optionRestart)"])},commandIcon:e=>{const{normalize:t}=e;return t(["Icon"])},commandIconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-rocket"])},commandCmd:e=>{const{normalize:t}=e;return t(["FHEM Command"])},commandCmdPlaceholder:e=>{const{normalize:t}=e;return t(["shutdown restart"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Label"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Homepage or %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},groupAsChips:e=>{const{normalize:t}=e;return t(["compact"])},groupAsChipsHint:e=>{const{normalize:t}=e;return t(["Compact display of subordinate navigation points"])},sort:e=>{const{normalize:t}=e;return t(["sorted"])},sortHint:e=>{const{normalize:t}=e;return t(["Sorts subordinate navigation points in ascending order"])},divider:e=>{const{normalize:t}=e;return t(["divider"])},dividerHint:e=>{const{normalize:t}=e;return t(["Divider line below the navigation point"])}},props:{panel:e=>{const{normalize:t}=e;return t(["General"])},status:e=>{const{normalize:t}=e;return t(["Statusbar"])},level:e=>{const{normalize:t}=e;return t(["Level general"])},main:e=>{const{normalize:t}=e;return t(["Levels"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infoline"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["Advanced"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Preview"])},search:e=>{const{normalize:t}=e;return t(["Panel search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Template"]),t(["Templates"])])},search:e=>{const{normalize:t}=e;return t(["Template search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Template"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Colors"])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Language"]),t(["Languages"])])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])},newLang:e=>{const{normalize:t}=e;return t(["new Language (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Key search"])},key:e=>{const{normalize:t}=e;return t(["Key"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Required!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel is already defined!"])},iso639code:e=>{const{normalize:t}=e;return t(["Input must correspond to ISO 639-1 code!"])},langUnique:e=>{const{normalize:t}=e;return t(["Language is already defined!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Key is already defined!"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Day/Night Mode"])},reload:e=>{const{normalize:t}=e;return t(["Refresh"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Internals"])},onlyConfig:e=>{const{normalize:t}=e;return t(["show only config"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM failed"])},text:e=>{const{normalize:t}=e;return t(["Check if FHEM is reachable or if the URL connection parameters (?protocol=...&server=...&port=...&path=...) are correct, if specified."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device not found"])},text:e=>{const{normalize:t}=e;return t(["The FHEM device specified in the URL (http://url/index.html#/fhemappdevice/...) could not be found."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["An error has occurred while processing a JSON definition. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["Error processing the configuration. The decoding of the base64-encoded configuration data has failed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["No settings found"])},text:e=>{const{normalize:t}=e;return t(["No settings have yet been made for this instance. Please make and save the basic settings for FHEMapp first."])}},config:{title:e=>{const{normalize:t}=e;return t(["Failed to load the configuration"])},text:e=>{const{normalize:t}=e;return t(["No configuration data could be processed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket connection failed"])},text:e=>{const{normalize:t}=e;return t(["The browser used does not support WEBSocket connections. A longpoll connection to FHEM has therefore been established. To deactivate this message, you should use the URL parameter for longpoll connections (?xhr=1)."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM was interrupted"])},text:e=>{const{normalize:t}=e;return t(["New connection attempt will be made in 3 seconds... Check whether FHEM can be reached if the error still occurs."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Configuration does not contain any panels"])},text:e=>{const{normalize:t}=e;return t(["Please create panels in the FHEMapp settings first."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Data has been copied to the clipboard."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Check the order of the definitions. The definition without a condition should always be at the end."])}}},default:e=>{const{normalize:t}=e;return t(["Default"])}}}});/*! ***************************************************************************** +`)}function cD(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[a,i]of Object.entries(e.colors)){const o=ca(i);r.push(`--v-theme-${a}: ${o.r},${o.g},${o.b}`),a.startsWith("on-")||r.push(`--v-theme-${a}-overlay-multiplier: ${e1(i)>.18?t:n}`)}for(const[a,i]of Object.entries(e.variables)){const o=typeof i=="string"&&i.startsWith("#")?ca(i):void 0,s=o?`${o.r}, ${o.g}, ${o.b}`:void 0;r.push(`--v-${a}: ${s??i}`)}return r}function _i(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=pe(),r=pe();if(Mt){const a=new ResizeObserver(i=>{e==null||e(i,a),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});En(()=>{a.disconnect()}),Se(n,(i,o)=>{o&&(a.unobserve(jd(o)),r.value=void 0),i&&a.observe(jd(i))},{flush:"post"})}return{resizeRef:n,contentRect:Ov(r)}}const Bp=Symbol.for("vuetify:layout"),xB=Symbol.for("vuetify:layout-item"),fD=1e3,wB=J({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),Hc=J({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function vZ(){const e=nt(Bp);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function Wc(e){const t=nt(Bp);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${rr()}`,r=un("useLayoutItem");Tt(xB,{id:n});const a=xe(!1);_O(()=>a.value=!0),yO(()=>a.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:E(()=>a.value?!1:e.active.value),id:n});return En(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const hZ=(e,t,n,r)=>{let a={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...a}}];for(const o of e){const s=t.get(o),l=n.get(o),u=r.get(o);if(!s||!l||!u)continue;const c={...a,[s.value]:parseInt(a[s.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),a=c}return i};function CB(e){const t=nt(Bp,null),n=E(()=>t?t.rootZIndex.value-100:fD),r=pe([]),a=In(new Map),i=In(new Map),o=In(new Map),s=In(new Map),l=In(new Map),{resizeRef:u,contentRect:c}=_i(),f=E(()=>{const S=new Map,w=e.overlaps??[];for(const C of w.filter(T=>T.includes(":"))){const[T,A]=C.split(":");if(!r.value.includes(T)||!r.value.includes(A))continue;const P=a.get(T),D=a.get(A),M=i.get(T),L=i.get(A);!P||!D||!M||!L||(S.set(A,{position:P.value,amount:parseInt(M.value,10)}),S.set(T,{position:D.value,amount:-parseInt(L.value,10)}))}return S}),d=E(()=>{const S=[...new Set([...o.values()].map(C=>C.value))].sort((C,T)=>C-T),w=[];for(const C of S){const T=r.value.filter(A=>{var P;return((P=o.get(A))==null?void 0:P.value)===C});w.push(...T)}return hZ(w,a,i,s)}),v=E(()=>!Array.from(l.values()).some(S=>S.value)),h=E(()=>d.value[d.value.length-1].layer),g=E(()=>({"--v-layout-left":Ae(h.value.left),"--v-layout-right":Ae(h.value.right),"--v-layout-top":Ae(h.value.top),"--v-layout-bottom":Ae(h.value.bottom),...v.value?void 0:{transition:"none"}})),p=E(()=>d.value.slice(1).map((S,w)=>{let{id:C}=S;const{layer:T}=d.value[w],A=i.get(C),P=a.get(C);return{id:C,...T,size:Number(A.value),position:P.value}})),m=S=>p.value.find(w=>w.id===S),y=un("createLayout"),_=xe(!1);ln(()=>{_.value=!0}),Tt(Bp,{register:(S,w)=>{let{id:C,order:T,position:A,layoutSize:P,elementSize:D,active:M,disableTransitions:L,absolute:R}=w;o.set(C,T),a.set(C,A),i.set(C,P),s.set(C,M),L&&l.set(C,L);const H=_d(xB,y==null?void 0:y.vnode).indexOf(S);H>-1?r.value.splice(H,0,C):r.value.push(C);const V=E(()=>p.value.findIndex(q=>q.id===C)),G=E(()=>n.value+d.value.length*2-V.value*2),X=E(()=>{const q=A.value==="left"||A.value==="right",Q=A.value==="right",ae=A.value==="bottom",W={[A.value]:0,zIndex:G.value,transform:`translate${q?"X":"Y"}(${(M.value?0:-110)*(Q||ae?-1:1)}%)`,position:R.value||n.value!==fD?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!_.value)return W;const F=p.value[V.value];if(!F)throw new Error(`[Vuetify] Could not find layout item "${C}"`);const z=f.value.get(C);return z&&(F[z.position]+=z.amount),{...W,height:q?`calc(100% - ${F.top}px - ${F.bottom}px)`:D.value?`${D.value}px`:void 0,left:Q?void 0:`${F.left}px`,right:Q?`${F.right}px`:void 0,top:A.value!=="bottom"?`${F.top}px`:void 0,bottom:A.value!=="top"?`${F.bottom}px`:void 0,width:q?D.value?`${D.value}px`:void 0:`calc(100% - ${F.left}px - ${F.right}px)`}}),Z=E(()=>({zIndex:G.value-1}));return{layoutItemStyles:X,layoutItemScrimStyles:Z,zIndex:G}},unregister:S=>{o.delete(S),a.delete(S),i.delete(S),s.delete(S),l.delete(S),r.value=r.value.filter(w=>w!==S)},mainRect:h,mainStyles:g,getLayoutItem:m,items:p,layoutRect:c,rootZIndex:n});const b=E(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),x=E(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:b,layoutStyles:x,getLayoutItem:m,items:p,layoutRect:c,layoutRef:u}}function TB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=ua(t,n),{aliases:a={},components:i={},directives:o={}}=r,s=oX(r.defaults),l=aZ(r.display,r.ssr),u=dZ(r.theme),c=uZ(r.icons),f=mX(r.locale),d=tZ(r.date,f);return{install:h=>{for(const g in o)h.directive(g,o[g]);for(const g in i)h.component(g,i[g]);for(const g in a)h.component(g,Hr({...a[g],name:g,aliasName:a[g].name}));if(u.install(h),h.provide(Ic,s),h.provide(r1,l),h.provide(Jd,u),h.provide(a1,c),h.provide(Pc,f),h.provide(bB,d.options),h.provide(aD,d.instance),Mt&&r.ssr)if(h.$nuxt)h.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:g}=h;h.mount=function(){const p=g(...arguments);return dt(()=>l.update()),h.mount=g,p}}rr.reset(),h.mixin({computed:{$vuetify(){return In({defaults:Iu.call(this,Ic),display:Iu.call(this,r1),theme:Iu.call(this,Jd),icons:Iu.call(this,a1),locale:Iu.call(this,Pc),date:Iu.call(this,aD)})}}})},defaults:s,display:l,theme:u,icons:c,locale:f,date:d}}const gZ="3.4.10";TB.version=gZ;function Iu(e){var r,a;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((a=t.vnode.appContext)==null?void 0:a.provides);if(n&&e in n)return n[e]}const sC=U8("fhem",()=>{const e=Gv(),t=oC(),n=In({settings:{protocol:window.location.protocol.replace(":",""),server:window.location.hostname,port:window.location.port,path:window.location.pathname.replace("/","").split("/")[0],xhr:!1,lang:e.locale.value,dark:!1,loglevel:1},config:{header:{},navigation:[],panels:[],templates:[],content:{},colors:{}},header:{title:null,time:new Date,timeFormat:{hour:"2-digit",minute:"2-digit"},dateFormat:{weekday:"long",year:"numeric",month:"long",day:"numeric"},showTime:!1,showDate:!1,showTitle:!0,showHomeBtn:!1,imageUrl:null,imageGradient:null,showDarkMode:!1,showReloadPage:!1,showSettings:!1,commands:[]},fhemDevice:null,panelView:[],panelList:[],navigation:[],panelMaximized:!1,threads:[],distTemplates:[],noConfig:null,isReady:!1,message:!1,currentView:null,version:null,helpURL:"https://github.com/jemu75/fhemApp/tree/dev-v4?tab=readme-ov-file#"}),r={csrf:null,conn:null,xhrOffset:0,xhrBuffer:"",evtBuffer:[],panelMap:[]};function a(W,F,z,$){let U={lang:window.navigator.language||"en-EN",format:{hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3}},Y={ts:new Date().toLocaleString(U.lang,U.format),text:F,details:n.settings.loglevel<7?"":z||""};$&&!n.message&&(n.message={type:W===2?"error":W===3?"warning":"info",title:"_app.messages."+$+".title",text:"_app.messages."+$+".text"}),W<=n.settings.loglevel&&(W===2?console.error(Y.ts,Y.text,Y.details):W===3?console.warn(Y.ts,Y.text,Y.details):console.info(Y.ts,Y.text,Y.details))}function i(){setInterval(()=>{n.header.time=new Date},1e3)}async function o(){let W=new Headers;W.append("pragma","no-cache"),W.append("cache-control","no-cache");let z=await fetch("CHANGELOG.md",{method:"GET",headers:W}).then($=>$.text());n.version=await z.split(` +`)[0].split(" ")[1].trim()}function s(W){return W?n.threads.splice(n.threads.indexOf(W),1):n.threads.push((n.threads.slice(-1)[0]||0)+1),n.threads.slice(-1)[0]}function l(W){window.open(n.helpURL+W,"_blank")}function u(W){let F;W!==t.global.name.value&&(t.global.name.value=t.global.name.value==="dark"?"light":"dark",n.config.header.imageGradient||(F=t.global.current.value.colors.primary,n.header.imageGradient="to top ,"+m(F,.6)+", "+m(F,.6)))}function c(){let W=window.matchMedia("(prefers-color-scheme: dark");u(W.matches?"dark":"light"),W.addEventListener("change",F=>{n.settings.dark||u(F.matches?"dark":"light")})}function f(W){let F={connChanged:!1,routeChanged:!1,configChanged:!1,langChanged:!1,darkChanged:!1};if(W.query)for(const z of Object.keys(n.settings))W.query[z]&&W.query[z]!==n.settings[z]&&(n.settings[z]=W.query[z],["protocol","server","port","path"].indexOf(z)!==-1&&(F.connChanged=!0),z==="lang"&&(F.langChanged=!0),z==="dark"&&(F.darkChanged=!0));return W.params&&(W.params.config&&W.params.config!==n.fhemDevice&&(n.fhemDevice=W.params.config,F.configChanged=!0),W.params.view&&W.params.view!==n.currentView&&(n.currentView=W.params.view,F.routeChanged=!0)),n.message=!1,n.panelMaximized=!1,a(4,"URL processed.",W),F}function d(W){let F=n.settings,z=F.protocol+"://"+F.server+":"+F.port+(F.path?"/"+F.path:"");return z+=W||"",z}async function v(W,F){let z="?XHR=1",$={method:"POST"},U=[],Y;return W!=="token"&&r.csrf&&(z+="&fwcsrf="+r.csrf),F&&($.body="cmd="+F),/^set.*/.test(F)&&(U=F.split(" "),U.length>2&&(r.evtBuffer.push({reading:U.slice(1,3).join("-"),value:U.slice(-1)}),S(!0))),a(4,"Request send to FHEM.",{url:d(z),options:$}),await fetch(d(z),$).then(j=>(W==="token"&&(Y={token:j.headers.get("x-fhem-csrftoken")}),W==="json"&&(Y=j.json()),W==="text"&&(Y=j.text()),Y)).catch(j=>{a(2,"Connection to FHEM failed.",j,"request")})}async function h(){let W=await v("token");return W?(r.csrf=W.token,!0):!1}function g(W,F){try{const z=JSON.parse(W);if(z&&typeof z=="object")return F?{result:z,error:!1}:z}catch(z){return F||a(2,"JSON parsing failed.",{input:W,error:z.message},"jsonParse"),F?{result:null,error:z.message}:!1}return a(3,"Unhandled state during JSON parsing.",null,"jsonParse"),!1}function p(W){try{const F=atob(W);if(F&&typeof F=="string")return F}catch{return a(2,"Base64 decode failed.",W,"base64"),!1}return a(3,"Unhandled state during Base64 Decoding.",null,"base64"),!1}function m(W,F){let z;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(W))return z=W.substring(1).split(""),z.length===3&&(z=[z[0],z[0],z[1],z[1],z[2],z[2]]),z="0x"+z.join(""),"rgba("+[z>>16&255,z>>8&255,z&255].join(",")+","+F+")"}async function y(W){let F=new Headers;F.append("pragma","no-cache"),F.append("cache-control","no-cache");let $=await fetch(W,{method:"GET",headers:F}).then(U=>U.json()).catch(U=>a(2,"Loading JSON-File "+W+" failed.",{file:W,err:U}));return $&&a(4,"JSON-File "+W+" was successful loaded.",{file:W,result:$}),await $}async function _(){let W=await v("text","get "+n.fhemDevice+" config"),F,z,$;if(RegExp("Please define "+n.fhemDevice+" first").test(W))return a(2,"Wrong FHEM Config-Device in URL.",{fhemResult:W},"wrongDevice"),!1;if(F=p(W),z=typeof F=="string"?g(F):!1,n.noConfig=!1,!z)return a(2,"Loading the Configuration of FHEM failed.",W,"config"),!1;z.error&&(z.error==="No config found!"?(n.noConfig=!0,Ra.push({name:"settings",query:Ra.currentRoute.value.query}),a(3,z.error,null)):console.log(z.error));for(const U of Object.keys(n.config))z[U]&&z[U]!==n.config[U]&&(n.config[U].length>0&&n.config[U].splice(0),Object.assign(n.config[U],z[U]));for(const[U,Y]of Object.entries(n.config.content))e.messages.value[U]||(e.messages.value[U]={}),Object.assign(e.messages.value[U],Y);return n.config.colors.light&&Object.assign(t.themes.value.light.colors,n.config.colors.light),n.config.colors.dark&&Object.assign(t.themes.value.dark.colors,n.config.colors.dark),Object.assign(n.header,JSON.parse(JSON.stringify(n.config.header))),n.header.imageGradient||($=t.global.current.value.colors.primary,n.header.imageGradient="to top ,"+m($,.6)+", "+m($,.6)),a(4,"Config loaded.",z),!0}async function b(){let W;n.distTemplates=await y("./templates/templates.json"),n.distTemplates.sort((F,z)=>F>z?1:z>F?-1:0);for(const F of n.config.panels)F.template&&n.config.templates.map(z=>z.name).indexOf(F.template)===-1&&n.distTemplates.indexOf(F.template)!==-1&&(W=await y("./templates/"+F.template+".json"),W&&n.config.templates.push(W));return!0}function x(W,F,z){let $;F.length>1?x(W[F[0]],F.slice(1),z):($=W[F].split(":"),$[0]=/:/.test(z)?z.replace(/:/g,":"):z,W[F]=$.join(":"))}function S(W){let F,z=r.evtBuffer.length;if(!(!n.isReady||z===0)){for(const $ of r.evtBuffer)if(F=r.panelMap.map(U=>U.reading).indexOf($.reading),F!==-1){W||a(6,"Data from FHEM handled.",$);for(const U of r.panelMap[F].items)x(n.panelList,U,$.value)}else W||a(8,"Data from FHEM received.",$);r.evtBuffer.splice(0,z)}}function w(W){let F=[],z;n.settings.xhr?(r.xhrBuffer+=W.substr(r.xhrOffset,W.length-r.xhrOffset),r.xhrBuffer.slice(-2).match("]")&&(F=r.xhrBuffer.split(` +`),r.xhrBuffer=""),r.xhrOffset=W.length):F=W.data.split(` +`);for(const $ of F)$.length>0&&(z=g($),/-/.test(z[0])&&r.evtBuffer.push({reading:z[0],value:z[1]}));S()}function C(){let W=d("?inform=type=status;filter=.*;fmt=JSON&XHR=1");return r.evtBuffer=[],!n.settings.xhr&&typeof WebSocket=="function"?(r.conn=new WebSocket(W.replace(/^http/i,"ws")),r.conn.onopen=()=>{a(4,"Websocket Connection opened.")},r.conn.onmessage=F=>w(F),r.conn.onerror=()=>T(),r.conn.onclose=()=>T()):(r.conn=new XMLHttpRequest,r.conn.open("GET",W,!0),r.conn.onloadstart=()=>{n.settings.xhr||(n.settings.xhr=!0,a(3,"Websocket is not supported by the browser. Fallback to longpoll connection.",null,"websocket")),a(4,"Longpoll Connection opened.")},r.conn.onerror=()=>T(),r.conn.onloadend=()=>T(),r.conn.onreadystatechange=()=>{r.conn.status===200&&r.conn.readyState===3&&w(r.conn.responseText)},r.conn.send()),!0}function T(W){let F;r.conn=null,n.isReady=!1,setTimeout(async()=>{F=await Q(!0),F||(n.message=!1,a(3,"Connection to FHEM was interrupted. Try to reconnect in 3 seconds.",null,"reconnect"),T(3e3))},W)}function A(W,F){let z=F.trim().split("-"),$=W.map(U=>U.key).indexOf(z[0]);return $!==-1?z[0]=W[$].name:z.unshift(W[0].name),z.join("-")}function P(W,F,z){let $,U,Y;if(F)for(const[j,te]of Object.entries(F))typeof F[j]=="object"?P(W,F[j],[...z,j]):typeof te=="string"&&($=te.replace(/\\:/g,":"),!/^::/.test($)&&/.*:.*:.*/.test($)&&(U=A(W,$.split(":")[0]),Y=r.panelMap.map(N=>N.reading).indexOf(U),Y===-1?r.panelMap.push({reading:U,items:[[...z,j]]}):r.panelMap[Y].items.push([...z,j])))}function D(W){let F=[],z;if(!Array.isArray(W)||Array.isArray(W)&&W.length===0)return!1;for(const $ of W)z=$.split(":"),F.push({key:z[0],name:z[1]||z[0]});return F}function M(){let W,F,z=JSON.parse(JSON.stringify(n.config.panels)),$=JSON.parse(JSON.stringify(n.config.templates)),U;n.config.panels.length===0&&a(3,"No Panels defined.",null,"noPanels"),n.panelList=[];for(const[Y,j]of Object.entries(z)){if(W={},U=j.template?$.map(te=>te.name).indexOf(j.template):-1,U!==-1){W=JSON.parse(JSON.stringify($[U]));for(const te of Object.keys(j))if(te==="main"){for(const[N,B]of Object.entries(j.main))for(const K of Object.keys(B.level))if(B.level[K]){W.main[N]=B;break}}else typeof j[te]=="object"&&W[te]&&Object.assign(W[te],j[te]);W.name=j.name}else W=j;F=D(W.panel?W.panel.devices:[]),F?(P(F,W,[Y]),n.panelList.push(W)):a(3,"No Devices defined in Panel "+W.name)}return a(4,"PanelList and PanelMapping created.",{panelList:n.panelList,panelMap:r.panelMap}),!0}function L(W,F){return F.reduce((z,$)=>z&&z[$],W)}async function R(){let W=[],F=JSON.parse(JSON.stringify(n.panelList)),z,$,U,Y,j,te;for(const N of r.panelMap)z=N.reading.split("-")[0],W.indexOf(z)===-1&&W.push(z);if(W.length===0)return a(3,"No Devices in Panels defined.",null,"noPanels"),!0;if($=await v("json","jsonlist2 "+W.join(",")),!!$){for(const N of r.panelMap){U=N.reading.split("-"),Y=$.Results.map(B=>B.Name).indexOf(U[0]),j=[],te=null,U[1]==="i"?j=["Internals",U[2]]:U[1]==="a"?j=["Attributes",U[2]]:U[U.length-1]==="ts"?(U.pop(),U.shift(),j=["Readings",U.join("-"),"Time"]):(U.shift(),j=["Readings",U.join("-"),"Value"]),te=L($.Results[Y],j);for(const B of N.items)x(F,B,te)}return n.panelList=F,a(4,"Devices from FHEM loaded.",$),!0}}function O(W,F){let z=null;if(!F||!Array.isArray(F)||F.length<1)return W;for(const $ of F)if(/.*:.*/.test($)&&(z=$.split(":"),RegExp(z[0]).test(W)))return z[1];return W}function H(W,F,z){let $=W;if(typeof W!="string")return W;if(/:/.test(F)&&(F=F.replace(/:/g,":")),/:/.test($)&&($=$.replace(/:/g,":")),/%s/.test($)&&($=$.replace(/%s/g,F)),/%n\(.*\)/.test($)){$=$.replace("%n()","%n(0)");let U=/%n\(.*\)/.exec($),Y=/-?[0-9]/.exec(F);if(!Y)return null;let j=U[0].slice(3,-1).split(","),te=parseFloat(j[1]||0),N=parseFloat(j[0]||0),B=parseFloat(F.slice(Y.index))+te;$=U.input.replace(U[0],z?B.toFixed(N):e.n(B,{minimumFractionDigits:N,maximumFractionDigits:N}))}if(/%d\(.*\)/.test($)){let U=/%d\(.*\)/.exec($),Y=U[0].slice(3,-1),j={dateStyle:"short",timeStyle:"medium"},te=F.replace(" ","T"),N=/^(\d{1,2})\.(\d{1,2})\.(\d{2,4})/.exec(te);Y==="time"&&(j={hour:"numeric",minute:"numeric",second:"numeric"}),Y==="date"&&(j={dateStyle:"short"}),/{.*}/.test(Y)&&(j=g(Y)),N&&(te=te.replace(N[0],[N[3],N[2],N[1]].join("-"))),/(T|Z)/.test(te)||(te+="T00:00:00"),/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/.test(te)?$=U.input.replace(U[0],e.d(te,j)).replace(", "," "):$=U.input.replace(U[0],te+" -> is no ISO-Date/Time!")}if(/%t\(.*\)/.test($)){let U=/%t\(.*\)/.exec($);$=U.input.replace(U[0],e.t(U[0].slice(3,-1)))}return $}function V(W,F,z,$,U,Y){let j=$?[]:{},te,N,B,K,re,ie={},de=F&&Array.isArray(F),_e=z&&Array.isArray(z),me;if(de)for(const[ye,he]of Object.entries(F))ie[he]=_e?z[ye]:null;if(!W)return $?j:ie;te=JSON.parse(JSON.stringify(W));for(let ye of te){if(ye=ye.replace(/\\:/g,":"),/.*:.*:.*/.test(ye)||(ye="::"+ye),N=ye.split(":"),B=!0,U&&N[0].split(U).length>1){for(const he of N[0].split(U))te.push([he,...N.slice(1)].join(":"));continue}if(N[1]&&(B=!1,K=parseFloat(N[1]),isNaN(K)?RegExp(N[1]?N[1]:".").test(N[0])&&(B=!0):(re=/-?[0-9]/.exec(N[0]),re&&re.index!==-1&&parseFloat(N[0].slice(re.index))>=K&&(B=!0))),B){me=Object.assign({},ie);for(let[he,Ie]of Object.entries(N.slice(2)))Ie==="true"&&(Ie=!0),Ie==="false"&&(Ie=!1),Ie!==""&&(me[de&&F[he]?F[he]:[he]]=H(Ie,N[0],Y));if($)j.push(me);else{j=me;break}}}return j}function G(W,F){let z=W.split("->"),$={name:z[0],title:z[0]},U=F.map(Y=>Y.name).indexOf($.name);return U!==-1&&Object.assign($,F[U]),z.length>1&&($.group=G(z.slice(1).join("->"),$.group||[])),U!==-1?F[U]=$:F.push($),F}function X(W){for(const F of W)F.sort&&F.group&&F.group.length>1&&F.group.sort((z,$)=>z.title.toUpperCase()>$.title.toUpperCase()?1:$.title.toUpperCase()>z.title.toUpperCase()?-1:0),F.group&&X(F.group)}function Z(){let W=[];n.navigation=JSON.parse(JSON.stringify(n.config.navigation));for(const F of n.panelList)if(F.panel.navigation&&(W=V(F.panel.navigation,["route"],[""],!0,","),V(F.panel.show,["show"],[!0]).show))for(const z of W)G(z.route,n.navigation);return X(n.navigation),a(4,"Navigation loaded.",n.navigation),!0}function q(){let W,F=s();n.panelView=[];for(const[z,$]of Object.entries(n.panelList))$.panel.navigation&&(W=V($.panel.navigation,["route"],[""],!0,","),W.map(U=>U.route).indexOf(n.currentView)!==-1&&n.panelView.push(z));return S(),a("4","PanelView loaded.",{view:n.currentView}),s(F),!0}async function Q(W){let F=!0,z=s();return a(4,W?"Create Session...":"Refresh Session..."),n.isReady=!1,r.panelMap=[],F&&W&&(F=await h()),F&&W&&(F=C()),F&&(F=await _()),F&&(F=await b()),F&&(F=M()),F&&(F=await R()),F&&(F=Z()),F&&(F=q()),F?(n.message=!1,n.isReady=!0,a(1,W?"FHEMApp launched.":"Session refreshed.",n)):a(3,"FHEMApp launching failed."),s(z),F}function ae(){a(1,"FHEMApp launching..."),o(),c(),i(),Ra.afterEach(W=>{let F=f(W);if(F.langChanged&&(e.locale.value=n.settings.lang),F.darkChanged&&u(n.settings.dark==="0"?"light":"dark"),F.connChanged||!n.isReady)return Q(!0);if(F.configChanged)return location.reload();F.routeChanged&&q()})}return Ra.isReady().then(ae()),{app:n,getEl:L,handleDefs:V,getIcon:O,replacer:H,createSession:Q,request:v,thread:s,stringToJson:g,log:a,help:l,changeDarkMode:u}}),AB={__name:"AppNavigation",props:{items:Array,path:String,isChip:Boolean},setup(e){const t=e,n=sC(),r=i=>t.path?t.path+"->"+i:i,a=i=>{n.app.header.title=n.replacer(t.items[i].title,""),Ra.push({name:"devices",params:{view:r(t.items[i].name)},query:Ra.currentRoute.value.query})};return(i,o)=>{const s=Rt("v-list-item"),l=Rt("v-chip"),u=Rt("v-list-group"),c=Rt("v-divider");return en(!0),kl(ke,null,SS(e.items,(f,d)=>(en(),kl("span",{key:f.name},[(!f.group||f.group.length<1)&&!e.isChip?(en(),wr(s,{key:d,title:Ge(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill",onClick:v=>a(d)},null,8,["title","prepend-icon","onClick"])):oa("",!0),(!f.group||f.group.length<1)&&e.isChip?(en(),wr(l,{class:"my-1 ml-2","prepend-icon":f.icon,key:d,onClick:v=>a(d)},{default:zt(()=>[$r(gl(Ge(n).replacer(f.title,"")||f.name),1)]),_:2},1032,["prepend-icon","onClick"])):oa("",!0),f.group&&f.group.length>0?(en(),wr(u,{key:2,value:f.name},{activator:zt(({props:v})=>[I(s,ge(v,{title:Ge(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill"}),null,16,["title","prepend-icon"])]),default:zt(()=>[I(AB,{items:f.group,isChip:f.groupAsChips,path:r(f.name)},null,8,["items","isChip","path"])]),_:2},1032,["value"])):oa("",!0),f.divider?(en(),wr(c,{key:3})):oa("",!0)]))),128)}}},pZ={__name:"OptionsMenu",setup(e){const t=sC(),n=Gv(),r=E(()=>{let o=[],s=t.app.header,l={darkMode:{name:"darkMode",title:"%t(_app.options.darkMode)",icon:"mdi-theme-light-dark"},reloadPage:{name:"reloadPage",title:"%t(_app.options.reload)",icon:"mdi-reload"},settings:{name:"settings",title:"%t(_app.options.settings)",icon:"mdi-cogs"}};return s.showDarkMode&&o.push(l.darkMode),s.showReloadPage&&o.push(l.reloadPage),s.showSettings&&o.push(l.settings),o.push(...s.commands),o}),a=E(()=>Object.keys(n.messages.value));function i(o){let s=r.value[o];s.name==="reloadPage"&&location.reload(),s.name==="settings"&&Ra.push({name:"settings",query:Ra.currentRoute.value.query}),s.name==="darkMode"&&t.changeDarkMode(),s.cmd&&t.request("text",s.cmd)}return(o,s)=>{const l=Rt("v-btn"),u=Rt("v-list-item"),c=Rt("v-divider"),f=Rt("v-btn-toggle"),d=Rt("v-list"),v=Rt("v-menu");return r.value.length>0?(en(),wr(v,{key:0},{activator:zt(({props:h})=>[I(l,ge({icon:"mdi-dots-vertical"},h),null,16)]),default:zt(()=>[I(d,null,{default:zt(()=>[(en(!0),kl(ke,null,SS(r.value,(h,g)=>(en(),wr(u,{rounded:"pill",key:g,"prepend-icon":h.icon,title:Ge(t).replacer(h.title,""),onClick:p=>i(g)},null,8,["prepend-icon","title","onClick"]))),128)),r.value.length>0&&Ge(t).app.header.showLanguages?(en(),wr(c,{key:0,class:"pb-2"})):oa("",!0),Ge(t).app.header.showLanguages?(en(),wr(u,{key:1,class:"text-center"},{default:zt(()=>[I(f,{modelValue:Ge(n).locale.value,"onUpdate:modelValue":s[0]||(s[0]=h=>Ge(n).locale.value=h),divided:"",density:"compact"},{default:zt(()=>[(en(!0),kl(ke,null,SS(a.value,h=>(en(),wr(l,{value:h,size:"small",key:h},{default:zt(()=>[$r(gl(h),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})):oa("",!0)]),_:1})]),_:1})):oa("",!0)}}},mZ=""+new URL("logo_v4-a31de70f.png",import.meta.url).href,yZ={key:0,class:"text-h5"},_Z={key:0,class:"text-h5"},bZ={key:1,class:"text-h5"},SZ={__name:"App",setup(e){const t=sC(),{mobile:n}=xs(),r=pe(!0);function a(){Ra.push({name:"internals",query:Ra.currentRoute.value.query})}return(i,o)=>{const s=Rt("v-progress-circular"),l=Rt("v-overlay"),u=Rt("v-img"),c=Rt("v-divider"),f=Rt("v-list"),d=Rt("v-col"),v=Rt("v-icon"),h=Rt("v-row"),g=Rt("v-navigation-drawer"),p=Rt("v-app-bar-nav-icon"),m=Rt("v-btn"),y=Rt("v-app-bar"),_=Rt("v-alert"),b=Rt("RouterView"),x=Rt("v-container"),S=Rt("v-main"),w=Rt("v-layout"),C=Rt("v-app");return en(),wr(C,{class:"noselect"},{default:zt(()=>[I(w,null,{default:zt(()=>[I(l,{"model-value":Ge(t).app.threads.length>0,class:"align-center justify-center"},{default:zt(()=>[I(s,{indeterminate:"",size:"64"})]),_:1},8,["model-value"]),I(g,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=T=>r.value=T),color:"secondary"},{prepend:zt(()=>[I(u,{src:Ge(mZ)},null,8,["src"]),I(c)]),default:zt(()=>[I(f,null,{default:zt(()=>[I(AB,{items:Ge(t).app.navigation},null,8,["items"])]),_:1}),I(c),I(h,{"no-gutters":"",class:"mx-2 my-1"},{default:zt(()=>[I(d,null,{default:zt(()=>[$r(gl(Ge(t).app.version),1)]),_:1}),I(d,{cols:"2",class:"text-right"},{default:zt(()=>[I(v,{icon:Ge(t).app.isReady?"mdi-sync":"mdi-alert",size:"small"},null,8,["icon"])]),_:1})]),_:1}),I(c)]),_:1},8,["modelValue"]),I(y,{order:Ge(n)?0:-1,color:Ge(t).app.settings.loglevel>6?"error":"primary"},_6({prepend:zt(()=>[I(p,{class:"d-lg-none",onClick:o[1]||(o[1]=OS(T=>r.value=!r.value,["stop"]))}),!Ge(n)&&Ge(t).app.header.showTime?(en(),kl("div",yZ,gl(i.$d(Ge(t).app.header.time,Ge(t).app.header.timeFormat)),1)):oa("",!0)]),append:zt(()=>[Ge(t).app.settings.loglevel>6?(en(),wr(m,{key:0,icon:"mdi-information",onClick:o[2]||(o[2]=T=>a())})):oa("",!0),I(pZ)]),default:zt(()=>[!Ge(n)&&Ge(t).app.header.showDate?(en(),kl("div",_Z,gl(i.$d(Ge(t).app.header.time,Ge(t).app.header.dateFormat)),1)):oa("",!0),Ge(n)&&Ge(t).app.header.showTitle?(en(),kl("div",bZ,gl(Ge(t).app.header.title),1)):oa("",!0)]),_:2},[Ge(t).app.header.imageUrl&&Ge(t).app.settings.loglevel<7?{name:"image",fn:zt(()=>[I(u,{src:Ge(t).app.header.imageUrl,cover:"",gradient:Ge(t).app.header.imageGradient},null,8,["src","gradient"])]),key:"0"}:void 0]),1032,["order","color"]),I(S,null,{default:zt(()=>[I(x,{fluid:"",class:"pa-2"},{default:zt(()=>[Ge(t).app.message?(en(),wr(_,{key:0,closable:"",type:Ge(t).app.message.type,title:i.$t(Ge(t).app.message.title),text:i.$t(Ge(t).app.message.text),class:"mb-2 mx-1","onClick:close":o[3]||(o[3]=T=>Ge(t).app.message=!1)},null,8,["type","title","text"])):oa("",!0),I(b)]),_:1})]),_:1})]),_:1})]),_:1})}}};const xZ=J({...Pe(),...wB({fullHeight:!0}),...vt()},"VApp"),wZ=le()({name:"VApp",props:xZ(),setup(e,t){let{slots:n}=t;const r=St(e),{layoutClasses:a,getLayoutItem:i,items:o,layoutRef:s}=CB(e),{rtlClasses:l}=Rn();return ve(()=>{var u;return I("div",{ref:s,class:["v-application",r.themeClasses.value,a.value,l.value,e.class],style:[e.style]},[I("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}});const et=J({tag:{type:String,default:"div"}},"tag"),IB=J({text:String,...Pe(),...et()},"VToolbarTitle"),lC=le()({name:"VToolbarTitle",props:IB(),setup(e,t){let{slots:n}=t;return ve(()=>{const r=!!(n.default||n.text||e.text);return I(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var a;return[r&&I("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(a=n.default)==null?void 0:a.call(n)])]}})}),{}}}),CZ=J({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Ur(e,t,n){return le()({name:e,props:CZ({mode:n,origin:t}),setup(r,a){let{slots:i}=a;const o={onBeforeEnter(s){r.origin&&(s.style.transformOrigin=r.origin)},onLeave(s){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:f}=s;s._transitionInitialStyles={position:s.style.position,top:s.style.top,left:s.style.left,width:s.style.width,height:s.style.height},s.style.position="absolute",s.style.top=`${l}px`,s.style.left=`${u}px`,s.style.width=`${c}px`,s.style.height=`${f}px`}r.hideOnLeave&&s.style.setProperty("display","none","important")},onAfterLeave(s){if(r.leaveAbsolute&&(s!=null&&s._transitionInitialStyles)){const{position:l,top:u,left:c,width:f,height:d}=s._transitionInitialStyles;delete s._transitionInitialStyles,s.style.position=l||"",s.style.top=u||"",s.style.left=c||"",s.style.width=f||"",s.style.height=d||""}}};return()=>{const s=r.group?C8:yi;return Sa(s,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function PB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return le()({name:e,props:{mode:{type:String,default:n},disabled:Boolean},setup(r,a){let{slots:i}=a;return()=>Sa(yi,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function DB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Kn(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const s=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=s.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:a,onLeaveCancelled:a};function a(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){const s=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,s!=null&&(o.style[n]=s),delete o._initialStyle}}const TZ=J({target:[Object,Array]},"v-dialog-transition"),uy=le()({name:"VDialogTransition",props:TZ(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,i){var d;await new Promise(v=>requestAnimationFrame(v)),await new Promise(v=>requestAnimationFrame(v)),a.style.visibility="";const{x:o,y:s,sx:l,sy:u,speed:c}=vD(e.target,a),f=yl(a,[{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:cX});(d=dD(a))==null||d.forEach(v=>{yl(v,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:qd})}),f.finished.then(()=>i())},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,i){var d;await new Promise(v=>requestAnimationFrame(v));const{x:o,y:s,sx:l,sy:u,speed:c}=vD(e.target,a);yl(a,[{},{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:fX}).finished.then(()=>i()),(d=dD(a))==null||d.forEach(v=>{yl(v,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:qd})})},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?I(yi,ge({name:"dialog-transition"},r,{css:!1}),n):I(yi,{name:"dialog-transition"},n)}});function dD(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function vD(e,t){const n=eB(e),r=qw(t),[a,i]=getComputedStyle(t).transformOrigin.split(" ").map(m=>parseFloat(m)),[o,s]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||s==="left"?l-=n.width/2:(o==="right"||s==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||s==="top"?u-=n.height/2:(o==="bottom"||s==="bottom")&&(u+=n.height/2);const c=n.width/r.width,f=n.height/r.height,d=Math.max(1,c,f),v=c/d||0,h=f/d||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),p=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(a+r.left),y:u-(i+r.top),sx:v,sy:h,speed:p}}const AZ=Ur("fab-transition","center center","out-in"),IZ=Ur("dialog-bottom-transition"),PZ=Ur("dialog-top-transition"),zp=Ur("fade-transition"),uC=Ur("scale-transition"),DZ=Ur("scroll-x-transition"),MZ=Ur("scroll-x-reverse-transition"),kZ=Ur("scroll-y-transition"),LZ=Ur("scroll-y-reverse-transition"),EZ=Ur("slide-x-transition"),RZ=Ur("slide-x-reverse-transition"),cC=Ur("slide-y-transition"),VZ=Ur("slide-y-reverse-transition"),cy=PB("expand-transition",DB()),fC=PB("expand-x-transition",DB("",!0)),OZ=J({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ht=le(!1)({name:"VDefaultsProvider",props:OZ(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:a,reset:i,root:o,scoped:s}=Nv(e);return Gt(r,{reset:i,root:o,scoped:s,disabled:a}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}});const hr=J({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function gr(e){return{dimensionStyles:E(()=>({height:Ae(e.height),maxHeight:Ae(e.maxHeight),maxWidth:Ae(e.maxWidth),minHeight:Ae(e.minHeight),minWidth:Ae(e.minWidth),width:Ae(e.width)}))}}function NZ(e){return{aspectStyles:E(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const MB=J({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...Pe(),...hr()},"VResponsive"),o1=le()({name:"VResponsive",props:MB(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=NZ(e),{dimensionStyles:a}=gr(e);return ve(()=>{var i;return I("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[a.value,e.style]},[I("div",{class:"v-responsive__sizer",style:r.value},null),(i=n.additional)==null?void 0:i.call(n),n.default&&I("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),oo=J({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),fa=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:a,...i}=e,{component:o=yi,...s}=typeof r=="object"?r:{};return Sa(o,ge(typeof r=="string"?{name:a?"":r}:s,i,{disabled:a}),n)};function BZ(e,t){if(!Zw)return;const n=t.modifiers||{},r=t.value,{handler:a,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var f;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const c=s.some(d=>d.isIntersecting);a&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&a(c,s,l),c&&n.once?kB(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function kB(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Wv={mounted:BZ,unmounted:kB},LB=J({alt:String,cover:Boolean,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...MB(),...Pe(),...oo()},"VImg"),Zl=le()({name:"VImg",directives:{intersect:Wv},props:LB(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=un("VImg"),i=xe(""),o=pe(),s=xe(e.eager?"loading":"idle"),l=xe(),u=xe(),c=E(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),f=E(()=>c.value.aspect||l.value/u.value||0);Se(()=>e.src,()=>{d(s.value!=="idle")}),Se(f,(T,A)=>{!T&&A&&o.value&&m(o.value)}),qm(()=>d());function d(T){if(!(e.eager&&T)&&!(Zw&&!T&&!e.eager)){if(s.value="loading",c.value.lazySrc){const A=new Image;A.src=c.value.lazySrc,m(A,null)}c.value.src&&dt(()=>{var A;n("loadstart",((A=o.value)==null?void 0:A.currentSrc)||c.value.src),setTimeout(()=>{var P;if(!a.isUnmounted)if((P=o.value)!=null&&P.complete){if(o.value.naturalWidth||h(),s.value==="error")return;f.value||m(o.value,null),s.value==="loading"&&v()}else f.value||m(o.value),g()})})}}function v(){var T;a.isUnmounted||(g(),m(o.value),s.value="loaded",n("load",((T=o.value)==null?void 0:T.currentSrc)||c.value.src))}function h(){var T;a.isUnmounted||(s.value="error",n("error",((T=o.value)==null?void 0:T.currentSrc)||c.value.src))}function g(){const T=o.value;T&&(i.value=T.currentSrc||T.src)}let p=-1;En(()=>{clearTimeout(p)});function m(T){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const P=()=>{if(clearTimeout(p),a.isUnmounted)return;const{naturalHeight:D,naturalWidth:M}=T;D||M?(l.value=M,u.value=D):!T.complete&&s.value==="loading"&&A!=null?p=window.setTimeout(P,A):(T.currentSrc.endsWith(".svg")||T.currentSrc.startsWith("data:image/svg+xml"))&&(l.value=1,u.value=1)};P()}const y=E(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),_=()=>{var P;if(!c.value.src||s.value==="idle")return null;const T=I("img",{class:["v-img__img",y.value],style:{objectPosition:e.position},src:c.value.src,srcset:c.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:o,onLoad:v,onError:h},null),A=(P=r.sources)==null?void 0:P.call(r);return I(fa,{transition:e.transition,appear:!0},{default:()=>[Yt(A?I("picture",{class:"v-img__picture"},[A,T]):T,[[Ya,s.value==="loaded"]])]})},b=()=>I(fa,{transition:e.transition},{default:()=>[c.value.lazySrc&&s.value!=="loaded"&&I("img",{class:["v-img__img","v-img__img--preload",y.value],style:{objectPosition:e.position},src:c.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),x=()=>r.placeholder?I(fa,{transition:e.transition,appear:!0},{default:()=>[(s.value==="loading"||s.value==="error"&&!r.error)&&I("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,S=()=>r.error?I(fa,{transition:e.transition,appear:!0},{default:()=>[s.value==="error"&&I("div",{class:"v-img__error"},[r.error()])]}):null,w=()=>e.gradient?I("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,C=xe(!1);{const T=Se(f,A=>{A&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{C.value=!0})}),T())})}return ve(()=>{const T=o1.filterProps(e);return Yt(I(o1,ge({class:["v-img",{"v-img--booting":!C.value},e.class],style:[{width:Ae(e.width==="auto"?l.value:e.width)},e.style]},T,{aspectRatio:f.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>I(ke,null,[I(_,null,null),I(b,null,null),I(w,null,null),I(x,null,null),I(S,null,null)]),default:r.default}),[[Mr("intersect"),{handler:d,options:e.options},null,{once:!0}]])}),{currentSrc:i,image:o,state:s,naturalWidth:l,naturalHeight:u}}}),Yr=J({border:[Boolean,Number,String]},"border");function xa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{borderClasses:E(()=>{const r=Ft(e)?e.value:e.border,a=[];if(r===!0||r==="")a.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))a.push(`border-${i}`);return a})}}function dC(e){return jw(()=>{const t=[],n={};if(e.value.background)if(QS(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&eX(e.value.background)){const r=ca(e.value.background);if(r.a==null||r.a===1){const a=fB(r);n.color=a,n.caretColor=a}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(QS(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Qn(e,t){const n=E(()=>({text:Ft(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=dC(n);return{textColorClasses:r,textColorStyles:a}}function Bt(e,t){const n=E(()=>({background:Ft(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=dC(n);return{backgroundColorClasses:r,backgroundColorStyles:a}}const pn=J({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Vn(e){return{elevationClasses:E(()=>{const n=Ft(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Ht=J({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function qt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{roundedClasses:E(()=>{const r=Ft(e)?e.value:e.rounded,a=[];if(r===!0||r==="")a.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))a.push(`rounded-${i}`);return a})}}const zZ=[null,"prominent","default","comfortable","compact"],EB=J({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>zZ.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Yr(),...Pe(),...pn(),...Ht(),...et({tag:"header"}),...vt()},"VToolbar"),s1=le()({name:"VToolbar",props:EB(),setup(e,t){var v;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"color")),{borderClasses:i}=xa(e),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e),{themeClasses:l}=St(e),{rtlClasses:u}=Rn(),c=xe(!!(e.extended||(v=n.extension)!=null&&v.call(n))),f=E(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),d=E(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Gt({VBtn:{variant:"text"}}),ve(()=>{var m;const h=!!(e.title||n.title),g=!!(n.image||e.image),p=(m=n.extension)==null?void 0:m.call(n);return c.value=!!(e.extended||p),I(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,i.value,o.value,s.value,l.value,u.value,e.class],style:[a.value,e.style]},{default:()=>[g&&I("div",{key:"image",class:"v-toolbar__image"},[n.image?I(ht,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):I(Zl,{key:"image-img",cover:!0,src:e.image},null)]),I(ht,{defaults:{VTabs:{height:Ae(f.value)}}},{default:()=>{var y,_,b;return[I("div",{class:"v-toolbar__content",style:{height:Ae(f.value)}},[n.prepend&&I("div",{class:"v-toolbar__prepend"},[(y=n.prepend)==null?void 0:y.call(n)]),h&&I(lC,{key:"title",text:e.title},{text:n.title}),(_=n.default)==null?void 0:_.call(n),n.append&&I("div",{class:"v-toolbar__append"},[(b=n.append)==null?void 0:b.call(n)])])]}}),I(ht,{defaults:{VTabs:{height:Ae(d.value)}}},{default:()=>[I(cy,null,{default:()=>[c.value&&I("div",{class:"v-toolbar__extension",style:{height:Ae(d.value)}},[p])]})]})]})}),{contentHeight:f,extensionHeight:d}}}),FZ=J({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function $Z(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let r=0;const a=pe(null),i=xe(0),o=xe(0),s=xe(0),l=xe(!1),u=xe(!1),c=E(()=>Number(e.scrollThreshold)),f=E(()=>vn((c.value-i.value)/c.value||0)),d=()=>{const v=a.value;!v||n&&!n.value||(r=i.value,i.value="window"in v?v.pageYOffset:v.scrollTop,u.value=i.value{o.value=o.value||i.value}),Se(l,()=>{o.value=0}),ln(()=>{Se(()=>e.scrollTarget,v=>{var g;const h=v?document.querySelector(v):window;h&&h!==a.value&&((g=a.value)==null||g.removeEventListener("scroll",d),a.value=h,a.value.addEventListener("scroll",d,{passive:!0}))},{immediate:!0})}),En(()=>{var v;(v=a.value)==null||v.removeEventListener("scroll",d)}),n&&Se(n,d,{immediate:!0}),{scrollThreshold:c,currentScroll:i,currentThreshold:s,isScrollActive:l,scrollRatio:f,isScrollingUp:u,savedScroll:o}}function cu(){const e=xe(!1);return ln(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:E(()=>e.value?void 0:{transition:"none !important"}),isBooted:Ov(e)}}const GZ=J({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...EB(),...Hc(),...FZ(),height:{type:[Number,String],default:64}},"VAppBar"),HZ=le()({name:"VAppBar",props:GZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=pe(),a=ze(e,"modelValue"),i=E(()=>{var y;const m=new Set(((y=e.scrollBehavior)==null?void 0:y.split(" "))??[]);return{hide:m.has("hide"),inverted:m.has("inverted"),collapse:m.has("collapse"),elevate:m.has("elevate"),fadeImage:m.has("fade-image")}}),o=E(()=>{const m=i.value;return m.hide||m.inverted||m.collapse||m.elevate||m.fadeImage||!a.value}),{currentScroll:s,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=$Z(e,{canScroll:o}),f=E(()=>e.collapse||i.value.collapse&&(i.value.inverted?c.value>0:c.value===0)),d=E(()=>e.flat||i.value.elevate&&(i.value.inverted?s.value>0:s.value===0)),v=E(()=>i.value.fadeImage?i.value.inverted?1-c.value:c.value:void 0),h=E(()=>{var _,b;if(i.value.hide&&i.value.inverted)return 0;const m=((_=r.value)==null?void 0:_.contentHeight)??0,y=((b=r.value)==null?void 0:b.extensionHeight)??0;return m+y});Ba(E(()=>!!e.scrollBehavior),()=>{Ln(()=>{i.value.hide?i.value.inverted?a.value=s.value>l.value:a.value=u.value||s.valueparseInt(e.order,10)),position:se(e,"location"),layoutSize:h,elementSize:xe(void 0),active:a,absolute:se(e,"absolute")});return ve(()=>{const m=s1.filterProps(e);return I(s1,ge({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...p.value,"--v-toolbar-image-opacity":v.value,height:void 0,...g.value},e.style]},m,{collapse:f.value,flat:d.value}),n)}),{}}});const WZ=[null,"default","comfortable","compact"],Cn=J({density:{type:String,default:"default",validator:e=>WZ.includes(e)}},"density");function ar(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{densityClasses:E(()=>`${t}--density-${e.density}`)}}const UZ=["elevated","flat","tonal","outlined","text","plain"];function fu(e,t){return I(ke,null,[e&&I("span",{key:"overlay",class:`${t}__overlay`},null),I("span",{key:"underlay",class:`${t}__underlay`},null)])}const wa=J({color:String,variant:{type:String,default:"elevated",validator:e=>UZ.includes(e)}},"variant");function du(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();const n=E(()=>{const{variant:i}=Ge(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:a}=dC(E(()=>{const{variant:i,color:o}=Ge(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}}));return{colorClasses:r,colorStyles:a,variantClasses:n}}const RB=J({divided:Boolean,...Yr(),...Pe(),...Cn(),...pn(),...Ht(),...et(),...vt(),...wa()},"VBtnGroup"),l1=le()({name:"VBtnGroup",props:RB(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{densityClasses:a}=ar(e),{borderClasses:i}=xa(e),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e);Gt({VBtn:{height:"auto",color:se(e,"color"),density:se(e,"density"),flat:!0,variant:se(e,"variant")}}),ve(()=>I(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,i.value,a.value,o.value,s.value,e.class],style:e.style},n))}}),vu=J({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),hu=J({value:null,disabled:Boolean,selectedClass:String},"group-item");function gu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=un("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const a=rr();Tt(Symbol.for(`${t.description}:id`),a);const i=nt(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=se(e,"value"),s=E(()=>!!(i.disabled.value||e.disabled));i.register({id:a,value:o,disabled:s},r),En(()=>{i.unregister(a)});const l=E(()=>i.isSelected(a)),u=E(()=>l.value&&[i.selectedClass.value,e.selectedClass]);return Se(l,c=>{r.emit("group:selected",{value:c})}),{id:a,isSelected:l,toggle:()=>i.select(a,!l.value),select:c=>i.select(a,c),selectedClass:u,value:o,disabled:s,group:i}}function ws(e,t){let n=!1;const r=In([]),a=ze(e,"modelValue",[],d=>d==null?[]:VB(r,nn(d)),d=>{const v=XZ(r,d);return e.multiple?v:v[0]}),i=un("useGroup");function o(d,v){const h=d,g=Symbol.for(`${t.description}:id`),m=_d(g,i==null?void 0:i.vnode).indexOf(v);m>-1?r.splice(m,0,h):r.push(h)}function s(d){if(n)return;l();const v=r.findIndex(h=>h.id===d);r.splice(v,1)}function l(){const d=r.find(v=>!v.disabled);d&&e.mandatory==="force"&&!a.value.length&&(a.value=[d.id])}ln(()=>{l()}),En(()=>{n=!0});function u(d,v){const h=r.find(g=>g.id===d);if(!(v&&(h!=null&&h.disabled)))if(e.multiple){const g=a.value.slice(),p=g.findIndex(y=>y===d),m=~p;if(v=v??!m,m&&e.mandatory&&g.length<=1||!m&&e.max!=null&&g.length+1>e.max)return;p<0&&v?g.push(d):p>=0&&!v&&g.splice(p,1),a.value=g}else{const g=a.value.includes(d);if(e.mandatory&&g)return;a.value=v??!g?[d]:[]}}function c(d){if(e.multiple,a.value.length){const v=a.value[0],h=r.findIndex(m=>m.id===v);let g=(h+d)%r.length,p=r[g];for(;p.disabled&&g!==h;)g=(g+d)%r.length,p=r[g];if(p.disabled)return;a.value=[r[g].id]}else{const v=r.find(h=>!h.disabled);v&&(a.value=[v.id])}}const f={register:o,unregister:s,selected:a,select:u,disabled:se(e,"disabled"),prev:()=>c(r.length-1),next:()=>c(1),isSelected:d=>a.value.includes(d),selectedClass:E(()=>e.selectedClass),items:E(()=>r),getItemIndex:d=>YZ(r,d)};return Tt(t,f),f}function YZ(e,t){const n=VB(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function VB(e,t){const n=[];return t.forEach(r=>{const a=e.find(o=>io(r,o.value)),i=e[r];(a==null?void 0:a.value)!=null?n.push(a.id):i!=null&&n.push(i.id)}),n}function XZ(e,t){const n=[];return t.forEach(r=>{const a=e.findIndex(i=>i.id===r);if(~a){const i=e[a];n.push(i.value!=null?i.value:a)}}),n}const vC=Symbol.for("vuetify:v-btn-toggle"),ZZ=J({...RB(),...vu()},"VBtnToggle"),jZ=le()({name:"VBtnToggle",props:ZZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:a,prev:i,select:o,selected:s}=ws(e,vC);return ve(()=>{const l=l1.filterProps(e);return I(l1,ge({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:a,prev:i,select:o,selected:s})]}})}),{next:a,prev:i,select:o}}});const KZ=["x-small","small","default","large","x-large"],so=J({size:{type:[String,Number],default:"default"}},"size");function Uc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return jw(()=>{let n,r;return Vp(KZ,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:Ae(e.size),height:Ae(e.size)}),{sizeClasses:n,sizeStyles:r}})}const qZ=J({color:String,start:Boolean,end:Boolean,icon:Je,...Pe(),...so(),...et({tag:"i"}),...vt()},"VIcon"),Ct=le()({name:"VIcon",props:qZ(),setup(e,t){let{attrs:n,slots:r}=t;const a=pe(),{themeClasses:i}=St(e),{iconData:o}=cZ(E(()=>a.value||e.icon)),{sizeClasses:s}=Uc(e),{textColorClasses:l,textColorStyles:u}=Qn(se(e,"color"));return ve(()=>{var f,d;const c=(f=r.default)==null?void 0:f.call(r);return c&&(a.value=(d=jN(c).filter(v=>v.type===is&&v.children&&typeof v.children=="string")[0])==null?void 0:d.children),I(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",i.value,s.value,l.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[s.value?void 0:{fontSize:Ae(e.size),height:Ae(e.size),width:Ae(e.size)},u.value,e.style],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>[c]})}),{}}});function fy(e,t){const n=pe(),r=xe(!1);if(Zw){const a=new IntersectionObserver(i=>{e==null||e(i,a),r.value=!!i.find(o=>o.isIntersecting)},t);En(()=>{a.disconnect()}),Se(n,(i,o)=>{o&&(a.unobserve(o),r.value=!1),i&&a.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const JZ=J({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Pe(),...so(),...et({tag:"div"}),...vt()},"VProgressCircular"),Dc=le()({name:"VProgressCircular",props:JZ(),setup(e,t){let{slots:n}=t;const r=20,a=2*Math.PI*r,i=pe(),{themeClasses:o}=St(e),{sizeClasses:s,sizeStyles:l}=Uc(e),{textColorClasses:u,textColorStyles:c}=Qn(se(e,"color")),{textColorClasses:f,textColorStyles:d}=Qn(se(e,"bgColor")),{intersectionRef:v,isIntersecting:h}=fy(),{resizeRef:g,contentRect:p}=_i(),m=E(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),y=E(()=>Number(e.width)),_=E(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(y.value,32)),b=E(()=>r/(1-y.value/_.value)*2),x=E(()=>y.value/_.value*b.value),S=E(()=>Ae((100-m.value)/100*a));return Ln(()=>{v.value=i.value,g.value=i.value}),ve(()=>I(e.tag,{ref:i,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":h.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},o.value,s.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:m.value},{default:()=>[I("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${b.value} ${b.value}`},[I("circle",{class:["v-progress-circular__underlay",f.value],style:d.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":0},null),I("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":S.value},null)]),n.default&&I("div",{class:"v-progress-circular__content"},[n.default({value:m.value})])]})),{}}});const hD={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Cs=J({location:String},"location");function Ts(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Rn();return{locationStyles:E(()=>{if(!e.location)return{};const{side:i,align:o}=qS(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function s(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[hD[i]]=`calc(100% - ${s(i)}px)`:l[i]=0),o!=="center"?t?l[hD[o]]=`calc(100% - ${s(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const QZ=J({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Pe(),...Cs({location:"top"}),...Ht(),...et(),...vt()},"VProgressLinear"),dy=le()({name:"VProgressLinear",props:QZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{isRtl:a,rtlClasses:i}=Rn(),{themeClasses:o}=St(e),{locationStyles:s}=Ts(e),{textColorClasses:l,textColorStyles:u}=Qn(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:f}=Bt(E(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:v}=Bt(e,"color"),{roundedClasses:h}=qt(e),{intersectionRef:g,isIntersecting:p}=fy(),m=E(()=>parseInt(e.max,10)),y=E(()=>parseInt(e.height,10)),_=E(()=>parseFloat(e.bufferValue)/m.value*100),b=E(()=>parseFloat(r.value)/m.value*100),x=E(()=>a.value!==e.reverse),S=E(()=>e.indeterminate?"fade-transition":"slide-x-transition"),w=E(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function C(T){if(!g.value)return;const{left:A,right:P,width:D}=g.value.getBoundingClientRect(),M=x.value?D-T.clientX+(P-D):T.clientX-A;r.value=Math.round(M/D*m.value)}return ve(()=>I(e.tag,{ref:g,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&p.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},h.value,o.value,i.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Ae(y.value):0,"--v-progress-linear-height":Ae(y.value),...s.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:b.value,onClick:e.clickable&&C},{default:()=>[e.stream&&I("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[x.value?"left":"right"]:Ae(-y.value),borderTop:`${Ae(y.value/2)} dotted`,opacity:w.value,top:`calc(50% - ${Ae(y.value/4)})`,width:Ae(100-_.value,"%"),"--v-progress-linear-stream-to":Ae(y.value*(x.value?1:-1))}},null),I("div",{class:["v-progress-linear__background",c.value],style:[f.value,{opacity:w.value,width:Ae(e.stream?_.value:100,"%")}]},null),I(yi,{name:S.value},{default:()=>[e.indeterminate?I("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(T=>I("div",{key:T,class:["v-progress-linear__indeterminate",T,d.value],style:v.value},null))]):I("div",{class:["v-progress-linear__determinate",d.value],style:[v.value,{width:Ae(b.value,"%")}]},null)]}),n.default&&I("div",{class:"v-progress-linear__content"},[n.default({value:b.value,buffer:_.value})])]})),{}}}),vy=J({loading:[Boolean,String]},"loader");function Uv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{loaderClasses:E(()=>({[`${t}--loading`]:e.loading}))}}function hy(e,t){var r;let{slots:n}=t;return I("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||I(dy,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const ej=["static","relative","fixed","absolute","sticky"],Yc=J({position:{type:String,validator:e=>ej.includes(e)}},"position");function Xc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();return{positionClasses:E(()=>e.position?`${t}--${e.position}`:void 0)}}function tj(){const e=un("useRoute");return E(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function OB(){var e,t;return(t=(e=un("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Yv(e,t){const n=QU("RouterLink"),r=E(()=>!!(e.href||e.to)),a=E(()=>(r==null?void 0:r.value)||zP(t,"click")||zP(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:a,href:se(e,"href")};const i=e.to?n.useLink(e):void 0,o=tj();return{isLink:r,isClickable:a,route:i==null?void 0:i.route,navigate:i==null?void 0:i.navigate,isActive:i&&E(()=>{var s,l,u;return e.exact?o.value?((u=i.isExactActive)==null?void 0:u.value)&&io(i.route.value.query,o.value.query):(l=i.isExactActive)==null?void 0:l.value:(s=i.isActive)==null?void 0:s.value}),href:E(()=>e.to?i==null?void 0:i.route.value.href:e.href)}}const Xv=J({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let z0=!1;function nj(e,t){let n=!1,r,a;Mt&&(dt(()=>{window.addEventListener("popstate",i),r=e==null?void 0:e.beforeEach((o,s,l)=>{z0?n?t(l):l():setTimeout(()=>n?t(l):l()),z0=!0}),a=e==null?void 0:e.afterEach(()=>{z0=!1})}),nr(()=>{window.removeEventListener("popstate",i),r==null||r(),a==null||a()}));function i(o){var s;(s=o.state)!=null&&s.replaced||(n=!0,setTimeout(()=>n=!1))}}function rj(e,t){Se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&dt(()=>{t(!0)})},{immediate:!0})}const u1=Symbol("rippleStop"),aj=80;function gD(e,t){e.style.transform=t,e.style.webkitTransform=t}function c1(e){return e.constructor.name==="TouchEvent"}function NB(e){return e.constructor.name==="KeyboardEvent"}const ij=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,a=0;if(!NB(e)){const d=t.getBoundingClientRect(),v=c1(e)?e.touches[e.touches.length-1]:e;r=v.clientX-d.left,a=v.clientY-d.top}let i=0,o=.3;(f=t._ripple)!=null&&f.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(a-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?s:`${r-i}px`,c=n.center?l:`${a-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:s,centerY:l}},Fp={show(e,t){var v;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((v=t==null?void 0:t._ripple)!=null&&v.enabled))return;const r=document.createElement("span"),a=document.createElement("span");r.appendChild(a),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:s,y:l,centerX:u,centerY:c}=ij(e,t,n),f=`${i*2}px`;a.className="v-ripple__animation",a.style.width=f,a.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),a.classList.add("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--visible"),gD(a,`translate(${s}, ${l}) scale3d(${o},${o},${o})`),a.dataset.activated=String(performance.now()),setTimeout(()=>{a.classList.remove("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--in"),gD(a,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),a=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var s;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=n.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(n.parentNode)},300)},a)}};function BB(e){return typeof e>"u"||!!e}function Qd(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[u1])){if(e[u1]=!0,c1(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||NB(e),n._ripple.class&&(t.class=n._ripple.class),c1(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Fp.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},aj)}else Fp.show(e,n,t)}}function pD(e){e[u1]=!0}function Nr(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Nr(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Fp.hide(t)}}function zB(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ev=!1;function FB(e){!ev&&(e.keyCode===RP.enter||e.keyCode===RP.space)&&(ev=!0,Qd(e))}function $B(e){ev=!1,Nr(e)}function GB(e){ev&&(ev=!1,Nr(e))}function HB(e,t,n){const{value:r,modifiers:a}=t,i=BB(r);if(i||Fp.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=a.center,e._ripple.circle=a.circle,Rp(r)&&r.class&&(e._ripple.class=r.class),i&&!n){if(a.stop){e.addEventListener("touchstart",pD,{passive:!0}),e.addEventListener("mousedown",pD);return}e.addEventListener("touchstart",Qd,{passive:!0}),e.addEventListener("touchend",Nr,{passive:!0}),e.addEventListener("touchmove",zB,{passive:!0}),e.addEventListener("touchcancel",Nr),e.addEventListener("mousedown",Qd),e.addEventListener("mouseup",Nr),e.addEventListener("mouseleave",Nr),e.addEventListener("keydown",FB),e.addEventListener("keyup",$B),e.addEventListener("blur",GB),e.addEventListener("dragstart",Nr,{passive:!0})}else!i&&n&&WB(e)}function WB(e){e.removeEventListener("mousedown",Qd),e.removeEventListener("touchstart",Qd),e.removeEventListener("touchend",Nr),e.removeEventListener("touchmove",zB),e.removeEventListener("touchcancel",Nr),e.removeEventListener("mouseup",Nr),e.removeEventListener("mouseleave",Nr),e.removeEventListener("keydown",FB),e.removeEventListener("keyup",$B),e.removeEventListener("dragstart",Nr),e.removeEventListener("blur",GB)}function oj(e,t){HB(e,t,!1)}function sj(e){delete e._ripple,WB(e)}function lj(e,t){if(t.value===t.oldValue)return;const n=BB(t.oldValue);HB(e,t,n)}const lo={mounted:oj,unmounted:sj,updated:lj},hC=J({active:{type:Boolean,default:void 0},symbol:{type:null,default:vC},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Je,appendIcon:Je,block:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Yr(),...Pe(),...Cn(),...hr(),...pn(),...hu(),...vy(),...Cs(),...Yc(),...Ht(),...Xv(),...so(),...et({tag:"button"}),...vt(),...wa({variant:"elevated"})},"VBtn"),Dt=le()({name:"VBtn",directives:{Ripple:lo},props:hC(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=St(e),{borderClasses:i}=xa(e),{colorClasses:o,colorStyles:s,variantClasses:l}=du(e),{densityClasses:u}=ar(e),{dimensionStyles:c}=gr(e),{elevationClasses:f}=Vn(e),{loaderClasses:d}=Uv(e),{locationStyles:v}=Ts(e),{positionClasses:h}=Xc(e),{roundedClasses:g}=qt(e),{sizeClasses:p,sizeStyles:m}=Uc(e),y=gu(e,e.symbol,!1),_=Yv(e,n),b=E(()=>{var T;return e.active!==void 0?e.active:_.isLink.value?(T=_.isActive)==null?void 0:T.value:y==null?void 0:y.isSelected.value}),x=E(()=>(y==null?void 0:y.disabled.value)||e.disabled),S=E(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),w=E(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function C(T){var A;x.value||_.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||n.target==="_blank")||((A=_.navigate)==null||A.call(_,T),y==null||y.toggle())}return rj(_,y==null?void 0:y.select),ve(()=>{var L,R;const T=_.isLink.value?"a":e.tag,A=!!(e.prependIcon||r.prepend),P=!!(e.appendIcon||r.append),D=!!(e.icon&&e.icon!==!0),M=(y==null?void 0:y.isSelected.value)&&(!_.isLink.value||((L=_.isActive)==null?void 0:L.value))||!y||((R=_.isActive)==null?void 0:R.value);return Yt(I(T,{type:T==="a"?void 0:"button",class:["v-btn",y==null?void 0:y.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":e.block,"v-btn--disabled":x.value,"v-btn--elevated":S.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},a.value,i.value,M?o.value:void 0,u.value,f.value,d.value,h.value,g.value,p.value,l.value,e.class],style:[M?s.value:void 0,c.value,v.value,m.value,e.style],disabled:x.value||void 0,href:_.href.value,onClick:C,value:w.value},{default:()=>{var O;return[fu(!0,"v-btn"),!e.icon&&A&&I("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?I(ht,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):I(Ct,{key:"prepend-icon",icon:e.prependIcon},null)]),I("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&D?I(Ct,{key:"content-icon",icon:e.icon},null):I(ht,{key:"content-defaults",disabled:!D,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var H;return[((H=r.default)==null?void 0:H.call(r))??e.text]}})]),!e.icon&&P&&I("span",{key:"append",class:"v-btn__append"},[r.append?I(ht,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):I(Ct,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&I("span",{key:"loader",class:"v-btn__loader"},[((O=r.loader)==null?void 0:O.call(r))??I(Dc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[Mr("ripple"),!x.value&&e.ripple,null]])}),{}}}),uj=J({...hC({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),cj=le()({name:"VAppBarNavIcon",props:uj(),setup(e,t){let{slots:n}=t;return ve(()=>I(Dt,ge(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),fj=le()({name:"VAppBarTitle",props:IB(),setup(e,t){let{slots:n}=t;return ve(()=>I(lC,ge(e,{class:"v-app-bar-title"}),n)),{}}});const UB=Wr("v-alert-title"),dj=["success","info","warning","error"],vj=J({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Je,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>dj.includes(e)},...Pe(),...Cn(),...hr(),...pn(),...Cs(),...Yc(),...Ht(),...et(),...vt(),...wa({variant:"flat"})},"VAlert"),hj=le()({name:"VAlert",props:vj(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ze(e,"modelValue"),i=E(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=E(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:s}=St(e),{colorClasses:l,colorStyles:u,variantClasses:c}=du(o),{densityClasses:f}=ar(e),{dimensionStyles:d}=gr(e),{elevationClasses:v}=Vn(e),{locationStyles:h}=Ts(e),{positionClasses:g}=Xc(e),{roundedClasses:p}=qt(e),{textColorClasses:m,textColorStyles:y}=Qn(se(e,"borderColor")),{t:_}=cn(),b=E(()=>({"aria-label":_(e.closeLabel),onClick(x){a.value=!1,n("click:close",x)}}));return()=>{const x=!!(r.prepend||i.value),S=!!(r.title||e.title),w=!!(r.close||e.closable);return a.value&&I(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,f.value,v.value,g.value,p.value,c.value,e.class],style:[u.value,d.value,h.value,e.style],role:"alert"},{default:()=>{var C,T;return[fu(!1,"v-alert"),e.border&&I("div",{key:"border",class:["v-alert__border",m.value],style:y.value},null),x&&I("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?I(ht,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{density:e.density,icon:i.value,size:e.prominent?44:28}}},r.prepend):I(Ct,{key:"prepend-icon",density:e.density,icon:i.value,size:e.prominent?44:28},null)]),I("div",{class:"v-alert__content"},[S&&I(UB,{key:"title"},{default:()=>{var A;return[((A=r.title)==null?void 0:A.call(r))??e.title]}}),((C=r.text)==null?void 0:C.call(r))??e.text,(T=r.default)==null?void 0:T.call(r)]),r.append&&I("div",{key:"append",class:"v-alert__append"},[r.append()]),w&&I("div",{key:"close",class:"v-alert__close"},[r.close?I(ht,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var A;return[(A=r.close)==null?void 0:A.call(r,{props:b.value})]}}):I(Dt,ge({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},b.value),null)])]}})}}});const gj=J({start:Boolean,end:Boolean,icon:Je,image:String,text:String,...Pe(),...Cn(),...Ht(),...so(),...et(),...vt(),...wa({variant:"flat"})},"VAvatar"),ma=le()({name:"VAvatar",props:gj(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{colorClasses:a,colorStyles:i,variantClasses:o}=du(e),{densityClasses:s}=ar(e),{roundedClasses:l}=qt(e),{sizeClasses:u,sizeStyles:c}=Uc(e);return ve(()=>I(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,a.value,s.value,l.value,u.value,o.value,e.class],style:[i.value,c.value,e.style]},{default:()=>{var f;return[e.image?I(Zl,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?I(Ct,{key:"icon",icon:e.icon},null):((f=n.default)==null?void 0:f.call(n))??e.text,fu(!1,"v-avatar")]}})),{}}});const pj=J({text:String,clickable:Boolean,...Pe(),...vt()},"VLabel"),Zc=le()({name:"VLabel",props:pj(),setup(e,t){let{slots:n}=t;return ve(()=>{var r;return I("label",{class:["v-label",{"v-label--clickable":e.clickable},e.class],style:e.style},[e.text,(r=n.default)==null?void 0:r.call(n)])}),{}}});const YB=Symbol.for("vuetify:selection-control-group"),gC=J({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Je,trueIcon:Je,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:io},...Pe(),...Cn(),...vt()},"SelectionControlGroup"),mj=J({...gC({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),XB=le()({name:"VSelectionControlGroup",props:mj(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),a=rr(),i=E(()=>e.id||`v-selection-control-group-${a}`),o=E(()=>e.name||i.value),s=new Set;return Tt(YB,{modelValue:r,forceUpdate:()=>{s.forEach(l=>l())},onForceUpdate:l=>{s.add(l),nr(()=>{s.delete(l)})}}),Gt({[e.defaultsTarget]:{color:se(e,"color"),disabled:se(e,"disabled"),density:se(e,"density"),error:se(e,"error"),inline:se(e,"inline"),modelValue:r,multiple:E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:o,falseIcon:se(e,"falseIcon"),trueIcon:se(e,"trueIcon"),readonly:se(e,"readonly"),ripple:se(e,"ripple"),type:se(e,"type"),valueComparator:se(e,"valueComparator")}}),ve(()=>{var l;return I("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}}),gy=J({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Pe(),...gC()},"VSelectionControl");function yj(e){const t=nt(YB,void 0),{densityClasses:n}=ar(e),r=ze(e,"modelValue"),a=E(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),i=E(()=>e.falseValue!==void 0?e.falseValue:!1),o=E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),s=E({get(){const v=t?t.modelValue.value:r.value;return o.value?nn(v).some(h=>e.valueComparator(h,a.value)):e.valueComparator(v,a.value)},set(v){if(e.readonly)return;const h=v?a.value:i.value;let g=h;o.value&&(g=v?[...nn(r.value),h]:nn(r.value).filter(p=>!e.valueComparator(p,a.value))),t?t.modelValue.value=g:r.value=g}}),{textColorClasses:l,textColorStyles:u}=Qn(E(()=>{if(!(e.error||e.disabled))return s.value?e.color:e.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:f}=Bt(E(()=>s.value&&!e.error&&!e.disabled?e.color:void 0)),d=E(()=>s.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:a,falseValue:i,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,icon:d}}const jl=le()({name:"VSelectionControl",directives:{Ripple:lo},inheritAttrs:!1,props:gy(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:a,densityClasses:i,icon:o,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,trueValue:d}=yj(e),v=rr(),h=E(()=>e.id||`input-${v}`),g=xe(!1),p=xe(!1),m=pe();a==null||a.onForceUpdate(()=>{m.value&&(m.value.checked=s.value)});function y(x){g.value=!0,Ac(x.target,":focus-visible")!==!1&&(p.value=!0)}function _(){g.value=!1,p.value=!1}function b(x){e.readonly&&a&&dt(()=>a.forceUpdate()),s.value=x.target.checked}return ve(()=>{var T,A;const x=r.label?r.label({label:e.label,props:{for:h.value}}):e.label,[S,w]=Ss(n),C=I("input",ge({ref:m,checked:s.value,disabled:!!(e.readonly||e.disabled),id:h.value,onBlur:_,onFocus:y,onInput:b,"aria-disabled":!!(e.readonly||e.disabled),type:e.type,value:d.value,name:e.name,"aria-checked":e.type==="checkbox"?s.value:void 0},w),null);return I("div",ge({class:["v-selection-control",{"v-selection-control--dirty":s.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":p.value,"v-selection-control--inline":e.inline},i.value,e.class]},S,{style:e.style}),[I("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(T=r.default)==null?void 0:T.call(r,{backgroundColorClasses:c,backgroundColorStyles:f}),Yt(I("div",{class:["v-selection-control__input"]},[((A=r.input)==null?void 0:A.call(r,{model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,inputNode:C,icon:o.value,props:{onFocus:y,onBlur:_,id:h.value}}))??I(ke,null,[o.value&&I(Ct,{key:"icon",icon:o.value},null),C])]),[[Mr("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),x&&I(Zc,{for:h.value,clickable:!0,onClick:P=>P.stopPropagation()},{default:()=>[x]})])}),{isFocused:g,input:m}}}),ZB=J({indeterminate:Boolean,indeterminateIcon:{type:Je,default:"$checkboxIndeterminate"},...gy({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),ji=le()({name:"VCheckboxBtn",props:ZB(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"indeterminate"),a=ze(e,"modelValue");function i(l){r.value&&(r.value=!1)}const o=E(()=>r.value?e.indeterminateIcon:e.falseIcon),s=E(()=>r.value?e.indeterminateIcon:e.trueIcon);return ve(()=>{const l=Sn(jl.filterProps(e),["modelValue"]);return I(jl,ge(l,{modelValue:a.value,"onUpdate:modelValue":[u=>a.value=u,i],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}});function jB(e){const{t}=cn();function n(r){let{name:a}=r;const i={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],o=e[`onClick:${a}`],s=o&&i?t(`$vuetify.input.${i}`,e.label??""):void 0;return I(Ct,{icon:e[`${a}Icon`],"aria-label":s,onClick:o},null)}return{InputIcon:n}}const _j=J({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Pe(),...oo({transition:{component:cC,leaveAbsolute:!0,group:!0}})},"VMessages"),KB=le()({name:"VMessages",props:_j(),setup(e,t){let{slots:n}=t;const r=E(()=>nn(e.messages)),{textColorClasses:a,textColorStyles:i}=Qn(E(()=>e.color));return ve(()=>I(fa,{transition:e.transition,tag:"div",class:["v-messages",a.value,e.class],style:[i.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&r.value.map((o,s)=>I("div",{class:"v-messages__message",key:`${s}-${r.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),Zv=J({focused:Boolean,"onUpdate:focused":Ar()},"focus");function uo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi();const n=ze(e,"focused"),r=E(()=>({[`${t}--focused`]:n.value}));function a(){n.value=!0}function i(){n.value=!1}return{focusClasses:r,isFocused:n,focus:a,blur:i}}const qB=Symbol.for("vuetify:form"),bj=J({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Sj(e){const t=ze(e,"modelValue"),n=E(()=>e.disabled),r=E(()=>e.readonly),a=xe(!1),i=pe([]),o=pe([]);async function s(){const c=[];let f=!0;o.value=[],a.value=!0;for(const d of i.value){const v=await d.validate();if(v.length>0&&(f=!1,c.push({id:d.id,errorMessages:v})),!f&&e.fastFail)break}return o.value=c,a.value=!1,{valid:f,errors:o.value}}function l(){i.value.forEach(c=>c.reset())}function u(){i.value.forEach(c=>c.resetValidation())}return Se(i,()=>{let c=0,f=0;const d=[];for(const v of i.value)v.isValid===!1?(f++,d.push({id:v.id,errorMessages:v.errorMessages})):v.isValid===!0&&c++;o.value=d,t.value=f>0?!1:c===i.value.length?!0:null},{deep:!0}),Tt(qB,{register:c=>{let{id:f,validate:d,reset:v,resetValidation:h}=c;i.value.some(g=>g.id===f),i.value.push({id:f,validate:d,reset:v,resetValidation:h,isValid:null,errorMessages:[]})},unregister:c=>{i.value=i.value.filter(f=>f.id!==c)},update:(c,f,d)=>{const v=i.value.find(h=>h.id===c);v&&(v.isValid=f,v.errorMessages=d)},isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validateOn:se(e,"validateOn")}),{errors:o,isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validate:s,reset:l,resetValidation:u}}function py(){return nt(qB,null)}const JB=J({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Zv()},"validation");function QB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pi(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr();const r=ze(e,"modelValue"),a=E(()=>e.validationValue===void 0?r.value:e.validationValue),i=py(),o=pe([]),s=xe(!0),l=E(()=>!!(nn(r.value===""?null:r.value).length||nn(a.value===""?null:a.value).length)),u=E(()=>!!(e.disabled??(i==null?void 0:i.isDisabled.value))),c=E(()=>!!(e.readonly??(i==null?void 0:i.isReadonly.value))),f=E(()=>{var b;return(b=e.errorMessages)!=null&&b.length?nn(e.errorMessages).concat(o.value).slice(0,Math.max(0,+e.maxErrors)):o.value}),d=E(()=>{let b=(e.validateOn??(i==null?void 0:i.validateOn.value))||"input";b==="lazy"&&(b="input lazy");const x=new Set((b==null?void 0:b.split(" "))??[]);return{blur:x.has("blur")||x.has("input"),input:x.has("input"),submit:x.has("submit"),lazy:x.has("lazy")}}),v=E(()=>{var b;return e.error||(b=e.errorMessages)!=null&&b.length?!1:e.rules.length?s.value?o.value.length||d.value.lazy?null:!0:!o.value.length:!0}),h=xe(!1),g=E(()=>({[`${t}--error`]:v.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:u.value,[`${t}--readonly`]:c.value})),p=E(()=>e.name??Ge(n));qm(()=>{i==null||i.register({id:p.value,validate:_,reset:m,resetValidation:y})}),En(()=>{i==null||i.unregister(p.value)}),ln(async()=>{d.value.lazy||await _(!0),i==null||i.update(p.value,v.value,f.value)}),Ba(()=>d.value.input,()=>{Se(a,()=>{if(a.value!=null)_();else if(e.focused){const b=Se(()=>e.focused,x=>{x||_(),b()})}})}),Ba(()=>d.value.blur,()=>{Se(()=>e.focused,b=>{b||_()})}),Se(v,()=>{i==null||i.update(p.value,v.value,f.value)});function m(){r.value=null,dt(y)}function y(){s.value=!0,d.value.lazy?o.value=[]:_(!0)}async function _(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const x=[];h.value=!0;for(const S of e.rules){if(x.length>=+(e.maxErrors??1))break;const C=await(typeof S=="function"?S:()=>S)(a.value);if(C!==!0){if(C!==!1&&typeof C!="string"){console.warn(`${C} is not a valid value. Rule functions must return boolean true or a string.`);continue}x.push(C||"")}}return o.value=x,h.value=!1,s.value=b,o.value}return{errorMessages:f,isDirty:l,isDisabled:u,isReadonly:c,isPristine:s,isValid:v,isValidating:h,reset:m,resetValidation:y,validate:_,validationClasses:g}}const co=J({id:String,appendIcon:Je,centerAffix:{type:Boolean,default:!0},prependIcon:Je,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Ar(),"onClick:append":Ar(),...Pe(),...Cn(),...JB()},"VInput"),$n=le()({name:"VInput",props:{...co()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{densityClasses:i}=ar(e),{rtlClasses:o}=Rn(),{InputIcon:s}=jB(e),l=rr(),u=E(()=>e.id||`input-${l}`),c=E(()=>`${u.value}-messages`),{errorMessages:f,isDirty:d,isDisabled:v,isReadonly:h,isPristine:g,isValid:p,isValidating:m,reset:y,resetValidation:_,validate:b,validationClasses:x}=QB(e,"v-input",u),S=E(()=>({id:u,messagesId:c,isDirty:d,isDisabled:v,isReadonly:h,isPristine:g,isValid:p,isValidating:m,reset:y,resetValidation:_,validate:b})),w=E(()=>{var C;return(C=e.errorMessages)!=null&&C.length||!g.value&&f.value.length?f.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return ve(()=>{var D,M,L,R;const C=!!(r.prepend||e.prependIcon),T=!!(r.append||e.appendIcon),A=w.value.length>0,P=!e.hideDetails||e.hideDetails==="auto"&&(A||!!r.details);return I("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},i.value,o.value,x.value,e.class],style:e.style},[C&&I("div",{key:"prepend",class:"v-input__prepend"},[(D=r.prepend)==null?void 0:D.call(r,S.value),e.prependIcon&&I(s,{key:"prepend-icon",name:"prepend"},null)]),r.default&&I("div",{class:"v-input__control"},[(M=r.default)==null?void 0:M.call(r,S.value)]),T&&I("div",{key:"append",class:"v-input__append"},[e.appendIcon&&I(s,{key:"append-icon",name:"append"},null),(L=r.append)==null?void 0:L.call(r,S.value)]),P&&I("div",{class:"v-input__details"},[I(KB,{id:c.value,active:A,messages:w.value},{message:r.message}),(R=r.details)==null?void 0:R.call(r,S.value)])])}),{reset:y,resetValidation:_,validate:b,isValid:p,errorMessages:f}}}),xj=J({...co(),...Sn(ZB(),["inline"])},"VCheckbox"),wj=le()({name:"VCheckbox",inheritAttrs:!1,props:xj(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ze(e,"modelValue"),{isFocused:i,focus:o,blur:s}=uo(e),l=rr(),u=E(()=>e.id||`checkbox-${l}`);return ve(()=>{const[c,f]=Ss(n),d=$n.filterProps(e),v=ji.filterProps(e);return I($n,ge({class:["v-checkbox",e.class]},c,d,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,id:u.value,focused:i.value,style:e.style}),{...r,default:h=>{let{id:g,messagesId:p,isDisabled:m,isReadonly:y}=h;return I(ji,ge(v,{id:g.value,"aria-describedby":p.value,disabled:m.value,readonly:y.value},f,{modelValue:a.value,"onUpdate:modelValue":_=>a.value=_,onFocus:o,onBlur:s}),r)}})}),{}}});const ez=Symbol.for("vuetify:v-chip-group"),Cj=J({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:io},...Pe(),...vu({selectedClass:"v-chip--selected"}),...et(),...vt(),...wa({variant:"tonal"})},"VChipGroup"),Tj=le()({name:"VChipGroup",props:Cj(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=ws(e,ez);return Gt({VChip:{color:se(e,"color"),disabled:se(e,"disabled"),filter:se(e,"filter"),variant:se(e,"variant")}}),ve(()=>I(e.tag,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})),{}}}),Aj=J({activeClass:String,appendAvatar:String,appendIcon:Je,closable:Boolean,closeIcon:{type:Je,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Je,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Ar(),onClickOnce:Ar(),...Yr(),...Pe(),...Cn(),...pn(),...hu(),...Ht(),...Xv(),...so(),...et({tag:"span"}),...vt(),...wa({variant:"tonal"})},"VChip"),jv=le()({name:"VChip",directives:{Ripple:lo},props:Aj(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=cn(),{borderClasses:o}=xa(e),{colorClasses:s,colorStyles:l,variantClasses:u}=du(e),{densityClasses:c}=ar(e),{elevationClasses:f}=Vn(e),{roundedClasses:d}=qt(e),{sizeClasses:v}=Uc(e),{themeClasses:h}=St(e),g=ze(e,"modelValue"),p=gu(e,ez,!1),m=Yv(e,n),y=E(()=>e.link!==!1&&m.isLink.value),_=E(()=>!e.disabled&&e.link!==!1&&(!!p||e.link||m.isClickable.value)),b=E(()=>({"aria-label":i(e.closeLabel),onClick(w){w.stopPropagation(),g.value=!1,r("click:close",w)}}));function x(w){var C;r("click",w),_.value&&((C=m.navigate)==null||C.call(m,w),p==null||p.toggle())}function S(w){(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),x(w))}return()=>{const w=m.isLink.value?"a":e.tag,C=!!(e.appendIcon||e.appendAvatar),T=!!(C||a.append),A=!!(a.close||e.closable),P=!!(a.filter||e.filter)&&p,D=!!(e.prependIcon||e.prependAvatar),M=!!(D||a.prepend),L=!p||p.isSelected.value;return g.value&&Yt(I(w,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":_.value,"v-chip--filter":P,"v-chip--pill":e.pill},h.value,o.value,L?s.value:void 0,c.value,f.value,d.value,v.value,u.value,p==null?void 0:p.selectedClass.value,e.class],style:[L?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:m.href.value,tabindex:_.value?0:void 0,onClick:x,onKeydown:_.value&&!y.value&&S},{default:()=>{var R;return[fu(_.value,"v-chip"),P&&I(fC,{key:"filter"},{default:()=>[Yt(I("div",{class:"v-chip__filter"},[a.filter?I(ht,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},a.filter):I(Ct,{key:"filter-icon",icon:e.filterIcon},null)]),[[Ya,p.isSelected.value]])]}),M&&I("div",{key:"prepend",class:"v-chip__prepend"},[a.prepend?I(ht,{key:"prepend-defaults",disabled:!D,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},a.prepend):I(ke,null,[e.prependIcon&&I(Ct,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&I(ma,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),I("div",{class:"v-chip__content"},[((R=a.default)==null?void 0:R.call(a,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:e.disabled}))??e.text]),T&&I("div",{key:"append",class:"v-chip__append"},[a.append?I(ht,{key:"append-defaults",disabled:!C,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},a.append):I(ke,null,[e.appendIcon&&I(Ct,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&I(ma,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),A&&I("button",ge({key:"close",class:"v-chip__close",type:"button"},b.value),[a.close?I(ht,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},a.close):I(Ct,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[Mr("ripple"),_.value&&e.ripple,null]])}}});const f1=Symbol.for("vuetify:list");function tz(){const e=nt(f1,{hasPrepend:xe(!1),updateHasPrepend:()=>null}),t={hasPrepend:xe(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Tt(f1,t),e}function nz(){return nt(f1,null)}const Ij={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){const i=new Set;i.add(t);let o=a.get(t);for(;o!=null;)i.add(o),o=a.get(o);return i}else return r.delete(t),r},select:()=>null},rz={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){let i=a.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=a.get(i);return r}else r.delete(t);return r},select:()=>null},Pj={open:rz.open,select:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(!n)return r;const i=[];let o=a.get(t);for(;o!=null;)i.push(o),o=a.get(o);return new Set(i)}},pC=e=>{const t={select:n=>{let{id:r,value:a,selected:i}=n;if(r=rt(r),e&&!a){const o=Array.from(i.entries()).reduce((s,l)=>{let[u,c]=l;return c==="on"?[...s,u]:s},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,a?"on":"off"),i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:n=>{const r=[];for(const[a,i]of n.entries())i==="on"&&r.push(a);return r}};return t},az=e=>{const t=pC(e);return{select:r=>{let{selected:a,id:i,...o}=r;i=rt(i);const s=a.has(i)?new Map([[i,a.get(i)]]):new Map;return t.select({...o,id:i,selected:s})},in:(r,a,i)=>{let o=new Map;return r!=null&&r.length&&(o=t.in(r.slice(0,1),a,i)),o},out:(r,a,i)=>t.out(r,a,i)}},Dj=e=>{const t=pC(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=rt(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},Mj=e=>{const t=az(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=rt(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},kj=e=>{const t={select:n=>{let{id:r,value:a,selected:i,children:o,parents:s}=n;r=rt(r);const l=new Map(i),u=[r];for(;u.length;){const f=u.shift();i.set(f,a?"on":"off"),o.has(f)&&u.push(...o.get(f))}let c=s.get(r);for(;c;){const f=o.get(c),d=f.every(h=>i.get(h)==="on"),v=f.every(h=>!i.has(h)||i.get(h)==="off");i.set(c,d?"on":v?"off":"indeterminate"),c=s.get(c)}return e&&!a&&Array.from(i.entries()).reduce((d,v)=>{let[h,g]=v;return g==="on"?[...d,h]:d},[]).length===0?l:i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:(n,r)=>{const a=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&a.push(i);return a}};return t},tv=Symbol.for("vuetify:nested"),iz={id:xe(),root:{register:()=>null,unregister:()=>null,parents:pe(new Map),children:pe(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:pe(new Set),selected:pe(new Map),selectedValues:pe([])}},Lj=J({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),Ej=e=>{let t=!1;const n=pe(new Map),r=pe(new Map),a=ze(e,"opened",e.opened,f=>new Set(f),f=>[...f.values()]),i=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return Mj(e.mandatory);case"leaf":return Dj(e.mandatory);case"independent":return pC(e.mandatory);case"single-independent":return az(e.mandatory);case"classic":default:return kj(e.mandatory)}}),o=E(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Pj;case"single":return Ij;case"multiple":default:return rz}}),s=ze(e,"selected",e.selected,f=>i.value.in(f,n.value,r.value),f=>i.value.out(f,n.value,r.value));En(()=>{t=!0});function l(f){const d=[];let v=f;for(;v!=null;)d.unshift(v),v=r.value.get(v);return d}const u=un("nested"),c={id:xe(),root:{opened:a,selected:s,selectedValues:E(()=>{const f=[];for(const[d,v]of s.value.entries())v==="on"&&f.push(d);return f}),register:(f,d,v)=>{d&&f!==d&&r.value.set(f,d),v&&n.value.set(f,[]),d!=null&&n.value.set(d,[...n.value.get(d)||[],f])},unregister:f=>{if(t)return;n.value.delete(f);const d=r.value.get(f);if(d){const v=n.value.get(d)??[];n.value.set(d,v.filter(h=>h!==f))}r.value.delete(f),a.value.delete(f)},open:(f,d,v)=>{u.emit("click:open",{id:f,value:d,path:l(f),event:v});const h=o.value.open({id:f,value:d,opened:new Set(a.value),children:n.value,parents:r.value,event:v});h&&(a.value=h)},openOnSelect:(f,d,v)=>{const h=o.value.select({id:f,value:d,selected:new Map(s.value),opened:new Set(a.value),children:n.value,parents:r.value,event:v});h&&(a.value=h)},select:(f,d,v)=>{u.emit("click:select",{id:f,value:d,path:l(f),event:v});const h=i.value.select({id:f,value:d,selected:new Map(s.value),children:n.value,parents:r.value,event:v});h&&(s.value=h),c.root.openOnSelect(f,d,v)},children:n,parents:r}};return Tt(tv,c),c.root},oz=(e,t)=>{const n=nt(tv,iz),r=Symbol(rr()),a=E(()=>e.value!==void 0?e.value:r),i={...n,id:a,open:(o,s)=>n.root.open(a.value,o,s),openOnSelect:(o,s)=>n.root.openOnSelect(a.value,o,s),isOpen:E(()=>n.root.opened.value.has(a.value)),parent:E(()=>n.root.parents.value.get(a.value)),select:(o,s)=>n.root.select(a.value,o,s),isSelected:E(()=>n.root.selected.value.get(rt(a.value))==="on"),isIndeterminate:E(()=>n.root.selected.value.get(a.value)==="indeterminate"),isLeaf:E(()=>!n.root.children.value.get(a.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(a.value,n.id.value,t),En(()=>{!n.isGroupActivator&&n.root.unregister(a.value)}),t&&Tt(tv,i),i},Rj=()=>{const e=nt(tv,iz);Tt(tv,{...e,isGroupActivator:!0})},Vj=Hr({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Rj(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),Oj=J({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Je,default:"$collapse"},expandIcon:{type:Je,default:"$expand"},prependIcon:Je,appendIcon:Je,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Pe(),...et()},"VListGroup"),d1=le()({name:"VListGroup",props:Oj(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:a,id:i}=oz(se(e,"value"),!0),o=E(()=>`v-list-group--id-${String(i.value)}`),s=nz(),{isBooted:l}=cu();function u(v){a(!r.value,v)}const c=E(()=>({onClick:u,class:"v-list-group__header",id:o.value})),f=E(()=>r.value?e.collapseIcon:e.expandIcon),d=E(()=>({VListItem:{active:r.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&f.value,appendIcon:e.appendIcon||!e.subgroup&&f.value,title:e.title,value:e.value}}));return ve(()=>I(e.tag,{class:["v-list-group",{"v-list-group--prepend":s==null?void 0:s.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class],style:e.style},{default:()=>[n.activator&&I(ht,{defaults:d.value},{default:()=>[I(Vj,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),I(fa,{transition:{component:cy},disabled:!l.value},{default:()=>{var v;return[Yt(I("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)]),[[Ya,r.value]])]}})]})),{}}});const sz=Wr("v-list-item-subtitle"),lz=Wr("v-list-item-title"),Nj=J({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Je,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Je,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Ar(),onClickOnce:Ar(),...Yr(),...Pe(),...Cn(),...hr(),...pn(),...Ht(),...Xv(),...et(),...vt(),...wa({variant:"text"})},"VListItem"),Ki=le()({name:"VListItem",directives:{Ripple:lo},props:Nj(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const i=Yv(e,n),o=E(()=>e.value===void 0?i.href.value:e.value),{select:s,isSelected:l,isIndeterminate:u,isGroupActivator:c,root:f,parent:d,openOnSelect:v}=oz(o,!1),h=nz(),g=E(()=>{var V;return e.active!==!1&&(e.active||((V=i.isActive)==null?void 0:V.value)||l.value)}),p=E(()=>e.link!==!1&&i.isLink.value),m=E(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||e.value!=null&&!!h)),y=E(()=>e.rounded||e.nav),_=E(()=>e.color??e.activeColor),b=E(()=>({color:g.value?_.value??e.baseColor:e.baseColor,variant:e.variant}));Se(()=>{var V;return(V=i.isActive)==null?void 0:V.value},V=>{V&&d.value!=null&&f.open(d.value,!0),V&&v(V)},{immediate:!0});const{themeClasses:x}=St(e),{borderClasses:S}=xa(e),{colorClasses:w,colorStyles:C,variantClasses:T}=du(b),{densityClasses:A}=ar(e),{dimensionStyles:P}=gr(e),{elevationClasses:D}=Vn(e),{roundedClasses:M}=qt(y),L=E(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),R=E(()=>({isActive:g.value,select:s,isSelected:l.value,isIndeterminate:u.value}));function O(V){var G;a("click",V),!(c||!m.value)&&((G=i.navigate)==null||G.call(i,V),e.value!=null&&s(!l.value,V))}function H(V){(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),O(V))}return ve(()=>{const V=p.value?"a":e.tag,G=r.title||e.title!=null,X=r.subtitle||e.subtitle!=null,Z=!!(e.appendAvatar||e.appendIcon),q=!!(Z||r.append),Q=!!(e.prependAvatar||e.prependIcon),ae=!!(Q||r.prepend);return h==null||h.updateHasPrepend(ae),e.activeColor&&X9("active-color",["color","base-color"]),Yt(I(V,{class:["v-list-item",{"v-list-item--active":g.value,"v-list-item--disabled":e.disabled,"v-list-item--link":m.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!ae&&(h==null?void 0:h.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&g.value},x.value,S.value,w.value,A.value,D.value,L.value,M.value,T.value,e.class],style:[C.value,P.value,e.style],href:i.href.value,tabindex:m.value?h?-2:0:void 0,onClick:O,onKeydown:m.value&&!p.value&&H},{default:()=>{var W;return[fu(m.value||g.value,"v-list-item"),ae&&I("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?I(ht,{key:"prepend-defaults",disabled:!Q,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var F;return[(F=r.prepend)==null?void 0:F.call(r,R.value)]}}):I(ke,null,[e.prependAvatar&&I(ma,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(Ct,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),I("div",{class:"v-list-item__spacer"},null)]),I("div",{class:"v-list-item__content","data-no-activator":""},[G&&I(lz,{key:"title"},{default:()=>{var F;return[((F=r.title)==null?void 0:F.call(r,{title:e.title}))??e.title]}}),X&&I(sz,{key:"subtitle"},{default:()=>{var F;return[((F=r.subtitle)==null?void 0:F.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(W=r.default)==null?void 0:W.call(r,R.value)]),q&&I("div",{key:"append",class:"v-list-item__append"},[r.append?I(ht,{key:"append-defaults",disabled:!Z,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var F;return[(F=r.append)==null?void 0:F.call(r,R.value)]}}):I(ke,null,[e.appendIcon&&I(Ct,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(ma,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),I("div",{class:"v-list-item__spacer"},null)])]}}),[[Mr("ripple"),m.value&&e.ripple]])}),{}}}),Bj=J({color:String,inset:Boolean,sticky:Boolean,title:String,...Pe(),...et()},"VListSubheader"),uz=le()({name:"VListSubheader",props:Bj(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Qn(se(e,"color"));return ve(()=>{const i=!!(n.default||e.title);return I(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class],style:[{textColorStyles:a},e.style]},{default:()=>{var o;return[i&&I("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}});const zj=J({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...Pe(),...vt()},"VDivider"),my=le()({name:"VDivider",props:zj(),setup(e,t){let{attrs:n}=t;const{themeClasses:r}=St(e),{textColorClasses:a,textColorStyles:i}=Qn(se(e,"color")),o=E(()=>{const s={};return e.length&&(s[e.vertical?"maxHeight":"maxWidth"]=Ae(e.length)),e.thickness&&(s[e.vertical?"borderRightWidth":"borderTopWidth"]=Ae(e.thickness)),s});return ve(()=>I("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},r.value,a.value,e.class],style:[o.value,i.value,e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null)),{}}}),Fj=J({items:Array,returnObject:Boolean},"VListChildren"),cz=le()({name:"VListChildren",props:Fj(),setup(e,t){let{slots:n}=t;return tz(),()=>{var r,a;return((r=n.default)==null?void 0:r.call(n))??((a=e.items)==null?void 0:a.map(i=>{var d,v;let{children:o,props:s,type:l,raw:u}=i;if(l==="divider")return((d=n.divider)==null?void 0:d.call(n,{props:s}))??I(my,s,null);if(l==="subheader")return((v=n.subheader)==null?void 0:v.call(n,{props:s}))??I(uz,s,null);const c={subtitle:n.subtitle?h=>{var g;return(g=n.subtitle)==null?void 0:g.call(n,{...h,item:u})}:void 0,prepend:n.prepend?h=>{var g;return(g=n.prepend)==null?void 0:g.call(n,{...h,item:u})}:void 0,append:n.append?h=>{var g;return(g=n.append)==null?void 0:g.call(n,{...h,item:u})}:void 0,title:n.title?h=>{var g;return(g=n.title)==null?void 0:g.call(n,{...h,item:u})}:void 0},f=d1.filterProps(s);return o?I(d1,ge({value:s==null?void 0:s.value},f),{activator:h=>{let{props:g}=h;const p={...s,...g,value:e.returnObject?u:s.value};return n.header?n.header({props:p}):I(Ki,p,c)},default:()=>I(cz,{items:o},n)}):n.item?n.item({props:s}):I(Ki,ge(s,{value:e.returnObject?u:s.value}),c)}))}}}),fz=J({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:io}},"list-items");function _l(e,t){const n=Dn(t,e.itemTitle,t),r=Dn(t,e.itemValue,n),a=Dn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Sn(t,["children"]):t:void 0:Dn(t,e.itemProps),o={title:n,value:r,...i};return{title:String(o.title??""),value:o.value,props:o,children:Array.isArray(a)?dz(e,a):void 0,raw:t}}function dz(e,t){const n=[];for(const r of t)n.push(_l(e,r));return n}function mC(e){const t=E(()=>dz(e,e.items)),n=E(()=>t.value.some(i=>i.value===null));function r(i){return n.value||(i=i.filter(o=>o!==null)),i.map(o=>e.returnObject&&typeof o=="string"?_l(e,o):t.value.find(s=>e.valueComparator(o,s.value))||_l(e,o))}function a(i){return e.returnObject?i.map(o=>{let{raw:s}=o;return s}):i.map(o=>{let{value:s}=o;return s})}return{items:t,transformIn:r,transformOut:a}}function $j(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Gj(e,t){const n=Dn(t,e.itemType,"item"),r=$j(t)?t:Dn(t,e.itemTitle),a=Dn(t,e.itemValue,void 0),i=Dn(t,e.itemChildren),o=e.itemProps===!0?Sn(t,["children"]):Dn(t,e.itemProps),s={title:r,value:a,...o};return{type:n,title:s.title,value:s.value,props:s,children:n==="item"&&i?vz(e,i):void 0,raw:t}}function vz(e,t){const n=[];for(const r of t)n.push(Gj(e,r));return n}function Hj(e){return{items:E(()=>vz(e,e.items))}}const Wj=J({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,...Lj({selectStrategy:"single-leaf",openStrategy:"list"}),...Yr(),...Pe(),...Cn(),...hr(),...pn(),itemType:{type:String,default:"type"},...fz(),...Ht(),...et(),...vt(),...wa({variant:"text"})},"VList"),yy=le()({name:"VList",props:Wj(),emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=Hj(e),{themeClasses:a}=St(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Bt(se(e,"bgColor")),{borderClasses:s}=xa(e),{densityClasses:l}=ar(e),{dimensionStyles:u}=gr(e),{elevationClasses:c}=Vn(e),{roundedClasses:f}=qt(e),{open:d,select:v}=Ej(e),h=E(()=>e.lines?`v-list--${e.lines}-line`:void 0),g=se(e,"activeColor"),p=se(e,"baseColor"),m=se(e,"color");tz(),Gt({VListGroup:{activeColor:g,baseColor:p,color:m},VListItem:{activeClass:se(e,"activeClass"),activeColor:g,baseColor:p,color:m,density:se(e,"density"),disabled:se(e,"disabled"),lines:se(e,"lines"),nav:se(e,"nav"),slim:se(e,"slim"),variant:se(e,"variant")}});const y=xe(!1),_=pe();function b(A){y.value=!0}function x(A){y.value=!1}function S(A){var P;!y.value&&!(A.relatedTarget&&((P=_.value)!=null&&P.contains(A.relatedTarget)))&&T()}function w(A){if(_.value){if(A.key==="ArrowDown")T("next");else if(A.key==="ArrowUp")T("prev");else if(A.key==="Home")T("first");else if(A.key==="End")T("last");else return;A.preventDefault()}}function C(A){y.value=!0}function T(A){if(_.value)return Tc(_.value,A)}return ve(()=>I(e.tag,{ref:_,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},a.value,i.value,s.value,l.value,c.value,h.value,f.value,e.class],style:[o.value,u.value,e.style],tabindex:e.disabled||y.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:b,onFocusout:x,onFocus:S,onKeydown:w,onMousedown:C},{default:()=>[I(cz,{items:r.value,returnObject:e.returnObject},n)]})),{open:d,select:v,focus:T}}}),Uj=Wr("v-list-img"),Yj=J({start:Boolean,end:Boolean,...Pe(),...et()},"VListItemAction"),Xj=le()({name:"VListItemAction",props:Yj(),setup(e,t){let{slots:n}=t;return ve(()=>I(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),Zj=J({start:Boolean,end:Boolean,...Pe(),...et()},"VListItemMedia"),jj=le()({name:"VListItemMedia",props:Zj(),setup(e,t){let{slots:n}=t;return ve(()=>I(e.tag,{class:["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class],style:e.style},n)),{}}});function F0(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Kj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mD(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,a=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return F0({x:a,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,a=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return F0({x:a,y:i},t)}return F0({x:t.width/2,y:t.height/2},t)}const hz={static:Qj,connected:tK},qj=J({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in hz},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Jj(e,t){const n=pe({}),r=pe();Mt&&Ba(()=>!!(t.isActive.value&&e.locationStrategy),i=>{var o,s;Se(()=>e.locationStrategy,i),nr(()=>{window.removeEventListener("resize",a),r.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(o=e.locationStrategy(t,e,n))==null?void 0:o.updateLocation:r.value=(s=hz[e.locationStrategy](t,e,n))==null?void 0:s.updateLocation});function a(i){var o;(o=r.value)==null||o.call(r,i)}return{contentStyles:n,updateLocation:r}}function Qj(){}function eK(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=qw(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function tK(e,t,n){(Array.isArray(e.target.value)||hX(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:i}=jw(()=>{const h=qS(t.location,e.isRtl.value),g=t.origin==="overlap"?h:t.origin==="auto"?O0(h):qS(t.origin,e.isRtl.value);return h.side===g.side&&h.align===N0(g).align?{preferredAnchor:FP(h),preferredOrigin:FP(g)}:{preferredAnchor:h,preferredOrigin:g}}),[o,s,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(h=>E(()=>{const g=parseFloat(t[h]);return isNaN(g)?1/0:g})),c=E(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const h=t.offset.split(" ").map(parseFloat);return h.length<2&&h.push(0),h}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1;const d=new ResizeObserver(()=>{f&&v()});Se([e.target,e.contentEl],(h,g)=>{let[p,m]=h,[y,_]=g;y&&!Array.isArray(y)&&d.unobserve(y),p&&!Array.isArray(p)&&d.observe(p),_&&d.unobserve(_),m&&d.observe(m)},{immediate:!0}),nr(()=>{d.disconnect()});function v(){if(f=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>f=!0)}),!e.target.value||!e.contentEl.value)return;const h=eB(e.target.value),g=eK(e.contentEl.value,e.isRtl.value),p=Np(e.contentEl.value),m=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const y=p.reduce((P,D)=>{const M=D.getBoundingClientRect(),L=new El({x:D===document.documentElement?0:M.x,y:D===document.documentElement?0:M.y,width:D.clientWidth,height:D.clientHeight});return P?new El({x:Math.max(P.left,L.left),y:Math.max(P.top,L.top),width:Math.min(P.right,L.right)-Math.max(P.left,L.left),height:Math.min(P.bottom,L.bottom)-Math.max(P.top,L.top)}):L},void 0);y.x+=m,y.y+=m,y.width-=m*2,y.height-=m*2;let _={anchor:a.value,origin:i.value};function b(P){const D=new El(g),M=mD(P.anchor,h),L=mD(P.origin,D);let{x:R,y:O}=Kj(M,L);switch(P.anchor.side){case"top":O-=c.value[0];break;case"bottom":O+=c.value[0];break;case"left":R-=c.value[0];break;case"right":R+=c.value[0];break}switch(P.anchor.align){case"top":O-=c.value[1];break;case"bottom":O+=c.value[1];break;case"left":R-=c.value[1];break;case"right":R+=c.value[1];break}return D.x+=R,D.y+=O,D.width=Math.min(D.width,l.value),D.height=Math.min(D.height,u.value),{overflows:GP(D,y),x:R,y:O}}let x=0,S=0;const w={x:0,y:0},C={x:!1,y:!1};let T=-1;for(;!(T++>10);){const{x:P,y:D,overflows:M}=b(_);x+=P,S+=D,g.x+=P,g.y+=D;{const L=$P(_.anchor),R=M.x.before||M.x.after,O=M.y.before||M.y.after;let H=!1;if(["x","y"].forEach(V=>{if(V==="x"&&R&&!C.x||V==="y"&&O&&!C.y){const G={anchor:{..._.anchor},origin:{..._.origin}},X=V==="x"?L==="y"?N0:O0:L==="y"?O0:N0;G.anchor=X(G.anchor),G.origin=X(G.origin);const{overflows:Z}=b(G);(Z[V].before<=M[V].before&&Z[V].after<=M[V].after||Z[V].before+Z[V].after<(M[V].before+M[V].after)/2)&&(_=G,H=C[V]=!0)}}),H)continue}M.x.before&&(x+=M.x.before,g.x+=M.x.before),M.x.after&&(x-=M.x.after,g.x-=M.x.after),M.y.before&&(S+=M.y.before,g.y+=M.y.before),M.y.after&&(S-=M.y.after,g.y-=M.y.after);{const L=GP(g,y);w.x=y.width-L.x.before-L.x.after,w.y=y.height-L.y.before-L.y.after,x+=L.x.before,g.x+=L.x.before,S+=L.y.before,g.y+=L.y.before}break}const A=$P(_.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${_.anchor.side} ${_.anchor.align}`,transformOrigin:`${_.origin.side} ${_.origin.align}`,top:Ae($0(S)),left:e.isRtl.value?void 0:Ae($0(x)),right:e.isRtl.value?Ae($0(-x)):void 0,minWidth:Ae(A==="y"?Math.min(o.value,h.width):o.value),maxWidth:Ae(yD(vn(w.x,o.value===1/0?0:o.value,l.value))),maxHeight:Ae(yD(vn(w.y,s.value===1/0?0:s.value,u.value)))}),{available:w,contentBox:g}}return Se(()=>[a.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>v()),dt(()=>{const h=v();if(!h)return;const{available:g,contentBox:p}=h;p.height>g.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function $0(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function yD(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let v1=!0;const $p=[];function nK(e){!v1||$p.length?($p.push(e),h1()):(v1=!1,e(),h1())}let _D=-1;function h1(){cancelAnimationFrame(_D),_D=requestAnimationFrame(()=>{const e=$p.shift();e&&e(),$p.length?h1():v1=!0})}const jg={none:null,close:iK,block:oK,reposition:sK},rK=J({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in jg}},"VOverlay-scroll-strategies");function aK(e,t){if(!Mt)return;let n;Ln(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=$c(),await dt(),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=jg[e.scrollStrategy])==null||r.call(jg,t,e,n)}))}),nr(()=>{n==null||n.stop()})}function iK(e){function t(n){e.isActive.value=!1}gz(e.targetEl.value??e.contentEl.value,t)}function oK(e,t){var o;const n=(o=e.root.value)==null?void 0:o.offsetParent,r=[...new Set([...Np(e.targetEl.value,t.contained?n:void 0),...Np(e.contentEl.value,t.contained?n:void 0)])].filter(s=>!s.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,i=(s=>nC(s)&&s)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((s,l)=>{s.style.setProperty("--v-body-scroll-x",Ae(-s.scrollLeft)),s.style.setProperty("--v-body-scroll-y",Ae(-s.scrollTop)),s!==document.documentElement&&s.style.setProperty("--v-scrollbar-offset",Ae(a)),s.classList.add("v-overlay-scroll-blocked")}),nr(()=>{r.forEach((s,l)=>{const u=parseFloat(s.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(s.style.getPropertyValue("--v-body-scroll-y"));s.style.removeProperty("--v-body-scroll-x"),s.style.removeProperty("--v-body-scroll-y"),s.style.removeProperty("--v-scrollbar-offset"),s.classList.remove("v-overlay-scroll-blocked"),s.scrollLeft=-u,s.scrollTop=-c}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function sK(e,t,n){let r=!1,a=-1,i=-1;function o(s){nK(()=>{var c,f;const l=performance.now();(f=(c=e.updateLocation).value)==null||f.call(c,s),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?s=>s():requestIdleCallback)(()=>{n.run(()=>{gz(e.targetEl.value??e.contentEl.value,s=>{r?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{o(s)})})):o(s)})})}),nr(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(a)})}function gz(e,t){const n=[document,...Np(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),nr(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const g1=Symbol.for("vuetify:v-menu"),pz=J({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function mz(e,t){let n=()=>{};function r(o){n==null||n();const s=Number(o?e.openDelay:e.closeDelay);return new Promise(l=>{n=O9(s,()=>{t==null||t(o),l(o)})})}function a(){return r(!0)}function i(){return r(!1)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:i}}const lK=J({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...pz()},"VOverlay-activator");function uK(e,t){let{isActive:n,isTop:r}=t;const a=un("useActivator"),i=pe();let o=!1,s=!1,l=!0;const u=E(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),c=E(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:f,runCloseDelay:d}=mz(e,w=>{w===(e.openOnHover&&o||u.value&&s)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==w&&(l=!0),n.value=w)}),v=pe(),h={onClick:w=>{w.stopPropagation(),i.value=w.currentTarget||w.target,n.value||(v.value=[w.clientX,w.clientY]),n.value=!n.value},onMouseenter:w=>{var C;(C=w.sourceCapabilities)!=null&&C.firesTouchEvents||(o=!0,i.value=w.currentTarget||w.target,f())},onMouseleave:w=>{o=!1,d()},onFocus:w=>{Ac(w.target,":focus-visible")!==!1&&(s=!0,w.stopPropagation(),i.value=w.currentTarget||w.target,f())},onBlur:w=>{s=!1,w.stopPropagation(),d()}},g=E(()=>{const w={};return c.value&&(w.onClick=h.onClick),e.openOnHover&&(w.onMouseenter=h.onMouseenter,w.onMouseleave=h.onMouseleave),u.value&&(w.onFocus=h.onFocus,w.onBlur=h.onBlur),w}),p=E(()=>{const w={};if(e.openOnHover&&(w.onMouseenter=()=>{o=!0,f()},w.onMouseleave=()=>{o=!1,d()}),u.value&&(w.onFocusin=()=>{s=!0,f()},w.onFocusout=()=>{s=!1,d()}),e.closeOnContentClick){const C=nt(g1,null);w.onClick=()=>{n.value=!1,C==null||C.closeParents()}}return w}),m=E(()=>{const w={};return e.openOnHover&&(w.onMouseenter=()=>{l&&(o=!0,l=!1,f())},w.onMouseleave=()=>{o=!1,d()}),w});Se(r,w=>{w&&(e.openOnHover&&!o&&(!u.value||!s)||u.value&&!s&&(!e.openOnHover||!o))&&(n.value=!1)}),Se(n,w=>{w||setTimeout(()=>{v.value=void 0})},{flush:"post"});const y=pe();Ln(()=>{y.value&&dt(()=>{i.value=jd(y.value)})});const _=pe(),b=E(()=>e.target==="cursor"&&v.value?v.value:_.value?jd(_.value):yz(e.target,a)||i.value),x=E(()=>Array.isArray(b.value)?void 0:b.value);let S;return Se(()=>!!e.activator,w=>{w&&Mt?(S=$c(),S.run(()=>{cK(e,a,{activatorEl:i,activatorEvents:g})})):S&&S.stop()},{flush:"post",immediate:!0}),nr(()=>{S==null||S.stop()}),{activatorEl:i,activatorRef:y,target:b,targetEl:x,targetRef:_,activatorEvents:g,contentEvents:p,scrimEvents:m}}function cK(e,t,n){let{activatorEl:r,activatorEvents:a}=n;Se(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=s(u);c&&o(c)}l&&dt(()=>i())},{immediate:!0}),Se(()=>e.activatorProps,()=>{i()}),nr(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&B9(l,ge(a.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&z9(l,ge(a.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=yz(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function yz(e,t){var r,a;if(!e)return;let n;if(e==="parent"){let i=(a=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:a.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function _z(){if(!Mt)return xe(!1);const{ssr:e}=xs();if(e){const t=xe(!1);return ln(()=>{t.value=!0}),t}else return xe(!0)}const _y=J({eager:Boolean},"lazy");function yC(e,t){const n=xe(!1),r=E(()=>n.value||e.eager||t.value);Se(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:a}}function jc(){const t=un("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const bD=Symbol.for("vuetify:stack"),bf=In([]);function fK(e,t,n){const r=un("useStack"),a=!n,i=nt(bD,void 0),o=In({activeChildren:new Set});Tt(bD,o);const s=xe(+t.value);Ba(e,()=>{var f;const c=(f=bf.at(-1))==null?void 0:f[1];s.value=c?c+10:+t.value,a&&bf.push([r.uid,s.value]),i==null||i.activeChildren.add(r.uid),nr(()=>{if(a){const d=rt(bf).findIndex(v=>v[0]===r.uid);bf.splice(d,1)}i==null||i.activeChildren.delete(r.uid)})});const l=xe(!0);a&&Ln(()=>{var f;const c=((f=bf.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>l.value=c)});const u=E(()=>!o.activeChildren.size);return{globalTop:Ov(l),localTop:u,stackStyles:E(()=>({zIndex:s.value}))}}function dK(e){return{teleportTarget:E(()=>{const n=e.value;if(n===!0||!Mt)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let a=r.querySelector(":scope > .v-overlay-container");return a||(a=document.createElement("div"),a.className="v-overlay-container",r.appendChild(a)),a})}}function vK(){return!0}function bz(e,t,n){if(!e||Sz(e,n)===!1)return!1;const r=dB(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(i=>i==null?void 0:i.contains(e.target))}function Sz(e,t){return(typeof t.value=="object"&&t.value.closeConditional||vK)(e)}function hK(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&bz(e,t,n)&&setTimeout(()=>{Sz(e,n)&&r&&r(e)},0)}function SD(e,t){const n=dB(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const xz={mounted(e,t){const n=a=>hK(a,e,t),r=a=>{e._clickOutside.lastMousedownWasOutside=bz(a,e,t)};SD(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(SD(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function gK(e){const{modelValue:t,color:n,...r}=e;return I(yi,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&I("div",ge({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const Kv=J({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...lK(),...Pe(),...hr(),..._y(),...qj(),...rK(),...vt(),...oo()},"VOverlay"),bi=le()({name:"VOverlay",directives:{ClickOutside:xz},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Kv()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:a}=t;const i=ze(e,"modelValue"),o=E({get:()=>i.value,set:Q=>{Q&&e.disabled||(i.value=Q)}}),{teleportTarget:s}=dK(E(()=>e.attach||e.contained)),{themeClasses:l}=St(e),{rtlClasses:u,isRtl:c}=Rn(),{hasContent:f,onAfterLeave:d}=yC(e,o),v=Bt(E(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:h,localTop:g,stackStyles:p}=fK(o,se(e,"zIndex"),e._disableGlobalStack),{activatorEl:m,activatorRef:y,target:_,targetEl:b,targetRef:x,activatorEvents:S,contentEvents:w,scrimEvents:C}=uK(e,{isActive:o,isTop:g}),{dimensionStyles:T}=gr(e),A=_z(),{scopeId:P}=jc();Se(()=>e.disabled,Q=>{Q&&(o.value=!1)});const D=pe(),M=pe(),{contentStyles:L,updateLocation:R}=Jj(e,{isRtl:c,contentEl:M,target:_,isActive:o});aK(e,{root:D,contentEl:M,targetEl:b,isActive:o,updateLocation:R});function O(Q){a("click:outside",Q),e.persistent?Z():o.value=!1}function H(){return o.value&&h.value}Mt&&Se(o,Q=>{Q?window.addEventListener("keydown",V):window.removeEventListener("keydown",V)},{immediate:!0}),En(()=>{Mt&&window.removeEventListener("keydown",V)});function V(Q){var ae,W;Q.key==="Escape"&&h.value&&(e.persistent?Z():(o.value=!1,(ae=M.value)!=null&&ae.contains(document.activeElement)&&((W=m.value)==null||W.focus())))}const G=OB();Ba(()=>e.closeOnBack,()=>{nj(G,Q=>{h.value&&o.value?(Q(!1),e.persistent?Z():o.value=!1):Q()})});const X=pe();Se(()=>o.value&&(e.absolute||e.contained)&&s.value==null,Q=>{if(Q){const ae=tC(D.value);ae&&ae!==document.scrollingElement&&(X.value=ae.scrollTop)}});function Z(){e.noClickAnimation||M.value&&yl(M.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:qd})}function q(){d(),a("afterLeave")}return ve(()=>{var Q;return I(ke,null,[(Q=n.activator)==null?void 0:Q.call(n,{isActive:o.value,props:ge({ref:y,targetRef:x},S.value,e.activatorProps)}),!e.disabled&&A.value&&f.value&&I(H6,{disabled:!s.value,to:s.value},{default:()=>[I("div",ge({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":o.value,"v-overlay--contained":e.contained},l.value,u.value,e.class],style:[p.value,{top:Ae(X.value)},e.style],ref:D},P,r),[I(gK,ge({color:v,modelValue:!!e.scrim&&o.value},C.value),null),I(fa,{appear:!0,persisted:!0,transition:e.transition,target:_.value,onAfterLeave:q},{default:()=>{var ae;return[Yt(I("div",ge({ref:M,class:["v-overlay__content",e.contentClass],style:[T.value,L.value]},w.value,e.contentProps),[(ae=n.default)==null?void 0:ae.call(n,{isActive:o})]),[[Ya,o.value],[Mr("click-outside"),{handler:O,closeConditional:H,include:()=>[m.value]}]])]}})])]})])}),{activatorEl:m,target:_,animateClick:Z,contentEl:M,globalTop:h,localTop:g,updateLocation:R}}}),G0=Symbol("Forwarded refs");function H0(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Xa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{scopeId:a}=jc(),i=rr(),o=E(()=>e.id||`v-menu-${i}`),s=pe(),l=nt(g1,null),u=xe(0);Tt(g1,{register(){++u.value},unregister(){--u.value},closeParents(){setTimeout(()=>{u.value||(r.value=!1,l==null||l.closeParents())},40)}});async function c(g){var y,_,b;const p=g.relatedTarget,m=g.target;await dt(),r.value&&p!==m&&((y=s.value)!=null&&y.contentEl)&&((_=s.value)!=null&&_.globalTop)&&![document,s.value.contentEl].includes(m)&&!s.value.contentEl.contains(m)&&((b=Kd(s.value.contentEl)[0])==null||b.focus())}Se(r,g=>{g?(l==null||l.register(),document.addEventListener("focusin",c,{once:!0})):(l==null||l.unregister(),document.removeEventListener("focusin",c))});function f(){l==null||l.closeParents()}function d(g){var p,m,y;e.disabled||g.key==="Tab"&&(qN(Kd((p=s.value)==null?void 0:p.contentEl,!1),g.shiftKey?"prev":"next",b=>b.tabIndex>=0)||(r.value=!1,(y=(m=s.value)==null?void 0:m.activatorEl)==null||y.focus()))}function v(g){var m;if(e.disabled)return;const p=(m=s.value)==null?void 0:m.contentEl;p&&r.value?g.key==="ArrowDown"?(g.preventDefault(),Tc(p,"next")):g.key==="ArrowUp"&&(g.preventDefault(),Tc(p,"prev")):["ArrowDown","ArrowUp"].includes(g.key)&&(r.value=!0,g.preventDefault(),setTimeout(()=>setTimeout(()=>v(g))))}const h=E(()=>ge({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":o.value,onKeydown:v},e.activatorProps));return ve(()=>{const g=bi.filterProps(e);return I(bi,ge({ref:s,class:["v-menu",e.class],style:e.style},g,{modelValue:r.value,"onUpdate:modelValue":p=>r.value=p,absolute:!0,activatorProps:h.value,"onClick:outside":f,onKeydown:d},a),{activator:n.activator,default:function(){for(var p=arguments.length,m=new Array(p),y=0;y{var _;return[(_=n.default)==null?void 0:_.call(n,...m)]}})}})}),Xa({id:o,ΨopenChildren:u},s)}});const mK=J({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Pe(),...oo({transition:{component:cC}})},"VCounter"),Sy=le()({name:"VCounter",functional:!0,props:mK(),setup(e,t){let{slots:n}=t;const r=E(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return ve(()=>I(fa,{transition:e.transition},{default:()=>[Yt(I("div",{class:["v-counter",e.class],style:e.style},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[Ya,e.active]])]})),{}}});const yK=J({floating:Boolean,...Pe()},"VFieldLabel"),Jf=le()({name:"VFieldLabel",props:yK(),setup(e,t){let{slots:n}=t;return ve(()=>I(Zc,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),_K=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],qv=J({appendInnerIcon:Je,bgColor:String,clearable:Boolean,clearIcon:{type:Je,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Je,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>_K.includes(e)},"onClick:clear":Ar(),"onClick:appendInner":Ar(),"onClick:prependInner":Ar(),...Pe(),...vy(),...Ht(),...vt()},"VField"),Kc=le()({name:"VField",inheritAttrs:!1,props:{id:String,...Zv(),...qv()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{themeClasses:i}=St(e),{loaderClasses:o}=Uv(e),{focusClasses:s,isFocused:l,focus:u,blur:c}=uo(e),{InputIcon:f}=jB(e),{roundedClasses:d}=qt(e),{rtlClasses:v}=Rn(),h=E(()=>e.dirty||e.active),g=E(()=>!e.singleLine&&!!(e.label||a.label)),p=rr(),m=E(()=>e.id||`input-${p}`),y=E(()=>`${m.value}-messages`),_=pe(),b=pe(),x=pe(),S=E(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:w,backgroundColorStyles:C}=Bt(se(e,"bgColor")),{textColorClasses:T,textColorStyles:A}=Qn(E(()=>e.error||e.disabled?void 0:h.value&&l.value?e.color:e.baseColor));Se(h,M=>{if(g.value){const L=_.value.$el,R=b.value.$el;requestAnimationFrame(()=>{const O=qw(L),H=R.getBoundingClientRect(),V=H.x-O.x,G=H.y-O.y-(O.height/2-H.height/2),X=H.width/.75,Z=Math.abs(X-O.width)>1?{maxWidth:Ae(X)}:void 0,q=getComputedStyle(L),Q=getComputedStyle(R),ae=parseFloat(q.transitionDuration)*1e3||150,W=parseFloat(Q.getPropertyValue("--v-field-label-scale")),F=Q.getPropertyValue("color");L.style.visibility="visible",R.style.visibility="hidden",yl(L,{transform:`translate(${V}px, ${G}px) scale(${W})`,color:F,...Z},{duration:ae,easing:qd,direction:M?"normal":"reverse"}).finished.then(()=>{L.style.removeProperty("visibility"),R.style.removeProperty("visibility")})})}},{flush:"post"});const P=E(()=>({isActive:h,isFocused:l,controlRef:x,blur:c,focus:u}));function D(M){M.target!==document.activeElement&&M.preventDefault()}return ve(()=>{var V,G,X;const M=e.variant==="outlined",L=a["prepend-inner"]||e.prependInnerIcon,R=!!(e.clearable||a.clear),O=!!(a["append-inner"]||e.appendInnerIcon||R),H=()=>a.label?a.label({...P.value,label:e.label,props:{for:m.value}}):e.label;return I("div",ge({class:["v-field",{"v-field--active":h.value,"v-field--appended":O,"v-field--center-affix":e.centerAffix??!S.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":L,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!H(),[`v-field--variant-${e.variant}`]:!0},i.value,w.value,s.value,o.value,d.value,v.value,e.class],style:[C.value,e.style],onClick:D},n),[I("div",{class:"v-field__overlay"},null),I(hy,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),L&&I("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&I(f,{key:"prepend-icon",name:"prependInner"},null),(V=a["prepend-inner"])==null?void 0:V.call(a,P.value)]),I("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&I(Jf,{key:"floating-label",ref:b,class:[T.value],floating:!0,for:m.value,style:A.value},{default:()=>[H()]}),I(Jf,{ref:_,for:m.value},{default:()=>[H()]}),(G=a.default)==null?void 0:G.call(a,{...P.value,props:{id:m.value,class:"v-field__input","aria-describedby":y.value},focus:u,blur:c})]),R&&I(fC,{key:"clear"},{default:()=>[Yt(I("div",{class:"v-field__clearable",onMousedown:Z=>{Z.preventDefault(),Z.stopPropagation()}},[a.clear?a.clear():I(f,{name:"clear"},null)]),[[Ya,e.dirty]])]}),O&&I("div",{key:"append",class:"v-field__append-inner"},[(X=a["append-inner"])==null?void 0:X.call(a,P.value),e.appendInnerIcon&&I(f,{key:"append-icon",name:"appendInner"},null)]),I("div",{class:["v-field__outline",T.value],style:A.value},[M&&I(ke,null,[I("div",{class:"v-field__outline__start"},null),g.value&&I("div",{class:"v-field__outline__notch"},[I(Jf,{ref:b,floating:!0,for:m.value},{default:()=>[H()]})]),I("div",{class:"v-field__outline__end"},null)]),S.value&&g.value&&I(Jf,{ref:b,floating:!0,for:m.value},{default:()=>[H()]})])])}),{controlRef:x}}});function _C(e){const t=Object.keys(Kc.props).filter(n=>!ay(n)&&n!=="class"&&n!=="style");return YN(e,t)}const bK=["color","file","time","date","datetime-local","week","month"],xy=J({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...co(),...qv()},"VTextField"),Kl=le()({name:"VTextField",directives:{Intersect:Wv},inheritAttrs:!1,props:xy(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=ze(e,"modelValue"),{isFocused:o,focus:s,blur:l}=uo(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:(i.value??"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),f=E(()=>["plain","underlined"].includes(e.variant));function d(S,w){var C,T;!e.autofocus||!S||(T=(C=w[0].target)==null?void 0:C.focus)==null||T.call(C)}const v=pe(),h=pe(),g=pe(),p=E(()=>bK.includes(e.type)||e.persistentPlaceholder||o.value||e.active);function m(){var S;g.value!==document.activeElement&&((S=g.value)==null||S.focus()),o.value||s()}function y(S){r("mousedown:control",S),S.target!==g.value&&(m(),S.preventDefault())}function _(S){m(),r("click:control",S)}function b(S){S.stopPropagation(),m(),dt(()=>{i.value=null,Kw(e["onClick:clear"],S)})}function x(S){var C;const w=S.target;if(i.value=w.value,(C=e.modelModifiers)!=null&&C.trim&&["text","search","password","tel","url"].includes(e.type)){const T=[w.selectionStart,w.selectionEnd];dt(()=>{w.selectionStart=T[0],w.selectionEnd=T[1]})}}return ve(()=>{const S=!!(a.counter||e.counter!==!1&&e.counter!=null),w=!!(S||a.details),[C,T]=Ss(n),{modelValue:A,...P}=$n.filterProps(e),D=_C(e);return I($n,ge({ref:v,modelValue:i.value,"onUpdate:modelValue":M=>i.value=M,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":f.value},e.class],style:e.style},C,P,{centerAffix:!f.value,focused:o.value}),{...a,default:M=>{let{id:L,isDisabled:R,isDirty:O,isReadonly:H,isValid:V}=M;return I(Kc,ge({ref:h,onMousedown:y,onClick:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},D,{id:L.value,active:p.value||O.value,dirty:O.value||e.dirty,disabled:R.value,focused:o.value,error:V.value===!1}),{...a,default:G=>{let{props:{class:X,...Z}}=G;const q=Yt(I("input",ge({ref:g,value:i.value,onInput:x,autofocus:e.autofocus,readonly:H.value,disabled:R.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:m,onBlur:l},Z,T),null),[[Mr("intersect"),{handler:d},null,{once:!0}]]);return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[I("span",{class:"v-text-field__prefix__text"},[e.prefix])]),a.default?I("div",{class:X,"data-no-activator":""},[a.default(),q]):mi(q,{class:X}),e.suffix&&I("span",{class:"v-text-field__suffix"},[I("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:w?M=>{var L;return I(ke,null,[(L=a.details)==null?void 0:L.call(a,M),S&&I(ke,null,[I("span",null,null),I(Sy,{active:e.persistentCounter||o.value,value:u.value,max:c.value},a.counter)])])}:void 0})}),Xa({},v,h,g)}});const SK=J({renderless:Boolean,...Pe()},"VVirtualScrollItem"),wz=le()({name:"VVirtualScrollItem",inheritAttrs:!1,props:SK(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{resizeRef:i,contentRect:o}=_i(void 0,"border");Se(()=>{var s;return(s=o.value)==null?void 0:s.height},s=>{s!=null&&r("update:height",s)}),ve(()=>{var s,l;return e.renderless?I(ke,null,[(s=a.default)==null?void 0:s.call(a,{itemRef:i})]):I("div",ge({ref:i,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=a.default)==null?void 0:l.call(a)])})}}),xK=-1,wK=1,W0=100,Cz=J({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function Tz(e,t){const n=xs(),r=xe(0);Ln(()=>{r.value=parseFloat(e.itemHeight||0)});const a=xe(0),i=xe(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),o=xe(0),s=xe(0),l=pe(),u=pe();let c=0;const{resizeRef:f,contentRect:d}=_i();Ln(()=>{f.value=l.value});const v=E(()=>{var G;return l.value===document.documentElement?n.height.value:((G=d.value)==null?void 0:G.height)||parseInt(e.height)||0}),h=E(()=>!!(l.value&&u.value&&v.value&&r.value));let g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length});const m=xe(0);let y=-1;function _(G){return g[G]||r.value}const b=L9(()=>{const G=performance.now();p[0]=0;const X=t.value.length;for(let Z=1;Z<=X-1;Z++)p[Z]=(p[Z-1]||0)+_(Z-1);m.value=Math.max(m.value,performance.now()-G)},m),x=Se(h,G=>{G&&(x(),c=u.value.offsetTop,b.immediate(),R(),~y&&dt(()=>{Mt&&window.requestAnimationFrame(()=>{H(y),y=-1})}))});Se(v,(G,X)=>{X&&R()}),nr(()=>{b.clear()});function S(G,X){const Z=g[G],q=r.value;r.value=q?Math.min(r.value,X):X,(Z!==X||q!==r.value)&&(g[G]=X,b())}function w(G){return G=vn(G,0,t.value.length-1),p[G]||0}function C(G){return CK(p,G)}let T=0,A=0,P=0;function D(){if(!l.value||!u.value)return;const G=l.value.scrollTop,X=performance.now();X-P>500?(A=Math.sign(G-T),c=u.value.offsetTop):A=G-T,T=G,P=X,R()}function M(){!l.value||!u.value||(A=0,P=0,R())}let L=-1;function R(){cancelAnimationFrame(L),L=requestAnimationFrame(O)}function O(){if(!l.value||!v.value)return;const G=T-c,X=Math.sign(A),Z=Math.max(0,G-W0),q=vn(C(Z),0,t.value.length),Q=G+v.value+W0,ae=vn(C(Q)+1,q+1,t.value.length);if((X!==xK||qi.value)){const W=w(a.value)-w(q),F=w(ae)-w(i.value);Math.max(W,F)>W0?(a.value=q,i.value=ae):(q<=0&&(a.value=q),ae>=t.value.length&&(i.value=ae))}o.value=w(a.value),s.value=w(t.value.length)-w(i.value)}function H(G){const X=w(G);!l.value||G&&!X?y=G:l.value.scrollTop=X}const V=E(()=>t.value.slice(a.value,i.value).map((G,X)=>({raw:G,index:X+a.value})));return Se(t,()=>{g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length}),b.immediate(),R()},{deep:!0}),{containerRef:l,markerRef:u,computedItems:V,paddingTop:o,paddingBottom:s,scrollToIndex:H,handleScroll:D,handleScrollend:M,handleItemResize:S}}function CK(e,t){let n=e.length-1,r=0,a=0,i=null,o=-1;if(e[n]>1,i=e[a],i>t)n=a-1;else if(i[]},renderless:Boolean,...Cz(),...Pe(),...hr()},"VVirtualScroll"),wy=le()({name:"VVirtualScroll",props:TK(),setup(e,t){let{slots:n}=t;const r=un("VVirtualScroll"),{dimensionStyles:a}=gr(e),{containerRef:i,markerRef:o,handleScroll:s,handleScrollend:l,handleItemResize:u,scrollToIndex:c,paddingTop:f,paddingBottom:d,computedItems:v}=Tz(e,se(e,"items"));return Ba(()=>e.renderless,()=>{function h(){var m,y;const p=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";i.value===document.documentElement?(document[p]("scroll",s,{passive:!0}),document[p]("scrollend",l)):((m=i.value)==null||m[p]("scroll",s,{passive:!0}),(y=i.value)==null||y[p]("scrollend",l))}ln(()=>{i.value=tC(r.vnode.el,!0),h(!0)}),nr(h)}),ve(()=>{const h=v.value.map(g=>I(wz,{key:g.index,renderless:e.renderless,"onUpdate:height":p=>u(g.index,p)},{default:p=>{var m;return(m=n.default)==null?void 0:m.call(n,{item:g.raw,index:g.index,...p})}}));return e.renderless?I(ke,null,[I("div",{ref:o,class:"v-virtual-scroll__spacer",style:{paddingTop:Ae(f.value)}},null),h,I("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Ae(d.value)}},null)]):I("div",{ref:i,class:["v-virtual-scroll",e.class],onScrollPassive:s,onScrollend:l,style:[a.value,e.style]},[I("div",{ref:o,class:"v-virtual-scroll__container",style:{paddingTop:Ae(f.value),paddingBottom:Ae(d.value)}},[h])])}),{scrollToIndex:c}}});function bC(e,t){const n=xe(!1);let r;function a(s){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function i(){await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>{if(n.value){const l=Se(n,()=>{l(),s()})}else s()})}async function o(s){var c,f;if(s.key==="Tab"&&((c=t.value)==null||c.focus()),!["PageDown","PageUp","Home","End"].includes(s.key))return;const l=(f=e.value)==null?void 0:f.$el;if(!l)return;(s.key==="Home"||s.key==="End")&&l.scrollTo({top:s.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await i();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(s.key==="PageDown"||s.key==="Home"){const d=l.getBoundingClientRect().top;for(const v of u)if(v.getBoundingClientRect().top>=d){v.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const v of[...u].reverse())if(v.getBoundingClientRect().bottom<=d){v.focus();break}}}return{onListScroll:a,onListKeydown:o}}const SC=J({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:Je,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...fz({itemChildren:!1})},"Select"),AK=J({...SC(),...Sn(xy({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...oo({transition:{component:uy}})},"VSelect"),Az=le()({name:"VSelect",props:AK(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=cn(),a=pe(),i=pe(),o=pe(),s=ze(e,"menu"),l=E({get:()=>s.value,set:V=>{var G;s.value&&!V&&((G=i.value)!=null&&G.ΨopenChildren)||(s.value=V)}}),{items:u,transformIn:c,transformOut:f}=mC(e),d=ze(e,"modelValue",[],V=>c(V===null?[null]:nn(V)),V=>{const G=f(V);return e.multiple?G:G[0]??null}),v=E(()=>typeof e.counterValue=="function"?e.counterValue(d.value):typeof e.counterValue=="number"?e.counterValue:d.value.length),h=py(),g=E(()=>d.value.map(V=>V.value)),p=xe(!1),m=E(()=>l.value?e.closeText:e.openText);let y="",_;const b=E(()=>e.hideSelected?u.value.filter(V=>!d.value.some(G=>G===V)):u.value),x=E(()=>e.hideNoData&&!b.value.length||e.readonly||(h==null?void 0:h.isReadonly.value)),S=E(()=>{var V;return{...e.menuProps,activatorProps:{...((V=e.menuProps)==null?void 0:V.activatorProps)||{},"aria-haspopup":"listbox"}}}),w=pe(),{onListScroll:C,onListKeydown:T}=bC(w,a);function A(V){e.openOnClear&&(l.value=!0)}function P(){x.value||(l.value=!l.value)}function D(V){var Q,ae;if(!V.key||e.readonly||h!=null&&h.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(V.key)&&V.preventDefault(),["Enter","ArrowDown"," "].includes(V.key)&&(l.value=!0),["Escape","Tab"].includes(V.key)&&(l.value=!1),V.key==="Home"?(Q=w.value)==null||Q.focus("first"):V.key==="End"&&((ae=w.value)==null||ae.focus("last"));const G=1e3;function X(W){const F=W.key.length===1,z=!W.ctrlKey&&!W.metaKey&&!W.altKey;return F&&z}if(e.multiple||!X(V))return;const Z=performance.now();Z-_>G&&(y=""),y+=V.key.toLowerCase(),_=Z;const q=u.value.find(W=>W.title.toLowerCase().startsWith(y));q!==void 0&&(d.value=[q])}function M(V){if(e.multiple){const G=d.value.findIndex(X=>e.valueComparator(X.value,V.value));if(G===-1)d.value=[...d.value,V];else{const X=[...d.value];X.splice(G,1),d.value=X}}else d.value=[V],l.value=!1}function L(V){var G;(G=w.value)!=null&&G.$el.contains(V.relatedTarget)||(l.value=!1)}function R(){var V;p.value&&((V=a.value)==null||V.focus())}function O(V){p.value=!0}function H(V){if(V==null)d.value=[];else if(Ac(a.value,":autofill")||Ac(a.value,":-webkit-autofill")){const G=u.value.find(X=>X.title===V);G&&M(G)}else a.value&&(a.value.value="")}return Se(l,()=>{if(!e.hideSelected&&l.value&&d.value.length){const V=b.value.findIndex(G=>d.value.some(X=>e.valueComparator(X.value,G.value)));Mt&&window.requestAnimationFrame(()=>{var G;V>=0&&((G=o.value)==null||G.scrollToIndex(V))})}}),Se(b,(V,G)=>{p.value&&(!V.length&&e.hideNoData&&(l.value=!1),!G.length&&V.length&&(l.value=!0))}),ve(()=>{const V=!!(e.chips||n.chip),G=!!(!e.hideNoData||b.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),X=d.value.length>0,Z=Kl.filterProps(e),q=X||!p.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return I(Kl,ge({ref:a},Z,{modelValue:d.value.map(Q=>Q.props.value).join(", "),"onUpdate:modelValue":H,focused:p.value,"onUpdate:focused":Q=>p.value=Q,validationValue:d.externalValue,counterValue:v.value,dirty:X,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":d.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:q,"onClick:clear":A,"onMousedown:control":P,onBlur:L,onKeydown:D,"aria-label":r(m.value),title:r(m.value)}),{...n,default:()=>I(ke,null,[I(by,ge({ref:i,modelValue:l.value,"onUpdate:modelValue":Q=>l.value=Q,activator:"parent",contentClass:"v-select__content",disabled:x.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:R},S.value),{default:()=>[G&&I(yy,{ref:w,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Q=>Q.preventDefault(),onKeydown:T,onFocusin:O,onScrollPassive:C,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var Q,ae,W;return[(Q=n["prepend-item"])==null?void 0:Q.call(n),!b.value.length&&!e.hideNoData&&(((ae=n["no-data"])==null?void 0:ae.call(n))??I(Ki,{title:r(e.noDataText)},null)),I(wy,{ref:o,renderless:!0,items:b.value},{default:F=>{var j;let{item:z,index:$,itemRef:U}=F;const Y=ge(z.props,{ref:U,key:$,onClick:()=>M(z)});return((j=n.item)==null?void 0:j.call(n,{item:z,index:$,props:Y}))??I(Ki,ge(Y,{role:"option"}),{prepend:te=>{let{isSelected:N}=te;return I(ke,null,[e.multiple&&!e.hideSelected?I(ji,{key:z.value,modelValue:N,ripple:!1,tabindex:"-1"},null):void 0,z.props.prependAvatar&&I(ma,{image:z.props.prependAvatar},null),z.props.prependIcon&&I(Ct,{icon:z.props.prependIcon},null)])}})}}),(W=n["append-item"])==null?void 0:W.call(n)]}})]}),d.value.map((Q,ae)=>{function W(U){U.stopPropagation(),U.preventDefault(),M(Q)}const F={"onClick:close":W,onMousedown(U){U.preventDefault(),U.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},z=V?!!n.chip:!!n.selection,$=z?iy(V?n.chip({item:Q,index:ae,props:F}):n.selection({item:Q,index:ae})):void 0;if(!(z&&!$))return I("div",{key:Q.value,class:"v-select__selection"},[V?n.chip?I(ht,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:Q.title}}},{default:()=>[$]}):I(jv,ge({key:"chip",closable:e.closableChips,size:"small",text:Q.title,disabled:Q.props.disabled},F),null):$??I("span",{class:"v-select__selection-text"},[Q.title,e.multiple&&aee==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),Jv=J({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function PK(e,t,n){var s;const r=[],a=(n==null?void 0:n.default)??IK,i=n!=null&&n.filterKeys?nn(n.filterKeys):!1,o=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return r;e:for(let l=0;lr!=null&&r.transform?Ge(t).map(l=>[l,r.transform(l)]):Ge(t));Ln(()=>{const l=typeof n=="function"?n():Ge(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=PK(o.value,u,{customKeyFilter:{...e.customKeyFilter,...Ge(r==null?void 0:r.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),f=Ge(t),d=[],v=new Map;c.forEach(h=>{let{index:g,matches:p}=h;const m=f[g];d.push(m),v.set(m.value,p)}),a.value=d,i.value=v});function s(l){return i.value.get(l.value)}return{filteredItems:a,filteredMatches:i,getMatches:s}}function DK(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),I("span",{class:"v-autocomplete__mask"},[e.substr(t,n)]),I("span",{class:"v-autocomplete__unmask"},[e.substr(t+n)])]):e}const MK=J({autoSelectFirst:{type:[Boolean,String]},search:String,...Jv({filterKeys:["title"]}),...SC(),...Sn(xy({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...oo({transition:!1})},"VAutocomplete"),kK=le()({name:"VAutocomplete",props:MK(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=cn(),a=pe(),i=xe(!1),o=xe(!0),s=xe(!1),l=pe(),u=pe(),c=ze(e,"menu"),f=E({get:()=>c.value,set:$=>{var U;c.value&&!$&&((U=l.value)!=null&&U.ΨopenChildren)||(c.value=$)}}),d=xe(-1),v=E(()=>{var $;return($=a.value)==null?void 0:$.color}),h=E(()=>f.value?e.closeText:e.openText),{items:g,transformIn:p,transformOut:m}=mC(e),{textColorClasses:y,textColorStyles:_}=Qn(v),b=ze(e,"search",""),x=ze(e,"modelValue",[],$=>p($===null?[null]:nn($)),$=>{const U=m($);return e.multiple?U:U[0]??null}),S=E(()=>typeof e.counterValue=="function"?e.counterValue(x.value):typeof e.counterValue=="number"?e.counterValue:x.value.length),w=py(),{filteredItems:C,getMatches:T}=Qv(e,g,()=>o.value?"":b.value),A=E(()=>e.hideSelected?C.value.filter($=>!x.value.some(U=>U.value===$.value)):C.value),P=E(()=>x.value.map($=>$.props.value)),D=E(()=>{var U;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&b.value===((U=A.value[0])==null?void 0:U.title))&&A.value.length>0&&!o.value&&!s.value}),M=E(()=>e.hideNoData&&!A.value.length||e.readonly||(w==null?void 0:w.isReadonly.value)),L=pe(),{onListScroll:R,onListKeydown:O}=bC(L,a);function H($){e.openOnClear&&(f.value=!0),b.value=""}function V(){M.value||(f.value=!0)}function G($){M.value||(i.value&&($.preventDefault(),$.stopPropagation()),f.value=!f.value)}function X($){var j,te,N;if(e.readonly||w!=null&&w.isReadonly.value)return;const U=a.value.selectionStart,Y=x.value.length;if((d.value>-1||["Enter","ArrowDown","ArrowUp"].includes($.key))&&$.preventDefault(),["Enter","ArrowDown"].includes($.key)&&(f.value=!0),["Escape"].includes($.key)&&(f.value=!1),D.value&&["Enter","Tab"].includes($.key)&&z(A.value[0]),$.key==="ArrowDown"&&D.value&&((j=L.value)==null||j.focus("next")),!!e.multiple){if(["Backspace","Delete"].includes($.key)){if(d.value<0){$.key==="Backspace"&&!b.value&&(d.value=Y-1);return}const B=d.value,K=x.value[d.value];K&&!K.props.disabled&&z(K),d.value=B>=Y-1?Y-2:B}if($.key==="ArrowLeft"){if(d.value<0&&U>0)return;const B=d.value>-1?d.value-1:Y-1;x.value[B]?d.value=B:(d.value=-1,a.value.setSelectionRange((te=b.value)==null?void 0:te.length,(N=b.value)==null?void 0:N.length))}if($.key==="ArrowRight"){if(d.value<0)return;const B=d.value+1;x.value[B]?d.value=B:(d.value=-1,a.value.setSelectionRange(0,0))}}}function Z($){if(Ac(a.value,":autofill")||Ac(a.value,":-webkit-autofill")){const U=g.value.find(Y=>Y.title===$.target.value);U&&z(U)}}function q(){var $;i.value&&(o.value=!0,($=a.value)==null||$.focus())}function Q($){i.value=!0,setTimeout(()=>{s.value=!0})}function ae($){s.value=!1}function W($){($==null||$===""&&!e.multiple)&&(x.value=[])}const F=xe(!1);function z($){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(e.multiple){const Y=x.value.findIndex(j=>e.valueComparator(j.value,$.value));if(Y===-1)x.value=[...x.value,$];else{const j=[...x.value];j.splice(Y,1),x.value=j}}else x.value=U?[$]:[],F.value=!0,b.value=U?$.title:"",f.value=!1,o.value=!0,dt(()=>F.value=!1)}return Se(i,($,U)=>{var Y;$!==U&&($?(F.value=!0,b.value=e.multiple?"":String(((Y=x.value.at(-1))==null?void 0:Y.props.title)??""),o.value=!0,dt(()=>F.value=!1)):(!e.multiple&&b.value==null?x.value=[]:D.value&&!s.value&&!x.value.some(j=>{let{value:te}=j;return te===A.value[0].value})&&z(A.value[0]),f.value=!1,b.value="",d.value=-1))}),Se(b,$=>{!i.value||F.value||($&&(f.value=!0),o.value=!$)}),Se(f,()=>{if(!e.hideSelected&&f.value&&x.value.length){const $=A.value.findIndex(U=>x.value.some(Y=>U.value===Y.value));Mt&&window.requestAnimationFrame(()=>{var U;$>=0&&((U=u.value)==null||U.scrollToIndex($))})}}),Se(A,($,U)=>{i.value&&(!$.length&&e.hideNoData&&(f.value=!1),!U.length&&$.length&&(f.value=!0))}),ve(()=>{const $=!!(e.chips||n.chip),U=!!(!e.hideNoData||A.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Y=x.value.length>0,j=Kl.filterProps(e);return I(Kl,ge({ref:a},j,{modelValue:b.value,"onUpdate:modelValue":[te=>b.value=te,W],focused:i.value,"onUpdate:focused":te=>i.value=te,validationValue:x.externalValue,counterValue:S.value,dirty:Y,onChange:Z,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":f.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!n.selection,"v-autocomplete--selecting-index":d.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:Y?void 0:e.placeholder,"onClick:clear":H,"onMousedown:control":V,onKeydown:X}),{...n,default:()=>I(ke,null,[I(by,ge({ref:l,modelValue:f.value,"onUpdate:modelValue":te=>f.value=te,activator:"parent",contentClass:"v-autocomplete__content",disabled:M.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:q},e.menuProps),{default:()=>[U&&I(yy,{ref:L,selected:P.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:O,onFocusin:Q,onFocusout:ae,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var te,N,B;return[(te=n["prepend-item"])==null?void 0:te.call(n),!A.value.length&&!e.hideNoData&&(((N=n["no-data"])==null?void 0:N.call(n))??I(Ki,{title:r(e.noDataText)},null)),I(wy,{ref:u,renderless:!0,items:A.value},{default:K=>{var me;let{item:re,index:ie,itemRef:de}=K;const _e=ge(re.props,{ref:de,key:ie,active:D.value&&ie===0?!0:void 0,onClick:()=>z(re)});return((me=n.item)==null?void 0:me.call(n,{item:re,index:ie,props:_e}))??I(Ki,_e,{prepend:ye=>{let{isSelected:he}=ye;return I(ke,null,[e.multiple&&!e.hideSelected?I(ji,{key:re.value,modelValue:he,ripple:!1,tabindex:"-1"},null):void 0,re.props.prependAvatar&&I(ma,{image:re.props.prependAvatar},null),re.props.prependIcon&&I(Ct,{icon:re.props.prependIcon},null)])},title:()=>{var ye,he;return o.value?re.title:DK(re.title,(ye=T(re))==null?void 0:ye.title,((he=b.value)==null?void 0:he.length)??0)}})}}),(B=n["append-item"])==null?void 0:B.call(n)]}})]}),x.value.map((te,N)=>{function B(de){de.stopPropagation(),de.preventDefault(),z(te,!1)}const K={"onClick:close":B,onMousedown(de){de.preventDefault(),de.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},re=$?!!n.chip:!!n.selection,ie=re?iy($?n.chip({item:te,index:N,props:K}):n.selection({item:te,index:N})):void 0;if(!(re&&!ie))return I("div",{key:te.value,class:["v-autocomplete__selection",N===d.value&&["v-autocomplete__selection--selected",y.value]],style:N===d.value?_.value:{}},[$?n.chip?I(ht,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:te.title}}},{default:()=>[ie]}):I(jv,ge({key:"chip",closable:e.closableChips,size:"small",text:te.title,disabled:te.props.disabled},K),null):ie??I("span",{class:"v-autocomplete__selection-text"},[te.title,e.multiple&&N(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(c)?+(e.offsetY??0):["left","right"].includes(c)?+(e.offsetX??0):0));return ve(()=>{const c=Number(e.content),f=!e.max||isNaN(c)?e.content:c<=+e.max?c:`${e.max}+`,[d,v]=KS(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return I(e.tag,ge({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},v,{style:e.style}),{default:()=>{var h,g;return[I("div",{class:"v-badge__wrapper"},[(g=(h=t.slots).default)==null?void 0:g.call(h),I(fa,{transition:e.transition},{default:()=>{var p,m;return[Yt(I("span",ge({class:["v-badge__badge",l.value,n.value,a.value,o.value],style:[r.value,s.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":i(e.label,c),"aria-live":"polite",role:"status"},d),[e.dot?void 0:t.slots.badge?(m=(p=t.slots).badge)==null?void 0:m.call(p):e.icon?I(Ct,{icon:e.icon},null):f]),[[Ya,e.modelValue]])]}})])]}})}),{}}});const RK=J({color:String,density:String,...Pe()},"VBannerActions"),Iz=le()({name:"VBannerActions",props:RK(),setup(e,t){let{slots:n}=t;return Gt({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),ve(()=>{var r;return I("div",{class:["v-banner-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Pz=Wr("v-banner-text"),VK=J({avatar:String,bgColor:String,color:String,icon:Je,lines:String,stacked:Boolean,sticky:Boolean,text:String,...Yr(),...Pe(),...Cn(),...hr(),...rC(),...pn(),...Cs(),...Yc(),...Ht(),...et(),...vt()},"VBanner"),OK=le()({name:"VBanner",props:VK(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(e,"bgColor"),{borderClasses:i}=xa(e),{densityClasses:o}=ar(e),{displayClasses:s,mobile:l}=xs(e),{dimensionStyles:u}=gr(e),{elevationClasses:c}=Vn(e),{locationStyles:f}=Ts(e),{positionClasses:d}=Xc(e),{roundedClasses:v}=qt(e),{themeClasses:h}=St(e),g=se(e,"color"),p=se(e,"density");Gt({VBannerActions:{color:g,density:p}}),ve(()=>{const m=!!(e.text||n.text),y=!!(e.avatar||e.icon),_=!!(y||n.prepend);return I(e.tag,{class:["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},h.value,r.value,i.value,o.value,s.value,c.value,d.value,v.value,e.class],style:[a.value,u.value,f.value,e.style],role:"banner"},{default:()=>{var b;return[_&&I("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?I(ht,{key:"prepend-defaults",disabled:!y,defaults:{VAvatar:{color:g.value,density:p.value,icon:e.icon,image:e.avatar}}},n.prepend):I(ma,{key:"prepend-avatar",color:g.value,density:p.value,icon:e.icon,image:e.avatar},null)]),I("div",{class:"v-banner__content"},[m&&I(Pz,{key:"text"},{default:()=>{var x;return[((x=n.text)==null?void 0:x.call(n))??e.text]}}),(b=n.default)==null?void 0:b.call(n)]),n.actions&&I(Iz,{key:"actions"},n.actions)]}})})}});const NK=J({bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...Yr(),...Pe(),...Cn(),...pn(),...Ht(),...Hc({name:"bottom-navigation"}),...et({tag:"header"}),...vu({modelValue:!0,selectedClass:"v-btn--selected"}),...vt()},"VBottomNavigation"),BK=le()({name:"VBottomNavigation",props:NK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=oC(),{borderClasses:a}=xa(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Bt(se(e,"bgColor")),{densityClasses:s}=ar(e),{elevationClasses:l}=Vn(e),{roundedClasses:u}=qt(e),{ssrBootStyles:c}=cu(),f=E(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),d=se(e,"active"),{layoutItemStyles:v}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:E(()=>d.value?f.value:0),elementSize:f,active:d,absolute:se(e,"absolute")});return ws(e,vC),Gt({VBtn:{color:se(e,"color"),density:se(e,"density"),stacked:E(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),ve(()=>I(e.tag,{class:["v-bottom-navigation",{"v-bottom-navigation--active":d.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},r.value,i.value,a.value,s.value,l.value,u.value,e.class],style:[o.value,v.value,{height:Ae(f.value),transform:`translateY(${Ae(d.value?0:100,"%")})`},c.value,e.style]},{default:()=>[n.default&&I("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}});const Dz=J({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Kv({origin:"center center",scrollStrategy:"block",transition:{component:uy},zIndex:2400})},"VDialog"),p1=le()({name:"VDialog",props:Dz(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{scopeId:a}=jc(),i=pe();function o(l){var f,d;const u=l.relatedTarget,c=l.target;if(u!==c&&((f=i.value)!=null&&f.contentEl)&&((d=i.value)!=null&&d.globalTop)&&![document,i.value.contentEl].includes(c)&&!i.value.contentEl.contains(c)){const v=Kd(i.value.contentEl);if(!v.length)return;const h=v[0],g=v[v.length-1];u===h?g.focus():h.focus()}}Mt&&Se(()=>r.value&&e.retainFocus,l=>{l?document.addEventListener("focusin",o):document.removeEventListener("focusin",o)},{immediate:!0}),Se(r,async l=>{var u,c;await dt(),l?(u=i.value.contentEl)==null||u.focus({preventScroll:!0}):(c=i.value.activatorEl)==null||c.focus({preventScroll:!0})});const s=E(()=>ge({"aria-haspopup":"dialog","aria-expanded":String(r.value)},e.activatorProps));return ve(()=>{const l=bi.filterProps(e);return I(bi,ge({ref:i,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},l,{modelValue:r.value,"onUpdate:modelValue":u=>r.value=u,"aria-modal":"true",activatorProps:s.value,role:"dialog"},a),{activator:n.activator,default:function(){for(var u=arguments.length,c=new Array(u),f=0;f{var d;return[(d=n.default)==null?void 0:d.call(n,...c)]}})}})}),Xa({},i)}}),zK=J({inset:Boolean,...Dz({transition:"bottom-sheet-transition"})},"VBottomSheet"),FK=le()({name:"VBottomSheet",props:zK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue");return ve(()=>{const a=p1.filterProps(e);return I(p1,ge(a,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}});const $K=J({divider:[Number,String],...Pe()},"VBreadcrumbsDivider"),Mz=le()({name:"VBreadcrumbsDivider",props:$K(),setup(e,t){let{slots:n}=t;return ve(()=>{var r;return I("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((r=n==null?void 0:n.default)==null?void 0:r.call(n))??e.divider])}),{}}}),GK=J({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...Pe(),...Xv(),...et({tag:"li"})},"VBreadcrumbsItem"),kz=le()({name:"VBreadcrumbsItem",props:GK(),setup(e,t){let{slots:n,attrs:r}=t;const a=Yv(e,r),i=E(()=>{var u;return e.active||((u=a.isActive)==null?void 0:u.value)}),o=E(()=>i.value?e.activeColor:e.color),{textColorClasses:s,textColorStyles:l}=Qn(o);return ve(()=>I(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":i.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:i.value&&e.activeClass},s.value,e.class],style:[l.value,e.style],"aria-current":i.value?"page":void 0},{default:()=>{var u,c;return[a.isLink.value?I("a",{class:"v-breadcrumbs-item--link",href:a.href.value,"aria-current":i.value?"page":void 0,onClick:a.navigate},[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),HK=J({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Je,items:{type:Array,default:()=>[]},...Pe(),...Cn(),...Ht(),...et({tag:"ul"})},"VBreadcrumbs"),WK=le()({name:"VBreadcrumbs",props:HK(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"bgColor")),{densityClasses:i}=ar(e),{roundedClasses:o}=qt(e);Gt({VBreadcrumbsDivider:{divider:se(e,"divider")},VBreadcrumbsItem:{activeClass:se(e,"activeClass"),activeColor:se(e,"activeColor"),color:se(e,"color"),disabled:se(e,"disabled")}});const s=E(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return ve(()=>{const l=!!(n.prepend||e.icon);return I(e.tag,{class:["v-breadcrumbs",r.value,i.value,o.value,e.class],style:[a.value,e.style]},{default:()=>{var u;return[l&&I("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?I(ht,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):I(Ct,{key:"prepend-icon",start:!0,icon:e.icon},null)]),s.value.map((c,f,d)=>{var g;let{item:v,raw:h}=c;return I(ke,null,[((g=n.item)==null?void 0:g.call(n,{item:v,index:f}))??I(kz,ge({key:f,disabled:f>=d.length-1},typeof v=="string"?{title:v}:v),{default:n.title?()=>{var p;return(p=n.title)==null?void 0:p.call(n,{item:v,index:f})}:void 0}),f{var p;return(p=n.divider)==null?void 0:p.call(n,{item:h,index:f})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}});const Lz=le()({name:"VCardActions",props:Pe(),setup(e,t){let{slots:n}=t;return Gt({VBtn:{slim:!0,variant:"text"}}),ve(()=>{var r;return I("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Ez=Wr("v-card-subtitle"),Rz=Wr("v-card-title"),UK=J({appendAvatar:String,appendIcon:Je,prependAvatar:String,prependIcon:Je,subtitle:[String,Number],title:[String,Number],...Pe(),...Cn()},"VCardItem"),Vz=le()({name:"VCardItem",props:UK(),setup(e,t){let{slots:n}=t;return ve(()=>{var u;const r=!!(e.prependAvatar||e.prependIcon),a=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),s=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return I("div",{class:["v-card-item",e.class],style:e.style},[a&&I("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?I(ht,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},n.prepend):r&&I(ma,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),I("div",{class:"v-card-item__content"},[s&&I(Rz,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&I(Ez,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&I("div",{key:"append",class:"v-card-item__append"},[n.append?I(ht,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},n.append):i&&I(ma,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),Oz=Wr("v-card-text"),YK=J({appendAvatar:String,appendIcon:Je,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Je,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...Yr(),...Pe(),...Cn(),...hr(),...pn(),...vy(),...Cs(),...Yc(),...Ht(),...Xv(),...et(),...vt(),...wa({variant:"elevated"})},"VCard"),XK=le()({name:"VCard",directives:{Ripple:lo},props:YK(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=St(e),{borderClasses:i}=xa(e),{colorClasses:o,colorStyles:s,variantClasses:l}=du(e),{densityClasses:u}=ar(e),{dimensionStyles:c}=gr(e),{elevationClasses:f}=Vn(e),{loaderClasses:d}=Uv(e),{locationStyles:v}=Ts(e),{positionClasses:h}=Xc(e),{roundedClasses:g}=qt(e),p=Yv(e,n),m=E(()=>e.link!==!1&&p.isLink.value),y=E(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return ve(()=>{const _=m.value?"a":e.tag,b=!!(r.title||e.title!=null),x=!!(r.subtitle||e.subtitle!=null),S=b||x,w=!!(r.append||e.appendAvatar||e.appendIcon),C=!!(r.prepend||e.prependAvatar||e.prependIcon),T=!!(r.image||e.image),A=S||C||w,P=!!(r.text||e.text!=null);return Yt(I(_,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":y.value},a.value,i.value,o.value,u.value,f.value,d.value,h.value,g.value,l.value,e.class],style:[s.value,c.value,v.value,e.style],href:p.href.value,onClick:y.value&&p.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var D;return[T&&I("div",{key:"image",class:"v-card__image"},[r.image?I(ht,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):I(Zl,{key:"image-img",cover:!0,src:e.image},null)]),I(hy,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),A&&I(Vz,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),P&&I(Oz,{key:"text"},{default:()=>{var M;return[((M=r.text)==null?void 0:M.call(r))??e.text]}}),(D=r.default)==null?void 0:D.call(r),r.actions&&I(Lz,null,{default:r.actions}),fu(y.value,"v-card")]}}),[[Mr("ripple"),y.value&&e.ripple]])}),{}}});const ZK=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:a}=e,i=.5,o=16;e.offsetX=n-t,e.offsetY=a-r,Math.abs(e.offsetY)t+o&&e.right(e)),Math.abs(e.offsetX)r+o&&e.down(e))};function jK(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function KK(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),ZK(t)}function qK(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function JK(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>jK(n,t),touchend:n=>KK(n,t),touchmove:n=>qK(n,t)}}function QK(e,t){var s;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,a=(n==null?void 0:n.options)??{passive:!0},i=(s=t.instance)==null?void 0:s.$.uid;if(!r||!i)return;const o=JK(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[i]=o,UN(o).forEach(l=>{r.addEventListener(l,o[l],a)})}function eq(e,t){var i,o;const n=(i=t.value)!=null&&i.parent?e.parentElement:e,r=(o=t.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const a=n._touchHandlers[r];UN(a).forEach(s=>{n.removeEventListener(s,a[s])}),delete n._touchHandlers[r]}const xC={mounted:QK,unmounted:eq},Nz=Symbol.for("vuetify:v-window"),Bz=Symbol.for("vuetify:v-window-group"),wC=J({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...Pe(),...et(),...vt()},"VWindow"),nv=le()({name:"VWindow",directives:{Touch:xC},props:wC(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{isRtl:a}=Rn(),{t:i}=cn(),o=ws(e,Bz),s=pe(),l=E(()=>a.value?!e.reverse:e.reverse),u=xe(!1),c=E(()=>{const b=e.direction==="vertical"?"y":"x",S=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${b}${S}-transition`}),f=xe(0),d=pe(void 0),v=E(()=>o.items.value.findIndex(b=>o.selected.value.includes(b.id)));Se(v,(b,x)=>{const S=o.items.value.length,w=S-1;S<=2?u.value=be.continuous||v.value!==0),g=E(()=>e.continuous||v.value!==o.items.value.length-1);function p(){h.value&&o.prev()}function m(){g.value&&o.next()}const y=E(()=>{const b=[],x={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:o.prev,ariaLabel:i("$vuetify.carousel.prev")};b.push(h.value?n.prev?n.prev({props:x}):I(Dt,x,null):I("div",null,null));const S={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:o.next,ariaLabel:i("$vuetify.carousel.next")};return b.push(g.value?n.next?n.next({props:S}):I(Dt,S,null):I("div",null,null)),b}),_=E(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?p():m()},right:()=>{l.value?m():p()},start:x=>{let{originalEvent:S}=x;S.stopPropagation()}},...e.touch===!0?{}:e.touch});return ve(()=>Yt(I(e.tag,{ref:s,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},r.value,e.class],style:e.style},{default:()=>{var b,x;return[I("div",{class:"v-window__container",style:{height:d.value}},[(b=n.default)==null?void 0:b.call(n,{group:o}),e.showArrows!==!1&&I("div",{class:"v-window__controls"},[y.value])]),(x=n.additional)==null?void 0:x.call(n,{group:o})]}}),[[Mr("touch"),_.value]])),{group:o}}}),tq=J({color:String,cycle:Boolean,delimiterIcon:{type:Je,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...wC({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),nq=le()({name:"VCarousel",props:tq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{t:a}=cn(),i=pe();let o=-1;Se(r,l),Se(()=>e.interval,l),Se(()=>e.cycle,u=>{u?l():window.clearTimeout(o)}),ln(s);function s(){!e.cycle||!i.value||(o=window.setTimeout(i.value.group.next,+e.interval>0?+e.interval:6e3))}function l(){window.clearTimeout(o),window.requestAnimationFrame(s)}return ve(()=>{const u=nv.filterProps(e);return I(nv,ge({ref:i},u,{modelValue:r.value,"onUpdate:modelValue":c=>r.value=c,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:Ae(e.height)},e.style]}),{default:n.default,additional:c=>{let{group:f}=c;return I(ke,null,[!e.hideDelimiters&&I("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[f.items.value.length>0&&I(ht,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[f.items.value.map((d,v)=>{const h={id:`carousel-item-${d.id}`,"aria-label":a("$vuetify.carousel.ariaLabel.delimiter",v+1,f.items.value.length),class:["v-carousel__controls__item",f.isSelected(d.id)&&"v-btn--active"],onClick:()=>f.select(d.id,!0)};return n.item?n.item({props:h,item:d}):I(Dt,ge(d,h),null)})]})]),e.progress&&I(dy,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(f.getItemIndex(r.value)+1)/f.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),CC=J({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Pe(),...hu(),..._y()},"VWindowItem"),rv=le()({name:"VWindowItem",directives:{Touch:xC},props:CC(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=nt(Nz),a=gu(e,Bz),{isBooted:i}=cu();if(!r||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=xe(!1),s=E(()=>i.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!o.value||!r||(o.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){var h;o.value||!r||(o.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=Ae((h=r.rootRef.value)==null?void 0:h.clientHeight)),r.transitionCount.value+=1)}function c(){l()}function f(h){o.value&&dt(()=>{!s.value||!o.value||!r||(r.transitionHeight.value=Ae(h.clientHeight))})}const d=E(()=>{const h=r.isReversed.value?e.reverseTransition:e.transition;return s.value?{name:typeof h!="string"?r.transition.value:h,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:f}:!1}),{hasContent:v}=yC(e,a.isSelected);return ve(()=>I(fa,{transition:d.value,disabled:!i.value},{default:()=>{var h;return[Yt(I("div",{class:["v-window-item",a.selectedClass.value,e.class],style:e.style},[v.value&&((h=n.default)==null?void 0:h.call(n))]),[[Ya,a.isSelected.value]])]}})),{groupItem:a}}}),rq=J({...LB(),...CC()},"VCarouselItem"),aq=le()({name:"VCarouselItem",inheritAttrs:!1,props:rq(),setup(e,t){let{slots:n,attrs:r}=t;ve(()=>{const a=Zl.filterProps(e),i=rv.filterProps(e);return I(rv,ge({class:"v-carousel-item"},i),{default:()=>[I(Zl,ge(r,a),n)]})})}});const iq=Wr("v-code");const oq=J({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...Pe()},"VColorPickerCanvas"),sq=Hr({name:"VColorPickerCanvas",props:oq(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=xe(!1),a=pe(),i=xe(parseFloat(e.width)),o=xe(parseFloat(e.height)),s=pe({x:0,y:0}),l=E({get:()=>s.value,set(p){var _,b;if(!a.value)return;const{x:m,y}=p;s.value=p,n("update:color",{h:((_=e.color)==null?void 0:_.h)??0,s:vn(m,0,i.value)/i.value,v:1-vn(y,0,o.value)/o.value,a:((b=e.color)==null?void 0:b.a)??1})}}),u=E(()=>{const{x:p,y:m}=l.value,y=parseInt(e.dotSize,10)/2;return{width:Ae(e.dotSize),height:Ae(e.dotSize),transform:`translate(${Ae(p-y)}, ${Ae(m-y)})`}}),{resizeRef:c}=_i(p=>{var _;if(!((_=c.value)!=null&&_.offsetParent))return;const{width:m,height:y}=p[0].contentRect;i.value=m,o.value=y});function f(p,m,y){const{left:_,top:b,width:x,height:S}=y;l.value={x:vn(p-_,0,x),y:vn(m-b,0,S)}}function d(p){p.type==="mousedown"&&p.preventDefault(),!e.disabled&&(v(p),window.addEventListener("mousemove",v),window.addEventListener("mouseup",h),window.addEventListener("touchmove",v),window.addEventListener("touchend",h))}function v(p){if(e.disabled||!a.value)return;r.value=!0;const m=V9(p);f(m.clientX,m.clientY,a.value.getBoundingClientRect())}function h(){window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",h),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",h)}function g(){var b;if(!a.value)return;const p=a.value,m=p.getContext("2d");if(!m)return;const y=m.createLinearGradient(0,0,p.width,0);y.addColorStop(0,"hsla(0, 0%, 100%, 1)"),y.addColorStop(1,`hsla(${((b=e.color)==null?void 0:b.h)??0}, 100%, 50%, 1)`),m.fillStyle=y,m.fillRect(0,0,p.width,p.height);const _=m.createLinearGradient(0,0,0,p.height);_.addColorStop(0,"hsla(0, 0%, 100%, 0)"),_.addColorStop(1,"hsla(0, 0%, 0%, 1)"),m.fillStyle=_,m.fillRect(0,0,p.width,p.height)}return Se(()=>{var p;return(p=e.color)==null?void 0:p.h},g,{immediate:!0}),Se(()=>[i.value,o.value],(p,m)=>{g(),s.value={x:l.value.x*p[0]/m[0],y:l.value.y*p[1]/m[1]}},{flush:"post"}),Se(()=>e.color,()=>{if(r.value){r.value=!1;return}s.value=e.color?{x:e.color.s*i.value,y:(1-e.color.v)*o.value}:{x:0,y:0}},{deep:!0,immediate:!0}),ln(()=>g()),ve(()=>I("div",{ref:c,class:["v-color-picker-canvas",e.class],style:e.style,onMousedown:d,onTouchstartPassive:d},[I("canvas",{ref:a,width:i.value,height:o.value},null),e.color&&I("div",{class:["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}],style:u.value},null)])),{}}});function lq(e,t){if(t){const{a:n,...r}=e;return r}return e}function uq(e,t){if(t==null||typeof t=="string"){const n=cB(e);return e.a===1?n.slice(0,7):n}if(typeof t=="object"){let n;return ml(t,["r","g","b"])?n=Zi(e):ml(t,["h","s","l"])?n=aB(e):ml(t,["h","s","v"])&&(n=e),lq(n,!ml(t,["a"])&&e.a===1)}return e}const nc={h:0,s:0,v:1,a:1},m1={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)})},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)})},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:Zi,from:oy};var EV;const cq={...m1,inputs:(EV=m1.inputs)==null?void 0:EV.slice(0,3)},y1={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)})},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)})},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:aB,from:Qw},fq={...y1,inputs:y1.inputs.slice(0,3)},zz={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t}],to:cB,from:uB},dq={...zz,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t}]},Rl={rgb:cq,rgba:m1,hsl:fq,hsla:y1,hex:dq,hexa:zz},vq=e=>{let{label:t,...n}=e;return I("div",{class:"v-color-picker-edit__input"},[I("input",n,null),I("span",null,[t])])},hq=J({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Rl).includes(e)},modes:{type:Array,default:()=>Object.keys(Rl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Rl).includes(t))},...Pe()},"VColorPickerEdit"),gq=Hr({name:"VColorPickerEdit",props:hq(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>e.modes.map(i=>({...Rl[i],name:i}))),a=E(()=>{var s;const i=r.value.find(l=>l.name===e.mode);if(!i)return[];const o=e.color?i.to(e.color):null;return(s=i.inputs)==null?void 0:s.map(l=>{let{getValue:u,getColor:c,...f}=l;return{...i.inputProps,...f,disabled:e.disabled,value:o&&u(o),onChange:d=>{const v=d.target;v&&n("update:color",i.from(c(o??nc,v.value)))}}})});return ve(()=>{var i;return I("div",{class:["v-color-picker-edit",e.class],style:e.style},[(i=a.value)==null?void 0:i.map(o=>I(vq,o,null)),r.value.length>1&&I(Dt,{icon:"$unfold",size:"x-small",variant:"plain",onClick:()=>{const o=r.value.findIndex(s=>s.name===e.mode);n("update:mode",r.value[(o+1)%r.value.length].name)}},null)])}),{}}});const TC=Symbol.for("vuetify:v-slider");function _1(e,t,n){const r=n==="vertical",a=t.getBoundingClientRect(),i="touches"in e?e.touches[0]:e;return r?i.clientY-(a.top+a.height/2):i.clientX-(a.left+a.width/2)}function pq(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Fz=J({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...Ht(),...pn({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),$z=e=>{const t=E(()=>parseFloat(e.min)),n=E(()=>parseFloat(e.max)),r=E(()=>+e.step>0?parseFloat(e.step):0),a=E(()=>Math.max(VP(r.value),VP(t.value)));function i(o){if(o=parseFloat(o),r.value<=0)return o;const s=vn(o,t.value,n.value),l=t.value%r.value,u=Math.round((s-l)/r.value)*r.value+l;return parseFloat(Math.min(u,n.value).toFixed(a.value))}return{min:t,max:n,step:r,decimals:a,roundValue:i}},Gz=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:a,onSliderEnd:i,getActiveThumb:o}=e;const{isRtl:s}=Rn(),l=se(t,"reverse"),u=E(()=>t.direction==="vertical"),c=E(()=>u.value!==l.value),{min:f,max:d,step:v,decimals:h,roundValue:g}=n,p=E(()=>parseInt(t.thumbSize,10)),m=E(()=>parseInt(t.tickSize,10)),y=E(()=>parseInt(t.trackSize,10)),_=E(()=>(d.value-f.value)/v.value),b=se(t,"disabled"),x=E(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),S=E(()=>t.error||t.disabled?void 0:t.trackColor??t.color),w=E(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),C=xe(!1),T=xe(0),A=pe(),P=pe();function D(F){var K;const z=t.direction==="vertical",$=z?"top":"left",U=z?"height":"width",Y=z?"clientY":"clientX",{[$]:j,[U]:te}=(K=A.value)==null?void 0:K.$el.getBoundingClientRect(),N=pq(F,Y);let B=Math.min(Math.max((N-j-T.value)/te,0),1)||0;return(z?c.value:c.value!==s.value)&&(B=1-B),g(f.value+B*(d.value-f.value))}const M=F=>{i({value:D(F)}),C.value=!1,T.value=0},L=F=>{P.value=o(F),P.value&&(P.value.focus(),C.value=!0,P.value.contains(F.target)?T.value=_1(F,P.value,t.direction):(T.value=0,a({value:D(F)})),r({value:D(F)}))},R={passive:!0,capture:!0};function O(F){a({value:D(F)})}function H(F){F.stopPropagation(),F.preventDefault(),M(F),window.removeEventListener("mousemove",O,R),window.removeEventListener("mouseup",H)}function V(F){var z;M(F),window.removeEventListener("touchmove",O,R),(z=F.target)==null||z.removeEventListener("touchend",V)}function G(F){var z;L(F),window.addEventListener("touchmove",O,R),(z=F.target)==null||z.addEventListener("touchend",V,{passive:!1})}function X(F){F.preventDefault(),L(F),window.addEventListener("mousemove",O,R),window.addEventListener("mouseup",H,{passive:!1})}const Z=F=>{const z=(F-f.value)/(d.value-f.value)*100;return vn(isNaN(z)?0:z,0,100)},q=se(t,"showTicks"),Q=E(()=>q.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(F=>({value:F,position:Z(F),label:F.toString()})):Object.keys(t.ticks).map(F=>({value:parseFloat(F),position:Z(parseFloat(F)),label:t.ticks[F]})):_.value!==1/0?ci(_.value+1).map(F=>{const z=f.value+F*v.value;return{value:z,position:Z(z)}}):[]:[]),ae=E(()=>Q.value.some(F=>{let{label:z}=F;return!!z})),W={activeThumbRef:P,color:se(t,"color"),decimals:h,disabled:b,direction:se(t,"direction"),elevation:se(t,"elevation"),hasLabels:ae,isReversed:l,indexFromEnd:c,min:f,max:d,mousePressed:C,numTicks:_,onSliderMousedown:X,onSliderTouchstart:G,parsedTicks:Q,parseMouseMove:D,position:Z,readonly:se(t,"readonly"),rounded:se(t,"rounded"),roundValue:g,showTicks:q,startOffset:T,step:v,thumbSize:p,thumbColor:x,thumbLabel:se(t,"thumbLabel"),ticks:se(t,"ticks"),tickSize:m,trackColor:S,trackContainerRef:A,trackFillColor:w,trackSize:y,vertical:u};return Tt(TC,W),W},mq=J({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...Pe()},"VSliderThumb"),b1=le()({name:"VSliderThumb",directives:{Ripple:lo},props:mq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=nt(TC),{isRtl:i,rtlClasses:o}=Rn();if(!a)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:s,step:l,disabled:u,thumbSize:c,thumbLabel:f,direction:d,isReversed:v,vertical:h,readonly:g,elevation:p,mousePressed:m,decimals:y,indexFromEnd:_}=a,{textColorClasses:b,textColorStyles:x}=Qn(s),{pageup:S,pagedown:w,end:C,home:T,left:A,right:P,down:D,up:M}=jS,L=[S,w,C,T,A,P,D,M],R=E(()=>l.value?[1,2,3]:[1,5,10]);function O(V,G){if(!L.includes(V.key))return;V.preventDefault();const X=l.value||.1,Z=(e.max-e.min)/X;if([A,P,D,M].includes(V.key)){const Q=(h.value?[i.value?A:P,v.value?D:M]:_.value!==i.value?[A,M]:[P,M]).includes(V.key)?1:-1,ae=V.shiftKey?2:V.ctrlKey?1:0;G=G+Q*X*R.value[ae]}else if(V.key===T)G=e.min;else if(V.key===C)G=e.max;else{const q=V.key===w?1:-1;G=G-q*X*(Z>100?Z/10:10)}return Math.max(e.min,Math.min(e.max,G))}function H(V){const G=O(V,e.modelValue);G!=null&&r("update:modelValue",G)}return ve(()=>{const V=Ae(_.value?100-e.position:e.position,"%"),{elevationClasses:G}=Vn(E(()=>u.value?void 0:p.value));return I("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&m.value},e.class,o.value],style:[{"--v-slider-thumb-position":V,"--v-slider-thumb-size":Ae(c.value)},e.style],role:"slider",tabindex:u.value?-1:0,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!g.value,"aria-orientation":d.value,onKeydown:g.value?void 0:H},[I("div",{class:["v-slider-thumb__surface",b.value,G.value],style:{...x.value}},null),Yt(I("div",{class:["v-slider-thumb__ripple",b.value],style:x.value},null),[[Mr("ripple"),e.ripple,null,{circle:!0,center:!0}]]),I(uC,{origin:"bottom center"},{default:()=>{var X;return[Yt(I("div",{class:"v-slider-thumb__label-container"},[I("div",{class:["v-slider-thumb__label"]},[I("div",null,[((X=n["thumb-label"])==null?void 0:X.call(n,{modelValue:e.modelValue}))??e.modelValue.toFixed(l.value?y.value:1)])])]),[[Ya,f.value&&e.focused||f.value==="always"]])]}})])}),{}}});const yq=J({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Pe()},"VSliderTrack"),Hz=le()({name:"VSliderTrack",props:yq(),emits:{},setup(e,t){let{slots:n}=t;const r=nt(TC);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:a,parsedTicks:i,rounded:o,showTicks:s,tickSize:l,trackColor:u,trackFillColor:c,trackSize:f,vertical:d,min:v,max:h,indexFromEnd:g}=r,{roundedClasses:p}=qt(o),{backgroundColorClasses:m,backgroundColorStyles:y}=Bt(c),{backgroundColorClasses:_,backgroundColorStyles:b}=Bt(u),x=E(()=>`inset-${d.value?"block":"inline"}-${g.value?"end":"start"}`),S=E(()=>d.value?"height":"width"),w=E(()=>({[x.value]:"0%",[S.value]:"100%"})),C=E(()=>e.stop-e.start),T=E(()=>({[x.value]:Ae(e.start,"%"),[S.value]:Ae(C.value,"%")})),A=E(()=>s.value?(d.value?i.value.slice().reverse():i.value).map((D,M)=>{var R;const L=D.value!==v.value&&D.value!==h.value?Ae(D.position,"%"):void 0;return I("div",{key:D.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":D.position>=e.start&&D.position<=e.stop,"v-slider-track__tick--first":D.value===v.value,"v-slider-track__tick--last":D.value===h.value}],style:{[x.value]:L}},[(D.label||n["tick-label"])&&I("div",{class:"v-slider-track__tick-label"},[((R=n["tick-label"])==null?void 0:R.call(n,{tick:D,index:M}))??D.label])])}):[]);return ve(()=>I("div",{class:["v-slider-track",p.value,e.class],style:[{"--v-slider-track-size":Ae(f.value),"--v-slider-tick-size":Ae(l.value)},e.style]},[I("div",{class:["v-slider-track__background",_.value,{"v-slider-track__background--opacity":!!a.value||!c.value}],style:{...w.value,...b.value}},null),I("div",{class:["v-slider-track__fill",m.value],style:{...T.value,...y.value}},null),s.value&&I("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":s.value==="always"}]},[A.value])])),{}}}),_q=J({...Zv(),...Fz(),...co(),modelValue:{type:[Number,String],default:0}},"VSlider"),S1=le()({name:"VSlider",props:_q(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=pe(),{rtlClasses:i}=Rn(),o=$z(e),s=ze(e,"modelValue",void 0,S=>o.roundValue(S??o.min.value)),{min:l,max:u,mousePressed:c,roundValue:f,onSliderMousedown:d,onSliderTouchstart:v,trackContainerRef:h,position:g,hasLabels:p,readonly:m}=Gz({props:e,steps:o,onSliderStart:()=>{r("start",s.value)},onSliderEnd:S=>{let{value:w}=S;const C=f(w);s.value=C,r("end",C)},onSliderMove:S=>{let{value:w}=S;return s.value=f(w)},getActiveThumb:()=>{var S;return(S=a.value)==null?void 0:S.$el}}),{isFocused:y,focus:_,blur:b}=uo(e),x=E(()=>g(s.value));return ve(()=>{const S=$n.filterProps(e),w=!!(e.label||n.label||n.prepend);return I($n,ge({class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||p.value,"v-slider--focused":y.value,"v-slider--pressed":c.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},S,{focused:y.value}),{...n,prepend:w?C=>{var T,A;return I(ke,null,[((T=n.label)==null?void 0:T.call(n,C))??(e.label?I(Zc,{id:C.id.value,class:"v-slider__label",text:e.label},null):void 0),(A=n.prepend)==null?void 0:A.call(n,C)])}:void 0,default:C=>{let{id:T,messagesId:A}=C;return I("div",{class:"v-slider__container",onMousedown:m.value?void 0:d,onTouchstartPassive:m.value?void 0:v},[I("input",{id:T.value,name:e.name||T.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:s.value},null),I(Hz,{ref:h,start:0,stop:x.value},{"tick-label":n["tick-label"]}),I(b1,{ref:a,"aria-describedby":A.value,focused:y.value,min:l.value,max:u.value,modelValue:s.value,"onUpdate:modelValue":P=>s.value=P,position:x.value,elevation:e.elevation,onFocus:_,onBlur:b,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}}),bq=J({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,...Pe()},"VColorPickerPreview"),Sq=Hr({name:"VColorPickerPreview",props:bq(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const r=new AbortController;Fv(()=>r.abort());async function a(){if(!LP)return;const i=new window.EyeDropper;try{const o=await i.open({signal:r.signal}),s=uB(o.sRGBHex);n("update:color",{...e.color??nc,...s})}catch{}}return ve(()=>{var i,o;return I("div",{class:["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class],style:e.style},[LP&&I("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[I(Dt,{onClick:a,icon:"$eyeDropper",variant:"plain",density:"comfortable"},null)]),I("div",{class:"v-color-picker-preview__dot"},[I("div",{style:{background:oB(e.color??nc)}},null)]),I("div",{class:"v-color-picker-preview__sliders"},[I(S1,{class:"v-color-picker-preview__track v-color-picker-preview__hue",modelValue:(i=e.color)==null?void 0:i.h,"onUpdate:modelValue":s=>n("update:color",{...e.color??nc,h:s}),step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&I(S1,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",modelValue:((o=e.color)==null?void 0:o.a)??1,"onUpdate:modelValue":s=>n("update:color",{...e.color??nc,a:s}),step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}});const xq={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},wq={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},Cq={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},Tq={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},Aq={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},Iq={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},Pq={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},Dq={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},Mq={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},kq={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},Lq={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},Eq={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},Rq={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},Vq={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},Oq={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},Nq={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},Bq={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},zq={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},Fq={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},$q={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},Gq={red:xq,pink:wq,purple:Cq,deepPurple:Tq,indigo:Aq,blue:Iq,lightBlue:Pq,cyan:Dq,teal:Mq,green:kq,lightGreen:Lq,lime:Eq,yellow:Rq,amber:Vq,orange:Oq,deepOrange:Nq,brown:Bq,blueGrey:zq,grey:Fq,shades:$q},Hq=J({swatches:{type:Array,default:()=>Wq(Gq)},disabled:Boolean,color:Object,maxHeight:[Number,String],...Pe()},"VColorPickerSwatches");function Wq(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const Uq=Hr({name:"VColorPickerSwatches",props:Hq(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;return ve(()=>I("div",{class:["v-color-picker-swatches",e.class],style:[{maxHeight:Ae(e.maxHeight)},e.style]},[I("div",null,[e.swatches.map(r=>I("div",{class:"v-color-picker-swatches__swatch"},[r.map(a=>{const i=ca(a),o=oy(i),s=iB(i);return I("div",{class:"v-color-picker-swatches__color",onClick:()=>o&&n("update:color",o)},[I("div",{style:{background:s}},[e.color&&io(e.color,o)?I(Ct,{size:"x-small",icon:"$success",color:iX(a,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}});const Cy=J({color:String,...Yr(),...Pe(),...hr(),...pn(),...Cs(),...Yc(),...Ht(),...et(),...vt()},"VSheet"),ql=le()({name:"VSheet",props:Cy(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(se(e,"color")),{borderClasses:o}=xa(e),{dimensionStyles:s}=gr(e),{elevationClasses:l}=Vn(e),{locationStyles:u}=Ts(e),{positionClasses:c}=Xc(e),{roundedClasses:f}=qt(e);return ve(()=>I(e.tag,{class:["v-sheet",r.value,a.value,o.value,l.value,c.value,f.value,e.class],style:[i.value,s.value,u.value,e.style]},n)),{}}}),Yq=J({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Rl).includes(e)},modes:{type:Array,default:()=>Object.keys(Rl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Rl).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...Sn(Cy({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker"),Xq=Hr({name:"VColorPicker",props:Yq(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const t=ze(e,"mode"),n=pe(null),r=ze(e,"modelValue",void 0,o=>{if(o==null||o==="")return null;let s;try{s=oy(ca(o))}catch{return null}return n.value&&(s={...s,h:n.value.h},n.value=null),s},o=>o?uq(o,e.modelValue):null),{rtlClasses:a}=Rn(),i=o=>{r.value=o,n.value=o};return ln(()=>{e.modes.includes(t.value)||(t.value=e.modes[0])}),Gt({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),ve(()=>{const o=ql.filterProps(e);return I(ql,ge({rounded:e.rounded,elevation:e.elevation,theme:e.theme,class:["v-color-picker",a.value,e.class],style:[{"--v-color-picker-color-hsv":oB({...r.value??nc,a:1})},e.style]},o,{maxWidth:e.width}),{default:()=>[!e.hideCanvas&&I(sq,{key:"canvas",color:r.value,"onUpdate:color":i,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&I("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&I(Sq,{key:"preview",color:r.value,"onUpdate:color":i,hideAlpha:!t.value.endsWith("a"),disabled:e.disabled},null),!e.hideInputs&&I(gq,{key:"edit",modes:e.modes,mode:t.value,"onUpdate:mode":s=>t.value=s,color:r.value,"onUpdate:color":i,disabled:e.disabled},null)]),e.showSwatches&&I(Uq,{key:"swatches",color:r.value,"onUpdate:color":i,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)]})}),{}}});function Zq(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),I("span",{class:"v-combobox__mask"},[e.substr(t,n)]),I("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const jq=J({autoSelectFirst:{type:[Boolean,String]},delimiters:Array,...Jv({filterKeys:["title"]}),...SC({hideNoData:!0,returnObject:!0}),...Sn(xy({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...oo({transition:!1})},"VCombobox"),Kq=le()({name:"VCombobox",props:jq(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var U;let{emit:n,slots:r}=t;const{t:a}=cn(),i=pe(),o=xe(!1),s=xe(!0),l=xe(!1),u=pe(),c=pe(),f=ze(e,"menu"),d=E({get:()=>f.value,set:Y=>{var j;f.value&&!Y&&((j=u.value)!=null&&j.ΨopenChildren)||(f.value=Y)}}),v=xe(-1);let h=!1;const g=E(()=>{var Y;return(Y=i.value)==null?void 0:Y.color}),p=E(()=>d.value?e.closeText:e.openText),{items:m,transformIn:y,transformOut:_}=mC(e),{textColorClasses:b,textColorStyles:x}=Qn(g),S=ze(e,"modelValue",[],Y=>y(nn(Y)),Y=>{const j=_(Y);return e.multiple?j:j[0]??null}),w=py(),C=xe(e.multiple?"":((U=S.value[0])==null?void 0:U.title)??""),T=E({get:()=>C.value,set:Y=>{var j;if(C.value=Y??"",e.multiple||(S.value=[_l(e,Y)]),Y&&e.multiple&&((j=e.delimiters)!=null&&j.length)){const te=Y.split(new RegExp(`(?:${e.delimiters.join("|")})+`));te.length>1&&(te.forEach(N=>{N=N.trim(),N&&W(_l(e,N))}),C.value="")}Y||(v.value=-1),s.value=!Y}}),A=E(()=>typeof e.counterValue=="function"?e.counterValue(S.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?S.value.length:T.value.length);Se(C,Y=>{h?dt(()=>h=!1):o.value&&!d.value&&(d.value=!0),n("update:search",Y)}),Se(S,Y=>{var j;e.multiple||(C.value=((j=Y[0])==null?void 0:j.title)??"")});const{filteredItems:P,getMatches:D}=Qv(e,m,()=>s.value?"":T.value),M=E(()=>e.hideSelected?P.value.filter(Y=>!S.value.some(j=>j.value===Y.value)):P.value),L=E(()=>S.value.map(Y=>Y.value)),R=E(()=>{var j;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&T.value===((j=M.value[0])==null?void 0:j.title))&&M.value.length>0&&!s.value&&!l.value}),O=E(()=>e.hideNoData&&!M.value.length||e.readonly||(w==null?void 0:w.isReadonly.value)),H=pe(),{onListScroll:V,onListKeydown:G}=bC(H,i);function X(Y){h=!0,e.openOnClear&&(d.value=!0)}function Z(){O.value||(d.value=!0)}function q(Y){O.value||(o.value&&(Y.preventDefault(),Y.stopPropagation()),d.value=!d.value)}function Q(Y){var N;if(k9(Y)||e.readonly||w!=null&&w.isReadonly.value)return;const j=i.value.selectionStart,te=S.value.length;if((v.value>-1||["Enter","ArrowDown","ArrowUp"].includes(Y.key))&&Y.preventDefault(),["Enter","ArrowDown"].includes(Y.key)&&(d.value=!0),["Escape"].includes(Y.key)&&(d.value=!1),["Enter","Escape","Tab"].includes(Y.key)&&(R.value&&["Enter","Tab"].includes(Y.key)&&W(P.value[0]),s.value=!0),Y.key==="ArrowDown"&&R.value&&((N=H.value)==null||N.focus("next")),!!e.multiple){if(["Backspace","Delete"].includes(Y.key)){if(v.value<0){Y.key==="Backspace"&&!T.value&&(v.value=te-1);return}const B=v.value,K=S.value[v.value];K&&!K.props.disabled&&W(K,!1),v.value=B>=te-1?te-2:B}if(Y.key==="ArrowLeft"){if(v.value<0&&j>0)return;const B=v.value>-1?v.value-1:te-1;S.value[B]?v.value=B:(v.value=-1,i.value.setSelectionRange(T.value.length,T.value.length))}if(Y.key==="ArrowRight"){if(v.value<0)return;const B=v.value+1;S.value[B]?v.value=B:(v.value=-1,i.value.setSelectionRange(0,0))}Y.key==="Enter"&&T.value&&(W(_l(e,T.value)),T.value="")}}function ae(){var Y;o.value&&(s.value=!0,(Y=i.value)==null||Y.focus())}function W(Y){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.multiple){const te=S.value.findIndex(B=>e.valueComparator(B.value,Y.value)),N=j??!~te;if(~te){const B=N?[...S.value,Y]:[...S.value];B.splice(te,1),S.value=B}else N&&(S.value=[...S.value,Y]);T.value=""}else{const te=j!==!1;S.value=te?[Y]:[],C.value=te?Y.title:"",dt(()=>{d.value=!1,s.value=!0})}}function F(Y){o.value=!0,setTimeout(()=>{l.value=!0})}function z(Y){l.value=!1}function $(Y){(Y==null||Y===""&&!e.multiple)&&(S.value=[])}return Se(o,(Y,j)=>{Y||Y===j||(v.value=-1,d.value=!1,R.value&&!l.value&&!S.value.some(te=>{let{value:N}=te;return N===M.value[0].value})?W(M.value[0]):e.multiple&&T.value&&W(_l(e,T.value)))}),Se(d,()=>{if(!e.hideSelected&&d.value&&S.value.length){const Y=M.value.findIndex(j=>S.value.some(te=>e.valueComparator(te.value,j.value)));Mt&&window.requestAnimationFrame(()=>{var j;Y>=0&&((j=c.value)==null||j.scrollToIndex(Y))})}}),Se(M,(Y,j)=>{o.value&&(!Y.length&&e.hideNoData&&(d.value=!1),!j.length&&Y.length&&(d.value=!0))}),ve(()=>{const Y=!!(e.chips||r.chip),j=!!(!e.hideNoData||M.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),te=S.value.length>0,N=Kl.filterProps(e);return I(Kl,ge({ref:i},N,{modelValue:T.value,"onUpdate:modelValue":[B=>T.value=B,$],focused:o.value,"onUpdate:focused":B=>o.value=B,validationValue:S.externalValue,counterValue:A.value,dirty:te,class:["v-combobox",{"v-combobox--active-menu":d.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!r.selection,"v-combobox--selecting-index":v.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:te?void 0:e.placeholder,"onClick:clear":X,"onMousedown:control":Z,onKeydown:Q}),{...r,default:()=>I(ke,null,[I(by,ge({ref:u,modelValue:d.value,"onUpdate:modelValue":B=>d.value=B,activator:"parent",contentClass:"v-combobox__content",disabled:O.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:ae},e.menuProps),{default:()=>[j&&I(yy,{ref:H,selected:L.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:B=>B.preventDefault(),onKeydown:G,onFocusin:F,onFocusout:z,onScrollPassive:V,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var B,K,re;return[(B=r["prepend-item"])==null?void 0:B.call(r),!M.value.length&&!e.hideNoData&&(((K=r["no-data"])==null?void 0:K.call(r))??I(Ki,{title:a(e.noDataText)},null)),I(wy,{ref:c,renderless:!0,items:M.value},{default:ie=>{var he;let{item:de,index:_e,itemRef:me}=ie;const ye=ge(de.props,{ref:me,key:_e,active:R.value&&_e===0?!0:void 0,onClick:()=>W(de,null)});return((he=r.item)==null?void 0:he.call(r,{item:de,index:_e,props:ye}))??I(Ki,ye,{prepend:Ie=>{let{isSelected:Me}=Ie;return I(ke,null,[e.multiple&&!e.hideSelected?I(ji,{key:de.value,modelValue:Me,ripple:!1,tabindex:"-1"},null):void 0,de.props.prependAvatar&&I(ma,{image:de.props.prependAvatar},null),de.props.prependIcon&&I(Ct,{icon:de.props.prependIcon},null)])},title:()=>{var Ie,Me;return s.value?de.title:Zq(de.title,(Ie=D(de))==null?void 0:Ie.title,((Me=T.value)==null?void 0:Me.length)??0)}})}}),(re=r["append-item"])==null?void 0:re.call(r)]}})]}),S.value.map((B,K)=>{function re(me){me.stopPropagation(),me.preventDefault(),W(B,!1)}const ie={"onClick:close":re,onMousedown(me){me.preventDefault(),me.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},de=Y?!!r.chip:!!r.selection,_e=de?iy(Y?r.chip({item:B,index:K,props:ie}):r.selection({item:B,index:K})):void 0;if(!(de&&!_e))return I("div",{key:B.value,class:["v-combobox__selection",K===v.value&&["v-combobox__selection--selected",b.value]],style:K===v.value?x.value:{}},[Y?r.chip?I(ht,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:B.title}}},{default:()=>[_e]}):I(jv,ge({key:"chip",closable:e.closableChips,size:"small",text:B.title,disabled:B.props.disabled},ie),null):_e??I("span",{class:"v-combobox__selection-text"},[B.title,e.multiple&&K[]}},"DataTable-expand"),Uz=Symbol.for("vuetify:datatable:expanded");function Ty(e){const t=se(e,"expandOnClick"),n=ze(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function r(s,l){const u=new Set(n.value);l?u.add(s.value):u.delete(s.value),n.value=u}function a(s){return n.value.has(s.value)}function i(s){r(s,!a(s))}const o={expand:r,expanded:n,expandOnClick:t,isExpanded:a,toggleExpand:i};return Tt(Uz,o),o}function Yz(){const e=nt(Uz);if(!e)throw new Error("foo");return e}const AC=J({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Xz=Symbol.for("vuetify:data-table-group");function IC(e){return{groupBy:ze(e,"groupBy")}}function Ay(e){const{groupBy:t,sortBy:n}=e,r=pe(new Set),a=E(()=>t.value.map(u=>({...u,order:u.order??!1})).concat(n.value));function i(u){return r.value.has(u.id)}function o(u){const c=new Set(r.value);i(u)?c.delete(u.id):c.add(u.id),r.value=c}function s(u){function c(f){const d=[];for(const v of f.items)"type"in v&&v.type==="group"?d.push(...c(v)):d.push(v);return d}return c({type:"group",items:u,id:"dummy",key:"dummy",value:"dummy",depth:0})}const l={sortByWithGroups:a,toggleGroup:o,opened:r,groupBy:t,extractRows:s,isGroupOpen:i};return Tt(Xz,l),l}function Zz(){const e=nt(Xz);if(!e)throw new Error("Missing group!");return e}function qq(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const a=Xl(r.raw,t);n.has(a)||n.set(a,[]),n.get(a).push(r)}return n}function jz(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const a=qq(e,t[0]),i=[],o=t.slice(1);return a.forEach((s,l)=>{const u=t[0],c=`${r}_${u}_${l}`;i.push({depth:n,id:c,key:u,value:l,items:o.length?jz(s,o,n+1,c):s,type:"group"})}),i}function Kz(e,t){const n=[];for(const r of e)"type"in r&&r.type==="group"?(r.value!=null&&n.push(r),(t.has(r.id)||r.value==null)&&n.push(...Kz(r.items,t))):n.push(r);return n}function Iy(e,t,n){return{flatItems:E(()=>{if(!t.value.length)return e.value;const a=jz(e.value,t.value.map(i=>i.key));return Kz(a,n.value)})}}function Py(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:a,search:i}=e;const o=un("VDataTable"),s=E(()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:a.value,search:i.value}));let l=null;Se(s,()=>{io(l,s.value)||((l==null?void 0:l.search)!==s.value.search&&(t.value=1),o.emit("update:options",s.value),l=s.value)},{deep:!0,immediate:!0})}const PC=J({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),qz=Symbol.for("vuetify:data-table-pagination");function DC(e){const t=ze(e,"page",void 0,r=>+(r??1)),n=ze(e,"itemsPerPage",void 0,r=>+(r??10));return{page:t,itemsPerPage:n}}function MC(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,a=E(()=>n.value===-1?0:n.value*(t.value-1)),i=E(()=>n.value===-1?r.value:Math.min(r.value,a.value+n.value)),o=E(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));Ln(()=>{t.value>o.value&&(t.value=o.value)});function s(d){n.value=d,t.value=1}function l(){t.value=vn(t.value+1,1,o.value)}function u(){t.value=vn(t.value-1,1,o.value)}function c(d){t.value=vn(d,1,o.value)}const f={page:t,itemsPerPage:n,startIndex:a,stopIndex:i,pageCount:o,itemsLength:r,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:s};return Tt(qz,f),f}function Jq(){const e=nt(qz);if(!e)throw new Error("Missing pagination!");return e}function Jz(e){const{items:t,startIndex:n,stopIndex:r,itemsPerPage:a}=e;return{paginatedItems:E(()=>a.value<=0?t.value:t.value.slice(n.value,r.value))}}const Qq={showSelectAll:!1,allSelected:()=>[],select:e=>{var r;let{items:t,value:n}=e;return new Set(n?[(r=t[0])==null?void 0:r.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},Qz={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return Qz.select({items:n,value:t,selected:r})}},eF={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,allItems:n,selected:r}=e;return eF.select({items:n,value:t,selected:r})}},tF=J({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:io}},"DataTable-select"),nF=Symbol.for("vuetify:data-table-selection");function Dy(e,t){let{allItems:n,currentPage:r}=t;const a=ze(e,"modelValue",e.modelValue,p=>new Set(nn(p).map(m=>{var y;return((y=n.value.find(_=>e.valueComparator(m,_.value)))==null?void 0:y.value)??m})),p=>[...p.values()]),i=E(()=>n.value.filter(p=>p.selectable)),o=E(()=>r.value.filter(p=>p.selectable)),s=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Qq;case"all":return eF;case"page":default:return Qz}});function l(p){return nn(p).every(m=>a.value.has(m.value))}function u(p){return nn(p).some(m=>a.value.has(m.value))}function c(p,m){const y=s.value.select({items:p,value:m,selected:new Set(a.value)});a.value=y}function f(p){c([p],!l([p]))}function d(p){const m=s.value.selectAll({value:p,allItems:i.value,currentPage:o.value,selected:new Set(a.value)});a.value=m}const v=E(()=>a.value.size>0),h=E(()=>{const p=s.value.allSelected({allItems:i.value,currentPage:o.value});return!!p.length&&l(p)}),g={toggleSelect:f,select:c,selectAll:d,isSelected:l,isSomeSelected:u,someSelected:v,allSelected:h,showSelectAll:s.value.showSelectAll};return Tt(nF,g),g}function My(){const e=nt(nF);if(!e)throw new Error("Missing selection!");return e}const rF=J({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),aF=Symbol.for("vuetify:data-table-sort");function ky(e){const t=ze(e,"sortBy"),n=se(e,"mustSort"),r=se(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:r}}function Ly(e){const{sortBy:t,mustSort:n,multiSort:r,page:a}=e,i=l=>{if(l.key==null)return;let u=t.value.map(f=>({...f}))??[];const c=u.find(f=>f.key===l.key);c?c.order==="desc"?n.value?c.order="asc":u=u.filter(f=>f.key!==l.key):c.order="desc":r.value?u=[...u,{key:l.key,order:"asc"}]:u=[{key:l.key,order:"asc"}],t.value=u,a&&(a.value=1)};function o(l){return!!t.value.find(u=>u.key===l.key)}const s={sortBy:t,toggleSort:i,isSorted:o};return Tt(aF,s),s}function eJ(){const e=nt(aF);if(!e)throw new Error("Missing sort!");return e}function kC(e,t,n,r){const a=cn();return{sortedItems:E(()=>n.value.length?tJ(t.value,n.value,a.current.value,{...e.customKeySort,...r==null?void 0:r.value}):t.value)}}function tJ(e,t,n,r){const a=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return[...e].sort((i,o)=>{for(let s=0;sd!=null?d.toString().toLocaleLowerCase():d),c!==f)return Oh(c)&&Oh(f)?0:Oh(c)?-1:Oh(f)?1:!isNaN(c)&&!isNaN(f)?Number(c)-Number(f):a.compare(c,f)}return 0})}const nJ=J({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function rJ(e,t){const n=e.returnObject?t:Dn(t,e.itemValue),r=Dn(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:r,raw:t}}function aJ(e,t){const n=[];for(const r of t)n.push(rJ(e,r));return n}function iJ(e){return{items:E(()=>aJ(e,e.items))}}const oJ=J({search:String,loading:Boolean,...Pe(),...nJ(),...tF(),...rF(),...PC({itemsPerPage:5}),...Wz(),...AC(),...Jv(),...et()},"VDataIterator"),sJ=le()({name:"VDataIterator",props:oJ(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"groupBy"),a=se(e,"search"),{items:i}=iJ(e),{filteredItems:o}=Qv(e,i,a,{transform:Z=>Z.raw}),{sortBy:s,multiSort:l,mustSort:u}=ky(e),{page:c,itemsPerPage:f}=DC(e),{toggleSort:d}=Ly({sortBy:s,multiSort:l,mustSort:u,page:c}),{sortByWithGroups:v,opened:h,extractRows:g,isGroupOpen:p,toggleGroup:m}=Ay({groupBy:r,sortBy:s}),{sortedItems:y}=kC(e,o,v),{flatItems:_}=Iy(y,r,h),b=E(()=>_.value.length),{startIndex:x,stopIndex:S,pageCount:w,prevPage:C,nextPage:T,setItemsPerPage:A,setPage:P}=MC({page:c,itemsPerPage:f,itemsLength:b}),{paginatedItems:D}=Jz({items:_,startIndex:x,stopIndex:S,itemsPerPage:f}),M=E(()=>g(D.value)),{isSelected:L,select:R,selectAll:O,toggleSelect:H}=Dy(e,{allItems:i,currentPage:M}),{isExpanded:V,toggleExpand:G}=Ty(e);Py({page:c,itemsPerPage:f,sortBy:s,groupBy:r,search:a});const X=E(()=>({page:c.value,itemsPerPage:f.value,sortBy:s.value,pageCount:w.value,toggleSort:d,prevPage:C,nextPage:T,setPage:P,setItemsPerPage:A,isSelected:L,select:R,selectAll:O,toggleSelect:H,isExpanded:V,toggleExpand:G,isGroupOpen:p,toggleGroup:m,items:M.value,groupedItems:D.value}));return ve(()=>I(e.tag,{class:["v-data-iterator",e.class],style:e.style},{default:()=>{var Z,q,Q,ae;return[(Z=n.header)==null?void 0:Z.call(n,X.value),D.value.length?(Q=n.default)==null?void 0:Q.call(n,X.value):(q=n["no-data"])==null?void 0:q.call(n),(ae=n.footer)==null?void 0:ae.call(n,X.value)]}})),{}}});function lJ(){const e=pe([]);SO(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const uJ=J({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:Je,default:"$first"},prevIcon:{type:Je,default:"$prev"},nextIcon:{type:Je,default:"$next"},lastIcon:{type:Je,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...Yr(),...Pe(),...Cn(),...pn(),...Ht(),...so(),...et({tag:"nav"}),...vt(),...wa({variant:"text"})},"VPagination"),x1=le()({name:"VPagination",props:uJ(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ze(e,"modelValue"),{t:i,n:o}=cn(),{isRtl:s}=Rn(),{themeClasses:l}=St(e),{width:u}=xs(),c=xe(-1);Gt(void 0,{scoped:!0});const{resizeRef:f}=_i(C=>{if(!C.length)return;const{target:T,contentRect:A}=C[0],P=T.querySelector(".v-pagination__list > *");if(!P)return;const D=A.width,M=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;c.value=g(D,M)}),d=E(()=>parseInt(e.length,10)),v=E(()=>parseInt(e.start,10)),h=E(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:g(u.value,58));function g(C,T){const A=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((C-T*A)/T).toFixed(2)))}const p=E(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[a.value];if(d.value<=h.value)return ci(d.value,v.value);const C=h.value%2===0,T=C?h.value/2:Math.floor(h.value/2),A=C?T:T+1,P=d.value-T;if(A-a.value>=0)return[...ci(Math.max(1,h.value-1),v.value),e.ellipsis,d.value];if(a.value-P>=(C?1:0)){const D=h.value-1,M=d.value-D+v.value;return[v.value,e.ellipsis,...ci(D,M)]}else{const D=Math.max(1,h.value-3),M=D===1?a.value:a.value-Math.ceil(D/2)+v.value;return[v.value,e.ellipsis,...ci(D,M),e.ellipsis,d.value]}});function m(C,T,A){C.preventDefault(),a.value=T,A&&r(A,T)}const{refs:y,updateRef:_}=lJ();Gt({VPaginationBtn:{color:se(e,"color"),border:se(e,"border"),density:se(e,"density"),size:se(e,"size"),variant:se(e,"variant"),rounded:se(e,"rounded"),elevation:se(e,"elevation")}});const b=E(()=>p.value.map((C,T)=>{const A=P=>_(P,T);if(typeof C=="string")return{isActive:!1,key:`ellipsis-${T}`,page:C,props:{ref:A,ellipsis:!0,icon:!0,disabled:!0}};{const P=C===a.value;return{isActive:P,key:C,page:o(C),props:{ref:A,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:P?e.activeColor:e.color,ariaCurrent:P,ariaLabel:i(P?e.currentPageAriaLabel:e.pageAriaLabel,C),onClick:D=>m(D,C)}}}})),x=E(()=>{const C=!!e.disabled||a.value<=v.value,T=!!e.disabled||a.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:A=>m(A,v.value,"first"),disabled:C,ariaLabel:i(e.firstAriaLabel),ariaDisabled:C}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:A=>m(A,a.value-1,"prev"),disabled:C,ariaLabel:i(e.previousAriaLabel),ariaDisabled:C},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:A=>m(A,a.value+1,"next"),disabled:T,ariaLabel:i(e.nextAriaLabel),ariaDisabled:T},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:A=>m(A,v.value+d.value-1,"last"),disabled:T,ariaLabel:i(e.lastAriaLabel),ariaDisabled:T}:void 0}});function S(){var T;const C=a.value-v.value;(T=y.value[C])==null||T.$el.focus()}function w(C){C.key===jS.left&&!e.disabled&&a.value>+e.start?(a.value=a.value-1,dt(S)):C.key===jS.right&&!e.disabled&&a.valueI(e.tag,{ref:f,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":i(e.ariaLabel),onKeydown:w,"data-test":"v-pagination-root"},{default:()=>[I("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&I("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(x.value.first):I(Dt,ge({_as:"VPaginationBtn"},x.value.first),null)]),I("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(x.value.prev):I(Dt,ge({_as:"VPaginationBtn"},x.value.prev),null)]),b.value.map((C,T)=>I("li",{key:C.key,class:["v-pagination__item",{"v-pagination__item--is-active":C.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(C):I(Dt,ge({_as:"VPaginationBtn"},C.props),{default:()=>[C.page]})])),I("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(x.value.next):I(Dt,ge({_as:"VPaginationBtn"},x.value.next),null)]),e.showFirstLastPage&&I("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(x.value.last):I(Dt,ge({_as:"VPaginationBtn"},x.value.last),null)])])]})),{}}}),LC=J({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),av=le()({name:"VDataTableFooter",props:LC(),setup(e,t){let{slots:n}=t;const{t:r}=cn(),{page:a,pageCount:i,startIndex:o,stopIndex:s,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=Jq(),f=E(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:r(d.title)}));return ve(()=>{var v;const d=x1.filterProps(e);return I("div",{class:"v-data-table-footer"},[(v=n.prepend)==null?void 0:v.call(n),I("div",{class:"v-data-table-footer__items-per-page"},[I("span",null,[r(e.itemsPerPageText)]),I(Az,{items:f.value,modelValue:u.value,"onUpdate:modelValue":h=>c(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),I("div",{class:"v-data-table-footer__info"},[I("div",null,[r(e.pageText,l.value?o.value+1:0,s.value,l.value)])]),I("div",{class:"v-data-table-footer__pagination"},[I(x1,ge({modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:i.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),EC=uX({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(e,t)=>{let{slots:n}=t;const r=e.tag??"td";return I(r,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding},`v-data-table-column--align-${e.align}`],style:{height:Ae(e.height),width:Ae(e.width),left:Ae(e.fixedOffset||null)}},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}),cJ=J({headers:Array},"DataTable-header"),iF=Symbol.for("vuetify:data-table-headers"),oF={title:"",sortable:!1},fJ={...oF,width:48};function dJ(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let a=!1;for(let i=0;ir){t.splice(i,0,{element:n,priority:r}),a=!0;break}a||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let a=0;at.shift()}}function w1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)w1(n,t);return t}function sF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&sF(n.children,t);return t}function vJ(e){if(e.key){if(e.key==="data-table-group")return oF;if(["data-table-expand","data-table-select"].includes(e.key))return fJ}}function RC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>RC(n,t+1))):t}function hJ(e){let t=!1;function n(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i)if(o&&(i.fixed=!0),i.fixed)if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s],!0);else t?isNaN(+i.width)&&(`${i.key}`,void 0):i.lastFixed=!0,t=!0;else if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s]);else t=!1}for(let i=e.length-1;i>=0;i--)n(e[i]);function r(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!i)return o;if(i.children){i.fixedOffset=o;for(const s of i.children)o=r(s,o)}else i.fixed&&(i.fixedOffset=o,o+=parseFloat(i.width||"0")||0);return o}let a=0;for(const i of e)a=r(i,a)}function gJ(e,t){const n=[];let r=0;const a=dJ(e);for(;a.size()>0;){let o=a.count();const s=[];let l=1;for(;o>0;){const{element:u,priority:c}=a.dequeue(),f=t-r-RC(u);if(s.push({...u,rowspan:f??1,colspan:u.children?w1(u).length:1}),u.children)for(const d of u.children){const v=c%1+l/Math.pow(10,r+2);a.enqueue(d,r+f+v)}l+=1,o-=1}r+=1,n.push(s)}return{columns:e.map(o=>w1(o)).flat(),headers:n}}function lF(e){const t=[];for(const n of e){const r={...vJ(n),...n},a=r.key??(typeof r.value=="string"?r.value:null),i=r.value??a??null,o={...r,key:a,value:i,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?lF(r.children):void 0};t.push(o)}return t}function VC(e,t){const n=pe([]),r=pe([]),a=pe(),i=pe();Ln(()=>{var h,g,p;const l=(e.headers||Object.keys(e.items[0]??{}).map(m=>({key:m,title:Ii(m)}))).slice(),u=sF(l);(h=t==null?void 0:t.groupBy)!=null&&h.value.length&&!u.has("data-table-group")&&l.unshift({key:"data-table-group",title:"Group"}),(g=t==null?void 0:t.showSelect)!=null&&g.value&&!u.has("data-table-select")&&l.unshift({key:"data-table-select"}),(p=t==null?void 0:t.showExpand)!=null&&p.value&&!u.has("data-table-expand")&&l.push({key:"data-table-expand"});const c=lF(l);hJ(c);const f=Math.max(...c.map(m=>RC(m)))+1,d=gJ(c,f);n.value=d.headers,r.value=d.columns;const v=d.headers.flat(1);a.value=v.reduce((m,y)=>(y.sortable&&y.key&&y.sort&&(m[y.key]=y.sort),m),{}),i.value=v.reduce((m,y)=>(y.key&&y.filter&&(m[y.key]=y.filter),m),{})});const o={headers:n,columns:r,sortFunctions:a,filterFunctions:i};return Tt(iF,o),o}function Ey(){const e=nt(iF);if(!e)throw new Error("Missing headers!");return e}const uF=J({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:Je,default:"$sortAsc"},sortDescIcon:{type:Je,default:"$sortDesc"},...vy()},"VDataTableHeaders"),Mc=le()({name:"VDataTableHeaders",props:uF(),setup(e,t){let{slots:n}=t;const{toggleSort:r,sortBy:a,isSorted:i}=eJ(),{someSelected:o,allSelected:s,selectAll:l,showSelectAll:u}=My(),{columns:c,headers:f}=Ey(),{loaderClasses:d}=Uv(e);function v(_,b){if(!(!e.sticky&&!_.fixed))return{position:"sticky",left:_.fixed?Ae(_.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${b})`:void 0}}function h(_){const b=a.value.find(x=>x.key===_.key);return b?b.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:g,backgroundColorStyles:p}=Bt(e,"color"),m=E(()=>({headers:f.value,columns:c.value,toggleSort:r,isSorted:i,sortBy:a.value,someSelected:o.value,allSelected:s.value,selectAll:l,getSortIcon:h})),y=_=>{let{column:b,x,y:S}=_;const w=b.key==="data-table-select"||b.key==="data-table-expand";return I(EC,ge({tag:"th",align:b.align,class:["v-data-table__th",{"v-data-table__th--sortable":b.sortable,"v-data-table__th--sorted":i(b),"v-data-table__th--fixed":b.fixed,"v-data-table__th--sticky":e.sticky},d.value],style:{width:Ae(b.width),minWidth:Ae(b.minWidth),...v(b,S)},colspan:b.colspan,rowspan:b.rowspan,onClick:b.sortable?()=>r(b):void 0,fixed:b.fixed,lastFixed:b.lastFixed,noPadding:w},b.headerProps),{default:()=>{var A;const C=`header.${b.key}`,T={column:b,selectAll:l,isSorted:i,toggleSort:r,sortBy:a.value,someSelected:o.value,allSelected:s.value,getSortIcon:h};return n[C]?n[C](T):b.key==="data-table-select"?((A=n["header.data-table-select"])==null?void 0:A.call(n,T))??(u&&I(ji,{modelValue:s.value,indeterminate:o.value&&!s.value,"onUpdate:modelValue":l},null)):I("div",{class:"v-data-table-header__content"},[I("span",null,[b.title]),b.sortable&&I(Ct,{key:"icon",class:"v-data-table-header__sort-icon",icon:h(b)},null),e.multiSort&&i(b)&&I("div",{key:"badge",class:["v-data-table-header__sort-badge",...g.value],style:p.value},[a.value.findIndex(P=>P.key===b.key)+1])])}})};ve(()=>I(ke,null,[n.headers?n.headers(m.value):f.value.map((_,b)=>I("tr",null,[_.map((x,S)=>I(y,{column:x,x:S,y:b},null))])),e.loading&&I("tr",{class:"v-data-table-progress"},[I("th",{colspan:c.value.length},[I(hy,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),pJ=J({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),mJ=le()({name:"VDataTableGroupHeaderRow",props:pJ(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:a,extractRows:i}=Zz(),{isSelected:o,isSomeSelected:s,select:l}=My(),{columns:u}=Ey(),c=E(()=>i([e.item]));return()=>I("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(f=>{var d,v;if(f.key==="data-table-group"){const h=r(e.item)?"$expand":"$next",g=()=>a(e.item);return((d=n["data-table-group"])==null?void 0:d.call(n,{item:e.item,count:c.value.length,props:{icon:h,onClick:g}}))??I(EC,{class:"v-data-table-group-header-row__column"},{default:()=>[I(Dt,{size:"small",variant:"text",icon:h,onClick:g},null),I("span",null,[e.item.value]),I("span",null,[$r("("),c.value.length,$r(")")])]})}if(f.key==="data-table-select"){const h=o(c.value),g=s(c.value)&&!h,p=m=>l(c.value,m);return((v=n["data-table-select"])==null?void 0:v.call(n,{props:{modelValue:h,indeterminate:g,"onUpdate:modelValue":p}}))??I("td",null,[I(ji,{modelValue:h,indeterminate:g,"onUpdate:modelValue":p},null)])}return I("td",null,null)})])}}),yJ=J({index:Number,item:Object,cellProps:[Object,Function],onClick:Ar(),onContextmenu:Ar(),onDblclick:Ar()},"VDataTableRow"),OC=le()({name:"VDataTableRow",props:yJ(),setup(e,t){let{slots:n}=t;const{isSelected:r,toggleSelect:a}=My(),{isExpanded:i,toggleExpand:o}=Yz(),{columns:s}=Ey();ve(()=>I("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)}],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&s.value.map((l,u)=>{const c=e.item,f=`item.${l.key}`,d={index:e.index,item:c.raw,internalItem:c,value:Xl(c.columns,l.key),column:l,isSelected:r,toggleSelect:a,isExpanded:i,toggleExpand:o},v=typeof e.cellProps=="function"?e.cellProps({index:d.index,item:d.item,internalItem:d.internalItem,value:d.value,column:l}):e.cellProps,h=typeof l.cellProps=="function"?l.cellProps({index:d.index,item:d.item,internalItem:d.internalItem,value:d.value}):l.cellProps;return I(EC,ge({align:l.align,fixed:l.fixed,fixedOffset:l.fixedOffset,lastFixed:l.lastFixed,noPadding:l.key==="data-table-select"||l.key==="data-table-expand",width:l.width},v,h),{default:()=>{var g,p;return n[f]?n[f](d):l.key==="data-table-select"?((g=n["item.data-table-select"])==null?void 0:g.call(n,d))??I(ji,{disabled:!c.selectable,modelValue:r([c]),onClick:OS(()=>a(c),["stop"])},null):l.key==="data-table-expand"?((p=n["item.data-table-expand"])==null?void 0:p.call(n,d))??I(Dt,{icon:i(c)?"$collapse":"$expand",size:"small",variant:"text",onClick:OS(()=>o(c),["stop"])},null):gl(d.value)}})})]))}}),cF=J({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function]},"VDataTableRows"),Jl=le()({name:"VDataTableRows",inheritAttrs:!1,props:cF(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:a}=Ey(),{expandOnClick:i,toggleExpand:o,isExpanded:s}=Yz(),{isSelected:l,toggleSelect:u}=My(),{toggleGroup:c,isGroupOpen:f}=Zz(),{t:d}=cn();return ve(()=>{var v,h;return e.loading&&(!e.items.length||r.loading)?I("tr",{class:"v-data-table-rows-loading",key:"loading"},[I("td",{colspan:a.value.length},[((v=r.loading)==null?void 0:v.call(r))??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?I("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[I("td",{colspan:a.value.length},[((h=r["no-data"])==null?void 0:h.call(r))??d(e.noDataText)])]):I(ke,null,[e.items.map((g,p)=>{var _;if(g.type==="group"){const b={index:p,item:g,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:f};return r["group-header"]?r["group-header"](b):I(mJ,ge({key:`group-header_${g.id}`,item:g},QP(n,":group-header",()=>b)),r)}const m={index:p,item:g.raw,internalItem:g,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u},y={...m,props:ge({key:`item_${g.key??g.index}`,onClick:i.value?()=>{o(g)}:void 0,index:p,item:g,cellProps:e.cellProps},QP(n,":row",()=>m),typeof e.rowProps=="function"?e.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):e.rowProps)};return I(ke,{key:y.props.key},[r.item?r.item(y):I(OC,y.props,r),s(g)&&((_=r["expanded-row"])==null?void 0:_.call(r,m))])})])}),{}}});const fF=J({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Pe(),...Cn(),...et(),...vt()},"VTable"),Ql=le()({name:"VTable",props:fF(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:a}=St(e),{densityClasses:i}=ar(e);return ve(()=>I(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},a.value,i.value,e.class],style:e.style},{default:()=>{var o,s,l;return[(o=n.top)==null?void 0:o.call(n),n.default?I("div",{class:"v-table__wrapper",style:{height:Ae(e.height)}},[I("table",null,[n.default()])]):(s=n.wrapper)==null?void 0:s.call(n),(l=n.bottom)==null?void 0:l.call(n)]}})),{}}}),_J=J({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function bJ(e,t,n,r){const a=e.returnObject?t:Dn(t,e.itemValue),i=Dn(t,e.itemSelectable,!0),o=r.reduce((s,l)=>(l.key!=null&&(s[l.key]=Dn(t,l.value)),s),{});return{type:"item",key:e.returnObject?Dn(t,e.itemValue):a,index:n,value:a,selectable:i,columns:o,raw:t}}function SJ(e,t,n){return t.map((r,a)=>bJ(e,r,a,n))}function NC(e,t){return{items:E(()=>SJ(e,e.items,t.value))}}const BC=J({...cF(),width:[String,Number],search:String,...Wz(),...AC(),...cJ(),..._J(),...tF(),...rF(),...uF(),...fF()},"DataTable"),xJ=J({...PC(),...BC(),...Jv(),...LC()},"VDataTable"),wJ=le()({name:"VDataTable",props:xJ(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IC(e),{sortBy:i,multiSort:o,mustSort:s}=ky(e),{page:l,itemsPerPage:u}=DC(e),{columns:c,headers:f,sortFunctions:d,filterFunctions:v}=VC(e,{groupBy:a,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:h}=NC(e,c),g=se(e,"search"),{filteredItems:p}=Qv(e,h,g,{transform:W=>W.columns,customKeyFilter:v}),{toggleSort:m}=Ly({sortBy:i,multiSort:o,mustSort:s,page:l}),{sortByWithGroups:y,opened:_,extractRows:b,isGroupOpen:x,toggleGroup:S}=Ay({groupBy:a,sortBy:i}),{sortedItems:w}=kC(e,p,y,d),{flatItems:C}=Iy(w,a,_),T=E(()=>C.value.length),{startIndex:A,stopIndex:P,pageCount:D,setItemsPerPage:M}=MC({page:l,itemsPerPage:u,itemsLength:T}),{paginatedItems:L}=Jz({items:C,startIndex:A,stopIndex:P,itemsPerPage:u}),R=E(()=>b(L.value)),{isSelected:O,select:H,selectAll:V,toggleSelect:G,someSelected:X,allSelected:Z}=Dy(e,{allItems:h,currentPage:R}),{isExpanded:q,toggleExpand:Q}=Ty(e);Py({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:g}),Gt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const ae=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:D.value,toggleSort:m,setItemsPerPage:M,someSelected:X.value,allSelected:Z.value,isSelected:O,select:H,selectAll:V,toggleSelect:G,isExpanded:q,toggleExpand:Q,isGroupOpen:x,toggleGroup:S,items:R.value.map(W=>W.raw),internalItems:R.value,groupedItems:L.value,columns:c.value,headers:f.value}));return ve(()=>{const W=av.filterProps(e),F=Mc.filterProps(e),z=Jl.filterProps(e),$=Ql.filterProps(e);return I(Ql,ge({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},$),{top:()=>{var U;return(U=r.top)==null?void 0:U.call(r,ae.value)},default:()=>{var U,Y,j,te,N,B;return r.default?r.default(ae.value):I(ke,null,[(U=r.colgroup)==null?void 0:U.call(r,ae.value),I("thead",null,[I(Mc,F,r)]),(Y=r.thead)==null?void 0:Y.call(r,ae.value),I("tbody",null,[(j=r["body.prepend"])==null?void 0:j.call(r,ae.value),r.body?r.body(ae.value):I(Jl,ge(n,z,{items:L.value}),r),(te=r["body.append"])==null?void 0:te.call(r,ae.value)]),(N=r.tbody)==null?void 0:N.call(r,ae.value),(B=r.tfoot)==null?void 0:B.call(r,ae.value)])},bottom:()=>r.bottom?r.bottom(ae.value):I(ke,null,[I(my,null,null),I(av,W,{prepend:r["footer.prepend"]})])})}),{}}}),CJ=J({...BC(),...AC(),...Cz(),...Jv()},"VDataTableVirtual"),TJ=le()({name:"VDataTableVirtual",props:CJ(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IC(e),{sortBy:i,multiSort:o,mustSort:s}=ky(e),{columns:l,headers:u,sortFunctions:c,filterFunctions:f}=VC(e,{groupBy:a,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:d}=NC(e,l),v=se(e,"search"),{filteredItems:h}=Qv(e,d,v,{transform:F=>F.columns,customKeyFilter:f}),{toggleSort:g}=Ly({sortBy:i,multiSort:o,mustSort:s}),{sortByWithGroups:p,opened:m,extractRows:y,isGroupOpen:_,toggleGroup:b}=Ay({groupBy:a,sortBy:i}),{sortedItems:x}=kC(e,h,p,c),{flatItems:S}=Iy(x,a,m),w=E(()=>y(S.value)),{isSelected:C,select:T,selectAll:A,toggleSelect:P,someSelected:D,allSelected:M}=Dy(e,{allItems:w,currentPage:w}),{isExpanded:L,toggleExpand:R}=Ty(e),{containerRef:O,markerRef:H,paddingTop:V,paddingBottom:G,computedItems:X,handleItemResize:Z,handleScroll:q,handleScrollend:Q}=Tz(e,S),ae=E(()=>X.value.map(F=>F.raw));Py({sortBy:i,page:xe(1),itemsPerPage:xe(-1),groupBy:a,search:v}),Gt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const W=E(()=>({sortBy:i.value,toggleSort:g,someSelected:D.value,allSelected:M.value,isSelected:C,select:T,selectAll:A,toggleSelect:P,isExpanded:L,toggleExpand:R,isGroupOpen:_,toggleGroup:b,items:w.value.map(F=>F.raw),internalItems:w.value,groupedItems:S.value,columns:l.value,headers:u.value}));ve(()=>{const F=Mc.filterProps(e),z=Jl.filterProps(e),$=Ql.filterProps(e);return I(Ql,ge({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},$),{top:()=>{var U;return(U=r.top)==null?void 0:U.call(r,W.value)},wrapper:()=>{var U,Y;return I("div",{ref:O,onScrollPassive:q,onScrollend:Q,class:"v-table__wrapper",style:{height:Ae(e.height)}},[I("table",null,[I("thead",null,[I(Mc,ge(F,{sticky:e.fixedHeader}),r)]),I("tbody",null,[I("tr",{ref:H,style:{height:Ae(V.value),border:0}},[I("td",{colspan:l.value.length,style:{height:0,border:0}},null)]),(U=r["body.prepend"])==null?void 0:U.call(r,W.value),I(Jl,ge(n,z,{items:ae.value}),{...r,item:j=>I(wz,{key:j.internalItem.index,renderless:!0,"onUpdate:height":te=>Z(j.internalItem.index,te)},{default:te=>{var B;let{itemRef:N}=te;return((B=r.item)==null?void 0:B.call(r,{...j,itemRef:N}))??I(OC,ge(j.props,{ref:N,key:j.internalItem.index,index:j.internalItem.index}),r)}})}),(Y=r["body.append"])==null?void 0:Y.call(r,W.value),I("tr",{style:{height:Ae(G.value),border:0}},[I("td",{colspan:l.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var U;return(U=r.bottom)==null?void 0:U.call(r,W.value)}})})}}),AJ=J({itemsLength:{type:[Number,String],required:!0},...PC(),...BC(),...LC()},"VDataTableServer"),IJ=le()({name:"VDataTableServer",props:AJ(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IC(e),{sortBy:i,multiSort:o,mustSort:s}=ky(e),{page:l,itemsPerPage:u}=DC(e),c=E(()=>parseInt(e.itemsLength,10)),{columns:f,headers:d}=VC(e,{groupBy:a,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:v}=NC(e,f),{toggleSort:h}=Ly({sortBy:i,multiSort:o,mustSort:s,page:l}),{opened:g,isGroupOpen:p,toggleGroup:m,extractRows:y}=Ay({groupBy:a,sortBy:i}),{pageCount:_,setItemsPerPage:b}=MC({page:l,itemsPerPage:u,itemsLength:c}),{flatItems:x}=Iy(v,a,g),{isSelected:S,select:w,selectAll:C,toggleSelect:T,someSelected:A,allSelected:P}=Dy(e,{allItems:v,currentPage:v}),{isExpanded:D,toggleExpand:M}=Ty(e),L=E(()=>y(v.value));Py({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:se(e,"search")}),Tt("v-data-table",{toggleSort:h,sortBy:i}),Gt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const R=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:_.value,toggleSort:h,setItemsPerPage:b,someSelected:A.value,allSelected:P.value,isSelected:S,select:w,selectAll:C,toggleSelect:T,isExpanded:D,toggleExpand:M,isGroupOpen:p,toggleGroup:m,items:L.value.map(O=>O.raw),internalItems:L.value,groupedItems:x.value,columns:f.value,headers:d.value}));ve(()=>{const O=av.filterProps(e),H=Mc.filterProps(e),V=Jl.filterProps(e),G=Ql.filterProps(e);return I(Ql,ge({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},G),{top:()=>{var X;return(X=r.top)==null?void 0:X.call(r,R.value)},default:()=>{var X,Z,q,Q,ae,W;return r.default?r.default(R.value):I(ke,null,[(X=r.colgroup)==null?void 0:X.call(r,R.value),I("thead",{class:"v-data-table__thead",role:"rowgroup"},[I(Mc,ge(H,{sticky:e.fixedHeader}),r)]),(Z=r.thead)==null?void 0:Z.call(r,R.value),I("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(q=r["body.prepend"])==null?void 0:q.call(r,R.value),r.body?r.body(R.value):I(Jl,ge(n,V,{items:x.value}),r),(Q=r["body.append"])==null?void 0:Q.call(r,R.value)]),(ae=r.tbody)==null?void 0:ae.call(r,R.value),(W=r.tfoot)==null?void 0:W.call(r,R.value)])},bottom:()=>r.bottom?r.bottom(R.value):I(av,O,{prepend:r["footer.prepend"]})})})}});const PJ=J({fluid:{type:Boolean,default:!1},...Pe(),...et()},"VContainer"),DJ=le()({name:"VContainer",props:PJ(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Rn();return ve(()=>I(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},r.value,e.class],style:e.style},n)),{}}}),dF=(()=>sy.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),vF=(()=>sy.reduce((e,t)=>{const n="offset"+Ii(t);return e[n]={type:[String,Number],default:null},e},{}))(),hF=(()=>sy.reduce((e,t)=>{const n="order"+Ii(t);return e[n]={type:[String,Number],default:null},e},{}))(),xD={col:Object.keys(dF),offset:Object.keys(vF),order:Object.keys(hF)};function MJ(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const a=t.replace(e,"");r+=`-${a}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const kJ=["auto","start","end","center","baseline","stretch"],LJ=J({cols:{type:[Boolean,String,Number],default:!1},...dF,offset:{type:[String,Number],default:null},...vF,order:{type:[String,Number],default:null},...hF,alignSelf:{type:String,default:null,validator:e=>kJ.includes(e)},...Pe(),...et()},"VCol"),EJ=le()({name:"VCol",props:LJ(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in xD)xD[i].forEach(s=>{const l=e[s],u=MJ(i,s,l);u&&a.push(u)});const o=a.some(s=>s.startsWith("v-col-"));return a.push({"v-col":!o||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),a});return()=>{var a;return Sa(e.tag,{class:[r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),zC=["start","end","center"],gF=["space-between","space-around","space-evenly"];function FC(e,t){return sy.reduce((n,r)=>{const a=e+Ii(r);return n[a]=t(),n},{})}const RJ=[...zC,"baseline","stretch"],pF=e=>RJ.includes(e),mF=FC("align",()=>({type:String,default:null,validator:pF})),VJ=[...zC,...gF],yF=e=>VJ.includes(e),_F=FC("justify",()=>({type:String,default:null,validator:yF})),OJ=[...zC,...gF,"stretch"],bF=e=>OJ.includes(e),SF=FC("alignContent",()=>({type:String,default:null,validator:bF})),wD={align:Object.keys(mF),justify:Object.keys(_F),alignContent:Object.keys(SF)},NJ={align:"align",justify:"justify",alignContent:"align-content"};function BJ(e,t,n){let r=NJ[e];if(n!=null){if(t){const a=t.replace(e,"");r+=`-${a}`}return r+=`-${n}`,r.toLowerCase()}}const zJ=J({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:pF},...mF,justify:{type:String,default:null,validator:yF},..._F,alignContent:{type:String,default:null,validator:bF},...SF,...Pe(),...et()},"VRow"),FJ=le()({name:"VRow",props:zJ(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in wD)wD[i].forEach(o=>{const s=e[o],l=BJ(i,o,s);l&&a.push(l)});return a.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),a});return()=>{var a;return Sa(e.tag,{class:["v-row",r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),xF=Wr("v-spacer","div","VSpacer"),wF=J({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:[String],default:"$next"},prevIcon:{type:[String],default:"$prev"},modeIcon:{type:[String],default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),C1=le()({name:"VDatePickerControls",props:wF(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),a=E(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),i=E(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),o=E(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function s(){n("click:prev")}function l(){n("click:next")}function u(){n("click:year")}function c(){n("click:month")}return ve(()=>I("div",{class:["v-date-picker-controls"]},[I(Dt,{class:"v-date-picker-controls__month-btn",disabled:r.value,text:e.text,variant:"text",rounded:!0,onClick:c},null),I(Dt,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:a.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:u},null),I(xF,{key:"mode-spacer"},null),I("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[I(Dt,{disabled:i.value,icon:e.prevIcon,variant:"text",onClick:s},null),I(Dt,{disabled:o.value,icon:e.nextIcon,variant:"text",onClick:l},null)])])),{}}});const $J=J({appendIcon:String,color:String,header:String,transition:String,onClick:Ar()},"VDatePickerHeader"),T1=le()({name:"VDatePickerHeader",props:$J(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(e,"color");function o(){n("click")}function s(){n("click:append")}return ve(()=>{const l=!!(r.default||e.header),u=!!(r.append||e.appendIcon);return I("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},a.value],style:i.value,onClick:o},[r.prepend&&I("div",{key:"prepend",class:"v-date-picker-header__prepend"},[r.prepend()]),l&&I(fa,{key:"content",name:e.transition},{default:()=>{var c;return[I("div",{key:e.header,class:"v-date-picker-header__content"},[((c=r.default)==null?void 0:c.call(r))??e.header])]}}),u&&I("div",{class:"v-date-picker-header__append"},[r.append?I(ht,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var c;return[(c=r.append)==null?void 0:c.call(r)]}}):I(Dt,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:s},null)])])}),{}}});const GJ=J({allowedDates:[Array,Function],disabled:Boolean,displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]}},"calendar");function HJ(e){const t=Hv(),n=ze(e,"modelValue",[],d=>nn(d)),r=E(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),a=ze(e,"year",void 0,d=>{const v=d!=null?Number(d):t.getYear(r.value);return t.startOfYear(t.setYear(t.date(),v))},d=>t.getYear(d)),i=ze(e,"month",void 0,d=>{const v=d!=null?Number(d):t.getMonth(r.value),h=t.setYear(t.date(),t.getYear(a.value));return t.setMonth(h,v)},d=>t.getMonth(d)),o=E(()=>{const d=t.getWeekArray(i.value),v=d.flat(),h=6*7;if(v.lengthe.weekdays.includes(h.getDay())).map((h,g)=>{const p=t.toISO(h),m=!t.isSameMonth(h,i.value),y=t.isSameDay(h,t.startOfMonth(i.value)),_=t.isSameDay(h,t.endOfMonth(i.value)),b=t.isSameDay(h,i.value);return{date:h,isoDate:p,formatted:t.format(h,"keyboardDate"),year:t.getYear(h),month:t.getMonth(h),isDisabled:f(h),isWeekStart:g%7===0,isWeekEnd:g%7===6,isToday:t.isSameDay(h,v),isAdjacent:m,isHidden:m&&!e.showAdjacentMonths,isStart:y,isSelected:n.value.some(x=>t.isSameDay(h,x)),isEnd:_,isSame:b,localized:t.format(h,"dayOfMonth")}})}const l=E(()=>{const d=t.startOfWeek(n.value),v=[];for(let p=0;p<=6;p++)v.push(t.addDays(d,p));const h=v,g=t.date();return s(h,g)}),u=E(()=>{const d=o.value.flat(),v=t.date();return s(d,v)}),c=E(()=>o.value.map(d=>d.length?nZ(t,d[0]):null));function f(d){if(e.disabled)return!0;const v=t.date(d);return e.min&&t.isAfter(t.date(e.min),v)||e.max&&t.isAfter(v,t.date(e.max))?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(h=>t.isSameDay(t.date(h),v)):typeof e.allowedDates=="function"?!e.allowedDates(v):!1}return{displayValue:r,daysInMonth:u,daysInWeek:l,genDays:s,model:n,weeksInMonth:o,weekNumbers:c}}const CF=J({color:String,hideWeekdays:Boolean,multiple:Boolean,showWeek:Boolean,...GJ()},"VDatePickerMonth"),A1=le()({name:"VDatePickerMonth",props:CF(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=pe(),{daysInMonth:i,model:o,weekNumbers:s}=HJ(e),l=Hv();function u(c){if(e.multiple){const f=o.value.findIndex(d=>l.isSameDay(d,c));if(f===-1)o.value=[...o.value,c];else{const d=[...o.value];d.splice(f,1),o.value=d}}else o.value=[c]}return()=>I("div",{class:"v-date-picker-month"},[e.showWeek&&I("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&I("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[$r(" ")]),s.value.map(c=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[c]))]),I("div",{ref:a,class:"v-date-picker-month__days"},[!e.hideWeekdays&&l.getWeekdays().map(c=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[c[0]])),i.value.map((c,f)=>{const d={props:{onClick:()=>u(c.date)},item:c,i:f};return I("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":c.isAdjacent,"v-date-picker-month__day--hide-adjacent":c.isHidden,"v-date-picker-month__day--selected":c.isSelected,"v-date-picker-month__day--week-end":c.isWeekEnd,"v-date-picker-month__day--week-start":c.isWeekStart}],"data-v-date":c.isDisabled?void 0:c.isoDate},[(e.showAdjacentMonths||!c.isAdjacent)&&I(ht,{defaults:{VBtn:{color:(c.isSelected||c.isToday)&&!c.isDisabled?e.color:void 0,disabled:c.isDisabled,icon:!0,ripple:!1,text:c.localized,variant:c.isDisabled?"text":c.isToday&&!c.isSelected?"outlined":"flat",onClick:()=>u(c.date)}}},{default:()=>{var v;return[((v=r.day)==null?void 0:v.call(r,d))??I(Dt,d.props,null)]}})])})])])}});const TF=J({color:String,height:[String,Number],modelValue:Number},"VDatePickerMonths"),I1=le()({name:"VDatePickerMonths",props:TF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Hv(),a=ze(e,"modelValue"),i=E(()=>{let o=r.startOfYear(r.date());return ci(12).map(s=>{const l=r.format(o,"monthShort");return o=r.getNextMonth(o),{text:l,value:s}})});return Ln(()=>{a.value=a.value??r.getMonth(r.date())}),ve(()=>I("div",{class:"v-date-picker-months",style:{height:Ae(e.height)}},[I("div",{class:"v-date-picker-months__content"},[i.value.map((o,s)=>{var c;const l={active:a.value===s,color:a.value===s?e.color:void 0,rounded:!0,text:o.text,variant:a.value===o.value?"flat":"text",onClick:()=>u(s)};function u(f){a.value=f}return((c=n.month)==null?void 0:c.call(n,{month:o,i:s,props:l}))??I(Dt,ge({key:"month"},l,{onClick:()=>u(s)}),null)})])])),{}}});const AF=J({color:String,height:[String,Number],min:null,max:null,modelValue:Number},"VDatePickerYears"),P1=le()({name:"VDatePickerYears",props:AF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Hv(),a=ze(e,"modelValue"),i=E(()=>{const s=r.getYear(r.date());let l=s-100,u=s+52;e.min&&(l=r.getYear(r.date(e.min))),e.max&&(u=r.getYear(r.date(e.max)));let c=r.startOfYear(r.date());return c=r.setYear(c,l),ci(u-l+1,l).map(f=>{const d=r.format(c,"year");return c=r.setYear(c,r.getYear(c)+1),{text:d,value:f}})});Ln(()=>{a.value=a.value??r.getYear(r.date())});const o=pe();return ln(async()=>{var s;await dt(),(s=o.value)==null||s.$el.scrollIntoView({block:"center"})}),ve(()=>I("div",{class:"v-date-picker-years",style:{height:Ae(e.height)}},[I("div",{class:"v-date-picker-years__content"},[i.value.map((s,l)=>{var c;const u={ref:a.value===s.value?o:void 0,active:a.value===s.value,color:a.value===s.value?e.color:void 0,rounded:!0,text:s.text,variant:a.value===s.value?"flat":"text",onClick:()=>a.value=s.value};return((c=n.year)==null?void 0:c.call(n,{year:s,i:l,props:u}))??I(Dt,ge({key:"month"},u),null)})])])),{}}});const WJ=Wr("v-picker-title"),IF=J({bgColor:String,landscape:Boolean,title:String,hideHeader:Boolean,...Cy()},"VPicker"),CD=le()({name:"VPicker",props:IF(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"color"));return ve(()=>{const i=ql.filterProps(e),o=!!(e.title||n.title);return I(ql,ge(i,{color:e.bgColor,class:["v-picker",{"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>{var s;return[!e.hideHeader&&I("div",{key:"header",class:[r.value],style:[a.value]},[o&&I(WJ,{key:"picker-title"},{default:()=>{var l;return[((l=n.title)==null?void 0:l.call(n))??e.title]}}),n.header&&I("div",{class:"v-picker__header"},[n.header()])]),I("div",{class:"v-picker__body"},[(s=n.default)==null?void 0:s.call(n)]),n.actions&&I(ht,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[I("div",{class:"v-picker__actions"},[n.actions()])]})]}})}),{}}}),UJ=J({header:{type:String,default:"$vuetify.datePicker.header"},...wF(),...CF(),...Sn(TF(),["modelValue"]),...Sn(AF(),["modelValue"]),...IF({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),YJ=le()({name:"VDatePicker",props:UJ(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Hv(),{t:i}=cn(),o=ze(e,"modelValue",void 0,w=>nn(w),w=>e.multiple?w:w[0]),s=ze(e,"viewMode"),l=E(()=>{var C;const w=a.date((C=o.value)==null?void 0:C[0]);return w&&a.isValid(w)?w:a.date()}),u=pe(Number(e.month??a.getMonth(a.startOfMonth(l.value)))),c=pe(Number(e.year??a.getYear(a.startOfYear(a.setMonth(l.value,u.value))))),f=xe(!1),d=E(()=>e.multiple&&o.value.length>1?i("$vuetify.datePicker.itemsSelected",o.value.length):o.value[0]&&a.isValid(o.value[0])?a.format(o.value[0],"normalDateWithWeekday"):i(e.header)),v=E(()=>a.format(a.setYear(a.setMonth(a.date(),u.value),c.value),"monthAndYear")),h=E(()=>`date-picker-header${f.value?"-reverse":""}-transition`),g=E(()=>{const w=a.date(e.min);return e.min&&a.isValid(w)?w:null}),p=E(()=>{const w=a.date(e.max);return e.max&&a.isValid(w)?w:null}),m=E(()=>{if(e.disabled)return!0;const w=[];if(s.value!=="month")w.push("prev","next");else{let C=a.date();if(C=a.setYear(C,c.value),C=a.setMonth(C,u.value),g.value){const T=a.addDays(a.startOfMonth(C),-1);a.isAfter(g.value,T)&&w.push("prev")}if(p.value){const T=a.addDays(a.endOfMonth(C),1);a.isAfter(T,p.value)&&w.push("next")}}return w});function y(){u.value<11?u.value++:(c.value++,u.value=0)}function _(){u.value>0?u.value--:(c.value--,u.value=11)}function b(){s.value="month"}function x(){s.value=s.value==="months"?"month":"months"}function S(){s.value=s.value==="year"?"month":"year"}return Se(u,()=>{s.value==="months"&&x(),n("update:month",u.value)}),Se(c,()=>{s.value==="year"&&S(),n("update:year",c.value)}),Se(o,(w,C)=>{const T=a.date(nn(w)[0]),A=a.date(nn(C)[0]);f.value=a.isBefore(T,A)}),ve(()=>{const w=CD.filterProps(e),C=C1.filterProps(e),T=T1.filterProps(e),A=A1.filterProps(e),P=Sn(I1.filterProps(e),["modelValue"]),D=Sn(P1.filterProps(e),["modelValue"]),M={header:d.value,transition:h.value};return I(CD,ge(w,{class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},e.class],style:e.style}),{title:()=>{var L;return((L=r.title)==null?void 0:L.call(r))??I("div",{class:"v-date-picker__title"},[i(e.title)])},header:()=>r.header?I(ht,{defaults:{VDatePickerHeader:{...M}}},{default:()=>{var L;return[(L=r.header)==null?void 0:L.call(r,M)]}}):I(T1,ge({key:"header"},T,M,{onClick:s.value!=="month"?b:void 0}),{...r,default:void 0}),default:()=>I(ke,null,[I(C1,ge(C,{disabled:m.value,text:v.value,"onClick:next":y,"onClick:prev":_,"onClick:month":x,"onClick:year":S}),null),I(zp,{hideOnLeave:!0},{default:()=>[s.value==="months"?I(I1,ge({key:"date-picker-months"},P,{modelValue:u.value,"onUpdate:modelValue":L=>u.value=L,min:g.value,max:p.value}),null):s.value==="year"?I(P1,ge({key:"date-picker-years"},D,{modelValue:c.value,"onUpdate:modelValue":L=>c.value=L,min:g.value,max:p.value}),null):I(A1,ge({key:"date-picker-month"},A,{modelValue:o.value,"onUpdate:modelValue":L=>o.value=L,month:u.value,"onUpdate:month":L=>u.value=L,year:c.value,"onUpdate:year":L=>c.value=L,min:g.value,max:p.value}),null)]})]),actions:r.actions})}),{}}});const iv=Symbol.for("vuetify:v-expansion-panel"),XJ=["default","accordion","inset","popout"],ZJ=J({color:String,static:Boolean,variant:{type:String,default:"default",validator:e=>XJ.includes(e)},readonly:Boolean,...Pe(),...vu(),...et(),...vt()},"VExpansionPanels"),jJ=le()({name:"VExpansionPanels",props:ZJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;ws(e,iv);const{themeClasses:r}=St(e),a=E(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Gt({VExpansionPanel:{color:se(e,"color"),readonly:se(e,"readonly"),static:se(e,"static")}}),ve(()=>I(e.tag,{class:["v-expansion-panels",r.value,a.value,e.class],style:e.style},n)),{}}}),KJ=J({...Pe(),..._y()},"VExpansionPanelText"),PF=le()({name:"VExpansionPanelText",props:KJ(),setup(e,t){let{slots:n}=t;const r=nt(iv);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:a,onAfterLeave:i}=yC(e,r.isSelected);return ve(()=>I(cy,{onAfterLeave:i},{default:()=>{var o;return[Yt(I("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&a.value&&I("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[Ya,r.isSelected.value]])]}})),{}}}),DF=J({color:String,expandIcon:{type:Je,default:"$expand"},collapseIcon:{type:Je,default:"$collapse"},hideActions:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Pe()},"VExpansionPanelTitle"),MF=le()({name:"VExpansionPanelTitle",directives:{Ripple:lo},props:DF(),setup(e,t){let{slots:n}=t;const r=nt(iv);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(e,"color"),o=E(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}));return ve(()=>{var s;return Yt(I("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--static":e.static},a.value,e.class],style:[i.value,e.style],type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[I("span",{class:"v-expansion-panel-title__overlay"},null),(s=n.default)==null?void 0:s.call(n,o.value),!e.hideActions&&I("span",{class:"v-expansion-panel-title__icon"},[n.actions?n.actions(o.value):I(Ct,{icon:r.isSelected.value?e.collapseIcon:e.expandIcon},null)])]),[[Mr("ripple"),e.ripple]])}),{}}}),qJ=J({title:String,text:String,bgColor:String,...Pe(),...pn(),...hu(),..._y(),...Ht(),...et(),...DF()},"VExpansionPanel"),JJ=le()({name:"VExpansionPanel",props:qJ(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=gu(e,iv),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(e,"bgColor"),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e),l=E(()=>(r==null?void 0:r.disabled.value)||e.disabled),u=E(()=>r.group.items.value.reduce((d,v,h)=>(r.group.selected.value.includes(v.id)&&d.push(h),d),[])),c=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===1)}),f=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===-1)});return Tt(iv,r),Gt({VExpansionPanelText:{eager:se(e,"eager")},VExpansionPanelTitle:{readonly:se(e,"readonly")}}),ve(()=>{const d=!!(n.text||e.text),v=!!(n.title||e.title);return I(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":l.value},s.value,a.value,e.class],style:[i.value,e.style]},{default:()=>{var h;return[I("div",{class:["v-expansion-panel__shadow",...o.value]},null),v&&I(MF,{key:"title",collapseIcon:e.collapseIcon,color:e.color,expandIcon:e.expandIcon,hideActions:e.hideActions,ripple:e.ripple},{default:()=>[n.title?n.title():e.title]}),d&&I(PF,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(h=n.default)==null?void 0:h.call(n)]}})}),{}}});const QJ=J({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},multiple:Boolean,showSize:{type:[Boolean,Number],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(e)},...co({prependIcon:"$file"}),modelValue:{type:Array,default:()=>[],validator:e=>nn(e).every(t=>t!=null&&typeof t=="object")},...qv({clearable:!0})},"VFileInput"),eQ=le()({name:"VFileInput",inheritAttrs:!1,props:QJ(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=cn(),o=ze(e,"modelValue"),{isFocused:s,focus:l,blur:u}=uo(e),c=E(()=>typeof e.showSize!="boolean"?e.showSize:void 0),f=E(()=>(o.value??[]).reduce((T,A)=>{let{size:P=0}=A;return T+P},0)),d=E(()=>BP(f.value,c.value)),v=E(()=>(o.value??[]).map(T=>{const{name:A="",size:P=0}=T;return e.showSize?`${A} (${BP(P,c.value)})`:A})),h=E(()=>{var A;const T=((A=o.value)==null?void 0:A.length)??0;return e.showSize?i(e.counterSizeString,T,d.value):i(e.counterString,T)}),g=pe(),p=pe(),m=pe(),y=E(()=>s.value||e.active),_=E(()=>["plain","underlined"].includes(e.variant));function b(){var T;m.value!==document.activeElement&&((T=m.value)==null||T.focus()),s.value||l()}function x(T){w(T)}function S(T){r("mousedown:control",T)}function w(T){var A;(A=m.value)==null||A.click(),r("click:control",T)}function C(T){T.stopPropagation(),b(),dt(()=>{o.value=[],Kw(e["onClick:clear"],T)})}return Se(o,T=>{(!Array.isArray(T)||!T.length)&&m.value&&(m.value.value="")}),ve(()=>{const T=!!(a.counter||e.counter),A=!!(T||a.details),[P,D]=Ss(n),{modelValue:M,...L}=$n.filterProps(e),R=_C(e);return I($n,ge({ref:g,modelValue:o.value,"onUpdate:modelValue":O=>o.value=O,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-input--plain-underlined":_.value},e.class],style:e.style,"onClick:prepend":x},P,L,{centerAffix:!_.value,focused:s.value}),{...a,default:O=>{let{id:H,isDisabled:V,isDirty:G,isReadonly:X,isValid:Z}=O;return I(Kc,ge({ref:p,"prepend-icon":e.prependIcon,onMousedown:S,onClick:w,"onClick:clear":C,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},R,{id:H.value,active:y.value||G.value,dirty:G.value,disabled:V.value,focused:s.value,error:Z.value===!1}),{...a,default:q=>{var W;let{props:{class:Q,...ae}}=q;return I(ke,null,[I("input",ge({ref:m,type:"file",readonly:X.value,disabled:V.value,multiple:e.multiple,name:e.name,onClick:F=>{F.stopPropagation(),X.value&&F.preventDefault(),b()},onChange:F=>{if(!F.target)return;const z=F.target;o.value=[...z.files??[]]},onFocus:b,onBlur:u},ae,D),null),I("div",{class:Q},[!!((W=o.value)!=null&&W.length)&&(a.selection?a.selection({fileNames:v.value,totalBytes:f.value,totalBytesReadable:d.value}):e.chips?v.value.map(F=>I(jv,{key:F,size:"small",color:e.color},{default:()=>[F]})):v.value.join(", "))])])}})},details:A?O=>{var H,V;return I(ke,null,[(H=a.details)==null?void 0:H.call(a,O),T&&I(ke,null,[I("span",null,null),I(Sy,{active:!!((V=o.value)!=null&&V.length),value:h.value},a.counter)])])}:void 0})}),Xa({},g,p,m)}});const tQ=J({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Yr(),...Pe(),...pn(),...Hc(),...Ht(),...et({tag:"footer"}),...vt()},"VFooter"),nQ=le()({name:"VFooter",props:tQ(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(se(e,"color")),{borderClasses:o}=xa(e),{elevationClasses:s}=Vn(e),{roundedClasses:l}=qt(e),u=xe(32),{resizeRef:c}=_i(v=>{v.length&&(u.value=v[0].target.clientHeight)}),f=E(()=>e.height==="auto"?u.value:parseInt(e.height,10)),{layoutItemStyles:d}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:f,elementSize:E(()=>e.height==="auto"?void 0:f.value),active:E(()=>e.app),absolute:se(e,"absolute")});return ve(()=>I(e.tag,{ref:c,class:["v-footer",r.value,a.value,o.value,s.value,l.value,e.class],style:[i.value,e.app?d.value:{height:Ae(e.height)},e.style]},n)),{}}}),rQ=J({...Pe(),...bj()},"VForm"),aQ=le()({name:"VForm",props:rQ(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=Sj(e),i=pe();function o(l){l.preventDefault(),a.reset()}function s(l){const u=l,c=a.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(f=>{var v;let{valid:d}=f;d&&((v=i.value)==null||v.submit())}),u.preventDefault()}return ve(()=>{var l;return I("form",{ref:i,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:o,onSubmit:s},[(l=n.default)==null?void 0:l.call(n,a)])}),Xa(a,i)}}),iQ=J({disabled:Boolean,modelValue:{type:Boolean,default:void 0},...pz()},"VHover"),oQ=le()({name:"VHover",props:iQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{runOpenDelay:a,runCloseDelay:i}=mz(e,o=>!e.disabled&&(r.value=o));return()=>{var o;return(o=n.default)==null?void 0:o.call(n,{isHovering:r.value,props:{onMouseenter:a,onMouseleave:i}})}}});const sQ=J({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...hr(),...et()},"VInfiniteScroll"),TD=Hr({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootRef:null,rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:r,isIntersecting:a}=fy(i=>{},e.rootMargin?{rootMargin:e.rootMargin}:void 0);return Se(a,async i=>{n("intersect",e.side,i)}),ve(()=>I("div",{class:"v-infinite-scroll-intersect",ref:r},[$r(" ")])),{}}}),lQ=le()({name:"VInfiniteScroll",props:sQ(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=pe(),i=xe("ok"),o=xe("ok"),s=E(()=>Ae(e.margin)),l=xe(!1);function u(x){if(!a.value)return;const S=e.direction==="vertical"?"scrollTop":"scrollLeft";a.value[S]=x}function c(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return a.value[x]}function f(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return a.value[x]}function d(){if(!a.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return a.value[x]}ln(()=>{a.value&&(e.side==="start"?u(f()):e.side==="both"&&u(f()/2-d()/2))});function v(x,S){x==="start"?i.value=S:x==="end"&&(o.value=S)}function h(x){return x==="start"?i.value:o.value}let g=0;function p(x,S){l.value=S,l.value&&m(x)}function m(x){if(e.mode!=="manual"&&!l.value)return;const S=h(x);if(!a.value||S==="loading")return;g=f(),v(x,"loading");function w(C){v(x,C),dt(()=>{C==="empty"||C==="error"||(C==="ok"&&x==="start"&&u(f()-g+c()),e.mode!=="manual"&&dt(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{m(x)})})})}))})}r("load",{side:x,done:w})}const{t:y}=cn();function _(x,S){var T,A,P,D,M;if(e.side!==x&&e.side!=="both")return;const w=()=>m(x),C={side:x,props:{onClick:w,color:e.color}};return S==="error"?(T=n.error)==null?void 0:T.call(n,C):S==="empty"?((A=n.empty)==null?void 0:A.call(n,C))??I("div",null,[y(e.emptyText)]):e.mode==="manual"?S==="loading"?((P=n.loading)==null?void 0:P.call(n,C))??I(Dc,{indeterminate:!0,color:e.color},null):((D=n["load-more"])==null?void 0:D.call(n,C))??I(Dt,{variant:"outlined",color:e.color,onClick:w},{default:()=>[y(e.loadMoreText)]}):((M=n.loading)==null?void 0:M.call(n,C))??I(Dc,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:b}=gr(e);ve(()=>{const x=e.tag,S=e.side==="start"||e.side==="both",w=e.side==="end"||e.side==="both",C=e.mode==="intersect";return I(x,{ref:a,class:["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":S,"v-infinite-scroll--end":w}],style:b.value},{default:()=>{var T;return[I("div",{class:"v-infinite-scroll__side"},[_("start",i.value)]),a.value&&S&&C&&I(TD,{key:"start",side:"start",onIntersect:p,rootRef:a.value,rootMargin:s.value},null),(T=n.default)==null?void 0:T.call(n),a.value&&w&&C&&I(TD,{key:"end",side:"end",onIntersect:p,rootRef:a.value,rootMargin:s.value},null),I("div",{class:"v-infinite-scroll__side"},[_("end",o.value)])]}})})}});const kF=Symbol.for("vuetify:v-item-group"),uQ=J({...Pe(),...vu({selectedClass:"v-item--selected"}),...et(),...vt()},"VItemGroup"),cQ=le()({name:"VItemGroup",props:uQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=ws(e,kF);return()=>I(e.tag,{class:["v-item-group",r.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})}}),fQ=le()({name:"VItem",props:hu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:a,toggle:i,selectedClass:o,value:s,disabled:l}=gu(e,kF);return()=>{var u;return(u=n.default)==null?void 0:u.call(n,{isSelected:r.value,selectedClass:o.value,select:a,toggle:i,value:s.value,disabled:l.value})}}});const dQ=Wr("v-kbd");const vQ=J({...Pe(),...wB()},"VLayout"),hQ=le()({name:"VLayout",props:vQ(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:a,getLayoutItem:i,items:o,layoutRef:s}=CB(e);return ve(()=>{var l;return I("div",{ref:s,class:[r.value,e.class],style:[a.value,e.style]},[(l=n.default)==null?void 0:l.call(n)])}),{getLayoutItem:i,items:o}}});const gQ=J({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...Pe(),...Hc()},"VLayoutItem"),pQ=le()({name:"VLayoutItem",props:gQ(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:r}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:se(e,"position"),elementSize:se(e,"size"),layoutSize:se(e,"size"),active:se(e,"modelValue"),absolute:se(e,"absolute")});return()=>{var a;return I("div",{class:["v-layout-item",e.class],style:[r.value,e.style]},[(a=n.default)==null?void 0:a.call(n)])}}}),mQ=J({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...Pe(),...hr(),...et(),...oo({transition:"fade-transition"})},"VLazy"),yQ=le()({name:"VLazy",directives:{intersect:Wv},props:mQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=gr(e),a=ze(e,"modelValue");function i(o){a.value||(a.value=o)}return ve(()=>Yt(I(e.tag,{class:["v-lazy",e.class],style:[r.value,e.style]},{default:()=>[a.value&&I(fa,{transition:e.transition,appear:!0},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n)]}})]}),[[Mr("intersect"),{handler:i,options:e.options},null]])),{}}});const _Q=J({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...Pe()},"VLocaleProvider"),bQ=le()({name:"VLocaleProvider",props:_Q(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=yX(e);return ve(()=>{var a;return I("div",{class:["v-locale-provider",r.value,e.class],style:e.style},[(a=n.default)==null?void 0:a.call(n)])}),{}}});const SQ=J({scrollable:Boolean,...Pe(),...et({tag:"main"})},"VMain"),xQ=le()({name:"VMain",props:SQ(),setup(e,t){let{slots:n}=t;const{mainStyles:r}=vZ(),{ssrBootStyles:a}=cu();return ve(()=>I(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[r.value,a.value,e.style]},{default:()=>{var i,o;return[e.scrollable?I("div",{class:"v-main__scroller"},[(i=n.default)==null?void 0:i.call(n)]):(o=n.default)==null?void 0:o.call(n)]}})),{}}});function wQ(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const a=xe(!1),i=xe(0),o=E(()=>{const u=typeof a.value=="boolean"?"top":a.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[u]:Ae(i.value)}:{top:r.value.top}]});ln(()=>{Se(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),En(()=>{window.removeEventListener("scroll",l)});let s=0;function l(){const u=s>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),f=parseFloat(r.value.top??0),d=window.scrollY-Math.max(0,i.value-f),v=c.height+Math.max(i.value,f)-window.scrollY-window.innerHeight,h=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=AD(t),a=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(a-r)*Math.abs(a),n===e.length-1&&(t*=.5)}return AD(t)*1e3}function AQ(){const e={};function t(a){Array.from(a.changedTouches).forEach(i=>{(e[i.identifier]??(e[i.identifier]=new R9(TQ))).push([a.timeStamp,i])})}function n(a){Array.from(a.changedTouches).forEach(i=>{delete e[i.identifier]})}function r(a){var u;const i=(u=e[a])==null?void 0:u.values().reverse();if(!i)throw new Error(`No samples for touch id ${a}`);const o=i[0],s=[],l=[];for(const c of i){if(o[0]-c[0]>CQ)break;s.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:ID(s),y:ID(l),get direction(){const{x:c,y:f}=this,[d,v]=[Math.abs(c),Math.abs(f)];return d>v&&c>=0?"right":d>v&&c<=0?"left":v>d&&f>=0?"down":v>d&&f<=0?"up":IQ()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function IQ(){throw new Error}function PQ(e){let{isActive:t,isTemporary:n,width:r,touchless:a,position:i}=e;ln(()=>{window.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("touchmove",y,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),En(()=>{window.removeEventListener("touchstart",m),window.removeEventListener("touchmove",y),window.removeEventListener("touchend",_)});const o=E(()=>["left","right"].includes(i.value)),{addMovement:s,endTouch:l,getVelocity:u}=AQ();let c=!1;const f=xe(!1),d=xe(0),v=xe(0);let h;function g(x,S){return(i.value==="left"?x:i.value==="right"?document.documentElement.clientWidth-x:i.value==="top"?x:i.value==="bottom"?document.documentElement.clientHeight-x:Pu())-(S?r.value:0)}function p(x){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const w=i.value==="left"?(x-v.value)/r.value:i.value==="right"?(document.documentElement.clientWidth-x-v.value)/r.value:i.value==="top"?(x-v.value)/r.value:i.value==="bottom"?(document.documentElement.clientHeight-x-v.value)/r.value:Pu();return S?Math.max(0,Math.min(1,w)):w}function m(x){if(a.value)return;const S=x.changedTouches[0].clientX,w=x.changedTouches[0].clientY,C=25,T=i.value==="left"?Sdocument.documentElement.clientWidth-C:i.value==="top"?wdocument.documentElement.clientHeight-C:Pu(),A=t.value&&(i.value==="left"?Sdocument.documentElement.clientWidth-r.value:i.value==="top"?wdocument.documentElement.clientHeight-r.value:Pu());(T||A||t.value&&n.value)&&(c=!0,h=[S,w],v.value=g(o.value?S:w,t.value),d.value=p(o.value?S:w),l(x),s(x))}function y(x){const S=x.changedTouches[0].clientX,w=x.changedTouches[0].clientY;if(c){if(!x.cancelable){c=!1;return}const T=Math.abs(S-h[0]),A=Math.abs(w-h[1]);(o.value?T>A&&T>3:A>T&&A>3)?(f.value=!0,c=!1):(o.value?A:T)>3&&(c=!1)}if(!f.value)return;x.preventDefault(),s(x);const C=p(o.value?S:w,!1);d.value=Math.max(0,Math.min(1,C)),C>1?v.value=g(o.value?S:w,!0):C<0&&(v.value=g(o.value?S:w,!1))}function _(x){if(c=!1,!f.value)return;s(x),f.value=!1;const S=u(x.changedTouches[0].identifier),w=Math.abs(S.x),C=Math.abs(S.y);(o.value?w>C&&w>400:C>w&&C>3)?t.value=S.direction===({left:"right",right:"left",top:"down",bottom:"up"}[i.value]||Pu()):t.value=d.value>.5}const b=E(()=>f.value?{transform:i.value==="left"?`translateX(calc(-100% + ${d.value*r.value}px))`:i.value==="right"?`translateX(calc(100% - ${d.value*r.value}px))`:i.value==="top"?`translateY(calc(-100% + ${d.value*r.value}px))`:i.value==="bottom"?`translateY(calc(100% - ${d.value*r.value}px))`:Pu(),transition:"none"}:void 0);return{isDragging:f,dragProgress:d,dragStyles:b}}function Pu(){throw new Error}const DQ=["start","end","left","right","top","bottom"],MQ=J({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>DQ.includes(e)},sticky:Boolean,...Yr(),...Pe(),...rC(),...pn(),...Hc(),...Ht(),...et({tag:"nav"}),...vt()},"VNavigationDrawer"),kQ=le()({name:"VNavigationDrawer",props:MQ(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{isRtl:i}=Rn(),{themeClasses:o}=St(e),{borderClasses:s}=xa(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Bt(se(e,"color")),{elevationClasses:c}=Vn(e),{displayClasses:f,mobile:d}=xs(e),{roundedClasses:v}=qt(e),h=OB(),g=ze(e,"modelValue",null,X=>!!X),{ssrBootStyles:p}=cu(),{scopeId:m}=jc(),y=pe(),_=xe(!1),b=E(()=>e.rail&&e.expandOnHover&&_.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),x=E(()=>JS(e.location,i.value)),S=E(()=>!e.permanent&&(d.value||e.temporary)),w=E(()=>e.sticky&&!S.value&&x.value!=="bottom");Ba(()=>e.expandOnHover&&e.rail!=null,()=>{Se(_,X=>r("update:rail",!X))}),Ba(()=>!e.disableResizeWatcher,()=>{Se(S,X=>!e.permanent&&dt(()=>g.value=!X))}),Ba(()=>!e.disableRouteWatcher&&!!h,()=>{Se(h.currentRoute,()=>S.value&&(g.value=!1))}),Se(()=>e.permanent,X=>{X&&(g.value=!0)}),qm(()=>{e.modelValue!=null||S.value||(g.value=e.permanent||!d.value)});const{isDragging:C,dragProgress:T,dragStyles:A}=PQ({isActive:g,isTemporary:S,width:b,touchless:se(e,"touchless"),position:x}),P=E(()=>{const X=S.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):b.value;return C.value?X*T.value:X}),{layoutItemStyles:D,layoutItemScrimStyles:M}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:x,layoutSize:P,elementSize:b,active:E(()=>g.value||C.value),disableTransitions:E(()=>C.value),absolute:E(()=>e.absolute||w.value&&typeof L.value!="string")}),{isStuck:L,stickyStyles:R}=wQ({rootEl:y,isSticky:w,layoutItemStyles:D}),O=Bt(E(()=>typeof e.scrim=="string"?e.scrim:null)),H=E(()=>({...C.value?{opacity:T.value*.2,transition:"none"}:void 0,...M.value}));Gt({VList:{bgColor:"transparent"}});function V(){_.value=!0}function G(){_.value=!1}return ve(()=>{const X=a.image||e.image;return I(ke,null,[I(e.tag,ge({ref:y,onMouseenter:V,onMouseleave:G,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":_.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":S.value,"v-navigation-drawer--active":g.value,"v-navigation-drawer--sticky":w.value},o.value,l.value,s.value,f.value,c.value,v.value,e.class],style:[u.value,D.value,A.value,p.value,R.value,e.style]},m,n),{default:()=>{var Z,q,Q,ae;return[X&&I("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?(Z=a.image)==null?void 0:Z.call(a,{image:e.image}):I("img",{src:e.image,alt:""},null)]),a.prepend&&I("div",{class:"v-navigation-drawer__prepend"},[(q=a.prepend)==null?void 0:q.call(a)]),I("div",{class:"v-navigation-drawer__content"},[(Q=a.default)==null?void 0:Q.call(a)]),a.append&&I("div",{class:"v-navigation-drawer__append"},[(ae=a.append)==null?void 0:ae.call(a)])]}}),I(yi,{name:"fade-transition"},{default:()=>[S.value&&(C.value||g.value)&&!!e.scrim&&I("div",ge({class:["v-navigation-drawer__scrim",O.backgroundColorClasses.value],style:[H.value,O.backgroundColorStyles.value],onClick:()=>g.value=!1},m),null)]})])}),{isStuck:L}}}),LQ=Hr({name:"VNoSsr",setup(e,t){let{slots:n}=t;const r=_z();return()=>{var a;return r.value&&((a=n.default)==null?void 0:a.call(n))}}});const EQ=J({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...hr(),...Zv(),...XN(qv({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),RQ=le()({name:"VOtpInput",props:EQ(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{dimensionStyles:i}=gr(e),{isFocused:o,focus:s,blur:l}=uo(e),u=ze(e,"modelValue","",w=>String(w).split(""),w=>w.join("")),{t:c}=cn(),f=E(()=>Number(e.length)),d=E(()=>Array(f.value).fill(0)),v=pe(-1),h=pe(),g=pe([]),p=E(()=>g.value[v.value]);function m(){if(e.type==="number"&&/[^0-9]/g.test(p.value.value)){p.value.value="";return}const w=u.value.slice(),C=p.value.value;w[v.value]=C;let T=null;v.value>u.value.length?T=u.value.length+1:v.value+1!==f.value&&(T="next"),u.value=w,T&&Tc(h.value,T)}function y(w){const C=u.value.slice(),T=v.value;let A=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(w.key)&&(w.preventDefault(),w.key==="ArrowLeft"?A="prev":w.key==="ArrowRight"?A="next":["Backspace","Delete"].includes(w.key)&&(C[v.value]="",u.value=C,v.value>0&&w.key==="Backspace"?A="prev":requestAnimationFrame(()=>{var P;(P=g.value[T])==null||P.select()})),requestAnimationFrame(()=>{A!=null&&Tc(h.value,A)}))}function _(w,C){var T,A;C.preventDefault(),C.stopPropagation(),u.value=(((T=C==null?void 0:C.clipboardData)==null?void 0:T.getData("Text"))??"").split(""),(A=g.value)==null||A[w].blur()}function b(){u.value=[]}function x(w,C){s(),v.value=C}function S(){l(),v.value=-1}return Gt({VField:{color:E(()=>e.color),bgColor:E(()=>e.color),baseColor:E(()=>e.baseColor),disabled:E(()=>e.disabled),error:E(()=>e.error),variant:E(()=>e.variant)}},{scoped:!0}),Se(u,w=>{w.length===f.value&&r("finish",w.join(""))},{deep:!0}),Se(v,w=>{w<0||dt(()=>{var C;(C=g.value[w])==null||C.select()})}),ve(()=>{var T;const[w,C]=Ss(n);return I("div",ge({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},w),[I("div",{ref:h,class:"v-otp-input__content",style:[i.value]},[d.value.map((A,P)=>I(ke,null,[e.divider&&P!==0&&I("span",{class:"v-otp-input__divider"},[e.divider]),I(Kc,{focused:o.value&&e.focusAll||v.value===P,key:P},{...a,loader:void 0,default:()=>I("input",{ref:D=>g.value[P]=D,"aria-label":c(e.label,P+1),autofocus:P===0&&e.autofocus,autocomplete:"one-time-code",class:["v-otp-input__field"],disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:"1",placeholder:e.placeholder,type:e.type==="number"?"text":e.type,value:u.value[P],onInput:m,onFocus:D=>x(D,P),onBlur:S,onKeydown:y,onPaste:D=>_(P,D)},null)})])),I("input",ge({class:"v-otp-input-input",type:"hidden"},C,{value:u.value.join("")}),null),I(bi,{contained:!0,"content-class":"v-otp-input__loader","model-value":!!e.loading,persistent:!0},{default:()=>{var A;return[((A=a.loader)==null?void 0:A.call(a))??I(Dc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),(T=a.default)==null?void 0:T.call(a)])])}),{blur:()=>{var w;(w=g.value)==null||w.some(C=>C.blur())},focus:()=>{var w;(w=g.value)==null||w[0].focus()},reset:b,isFocused:o}}});function VQ(e){return Math.floor(Math.abs(e))*Math.sign(e)}const OQ=J({scale:{type:[Number,String],default:.5},...Pe()},"VParallax"),NQ=le()({name:"VParallax",props:OQ(),setup(e,t){let{slots:n}=t;const{intersectionRef:r,isIntersecting:a}=fy(),{resizeRef:i,contentRect:o}=_i(),{height:s}=xs(),l=pe();Ln(()=>{var v;r.value=i.value=(v=l.value)==null?void 0:v.$el});let u;Se(a,v=>{v?(u=tC(r.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",d,{passive:!0}),d()):u.removeEventListener("scroll",d)}),En(()=>{u==null||u.removeEventListener("scroll",d)}),Se(s,d),Se(()=>{var v;return(v=o.value)==null?void 0:v.height},d);const c=E(()=>1-vn(+e.scale));let f=-1;function d(){a.value&&(cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;const v=((x=l.value)==null?void 0:x.$el).querySelector(".v-img__img");if(!v)return;const h=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,g=u instanceof Document?window.scrollY:u.scrollTop,p=r.value.getBoundingClientRect().top+g,m=o.value.height,y=p+(m-h)/2,_=VQ((g-y)*c.value),b=Math.max(1,(c.value*(h-m)+m)/m);v.style.setProperty("transform",`translateY(${_}px) scale(${b})`)}))}return ve(()=>I(Zl,{class:["v-parallax",{"v-parallax--active":a.value},e.class],style:e.style,ref:l,cover:!0,onLoadstart:d,onLoad:d},n)),{}}}),BQ=J({...gy({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),zQ=le()({name:"VRadio",props:BQ(),setup(e,t){let{slots:n}=t;return ve(()=>I(jl,ge(e,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)),{}}});const FQ=J({height:{type:[Number,String],default:"auto"},...co(),...Sn(gC(),["multiple"]),trueIcon:{type:Je,default:"$radioOn"},falseIcon:{type:Je,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),$Q=le()({name:"VRadioGroup",inheritAttrs:!1,props:FQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=rr(),i=E(()=>e.id||`radio-group-${a}`),o=ze(e,"modelValue");return ve(()=>{const[s,l]=Ss(n),u=$n.filterProps(e),c=jl.filterProps(e),f=r.label?r.label({label:e.label,props:{for:i.value}}):e.label;return I($n,ge({class:["v-radio-group",e.class],style:e.style},s,u,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,id:i.value}),{...r,default:d=>{let{id:v,messagesId:h,isDisabled:g,isReadonly:p}=d;return I(ke,null,[f&&I(Zc,{id:v.value},{default:()=>[f]}),I(XB,ge(c,{id:v.value,"aria-describedby":h.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:g.value,readonly:p.value,"aria-labelledby":f?v.value:void 0,multiple:!1},l,{modelValue:o.value,"onUpdate:modelValue":m=>o.value=m}),r)])}})}),{}}}),GQ=J({...Zv(),...co(),...Fz(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),HQ=le()({name:"VRangeSlider",props:GQ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=pe(),i=pe(),o=pe(),{rtlClasses:s}=Rn();function l(T){if(!a.value||!i.value)return;const A=_1(T,a.value.$el,e.direction),P=_1(T,i.value.$el,e.direction),D=Math.abs(A),M=Math.abs(P);return DT!=null&&T.length?T.map(A=>u.roundValue(A)):[0,0]),{activeThumbRef:f,hasLabels:d,max:v,min:h,mousePressed:g,onSliderMousedown:p,onSliderTouchstart:m,position:y,trackContainerRef:_}=Gz({props:e,steps:u,onSliderStart:()=>{r("start",c.value)},onSliderEnd:T=>{var D;let{value:A}=T;const P=f.value===((D=a.value)==null?void 0:D.$el)?[A,c.value[1]]:[c.value[0],A];!e.strict&&P[0]{var M,L,R,O;let{value:A}=T;const[P,D]=c.value;!e.strict&&P===D&&P!==h.value&&(f.value=A>P?(M=i.value)==null?void 0:M.$el:(L=a.value)==null?void 0:L.$el,(R=f.value)==null||R.focus()),f.value===((O=a.value)==null?void 0:O.$el)?c.value=[Math.min(A,D),D]:c.value=[P,Math.max(P,A)]},getActiveThumb:l}),{isFocused:b,focus:x,blur:S}=uo(e),w=E(()=>y(c.value[0])),C=E(()=>y(c.value[1]));return ve(()=>{const T=$n.filterProps(e),A=!!(e.label||n.label||n.prepend);return I($n,ge({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||d.value,"v-slider--focused":b.value,"v-slider--pressed":g.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style,ref:o},T,{focused:b.value}),{...n,prepend:A?P=>{var D,M;return I(ke,null,[((D=n.label)==null?void 0:D.call(n,P))??(e.label?I(Zc,{class:"v-slider__label",text:e.label},null):void 0),(M=n.prepend)==null?void 0:M.call(n,P)])}:void 0,default:P=>{var L,R;let{id:D,messagesId:M}=P;return I("div",{class:"v-slider__container",onMousedown:p,onTouchstartPassive:m},[I("input",{id:`${D.value}_start`,name:e.name||D.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),I("input",{id:`${D.value}_stop`,name:e.name||D.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),I(Hz,{ref:_,start:w.value,stop:C.value},{"tick-label":n["tick-label"]}),I(b1,{ref:a,"aria-describedby":M.value,focused:b&&f.value===((L=a.value)==null?void 0:L.$el),modelValue:c.value[0],"onUpdate:modelValue":O=>c.value=[O,c.value[1]],onFocus:O=>{var H,V,G,X;x(),f.value=(H=a.value)==null?void 0:H.$el,c.value[0]===c.value[1]&&c.value[1]===h.value&&O.relatedTarget!==((V=i.value)==null?void 0:V.$el)&&((G=a.value)==null||G.$el.blur(),(X=i.value)==null||X.$el.focus())},onBlur:()=>{S(),f.value=void 0},min:h.value,max:c.value[1],position:w.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]}),I(b1,{ref:i,"aria-describedby":M.value,focused:b&&f.value===((R=i.value)==null?void 0:R.$el),modelValue:c.value[1],"onUpdate:modelValue":O=>c.value=[c.value[0],O],onFocus:O=>{var H,V,G,X;x(),f.value=(H=i.value)==null?void 0:H.$el,c.value[0]===c.value[1]&&c.value[0]===v.value&&O.relatedTarget!==((V=a.value)==null?void 0:V.$el)&&((G=i.value)==null||G.$el.blur(),(X=a.value)==null||X.$el.focus())},onBlur:()=>{S(),f.value=void 0},min:c.value[0],max:v.value,position:C.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}});const WQ=J({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Je,default:"$ratingEmpty"},fullIcon:{type:Je,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...Pe(),...Cn(),...so(),...et(),...vt()},"VRating"),UQ=le()({name:"VRating",props:WQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=cn(),{themeClasses:a}=St(e),i=ze(e,"modelValue"),o=E(()=>vn(parseFloat(i.value),0,+e.length)),s=E(()=>ci(Number(e.length),1)),l=E(()=>s.value.flatMap(g=>e.halfIncrements?[g-.5,g]:[g])),u=xe(-1),c=E(()=>l.value.map(g=>{const p=e.hover&&u.value>-1,m=o.value>=g,y=u.value>=g,b=(p?y:m)?e.fullIcon:e.emptyIcon,x=e.activeColor??e.color,S=m||y?x:e.color;return{isFilled:m,isHovered:y,icon:b,color:S}})),f=E(()=>[0,...l.value].map(g=>{function p(){u.value=g}function m(){u.value=-1}function y(){e.disabled||e.readonly||(i.value=o.value===g&&e.clearable?0:g)}return{onMouseenter:e.hover?p:void 0,onMouseleave:e.hover?m:void 0,onClick:y}})),d=E(()=>e.name??`v-rating-${rr()}`);function v(g){var C,T;let{value:p,index:m,showStar:y=!0}=g;const{onMouseenter:_,onMouseleave:b,onClick:x}=f.value[m+1],S=`${d.value}-${String(p).replace(".","-")}`,w={color:(C=c.value[m])==null?void 0:C.color,density:e.density,disabled:e.disabled,icon:(T=c.value[m])==null?void 0:T.icon,ripple:e.ripple,size:e.size,variant:"plain"};return I(ke,null,[I("label",{for:S,class:{"v-rating__item--half":e.halfIncrements&&p%1>0,"v-rating__item--full":e.halfIncrements&&p%1===0},onMouseenter:_,onMouseleave:b,onClick:x},[I("span",{class:"v-rating__hidden"},[r(e.itemAriaLabel,p,e.length)]),y?n.item?n.item({...c.value[m],props:w,value:p,index:m,rating:o.value}):I(Dt,ge({"aria-label":r(e.itemAriaLabel,p,e.length)},w),null):void 0]),I("input",{class:"v-rating__hidden",name:d.value,id:S,type:"radio",value:p,checked:o.value===p,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function h(g){return n["item-label"]?n["item-label"](g):g.label?I("span",null,[g.label]):I("span",null,[$r(" ")])}return ve(()=>{var p;const g=!!((p=e.itemLabels)!=null&&p.length)||n["item-label"];return I(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},a.value,e.class],style:e.style},{default:()=>[I(v,{value:0,index:-1,showStar:!1},null),s.value.map((m,y)=>{var _,b;return I("div",{class:"v-rating__wrapper"},[g&&e.itemLabelPosition==="top"?h({value:m,index:y,label:(_=e.itemLabels)==null?void 0:_[y]}):void 0,I("div",{class:"v-rating__item"},[e.halfIncrements?I(ke,null,[I(v,{value:m-.5,index:y*2},null),I(v,{value:m,index:y*2+1},null)]):I(v,{value:m,index:y},null)]),g&&e.itemLabelPosition==="bottom"?h({value:m,index:y,label:(b=e.itemLabels)==null?void 0:b[y]}):void 0])})]})}),{}}});const YQ={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function XQ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return I("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${e}`]},[t])}function PD(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>Ry(t))}function Ry(e){let t=[];if(!e)return t;const n=YQ[e];if(e!==n){if(e.includes(","))return DD(e);if(e.includes("@"))return PD(e);n.includes(",")?t=DD(n):n.includes("@")?t=PD(n):n&&t.push(Ry(n))}return[XQ(e,t)]}function DD(e){return e.replace(/\s/g,"").split(",").map(Ry)}const ZQ=J({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...hr(),...pn(),...vt()},"VSkeletonLoader"),jQ=le()({name:"VSkeletonLoader",props:ZQ(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Bt(se(e,"color")),{dimensionStyles:i}=gr(e),{elevationClasses:o}=Vn(e),{themeClasses:s}=St(e),{t:l}=cn(),u=E(()=>Ry(nn(e.type).join(",")));return ve(()=>{var f;const c=!n.default||e.loading;return I("div",{class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},s.value,r.value,o.value],style:[a.value,c?i.value:{}],"aria-busy":e.boilerplate?void 0:c,"aria-live":e.boilerplate?void 0:"polite","aria-label":e.boilerplate?void 0:l(e.loadingText),role:e.boilerplate?void 0:"alert"},[c?u.value:(f=n.default)==null?void 0:f.call(n)])}),{}}});function MD(e){const n=Math.abs(e);return Math.sign(e)*(n/((1/.501-2)*(1-n)+1))}function kD(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:a,currentScrollOffset:i,isHorizontal:o}=e;const s=o?t.clientWidth:t.clientHeight,l=o?t.offsetLeft:t.offsetTop,u=a&&o?r-l-s:l,c=n+i,f=s+u,d=s*.4;return u<=i?i=Math.max(u-d,0):c<=f&&(i=Math.min(i-(c-f-d),r-n)),i}function KQ(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:a,isHorizontal:i}=e;const o=i?t.clientWidth:t.clientHeight,s=i?t.offsetLeft:t.offsetTop,l=a&&i?r-s-o/2-n/2:s+o/2-n/2;return Math.min(r-n,Math.max(0,l))}const LF=Symbol.for("vuetify:v-slide-group"),EF=J({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:LF},nextIcon:{type:Je,default:"$next"},prevIcon:{type:Je,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Pe(),...rC(),...et(),...vu({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),D1=le()({name:"VSlideGroup",props:EF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Rn(),{displayClasses:a,mobile:i}=xs(e),o=ws(e,e.symbol),s=xe(!1),l=xe(0),u=xe(0),c=xe(0),f=E(()=>e.direction==="horizontal"),{resizeRef:d,contentRect:v}=_i(),{resizeRef:h,contentRect:g}=_i(),p=E(()=>o.selected.value.length?o.items.value.findIndex(Z=>Z.id===o.selected.value[0]):-1),m=E(()=>o.selected.value.length?o.items.value.findIndex(Z=>Z.id===o.selected.value[o.selected.value.length-1]):-1);if(Mt){let Z=-1;Se(()=>[o.selected.value,v.value,g.value,f.value],()=>{cancelAnimationFrame(Z),Z=requestAnimationFrame(()=>{if(v.value&&g.value){const q=f.value?"width":"height";u.value=v.value[q],c.value=g.value[q],s.value=u.value+1=0&&h.value){const q=h.value.children[m.value];p.value===0||!s.value?l.value=0:e.centerActive?l.value=KQ({selectedElement:q,containerSize:u.value,contentSize:c.value,isRtl:r.value,isHorizontal:f.value}):s.value&&(l.value=kD({selectedElement:q,containerSize:u.value,contentSize:c.value,isRtl:r.value,currentScrollOffset:l.value,isHorizontal:f.value}))}})})}const y=xe(!1);let _=0,b=0;function x(Z){const q=f.value?"clientX":"clientY";b=(r.value&&f.value?-1:1)*l.value,_=Z.touches[0][q],y.value=!0}function S(Z){if(!s.value)return;const q=f.value?"clientX":"clientY",Q=r.value&&f.value?-1:1;l.value=Q*(b+_-Z.touches[0][q])}function w(Z){const q=c.value-u.value;l.value<0||!s.value?l.value=0:l.value>=q&&(l.value=q),y.value=!1}function C(){d.value&&(d.value[f.value?"scrollLeft":"scrollTop"]=0)}const T=xe(!1);function A(Z){if(T.value=!0,!(!s.value||!h.value)){for(const q of Z.composedPath())for(const Q of h.value.children)if(Q===q){l.value=kD({selectedElement:Q,containerSize:u.value,contentSize:c.value,isRtl:r.value,currentScrollOffset:l.value,isHorizontal:f.value});return}}}function P(Z){T.value=!1}function D(Z){var q;!T.value&&!(Z.relatedTarget&&((q=h.value)!=null&&q.contains(Z.relatedTarget)))&&L()}function M(Z){h.value&&(f.value?Z.key==="ArrowRight"?L(r.value?"prev":"next"):Z.key==="ArrowLeft"&&L(r.value?"next":"prev"):Z.key==="ArrowDown"?L("next"):Z.key==="ArrowUp"&&L("prev"),Z.key==="Home"?L("first"):Z.key==="End"&&L("last"))}function L(Z){var q,Q,ae,W,F;if(h.value)if(!Z)(q=Kd(h.value)[0])==null||q.focus();else if(Z==="next"){const z=(Q=h.value.querySelector(":focus"))==null?void 0:Q.nextElementSibling;z?z.focus():L("first")}else if(Z==="prev"){const z=(ae=h.value.querySelector(":focus"))==null?void 0:ae.previousElementSibling;z?z.focus():L("last")}else Z==="first"?(W=h.value.firstElementChild)==null||W.focus():Z==="last"&&((F=h.value.lastElementChild)==null||F.focus())}function R(Z){const q=l.value+(Z==="prev"?-1:1)*u.value;l.value=vn(q,0,c.value-u.value)}const O=E(()=>{let Z=l.value>c.value-u.value?-(c.value-u.value)+MD(c.value-u.value-l.value):-l.value;l.value<=0&&(Z=MD(-l.value));const q=r.value&&f.value?-1:1;return{transform:`translate${f.value?"X":"Y"}(${q*Z}px)`,transition:y.value?"none":"",willChange:y.value?"transform":""}}),H=E(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),V=E(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return s.value||Math.abs(l.value)>0;case"mobile":return i.value||s.value||Math.abs(l.value)>0;default:return!i.value&&(s.value||Math.abs(l.value)>0)}}),G=E(()=>Math.abs(l.value)>0),X=E(()=>c.value>Math.abs(l.value)+u.value);return ve(()=>I(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":V.value,"v-slide-group--is-overflowing":s.value},a.value,e.class],style:e.style,tabindex:T.value||o.selected.value.length?-1:0,onFocus:D},{default:()=>{var Z,q,Q;return[V.value&&I("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!G.value}],onClick:()=>G.value&&R("prev")},[((Z=n.prev)==null?void 0:Z.call(n,H.value))??I(zp,null,{default:()=>[I(Ct,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),I("div",{key:"container",ref:d,class:"v-slide-group__container",onScroll:C},[I("div",{ref:h,class:"v-slide-group__content",style:O.value,onTouchstartPassive:x,onTouchmovePassive:S,onTouchendPassive:w,onFocusin:A,onFocusout:P,onKeydown:M},[(q=n.default)==null?void 0:q.call(n,H.value)])]),V.value&&I("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!X.value}],onClick:()=>X.value&&R("next")},[((Q=n.next)==null?void 0:Q.call(n,H.value))??I(zp,null,{default:()=>[I(Ct,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:R,scrollOffset:l,focus:L}}}),qQ=le()({name:"VSlideGroupItem",props:hu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=gu(e,LF);return()=>{var a;return(a=n.default)==null?void 0:a.call(n,{isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}}});function JQ(e){const t=xe(e);let n=-1;function r(){clearInterval(n)}function a(){r(),dt(()=>t.value=e)}function i(o){const s=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(s.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e-c,0),t.value<=0&&r()},l)}return nr(r),{clear:r,time:t,start:i,reset:a}}const QQ=J({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Cs({location:"bottom"}),...Yc(),...Ht(),...wa(),...vt(),...Sn(Kv({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),eee=le()({name:"VSnackbar",props:QQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{locationStyles:a}=Ts(e),{positionClasses:i}=Xc(e),{scopeId:o}=jc(),{themeClasses:s}=St(e),{colorClasses:l,colorStyles:u,variantClasses:c}=du(e),{roundedClasses:f}=qt(e),d=JQ(Number(e.timeout)),v=pe(),h=pe(),g=xe(!1);Se(r,m),Se(()=>e.timeout,m),ln(()=>{r.value&&m()});let p=-1;function m(){d.reset(),window.clearTimeout(p);const x=Number(e.timeout);if(!r.value||x===-1)return;const S=jd(h.value);d.start(S),p=window.setTimeout(()=>{r.value=!1},x)}function y(){d.reset(),window.clearTimeout(p)}function _(){g.value=!0,y()}function b(){g.value=!1,m()}return ve(()=>{const x=bi.filterProps(e),S=!!(n.default||n.text||e.text);return I(bi,ge({ref:v,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},i.value,e.class],style:e.style},x,{modelValue:r.value,"onUpdate:modelValue":w=>r.value=w,contentProps:ge({class:["v-snackbar__wrapper",s.value,l.value,f.value,c.value],style:[a.value,u.value],onPointerenter:_,onPointerleave:b},x.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0},o),{default:()=>{var w,C;return[fu(!1,"v-snackbar"),e.timer&&I("div",{key:"timer",class:"v-snackbar__timer"},[I(dy,{ref:h,active:!g.value,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":d.time.value},null)]),S&&I("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((w=n.text)==null?void 0:w.call(n))??e.text,(C=n.default)==null?void 0:C.call(n)]),n.actions&&I(ht,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[I("div",{class:"v-snackbar__actions"},[n.actions()])]})]},activator:n.activator})}),Xa({},v)}});const RF=J({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),VF=le()({name:"VStepperActions",props:RF(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=cn();function i(){n("click:prev")}function o(){n("click:next")}return ve(()=>{const s={onClick:i},l={onClick:o};return I("div",{class:"v-stepper-actions"},[I(ht,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:a(e.prevText),variant:"text"}}},{default:()=>{var u;return[((u=r.prev)==null?void 0:u.call(r,{props:s}))??I(Dt,s,null)]}}),I(ht,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:a(e.nextText),variant:"tonal"}}},{default:()=>{var u;return[((u=r.next)==null?void 0:u.call(r,{props:l}))??I(Dt,l,null)]}})])}),{}}}),OF=Wr("v-stepper-header");const tee=J({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},error:Boolean,errorIcon:{type:String,default:"$error"},icon:String,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]},...hu()},"VStepperItem"),NF=le()({name:"VStepperItem",directives:{Ripple:lo},props:tee(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=gu(e,FF,!0),a=E(()=>(r==null?void 0:r.value.value)??e.value),i=E(()=>e.rules.every(f=>f()===!0)),o=E(()=>!e.disabled&&e.editable),s=E(()=>e.error||!i.value),l=E(()=>e.complete||e.rules.length>0&&i.value),u=E(()=>s.value?e.errorIcon:l.value?e.completeIcon:e.editable?e.editIcon:e.icon),c=E(()=>({canEdit:o.value,hasError:s.value,hasCompleted:l.value,title:e.title,subtitle:e.subtitle,step:a.value,value:e.value}));return ve(()=>{var g,p,m;const f=(!r||r.isSelected.value||l.value||o.value)&&!s.value&&!e.disabled,d=!!(e.title!=null||n.title),v=!!(e.subtitle!=null||n.subtitle);function h(){r==null||r.toggle()}return Yt(I("button",{class:["v-stepper-item",{"v-stepper-item--complete":l.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":s.value},r==null?void 0:r.selectedClass.value],disabled:!e.editable,onClick:h},[I(ma,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:f?e.color:void 0,size:24},{default:()=>{var y;return[((y=n.icon)==null?void 0:y.call(n,c.value))??(u.value?I(Ct,{icon:u.value},null):a.value)]}}),I("div",{class:"v-stepper-item__content"},[d&&I("div",{key:"title",class:"v-stepper-item__title"},[((g=n.title)==null?void 0:g.call(n,c.value))??e.title]),v&&I("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((p=n.subtitle)==null?void 0:p.call(n,c.value))??e.subtitle]),(m=n.default)==null?void 0:m.call(n,c.value)])]),[[Mr("ripple"),e.ripple&&e.editable,null]])}),{}}}),nee=Symbol.for("vuetify:v-stepper"),ree=J({...Sn(wC(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),BF=le()({name:"VStepperWindow",props:ree(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=nt(nee,null),a=ze(e,"modelValue"),i=E({get(){var o;return a.value!=null||!r?a.value:(o=r.items.value.find(s=>r.selected.value.includes(s.id)))==null?void 0:o.value},set(o){a.value=o}});return ve(()=>{const o=nv.filterProps(e);return I(nv,ge({_as:"VStepperWindow"},o,{modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,class:"v-stepper-window",mandatory:!1,touch:!1}),n)}),{}}}),aee=J({...CC()},"VStepperWindowItem"),zF=le()({name:"VStepperWindowItem",props:aee(),setup(e,t){let{slots:n}=t;return ve(()=>{const r=rv.filterProps(e);return I(rv,ge({_as:"VStepperWindowItem"},r,{class:"v-stepper-window-item"}),n)}),{}}}),FF=Symbol.for("vuetify:v-stepper"),iee=J({altLabels:Boolean,bgColor:String,editable:Boolean,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},mobile:Boolean,nonLinear:Boolean,flat:Boolean,...vu({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...Cy(),...XN(RF(),["prevText","nextText"])},"VStepper"),oee=le()({name:"VStepper",props:iee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:a,prev:i,selected:o}=ws(e,FF),{color:s,editable:l,prevText:u,nextText:c}=Nv(e),f=E(()=>e.items.map((h,g)=>{const p=Dn(h,e.itemTitle,h),m=Dn(h,e.itemValue,g+1);return{title:p,value:m,raw:h}})),d=E(()=>r.value.findIndex(h=>o.value.includes(h.id))),v=E(()=>e.disabled?e.disabled:d.value===0?"prev":d.value===r.value.length-1?"next":!1);return Gt({VStepperItem:{editable:l,prevText:u,nextText:c},VStepperActions:{color:s,disabled:v,prevText:u,nextText:c}}),ve(()=>{const h=ql.filterProps(e),g=!!(n.header||e.items.length),p=e.items.length>0,m=!e.hideActions&&!!(p||n.actions);return I(ql,ge(h,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":e.mobile},e.class],style:e.style}),{default:()=>{var y,_;return[g&&I(OF,{key:"stepper-header"},{default:()=>[f.value.map((b,x)=>I(ke,null,[!!x&&I(my,null,null),I(NF,b,{default:n[`header-item.${b.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})]))]}),p&&I(BF,{key:"stepper-window"},{default:()=>[f.value.map(b=>I(zF,{value:b.value},{default:()=>{var x,S;return((x=n[`item.${b.value}`])==null?void 0:x.call(n,b))??((S=n.item)==null?void 0:S.call(n,b))}}))]}),(y=n.default)==null?void 0:y.call(n,{prev:i,next:a}),m&&(((_=n.actions)==null?void 0:_.call(n,{next:a,prev:i}))??I(VF,{key:"stepper-actions","onClick:prev":i,"onClick:next":a},n))]}})}),{prev:i,next:a}}});const see=J({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...co(),...gy()},"VSwitch"),lee=le()({name:"VSwitch",inheritAttrs:!1,props:see(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ze(e,"indeterminate"),i=ze(e,"modelValue"),{loaderClasses:o}=Uv(e),{isFocused:s,focus:l,blur:u}=uo(e),c=pe(),f=E(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),d=rr(),v=E(()=>e.id||`switch-${d}`);function h(){a.value&&(a.value=!1)}function g(p){var m,y;p.stopPropagation(),p.preventDefault(),(y=(m=c.value)==null?void 0:m.input)==null||y.click()}return ve(()=>{const[p,m]=Ss(n),y=$n.filterProps(e),_=jl.filterProps(e);return I($n,ge({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},o.value,e.class]},p,y,{modelValue:i.value,"onUpdate:modelValue":b=>i.value=b,id:v.value,focused:s.value,style:e.style}),{...r,default:b=>{let{id:x,messagesId:S,isDisabled:w,isReadonly:C,isValid:T}=b;return I(jl,ge({ref:c},_,{modelValue:i.value,"onUpdate:modelValue":[A=>i.value=A,h],id:x.value,"aria-describedby":S.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:w.value,readonly:C.value,onFocus:l,onBlur:u},m),{...r,default:A=>{let{backgroundColorClasses:P,backgroundColorStyles:D}=A;return I("div",{class:["v-switch__track",...P.value],style:D.value,onClick:g},null)},input:A=>{let{inputNode:P,icon:D,backgroundColorClasses:M,backgroundColorStyles:L}=A;return I(ke,null,[P,I("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||e.loading},e.inset?void 0:M.value],style:e.inset?void 0:L.value},[I(uC,null,{default:()=>[e.loading?I(hy,{name:"v-switch",active:!0,color:T.value===!1?void 0:f.value},{default:R=>r.loader?r.loader(R):I(Dc,{active:R.isActive,color:R.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&I(Ct,{key:D,icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const uee=J({color:String,height:[Number,String],window:Boolean,...Pe(),...pn(),...Hc(),...Ht(),...et(),...vt()},"VSystemBar"),cee=le()({name:"VSystemBar",props:uee(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Bt(se(e,"color")),{elevationClasses:o}=Vn(e),{roundedClasses:s}=qt(e),{ssrBootStyles:l}=cu(),u=E(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=Wc({id:e.name,order:E(()=>parseInt(e.order,10)),position:xe("top"),layoutSize:u,elementSize:u,active:E(()=>!0),absolute:se(e,"absolute")});return ve(()=>I(e.tag,{class:["v-system-bar",{"v-system-bar--window":e.window},r.value,a.value,o.value,s.value,e.class],style:[i.value,c.value,l.value,e.style]},n)),{}}});const $F=Symbol.for("vuetify:v-tabs"),fee=J({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Sn(hC({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),GF=le()({name:"VTab",props:fee(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:a,textColorStyles:i}=Qn(e,"sliderColor"),o=E(()=>e.direction==="horizontal"),s=xe(!1),l=pe(),u=pe();function c(f){var v,h;let{value:d}=f;if(s.value=d,d){const g=(h=(v=l.value)==null?void 0:v.$el.parentElement)==null?void 0:h.querySelector(".v-tab--selected .v-tab__slider"),p=u.value;if(!g||!p)return;const m=getComputedStyle(g).color,y=g.getBoundingClientRect(),_=p.getBoundingClientRect(),b=o.value?"x":"y",x=o.value?"X":"Y",S=o.value?"right":"bottom",w=o.value?"width":"height",C=y[b],T=_[b],A=C>T?y[S]-_[S]:y[b]-_[b],P=Math.sign(A)>0?o.value?"right":"bottom":Math.sign(A)<0?o.value?"left":"top":"center",M=(Math.abs(A)+(Math.sign(A)<0?y[w]:_[w]))/Math.max(y[w],_[w])||0,L=y[w]/_[w]||0,R=1.5;yl(p,{backgroundColor:[m,"currentcolor"],transform:[`translate${x}(${A}px) scale${x}(${L})`,`translate${x}(${A/R}px) scale${x}(${(M-1)/R+1})`,"none"],transformOrigin:Array(3).fill(P)},{duration:225,easing:qd})}}return ve(()=>{const f=Dt.filterProps(e);return I(Dt,ge({symbol:$F,ref:l,class:["v-tab",e.class],style:e.style,tabindex:s.value?0:-1,role:"tab","aria-selected":String(s.value),active:!1},f,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>{var d;return I(ke,null,[((d=n.default)==null?void 0:d.call(n))??e.text,!e.hideSlider&&I("div",{ref:u,class:["v-tab__slider",a.value],style:i.value},null)])}})}),{}}});function dee(e){return e?e.map(t=>Rp(t)?t:{text:t,value:t}):[]}const vee=J({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...EF({mandatory:"force"}),...Cn(),...et()},"VTabs"),hee=le()({name:"VTabs",props:vee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),a=E(()=>dee(e.items)),{densityClasses:i}=ar(e),{backgroundColorClasses:o,backgroundColorStyles:s}=Bt(se(e,"bgColor"));return Gt({VTab:{color:se(e,"color"),direction:se(e,"direction"),stacked:se(e,"stacked"),fixed:se(e,"fixedTabs"),sliderColor:se(e,"sliderColor"),hideSlider:se(e,"hideSlider")}}),ve(()=>{const l=D1.filterProps(e);return I(D1,ge(l,{modelValue:r.value,"onUpdate:modelValue":u=>r.value=u,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},i.value,o.value,e.class],style:[{"--v-tabs-height":Ae(e.height)},s.value,e.style],role:"tablist",symbol:$F}),{default:()=>[n.default?n.default():a.value.map(u=>I(GF,ge(u,{key:u.text}),null))]})}),{}}});const gee=J({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...co(),...qv()},"VTextarea"),pee=le()({name:"VTextarea",directives:{Intersect:Wv},inheritAttrs:!1,props:gee(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=ze(e,"modelValue"),{isFocused:o,focus:s,blur:l}=uo(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):(i.value||"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function f(P,D){var M,L;!e.autofocus||!P||(L=(M=D[0].target)==null?void 0:M.focus)==null||L.call(M)}const d=pe(),v=pe(),h=xe(""),g=pe(),p=E(()=>e.persistentPlaceholder||o.value||e.active);function m(){var P;g.value!==document.activeElement&&((P=g.value)==null||P.focus()),o.value||s()}function y(P){m(),r("click:control",P)}function _(P){r("mousedown:control",P)}function b(P){P.stopPropagation(),m(),dt(()=>{i.value="",Kw(e["onClick:clear"],P)})}function x(P){var M;const D=P.target;if(i.value=D.value,(M=e.modelModifiers)!=null&&M.trim){const L=[D.selectionStart,D.selectionEnd];dt(()=>{D.selectionStart=L[0],D.selectionEnd=L[1]})}}const S=pe(),w=pe(+e.rows),C=E(()=>["plain","underlined"].includes(e.variant));Ln(()=>{e.autoGrow||(w.value=+e.rows)});function T(){e.autoGrow&&dt(()=>{if(!S.value||!v.value)return;const P=getComputedStyle(S.value),D=getComputedStyle(v.value.$el),M=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),L=S.value.scrollHeight,R=parseFloat(P.lineHeight),O=Math.max(parseFloat(e.rows)*R+M,parseFloat(D.getPropertyValue("--v-input-control-height"))),H=parseFloat(e.maxRows)*R+M||1/0,V=vn(L??0,O,H);w.value=Math.floor((V-M)/R),h.value=Ae(V)})}ln(T),Se(i,T),Se(()=>e.rows,T),Se(()=>e.maxRows,T),Se(()=>e.density,T);let A;return Se(S,P=>{P?(A=new ResizeObserver(T),A.observe(S.value)):A==null||A.disconnect()}),En(()=>{A==null||A.disconnect()}),ve(()=>{const P=!!(a.counter||e.counter||e.counterValue),D=!!(P||a.details),[M,L]=Ss(n),{modelValue:R,...O}=$n.filterProps(e),H=_C(e);return I($n,ge({ref:d,modelValue:i.value,"onUpdate:modelValue":V=>i.value=V,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":C.value},e.class],style:e.style},M,O,{centerAffix:w.value===1&&!C.value,focused:o.value}),{...a,default:V=>{let{id:G,isDisabled:X,isDirty:Z,isReadonly:q,isValid:Q}=V;return I(Kc,ge({ref:v,style:{"--v-textarea-control-height":h.value},onClick:y,onMousedown:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},H,{id:G.value,active:p.value||Z.value,centerAffix:w.value===1&&!C.value,dirty:Z.value||e.dirty,disabled:X.value,focused:o.value,error:Q.value===!1}),{...a,default:ae=>{let{props:{class:W,...F}}=ae;return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[e.prefix]),Yt(I("textarea",ge({ref:g,class:W,value:i.value,onInput:x,autofocus:e.autofocus,readonly:q.value,disabled:X.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:m,onBlur:l},F,L),null),[[Mr("intersect"),{handler:f},null,{once:!0}]]),e.autoGrow&&Yt(I("textarea",{class:[W,"v-textarea__sizer"],id:`${F.id}-sizer`,"onUpdate:modelValue":z=>i.value=z,ref:S,readonly:!0,"aria-hidden":"true"},null),[[Pp,i.value]]),e.suffix&&I("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:D?V=>{var G;return I(ke,null,[(G=a.details)==null?void 0:G.call(a,V),P&&I(ke,null,[I("span",null,null),I(Sy,{active:e.persistentCounter||o.value,value:u.value,max:c.value},a.counter)])])}:void 0})}),Xa({},d,v,g)}});const mee=J({withBackground:Boolean,...Pe(),...vt(),...et()},"VThemeProvider"),yee=le()({name:"VThemeProvider",props:mee(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e);return()=>{var a;return e.withBackground?I(e.tag,{class:["v-theme-provider",r.value,e.class],style:e.style},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}}):(a=n.default)==null?void 0:a.call(n)}}});const _ee=J({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineInset:{type:[String,Number],default:0},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...Pe(),...Cn(),...et(),...vt()},"VTimeline"),bee=le()({name:"VTimeline",props:_ee(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=St(e),{densityClasses:a}=ar(e),{rtlClasses:i}=Rn();Gt({VTimelineDivider:{lineColor:se(e,"lineColor")},VTimelineItem:{density:se(e,"density"),lineInset:se(e,"lineInset")}});const o=E(()=>{const l=e.side?e.side:e.density!=="default"?"end":null;return l&&`v-timeline--side-${l}`}),s=E(()=>{const l=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return l;case"start":return l[0];case"end":return l[1];default:return null}});return ve(()=>I(e.tag,{class:["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,s.value,{"v-timeline--inset-line":!!e.lineInset},r.value,a.value,o.value,i.value,e.class],style:[{"--v-timeline-line-thickness":Ae(e.lineThickness)},e.style]},n)),{}}}),See=J({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:Je,iconColor:String,lineColor:String,...Pe(),...Ht(),...so(),...pn()},"VTimelineDivider"),xee=le()({name:"VTimelineDivider",props:See(),setup(e,t){let{slots:n}=t;const{sizeClasses:r,sizeStyles:a}=Uc(e,"v-timeline-divider__dot"),{backgroundColorStyles:i,backgroundColorClasses:o}=Bt(se(e,"dotColor")),{roundedClasses:s}=qt(e,"v-timeline-divider__dot"),{elevationClasses:l}=Vn(e),{backgroundColorClasses:u,backgroundColorStyles:c}=Bt(se(e,"lineColor"));return ve(()=>I("div",{class:["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class],style:e.style},[I("div",{class:["v-timeline-divider__before",u.value],style:c.value},null),!e.hideDot&&I("div",{key:"dot",class:["v-timeline-divider__dot",l.value,s.value,r.value],style:a.value},[I("div",{class:["v-timeline-divider__inner-dot",o.value,s.value],style:i.value},[n.default?I(ht,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):I(Ct,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),I("div",{class:["v-timeline-divider__after",u.value],style:c.value},null)])),{}}}),wee=J({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:Je,iconColor:String,lineInset:[Number,String],...Pe(),...hr(),...pn(),...Ht(),...so(),...et()},"VTimelineItem"),Cee=le()({name:"VTimelineItem",props:wee(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=gr(e),a=xe(0),i=pe();return Se(i,o=>{var s;o&&(a.value=((s=o.$el.querySelector(".v-timeline-divider__dot"))==null?void 0:s.getBoundingClientRect().width)??0)},{flush:"post"}),ve(()=>{var o,s;return I("div",{class:["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot},e.class],style:[{"--v-timeline-dot-size":Ae(a.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${Ae(e.lineInset)})`:Ae(0)},e.style]},[I("div",{class:"v-timeline-item__body",style:r.value},[(o=n.default)==null?void 0:o.call(n)]),I(xee,{ref:i,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&I("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&((s=n.opposite)==null?void 0:s.call(n))])])}),{}}}),Tee=J({...Pe(),...wa({variant:"text"})},"VToolbarItems"),Aee=le()({name:"VToolbarItems",props:Tee(),setup(e,t){let{slots:n}=t;return Gt({VBtn:{color:se(e,"color"),height:"inherit",variant:se(e,"variant")}}),ve(()=>{var r;return I("div",{class:["v-toolbar-items",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}});const Iee=J({id:String,text:String,...Sn(Kv({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Pee=le()({name:"VTooltip",props:Iee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ze(e,"modelValue"),{scopeId:a}=jc(),i=rr(),o=E(()=>e.id||`v-tooltip-${i}`),s=pe(),l=E(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=E(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=E(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),f=E(()=>ge({"aria-describedby":o.value},e.activatorProps));return ve(()=>{const d=bi.filterProps(e);return I(bi,ge({ref:s,class:["v-tooltip",e.class],style:e.style,id:o.value},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},a),{activator:n.activator,default:function(){var p;for(var v=arguments.length,h=new Array(v),g=0;g!0},setup(e,t){let{slots:n}=t;const r=QB(e,"validation");return()=>{var a;return(a=n.default)==null?void 0:a.call(n,r)}}}),Mee=Object.freeze(Object.defineProperty({__proto__:null,VAlert:hj,VAlertTitle:UB,VApp:wZ,VAppBar:HZ,VAppBarNavIcon:cj,VAppBarTitle:fj,VAutocomplete:kK,VAvatar:ma,VBadge:EK,VBanner:OK,VBannerActions:Iz,VBannerText:Pz,VBottomNavigation:BK,VBottomSheet:FK,VBreadcrumbs:WK,VBreadcrumbsDivider:Mz,VBreadcrumbsItem:kz,VBtn:Dt,VBtnGroup:l1,VBtnToggle:jZ,VCard:XK,VCardActions:Lz,VCardItem:Vz,VCardSubtitle:Ez,VCardText:Oz,VCardTitle:Rz,VCarousel:nq,VCarouselItem:aq,VCheckbox:wj,VCheckboxBtn:ji,VChip:jv,VChipGroup:Tj,VClassIcon:iC,VCode:iq,VCol:EJ,VColorPicker:Xq,VCombobox:Kq,VComponentIcon:i1,VContainer:DJ,VCounter:Sy,VDataIterator:sJ,VDataTable:wJ,VDataTableFooter:av,VDataTableRow:OC,VDataTableRows:Jl,VDataTableServer:IJ,VDataTableVirtual:TJ,VDatePicker:YJ,VDatePickerControls:C1,VDatePickerHeader:T1,VDatePickerMonth:A1,VDatePickerMonths:I1,VDatePickerYears:P1,VDefaultsProvider:ht,VDialog:p1,VDialogBottomTransition:IZ,VDialogTopTransition:PZ,VDialogTransition:uy,VDivider:my,VExpandTransition:cy,VExpandXTransition:fC,VExpansionPanel:JJ,VExpansionPanelText:PF,VExpansionPanelTitle:MF,VExpansionPanels:jJ,VFabTransition:AZ,VFadeTransition:zp,VField:Kc,VFieldLabel:Jf,VFileInput:eQ,VFooter:nQ,VForm:aQ,VHover:oQ,VIcon:Ct,VImg:Zl,VInfiniteScroll:lQ,VInput:$n,VItem:fQ,VItemGroup:cQ,VKbd:dQ,VLabel:Zc,VLayout:hQ,VLayoutItem:pQ,VLazy:yQ,VLigatureIcon:sZ,VList:yy,VListGroup:d1,VListImg:Uj,VListItem:Ki,VListItemAction:Xj,VListItemMedia:jj,VListItemSubtitle:sz,VListItemTitle:lz,VListSubheader:uz,VLocaleProvider:bQ,VMain:xQ,VMenu:by,VMessages:KB,VNavigationDrawer:kQ,VNoSsr:LQ,VOtpInput:RQ,VOverlay:bi,VPagination:x1,VParallax:NQ,VProgressCircular:Dc,VProgressLinear:dy,VRadio:zQ,VRadioGroup:$Q,VRangeSlider:HQ,VRating:UQ,VResponsive:o1,VRow:FJ,VScaleTransition:uC,VScrollXReverseTransition:MZ,VScrollXTransition:DZ,VScrollYReverseTransition:LZ,VScrollYTransition:kZ,VSelect:Az,VSelectionControl:jl,VSelectionControlGroup:XB,VSheet:ql,VSkeletonLoader:jQ,VSlideGroup:D1,VSlideGroupItem:qQ,VSlideXReverseTransition:RZ,VSlideXTransition:EZ,VSlideYReverseTransition:VZ,VSlideYTransition:cC,VSlider:S1,VSnackbar:eee,VSpacer:xF,VStepper:oee,VStepperActions:VF,VStepperHeader:OF,VStepperItem:NF,VStepperWindow:BF,VStepperWindowItem:zF,VSvgIcon:aC,VSwitch:lee,VSystemBar:cee,VTab:GF,VTable:Ql,VTabs:hee,VTextField:Kl,VTextarea:pee,VThemeProvider:yee,VTimeline:bee,VTimelineItem:Cee,VToolbar:s1,VToolbarItems:Aee,VToolbarTitle:lC,VTooltip:Pee,VValidation:Dee,VVirtualScroll:wy,VWindow:nv,VWindowItem:rv},Symbol.toStringTag,{value:"Module"}));function kee(e,t){const n=t.modifiers||{},r=t.value,{once:a,immediate:i,...o}=n,s=!Object.keys(o).length,{handler:l,options:u}=typeof r=="object"?r:{handler:r,options:{attributes:(o==null?void 0:o.attr)??s,characterData:(o==null?void 0:o.char)??s,childList:(o==null?void 0:o.child)??s,subtree:(o==null?void 0:o.sub)??s}},c=new MutationObserver(function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1?arguments[1]:void 0;l==null||l(f,d),a&&HF(e,t)});i&&(l==null||l([],c)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function HF(e,t){var n;(n=e._mutate)!=null&&n[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const Lee={mounted:kee,unmounted:HF};function Eee(e,t){var a,i;const n=t.value,r={passive:!((a=t.modifiers)!=null&&a.active)};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:r},(i=t.modifiers)!=null&&i.quiet||n()}function Ree(e,t){var a;if(!((a=e._onResize)!=null&&a[t.instance.$.uid]))return;const{handler:n,options:r}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,r),delete e._onResize[t.instance.$.uid]}const Vee={mounted:Eee,unmounted:Ree};function WF(e,t){const{self:n=!1}=t.modifiers??{},r=t.value,a=typeof r=="object"&&r.options||{passive:!0},i=typeof r=="function"||"handleEvent"in r?r:r.handler,o=n?e:t.arg?document.querySelector(t.arg):window;o&&(o.addEventListener("scroll",i,a),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:i,options:a,target:n?void 0:o})}function UF(e,t){var i;if(!((i=e._onScroll)!=null&&i[t.instance.$.uid]))return;const{handler:n,options:r,target:a=e}=e._onScroll[t.instance.$.uid];a.removeEventListener("scroll",n,r),delete e._onScroll[t.instance.$.uid]}function Oee(e,t){t.value!==t.oldValue&&(UF(e,t),WF(e,t))}const Nee={mounted:WF,unmounted:UF,updated:Oee},Bee=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:xz,Intersect:Wv,Mutate:Lee,Resize:Vee,Ripple:lo,Scroll:Nee,Touch:xC},Symbol.toStringTag,{value:"Module"})),zee="dark",Fee={dark:{colors:{primary:"#212121",secondary:"#424242",accent:"#4caf50",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#8bc34a"}},light:{colors:{primary:"#37474F",secondary:"#90A4AE",accent:"#4caf50",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#8bc34a"}}},$ee={defaultTheme:zee,themes:Fee},U0=e=>e&&typeof e=="object"&&!Array.isArray(e),M1=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(U0(e)&&U0(n))for(const r in n)U0(n[r])?(e[r]||Object.assign(e,{[r]:{}}),M1(e[r],n[r])):Object.assign(e,{[r]:n[r]});return M1(e,...t)},Gee=M1({},{de:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Einstellungen"])},header:{title:e=>{const{normalize:t}=e;return t(["Kopfzeile"])},barTitle:e=>{const{normalize:t}=e;return t(["Kopfzeile"])},imageUrl:e=>{const{normalize:t}=e;return t(["URL für Hintergrundbild"])},imageUrlPlaceholder:e=>{const{normalize:t}=e;return t(["https://picsum.photos/1920/1080?random"])},imageGradient:e=>{const{normalize:t}=e;return t(["Farbverlauf (CSS Linear Gradient Definition)"])},imageGradientPlaceholder:e=>{const{normalize:t}=e;return t(["to top, rgba(33, 33, 33, 0.6), rgba(33, 33, 33, 0.6)"])},showTime:e=>{const{normalize:t}=e;return t(["Uhrzeit"])},showTimeHint:e=>{const{normalize:t}=e;return t(["Anzeige der Uhrzeit in der Kopfzeile"])},showDate:e=>{const{normalize:t}=e;return t(["Datum"])},showDateHint:e=>{const{normalize:t}=e;return t(["Anzeige des Datums in der Kopfzeile"])},showTitle:e=>{const{normalize:t}=e;return t(["Navigation"])},showTitleHint:e=>{const{normalize:t}=e;return t(["Anzeige des aktuellen Navigationspunktes in der Kopfzeile"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Optionsmenü"])},showDarkMode:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},showDarkModeHint:e=>{const{normalize:t}=e;return t([])},showReloadPage:e=>{const{normalize:t}=e;return t(["Seite aktualsieren"])},showReloadPageHint:e=>{const{normalize:t}=e;return t([])},showSettings:e=>{const{normalize:t}=e;return t(["Einstellungen"])},showSettingsHint:e=>{const{normalize:t}=e;return t([])},showLanguages:e=>{const{normalize:t}=e;return t(["Sprachen"])},showLanguagesHint:e=>{const{normalize:t}=e;return t([])},optionsCommandTitle:e=>{const{normalize:t}=e;return t(["Optionsmenü FHEM Befehle"])},commandName:e=>{const{normalize:t}=e;return t(["Name"])},commandNamePlaceholder:e=>{const{normalize:t}=e;return t(["restart"])},commandNameRules:e=>{const{normalize:t}=e;return t(["Eingabe erforderlich!"])},commandTitle:e=>{const{normalize:t}=e;return t(["Beschriftung"])},commandTitlePlaceholder:e=>{const{normalize:t}=e;return t(["FHEM Neustart od. %t(optionRestart)"])},commandIcon:e=>{const{normalize:t}=e;return t(["Icon"])},commandIconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-rocket"])},commandCmd:e=>{const{normalize:t}=e;return t(["FHEM Befehl"])},commandCmdPlaceholder:e=>{const{normalize:t}=e;return t(["shutdown restart"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Beschriftung"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Startseite od. %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},groupAsChips:e=>{const{normalize:t}=e;return t(["Kompakt"])},groupAsChipsHint:e=>{const{normalize:t}=e;return t(["Kompakte Darstellung untergeordneter Navigationspunkte"])},sort:e=>{const{normalize:t}=e;return t(["sortiert"])},sortHint:e=>{const{normalize:t}=e;return t(["Sortiert untergeordneter Navigationspunkte aufsteigend"])},divider:e=>{const{normalize:t}=e;return t(["Trennlinie"])},dividerHint:e=>{const{normalize:t}=e;return t(["Trennlinie unterhalb des Navigationspunktes"])}},props:{panel:e=>{const{normalize:t}=e;return t(["Allgemein"])},status:e=>{const{normalize:t}=e;return t(["Statuszeile"])},level:e=>{const{normalize:t}=e;return t(["Ebene allgemein"])},main:e=>{const{normalize:t}=e;return t(["Ebenen"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infozeile"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["erweitert"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Vorschau"])},search:e=>{const{normalize:t}=e;return t(["Panel suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neues Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Vorlage"]),t(["Vorlagen"])])},search:e=>{const{normalize:t}=e;return t(["Vorlage suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neue Vorlage"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Farben"])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Sprache"]),t(["Sprachen"])])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])},newLang:e=>{const{normalize:t}=e;return t(["neue Sprache (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Variable suchen"])},key:e=>{const{normalize:t}=e;return t(["Variable"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Erforderlich!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel ist bereits vorhanden!"])},iso639code:e=>{const{normalize:t}=e;return t(["Eingabe muss ISO-639-1-Code entsprechen!"])},langUnique:e=>{const{normalize:t}=e;return t(["Sprache ist bereits vorhanden!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Variable ist bereits vorhanden!"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},reload:e=>{const{normalize:t}=e;return t(["Aktualisieren"])},settings:e=>{const{normalize:t}=e;return t(["Einstellungen"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Systeminformationen"])},onlyConfig:e=>{const{normalize:t}=e;return t(["nur Config anzeigen"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Prüfe ob FHEM erreichbar ist oder die URL Verbindungsparameter (?protocol=...&server=...&port=...&path=...) korrekt sind, falls diese angegeben wurden."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device nicht gefunden"])},text:e=>{const{normalize:t}=e;return t(["Das FHEM Device das in der URL angegeben wurde (http://url/index.html#/fhemappdevice/...) konnte nicht gefunden werden."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Bei der Verarbeitung einer JSON Definition ist ein Fehler aufgetreten. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Fehler bei der Verarbeitung der Konfiguration. Die Decodierung der base64-codierten Konfiguarationsdaten ist fehlgeschlagen. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["Keine Einstellungen gefunden"])},text:e=>{const{normalize:t}=e;return t(["Für diese Instanz wurden noch keine Einstellungen vorgenommen. Bitte zuerst die Grundeinstellungen für FHEMapp vornehmen und speichern."])}},config:{title:e=>{const{normalize:t}=e;return t(["Laden der Konfiguration fehalgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Es konnten keine Konfiguationsdaten verarbeitet werden. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket Verbidnung fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Der verwendete Browser unterstützt keine WEBSocket-Verbidnungen. Es wurde deshalb eine Longpoll-Verbindung zu FHEM hergestellt. Zum Deaktivieren dieser Meldung solltest du den URL Parameter für Longpoll-Verbindungen (?xhr=1) verwenden."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM wurde unterbrochen"])},text:e=>{const{normalize:t}=e;return t(["Neuer Verbindungsversuch erfolgt in 3 Sekunden... Prüfe ob FHEM erreichbar ist, wenn der Fehler weiterhin auftritt."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Konfiguration enthält keine Panels"])},text:e=>{const{normalize:t}=e;return t(["Bitte erstelle zuerst Panels in den Einstellungen von FHEMapp."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Daten wurden in die Zwischenablage kopiert."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Prüfe die Reihenfolge der Definitionen. Die Definition ohne Bedingung sollte immer am Ende stehen."])}}},default:e=>{const{normalize:t}=e;return t(["Standard"])}}}},{en:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Settings"])},header:{title:e=>{const{normalize:t}=e;return t(["Header"])},barTitle:e=>{const{normalize:t}=e;return t(["Header"])},imageUrl:e=>{const{normalize:t}=e;return t(["URL for background image"])},imageUrlPlaceholder:e=>{const{normalize:t}=e;return t(["https://picsum.photos/1920/1080?random"])},imageGradient:e=>{const{normalize:t}=e;return t(["Color gradient (CSS Linear Gradient Definition)"])},imageGradientPlaceholder:e=>{const{normalize:t}=e;return t(["to top, rgba(33, 33, 33, 0.6), rgba(33, 33, 33, 0.6)"])},showTime:e=>{const{normalize:t}=e;return t(["Time"])},showTimeHint:e=>{const{normalize:t}=e;return t(["Show time in the header"])},showDate:e=>{const{normalize:t}=e;return t(["Date"])},showDateHint:e=>{const{normalize:t}=e;return t(["Show date in the header"])},showTitle:e=>{const{normalize:t}=e;return t(["Navigation"])},showTitleHint:e=>{const{normalize:t}=e;return t(["Show navigationpoint in the header"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Optionsmenu"])},showDarkMode:e=>{const{normalize:t}=e;return t(["Day/Night mode"])},showDarkModeHint:e=>{const{normalize:t}=e;return t([])},showReloadPage:e=>{const{normalize:t}=e;return t(["Page refresh"])},showReloadPageHint:e=>{const{normalize:t}=e;return t([])},showSettings:e=>{const{normalize:t}=e;return t(["Sesstings"])},showSettingsHint:e=>{const{normalize:t}=e;return t([])},showLanguages:e=>{const{normalize:t}=e;return t(["Languages"])},showLanguagesHint:e=>{const{normalize:t}=e;return t([])},optionsCommandTitle:e=>{const{normalize:t}=e;return t(["Optionsmenu FHEM Commands"])},commandName:e=>{const{normalize:t}=e;return t(["Name"])},commandNamePlaceholder:e=>{const{normalize:t}=e;return t(["restart"])},commandNameRules:e=>{const{normalize:t}=e;return t(["Input required!"])},commandTitle:e=>{const{normalize:t}=e;return t(["Label"])},commandTitlePlaceholder:e=>{const{normalize:t}=e;return t(["FHEM Restart or %t(optionRestart)"])},commandIcon:e=>{const{normalize:t}=e;return t(["Icon"])},commandIconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-rocket"])},commandCmd:e=>{const{normalize:t}=e;return t(["FHEM Command"])},commandCmdPlaceholder:e=>{const{normalize:t}=e;return t(["shutdown restart"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Label"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Homepage or %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},groupAsChips:e=>{const{normalize:t}=e;return t(["compact"])},groupAsChipsHint:e=>{const{normalize:t}=e;return t(["Compact display of subordinate navigation points"])},sort:e=>{const{normalize:t}=e;return t(["sorted"])},sortHint:e=>{const{normalize:t}=e;return t(["Sorts subordinate navigation points in ascending order"])},divider:e=>{const{normalize:t}=e;return t(["divider"])},dividerHint:e=>{const{normalize:t}=e;return t(["Divider line below the navigation point"])}},props:{panel:e=>{const{normalize:t}=e;return t(["General"])},status:e=>{const{normalize:t}=e;return t(["Statusbar"])},level:e=>{const{normalize:t}=e;return t(["Level general"])},main:e=>{const{normalize:t}=e;return t(["Levels"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infoline"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["Advanced"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Preview"])},search:e=>{const{normalize:t}=e;return t(["Panel search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Template"]),t(["Templates"])])},search:e=>{const{normalize:t}=e;return t(["Template search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Template"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Colors"])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Language"]),t(["Languages"])])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])},newLang:e=>{const{normalize:t}=e;return t(["new Language (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Key search"])},key:e=>{const{normalize:t}=e;return t(["Key"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Required!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel is already defined!"])},iso639code:e=>{const{normalize:t}=e;return t(["Input must correspond to ISO 639-1 code!"])},langUnique:e=>{const{normalize:t}=e;return t(["Language is already defined!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Key is already defined!"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Day/Night Mode"])},reload:e=>{const{normalize:t}=e;return t(["Refresh"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Internals"])},onlyConfig:e=>{const{normalize:t}=e;return t(["show only config"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM failed"])},text:e=>{const{normalize:t}=e;return t(["Check if FHEM is reachable or if the URL connection parameters (?protocol=...&server=...&port=...&path=...) are correct, if specified."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device not found"])},text:e=>{const{normalize:t}=e;return t(["The FHEM device specified in the URL (http://url/index.html#/fhemappdevice/...) could not be found."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["An error has occurred while processing a JSON definition. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["Error processing the configuration. The decoding of the base64-encoded configuration data has failed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["No settings found"])},text:e=>{const{normalize:t}=e;return t(["No settings have yet been made for this instance. Please make and save the basic settings for FHEMapp first."])}},config:{title:e=>{const{normalize:t}=e;return t(["Failed to load the configuration"])},text:e=>{const{normalize:t}=e;return t(["No configuration data could be processed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket connection failed"])},text:e=>{const{normalize:t}=e;return t(["The browser used does not support WEBSocket connections. A longpoll connection to FHEM has therefore been established. To deactivate this message, you should use the URL parameter for longpoll connections (?xhr=1)."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM was interrupted"])},text:e=>{const{normalize:t}=e;return t(["New connection attempt will be made in 3 seconds... Check whether FHEM can be reached if the error still occurs."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Configuration does not contain any panels"])},text:e=>{const{normalize:t}=e;return t(["Please create panels in the FHEMapp settings first."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Data has been copied to the clipboard."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Check the order of the definitions. The definition without a condition should always be at the end."])}}},default:e=>{const{normalize:t}=e;return t(["Default"])}}}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -58,7 +58,7 @@ 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 L1=function(e,t){return L1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},L1(e,t)};function ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");L1(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Hee=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Wee=function(){function e(){this.browser=new Hee,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 e}(),rl=new Wee;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(rl.wxa=!0,rl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?rl.worker=!0:typeof navigator>"u"?(rl.node=!0,rl.svgSupported=!0):Uee(navigator.userAgent,rl);function Uee(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}const st=rl;var $C=12,YF="sans-serif",ls=$C+"px "+YF,Yee=20,Xee=100,Zee="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jee(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=o*n.length;else for(var l=0;l"u"&&typeof self<"u"?rl.worker=!0:typeof navigator>"u"?(rl.node=!0,rl.svgSupported=!0):Uee(navigator.userAgent,rl);function Uee(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}const st=rl;var $C=12,YF="sans-serif",ls=$C+"px "+YF,Yee=20,Xee=100,Zee="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jee(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=o*n.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function yte(e,t,n){for(var r=n?"invTrans":"trans",a=t[r],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,v=c.top;o.push(d,v),l=l&&i&&d===i[f]&&v===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[r]=n?VD(s,o):VD(o,s))}function QF(e){return e.nodeName.toUpperCase()==="CANVAS"}var _te=/([&<>"'])/g,bte={"&":"&","<":"<",">":">",'"':""","'":"'"};function br(e){return e==null?"":(e+"").replace(_te,function(t,n){return bte[n]})}var Ste=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z0=[],xte=st.browser.firefox&&+st.browser.version.split(".")[0]<39;function F1(e,t,n,r){return n=n||{},r?ND(e,t,n):xte&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):ND(e,t,n),n}function ND(e,t,n){if(st.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(QF(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(z1(Z0,e,r,a)){n.zrX=Z0[0],n.zrY=Z0[1];return}}n.zrX=n.zrY=0}function ZC(e){return e||window.event}function Qr(e,t,n){if(t=ZC(t),t.zrX!=null)return t;var r=t.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&F1(e,o,t,n)}else{F1(e,t,t,n);var i=wte(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ste.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function wte(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function $1(e,t,n,r){e.addEventListener(t,n,r)}function Cte(e,t,n,r){e.removeEventListener(t,n,r)}var qi=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function BD(e){return e.which===2||e.which===3}var Tte=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var a=t.touches;if(a){for(var i={points:[],touches:[],target:n,event:t},o=0,s=a.length;o1&&r&&r.length>1){var i=zD(r)/zD(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Ate(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function ya(){return[1,0,0,1,0,0]}function zy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function jC(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Wi(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function xi(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function mu(e,t,n){var r=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function KC(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e}function Qc(e,t){var n=t[0],r=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=n*o-i*r;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*a)*l,e[5]=(i*a-n*s)*l,e):null}function Ite(e){var t=ya();return jC(t,e),t}var Pte=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var i=1-a;t.x=i*n.x+a*r.x,t.y=i*n.y+a*r.y},e}();const We=Pte;var $h=Math.min,Gh=Math.max,Es=new We,Rs=new We,Vs=new We,Os=new We,Sf=new We,xf=new We,Dte=function(){function e(t,n,r,a){r<0&&(t=t+r,r=-r),a<0&&(n=n+a,a=-a),this.x=t,this.y=n,this.width=r,this.height=a}return e.prototype.union=function(t){var n=$h(t.x,this.x),r=$h(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Gh(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Gh(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,a=t.height/n.height,i=ya();return xi(i,i,[-n.x,-n.y]),KC(i,i,[r,a]),xi(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ih&&(h=_,gh&&(h=b,m=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];t.x=n.x*a+o,t.y=n.y*i+s,t.width=n.width*a,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Es.x=Vs.x=n.x,Es.y=Os.y=n.y,Rs.x=Os.x=n.x+n.width,Rs.y=Vs.y=n.y+n.height,Es.transform(r),Os.transform(r),Rs.transform(r),Vs.transform(r),t.x=$h(Es.x,Rs.x,Vs.x,Os.x),t.y=$h(Es.y,Rs.y,Vs.y,Os.y);var l=Gh(Es.x,Rs.x,Vs.x,Os.x),u=Gh(Es.y,Rs.y,Vs.y,Os.y);t.width=l-t.x,t.height=u-t.y},e}();const Xe=Dte;var e5="silent";function Mte(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:kte}}function kte(){qi(this.event)}var Lte=function(e){Ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ca),wf=function(){function e(t,n){this.x=t,this.y=n}return e}(),Ete=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],K0=new Xe(0,0,0,0),t5=function(e){Ot(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new wf(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Lte,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new vte(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(k(Ete,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=n5(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new wf(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new wf(0,0)},t.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=Mte(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new wf(n,r);if(FD(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Xe(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(K0.copy(d.getBoundingRect()),d.transform&&K0.applyTransform(d.transform),K0.intersect(c)&&s.push(d))}if(s.length)for(var v=4,h=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function Rte(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?e5:!0}return!1}function FD(e,t,n,r,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=Rte(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==e5)){t.target=o;break}}}function n5(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const Vte=t5;var r5=32,Cf=7;function Ote(e){for(var t=0;e>=r5;)t|=e&1,e>>=1;return e+t}function $D(e,t,n,r){var a=t+1;if(a===n)return 1;if(r(e[a++],e[t])<0){for(;a=0;)a++;return a-t}function Nte(e,t,n){for(n--;t>>1,a(i,e[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function q0(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(e,t[n+c])>0?o=c+1:l=c}return l}function J0(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(e,t[n+c])<0?l=c:o=c+1}return l}function Bte(e,t){var n=Cf,r,a,i=0;e.length;var o=[];r=[],a=[];function s(v,h){r[i]=v,a[i]=h,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]=Cf||w>=Cf);if(C)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),h===1){for(m=0;m=0;m--)e[S+m]=e[x+m];e[b]=o[_];return}for(var w=n;;){var C=0,T=0,A=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,T=0,--h===0){A=!0;break}}else if(e[b--]=o[_--],T++,C=0,--p===1){A=!0;break}while((C|T)=0;m--)e[S+m]=e[x+m];if(h===0){A=!0;break}}if(e[b--]=o[_--],--p===1){A=!0;break}if(T=p-q0(e[y],o,0,p,p-1,t),T!==0){for(b-=T,_-=T,p-=T,S=b+1,x=_+1,m=0;m=Cf||T>=Cf);if(A)break;w<0&&(w=0),w+=2}if(n=w,n<1&&(n=1),p===1){for(b-=h,y-=h,S=b+1,x=y+1,m=h-1;m>=0;m--)e[S+m]=e[x+m];e[b]=o[_]}else{if(p===0)throw new Error;for(x=b-(p-1),m=0;ms&&(l=s),GD(e,n,n+l,n+i,t),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Br=1,Qf=2,qu=4,HD=!1;function Q0(){HD||(HD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function WD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var zte=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=WD}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(Q0(),c.z=0),isNaN(c.z2)&&(Q0(),c.z2=0),isNaN(c.zlevel)&&(Q0(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const Fte=zte;var a5;a5=st.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const G1=a5;var ep={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ep.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ep.bounceIn(e*2)*.5:ep.bounceOut(e*2-1)*.5+.5}};const i5=ep;var Hh=Math.pow,Qo=Math.sqrt,Wp=1e-8,o5=1e-4,UD=Qo(3),Wh=1/3,si=pu(),aa=pu(),vc=pu();function Wo(e){return e>-Wp&&eWp||e<-Wp}function mn(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function YD(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function Up(e,t,n,r,a,i){var o=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,v=0;if(Wo(c)&&Wo(f))if(Wo(s))i[0]=0;else{var h=-l/s;h>=0&&h<=1&&(i[v++]=h)}else{var g=f*f-4*c*d;if(Wo(g)){var p=f/c,h=-s/o+p,m=-p/2;h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m)}else if(g>0){var y=Qo(g),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Hh(-_,Wh):_=Hh(_,Wh),b<0?b=-Hh(-b,Wh):b=Hh(b,Wh);var h=(-s-(_+b))/(3*o);h>=0&&h<=1&&(i[v++]=h)}else{var x=(2*c*s-3*o*f)/(2*Qo(c*c*c)),S=Math.acos(x)/3,w=Qo(c),C=Math.cos(S),h=(-s-2*w*C)/(3*o),m=(-s+w*(C+UD*Math.sin(S)))/(3*o),T=(-s+w*(C-UD*Math.sin(S)))/(3*o);h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m),T>=0&&T<=1&&(i[v++]=T)}}return v}function l5(e,t,n,r,a){var i=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Wo(o)){if(s5(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Wo(c))a[0]=-i/(2*o);else if(c>0){var f=Qo(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function cs(e,t,n,r,a,i){var o=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function u5(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,v=1/0,h,g,p,m;si[0]=l,si[1]=u;for(var y=0;y<1;y+=.05)aa[0]=mn(e,n,a,o,y),aa[1]=mn(t,r,i,s,y),p=Vl(si,aa),p=0&&p=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Wo(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Qo(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function c5(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function lv(e,t,n,r,a){var i=(t-e)*r+e,o=(n-t)*r+t,s=(o-i)*r+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function f5(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;si[0]=o,si[1]=s;for(var d=0;d<1;d+=.05){aa[0]=An(e,n,a,d),aa[1]=An(t,r,i,d);var v=Vl(si,aa);v=0&&v=1?1:Up(0,r,i,1,l,s)&&mn(0,a,o,1,s[0])}}}var Ute=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||rn,this.ondestroy=t.ondestroy||rn,this.onrestart=t.onrestart||rn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Le(t)?t:i5[t]||qC(t)},e}();const Yte=Ute;var d5=function(){function e(t){this.value=t}return e}(),Xte=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new d5(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Zte=function(){function e(t){this._list=new Xte,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,a=this._map,i=null;if(a[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new d5(n),s.key=t,r.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const eh=Zte;var XD={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 za(e){return e=Math.round(e),e<0?0:e>255?255:e}function jte(e){return e=Math.round(e),e<0?0:e>360?360:e}function uv(e){return e<0?0:e>1?1:e}function e_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?za(parseFloat(t)/100*255):za(parseInt(t,10))}function Ol(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?uv(parseFloat(t)/100):uv(parseFloat(t))}function t_(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Uo(e,t,n){return e+(t-e)*n}function Jr(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function W1(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var v5=new eh(20),Uh=null;function Mu(e,t){Uh&&W1(Uh,t),Uh=v5.put(e,Uh||t.slice())}function zr(e,t){if(e){t=t||[];var n=v5.get(e);if(n)return W1(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in XD)return W1(t,XD[r]),Mu(e,t),t;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Jr(t,0,0,0,1);return}return Jr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mu(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Jr(t,0,0,0,1);return}return Jr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mu(e,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Jr(t,+u[0],+u[1],+u[2],1):Jr(t,0,0,0,1);c=Ol(u.pop());case"rgb":if(u.length>=3)return Jr(t,e_(u[0]),e_(u[1]),e_(u[2]),u.length===3?c:Ol(u[3])),Mu(e,t),t;Jr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Jr(t,0,0,0,1);return}return u[3]=Ol(u[3]),U1(u,t),Mu(e,t),t;case"hsl":if(u.length!==3){Jr(t,0,0,0,1);return}return U1(u,t),Mu(e,t),t;default:return}}Jr(t,0,0,0,1)}}function U1(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ol(e[1]),a=Ol(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],Jr(t,za(t_(o,i,n+1/3)*255),za(t_(o,i,n)*255),za(t_(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Kte(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;t===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function Y1(e,t){var n=zr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ui(n,n.length===4?"rgba":"rgb")}}function n_(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=t[a],s=t[i],l=r-a;return n[0]=za(Uo(o[0],s[0],l)),n[1]=za(Uo(o[1],s[1],l)),n[2]=za(Uo(o[2],s[2],l)),n[3]=uv(Uo(o[3],s[3],l)),n}}function qte(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=zr(t[a]),s=zr(t[i]),l=r-a,u=Ui([za(Uo(o[0],s[0],l)),za(Uo(o[1],s[1],l)),za(Uo(o[2],s[2],l)),uv(Uo(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function Sd(e,t,n,r){var a=zr(e);if(e)return a=Kte(a),t!=null&&(a[0]=jte(t)),n!=null&&(a[1]=Ol(n)),r!=null&&(a[2]=Ol(r)),Ui(U1(a),"rgba")}function Yp(e,t){var n=zr(e);if(n&&t!=null)return n[3]=uv(t),Ui(n,"rgba")}function Ui(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function Xp(e,t){var n=zr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Zp=Math.round;function cv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=zr(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var ZD=1e-4;function Yo(e){return e-ZD}function Yh(e){return Zp(e*1e3)/1e3}function X1(e){return Zp(e*1e4)/1e4}function Jte(e){return"matrix("+Yh(e[0])+","+Yh(e[1])+","+Yh(e[2])+","+Yh(e[3])+","+X1(e[4])+","+X1(e[5])+")"}var Qte={left:"start",right:"end",center:"middle",middle:"middle"};function ene(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function tne(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function nne(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function h5(e){return e&&!!e.image}function rne(e){return e&&!!e.svgElement}function JC(e){return h5(e)||rne(e)}function g5(e){return e.type==="linear"}function p5(e){return e.type==="radial"}function m5(e){return e&&(e.type==="linear"||e.type==="radial")}function Fy(e){return"url(#"+e+")"}function y5(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function _5(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Kg,a=Ue(e.scaleX,1),i=Ue(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Zp(o*Kg)+"deg, "+Zp(s*Kg)+"deg)"),l.join(" ")}var ane=function(){return st.hasGlobalWindow&&Le(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Z1=Array.prototype.slice;function Oi(e,t,n){return(t-e)*n+e}function r_(e,t,n,r){for(var a=t.length,i=0;ir?t:e,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=KD,l=n;if(er(n)){var u=lne(n);s=u,(u===1&&!ut(n[0])||u===2&&!ut(n[0][0]))&&(o=!0)}else if(ut(n)&&!sv(n))s=Zh;else if(we(n))if(!isNaN(+n))s=Zh;else{var c=zr(n);c&&(l=c,s=ed)}else if(Ny(n)){var f=oe({},l);f.colorStops=fe(n.colorStops,function(v){return{offset:v.offset,color:zr(v.color)}}),g5(n)?s=j1:p5(n)&&(s=K1),l=f}i===0?this.valType=s:(s!==this.valType||s===KD)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Le(r)?r:i5[r]||qC(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(g,p){return g.time-p.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=jh(a),u=qD(a),c=0;c=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}h=o[c+1],v=o[c]}if(v&&h){this._lastFr=c,this._lastFrP=n;var p=h.percent-v.percent,m=p===0?1:d((n-v.percent)/p,1);h.easingFunc&&(m=h.easingFunc(m));var y=r?this._additiveValue:u?Tf:t[l];if((jh(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:h.rawValue;else if(jh(i))i===np?r_(y,v[a],h[a],m):ine(y,v[a],h[a],m);else if(qD(i)){var _=v[a],b=h[a],x=i===j1;t[l]={type:x?"linear":"radial",x:Oi(_.x,b.x,m),y:Oi(_.y,b.y,m),colorStops:fe(_.colorStops,function(w,C){var T=b.colorStops[C];return{offset:Oi(w.offset,T.offset,m),color:tp(r_([],w.color,T.color,m))}}),global:b.global},x?(t[l].x2=Oi(_.x2,b.x2,m),t[l].y2=Oi(_.y2,b.y2,m)):t[l].r=Oi(_.r,b.r,m)}else if(u)r_(y,v[a],h[a],m),r||(t[l]=tp(y));else{var S=Oi(v[a],h[a],m);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===Zh?t[r]=t[r]+a:n===ed?(zr(t[r],Tf),Xh(Tf,Tf,a,1),t[r]=tp(Tf)):n===np?Xh(t[r],t[r],a,1):n===b5&&jD(t[r],t[r],a,1)},e}(),QC=function(){function e(t,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&a){WC("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,tt(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,xd(u),a),this._trackKeys.push(s)}l.addKeyframe(t,xd(n[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function rc(){return new Date().getTime()}var cne=function(e){Ot(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=rc()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(G1(r),!n._paused&&n.update())}G1(r)},t.prototype.start=function(){this._running||(this._time=rc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=rc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=rc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var a=new QC(n,r.loop);return this.addAnimator(a),a},t}(Ca);const fne=cne;var dne=300,a_=st.domSupported,i_=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=fe(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),JD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},QD=!1;function q1(e){var t=e.pointerType;return t==="pen"||t==="touch"}function vne(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function o_(e){e&&(e.zrByTouch=!0)}function hne(e,t){return Qr(e.dom,new gne(e,t),!0)}function S5(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var gne=function(){function e(t,n){this.stopPropagation=rn,this.stopImmediatePropagation=rn,this.preventDefault=rn,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Ma={mousedown:function(e){e=Qr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Qr(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Qr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Qr(this.dom,e);var t=e.toElement||e.relatedTarget;S5(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){QD=!0,e=Qr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){QD||(e=Qr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Qr(this.dom,e),o_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ma.mousemove.call(this,e),Ma.mousedown.call(this,e)},touchmove:function(e){e=Qr(this.dom,e),o_(e),this.handler.processGesture(e,"change"),Ma.mousemove.call(this,e)},touchend:function(e){e=Qr(this.dom,e),o_(e),this.handler.processGesture(e,"end"),Ma.mouseup.call(this,e),+new Date-+this.__lastTouchMomentnM||e<-nM}var Bs=[],ku=[],l_=ya(),u_=Math.abs,Sne=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Ns(this.rotation)||Ns(this.x)||Ns(this.y)||Ns(this.scaleX-1)||Ns(this.scaleY-1)||Ns(this.skewX)||Ns(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(tM(r),this.invTransform=null);return}r=r||ya(),n?this.getLocalTransform(r):tM(r),t&&(n?Wi(r,t,r):jC(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Bs);var r=Bs[0]<0?-1:1,a=Bs[1]<0?-1:1,i=((Bs[0]-r)*n+r)/Bs[0]||0,o=((Bs[1]-a)*n+a)/Bs[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ya(),Qc(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(Wi(ku,t.invTransform,n),n=ku);var r=this.originX,a=this.originY;(r||a)&&(l_[4]=r,l_[5]=a,Wi(ku,n,l_),ku[4]-=r,ku[5]-=a,n=ku),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&zn(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&zn(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&u_(t[0]-1)>1e-10&&u_(t[3]-1)>1e-10?Math.sqrt(u_(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){w5(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(r||a||s||l){var h=r+s,g=a+l;n[4]=-h*i-d*g*o,n[5]=-g*o-v*h*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=v*i,n[2]=d*o,u&&mu(n,n,u),n[4]+=r+c,n[5]+=a+f,n},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),wi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function w5(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function Kp(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Wa(r[0],n.width),u+=Wa(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var c_="__zr_normal__",f_=wi.concat(["ignore"]),xne=Si(wi,function(e,t){return e[t]=!0,e},{ignore:!1}),Lu={},wne=new Xe(0,0,0,0),eT=function(){function e(t){this.id=jF(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=wne;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lu,r,c):Kp(Lu,r,c),i.x=Lu.x,i.y=Lu.y,o=Lu.align,s=Lu.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,v=void 0;f==="center"?(d=c.width*.5,v=c.height*.5):(d=Wa(f[0],c.width),v=Wa(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+v+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var h=r.offset;h&&(i.x+=h[0],i.y+=h[1],u||(i.originX=-h[0],i.originY=-h[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=r.insideFill,y=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,y=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,n.setDefaultTextStyle(p)),n.__dirty|=Br,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tx:ex},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&zr(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Ui(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},oe(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Re(t))for(var r=t,a=tt(r),i=0;i0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(c_,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===c_,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(je(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){WC("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,h);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,n,d),p&&p.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var a=this.currentStates.slice(),i=je(a,t),o=je(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,a=r.length,i=[],o=0;o0&&n.during&&i[0].during(function(h,g){n.during(g)});for(var d=0;d0||a.force&&!o.length){var C=void 0,T=void 0,A=void 0;if(s){T={},d&&(C={});for(var b=0;b<_;b++){var m=g[b];T[m]=n[m],d?C[m]=r[m]:n[m]=r[m]}}else if(d){A={};for(var b=0;b<_;b++){var m=g[b];A[m]=xd(n[m]),Tne(n,r,m)}}var x=new QC(n,!1,!1,f?yt(h,function(D){return D.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&C&&x.whenWithKeys(0,C,g),A&&x.whenWithKeys(0,A,g),x.whenWithKeys(u??500,s?T:r,g).delay(c||0),e.addAnimator(x,t),o.push(x)}}const T5=eT;var A5=function(e){Ot(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,a=0;a=0&&(a.splice(i,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var a=je(this._children,n);return a>=0&&this.replaceAt(r,a),this},t.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,a=this._children,i=je(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function yte(e,t,n){for(var r=n?"invTrans":"trans",a=t[r],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,v=c.top;o.push(d,v),l=l&&i&&d===i[f]&&v===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[r]=n?VD(s,o):VD(o,s))}function QF(e){return e.nodeName.toUpperCase()==="CANVAS"}var _te=/([&<>"'])/g,bte={"&":"&","<":"<",">":">",'"':""","'":"'"};function br(e){return e==null?"":(e+"").replace(_te,function(t,n){return bte[n]})}var Ste=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,X0=[],xte=st.browser.firefox&&+st.browser.version.split(".")[0]<39;function z1(e,t,n,r){return n=n||{},r?ND(e,t,n):xte&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):ND(e,t,n),n}function ND(e,t,n){if(st.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(QF(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(B1(X0,e,r,a)){n.zrX=X0[0],n.zrY=X0[1];return}}n.zrX=n.zrY=0}function ZC(e){return e||window.event}function Qr(e,t,n){if(t=ZC(t),t.zrX!=null)return t;var r=t.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&z1(e,o,t,n)}else{z1(e,t,t,n);var i=wte(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ste.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function wte(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function F1(e,t,n,r){e.addEventListener(t,n,r)}function Cte(e,t,n,r){e.removeEventListener(t,n,r)}var qi=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function BD(e){return e.which===2||e.which===3}var Tte=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var a=t.touches;if(a){for(var i={points:[],touches:[],target:n,event:t},o=0,s=a.length;o1&&r&&r.length>1){var i=zD(r)/zD(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Ate(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function ya(){return[1,0,0,1,0,0]}function By(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function jC(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Wi(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function xi(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function mu(e,t,n){var r=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function KC(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e}function Qc(e,t){var n=t[0],r=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=n*o-i*r;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*a)*l,e[5]=(i*a-n*s)*l,e):null}function Ite(e){var t=ya();return jC(t,e),t}var Pte=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var i=1-a;t.x=i*n.x+a*r.x,t.y=i*n.y+a*r.y},e}();const We=Pte;var $h=Math.min,Gh=Math.max,Es=new We,Rs=new We,Vs=new We,Os=new We,Sf=new We,xf=new We,Dte=function(){function e(t,n,r,a){r<0&&(t=t+r,r=-r),a<0&&(n=n+a,a=-a),this.x=t,this.y=n,this.width=r,this.height=a}return e.prototype.union=function(t){var n=$h(t.x,this.x),r=$h(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Gh(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Gh(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,a=t.height/n.height,i=ya();return xi(i,i,[-n.x,-n.y]),KC(i,i,[r,a]),xi(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ih&&(h=_,gh&&(h=b,m=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];t.x=n.x*a+o,t.y=n.y*i+s,t.width=n.width*a,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Es.x=Vs.x=n.x,Es.y=Os.y=n.y,Rs.x=Os.x=n.x+n.width,Rs.y=Vs.y=n.y+n.height,Es.transform(r),Os.transform(r),Rs.transform(r),Vs.transform(r),t.x=$h(Es.x,Rs.x,Vs.x,Os.x),t.y=$h(Es.y,Rs.y,Vs.y,Os.y);var l=Gh(Es.x,Rs.x,Vs.x,Os.x),u=Gh(Es.y,Rs.y,Vs.y,Os.y);t.width=l-t.x,t.height=u-t.y},e}();const Xe=Dte;var e5="silent";function Mte(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:kte}}function kte(){qi(this.event)}var Lte=function(e){Ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ca),wf=function(){function e(t,n){this.x=t,this.y=n}return e}(),Ete=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],j0=new Xe(0,0,0,0),t5=function(e){Ot(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new wf(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Lte,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new vte(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(k(Ete,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=n5(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new wf(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new wf(0,0)},t.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=Mte(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new wf(n,r);if(FD(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Xe(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(j0.copy(d.getBoundingRect()),d.transform&&j0.applyTransform(d.transform),j0.intersect(c)&&s.push(d))}if(s.length)for(var v=4,h=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function Rte(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?e5:!0}return!1}function FD(e,t,n,r,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=Rte(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==e5)){t.target=o;break}}}function n5(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const Vte=t5;var r5=32,Cf=7;function Ote(e){for(var t=0;e>=r5;)t|=e&1,e>>=1;return e+t}function $D(e,t,n,r){var a=t+1;if(a===n)return 1;if(r(e[a++],e[t])<0){for(;a=0;)a++;return a-t}function Nte(e,t,n){for(n--;t>>1,a(i,e[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function K0(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(e,t[n+c])>0?o=c+1:l=c}return l}function q0(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(e,t[n+c])<0?l=c:o=c+1}return l}function Bte(e,t){var n=Cf,r,a,i=0;e.length;var o=[];r=[],a=[];function s(v,h){r[i]=v,a[i]=h,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]=Cf||w>=Cf);if(C)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),h===1){for(m=0;m=0;m--)e[S+m]=e[x+m];e[b]=o[_];return}for(var w=n;;){var C=0,T=0,A=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,T=0,--h===0){A=!0;break}}else if(e[b--]=o[_--],T++,C=0,--p===1){A=!0;break}while((C|T)=0;m--)e[S+m]=e[x+m];if(h===0){A=!0;break}}if(e[b--]=o[_--],--p===1){A=!0;break}if(T=p-K0(e[y],o,0,p,p-1,t),T!==0){for(b-=T,_-=T,p-=T,S=b+1,x=_+1,m=0;m=Cf||T>=Cf);if(A)break;w<0&&(w=0),w+=2}if(n=w,n<1&&(n=1),p===1){for(b-=h,y-=h,S=b+1,x=y+1,m=h-1;m>=0;m--)e[S+m]=e[x+m];e[b]=o[_]}else{if(p===0)throw new Error;for(x=b-(p-1),m=0;ms&&(l=s),GD(e,n,n+l,n+i,t),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Br=1,Qf=2,qu=4,HD=!1;function J0(){HD||(HD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function WD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var zte=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=WD}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(J0(),c.z=0),isNaN(c.z2)&&(J0(),c.z2=0),isNaN(c.zlevel)&&(J0(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const Fte=zte;var a5;a5=st.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const $1=a5;var ep={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ep.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ep.bounceIn(e*2)*.5:ep.bounceOut(e*2-1)*.5+.5}};const i5=ep;var Hh=Math.pow,Qo=Math.sqrt,Wp=1e-8,o5=1e-4,UD=Qo(3),Wh=1/3,si=pu(),aa=pu(),vc=pu();function Wo(e){return e>-Wp&&eWp||e<-Wp}function mn(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function YD(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function Up(e,t,n,r,a,i){var o=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,v=0;if(Wo(c)&&Wo(f))if(Wo(s))i[0]=0;else{var h=-l/s;h>=0&&h<=1&&(i[v++]=h)}else{var g=f*f-4*c*d;if(Wo(g)){var p=f/c,h=-s/o+p,m=-p/2;h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m)}else if(g>0){var y=Qo(g),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Hh(-_,Wh):_=Hh(_,Wh),b<0?b=-Hh(-b,Wh):b=Hh(b,Wh);var h=(-s-(_+b))/(3*o);h>=0&&h<=1&&(i[v++]=h)}else{var x=(2*c*s-3*o*f)/(2*Qo(c*c*c)),S=Math.acos(x)/3,w=Qo(c),C=Math.cos(S),h=(-s-2*w*C)/(3*o),m=(-s+w*(C+UD*Math.sin(S)))/(3*o),T=(-s+w*(C-UD*Math.sin(S)))/(3*o);h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m),T>=0&&T<=1&&(i[v++]=T)}}return v}function l5(e,t,n,r,a){var i=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Wo(o)){if(s5(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Wo(c))a[0]=-i/(2*o);else if(c>0){var f=Qo(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function cs(e,t,n,r,a,i){var o=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function u5(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,v=1/0,h,g,p,m;si[0]=l,si[1]=u;for(var y=0;y<1;y+=.05)aa[0]=mn(e,n,a,o,y),aa[1]=mn(t,r,i,s,y),p=Vl(si,aa),p=0&&p=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Wo(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Qo(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function c5(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function lv(e,t,n,r,a){var i=(t-e)*r+e,o=(n-t)*r+t,s=(o-i)*r+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function f5(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;si[0]=o,si[1]=s;for(var d=0;d<1;d+=.05){aa[0]=An(e,n,a,d),aa[1]=An(t,r,i,d);var v=Vl(si,aa);v=0&&v=1?1:Up(0,r,i,1,l,s)&&mn(0,a,o,1,s[0])}}}var Ute=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||rn,this.ondestroy=t.ondestroy||rn,this.onrestart=t.onrestart||rn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Le(t)?t:i5[t]||qC(t)},e}();const Yte=Ute;var d5=function(){function e(t){this.value=t}return e}(),Xte=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new d5(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Zte=function(){function e(t){this._list=new Xte,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,a=this._map,i=null;if(a[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new d5(n),s.key=t,r.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const eh=Zte;var XD={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 za(e){return e=Math.round(e),e<0?0:e>255?255:e}function jte(e){return e=Math.round(e),e<0?0:e>360?360:e}function uv(e){return e<0?0:e>1?1:e}function Q0(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?za(parseFloat(t)/100*255):za(parseInt(t,10))}function Ol(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?uv(parseFloat(t)/100):uv(parseFloat(t))}function e_(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Uo(e,t,n){return e+(t-e)*n}function Jr(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function H1(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var v5=new eh(20),Uh=null;function Mu(e,t){Uh&&H1(Uh,t),Uh=v5.put(e,Uh||t.slice())}function zr(e,t){if(e){t=t||[];var n=v5.get(e);if(n)return H1(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in XD)return H1(t,XD[r]),Mu(e,t),t;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Jr(t,0,0,0,1);return}return Jr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mu(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Jr(t,0,0,0,1);return}return Jr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mu(e,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Jr(t,+u[0],+u[1],+u[2],1):Jr(t,0,0,0,1);c=Ol(u.pop());case"rgb":if(u.length>=3)return Jr(t,Q0(u[0]),Q0(u[1]),Q0(u[2]),u.length===3?c:Ol(u[3])),Mu(e,t),t;Jr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Jr(t,0,0,0,1);return}return u[3]=Ol(u[3]),W1(u,t),Mu(e,t),t;case"hsl":if(u.length!==3){Jr(t,0,0,0,1);return}return W1(u,t),Mu(e,t),t;default:return}}Jr(t,0,0,0,1)}}function W1(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ol(e[1]),a=Ol(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],Jr(t,za(e_(o,i,n+1/3)*255),za(e_(o,i,n)*255),za(e_(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Kte(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;t===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function U1(e,t){var n=zr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ui(n,n.length===4?"rgba":"rgb")}}function t_(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=t[a],s=t[i],l=r-a;return n[0]=za(Uo(o[0],s[0],l)),n[1]=za(Uo(o[1],s[1],l)),n[2]=za(Uo(o[2],s[2],l)),n[3]=uv(Uo(o[3],s[3],l)),n}}function qte(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=zr(t[a]),s=zr(t[i]),l=r-a,u=Ui([za(Uo(o[0],s[0],l)),za(Uo(o[1],s[1],l)),za(Uo(o[2],s[2],l)),uv(Uo(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function Sd(e,t,n,r){var a=zr(e);if(e)return a=Kte(a),t!=null&&(a[0]=jte(t)),n!=null&&(a[1]=Ol(n)),r!=null&&(a[2]=Ol(r)),Ui(W1(a),"rgba")}function Yp(e,t){var n=zr(e);if(n&&t!=null)return n[3]=uv(t),Ui(n,"rgba")}function Ui(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function Xp(e,t){var n=zr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Zp=Math.round;function cv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=zr(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var ZD=1e-4;function Yo(e){return e-ZD}function Yh(e){return Zp(e*1e3)/1e3}function Y1(e){return Zp(e*1e4)/1e4}function Jte(e){return"matrix("+Yh(e[0])+","+Yh(e[1])+","+Yh(e[2])+","+Yh(e[3])+","+Y1(e[4])+","+Y1(e[5])+")"}var Qte={left:"start",right:"end",center:"middle",middle:"middle"};function ene(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function tne(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function nne(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function h5(e){return e&&!!e.image}function rne(e){return e&&!!e.svgElement}function JC(e){return h5(e)||rne(e)}function g5(e){return e.type==="linear"}function p5(e){return e.type==="radial"}function m5(e){return e&&(e.type==="linear"||e.type==="radial")}function zy(e){return"url(#"+e+")"}function y5(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function _5(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Kg,a=Ue(e.scaleX,1),i=Ue(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Zp(o*Kg)+"deg, "+Zp(s*Kg)+"deg)"),l.join(" ")}var ane=function(){return st.hasGlobalWindow&&Le(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),X1=Array.prototype.slice;function Oi(e,t,n){return(t-e)*n+e}function n_(e,t,n,r){for(var a=t.length,i=0;ir?t:e,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=KD,l=n;if(er(n)){var u=lne(n);s=u,(u===1&&!ut(n[0])||u===2&&!ut(n[0][0]))&&(o=!0)}else if(ut(n)&&!sv(n))s=Zh;else if(we(n))if(!isNaN(+n))s=Zh;else{var c=zr(n);c&&(l=c,s=ed)}else if(Oy(n)){var f=oe({},l);f.colorStops=fe(n.colorStops,function(v){return{offset:v.offset,color:zr(v.color)}}),g5(n)?s=Z1:p5(n)&&(s=j1),l=f}i===0?this.valType=s:(s!==this.valType||s===KD)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Le(r)?r:i5[r]||qC(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(g,p){return g.time-p.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=jh(a),u=qD(a),c=0;c=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}h=o[c+1],v=o[c]}if(v&&h){this._lastFr=c,this._lastFrP=n;var p=h.percent-v.percent,m=p===0?1:d((n-v.percent)/p,1);h.easingFunc&&(m=h.easingFunc(m));var y=r?this._additiveValue:u?Tf:t[l];if((jh(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:h.rawValue;else if(jh(i))i===np?n_(y,v[a],h[a],m):ine(y,v[a],h[a],m);else if(qD(i)){var _=v[a],b=h[a],x=i===Z1;t[l]={type:x?"linear":"radial",x:Oi(_.x,b.x,m),y:Oi(_.y,b.y,m),colorStops:fe(_.colorStops,function(w,C){var T=b.colorStops[C];return{offset:Oi(w.offset,T.offset,m),color:tp(n_([],w.color,T.color,m))}}),global:b.global},x?(t[l].x2=Oi(_.x2,b.x2,m),t[l].y2=Oi(_.y2,b.y2,m)):t[l].r=Oi(_.r,b.r,m)}else if(u)n_(y,v[a],h[a],m),r||(t[l]=tp(y));else{var S=Oi(v[a],h[a],m);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===Zh?t[r]=t[r]+a:n===ed?(zr(t[r],Tf),Xh(Tf,Tf,a,1),t[r]=tp(Tf)):n===np?Xh(t[r],t[r],a,1):n===b5&&jD(t[r],t[r],a,1)},e}(),QC=function(){function e(t,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&a){WC("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,tt(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,xd(u),a),this._trackKeys.push(s)}l.addKeyframe(t,xd(n[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function rc(){return new Date().getTime()}var cne=function(e){Ot(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=rc()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&($1(r),!n._paused&&n.update())}$1(r)},t.prototype.start=function(){this._running||(this._time=rc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=rc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=rc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var a=new QC(n,r.loop);return this.addAnimator(a),a},t}(Ca);const fne=cne;var dne=300,r_=st.domSupported,a_=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=fe(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),JD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},QD=!1;function K1(e){var t=e.pointerType;return t==="pen"||t==="touch"}function vne(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function i_(e){e&&(e.zrByTouch=!0)}function hne(e,t){return Qr(e.dom,new gne(e,t),!0)}function S5(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var gne=function(){function e(t,n){this.stopPropagation=rn,this.stopImmediatePropagation=rn,this.preventDefault=rn,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Ma={mousedown:function(e){e=Qr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Qr(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Qr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Qr(this.dom,e);var t=e.toElement||e.relatedTarget;S5(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){QD=!0,e=Qr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){QD||(e=Qr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Qr(this.dom,e),i_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ma.mousemove.call(this,e),Ma.mousedown.call(this,e)},touchmove:function(e){e=Qr(this.dom,e),i_(e),this.handler.processGesture(e,"change"),Ma.mousemove.call(this,e)},touchend:function(e){e=Qr(this.dom,e),i_(e),this.handler.processGesture(e,"end"),Ma.mouseup.call(this,e),+new Date-+this.__lastTouchMomentnM||e<-nM}var Bs=[],ku=[],s_=ya(),l_=Math.abs,Sne=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Ns(this.rotation)||Ns(this.x)||Ns(this.y)||Ns(this.scaleX-1)||Ns(this.scaleY-1)||Ns(this.skewX)||Ns(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(tM(r),this.invTransform=null);return}r=r||ya(),n?this.getLocalTransform(r):tM(r),t&&(n?Wi(r,t,r):jC(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Bs);var r=Bs[0]<0?-1:1,a=Bs[1]<0?-1:1,i=((Bs[0]-r)*n+r)/Bs[0]||0,o=((Bs[1]-a)*n+a)/Bs[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ya(),Qc(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(Wi(ku,t.invTransform,n),n=ku);var r=this.originX,a=this.originY;(r||a)&&(s_[4]=r,s_[5]=a,Wi(ku,n,s_),ku[4]-=r,ku[5]-=a,n=ku),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&zn(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&zn(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&l_(t[0]-1)>1e-10&&l_(t[3]-1)>1e-10?Math.sqrt(l_(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){w5(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(r||a||s||l){var h=r+s,g=a+l;n[4]=-h*i-d*g*o,n[5]=-g*o-v*h*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=v*i,n[2]=d*o,u&&mu(n,n,u),n[4]+=r+c,n[5]+=a+f,n},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),wi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function w5(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function Kp(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Wa(r[0],n.width),u+=Wa(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var u_="__zr_normal__",c_=wi.concat(["ignore"]),xne=Si(wi,function(e,t){return e[t]=!0,e},{ignore:!1}),Lu={},wne=new Xe(0,0,0,0),eT=function(){function e(t){this.id=jF(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=wne;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lu,r,c):Kp(Lu,r,c),i.x=Lu.x,i.y=Lu.y,o=Lu.align,s=Lu.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,v=void 0;f==="center"?(d=c.width*.5,v=c.height*.5):(d=Wa(f[0],c.width),v=Wa(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+v+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var h=r.offset;h&&(i.x+=h[0],i.y+=h[1],u||(i.originX=-h[0],i.originY=-h[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=r.insideFill,y=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,y=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,n.setDefaultTextStyle(p)),n.__dirty|=Br,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ex:Q1},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&zr(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Ui(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},oe(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Re(t))for(var r=t,a=tt(r),i=0;i0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(u_,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===u_,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(je(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){WC("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,h);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,n,d),p&&p.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var a=this.currentStates.slice(),i=je(a,t),o=je(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,a=r.length,i=[],o=0;o0&&n.during&&i[0].during(function(h,g){n.during(g)});for(var d=0;d0||a.force&&!o.length){var C=void 0,T=void 0,A=void 0;if(s){T={},d&&(C={});for(var b=0;b<_;b++){var m=g[b];T[m]=n[m],d?C[m]=r[m]:n[m]=r[m]}}else if(d){A={};for(var b=0;b<_;b++){var m=g[b];A[m]=xd(n[m]),Tne(n,r,m)}}var x=new QC(n,!1,!1,f?yt(h,function(D){return D.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&C&&x.whenWithKeys(0,C,g),A&&x.whenWithKeys(0,A,g),x.whenWithKeys(u??500,s?T:r,g).delay(c||0),e.addAnimator(x,t),o.push(x)}}const T5=eT;var A5=function(e){Ot(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,a=0;a=0&&(a.splice(i,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var a=je(this._children,n);return a>=0&&this.replaceAt(r,a),this},t.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,a=this._children,i=je(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this.handler.off(t,n)},e.prototype.trigger=function(t,n){this.handler.trigger(t,n)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),n=0;n0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function be(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return we(e)?Lne(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Kt(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),P5),e=(+e).toFixed(t),n?e:+e}function da(e){return e.sort(function(t,n){return t-n}),e}function fi(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Ene(e)}function Ene(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,a=n>0?n:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function D5(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Rne(e,t){var n=Si(e,function(v,h){return v+(isNaN(h)?0:h)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=fe(e,function(v){return(isNaN(v)?0:v)/n*r*100}),i=r*100,o=fe(a,function(v){return Math.floor(v)}),s=Si(o,function(v,h){return v+h},0),l=fe(a,function(v,h){return v-o[h]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return fe(o,function(v){return v/r})}function Vne(e,t){var n=Math.max(fi(e),fi(t)),r=e+t;return n>P5?r:Kt(r,n)}var sM=9007199254740991;function M5(e){var t=Math.PI*2;return(e%t+t)%t}function qp(e){return e>-oM&&e=10&&t++,t}function k5(e,t){var n=tT(e),r=Math.pow(10,n),a=e/r,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*r,n>=-20?+e.toFixed(n<0?-n:0):e}function h_(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a}function lM(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r=0||i&&je(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var sre=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lre=nu(sre),ure=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return lre(this,t,n)},e}(),rx=new eh(50);function cre(e){if(typeof e=="string"){var t=rx.get(e);return t&&t.image}else return e}function iT(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=rx.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!Hy(t)&&i.pending.push(o)):(t=us.loadImage(e,dM,dM),t.__zrImageSrc=e,rx.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function dM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this.handler.off(t,n)},e.prototype.trigger=function(t,n){this.handler.trigger(t,n)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),n=0;n0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function be(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return we(e)?Lne(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Kt(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),P5),e=(+e).toFixed(t),n?e:+e}function da(e){return e.sort(function(t,n){return t-n}),e}function fi(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Ene(e)}function Ene(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,a=n>0?n:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function D5(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Rne(e,t){var n=Si(e,function(v,h){return v+(isNaN(h)?0:h)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=fe(e,function(v){return(isNaN(v)?0:v)/n*r*100}),i=r*100,o=fe(a,function(v){return Math.floor(v)}),s=Si(o,function(v,h){return v+h},0),l=fe(a,function(v,h){return v-o[h]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return fe(o,function(v){return v/r})}function Vne(e,t){var n=Math.max(fi(e),fi(t)),r=e+t;return n>P5?r:Kt(r,n)}var sM=9007199254740991;function M5(e){var t=Math.PI*2;return(e%t+t)%t}function qp(e){return e>-oM&&e=10&&t++,t}function k5(e,t){var n=tT(e),r=Math.pow(10,n),a=e/r,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*r,n>=-20?+e.toFixed(n<0?-n:0):e}function v_(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a}function lM(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r=0||i&&je(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var sre=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lre=nu(sre),ure=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return lre(this,t,n)},e}(),nx=new eh(50);function cre(e){if(typeof e=="string"){var t=nx.get(e);return t&&t.image}else return e}function iT(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=nx.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!Gy(t)&&i.pending.push(o)):(t=us.loadImage(e,dM,dM),t.__zrImageSrc=e,nx.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function dM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Fr(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function W5(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=Fr(e,r);if(i<=n)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?dre(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Fr(e,r)}return e===""&&(e=t.placeholder),e}function dre(e,t,n,r){for(var a=0,i=0,o=e.length;iv&&u){var h=Math.floor(v/s);f=f.slice(0,h)}if(e&&i&&c!=null)for(var g=H5(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&p_(n,e.substring(s,u),t,o),p_(n,l[2],t,o,l[1]),s=g_.lastIndex}sa){x>0?(y.tokens=y.tokens.slice(0,x),p(y,b,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var D=w.width,M=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")S.percentWidth=D,c.push(S),S.contentWidth=Fr(S.text,A);else{if(M){var L=w.backgroundColor,R=L&&L.image;R&&(R=cre(R),Hy(R)&&(S.width=Math.max(S.width,R.width*P/R.height)))}var O=h&&r!=null?r-b:null;O!=null&&O0&&h+r.accumWidth>r.width&&(c=t.split(` +`)}function H5(e,t,n,r){r=r||{};var a=oe({},r);a.font=t,n=Ue(n,"..."),a.maxIterations=Ue(r.maxIterations,2);var i=a.minChar=Ue(r.minChar,0);a.cnCharWidth=Fr("国",t);var o=a.ascCharWidth=Fr("a",t);a.placeholder=Ue(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l=o;l++)s-=o;var u=Fr(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function W5(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=Fr(e,r);if(i<=n)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?dre(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Fr(e,r)}return e===""&&(e=t.placeholder),e}function dre(e,t,n,r){for(var a=0,i=0,o=e.length;iv&&u){var h=Math.floor(v/s);f=f.slice(0,h)}if(e&&i&&c!=null)for(var g=H5(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&g_(n,e.substring(s,u),t,o),g_(n,l[2],t,o,l[1]),s=h_.lastIndex}sa){x>0?(y.tokens=y.tokens.slice(0,x),p(y,b,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var D=w.width,M=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")S.percentWidth=D,c.push(S),S.contentWidth=Fr(S.text,A);else{if(M){var L=w.backgroundColor,R=L&&L.image;R&&(R=cre(R),Gy(R)&&(S.width=Math.max(S.width,R.width*P/R.height)))}var O=h&&r!=null?r-b:null;O!=null&&O0&&h+r.accumWidth>r.width&&(c=t.split(` `),u=!0),r.accumWidth=h}else{var g=U5(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+v,f=g.linesWidths,c=g.lines}}else c=t.split(` `);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var yre=Si(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function _re(e){return mre(e)?!!yre[e]:!0}function U5(e,t,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;fn:a+c+v>n){c?(s||l)&&(h?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=v)):h?(i.push(l),o.push(u),l=d,u=v):(i.push(d),o.push(v));continue}c+=v,h?(l+=d,u+=v):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var ax="__zr_style_"+Math.round(Math.random()*10),Nl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Wy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Nl[ax]=!0;var hM=["z","z2","invisible"],bre=["invisible"],Sre=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=tt(n),a=0;a1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Kh[0]=b_(a)*n+e,Kh[1]=__(a)*r+t,qh[0]=b_(i)*n+e,qh[1]=__(i)*r+t,u(s,Kh,qh),c(l,Kh,qh),a=a%Fs,a<0&&(a=a+Fs),i=i%Fs,i<0&&(i=i+Fs),a>i&&!o?i+=Fs:aa&&(Jh[0]=b_(v)*n+e,Jh[1]=__(v)*r+t,u(s,Jh,s),c(l,Jh,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$s=[],Gs=[],qa=[],So=[],Ja=[],Qa=[],S_=Math.min,x_=Math.max,Hs=Math.cos,Ws=Math.sin,Li=Math.abs,ix=Math.PI,Lo=ix*2,w_=typeof Float32Array<"u",Af=[];function C_(e){var t=Math.round(e/ix*1e8)/1e8;return t%2*ix}function Y5(e,t){var n=C_(e[0]);n<0&&(n+=Lo);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=Lo?a=n+Lo:t&&n-a>=Lo?a=n-Lo:!t&&n>a?a=n+(Lo-C_(n-a)):t&&n0&&(this._ux=Li(r/jp/t)||0,this._uy=Li(r/jp/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(xt.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Li(t-this._xi),a=Li(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(xt.L,t,n),this._ctx&&i&&this._ctx.lineTo(t,n),i)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){return this._drawPendingPt(),this.addData(xt.C,t,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(xt.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,i,o){this._drawPendingPt(),Af[0]=a,Af[1]=i,Y5(Af,o),a=Af[0],i=Af[1];var s=i-a;return this.addData(xt.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=Hs(i)*r+t,this._yi=Ws(i)*r+n,this},e.prototype.arcTo=function(t,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,i),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(xt.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(xt.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&w_&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){qa[0]=qa[1]=Ja[0]=Ja[1]=Number.MAX_VALUE,So[0]=So[1]=Qa[0]=Qa[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,i=0,o;for(o=0;or||Li(_)>a||d===n-1)&&(g=Math.sqrt(y*y+_*_),i=p,o=m);break}case xt.C:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++],S=t[d++],w=t[d++];g=$te(i,o,b,x,p,m,S,w,10),i=S,o=w;break}case xt.Q:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++];g=Hte(i,o,b,x,p,m,10),i=p,o=m;break}case xt.A:var C=t[d++],T=t[d++],A=t[d++],P=t[d++],D=t[d++],M=t[d++],L=M+D;d+=1,t[d++],h&&(s=Hs(D)*A+C,l=Ws(D)*P+T),g=x_(A,P)*S_(Lo,Math.abs(M)),i=Hs(L)*A+C,o=Ws(L)*P+T;break;case xt.R:{s=i=t[d++],l=o=t[d++];var R=t[d++],O=t[d++];g=R*2+O*2;break}case xt.Z:{var y=s-i,_=l-o;g=Math.sqrt(y*y+_*_),i=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,v=n<1,h,g,p=0,m=0,y,_=0,b,x;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,g=this._pathLen,y=n*g,!y)))e:for(var S=0;S0&&(t.lineTo(b,x),_=0),w){case xt.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case xt.L:{f=r[S++],d=r[S++];var T=Li(f-u),A=Li(d-c);if(T>a||A>i){if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;t.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}p+=P}t.lineTo(f,d),u=f,c=d,_=0}else{var M=T*T+A*A;M>_&&(b=f,x=d,_=M)}break}case xt.C:{var L=r[S++],R=r[S++],O=r[S++],W=r[S++],V=r[S++],G=r[S++];if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;cs(u,L,O,V,D,$s),cs(c,R,W,G,D,Gs),t.bezierCurveTo($s[1],Gs[1],$s[2],Gs[2],$s[3],Gs[3]);break e}p+=P}t.bezierCurveTo(L,R,O,W,V,G),u=V,c=G;break}case xt.Q:{var L=r[S++],R=r[S++],O=r[S++],W=r[S++];if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;lv(u,L,O,D,$s),lv(c,R,W,D,Gs),t.quadraticCurveTo($s[1],Gs[1],$s[2],Gs[2]);break e}p+=P}t.quadraticCurveTo(L,R,O,W),u=O,c=W;break}case xt.A:var X=r[S++],Z=r[S++],J=r[S++],ee=r[S++],F=r[S++],U=r[S++],$=r[S++],z=!r[S++],H=J>ee?J:ee,j=Li(J-ee)>.001,Y=F+U,q=!1;if(v){var P=h[m++];p+P>y&&(Y=F+U*(y-p)/P,q=!0),p+=P}if(j&&t.ellipse?t.ellipse(X,Z,J,ee,$,F,Y,z):t.arc(X,Z,H,F,Y,z),q)break e;C&&(s=Hs(F)*J+X,l=Ws(F)*ee+Z),u=Hs(Y)*J+X,c=Ws(Y)*ee+Z;break;case xt.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var te=r[S++],N=r[S++];if(v){var P=h[m++];if(p+P>y){var B=y-p;t.moveTo(f,d),t.lineTo(f+S_(B,te),d),B-=te,B>0&&t.lineTo(f+te,d+S_(B,N)),B-=N,B>0&&t.lineTo(f+x_(te-B,0),d+N),B-=te,B>0&&t.lineTo(f,d+x_(N-B,0));break e}p+=P}t.rect(f,d,te,N);break;case xt.Z:if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;t.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break e}p+=P}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=xt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function zo(e,t,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>r+s||oe+s&&i>n+s||it+f&&c>r+f&&c>i+f&&c>s+f||ce+f&&u>n+f&&u>a+f&&u>o+f||ut+u&&l>r+u&&l>i+u||le+u&&s>n+u&&s>a+u||sn||c+ua&&(a+=If);var d=Math.atan2(l,s);return d<0&&(d+=If),d>=r&&d<=a||d+If>=r&&d+If<=a}function Ni(e,t,n,r,a,i){if(i>t&&i>r||ia?s:0}var xo=Ti.CMD,Us=Math.PI*2,Pre=1e-4;function Dre(e,t){return Math.abs(e-t)t&&u>r&&u>i&&u>s||u1&&Mre(),v=mn(t,r,i,s,ta[0]),d>1&&(h=mn(t,r,i,s,ta[1]))),d===2?pt&&s>r&&s>i||s=0&&u<=1){for(var c=0,f=An(t,r,i,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ur[0]=-l,ur[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=Us-1e-4){r=0,a=Us;var c=i?1:-1;return o>=ur[0]+e&&o<=ur[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=Us,a+=Us);for(var d=0,v=0;v<2;v++){var h=ur[v];if(h+e>o){var g=Math.atan2(s,h),c=i?1:-1;g<0&&(g=Us+g),(g>=r&&g<=a||g+Us>=r&&g+Us<=a)&&(g>Math.PI/2&&g1&&(n||(s+=Ni(l,u,c,f,r,a))),p&&(l=i[h],u=i[h+1],c=l,f=u),g){case xo.M:c=i[h++],f=i[h++],l=c,u=f;break;case xo.L:if(n){if(zo(l,u,i[h],i[h+1],t,r,a))return!0}else s+=Ni(l,u,i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case xo.C:if(n){if(Are(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=kre(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case xo.Q:if(n){if(X5(l,u,i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=Lre(l,u,i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case xo.A:var m=i[h++],y=i[h++],_=i[h++],b=i[h++],x=i[h++],S=i[h++];h+=1;var w=!!(1-i[h++]);d=Math.cos(x)*_+m,v=Math.sin(x)*b+y,p?(c=d,f=v):s+=Ni(l,u,d,v,r,a);var C=(r-m)*b/_+m;if(n){if(Ire(m,y,b,x,x+S,w,t,C,a))return!0}else s+=Ere(m,y,b,x,x+S,w,C,a);l=Math.cos(x+S)*_+m,u=Math.sin(x+S)*b+y;break;case xo.R:c=l=i[h++],f=u=i[h++];var T=i[h++],A=i[h++];if(d=c+T,v=f+A,n){if(zo(c,f,d,f,t,r,a)||zo(d,f,d,v,t,r,a)||zo(d,v,c,v,t,r,a)||zo(c,v,c,f,t,r,a))return!0}else s+=Ni(d,f,d,v,r,a),s+=Ni(c,v,c,f,r,a);break;case xo.Z:if(n){if(zo(l,u,c,f,t,r,a))return!0}else s+=Ni(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!Dre(u,f)&&(s+=Ni(l,u,c,f,r,a)||0),s!==0}function Rre(e,t,n){return Z5(e,0,!1,t,n)}function Vre(e,t,n,r){return Z5(e,t,!0,n,r)}var Jp=Ee({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Nl),Ore={style:Ee({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Wy.style)},T_=wi.concat(["invisible","culling","z","z2","zlevel","parent"]),Nre=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?ex:r>.2?bne:tx}else if(n)return tx}return ex},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(we(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Xp(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&qu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Vre(s,l/u,n,r)))return!0}if(this.hasFill())return Rre(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=qu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:oe(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&qu)},t.prototype.createStyle=function(n){return By(Jp,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=oe({},this.shape))},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=oe({},a.shape),oe(u,r.shape)):(u=oe({},i?this.shape:a.shape),oe(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=oe({},this.shape);for(var c={},f=tt(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return By(Bre,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=th(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(_a);j5.prototype.type="tspan";const dv=j5;var zre=Ee({x:0,y:0},Nl),Fre={style:Ee({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Wy.style)};function $re(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var K5=function(e){Ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return By(zre,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=$re(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Fre},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Xe(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_a);K5.prototype.type="image";const Wn=K5;function Gre(e,t){var n=t.x,r=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+i-u),u!==0&&e.arc(n+a-u,r+i-u,u,0,Math.PI/2),e.lineTo(n+c,r+i),c!==0&&e.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var ac=Math.round;function q5(e,t,n){if(t){var r=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=r,e.x2=a,e.y1=i,e.y2=o;var s=n&&n.lineWidth;return s&&(ac(r*2)===ac(a*2)&&(e.x1=e.x2=Sl(r,s,!0)),ac(i*2)===ac(o*2)&&(e.y1=e.y2=Sl(i,s,!0))),e}}function J5(e,t,n){if(t){var r=t.x,a=t.y,i=t.width,o=t.height;e.x=r,e.y=a,e.width=i,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=Sl(r,s,!0),e.y=Sl(a,s,!0),e.width=Math.max(Sl(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Sl(a+o,s,!1)-e.y,o===0?0:1)),e}}function Sl(e,t,n){if(!t)return e;var r=ac(e*2);return(r+ac(t))%2===0?r/2:(r+(n?1:-1))/2}var Hre=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Wre={},Q5=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Hre},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=J5(Wre,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?Gre(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Qe);Q5.prototype.type="rect";const at=Q5;var _M={fill:"#000"},bM=2,Ure={style:Ee({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},Wy.style)},e$=function(e){Ot(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=_M,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,D=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),M=o.calculatedLineHeight,L=0;L=0&&(L=S[M],L.align==="right");)this._placeToken(L,n,C,m,D,"right",_),T-=L.width,D-=L.width,M--;for(P+=(i-(P-p)-(y-D)-T)/2;A<=M;)L=S[A],this._placeToken(L,n,C,m,P+L.width/2,"center",_),P+=L.width,A++;m+=C}},t.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&A_(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var v=!!u.backgroundColor,h=n.textPadding;h&&(o=AM(o,s,h),f-=n.height/2-h[0]-n.innerHeight/2);var g=this._getOrCreateChild(dv),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,b=TM("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,m.fill)),x=CM("stroke"in u?u.stroke:"stroke"in r?r.stroke:!v&&!l&&(!m.autoStroke||y)?(_=bM,m.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;p.text=n.text,p.x=o,p.y=f,S&&(p.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,p.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=n.font||ls,p.opacity=gi(u.opacity,r.opacity,1),xM(p,u),x&&(p.lineWidth=gi(u.lineWidth,r.lineWidth,_),p.lineDash=Ue(u.lineDash,r.lineDash),p.lineDashOffset=r.lineDashOffset||0,p.stroke=x),b&&(p.fill=b);var w=n.contentWidth,C=n.contentHeight;g.setBoundingRect(new Xe(td(p.x,w,p.textAlign),Ju(p.y,C,p.textBaseline),w,C))},t.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,v=n.borderRadius,h=this,g,p;if(d||n.lineHeight||u&&c){g=this._getOrCreateChild(at),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(d){var y=g.style;y.fill=l||null,y.fillOpacity=Ue(n.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Wn),p.onload=function(){h.dirtyStyle()};var _=p.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var y=g.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ue(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=n.shadowBlur||0,b.shadowColor=n.shadowColor||"transparent",b.shadowOffsetX=n.shadowOffsetX||0,b.shadowOffsetY=n.shadowOffsetY||0,b.opacity=gi(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return n$(n)&&(r=[n.fontStyle,n.fontWeight,t$(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Va(r)||n.textFont||n.font},t}(_a),Yre={left:!0,right:1,center:1},Xre={top:1,bottom:1,middle:1},SM=["fontStyle","fontWeight","fontSize","fontFamily"];function t$(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?$C+"px":e+"px"}function xM(e,t){for(var n=0;n=0,i=!1;if(e instanceof Qe){var o=r$(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Eu(s)||Eu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=oe({},r),u=oe({},u),u.fill=s):!Eu(u.fill)&&Eu(s)?(i=!0,r=oe({},r),u=oe({},u),u.fill=kM(s)):!Eu(u.stroke)&&Eu(l)&&(i||(r=oe({},r),u=oe({},u)),u.stroke=kM(l)),r.style=u}}if(r&&r.z2==null){i||(r=oe({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??tf)}return r}function eae(e,t,n){if(n&&n.z2==null){n=oe({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??jre)}return n}function tae(e,t,n){var r=je(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:Jre(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=oe({},n),o=oe({opacity:r?a:i.opacity*.1},o),n.style=o),n}function I_(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Qre(this,e,t,n);if(e==="blur")return tae(this,e,n);if(e==="select")return eae(this,e,n)}return n}function ru(e){e.stateProxy=I_;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=I_),n&&(n.stateProxy=I_)}function EM(e,t){!c$(e,t)&&!e.__highByOuter&&fo(e,a$)}function RM(e,t){!c$(e,t)&&!e.__highByOuter&&fo(e,i$)}function Qi(e,t){e.__highByOuter|=1<<(t||0),fo(e,a$)}function eo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&fo(e,i$)}function s$(e){fo(e,lT)}function uT(e){fo(e,o$)}function l$(e){fo(e,Kre)}function u$(e){fo(e,qre)}function c$(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function f$(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=oT(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){o$(u)}),s&&n.push(i)),o.isBlured=!1}),k(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function sx(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function zl(e,t,n){xl(e,!0),fo(e,ru),ux(e,t,n)}function sae(e){xl(e,!1)}function Xt(e,t,n,r){r?sae(e):zl(e,t,n)}function ux(e,t,n){var r=$e(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var OM=["emphasis","blur","select"],lae={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Gn(e,t,n,r){n=n||"itemStyle";for(var a=0;a1&&(o*=P_(h),s*=P_(h));var g=(a===i?-1:1)*P_((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,p=g*o*v/s,m=g*-s*d/o,y=(e+n)/2+eg(f)*p-Qh(f)*m,_=(t+r)/2+Qh(f)*p+eg(f)*m,b=FM([1,0],[(d-p)/o,(v-m)/s]),x=[(d-p)/o,(v-m)/s],S=[(-1*d-p)/o,(-1*v-m)/s],w=FM(x,S);if(fx(x,S)<=-1&&(w=Pf),fx(x,S)>=1&&(w=0),w<0){var C=Math.round(w/Pf*1e6)/1e6;w=Pf*2+C%2*Pf}c.addData(u,y,_,o,s,b,w,f,i)}var hae=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gae=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function pae(e){var t=new Ti;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=Ti.CMD,l=e.match(hae);if(!l)return t;for(var u=0;uL*L+R*R&&(C=A,T=P),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(a/x-1),y1:T*(a/x-1)}}function wae(e){var t;if(ue(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Cae(e,t){var n,r=nd(t.r,0),a=nd(t.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,v=GM(u-l),h=v>D_&&v%D_;if(h>Da&&(v=h),!(r>Da))e.moveTo(c,f);else if(v>D_-Da)e.moveTo(c+r*Vu(l),f+r*Ys(l)),e.arc(c,f,r,l,u,!d),a>Da&&(e.moveTo(c+a*Vu(u),f+a*Ys(u)),e.arc(c,f,a,u,l,d));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0,w=void 0,C=void 0,T=void 0,A=void 0,P=void 0,D=void 0,M=void 0,L=void 0,R=r*Vu(l),O=r*Ys(l),W=a*Vu(u),V=a*Ys(u),G=v>Da;if(G){var X=t.cornerRadius;X&&(n=wae(X),g=n[0],p=n[1],m=n[2],y=n[3]);var Z=GM(r-a)/2;if(_=ei(Z,m),b=ei(Z,y),x=ei(Z,g),S=ei(Z,p),T=w=nd(_,b),A=C=nd(x,S),(w>Da||C>Da)&&(P=r*Vu(u),D=r*Ys(u),M=a*Vu(l),L=a*Ys(l),v<_$)){var J=xae(R,O,M,L,P,D,W,V);if(J){var ee=R-J[0],F=O-J[1],U=P-J[0],$=D-J[1],z=1/Ys(Sae((ee*U+F*$)/(Id(ee*ee+F*F)*Id(U*U+$*$)))/2),H=Id(J[0]*J[0]+J[1]*J[1]);T=ei(w,(r-H)/(z+1)),A=ei(C,(a-H)/(z-1))}}}if(!G)e.moveTo(c+R,f+O);else if(T>Da){var j=ei(m,T),Y=ei(y,T),q=tg(M,L,R,O,r,j,d),te=tg(P,D,W,V,r,Y,d);e.moveTo(c+q.cx+q.x0,f+q.cy+q.y0),T0&&e.arc(c+q.cx,f+q.cy,j,Un(q.y0,q.x0),Un(q.y1,q.x1),!d),e.arc(c,f,r,Un(q.cy+q.y1,q.cx+q.x1),Un(te.cy+te.y1,te.cx+te.x1),!d),Y>0&&e.arc(c+te.cx,f+te.cy,Y,Un(te.y1,te.x1),Un(te.y0,te.x0),!d))}else e.moveTo(c+R,f+O),e.arc(c,f,r,l,u,!d);if(!(a>Da)||!G)e.lineTo(c+W,f+V);else if(A>Da){var j=ei(g,A),Y=ei(p,A),q=tg(W,V,P,D,a,-Y,d),te=tg(R,O,M,L,a,-j,d);e.lineTo(c+q.cx+q.x0,f+q.cy+q.y0),A0&&e.arc(c+q.cx,f+q.cy,Y,Un(q.y0,q.x0),Un(q.y1,q.x1),!d),e.arc(c,f,a,Un(q.cy+q.y1,q.cx+q.x1),Un(te.cy+te.y1,te.cx+te.x1),d),j>0&&e.arc(c+te.cx,f+te.cy,j,Un(te.y1,te.x1),Un(te.y0,te.x0),!d))}else e.lineTo(c+W,f+V),e.arc(c,f,a,u,l,d)}e.closePath()}}}var Tae=function(){function e(){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 e}(),b$=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Tae},t.prototype.buildPath=function(n,r){Cae(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Qe);b$.prototype.type="sector";const Pr=b$;var Aae=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),S$=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Aae},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},t}(Qe);S$.prototype.type="ring";const Zy=S$;function Iae(e,t,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=e.length;d=2){if(r){var i=Iae(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;sZs[1]){if(s=!1,i)return s;var c=Math.abs(Zs[0]-Xs[1]),f=Math.abs(Xs[0]-Zs[1]);Math.min(c,f)>a.len()&&(c0){var f=c.duration,d=c.delay,v=c.easing,h={duration:f,delay:d||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function ct(e,t,n,r,a,i){gT("update",e,t,n,r,a,i)}function Nt(e,t,n,r,a,i){gT("enter",e,t,n,r,a,i)}function hc(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function UM(e){return!e.isGroup}function Xae(e){return e.shape!=null}function ih(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){UM(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Xae(o)&&(s.shape=oe({},o.shape)),s}var i=r(e);t.traverse(function(o){if(UM(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ct(o,l,n,$e(o).dataIndex)}}})}function R$(e,t){return fe(e,function(n){var r=n[0];r=tm(r,t.x),r=nm(r,t.x+t.width);var a=n[1];return a=tm(a,t.y),a=nm(a,t.y+t.height),[r,a]})}function Zae(e,t){var n=tm(e.x,t.x),r=nm(e.x+e.width,t.x+t.width),a=tm(e.y,t.y),i=nm(e.y+e.height,t.y+t.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function oh(e,t,n){var r=oe({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Ee(a,n),new Wn(r)):Ky(e.replace("path://",""),r,n,"center")}function rd(e,t,n,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var p=M_(v,h,c,f)/d;return!(p<0||p>1)}function M_(e,t,n,r){return e*r-n*t}function jae(e){return e<=1e-6&&e>=-1e-6}function rf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=we(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&k(tt(l),function(c){Te(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=$e(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Ee({content:r,formatterParams:s},a)}}function YM(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function As(e,t){if(e)if(ue(e))for(var n=0;n=0&&s.push(l)}),s}}function Is(e,t){return Ye(Ye({},e,!0),t,!0)}const lie={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:". "}}}},uie={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 am="ZH",mT="EN",pv=mT,lp={},yT={},G$=st.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(am)>-1?am:pv}():pv;function H$(e,t){e=e.toUpperCase(),yT[e]=new Lt(t),lp[e]=t}function cie(e){if(we(e)){var t=lp[e.toUpperCase()]||{};return e===am||e===mT?Ve(t):Ye(Ve(t),Ve(lp[pv]),!1)}else return Ye(Ve(e),Ve(lp[pv]),!1)}function hx(e){return yT[e]}function fie(){return yT[pv]}H$(mT,lie);H$(am,uie);var _T=1e3,bT=_T*60,Pd=bT*60,la=Pd*24,qM=la*365,ad={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}"},ag="{yyyy}-{MM}-{dd}",JM={year:"{yyyy}",month:"{yyyy}-{MM}",day:ag,hour:ag+" "+ad.hour,minute:ag+" "+ad.minute,second:ag+" "+ad.second,millisecond:ad.none},E_=["year","month","day","hour","minute","second","millisecond"],W$=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wo(e,t){return e+="","0000".substr(0,t-e.length)+e}function gc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function die(e){return e===gc(e)}function vie(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Qy(e,t,n,r){var a=Ci(e),i=a[ST(n)](),o=a[pc(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[e0(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[mv(n)](),f=(c-1)%12+1,d=a[t0(n)](),v=a[n0(n)](),h=a[r0(n)](),g=r instanceof Lt?r:hx(r||G$)||fie(),p=g.getModel("time"),m=p.get("month"),y=p.get("monthAbbr"),_=p.get("dayOfWeek"),b=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,wo(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,wo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,wo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,wo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,wo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,wo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,wo(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,wo(h,3)).replace(/{S}/g,h+"")}function hie(e,t,n,r,a){var i=null;if(we(n))i=n;else if(Le(n))i=n(e.value,t,{level:e.level});else{var o=oe({},ad);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(ue(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return Qy(new Date(e.value),i,a,r)}function U$(e,t){var n=Ci(e),r=n[pc(t)]()+1,a=n[e0(t)](),i=n[mv(t)](),o=n[t0(t)](),s=n[n0(t)](),l=n[r0(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,v=d&&a===1,h=v&&r===1;return h?"year":v?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function QM(e,t,n){var r=ut(e)?Ci(e):e;switch(t=t||U$(e,n),t){case"year":return r[ST(n)]();case"half-year":return r[pc(n)]()>=6?1:0;case"quarter":return Math.floor((r[pc(n)]()+1)/4);case"month":return r[pc(n)]();case"day":return r[e0(n)]();case"half-day":return r[mv(n)]()/24;case"hour":return r[mv(n)]();case"minute":return r[t0(n)]();case"second":return r[n0(n)]();case"millisecond":return r[r0(n)]()}}function ST(e){return e?"getUTCFullYear":"getFullYear"}function pc(e){return e?"getUTCMonth":"getMonth"}function e0(e){return e?"getUTCDate":"getDate"}function mv(e){return e?"getUTCHours":"getHours"}function t0(e){return e?"getUTCMinutes":"getMinutes"}function n0(e){return e?"getUTCSeconds":"getSeconds"}function r0(e){return e?"getUTCMilliseconds":"getMilliseconds"}function gie(e){return e?"setUTCFullYear":"setFullYear"}function Y$(e){return e?"setUTCMonth":"setMonth"}function X$(e){return e?"setUTCDate":"setDate"}function Z$(e){return e?"setUTCHours":"setHours"}function j$(e){return e?"setUTCMinutes":"setMinutes"}function K$(e){return e?"setUTCSeconds":"setSeconds"}function q$(e){return e?"setUTCMilliseconds":"setMilliseconds"}function J$(e){if(!L5(e))return we(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Q$(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var sf=XC;function gx(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Va(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ci(e):e;if(isNaN(+l)){if(s)return"-"}else return Qy(l,r,n)}if(t==="ordinal")return E1(e)?a(e):ut(e)&&i(e)?e+"":"-";var u=Ji(e);return i(u)?J$(u):E1(e)?a(e):typeof e=="boolean"?e+"":"-"}var ek=["a","b","c","d","e","f","g"],R_=function(e,t){return"{"+e+(t??"")+"}"};function eG(e,t,n){ue(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function au(e,t){return t=t||"transparent",we(e)?e:Re(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function im(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var up=k,tG=["left","right","top","bottom","width","height"],wl=[["width","left","right"],["height","top","bottom"]];function xT(e,t,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),v,h;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);v=i+g,v>r||l.newline?(i=0,v=g,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(d?-d.y+c.y:0);h=o+p,h>a||l.newline?(i+=s+n,o=0,h=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=v+n:o=h+n)})}var $l=xT;He(xT,"vertical");He(xT,"horizontal");function yie(e,t,n){var r=t.width,a=t.height,i=be(e.left,r),o=be(e.top,a),s=be(e.right,r),l=be(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),n=sf(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function gn(e,t,n){n=sf(n||0);var r=t.width,a=t.height,i=be(e.left,r),o=be(e.top,a),s=be(e.right,r),l=be(e.bottom,a),u=be(e.width,r),c=be(e.height,a),f=n[2]+n[0],d=n[1]+n[3],v=e.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var h=new Xe(i+n[3],o+n[0],u,c);return h.margin=n,h}function a0(e,t,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Xe(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=gn(Ee({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=v):(i.x+=d,i.y+=v),i===e&&e.markRedraw(),!0}function _ie(e,t){return e[wl[t][0]]!=null||e[wl[t][1]]!=null&&e[wl[t][2]]!=null}function yv(e){var t=e.layoutMode||e.constructor.layoutMode;return Re(t)?t:t?{type:t}:null}function ds(e,t,n){var r=n&&n.ignoreSize;!ue(r)&&(r=[r,r]);var a=o(wl[0],0),i=o(wl[1],1);u(wl[0],e,a),u(wl[1],e,i);function o(c,f){var d={},v=0,h={},g=0,p=2;if(up(c,function(_){h[_]=e[_]}),up(c,function(_){s(t,_)&&(d[_]=h[_]=t[_]),l(d,_)&&v++,l(h,_)&&g++}),r[f])return l(t,c[1])?h[c[2]]=null:l(t,c[2])&&(h[c[1]]=null),h;if(g===p||!v)return h;if(v>=p)return d;for(var m=0;m=0;l--)s=Ye(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return nh(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(Lt);G5(uf,Lt);Gy(uf);oie(uf);sie(uf,Sie);function Sie(e){var t=[];return k(uf.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=fe(t,function(n){return di(n).main}),e!=="dataset"&&je(t,"dataset")<=0&&t.unshift("dataset"),t}const ot=uf;var rG="";typeof navigator<"u"&&(rG=navigator.platform||"");var Ou="rgba(0, 0, 0, 0.2)";const xie={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ou,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ou,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ou,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ou,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ou,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ou,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:rG.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 aG=Pe(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ta="original",tr="arrayRows",Aa="objectRows",Di="keyedColumns",es="typedArray",iG="unknown",pi="column",cf="row",Bn={Must:1,Might:2,Not:3},oG=it();function wie(e){oG(e).datasetMap=Pe()}function sG(e,t,n){var r={},a=CT(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=oG(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),k(e,function(g,p){var m=Re(g)?g:e[p]={name:g};m.type==="ordinal"&&c==null&&(c=p,f=h(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(e,function(g,p){var m=g.name,y=h(g);if(c==null){var _=d.valueWayDim;v(r[m],_,y),v(o,_,y),d.valueWayDim+=y}else if(c===p)v(r[m],0,y),v(i,0,y);else{var _=d.categoryWayDim;v(r[m],_,y),v(o,_,y),d.categoryWayDim+=y}});function v(g,p,m){for(var y=0;yt)return e[r];return e[n-1]}function cG(e,t,n,r,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:Pie(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Die(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ig,Df,nk,rk="\0_ec_inner",Mie=1,fG=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Lt(i),this._locale=new Lt(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=ok(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,ok(r))},t.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?nk(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&k(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Pe(),u=r&&r.replaceMergeMainTypeMap;wie(this),k(n,function(f,d){f!=null&&(ot.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Ve(f):Ye(a[d],f,!0))}),u&&u.each(function(f,d){ot.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),c,this);function c(f){var d=Aie(this,f,bt(n[f])),v=i.get(f),h=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=N5(v,d,h);Yne(g,f,ot),a[f]=null,i.set(f,null),o.set(f,0);var p=[],m=[],y=0,_;k(g,function(b,x){var S=b.existing,w=b.newOption;if(!w)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",T=ot.getClass(f,b.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===T)S.name=b.keyInfo.name,S.mergeOption(w,this),S.optionUpdated(w,!1);else{var A=oe({componentIndex:x},b.keyInfo);S=new T(w,this,this,A),oe(S,A),b.brandNew&&(S.__requireNewView=!0),S.init(w,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),m.push(S),y++):(p.push(void 0),m.push(void 0))},this),a[f]=p,i.set(f,m),o.set(f,y),f==="series"&&ig(this)}this._seriesIndices||ig(this)},t.prototype.getOption=function(){var n=Ve(this.option);return k(n,function(r,a){if(ot.hasClass(a)){for(var i=bt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!fv(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[rk],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=t:n==="max"?e<=t:e===t}function $ie(e,t){return e.join(",")===t.join(",")}const Gie=Nie;var Ia=k,_v=Re,sk=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function O_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=sk.length;n=0;p--){var m=e[p];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,v)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=Vne(d,y),g=y;break}}}return r[0]=d,r[1]=g,r})})}var i0=function(){function e(t){this.data=t.data||(t.sourceFormat===Di?{}:[]),this.sourceFormat=t.sourceFormat||iG,this.seriesLayoutBy=t.seriesLayoutBy||pi,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rg&&(g=_)}v[0]=h,v[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};hk=(t={},t[tr+"_"+pi]={pure:!0,appendData:i},t[tr+"_"+cf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Aa]={pure:!0,appendData:i},t[Di]={pure:!0,appendData:function(o){var s=this._data;k(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ta]={appendData:i},t[es]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,n){return Lc(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function yk(e){var t,n;return Re(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Dd(e){return new ioe(e)}var ioe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||v1&&r>0?s:o}};return i;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},soe=function(){function e(t,n){if(!ut(n)){var r="";ft(r)}this._opFn=wG[t],this._rvalFloat=Ji(n)}return e.prototype.evaluate=function(t){return ut(t)?this._opFn(t,this._rvalFloat):this._opFn(Ji(t),this._rvalFloat)},e}(),CG=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=ut(t)?t:Ji(t),a=ut(n)?n:Ji(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=we(t),l=we(n);s&&(r=l?t:0),l&&(a=s?n:0)}return ra?-this._resultLT:0},e}(),loe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Ji(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Ji(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function uoe(e,t){return e==="eq"||e==="ne"?new loe(e==="eq",t):Te(wG,e)?new soe(e,t):null}var coe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return ts(t,n)},e}();function foe(e,t){var n=new coe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==pi&&ft(o);var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";Te(l,m)&&ft(_),l[m]=y}});else for(var c=0;c65535?_oe:boe}function Nu(){return[1/0,-1/0]}function Soe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sk(e,t,n,r,a){var i=IG[n||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;up[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=fe(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var a=this._chunks,i=a[t],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=h,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){t=new r(a);for(var i=0;i=f&&y<=d||isNaN(y))&&(l[u++]=g),g++}h=!0}else if(i===2){for(var p=v[a[0]],_=v[a[1]],b=t[a[1]][0],x=t[a[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(S>=b&&S<=x||isNaN(S))&&(l[u++]=g),g++}h=!0}}if(!h)if(i===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[A][1])&&(C=!1)}C&&(l[u++]=n.getRawIndex(m))}return um[1]&&(m[1]=p)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),a=r._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,v=new(kf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var h=1;hc&&(c=f,d=b)}P>0&&Pc-h&&(l=c-h,s.length=l);for(var g=0;gf[1]&&(f[1]=m),d[v++]=y}return i._count=v,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,a,i){return ts(n[i],this._dimensions[i])}z_={arrayRows:t,objectRows:function(n,r,a,i){return ts(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return ts(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}(),PG=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(og(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Gr(s)?es:Ta,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},v=Ue(f.seriesLayoutBy,d.seriesLayoutBy)||null,h=Ue(f.sourceHeader,d.sourceHeader),g=Ue(f.dimensions,d.dimensions),p=v!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||g;a=p?[yx(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:g},l)]:[]}else{var m=t;if(r){var y=this._applyTransform(n);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[yx(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&wk(i)}var o,s=[],l=[];return k(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&wk(f),s.push(c),l.push(u._getVersionSign())}),r?o=moe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[Jie(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;nn:a+c+v>n){c?(s||l)&&(h?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=v)):h?(i.push(l),o.push(u),l=d,u=v):(i.push(d),o.push(v));continue}c+=v,h?(l+=d,u+=v):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var rx="__zr_style_"+Math.round(Math.random()*10),Nl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Hy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Nl[rx]=!0;var hM=["z","z2","invisible"],bre=["invisible"],Sre=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=tt(n),a=0;a1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Kh[0]=__(a)*n+e,Kh[1]=y_(a)*r+t,qh[0]=__(i)*n+e,qh[1]=y_(i)*r+t,u(s,Kh,qh),c(l,Kh,qh),a=a%Fs,a<0&&(a=a+Fs),i=i%Fs,i<0&&(i=i+Fs),a>i&&!o?i+=Fs:aa&&(Jh[0]=__(v)*n+e,Jh[1]=y_(v)*r+t,u(s,Jh,s),c(l,Jh,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$s=[],Gs=[],qa=[],So=[],Ja=[],Qa=[],b_=Math.min,S_=Math.max,Hs=Math.cos,Ws=Math.sin,Li=Math.abs,ax=Math.PI,Lo=ax*2,x_=typeof Float32Array<"u",Af=[];function w_(e){var t=Math.round(e/ax*1e8)/1e8;return t%2*ax}function Y5(e,t){var n=w_(e[0]);n<0&&(n+=Lo);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=Lo?a=n+Lo:t&&n-a>=Lo?a=n-Lo:!t&&n>a?a=n+(Lo-w_(n-a)):t&&n0&&(this._ux=Li(r/jp/t)||0,this._uy=Li(r/jp/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(xt.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Li(t-this._xi),a=Li(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(xt.L,t,n),this._ctx&&i&&this._ctx.lineTo(t,n),i)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){return this._drawPendingPt(),this.addData(xt.C,t,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(xt.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,i,o){this._drawPendingPt(),Af[0]=a,Af[1]=i,Y5(Af,o),a=Af[0],i=Af[1];var s=i-a;return this.addData(xt.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=Hs(i)*r+t,this._yi=Ws(i)*r+n,this},e.prototype.arcTo=function(t,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,i),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(xt.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(xt.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&x_&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){qa[0]=qa[1]=Ja[0]=Ja[1]=Number.MAX_VALUE,So[0]=So[1]=Qa[0]=Qa[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,i=0,o;for(o=0;or||Li(_)>a||d===n-1)&&(g=Math.sqrt(y*y+_*_),i=p,o=m);break}case xt.C:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++],S=t[d++],w=t[d++];g=$te(i,o,b,x,p,m,S,w,10),i=S,o=w;break}case xt.Q:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++];g=Hte(i,o,b,x,p,m,10),i=p,o=m;break}case xt.A:var C=t[d++],T=t[d++],A=t[d++],P=t[d++],D=t[d++],M=t[d++],L=M+D;d+=1,t[d++],h&&(s=Hs(D)*A+C,l=Ws(D)*P+T),g=S_(A,P)*b_(Lo,Math.abs(M)),i=Hs(L)*A+C,o=Ws(L)*P+T;break;case xt.R:{s=i=t[d++],l=o=t[d++];var R=t[d++],O=t[d++];g=R*2+O*2;break}case xt.Z:{var y=s-i,_=l-o;g=Math.sqrt(y*y+_*_),i=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,v=n<1,h,g,p=0,m=0,y,_=0,b,x;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,g=this._pathLen,y=n*g,!y)))e:for(var S=0;S0&&(t.lineTo(b,x),_=0),w){case xt.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case xt.L:{f=r[S++],d=r[S++];var T=Li(f-u),A=Li(d-c);if(T>a||A>i){if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;t.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}p+=P}t.lineTo(f,d),u=f,c=d,_=0}else{var M=T*T+A*A;M>_&&(b=f,x=d,_=M)}break}case xt.C:{var L=r[S++],R=r[S++],O=r[S++],H=r[S++],V=r[S++],G=r[S++];if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;cs(u,L,O,V,D,$s),cs(c,R,H,G,D,Gs),t.bezierCurveTo($s[1],Gs[1],$s[2],Gs[2],$s[3],Gs[3]);break e}p+=P}t.bezierCurveTo(L,R,O,H,V,G),u=V,c=G;break}case xt.Q:{var L=r[S++],R=r[S++],O=r[S++],H=r[S++];if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;lv(u,L,O,D,$s),lv(c,R,H,D,Gs),t.quadraticCurveTo($s[1],Gs[1],$s[2],Gs[2]);break e}p+=P}t.quadraticCurveTo(L,R,O,H),u=O,c=H;break}case xt.A:var X=r[S++],Z=r[S++],q=r[S++],Q=r[S++],ae=r[S++],W=r[S++],F=r[S++],z=!r[S++],$=q>Q?q:Q,U=Li(q-Q)>.001,Y=ae+W,j=!1;if(v){var P=h[m++];p+P>y&&(Y=ae+W*(y-p)/P,j=!0),p+=P}if(U&&t.ellipse?t.ellipse(X,Z,q,Q,F,ae,Y,z):t.arc(X,Z,$,ae,Y,z),j)break e;C&&(s=Hs(ae)*q+X,l=Ws(ae)*Q+Z),u=Hs(Y)*q+X,c=Ws(Y)*Q+Z;break;case xt.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var te=r[S++],N=r[S++];if(v){var P=h[m++];if(p+P>y){var B=y-p;t.moveTo(f,d),t.lineTo(f+b_(B,te),d),B-=te,B>0&&t.lineTo(f+te,d+b_(B,N)),B-=N,B>0&&t.lineTo(f+S_(te-B,0),d+N),B-=te,B>0&&t.lineTo(f,d+S_(N-B,0));break e}p+=P}t.rect(f,d,te,N);break;case xt.Z:if(v){var P=h[m++];if(p+P>y){var D=(y-p)/P;t.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break e}p+=P}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=xt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function zo(e,t,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>r+s||oe+s&&i>n+s||it+f&&c>r+f&&c>i+f&&c>s+f||ce+f&&u>n+f&&u>a+f&&u>o+f||ut+u&&l>r+u&&l>i+u||le+u&&s>n+u&&s>a+u||sn||c+ua&&(a+=If);var d=Math.atan2(l,s);return d<0&&(d+=If),d>=r&&d<=a||d+If>=r&&d+If<=a}function Ni(e,t,n,r,a,i){if(i>t&&i>r||ia?s:0}var xo=Ti.CMD,Us=Math.PI*2,Pre=1e-4;function Dre(e,t){return Math.abs(e-t)t&&u>r&&u>i&&u>s||u1&&Mre(),v=mn(t,r,i,s,ta[0]),d>1&&(h=mn(t,r,i,s,ta[1]))),d===2?pt&&s>r&&s>i||s=0&&u<=1){for(var c=0,f=An(t,r,i,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ur[0]=-l,ur[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=Us-1e-4){r=0,a=Us;var c=i?1:-1;return o>=ur[0]+e&&o<=ur[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=Us,a+=Us);for(var d=0,v=0;v<2;v++){var h=ur[v];if(h+e>o){var g=Math.atan2(s,h),c=i?1:-1;g<0&&(g=Us+g),(g>=r&&g<=a||g+Us>=r&&g+Us<=a)&&(g>Math.PI/2&&g1&&(n||(s+=Ni(l,u,c,f,r,a))),p&&(l=i[h],u=i[h+1],c=l,f=u),g){case xo.M:c=i[h++],f=i[h++],l=c,u=f;break;case xo.L:if(n){if(zo(l,u,i[h],i[h+1],t,r,a))return!0}else s+=Ni(l,u,i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case xo.C:if(n){if(Are(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=kre(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case xo.Q:if(n){if(X5(l,u,i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=Lre(l,u,i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case xo.A:var m=i[h++],y=i[h++],_=i[h++],b=i[h++],x=i[h++],S=i[h++];h+=1;var w=!!(1-i[h++]);d=Math.cos(x)*_+m,v=Math.sin(x)*b+y,p?(c=d,f=v):s+=Ni(l,u,d,v,r,a);var C=(r-m)*b/_+m;if(n){if(Ire(m,y,b,x,x+S,w,t,C,a))return!0}else s+=Ere(m,y,b,x,x+S,w,C,a);l=Math.cos(x+S)*_+m,u=Math.sin(x+S)*b+y;break;case xo.R:c=l=i[h++],f=u=i[h++];var T=i[h++],A=i[h++];if(d=c+T,v=f+A,n){if(zo(c,f,d,f,t,r,a)||zo(d,f,d,v,t,r,a)||zo(d,v,c,v,t,r,a)||zo(c,v,c,f,t,r,a))return!0}else s+=Ni(d,f,d,v,r,a),s+=Ni(c,v,c,f,r,a);break;case xo.Z:if(n){if(zo(l,u,c,f,t,r,a))return!0}else s+=Ni(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!Dre(u,f)&&(s+=Ni(l,u,c,f,r,a)||0),s!==0}function Rre(e,t,n){return Z5(e,0,!1,t,n)}function Vre(e,t,n,r){return Z5(e,t,!0,n,r)}var Jp=Ee({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Nl),Ore={style:Ee({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Hy.style)},C_=wi.concat(["invisible","culling","z","z2","zlevel","parent"]),Nre=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Q1:r>.2?bne:ex}else if(n)return ex}return Q1},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(we(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Xp(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&qu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Vre(s,l/u,n,r)))return!0}if(this.hasFill())return Rre(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=qu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:oe(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&qu)},t.prototype.createStyle=function(n){return Ny(Jp,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=oe({},this.shape))},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=oe({},a.shape),oe(u,r.shape)):(u=oe({},i?this.shape:a.shape),oe(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=oe({},this.shape);for(var c={},f=tt(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return Ny(Bre,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=th(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(_a);j5.prototype.type="tspan";const dv=j5;var zre=Ee({x:0,y:0},Nl),Fre={style:Ee({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Hy.style)};function $re(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var K5=function(e){Ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return Ny(zre,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=$re(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Fre},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Xe(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_a);K5.prototype.type="image";const Wn=K5;function Gre(e,t){var n=t.x,r=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+i-u),u!==0&&e.arc(n+a-u,r+i-u,u,0,Math.PI/2),e.lineTo(n+c,r+i),c!==0&&e.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var ac=Math.round;function q5(e,t,n){if(t){var r=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=r,e.x2=a,e.y1=i,e.y2=o;var s=n&&n.lineWidth;return s&&(ac(r*2)===ac(a*2)&&(e.x1=e.x2=Sl(r,s,!0)),ac(i*2)===ac(o*2)&&(e.y1=e.y2=Sl(i,s,!0))),e}}function J5(e,t,n){if(t){var r=t.x,a=t.y,i=t.width,o=t.height;e.x=r,e.y=a,e.width=i,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=Sl(r,s,!0),e.y=Sl(a,s,!0),e.width=Math.max(Sl(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Sl(a+o,s,!1)-e.y,o===0?0:1)),e}}function Sl(e,t,n){if(!t)return e;var r=ac(e*2);return(r+ac(t))%2===0?r/2:(r+(n?1:-1))/2}var Hre=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Wre={},Q5=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Hre},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=J5(Wre,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?Gre(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Qe);Q5.prototype.type="rect";const at=Q5;var _M={fill:"#000"},bM=2,Ure={style:Ee({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},Hy.style)},e$=function(e){Ot(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=_M,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,D=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),M=o.calculatedLineHeight,L=0;L=0&&(L=S[M],L.align==="right");)this._placeToken(L,n,C,m,D,"right",_),T-=L.width,D-=L.width,M--;for(P+=(i-(P-p)-(y-D)-T)/2;A<=M;)L=S[A],this._placeToken(L,n,C,m,P+L.width/2,"center",_),P+=L.width,A++;m+=C}},t.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&T_(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var v=!!u.backgroundColor,h=n.textPadding;h&&(o=AM(o,s,h),f-=n.height/2-h[0]-n.innerHeight/2);var g=this._getOrCreateChild(dv),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,b=TM("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,m.fill)),x=CM("stroke"in u?u.stroke:"stroke"in r?r.stroke:!v&&!l&&(!m.autoStroke||y)?(_=bM,m.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;p.text=n.text,p.x=o,p.y=f,S&&(p.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,p.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=n.font||ls,p.opacity=gi(u.opacity,r.opacity,1),xM(p,u),x&&(p.lineWidth=gi(u.lineWidth,r.lineWidth,_),p.lineDash=Ue(u.lineDash,r.lineDash),p.lineDashOffset=r.lineDashOffset||0,p.stroke=x),b&&(p.fill=b);var w=n.contentWidth,C=n.contentHeight;g.setBoundingRect(new Xe(td(p.x,w,p.textAlign),Ju(p.y,C,p.textBaseline),w,C))},t.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,v=n.borderRadius,h=this,g,p;if(d||n.lineHeight||u&&c){g=this._getOrCreateChild(at),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(d){var y=g.style;y.fill=l||null,y.fillOpacity=Ue(n.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Wn),p.onload=function(){h.dirtyStyle()};var _=p.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var y=g.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ue(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=n.shadowBlur||0,b.shadowColor=n.shadowColor||"transparent",b.shadowOffsetX=n.shadowOffsetX||0,b.shadowOffsetY=n.shadowOffsetY||0,b.opacity=gi(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return n$(n)&&(r=[n.fontStyle,n.fontWeight,t$(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Va(r)||n.textFont||n.font},t}(_a),Yre={left:!0,right:1,center:1},Xre={top:1,bottom:1,middle:1},SM=["fontStyle","fontWeight","fontSize","fontFamily"];function t$(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?$C+"px":e+"px"}function xM(e,t){for(var n=0;n=0,i=!1;if(e instanceof Qe){var o=r$(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Eu(s)||Eu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=oe({},r),u=oe({},u),u.fill=s):!Eu(u.fill)&&Eu(s)?(i=!0,r=oe({},r),u=oe({},u),u.fill=kM(s)):!Eu(u.stroke)&&Eu(l)&&(i||(r=oe({},r),u=oe({},u)),u.stroke=kM(l)),r.style=u}}if(r&&r.z2==null){i||(r=oe({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??tf)}return r}function eae(e,t,n){if(n&&n.z2==null){n=oe({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??jre)}return n}function tae(e,t,n){var r=je(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:Jre(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=oe({},n),o=oe({opacity:r?a:i.opacity*.1},o),n.style=o),n}function A_(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Qre(this,e,t,n);if(e==="blur")return tae(this,e,n);if(e==="select")return eae(this,e,n)}return n}function ru(e){e.stateProxy=A_;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=A_),n&&(n.stateProxy=A_)}function EM(e,t){!c$(e,t)&&!e.__highByOuter&&fo(e,a$)}function RM(e,t){!c$(e,t)&&!e.__highByOuter&&fo(e,i$)}function Qi(e,t){e.__highByOuter|=1<<(t||0),fo(e,a$)}function eo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&fo(e,i$)}function s$(e){fo(e,lT)}function uT(e){fo(e,o$)}function l$(e){fo(e,Kre)}function u$(e){fo(e,qre)}function c$(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function f$(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=oT(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){o$(u)}),s&&n.push(i)),o.isBlured=!1}),k(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function ox(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function zl(e,t,n){xl(e,!0),fo(e,ru),lx(e,t,n)}function sae(e){xl(e,!1)}function Xt(e,t,n,r){r?sae(e):zl(e,t,n)}function lx(e,t,n){var r=$e(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var OM=["emphasis","blur","select"],lae={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Gn(e,t,n,r){n=n||"itemStyle";for(var a=0;a1&&(o*=I_(h),s*=I_(h));var g=(a===i?-1:1)*I_((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,p=g*o*v/s,m=g*-s*d/o,y=(e+n)/2+eg(f)*p-Qh(f)*m,_=(t+r)/2+Qh(f)*p+eg(f)*m,b=FM([1,0],[(d-p)/o,(v-m)/s]),x=[(d-p)/o,(v-m)/s],S=[(-1*d-p)/o,(-1*v-m)/s],w=FM(x,S);if(cx(x,S)<=-1&&(w=Pf),cx(x,S)>=1&&(w=0),w<0){var C=Math.round(w/Pf*1e6)/1e6;w=Pf*2+C%2*Pf}c.addData(u,y,_,o,s,b,w,f,i)}var hae=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gae=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function pae(e){var t=new Ti;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=Ti.CMD,l=e.match(hae);if(!l)return t;for(var u=0;uL*L+R*R&&(C=A,T=P),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(a/x-1),y1:T*(a/x-1)}}function wae(e){var t;if(ue(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Cae(e,t){var n,r=nd(t.r,0),a=nd(t.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,v=GM(u-l),h=v>P_&&v%P_;if(h>Da&&(v=h),!(r>Da))e.moveTo(c,f);else if(v>P_-Da)e.moveTo(c+r*Vu(l),f+r*Ys(l)),e.arc(c,f,r,l,u,!d),a>Da&&(e.moveTo(c+a*Vu(u),f+a*Ys(u)),e.arc(c,f,a,u,l,d));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0,w=void 0,C=void 0,T=void 0,A=void 0,P=void 0,D=void 0,M=void 0,L=void 0,R=r*Vu(l),O=r*Ys(l),H=a*Vu(u),V=a*Ys(u),G=v>Da;if(G){var X=t.cornerRadius;X&&(n=wae(X),g=n[0],p=n[1],m=n[2],y=n[3]);var Z=GM(r-a)/2;if(_=ei(Z,m),b=ei(Z,y),x=ei(Z,g),S=ei(Z,p),T=w=nd(_,b),A=C=nd(x,S),(w>Da||C>Da)&&(P=r*Vu(u),D=r*Ys(u),M=a*Vu(l),L=a*Ys(l),v<_$)){var q=xae(R,O,M,L,P,D,H,V);if(q){var Q=R-q[0],ae=O-q[1],W=P-q[0],F=D-q[1],z=1/Ys(Sae((Q*W+ae*F)/(Id(Q*Q+ae*ae)*Id(W*W+F*F)))/2),$=Id(q[0]*q[0]+q[1]*q[1]);T=ei(w,(r-$)/(z+1)),A=ei(C,(a-$)/(z-1))}}}if(!G)e.moveTo(c+R,f+O);else if(T>Da){var U=ei(m,T),Y=ei(y,T),j=tg(M,L,R,O,r,U,d),te=tg(P,D,H,V,r,Y,d);e.moveTo(c+j.cx+j.x0,f+j.cy+j.y0),T0&&e.arc(c+j.cx,f+j.cy,U,Un(j.y0,j.x0),Un(j.y1,j.x1),!d),e.arc(c,f,r,Un(j.cy+j.y1,j.cx+j.x1),Un(te.cy+te.y1,te.cx+te.x1),!d),Y>0&&e.arc(c+te.cx,f+te.cy,Y,Un(te.y1,te.x1),Un(te.y0,te.x0),!d))}else e.moveTo(c+R,f+O),e.arc(c,f,r,l,u,!d);if(!(a>Da)||!G)e.lineTo(c+H,f+V);else if(A>Da){var U=ei(g,A),Y=ei(p,A),j=tg(H,V,P,D,a,-Y,d),te=tg(R,O,M,L,a,-U,d);e.lineTo(c+j.cx+j.x0,f+j.cy+j.y0),A0&&e.arc(c+j.cx,f+j.cy,Y,Un(j.y0,j.x0),Un(j.y1,j.x1),!d),e.arc(c,f,a,Un(j.cy+j.y1,j.cx+j.x1),Un(te.cy+te.y1,te.cx+te.x1),d),U>0&&e.arc(c+te.cx,f+te.cy,U,Un(te.y1,te.x1),Un(te.y0,te.x0),!d))}else e.lineTo(c+H,f+V),e.arc(c,f,a,u,l,d)}e.closePath()}}}var Tae=function(){function e(){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 e}(),b$=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Tae},t.prototype.buildPath=function(n,r){Cae(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Qe);b$.prototype.type="sector";const Pr=b$;var Aae=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),S$=function(e){Ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Aae},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},t}(Qe);S$.prototype.type="ring";const Xy=S$;function Iae(e,t,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=e.length;d=2){if(r){var i=Iae(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;sZs[1]){if(s=!1,i)return s;var c=Math.abs(Zs[0]-Xs[1]),f=Math.abs(Xs[0]-Zs[1]);Math.min(c,f)>a.len()&&(c0){var f=c.duration,d=c.delay,v=c.easing,h={duration:f,delay:d||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function ct(e,t,n,r,a,i){gT("update",e,t,n,r,a,i)}function Nt(e,t,n,r,a,i){gT("enter",e,t,n,r,a,i)}function hc(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function UM(e){return!e.isGroup}function Xae(e){return e.shape!=null}function ih(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){UM(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Xae(o)&&(s.shape=oe({},o.shape)),s}var i=r(e);t.traverse(function(o){if(UM(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ct(o,l,n,$e(o).dataIndex)}}})}function R$(e,t){return fe(e,function(n){var r=n[0];r=tm(r,t.x),r=nm(r,t.x+t.width);var a=n[1];return a=tm(a,t.y),a=nm(a,t.y+t.height),[r,a]})}function Zae(e,t){var n=tm(e.x,t.x),r=nm(e.x+e.width,t.x+t.width),a=tm(e.y,t.y),i=nm(e.y+e.height,t.y+t.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function oh(e,t,n){var r=oe({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Ee(a,n),new Wn(r)):jy(e.replace("path://",""),r,n,"center")}function rd(e,t,n,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var p=D_(v,h,c,f)/d;return!(p<0||p>1)}function D_(e,t,n,r){return e*r-n*t}function jae(e){return e<=1e-6&&e>=-1e-6}function rf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=we(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&k(tt(l),function(c){Te(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=$e(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Ee({content:r,formatterParams:s},a)}}function YM(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function As(e,t){if(e)if(ue(e))for(var n=0;n=0&&s.push(l)}),s}}function Is(e,t){return Ye(Ye({},e,!0),t,!0)}const lie={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:". "}}}},uie={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 am="ZH",mT="EN",pv=mT,lp={},yT={},G$=st.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(am)>-1?am:pv}():pv;function H$(e,t){e=e.toUpperCase(),yT[e]=new Lt(t),lp[e]=t}function cie(e){if(we(e)){var t=lp[e.toUpperCase()]||{};return e===am||e===mT?Ve(t):Ye(Ve(t),Ve(lp[pv]),!1)}else return Ye(Ve(e),Ve(lp[pv]),!1)}function vx(e){return yT[e]}function fie(){return yT[pv]}H$(mT,lie);H$(am,uie);var _T=1e3,bT=_T*60,Pd=bT*60,la=Pd*24,qM=la*365,ad={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}"},ag="{yyyy}-{MM}-{dd}",JM={year:"{yyyy}",month:"{yyyy}-{MM}",day:ag,hour:ag+" "+ad.hour,minute:ag+" "+ad.minute,second:ag+" "+ad.second,millisecond:ad.none},L_=["year","month","day","hour","minute","second","millisecond"],W$=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wo(e,t){return e+="","0000".substr(0,t-e.length)+e}function gc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function die(e){return e===gc(e)}function vie(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Jy(e,t,n,r){var a=Ci(e),i=a[ST(n)](),o=a[pc(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qy(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[mv(n)](),f=(c-1)%12+1,d=a[e0(n)](),v=a[t0(n)](),h=a[n0(n)](),g=r instanceof Lt?r:vx(r||G$)||fie(),p=g.getModel("time"),m=p.get("month"),y=p.get("monthAbbr"),_=p.get("dayOfWeek"),b=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,wo(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,wo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,wo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,wo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,wo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,wo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,wo(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,wo(h,3)).replace(/{S}/g,h+"")}function hie(e,t,n,r,a){var i=null;if(we(n))i=n;else if(Le(n))i=n(e.value,t,{level:e.level});else{var o=oe({},ad);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(ue(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return Jy(new Date(e.value),i,a,r)}function U$(e,t){var n=Ci(e),r=n[pc(t)]()+1,a=n[Qy(t)](),i=n[mv(t)](),o=n[e0(t)](),s=n[t0(t)](),l=n[n0(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,v=d&&a===1,h=v&&r===1;return h?"year":v?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function QM(e,t,n){var r=ut(e)?Ci(e):e;switch(t=t||U$(e,n),t){case"year":return r[ST(n)]();case"half-year":return r[pc(n)]()>=6?1:0;case"quarter":return Math.floor((r[pc(n)]()+1)/4);case"month":return r[pc(n)]();case"day":return r[Qy(n)]();case"half-day":return r[mv(n)]()/24;case"hour":return r[mv(n)]();case"minute":return r[e0(n)]();case"second":return r[t0(n)]();case"millisecond":return r[n0(n)]()}}function ST(e){return e?"getUTCFullYear":"getFullYear"}function pc(e){return e?"getUTCMonth":"getMonth"}function Qy(e){return e?"getUTCDate":"getDate"}function mv(e){return e?"getUTCHours":"getHours"}function e0(e){return e?"getUTCMinutes":"getMinutes"}function t0(e){return e?"getUTCSeconds":"getSeconds"}function n0(e){return e?"getUTCMilliseconds":"getMilliseconds"}function gie(e){return e?"setUTCFullYear":"setFullYear"}function Y$(e){return e?"setUTCMonth":"setMonth"}function X$(e){return e?"setUTCDate":"setDate"}function Z$(e){return e?"setUTCHours":"setHours"}function j$(e){return e?"setUTCMinutes":"setMinutes"}function K$(e){return e?"setUTCSeconds":"setSeconds"}function q$(e){return e?"setUTCMilliseconds":"setMilliseconds"}function J$(e){if(!L5(e))return we(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Q$(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var sf=XC;function hx(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Va(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ci(e):e;if(isNaN(+l)){if(s)return"-"}else return Jy(l,r,n)}if(t==="ordinal")return L1(e)?a(e):ut(e)&&i(e)?e+"":"-";var u=Ji(e);return i(u)?J$(u):L1(e)?a(e):typeof e=="boolean"?e+"":"-"}var ek=["a","b","c","d","e","f","g"],E_=function(e,t){return"{"+e+(t??"")+"}"};function eG(e,t,n){ue(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function au(e,t){return t=t||"transparent",we(e)?e:Re(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function im(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var up=k,tG=["left","right","top","bottom","width","height"],wl=[["width","left","right"],["height","top","bottom"]];function xT(e,t,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),v,h;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);v=i+g,v>r||l.newline?(i=0,v=g,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(d?-d.y+c.y:0);h=o+p,h>a||l.newline?(i+=s+n,o=0,h=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=v+n:o=h+n)})}var $l=xT;He(xT,"vertical");He(xT,"horizontal");function yie(e,t,n){var r=t.width,a=t.height,i=be(e.left,r),o=be(e.top,a),s=be(e.right,r),l=be(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),n=sf(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function gn(e,t,n){n=sf(n||0);var r=t.width,a=t.height,i=be(e.left,r),o=be(e.top,a),s=be(e.right,r),l=be(e.bottom,a),u=be(e.width,r),c=be(e.height,a),f=n[2]+n[0],d=n[1]+n[3],v=e.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var h=new Xe(i+n[3],o+n[0],u,c);return h.margin=n,h}function r0(e,t,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Xe(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=gn(Ee({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=v):(i.x+=d,i.y+=v),i===e&&e.markRedraw(),!0}function _ie(e,t){return e[wl[t][0]]!=null||e[wl[t][1]]!=null&&e[wl[t][2]]!=null}function yv(e){var t=e.layoutMode||e.constructor.layoutMode;return Re(t)?t:t?{type:t}:null}function ds(e,t,n){var r=n&&n.ignoreSize;!ue(r)&&(r=[r,r]);var a=o(wl[0],0),i=o(wl[1],1);u(wl[0],e,a),u(wl[1],e,i);function o(c,f){var d={},v=0,h={},g=0,p=2;if(up(c,function(_){h[_]=e[_]}),up(c,function(_){s(t,_)&&(d[_]=h[_]=t[_]),l(d,_)&&v++,l(h,_)&&g++}),r[f])return l(t,c[1])?h[c[2]]=null:l(t,c[2])&&(h[c[1]]=null),h;if(g===p||!v)return h;if(v>=p)return d;for(var m=0;m=0;l--)s=Ye(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return nh(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(Lt);G5(uf,Lt);$y(uf);oie(uf);sie(uf,Sie);function Sie(e){var t=[];return k(uf.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=fe(t,function(n){return di(n).main}),e!=="dataset"&&je(t,"dataset")<=0&&t.unshift("dataset"),t}const ot=uf;var rG="";typeof navigator<"u"&&(rG=navigator.platform||"");var Ou="rgba(0, 0, 0, 0.2)";const xie={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ou,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ou,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ou,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ou,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ou,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ou,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:rG.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 aG=De(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ta="original",tr="arrayRows",Aa="objectRows",Di="keyedColumns",es="typedArray",iG="unknown",pi="column",cf="row",Bn={Must:1,Might:2,Not:3},oG=it();function wie(e){oG(e).datasetMap=De()}function sG(e,t,n){var r={},a=CT(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=oG(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),k(e,function(g,p){var m=Re(g)?g:e[p]={name:g};m.type==="ordinal"&&c==null&&(c=p,f=h(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(e,function(g,p){var m=g.name,y=h(g);if(c==null){var _=d.valueWayDim;v(r[m],_,y),v(o,_,y),d.valueWayDim+=y}else if(c===p)v(r[m],0,y),v(i,0,y);else{var _=d.categoryWayDim;v(r[m],_,y),v(o,_,y),d.categoryWayDim+=y}});function v(g,p,m){for(var y=0;yt)return e[r];return e[n-1]}function cG(e,t,n,r,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:Pie(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Die(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ig,Df,nk,rk="\0_ec_inner",Mie=1,fG=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Lt(i),this._locale=new Lt(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=ok(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,ok(r))},t.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?nk(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&k(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=De(),u=r&&r.replaceMergeMainTypeMap;wie(this),k(n,function(f,d){f!=null&&(ot.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Ve(f):Ye(a[d],f,!0))}),u&&u.each(function(f,d){ot.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),c,this);function c(f){var d=Aie(this,f,bt(n[f])),v=i.get(f),h=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=N5(v,d,h);Yne(g,f,ot),a[f]=null,i.set(f,null),o.set(f,0);var p=[],m=[],y=0,_;k(g,function(b,x){var S=b.existing,w=b.newOption;if(!w)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",T=ot.getClass(f,b.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===T)S.name=b.keyInfo.name,S.mergeOption(w,this),S.optionUpdated(w,!1);else{var A=oe({componentIndex:x},b.keyInfo);S=new T(w,this,this,A),oe(S,A),b.brandNew&&(S.__requireNewView=!0),S.init(w,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),m.push(S),y++):(p.push(void 0),m.push(void 0))},this),a[f]=p,i.set(f,m),o.set(f,y),f==="series"&&ig(this)}this._seriesIndices||ig(this)},t.prototype.getOption=function(){var n=Ve(this.option);return k(n,function(r,a){if(ot.hasClass(a)){for(var i=bt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!fv(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[rk],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=t:n==="max"?e<=t:e===t}function $ie(e,t){return e.join(",")===t.join(",")}const Gie=Nie;var Ia=k,_v=Re,sk=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function V_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=sk.length;n=0;p--){var m=e[p];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,v)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=Vne(d,y),g=y;break}}}return r[0]=d,r[1]=g,r})})}var a0=function(){function e(t){this.data=t.data||(t.sourceFormat===Di?{}:[]),this.sourceFormat=t.sourceFormat||iG,this.seriesLayoutBy=t.seriesLayoutBy||pi,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rg&&(g=_)}v[0]=h,v[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};hk=(t={},t[tr+"_"+pi]={pure:!0,appendData:i},t[tr+"_"+cf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Aa]={pure:!0,appendData:i},t[Di]={pure:!0,appendData:function(o){var s=this._data;k(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ta]={appendData:i},t[es]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,n){return Lc(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function yk(e){var t,n;return Re(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Dd(e){return new ioe(e)}var ioe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||v1&&r>0?s:o}};return i;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},soe=function(){function e(t,n){if(!ut(n)){var r="";ft(r)}this._opFn=wG[t],this._rvalFloat=Ji(n)}return e.prototype.evaluate=function(t){return ut(t)?this._opFn(t,this._rvalFloat):this._opFn(Ji(t),this._rvalFloat)},e}(),CG=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=ut(t)?t:Ji(t),a=ut(n)?n:Ji(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=we(t),l=we(n);s&&(r=l?t:0),l&&(a=s?n:0)}return ra?-this._resultLT:0},e}(),loe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Ji(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Ji(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function uoe(e,t){return e==="eq"||e==="ne"?new loe(e==="eq",t):Te(wG,e)?new soe(e,t):null}var coe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return ts(t,n)},e}();function foe(e,t){var n=new coe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==pi&&ft(o);var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";Te(l,m)&&ft(_),l[m]=y}});else for(var c=0;c65535?_oe:boe}function Nu(){return[1/0,-1/0]}function Soe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sk(e,t,n,r,a){var i=IG[n||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;up[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=fe(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var a=this._chunks,i=a[t],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=h,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){t=new r(a);for(var i=0;i=f&&y<=d||isNaN(y))&&(l[u++]=g),g++}h=!0}else if(i===2){for(var p=v[a[0]],_=v[a[1]],b=t[a[1]][0],x=t[a[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(S>=b&&S<=x||isNaN(S))&&(l[u++]=g),g++}h=!0}}if(!h)if(i===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[A][1])&&(C=!1)}C&&(l[u++]=n.getRawIndex(m))}return um[1]&&(m[1]=p)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),a=r._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,v=new(kf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var h=1;hc&&(c=f,d=b)}P>0&&Pc-h&&(l=c-h,s.length=l);for(var g=0;gf[1]&&(f[1]=m),d[v++]=y}return i._count=v,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,a,i){return ts(n[i],this._dimensions[i])}B_={arrayRows:t,objectRows:function(n,r,a,i){return ts(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return ts(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}(),PG=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(og(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Gr(s)?es:Ta,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},v=Ue(f.seriesLayoutBy,d.seriesLayoutBy)||null,h=Ue(f.sourceHeader,d.sourceHeader),g=Ue(f.dimensions,d.dimensions),p=v!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||g;a=p?[mx(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:g},l)]:[]}else{var m=t;if(r){var y=this._applyTransform(n);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[mx(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&wk(i)}var o,s=[],l=[];return k(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&wk(f),s.push(c),l.push(u._getVersionSign())}),r?o=moe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[Jie(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return k(e.blocks,function(a){var i=LG(a);i>=t&&(t=i+ +(r&&(!i||bx(a)&&!a.noHeader)))}),t}return 0}function Coe(e,t,n,r){var a=t.noHeader,i=Aoe(LG(t)),o=[],s=t.blocks||[];dr(!s||ue(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Te(u,l)){var c=new CG(u[l],null);s.sort(function(h,g){return c.evaluate(h.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(h,g){var p=t.valueFormatter,m=kG(h)(p?oe(oe({},e),{valueFormatter:p}):e,h,g>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):Sx(o.join(""),a?n:i.html);if(a)return f;var d=gx(t.header,"ordinal",e.useUTC),v=MG(r,e.renderMode).nameStyle;return e.renderMode==="richText"?EG(e,d,v)+i.richText+f:Sx('
'+br(d)+"
"+f,n)}function Toe(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=ue(b)?b:[b],fe(b,function(x,S){return gx(x,ue(v)?v[S]:v,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":gx(l,"ordinal",u),v=t.valueType,h=o?[]:c(t.value),g=!s||!i,p=!s&&i,m=MG(r,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":EG(e,d,y))+(o?"":Doe(e,h,g,p,_)):Sx((s?"":f)+(i?"":Ioe(d,!s,y))+(o?"":Poe(h,g,p,_)),n)}}function Ck(e,t,n,r,a,i){if(e){var o=kG(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function Aoe(e){return{html:xoe[e],richText:woe[e]}}function Sx(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function Ioe(e,t,n){var r=t?"margin-left:2px":"";return''+br(e)+""}function Poe(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=ue(e)?e:[e],''+fe(e,function(o){return br(o)}).join("  ")+""}function EG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Doe(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ue(t)?t.join(" "):t,i)}function RG(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return au(r)}function VG(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var F_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=E5()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,i=mie({color:n,type:t,renderMode:r,markerId:a});return we(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ue(n)?k(n,function(i){return oe(r,i)}):oe(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function OG(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=ue(s),u=RG(t,n),c,f,d,v;if(o>1||l&&!o){var h=Moe(s,t,n,i,u);c=h.inlineValues,f=h.inlineValueTypes,d=h.blocks,v=h.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);v=c=Lc(a,n,i[0]),f=g.type}else v=c=l?s[0]:s;var p=nT(t),m=p&&t.name||"",y=a.getName(n),_=r?m:y;return wn("section",{header:m,noHeader:r||!p,sortParam:v,blocks:[wn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Va(_),value:c,valueType:f})].concat(d||[])})}function Moe(e,t,n,r,a){var i=t.getData(),o=Si(e,function(f,d,v){var h=i.getDimensionInfo(v);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];r.length?k(r,function(f){c(Lc(i,n,f),f)}):k(e,c);function c(f,d){var v=i.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(o?u.push(wn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Co=it();function sg(e,t){return e.getName(t)||e.getId(t)}var cp="__universalTransitionEnabled",s0=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Dd({count:Loe,reset:Eoe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Co(this).sourceManager=new PG(this);i.prepareSource();var o=this.getInitialData(n,a);Ak(o,this),this.dataTask.context.data=o,Co(this).dataBeforeProcessed=o,Tk(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=yv(this),i=a?lf(n):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),Ye(n,r.getTheme().get(this.subType)),Ye(n,this.getDefaultOption()),eu(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&ds(n,i,a)},t.prototype.mergeOption=function(n,r){n=Ye(this.option,n,!0),this.fillDataTextStyle(n.data);var a=yv(this);a&&ds(this.option,n,a);var i=Co(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);Ak(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Co(this).dataBeforeProcessed=o,Tk(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!Gr(n))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=TT.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[sg(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cp])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Re(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ot.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(ot);fn(s0,DT);fn(s0,TT);G5(s0,ot);function Tk(e){var t=e.name;nT(e)||(e.name=koe(e)||t)}function koe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return k(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function Loe(e){return e.model.getRawData().count()}function Eoe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Roe}function Roe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ak(e,t){k(Hp(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,He(Voe,t))})}function Voe(e,t){var n=xx(e);return n&&n.setOutputEnd((t||this).count()),t}function xx(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}const $t=s0;var kT=function(){function e(){this.group=new Be,this.uid=of("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){},e.prototype.updateLayout=function(t,n,r,a){},e.prototype.updateVisual=function(t,n,r,a){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();aT(kT);Gy(kT);const Zt=kT;function ff(){var e=it();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var NG=it(),Ooe=ff(),LT=function(){function e(){this.group=new Be,this.uid=of("viewChart"),this.renderTask=Dd({plan:Noe,reset:Boe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.highlight=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&Pk(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&Pk(i,a,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateLayout=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateVisual=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.eachRendered=function(t){As(this.group,t)},e.markUpdateMethod=function(t,n){NG(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ik(e,t,n){e&&hv(e)&&(t==="emphasis"?Qi:eo)(e,n)}function Pk(e,t,n){var r=tu(e,t),a=t&&t.highlightKey!=null?cae(t.highlightKey):null;r!=null?k(bt(r),function(i){Ik(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){Ik(i,n,a)})}aT(LT);Gy(LT);function Noe(e){return Ooe(e.model)}function Boe(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&NG(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),zoe[l]}var zoe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Et=LT;var om="\0__throttleOriginMethod",Dk="\0__throttleRate",Mk="\0__throttleType";function ET(e,t,n){var r,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var v=[],h=0;h=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(v){c=v},d}function df(e,t,n,r){var a=e[t];if(a){var i=a[om]||a,o=a[Mk],s=a[Dk];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=ET(i,n,r==="debounce"),a[om]=i,a[Mk]=r,a[Dk]=n}return a}}function bv(e,t){var n=e[t];n&&n[om]&&(n.clear&&n.clear(),e[t]=n[om])}var kk=it(),Lk={itemStyle:nu($$,!0),lineStyle:nu(F$,!0)},Foe={lineStyle:"stroke",itemStyle:"fill"};function BG(e,t){var n=e.visualStyleMapper||Lk[t];return n||(console.warn("Unknown style type '"+t+"'."),Lk.itemStyle)}function zG(e,t){var n=e.visualDrawType||Foe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var $oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=BG(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=zG(e,r),u=o[l],c=Le(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Le(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Le(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(v,h){var g=e.getDataParams(h),p=oe({},o);p[l]=c(g),v.setItemVisual(h,"style",p)}}}},Lf=new Lt,Goe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=BG(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){Lf.option=l[r];var u=a(Lf),c=o.ensureUniqueItemVisual(s,"style");oe(c,u),Lf.option.decal&&(o.setItemVisual(s,"decal",Lf.option.decal),Lf.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Hoe={performRawSeries:!0,overallReset:function(e){var t=Pe();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=t.get(a);i||(i={},t.set(a,i)),kk(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=kk(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=zG(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),v=r.getName(u)||u+"",h=r.count();d[l]=n.getColorFromPalette(v,o,h)}})}})}},lg=Math.PI;function Woe(e,t){t=t||{},Ee(t,{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 n=new Be,r=new at({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new lt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new at({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(i);var o;return t.showSpinner&&(o=new vT({shape:{startAngle:-lg/2,endAngle:-lg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:lg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:lg*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Uoe=function(){function e(t,n,r,a){this._stageTaskMap=Pe(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Pe();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;k(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";dr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;k(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,h=d.agentStubMap;h.each(function(p){s(a,p)&&(p.dirty(),v=!0)}),v&&d.dirty(),o.updatePayload(d,r);var g=o.getPerformArgs(d,a.block);h.each(function(p){p.perform(g)}),d.perform(g)&&(i=!0)}else f&&f.each(function(p,m){s(a,p)&&p.dirty();var y=o.getPerformArgs(p,a.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(p.context.model),o.updatePayload(p,r),p.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=Pe(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,v=s.set(d,o&&o.get(d)||Dd({plan:Koe,reset:qoe,count:Qoe}));v.context={model:f,ecModel:r,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,n,r,a){var i=this,o=n.overallTask=n.overallTask||Dd({reset:Yoe});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Pe(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,v="";dr(!t.createOnAllSeries,v),u?r.eachRawSeriesByType(u,h):c?c(r,a).each(h):(f=!1,k(r.getSeries(),h));function h(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(d=!0,Dd({reset:Xoe,onDirty:joe})));m.context={model:g,overallProgress:f},m.agent=o,m.__block=f,i._pipe(g,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return Le(t)&&(t={overallReset:t,seriesType:ese(t)}),t.uid=of("stageHandler"),n&&(t.visualType=n),t},e}();function Yoe(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xoe(e){return e.overallProgress&&Zoe}function Zoe(){this.agent.dirty(),this.getDownstream().dirty()}function joe(){this.agent&&this.agent.dirty()}function Koe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function qoe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=bt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?fe(t,function(n,r){return FG(r)}):Joe}var Joe=FG(0);function FG(e){return function(t,n){var r=n.data,a=n.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-d.length){var h=u.slice(0,v);h!=="data"&&(n.mainType=h,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,v,h){return f[v]==null||d[h||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Cx=["symbol","symbolSize","symbolRotate","symbolOffset"],Ok=Cx.concat(["symbolKeepAspect"]),ase={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&Tl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Tx(e,t,n){for(var r=t.type==="radial"?bse(e,t,n):_se(e,t,n),a=t.colorStops,i=0;i0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ut(e)?[e]:ue(e)?e:null}function VT(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&xse(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=fe(n,function(i){return i/a}),r/=a)}return[n,r]}var wse=new Ti(!0);function um(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Nk(e){return typeof e=="string"&&e!=="none"}function cm(e){var t=e.fill;return t!=null&&t!=="none"}function Bk(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function zk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Ax(e,t,n){var r=iT(t.image,t.__image,n);if(Hy(r)){var a=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Kg),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function Cse(e,t,n,r){var a,i=um(n),o=cm(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||wse,f=t.__dirty;if(!r){var d=n.fill,v=n.stroke,h=o&&!!d.colorStops,g=i&&!!v.colorStops,p=o&&!!d.image,m=i&&!!v.image,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0;(h||g)&&(S=t.getBoundingRect()),h&&(y=f?Tx(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=f?Tx(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(b=f||!t.__canvasFillPattern?Ax(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=f||!t.__canvasStrokePattern?Ax(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),h?e.fillStyle=y:p&&(b?e.fillStyle=b:o=!1),g?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&n.lineDash&&(a=VT(t),C=a[0],T=a[1]);var A=!0;(u||f&qu)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),r||(n.strokeFirst?(i&&zk(e,n),o&&Bk(e,n)):(o&&Bk(e,n),i&&zk(e,n))),C&&e.setLineDash([])}function Tse(e,t,n){var r=t.__image=iT(n.image,t.__image,t,t.onload);if(!(!r||!Hy(r))){var a=n.x||0,i=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;e.drawImage(r,u,c,f,d,a,i,o,s)}else e.drawImage(r,a,i,o,s)}}function Ase(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||ls,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=VT(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(um(n)&&e.strokeText(a,n.x,n.y),cm(n)&&e.fillText(a,n.x,n.y)):(cm(n)&&e.fillText(a,n.x,n.y),um(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var Fk=["shadowBlur","shadowOffsetX","shadowOffsetY"],$k=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function XG(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Cr(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Nl.opacity:o}(r||t.blend!==n.blend)&&(i||(Cr(e,a),i=!0),e.globalCompositeOperation=t.blend||Nl.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,a){if(!this[Yn]){if(this._disposed){this.id;return}var i,o,s;if(Re(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Yn]=!0,!this._model||r){var l=new Gie(this._api),u=this._theme,c=this._model=new dG;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},Px);var f={seriesTransition:s,optionChanged:!0};if(a)this[yr]={silent:i,updateParams:f},this[Yn]=!1,this.getZr().wakeUp();else{try{zu(this),To.update.call(this,null,f)}catch(d){throw this[yr]=null,this[Yn]=!1,d}this._ssr||this._zr.flush(),this[yr]=null,this[Yn]=!1,Ef.call(this,i),Rf.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||st.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(st.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return k(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;k(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return k(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(nL[a]){var l=s,u=s,c=-s,f=-s,d=[],v=n&&n.pixelRatio||this.getDevicePixelRatio();k(kd,function(_,b){if(_.group===a){var x=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ve(n)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=v,u*=v,c*=v,f*=v;var h=c-l,g=f-u,p=us.createCanvas(),m=iM(p,{renderer:r?"svg":"canvas"});if(m.resize({width:h,height:g}),r){var y="";return k(d,function(_){var b=_.left-l,x=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new at({shape:{x:0,y:0,width:h,height:g},style:{fill:n.connectedBackgroundColor}})),k(d,function(_){var b=new Wn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return U_(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return U_(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=Cd(a,n);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=Cd(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?RT(s,l,r):uh(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;k(Jse,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Cl(s,function(h){var g=$e(h);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=oe({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),v=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:v},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),k(Md,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),k(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),ose(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&z5(this.getDom(),BT,"");var r=this,a=r._api,i=r._model;k(r._componentsViews,function(o){o.dispose(i,a)}),k(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete kd[r.id]},t.prototype.resize=function(n){if(!this[Yn]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[yr]&&(i==null&&(i=this[yr].silent),a=!0,this[yr]=null),this[Yn]=!0;try{a&&zu(this),To.update.call(this,{type:"resize",animation:oe({duration:0},n&&n.animation)})}catch(o){throw this[Yn]=!1,o}this[Yn]=!1,Ef.call(this,i),Rf.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Re(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Dx[n]){var a=Dx[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=oe({},n);return r.type=Md[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Re(r)||(r={silent:!!r}),!!fm[n.type]&&this._model){if(this[Yn]){this._pendingActions.push(n);return}var a=r.silent;X_.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&st.browser.weChat&&this._throttledZrFlush(),Ef.call(this,a),Rf.call(this,a)}},t.prototype.updateLabelLayout=function(){ka.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){zu=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),W_(f,!0),W_(f,!1),d.plan()},W_=function(f,d){for(var v=f._model,h=f._scheduler,g=d?f._componentsViews:f._chartsViews,p=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_d.get("hoverLayerThreshold")&&!st.node&&!st.worker&&d.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=f._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var v=f.get("blendMode")||null;d.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function s(f,d){if(!f.preventAutoZ){var v=f.get("z")||0,h=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,v,h,-1/0),!0})}}function l(f,d,v,h){var g=f.getTextContent(),p=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(hc(m))return;if(m instanceof Qe&&fae(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(h){m.stateTransition=p;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&a(m)}})}eL=function(f){return new(function(d){ne(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var g=h.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);h=h.parent}},v.prototype.enterEmphasis=function(h,g){Qi(h,g),Zr(f)},v.prototype.leaveEmphasis=function(h,g){eo(h,g),Zr(f)},v.prototype.enterBlur=function(h){s$(h),Zr(f)},v.prototype.leaveBlur=function(h){uT(h),Zr(f)},v.prototype.enterSelect=function(h){l$(h),Zr(f)},v.prototype.leaveSelect=function(h){u$(h),Zr(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},v}(vG))(f)},l3=function(f){function d(v,h){for(var g=0;g=0)){rL.push(n);var i=HG.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function h3(e,t){Dx[e]=t}function ile(e,t,n){var r=Nse("registerMap");r&&r(e,t,n)}var ole=poe;bu(OT,$oe);bu(l0,Goe);bu(l0,Hoe);bu(OT,ase);bu(l0,ise);bu(n3,Rse);d3(gG);v3(Fse,Kie);h3("default",Woe);Mi({type:Bl,event:Bl,update:Bl},rn);Mi({type:ip,event:ip,update:ip},rn);Mi({type:Td,event:Td,update:Td},rn);Mi({type:op,event:op,update:op},rn);Mi({type:Ad,event:Ad,update:Ad},rn);f3("light",tse);f3("dark",nse);var aL=[],sle={registerPreprocessor:d3,registerProcessor:v3,registerPostInit:tle,registerPostUpdate:nle,registerUpdateLifecycle:zT,registerAction:Mi,registerCoordinateSystem:rle,registerLayout:ale,registerVisual:bu,registerTransform:ole,registerLoading:h3,registerMap:ile,registerImpl:Ose,PRIORITY:jse,ComponentModel:ot,ComponentView:Zt,SeriesModel:$t,ChartView:Et,registerComponentModel:function(e){ot.registerClass(e)},registerComponentView:function(e){Zt.registerClass(e)},registerSeriesModel:function(e){$t.registerClass(e)},registerChartView:function(e){Et.registerClass(e)},registerSubTypeDefaulter:function(e,t){ot.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){kne(e,t)}};function Ke(e){if(ue(e)){k(e,function(t){Ke(t)});return}je(aL,e)>=0||(aL.push(e),Le(e)&&(e={install:e}),e.install(sle))}function Vf(e){return e==null?0:e.length||1}function iL(e){return e}var lle=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||iL,this._newKeyGetter=a||iL,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},a=new Array(t.length),i=new Array(n.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(t,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Of=Re,Ao=fe,gle=typeof Int32Array>"u"?Array:Int32Array,ple="e\0\0",oL=-1,mle=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],yle=["_approximateExtent"],sL,vg,Nf,Bf,K_,hg,q_,_le=function(){function e(t,n){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 r,a=!1;p3(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ta;if(l&&!a.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var i=a[n];return i==null&&(i=this.getVisual(n),ue(i)?i=i.slice():Of(i)&&(i=oe({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Of(n)?oe(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Of(t)?oe(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?oe(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;ox(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){k(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ao(this.dimensions,this._getDimInfo,this),this.hostModel)),K_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Le(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(YC(arguments)))})},e.internalField=function(){sL=function(t){var n=t._invertedIndicesMap;k(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new gle(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[n]=l}}}(),e}();const fr=_le;function ch(e,t){AT(e)||(e=IT(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=Pe(),i=[],o=Sle(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_3(o),l=r===e.dimensionsDefine,u=l?y3(e):m3(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Pe(c),d=new AG(o),v=0;v0&&(r.name=a+(i-1)),i++,t.set(a,i)}}function Sle(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return k(t,function(i){var o;Re(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function xle(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var wle=function(){function e(t){this.coordSysDims=[],this.axisMap=Pe(),this.categoryAxisMap=Pe(),this.coordSysName=t}return e}();function Cle(e){var t=e.get("coordinateSystem"),n=new wle(t),r=Tle[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Tle={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",on).models[0],i=e.getReferringComponents("yAxis",on).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),Fu(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),Fu(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",on).models[0];t.coordSysDims=["single"],n.set("single",a),Fu(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",on).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),Fu(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),Fu(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();k(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),Fu(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Fu(e){return e.get("type")==="category"}function Ale(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;Ile(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(k(i,function(y,_){we(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,h=c.type,g=0;k(i,function(y){y.coordDim===v&&g++});var p={name:f,coordDim:v,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(d,h),m.storeDimIndex=s.ensureCalculationDimension(f,h)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(i.push(p),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function Ile(e){return!p3(e.schema)}function vs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function b3(e,t){return vs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Ple(e,t){var n=e.get("coordinateSystem"),r=lh.get(n),a;return t&&t.coordSysDims&&(a=fe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=vm(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function Dle(e,t,n){var r,a;return n&&k(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function vo(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=IT(e)):(a=r.getSource(),i=a.sourceFormat===Ta);var o=Cle(t),s=Ple(t,o),l=n.useEncodeDefaulter,u=Le(l)?l:l?He(sG,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=ch(a,c),d=Dle(f.dimensions,n.createInvertedIndices,o),v=i?null:r.getSharedDataStore(f),h=Ale(t,{schema:f,store:v}),g=new fr(f,t);g.setCalculationInfo(h);var p=d!=null&&Mle(a)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,p),g}function Mle(e){if(e.sourceFormat===Ta){var t=kle(e.data||[]);return!ue(ef(t))}}function kle(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Gy(S3);const ho=S3;var Lle=0,Ele=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Lle}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&fe(r,Rle);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!we(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Pe(this.categories))},e}();function Rle(e){return Re(e)&&e.value!=null?e.value:e+""}const Mx=Ele;function kx(e){return e.type==="interval"||e.type==="log"}function Vle(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=k5(i/t,!0);n!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=x3(o),l=a.niceTickExtent=[Kt(Math.ceil(e[0]/o)*o,s),Kt(Math.floor(e[1]/o)*o,s)];return Ole(l,e),a}function J_(e){var t=Math.pow(10,tT(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Kt(n*t)}function x3(e){return fi(e)+2}function lL(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Ole(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),lL(e,0,t),lL(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function u0(e,t){return e>=t[0]&&e<=t[1]}function c0(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function f0(e,t){return e*(t[1]-t[0])+t[0]}var w3=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new Mx({})),ue(a)&&(a=new Mx({categories:fe(a,function(i){return Re(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:we(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),u0(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),c0(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(f0(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ho);ho.registerClass(w3);const $T=w3;var Js=Kt,C3=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return u0(n,this._extent)},t.prototype.normalize=function(n){return c0(n,this._extent)},t.prototype.scale=function(n){return f0(n,this._extent)},t.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=x3(n)},t.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:Js(c+r,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function I3(e){var t=zle(e),n=[];return k(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var v=r.getData();s=Math.abs(o[1]-o[0])/v.count()}var h=be(r.get("barWidth"),s),g=be(r.get("barMaxWidth"),s),p=be(r.get("barMinWidth")||(L3(r)?.5:1),s),m=r.get("barGap"),y=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:h,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:HT(i),stackId:GT(r)})}),P3(n)}function P3(e){var t={};k(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var v=r.barGap;v!=null&&(s.gap=v);var h=r.barCategoryGap;h!=null&&(s.categoryGap=h)});var n={};return k(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=tt(i).length;s=Math.max(35-l*4,15)+"%"}var u=be(s,o),c=be(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,v=(f-u)/(d+(d-1)*c);v=Math.max(v,0),k(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,d--}else{var b=v;y&&yb&&(b=_),b!==v&&(m.width=b,f-=b+c*b,d--)}}),v=(f-u)/(d+(d-1)*c),v=Math.max(v,0);var h=0,g;k(i,function(m,y){m.width||(m.width=v),g=m,h+=m.width*(1+c)}),g&&(h-=g.width*c);var p=-h/2;k(i,function(m,y){n[a][y]=n[a][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+c)})}),n}function Fle(e,t,n){if(e&&t){var r=e[HT(t)];return r!=null&&n!=null?r[GT(n)]:r}}function D3(e,t){var n=A3(e,t),r=I3(n);k(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=GT(a),u=r[HT(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function M3(e){return{seriesType:e,plan:ff(),reset:function(t){if(k3(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=vs(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),v=$le(a,i),h=L3(t),g=t.get("barMinHeight")||0,p=c&&n.getDimensionIndex(c),m=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(_,b){for(var x=_.count,S=h&&vi(x*3),w=h&&l&&vi(x*3),C=h&&vi(x),T=r.master.getRect(),A=d?T.width:T.height,P,D=b.getStore(),M=0;(P=_.next())!=null;){var L=D.get(f?p:o,P),R=D.get(s,P),O=v,W=void 0;f&&(W=+L-D.get(o,P));var V=void 0,G=void 0,X=void 0,Z=void 0;if(d){var J=r.dataToPoint([L,R]);if(f){var ee=r.dataToPoint([W,R]);O=ee[0]}V=O,G=J[1]+y,X=J[0]-O,Z=m,Math.abs(X)>>1;e[a][1]a&&(this._approxInterval=a);var s=gg.length,l=Math.min(Gle(gg,this._approxInterval,0,s),s-1);this._interval=gg[l][1],this._minLevelUnit=gg[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return ut(n)?n:+Ci(n)},t.prototype.contain=function(n){return u0(this.parse(n),this._extent)},t.prototype.normalize=function(n){return c0(this.parse(n),this._extent)},t.prototype.scale=function(n){return f0(n,this._extent)},t.type="time",t}(hs),gg=[["second",_T],["minute",bT],["hour",Pd],["quarter-day",Pd*6],["half-day",Pd*12],["day",la*1.2],["half-week",la*3.5],["week",la*7],["month",la*31],["quarter",la*95],["half-year",qM/2],["year",qM]];function Hle(e,t,n,r){var a=Ci(t),i=Ci(n),o=function(h){return QM(a,h,r)===QM(i,h,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},v=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return v()}}function Wle(e,t){return e/=la,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ule(e){var t=30*la;return e/=t,e>6?6:e>3?3:e>2?2:1}function Yle(e){return e/=Pd,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function uL(e,t){return e/=t?bT:_T,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Xle(e){return k5(e,!0)}function Zle(e,t,n){var r=new Date(e);switch(gc(t)){case"year":case"month":r[Y$(n)](0);case"day":r[X$(n)](1);case"hour":r[Z$(n)](0);case"minute":r[j$(n)](0);case"second":r[K$(n)](0),r[q$(n)](0)}return r.getTime()}function jle(e,t,n,r){var a=1e4,i=W$,o=0;function s(A,P,D,M,L,R,O){for(var W=new Date(P),V=P,G=W[M]();V1&&R===0&&D.unshift({value:D[0].value-V})}}for(var R=0;R=r[0]&&y<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(p),f>_||e===i[v]))break}c=[]}}}for(var b=yt(fe(u,function(A){return yt(A,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(A){return A.length>0}),x=[],S=b.length-1,v=0;v0;)i*=10;var s=[Kt(Jle(r[0]/i)*i),Kt(qle(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Ld.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=Pa(n)/Pa(this.base),u0(n,this._extent)},t.prototype.normalize=function(n){return n=Pa(n)/Pa(this.base),c0(n,this._extent)},t.prototype.scale=function(n){return n=f0(n,this._extent),pg(this.base,n)},t.type="log",t}(ho),V3=WT.prototype;V3.getMinorTicks=Ld.getMinorTicks;V3.getLabel=Ld.getLabel;function mg(e,t){return Kle(e,fi(t))}ho.registerClass(WT);const Qle=WT;var eue=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,v=this._determinedMax;return d!=null&&(s=d,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[nue[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=tue[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),tue={min:"_determinedMin",max:"_determinedMax"},nue={min:"_dataMin",max:"_dataMax"};function O3(e,t,n){var r=e.rawExtentInfo;return r||(r=new eue(e,t,n),e.rawExtentInfo=r,r)}function yg(e,t){return t==null?null:sv(t)?NaN:e.parse(t)}function N3(e,t){var n=e.type,r=O3(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,i=r.max,o=t.ecModel;if(o&&n==="time"){var s=A3("bar",o),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=I3(s),c=rue(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function rue(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=Fle(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;k(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;k(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Rc(e,t){var n=t,r=N3(e,n),a=r.extent,i=n.get("splitNumber");e instanceof Qle&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function d0(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new $T({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new R3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(ho.getClass(t)||hs)}}function aue(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function fh(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}(t):we(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):Le(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(UT(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function UT(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function iue(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof $T?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=fh(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;ce[1]&&(e[1]=a[1])})}var dh=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),lue=1e-8;function fL(e,t){return Math.abs(e-t)a&&(r=o,a=l)}if(r)return cue(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return k(o,function(s){s.type==="polygon"?dL(s.exterior,a,i,n):k(s.points,function(l){dL(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Xe(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function vue(e,t){return e=due(e),fe(yt(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new vL(o[0],o.slice(1)));break;case"MultiPolygon":k(a.coordinates,function(l){l[0]&&i.push(new vL(l[0],l.slice(1)))});break;case"LineString":i.push(new hL([a.coordinates]));break;case"MultiLineString":i.push(new hL(a.coordinates))}var s=new F3(r[t||"name"],i,r.cp);return s.properties=r,s})}var wv=it();function hue(e){return e.type==="category"?pue(e):yue(e)}function gue(e,t){return e.type==="category"?mue(e,t):{ticks:fe(e.scale.getTicks(),function(n){return n.value})}}function pue(e){var t=e.getLabelModel(),n=G3(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function G3(e,t){var n=H3(e,"labels"),r=YT(t),a=W3(n,r);if(a)return a;var i,o;return Le(r)?i=X3(e,r):(o=r==="auto"?_ue(e):r,i=Y3(e,o)),U3(n,r,{labels:i,labelCategoryInterval:o})}function mue(e,t){var n=H3(e,"ticks"),r=YT(t),a=W3(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Le(r))i=X3(e,r,!0);else if(r==="auto"){var s=G3(e,e.getLabelModel());o=s.labelCategoryInterval,i=fe(s.labels,function(l){return l.tickValue})}else o=r,i=Y3(e,o,!0);return U3(n,r,{ticks:i,tickCategoryInterval:o})}function yue(e){var t=e.scale.getTicks(),n=fh(e);return{labels:fe(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function H3(e,t){return wv(e)[t]||(wv(e)[t]=[])}function W3(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,v=0;l<=i[1];l+=s){var h=0,g=0,p=th(n({value:l}),t.font,"center","top");h=p.width*1.3,g=p.height*1.3,d=Math.max(d,h,7),v=Math.max(v,g,7)}var m=d/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=wv(e.model),x=e.getExtent(),S=b.lastAutoInterval,w=b.lastTickCount;return S!=null&&w!=null&&Math.abs(S-_)<=1&&Math.abs(w-o)<=1&&S>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=S:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function Sue(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Y3(e,t,n){var r=fh(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=B3(e),d=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;d&&u!==i[0]&&g(i[0]);for(var h=u;h<=i[1];h+=l)g(h);v&&h-l!==i[1]&&g(i[1]);function g(p){var m={value:p};s.push(n?p:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:p})}return s}function X3(e,t,n){var r=e.scale,a=fh(e),i=[];return k(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var gL=[0,1],xue=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return t>=r&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return D5(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(r=r.slice(),pL(r,a.count())),gt(t,gL,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),pL(r,a.count()));var i=gt(t,r,gL,n);return this.scale.scale(i)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=gue(this,n),a=r.ticks,i=fe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return wue(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=fe(r,function(i){return fe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return hue(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return bue(this)},e}();function pL(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function wue(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;k(t,function(v){v.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(v,h){return v=Kt(v),h=Kt(h),f?v>h:va&&(a+=zf);var v=Math.atan2(s,o);if(v<0&&(v+=zf),v>=r&&v<=a||v+zf>=r&&v+zf<=a)return l[0]=c,l[1]=f,u-n;var h=n*Math.cos(r)+e,g=n*Math.sin(r)+t,p=n*Math.cos(a)+e,m=n*Math.sin(a)+t,y=(h-o)*(h-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(m-s)*(m-s);return y<_?(l[0]=h,l[1]=g,Math.sqrt(y)):(l[0]=p,l[1]=m,Math.sqrt(_))}function gm(e,t,n,r,a,i,o,s){var l=a-e,u=i-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=l*c+u*f,h=v/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var g=o[0]=e+h*c,p=o[1]=t+h*f;return Math.sqrt((g-a)*(g-a)+(p-i)*(p-i))}function Z3(e,t,n,r,a,i,o){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var La=[];function Iue(e,t,n){var r=Z3(t.x,t.y,t.width,t.height,e.x,e.y,La);return n.set(La[0],La[1]),r}function Pue(e,t,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,v=0;v0){t=t/180*Math.PI,Na.fromArray(e[0]),It.fromArray(e[1]),Jt.fromArray(e[2]),We.sub(hi,Na,It),We.sub(li,Jt,It);var n=hi.len(),r=li.len();if(!(n<.001||r<.001)){hi.scale(1/n),li.scale(1/r);var a=hi.dot(li),i=Math.cos(t);if(i1&&We.copy(cr,Jt),cr.toArray(e[1])}}}}function Due(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Na.fromArray(e[0]),It.fromArray(e[1]),Jt.fromArray(e[2]),We.sub(hi,It,Na),We.sub(li,Jt,It);var r=hi.len(),a=li.len();if(!(r<.001||a<.001)){hi.scale(1/r),li.scale(1/a);var i=hi.dot(t),o=Math.cos(n);if(i=l)We.copy(cr,Jt);else{cr.scaleAndAdd(li,s/Math.tan(Math.PI/2-c));var f=Jt.x!==It.x?(cr.x-It.x)/(Jt.x-It.x):(cr.y-It.y)/(Jt.y-It.y);if(isNaN(f))return;f<0?We.copy(cr,It):f>1&&We.copy(cr,Jt)}cr.toArray(e[1])}}}}function yL(e,t,n,r){var a=n==="normal",i=a?e:e.ensureState(n);i.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function Mue(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=$o(r[0],r[1]),i=$o(r[1],r[2]);if(!a||!i){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=Jg([],r[1],r[0],o/a),l=Jg([],r[1],r[2],o/i),u=Jg([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&x(-c/o,0,o);var g=e[0],p=e[o-1],m,y;_(),m<0&&S(-m,.8),y<0&&S(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&w(-m),y<0&&w(y);function _(){m=g.rect[t]-r,y=a-p.rect[t]-p.rect[n]}function b(C,T,A){if(C<0){var P=Math.min(T,-C);if(P>0){x(P*A,0,o);var D=P+C;D<0&&S(-D*A,1)}else S(-C*A,1)}}function x(C,T,A){C!==0&&(u=!0);for(var P=T;P0)for(var D=0;D0;D--){var O=A[D-1]*R;x(-O,D,o)}}}function w(C){var T=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),P=0;P0?x(A,0,P+1):x(-A,o-P-1,o),C-=A,C<=0)return}return u}function kue(e,t,n,r){return q3(e,"x","width",t,n,r)}function J3(e,t,n,r){return q3(e,"y","height",t,n,r)}function Q3(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var n=new Xe(0,0,0,0);function r(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),je(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ct(r,u,n,l)}else if(r.attr(u),!af(r).valueAnimation){var f=Ue(r.style.opacity,1);r.style.opacity=0,Nt(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var v=i.oldLayoutSelect={};_g(v,u,bg),_g(v,r.states.select,bg)}if(r.states.emphasis){var h=i.oldLayoutEmphasis={};_g(h,u,bg),_g(h,r.states.emphasis,bg)}z$(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=Rue(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ct(a,{shape:g},n)):(a.setShape(g),a.style.strokePercent=0,Nt(a,{style:{strokePercent:1}},n)),i.oldLayout=g}},e}();const Oue=Vue;var nb=it();function Nue(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=nb(n).labelManager;a||(a=nb(n).labelManager=new Oue),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=nb(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var rb=Math.sin,ab=Math.cos,eH=Math.PI,el=Math.PI*2,Bue=180/eH,zue=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){this._add("C",t,n,r,a,i,o)},e.prototype.quadraticCurveTo=function(t,n,r,a){this._add("Q",t,n,r,a)},e.prototype.arc=function(t,n,r,a,i,o){this.ellipse(t,n,r,r,0,a,i,o)},e.prototype.ellipse=function(t,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=Yo(f-el)||(c?u>=el:-u>=el),v=u>0?u%el:u%el+el,h=!1;d?h=!0:Yo(f)?h=!1:h=v>=eH==!!c;var g=t+r*ab(o),p=n+a*rb(o);this._start&&this._add("M",g,p);var m=Math.round(i*Bue);if(d){var y=1/this._p,_=(c?1:-1)*(el-y);this._add("A",r,a,m,1,+c,t+r*ab(o+_),n+a*rb(o+_)),y>.01&&this._add("A",r,a,m,0,+c,g,p)}else{var b=t+r*ab(s),x=n+a*rb(s);this._add("A",r,a,m,+h,+c,b,x)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function Zue(e){return""}function jT(e,t){t=t||{};var n=t.newline?` +`];function wn(e,t){return t.type=e,t}function _x(e){return e.type==="section"}function kG(e){return _x(e)?Coe:Toe}function LG(e){if(_x(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return k(e.blocks,function(a){var i=LG(a);i>=t&&(t=i+ +(r&&(!i||_x(a)&&!a.noHeader)))}),t}return 0}function Coe(e,t,n,r){var a=t.noHeader,i=Aoe(LG(t)),o=[],s=t.blocks||[];dr(!s||ue(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Te(u,l)){var c=new CG(u[l],null);s.sort(function(h,g){return c.evaluate(h.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(h,g){var p=t.valueFormatter,m=kG(h)(p?oe(oe({},e),{valueFormatter:p}):e,h,g>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):bx(o.join(""),a?n:i.html);if(a)return f;var d=hx(t.header,"ordinal",e.useUTC),v=MG(r,e.renderMode).nameStyle;return e.renderMode==="richText"?EG(e,d,v)+i.richText+f:bx('
'+br(d)+"
"+f,n)}function Toe(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=ue(b)?b:[b],fe(b,function(x,S){return hx(x,ue(v)?v[S]:v,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":hx(l,"ordinal",u),v=t.valueType,h=o?[]:c(t.value),g=!s||!i,p=!s&&i,m=MG(r,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":EG(e,d,y))+(o?"":Doe(e,h,g,p,_)):bx((s?"":f)+(i?"":Ioe(d,!s,y))+(o?"":Poe(h,g,p,_)),n)}}function Ck(e,t,n,r,a,i){if(e){var o=kG(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function Aoe(e){return{html:xoe[e],richText:woe[e]}}function bx(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function Ioe(e,t,n){var r=t?"margin-left:2px":"";return''+br(e)+""}function Poe(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=ue(e)?e:[e],''+fe(e,function(o){return br(o)}).join("  ")+""}function EG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Doe(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ue(t)?t.join(" "):t,i)}function RG(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return au(r)}function VG(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var z_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=E5()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,i=mie({color:n,type:t,renderMode:r,markerId:a});return we(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ue(n)?k(n,function(i){return oe(r,i)}):oe(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function OG(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=ue(s),u=RG(t,n),c,f,d,v;if(o>1||l&&!o){var h=Moe(s,t,n,i,u);c=h.inlineValues,f=h.inlineValueTypes,d=h.blocks,v=h.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);v=c=Lc(a,n,i[0]),f=g.type}else v=c=l?s[0]:s;var p=nT(t),m=p&&t.name||"",y=a.getName(n),_=r?m:y;return wn("section",{header:m,noHeader:r||!p,sortParam:v,blocks:[wn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Va(_),value:c,valueType:f})].concat(d||[])})}function Moe(e,t,n,r,a){var i=t.getData(),o=Si(e,function(f,d,v){var h=i.getDimensionInfo(v);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];r.length?k(r,function(f){c(Lc(i,n,f),f)}):k(e,c);function c(f,d){var v=i.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(o?u.push(wn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Co=it();function sg(e,t){return e.getName(t)||e.getId(t)}var cp="__universalTransitionEnabled",o0=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Dd({count:Loe,reset:Eoe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Co(this).sourceManager=new PG(this);i.prepareSource();var o=this.getInitialData(n,a);Ak(o,this),this.dataTask.context.data=o,Co(this).dataBeforeProcessed=o,Tk(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=yv(this),i=a?lf(n):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),Ye(n,r.getTheme().get(this.subType)),Ye(n,this.getDefaultOption()),eu(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&ds(n,i,a)},t.prototype.mergeOption=function(n,r){n=Ye(this.option,n,!0),this.fillDataTextStyle(n.data);var a=yv(this);a&&ds(this.option,n,a);var i=Co(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);Ak(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Co(this).dataBeforeProcessed=o,Tk(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!Gr(n))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=TT.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[sg(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cp])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Re(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ot.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(ot);fn(o0,DT);fn(o0,TT);G5(o0,ot);function Tk(e){var t=e.name;nT(e)||(e.name=koe(e)||t)}function koe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return k(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function Loe(e){return e.model.getRawData().count()}function Eoe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Roe}function Roe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ak(e,t){k(Hp(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,He(Voe,t))})}function Voe(e,t){var n=Sx(e);return n&&n.setOutputEnd((t||this).count()),t}function Sx(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}const $t=o0;var kT=function(){function e(){this.group=new Be,this.uid=of("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){},e.prototype.updateLayout=function(t,n,r,a){},e.prototype.updateVisual=function(t,n,r,a){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();aT(kT);$y(kT);const Zt=kT;function ff(){var e=it();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var NG=it(),Ooe=ff(),LT=function(){function e(){this.group=new Be,this.uid=of("viewChart"),this.renderTask=Dd({plan:Noe,reset:Boe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.highlight=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&Pk(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&Pk(i,a,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateLayout=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateVisual=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.eachRendered=function(t){As(this.group,t)},e.markUpdateMethod=function(t,n){NG(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ik(e,t,n){e&&hv(e)&&(t==="emphasis"?Qi:eo)(e,n)}function Pk(e,t,n){var r=tu(e,t),a=t&&t.highlightKey!=null?cae(t.highlightKey):null;r!=null?k(bt(r),function(i){Ik(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){Ik(i,n,a)})}aT(LT);$y(LT);function Noe(e){return Ooe(e.model)}function Boe(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&NG(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),zoe[l]}var zoe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Et=LT;var om="\0__throttleOriginMethod",Dk="\0__throttleRate",Mk="\0__throttleType";function ET(e,t,n){var r,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var v=[],h=0;h=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(v){c=v},d}function df(e,t,n,r){var a=e[t];if(a){var i=a[om]||a,o=a[Mk],s=a[Dk];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=ET(i,n,r==="debounce"),a[om]=i,a[Mk]=r,a[Dk]=n}return a}}function bv(e,t){var n=e[t];n&&n[om]&&(n.clear&&n.clear(),e[t]=n[om])}var kk=it(),Lk={itemStyle:nu($$,!0),lineStyle:nu(F$,!0)},Foe={lineStyle:"stroke",itemStyle:"fill"};function BG(e,t){var n=e.visualStyleMapper||Lk[t];return n||(console.warn("Unknown style type '"+t+"'."),Lk.itemStyle)}function zG(e,t){var n=e.visualDrawType||Foe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var $oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=BG(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=zG(e,r),u=o[l],c=Le(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Le(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Le(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(v,h){var g=e.getDataParams(h),p=oe({},o);p[l]=c(g),v.setItemVisual(h,"style",p)}}}},Lf=new Lt,Goe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=BG(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){Lf.option=l[r];var u=a(Lf),c=o.ensureUniqueItemVisual(s,"style");oe(c,u),Lf.option.decal&&(o.setItemVisual(s,"decal",Lf.option.decal),Lf.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Hoe={performRawSeries:!0,overallReset:function(e){var t=De();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=t.get(a);i||(i={},t.set(a,i)),kk(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=kk(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=zG(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),v=r.getName(u)||u+"",h=r.count();d[l]=n.getColorFromPalette(v,o,h)}})}})}},lg=Math.PI;function Woe(e,t){t=t||{},Ee(t,{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 n=new Be,r=new at({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new lt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new at({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(i);var o;return t.showSpinner&&(o=new vT({shape:{startAngle:-lg/2,endAngle:-lg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:lg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:lg*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Uoe=function(){function e(t,n,r,a){this._stageTaskMap=De(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=De();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;k(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";dr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;k(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,h=d.agentStubMap;h.each(function(p){s(a,p)&&(p.dirty(),v=!0)}),v&&d.dirty(),o.updatePayload(d,r);var g=o.getPerformArgs(d,a.block);h.each(function(p){p.perform(g)}),d.perform(g)&&(i=!0)}else f&&f.each(function(p,m){s(a,p)&&p.dirty();var y=o.getPerformArgs(p,a.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(p.context.model),o.updatePayload(p,r),p.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=De(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,v=s.set(d,o&&o.get(d)||Dd({plan:Koe,reset:qoe,count:Qoe}));v.context={model:f,ecModel:r,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,n,r,a){var i=this,o=n.overallTask=n.overallTask||Dd({reset:Yoe});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=De(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,v="";dr(!t.createOnAllSeries,v),u?r.eachRawSeriesByType(u,h):c?c(r,a).each(h):(f=!1,k(r.getSeries(),h));function h(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(d=!0,Dd({reset:Xoe,onDirty:joe})));m.context={model:g,overallProgress:f},m.agent=o,m.__block=f,i._pipe(g,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return Le(t)&&(t={overallReset:t,seriesType:ese(t)}),t.uid=of("stageHandler"),n&&(t.visualType=n),t},e}();function Yoe(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xoe(e){return e.overallProgress&&Zoe}function Zoe(){this.agent.dirty(),this.getDownstream().dirty()}function joe(){this.agent&&this.agent.dirty()}function Koe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function qoe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=bt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?fe(t,function(n,r){return FG(r)}):Joe}var Joe=FG(0);function FG(e){return function(t,n){var r=n.data,a=n.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-d.length){var h=u.slice(0,v);h!=="data"&&(n.mainType=h,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,v,h){return f[v]==null||d[h||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),xx=["symbol","symbolSize","symbolRotate","symbolOffset"],Ok=xx.concat(["symbolKeepAspect"]),ase={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&Tl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Cx(e,t,n){for(var r=t.type==="radial"?bse(e,t,n):_se(e,t,n),a=t.colorStops,i=0;i0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ut(e)?[e]:ue(e)?e:null}function VT(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&xse(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=fe(n,function(i){return i/a}),r/=a)}return[n,r]}var wse=new Ti(!0);function um(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Nk(e){return typeof e=="string"&&e!=="none"}function cm(e){var t=e.fill;return t!=null&&t!=="none"}function Bk(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function zk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Tx(e,t,n){var r=iT(t.image,t.__image,n);if(Gy(r)){var a=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Kg),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function Cse(e,t,n,r){var a,i=um(n),o=cm(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||wse,f=t.__dirty;if(!r){var d=n.fill,v=n.stroke,h=o&&!!d.colorStops,g=i&&!!v.colorStops,p=o&&!!d.image,m=i&&!!v.image,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0;(h||g)&&(S=t.getBoundingRect()),h&&(y=f?Cx(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=f?Cx(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(b=f||!t.__canvasFillPattern?Tx(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=f||!t.__canvasStrokePattern?Tx(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),h?e.fillStyle=y:p&&(b?e.fillStyle=b:o=!1),g?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&n.lineDash&&(a=VT(t),C=a[0],T=a[1]);var A=!0;(u||f&qu)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),r||(n.strokeFirst?(i&&zk(e,n),o&&Bk(e,n)):(o&&Bk(e,n),i&&zk(e,n))),C&&e.setLineDash([])}function Tse(e,t,n){var r=t.__image=iT(n.image,t.__image,t,t.onload);if(!(!r||!Gy(r))){var a=n.x||0,i=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;e.drawImage(r,u,c,f,d,a,i,o,s)}else e.drawImage(r,a,i,o,s)}}function Ase(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||ls,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=VT(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(um(n)&&e.strokeText(a,n.x,n.y),cm(n)&&e.fillText(a,n.x,n.y)):(cm(n)&&e.fillText(a,n.x,n.y),um(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var Fk=["shadowBlur","shadowOffsetX","shadowOffsetY"],$k=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function XG(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Cr(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Nl.opacity:o}(r||t.blend!==n.blend)&&(i||(Cr(e,a),i=!0),e.globalCompositeOperation=t.blend||Nl.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,a){if(!this[Yn]){if(this._disposed){this.id;return}var i,o,s;if(Re(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Yn]=!0,!this._model||r){var l=new Gie(this._api),u=this._theme,c=this._model=new dG;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},Ix);var f={seriesTransition:s,optionChanged:!0};if(a)this[yr]={silent:i,updateParams:f},this[Yn]=!1,this.getZr().wakeUp();else{try{zu(this),To.update.call(this,null,f)}catch(d){throw this[yr]=null,this[Yn]=!1,d}this._ssr||this._zr.flush(),this[yr]=null,this[Yn]=!1,Ef.call(this,i),Rf.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||st.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(st.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return k(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;k(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return k(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(nL[a]){var l=s,u=s,c=-s,f=-s,d=[],v=n&&n.pixelRatio||this.getDevicePixelRatio();k(kd,function(_,b){if(_.group===a){var x=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ve(n)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=v,u*=v,c*=v,f*=v;var h=c-l,g=f-u,p=us.createCanvas(),m=iM(p,{renderer:r?"svg":"canvas"});if(m.resize({width:h,height:g}),r){var y="";return k(d,function(_){var b=_.left-l,x=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new at({shape:{x:0,y:0,width:h,height:g},style:{fill:n.connectedBackgroundColor}})),k(d,function(_){var b=new Wn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return W_(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return W_(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=Cd(a,n);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=Cd(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?RT(s,l,r):uh(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;k(Jse,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Cl(s,function(h){var g=$e(h);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=oe({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),v=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:v},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),k(Md,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),k(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),ose(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&z5(this.getDom(),BT,"");var r=this,a=r._api,i=r._model;k(r._componentsViews,function(o){o.dispose(i,a)}),k(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete kd[r.id]},t.prototype.resize=function(n){if(!this[Yn]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[yr]&&(i==null&&(i=this[yr].silent),a=!0,this[yr]=null),this[Yn]=!0;try{a&&zu(this),To.update.call(this,{type:"resize",animation:oe({duration:0},n&&n.animation)})}catch(o){throw this[Yn]=!1,o}this[Yn]=!1,Ef.call(this,i),Rf.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Re(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Px[n]){var a=Px[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=oe({},n);return r.type=Md[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Re(r)||(r={silent:!!r}),!!fm[n.type]&&this._model){if(this[Yn]){this._pendingActions.push(n);return}var a=r.silent;Y_.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&st.browser.weChat&&this._throttledZrFlush(),Ef.call(this,a),Rf.call(this,a)}},t.prototype.updateLabelLayout=function(){ka.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){zu=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),H_(f,!0),H_(f,!1),d.plan()},H_=function(f,d){for(var v=f._model,h=f._scheduler,g=d?f._componentsViews:f._chartsViews,p=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_d.get("hoverLayerThreshold")&&!st.node&&!st.worker&&d.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=f._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var v=f.get("blendMode")||null;d.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function s(f,d){if(!f.preventAutoZ){var v=f.get("z")||0,h=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,v,h,-1/0),!0})}}function l(f,d,v,h){var g=f.getTextContent(),p=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(hc(m))return;if(m instanceof Qe&&fae(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(h){m.stateTransition=p;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&a(m)}})}eL=function(f){return new(function(d){ee(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var g=h.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);h=h.parent}},v.prototype.enterEmphasis=function(h,g){Qi(h,g),Zr(f)},v.prototype.leaveEmphasis=function(h,g){eo(h,g),Zr(f)},v.prototype.enterBlur=function(h){s$(h),Zr(f)},v.prototype.leaveBlur=function(h){uT(h),Zr(f)},v.prototype.enterSelect=function(h){l$(h),Zr(f)},v.prototype.leaveSelect=function(h){u$(h),Zr(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},v}(vG))(f)},l3=function(f){function d(v,h){for(var g=0;g=0)){rL.push(n);var i=HG.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function h3(e,t){Px[e]=t}function ile(e,t,n){var r=Nse("registerMap");r&&r(e,t,n)}var ole=poe;bu(OT,$oe);bu(s0,Goe);bu(s0,Hoe);bu(OT,ase);bu(s0,ise);bu(n3,Rse);d3(gG);v3(Fse,Kie);h3("default",Woe);Mi({type:Bl,event:Bl,update:Bl},rn);Mi({type:ip,event:ip,update:ip},rn);Mi({type:Td,event:Td,update:Td},rn);Mi({type:op,event:op,update:op},rn);Mi({type:Ad,event:Ad,update:Ad},rn);f3("light",tse);f3("dark",nse);var aL=[],sle={registerPreprocessor:d3,registerProcessor:v3,registerPostInit:tle,registerPostUpdate:nle,registerUpdateLifecycle:zT,registerAction:Mi,registerCoordinateSystem:rle,registerLayout:ale,registerVisual:bu,registerTransform:ole,registerLoading:h3,registerMap:ile,registerImpl:Ose,PRIORITY:jse,ComponentModel:ot,ComponentView:Zt,SeriesModel:$t,ChartView:Et,registerComponentModel:function(e){ot.registerClass(e)},registerComponentView:function(e){Zt.registerClass(e)},registerSeriesModel:function(e){$t.registerClass(e)},registerChartView:function(e){Et.registerClass(e)},registerSubTypeDefaulter:function(e,t){ot.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){kne(e,t)}};function Ke(e){if(ue(e)){k(e,function(t){Ke(t)});return}je(aL,e)>=0||(aL.push(e),Le(e)&&(e={install:e}),e.install(sle))}function Vf(e){return e==null?0:e.length||1}function iL(e){return e}var lle=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||iL,this._newKeyGetter=a||iL,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},a=new Array(t.length),i=new Array(n.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(t,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Of=Re,Ao=fe,gle=typeof Int32Array>"u"?Array:Int32Array,ple="e\0\0",oL=-1,mle=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],yle=["_approximateExtent"],sL,vg,Nf,Bf,j_,hg,K_,_le=function(){function e(t,n){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 r,a=!1;p3(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ta;if(l&&!a.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var i=a[n];return i==null&&(i=this.getVisual(n),ue(i)?i=i.slice():Of(i)&&(i=oe({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Of(n)?oe(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Of(t)?oe(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?oe(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;ix(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){k(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ao(this.dimensions,this._getDimInfo,this),this.hostModel)),j_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Le(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(YC(arguments)))})},e.internalField=function(){sL=function(t){var n=t._invertedIndicesMap;k(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new gle(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[n]=l}}}(),e}();const fr=_le;function ch(e,t){AT(e)||(e=IT(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=De(),i=[],o=Sle(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_3(o),l=r===e.dimensionsDefine,u=l?y3(e):m3(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=De(c),d=new AG(o),v=0;v0&&(r.name=a+(i-1)),i++,t.set(a,i)}}function Sle(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return k(t,function(i){var o;Re(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function xle(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var wle=function(){function e(t){this.coordSysDims=[],this.axisMap=De(),this.categoryAxisMap=De(),this.coordSysName=t}return e}();function Cle(e){var t=e.get("coordinateSystem"),n=new wle(t),r=Tle[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Tle={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",on).models[0],i=e.getReferringComponents("yAxis",on).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),Fu(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),Fu(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",on).models[0];t.coordSysDims=["single"],n.set("single",a),Fu(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",on).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),Fu(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),Fu(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();k(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),Fu(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Fu(e){return e.get("type")==="category"}function Ale(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;Ile(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(k(i,function(y,_){we(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,h=c.type,g=0;k(i,function(y){y.coordDim===v&&g++});var p={name:f,coordDim:v,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(d,h),m.storeDimIndex=s.ensureCalculationDimension(f,h)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(i.push(p),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function Ile(e){return!p3(e.schema)}function vs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function b3(e,t){return vs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Ple(e,t){var n=e.get("coordinateSystem"),r=lh.get(n),a;return t&&t.coordSysDims&&(a=fe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=vm(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function Dle(e,t,n){var r,a;return n&&k(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function vo(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=IT(e)):(a=r.getSource(),i=a.sourceFormat===Ta);var o=Cle(t),s=Ple(t,o),l=n.useEncodeDefaulter,u=Le(l)?l:l?He(sG,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=ch(a,c),d=Dle(f.dimensions,n.createInvertedIndices,o),v=i?null:r.getSharedDataStore(f),h=Ale(t,{schema:f,store:v}),g=new fr(f,t);g.setCalculationInfo(h);var p=d!=null&&Mle(a)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,p),g}function Mle(e){if(e.sourceFormat===Ta){var t=kle(e.data||[]);return!ue(ef(t))}}function kle(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();$y(S3);const ho=S3;var Lle=0,Ele=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Lle}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&fe(r,Rle);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!we(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=De(this.categories))},e}();function Rle(e){return Re(e)&&e.value!=null?e.value:e+""}const Dx=Ele;function Mx(e){return e.type==="interval"||e.type==="log"}function Vle(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=k5(i/t,!0);n!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=x3(o),l=a.niceTickExtent=[Kt(Math.ceil(e[0]/o)*o,s),Kt(Math.floor(e[1]/o)*o,s)];return Ole(l,e),a}function q_(e){var t=Math.pow(10,tT(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Kt(n*t)}function x3(e){return fi(e)+2}function lL(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Ole(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),lL(e,0,t),lL(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function l0(e,t){return e>=t[0]&&e<=t[1]}function u0(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function c0(e,t){return e*(t[1]-t[0])+t[0]}var w3=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new Dx({})),ue(a)&&(a=new Dx({categories:fe(a,function(i){return Re(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:we(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),l0(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),u0(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(c0(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ho);ho.registerClass(w3);const $T=w3;var Js=Kt,C3=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return l0(n,this._extent)},t.prototype.normalize=function(n){return u0(n,this._extent)},t.prototype.scale=function(n){return c0(n,this._extent)},t.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=x3(n)},t.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:Js(c+r,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function I3(e){var t=zle(e),n=[];return k(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var v=r.getData();s=Math.abs(o[1]-o[0])/v.count()}var h=be(r.get("barWidth"),s),g=be(r.get("barMaxWidth"),s),p=be(r.get("barMinWidth")||(L3(r)?.5:1),s),m=r.get("barGap"),y=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:h,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:HT(i),stackId:GT(r)})}),P3(n)}function P3(e){var t={};k(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var v=r.barGap;v!=null&&(s.gap=v);var h=r.barCategoryGap;h!=null&&(s.categoryGap=h)});var n={};return k(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=tt(i).length;s=Math.max(35-l*4,15)+"%"}var u=be(s,o),c=be(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,v=(f-u)/(d+(d-1)*c);v=Math.max(v,0),k(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,d--}else{var b=v;y&&yb&&(b=_),b!==v&&(m.width=b,f-=b+c*b,d--)}}),v=(f-u)/(d+(d-1)*c),v=Math.max(v,0);var h=0,g;k(i,function(m,y){m.width||(m.width=v),g=m,h+=m.width*(1+c)}),g&&(h-=g.width*c);var p=-h/2;k(i,function(m,y){n[a][y]=n[a][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+c)})}),n}function Fle(e,t,n){if(e&&t){var r=e[HT(t)];return r!=null&&n!=null?r[GT(n)]:r}}function D3(e,t){var n=A3(e,t),r=I3(n);k(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=GT(a),u=r[HT(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function M3(e){return{seriesType:e,plan:ff(),reset:function(t){if(k3(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=vs(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),v=$le(a,i),h=L3(t),g=t.get("barMinHeight")||0,p=c&&n.getDimensionIndex(c),m=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(_,b){for(var x=_.count,S=h&&vi(x*3),w=h&&l&&vi(x*3),C=h&&vi(x),T=r.master.getRect(),A=d?T.width:T.height,P,D=b.getStore(),M=0;(P=_.next())!=null;){var L=D.get(f?p:o,P),R=D.get(s,P),O=v,H=void 0;f&&(H=+L-D.get(o,P));var V=void 0,G=void 0,X=void 0,Z=void 0;if(d){var q=r.dataToPoint([L,R]);if(f){var Q=r.dataToPoint([H,R]);O=Q[0]}V=O,G=q[1]+y,X=q[0]-O,Z=m,Math.abs(X)>>1;e[a][1]a&&(this._approxInterval=a);var s=gg.length,l=Math.min(Gle(gg,this._approxInterval,0,s),s-1);this._interval=gg[l][1],this._minLevelUnit=gg[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return ut(n)?n:+Ci(n)},t.prototype.contain=function(n){return l0(this.parse(n),this._extent)},t.prototype.normalize=function(n){return u0(this.parse(n),this._extent)},t.prototype.scale=function(n){return c0(n,this._extent)},t.type="time",t}(hs),gg=[["second",_T],["minute",bT],["hour",Pd],["quarter-day",Pd*6],["half-day",Pd*12],["day",la*1.2],["half-week",la*3.5],["week",la*7],["month",la*31],["quarter",la*95],["half-year",qM/2],["year",qM]];function Hle(e,t,n,r){var a=Ci(t),i=Ci(n),o=function(h){return QM(a,h,r)===QM(i,h,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},v=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return v()}}function Wle(e,t){return e/=la,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ule(e){var t=30*la;return e/=t,e>6?6:e>3?3:e>2?2:1}function Yle(e){return e/=Pd,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function uL(e,t){return e/=t?bT:_T,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Xle(e){return k5(e,!0)}function Zle(e,t,n){var r=new Date(e);switch(gc(t)){case"year":case"month":r[Y$(n)](0);case"day":r[X$(n)](1);case"hour":r[Z$(n)](0);case"minute":r[j$(n)](0);case"second":r[K$(n)](0),r[q$(n)](0)}return r.getTime()}function jle(e,t,n,r){var a=1e4,i=W$,o=0;function s(A,P,D,M,L,R,O){for(var H=new Date(P),V=P,G=H[M]();V1&&R===0&&D.unshift({value:D[0].value-V})}}for(var R=0;R=r[0]&&y<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(p),f>_||e===i[v]))break}c=[]}}}for(var b=yt(fe(u,function(A){return yt(A,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(A){return A.length>0}),x=[],S=b.length-1,v=0;v0;)i*=10;var s=[Kt(Jle(r[0]/i)*i),Kt(qle(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Ld.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=Pa(n)/Pa(this.base),l0(n,this._extent)},t.prototype.normalize=function(n){return n=Pa(n)/Pa(this.base),u0(n,this._extent)},t.prototype.scale=function(n){return n=c0(n,this._extent),pg(this.base,n)},t.type="log",t}(ho),V3=WT.prototype;V3.getMinorTicks=Ld.getMinorTicks;V3.getLabel=Ld.getLabel;function mg(e,t){return Kle(e,fi(t))}ho.registerClass(WT);const Qle=WT;var eue=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,v=this._determinedMax;return d!=null&&(s=d,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[nue[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=tue[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),tue={min:"_determinedMin",max:"_determinedMax"},nue={min:"_dataMin",max:"_dataMax"};function O3(e,t,n){var r=e.rawExtentInfo;return r||(r=new eue(e,t,n),e.rawExtentInfo=r,r)}function yg(e,t){return t==null?null:sv(t)?NaN:e.parse(t)}function N3(e,t){var n=e.type,r=O3(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,i=r.max,o=t.ecModel;if(o&&n==="time"){var s=A3("bar",o),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=I3(s),c=rue(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function rue(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=Fle(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;k(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;k(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Rc(e,t){var n=t,r=N3(e,n),a=r.extent,i=n.get("splitNumber");e instanceof Qle&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function f0(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new $T({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new R3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(ho.getClass(t)||hs)}}function aue(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function fh(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}(t):we(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):Le(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(UT(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function UT(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function iue(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof $T?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=fh(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;ce[1]&&(e[1]=a[1])})}var dh=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),lue=1e-8;function fL(e,t){return Math.abs(e-t)a&&(r=o,a=l)}if(r)return cue(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return k(o,function(s){s.type==="polygon"?dL(s.exterior,a,i,n):k(s.points,function(l){dL(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Xe(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function vue(e,t){return e=due(e),fe(yt(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new vL(o[0],o.slice(1)));break;case"MultiPolygon":k(a.coordinates,function(l){l[0]&&i.push(new vL(l[0],l.slice(1)))});break;case"LineString":i.push(new hL([a.coordinates]));break;case"MultiLineString":i.push(new hL(a.coordinates))}var s=new F3(r[t||"name"],i,r.cp);return s.properties=r,s})}var wv=it();function hue(e){return e.type==="category"?pue(e):yue(e)}function gue(e,t){return e.type==="category"?mue(e,t):{ticks:fe(e.scale.getTicks(),function(n){return n.value})}}function pue(e){var t=e.getLabelModel(),n=G3(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function G3(e,t){var n=H3(e,"labels"),r=YT(t),a=W3(n,r);if(a)return a;var i,o;return Le(r)?i=X3(e,r):(o=r==="auto"?_ue(e):r,i=Y3(e,o)),U3(n,r,{labels:i,labelCategoryInterval:o})}function mue(e,t){var n=H3(e,"ticks"),r=YT(t),a=W3(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Le(r))i=X3(e,r,!0);else if(r==="auto"){var s=G3(e,e.getLabelModel());o=s.labelCategoryInterval,i=fe(s.labels,function(l){return l.tickValue})}else o=r,i=Y3(e,o,!0);return U3(n,r,{ticks:i,tickCategoryInterval:o})}function yue(e){var t=e.scale.getTicks(),n=fh(e);return{labels:fe(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function H3(e,t){return wv(e)[t]||(wv(e)[t]=[])}function W3(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,v=0;l<=i[1];l+=s){var h=0,g=0,p=th(n({value:l}),t.font,"center","top");h=p.width*1.3,g=p.height*1.3,d=Math.max(d,h,7),v=Math.max(v,g,7)}var m=d/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=wv(e.model),x=e.getExtent(),S=b.lastAutoInterval,w=b.lastTickCount;return S!=null&&w!=null&&Math.abs(S-_)<=1&&Math.abs(w-o)<=1&&S>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=S:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function Sue(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Y3(e,t,n){var r=fh(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=B3(e),d=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;d&&u!==i[0]&&g(i[0]);for(var h=u;h<=i[1];h+=l)g(h);v&&h-l!==i[1]&&g(i[1]);function g(p){var m={value:p};s.push(n?p:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:p})}return s}function X3(e,t,n){var r=e.scale,a=fh(e),i=[];return k(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var gL=[0,1],xue=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return t>=r&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return D5(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(r=r.slice(),pL(r,a.count())),gt(t,gL,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),pL(r,a.count()));var i=gt(t,r,gL,n);return this.scale.scale(i)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=gue(this,n),a=r.ticks,i=fe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return wue(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=fe(r,function(i){return fe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return hue(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return bue(this)},e}();function pL(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function wue(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;k(t,function(v){v.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(v,h){return v=Kt(v),h=Kt(h),f?v>h:va&&(a+=zf);var v=Math.atan2(s,o);if(v<0&&(v+=zf),v>=r&&v<=a||v+zf>=r&&v+zf<=a)return l[0]=c,l[1]=f,u-n;var h=n*Math.cos(r)+e,g=n*Math.sin(r)+t,p=n*Math.cos(a)+e,m=n*Math.sin(a)+t,y=(h-o)*(h-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(m-s)*(m-s);return y<_?(l[0]=h,l[1]=g,Math.sqrt(y)):(l[0]=p,l[1]=m,Math.sqrt(_))}function gm(e,t,n,r,a,i,o,s){var l=a-e,u=i-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=l*c+u*f,h=v/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var g=o[0]=e+h*c,p=o[1]=t+h*f;return Math.sqrt((g-a)*(g-a)+(p-i)*(p-i))}function Z3(e,t,n,r,a,i,o){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var La=[];function Iue(e,t,n){var r=Z3(t.x,t.y,t.width,t.height,e.x,e.y,La);return n.set(La[0],La[1]),r}function Pue(e,t,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,v=0;v0){t=t/180*Math.PI,Na.fromArray(e[0]),It.fromArray(e[1]),Jt.fromArray(e[2]),We.sub(hi,Na,It),We.sub(li,Jt,It);var n=hi.len(),r=li.len();if(!(n<.001||r<.001)){hi.scale(1/n),li.scale(1/r);var a=hi.dot(li),i=Math.cos(t);if(i1&&We.copy(cr,Jt),cr.toArray(e[1])}}}}function Due(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Na.fromArray(e[0]),It.fromArray(e[1]),Jt.fromArray(e[2]),We.sub(hi,It,Na),We.sub(li,Jt,It);var r=hi.len(),a=li.len();if(!(r<.001||a<.001)){hi.scale(1/r),li.scale(1/a);var i=hi.dot(t),o=Math.cos(n);if(i=l)We.copy(cr,Jt);else{cr.scaleAndAdd(li,s/Math.tan(Math.PI/2-c));var f=Jt.x!==It.x?(cr.x-It.x)/(Jt.x-It.x):(cr.y-It.y)/(Jt.y-It.y);if(isNaN(f))return;f<0?We.copy(cr,It):f>1&&We.copy(cr,Jt)}cr.toArray(e[1])}}}}function yL(e,t,n,r){var a=n==="normal",i=a?e:e.ensureState(n);i.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function Mue(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=$o(r[0],r[1]),i=$o(r[1],r[2]);if(!a||!i){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=Jg([],r[1],r[0],o/a),l=Jg([],r[1],r[2],o/i),u=Jg([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&x(-c/o,0,o);var g=e[0],p=e[o-1],m,y;_(),m<0&&S(-m,.8),y<0&&S(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&w(-m),y<0&&w(y);function _(){m=g.rect[t]-r,y=a-p.rect[t]-p.rect[n]}function b(C,T,A){if(C<0){var P=Math.min(T,-C);if(P>0){x(P*A,0,o);var D=P+C;D<0&&S(-D*A,1)}else S(-C*A,1)}}function x(C,T,A){C!==0&&(u=!0);for(var P=T;P0)for(var D=0;D0;D--){var O=A[D-1]*R;x(-O,D,o)}}}function w(C){var T=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),P=0;P0?x(A,0,P+1):x(-A,o-P-1,o),C-=A,C<=0)return}return u}function kue(e,t,n,r){return q3(e,"x","width",t,n,r)}function J3(e,t,n,r){return q3(e,"y","height",t,n,r)}function Q3(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var n=new Xe(0,0,0,0);function r(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),je(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ct(r,u,n,l)}else if(r.attr(u),!af(r).valueAnimation){var f=Ue(r.style.opacity,1);r.style.opacity=0,Nt(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var v=i.oldLayoutSelect={};_g(v,u,bg),_g(v,r.states.select,bg)}if(r.states.emphasis){var h=i.oldLayoutEmphasis={};_g(h,u,bg),_g(h,r.states.emphasis,bg)}z$(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=Rue(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ct(a,{shape:g},n)):(a.setShape(g),a.style.strokePercent=0,Nt(a,{style:{strokePercent:1}},n)),i.oldLayout=g}},e}();const Oue=Vue;var tb=it();function Nue(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=tb(n).labelManager;a||(a=tb(n).labelManager=new Oue),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=tb(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var nb=Math.sin,rb=Math.cos,eH=Math.PI,el=Math.PI*2,Bue=180/eH,zue=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){this._add("C",t,n,r,a,i,o)},e.prototype.quadraticCurveTo=function(t,n,r,a){this._add("Q",t,n,r,a)},e.prototype.arc=function(t,n,r,a,i,o){this.ellipse(t,n,r,r,0,a,i,o)},e.prototype.ellipse=function(t,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=Yo(f-el)||(c?u>=el:-u>=el),v=u>0?u%el:u%el+el,h=!1;d?h=!0:Yo(f)?h=!1:h=v>=eH==!!c;var g=t+r*rb(o),p=n+a*nb(o);this._start&&this._add("M",g,p);var m=Math.round(i*Bue);if(d){var y=1/this._p,_=(c?1:-1)*(el-y);this._add("A",r,a,m,1,+c,t+r*rb(o+_),n+a*nb(o+_)),y>.01&&this._add("A",r,a,m,0,+c,g,p)}else{var b=t+r*rb(s),x=n+a*nb(s);this._add("A",r,a,m,+h,+c,b,x)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function Zue(e){return""}function jT(e,t){t=t||{};var n=t.newline?` `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Xue(o,s)+(o!=="style"?br(l):l||"")+(i?""+n+fe(i,function(u){return r(u)}).join(n)+n:"")+Zue(o)}return r(e)}function jue(e,t,n){n=n||{};var r=n.newline?` -`:"",a=" {"+r,i=r+"}",o=fe(tt(e),function(l){return l+a+fe(tt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=fe(tt(t),function(l){return"@keyframes "+l+a+fe(tt(t[l]),function(u){return u+a+fe(tt(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function Rx(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function bL(e,t,n,r){return bn("svg","root",{width:e,height:t,xmlns:nH,"xmlns:xlink":rH,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var SL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},al="transform-origin";function Kue(e,t,n){var r=oe({},e.shape);oe(r,t),e.buildPath(n,r);var a=new tH;return a.reset(y5(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function que(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[al]=n+"px "+r+"px")}var Jue={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function iH(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Que(e,t,n){var r=e.shape.paths,a={},i,o;if(k(r,function(l){var u=Rx(n.zrId);u.animation=!0,v0(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=tt(c),v=d.length;if(v){o=d[v-1];var h=c[o];for(var g in h){var p=h[g];a[g]=a[g]||{d:""},a[g].d+=p.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){t.d=!1;var s=iH(a,n);return i.replace(o,s)}}function xL(e){return we(e)?SL[e]?"cubic-bezier("+SL[e]+")":qC(e)?e:"":""}function v0(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof hT){var s=Que(e,t,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var z=iH(w,n);return z+" "+y[0]+" both"}}for(var p in l){var s=g(l[p]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var Cv=Math.round;function oH(e){return e&&we(e.src)}function sH(e){return e&&Le(e.toDataURL)}function KT(e,t,n,r){Wue(function(a,i){var o=a==="fill"||a==="stroke";o&&m5(i)?uH(t,e,a,r):o&&JC(i)?cH(n,e,a,r):e[a]=i},t,n,!1),oce(n,e,r)}function wL(e){return Yo(e[0]-1)&&Yo(e[1])&&Yo(e[2])&&Yo(e[3]-1)}function ece(e){return Yo(e[4])&&Yo(e[5])}function qT(e,t,n){if(t&&!(ece(t)&&wL(t))){var r=n?10:1e4;e.transform=wL(t)?"translate("+Cv(t[4]*r)/r+" "+Cv(t[5]*r)/r+")":Jte(t)}}function CL(e,t,n){for(var r=e.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";dr(d,p),dr(v,p)}else if(d==null||v==null){var m=function(A,P){if(A){var D=A.elm,M=d||P.width,L=v||P.height;A.tag==="pattern"&&(u?(L=1,M/=i.width):c&&(M=1,L/=i.height)),A.attrs.width=M,A.attrs.height=L,D&&(D.setAttribute("width",M),D.setAttribute("height",L))}},y=iT(h,null,e,function(A){l||m(S,A),m(f,A)});y&&y.width&&y.height&&(d=d||y.width,v=v||y.height)}f=bn("image","img",{href:h,width:d,height:v}),o.width=d,o.height=v}else a.svgElement&&(f=Ve(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,b;l?_=b=1:u?(b=1,_=o.width/i.width):c?(_=1,b=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var x=_5(a);x&&(o.patternTransform=x);var S=bn("pattern","",o,[f]),w=jT(S),C=r.patternCache,T=C[w];T||(T=r.zrId+"-p"+r.patternIdx++,C[w]=T,o.id=T,S=r.defs[T]=bn("pattern",T,o,[f])),t[n]=Fy(T)}}function sce(e,t,n){var r=n.clipPathCache,a=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[e.id]=i,a[i]=bn("clipPath",i,o,[lH(e,n)])}t["clip-path"]=Fy(i)}function IL(e){return document.createTextNode(e)}function dl(e,t,n){e.insertBefore(t,n)}function PL(e,t){e.removeChild(t)}function DL(e,t){e.appendChild(t)}function fH(e){return e.parentNode}function dH(e){return e.nextSibling}function ib(e,t){e.textContent=t}var ML=58,lce=120,uce=bn("","");function Vx(e){return e===void 0}function ii(e){return e!==void 0}function cce(e,t,n){for(var r={},a=t;a<=n;++a){var i=e[a].key;i!==void 0&&(r[i]=a)}return r}function od(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Tv(e){var t,n=e.children,r=e.tag;if(ii(r)){var a=e.elm=aH(r);if(JT(uce,e),ue(n))for(t=0;ti?(h=n[l+1]==null?null:n[l+1].elm,vH(e,h,n,a,l)):mm(e,t,r,i))}function Qu(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(JT(e,t),Vx(t.text)?ii(r)&&ii(a)?r!==a&&fce(n,r,a):ii(a)?(ii(e.text)&&ib(n,""),vH(n,null,a,0,a.length-1)):ii(r)?mm(n,r,0,r.length-1):ii(e.text)&&ib(n,""):e.text!==t.text&&(ii(r)&&mm(n,r,0,r.length-1),ib(n,t.text)))}function dce(e,t){if(od(e,t))Qu(e,t);else{var n=e.elm,r=fH(n);Tv(t),r!==null&&(dl(r,t.elm,dH(n)),mm(r,[e],0,0))}return t}var vce=0,hce=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=kL(),this.configLayer=kL(),this.storage=n,this._opts=r=oe({},r),this.root=t,this._id="zr"+vce++,this._oldVNode=bL(r.width,r.height),t&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=aH("svg");JT(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",dce(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return AL(t,Rx(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=Rx(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=gce(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=bn("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=fe(tt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(bn("defs","defs",{},u)),t.animation){var c=jue(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=bn("style","stl",{},[],c);o.push(f)}}return bL(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},jT(this.renderToVNode({animation:Ue(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ue(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[g]===l[g]);g--);for(var p=h-1;p>g;p--)o--,s=i[o-1];for(var m=g+1;m=s)}}for(var f=this.__startIndex;f15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var A=v.dpr,P=0;P0&&t>a[0]){for(l=0;lt);l++);s=r[a[l]]}if(a.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.__painter=this}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,a=0;a0?Sg:0),this._needsManuallyCompositing),c.__builtin__||WC("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&Br&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,k(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Ye(r[t],n,!0):r[t]=n;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.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},t}($t);const Ace=Tce;function Vc(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=Lc(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(t[i])}return r.join(" ")}var Ice=function(e){ne(t,e);function t(n,r,a,i){var o=e.call(this)||this;return o.updateData(n,r,a,i),o}return t.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=sn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Pce,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Qi(this.childAt(0))},t.prototype.downplay=function(){eo(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(v):ct(d,v,s,r),Ua(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Nt(d,v,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,v,h,g,p,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,v=i.blurScope,g=i.labelStatesModels,p=i.hoverScale,m=i.cursorStyle,h=i.emphasisDisabled),!i||n.hasItemOption){var y=i&&i.itemModel?i.itemModel:n.getItemModel(r),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),v=_.get("blurScope"),h=_.get("disabled"),g=xn(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var b=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=_u(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(r,"style"),w=S.fill;if(s instanceof Wn){var C=s.style;s.useStyle(oe({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(oe({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=n.getItemVisual(r,"liftZ"),A=this._z2;T!=null?A==null&&(this._z2=s.z2,s.z2+=T):A!=null&&(s.z2=A,this._z2=null);var P=o&&o.useNameLabel;Hn(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:D,inheritColor:w,defaultOpacity:S.opacity});function D(R){return P?n.getName(R):Vc(n,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),Xt(this,d,v,h)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=$e(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&fs(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();fs(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return vf(n.getItemVisual(r,"symbolSize"))},t}(Be);function Pce(e,t){this.parent.drift(e,t)}const vh=Ice;function sb(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function RL(e){return e!=null&&!Re(e)&&(e={isIgnore:e}),e||{}}function VL(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:xn(t),cursorStyle:t.get("cursor")}}var Dce=function(){function e(t){this.group=new Be,this._SymbolCtor=t||vh}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=RL(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=VL(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};i||r.removeAll(),t.diff(i).add(function(f){var d=c(f);if(sb(t,d,f,n)){var v=new o(t,f,l,u);v.setPosition(d),t.setItemGraphicEl(f,v),r.add(v)}}).update(function(f,d){var v=i.getItemGraphicEl(d),h=c(f);if(!sb(t,h,f,n)){r.remove(v);return}var g=t.getItemVisual(f,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)r.remove(v),v=new o(t,f,l,u),v.setPosition(h);else{v.updateData(t,f,l,u);var m={x:h[0],y:h[1]};s?v.attr(m):ct(v,m,a)}r.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=t._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=VL(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=RL(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function pH(e,t,n,r){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=n.get(e.baseDim,r),o[1-i]=a,t.dataToPoint(o)}function kce(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Lce(e,t,n,r,a,i,o,s){for(var l=kce(e,t),u=[],c=[],f=[],d=[],v=[],h=[],g=[],p=gH(a,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||g<0)break;if(Gl(m,y)){if(l){g+=i;continue}break}if(g===n)e[i>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var _=m-u,b=y-c;if(_*_+b*b<.5){g+=i;continue}if(o>0){for(var x=g+i,S=t[x*2],w=t[x*2+1];S===m&&w===y&&p=r||Gl(S,w))v=m,h=y;else{A=S-u,P=w-c;var L=m-u,R=S-m,O=y-c,W=w-y,V=void 0,G=void 0;if(s==="x"){V=Math.abs(L),G=Math.abs(R);var X=A>0?1:-1;v=m-X*V*o,h=y,D=m+X*G*o,M=y}else if(s==="y"){V=Math.abs(O),G=Math.abs(W);var Z=P>0?1:-1;v=m,h=y-Z*V*o,D=m,M=y+Z*G*o}else V=Math.sqrt(L*L+O*O),G=Math.sqrt(R*R+W*W),T=G/(G+V),v=m-A*o*(1-T),h=y-P*o*(1-T),D=m+A*o*T,M=y+P*o*T,D=Io(D,Po(S,m)),M=Io(M,Po(w,y)),D=Po(D,Io(S,m)),M=Po(M,Io(w,y)),A=D-m,P=M-y,v=m-A*V/G,h=y-P*V/G,v=Io(v,Po(u,m)),h=Io(h,Po(c,y)),v=Po(v,Io(u,m)),h=Po(h,Io(c,y)),A=m-v,P=y-h,D=m+A*G/V,M=y+P*G/V}e.bezierCurveTo(f,d,v,h,m,y),f=D,d=M}else e.lineTo(m,y)}u=m,c=y,g+=i}return p}var mH=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ece=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mH},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Gl(a[o*2-2],a[o*2-1]);o--);for(;i=0){var b=u?(h-l)*_+l:(v-s)*_+s;return u?[n,b]:[b,n]}s=v,l=h;break;case o.C:v=i[f++],h=i[f++],g=i[f++],p=i[f++],m=i[f++],y=i[f++];var x=u?Up(s,v,g,m,n,c):Up(l,h,p,y,n,c);if(x>0)for(var S=0;S=0){var b=u?mn(l,h,p,y,w):mn(s,v,g,m,w);return u?[n,b]:[b,n]}}s=m,l=y;break}}},t}(Qe),Rce=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(mH),yH=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Rce},t.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Gl(a[s*2-2],a[s*2-1]);s--);for(;ot){i?n.push(o(i,l,t)):a&&n.push(o(a,l,0),o(a,l,t));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function Nce(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=t.getAxis(a),u=fe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Oce(u,a==="x"?n.getWidth():n.getHeight()),v=d.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var h=10,g=d[0].coord-h,p=d[v-1].coord+h,m=p-g;if(m<.001)return"transparent";k(d,function(_){_.offset=(_.coord-g)/m}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||"transparent"});var y=new ah(0,0,0,0,d,!0);return y[a]=g,y[a+"2"]=p,y}}}function Bce(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&zce(i,t))){var o=t.mapDimension(i.dim),s={};return k(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function zce(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function Fce(e,t){return isNaN(e)||isNaN(t)}function $ce(e){for(var t=e.length/2;t>0&&Fce(e[t*2-2],e[t*2-1]);t--);return t-1}function FL(e,t){return[e[t*2],e[t*2+1]]}function Gce(e,t,n){for(var r=e.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function SH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var X=g.getState("emphasis").style;X.lineWidth=+g.style.lineWidth+1}$e(g).seriesIndex=n.seriesIndex,Xt(g,W,V,G);var Z=zL(n.get("smooth")),J=n.get("smoothMonotone");if(g.setShape({smooth:Z,smoothMonotone:J,connectNulls:C}),p){var ee=l.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(Ee(c.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ee&&(F=zL(ee.get("smooth"))),p.setShape({smooth:Z,stackedOnSmooth:F,smoothMonotone:J,connectNulls:C}),Gn(p,n,"areaStyle"),$e(p).seriesIndex=n.seriesIndex,Xt(p,W,V,G)}var U=function($){i._changePolyState($)};l.eachItemGraphicEl(function($){$&&($.onHoverStateChange=U)}),this._polyline.onHoverStateChange=U,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=P,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,g),p&&this.packEventData(n,p))},t.prototype.packEventData=function(n,r){$e(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=tu(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,v=n.get("z")||0;u=new vh(o,s),u.x=c,u.y=f,u.setZ(d,v);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=d,h.z=v,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=tu(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;Qp(this._polyline,n),r&&Qp(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Ece({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new yH({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");Le(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Le(f)?f(null):f;n.eachItemGraphicEl(function(v,h){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var b=a,x=r.pointToCoord(p);i?(m=b.startAngle,y=b.endAngle,_=-x[1]/180*Math.PI):(m=b.r0,y=b.r,_=x[0])}else{var S=a;i?(m=S.x,y=S.x+S.width,_=v.x):(m=S.y+S.height,y=S.y,_=v.y)}var w=y===m?0:(_-m)/(y-m);l&&(w=1-w);var C=Le(f)?f(h):c*w+d,T=g.getSymbolPath(),A=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(SH(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new lt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=$ce(l);c>=0&&(Hn(s,xn(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?hH(o,v):Vc(o,f)},enableTextSetter:!0},Hce(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,v=d.get("connectNulls"),h=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=r.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?g:0)*(y?-1:1),S=(m?0:-g)*(y?-1:1),w=m?"x":"y",C=Gce(f,b,w),T=C.range,A=T[1]-T[0],P=void 0;if(A>=1){if(A>1&&!v){var D=FL(f,T[0]);u.attr({x:D[0]+x,y:D[1]+S}),o&&(P=d.getRawValue(T[0]))}else{var D=c.getPointOn(b,w);D&&u.attr({x:D[0]+x,y:D[1]+S});var M=d.getRawValue(T[0]),L=d.getRawValue(T[1]);o&&(P=F5(a,h,M,L,C.t))}i.lastFrameIndex=T[0]}else{var R=n===1||i.lastFrameIndex>0?T[0]:0,D=FL(f,R);o&&(P=d.getRawValue(R)),u.attr({x:D[0]+x,y:D[1]+S})}if(o){var O=af(u);typeof O.setLabelText=="function"&&O.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=Lce(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),v=d.current,h=d.stackedOnCurrent,g=d.next,p=d.stackedOnNext;if(o&&(v=Do(d.current,a,o,l),h=Do(d.stackedOnCurrent,a,o,l),g=Do(d.next,a,o,l),p=Do(d.stackedOnNext,a,o,l)),BL(v,g)>3e3||c&&BL(h,p)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=d.current,u.shape.points=v;var m={shape:{points:g}};d.current!==v&&(m.shape.__points=d.next),u.stopAnimation(),ct(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:h}),c.stopAnimation(),ct(c,{shape:{stackedOnPoints:p}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=d.status,b=0;b<_.length;b++){var x=_[b].cmd;if(x==="="){var S=n.getItemGraphicEl(_[b].idx1);S&&y.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,C=0;Ct&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var h=void 0;we(i)?h=Yce[i]:Le(i)&&(h=i),h&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,h,Xce))}}}}}function Zce(e){e.registerChartView(Uce),e.registerSeriesModel(Ace),e.registerLayout(gh("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xH("line"))}var wH=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return vo(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)k(i.getAxes(),function(d,v){if(d.type==="category"&&r!=null){var h=d.getTicksCoords(),g=o[v],p=r[v]==="x1"||r[v]==="y1";if(p&&(g+=1),h.length<2)return;if(h.length===2){s[v]=d.toGlobalCoord(d.getExtent()[p?1:0]);return}for(var m=void 0,y=void 0,_=1,b=0;bg){y=(x+m)/2;break}b===1&&(_=S-h[0].tickValue)}y==null&&(m?m&&(y=h[h.length-1].coord):y=h[0].coord),s[v]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($t);$t.registerClass(wH);const ym=wH;var jce=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return vo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(ym.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}),t}(ym);const Kce=jce;var qce=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Jce=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new qce},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,v=Math.PI*2,h=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){gv(i,n,$e(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Et),$L={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=ub(t.x,e.x),s=cb(t.x+t.width,a),l=ub(t.y,e.y),u=cb(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var a=cb(t.r,e.r),i=ub(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},GL={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new at({shape:oe({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,i,o,s,l){var u=!a&&l?_m:Pr,c=new u({shape:r,z2:1});c.name="item";var f=CH(a);if(c.calculateTextPosition=Qce(f,{isRoundCap:u===_m}),i){var d=c.shape,v=a?"r":"endAngle",h={};d[v]=a?r.r0:r.startAngle,h[v]=r[v],(s?ct:Nt)(c,{shape:h},i)}return c}};function rfe(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function HL(e,t,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ct:Nt)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?ct:Nt)(n,{shape:u},c,a)}function WL(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ofe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function CH(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function YL(e,t,n,r,a,i,o,s){var l=t.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=Il(r.getModel("itemStyle"),c,!0);oe(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=xn(r);Hn(e,h,{labelFetcher:i,labelDataIndex:n,defaultText:Vc(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var p=r.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,efe(e,p==="outside"?v:p,CH(o),r.get(["label","rotate"]))}B$(g,h,i.getRawValue(n),function(y){return hH(t,y)});var m=r.getModel(["emphasis"]);Xt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Gn(e,r),ofe(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function sfe(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}var lfe=function(){function e(){}return e}(),XL=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new lfe},t.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?n:null},30,!1);function ufe(e,t,n){for(var r=e.baseDimIdx,a=1-r,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function TH(e,t,n){if(Su(n,"cartesian2d")){var r=t,a=n.getArea();return{x:e?r.x:a.x,y:e?a.y:r.y,width:e?r.width:a.width,height:e?a.height:r.height}}else{var a=n.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function cfe(e,t,n){var r=e.type==="polar"?Pr:at;return new r({shape:TH(t,n,e),silent:!0,z2:0})}const ffe=nfe;function dfe(e){e.registerChartView(ffe),e.registerSeriesModel(Kce),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,He(D3,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M3("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xH("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Tg=Math.PI*2,KL=Math.PI/180;function AH(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IH(e,t){var n=AH(e,t),r=e.get("center"),a=e.get("radius");ue(a)||(a=[0,a]);var i=be(n.width,t.getWidth()),o=be(n.height,t.getHeight()),s=Math.min(i,o),l=be(a[0],s/2),u=be(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var v=d.dataToPoint(r);c=v[0]||0,f=v[1]||0}else ue(r)||(r=[r,r]),c=be(r[0],i)+n.x,f=be(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function vfe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=AH(r,n),s=IH(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*KL,v=r.get("minAngle")*KL,h=0;a.each(i,function(A){!isNaN(A)&&h++});var g=a.getSum(i),p=Math.PI/(g||h)*2,m=r.get("clockwise"),y=r.get("roseType"),_=r.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var x=Tg,S=0,w=d,C=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(A,P){var D;if(isNaN(A)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?D=g===0&&_?p:A*p:D=Tg/h,Dn?m:p,x=Math.abs(_.label.y-n);if(x>=b.maxY){var S=_.label.x-t-_.len2*a,w=r+_.len,C=Math.abs(S)e.unconstrainedWidth?null:v:null;r.setStyle("width",h)}var g=r.getBoundingRect();i.width=g.width;var p=(r.style.margin||0)+2.1;i.height=g.height+p,i.y-=(i.height-f)/2}}}function fb(e){return e.position==="center"}function pfe(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*hfe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function v(S){S.ignore=!0}function h(S){if(!S.ignore)return!0;for(var w in S.states)if(S.states[w].ignore===!1)return!0;return!1}t.each(function(S){var w=t.getItemGraphicEl(S),C=w.shape,T=w.getTextContent(),A=w.getTextGuideLine(),P=t.getItemModel(S),D=P.getModel("label"),M=D.get("position")||P.get(["emphasis","label","position"]),L=D.get("distanceToLabelLine"),R=D.get("alignTo"),O=be(D.get("edgeDistance"),u),W=D.get("bleedMargin"),V=P.getModel("labelLine"),G=V.get("length");G=be(G,u);var X=V.get("length2");if(X=be(X,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":J>0?"left":"right"}var K=Math.PI,ae=0,ie=D.get("rotate");if(ut(ie))ae=ie*(K/180);else if(M==="center")ae=0;else if(ie==="radial"||ie===!0){var ve=J<0?-Z+K:-Z;ae=ve}else if(ie==="tangential"&&M!=="outside"&&M!=="outer"){var ye=Math.atan2(J,ee);ye<0&&(ye=K*2+ye);var me=ee>0;me&&(ye=K+ye),ae=ye-K}if(i=!!ae,T.x=F,T.y=U,T.rotation=ae,T.setStyle({verticalAlign:"middle"}),H){T.setStyle({align:z});var De=T.states.select;De&&(De.x+=T.x,De.y+=T.y)}else{var _e=T.getBoundingRect().clone();_e.applyTransform(T.getComputedTransform());var he=(T.style.margin||0)+2.1;_e.y-=he/2,_e.height+=he,n.push({label:T,labelLine:A,position:M,len:G,len2:X,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new We(J,ee),linePoints:$,textAlign:z,labelDistance:L,labelAlignTo:R,edgeDistance:O,bleedMargin:W,rect:_e,unconstrainedWidth:_e.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:H})}}),!i&&e.get("avoidLabelOverlap")&&gfe(n,r,a,l,u,d,c,f);for(var g=0;g0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Et);const _fe=yfe;function hf(e,t,n){t=ue(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=ch(r,t).dimensions,i=new fr(a,e);return i.initData(r,n),i}var bfe=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}();const mh=bfe;var Sfe=it(),xfe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mh(Ce(this.getData,this),Ce(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return hf(this,{coordDimensions:["value"],encodeDefaulter:He(wT,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=Sfe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Rne(o,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){eu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.type="series.pie",t.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"},t}($t);const wfe=xfe;function Cfe(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(ut(o)&&!isNaN(o)&&o<0)})}}}function Tfe(e){e.registerChartView(_fe),e.registerSeriesModel(wfe),YG("pie",e.registerAction),e.registerLayout(He(vfe,"pie")),e.registerProcessor(ph("pie")),e.registerProcessor(Cfe("pie"))}var Afe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return vo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}($t);const Ife=Afe;var DH=4,Pfe=function(){function e(){}return e}(),Dfe=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new Pfe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const kfe=Mfe;var Lfe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=gh("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new kfe:new hh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Et);const Efe=Lfe;var Rfe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(ot);const Vfe=Rfe;var Nx=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",on).models[0]},t.type="cartesian2dAxis",t}(ot);fn(Nx,dh);var MH={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)"]}}},Ofe=Ye({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},MH),QT=Ye({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}}},MH),Nfe=Ye({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},QT),Bfe=Ee({logBase:10},QT);const kH={category:Ofe,value:QT,time:Nfe,log:Bfe};var zfe={value:1,category:1,time:1,log:1};function Oc(e,t,n,r){k(zfe,function(a,i){var o=Ye(Ye({},kH[i],!0),r,!0),s=function(l){ne(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=yv(this),v=d?lf(c):{},h=f.getTheme();Ye(c,h.get(i+"Axis")),Ye(c,this.getDefaultOption()),c.type=JL(c),d&&ds(c,v,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Mx.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",JL)}function JL(e){return e.type||(e.data?"category":"value")}var Ffe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return fe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),yt(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}();const $fe=Ffe;var Bx=["x","y"];function QL(e){return e.type==="interval"||e.type==="time"}var Gfe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Bx,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!QL(n)||!QL(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,v=o[1]-i[0]*f,h=this._transform=[c,0,0,f,d,v];this._invTransform=Qc([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Xe(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return zn(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return zn(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),i=Math.min(r[0],r[1]),o=Math.max(n[0],n[1])-a,s=Math.max(r[0],r[1])-i;return new Xe(a,i,o,s)},t}($fe),Hfe=function(e){ne(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(ja);const Wfe=Hfe;function zx(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,h=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));h[d.onZero]=Math.max(Math.min(g,h[1]),h[0])}i.position=[u==="y"?h[d[l]]:f[0],u==="x"?h[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[s],i.labelOffset=o?h[d[s]]-h[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Mn(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function eE(e){return e.get("coordinateSystem")==="cartesian2d"}function tE(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,on).models[0];t[r]=i}),t}var db=Math.log;function LH(e,t,n){var r=hs.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=N3(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=db(e.base);u=[db(u[0])/d,db(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=r.getExtent.call(e);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var h=r.getInterval.call(e),g=u[0],p=u[1];if(c&&f)h=(p-g)/o;else if(c)for(p=u[0]+h*o;pu[0]&&isFinite(g)&&isFinite(u[0]);)h=J_(h),g=u[1]-h*o;else{var m=e.getTicks().length-1;m>o&&(h=J_(h));var y=h*o;p=Math.ceil(u[1]/h)*h,g=Kt(p-y),g<0&&u[0]>=0?(g=0,p=Kt(y)):p>0&&u[1]<=0&&(p=0,g=-Kt(y))}var _=(a[0].value-i[0].value)/s,b=(a[o].value-i[o].value)/s;r.setExtent.call(e,g+h*_,p+h*b),r.setInterval.call(e,h),(_||b)&&r.setNiceExtent.call(e,g+h,p-h)}var Ufe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Bx,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=tt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],v=o[d],h=v.model,g=v.scale;kx(g)&&h.get("alignTicks")&&h.get("interval")==null?c.push(v):(Rc(g,h),kx(g)&&(s=v))}c.length&&(s||(s=c.pop(),Rc(s.scale,s.model)),k(c,function(p){LH(p.scale,p.model,s.scale)}))}}a(r.x),a(r.y);var i={};k(r.x,function(o){nE(r,"y",o,i)}),k(r.y,function(o){nE(r,"x",o,i)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=t.getBoxLayoutParams(),i=!r&&t.get("containLabel"),o=gn(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=iue(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),Yfe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Re(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qp(a-Xo)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),aE={axisLine:function(e,t,n,r){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(zn(s,s,o),zn(l,l,o));var c=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new kn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});kc(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var v=t.get(["axisLine","symbolSize"]);we(d)&&(d=[d,d]),(we(v)||ut(v))&&(v=[v,v]);var h=_u(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];k([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=sn(d[y],-g/2,-p/2,g,p,c.stroke,!0),b=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=Kfe(n,r,t,e),i=Jfe(n,r,t,e);if(jfe(t,i,a),qfe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=K3(fe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Q3(o)}},axisName:function(e,t,n,r){var a=Mn(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,oE(i)?e.labelOffset+o*l:0],d,v=t.get("nameRotate");v!=null&&(v=v*Xo/180);var h;oE(i)?d=Hl.innerTextLayout(e.rotation,v??e.rotation,o):(d=Zfe(e.rotation,i,v||0,u),h=e.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(d.rotation)),!isFinite(h)&&(h=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=Mn(e.nameTruncateMaxWidth,p.maxWidth,h),_=new lt({x:f[0],y:f[1],rotation:d.rotation,silent:Hl.isLabelSilent(t),style:kt(s,{text:a,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(rf({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var b=Hl.makeAxisEventDataBase(t);b.targetType="axisName",b.name=a,$e(_).eventData=b}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Zfe(e,t,n,r){var a=M5(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return qp(a-Xo/2)?(o=l?"bottom":"top",i="center"):qp(a-Xo*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aXo/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function jfe(e,t,n){if(!B3(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(jr(i),jr(u)):iE(i,o)&&(r?(jr(o),jr(c)):(jr(i),jr(u))),a===!1?(jr(s),jr(f)):iE(l,s)&&(a?(jr(l),jr(d)):(jr(s),jr(f)))}}function jr(e){e&&(e.ignore=!0)}function iE(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=zy([]);return mu(a,a,-e.rotation),n.applyTransform(Wi([],a,e.getLocalTransform())),r.applyTransform(Wi([],a,t.getLocalTransform())),n.intersect(r)}}function oE(e){return e==="middle"||e==="center"}function EH(e,t,n,r,a){for(var i=[],o=[],s=[],l=0;l=0||e===t}function ade(e){var t=eA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=Fx(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var g=l;h.color!=null&&(g=Ee({color:h.color},l));var p=Ye(Ve(h),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(we(c)){var m=p.name;p.name=c.replace("{value}",m??"")}else Le(c)&&(p.name=c(p.name,p));var y=new Lt(p,null,this.ecModel);return fn(y,dh.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ye({lineStyle:{color:"#bbb"}},Ff.axisLine),axisLabel:Ag(Ff.axisLabel,!1),axisTick:Ag(Ff.axisTick,!1),splitLine:Ag(Ff.splitLine,!0),splitArea:Ag(Ff.splitArea,!0),indicator:[]},t}(ot);const bde=_de;var Sde=["axisLine","axisTickLabel","axisName"],xde=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=fe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new no(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});k(i,function(o){k(Sde,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),v=u.get("color"),h=ue(d)?d:[d],g=ue(v)?v:[v],p=[],m=[];function y(R,O,W){var V=W%O.length;return R[V]=R[V]||[],V}if(i==="circle")for(var _=a[0].getTicksCoords(),b=r.cx,x=r.cy,S=0;S<_.length;S++){if(c){var w=y(p,h,S);p[w].push(new Ai({shape:{cx:b,cy:x,r:_[S].coord}}))}if(f&&S<_.length-1){var w=y(m,g,S);m[w].push(new Zy({shape:{cx:b,cy:x,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var C,T=fe(a,function(R,O){var W=R.getTicksCoords();return C=C==null?W.length-1:Math.min(W.length-1,C),fe(W,function(V){return r.coordToPoint(V.coord,O)})}),A=[],S=0;S<=C;S++){for(var P=[],D=0;D3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;gb(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);gb(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!dE(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;gb(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(Ca);function gb(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(qi(r.event),zH(e,t,n,r,a))}function zH(e,t,n,r,a){a.isAvailableBehavior=Ce(dp,null,n,r),e.trigger(t,a)}function dp(e,t,n){var r=n[e];return!e||r&&(!we(r)||t.event[r+"Key"])}const yh=Lde;function nA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function rA(e,t,n,r){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var Ede={axisPointer:1,tooltip:1,brush:1};function g0(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!Ede.hasOwnProperty(r.mainType)&&a&&a.model!==n}function FH(e){if(we(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var pb,bm={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},vE=tt(bm),Sm={"alignment-baseline":"textBaseline","stop-color":"stopColor"},hE=tt(Sm),Rde=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=FH(t);this._defsUsePending=[];var a=new Be;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Er(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;Nde(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=p0(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=GH(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var v=a;a=new Be,a.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new at({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,n,r,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=pb[s];if(c&&Te(pb,s)){l=c.call(this,t,n);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var v=gE[s];if(v&&Te(gE,s)){var h=v.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=h)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,r,u,i,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,n){var r=new dv({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),Vde(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=function(){pb={g:function(t,n){var r=new Be;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new at;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new Ai;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new kn;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new dT;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=yE(r));var i=new Dr({shape:{points:a||[]},silent:!0});return Kr(n,i),Er(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=yE(r));var i=new kr({shape:{points:a||[]},silent:!0});return Kr(n,i),Er(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new Wn;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Be;return Kr(n,s),Er(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Be;return Kr(n,s),Er(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,n){var r=t.getAttribute("d")||"",a=p$(r);return Kr(n,a),Er(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),gE={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new ah(t,n,r,a);return pE(e,i),mE(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),a=new D$(t,n,r);return pE(e,a),mE(e,a),a}};function pE(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function mE(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};$H(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Kr(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ee(t.__inheritedStyle,e.__inheritedStyle))}function yE(e){for(var t=p0(e),n=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=p0(o);switch(a=a||ya(),s){case"translate":xi(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":KC(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":mu(a,a,-parseFloat(l[0])*mb);break;case"skewX":var u=Math.tan(parseFloat(l[0])*mb);Wi(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*mb);Wi(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var bE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function $H(e,t,n){var r=e.getAttribute("style");if(r){bE.lastIndex=0;for(var a;(a=bE.exec(r))!=null;){var i=a[1],o=Te(bm,i)?bm[i]:null;o&&(t[o]=a[2]);var s=Te(Sm,i)?Sm[i]:null;s&&(n[s]=a[2])}}}function $de(e,t,n){for(var r=0;r0,p={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=Pe(),r=Pe(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,h){return h&&(v=h(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var h=[],g=!u&&l&&l.project,p=0;p=0)&&(d=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Hn(t,xn(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},v);var h=t.getTextContent();if(h&&(HH(h).ignore=h.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function TE(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):$e(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function AE(e,t,n,r,a){e.data||rf({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function IE(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return Xt(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&uae(t,a,n),o}function PE(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),k(e,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}($t);const uve=lve;function cve(e,t){var n={};return k(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c1?(b.width=_,b.height=_/p):(b.height=_,b.width=_*p),b.y=y[1]-b.height/2,b.x=y[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=p,b=gn(x,{width:h,height:g})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function gve(e,t){k(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var pve=function(){function e(){this.dimensions=UH}return e.prototype.create=function(t,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new LE(l+s,l,oe({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=EE,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),k(i,function(o,s){var l=fe(o,function(c){return c.get("nameMap")}),u=new LE(s,s,oe({nameMap:UC(l)},a(o[0])));u.zoomLimit=Mn.apply(null,fe(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=EE,u.resize(o[0],n),k(o,function(c){c.coordinateSystem=u,gve(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=Pe(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function Tve(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,a=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){Pve(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Dve(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function Ave(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function VE(e){return arguments.length?e:Lve}function sd(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Ive(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Pve(e){for(var t=e.children,n=t.length,r=0,a=0;--n>=0;){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function Dve(e,t,n,r){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=yb(s),i=_b(i),s&&i;){a=yb(a),o=_b(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(kve(Mve(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!yb(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!_b(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function yb(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function _b(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Mve(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function kve(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Lve(e,t){return e.parentNode===t.parentNode?1:2}var Eve=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Rve=function(e){ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Eve},t.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=be(r.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(v[0],v[1]),n.moveTo(s[0],s[1]),v[c]=s[c],n.lineTo(v[0],v[1]),v[c]=l[c],n.lineTo(v[0],v[1]),n.lineTo(l[0],l[1]);for(var h=1;hy.x,x||(b=b-Math.PI));var w=x?"left":"right",C=s.getModel("label"),T=C.get("rotate"),A=T*(Math.PI/180),P=p.getTextContent();P&&(p.setTextConfig({position:C.get("position")||w,rotation:T==null?-b:A,origin:"center"}),P.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),M=D==="relative"?Hp(o.getAncestorsIndices(),o.getDescendantIndices()):D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():null;M&&($e(n).focus=M),Ove(a,o,c,n,h,v,g,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===rh||Qp(n.__edge,L)}})}function Ove(e,t,n,r,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new jy({shape:Hx(c,f,d,a,a)})),ct(g,{shape:Hx(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,m=[],y=0;yn&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n=0){var r=n.getData().tree.root,a=e.targetNode;if(we(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function JH(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function lA(e,t){var n=JH(e);return je(n,t)>=0}function m0(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Xve=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new Lt(a,this,this.ecModel),o=sA.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,v){var h=o.getNodeByDataIndex(v);return h&&h.children.length&&h.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return wn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=m0(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}($t);const Zve=Xve;function jve(e,t,n){for(var r=[e],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)n.push(a[i])}}function Kve(e,t){e.eachSeriesByType("tree",function(n){qve(n,t)})}function qve(e,t){var n=Ive(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=VE(function(_,b){return(_.parentNode===b.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=VE());var s=e.getData().tree.root,l=s.children[0];if(l){Cve(s),jve(l,Tve,o),s.hierNode.modifier=-l.hierNode.prelim,Gf(l,Ave);var u=l,c=l,f=l;Gf(l,function(_){var b=_.getLayout().x;bc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,v=d-u.getLayout().x,h=0,g=0,p=0,m=0;if(r==="radial")h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),Gf(l,function(_){p=(_.getLayout().x+v)*h,m=(_.depth-1)*g;var b=sd(p,m);_.setLayout({x:b.x,y:b.y,rawX:p,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(g=i/(c.getLayout().x+d+v),h=a/(f.depth-1||1),Gf(l,function(_){m=(_.getLayout().x+v)*g,p=y==="LR"?(_.depth-1)*h:a-(_.depth-1)*h,_.setLayout({x:p,y:m},!0)})):(y==="TB"||y==="BT")&&(h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),Gf(l,function(_){p=(_.getLayout().x+v)*h,m=y==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:p,y:m},!0)}))}}}function Jve(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");oe(s,o)})})}function Qve(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var a=t.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=iA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function ehe(e){e.registerChartView(Nve),e.registerSeriesModel(Zve),e.registerLayout(Kve),e.registerVisual(Jve),Qve(e)}var FE=["treemapZoomToNode","treemapRender","treemapMove"];function the(e){for(var t=0;t1;)i=i.parentNode;var o=mx(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var nhe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};e4(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new Lt({itemStyle:o},this,r);i=n.levels=rhe(i,r);var l=fe(i||[],function(f){return new Lt(f,s,r)},this),u=sA.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,v){var h=u.getNodeByDataIndex(v),g=h?l[h.depth]:null;return d.parentModel=g||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return wn("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=m0(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},oe(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Pe(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){QH(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}($t);function e4(e){var t=0;k(e.children,function(r){e4(r);var a=r.value;ue(a)&&(a=a[0]),t+=a});var n=e.value;ue(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),ue(e.value)?e.value[0]=n:e.value=n}function rhe(e,t){var n=bt(t.get("color")),r=bt(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;k(e,function(s){var l=new Lt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),e}}const ahe=nhe;var ihe=8,$E=8,bb=5,ohe=function(){function e(t){this.group=new Be,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(t,f,s,l,u,c,a),a0(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=hn(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+ihe*2,n.emptyItemWidth);n.totalWidth+=s+$E,n.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=yie(n.pos,n.box),d=n.totalWidth,v=n.renderList,h=a.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var p=v[g],m=p.node,y=p.width,_=p.text;d>f.width&&(d-=y-u,y=u,_=null);var b=new Dr({shape:{points:she(l,0,y,c,g===v.length-1,g===0)},style:Ee(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new lt({style:kt(i,{text:_})}),textConfig:{position:"inside"},z2:tf*1e4,onclick:He(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=kt(o,{text:_}),b.ensureState("emphasis").style=h,Xt(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),lhe(b,t,m),l+=y+$E}},e.prototype.remove=function(){this.group.removeAll()},e}();function she(e,t,n,r,a,i){var o=[[a?e:e-bb,t],[e+n,t],[e+n,t+r],[a?e:e-bb,t+r]];return!i&&o.splice(2,0,[e+n+bb,t+r/2]),!a&&o.push([e,t+r/2]),o}function lhe(e,t,n){$e(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&m0(n,t)}}const uhe=ohe;var che=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aHE||Math.abs(n.dy)>HE)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Xe(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=ya();xi(u,u,[-r,-a]),KC(u,u,[n.scale,n.scale]),xi(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&im(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new uhe(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(lA(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Hf(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Et);function Hf(){return{nodeGroup:[],background:[],content:[]}}function phe(e,t,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,h=c.height,g=c.borderWidth,p=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,b=c.upperHeight,x=_&&_.length,S=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),T=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,P=F("nodeGroup",Wx);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),xm(P).nodeWidth=v,xm(P).nodeHeight=h,c.isAboveViewRoot)return P;var D=F("background",GE,u,vhe);D&&G(P,D,x&&c.upperLabelHeight);var M=d.getModel("emphasis"),L=M.get("focus"),R=M.get("blurScope"),O=M.get("disabled"),W=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(x)hv(P)&&xl(P,!1),D&&(xl(D,!O),f.setItemGraphicEl(o.dataIndex,D),ux(D,W,R));else{var V=F("content",GE,u,hhe);V&&X(P,V),D.disableMorphing=!0,D&&hv(D)&&xl(D,!1),xl(P,!O),f.setItemGraphicEl(o.dataIndex,P),ux(P,W,R)}return P;function G(z,H,j){var Y=$e(H);if(Y.dataIndex=o.dataIndex,Y.seriesIndex=e.seriesIndex,H.setShape({x:0,y:0,width:v,height:h,r:A}),p)Z(H);else{H.invisible=!1;var q=o.getVisual("style"),te=q.stroke,N=YE(S);N.fill=te;var B=ol(w);B.fill=w.get("borderColor");var K=ol(C);K.fill=C.get("borderColor");var ae=ol(T);if(ae.fill=T.get("borderColor"),j){var ie=v-2*g;J(H,te,q.opacity,{x:g,y:0,width:ie,height:b})}else H.removeTextContent();H.setStyle(N),H.ensureState("emphasis").style=B,H.ensureState("blur").style=K,H.ensureState("select").style=ae,ru(H)}z.add(H)}function X(z,H){var j=$e(H);j.dataIndex=o.dataIndex,j.seriesIndex=e.seriesIndex;var Y=Math.max(v-2*g,0),q=Math.max(h-2*g,0);if(H.culling=!0,H.setShape({x:g,y:g,width:Y,height:q,r:A}),p)Z(H);else{H.invisible=!1;var te=o.getVisual("style"),N=te.fill,B=YE(S);B.fill=N,B.decal=te.decal;var K=ol(w),ae=ol(C),ie=ol(T);J(H,N,te.opacity,null),H.setStyle(B),H.ensureState("emphasis").style=K,H.ensureState("blur").style=ae,H.ensureState("select").style=ie,ru(H)}z.add(H)}function Z(z){!z.invisible&&i.push(z)}function J(z,H,j,Y){var q=d.getModel(Y?UE:WE),te=hn(d.get("name"),null),N=q.getShallow("show");Hn(z,xn(d,Y?UE:WE),{defaultText:N?te:null,inheritColor:H,defaultOpacity:j,labelFetcher:e,labelDataIndex:o.dataIndex});var B=z.getTextContent();if(B){var K=B.style,ae=XC(K.padding||0);Y&&(z.setTextConfig({layoutRect:Y}),B.disableLabelLayout=!0),B.beforeUpdate=function(){var ve=Math.max((Y?Y.width:z.shape.width)-ae[1]-ae[3],0),ye=Math.max((Y?Y.height:z.shape.height)-ae[0]-ae[2],0);(K.width!==ve||K.height!==ye)&&B.setStyle({width:ve,height:ye})},K.truncateMinChar=2,K.lineOverflow="truncate",ee(K,Y,c);var ie=B.getState("emphasis");ee(ie?ie.style:null,Y,c)}}function ee(z,H,j){var Y=z?z.text:null;if(!H&&j.isLeafRoot&&Y!=null){var q=e.get("drillDownIcon",!0);z.text=q?q+" "+Y:Y}}function F(z,H,j,Y){var q=y!=null&&n[z][y],te=a[z];return q?(n[z][y]=null,U(te,q)):p||(q=new H,q instanceof _a&&(q.z2=mhe(j,Y)),$(te,q)),t[z][m]=q}function U(z,H){var j=z[m]={};H instanceof Wx?(j.oldX=H.x,j.oldY=H.y):j.oldShape=oe({},H.shape)}function $(z,H){var j=z[m]={},Y=o.parentNode,q=H instanceof Be;if(Y&&(!r||r.direction==="drillDown")){var te=0,N=0,B=a.background[Y.getRawIndex()];!r&&B&&B.oldShape&&(te=B.oldShape.width,N=B.oldShape.height),q?(j.oldX=0,j.oldY=N):j.oldShape={x:te,y:N,width:0,height:0}}j.fadein=!q}}function mhe(e,t){return e*dhe+t}const yhe=ghe;var Pv=k,_he=Re,wm=-1,uA=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=Ve(t);this.type=r,this.mappingMethod=n,this._normalizeData=xhe[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(Sb(a),bhe(a)):n==="category"?a.categories?She(a):Sb(a,!0):(dr(n!=="linear"||a.dataExtent),Sb(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return Ce(this._normalizeData,this)},e.listVisualTypes=function(){return tt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){Re(t)?k(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=ue(t)?[]:Re(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var n={},r;return t&&Pv(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(ue(t))t=t.slice();else if(_he(t)){var n=[];Pv(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,i=1/0,o=0,s=n.length;o=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function Sb(e,t){var n=e.visual,r=[];Re(n)?Pv(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!t&&r.length===1&&!a.hasOwnProperty(e.type)&&(r[1]=r[0]),t4(e,r)}function Pg(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:Ux([0,1])}}function XE(e){var t=this.option.visual;return t[Math.round(gt(e,[0,1],[0,t.length-1],!0))]||{}}function Wf(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function ld(e){var t=this.option.visual;return t[this.option.loop&&e!==wm?e%t.length:e]}function sl(){return this.option.visual[0]}function Ux(e){return{linear:function(t){return gt(t,e,this.option.visual,!0)},category:ld,piecewise:function(t,n){var r=Yx.call(this,n);return r==null&&(r=gt(t,e,this.option.visual,!0)),r},fixed:sl}}function Yx(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=uA.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function t4(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=fe(t,function(n){var r=zr(n);return r||[0,0,0,1]})),t}var xhe={linear:function(e){return gt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=uA.findPieceIndex(e,t,!0);if(n!=null)return gt(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??wm},fixed:rn};function Dg(e,t,n){return e?t<=n:t=n.length||g===n[g.depth]){var m=Phe(a,l,g,p,h,r);r4(g,m,n,r)}})}}}function The(e,t,n){var r=oe({},t),a=n.designatedVisualItemStyle;return k(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function ZE(e){var t=xb(e,"color");if(t){var n=xb(e,"colorAlpha"),r=xb(e,"colorSaturation");return r&&(t=Sd(t,null,null,r)),n&&(t=Yp(t,n)),t}}function Ahe(e,t){return t!=null?Sd(t,null,null,e):null}function xb(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function Ihe(e,t,n,r,a,i){if(!(!i||!i.length)){var o=wb(t,"color")||a.color!=null&&a.color!=="none"&&(wb(t,"colorAlpha")||wb(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Fn(f);return n4(d).drColorMappingBy=c,d}}}function wb(e,t){var n=e.get(t);return ue(n)&&n.length?{name:t,range:n}:null}function Phe(e,t,n,r,a,i){var o=oe({},t);if(a){var s=a.type,l=s==="color"&&n4(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Dv=Math.max,Cm=Math.min,jE=Mn,cA=k,a4=["itemStyle","borderWidth"],Dhe=["itemStyle","gapWidth"],Mhe=["upperLabel","show"],khe=["upperLabel","height"];const Lhe={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=gn(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=be(jE(s.width,l[0]),a),c=be(jE(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],v=Iv(r,d,e),h=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,g=e.getViewRoot(),p=JH(g);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?Bhe(e,v,g,u,c):h?[h.width,h.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),i4(g,_,!1,0),b=g.getLayout(),cA(p,function(S,w){var C=(p[w+1]||g).getValue();S.setLayout(oe({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var x=e.getData().tree.root;x.setLayout(zhe(s,h,v),!0),e.setLayoutInfo(s),o4(x,new Xe(-s.x,-s.y,a,i),p,g,0)}};function i4(e,t,n,r){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(a4),u=s.get(Dhe)/2,c=s4(s),f=Math.max(l,c),d=l-u,v=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Dv(a-2*d,0),i=Dv(i-d-v,0);var h=a*i,g=Ehe(e,s,h,t,n,r);if(g.length){var p={x:d,y:v,width:a,height:i},m=Cm(a,i),y=1/0,_=[];_.area=0;for(var b=0,x=g.length;b=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*ts[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Nhe(e,t,n){for(var r=0,a=1/0,i=0,o=void 0,s=e.length;ir&&(r=o));var l=e.area*e.area,u=t*t*n;return l?Dv(u*r/l,l/(u*a)):1/0}function KE(e,t,n,r,a){var i=t===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=e.length;fsM&&(u=sM),i=s}ur&&(r=t);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var w=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(b[1],b[0]);f[0].8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*y+c[1],h=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*w+c[0],i.y=c[1]+T,h=b[0]<0?"right":"left",i.originX=-m*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+T,h="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*w+f[0],i.y=f[1]+T,h=b[0]>=0?"right":"left",i.originX=m*w,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||h})}},t}(Be);const hA=age;var ige=function(){function e(t){this.group=new Be,this._LineCtor=t||hA}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=t,i||a.removeAll();var o=n2(t);t.diff(i).add(function(s){n._doAdd(t,s,o)}).update(function(s,l){n._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=n2(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!oge(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function n2(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:xn(t)}}function r2(e){return isNaN(e[0])||isNaN(e[1])}function Pb(e){return e&&!r2(e[0])&&!r2(e[1])}const gA=ige;var Db=[],Mb=[],kb=[],Hu=An,Lb=Vl,a2=Math.abs;function i2(e,t,n){for(var r=e[0],a=e[1],i=e[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){Db[0]=Hu(r[0],a[0],i[0],c),Db[1]=Hu(r[1],a[1],i[1],c);var f=a2(Lb(Db,t)-l);f=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function Eb(e,t){var n=[],r=lv,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Hi(u[0]),Hi(u[1])],u[2]&&u.__original.push(Hi(u[2])));var d=u.__original;if(u[2]!=null){if(lr(a[0],d[0]),lr(a[1],d[2]),lr(a[2],d[1]),c&&c!=="none"){var v=cd(s.node1),h=i2(a,d[0],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],h,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var v=cd(s.node2),h=i2(a,d[1],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],h,n),a[1][1]=n[1],a[2][1]=n[2]}lr(u[0],a[0]),lr(u[1],a[2]),lr(u[2],a[1])}else{if(lr(i[0],d[0]),lr(i[1],d[1]),bl(o,i[1],i[0]),Jc(o,o),c&&c!=="none"){var v=cd(s.node1);V1(i[0],i[0],o,v*t)}if(f&&f!=="none"){var v=cd(s.node2);V1(i[1],i[1],o,-v*t)}lr(u[0],i[0]),lr(u[1],i[1])}})}function o2(e){return e.type==="view"}var sge=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new hh,i=new gA,o=this.group;this._controller=new yh(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(o2(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ct(u,c,n)}Eb(n.getGraph(),ud(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var v=n.forceLayout,h=n.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,h);var g=n.get("layout");f.graph.eachNode(function(_){var b=_.dataIndex,x=_.getGraphicEl(),S=_.getModel();if(x){x.off("drag").off("dragend");var w=S.get("draggable");w&&x.on("drag",function(T){switch(g){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,h),v.setFixed(b),f.setItemLayout(b,[x.x,x.y]);break;case"circular":f.setItemLayout(b,[x.x,x.y]),_.setLayout({fixed:!0},!0),vA(n,"symbolSize",_,[T.offsetX,T.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(b,[x.x,x.y]),dA(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){v&&v.setUnfixed(b)}),x.setDraggable(w,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&($e(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var b=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&($e(b).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var p=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(_){f4(_,p,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!g0(u,a,n)}),!o2(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){nA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){rA(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Eb(n.getGraph(),ud(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=ud(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){Eb(n.getGraph(),ud(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Et);const lge=sge;function Wu(e){return"_EC_"+e}var uge=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[Wu(t)]){var a=new ll(t,n);return a.hostGraph=this,this.nodes.push(a),r[Wu(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[Wu(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(ut(t)&&(t=this.nodes[t]),ut(n)&&(n=this.nodes[n]),t instanceof ll||(t=a[Wu(t)]),n instanceof ll||(n=a[Wu(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new v4(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof ll&&(t=t.id),n instanceof ll&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,a=r.length,i=0;i=0&&t.call(n,r[i],i)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&t.call(n,r[i],i)},e.prototype.breadthFirstTraverse=function(t,n,r,a){if(n instanceof ll||(n=this._nodesMap[Wu(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}fn(ll,h4("hostGraph","data"));fn(v4,h4("hostGraph","edgeData"));const cge=uge;function g4(e,t,n,r,a){for(var i=new cge(r),o=0;o "+d)),u++)}var v=n.get("coordinateSystem"),h;if(v==="cartesian2d"||v==="polar")h=vo(e,n);else{var g=lh.get(v),p=g?g.dimensions||[]:[];je(p,"value")<0&&p.concat(["value"]);var m=ch(e,{coordDimensions:p,encodeDefine:n.getEncode()}).dimensions;h=new fr(m,n),h.initData(e)}var y=new fr(["value"],n);return y.initData(l,s),a&&a(h,y),KH({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var fge=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new mh(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),eu(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){Yhe(this);var s=g4(i,a,this,!0,l);return k(s.edges,function(u){Xhe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var g=o._categoriesModels,p=h.getShallow("category"),m=g[p];return m&&(m.parentModel=h.parentModel,h.parentModel=m),h});var f=Lt.prototype.getModel;function d(h,g){var p=f.call(this,h,g);return p.resolveParentPath=v,p}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=d,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var g=h.slice();return h[0]==="label"?g[0]="edgeLabel":h[1]==="label"&&(g[1]="edgeLabel"),g}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),wn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=OG({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=fe(this.option.categories||[],function(a){return a.value!=null?a:oe({value:0},a)}),r=new fr(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($t);const dge=fge;var vge={type:"graphRoam",event:"graphRoam",update:"none"};function hge(e){e.registerChartView(lge),e.registerSeriesModel(dge),e.registerProcessor($he),e.registerVisual(Ghe),e.registerVisual(Hhe),e.registerLayout(Zhe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Khe),e.registerLayout(Jhe),e.registerCoordinateSystem("graphView",{dimensions:_h.dimensions,create:ege}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rn),e.registerAction(vge,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=iA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var gge=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),pge=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new gge},t.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},t}(Qe);const mge=pge;function yge(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=be(n[0],t.getWidth()),s=be(n[1],t.getHeight()),l=be(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function kg(e,t){var n=e==null?"":e+"";return t&&(we(t)?n=t.replace("{value}",n):Le(t)&&(n=t(e))),n}var _ge=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=yge(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),v=d?_m:Pr,h=f.get("show"),g=f.getModel("lineStyle"),p=g.get("width"),m=[u,c];Y5(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,b=[],x=0;h&&x=T&&(A===0?0:i[A-1][0])Math.PI/2&&(F+=Math.PI)):ee==="tangential"?F=-C-Math.PI/2:ut(ee)&&(F=ee*Math.PI/180),F===0?f.add(new lt({style:kt(_,{text:G,x:Z,y:J,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:X}),silent:!0})):f.add(new lt({style:kt(_,{text:G,x:Z,y:J,verticalAlign:"middle",align:"center"},{inheritColor:X}),silent:!0,originX:Z,originY:J,rotation:F}))}if(y.get("show")&&O!==b){var W=y.get("distance");W=W?W+c:c;for(var U=0;U<=x;U++){L=Math.cos(C),R=Math.sin(C);var $=new kn({shape:{x1:L*(h-W)+d,y1:R*(h-W)+v,x2:L*(h-w-W)+d,y2:R*(h-w-W)+v},silent:!0,style:D});D.stroke==="auto"&&$.setStyle({stroke:i((O+U/x)/b)}),f.add($),C+=A}C-=A}else C+=T}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,v=this._progressEls,h=[],g=n.get(["pointer","show"]),p=n.getModel("progress"),m=p.get("show"),y=n.getData(),_=y.mapDimension("value"),b=+n.get("min"),x=+n.get("max"),S=[b,x],w=[s,l];function C(A,P){var D=y.getItemModel(A),M=D.getModel("pointer"),L=be(M.get("width"),o.r),R=be(M.get("length"),o.r),O=n.get(["pointer","icon"]),W=M.get("offsetCenter"),V=be(W[0],o.r),G=be(W[1],o.r),X=M.get("keepAspect"),Z;return O?Z=sn(O,V-L/2,G-R,L,R,null,X):Z=new mge({shape:{angle:-Math.PI/2,width:L,r:R,x:V,y:G}}),Z.rotation=-(P+Math.PI/2),Z.x=o.cx,Z.y=o.cy,Z}function T(A,P){var D=p.get("roundCap"),M=D?_m:Pr,L=p.get("overlap"),R=L?p.get("width"):c/y.count(),O=L?o.r-R:o.r-(A+1)*R,W=L?o.r:o.r-A*R,V=new M({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:W}});return L&&(V.z2=x-y.get(_,A)%x),V}(m||g)&&(y.diff(d).add(function(A){var P=y.get(_,A);if(g){var D=C(A,s);Nt(D,{rotation:-((isNaN(+P)?w[0]:gt(P,S,w,!0))+Math.PI/2)},n),f.add(D),y.setItemGraphicEl(A,D)}if(m){var M=T(A,s),L=p.get("clip");Nt(M,{shape:{endAngle:gt(P,S,w,L)}},n),f.add(M),ox(n.seriesIndex,y.dataType,A,M),h[A]=M}}).update(function(A,P){var D=y.get(_,A);if(g){var M=d.getItemGraphicEl(P),L=M?M.rotation:s,R=C(A,L);R.rotation=L,ct(R,{rotation:-((isNaN(+D)?w[0]:gt(D,S,w,!0))+Math.PI/2)},n),f.add(R),y.setItemGraphicEl(A,R)}if(m){var O=v[P],W=O?O.shape.endAngle:s,V=T(A,W),G=p.get("clip");ct(V,{shape:{endAngle:gt(D,S,w,G)}},n),f.add(V),ox(n.seriesIndex,y.dataType,A,V),h[A]=V}}).execute(),y.each(function(A){var P=y.getItemModel(A),D=P.getModel("emphasis"),M=D.get("focus"),L=D.get("blurScope"),R=D.get("disabled");if(g){var O=y.getItemGraphicEl(A),W=y.getItemVisual(A,"style"),V=W.fill;if(O instanceof Wn){var G=O.style;O.useStyle(oe({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},W))}else O.useStyle(W),O.type!=="pointer"&&O.setColor(V);O.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(gt(y.get(_,A),S,[0,1],!0))),O.z2EmphasisLift=0,Gn(O,P),Xt(O,M,L,R)}if(m){var X=h[A];X.useStyle(y.getItemVisual(A,"style")),X.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),X.z2EmphasisLift=0,Gn(X,P),Xt(X,M,L,R)}}),this._progressEls=h)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=sn(s,r.cx-o/2+be(l[0],r.r),r.cy-o/2+be(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new Be,v=[],h=[],g=n.isAnimationEnabled(),p=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new lt({silent:!0}),h[m]=new lt({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],h[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),b=new Be,x=i(gt(_,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var w=S.get("offsetCenter"),C=o.cx+be(w[0],o.r),T=o.cy+be(w[1],o.r),A=v[m];A.attr({z2:p?0:2,style:kt(S,{x:C,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:x})}),b.add(A)}var P=y.getModel("detail");if(P.get("show")){var D=P.get("offsetCenter"),M=o.cx+be(D[0],o.r),L=o.cy+be(D[1],o.r),R=be(P.get("width"),o.r),O=be(P.get("height"),o.r),W=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:x,A=h[m],V=P.get("formatter");A.attr({z2:p?0:2,style:kt(P,{x:M,y:L,text:kg(_,V),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:W})}),B$(A,{normal:P},_,function(X){return kg(X,V)}),g&&z$(A,m,l,n,{getFormattedLabel:function(X,Z,J,ee,F,U){return kg(U?U.interpolatedValue:_,V)}}),b.add(A)}d.add(b)}),this.group.add(d),this._titleEls=v,this._detailEls=h},t.type="gauge",t}(Et);const bge=_ge;var Sge=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return hf(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}($t);const xge=Sge;function wge(e){e.registerChartView(bge),e.registerSeriesModel(xge)}var Cge=["itemStyle","opacity"],Tge=function(e){ne(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new kr,s=new lt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Cge);c=c??1,a||Ua(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Nt(i,{style:{opacity:c}},o,r)):ct(i,{style:{opacity:c},shape:{points:l.points}},o,r),Gn(i,s),this._updateLabel(n,r),Xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Hn(o,xn(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var v=c.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new We(v[0][0],v[0][1]):null},ct(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),XT(a,ZT(l),{stroke:d})},t}(Dr),Age=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Tge(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);gv(u,n,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Et);const Ige=Age;var Pge=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mh(Ce(this.getData,this),Ce(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return hf(this,{coordDimensions:["value"],encodeDefaulter:He(wT,this)})},t.prototype._defaultLabelLine=function(n){eu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($t);const Dge=Pge;function Mge(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function kge(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();oKge)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Vb(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Vb(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const Qge=qge;var epe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Ye(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=yt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);k(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(ot);const tpe=epe;var npe=function(e){ne(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ja);const rpe=npe;function wu(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=Uu(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=Uu(s,[0,o]),a=i=Uu(s,[a,i]),r=0}t[0]=Uu(t[0],n),t[1]=Uu(t[1],n);var l=Ob(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=Uu(t[r],c);var f;return f=Ob(t,r),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-r]=t[r]+f.sign*i),t}function Ob(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Uu(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Nb=k,m4=Math.min,y4=Math.max,u2=Math.floor,ape=Math.ceil,c2=Kt,ipe=Math.PI,ope=function(){function e(t,n,r){this.type="parallel",this._axesMap=Pe(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,i=t.parallelAxisIndex;Nb(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new rpe(o,d0(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=t[1-i],s=t[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var a=r.getData();Nb(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Rc(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=gn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=Lg(t.get("axisExpandWidth"),l),f=Lg(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),h;if(v)h=Lg(v[1]-v[0],l),v[1]=v[0]+h;else{h=Lg(c*(f-1),l);var g=t.get("axisExpandCenter")||u2(u/2);v=[c*g-h/2],v[1]=v[0]+h}var p=(s-h)/(u-f);p<3&&(p=0);var m=[u2(c2(v[0]/c,1))+1,ape(c2(v[1]/c,1))-1],y=p/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Nb(r,function(o,s){var l=(a.axisExpandable?lpe:spe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:ipe/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],v=ya();mu(v,v,d),xi(v,v,f),this._axesLayout[o]={position:f,rotation:d,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];k(o,function(p){s.push(t.mapDimension(p)),l.push(i.get(p).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?wu(l,a,o,"all"):u="none";else{var v=a[1]-a[0],h=o[1]*s/v;a=[y4(0,h-v/2)],a[1]=m4(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},e}();function Lg(e,t){return m4(y4(e,t[0]),t[1])}function spe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function lpe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e=0;a--)da(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;igpe}function T4(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function A4(e,t,n,r){var a=new Be;return a.add(new at({name:"main",style:_A(n),silent:!0,draggable:!0,cursor:"move",drift:He(h2,e,t,a,["n","s","w","e"]),ondragend:He(ou,t,{isEnd:!0})})),k(r,function(i){a.add(new at({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:He(h2,e,t,a,i),ondragend:He(ou,t,{isEnd:!0})}))}),a}function I4(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=Nc(a,ppe),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,v=f-i+a/2,h=c-o,g=f-s,p=h+a,m=g+a;Ri(e,t,"main",o,s,h,g),r.transformable&&(Ri(e,t,"w",l,u,i,m),Ri(e,t,"e",d,u,i,m),Ri(e,t,"n",l,u,p,i),Ri(e,t,"s",l,v,p,i),Ri(e,t,"nw",l,u,i,i),Ri(e,t,"ne",d,u,i,i),Ri(e,t,"sw",l,v,i,i),Ri(e,t,"se",d,v,i,i))}function qx(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(_A(n)),a.attr({silent:!r,cursor:r?"move":"default"}),k([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Jx(e,i[0]):wpe(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?ype[s]+"-resize":null})})}function Ri(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(Tpe(bA(e,t,[[r,a],[r+i,a+o]])))}function _A(e){return Ee({strokeNoScale:!0},e.brushStyle)}function P4(e,t,n,r){var a=[kv(e,n),kv(t,r)],i=[Nc(e,n),Nc(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function xpe(e){return Fl(e.group)}function Jx(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=qy(n[t],xpe(e));return r[a]}function wpe(e,t){var n=[Jx(e,t[0]),Jx(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function h2(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=D4(t,a,i);k(r,function(u){var c=mpe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(P4(s[0][0],s[1][0],s[0][1],s[1][1])),pA(t,n),ou(t,{isEnd:!1})}function Cpe(e,t,n,r){var a=t.__brushOption.range,i=D4(e,n,r);k(a,function(o){o[0]+=i[0],o[1]+=i[1]}),pA(e,t),ou(e,{isEnd:!1})}function D4(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function bA(e,t,n){var r=C4(e,t);return r&&r!==iu?r.clipPath(n,e._transform):Ve(n)}function Tpe(e){var t=kv(e[0][0],e[1][0]),n=kv(e[0][1],e[1][1]),r=Nc(e[0][0],e[1][0]),a=Nc(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function Ape(e,t,n){if(!(!e._brushType||Ppe(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=yA(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var _0={lineX:m2(0),lineY:m2(1),rect:{createCover:function(e,t){function n(r){return r}return A4({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=T4(e);return P4(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){I4(e,t,n,r)},updateCommon:qx,contain:ew},polygon:{createCover:function(e,t){var n=new Be;return n.add(new kr({name:"main",style:_A(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Dr({name:"main",draggable:!0,drift:He(Cpe,e,t),ondragend:He(ou,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:bA(e,t,n)})},updateCommon:qx,contain:ew}};function m2(e){return{createCover:function(t,n){return A4({toRectRange:function(r){var a=[r,[0,100]];return e&&a.reverse(),a},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=T4(t),r=kv(n[0][e],n[1][e]),a=Nc(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=C4(t,n);if(o!==iu&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),I4(t,n,l,a)},updateCommon:qx,contain:ew}}const SA=bpe;function k4(e){return e=xA(e),function(t){return R$(t,e)}}function L4(e,t){return e=xA(e),function(n){var r=t??n,a=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(a||0)]}}function E4(e,t,n){var r=xA(e);return function(a,i){return r.contain(i[0],i[1])&&!g0(a,t,n)}}function xA(e){return Xe.create(e)}var Dpe=["axisLine","axisTickLabel","axisName"],Mpe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new SA(r.getZr())).on("brush",Ce(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!kpe(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Be,this.group.add(this._axisGroup),!!n.get("show")){var s=Epe(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),v=oe({strokeContainThreshold:c},d),h=new no(n,v);k(Dpe,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(v,u,n,s,c,a),ih(o,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Xe.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:k4(f),isTargetByCursor:E4(f,s,i),getLinearBrushOtherExtent:L4(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Lpe(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=fe(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Zt);function kpe(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Lpe(e){var t=e.axis;return fe(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function Epe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const Rpe=Mpe;var Vpe={type:"axisAreaSelect",event:"axisAreaSelected"};function Ope(e){e.registerAction(Vpe,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var Npe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function R4(e){e.registerComponentView(Qge),e.registerComponentModel(tpe),e.registerCoordinateSystem("parallel",dpe),e.registerPreprocessor(Xge),e.registerComponentModel(f2),e.registerComponentView(Rpe),Oc(e,"parallel",f2,Npe),Ope(e)}function Bpe(e){Ke(R4),e.registerChartView(zge),e.registerSeriesModel(Hge),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Yge)}var zpe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Fpe=function(e){ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new zpe},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){Qi(this)},t.prototype.downplay=function(){eo(this)},t}(Qe),$pe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),v=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(h){var g=new Fpe,p=$e(g);p.dataIndex=h.dataIndex,p.seriesIndex=n.seriesIndex,p.dataType="edge";var m=h.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),b=h.node1.getLayout(),x=h.node1.getModel(),S=x.get("localX"),w=x.get("localY"),C=h.node2.getLayout(),T=h.node2.getModel(),A=T.get("localX"),P=T.get("localY"),D=h.getLayout(),M,L,R,O,W,V,G,X;g.shape.extent=Math.max(1,D.dy),g.shape.orient=v,v==="vertical"?(M=(S!=null?S*u:b.x)+D.sy,L=(w!=null?w*c:b.y)+b.dy,R=(A!=null?A*u:C.x)+D.ty,O=P!=null?P*c:C.y,W=M,V=L*(1-_)+O*_,G=R,X=L*_+O*(1-_)):(M=(S!=null?S*u:b.x)+b.dx,L=(w!=null?w*c:b.y)+D.sy,R=A!=null?A*u:C.x,O=(P!=null?P*c:C.y)+D.ty,W=M*(1-_)+R*_,V=L,G=M*_+R*(1-_),X=O),g.setShape({x1:M,y1:L,x2:R,y2:O,cpx1:W,cpy1:V,cpx2:G,cpy2:X}),g.useStyle(y.getItemStyle()),y2(g.style,v,h);var Z=""+m.get("value"),J=xn(m,"edgeLabel");Hn(g,J,{labelFetcher:{getFormattedLabel:function(U,$,z,H,j,Y){return n.getFormattedLabel(U,$,"edge",H,gi(j,J.normal&&J.normal.get("formatter"),Z),Y)}},labelDataIndex:h.dataIndex,defaultText:Z}),g.setTextConfig({position:"inside"});var ee=m.getModel("emphasis");Gn(g,m,"lineStyle",function(U){var $=U.getItemStyle();return y2($,v,h),$}),s.add(g),d.setItemGraphicEl(h.dataIndex,g);var F=ee.get("focus");Xt(g,F==="adjacency"?h.getAdjacentDataIndices():F==="trajectory"?h.getTrajectoryDataIndices():F,ee.get("blurScope"),ee.get("disabled"))}),o.eachNode(function(h){var g=h.getLayout(),p=h.getModel(),m=p.get("localX"),y=p.get("localY"),_=p.getModel("emphasis"),b=new at({shape:{x:m!=null?m*u:g.x,y:y!=null?y*c:g.y,width:g.dx,height:g.dy},style:p.getModel("itemStyle").getItemStyle(),z2:10});Hn(b,xn(p),{labelFetcher:{getFormattedLabel:function(S,w){return n.getFormattedLabel(S,w,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),b.disableLabelAnimation=!0,b.setStyle("fill",h.getVisual("color")),b.setStyle("decal",h.getVisual("style").decal),Gn(b,p),s.add(b),f.setItemGraphicEl(h.dataIndex,b),$e(b).dataType="node";var x=_.get("focus");Xt(b,x==="adjacency"?h.getAdjacentDataIndices():x==="trajectory"?h.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(h,g){var p=f.getItemModel(g);p.get("draggable")&&(h.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){i._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(Gpe(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Et);function y2(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");we(r)&&we(a)&&(e.fill=new ah(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function Gpe(e,t,n){var r=new at({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Nt(r,{shape:{width:e.width+20}},t,n),r}const Hpe=$pe;var Wpe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Lt(o[l],this,r));if(i&&a){var u=g4(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getData().getItemLayout(h);if(p){var m=p.depth,y=g.levelModels[m];y&&(v.parentModel=y)}return v}),d.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getGraph().getEdgeByIndex(h),m=p.node1.getLayout();if(m){var y=m.depth,_=g.levelModels[y];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return wn("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return wn("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}($t);const Upe=Wpe;function Ype(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=Xpe(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;jpe(u);var f=yt(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),v=n.get("orient"),h=n.get("nodeAlign");Zpe(u,c,r,a,o,s,d,v,h)})}function Xpe(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Zpe(e,t,n,r,a,i,o,s,l){Kpe(e,t,n,a,i,s,l),eme(e,t,i,a,r,o,s),ume(e,s)}function jpe(e){k(e,function(t){var n=ns(t.outEdges,Tm),r=ns(t.inEdges,Tm),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function Kpe(e,t,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&p.depth>v&&(v=p.depth),g.setLayout({depth:m?p.depth:f},!0),i==="vertical"?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yf-1?v:f-1;o&&o!=="left"&&qpe(e,o,i,w);var C=i==="vertical"?(a-n)/w:(r-n)/w;Qpe(e,C,i)}function V4(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function qpe(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s0;i--)l*=.99,rme(s,l,o),Bb(s,a,n,r,o),lme(s,l,o),Bb(s,a,n,r,o)}function tme(e,t){var n=[],r=t==="vertical"?"y":"x",a=nx(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),k(a.keys,function(i){n.push(a.buckets.get(i))}),n}function nme(e,t,n,r,a,i){var o=1/0;k(e,function(s){var l=s.length,u=0;k(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var h=a==="vertical"?r:n;if(u=c-t-h,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function rme(e,t,n){k(e.slice().reverse(),function(r){k(r,function(a){if(a.outEdges.length){var i=ns(a.outEdges,ame,n)/ns(a.outEdges,Tm);if(isNaN(i)){var o=a.outEdges.length;i=o?ns(a.outEdges,ime,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-gs(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-gs(a,n))*t;a.setLayout({y:l},!0)}}})})}function ame(e,t){return gs(e.node2,t)*e.getValue()}function ime(e,t){return gs(e.node2,t)}function ome(e,t){return gs(e.node1,t)*e.getValue()}function sme(e,t){return gs(e.node1,t)}function gs(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Tm(e){return e.getValue()}function ns(e,t,n){for(var r=0,a=e.length,i=-1;++io&&(o=l)}),k(r,function(s){var l=new Fn({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&k(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function fme(e){e.registerChartView(Hpe),e.registerSeriesModel(Upe),e.registerLayout(Ype),e.registerVisual(cme),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var O4=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],v=[a,i],h=v[c].get("type"),g=v[1-c].get("type"),p=t.data;if(p&&l){var m=[];k(p,function(b,x){var S;ue(b)?(S=b.slice(),b.unshift(x)):ue(b.value)?(S=oe({},b),S.value=S.value.slice(),b.value.unshift(x)):S=b,m.push(S)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:vm(h),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:vm(g),dimsDef:y.slice()}];return hf(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:He(sG,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),N4=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}($t);fn(N4,O4,!0);const dme=N4;var vme=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=_2(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(Ua(f),B4(d,f,i,u)):f=_2(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},t.type="boxplot",t}(Et),hme=function(){function e(){}return e}(),gme=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new hme},t.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();ig){var b=[m,_];r.push(b)}}}return{boxData:n,outliers:r}}var wme={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==tr){var r="";ft(r)}var a=xme(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Cme(e){e.registerSeriesModel(dme),e.registerChartView(mme),e.registerLayout(yme),e.registerTransform(wme)}var Tme=["color","borderColor"],Ame=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){As(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&b2(u,f))return;var d=zb(f,c,!0);Nt(d,{shape:{points:f.ends}},n,c),Fb(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var v=r.getItemLayout(c);if(s&&b2(u,v)){i.remove(d);return}d?(ct(d,{shape:{points:v.ends}},n,c),Ua(d)):d=zb(v),Fb(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),S2(n,this.group);var r=n.get("clip",!0)?h0(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=zb(s);Fb(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){S2(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Et),Ime=function(){function e(){}return e}(),Pme=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Ime},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(Qe);function zb(e,t,n){var r=e.ends;return new Pme({shape:{points:n?Dme(r,e):r},z2:100})}function b2(e,t){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(Tme);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const kme=Ame;var z4=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}($t);fn(z4,O4,!0);const Lme=z4;function Eme(e){!e||!ue(e.series)||k(e.series,function(t){Re(t)&&t.type==="k"&&(t.type="candlestick")})}var Rme=["itemStyle","borderColor"],Vme=["itemStyle","borderColor0"],Ome=["itemStyle","borderColorDoji"],Nme=["itemStyle","color"],Bme=["itemStyle","color0"],zme={seriesType:"candlestick",plan:ff(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?Nme:Bme)}function r(i,o){return o.get(i===0?Ome:i>0?Rme:Vme)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");oe(f,c)}}}}}};const Fme=zme;var $me={seriesType:"candlestick",plan:ff(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Gme(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=fe(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?h:v};function v(g,p){for(var m,y=p.getStore();(m=g.next())!=null;){var _=y.get(s,m),b=y.get(u,m),x=y.get(c,m),S=y.get(f,m),w=y.get(d,m),C=Math.min(b,x),T=Math.max(b,x),A=W(C,_),P=W(T,_),D=W(S,_),M=W(w,_),L=[];V(L,P,0),V(L,A,1),L.push(X(M),X(P),X(D),X(A));var R=p.getItemModel(m),O=!!R.get(["itemStyle","borderColorDoji"]);p.setItemLayout(m,{sign:x2(y,m,b,x,c,O),initBaseline:b>x?P[i]:A[i],ends:L,brushRect:G(S,w,_)})}function W(Z,J){var ee=[];return ee[a]=J,ee[i]=Z,isNaN(J)||isNaN(Z)?[NaN,NaN]:t.dataToPoint(ee)}function V(Z,J,ee){var F=J.slice(),U=J.slice();F[a]=sp(F[a]+r/2,1,!1),U[a]=sp(U[a]-r/2,1,!0),ee?Z.push(F,U):Z.push(U,F)}function G(Z,J,ee){var F=W(Z,ee),U=W(J,ee);return F[a]-=r/2,U[a]-=r/2,{x:F[0],y:F[1],width:r,height:U[1]-F[1]}}function X(Z){return Z[a]=sp(Z[a],1),Z}}function h(g,p){for(var m=vi(g.count*4),y=0,_,b=[],x=[],S,w=p.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(S=g.next())!=null;){var T=w.get(s,S),A=w.get(u,S),P=w.get(c,S),D=w.get(f,S),M=w.get(d,S);if(isNaN(T)||isNaN(D)||isNaN(M)){m[y++]=NaN,y+=3;continue}m[y++]=x2(w,S,A,P,c,C),b[a]=T,b[i]=D,_=t.dataToPoint(b,null,x),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,b[i]=M,_=t.dataToPoint(b,null,x),m[y++]=_?_[1]:NaN}p.setLayout("largePoints",m)}}};function x2(e,t,n,r,a,i){var o;return n>r?o=-1:n0?e.get(a,t-1)<=r?1:-1:1,o}function Gme(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=be(Ue(e.get("barMaxWidth"),a),a),o=be(Ue(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?be(s,a):Math.max(Math.min(a/2,i),o)}const Hme=$me;function Wme(e){e.registerChartView(kme),e.registerSeriesModel(Lme),e.registerPreprocessor(Eme),e.registerVisual(Fme),e.registerLayout(Hme)}function w2(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var Ume=function(e){ne(t,e);function t(n,r){var a=e.call(this)||this,i=new vh(n,r),o=new Be;return a.add(i),a.add(o),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Le(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return $o(n.__p1,n.__cp1)+$o(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=An,c=H1;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var v=n.__t<1?d[0]-f[0]:f[0]-d[0],h=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(h,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(F4);const tye=eye;var nye=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),rye=function(e){ne(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nye},t.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){n.moveTo(a[o++],a[o++]);for(var l=1;l0){var v=(u+f)/2-(c-d)*i,h=(c+d)/2-(f-u)*i;n.quadraticCurveTo(v,h,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var f=i[u++],d=i[u++],v=1;v0){var p=(f+h)/2-(d-g)*o,m=(d+g)/2-(h-f)*o;if(X5(f,d,p,m,h,g,s,n,r))return l}else if(zo(f,d,h,g,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const iye=aye;var oye={seriesType:"lines",plan:ff(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&h0(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=G4.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new iye:new gA(o?i?tye:$4:i?F4:hA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(Et);const lye=sye;var uye=typeof Uint32Array>"u"?Array:Uint32Array,cye=typeof Float64Array>"u"?Array:Float64Array;function C2(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=fe(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),UC([a,n[0],n[1]])}))}var fye=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],C2(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(C2(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Hp(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Hp(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}($t);const dye=fye;function Eg(e){return e instanceof Array||(e=[e,e]),e}var vye={seriesType:"lines",reset:function(e){var t=Eg(e.get("symbol")),n=Eg(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=Eg(s.getShallow("symbol",!0)),u=Eg(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const hye=vye;function gye(e){e.registerChartView(lye),e.registerSeriesModel(dye),e.registerLayout(G4),e.registerVisual(hye)}var pye=256,mye=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=us.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),v=t.length;f.width=n,f.height=r;for(var h=0;h0){var D=o(_)?l:u;_>0&&(_=_*A+C),x[S++]=D[P],x[S++]=D[P+1],x[S++]=D[P+2],x[S++]=D[P+3]*_*256}else S+=4}return d.putImageData(b,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=us.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const yye=mye;function _ye(e,t,n){var r=e[1]-e[0];t=fe(t,function(o){return{interval:[(o.interval[0]-e[0])/r,(o.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&r<=t[1]}}function T2(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Sye=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):T2(o)&&this._renderOnGeo(o,n,i,a)},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(T2(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){As(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Su(s,"cartesian2d"),u,c,f,d;if(l){var v=s.getAxis("x"),h=s.getAxis("y");u=v.getBandWidth()+.5,c=h.getBandWidth()+.5,f=v.scale.getExtent(),d=h.scale.getExtent()}for(var g=this.group,p=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),y=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),b=n.get(["itemStyle","borderRadius"]),x=xn(n),S=n.getModel("emphasis"),w=S.get("focus"),C=S.get("blurScope"),T=S.get("disabled"),A=l?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],P=a;Pf[1]||Rd[1])continue;var O=s.dataToPoint([L,R]);D=new at({shape:{x:O[0]-u/2,y:O[1]-c/2,width:u,height:c},style:M})}else{if(isNaN(p.get(A[1],P)))continue;D=new at({z2:1,shape:s.dataToRect([p.get(A[0],P)]).contentShape,style:M})}if(p.hasItemOption){var W=p.getItemModel(P),V=W.getModel("emphasis");m=V.getModel("itemStyle").getItemStyle(),y=W.getModel(["blur","itemStyle"]).getItemStyle(),_=W.getModel(["select","itemStyle"]).getItemStyle(),b=W.get(["itemStyle","borderRadius"]),w=V.get("focus"),C=V.get("blurScope"),T=V.get("disabled"),x=xn(W)}D.shape.r=b;var G=n.getRawValue(P),X="-";G&&G[2]!=null&&(X=G[2]+""),Hn(D,x,{labelFetcher:n,labelDataIndex:P,defaultOpacity:M.opacity,defaultText:X}),D.ensureState("emphasis").style=m,D.ensureState("blur").style=y,D.ensureState("select").style=_,Xt(D,w,C,T),D.incremental=o,o&&(D.states.emphasis.hoverLayer=!0),g.add(D),p.setItemGraphicEl(P,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new yye;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),v=Math.max(c.y,0),h=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),p=h-d,m=g-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(w,C,T){var A=n.dataToPoint([w,C]);return A[0]-=d,A[1]-=v,A.push(T),A}),b=a.getExtent(),x=a.type==="visualMap.continuous"?bye(b,a.option.range):_ye(b,a.getPieceList(),a.option.selected);u.update(_,p,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new Wn({style:{width:p,height:m,x:d,y:v,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(Et);const xye=Sye;var wye=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return vo(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=lh.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}($t);const Cye=wye;function Tye(e){e.registerChartView(xye),e.registerSeriesModel(Cye)}var Aye=["itemStyle","borderWidth"],A2=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Hb=new Ai,Iye=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:A2[+c],categoryDim:A2[1-+c]};return o.diff(s).add(function(v){if(o.hasValue(v)){var h=P2(o,v),g=I2(o,v,h,d),p=D2(o,d,g);o.setItemGraphicEl(v,p),i.add(p),k2(p,d,g)}}).update(function(v,h){var g=s.getItemGraphicEl(h);if(!o.hasValue(v)){i.remove(g);return}var p=P2(o,v),m=I2(o,v,p,d),y=Z4(o,m);g&&y!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(v,null),g=null),g?Rye(g,d,m):g=D2(o,d,m,!0),o.setItemGraphicEl(v,g),g.__pictorialSymbolMeta=m,i.add(g),k2(g,d,m)}).remove(function(v){var h=s.getItemGraphicEl(v);h&&M2(s,v,h.__pictorialSymbolMeta.animationModel,h)}).execute(),this._data=o,this.group},t.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){M2(i,$e(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(Et);function I2(e,t,n,r){var a=e.getItemLayout(t),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Pye(n,i,a,r,d),Dye(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),Mye(n,d.symbolScale,u,r,d);var v=d.symbolSize,h=_u(n.get("symbolOffset"),v);return kye(n,v,a,i,o,h,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function Pye(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(ue(o)){var f=[Wb(s,o[0])-l,Wb(s,o[1])-l];f[1]0?1:-1}function Wb(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Dye(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),v=e.getItemVisual(t,"symbolSize"),h;ue(v)?h=v.slice():v==null?h=["100%","100%"]:h=[v,v],h[f.index]=be(h[f.index],d),h[c.index]=be(h[c.index],r?d:Math.abs(i)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Mye(e,t,n,r,a){var i=e.get(Aye)||0;i&&(Hb.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Hb.updateTransform(),i/=Hb.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function kye(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,v=c.valueDim,h=f.pxSign,g=Math.max(t[v.index]+s,0),p=g;if(r){var m=Math.abs(l),y=Mn(e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=be(y,t[v.index]),x=Math.max(g+b*2,0),S=_?0:b*2,w=L5(r),C=w?r:L2((m+S)/x),T=m-C*g;b=T/2/(_?C:Math.max(C-1,1)),x=g+b*2,S=_?0:b*2,!w&&r!=="fixed"&&(C=u?L2((Math.abs(u)+S)/x):0),p=C*x-S,f.repeatTimes=C,f.symbolMargin=b}var A=h*(p/2),P=f.pathPosition=[];P[d.index]=n[d.wh]/2,P[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var D=f.bundlePosition=[];D[d.index]=n[d.xy],D[v.index]=n[v.xy];var M=f.barRectShape=oe({},n);M[v.wh]=h*Math.max(Math.abs(n[v.wh]),Math.abs(P[v.index]+A)),M[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[v.xy]=0,L[v.wh]=n[v.wh]}function H4(e){var t=e.symbolPatternSize,n=sn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function W4(e,t,n,r){var a=e.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+n.symbolMargin*2;for(wA(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-g),p[l.index]=f*(y-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function U4(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?mc(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=H4(n),a.add(i),mc(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Y4(e,t,n){var r=oe({},t.barRectShape),a=e.__pictorialBarRect;a?mc(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new at({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function X4(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=oe({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)ct(a,{shape:i},s,l);else{i[o.wh]=0,a=new at({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],sh[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function P2(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Lye,n.isAnimationEnabled=Eye,n}function Lye(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Eye(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function D2(e,t,n,r){var a=new Be,i=new Be;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?W4(a,t,n):U4(a,t,n),Y4(a,n,r),X4(a,t,n,r),a.__pictorialShapeStr=Z4(e,n),a.__pictorialSymbolMeta=n,a}function Rye(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;ct(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?W4(e,t,n,!0):U4(e,t,n,!0),Y4(e,n,!0),X4(e,t,n,!0)}function M2(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];wA(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),k(i,function(o){fs(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function Z4(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function wA(e,t,n){k(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function mc(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&sh[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function k2(e,t,n){var r=n.dataIndex,a=n.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");wA(e,function(g){if(g instanceof Wn){var p=g.style;g.useStyle(oe({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},n.style))}else g.useStyle(n.style);var m=g.ensureState("emphasis");m.style=o,d&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=n.z2});var v=t.valueDim.posDesc[+(n.boundingLength>0)],h=e.__pictorialBarRect;Hn(h,xn(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Vc(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:v}),Xt(e,c,f,i.get("disabled"))}function L2(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const Vye=Iye;var Oye=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(ym.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(ym);const Nye=Oye;function Bye(e){e.registerChartView(Vye),e.registerSeriesModel(Nye),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,He(D3,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M3("pictorialBar"))}var zye=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(p){return p.name}var v=new to(this._layersSeries||[],l,d,d),h=[];v.add(Ce(g,this,"add")).update(Ce(g,this,"update")).remove(Ce(g,this,"remove")).execute();function g(p,m,y){var _=o._layers;if(p==="remove"){s.remove(_[m]);return}for(var b=[],x=[],S,w=l[m].indices,C=0;Ci&&(i=s),r.push(s)}for(var u=0;ui&&(i=f)}return{y0:a,max:i}}function Yye(e){e.registerChartView($ye),e.registerSeriesModel(Hye),e.registerLayout(Wye),e.registerProcessor(ph("themeRiver"))}var Xye=2,Zye=4,jye=function(e){ne(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=Xye,o.textConfig={inside:!0},$e(o).seriesIndex=r.seriesIndex;var s=new lt({z2:Zye,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return t.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;$e(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=oe({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var v=r.getVisual("decal");v&&(d.decal=Ec(v,o));var h=Il(l.getModel("itemStyle"),f,!0);oe(f,h),k(vr,function(y){var _=s.ensureState(y),b=l.getModel([y,"itemStyle"]);_.style=b.getItemStyle();var x=Il(b,f);x&&(_.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,Nt(s,{shape:{r:c.r}},a,r.dataIndex)):(ct(s,{shape:f},a),Ua(s)),s.useStyle(d),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=u.get("focus"),m=p==="ancestor"?r.getAncestorsIndices():p==="descendant"?r.getDescendantIndices():p;Xt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),v=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(h!=null&&Math.abs(s)Math.PI/2?"right":"left"):!D||D==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,D="center"):D==="left"?(A=o.r0+P,l>Math.PI/2&&(D="right")):D==="right"&&(A=o.r-P,l>Math.PI/2&&(D="left")),b.style.align=D,b.style.verticalAlign=p(y,"verticalAlign")||"middle",b.x=A*u+o.cx,b.y=A*c+o.cy;var M=p(y,"rotate"),L=0;M==="radial"?(L=Oa(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):ut(M)&&(L=M*Math.PI/180),b.rotation=Oa(L)});function p(m,y){var _=m.get(y);return _??i.get(y)}d.dirtyStyle()},t}(Pr);const R2=jye;var tw="sunburstRootToNode",V2="sunburstHighlight",Kye="sunburstUnhighlight";function qye(e){e.registerAction({type:tw,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=Iv(t,[tw],a);if(o){var s=a.getViewRoot();s&&(t.direction=lA(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:V2,update:"none"},function(t,n,r){t=oe({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Iv(t,[V2],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(oe(t,{type:"highlight"}))}),e.registerAction({type:Kye,update:"updateView"},function(t,n,r){t=oe({},t),r.dispatchAction(oe(t,{type:"downplay"}))})}var Jye=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var v=this._oldChildren||[];h(d,v),m(l,u),this._initEvents(),this._oldChildren=d;function h(y,_){if(y.length===0&&_.length===0)return;new to(_,y,b,b).add(x).update(x).remove(He(x,null)).execute();function b(S){return S.getId()}function x(S,w){var C=S==null?null:y[S],T=w==null?null:_[w];g(C,T)}}function g(y,_){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,n,r,a),s.setItemGraphicEl(y.dataIndex,_.piece)):p(_);else if(y){var b=new R2(y,n,r,a);c.add(b),s.setItemGraphicEl(y.dataIndex,b)}}}function p(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,n,r,a):(o.virtualPiece=new R2(y,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";im(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:tw,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Et);const Qye=Jye;var e0e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};j4(a);var i=this._levelModels=fe(n.levels||[],function(l){return new Lt(l,this,r)},this),o=sA.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=m0(a,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){QH(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}($t);function j4(e){var t=0;k(e.children,function(r){j4(r);var a=r.value;ue(a)&&(a=a[0]),t+=a});var n=e.value;ue(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),ue(e.value)?e.value[0]=n:e.value=n}const t0e=e0e;var O2=Math.PI/180;function n0e(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");ue(i)||(i=[0,i]),ue(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=be(a[0],o),c=be(a[1],s),f=be(i[0],l/2),d=be(i[1],l/2),v=-r.get("startAngle")*O2,h=r.get("minAngle")*O2,g=r.getData().tree.root,p=r.getViewRoot(),m=p.depth,y=r.get("sort");y!=null&&K4(p,y);var _=0;k(p.children,function(O){!isNaN(O.getValue())&&_++});var b=p.getValue(),x=Math.PI/(b||_)*2,S=p.depth>0,w=p.height-(S?-1:1),C=(d-f)/(w||1),T=r.get("clockwise"),A=r.get("stillShowZeroSum"),P=T?1:-1,D=function(O,W){if(O){var V=W;if(O!==g){var G=O.getValue(),X=b===0&&A?x:G*x;X1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&we(s)&&(s=Y1(s,(r.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");oe(u,l)})})}function i0e(e){e.registerChartView(Qye),e.registerSeriesModel(t0e),e.registerLayout(He(n0e,"sunburst")),e.registerProcessor(He(ph,"sunburst")),e.registerVisual(a0e),qye(e)}var N2={color:"fill",borderColor:"stroke"},o0e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Yi=it(),s0e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return vo(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=Yi(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}($t);const l0e=s0e;function u0e(e,t){return t=t||[0,0],fe(["x","y"],function(n,r){var a=this.getAxis(n),i=t[r],o=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function c0e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ce(u0e,e)}}}function f0e(e,t){return t=t||[0,0],fe([0,1],function(n){var r=t[n],a=e[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function d0e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:Ce(f0e,e)}}}function v0e(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function h0e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ce(v0e,e)}}}function g0e(e,t){return t=t||[0,0],fe(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=t[r],s=e[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function p0e(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Ce(g0e,e)}}}function m0e(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return e.dataToPoint(r,a)}}}}function q4(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Te(e,"text")))}function J4(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},Te(r,"text")&&(o.text=r.text),Te(r,"rich")&&(o.rich=r.rich),Te(r,"textFill")&&(o.fill=r.textFill),Te(r,"textStroke")&&(o.stroke=r.textStroke),Te(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Te(r,"fontSize")&&(o.fontSize=r.fontSize),Te(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Te(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Te(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),Te(r,"textPosition")&&(a.position=r.textPosition),Te(r,"textOffset")&&(a.offset=r.textOffset),Te(r,"textRotation")&&(a.rotation=r.textRotation),Te(r,"textDistance")&&(a.distance=r.textDistance)}return B2(o,e),k(o.rich,function(l){B2(l,l)}),{textConfig:a,textContent:i}}function B2(e,t){t&&(t.font=t.textFont||t.font,Te(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Te(t,"textAlign")&&(e.align=t.textAlign),Te(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Te(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Te(t,"textWidth")&&(e.width=t.textWidth),Te(t,"textHeight")&&(e.height=t.textHeight),Te(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Te(t,"textPadding")&&(e.padding=t.textPadding),Te(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Te(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Te(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Te(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Te(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Te(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Te(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function z2(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";F2(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,k(t.rich,function(s){F2(s,s)}),r}function F2(e,t){t&&(Te(t,"fill")&&(e.textFill=t.fill),Te(t,"stroke")&&(e.textStroke=t.fill),Te(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Te(t,"font")&&(e.font=t.font),Te(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Te(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Te(t,"fontSize")&&(e.fontSize=t.fontSize),Te(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Te(t,"align")&&(e.textAlign=t.align),Te(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Te(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Te(t,"width")&&(e.textWidth=t.width),Te(t,"height")&&(e.textHeight=t.height),Te(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Te(t,"padding")&&(e.textPadding=t.padding),Te(t,"borderColor")&&(e.textBorderColor=t.borderColor),Te(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Te(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Te(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Te(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Te(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Te(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Te(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Te(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Te(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Te(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Q4={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$2=tt(Q4);Si(wi,function(e,t){return e[t]=1,e},{});wi.join(", ");var Am=["","style","shape","extra"],Bc=it();function CA(e,t,n,r,a){var i=e+"Animation",o=nf(e,r,a)||{},s=Bc(t).userDuring;return o.duration>0&&(o.during=s?Ce(x0e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),oe(o,n[i]),o}function vp(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=Bc(e),u=t.style;l.userDuring=t.during;var c={},f={};if(C0e(e,t,f),H2("shape",t,f),H2("extra",t,f),!i&&s&&(w0e(e,t,c),G2("shape",e,t,c),G2("extra",e,t,c),T0e(e,t,u,c)),f.style=u,y0e(e,f,o),b0e(e,t),s)if(i){var d={};k(Am,function(h){var g=h?t[h]:t;g&&g.enterFrom&&(h&&(d[h]=d[h]||{}),oe(h?d[h]:d,g.enterFrom))});var v=CA("enter",e,t,n,a);v.duration>0&&e.animateFrom(d,v)}else _0e(e,t,a||0,n,c);eW(e,t),u?e.dirty():e.markRedraw()}function eW(e,t){for(var n=Bc(e).leaveToProps,r=0;r0&&e.animateFrom(a,i)}}function b0e(e,t){Te(t,"silent")&&(e.silent=t.silent),Te(t,"ignore")&&(e.ignore=t.ignore),e instanceof _a&&Te(t,"invisible")&&(e.invisible=t.invisible),e instanceof Qe&&Te(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ni={},S0e={setTransform:function(e,t){return ni.el[e]=t,this},getTransform:function(e){return ni.el[e]},setShape:function(e,t){var n=ni.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=ni.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=ni.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=ni.el.style;if(t)return t[e]},setExtra:function(e,t){var n=ni.el.extra||(ni.el.extra={});return n[e]=t,this},getExtra:function(e){var t=ni.el.extra;if(t)return t[e]}};function x0e(){var e=this,t=e.el;if(t){var n=Bc(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}ni.el=t,r(S0e)}}function G2(e,t,n,r){var a=n[e];if(a){var i=t[e],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[e]={}),Wl(l))oe(o,i);else for(var u=bt(l),c=0;c=0){!o&&(o=r[e]={});for(var v=tt(i),c=0;c=0)){var d=e.getAnimationStyleProps(),v=d?d.style:null;if(v){!i&&(i=r.style={});for(var h=tt(n),u=0;u=0?t.getStore().get(W,R):void 0}var V=t.get(O.name,R),G=O&&O.ordinalMeta;return G?G.categories[V]:V}function S(L,R){R==null&&(R=u);var O=t.getItemVisual(R,"style"),W=O&&O.fill,V=O&&O.opacity,G=y(R,Zo).getItemStyle();W!=null&&(G.fill=W),V!=null&&(G.opacity=V);var X={inheritColor:we(W)?W:"#000"},Z=_(R,Zo),J=kt(Z,null,X,!1,!0);J.text=Z.getShallow("show")?Ue(e.getFormattedLabel(R,Zo),Vc(t,R)):null;var ee=rm(Z,X,!1);return T(L,G),G=z2(G,J,ee),L&&C(G,L),G.legacy=!0,G}function w(L,R){R==null&&(R=u);var O=y(R,Xi).getItemStyle(),W=_(R,Xi),V=kt(W,null,null,!0,!0);V.text=W.getShallow("show")?gi(e.getFormattedLabel(R,Xi),e.getFormattedLabel(R,Zo),Vc(t,R)):null;var G=rm(W,null,!0);return T(L,O),O=z2(O,V,G),L&&C(O,L),O.legacy=!0,O}function C(L,R){for(var O in R)Te(R,O)&&(L[O]=R[O])}function T(L,R){L&&(L.textFill&&(R.textFill=L.textFill),L.textPosition&&(R.textPosition=L.textPosition))}function A(L,R){if(R==null&&(R=u),Te(N2,L)){var O=t.getItemVisual(R,"style");return O?O[N2[L]]:null}if(Te(o0e,L))return t.getItemVisual(R,L)}function P(L){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return Ble(Ee({axis:R},L))}}function D(){return n.getCurrentSeriesIndices()}function M(L){return N$(L,n)}}function O0e(e){var t={};return k(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function Zb(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=DA(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&Xt(s,r.focus,r.blurScope,r.emphasisDisabled),s}function DA(e,t,n,r,a,i){var o=-1,s=t;t&&aW(t,r,a)&&(o=je(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=IA(r),s&&k0e(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),qr.normal.cfg=qr.normal.conOpt=qr.emphasis.cfg=qr.emphasis.conOpt=qr.blur.cfg=qr.blur.conOpt=qr.select.cfg=qr.select.conOpt=null,qr.isLegacy=!1,B0e(u,n,r,a,l,qr),N0e(u,n,r,a,l),PA(e,u,n,r,qr,a,l),Te(r,"info")&&(Yi(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function aW(e,t,n){var r=Yi(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&H0e(i)&&iW(i)!==r.customPathData||a==="image"&&Te(o,"image")&&o.image!==r.customImagePath}function N0e(e,t,n,r,a){var i=n.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&aW(o,i,r)&&(o=null),o||(o=IA(i),e.setClipPath(o)),PA(null,o,t,i,null,r,a)}}function B0e(e,t,n,r,a,i){if(!e.isGroup){U2(n,null,i),U2(n,Xi,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=IA(o),e.setTextContent(c)),PA(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d=c;v--){var h=t.childAt(v);F0e(t,h,a)}}}function F0e(e,t,n){t&&b0(t,Yi(e).option,n)}function $0e(e){new to(e.oldChildren,e.newChildren,Y2,Y2,e).add(X2).update(X2).remove(G0e).execute()}function Y2(e,t){var n=e&&e.name;return n??D0e+t}function X2(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;DA(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function G0e(e){var t=this.context,n=t.oldChildren[e];n&&b0(n,Yi(n).option,t.seriesModel)}function iW(e){return e&&(e.pathData||e.d)}function H0e(e){return e&&(Te(e,"pathData")||Te(e,"d"))}function W0e(e){e.registerChartView(E0e),e.registerSeriesModel(l0e)}var vl=it(),Z2=Ve,jb=Ce,U0e=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Be,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=He(j2,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}q2(s,n,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),a=t.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=eA(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,a,i){},e.prototype.createPointerEl=function(t,n,r,a){var i=n.pointer;if(i){var o=vl(t).pointerEl=new sh[i.type](Z2(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=vl(t).labelEl=new lt(Z2(n.label));t.add(i),K2(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=vl(t).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,a){var i=vl(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),K2(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=oh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){qi(u.event)},onmousedown:jb(this._onHandleDragMove,this,0,0),drift:jb(this._onHandleDragMove,this),ondragend:jb(this._onHandleDragEnd,this)}),r.add(a)),q2(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");ue(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,df(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){j2(this._axisPointerModel,!n&&this._moveAnimation,this._handle,Kb(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(Kb(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(Kb(a)),vl(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),bv(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function j2(e,t,n,r){oW(vl(n).lastProp,r)||(vl(n).lastProp=r,t?ct(n,r,e):(n.stopAnimation(),n.attr(r)))}function oW(e,t){if(Re(e)&&Re(t)){var n=!0;return k(t,function(r,a){n=n&&oW(e[a],r)}),!!n}else return e===t}function K2(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Kb(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function q2(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}const kA=U0e;function LA(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function sW(e,t,n,r,a){var i=n.get("value"),o=lW(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=sf(s.get("padding")||0),u=s.getFont(),c=th(o,u),f=a.position,d=c.width+l[1]+l[3],v=c.height+l[0]+l[2],h=a.align;h==="right"&&(f[0]-=d),h==="center"&&(f[0]-=d/2);var g=a.verticalAlign;g==="bottom"&&(f[1]-=v),g==="middle"&&(f[1]-=v/2),Y0e(f,d,v,r);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:kt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function Y0e(e,t,n,r){var a=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function lW(e,t,n,r,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:UT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),we(o)?i=o.replace("{value}",i):Le(o)&&(i=o(s))}return i}function EA(e,t,n){var r=ya();return mu(r,r,n.rotation),xi(r,r,n.position),Fa([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function uW(e,t,n,r,a,i){var o=no.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),sW(t,r,a,i,{position:EA(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RA(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function cW(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function J2(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var X0e=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=Q2(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=LA(i),v=Z0e[u](s,f,c);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=zx(l.model,a);uW(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=zx(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=EA(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Q2(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,v=[d,d];v[c]=f[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:v,tooltipOption:h[c]}},t}(kA);function Q2(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Z0e={line:function(e,t,n){var r=RA([t,n[0]],[t,n[1]],eR(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:cW([t-r/2,n[0]],[r,a],eR(e))}}};function eR(e){return e.dim==="x"?0:1}const j0e=X0e;var K0e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}},t}(ot);const q0e=K0e;var $i=it(),J0e=k;function fW(e,t,n){if(!st.node){var r=t.getZr();$i(r).records||($i(r).records={}),Q0e(r,t);var a=$i(r).records[e]||($i(r).records[e]={});a.handler=n}}function Q0e(e,t){if($i(e).initialized)return;$i(e).initialized=!0,n("click",He(tR,"click")),n("mousemove",He(tR,"mousemove")),n("globalout",t_e);function n(r,a){e.on(r,function(i){var o=n_e(t);J0e($i(e).records,function(s){s&&a(s,i,o.dispatchAction)}),e_e(o.pendings,t)})}}function e_e(e,t){var n=e.showTip.length,r=e.hideTip.length,a;n?a=e.showTip[n-1]:r&&(a=e.hideTip[r-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function t_e(e,t,n){e.handler("leave",null,n)}function tR(e,t,n,r){t.handler(e,n,r)}function n_e(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function aw(e,t){if(!st.node){var n=t.getZr(),r=($i(n).records||{})[e];r&&($i(n).records[e]=null)}}var r_e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";fW("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){aw("axisPointer",r)},t.prototype.dispose=function(n,r){aw("axisPointer",r)},t.type="axisPointer",t}(Zt);const a_e=r_e;function dW(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=tu(i,e);if(o==null||o<0||ue(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,v=f==="x"||f==="radius"?1:0,h=i.mapDimension(d),g=[];g[v]=i.get(h,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(i.getValues(fe(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),n=[p.x+p.width/2,p.y+p.height/2]}return{point:n,el:s}}var nR=it();function i_e(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||Ce(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){hp(a)&&(a=dW({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=hp(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||hp(a),d={},v={},h={list:[],map:{}},g={showPointer:He(s_e,v),showTooltip:He(l_e,h)};k(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);k(s.coordSysAxesInfo[y],function(b,x){var S=b.axis,w=d_e(u,b);if(!f&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&rR(b,C,g,!1,d)}})});var p={};return k(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&k(_.axesInfo,function(b,x){var S=v[x];if(b!==m&&S){var w=S.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,aR(b),aR(m)))),p[m.key]=w}})}),k(p,function(m,y){rR(c[y],m,g,!0,d)}),u_e(v,c,d),c_e(h,a,e,o),f_e(c,o,n),d}}function rR(e,t,n,r,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=o_e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&oe(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function o_e(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return k(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,e,n);d=v.dataIndices,f=v.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var h=e-f,g=Math.abs(h);g<=o&&((g=0&&s<0)&&(o=g,s=h,a=f,i.length=0),k(d,function(p){i.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function s_e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function l_e(e,t,n,r){var a=n.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Av(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function u_e(e,t,n){var r=n.axesInfo=[];k(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function c_e(e,t,n,r){if(hp(t)||!e.list.length){r({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function f_e(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=nR(r)[a]||{},o=nR(r)[a]={};k(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&k(f.seriesDataIndices,function(d){var v=d.seriesIndex+" | "+d.dataIndex;o[v]=d})});var s=[],l=[];k(i,function(u,c){!o[c]&&l.push(u)}),k(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function d_e(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function aR(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function hp(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function bh(e){xu.registerAxisPointerClass("CartesianAxisPointer",j0e),e.registerComponentModel(q0e),e.registerComponentView(a_e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ue(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Qfe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},i_e)}function v_e(e){Ke(BH),Ke(bh)}var h_e=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var v=LA(i),h=p_e[d](s,l,f,c);h.style=v,n.graphicKey=h.type,n.pointer=h}var g=i.get(["label","margin"]),p=g_e(r,a,i,l,g);sW(n,a,i,o,p)},t}(kA);function g_e(e,t,n,r,a){var i=t.axis,o=i.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=ya();mu(d,d,s),xi(d,d,[r.cx,r.cy]),u=Fa([o,-a],d);var v=t.getModel("axisLabel").get("rotate")||0,h=no.innerTextLayout(s,v*Math.PI/180,-1);c=h.textAlign,f=h.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var p=r.cx,m=r.cy;c=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",f=Math.abs(u[1]-m)/g<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var p_e={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:RA(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:J2(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:J2(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const m_e=h_e;var y_e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ot);const __e=y_e;var VA=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",on).models[0]},t.type="polarAxis",t}(ot);fn(VA,dh);var b_e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(VA),S_e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(VA),OA=function(e){ne(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(ja);OA.prototype.dataToRadius=ja.prototype.dataToCoord;OA.prototype.radiusToData=ja.prototype.coordToData;const x_e=OA;var w_e=it(),NA=function(e){ne(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=th(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var v=Math.max(0,Math.floor(d)),h=w_e(n.model),g=h.lastAutoInterval,p=h.lastTickCount;return g!=null&&p!=null&&Math.abs(g-v)<=1&&Math.abs(p-o)<=1&&g>v?v=g:(h.lastTickCount=o,h.lastAutoInterval=v),v},t}(ja);NA.prototype.dataToAngle=ja.prototype.dataToCoord;NA.prototype.angleToData=ja.prototype.coordToData;const C_e=NA;var vW=["radius","angle"],T_e=function(){function e(t){this.dimensions=vW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new x_e,this._angleAxis=new C_e,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===t&&n.push(r),a.scale.type===t&&n.push(a),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,n,r){var a=iR(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=iR(n);return a===this?this.pointToData(r):null},e}();function iR(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const A_e=T_e;function I_e(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=be(r[0],a),e.cy=be(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:ue(l)||(l=[0,l]);var u=[be(l[0],s),be(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function P_e(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();k(hm(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),k(hm(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Rc(r.scale,r.model),Rc(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function D_e(e){return e.mainType==="angleAxis"}function oR(e,t){if(e.type=t.get("type"),e.scale=d0(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),D_e(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var M_e={dimensions:vW,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new A_e(a+"");i.update=P_e;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");oR(o,l),oR(s,u),I_e(i,r,t),n.push(i),r.coordinateSystem=i,i.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",on).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const k_e=M_e;var L_e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Rg(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function Vg(e){var t=e.getRadiusAxis();return t.inverse?0:1}function sR(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var E_e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=fe(a.getViewLabels(),function(c){c=Ve(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});sR(u),sR(s),k(L_e,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&R_e[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(xu),R_e={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=Vg(n),l=s?0:1,u;i[l]===0?u=new Ai({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Zy({shape:{cx:n.cx,cy:n.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,n,r,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Vg(n)],u=fe(r,function(c){return new kn({shape:Rg(n,[l,l+s],c.coord)})});e.add(sa(u,{style:Ee(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Vg(n)],c=[],f=0;fm?"left":"right",b=Math.abs(p[1]-y)/g<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[h]){var x=s[h];Re(x)&&x.textStyle&&(v=new Lt(x.textStyle,l,l.ecModel))}var S=new lt({silent:no.isLabelSilent(t),style:kt(v,{x:p[0],y:p[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:b})});if(e.add(S),c){var w=no.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,$e(S).eventData=w}},this)},splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",M=w;x&&(r[c][P]||(r[c][P]={p:w,n:w}),M=r[c][P][D]);var L=void 0,R=void 0,O=void 0,W=void 0;if(h.dim==="radius"){var V=h.dataToCoord(A)-w,G=l.dataToCoord(P);Math.abs(V)=W})}}})}function H_e(e){var t={};k(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=gW(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var v=hW(r);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var h=be(r.get("barWidth"),c),g=be(r.get("barMaxWidth"),c),p=r.get("barGap"),m=r.get("barCategoryGap");h&&!d[v].width&&(h=Math.min(f.remainedWidth,h),d[v].width=h,f.remainedWidth-=h),g&&(d[v].maxWidth=g),p!=null&&(f.gap=p),m!=null&&(f.categoryGap=m)});var n={};return k(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=be(r.categoryGap,o),l=be(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),k(i,function(g,p){var m=g.maxWidth;m&&m=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(t,n,r){var a=lR(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=lR(n);return a===this?this.pointToData(r):null},e}();function lR(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function nbe(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new tbe(r,e,t);i.name="single_"+a,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",on).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var rbe={create:nbe,dimensions:mW};const abe=rbe;var uR=["x","y"],ibe=["width","height"],obe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=Jb(l,1-Dm(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=LA(i),v=sbe[f](s,c,u);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=iw(a);uW(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=iw(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=EA(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=Dm(o),u=Jb(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=Jb(s,1-l),d=(f[1]+f[0])/2,v=[d,d];return v[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(kA),sbe={line:function(e,t,n){var r=RA([t,n[0]],[t,n[1]],Dm(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:cW([t-r/2,n[0]],[r,a],Dm(e))}}};function Dm(e){return e.isHorizontal()?0:1}function Jb(e,t){var n=e.getRect();return[n[uR[t]],n[uR[t]]+n[ibe[t]]]}const lbe=obe;var ube=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(Zt);function cbe(e){Ke(bh),xu.registerAxisPointerClass("SingleAxisPointer",lbe),e.registerComponentView(ube),e.registerComponentView(J_e),e.registerComponentModel(qb),Oc(e,"single",qb,qb.defaultOption),e.registerCoordinateSystem("single",abe)}var fbe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=lf(n);e.prototype.init.apply(this,arguments),cR(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),cR(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(ot);function cR(e,t){var n=e.cellSize,r;ue(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=fe([0,1],function(i){return _ie(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});ds(e,t,{type:"box",ignoreSize:a})}const dbe=fbe;var vbe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},t.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new at({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){h(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}h(s.getNextNDay(r.end.time,1).formatedDate);function h(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var p=o._getLinePointsOfOneWeek(n,g,a);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),u&&o._drawSplitline(p,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},t.prototype._drawSplitline=function(n,r,a){var i=new kr({z2:20,shape:{points:n},style:r});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return we(n)&&n?pie(n,r):Le(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,v={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},h=r.start.y;+r.end.y>+r.start.y&&(h=h+"-"+r.end.y);var g=o.get("formatter"),p={start:r.start.y,end:r.end.y,nameMap:h},m=this._formatterLabel(g,p),y=new lt({z2:30,style:kt(o,{text:m})});y.attr(this._yearTextPositionControl(y,v[l],a,l,s)),i.add(y)}},t.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||we(s))&&(s&&(r=hx(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",g=0;g=a.start.time&&r.times.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/Qb)-Math.floor(n[0].time/Qb)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var a=this._getRangeInfo(r);if(t>a.weeks||t===0&&na.lweek)return null;var i=(t-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(a){var i=new e(a);r.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function fR(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const pbe=gbe;function mbe(e){e.registerComponentModel(dbe),e.registerComponentView(hbe),e.registerCoordinateSystem("calendar",pbe)}function ybe(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function dR(e,t){var n;return k(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function _be(e,t,n){var r=oe({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Ye(a,r,!0),ds(a,r,{ignoreSize:!0}),nG(n,a),Og(n,a),Og(n,a,"shape"),Og(n,a,"style"),Og(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var yW=["transition","enterFrom","leaveTo"],bbe=yW.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Og(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?yW:bbe,a=0;a=0;c--){var f=a[c],d=hn(f.id,null),v=d!=null?o.get(d):null;if(v){var h=v.parent,m=na(h),y=h===i?{width:s,height:l}:{width:m.width,height:m.height},_={},b=a0(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!na(v).isNew&&b){for(var x=f.transition,S={},w=0;w=0)?S[C]=T:v[C]=T}ct(v,S,n,0)}else v.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){gp(a,na(a).option,r,n._lastGraphicModel)}),this._elMap=Pe()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Zt);function ow(e){var t=Te(vR,e)?vR[e]:pT(e),n=new t({});return na(n).type=e,n}function hR(e,t,n,r){var a=ow(n);return t.add(a),r.set(e,a),na(a).id=e,na(a).isNew=!0,a}function gp(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){gp(i,t,n,r)}),b0(e,t,r),n.removeKey(na(e).id))}function gR(e,t,n,r){e.isGroup||k([["cursor",_a.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];Te(t,i)?e[i]=Ue(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),k(tt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Le(i)?i:null}}),Te(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Cbe(e){return e=oe({},e),k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(tG),function(t){delete e[t]}),e}function Tbe(e,t,n){var r=$e(e).eventData;!e.silent&&!e.ignore&&!r&&(r=$e(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function Abe(e){e.registerComponentModel(xbe),e.registerComponentView(wbe),e.registerPreprocessor(function(t){var n=t.graphic;ue(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var pR=["x","y","radius","angle","single"],Ibe=["cartesian2d","polar","singleAxis"];function Pbe(e){var t=e.get("coordinateSystem");return je(Ibe,t)>=0}function jo(e){return e+"Axis"}function Dbe(e,t){var n=Pe(),r=[],a=Pe();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,v){var h=n.get(d);h&&h[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function _W(e){var t=e.ecModel,n={infoList:[],infoMap:Pe()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(jo(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var eS=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Mbe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var i=mR(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=mR(n);Ye(this.option,n,!0),Ye(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Pe(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return k(pR,function(a){var i=this.getReferringComponents(jo(a),Kne);if(i.specified){r=!0;var o=new eS;k(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new eS;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",on).models[0];v&&k(u,function(h){f.componentIndex!==h.componentIndex&&v===h.getReferringComponents("grid",on).models[0]&&d.add(h.componentIndex)})}}}i&&k(pR,function(u){if(i){var c=a.findComponents({mainType:jo(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new eS;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(jo(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){k(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(jo(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;k(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!b&&!x)return!0;_&&(p=!0),b&&(h=!0),x&&(g=!0)}return p&&h&&g})}else ec(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var h={};h[v]=o,u.selectRange(h)}});ec(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;ec(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=gt(r[0]+o,r,[0,100],!0):i!=null&&(o=gt(i,[0,100],r,!0)-r[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=D5(r,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},e}();function Nbe(e,t,n){var r=[1/0,-1/0];ec(n,function(o){sue(r,o.getData(),t)});var a=e.getAxisModel(),i=O3(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Bbe=Obe;var zbe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(jo(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bbe(a,i,s,e),n.push(o.__dzAxisProxy))});var r=Pe();return k(n,function(a){k(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Fbe=zbe;function $be(e){e.registerAction("dataZoom",function(t,n){var r=Dbe(n,t);k(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var _R=!1;function zA(e){_R||(_R=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Fbe),$be(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Gbe(e){e.registerComponentModel(Lbe),e.registerComponentView(Vbe),zA(e)}var ia=function(){function e(){}return e}(),bW={};function tc(e,t){bW[e]=t}function SW(e){return bW[e]}var Hbe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;k(this.option.feature,function(r,a){var i=SW(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Ye(r,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.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"}},t}(ot);const Wbe=Hbe;function Ube(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=gn(r,i,a);$l(t.get("orient"),e,t.get("itemGap"),o.width,o.height),a0(e,r,i,a)}function xW(e,t){var n=sf(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new at({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Ybe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];k(u,function(h,g){f.push(g)}),new to(this._featureNames||[],f).add(d).update(d).remove(He(d,null)).execute(),this._featureNames=f;function d(h,g){var p=f[h],m=f[g],y=u[p],_=new Lt(y,n,n.ecModel),b;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!m){if(Xbe(p))b={onclick:_.option.onclick,featureName:p};else{var x=SW(p);if(!x)return;b=new x}c[p]=b}else if(b=c[m],!b)return;b.uid=of("toolbox-feature"),b.model=_,b.ecModel=r,b.api=a;var S=b instanceof ia;if(!p&&m){S&&b.dispose&&b.dispose(r,a);return}if(!_.get("show")||S&&b.unusable){S&&b.remove&&b.remove(r,a);return}v(_,b,p),_.setIconStatus=function(w,C){var T=this.option,A=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=C,A[w]&&(C==="emphasis"?Qi:eo)(A[w])},b instanceof ia&&b.render&&b.render(_,r,a,i)}function v(h,g,p){var m=h.getModel("iconStyle"),y=h.getModel(["emphasis","iconStyle"]),_=g instanceof ia&&g.getIcons?g.getIcons():h.get("icon"),b=h.get("title")||{},x,S;we(_)?(x={},x[p]=_):x=_,we(b)?(S={},S[p]=b):S=b;var w=h.iconPaths={};k(x,function(C,T){var A=oh(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var P=A.ensureState("emphasis");P.style=y.getItemStyle();var D=new lt({style:{text:S[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});A.setTextContent(D),rf({el:A,componentModel:n,itemName:T,formatterParamsExtra:{title:S[T]}}),A.__title=S[T],A.on("mouseover",function(){var M=y.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:y.get("textFill")||M.fill||M.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||L}),D.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){h.get(["iconStatus",T])!=="emphasis"&&a.leaveEmphasis(this),D.hide()}),(h.get(["iconStatus",T])==="emphasis"?Qi:eo)(A),o.add(A),A.on("click",Ce(g.onclick,g,r,a,T)),w[T]=A})}Ube(o,n,a),o.add(xW(o.getBoundingRect(),n)),l||o.eachChild(function(h){var g=h.__title,p=h.ensureState("emphasis"),m=p.textConfig||(p.textConfig={}),y=h.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Le(_)&&g){var b=_.style||(_.style={}),x=th(g,lt.makeFont(b)),S=h.x+o.x,w=h.y+o.y+s,C=!1;w+x.height>a.getHeight()&&(m.position="top",C=!0);var T=C?-5-x.height:s+10;S+x.width/2>a.getWidth()?(m.position=["100%",T],b.align="right"):S-x.width/2<0&&(m.position=[0,T],b.align="left")}})},t.prototype.updateView=function(n,r,a,i){k(this._features,function(o){o instanceof ia&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){k(this._features,function(a){a instanceof ia&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){k(this._features,function(a){a instanceof ia&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(Zt);function Xbe(e){return e.indexOf("my")===0}const Zbe=Ybe;var jbe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=st.browser;if(Le(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),v=d[0].indexOf("base64")>-1,h=o?decodeURIComponent(d[1]):d[1];v&&(h=window.atob(h));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,m=new Uint8Array(p);p--;)m[p]=h.charCodeAt(p);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var b=_.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var S=a.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=i}},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(ia);const Kbe=jbe;var bR="__ec_magicType_stack__",qbe=[["line","bar"],["stack"]],Jbe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return k(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(SR[a]){var s={series:[]},l=function(f){var d=f.subType,v=f.id,h=SR[a](d,v,f,i);h&&(Ee(h,f.option),s.series.push(h));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var m=p.dim,y=m+"Axis",_=f.getReferringComponents(y,on).models[0],b=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=b;x++)s[y][b]=s[y][b]||{};s[y][b].boundaryGap=a==="bar"}}};k(qbe,function(f){je(f,a)>=0&&k(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Ye({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ia),SR={line:function(e,t,n,r){if(e==="bar")return Ye({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Ye({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===bR;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Ye({id:t,stack:a?"":bR},r.get(["option","stack"])||{},!0)}};Mi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const Qbe=Jbe;var S0=new Array(60).join("-"),zc=" ";function eSe(e){var t={},n=[],r=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function tSe(e){var t=[];return k(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(fe(n.series,function(v){return v.name})),l=[a.model.getCategories()];k(n.series,function(v){var h=v.getRawData();l.push(v.getRawData().mapArray(h.mapDimension(o),function(g){return g}))});for(var u=[s.join(zc)],c=0;c"].join(r)}function Ex(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function bL(e,t,n,r){return bn("svg","root",{width:e,height:t,xmlns:nH,"xmlns:xlink":rH,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var SL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},al="transform-origin";function Kue(e,t,n){var r=oe({},e.shape);oe(r,t),e.buildPath(n,r);var a=new tH;return a.reset(y5(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function que(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[al]=n+"px "+r+"px")}var Jue={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function iH(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Que(e,t,n){var r=e.shape.paths,a={},i,o;if(k(r,function(l){var u=Ex(n.zrId);u.animation=!0,d0(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=tt(c),v=d.length;if(v){o=d[v-1];var h=c[o];for(var g in h){var p=h[g];a[g]=a[g]||{d:""},a[g].d+=p.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){t.d=!1;var s=iH(a,n);return i.replace(o,s)}}function xL(e){return we(e)?SL[e]?"cubic-bezier("+SL[e]+")":qC(e)?e:"":""}function d0(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof hT){var s=Que(e,t,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var z=iH(w,n);return z+" "+y[0]+" both"}}for(var p in l){var s=g(l[p]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var Cv=Math.round;function oH(e){return e&&we(e.src)}function sH(e){return e&&Le(e.toDataURL)}function KT(e,t,n,r){Wue(function(a,i){var o=a==="fill"||a==="stroke";o&&m5(i)?uH(t,e,a,r):o&&JC(i)?cH(n,e,a,r):e[a]=i},t,n,!1),oce(n,e,r)}function wL(e){return Yo(e[0]-1)&&Yo(e[1])&&Yo(e[2])&&Yo(e[3]-1)}function ece(e){return Yo(e[4])&&Yo(e[5])}function qT(e,t,n){if(t&&!(ece(t)&&wL(t))){var r=n?10:1e4;e.transform=wL(t)?"translate("+Cv(t[4]*r)/r+" "+Cv(t[5]*r)/r+")":Jte(t)}}function CL(e,t,n){for(var r=e.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";dr(d,p),dr(v,p)}else if(d==null||v==null){var m=function(A,P){if(A){var D=A.elm,M=d||P.width,L=v||P.height;A.tag==="pattern"&&(u?(L=1,M/=i.width):c&&(M=1,L/=i.height)),A.attrs.width=M,A.attrs.height=L,D&&(D.setAttribute("width",M),D.setAttribute("height",L))}},y=iT(h,null,e,function(A){l||m(S,A),m(f,A)});y&&y.width&&y.height&&(d=d||y.width,v=v||y.height)}f=bn("image","img",{href:h,width:d,height:v}),o.width=d,o.height=v}else a.svgElement&&(f=Ve(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,b;l?_=b=1:u?(b=1,_=o.width/i.width):c?(_=1,b=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var x=_5(a);x&&(o.patternTransform=x);var S=bn("pattern","",o,[f]),w=jT(S),C=r.patternCache,T=C[w];T||(T=r.zrId+"-p"+r.patternIdx++,C[w]=T,o.id=T,S=r.defs[T]=bn("pattern",T,o,[f])),t[n]=zy(T)}}function sce(e,t,n){var r=n.clipPathCache,a=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[e.id]=i,a[i]=bn("clipPath",i,o,[lH(e,n)])}t["clip-path"]=zy(i)}function IL(e){return document.createTextNode(e)}function dl(e,t,n){e.insertBefore(t,n)}function PL(e,t){e.removeChild(t)}function DL(e,t){e.appendChild(t)}function fH(e){return e.parentNode}function dH(e){return e.nextSibling}function ab(e,t){e.textContent=t}var ML=58,lce=120,uce=bn("","");function Rx(e){return e===void 0}function ii(e){return e!==void 0}function cce(e,t,n){for(var r={},a=t;a<=n;++a){var i=e[a].key;i!==void 0&&(r[i]=a)}return r}function od(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Tv(e){var t,n=e.children,r=e.tag;if(ii(r)){var a=e.elm=aH(r);if(JT(uce,e),ue(n))for(t=0;ti?(h=n[l+1]==null?null:n[l+1].elm,vH(e,h,n,a,l)):mm(e,t,r,i))}function Qu(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(JT(e,t),Rx(t.text)?ii(r)&&ii(a)?r!==a&&fce(n,r,a):ii(a)?(ii(e.text)&&ab(n,""),vH(n,null,a,0,a.length-1)):ii(r)?mm(n,r,0,r.length-1):ii(e.text)&&ab(n,""):e.text!==t.text&&(ii(r)&&mm(n,r,0,r.length-1),ab(n,t.text)))}function dce(e,t){if(od(e,t))Qu(e,t);else{var n=e.elm,r=fH(n);Tv(t),r!==null&&(dl(r,t.elm,dH(n)),mm(r,[e],0,0))}return t}var vce=0,hce=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=kL(),this.configLayer=kL(),this.storage=n,this._opts=r=oe({},r),this.root=t,this._id="zr"+vce++,this._oldVNode=bL(r.width,r.height),t&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=aH("svg");JT(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",dce(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return AL(t,Ex(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=Ex(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=gce(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=bn("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=fe(tt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(bn("defs","defs",{},u)),t.animation){var c=jue(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=bn("style","stl",{},[],c);o.push(f)}}return bL(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},jT(this.renderToVNode({animation:Ue(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ue(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[g]===l[g]);g--);for(var p=h-1;p>g;p--)o--,s=i[o-1];for(var m=g+1;m=s)}}for(var f=this.__startIndex;f15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var A=v.dpr,P=0;P0&&t>a[0]){for(l=0;lt);l++);s=r[a[l]]}if(a.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.__painter=this}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,a=0;a0?Sg:0),this._needsManuallyCompositing),c.__builtin__||WC("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&Br&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,k(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Ye(r[t],n,!0):r[t]=n;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.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},t}($t);const Ace=Tce;function Vc(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=Lc(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(t[i])}return r.join(" ")}var Ice=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this)||this;return o.updateData(n,r,a,i),o}return t.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=sn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Pce,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Qi(this.childAt(0))},t.prototype.downplay=function(){eo(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(v):ct(d,v,s,r),Ua(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Nt(d,v,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,v,h,g,p,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,v=i.blurScope,g=i.labelStatesModels,p=i.hoverScale,m=i.cursorStyle,h=i.emphasisDisabled),!i||n.hasItemOption){var y=i&&i.itemModel?i.itemModel:n.getItemModel(r),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),v=_.get("blurScope"),h=_.get("disabled"),g=xn(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var b=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=_u(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(r,"style"),w=S.fill;if(s instanceof Wn){var C=s.style;s.useStyle(oe({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(oe({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=n.getItemVisual(r,"liftZ"),A=this._z2;T!=null?A==null&&(this._z2=s.z2,s.z2+=T):A!=null&&(s.z2=A,this._z2=null);var P=o&&o.useNameLabel;Hn(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:D,inheritColor:w,defaultOpacity:S.opacity});function D(R){return P?n.getName(R):Vc(n,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),Xt(this,d,v,h)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=$e(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&fs(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();fs(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return vf(n.getItemVisual(r,"symbolSize"))},t}(Be);function Pce(e,t){this.parent.drift(e,t)}const vh=Ice;function ob(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function RL(e){return e!=null&&!Re(e)&&(e={isIgnore:e}),e||{}}function VL(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:xn(t),cursorStyle:t.get("cursor")}}var Dce=function(){function e(t){this.group=new Be,this._SymbolCtor=t||vh}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=RL(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=VL(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};i||r.removeAll(),t.diff(i).add(function(f){var d=c(f);if(ob(t,d,f,n)){var v=new o(t,f,l,u);v.setPosition(d),t.setItemGraphicEl(f,v),r.add(v)}}).update(function(f,d){var v=i.getItemGraphicEl(d),h=c(f);if(!ob(t,h,f,n)){r.remove(v);return}var g=t.getItemVisual(f,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)r.remove(v),v=new o(t,f,l,u),v.setPosition(h);else{v.updateData(t,f,l,u);var m={x:h[0],y:h[1]};s?v.attr(m):ct(v,m,a)}r.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=t._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=VL(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=RL(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function pH(e,t,n,r){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=n.get(e.baseDim,r),o[1-i]=a,t.dataToPoint(o)}function kce(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Lce(e,t,n,r,a,i,o,s){for(var l=kce(e,t),u=[],c=[],f=[],d=[],v=[],h=[],g=[],p=gH(a,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||g<0)break;if(Gl(m,y)){if(l){g+=i;continue}break}if(g===n)e[i>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var _=m-u,b=y-c;if(_*_+b*b<.5){g+=i;continue}if(o>0){for(var x=g+i,S=t[x*2],w=t[x*2+1];S===m&&w===y&&p=r||Gl(S,w))v=m,h=y;else{A=S-u,P=w-c;var L=m-u,R=S-m,O=y-c,H=w-y,V=void 0,G=void 0;if(s==="x"){V=Math.abs(L),G=Math.abs(R);var X=A>0?1:-1;v=m-X*V*o,h=y,D=m+X*G*o,M=y}else if(s==="y"){V=Math.abs(O),G=Math.abs(H);var Z=P>0?1:-1;v=m,h=y-Z*V*o,D=m,M=y+Z*G*o}else V=Math.sqrt(L*L+O*O),G=Math.sqrt(R*R+H*H),T=G/(G+V),v=m-A*o*(1-T),h=y-P*o*(1-T),D=m+A*o*T,M=y+P*o*T,D=Io(D,Po(S,m)),M=Io(M,Po(w,y)),D=Po(D,Io(S,m)),M=Po(M,Io(w,y)),A=D-m,P=M-y,v=m-A*V/G,h=y-P*V/G,v=Io(v,Po(u,m)),h=Io(h,Po(c,y)),v=Po(v,Io(u,m)),h=Po(h,Io(c,y)),A=m-v,P=y-h,D=m+A*G/V,M=y+P*G/V}e.bezierCurveTo(f,d,v,h,m,y),f=D,d=M}else e.lineTo(m,y)}u=m,c=y,g+=i}return p}var mH=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ece=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mH},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Gl(a[o*2-2],a[o*2-1]);o--);for(;i=0){var b=u?(h-l)*_+l:(v-s)*_+s;return u?[n,b]:[b,n]}s=v,l=h;break;case o.C:v=i[f++],h=i[f++],g=i[f++],p=i[f++],m=i[f++],y=i[f++];var x=u?Up(s,v,g,m,n,c):Up(l,h,p,y,n,c);if(x>0)for(var S=0;S=0){var b=u?mn(l,h,p,y,w):mn(s,v,g,m,w);return u?[n,b]:[b,n]}}s=m,l=y;break}}},t}(Qe),Rce=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(mH),yH=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Rce},t.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Gl(a[s*2-2],a[s*2-1]);s--);for(;ot){i?n.push(o(i,l,t)):a&&n.push(o(a,l,0),o(a,l,t));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function Nce(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=t.getAxis(a),u=fe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Oce(u,a==="x"?n.getWidth():n.getHeight()),v=d.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var h=10,g=d[0].coord-h,p=d[v-1].coord+h,m=p-g;if(m<.001)return"transparent";k(d,function(_){_.offset=(_.coord-g)/m}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||"transparent"});var y=new ah(0,0,0,0,d,!0);return y[a]=g,y[a+"2"]=p,y}}}function Bce(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&zce(i,t))){var o=t.mapDimension(i.dim),s={};return k(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function zce(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function Fce(e,t){return isNaN(e)||isNaN(t)}function $ce(e){for(var t=e.length/2;t>0&&Fce(e[t*2-2],e[t*2-1]);t--);return t-1}function FL(e,t){return[e[t*2],e[t*2+1]]}function Gce(e,t,n){for(var r=e.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function SH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var X=g.getState("emphasis").style;X.lineWidth=+g.style.lineWidth+1}$e(g).seriesIndex=n.seriesIndex,Xt(g,H,V,G);var Z=zL(n.get("smooth")),q=n.get("smoothMonotone");if(g.setShape({smooth:Z,smoothMonotone:q,connectNulls:C}),p){var Q=l.getCalculationInfo("stackedOnSeries"),ae=0;p.useStyle(Ee(c.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(ae=zL(Q.get("smooth"))),p.setShape({smooth:Z,stackedOnSmooth:ae,smoothMonotone:q,connectNulls:C}),Gn(p,n,"areaStyle"),$e(p).seriesIndex=n.seriesIndex,Xt(p,H,V,G)}var W=function(F){i._changePolyState(F)};l.eachItemGraphicEl(function(F){F&&(F.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=P,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,g),p&&this.packEventData(n,p))},t.prototype.packEventData=function(n,r){$e(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=tu(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,v=n.get("z")||0;u=new vh(o,s),u.x=c,u.y=f,u.setZ(d,v);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=d,h.z=v,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=tu(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;Qp(this._polyline,n),r&&Qp(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Ece({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new yH({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");Le(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Le(f)?f(null):f;n.eachItemGraphicEl(function(v,h){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var b=a,x=r.pointToCoord(p);i?(m=b.startAngle,y=b.endAngle,_=-x[1]/180*Math.PI):(m=b.r0,y=b.r,_=x[0])}else{var S=a;i?(m=S.x,y=S.x+S.width,_=v.x):(m=S.y+S.height,y=S.y,_=v.y)}var w=y===m?0:(_-m)/(y-m);l&&(w=1-w);var C=Le(f)?f(h):c*w+d,T=g.getSymbolPath(),A=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(SH(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new lt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=$ce(l);c>=0&&(Hn(s,xn(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?hH(o,v):Vc(o,f)},enableTextSetter:!0},Hce(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,v=d.get("connectNulls"),h=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=r.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?g:0)*(y?-1:1),S=(m?0:-g)*(y?-1:1),w=m?"x":"y",C=Gce(f,b,w),T=C.range,A=T[1]-T[0],P=void 0;if(A>=1){if(A>1&&!v){var D=FL(f,T[0]);u.attr({x:D[0]+x,y:D[1]+S}),o&&(P=d.getRawValue(T[0]))}else{var D=c.getPointOn(b,w);D&&u.attr({x:D[0]+x,y:D[1]+S});var M=d.getRawValue(T[0]),L=d.getRawValue(T[1]);o&&(P=F5(a,h,M,L,C.t))}i.lastFrameIndex=T[0]}else{var R=n===1||i.lastFrameIndex>0?T[0]:0,D=FL(f,R);o&&(P=d.getRawValue(R)),u.attr({x:D[0]+x,y:D[1]+S})}if(o){var O=af(u);typeof O.setLabelText=="function"&&O.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=Lce(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),v=d.current,h=d.stackedOnCurrent,g=d.next,p=d.stackedOnNext;if(o&&(v=Do(d.current,a,o,l),h=Do(d.stackedOnCurrent,a,o,l),g=Do(d.next,a,o,l),p=Do(d.stackedOnNext,a,o,l)),BL(v,g)>3e3||c&&BL(h,p)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=d.current,u.shape.points=v;var m={shape:{points:g}};d.current!==v&&(m.shape.__points=d.next),u.stopAnimation(),ct(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:h}),c.stopAnimation(),ct(c,{shape:{stackedOnPoints:p}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=d.status,b=0;b<_.length;b++){var x=_[b].cmd;if(x==="="){var S=n.getItemGraphicEl(_[b].idx1);S&&y.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,C=0;Ct&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var h=void 0;we(i)?h=Yce[i]:Le(i)&&(h=i),h&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,h,Xce))}}}}}function Zce(e){e.registerChartView(Uce),e.registerSeriesModel(Ace),e.registerLayout(gh("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xH("line"))}var wH=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return vo(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)k(i.getAxes(),function(d,v){if(d.type==="category"&&r!=null){var h=d.getTicksCoords(),g=o[v],p=r[v]==="x1"||r[v]==="y1";if(p&&(g+=1),h.length<2)return;if(h.length===2){s[v]=d.toGlobalCoord(d.getExtent()[p?1:0]);return}for(var m=void 0,y=void 0,_=1,b=0;bg){y=(x+m)/2;break}b===1&&(_=S-h[0].tickValue)}y==null&&(m?m&&(y=h[h.length-1].coord):y=h[0].coord),s[v]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($t);$t.registerClass(wH);const ym=wH;var jce=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return vo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(ym.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}),t}(ym);const Kce=jce;var qce=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Jce=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new qce},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,v=Math.PI*2,h=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){gv(i,n,$e(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Et),$L={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=lb(t.x,e.x),s=ub(t.x+t.width,a),l=lb(t.y,e.y),u=ub(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var a=ub(t.r,e.r),i=lb(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},GL={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new at({shape:oe({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,i,o,s,l){var u=!a&&l?_m:Pr,c=new u({shape:r,z2:1});c.name="item";var f=CH(a);if(c.calculateTextPosition=Qce(f,{isRoundCap:u===_m}),i){var d=c.shape,v=a?"r":"endAngle",h={};d[v]=a?r.r0:r.startAngle,h[v]=r[v],(s?ct:Nt)(c,{shape:h},i)}return c}};function rfe(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function HL(e,t,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ct:Nt)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?ct:Nt)(n,{shape:u},c,a)}function WL(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ofe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function CH(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function YL(e,t,n,r,a,i,o,s){var l=t.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=Il(r.getModel("itemStyle"),c,!0);oe(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=xn(r);Hn(e,h,{labelFetcher:i,labelDataIndex:n,defaultText:Vc(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var p=r.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,efe(e,p==="outside"?v:p,CH(o),r.get(["label","rotate"]))}B$(g,h,i.getRawValue(n),function(y){return hH(t,y)});var m=r.getModel(["emphasis"]);Xt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Gn(e,r),ofe(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function sfe(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}var lfe=function(){function e(){}return e}(),XL=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new lfe},t.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?n:null},30,!1);function ufe(e,t,n){for(var r=e.baseDimIdx,a=1-r,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function TH(e,t,n){if(Su(n,"cartesian2d")){var r=t,a=n.getArea();return{x:e?r.x:a.x,y:e?a.y:r.y,width:e?r.width:a.width,height:e?a.height:r.height}}else{var a=n.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function cfe(e,t,n){var r=e.type==="polar"?Pr:at;return new r({shape:TH(t,n,e),silent:!0,z2:0})}const ffe=nfe;function dfe(e){e.registerChartView(ffe),e.registerSeriesModel(Kce),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,He(D3,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M3("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xH("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Tg=Math.PI*2,KL=Math.PI/180;function AH(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IH(e,t){var n=AH(e,t),r=e.get("center"),a=e.get("radius");ue(a)||(a=[0,a]);var i=be(n.width,t.getWidth()),o=be(n.height,t.getHeight()),s=Math.min(i,o),l=be(a[0],s/2),u=be(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var v=d.dataToPoint(r);c=v[0]||0,f=v[1]||0}else ue(r)||(r=[r,r]),c=be(r[0],i)+n.x,f=be(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function vfe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=AH(r,n),s=IH(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*KL,v=r.get("minAngle")*KL,h=0;a.each(i,function(A){!isNaN(A)&&h++});var g=a.getSum(i),p=Math.PI/(g||h)*2,m=r.get("clockwise"),y=r.get("roseType"),_=r.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var x=Tg,S=0,w=d,C=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(A,P){var D;if(isNaN(A)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?D=g===0&&_?p:A*p:D=Tg/h,Dn?m:p,x=Math.abs(_.label.y-n);if(x>=b.maxY){var S=_.label.x-t-_.len2*a,w=r+_.len,C=Math.abs(S)e.unconstrainedWidth?null:v:null;r.setStyle("width",h)}var g=r.getBoundingRect();i.width=g.width;var p=(r.style.margin||0)+2.1;i.height=g.height+p,i.y-=(i.height-f)/2}}}function cb(e){return e.position==="center"}function pfe(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*hfe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function v(S){S.ignore=!0}function h(S){if(!S.ignore)return!0;for(var w in S.states)if(S.states[w].ignore===!1)return!0;return!1}t.each(function(S){var w=t.getItemGraphicEl(S),C=w.shape,T=w.getTextContent(),A=w.getTextGuideLine(),P=t.getItemModel(S),D=P.getModel("label"),M=D.get("position")||P.get(["emphasis","label","position"]),L=D.get("distanceToLabelLine"),R=D.get("alignTo"),O=be(D.get("edgeDistance"),u),H=D.get("bleedMargin"),V=P.getModel("labelLine"),G=V.get("length");G=be(G,u);var X=V.get("length2");if(X=be(X,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":q>0?"left":"right"}var K=Math.PI,re=0,ie=D.get("rotate");if(ut(ie))re=ie*(K/180);else if(M==="center")re=0;else if(ie==="radial"||ie===!0){var de=q<0?-Z+K:-Z;re=de}else if(ie==="tangential"&&M!=="outside"&&M!=="outer"){var _e=Math.atan2(q,Q);_e<0&&(_e=K*2+_e);var me=Q>0;me&&(_e=K+_e),re=_e-K}if(i=!!re,T.x=ae,T.y=W,T.rotation=re,T.setStyle({verticalAlign:"middle"}),$){T.setStyle({align:z});var Ie=T.states.select;Ie&&(Ie.x+=T.x,Ie.y+=T.y)}else{var ye=T.getBoundingRect().clone();ye.applyTransform(T.getComputedTransform());var he=(T.style.margin||0)+2.1;ye.y-=he/2,ye.height+=he,n.push({label:T,labelLine:A,position:M,len:G,len2:X,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new We(q,Q),linePoints:F,textAlign:z,labelDistance:L,labelAlignTo:R,edgeDistance:O,bleedMargin:H,rect:ye,unconstrainedWidth:ye.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:$})}}),!i&&e.get("avoidLabelOverlap")&&gfe(n,r,a,l,u,d,c,f);for(var g=0;g0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Et);const _fe=yfe;function hf(e,t,n){t=ue(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=ch(r,t).dimensions,i=new fr(a,e);return i.initData(r,n),i}var bfe=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}();const mh=bfe;var Sfe=it(),xfe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mh(Ce(this.getData,this),Ce(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return hf(this,{coordDimensions:["value"],encodeDefaulter:He(wT,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=Sfe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Rne(o,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){eu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.type="series.pie",t.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"},t}($t);const wfe=xfe;function Cfe(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(ut(o)&&!isNaN(o)&&o<0)})}}}function Tfe(e){e.registerChartView(_fe),e.registerSeriesModel(wfe),YG("pie",e.registerAction),e.registerLayout(He(vfe,"pie")),e.registerProcessor(ph("pie")),e.registerProcessor(Cfe("pie"))}var Afe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return vo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}($t);const Ife=Afe;var DH=4,Pfe=function(){function e(){}return e}(),Dfe=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new Pfe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const kfe=Mfe;var Lfe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=gh("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new kfe:new hh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Et);const Efe=Lfe;var Rfe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(ot);const Vfe=Rfe;var Ox=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",on).models[0]},t.type="cartesian2dAxis",t}(ot);fn(Ox,dh);var MH={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)"]}}},Ofe=Ye({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},MH),QT=Ye({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}}},MH),Nfe=Ye({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},QT),Bfe=Ee({logBase:10},QT);const kH={category:Ofe,value:QT,time:Nfe,log:Bfe};var zfe={value:1,category:1,time:1,log:1};function Oc(e,t,n,r){k(zfe,function(a,i){var o=Ye(Ye({},kH[i],!0),r,!0),s=function(l){ee(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=yv(this),v=d?lf(c):{},h=f.getTheme();Ye(c,h.get(i+"Axis")),Ye(c,this.getDefaultOption()),c.type=JL(c),d&&ds(c,v,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Dx.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",JL)}function JL(e){return e.type||(e.data?"category":"value")}var Ffe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return fe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),yt(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}();const $fe=Ffe;var Nx=["x","y"];function QL(e){return e.type==="interval"||e.type==="time"}var Gfe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Nx,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!QL(n)||!QL(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,v=o[1]-i[0]*f,h=this._transform=[c,0,0,f,d,v];this._invTransform=Qc([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Xe(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return zn(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return zn(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),i=Math.min(r[0],r[1]),o=Math.max(n[0],n[1])-a,s=Math.max(r[0],r[1])-i;return new Xe(a,i,o,s)},t}($fe),Hfe=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(ja);const Wfe=Hfe;function Bx(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,h=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));h[d.onZero]=Math.max(Math.min(g,h[1]),h[0])}i.position=[u==="y"?h[d[l]]:f[0],u==="x"?h[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[s],i.labelOffset=o?h[d[s]]-h[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Mn(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function eE(e){return e.get("coordinateSystem")==="cartesian2d"}function tE(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,on).models[0];t[r]=i}),t}var fb=Math.log;function LH(e,t,n){var r=hs.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=N3(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=fb(e.base);u=[fb(u[0])/d,fb(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=r.getExtent.call(e);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var h=r.getInterval.call(e),g=u[0],p=u[1];if(c&&f)h=(p-g)/o;else if(c)for(p=u[0]+h*o;pu[0]&&isFinite(g)&&isFinite(u[0]);)h=q_(h),g=u[1]-h*o;else{var m=e.getTicks().length-1;m>o&&(h=q_(h));var y=h*o;p=Math.ceil(u[1]/h)*h,g=Kt(p-y),g<0&&u[0]>=0?(g=0,p=Kt(y)):p>0&&u[1]<=0&&(p=0,g=-Kt(y))}var _=(a[0].value-i[0].value)/s,b=(a[o].value-i[o].value)/s;r.setExtent.call(e,g+h*_,p+h*b),r.setInterval.call(e,h),(_||b)&&r.setNiceExtent.call(e,g+h,p-h)}var Ufe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Nx,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=tt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],v=o[d],h=v.model,g=v.scale;Mx(g)&&h.get("alignTicks")&&h.get("interval")==null?c.push(v):(Rc(g,h),Mx(g)&&(s=v))}c.length&&(s||(s=c.pop(),Rc(s.scale,s.model)),k(c,function(p){LH(p.scale,p.model,s.scale)}))}}a(r.x),a(r.y);var i={};k(r.x,function(o){nE(r,"y",o,i)}),k(r.y,function(o){nE(r,"x",o,i)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=t.getBoxLayoutParams(),i=!r&&t.get("containLabel"),o=gn(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=iue(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),Yfe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Re(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qp(a-Xo)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),aE={axisLine:function(e,t,n,r){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(zn(s,s,o),zn(l,l,o));var c=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new kn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});kc(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var v=t.get(["axisLine","symbolSize"]);we(d)&&(d=[d,d]),(we(v)||ut(v))&&(v=[v,v]);var h=_u(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];k([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=sn(d[y],-g/2,-p/2,g,p,c.stroke,!0),b=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=Kfe(n,r,t,e),i=Jfe(n,r,t,e);if(jfe(t,i,a),qfe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=K3(fe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Q3(o)}},axisName:function(e,t,n,r){var a=Mn(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,oE(i)?e.labelOffset+o*l:0],d,v=t.get("nameRotate");v!=null&&(v=v*Xo/180);var h;oE(i)?d=Hl.innerTextLayout(e.rotation,v??e.rotation,o):(d=Zfe(e.rotation,i,v||0,u),h=e.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(d.rotation)),!isFinite(h)&&(h=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=Mn(e.nameTruncateMaxWidth,p.maxWidth,h),_=new lt({x:f[0],y:f[1],rotation:d.rotation,silent:Hl.isLabelSilent(t),style:kt(s,{text:a,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(rf({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var b=Hl.makeAxisEventDataBase(t);b.targetType="axisName",b.name=a,$e(_).eventData=b}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Zfe(e,t,n,r){var a=M5(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return qp(a-Xo/2)?(o=l?"bottom":"top",i="center"):qp(a-Xo*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aXo/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function jfe(e,t,n){if(!B3(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(jr(i),jr(u)):iE(i,o)&&(r?(jr(o),jr(c)):(jr(i),jr(u))),a===!1?(jr(s),jr(f)):iE(l,s)&&(a?(jr(l),jr(d)):(jr(s),jr(f)))}}function jr(e){e&&(e.ignore=!0)}function iE(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=By([]);return mu(a,a,-e.rotation),n.applyTransform(Wi([],a,e.getLocalTransform())),r.applyTransform(Wi([],a,t.getLocalTransform())),n.intersect(r)}}function oE(e){return e==="middle"||e==="center"}function EH(e,t,n,r,a){for(var i=[],o=[],s=[],l=0;l=0||e===t}function ade(e){var t=eA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=zx(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var g=l;h.color!=null&&(g=Ee({color:h.color},l));var p=Ye(Ve(h),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(we(c)){var m=p.name;p.name=c.replace("{value}",m??"")}else Le(c)&&(p.name=c(p.name,p));var y=new Lt(p,null,this.ecModel);return fn(y,dh.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ye({lineStyle:{color:"#bbb"}},Ff.axisLine),axisLabel:Ag(Ff.axisLabel,!1),axisTick:Ag(Ff.axisTick,!1),splitLine:Ag(Ff.splitLine,!0),splitArea:Ag(Ff.splitArea,!0),indicator:[]},t}(ot);const bde=_de;var Sde=["axisLine","axisTickLabel","axisName"],xde=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=fe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new no(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});k(i,function(o){k(Sde,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),v=u.get("color"),h=ue(d)?d:[d],g=ue(v)?v:[v],p=[],m=[];function y(R,O,H){var V=H%O.length;return R[V]=R[V]||[],V}if(i==="circle")for(var _=a[0].getTicksCoords(),b=r.cx,x=r.cy,S=0;S<_.length;S++){if(c){var w=y(p,h,S);p[w].push(new Ai({shape:{cx:b,cy:x,r:_[S].coord}}))}if(f&&S<_.length-1){var w=y(m,g,S);m[w].push(new Xy({shape:{cx:b,cy:x,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var C,T=fe(a,function(R,O){var H=R.getTicksCoords();return C=C==null?H.length-1:Math.min(H.length-1,C),fe(H,function(V){return r.coordToPoint(V.coord,O)})}),A=[],S=0;S<=C;S++){for(var P=[],D=0;D3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;hb(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);hb(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!dE(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;hb(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(Ca);function hb(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(qi(r.event),zH(e,t,n,r,a))}function zH(e,t,n,r,a){a.isAvailableBehavior=Ce(dp,null,n,r),e.trigger(t,a)}function dp(e,t,n){var r=n[e];return!e||r&&(!we(r)||t.event[r+"Key"])}const yh=Lde;function nA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function rA(e,t,n,r){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var Ede={axisPointer:1,tooltip:1,brush:1};function h0(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!Ede.hasOwnProperty(r.mainType)&&a&&a.model!==n}function FH(e){if(we(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var gb,bm={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},vE=tt(bm),Sm={"alignment-baseline":"textBaseline","stop-color":"stopColor"},hE=tt(Sm),Rde=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=FH(t);this._defsUsePending=[];var a=new Be;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Er(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;Nde(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=g0(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=GH(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var v=a;a=new Be,a.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new at({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,n,r,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=gb[s];if(c&&Te(gb,s)){l=c.call(this,t,n);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var v=gE[s];if(v&&Te(gE,s)){var h=v.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=h)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,r,u,i,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,n){var r=new dv({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),Vde(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=function(){gb={g:function(t,n){var r=new Be;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new at;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new Ai;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new kn;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new dT;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=yE(r));var i=new Dr({shape:{points:a||[]},silent:!0});return Kr(n,i),Er(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=yE(r));var i=new kr({shape:{points:a||[]},silent:!0});return Kr(n,i),Er(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new Wn;return Kr(n,r),Er(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Be;return Kr(n,s),Er(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Be;return Kr(n,s),Er(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,n){var r=t.getAttribute("d")||"",a=p$(r);return Kr(n,a),Er(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),gE={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new ah(t,n,r,a);return pE(e,i),mE(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),a=new D$(t,n,r);return pE(e,a),mE(e,a),a}};function pE(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function mE(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};$H(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Kr(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ee(t.__inheritedStyle,e.__inheritedStyle))}function yE(e){for(var t=g0(e),n=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=g0(o);switch(a=a||ya(),s){case"translate":xi(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":KC(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":mu(a,a,-parseFloat(l[0])*pb);break;case"skewX":var u=Math.tan(parseFloat(l[0])*pb);Wi(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*pb);Wi(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var bE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function $H(e,t,n){var r=e.getAttribute("style");if(r){bE.lastIndex=0;for(var a;(a=bE.exec(r))!=null;){var i=a[1],o=Te(bm,i)?bm[i]:null;o&&(t[o]=a[2]);var s=Te(Sm,i)?Sm[i]:null;s&&(n[s]=a[2])}}}function $de(e,t,n){for(var r=0;r0,p={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=De(),r=De(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,h){return h&&(v=h(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var h=[],g=!u&&l&&l.project,p=0;p=0)&&(d=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Hn(t,xn(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},v);var h=t.getTextContent();if(h&&(HH(h).ignore=h.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function TE(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):$e(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function AE(e,t,n,r,a){e.data||rf({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function IE(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return Xt(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&uae(t,a,n),o}function PE(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),k(e,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}($t);const uve=lve;function cve(e,t){var n={};return k(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c1?(b.width=_,b.height=_/p):(b.height=_,b.width=_*p),b.y=y[1]-b.height/2,b.x=y[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=p,b=gn(x,{width:h,height:g})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function gve(e,t){k(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var pve=function(){function e(){this.dimensions=UH}return e.prototype.create=function(t,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new LE(l+s,l,oe({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=EE,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),k(i,function(o,s){var l=fe(o,function(c){return c.get("nameMap")}),u=new LE(s,s,oe({nameMap:UC(l)},a(o[0])));u.zoomLimit=Mn.apply(null,fe(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=EE,u.resize(o[0],n),k(o,function(c){c.coordinateSystem=u,gve(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=De(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function Tve(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,a=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){Pve(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Dve(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function Ave(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function VE(e){return arguments.length?e:Lve}function sd(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Ive(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Pve(e){for(var t=e.children,n=t.length,r=0,a=0;--n>=0;){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function Dve(e,t,n,r){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=mb(s),i=yb(i),s&&i;){a=mb(a),o=yb(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(kve(Mve(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!mb(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!yb(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function mb(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function yb(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Mve(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function kve(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Lve(e,t){return e.parentNode===t.parentNode?1:2}var Eve=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Rve=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Eve},t.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=be(r.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(v[0],v[1]),n.moveTo(s[0],s[1]),v[c]=s[c],n.lineTo(v[0],v[1]),v[c]=l[c],n.lineTo(v[0],v[1]),n.lineTo(l[0],l[1]);for(var h=1;hy.x,x||(b=b-Math.PI));var w=x?"left":"right",C=s.getModel("label"),T=C.get("rotate"),A=T*(Math.PI/180),P=p.getTextContent();P&&(p.setTextConfig({position:C.get("position")||w,rotation:T==null?-b:A,origin:"center"}),P.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),M=D==="relative"?Hp(o.getAncestorsIndices(),o.getDescendantIndices()):D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():null;M&&($e(n).focus=M),Ove(a,o,c,n,h,v,g,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===rh||Qp(n.__edge,L)}})}function Ove(e,t,n,r,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Zy({shape:Gx(c,f,d,a,a)})),ct(g,{shape:Gx(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,m=[],y=0;yn&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n=0){var r=n.getData().tree.root,a=e.targetNode;if(we(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function JH(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function lA(e,t){var n=JH(e);return je(n,t)>=0}function p0(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Xve=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new Lt(a,this,this.ecModel),o=sA.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,v){var h=o.getNodeByDataIndex(v);return h&&h.children.length&&h.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return wn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=p0(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}($t);const Zve=Xve;function jve(e,t,n){for(var r=[e],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)n.push(a[i])}}function Kve(e,t){e.eachSeriesByType("tree",function(n){qve(n,t)})}function qve(e,t){var n=Ive(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=VE(function(_,b){return(_.parentNode===b.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=VE());var s=e.getData().tree.root,l=s.children[0];if(l){Cve(s),jve(l,Tve,o),s.hierNode.modifier=-l.hierNode.prelim,Gf(l,Ave);var u=l,c=l,f=l;Gf(l,function(_){var b=_.getLayout().x;bc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,v=d-u.getLayout().x,h=0,g=0,p=0,m=0;if(r==="radial")h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),Gf(l,function(_){p=(_.getLayout().x+v)*h,m=(_.depth-1)*g;var b=sd(p,m);_.setLayout({x:b.x,y:b.y,rawX:p,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(g=i/(c.getLayout().x+d+v),h=a/(f.depth-1||1),Gf(l,function(_){m=(_.getLayout().x+v)*g,p=y==="LR"?(_.depth-1)*h:a-(_.depth-1)*h,_.setLayout({x:p,y:m},!0)})):(y==="TB"||y==="BT")&&(h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),Gf(l,function(_){p=(_.getLayout().x+v)*h,m=y==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:p,y:m},!0)}))}}}function Jve(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");oe(s,o)})})}function Qve(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var a=t.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=iA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function ehe(e){e.registerChartView(Nve),e.registerSeriesModel(Zve),e.registerLayout(Kve),e.registerVisual(Jve),Qve(e)}var FE=["treemapZoomToNode","treemapRender","treemapMove"];function the(e){for(var t=0;t1;)i=i.parentNode;var o=px(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var nhe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};e4(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new Lt({itemStyle:o},this,r);i=n.levels=rhe(i,r);var l=fe(i||[],function(f){return new Lt(f,s,r)},this),u=sA.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,v){var h=u.getNodeByDataIndex(v),g=h?l[h.depth]:null;return d.parentModel=g||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return wn("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=p0(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},oe(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=De(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){QH(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}($t);function e4(e){var t=0;k(e.children,function(r){e4(r);var a=r.value;ue(a)&&(a=a[0]),t+=a});var n=e.value;ue(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),ue(e.value)?e.value[0]=n:e.value=n}function rhe(e,t){var n=bt(t.get("color")),r=bt(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;k(e,function(s){var l=new Lt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),e}}const ahe=nhe;var ihe=8,$E=8,_b=5,ohe=function(){function e(t){this.group=new Be,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(t,f,s,l,u,c,a),r0(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=hn(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+ihe*2,n.emptyItemWidth);n.totalWidth+=s+$E,n.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=yie(n.pos,n.box),d=n.totalWidth,v=n.renderList,h=a.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var p=v[g],m=p.node,y=p.width,_=p.text;d>f.width&&(d-=y-u,y=u,_=null);var b=new Dr({shape:{points:she(l,0,y,c,g===v.length-1,g===0)},style:Ee(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new lt({style:kt(i,{text:_})}),textConfig:{position:"inside"},z2:tf*1e4,onclick:He(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=kt(o,{text:_}),b.ensureState("emphasis").style=h,Xt(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),lhe(b,t,m),l+=y+$E}},e.prototype.remove=function(){this.group.removeAll()},e}();function she(e,t,n,r,a,i){var o=[[a?e:e-_b,t],[e+n,t],[e+n,t+r],[a?e:e-_b,t+r]];return!i&&o.splice(2,0,[e+n+_b,t+r/2]),!a&&o.push([e,t+r/2]),o}function lhe(e,t,n){$e(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&p0(n,t)}}const uhe=ohe;var che=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aHE||Math.abs(n.dy)>HE)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Xe(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=ya();xi(u,u,[-r,-a]),KC(u,u,[n.scale,n.scale]),xi(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&im(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new uhe(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(lA(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Hf(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Et);function Hf(){return{nodeGroup:[],background:[],content:[]}}function phe(e,t,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,h=c.height,g=c.borderWidth,p=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,b=c.upperHeight,x=_&&_.length,S=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),T=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,P=ae("nodeGroup",Hx);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),xm(P).nodeWidth=v,xm(P).nodeHeight=h,c.isAboveViewRoot)return P;var D=ae("background",GE,u,vhe);D&&G(P,D,x&&c.upperLabelHeight);var M=d.getModel("emphasis"),L=M.get("focus"),R=M.get("blurScope"),O=M.get("disabled"),H=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(x)hv(P)&&xl(P,!1),D&&(xl(D,!O),f.setItemGraphicEl(o.dataIndex,D),lx(D,H,R));else{var V=ae("content",GE,u,hhe);V&&X(P,V),D.disableMorphing=!0,D&&hv(D)&&xl(D,!1),xl(P,!O),f.setItemGraphicEl(o.dataIndex,P),lx(P,H,R)}return P;function G(z,$,U){var Y=$e($);if(Y.dataIndex=o.dataIndex,Y.seriesIndex=e.seriesIndex,$.setShape({x:0,y:0,width:v,height:h,r:A}),p)Z($);else{$.invisible=!1;var j=o.getVisual("style"),te=j.stroke,N=YE(S);N.fill=te;var B=ol(w);B.fill=w.get("borderColor");var K=ol(C);K.fill=C.get("borderColor");var re=ol(T);if(re.fill=T.get("borderColor"),U){var ie=v-2*g;q($,te,j.opacity,{x:g,y:0,width:ie,height:b})}else $.removeTextContent();$.setStyle(N),$.ensureState("emphasis").style=B,$.ensureState("blur").style=K,$.ensureState("select").style=re,ru($)}z.add($)}function X(z,$){var U=$e($);U.dataIndex=o.dataIndex,U.seriesIndex=e.seriesIndex;var Y=Math.max(v-2*g,0),j=Math.max(h-2*g,0);if($.culling=!0,$.setShape({x:g,y:g,width:Y,height:j,r:A}),p)Z($);else{$.invisible=!1;var te=o.getVisual("style"),N=te.fill,B=YE(S);B.fill=N,B.decal=te.decal;var K=ol(w),re=ol(C),ie=ol(T);q($,N,te.opacity,null),$.setStyle(B),$.ensureState("emphasis").style=K,$.ensureState("blur").style=re,$.ensureState("select").style=ie,ru($)}z.add($)}function Z(z){!z.invisible&&i.push(z)}function q(z,$,U,Y){var j=d.getModel(Y?UE:WE),te=hn(d.get("name"),null),N=j.getShallow("show");Hn(z,xn(d,Y?UE:WE),{defaultText:N?te:null,inheritColor:$,defaultOpacity:U,labelFetcher:e,labelDataIndex:o.dataIndex});var B=z.getTextContent();if(B){var K=B.style,re=XC(K.padding||0);Y&&(z.setTextConfig({layoutRect:Y}),B.disableLabelLayout=!0),B.beforeUpdate=function(){var de=Math.max((Y?Y.width:z.shape.width)-re[1]-re[3],0),_e=Math.max((Y?Y.height:z.shape.height)-re[0]-re[2],0);(K.width!==de||K.height!==_e)&&B.setStyle({width:de,height:_e})},K.truncateMinChar=2,K.lineOverflow="truncate",Q(K,Y,c);var ie=B.getState("emphasis");Q(ie?ie.style:null,Y,c)}}function Q(z,$,U){var Y=z?z.text:null;if(!$&&U.isLeafRoot&&Y!=null){var j=e.get("drillDownIcon",!0);z.text=j?j+" "+Y:Y}}function ae(z,$,U,Y){var j=y!=null&&n[z][y],te=a[z];return j?(n[z][y]=null,W(te,j)):p||(j=new $,j instanceof _a&&(j.z2=mhe(U,Y)),F(te,j)),t[z][m]=j}function W(z,$){var U=z[m]={};$ instanceof Hx?(U.oldX=$.x,U.oldY=$.y):U.oldShape=oe({},$.shape)}function F(z,$){var U=z[m]={},Y=o.parentNode,j=$ instanceof Be;if(Y&&(!r||r.direction==="drillDown")){var te=0,N=0,B=a.background[Y.getRawIndex()];!r&&B&&B.oldShape&&(te=B.oldShape.width,N=B.oldShape.height),j?(U.oldX=0,U.oldY=N):U.oldShape={x:te,y:N,width:0,height:0}}U.fadein=!j}}function mhe(e,t){return e*dhe+t}const yhe=ghe;var Pv=k,_he=Re,wm=-1,uA=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=Ve(t);this.type=r,this.mappingMethod=n,this._normalizeData=xhe[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(bb(a),bhe(a)):n==="category"?a.categories?She(a):bb(a,!0):(dr(n!=="linear"||a.dataExtent),bb(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return Ce(this._normalizeData,this)},e.listVisualTypes=function(){return tt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){Re(t)?k(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=ue(t)?[]:Re(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var n={},r;return t&&Pv(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(ue(t))t=t.slice();else if(_he(t)){var n=[];Pv(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,i=1/0,o=0,s=n.length;o=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function bb(e,t){var n=e.visual,r=[];Re(n)?Pv(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!t&&r.length===1&&!a.hasOwnProperty(e.type)&&(r[1]=r[0]),t4(e,r)}function Pg(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:Wx([0,1])}}function XE(e){var t=this.option.visual;return t[Math.round(gt(e,[0,1],[0,t.length-1],!0))]||{}}function Wf(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function ld(e){var t=this.option.visual;return t[this.option.loop&&e!==wm?e%t.length:e]}function sl(){return this.option.visual[0]}function Wx(e){return{linear:function(t){return gt(t,e,this.option.visual,!0)},category:ld,piecewise:function(t,n){var r=Ux.call(this,n);return r==null&&(r=gt(t,e,this.option.visual,!0)),r},fixed:sl}}function Ux(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=uA.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function t4(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=fe(t,function(n){var r=zr(n);return r||[0,0,0,1]})),t}var xhe={linear:function(e){return gt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=uA.findPieceIndex(e,t,!0);if(n!=null)return gt(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??wm},fixed:rn};function Dg(e,t,n){return e?t<=n:t=n.length||g===n[g.depth]){var m=Phe(a,l,g,p,h,r);r4(g,m,n,r)}})}}}function The(e,t,n){var r=oe({},t),a=n.designatedVisualItemStyle;return k(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function ZE(e){var t=Sb(e,"color");if(t){var n=Sb(e,"colorAlpha"),r=Sb(e,"colorSaturation");return r&&(t=Sd(t,null,null,r)),n&&(t=Yp(t,n)),t}}function Ahe(e,t){return t!=null?Sd(t,null,null,e):null}function Sb(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function Ihe(e,t,n,r,a,i){if(!(!i||!i.length)){var o=xb(t,"color")||a.color!=null&&a.color!=="none"&&(xb(t,"colorAlpha")||xb(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Fn(f);return n4(d).drColorMappingBy=c,d}}}function xb(e,t){var n=e.get(t);return ue(n)&&n.length?{name:t,range:n}:null}function Phe(e,t,n,r,a,i){var o=oe({},t);if(a){var s=a.type,l=s==="color"&&n4(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Dv=Math.max,Cm=Math.min,jE=Mn,cA=k,a4=["itemStyle","borderWidth"],Dhe=["itemStyle","gapWidth"],Mhe=["upperLabel","show"],khe=["upperLabel","height"];const Lhe={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=gn(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=be(jE(s.width,l[0]),a),c=be(jE(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],v=Iv(r,d,e),h=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,g=e.getViewRoot(),p=JH(g);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?Bhe(e,v,g,u,c):h?[h.width,h.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),i4(g,_,!1,0),b=g.getLayout(),cA(p,function(S,w){var C=(p[w+1]||g).getValue();S.setLayout(oe({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var x=e.getData().tree.root;x.setLayout(zhe(s,h,v),!0),e.setLayoutInfo(s),o4(x,new Xe(-s.x,-s.y,a,i),p,g,0)}};function i4(e,t,n,r){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(a4),u=s.get(Dhe)/2,c=s4(s),f=Math.max(l,c),d=l-u,v=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Dv(a-2*d,0),i=Dv(i-d-v,0);var h=a*i,g=Ehe(e,s,h,t,n,r);if(g.length){var p={x:d,y:v,width:a,height:i},m=Cm(a,i),y=1/0,_=[];_.area=0;for(var b=0,x=g.length;b=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*ts[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Nhe(e,t,n){for(var r=0,a=1/0,i=0,o=void 0,s=e.length;ir&&(r=o));var l=e.area*e.area,u=t*t*n;return l?Dv(u*r/l,l/(u*a)):1/0}function KE(e,t,n,r,a){var i=t===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=e.length;fsM&&(u=sM),i=s}ur&&(r=t);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var w=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(b[1],b[0]);f[0].8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*y+c[1],h=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*w+c[0],i.y=c[1]+T,h=b[0]<0?"right":"left",i.originX=-m*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+T,h="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*w+f[0],i.y=f[1]+T,h=b[0]>=0?"right":"left",i.originX=m*w,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||h})}},t}(Be);const hA=age;var ige=function(){function e(t){this.group=new Be,this._LineCtor=t||hA}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=t,i||a.removeAll();var o=n2(t);t.diff(i).add(function(s){n._doAdd(t,s,o)}).update(function(s,l){n._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=n2(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!oge(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function n2(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:xn(t)}}function r2(e){return isNaN(e[0])||isNaN(e[1])}function Ib(e){return e&&!r2(e[0])&&!r2(e[1])}const gA=ige;var Pb=[],Db=[],Mb=[],Hu=An,kb=Vl,a2=Math.abs;function i2(e,t,n){for(var r=e[0],a=e[1],i=e[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){Pb[0]=Hu(r[0],a[0],i[0],c),Pb[1]=Hu(r[1],a[1],i[1],c);var f=a2(kb(Pb,t)-l);f=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function Lb(e,t){var n=[],r=lv,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Hi(u[0]),Hi(u[1])],u[2]&&u.__original.push(Hi(u[2])));var d=u.__original;if(u[2]!=null){if(lr(a[0],d[0]),lr(a[1],d[2]),lr(a[2],d[1]),c&&c!=="none"){var v=cd(s.node1),h=i2(a,d[0],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],h,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var v=cd(s.node2),h=i2(a,d[1],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],h,n),a[1][1]=n[1],a[2][1]=n[2]}lr(u[0],a[0]),lr(u[1],a[2]),lr(u[2],a[1])}else{if(lr(i[0],d[0]),lr(i[1],d[1]),bl(o,i[1],i[0]),Jc(o,o),c&&c!=="none"){var v=cd(s.node1);R1(i[0],i[0],o,v*t)}if(f&&f!=="none"){var v=cd(s.node2);R1(i[1],i[1],o,-v*t)}lr(u[0],i[0]),lr(u[1],i[1])}})}function o2(e){return e.type==="view"}var sge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new hh,i=new gA,o=this.group;this._controller=new yh(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(o2(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ct(u,c,n)}Lb(n.getGraph(),ud(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var v=n.forceLayout,h=n.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,h);var g=n.get("layout");f.graph.eachNode(function(_){var b=_.dataIndex,x=_.getGraphicEl(),S=_.getModel();if(x){x.off("drag").off("dragend");var w=S.get("draggable");w&&x.on("drag",function(T){switch(g){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,h),v.setFixed(b),f.setItemLayout(b,[x.x,x.y]);break;case"circular":f.setItemLayout(b,[x.x,x.y]),_.setLayout({fixed:!0},!0),vA(n,"symbolSize",_,[T.offsetX,T.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(b,[x.x,x.y]),dA(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){v&&v.setUnfixed(b)}),x.setDraggable(w,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&($e(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var b=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&($e(b).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var p=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(_){f4(_,p,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!h0(u,a,n)}),!o2(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){nA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){rA(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Lb(n.getGraph(),ud(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=ud(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){Lb(n.getGraph(),ud(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Et);const lge=sge;function Wu(e){return"_EC_"+e}var uge=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[Wu(t)]){var a=new ll(t,n);return a.hostGraph=this,this.nodes.push(a),r[Wu(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[Wu(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(ut(t)&&(t=this.nodes[t]),ut(n)&&(n=this.nodes[n]),t instanceof ll||(t=a[Wu(t)]),n instanceof ll||(n=a[Wu(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new v4(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof ll&&(t=t.id),n instanceof ll&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,a=r.length,i=0;i=0&&t.call(n,r[i],i)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&t.call(n,r[i],i)},e.prototype.breadthFirstTraverse=function(t,n,r,a){if(n instanceof ll||(n=this._nodesMap[Wu(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}fn(ll,h4("hostGraph","data"));fn(v4,h4("hostGraph","edgeData"));const cge=uge;function g4(e,t,n,r,a){for(var i=new cge(r),o=0;o "+d)),u++)}var v=n.get("coordinateSystem"),h;if(v==="cartesian2d"||v==="polar")h=vo(e,n);else{var g=lh.get(v),p=g?g.dimensions||[]:[];je(p,"value")<0&&p.concat(["value"]);var m=ch(e,{coordDimensions:p,encodeDefine:n.getEncode()}).dimensions;h=new fr(m,n),h.initData(e)}var y=new fr(["value"],n);return y.initData(l,s),a&&a(h,y),KH({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var fge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new mh(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),eu(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){Yhe(this);var s=g4(i,a,this,!0,l);return k(s.edges,function(u){Xhe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var g=o._categoriesModels,p=h.getShallow("category"),m=g[p];return m&&(m.parentModel=h.parentModel,h.parentModel=m),h});var f=Lt.prototype.getModel;function d(h,g){var p=f.call(this,h,g);return p.resolveParentPath=v,p}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=d,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var g=h.slice();return h[0]==="label"?g[0]="edgeLabel":h[1]==="label"&&(g[1]="edgeLabel"),g}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),wn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=OG({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=fe(this.option.categories||[],function(a){return a.value!=null?a:oe({value:0},a)}),r=new fr(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($t);const dge=fge;var vge={type:"graphRoam",event:"graphRoam",update:"none"};function hge(e){e.registerChartView(lge),e.registerSeriesModel(dge),e.registerProcessor($he),e.registerVisual(Ghe),e.registerVisual(Hhe),e.registerLayout(Zhe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Khe),e.registerLayout(Jhe),e.registerCoordinateSystem("graphView",{dimensions:_h.dimensions,create:ege}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rn),e.registerAction(vge,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=iA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var gge=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),pge=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new gge},t.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},t}(Qe);const mge=pge;function yge(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=be(n[0],t.getWidth()),s=be(n[1],t.getHeight()),l=be(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function kg(e,t){var n=e==null?"":e+"";return t&&(we(t)?n=t.replace("{value}",n):Le(t)&&(n=t(e))),n}var _ge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=yge(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),v=d?_m:Pr,h=f.get("show"),g=f.getModel("lineStyle"),p=g.get("width"),m=[u,c];Y5(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,b=[],x=0;h&&x=T&&(A===0?0:i[A-1][0])Math.PI/2&&(ae+=Math.PI)):Q==="tangential"?ae=-C-Math.PI/2:ut(Q)&&(ae=Q*Math.PI/180),ae===0?f.add(new lt({style:kt(_,{text:G,x:Z,y:q,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:X}),silent:!0})):f.add(new lt({style:kt(_,{text:G,x:Z,y:q,verticalAlign:"middle",align:"center"},{inheritColor:X}),silent:!0,originX:Z,originY:q,rotation:ae}))}if(y.get("show")&&O!==b){var H=y.get("distance");H=H?H+c:c;for(var W=0;W<=x;W++){L=Math.cos(C),R=Math.sin(C);var F=new kn({shape:{x1:L*(h-H)+d,y1:R*(h-H)+v,x2:L*(h-w-H)+d,y2:R*(h-w-H)+v},silent:!0,style:D});D.stroke==="auto"&&F.setStyle({stroke:i((O+W/x)/b)}),f.add(F),C+=A}C-=A}else C+=T}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,v=this._progressEls,h=[],g=n.get(["pointer","show"]),p=n.getModel("progress"),m=p.get("show"),y=n.getData(),_=y.mapDimension("value"),b=+n.get("min"),x=+n.get("max"),S=[b,x],w=[s,l];function C(A,P){var D=y.getItemModel(A),M=D.getModel("pointer"),L=be(M.get("width"),o.r),R=be(M.get("length"),o.r),O=n.get(["pointer","icon"]),H=M.get("offsetCenter"),V=be(H[0],o.r),G=be(H[1],o.r),X=M.get("keepAspect"),Z;return O?Z=sn(O,V-L/2,G-R,L,R,null,X):Z=new mge({shape:{angle:-Math.PI/2,width:L,r:R,x:V,y:G}}),Z.rotation=-(P+Math.PI/2),Z.x=o.cx,Z.y=o.cy,Z}function T(A,P){var D=p.get("roundCap"),M=D?_m:Pr,L=p.get("overlap"),R=L?p.get("width"):c/y.count(),O=L?o.r-R:o.r-(A+1)*R,H=L?o.r:o.r-A*R,V=new M({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:H}});return L&&(V.z2=x-y.get(_,A)%x),V}(m||g)&&(y.diff(d).add(function(A){var P=y.get(_,A);if(g){var D=C(A,s);Nt(D,{rotation:-((isNaN(+P)?w[0]:gt(P,S,w,!0))+Math.PI/2)},n),f.add(D),y.setItemGraphicEl(A,D)}if(m){var M=T(A,s),L=p.get("clip");Nt(M,{shape:{endAngle:gt(P,S,w,L)}},n),f.add(M),ix(n.seriesIndex,y.dataType,A,M),h[A]=M}}).update(function(A,P){var D=y.get(_,A);if(g){var M=d.getItemGraphicEl(P),L=M?M.rotation:s,R=C(A,L);R.rotation=L,ct(R,{rotation:-((isNaN(+D)?w[0]:gt(D,S,w,!0))+Math.PI/2)},n),f.add(R),y.setItemGraphicEl(A,R)}if(m){var O=v[P],H=O?O.shape.endAngle:s,V=T(A,H),G=p.get("clip");ct(V,{shape:{endAngle:gt(D,S,w,G)}},n),f.add(V),ix(n.seriesIndex,y.dataType,A,V),h[A]=V}}).execute(),y.each(function(A){var P=y.getItemModel(A),D=P.getModel("emphasis"),M=D.get("focus"),L=D.get("blurScope"),R=D.get("disabled");if(g){var O=y.getItemGraphicEl(A),H=y.getItemVisual(A,"style"),V=H.fill;if(O instanceof Wn){var G=O.style;O.useStyle(oe({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},H))}else O.useStyle(H),O.type!=="pointer"&&O.setColor(V);O.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(gt(y.get(_,A),S,[0,1],!0))),O.z2EmphasisLift=0,Gn(O,P),Xt(O,M,L,R)}if(m){var X=h[A];X.useStyle(y.getItemVisual(A,"style")),X.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),X.z2EmphasisLift=0,Gn(X,P),Xt(X,M,L,R)}}),this._progressEls=h)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=sn(s,r.cx-o/2+be(l[0],r.r),r.cy-o/2+be(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new Be,v=[],h=[],g=n.isAnimationEnabled(),p=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new lt({silent:!0}),h[m]=new lt({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],h[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),b=new Be,x=i(gt(_,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var w=S.get("offsetCenter"),C=o.cx+be(w[0],o.r),T=o.cy+be(w[1],o.r),A=v[m];A.attr({z2:p?0:2,style:kt(S,{x:C,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:x})}),b.add(A)}var P=y.getModel("detail");if(P.get("show")){var D=P.get("offsetCenter"),M=o.cx+be(D[0],o.r),L=o.cy+be(D[1],o.r),R=be(P.get("width"),o.r),O=be(P.get("height"),o.r),H=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:x,A=h[m],V=P.get("formatter");A.attr({z2:p?0:2,style:kt(P,{x:M,y:L,text:kg(_,V),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:H})}),B$(A,{normal:P},_,function(X){return kg(X,V)}),g&&z$(A,m,l,n,{getFormattedLabel:function(X,Z,q,Q,ae,W){return kg(W?W.interpolatedValue:_,V)}}),b.add(A)}d.add(b)}),this.group.add(d),this._titleEls=v,this._detailEls=h},t.type="gauge",t}(Et);const bge=_ge;var Sge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return hf(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}($t);const xge=Sge;function wge(e){e.registerChartView(bge),e.registerSeriesModel(xge)}var Cge=["itemStyle","opacity"],Tge=function(e){ee(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new kr,s=new lt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Cge);c=c??1,a||Ua(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Nt(i,{style:{opacity:c}},o,r)):ct(i,{style:{opacity:c},shape:{points:l.points}},o,r),Gn(i,s),this._updateLabel(n,r),Xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Hn(o,xn(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var v=c.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new We(v[0][0],v[0][1]):null},ct(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),XT(a,ZT(l),{stroke:d})},t}(Dr),Age=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Tge(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);gv(u,n,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Et);const Ige=Age;var Pge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mh(Ce(this.getData,this),Ce(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return hf(this,{coordDimensions:["value"],encodeDefaulter:He(wT,this)})},t.prototype._defaultLabelLine=function(n){eu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($t);const Dge=Pge;function Mge(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function kge(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();oKge)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Rb(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Rb(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const Qge=qge;var epe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Ye(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=yt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);k(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(ot);const tpe=epe;var npe=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ja);const rpe=npe;function wu(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=Uu(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=Uu(s,[0,o]),a=i=Uu(s,[a,i]),r=0}t[0]=Uu(t[0],n),t[1]=Uu(t[1],n);var l=Vb(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=Uu(t[r],c);var f;return f=Vb(t,r),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-r]=t[r]+f.sign*i),t}function Vb(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Uu(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Ob=k,m4=Math.min,y4=Math.max,u2=Math.floor,ape=Math.ceil,c2=Kt,ipe=Math.PI,ope=function(){function e(t,n,r){this.type="parallel",this._axesMap=De(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,i=t.parallelAxisIndex;Ob(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new rpe(o,f0(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=t[1-i],s=t[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var a=r.getData();Ob(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Rc(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=gn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=Lg(t.get("axisExpandWidth"),l),f=Lg(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),h;if(v)h=Lg(v[1]-v[0],l),v[1]=v[0]+h;else{h=Lg(c*(f-1),l);var g=t.get("axisExpandCenter")||u2(u/2);v=[c*g-h/2],v[1]=v[0]+h}var p=(s-h)/(u-f);p<3&&(p=0);var m=[u2(c2(v[0]/c,1))+1,ape(c2(v[1]/c,1))-1],y=p/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Ob(r,function(o,s){var l=(a.axisExpandable?lpe:spe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:ipe/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],v=ya();mu(v,v,d),xi(v,v,f),this._axesLayout[o]={position:f,rotation:d,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];k(o,function(p){s.push(t.mapDimension(p)),l.push(i.get(p).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?wu(l,a,o,"all"):u="none";else{var v=a[1]-a[0],h=o[1]*s/v;a=[y4(0,h-v/2)],a[1]=m4(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},e}();function Lg(e,t){return m4(y4(e,t[0]),t[1])}function spe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function lpe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e=0;a--)da(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;igpe}function T4(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function A4(e,t,n,r){var a=new Be;return a.add(new at({name:"main",style:_A(n),silent:!0,draggable:!0,cursor:"move",drift:He(h2,e,t,a,["n","s","w","e"]),ondragend:He(ou,t,{isEnd:!0})})),k(r,function(i){a.add(new at({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:He(h2,e,t,a,i),ondragend:He(ou,t,{isEnd:!0})}))}),a}function I4(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=Nc(a,ppe),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,v=f-i+a/2,h=c-o,g=f-s,p=h+a,m=g+a;Ri(e,t,"main",o,s,h,g),r.transformable&&(Ri(e,t,"w",l,u,i,m),Ri(e,t,"e",d,u,i,m),Ri(e,t,"n",l,u,p,i),Ri(e,t,"s",l,v,p,i),Ri(e,t,"nw",l,u,i,i),Ri(e,t,"ne",d,u,i,i),Ri(e,t,"sw",l,v,i,i),Ri(e,t,"se",d,v,i,i))}function Kx(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(_A(n)),a.attr({silent:!r,cursor:r?"move":"default"}),k([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?qx(e,i[0]):wpe(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?ype[s]+"-resize":null})})}function Ri(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(Tpe(bA(e,t,[[r,a],[r+i,a+o]])))}function _A(e){return Ee({strokeNoScale:!0},e.brushStyle)}function P4(e,t,n,r){var a=[kv(e,n),kv(t,r)],i=[Nc(e,n),Nc(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function xpe(e){return Fl(e.group)}function qx(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=Ky(n[t],xpe(e));return r[a]}function wpe(e,t){var n=[qx(e,t[0]),qx(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function h2(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=D4(t,a,i);k(r,function(u){var c=mpe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(P4(s[0][0],s[1][0],s[0][1],s[1][1])),pA(t,n),ou(t,{isEnd:!1})}function Cpe(e,t,n,r){var a=t.__brushOption.range,i=D4(e,n,r);k(a,function(o){o[0]+=i[0],o[1]+=i[1]}),pA(e,t),ou(e,{isEnd:!1})}function D4(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function bA(e,t,n){var r=C4(e,t);return r&&r!==iu?r.clipPath(n,e._transform):Ve(n)}function Tpe(e){var t=kv(e[0][0],e[1][0]),n=kv(e[0][1],e[1][1]),r=Nc(e[0][0],e[1][0]),a=Nc(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function Ape(e,t,n){if(!(!e._brushType||Ppe(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=yA(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var y0={lineX:m2(0),lineY:m2(1),rect:{createCover:function(e,t){function n(r){return r}return A4({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=T4(e);return P4(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){I4(e,t,n,r)},updateCommon:Kx,contain:Qx},polygon:{createCover:function(e,t){var n=new Be;return n.add(new kr({name:"main",style:_A(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Dr({name:"main",draggable:!0,drift:He(Cpe,e,t),ondragend:He(ou,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:bA(e,t,n)})},updateCommon:Kx,contain:Qx}};function m2(e){return{createCover:function(t,n){return A4({toRectRange:function(r){var a=[r,[0,100]];return e&&a.reverse(),a},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=T4(t),r=kv(n[0][e],n[1][e]),a=Nc(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=C4(t,n);if(o!==iu&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),I4(t,n,l,a)},updateCommon:Kx,contain:Qx}}const SA=bpe;function k4(e){return e=xA(e),function(t){return R$(t,e)}}function L4(e,t){return e=xA(e),function(n){var r=t??n,a=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(a||0)]}}function E4(e,t,n){var r=xA(e);return function(a,i){return r.contain(i[0],i[1])&&!h0(a,t,n)}}function xA(e){return Xe.create(e)}var Dpe=["axisLine","axisTickLabel","axisName"],Mpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new SA(r.getZr())).on("brush",Ce(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!kpe(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Be,this.group.add(this._axisGroup),!!n.get("show")){var s=Epe(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),v=oe({strokeContainThreshold:c},d),h=new no(n,v);k(Dpe,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(v,u,n,s,c,a),ih(o,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Xe.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:k4(f),isTargetByCursor:E4(f,s,i),getLinearBrushOtherExtent:L4(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Lpe(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=fe(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Zt);function kpe(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Lpe(e){var t=e.axis;return fe(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function Epe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const Rpe=Mpe;var Vpe={type:"axisAreaSelect",event:"axisAreaSelected"};function Ope(e){e.registerAction(Vpe,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var Npe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function R4(e){e.registerComponentView(Qge),e.registerComponentModel(tpe),e.registerCoordinateSystem("parallel",dpe),e.registerPreprocessor(Xge),e.registerComponentModel(f2),e.registerComponentView(Rpe),Oc(e,"parallel",f2,Npe),Ope(e)}function Bpe(e){Ke(R4),e.registerChartView(zge),e.registerSeriesModel(Hge),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Yge)}var zpe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Fpe=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new zpe},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){Qi(this)},t.prototype.downplay=function(){eo(this)},t}(Qe),$pe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),v=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(h){var g=new Fpe,p=$e(g);p.dataIndex=h.dataIndex,p.seriesIndex=n.seriesIndex,p.dataType="edge";var m=h.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),b=h.node1.getLayout(),x=h.node1.getModel(),S=x.get("localX"),w=x.get("localY"),C=h.node2.getLayout(),T=h.node2.getModel(),A=T.get("localX"),P=T.get("localY"),D=h.getLayout(),M,L,R,O,H,V,G,X;g.shape.extent=Math.max(1,D.dy),g.shape.orient=v,v==="vertical"?(M=(S!=null?S*u:b.x)+D.sy,L=(w!=null?w*c:b.y)+b.dy,R=(A!=null?A*u:C.x)+D.ty,O=P!=null?P*c:C.y,H=M,V=L*(1-_)+O*_,G=R,X=L*_+O*(1-_)):(M=(S!=null?S*u:b.x)+b.dx,L=(w!=null?w*c:b.y)+D.sy,R=A!=null?A*u:C.x,O=(P!=null?P*c:C.y)+D.ty,H=M*(1-_)+R*_,V=L,G=M*_+R*(1-_),X=O),g.setShape({x1:M,y1:L,x2:R,y2:O,cpx1:H,cpy1:V,cpx2:G,cpy2:X}),g.useStyle(y.getItemStyle()),y2(g.style,v,h);var Z=""+m.get("value"),q=xn(m,"edgeLabel");Hn(g,q,{labelFetcher:{getFormattedLabel:function(W,F,z,$,U,Y){return n.getFormattedLabel(W,F,"edge",$,gi(U,q.normal&&q.normal.get("formatter"),Z),Y)}},labelDataIndex:h.dataIndex,defaultText:Z}),g.setTextConfig({position:"inside"});var Q=m.getModel("emphasis");Gn(g,m,"lineStyle",function(W){var F=W.getItemStyle();return y2(F,v,h),F}),s.add(g),d.setItemGraphicEl(h.dataIndex,g);var ae=Q.get("focus");Xt(g,ae==="adjacency"?h.getAdjacentDataIndices():ae==="trajectory"?h.getTrajectoryDataIndices():ae,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(h){var g=h.getLayout(),p=h.getModel(),m=p.get("localX"),y=p.get("localY"),_=p.getModel("emphasis"),b=new at({shape:{x:m!=null?m*u:g.x,y:y!=null?y*c:g.y,width:g.dx,height:g.dy},style:p.getModel("itemStyle").getItemStyle(),z2:10});Hn(b,xn(p),{labelFetcher:{getFormattedLabel:function(S,w){return n.getFormattedLabel(S,w,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),b.disableLabelAnimation=!0,b.setStyle("fill",h.getVisual("color")),b.setStyle("decal",h.getVisual("style").decal),Gn(b,p),s.add(b),f.setItemGraphicEl(h.dataIndex,b),$e(b).dataType="node";var x=_.get("focus");Xt(b,x==="adjacency"?h.getAdjacentDataIndices():x==="trajectory"?h.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(h,g){var p=f.getItemModel(g);p.get("draggable")&&(h.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){i._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(Gpe(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Et);function y2(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");we(r)&&we(a)&&(e.fill=new ah(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function Gpe(e,t,n){var r=new at({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Nt(r,{shape:{width:e.width+20}},t,n),r}const Hpe=$pe;var Wpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Lt(o[l],this,r));if(i&&a){var u=g4(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getData().getItemLayout(h);if(p){var m=p.depth,y=g.levelModels[m];y&&(v.parentModel=y)}return v}),d.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getGraph().getEdgeByIndex(h),m=p.node1.getLayout();if(m){var y=m.depth,_=g.levelModels[y];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return wn("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return wn("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}($t);const Upe=Wpe;function Ype(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=Xpe(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;jpe(u);var f=yt(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),v=n.get("orient"),h=n.get("nodeAlign");Zpe(u,c,r,a,o,s,d,v,h)})}function Xpe(e,t){return gn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Zpe(e,t,n,r,a,i,o,s,l){Kpe(e,t,n,a,i,s,l),eme(e,t,i,a,r,o,s),ume(e,s)}function jpe(e){k(e,function(t){var n=ns(t.outEdges,Tm),r=ns(t.inEdges,Tm),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function Kpe(e,t,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&p.depth>v&&(v=p.depth),g.setLayout({depth:m?p.depth:f},!0),i==="vertical"?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yf-1?v:f-1;o&&o!=="left"&&qpe(e,o,i,w);var C=i==="vertical"?(a-n)/w:(r-n)/w;Qpe(e,C,i)}function V4(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function qpe(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s0;i--)l*=.99,rme(s,l,o),Nb(s,a,n,r,o),lme(s,l,o),Nb(s,a,n,r,o)}function tme(e,t){var n=[],r=t==="vertical"?"y":"x",a=tx(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),k(a.keys,function(i){n.push(a.buckets.get(i))}),n}function nme(e,t,n,r,a,i){var o=1/0;k(e,function(s){var l=s.length,u=0;k(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var h=a==="vertical"?r:n;if(u=c-t-h,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function rme(e,t,n){k(e.slice().reverse(),function(r){k(r,function(a){if(a.outEdges.length){var i=ns(a.outEdges,ame,n)/ns(a.outEdges,Tm);if(isNaN(i)){var o=a.outEdges.length;i=o?ns(a.outEdges,ime,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-gs(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-gs(a,n))*t;a.setLayout({y:l},!0)}}})})}function ame(e,t){return gs(e.node2,t)*e.getValue()}function ime(e,t){return gs(e.node2,t)}function ome(e,t){return gs(e.node1,t)*e.getValue()}function sme(e,t){return gs(e.node1,t)}function gs(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Tm(e){return e.getValue()}function ns(e,t,n){for(var r=0,a=e.length,i=-1;++io&&(o=l)}),k(r,function(s){var l=new Fn({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&k(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function fme(e){e.registerChartView(Hpe),e.registerSeriesModel(Upe),e.registerLayout(Ype),e.registerVisual(cme),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var O4=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],v=[a,i],h=v[c].get("type"),g=v[1-c].get("type"),p=t.data;if(p&&l){var m=[];k(p,function(b,x){var S;ue(b)?(S=b.slice(),b.unshift(x)):ue(b.value)?(S=oe({},b),S.value=S.value.slice(),b.value.unshift(x)):S=b,m.push(S)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:vm(h),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:vm(g),dimsDef:y.slice()}];return hf(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:He(sG,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),N4=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}($t);fn(N4,O4,!0);const dme=N4;var vme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=_2(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(Ua(f),B4(d,f,i,u)):f=_2(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},t.type="boxplot",t}(Et),hme=function(){function e(){}return e}(),gme=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new hme},t.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();ig){var b=[m,_];r.push(b)}}}return{boxData:n,outliers:r}}var wme={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==tr){var r="";ft(r)}var a=xme(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Cme(e){e.registerSeriesModel(dme),e.registerChartView(mme),e.registerLayout(yme),e.registerTransform(wme)}var Tme=["color","borderColor"],Ame=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){As(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&b2(u,f))return;var d=Bb(f,c,!0);Nt(d,{shape:{points:f.ends}},n,c),zb(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var v=r.getItemLayout(c);if(s&&b2(u,v)){i.remove(d);return}d?(ct(d,{shape:{points:v.ends}},n,c),Ua(d)):d=Bb(v),zb(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),S2(n,this.group);var r=n.get("clip",!0)?v0(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=Bb(s);zb(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){S2(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Et),Ime=function(){function e(){}return e}(),Pme=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Ime},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(Qe);function Bb(e,t,n){var r=e.ends;return new Pme({shape:{points:n?Dme(r,e):r},z2:100})}function b2(e,t){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(Tme);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const kme=Ame;var z4=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}($t);fn(z4,O4,!0);const Lme=z4;function Eme(e){!e||!ue(e.series)||k(e.series,function(t){Re(t)&&t.type==="k"&&(t.type="candlestick")})}var Rme=["itemStyle","borderColor"],Vme=["itemStyle","borderColor0"],Ome=["itemStyle","borderColorDoji"],Nme=["itemStyle","color"],Bme=["itemStyle","color0"],zme={seriesType:"candlestick",plan:ff(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?Nme:Bme)}function r(i,o){return o.get(i===0?Ome:i>0?Rme:Vme)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");oe(f,c)}}}}}};const Fme=zme;var $me={seriesType:"candlestick",plan:ff(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Gme(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=fe(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?h:v};function v(g,p){for(var m,y=p.getStore();(m=g.next())!=null;){var _=y.get(s,m),b=y.get(u,m),x=y.get(c,m),S=y.get(f,m),w=y.get(d,m),C=Math.min(b,x),T=Math.max(b,x),A=H(C,_),P=H(T,_),D=H(S,_),M=H(w,_),L=[];V(L,P,0),V(L,A,1),L.push(X(M),X(P),X(D),X(A));var R=p.getItemModel(m),O=!!R.get(["itemStyle","borderColorDoji"]);p.setItemLayout(m,{sign:x2(y,m,b,x,c,O),initBaseline:b>x?P[i]:A[i],ends:L,brushRect:G(S,w,_)})}function H(Z,q){var Q=[];return Q[a]=q,Q[i]=Z,isNaN(q)||isNaN(Z)?[NaN,NaN]:t.dataToPoint(Q)}function V(Z,q,Q){var ae=q.slice(),W=q.slice();ae[a]=sp(ae[a]+r/2,1,!1),W[a]=sp(W[a]-r/2,1,!0),Q?Z.push(ae,W):Z.push(W,ae)}function G(Z,q,Q){var ae=H(Z,Q),W=H(q,Q);return ae[a]-=r/2,W[a]-=r/2,{x:ae[0],y:ae[1],width:r,height:W[1]-ae[1]}}function X(Z){return Z[a]=sp(Z[a],1),Z}}function h(g,p){for(var m=vi(g.count*4),y=0,_,b=[],x=[],S,w=p.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(S=g.next())!=null;){var T=w.get(s,S),A=w.get(u,S),P=w.get(c,S),D=w.get(f,S),M=w.get(d,S);if(isNaN(T)||isNaN(D)||isNaN(M)){m[y++]=NaN,y+=3;continue}m[y++]=x2(w,S,A,P,c,C),b[a]=T,b[i]=D,_=t.dataToPoint(b,null,x),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,b[i]=M,_=t.dataToPoint(b,null,x),m[y++]=_?_[1]:NaN}p.setLayout("largePoints",m)}}};function x2(e,t,n,r,a,i){var o;return n>r?o=-1:n0?e.get(a,t-1)<=r?1:-1:1,o}function Gme(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=be(Ue(e.get("barMaxWidth"),a),a),o=be(Ue(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?be(s,a):Math.max(Math.min(a/2,i),o)}const Hme=$me;function Wme(e){e.registerChartView(kme),e.registerSeriesModel(Lme),e.registerPreprocessor(Eme),e.registerVisual(Fme),e.registerLayout(Hme)}function w2(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var Ume=function(e){ee(t,e);function t(n,r){var a=e.call(this)||this,i=new vh(n,r),o=new Be;return a.add(i),a.add(o),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Le(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return $o(n.__p1,n.__cp1)+$o(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=An,c=G1;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var v=n.__t<1?d[0]-f[0]:f[0]-d[0],h=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(h,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(F4);const tye=eye;var nye=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),rye=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nye},t.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){n.moveTo(a[o++],a[o++]);for(var l=1;l0){var v=(u+f)/2-(c-d)*i,h=(c+d)/2-(f-u)*i;n.quadraticCurveTo(v,h,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var f=i[u++],d=i[u++],v=1;v0){var p=(f+h)/2-(d-g)*o,m=(d+g)/2-(h-f)*o;if(X5(f,d,p,m,h,g,s,n,r))return l}else if(zo(f,d,h,g,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const iye=aye;var oye={seriesType:"lines",plan:ff(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&v0(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=G4.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new iye:new gA(o?i?tye:$4:i?F4:hA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(Et);const lye=sye;var uye=typeof Uint32Array>"u"?Array:Uint32Array,cye=typeof Float64Array>"u"?Array:Float64Array;function C2(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=fe(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),UC([a,n[0],n[1]])}))}var fye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],C2(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(C2(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Hp(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Hp(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}($t);const dye=fye;function Eg(e){return e instanceof Array||(e=[e,e]),e}var vye={seriesType:"lines",reset:function(e){var t=Eg(e.get("symbol")),n=Eg(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=Eg(s.getShallow("symbol",!0)),u=Eg(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const hye=vye;function gye(e){e.registerChartView(lye),e.registerSeriesModel(dye),e.registerLayout(G4),e.registerVisual(hye)}var pye=256,mye=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=us.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),v=t.length;f.width=n,f.height=r;for(var h=0;h0){var D=o(_)?l:u;_>0&&(_=_*A+C),x[S++]=D[P],x[S++]=D[P+1],x[S++]=D[P+2],x[S++]=D[P+3]*_*256}else S+=4}return d.putImageData(b,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=us.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const yye=mye;function _ye(e,t,n){var r=e[1]-e[0];t=fe(t,function(o){return{interval:[(o.interval[0]-e[0])/r,(o.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&r<=t[1]}}function T2(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Sye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):T2(o)&&this._renderOnGeo(o,n,i,a)},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(T2(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){As(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Su(s,"cartesian2d"),u,c,f,d;if(l){var v=s.getAxis("x"),h=s.getAxis("y");u=v.getBandWidth()+.5,c=h.getBandWidth()+.5,f=v.scale.getExtent(),d=h.scale.getExtent()}for(var g=this.group,p=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),y=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),b=n.get(["itemStyle","borderRadius"]),x=xn(n),S=n.getModel("emphasis"),w=S.get("focus"),C=S.get("blurScope"),T=S.get("disabled"),A=l?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],P=a;Pf[1]||Rd[1])continue;var O=s.dataToPoint([L,R]);D=new at({shape:{x:O[0]-u/2,y:O[1]-c/2,width:u,height:c},style:M})}else{if(isNaN(p.get(A[1],P)))continue;D=new at({z2:1,shape:s.dataToRect([p.get(A[0],P)]).contentShape,style:M})}if(p.hasItemOption){var H=p.getItemModel(P),V=H.getModel("emphasis");m=V.getModel("itemStyle").getItemStyle(),y=H.getModel(["blur","itemStyle"]).getItemStyle(),_=H.getModel(["select","itemStyle"]).getItemStyle(),b=H.get(["itemStyle","borderRadius"]),w=V.get("focus"),C=V.get("blurScope"),T=V.get("disabled"),x=xn(H)}D.shape.r=b;var G=n.getRawValue(P),X="-";G&&G[2]!=null&&(X=G[2]+""),Hn(D,x,{labelFetcher:n,labelDataIndex:P,defaultOpacity:M.opacity,defaultText:X}),D.ensureState("emphasis").style=m,D.ensureState("blur").style=y,D.ensureState("select").style=_,Xt(D,w,C,T),D.incremental=o,o&&(D.states.emphasis.hoverLayer=!0),g.add(D),p.setItemGraphicEl(P,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new yye;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),v=Math.max(c.y,0),h=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),p=h-d,m=g-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(w,C,T){var A=n.dataToPoint([w,C]);return A[0]-=d,A[1]-=v,A.push(T),A}),b=a.getExtent(),x=a.type==="visualMap.continuous"?bye(b,a.option.range):_ye(b,a.getPieceList(),a.option.selected);u.update(_,p,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new Wn({style:{width:p,height:m,x:d,y:v,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(Et);const xye=Sye;var wye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return vo(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=lh.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}($t);const Cye=wye;function Tye(e){e.registerChartView(xye),e.registerSeriesModel(Cye)}var Aye=["itemStyle","borderWidth"],A2=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gb=new Ai,Iye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:A2[+c],categoryDim:A2[1-+c]};return o.diff(s).add(function(v){if(o.hasValue(v)){var h=P2(o,v),g=I2(o,v,h,d),p=D2(o,d,g);o.setItemGraphicEl(v,p),i.add(p),k2(p,d,g)}}).update(function(v,h){var g=s.getItemGraphicEl(h);if(!o.hasValue(v)){i.remove(g);return}var p=P2(o,v),m=I2(o,v,p,d),y=Z4(o,m);g&&y!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(v,null),g=null),g?Rye(g,d,m):g=D2(o,d,m,!0),o.setItemGraphicEl(v,g),g.__pictorialSymbolMeta=m,i.add(g),k2(g,d,m)}).remove(function(v){var h=s.getItemGraphicEl(v);h&&M2(s,v,h.__pictorialSymbolMeta.animationModel,h)}).execute(),this._data=o,this.group},t.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){M2(i,$e(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(Et);function I2(e,t,n,r){var a=e.getItemLayout(t),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Pye(n,i,a,r,d),Dye(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),Mye(n,d.symbolScale,u,r,d);var v=d.symbolSize,h=_u(n.get("symbolOffset"),v);return kye(n,v,a,i,o,h,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function Pye(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(ue(o)){var f=[Hb(s,o[0])-l,Hb(s,o[1])-l];f[1]0?1:-1}function Hb(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Dye(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),v=e.getItemVisual(t,"symbolSize"),h;ue(v)?h=v.slice():v==null?h=["100%","100%"]:h=[v,v],h[f.index]=be(h[f.index],d),h[c.index]=be(h[c.index],r?d:Math.abs(i)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Mye(e,t,n,r,a){var i=e.get(Aye)||0;i&&(Gb.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Gb.updateTransform(),i/=Gb.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function kye(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,v=c.valueDim,h=f.pxSign,g=Math.max(t[v.index]+s,0),p=g;if(r){var m=Math.abs(l),y=Mn(e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=be(y,t[v.index]),x=Math.max(g+b*2,0),S=_?0:b*2,w=L5(r),C=w?r:L2((m+S)/x),T=m-C*g;b=T/2/(_?C:Math.max(C-1,1)),x=g+b*2,S=_?0:b*2,!w&&r!=="fixed"&&(C=u?L2((Math.abs(u)+S)/x):0),p=C*x-S,f.repeatTimes=C,f.symbolMargin=b}var A=h*(p/2),P=f.pathPosition=[];P[d.index]=n[d.wh]/2,P[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var D=f.bundlePosition=[];D[d.index]=n[d.xy],D[v.index]=n[v.xy];var M=f.barRectShape=oe({},n);M[v.wh]=h*Math.max(Math.abs(n[v.wh]),Math.abs(P[v.index]+A)),M[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[v.xy]=0,L[v.wh]=n[v.wh]}function H4(e){var t=e.symbolPatternSize,n=sn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function W4(e,t,n,r){var a=e.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+n.symbolMargin*2;for(wA(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-g),p[l.index]=f*(y-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function U4(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?mc(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=H4(n),a.add(i),mc(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Y4(e,t,n){var r=oe({},t.barRectShape),a=e.__pictorialBarRect;a?mc(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new at({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function X4(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=oe({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)ct(a,{shape:i},s,l);else{i[o.wh]=0,a=new at({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],sh[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function P2(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Lye,n.isAnimationEnabled=Eye,n}function Lye(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Eye(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function D2(e,t,n,r){var a=new Be,i=new Be;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?W4(a,t,n):U4(a,t,n),Y4(a,n,r),X4(a,t,n,r),a.__pictorialShapeStr=Z4(e,n),a.__pictorialSymbolMeta=n,a}function Rye(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;ct(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?W4(e,t,n,!0):U4(e,t,n,!0),Y4(e,n,!0),X4(e,t,n,!0)}function M2(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];wA(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),k(i,function(o){fs(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function Z4(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function wA(e,t,n){k(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function mc(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&sh[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function k2(e,t,n){var r=n.dataIndex,a=n.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");wA(e,function(g){if(g instanceof Wn){var p=g.style;g.useStyle(oe({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},n.style))}else g.useStyle(n.style);var m=g.ensureState("emphasis");m.style=o,d&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=n.z2});var v=t.valueDim.posDesc[+(n.boundingLength>0)],h=e.__pictorialBarRect;Hn(h,xn(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Vc(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:v}),Xt(e,c,f,i.get("disabled"))}function L2(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const Vye=Iye;var Oye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(ym.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(ym);const Nye=Oye;function Bye(e){e.registerChartView(Vye),e.registerSeriesModel(Nye),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,He(D3,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M3("pictorialBar"))}var zye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(p){return p.name}var v=new to(this._layersSeries||[],l,d,d),h=[];v.add(Ce(g,this,"add")).update(Ce(g,this,"update")).remove(Ce(g,this,"remove")).execute();function g(p,m,y){var _=o._layers;if(p==="remove"){s.remove(_[m]);return}for(var b=[],x=[],S,w=l[m].indices,C=0;Ci&&(i=s),r.push(s)}for(var u=0;ui&&(i=f)}return{y0:a,max:i}}function Yye(e){e.registerChartView($ye),e.registerSeriesModel(Hye),e.registerLayout(Wye),e.registerProcessor(ph("themeRiver"))}var Xye=2,Zye=4,jye=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=Xye,o.textConfig={inside:!0},$e(o).seriesIndex=r.seriesIndex;var s=new lt({z2:Zye,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return t.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;$e(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=oe({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var v=r.getVisual("decal");v&&(d.decal=Ec(v,o));var h=Il(l.getModel("itemStyle"),f,!0);oe(f,h),k(vr,function(y){var _=s.ensureState(y),b=l.getModel([y,"itemStyle"]);_.style=b.getItemStyle();var x=Il(b,f);x&&(_.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,Nt(s,{shape:{r:c.r}},a,r.dataIndex)):(ct(s,{shape:f},a),Ua(s)),s.useStyle(d),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=u.get("focus"),m=p==="ancestor"?r.getAncestorsIndices():p==="descendant"?r.getDescendantIndices():p;Xt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),v=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(h!=null&&Math.abs(s)Math.PI/2?"right":"left"):!D||D==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,D="center"):D==="left"?(A=o.r0+P,l>Math.PI/2&&(D="right")):D==="right"&&(A=o.r-P,l>Math.PI/2&&(D="left")),b.style.align=D,b.style.verticalAlign=p(y,"verticalAlign")||"middle",b.x=A*u+o.cx,b.y=A*c+o.cy;var M=p(y,"rotate"),L=0;M==="radial"?(L=Oa(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):ut(M)&&(L=M*Math.PI/180),b.rotation=Oa(L)});function p(m,y){var _=m.get(y);return _??i.get(y)}d.dirtyStyle()},t}(Pr);const R2=jye;var ew="sunburstRootToNode",V2="sunburstHighlight",Kye="sunburstUnhighlight";function qye(e){e.registerAction({type:ew,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=Iv(t,[ew],a);if(o){var s=a.getViewRoot();s&&(t.direction=lA(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:V2,update:"none"},function(t,n,r){t=oe({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Iv(t,[V2],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(oe(t,{type:"highlight"}))}),e.registerAction({type:Kye,update:"updateView"},function(t,n,r){t=oe({},t),r.dispatchAction(oe(t,{type:"downplay"}))})}var Jye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var v=this._oldChildren||[];h(d,v),m(l,u),this._initEvents(),this._oldChildren=d;function h(y,_){if(y.length===0&&_.length===0)return;new to(_,y,b,b).add(x).update(x).remove(He(x,null)).execute();function b(S){return S.getId()}function x(S,w){var C=S==null?null:y[S],T=w==null?null:_[w];g(C,T)}}function g(y,_){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,n,r,a),s.setItemGraphicEl(y.dataIndex,_.piece)):p(_);else if(y){var b=new R2(y,n,r,a);c.add(b),s.setItemGraphicEl(y.dataIndex,b)}}}function p(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,n,r,a):(o.virtualPiece=new R2(y,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";im(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ew,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Et);const Qye=Jye;var e0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};j4(a);var i=this._levelModels=fe(n.levels||[],function(l){return new Lt(l,this,r)},this),o=sA.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=p0(a,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){QH(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}($t);function j4(e){var t=0;k(e.children,function(r){j4(r);var a=r.value;ue(a)&&(a=a[0]),t+=a});var n=e.value;ue(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),ue(e.value)?e.value[0]=n:e.value=n}const t0e=e0e;var O2=Math.PI/180;function n0e(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");ue(i)||(i=[0,i]),ue(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=be(a[0],o),c=be(a[1],s),f=be(i[0],l/2),d=be(i[1],l/2),v=-r.get("startAngle")*O2,h=r.get("minAngle")*O2,g=r.getData().tree.root,p=r.getViewRoot(),m=p.depth,y=r.get("sort");y!=null&&K4(p,y);var _=0;k(p.children,function(O){!isNaN(O.getValue())&&_++});var b=p.getValue(),x=Math.PI/(b||_)*2,S=p.depth>0,w=p.height-(S?-1:1),C=(d-f)/(w||1),T=r.get("clockwise"),A=r.get("stillShowZeroSum"),P=T?1:-1,D=function(O,H){if(O){var V=H;if(O!==g){var G=O.getValue(),X=b===0&&A?x:G*x;X1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&we(s)&&(s=U1(s,(r.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");oe(u,l)})})}function i0e(e){e.registerChartView(Qye),e.registerSeriesModel(t0e),e.registerLayout(He(n0e,"sunburst")),e.registerProcessor(He(ph,"sunburst")),e.registerVisual(a0e),qye(e)}var N2={color:"fill",borderColor:"stroke"},o0e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Yi=it(),s0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return vo(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=Yi(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}($t);const l0e=s0e;function u0e(e,t){return t=t||[0,0],fe(["x","y"],function(n,r){var a=this.getAxis(n),i=t[r],o=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function c0e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ce(u0e,e)}}}function f0e(e,t){return t=t||[0,0],fe([0,1],function(n){var r=t[n],a=e[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function d0e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:Ce(f0e,e)}}}function v0e(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function h0e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ce(v0e,e)}}}function g0e(e,t){return t=t||[0,0],fe(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=t[r],s=e[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function p0e(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Ce(g0e,e)}}}function m0e(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return e.dataToPoint(r,a)}}}}function q4(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Te(e,"text")))}function J4(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},Te(r,"text")&&(o.text=r.text),Te(r,"rich")&&(o.rich=r.rich),Te(r,"textFill")&&(o.fill=r.textFill),Te(r,"textStroke")&&(o.stroke=r.textStroke),Te(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Te(r,"fontSize")&&(o.fontSize=r.fontSize),Te(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Te(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Te(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),Te(r,"textPosition")&&(a.position=r.textPosition),Te(r,"textOffset")&&(a.offset=r.textOffset),Te(r,"textRotation")&&(a.rotation=r.textRotation),Te(r,"textDistance")&&(a.distance=r.textDistance)}return B2(o,e),k(o.rich,function(l){B2(l,l)}),{textConfig:a,textContent:i}}function B2(e,t){t&&(t.font=t.textFont||t.font,Te(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Te(t,"textAlign")&&(e.align=t.textAlign),Te(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Te(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Te(t,"textWidth")&&(e.width=t.textWidth),Te(t,"textHeight")&&(e.height=t.textHeight),Te(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Te(t,"textPadding")&&(e.padding=t.textPadding),Te(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Te(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Te(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Te(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Te(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Te(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Te(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function z2(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";F2(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,k(t.rich,function(s){F2(s,s)}),r}function F2(e,t){t&&(Te(t,"fill")&&(e.textFill=t.fill),Te(t,"stroke")&&(e.textStroke=t.fill),Te(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Te(t,"font")&&(e.font=t.font),Te(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Te(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Te(t,"fontSize")&&(e.fontSize=t.fontSize),Te(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Te(t,"align")&&(e.textAlign=t.align),Te(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Te(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Te(t,"width")&&(e.textWidth=t.width),Te(t,"height")&&(e.textHeight=t.height),Te(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Te(t,"padding")&&(e.textPadding=t.padding),Te(t,"borderColor")&&(e.textBorderColor=t.borderColor),Te(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Te(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Te(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Te(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Te(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Te(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Te(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Te(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Te(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Te(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Q4={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$2=tt(Q4);Si(wi,function(e,t){return e[t]=1,e},{});wi.join(", ");var Am=["","style","shape","extra"],Bc=it();function CA(e,t,n,r,a){var i=e+"Animation",o=nf(e,r,a)||{},s=Bc(t).userDuring;return o.duration>0&&(o.during=s?Ce(x0e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),oe(o,n[i]),o}function vp(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=Bc(e),u=t.style;l.userDuring=t.during;var c={},f={};if(C0e(e,t,f),H2("shape",t,f),H2("extra",t,f),!i&&s&&(w0e(e,t,c),G2("shape",e,t,c),G2("extra",e,t,c),T0e(e,t,u,c)),f.style=u,y0e(e,f,o),b0e(e,t),s)if(i){var d={};k(Am,function(h){var g=h?t[h]:t;g&&g.enterFrom&&(h&&(d[h]=d[h]||{}),oe(h?d[h]:d,g.enterFrom))});var v=CA("enter",e,t,n,a);v.duration>0&&e.animateFrom(d,v)}else _0e(e,t,a||0,n,c);eW(e,t),u?e.dirty():e.markRedraw()}function eW(e,t){for(var n=Bc(e).leaveToProps,r=0;r0&&e.animateFrom(a,i)}}function b0e(e,t){Te(t,"silent")&&(e.silent=t.silent),Te(t,"ignore")&&(e.ignore=t.ignore),e instanceof _a&&Te(t,"invisible")&&(e.invisible=t.invisible),e instanceof Qe&&Te(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ni={},S0e={setTransform:function(e,t){return ni.el[e]=t,this},getTransform:function(e){return ni.el[e]},setShape:function(e,t){var n=ni.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=ni.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=ni.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=ni.el.style;if(t)return t[e]},setExtra:function(e,t){var n=ni.el.extra||(ni.el.extra={});return n[e]=t,this},getExtra:function(e){var t=ni.el.extra;if(t)return t[e]}};function x0e(){var e=this,t=e.el;if(t){var n=Bc(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}ni.el=t,r(S0e)}}function G2(e,t,n,r){var a=n[e];if(a){var i=t[e],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[e]={}),Wl(l))oe(o,i);else for(var u=bt(l),c=0;c=0){!o&&(o=r[e]={});for(var v=tt(i),c=0;c=0)){var d=e.getAnimationStyleProps(),v=d?d.style:null;if(v){!i&&(i=r.style={});for(var h=tt(n),u=0;u=0?t.getStore().get(H,R):void 0}var V=t.get(O.name,R),G=O&&O.ordinalMeta;return G?G.categories[V]:V}function S(L,R){R==null&&(R=u);var O=t.getItemVisual(R,"style"),H=O&&O.fill,V=O&&O.opacity,G=y(R,Zo).getItemStyle();H!=null&&(G.fill=H),V!=null&&(G.opacity=V);var X={inheritColor:we(H)?H:"#000"},Z=_(R,Zo),q=kt(Z,null,X,!1,!0);q.text=Z.getShallow("show")?Ue(e.getFormattedLabel(R,Zo),Vc(t,R)):null;var Q=rm(Z,X,!1);return T(L,G),G=z2(G,q,Q),L&&C(G,L),G.legacy=!0,G}function w(L,R){R==null&&(R=u);var O=y(R,Xi).getItemStyle(),H=_(R,Xi),V=kt(H,null,null,!0,!0);V.text=H.getShallow("show")?gi(e.getFormattedLabel(R,Xi),e.getFormattedLabel(R,Zo),Vc(t,R)):null;var G=rm(H,null,!0);return T(L,O),O=z2(O,V,G),L&&C(O,L),O.legacy=!0,O}function C(L,R){for(var O in R)Te(R,O)&&(L[O]=R[O])}function T(L,R){L&&(L.textFill&&(R.textFill=L.textFill),L.textPosition&&(R.textPosition=L.textPosition))}function A(L,R){if(R==null&&(R=u),Te(N2,L)){var O=t.getItemVisual(R,"style");return O?O[N2[L]]:null}if(Te(o0e,L))return t.getItemVisual(R,L)}function P(L){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return Ble(Ee({axis:R},L))}}function D(){return n.getCurrentSeriesIndices()}function M(L){return N$(L,n)}}function O0e(e){var t={};return k(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function Xb(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=DA(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&Xt(s,r.focus,r.blurScope,r.emphasisDisabled),s}function DA(e,t,n,r,a,i){var o=-1,s=t;t&&aW(t,r,a)&&(o=je(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=IA(r),s&&k0e(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),qr.normal.cfg=qr.normal.conOpt=qr.emphasis.cfg=qr.emphasis.conOpt=qr.blur.cfg=qr.blur.conOpt=qr.select.cfg=qr.select.conOpt=null,qr.isLegacy=!1,B0e(u,n,r,a,l,qr),N0e(u,n,r,a,l),PA(e,u,n,r,qr,a,l),Te(r,"info")&&(Yi(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function aW(e,t,n){var r=Yi(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&H0e(i)&&iW(i)!==r.customPathData||a==="image"&&Te(o,"image")&&o.image!==r.customImagePath}function N0e(e,t,n,r,a){var i=n.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&aW(o,i,r)&&(o=null),o||(o=IA(i),e.setClipPath(o)),PA(null,o,t,i,null,r,a)}}function B0e(e,t,n,r,a,i){if(!e.isGroup){U2(n,null,i),U2(n,Xi,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=IA(o),e.setTextContent(c)),PA(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d=c;v--){var h=t.childAt(v);F0e(t,h,a)}}}function F0e(e,t,n){t&&_0(t,Yi(e).option,n)}function $0e(e){new to(e.oldChildren,e.newChildren,Y2,Y2,e).add(X2).update(X2).remove(G0e).execute()}function Y2(e,t){var n=e&&e.name;return n??D0e+t}function X2(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;DA(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function G0e(e){var t=this.context,n=t.oldChildren[e];n&&_0(n,Yi(n).option,t.seriesModel)}function iW(e){return e&&(e.pathData||e.d)}function H0e(e){return e&&(Te(e,"pathData")||Te(e,"d"))}function W0e(e){e.registerChartView(E0e),e.registerSeriesModel(l0e)}var vl=it(),Z2=Ve,Zb=Ce,U0e=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Be,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=He(j2,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}q2(s,n,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),a=t.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=eA(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,a,i){},e.prototype.createPointerEl=function(t,n,r,a){var i=n.pointer;if(i){var o=vl(t).pointerEl=new sh[i.type](Z2(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=vl(t).labelEl=new lt(Z2(n.label));t.add(i),K2(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=vl(t).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,a){var i=vl(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),K2(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=oh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){qi(u.event)},onmousedown:Zb(this._onHandleDragMove,this,0,0),drift:Zb(this._onHandleDragMove,this),ondragend:Zb(this._onHandleDragEnd,this)}),r.add(a)),q2(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");ue(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,df(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){j2(this._axisPointerModel,!n&&this._moveAnimation,this._handle,jb(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(jb(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(jb(a)),vl(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),bv(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function j2(e,t,n,r){oW(vl(n).lastProp,r)||(vl(n).lastProp=r,t?ct(n,r,e):(n.stopAnimation(),n.attr(r)))}function oW(e,t){if(Re(e)&&Re(t)){var n=!0;return k(t,function(r,a){n=n&&oW(e[a],r)}),!!n}else return e===t}function K2(e,t){e[t.get(["label","show"])?"show":"hide"]()}function jb(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function q2(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}const kA=U0e;function LA(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function sW(e,t,n,r,a){var i=n.get("value"),o=lW(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=sf(s.get("padding")||0),u=s.getFont(),c=th(o,u),f=a.position,d=c.width+l[1]+l[3],v=c.height+l[0]+l[2],h=a.align;h==="right"&&(f[0]-=d),h==="center"&&(f[0]-=d/2);var g=a.verticalAlign;g==="bottom"&&(f[1]-=v),g==="middle"&&(f[1]-=v/2),Y0e(f,d,v,r);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:kt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function Y0e(e,t,n,r){var a=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function lW(e,t,n,r,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:UT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),we(o)?i=o.replace("{value}",i):Le(o)&&(i=o(s))}return i}function EA(e,t,n){var r=ya();return mu(r,r,n.rotation),xi(r,r,n.position),Fa([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function uW(e,t,n,r,a,i){var o=no.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),sW(t,r,a,i,{position:EA(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RA(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function cW(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function J2(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var X0e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=Q2(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=LA(i),v=Z0e[u](s,f,c);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=Bx(l.model,a);uW(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=Bx(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=EA(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Q2(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,v=[d,d];v[c]=f[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:v,tooltipOption:h[c]}},t}(kA);function Q2(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Z0e={line:function(e,t,n){var r=RA([t,n[0]],[t,n[1]],eR(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:cW([t-r/2,n[0]],[r,a],eR(e))}}};function eR(e){return e.dim==="x"?0:1}const j0e=X0e;var K0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}},t}(ot);const q0e=K0e;var $i=it(),J0e=k;function fW(e,t,n){if(!st.node){var r=t.getZr();$i(r).records||($i(r).records={}),Q0e(r,t);var a=$i(r).records[e]||($i(r).records[e]={});a.handler=n}}function Q0e(e,t){if($i(e).initialized)return;$i(e).initialized=!0,n("click",He(tR,"click")),n("mousemove",He(tR,"mousemove")),n("globalout",t_e);function n(r,a){e.on(r,function(i){var o=n_e(t);J0e($i(e).records,function(s){s&&a(s,i,o.dispatchAction)}),e_e(o.pendings,t)})}}function e_e(e,t){var n=e.showTip.length,r=e.hideTip.length,a;n?a=e.showTip[n-1]:r&&(a=e.hideTip[r-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function t_e(e,t,n){e.handler("leave",null,n)}function tR(e,t,n,r){t.handler(e,n,r)}function n_e(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function rw(e,t){if(!st.node){var n=t.getZr(),r=($i(n).records||{})[e];r&&($i(n).records[e]=null)}}var r_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";fW("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){rw("axisPointer",r)},t.prototype.dispose=function(n,r){rw("axisPointer",r)},t.type="axisPointer",t}(Zt);const a_e=r_e;function dW(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=tu(i,e);if(o==null||o<0||ue(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,v=f==="x"||f==="radius"?1:0,h=i.mapDimension(d),g=[];g[v]=i.get(h,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(i.getValues(fe(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),n=[p.x+p.width/2,p.y+p.height/2]}return{point:n,el:s}}var nR=it();function i_e(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||Ce(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){hp(a)&&(a=dW({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=hp(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||hp(a),d={},v={},h={list:[],map:{}},g={showPointer:He(s_e,v),showTooltip:He(l_e,h)};k(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);k(s.coordSysAxesInfo[y],function(b,x){var S=b.axis,w=d_e(u,b);if(!f&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&rR(b,C,g,!1,d)}})});var p={};return k(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&k(_.axesInfo,function(b,x){var S=v[x];if(b!==m&&S){var w=S.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,aR(b),aR(m)))),p[m.key]=w}})}),k(p,function(m,y){rR(c[y],m,g,!0,d)}),u_e(v,c,d),c_e(h,a,e,o),f_e(c,o,n),d}}function rR(e,t,n,r,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=o_e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&oe(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function o_e(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return k(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,e,n);d=v.dataIndices,f=v.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var h=e-f,g=Math.abs(h);g<=o&&((g=0&&s<0)&&(o=g,s=h,a=f,i.length=0),k(d,function(p){i.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function s_e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function l_e(e,t,n,r){var a=n.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Av(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function u_e(e,t,n){var r=n.axesInfo=[];k(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function c_e(e,t,n,r){if(hp(t)||!e.list.length){r({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function f_e(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=nR(r)[a]||{},o=nR(r)[a]={};k(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&k(f.seriesDataIndices,function(d){var v=d.seriesIndex+" | "+d.dataIndex;o[v]=d})});var s=[],l=[];k(i,function(u,c){!o[c]&&l.push(u)}),k(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function d_e(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function aR(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function hp(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function bh(e){xu.registerAxisPointerClass("CartesianAxisPointer",j0e),e.registerComponentModel(q0e),e.registerComponentView(a_e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ue(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Qfe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},i_e)}function v_e(e){Ke(BH),Ke(bh)}var h_e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var v=LA(i),h=p_e[d](s,l,f,c);h.style=v,n.graphicKey=h.type,n.pointer=h}var g=i.get(["label","margin"]),p=g_e(r,a,i,l,g);sW(n,a,i,o,p)},t}(kA);function g_e(e,t,n,r,a){var i=t.axis,o=i.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=ya();mu(d,d,s),xi(d,d,[r.cx,r.cy]),u=Fa([o,-a],d);var v=t.getModel("axisLabel").get("rotate")||0,h=no.innerTextLayout(s,v*Math.PI/180,-1);c=h.textAlign,f=h.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var p=r.cx,m=r.cy;c=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",f=Math.abs(u[1]-m)/g<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var p_e={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:RA(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:J2(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:J2(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const m_e=h_e;var y_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ot);const __e=y_e;var VA=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",on).models[0]},t.type="polarAxis",t}(ot);fn(VA,dh);var b_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(VA),S_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(VA),OA=function(e){ee(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(ja);OA.prototype.dataToRadius=ja.prototype.dataToCoord;OA.prototype.radiusToData=ja.prototype.coordToData;const x_e=OA;var w_e=it(),NA=function(e){ee(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=th(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var v=Math.max(0,Math.floor(d)),h=w_e(n.model),g=h.lastAutoInterval,p=h.lastTickCount;return g!=null&&p!=null&&Math.abs(g-v)<=1&&Math.abs(p-o)<=1&&g>v?v=g:(h.lastTickCount=o,h.lastAutoInterval=v),v},t}(ja);NA.prototype.dataToAngle=ja.prototype.dataToCoord;NA.prototype.angleToData=ja.prototype.coordToData;const C_e=NA;var vW=["radius","angle"],T_e=function(){function e(t){this.dimensions=vW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new x_e,this._angleAxis=new C_e,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===t&&n.push(r),a.scale.type===t&&n.push(a),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,n,r){var a=iR(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=iR(n);return a===this?this.pointToData(r):null},e}();function iR(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const A_e=T_e;function I_e(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=be(r[0],a),e.cy=be(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:ue(l)||(l=[0,l]);var u=[be(l[0],s),be(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function P_e(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();k(hm(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),k(hm(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Rc(r.scale,r.model),Rc(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function D_e(e){return e.mainType==="angleAxis"}function oR(e,t){if(e.type=t.get("type"),e.scale=f0(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),D_e(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var M_e={dimensions:vW,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new A_e(a+"");i.update=P_e;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");oR(o,l),oR(s,u),I_e(i,r,t),n.push(i),r.coordinateSystem=i,i.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",on).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const k_e=M_e;var L_e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Rg(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function Vg(e){var t=e.getRadiusAxis();return t.inverse?0:1}function sR(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var E_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=fe(a.getViewLabels(),function(c){c=Ve(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});sR(u),sR(s),k(L_e,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&R_e[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(xu),R_e={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=Vg(n),l=s?0:1,u;i[l]===0?u=new Ai({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Xy({shape:{cx:n.cx,cy:n.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,n,r,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Vg(n)],u=fe(r,function(c){return new kn({shape:Rg(n,[l,l+s],c.coord)})});e.add(sa(u,{style:Ee(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Vg(n)],c=[],f=0;fm?"left":"right",b=Math.abs(p[1]-y)/g<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[h]){var x=s[h];Re(x)&&x.textStyle&&(v=new Lt(x.textStyle,l,l.ecModel))}var S=new lt({silent:no.isLabelSilent(t),style:kt(v,{x:p[0],y:p[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:b})});if(e.add(S),c){var w=no.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,$e(S).eventData=w}},this)},splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",M=w;x&&(r[c][P]||(r[c][P]={p:w,n:w}),M=r[c][P][D]);var L=void 0,R=void 0,O=void 0,H=void 0;if(h.dim==="radius"){var V=h.dataToCoord(A)-w,G=l.dataToCoord(P);Math.abs(V)=H})}}})}function H_e(e){var t={};k(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=gW(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var v=hW(r);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var h=be(r.get("barWidth"),c),g=be(r.get("barMaxWidth"),c),p=r.get("barGap"),m=r.get("barCategoryGap");h&&!d[v].width&&(h=Math.min(f.remainedWidth,h),d[v].width=h,f.remainedWidth-=h),g&&(d[v].maxWidth=g),p!=null&&(f.gap=p),m!=null&&(f.categoryGap=m)});var n={};return k(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=be(r.categoryGap,o),l=be(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),k(i,function(g,p){var m=g.maxWidth;m&&m=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(t,n,r){var a=lR(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=lR(n);return a===this?this.pointToData(r):null},e}();function lR(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function nbe(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new tbe(r,e,t);i.name="single_"+a,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",on).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var rbe={create:nbe,dimensions:mW};const abe=rbe;var uR=["x","y"],ibe=["width","height"],obe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=qb(l,1-Dm(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=LA(i),v=sbe[f](s,c,u);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=aw(a);uW(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=aw(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=EA(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=Dm(o),u=qb(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=qb(s,1-l),d=(f[1]+f[0])/2,v=[d,d];return v[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(kA),sbe={line:function(e,t,n){var r=RA([t,n[0]],[t,n[1]],Dm(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:cW([t-r/2,n[0]],[r,a],Dm(e))}}};function Dm(e){return e.isHorizontal()?0:1}function qb(e,t){var n=e.getRect();return[n[uR[t]],n[uR[t]]+n[ibe[t]]]}const lbe=obe;var ube=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(Zt);function cbe(e){Ke(bh),xu.registerAxisPointerClass("SingleAxisPointer",lbe),e.registerComponentView(ube),e.registerComponentView(J_e),e.registerComponentModel(Kb),Oc(e,"single",Kb,Kb.defaultOption),e.registerCoordinateSystem("single",abe)}var fbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=lf(n);e.prototype.init.apply(this,arguments),cR(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),cR(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(ot);function cR(e,t){var n=e.cellSize,r;ue(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=fe([0,1],function(i){return _ie(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});ds(e,t,{type:"box",ignoreSize:a})}const dbe=fbe;var vbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},t.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new at({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){h(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}h(s.getNextNDay(r.end.time,1).formatedDate);function h(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var p=o._getLinePointsOfOneWeek(n,g,a);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),u&&o._drawSplitline(p,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},t.prototype._drawSplitline=function(n,r,a){var i=new kr({z2:20,shape:{points:n},style:r});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return we(n)&&n?pie(n,r):Le(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,v={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},h=r.start.y;+r.end.y>+r.start.y&&(h=h+"-"+r.end.y);var g=o.get("formatter"),p={start:r.start.y,end:r.end.y,nameMap:h},m=this._formatterLabel(g,p),y=new lt({z2:30,style:kt(o,{text:m})});y.attr(this._yearTextPositionControl(y,v[l],a,l,s)),i.add(y)}},t.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||we(s))&&(s&&(r=vx(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",g=0;g=a.start.time&&r.times.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/Jb)-Math.floor(n[0].time/Jb)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var a=this._getRangeInfo(r);if(t>a.weeks||t===0&&na.lweek)return null;var i=(t-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(a){var i=new e(a);r.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function fR(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const pbe=gbe;function mbe(e){e.registerComponentModel(dbe),e.registerComponentView(hbe),e.registerCoordinateSystem("calendar",pbe)}function ybe(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function dR(e,t){var n;return k(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function _be(e,t,n){var r=oe({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Ye(a,r,!0),ds(a,r,{ignoreSize:!0}),nG(n,a),Og(n,a),Og(n,a,"shape"),Og(n,a,"style"),Og(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var yW=["transition","enterFrom","leaveTo"],bbe=yW.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Og(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?yW:bbe,a=0;a=0;c--){var f=a[c],d=hn(f.id,null),v=d!=null?o.get(d):null;if(v){var h=v.parent,m=na(h),y=h===i?{width:s,height:l}:{width:m.width,height:m.height},_={},b=r0(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!na(v).isNew&&b){for(var x=f.transition,S={},w=0;w=0)?S[C]=T:v[C]=T}ct(v,S,n,0)}else v.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){gp(a,na(a).option,r,n._lastGraphicModel)}),this._elMap=De()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Zt);function iw(e){var t=Te(vR,e)?vR[e]:pT(e),n=new t({});return na(n).type=e,n}function hR(e,t,n,r){var a=iw(n);return t.add(a),r.set(e,a),na(a).id=e,na(a).isNew=!0,a}function gp(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){gp(i,t,n,r)}),_0(e,t,r),n.removeKey(na(e).id))}function gR(e,t,n,r){e.isGroup||k([["cursor",_a.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];Te(t,i)?e[i]=Ue(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),k(tt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Le(i)?i:null}}),Te(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Cbe(e){return e=oe({},e),k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(tG),function(t){delete e[t]}),e}function Tbe(e,t,n){var r=$e(e).eventData;!e.silent&&!e.ignore&&!r&&(r=$e(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function Abe(e){e.registerComponentModel(xbe),e.registerComponentView(wbe),e.registerPreprocessor(function(t){var n=t.graphic;ue(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var pR=["x","y","radius","angle","single"],Ibe=["cartesian2d","polar","singleAxis"];function Pbe(e){var t=e.get("coordinateSystem");return je(Ibe,t)>=0}function jo(e){return e+"Axis"}function Dbe(e,t){var n=De(),r=[],a=De();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,v){var h=n.get(d);h&&h[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function _W(e){var t=e.ecModel,n={infoList:[],infoMap:De()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(jo(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var Qb=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Mbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var i=mR(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=mR(n);Ye(this.option,n,!0),Ye(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=De(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return k(pR,function(a){var i=this.getReferringComponents(jo(a),Kne);if(i.specified){r=!0;var o=new Qb;k(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new Qb;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",on).models[0];v&&k(u,function(h){f.componentIndex!==h.componentIndex&&v===h.getReferringComponents("grid",on).models[0]&&d.add(h.componentIndex)})}}}i&&k(pR,function(u){if(i){var c=a.findComponents({mainType:jo(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new Qb;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(jo(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){k(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(jo(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;k(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!b&&!x)return!0;_&&(p=!0),b&&(h=!0),x&&(g=!0)}return p&&h&&g})}else ec(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var h={};h[v]=o,u.selectRange(h)}});ec(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;ec(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=gt(r[0]+o,r,[0,100],!0):i!=null&&(o=gt(i,[0,100],r,!0)-r[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=D5(r,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},e}();function Nbe(e,t,n){var r=[1/0,-1/0];ec(n,function(o){sue(r,o.getData(),t)});var a=e.getAxisModel(),i=O3(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Bbe=Obe;var zbe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(jo(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bbe(a,i,s,e),n.push(o.__dzAxisProxy))});var r=De();return k(n,function(a){k(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Fbe=zbe;function $be(e){e.registerAction("dataZoom",function(t,n){var r=Dbe(n,t);k(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var _R=!1;function zA(e){_R||(_R=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Fbe),$be(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Gbe(e){e.registerComponentModel(Lbe),e.registerComponentView(Vbe),zA(e)}var ia=function(){function e(){}return e}(),bW={};function tc(e,t){bW[e]=t}function SW(e){return bW[e]}var Hbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;k(this.option.feature,function(r,a){var i=SW(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Ye(r,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.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"}},t}(ot);const Wbe=Hbe;function Ube(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=gn(r,i,a);$l(t.get("orient"),e,t.get("itemGap"),o.width,o.height),r0(e,r,i,a)}function xW(e,t){var n=sf(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new at({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Ybe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];k(u,function(h,g){f.push(g)}),new to(this._featureNames||[],f).add(d).update(d).remove(He(d,null)).execute(),this._featureNames=f;function d(h,g){var p=f[h],m=f[g],y=u[p],_=new Lt(y,n,n.ecModel),b;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!m){if(Xbe(p))b={onclick:_.option.onclick,featureName:p};else{var x=SW(p);if(!x)return;b=new x}c[p]=b}else if(b=c[m],!b)return;b.uid=of("toolbox-feature"),b.model=_,b.ecModel=r,b.api=a;var S=b instanceof ia;if(!p&&m){S&&b.dispose&&b.dispose(r,a);return}if(!_.get("show")||S&&b.unusable){S&&b.remove&&b.remove(r,a);return}v(_,b,p),_.setIconStatus=function(w,C){var T=this.option,A=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=C,A[w]&&(C==="emphasis"?Qi:eo)(A[w])},b instanceof ia&&b.render&&b.render(_,r,a,i)}function v(h,g,p){var m=h.getModel("iconStyle"),y=h.getModel(["emphasis","iconStyle"]),_=g instanceof ia&&g.getIcons?g.getIcons():h.get("icon"),b=h.get("title")||{},x,S;we(_)?(x={},x[p]=_):x=_,we(b)?(S={},S[p]=b):S=b;var w=h.iconPaths={};k(x,function(C,T){var A=oh(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var P=A.ensureState("emphasis");P.style=y.getItemStyle();var D=new lt({style:{text:S[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});A.setTextContent(D),rf({el:A,componentModel:n,itemName:T,formatterParamsExtra:{title:S[T]}}),A.__title=S[T],A.on("mouseover",function(){var M=y.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:y.get("textFill")||M.fill||M.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||L}),D.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){h.get(["iconStatus",T])!=="emphasis"&&a.leaveEmphasis(this),D.hide()}),(h.get(["iconStatus",T])==="emphasis"?Qi:eo)(A),o.add(A),A.on("click",Ce(g.onclick,g,r,a,T)),w[T]=A})}Ube(o,n,a),o.add(xW(o.getBoundingRect(),n)),l||o.eachChild(function(h){var g=h.__title,p=h.ensureState("emphasis"),m=p.textConfig||(p.textConfig={}),y=h.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Le(_)&&g){var b=_.style||(_.style={}),x=th(g,lt.makeFont(b)),S=h.x+o.x,w=h.y+o.y+s,C=!1;w+x.height>a.getHeight()&&(m.position="top",C=!0);var T=C?-5-x.height:s+10;S+x.width/2>a.getWidth()?(m.position=["100%",T],b.align="right"):S-x.width/2<0&&(m.position=[0,T],b.align="left")}})},t.prototype.updateView=function(n,r,a,i){k(this._features,function(o){o instanceof ia&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){k(this._features,function(a){a instanceof ia&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){k(this._features,function(a){a instanceof ia&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(Zt);function Xbe(e){return e.indexOf("my")===0}const Zbe=Ybe;var jbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=st.browser;if(Le(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),v=d[0].indexOf("base64")>-1,h=o?decodeURIComponent(d[1]):d[1];v&&(h=window.atob(h));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,m=new Uint8Array(p);p--;)m[p]=h.charCodeAt(p);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var b=_.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var S=a.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=i}},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(ia);const Kbe=jbe;var bR="__ec_magicType_stack__",qbe=[["line","bar"],["stack"]],Jbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return k(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(SR[a]){var s={series:[]},l=function(f){var d=f.subType,v=f.id,h=SR[a](d,v,f,i);h&&(Ee(h,f.option),s.series.push(h));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var m=p.dim,y=m+"Axis",_=f.getReferringComponents(y,on).models[0],b=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=b;x++)s[y][b]=s[y][b]||{};s[y][b].boundaryGap=a==="bar"}}};k(qbe,function(f){je(f,a)>=0&&k(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Ye({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ia),SR={line:function(e,t,n,r){if(e==="bar")return Ye({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Ye({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===bR;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Ye({id:t,stack:a?"":bR},r.get(["option","stack"])||{},!0)}};Mi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const Qbe=Jbe;var b0=new Array(60).join("-"),zc=" ";function eSe(e){var t={},n=[],r=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function tSe(e){var t=[];return k(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(fe(n.series,function(v){return v.name})),l=[a.model.getCategories()];k(n.series,function(v){var h=v.getRawData();l.push(v.getRawData().mapArray(h.mapDimension(o),function(g){return g}))});for(var u=[s.join(zc)],c=0;c=0)return!0}var sw=new RegExp("["+zc+"]+","g");function iSe(e){for(var t=e.split(/\n+/g),n=Mm(t.shift()).split(sw),r=[],a=fe(n,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function dSe(e){var t=FA(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return wW(n,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){r[i]=a;break}}),r}function vSe(e){CW(e).snapshots=null}function hSe(e){return FA(e).length}function FA(e){var t=CW(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var gSe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){vSe(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(ia);Mi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const pSe=gSe;var mSe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ySe=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=xR(n,t);k(_Se,function(o,s){(!r||!r.include||je(r.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=tS[r.brushType](0,i,a);r.__rangeOffset={offset:AR[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){k(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&k(i.coordSyses,function(o){var s=tS[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){k(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=tS[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?AR[r.brushType](i.values,o.offset,bSe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return fe(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:k4(a),isTargetByCursor:E4(a,t,r.coordSysModel),getLinearBrushOtherExtent:L4(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&je(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=xR(n,t),i=0;ie[1]&&e.reverse(),e}function xR(e,t){return Cd(e,t,{includeMainTypes:mSe})}var _Se={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=Pe(),o={},s={};!n&&!r&&!a||(k(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),k(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),k(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];k(u.getCartesians(),function(f,d){(je(n,f.getAxis("x").model)>=0||je(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:CR.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){k(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:CR.geo})})}},wR=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],CR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Fl(e)),t}},tS={lineX:He(TR,0),lineY:He(TR,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[lw([a[0],i[0]]),lw([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=fe(n,function(o){var s=e?t.pointToData(o,r):t.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function TR(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=lw(fe([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var AR={lineX:He(IR,0),lineY:He(IR,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return fe(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function IR(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function bSe(e,t){var n=PR(e),r=PR(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function PR(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const $A=ySe;var uw=k,SSe=Une("toolbox-dataZoom_"),xSe=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new SA(a.getZr()),this._brushController.on("brush",Ce(this._onBrush,this)).mount()),TSe(n,r,this,i,a),CSe(n,r)},t.prototype.onclick=function(n,r,a){wSe[a].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new $A(GA(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),fSe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),v=d.model,h=l(u,v,i),g=h.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=wu(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),h&&(a[h.id]={dataZoomId:h.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var h=v.getAxisModel(u,c.componentIndex);h&&(d=v)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];uw(n,function(a,i){r.push(Ve(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(ia),wSe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(dSe(this.ecModel))}};function GA(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function CSe(e,t){e.setIconStatus("back",hSe(t)>1?"emphasis":"normal")}function TSe(e,t,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new $A(GA(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Tie("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),a=[],i=GA(r),o=Cd(e,i);uw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),uw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:SSe+u+f};d[c]=f,a.push(d)}return a});const ASe=xSe;function ISe(e){e.registerComponentModel(Wbe),e.registerComponentView(Zbe),tc("saveAsImage",Kbe),tc("magicType",Qbe),tc("dataView",cSe),tc("dataZoom",ASe),tc("restore",pSe),Ke(Gbe)}var PSe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(ot);const DSe=PSe;function TW(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function AW(e){if(st.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var h=t+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'
'}function OSe(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,a="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,a+=st.transformSupported?","+HA+r:",left"+r+",top"+r),LSe+":"+a}function DR(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!st.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=st.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+HA+":"+o+";":[["top",0],["left",0],[IW,o]]}function NSe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),k(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function BSe(e,t,n){var r=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=VG(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(OSe(a,n)),i&&r.push("background-color:"+i),k(["width","color","radius"],function(v){var h="border-"+v,g=Q$(h),p=e.get(g);p!=null&&r.push(h+":"+p+(v==="color"?"":"px"))}),r.push(NSe(c)),f!=null&&r.push("padding:"+sf(f).join("px ")+"px"),r.join(";")+";"}function MR(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&pte(e,o,document.body,r,a)}else{e[0]=r,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var zSe=function(){function e(t,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,st.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=n.getZr(),o=this._appendToBody=r&&r.appendToBody;MR(this._styleCoord,i,o,n.getWidth()/2,n.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Qr(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var n=this._container,r=kSe(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=ESe+BSe(t,!this._firstShow,this._longHide)+DR(i[0],i[1],!0)+("border-color:"+au(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(we(i)&&r.get("trigger")==="item"&&!TW(r)&&(s=VSe(r,a,i)),we(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ue(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||st.node||!a.getDom())){var o=ER(i,a);this._ticket="";var s=i.dataByCoordSys,l=ZSe(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=HSe;c.x=i.x,c.y=i.y,c.update(),$e(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=dW(i,r),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(ER(i,a))},t.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=Uf([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){this._lastDataByCoordSys=null;var s,l;Cl(a,function(u){if($e(u).dataIndex!=null)return s=u,!0;if($e(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(n,s,r):l?this._showComponentItemTooltip(n,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Ce(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=Uf([r.tooltipOption],i),l=this._renderMode,u=[],c=wn("section",{blocks:[],noHeader:!0}),f=[],d=new F_;k(n,function(y){k(y.dataByAxis,function(_){var b=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var S=lW(x,b.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=wn("section",{header:S,noHeader:!Va(S),sortBlocks:!0,blocks:[]});c.blocks.push(w),k(_.seriesDataIndices,function(C){var T=a.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,P=T.getDataParams(A);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=UT(b.axis,{value:x}),P.axisValueLabel=S,P.marker=d.makeTooltipMarker("item",au(P.color),l);var D=yk(T.formatTooltip(A,!0,null)),M=D.frag;if(M){var L=Uf([T],i).get("valueFormatter");w.blocks.push(L?oe({valueFormatter:L},M):M)}D.text&&f.push(D.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var v=r.position,h=s.get("order"),g=Ck(c,d,l,h,a.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var p=l==="richText"?` +`));if(t.indexOf(zc)>=0)return!0}var ow=new RegExp("["+zc+"]+","g");function iSe(e){for(var t=e.split(/\n+/g),n=Mm(t.shift()).split(ow),r=[],a=fe(n,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function dSe(e){var t=FA(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return wW(n,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){r[i]=a;break}}),r}function vSe(e){CW(e).snapshots=null}function hSe(e){return FA(e).length}function FA(e){var t=CW(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var gSe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){vSe(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(ia);Mi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const pSe=gSe;var mSe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ySe=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=xR(n,t);k(_Se,function(o,s){(!r||!r.include||je(r.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=eS[r.brushType](0,i,a);r.__rangeOffset={offset:AR[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){k(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&k(i.coordSyses,function(o){var s=eS[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){k(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=eS[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?AR[r.brushType](i.values,o.offset,bSe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return fe(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:k4(a),isTargetByCursor:E4(a,t,r.coordSysModel),getLinearBrushOtherExtent:L4(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&je(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=xR(n,t),i=0;ie[1]&&e.reverse(),e}function xR(e,t){return Cd(e,t,{includeMainTypes:mSe})}var _Se={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=De(),o={},s={};!n&&!r&&!a||(k(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),k(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),k(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];k(u.getCartesians(),function(f,d){(je(n,f.getAxis("x").model)>=0||je(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:CR.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){k(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:CR.geo})})}},wR=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],CR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Fl(e)),t}},eS={lineX:He(TR,0),lineY:He(TR,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[sw([a[0],i[0]]),sw([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=fe(n,function(o){var s=e?t.pointToData(o,r):t.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function TR(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=sw(fe([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var AR={lineX:He(IR,0),lineY:He(IR,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return fe(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function IR(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function bSe(e,t){var n=PR(e),r=PR(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function PR(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const $A=ySe;var lw=k,SSe=Une("toolbox-dataZoom_"),xSe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new SA(a.getZr()),this._brushController.on("brush",Ce(this._onBrush,this)).mount()),TSe(n,r,this,i,a),CSe(n,r)},t.prototype.onclick=function(n,r,a){wSe[a].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new $A(GA(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),fSe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),v=d.model,h=l(u,v,i),g=h.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=wu(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),h&&(a[h.id]={dataZoomId:h.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var h=v.getAxisModel(u,c.componentIndex);h&&(d=v)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];lw(n,function(a,i){r.push(Ve(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(ia),wSe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(dSe(this.ecModel))}};function GA(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function CSe(e,t){e.setIconStatus("back",hSe(t)>1?"emphasis":"normal")}function TSe(e,t,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new $A(GA(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Tie("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),a=[],i=GA(r),o=Cd(e,i);lw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),lw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:SSe+u+f};d[c]=f,a.push(d)}return a});const ASe=xSe;function ISe(e){e.registerComponentModel(Wbe),e.registerComponentView(Zbe),tc("saveAsImage",Kbe),tc("magicType",Qbe),tc("dataView",cSe),tc("dataZoom",ASe),tc("restore",pSe),Ke(Gbe)}var PSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(ot);const DSe=PSe;function TW(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function AW(e){if(st.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var h=t+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'
'}function OSe(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,a="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,a+=st.transformSupported?","+HA+r:",left"+r+",top"+r),LSe+":"+a}function DR(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!st.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=st.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+HA+":"+o+";":[["top",0],["left",0],[IW,o]]}function NSe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),k(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function BSe(e,t,n){var r=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=VG(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(OSe(a,n)),i&&r.push("background-color:"+i),k(["width","color","radius"],function(v){var h="border-"+v,g=Q$(h),p=e.get(g);p!=null&&r.push(h+":"+p+(v==="color"?"":"px"))}),r.push(NSe(c)),f!=null&&r.push("padding:"+sf(f).join("px ")+"px"),r.join(";")+";"}function MR(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&pte(e,o,document.body,r,a)}else{e[0]=r,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var zSe=function(){function e(t,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,st.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=n.getZr(),o=this._appendToBody=r&&r.appendToBody;MR(this._styleCoord,i,o,n.getWidth()/2,n.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Qr(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var n=this._container,r=kSe(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=ESe+BSe(t,!this._firstShow,this._longHide)+DR(i[0],i[1],!0)+("border-color:"+au(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(we(i)&&r.get("trigger")==="item"&&!TW(r)&&(s=VSe(r,a,i)),we(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ue(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||st.node||!a.getDom())){var o=ER(i,a);this._ticket="";var s=i.dataByCoordSys,l=ZSe(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=HSe;c.x=i.x,c.y=i.y,c.update(),$e(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=dW(i,r),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(ER(i,a))},t.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=Uf([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){this._lastDataByCoordSys=null;var s,l;Cl(a,function(u){if($e(u).dataIndex!=null)return s=u,!0;if($e(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(n,s,r):l?this._showComponentItemTooltip(n,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Ce(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=Uf([r.tooltipOption],i),l=this._renderMode,u=[],c=wn("section",{blocks:[],noHeader:!0}),f=[],d=new z_;k(n,function(y){k(y.dataByAxis,function(_){var b=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var S=lW(x,b.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=wn("section",{header:S,noHeader:!Va(S),sortBlocks:!0,blocks:[]});c.blocks.push(w),k(_.seriesDataIndices,function(C){var T=a.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,P=T.getDataParams(A);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=UT(b.axis,{value:x}),P.axisValueLabel=S,P.marker=d.makeTooltipMarker("item",au(P.color),l);var D=yk(T.formatTooltip(A,!0,null)),M=D.frag;if(M){var L=Uf([T],i).get("valueFormatter");w.blocks.push(L?oe({valueFormatter:L},M):M)}D.text&&f.push(D.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var v=r.position,h=s.get("order"),g=Ck(c,d,l,h,a.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var p=l==="richText"?` -`:"
",m=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=$e(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),v=this._renderMode,h=n.positionDefault,g=Uf([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(c,f),y=new F_;m.marker=y.makeTooltipMarker("item",au(m.color),v);var _=yk(u.formatTooltip(c,!1,f)),b=g.get("order"),x=g.get("valueFormatter"),S=_.frag,w=S?Ck(x?oe({valueFormatter:x},S):S,y,v,b,i.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,w,m,C,n.offsetX,n.offsetY,n.position,n.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=$e(r),o=i.tooltipConfig,s=o.option||{};if(we(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=n.positionDefault,d=Uf(u,this._tooltipModel,f?{position:f}:null),v=d.get("content"),h=Math.random()+"",g=new F_;this._showOrMove(d,function(){var p=Ve(d.get("formatterParams")||{});this._showTooltipContent(d,v,p,h,n.offsetX,n.offsetY,n.position,r,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var v=r,h=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),g=h.color;if(d)if(we(d)){var p=n.ecModel.get("useUTC"),m=ue(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=d,y&&(v=Qy(m.axisValue,v,p)),v=eG(v,a,!0)}else if(Le(d)){var _=Ce(function(b,x){b===this._ticket&&(f.setContent(x,c,n,g,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,v=d(a,i,_)}else v=d;f.setContent(v,c,n,g,l),f.show(n,g),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||ue(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!ue(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),v=n.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),Le(r)&&(r=r([a,i],s,o.el,h,{viewSize:[u,c],contentSize:f.slice()})),ue(r))a=be(r[0],u),i=be(r[1],c);else if(Re(r)){var g=r;g.width=f[0],g.height=f[1];var p=gn(g,{width:u,height:c});a=p.x,i=p.y,d=null,v=null}else if(we(r)&&l){var m=XSe(r,h,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=USe(a,i,o,u,c,d?null:20,v?null:20);a=m[0],i=m[1]}if(d&&(a-=RR(d)?f[0]/2:d==="right"?f[0]:0),v&&(i-=RR(v)?f[1]/2:v==="bottom"?f[1]:0),TW(n)){var m=YSe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&k(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&k(u,function(d,v){var h=f[v]||{},g=d.seriesDataIndices||[],p=h.seriesDataIndices||[];o=o&&d.value===h.value&&d.axisType===h.axisType&&d.axisId===h.axisId&&g.length===p.length,o&&k(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&k(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=r[y],b=i[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){st.node||!r.getDom()||(bv(this,"_updatePosition"),this._tooltipContent.dispose(),aw("itemTooltip",r))},t.type="tooltip",t}(Zt);function Uf(e,t,n){var r=t.ecModel,a;n?(a=new Lt(n,r,r),a=new Lt(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Lt&&(o=o.get("tooltip",!0)),we(o)&&(o={formatter:o}),o&&(a=new Lt(o,a,r)))}return a}function ER(e,t){return e.dispatchAction||Ce(t.dispatchAction,t)}function USe(e,t,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>r?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function YSe(e,t,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function XSe(e,t,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function RR(e){return e==="center"||e==="middle"}function ZSe(e,t,n){var r=rT(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=nh(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=$e(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const jSe=WSe;function KSe(e){Ke(bh),e.registerComponentModel(DSe),e.registerComponentView(jSe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rn)}var qSe=["rect","polygon","keep","clear"];function JSe(e,t){var n=bt(e?e.brush:[]);if(n.length){var r=[];k(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;ue(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),QSe(s),t&&!s.length&&s.push.apply(s,qSe)}}function QSe(e){var t={};k(e,function(n){t[n]=1}),e.length=0,k(t,function(n,r){e.push(r)})}var VR=k;function OR(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function cw(e,t,n){var r={};return VR(t,function(i){var o=r[i]=a();VR(e[i],function(s,l){if(Fn.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new Fn(u),l==="opacity"&&(u=Ve(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Fn(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function DW(e,t,n){var r;k(n,function(a){t.hasOwnProperty(a)&&OR(t[a])&&(r=!0)}),r&&k(n,function(a){t.hasOwnProperty(a)&&OR(t[a])?e[a]=Ve(t[a]):delete e[a]})}function e1e(e,t,n,r,a,i){var o={};k(e,function(f){var d=Fn.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return RT(n,s,f)}function u(f,d){UG(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var v=n.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var h=r.call(a,f),g=t[h],p=o[h],m=0,y=p.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&$R(t)}};function $R(e){return new Xe(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var l1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new SA(r.getZr())).on("brush",Ce(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){MW(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ve(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ve(a),$from:r})},t.type="brush",t}(Zt);const u1e=l1e;var c1e="#ddd",f1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&DW(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:c1e},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=fe(n,function(r){return GR(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=GR(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(ot);function GR(e,t){return Ye({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Lt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const d1e=f1e;var v1e=["rect","polygon","lineX","lineY","keep","clear"],h1e=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,k(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return k(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:v1e.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(ia);const g1e=h1e;function p1e(e){e.registerComponentView(u1e),e.registerComponentModel(d1e),e.registerPreprocessor(JSe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,r1e),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rn),tc("brush",g1e)}var m1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.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"}},t}(ot),y1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Ue(n.get("textBaseline"),n.get("textVerticalAlign")),c=new lt({style:kt(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),v=new lt({style:kt(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=n.get("link"),g=n.get("sublink"),p=n.get("triggerEvent",!0);c.silent=!h&&!p,v.silent=!g&&!p,h&&c.on("click",function(){im(h,"_"+n.get("target"))}),g&&v.on("click",function(){im(g,"_"+n.get("subtarget"))}),$e(c).eventData=$e(v).eventData=p?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(v);var m=i.getBoundingRect(),y=n.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=gn(y,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),m=i.getBoundingRect();var x=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var w=new at({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(Zt);function _1e(e){e.registerComponentModel(m1e),e.registerComponentView(y1e)}var b1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],k(r,function(u,c){var f=hn(ef(u),""),d;Re(u)?(d=Ve(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new fr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(ot);const HR=b1e;var kW=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=Is(HR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(HR);fn(kW,DT.prototype);const S1e=kW;var x1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(Zt);const w1e=x1e;var C1e=function(e){ne(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ja);const T1e=C1e;var rS=Math.PI,WR=it(),A1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return wn("nameValue",{noName:!0,value:c})},k(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=P1e(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:rS/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),v=d.get("show",!0),h=v?d.get("itemSize"):0,g=v?d.get("itemGap"):0,p=h+g,m=n.get(["label","rotate"])||0;m=m*rS/180;var y,_,b,x=d.get("position",!0),S=v&&d.get("showPlayBtn",!0),w=v&&d.get("showPrevBtn",!0),C=v&&d.get("showNextBtn",!0),T=0,A=f;x==="left"||x==="bottom"?(S&&(y=[0,0],T+=p),w&&(_=[T,0],T+=p),C&&(b=[A-h,0],A-=p)):(S&&(y=[A-h,0],A-=p),w&&(_=[0,0],T+=p),C&&(b=[A-h,0],A-=p));var P=[T,A];return n.get("inverse")&&P.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:_,nextBtnPosition:b,axisExtent:P,controlSize:h,controlGap:g}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=ya(),l=o.x,u=o.y+o.height;xi(s,s,[-l,-u]),mu(s,s,-rS/2),xi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(a.getBoundingRect()),d=y(i.getBoundingRect()),v=[a.x,a.y],h=[i.x,i.y];h[0]=v[0]=c[0][0];var g=n.labelPosOpt;if(g==null||we(g)){var p=g==="+"?0:1;_(v,f,c,1,p),_(h,d,c,1,1-p)}else{var p=g>=0?0:1;_(v,f,c,1,p),h[1]=v[1]+g}a.setPosition(v),i.setPosition(h),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function y(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function _(b,x,S,w,C){b[w]+=S[w][C]-x[w][C]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=I1e(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new T1e("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new Be;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:oe({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ee({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],k(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),h=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ce(o._changeTimeline,o,u.value)},p=UR(f,d,r,g);p.ensureState("emphasis").style=v.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),zl(p);var m=$e(p);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],k(u,function(c){var f=c.tickValue,d=l.getItemModel(f),v=d.getModel("label"),h=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),p=a.dataToCoord(c.tickValue),m=new lt({x:p,y:0,rotation:n.labelRotation-n.rotation,onclick:Ce(o._changeTimeline,o,f),silent:!1,style:kt(v,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=kt(h),m.ensureState("progress").style=kt(g),r.add(m),zl(m),WR(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",Ce(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Ce(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Ce(this._handlePlayClick,this,!c),!0);function d(v,h,g,p){if(v){var m=Wa(Ue(i.get(["controlStyle",h+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=D1e(i,h+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),zl(_)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Ce(u._handlePointerDrag,u),f.ondragend=Ce(u._handlePointerDragend,u),YR(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){YR(f,u._progressLine,s,a,i)}};this._currentPointer=UR(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=da(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var aS={min:He(zg,"min"),max:He(zg,"max"),average:He(zg,"average"),median:He(zg,"median")};function Ev(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!N1e(t)&&!ue(t.coord)&&ue(a)){var i=EW(t,n,r,e);if(t=Ve(t),t.type&&aS[t.type]&&i.baseAxis&&i.valueAxis){var o=je(a,i.baseAxis.dim),s=je(a,i.valueAxis.dim),l=aS[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!ue(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)aS[u[c]]&&(u[c]=UA(n,n.mapDimension(a[c]),u[c]));return t}}function EW(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(B1e(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function B1e(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Rv(e,t){return e&&e.containData&&t.coord&&!dw(t)?e.containData(t.coord):!0}function z1e(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!dw(t)&&!dw(n)?e.containZone(t.coord,n.coord):!0}function RW(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return ts(o,t[i])}:function(n,r,a,i){return ts(n.value,t[i])}}function UA(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var iS=it(),F1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Pe()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){iS(s).keep=!1}),r.eachSeries(function(s){var l=ms.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!iS(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){iS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;k(n,function(i){var o=ms.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?s$(l):uT(l))})}})},t.type="marker",t}(Zt);const YA=F1e;function ZR(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=be(i.get("x"),n.getWidth()),l=be(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var $1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=ms.getMarkerModelFromSeries(i,"markPoint");o&&(ZR(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new hh),f=G1e(o,n,r);r.setData(f),ZR(r.getData(),n,i),f.each(function(d){var v=f.getItemModel(d),h=v.getShallow("symbol"),g=v.getShallow("symbolSize"),p=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(Le(h)||Le(g)||Le(p)||Le(m)){var _=r.getRawValue(d),b=r.getDataParams(d);Le(h)&&(h=h(_,b)),Le(g)&&(g=g(_,b)),Le(p)&&(p=p(_,b)),Le(m)&&(m=m(_,b))}var x=v.getModel("itemStyle").getItemStyle(),S=uh(l,"color");x.fill||(x.fill=S),f.setItemVisual(d,{symbol:h,symbolSize:g,symbolRotate:p,symbolOffset:m,symbolKeepAspect:y,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(v){$e(v).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(YA);function G1e(e,t,n){var r;e?r=fe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return oe(oe({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new fr(r,n),i=fe(n.get("data"),He(Ev,t));e&&(i=yt(i,He(Rv,e)));var o=RW(!!e,r);return a.initData(i,null,o),a}const H1e=$1e;function W1e(e){e.registerComponentModel(O1e),e.registerComponentView(H1e),e.registerPreprocessor(function(t){WA(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var U1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ms);const Y1e=U1e;var Fg=it(),X1e=function(e,t,n,r){var a=e.getData(),i;if(ue(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=Mn(r.yAxis,r.xAxis);else{var u=EW(r,a,t,e);s=u.valueAxis;var c=b3(a,u.valueDataDim);l=UA(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,v=Ve(r),h={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,h.coord[d]=1/0;var g=n.get("precision");g>=0&&ut(l)&&(l=+l.toFixed(Math.min(g,20))),v.coord[f]=h.coord[f]=l,i=[v,h,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var p=[Ev(e,i[0]),Ev(e,i[1]),oe({},i[2])];return p[2].type=p[2].type||null,Ye(p[2],p[0]),Ye(p[2],p[1]),p};function km(e){return!isNaN(e)&&!isFinite(e)}function jR(e,t,n,r){var a=1-e,i=r.dimensions[e];return km(t[a])&&km(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function Z1e(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(jR(1,n,r,e)||jR(0,n,r,e)))return!0}return Rv(e,t[0])&&Rv(e,t[1])}function oS(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=be(o.get("x"),a.getWidth()),u=be(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Su(i,"cartesian2d")){var v=i.getAxis("x"),h=i.getAxis("y"),c=i.dimensions;km(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[n?0:1]):km(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var j1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=ms.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Fg(o).from,u=Fg(o).to;l.each(function(c){oS(l,c,!0,i,a),oS(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new gA);this.group.add(c.group);var f=K1e(o,n,r),d=f.from,v=f.to,h=f.line;Fg(r).from=d,Fg(r).to=v,r.setData(h);var g=r.get("symbol"),p=r.get("symbolSize"),m=r.get("symbolRotate"),y=r.get("symbolOffset");ue(g)||(g=[g,g]),ue(p)||(p=[p,p]),ue(m)||(m=[m,m]),ue(y)||(y=[y,y]),f.from.each(function(b){_(d,b,!0),_(v,b,!1)}),h.each(function(b){var x=h.getItemModel(b).getModel("lineStyle").getLineStyle();h.setItemLayout(b,[d.getItemLayout(b),v.getItemLayout(b)]),x.stroke==null&&(x.stroke=d.getItemVisual(b,"style").fill),h.setItemVisual(b,{fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:v.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(b,"symbolOffset"),toSymbolRotate:v.getItemVisual(b,"symbolRotate"),toSymbolSize:v.getItemVisual(b,"symbolSize"),toSymbol:v.getItemVisual(b,"symbol"),style:x})}),c.updateData(h),f.line.eachItemGraphicEl(function(b){$e(b).dataModel=r,b.traverse(function(x){$e(x).dataModel=r})});function _(b,x,S){var w=b.getItemModel(x);oS(b,x,S,n,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=uh(l,"color")),b.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ue(w.get("symbolOffset",!0),y[S?0:1]),symbolRotate:Ue(w.get("symbolRotate",!0),m[S?0:1]),symbolSize:Ue(w.get("symbolSize"),p[S?0:1]),symbol:Ue(w.get("symbol",!0),g[S?0:1]),style:C})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(YA);function K1e(e,t,n){var r;e?r=fe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return oe(oe({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new fr(r,n),i=new fr(r,n),o=new fr([],n),s=fe(n.get("data"),He(X1e,t,e,n));e&&(s=yt(s,He(Z1e,e)));var l=RW(!!e,r);return a.initData(fe(s,function(u){return u[0]}),null,l),i.initData(fe(s,function(u){return u[1]}),null,l),o.initData(fe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const q1e=j1e;function J1e(e){e.registerComponentModel(Y1e),e.registerComponentView(q1e),e.registerPreprocessor(function(t){WA(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Q1e=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ms);const exe=Q1e;var $g=it(),txe=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ev(e,a),s=Ev(e,i),l=o.coord,u=s.coord;l[0]=Mn(l[0],-1/0),l[1]=Mn(l[1],-1/0),u[0]=Mn(u[0],1/0),u[1]=Mn(u[1],1/0);var c=UC([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Lm(e){return!isNaN(e)&&!isFinite(e)}function KR(e,t,n,r){var a=1-e;return Lm(t[a])&&Lm(n[a])}function nxe(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return Su(e,"cartesian2d")?n&&r&&(KR(1,n,r)||KR(0,n,r))?!0:z1e(e,a,i):Rv(e,a)||Rv(e,i)}function qR(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=be(o.get(n[0]),a.getWidth()),u=be(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),v=i.clampData(f),h=[];n[0]==="x0"?h[0]=d[0]>v[0]?f[0]:c[0]:h[0]=d[0]>v[0]?c[0]:f[0],n[1]==="y0"?h[1]=d[1]>v[1]?f[1]:c[1]:h[1]=d[1]>v[1]?c[1]:f[1],s=r.getMarkerPosition(h,n,!0)}else{var g=e.get(n[0],t),p=e.get(n[1],t),m=[g,p];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Su(i,"cartesian2d")){var y=i.getAxis("x"),_=i.getAxis("y"),g=e.get(n[0],t),p=e.get(n[1],t);Lm(g)?s[0]=y.toGlobalCoord(y.getExtent()[n[0]==="x0"?0:1]):Lm(p)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var JR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],rxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=ms.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=fe(JR,function(f){return qR(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Be});this.group.add(c.group),this.markKeep(c);var f=axe(o,n,r);r.setData(f),f.each(function(d){var v=fe(JR,function(C){return qR(f,d,C,n,i)}),h=o.getAxis("x").scale,g=o.getAxis("y").scale,p=h.getExtent(),m=g.getExtent(),y=[h.parse(f.get("x0",d)),h.parse(f.get("x1",d))],_=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];da(y),da(_);var b=!(p[0]>y[1]||p[1]_[1]||m[1]<_[0]),x=!b;f.setItemLayout(d,{points:v,allClipped:x});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),w=uh(l,"color");S.fill||(S.fill=w,we(S.fill)&&(S.fill=Yp(S.fill,.4))),S.stroke||(S.stroke=w),f.setItemVisual(d,"style",S)}),f.diff($g(c).data).add(function(d){var v=f.getItemLayout(d);if(!v.allClipped){var h=new Dr({shape:{points:v.points}});f.setItemGraphicEl(d,h),c.group.add(h)}}).update(function(d,v){var h=$g(c).data.getItemGraphicEl(v),g=f.getItemLayout(d);g.allClipped?h&&c.group.remove(h):(h?ct(h,{shape:{points:g.points}},r,d):h=new Dr({shape:{points:g.points}}),f.setItemGraphicEl(d,h),c.group.add(h))}).remove(function(d){var v=$g(c).data.getItemGraphicEl(d);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(d,v){var h=f.getItemModel(v),g=f.getItemVisual(v,"style");d.useStyle(f.getItemVisual(v,"style")),Hn(d,xn(h),{labelFetcher:r,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:we(g.fill)?Yp(g.fill,1):"#000"}),Gn(d,h),Xt(d,null,null,h.get(["emphasis","disabled"])),$e(d).dataModel=r}),$g(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(YA);function axe(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=fe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return oe(oe({},f),{name:u,ordinalMeta:null})});a=fe(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new fr(a,n)}else a=[{name:"value",type:"float"}],r=new fr(a,n);var s=fe(n.get("data"),He(txe,t,e,n));e&&(s=yt(s,He(nxe,e)));var l=e?function(u,c,f,d){var v=u.coord[Math.floor(d/2)][d%2];return ts(v,a[d])}:function(u,c,f,d){return ts(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const ixe=rxe;function oxe(e){e.registerComponentModel(exe),e.registerComponentView(ixe),e.registerPreprocessor(function(t){WA(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var sxe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},lxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ue(r)&&k(r,function(i,o){we(i)&&(i={type:i}),r[o]=Ye(i,sxe(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(ot);const vw=lxe;var Yu=He,hw=k,Gg=Be,uxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Gg),this.group.add(this._selectorGroup=new Gg),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),v=gn(c,f,d),h=this.layoutInner(n,o,v,i,l,u),g=gn(Ee({width:h.width,height:h.height},c),f,d);this.group.x=g.x-h.x,this.group.y=g.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xW(h,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=Pe(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&d.push(v.id)}),hw(r.getData(),function(v,h){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var p=new Gg;p.newline=!0,u.add(p);return}var m=a.getSeriesByName(g)[0];if(!c.get(g))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),S=this._createItem(m,g,h,v,r,n,_,x,b,f,i);S.on("click",Yu(QR,g,null,i,d)).on("mouseover",Yu(gw,m.name,null,i,d)).on("mouseout",Yu(pw,m.name,null,i,d)),c.set(g,!0)}else a.eachRawSeries(function(w){if(!c.get(g)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(g))return;var T=C.indexOfName(g),A=C.getItemVisual(T,"style"),P=C.getItemVisual(T,"legendIcon"),D=zr(A.fill);D&&D[3]===0&&(D[3]=.2,A=oe(oe({},A),{fill:Ui(D,"rgba")}));var M=this._createItem(w,g,h,v,r,n,{},A,P,f,i);M.on("click",Yu(QR,null,g,i,d)).on("mouseover",Yu(gw,null,g,i,d)).on("mouseout",Yu(pw,null,g,i,d)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();hw(n,function(u){var c=u.type,f=new lt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),v=r.getModel(["emphasis","selectorLabel"]);Hn(f,{normal:d,emphasis:v},{defaultText:u.title}),zl(f)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var v=n.visualDrawType,h=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(r),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var b=cxe(c,i,l,u,v,p,d),x=new Gg,S=i.getModel("textStyle");if(Le(n.getLegendIcon)&&(!_||_==="inherit"))x.add(n.getLegendIcon({itemWidth:h,itemHeight:g,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;x.add(fxe({itemWidth:h,itemHeight:g,icon:c,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?h+5:-5,T=s,A=o.get("formatter"),P=r;we(A)&&A?P=A.replace("{name}",r??""):Le(A)&&(P=A(r));var D=p?S.getTextColor():i.get("inactiveColor");x.add(new lt({style:kt(S,{text:P,x:C,y:g/2,fill:D,align:T,verticalAlign:"middle"},{inheritColor:D})}));var M=new at({shape:x.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&rf({el:M,componentModel:o,itemName:r,itemTooltipOption:L.option}),x.add(M),x.eachChild(function(R){R.silent=!0}),M.silent=!f,this.getContentGroup().add(x),zl(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();$l(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){$l("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),v=[-d.x,-d.y],h=n.get("selectorButtonGap",!0),g=n.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=c[p]+h:f[g]+=d[p]+h,v[1-g]+=c[m]/2-d[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[p]=c[p]+h+d[p],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+v[1-g]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Zt);function cxe(e,t,n,r,a,i,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),hw(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:Ec(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),v=d.getLineStyle();if(s(v,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),v.stroke==="auto"&&(v.stroke=r.fill),!i){var h=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=h==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=d.get("inactiveColor"),v.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function fxe(e){var t=e.icon||"roundRect",n=sn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function QR(e,t,n,r){pw(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),gw(e,t,n,r)}function VW(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,a=t.length;ra[o],p=[-v.x,-v.y];r||(p[i]=c[u]);var m=[0,0],y=[-h.x,-h.y],_=Ue(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var b=n.get("pageButtonPosition",!0);b==="end"?y[i]+=a[o]-h[o]:m[i]+=h[o]+_}y[1-i]+=v[s]/2-h[s]/2,c.setPosition(p),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=g?a[o]:v[o],x[s]=Math.max(v[s],h[s]),x[l]=Math.min(0,h[l]+y[1-i]),f.__rectSize=a[o],g){var S={x:0,y:0};S[o]=Math.max(a[o]-h[o]-_,0),S[s]=x[s],f.setClipPath(new at({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(n);return w.pageIndex!=null&&ct(c,{x:w.contentPosition[0],y:w.contentPosition[1]},g?n:null),this._updatePageInfoView(n,w),x},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),v.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",we(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=sS[o],l=lS[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,v=d?1:0,h={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return h;var g=b(f);h.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=d;++p)_=b(c[p]),(!_&&y.e>m.s+i||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=m.i),++h.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=b(c[p]),(!_||!x(y,_.s))&&m.i=w&&S.s<=w+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(OW);const mxe=pxe;function yxe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function _xe(e){Ke(NW),e.registerComponentModel(gxe),e.registerComponentView(mxe),yxe(e)}function bxe(e){Ke(NW),Ke(_xe)}var Sxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Is(Lv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Lv);const xxe=Sxe;var XA=it();function wxe(e,t,n){XA(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function Cxe(e,t){for(var n=XA(e).coordSysRecordMap,r=n.keys(),a=0;ar[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Dxe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=XA(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Pe());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=_W(i);k(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Txe(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Pe());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){BW(a,i);return}var c=Pxe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),df(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Mxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),wxe(a,n,{pan:Ce(uS.pan,this),zoom:Ce(uS.zoom,this),scrollMove:Ce(uS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Cxe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(BA),uS={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=cS[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:nV(function(e,t,n,r,a,i){var o=cS[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:nV(function(e,t,n,r,a,i){var o=cS[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function nV(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(wu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var cS={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const kxe=Mxe;function zW(e){zA(e),e.registerComponentModel(xxe),e.registerComponentView(kxe),Dxe(e)}var Lxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Is(Lv.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"}}}),t}(Lv);const Exe=Lxe;var Zf=at,rV=7,Rxe=1,fS=30,Vxe=7,jf="horizontal",aV="vertical",Oxe=5,Nxe=["line","bar","candlestick","scatter"],Bxe={easing:"cubicOut",duration:100,delay:0},zxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=Ce(this._onBrush,this),this._onBrushEnd=Ce(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),df(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bv(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Be;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?Vxe:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===jf?{right:s.width-o.x-o.width,top:s.height-fS-rV-i,width:o.width,height:fS}:{right:rV,top:o.y,width:fS,height:o.height},u=lf(n.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=gn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===aV&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===jf&&!o?{scaleY:l?1:-1,scaleX:1}:a===jf&&o?{scaleY:l?1:-1,scaleX:-1}:a===aV&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new Zf({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Zf({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Ce(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var v=[0,r[1]],h=[0,r[0]],g=[[r[0],0],[0,0]],p=[],m=h[1]/(o.count()-1),y=0,_=Math.round(o.count()/r[0]),b;o.each([l],function(T,A){if(_>0&&A%_){y+=m;return}var P=T==null||isNaN(T)||T==="",D=P?0:gt(T,f,v,!0);P&&!b&&A?(g.push([g[g.length-1][0],0]),p.push([p[p.length-1][0],0])):!P&&b&&(g.push([y,0]),p.push([y,0])),g.push([y,D]),p.push([y,D]),y+=m,b=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function S(T){var A=x.getModel(T?"selectedDataBackground":"dataBackground"),P=new Be,D=new Dr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),M=new kr({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(D),P.add(M),P}for(var w=0;w<3;w++){var C=S(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(r!==!0&&je(Nxe,u.get("type"))<0)){var c=i.getComponent(jo(o),s).axis,f=Fxe(o),d,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(d=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new Zf({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Zf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Rxe,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var b=l.get("handleIcon");!lm[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var x=sn(b,-1,0,2,2,null,!0);x.attr({cursor:iV(this._orient),draggable:!0,drift:Ce(this._onDragMove,this,_),ondragend:Ce(this._onDragEnd,this),onmouseover:Ce(this._showDataInfo,this,!0),onmouseout:Ce(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=be(w,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),zl(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(a[_]=x);var T=l.getModel("textStyle");n.add(i[_]=new lt({silent:!0,invisible:!0,style:kt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=d;if(f){var h=be(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new at({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),p=h*.8,m=r.moveHandleIcon=sn(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=s[1]+h/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));v=r.moveZone=new at({invisible:!0,shape:{y:s[1]-y,height:h+y}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:iV(this._orient),drift:Ce(this._onDragMove,this,"all"),ondragstart:Ce(this._showDataInfo,this,!0),ondragend:Ce(this._onDragEnd,this),onmouseover:Ce(this._showDataInfo,this,!0),onmouseout:Ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[gt(n[0],[0,100],r,!0),gt(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wu(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?gt(s.minSpan,l,o,!0):null,s.maxSpan!=null?gt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=da([gt(i[0],o,l,!0),gt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=da(a.slice()),o=this._size;k([0,1],function(v){var h=r.handles[v],g=this._handleHeight;h.attr({scaleX:g/2,scaleY:g/2,x:a[v]+(v?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new We(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=da([gt(a.x,o,s,!0),gt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(qi(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Zf({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?Bxe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=_W(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(BA);function Fxe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function iV(e){return e==="vertical"?"ns-resize":"ew-resize"}const $xe=zxe;function FW(e){e.registerComponentModel(Exe),e.registerComponentView($xe),zA(e)}function Gxe(e){Ke(zW),Ke(FW)}var Hxe={get:function(e,t,n){var r=Ve((Wxe[e]||{})[t]);return n&&ue(r)?r[r.length-1]:r}},Wxe={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 $W=Hxe;var oV=Fn.mapVisual,Uxe=Fn.eachVisual,Yxe=ue,sV=k,Xxe=da,Zxe=gt,jxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&DW(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=Ce(n,this),this.controllerVisuals=cw(this.option.controller,r,n),this.targetVisuals=cw(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=bt(n),r},t.prototype.eachTargetSeries=function(n,r){k(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],ue(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(we(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Le(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=Xxe([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Ye(i,a),Ye(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){Yxe(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,v){var h=f[d],g=f[v];h&&!g&&(g=f[v]={},sV(h,function(p,m){if(Fn.isValidType(m)){var y=$W.get(m,"inactive",s);y!=null&&(g[m]=y,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),g=this.getItemSymbol(),p=g||"roundRect";sV(this.stateList,function(m){var y=this.itemSize,_=f[m];_||(_=f[m]={color:s?h:[h]}),_.symbol==null&&(_.symbol=d&&Ve(d)||(s?p:[p])),_.symbolSize==null&&(_.symbolSize=v&&Ve(v)||(s?y[0]:[y[0],y[0]])),_.symbol=oV(_.symbol,function(S){return S==="none"?p:S});var b=_.symbolSize;if(b!=null){var x=-1/0;Uxe(b,function(S){S>x&&(x=S)}),_.symbolSize=oV(b,function(S){return Zxe(S,[0,x],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.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"}},t}(ot);const Em=jxe;var lV=[20,140],Kxe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=lV[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=lV[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):ue(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),k(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=da((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=uV(this,"outOfRange",this.getExtent()),a=uV(this,"inRange",this.option.range.slice()),i=[];function o(v,h){i.push({value:v,color:n(v,h)})}for(var s=0,l=0,u=a.length,c=r.length;ln[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new Be(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();Qxe([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=ri(n[c],[0,l[1]],u,!0),v=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var h=Fa(a.handleLabelPoints[c],Fl(f,this.group));s[c].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},v=this.getControllerVisual(n,"color",d),h=this.getControllerVisual(n,"symbolSize"),g=ri(n,s,u,!0),p=l[0]-h/2,m={x:f.x,y:f.y};f.y=g,f.x=p;var y=Fa(c.indicatorLabelPoint,Fl(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?b:"middle",align:S?"center":b});var w={x:p,y:g,style:{fill:v}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,T),_.animateTo(C,T)}else f.attr(w),_.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var P=0;Po[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,v=[];(r||vV(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var h=Zne(d,v);this._dispatchHighDown("downplay",pp(h[0],a)),this._dispatchHighDown("highlight",pp(h[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Cl(n.target,function(l){var u=$e(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function lwe(e,t,n,r){for(var a=t.targetVisuals[r],i=Fn.prepareVisualTypes(a),o={color:uh(e.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(iwe,owe),k(swe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(uwe))}function UW(e){e.registerComponentModel(qxe),e.registerComponentView(awe),WW(e)}var cwe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],fwe[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ve(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=fe(this._pieceList,function(l){return l=Ve(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=Fn.listVisualTypes(),i=this.isCategory();k(n.pieces,function(s){k(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),k(r,function(s,l){var u=!1;k(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&k(this.stateList,function(c){(n[c]||(n[c]={}))[l]=$W.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,k(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;k(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Ve(n)},t.prototype.getValueState=function(n){var r=Fn.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Fn.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var v=n(d,f);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:r.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return k(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Is(Em.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}),t}(Em),fwe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function mV(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const dwe=cwe;var vwe=function(e){ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Mn(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),k(c.viewPieceList,function(v){var h=v.piece,g=new Be;g.onclick=Ce(this._onItemClick,this,h),this._enableHoverLink(g,v.indexInModelPieceList);var p=r.getRepresentValue(h);if(this._createItemSymbol(g,p,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(p);g.add(new lt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:h.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(g)},this),f&&this._renderEndsText(n,f[1],u,d,l),$l(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:pp(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return HW(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new Be,l=this.visualMapModel.textStyleModel;s.add(new lt({style:kt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=fe(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(sn(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ve(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,k(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(GW);const hwe=vwe;function YW(e){e.registerComponentModel(dwe),e.registerComponentView(hwe),WW(e)}function gwe(e){Ke(UW),Ke(YW)}var pwe={label:{enabled:!0},decal:{show:!1}},yV=it(),mwe={};function ywe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Ve(pwe);Ye(r.label,e.getLocaleModel().get("aria"),!1),Ye(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Pe();e.eachSeries(function(d){if(!d.isColorBySeries()){var v=f.get(d.type);v||(v={},f.set(d.type,v)),yV(d).scope=v}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Le(d.enableAriaDecal)){d.enableAriaDecal();return}var v=d.getData();if(d.isColorBySeries()){var y=mx(d.ecModel,d.name,mwe,e.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",b(_,y))}else{var h=d.getRawData(),g={},p=yV(d).scope;v.each(function(x){var S=v.getRawIndex(x);g[S]=x});var m=h.count();h.each(function(x){var S=g[x],w=h.getName(x)||x+"",C=mx(d.ecModel,w,p,m),T=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",b(T,C))})}function b(x,S){var w=x?oe(oe({},S),x):S;return w.dirty=!0,w}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Ee(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),v=c.get(["data","maxCount"])||10,h=c.get(["series","maxCount"])||10,g=Math.min(d,h),p;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);p=o(y,{title:m})}else p=c.get(["general","withoutTitle"]);var _=[],b=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=o(b,{seriesCount:d}),e.eachSeries(function(C,T){if(T1?c.get(["series","multiple",D]):c.get(["series","single",D]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var M=C.getData();if(M.count()>v){var L=c.get(["data","partialData"]);A+=o(L,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),W=[],V=0;V":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Swe=function(){function e(t){var n=this._condVal=we(t)?new RegExp(t):ite(t)?t:null;if(n==null){var r="";ft(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return we(n)?this._condVal.test(t):ut(n)?this._condVal.test(t+""):!1},e}(),xwe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),wwe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n2&&r.push(a),a=[M,L]}function c(M,L,R,O){oc(M,R)&&oc(L,O)||a.push(M,L,R,O,R,O)}function f(M,L,R,O,W,V){var G=Math.abs(L-M),X=Math.tan(G/4)*4/3,Z=LC:P2&&r.push(a),r}function yw(e,t,n,r,a,i,o,s,l,u){if(oc(e,n)&&oc(t,r)&&oc(a,o)&&oc(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,v=s-t,h=Math.sqrt(d*d+v*v);d/=h,v/=h;var g=n-e,p=r-t,m=a-o,y=i-s,_=g*g+p*p,b=m*m+y*y;if(_=0&&C=0){l.push(o,s);return}var T=[],A=[];cs(e,n,a,o,.5,T),cs(t,r,i,s,.5,A),yw(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),yw(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function Nwe(e,t){var n=mw(e),r=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),f=ZW([l,u],c?0:1,t),d=(c?s:u)/f.length,v=0;va,o=ZW([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d1?null:new We(g*l+e,g*u+t)}function Fwe(e,t,n){var r=new We;We.sub(r,n,t),r.normalize();var a=new We;We.sub(a,e,t);var i=a.dot(r);return i}function Zu(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function $we(e,t,n){for(var r=e.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),$we(t,u,c)}function Rm(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);Rm(e,i[0],a,r),Rm(e,i[1],n-a,r)}return r}function Gwe(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var w=Math.sin(S),C=Math.cos(S),T=0,_=0;_0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Nm(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=fe(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=fe(i,function(s,l){return{cp:s,z:qwe(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function qW(e){return Uwe(e.path,e.count)}function _w(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Jwe(e,t,n){var r=[];function a(x){for(var S=0;S=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var eCe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;IV(e)&&(u=e,c=t),IV(t)&&(u=t,c=e);function f(m,y,_,b,x){var S=m.many,w=m.one;if(S.length===1&&!x){var C=y?S[0]:w,T=y?w:S[0];if(Vm(C))f({many:[C],one:T},!0,_,b,!0);else{var A=s?Ee({delay:s(_,b)},l):l;jA(C,T,A),i(C,T,C,T,A)}}else for(var P=Ee({dividePath:eCe[n],individualDelay:s&&function(W,V,G,X){return s(W+_,b)}},l),D=y?Jwe(S,w,P):Qwe(w,S,P),M=D.fromIndividuals,L=D.toIndividuals,R=M.length,O=0;Ot.length,v=u?PV(c,u):PV(d?t:e,[d?e:t]),h=0,g=0;gJW))for(var a=r.getIndices(),i=nCe(r),o=0;o0&&b.group.traverse(function(S){S instanceof Qe&&!S.animators.length&&S.animateFrom({style:{opacity:0}},x)})})}function MV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function kV(e){return ue(e)?e.sort().join(","):e}function Fo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function iCe(e,t){var n=Pe(),r=Pe(),a=Pe();return k(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=MV(i),c=kV(u);r.set(c,{dataGroupId:s,data:l}),ue(u)&&k(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),k(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=MV(i),u=kV(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Fo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Fo(s),data:s}]});else if(ue(l)){var f=[];k(l,function(h){var g=r.get(h);g.data&&f.push({dataGroupId:g.dataGroupId,divide:Fo(g.data),data:g.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Fo(s)}]})}else{var d=a.get(l);if(d){var v=n.get(d.key);v||(v={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Fo(d.data)}],newSeries:[]},n.set(d.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Fo(s)})}}}}),n}function LV(e,t){for(var n=0;n=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Fo(t.oldData[s]),dim:o.dimension})}),k(bt(e.to),function(o){var s=LV(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Fo(l),dim:o.dimension})}}),a.length>0&&i.length>0&&QW(a,i,r)}function sCe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){k(bt(r.seriesTransition),function(a){k(bt(a.to),function(i){for(var o=r.updatedSeries,s=0;s",m=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=$e(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),v=this._renderMode,h=n.positionDefault,g=Uf([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(c,f),y=new z_;m.marker=y.makeTooltipMarker("item",au(m.color),v);var _=yk(u.formatTooltip(c,!1,f)),b=g.get("order"),x=g.get("valueFormatter"),S=_.frag,w=S?Ck(x?oe({valueFormatter:x},S):S,y,v,b,i.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,w,m,C,n.offsetX,n.offsetY,n.position,n.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=$e(r),o=i.tooltipConfig,s=o.option||{};if(we(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=n.positionDefault,d=Uf(u,this._tooltipModel,f?{position:f}:null),v=d.get("content"),h=Math.random()+"",g=new z_;this._showOrMove(d,function(){var p=Ve(d.get("formatterParams")||{});this._showTooltipContent(d,v,p,h,n.offsetX,n.offsetY,n.position,r,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var v=r,h=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),g=h.color;if(d)if(we(d)){var p=n.ecModel.get("useUTC"),m=ue(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=d,y&&(v=Jy(m.axisValue,v,p)),v=eG(v,a,!0)}else if(Le(d)){var _=Ce(function(b,x){b===this._ticket&&(f.setContent(x,c,n,g,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,v=d(a,i,_)}else v=d;f.setContent(v,c,n,g,l),f.show(n,g),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||ue(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!ue(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),v=n.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),Le(r)&&(r=r([a,i],s,o.el,h,{viewSize:[u,c],contentSize:f.slice()})),ue(r))a=be(r[0],u),i=be(r[1],c);else if(Re(r)){var g=r;g.width=f[0],g.height=f[1];var p=gn(g,{width:u,height:c});a=p.x,i=p.y,d=null,v=null}else if(we(r)&&l){var m=XSe(r,h,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=USe(a,i,o,u,c,d?null:20,v?null:20);a=m[0],i=m[1]}if(d&&(a-=RR(d)?f[0]/2:d==="right"?f[0]:0),v&&(i-=RR(v)?f[1]/2:v==="bottom"?f[1]:0),TW(n)){var m=YSe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&k(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&k(u,function(d,v){var h=f[v]||{},g=d.seriesDataIndices||[],p=h.seriesDataIndices||[];o=o&&d.value===h.value&&d.axisType===h.axisType&&d.axisId===h.axisId&&g.length===p.length,o&&k(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&k(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=r[y],b=i[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){st.node||!r.getDom()||(bv(this,"_updatePosition"),this._tooltipContent.dispose(),rw("itemTooltip",r))},t.type="tooltip",t}(Zt);function Uf(e,t,n){var r=t.ecModel,a;n?(a=new Lt(n,r,r),a=new Lt(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Lt&&(o=o.get("tooltip",!0)),we(o)&&(o={formatter:o}),o&&(a=new Lt(o,a,r)))}return a}function ER(e,t){return e.dispatchAction||Ce(t.dispatchAction,t)}function USe(e,t,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>r?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function YSe(e,t,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function XSe(e,t,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function RR(e){return e==="center"||e==="middle"}function ZSe(e,t,n){var r=rT(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=nh(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=$e(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const jSe=WSe;function KSe(e){Ke(bh),e.registerComponentModel(DSe),e.registerComponentView(jSe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rn)}var qSe=["rect","polygon","keep","clear"];function JSe(e,t){var n=bt(e?e.brush:[]);if(n.length){var r=[];k(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;ue(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),QSe(s),t&&!s.length&&s.push.apply(s,qSe)}}function QSe(e){var t={};k(e,function(n){t[n]=1}),e.length=0,k(t,function(n,r){e.push(r)})}var VR=k;function OR(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function uw(e,t,n){var r={};return VR(t,function(i){var o=r[i]=a();VR(e[i],function(s,l){if(Fn.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new Fn(u),l==="opacity"&&(u=Ve(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Fn(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function DW(e,t,n){var r;k(n,function(a){t.hasOwnProperty(a)&&OR(t[a])&&(r=!0)}),r&&k(n,function(a){t.hasOwnProperty(a)&&OR(t[a])?e[a]=Ve(t[a]):delete e[a]})}function e1e(e,t,n,r,a,i){var o={};k(e,function(f){var d=Fn.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return RT(n,s,f)}function u(f,d){UG(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var v=n.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var h=r.call(a,f),g=t[h],p=o[h],m=0,y=p.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&$R(t)}};function $R(e){return new Xe(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var l1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new SA(r.getZr())).on("brush",Ce(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){MW(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ve(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ve(a),$from:r})},t.type="brush",t}(Zt);const u1e=l1e;var c1e="#ddd",f1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&DW(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:c1e},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=fe(n,function(r){return GR(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=GR(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(ot);function GR(e,t){return Ye({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Lt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const d1e=f1e;var v1e=["rect","polygon","lineX","lineY","keep","clear"],h1e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,k(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return k(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:v1e.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(ia);const g1e=h1e;function p1e(e){e.registerComponentView(u1e),e.registerComponentModel(d1e),e.registerPreprocessor(JSe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,r1e),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rn),tc("brush",g1e)}var m1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.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"}},t}(ot),y1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Ue(n.get("textBaseline"),n.get("textVerticalAlign")),c=new lt({style:kt(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),v=new lt({style:kt(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=n.get("link"),g=n.get("sublink"),p=n.get("triggerEvent",!0);c.silent=!h&&!p,v.silent=!g&&!p,h&&c.on("click",function(){im(h,"_"+n.get("target"))}),g&&v.on("click",function(){im(g,"_"+n.get("subtarget"))}),$e(c).eventData=$e(v).eventData=p?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(v);var m=i.getBoundingRect(),y=n.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=gn(y,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),m=i.getBoundingRect();var x=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var w=new at({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(Zt);function _1e(e){e.registerComponentModel(m1e),e.registerComponentView(y1e)}var b1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],k(r,function(u,c){var f=hn(ef(u),""),d;Re(u)?(d=Ve(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new fr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(ot);const HR=b1e;var kW=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=Is(HR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(HR);fn(kW,DT.prototype);const S1e=kW;var x1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(Zt);const w1e=x1e;var C1e=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ja);const T1e=C1e;var nS=Math.PI,WR=it(),A1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return wn("nameValue",{noName:!0,value:c})},k(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=P1e(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:nS/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),v=d.get("show",!0),h=v?d.get("itemSize"):0,g=v?d.get("itemGap"):0,p=h+g,m=n.get(["label","rotate"])||0;m=m*nS/180;var y,_,b,x=d.get("position",!0),S=v&&d.get("showPlayBtn",!0),w=v&&d.get("showPrevBtn",!0),C=v&&d.get("showNextBtn",!0),T=0,A=f;x==="left"||x==="bottom"?(S&&(y=[0,0],T+=p),w&&(_=[T,0],T+=p),C&&(b=[A-h,0],A-=p)):(S&&(y=[A-h,0],A-=p),w&&(_=[0,0],T+=p),C&&(b=[A-h,0],A-=p));var P=[T,A];return n.get("inverse")&&P.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:_,nextBtnPosition:b,axisExtent:P,controlSize:h,controlGap:g}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=ya(),l=o.x,u=o.y+o.height;xi(s,s,[-l,-u]),mu(s,s,-nS/2),xi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(a.getBoundingRect()),d=y(i.getBoundingRect()),v=[a.x,a.y],h=[i.x,i.y];h[0]=v[0]=c[0][0];var g=n.labelPosOpt;if(g==null||we(g)){var p=g==="+"?0:1;_(v,f,c,1,p),_(h,d,c,1,1-p)}else{var p=g>=0?0:1;_(v,f,c,1,p),h[1]=v[1]+g}a.setPosition(v),i.setPosition(h),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function y(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function _(b,x,S,w,C){b[w]+=S[w][C]-x[w][C]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=I1e(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new T1e("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new Be;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:oe({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ee({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],k(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),h=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ce(o._changeTimeline,o,u.value)},p=UR(f,d,r,g);p.ensureState("emphasis").style=v.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),zl(p);var m=$e(p);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],k(u,function(c){var f=c.tickValue,d=l.getItemModel(f),v=d.getModel("label"),h=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),p=a.dataToCoord(c.tickValue),m=new lt({x:p,y:0,rotation:n.labelRotation-n.rotation,onclick:Ce(o._changeTimeline,o,f),silent:!1,style:kt(v,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=kt(h),m.ensureState("progress").style=kt(g),r.add(m),zl(m),WR(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",Ce(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Ce(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Ce(this._handlePlayClick,this,!c),!0);function d(v,h,g,p){if(v){var m=Wa(Ue(i.get(["controlStyle",h+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=D1e(i,h+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),zl(_)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Ce(u._handlePointerDrag,u),f.ondragend=Ce(u._handlePointerDragend,u),YR(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){YR(f,u._progressLine,s,a,i)}};this._currentPointer=UR(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=da(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var rS={min:He(zg,"min"),max:He(zg,"max"),average:He(zg,"average"),median:He(zg,"median")};function Ev(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!N1e(t)&&!ue(t.coord)&&ue(a)){var i=EW(t,n,r,e);if(t=Ve(t),t.type&&rS[t.type]&&i.baseAxis&&i.valueAxis){var o=je(a,i.baseAxis.dim),s=je(a,i.valueAxis.dim),l=rS[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!ue(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)rS[u[c]]&&(u[c]=UA(n,n.mapDimension(a[c]),u[c]));return t}}function EW(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(B1e(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function B1e(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Rv(e,t){return e&&e.containData&&t.coord&&!fw(t)?e.containData(t.coord):!0}function z1e(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!fw(t)&&!fw(n)?e.containZone(t.coord,n.coord):!0}function RW(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return ts(o,t[i])}:function(n,r,a,i){return ts(n.value,t[i])}}function UA(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var aS=it(),F1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=De()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){aS(s).keep=!1}),r.eachSeries(function(s){var l=ms.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!aS(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){aS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;k(n,function(i){var o=ms.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?s$(l):uT(l))})}})},t.type="marker",t}(Zt);const YA=F1e;function ZR(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=be(i.get("x"),n.getWidth()),l=be(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var $1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=ms.getMarkerModelFromSeries(i,"markPoint");o&&(ZR(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new hh),f=G1e(o,n,r);r.setData(f),ZR(r.getData(),n,i),f.each(function(d){var v=f.getItemModel(d),h=v.getShallow("symbol"),g=v.getShallow("symbolSize"),p=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(Le(h)||Le(g)||Le(p)||Le(m)){var _=r.getRawValue(d),b=r.getDataParams(d);Le(h)&&(h=h(_,b)),Le(g)&&(g=g(_,b)),Le(p)&&(p=p(_,b)),Le(m)&&(m=m(_,b))}var x=v.getModel("itemStyle").getItemStyle(),S=uh(l,"color");x.fill||(x.fill=S),f.setItemVisual(d,{symbol:h,symbolSize:g,symbolRotate:p,symbolOffset:m,symbolKeepAspect:y,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(v){$e(v).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(YA);function G1e(e,t,n){var r;e?r=fe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return oe(oe({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new fr(r,n),i=fe(n.get("data"),He(Ev,t));e&&(i=yt(i,He(Rv,e)));var o=RW(!!e,r);return a.initData(i,null,o),a}const H1e=$1e;function W1e(e){e.registerComponentModel(O1e),e.registerComponentView(H1e),e.registerPreprocessor(function(t){WA(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var U1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ms);const Y1e=U1e;var Fg=it(),X1e=function(e,t,n,r){var a=e.getData(),i;if(ue(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=Mn(r.yAxis,r.xAxis);else{var u=EW(r,a,t,e);s=u.valueAxis;var c=b3(a,u.valueDataDim);l=UA(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,v=Ve(r),h={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,h.coord[d]=1/0;var g=n.get("precision");g>=0&&ut(l)&&(l=+l.toFixed(Math.min(g,20))),v.coord[f]=h.coord[f]=l,i=[v,h,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var p=[Ev(e,i[0]),Ev(e,i[1]),oe({},i[2])];return p[2].type=p[2].type||null,Ye(p[2],p[0]),Ye(p[2],p[1]),p};function km(e){return!isNaN(e)&&!isFinite(e)}function jR(e,t,n,r){var a=1-e,i=r.dimensions[e];return km(t[a])&&km(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function Z1e(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(jR(1,n,r,e)||jR(0,n,r,e)))return!0}return Rv(e,t[0])&&Rv(e,t[1])}function iS(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=be(o.get("x"),a.getWidth()),u=be(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Su(i,"cartesian2d")){var v=i.getAxis("x"),h=i.getAxis("y"),c=i.dimensions;km(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[n?0:1]):km(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var j1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=ms.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Fg(o).from,u=Fg(o).to;l.each(function(c){iS(l,c,!0,i,a),iS(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new gA);this.group.add(c.group);var f=K1e(o,n,r),d=f.from,v=f.to,h=f.line;Fg(r).from=d,Fg(r).to=v,r.setData(h);var g=r.get("symbol"),p=r.get("symbolSize"),m=r.get("symbolRotate"),y=r.get("symbolOffset");ue(g)||(g=[g,g]),ue(p)||(p=[p,p]),ue(m)||(m=[m,m]),ue(y)||(y=[y,y]),f.from.each(function(b){_(d,b,!0),_(v,b,!1)}),h.each(function(b){var x=h.getItemModel(b).getModel("lineStyle").getLineStyle();h.setItemLayout(b,[d.getItemLayout(b),v.getItemLayout(b)]),x.stroke==null&&(x.stroke=d.getItemVisual(b,"style").fill),h.setItemVisual(b,{fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:v.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(b,"symbolOffset"),toSymbolRotate:v.getItemVisual(b,"symbolRotate"),toSymbolSize:v.getItemVisual(b,"symbolSize"),toSymbol:v.getItemVisual(b,"symbol"),style:x})}),c.updateData(h),f.line.eachItemGraphicEl(function(b){$e(b).dataModel=r,b.traverse(function(x){$e(x).dataModel=r})});function _(b,x,S){var w=b.getItemModel(x);iS(b,x,S,n,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=uh(l,"color")),b.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ue(w.get("symbolOffset",!0),y[S?0:1]),symbolRotate:Ue(w.get("symbolRotate",!0),m[S?0:1]),symbolSize:Ue(w.get("symbolSize"),p[S?0:1]),symbol:Ue(w.get("symbol",!0),g[S?0:1]),style:C})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(YA);function K1e(e,t,n){var r;e?r=fe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return oe(oe({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new fr(r,n),i=new fr(r,n),o=new fr([],n),s=fe(n.get("data"),He(X1e,t,e,n));e&&(s=yt(s,He(Z1e,e)));var l=RW(!!e,r);return a.initData(fe(s,function(u){return u[0]}),null,l),i.initData(fe(s,function(u){return u[1]}),null,l),o.initData(fe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const q1e=j1e;function J1e(e){e.registerComponentModel(Y1e),e.registerComponentView(q1e),e.registerPreprocessor(function(t){WA(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Q1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ms);const exe=Q1e;var $g=it(),txe=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ev(e,a),s=Ev(e,i),l=o.coord,u=s.coord;l[0]=Mn(l[0],-1/0),l[1]=Mn(l[1],-1/0),u[0]=Mn(u[0],1/0),u[1]=Mn(u[1],1/0);var c=UC([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Lm(e){return!isNaN(e)&&!isFinite(e)}function KR(e,t,n,r){var a=1-e;return Lm(t[a])&&Lm(n[a])}function nxe(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return Su(e,"cartesian2d")?n&&r&&(KR(1,n,r)||KR(0,n,r))?!0:z1e(e,a,i):Rv(e,a)||Rv(e,i)}function qR(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=be(o.get(n[0]),a.getWidth()),u=be(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),v=i.clampData(f),h=[];n[0]==="x0"?h[0]=d[0]>v[0]?f[0]:c[0]:h[0]=d[0]>v[0]?c[0]:f[0],n[1]==="y0"?h[1]=d[1]>v[1]?f[1]:c[1]:h[1]=d[1]>v[1]?c[1]:f[1],s=r.getMarkerPosition(h,n,!0)}else{var g=e.get(n[0],t),p=e.get(n[1],t),m=[g,p];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Su(i,"cartesian2d")){var y=i.getAxis("x"),_=i.getAxis("y"),g=e.get(n[0],t),p=e.get(n[1],t);Lm(g)?s[0]=y.toGlobalCoord(y.getExtent()[n[0]==="x0"?0:1]):Lm(p)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var JR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],rxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=ms.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=fe(JR,function(f){return qR(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Be});this.group.add(c.group),this.markKeep(c);var f=axe(o,n,r);r.setData(f),f.each(function(d){var v=fe(JR,function(C){return qR(f,d,C,n,i)}),h=o.getAxis("x").scale,g=o.getAxis("y").scale,p=h.getExtent(),m=g.getExtent(),y=[h.parse(f.get("x0",d)),h.parse(f.get("x1",d))],_=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];da(y),da(_);var b=!(p[0]>y[1]||p[1]_[1]||m[1]<_[0]),x=!b;f.setItemLayout(d,{points:v,allClipped:x});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),w=uh(l,"color");S.fill||(S.fill=w,we(S.fill)&&(S.fill=Yp(S.fill,.4))),S.stroke||(S.stroke=w),f.setItemVisual(d,"style",S)}),f.diff($g(c).data).add(function(d){var v=f.getItemLayout(d);if(!v.allClipped){var h=new Dr({shape:{points:v.points}});f.setItemGraphicEl(d,h),c.group.add(h)}}).update(function(d,v){var h=$g(c).data.getItemGraphicEl(v),g=f.getItemLayout(d);g.allClipped?h&&c.group.remove(h):(h?ct(h,{shape:{points:g.points}},r,d):h=new Dr({shape:{points:g.points}}),f.setItemGraphicEl(d,h),c.group.add(h))}).remove(function(d){var v=$g(c).data.getItemGraphicEl(d);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(d,v){var h=f.getItemModel(v),g=f.getItemVisual(v,"style");d.useStyle(f.getItemVisual(v,"style")),Hn(d,xn(h),{labelFetcher:r,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:we(g.fill)?Yp(g.fill,1):"#000"}),Gn(d,h),Xt(d,null,null,h.get(["emphasis","disabled"])),$e(d).dataModel=r}),$g(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(YA);function axe(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=fe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return oe(oe({},f),{name:u,ordinalMeta:null})});a=fe(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new fr(a,n)}else a=[{name:"value",type:"float"}],r=new fr(a,n);var s=fe(n.get("data"),He(txe,t,e,n));e&&(s=yt(s,He(nxe,e)));var l=e?function(u,c,f,d){var v=u.coord[Math.floor(d/2)][d%2];return ts(v,a[d])}:function(u,c,f,d){return ts(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const ixe=rxe;function oxe(e){e.registerComponentModel(exe),e.registerComponentView(ixe),e.registerPreprocessor(function(t){WA(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var sxe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},lxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ue(r)&&k(r,function(i,o){we(i)&&(i={type:i}),r[o]=Ye(i,sxe(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(ot);const dw=lxe;var Yu=He,vw=k,Gg=Be,uxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Gg),this.group.add(this._selectorGroup=new Gg),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),v=gn(c,f,d),h=this.layoutInner(n,o,v,i,l,u),g=gn(Ee({width:h.width,height:h.height},c),f,d);this.group.x=g.x-h.x,this.group.y=g.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xW(h,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=De(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&d.push(v.id)}),vw(r.getData(),function(v,h){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var p=new Gg;p.newline=!0,u.add(p);return}var m=a.getSeriesByName(g)[0];if(!c.get(g))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),S=this._createItem(m,g,h,v,r,n,_,x,b,f,i);S.on("click",Yu(QR,g,null,i,d)).on("mouseover",Yu(hw,m.name,null,i,d)).on("mouseout",Yu(gw,m.name,null,i,d)),c.set(g,!0)}else a.eachRawSeries(function(w){if(!c.get(g)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(g))return;var T=C.indexOfName(g),A=C.getItemVisual(T,"style"),P=C.getItemVisual(T,"legendIcon"),D=zr(A.fill);D&&D[3]===0&&(D[3]=.2,A=oe(oe({},A),{fill:Ui(D,"rgba")}));var M=this._createItem(w,g,h,v,r,n,{},A,P,f,i);M.on("click",Yu(QR,null,g,i,d)).on("mouseover",Yu(hw,null,g,i,d)).on("mouseout",Yu(gw,null,g,i,d)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();vw(n,function(u){var c=u.type,f=new lt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),v=r.getModel(["emphasis","selectorLabel"]);Hn(f,{normal:d,emphasis:v},{defaultText:u.title}),zl(f)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var v=n.visualDrawType,h=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(r),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var b=cxe(c,i,l,u,v,p,d),x=new Gg,S=i.getModel("textStyle");if(Le(n.getLegendIcon)&&(!_||_==="inherit"))x.add(n.getLegendIcon({itemWidth:h,itemHeight:g,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;x.add(fxe({itemWidth:h,itemHeight:g,icon:c,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?h+5:-5,T=s,A=o.get("formatter"),P=r;we(A)&&A?P=A.replace("{name}",r??""):Le(A)&&(P=A(r));var D=p?S.getTextColor():i.get("inactiveColor");x.add(new lt({style:kt(S,{text:P,x:C,y:g/2,fill:D,align:T,verticalAlign:"middle"},{inheritColor:D})}));var M=new at({shape:x.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&rf({el:M,componentModel:o,itemName:r,itemTooltipOption:L.option}),x.add(M),x.eachChild(function(R){R.silent=!0}),M.silent=!f,this.getContentGroup().add(x),zl(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();$l(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){$l("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),v=[-d.x,-d.y],h=n.get("selectorButtonGap",!0),g=n.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=c[p]+h:f[g]+=d[p]+h,v[1-g]+=c[m]/2-d[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[p]=c[p]+h+d[p],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+v[1-g]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Zt);function cxe(e,t,n,r,a,i,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),vw(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:Ec(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),v=d.getLineStyle();if(s(v,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),v.stroke==="auto"&&(v.stroke=r.fill),!i){var h=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=h==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=d.get("inactiveColor"),v.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function fxe(e){var t=e.icon||"roundRect",n=sn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function QR(e,t,n,r){gw(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),hw(e,t,n,r)}function VW(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,a=t.length;ra[o],p=[-v.x,-v.y];r||(p[i]=c[u]);var m=[0,0],y=[-h.x,-h.y],_=Ue(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var b=n.get("pageButtonPosition",!0);b==="end"?y[i]+=a[o]-h[o]:m[i]+=h[o]+_}y[1-i]+=v[s]/2-h[s]/2,c.setPosition(p),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=g?a[o]:v[o],x[s]=Math.max(v[s],h[s]),x[l]=Math.min(0,h[l]+y[1-i]),f.__rectSize=a[o],g){var S={x:0,y:0};S[o]=Math.max(a[o]-h[o]-_,0),S[s]=x[s],f.setClipPath(new at({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(n);return w.pageIndex!=null&&ct(c,{x:w.contentPosition[0],y:w.contentPosition[1]},g?n:null),this._updatePageInfoView(n,w),x},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),v.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",we(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=oS[o],l=sS[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,v=d?1:0,h={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return h;var g=b(f);h.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=d;++p)_=b(c[p]),(!_&&y.e>m.s+i||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=m.i),++h.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=b(c[p]),(!_||!x(y,_.s))&&m.i=w&&S.s<=w+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(OW);const mxe=pxe;function yxe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function _xe(e){Ke(NW),e.registerComponentModel(gxe),e.registerComponentView(mxe),yxe(e)}function bxe(e){Ke(NW),Ke(_xe)}var Sxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Is(Lv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Lv);const xxe=Sxe;var XA=it();function wxe(e,t,n){XA(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function Cxe(e,t){for(var n=XA(e).coordSysRecordMap,r=n.keys(),a=0;ar[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Dxe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=XA(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=De());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=_W(i);k(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Txe(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=De());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){BW(a,i);return}var c=Pxe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),df(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Mxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),wxe(a,n,{pan:Ce(lS.pan,this),zoom:Ce(lS.zoom,this),scrollMove:Ce(lS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Cxe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(BA),lS={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=uS[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:nV(function(e,t,n,r,a,i){var o=uS[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:nV(function(e,t,n,r,a,i){var o=uS[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function nV(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(wu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var uS={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const kxe=Mxe;function zW(e){zA(e),e.registerComponentModel(xxe),e.registerComponentView(kxe),Dxe(e)}var Lxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Is(Lv.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"}}}),t}(Lv);const Exe=Lxe;var Zf=at,rV=7,Rxe=1,cS=30,Vxe=7,jf="horizontal",aV="vertical",Oxe=5,Nxe=["line","bar","candlestick","scatter"],Bxe={easing:"cubicOut",duration:100,delay:0},zxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=Ce(this._onBrush,this),this._onBrushEnd=Ce(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),df(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bv(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Be;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?Vxe:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===jf?{right:s.width-o.x-o.width,top:s.height-cS-rV-i,width:o.width,height:cS}:{right:rV,top:o.y,width:cS,height:o.height},u=lf(n.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=gn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===aV&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===jf&&!o?{scaleY:l?1:-1,scaleX:1}:a===jf&&o?{scaleY:l?1:-1,scaleX:-1}:a===aV&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new Zf({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Zf({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Ce(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var v=[0,r[1]],h=[0,r[0]],g=[[r[0],0],[0,0]],p=[],m=h[1]/(o.count()-1),y=0,_=Math.round(o.count()/r[0]),b;o.each([l],function(T,A){if(_>0&&A%_){y+=m;return}var P=T==null||isNaN(T)||T==="",D=P?0:gt(T,f,v,!0);P&&!b&&A?(g.push([g[g.length-1][0],0]),p.push([p[p.length-1][0],0])):!P&&b&&(g.push([y,0]),p.push([y,0])),g.push([y,D]),p.push([y,D]),y+=m,b=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function S(T){var A=x.getModel(T?"selectedDataBackground":"dataBackground"),P=new Be,D=new Dr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),M=new kr({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(D),P.add(M),P}for(var w=0;w<3;w++){var C=S(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(r!==!0&&je(Nxe,u.get("type"))<0)){var c=i.getComponent(jo(o),s).axis,f=Fxe(o),d,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(d=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new Zf({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Zf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Rxe,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var b=l.get("handleIcon");!lm[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var x=sn(b,-1,0,2,2,null,!0);x.attr({cursor:iV(this._orient),draggable:!0,drift:Ce(this._onDragMove,this,_),ondragend:Ce(this._onDragEnd,this),onmouseover:Ce(this._showDataInfo,this,!0),onmouseout:Ce(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=be(w,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),zl(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(a[_]=x);var T=l.getModel("textStyle");n.add(i[_]=new lt({silent:!0,invisible:!0,style:kt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=d;if(f){var h=be(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new at({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),p=h*.8,m=r.moveHandleIcon=sn(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=s[1]+h/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));v=r.moveZone=new at({invisible:!0,shape:{y:s[1]-y,height:h+y}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:iV(this._orient),drift:Ce(this._onDragMove,this,"all"),ondragstart:Ce(this._showDataInfo,this,!0),ondragend:Ce(this._onDragEnd,this),onmouseover:Ce(this._showDataInfo,this,!0),onmouseout:Ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[gt(n[0],[0,100],r,!0),gt(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wu(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?gt(s.minSpan,l,o,!0):null,s.maxSpan!=null?gt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=da([gt(i[0],o,l,!0),gt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=da(a.slice()),o=this._size;k([0,1],function(v){var h=r.handles[v],g=this._handleHeight;h.attr({scaleX:g/2,scaleY:g/2,x:a[v]+(v?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new We(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=da([gt(a.x,o,s,!0),gt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(qi(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Zf({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?Bxe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=_W(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(BA);function Fxe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function iV(e){return e==="vertical"?"ns-resize":"ew-resize"}const $xe=zxe;function FW(e){e.registerComponentModel(Exe),e.registerComponentView($xe),zA(e)}function Gxe(e){Ke(zW),Ke(FW)}var Hxe={get:function(e,t,n){var r=Ve((Wxe[e]||{})[t]);return n&&ue(r)?r[r.length-1]:r}},Wxe={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 $W=Hxe;var oV=Fn.mapVisual,Uxe=Fn.eachVisual,Yxe=ue,sV=k,Xxe=da,Zxe=gt,jxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&DW(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=Ce(n,this),this.controllerVisuals=uw(this.option.controller,r,n),this.targetVisuals=uw(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=bt(n),r},t.prototype.eachTargetSeries=function(n,r){k(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],ue(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(we(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Le(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=Xxe([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Ye(i,a),Ye(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){Yxe(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,v){var h=f[d],g=f[v];h&&!g&&(g=f[v]={},sV(h,function(p,m){if(Fn.isValidType(m)){var y=$W.get(m,"inactive",s);y!=null&&(g[m]=y,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),g=this.getItemSymbol(),p=g||"roundRect";sV(this.stateList,function(m){var y=this.itemSize,_=f[m];_||(_=f[m]={color:s?h:[h]}),_.symbol==null&&(_.symbol=d&&Ve(d)||(s?p:[p])),_.symbolSize==null&&(_.symbolSize=v&&Ve(v)||(s?y[0]:[y[0],y[0]])),_.symbol=oV(_.symbol,function(S){return S==="none"?p:S});var b=_.symbolSize;if(b!=null){var x=-1/0;Uxe(b,function(S){S>x&&(x=S)}),_.symbolSize=oV(b,function(S){return Zxe(S,[0,x],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.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"}},t}(ot);const Em=jxe;var lV=[20,140],Kxe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=lV[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=lV[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):ue(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),k(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=da((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=uV(this,"outOfRange",this.getExtent()),a=uV(this,"inRange",this.option.range.slice()),i=[];function o(v,h){i.push({value:v,color:n(v,h)})}for(var s=0,l=0,u=a.length,c=r.length;ln[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new Be(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();Qxe([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=ri(n[c],[0,l[1]],u,!0),v=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var h=Fa(a.handleLabelPoints[c],Fl(f,this.group));s[c].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},v=this.getControllerVisual(n,"color",d),h=this.getControllerVisual(n,"symbolSize"),g=ri(n,s,u,!0),p=l[0]-h/2,m={x:f.x,y:f.y};f.y=g,f.x=p;var y=Fa(c.indicatorLabelPoint,Fl(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?b:"middle",align:S?"center":b});var w={x:p,y:g,style:{fill:v}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,T),_.animateTo(C,T)}else f.attr(w),_.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var P=0;Po[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,v=[];(r||vV(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var h=Zne(d,v);this._dispatchHighDown("downplay",pp(h[0],a)),this._dispatchHighDown("highlight",pp(h[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Cl(n.target,function(l){var u=$e(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function lwe(e,t,n,r){for(var a=t.targetVisuals[r],i=Fn.prepareVisualTypes(a),o={color:uh(e.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(iwe,owe),k(swe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(uwe))}function UW(e){e.registerComponentModel(qxe),e.registerComponentView(awe),WW(e)}var cwe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],fwe[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ve(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=fe(this._pieceList,function(l){return l=Ve(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=Fn.listVisualTypes(),i=this.isCategory();k(n.pieces,function(s){k(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),k(r,function(s,l){var u=!1;k(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&k(this.stateList,function(c){(n[c]||(n[c]={}))[l]=$W.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,k(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;k(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Ve(n)},t.prototype.getValueState=function(n){var r=Fn.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Fn.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var v=n(d,f);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:r.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return k(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Is(Em.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}),t}(Em),fwe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function mV(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const dwe=cwe;var vwe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Mn(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),k(c.viewPieceList,function(v){var h=v.piece,g=new Be;g.onclick=Ce(this._onItemClick,this,h),this._enableHoverLink(g,v.indexInModelPieceList);var p=r.getRepresentValue(h);if(this._createItemSymbol(g,p,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(p);g.add(new lt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:h.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(g)},this),f&&this._renderEndsText(n,f[1],u,d,l),$l(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:pp(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return HW(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new Be,l=this.visualMapModel.textStyleModel;s.add(new lt({style:kt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=fe(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(sn(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ve(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,k(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(GW);const hwe=vwe;function YW(e){e.registerComponentModel(dwe),e.registerComponentView(hwe),WW(e)}function gwe(e){Ke(UW),Ke(YW)}var pwe={label:{enabled:!0},decal:{show:!1}},yV=it(),mwe={};function ywe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Ve(pwe);Ye(r.label,e.getLocaleModel().get("aria"),!1),Ye(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=De();e.eachSeries(function(d){if(!d.isColorBySeries()){var v=f.get(d.type);v||(v={},f.set(d.type,v)),yV(d).scope=v}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Le(d.enableAriaDecal)){d.enableAriaDecal();return}var v=d.getData();if(d.isColorBySeries()){var y=px(d.ecModel,d.name,mwe,e.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",b(_,y))}else{var h=d.getRawData(),g={},p=yV(d).scope;v.each(function(x){var S=v.getRawIndex(x);g[S]=x});var m=h.count();h.each(function(x){var S=g[x],w=h.getName(x)||x+"",C=px(d.ecModel,w,p,m),T=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",b(T,C))})}function b(x,S){var w=x?oe(oe({},S),x):S;return w.dirty=!0,w}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Ee(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),v=c.get(["data","maxCount"])||10,h=c.get(["series","maxCount"])||10,g=Math.min(d,h),p;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);p=o(y,{title:m})}else p=c.get(["general","withoutTitle"]);var _=[],b=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=o(b,{seriesCount:d}),e.eachSeries(function(C,T){if(T1?c.get(["series","multiple",D]):c.get(["series","single",D]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var M=C.getData();if(M.count()>v){var L=c.get(["data","partialData"]);A+=o(L,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),H=[],V=0;V":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Swe=function(){function e(t){var n=this._condVal=we(t)?new RegExp(t):ite(t)?t:null;if(n==null){var r="";ft(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return we(n)?this._condVal.test(t):ut(n)?this._condVal.test(t+""):!1},e}(),xwe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),wwe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n2&&r.push(a),a=[M,L]}function c(M,L,R,O){oc(M,R)&&oc(L,O)||a.push(M,L,R,O,R,O)}function f(M,L,R,O,H,V){var G=Math.abs(L-M),X=Math.tan(G/4)*4/3,Z=LC:P2&&r.push(a),r}function mw(e,t,n,r,a,i,o,s,l,u){if(oc(e,n)&&oc(t,r)&&oc(a,o)&&oc(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,v=s-t,h=Math.sqrt(d*d+v*v);d/=h,v/=h;var g=n-e,p=r-t,m=a-o,y=i-s,_=g*g+p*p,b=m*m+y*y;if(_=0&&C=0){l.push(o,s);return}var T=[],A=[];cs(e,n,a,o,.5,T),cs(t,r,i,s,.5,A),mw(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),mw(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function Nwe(e,t){var n=pw(e),r=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),f=ZW([l,u],c?0:1,t),d=(c?s:u)/f.length,v=0;va,o=ZW([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d1?null:new We(g*l+e,g*u+t)}function Fwe(e,t,n){var r=new We;We.sub(r,n,t),r.normalize();var a=new We;We.sub(a,e,t);var i=a.dot(r);return i}function Zu(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function $we(e,t,n){for(var r=e.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),$we(t,u,c)}function Rm(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);Rm(e,i[0],a,r),Rm(e,i[1],n-a,r)}return r}function Gwe(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var w=Math.sin(S),C=Math.cos(S),T=0,_=0;_0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Nm(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=fe(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=fe(i,function(s,l){return{cp:s,z:qwe(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function qW(e){return Uwe(e.path,e.count)}function yw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Jwe(e,t,n){var r=[];function a(x){for(var S=0;S=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var eCe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;IV(e)&&(u=e,c=t),IV(t)&&(u=t,c=e);function f(m,y,_,b,x){var S=m.many,w=m.one;if(S.length===1&&!x){var C=y?S[0]:w,T=y?w:S[0];if(Vm(C))f({many:[C],one:T},!0,_,b,!0);else{var A=s?Ee({delay:s(_,b)},l):l;jA(C,T,A),i(C,T,C,T,A)}}else for(var P=Ee({dividePath:eCe[n],individualDelay:s&&function(H,V,G,X){return s(H+_,b)}},l),D=y?Jwe(S,w,P):Qwe(w,S,P),M=D.fromIndividuals,L=D.toIndividuals,R=M.length,O=0;Ot.length,v=u?PV(c,u):PV(d?t:e,[d?e:t]),h=0,g=0;gJW))for(var a=r.getIndices(),i=nCe(r),o=0;o0&&b.group.traverse(function(S){S instanceof Qe&&!S.animators.length&&S.animateFrom({style:{opacity:0}},x)})})}function MV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function kV(e){return ue(e)?e.sort().join(","):e}function Fo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function iCe(e,t){var n=De(),r=De(),a=De();return k(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=MV(i),c=kV(u);r.set(c,{dataGroupId:s,data:l}),ue(u)&&k(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),k(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=MV(i),u=kV(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Fo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Fo(s),data:s}]});else if(ue(l)){var f=[];k(l,function(h){var g=r.get(h);g.data&&f.push({dataGroupId:g.dataGroupId,divide:Fo(g.data),data:g.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Fo(s)}]})}else{var d=a.get(l);if(d){var v=n.get(d.key);v||(v={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Fo(d.data)}],newSeries:[]},n.set(d.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Fo(s)})}}}}),n}function LV(e,t){for(var n=0;n=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Fo(t.oldData[s]),dim:o.dimension})}),k(bt(e.to),function(o){var s=LV(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Fo(l),dim:o.dimension})}}),a.length>0&&i.length>0&&QW(a,i,r)}function sCe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){k(bt(r.seriesTransition),function(a){k(bt(a.to),function(i){for(var o=r.updatedSeries,s=0;s FHEMApp v4 - +